@brandsync/wc 0.1.0 → 1.1.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 +1513 -669
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/p-00d40aca.entry.js +1 -0
- package/dist/brandsync-wc/{p-6e95eb36.entry.js → p-0299e8e1.entry.js} +1 -1
- package/dist/brandsync-wc/p-0921ca0d.entry.js +1 -0
- package/dist/brandsync-wc/{p-f4f22015.entry.js → p-0a2d690f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-111974df.entry.js → p-0cf117f4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-aa43d478.entry.js → p-127d698d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9bcd99aa.entry.js → p-1780224d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-55a8d4b5.entry.js → p-18e0cff4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0847f5c0.entry.js → p-1abacfe8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10f6f3cd.entry.js → p-2a7cc40c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-79af762c.entry.js → p-2e7586dd.entry.js} +1 -1
- package/dist/brandsync-wc/{p-eb04c578.entry.js → p-31b28025.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1ce7dd64.entry.js → p-32fe390d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-38aad266.entry.js → p-35bcb932.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0ba35c3b.entry.js → p-393efb5d.entry.js} +1 -1
- package/dist/brandsync-wc/p-3e61d206.entry.js +1 -0
- package/dist/brandsync-wc/{p-91551e7b.entry.js → p-3e8728dc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-20c24179.entry.js → p-5321186f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-11f3fceb.entry.js → p-579fbe4d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d3265e70.entry.js → p-63906504.entry.js} +1 -1
- package/dist/brandsync-wc/{p-59ac2495.entry.js → p-673546bf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-73217b90.entry.js → p-696f885c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d55bbcec.entry.js → p-6ef0a0ed.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6d85fba4.entry.js → p-6fc78ccf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-917a5bbc.entry.js → p-7091f130.entry.js} +1 -1
- package/dist/brandsync-wc/{p-752c04c8.entry.js → p-72e02bd5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9c4768aa.entry.js → p-778fcc55.entry.js} +1 -1
- package/dist/brandsync-wc/{p-18813680.entry.js → p-790fadf9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-321ed4d3.entry.js → p-82953f42.entry.js} +1 -1
- package/dist/brandsync-wc/p-8b5f4ca7.entry.js +1 -0
- package/dist/brandsync-wc/{p-Do3l4of3.js → p-CvfB8CQv.js} +2 -2
- package/dist/brandsync-wc/{p-c3079ad7.entry.js → p-a16afeaa.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cc79e75f.entry.js → p-a73bfd31.entry.js} +1 -1
- package/dist/brandsync-wc/{p-00bb9bda.entry.js → p-a7704457.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2063a6d6.entry.js → p-aa1cc2b6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e93e944b.entry.js → p-ac12372f.entry.js} +1 -1
- package/dist/brandsync-wc/p-b2abd8d9.entry.js +1 -0
- package/dist/brandsync-wc/p-b63362e7.entry.js +1 -0
- package/dist/brandsync-wc/{p-9876e83c.entry.js → p-bb2ec290.entry.js} +1 -1
- package/dist/brandsync-wc/{p-171fed0c.entry.js → p-c7427962.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6b469b2d.entry.js → p-c76ca89f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-43e37883.entry.js → p-c7b9a5c7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c3c383dc.entry.js → p-ca74c7d9.entry.js} +1 -1
- package/dist/brandsync-wc/p-cc9f85d6.entry.js +1 -0
- package/dist/brandsync-wc/{p-1b7c9928.entry.js → p-cff188cb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-81d49240.entry.js → p-e230ed08.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5ae9e60e.entry.js → p-f652d79c.entry.js} +1 -1
- package/dist/brandsync-wc/p-fc9d52d4.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +3 -3
- 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 +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-card.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +68 -0
- package/dist/cjs/bs-chip-informative.cjs.entry.js +42 -0
- package/dist/cjs/bs-chip-input.cjs.entry.js +76 -0
- 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 +13 -3
- 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 +3 -3
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-menu.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- 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 +2 -2
- 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-DHVw-IPK.js → index-CdAh5BFg.js} +27 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -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/bs-attachment.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.js +2 -2
- package/dist/collection/components/bs-badge/bs-badge.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.js +2 -2
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +3 -3
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.css +6 -0
- package/dist/collection/components/bs-card/bs-card.js +1 -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.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.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.cmp.test.js +99 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.css +156 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +222 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.stories.js +76 -0
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.cmp.test.js +43 -0
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.css +135 -0
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +143 -0
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.js +70 -0
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.cmp.test.js +93 -0
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.css +172 -0
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +208 -0
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.stories.js +67 -0
- package/dist/collection/components/bs-composer/bs-composer.js +3 -3
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +2 -2
- package/dist/collection/components/bs-data-table/bs-data-table.js +6 -6
- package/dist/collection/components/bs-dialog/bs-dialog.cmp.test.js +6 -0
- package/dist/collection/components/bs-dialog/bs-dialog.js +13 -3
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-logo/bs-logo.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-slider/bs-slider.js +2 -2
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +3 -3
- 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.js +1 -1
- 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 +2 -2
- 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-avatar.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.d.ts +11 -0
- package/dist/components/bs-chip-filter.js +1 -0
- package/dist/components/bs-chip-informative.d.ts +11 -0
- package/dist/components/bs-chip-informative.js +1 -0
- package/dist/components/bs-chip-input.d.ts +11 -0
- package/dist/components/bs-chip-input.js +1 -0
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-slider.js +1 -1
- package/dist/components/bs-snackbar.js +1 -1
- 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-BFcVSpES.js → p-B8JpGodL.js} +1 -1
- package/dist/components/{p-qK1XlpTA.js → p-BFVUq5m5.js} +1 -1
- package/dist/components/{p-BtX5URLk.js → p-BPUNjzjH.js} +1 -1
- package/dist/components/{p-CgaPcyEJ.js → p-Bb6vh9PN.js} +1 -1
- package/dist/components/{p-BJZYe7M4.js → p-CsnFdZ3v.js} +1 -1
- package/dist/components/{p-BKaZWFE1.js → p-DwVm6HIb.js} +1 -1
- package/dist/esm/brandsync-wc.js +4 -4
- 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 +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +2 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +1 -1
- package/dist/esm/bs-card.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +66 -0
- package/dist/esm/bs-chip-informative.entry.js +40 -0
- package/dist/esm/bs-chip-input.entry.js +74 -0
- 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 +13 -3
- 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 +3 -3
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-menu-item.entry.js +2 -2
- package/dist/esm/bs-menu.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer.entry.js +2 -2
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +2 -2
- 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 +2 -2
- 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-Do3l4of3.js → index-CvfB8CQv.js} +27 -14
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.d.ts +56 -0
- package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.stories.d.ts +20 -0
- package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.d.ts +41 -0
- package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.d.ts +21 -0
- package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.d.ts +60 -0
- package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.stories.d.ts +18 -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.d.ts +653 -0
- package/dist/types/stencil-public-runtime.d.ts +62 -55
- package/loader/index.d.ts +1 -1
- package/package.json +6 -5
- package/dist/brandsync-wc/p-0f3cb0c4.entry.js +0 -1
- package/dist/brandsync-wc/p-ce7fc368.entry.js +0 -1
- package/dist/brandsync-wc/p-f0ae2740.entry.js +0 -1
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-stepper-step-gap: Gap between the icon/connector row (or column) and the label. Aliased to --bs-spacing-100.
|
|
3
|
+
* @prop --bs-stepper-step-icon-size: Width/height of the icon/indicator circle. 24px, matching Figma exactly.
|
|
4
|
+
* @prop --bs-stepper-step-icon-border-width: Border width of the icon circle. 1.5px, matching Figma exactly.
|
|
5
|
+
* @prop --bs-stepper-step-connector-color: Rail color to the next step. Aliased to --bs-border-default. Figma's spec shows one static rail color regardless of adjacent steps' state -- completion is conveyed by the icons, not the rail.
|
|
6
|
+
* @prop --bs-stepper-step-connector-thickness: Rail line thickness. 2px, matching Figma exactly.
|
|
7
|
+
* @prop --bs-stepper-step-icon-border-enabled: Icon border, state="enabled" (not yet reached). Aliased to --bs-border-default.
|
|
8
|
+
* @prop --bs-stepper-step-icon-border-current: Icon border, state="current". Aliased to --bs-color-primary-default.
|
|
9
|
+
* @prop --bs-stepper-step-icon-dot-current: Inner filled dot color, state="current". Aliased to --bs-color-primary-default.
|
|
10
|
+
* @prop --bs-stepper-step-icon-bg-done: Icon background, state="done". Aliased to --bs-color-primary-default.
|
|
11
|
+
* @prop --bs-stepper-step-icon-color-done: Checkmark icon color, state="done". Aliased to --bs-text-on-action.
|
|
12
|
+
* @prop --bs-stepper-step-icon-border-error: Icon border, state="error". Aliased to --bs-border-error.
|
|
13
|
+
* @prop --bs-stepper-step-icon-color-error: Exclamation icon color, state="error". Aliased to --bs-border-error.
|
|
14
|
+
* @prop --bs-stepper-step-icon-border-disabled: Icon border, state="disabled". Aliased to --bs-border-neutral-disabled.
|
|
15
|
+
* @prop --bs-stepper-step-text-enabled: Name/description color, state="enabled"/"error". Aliased to --bs-text-muted.
|
|
16
|
+
* @prop --bs-stepper-step-text-active: Name/description color, state="current"/"done". Aliased to --bs-text-default.
|
|
17
|
+
* @prop --bs-stepper-step-text-disabled: Name/description color, state="disabled". Aliased to --bs-text-on-disabled.
|
|
18
|
+
* @prop --bs-stepper-step-font-size: Aliased to --bs-font-size-md.
|
|
19
|
+
* @prop --bs-stepper-step-line-height: Aliased to --bs-line-height-body-md.
|
|
20
|
+
* @prop --bs-stepper-step-name-font-weight: Aliased to --bs-font-weight-semibold.
|
|
21
|
+
* @prop --bs-stepper-step-description-font-weight: Aliased to --bs-font-weight-regular.
|
|
22
|
+
*/
|
|
23
|
+
:host {
|
|
24
|
+
display: flex;
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: var(--bs-stepper-step-font-size);
|
|
27
|
+
line-height: calc(var(--bs-stepper-step-line-height) * 1px);
|
|
28
|
+
|
|
29
|
+
--bs-stepper-step-gap: var(--bs-spacing-100);
|
|
30
|
+
--bs-stepper-step-icon-size: 24px;
|
|
31
|
+
--bs-stepper-step-icon-border-width: 1.5px;
|
|
32
|
+
--bs-stepper-step-connector-color: var(--bs-border-default);
|
|
33
|
+
--bs-stepper-step-connector-thickness: 2px;
|
|
34
|
+
|
|
35
|
+
--bs-stepper-step-icon-border-enabled: var(--bs-border-default);
|
|
36
|
+
--bs-stepper-step-icon-border-current: var(--bs-color-primary-default);
|
|
37
|
+
--bs-stepper-step-icon-dot-current: var(--bs-color-primary-default);
|
|
38
|
+
--bs-stepper-step-icon-bg-done: var(--bs-color-primary-default);
|
|
39
|
+
--bs-stepper-step-icon-color-done: var(--bs-text-on-action);
|
|
40
|
+
--bs-stepper-step-icon-border-error: var(--bs-border-error);
|
|
41
|
+
--bs-stepper-step-icon-color-error: var(--bs-border-error);
|
|
42
|
+
--bs-stepper-step-icon-border-disabled: var(--bs-border-neutral-disabled);
|
|
43
|
+
|
|
44
|
+
--bs-stepper-step-text-enabled: var(--bs-text-muted);
|
|
45
|
+
--bs-stepper-step-text-active: var(--bs-text-default);
|
|
46
|
+
--bs-stepper-step-text-disabled: var(--bs-text-on-disabled);
|
|
47
|
+
|
|
48
|
+
--bs-stepper-step-font-size: var(--bs-font-size-md);
|
|
49
|
+
--bs-stepper-step-line-height: var(--bs-line-height-body-md);
|
|
50
|
+
--bs-stepper-step-name-font-weight: var(--bs-font-weight-semibold);
|
|
51
|
+
--bs-stepper-step-description-font-weight: var(--bs-font-weight-regular);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Each step lays out and grows evenly across the row (horizontal) or stacks full-width (vertical)
|
|
55
|
+
-- the parent <bs-stepper> just renders a plain <slot>, it doesn't wrap children in any list/flex
|
|
56
|
+
scaffolding of its own. */
|
|
57
|
+
:host(.bs-stepper-step--horizontal) {
|
|
58
|
+
flex: 1 1 0;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host(.bs-stepper-step--vertical) {
|
|
63
|
+
width: 100%;
|
|
64
|
+
flex-direction: row;
|
|
65
|
+
/* Same reasoning as above, just on the cross axis: default `stretch` makes .top match .label's
|
|
66
|
+
height, which the connector inside .top needs (via flex-grow) to visually reach the next step's
|
|
67
|
+
icon regardless of how many lines the label wraps to. */
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* The icon+connector pairing: a row in horizontal mode (icon left, rail extends right to the next
|
|
71
|
+
step), a column in vertical mode (icon on top, rail extends down to the next step). */
|
|
72
|
+
.bs-stepper-step__top {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Stretches to the step's full width (default `stretch`, from .top having no explicit width/
|
|
78
|
+
align-self) -- the icon (flex-shrink: 0, first child) stays pinned to its left edge, and the
|
|
79
|
+
connector below fills whatever's left via flex: 1 1 auto. This means every step's icon sits at
|
|
80
|
+
the same relative x (its own step's left edge), regardless of the step's role -- only .label's
|
|
81
|
+
*text* alignment (see below) needs to vary by first/middle/last, not the icon/connector row. */
|
|
82
|
+
:host(.bs-stepper-step--horizontal) .bs-stepper-step__top {
|
|
83
|
+
flex-direction: row;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host(.bs-stepper-step--vertical) .bs-stepper-step__top {
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.bs-stepper-step__icon {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
width: var(--bs-stepper-step-icon-size);
|
|
96
|
+
height: var(--bs-stepper-step-icon-size);
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.bs-stepper-step__icon svg {
|
|
102
|
+
width: 16px;
|
|
103
|
+
height: 16px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.bs-stepper-step__icon--enabled {
|
|
107
|
+
border: var(--bs-stepper-step-icon-border-width) solid var(--bs-stepper-step-icon-border-enabled);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.bs-stepper-step__icon--current {
|
|
111
|
+
border: var(--bs-stepper-step-icon-border-width) solid var(--bs-stepper-step-icon-border-current);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bs-stepper-step__icon-dot {
|
|
115
|
+
width: 16px;
|
|
116
|
+
height: 16px;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
background: var(--bs-stepper-step-icon-dot-current);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.bs-stepper-step__icon--done {
|
|
122
|
+
background: var(--bs-stepper-step-icon-bg-done);
|
|
123
|
+
color: var(--bs-stepper-step-icon-color-done);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.bs-stepper-step__icon--error {
|
|
127
|
+
border: var(--bs-stepper-step-icon-border-width) solid var(--bs-stepper-step-icon-border-error);
|
|
128
|
+
color: var(--bs-stepper-step-icon-color-error);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.bs-stepper-step__icon--disabled {
|
|
132
|
+
border: var(--bs-stepper-step-icon-border-width) solid var(--bs-stepper-step-icon-border-disabled);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.bs-stepper-step__connector {
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* A normal flex child of .top, growing to fill whatever's left after the icon's fixed width --
|
|
142
|
+
NOT absolutely positioned. An earlier attempt anchored this to :host with a fixed left offset
|
|
143
|
+
assuming every icon sits at the step's left edge, which broke the moment .top's own alignment
|
|
144
|
+
varied (a centered/end-aligned icon no longer started where the connector assumed) -- the line
|
|
145
|
+
rendered straight through the icon on every middle/last step. Since .top (and therefore the icon)
|
|
146
|
+
is now always left-pinned (see .top's own comment above), a plain flex: 1 1 auto here reaches from
|
|
147
|
+
the icon's own right edge to .top's right edge with no positioning assumptions to get wrong. */
|
|
148
|
+
:host(.bs-stepper-step--horizontal) .bs-stepper-step__connector {
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
margin-left: var(--bs-stepper-step-gap);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host(.bs-stepper-step--vertical) .bs-stepper-step__connector {
|
|
154
|
+
/* Unlike horizontal mode above, vertical's connector stays in normal flex flow (inside .top,
|
|
155
|
+
which is itself flex-direction: column here) rather than switching to absolute positioning --
|
|
156
|
+
it doesn't have the same bug, since a taller icon+connector column doesn't shift .label's
|
|
157
|
+
horizontal position the way a wider one did for horizontal mode's centered/right-aligned text.
|
|
158
|
+
flex: 1 1 auto (grow to fill), not a percentage size -- a percentage only resolves against a
|
|
159
|
+
parent with a *definite* size along that axis, which .top doesn't reliably have (it's sized by
|
|
160
|
+
stretch/content, not an explicit value). flex-direction: column -- without this, the wrapper
|
|
161
|
+
stays row-direction (the base rule's default), so the line's own `flex: 1 1 auto` below tries
|
|
162
|
+
to grow WIDTH (the row's main axis) instead of height, while an explicit width: 2px pins it
|
|
163
|
+
right back down -- net effect, confirmed via a real measurement, was the line collapsing to 0
|
|
164
|
+
height. Also gives the wrapper an explicit width matching the icon, rather than shrinking to
|
|
165
|
+
the 2px-wide line's own size (which left the line off-center under the icon above it). */
|
|
166
|
+
flex: 1 1 auto;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
align-items: center;
|
|
169
|
+
width: var(--bs-stepper-step-icon-size);
|
|
170
|
+
margin: var(--bs-stepper-step-gap) 0;
|
|
171
|
+
min-height: var(--bs-stepper-step-icon-size);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.bs-stepper-step__connector-line {
|
|
175
|
+
display: block;
|
|
176
|
+
border-radius: calc(var(--bs-stepper-step-connector-thickness) / 2);
|
|
177
|
+
background: var(--bs-stepper-step-connector-color);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host(.bs-stepper-step--horizontal) .bs-stepper-step__connector-line {
|
|
181
|
+
width: 100%;
|
|
182
|
+
height: var(--bs-stepper-step-connector-thickness);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host(.bs-stepper-step--vertical) .bs-stepper-step__connector-line {
|
|
186
|
+
flex: 1 1 auto;
|
|
187
|
+
width: var(--bs-stepper-step-connector-thickness);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* This step is visually last -- pure DOM position (:last-child, not :last-of-type), so it works
|
|
191
|
+
correctly even if something other than bs-stepper-step is ever mixed in as a sibling. Hides the
|
|
192
|
+
trailing rail entirely; the icon/label content is unaffected. */
|
|
193
|
+
:host(:last-child) .bs-stepper-step__connector {
|
|
194
|
+
visibility: hidden;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.bs-stepper-step__label {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* width: icon-size (not the step's full width) + align-self: flex-start pins this box under the
|
|
203
|
+
icon specifically -- the icon is always at the step's own left edge (see .top's comment above),
|
|
204
|
+
so anchoring .label there too, then letting its *content* overflow via align-items/text-align
|
|
205
|
+
below, centers the actual text relative to the icon regardless of how wide the trailing connector
|
|
206
|
+
is. (A flex item with an explicit cross-size doesn't stretch to fill the column's width the way
|
|
207
|
+
an auto-sized one would, so this needs align-self spelled out rather than relying on the host's
|
|
208
|
+
default `stretch`.) Every step centers the same way, including the first/last -- no
|
|
209
|
+
:first-child/:last-child override to left/right-align those two, unlike .connector's
|
|
210
|
+
:last-child rule below (which is unrelated: that one hides the trailing rail, not text
|
|
211
|
+
alignment). */
|
|
212
|
+
:host(.bs-stepper-step--horizontal) .bs-stepper-step__label {
|
|
213
|
+
margin-top: var(--bs-stepper-step-gap);
|
|
214
|
+
width: var(--bs-stepper-step-icon-size);
|
|
215
|
+
align-self: flex-start;
|
|
216
|
+
align-items: center;
|
|
217
|
+
text-align: center;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:host(.bs-stepper-step--vertical) .bs-stepper-step__label {
|
|
221
|
+
margin-left: var(--bs-stepper-step-gap);
|
|
222
|
+
text-align: left;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* white-space: nowrap -- .label is deliberately narrowed to just the icon's width (see .label's own
|
|
226
|
+
comment above) so its *box* anchors under the icon while the *text* overflows past it. Without
|
|
227
|
+
this, a multi-word name/description doesn't overflow as one line -- a flex item's cross-axis
|
|
228
|
+
sizing (here, width, since .label is a column flex container) still wraps text word-by-word to
|
|
229
|
+
fit within the parent's available width before falling back to overflow, so e.g. "Review items"
|
|
230
|
+
split into "Review" / "items" onto two lines instead of extending past the 24px box as intended. */
|
|
231
|
+
.bs-stepper-step__name {
|
|
232
|
+
font-weight: var(--bs-stepper-step-name-font-weight);
|
|
233
|
+
white-space: nowrap;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.bs-stepper-step__description {
|
|
237
|
+
font-weight: var(--bs-stepper-step-description-font-weight);
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.bs-stepper-step__label--enabled .bs-stepper-step__name,
|
|
242
|
+
.bs-stepper-step__label--enabled .bs-stepper-step__description,
|
|
243
|
+
.bs-stepper-step__label--error .bs-stepper-step__name,
|
|
244
|
+
.bs-stepper-step__label--error .bs-stepper-step__description {
|
|
245
|
+
color: var(--bs-stepper-step-text-enabled);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.bs-stepper-step__label--current .bs-stepper-step__name,
|
|
249
|
+
.bs-stepper-step__label--current .bs-stepper-step__description,
|
|
250
|
+
.bs-stepper-step__label--done .bs-stepper-step__name,
|
|
251
|
+
.bs-stepper-step__label--done .bs-stepper-step__description {
|
|
252
|
+
color: var(--bs-stepper-step-text-active);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.bs-stepper-step__label--disabled .bs-stepper-step__name,
|
|
256
|
+
.bs-stepper-step__label--disabled .bs-stepper-step__description {
|
|
257
|
+
color: var(--bs-stepper-step-text-disabled);
|
|
258
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A single step within a `<bs-stepper>` sequence: an icon/indicator plus a name and optional
|
|
4
|
+
* description, connected to the next step by a trailing rail.
|
|
5
|
+
*
|
|
6
|
+
* `computedState` is set automatically by the parent `<bs-stepper>` based on this step's position
|
|
7
|
+
* relative to its `currentStep` (before it = "done", at it = "current", after it = "enabled") --
|
|
8
|
+
* same "container pushes state onto its slotted children" pattern `bs-tabs` uses for `selected`
|
|
9
|
+
* and `bs-breadcrumbs` uses for `size`. This step's own `error`/`disabled` props, when set directly
|
|
10
|
+
* by the consumer, override that computed value -- e.g. a step before `currentStep` would normally
|
|
11
|
+
* read as "done", but `error` on that step wins regardless.
|
|
12
|
+
*
|
|
13
|
+
* The trailing rail is owned by this component, not the container: `:host(:last-child)` hides it
|
|
14
|
+
* on whichever step is visually last, mirroring `bs-breadcrumb`'s own `:host(:first-child)` rule
|
|
15
|
+
* for its leading separator (same technique, opposite end -- see that component for why pure DOM
|
|
16
|
+
* position, not CSS `:last-of-type`, is what actually needs checking here too).
|
|
17
|
+
*
|
|
18
|
+
* ## When to use
|
|
19
|
+
* - As a child of `<bs-stepper>`, one per step in the sequence.
|
|
20
|
+
*
|
|
21
|
+
* ## When not to use
|
|
22
|
+
* - Standalone, outside a `<bs-stepper>` wrapper -- `computedState`/`direction`/`showDescription`
|
|
23
|
+
* depend on that parent propagating them; alone, this defaults to `enabled`/`horizontal`/`true`.
|
|
24
|
+
*
|
|
25
|
+
* @slot - None: `name`/`description` fully drive the label content.
|
|
26
|
+
* @part icon - The icon/indicator wrapper.
|
|
27
|
+
* @part label - The name+description wrapper.
|
|
28
|
+
* @part name - The name text.
|
|
29
|
+
* @part description - The description text (only rendered when `showDescription` is true and
|
|
30
|
+
* `description` is set).
|
|
31
|
+
* @part connector - The trailing rail segment (not rendered on the last step).
|
|
32
|
+
*/
|
|
33
|
+
export class BsStepperStep {
|
|
34
|
+
/** This step's name/title. */
|
|
35
|
+
name = '';
|
|
36
|
+
/** Optional supporting text below the name. Only rendered when `showDescription` (propagated
|
|
37
|
+
* from the parent `<bs-stepper>`) is also true. */
|
|
38
|
+
description;
|
|
39
|
+
/** Shows the error treatment for this step, regardless of its `computedState`. */
|
|
40
|
+
error = false;
|
|
41
|
+
/** Shows the disabled treatment for this step, regardless of its `computedState`. Takes priority
|
|
42
|
+
* over `error` if both are somehow set. */
|
|
43
|
+
disabled = false;
|
|
44
|
+
/** Set automatically by the parent `<bs-stepper>` from this step's position relative to its
|
|
45
|
+
* `currentStep` -- see the class doc above. Can be set directly for a standalone step. */
|
|
46
|
+
computedState = 'enabled';
|
|
47
|
+
/** Set automatically by the parent `<bs-stepper>`, propagated to every slotted step. */
|
|
48
|
+
direction = 'horizontal';
|
|
49
|
+
/** Set automatically by the parent `<bs-stepper>`, propagated to every slotted step. */
|
|
50
|
+
showDescription = true;
|
|
51
|
+
get state() {
|
|
52
|
+
if (this.disabled)
|
|
53
|
+
return 'disabled';
|
|
54
|
+
if (this.error)
|
|
55
|
+
return 'error';
|
|
56
|
+
return this.computedState;
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
const state = this.state;
|
|
60
|
+
return (h(Host, { key: '23bdc6334a36d9b2dd28719b9b23fbc17ad8f29b', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: '388e17882bb5215c33e0665107acbcff5c7b4c9c', class: "bs-stepper-step__top" }, h("span", { key: '6cf79ab50a94f9578e76f14ca23cdfa984ef394b', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: '8081181e8865a29f703c74d5a20183513bdf2b66', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: '92755c827c9c09b1bae504daabd2067fc498b355' }), state === 'error' && h(ExclamationIcon, { key: '62ac0a0826b8f8b507fcd0a7c47bff3c39f804b4' })), h("span", { key: 'a1c15ede35ab01d876a0289552dffc37c75626d1', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: '5029f8f629af1091bcb8fa2a47ebe12a7bd6628e', class: "bs-stepper-step__connector-line" }))), h("span", { key: '3835e986646f619751043ab0eeb1b5d977f22a58', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: '5da4053ea5ecf588853b5d9678737a67b7aadbe1', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: 'd5544b97eefe9311ac13f0cbcd4bf6d87bc24ca5', part: "description", class: "bs-stepper-step__description" }, this.description)))));
|
|
61
|
+
}
|
|
62
|
+
static get is() { return "bs-stepper-step"; }
|
|
63
|
+
static get encapsulation() { return "shadow"; }
|
|
64
|
+
static get originalStyleUrls() {
|
|
65
|
+
return {
|
|
66
|
+
"$": ["bs-stepper-step.css"]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
static get styleUrls() {
|
|
70
|
+
return {
|
|
71
|
+
"$": ["bs-stepper-step.css"]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static get properties() {
|
|
75
|
+
return {
|
|
76
|
+
"name": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "This step's name/title."
|
|
89
|
+
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
92
|
+
"reflect": false,
|
|
93
|
+
"attribute": "name",
|
|
94
|
+
"defaultValue": "''"
|
|
95
|
+
},
|
|
96
|
+
"description": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": "Optional supporting text below the name. Only rendered when `showDescription` (propagated\nfrom the parent `<bs-stepper>`) is also true."
|
|
109
|
+
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"attribute": "description"
|
|
114
|
+
},
|
|
115
|
+
"error": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "boolean",
|
|
120
|
+
"resolved": "boolean",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Shows the error treatment for this step, regardless of its `computedState`."
|
|
128
|
+
},
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false,
|
|
131
|
+
"reflect": false,
|
|
132
|
+
"attribute": "error",
|
|
133
|
+
"defaultValue": "false"
|
|
134
|
+
},
|
|
135
|
+
"disabled": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "boolean",
|
|
140
|
+
"resolved": "boolean",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Shows the disabled treatment for this step, regardless of its `computedState`. Takes priority\nover `error` if both are somehow set."
|
|
148
|
+
},
|
|
149
|
+
"getter": false,
|
|
150
|
+
"setter": false,
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"attribute": "disabled",
|
|
153
|
+
"defaultValue": "false"
|
|
154
|
+
},
|
|
155
|
+
"computedState": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "BsStepperStepComputedState",
|
|
160
|
+
"resolved": "\"current\" | \"done\" | \"enabled\"",
|
|
161
|
+
"references": {
|
|
162
|
+
"BsStepperStepComputedState": {
|
|
163
|
+
"location": "local",
|
|
164
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
|
|
165
|
+
"id": "src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx::BsStepperStepComputedState"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": "Set automatically by the parent `<bs-stepper>` from this step's position relative to its\n`currentStep` -- see the class doc above. Can be set directly for a standalone step."
|
|
174
|
+
},
|
|
175
|
+
"getter": false,
|
|
176
|
+
"setter": false,
|
|
177
|
+
"reflect": false,
|
|
178
|
+
"attribute": "computed-state",
|
|
179
|
+
"defaultValue": "'enabled'"
|
|
180
|
+
},
|
|
181
|
+
"direction": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "BsStepperDirection",
|
|
186
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
187
|
+
"references": {
|
|
188
|
+
"BsStepperDirection": {
|
|
189
|
+
"location": "local",
|
|
190
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
|
|
191
|
+
"id": "src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx::BsStepperDirection"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Set automatically by the parent `<bs-stepper>`, propagated to every slotted step."
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"attribute": "direction",
|
|
205
|
+
"defaultValue": "'horizontal'"
|
|
206
|
+
},
|
|
207
|
+
"showDescription": {
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "boolean",
|
|
212
|
+
"resolved": "boolean",
|
|
213
|
+
"references": {}
|
|
214
|
+
},
|
|
215
|
+
"required": false,
|
|
216
|
+
"optional": false,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": "Set automatically by the parent `<bs-stepper>`, propagated to every slotted step."
|
|
220
|
+
},
|
|
221
|
+
"getter": false,
|
|
222
|
+
"setter": false,
|
|
223
|
+
"reflect": false,
|
|
224
|
+
"attribute": "show-description",
|
|
225
|
+
"defaultValue": "true"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
const CheckIcon = () => (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M2.5 9L6 12.5L14 4.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
231
|
+
const ExclamationIcon = () => (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M8 3V9.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("circle", { cx: "8", cy: "12.5", r: "1", fill: "currentColor" })));
|
|
@@ -58,7 +58,7 @@ export class BsSwitch {
|
|
|
58
58
|
const knobClasses = ['bs-switch__knob', `bs-switch__knob--${this.size}`, this.disabled ? 'bs-switch__knob--disabled' : '']
|
|
59
59
|
.filter(Boolean)
|
|
60
60
|
.join(' ');
|
|
61
|
-
return (h("label", { key: '
|
|
61
|
+
return (h("label", { key: '72a1a031e9ed8763a2b60f3c23de18973cc7409d', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '90427f6930abcb294526caa912331a568f6eaaeb', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: 'be4eb4528f413527e67f38201c20ca86eeef37c1', part: "track", class: trackClasses }, h("span", { key: '030a60024a77bfae2f78a40128dd62a8581f5fd1', part: "knob", class: knobClasses })), h("span", { key: '5792002eed1c0489a1456e362f0fd3c290522834', part: "label", class: "bs-switch__label" }, h("slot", { key: '9dadf202bcde1760dcda56ca84155ecdb117b746' }))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "bs-switch"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +84,7 @@ export class BsSwitch {
|
|
|
84
84
|
"references": {
|
|
85
85
|
"BsSwitchSize": {
|
|
86
86
|
"location": "local",
|
|
87
|
-
"path": "/
|
|
87
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-switch/bs-switch.tsx",
|
|
88
88
|
"id": "src/components/bs-switch/bs-switch.tsx::BsSwitchSize"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -86,7 +86,7 @@ export class BsInlineTab {
|
|
|
86
86
|
};
|
|
87
87
|
render() {
|
|
88
88
|
const iconOnly = this.hasIcon && !this.hasLabel;
|
|
89
|
-
return (h("button", { key: '
|
|
89
|
+
return (h("button", { key: '6313c5d454cd53665dee3180dcf17d37548fa5c5', type: "button", part: "tab", role: "tab", class: `bs-inline-tab ${this.selected ? 'bs-inline-tab--selected' : ''} ${this.disabled ? 'bs-inline-tab--disabled' : ''} ${iconOnly ? 'bs-inline-tab--icon-only' : ''} ${this.hasIcon ? 'bs-inline-tab--has-icon' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: '14255949e0df5e3d7c763841844964b2d507bc86', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: 'f81037da9dbff2c105f0eacad4acd8a7eef84cbe', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '176c52323b9df0ca53aae20cc80dfc8d5625aa97', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: 'b8db261b88931be4e822b2849bd50530d9acc196', onSlotchange: this.onLabelSlotchange }))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "bs-inline-tab"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -99,7 +99,7 @@ export class BsTab {
|
|
|
99
99
|
const iconOnly = this.hasIcon && !this.hasLabel;
|
|
100
100
|
const vertical = this.hasIcon && this.hasLabel && this.iconPosition === 'top';
|
|
101
101
|
const showBadge = this.hasBadge && !iconOnly && !vertical;
|
|
102
|
-
return (h("button", { key: '
|
|
102
|
+
return (h("button", { key: '108e2a145203f9686056af4ef0afaccb9d2db30a', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: '16ac002486b78656a93cdb79ec2c496784fc97bd', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: '18eb1f6346db1658af06d4fd0fe3b9e647459abe', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'f97b7760370940a57d240635aa5680ffab053be8', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: '2ba740311a892af6d6db0d84ad0f126ca35c48de', onSlotchange: this.onLabelSlotchange })), h("span", { key: 'f1090ed9db4149673c29d1e62ec62db024c50868', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'a594d11d28f47d5e2665d3f1378892f8fb68c4aa', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: '1fd376b6321eeeec0e0a67000bd0c9d5166f9a40', part: "indicator", class: "bs-tab__indicator" })));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "bs-tab"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -164,7 +164,7 @@ export class BsTab {
|
|
|
164
164
|
"references": {
|
|
165
165
|
"BsTabIconPosition": {
|
|
166
166
|
"location": "local",
|
|
167
|
-
"path": "/
|
|
167
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-tab/bs-tab/bs-tab.tsx",
|
|
168
168
|
"id": "src/components/bs-tab/bs-tab/bs-tab.tsx::BsTabIconPosition"
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -50,7 +50,7 @@ export class BsTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
const vertical = this.orientation === 'vertical';
|
|
53
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '625a82decaddca7fc41585696f15a8fdd19c3127', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '059943f777aaf60a2de4026bcb25f561f66a5020' })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "bs-tabs"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class BsTabs {
|
|
|
75
75
|
"references": {
|
|
76
76
|
"BsTabsType": {
|
|
77
77
|
"location": "local",
|
|
78
|
-
"path": "/
|
|
78
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
|
|
79
79
|
"id": "src/components/bs-tab/bs-tabs/bs-tabs.tsx::BsTabsType"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -101,7 +101,7 @@ export class BsTabs {
|
|
|
101
101
|
"references": {
|
|
102
102
|
"BsTabsOrientation": {
|
|
103
103
|
"location": "local",
|
|
104
|
-
"path": "/
|
|
104
|
+
"path": "/home/runner/work/Brandsync-web-components/Brandsync-web-components/packages/wc/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
|
|
105
105
|
"id": "src/components/bs-tab/bs-tabs/bs-tabs.tsx::BsTabsOrientation"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -42,7 +42,7 @@ export class BsTooltip {
|
|
|
42
42
|
*/
|
|
43
43
|
placement = 'top';
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '826c86a864ed2b09e1889908daf64fe8cc7062b8', class: "bs-tooltip" }, h("span", { key: 'e04ca83b8422ccd1fdb64c8a91e2e4e332f226ed', part: "arrow", class: "bs-tooltip__arrow" }), h("div", { key: 'c02cf0ed9cfeedc3c6ca71e5770e546b841bf70f', part: "bubble", class: "bs-tooltip__bubble" }, h("slot", { key: '2279ab519e7372a339823c252e0e9da2aa7a6789' }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "bs-tooltip"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -117,7 +117,7 @@ export class BsNavigationDrawer {
|
|
|
117
117
|
this.bsSearchClick.emit();
|
|
118
118
|
};
|
|
119
119
|
render() {
|
|
120
|
-
return (h("nav", { key: '
|
|
120
|
+
return (h("nav", { key: '17b56ce49345a5b231562b93813062eaf21e4428', class: "bs-navigation-drawer", "aria-label": this.heading }, this.showLogo && (h("div", { key: '09ef0345e3c0036d4998aa6acc5f8c4bda0b534f', part: "logo", class: "bs-navigation-drawer__logo bs-navigation-drawer__logo--full" }, h("bs-logo", { key: 'c3c32c4e56e7b48b0af47ffc6bde76380906377b', variant: "full", background: this.logoBackground }))), this.showLogo && (h("div", { key: 'ddb44276e763d7ac380023bb73da2de8ff937b5b', part: "logo", class: "bs-navigation-drawer__logo bs-navigation-drawer__logo--mark" }, h("bs-logo", { key: '983e33610e902ba037c7c25a3f7c31d5f6a36cfa', variant: "mark", background: this.logoBackground }))), h("div", { key: 'db121c85fdd60dceee275d252c525e6ee85e24c9', class: "bs-navigation-drawer__title-row" }, h("span", { key: '6b8588a9fbfb3c015690ac7b0d144a852599a3c5', part: "title", class: "bs-navigation-drawer__title" }, this.heading), this.collapsible && (h("button", { key: '3ec776f2552d99deaa02468e659efd9d061fdbd3', type: "button", part: "collapse", class: "bs-navigation-drawer__collapse", "aria-label": this.collapsed ? 'Expand' : 'Collapse', "aria-pressed": this.collapsed ? 'true' : 'false', onClick: this.onCollapseClick }, h(CaretLeftIcon, { key: '60490f60829b436bd7ddd66631152f01a8b8790d' })))), h("div", { key: '72ec3f2adeaa8cb5f1d771151424ab8f41cfb8c2', part: "search", class: "bs-navigation-drawer__search" }, h("slot", { key: '6ed64f9cae2c25102e96eb92802304e77e31b3ee', name: "search" })), h("button", { key: '314a6a509224ee5a1ccac82ac13b9ac958d0add7', type: "button", part: "search-trigger", class: "bs-navigation-drawer__search-trigger", "aria-label": "Search", onClick: this.onSearchTriggerClick }, h(SearchIcon, { key: 'e68d5d4812d35c043feabca90b560deca2a69b6b' })), h("div", { key: '8dd4c3a0249a290ad313c4bf68c5a2f9bd903835', part: "items", class: "bs-navigation-drawer__items" }, h("slot", { key: '82a2278750f673a714fa9ed44c78636387e621b8' }))));
|
|
121
121
|
}
|
|
122
122
|
static get is() { return "bs-navigation-drawer"; }
|
|
123
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -131,7 +131,7 @@ export class BsNavigationDrawerItem {
|
|
|
131
131
|
// incorrectly also toggle this parent row on every child click. Both are wrapped in a
|
|
132
132
|
// `display: contents` container so render() still returns a single root node (this codebase's
|
|
133
133
|
// convention, e.g. bs-input.tsx) without that wrapper affecting layout at all.
|
|
134
|
-
return (h("div", { key: '
|
|
134
|
+
return (h("div", { key: 'bfe99fe12d0f7711a63aa09318693bb5b02eaa18', class: "bs-navigation-drawer-item__root" }, h("button", { key: 'bbe285abbb7bd1ae15f459fff7bd1e274f7f6606', type: "button", part: "item", class: rowClasses, "aria-expanded": this.expandable ? String(this.expanded) : undefined, "aria-label": this.ariaLabel ?? undefined, onClick: this.onClick }, !this.nested && (h("span", { key: 'fdb4d09986ac79e63e108bebd8196906c55c742b', part: "icon", class: `bs-navigation-drawer-item__icon ${this.hasIcon ? 'bs-navigation-drawer-item__icon--has-content' : ''}` }, h("slot", { key: 'f3221a3744673d4fe10a818f3bbb1ea1b60f9dea', name: "icon", onSlotchange: this.onIconSlotchange }))), h("span", { key: 'e521b658b2fe4d759b0c62cd273990d355e3390d', part: "label", class: "bs-navigation-drawer-item__label" }, h("slot", { key: '5f9588c89694c3627fee9e3c780b450968c40685' })), this.expandable && (h("span", { key: '51d58e4689ed36e55282b91dee092795edecfd75', part: "chevron", class: `bs-navigation-drawer-item__chevron ${this.expanded ? 'bs-navigation-drawer-item__chevron--expanded' : ''}` }, h(ChevronDownIcon, { key: 'a799c9de8e7a4dff5a47bb451890f1793d0d5adc' })))), this.expandable && (h("span", { key: '5ced1a13696acc1a11c8af1accf706e52588994a', part: "children", class: "bs-navigation-drawer-item__children" }, h("slot", { key: '4a2e90d828b3f8cbc5be529c48a77a3a9383c197', name: "children" })))));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "bs-navigation-drawer-item"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|