@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,105 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
+
import { componentDescription, propDescription } from "../../stories-utils";
|
|
4
|
+
const ENTRIES = [
|
|
5
|
+
{
|
|
6
|
+
id: 'reminders',
|
|
7
|
+
category: 'features',
|
|
8
|
+
tag: 'New feature',
|
|
9
|
+
date: '24.09.2026',
|
|
10
|
+
unread: true,
|
|
11
|
+
heading: 'Smarter payment reminders',
|
|
12
|
+
description: 'Reminders are now sent when each customer is most likely to pay. You can still set fixed days per customer.',
|
|
13
|
+
actionLabel: 'Try it',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'banks',
|
|
17
|
+
category: 'improvements',
|
|
18
|
+
tag: 'Improvement',
|
|
19
|
+
date: '18.09.2026',
|
|
20
|
+
unread: true,
|
|
21
|
+
heading: 'Bank rules support EUR and SEK',
|
|
22
|
+
description: 'Create rules for transactions in euro and Swedish krona, and match them to invoices in NOK or DKK.',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'saft',
|
|
26
|
+
category: 'fixes',
|
|
27
|
+
tag: 'Fix',
|
|
28
|
+
tagColor: 'success',
|
|
29
|
+
date: '11.09.2026',
|
|
30
|
+
heading: 'SAF-T export includes credit notes again',
|
|
31
|
+
description: 'Credit notes from August are now included. Re-export the file if you sent it before 11.09.2026.',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
const meta = {
|
|
35
|
+
title: 'Components/bs-whats-new',
|
|
36
|
+
parameters: { docs: { description: { component: componentDescription('bs-whats-new') } } },
|
|
37
|
+
decorators: [story => html `<div style="padding: 16px; background: var(--bs-color-neutral-container);">${story()}</div>`],
|
|
38
|
+
render: args => html `
|
|
39
|
+
<bs-whats-new
|
|
40
|
+
type=${args.type}
|
|
41
|
+
heading=${ifDefined(args.heading || undefined)}
|
|
42
|
+
?closable=${args.closable}
|
|
43
|
+
release-notes-url=${ifDefined(args.releaseNotesUrl || undefined)}
|
|
44
|
+
.entries=${ENTRIES}
|
|
45
|
+
.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']}
|
|
46
|
+
tag="New feature"
|
|
47
|
+
step="1"
|
|
48
|
+
total="3"
|
|
49
|
+
date="24.09.2026"
|
|
50
|
+
description="See what changed and 1 other update."
|
|
51
|
+
@bsMarkAllRead=${() => console.log('bsMarkAllRead')}
|
|
52
|
+
@bsEntryAction=${(ev) => console.log('bsEntryAction', ev.detail)}
|
|
53
|
+
@bsFilterChange=${(ev) => console.log('bsFilterChange', ev.detail)}
|
|
54
|
+
@bsClose=${() => console.log('bsClose')}
|
|
55
|
+
@bsPrimary=${() => console.log('bsPrimary')}
|
|
56
|
+
@bsSecondary=${() => console.log('bsSecondary')}
|
|
57
|
+
@bsOpen=${() => console.log('bsOpen')}
|
|
58
|
+
></bs-whats-new>
|
|
59
|
+
`,
|
|
60
|
+
argTypes: {
|
|
61
|
+
type: { control: 'inline-radio', options: ['feed', 'announcement', 'teaser'], description: propDescription('bs-whats-new', 'type') },
|
|
62
|
+
heading: { control: 'text', description: propDescription('bs-whats-new', 'heading') },
|
|
63
|
+
closable: { control: 'boolean', description: propDescription('bs-whats-new', 'closable') },
|
|
64
|
+
releaseNotesUrl: { control: 'text', description: propDescription('bs-whats-new', 'releaseNotesUrl') },
|
|
65
|
+
},
|
|
66
|
+
args: { type: 'feed', heading: '', closable: true, releaseNotesUrl: '#release-notes' },
|
|
67
|
+
};
|
|
68
|
+
export default meta;
|
|
69
|
+
export const Feed = {};
|
|
70
|
+
export const Announcement = {
|
|
71
|
+
args: { type: 'announcement', heading: 'Payment reminders that pick the best time' },
|
|
72
|
+
render: args => html `
|
|
73
|
+
<bs-whats-new
|
|
74
|
+
type="announcement"
|
|
75
|
+
heading=${args.heading}
|
|
76
|
+
?closable=${args.closable}
|
|
77
|
+
tag="New feature"
|
|
78
|
+
step="1"
|
|
79
|
+
total="3"
|
|
80
|
+
.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']}
|
|
81
|
+
@bsPrimary=${() => console.log('bsPrimary')}
|
|
82
|
+
@bsSecondary=${() => console.log('bsSecondary')}
|
|
83
|
+
@bsClose=${() => console.log('bsClose')}
|
|
84
|
+
>
|
|
85
|
+
<div slot="hero" style="width: 100%; height: 100%;"></div>
|
|
86
|
+
</bs-whats-new>
|
|
87
|
+
`,
|
|
88
|
+
};
|
|
89
|
+
export const Teaser = {
|
|
90
|
+
args: { type: 'teaser', heading: 'Smarter payment reminders' },
|
|
91
|
+
};
|
|
92
|
+
// Your app owns the entries: mark them read and the dots and the "Mark all as read" button go away.
|
|
93
|
+
export const Interactive = {
|
|
94
|
+
render: () => html `
|
|
95
|
+
<bs-whats-new
|
|
96
|
+
closable
|
|
97
|
+
release-notes-url="#release-notes"
|
|
98
|
+
.entries=${ENTRIES}
|
|
99
|
+
@bsMarkAllRead=${(ev) => {
|
|
100
|
+
const el = ev.currentTarget;
|
|
101
|
+
el.entries = el.entries.map(e => ({ ...e, unread: false }));
|
|
102
|
+
}}
|
|
103
|
+
></bs-whats-new>
|
|
104
|
+
`,
|
|
105
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
describe('bs-whats-new-entry', () => {
|
|
6
|
+
it('renders tag, date, title and description', async () => {
|
|
7
|
+
const { root } = await render(h("bs-whats-new-entry", { tag: "New feature", date: "24.09.2026", heading: "Smarter payment reminders", description: "Sent when each customer is most likely to pay." }));
|
|
8
|
+
expect(text(part(root, 'tag'))).toBe('New feature');
|
|
9
|
+
expect(text(part(root, 'date'))).toBe('24.09.2026');
|
|
10
|
+
expect(text(part(root, 'heading'))).toBe('Smarter payment reminders');
|
|
11
|
+
expect(text(part(root, 'description'))).toBe('Sent when each customer is most likely to pay.');
|
|
12
|
+
});
|
|
13
|
+
it('is built on bs-chip-informative (sm) and bs-button', async () => {
|
|
14
|
+
const { root } = await render(h("bs-whats-new-entry", { tag: "Fix", tagColor: "success", actionLabel: "Try it" }));
|
|
15
|
+
const chip = part(root, 'tag');
|
|
16
|
+
expect(chip.tagName).toBe('BS-CHIP-INFORMATIVE');
|
|
17
|
+
expect(chip.size).toBe('sm');
|
|
18
|
+
expect(chip.color).toBe('success');
|
|
19
|
+
expect(part(root, 'action').tagName).toBe('BS-BUTTON');
|
|
20
|
+
});
|
|
21
|
+
it('defaults the tag colour to info', async () => {
|
|
22
|
+
const { root } = await render(h("bs-whats-new-entry", { tag: "Improvement" }));
|
|
23
|
+
expect(part(root, 'tag').color).toBe('info');
|
|
24
|
+
});
|
|
25
|
+
it('shows the unread dot only when unread, with hidden text for assistive tech', async () => {
|
|
26
|
+
const a = await render(h("bs-whats-new-entry", { date: "24.09.2026" }));
|
|
27
|
+
expect(part(a.root, 'unread')).toBeNull();
|
|
28
|
+
const b = await render(h("bs-whats-new-entry", { date: "24.09.2026", unread: true }));
|
|
29
|
+
expect(part(b.root, 'unread')).not.toBeNull();
|
|
30
|
+
expect(text(part(b.root, 'unread'))).toBe('Unread');
|
|
31
|
+
expect(Math.round(part(b.root, 'unread').getBoundingClientRect().width)).toBe(8);
|
|
32
|
+
});
|
|
33
|
+
it('omits anything not given, with no empty meta row', async () => {
|
|
34
|
+
const { root } = await render(h("bs-whats-new-entry", { heading: "Just a title" }));
|
|
35
|
+
expect(part(root, 'meta')).toBeNull();
|
|
36
|
+
expect(part(root, 'description')).toBeNull();
|
|
37
|
+
expect(part(root, 'action')).toBeNull();
|
|
38
|
+
expect(part(root, 'divider')).toBeNull();
|
|
39
|
+
});
|
|
40
|
+
it('renders the title at the requested level, clamped to 1-6', async () => {
|
|
41
|
+
const tags = [];
|
|
42
|
+
for (const level of [1, 3, 9]) {
|
|
43
|
+
const { root } = await render(h("bs-whats-new-entry", { heading: "T", headingLevel: level }));
|
|
44
|
+
tags.push(part(root, 'heading').tagName);
|
|
45
|
+
}
|
|
46
|
+
expect(tags).toEqual(['H1', 'H3', 'H6']);
|
|
47
|
+
});
|
|
48
|
+
it('emits bsAction from the action link', async () => {
|
|
49
|
+
const { root, waitForChanges } = await render(h("bs-whats-new-entry", { actionLabel: "Try it" }));
|
|
50
|
+
let n = 0;
|
|
51
|
+
root.addEventListener('bsAction', () => n++);
|
|
52
|
+
part(root, 'action').click();
|
|
53
|
+
await waitForChanges();
|
|
54
|
+
expect(n).toBe(1);
|
|
55
|
+
});
|
|
56
|
+
describe('image', () => {
|
|
57
|
+
it('has no image area (and no gap) until something is slotted', async () => {
|
|
58
|
+
const { root } = await render(h("bs-whats-new-entry", { heading: "T" }));
|
|
59
|
+
expect(getComputedStyle(part(root, 'image')).display).toBe('none');
|
|
60
|
+
});
|
|
61
|
+
it('shows a 140px image area once an image is slotted, even with whitespace around it in an HTML template', async () => {
|
|
62
|
+
const host = document.createElement('div');
|
|
63
|
+
host.innerHTML = `<bs-whats-new-entry heading="T">
|
|
64
|
+
<img slot="image" alt="" src="data:image/gif;base64,R0lGODlhAQABAAAAACw=" />
|
|
65
|
+
</bs-whats-new-entry>`;
|
|
66
|
+
document.body.appendChild(host);
|
|
67
|
+
await new Promise(r => setTimeout(r, 200));
|
|
68
|
+
const entry = host.querySelector('bs-whats-new-entry');
|
|
69
|
+
expect(Math.round(part(entry, 'image').getBoundingClientRect().height)).toBe(140);
|
|
70
|
+
host.remove();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
it('draws an 8px divider row only when asked', async () => {
|
|
74
|
+
const a = await render(h("bs-whats-new-entry", { heading: "T" }));
|
|
75
|
+
expect(part(a.root, 'divider')).toBeNull();
|
|
76
|
+
const b = await render(h("bs-whats-new-entry", { heading: "T", divider: true }));
|
|
77
|
+
expect(part(b.root, 'divider').getBoundingClientRect().height).toBe(8);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-whats-new-entry-gap: Gap between the meta row, image and content. Aliased to --bs-spacing-100 (8px).
|
|
3
|
+
* @prop --bs-whats-new-entry-color: Title colour. Aliased to --bs-text-default.
|
|
4
|
+
* @prop --bs-whats-new-entry-color-secondary: Date and description colour. Aliased to --bs-text-secondary.
|
|
5
|
+
* @prop --bs-whats-new-entry-unread: Colour of the unread dot. Aliased to --bs-color-primary-default.
|
|
6
|
+
* @prop --bs-whats-new-entry-image-bg: Background behind the image slot (shows while the image loads). Aliased to --bs-color-primary-container.
|
|
7
|
+
* @prop --bs-whats-new-entry-image-height: Height of the image area. 140px (Figma).
|
|
8
|
+
* @prop --bs-whats-new-entry-image-radius: Corner radius of the image area. Aliased to --bs-border-radius-100.
|
|
9
|
+
* @prop --bs-whats-new-entry-divider: Colour of the rule under the entry. Aliased to --bs-border-default.
|
|
10
|
+
*/
|
|
11
|
+
:host {
|
|
12
|
+
display: block;
|
|
13
|
+
|
|
14
|
+
--bs-whats-new-entry-gap: var(--bs-spacing-100);
|
|
15
|
+
--bs-whats-new-entry-color: var(--bs-text-default);
|
|
16
|
+
--bs-whats-new-entry-color-secondary: var(--bs-text-secondary);
|
|
17
|
+
--bs-whats-new-entry-unread: var(--bs-color-primary-default);
|
|
18
|
+
--bs-whats-new-entry-image-bg: var(--bs-color-primary-container);
|
|
19
|
+
--bs-whats-new-entry-image-height: 140px;
|
|
20
|
+
--bs-whats-new-entry-image-radius: var(--bs-border-radius-100);
|
|
21
|
+
--bs-whats-new-entry-divider: var(--bs-border-default);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.bs-whats-new-entry {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: var(--bs-whats-new-entry-gap);
|
|
28
|
+
color: var(--bs-whats-new-entry-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.bs-whats-new-entry p,
|
|
32
|
+
.bs-whats-new-entry h1,
|
|
33
|
+
.bs-whats-new-entry h2,
|
|
34
|
+
.bs-whats-new-entry h3,
|
|
35
|
+
.bs-whats-new-entry h4,
|
|
36
|
+
.bs-whats-new-entry h5,
|
|
37
|
+
.bs-whats-new-entry h6 {
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.bs-whats-new-entry__meta {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--bs-spacing-100);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bs-whats-new-entry__date {
|
|
48
|
+
color: var(--bs-whats-new-entry-color-secondary);
|
|
49
|
+
font-size: var(--bs-font-size-xs);
|
|
50
|
+
line-height: 16px;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.bs-whats-new-entry__unread {
|
|
55
|
+
flex: none;
|
|
56
|
+
width: 8px;
|
|
57
|
+
height: 8px;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background: var(--bs-whats-new-entry-unread);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bs-whats-new-entry__sr-only {
|
|
63
|
+
position: absolute;
|
|
64
|
+
width: 1px;
|
|
65
|
+
height: 1px;
|
|
66
|
+
margin: -1px;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
clip-path: inset(50%);
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* No box at all until something is slotted, so an entry without an image has no empty gap. */
|
|
73
|
+
.bs-whats-new-entry__image {
|
|
74
|
+
display: none;
|
|
75
|
+
height: var(--bs-whats-new-entry-image-height);
|
|
76
|
+
border-radius: var(--bs-whats-new-entry-image-radius);
|
|
77
|
+
background: var(--bs-whats-new-entry-image-bg);
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bs-whats-new-entry__image--visible {
|
|
82
|
+
display: block;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::slotted([slot='image']) {
|
|
86
|
+
display: block;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
object-fit: cover;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.bs-whats-new-entry__content {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: var(--bs-spacing-100);
|
|
96
|
+
align-items: flex-start;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bs-whats-new-entry__heading {
|
|
100
|
+
align-self: stretch;
|
|
101
|
+
font-size: var(--bs-font-size-md);
|
|
102
|
+
font-weight: var(--bs-font-weight-bold);
|
|
103
|
+
line-height: 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.bs-whats-new-entry__description {
|
|
107
|
+
align-self: stretch;
|
|
108
|
+
color: var(--bs-whats-new-entry-color-secondary);
|
|
109
|
+
font-size: var(--bs-font-size-sm);
|
|
110
|
+
line-height: 20px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Figma: the link has 12px of padding before its text (and 8px after the arrow), and sits flush with the
|
|
114
|
+
rest of the entry's content. */
|
|
115
|
+
.bs-whats-new-entry__action {
|
|
116
|
+
--bs-button-subtle-color: var(--bs-text-action);
|
|
117
|
+
--bs-button-height-sm: var(--bs-spacing-400);
|
|
118
|
+
--bs-button-padding-x-label-side: var(--bs-spacing-150);
|
|
119
|
+
--bs-button-padding-x-icon-side: var(--bs-spacing-100);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.bs-whats-new-entry__action svg {
|
|
123
|
+
width: 20px;
|
|
124
|
+
height: 20px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Figma: an 8px row with a 1px rule centred in it. */
|
|
128
|
+
.bs-whats-new-entry__divider {
|
|
129
|
+
height: 8px;
|
|
130
|
+
background: linear-gradient(var(--bs-whats-new-entry-divider), var(--bs-whats-new-entry-divider)) center / 100% 1px no-repeat;
|
|
131
|
+
}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* One update in a "What's new" list: a tag ("New feature", "Improvement", "Fix"), a date, an unread dot,
|
|
4
|
+
* an optional image, a title, a short description and an optional action link ("Try it"). Matches the Figma
|
|
5
|
+
* "What's new / Entry" component. It is a plain block of content -- no card -- so it can sit in a feed
|
|
6
|
+
* (`bs-whats-new`), a list, or a page of release notes.
|
|
7
|
+
*
|
|
8
|
+
* **Built from:** `bs-chip-informative` (the tag) and `bs-button` (the action).
|
|
9
|
+
*
|
|
10
|
+
* ## When to use
|
|
11
|
+
* - Announcing a change to the product, with enough detail to know whether it matters.
|
|
12
|
+
*
|
|
13
|
+
* ## When not to use
|
|
14
|
+
* - A message about the user's own data or an action they just took -- use `bs-snackbar` or `bs-toast`.
|
|
15
|
+
*
|
|
16
|
+
* @slot image - An image (or any media) shown above the title. Nothing is shown when empty.
|
|
17
|
+
* @part meta - The row with the tag, date and unread dot.
|
|
18
|
+
* @part tag - The tag chip.
|
|
19
|
+
* @part date - The date.
|
|
20
|
+
* @part unread - The unread dot.
|
|
21
|
+
* @part image - The wrapper around the image slot.
|
|
22
|
+
* @part heading - The title.
|
|
23
|
+
* @part description - The description.
|
|
24
|
+
* @part action - The action button.
|
|
25
|
+
* @part divider - The rule under the entry.
|
|
26
|
+
*/
|
|
27
|
+
export class BsWhatsNewEntry {
|
|
28
|
+
/** The tag text, e.g. "New feature". No tag when empty. */
|
|
29
|
+
tag;
|
|
30
|
+
/** Colour of the tag: `info` (default), `success`, `warning`, `error` or `neutral`. */
|
|
31
|
+
tagColor = 'info';
|
|
32
|
+
/** The date as text, already formatted for the reader (e.g. "24.09.2026"). */
|
|
33
|
+
date;
|
|
34
|
+
/** Shows a dot after the date for an update the user hasn't seen. */
|
|
35
|
+
unread = false;
|
|
36
|
+
/** Title. */
|
|
37
|
+
heading;
|
|
38
|
+
/** HTML heading level for the title, 1-6. */
|
|
39
|
+
headingLevel = 3;
|
|
40
|
+
/** Short description under the title. */
|
|
41
|
+
description;
|
|
42
|
+
/** Label of the action link (e.g. "Try it"). No action when empty. */
|
|
43
|
+
actionLabel;
|
|
44
|
+
/** Draws a rule under the entry, to separate it from the next one. */
|
|
45
|
+
divider = false;
|
|
46
|
+
/** Visually hidden text for the unread dot. */
|
|
47
|
+
unreadLabel = 'Unread';
|
|
48
|
+
/** Fires when the action link is pressed. */
|
|
49
|
+
bsAction;
|
|
50
|
+
hasImage = false;
|
|
51
|
+
render() {
|
|
52
|
+
const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 3));
|
|
53
|
+
return (h("div", { key: 'f3b59b9886ee7dc0cff3ce37ef361081d268c301', class: "bs-whats-new-entry" }, (this.tag || this.date || this.unread) && (h("div", { key: '849ff3110f9b5e8862d2e8743c69e37a3913ba3f', part: "meta", class: "bs-whats-new-entry__meta" }, this.tag && (h("bs-chip-informative", { key: '1e3ab58124be4aac1785ac5094f607eebba06ada', part: "tag", size: "sm", color: this.tagColor }, this.tag)), this.date && (h("span", { key: '351f70bd49e94fd4848e34d2b134dda0a76aa3ce', part: "date", class: "bs-whats-new-entry__date" }, this.date)), this.unread && (h("span", { key: '9e5341acb5e4b5628ad9c567ca30d87f03c7c511', part: "unread", class: "bs-whats-new-entry__unread" }, h("span", { key: 'cca65aff39503436f75f7e1a6eada38975985b63', class: "bs-whats-new-entry__sr-only" }, this.unreadLabel))))), h("div", { key: '9c4e28e9687456fbe4b40fdba7e22dc162ea26c7', part: "image", class: { 'bs-whats-new-entry__image': true, 'bs-whats-new-entry__image--visible': this.hasImage } }, h("slot", { key: '4e698f6b9cd3bc68c4723877a6c257c2cdafb5a4', name: "image", onSlotchange: (ev) => (this.hasImage = ev.target.assignedNodes().length > 0) })), h("div", { key: '60e73438ed675a12159986ae8352b1c5b2735fb1', class: "bs-whats-new-entry__content" }, this.heading && h(`h${level}`, { part: 'heading', class: { 'bs-whats-new-entry__heading': true } }, this.heading), this.description && (h("p", { key: 'ddf69ede4112a2da4554b0ed4dae5664f739c055', part: "description", class: "bs-whats-new-entry__description" }, this.description)), this.actionLabel && (h("bs-button", { key: 'a6465a5bfab7ee0ccf8e26eb6221e566ad483b2e', part: "action", class: "bs-whats-new-entry__action", variant: "subtle", size: "sm", onClick: () => this.bsAction.emit() }, this.actionLabel, h("svg", { key: 'd45596c561a1366f54beaf3c5ba62084581742fe', slot: "end-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { key: 'a87b5824ff0fe97c7c025096e432948864e1d19b', d: "M5 12H19" }), h("path", { key: '96659132bb0262ed354a33c2c33d48dde199a95b', d: "M13 6L19 12L13 18" }))))), this.divider && h("div", { key: '25381aa31681ccdb1e18fe74a019bd57e1fa8a62', part: "divider", class: "bs-whats-new-entry__divider" })));
|
|
54
|
+
}
|
|
55
|
+
static get is() { return "bs-whats-new-entry"; }
|
|
56
|
+
static get encapsulation() { return "shadow"; }
|
|
57
|
+
static get originalStyleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["bs-whats-new-entry.css"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get styleUrls() {
|
|
63
|
+
return {
|
|
64
|
+
"$": ["bs-whats-new-entry.css"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get properties() {
|
|
68
|
+
return {
|
|
69
|
+
"tag": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "string",
|
|
74
|
+
"resolved": "string",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "The tag text, e.g. \"New feature\". No tag when empty."
|
|
82
|
+
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"attribute": "tag"
|
|
87
|
+
},
|
|
88
|
+
"tagColor": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "BsWhatsNewEntryTagColor",
|
|
93
|
+
"resolved": "\"error\" | \"info\" | \"neutral\" | \"success\" | \"warning\"",
|
|
94
|
+
"references": {
|
|
95
|
+
"BsWhatsNewEntryTagColor": {
|
|
96
|
+
"location": "local",
|
|
97
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-whats-new-entry/bs-whats-new-entry.tsx",
|
|
98
|
+
"id": "src/components/bs-whats-new-entry/bs-whats-new-entry.tsx::BsWhatsNewEntryTagColor"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "Colour of the tag: `info` (default), `success`, `warning`, `error` or `neutral`."
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"attribute": "tag-color",
|
|
112
|
+
"defaultValue": "'info'"
|
|
113
|
+
},
|
|
114
|
+
"date": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": "The date as text, already formatted for the reader (e.g. \"24.09.2026\")."
|
|
127
|
+
},
|
|
128
|
+
"getter": false,
|
|
129
|
+
"setter": false,
|
|
130
|
+
"reflect": false,
|
|
131
|
+
"attribute": "date"
|
|
132
|
+
},
|
|
133
|
+
"unread": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "boolean",
|
|
138
|
+
"resolved": "boolean",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Shows a dot after the date for an update the user hasn't seen."
|
|
146
|
+
},
|
|
147
|
+
"getter": false,
|
|
148
|
+
"setter": false,
|
|
149
|
+
"reflect": true,
|
|
150
|
+
"attribute": "unread",
|
|
151
|
+
"defaultValue": "false"
|
|
152
|
+
},
|
|
153
|
+
"heading": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": true,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": "Title."
|
|
166
|
+
},
|
|
167
|
+
"getter": false,
|
|
168
|
+
"setter": false,
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"attribute": "heading"
|
|
171
|
+
},
|
|
172
|
+
"headingLevel": {
|
|
173
|
+
"type": "number",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "number",
|
|
177
|
+
"resolved": "number",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": "HTML heading level for the title, 1-6."
|
|
185
|
+
},
|
|
186
|
+
"getter": false,
|
|
187
|
+
"setter": false,
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"attribute": "heading-level",
|
|
190
|
+
"defaultValue": "3"
|
|
191
|
+
},
|
|
192
|
+
"description": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "string",
|
|
197
|
+
"resolved": "string",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": "Short description under the title."
|
|
205
|
+
},
|
|
206
|
+
"getter": false,
|
|
207
|
+
"setter": false,
|
|
208
|
+
"reflect": false,
|
|
209
|
+
"attribute": "description"
|
|
210
|
+
},
|
|
211
|
+
"actionLabel": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "string",
|
|
216
|
+
"resolved": "string",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": true,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Label of the action link (e.g. \"Try it\"). No action when empty."
|
|
224
|
+
},
|
|
225
|
+
"getter": false,
|
|
226
|
+
"setter": false,
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"attribute": "action-label"
|
|
229
|
+
},
|
|
230
|
+
"divider": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Draws a rule under the entry, to separate it from the next one."
|
|
243
|
+
},
|
|
244
|
+
"getter": false,
|
|
245
|
+
"setter": false,
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"attribute": "divider",
|
|
248
|
+
"defaultValue": "false"
|
|
249
|
+
},
|
|
250
|
+
"unreadLabel": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "string",
|
|
255
|
+
"resolved": "string",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Visually hidden text for the unread dot."
|
|
263
|
+
},
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false,
|
|
266
|
+
"reflect": false,
|
|
267
|
+
"attribute": "unread-label",
|
|
268
|
+
"defaultValue": "'Unread'"
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
static get states() {
|
|
273
|
+
return {
|
|
274
|
+
"hasImage": {}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
static get events() {
|
|
278
|
+
return [{
|
|
279
|
+
"method": "bsAction",
|
|
280
|
+
"name": "bsAction",
|
|
281
|
+
"bubbles": true,
|
|
282
|
+
"cancelable": true,
|
|
283
|
+
"composed": true,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "Fires when the action link is pressed."
|
|
287
|
+
},
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "void",
|
|
290
|
+
"resolved": "void",
|
|
291
|
+
"references": {}
|
|
292
|
+
}
|
|
293
|
+
}];
|
|
294
|
+
}
|
|
295
|
+
}
|