Skip to content

Commit

Permalink
fix: added missing icon to the types (#1574)
Browse files Browse the repository at this point in the history
* fix: added missing icon to the types #1573

* fix: added missing icon types

* docs: added relevant comment

* Update iconset.array.ts

* Update iconset.array.ts

* Update iconset.array.ts

* Update iconset.array.ts

* Update iconset.array.ts
  • Loading branch information
mfranzke authored Aug 1, 2023
1 parent 4469c38 commit c2e9ba7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const iconsetAction: string[] = [
'image',
'info',
'intercity-train',
'steppless-entry',
'ticket-subscription',
'walking-fast',
'key',
'legal',
'lightbulb',
Expand Down Expand Up @@ -240,6 +243,7 @@ export const iconsetSeat: string[] = [
'aisle-not-available',
'bed',
'childrens-compartment',
'couchette',
'elderly',
'handicapped',
'parent-child-compartment',
Expand Down Expand Up @@ -274,11 +278,43 @@ export const iconsetTicket: string[] = [
];

export const iconsetTransportation: string[] = [
'airplane',
'bicycle',
'bicycle-trailer',
// 'bikesharing',
// 'bus-local',
// 'bus-long-distance',
'call-a-bike',
'car',
'car-sequence',
'carsharing',
'electric-locomotive',
'electric-scooter',
'ev-car',
'ferry',
'handcart',
'ice',
'ice-side-view',
'local-bus',
'local-train',
'long-distance-bus',
'rail-and-fly',
'railroad-car',
's-bahn',
'scooter',
// 'ship',
'speedboat',
'sprinter',
'subway',
'taxi',
'train-and-car',
// 'train-ec',
// 'train-ic',
// 'train-ice',
// 'train-rb',
// 'train-re',
'tram',
// 'underground',
'walking'
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ The icon attribute is to select the icon. To see all Icons visit <a href="https:

The variant attribute specifies the size and style of an icon.

Please be aware that our icons aren't available in all variants (size and type) that we provide for configuration. In case you're missing an icon especially within any size bigger than `20`, please configure a lower size and set the icon-font-size via CSS Custom Property `--icon-font-size-before` on the `db-icon` element.

<Canvas>
<db-icon icon="account" variant="20-outline"></db-icon>
<db-icon icon="account" variant="24-outline"></db-icon>
Expand Down
3 changes: 3 additions & 0 deletions showcase/playground-showcase/src/grapesjs/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const iconset: string[] = [
'filter',
'generic-card',
'giftcard',
'steppless-entry',
'ticket-subscription',
'walking-fast',
'heart',
'heart-on',
'help',
Expand Down

0 comments on commit c2e9ba7

Please sign in to comment.