@leafygreen-ui/icon 11.16.0 → 11.16.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/ActivityFeed.js +1 -1
- package/dist/ActivityFeed.js.map +1 -1
- package/dist/AddFile.js +1 -1
- package/dist/AddFile.js.map +1 -1
- package/dist/Apps.js +1 -1
- package/dist/Apps.js.map +1 -1
- package/dist/Array.js +1 -1
- package/dist/Array.js.map +1 -1
- package/dist/ArrowDown.js +1 -1
- package/dist/ArrowDown.js.map +1 -1
- package/dist/ArrowLeft.js +1 -1
- package/dist/ArrowLeft.js.map +1 -1
- package/dist/ArrowRight.js +1 -1
- package/dist/ArrowRight.js.map +1 -1
- package/dist/ArrowUp.js +1 -1
- package/dist/ArrowUp.js.map +1 -1
- package/dist/Beaker.js +1 -1
- package/dist/Beaker.js.map +1 -1
- package/dist/Bell.js +1 -1
- package/dist/Bell.js.map +1 -1
- package/dist/Biometric.js +1 -1
- package/dist/Biometric.js.map +1 -1
- package/dist/Building.js +1 -1
- package/dist/Building.js.map +1 -1
- package/dist/Bulb.js +1 -1
- package/dist/Bulb.js.map +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/Calendar.js.map +1 -1
- package/dist/CaretDown.js +1 -1
- package/dist/CaretDown.js.map +1 -1
- package/dist/CaretLeft.js +1 -1
- package/dist/CaretLeft.js.map +1 -1
- package/dist/CaretRight.js +1 -1
- package/dist/CaretRight.js.map +1 -1
- package/dist/CaretUp.js +1 -1
- package/dist/CaretUp.js.map +1 -1
- package/dist/ChartFilled.js +1 -1
- package/dist/ChartFilled.js.map +1 -1
- package/dist/Charts.js +1 -1
- package/dist/Charts.js.map +1 -1
- package/dist/Checkmark.js +1 -1
- package/dist/Checkmark.js.map +1 -1
- package/dist/CheckmarkWithCircle.js +1 -1
- package/dist/CheckmarkWithCircle.js.map +1 -1
- package/dist/ChevronDown.js +1 -1
- package/dist/ChevronDown.js.map +1 -1
- package/dist/ChevronLeft.js +1 -1
- package/dist/ChevronLeft.js.map +1 -1
- package/dist/ChevronRight.js +1 -1
- package/dist/ChevronRight.js.map +1 -1
- package/dist/ChevronUp.js +1 -1
- package/dist/ChevronUp.js.map +1 -1
- package/dist/Clock.js +1 -1
- package/dist/Clock.js.map +1 -1
- package/dist/ClockWithArrow.js +1 -1
- package/dist/ClockWithArrow.js.map +1 -1
- package/dist/Clone.js +1 -1
- package/dist/Clone.js.map +1 -1
- package/dist/Cloud.js +1 -1
- package/dist/Cloud.js.map +1 -1
- package/dist/Code.js +1 -1
- package/dist/Code.js.map +1 -1
- package/dist/Connect.js +1 -1
- package/dist/Connect.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/Copy.js.map +1 -1
- package/dist/CreditCard.js +1 -1
- package/dist/CreditCard.js.map +1 -1
- package/dist/CurlyBraces.js +1 -1
- package/dist/CurlyBraces.js.map +1 -1
- package/dist/Cursor.js +1 -1
- package/dist/Cursor.js.map +1 -1
- package/dist/Dashboard.js +1 -1
- package/dist/Dashboard.js.map +1 -1
- package/dist/Database.js +1 -1
- package/dist/Database.js.map +1 -1
- package/dist/Diagram.js +1 -1
- package/dist/Diagram.js.map +1 -1
- package/dist/Diagram2.js +1 -1
- package/dist/Diagram2.js.map +1 -1
- package/dist/Diagram3.js +1 -1
- package/dist/Diagram3.js.map +1 -1
- package/dist/Disconnect.js +1 -1
- package/dist/Disconnect.js.map +1 -1
- package/dist/Download.js +1 -1
- package/dist/Download.js.map +1 -1
- package/dist/Drag.js +1 -1
- package/dist/Drag.js.map +1 -1
- package/dist/Edit.js +1 -1
- package/dist/Edit.js.map +1 -1
- package/dist/Ellipsis.js +1 -1
- package/dist/Ellipsis.js.map +1 -1
- package/dist/Email.js +1 -1
- package/dist/Email.js.map +1 -1
- package/dist/Export.js +1 -1
- package/dist/Export.js.map +1 -1
- package/dist/Favorite.js +1 -1
- package/dist/Favorite.js.map +1 -1
- package/dist/File.js +1 -1
- package/dist/File.js.map +1 -1
- package/dist/Filter.js +1 -1
- package/dist/Filter.js.map +1 -1
- package/dist/Folder.js +1 -1
- package/dist/Folder.js.map +1 -1
- package/dist/FullScreenEnter.js +1 -1
- package/dist/FullScreenEnter.js.map +1 -1
- package/dist/FullScreenExit.js +1 -1
- package/dist/FullScreenExit.js.map +1 -1
- package/dist/Gauge.js +1 -1
- package/dist/Gauge.js.map +1 -1
- package/dist/GlobeAmericas.js +1 -1
- package/dist/GlobeAmericas.js.map +1 -1
- package/dist/GovernmentBuilding.js +1 -1
- package/dist/GovernmentBuilding.js.map +1 -1
- package/dist/Highlight.js +1 -1
- package/dist/Highlight.js.map +1 -1
- package/dist/Home.js +1 -1
- package/dist/Home.js.map +1 -1
- package/dist/Import.js +1 -1
- package/dist/Import.js.map +1 -1
- package/dist/ImportantWithCircle.js +1 -1
- package/dist/ImportantWithCircle.js.map +1 -1
- package/dist/InfoWithCircle.js +1 -1
- package/dist/InfoWithCircle.js.map +1 -1
- package/dist/InviteUser.js +1 -1
- package/dist/InviteUser.js.map +1 -1
- package/dist/Key.js +1 -1
- package/dist/Key.js.map +1 -1
- package/dist/Laptop.js +1 -1
- package/dist/Laptop.js.map +1 -1
- package/dist/Link.js +1 -1
- package/dist/Link.js.map +1 -1
- package/dist/Lock.js +1 -1
- package/dist/Lock.js.map +1 -1
- package/dist/LogIn.js +1 -1
- package/dist/LogIn.js.map +1 -1
- package/dist/LogOut.js +1 -1
- package/dist/LogOut.js.map +1 -1
- package/dist/MagnifyingGlass.js +1 -1
- package/dist/MagnifyingGlass.js.map +1 -1
- package/dist/Megaphone.js +1 -1
- package/dist/Megaphone.js.map +1 -1
- package/dist/Menu.js +1 -1
- package/dist/Menu.js.map +1 -1
- package/dist/Minus.js +1 -1
- package/dist/Minus.js.map +1 -1
- package/dist/NoFilter.js +1 -1
- package/dist/NoFilter.js.map +1 -1
- package/dist/NotAllowed.js +1 -1
- package/dist/NotAllowed.js.map +1 -1
- package/dist/Note.js +1 -1
- package/dist/Note.js.map +1 -1
- package/dist/OpenNewTab.js +1 -1
- package/dist/OpenNewTab.js.map +1 -1
- package/dist/Pause.js +1 -1
- package/dist/Pause.js.map +1 -1
- package/dist/Person.js +1 -1
- package/dist/Person.js.map +1 -1
- package/dist/PersonGroup.js +1 -1
- package/dist/PersonGroup.js.map +1 -1
- package/dist/PersonWithLock.js +1 -1
- package/dist/PersonWithLock.js.map +1 -1
- package/dist/Play.js +1 -1
- package/dist/Play.js.map +1 -1
- package/dist/Plus.js +1 -1
- package/dist/Plus.js.map +1 -1
- package/dist/PlusWithCircle.js +1 -1
- package/dist/PlusWithCircle.js.map +1 -1
- package/dist/QuestionMarkWithCircle.js +1 -1
- package/dist/QuestionMarkWithCircle.js.map +1 -1
- package/dist/Read.js +1 -1
- package/dist/Read.js.map +1 -1
- package/dist/Redo.js +1 -1
- package/dist/Redo.js.map +1 -1
- package/dist/Refresh.js +1 -1
- package/dist/Refresh.js.map +1 -1
- package/dist/Relationship.js +1 -1
- package/dist/Relationship.js.map +1 -1
- package/dist/ReplicaSet.js +1 -1
- package/dist/ReplicaSet.js.map +1 -1
- package/dist/Resize.js +1 -1
- package/dist/Resize.js.map +1 -1
- package/dist/SMS.js +1 -1
- package/dist/SMS.js.map +1 -1
- package/dist/Save.js +1 -1
- package/dist/Save.js.map +1 -1
- package/dist/Serverless.js +1 -1
- package/dist/Serverless.js.map +1 -1
- package/dist/Settings.js +1 -1
- package/dist/Settings.js.map +1 -1
- package/dist/ShardedCluster.js +1 -1
- package/dist/ShardedCluster.js.map +1 -1
- package/dist/Shell.js +1 -1
- package/dist/Shell.js.map +1 -1
- package/dist/SortAscending.js +1 -1
- package/dist/SortAscending.js.map +1 -1
- package/dist/SortDescending.js +1 -1
- package/dist/SortDescending.js.map +1 -1
- package/dist/SplitHorizontal.js +1 -1
- package/dist/SplitHorizontal.js.map +1 -1
- package/dist/SplitVertical.js +1 -1
- package/dist/SplitVertical.js.map +1 -1
- package/dist/Stitch.js +1 -1
- package/dist/Stitch.js.map +1 -1
- package/dist/Support.js +1 -1
- package/dist/Support.js.map +1 -1
- package/dist/Sweep.js +1 -1
- package/dist/Sweep.js.map +1 -1
- package/dist/Table.js +1 -1
- package/dist/Table.js.map +1 -1
- package/dist/Tag.js +1 -1
- package/dist/Tag.js.map +1 -1
- package/dist/TimeSeries.js +1 -1
- package/dist/TimeSeries.js.map +1 -1
- package/dist/Trash.js +1 -1
- package/dist/Trash.js.map +1 -1
- package/dist/Undo.js +1 -1
- package/dist/Undo.js.map +1 -1
- package/dist/University.js +1 -1
- package/dist/University.js.map +1 -1
- package/dist/Unlock.js +1 -1
- package/dist/Unlock.js.map +1 -1
- package/dist/Unsorted.js +1 -1
- package/dist/Unsorted.js.map +1 -1
- package/dist/UpDownCarets.js +1 -1
- package/dist/UpDownCarets.js.map +1 -1
- package/dist/Upload.js +1 -1
- package/dist/Upload.js.map +1 -1
- package/dist/VerticalEllipsis.js +1 -1
- package/dist/VerticalEllipsis.js.map +1 -1
- package/dist/Visibility.js +1 -1
- package/dist/Visibility.js.map +1 -1
- package/dist/VisibilityOff.js +1 -1
- package/dist/VisibilityOff.js.map +1 -1
- package/dist/Warning.js +1 -1
- package/dist/Warning.js.map +1 -1
- package/dist/Wizard.js +1 -1
- package/dist/Wizard.js.map +1 -1
- package/dist/Wrench.js +1 -1
- package/dist/Wrench.js.map +1 -1
- package/dist/Write.js +1 -1
- package/dist/Write.js.map +1 -1
- package/dist/X.js +1 -1
- package/dist/X.js.map +1 -1
- package/dist/XWithCircle.js +1 -1
- package/dist/XWithCircle.js.map +1 -1
- package/dist/esm/ActivityFeed.js +1 -1
- package/dist/esm/ActivityFeed.js.map +1 -1
- package/dist/esm/AddFile.js +1 -1
- package/dist/esm/AddFile.js.map +1 -1
- package/dist/esm/Apps.js +1 -1
- package/dist/esm/Apps.js.map +1 -1
- package/dist/esm/Array.js +1 -1
- package/dist/esm/Array.js.map +1 -1
- package/dist/esm/ArrowDown.js +1 -1
- package/dist/esm/ArrowDown.js.map +1 -1
- package/dist/esm/ArrowLeft.js +1 -1
- package/dist/esm/ArrowLeft.js.map +1 -1
- package/dist/esm/ArrowRight.js +1 -1
- package/dist/esm/ArrowRight.js.map +1 -1
- package/dist/esm/ArrowUp.js +1 -1
- package/dist/esm/ArrowUp.js.map +1 -1
- package/dist/esm/Beaker.js +1 -1
- package/dist/esm/Beaker.js.map +1 -1
- package/dist/esm/Bell.js +1 -1
- package/dist/esm/Bell.js.map +1 -1
- package/dist/esm/Biometric.js +1 -1
- package/dist/esm/Biometric.js.map +1 -1
- package/dist/esm/Building.js +1 -1
- package/dist/esm/Building.js.map +1 -1
- package/dist/esm/Bulb.js +1 -1
- package/dist/esm/Bulb.js.map +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Calendar.js.map +1 -1
- package/dist/esm/CaretDown.js +1 -1
- package/dist/esm/CaretDown.js.map +1 -1
- package/dist/esm/CaretLeft.js +1 -1
- package/dist/esm/CaretLeft.js.map +1 -1
- package/dist/esm/CaretRight.js +1 -1
- package/dist/esm/CaretRight.js.map +1 -1
- package/dist/esm/CaretUp.js +1 -1
- package/dist/esm/CaretUp.js.map +1 -1
- package/dist/esm/ChartFilled.js +1 -1
- package/dist/esm/ChartFilled.js.map +1 -1
- package/dist/esm/Charts.js +1 -1
- package/dist/esm/Charts.js.map +1 -1
- package/dist/esm/Checkmark.js +1 -1
- package/dist/esm/Checkmark.js.map +1 -1
- package/dist/esm/CheckmarkWithCircle.js +1 -1
- package/dist/esm/CheckmarkWithCircle.js.map +1 -1
- package/dist/esm/ChevronDown.js +1 -1
- package/dist/esm/ChevronDown.js.map +1 -1
- package/dist/esm/ChevronLeft.js +1 -1
- package/dist/esm/ChevronLeft.js.map +1 -1
- package/dist/esm/ChevronRight.js +1 -1
- package/dist/esm/ChevronRight.js.map +1 -1
- package/dist/esm/ChevronUp.js +1 -1
- package/dist/esm/ChevronUp.js.map +1 -1
- package/dist/esm/Clock.js +1 -1
- package/dist/esm/Clock.js.map +1 -1
- package/dist/esm/ClockWithArrow.js +1 -1
- package/dist/esm/ClockWithArrow.js.map +1 -1
- package/dist/esm/Clone.js +1 -1
- package/dist/esm/Clone.js.map +1 -1
- package/dist/esm/Cloud.js +1 -1
- package/dist/esm/Cloud.js.map +1 -1
- package/dist/esm/Code.js +1 -1
- package/dist/esm/Code.js.map +1 -1
- package/dist/esm/Connect.js +1 -1
- package/dist/esm/Connect.js.map +1 -1
- package/dist/esm/Copy.js +1 -1
- package/dist/esm/Copy.js.map +1 -1
- package/dist/esm/CreditCard.js +1 -1
- package/dist/esm/CreditCard.js.map +1 -1
- package/dist/esm/CurlyBraces.js +1 -1
- package/dist/esm/CurlyBraces.js.map +1 -1
- package/dist/esm/Cursor.js +1 -1
- package/dist/esm/Cursor.js.map +1 -1
- package/dist/esm/Dashboard.js +1 -1
- package/dist/esm/Dashboard.js.map +1 -1
- package/dist/esm/Database.js +1 -1
- package/dist/esm/Database.js.map +1 -1
- package/dist/esm/Diagram.js +1 -1
- package/dist/esm/Diagram.js.map +1 -1
- package/dist/esm/Diagram2.js +1 -1
- package/dist/esm/Diagram2.js.map +1 -1
- package/dist/esm/Diagram3.js +1 -1
- package/dist/esm/Diagram3.js.map +1 -1
- package/dist/esm/Disconnect.js +1 -1
- package/dist/esm/Disconnect.js.map +1 -1
- package/dist/esm/Download.js +1 -1
- package/dist/esm/Download.js.map +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Drag.js.map +1 -1
- package/dist/esm/Edit.js +1 -1
- package/dist/esm/Edit.js.map +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/Ellipsis.js.map +1 -1
- package/dist/esm/Email.js +1 -1
- package/dist/esm/Email.js.map +1 -1
- package/dist/esm/Export.js +1 -1
- package/dist/esm/Export.js.map +1 -1
- package/dist/esm/Favorite.js +1 -1
- package/dist/esm/Favorite.js.map +1 -1
- package/dist/esm/File.js +1 -1
- package/dist/esm/File.js.map +1 -1
- package/dist/esm/Filter.js +1 -1
- package/dist/esm/Filter.js.map +1 -1
- package/dist/esm/Folder.js +1 -1
- package/dist/esm/Folder.js.map +1 -1
- package/dist/esm/FullScreenEnter.js +1 -1
- package/dist/esm/FullScreenEnter.js.map +1 -1
- package/dist/esm/FullScreenExit.js +1 -1
- package/dist/esm/FullScreenExit.js.map +1 -1
- package/dist/esm/Gauge.js +1 -1
- package/dist/esm/Gauge.js.map +1 -1
- package/dist/esm/GlobeAmericas.js +1 -1
- package/dist/esm/GlobeAmericas.js.map +1 -1
- package/dist/esm/GovernmentBuilding.js +1 -1
- package/dist/esm/GovernmentBuilding.js.map +1 -1
- package/dist/esm/Highlight.js +1 -1
- package/dist/esm/Highlight.js.map +1 -1
- package/dist/esm/Home.js +1 -1
- package/dist/esm/Home.js.map +1 -1
- package/dist/esm/Import.js +1 -1
- package/dist/esm/Import.js.map +1 -1
- package/dist/esm/ImportantWithCircle.js +1 -1
- package/dist/esm/ImportantWithCircle.js.map +1 -1
- package/dist/esm/InfoWithCircle.js +1 -1
- package/dist/esm/InfoWithCircle.js.map +1 -1
- package/dist/esm/InviteUser.js +1 -1
- package/dist/esm/InviteUser.js.map +1 -1
- package/dist/esm/Key.js +1 -1
- package/dist/esm/Key.js.map +1 -1
- package/dist/esm/Laptop.js +1 -1
- package/dist/esm/Laptop.js.map +1 -1
- package/dist/esm/Link.js +1 -1
- package/dist/esm/Link.js.map +1 -1
- package/dist/esm/Lock.js +1 -1
- package/dist/esm/Lock.js.map +1 -1
- package/dist/esm/LogIn.js +1 -1
- package/dist/esm/LogIn.js.map +1 -1
- package/dist/esm/LogOut.js +1 -1
- package/dist/esm/LogOut.js.map +1 -1
- package/dist/esm/MagnifyingGlass.js +1 -1
- package/dist/esm/MagnifyingGlass.js.map +1 -1
- package/dist/esm/Megaphone.js +1 -1
- package/dist/esm/Megaphone.js.map +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/Menu.js.map +1 -1
- package/dist/esm/Minus.js +1 -1
- package/dist/esm/Minus.js.map +1 -1
- package/dist/esm/NoFilter.js +1 -1
- package/dist/esm/NoFilter.js.map +1 -1
- package/dist/esm/NotAllowed.js +1 -1
- package/dist/esm/NotAllowed.js.map +1 -1
- package/dist/esm/Note.js +1 -1
- package/dist/esm/Note.js.map +1 -1
- package/dist/esm/OpenNewTab.js +1 -1
- package/dist/esm/OpenNewTab.js.map +1 -1
- package/dist/esm/Pause.js +1 -1
- package/dist/esm/Pause.js.map +1 -1
- package/dist/esm/Person.js +1 -1
- package/dist/esm/Person.js.map +1 -1
- package/dist/esm/PersonGroup.js +1 -1
- package/dist/esm/PersonGroup.js.map +1 -1
- package/dist/esm/PersonWithLock.js +1 -1
- package/dist/esm/PersonWithLock.js.map +1 -1
- package/dist/esm/Play.js +1 -1
- package/dist/esm/Play.js.map +1 -1
- package/dist/esm/Plus.js +1 -1
- package/dist/esm/Plus.js.map +1 -1
- package/dist/esm/PlusWithCircle.js +1 -1
- package/dist/esm/PlusWithCircle.js.map +1 -1
- package/dist/esm/QuestionMarkWithCircle.js +1 -1
- package/dist/esm/QuestionMarkWithCircle.js.map +1 -1
- package/dist/esm/Read.js +1 -1
- package/dist/esm/Read.js.map +1 -1
- package/dist/esm/Redo.js +1 -1
- package/dist/esm/Redo.js.map +1 -1
- package/dist/esm/Refresh.js +1 -1
- package/dist/esm/Refresh.js.map +1 -1
- package/dist/esm/Relationship.js +1 -1
- package/dist/esm/Relationship.js.map +1 -1
- package/dist/esm/ReplicaSet.js +1 -1
- package/dist/esm/ReplicaSet.js.map +1 -1
- package/dist/esm/Resize.js +1 -1
- package/dist/esm/Resize.js.map +1 -1
- package/dist/esm/SMS.js +1 -1
- package/dist/esm/SMS.js.map +1 -1
- package/dist/esm/Save.js +1 -1
- package/dist/esm/Save.js.map +1 -1
- package/dist/esm/Serverless.js +1 -1
- package/dist/esm/Serverless.js.map +1 -1
- package/dist/esm/Settings.js +1 -1
- package/dist/esm/Settings.js.map +1 -1
- package/dist/esm/ShardedCluster.js +1 -1
- package/dist/esm/ShardedCluster.js.map +1 -1
- package/dist/esm/Shell.js +1 -1
- package/dist/esm/Shell.js.map +1 -1
- package/dist/esm/SortAscending.js +1 -1
- package/dist/esm/SortAscending.js.map +1 -1
- package/dist/esm/SortDescending.js +1 -1
- package/dist/esm/SortDescending.js.map +1 -1
- package/dist/esm/SplitHorizontal.js +1 -1
- package/dist/esm/SplitHorizontal.js.map +1 -1
- package/dist/esm/SplitVertical.js +1 -1
- package/dist/esm/SplitVertical.js.map +1 -1
- package/dist/esm/Stitch.js +1 -1
- package/dist/esm/Stitch.js.map +1 -1
- package/dist/esm/Support.js +1 -1
- package/dist/esm/Support.js.map +1 -1
- package/dist/esm/Sweep.js +1 -1
- package/dist/esm/Sweep.js.map +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Table.js.map +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/Tag.js.map +1 -1
- package/dist/esm/TimeSeries.js +1 -1
- package/dist/esm/TimeSeries.js.map +1 -1
- package/dist/esm/Trash.js +1 -1
- package/dist/esm/Trash.js.map +1 -1
- package/dist/esm/Undo.js +1 -1
- package/dist/esm/Undo.js.map +1 -1
- package/dist/esm/University.js +1 -1
- package/dist/esm/University.js.map +1 -1
- package/dist/esm/Unlock.js +1 -1
- package/dist/esm/Unlock.js.map +1 -1
- package/dist/esm/Unsorted.js +1 -1
- package/dist/esm/Unsorted.js.map +1 -1
- package/dist/esm/UpDownCarets.js +1 -1
- package/dist/esm/UpDownCarets.js.map +1 -1
- package/dist/esm/Upload.js +1 -1
- package/dist/esm/Upload.js.map +1 -1
- package/dist/esm/VerticalEllipsis.js +1 -1
- package/dist/esm/VerticalEllipsis.js.map +1 -1
- package/dist/esm/Visibility.js +1 -1
- package/dist/esm/Visibility.js.map +1 -1
- package/dist/esm/VisibilityOff.js +1 -1
- package/dist/esm/VisibilityOff.js.map +1 -1
- package/dist/esm/Warning.js +1 -1
- package/dist/esm/Warning.js.map +1 -1
- package/dist/esm/Wizard.js +1 -1
- package/dist/esm/Wizard.js.map +1 -1
- package/dist/esm/Wrench.js +1 -1
- package/dist/esm/Wrench.js.map +1 -1
- package/dist/esm/Write.js +1 -1
- package/dist/esm/Write.js.map +1 -1
- package/dist/esm/X.js +1 -1
- package/dist/esm/X.js.map +1 -1
- package/dist/esm/XWithCircle.js +1 -1
- package/dist/esm/XWithCircle.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/ActivityFeed.d.ts +0 -1
- package/dist/generated/ActivityFeed.d.ts.map +1 -1
- package/dist/generated/AddFile.d.ts +0 -1
- package/dist/generated/AddFile.d.ts.map +1 -1
- package/dist/generated/Apps.d.ts +0 -1
- package/dist/generated/Apps.d.ts.map +1 -1
- package/dist/generated/Array.d.ts +0 -1
- package/dist/generated/Array.d.ts.map +1 -1
- package/dist/generated/ArrowDown.d.ts +0 -1
- package/dist/generated/ArrowDown.d.ts.map +1 -1
- package/dist/generated/ArrowLeft.d.ts +0 -1
- package/dist/generated/ArrowLeft.d.ts.map +1 -1
- package/dist/generated/ArrowRight.d.ts +0 -1
- package/dist/generated/ArrowRight.d.ts.map +1 -1
- package/dist/generated/ArrowUp.d.ts +0 -1
- package/dist/generated/ArrowUp.d.ts.map +1 -1
- package/dist/generated/Beaker.d.ts +0 -1
- package/dist/generated/Beaker.d.ts.map +1 -1
- package/dist/generated/Bell.d.ts +0 -1
- package/dist/generated/Bell.d.ts.map +1 -1
- package/dist/generated/Biometric.d.ts +0 -1
- package/dist/generated/Biometric.d.ts.map +1 -1
- package/dist/generated/Building.d.ts +0 -1
- package/dist/generated/Building.d.ts.map +1 -1
- package/dist/generated/Bulb.d.ts +0 -1
- package/dist/generated/Bulb.d.ts.map +1 -1
- package/dist/generated/Calendar.d.ts +0 -1
- package/dist/generated/Calendar.d.ts.map +1 -1
- package/dist/generated/CaretDown.d.ts +0 -1
- package/dist/generated/CaretDown.d.ts.map +1 -1
- package/dist/generated/CaretLeft.d.ts +0 -1
- package/dist/generated/CaretLeft.d.ts.map +1 -1
- package/dist/generated/CaretRight.d.ts +0 -1
- package/dist/generated/CaretRight.d.ts.map +1 -1
- package/dist/generated/CaretUp.d.ts +0 -1
- package/dist/generated/CaretUp.d.ts.map +1 -1
- package/dist/generated/ChartFilled.d.ts +0 -1
- package/dist/generated/ChartFilled.d.ts.map +1 -1
- package/dist/generated/Charts.d.ts +0 -1
- package/dist/generated/Charts.d.ts.map +1 -1
- package/dist/generated/Checkmark.d.ts +0 -1
- package/dist/generated/Checkmark.d.ts.map +1 -1
- package/dist/generated/CheckmarkWithCircle.d.ts +0 -1
- package/dist/generated/CheckmarkWithCircle.d.ts.map +1 -1
- package/dist/generated/ChevronDown.d.ts +0 -1
- package/dist/generated/ChevronDown.d.ts.map +1 -1
- package/dist/generated/ChevronLeft.d.ts +0 -1
- package/dist/generated/ChevronLeft.d.ts.map +1 -1
- package/dist/generated/ChevronRight.d.ts +0 -1
- package/dist/generated/ChevronRight.d.ts.map +1 -1
- package/dist/generated/ChevronUp.d.ts +0 -1
- package/dist/generated/ChevronUp.d.ts.map +1 -1
- package/dist/generated/Clock.d.ts +0 -1
- package/dist/generated/Clock.d.ts.map +1 -1
- package/dist/generated/ClockWithArrow.d.ts +0 -1
- package/dist/generated/ClockWithArrow.d.ts.map +1 -1
- package/dist/generated/Clone.d.ts +0 -1
- package/dist/generated/Clone.d.ts.map +1 -1
- package/dist/generated/Cloud.d.ts +0 -1
- package/dist/generated/Cloud.d.ts.map +1 -1
- package/dist/generated/Code.d.ts +0 -1
- package/dist/generated/Code.d.ts.map +1 -1
- package/dist/generated/Connect.d.ts +0 -1
- package/dist/generated/Connect.d.ts.map +1 -1
- package/dist/generated/Copy.d.ts +0 -1
- package/dist/generated/Copy.d.ts.map +1 -1
- package/dist/generated/CreditCard.d.ts +0 -1
- package/dist/generated/CreditCard.d.ts.map +1 -1
- package/dist/generated/CurlyBraces.d.ts +0 -1
- package/dist/generated/CurlyBraces.d.ts.map +1 -1
- package/dist/generated/Cursor.d.ts +0 -1
- package/dist/generated/Cursor.d.ts.map +1 -1
- package/dist/generated/Dashboard.d.ts +0 -1
- package/dist/generated/Dashboard.d.ts.map +1 -1
- package/dist/generated/Database.d.ts +0 -1
- package/dist/generated/Database.d.ts.map +1 -1
- package/dist/generated/Diagram.d.ts +0 -1
- package/dist/generated/Diagram.d.ts.map +1 -1
- package/dist/generated/Diagram2.d.ts +0 -1
- package/dist/generated/Diagram2.d.ts.map +1 -1
- package/dist/generated/Diagram3.d.ts +0 -1
- package/dist/generated/Diagram3.d.ts.map +1 -1
- package/dist/generated/Disconnect.d.ts +0 -1
- package/dist/generated/Disconnect.d.ts.map +1 -1
- package/dist/generated/Download.d.ts +0 -1
- package/dist/generated/Download.d.ts.map +1 -1
- package/dist/generated/Drag.d.ts +0 -1
- package/dist/generated/Drag.d.ts.map +1 -1
- package/dist/generated/Edit.d.ts +0 -1
- package/dist/generated/Edit.d.ts.map +1 -1
- package/dist/generated/Ellipsis.d.ts +0 -1
- package/dist/generated/Ellipsis.d.ts.map +1 -1
- package/dist/generated/Email.d.ts +0 -1
- package/dist/generated/Email.d.ts.map +1 -1
- package/dist/generated/Export.d.ts +0 -1
- package/dist/generated/Export.d.ts.map +1 -1
- package/dist/generated/Favorite.d.ts +0 -1
- package/dist/generated/Favorite.d.ts.map +1 -1
- package/dist/generated/File.d.ts +0 -1
- package/dist/generated/File.d.ts.map +1 -1
- package/dist/generated/Filter.d.ts +0 -1
- package/dist/generated/Filter.d.ts.map +1 -1
- package/dist/generated/Folder.d.ts +0 -1
- package/dist/generated/Folder.d.ts.map +1 -1
- package/dist/generated/FullScreenEnter.d.ts +0 -1
- package/dist/generated/FullScreenEnter.d.ts.map +1 -1
- package/dist/generated/FullScreenExit.d.ts +0 -1
- package/dist/generated/FullScreenExit.d.ts.map +1 -1
- package/dist/generated/Gauge.d.ts +0 -1
- package/dist/generated/Gauge.d.ts.map +1 -1
- package/dist/generated/GlobeAmericas.d.ts +0 -1
- package/dist/generated/GlobeAmericas.d.ts.map +1 -1
- package/dist/generated/GovernmentBuilding.d.ts +0 -1
- package/dist/generated/GovernmentBuilding.d.ts.map +1 -1
- package/dist/generated/Highlight.d.ts +0 -1
- package/dist/generated/Highlight.d.ts.map +1 -1
- package/dist/generated/Home.d.ts +0 -1
- package/dist/generated/Home.d.ts.map +1 -1
- package/dist/generated/Import.d.ts +0 -1
- package/dist/generated/Import.d.ts.map +1 -1
- package/dist/generated/ImportantWithCircle.d.ts +0 -1
- package/dist/generated/ImportantWithCircle.d.ts.map +1 -1
- package/dist/generated/InfoWithCircle.d.ts +0 -1
- package/dist/generated/InfoWithCircle.d.ts.map +1 -1
- package/dist/generated/InviteUser.d.ts +0 -1
- package/dist/generated/InviteUser.d.ts.map +1 -1
- package/dist/generated/Key.d.ts +0 -1
- package/dist/generated/Key.d.ts.map +1 -1
- package/dist/generated/Laptop.d.ts +0 -1
- package/dist/generated/Laptop.d.ts.map +1 -1
- package/dist/generated/Link.d.ts +0 -1
- package/dist/generated/Link.d.ts.map +1 -1
- package/dist/generated/Lock.d.ts +0 -1
- package/dist/generated/Lock.d.ts.map +1 -1
- package/dist/generated/LogIn.d.ts +0 -1
- package/dist/generated/LogIn.d.ts.map +1 -1
- package/dist/generated/LogOut.d.ts +0 -1
- package/dist/generated/LogOut.d.ts.map +1 -1
- package/dist/generated/MagnifyingGlass.d.ts +0 -1
- package/dist/generated/MagnifyingGlass.d.ts.map +1 -1
- package/dist/generated/Megaphone.d.ts +0 -1
- package/dist/generated/Megaphone.d.ts.map +1 -1
- package/dist/generated/Menu.d.ts +0 -1
- package/dist/generated/Menu.d.ts.map +1 -1
- package/dist/generated/Minus.d.ts +0 -1
- package/dist/generated/Minus.d.ts.map +1 -1
- package/dist/generated/NoFilter.d.ts +0 -1
- package/dist/generated/NoFilter.d.ts.map +1 -1
- package/dist/generated/NotAllowed.d.ts +0 -1
- package/dist/generated/NotAllowed.d.ts.map +1 -1
- package/dist/generated/Note.d.ts +0 -1
- package/dist/generated/Note.d.ts.map +1 -1
- package/dist/generated/OpenNewTab.d.ts +0 -1
- package/dist/generated/OpenNewTab.d.ts.map +1 -1
- package/dist/generated/Pause.d.ts +0 -1
- package/dist/generated/Pause.d.ts.map +1 -1
- package/dist/generated/Person.d.ts +0 -1
- package/dist/generated/Person.d.ts.map +1 -1
- package/dist/generated/PersonGroup.d.ts +0 -1
- package/dist/generated/PersonGroup.d.ts.map +1 -1
- package/dist/generated/PersonWithLock.d.ts +0 -1
- package/dist/generated/PersonWithLock.d.ts.map +1 -1
- package/dist/generated/Play.d.ts +0 -1
- package/dist/generated/Play.d.ts.map +1 -1
- package/dist/generated/Plus.d.ts +0 -1
- package/dist/generated/Plus.d.ts.map +1 -1
- package/dist/generated/PlusWithCircle.d.ts +0 -1
- package/dist/generated/PlusWithCircle.d.ts.map +1 -1
- package/dist/generated/QuestionMarkWithCircle.d.ts +0 -1
- package/dist/generated/QuestionMarkWithCircle.d.ts.map +1 -1
- package/dist/generated/Read.d.ts +0 -1
- package/dist/generated/Read.d.ts.map +1 -1
- package/dist/generated/Redo.d.ts +0 -1
- package/dist/generated/Redo.d.ts.map +1 -1
- package/dist/generated/Refresh.d.ts +0 -1
- package/dist/generated/Refresh.d.ts.map +1 -1
- package/dist/generated/Relationship.d.ts +0 -1
- package/dist/generated/Relationship.d.ts.map +1 -1
- package/dist/generated/ReplicaSet.d.ts +0 -1
- package/dist/generated/ReplicaSet.d.ts.map +1 -1
- package/dist/generated/Resize.d.ts +0 -1
- package/dist/generated/Resize.d.ts.map +1 -1
- package/dist/generated/SMS.d.ts +0 -1
- package/dist/generated/SMS.d.ts.map +1 -1
- package/dist/generated/Save.d.ts +0 -1
- package/dist/generated/Save.d.ts.map +1 -1
- package/dist/generated/Serverless.d.ts +0 -1
- package/dist/generated/Serverless.d.ts.map +1 -1
- package/dist/generated/Settings.d.ts +0 -1
- package/dist/generated/Settings.d.ts.map +1 -1
- package/dist/generated/ShardedCluster.d.ts +0 -1
- package/dist/generated/ShardedCluster.d.ts.map +1 -1
- package/dist/generated/Shell.d.ts +0 -1
- package/dist/generated/Shell.d.ts.map +1 -1
- package/dist/generated/SortAscending.d.ts +0 -1
- package/dist/generated/SortAscending.d.ts.map +1 -1
- package/dist/generated/SortDescending.d.ts +0 -1
- package/dist/generated/SortDescending.d.ts.map +1 -1
- package/dist/generated/SplitHorizontal.d.ts +0 -1
- package/dist/generated/SplitHorizontal.d.ts.map +1 -1
- package/dist/generated/SplitVertical.d.ts +0 -1
- package/dist/generated/SplitVertical.d.ts.map +1 -1
- package/dist/generated/Stitch.d.ts +0 -1
- package/dist/generated/Stitch.d.ts.map +1 -1
- package/dist/generated/Support.d.ts +0 -1
- package/dist/generated/Support.d.ts.map +1 -1
- package/dist/generated/Sweep.d.ts +0 -1
- package/dist/generated/Sweep.d.ts.map +1 -1
- package/dist/generated/Table.d.ts +0 -1
- package/dist/generated/Table.d.ts.map +1 -1
- package/dist/generated/Tag.d.ts +0 -1
- package/dist/generated/Tag.d.ts.map +1 -1
- package/dist/generated/TimeSeries.d.ts +0 -1
- package/dist/generated/TimeSeries.d.ts.map +1 -1
- package/dist/generated/Trash.d.ts +0 -1
- package/dist/generated/Trash.d.ts.map +1 -1
- package/dist/generated/Undo.d.ts +0 -1
- package/dist/generated/Undo.d.ts.map +1 -1
- package/dist/generated/University.d.ts +0 -1
- package/dist/generated/University.d.ts.map +1 -1
- package/dist/generated/Unlock.d.ts +0 -1
- package/dist/generated/Unlock.d.ts.map +1 -1
- package/dist/generated/Unsorted.d.ts +0 -1
- package/dist/generated/Unsorted.d.ts.map +1 -1
- package/dist/generated/UpDownCarets.d.ts +0 -1
- package/dist/generated/UpDownCarets.d.ts.map +1 -1
- package/dist/generated/Upload.d.ts +0 -1
- package/dist/generated/Upload.d.ts.map +1 -1
- package/dist/generated/VerticalEllipsis.d.ts +0 -1
- package/dist/generated/VerticalEllipsis.d.ts.map +1 -1
- package/dist/generated/Visibility.d.ts +0 -1
- package/dist/generated/Visibility.d.ts.map +1 -1
- package/dist/generated/VisibilityOff.d.ts +0 -1
- package/dist/generated/VisibilityOff.d.ts.map +1 -1
- package/dist/generated/Warning.d.ts +0 -1
- package/dist/generated/Warning.d.ts.map +1 -1
- package/dist/generated/Wizard.d.ts +0 -1
- package/dist/generated/Wizard.d.ts.map +1 -1
- package/dist/generated/Wrench.d.ts +0 -1
- package/dist/generated/Wrench.d.ts.map +1 -1
- package/dist/generated/Write.d.ts +0 -1
- package/dist/generated/Write.d.ts.map +1 -1
- package/dist/generated/X.d.ts +0 -1
- package/dist/generated/X.d.ts.map +1 -1
- package/dist/generated/XWithCircle.d.ts +0 -1
- package/dist/generated/XWithCircle.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Icon.story.tsx +9 -8
- package/src/generated/ActivityFeed.tsx +1 -3
- package/src/generated/AddFile.tsx +1 -3
- package/src/generated/Apps.tsx +1 -3
- package/src/generated/Array.tsx +1 -3
- package/src/generated/ArrowDown.tsx +1 -3
- package/src/generated/ArrowLeft.tsx +1 -3
- package/src/generated/ArrowRight.tsx +1 -3
- package/src/generated/ArrowUp.tsx +1 -3
- package/src/generated/Beaker.tsx +1 -3
- package/src/generated/Bell.tsx +1 -3
- package/src/generated/Biometric.tsx +1 -3
- package/src/generated/Building.tsx +1 -3
- package/src/generated/Bulb.tsx +1 -3
- package/src/generated/Calendar.tsx +1 -3
- package/src/generated/CaretDown.tsx +1 -3
- package/src/generated/CaretLeft.tsx +1 -3
- package/src/generated/CaretRight.tsx +1 -3
- package/src/generated/CaretUp.tsx +1 -3
- package/src/generated/ChartFilled.tsx +1 -3
- package/src/generated/Charts.tsx +1 -3
- package/src/generated/Checkmark.tsx +1 -3
- package/src/generated/CheckmarkWithCircle.tsx +1 -3
- package/src/generated/ChevronDown.tsx +1 -3
- package/src/generated/ChevronLeft.tsx +1 -3
- package/src/generated/ChevronRight.tsx +1 -3
- package/src/generated/ChevronUp.tsx +1 -3
- package/src/generated/Clock.tsx +1 -3
- package/src/generated/ClockWithArrow.tsx +1 -3
- package/src/generated/Clone.tsx +1 -3
- package/src/generated/Cloud.tsx +1 -3
- package/src/generated/Code.tsx +1 -3
- package/src/generated/Connect.tsx +1 -3
- package/src/generated/Copy.tsx +1 -3
- package/src/generated/CreditCard.tsx +1 -3
- package/src/generated/CurlyBraces.tsx +1 -3
- package/src/generated/Cursor.tsx +1 -3
- package/src/generated/Dashboard.tsx +1 -3
- package/src/generated/Database.tsx +1 -3
- package/src/generated/Diagram.tsx +1 -3
- package/src/generated/Diagram2.tsx +1 -3
- package/src/generated/Diagram3.tsx +1 -3
- package/src/generated/Disconnect.tsx +1 -3
- package/src/generated/Download.tsx +1 -3
- package/src/generated/Drag.tsx +1 -3
- package/src/generated/Edit.tsx +1 -3
- package/src/generated/Ellipsis.tsx +1 -3
- package/src/generated/Email.tsx +1 -3
- package/src/generated/Export.tsx +1 -3
- package/src/generated/Favorite.tsx +1 -3
- package/src/generated/File.tsx +1 -3
- package/src/generated/Filter.tsx +1 -3
- package/src/generated/Folder.tsx +1 -3
- package/src/generated/FullScreenEnter.tsx +1 -3
- package/src/generated/FullScreenExit.tsx +1 -3
- package/src/generated/Gauge.tsx +1 -3
- package/src/generated/GlobeAmericas.tsx +1 -3
- package/src/generated/GovernmentBuilding.tsx +1 -3
- package/src/generated/Highlight.tsx +1 -3
- package/src/generated/Home.tsx +1 -3
- package/src/generated/Import.tsx +1 -3
- package/src/generated/ImportantWithCircle.tsx +1 -3
- package/src/generated/InfoWithCircle.tsx +1 -3
- package/src/generated/InviteUser.tsx +1 -3
- package/src/generated/Key.tsx +1 -3
- package/src/generated/Laptop.tsx +1 -3
- package/src/generated/Link.tsx +1 -3
- package/src/generated/Lock.tsx +1 -3
- package/src/generated/LogIn.tsx +1 -3
- package/src/generated/LogOut.tsx +1 -3
- package/src/generated/MagnifyingGlass.tsx +1 -3
- package/src/generated/Megaphone.tsx +1 -3
- package/src/generated/Menu.tsx +1 -3
- package/src/generated/Minus.tsx +1 -3
- package/src/generated/NoFilter.tsx +1 -3
- package/src/generated/NotAllowed.tsx +1 -3
- package/src/generated/Note.tsx +1 -3
- package/src/generated/OpenNewTab.tsx +1 -3
- package/src/generated/Pause.tsx +1 -3
- package/src/generated/Person.tsx +1 -3
- package/src/generated/PersonGroup.tsx +1 -3
- package/src/generated/PersonWithLock.tsx +1 -3
- package/src/generated/Play.tsx +1 -3
- package/src/generated/Plus.tsx +1 -3
- package/src/generated/PlusWithCircle.tsx +1 -3
- package/src/generated/QuestionMarkWithCircle.tsx +1 -3
- package/src/generated/Read.tsx +1 -3
- package/src/generated/Redo.tsx +1 -3
- package/src/generated/Refresh.tsx +1 -3
- package/src/generated/Relationship.tsx +1 -3
- package/src/generated/ReplicaSet.tsx +1 -3
- package/src/generated/Resize.tsx +1 -3
- package/src/generated/SMS.tsx +1 -3
- package/src/generated/Save.tsx +1 -3
- package/src/generated/Serverless.tsx +1 -3
- package/src/generated/Settings.tsx +1 -3
- package/src/generated/ShardedCluster.tsx +1 -3
- package/src/generated/Shell.tsx +1 -3
- package/src/generated/SortAscending.tsx +1 -3
- package/src/generated/SortDescending.tsx +1 -3
- package/src/generated/SplitHorizontal.tsx +1 -3
- package/src/generated/SplitVertical.tsx +1 -3
- package/src/generated/Stitch.tsx +1 -3
- package/src/generated/Support.tsx +1 -3
- package/src/generated/Sweep.tsx +1 -3
- package/src/generated/Table.tsx +1 -3
- package/src/generated/Tag.tsx +1 -3
- package/src/generated/TimeSeries.tsx +1 -3
- package/src/generated/Trash.tsx +1 -3
- package/src/generated/Undo.tsx +1 -3
- package/src/generated/University.tsx +1 -3
- package/src/generated/Unlock.tsx +1 -3
- package/src/generated/Unsorted.tsx +1 -3
- package/src/generated/UpDownCarets.tsx +1 -3
- package/src/generated/Upload.tsx +1 -3
- package/src/generated/VerticalEllipsis.tsx +1 -3
- package/src/generated/Visibility.tsx +1 -3
- package/src/generated/VisibilityOff.tsx +1 -3
- package/src/generated/Warning.tsx +1 -3
- package/src/generated/Wizard.tsx +1 -3
- package/src/generated/Wrench.tsx +1 -3
- package/src/generated/Write.tsx +1 -3
- package/src/generated/X.tsx +1 -3
- package/src/generated/XWithCircle.tsx +1 -3
- package/stories.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/glyphCommon.ts","../src/createGlyphComponent.tsx","../src/createIconComponent.tsx","../src/glyphs/index.ts","../src/Icon.tsx","../src/isComponentGlyph.ts"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = typeof Size[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\n };\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { css, cx } from '@leafygreen-ui/emotion';\n\nimport { generateAccessibleProps, Size, sizeMap } from './glyphCommon';\nimport { LGGlyph, SVGR } from './types';\n\n/**\n * Returns a single glyph component.\n * Process custom glyphs to ensure consistent behavior between custom and built-in icons\n * @param glyphName: string - the display name of the icon\n * @param Glyph: SVGR.Component - the SVG icon component\n * @returns LGGlyph.Component\n */\nexport function createGlyphComponent(\n glyphName: string,\n Glyph: SVGR.Component,\n): LGGlyph.Component {\n const GlyphComponent: LGGlyph.Component = ({\n className,\n size = Size.Default,\n fill,\n title,\n 'aria-labelledby': ariaLabelledby,\n 'aria-label': ariaLabel,\n role = 'img',\n ...rest\n }: LGGlyph.ComponentProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n\n const renderedSize = typeof size === 'number' ? size : sizeMap[size];\n\n if (!(role === 'img' || role === 'presentation')) {\n console.warn(\n \"Please provide a valid role to this component. Valid options are 'img' and 'presentation'. If you'd like the Icon to be accessible to screen readers please use 'img', otherwise set the role to 'presentation'.\",\n );\n }\n\n return (\n <Glyph\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n className,\n )}\n height={renderedSize}\n width={renderedSize}\n role={role}\n {...generateAccessibleProps(role, glyphName, {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n })}\n {...rest}\n />\n );\n };\n\n GlyphComponent.displayName = glyphName;\n\n GlyphComponent.isGlyph = true;\n\n GlyphComponent.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([\n PropTypes.oneOf(Object.values(Size)),\n PropTypes.number,\n ]),\n className: PropTypes.string,\n };\n\n return GlyphComponent;\n}\n","import React from 'react';\nimport kebabCase from 'lodash/kebabCase';\nimport PropTypes from 'prop-types';\n\nimport { Size } from './glyphCommon';\nimport { LGGlyph } from './types';\n\n// We omit size here because we map string values for size to numbers in this component.\nexport interface IconProps extends Omit<LGGlyph.ComponentProps, 'size'> {\n /**\n * The name of the icon glyph\n */\n glyph: string;\n\n /**\n * Size of the icon\n */\n size?: Size | number;\n}\n\ntype GlyphObject = Record<string, LGGlyph.Component>;\n\n/**\n * Returns a single component with a `glyph` prop to select the glyph\n * @param glyphs The set of glyphs\n * @returns Icon component\n */\nexport function createIconComponent<G extends GlyphObject = GlyphObject>(\n glyphs: G,\n) {\n const Icon = ({ glyph, ...rest }: IconProps) => {\n const SVGComponent = glyphs[glyph];\n\n if (SVGComponent) {\n return <SVGComponent {...rest} />;\n } else {\n // TODO: improve fuzzy match\n // Suggest the proper icon casing if there's a near match\n const nearMatch = Object.keys(glyphs).find(\n key => kebabCase(key) === kebabCase(glyph),\n );\n console.error(\n 'Error in Icon',\n `Could not find glyph named \"${glyph}\" in the icon set.`,\n nearMatch && `Did you mean \"${nearMatch}?\"`,\n );\n return <></>;\n }\n };\n\n Icon.displayName = 'Icon';\n\n Icon.isGlyph = true;\n\n Icon.propTypes = {\n glyph: PropTypes.oneOf(Object.keys(glyphs)).isRequired,\n size: PropTypes.oneOfType([\n PropTypes.oneOf(Object.values(Size)),\n PropTypes.number,\n ]),\n } as any;\n\n return Icon;\n}\n","import { createGlyphComponent } from '../createGlyphComponent';\nimport { LGGlyph } from '../types';\n\n// Glyphs\nimport ActivityFeed from './ActivityFeed.svg';\nimport AddFile from './AddFile.svg';\nimport Apps from './Apps.svg';\nimport Array from './Array.svg';\nimport ArrowDown from './ArrowDown.svg';\nimport ArrowLeft from './ArrowLeft.svg';\nimport ArrowRight from './ArrowRight.svg';\nimport ArrowUp from './ArrowUp.svg';\nimport Beaker from './Beaker.svg';\nimport Bell from './Bell.svg';\nimport Biometric from './Biometric.svg';\nimport Building from './Building.svg';\nimport Bulb from './Bulb.svg';\nimport Calendar from './Calendar.svg';\nimport CaretDown from './CaretDown.svg';\nimport CaretLeft from './CaretLeft.svg';\nimport CaretRight from './CaretRight.svg';\nimport CaretUp from './CaretUp.svg';\nimport ChartFilled from './ChartFilled.svg';\nimport Charts from './Charts.svg';\nimport Checkmark from './Checkmark.svg';\nimport CheckmarkWithCircle from './CheckmarkWithCircle.svg';\nimport ChevronDown from './ChevronDown.svg';\nimport ChevronLeft from './ChevronLeft.svg';\nimport ChevronRight from './ChevronRight.svg';\nimport ChevronUp from './ChevronUp.svg';\nimport Clock from './Clock.svg';\nimport ClockWithArrow from './ClockWithArrow.svg';\nimport Clone from './Clone.svg';\nimport Cloud from './Cloud.svg';\nimport Code from './Code.svg';\nimport Connect from './Connect.svg';\nimport Copy from './Copy.svg';\nimport CreditCard from './CreditCard.svg';\nimport CurlyBraces from './CurlyBraces.svg';\nimport Cursor from './Cursor.svg';\nimport Dashboard from './Dashboard.svg';\nimport Database from './Database.svg';\nimport Diagram from './Diagram.svg';\nimport Diagram2 from './Diagram2.svg';\nimport Diagram3 from './Diagram3.svg';\nimport Disconnect from './Disconnect.svg';\nimport Download from './Download.svg';\nimport Drag from './Drag.svg';\nimport Edit from './Edit.svg';\nimport Ellipsis from './Ellipsis.svg';\nimport Email from './Email.svg';\nimport Export from './Export.svg';\nimport Favorite from './Favorite.svg';\nimport File from './File.svg';\nimport Filter from './Filter.svg';\nimport Folder from './Folder.svg';\nimport FullScreenEnter from './FullScreenEnter.svg';\nimport FullScreenExit from './FullScreenExit.svg';\nimport Gauge from './Gauge.svg';\nimport GlobeAmericas from './GlobeAmericas.svg';\nimport GovernmentBuilding from './GovernmentBuilding.svg';\nimport Highlight from './Highlight.svg';\nimport Home from './Home.svg';\nimport Import from './Import.svg';\nimport ImportantWithCircle from './ImportantWithCircle.svg';\nimport InfoWithCircle from './InfoWithCircle.svg';\nimport InviteUser from './InviteUser.svg';\nimport Key from './Key.svg';\nimport Laptop from './Laptop.svg';\nimport Link from './Link.svg';\nimport Lock from './Lock.svg';\nimport LogIn from './LogIn.svg';\nimport LogOut from './LogOut.svg';\nimport MagnifyingGlass from './MagnifyingGlass.svg';\nimport Megaphone from './Megaphone.svg';\nimport Menu from './Menu.svg';\nimport Minus from './Minus.svg';\nimport NoFilter from './NoFilter.svg';\nimport NotAllowed from './NotAllowed.svg';\nimport Note from './Note.svg';\nimport OpenNewTab from './OpenNewTab.svg';\nimport Pause from './Pause.svg';\nimport Person from './Person.svg';\nimport PersonGroup from './PersonGroup.svg';\nimport PersonWithLock from './PersonWithLock.svg';\nimport Play from './Play.svg';\nimport Plus from './Plus.svg';\nimport PlusWithCircle from './PlusWithCircle.svg';\nimport QuestionMarkWithCircle from './QuestionMarkWithCircle.svg';\nimport Read from './Read.svg';\nimport Redo from './Redo.svg';\nimport Refresh from './Refresh.svg';\nimport Relationship from './Relationship.svg';\nimport ReplicaSet from './ReplicaSet.svg';\nimport Resize from './Resize.svg';\nimport Save from './Save.svg';\nimport Serverless from './Serverless.svg';\nimport Settings from './Settings.svg';\nimport ShardedCluster from './ShardedCluster.svg';\nimport Shell from './Shell.svg';\nimport SMS from './SMS.svg';\nimport SortAscending from './SortAscending.svg';\nimport SortDescending from './SortDescending.svg';\nimport SplitHorizontal from './SplitHorizontal.svg';\nimport SplitVertical from './SplitVertical.svg';\nimport Stitch from './Stitch.svg';\nimport Support from './Support.svg';\nimport Sweep from './Sweep.svg';\nimport Table from './Table.svg';\nimport Tag from './Tag.svg';\nimport TimeSeries from './TimeSeries.svg';\nimport Trash from './Trash.svg';\nimport Undo from './Undo.svg';\nimport University from './University.svg';\nimport Unlock from './Unlock.svg';\nimport Unsorted from './Unsorted.svg';\nimport UpDownCarets from './UpDownCarets.svg';\nimport Upload from './Upload.svg';\nimport VerticalEllipsis from './VerticalEllipsis.svg';\nimport Visibility from './Visibility.svg';\nimport VisibilityOff from './VisibilityOff.svg';\nimport Warning from './Warning.svg';\nimport Wizard from './Wizard.svg';\nimport Wrench from './Wrench.svg';\nimport Write from './Write.svg';\nimport X from './X.svg';\nimport XWithCircle from './XWithCircle.svg';\n\nconst _glyphs = {\n ActivityFeed,\n AddFile,\n Apps,\n Array,\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n Beaker,\n Bell,\n Biometric,\n Building,\n Bulb,\n Calendar,\n CaretDown,\n CaretLeft,\n CaretRight,\n CaretUp,\n ChartFilled,\n Charts,\n Checkmark,\n CheckmarkWithCircle,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n Clock,\n ClockWithArrow,\n Clone,\n Cloud,\n Code,\n Connect,\n Copy,\n CreditCard,\n CurlyBraces,\n Cursor,\n Dashboard,\n Database,\n Diagram,\n Diagram2,\n Diagram3,\n Disconnect,\n Download,\n Drag,\n Edit,\n Ellipsis,\n Email,\n Export,\n Favorite,\n File,\n Filter,\n FullScreenEnter,\n FullScreenExit,\n Folder,\n Gauge,\n GlobeAmericas,\n GovernmentBuilding,\n Highlight,\n Home,\n Import,\n ImportantWithCircle,\n InfoWithCircle,\n InviteUser,\n Key,\n Laptop,\n Link,\n Lock,\n LogIn,\n LogOut,\n MagnifyingGlass,\n Megaphone,\n Menu,\n Minus,\n NoFilter,\n NotAllowed,\n Note,\n OpenNewTab,\n Pause,\n Person,\n PersonGroup,\n PersonWithLock,\n Play,\n Plus,\n PlusWithCircle,\n QuestionMarkWithCircle,\n Read,\n Redo,\n Refresh,\n Relationship,\n ReplicaSet,\n Resize,\n Save,\n Serverless,\n ShardedCluster,\n Settings,\n Shell,\n SMS,\n SortAscending,\n SortDescending,\n SplitHorizontal,\n SplitVertical,\n Stitch,\n Support,\n Sweep,\n Table,\n Tag,\n TimeSeries,\n Trash,\n Undo,\n University,\n Unlock,\n Unsorted,\n UpDownCarets,\n Upload,\n VerticalEllipsis,\n Visibility,\n VisibilityOff,\n Warning,\n Wizard,\n Wrench,\n Write,\n X,\n XWithCircle,\n} as const;\n\nexport type GlyphName = keyof typeof _glyphs;\n\nconst glyphKeys = Object.keys(_glyphs) as Array<GlyphName>;\n\nexport const glyphs = glyphKeys.reduce((acc, name) => {\n acc[name] = createGlyphComponent(name, _glyphs[name]);\n\n return acc;\n}, {} as Record<GlyphName, LGGlyph.Component>);\n","import { createIconComponent } from './createIconComponent';\nimport { glyphs } from './glyphs';\n\nexport const Icon = createIconComponent(glyphs);\n","import { ComponentType, isValidElement, ReactNode } from 'react';\n\nimport { LGGlyph } from './types';\n\ntype ExtendedComponentType = ComponentType<any> & {\n [key: string]: any;\n};\n/**\n * Helper type to check if element is a LeafyGreen UI Glyph\n * @internal\n */\nfunction isComponentGlyph(node: ReactNode): node is LGGlyph.Element;\nfunction isComponentGlyph(\n component: ExtendedComponentType,\n): component is LGGlyph.Component;\nfunction isComponentGlyph(\n child: ReactNode | ExtendedComponentType,\n): child is LGGlyph.Element | LGGlyph.Component {\n // If we're received a rendered component (i.e. ReactNode)\n if (isValidElement(child)) {\n return (\n child != null &&\n typeof child === 'object' &&\n 'type' in child &&\n (child.type as any).isGlyph === true\n );\n }\n\n // If we've recieved a component function\n return (\n child != null &&\n typeof child === 'function' &&\n 'isGlyph' in child &&\n child.isGlyph === true\n );\n}\n\nexport { isComponentGlyph };\n"],"names":["_templateObject","Size","Small","Default","Large","XLarge","sizeMap","small","default","large","xlarge","_excluded","createGlyphComponent","glyphName","Glyph","GlyphComponent","_ref","_generateAccessiblePr","className","_ref$size","size","fill","title","ariaLabelledby","ariaLabel","_ref$role","role","rest","_objectWithoutProperties","fillStyle","css","renderedSize","console","warn","React","createElement","_extends","cx","_defineProperty","height","width","_ref2","name","concat","replace","alt","generateAccessibleProps","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","oneOf","Object","values","number","createIconComponent","glyphs","Icon","glyph","SVGComponent","nearMatch","keys","find","key","kebabCase","error","Fragment","isRequired","_glyphs","ActivityFeed","AddFile","Apps","Array","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Beaker","Bell","Biometric","Building","Bulb","Calendar","CaretDown","CaretLeft","CaretRight","CaretUp","ChartFilled","Charts","Checkmark","CheckmarkWithCircle","ChevronDown","ChevronLeft","ChevronRight","ChevronUp","Clock","ClockWithArrow","Clone","Cloud","Code","Connect","Copy","CreditCard","CurlyBraces","Cursor","Dashboard","Database","Diagram","Diagram2","Diagram3","Disconnect","Download","Drag","Edit","Ellipsis","Email","Export","Favorite","File","Filter","FullScreenEnter","FullScreenExit","Folder","Gauge","GlobeAmericas","GovernmentBuilding","Highlight","Home","Import","ImportantWithCircle","InfoWithCircle","InviteUser","Key","Laptop","Link","Lock","LogIn","LogOut","MagnifyingGlass","Megaphone","Menu","Minus","NoFilter","NotAllowed","Note","OpenNewTab","Pause","Person","PersonGroup","PersonWithLock","Play","Plus","PlusWithCircle","QuestionMarkWithCircle","Read","Redo","Refresh","Relationship","ReplicaSet","Resize","Save","Serverless","ShardedCluster","Settings","Shell","SMS","SortAscending","SortDescending","SplitHorizontal","SplitVertical","Stitch","Support","Sweep","Table","Tag","TimeSeries","Trash","Undo","University","Unlock","Unsorted","UpDownCarets","Upload","VerticalEllipsis","Visibility","VisibilityOff","Warning","Wizard","Wrench","Write","X","XWithCircle","reduce","acc","child","isValidElement","_typeof","type"],"mappings":"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CAC,mYACAC,gnBACAC,6mBACAC,ySACAC,gdACAC,2bACAC,siBACAC,6pBACAC,ioBACAC,qmBACAC,iWACAC,iYACAC,koBACAC,2aACAC,gjBACAC,41BACAC,qaACAC,grBACAC,qvBACAC,4bACAC,kaACAC,2UACAC,8QACAC,idACAC,gZACAC,0hBACAC,mrBACAC,kVACAC,8kBACAC,0wBACAC,otBACAC,wTACAC,+XACAC,+VACAC,8pBACAC,guCACAC,yhBACAC,ywBACAC,ibACAC,6eACAC,6aACAC,ylCACAC,kYACAC,ovBACAC,8lCACAC,8aACAC,ueACAC,2dACAC,+dACAC,mWACAC,2VACAC,qTACAC,8bACAC,yxBACAC,wcACAC,qYACAC,6mBACAC,mXACAC,+gBACAC,i5BACAC,meACAC,0jBACAC,scACAC,yjBACAC,gZACAC,4xBACAC,ooCACAC,oaACAC,gvBACAC,8pBACAC,+tCACAC,+fACAC,ucAGSvI,GADKJ,OAAOS,KAAKO,IACE4H,QAAO,SAAUC,EAAKzJ,GAElD,OADAyJ,EAAIzJ,GAAQ9B,EAAqB8B,EAAM4B,GAAQ5B,IACxCyJ,IACN,IC5PQxI,GAAOF,GAAoBC,+JCCtC,SAA0B0I,GAExB,OAAkBC,EAAAA,eAAeD,GACf,MAATA,GAAoC,WAAnBE,EAAQF,IAAuB,SAAUA,IAAgC,IAAvBA,EAAMG,KAAKvJ,QAIvE,MAAToJ,GAAkC,mBAAVA,GAAwB,YAAaA,IAA2B,IAAlBA,EAAMpJ"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/glyphCommon.ts","../src/createGlyphComponent.tsx","../src/createIconComponent.tsx","../src/glyphs/index.ts","../src/Icon.tsx","../src/isComponentGlyph.ts"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = typeof Size[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\n };\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { css, cx } from '@leafygreen-ui/emotion';\n\nimport { generateAccessibleProps, Size, sizeMap } from './glyphCommon';\nimport { LGGlyph, SVGR } from './types';\n\n/**\n * Returns a single glyph component.\n * Process custom glyphs to ensure consistent behavior between custom and built-in icons\n * @param glyphName: string - the display name of the icon\n * @param Glyph: SVGR.Component - the SVG icon component\n * @returns LGGlyph.Component\n */\nexport function createGlyphComponent(\n glyphName: string,\n Glyph: SVGR.Component,\n): LGGlyph.Component {\n const GlyphComponent: LGGlyph.Component = ({\n className,\n size = Size.Default,\n fill,\n title,\n 'aria-labelledby': ariaLabelledby,\n 'aria-label': ariaLabel,\n role = 'img',\n ...rest\n }: LGGlyph.ComponentProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n\n const renderedSize = typeof size === 'number' ? size : sizeMap[size];\n\n if (!(role === 'img' || role === 'presentation')) {\n console.warn(\n \"Please provide a valid role to this component. Valid options are 'img' and 'presentation'. If you'd like the Icon to be accessible to screen readers please use 'img', otherwise set the role to 'presentation'.\",\n );\n }\n\n return (\n <Glyph\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n className,\n )}\n height={renderedSize}\n width={renderedSize}\n role={role}\n {...generateAccessibleProps(role, glyphName, {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n })}\n {...rest}\n />\n );\n };\n\n GlyphComponent.displayName = glyphName;\n\n GlyphComponent.isGlyph = true;\n\n GlyphComponent.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([\n PropTypes.oneOf(Object.values(Size)),\n PropTypes.number,\n ]),\n className: PropTypes.string,\n };\n\n return GlyphComponent;\n}\n","import React from 'react';\nimport kebabCase from 'lodash/kebabCase';\nimport PropTypes from 'prop-types';\n\nimport { Size } from './glyphCommon';\nimport { LGGlyph } from './types';\n\n// We omit size here because we map string values for size to numbers in this component.\nexport interface IconProps extends Omit<LGGlyph.ComponentProps, 'size'> {\n /**\n * The name of the icon glyph\n */\n glyph: string;\n\n /**\n * Size of the icon\n */\n size?: Size | number;\n}\n\ntype GlyphObject = Record<string, LGGlyph.Component>;\n\n/**\n * Returns a single component with a `glyph` prop to select the glyph\n * @param glyphs The set of glyphs\n * @returns Icon component\n */\nexport function createIconComponent<G extends GlyphObject = GlyphObject>(\n glyphs: G,\n) {\n const Icon = ({ glyph, ...rest }: IconProps) => {\n const SVGComponent = glyphs[glyph];\n\n if (SVGComponent) {\n return <SVGComponent {...rest} />;\n } else {\n // TODO: improve fuzzy match\n // Suggest the proper icon casing if there's a near match\n const nearMatch = Object.keys(glyphs).find(\n key => kebabCase(key) === kebabCase(glyph),\n );\n console.error(\n 'Error in Icon',\n `Could not find glyph named \"${glyph}\" in the icon set.`,\n nearMatch && `Did you mean \"${nearMatch}?\"`,\n );\n return <></>;\n }\n };\n\n Icon.displayName = 'Icon';\n\n Icon.isGlyph = true;\n\n Icon.propTypes = {\n glyph: PropTypes.oneOf(Object.keys(glyphs)).isRequired,\n size: PropTypes.oneOfType([\n PropTypes.oneOf(Object.values(Size)),\n PropTypes.number,\n ]),\n } as any;\n\n return Icon;\n}\n","import { createGlyphComponent } from '../createGlyphComponent';\nimport { LGGlyph } from '../types';\n\n// Glyphs\nimport ActivityFeed from './ActivityFeed.svg';\nimport AddFile from './AddFile.svg';\nimport Apps from './Apps.svg';\nimport Array from './Array.svg';\nimport ArrowDown from './ArrowDown.svg';\nimport ArrowLeft from './ArrowLeft.svg';\nimport ArrowRight from './ArrowRight.svg';\nimport ArrowUp from './ArrowUp.svg';\nimport Beaker from './Beaker.svg';\nimport Bell from './Bell.svg';\nimport Biometric from './Biometric.svg';\nimport Building from './Building.svg';\nimport Bulb from './Bulb.svg';\nimport Calendar from './Calendar.svg';\nimport CaretDown from './CaretDown.svg';\nimport CaretLeft from './CaretLeft.svg';\nimport CaretRight from './CaretRight.svg';\nimport CaretUp from './CaretUp.svg';\nimport ChartFilled from './ChartFilled.svg';\nimport Charts from './Charts.svg';\nimport Checkmark from './Checkmark.svg';\nimport CheckmarkWithCircle from './CheckmarkWithCircle.svg';\nimport ChevronDown from './ChevronDown.svg';\nimport ChevronLeft from './ChevronLeft.svg';\nimport ChevronRight from './ChevronRight.svg';\nimport ChevronUp from './ChevronUp.svg';\nimport Clock from './Clock.svg';\nimport ClockWithArrow from './ClockWithArrow.svg';\nimport Clone from './Clone.svg';\nimport Cloud from './Cloud.svg';\nimport Code from './Code.svg';\nimport Connect from './Connect.svg';\nimport Copy from './Copy.svg';\nimport CreditCard from './CreditCard.svg';\nimport CurlyBraces from './CurlyBraces.svg';\nimport Cursor from './Cursor.svg';\nimport Dashboard from './Dashboard.svg';\nimport Database from './Database.svg';\nimport Diagram from './Diagram.svg';\nimport Diagram2 from './Diagram2.svg';\nimport Diagram3 from './Diagram3.svg';\nimport Disconnect from './Disconnect.svg';\nimport Download from './Download.svg';\nimport Drag from './Drag.svg';\nimport Edit from './Edit.svg';\nimport Ellipsis from './Ellipsis.svg';\nimport Email from './Email.svg';\nimport Export from './Export.svg';\nimport Favorite from './Favorite.svg';\nimport File from './File.svg';\nimport Filter from './Filter.svg';\nimport Folder from './Folder.svg';\nimport FullScreenEnter from './FullScreenEnter.svg';\nimport FullScreenExit from './FullScreenExit.svg';\nimport Gauge from './Gauge.svg';\nimport GlobeAmericas from './GlobeAmericas.svg';\nimport GovernmentBuilding from './GovernmentBuilding.svg';\nimport Highlight from './Highlight.svg';\nimport Home from './Home.svg';\nimport Import from './Import.svg';\nimport ImportantWithCircle from './ImportantWithCircle.svg';\nimport InfoWithCircle from './InfoWithCircle.svg';\nimport InviteUser from './InviteUser.svg';\nimport Key from './Key.svg';\nimport Laptop from './Laptop.svg';\nimport Link from './Link.svg';\nimport Lock from './Lock.svg';\nimport LogIn from './LogIn.svg';\nimport LogOut from './LogOut.svg';\nimport MagnifyingGlass from './MagnifyingGlass.svg';\nimport Megaphone from './Megaphone.svg';\nimport Menu from './Menu.svg';\nimport Minus from './Minus.svg';\nimport NoFilter from './NoFilter.svg';\nimport NotAllowed from './NotAllowed.svg';\nimport Note from './Note.svg';\nimport OpenNewTab from './OpenNewTab.svg';\nimport Pause from './Pause.svg';\nimport Person from './Person.svg';\nimport PersonGroup from './PersonGroup.svg';\nimport PersonWithLock from './PersonWithLock.svg';\nimport Play from './Play.svg';\nimport Plus from './Plus.svg';\nimport PlusWithCircle from './PlusWithCircle.svg';\nimport QuestionMarkWithCircle from './QuestionMarkWithCircle.svg';\nimport Read from './Read.svg';\nimport Redo from './Redo.svg';\nimport Refresh from './Refresh.svg';\nimport Relationship from './Relationship.svg';\nimport ReplicaSet from './ReplicaSet.svg';\nimport Resize from './Resize.svg';\nimport Save from './Save.svg';\nimport Serverless from './Serverless.svg';\nimport Settings from './Settings.svg';\nimport ShardedCluster from './ShardedCluster.svg';\nimport Shell from './Shell.svg';\nimport SMS from './SMS.svg';\nimport SortAscending from './SortAscending.svg';\nimport SortDescending from './SortDescending.svg';\nimport SplitHorizontal from './SplitHorizontal.svg';\nimport SplitVertical from './SplitVertical.svg';\nimport Stitch from './Stitch.svg';\nimport Support from './Support.svg';\nimport Sweep from './Sweep.svg';\nimport Table from './Table.svg';\nimport Tag from './Tag.svg';\nimport TimeSeries from './TimeSeries.svg';\nimport Trash from './Trash.svg';\nimport Undo from './Undo.svg';\nimport University from './University.svg';\nimport Unlock from './Unlock.svg';\nimport Unsorted from './Unsorted.svg';\nimport UpDownCarets from './UpDownCarets.svg';\nimport Upload from './Upload.svg';\nimport VerticalEllipsis from './VerticalEllipsis.svg';\nimport Visibility from './Visibility.svg';\nimport VisibilityOff from './VisibilityOff.svg';\nimport Warning from './Warning.svg';\nimport Wizard from './Wizard.svg';\nimport Wrench from './Wrench.svg';\nimport Write from './Write.svg';\nimport X from './X.svg';\nimport XWithCircle from './XWithCircle.svg';\n\nconst _glyphs = {\n ActivityFeed,\n AddFile,\n Apps,\n Array,\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n Beaker,\n Bell,\n Biometric,\n Building,\n Bulb,\n Calendar,\n CaretDown,\n CaretLeft,\n CaretRight,\n CaretUp,\n ChartFilled,\n Charts,\n Checkmark,\n CheckmarkWithCircle,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n Clock,\n ClockWithArrow,\n Clone,\n Cloud,\n Code,\n Connect,\n Copy,\n CreditCard,\n CurlyBraces,\n Cursor,\n Dashboard,\n Database,\n Diagram,\n Diagram2,\n Diagram3,\n Disconnect,\n Download,\n Drag,\n Edit,\n Ellipsis,\n Email,\n Export,\n Favorite,\n File,\n Filter,\n FullScreenEnter,\n FullScreenExit,\n Folder,\n Gauge,\n GlobeAmericas,\n GovernmentBuilding,\n Highlight,\n Home,\n Import,\n ImportantWithCircle,\n InfoWithCircle,\n InviteUser,\n Key,\n Laptop,\n Link,\n Lock,\n LogIn,\n LogOut,\n MagnifyingGlass,\n Megaphone,\n Menu,\n Minus,\n NoFilter,\n NotAllowed,\n Note,\n OpenNewTab,\n Pause,\n Person,\n PersonGroup,\n PersonWithLock,\n Play,\n Plus,\n PlusWithCircle,\n QuestionMarkWithCircle,\n Read,\n Redo,\n Refresh,\n Relationship,\n ReplicaSet,\n Resize,\n Save,\n Serverless,\n ShardedCluster,\n Settings,\n Shell,\n SMS,\n SortAscending,\n SortDescending,\n SplitHorizontal,\n SplitVertical,\n Stitch,\n Support,\n Sweep,\n Table,\n Tag,\n TimeSeries,\n Trash,\n Undo,\n University,\n Unlock,\n Unsorted,\n UpDownCarets,\n Upload,\n VerticalEllipsis,\n Visibility,\n VisibilityOff,\n Warning,\n Wizard,\n Wrench,\n Write,\n X,\n XWithCircle,\n} as const;\n\nexport type GlyphName = keyof typeof _glyphs;\n\nconst glyphKeys = Object.keys(_glyphs) as Array<GlyphName>;\n\nexport const glyphs = glyphKeys.reduce((acc, name) => {\n acc[name] = createGlyphComponent(name, _glyphs[name]);\n\n return acc;\n}, {} as Record<GlyphName, LGGlyph.Component>);\n","import { createIconComponent } from './createIconComponent';\nimport { glyphs } from './glyphs';\n\nexport const Icon = createIconComponent(glyphs);\n","import { ComponentType, isValidElement, ReactNode } from 'react';\n\nimport { LGGlyph } from './types';\n\ntype ExtendedComponentType = ComponentType<any> & {\n [key: string]: any;\n};\n/**\n * Helper type to check if element is a LeafyGreen UI Glyph\n * @internal\n */\nfunction isComponentGlyph(node: ReactNode): node is LGGlyph.Element;\nfunction isComponentGlyph(\n component: ExtendedComponentType,\n): component is LGGlyph.Component;\nfunction isComponentGlyph(\n child: ReactNode | ExtendedComponentType,\n): child is LGGlyph.Element | LGGlyph.Component {\n // If we're received a rendered component (i.e. ReactNode)\n if (isValidElement(child)) {\n return (\n child != null &&\n typeof child === 'object' &&\n 'type' in child &&\n (child.type as any).isGlyph === true\n );\n }\n\n // If we've recieved a component function\n return (\n child != null &&\n typeof child === 'function' &&\n 'isGlyph' in child &&\n child.isGlyph === true\n );\n}\n\nexport { isComponentGlyph };\n"],"names":["_templateObject","Size","Small","Default","Large","XLarge","sizeMap","small","default","large","xlarge","_excluded","createGlyphComponent","glyphName","Glyph","GlyphComponent","_ref","_generateAccessiblePr","className","_ref$size","size","fill","title","ariaLabelledby","ariaLabel","_ref$role","role","rest","_objectWithoutProperties","fillStyle","css","renderedSize","console","warn","React","createElement","_extends","cx","_defineProperty","height","width","_ref2","name","concat","replace","alt","generateAccessibleProps","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","oneOf","Object","values","number","createIconComponent","glyphs","Icon","glyph","SVGComponent","nearMatch","keys","find","key","kebabCase","error","Fragment","isRequired","_glyphs","ActivityFeed","AddFile","Apps","Array","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Beaker","Bell","Biometric","Building","Bulb","Calendar","CaretDown","CaretLeft","CaretRight","CaretUp","ChartFilled","Charts","Checkmark","CheckmarkWithCircle","ChevronDown","ChevronLeft","ChevronRight","ChevronUp","Clock","ClockWithArrow","Clone","Cloud","Code","Connect","Copy","CreditCard","CurlyBraces","Cursor","Dashboard","Database","Diagram","Diagram2","Diagram3","Disconnect","Download","Drag","Edit","Ellipsis","Email","Export","Favorite","File","Filter","FullScreenEnter","FullScreenExit","Folder","Gauge","GlobeAmericas","GovernmentBuilding","Highlight","Home","Import","ImportantWithCircle","InfoWithCircle","InviteUser","Key","Laptop","Link","Lock","LogIn","LogOut","MagnifyingGlass","Megaphone","Menu","Minus","NoFilter","NotAllowed","Note","OpenNewTab","Pause","Person","PersonGroup","PersonWithLock","Play","Plus","PlusWithCircle","QuestionMarkWithCircle","Read","Redo","Refresh","Relationship","ReplicaSet","Resize","Save","Serverless","ShardedCluster","Settings","Shell","SMS","SortAscending","SortDescending","SplitHorizontal","SplitVertical","Stitch","Support","Sweep","Table","Tag","TimeSeries","Trash","Undo","University","Unlock","Unsorted","UpDownCarets","Upload","VerticalEllipsis","Visibility","VisibilityOff","Warning","Wizard","Wrench","Write","X","XWithCircle","reduce","acc","child","isValidElement","_typeof","type"],"mappings":"qnEACU,ICGNA,EDHOC,EAAO,CAChBC,MAAO,QACPC,QAAS,UACTC,MAAO,QACPC,OAAQ,UAECC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICNV,IAAIC,EAAY,CAAC,YAAa,OAAQ,OAAQ,QAAS,kBAAmB,aAAc,QAYjF,SAASC,EAAqBC,EAAWC,GAC9C,IAAIC,EAAiB,SAAwBC,GAC3C,IAAIC,MACAC,EAAYF,EAAKE,UACnBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuBlB,EAAKE,QAAUgB,EAC7CE,EAAOL,EAAKK,KACZC,EAAQN,EAAKM,MACbC,EAAiBP,EAAK,mBACtBQ,EAAYR,EAAK,cACjBS,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAOC,EAAyBZ,EAAML,GACpCkB,EAAYC,EAAAA,IAAI9B,MAA6D,CAAC,kBAAmB,6BAA7DA,4EAA2EqB,GAC/GU,EAA+B,iBAATX,EAAoBA,EAAOd,EAAQc,GAI7D,MAHe,QAATM,GAA2B,iBAATA,GACtBM,QAAQC,KAAK,oNAEKC,UAAMC,cAAcrB,EAAOsB,EAAS,CACtDlB,UAAWmB,EAAAA,GAAGC,EAAgB,GAAIT,EAAmB,MAARR,GAAeH,GAC5DqB,OAAQR,EACRS,MAAOT,EACPL,KAAMA,GD1BL,SAAiCA,EAAMb,EAAWG,GACvD,IAAIyB,EAmBwBC,EAlBxBlB,EAAYR,EAAK,cACnBO,EAAiBP,EAAK,mBACtBM,EAAQN,EAAKM,MACf,OAAQI,GACN,IAAK,MACH,OAAKF,GAAcD,GAAmBD,GAKnBgB,EAAZG,EAAQ,GAA2B,kBAAmBlB,GAAiBe,EAAgBG,EAAO,aAAcjB,GAAYc,EAAgBG,EAAO,QAASnB,GAAQmB,GAJ9J,CACL,cAWoBC,EAXQ7B,EAY7B,GAAG8B,OAAOD,EAAKE,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCWNC,CAAwBpB,EAAMb,GAE9ByB,EAF0CrB,EAAwB,CACnEK,MAAOA,GACiC,aAAcE,GAAYc,EAAgBrB,EAAuB,kBAAmBM,GAAiBN,IAAyBU,KAS1K,OAPAZ,EAAegC,YAAclC,EAC7BE,EAAeiC,SAAU,EACzBjC,EAAekC,UAAY,CACzB5B,KAAM6B,EAAS,QAACC,OAChB/B,KAAM8B,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,MAAMC,OAAOC,OAAOtD,IAAQiD,EAAS,QAACM,SAC3EtC,UAAWgC,EAAS,QAACC,QAEhBpC,EClDT,wZAAIJ,GAAY,CAAC,SAaV,SAAS8C,GAAoBC,GAClC,IAAIC,EAAO,SAAc3C,GACvB,IAAI4C,EAAQ5C,EAAK4C,MACfjC,EAAOC,EAAyBZ,EAAML,IACpCkD,EAAeH,EAAOE,GAC1B,GAAIC,EACF,OAAoB3B,UAAMC,cAAc0B,EAAclC,GAItD,IAAImC,EAAYR,OAAOS,KAAKL,GAAQM,MAAK,SAAUC,GACjD,OAAOC,EAAS,QAACD,KAASC,EAAS,QAACN,MAGtC,OADA5B,QAAQmC,MAAM,gBAAiB,+BAAgCxB,OAAOiB,EAAO,sBAAwBE,GAAa,iBAAkBnB,OAAOmB,EAAW,OAClI5B,EAAK,QAACC,cAAcD,EAAK,QAACkC,SAAU,OAS5D,OANAT,EAAKZ,YAAc,OACnBY,EAAKX,SAAU,EACfW,EAAKV,UAAY,CACfW,MAAOV,EAAS,QAACG,MAAMC,OAAOS,KAAKL,IAASW,WAC5CjD,KAAM8B,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,MAAMC,OAAOC,OAAOtD,IAAQiD,EAAS,QAACM,UAEtEG,+v3BCwFT,IAAIW,GAAU,CACZC,kqBACAC,uhBACAC,kSACAC,2bACAC,kbACAC,sbACAC,kbACAC,ibACAC,qiCACAC,ydACAC,63BACAC,6bACAC,+bACAC,8ZACAC,+TACAC,8TACAC,iUACAC,4TACAC,sdACAC,qZACAC,8ZACAC,qZACAC,maACAC,oaACAC,qaACAC,maACAC,gZACAC,gmBACAC,gZACAC,kbACAC,2sBACAC,qyBACAC,yxBACAC,2RACAC,s3BACAC,kcACAC,wTACAC,gqCACAC,8oBACAC,wtBACAC,usBACAC,gwBACAC,sfACAC,mYACAC,yWACAC,qYACAC,+mBACAC,wnBACAC,6fACAC,qYACAC,mYACAC,gnBACAC,6mBACAC,ySACAC,gdACAC,2bACAC,siBACAC,6pBACAC,ioBACAC,qmBACAC,iWACAC,iYACAC,koBACAC,2aACAC,gjBACAC,41BACAC,qaACAC,grBACAC,qvBACAC,4bACAC,kaACAC,2UACAC,8QACAC,idACAC,gZACAC,0hBACAC,mrBACAC,kVACAC,8kBACAC,0wBACAC,otBACAC,wTACAC,+XACAC,+VACAC,8pBACAC,guCACAC,yhBACAC,ywBACAC,ibACAC,6eACAC,6aACAC,ylCACAC,kYACAC,ovBACAC,8lCACAC,8aACAC,ueACAC,2dACAC,+dACAC,mWACAC,2VACAC,qTACAC,8bACAC,yxBACAC,wcACAC,qYACAC,6mBACAC,mXACAC,+gBACAC,i5BACAC,meACAC,0jBACAC,scACAC,yjBACAC,gZACAC,4xBACAC,ooCACAC,oaACAC,gvBACAC,8pBACAC,+tCACAC,+fACAC,ucAGSvI,GADKJ,OAAOS,KAAKO,IACE4H,QAAO,SAAUC,EAAKzJ,GAElD,OADAyJ,EAAIzJ,GAAQ9B,EAAqB8B,EAAM4B,GAAQ5B,IACxCyJ,IACN,IC5PQxI,GAAOF,GAAoBC,+JCMtC,SAA0B0I,GAExB,OAAkBC,EAAAA,eAAeD,GACf,MAATA,GAAoC,WAAnBE,EAAQF,IAAuB,SAAUA,IAAgC,IAAvBA,EAAMG,KAAKvJ,QAIvE,MAAToJ,GAAkC,mBAAVA,GAAwB,YAAaA,IAA2B,IAAlBA,EAAMpJ"}
|
package/package.json
CHANGED
package/src/Icon.story.tsx
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
// TODO: Generate Icon props with controls
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { StoryFn } from '@storybook/react';
|
|
4
4
|
|
|
5
5
|
import { css } from '@leafygreen-ui/emotion';
|
|
6
|
+
import { StoryMetaType } from '@leafygreen-ui/lib';
|
|
6
7
|
import { palette } from '@leafygreen-ui/palette';
|
|
7
8
|
|
|
8
|
-
import { IconProps } from './createIconComponent';
|
|
9
|
-
import { Size } from './glyphCommon';
|
|
10
9
|
import { GlyphName } from './glyphs';
|
|
11
|
-
import Icon, { glyphs } from '.';
|
|
10
|
+
import Icon, { glyphs, IconProps, Size } from '.';
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
const meta: StoryMetaType<typeof Icon> = {
|
|
14
13
|
title: 'Components/Icon',
|
|
15
14
|
component: Icon,
|
|
16
15
|
parameters: {
|
|
@@ -27,7 +26,9 @@ export default {
|
|
|
27
26
|
},
|
|
28
27
|
glyph: { control: 'none' },
|
|
29
28
|
},
|
|
30
|
-
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default meta;
|
|
31
32
|
|
|
32
33
|
const containerStyle = css`
|
|
33
34
|
width: 150px;
|
|
@@ -49,7 +50,7 @@ const textStyle = css`
|
|
|
49
50
|
margin-top: 0.5rem;
|
|
50
51
|
`;
|
|
51
52
|
|
|
52
|
-
export const Single:
|
|
53
|
+
export const Single: StoryFn<IconProps> = (args: IconProps) => {
|
|
53
54
|
if (!args.glyph) {
|
|
54
55
|
args = {
|
|
55
56
|
...args,
|
|
@@ -67,7 +68,7 @@ Single.argTypes = {
|
|
|
67
68
|
},
|
|
68
69
|
};
|
|
69
70
|
|
|
70
|
-
export const AllIcons:
|
|
71
|
+
export const AllIcons: StoryFn<IconProps> = (
|
|
71
72
|
args: Omit<IconProps, 'glyph'>,
|
|
72
73
|
) => (
|
|
73
74
|
<div
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 1283b3426ccc71fb1c4a0d1cb1328eb7
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ActivityFeedProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ActivityFeed = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -64,7 +63,6 @@ const ActivityFeed = ({
|
|
|
64
63
|
</svg>
|
|
65
64
|
);
|
|
66
65
|
};
|
|
67
|
-
|
|
68
66
|
ActivityFeed.displayName = 'ActivityFeed';
|
|
69
67
|
ActivityFeed.isGlyph = true;
|
|
70
68
|
ActivityFeed.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 5ae932dadfe78822214b7ee083b44487
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface AddFileProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const AddFile = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const AddFile = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
AddFile.displayName = 'AddFile';
|
|
63
61
|
AddFile.isGlyph = true;
|
|
64
62
|
AddFile.propTypes = {
|
package/src/generated/Apps.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum c0ba25879d1b6894c59578bc7dfd8ec2
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface AppsProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Apps = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Apps = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Apps.displayName = 'Apps';
|
|
63
61
|
Apps.isGlyph = true;
|
|
64
62
|
Apps.propTypes = {
|
package/src/generated/Array.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 9a75a502b4295e0623c6b1093cfa927e
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ArrayProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Array = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -60,7 +59,6 @@ const Array = ({
|
|
|
60
59
|
</svg>
|
|
61
60
|
);
|
|
62
61
|
};
|
|
63
|
-
|
|
64
62
|
Array.displayName = 'Array';
|
|
65
63
|
Array.isGlyph = true;
|
|
66
64
|
Array.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 888632c3ba6580eaf948506dcfde1a91
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ArrowDownProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ArrowDown = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const ArrowDown = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
ArrowDown.displayName = 'ArrowDown';
|
|
61
59
|
ArrowDown.isGlyph = true;
|
|
62
60
|
ArrowDown.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 52b4ee188fef18358582d18128d88894
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ArrowLeftProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ArrowLeft = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const ArrowLeft = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
ArrowLeft.displayName = 'ArrowLeft';
|
|
61
59
|
ArrowLeft.isGlyph = true;
|
|
62
60
|
ArrowLeft.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 87954c7465776b552a305a2ae12fe2b4
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ArrowRightProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ArrowRight = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const ArrowRight = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
ArrowRight.displayName = 'ArrowRight';
|
|
61
59
|
ArrowRight.isGlyph = true;
|
|
62
60
|
ArrowRight.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 2301ac07c6017300f174a4daf7c37602
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ArrowUpProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ArrowUp = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const ArrowUp = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
ArrowUp.displayName = 'ArrowUp';
|
|
61
59
|
ArrowUp.isGlyph = true;
|
|
62
60
|
ArrowUp.propTypes = {
|
package/src/generated/Beaker.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 7f7ee814b340d629a841732323c536bb
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface BeakerProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Beaker = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Beaker = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Beaker.displayName = 'Beaker';
|
|
63
61
|
Beaker.isGlyph = true;
|
|
64
62
|
Beaker.propTypes = {
|
package/src/generated/Bell.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum c1f77383974c483a12ed49c6b7c49ce9
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface BellProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Bell = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Bell = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Bell.displayName = 'Bell';
|
|
63
61
|
Bell.isGlyph = true;
|
|
64
62
|
Bell.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 502547e66fbebed1670cc297118a4168
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface BiometricProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Biometric = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Biometric = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Biometric.displayName = 'Biometric';
|
|
63
61
|
Biometric.isGlyph = true;
|
|
64
62
|
Biometric.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 645b7b3735366e34ac9d8c8865b95b14
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface BuildingProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Building = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Building = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Building.displayName = 'Building';
|
|
63
61
|
Building.isGlyph = true;
|
|
64
62
|
Building.propTypes = {
|
package/src/generated/Bulb.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 400cb7fd89af27898310c3edc271f432
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface BulbProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Bulb = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -64,7 +63,6 @@ const Bulb = ({
|
|
|
64
63
|
</svg>
|
|
65
64
|
);
|
|
66
65
|
};
|
|
67
|
-
|
|
68
66
|
Bulb.displayName = 'Bulb';
|
|
69
67
|
Bulb.isGlyph = true;
|
|
70
68
|
Bulb.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum e0c613973089c242392aabb761dfd1c9
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface CalendarProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const Calendar = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const Calendar = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
Calendar.displayName = 'Calendar';
|
|
63
61
|
Calendar.isGlyph = true;
|
|
64
62
|
Calendar.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum c9ad8272afb26625aa1c513ef2511e20
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface CaretDownProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const CaretDown = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const CaretDown = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
CaretDown.displayName = 'CaretDown';
|
|
61
59
|
CaretDown.isGlyph = true;
|
|
62
60
|
CaretDown.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 0b2e3de27e149d7941e576d89b0ad7a3
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface CaretLeftProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const CaretLeft = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const CaretLeft = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
CaretLeft.displayName = 'CaretLeft';
|
|
61
59
|
CaretLeft.isGlyph = true;
|
|
62
60
|
CaretLeft.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum bf883e2bb79ffb547b221dc1801191c6
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface CaretRightProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const CaretRight = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const CaretRight = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
CaretRight.displayName = 'CaretRight';
|
|
61
59
|
CaretRight.isGlyph = true;
|
|
62
60
|
CaretRight.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum be9f5b95659c017a3d0691db2a6549c1
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface CaretUpProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const CaretUp = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -56,7 +55,6 @@ const CaretUp = ({
|
|
|
56
55
|
</svg>
|
|
57
56
|
);
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
CaretUp.displayName = 'CaretUp';
|
|
61
59
|
CaretUp.isGlyph = true;
|
|
62
60
|
CaretUp.propTypes = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 30f7ecf47636b174dced98ae9e591612
|
|
6
6
|
*/
|
|
7
7
|
import { css, cx } from '@leafygreen-ui/emotion';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -11,7 +11,6 @@ import * as React from 'react';
|
|
|
11
11
|
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
12
12
|
import { LGGlyph } from '../types';
|
|
13
13
|
export interface ChartFilledProps extends LGGlyph.ComponentProps {}
|
|
14
|
-
|
|
15
14
|
const ChartFilled = ({
|
|
16
15
|
className,
|
|
17
16
|
size = 16,
|
|
@@ -58,7 +57,6 @@ const ChartFilled = ({
|
|
|
58
57
|
</svg>
|
|
59
58
|
);
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
ChartFilled.displayName = 'ChartFilled';
|
|
63
61
|
ChartFilled.isGlyph = true;
|
|
64
62
|
ChartFilled.propTypes = {
|