@datalayer/primer-addons 1.0.55 → 1.0.56
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/README.md +18 -0
- package/lib/components/animated-text/AnimatedText.d.ts +56 -0
- package/lib/components/animated-text/AnimatedText.js +100 -0
- package/lib/components/animated-text/AnimatedText.stories.d.ts +14 -0
- package/lib/components/animated-text/AnimatedText.stories.js +21 -0
- package/lib/components/animated-text/index.d.ts +1 -0
- package/lib/components/animated-text/index.js +5 -0
- package/lib/components/buttons/Buttons.stories.d.ts +14 -0
- package/lib/components/buttons/Buttons.stories.js +24 -0
- package/lib/components/buttons/CopyToClipboardButton.d.ts +13 -0
- package/lib/components/buttons/CopyToClipboardButton.js +73 -0
- package/lib/components/buttons/DownloadCSVButton.d.ts +8 -0
- package/lib/components/buttons/DownloadCSVButton.js +12 -0
- package/lib/components/buttons/DownloadJsonButton.d.ts +9 -0
- package/lib/components/buttons/DownloadJsonButton.js +12 -0
- package/lib/components/buttons/LongActionButton.d.ts +29 -0
- package/lib/components/buttons/LongActionButton.js +23 -0
- package/lib/components/buttons/UploadButton.d.ts +35 -0
- package/lib/components/buttons/UploadButton.js +35 -0
- package/lib/components/buttons/VariantType.d.ts +1 -0
- package/lib/components/buttons/VariantType.js +5 -0
- package/lib/components/buttons/index.d.ts +6 -0
- package/lib/components/buttons/index.js +10 -0
- package/lib/components/display/AvatarSkeleton.d.ts +5 -0
- package/lib/components/display/AvatarSkeleton.js +11 -0
- package/lib/components/display/BusyDots.d.ts +9 -0
- package/lib/components/display/BusyDots.js +31 -0
- package/lib/components/display/CenteredSpinner.d.ts +11 -0
- package/lib/components/display/CenteredSpinner.js +11 -0
- package/lib/components/display/CodePreview.d.ts +4 -0
- package/lib/components/display/CodePreview.js +15 -0
- package/lib/components/display/Display.stories.d.ts +17 -0
- package/lib/components/display/Display.stories.js +27 -0
- package/lib/components/display/HorizontalCenter.d.ts +6 -0
- package/lib/components/display/HorizontalCenter.js +10 -0
- package/lib/components/display/NotebookSkeleton.d.ts +2 -0
- package/lib/components/display/NotebookSkeleton.js +11 -0
- package/lib/components/display/Placeholder.d.ts +2 -0
- package/lib/components/display/Placeholder.js +9 -0
- package/lib/components/display/VisuallyHidden.d.ts +5 -0
- package/lib/components/display/VisuallyHidden.js +24 -0
- package/lib/components/display/index.d.ts +8 -0
- package/lib/components/display/index.js +12 -0
- package/lib/components/emoji/FluentEmoji.d.ts +33 -0
- package/lib/components/emoji/FluentEmoji.js +66 -0
- package/lib/components/emoji/FluentEmoji.stories.d.ts +14 -0
- package/lib/components/emoji/FluentEmoji.stories.js +19 -0
- package/lib/components/emoji/faceEmojis.d.ts +24 -0
- package/lib/components/emoji/faceEmojis.js +229 -0
- package/lib/components/emoji/fluent/loaders.d.ts +12 -0
- package/lib/components/emoji/fluent/loaders.js +200 -0
- package/lib/components/emoji/fluent/svg/1f304.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f304.js +9 -0
- package/lib/components/emoji/fluent/svg/1f308.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f308.js +9 -0
- package/lib/components/emoji/fluent/svg/1f30a.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f30a.js +9 -0
- package/lib/components/emoji/fluent/svg/1f30d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f30d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f30f.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f30f.js +9 -0
- package/lib/components/emoji/fluent/svg/1f310.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f310.js +9 -0
- package/lib/components/emoji/fluent/svg/1f31f.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f31f.js +9 -0
- package/lib/components/emoji/fluent/svg/1f324.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f324.js +9 -0
- package/lib/components/emoji/fluent/svg/1f326.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f326.js +9 -0
- package/lib/components/emoji/fluent/svg/1f327.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f327.js +9 -0
- package/lib/components/emoji/fluent/svg/1f331.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f331.js +9 -0
- package/lib/components/emoji/fluent/svg/1f33e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f33e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f340.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f340.js +9 -0
- package/lib/components/emoji/fluent/svg/1f355.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f355.js +9 -0
- package/lib/components/emoji/fluent/svg/1f372.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f372.js +9 -0
- package/lib/components/emoji/fluent/svg/1f373.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f373.js +9 -0
- package/lib/components/emoji/fluent/svg/1f381.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f381.js +9 -0
- package/lib/components/emoji/fluent/svg/1f385.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f385.js +9 -0
- package/lib/components/emoji/fluent/svg/1f386.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f386.js +9 -0
- package/lib/components/emoji/fluent/svg/1f387.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f387.js +9 -0
- package/lib/components/emoji/fluent/svg/1f389.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f389.js +9 -0
- package/lib/components/emoji/fluent/svg/1f393.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f393.js +9 -0
- package/lib/components/emoji/fluent/svg/1f399.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f399.js +9 -0
- package/lib/components/emoji/fluent/svg/1f39b.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f39b.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3a8.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3a8.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3ab.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3ab.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3ac.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3ac.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3af.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3af.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3b5.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3b5.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3c4.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3c4.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3c6.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3c6.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3ca.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3ca.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3d7.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3d7.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3db.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3db.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3e0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3e0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3e2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3e2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3e5.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3e5.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3e6.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3e6.js +9 -0
- package/lib/components/emoji/fluent/svg/1f3f7.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f3f7.js +9 -0
- package/lib/components/emoji/fluent/svg/1f409.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f409.js +9 -0
- package/lib/components/emoji/fluent/svg/1f419.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f419.js +9 -0
- package/lib/components/emoji/fluent/svg/1f41b.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f41b.js +9 -0
- package/lib/components/emoji/fluent/svg/1f41d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f41d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f427.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f427.js +9 -0
- package/lib/components/emoji/fluent/svg/1f431.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f431.js +9 -0
- package/lib/components/emoji/fluent/svg/1f432.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f432.js +9 -0
- package/lib/components/emoji/fluent/svg/1f433.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f433.js +9 -0
- package/lib/components/emoji/fluent/svg/1f436.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f436.js +9 -0
- package/lib/components/emoji/fluent/svg/1f440.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f440.js +9 -0
- package/lib/components/emoji/fluent/svg/1f441.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f441.js +9 -0
- package/lib/components/emoji/fluent/svg/1f44b.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f44b.js +9 -0
- package/lib/components/emoji/fluent/svg/1f450.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f450.js +9 -0
- package/lib/components/emoji/fluent/svg/1f465.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f465.js +9 -0
- package/lib/components/emoji/fluent/svg/1f477.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f477.js +9 -0
- package/lib/components/emoji/fluent/svg/1f47d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f47d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f47e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f47e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4a1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4a1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4ac.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4ac.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4b0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4b0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4b3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4b3.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4b9.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4b9.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4bc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4bc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4be.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4be.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4c1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4c1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4c2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4c2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4c4.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4c4.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4c5.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4c5.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4c8.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4c8.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4ca.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4ca.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4cb.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4cb.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4cc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4cc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4d1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4d1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4d3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4d3.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4d6.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4d6.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4da.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4da.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4dc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4dc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4dd.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4dd.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4de.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4de.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4e1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4e1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4e2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4e2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4e3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4e3.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4e6.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4e6.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4e7.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4e7.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4ec.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4ec.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4f0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4f0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f4f7.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f4f7.js +9 -0
- package/lib/components/emoji/fluent/svg/1f500.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f500.js +9 -0
- package/lib/components/emoji/fluent/svg/1f501.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f501.js +9 -0
- package/lib/components/emoji/fluent/svg/1f504.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f504.js +9 -0
- package/lib/components/emoji/fluent/svg/1f50d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f50d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f50e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f50e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f511.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f511.js +9 -0
- package/lib/components/emoji/fluent/svg/1f512.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f512.js +9 -0
- package/lib/components/emoji/fluent/svg/1f514.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f514.js +9 -0
- package/lib/components/emoji/fluent/svg/1f525.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f525.js +9 -0
- package/lib/components/emoji/fluent/svg/1f527.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f527.js +9 -0
- package/lib/components/emoji/fluent/svg/1f52c.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f52c.js +9 -0
- package/lib/components/emoji/fluent/svg/1f52d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f52d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f552.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f552.js +9 -0
- package/lib/components/emoji/fluent/svg/1f58a.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f58a.js +9 -0
- package/lib/components/emoji/fluent/svg/1f58b.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f58b.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5b2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5b2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5bc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5bc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5c2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5c2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5c3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5c3.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5d1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5d1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5d3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5d3.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5dc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5dc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f5fa.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f5fa.js +9 -0
- package/lib/components/emoji/fluent/svg/1f600.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f600.js +9 -0
- package/lib/components/emoji/fluent/svg/1f604.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f604.js +9 -0
- package/lib/components/emoji/fluent/svg/1f60e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f60e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f642.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f642.js +9 -0
- package/lib/components/emoji/fluent/svg/1f680.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f680.js +9 -0
- package/lib/components/emoji/fluent/svg/1f69a.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f69a.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6a2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6a2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6a7.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6a7.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6b2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6b2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6cd.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6cd.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6d2.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6d2.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6df.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6df.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6e0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6e0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6e1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6e1.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6eb.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6eb.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6f0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6f0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f6f8.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f6f8.js +9 -0
- package/lib/components/emoji/fluent/svg/1f913.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f913.js +9 -0
- package/lib/components/emoji/fluent/svg/1f916.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f916.js +9 -0
- package/lib/components/emoji/fluent/svg/1f917.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f917.js +9 -0
- package/lib/components/emoji/fluent/svg/1f91d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f91d.js +9 -0
- package/lib/components/emoji/fluent/svg/1f920.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f920.js +9 -0
- package/lib/components/emoji/fluent/svg/1f977.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f977.js +9 -0
- package/lib/components/emoji/fluent/svg/1f984.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f984.js +9 -0
- package/lib/components/emoji/fluent/svg/1f988.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f988.js +9 -0
- package/lib/components/emoji/fluent/svg/1f989.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f989.js +9 -0
- package/lib/components/emoji/fluent/svg/1f98a.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f98a.js +9 -0
- package/lib/components/emoji/fluent/svg/1f98e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f98e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f33e.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f33e.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f373.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f373.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f393.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f393.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f3eb.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f3eb.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f4bb.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f4bb.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f4bc.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f4bc.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f52c.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f52c.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f680.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-1f680.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-2695.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-2695.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-2696.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9d1-200d-2696.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9dd.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9dd.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9e0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9e0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9e9.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9e9.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9ea.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9ea.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9ec.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9ec.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9ed.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9ed.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9ee.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9ee.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9f0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9f0.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9f9.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9f9.js +9 -0
- package/lib/components/emoji/fluent/svg/1f9fe.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1f9fe.js +9 -0
- package/lib/components/emoji/fluent/svg/1fa79.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1fa79.js +9 -0
- package/lib/components/emoji/fluent/svg/1fa84.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1fa84.js +9 -0
- package/lib/components/emoji/fluent/svg/1fa90.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1fa90.js +9 -0
- package/lib/components/emoji/fluent/svg/1fa9d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1fa9d.js +9 -0
- package/lib/components/emoji/fluent/svg/1fa9f.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/1fa9f.js +9 -0
- package/lib/components/emoji/fluent/svg/23f0.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/23f0.js +9 -0
- package/lib/components/emoji/fluent/svg/23f3.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/23f3.js +9 -0
- package/lib/components/emoji/fluent/svg/2600.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2600.js +9 -0
- package/lib/components/emoji/fluent/svg/2601.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2601.js +9 -0
- package/lib/components/emoji/fluent/svg/2603.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2603.js +9 -0
- package/lib/components/emoji/fluent/svg/2611.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2611.js +9 -0
- package/lib/components/emoji/fluent/svg/2615.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2615.js +9 -0
- package/lib/components/emoji/fluent/svg/262f.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/262f.js +9 -0
- package/lib/components/emoji/fluent/svg/2696.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2696.js +9 -0
- package/lib/components/emoji/fluent/svg/2699.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2699.js +9 -0
- package/lib/components/emoji/fluent/svg/269b.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/269b.js +9 -0
- package/lib/components/emoji/fluent/svg/26a1.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/26a1.js +9 -0
- package/lib/components/emoji/fluent/svg/2702.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2702.js +9 -0
- package/lib/components/emoji/fluent/svg/2705.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2705.js +9 -0
- package/lib/components/emoji/fluent/svg/2709.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2709.js +9 -0
- package/lib/components/emoji/fluent/svg/270d.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/270d.js +9 -0
- package/lib/components/emoji/fluent/svg/270f.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/270f.js +9 -0
- package/lib/components/emoji/fluent/svg/2712.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2712.js +9 -0
- package/lib/components/emoji/fluent/svg/2728.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2728.js +9 -0
- package/lib/components/emoji/fluent/svg/2764.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2764.js +9 -0
- package/lib/components/emoji/fluent/svg/2b1c.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2b1c.js +9 -0
- package/lib/components/emoji/fluent/svg/2b50.d.ts +2 -0
- package/lib/components/emoji/fluent/svg/2b50.js +9 -0
- package/lib/components/emoji/index.d.ts +3 -0
- package/lib/components/emoji/index.js +7 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/index.js +11 -0
- package/lib/components/labels/StatusLabels.d.ts +55 -0
- package/lib/components/labels/StatusLabels.js +77 -0
- package/lib/components/labels/StatusLabels.stories.d.ts +14 -0
- package/lib/components/labels/StatusLabels.stories.js +19 -0
- package/lib/components/labels/VisibilityLabel.d.ts +4 -0
- package/lib/components/labels/VisibilityLabel.js +14 -0
- package/lib/components/labels/index.d.ts +2 -0
- package/lib/components/labels/index.js +6 -0
- package/lib/components/progress/Progress.stories.d.ts +14 -0
- package/lib/components/progress/Progress.stories.js +20 -0
- package/lib/components/progress/ProgressRing.d.ts +37 -0
- package/lib/components/progress/ProgressRing.js +31 -0
- package/lib/components/progress/SpinnerBar.d.ts +2 -0
- package/lib/components/progress/SpinnerBar.js +21 -0
- package/lib/components/progress/Timer.d.ts +10 -0
- package/lib/components/progress/Timer.js +24 -0
- package/lib/components/progress/index.d.ts +3 -0
- package/lib/components/progress/index.js +7 -0
- package/lib/components/scroll-area/ScrollArea.d.ts +7 -7
- package/lib/components/sparklines/Sparklines.d.ts +16 -0
- package/lib/components/sparklines/Sparklines.js +68 -0
- package/lib/components/sparklines/Sparklines.stories.d.ts +12 -0
- package/lib/components/sparklines/Sparklines.stories.js +15 -0
- package/lib/components/sparklines/SparklinesLine.d.ts +8 -0
- package/lib/components/sparklines/SparklinesLine.js +37 -0
- package/lib/components/sparklines/dataProcessing.d.ts +23 -0
- package/lib/components/sparklines/dataProcessing.js +35 -0
- package/lib/components/sparklines/index.d.ts +5 -0
- package/lib/components/sparklines/index.js +7 -0
- package/lib/components/sparklines/types.d.ts +36 -0
- package/lib/components/sparklines/types.js +5 -0
- package/lib/components/tabs/ViewTabs.d.ts +48 -0
- package/lib/components/tabs/ViewTabs.js +40 -0
- package/lib/components/tabs/ViewTabs.stories.d.ts +13 -0
- package/lib/components/tabs/ViewTabs.stories.js +30 -0
- package/lib/components/tabs/index.d.ts +1 -0
- package/lib/components/tabs/index.js +5 -0
- package/lib/components/timeline/Timeline.d.ts +20 -0
- package/lib/components/timeline/Timeline.js +58 -0
- package/lib/components/timeline/Timeline.stories.d.ts +12 -0
- package/lib/components/timeline/Timeline.stories.js +22 -0
- package/lib/components/timeline/index.d.ts +1 -0
- package/lib/components/timeline/index.js +5 -0
- package/lib/components/toast/ToastPanel.d.ts +11 -0
- package/lib/components/toast/ToastPanel.js +43 -0
- package/lib/components/toast/ToastPanel.stories.d.ts +12 -0
- package/lib/components/toast/ToastPanel.stories.js +16 -0
- package/lib/components/toast/index.d.ts +2 -0
- package/lib/components/toast/index.js +6 -0
- package/lib/components/toast/toastQueue.d.ts +35 -0
- package/lib/components/toast/toastQueue.js +47 -0
- package/lib/components/truncate/Truncate.d.ts +44 -0
- package/lib/components/truncate/Truncate.js +46 -0
- package/lib/components/truncate/Truncate.stories.d.ts +13 -0
- package/lib/components/truncate/Truncate.stories.js +19 -0
- package/lib/components/truncate/index.d.ts +1 -0
- package/lib/components/truncate/index.js +5 -0
- package/lib/theme/themes/agentThemeStyles.d.ts +1 -1
- package/lib/theme/themes/datalayerThemeStyles.d.ts +1 -1
- package/lib/theme/themes/earthThemeStyles.d.ts +1 -1
- package/lib/theme/themes/ivoryThemeStyles.d.ts +1 -1
- package/lib/theme/themes/lovelyThemeStyles.d.ts +1 -1
- package/lib/theme/themes/matrixThemeStyles.d.ts +1 -1
- package/lib/theme/themes/metalThemeStyles.d.ts +1 -1
- package/lib/theme/themes/sandThemeStyles.d.ts +1 -1
- package/lib/theme/themes/spatialThemeStyles.d.ts +1 -1
- package/lib/theme/themes/sunThemeStyles.d.ts +1 -1
- package/lib/theme/themes/vscodeThemeStyles.d.ts +1 -1
- package/lib/utils/Download.d.ts +3 -0
- package/lib/utils/Download.js +50 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/package.json +4 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* ✨ sparkles — Fluent Emoji, Flat, by Microsoft (MIT,
|
|
7
|
+
* see ../LICENSE). Written by scripts/generate-fluent-emoji.py: do not edit.
|
|
8
|
+
*/
|
|
9
|
+
export default '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.5194 7.0517C10.2265 6.93064 9.99626 6.69861 9.88117 6.41614L8.929 4.25725C8.75112 3.91425 8.23842 3.91425 8.071 4.25725L7.11883 6.41614C6.99327 6.69861 6.76308 6.92055 6.48057 7.0517L5.26682 7.57629C4.91106 7.74779 4.91106 8.24212 5.26682 8.41362L6.48057 8.93821C6.77354 9.05927 7.00374 9.2913 7.11883 9.57377L8.071 11.7427C8.24888 12.0858 8.76158 12.0858 8.929 11.7427L9.88117 9.57377C10.0067 9.2913 10.2369 9.06936 10.5194 8.93821L11.7332 8.41362C12.0889 8.24212 12.0889 7.74779 11.7332 7.57629L10.5194 7.0517Z" fill="#F9C23C"/> <path d="M25.5744 13.5546C24.7045 13.1673 24.0166 12.4539 23.6525 11.5775L20.7897 4.81023C20.2637 3.72992 18.7363 3.72992 18.2103 4.81023L15.3475 11.5775C14.9733 12.4539 14.2854 13.1673 13.4256 13.5546L9.80419 15.1955C8.73194 15.7254 8.73194 17.2746 9.80419 17.8045L13.4256 19.4454C14.2955 19.8327 14.9834 20.5461 15.3475 21.4225L18.2103 28.1898C18.7363 29.2701 20.2637 29.2701 20.7897 28.1898L23.6525 21.4225C24.0267 20.5461 24.7146 19.8327 25.5744 19.4454L29.1958 17.8045C30.2681 17.2746 30.2681 15.7254 29.1958 15.1955L25.5744 13.5546Z" fill="#F9C23C"/> <path d="M8.2811 20.3304C8.44173 20.7222 8.73465 21.0258 9.10315 21.2021L10.6528 21.927C11.1157 22.1621 11.1157 22.8379 10.6528 23.073L9.10315 23.7979C8.73465 23.9742 8.44173 24.2876 8.2811 24.6696L7.05276 27.6474C6.82598 28.1175 6.17402 28.1175 5.94724 27.6474L4.7189 24.6696C4.55827 24.2778 4.26535 23.9742 3.89685 23.7979L2.34724 23.073C1.88425 22.8379 1.88425 22.1621 2.34724 21.927L3.89685 21.2021C4.26535 21.0258 4.55827 20.7124 4.7189 20.3304L5.94724 17.3526C6.17402 16.8825 6.82598 16.8825 7.05276 17.3526L8.2811 20.3304Z" fill="#F9C23C"/> </svg>';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M5.99987 6.00001C10.6646 3.66763 14.4999 6.50001 15.9999 8.50001C17.4999 6.5 21.3351 3.66763 25.9999 6.00001C31.9999 8.99999 30.4998 16.5 25.9998 21C23.8041 23.1958 19.9371 27.0628 17.1087 29.2137C16.4552 29.7106 15.5614 29.6884 14.9226 29.1728C12.3299 27.08 8.16491 23.165 5.99987 21C1.49986 16.5 -0.000126839 8.99999 5.99987 6.00001Z\" fill=\"#F8312F\"/> <path d=\"M15.9998 8.49998V11.5492C17.2695 8.86501 20.4252 5.28051 25.6578 5.83746C21.1482 3.80623 17.463 6.54908 15.9998 8.49998Z\" fill=\"#CA0B4A\"/> <path d=\"M11.9456 5.53691C10.2614 4.95005 8.22499 4.88745 5.99987 6.00001C-0.000126839 8.99999 1.49986 16.5 5.99987 21C8.16491 23.165 12.3299 27.08 14.9226 29.1728C15.5614 29.6884 16.4552 29.7106 17.1087 29.2137C17.3629 29.0204 17.6255 28.8132 17.8945 28.5946C15.0398 26.4524 11.0335 23.0762 8.85898 21.1325C3.90218 16.702 2.24993 9.31788 8.85898 6.36425C9.93279 5.88435 10.9667 5.62654 11.9456 5.53691Z\" fill=\"#CA0B4A\"/> <ellipse cx=\"23.4771\" cy=\"12.5937\" rx=\"2.83554\" ry=\"4.78125\" transform=\"rotate(30 23.4771 12.5937)\" fill=\"#F37366\"/> </svg>";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* ❤️ red heart — Fluent Emoji, Flat, by Microsoft (MIT,
|
|
7
|
+
* see ../LICENSE). Written by scripts/generate-fluent-emoji.py: do not edit.
|
|
8
|
+
*/
|
|
9
|
+
export default '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M5.99987 6.00001C10.6646 3.66763 14.4999 6.50001 15.9999 8.50001C17.4999 6.5 21.3351 3.66763 25.9999 6.00001C31.9999 8.99999 30.4998 16.5 25.9998 21C23.8041 23.1958 19.9371 27.0628 17.1087 29.2137C16.4552 29.7106 15.5614 29.6884 14.9226 29.1728C12.3299 27.08 8.16491 23.165 5.99987 21C1.49986 16.5 -0.000126839 8.99999 5.99987 6.00001Z" fill="#F8312F"/> <path d="M15.9998 8.49998V11.5492C17.2695 8.86501 20.4252 5.28051 25.6578 5.83746C21.1482 3.80623 17.463 6.54908 15.9998 8.49998Z" fill="#CA0B4A"/> <path d="M11.9456 5.53691C10.2614 4.95005 8.22499 4.88745 5.99987 6.00001C-0.000126839 8.99999 1.49986 16.5 5.99987 21C8.16491 23.165 12.3299 27.08 14.9226 29.1728C15.5614 29.6884 16.4552 29.7106 17.1087 29.2137C17.3629 29.0204 17.6255 28.8132 17.8945 28.5946C15.0398 26.4524 11.0335 23.0762 8.85898 21.1325C3.90218 16.702 2.24993 9.31788 8.85898 6.36425C9.93279 5.88435 10.9667 5.62654 11.9456 5.53691Z" fill="#CA0B4A"/> <ellipse cx="23.4771" cy="12.5937" rx="2.83554" ry="4.78125" transform="rotate(30 23.4771 12.5937)" fill="#F37366"/> </svg>';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M4.02783 1.5C2.64712 1.5 1.52783 2.61929 1.52783 4V28C1.52783 29.3807 2.64712 30.5 4.02783 30.5H28.0278C29.4085 30.5 30.5278 29.3807 30.5278 28V4C30.5278 2.61929 29.4085 1.5 28.0278 1.5H4.02783Z\" fill=\"#9B9B9B\"/> <path d=\"M2.52783 4C2.52783 3.17157 3.19941 2.5 4.02783 2.5H28.0278C28.8563 2.5 29.5278 3.17157 29.5278 4V28C29.5278 28.8284 28.8563 29.5 28.0278 29.5H4.02783C3.19941 29.5 2.52783 28.8284 2.52783 28V4Z\" fill=\"white\"/> </svg>";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* ⬜ white large square — Fluent Emoji, Flat, by Microsoft (MIT,
|
|
7
|
+
* see ../LICENSE). Written by scripts/generate-fluent-emoji.py: do not edit.
|
|
8
|
+
*/
|
|
9
|
+
export default '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.02783 1.5C2.64712 1.5 1.52783 2.61929 1.52783 4V28C1.52783 29.3807 2.64712 30.5 4.02783 30.5H28.0278C29.4085 30.5 30.5278 29.3807 30.5278 28V4C30.5278 2.61929 29.4085 1.5 28.0278 1.5H4.02783Z" fill="#9B9B9B"/> <path d="M2.52783 4C2.52783 3.17157 3.19941 2.5 4.02783 2.5H28.0278C28.8563 2.5 29.5278 3.17157 29.5278 4V28C29.5278 28.8284 28.8563 29.5 28.0278 29.5H4.02783C3.19941 29.5 2.52783 28.8284 2.52783 28V4Z" fill="white"/> </svg>';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M18.6992 4.62713L20.9469 8.93616C21.288 9.57602 21.9102 10.0259 22.6326 10.1259L27.3788 10.7758C29.9175 11.1257 30.9008 14.255 29.0244 15.9946L25.7733 18.9939C25.2114 19.5138 24.9505 20.2836 25.091 21.0334L25.8837 25.4324C26.3252 27.8819 23.7765 29.7915 21.5389 28.6717L17.0034 26.4222C16.3713 26.1123 15.6287 26.1123 14.9966 26.4222L10.4611 28.6717C8.22347 29.7815 5.67477 27.8819 6.11628 25.4324L6.90898 21.0334C7.04946 20.2836 6.78857 19.5138 6.22665 18.9939L2.97556 15.9946C1.09916 14.265 2.08251 11.1257 4.62118 10.7758L9.36737 10.1259C10.0898 10.0259 10.722 9.58601 11.0531 8.93616L13.3008 4.62713C14.4447 2.45762 17.5653 2.45762 18.6992 4.62713Z\" fill=\"#FCD53F\"/> </svg>";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* ⭐ star — Fluent Emoji, Flat, by Microsoft (MIT,
|
|
7
|
+
* see ../LICENSE). Written by scripts/generate-fluent-emoji.py: do not edit.
|
|
8
|
+
*/
|
|
9
|
+
export default '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18.6992 4.62713L20.9469 8.93616C21.288 9.57602 21.9102 10.0259 22.6326 10.1259L27.3788 10.7758C29.9175 11.1257 30.9008 14.255 29.0244 15.9946L25.7733 18.9939C25.2114 19.5138 24.9505 20.2836 25.091 21.0334L25.8837 25.4324C26.3252 27.8819 23.7765 29.7915 21.5389 28.6717L17.0034 26.4222C16.3713 26.1123 15.6287 26.1123 14.9966 26.4222L10.4611 28.6717C8.22347 29.7815 5.67477 27.8819 6.11628 25.4324L6.90898 21.0334C7.04946 20.2836 6.78857 19.5138 6.22665 18.9939L2.97556 15.9946C1.09916 14.265 2.08251 11.1257 4.62118 10.7758L9.36737 10.1259C10.0898 10.0259 10.722 9.58601 11.0531 8.93616L13.3008 4.62713C14.4447 2.45762 17.5653 2.45762 18.6992 4.62713Z" fill="#FCD53F"/> </svg>';
|
|
@@ -24,3 +24,14 @@ export * from "./slider/Slider";
|
|
|
24
24
|
export * from "./logo";
|
|
25
25
|
export * from "./appearance";
|
|
26
26
|
export * from "./toolbar";
|
|
27
|
+
export * from "./animated-text";
|
|
28
|
+
export * from "./buttons";
|
|
29
|
+
export * from "./display";
|
|
30
|
+
export * from "./emoji";
|
|
31
|
+
export * from "./labels";
|
|
32
|
+
export * from "./progress";
|
|
33
|
+
export * from "./sparklines";
|
|
34
|
+
export * from "./tabs";
|
|
35
|
+
export * from "./timeline";
|
|
36
|
+
export * from "./toast";
|
|
37
|
+
export * from "./truncate";
|
package/lib/components/index.js
CHANGED
|
@@ -28,3 +28,14 @@ export * from "./slider/Slider";
|
|
|
28
28
|
export * from "./logo";
|
|
29
29
|
export * from "./appearance";
|
|
30
30
|
export * from "./toolbar";
|
|
31
|
+
export * from "./animated-text";
|
|
32
|
+
export * from "./buttons";
|
|
33
|
+
export * from "./display";
|
|
34
|
+
export * from "./emoji";
|
|
35
|
+
export * from "./labels";
|
|
36
|
+
export * from "./progress";
|
|
37
|
+
export * from "./sparklines";
|
|
38
|
+
export * from "./tabs";
|
|
39
|
+
export * from "./timeline";
|
|
40
|
+
export * from "./toast";
|
|
41
|
+
export * from "./truncate";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The small pills that qualify an entry.
|
|
3
|
+
*
|
|
4
|
+
* A menu entry, a card, a row of a switcher: what qualifies them is always
|
|
5
|
+
* the same mark — one lowercase word in a semantic tone — and it was written
|
|
6
|
+
* out at every place that needed one. These are that mark, named after what
|
|
7
|
+
* they say, so `alpha` looks the same in the user menu, on an integration and
|
|
8
|
+
* wherever it is needed next.
|
|
9
|
+
*
|
|
10
|
+
* @module components/labels/StatusLabels
|
|
11
|
+
*/
|
|
12
|
+
import type { JSX, ReactNode } from 'react';
|
|
13
|
+
/** The tones a status pill is read in. */
|
|
14
|
+
export type StatusLabelTone = 'accent' | 'attention' | 'success' | 'neutral';
|
|
15
|
+
export type StatusLabelProps = {
|
|
16
|
+
/** Word of the pill; each label has one of its own. */
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
size?: 'small' | 'large';
|
|
19
|
+
sx?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The tone of each named label. A role or a stage is a quality, not a
|
|
23
|
+
* verdict, so none is in attention's amber: the theme keeps success, attention
|
|
24
|
+
* and danger for verdicts (LOOP T-14, T-29) — *admin* is quiet.
|
|
25
|
+
*/
|
|
26
|
+
export declare const NAMED_LABEL_TONES: {
|
|
27
|
+
readonly alpha: "accent";
|
|
28
|
+
readonly admin: "neutral";
|
|
29
|
+
readonly default: "accent";
|
|
30
|
+
readonly soon: "neutral";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The pill the named labels below are made of.
|
|
34
|
+
*
|
|
35
|
+
* Exported for a qualification that has no label of its own yet; prefer one of
|
|
36
|
+
* the named ones, so the same thing is said the same way everywhere.
|
|
37
|
+
*/
|
|
38
|
+
export declare function StatusLabel(props: StatusLabelProps & {
|
|
39
|
+
tone: StatusLabelTone;
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* A feature that is being tried out.
|
|
43
|
+
*/
|
|
44
|
+
export declare function AlphaLabel(props?: StatusLabelProps): JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* Something reserved to the administrators of the platform.
|
|
47
|
+
*/
|
|
48
|
+
export declare function AdminLabel(props?: StatusLabelProps): JSX.Element;
|
|
49
|
+
/**
|
|
50
|
+
* The one that is taken when none is chosen — the default space of an account.
|
|
51
|
+
*/
|
|
52
|
+
export declare function DefaultLabel(props?: StatusLabelProps): JSX.Element;
|
|
53
|
+
/** "soon": what is announced but not yet there. */
|
|
54
|
+
export declare function SoonLabel(props?: StatusLabelProps): JSX.Element;
|
|
55
|
+
export default StatusLabel;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Label } from '@primer/react';
|
|
3
|
+
const TONES = {
|
|
4
|
+
accent: {
|
|
5
|
+
bg: 'accent.subtle',
|
|
6
|
+
color: 'accent.fg',
|
|
7
|
+
borderColor: 'accent.muted',
|
|
8
|
+
},
|
|
9
|
+
attention: {
|
|
10
|
+
bg: 'attention.subtle',
|
|
11
|
+
color: 'attention.fg',
|
|
12
|
+
borderColor: 'attention.muted',
|
|
13
|
+
},
|
|
14
|
+
success: {
|
|
15
|
+
bg: 'success.subtle',
|
|
16
|
+
color: 'success.fg',
|
|
17
|
+
borderColor: 'success.muted',
|
|
18
|
+
},
|
|
19
|
+
neutral: {
|
|
20
|
+
bg: 'neutral.subtle',
|
|
21
|
+
color: 'fg.muted',
|
|
22
|
+
borderColor: 'border.default',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The tone of each named label. A role or a stage is a quality, not a
|
|
27
|
+
* verdict, so none is in attention's amber: the theme keeps success, attention
|
|
28
|
+
* and danger for verdicts (LOOP T-14, T-29) — *admin* is quiet.
|
|
29
|
+
*/
|
|
30
|
+
export const NAMED_LABEL_TONES = {
|
|
31
|
+
alpha: 'accent',
|
|
32
|
+
admin: 'neutral',
|
|
33
|
+
default: 'accent',
|
|
34
|
+
soon: 'neutral',
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The pill the named labels below are made of.
|
|
38
|
+
*
|
|
39
|
+
* Exported for a qualification that has no label of its own yet; prefer one of
|
|
40
|
+
* the named ones, so the same thing is said the same way everywhere.
|
|
41
|
+
*/
|
|
42
|
+
export function StatusLabel(props) {
|
|
43
|
+
const { children, size = 'small', sx, tone } = props;
|
|
44
|
+
return (_jsx(Label, { variant: "secondary", size: size, sx: {
|
|
45
|
+
textTransform: 'lowercase',
|
|
46
|
+
lineHeight: 1.2,
|
|
47
|
+
...TONES[tone],
|
|
48
|
+
...sx,
|
|
49
|
+
}, children: children }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* A feature that is being tried out.
|
|
53
|
+
*/
|
|
54
|
+
export function AlphaLabel(props = {}) {
|
|
55
|
+
const { children = 'alpha', ...rest } = props;
|
|
56
|
+
return (_jsx(StatusLabel, { tone: NAMED_LABEL_TONES.alpha, ...rest, children: children }));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Something reserved to the administrators of the platform.
|
|
60
|
+
*/
|
|
61
|
+
export function AdminLabel(props = {}) {
|
|
62
|
+
const { children = 'admin', ...rest } = props;
|
|
63
|
+
return (_jsx(StatusLabel, { tone: NAMED_LABEL_TONES.admin, ...rest, children: children }));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The one that is taken when none is chosen — the default space of an account.
|
|
67
|
+
*/
|
|
68
|
+
export function DefaultLabel(props = {}) {
|
|
69
|
+
const { children = 'default', ...rest } = props;
|
|
70
|
+
return (_jsx(StatusLabel, { tone: NAMED_LABEL_TONES.default, ...rest, children: children }));
|
|
71
|
+
}
|
|
72
|
+
/** "soon": what is announced but not yet there. */
|
|
73
|
+
export function SoonLabel(props = {}) {
|
|
74
|
+
const { children = 'soon', ...rest } = props;
|
|
75
|
+
return (_jsx(StatusLabel, { tone: NAMED_LABEL_TONES.soon, ...rest, children: children }));
|
|
76
|
+
}
|
|
77
|
+
export default StatusLabel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { StatusLabel } from './StatusLabels';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof StatusLabel;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Tone: Story;
|
|
14
|
+
export declare const Named: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../box/Box';
|
|
3
|
+
import { AdminLabel, AlphaLabel, DefaultLabel, SoonLabel, StatusLabel } from './StatusLabels';
|
|
4
|
+
import { VisibilityLabel } from './VisibilityLabel';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/StatusLabel',
|
|
7
|
+
component: StatusLabel,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: { layout: 'fullscreen' },
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Tone = {
|
|
13
|
+
args: { tone: 'success', children: 'live' },
|
|
14
|
+
render: args => (_jsx(Box, { p: 3, bg: "canvas.default", children: _jsx(StatusLabel, { ...args }) })),
|
|
15
|
+
};
|
|
16
|
+
export const Named = {
|
|
17
|
+
args: { tone: 'accent' },
|
|
18
|
+
render: () => (_jsxs(Box, { p: 3, bg: "canvas.default", display: "flex", gap: 2, alignItems: "center", children: [_jsx(AlphaLabel, {}), _jsx(AdminLabel, {}), _jsx(DefaultLabel, {}), _jsx(SoonLabel, {}), _jsx(VisibilityLabel, { isPublic: true }), _jsx(VisibilityLabel, { isPublic: false })] })),
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
|
+
* Distributed under the terms of the Modified BSD License.
|
|
5
|
+
*/
|
|
6
|
+
import { Label } from '@primer/react';
|
|
7
|
+
export const VisibilityLabel = (props) => {
|
|
8
|
+
const { isPublic } = props;
|
|
9
|
+
if (isPublic === undefined) {
|
|
10
|
+
return _jsx(_Fragment, {});
|
|
11
|
+
}
|
|
12
|
+
return isPublic ? (_jsx(Label, { variant: "success", sx: { marginLeft: 3 }, children: "Public" })) : (_jsx(Label, { variant: "danger", sx: { marginLeft: 3 }, children: "Private" }));
|
|
13
|
+
};
|
|
14
|
+
export default VisibilityLabel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ProgressRing } from './ProgressRing';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ProgressRing;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Ring: Story;
|
|
14
|
+
export declare const TimerAndSpinnerBar: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../box/Box';
|
|
3
|
+
import { ProgressRing } from './ProgressRing';
|
|
4
|
+
import { SpinnerBar } from './SpinnerBar';
|
|
5
|
+
import { Timer } from './Timer';
|
|
6
|
+
const meta = {
|
|
7
|
+
title: 'Components/ProgressRing',
|
|
8
|
+
component: ProgressRing,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: { layout: 'fullscreen' },
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
export const Ring = {
|
|
14
|
+
args: { progress: 60, title: '60% used', width: 48, height: 48 },
|
|
15
|
+
render: args => (_jsx(Box, { p: 3, bg: "canvas.default", children: _jsx(ProgressRing, { ...args }) })),
|
|
16
|
+
};
|
|
17
|
+
export const TimerAndSpinnerBar = {
|
|
18
|
+
args: { progress: 0 },
|
|
19
|
+
render: () => (_jsxs(Box, { p: 3, bg: "canvas.default", display: "grid", gap: 3, children: [_jsx(Timer, { duration: 30 }), _jsx(SpinnerBar, {})] })),
|
|
20
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress ring segment properties
|
|
3
|
+
*/
|
|
4
|
+
import type { JSX } from 'react';
|
|
5
|
+
export interface IProgressRingItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* Progress
|
|
8
|
+
*
|
|
9
|
+
* Value must be between 0 and 100.
|
|
10
|
+
*/
|
|
11
|
+
progress: number;
|
|
12
|
+
/**
|
|
13
|
+
* Segment color.
|
|
14
|
+
*
|
|
15
|
+
* Default to foreground-color-accent
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Progress ring properties
|
|
21
|
+
*/
|
|
22
|
+
export interface IProgressRingProps extends React.SVGAttributes<SVGElement>, IProgressRingItemProps {
|
|
23
|
+
/**
|
|
24
|
+
* Accessible short description
|
|
25
|
+
*/
|
|
26
|
+
title?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const PROGRESS_SEGMENTS: number;
|
|
29
|
+
/**
|
|
30
|
+
* Progress ring component
|
|
31
|
+
*
|
|
32
|
+
* Children {@link Item} must be order in decreasing progress order.
|
|
33
|
+
*/
|
|
34
|
+
export declare function ProgressRing(props: React.PropsWithChildren<IProgressRingProps>): JSX.Element;
|
|
35
|
+
export declare namespace ProgressRing {
|
|
36
|
+
var Item: (props: IProgressRingItemProps) => JSX.Element;
|
|
37
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export const PROGRESS_SEGMENTS = 44;
|
|
3
|
+
/**
|
|
4
|
+
* Progress ring segment
|
|
5
|
+
*/
|
|
6
|
+
function Item(props) {
|
|
7
|
+
return (_jsx("circle", { className: "determinate", style: {
|
|
8
|
+
stroke: props.color ?? 'var(--fgColor-accent)',
|
|
9
|
+
fill: 'none',
|
|
10
|
+
strokeWidth: '2px',
|
|
11
|
+
strokeLinecap: 'butt',
|
|
12
|
+
transformOrigin: '50% 50%',
|
|
13
|
+
transform: 'rotate(-90deg)',
|
|
14
|
+
transition: 'all 0.2s ease-in-out',
|
|
15
|
+
strokeDasharray: `${(PROGRESS_SEGMENTS * props.progress) / 100}px ${PROGRESS_SEGMENTS}px`,
|
|
16
|
+
}, cx: "8px", cy: "8px", r: "7px" }));
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Progress ring component
|
|
20
|
+
*
|
|
21
|
+
* Children {@link Item} must be order in decreasing progress order.
|
|
22
|
+
*/
|
|
23
|
+
export function ProgressRing(props) {
|
|
24
|
+
const { children, progress, color, title, ...others } = props;
|
|
25
|
+
return (_jsxs("svg", { className: "dla-progress-ring", viewBox: "0 0 16 16", role: "progressbar", "aria-valuenow": props.progress, "aria-valuemin": 0, "aria-valuemax": 100, ...others, children: [title && _jsx("title", { children: title }), _jsx("circle", { className: "background", cx: "8px", cy: "8px", r: "7px", style: {
|
|
26
|
+
stroke: 'var(--control-bgColor-rest)',
|
|
27
|
+
fill: 'none',
|
|
28
|
+
strokeWidth: '2px',
|
|
29
|
+
} }), children ?? _jsx(Item, { progress: progress, color: color })] }));
|
|
30
|
+
}
|
|
31
|
+
ProgressRing.Item = Item;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
|
+
* Distributed under the terms of the Modified BSD License.
|
|
5
|
+
*/
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { useInterval } from 'usehooks-ts';
|
|
8
|
+
import { ProgressBar } from '@primer/react';
|
|
9
|
+
export const SpinnerBar = () => {
|
|
10
|
+
const [progress, setProgress] = useState(0);
|
|
11
|
+
useInterval(() => {
|
|
12
|
+
if (progress >= 100) {
|
|
13
|
+
setProgress(0);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
setProgress(progress + 1);
|
|
17
|
+
}
|
|
18
|
+
}, 100);
|
|
19
|
+
return _jsx(ProgressBar, { progress: progress, "aria-label": "" });
|
|
20
|
+
};
|
|
21
|
+
export default SpinnerBar;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { Text } from '@primer/react';
|
|
4
|
+
/**
|
|
5
|
+
* Timer displaying the time as text.
|
|
6
|
+
*
|
|
7
|
+
* Duration should be provided in seconds.
|
|
8
|
+
*/
|
|
9
|
+
export function Timer(props) {
|
|
10
|
+
const [remaining, setRemaining] = useState(props.duration);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
setRemaining(props.duration);
|
|
13
|
+
}, [props.duration]);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const timeoutIndex = setTimeout(() => {
|
|
16
|
+
setRemaining(remaining - 1);
|
|
17
|
+
}, 1000);
|
|
18
|
+
return () => {
|
|
19
|
+
clearTimeout(timeoutIndex);
|
|
20
|
+
};
|
|
21
|
+
}, [remaining]);
|
|
22
|
+
return _jsxs(Text, { as: "span", children: [remaining.toFixed(0), "s"] });
|
|
23
|
+
}
|
|
24
|
+
export default Timer;
|
|
@@ -27,14 +27,14 @@ export type ScrollAreaProps = ComponentProps<typeof Box>;
|
|
|
27
27
|
* A Box that scrolls (vertically by default) with the tiny scrollbar, its
|
|
28
28
|
* scroll kept to itself. Any `sx` given is applied over it.
|
|
29
29
|
*/
|
|
30
|
-
export declare const ScrollArea: import("react").ForwardRefExoticComponent<Omit<import("
|
|
31
|
-
hover?: import("
|
|
32
|
-
focus?: import("
|
|
33
|
-
focusVisible?: import("
|
|
34
|
-
focusWithin?: import("
|
|
35
|
-
active?: import("
|
|
30
|
+
export declare const ScrollArea: import("react").ForwardRefExoticComponent<Omit<import("..").BoxStyleProps & {
|
|
31
|
+
hover?: import("..").BoxStyleProps | undefined;
|
|
32
|
+
focus?: import("..").BoxStyleProps | undefined;
|
|
33
|
+
focusVisible?: import("..").BoxStyleProps | undefined;
|
|
34
|
+
focusWithin?: import("..").BoxStyleProps | undefined;
|
|
35
|
+
active?: import("..").BoxStyleProps | undefined;
|
|
36
36
|
} & {
|
|
37
|
-
reducedMotion?: import("
|
|
37
|
+
reducedMotion?: import("..").BoxStyleProps;
|
|
38
38
|
} & Omit<import("react").HTMLAttributes<HTMLElement>, "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "animationDelay" | "appearance" | "aspectRatio" | "backdropFilter" | "backgroundColor" | "backgroundImage" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxSizing" | "clipPath" | "color" | "columnGap" | "cursor" | "display" | "fill" | "filter" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFamily" | "fontSize" | "fontStyle" | "fontVariantNumeric" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "listStylePosition" | "listStyleType" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "opacity" | "order" | "outlineColor" | "outlineOffset" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehaviorY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "resize" | "right" | "rowGap" | "scrollMarginTop" | "scrollbarGutter" | "scrollbarWidth" | "stroke" | "tableLayout" | "textAlign" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "top" | "touchAction" | "transform" | "transformOrigin" | "userSelect" | "verticalAlign" | "visibility" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordWrap" | "all" | "animation" | "background" | "backgroundPosition" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "flexFlow" | "font" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate" | "inset" | "listStyle" | "margin" | "outline" | "overflow" | "overscrollBehavior" | "padding" | "paddingBlock" | "paddingInline" | "placeContent" | "placeItems" | "placeSelf" | "textDecoration" | "textWrap" | "transition" | "clip" | "WebkitLineClamp" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "gridColumnGap" | "gridGap" | "gridRowGap" | "WebkitBoxOrient" | "borderX" | "borderY" | "as"> & {
|
|
39
39
|
[prop: string]: unknown;
|
|
40
40
|
as?: import("react").ElementType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SparklinesProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Sparklines Component
|
|
5
|
+
*
|
|
6
|
+
* A lightweight, composable sparkline chart component.
|
|
7
|
+
* Renders an SVG container and processes data into points for child components.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
|
|
12
|
+
* <SparklinesLine color="#0969da" />
|
|
13
|
+
* </Sparklines>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const Sparklines: React.FC<SparklinesProps>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
4
|
+
* Distributed under the terms of the Modified BSD License.
|
|
5
|
+
*/
|
|
6
|
+
import React, { useMemo } from 'react';
|
|
7
|
+
import { dataToPoints } from './dataProcessing';
|
|
8
|
+
/**
|
|
9
|
+
* Sparklines Component
|
|
10
|
+
*
|
|
11
|
+
* A lightweight, composable sparkline chart component.
|
|
12
|
+
* Renders an SVG container and processes data into points for child components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Sparklines data={[1, 2, 3, 4, 5]} width={100} height={30}>
|
|
17
|
+
* <SparklinesLine color="#0969da" />
|
|
18
|
+
* </Sparklines>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export const Sparklines = ({ data = [], width = 240, height = 60, svgWidth, svgHeight, preserveAspectRatio = 'none', margin = 2, style, min, max, limit, children, }) => {
|
|
22
|
+
// Convert data to points
|
|
23
|
+
const points = useMemo(() => {
|
|
24
|
+
if (data.length === 0) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
return dataToPoints({
|
|
28
|
+
data,
|
|
29
|
+
limit,
|
|
30
|
+
width,
|
|
31
|
+
height,
|
|
32
|
+
margin,
|
|
33
|
+
max,
|
|
34
|
+
min,
|
|
35
|
+
});
|
|
36
|
+
}, [data, limit, width, height, margin, max, min]);
|
|
37
|
+
if (data.length === 0) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
// Build SVG props
|
|
41
|
+
const svgProps = {
|
|
42
|
+
style,
|
|
43
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
44
|
+
preserveAspectRatio,
|
|
45
|
+
};
|
|
46
|
+
if (svgWidth && svgWidth > 0) {
|
|
47
|
+
svgProps.width = svgWidth;
|
|
48
|
+
}
|
|
49
|
+
if (svgHeight && svgHeight > 0) {
|
|
50
|
+
svgProps.height = svgHeight;
|
|
51
|
+
}
|
|
52
|
+
return (_jsx("svg", { ...svgProps, children: React.Children.map(children, child => {
|
|
53
|
+
// React 19 types element props as `unknown` rather than `any`. Each
|
|
54
|
+
// child is a series component that takes the shared scale below and may
|
|
55
|
+
// override any of it with props of its own, so keep the shape open.
|
|
56
|
+
if (React.isValidElement(child)) {
|
|
57
|
+
return React.cloneElement(child, {
|
|
58
|
+
data,
|
|
59
|
+
points,
|
|
60
|
+
width,
|
|
61
|
+
height,
|
|
62
|
+
margin,
|
|
63
|
+
...child.props,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return child;
|
|
67
|
+
}) }));
|
|
68
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./types").SparklinesProps>;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Line: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '../box/Box';
|
|
3
|
+
import { Sparklines } from './Sparklines';
|
|
4
|
+
import { SparklinesLine } from './SparklinesLine';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/Sparklines',
|
|
7
|
+
component: Sparklines,
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
parameters: { layout: 'fullscreen' },
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Line = {
|
|
13
|
+
args: { data: [5, 10, 5, 20, 8, 15, 12, 18, 9, 22], width: 200, height: 48 },
|
|
14
|
+
render: args => (_jsx(Box, { p: 3, bg: "canvas.default", children: _jsx(Sparklines, { ...args, children: _jsx(SparklinesLine, { color: "var(--fgColor-accent)" }) }) })),
|
|
15
|
+
};
|