@leafygreen-ui/icon 14.5.1 → 14.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/types/glyphs/index.d.ts +1 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/umd/ActivityFeed.js +1 -1
- package/dist/umd/ActivityFeed.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/Clone.js +1 -1
- package/dist/umd/Clone.js.map +1 -1
- package/dist/umd/Ellipsis.js +1 -1
- package/dist/umd/Ellipsis.js.map +1 -1
- package/dist/umd/Recommended.js +1 -1
- package/dist/umd/Recommended.js.map +1 -1
- package/dist/umd/SortDescending.js +1 -1
- package/dist/umd/SortDescending.js.map +1 -1
- package/dist/umd/Streaming.js +1 -1
- package/dist/umd/Streaming.js.map +1 -1
- package/dist/umd/Sun.js +1 -1
- package/dist/umd/Sun.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +7 -1
- package/tsdoc.json +186 -0
- package/.turbo/turbo-build.log +0 -10
- package/.turbo/turbo-prebuild.log +0 -5
- package/.turbo/turbo-tsc.log +0 -5
- package/dist/AIModel.js +0 -2
- package/dist/AIModel.js.map +0 -1
- package/dist/ActivityFeed.js +0 -2
- package/dist/ActivityFeed.js.map +0 -1
- package/dist/AddFile.js +0 -2
- package/dist/AddFile.js.map +0 -1
- package/dist/AllProducts.js +0 -2
- package/dist/AllProducts.js.map +0 -1
- package/dist/AnalyticsNode.js +0 -2
- package/dist/AnalyticsNode.js.map +0 -1
- package/dist/Apps.js +0 -2
- package/dist/Apps.js.map +0 -1
- package/dist/Array.js +0 -2
- package/dist/Array.js.map +0 -1
- package/dist/ArrowDown.js +0 -2
- package/dist/ArrowDown.js.map +0 -1
- package/dist/ArrowLeft.js +0 -2
- package/dist/ArrowLeft.js.map +0 -1
- package/dist/ArrowRight.js +0 -2
- package/dist/ArrowRight.js.map +0 -1
- package/dist/ArrowUp.js +0 -2
- package/dist/ArrowUp.js.map +0 -1
- package/dist/Award.js +0 -2
- package/dist/Award.js.map +0 -1
- package/dist/Beaker.js +0 -2
- package/dist/Beaker.js.map +0 -1
- package/dist/Bell.js +0 -2
- package/dist/Bell.js.map +0 -1
- package/dist/Biometric.js +0 -2
- package/dist/Biometric.js.map +0 -1
- package/dist/Boolean.js +0 -2
- package/dist/Boolean.js.map +0 -1
- package/dist/Building.js +0 -2
- package/dist/Building.js.map +0 -1
- package/dist/Bulb.js +0 -2
- package/dist/Bulb.js.map +0 -1
- package/dist/Calendar.js +0 -2
- package/dist/Calendar.js.map +0 -1
- package/dist/Camera.js +0 -2
- package/dist/Camera.js.map +0 -1
- package/dist/Cap.js +0 -2
- package/dist/Cap.js.map +0 -1
- package/dist/CaretDown.js +0 -2
- package/dist/CaretDown.js.map +0 -1
- package/dist/CaretLeft.js +0 -2
- package/dist/CaretLeft.js.map +0 -1
- package/dist/CaretRight.js +0 -2
- package/dist/CaretRight.js.map +0 -1
- package/dist/CaretUp.js +0 -2
- package/dist/CaretUp.js.map +0 -1
- package/dist/ChartFilled.js +0 -2
- package/dist/ChartFilled.js.map +0 -1
- package/dist/Charts.js +0 -2
- package/dist/Charts.js.map +0 -1
- package/dist/Checkmark.js +0 -2
- package/dist/Checkmark.js.map +0 -1
- package/dist/CheckmarkWithCircle.js +0 -2
- package/dist/CheckmarkWithCircle.js.map +0 -1
- package/dist/ChevronDown.js +0 -2
- package/dist/ChevronDown.js.map +0 -1
- package/dist/ChevronLeft.js +0 -2
- package/dist/ChevronLeft.js.map +0 -1
- package/dist/ChevronRight.js +0 -2
- package/dist/ChevronRight.js.map +0 -1
- package/dist/ChevronUp.js +0 -2
- package/dist/ChevronUp.js.map +0 -1
- package/dist/Circle.js +0 -2
- package/dist/Circle.js.map +0 -1
- package/dist/Clock.js +0 -2
- package/dist/Clock.js.map +0 -1
- package/dist/ClockWithArrow.js +0 -2
- package/dist/ClockWithArrow.js.map +0 -1
- package/dist/Clone.js +0 -2
- package/dist/Clone.js.map +0 -1
- package/dist/Cloud.js +0 -2
- package/dist/Cloud.js.map +0 -1
- package/dist/Code.js +0 -2
- package/dist/Code.js.map +0 -1
- package/dist/CodeBlock.js +0 -2
- package/dist/CodeBlock.js.map +0 -1
- package/dist/Coin.js +0 -2
- package/dist/Coin.js.map +0 -1
- package/dist/Colon.js +0 -2
- package/dist/Colon.js.map +0 -1
- package/dist/Config.js +0 -2
- package/dist/Config.js.map +0 -1
- package/dist/Connect.js +0 -2
- package/dist/Connect.js.map +0 -1
- package/dist/Copy.js +0 -2
- package/dist/Copy.js.map +0 -1
- package/dist/CreditCard.js +0 -2
- package/dist/CreditCard.js.map +0 -1
- package/dist/CurlyBraces.js +0 -2
- package/dist/CurlyBraces.js.map +0 -1
- package/dist/Cursor.js +0 -2
- package/dist/Cursor.js.map +0 -1
- package/dist/Dashboard.js +0 -2
- package/dist/Dashboard.js.map +0 -1
- package/dist/Database.js +0 -2
- package/dist/Database.js.map +0 -1
- package/dist/Diagram.js +0 -2
- package/dist/Diagram.js.map +0 -1
- package/dist/Diagram2.js +0 -2
- package/dist/Diagram2.js.map +0 -1
- package/dist/Diagram3.js +0 -2
- package/dist/Diagram3.js.map +0 -1
- package/dist/Disconnect.js +0 -2
- package/dist/Disconnect.js.map +0 -1
- package/dist/Download.js +0 -2
- package/dist/Download.js.map +0 -1
- package/dist/Drag.js +0 -2
- package/dist/Drag.js.map +0 -1
- package/dist/Edit.js +0 -2
- package/dist/Edit.js.map +0 -1
- package/dist/Ellipsis.js +0 -2
- package/dist/Ellipsis.js.map +0 -1
- package/dist/Email.js +0 -2
- package/dist/Email.js.map +0 -1
- package/dist/EmptyDatabase.js +0 -2
- package/dist/EmptyDatabase.js.map +0 -1
- package/dist/EmptyFolder.js +0 -2
- package/dist/EmptyFolder.js.map +0 -1
- package/dist/Eraser.js +0 -2
- package/dist/Eraser.js.map +0 -1
- package/dist/Escalation.js +0 -2
- package/dist/Escalation.js.map +0 -1
- package/dist/Export.js +0 -2
- package/dist/Export.js.map +0 -1
- package/dist/Favorite.js +0 -2
- package/dist/Favorite.js.map +0 -1
- package/dist/Federation.js +0 -2
- package/dist/Federation.js.map +0 -1
- package/dist/File.js +0 -2
- package/dist/File.js.map +0 -1
- package/dist/Filter.js +0 -2
- package/dist/Filter.js.map +0 -1
- package/dist/Folder.js +0 -2
- package/dist/Folder.js.map +0 -1
- package/dist/Format.js +0 -2
- package/dist/Format.js.map +0 -1
- package/dist/FullScreenEnter.js +0 -2
- package/dist/FullScreenEnter.js.map +0 -1
- package/dist/FullScreenExit.js +0 -2
- package/dist/FullScreenExit.js.map +0 -1
- package/dist/Function.js +0 -2
- package/dist/Function.js.map +0 -1
- package/dist/Gauge.js +0 -2
- package/dist/Gauge.js.map +0 -1
- package/dist/GlobeAmericas.js +0 -2
- package/dist/GlobeAmericas.js.map +0 -1
- package/dist/GovernmentBuilding.js +0 -2
- package/dist/GovernmentBuilding.js.map +0 -1
- package/dist/Guide.js +0 -2
- package/dist/Guide.js.map +0 -1
- package/dist/Hash.js +0 -2
- package/dist/Hash.js.map +0 -1
- package/dist/HiddenSecondaryNode.js +0 -2
- package/dist/HiddenSecondaryNode.js.map +0 -1
- package/dist/Highlight.js +0 -2
- package/dist/Highlight.js.map +0 -1
- package/dist/Home.js +0 -2
- package/dist/Home.js.map +0 -1
- package/dist/HorizontalDrag.js +0 -2
- package/dist/HorizontalDrag.js.map +0 -1
- package/dist/Import.js +0 -2
- package/dist/Import.js.map +0 -1
- package/dist/ImportantWithCircle.js +0 -2
- package/dist/ImportantWithCircle.js.map +0 -1
- package/dist/InfoWithCircle.js +0 -2
- package/dist/InfoWithCircle.js.map +0 -1
- package/dist/InternalEmployee.js +0 -2
- package/dist/InternalEmployee.js.map +0 -1
- package/dist/InviteUser.js +0 -2
- package/dist/InviteUser.js.map +0 -1
- package/dist/Key.js +0 -2
- package/dist/Key.js.map +0 -1
- package/dist/Laptop.js +0 -2
- package/dist/Laptop.js.map +0 -1
- package/dist/LightningBolt.js +0 -2
- package/dist/LightningBolt.js.map +0 -1
- package/dist/Link.js +0 -2
- package/dist/Link.js.map +0 -1
- package/dist/List.js +0 -2
- package/dist/List.js.map +0 -1
- package/dist/Lock.js +0 -2
- package/dist/Lock.js.map +0 -1
- package/dist/LogIn.js +0 -2
- package/dist/LogIn.js.map +0 -1
- package/dist/LogOut.js +0 -2
- package/dist/LogOut.js.map +0 -1
- package/dist/MagnifyingGlass.js +0 -2
- package/dist/MagnifyingGlass.js.map +0 -1
- package/dist/Megaphone.js +0 -2
- package/dist/Megaphone.js.map +0 -1
- package/dist/Menu.js +0 -2
- package/dist/Menu.js.map +0 -1
- package/dist/Minus.js +0 -2
- package/dist/Minus.js.map +0 -1
- package/dist/Mobile.js +0 -2
- package/dist/Mobile.js.map +0 -1
- package/dist/Moon.js +0 -2
- package/dist/Moon.js.map +0 -1
- package/dist/MultiDirectionArrow.js +0 -2
- package/dist/MultiDirectionArrow.js.map +0 -1
- package/dist/MultiLayers.js +0 -2
- package/dist/MultiLayers.js.map +0 -1
- package/dist/NavCollapse.js +0 -2
- package/dist/NavCollapse.js.map +0 -1
- package/dist/NavExpand.js +0 -2
- package/dist/NavExpand.js.map +0 -1
- package/dist/NoFilter.js +0 -2
- package/dist/NoFilter.js.map +0 -1
- package/dist/NotAllowed.js +0 -2
- package/dist/NotAllowed.js.map +0 -1
- package/dist/Note.js +0 -2
- package/dist/Note.js.map +0 -1
- package/dist/NumberedList.js +0 -2
- package/dist/NumberedList.js.map +0 -1
- package/dist/OpenNewTab.js +0 -2
- package/dist/OpenNewTab.js.map +0 -1
- package/dist/OutlineFavorite.js +0 -2
- package/dist/OutlineFavorite.js.map +0 -1
- package/dist/Package.js +0 -2
- package/dist/Package.js.map +0 -1
- package/dist/Pause.js +0 -2
- package/dist/Pause.js.map +0 -1
- package/dist/Pending.js +0 -2
- package/dist/Pending.js.map +0 -1
- package/dist/Person.js +0 -2
- package/dist/Person.js.map +0 -1
- package/dist/PersonGroup.js +0 -2
- package/dist/PersonGroup.js.map +0 -1
- package/dist/PersonWithLock.js +0 -2
- package/dist/PersonWithLock.js.map +0 -1
- package/dist/Pin.js +0 -2
- package/dist/Pin.js.map +0 -1
- package/dist/Play.js +0 -2
- package/dist/Play.js.map +0 -1
- package/dist/Plus.js +0 -2
- package/dist/Plus.js.map +0 -1
- package/dist/PlusWithCircle.js +0 -2
- package/dist/PlusWithCircle.js.map +0 -1
- package/dist/Primary.js +0 -2
- package/dist/Primary.js.map +0 -1
- package/dist/Project.js +0 -2
- package/dist/Project.js.map +0 -1
- package/dist/QuestionMarkWithCircle.js +0 -2
- package/dist/QuestionMarkWithCircle.js.map +0 -1
- package/dist/Read.js +0 -2
- package/dist/Read.js.map +0 -1
- package/dist/Recommended.js +0 -2
- package/dist/Recommended.js.map +0 -1
- package/dist/Redo.js +0 -2
- package/dist/Redo.js.map +0 -1
- package/dist/Refresh.js +0 -2
- package/dist/Refresh.js.map +0 -1
- package/dist/Relationship.js +0 -2
- package/dist/Relationship.js.map +0 -1
- package/dist/ReplicaSet.js +0 -2
- package/dist/ReplicaSet.js.map +0 -1
- package/dist/Resize.js +0 -2
- package/dist/Resize.js.map +0 -1
- package/dist/Resource.js +0 -2
- package/dist/Resource.js.map +0 -1
- package/dist/Return.js +0 -2
- package/dist/Return.js.map +0 -1
- package/dist/Revert.js +0 -2
- package/dist/Revert.js.map +0 -1
- package/dist/Router.js +0 -2
- package/dist/Router.js.map +0 -1
- package/dist/SMS.js +0 -2
- package/dist/SMS.js.map +0 -1
- package/dist/Save.js +0 -2
- package/dist/Save.js.map +0 -1
- package/dist/SearchIndex.js +0 -2
- package/dist/SearchIndex.js.map +0 -1
- package/dist/Secondary.js +0 -2
- package/dist/Secondary.js.map +0 -1
- package/dist/Serverless.js +0 -2
- package/dist/Serverless.js.map +0 -1
- package/dist/Settings.js +0 -2
- package/dist/Settings.js.map +0 -1
- package/dist/ShardedCluster.js +0 -2
- package/dist/ShardedCluster.js.map +0 -1
- package/dist/Shell.js +0 -2
- package/dist/Shell.js.map +0 -1
- package/dist/Shield.js +0 -2
- package/dist/Shield.js.map +0 -1
- package/dist/Shirt.js +0 -2
- package/dist/Shirt.js.map +0 -1
- package/dist/Shortcut.js +0 -2
- package/dist/Shortcut.js.map +0 -1
- package/dist/SortAscending.js +0 -2
- package/dist/SortAscending.js.map +0 -1
- package/dist/SortDescending.js +0 -2
- package/dist/SortDescending.js.map +0 -1
- package/dist/Sparkle.js +0 -2
- package/dist/Sparkle.js.map +0 -1
- package/dist/SplitHorizontal.js +0 -2
- package/dist/SplitHorizontal.js.map +0 -1
- package/dist/SplitVertical.js +0 -2
- package/dist/SplitVertical.js.map +0 -1
- package/dist/Stitch.js +0 -2
- package/dist/Stitch.js.map +0 -1
- package/dist/Stop.js +0 -2
- package/dist/Stop.js.map +0 -1
- package/dist/Streaming.js +0 -2
- package/dist/Streaming.js.map +0 -1
- package/dist/String.js +0 -2
- package/dist/String.js.map +0 -1
- package/dist/Sun.js +0 -2
- package/dist/Sun.js.map +0 -1
- package/dist/Support.js +0 -2
- package/dist/Support.js.map +0 -1
- package/dist/Sweep.js +0 -2
- package/dist/Sweep.js.map +0 -1
- package/dist/Table.js +0 -2
- package/dist/Table.js.map +0 -1
- package/dist/Tag.js +0 -2
- package/dist/Tag.js.map +0 -1
- package/dist/TemporaryTable.js +0 -2
- package/dist/TemporaryTable.js.map +0 -1
- package/dist/ThumbsDown.js +0 -2
- package/dist/ThumbsDown.js.map +0 -1
- package/dist/ThumbsUp.js +0 -2
- package/dist/ThumbsUp.js.map +0 -1
- package/dist/TimeSeries.js +0 -2
- package/dist/TimeSeries.js.map +0 -1
- package/dist/TimeSeriesCollection.js +0 -2
- package/dist/TimeSeriesCollection.js.map +0 -1
- package/dist/Trash.js +0 -2
- package/dist/Trash.js.map +0 -1
- package/dist/Undo.js +0 -2
- package/dist/Undo.js.map +0 -1
- package/dist/University.js +0 -2
- package/dist/University.js.map +0 -1
- package/dist/Unlock.js +0 -2
- package/dist/Unlock.js.map +0 -1
- package/dist/Unsorted.js +0 -2
- package/dist/Unsorted.js.map +0 -1
- package/dist/UpDownCarets.js +0 -2
- package/dist/UpDownCarets.js.map +0 -1
- package/dist/Upload.js +0 -2
- package/dist/Upload.js.map +0 -1
- package/dist/VerticalEllipsis.js +0 -2
- package/dist/VerticalEllipsis.js.map +0 -1
- package/dist/View.js +0 -2
- package/dist/View.js.map +0 -1
- package/dist/Visibility.js +0 -2
- package/dist/Visibility.js.map +0 -1
- package/dist/VisibilityOff.js +0 -2
- package/dist/VisibilityOff.js.map +0 -1
- package/dist/Warning.js +0 -2
- package/dist/Warning.js.map +0 -1
- package/dist/Wizard.js +0 -2
- package/dist/Wizard.js.map +0 -1
- package/dist/Wrench.js +0 -2
- package/dist/Wrench.js.map +0 -1
- package/dist/Write.js +0 -2
- package/dist/Write.js.map +0 -1
- package/dist/X.js +0 -2
- package/dist/X.js.map +0 -1
- package/dist/XWithCircle.js +0 -2
- package/dist/XWithCircle.js.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -730,6 +730,6 @@ declare const _glyphs: {
|
|
|
730
730
|
}>;
|
|
731
731
|
};
|
|
732
732
|
export type GlyphName = keyof typeof _glyphs;
|
|
733
|
-
export declare const glyphs: Record<"AIModel" | "ActivityFeed" | "AddFile" | "AllProducts" | "AnalyticsNode" | "Apps" | "Array" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "Award" | "Beaker" | "Bell" | "Biometric" | "Boolean" | "Building" | "Bulb" | "Calendar" | "Camera" | "Cap" | "CaretDown" | "CaretLeft" | "CaretRight" | "CaretUp" | "ChartFilled" | "Charts" | "Checkmark" | "CheckmarkWithCircle" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circle" | "Clock" | "ClockWithArrow" | "Clone" | "Cloud" | "Code" | "CodeBlock" | "Coin" | "Colon" | "Config" | "Connect" | "Copy" | "CreditCard" | "CurlyBraces" | "Cursor" | "Dashboard" | "Database" | "Diagram" | "Diagram2" | "Diagram3" | "Disconnect" | "Download" | "Drag" | "
|
|
733
|
+
export declare const glyphs: Record<"Edit" | "AIModel" | "ActivityFeed" | "AddFile" | "AllProducts" | "AnalyticsNode" | "Apps" | "Array" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "Award" | "Beaker" | "Bell" | "Biometric" | "Boolean" | "Building" | "Bulb" | "Calendar" | "Camera" | "Cap" | "CaretDown" | "CaretLeft" | "CaretRight" | "CaretUp" | "ChartFilled" | "Charts" | "Checkmark" | "CheckmarkWithCircle" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circle" | "Clock" | "ClockWithArrow" | "Clone" | "Cloud" | "Code" | "CodeBlock" | "Coin" | "Colon" | "Config" | "Connect" | "Copy" | "CreditCard" | "CurlyBraces" | "Cursor" | "Dashboard" | "Database" | "Diagram" | "Diagram2" | "Diagram3" | "Disconnect" | "Download" | "Drag" | "Ellipsis" | "Email" | "EmptyDatabase" | "EmptyFolder" | "Eraser" | "Escalation" | "Export" | "Favorite" | "Federation" | "File" | "Filter" | "Folder" | "Format" | "FullScreenEnter" | "FullScreenExit" | "Function" | "Gauge" | "GlobeAmericas" | "GovernmentBuilding" | "Guide" | "Hash" | "HiddenSecondaryNode" | "Highlight" | "Home" | "HorizontalDrag" | "Import" | "ImportantWithCircle" | "InfoWithCircle" | "InternalEmployee" | "InviteUser" | "Key" | "Laptop" | "LightningBolt" | "Link" | "List" | "Lock" | "LogIn" | "LogOut" | "MagnifyingGlass" | "Megaphone" | "Menu" | "Minus" | "Mobile" | "Moon" | "MultiDirectionArrow" | "MultiLayers" | "NavCollapse" | "NavExpand" | "NoFilter" | "NotAllowed" | "Note" | "NumberedList" | "OpenNewTab" | "OutlineFavorite" | "Package" | "Pause" | "Pending" | "Person" | "PersonGroup" | "PersonWithLock" | "Pin" | "Play" | "Plus" | "PlusWithCircle" | "Primary" | "Project" | "QuestionMarkWithCircle" | "Read" | "Recommended" | "Redo" | "Refresh" | "Relationship" | "ReplicaSet" | "Resize" | "Resource" | "Return" | "Revert" | "Router" | "SMS" | "Save" | "SearchIndex" | "Secondary" | "Serverless" | "Settings" | "ShardedCluster" | "Shell" | "Shield" | "Shirt" | "Shortcut" | "SortAscending" | "SortDescending" | "Sparkle" | "SplitHorizontal" | "SplitVertical" | "Stitch" | "Stop" | "Streaming" | "String" | "Sun" | "Support" | "Sweep" | "Table" | "Tag" | "TemporaryTable" | "ThumbsDown" | "ThumbsUp" | "TimeSeries" | "TimeSeriesCollection" | "Trash" | "Undo" | "University" | "Unlock" | "Unsorted" | "UpDownCarets" | "Upload" | "VerticalEllipsis" | "View" | "Visibility" | "VisibilityOff" | "Warning" | "Wizard" | "Wrench" | "Write" | "X" | "XWithCircle", LGGlyph.Component>;
|
|
734
734
|
export {};
|
|
735
735
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ export type { IconProps } from './createIconComponent';
|
|
|
3
3
|
export { createIconComponent } from './createIconComponent';
|
|
4
4
|
export { Size, sizeMap } from './glyphCommon';
|
|
5
5
|
export { type GlyphName, glyphs } from './glyphs';
|
|
6
|
-
export {
|
|
6
|
+
export {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use named export `{ Icon }` instead. See [named-exports codemod documentation](https://github.com/mongodb/leafygreen-ui/tree/main/tools/codemods#named-exports) for migration assistance.
|
|
9
|
+
*/
|
|
10
|
+
Icon as default, Icon, } from './Icon';
|
|
7
11
|
export { isComponentGlyph } from './isComponentGlyph';
|
|
8
12
|
export { LGGlyph } from './types';
|
|
9
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO;AACL;;GAEG;AACH,IAAI,IAAI,OAAO,EACf,IAAI,GACL,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/umd/ActivityFeed.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
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).leafyGreenIconActivityFeed=r(e.React,e.leafyGreenEmotion)}(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 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 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 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"],b=function(e){var t=e.className,b=e.size,d=void 0===b?16:b,s=e.title,y=e["aria-label"],p=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,C=function(e,r){if(null==e)return{};var t,n,l=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)&&(l[t]=e[t])}return l}(e,u),O=r.css(o||(o=a(["\n color: ",";\n "])),v),h=r.css(c||(c=a(["\n flex-shrink: 0;\n "]))),j=function(e,r,t){var n,i=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return i||a||o?l(l(l({},"aria-labelledby",a),"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,"ActivityFeed",l(l({title:s},"aria-label",y),"aria-labelledby",p));return n.createElement("svg",i({className:r.cx(l({},O,null!=v),h,t),height:"number"==typeof d?d:f[d],width:"number"==typeof d?d:f[d],role:g},j,C,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z",fill:"currentColor"}))};return b.displayName="ActivityFeed",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=ActivityFeed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityFeed.js","sources":["
|
|
1
|
+
{"version":3,"file":"ActivityFeed.js","sources":["../../src/glyphCommon.ts","../../src/generated/ActivityFeed.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\n };\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 260808bc7119d3af4c161e80ea57a6c5\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ActivityFeedProps extends LGGlyph.ComponentProps {}\nconst ActivityFeed = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ActivityFeedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <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 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z\" fill={'currentColor'} /></svg>;\n};\nActivityFeed.displayName = 'ActivityFeed';\nActivityFeed.isGlyph = true;\nexport default ActivityFeed;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ActivityFeed","_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":"i5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAe,SAAsBC,GACvC,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,eAAgBU,EAAgBA,EAAgB,CAClGf,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,+dACH1B,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,qjBACH1B,KAAM,iBAEV,SACAR,EAAamC,YAAc,eAC3BnC,EAAaoC,SAAU"}
|
package/dist/umd/Biometric.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@emotion/server/create-instance"),require("@emotion/css/create-instance")):"function"==typeof define&&define.amd?define(["react","@emotion/server/create-instance","@emotion/css/create-instance"],r):(e="undefined"!=typeof globalThis?globalThis:e||self).leafyGreenIconBiometric=r(e.React,e.createEmotionServer,e.createEmotion)}(this,function(e,r,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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 i=a(e),l=n(r);function o(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 c(){return c=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},c.apply(null,arguments)}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var u=n(t).default({key:"leafygreen-ui",nonce:"5.0.3",prepend:!0});u.flush,u.hydrate;var s=u.cx;u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes;var b=u.css;u.sheet;var d=u.cache,y=l.default(d);y.extractCritical,y.renderStylesToString,y.renderStylesToNodeStream;var m,v,p={small:14,default:16,large:20,xlarge:24};var C=["className","size","title","aria-label","aria-labelledby","fill","role"],g=function(e){var r=e.className,t=e.size,n=void 0===t?16:t,a=e.title,l=e["aria-label"],u=e["aria-labelledby"],d=e.fill,y=e.role,g=void 0===y?"img":y,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=b(m||(m=f(["\n color: ",";\n "])),d),j=b(v||(v=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],l=t.title;switch(e){case"img":return a||i||l?o(o(o({},"aria-labelledby",i),"aria-label",a),"title",l):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Biometric",o(o({title:a},"aria-label",l),"aria-labelledby",u));return i.createElement("svg",c({className:s(o({},O,null!=d),j,r),height:"number"==typeof n?n:p[n],width:"number"==typeof n?n:p[n],role:g},w,h,{viewBox:"0 0 16 16"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 1C4.46243 1 2 3.46243 2 6.5V9.5C2 12.5376 4.46243 15 7.5 15H8.5C11.5376 15 14 12.5376 14 9.5V6.5C14 3.46243 11.5376 1 8.5 1H7.5ZM8.57432 7.75001C8.57432 7.43282 8.31719 7.17569 8 7.17569C7.68281 7.17569 7.42567 7.43282 7.42567 7.75001V10.2069C7.42567 10.5241 7.68281 10.7812 8 10.7812C8.31719 10.7812 8.57432 10.5241 8.57432 10.2069V7.75001ZM8.00001 5.33783C6.66781 5.33783 5.58785 6.41779 5.58785 7.74999V10.3164C5.58785 10.5802 5.48308 10.8331 5.2966 11.0196C5.07232 11.2438 5.07232 11.6075 5.2966 11.8318C5.52089 12.0561 5.88453 12.0561 6.10882 11.8318C6.51071 11.4299 6.7365 10.8848 6.7365 10.3164V7.74999C6.7365 7.05217 7.30219 6.48648 8.00001 6.48648C8.69783 6.48648 9.26352 7.05217 9.26352 7.74999V10.3983C9.26352 10.8104 9.03068 11.1871 8.66208 11.3714C8.37838 11.5133 8.26338 11.8583 8.40524 12.142C8.54709 12.4257 8.89207 12.5407 9.17577 12.3988C9.93352 12.0199 10.4122 11.2455 10.4122 10.3983V7.74999C10.4122 6.41779 9.33221 5.33783 8.00001 5.33783ZM4.89865 7.75C4.89865 6.03717 6.28717 4.64865 8 4.64865C8.6033 4.64865 9.16475 4.82034 9.64017 5.11727C9.9092 5.28529 10.2635 5.20341 10.4315 4.93438C10.5996 4.66535 10.5177 4.31104 10.2486 4.14302C9.59605 3.73544 8.82464 3.5 8 3.5C5.65279 3.5 3.75 5.40279 3.75 7.75V10.0473C3.75 10.3645 4.00713 10.6216 4.32432 10.6216C4.64151 10.6216 4.89865 10.3645 4.89865 10.0473V7.75ZM11.7861 5.81757C11.6417 5.53515 11.2957 5.42326 11.0133 5.56765C10.7309 5.71205 10.619 6.05805 10.7634 6.34047C10.9793 6.76274 11.1014 7.24128 11.1014 7.75V9.12838C11.1014 9.44557 11.3585 9.7027 11.6757 9.7027C11.9929 9.7027 12.25 9.44557 12.25 9.12838V7.75C12.25 7.0553 12.0829 6.39796 11.7861 5.81757Z",fill:"currentColor"}))};return g.displayName="Biometric",g.isGlyph=!0,g});
|
|
2
2
|
//# sourceMappingURL=Biometric.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Biometric.js","sources":["../../src/glyphCommon.ts","../../src/generated/Biometric.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/index.ts\n* @checksum b38fe171af2489e14639cf28ce6f82a9\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BiometricProps extends LGGlyph.ComponentProps {}\nconst Biometric = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BiometricProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Biometric', {\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.5 1C4.46243 1 2 3.46243 2 6.5V9.5C2 12.5376 4.46243 15 7.5 15H8.5C11.5376 15 14 12.5376 14 9.5V6.5C14 3.46243 11.5376 1 8.5 1H7.5ZM8.57432 7.75001C8.57432 7.43282 8.31719 7.17569 8 7.17569C7.68281 7.17569 7.42567 7.43282 7.42567 7.75001V10.2069C7.42567 10.5241 7.68281 10.7812 8 10.7812C8.31719 10.7812 8.57432 10.5241 8.57432 10.2069V7.75001ZM8.00001 5.33783C6.66781 5.33783 5.58785 6.41779 5.58785 7.74999V10.3164C5.58785 10.5802 5.48308 10.8331 5.2966 11.0196C5.07232 11.2438 5.07232 11.6075 5.2966 11.8318C5.52089 12.0561 5.88453 12.0561 6.10882 11.8318C6.51071 11.4299 6.7365 10.8848 6.7365 10.3164V7.74999C6.7365 7.05217 7.30219 6.48648 8.00001 6.48648C8.69783 6.48648 9.26352 7.05217 9.26352 7.74999V10.3983C9.26352 10.8104 9.03068 11.1871 8.66208 11.3714C8.37838 11.5133 8.26338 11.8583 8.40524 12.142C8.54709 12.4257 8.89207 12.5407 9.17577 12.3988C9.93352 12.0199 10.4122 11.2455 10.4122 10.3983V7.74999C10.4122 6.41779 9.33221 5.33783 8.00001 5.33783ZM4.89865 7.75C4.89865 6.03717 6.28717 4.64865 8 4.64865C8.6033 4.64865 9.16475 4.82034 9.64017 5.11727C9.9092 5.28529 10.2635 5.20341 10.4315 4.93438C10.5996 4.66535 10.5177 4.31104 10.2486 4.14302C9.59605 3.73544 8.82464 3.5 8 3.5C5.65279 3.5 3.75 5.40279 3.75 7.75V10.0473C3.75 10.3645 4.00713 10.6216 4.32432 10.6216C4.64151 10.6216 4.89865 10.3645 4.89865 10.0473V7.75ZM11.7861 5.81757C11.6417 5.53515 11.2957 5.42326 11.0133 5.56765C10.7309 5.71205 10.619 6.05805 10.7634 6.34047C10.9793 6.76274 11.1014 7.24128 11.1014 7.75V9.12838C11.1014 9.44557 11.3585 9.7027 11.6757 9.7027C11.9929 9.7027 12.25 9.44557 12.25 9.12838V7.75C12.25 7.0553 12.0829 6.39796 11.7861 5.81757Z\" fill={'currentColor'} /></svg>;\n};\nBiometric.displayName = 'Biometric';\nBiometric.isGlyph = true;\nexport default Biometric;"],"names":["_templateObject","_templateObject2","sizeMap","small","
|
|
1
|
+
{"version":3,"file":"Biometric.js","sources":["../../../emotion/dist/esm/index.js","../../src/glyphCommon.ts","../../src/generated/Biometric.tsx"],"sourcesContent":["import e from\"@emotion/server/create-instance\";import r from\"@emotion/css/create-instance\";var t=r({key:\"leafygreen-ui\",nonce:\"5.0.3\",prepend:!0}),a=t.flush,s=t.hydrate,n=t.cx,o=t.merge,c=t.getRegisteredStyles,i=t.injectGlobal,l=t.keyframes,m=t.css,d=t.sheet,y=t.cache,f=e(y),g=f.extractCritical,p=f.renderStylesToString,S=f.renderStylesToNodeStream;export{y as cache,m as css,n as cx,t as default,g as extractCritical,a as flush,c as getRegisteredStyles,s as hydrate,i as injectGlobal,l as keyframes,o as merge,S as renderStylesToNodeStream,p as renderStylesToString,d as sheet};\n//# sourceMappingURL=index.js.map\n","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/index.ts\n* @checksum b38fe171af2489e14639cf28ce6f82a9\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BiometricProps extends LGGlyph.ComponentProps {}\nconst Biometric = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BiometricProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Biometric', {\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.5 1C4.46243 1 2 3.46243 2 6.5V9.5C2 12.5376 4.46243 15 7.5 15H8.5C11.5376 15 14 12.5376 14 9.5V6.5C14 3.46243 11.5376 1 8.5 1H7.5ZM8.57432 7.75001C8.57432 7.43282 8.31719 7.17569 8 7.17569C7.68281 7.17569 7.42567 7.43282 7.42567 7.75001V10.2069C7.42567 10.5241 7.68281 10.7812 8 10.7812C8.31719 10.7812 8.57432 10.5241 8.57432 10.2069V7.75001ZM8.00001 5.33783C6.66781 5.33783 5.58785 6.41779 5.58785 7.74999V10.3164C5.58785 10.5802 5.48308 10.8331 5.2966 11.0196C5.07232 11.2438 5.07232 11.6075 5.2966 11.8318C5.52089 12.0561 5.88453 12.0561 6.10882 11.8318C6.51071 11.4299 6.7365 10.8848 6.7365 10.3164V7.74999C6.7365 7.05217 7.30219 6.48648 8.00001 6.48648C8.69783 6.48648 9.26352 7.05217 9.26352 7.74999V10.3983C9.26352 10.8104 9.03068 11.1871 8.66208 11.3714C8.37838 11.5133 8.26338 11.8583 8.40524 12.142C8.54709 12.4257 8.89207 12.5407 9.17577 12.3988C9.93352 12.0199 10.4122 11.2455 10.4122 10.3983V7.74999C10.4122 6.41779 9.33221 5.33783 8.00001 5.33783ZM4.89865 7.75C4.89865 6.03717 6.28717 4.64865 8 4.64865C8.6033 4.64865 9.16475 4.82034 9.64017 5.11727C9.9092 5.28529 10.2635 5.20341 10.4315 4.93438C10.5996 4.66535 10.5177 4.31104 10.2486 4.14302C9.59605 3.73544 8.82464 3.5 8 3.5C5.65279 3.5 3.75 5.40279 3.75 7.75V10.0473C3.75 10.3645 4.00713 10.6216 4.32432 10.6216C4.64151 10.6216 4.89865 10.3645 4.89865 10.0473V7.75ZM11.7861 5.81757C11.6417 5.53515 11.2957 5.42326 11.0133 5.56765C10.7309 5.71205 10.619 6.05805 10.7634 6.34047C10.9793 6.76274 11.1014 7.24128 11.1014 7.75V9.12838C11.1014 9.44557 11.3585 9.7027 11.6757 9.7027C11.9929 9.7027 12.25 9.44557 12.25 9.12838V7.75C12.25 7.0553 12.0829 6.39796 11.7861 5.81757Z\" fill={'currentColor'} /></svg>;\n};\nBiometric.displayName = 'Biometric';\nBiometric.isGlyph = true;\nexport default Biometric;"],"names":["t","r","key","nonce","prepend","flush","hydrate","n","cx","merge","getRegisteredStyles","injectGlobal","keyframes","m","css","sheet","y","cache","f","e","default","extractCritical","renderStylesToString","renderStylesToNodeStream","_templateObject","_templateObject2","sizeMap","small","large","xlarge","_excluded","Biometric","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"0kDAA8F,IAACA,OAAEC,QAAE,CAACC,IAAI,gBAAgBC,MAAM,QAAQC,SAAQ,IAAOJ,EAAEK,MAAQL,EAAEM,YAAQC,EAAEP,EAAEQ,GAAKR,EAAES,MAAQT,EAAEU,oBAAsBV,EAAEW,aAAeX,EAAEY,UAAU,IAAAC,EAAEb,EAAEc,IAAMd,EAAEe,UAAMC,EAAEhB,EAAEiB,MAAMC,EAAEC,EAACC,QAACJ,GAAKE,EAAEG,gBAAkBH,EAAEI,qBAAuBJ,EAAEK,yBCO9T,ICNHC,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPP,QAAS,GACTQ,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAY,SAAmBC,GACjC,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,EAAY9B,EAAIU,IAAoBA,EAAkBqB,EAAuB,CAAC,oBAAqB,eAAgBN,GACnHO,EAAehC,EAAIW,IAAqBA,EAAmBoB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCN,EAAMO,EAAWhB,GACvD,IAkB4BiB,EAlBxBZ,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Bc,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBZ,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBa,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBb,EAAM,YAAaS,EAAgBA,EAAgB,CAC/Fd,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBiB,EAAMC,cAAc,MAAOC,EAAS,CACtDxB,UAAWzB,EAAG0C,EAAgB,GAAIN,EAAmB,MAARL,GAAeO,EAAcb,GAC1EyB,OAAwB,iBAATvB,EAAoBA,EAAOT,EAAQS,GAClDwB,MAAuB,iBAATxB,EAAoBA,EAAOT,EAAQS,GACjDM,KAAMA,GACLM,EAAiBL,EAAO,CACzBkB,QAAS,cACML,EAAMC,cAAc,OAAQ,CAC3CK,SAAU,UACVC,SAAU,UACVC,EAAG,6mDACHxB,KAAM,iBAEV,SACAR,EAAUiC,YAAc,YACxBjC,EAAUkC,SAAU"}
|
package/dist/umd/Boolean.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
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).leafyGreenIconBoolean=r(e.React,e.leafyGreenEmotion)}(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 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 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 i(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"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,l=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)&&(l[t]=e[t])}return l}(e,c),h=r.css(o||(o=i(["\n color: ",";\n "])),v),j=r.css(f||(f=i(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?l(l(l({},"aria-labelledby",i),"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,"Boolean",l(l({title:d},"aria-label",y),"aria-labelledby",p));return n.createElement("svg",a({className:r.cx(l({},h,null!=v),j,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:g},w,O,{viewBox:"0 0 16 16"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2ZM12 8C12 10.2091 10.2091 12 8 12V4C10.2091 4 12 5.79086 12 8Z",fill:"currentColor"}))};return b.displayName="Boolean",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Boolean.js.map
|
package/dist/umd/Boolean.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Boolean.js","sources":["
|
|
1
|
+
{"version":3,"file":"Boolean.js","sources":["../../src/glyphCommon.ts","../../src/generated/Boolean.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/index.ts\n* @checksum 224d52aa04474618343045cb91eb024b\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BooleanProps extends LGGlyph.ComponentProps {}\nconst Boolean = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BooleanProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Boolean', {\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 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2ZM12 8C12 10.2091 10.2091 12 8 12V4C10.2091 4 12 5.79086 12 8Z\" fill={'currentColor'} /></svg>;\n};\nBoolean.displayName = 'Boolean';\nBoolean.isGlyph = true;\nexport default Boolean;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Boolean","_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":"44CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAU,SAAiBC,GAC7B,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,UAAWU,EAAgBA,EAAgB,CAC7Ff,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,2KACH1B,KAAM,iBAEV,SACAR,EAAQmC,YAAc,UACtBnC,EAAQoC,SAAU"}
|
package/dist/umd/Clone.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@emotion/server/create-instance"),require("@emotion/css/create-instance")):"function"==typeof define&&define.amd?define(["react","@emotion/server/create-instance","@emotion/css/create-instance"],r):(e="undefined"!=typeof globalThis?globalThis:e||self).leafyGreenIconClone=r(e.React,e.createEmotionServer,e.createEmotion)}(this,function(e,r,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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 i=a(e),l=n(r);function o(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 c(){return c=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},c.apply(null,arguments)}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var u=n(t).default({key:"leafygreen-ui",nonce:"5.0.3",prepend:!0});u.flush,u.hydrate;var s=u.cx;u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes;var b=u.css;u.sheet;var d=u.cache,y=l.default(d);y.extractCritical,y.renderStylesToString,y.renderStylesToNodeStream;var p,m,v={small:14,default:16,large:20,xlarge:24};var g=["className","size","title","aria-label","aria-labelledby","fill","role"],h=function(e){var r=e.className,t=e.size,n=void 0===t?16:t,a=e.title,l=e["aria-label"],u=e["aria-labelledby"],d=e.fill,y=e.role,h=void 0===y?"img":y,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,g),j=b(p||(p=f(["\n color: ",";\n "])),d),C=b(m||(m=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],l=t.title;switch(e){case"img":return a||i||l?o(o(o({},"aria-labelledby",i),"aria-label",a),"title",l):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"Clone",o(o({title:a},"aria-label",l),"aria-labelledby",u));return i.createElement("svg",c({className:s(o({},j,null!=d),C,r),height:"number"==typeof n?n:v[n],width:"number"==typeof n?n:v[n],role:h},w,O,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M5.5 12C5.5 13.1046 6.39543 14 7.5 14H12.5C13.6046 14 14.5 13.1046 14.5 12V8C14.5 6.89543 13.6046 6 12.5 6H7.5C6.39543 6 5.5 6.89543 5.5 8V12Z",fill:"currentColor"}),i.createElement("path",{d:"M4.25 10H3.5C2.39543 10 1.5 9.10457 1.5 8V4C1.5 2.89543 2.39543 2 3.5 2H8.5C9.60457 2 10.5 2.89543 10.5 4V4.75H8.5V4H3.5L3.5 8H4.25V10Z",fill:"currentColor"}))};return h.displayName="Clone",h.isGlyph=!0,h});
|
|
2
2
|
//# sourceMappingURL=Clone.js.map
|
package/dist/umd/Clone.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clone.js","sources":["../../src/glyphCommon.ts","../../src/generated/Clone.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/index.ts\n* @checksum c49bb6f86ac38132c73ffe2cd13d6343\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CloneProps extends LGGlyph.ComponentProps {}\nconst Clone = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CloneProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Clone', {\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=\"M5.5 12C5.5 13.1046 6.39543 14 7.5 14H12.5C13.6046 14 14.5 13.1046 14.5 12V8C14.5 6.89543 13.6046 6 12.5 6H7.5C6.39543 6 5.5 6.89543 5.5 8V12Z\" fill={'currentColor'} /><path d=\"M4.25 10H3.5C2.39543 10 1.5 9.10457 1.5 8V4C1.5 2.89543 2.39543 2 3.5 2H8.5C9.60457 2 10.5 2.89543 10.5 4V4.75H8.5V4H3.5L3.5 8H4.25V10Z\" fill={'currentColor'} /></svg>;\n};\nClone.displayName = 'Clone';\nClone.isGlyph = true;\nexport default Clone;"],"names":["_templateObject","_templateObject2","sizeMap","small","
|
|
1
|
+
{"version":3,"file":"Clone.js","sources":["../../../emotion/dist/esm/index.js","../../src/glyphCommon.ts","../../src/generated/Clone.tsx"],"sourcesContent":["import e from\"@emotion/server/create-instance\";import r from\"@emotion/css/create-instance\";var t=r({key:\"leafygreen-ui\",nonce:\"5.0.3\",prepend:!0}),a=t.flush,s=t.hydrate,n=t.cx,o=t.merge,c=t.getRegisteredStyles,i=t.injectGlobal,l=t.keyframes,m=t.css,d=t.sheet,y=t.cache,f=e(y),g=f.extractCritical,p=f.renderStylesToString,S=f.renderStylesToNodeStream;export{y as cache,m as css,n as cx,t as default,g as extractCritical,a as flush,c as getRegisteredStyles,s as hydrate,i as injectGlobal,l as keyframes,o as merge,S as renderStylesToNodeStream,p as renderStylesToString,d as sheet};\n//# sourceMappingURL=index.js.map\n","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/index.ts\n* @checksum c49bb6f86ac38132c73ffe2cd13d6343\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CloneProps extends LGGlyph.ComponentProps {}\nconst Clone = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CloneProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Clone', {\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=\"M5.5 12C5.5 13.1046 6.39543 14 7.5 14H12.5C13.6046 14 14.5 13.1046 14.5 12V8C14.5 6.89543 13.6046 6 12.5 6H7.5C6.39543 6 5.5 6.89543 5.5 8V12Z\" fill={'currentColor'} /><path d=\"M4.25 10H3.5C2.39543 10 1.5 9.10457 1.5 8V4C1.5 2.89543 2.39543 2 3.5 2H8.5C9.60457 2 10.5 2.89543 10.5 4V4.75H8.5V4H3.5L3.5 8H4.25V10Z\" fill={'currentColor'} /></svg>;\n};\nClone.displayName = 'Clone';\nClone.isGlyph = true;\nexport default Clone;"],"names":["t","r","key","nonce","prepend","flush","hydrate","n","cx","merge","getRegisteredStyles","injectGlobal","keyframes","m","css","sheet","y","cache","f","e","default","extractCritical","renderStylesToString","renderStylesToNodeStream","_templateObject","_templateObject2","sizeMap","small","large","xlarge","_excluded","Clone","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","height","width","viewBox","d","displayName","isGlyph"],"mappings":"skDAA8F,IAACA,OAAEC,QAAE,CAACC,IAAI,gBAAgBC,MAAM,QAAQC,SAAQ,IAAOJ,EAAEK,MAAQL,EAAEM,YAAQC,EAAEP,EAAEQ,GAAKR,EAAES,MAAQT,EAAEU,oBAAsBV,EAAEW,aAAeX,EAAEY,UAAU,IAAAC,EAAEb,EAAEc,IAAMd,EAAEe,UAAMC,EAAEhB,EAAEiB,MAAMC,EAAEC,EAACC,QAACJ,GAAKE,EAAEG,gBAAkBH,EAAEI,qBAAuBJ,EAAEK,yBCO9T,ICNHC,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPP,QAAS,GACTQ,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,EAAY9B,EAAIU,IAAoBA,EAAkBqB,EAAuB,CAAC,oBAAqB,eAAgBN,GACnHO,EAAehC,EAAIW,IAAqBA,EAAmBoB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCN,EAAMO,EAAWhB,GACvD,IAkB4BiB,EAlBxBZ,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Bc,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBZ,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBa,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBb,EAAM,QAASS,EAAgBA,EAAgB,CAC3Fd,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBiB,EAAMC,cAAc,MAAOC,EAAS,CACtDxB,UAAWzB,EAAG0C,EAAgB,GAAIN,EAAmB,MAARL,GAAeO,EAAcb,GAC1EyB,OAAwB,iBAATvB,EAAoBA,EAAOT,EAAQS,GAClDwB,MAAuB,iBAATxB,EAAoBA,EAAOT,EAAQS,GACjDM,KAAMA,GACLM,EAAiBL,EAAO,CACzBkB,QAAS,cACML,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,iJACHtB,KAAM,iBACSgB,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,0IACHtB,KAAM,iBAEV,SACAR,EAAM+B,YAAc,QACpB/B,EAAMgC,SAAU"}
|
package/dist/umd/Ellipsis.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
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).leafyGreenIconEllipsis=r(e.React,e.leafyGreenEmotion)}(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 i(){return i=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},i.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,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,p=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,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 i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t=i[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,c),h=r.css(o||(o=a(["\n color: ",";\n "])),v),j=r.css(f||(f=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var l,i=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return i||a||o?n(n(n({},"aria-labelledby",a),"aria-label",i),"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,"Ellipsis",n(n({title:d},"aria-label",p),"aria-labelledby",y));return l.createElement("svg",i({className:r.cx(n({},h,null!=v),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"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z",fill:"currentColor"}))};return s.displayName="Ellipsis",s.isGlyph=!0,s});
|
|
2
2
|
//# sourceMappingURL=Ellipsis.js.map
|
package/dist/umd/Ellipsis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ellipsis.js","sources":["
|
|
1
|
+
{"version":3,"file":"Ellipsis.js","sources":["../../src/glyphCommon.ts","../../src/generated/Ellipsis.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/index.ts\n* @checksum 7660d6fb3d24577cfced3bb912ead720\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EllipsisProps extends LGGlyph.ComponentProps {}\nconst Ellipsis = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EllipsisProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Ellipsis', {\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.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z\" fill={'currentColor'} /></svg>;\n};\nEllipsis.displayName = 'Ellipsis';\nEllipsis.isGlyph = true;\nexport default Ellipsis;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Ellipsis","_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":"64CAOO,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,0XACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
|
package/dist/umd/Recommended.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
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).leafyGreenIconRecommended=r(e.React,e.leafyGreenEmotion)}(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 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 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 i(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"],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,C=e.role,v=void 0===C?"img":C,g=function(e,r){if(null==e)return{};var t,n,l=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)&&(l[t]=e[t])}return l}(e,u),L=r.css(o||(o=i(["\n color: ",";\n "])),p),O=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),h=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?l(l(l({},"aria-labelledby",i),"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:""}}}(v,"Recommended",l(l({title:d},"aria-label",y),"aria-labelledby",m));return n.createElement("svg",a({className:r.cx(l({},L,null!=p),O,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:v},h,g,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M8.1484 5.45755L7.20359 7.42568V9.59086H9.3028C9.54317 9.59086 9.74953 9.41981 9.79412 9.18361L10.0172 8.0018C10.0754 7.69391 9.83924 7.40904 9.52592 7.40904H8.88758C8.55102 7.40904 8.27819 7.12413 8.27819 6.77267V5.70784C8.27819 5.60307 8.22655 5.51089 8.1484 5.45755Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53812 1.55424C8.24353 1.2508 7.75646 1.2508 7.46187 1.55424L6.40002 2.648C6.24018 2.81264 6.01376 2.89505 5.78548 2.87167L4.269 2.71635C3.84829 2.67326 3.47517 2.98634 3.44455 3.40814L3.33418 4.92856C3.31756 5.15743 3.19709 5.3661 3.00719 5.49492L1.74565 6.35072C1.39567 6.58813 1.31109 7.06781 1.55877 7.41061L2.45152 8.64626C2.58591 8.83226 2.62775 9.06955 2.56508 9.2903L2.14879 10.7568C2.03329 11.1636 2.27683 11.5854 2.68691 11.6888L4.16506 12.0615C4.38757 12.1176 4.57214 12.2725 4.66603 12.4819L5.28976 13.8729C5.4628 14.2588 5.9205 14.4254 6.3011 14.241L7.67301 13.5764C7.87952 13.4763 8.12047 13.4763 8.32698 13.5764L9.69889 14.241C10.0795 14.4254 10.5372 14.2588 10.7102 13.8729L11.334 12.4819C11.4278 12.2725 11.6124 12.1176 11.8349 12.0615L13.3131 11.6888C13.7232 11.5854 13.9667 11.1636 13.8512 10.7568L13.4349 9.2903C13.3722 9.06955 13.4141 8.83226 13.5485 8.64626L14.4412 7.41061C14.6889 7.06781 14.6043 6.58813 14.2543 6.35072L12.9928 5.49492C12.8029 5.3661 12.6824 5.15743 12.6658 4.92856L12.5554 3.40814C12.5248 2.98634 12.1517 2.67326 11.731 2.71635L10.2145 2.87167C9.98623 2.89505 9.75981 2.81264 9.59997 2.648L8.53812 1.55424ZM7.47395 4.83394C7.57223 4.62921 7.77275 4.49995 7.99206 4.49995C8.63088 4.49995 9.14875 5.04074 9.14875 5.70784V6.49995H10.1291C10.6775 6.49995 11.0893 7.02303 10.9833 7.58488L10.5714 9.7667C10.4909 10.1928 10.1331 10.4999 9.71723 10.4999H5.43527C5.19488 10.4999 4.99999 10.2055 4.99999 9.95449V7.59086C4.99999 7.33982 5.19488 7.13631 5.43527 7.13631H6.33304C6.34637 7.13631 6.35957 7.13694 6.3726 7.13816C6.38115 7.11372 6.39105 7.08974 6.40227 7.06635L7.47395 4.83394Z",fill:"currentColor"}))};return b.displayName="Recommended",b.isGlyph=!0,b});
|
|
2
2
|
//# sourceMappingURL=Recommended.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommended.js","sources":["
|
|
1
|
+
{"version":3,"file":"Recommended.js","sources":["../../src/glyphCommon.ts","../../src/generated/Recommended.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/index.ts\n* @checksum 39c5c559a039bfdc941799fa127eacb8\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface RecommendedProps extends LGGlyph.ComponentProps {}\nconst Recommended = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: RecommendedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Recommended', {\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=\"M8.1484 5.45755L7.20359 7.42568V9.59086H9.3028C9.54317 9.59086 9.74953 9.41981 9.79412 9.18361L10.0172 8.0018C10.0754 7.69391 9.83924 7.40904 9.52592 7.40904H8.88758C8.55102 7.40904 8.27819 7.12413 8.27819 6.77267V5.70784C8.27819 5.60307 8.22655 5.51089 8.1484 5.45755Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8.53812 1.55424C8.24353 1.2508 7.75646 1.2508 7.46187 1.55424L6.40002 2.648C6.24018 2.81264 6.01376 2.89505 5.78548 2.87167L4.269 2.71635C3.84829 2.67326 3.47517 2.98634 3.44455 3.40814L3.33418 4.92856C3.31756 5.15743 3.19709 5.3661 3.00719 5.49492L1.74565 6.35072C1.39567 6.58813 1.31109 7.06781 1.55877 7.41061L2.45152 8.64626C2.58591 8.83226 2.62775 9.06955 2.56508 9.2903L2.14879 10.7568C2.03329 11.1636 2.27683 11.5854 2.68691 11.6888L4.16506 12.0615C4.38757 12.1176 4.57214 12.2725 4.66603 12.4819L5.28976 13.8729C5.4628 14.2588 5.9205 14.4254 6.3011 14.241L7.67301 13.5764C7.87952 13.4763 8.12047 13.4763 8.32698 13.5764L9.69889 14.241C10.0795 14.4254 10.5372 14.2588 10.7102 13.8729L11.334 12.4819C11.4278 12.2725 11.6124 12.1176 11.8349 12.0615L13.3131 11.6888C13.7232 11.5854 13.9667 11.1636 13.8512 10.7568L13.4349 9.2903C13.3722 9.06955 13.4141 8.83226 13.5485 8.64626L14.4412 7.41061C14.6889 7.06781 14.6043 6.58813 14.2543 6.35072L12.9928 5.49492C12.8029 5.3661 12.6824 5.15743 12.6658 4.92856L12.5554 3.40814C12.5248 2.98634 12.1517 2.67326 11.731 2.71635L10.2145 2.87167C9.98623 2.89505 9.75981 2.81264 9.59997 2.648L8.53812 1.55424ZM7.47395 4.83394C7.57223 4.62921 7.77275 4.49995 7.99206 4.49995C8.63088 4.49995 9.14875 5.04074 9.14875 5.70784V6.49995H10.1291C10.6775 6.49995 11.0893 7.02303 10.9833 7.58488L10.5714 9.7667C10.4909 10.1928 10.1331 10.4999 9.71723 10.4999H5.43527C5.19488 10.4999 4.99999 10.2055 4.99999 9.95449V7.59086C4.99999 7.33982 5.19488 7.13631 5.43527 7.13631H6.33304C6.34637 7.13631 6.35957 7.13694 6.3726 7.13816C6.38115 7.11372 6.39105 7.08974 6.40227 7.06635L7.47395 4.83394Z\" fill={'currentColor'} /></svg>;\n};\nRecommended.displayName = 'Recommended';\nRecommended.isGlyph = true;\nexport default Recommended;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Recommended","_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","fillRule","clipRule","displayName","isGlyph"],"mappings":"g5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAc,SAAqBC,GACrC,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,cAAeU,EAAgBA,EAAgB,CACjGf,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,gRACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CO,SAAU,UACVC,SAAU,UACVF,EAAG,wlDACHxB,KAAM,iBAEV,SACAR,EAAYmC,YAAc,cAC1BnC,EAAYoC,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@emotion/server/create-instance"),require("@emotion/css/create-instance")):"function"==typeof define&&define.amd?define(["react","@emotion/server/create-instance","@emotion/css/create-instance"],r):(e="undefined"!=typeof globalThis?globalThis:e||self).leafyGreenIconSortDescending=r(e.React,e.createEmotionServer,e.createEmotion)}(this,function(e,r,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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 i=a(e),l=n(r);function o(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 c(){return c=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},c.apply(null,arguments)}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var u=n(t).default({key:"leafygreen-ui",nonce:"5.0.
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@emotion/server/create-instance"),require("@emotion/css/create-instance")):"function"==typeof define&&define.amd?define(["react","@emotion/server/create-instance","@emotion/css/create-instance"],r):(e="undefined"!=typeof globalThis?globalThis:e||self).leafyGreenIconSortDescending=r(e.React,e.createEmotionServer,e.createEmotion)}(this,function(e,r,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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 i=a(e),l=n(r);function o(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 c(){return c=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},c.apply(null,arguments)}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var u=n(t).default({key:"leafygreen-ui",nonce:"5.0.3",prepend:!0});u.flush,u.hydrate;var s=u.cx;u.merge,u.getRegisteredStyles,u.injectGlobal,u.keyframes;var b=u.css;u.sheet;var d=u.cache,y=l.default(d);y.extractCritical,y.renderStylesToString,y.renderStylesToNodeStream;var p,m,v={small:14,default:16,large:20,xlarge:24};var g=["className","size","title","aria-label","aria-labelledby","fill","role"],h=function(e){var r=e.className,t=e.size,n=void 0===t?16:t,a=e.title,l=e["aria-label"],u=e["aria-labelledby"],d=e.fill,y=e.role,h=void 0===y?"img":y,C=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,g),O=b(p||(p=f(["\n color: ",";\n "])),d),j=b(m||(m=f(["\n flex-shrink: 0;\n "]))),S=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],l=t.title;switch(e){case"img":return a||i||l?o(o(o({},"aria-labelledby",i),"aria-label",a),"title",l):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"SortDescending",o(o({title:a},"aria-label",l),"aria-labelledby",u));return i.createElement("svg",c({className:s(o({},O,null!=d),j,r),height:"number"==typeof n?n:v[n],width:"number"==typeof n?n:v[n],role:h},S,C,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M4.44991 14.6959C4.23029 14.8861 3.90429 14.8861 3.68466 14.6959L1.20302 12.5467C0.793944 12.1925 1.04449 11.5205 1.58564 11.5205H2.89835V2.16894C2.89835 1.52335 3.4217 1 4.06729 1C4.71287 1 5.23623 1.52335 5.23623 2.16894V11.5205H6.54893C7.09009 11.5205 7.34063 12.1925 6.93156 12.5467L4.44991 14.6959Z",fill:"currentColor"}),i.createElement("path",{d:"M8 3C7.44772 3 7 3.44772 7 4C7 4.55229 7.44772 5 8 5H14C14.5523 5 15 4.55229 15 4C15 3.44772 14.5523 3 14 3H8Z",fill:"currentColor"}),i.createElement("path",{d:"M7 7C7 6.44772 7.44772 6 8 6H12C12.5523 6 13 6.44772 13 7C13 7.55229 12.5523 8 12 8H8C7.44772 8 7 7.55229 7 7Z",fill:"currentColor"}),i.createElement("path",{d:"M8 9C7.44772 9 7 9.44771 7 10C7 10.5523 7.44772 11 8 11H10C10.5523 11 11 10.5523 11 10C11 9.44771 10.5523 9 10 9H8Z",fill:"currentColor"}))};return h.displayName="SortDescending",h.isGlyph=!0,h});
|
|
2
2
|
//# sourceMappingURL=SortDescending.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortDescending.js","sources":["../../../emotion/dist/esm/index.js","../../src/glyphCommon.ts","../../src/generated/SortDescending.tsx"],"sourcesContent":["import e from\"@emotion/server/create-instance\";import r from\"@emotion/css/create-instance\";var t=r({key:\"leafygreen-ui\",nonce:\"5.0.
|
|
1
|
+
{"version":3,"file":"SortDescending.js","sources":["../../../emotion/dist/esm/index.js","../../src/glyphCommon.ts","../../src/generated/SortDescending.tsx"],"sourcesContent":["import e from\"@emotion/server/create-instance\";import r from\"@emotion/css/create-instance\";var t=r({key:\"leafygreen-ui\",nonce:\"5.0.3\",prepend:!0}),a=t.flush,s=t.hydrate,n=t.cx,o=t.merge,c=t.getRegisteredStyles,i=t.injectGlobal,l=t.keyframes,m=t.css,d=t.sheet,y=t.cache,f=e(y),g=f.extractCritical,p=f.renderStylesToString,S=f.renderStylesToNodeStream;export{y as cache,m as css,n as cx,t as default,g as extractCritical,a as flush,c as getRegisteredStyles,s as hydrate,i as injectGlobal,l as keyframes,o as merge,S as renderStylesToNodeStream,p as renderStylesToString,d as sheet};\n//# sourceMappingURL=index.js.map\n","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/index.ts\n* @checksum 77ca38381a8dfb3d248f686f85aae34c\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface SortDescendingProps extends LGGlyph.ComponentProps {}\nconst SortDescending = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: SortDescendingProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'SortDescending', {\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=\"M4.44991 14.6959C4.23029 14.8861 3.90429 14.8861 3.68466 14.6959L1.20302 12.5467C0.793944 12.1925 1.04449 11.5205 1.58564 11.5205H2.89835V2.16894C2.89835 1.52335 3.4217 1 4.06729 1C4.71287 1 5.23623 1.52335 5.23623 2.16894V11.5205H6.54893C7.09009 11.5205 7.34063 12.1925 6.93156 12.5467L4.44991 14.6959Z\" fill={'currentColor'} /><path d=\"M8 3C7.44772 3 7 3.44772 7 4C7 4.55229 7.44772 5 8 5H14C14.5523 5 15 4.55229 15 4C15 3.44772 14.5523 3 14 3H8Z\" fill={'currentColor'} /><path d=\"M7 7C7 6.44772 7.44772 6 8 6H12C12.5523 6 13 6.44772 13 7C13 7.55229 12.5523 8 12 8H8C7.44772 8 7 7.55229 7 7Z\" fill={'currentColor'} /><path d=\"M8 9C7.44772 9 7 9.44771 7 10C7 10.5523 7.44772 11 8 11H10C10.5523 11 11 10.5523 11 10C11 9.44771 10.5523 9 10 9H8Z\" fill={'currentColor'} /></svg>;\n};\nSortDescending.displayName = 'SortDescending';\nSortDescending.isGlyph = true;\nexport default SortDescending;"],"names":["t","r","key","nonce","prepend","flush","hydrate","n","cx","merge","getRegisteredStyles","injectGlobal","keyframes","m","css","sheet","y","cache","f","e","default","extractCritical","renderStylesToString","renderStylesToNodeStream","_templateObject","_templateObject2","sizeMap","small","large","xlarge","_excluded","SortDescending","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","height","width","viewBox","d","displayName","isGlyph"],"mappings":"+kDAA8F,IAACA,OAAEC,QAAE,CAACC,IAAI,gBAAgBC,MAAM,QAAQC,SAAQ,IAAOJ,EAAEK,MAAQL,EAAEM,YAAQC,EAAEP,EAAEQ,GAAKR,EAAES,MAAQT,EAAEU,oBAAsBV,EAAEW,aAAeX,EAAEY,UAAU,IAAAC,EAAEb,EAAEc,IAAMd,EAAEe,UAAMC,EAAEhB,EAAEiB,MAAMC,EAAEC,EAACC,QAACJ,GAAKE,EAAEG,gBAAkBH,EAAEI,qBAAuBJ,EAAEK,yBCO9T,ICNHC,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPP,QAAS,GACTQ,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,EAAY9B,EAAIU,IAAoBA,EAAkBqB,EAAuB,CAAC,oBAAqB,eAAgBN,GACnHO,EAAehC,EAAIW,IAAqBA,EAAmBoB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCN,EAAMO,EAAWhB,GACvD,IAkB4BiB,EAlBxBZ,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Bc,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBZ,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBa,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBb,EAAM,iBAAkBS,EAAgBA,EAAgB,CACpGd,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBiB,EAAMC,cAAc,MAAOC,EAAS,CACtDxB,UAAWzB,EAAG0C,EAAgB,GAAIN,EAAmB,MAARL,GAAeO,EAAcb,GAC1EyB,OAAwB,iBAATvB,EAAoBA,EAAOT,EAAQS,GAClDwB,MAAuB,iBAATxB,EAAoBA,EAAOT,EAAQS,GACjDM,KAAMA,GACLM,EAAiBL,EAAO,CACzBkB,QAAS,cACML,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,kTACHtB,KAAM,iBACSgB,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,iHACHtB,KAAM,iBACSgB,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,iHACHtB,KAAM,iBACSgB,EAAMC,cAAc,OAAQ,CAC3CK,EAAG,sHACHtB,KAAM,iBAEV,SACAR,EAAe+B,YAAc,iBAC7B/B,EAAegC,SAAU"}
|
package/dist/umd/Streaming.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@
|
|
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).leafyGreenIconStreaming=r(e.React,e.leafyGreenEmotion)}(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 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 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 i(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"],C=function(e){var t=e.className,C=e.size,b=void 0===C?16:C,s=e.title,d=e["aria-label"],p=e["aria-labelledby"],m=e.fill,y=e.role,v=void 0===y?"img":y,g=function(e,r){if(null==e)return{};var t,n,l=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)&&(l[t]=e[t])}return l}(e,u),h=r.css(o||(o=i(["\n color: ",";\n "])),m),O=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),j=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?l(l(l({},"aria-labelledby",i),"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:""}}}(v,"Streaming",l(l({title:s},"aria-label",d),"aria-labelledby",p));return n.createElement("svg",a({className:r.cx(l({},h,null!=m),O,t),height:"number"==typeof b?b:f[b],width:"number"==typeof b?b:f[b],role:v},j,g,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M2.5 10.4141C2.8922 10.7317 3.38069 10.9884 3.90527 11.1934C4.42946 11.3981 5.01023 11.5551 5.60449 11.6719L6.6709 13.0303L6.74902 13.1211C7.10522 13.5042 7.61387 13.6279 8.06934 13.5117C8.17594 13.8813 8.40111 14.188 8.69043 14.4111C8.46086 14.4244 8.23023 14.4336 8 14.4336C5.28789 14.4336 2.5 13.5162 2.5 11.5811C2.5 11.4924 2.50071 11.4047 2.50195 11.3184C2.50071 11.2874 2.5 11.2559 2.5 11.2246V10.4141Z",fill:"currentColor"}),n.createElement("path",{d:"M2.5 6.74707C2.8922 7.0647 3.38069 7.3224 3.90527 7.52734C4.65821 7.82143 5.5268 8.02238 6.38672 8.13574L5.30371 9.5166L5.23242 9.61621C5.04168 9.90844 4.96849 10.2571 5.0127 10.5928C4.743 10.5179 4.48251 10.4353 4.23828 10.3398C3.68283 10.1228 3.23472 9.86299 2.93262 9.5752C2.636 9.29254 2.5 9.00426 2.5 8.7041V6.74707Z",fill:"currentColor"}),n.createElement("path",{d:"M13.5 8.7041C13.5 9.00426 13.364 9.29254 13.0674 9.5752C13.011 9.6289 12.9481 9.67979 12.8818 9.73145C12.6172 9.02397 11.9307 8.52864 11.1406 8.52832H9.10352C9.09331 8.41419 9.06716 8.30489 9.03223 8.2002C10.0743 8.11047 11.1714 7.888 12.0947 7.52734C12.6193 7.3224 13.1078 7.0647 13.5 6.74707V8.7041Z",fill:"currentColor"}),n.createElement("path",{d:"M8 1.59961C10.7121 1.59961 13.5 2.51696 13.5 4.45215C13.5 4.54147 13.4993 4.6287 13.498 4.71387C13.4993 4.74514 13.5 4.77701 13.5 4.80859V5.03711C13.5 5.33734 13.3642 5.62645 13.0674 5.90918C12.7653 6.19692 12.3171 6.45587 11.7617 6.67285C10.7051 7.08564 9.35706 7.30393 8.17676 7.32422C7.91253 7.23284 7.62448 7.22642 7.35449 7.30664C6.29674 7.24352 5.15722 7.03186 4.23828 6.67285C3.68294 6.45587 3.2347 6.19692 2.93262 5.90918C2.63584 5.62645 2.5 5.33734 2.5 5.03711V4.80859C2.5 4.77334 2.50038 4.73799 2.50195 4.70312C2.50037 4.6216 2.5 4.53771 2.5 4.45215C2.5 2.51696 5.28789 1.59961 8 1.59961Z",fill:"currentColor"}),n.createElement("path",{d:"M9.85893 12.2378H12.8902V11.3819C12.8902 11.029 13.3175 10.8656 13.5427 11.1324L14.9093 12.7505C15.0302 12.8937 15.0302 13.1063 14.9093 13.2495L13.5427 14.8676C13.3175 15.1344 12.8902 14.971 12.8902 14.6181V13.8125H9.85893C9.38455 13.8125 9 13.46 9 13.0252C9 12.5903 9.38455 12.2378 9.85893 12.2378Z",fill:"currentColor"}),n.createElement("path",{d:"M11.1411 11.2229H8.10982V12.1442C8.10982 12.524 7.68252 12.6998 7.45726 12.4127L6.09071 10.6711C5.96976 10.517 5.96976 10.2882 6.09071 10.1341L7.45726 8.39247C7.68252 8.10539 8.10982 8.28122 8.10982 8.661V9.5281H11.1411C11.6154 9.5281 12 9.90751 12 10.3755C12 10.8435 11.6154 11.2229 11.1411 11.2229Z",fill:"currentColor"}))};return C.displayName="Streaming",C.isGlyph=!0,C});
|
|
2
2
|
//# sourceMappingURL=Streaming.js.map
|