@brandsync/wc 0.0.12 → 1.0.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/custom-elements.json +4969 -3104
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/p-0ba35c3b.entry.js +1 -0
- package/dist/brandsync-wc/{p-72a33f88.entry.js → p-10f6f3cd.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2c51d738.entry.js → p-16c960b5.entry.js} +1 -1
- package/dist/brandsync-wc/p-17a695af.entry.js +1 -0
- package/dist/brandsync-wc/{p-6e854e92.entry.js → p-196cfcf0.entry.js} +1 -1
- package/dist/brandsync-wc/p-1fcc9f47.entry.js +1 -0
- package/dist/brandsync-wc/p-27cce165.entry.js +1 -0
- package/dist/brandsync-wc/p-37365a51.entry.js +1 -0
- package/dist/brandsync-wc/{p-0eee5477.entry.js → p-38aad266.entry.js} +1 -1
- package/dist/brandsync-wc/p-3efb76dd.entry.js +1 -0
- package/dist/brandsync-wc/{p-1c6fa697.entry.js → p-43e37883.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1900f6ce.entry.js → p-45016a37.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8b662ee3.entry.js → p-48000949.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ef8522b5.entry.js → p-4ec24ccb.entry.js} +1 -1
- package/dist/brandsync-wc/p-4f8459ae.entry.js +1 -0
- package/dist/brandsync-wc/{p-8049f9f2.entry.js → p-55a8d4b5.entry.js} +1 -1
- package/dist/brandsync-wc/p-59ac2495.entry.js +1 -0
- package/dist/brandsync-wc/p-5ae9e60e.entry.js +1 -0
- package/dist/brandsync-wc/p-613ff380.entry.js +1 -0
- package/dist/brandsync-wc/{p-57fdbb76.entry.js → p-63167373.entry.js} +1 -1
- package/dist/brandsync-wc/{p-20dbc6a1.entry.js → p-69c5bc2e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-46ddc8e1.entry.js → p-6e95eb36.entry.js} +1 -1
- package/dist/brandsync-wc/p-752c04c8.entry.js +1 -0
- package/dist/brandsync-wc/p-7e544766.entry.js +1 -0
- package/dist/brandsync-wc/p-917a5bbc.entry.js +1 -0
- package/dist/brandsync-wc/{p-c320b6b4.entry.js → p-9bcd99aa.entry.js} +1 -1
- package/dist/brandsync-wc/{p-12ec9e92.entry.js → p-9f1e4a91.entry.js} +1 -1
- package/dist/brandsync-wc/{p-DST5-cTx.js → p-Do3l4of3.js} +2 -2
- package/dist/brandsync-wc/{p-0fa017ce.entry.js → p-aa43d478.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd09d335.entry.js → p-ab8de9b6.entry.js} +1 -1
- package/dist/brandsync-wc/p-b18e4845.entry.js +1 -0
- package/dist/brandsync-wc/{p-88a0abee.entry.js → p-b5cbe30b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3b31f7c7.entry.js → p-baa4e2e0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d4e3ca77.entry.js → p-c04cf1bb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a5b15061.entry.js → p-c3079ad7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-23457a21.entry.js → p-c3c383dc.entry.js} +1 -1
- package/dist/brandsync-wc/p-c90f5a74.entry.js +1 -0
- package/dist/brandsync-wc/{p-b24a980b.entry.js → p-cc79e75f.entry.js} +1 -1
- package/dist/brandsync-wc/p-ce7fc368.entry.js +1 -0
- package/dist/brandsync-wc/{p-1adc59be.entry.js → p-d037b619.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2a65aabb.entry.js → p-d22990c0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-56c66448.entry.js → p-e231e4cf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-64e2a7d7.entry.js → p-e2a37bda.entry.js} +1 -1
- package/dist/brandsync-wc/{p-aba300a9.entry.js → p-e3ce0c8c.entry.js} +1 -1
- package/dist/brandsync-wc/p-f0ae2740.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-avatar.cjs.entry.js +60 -0
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +56 -0
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +33 -0
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +49 -0
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-card.cjs.entry.js +10 -3
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +20 -0
- package/dist/cjs/bs-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
- package/dist/cjs/bs-dialog.cjs.entry.js +110 -0
- package/dist/cjs/bs-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/bs-input.cjs.entry.js +24 -12
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/{bs-menu_2.cjs.entry.js → bs-menu-item.cjs.entry.js} +2 -15
- package/dist/cjs/bs-menu.cjs.entry.js +17 -0
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +3 -3
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +8 -2
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +85 -0
- package/dist/cjs/bs-radio.cjs.entry.js +2 -2
- package/dist/cjs/bs-slider.cjs.entry.js +2 -2
- package/dist/cjs/bs-snackbar.cjs.entry.js +41 -0
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-stepper-step.cjs.entry.js +44 -0
- package/dist/cjs/bs-stepper.cjs.entry.js +62 -0
- package/dist/cjs/bs-switch.cjs.entry.js +2 -2
- package/dist/cjs/bs-tab.cjs.entry.js +2 -2
- package/dist/cjs/bs-tabs.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-B3sdhEGk.js → index-DHVw-IPK.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +10 -1
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.cmp.test.js +54 -0
- package/dist/collection/components/bs-avatar/bs-avatar.css +197 -0
- package/dist/collection/components/bs-avatar/bs-avatar.js +251 -0
- package/dist/collection/components/bs-avatar/bs-avatar.stories.js +67 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.js +62 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.css +93 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +130 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.cmp.test.js +118 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.css +125 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +192 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.cmp.test.js +58 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.css +18 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +129 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.stories.js +84 -0
- package/dist/collection/components/bs-button/bs-button/bs-button.js +1 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.cmp.test.js +19 -0
- package/dist/collection/components/bs-card/bs-card.css +37 -5
- package/dist/collection/components/bs-card/bs-card.js +18 -2
- package/dist/collection/components/bs-card/bs-card.stories.js +17 -1
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.css +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.cmp.test.js +23 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.css +64 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +81 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.stories.js +25 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +12 -0
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/{bs-modal/bs-modal.cmp.test.js → bs-dialog/bs-dialog.cmp.test.js} +63 -19
- package/dist/collection/components/bs-dialog/bs-dialog.css +130 -0
- package/dist/collection/components/bs-dialog/bs-dialog.js +273 -0
- package/dist/collection/components/bs-dialog/bs-dialog.stories.js +115 -0
- package/dist/collection/components/bs-input/bs-input.cmp.test.js +20 -0
- package/dist/collection/components/bs-input/bs-input.css +80 -2
- package/dist/collection/components/bs-input/bs-input.js +28 -10
- package/dist/collection/components/bs-input/bs-input.stories.js +14 -11
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-pagination/bs-pagination.cmp.test.js +102 -0
- package/dist/collection/components/bs-pagination/bs-pagination.css +120 -0
- package/dist/collection/components/bs-pagination/bs-pagination.js +233 -0
- package/dist/collection/components/bs-pagination/bs-pagination.stories.js +43 -0
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +77 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +321 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +172 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.stories.js +59 -0
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.cmp.test.js +42 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.css +29 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +162 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.stories.js +59 -0
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.cmp.test.js +73 -0
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.css +258 -0
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +231 -0
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +12 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +34 -6
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.js +74 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.css +5 -5
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.js +258 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/{bs-modal.d.ts → bs-avatar.d.ts} +4 -4
- package/dist/components/bs-avatar.js +1 -0
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.d.ts +11 -0
- package/dist/components/bs-breadcrumb-overflow.js +1 -0
- package/dist/components/bs-breadcrumb.d.ts +11 -0
- package/dist/components/bs-breadcrumb.js +1 -0
- package/dist/components/bs-breadcrumbs.d.ts +11 -0
- package/dist/components/bs-breadcrumbs.js +1 -0
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-skeleton.d.ts +11 -0
- package/dist/components/bs-checkbox-skeleton.js +1 -0
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-dialog.d.ts +11 -0
- package/dist/components/bs-dialog.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-logo.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-navigation-drawer-item.js +1 -1
- package/dist/components/bs-navigation-drawer.js +1 -1
- package/dist/components/bs-navigation-header.js +1 -1
- package/dist/components/bs-pagination.d.ts +11 -0
- package/dist/components/bs-pagination.js +1 -0
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-slider.js +1 -1
- package/dist/components/bs-snackbar.d.ts +11 -0
- package/dist/components/bs-snackbar.js +1 -0
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-stepper-step.d.ts +11 -0
- package/dist/components/bs-stepper-step.js +1 -0
- package/dist/components/bs-stepper.d.ts +11 -0
- package/dist/components/bs-stepper.js +1 -0
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BAOJc0V0.js → p-BFcVSpES.js} +1 -1
- package/dist/components/{p-Be1Pfcnm.js → p-BJZYe7M4.js} +1 -1
- package/dist/components/{p-CaWqTQBZ.js → p-BKaZWFE1.js} +1 -1
- package/dist/components/{p-DivZLd6i.js → p-Bs7nEbqK.js} +1 -1
- package/dist/components/{p-BqYyMGrB.js → p-CPSCOLIf.js} +1 -1
- package/dist/components/{p-xfx69LQx.js → p-CUa8zihb.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-avatar.entry.js +58 -0
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +54 -0
- package/dist/esm/bs-breadcrumb.entry.js +31 -0
- package/dist/esm/bs-breadcrumbs.entry.js +47 -0
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +2 -2
- package/dist/esm/bs-card.entry.js +10 -3
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +2 -2
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox-skeleton.entry.js +18 -0
- package/dist/esm/bs-checkbox.entry.js +2 -2
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-data-table.entry.js +3 -3
- package/dist/esm/bs-dialog.entry.js +108 -0
- package/dist/esm/bs-icon-button.entry.js +2 -2
- package/dist/esm/bs-inline-tab.entry.js +2 -2
- package/dist/esm/bs-input.entry.js +24 -12
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/{bs-menu_2.entry.js → bs-menu-item.entry.js} +3 -15
- package/dist/esm/bs-menu.entry.js +15 -0
- package/dist/esm/bs-navigation-drawer-item.entry.js +3 -3
- package/dist/esm/bs-navigation-drawer.entry.js +8 -2
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +83 -0
- package/dist/esm/bs-radio.entry.js +2 -2
- package/dist/esm/bs-slider.entry.js +2 -2
- package/dist/esm/bs-snackbar.entry.js +39 -0
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-stepper-step.entry.js +42 -0
- package/dist/esm/bs-stepper.entry.js +60 -0
- package/dist/esm/bs-switch.entry.js +2 -2
- package/dist/esm/bs-tab.entry.js +2 -2
- package/dist/esm/bs-tabs.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-DST5-cTx.js → index-Do3l4of3.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-avatar/bs-avatar.d.ts +67 -0
- package/dist/types/components/bs-avatar/bs-avatar.stories.d.ts +20 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +44 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.d.ts +69 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.d.ts +45 -0
- package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.stories.d.ts +14 -0
- package/dist/types/components/bs-card/bs-card.d.ts +10 -1
- package/dist/types/components/bs-card/bs-card.stories.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.d.ts +36 -0
- package/dist/types/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.stories.d.ts +10 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.stories.d.ts +1 -0
- package/dist/types/components/bs-dialog/bs-dialog.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-dialog/bs-dialog.d.ts +74 -0
- package/dist/types/components/{bs-modal/bs-modal.stories.d.ts → bs-dialog/bs-dialog.stories.d.ts} +5 -3
- package/dist/types/components/bs-input/bs-input.d.ts +8 -1
- package/dist/types/components/bs-pagination/bs-pagination.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-pagination/bs-pagination.d.ts +51 -0
- package/dist/types/components/bs-pagination/bs-pagination.stories.d.ts +14 -0
- package/dist/types/components/bs-snackbar/bs-snackbar.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-snackbar/bs-snackbar.d.ts +51 -0
- package/dist/types/components/bs-snackbar/bs-snackbar.stories.d.ts +16 -0
- package/dist/types/components/bs-stepper/bs-stepper/bs-stepper.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stepper/bs-stepper/bs-stepper.d.ts +48 -0
- package/dist/types/components/bs-stepper/bs-stepper/bs-stepper.stories.d.ts +14 -0
- package/dist/types/components/bs-stepper/bs-stepper-step/bs-stepper-step.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stepper/bs-stepper-step/bs-stepper-step.d.ts +55 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.d.ts +13 -5
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.d.ts +3 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.d.ts +4 -0
- package/dist/types/components.d.ts +1431 -128
- package/package.json +1 -1
- package/dist/brandsync-wc/p-09aa03d1.entry.js +0 -1
- package/dist/brandsync-wc/p-1cf715aa.entry.js +0 -1
- package/dist/brandsync-wc/p-266f5dde.entry.js +0 -1
- package/dist/brandsync-wc/p-8ded1eb6.entry.js +0 -1
- package/dist/brandsync-wc/p-b289450a.entry.js +0 -1
- package/dist/brandsync-wc/p-b8a2f882.entry.js +0 -1
- package/dist/brandsync-wc/p-f04db1b0.entry.js +0 -1
- package/dist/cjs/bs-modal.cjs.entry.js +0 -69
- package/dist/collection/components/bs-modal/bs-modal.css +0 -66
- package/dist/collection/components/bs-modal/bs-modal.js +0 -198
- package/dist/collection/components/bs-modal/bs-modal.stories.js +0 -38
- package/dist/components/bs-modal.js +0 -1
- package/dist/esm/bs-modal.entry.js +0 -67
- package/dist/types/components/bs-modal/bs-modal.d.ts +0 -45
- /package/dist/types/components/{bs-modal/bs-modal.cmp.test.d.ts → bs-avatar/bs-avatar.cmp.test.d.ts} +0 -0
package/dist/types/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.stories.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsCheckboxSize } from '../bs-checkbox';
|
|
3
|
+
interface BsCheckboxSkeletonArgs {
|
|
4
|
+
size: BsCheckboxSize;
|
|
5
|
+
}
|
|
6
|
+
declare const meta: Meta<BsCheckboxSkeletonArgs>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<BsCheckboxSkeletonArgs>;
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
export declare const Sizes: Story;
|
|
@@ -12,6 +12,7 @@ declare const meta: Meta<BsCheckboxArgs>;
|
|
|
12
12
|
export default meta;
|
|
13
13
|
type Story = StoryObj<BsCheckboxArgs>;
|
|
14
14
|
export declare const Default: Story;
|
|
15
|
+
export declare const Horizontal: Story;
|
|
15
16
|
export declare const Checked: Story;
|
|
16
17
|
export declare const Indeterminate: Story;
|
|
17
18
|
export declare const Disabled: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsDialogSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/**
|
|
4
|
+
* An overlay dialog that interrupts the current flow for a focused task or confirmation.
|
|
5
|
+
* Closes itself on backdrop click, Escape, or its own close button, and emits `bsClose`.
|
|
6
|
+
*
|
|
7
|
+
* ## When to use
|
|
8
|
+
* - Confirming a consequential action (e.g. "Confirm booking") before it takes effect.
|
|
9
|
+
* - A short, focused task that doesn't warrant navigating to a new page.
|
|
10
|
+
*
|
|
11
|
+
* ## When not to use
|
|
12
|
+
* - For non-blocking status messages — use a toast/notification instead of interrupting the user.
|
|
13
|
+
* - For a long, multi-step flow — a full page or a dedicated route is usually a better fit than a
|
|
14
|
+
* dialog that just gets taller and taller.
|
|
15
|
+
*
|
|
16
|
+
* Two additional slots cover the Figma "Dialog" component's other states: `image` (a hero image
|
|
17
|
+
* across the top, close button floats over it instead of sitting in the header row) and `icon`
|
|
18
|
+
* (only rendered when `centered` is set, e.g. a success checkmark above a centered heading). The
|
|
19
|
+
* close button "floats" (absolute-positioned, top-right of the dialog, with its own background)
|
|
20
|
+
* whenever `centered` is true or the `image` slot has content -- otherwise it's the plain inline
|
|
21
|
+
* button in the header row next to the heading, same as before this addition.
|
|
22
|
+
*
|
|
23
|
+
* @slot - Default slot: the dialog body content.
|
|
24
|
+
* @slot image - Optional hero image across the top of the dialog. Presence of assigned content
|
|
25
|
+
* switches the close button to float over it; doesn't affect layout when empty.
|
|
26
|
+
* @slot icon - Optional icon shown above the heading, only rendered at all when `centered` is true.
|
|
27
|
+
* @slot footer - Optional footer content (typically action buttons).
|
|
28
|
+
* @part backdrop - The full-viewport overlay behind the dialog.
|
|
29
|
+
* @part dialog - The dialog box itself.
|
|
30
|
+
* @part image - The hero image wrapper (only visible when the `image` slot has content).
|
|
31
|
+
* @part icon - The icon wrapper (only rendered when `centered` is true).
|
|
32
|
+
* @part header - The header row (heading + close button, when the close button isn't floating).
|
|
33
|
+
* @part close - The close button (inline in the header, or floating -- see the class doc above).
|
|
34
|
+
* @part body - The body content wrapper.
|
|
35
|
+
* @part footer - The footer wrapper (only visible when the footer slot has content).
|
|
36
|
+
*/
|
|
37
|
+
export declare class BsDialog {
|
|
38
|
+
/** Mutable + reflected so the component can close itself (backdrop click, Escape, close button)
|
|
39
|
+
* the same way a native `<dialog>` does, while still emitting `bsClose` for the consumer to react to. */
|
|
40
|
+
open: boolean;
|
|
41
|
+
heading?: string;
|
|
42
|
+
size: BsDialogSize;
|
|
43
|
+
/** Switches to the Figma "Icon Centered" layout: heading/body text centered, the `icon` slot
|
|
44
|
+
* rendered above the heading, and the close button floating top-right of the dialog instead of
|
|
45
|
+
* inline in the header row. Doesn't hide a slotted `image` if one is also provided -- Figma's
|
|
46
|
+
* spec doesn't show the two combined, so this is unspecified rather than actively blocked.
|
|
47
|
+
* Reflected so consumers/CSS can target `bs-dialog[centered]`. */
|
|
48
|
+
centered: boolean;
|
|
49
|
+
bsClose: EventEmitter<void>;
|
|
50
|
+
/** Tracks whether the `footer` slot has assigned content, so the footer bar (border + padding)
|
|
51
|
+
* only renders when there's actually something to put in it. */
|
|
52
|
+
hasFooter: boolean;
|
|
53
|
+
/** Tracks whether the `image` slot has assigned content -- drives both whether the image wrapper
|
|
54
|
+
* is visible and whether the close button floats over it (see `floatingClose` in `render()`). */
|
|
55
|
+
hasImage: boolean;
|
|
56
|
+
/** Tracks whether the `icon` slot has assigned content, so the icon wrapper only reserves layout
|
|
57
|
+
* space when there's actually an icon -- same pattern as `bs-tab`'s `hasIcon`. Only relevant when
|
|
58
|
+
* `centered` is true, since the icon wrapper isn't rendered at all otherwise. */
|
|
59
|
+
hasIcon: boolean;
|
|
60
|
+
private onFooterSlotchange;
|
|
61
|
+
private onImageSlotchange;
|
|
62
|
+
private onIconSlotchange;
|
|
63
|
+
private dialogRef?;
|
|
64
|
+
private previouslyFocused?;
|
|
65
|
+
private previousBodyOverflow?;
|
|
66
|
+
private wasOpen;
|
|
67
|
+
private close;
|
|
68
|
+
onKeydown(ev: KeyboardEvent): void;
|
|
69
|
+
private onBackdropClick;
|
|
70
|
+
onFocusIn(ev: FocusEvent): void;
|
|
71
|
+
componentDidRender(): void;
|
|
72
|
+
disconnectedCallback(): void;
|
|
73
|
+
render(): any;
|
|
74
|
+
}
|
package/dist/types/components/{bs-modal/bs-modal.stories.d.ts → bs-dialog/bs-dialog.stories.d.ts}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
interface
|
|
2
|
+
interface BsDialogArgs {
|
|
3
3
|
heading: string;
|
|
4
4
|
size: 'sm' | 'md' | 'lg';
|
|
5
5
|
}
|
|
6
|
-
declare const meta: Meta<
|
|
6
|
+
declare const meta: Meta<BsDialogArgs>;
|
|
7
7
|
export default meta;
|
|
8
|
-
type Story = StoryObj<
|
|
8
|
+
type Story = StoryObj<BsDialogArgs>;
|
|
9
9
|
export declare const Default: Story;
|
|
10
|
+
export declare const WithImage: Story;
|
|
11
|
+
export declare const Centered: Story;
|
|
@@ -25,6 +25,12 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
25
25
|
* toggle), or `dropdown` (chevron) -- those types always render their own trailing control there.
|
|
26
26
|
* For `type="date"`, the slot is used if provided, otherwise a default calendar icon is shown.
|
|
27
27
|
* @part field - The bordered field wrapper containing the icon(s) and native control(s).
|
|
28
|
+
* `type="initials"` renders this part on TWO separate elements instead of one (the title
|
|
29
|
+
* `<select>`'s own small box, and the name `<input>`'s own box) -- Figma specs these as two
|
|
30
|
+
* genuinely independent bordered containers with a gap between them, not one shared field the
|
|
31
|
+
* way every other composite type (`country` included) renders, so `::part(field)` reaches
|
|
32
|
+
* whichever of the two a given selector context matches, same "multiple elements, one shared
|
|
33
|
+
* part name" convention as `bs-attachment`'s own `star` part.
|
|
28
34
|
* @part menu - The `bs-menu` rendered below the field for `type="dropdown"` when `open` and
|
|
29
35
|
* `options` is non-empty.
|
|
30
36
|
* @part label - The `<label>` element.
|
|
@@ -157,7 +163,8 @@ export declare class BsInput {
|
|
|
157
163
|
private renderSelectControl;
|
|
158
164
|
private renderTextareaControl;
|
|
159
165
|
private renderChipControl;
|
|
160
|
-
private
|
|
166
|
+
private renderInitialsField;
|
|
167
|
+
private renderSelectChevron;
|
|
161
168
|
private renderCountryControl;
|
|
162
169
|
private renderControl;
|
|
163
170
|
private renderField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A numbered page control -- previous/next chevrons, page-number buttons, and `...` overflow for
|
|
4
|
+
* large page counts. Matches the Figma "Pagination" component's "Default" type (the classic
|
|
5
|
+
* numbered pagination); its other type ("jumper" -- a rows-per-page dropdown plus a page-jump
|
|
6
|
+
* input) is a structurally different composite widget and isn't covered by this component.
|
|
7
|
+
*
|
|
8
|
+
* `totalPages`/`currentPage` drive everything -- this computes which page numbers to show and
|
|
9
|
+
* where to collapse into `...` itself, the consumer never builds the button list by hand.
|
|
10
|
+
*
|
|
11
|
+
* ## When to use
|
|
12
|
+
* - Paging through a large, ordered result set (a table, a search results list) where jumping
|
|
13
|
+
* directly to a specific page number is useful.
|
|
14
|
+
*
|
|
15
|
+
* ## When not to use
|
|
16
|
+
* - Infinite-scroll or "load more" patterns -- those don't have a fixed, addressable page number.
|
|
17
|
+
* - A huge page count where users realistically only ever go forward/back one page at a time --
|
|
18
|
+
* plain prev/next controls (no numbers) are simpler there.
|
|
19
|
+
*
|
|
20
|
+
* @part list - The `<ul>` element.
|
|
21
|
+
* @part item - Each `<li>` in the list.
|
|
22
|
+
* @part prev - The previous-page button.
|
|
23
|
+
* @part next - The next-page button.
|
|
24
|
+
* @part page - Each page-number button.
|
|
25
|
+
* @part current - The current page's button (in addition to `page`).
|
|
26
|
+
* @part ellipsis - Each collapsed-range indicator.
|
|
27
|
+
*/
|
|
28
|
+
export declare class BsPagination {
|
|
29
|
+
/** Total number of pages. Must be a positive integer -- there's always at least one page. */
|
|
30
|
+
totalPages: number;
|
|
31
|
+
/** The active page (1-indexed). Mutable + reflected so clicking a page button updates it
|
|
32
|
+
* directly, the same way `bs-modal`'s `open` self-manages, while `bsPageChange` still fires for
|
|
33
|
+
* the consumer to react to (e.g. fetching that page's data). */
|
|
34
|
+
currentPage: number;
|
|
35
|
+
/** How many page numbers to show on each side of the current page before collapsing the rest
|
|
36
|
+
* into `...`. `1` (the default) reproduces the Figma spec's example exactly (page 1 of 12 shows
|
|
37
|
+
* `1 2 3 ... 12`). */
|
|
38
|
+
siblingCount: number;
|
|
39
|
+
/** Accessible name for the previous-page button. */
|
|
40
|
+
previousLabel: string;
|
|
41
|
+
/** Accessible name for the next-page button. */
|
|
42
|
+
nextLabel: string;
|
|
43
|
+
/** Fires whenever the active page changes as a result of the user clicking a page/prev/next
|
|
44
|
+
* button -- not when `currentPage` is set programmatically from outside. */
|
|
45
|
+
bsPageChange: EventEmitter<number>;
|
|
46
|
+
private get safeTotalPages();
|
|
47
|
+
private get safeSiblingCount();
|
|
48
|
+
private goToPage;
|
|
49
|
+
private getPageList;
|
|
50
|
+
render(): any;
|
|
51
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsPaginationArgs {
|
|
3
|
+
totalPages: number;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
siblingCount: number;
|
|
6
|
+
}
|
|
7
|
+
declare const meta: Meta<BsPaginationArgs>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<BsPaginationArgs>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const MiddlePage: Story;
|
|
12
|
+
export declare const LastPage: Story;
|
|
13
|
+
export declare const FewPages: Story;
|
|
14
|
+
export declare const WiderSiblingCount: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsSnackbarVariant = 'default' | 'info' | 'warning' | 'success' | 'error';
|
|
3
|
+
/**
|
|
4
|
+
* A transient status bar for confirming the result of an action (e.g. "Files uploaded
|
|
5
|
+
* successfully.") -- an icon (or loading spinner), a message, an optional action, and a close
|
|
6
|
+
* button.
|
|
7
|
+
*
|
|
8
|
+
* This component only renders the bar itself -- it doesn't manage its own visibility, timing, or
|
|
9
|
+
* stacking. A consumer (typically a small "toast manager" utility) creates one per message and
|
|
10
|
+
* removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
|
|
11
|
+
* auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
|
|
12
|
+
*
|
|
13
|
+
* The icon is always the same checkmark glyph across every `variant`, just recolored -- matching
|
|
14
|
+
* the Figma spec exactly, even though a checkmark for `variant="error"` reads a little oddly
|
|
15
|
+
* semantically. Worth revisiting with severity-specific icons (warning triangle, error circle,
|
|
16
|
+
* etc.) if the design updates to specify them.
|
|
17
|
+
*
|
|
18
|
+
* ## When to use
|
|
19
|
+
* - Confirming the outcome of an action that just happened (save succeeded, upload failed) without
|
|
20
|
+
* interrupting the user's flow.
|
|
21
|
+
*
|
|
22
|
+
* ## When not to use
|
|
23
|
+
* - For a response that requires the user to make a decision before continuing -- use `bs-dialog`.
|
|
24
|
+
* - For persistent, always-visible status -- a snackbar is inherently transient.
|
|
25
|
+
*
|
|
26
|
+
* @slot - Default slot: the message text.
|
|
27
|
+
* @part container - The outer bar.
|
|
28
|
+
* @part icon - The leading icon/spinner wrapper.
|
|
29
|
+
* @part message - The message text wrapper.
|
|
30
|
+
* @part action - The optional action button (only rendered when `actionLabel` is set).
|
|
31
|
+
* @part close - The close button.
|
|
32
|
+
*/
|
|
33
|
+
export declare class BsSnackbar {
|
|
34
|
+
/** Color/semantic variant. `default` is the neutral (dark, inverse-surface) bar Figma shows as
|
|
35
|
+
* the baseline; `info`/`warning`/`success`/`error` use their matching container/text tokens. */
|
|
36
|
+
variant: BsSnackbarVariant;
|
|
37
|
+
/** Replaces the checkmark icon with a spinning loading indicator, for a message describing
|
|
38
|
+
* in-progress work (e.g. "Uploading files...") rather than a completed result. */
|
|
39
|
+
loading: boolean;
|
|
40
|
+
/** Label for the optional action button (e.g. "Undo", "Retry"). Omit this prop entirely to
|
|
41
|
+
* render no action button at all -- its presence, not a boolean flag, is what shows it. */
|
|
42
|
+
actionLabel?: string;
|
|
43
|
+
/** Fires when the action button is clicked. Ignored/never fires if `actionLabel` isn't set. */
|
|
44
|
+
bsAction: EventEmitter<void>;
|
|
45
|
+
/** Fires when the close button is clicked. This component doesn't remove itself from the DOM --
|
|
46
|
+
* the consumer is expected to do that (or hide it) in response to this event. */
|
|
47
|
+
bsDismiss: EventEmitter<void>;
|
|
48
|
+
private onAction;
|
|
49
|
+
private onDismiss;
|
|
50
|
+
render(): any;
|
|
51
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsSnackbarVariant } from './bs-snackbar';
|
|
3
|
+
interface BsSnackbarArgs {
|
|
4
|
+
variant: BsSnackbarVariant;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
actionLabel: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
declare const meta: Meta<BsSnackbarArgs>;
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<BsSnackbarArgs>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const AllVariants: Story;
|
|
14
|
+
export declare const Overflow: Story;
|
|
15
|
+
export declare const Loading: Story;
|
|
16
|
+
export declare const NoAction: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { BsStepperDirection } from '../bs-stepper-step/bs-stepper-step';
|
|
2
|
+
/**
|
|
3
|
+
* A sequence of named steps showing overall progress through a multi-step flow (e.g. a checkout,
|
|
4
|
+
* an onboarding wizard) -- each step reads as enabled (not yet reached), current, done, error, or
|
|
5
|
+
* disabled, connected by a rail between them.
|
|
6
|
+
*
|
|
7
|
+
* This container is intentionally thin: it renders a `<slot>` for `<bs-stepper-step>` children and
|
|
8
|
+
* propagates `currentStep`/`direction`/`showDescription` down to them as JS properties whenever any
|
|
9
|
+
* of those change or the slotted children themselves change -- the same "container pushes state
|
|
10
|
+
* onto its slotted children" pattern `bs-tabs` uses for `selected` and `bs-breadcrumbs` uses for
|
|
11
|
+
* `size`. Each step computes its own `enabled`/`current`/`done` state from its position among its
|
|
12
|
+
* siblings relative to `currentStep`, unless that step's own `error`/`disabled` prop overrides it.
|
|
13
|
+
*
|
|
14
|
+
* This is a static status display, not an interactive control -- Figma's spec shows no
|
|
15
|
+
* hover/pressed treatment on any step, so nothing here is clickable.
|
|
16
|
+
*
|
|
17
|
+
* ## When to use
|
|
18
|
+
* - Showing where the user is in a fixed, ordered, multi-step flow.
|
|
19
|
+
*
|
|
20
|
+
* ## When not to use
|
|
21
|
+
* - A flow whose steps aren't fixed/known in advance -- a stepper implies the full sequence is
|
|
22
|
+
* already known.
|
|
23
|
+
* - As a substitute for actual in-page navigation between steps -- pair this with real controls
|
|
24
|
+
* (Next/Back buttons) elsewhere in the flow, this component only displays status.
|
|
25
|
+
*
|
|
26
|
+
* @slot - Default slot: the `<bs-stepper-step>` elements making up the sequence, in order.
|
|
27
|
+
*/
|
|
28
|
+
export declare class BsStepper {
|
|
29
|
+
el: HTMLElement;
|
|
30
|
+
/** 0-indexed: which step is current. Every step before this index reads as "done" (unless that
|
|
31
|
+
* step's own `error`/`disabled` overrides it), every step after reads as "enabled". */
|
|
32
|
+
currentStep: number;
|
|
33
|
+
/** `horizontal` (icon above name/description, connected by a horizontal rail) or `vertical`
|
|
34
|
+
* (icon beside name/description, connected by a vertical rail). Propagated to every slotted
|
|
35
|
+
* `bs-stepper-step`, and reflected as an attribute so this container's own `:host` CSS can switch
|
|
36
|
+
* its `flex-direction` to match -- a bare `<slot>` with no wrapping element (see `render()`)
|
|
37
|
+
* means the slotted steps' flex-row/column layout comes directly from `:host` here, not from any
|
|
38
|
+
* wrapper div. */
|
|
39
|
+
direction: BsStepperDirection;
|
|
40
|
+
/** Whether each step's description renders at all. Propagated to every slotted
|
|
41
|
+
* `bs-stepper-step`. */
|
|
42
|
+
showDescription: boolean;
|
|
43
|
+
onPropChange(): void;
|
|
44
|
+
componentDidLoad(): void;
|
|
45
|
+
private onSlotChange;
|
|
46
|
+
private propagateToSteps;
|
|
47
|
+
render(): any;
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
interface BsStepperArgs {
|
|
3
|
+
currentStep: number;
|
|
4
|
+
direction: 'horizontal' | 'vertical';
|
|
5
|
+
showDescription: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const meta: Meta<BsStepperArgs>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<BsStepperArgs>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Vertical: Story;
|
|
12
|
+
export declare const WithError: Story;
|
|
13
|
+
export declare const WithDisabledStep: Story;
|
|
14
|
+
export declare const NoDescription: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type BsStepperStepComputedState = 'enabled' | 'current' | 'done';
|
|
2
|
+
export type BsStepperStepState = BsStepperStepComputedState | 'error' | 'disabled';
|
|
3
|
+
export type BsStepperDirection = 'horizontal' | 'vertical';
|
|
4
|
+
/**
|
|
5
|
+
* A single step within a `<bs-stepper>` sequence: an icon/indicator plus a name and optional
|
|
6
|
+
* description, connected to the next step by a trailing rail.
|
|
7
|
+
*
|
|
8
|
+
* `computedState` is set automatically by the parent `<bs-stepper>` based on this step's position
|
|
9
|
+
* relative to its `currentStep` (before it = "done", at it = "current", after it = "enabled") --
|
|
10
|
+
* same "container pushes state onto its slotted children" pattern `bs-tabs` uses for `selected`
|
|
11
|
+
* and `bs-breadcrumbs` uses for `size`. This step's own `error`/`disabled` props, when set directly
|
|
12
|
+
* by the consumer, override that computed value -- e.g. a step before `currentStep` would normally
|
|
13
|
+
* read as "done", but `error` on that step wins regardless.
|
|
14
|
+
*
|
|
15
|
+
* The trailing rail is owned by this component, not the container: `:host(:last-child)` hides it
|
|
16
|
+
* on whichever step is visually last, mirroring `bs-breadcrumb`'s own `:host(:first-child)` rule
|
|
17
|
+
* for its leading separator (same technique, opposite end -- see that component for why pure DOM
|
|
18
|
+
* position, not CSS `:last-of-type`, is what actually needs checking here too).
|
|
19
|
+
*
|
|
20
|
+
* ## When to use
|
|
21
|
+
* - As a child of `<bs-stepper>`, one per step in the sequence.
|
|
22
|
+
*
|
|
23
|
+
* ## When not to use
|
|
24
|
+
* - Standalone, outside a `<bs-stepper>` wrapper -- `computedState`/`direction`/`showDescription`
|
|
25
|
+
* depend on that parent propagating them; alone, this defaults to `enabled`/`horizontal`/`true`.
|
|
26
|
+
*
|
|
27
|
+
* @slot - None: `name`/`description` fully drive the label content.
|
|
28
|
+
* @part icon - The icon/indicator wrapper.
|
|
29
|
+
* @part label - The name+description wrapper.
|
|
30
|
+
* @part name - The name text.
|
|
31
|
+
* @part description - The description text (only rendered when `showDescription` is true and
|
|
32
|
+
* `description` is set).
|
|
33
|
+
* @part connector - The trailing rail segment (not rendered on the last step).
|
|
34
|
+
*/
|
|
35
|
+
export declare class BsStepperStep {
|
|
36
|
+
/** This step's name/title. */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Optional supporting text below the name. Only rendered when `showDescription` (propagated
|
|
39
|
+
* from the parent `<bs-stepper>`) is also true. */
|
|
40
|
+
description?: string;
|
|
41
|
+
/** Shows the error treatment for this step, regardless of its `computedState`. */
|
|
42
|
+
error: boolean;
|
|
43
|
+
/** Shows the disabled treatment for this step, regardless of its `computedState`. Takes priority
|
|
44
|
+
* over `error` if both are somehow set. */
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
/** Set automatically by the parent `<bs-stepper>` from this step's position relative to its
|
|
47
|
+
* `currentStep` -- see the class doc above. Can be set directly for a standalone step. */
|
|
48
|
+
computedState: BsStepperStepComputedState;
|
|
49
|
+
/** Set automatically by the parent `<bs-stepper>`, propagated to every slotted step. */
|
|
50
|
+
direction: BsStepperDirection;
|
|
51
|
+
/** Set automatically by the parent `<bs-stepper>`, propagated to every slotted step. */
|
|
52
|
+
showDescription: boolean;
|
|
53
|
+
private get state();
|
|
54
|
+
render(): any;
|
|
55
|
+
}
|
|
@@ -6,7 +6,8 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
6
6
|
* ## When to use
|
|
7
7
|
* - The primary in-app navigation, shown alongside `bs-navigation-header` (typically that
|
|
8
8
|
* header's `with-navigation-drawer` alignment, which omits its own logo since this component
|
|
9
|
-
* already renders one
|
|
9
|
+
* already renders one -- or the reverse pairing, this drawer's own `showLogo={false}` alongside
|
|
10
|
+
* a header that keeps its logo instead, see that prop's own docs).
|
|
10
11
|
*
|
|
11
12
|
* ## When not to use
|
|
12
13
|
* - The top navigation bar itself -- use `bs-navigation-header` instead.
|
|
@@ -41,10 +42,11 @@ import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
41
42
|
* @slot - Default slot: the scrollable list of nav items, typically one or more
|
|
42
43
|
* `bs-navigation-drawer-item` elements.
|
|
43
44
|
* @part logo - The wrapper around the BrandSync brand mark. Two of these exist in the shadow DOM
|
|
44
|
-
* at once (one wrapping a `bs-logo variant="full"`, one wrapping a
|
|
45
|
-
* both carrying this same part name (the same "multiple elements, one
|
|
46
|
-
* approach `bs-attachment`'s `star` part uses) -- only one is visible at a
|
|
47
|
-
* plain CSS on `collapsed` (see above), so `::part(logo)` always reaches
|
|
45
|
+
* at once while `showLogo` is `true` (one wrapping a `bs-logo variant="full"`, one wrapping a
|
|
46
|
+
* `bs-logo variant="mark"`), both carrying this same part name (the same "multiple elements, one
|
|
47
|
+
* shared part name" approach `bs-attachment`'s `star` part uses) -- only one is visible at a
|
|
48
|
+
* time, toggled by plain CSS on `collapsed` (see above), so `::part(logo)` always reaches
|
|
49
|
+
* whichever is showing. Neither renders at all while `showLogo` is `false`.
|
|
48
50
|
* @part title - The "Main Menu" heading text wrapper.
|
|
49
51
|
* @part collapse - The collapse toggle button.
|
|
50
52
|
* @part search - The wrapper around the `search` slot.
|
|
@@ -82,6 +84,12 @@ export declare class BsNavigationDrawer {
|
|
|
82
84
|
* `collapsed` (see `bs-logo`'s own docs -- there's only one real designed mark asset, it's
|
|
83
85
|
* background-agnostic). */
|
|
84
86
|
logoBackground: 'auto' | 'light' | 'dark';
|
|
87
|
+
/** Whether to render the BrandSync logo at all. Defaults to `true`. This drawer is normally the
|
|
88
|
+
* one that owns the logo when paired with a `bs-navigation-header` (that header's own
|
|
89
|
+
* `with-navigation-drawer` alignment omits its logo for exactly this reason) -- but the reverse
|
|
90
|
+
* pairing works too: a header that keeps its own logo (`alignment="default"`) paired with this
|
|
91
|
+
* drawer set to `showLogo={false}`, so the brand mark only ever appears once. */
|
|
92
|
+
showLogo: boolean;
|
|
85
93
|
onCollapsedChange(collapsed: boolean): void;
|
|
86
94
|
componentDidLoad(): void;
|
|
87
95
|
/** Keeps every direct-child `bs-navigation-drawer-item`'s `collapsed` prop in sync with this
|
|
@@ -3,6 +3,7 @@ interface BsNavigationDrawerArgs {
|
|
|
3
3
|
heading: string;
|
|
4
4
|
collapsible: boolean;
|
|
5
5
|
logoBackground: 'auto' | 'light' | 'dark';
|
|
6
|
+
showLogo: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const meta: Meta<BsNavigationDrawerArgs>;
|
|
8
9
|
export default meta;
|
|
@@ -11,6 +12,8 @@ export declare const FixedSideNav: Story;
|
|
|
11
12
|
export declare const FixedSideNavWithDivider: Story;
|
|
12
13
|
export declare const FixedSideNavWithIcons: Story;
|
|
13
14
|
export declare const Collapsed: Story;
|
|
15
|
+
export declare const CollapsedWithHeader: Story;
|
|
14
16
|
export declare const Dark: Story;
|
|
15
17
|
export declare const WithoutSearch: Story;
|
|
16
18
|
export declare const EmptyItems: Story;
|
|
19
|
+
export declare const LargeItemList: Story;
|
|
@@ -19,3 +19,7 @@ export declare const HeaderBaseWithNavigationAndActionsNoLogo: Story;
|
|
|
19
19
|
export declare const HeaderBaseWithNavigationAndActionsTabs: Story;
|
|
20
20
|
export declare const HeaderBaseDark: Story;
|
|
21
21
|
export declare const HeaderBaseWithSkipLink: Story;
|
|
22
|
+
export declare const HeaderBaseWithActionsAndSwitcher: Story;
|
|
23
|
+
export declare const HeaderBaseWithSideNav: Story;
|
|
24
|
+
export declare const HeaderBaseWithNavigationActionsAndSideNav: Story;
|
|
25
|
+
export declare const HeaderBaseWithSideNavHeaderLogo: Story;
|