@leafygreen-ui/icon 11.8.0 → 11.10.1
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 +19 -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/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/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 +2 -0
- package/dist/Cursor.js.map +1 -0
- 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 +2 -0
- package/dist/Diagram2.js.map +1 -0
- package/dist/Diagram3.js +2 -0
- package/dist/Diagram3.js.map +1 -0
- 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/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/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/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/Home.js +1 -1
- package/dist/Home.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 +2 -0
- package/dist/Link.js.map +1 -0
- package/dist/Lock.js +1 -1
- package/dist/Lock.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/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/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/ReplicaSet.js +1 -1
- package/dist/ReplicaSet.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 +2 -0
- package/dist/SplitHorizontal.js.map +1 -0
- package/dist/SplitVertical.js +2 -0
- package/dist/SplitVertical.js.map +1 -0
- 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 +2 -0
- package/dist/Sweep.js.map +1 -0
- package/dist/Table.js +1 -1
- package/dist/Table.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/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/createIconComponent.d.ts +1 -0
- package/dist/createIconComponent.d.ts.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/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/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 +2 -0
- package/dist/esm/Cursor.js.map +1 -0
- 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 +2 -0
- package/dist/esm/Diagram2.js.map +1 -0
- package/dist/esm/Diagram3.js +2 -0
- package/dist/esm/Diagram3.js.map +1 -0
- 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/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/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/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/Home.js +1 -1
- package/dist/esm/Home.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 +2 -0
- package/dist/esm/Link.js.map +1 -0
- package/dist/esm/Lock.js +1 -1
- package/dist/esm/Lock.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/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/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/ReplicaSet.js +1 -1
- package/dist/esm/ReplicaSet.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 +2 -0
- package/dist/esm/SplitHorizontal.js.map +1 -0
- package/dist/esm/SplitVertical.js +2 -0
- package/dist/esm/SplitVertical.js.map +1 -0
- 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 +2 -0
- package/dist/esm/Sweep.js.map +1 -0
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Table.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/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 +2 -8
- package/dist/generated/ActivityFeed.d.ts.map +1 -1
- package/dist/generated/AddFile.d.ts +2 -8
- package/dist/generated/AddFile.d.ts.map +1 -1
- package/dist/generated/Apps.d.ts +2 -8
- package/dist/generated/Apps.d.ts.map +1 -1
- package/dist/generated/Array.d.ts +2 -8
- package/dist/generated/Array.d.ts.map +1 -1
- package/dist/generated/ArrowDown.d.ts +2 -8
- package/dist/generated/ArrowDown.d.ts.map +1 -1
- package/dist/generated/ArrowLeft.d.ts +2 -8
- package/dist/generated/ArrowLeft.d.ts.map +1 -1
- package/dist/generated/ArrowRight.d.ts +2 -8
- package/dist/generated/ArrowRight.d.ts.map +1 -1
- package/dist/generated/ArrowUp.d.ts +2 -8
- package/dist/generated/ArrowUp.d.ts.map +1 -1
- package/dist/generated/Beaker.d.ts +2 -8
- package/dist/generated/Beaker.d.ts.map +1 -1
- package/dist/generated/Bell.d.ts +2 -8
- package/dist/generated/Bell.d.ts.map +1 -1
- package/dist/generated/Building.d.ts +2 -8
- package/dist/generated/Building.d.ts.map +1 -1
- package/dist/generated/Bulb.d.ts +2 -8
- package/dist/generated/Bulb.d.ts.map +1 -1
- package/dist/generated/Calendar.d.ts +2 -8
- package/dist/generated/Calendar.d.ts.map +1 -1
- package/dist/generated/CaretDown.d.ts +2 -8
- package/dist/generated/CaretDown.d.ts.map +1 -1
- package/dist/generated/CaretLeft.d.ts +2 -8
- package/dist/generated/CaretLeft.d.ts.map +1 -1
- package/dist/generated/CaretRight.d.ts +2 -8
- package/dist/generated/CaretRight.d.ts.map +1 -1
- package/dist/generated/CaretUp.d.ts +2 -8
- package/dist/generated/CaretUp.d.ts.map +1 -1
- package/dist/generated/Charts.d.ts +2 -8
- package/dist/generated/Charts.d.ts.map +1 -1
- package/dist/generated/Checkmark.d.ts +2 -8
- package/dist/generated/Checkmark.d.ts.map +1 -1
- package/dist/generated/CheckmarkWithCircle.d.ts +2 -8
- package/dist/generated/CheckmarkWithCircle.d.ts.map +1 -1
- package/dist/generated/ChevronDown.d.ts +2 -8
- package/dist/generated/ChevronDown.d.ts.map +1 -1
- package/dist/generated/ChevronLeft.d.ts +2 -8
- package/dist/generated/ChevronLeft.d.ts.map +1 -1
- package/dist/generated/ChevronRight.d.ts +2 -8
- package/dist/generated/ChevronRight.d.ts.map +1 -1
- package/dist/generated/ChevronUp.d.ts +2 -8
- package/dist/generated/ChevronUp.d.ts.map +1 -1
- package/dist/generated/Clock.d.ts +2 -8
- package/dist/generated/Clock.d.ts.map +1 -1
- package/dist/generated/ClockWithArrow.d.ts +2 -8
- package/dist/generated/ClockWithArrow.d.ts.map +1 -1
- package/dist/generated/Clone.d.ts +2 -8
- package/dist/generated/Clone.d.ts.map +1 -1
- package/dist/generated/Cloud.d.ts +2 -8
- package/dist/generated/Cloud.d.ts.map +1 -1
- package/dist/generated/Code.d.ts +2 -8
- package/dist/generated/Code.d.ts.map +1 -1
- package/dist/generated/Connect.d.ts +2 -8
- package/dist/generated/Connect.d.ts.map +1 -1
- package/dist/generated/Copy.d.ts +2 -8
- package/dist/generated/Copy.d.ts.map +1 -1
- package/dist/generated/CreditCard.d.ts +2 -8
- package/dist/generated/CreditCard.d.ts.map +1 -1
- package/dist/generated/CurlyBraces.d.ts +2 -8
- package/dist/generated/CurlyBraces.d.ts.map +1 -1
- package/dist/generated/Cursor.d.ts +17 -0
- package/dist/generated/Cursor.d.ts.map +1 -0
- package/dist/generated/Database.d.ts +2 -8
- package/dist/generated/Database.d.ts.map +1 -1
- package/dist/generated/Diagram.d.ts +2 -8
- package/dist/generated/Diagram.d.ts.map +1 -1
- package/dist/generated/Diagram2.d.ts +17 -0
- package/dist/generated/Diagram2.d.ts.map +1 -0
- package/dist/generated/Diagram3.d.ts +17 -0
- package/dist/generated/Diagram3.d.ts.map +1 -0
- package/dist/generated/Disconnect.d.ts +2 -8
- package/dist/generated/Disconnect.d.ts.map +1 -1
- package/dist/generated/Download.d.ts +2 -8
- package/dist/generated/Download.d.ts.map +1 -1
- package/dist/generated/Edit.d.ts +2 -8
- package/dist/generated/Edit.d.ts.map +1 -1
- package/dist/generated/Ellipsis.d.ts +2 -8
- package/dist/generated/Ellipsis.d.ts.map +1 -1
- package/dist/generated/Export.d.ts +2 -8
- package/dist/generated/Export.d.ts.map +1 -1
- package/dist/generated/Favorite.d.ts +2 -8
- package/dist/generated/Favorite.d.ts.map +1 -1
- package/dist/generated/File.d.ts +2 -8
- package/dist/generated/File.d.ts.map +1 -1
- package/dist/generated/Filter.d.ts +2 -8
- package/dist/generated/Filter.d.ts.map +1 -1
- package/dist/generated/Folder.d.ts +2 -8
- package/dist/generated/Folder.d.ts.map +1 -1
- package/dist/generated/FullScreenEnter.d.ts +2 -8
- package/dist/generated/FullScreenEnter.d.ts.map +1 -1
- package/dist/generated/FullScreenExit.d.ts +2 -8
- package/dist/generated/FullScreenExit.d.ts.map +1 -1
- package/dist/generated/GlobeAmericas.d.ts +2 -8
- package/dist/generated/GlobeAmericas.d.ts.map +1 -1
- package/dist/generated/GovernmentBuilding.d.ts +2 -8
- package/dist/generated/GovernmentBuilding.d.ts.map +1 -1
- package/dist/generated/Home.d.ts +2 -8
- package/dist/generated/Home.d.ts.map +1 -1
- package/dist/generated/ImportantWithCircle.d.ts +2 -8
- package/dist/generated/ImportantWithCircle.d.ts.map +1 -1
- package/dist/generated/InfoWithCircle.d.ts +2 -8
- package/dist/generated/InfoWithCircle.d.ts.map +1 -1
- package/dist/generated/InviteUser.d.ts +2 -8
- package/dist/generated/InviteUser.d.ts.map +1 -1
- package/dist/generated/Key.d.ts +2 -8
- package/dist/generated/Key.d.ts.map +1 -1
- package/dist/generated/Laptop.d.ts +2 -8
- package/dist/generated/Laptop.d.ts.map +1 -1
- package/dist/generated/Link.d.ts +17 -0
- package/dist/generated/Link.d.ts.map +1 -0
- package/dist/generated/Lock.d.ts +2 -8
- package/dist/generated/Lock.d.ts.map +1 -1
- package/dist/generated/MagnifyingGlass.d.ts +2 -8
- package/dist/generated/MagnifyingGlass.d.ts.map +1 -1
- package/dist/generated/Megaphone.d.ts +2 -8
- package/dist/generated/Megaphone.d.ts.map +1 -1
- package/dist/generated/Menu.d.ts +2 -8
- package/dist/generated/Menu.d.ts.map +1 -1
- package/dist/generated/Minus.d.ts +2 -8
- package/dist/generated/Minus.d.ts.map +1 -1
- package/dist/generated/NotAllowed.d.ts +2 -8
- package/dist/generated/NotAllowed.d.ts.map +1 -1
- package/dist/generated/Note.d.ts +2 -8
- package/dist/generated/Note.d.ts.map +1 -1
- package/dist/generated/OpenNewTab.d.ts +2 -8
- package/dist/generated/OpenNewTab.d.ts.map +1 -1
- package/dist/generated/Pause.d.ts +2 -8
- package/dist/generated/Pause.d.ts.map +1 -1
- package/dist/generated/Person.d.ts +2 -8
- package/dist/generated/Person.d.ts.map +1 -1
- package/dist/generated/PersonGroup.d.ts +2 -8
- package/dist/generated/PersonGroup.d.ts.map +1 -1
- package/dist/generated/PersonWithLock.d.ts +2 -8
- package/dist/generated/PersonWithLock.d.ts.map +1 -1
- package/dist/generated/Play.d.ts +2 -8
- package/dist/generated/Play.d.ts.map +1 -1
- package/dist/generated/Plus.d.ts +2 -8
- package/dist/generated/Plus.d.ts.map +1 -1
- package/dist/generated/PlusWithCircle.d.ts +2 -8
- package/dist/generated/PlusWithCircle.d.ts.map +1 -1
- package/dist/generated/QuestionMarkWithCircle.d.ts +2 -8
- package/dist/generated/QuestionMarkWithCircle.d.ts.map +1 -1
- package/dist/generated/Redo.d.ts +2 -8
- package/dist/generated/Redo.d.ts.map +1 -1
- package/dist/generated/Refresh.d.ts +2 -8
- package/dist/generated/Refresh.d.ts.map +1 -1
- package/dist/generated/ReplicaSet.d.ts +2 -8
- package/dist/generated/ReplicaSet.d.ts.map +1 -1
- package/dist/generated/Save.d.ts +2 -8
- package/dist/generated/Save.d.ts.map +1 -1
- package/dist/generated/Serverless.d.ts +2 -8
- package/dist/generated/Serverless.d.ts.map +1 -1
- package/dist/generated/Settings.d.ts +2 -8
- package/dist/generated/Settings.d.ts.map +1 -1
- package/dist/generated/ShardedCluster.d.ts +2 -8
- package/dist/generated/ShardedCluster.d.ts.map +1 -1
- package/dist/generated/Shell.d.ts +2 -8
- package/dist/generated/Shell.d.ts.map +1 -1
- package/dist/generated/SortAscending.d.ts +2 -8
- package/dist/generated/SortAscending.d.ts.map +1 -1
- package/dist/generated/SortDescending.d.ts +2 -8
- package/dist/generated/SortDescending.d.ts.map +1 -1
- package/dist/generated/SplitHorizontal.d.ts +17 -0
- package/dist/generated/SplitHorizontal.d.ts.map +1 -0
- package/dist/generated/SplitVertical.d.ts +17 -0
- package/dist/generated/SplitVertical.d.ts.map +1 -0
- package/dist/generated/Stitch.d.ts +2 -8
- package/dist/generated/Stitch.d.ts.map +1 -1
- package/dist/generated/Support.d.ts +2 -8
- package/dist/generated/Support.d.ts.map +1 -1
- package/dist/generated/Sweep.d.ts +17 -0
- package/dist/generated/Sweep.d.ts.map +1 -0
- package/dist/generated/Table.d.ts +2 -8
- package/dist/generated/Table.d.ts.map +1 -1
- package/dist/generated/TimeSeries.d.ts +2 -8
- package/dist/generated/TimeSeries.d.ts.map +1 -1
- package/dist/generated/Trash.d.ts +2 -8
- package/dist/generated/Trash.d.ts.map +1 -1
- package/dist/generated/Undo.d.ts +2 -8
- package/dist/generated/Undo.d.ts.map +1 -1
- package/dist/generated/University.d.ts +2 -8
- package/dist/generated/University.d.ts.map +1 -1
- package/dist/generated/Unlock.d.ts +2 -8
- package/dist/generated/Unlock.d.ts.map +1 -1
- package/dist/generated/Unsorted.d.ts +2 -8
- package/dist/generated/Unsorted.d.ts.map +1 -1
- package/dist/generated/UpDownCarets.d.ts +2 -8
- package/dist/generated/UpDownCarets.d.ts.map +1 -1
- package/dist/generated/Upload.d.ts +2 -8
- package/dist/generated/Upload.d.ts.map +1 -1
- package/dist/generated/VerticalEllipsis.d.ts +2 -8
- package/dist/generated/VerticalEllipsis.d.ts.map +1 -1
- package/dist/generated/Visibility.d.ts +2 -8
- package/dist/generated/Visibility.d.ts.map +1 -1
- package/dist/generated/VisibilityOff.d.ts +2 -8
- package/dist/generated/VisibilityOff.d.ts.map +1 -1
- package/dist/generated/Warning.d.ts +2 -8
- package/dist/generated/Warning.d.ts.map +1 -1
- package/dist/generated/X.d.ts +2 -8
- package/dist/generated/X.d.ts.map +1 -1
- package/dist/generated/XWithCircle.d.ts +2 -8
- package/dist/generated/XWithCircle.d.ts.map +1 -1
- package/dist/glyphs/index.d.ts +1 -2
- package/dist/glyphs/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isComponentGlyph.d.ts +7 -2
- package/dist/isComponentGlyph.d.ts.map +1 -1
- package/dist/types/LGGlyph.d.ts +5 -2
- package/dist/types/LGGlyph.d.ts.map +1 -1
- package/package.json +11 -3
- package/scripts/build.ts +1 -1
- package/{src → scripts}/template.ts +4 -3
- package/src/Icon.spec.tsx +80 -25
- package/src/Icon.story.tsx +21 -19
- package/src/createGlyphComponent.tsx +3 -3
- package/src/createIconComponent.tsx +4 -2
- package/src/generated/Cursor.tsx +68 -0
- package/src/generated/Diagram2.tsx +66 -0
- package/src/generated/Diagram3.tsx +68 -0
- package/src/generated/Folder.tsx +2 -2
- package/src/generated/Link.tsx +70 -0
- package/src/generated/SplitHorizontal.tsx +68 -0
- package/src/generated/SplitVertical.tsx +68 -0
- package/src/generated/Sweep.tsx +68 -0
- package/src/glyphs/Cursor.svg +3 -0
- package/src/glyphs/Diagram2.svg +3 -0
- package/src/glyphs/Diagram3.svg +3 -0
- package/src/glyphs/Folder.svg +1 -1
- package/src/glyphs/Link.svg +4 -0
- package/src/glyphs/SplitHorizontal.svg +3 -0
- package/src/glyphs/SplitVertical.svg +3 -0
- package/src/glyphs/Sweep.svg +3 -0
- package/src/glyphs/index.ts +14 -0
- package/src/isComponentGlyph.ts +27 -6
- package/src/types/LGGlyph.ts +4 -2
- package/tsconfig.tsbuildinfo +1 -4792
- package/dist/template.d.ts +0 -19
- package/dist/template.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @leafygreen-ui/icon
|
|
2
2
|
|
|
3
|
+
## 11.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 31f1cf8f: Updated `Folder` SVG
|
|
8
|
+
|
|
9
|
+
## 11.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 2670e4db: Adds `isGlyph` property to icons returned by `createIconComponent`. This means the generic `<Icon/>` component will now be compatible with Select and Combobox Options.
|
|
14
|
+
Additionally, overloads `isComponentGlyph` function to accept either a `ReactNode`, or `ComponentType`.
|
|
15
|
+
|
|
16
|
+
## 11.9.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 500d6c60: Adds Cursor, Diagram2, Diagram3, Link, SplitHorizontal, SplitVertical, and Sweep icons to the Icon component.
|
|
21
|
+
|
|
3
22
|
## 11.8.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/dist/ActivityFeed.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).ActivityFeed=e.ActivityFeed||{},e.ActivityFeed.js=t(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,t,r,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){return
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).ActivityFeed=e.ActivityFeed||{},e.ActivityFeed.js=t(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,t,r,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},o.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,l,i=function(e,t){if(null==e)return{};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t,i=e.className,a=e.size,b=void 0===a?16:a,y=e.title,v=e["aria-label"],m=e["aria-labelledby"],g=e.fill,C=e.role,h=void 0===C?"img":C,j=u(e,p),O=r.css(f||(f=c(["\n color: ",";\n "])),g),x=r.css(s||(s=c(["\n flex-shrink: 0;\n "]))),H=function(e,t,r){var l,i,a=r["aria-label"],o=r["aria-labelledby"],u=r.title;switch(e){case"img":return a||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",a),n(l,"title",u),l):{"aria-label":(i=t,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ActivityFeed",(n(t={title:y},"aria-label",v),n(t,"aria-labelledby",m),t));return l.jsx("svg",o({className:r.cx(n({},O,null!=g),x,i),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z",fill:"currentColor"}))};return b.displayName="ActivityFeed",b.isGlyph=!0,b.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.default.string},b}));
|
|
2
2
|
//# sourceMappingURL=ActivityFeed.js.map
|
package/dist/ActivityFeed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityFeed.js","sources":["../src/glyphCommon.ts","../src/generated/ActivityFeed.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c62e8a01028d843884f0087c8906b87\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ActivityFeedProps extends LGGlyph.ComponentProps {}\n\nconst ActivityFeed = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ActivityFeedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z\"\n fill={'currentColor'}\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nActivityFeed.displayName = 'ActivityFeed';\nActivityFeed.isGlyph = true;\nActivityFeed.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ActivityFeed;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ActivityFeed","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"ActivityFeed.js","sources":["../src/glyphCommon.ts","../src/generated/ActivityFeed.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c62e8a01028d843884f0087c8906b87\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ActivityFeedProps extends LGGlyph.ComponentProps {}\n\nconst ActivityFeed = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ActivityFeedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z\"\n fill={'currentColor'}\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nActivityFeed.displayName = 'ActivityFeed';\nActivityFeed.isGlyph = true;\nActivityFeed.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ActivityFeed;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ActivityFeed","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"s3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAe,SAAsBC,GACvC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,gBAEjDW,EAFkEpB,EAAwB,CAC3FI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,+dACH3B,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,qjBACH3B,KAAM,0BAIVT,EAAaqC,YAAc,eAC3BrC,EAAasC,SAAU,EACvBtC,EAAauC,UAAY,CACvB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
|
package/dist/AddFile.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).AddFile=e.AddFile||{},e.AddFile.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(r);function n(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).AddFile=e.AddFile||{},e.AddFile.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(r);function n(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var r,a=e.className,i=e.size,b=void 0===i?16:i,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,C=e.role,h=void 0===C?"img":C,O=u(e,p),j=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,l){var t,a,i=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return i||o||u?(n(t={},"aria-labelledby",o),n(t,"aria-label",i),n(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"AddFile",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(n({},j,null!=v),x,a),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,O,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z",fill:"currentColor"}))};return b.displayName="AddFile",b.isGlyph=!0,b.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},b}));
|
|
2
2
|
//# sourceMappingURL=AddFile.js.map
|
package/dist/AddFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddFile.js","sources":["../src/glyphCommon.ts","../src/generated/AddFile.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum c793f92aeec247f9bcc7382c877f15f7\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AddFileProps extends LGGlyph.ComponentProps {}\n\nconst AddFile = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AddFileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'AddFile', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nAddFile.displayName = 'AddFile';\nAddFile.isGlyph = true;\nAddFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default AddFile;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","AddFile","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"AddFile.js","sources":["../src/glyphCommon.ts","../src/generated/AddFile.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum c793f92aeec247f9bcc7382c877f15f7\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AddFileProps extends LGGlyph.ComponentProps {}\n\nconst AddFile = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AddFileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'AddFile', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nAddFile.displayName = 'AddFile';\nAddFile.isGlyph = true;\nAddFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default AddFile;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","AddFile","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"u2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,6pBACH3B,KAAM,0BAIVT,EAAQqC,YAAc,UACtBrC,EAAQsC,SAAU,EAClBtC,EAAQuC,UAAY,CAClB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
|
package/dist/Apps.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Apps=e.Apps||{},e.Apps.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Apps=e.Apps||{},e.Apps.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,l,a=function(e,r){if(null==e)return{};var t,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),x=t.css(s||(s=f(["\n color: ",";\n "])),v),w=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,t){var l,a,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(l={},"aria-labelledby",o),i(l,"aria-label",n),i(l,"title",u),l):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Apps",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(i({},x,null!=v),w,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z",fill:"currentColor"}))};return d.displayName="Apps",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=Apps.js.map
|
package/dist/Apps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Apps.js","sources":["../src/glyphCommon.ts","../src/generated/Apps.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 5b542823232f3e709f4939f5108da804\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AppsProps extends LGGlyph.ComponentProps {}\n\nconst Apps = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AppsProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Apps', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nApps.displayName = 'Apps';\nApps.isGlyph = true;\nApps.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Apps;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Apps","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"Apps.js","sources":["../src/glyphCommon.ts","../src/generated/Apps.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 5b542823232f3e709f4939f5108da804\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AppsProps extends LGGlyph.ComponentProps {}\n\nconst Apps = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AppsProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Apps', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nApps.displayName = 'Apps';\nApps.isGlyph = true;\nApps.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Apps;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Apps","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"81CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAO,SAAcC,GACvB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,QAEjDW,EAF0DpB,EAAwB,CACnFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,4DACH3B,KAAM,0BAIVT,EAAKqC,YAAc,OACnBrC,EAAKsC,SAAU,EACftC,EAAKuC,UAAY,CACf9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
|
package/dist/Array.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Array=e.Array||{},e.Array.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Array=e.Array||{},e.Array.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],y=function(e){var r,l=e.className,n=e.size,y=void 0===n?16:n,d=e.title,m=e["aria-label"],g=e["aria-labelledby"],h=e.fill,v=e.role,j=void 0===v?"img":v,O=u(e,b),C=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(j,"Array",(i(r={title:d},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},C,null!=h),x,l),height:"number"==typeof y?y:p[y],width:"number"==typeof y?y:p[y],role:j},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z",fill:"currentColor"}),a.jsx("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z",fill:"currentColor"}))};return y.displayName="Array",y.isGlyph=!0,y.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},y}));
|
|
2
2
|
//# sourceMappingURL=Array.js.map
|
package/dist/Array.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Array.js","sources":["../src/glyphCommon.ts","../src/generated/Array.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum fbfbd18bbdf3632eea7ca6cc393b71ba\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrayProps extends LGGlyph.ComponentProps {}\n\nconst Array = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrayProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Array', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArray.displayName = 'Array';\nArray.isGlyph = true;\nArray.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Array;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Array","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"Array.js","sources":["../src/glyphCommon.ts","../src/generated/Array.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum fbfbd18bbdf3632eea7ca6cc393b71ba\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrayProps extends LGGlyph.ComponentProps {}\n\nconst Array = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrayProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Array', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArray.displayName = 'Array';\nArray.isGlyph = true;\nArray.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Array;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Array","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"i2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAQ,SAAeC,GACzB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,SAEjDW,EAF2DpB,EAAwB,CACpFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,0MACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,iNACHzB,KAAM,0BAIVT,EAAMmC,YAAc,QACpBnC,EAAMoC,SAAU,EAChBpC,EAAMqC,UAAY,CAChB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
|
package/dist/ArrowDown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowDown=e.ArrowDown||{},e.ArrowDown.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowDown=e.ArrowDown||{},e.ArrowDown.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],w=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,p),j=t.css(s||(s=f(["\n color: ",";\n "])),w),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ArrowDown",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=w),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:h},L,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z",fill:"currentColor"}))};return d.displayName="ArrowDown",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=ArrowDown.js.map
|
package/dist/ArrowDown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowDown.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowDown.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum abcad33a402863d717652a2fe4008fa8\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowDownProps extends LGGlyph.ComponentProps {}\n\nconst ArrowDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowDown.displayName = 'ArrowDown';\nArrowDown.isGlyph = true;\nArrowDown.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowDown;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowDown","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"ArrowDown.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowDown.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum abcad33a402863d717652a2fe4008fa8\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowDownProps extends LGGlyph.ComponentProps {}\n\nconst ArrowDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowDown.displayName = 'ArrowDown';\nArrowDown.isGlyph = true;\nArrowDown.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowDown;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowDown","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"62CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,6fACHzB,KAAM,0BAIVT,EAAUmC,YAAc,YACxBnC,EAAUoC,SAAU,EACpBpC,EAAUqC,UAAY,CACpB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
|
package/dist/ArrowLeft.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowLeft=e.ArrowLeft||{},e.ArrowLeft.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowLeft=e.ArrowLeft||{},e.ArrowLeft.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function f(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function u(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=f(e,p),L=t.css(s||(s=u(["\n color: ",";\n "])),v),w=t.css(c||(c=u(["\n flex-shrink: 0;\n "]))),x=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],f=t.title;switch(e){case"img":return n||o||f?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",f),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowLeft",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},L,null!=v),w,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},x,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowLeft",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=ArrowLeft.js.map
|
package/dist/ArrowLeft.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowLeft.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowLeft.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum e1557a049a4670f5e91421bcccc7fe88\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowLeftProps extends LGGlyph.ComponentProps {}\n\nconst ArrowLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowLeftProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowLeft', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowLeft.displayName = 'ArrowLeft';\nArrowLeft.isGlyph = true;\nArrowLeft.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowLeft;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowLeft","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"ArrowLeft.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowLeft.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum e1557a049a4670f5e91421bcccc7fe88\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowLeftProps extends LGGlyph.ComponentProps {}\n\nconst ArrowLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowLeftProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowLeft', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowLeft.displayName = 'ArrowLeft';\nArrowLeft.isGlyph = true;\nArrowLeft.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowLeft;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowLeft","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"62CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,4fACHzB,KAAM,0BAIVT,EAAUmC,YAAc,YACxBnC,EAAUoC,SAAU,EACpBpC,EAAUqC,UAAY,CACpB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
|
package/dist/ArrowRight.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowRight=e.ArrowRight||{},e.ArrowRight.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowRight=e.ArrowRight||{},e.ArrowRight.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,i=e.size,d=void 0===i?16:i,y=e.title,g=e["aria-label"],m=e["aria-labelledby"],h=e.fill,v=e.role,O=void 0===v?"img":v,j=u(e,p),w=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(a={},"aria-labelledby",o),n(a,"aria-label",i),n(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowRight",(n(r={title:y},"aria-label",g),n(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(n({},w,null!=h),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},L,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowRight",d.isGlyph=!0,d.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=ArrowRight.js.map
|
package/dist/ArrowRight.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowRight.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowRight.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 089a15a9efb4b3a77dda3129c14dd2ae\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowRightProps extends LGGlyph.ComponentProps {}\n\nconst ArrowRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowRightProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowRight', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowRight.displayName = 'ArrowRight';\nArrowRight.isGlyph = true;\nArrowRight.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowRight;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowRight","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"ArrowRight.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowRight.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 089a15a9efb4b3a77dda3129c14dd2ae\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowRightProps extends LGGlyph.ComponentProps {}\n\nconst ArrowRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowRightProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowRight', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowRight.displayName = 'ArrowRight';\nArrowRight.isGlyph = true;\nArrowRight.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowRight;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowRight","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"g3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAa,SAAoBC,GACnC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,cAEjDW,EAFgEpB,EAAwB,CACzFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,4fACHzB,KAAM,0BAIVT,EAAWmC,YAAc,aACzBnC,EAAWoC,SAAU,EACrBpC,EAAWqC,UAAY,CACrB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
|
package/dist/ArrowUp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowUp=e.ArrowUp||{},e.ArrowUp.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowUp=e.ArrowUp||{},e.ArrowUp.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),w=t.css(s||(s=f(["\n color: ",";\n "])),v),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowUp",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},w,null!=v),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},C,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z",fill:"currentColor"}))};return d.displayName="ArrowUp",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=ArrowUp.js.map
|
package/dist/ArrowUp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowUp.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowUp.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 75a9282b83a69ee376152c4ce67838b3\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowUpProps extends LGGlyph.ComponentProps {}\n\nconst ArrowUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowUp.displayName = 'ArrowUp';\nArrowUp.isGlyph = true;\nArrowUp.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowUp;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowUp","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"ArrowUp.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowUp.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 75a9282b83a69ee376152c4ce67838b3\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowUpProps extends LGGlyph.ComponentProps {}\n\nconst ArrowUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowUp.displayName = 'ArrowUp';\nArrowUp.isGlyph = true;\nArrowUp.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowUp;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowUp","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"u2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,0fACHzB,KAAM,0BAIVT,EAAQmC,YAAc,UACtBnC,EAAQoC,SAAU,EAClBpC,EAAQqC,UAAY,CAClB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
|
package/dist/Beaker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Beaker=e.Beaker||{},e.Beaker.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Beaker=e.Beaker||{},e.Beaker.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,b),j=t.css(c||(c=f(["\n color: ",";\n "])),g),x=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"Beaker",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=g),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:h},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z",fill:"currentColor"}))};return d.displayName="Beaker",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=Beaker.js.map
|
package/dist/Beaker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Beaker.js","sources":["../src/glyphCommon.ts","../src/generated/Beaker.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c98bc603765f6a6f49d66288b9bd5ef\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BeakerProps extends LGGlyph.ComponentProps {}\n\nconst Beaker = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BeakerProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Beaker', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nBeaker.displayName = 'Beaker';\nBeaker.isGlyph = true;\nBeaker.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Beaker;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Beaker","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","
|
|
1
|
+
{"version":3,"file":"Beaker.js","sources":["../src/glyphCommon.ts","../src/generated/Beaker.tsx"],"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","/**\n * This is a generated file. Do not modify it manually.\n *\n * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c98bc603765f6a6f49d66288b9bd5ef\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BeakerProps extends LGGlyph.ComponentProps {}\n\nconst Beaker = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BeakerProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Beaker', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nBeaker.displayName = 'Beaker';\nBeaker.isGlyph = true;\nBeaker.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Beaker;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Beaker","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"o2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAS,SAAgBC,GAC3B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,UAEjDW,EAF4DpB,EAAwB,CACrFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,q7CACH3B,KAAM,0BAIVT,EAAOqC,YAAc,SACrBrC,EAAOsC,SAAU,EACjBtC,EAAOuC,UAAY,CACjB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
|
package/dist/Bell.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Bell=e.Bell||{},e.Bell.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Bell=e.Bell||{},e.Bell.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},n=Object.keys(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),C=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,l){var t,a,n=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return n||o||u?(i(t={},"aria-labelledby",o),i(t,"aria-label",n),i(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Bell",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(i({},C,null!=v),x,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},w,j,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6248 6.1383C12.4098 4.25462 11.09 2.74034 9.35673 2.21251C9.2281 1.52063 8.66955 1 8 1C7.33044 1 6.77189 1.52063 6.64326 2.21251C4.91 2.74034 3.59017 4.25462 3.37524 6.1383L2.92307 10.1011H2.94943C2.42507 10.1011 2 10.5262 2 11.0506C2 11.5749 2.42507 12 2.94943 12H13.0506C13.5749 12 14 11.5749 14 11.0506C14 10.5262 13.5749 10.1011 13.0506 10.1011H13.0769L12.6248 6.1383ZM8 15C6.89543 15 6 14.1046 6 13H10C10 14.1046 9.10457 15 8 15Z",fill:"currentColor"}))};return d.displayName="Bell",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
|
|
2
2
|
//# sourceMappingURL=Bell.js.map
|