@leafygreen-ui/icon 14.1.0 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/AIModel.js +2 -0
- package/dist/AIModel.js.map +1 -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/AllProducts.js +1 -1
- package/dist/AllProducts.js.map +1 -1
- package/dist/AnalyticsNode.js +1 -1
- package/dist/AnalyticsNode.js.map +1 -1
- package/dist/Apps.js +1 -1
- package/dist/Apps.js.map +1 -1
- package/dist/Array.js +1 -1
- package/dist/Array.js.map +1 -1
- package/dist/ArrowDown.js +1 -1
- package/dist/ArrowDown.js.map +1 -1
- package/dist/ArrowLeft.js +1 -1
- package/dist/ArrowLeft.js.map +1 -1
- package/dist/ArrowRight.js +1 -1
- package/dist/ArrowRight.js.map +1 -1
- package/dist/ArrowUp.js +1 -1
- package/dist/ArrowUp.js.map +1 -1
- package/dist/Beaker.js +1 -1
- package/dist/Beaker.js.map +1 -1
- package/dist/Bell.js +1 -1
- package/dist/Bell.js.map +1 -1
- package/dist/Biometric.js +1 -1
- package/dist/Biometric.js.map +1 -1
- package/dist/Boolean.js +1 -1
- package/dist/Boolean.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/Camera.js +1 -1
- package/dist/Camera.js.map +1 -1
- package/dist/Cap.js +1 -1
- package/dist/Cap.js.map +1 -1
- package/dist/CaretDown.js +1 -1
- package/dist/CaretDown.js.map +1 -1
- package/dist/CaretLeft.js +1 -1
- package/dist/CaretLeft.js.map +1 -1
- package/dist/CaretRight.js +1 -1
- package/dist/CaretRight.js.map +1 -1
- package/dist/CaretUp.js +1 -1
- package/dist/CaretUp.js.map +1 -1
- package/dist/ChartFilled.js +1 -1
- package/dist/ChartFilled.js.map +1 -1
- package/dist/Charts.js +1 -1
- package/dist/Charts.js.map +1 -1
- package/dist/Checkmark.js +1 -1
- package/dist/Checkmark.js.map +1 -1
- package/dist/CheckmarkWithCircle.js +1 -1
- package/dist/CheckmarkWithCircle.js.map +1 -1
- package/dist/ChevronDown.js +1 -1
- package/dist/ChevronDown.js.map +1 -1
- package/dist/ChevronLeft.js +1 -1
- package/dist/ChevronLeft.js.map +1 -1
- package/dist/ChevronRight.js +1 -1
- package/dist/ChevronRight.js.map +1 -1
- package/dist/ChevronUp.js +1 -1
- package/dist/ChevronUp.js.map +1 -1
- package/dist/Circle.js +1 -1
- package/dist/Circle.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/CodeBlock.js +1 -1
- package/dist/CodeBlock.js.map +1 -1
- package/dist/Coin.js +1 -1
- package/dist/Coin.js.map +1 -1
- package/dist/Colon.js +1 -1
- package/dist/Colon.js.map +1 -1
- package/dist/Config.js +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/Connect.js +1 -1
- package/dist/Connect.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/Copy.js.map +1 -1
- package/dist/CreditCard.js +1 -1
- package/dist/CreditCard.js.map +1 -1
- package/dist/CurlyBraces.js +1 -1
- package/dist/CurlyBraces.js.map +1 -1
- package/dist/Cursor.js +1 -1
- package/dist/Cursor.js.map +1 -1
- package/dist/Dashboard.js +1 -1
- package/dist/Dashboard.js.map +1 -1
- package/dist/Database.js +1 -1
- package/dist/Database.js.map +1 -1
- package/dist/Diagram.js +1 -1
- package/dist/Diagram.js.map +1 -1
- package/dist/Diagram2.js +1 -1
- package/dist/Diagram2.js.map +1 -1
- package/dist/Diagram3.js +1 -1
- package/dist/Diagram3.js.map +1 -1
- package/dist/Disconnect.js +1 -1
- package/dist/Disconnect.js.map +1 -1
- package/dist/Download.js +1 -1
- package/dist/Download.js.map +1 -1
- package/dist/Drag.js +1 -1
- package/dist/Drag.js.map +1 -1
- package/dist/Edit.js +1 -1
- package/dist/Edit.js.map +1 -1
- package/dist/Ellipsis.js +1 -1
- package/dist/Ellipsis.js.map +1 -1
- package/dist/Email.js +1 -1
- package/dist/Email.js.map +1 -1
- package/dist/EmptyDatabase.js +1 -1
- package/dist/EmptyDatabase.js.map +1 -1
- package/dist/EmptyFolder.js +1 -1
- package/dist/EmptyFolder.js.map +1 -1
- package/dist/Eraser.js +1 -1
- package/dist/Eraser.js.map +1 -1
- package/dist/Escalation.js +1 -1
- package/dist/Escalation.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/Federation.js +1 -1
- package/dist/Federation.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/Format.js +1 -1
- package/dist/Format.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/Function.js +1 -1
- package/dist/Function.js.map +1 -1
- package/dist/Gauge.js +1 -1
- package/dist/Gauge.js.map +1 -1
- package/dist/GlobeAmericas.js +1 -1
- package/dist/GlobeAmericas.js.map +1 -1
- package/dist/GovernmentBuilding.js +1 -1
- package/dist/GovernmentBuilding.js.map +1 -1
- package/dist/Guide.js +1 -1
- package/dist/Guide.js.map +1 -1
- package/dist/Hash.js +1 -1
- package/dist/Hash.js.map +1 -1
- package/dist/HiddenSecondaryNode.js +1 -1
- package/dist/HiddenSecondaryNode.js.map +1 -1
- package/dist/Highlight.js +1 -1
- package/dist/Highlight.js.map +1 -1
- package/dist/Home.js +1 -1
- package/dist/Home.js.map +1 -1
- package/dist/HorizontalDrag.js +1 -1
- package/dist/HorizontalDrag.js.map +1 -1
- package/dist/Import.js +1 -1
- package/dist/Import.js.map +1 -1
- package/dist/ImportantWithCircle.js +1 -1
- package/dist/ImportantWithCircle.js.map +1 -1
- package/dist/InfoWithCircle.js +1 -1
- package/dist/InfoWithCircle.js.map +1 -1
- package/dist/InternalEmployee.js +1 -1
- package/dist/InternalEmployee.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/LightningBolt.js +1 -1
- package/dist/LightningBolt.js.map +1 -1
- package/dist/Link.js +1 -1
- package/dist/Link.js.map +1 -1
- package/dist/List.js +1 -1
- package/dist/List.js.map +1 -1
- package/dist/Lock.js +1 -1
- package/dist/Lock.js.map +1 -1
- package/dist/LogIn.js +1 -1
- package/dist/LogIn.js.map +1 -1
- package/dist/LogOut.js +1 -1
- package/dist/LogOut.js.map +1 -1
- package/dist/MagnifyingGlass.js +1 -1
- package/dist/MagnifyingGlass.js.map +1 -1
- package/dist/Megaphone.js +1 -1
- package/dist/Megaphone.js.map +1 -1
- package/dist/Menu.js +1 -1
- package/dist/Menu.js.map +1 -1
- package/dist/Minus.js +1 -1
- package/dist/Minus.js.map +1 -1
- package/dist/Mobile.js +1 -1
- package/dist/Mobile.js.map +1 -1
- package/dist/Moon.js +1 -1
- package/dist/Moon.js.map +1 -1
- package/dist/MultiDirectionArrow.js +1 -1
- package/dist/MultiDirectionArrow.js.map +1 -1
- package/dist/MultiLayers.js +1 -1
- package/dist/MultiLayers.js.map +1 -1
- package/dist/NavCollapse.js +1 -1
- package/dist/NavCollapse.js.map +1 -1
- package/dist/NavExpand.js +1 -1
- package/dist/NavExpand.js.map +1 -1
- package/dist/NoFilter.js +1 -1
- package/dist/NoFilter.js.map +1 -1
- package/dist/NotAllowed.js +1 -1
- package/dist/NotAllowed.js.map +1 -1
- package/dist/Note.js +1 -1
- package/dist/Note.js.map +1 -1
- package/dist/NumberedList.js +1 -1
- package/dist/NumberedList.js.map +1 -1
- package/dist/OpenNewTab.js +1 -1
- package/dist/OpenNewTab.js.map +1 -1
- package/dist/OutlineFavorite.js +1 -1
- package/dist/OutlineFavorite.js.map +1 -1
- package/dist/Package.js +1 -1
- package/dist/Package.js.map +1 -1
- package/dist/Pause.js +1 -1
- package/dist/Pause.js.map +1 -1
- package/dist/Pending.js +1 -1
- package/dist/Pending.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/Pin.js +1 -1
- package/dist/Pin.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/Primary.js +1 -1
- package/dist/Primary.js.map +1 -1
- package/dist/Project.js +1 -1
- package/dist/Project.js.map +1 -1
- package/dist/QuestionMarkWithCircle.js +1 -1
- package/dist/QuestionMarkWithCircle.js.map +1 -1
- package/dist/Read.js +1 -1
- package/dist/Read.js.map +1 -1
- package/dist/Recommended.js +1 -1
- package/dist/Recommended.js.map +1 -1
- package/dist/Redo.js +1 -1
- package/dist/Redo.js.map +1 -1
- package/dist/Refresh.js +1 -1
- package/dist/Refresh.js.map +1 -1
- package/dist/Relationship.js +1 -1
- package/dist/Relationship.js.map +1 -1
- package/dist/ReplicaSet.js +1 -1
- package/dist/ReplicaSet.js.map +1 -1
- package/dist/Resize.js +1 -1
- package/dist/Resize.js.map +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Resource.js.map +1 -1
- package/dist/Return.js +1 -1
- package/dist/Return.js.map +1 -1
- package/dist/Revert.js +1 -1
- package/dist/Revert.js.map +1 -1
- package/dist/Router.js +1 -1
- package/dist/Router.js.map +1 -1
- package/dist/SMS.js +1 -1
- package/dist/SMS.js.map +1 -1
- package/dist/Save.js +1 -1
- package/dist/Save.js.map +1 -1
- package/dist/SearchIndex.js +1 -1
- package/dist/SearchIndex.js.map +1 -1
- package/dist/Secondary.js +1 -1
- package/dist/Secondary.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/Shield.js +1 -1
- package/dist/Shield.js.map +1 -1
- package/dist/Shirt.js +1 -1
- package/dist/Shirt.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/Sparkle.js +1 -1
- package/dist/Sparkle.js.map +1 -1
- package/dist/SplitHorizontal.js +1 -1
- package/dist/SplitHorizontal.js.map +1 -1
- package/dist/SplitVertical.js +1 -1
- package/dist/SplitVertical.js.map +1 -1
- package/dist/Stitch.js +1 -1
- package/dist/Stitch.js.map +1 -1
- package/dist/Stop.js +1 -1
- package/dist/Stop.js.map +1 -1
- package/dist/Streaming.js +1 -1
- package/dist/Streaming.js.map +1 -1
- package/dist/String.js +1 -1
- package/dist/String.js.map +1 -1
- package/dist/Sun.js +1 -1
- package/dist/Sun.js.map +1 -1
- package/dist/Support.js +1 -1
- package/dist/Support.js.map +1 -1
- package/dist/Sweep.js +1 -1
- package/dist/Sweep.js.map +1 -1
- package/dist/Table.js +1 -1
- package/dist/Table.js.map +1 -1
- package/dist/Tag.js +1 -1
- package/dist/Tag.js.map +1 -1
- package/dist/TemporaryTable.js +1 -1
- package/dist/TemporaryTable.js.map +1 -1
- package/dist/ThumbsDown.js +1 -1
- package/dist/ThumbsDown.js.map +1 -1
- package/dist/ThumbsUp.js +1 -1
- package/dist/ThumbsUp.js.map +1 -1
- package/dist/TimeSeries.js +1 -1
- package/dist/TimeSeries.js.map +1 -1
- package/dist/TimeSeriesCollection.js +1 -1
- package/dist/TimeSeriesCollection.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/View.js +1 -1
- package/dist/View.js.map +1 -1
- package/dist/Visibility.js +1 -1
- package/dist/Visibility.js.map +1 -1
- package/dist/VisibilityOff.js +1 -1
- package/dist/VisibilityOff.js.map +1 -1
- package/dist/Warning.js +1 -1
- package/dist/Warning.js.map +1 -1
- package/dist/Wizard.js +1 -1
- package/dist/Wizard.js.map +1 -1
- package/dist/Wrench.js +1 -1
- package/dist/Wrench.js.map +1 -1
- package/dist/Write.js +1 -1
- package/dist/Write.js.map +1 -1
- package/dist/X.js +1 -1
- package/dist/X.js.map +1 -1
- package/dist/XWithCircle.js +1 -1
- package/dist/XWithCircle.js.map +1 -1
- package/dist/esm/AIModel.js +2 -0
- package/dist/esm/AIModel.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Icon.d.ts +3 -0
- package/dist/types/Icon.d.ts.map +1 -1
- package/dist/types/generated/AIModel.d.ts +17 -0
- package/dist/types/generated/AIModel.d.ts.map +1 -0
- package/dist/types/glyphs/index.d.ts +5 -1
- package/dist/types/glyphs/index.d.ts.map +1 -1
- package/dist/umd/AIModel.js +2 -0
- package/dist/umd/AIModel.js.map +1 -0
- package/dist/umd/ActivityFeed.js +1 -1
- package/dist/umd/ActivityFeed.js.map +1 -1
- package/dist/umd/AddFile.js +1 -1
- package/dist/umd/AddFile.js.map +1 -1
- package/dist/umd/AllProducts.js +1 -1
- package/dist/umd/AllProducts.js.map +1 -1
- package/dist/umd/AnalyticsNode.js +1 -1
- package/dist/umd/AnalyticsNode.js.map +1 -1
- package/dist/umd/Apps.js +1 -1
- package/dist/umd/Apps.js.map +1 -1
- package/dist/umd/Array.js +1 -1
- package/dist/umd/Array.js.map +1 -1
- package/dist/umd/ArrowDown.js +1 -1
- package/dist/umd/ArrowDown.js.map +1 -1
- package/dist/umd/ArrowLeft.js +1 -1
- package/dist/umd/ArrowLeft.js.map +1 -1
- package/dist/umd/ArrowRight.js +1 -1
- package/dist/umd/ArrowRight.js.map +1 -1
- package/dist/umd/ArrowUp.js +1 -1
- package/dist/umd/ArrowUp.js.map +1 -1
- package/dist/umd/Beaker.js +1 -1
- package/dist/umd/Beaker.js.map +1 -1
- package/dist/umd/Bell.js +1 -1
- package/dist/umd/Bell.js.map +1 -1
- package/dist/umd/Biometric.js +1 -1
- package/dist/umd/Biometric.js.map +1 -1
- package/dist/umd/Boolean.js +1 -1
- package/dist/umd/Boolean.js.map +1 -1
- package/dist/umd/Building.js +1 -1
- package/dist/umd/Building.js.map +1 -1
- package/dist/umd/Bulb.js +1 -1
- package/dist/umd/Bulb.js.map +1 -1
- package/dist/umd/Calendar.js +1 -1
- package/dist/umd/Calendar.js.map +1 -1
- package/dist/umd/Camera.js +1 -1
- package/dist/umd/Camera.js.map +1 -1
- package/dist/umd/Cap.js +1 -1
- package/dist/umd/Cap.js.map +1 -1
- package/dist/umd/CaretDown.js +1 -1
- package/dist/umd/CaretDown.js.map +1 -1
- package/dist/umd/CaretLeft.js +1 -1
- package/dist/umd/CaretLeft.js.map +1 -1
- package/dist/umd/CaretRight.js +1 -1
- package/dist/umd/CaretRight.js.map +1 -1
- package/dist/umd/CaretUp.js +1 -1
- package/dist/umd/CaretUp.js.map +1 -1
- package/dist/umd/ChartFilled.js +1 -1
- package/dist/umd/ChartFilled.js.map +1 -1
- package/dist/umd/Charts.js +1 -1
- package/dist/umd/Charts.js.map +1 -1
- package/dist/umd/Checkmark.js +1 -1
- package/dist/umd/Checkmark.js.map +1 -1
- package/dist/umd/CheckmarkWithCircle.js +1 -1
- package/dist/umd/CheckmarkWithCircle.js.map +1 -1
- package/dist/umd/ChevronDown.js +1 -1
- package/dist/umd/ChevronDown.js.map +1 -1
- package/dist/umd/ChevronLeft.js +1 -1
- package/dist/umd/ChevronLeft.js.map +1 -1
- package/dist/umd/ChevronRight.js +1 -1
- package/dist/umd/ChevronRight.js.map +1 -1
- package/dist/umd/ChevronUp.js +1 -1
- package/dist/umd/ChevronUp.js.map +1 -1
- package/dist/umd/Circle.js +1 -1
- package/dist/umd/Circle.js.map +1 -1
- package/dist/umd/Clock.js +1 -1
- package/dist/umd/Clock.js.map +1 -1
- package/dist/umd/ClockWithArrow.js +1 -1
- package/dist/umd/ClockWithArrow.js.map +1 -1
- package/dist/umd/Clone.js +1 -1
- package/dist/umd/Clone.js.map +1 -1
- package/dist/umd/Cloud.js +1 -1
- package/dist/umd/Cloud.js.map +1 -1
- package/dist/umd/Code.js +1 -1
- package/dist/umd/Code.js.map +1 -1
- package/dist/umd/CodeBlock.js +1 -1
- package/dist/umd/CodeBlock.js.map +1 -1
- package/dist/umd/Coin.js +1 -1
- package/dist/umd/Coin.js.map +1 -1
- package/dist/umd/Colon.js +1 -1
- package/dist/umd/Colon.js.map +1 -1
- package/dist/umd/Config.js +1 -1
- package/dist/umd/Config.js.map +1 -1
- package/dist/umd/Connect.js +1 -1
- package/dist/umd/Connect.js.map +1 -1
- package/dist/umd/Copy.js +1 -1
- package/dist/umd/Copy.js.map +1 -1
- package/dist/umd/CreditCard.js +1 -1
- package/dist/umd/CreditCard.js.map +1 -1
- package/dist/umd/CurlyBraces.js +1 -1
- package/dist/umd/CurlyBraces.js.map +1 -1
- package/dist/umd/Cursor.js +1 -1
- package/dist/umd/Cursor.js.map +1 -1
- package/dist/umd/Dashboard.js +1 -1
- package/dist/umd/Dashboard.js.map +1 -1
- package/dist/umd/Database.js +1 -1
- package/dist/umd/Database.js.map +1 -1
- package/dist/umd/Diagram.js +1 -1
- package/dist/umd/Diagram.js.map +1 -1
- package/dist/umd/Diagram2.js +1 -1
- package/dist/umd/Diagram2.js.map +1 -1
- package/dist/umd/Diagram3.js +1 -1
- package/dist/umd/Diagram3.js.map +1 -1
- package/dist/umd/Disconnect.js +1 -1
- package/dist/umd/Disconnect.js.map +1 -1
- package/dist/umd/Download.js +1 -1
- package/dist/umd/Download.js.map +1 -1
- package/dist/umd/Drag.js +1 -1
- package/dist/umd/Drag.js.map +1 -1
- package/dist/umd/Edit.js +1 -1
- package/dist/umd/Edit.js.map +1 -1
- package/dist/umd/Ellipsis.js +1 -1
- package/dist/umd/Ellipsis.js.map +1 -1
- package/dist/umd/Email.js +1 -1
- package/dist/umd/Email.js.map +1 -1
- package/dist/umd/EmptyDatabase.js +1 -1
- package/dist/umd/EmptyDatabase.js.map +1 -1
- package/dist/umd/EmptyFolder.js +1 -1
- package/dist/umd/EmptyFolder.js.map +1 -1
- package/dist/umd/Eraser.js +1 -1
- package/dist/umd/Eraser.js.map +1 -1
- package/dist/umd/Escalation.js +1 -1
- package/dist/umd/Escalation.js.map +1 -1
- package/dist/umd/Export.js +1 -1
- package/dist/umd/Export.js.map +1 -1
- package/dist/umd/Favorite.js +1 -1
- package/dist/umd/Favorite.js.map +1 -1
- package/dist/umd/Federation.js +1 -1
- package/dist/umd/Federation.js.map +1 -1
- package/dist/umd/File.js +1 -1
- package/dist/umd/File.js.map +1 -1
- package/dist/umd/Filter.js +1 -1
- package/dist/umd/Filter.js.map +1 -1
- package/dist/umd/Folder.js +1 -1
- package/dist/umd/Folder.js.map +1 -1
- package/dist/umd/Format.js +1 -1
- package/dist/umd/Format.js.map +1 -1
- package/dist/umd/FullScreenEnter.js +1 -1
- package/dist/umd/FullScreenEnter.js.map +1 -1
- package/dist/umd/FullScreenExit.js +1 -1
- package/dist/umd/FullScreenExit.js.map +1 -1
- package/dist/umd/Function.js +1 -1
- package/dist/umd/Function.js.map +1 -1
- package/dist/umd/Gauge.js +1 -1
- package/dist/umd/Gauge.js.map +1 -1
- package/dist/umd/GlobeAmericas.js +1 -1
- package/dist/umd/GlobeAmericas.js.map +1 -1
- package/dist/umd/GovernmentBuilding.js +1 -1
- package/dist/umd/GovernmentBuilding.js.map +1 -1
- package/dist/umd/Guide.js +1 -1
- package/dist/umd/Guide.js.map +1 -1
- package/dist/umd/Hash.js +1 -1
- package/dist/umd/Hash.js.map +1 -1
- package/dist/umd/HiddenSecondaryNode.js +1 -1
- package/dist/umd/HiddenSecondaryNode.js.map +1 -1
- package/dist/umd/Highlight.js +1 -1
- package/dist/umd/Highlight.js.map +1 -1
- package/dist/umd/Home.js +1 -1
- package/dist/umd/Home.js.map +1 -1
- package/dist/umd/HorizontalDrag.js +1 -1
- package/dist/umd/HorizontalDrag.js.map +1 -1
- package/dist/umd/Import.js +1 -1
- package/dist/umd/Import.js.map +1 -1
- package/dist/umd/ImportantWithCircle.js +1 -1
- package/dist/umd/ImportantWithCircle.js.map +1 -1
- package/dist/umd/InfoWithCircle.js +1 -1
- package/dist/umd/InfoWithCircle.js.map +1 -1
- package/dist/umd/InternalEmployee.js +1 -1
- package/dist/umd/InternalEmployee.js.map +1 -1
- package/dist/umd/InviteUser.js +1 -1
- package/dist/umd/InviteUser.js.map +1 -1
- package/dist/umd/Key.js +1 -1
- package/dist/umd/Key.js.map +1 -1
- package/dist/umd/Laptop.js +1 -1
- package/dist/umd/Laptop.js.map +1 -1
- package/dist/umd/LightningBolt.js +1 -1
- package/dist/umd/LightningBolt.js.map +1 -1
- package/dist/umd/Link.js +1 -1
- package/dist/umd/Link.js.map +1 -1
- package/dist/umd/List.js +1 -1
- package/dist/umd/List.js.map +1 -1
- package/dist/umd/Lock.js +1 -1
- package/dist/umd/Lock.js.map +1 -1
- package/dist/umd/LogIn.js +1 -1
- package/dist/umd/LogIn.js.map +1 -1
- package/dist/umd/LogOut.js +1 -1
- package/dist/umd/LogOut.js.map +1 -1
- package/dist/umd/MagnifyingGlass.js +1 -1
- package/dist/umd/MagnifyingGlass.js.map +1 -1
- package/dist/umd/Megaphone.js +1 -1
- package/dist/umd/Megaphone.js.map +1 -1
- package/dist/umd/Menu.js +1 -1
- package/dist/umd/Menu.js.map +1 -1
- package/dist/umd/Minus.js +1 -1
- package/dist/umd/Minus.js.map +1 -1
- package/dist/umd/Mobile.js +1 -1
- package/dist/umd/Mobile.js.map +1 -1
- package/dist/umd/Moon.js +1 -1
- package/dist/umd/Moon.js.map +1 -1
- package/dist/umd/MultiDirectionArrow.js +1 -1
- package/dist/umd/MultiDirectionArrow.js.map +1 -1
- package/dist/umd/MultiLayers.js +1 -1
- package/dist/umd/MultiLayers.js.map +1 -1
- package/dist/umd/NavCollapse.js +1 -1
- package/dist/umd/NavCollapse.js.map +1 -1
- package/dist/umd/NavExpand.js +1 -1
- package/dist/umd/NavExpand.js.map +1 -1
- package/dist/umd/NoFilter.js +1 -1
- package/dist/umd/NoFilter.js.map +1 -1
- package/dist/umd/NotAllowed.js +1 -1
- package/dist/umd/NotAllowed.js.map +1 -1
- package/dist/umd/Note.js +1 -1
- package/dist/umd/Note.js.map +1 -1
- package/dist/umd/NumberedList.js +1 -1
- package/dist/umd/NumberedList.js.map +1 -1
- package/dist/umd/OpenNewTab.js +1 -1
- package/dist/umd/OpenNewTab.js.map +1 -1
- package/dist/umd/OutlineFavorite.js +1 -1
- package/dist/umd/OutlineFavorite.js.map +1 -1
- package/dist/umd/Package.js +1 -1
- package/dist/umd/Package.js.map +1 -1
- package/dist/umd/Pause.js +1 -1
- package/dist/umd/Pause.js.map +1 -1
- package/dist/umd/Pending.js +1 -1
- package/dist/umd/Pending.js.map +1 -1
- package/dist/umd/Person.js +1 -1
- package/dist/umd/Person.js.map +1 -1
- package/dist/umd/PersonGroup.js +1 -1
- package/dist/umd/PersonGroup.js.map +1 -1
- package/dist/umd/PersonWithLock.js +1 -1
- package/dist/umd/PersonWithLock.js.map +1 -1
- package/dist/umd/Pin.js +1 -1
- package/dist/umd/Pin.js.map +1 -1
- package/dist/umd/Play.js +1 -1
- package/dist/umd/Play.js.map +1 -1
- package/dist/umd/Plus.js +1 -1
- package/dist/umd/Plus.js.map +1 -1
- package/dist/umd/PlusWithCircle.js +1 -1
- package/dist/umd/PlusWithCircle.js.map +1 -1
- package/dist/umd/Primary.js +1 -1
- package/dist/umd/Primary.js.map +1 -1
- package/dist/umd/Project.js +1 -1
- package/dist/umd/Project.js.map +1 -1
- package/dist/umd/QuestionMarkWithCircle.js +1 -1
- package/dist/umd/QuestionMarkWithCircle.js.map +1 -1
- package/dist/umd/Read.js +1 -1
- package/dist/umd/Read.js.map +1 -1
- package/dist/umd/Recommended.js +1 -1
- package/dist/umd/Recommended.js.map +1 -1
- package/dist/umd/Redo.js +1 -1
- package/dist/umd/Redo.js.map +1 -1
- package/dist/umd/Refresh.js +1 -1
- package/dist/umd/Refresh.js.map +1 -1
- package/dist/umd/Relationship.js +1 -1
- package/dist/umd/Relationship.js.map +1 -1
- package/dist/umd/ReplicaSet.js +1 -1
- package/dist/umd/ReplicaSet.js.map +1 -1
- package/dist/umd/Resize.js +1 -1
- package/dist/umd/Resize.js.map +1 -1
- package/dist/umd/Resource.js +1 -1
- package/dist/umd/Resource.js.map +1 -1
- package/dist/umd/Return.js +1 -1
- package/dist/umd/Return.js.map +1 -1
- package/dist/umd/Revert.js +1 -1
- package/dist/umd/Revert.js.map +1 -1
- package/dist/umd/Router.js +1 -1
- package/dist/umd/Router.js.map +1 -1
- package/dist/umd/SMS.js +1 -1
- package/dist/umd/SMS.js.map +1 -1
- package/dist/umd/Save.js +1 -1
- package/dist/umd/Save.js.map +1 -1
- package/dist/umd/SearchIndex.js +1 -1
- package/dist/umd/SearchIndex.js.map +1 -1
- package/dist/umd/Secondary.js +1 -1
- package/dist/umd/Secondary.js.map +1 -1
- package/dist/umd/Serverless.js +1 -1
- package/dist/umd/Serverless.js.map +1 -1
- package/dist/umd/Settings.js +1 -1
- package/dist/umd/Settings.js.map +1 -1
- package/dist/umd/ShardedCluster.js +1 -1
- package/dist/umd/ShardedCluster.js.map +1 -1
- package/dist/umd/Shell.js +1 -1
- package/dist/umd/Shell.js.map +1 -1
- package/dist/umd/Shield.js +1 -1
- package/dist/umd/Shield.js.map +1 -1
- package/dist/umd/Shirt.js +1 -1
- package/dist/umd/Shirt.js.map +1 -1
- package/dist/umd/SortAscending.js +1 -1
- package/dist/umd/SortAscending.js.map +1 -1
- package/dist/umd/SortDescending.js +1 -1
- package/dist/umd/SortDescending.js.map +1 -1
- package/dist/umd/Sparkle.js +1 -1
- package/dist/umd/Sparkle.js.map +1 -1
- package/dist/umd/SplitHorizontal.js +1 -1
- package/dist/umd/SplitHorizontal.js.map +1 -1
- package/dist/umd/SplitVertical.js +1 -1
- package/dist/umd/SplitVertical.js.map +1 -1
- package/dist/umd/Stitch.js +1 -1
- package/dist/umd/Stitch.js.map +1 -1
- package/dist/umd/Stop.js +1 -1
- package/dist/umd/Stop.js.map +1 -1
- package/dist/umd/Streaming.js +1 -1
- package/dist/umd/Streaming.js.map +1 -1
- package/dist/umd/String.js +1 -1
- package/dist/umd/String.js.map +1 -1
- package/dist/umd/Sun.js +1 -1
- package/dist/umd/Sun.js.map +1 -1
- package/dist/umd/Support.js +1 -1
- package/dist/umd/Support.js.map +1 -1
- package/dist/umd/Sweep.js +1 -1
- package/dist/umd/Sweep.js.map +1 -1
- package/dist/umd/Table.js +1 -1
- package/dist/umd/Table.js.map +1 -1
- package/dist/umd/Tag.js +1 -1
- package/dist/umd/Tag.js.map +1 -1
- package/dist/umd/TemporaryTable.js +1 -1
- package/dist/umd/TemporaryTable.js.map +1 -1
- package/dist/umd/ThumbsDown.js +1 -1
- package/dist/umd/ThumbsDown.js.map +1 -1
- package/dist/umd/ThumbsUp.js +1 -1
- package/dist/umd/ThumbsUp.js.map +1 -1
- package/dist/umd/TimeSeries.js +1 -1
- package/dist/umd/TimeSeries.js.map +1 -1
- package/dist/umd/TimeSeriesCollection.js +1 -1
- package/dist/umd/TimeSeriesCollection.js.map +1 -1
- package/dist/umd/Trash.js +1 -1
- package/dist/umd/Trash.js.map +1 -1
- package/dist/umd/Undo.js +1 -1
- package/dist/umd/Undo.js.map +1 -1
- package/dist/umd/University.js +1 -1
- package/dist/umd/University.js.map +1 -1
- package/dist/umd/Unlock.js +1 -1
- package/dist/umd/Unlock.js.map +1 -1
- package/dist/umd/Unsorted.js +1 -1
- package/dist/umd/Unsorted.js.map +1 -1
- package/dist/umd/UpDownCarets.js +1 -1
- package/dist/umd/UpDownCarets.js.map +1 -1
- package/dist/umd/Upload.js +1 -1
- package/dist/umd/Upload.js.map +1 -1
- package/dist/umd/VerticalEllipsis.js +1 -1
- package/dist/umd/VerticalEllipsis.js.map +1 -1
- package/dist/umd/View.js +1 -1
- package/dist/umd/View.js.map +1 -1
- package/dist/umd/Visibility.js +1 -1
- package/dist/umd/Visibility.js.map +1 -1
- package/dist/umd/VisibilityOff.js +1 -1
- package/dist/umd/VisibilityOff.js.map +1 -1
- package/dist/umd/Warning.js +1 -1
- package/dist/umd/Warning.js.map +1 -1
- package/dist/umd/Wizard.js +1 -1
- package/dist/umd/Wizard.js.map +1 -1
- package/dist/umd/Wrench.js +1 -1
- package/dist/umd/Wrench.js.map +1 -1
- package/dist/umd/Write.js +1 -1
- package/dist/umd/Write.js.map +1 -1
- package/dist/umd/X.js +1 -1
- package/dist/umd/X.js.map +1 -1
- package/dist/umd/XWithCircle.js +1 -1
- package/dist/umd/XWithCircle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +9 -5
- package/rollup.batch.config.mjs +19 -0
- package/rollup.config.mjs +1 -46
- package/scripts/build-parallel.ts +110 -0
- package/scripts/postbuild.ts +26 -0
- package/src/Icon.stories.tsx +1 -1
- package/src/Icon.tsx +3 -0
- package/src/generated/AIModel.tsx +39 -0
- package/src/glyphs/AIModel.svg +20 -0
- package/src/glyphs/index.ts +3 -1
- package/stories.js +1 -1
- package/tsdoc.json +1 -1
- package/turbo.json +13 -0
package/dist/umd/Sweep.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Sweep=e.Sweep||{},e.Sweep.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Sweep=e.Sweep||{},e.Sweep.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,p=e.title,d=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),j=r.css(o||(o=a(["\n color: ",";\n "])),v),h=r.css(u||(u=a(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,l=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return l||a||o?i(i(i({},"aria-labelledby",a),"aria-label",l),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Sweep",i(i({title:p},"aria-label",d),"aria-labelledby",y));return n.createElement("svg",l({className:r.cx(i({},j,null!=v),h,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},w,O,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.99968 14.4647L4.00129 12.7336C4.29347 12.9026 4.63232 13 5 13H7V15H5C4.27129 15 3.5881 14.8051 2.99968 14.4647ZM9 15V13H11C11.3677 13 11.7065 12.9026 11.9987 12.7336L13.0003 14.4647C12.4119 14.8051 11.7287 15 11 15H9ZM15 7H13V5C13 4.63233 12.9026 4.29347 12.7336 4.00129L14.4647 2.99968C14.8051 3.5881 15 4.27129 15 5V7ZM7 1H5C4.27129 1 3.5881 1.19486 2.99968 1.53531L4.00129 3.26643C4.29347 3.09738 4.63233 3 5 3H7V1ZM1 9H3V11C3 11.3677 3.09738 11.7065 3.26643 11.9987L1.53531 13.0003C1.19486 12.4119 1 11.7287 1 11V9ZM1 7H3V5C3 4.63232 3.09738 4.29347 3.26643 4.00129L1.53531 2.99968C1.19486 3.5881 1 4.27129 1 5V7ZM9 1V3H11C11.3677 3 11.7065 3.09738 11.9987 3.26643L13.0003 1.53531C12.4119 1.19486 11.7287 1 11 1H9ZM15 9H13V11C13 11.3677 12.9026 11.7065 12.7336 11.9987L14.4647 13.0003C14.8051 12.4119 15 11.7287 15 11V9Z",fill:"currentColor"}))};return b.displayName="Sweep",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Sweep.js.map
|
package/dist/umd/Sweep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sweep.js","sources":["../../src/glyphCommon.ts","../../src/generated/Sweep.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 packages/icon/scripts/prebuild.ts\n* @checksum 19709bedacd351032ba4c4b5553ffba7\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface SweepProps extends LGGlyph.ComponentProps {}\nconst Sweep = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: SweepProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Sweep', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2.99968 14.4647L4.00129 12.7336C4.29347 12.9026 4.63232 13 5 13H7V15H5C4.27129 15 3.5881 14.8051 2.99968 14.4647ZM9 15V13H11C11.3677 13 11.7065 12.9026 11.9987 12.7336L13.0003 14.4647C12.4119 14.8051 11.7287 15 11 15H9ZM15 7H13V5C13 4.63233 12.9026 4.29347 12.7336 4.00129L14.4647 2.99968C14.8051 3.5881 15 4.27129 15 5V7ZM7 1H5C4.27129 1 3.5881 1.19486 2.99968 1.53531L4.00129 3.26643C4.29347 3.09738 4.63233 3 5 3H7V1ZM1 9H3V11C3 11.3677 3.09738 11.7065 3.26643 11.9987L1.53531 13.0003C1.19486 12.4119 1 11.7287 1 11V9ZM1 7H3V5C3 4.63232 3.09738 4.29347 3.26643 4.00129L1.53531 2.99968C1.19486 3.5881 1 4.27129 1 5V7ZM9 1V3H11C11.3677 3 11.7065 3.09738 11.9987 3.26643L13.0003 1.53531C12.4119 1.19486 11.7287 1 11 1H9ZM15 9H13V11C13 11.3677 12.9026 11.7065 12.7336 11.9987L14.4647 13.0003C14.8051 12.4119 15 11.7287 15 11V9Z\" fill={'currentColor'} /></svg>;\n};\nSweep.displayName = 'Sweep';\nSweep.isGlyph = true;\nexport default Sweep;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Sweep","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sweep.js","sources":["../../src/glyphCommon.ts","../../src/generated/Sweep.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 packages/icon/scripts/prebuild.ts\n* @checksum 19709bedacd351032ba4c4b5553ffba7\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface SweepProps extends LGGlyph.ComponentProps {}\nconst Sweep = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: SweepProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Sweep', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2.99968 14.4647L4.00129 12.7336C4.29347 12.9026 4.63232 13 5 13H7V15H5C4.27129 15 3.5881 14.8051 2.99968 14.4647ZM9 15V13H11C11.3677 13 11.7065 12.9026 11.9987 12.7336L13.0003 14.4647C12.4119 14.8051 11.7287 15 11 15H9ZM15 7H13V5C13 4.63233 12.9026 4.29347 12.7336 4.00129L14.4647 2.99968C14.8051 3.5881 15 4.27129 15 5V7ZM7 1H5C4.27129 1 3.5881 1.19486 2.99968 1.53531L4.00129 3.26643C4.29347 3.09738 4.63233 3 5 3H7V1ZM1 9H3V11C3 11.3677 3.09738 11.7065 3.26643 11.9987L1.53531 13.0003C1.19486 12.4119 1 11.7287 1 11V9ZM1 7H3V5C3 4.63232 3.09738 4.29347 3.26643 4.00129L1.53531 2.99968C1.19486 3.5881 1 4.27129 1 5V7ZM9 1V3H11C11.3677 3 11.7065 3.09738 11.9987 3.26643L13.0003 1.53531C12.4119 1.19486 11.7287 1 11 1H9ZM15 9H13V11C13 11.3677 12.9026 11.7065 12.7336 11.9987L14.4647 13.0003C14.8051 12.4119 15 11.7287 15 11V9Z\" fill={'currentColor'} /></svg>;\n};\nSweep.displayName = 'Sweep';\nSweep.isGlyph = true;\nexport default Sweep;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Sweep","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,QAASU,EAAgBA,EAAgB,CAC3Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,8zBACH1B,KAAM,iBAEV,SACAR,EAAMmC,YAAc,QACpBnC,EAAMoC,SAAU"}
|
package/dist/umd/Table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Table=e.Table||{},e.Table.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Table=e.Table||{},e.Table.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var l=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,c),j=r.css(o||(o=i(["\n color: ",";\n "])),v),h=r.css(u||(u=i(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var l,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?n(n(n({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Table",n(n({title:d},"aria-label",y),"aria-labelledby",p));return l.createElement("svg",a({className:r.cx(n({},j,null!=v),h,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},w,O,{viewBox:"0 0 16 16"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3.25C1 2.55964 1.55964 2 2.25 2H13.75C14.4404 2 15 2.55964 15 3.25V12.75C15 13.4404 14.4404 14 13.75 14H2.25C1.55964 14 1 13.4404 1 12.75V3.25ZM3 7.37V4H7.37V7.37H3ZM3 8.62V12H7.37V8.62H3ZM8.62 12H13V8.62H8.62V12ZM13 7.37V4H8.62V7.37H13Z",fill:"currentColor"}))};return b.displayName="Table",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Table.js.map
|
package/dist/umd/Table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sources":["../../src/glyphCommon.ts","../../src/generated/Table.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 packages/icon/scripts/prebuild.ts\n* @checksum 077d314d22f0e9b726f90c165562b8d3\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TableProps extends LGGlyph.ComponentProps {}\nconst Table = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TableProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Table', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1 3.25C1 2.55964 1.55964 2 2.25 2H13.75C14.4404 2 15 2.55964 15 3.25V12.75C15 13.4404 14.4404 14 13.75 14H2.25C1.55964 14 1 13.4404 1 12.75V3.25ZM3 7.37V4H7.37V7.37H3ZM3 8.62V12H7.37V8.62H3ZM8.62 12H13V8.62H8.62V12ZM13 7.37V4H8.62V7.37H13Z\" fill={'currentColor'} /></svg>;\n};\nTable.displayName = 'Table';\nTable.isGlyph = true;\nexport default Table;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Table","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.js","sources":["../../src/glyphCommon.ts","../../src/generated/Table.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 packages/icon/scripts/prebuild.ts\n* @checksum 077d314d22f0e9b726f90c165562b8d3\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TableProps extends LGGlyph.ComponentProps {}\nconst Table = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TableProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Table', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1 3.25C1 2.55964 1.55964 2 2.25 2H13.75C14.4404 2 15 2.55964 15 3.25V12.75C15 13.4404 14.4404 14 13.75 14H2.25C1.55964 14 1 13.4404 1 12.75V3.25ZM3 7.37V4H7.37V7.37H3ZM3 8.62V12H7.37V8.62H3ZM8.62 12H13V8.62H8.62V12ZM13 7.37V4H8.62V7.37H13Z\" fill={'currentColor'} /></svg>;\n};\nTable.displayName = 'Table';\nTable.isGlyph = true;\nexport default Table;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Table","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,QAASU,EAAgBA,EAAgB,CAC3Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,mPACH1B,KAAM,iBAEV,SACAR,EAAMmC,YAAc,QACpBnC,EAAMoC,SAAU"}
|
package/dist/umd/Tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Tag=e.Tag||{},e.Tag.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Tag=e.Tag||{},e.Tag.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function a(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],v=e.fill,g=e.role,m=void 0===g?"img":g,O=function(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,c),j=r.css(o||(o=l(["\n color: ",";\n "])),v),h=r.css(u||(u=l(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,i=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return i||l||o?a(a(a({},"aria-labelledby",l),"aria-label",i),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(m,"Tag",a(a({title:d},"aria-label",y),"aria-labelledby",p));return n.createElement("svg",i({className:r.cx(a({},j,null!=v),h,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:m},w,O,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 14.2929L14.2929 9.70711C14.6834 9.31658 14.6834 8.68342 14.2929 8.29289L8.29289 2.29289C8.10536 2.10536 7.851 2 7.58579 2H3C2.44772 2 2 2.44772 2 3V7.58579C2 7.851 2.10536 8.10536 2.29289 8.29289L8.29289 14.2929C8.68342 14.6834 9.31658 14.6834 9.70711 14.2929ZM5 6C5.55228 6 6 5.55228 6 5C6 4.44772 5.55228 4 5 4C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6Z",fill:"currentColor"}))};return b.displayName="Tag",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Tag.js.map
|
package/dist/umd/Tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sources":["../../src/glyphCommon.ts","../../src/generated/Tag.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 packages/icon/scripts/prebuild.ts\n* @checksum 8dd5ef92473c81a65ab451e321b999c5\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TagProps extends LGGlyph.ComponentProps {}\nconst Tag = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TagProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Tag', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M9.70711 14.2929L14.2929 9.70711C14.6834 9.31658 14.6834 8.68342 14.2929 8.29289L8.29289 2.29289C8.10536 2.10536 7.851 2 7.58579 2H3C2.44772 2 2 2.44772 2 3V7.58579C2 7.851 2.10536 8.10536 2.29289 8.29289L8.29289 14.2929C8.68342 14.6834 9.31658 14.6834 9.70711 14.2929ZM5 6C5.55228 6 6 5.55228 6 5C6 4.44772 5.55228 4 5 4C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6Z\" fill={'currentColor'} /></svg>;\n};\nTag.displayName = 'Tag';\nTag.isGlyph = true;\nexport default Tag;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Tag","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.js","sources":["../../src/glyphCommon.ts","../../src/generated/Tag.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 packages/icon/scripts/prebuild.ts\n* @checksum 8dd5ef92473c81a65ab451e321b999c5\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TagProps extends LGGlyph.ComponentProps {}\nconst Tag = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TagProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Tag', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M9.70711 14.2929L14.2929 9.70711C14.6834 9.31658 14.6834 8.68342 14.2929 8.29289L8.29289 2.29289C8.10536 2.10536 7.851 2 7.58579 2H3C2.44772 2 2 2.44772 2 3V7.58579C2 7.851 2.10536 8.10536 2.29289 8.29289L8.29289 14.2929C8.68342 14.6834 9.31658 14.6834 9.70711 14.2929ZM5 6C5.55228 6 6 5.55228 6 5C6 4.44772 5.55228 4 5 4C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6Z\" fill={'currentColor'} /></svg>;\n};\nTag.displayName = 'Tag';\nTag.isGlyph = true;\nexport default Tag;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Tag","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"q4CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAM,SAAaC,GACrB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,MAAOU,EAAgBA,EAAgB,CACzFf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,qXACH1B,KAAM,iBAEV,SACAR,EAAImC,YAAc,MAClBnC,EAAIoC,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TemporaryTable=e.TemporaryTable||{},e.TemporaryTable.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TemporaryTable=e.TemporaryTable||{},e.TemporaryTable.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var l=t(e);function a(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},n.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],m=e.fill,v=e.role,g=void 0===v?"img":v,O=function(e,r){if(null==e)return{};var t,l,a=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)t=n[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,c),h=r.css(o||(o=i(["\n color: ",";\n "])),m),j=r.css(u||(u=i(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var l,n=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||i||o?a(a(a({},"aria-labelledby",i),"aria-label",n),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"TemporaryTable",a(a({title:d},"aria-label",p),"aria-labelledby",y));return l.createElement("svg",n({className:r.cx(a({},h,null!=m),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},C,O,{viewBox:"0 0 16 16"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 2C1.55965 2 1 2.55963 1 3.25V12.75C1 13.4404 1.55965 14 2.25 14H8.62012L8.62 8.62L15 8.62012V3.25C15 2.55963 14.4404 2 13.75 2H2.25ZM3 4V7.37H7.37V4H3ZM3 12V8.62H7.37V12H3ZM13 4V7.37H8.62V4H13Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 16C14.6569 16 16 14.6569 16 13C16 11.3431 14.6569 10 13 10C11.3431 10 10 11.3431 10 13C10 14.6569 11.3431 16 13 16ZM12.625 11.375C12.625 11.1679 12.7929 11 13 11C13.2071 11 13.375 11.1679 13.375 11.375V12.9548L14.2469 13.7178C14.4028 13.8542 14.4186 14.0911 14.2822 14.2469C14.1458 14.4028 13.9089 14.4186 13.7531 14.2822L12.7553 13.4092C12.7507 13.4052 12.7462 13.4011 12.7418 13.397C12.7069 13.3639 12.6798 13.3256 12.6604 13.2843C12.6377 13.236 12.625 13.182 12.625 13.125V11.375Z",fill:"currentColor"}))};return b.displayName="TemporaryTable",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=TemporaryTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporaryTable.js","sources":["../../src/glyphCommon.ts","../../src/generated/TemporaryTable.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 packages/icon/scripts/prebuild.ts\n* @checksum c7ea00e5f1425af9bd4940799dfea1c0\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TemporaryTableProps extends LGGlyph.ComponentProps {}\nconst TemporaryTable = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TemporaryTableProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TemporaryTable', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2.25 2C1.55965 2 1 2.55963 1 3.25V12.75C1 13.4404 1.55965 14 2.25 14H8.62012L8.62 8.62L15 8.62012V3.25C15 2.55963 14.4404 2 13.75 2H2.25ZM3 4V7.37H7.37V4H3ZM3 12V8.62H7.37V12H3ZM13 4V7.37H8.62V4H13Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M13 16C14.6569 16 16 14.6569 16 13C16 11.3431 14.6569 10 13 10C11.3431 10 10 11.3431 10 13C10 14.6569 11.3431 16 13 16ZM12.625 11.375C12.625 11.1679 12.7929 11 13 11C13.2071 11 13.375 11.1679 13.375 11.375V12.9548L14.2469 13.7178C14.4028 13.8542 14.4186 14.0911 14.2822 14.2469C14.1458 14.4028 13.9089 14.4186 13.7531 14.2822L12.7553 13.4092C12.7507 13.4052 12.7462 13.4011 12.7418 13.397C12.7069 13.3639 12.6798 13.3256 12.6604 13.2843C12.6377 13.236 12.625 13.182 12.625 13.125V11.375Z\" fill={'currentColor'} /></svg>;\n};\nTemporaryTable.displayName = 'TemporaryTable';\nTemporaryTable.isGlyph = true;\nexport default TemporaryTable;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TemporaryTable","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemporaryTable.js","sources":["../../src/glyphCommon.ts","../../src/generated/TemporaryTable.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 packages/icon/scripts/prebuild.ts\n* @checksum c7ea00e5f1425af9bd4940799dfea1c0\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TemporaryTableProps extends LGGlyph.ComponentProps {}\nconst TemporaryTable = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TemporaryTableProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TemporaryTable', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M2.25 2C1.55965 2 1 2.55963 1 3.25V12.75C1 13.4404 1.55965 14 2.25 14H8.62012L8.62 8.62L15 8.62012V3.25C15 2.55963 14.4404 2 13.75 2H2.25ZM3 4V7.37H7.37V4H3ZM3 12V8.62H7.37V12H3ZM13 4V7.37H8.62V4H13Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M13 16C14.6569 16 16 14.6569 16 13C16 11.3431 14.6569 10 13 10C11.3431 10 10 11.3431 10 13C10 14.6569 11.3431 16 13 16ZM12.625 11.375C12.625 11.1679 12.7929 11 13 11C13.2071 11 13.375 11.1679 13.375 11.375V12.9548L14.2469 13.7178C14.4028 13.8542 14.4186 14.0911 14.2822 14.2469C14.1458 14.4028 13.9089 14.4186 13.7531 14.2822L12.7553 13.4092C12.7507 13.4052 12.7462 13.4011 12.7418 13.397C12.7069 13.3639 12.6798 13.3256 12.6604 13.2843C12.6377 13.236 12.625 13.182 12.625 13.125V11.375Z\" fill={'currentColor'} /></svg>;\n};\nTemporaryTable.displayName = 'TemporaryTable';\nTemporaryTable.isGlyph = true;\nexport default TemporaryTable;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TemporaryTable","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"s6CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAiB,SAAwBC,GAC3C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,iBAAkBU,EAAgBA,EAAgB,CACpGf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,0MACH1B,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,0eACH1B,KAAM,iBAEV,SACAR,EAAemC,YAAc,iBAC7BnC,EAAeoC,SAAU"}
|
package/dist/umd/ThumbsDown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbsDown=e.ThumbsDown||{},e.ThumbsDown.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbsDown=e.ThumbsDown||{},e.ThumbsDown.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],m=e["aria-labelledby"],p=e.fill,v=e.role,g=void 0===v?"img":v,h=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),O=r.css(o||(o=a(["\n color: ",";\n "])),p),j=r.css(u||(u=a(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,l=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return l||a||o?i(i(i({},"aria-labelledby",a),"aria-label",l),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"ThumbsDown",i(i({title:d},"aria-label",y),"aria-labelledby",m));return n.createElement("svg",l({className:r.cx(i({},O,null!=p),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},w,h,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.01852 15C8.53023 15 8.99812 14.7199 9.22744 14.2764L11.728 9.43945C11.7542 9.38879 11.7773 9.33683 11.7972 9.28386C11.8277 9.28652 11.8584 9.28788 11.8896 9.28788L13.9843 9.28788C14.5453 9.28788 15 8.84694 15 8.30303L15 3.18182C15 2.6379 14.5453 2 13.9844 2L11.8896 2C11.6144 2 11 2 11 2C11 2 10.3639 2 9.85827 2L3.99311 2C3.02273 2 2.18787 2.66552 2.00017 3.5887L1.03904 8.31597C0.791531 9.53331 1.7524 10.6667 3.03198 10.6667L5.31958 10.6667L5.31958 12.3829C5.31958 13.8283 6.52794 15 8.01852 15ZM9.85827 8.66091L7.65371 12.9252C7.47137 12.8096 7.35088 12.6099 7.35088 12.3829L7.35088 10.0758C7.35088 9.31427 6.71427 8.69697 5.92897 8.69697L3.64387 8.69697C3.32769 8.69697 3.09089 8.40718 3.15389 8.09735L3.9117 4.37008C3.95907 4.1371 4.16394 3.9697 4.40168 3.9697L9.85827 3.9697L9.85827 8.66091Z",fill:"currentColor"}))};return b.displayName="ThumbsDown",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=ThumbsDown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThumbsDown.js","sources":["../../src/glyphCommon.ts","../../src/generated/ThumbsDown.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 packages/icon/scripts/prebuild.ts\n* @checksum a436d7fcd8c5e9bc6c9306d7442b852d\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ThumbsDownProps extends LGGlyph.ComponentProps {}\nconst ThumbsDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ThumbsDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ThumbsDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8.01852 15C8.53023 15 8.99812 14.7199 9.22744 14.2764L11.728 9.43945C11.7542 9.38879 11.7773 9.33683 11.7972 9.28386C11.8277 9.28652 11.8584 9.28788 11.8896 9.28788L13.9843 9.28788C14.5453 9.28788 15 8.84694 15 8.30303L15 3.18182C15 2.6379 14.5453 2 13.9844 2L11.8896 2C11.6144 2 11 2 11 2C11 2 10.3639 2 9.85827 2L3.99311 2C3.02273 2 2.18787 2.66552 2.00017 3.5887L1.03904 8.31597C0.791531 9.53331 1.7524 10.6667 3.03198 10.6667L5.31958 10.6667L5.31958 12.3829C5.31958 13.8283 6.52794 15 8.01852 15ZM9.85827 8.66091L7.65371 12.9252C7.47137 12.8096 7.35088 12.6099 7.35088 12.3829L7.35088 10.0758C7.35088 9.31427 6.71427 8.69697 5.92897 8.69697L3.64387 8.69697C3.32769 8.69697 3.09089 8.40718 3.15389 8.09735L3.9117 4.37008C3.95907 4.1371 4.16394 3.9697 4.40168 3.9697L9.85827 3.9697L9.85827 8.66091Z\" fill={'currentColor'} /></svg>;\n};\nThumbsDown.displayName = 'ThumbsDown';\nThumbsDown.isGlyph = true;\nexport default ThumbsDown;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ThumbsDown","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThumbsDown.js","sources":["../../src/glyphCommon.ts","../../src/generated/ThumbsDown.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 packages/icon/scripts/prebuild.ts\n* @checksum a436d7fcd8c5e9bc6c9306d7442b852d\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ThumbsDownProps extends LGGlyph.ComponentProps {}\nconst ThumbsDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ThumbsDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ThumbsDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8.01852 15C8.53023 15 8.99812 14.7199 9.22744 14.2764L11.728 9.43945C11.7542 9.38879 11.7773 9.33683 11.7972 9.28386C11.8277 9.28652 11.8584 9.28788 11.8896 9.28788L13.9843 9.28788C14.5453 9.28788 15 8.84694 15 8.30303L15 3.18182C15 2.6379 14.5453 2 13.9844 2L11.8896 2C11.6144 2 11 2 11 2C11 2 10.3639 2 9.85827 2L3.99311 2C3.02273 2 2.18787 2.66552 2.00017 3.5887L1.03904 8.31597C0.791531 9.53331 1.7524 10.6667 3.03198 10.6667L5.31958 10.6667L5.31958 12.3829C5.31958 13.8283 6.52794 15 8.01852 15ZM9.85827 8.66091L7.65371 12.9252C7.47137 12.8096 7.35088 12.6099 7.35088 12.3829L7.35088 10.0758C7.35088 9.31427 6.71427 8.69697 5.92897 8.69697L3.64387 8.69697C3.32769 8.69697 3.09089 8.40718 3.15389 8.09735L3.9117 4.37008C3.95907 4.1371 4.16394 3.9697 4.40168 3.9697L9.85827 3.9697L9.85827 8.66091Z\" fill={'currentColor'} /></svg>;\n};\nThumbsDown.displayName = 'ThumbsDown';\nThumbsDown.isGlyph = true;\nexport default ThumbsDown;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ThumbsDown","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"05CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAa,SAAoBC,GACnC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,aAAcU,EAAgBA,EAAgB,CAChGf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,oyBACH1B,KAAM,iBAEV,SACAR,EAAWmC,YAAc,aACzBnC,EAAWoC,SAAU"}
|
package/dist/umd/ThumbsUp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbsUp=e.ThumbsUp||{},e.ThumbsUp.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ThumbsUp=e.ThumbsUp||{},e.ThumbsUp.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,p=e.title,d=e["aria-label"],y=e["aria-labelledby"],m=e.fill,v=e.role,g=void 0===v?"img":v,h=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),O=r.css(o||(o=a(["\n color: ",";\n "])),m),j=r.css(u||(u=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,l=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return l||a||o?i(i(i({},"aria-labelledby",a),"aria-label",l),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"ThumbsUp",i(i({title:p},"aria-label",d),"aria-labelledby",y));return n.createElement("svg",l({className:r.cx(i({},O,null!=m),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},C,h,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.98148 1C7.46977 1 7.00188 1.28007 6.77256 1.72365L4.27198 6.56054C4.24579 6.61121 4.22269 6.66317 4.20275 6.71614C4.17234 6.71348 4.14155 6.71212 4.11043 6.71212H2.01565C1.45472 6.71212 1 7.15306 1 7.69697V12.8182C1 13.3621 1.45472 14 2.01565 14H4.11043C4.38564 14 5 14 5 14C5 14 5.63614 14 6.14173 14H12.0069C12.9773 14 13.8121 13.3345 13.9998 12.4113L14.961 7.68402C15.2085 6.46669 14.2476 5.33333 12.968 5.33333H10.6804V3.61709C10.6804 2.17171 9.47206 1 7.98148 1ZM6.14173 7.33909L8.34629 3.0748C8.52863 3.19038 8.64912 3.39009 8.64912 3.61709V5.92424C8.64912 6.68572 9.28573 7.30303 10.071 7.30303H12.3561C12.6723 7.30303 12.9091 7.59282 12.8461 7.90265L12.0883 11.6299C12.0409 11.8629 11.8361 12.0303 11.5983 12.0303L6.14173 12.0303V7.33909Z",fill:"currentColor"}))};return b.displayName="ThumbsUp",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=ThumbsUp.js.map
|
package/dist/umd/ThumbsUp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThumbsUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/ThumbsUp.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 packages/icon/scripts/prebuild.ts\n* @checksum bd93c00cee8e2d83f38fe9aec249d337\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ThumbsUpProps extends LGGlyph.ComponentProps {}\nconst ThumbsUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ThumbsUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ThumbsUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M7.98148 1C7.46977 1 7.00188 1.28007 6.77256 1.72365L4.27198 6.56054C4.24579 6.61121 4.22269 6.66317 4.20275 6.71614C4.17234 6.71348 4.14155 6.71212 4.11043 6.71212H2.01565C1.45472 6.71212 1 7.15306 1 7.69697V12.8182C1 13.3621 1.45472 14 2.01565 14H4.11043C4.38564 14 5 14 5 14C5 14 5.63614 14 6.14173 14H12.0069C12.9773 14 13.8121 13.3345 13.9998 12.4113L14.961 7.68402C15.2085 6.46669 14.2476 5.33333 12.968 5.33333H10.6804V3.61709C10.6804 2.17171 9.47206 1 7.98148 1ZM6.14173 7.33909L8.34629 3.0748C8.52863 3.19038 8.64912 3.39009 8.64912 3.61709V5.92424C8.64912 6.68572 9.28573 7.30303 10.071 7.30303H12.3561C12.6723 7.30303 12.9091 7.59282 12.8461 7.90265L12.0883 11.6299C12.0409 11.8629 11.8361 12.0303 11.5983 12.0303L6.14173 12.0303V7.33909Z\" fill={'currentColor'} /></svg>;\n};\nThumbsUp.displayName = 'ThumbsUp';\nThumbsUp.isGlyph = true;\nexport default ThumbsUp;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ThumbsUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThumbsUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/ThumbsUp.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 packages/icon/scripts/prebuild.ts\n* @checksum bd93c00cee8e2d83f38fe9aec249d337\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ThumbsUpProps extends LGGlyph.ComponentProps {}\nconst ThumbsUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ThumbsUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ThumbsUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M7.98148 1C7.46977 1 7.00188 1.28007 6.77256 1.72365L4.27198 6.56054C4.24579 6.61121 4.22269 6.66317 4.20275 6.71614C4.17234 6.71348 4.14155 6.71212 4.11043 6.71212H2.01565C1.45472 6.71212 1 7.15306 1 7.69697V12.8182C1 13.3621 1.45472 14 2.01565 14H4.11043C4.38564 14 5 14 5 14C5 14 5.63614 14 6.14173 14H12.0069C12.9773 14 13.8121 13.3345 13.9998 12.4113L14.961 7.68402C15.2085 6.46669 14.2476 5.33333 12.968 5.33333H10.6804V3.61709C10.6804 2.17171 9.47206 1 7.98148 1ZM6.14173 7.33909L8.34629 3.0748C8.52863 3.19038 8.64912 3.39009 8.64912 3.61709V5.92424C8.64912 6.68572 9.28573 7.30303 10.071 7.30303H12.3561C12.6723 7.30303 12.9091 7.59282 12.8461 7.90265L12.0883 11.6299C12.0409 11.8629 11.8361 12.0303 11.5983 12.0303L6.14173 12.0303V7.33909Z\" fill={'currentColor'} /></svg>;\n};\nThumbsUp.displayName = 'ThumbsUp';\nThumbsUp.isGlyph = true;\nexport default ThumbsUp;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ThumbsUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,gvBACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
|
package/dist/umd/TimeSeries.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TimeSeries=e.TimeSeries||{},e.TimeSeries.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TimeSeries=e.TimeSeries||{},e.TimeSeries.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,d=e.title,m=e["aria-label"],y=e["aria-labelledby"],p=e.fill,v=e.role,g=void 0===v?"img":v,O=function(e,r){if(null==e)return{};var t,i,n=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)t=a[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,c),h=r.css(o||(o=l(["\n color: ",";\n "])),p),j=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var i,a=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||l||o?n(n(n({},"aria-labelledby",l),"aria-label",a),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"TimeSeries",n(n({title:d},"aria-label",m),"aria-labelledby",y));return i.createElement("svg",a({className:r.cx(n({},h,null!=p),j,t),height:"number"==typeof b?b:u[b],width:"number"==typeof b?b:u[b],role:g},C,O,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M7.02336 1.51761C7.53556 1.54248 7.97993 1.88141 8.14209 2.37087L9.38008 6.10758L10.9391 4.01615C11.1552 3.72626 11.4857 3.54499 11.8449 3.5193C12.2042 3.49361 12.5568 3.62604 12.8115 3.88227L14.7089 5.79128C15.097 6.1818 15.097 6.81497 14.7089 7.20549L14.3325 7.55905C13.9444 7.94957 13.3151 7.94957 12.9269 7.55905L12.0674 6.66916L9.94519 9.51615C9.66793 9.8881 9.2084 10.0745 8.75227 10C8.29614 9.92554 7.91877 9.60251 7.77265 9.16144L6.79779 6.21895L6.11095 7.77383C5.91154 8.22524 5.46662 8.51615 4.97564 8.51615H1.99391C1.44499 8.51615 1 8.06844 1 7.51615V7.01615C1 6.46387 1.44499 6.01615 1.99391 6.01615H4.16825L5.82815 2.25848C6.03641 1.78702 6.51117 1.49273 7.02336 1.51761Z",fill:"currentColor"}),i.createElement("path",{d:"M14 12C14.5523 12 15 12.4477 15 13V13.5C15 14.0523 14.5523 14.5 14 14.5H2C1.44772 14.5 1 14.0523 1 13.5V13C1 12.4477 1.44772 12 2 12H14Z",fill:"currentColor"}))};return s.displayName="TimeSeries",s.isGlyph=!0,s});
|
|
2
2
|
//# sourceMappingURL=TimeSeries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSeries.js","sources":["../../src/glyphCommon.ts","../../src/generated/TimeSeries.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 packages/icon/scripts/prebuild.ts\n* @checksum 718f505a8c3356853a86e5b081ea9066\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TimeSeriesProps extends LGGlyph.ComponentProps {}\nconst TimeSeries = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TimeSeriesProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TimeSeries', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7.02336 1.51761C7.53556 1.54248 7.97993 1.88141 8.14209 2.37087L9.38008 6.10758L10.9391 4.01615C11.1552 3.72626 11.4857 3.54499 11.8449 3.5193C12.2042 3.49361 12.5568 3.62604 12.8115 3.88227L14.7089 5.79128C15.097 6.1818 15.097 6.81497 14.7089 7.20549L14.3325 7.55905C13.9444 7.94957 13.3151 7.94957 12.9269 7.55905L12.0674 6.66916L9.94519 9.51615C9.66793 9.8881 9.2084 10.0745 8.75227 10C8.29614 9.92554 7.91877 9.60251 7.77265 9.16144L6.79779 6.21895L6.11095 7.77383C5.91154 8.22524 5.46662 8.51615 4.97564 8.51615H1.99391C1.44499 8.51615 1 8.06844 1 7.51615V7.01615C1 6.46387 1.44499 6.01615 1.99391 6.01615H4.16825L5.82815 2.25848C6.03641 1.78702 6.51117 1.49273 7.02336 1.51761Z\" fill={'currentColor'} /><path d=\"M14 12C14.5523 12 15 12.4477 15 13V13.5C15 14.0523 14.5523 14.5 14 14.5H2C1.44772 14.5 1 14.0523 1 13.5V13C1 12.4477 1.44772 12 2 12H14Z\" fill={'currentColor'} /></svg>;\n};\nTimeSeries.displayName = 'TimeSeries';\nTimeSeries.isGlyph = true;\nexport default TimeSeries;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TimeSeries","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeSeries.js","sources":["../../src/glyphCommon.ts","../../src/generated/TimeSeries.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 packages/icon/scripts/prebuild.ts\n* @checksum 718f505a8c3356853a86e5b081ea9066\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TimeSeriesProps extends LGGlyph.ComponentProps {}\nconst TimeSeries = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TimeSeriesProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TimeSeries', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7.02336 1.51761C7.53556 1.54248 7.97993 1.88141 8.14209 2.37087L9.38008 6.10758L10.9391 4.01615C11.1552 3.72626 11.4857 3.54499 11.8449 3.5193C12.2042 3.49361 12.5568 3.62604 12.8115 3.88227L14.7089 5.79128C15.097 6.1818 15.097 6.81497 14.7089 7.20549L14.3325 7.55905C13.9444 7.94957 13.3151 7.94957 12.9269 7.55905L12.0674 6.66916L9.94519 9.51615C9.66793 9.8881 9.2084 10.0745 8.75227 10C8.29614 9.92554 7.91877 9.60251 7.77265 9.16144L6.79779 6.21895L6.11095 7.77383C5.91154 8.22524 5.46662 8.51615 4.97564 8.51615H1.99391C1.44499 8.51615 1 8.06844 1 7.51615V7.01615C1 6.46387 1.44499 6.01615 1.99391 6.01615H4.16825L5.82815 2.25848C6.03641 1.78702 6.51117 1.49273 7.02336 1.51761Z\" fill={'currentColor'} /><path d=\"M14 12C14.5523 12 15 12.4477 15 13V13.5C15 14.0523 14.5523 14.5 14 14.5H2C1.44772 14.5 1 14.0523 1 13.5V13C1 12.4477 1.44772 12 2 12H14Z\" fill={'currentColor'} /></svg>;\n};\nTimeSeries.displayName = 'TimeSeries';\nTimeSeries.isGlyph = true;\nexport default TimeSeries;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TimeSeries","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"05CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAa,SAAoBC,GACnC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,aAAcU,EAAgBA,EAAgB,CAChGf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,+qBACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,2IACHxB,KAAM,iBAEV,SACAR,EAAWiC,YAAc,aACzBjC,EAAWkC,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TimeSeriesCollection=e.TimeSeriesCollection||{},e.TimeSeriesCollection.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).TimeSeriesCollection=e.TimeSeriesCollection||{},e.TimeSeriesCollection.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=t(e);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},n.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,f={small:14,default:16,large:20,xlarge:24};var u=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,d=e.title,m=e["aria-label"],p=e["aria-labelledby"],y=e.fill,C=e.role,v=void 0===C?"img":C,g=function(e,r){if(null==e)return{};var t,i,l=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)t=n[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,u),O=r.css(o||(o=a(["\n color: ",";\n "])),y),h=r.css(c||(c=a(["\n flex-shrink: 0;\n "]))),j=function(e,r,t){var i,n=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||a||o?l(l(l({},"aria-labelledby",a),"aria-label",n),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"TimeSeriesCollection",l(l({title:d},"aria-label",m),"aria-labelledby",p));return i.createElement("svg",n({className:r.cx(l({},O,null!=y),h,t),height:"number"==typeof b?b:f[b],width:"number"==typeof b?b:f[b],role:v},j,g,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M13.6 10.3826H15C15.6 10.3826 16 10.8816 16 11.4805C16 12.0794 15.6 12.4787 15 12.4787H14.1L12.6 14.5748C12.4 14.8742 12 15.0738 11.6 14.974C11.2 14.8742 10.9 14.5748 10.8 14.1755L10.4 12.4787L10 13.6764C9.9 13.9759 9.5 14.2753 9.1 14.2753H8C7.4 14.2753 7 13.8761 7 13.2772C7 12.6783 7.4 12.279 8 12.279H8.4L9.8 8.58591C9.9 8.18665 10.4 7.98702 10.8 7.98702C11.2 7.98702 11.6 8.38628 11.7 8.68572L12.3 11.4805L12.8 10.7818C13 10.5822 13.3 10.3826 13.6 10.3826Z",fill:"currentColor"}),i.createElement("path",{d:"M1.92857 1C1.41574 1 1 1.40964 1 1.91497V11.0646C1 11.57 1.41574 11.9796 1.92857 11.9796H5.84028C5.94099 11.8068 6.06518 11.6437 6.21434 11.4948C6.53603 11.1737 6.92403 10.9685 7.33247 10.8644L8.37506 8.11411C8.58323 7.43691 9.08123 7.02881 9.48162 6.81567C9.90517 6.59019 10.376 6.4898 10.8 6.4898C11.4819 6.4898 12.0142 6.81318 12.3314 7.08112C12.6494 7.34973 12.9659 7.74184 13.123 8.21226L13.1493 8.29092L13.2818 8.90808C13.3842 8.8934 13.4904 8.88535 13.6 8.88535H14V3.7449C14 3.23958 13.5843 2.82993 13.0714 2.82993H7.5C6.98716 2.82993 6.57143 2.42029 6.57143 1.91497C6.57143 1.40964 6.15569 1 5.64286 1H1.92857Z",fill:"currentColor"}),i.createElement("path",{d:"M10.9494 8.00476C10.9275 7.99966 10.9055 7.9956 10.8835 7.99266L10.9494 8.00476Z",fill:"currentColor"}))};return s.displayName="TimeSeriesCollection",s.isGlyph=!0,s});
|
|
2
2
|
//# sourceMappingURL=TimeSeriesCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSeriesCollection.js","sources":["../../src/glyphCommon.ts","../../src/generated/TimeSeriesCollection.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 packages/icon/scripts/prebuild.ts\n* @checksum 8a7c51cc91acd51132075ef631806881\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TimeSeriesCollectionProps extends LGGlyph.ComponentProps {}\nconst TimeSeriesCollection = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TimeSeriesCollectionProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TimeSeriesCollection', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M13.6 10.3826H15C15.6 10.3826 16 10.8816 16 11.4805C16 12.0794 15.6 12.4787 15 12.4787H14.1L12.6 14.5748C12.4 14.8742 12 15.0738 11.6 14.974C11.2 14.8742 10.9 14.5748 10.8 14.1755L10.4 12.4787L10 13.6764C9.9 13.9759 9.5 14.2753 9.1 14.2753H8C7.4 14.2753 7 13.8761 7 13.2772C7 12.6783 7.4 12.279 8 12.279H8.4L9.8 8.58591C9.9 8.18665 10.4 7.98702 10.8 7.98702C11.2 7.98702 11.6 8.38628 11.7 8.68572L12.3 11.4805L12.8 10.7818C13 10.5822 13.3 10.3826 13.6 10.3826Z\" fill={'currentColor'} /><path d=\"M1.92857 1C1.41574 1 1 1.40964 1 1.91497V11.0646C1 11.57 1.41574 11.9796 1.92857 11.9796H5.84028C5.94099 11.8068 6.06518 11.6437 6.21434 11.4948C6.53603 11.1737 6.92403 10.9685 7.33247 10.8644L8.37506 8.11411C8.58323 7.43691 9.08123 7.02881 9.48162 6.81567C9.90517 6.59019 10.376 6.4898 10.8 6.4898C11.4819 6.4898 12.0142 6.81318 12.3314 7.08112C12.6494 7.34973 12.9659 7.74184 13.123 8.21226L13.1493 8.29092L13.2818 8.90808C13.3842 8.8934 13.4904 8.88535 13.6 8.88535H14V3.7449C14 3.23958 13.5843 2.82993 13.0714 2.82993H7.5C6.98716 2.82993 6.57143 2.42029 6.57143 1.91497C6.57143 1.40964 6.15569 1 5.64286 1H1.92857Z\" fill={'currentColor'} /><path d=\"M10.9494 8.00476C10.9275 7.99966 10.9055 7.9956 10.8835 7.99266L10.9494 8.00476Z\" fill={'currentColor'} /></svg>;\n};\nTimeSeriesCollection.displayName = 'TimeSeriesCollection';\nTimeSeriesCollection.isGlyph = true;\nexport default TimeSeriesCollection;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TimeSeriesCollection","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeSeriesCollection.js","sources":["../../src/glyphCommon.ts","../../src/generated/TimeSeriesCollection.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 packages/icon/scripts/prebuild.ts\n* @checksum 8a7c51cc91acd51132075ef631806881\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TimeSeriesCollectionProps extends LGGlyph.ComponentProps {}\nconst TimeSeriesCollection = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TimeSeriesCollectionProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'TimeSeriesCollection', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M13.6 10.3826H15C15.6 10.3826 16 10.8816 16 11.4805C16 12.0794 15.6 12.4787 15 12.4787H14.1L12.6 14.5748C12.4 14.8742 12 15.0738 11.6 14.974C11.2 14.8742 10.9 14.5748 10.8 14.1755L10.4 12.4787L10 13.6764C9.9 13.9759 9.5 14.2753 9.1 14.2753H8C7.4 14.2753 7 13.8761 7 13.2772C7 12.6783 7.4 12.279 8 12.279H8.4L9.8 8.58591C9.9 8.18665 10.4 7.98702 10.8 7.98702C11.2 7.98702 11.6 8.38628 11.7 8.68572L12.3 11.4805L12.8 10.7818C13 10.5822 13.3 10.3826 13.6 10.3826Z\" fill={'currentColor'} /><path d=\"M1.92857 1C1.41574 1 1 1.40964 1 1.91497V11.0646C1 11.57 1.41574 11.9796 1.92857 11.9796H5.84028C5.94099 11.8068 6.06518 11.6437 6.21434 11.4948C6.53603 11.1737 6.92403 10.9685 7.33247 10.8644L8.37506 8.11411C8.58323 7.43691 9.08123 7.02881 9.48162 6.81567C9.90517 6.59019 10.376 6.4898 10.8 6.4898C11.4819 6.4898 12.0142 6.81318 12.3314 7.08112C12.6494 7.34973 12.9659 7.74184 13.123 8.21226L13.1493 8.29092L13.2818 8.90808C13.3842 8.8934 13.4904 8.88535 13.6 8.88535H14V3.7449C14 3.23958 13.5843 2.82993 13.0714 2.82993H7.5C6.98716 2.82993 6.57143 2.42029 6.57143 1.91497C6.57143 1.40964 6.15569 1 5.64286 1H1.92857Z\" fill={'currentColor'} /><path d=\"M10.9494 8.00476C10.9275 7.99966 10.9055 7.9956 10.8835 7.99266L10.9494 8.00476Z\" fill={'currentColor'} /></svg>;\n};\nTimeSeriesCollection.displayName = 'TimeSeriesCollection';\nTimeSeriesCollection.isGlyph = true;\nexport default TimeSeriesCollection;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","TimeSeriesCollection","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"w7CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAuB,SAA8BC,GACvD,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,uBAAwBU,EAAgBA,EAAgB,CAC1Gf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,+cACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,6mBACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,mFACHxB,KAAM,iBAEV,SACAR,EAAqBiC,YAAc,uBACnCjC,EAAqBkC,SAAU"}
|
package/dist/umd/Trash.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Trash=e.Trash||{},e.Trash.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Trash=e.Trash||{},e.Trash.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function a(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,h=function(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(e,c),O=r.css(o||(o=l(["\n color: ",";\n "])),v),j=r.css(u||(u=l(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,i=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return i||l||o?a(a(a({},"aria-labelledby",l),"aria-label",i),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Trash",a(a({title:d},"aria-label",y),"aria-labelledby",p));return n.createElement("svg",i({className:r.cx(a({},O,null!=v),j,t),height:"number"==typeof b?b:f[b],width:"number"==typeof b?b:f[b],role:g},w,h,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2H13C13.5523 2 14 2.44772 14 3V4H2V3C2 2.44772 2.44772 2 3 2H5ZM14 5H2L3.67845 13.3922C3.86542 14.3271 4.68625 15 5.63961 15H10.3604C11.3138 15 12.1346 14.3271 12.3216 13.3922L14 5Z",fill:"currentColor"}))};return s.displayName="Trash",s.isGlyph=!0,s});
|
|
2
2
|
//# sourceMappingURL=Trash.js.map
|
package/dist/umd/Trash.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trash.js","sources":["../../src/glyphCommon.ts","../../src/generated/Trash.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 packages/icon/scripts/prebuild.ts\n* @checksum c903da55c78aa505ed887d461c32a516\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TrashProps extends LGGlyph.ComponentProps {}\nconst Trash = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TrashProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Trash', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2H13C13.5523 2 14 2.44772 14 3V4H2V3C2 2.44772 2.44772 2 3 2H5ZM14 5H2L3.67845 13.3922C3.86542 14.3271 4.68625 15 5.63961 15H10.3604C11.3138 15 12.1346 14.3271 12.3216 13.3922L14 5Z\" fill={'currentColor'} /></svg>;\n};\nTrash.displayName = 'Trash';\nTrash.isGlyph = true;\nexport default Trash;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Trash","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Trash.js","sources":["../../src/glyphCommon.ts","../../src/generated/Trash.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 packages/icon/scripts/prebuild.ts\n* @checksum c903da55c78aa505ed887d461c32a516\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface TrashProps extends LGGlyph.ComponentProps {}\nconst Trash = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: TrashProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Trash', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M5 2C5 1.44772 5.44772 1 6 1H10C10.5523 1 11 1.44772 11 2H13C13.5523 2 14 2.44772 14 3V4H2V3C2 2.44772 2.44772 2 3 2H5ZM14 5H2L3.67845 13.3922C3.86542 14.3271 4.68625 15 5.63961 15H10.3604C11.3138 15 12.1346 14.3271 12.3216 13.3922L14 5Z\" fill={'currentColor'} /></svg>;\n};\nTrash.displayName = 'Trash';\nTrash.isGlyph = true;\nexport default Trash;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Trash","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,QAASU,EAAgBA,EAAgB,CAC3Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,gPACH1B,KAAM,iBAEV,SACAR,EAAMmC,YAAc,QACpBnC,EAAMoC,SAAU"}
|
package/dist/umd/Undo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Undo=e.Undo||{},e.Undo.js=r(e.React,e.emotion))}(this,
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Undo=e.Undo||{},e.Undo.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],m=e.fill,v=e.role,g=void 0===v?"img":v,O=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),j=r.css(o||(o=l(["\n color: ",";\n "])),m),h=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,a=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||l||o?i(i(i({},"aria-labelledby",l),"aria-label",a),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Undo",i(i({title:d},"aria-label",y),"aria-labelledby",p));return n.createElement("svg",a({className:r.cx(i({},j,null!=m),h,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:g},C,O,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M11.9812 9.40216C12.0303 9.72987 12.2942 10 12.6256 10H13.4256C13.757 10 14.0288 9.73064 13.9961 9.40089C13.8186 7.6104 12.8539 6.05139 11.4531 5.07473C10.9741 4.73549 10.4315 4.46519 9.844 4.28051C9.27044 4.09832 8.6595 4.00002 8.0256 4.00002C8.01612 3.99998 8.00663 4.00002 7.99714 4.00002C5.29819 4.00002 3.04689 5.71778 2.52999 8.00002H1.11567C0.574518 8.00002 0.323974 8.67204 0.733046 9.02631L3.21469 11.1755C3.43432 11.3657 3.76031 11.3657 3.97994 11.1755L6.46159 9.02631C6.87066 8.67204 6.62011 8.00002 6.07896 8.00002H4.63233C5.10106 6.91458 6.31283 6.00002 7.99714 6.00002C8.18375 6.00002 8.36456 6.01124 8.5392 6.03269C9.24477 6.12312 9.89283 6.39739 10.4338 6.80592C10.4522 6.8206 10.4704 6.83543 10.4885 6.85041C10.5052 6.86432 10.5225 6.87728 10.5404 6.88926C11.2999 7.50399 11.8297 8.39119 11.9812 9.40216Z",fill:"currentColor"}))};return b.displayName="Undo",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Undo.js.map
|
package/dist/umd/Undo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Undo.js","sources":["../../src/glyphCommon.ts","../../src/generated/Undo.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 packages/icon/scripts/prebuild.ts\n* @checksum d3489b212b2ad8ead2f72d2d8ae828a0\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface UndoProps extends LGGlyph.ComponentProps {}\nconst Undo = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: UndoProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Undo', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M11.9812 9.40216C12.0303 9.72987 12.2942 10 12.6256 10H13.4256C13.757 10 14.0288 9.73064 13.9961 9.40089C13.8186 7.6104 12.8539 6.05139 11.4531 5.07473C10.9741 4.73549 10.4315 4.46519 9.844 4.28051C9.27044 4.09832 8.6595 4.00002 8.0256 4.00002C8.01612 3.99998 8.00663 4.00002 7.99714 4.00002C5.29819 4.00002 3.04689 5.71778 2.52999 8.00002H1.11567C0.574518 8.00002 0.323974 8.67204 0.733046 9.02631L3.21469 11.1755C3.43432 11.3657 3.76031 11.3657 3.97994 11.1755L6.46159 9.02631C6.87066 8.67204 6.62011 8.00002 6.07896 8.00002H4.63233C5.10106 6.91458 6.31283 6.00002 7.99714 6.00002C8.18375 6.00002 8.36456 6.01124 8.5392 6.03269C9.24477 6.12312 9.89283 6.39739 10.4338 6.80592C10.4522 6.8206 10.4704 6.83543 10.4885 6.85041C10.5052 6.86432 10.5225 6.87728 10.5404 6.88926C11.2999 7.50399 11.8297 8.39119 11.9812 9.40216Z\" fill={'currentColor'} /></svg>;\n};\nUndo.displayName = 'Undo';\nUndo.isGlyph = true;\nexport default Undo;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Undo","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Undo.js","sources":["../../src/glyphCommon.ts","../../src/generated/Undo.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 packages/icon/scripts/prebuild.ts\n* @checksum d3489b212b2ad8ead2f72d2d8ae828a0\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface UndoProps extends LGGlyph.ComponentProps {}\nconst Undo = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: UndoProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Undo', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M11.9812 9.40216C12.0303 9.72987 12.2942 10 12.6256 10H13.4256C13.757 10 14.0288 9.73064 13.9961 9.40089C13.8186 7.6104 12.8539 6.05139 11.4531 5.07473C10.9741 4.73549 10.4315 4.46519 9.844 4.28051C9.27044 4.09832 8.6595 4.00002 8.0256 4.00002C8.01612 3.99998 8.00663 4.00002 7.99714 4.00002C5.29819 4.00002 3.04689 5.71778 2.52999 8.00002H1.11567C0.574518 8.00002 0.323974 8.67204 0.733046 9.02631L3.21469 11.1755C3.43432 11.3657 3.76031 11.3657 3.97994 11.1755L6.46159 9.02631C6.87066 8.67204 6.62011 8.00002 6.07896 8.00002H4.63233C5.10106 6.91458 6.31283 6.00002 7.99714 6.00002C8.18375 6.00002 8.36456 6.01124 8.5392 6.03269C9.24477 6.12312 9.89283 6.39739 10.4338 6.80592C10.4522 6.8206 10.4704 6.83543 10.4885 6.85041C10.5052 6.86432 10.5225 6.87728 10.5404 6.88926C11.2999 7.50399 11.8297 8.39119 11.9812 9.40216Z\" fill={'currentColor'} /></svg>;\n};\nUndo.displayName = 'Undo';\nUndo.isGlyph = true;\nexport default Undo;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Undo","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"w4CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAO,SAAcC,GACvB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,OAAQU,EAAgBA,EAAgB,CAC1Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,wzBACHxB,KAAM,iBAEV,SACAR,EAAKiC,YAAc,OACnBjC,EAAKkC,SAAU"}
|