@brandsync/wc 1.10.0 → 1.12.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/CHANGELOG.md +155 -0
- package/custom-elements.json +8333 -4134
- package/dist/brandsync-wc/brandsync-wc.css +33 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-9f8852a0.entry.js → p-00a0d489.entry.js} +1 -1
- package/dist/brandsync-wc/{p-360452c2.entry.js → p-09435f41.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dbcbe682.entry.js → p-09bc1923.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1f7208cb.entry.js → p-09cbf05b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c99b6a66.entry.js → p-0b2d3b7e.entry.js} +1 -1
- package/dist/brandsync-wc/p-0b7c77c1.entry.js +1 -0
- package/dist/brandsync-wc/p-0ee4126c.entry.js +1 -0
- package/dist/brandsync-wc/{p-5f3cd501.entry.js → p-0f8cd2e8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1c0db4d6.entry.js → p-1261f0b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b2074a32.entry.js → p-1978e63c.entry.js} +1 -1
- package/dist/brandsync-wc/p-1aab6d07.entry.js +1 -0
- package/dist/brandsync-wc/{p-96ed9386.entry.js → p-20030f4d.entry.js} +1 -1
- package/dist/brandsync-wc/p-2177042f.entry.js +1 -0
- package/dist/brandsync-wc/{p-a8e2a829.entry.js → p-2368a92e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2e958566.entry.js → p-247e36ad.entry.js} +1 -1
- package/dist/brandsync-wc/p-2497d128.entry.js +1 -0
- package/dist/brandsync-wc/{p-701ebf4a.entry.js → p-282ddbee.entry.js} +1 -1
- package/dist/brandsync-wc/{p-763876f5.entry.js → p-2f4e08e1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c3f72584.entry.js → p-34e5feaf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ea4e20ef.entry.js → p-39a26c64.entry.js} +1 -1
- package/dist/brandsync-wc/p-3a1af63a.entry.js +1 -0
- package/dist/brandsync-wc/{p-9f6fe37d.entry.js → p-3f09296a.entry.js} +1 -1
- package/dist/brandsync-wc/p-416322bd.entry.js +1 -0
- package/dist/brandsync-wc/{p-f89de457.entry.js → p-452f9c1c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bbcc47b0.entry.js → p-491b51e6.entry.js} +1 -1
- package/dist/brandsync-wc/p-52cb2358.entry.js +1 -0
- package/dist/brandsync-wc/{p-daab6b22.entry.js → p-56c37e0a.entry.js} +1 -1
- package/dist/brandsync-wc/p-5ba90a13.entry.js +1 -0
- package/dist/brandsync-wc/{p-08c99a60.entry.js → p-617bd13a.entry.js} +1 -1
- package/dist/brandsync-wc/p-68fcd4a4.entry.js +1 -0
- package/dist/brandsync-wc/{p-9e88f19c.entry.js → p-69c0a85d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d3f44cb7.entry.js → p-6a696161.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32cd69f1.entry.js → p-6c6cdf77.entry.js} +1 -1
- package/dist/brandsync-wc/{p-041776c0.entry.js → p-6e735e37.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fc58c663.entry.js → p-73f214ed.entry.js} +1 -1
- package/dist/brandsync-wc/{p-be2c1740.entry.js → p-7796b93f.entry.js} +1 -1
- package/dist/brandsync-wc/p-78a69a59.entry.js +1 -0
- package/dist/brandsync-wc/{p-f370b8fa.entry.js → p-78f4fcf0.entry.js} +1 -1
- package/dist/brandsync-wc/p-7f954939.entry.js +1 -0
- package/dist/brandsync-wc/{p-835a8dc7.entry.js → p-81605b82.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a71d2811.entry.js → p-823ab3b2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2181378f.entry.js → p-83c90489.entry.js} +1 -1
- package/dist/brandsync-wc/p-89099a39.entry.js +1 -0
- package/dist/brandsync-wc/{p-a92eec48.entry.js → p-89fabf27.entry.js} +1 -1
- package/dist/brandsync-wc/{p-AgoOSYvW.js → p-DqQRXQMx.js} +2 -2
- package/dist/brandsync-wc/{p-18c3c22c.entry.js → p-a9169157.entry.js} +1 -1
- package/dist/brandsync-wc/{p-301b2455.entry.js → p-b84366a7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a5feaad4.entry.js → p-b8d2ce91.entry.js} +1 -1
- package/dist/brandsync-wc/p-b9a4042e.entry.js +1 -0
- package/dist/brandsync-wc/{p-275072dd.entry.js → p-b9ccd9d1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-61c1a2a3.entry.js → p-be3dd446.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8eba7f90.entry.js → p-d754ee13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e9b43754.entry.js → p-d75f3f87.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e8a5b8eb.entry.js → p-d8b29a53.entry.js} +1 -1
- package/dist/brandsync-wc/p-de110ad0.entry.js +1 -0
- package/dist/brandsync-wc/p-e2556b4e.entry.js +1 -0
- package/dist/brandsync-wc/{p-af2bf957.entry.js → p-e5daa6ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0132a2d1.entry.js → p-f15d9524.entry.js} +1 -1
- package/dist/brandsync-wc/p-f5180578.entry.js +1 -0
- package/dist/brandsync-wc/{p-fd254972.entry.js → p-f7d15fbe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-50a251a4.entry.js → p-fc069773.entry.js} +1 -1
- package/dist/brandsync-wc/p-fcee0dc4.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
- 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 +6 -3
- 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 +3 -3
- package/dist/cjs/bs-card.cjs.entry.js +3 -3
- package/dist/cjs/bs-carousel.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 +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/bs-cookie-consent.cjs.entry.js +186 -0
- package/dist/cjs/bs-data-table.cjs.entry.js +1 -1
- package/dist/cjs/bs-datepicker.cjs.entry.js +13 -9
- package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/bs-error-page.cjs.entry.js +103 -0
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-tile.cjs.entry.js +52 -0
- package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/{bs-input_2.cjs.entry.js → bs-input_3.cjs.entry.js} +42 -6
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +161 -0
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-product-tour.cjs.entry.js +78 -0
- package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
- package/dist/cjs/bs-progress.cjs.entry.js +3 -3
- package/dist/cjs/bs-qr-code.cjs.entry.js +148 -0
- package/dist/cjs/bs-radio.cjs.entry.js +2 -2
- package/dist/cjs/bs-session-timeout.cjs.entry.js +215 -0
- package/dist/cjs/bs-slider.cjs.entry.js +2 -2
- package/dist/cjs/bs-snackbar.cjs.entry.js +9 -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_3.cjs.entry.js +255 -0
- package/dist/cjs/bs-timepicker.cjs.entry.js +4 -4
- package/dist/cjs/bs-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/bs-whats-new.cjs.entry.js +144 -0
- package/dist/cjs/{index-kk9YXF2S.js → index-tFJjflK5.js} +15 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +9 -0
- package/dist/collection/components/bs-a11y.cmp.test.js +22 -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/bs-attachment.stories.js +4 -3
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +6 -3
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +28 -0
- package/dist/collection/components/bs-button/bs-button/bs-button.css +8 -2
- package/dist/collection/components/bs-button/bs-button/bs-button.js +4 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.cmp.test.js +48 -0
- package/dist/collection/components/bs-card/bs-card.css +37 -16
- package/dist/collection/components/bs-card/bs-card.js +2 -2
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +2 -2
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +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-composer/bs-composer.css +4 -2
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.cmp.test.js +217 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.css +350 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.js +668 -0
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.stories.js +103 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.cmp.test.js +9 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.css +21 -11
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +13 -7
- package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +3 -2
- package/dist/collection/components/bs-error-page/bs-error-page.cmp.test.js +99 -0
- package/dist/collection/components/bs-error-page/bs-error-page.css +105 -0
- package/dist/collection/components/bs-error-page/bs-error-page.js +328 -0
- package/dist/collection/components/bs-error-page/bs-error-page.stories.js +57 -0
- package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.cmp.test.js +175 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.css +112 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +158 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.stories.js +45 -0
- package/dist/collection/components/bs-input/bs-input.cmp.test.js +16 -2
- package/dist/collection/components/bs-input/bs-input.css +15 -23
- package/dist/collection/components/bs-input/bs-input.js +8 -4
- 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-onboarding-checklist/bs-onboarding-checklist.cmp.test.js +280 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.css +488 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.js +674 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.js +92 -0
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-product-tour/bs-product-tour.cmp.test.js +116 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.css +265 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.js +391 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.stories.js +68 -0
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +1 -1
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.cmp.test.js +152 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.css +307 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +767 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.stories.js +99 -0
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.cmp.test.js +202 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.css +239 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +772 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.stories.js +88 -0
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +20 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +6 -4
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +53 -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-timepicker/bs-timepicker.css +15 -11
- package/dist/collection/components/bs-timepicker/bs-timepicker.js +4 -2
- 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/bs-whats-new/bs-whats-new.cmp.test.js +200 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.css +315 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.js +790 -0
- package/dist/collection/components/bs-whats-new/bs-whats-new.stories.js +105 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.js +79 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.css +131 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +295 -0
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.stories.js +67 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
- package/dist/components/bs-accordion.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-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-carousel.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.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-cookie-consent.d.ts +11 -0
- package/dist/components/bs-cookie-consent.js +1 -0
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-datepicker.js +1 -1
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-error-page.d.ts +11 -0
- package/dist/components/bs-error-page.js +1 -0
- package/dist/components/bs-file-upload-item.js +1 -1
- package/dist/components/bs-file-upload.js +1 -1
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.d.ts +11 -0
- package/dist/components/bs-icon-tile.js +1 -0
- 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-onboarding-checklist.d.ts +11 -0
- package/dist/components/bs-onboarding-checklist.js +1 -0
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-product-tour.d.ts +11 -0
- package/dist/components/bs-product-tour.js +1 -0
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-qr-code.d.ts +11 -0
- package/dist/components/bs-qr-code.js +1 -0
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-session-timeout.d.ts +11 -0
- package/dist/components/bs-session-timeout.js +1 -0
- 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-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/bs-whats-new-entry.d.ts +11 -0
- package/dist/components/bs-whats-new-entry.js +1 -0
- package/dist/components/bs-whats-new.d.ts +11 -0
- package/dist/components/bs-whats-new.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-R2MlkUzD.js → p-BEEoVNRu.js} +1 -1
- package/dist/components/p-BUskqBR6.js +1 -0
- package/dist/components/{p-DkIVyFOP.js → p-BZ3M4lOU.js} +1 -1
- package/dist/components/{p-ZK8p5zax.js → p-Be9L4_Fe.js} +1 -1
- package/dist/components/p-Be_Pmccm.js +1 -0
- package/dist/components/{p-CPvqZNO8.js → p-Bl_tVzeq.js} +1 -1
- package/dist/components/p-C8yT2Ucq.js +1 -0
- package/dist/components/p-CA31vqjL.js +1 -0
- package/dist/components/p-CUfs0ROR.js +1 -0
- package/dist/components/{p-JYlmcxBn.js → p-CVrEuVFo.js} +1 -1
- package/dist/components/{p-B7Icv1ho.js → p-C_j_jDM6.js} +1 -1
- package/dist/components/p-CbimDNGY.js +1 -0
- package/dist/components/p-CeUK3n7D.js +1 -0
- package/dist/components/p-CncySD_-.js +1 -0
- package/dist/components/p-DE8K7fg0.js +1 -0
- package/dist/components/p-Dr0Qk9Zc.js +1 -0
- package/dist/components/p-DuLL7Ouw.js +1 -0
- package/dist/components/p-YsHQLXET.js +1 -0
- package/dist/components/p-qmS2CBqi.js +1 -0
- package/dist/components/{p-BYR_ZC8v.js → p-zTHlbyH6.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-accordion.entry.js +1 -1
- 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 +6 -3
- 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 +3 -3
- package/dist/esm/bs-card.entry.js +3 -3
- package/dist/esm/bs-carousel.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/bs-cookie-consent.entry.js +184 -0
- package/dist/esm/bs-data-table.entry.js +1 -1
- package/dist/esm/bs-datepicker.entry.js +13 -9
- package/dist/esm/bs-dialog.entry.js +1 -1
- package/dist/esm/bs-error-page.entry.js +101 -0
- package/dist/esm/bs-file-upload-item.entry.js +2 -2
- package/dist/esm/bs-file-upload.entry.js +2 -2
- package/dist/esm/bs-icon-button.entry.js +2 -2
- package/dist/esm/bs-icon-tile.entry.js +50 -0
- package/dist/esm/bs-inline-tab.entry.js +2 -2
- package/dist/esm/{bs-input_2.entry.js → bs-input_3.entry.js} +42 -7
- package/dist/esm/bs-logo.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/bs-onboarding-checklist.entry.js +159 -0
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-product-tour.entry.js +76 -0
- package/dist/esm/bs-progress-linear.entry.js +4 -4
- package/dist/esm/bs-progress.entry.js +3 -3
- package/dist/esm/bs-qr-code.entry.js +146 -0
- package/dist/esm/bs-radio.entry.js +2 -2
- package/dist/esm/bs-session-timeout.entry.js +213 -0
- package/dist/esm/bs-slider.entry.js +2 -2
- package/dist/esm/bs-snackbar.entry.js +9 -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_3.entry.js +251 -0
- package/dist/esm/bs-timepicker.entry.js +4 -4
- package/dist/esm/bs-toast.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/bs-whats-new.entry.js +142 -0
- package/dist/esm/{index-AgoOSYvW.js → index-DqQRXQMx.js} +15 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-attachment/bs-attachment.stories.d.ts +1 -1
- package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +4 -1
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +3 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.d.ts +136 -0
- package/dist/types/components/bs-cookie-consent/bs-cookie-consent.stories.d.ts +16 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.d.ts +2 -0
- package/dist/types/components/bs-error-page/bs-error-page.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-error-page/bs-error-page.d.ts +60 -0
- package/dist/types/components/bs-error-page/bs-error-page.stories.d.ts +22 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.d.ts +40 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.stories.d.ts +13 -0
- package/dist/types/components/bs-input/bs-input.d.ts +4 -1
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.d.ts +140 -0
- package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.d.ts +18 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.d.ts +78 -0
- package/dist/types/components/bs-product-tour/bs-product-tour.stories.d.ts +19 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.d.ts +124 -0
- package/dist/types/components/bs-qr-code/bs-qr-code.stories.d.ts +28 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.d.ts +141 -0
- package/dist/types/components/bs-session-timeout/bs-session-timeout.stories.d.ts +19 -0
- package/dist/types/components/bs-snackbar/bs-snackbar.d.ts +7 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +2 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.d.ts +147 -0
- package/dist/types/components/bs-whats-new/bs-whats-new.stories.d.ts +14 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.d.ts +53 -0
- package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.stories.d.ts +18 -0
- package/dist/types/components.d.ts +2642 -98
- package/package.json +3 -2
- package/dist/brandsync-wc/p-1c3a43c7.entry.js +0 -1
- package/dist/brandsync-wc/p-1c427ffb.entry.js +0 -1
- package/dist/brandsync-wc/p-4f2c4929.entry.js +0 -1
- package/dist/brandsync-wc/p-76e1c295.entry.js +0 -1
- package/dist/brandsync-wc/p-790db8b3.entry.js +0 -1
- package/dist/brandsync-wc/p-796a1860.entry.js +0 -1
- package/dist/brandsync-wc/p-806a5347.entry.js +0 -1
- package/dist/brandsync-wc/p-addfa0a0.entry.js +0 -1
- package/dist/brandsync-wc/p-c9a72416.entry.js +0 -1
- package/dist/brandsync-wc/p-d42b1c2b.entry.js +0 -1
- package/dist/brandsync-wc/p-f006d962.entry.js +0 -1
- package/dist/brandsync-wc/p-f074f94e.entry.js +0 -1
- package/dist/cjs/bs-menu.cjs.entry.js +0 -39
- package/dist/cjs/bs-tab.cjs.entry.js +0 -88
- package/dist/cjs/bs-tabs.cjs.entry.js +0 -133
- package/dist/components/p-BTvme8CE.js +0 -1
- package/dist/components/p-Ba860ej1.js +0 -1
- package/dist/components/p-CpUHnsq9.js +0 -1
- package/dist/components/p-jDO25SfF.js +0 -1
- package/dist/esm/bs-menu.entry.js +0 -37
- package/dist/esm/bs-tab.entry.js +0 -86
- package/dist/esm/bs-tabs.entry.js +0 -131
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
const sr = (root) => root.shadowRoot;
|
|
3
|
+
const part = (root, p) => sr(root).querySelector(`[part~="${p}"]`);
|
|
4
|
+
const text = (el) => (el?.textContent ?? '').replace(/\s+/g, ' ').trim();
|
|
5
|
+
const wait = (ms) => new Promise(r => setTimeout(r, ms));
|
|
6
|
+
const ENTRIES = [
|
|
7
|
+
{ id: 'reminders', category: 'features', tag: 'New feature', date: '24.09.2026', unread: true, heading: 'Smarter payment reminders', description: 'Reminders are now sent when each customer is most likely to pay.', actionLabel: 'Try it' },
|
|
8
|
+
{ id: 'banks', category: 'improvements', tag: 'Improvement', date: '18.09.2026', unread: true, heading: 'Bank rules support EUR and SEK', description: 'Create rules for transactions in euro and Swedish krona.' },
|
|
9
|
+
{ id: 'saft', category: 'fixes', tag: 'Fix', tagColor: 'success', date: '11.09.2026', heading: 'SAF-T export includes credit notes again', description: 'Credit notes from August are now included.' },
|
|
10
|
+
];
|
|
11
|
+
const entries = (root) => Array.from(sr(root).querySelectorAll('bs-whats-new-entry'));
|
|
12
|
+
describe('bs-whats-new', () => {
|
|
13
|
+
it('defaults to the feed, built on bs-card, as a labelled region', async () => {
|
|
14
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
15
|
+
expect(root).toEqualAttribute('type', 'feed');
|
|
16
|
+
expect(part(root, 'container').tagName).toBe('BS-CARD');
|
|
17
|
+
expect(part(root, 'container')).toEqualAttribute('role', 'region');
|
|
18
|
+
expect(part(root, 'container')).toEqualAttribute('aria-labelledby', 'heading');
|
|
19
|
+
expect(text(part(root, 'heading'))).toBe('What’s new');
|
|
20
|
+
});
|
|
21
|
+
describe('feed', () => {
|
|
22
|
+
it('is 400px wide (Figma) and lists one entry per update', async () => {
|
|
23
|
+
const { root: wrap } = await render(h("div", { style: { width: '800px' } }, h("bs-whats-new", { entries: ENTRIES })));
|
|
24
|
+
const root = wrap.querySelector('bs-whats-new');
|
|
25
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(400);
|
|
26
|
+
expect(entries(root)).toHaveLength(3);
|
|
27
|
+
expect(entries(root)[0].heading).toBe('Smarter payment reminders');
|
|
28
|
+
expect(entries(root)[2].tagColor).toBe('success');
|
|
29
|
+
});
|
|
30
|
+
it('has the four default filter tabs with All selected', async () => {
|
|
31
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
32
|
+
const tabs = Array.from(sr(root).querySelectorAll('bs-tab'));
|
|
33
|
+
expect(tabs.map(t => t.textContent.trim())).toEqual(['All', 'New Features', 'Improvements', 'Fixes']);
|
|
34
|
+
expect(tabs.map(t => t.value)).toEqual(['all', 'features', 'improvements', 'fixes']);
|
|
35
|
+
expect(tabs[0].selected).toBe(true);
|
|
36
|
+
});
|
|
37
|
+
it('filters entries by category when a tab is chosen, and emits bsFilterChange', async () => {
|
|
38
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
39
|
+
const events = [];
|
|
40
|
+
root.addEventListener('bsFilterChange', (e) => events.push(e.detail));
|
|
41
|
+
sr(root).querySelector('bs-tabs').dispatchEvent(new CustomEvent('bsChange', { detail: { value: 'fixes' }, bubbles: true }));
|
|
42
|
+
await waitForChanges();
|
|
43
|
+
expect(entries(root).map(e => e.heading)).toEqual(['SAF-T export includes credit notes again']);
|
|
44
|
+
expect(events).toEqual([{ value: 'fixes' }]);
|
|
45
|
+
expect(root.filter).toBe('fixes');
|
|
46
|
+
});
|
|
47
|
+
it('shows an empty message when a filter has nothing', async () => {
|
|
48
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES, filter: "nothing" }));
|
|
49
|
+
expect(entries(root)).toHaveLength(0);
|
|
50
|
+
expect(text(sr(root).querySelector('.bs-wn__empty'))).toBe('Nothing new here yet.');
|
|
51
|
+
});
|
|
52
|
+
it('takes custom filters, and none hides the tabs', async () => {
|
|
53
|
+
const a = await render(h("bs-whats-new", { entries: ENTRIES, filters: [{ value: 'all', label: 'Everything' }] }));
|
|
54
|
+
expect(Array.from(sr(a.root).querySelectorAll('bs-tab')).map(t => t.textContent.trim())).toEqual(['Everything']);
|
|
55
|
+
const b = await render(h("bs-whats-new", { entries: ENTRIES, filters: [] }));
|
|
56
|
+
expect(part(b.root, 'filters')).toBeNull();
|
|
57
|
+
});
|
|
58
|
+
it('shows Mark all as read only while something is unread, and emits bsMarkAllRead', async () => {
|
|
59
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
60
|
+
let n = 0;
|
|
61
|
+
root.addEventListener('bsMarkAllRead', () => n++);
|
|
62
|
+
part(root, 'mark-all-read').click();
|
|
63
|
+
await waitForChanges();
|
|
64
|
+
expect(n).toBe(1);
|
|
65
|
+
root.entries = ENTRIES.map(e => ({ ...e, unread: false }));
|
|
66
|
+
await waitForChanges();
|
|
67
|
+
expect(part(root, 'mark-all-read')).toBeNull();
|
|
68
|
+
});
|
|
69
|
+
it('passes the unread flag to each entry', async () => {
|
|
70
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
71
|
+
expect(entries(root).map(e => e.unread)).toEqual([true, true, false]);
|
|
72
|
+
});
|
|
73
|
+
it('emits bsEntryAction with the entry id', async () => {
|
|
74
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
75
|
+
let detail;
|
|
76
|
+
root.addEventListener('bsEntryAction', (e) => (detail = e.detail));
|
|
77
|
+
entries(root)[0].dispatchEvent(new CustomEvent('bsAction'));
|
|
78
|
+
await waitForChanges();
|
|
79
|
+
expect(detail).toEqual({ id: 'reminders' });
|
|
80
|
+
});
|
|
81
|
+
it('draws a divider between entries, and before the release notes link when there is one', async () => {
|
|
82
|
+
const a = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
83
|
+
expect(entries(a.root).map(e => e.divider)).toEqual([true, true, false]);
|
|
84
|
+
const b = await render(h("bs-whats-new", { entries: ENTRIES, releaseNotesUrl: "/notes" }));
|
|
85
|
+
expect(entries(b.root).map(e => e.divider)).toEqual([true, true, true]);
|
|
86
|
+
});
|
|
87
|
+
it('shows the release notes link only when releaseNotesUrl is set', async () => {
|
|
88
|
+
const a = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
89
|
+
expect(part(a.root, 'release-notes')).toBeNull();
|
|
90
|
+
const b = await render(h("bs-whats-new", { entries: ENTRIES, releaseNotesUrl: "/notes" }));
|
|
91
|
+
const link = part(b.root, 'release-notes');
|
|
92
|
+
expect(link.getAttribute('href')).toBe('/notes');
|
|
93
|
+
expect(text(link)).toBe('See all release notes');
|
|
94
|
+
});
|
|
95
|
+
it('shows the close button only when closable, and emits bsClose', async () => {
|
|
96
|
+
const a = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
97
|
+
expect(part(a.root, 'close')).toBeNull();
|
|
98
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { entries: ENTRIES, closable: true }));
|
|
99
|
+
let n = 0;
|
|
100
|
+
root.addEventListener('bsClose', () => n++);
|
|
101
|
+
part(root, 'close').click();
|
|
102
|
+
await waitForChanges();
|
|
103
|
+
expect(n).toBe(1);
|
|
104
|
+
});
|
|
105
|
+
it('renders an entry image from a URL', async () => {
|
|
106
|
+
const { root } = await render(h("bs-whats-new", { entries: [{ id: 'a', heading: 'A', image: 'data:image/gif;base64,R0lGODlhAQABAAAAACw=' }] }));
|
|
107
|
+
const img = entries(root)[0].querySelector('img[slot="image"]');
|
|
108
|
+
expect(img).not.toBeNull();
|
|
109
|
+
});
|
|
110
|
+
it('uses the Figma panel look: square corners, no rounding', async () => {
|
|
111
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES }));
|
|
112
|
+
const surface = part(root, 'container').shadowRoot.querySelector('.bs-card');
|
|
113
|
+
expect(getComputedStyle(surface).borderTopLeftRadius).toBe('0px');
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
describe('announcement', () => {
|
|
117
|
+
const props = { type: 'announcement', tag: 'New feature', heading: 'Payment reminders that pick the best time', points: ['Reminders go out at the time each customer usually pays', 'Fixed reminder days per customer still work', 'Turn it off any time under Settings › Reminders'], step: 1, total: 3 };
|
|
118
|
+
it('is 560px wide with the tag, heading, three points, "1 of 3" and Remind me later / Next', async () => {
|
|
119
|
+
const { root: wrap } = await render(h("div", { style: { width: '800px' } }, h("bs-whats-new", { ...props })));
|
|
120
|
+
const root = wrap.querySelector('bs-whats-new');
|
|
121
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(560);
|
|
122
|
+
expect(text(part(root, 'tag'))).toBe('New feature');
|
|
123
|
+
expect(text(part(root, 'heading'))).toBe('Payment reminders that pick the best time');
|
|
124
|
+
expect(sr(root).querySelectorAll('[part="points"] li')).toHaveLength(3);
|
|
125
|
+
expect(text(part(root, 'step'))).toBe('1 of 3');
|
|
126
|
+
expect(text(part(root, 'secondary'))).toBe('Remind me later');
|
|
127
|
+
expect(text(part(root, 'primary'))).toBe('Next');
|
|
128
|
+
});
|
|
129
|
+
it('emits bsSecondary, bsPrimary and bsClose', async () => {
|
|
130
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { ...props, closable: true }));
|
|
131
|
+
const events = [];
|
|
132
|
+
root.addEventListener('bsSecondary', () => events.push('secondary'));
|
|
133
|
+
root.addEventListener('bsPrimary', () => events.push('primary'));
|
|
134
|
+
root.addEventListener('bsClose', () => events.push('close'));
|
|
135
|
+
part(root, 'secondary').click();
|
|
136
|
+
part(root, 'primary').click();
|
|
137
|
+
part(root, 'close').click();
|
|
138
|
+
await waitForChanges();
|
|
139
|
+
expect(events).toEqual(['secondary', 'primary', 'close']);
|
|
140
|
+
});
|
|
141
|
+
it('has no hero until an image is given or slotted, then a 220px hero', async () => {
|
|
142
|
+
const a = await render(h("bs-whats-new", { ...props }));
|
|
143
|
+
expect(getComputedStyle(part(a.root, 'hero')).display).toBe('none');
|
|
144
|
+
const b = await render(h("bs-whats-new", { ...props, image: "data:image/gif;base64,R0lGODlhAQABAAAAACw=" }));
|
|
145
|
+
expect(Math.round(part(b.root, 'hero').getBoundingClientRect().height)).toBe(220);
|
|
146
|
+
const host = document.createElement('div');
|
|
147
|
+
host.innerHTML = `<bs-whats-new type="announcement" heading="H">
|
|
148
|
+
<div slot="hero">hero</div>
|
|
149
|
+
</bs-whats-new>`;
|
|
150
|
+
document.body.appendChild(host);
|
|
151
|
+
await wait(200);
|
|
152
|
+
const el = host.querySelector('bs-whats-new');
|
|
153
|
+
expect(Math.round(part(el, 'hero').getBoundingClientRect().height)).toBe(220);
|
|
154
|
+
host.remove();
|
|
155
|
+
});
|
|
156
|
+
it('hides the step label without a total, and buttons with empty labels', async () => {
|
|
157
|
+
const { root } = await render(h("bs-whats-new", { ...props, total: 0, secondaryLabel: "", primaryLabel: "" }));
|
|
158
|
+
expect(text(part(root, 'step'))).toBe('');
|
|
159
|
+
expect(part(root, 'secondary')).toBeNull();
|
|
160
|
+
expect(part(root, 'primary')).toBeNull();
|
|
161
|
+
});
|
|
162
|
+
it('customises the step template', async () => {
|
|
163
|
+
const { root } = await render(h("bs-whats-new", { ...props, step: 2, stepLabel: "{step}/{total}" }));
|
|
164
|
+
expect(text(part(root, 'step'))).toBe('2/3');
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
describe('teaser', () => {
|
|
168
|
+
const props = { type: 'teaser', tag: 'New', date: '24.09.2026', heading: 'Smarter payment reminders', description: 'See what changed and 1 other update.' };
|
|
169
|
+
it('is 300px wide with the tag, date, heading, text and Open What’s new', async () => {
|
|
170
|
+
const { root: wrap } = await render(h("div", { style: { width: '800px' } }, h("bs-whats-new", { ...props, closable: true })));
|
|
171
|
+
const root = wrap.querySelector('bs-whats-new');
|
|
172
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(300);
|
|
173
|
+
expect(text(part(root, 'tag'))).toBe('New');
|
|
174
|
+
expect(text(part(root, 'date'))).toBe('24.09.2026');
|
|
175
|
+
expect(text(part(root, 'heading'))).toBe('Smarter payment reminders');
|
|
176
|
+
expect(text(part(root, 'description'))).toBe('See what changed and 1 other update.');
|
|
177
|
+
expect(text(part(root, 'action'))).toBe('Open What’s new');
|
|
178
|
+
expect(part(root, 'close')).not.toBeNull();
|
|
179
|
+
});
|
|
180
|
+
it('emits bsOpen from the link and bsClose from the 24px close button', async () => {
|
|
181
|
+
const { root, waitForChanges } = await render(h("bs-whats-new", { ...props, closable: true }));
|
|
182
|
+
const events = [];
|
|
183
|
+
root.addEventListener('bsOpen', () => events.push('open'));
|
|
184
|
+
root.addEventListener('bsClose', () => events.push('close'));
|
|
185
|
+
part(root, 'action').click();
|
|
186
|
+
part(root, 'close').click();
|
|
187
|
+
await waitForChanges();
|
|
188
|
+
expect(events).toEqual(['open', 'close']);
|
|
189
|
+
expect(Math.round(part(root, 'close').getBoundingClientRect().width)).toBe(24);
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
it('renders the heading at the requested level, clamped to 1-6', async () => {
|
|
193
|
+
const tags = [];
|
|
194
|
+
for (const level of [1, 2, 9]) {
|
|
195
|
+
const { root } = await render(h("bs-whats-new", { entries: ENTRIES, headingLevel: level }));
|
|
196
|
+
tags.push(part(root, 'heading').tagName);
|
|
197
|
+
}
|
|
198
|
+
expect(tags).toEqual(['H1', 'H2', 'H6']);
|
|
199
|
+
});
|
|
200
|
+
});
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-whats-new-width: Width of the `feed` (400px), `announcement` (560px) and `teaser` (300px). Never wider than the container.
|
|
3
|
+
* @prop --bs-whats-new-padding: Padding of the `feed` and `teaser` cards and the `announcement` body. Aliased to --bs-spacing-200 (16px); the teaser uses 12px.
|
|
4
|
+
* @prop --bs-whats-new-color: Heading and text colour. Aliased to --bs-text-default.
|
|
5
|
+
* @prop --bs-whats-new-color-secondary: Date, description and step count colour. Aliased to --bs-text-secondary.
|
|
6
|
+
* @prop --bs-whats-new-border: The feed's left edge line. Aliased to --bs-border-default.
|
|
7
|
+
* @prop --bs-whats-new-hero-bg: Background of the announcement's hero area. Aliased to --bs-color-primary-container.
|
|
8
|
+
* @prop --bs-whats-new-hero-height: Height of the announcement's hero. 220px (Figma).
|
|
9
|
+
* @prop --bs-whats-new-link: Colour of the release notes link. Aliased to --bs-text-link.
|
|
10
|
+
* @prop --bs-whats-new-link-underline: Underline of the release notes link. Aliased to --bs-border-info.
|
|
11
|
+
*/
|
|
12
|
+
:host {
|
|
13
|
+
display: block;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
|
|
16
|
+
--bs-whats-new-width: 400px;
|
|
17
|
+
--bs-whats-new-padding: var(--bs-spacing-200);
|
|
18
|
+
--bs-whats-new-color: var(--bs-text-default);
|
|
19
|
+
--bs-whats-new-color-secondary: var(--bs-text-secondary);
|
|
20
|
+
--bs-whats-new-border: var(--bs-border-default);
|
|
21
|
+
--bs-whats-new-hero-bg: var(--bs-color-primary-container);
|
|
22
|
+
--bs-whats-new-hero-height: 220px;
|
|
23
|
+
--bs-whats-new-link: var(--bs-text-link);
|
|
24
|
+
--bs-whats-new-link-underline: var(--bs-border-info);
|
|
25
|
+
|
|
26
|
+
width: var(--bs-whats-new-width);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([type='announcement']) {
|
|
30
|
+
--bs-whats-new-width: 560px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([type='teaser']) {
|
|
34
|
+
--bs-whats-new-width: 300px;
|
|
35
|
+
--bs-whats-new-padding: var(--bs-spacing-150);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* bs-card supplies the surface; this only sets how it looks here. */
|
|
39
|
+
.bs-wn--feed {
|
|
40
|
+
--bs-card-radius: 0;
|
|
41
|
+
--bs-card-padding: var(--bs-whats-new-padding);
|
|
42
|
+
/* Figma: a docked panel -- a soft shadow and a line on its left edge (an inset shadow draws that line). */
|
|
43
|
+
--bs-card-shadow: 0 2px 2px var(--bs-elevation-medium), inset 1px 0 0 var(--bs-whats-new-border);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-wn--announcement {
|
|
47
|
+
position: relative;
|
|
48
|
+
--bs-card-radius: var(--bs-border-radius-200);
|
|
49
|
+
--bs-card-padding: 0;
|
|
50
|
+
--bs-card-shadow: 0 2px 4px var(--bs-elevation-medium);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.bs-wn--teaser {
|
|
54
|
+
--bs-card-radius: var(--bs-border-radius-100);
|
|
55
|
+
--bs-card-padding: var(--bs-whats-new-padding);
|
|
56
|
+
--bs-card-shadow: 0 4px 4px var(--bs-elevation-high);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bs-wn {
|
|
60
|
+
color: var(--bs-whats-new-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.bs-wn p,
|
|
64
|
+
.bs-wn ul,
|
|
65
|
+
.bs-wn h1,
|
|
66
|
+
.bs-wn h2,
|
|
67
|
+
.bs-wn h3,
|
|
68
|
+
.bs-wn h4,
|
|
69
|
+
.bs-wn h5,
|
|
70
|
+
.bs-wn h6 {
|
|
71
|
+
margin: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bs-wn__heading {
|
|
75
|
+
font-size: var(--bs-font-size-2xl);
|
|
76
|
+
font-weight: var(--bs-font-weight-bold);
|
|
77
|
+
line-height: 32px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.bs-wn__heading--lg {
|
|
81
|
+
align-self: stretch;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.bs-wn__heading--sm {
|
|
85
|
+
font-size: var(--bs-font-size-sm);
|
|
86
|
+
font-weight: var(--bs-font-weight-semibold);
|
|
87
|
+
line-height: 20px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.bs-wn__spacer {
|
|
91
|
+
flex: 1 1 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bs-wn__text-button {
|
|
95
|
+
--bs-button-subtle-color: var(--bs-text-action);
|
|
96
|
+
--bs-button-height-sm: var(--bs-spacing-400);
|
|
97
|
+
--bs-button-padding-x-sm: var(--bs-spacing-150);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.bs-wn__text-button--md {
|
|
101
|
+
--bs-button-height-md: var(--bs-spacing-550);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.bs-wn__close {
|
|
105
|
+
flex: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.bs-wn__close svg {
|
|
109
|
+
width: 20px;
|
|
110
|
+
height: 20px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Figma: the teaser's close button is 24px (bs-icon-button's own sizes are 16 / 40 / 44 / 48), with the
|
|
114
|
+
same 20px icon. */
|
|
115
|
+
.bs-wn__close--compact {
|
|
116
|
+
--bs-icon-button-size-md: 24px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* --- feed ----------------------------------------------------------------------------------- */
|
|
120
|
+
.bs-wn__feed {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: var(--bs-spacing-100);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.bs-wn__head {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: var(--bs-spacing-100);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* The tabs row can be wider than the panel; it scrolls sideways, without a scrollbar, as in the Figma. */
|
|
133
|
+
.bs-wn__filters {
|
|
134
|
+
overflow-x: auto;
|
|
135
|
+
scrollbar-width: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.bs-wn__filters::-webkit-scrollbar {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.bs-wn__entries {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
padding-top: var(--bs-spacing-200);
|
|
146
|
+
padding-bottom: var(--bs-spacing-100);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.bs-wn__empty {
|
|
150
|
+
padding: var(--bs-spacing-300) 0;
|
|
151
|
+
color: var(--bs-whats-new-color-secondary);
|
|
152
|
+
font-size: var(--bs-font-size-sm);
|
|
153
|
+
line-height: 20px;
|
|
154
|
+
text-align: center;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.bs-wn__footer {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
padding-top: var(--bs-spacing-150);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.bs-wn__link {
|
|
164
|
+
display: inline-flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
gap: var(--bs-spacing-25);
|
|
167
|
+
color: var(--bs-whats-new-link);
|
|
168
|
+
font-size: var(--bs-font-size-xs);
|
|
169
|
+
line-height: 16px;
|
|
170
|
+
text-decoration: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.bs-wn__link-text {
|
|
174
|
+
border-bottom: 1px solid var(--bs-whats-new-link-underline);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.bs-wn__link svg {
|
|
178
|
+
width: 16px;
|
|
179
|
+
height: 16px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.bs-wn__link:focus-visible {
|
|
183
|
+
outline: 2px solid var(--bs-border-neutral-focus);
|
|
184
|
+
outline-offset: 2px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* --- announcement --------------------------------------------------------------------------- */
|
|
188
|
+
.bs-wn__announcement {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.bs-wn--announcement .bs-wn__close {
|
|
194
|
+
position: absolute;
|
|
195
|
+
z-index: 1;
|
|
196
|
+
top: var(--bs-spacing-50);
|
|
197
|
+
inset-inline-end: var(--bs-spacing-50);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.bs-wn__hero {
|
|
201
|
+
display: none;
|
|
202
|
+
height: var(--bs-whats-new-hero-height);
|
|
203
|
+
background: var(--bs-whats-new-hero-bg);
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.bs-wn__hero--visible {
|
|
208
|
+
display: block;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.bs-wn__hero img,
|
|
212
|
+
::slotted([slot='hero']) {
|
|
213
|
+
display: block;
|
|
214
|
+
width: 100%;
|
|
215
|
+
height: 100%;
|
|
216
|
+
object-fit: cover;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.bs-wn__body {
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
align-items: flex-start;
|
|
223
|
+
gap: var(--bs-spacing-150);
|
|
224
|
+
padding: var(--bs-whats-new-padding);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.bs-wn__points {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: var(--bs-spacing-150);
|
|
231
|
+
align-self: stretch;
|
|
232
|
+
padding: 0;
|
|
233
|
+
list-style: none;
|
|
234
|
+
font-size: var(--bs-font-size-sm);
|
|
235
|
+
line-height: 20px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.bs-wn__points li {
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: var(--bs-spacing-150);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.bs-wn__check {
|
|
245
|
+
flex: none;
|
|
246
|
+
width: 18px;
|
|
247
|
+
height: 18px;
|
|
248
|
+
color: var(--bs-icon-action);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.bs-wn__announcement-footer {
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
justify-content: space-between;
|
|
255
|
+
gap: var(--bs-spacing-100);
|
|
256
|
+
align-self: stretch;
|
|
257
|
+
padding-top: var(--bs-spacing-100);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.bs-wn__step {
|
|
261
|
+
color: var(--bs-whats-new-color-secondary);
|
|
262
|
+
font-size: var(--bs-font-size-xs);
|
|
263
|
+
line-height: 16px;
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.bs-wn__actions {
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
gap: var(--bs-spacing-100);
|
|
271
|
+
margin-inline-start: auto;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.bs-wn__actions bs-button {
|
|
275
|
+
--bs-button-height-md: var(--bs-spacing-550);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* --- teaser --------------------------------------------------------------------------------- */
|
|
279
|
+
.bs-wn__teaser {
|
|
280
|
+
display: flex;
|
|
281
|
+
flex-direction: column;
|
|
282
|
+
align-items: flex-start;
|
|
283
|
+
gap: var(--bs-spacing-75);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.bs-wn__teaser-row {
|
|
287
|
+
display: flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
gap: var(--bs-spacing-100);
|
|
290
|
+
align-self: stretch;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.bs-wn__date {
|
|
294
|
+
color: var(--bs-whats-new-color-secondary);
|
|
295
|
+
font-size: var(--bs-font-size-xs);
|
|
296
|
+
line-height: 16px;
|
|
297
|
+
white-space: nowrap;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.bs-wn__description {
|
|
301
|
+
color: var(--bs-whats-new-color-secondary);
|
|
302
|
+
font-size: var(--bs-font-size-sm);
|
|
303
|
+
line-height: 20px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.bs-wn__link-button {
|
|
307
|
+
--bs-button-padding-x-label-side: var(--bs-spacing-150);
|
|
308
|
+
--bs-button-padding-x-icon-side: var(--bs-spacing-100);
|
|
309
|
+
margin-inline-start: calc(var(--bs-spacing-150) * -1);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.bs-wn__link-button svg {
|
|
313
|
+
width: 20px;
|
|
314
|
+
height: 20px;
|
|
315
|
+
}
|