Skip to content

Commit

Permalink
feat(Icon): add shortcut icons to IconsShowcase
Browse files Browse the repository at this point in the history
  • Loading branch information
JoannaSikora committed Jan 31, 2025
1 parent 1261f91 commit 6148876
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 18 deletions.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutArrowBack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutArrowDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutArrowRight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutArrowUp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/icons/svg/ShortcutCapsLock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutCommand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutControl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutDelete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutEnter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutOption.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutShift.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/svg/ShortcutTab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 13 additions & 18 deletions packages/react-components/src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,67 +12,62 @@ const iterator = Object.keys(TablerIcons);

const SHORTCUT_ITEMS = [
{
icon: TablerIcons.AccountCircle,
icon: TablerIcons.ShortcutCommand,
text: 'Command',
unicode: '⌘',
},
{
icon: TablerIcons.Activities,
icon: TablerIcons.ShortcutOption,
text: 'Option',
unicode: '⌥ ',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutControl,
text: 'Control',
unicode: '⌃',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutShift,
text: 'Shift',
unicode: '⇧',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutTab,
text: 'Tab',
unicode: '⇥',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutCapsLock,
text: 'Caps Lock',
unicode: '⇪',
},
{
icon: TablerIcons.HandWave,
text: 'Escape',
unicode: '⎋',
},
{
icon: TablerIcons.HandWave,
text: 'Backspace',
icon: TablerIcons.ShortcutDelete,
text: 'Delete',
unicode: '⌫',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutEnter,
text: 'Enter',
unicode: '↵',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutArrowUp,
text: 'Arrow up',
unicode: '↑',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutArrowDown,
text: 'Arrow down',
unicode: '↓',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutArrowBack,
text: 'Arrow left',
unicode: '←',
},
{
icon: TablerIcons.HandWave,
icon: TablerIcons.ShortcutArrowRight,
text: 'Arrow right',
unicode: '→',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,18 @@ export const IconsData: Record<IconName, IconGroup> = {
LayoutSidebarLeft: IconGroup.General,
SquareRoundedPlusFilled: IconGroup.General,
SquareRoundedPlus: IconGroup.General,
ShortcutCommand: IconGroup.General,
ShortcutOption: IconGroup.General,
ShortcutShift: IconGroup.General,
ShortcutTab: IconGroup.General,
ShortcutCapsLock: IconGroup.General,
ShortcutControl: IconGroup.General,
ShortcutDelete: IconGroup.General,
ShortcutEnter: IconGroup.General,
ShortcutArrowUp: IconGroup.General,
ShortcutArrowDown: IconGroup.General,
ShortcutArrowBack: IconGroup.General,
ShortcutArrowRight: IconGroup.General,

//Brands
ChipCopilotColored: IconGroup.Brands,
Expand Down

0 comments on commit 6148876

Please sign in to comment.