@brandsync/wc 1.2.0 → 1.4.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 +453 -91
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-a35d5ea7.entry.js → p-03a8fbbf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-41732f18.entry.js → p-0534d0a9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3e6d37a4.entry.js → p-07043faa.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b6425ac2.entry.js → p-0c7f993e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c76ca89f.entry.js → p-1030c935.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ce08c9d7.entry.js → p-10ad342b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-03f9fd54.entry.js → p-113ed9df.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f6fafbd6.entry.js → p-117a52dc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-17dbd4b3.entry.js → p-17cef278.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6970a24c.entry.js → p-1d50cff0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7f14660d.entry.js → p-2eb6db9f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a73bfd31.entry.js → p-3145cc00.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1e9ceb9d.entry.js → p-31fe38dd.entry.js} +1 -1
- package/dist/brandsync-wc/{p-650b7eef.entry.js → p-3b3ef658.entry.js} +1 -1
- package/dist/brandsync-wc/{p-18e0cff4.entry.js → p-3c060d84.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7091f130.entry.js → p-3eecd03e.entry.js} +1 -1
- package/dist/brandsync-wc/p-4567c1d0.entry.js +1 -0
- package/dist/brandsync-wc/{p-ca74c7d9.entry.js → p-4ba7690a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-673546bf.entry.js → p-507b5c4b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a597dc2b.entry.js → p-5bf18d08.entry.js} +1 -1
- package/dist/brandsync-wc/{p-260e14de.entry.js → p-6b850a6c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ed704126.entry.js → p-6dc7fc4a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-04d6aa95.entry.js → p-6fa6a576.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0299e8e1.entry.js → p-700fb759.entry.js} +1 -1
- package/dist/brandsync-wc/{p-67bc2ec8.entry.js → p-826c08ac.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cff188cb.entry.js → p-8dec61f7.entry.js} +1 -1
- package/dist/brandsync-wc/p-93984743.entry.js +1 -0
- package/dist/brandsync-wc/{p-f94449da.entry.js → p-984e9878.entry.js} +1 -1
- package/dist/brandsync-wc/p-9a2f986d.entry.js +1 -0
- package/dist/brandsync-wc/{p-aac6b59b.entry.js → p-9bc67188.entry.js} +1 -1
- package/dist/brandsync-wc/{p-CvfB8CQv.js → p-CcPfH1dJ.js} +2 -2
- package/dist/brandsync-wc/{p-c8480d21.entry.js → p-a6bc823e.entry.js} +1 -1
- package/dist/brandsync-wc/p-b1353da8.entry.js +1 -0
- package/dist/brandsync-wc/{p-718ce85f.entry.js → p-b176c547.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2e7586dd.entry.js → p-b22038b2.entry.js} +1 -1
- package/dist/brandsync-wc/p-b5ebbc76.entry.js +1 -0
- package/dist/brandsync-wc/{p-fc9d52d4.entry.js → p-b6dba2bf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f652d79c.entry.js → p-ba650ca9.entry.js} +1 -1
- package/dist/brandsync-wc/p-baea8952.entry.js +1 -0
- package/dist/brandsync-wc/{p-8f2cfe31.entry.js → p-bbd238cd.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0921ca0d.entry.js → p-bca1149c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-72e02bd5.entry.js → p-c89ab519.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2a7cc40c.entry.js → p-c8fabfd0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c7b9a5c7.entry.js → p-d5ea1b72.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8b5f4ca7.entry.js → p-d7ce9505.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b63362e7.entry.js → p-da6fa359.entry.js} +1 -1
- package/dist/brandsync-wc/p-dc974d62.entry.js +1 -0
- package/dist/brandsync-wc/p-df0fc514.entry.js +1 -0
- package/dist/brandsync-wc/{p-a16afeaa.entry.js → p-e5b1d254.entry.js} +1 -1
- package/dist/brandsync-wc/{p-205deb32.entry.js → p-f0df6653.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7655e741.entry.js → p-fc52e0df.entry.js} +1 -1
- 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 +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 +2 -2
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- 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 +10 -6
- package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer.cjs.entry.js +26 -3
- package/dist/cjs/bs-data-table.cjs.entry.js +21 -4
- package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/bs-icon-button.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/bs-navigation-header.cjs.entry.js +3 -3
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress-linear.cjs.entry.js +65 -0
- package/dist/cjs/bs-progress.cjs.entry.js +69 -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 +13 -3
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
- 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-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-CdAh5BFg.js → index-Bj1mNOtg.js} +17 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- 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-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.css +15 -5
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +15 -7
- 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-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-chip/bs-chip-filter/bs-chip-filter.cmp.test.js +19 -5
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +11 -7
- package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +44 -0
- package/dist/collection/components/bs-composer/bs-composer.js +29 -6
- package/dist/collection/components/bs-data-table/bs-data-table.cmp.test.js +108 -0
- package/dist/collection/components/bs-data-table/bs-data-table.css +5 -3
- package/dist/collection/components/bs-data-table/bs-data-table.js +40 -2
- package/dist/collection/components/bs-input/bs-input.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-progress/bs-progress.cmp.test.js +96 -0
- package/dist/collection/components/bs-progress/bs-progress.css +119 -0
- package/dist/collection/components/bs-progress/bs-progress.js +212 -0
- package/dist/collection/components/bs-progress/bs-progress.stories.js +72 -0
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.cmp.test.js +92 -0
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +108 -0
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +192 -0
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.stories.js +66 -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 +4 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +8 -155
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +11 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- 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-toast/bs-toast.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 +6 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +43 -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.css +25 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -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-breadcrumb-overflow.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-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-chip-filter.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-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-progress-linear.d.ts +11 -0
- package/dist/components/bs-progress-linear.js +1 -0
- package/dist/components/bs-progress.d.ts +11 -0
- package/dist/components/bs-progress.js +1 -0
- 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.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- 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-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/p-BQdQhCjF.js +1 -0
- package/dist/components/{p-Bg98eW9H.js → p-Bi4KsnwA.js} +1 -1
- package/dist/components/p-C5ducC76.js +1 -0
- package/dist/components/{p-BlCziuES.js → p-CKXzHFVu.js} +1 -1
- package/dist/components/{p-BOP5EJrQ.js → p-CbSuTCj1.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 +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 +2 -2
- package/dist/esm/bs-card.entry.js +1 -1
- 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 +10 -6
- package/dist/esm/bs-chip-informative.entry.js +1 -1
- package/dist/esm/bs-chip-input.entry.js +1 -1
- package/dist/esm/bs-composer-status-banner.entry.js +1 -1
- package/dist/esm/bs-composer.entry.js +26 -3
- package/dist/esm/bs-data-table.entry.js +21 -4
- package/dist/esm/bs-dialog.entry.js +1 -1
- package/dist/esm/bs-icon-button.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/bs-navigation-header.entry.js +3 -3
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-progress-linear.entry.js +63 -0
- package/dist/esm/bs-progress.entry.js +67 -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 +13 -3
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-stepper-step.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +2 -2
- 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-toast.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-CvfB8CQv.js → index-CcPfH1dJ.js} +17 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.d.ts +7 -2
- package/dist/types/components/bs-composer/bs-composer.d.ts +15 -1
- package/dist/types/components/bs-data-table/bs-data-table.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-data-table/bs-data-table.d.ts +5 -0
- package/dist/types/components/bs-progress/bs-progress.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-progress/bs-progress.d.ts +46 -0
- package/dist/types/components/bs-progress/bs-progress.stories.d.ts +18 -0
- package/dist/types/components/bs-progress-linear/bs-progress-linear.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-progress-linear/bs-progress-linear.d.ts +50 -0
- package/dist/types/components/bs-progress-linear/bs-progress-linear.stories.d.ts +17 -0
- package/dist/types/components.d.ts +251 -6
- package/package.json +1 -1
- package/dist/brandsync-wc/p-00d40aca.entry.js +0 -1
- package/dist/brandsync-wc/p-127d698d.entry.js +0 -1
- package/dist/brandsync-wc/p-1780224d.entry.js +0 -1
- package/dist/brandsync-wc/p-35bcb932.entry.js +0 -1
- package/dist/brandsync-wc/p-393efb5d.entry.js +0 -1
- package/dist/brandsync-wc/p-b2abd8d9.entry.js +0 -1
- package/dist/components/p-B8JpGodL.js +0 -1
|
@@ -10,37 +10,21 @@
|
|
|
10
10
|
* @prop --bs-snackbar-actions-padding-y: Top/bottom padding of the actions area. Aliased to --bs-spacing-50.
|
|
11
11
|
* @prop --bs-snackbar-actions-padding-x: Right padding of the actions area (the bar's own right edge). Aliased to --bs-spacing-100.
|
|
12
12
|
* @prop --bs-snackbar-actions-gap: Gap between the action button and the close button. Aliased to --bs-spacing-50.
|
|
13
|
-
* @prop --bs-snackbar-action-radius: Corner radius of the action button. Aliased to --bs-border-radius-100.
|
|
14
|
-
* @prop --bs-snackbar-action-font-size: Action button font size. Aliased to --bs-font-size-sm.
|
|
15
|
-
* @prop --bs-snackbar-action-font-weight: Action button font weight. Aliased to --bs-font-weight-medium.
|
|
16
|
-
* @prop --bs-snackbar-action-line-height: Action button line height. Aliased to --bs-line-height-body-sm.
|
|
17
|
-
* @prop --bs-snackbar-close-radius: Corner radius of the close button. Aliased to --bs-border-radius-100.
|
|
18
13
|
* @prop --bs-snackbar-surface-default: Bar background, variant="default". Aliased to --bs-snackbar-bg-default (brandsync-tokens).
|
|
19
14
|
* @prop --bs-snackbar-color-default: Icon/message/close color, variant="default". Aliased to --bs-snackbar-text-default (brandsync-tokens) -- named "-color-", not "-text-", solely to avoid colliding with that vendored token's own name.
|
|
20
|
-
* @prop --bs-snackbar-action-border-default: Action button border, variant="default" (outlined, not filled). Aliased to --bs-blue-300.
|
|
21
|
-
* @prop --bs-snackbar-action-text-default: Action button text, variant="default". Aliased to --bs-snackbar-action-text (brandsync-tokens).
|
|
22
15
|
* @prop --bs-snackbar-surface-info: Bar background, variant="info". Aliased to --bs-color-info-container.
|
|
23
16
|
* @prop --bs-snackbar-text-info: Icon/message/close color, variant="info". Aliased to --bs-text-info.
|
|
24
|
-
* @prop --bs-snackbar-action-bg-info: Action button background, variant="info". Aliased to --bs-snackbar-bg-info (brandsync-tokens).
|
|
25
|
-
* @prop --bs-snackbar-action-bg-info-hover: Action button background, variant="info", hover. Aliased to --bs-color-info-hover.
|
|
26
|
-
* @prop --bs-snackbar-action-bg-info-pressed: Action button background, variant="info", pressed. Aliased to --bs-color-info-pressed.
|
|
27
17
|
* @prop --bs-snackbar-surface-warning: Bar background, variant="warning". Aliased to --bs-color-warning-container.
|
|
28
18
|
* @prop --bs-snackbar-text-warning: Icon/message/close color, variant="warning". Aliased to --bs-text-warning.
|
|
29
|
-
* @prop --bs-snackbar-action-bg-warning: Action button background, variant="warning". Aliased to --bs-snackbar-bg-warning (brandsync-tokens).
|
|
30
|
-
* @prop --bs-snackbar-action-bg-warning-hover: Action button background, variant="warning", hover. Aliased to --bs-color-warning-hover.
|
|
31
|
-
* @prop --bs-snackbar-action-bg-warning-pressed: Action button background, variant="warning", pressed. Aliased to --bs-color-warning-pressed.
|
|
32
19
|
* @prop --bs-snackbar-surface-success: Bar background, variant="success". Aliased to --bs-color-success-container.
|
|
33
20
|
* @prop --bs-snackbar-text-success: Icon/message/close color, variant="success". Aliased to --bs-text-success.
|
|
34
|
-
* @prop --bs-snackbar-action-bg-success: Action button background, variant="success". Aliased to --bs-snackbar-bg-success (brandsync-tokens).
|
|
35
|
-
* @prop --bs-snackbar-action-bg-success-hover: Action button background, variant="success", hover. Aliased to --bs-color-success-hover.
|
|
36
|
-
* @prop --bs-snackbar-action-bg-success-pressed: Action button background, variant="success", pressed. Aliased to --bs-color-success-pressed.
|
|
37
21
|
* @prop --bs-snackbar-surface-error: Bar background, variant="error". Aliased to --bs-color-error-container.
|
|
38
22
|
* @prop --bs-snackbar-text-error: Icon/message/close color, variant="error". Aliased to --bs-text-error.
|
|
39
|
-
* @prop --bs-snackbar-action-bg-error: Action button background, variant="error". Aliased to --bs-snackbar-bg-error (brandsync-tokens).
|
|
40
|
-
* @prop --bs-snackbar-action-bg-error-hover: Action button background, variant="error", hover. Aliased to --bs-color-error-hover.
|
|
41
|
-
* @prop --bs-snackbar-action-bg-error-pressed: Action button background, variant="error", pressed. Aliased to --bs-color-error-pressed.
|
|
42
|
-
* @prop --bs-snackbar-action-text-on-action: Action button text, every colored (filled) variant. Aliased to --bs-text-on-action.
|
|
43
23
|
* @prop --bs-snackbar-spinner-track: Loading spinner's background ring. Aliased to --bs-neutral-200.
|
|
24
|
+
*
|
|
25
|
+
* The action/close buttons are composed from bs-button/bs-icon-button (see bs-snackbar.tsx) --
|
|
26
|
+
* their own fill colors, hover/pressed states, and focus rings are governed by THOSE components'
|
|
27
|
+
* own custom properties (--bs-button-*, --bs-icon-button-*), not duplicated here.
|
|
44
28
|
*/
|
|
45
29
|
:host {
|
|
46
30
|
display: inline-flex;
|
|
@@ -59,13 +43,6 @@
|
|
|
59
43
|
--bs-snackbar-actions-padding-x: var(--bs-spacing-100);
|
|
60
44
|
--bs-snackbar-actions-gap: var(--bs-spacing-50);
|
|
61
45
|
|
|
62
|
-
--bs-snackbar-action-radius: var(--bs-border-radius-100);
|
|
63
|
-
--bs-snackbar-action-font-size: var(--bs-font-size-sm);
|
|
64
|
-
--bs-snackbar-action-font-weight: var(--bs-font-weight-medium);
|
|
65
|
-
--bs-snackbar-action-line-height: var(--bs-line-height-body-sm);
|
|
66
|
-
|
|
67
|
-
--bs-snackbar-close-radius: var(--bs-border-radius-100);
|
|
68
|
-
|
|
69
46
|
--bs-snackbar-surface-default: var(--bs-snackbar-bg-default);
|
|
70
47
|
/* Named "-color-", not "-text-", solely to avoid a self-referential cycle: the brandsync-tokens
|
|
71
48
|
vendored token is ALSO literally named --bs-snackbar-text-default, so declaring a property of
|
|
@@ -73,34 +50,19 @@
|
|
|
73
50
|
per the CSS spec -- the property would compute to its initial value (nothing), not fall back
|
|
74
51
|
to the vendored one. */
|
|
75
52
|
--bs-snackbar-color-default: var(--bs-snackbar-text-default);
|
|
76
|
-
--bs-snackbar-action-border-default: var(--bs-blue-300);
|
|
77
|
-
--bs-snackbar-action-text-default: var(--bs-snackbar-action-text);
|
|
78
53
|
|
|
79
54
|
--bs-snackbar-surface-info: var(--bs-color-info-container);
|
|
80
55
|
--bs-snackbar-text-info: var(--bs-text-info);
|
|
81
|
-
--bs-snackbar-action-bg-info: var(--bs-snackbar-bg-info);
|
|
82
|
-
--bs-snackbar-action-bg-info-hover: var(--bs-color-info-hover);
|
|
83
|
-
--bs-snackbar-action-bg-info-pressed: var(--bs-color-info-pressed);
|
|
84
56
|
|
|
85
57
|
--bs-snackbar-surface-warning: var(--bs-color-warning-container);
|
|
86
58
|
--bs-snackbar-text-warning: var(--bs-text-warning);
|
|
87
|
-
--bs-snackbar-action-bg-warning: var(--bs-snackbar-bg-warning);
|
|
88
|
-
--bs-snackbar-action-bg-warning-hover: var(--bs-color-warning-hover);
|
|
89
|
-
--bs-snackbar-action-bg-warning-pressed: var(--bs-color-warning-pressed);
|
|
90
59
|
|
|
91
60
|
--bs-snackbar-surface-success: var(--bs-color-success-container);
|
|
92
61
|
--bs-snackbar-text-success: var(--bs-text-success);
|
|
93
|
-
--bs-snackbar-action-bg-success: var(--bs-snackbar-bg-success);
|
|
94
|
-
--bs-snackbar-action-bg-success-hover: var(--bs-color-success-hover);
|
|
95
|
-
--bs-snackbar-action-bg-success-pressed: var(--bs-color-success-pressed);
|
|
96
62
|
|
|
97
63
|
--bs-snackbar-surface-error: var(--bs-color-error-container);
|
|
98
64
|
--bs-snackbar-text-error: var(--bs-text-error);
|
|
99
|
-
--bs-snackbar-action-bg-error: var(--bs-snackbar-bg-error);
|
|
100
|
-
--bs-snackbar-action-bg-error-hover: var(--bs-color-error-hover);
|
|
101
|
-
--bs-snackbar-action-bg-error-pressed: var(--bs-color-error-pressed);
|
|
102
65
|
|
|
103
|
-
--bs-snackbar-action-text-on-action: var(--bs-text-on-action);
|
|
104
66
|
--bs-snackbar-spinner-track: var(--bs-neutral-200);
|
|
105
67
|
}
|
|
106
68
|
|
|
@@ -206,116 +168,7 @@
|
|
|
206
168
|
padding: var(--bs-snackbar-actions-padding-y) var(--bs-snackbar-actions-padding-x) var(--bs-snackbar-actions-padding-y) 0;
|
|
207
169
|
}
|
|
208
170
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
font-family: inherit;
|
|
214
|
-
font-size: var(--bs-snackbar-action-font-size);
|
|
215
|
-
font-weight: var(--bs-snackbar-action-font-weight);
|
|
216
|
-
line-height: calc(var(--bs-snackbar-action-line-height) * 1px);
|
|
217
|
-
white-space: nowrap;
|
|
218
|
-
cursor: pointer;
|
|
219
|
-
border: none;
|
|
220
|
-
background: transparent;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/* default is the only variant whose action button is outlined (transparent, bordered) rather than
|
|
224
|
-
filled -- matches the Figma spec's dark neutral bar using a lighter bordered button instead of a
|
|
225
|
-
solid fill, since a solid fill would need its own distinct color unrelated to the bar's own dark
|
|
226
|
-
surface. */
|
|
227
|
-
.bs-snackbar--default .bs-snackbar__action {
|
|
228
|
-
border: 1px solid var(--bs-snackbar-action-border-default);
|
|
229
|
-
color: var(--bs-snackbar-action-text-default);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.bs-snackbar--info .bs-snackbar__action {
|
|
233
|
-
background: var(--bs-snackbar-action-bg-info);
|
|
234
|
-
color: var(--bs-snackbar-action-text-on-action);
|
|
235
|
-
}
|
|
236
|
-
.bs-snackbar--info .bs-snackbar__action:hover {
|
|
237
|
-
background: var(--bs-snackbar-action-bg-info-hover);
|
|
238
|
-
}
|
|
239
|
-
.bs-snackbar--info .bs-snackbar__action:active {
|
|
240
|
-
background: var(--bs-snackbar-action-bg-info-pressed);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.bs-snackbar--warning .bs-snackbar__action {
|
|
244
|
-
background: var(--bs-snackbar-action-bg-warning);
|
|
245
|
-
color: var(--bs-snackbar-action-text-on-action);
|
|
246
|
-
}
|
|
247
|
-
.bs-snackbar--warning .bs-snackbar__action:hover {
|
|
248
|
-
background: var(--bs-snackbar-action-bg-warning-hover);
|
|
249
|
-
}
|
|
250
|
-
.bs-snackbar--warning .bs-snackbar__action:active {
|
|
251
|
-
background: var(--bs-snackbar-action-bg-warning-pressed);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.bs-snackbar--success .bs-snackbar__action {
|
|
255
|
-
background: var(--bs-snackbar-action-bg-success);
|
|
256
|
-
color: var(--bs-snackbar-action-text-on-action);
|
|
257
|
-
}
|
|
258
|
-
.bs-snackbar--success .bs-snackbar__action:hover {
|
|
259
|
-
background: var(--bs-snackbar-action-bg-success-hover);
|
|
260
|
-
}
|
|
261
|
-
.bs-snackbar--success .bs-snackbar__action:active {
|
|
262
|
-
background: var(--bs-snackbar-action-bg-success-pressed);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.bs-snackbar--error .bs-snackbar__action {
|
|
266
|
-
background: var(--bs-snackbar-action-bg-error);
|
|
267
|
-
color: var(--bs-snackbar-action-text-on-action);
|
|
268
|
-
}
|
|
269
|
-
.bs-snackbar--error .bs-snackbar__action:hover {
|
|
270
|
-
background: var(--bs-snackbar-action-bg-error-hover);
|
|
271
|
-
}
|
|
272
|
-
.bs-snackbar--error .bs-snackbar__action:active {
|
|
273
|
-
background: var(--bs-snackbar-action-bg-error-pressed);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.bs-snackbar__close {
|
|
277
|
-
display: flex;
|
|
278
|
-
align-items: center;
|
|
279
|
-
justify-content: center;
|
|
280
|
-
width: 44px;
|
|
281
|
-
height: 44px;
|
|
282
|
-
flex-shrink: 0;
|
|
283
|
-
padding: 0;
|
|
284
|
-
border: none;
|
|
285
|
-
background: transparent;
|
|
286
|
-
border-radius: var(--bs-snackbar-close-radius);
|
|
287
|
-
color: inherit;
|
|
288
|
-
cursor: pointer;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.bs-snackbar__close svg {
|
|
292
|
-
width: 24px;
|
|
293
|
-
height: 24px;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/* Hover/active feedback for the close button (every variant) and the default variant's outlined
|
|
297
|
-
action button -- both have a transparent background with only text/border color, so there's no
|
|
298
|
-
solid fill to darken the way the filled colored-variant action buttons above do. `opacity` was
|
|
299
|
-
tried here first and was wrong: dimming a transparent element's opacity blends it TOWARD
|
|
300
|
-
whatever's behind it, which on the light pastel info/warning/success/error surfaces made a
|
|
301
|
-
"pressed" dark-colored button look LIGHTER/washed-out -- backwards from a pressed state. A
|
|
302
|
-
`color-mix()` tint using `currentColor` fixes that (a real added tint, not a blend-toward-behind)
|
|
303
|
-
while still doing the right thing on the dark `default` surface, where content is white and a
|
|
304
|
-
light-tint hover is the correct/expected direction (same idea as a ripple highlight on a dark
|
|
305
|
-
surface). Also automatically matches whichever variant's color is active, no separate per-variant
|
|
306
|
-
hover token needed here. */
|
|
307
|
-
.bs-snackbar--default .bs-snackbar__action:hover,
|
|
308
|
-
.bs-snackbar__close:hover {
|
|
309
|
-
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.bs-snackbar--default .bs-snackbar__action:active,
|
|
313
|
-
.bs-snackbar__close:active {
|
|
314
|
-
background: color-mix(in srgb, currentColor 24%, transparent);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.bs-snackbar__action:focus-visible,
|
|
318
|
-
.bs-snackbar__close:focus-visible {
|
|
319
|
-
outline: 2px solid currentColor;
|
|
320
|
-
outline-offset: 2px;
|
|
321
|
-
}
|
|
171
|
+
/* The action/close buttons are now composed from the shared bs-button/bs-icon-button components
|
|
172
|
+
(see bs-snackbar.tsx) instead of hand-rolled <button> markup -- all the button-level styling
|
|
173
|
+
(fill colors, hover/pressed states, focus rings, and slotted-icon sizing) lives in those
|
|
174
|
+
components' own CSS, so there's nothing left to style here. */
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
// Maps each snackbar variant to the bs-button variant its action button composes -- 'default'
|
|
3
|
+
// (the dark neutral bar) uses 'outlined' since there's no bs-button variant tuned for a dark
|
|
4
|
+
// surface; every colored variant maps 1:1 to the same-named bs-button variant.
|
|
5
|
+
const ACTION_VARIANT = {
|
|
6
|
+
default: 'outlined',
|
|
7
|
+
info: 'info',
|
|
8
|
+
warning: 'warning',
|
|
9
|
+
success: 'success',
|
|
10
|
+
error: 'error',
|
|
11
|
+
};
|
|
2
12
|
/**
|
|
3
13
|
* A transient status bar for confirming the result of an action (e.g. "Files uploaded
|
|
4
14
|
* successfully.") -- an icon (or loading spinner), a message, an optional action, and a close
|
|
@@ -51,7 +61,7 @@ export class BsSnackbar {
|
|
|
51
61
|
this.bsDismiss.emit();
|
|
52
62
|
};
|
|
53
63
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
64
|
+
return (h("div", { key: 'c1eb9a40025848cfe32c54b699c767fd776106cd', part: "container", class: `bs-snackbar bs-snackbar--${this.variant}`, role: "status", "aria-live": this.variant === 'error' ? 'assertive' : 'polite' }, h("div", { key: 'eed7f9493d6b92033682b5be7704ceab16f68e39', class: "bs-snackbar__content" }, h("span", { key: 'd05b9efc5e1a641ec4f760e65fb6c7ce73986a96', part: "icon", class: "bs-snackbar__icon", "aria-hidden": "true" }, this.loading ? h("span", { class: "bs-snackbar__spinner" }) : h(CheckCircleIcon, null)), h("span", { key: '63ed931a3f99d4606394380cee69ca8357aaefda', part: "message", class: "bs-snackbar__message" }, h("slot", { key: '103d0dbe2c62f95f49fec719ea4789736faa9968' }))), h("div", { key: 'aad9025a2d6d53dcbed35d787ab13209c428dbac', class: "bs-snackbar__actions" }, this.actionLabel && (h("bs-button", { key: '2aa411a52c800a3861faf5e01c64e367ef34d3b3', part: "action", variant: ACTION_VARIANT[this.variant], size: "sm", onClick: this.onAction }, this.actionLabel)), h("bs-icon-button", { key: '8a9d212a597c98c612c8f0245c510cc5c5b821be', part: "close", variant: "subtle", size: "md", ariaLabel: "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: '0669382c520a2a9d71fa22ede719a9b90ba20b74' })))));
|
|
55
65
|
}
|
|
56
66
|
static get is() { return "bs-snackbar"; }
|
|
57
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,8 +51,8 @@ export class BsSourceLink {
|
|
|
51
51
|
};
|
|
52
52
|
render() {
|
|
53
53
|
const inner = [
|
|
54
|
-
h("span", { key: '
|
|
55
|
-
h("span", { key: '
|
|
54
|
+
h("span", { key: '8cff33c76d9d1d575c48f7088767f7d18b4d73a1', class: "bs-source-link__left" }, h("span", { key: 'aaa27ac4227afcd7b312b9576c625c54f3e603fe', class: "bs-source-link__filename-row" }, h("span", { key: '999466d6ed1910958f03328adcca796db65243ac', part: "icon", class: "bs-source-link__icon" }, h("slot", { key: '65f62019fc6c1b50999a568c54cd3ca00139ee59', name: "icon" }, h(FileTextIcon, { key: '7e3d61345cbbe78267440be6fc89773dc2e80a66' }))), h("p", { key: '8505506cc58f4253d472eed1b95625103031fcdc', part: "filename", class: "bs-source-link__filename" }, this.fileName)), h("span", { key: '89803f29243068cf4f6725d728b299eddd960e8d', class: "bs-source-link__meta" }, this.sourceName && (h("span", { key: '86e1936b8fc642817e60c6bbb3b52d4cb40c1987', part: "source", class: "bs-source-link__source" }, this.sourceName)), this.sourceName && this.version && h("span", { key: 'c865f4b4004138a5b0aa8b730813d246f229edf4', class: "bs-source-link__dot", "aria-hidden": "true" }), this.version && (h("span", { key: 'a63eb0e9a935f7cd13bdc3b4beb6dcac1767092e', part: "version", class: "bs-source-link__version" }, this.version)))),
|
|
55
|
+
h("span", { key: '403063bde49a647031683cdddfe9f9b3bd6cbe7e', part: "arrow", class: "bs-source-link__arrow", "aria-hidden": "true" }, h(ArrowUpRightIcon, { key: 'e8f9b58ab3e9ad35239423f9fcef3426905af932' })),
|
|
56
56
|
];
|
|
57
57
|
return this.href ? (h("a", { class: "bs-source-link", href: this.href, target: this.target, rel: "noopener noreferrer", onClick: this.onClick }, inner)) : (h("button", { type: "button", class: "bs-source-link", onClick: this.onClick }, inner));
|
|
58
58
|
}
|
|
@@ -61,7 +61,7 @@ export class BsStepper {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return h("slot", { key: '
|
|
64
|
+
return h("slot", { key: '02937ad4080ab9309a5a6a7d63d9e5ee9d15e75a', onSlotchange: this.onSlotChange });
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "bs-stepper"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class BsStepperStep {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
const state = this.state;
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'f0c04f84a90573ee21e50a9f098539d94bf26624', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: 'a55763b9c34fedb267b1e748df5f533713752074', class: "bs-stepper-step__top" }, h("span", { key: '206ece8ec0ffa8d47409f8a26a2690ae952ee51d', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: 'a5fd7021163730fd8b58cbbdaec2f1f0a387fb88', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: '83b594e1a10d83ffe3f9f49cae59334b9a8a55f2' }), state === 'error' && h(ExclamationIcon, { key: '5f033b26ae0a1e9f14d5a2b4f5f8491ab8e53e6b' })), h("span", { key: '958bf5f997011b76e0450ebdae678aa65bd6760f', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: 'a9bd18dd6358559fe9b9c05439e7f0be537a6792', class: "bs-stepper-step__connector-line" }))), h("span", { key: 'e8b9b0e3ac81ed00ff443eeb40c26a99a7af3c0d', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: 'e4a675a45ee3202fb5c5ee010e25a77018b8ac5c', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: '25551051646a9aefacf031f5921c57edf093426e', part: "description", class: "bs-stepper-step__description" }, this.description)))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "bs-stepper-step"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '4e0abb3231caa07b7218bc69745c822dfd9a66f2', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '04d56f220629b90573469b78070f2ecb420fae92', 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: 'e4b06fc5c17edca3d4f60d0f378c9d0779167617', part: "track", class: trackClasses }, h("span", { key: 'ce10e1a250a06d8ec850fde56064d3d5e1b9ab68', part: "knob", class: knobClasses })), h("span", { key: '6d9514c041e18206029438680fd5093e4f5b29f5', part: "label", class: "bs-switch__label" }, h("slot", { key: '431bf8fd5581cda363eb0f2dac410b177ae7639d' }))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "bs-switch"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'dbdf837d83a8c07e65b70f1eb6a3c8de6078214c', 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: '3e45469cbf9833177b8856f9d5fa061de9f14ce5', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: 'fe9714c3e47cd6e4a752514279a6d96b92650cf8', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '2c5543f2daa2800ffcb4e5f33137403102e40e74', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: 'f67133602a0c75af9263d5e56f9b5e2479cead4d', 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: '0ca426eb442e8ecd8a02d532eae0a7e0fa78e0c7', 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: '507e8d2f216142177aea162ae42ae56ce84f8759', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: 'ee418438e7f95362be5e5ed701d20d6fc0c300f4', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '5dca3c198272ba04422fcd30a27a020b735af804', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: '1026142d478c46c75b27f6eceb984188ce4c28d1', onSlotchange: this.onLabelSlotchange })), h("span", { key: 'a00349806770203091af571e480db67b68cf787f', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'fd1efee948e290272d9bdaca4c11ff6320c17c3e', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: '14b2d3857f3b5273e3973c929b83756540c7bfa2', part: "indicator", class: "bs-tab__indicator" })));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "bs-tab"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '9e9050a33459b5941af1440498780d67682d8273', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: 'd5987d7600183ef348855ac5d0af37e42f1aa9c2' })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "bs-tabs"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class BsToast {
|
|
|
25
25
|
this.bsDismiss.emit();
|
|
26
26
|
};
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: 'c2beb9820f201006fc992883a7c217dea3dd3195', part: "container", class: `bs-toast bs-toast--${this.state}`, role: "status", "aria-live": this.state === 'error' ? 'assertive' : 'polite' }, h("div", { key: 'e99f80f1082a725719f0161f5651624aba8c274b', class: "bs-toast__content" }, h("span", { key: 'dc9e372fe92087e78fabf701272c708e8d996aec', part: "icon", class: "bs-toast__icon", "aria-hidden": "true" }, h(StateIcon, { key: 'aeaac660f2ef24a350e85cb528f9ecbc4060190f', state: this.state })), h("span", { key: '3ab1414077f1cead1a6927ff9655a1be667a3a8f', part: "message", class: "bs-toast__message" }, h("slot", { key: '256f8e5941ff379ea829a3fc8f8e3f234583a7a3' }))), h("div", { key: '1e0eef65678280fa58f15d37fd7fc974c355b0e4', class: "bs-toast__actions" }, h("button", { key: '3e16a99f8afce3444213e90547ca2ac107edd986', part: "close", type: "button", class: "bs-toast__close", "aria-label": "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: '4177c2c53bca1b703a717241af3d7e845ef6ebaa' })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "bs-toast"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'dfceb9c019f507e3be9590d4ae642d86e89811b2', class: "bs-tooltip" }, h("span", { key: 'd361e87774fa906a4e2703cd8b7c2ab16ff624b9', part: "arrow", class: "bs-tooltip__arrow" }), h("div", { key: '21ab2fb2a83762f3f7a3d3f4b9094f2772ae5e7f', part: "bubble", class: "bs-tooltip__bubble" }, h("slot", { key: 'd64aaa1841796be2ccfc1ac7d55a67d37a8f7615' }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "bs-tooltip"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import { page } from "vitest/browser";
|
|
2
3
|
describe('bs-navigation-drawer', () => {
|
|
3
4
|
it('renders a <nav> landmark with the logo', async () => {
|
|
4
5
|
const { root } = await render(h("bs-navigation-drawer", null));
|
|
@@ -109,6 +110,11 @@ describe('bs-navigation-drawer', () => {
|
|
|
109
110
|
expect(searchClickSpy).toHaveReceivedEventTimes(1);
|
|
110
111
|
});
|
|
111
112
|
it('hides the search-trigger button when not collapsed', async () => {
|
|
113
|
+
// The default test viewport (414px) is inside this component's own <= 768px small-screen
|
|
114
|
+
// breakpoint (see bs-navigation-drawer.css), which forces the same visual treatment as
|
|
115
|
+
// `collapsed` regardless of the prop -- widen the viewport here so this test is isolated to
|
|
116
|
+
// the `collapsed` *prop*'s own behavior, not the viewport-driven treatment.
|
|
117
|
+
await page.viewport(1024, 768);
|
|
112
118
|
const { root } = await render(h("bs-navigation-drawer", null));
|
|
113
119
|
const trigger = root.shadowRoot.querySelector('[part="search-trigger"]');
|
|
114
120
|
expect(getComputedStyle(trigger).display).toBe('none');
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
* rhythm) -- bumped up from the originally Figma-measured --bs-spacing-150 (12px) at the user's
|
|
13
13
|
* request after seeing it rendered (felt cramped in practice), not a Figma re-measurement.
|
|
14
14
|
* @prop --bs-navigation-drawer-width: Default width of the drawer. 280px, matching Figma's own
|
|
15
|
-
* frame -- overridable by a consumer that needs a different fixed width.
|
|
15
|
+
* frame -- overridable by a consumer that needs a different fixed width. Below a 768px viewport
|
|
16
|
+
* width, this is overridden by a `@media (max-width: 768px)` rule that forces the existing
|
|
17
|
+
* `collapsed` 96px icon-only rail treatment instead (see --bs-navigation-drawer-collapsed-width
|
|
18
|
+
* below), so the drawer stops reserving a permanent 280px of layout width on small screens.
|
|
16
19
|
* @prop --bs-navigation-drawer-title-font-family: Title text font family. Aliased to
|
|
17
20
|
* --bs-typography-font-family-heading.
|
|
18
21
|
* @prop --bs-navigation-drawer-title-font-weight: Title text font weight. Aliased to
|
|
@@ -255,3 +258,42 @@
|
|
|
255
258
|
.bs-navigation-drawer__items::-webkit-scrollbar {
|
|
256
259
|
display: none;
|
|
257
260
|
}
|
|
261
|
+
|
|
262
|
+
/* Below 768px (a standard tablet/small-screen breakpoint, and the narrow end of this component's
|
|
263
|
+
normal tablet-and-up usage) a permanently-reserved 280px-wide drawer pushes page content down to
|
|
264
|
+
an unusably narrow remainder on real small-screen viewports (e.g. 390px). This library has no
|
|
265
|
+
existing width-based @media breakpoint convention to follow (grepping every other component's
|
|
266
|
+
CSS only turns up `@media (prefers-reduced-motion: reduce)`), so rather than inventing new
|
|
267
|
+
open/closed overlay API, this reuses the drawer's own existing `collapsed` 96px icon-only rail
|
|
268
|
+
treatment (see the `:host([collapsed])` rules above) and applies it unconditionally at this
|
|
269
|
+
width -- same rail, now driven by viewport instead of only by the `collapsed` prop/toggle. Placed
|
|
270
|
+
last in this file so it wins over the unscoped `.bs-navigation-drawer`/`__title`/etc. rules above
|
|
271
|
+
on specificity ties, regardless of whether `collapsed` happens to be reflected on the host. */
|
|
272
|
+
@media (max-width: 768px) {
|
|
273
|
+
.bs-navigation-drawer {
|
|
274
|
+
width: var(--bs-navigation-drawer-collapsed-width);
|
|
275
|
+
padding-left: 0;
|
|
276
|
+
padding-right: 0;
|
|
277
|
+
align-items: center;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.bs-navigation-drawer__logo--full {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.bs-navigation-drawer__logo--mark {
|
|
285
|
+
display: flex;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.bs-navigation-drawer__title {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.bs-navigation-drawer__search {
|
|
293
|
+
display: none;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.bs-navigation-drawer__search-trigger {
|
|
297
|
+
display: inline-flex;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
@@ -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: '2682adb685feb040ae0c7dd4cf772e3d27fb6cdb', class: "bs-navigation-drawer", "aria-label": this.heading }, this.showLogo && (h("div", { key: 'cebf3c545f4a7733c231f32a243aab8ea4e41b0b', part: "logo", class: "bs-navigation-drawer__logo bs-navigation-drawer__logo--full" }, h("bs-logo", { key: 'c824c6b28effe67f51cedb9f5def01583cfede94', variant: "full", background: this.logoBackground }))), this.showLogo && (h("div", { key: '92414de23c17f5db07fba6e4e5d8ff2e2b69871b', part: "logo", class: "bs-navigation-drawer__logo bs-navigation-drawer__logo--mark" }, h("bs-logo", { key: '7562863099e31061446101cf457499e93ba927fa', variant: "mark", background: this.logoBackground }))), h("div", { key: 'b53d86be5dac1611022bec53b2cf6a541e5f0d46', class: "bs-navigation-drawer__title-row" }, h("span", { key: '8d8ec8b76fc54fc69b6d4b0660fc6d0c26f44799', part: "title", class: "bs-navigation-drawer__title" }, this.heading), this.collapsible && (h("button", { key: '10bd90b98b1ba17636542a48792cc8a1e399b2ce', 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: '51c56d5f775611f8f833ccac876a9c153fa10215' })))), h("div", { key: '96d15b3514951553c3d7c769e3f457789aab300a', part: "search", class: "bs-navigation-drawer__search" }, h("slot", { key: '823a85d63fe011729a17df2264a2f04b2d376d72', name: "search" })), h("button", { key: '50198e1efe259e142c70a9fd1e132deabd23c81c', type: "button", part: "search-trigger", class: "bs-navigation-drawer__search-trigger", "aria-label": "Search", onClick: this.onSearchTriggerClick }, h(SearchIcon, { key: 'aea08baafa57881baecacf415bf477d8eb7352aa' })), h("div", { key: 'c0e5816d6e0b0dc7a627672218fde6782e3dfe93', part: "items", class: "bs-navigation-drawer__items" }, h("slot", { key: 'edb424c5e52a3500a0c85453349bf4369ea1a87e' }))));
|
|
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: 'f43c51409618490d8c8d326660da42ed7139896c', class: "bs-navigation-drawer-item__root" }, h("button", { key: '3d2b4b05faa9b8c1316242cd68be1dddc69e3f86', 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: '18e56438cf62a985cdecaf7921232a8071a561fa', part: "icon", class: `bs-navigation-drawer-item__icon ${this.hasIcon ? 'bs-navigation-drawer-item__icon--has-content' : ''}` }, h("slot", { key: 'c5c620b5be6916ecc1fdedbea3a5dedfd31e3508', name: "icon", onSlotchange: this.onIconSlotchange }))), h("span", { key: 'b1a7c8231e57ee80fd9d8b9ab5530171cde97122', part: "label", class: "bs-navigation-drawer-item__label" }, h("slot", { key: '138d2453308c1228bca8eac3e8f22900a77aa8fc' })), this.expandable && (h("span", { key: 'b6e7f7efd5bf3254fb037a5b3eadf786f9c71f79', part: "chevron", class: `bs-navigation-drawer-item__chevron ${this.expanded ? 'bs-navigation-drawer-item__chevron--expanded' : ''}` }, h(ChevronDownIcon, { key: 'af928114df979013bf10aa4b77e8cc969c119f76' })))), this.expandable && (h("span", { key: 'af0419c82ecc3cd9df9d54d090341fd59839c9e7', part: "children", class: "bs-navigation-drawer-item__children" }, h("slot", { key: 'a8e6af7c097668d14f39fea4707f0785b6c6fc4a', name: "children" })))));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "bs-navigation-drawer-item"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -104,3 +104,28 @@
|
|
|
104
104
|
flex: 1 0 0;
|
|
105
105
|
min-width: 0;
|
|
106
106
|
}
|
|
107
|
+
|
|
108
|
+
/* Below 768px (same breakpoint bs-navigation-drawer's own small-screen treatment uses, for
|
|
109
|
+
consistency -- this library has no other width-based @media precedent to follow, see that
|
|
110
|
+
component's CSS for the full reasoning), the bar's non-shrinking children (the fixed-width
|
|
111
|
+
`bs-logo`, flex-shrink: 0 on `__logo`/`__left` above) no longer reliably fit alongside the
|
|
112
|
+
`right` slot's action icons in a single row at real small-screen widths (e.g. 390px) -- the
|
|
113
|
+
`right` slot's min-width: 0 lets flexbox squeeze its *container* down, but the icon buttons
|
|
114
|
+
inside it don't shrink, so they overflow past the logo instead of wrapping, reading as an
|
|
115
|
+
overlap/collision. Letting the bar wrap, and forcing `right` onto its own full-width row below
|
|
116
|
+
(rather than an even smaller, unpredictable wrap point), keeps the logo and action icons from
|
|
117
|
+
ever sharing contested horizontal space. Only `default`/`with-navigation-drawer` need this --
|
|
118
|
+
`center`'s logo/right are already flex: 1 and absorb the narrower width themselves. */
|
|
119
|
+
@media (max-width: 768px) {
|
|
120
|
+
.bs-navigation-header--default,
|
|
121
|
+
.bs-navigation-header--with-navigation-drawer {
|
|
122
|
+
flex-wrap: wrap;
|
|
123
|
+
row-gap: var(--bs-navigation-header-slot-gap);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.bs-navigation-header--default .bs-navigation-header__right,
|
|
127
|
+
.bs-navigation-header--with-navigation-drawer .bs-navigation-header__right {
|
|
128
|
+
flex: 1 1 100%;
|
|
129
|
+
justify-content: flex-end;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -61,7 +61,7 @@ export class BsNavigationHeader {
|
|
|
61
61
|
render() {
|
|
62
62
|
const showLogo = this.alignment !== 'with-navigation-drawer';
|
|
63
63
|
const rootClasses = `bs-navigation-header bs-navigation-header--${this.alignment}`;
|
|
64
|
-
return (h("header", { key: '
|
|
64
|
+
return (h("header", { key: 'b6baa3111bbda25128deb3cadbea23925de0815e', class: rootClasses, "aria-label": this.ariaLabel ?? undefined }, this.skipToContentHref && (h("a", { key: '937a066025b7ef047b6ce1a558bc3c7855a450d2', part: "skip-link", class: "bs-navigation-header__skip-link", href: this.skipToContentHref }, this.skipToContentLabel)), showLogo && (h("bs-logo", { key: 'c1197b111efab810242b8a635412da27661d963a', part: "logo", class: "bs-navigation-header__logo", variant: "full", background: this.logoBackground })), h("div", { key: '067d89b1a117393ea6b60fec66828bba4d257070', part: "left", class: "bs-navigation-header__left" }, h("slot", { key: '8cc8de02d1b62c0e347c06d3ca07c2c5b165c74f', name: "left" })), h("div", { key: '94b52a0d3ad8c2df1fd20ed64fe1ab7c032a4d4c', part: "right", class: "bs-navigation-header__right" }, h("slot", { key: '36b66721d428407e5acc2205e21f0039e5be6728', name: "right" }))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "bs-navigation-header"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as e,H as s,h as a}from"./p-CsnFdZ3v.js";const t=e(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}render(){return a("div",{key:"
|
|
1
|
+
import{t as i,p as e,H as s,h as a}from"./p-CsnFdZ3v.js";const t=e(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}render(){return a("div",{key:"870ae28bc88649b92b2508d9c41a415c44a413b4",class:"bs-ai-disclaimer"},a("p",{key:"99ef7bc15c69f5ba1c92353a037ac6a01a872f35",part:"text",class:"bs-ai-disclaimer__text"},a("slot",{key:"faad8221144401799e346e6d0d43d199c7ad2252"})))}static get style(){return":host{display:block;--bs-ai-disclaimer-padding-x:var(--bs-spacing-200);--bs-ai-disclaimer-text-color:var(--bs-text-secondary);--bs-ai-disclaimer-font-size:var(--bs-font-size-sm);--bs-ai-disclaimer-line-height:var(--bs-line-height-body-sm)}.bs-ai-disclaimer{box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 var(--bs-ai-disclaimer-padding-x);font-family:inherit}.bs-ai-disclaimer__text{margin:0;flex:1 0 0;min-width:0;color:var(--bs-ai-disclaimer-text-color);font-size:var(--bs-ai-disclaimer-font-size);line-height:calc(var(--bs-ai-disclaimer-line-height) * 1px);text-align:center;word-break:break-word}"}},[257,"bs-ai-disclaimer"]);function r(){"undefined"!=typeof customElements&&["bs-ai-disclaimer"].forEach((e=>{"bs-ai-disclaimer"===e&&(customElements.get(i(e))||customElements.define(i(e),t))}))}r();const c=t,d=r;export{c as BsAiDisclaimer,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,h as a}from"./p-CsnFdZ3v.js";const n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}assistantName="Genie";productName;render(){const e=this.productName?`How can I help you with ${this.productName} today?`:"How can I help you today?";return a("div",{key:"
|
|
1
|
+
import{t as e,p as i,H as t,h as a}from"./p-CsnFdZ3v.js";const n=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}assistantName="Genie";productName;render(){const e=this.productName?`How can I help you with ${this.productName} today?`:"How can I help you today?";return a("div",{key:"2abf3146a8d1feba1261de654efea03cb0986340",class:"bs-ai-greeting"},a("div",{key:"f2a2ac07f0c20eb10d55366f5b07b01ad7684ed2",part:"heading",class:"bs-ai-greeting__heading"},a("p",{key:"13e0db0145ca6339cbeacfc1523ee7d573ea848b",class:"bs-ai-greeting__heading-line"},"Hi. I'm ",this.assistantName,","),a("p",{key:"8255a0bfea0ca89dbdb248a697f8667ca2fe25bf",class:"bs-ai-greeting__heading-line"},"your AI assistant.")),a("p",{key:"00ec794006ab8632c878f91fe4a94c688db0ab29",part:"subtext",class:"bs-ai-greeting__subtext"},e))}static get style(){return":host{display:block;--bs-ai-greeting-gap:var(--bs-spacing-200);--bs-ai-greeting-max-width:490px;--bs-ai-greeting-heading-color:var(--bs-text-default);--bs-ai-greeting-heading-font-size:var(--bs-font-size-4xl);--bs-ai-greeting-heading-line-height:var(--bs-line-height-body-lg);--bs-ai-greeting-heading-weight:var(--bs-font-weight-bold);--bs-ai-greeting-heading-gap:var(--bs-spacing-200);--bs-ai-greeting-subtext-color:var(--bs-text-secondary);--bs-ai-greeting-subtext-font-size:var(--bs-font-size-xl);--bs-ai-greeting-subtext-line-height:var(--bs-line-height-body-lg)}.bs-ai-greeting{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--bs-ai-greeting-gap);max-width:var(--bs-ai-greeting-max-width);margin:0 auto;text-align:center;font-family:inherit}.bs-ai-greeting__heading{display:flex;flex-direction:column;gap:var(--bs-ai-greeting-heading-gap);color:var(--bs-ai-greeting-heading-color);font-size:var(--bs-ai-greeting-heading-font-size);font-weight:var(--bs-ai-greeting-heading-weight);line-height:calc(var(--bs-ai-greeting-heading-line-height) * 1px)}.bs-ai-greeting__heading-line{margin:0}.bs-ai-greeting__subtext{margin:0;color:var(--bs-ai-greeting-subtext-color);font-size:var(--bs-ai-greeting-subtext-font-size);font-weight:var(--bs-font-weight-regular);line-height:calc(var(--bs-ai-greeting-subtext-line-height) * 1px)}"}},[513,"bs-ai-greeting",{assistantName:[1,"assistant-name"],productName:[1,"product-name"]}]);function s(){"undefined"!=typeof customElements&&["bs-ai-greeting"].forEach((i=>{"bs-ai-greeting"===i&&(customElements.get(e(i))||customElements.define(e(i),n))}))}s();const g=n,r=s;export{g as BsAiGreeting,r as defineCustomElement}
|