@brightspot/ui 1.11.0 → 3.0.1-cms-ui-migration.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/dist/components/action-bar/ActionBar.d.ts +1 -1
- package/dist/components/action-bar/ActionBar.js +7 -7
- package/dist/components/action-bar/ActionBar.js.map +1 -1
- package/dist/components/action-bar/ActionItem.d.ts +5 -5
- package/dist/components/action-bar/ActionItem.d.ts.map +1 -1
- package/dist/components/action-bar/ActionItem.js +13 -13
- package/dist/components/action-bar/ActionItem.js.map +1 -1
- package/dist/components/avatar/AvatarGroup.d.ts +3 -0
- package/dist/components/avatar/AvatarGroup.d.ts.map +1 -1
- package/dist/components/avatar/AvatarGroup.js +3 -0
- package/dist/components/avatar/AvatarGroup.js.map +1 -1
- package/dist/components/badge/Badge.d.ts +3 -1
- package/dist/components/badge/Badge.d.ts.map +1 -1
- package/dist/components/badge/Badge.js +2 -0
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/button-group/ButtonGroup.d.ts +138 -0
- package/dist/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/dist/components/button-group/ButtonGroup.js +436 -0
- package/dist/components/button-group/ButtonGroup.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +107 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.js +224 -0
- package/dist/components/checkbox/Checkbox.js.map +1 -0
- package/dist/components/circular-progress/CircularProgress.d.ts +2 -2
- package/dist/components/circular-progress/CircularProgress.js +2 -2
- package/dist/components/copy-to-clipboard/CopyToClipboard.d.ts +7 -2
- package/dist/components/copy-to-clipboard/CopyToClipboard.d.ts.map +1 -1
- package/dist/components/copy-to-clipboard/CopyToClipboard.js +10 -5
- package/dist/components/copy-to-clipboard/CopyToClipboard.js.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +5 -5
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/Dropdown.js +11 -16
- package/dist/components/dropdown/Dropdown.js.map +1 -1
- package/dist/components/dropdown/DropdownItem.d.ts +14 -6
- package/dist/components/dropdown/DropdownItem.d.ts.map +1 -1
- package/dist/components/dropdown/DropdownItem.js +21 -15
- package/dist/components/dropdown/DropdownItem.js.map +1 -1
- package/dist/components/dropdown/DropdownMenu.d.ts +4 -4
- package/dist/components/dropdown/DropdownMenu.d.ts.map +1 -1
- package/dist/components/dropdown/DropdownMenu.js +6 -6
- package/dist/components/dropdown/DropdownMenu.js.map +1 -1
- package/dist/components/empty-state/EmptyState.css +4 -0
- package/dist/components/empty-state/EmptyState.d.ts +103 -0
- package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/components/empty-state/EmptyState.js +209 -0
- package/dist/components/empty-state/EmptyState.js.map +1 -0
- package/dist/components/icon/Icon.d.ts +23 -10
- package/dist/components/icon/Icon.d.ts.map +1 -1
- package/dist/components/icon/Icon.js +40 -9
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/icon-button/IconButton.d.ts +7 -21
- package/dist/components/icon-button/IconButton.d.ts.map +1 -1
- package/dist/components/icon-button/IconButton.js +12 -18
- package/dist/components/icon-button/IconButton.js.map +1 -1
- package/dist/components/linear-progress/LinearProgress.d.ts +2 -2
- package/dist/components/linear-progress/LinearProgress.js +2 -2
- package/dist/components/pagination/Pagination.js +10 -10
- package/dist/components/popover/Popover.d.ts +6 -0
- package/dist/components/popover/Popover.d.ts.map +1 -1
- package/dist/components/popover/Popover.js +6 -0
- package/dist/components/popover/Popover.js.map +1 -1
- package/dist/components/switch/Switch.d.ts +5 -1
- package/dist/components/switch/Switch.d.ts.map +1 -1
- package/dist/components/switch/Switch.js +10 -6
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/tabs/Tab.d.ts +4 -4
- package/dist/components/tabs/Tab.d.ts.map +1 -1
- package/dist/components/tabs/Tab.js +5 -5
- package/dist/components/tabs/Tab.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +3 -3
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +20 -20
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/upload/Upload.d.ts +157 -0
- package/dist/components/upload/Upload.d.ts.map +1 -0
- package/dist/components/upload/Upload.js +538 -0
- package/dist/components/upload/Upload.js.map +1 -0
- package/dist/components/upload/UploadItem.d.ts +73 -0
- package/dist/components/upload/UploadItem.d.ts.map +1 -0
- package/dist/components/upload/UploadItem.js +180 -0
- package/dist/components/upload/UploadItem.js.map +1 -0
- package/dist/components/widget/Widget.d.ts +1 -6
- package/dist/components/widget/Widget.d.ts.map +1 -1
- package/dist/components/widget/Widget.js +1 -6
- package/dist/components/widget/Widget.js.map +1 -1
- package/dist/custom-elements.json +7527 -2115
- package/dist/storybook/assets/{ActionBar.stories--nAeDC-G.js → ActionBar.stories-CXEvFUN5.js} +65 -65
- package/dist/storybook/assets/{ActionItem.stories-BHrGjk-P.js → ActionItem.stories-8-qQmVGz.js} +41 -41
- package/dist/storybook/assets/{Avatar.stories-Da-mRj6_.js → Avatar.stories-LOTCiTgV.js} +2 -2
- package/dist/storybook/assets/{AvatarGroup.stories-BQlaC_yl.js → AvatarGroup.stories-N17TVn4O.js} +5 -5
- package/dist/storybook/assets/{Badge.stories-DnVnOrnF.js → Badge.stories-2IRfk8Ri.js} +2 -2
- package/dist/storybook/assets/{Button-CFLAI1H9.js → Button-CQ2CjiFm.js} +1 -1
- package/dist/storybook/assets/{Button.stories-DxaBOjwv.js → Button.stories-DwyviUHj.js} +1 -1
- package/dist/storybook/assets/ButtonGroup.stories-D6nkkXxD.js +588 -0
- package/dist/storybook/assets/{Celebrate.stories-CuMm15Nr.js → Celebrate.stories-DtKNptXA.js} +7 -7
- package/dist/storybook/assets/Checkbox.stories--fetKLgV.js +141 -0
- package/dist/storybook/assets/{CircularProgress.stories-DRN8Mtvj.js → CircularProgress.stories-vK3MWdEg.js} +7 -7
- package/dist/storybook/assets/{ClipboardMixin.stories-DR7Ou2Av.js → ClipboardMixin.stories-BXOX2e9A.js} +31 -28
- package/dist/storybook/assets/{Color-6BZIO3FS-Die62Y0Z.js → Color-6BZIO3FS-DIO6ExZa.js} +1 -1
- package/dist/storybook/assets/{Colors.stories-bIq_ssbI.js → Colors.stories-Z-o0Dmyi.js} +1 -1
- package/dist/storybook/assets/{CombinedEffects.stories-CtKzOUZn.js → CombinedEffects.stories-BIvRmEL2.js} +33 -33
- package/dist/storybook/assets/{ComponentStatesMixin-DMLCk9fE.js → ComponentStatesMixin-BeLIKOsg.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin.stories-D8UI9o-d.js → ComponentStatesMixin.stories-u03jgLUU.js} +3 -3
- package/dist/storybook/assets/{CopyToClipboard.stories-ti6CpJNp.js → CopyToClipboard.stories-D23guAYu.js} +16 -16
- package/dist/storybook/assets/{Debounce.stories-DzZUSvbk.js → Debounce.stories-Bz3JaQJY.js} +9 -9
- package/dist/storybook/assets/{DocsRenderer-LL677BLK-CIRGv5IX.js → DocsRenderer-LL677BLK-CaEKjMeC.js} +3 -3
- package/dist/storybook/assets/{Dropdown.stories-Lt4cY0Re.js → Dropdown.stories-CNxtx8UX.js} +60 -60
- package/dist/storybook/assets/EmptyState.stories-Ck5T6q1T.js +318 -0
- package/dist/storybook/assets/{Events.stories-B1ddcgpT.js → Events.stories-Cx10pvVB.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-DI4w61cf.js → Heading.stories-mbkSoA5r.js} +1 -1
- package/dist/storybook/assets/{HueRipple.stories-DjhoxxEw.js → HueRipple.stories-B-DDviMh.js} +11 -11
- package/dist/storybook/assets/Icon.stories-Dodo1jjZ.js +441 -0
- package/dist/storybook/assets/{IconButton.stories-KjN28hfc.js → IconButton.stories-eAU6vNiX.js} +126 -146
- package/dist/storybook/assets/{LinearProgress.stories-DcIpdz6R.js → LinearProgress.stories-BqAUCgwy.js} +7 -7
- package/dist/storybook/assets/{Pagination.stories-BBkLEwoP.js → Pagination.stories-CVK8mlEU.js} +6 -6
- package/dist/storybook/assets/{Popover.stories-DLv48c2h.js → Popover.stories-CC2R-jiv.js} +33 -62
- package/dist/storybook/assets/ReadyMixin-CAkCCAOH.js +1 -0
- package/dist/storybook/assets/{RovingTabindexMixin.stories-BWaFx9mu.js → RovingTabindexMixin.stories-Dgm5izU_.js} +6 -6
- package/dist/storybook/assets/{Rtc.stories-Ve7Bwo_l.js → Rtc.stories-D9uVCq71.js} +3 -3
- package/dist/storybook/assets/{ScrollShadow.stories-C6XmrRLm.js → ScrollShadow.stories-D5GJ6Zes.js} +2 -2
- package/dist/storybook/assets/{Switch.stories-Cf8WM1LG.js → Switch.stories-D7HV0v6i.js} +21 -21
- package/dist/storybook/assets/{Tab.stories-CEtdEtOx.js → Tab.stories-CwHBngmO.js} +33 -33
- package/dist/storybook/assets/{Tabs.stories-CIAO1bPO.js → Tabs.stories-D87ILflp.js} +2 -2
- package/dist/storybook/assets/{Throttle.stories-BqxVIb-r.js → Throttle.stories-C13Vl7yt.js} +10 -10
- package/dist/storybook/assets/{Tooltip.stories-B6fw6875.js → Tooltip.stories-BRmAKppC.js} +2 -2
- package/dist/storybook/assets/Upload.stories-CvceXasD.js +447 -0
- package/dist/storybook/assets/UploadItem.stories-BF6c7tVM.js +167 -0
- package/dist/storybook/assets/{Welcome.stories-CfJtSM19.js → Welcome.stories-Ciht_H8A.js} +1 -1
- package/dist/storybook/assets/{Widget.stories-CiOho7lO.js → Widget.stories-30UYw1gn.js} +13 -13
- package/dist/storybook/assets/{WithTooltip-65CFNBJE-PGcopp73.js → WithTooltip-65CFNBJE-Q8AG_oZS.js} +1 -1
- package/dist/storybook/assets/{blocks-dP2DwISI.js → blocks-DIrsUt2U.js} +5 -5
- package/dist/storybook/assets/{formatter-EIJCOSYU-CZSAC3tg.js → formatter-EIJCOSYU-BcNb3EA1.js} +1 -1
- package/dist/storybook/assets/if-defined-C1_PRAyA.js +1 -0
- package/dist/storybook/assets/iframe-BgFj0b5u.css +1 -0
- package/dist/storybook/assets/{iframe-DloIUNZz.js → iframe-D5Uwm8Zd.js} +191 -191
- package/dist/storybook/assets/{index-DKF0ypu5.js → index-BOlx3-q7.js} +1 -1
- package/dist/storybook/assets/{onFind-C0l4Gew0.js → onFind-Cp2DO8R2.js} +1 -1
- package/dist/storybook/assets/{onFind.stories-DOTt9puO.js → onFind.stories-BDK06xaW.js} +53 -77
- package/dist/storybook/assets/{onRemove.stories-CQ9ZC5dm.js → onRemove.stories-TSKvqih3.js} +6 -10
- package/dist/storybook/assets/{onVisible.stories-Cbj5_Vz0.js → onVisible.stories-DiOPobn8.js} +3 -3
- package/dist/storybook/assets/{style-map-DLXysq3r.js → style-map-Cy6U2K_U.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-Bjjbl9ca.js → syntaxhighlighter-ED5Y7EFY-NNCQVsSv.js} +1 -1
- package/dist/storybook/box-illustration.svg +51 -0
- package/dist/storybook/cloud-illustration.svg +49 -0
- package/dist/storybook/docs-illustration.svg +92 -0
- package/dist/storybook/iframe.html +3 -3
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/tailwind-plugin-badge.js +1 -1
- package/dist/tailwind-plugin-badge.ts +1 -1
- package/dist/tailwind-plugin-button-group.d.ts +2 -0
- package/dist/tailwind-plugin-button-group.d.ts.map +1 -0
- package/dist/tailwind-plugin-button-group.js +215 -0
- package/dist/tailwind-plugin-button-group.js.map +1 -0
- package/dist/tailwind-plugin-button-group.ts +238 -0
- package/dist/tailwind-plugin-button.js +1 -1
- package/dist/tailwind-plugin-button.ts +1 -1
- package/dist/tailwind-plugin-checkbox.d.ts +2 -0
- package/dist/tailwind-plugin-checkbox.d.ts.map +1 -0
- package/dist/tailwind-plugin-checkbox.js +246 -0
- package/dist/tailwind-plugin-checkbox.js.map +1 -0
- package/dist/tailwind-plugin-checkbox.ts +281 -0
- package/dist/tailwind-plugin-empty-state.d.ts +2 -0
- package/dist/tailwind-plugin-empty-state.d.ts.map +1 -0
- package/dist/tailwind-plugin-empty-state.js +113 -0
- package/dist/tailwind-plugin-empty-state.js.map +1 -0
- package/dist/tailwind-plugin-empty-state.ts +124 -0
- package/dist/tailwind-plugin-icon.js +122 -18
- package/dist/tailwind-plugin-icon.js.map +1 -1
- package/dist/tailwind-plugin-icon.ts +131 -18
- package/dist/tailwind-plugin-loader.js +3 -3
- package/dist/tailwind-plugin-loader.ts +3 -3
- package/dist/tailwind-plugin-tabs.js +7 -0
- package/dist/tailwind-plugin-tabs.js.map +1 -1
- package/dist/tailwind-plugin-tabs.ts +7 -0
- package/dist/tailwind-plugin-upload.d.ts +2 -0
- package/dist/tailwind-plugin-upload.d.ts.map +1 -0
- package/dist/tailwind-plugin-upload.js +322 -0
- package/dist/tailwind-plugin-upload.js.map +1 -0
- package/dist/tailwind-plugin-upload.ts +362 -0
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tailwind.config.js +1 -0
- package/dist/tailwind.config.js.map +1 -1
- package/dist/tailwind.config.ts +1 -0
- package/dist/util/ClipboardMixin.d.ts +7 -2
- package/dist/util/ClipboardMixin.d.ts.map +1 -1
- package/dist/util/ClipboardMixin.js +15 -13
- package/dist/util/ClipboardMixin.js.map +1 -1
- package/dist/util/ComponentStatesMixin.d.ts +2 -1
- package/dist/util/ComponentStatesMixin.d.ts.map +1 -1
- package/dist/util/ComponentStatesMixin.js +4 -0
- package/dist/util/ComponentStatesMixin.js.map +1 -1
- package/dist/util/EventEmitterMixin.d.ts +42 -4
- package/dist/util/EventEmitterMixin.d.ts.map +1 -1
- package/dist/util/EventEmitterMixin.js +5 -2
- package/dist/util/EventEmitterMixin.js.map +1 -1
- package/dist/util/ProgressMixin.d.ts +9 -2
- package/dist/util/ProgressMixin.d.ts.map +1 -1
- package/dist/util/ProgressMixin.js +22 -18
- package/dist/util/ProgressMixin.js.map +1 -1
- package/dist/util/RovingTabindexMixin.d.ts +8 -0
- package/dist/util/RovingTabindexMixin.d.ts.map +1 -1
- package/dist/util/RovingTabindexMixin.js +8 -8
- package/dist/util/RovingTabindexMixin.js.map +1 -1
- package/dist/util/TetherLayout.d.ts.map +1 -1
- package/dist/util/TetherLayout.js +3 -0
- package/dist/util/TetherLayout.js.map +1 -1
- package/dist/util/TooltipMixin.d.ts.map +1 -1
- package/dist/util/TooltipMixin.js +5 -4
- package/dist/util/TooltipMixin.js.map +1 -1
- package/dist/util/upload.d.ts +53 -0
- package/dist/util/upload.d.ts.map +1 -0
- package/dist/util/upload.js +113 -0
- package/dist/util/upload.js.map +1 -0
- package/docs/adr/0001-retire-cms-ui-package-fold-under-src-legacy.md +78 -0
- package/docs/adr/0002-yarn-workspaces-preserve-cms-ui-deps.md +130 -0
- package/docs/adr/0003-bundle-equivalence-as-fold-acceptance-criterion.md +286 -0
- package/docs/components/ActionBar.md +6 -0
- package/docs/components/ActionItem.md +52 -27
- package/docs/components/Avatar.md +42 -12
- package/docs/components/AvatarGroup.md +4 -3
- package/docs/components/Badge.md +13 -1
- package/docs/components/ButtonGroup.md +91 -0
- package/docs/components/Checkbox.md +91 -0
- package/docs/components/CircularProgress.md +41 -12
- package/docs/components/CopyToClipboard.md +13 -11
- package/docs/components/Dropdown.md +44 -19
- package/docs/components/DropdownItem.md +39 -26
- package/docs/components/DropdownMenu.md +9 -9
- package/docs/components/EmptyState.md +75 -0
- package/docs/components/Icon.md +22 -14
- package/docs/components/IconButton.md +46 -21
- package/docs/components/LinearProgress.md +43 -4
- package/docs/components/Pagination.md +11 -10
- package/docs/components/Popover.md +16 -0
- package/docs/components/README.md +5 -0
- package/docs/components/Switch.md +21 -16
- package/docs/components/Tab.md +8 -2
- package/docs/components/Tabs.md +8 -0
- package/docs/components/Upload.md +112 -0
- package/docs/components/UploadItem.md +61 -0
- package/docs/components/Widget.md +12 -6
- package/package.json +9 -5
- package/src/legacy/tool-ui/src/main/webapp/dist/011a678e3efe41981754.png +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/1173.080a90c5923854fc48e6.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/1173.080a90c5923854fc48e6.js.LICENSE.txt +10 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/194137260531ee29a5f2.svg +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/1946.156c6821383df2638492.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/1950.3594aaa4f20df28f39d9.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/1e8408af1a34bdf61457.png +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2111.3956b5196a514b2c0131.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2111.a937b0cafa8cf7c039d2.css +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2129.6b044e5564dd3dbb2f94.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2314.420883b6638f35f40e70.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2456.5bcfb782c2ec27de32ed.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2537.e8f1359bedd328bf57f4.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2565.4ca31a6a46de85cd3b31.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/270.3011484ff80f3093083a.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2825.c1342ac2662d11fd4125.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/2947.f96d21c44c05980974ef.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3532.c358dfbb2cde0f802c7f.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3543.2d704cf9e170322468e7.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3543.2d704cf9e170322468e7.js.LICENSE.txt +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3611.61837ffa933f74502094.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3790.74b7037d430ed0a47d0c.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/3995.afbec58662cafb46ec2c.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4017.c3ed1ca3be18b5c080c8.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4093.152620c022c3013502b7.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4114.57fe159e416e716f8cbc.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4168.a224af7c5c5f6f2ddd7b.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4374.37147747a254da8f5f8a.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4450.16dd5684292fd0a7ea7f.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4478.93f64e6a6ccb35a6c6d4.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/44b38a404dec4643c46b.png +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4582.243dbaa3d8a8648f6f40.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4709.4f6b707e225e481a928e.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4790.10d75f7c7f8e54ce83a1.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4795.034ebc93a67b7a3d6536.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4850.6b944738520f69c98070.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/4a4ee777ddc0d4cedee4.png +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5001.a61ae5608398d5d98ab1.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5030.1e8b82e1444067d492b1.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5055.620ccb3717b4a6427f09.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5098.33613009827cfc80aafb.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5385.6656501b67424994820b.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5598.d84773ca53126661bdca.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5598.d84773ca53126661bdca.js.LICENSE.txt +11 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5617.c81ecb679371ca302f1f.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5718.449113ae2463a3bb8a83.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/5718.449113ae2463a3bb8a83.js.LICENSE.txt +8 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/6047.291dd2d4b3f79be2c64d.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/6086.7ca02b827506f29db590.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/6216.cf8adc1990ee1111f065.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/6497.b7d8dcbf0e7c8d8d538d.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/6565.0e5abc3bd344c53ae154.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7033.4cd6efbe12e7aaa35745.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7202.1e5b8f21215ea6eae20a.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7361.793163ca71dfac69d9eb.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/75.e45c9aec6e7409bfe21d.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7524.2990be869cf0a2988d17.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7554.bb243c1fb06a125f6353.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7718.a937b0cafa8cf7c039d2.css +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7718.f5996ddd99f2353c7785.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7741.0b2789c4e783af835763.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7769.d47f40cc83035fc2392a.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7863.2a1d1fd229778a47e10b.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/7923.8a92f55de8387f7a8a35.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/8684.7171c731d38a9873d6df.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/8752.3d02a0f42ec39786fdf0.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/8897.bfeed19f2a4acbb6d67c.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/8934.e90ceca8169fc25e4e1b.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9277.88b2d89b3ba1c24e7f93.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9277.88b2d89b3ba1c24e7f93.js.LICENSE.txt +9 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9360.bb0352313d610cae11de.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9360.bb0352313d610cae11de.js.LICENSE.txt +33 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9561.64eab18c8c1bbc4ad8ec.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/9576.174d6a99544d17e7416d.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/983.eedba1cd484aa5bee0c4.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/Appetizeio.185641211f7c0e42a455.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/CISpectrum.74db7dc80b3a6797a167.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/Chart.223ea4ee9e3e32b67a26.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/ChartCompat.4dd096dd030942227ec6.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/CodeMirror.5ddffe054374f883d6f8.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/ImageEditor.14e3b3035666436f53a5.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/LocationMap.72a510c0f5ff236f596e.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.7561297911cca56da5dd.js +500 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.7561297911cca56da5dd.js.LICENSE.txt +8 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/RegionMap.63f3b2303ab369a05073.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/TimedContent.4bb4dc83ffbe4019dd7b.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/VideoEditor.11c89dda5cf125738a33.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/VideoEditor.11c89dda5cf125738a33.js.LICENSE.txt +23 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/c6e9c007f41bd4d26c20.png +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/iframeResizer.contentWindow.map +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/iframeResizer.contentWindow.min.js +2 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/iframeResizer.contentWindow.min.js.LICENSE.txt +7 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/lucide.woff2 +0 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/preview.d46d98e5ca9dba0a0f5a.js +1 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v4.63bc3566a89786faeb89.js +92 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v4.63bc3566a89786faeb89.js.LICENSE.txt +71 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v4.a6f53058dbb04a69aa5c.css +3 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v5.5e3fdf0f0b20b4e3c170.css +5 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v5.702238fcabd666eba152.js +92 -0
- package/src/legacy/tool-ui/src/main/webapp/dist/v5.702238fcabd666eba152.js.LICENSE.txt +78 -0
- package/dist/storybook/assets/Icon.stories-CpziAhae.js +0 -264
- package/dist/storybook/assets/ReadyMixin-Cw2Dfbu2.js +0 -1
- package/dist/storybook/assets/if-defined-B1RdczOE.js +0 -1
- package/dist/storybook/assets/iframe-bJgLXZKK.css +0 -1
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import{g as u,x as e}from"./iframe-D5Uwm8Zd.js";import{o as m}from"./if-defined-C1_PRAyA.js";import{o as h}from"./style-map-Cy6U2K_U.js";import"./preload-helper-PPVm8Dsz.js";const{events:b,args:g,argTypes:s}=u("btu-empty-state"),y=["sm","md","lg"],v=[1,2,3,4,5,6],k={title:"Components/Empty State",component:"btu-empty-state",tags:["autodocs"],parameters:{docs:{subtitle:"A standardized component for communicating the absence of content.",description:{component:`
|
|
2
|
+
<h3>When to use:</h3>
|
|
3
|
+
<ul>
|
|
4
|
+
<li>To communicate the absence of content in tables, lists, or search results</li>
|
|
5
|
+
<li>For error states, empty dashboards, or first-run experiences</li>
|
|
6
|
+
<li>When you need a composable layout with optional graphic, heading, description, and actions</li>
|
|
7
|
+
</ul>
|
|
8
|
+
|
|
9
|
+
<h3>When not to use:</h3>
|
|
10
|
+
<ul>
|
|
11
|
+
<li>For loading states (use a loader or skeleton instead)</li>
|
|
12
|
+
<li>For inline validation messages (use form validation)</li>
|
|
13
|
+
</ul>
|
|
14
|
+
|
|
15
|
+
<h3>Composition:</h3>
|
|
16
|
+
<ul>
|
|
17
|
+
<li><strong>Graphic</strong> — <code>slot="graphic"</code>: accepts <code>btu-icon</code>, <code>img</code>, <code>picture</code>, or <code>svg</code></li>
|
|
18
|
+
<li><strong>Heading</strong> — via the <code>heading</code> attribute</li>
|
|
19
|
+
<li><strong>Description</strong> — via the <code>description</code> attribute</li>
|
|
20
|
+
<li><strong>Actions</strong> — <code>slot="actions"</code>: accepts buttons or links</li>
|
|
21
|
+
</ul>
|
|
22
|
+
`}},actions:{handles:b},controls:{expanded:!0}},args:{...g,heading:"No results found",description:"Try adjusting your search or filter criteria to find what you are looking for.",size:"md"},argTypes:{...s,"--empty-state-max-width":{table:{disable:!0}},"--empty-state-color-heading":{table:{disable:!0}},"--empty-state-color-description":{table:{disable:!0}},heading:{...s.heading,control:{type:"text"},description:"Heading text displayed in the empty state."},description:{...s.description,control:{type:"text"},description:"Description text displayed below the heading."},size:{...s.size,control:{type:"select"},options:y,description:"Size variant affecting heading size, gaps, and description text."},"heading-level":{...s["heading-level"],control:{type:"select"},options:v,description:"Heading level (1-6). When set, overrides the size-based default (sm→5, md→4, lg→3) and drives both the semantic h1-h6 tag and the visual heading size."},maxWidth:{name:"--empty-state-max-width",control:{type:"text"},description:"Maximum width of the content block (default: min(75cqw, 360px))",table:{category:"css properties"}},colorHeading:{name:"--empty-state-color-heading",control:{type:"color"},description:"Heading text color (default: gray-900)",table:{category:"css properties"}},colorDescription:{name:"--empty-state-color-description",control:{type:"color"},description:"Description text color (default: gray-500)",table:{category:"css properties"}}},render:t=>{const o={};return t.maxWidth&&(o["--empty-state-max-width"]=t.maxWidth),t.colorHeading&&(o["--empty-state-color-heading"]=t.colorHeading),t.colorDescription&&(o["--empty-state-color-description"]=t.colorDescription),e`
|
|
23
|
+
<btu-empty-state
|
|
24
|
+
heading="${t.heading}"
|
|
25
|
+
description="${t.description||""}"
|
|
26
|
+
size="${t.size}"
|
|
27
|
+
heading-level="${m(t["heading-level"])}"
|
|
28
|
+
style=${h(o)}
|
|
29
|
+
>
|
|
30
|
+
<btu-icon
|
|
31
|
+
slot="graphic"
|
|
32
|
+
symbol="search"
|
|
33
|
+
emphasize="pulse"
|
|
34
|
+
style="color: oklch(var(--btu-theme-primary-600))"
|
|
35
|
+
></btu-icon>
|
|
36
|
+
<button slot="actions" class="btu-button-gray btu-button">Clear search</button>
|
|
37
|
+
<button slot="actions" class="btu-button-primary btu-button">
|
|
38
|
+
<btu-icon symbol="plus"></btu-icon>Create new
|
|
39
|
+
</button>
|
|
40
|
+
</btu-empty-state>
|
|
41
|
+
`}},i={args:{"heading-level":void 0}},a={args:{size:"sm",heading:"No items",description:"There are no items to display."},render:t=>e`
|
|
42
|
+
<btu-empty-state heading="${t.heading}" description="${t.description||""}" size="${t.size}">
|
|
43
|
+
<btu-icon
|
|
44
|
+
slot="graphic"
|
|
45
|
+
symbol="inbox"
|
|
46
|
+
emphasize="pulse"
|
|
47
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
48
|
+
></btu-icon>
|
|
49
|
+
<btu-icon-button tooltip="click to reload" symbol="refresh-ccw" slot="actions" size="sm"></btu-icon-button>
|
|
50
|
+
</btu-empty-state>
|
|
51
|
+
`,parameters:{docs:{description:{story:"Small variant with compact spacing. Best for panels, sidebars, and constrained spaces where a full-size empty state would be excessive."}}}},n={args:{size:"lg",heading:"Welcome to your dashboard",description:"Get started by creating your first piece of content. You can always come back here to manage it."},render:t=>e`
|
|
52
|
+
<btu-empty-state heading="${t.heading}" description="${t.description||""}" size="${t.size}">
|
|
53
|
+
<btu-icon
|
|
54
|
+
slot="graphic"
|
|
55
|
+
symbol="layout-dashboard"
|
|
56
|
+
emphasize="pulse"
|
|
57
|
+
style="color: oklch(var(--btu-theme-primary-600))"
|
|
58
|
+
></btu-icon>
|
|
59
|
+
<button slot="actions" class="btu-button-primary btu-button">Get started</button>
|
|
60
|
+
</btu-empty-state>
|
|
61
|
+
`,parameters:{docs:{description:{story:"Large variant for full-page empty states. Ideal for dashboards, landing pages, and first-run experiences where the empty state is the primary content."}}}},r={render:()=>e`
|
|
62
|
+
<btu-empty-state heading="No images uploaded" description="Upload images to see them displayed here." size="md">
|
|
63
|
+
<img slot="graphic" src="cloud-illustration.svg" alt="Cloud graphic" />
|
|
64
|
+
<button slot="actions" class="btu-button-primary btu-button">Upload image</button>
|
|
65
|
+
</btu-empty-state>
|
|
66
|
+
`,parameters:{docs:{description:{story:"Uses a custom SVG in the graphic slot instead of a `btu-icon`. The graphic container automatically sizes `img`, `picture`, and `svg` elements larger than icons."}}}},c={render:()=>{const t=e`
|
|
67
|
+
<picture slot="graphic">
|
|
68
|
+
<img
|
|
69
|
+
srcset="
|
|
70
|
+
box-illustration.svg 120w,
|
|
71
|
+
cloud-illustration.svg 140w,
|
|
72
|
+
docs-illustration.svg 170w,
|
|
73
|
+
box-illustration.svg 240w,
|
|
74
|
+
cloud-illustration.svg 280w,
|
|
75
|
+
docs-illustration.svg 340w
|
|
76
|
+
"
|
|
77
|
+
sizes="auto"
|
|
78
|
+
src="box-illustration.svg"
|
|
79
|
+
alt="Responsive graphic"
|
|
80
|
+
loading="lazy"
|
|
81
|
+
/>
|
|
82
|
+
</picture>
|
|
83
|
+
`;return e`
|
|
84
|
+
<div style="display: flex; align-items: flex-start; gap: 1rem;">
|
|
85
|
+
<div style="width: 240px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
86
|
+
<btu-empty-state heading="No results" description="Try a different query." size="sm">
|
|
87
|
+
${t}
|
|
88
|
+
<button slot="actions" class="btu-button-gray btu-button-sm btu-button">Clear</button>
|
|
89
|
+
</btu-empty-state>
|
|
90
|
+
</div>
|
|
91
|
+
<div style="width: 360px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
92
|
+
<btu-empty-state
|
|
93
|
+
heading="No images uploaded"
|
|
94
|
+
description="Upload images to see them displayed here."
|
|
95
|
+
size="md"
|
|
96
|
+
>
|
|
97
|
+
${t}
|
|
98
|
+
<button slot="actions" class="btu-button-primary btu-button">Upload image</button>
|
|
99
|
+
</btu-empty-state>
|
|
100
|
+
</div>
|
|
101
|
+
<div style="width: 520px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
102
|
+
<btu-empty-state
|
|
103
|
+
heading="Welcome to Brightspot"
|
|
104
|
+
description="Get started by creating your first piece of content."
|
|
105
|
+
size="lg"
|
|
106
|
+
>
|
|
107
|
+
${t}
|
|
108
|
+
<button slot="actions" class="btu-button-primary btu-button">Get started</button>
|
|
109
|
+
</btu-empty-state>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
`},parameters:{docs:{description:{story:'Three empty-states rendered side-by-side in progressively wider containers (240 / 360 / 520px) at sizes `sm` / `md` / `lg`. Every instance uses the **same** `<picture>` markup — one `srcset` listing three SVGs (`box-illustration`, `cloud-illustration`, `docs-illustration`), each at `1x` and `2x` width descriptors, plus `sizes="auto"`. Because the graphic container sizes the `<img>` from the empty-state `size` prop (118 / 128 / 160 px), the browser selects a different SVG for each instance at both `devicePixelRatio: 1` and `2` — so all three SVGs are visible in the story regardless of display density. This demonstrates how a single `<picture>` + `srcset` can serve different sources per-instance without swapping markup.'}}}},l={render:()=>e`
|
|
113
|
+
<btu-empty-state
|
|
114
|
+
heading="No data available"
|
|
115
|
+
description="Check back later for updates."
|
|
116
|
+
size="sm"
|
|
117
|
+
></btu-empty-state>
|
|
118
|
+
`,parameters:{docs:{description:{story:"Text-only empty state with no graphic or actions. The graphic and actions containers collapse automatically via `:empty { display: none }`. Useful in tight spaces."}}}},d={render:()=>e`
|
|
119
|
+
<btu-empty-state heading="No notifications" description="You are all caught up." size="md">
|
|
120
|
+
<btu-icon
|
|
121
|
+
slot="graphic"
|
|
122
|
+
symbol="bell-off"
|
|
123
|
+
emphasize="pulse"
|
|
124
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
125
|
+
></btu-icon>
|
|
126
|
+
</btu-empty-state>
|
|
127
|
+
`,parameters:{docs:{description:{story:"Empty state without action buttons. The actions container collapses when empty. Useful for informational states where no user action is needed."}}}},p={render:()=>e`
|
|
128
|
+
<btu-empty-state heading="Empty" size="sm">
|
|
129
|
+
<btu-icon
|
|
130
|
+
slot="graphic"
|
|
131
|
+
symbol="inbox"
|
|
132
|
+
emphasize="pulse"
|
|
133
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
134
|
+
></btu-icon>
|
|
135
|
+
<button slot="actions" class="btu-button-success btu-button-sm btu-button">Add item</button>
|
|
136
|
+
</btu-empty-state>
|
|
137
|
+
`,parameters:{docs:{description:{story:"Empty state with heading and actions but no description. The description is omitted by not setting the `description` attribute."}}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
138
|
+
args: {
|
|
139
|
+
'heading-level': undefined
|
|
140
|
+
}
|
|
141
|
+
}`,...i.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
142
|
+
args: {
|
|
143
|
+
size: 'sm',
|
|
144
|
+
heading: 'No items',
|
|
145
|
+
description: 'There are no items to display.'
|
|
146
|
+
},
|
|
147
|
+
render: args => html\`
|
|
148
|
+
<btu-empty-state heading="\${args.heading}" description="\${args.description || ''}" size="\${args.size}">
|
|
149
|
+
<btu-icon
|
|
150
|
+
slot="graphic"
|
|
151
|
+
symbol="inbox"
|
|
152
|
+
emphasize="pulse"
|
|
153
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
154
|
+
></btu-icon>
|
|
155
|
+
<btu-icon-button tooltip="click to reload" symbol="refresh-ccw" slot="actions" size="sm"></btu-icon-button>
|
|
156
|
+
</btu-empty-state>
|
|
157
|
+
\`,
|
|
158
|
+
parameters: {
|
|
159
|
+
docs: {
|
|
160
|
+
description: {
|
|
161
|
+
story: 'Small variant with compact spacing. Best for panels, sidebars, and constrained spaces where a full-size empty state would be excessive.'
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}`,...a.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
166
|
+
args: {
|
|
167
|
+
size: 'lg',
|
|
168
|
+
heading: 'Welcome to your dashboard',
|
|
169
|
+
description: 'Get started by creating your first piece of content. You can always come back here to manage it.'
|
|
170
|
+
},
|
|
171
|
+
render: args => html\`
|
|
172
|
+
<btu-empty-state heading="\${args.heading}" description="\${args.description || ''}" size="\${args.size}">
|
|
173
|
+
<btu-icon
|
|
174
|
+
slot="graphic"
|
|
175
|
+
symbol="layout-dashboard"
|
|
176
|
+
emphasize="pulse"
|
|
177
|
+
style="color: oklch(var(--btu-theme-primary-600))"
|
|
178
|
+
></btu-icon>
|
|
179
|
+
<button slot="actions" class="btu-button-primary btu-button">Get started</button>
|
|
180
|
+
</btu-empty-state>
|
|
181
|
+
\`,
|
|
182
|
+
parameters: {
|
|
183
|
+
docs: {
|
|
184
|
+
description: {
|
|
185
|
+
story: 'Large variant for full-page empty states. Ideal for dashboards, landing pages, and first-run experiences where the empty state is the primary content.'
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}`,...n.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
190
|
+
render: () => html\`
|
|
191
|
+
<btu-empty-state heading="No images uploaded" description="Upload images to see them displayed here." size="md">
|
|
192
|
+
<img slot="graphic" src="cloud-illustration.svg" alt="Cloud graphic" />
|
|
193
|
+
<button slot="actions" class="btu-button-primary btu-button">Upload image</button>
|
|
194
|
+
</btu-empty-state>
|
|
195
|
+
\`,
|
|
196
|
+
parameters: {
|
|
197
|
+
docs: {
|
|
198
|
+
description: {
|
|
199
|
+
story: 'Uses a custom SVG in the graphic slot instead of a \`btu-icon\`. The graphic container automatically sizes \`img\`, \`picture\`, and \`svg\` elements larger than icons.'
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}`,...r.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
204
|
+
render: () => {
|
|
205
|
+
// Identical <picture> markup in each instance: one srcset listing 3 SVGs, each
|
|
206
|
+
// at two width descriptors (1x and 2x) so the selection holds at both DPR=1 and
|
|
207
|
+
// DPR=2. \`sizes="auto"\` makes the browser pick based on the <img>'s actual
|
|
208
|
+
// rendered width — driven by the empty-state \`size\` prop
|
|
209
|
+
// (sm=118 / md=128 / lg=160 px × devicePixelRatio).
|
|
210
|
+
const responsiveGraphic = html\`
|
|
211
|
+
<picture slot="graphic">
|
|
212
|
+
<img
|
|
213
|
+
srcset="
|
|
214
|
+
box-illustration.svg 120w,
|
|
215
|
+
cloud-illustration.svg 140w,
|
|
216
|
+
docs-illustration.svg 170w,
|
|
217
|
+
box-illustration.svg 240w,
|
|
218
|
+
cloud-illustration.svg 280w,
|
|
219
|
+
docs-illustration.svg 340w
|
|
220
|
+
"
|
|
221
|
+
sizes="auto"
|
|
222
|
+
src="box-illustration.svg"
|
|
223
|
+
alt="Responsive graphic"
|
|
224
|
+
loading="lazy"
|
|
225
|
+
/>
|
|
226
|
+
</picture>
|
|
227
|
+
\`;
|
|
228
|
+
return html\`
|
|
229
|
+
<div style="display: flex; align-items: flex-start; gap: 1rem;">
|
|
230
|
+
<div style="width: 240px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
231
|
+
<btu-empty-state heading="No results" description="Try a different query." size="sm">
|
|
232
|
+
\${responsiveGraphic}
|
|
233
|
+
<button slot="actions" class="btu-button-gray btu-button-sm btu-button">Clear</button>
|
|
234
|
+
</btu-empty-state>
|
|
235
|
+
</div>
|
|
236
|
+
<div style="width: 360px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
237
|
+
<btu-empty-state
|
|
238
|
+
heading="No images uploaded"
|
|
239
|
+
description="Upload images to see them displayed here."
|
|
240
|
+
size="md"
|
|
241
|
+
>
|
|
242
|
+
\${responsiveGraphic}
|
|
243
|
+
<button slot="actions" class="btu-button-primary btu-button">Upload image</button>
|
|
244
|
+
</btu-empty-state>
|
|
245
|
+
</div>
|
|
246
|
+
<div style="width: 520px; border: 1px dashed oklch(var(--btu-theme-gray-300));">
|
|
247
|
+
<btu-empty-state
|
|
248
|
+
heading="Welcome to Brightspot"
|
|
249
|
+
description="Get started by creating your first piece of content."
|
|
250
|
+
size="lg"
|
|
251
|
+
>
|
|
252
|
+
\${responsiveGraphic}
|
|
253
|
+
<button slot="actions" class="btu-button-primary btu-button">Get started</button>
|
|
254
|
+
</btu-empty-state>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
\`;
|
|
258
|
+
},
|
|
259
|
+
parameters: {
|
|
260
|
+
docs: {
|
|
261
|
+
description: {
|
|
262
|
+
story: 'Three empty-states rendered side-by-side in progressively wider containers (240 / 360 / 520px) at sizes \`sm\` / \`md\` / \`lg\`. Every instance uses the **same** \`<picture>\` markup — one \`srcset\` listing three SVGs (\`box-illustration\`, \`cloud-illustration\`, \`docs-illustration\`), each at \`1x\` and \`2x\` width descriptors, plus \`sizes="auto"\`. Because the graphic container sizes the \`<img>\` from the empty-state \`size\` prop (118 / 128 / 160 px), the browser selects a different SVG for each instance at both \`devicePixelRatio: 1\` and \`2\` — so all three SVGs are visible in the story regardless of display density. This demonstrates how a single \`<picture>\` + \`srcset\` can serve different sources per-instance without swapping markup.'
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}`,...c.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
267
|
+
render: () => html\`
|
|
268
|
+
<btu-empty-state
|
|
269
|
+
heading="No data available"
|
|
270
|
+
description="Check back later for updates."
|
|
271
|
+
size="sm"
|
|
272
|
+
></btu-empty-state>
|
|
273
|
+
\`,
|
|
274
|
+
parameters: {
|
|
275
|
+
docs: {
|
|
276
|
+
description: {
|
|
277
|
+
story: 'Text-only empty state with no graphic or actions. The graphic and actions containers collapse automatically via \`:empty { display: none }\`. Useful in tight spaces.'
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}`,...l.parameters?.docs?.source}}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
282
|
+
render: () => html\`
|
|
283
|
+
<btu-empty-state heading="No notifications" description="You are all caught up." size="md">
|
|
284
|
+
<btu-icon
|
|
285
|
+
slot="graphic"
|
|
286
|
+
symbol="bell-off"
|
|
287
|
+
emphasize="pulse"
|
|
288
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
289
|
+
></btu-icon>
|
|
290
|
+
</btu-empty-state>
|
|
291
|
+
\`,
|
|
292
|
+
parameters: {
|
|
293
|
+
docs: {
|
|
294
|
+
description: {
|
|
295
|
+
story: 'Empty state without action buttons. The actions container collapses when empty. Useful for informational states where no user action is needed.'
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}`,...d.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
300
|
+
render: () => html\`
|
|
301
|
+
<btu-empty-state heading="Empty" size="sm">
|
|
302
|
+
<btu-icon
|
|
303
|
+
slot="graphic"
|
|
304
|
+
symbol="inbox"
|
|
305
|
+
emphasize="pulse"
|
|
306
|
+
style="color: oklch(var(--btu-theme-gray-500))"
|
|
307
|
+
></btu-icon>
|
|
308
|
+
<button slot="actions" class="btu-button-success btu-button-sm btu-button">Add item</button>
|
|
309
|
+
</btu-empty-state>
|
|
310
|
+
\`,
|
|
311
|
+
parameters: {
|
|
312
|
+
docs: {
|
|
313
|
+
description: {
|
|
314
|
+
story: 'Empty state with heading and actions but no description. The description is omitted by not setting the \`description\` attribute.'
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}`,...p.parameters?.docs?.source}}};const S=["Default","Small","Large","WithImage","WithPicture","TextOnly","NoActions","NoDescription"];export{i as Default,n as Large,d as NoActions,p as NoDescription,a as Small,l as TextOnly,r as WithImage,c as WithPicture,S as __namedExportsOrder,k as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as d}from"./iframe-
|
|
1
|
+
import{x as d}from"./iframe-D5Uwm8Zd.js";import"./preload-helper-PPVm8Dsz.js";var n=Object.freeze,r=Object.defineProperty,s=(t,i)=>n(r(t,"raw",{value:n(t.slice())})),o;const l={title:"Mixins/Events",tags:["autodocs"],parameters:{docs:{subtitle:"Events inherited from EventEmitterMixin",description:{component:`
|
|
2
2
|
<h3>EventEmitterMixin Events</h3>
|
|
3
3
|
|
|
4
4
|
<p>All Brightspot UI components that extend EventEmitterMixin emit the following lifecycle events in addition to those inherited from LitElement. These events use CustomEvent and bubble through the DOM with <code>composed: true</code>, meaning they cross shadow DOM boundaries.</p>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{x as s}from"./iframe-
|
|
1
|
+
import{x as s}from"./iframe-D5Uwm8Zd.js";import"./preload-helper-PPVm8Dsz.js";const r=({size:t})=>s` <div class=${[`btu-heading-${t}`].join(" ")}>Heading</div> `,o={title:"CSS Plugins/Heading",component:"btu-heading",tags:["autodocs"],parameters:{docs:{subtitle:"This Tailwind CSS plugin provides the `.btu-heading` utility class for styling headings. It supports five different sizes, from 1 (largest) to 5 (smallest). Apply the class to `<h1>` through `<h5>` elements to style them accordingly."},controls:{expanded:!0}},render:t=>r(t),argTypes:{size:{control:{type:"range",min:1,max:5,step:1},description:"Heading size from 1 to 5, where 1 is the largest and 5 is the smallest."}},args:{size:1}},e={args:{}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
args: {}
|
|
3
3
|
}`,...e.parameters?.docs?.source}}};const n=["Default"];export{e as Default,n as __namedExportsOrder,o as default};
|
package/dist/storybook/assets/{HueRipple.stories-DjhoxxEw.js → HueRipple.stories-B-DDviMh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as i}from"./iframe-
|
|
1
|
+
import{x as i}from"./iframe-D5Uwm8Zd.js";import{b as l}from"./ripple-DQbyyRUw.js";import{B as e}from"./Button-CQ2CjiFm.js";import"./preload-helper-PPVm8Dsz.js";import"./position-CFNQy3J6.js";const m={title:"Effects/Hue Ripple",tags:["autodocs"],parameters:{docs:{subtitle:"Click anywhere to send a hue-shifting ripple across the viewport",description:{component:`
|
|
2
2
|
Uses the **View Transition API** to create an expanding ring that reveals OKLCH-shifted colors as it sweeps past each element, then they return to normal.
|
|
3
3
|
|
|
4
4
|
### Usage
|
|
@@ -28,7 +28,7 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
28
28
|
<p class="text-sm text-gray-500">
|
|
29
29
|
Click anywhere. The expanding ring shifts underlying colors and returns to normal after the ring passes.
|
|
30
30
|
</p>
|
|
31
|
-
<p class="
|
|
31
|
+
<p class="rounded-md border border-warning-200 bg-warning-50 px-3 py-2 text-xs text-warning-700">
|
|
32
32
|
⚠ The UI is non-interactive during the view transition.
|
|
33
33
|
</p>
|
|
34
34
|
</div>
|
|
@@ -84,7 +84,7 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
84
84
|
<h3 class="text-sm font-medium text-gray-700">Color Swatches</h3>
|
|
85
85
|
<div class="grid grid-cols-3 gap-3 sm:grid-cols-6">
|
|
86
86
|
<div
|
|
87
|
-
class="
|
|
87
|
+
class="flex h-20 items-center justify-center rounded-lg bg-primary-500 text-sm font-medium text-white"
|
|
88
88
|
>
|
|
89
89
|
Primary
|
|
90
90
|
</div>
|
|
@@ -96,16 +96,16 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
96
96
|
>
|
|
97
97
|
Purple
|
|
98
98
|
</div>
|
|
99
|
-
<div class="
|
|
99
|
+
<div class="flex h-20 items-center justify-center rounded-lg bg-error-500 text-sm font-medium text-white">
|
|
100
100
|
Error
|
|
101
101
|
</div>
|
|
102
102
|
<div
|
|
103
|
-
class="
|
|
103
|
+
class="flex h-20 items-center justify-center rounded-lg bg-success-500 text-sm font-medium text-white"
|
|
104
104
|
>
|
|
105
105
|
Success
|
|
106
106
|
</div>
|
|
107
107
|
<div
|
|
108
|
-
class="
|
|
108
|
+
class="flex h-20 items-center justify-center rounded-lg bg-warning-500 text-sm font-medium text-white"
|
|
109
109
|
>
|
|
110
110
|
Warning
|
|
111
111
|
</div>
|
|
@@ -136,7 +136,7 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
136
136
|
<p class="text-sm text-gray-500">
|
|
137
137
|
Click anywhere. The expanding ring shifts underlying colors and returns to normal after the ring passes.
|
|
138
138
|
</p>
|
|
139
|
-
<p class="
|
|
139
|
+
<p class="rounded-md border border-warning-200 bg-warning-50 px-3 py-2 text-xs text-warning-700">
|
|
140
140
|
⚠ The UI is non-interactive during the view transition.
|
|
141
141
|
</p>
|
|
142
142
|
</div>
|
|
@@ -269,7 +269,7 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
269
269
|
<h3 class="text-sm font-medium text-gray-700">Color Swatches</h3>
|
|
270
270
|
<div class="grid grid-cols-3 gap-3 sm:grid-cols-6">
|
|
271
271
|
<div
|
|
272
|
-
class="
|
|
272
|
+
class="flex h-20 items-center justify-center rounded-lg bg-primary-500 text-sm font-medium text-white"
|
|
273
273
|
>
|
|
274
274
|
Primary
|
|
275
275
|
</div>
|
|
@@ -281,16 +281,16 @@ btuRipple.setDefaults({ duration: 800, contrast: 2 })
|
|
|
281
281
|
>
|
|
282
282
|
Purple
|
|
283
283
|
</div>
|
|
284
|
-
<div class="
|
|
284
|
+
<div class="flex h-20 items-center justify-center rounded-lg bg-error-500 text-sm font-medium text-white">
|
|
285
285
|
Error
|
|
286
286
|
</div>
|
|
287
287
|
<div
|
|
288
|
-
class="
|
|
288
|
+
class="flex h-20 items-center justify-center rounded-lg bg-success-500 text-sm font-medium text-white"
|
|
289
289
|
>
|
|
290
290
|
Success
|
|
291
291
|
</div>
|
|
292
292
|
<div
|
|
293
|
-
class="
|
|
293
|
+
class="flex h-20 items-center justify-center rounded-lg bg-warning-500 text-sm font-medium text-white"
|
|
294
294
|
>
|
|
295
295
|
Warning
|
|
296
296
|
</div>
|