@brandsync/wc 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +8335 -4132
- 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-a5feaad4.entry.js → p-061ddc46.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-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-2181378f.entry.js → p-5f27f04d.entry.js} +1 -1
- 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-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-f89de457.entry.js → p-afb07368.entry.js} +1 -1
- package/dist/brandsync-wc/{p-301b2455.entry.js → p-b84366a7.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-d42b1c2b.entry.js → p-c0a92750.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 +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +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 +2 -2
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +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 +1 -1
- 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} +40 -5
- 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-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.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.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-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 +14 -0
- package/dist/collection/components/bs-input/bs-input.css +9 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-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-DkIVyFOP.js → p-BZ3M4lOU.js} +1 -1
- package/dist/components/{p-Ba860ej1.js → p-B_I4UEMp.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 +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +2 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +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 +2 -2
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +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 +1 -1
- 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} +40 -6
- 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-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-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 +2636 -96
- package/package.json +1 -1
- 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-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-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,103 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
+
import { componentDescription, propDescription } from "../../stories-utils";
|
|
4
|
+
const PREFERENCE_CATEGORIES = [
|
|
5
|
+
{
|
|
6
|
+
id: 'necessary',
|
|
7
|
+
label: 'Strictly necessary',
|
|
8
|
+
description: 'Needed for sign-in, security and to keep the service running. These cannot be turned off.',
|
|
9
|
+
required: true,
|
|
10
|
+
cookies: [
|
|
11
|
+
'Session cookie — keeps you signed in as you move between pages.',
|
|
12
|
+
'Security cookie — helps prevent fraud and unauthorized access.',
|
|
13
|
+
'Consent cookie — remembers your cookie consent choices.',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'preferences',
|
|
18
|
+
label: 'Preferences',
|
|
19
|
+
description: 'Remember your language, theme and table layouts on this device.',
|
|
20
|
+
enabled: true,
|
|
21
|
+
cookies: ['Language cookie — remembers your language.', 'Theme cookie — remembers light or dark mode.', 'Layout cookie — remembers your table columns.'],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'analytics',
|
|
25
|
+
label: 'Analytics',
|
|
26
|
+
description: 'Help us understand which features are used so we can improve them. Data is anonymised.',
|
|
27
|
+
cookies: ['Usage cookie — counts visits to each page.', 'Feature cookie — records which features are used.', 'Performance cookie — measures how fast pages load.'],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'marketing',
|
|
31
|
+
label: 'Marketing',
|
|
32
|
+
description: 'Show relevant EG products on other websites.',
|
|
33
|
+
cookies: ['Campaign cookie — links a visit to a campaign.', 'Audience cookie — groups visitors by interest.', 'Retargeting cookie — shows our ads elsewhere.'],
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
const meta = {
|
|
37
|
+
title: 'Components/bs-cookie-consent',
|
|
38
|
+
parameters: { docs: { description: { component: componentDescription('bs-cookie-consent') } } },
|
|
39
|
+
decorators: [story => html `<div style="padding: 16px; background: var(--bs-color-neutral-container);">${story()}</div>`],
|
|
40
|
+
render: args => html `
|
|
41
|
+
<bs-cookie-consent
|
|
42
|
+
type=${args.type}
|
|
43
|
+
heading=${ifDefined(args.heading || undefined)}
|
|
44
|
+
description=${ifDefined(args.description || undefined)}
|
|
45
|
+
policy-url=${ifDefined(args.policyUrl || undefined)}
|
|
46
|
+
.categories=${PREFERENCE_CATEGORIES}
|
|
47
|
+
@bsAccept=${(ev) => console.log('bsAccept', ev.detail)}
|
|
48
|
+
@bsReject=${(ev) => console.log('bsReject', ev.detail)}
|
|
49
|
+
@bsCustomise=${() => console.log('bsCustomise')}
|
|
50
|
+
@bsSave=${(ev) => console.log('bsSave', ev.detail)}
|
|
51
|
+
@bsChoice=${(ev) => console.log('bsChoice', ev.detail)}
|
|
52
|
+
@bsClose=${() => console.log('bsClose')}
|
|
53
|
+
@bsManage=${() => console.log('bsManage')}
|
|
54
|
+
></bs-cookie-consent>
|
|
55
|
+
`,
|
|
56
|
+
argTypes: {
|
|
57
|
+
type: { control: 'inline-radio', options: ['banner', 'card', 'preferences', 'saved'], description: propDescription('bs-cookie-consent', 'type') },
|
|
58
|
+
heading: { control: 'text', description: propDescription('bs-cookie-consent', 'heading') },
|
|
59
|
+
description: { control: 'text', description: propDescription('bs-cookie-consent', 'description') },
|
|
60
|
+
policyUrl: { control: 'text', description: propDescription('bs-cookie-consent', 'policyUrl') },
|
|
61
|
+
},
|
|
62
|
+
args: { type: 'banner', heading: '', description: '', policyUrl: '#cookie-policy' },
|
|
63
|
+
};
|
|
64
|
+
export default meta;
|
|
65
|
+
export const Banner = {};
|
|
66
|
+
export const BannerNarrow = {
|
|
67
|
+
name: 'Banner (narrow container)',
|
|
68
|
+
render: args => html `
|
|
69
|
+
<div style="width: 332px;">
|
|
70
|
+
<bs-cookie-consent type="banner" policy-url=${args.policyUrl}></bs-cookie-consent>
|
|
71
|
+
</div>
|
|
72
|
+
`,
|
|
73
|
+
};
|
|
74
|
+
export const CompactCard = {
|
|
75
|
+
name: 'Compact card',
|
|
76
|
+
args: { type: 'card' },
|
|
77
|
+
};
|
|
78
|
+
export const PreferencesDialog = {
|
|
79
|
+
name: 'Preferences dialog',
|
|
80
|
+
args: { type: 'preferences' },
|
|
81
|
+
};
|
|
82
|
+
export const SavedConfirmation = {
|
|
83
|
+
name: 'Saved confirmation',
|
|
84
|
+
args: { type: 'saved' },
|
|
85
|
+
};
|
|
86
|
+
// The flow: banner -> Customise -> preferences -> Save -> saved confirmation -> Change -> preferences.
|
|
87
|
+
export const Flow = {
|
|
88
|
+
render: () => html `
|
|
89
|
+
<div id="flow">
|
|
90
|
+
<bs-cookie-consent
|
|
91
|
+
type="banner"
|
|
92
|
+
policy-url="#cookie-policy"
|
|
93
|
+
.categories=${PREFERENCE_CATEGORIES}
|
|
94
|
+
@bsCustomise=${(e) => (e.currentTarget.setAttribute('type', 'preferences'))}
|
|
95
|
+
@bsAccept=${(e) => (e.currentTarget.setAttribute('type', 'saved'))}
|
|
96
|
+
@bsReject=${(e) => (e.currentTarget.setAttribute('type', 'saved'))}
|
|
97
|
+
@bsSave=${(e) => (e.currentTarget.setAttribute('type', 'saved'))}
|
|
98
|
+
@bsClose=${(e) => (e.currentTarget.setAttribute('type', 'banner'))}
|
|
99
|
+
@bsManage=${(e) => (e.currentTarget.setAttribute('type', 'preferences'))}
|
|
100
|
+
></bs-cookie-consent>
|
|
101
|
+
</div>
|
|
102
|
+
`,
|
|
103
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
const sr = (root) => root.shadowRoot;
|
|
2
3
|
const days = (root) => Array.from(root.shadowRoot.querySelectorAll('[part~="day"]'));
|
|
3
4
|
const day = (root, iso) => root.shadowRoot.querySelector(`[data-date="${iso}"]`);
|
|
4
5
|
describe('bs-datepicker', () => {
|
|
@@ -100,6 +101,14 @@ describe('bs-datepicker', () => {
|
|
|
100
101
|
expect(checked.length).toBe(1);
|
|
101
102
|
expect(checked[0].textContent).toBe('September');
|
|
102
103
|
});
|
|
104
|
+
it('opens scrolled so the current month is in view (centred)', async () => {
|
|
105
|
+
const { root, waitForChanges } = await render(h("bs-datepicker", { value: "2026-09-16" }));
|
|
106
|
+
triggers(root)[0].dispatchEvent(new CustomEvent('bsOpen', { detail: true }));
|
|
107
|
+
await waitForChanges();
|
|
108
|
+
await new Promise(r => setTimeout(r, 300));
|
|
109
|
+
const menu = sr(root).querySelector('.bs-datepicker__menu');
|
|
110
|
+
expect(menu.scrollTop).toBeGreaterThan(100);
|
|
111
|
+
});
|
|
103
112
|
it('picking a month changes the displayed month and closes the list', async () => {
|
|
104
113
|
const { root, waitForChanges } = await render(h("bs-datepicker", { value: "2026-09-16" }));
|
|
105
114
|
triggers(root)[0].dispatchEvent(new CustomEvent('bsOpen', { detail: true }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @prop --bs-datepicker-width: Width of the card. 364px, exact match to Figma.
|
|
3
|
-
* @prop --bs-datepicker-bg: Card background. Aliased to --bs-
|
|
3
|
+
* @prop --bs-datepicker-bg: Card background. Aliased to --bs-paper-bg-raised (the `bs-card` raised surface).
|
|
4
4
|
* @prop --bs-datepicker-radius: Card corner radius. Aliased to --bs-border-radius-150.
|
|
5
5
|
* @prop --bs-datepicker-padding: Card padding. Aliased to --bs-spacing-200.
|
|
6
6
|
* @prop --bs-datepicker-gap: Vertical gap between the header, nav and grid. Aliased to --bs-spacing-150.
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
display: inline-block;
|
|
36
36
|
|
|
37
37
|
--bs-datepicker-width: 364px;
|
|
38
|
-
--bs-datepicker-bg: var(--bs-
|
|
38
|
+
--bs-datepicker-bg: var(--bs-paper-bg-raised);
|
|
39
39
|
--bs-datepicker-radius: var(--bs-border-radius-150);
|
|
40
40
|
--bs-datepicker-padding: var(--bs-spacing-200);
|
|
41
41
|
--bs-datepicker-gap: var(--bs-spacing-150);
|
|
@@ -72,19 +72,22 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.bs-datepicker {
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
gap: var(--bs-datepicker-gap);
|
|
79
75
|
width: var(--bs-datepicker-width);
|
|
80
76
|
max-width: 100%;
|
|
81
|
-
padding: var(--bs-datepicker-padding);
|
|
82
|
-
border-radius: var(--bs-datepicker-radius);
|
|
83
|
-
background: var(--bs-datepicker-bg);
|
|
84
|
-
box-shadow: var(--bs-datepicker-shadow);
|
|
85
77
|
color: var(--bs-datepicker-color);
|
|
86
|
-
font-family: inherit;
|
|
87
78
|
font-size: var(--bs-datepicker-font-size);
|
|
79
|
+
/* bs-card supplies the surface. `visible` so the month/year list can hang over the edge. */
|
|
80
|
+
--bs-card-bg: var(--bs-datepicker-bg);
|
|
81
|
+
--bs-card-radius: var(--bs-datepicker-radius);
|
|
82
|
+
--bs-card-padding: var(--bs-datepicker-padding);
|
|
83
|
+
--bs-card-shadow: var(--bs-datepicker-shadow);
|
|
84
|
+
--bs-card-overflow: visible;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.bs-datepicker__body {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: var(--bs-datepicker-gap);
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
.bs-datepicker__header {
|
|
@@ -93,6 +96,13 @@
|
|
|
93
96
|
gap: var(--bs-spacing-100);
|
|
94
97
|
}
|
|
95
98
|
|
|
99
|
+
.bs-datepicker__header--range > bs-input {
|
|
100
|
+
/* Figma: the Start/End date labels are 16px semibold (bs-input's own default is 14px medium). */
|
|
101
|
+
--bs-input-label-font-size: var(--bs-font-size-md);
|
|
102
|
+
--bs-input-label-font-weight: var(--bs-font-weight-semibold);
|
|
103
|
+
--bs-input-label-line-height: calc(var(--bs-line-height-body-md) * 1px);
|
|
104
|
+
}
|
|
105
|
+
|
|
96
106
|
.bs-datepicker__header > bs-input {
|
|
97
107
|
flex: 1 1 0;
|
|
98
108
|
min-width: 0;
|
|
@@ -10,6 +10,8 @@ import { h } from "@stencil/core";
|
|
|
10
10
|
* The calendar renders inline at a fixed width; to show it as a popover, put it inside a
|
|
11
11
|
* `bs-menu` or your own overlay.
|
|
12
12
|
*
|
|
13
|
+
* **Built from:** `bs-card` (the surface), `bs-input` (the month/year dropdown triggers and the range date fields), `bs-menu` and `bs-menu-item` (the month/year lists).
|
|
14
|
+
*
|
|
13
15
|
* ## When to use
|
|
14
16
|
* - Picking a date where seeing the surrounding days of the week/month helps (a booking, a
|
|
15
17
|
* deadline, a report window).
|
|
@@ -103,11 +105,15 @@ export class BsDatepicker {
|
|
|
103
105
|
if (this.menuToScroll) {
|
|
104
106
|
this.menuToScroll = false;
|
|
105
107
|
// Centre the current month/year in the list. Done by hand rather than scrollIntoView, which
|
|
106
|
-
// would also scroll the page
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
// would also scroll the page, and after layout: the bs-menu-items inside the menu only have
|
|
109
|
+
// a measurable offsetTop once they've rendered, which is a frame after this hook.
|
|
110
|
+
const scroll = () => {
|
|
111
|
+
const menu = this.el.shadowRoot?.querySelector('.bs-datepicker__menu');
|
|
112
|
+
const current = menu?.querySelector('[data-current]');
|
|
113
|
+
if (menu && current)
|
|
114
|
+
menu.scrollTop = current.offsetTop - menu.clientHeight / 2 + current.offsetHeight / 2;
|
|
115
|
+
};
|
|
116
|
+
requestAnimationFrame(() => requestAnimationFrame(scroll));
|
|
111
117
|
}
|
|
112
118
|
if (!this.shouldFocusDay)
|
|
113
119
|
return;
|
|
@@ -334,7 +340,7 @@ export class BsDatepicker {
|
|
|
334
340
|
: this.defaultTabbable(days);
|
|
335
341
|
const isInRange = (iso) => !!selectedStart && !!previewEnd && iso > selectedStart && iso < previewEnd;
|
|
336
342
|
const weekdays = this.weekdays();
|
|
337
|
-
return (h("
|
|
343
|
+
return (h("bs-card", { key: 'cd66b2bc8f611383ea5df6d01e29b03a940bc06b', part: "container", class: "bs-datepicker", surface: "raised" }, h("div", { key: '7020d13ee4ea5f05c2548966cb56c20b59eb067b', class: "bs-datepicker__body" }, this.renderHeader(), h("div", { key: '4ed03f1fb642d2a3a226a27e6e86001a478eab4c', part: "nav", class: "bs-datepicker__nav" }, h("button", { key: 'e844a021afa02f834026ebb4237f5b2f5b9d1a4c', part: "prev", type: "button", class: "bs-datepicker__nav-button", "aria-label": this.previousLabel, onClick: () => this.moveView(-1) }, h("svg", { key: 'f68be6b62a9deb6334b63c6e7152b4968ebdbeab', viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { key: 'a7ee70143ce7b839c44483c1d15daf2714306bf7', d: "M15 18L9 12L15 6", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '7eb7fd38ca59a4a6ba9692180bcd5096f54ac783', part: "title", class: "bs-datepicker__title", "aria-live": "polite" }, this.titleText()), h("button", { key: '1e515d27746a10acfe9f04f08c4a09753cb5b98b', part: "next", type: "button", class: "bs-datepicker__nav-button", "aria-label": this.nextLabel, onClick: () => this.moveView(1) }, h("svg", { key: 'f5dde56a61d31b93aa9877b0fc473264d40305ba', viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { key: '765b53c7f7e8618618622a5121ecab294610bf8a', d: "M9 18L15 12L9 6", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: 'e56fa1a425055d77ae04039890758b823f14ee8d', part: "grid", class: "bs-datepicker__grid", role: "grid", "aria-label": this.titleText() }, h("div", { key: '2471a9291aa29111217aaaa1f02f2cfc8861e49e', class: "bs-datepicker__row", role: "row" }, weekdays.map(w => (h("div", { part: "weekday", class: "bs-datepicker__weekday", role: "columnheader" }, w)))), Array.from({ length: 6 }, (_, r) => {
|
|
338
344
|
const row = days.slice(r * 7, r * 7 + 7);
|
|
339
345
|
return (h("div", { class: "bs-datepicker__row", role: "row" }, row.map((d, c) => {
|
|
340
346
|
const iso = toIso(d);
|
|
@@ -365,7 +371,7 @@ export class BsDatepicker {
|
|
|
365
371
|
this.hoverIso = iso;
|
|
366
372
|
} }, String(d.getDate()).padStart(2, '0'))));
|
|
367
373
|
})));
|
|
368
|
-
}))));
|
|
374
|
+
})))));
|
|
369
375
|
}
|
|
370
376
|
/** The day that should be reachable with Tab when nothing in view has been focused yet: the
|
|
371
377
|
* selection if it's in the displayed month, else today if it is, else the 1st. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
2
3
|
import { componentDescription, propDescription } from "../../stories-utils";
|
|
3
4
|
const meta = {
|
|
4
5
|
title: 'Components/bs-datepicker',
|
|
@@ -9,8 +10,8 @@ const meta = {
|
|
|
9
10
|
value=${args.value}
|
|
10
11
|
start=${args.start}
|
|
11
12
|
end=${args.end}
|
|
12
|
-
min=${args.min || undefined}
|
|
13
|
-
max=${args.max || undefined}
|
|
13
|
+
min=${ifDefined(args.min || undefined)}
|
|
14
|
+
max=${ifDefined(args.max || undefined)}
|
|
14
15
|
locale=${args.locale}
|
|
15
16
|
first-day-of-week=${args.firstDayOfWeek}
|
|
16
17
|
@bsChange=${(ev) => console.log('bsChange', ev.detail)}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 TYPES = [
|
|
5
|
+
['not-found', '404', 'Page not found', 'Go to Overview', 'Search'],
|
|
6
|
+
['server-error', '500', 'Something went wrong on our side', 'Try again', 'Contact support'],
|
|
7
|
+
['no-access', '403', 'You don’t have access', 'Request access', 'Go back'],
|
|
8
|
+
['maintenance', 'Maintenance', 'We’re upgrading the system', 'View system status', undefined],
|
|
9
|
+
['offline', 'Offline', 'No internet connection', 'Try again', undefined],
|
|
10
|
+
];
|
|
11
|
+
describe('bs-error-page', () => {
|
|
12
|
+
it('defaults to the not-found page', async () => {
|
|
13
|
+
const { root } = await render(h("bs-error-page", null));
|
|
14
|
+
expect(root).toEqualAttribute('type', 'not-found');
|
|
15
|
+
expect(part(root, 'heading').textContent).toBe('Page not found');
|
|
16
|
+
});
|
|
17
|
+
it.each(TYPES)('%s shows its code, heading and buttons (Figma)', async (type, code, heading, primary, secondary) => {
|
|
18
|
+
const { root } = await render(h("bs-error-page", { type: type }));
|
|
19
|
+
expect(part(root, 'code').textContent).toBe(code);
|
|
20
|
+
expect(part(root, 'heading').textContent).toBe(heading);
|
|
21
|
+
expect(part(root, 'primary').textContent).toBe(primary);
|
|
22
|
+
if (secondary)
|
|
23
|
+
expect(part(root, 'secondary').textContent).toBe(secondary);
|
|
24
|
+
else
|
|
25
|
+
expect(part(root, 'secondary')).toBeNull();
|
|
26
|
+
expect(part(root, 'description').textContent.length).toBeGreaterThan(0);
|
|
27
|
+
});
|
|
28
|
+
it('tints the icon tile per type: info, error, neutral, warning, warning', async () => {
|
|
29
|
+
const intents = [];
|
|
30
|
+
for (const [type] of TYPES) {
|
|
31
|
+
const { root } = await render(h("bs-error-page", { type: type }));
|
|
32
|
+
intents.push(part(root, 'art').intent);
|
|
33
|
+
}
|
|
34
|
+
expect(intents).toEqual(['default', 'error', 'default', 'warning', 'warning']);
|
|
35
|
+
});
|
|
36
|
+
it('uses the info container tint for not-found (Figma) rather than the tile default', async () => {
|
|
37
|
+
const { root } = await render(h("bs-error-page", { type: "not-found" }));
|
|
38
|
+
const tile = part(root, 'art');
|
|
39
|
+
const bg = getComputedStyle(tile.shadowRoot.querySelector('[part="container"]')).backgroundColor;
|
|
40
|
+
const other = await render(h("bs-error-page", { type: "no-access" }));
|
|
41
|
+
const otherBg = getComputedStyle(part(other.root, 'art').shadowRoot.querySelector('[part="container"]')).backgroundColor;
|
|
42
|
+
expect(bg).not.toBe(otherBg);
|
|
43
|
+
});
|
|
44
|
+
it('draws a different default glyph per type', async () => {
|
|
45
|
+
const glyphs = new Set();
|
|
46
|
+
for (const [type] of TYPES) {
|
|
47
|
+
const { root } = await render(h("bs-error-page", { type: type }));
|
|
48
|
+
glyphs.add(sr(root).querySelector('svg.bs-error-page__glyph').innerHTML);
|
|
49
|
+
}
|
|
50
|
+
expect(glyphs.size).toBe(5);
|
|
51
|
+
});
|
|
52
|
+
it('lets props override the copy, and an empty string hides a piece', async () => {
|
|
53
|
+
const { root } = await render(h("bs-error-page", { type: "server-error", code: "", heading: "Oops", description: "Custom.", primaryLabel: "Reload", secondaryLabel: "", reference: "Error ID: 1" }));
|
|
54
|
+
expect(part(root, 'code')).toBeNull();
|
|
55
|
+
expect(part(root, 'heading').textContent).toBe('Oops');
|
|
56
|
+
expect(part(root, 'description').textContent).toBe('Custom.');
|
|
57
|
+
expect(part(root, 'primary').textContent).toBe('Reload');
|
|
58
|
+
expect(part(root, 'secondary')).toBeNull();
|
|
59
|
+
expect(part(root, 'reference').textContent).toBe('Error ID: 1');
|
|
60
|
+
});
|
|
61
|
+
it('hides the whole button row when both labels are empty', async () => {
|
|
62
|
+
const { root } = await render(h("bs-error-page", { primaryLabel: "", secondaryLabel: "" }));
|
|
63
|
+
expect(part(root, 'actions')).toBeNull();
|
|
64
|
+
});
|
|
65
|
+
it('emits bsPrimary and bsSecondary', async () => {
|
|
66
|
+
const { root, waitForChanges } = await render(h("bs-error-page", null));
|
|
67
|
+
const events = [];
|
|
68
|
+
root.addEventListener('bsPrimary', () => events.push('primary'));
|
|
69
|
+
root.addEventListener('bsSecondary', () => events.push('secondary'));
|
|
70
|
+
part(root, 'primary').click();
|
|
71
|
+
part(root, 'secondary').click();
|
|
72
|
+
await waitForChanges();
|
|
73
|
+
expect(events).toEqual(['primary', 'secondary']);
|
|
74
|
+
});
|
|
75
|
+
it('renders the heading at the requested level, clamped to 1-6', async () => {
|
|
76
|
+
const levels = [];
|
|
77
|
+
for (const lvl of [1, 2, 4, 9, 0]) {
|
|
78
|
+
const { root } = await render(h("bs-error-page", { headingLevel: lvl }));
|
|
79
|
+
levels.push(part(root, 'heading').tagName);
|
|
80
|
+
}
|
|
81
|
+
expect(levels).toEqual(['H1', 'H2', 'H4', 'H6', 'H1']);
|
|
82
|
+
});
|
|
83
|
+
it('replaces the glyph through the icon slot', async () => {
|
|
84
|
+
const { root } = await render(h("bs-error-page", null, h("svg", { slot: "icon", id: "mine", viewBox: "0 0 24 24" }, h("path", { d: "M0 0" }))));
|
|
85
|
+
const slot = sr(root).querySelector('slot[name="icon"]');
|
|
86
|
+
expect(slot.assignedElements().map(e => e.id)).toEqual(['mine']);
|
|
87
|
+
});
|
|
88
|
+
it('is at least 440px tall (Figma) and fills its width', async () => {
|
|
89
|
+
const { root } = await render(h("div", { style: { width: '640px' } }, h("bs-error-page", null)));
|
|
90
|
+
const page = root.querySelector('bs-error-page');
|
|
91
|
+
const box = page.getBoundingClientRect();
|
|
92
|
+
expect(box.height).toBeGreaterThanOrEqual(440);
|
|
93
|
+
expect(box.width).toBe(640);
|
|
94
|
+
});
|
|
95
|
+
it('is built on bs-card', async () => {
|
|
96
|
+
const { root } = await render(h("bs-error-page", null));
|
|
97
|
+
expect(part(root, 'container').tagName).toBe('BS-CARD');
|
|
98
|
+
});
|
|
99
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-error-page-bg: Background. Aliased to --bs-paper-bg-base (the `bs-card` base surface).
|
|
3
|
+
* @prop --bs-error-page-radius: Corner radius. Aliased to --bs-border-radius-100.
|
|
4
|
+
* @prop --bs-error-page-padding: Padding around the content. Aliased to --bs-spacing-400 (32px, Figma).
|
|
5
|
+
* @prop --bs-error-page-min-height: Minimum height of the block; the content is centred in it. 440px (Figma).
|
|
6
|
+
* @prop --bs-error-page-gap: Gap between the rows. 12px (Figma).
|
|
7
|
+
* @prop --bs-error-page-description-width: Max width of the paragraph. 420px (Figma).
|
|
8
|
+
* @prop --bs-error-page-color: Heading colour. Aliased to --bs-text-default.
|
|
9
|
+
* @prop --bs-error-page-color-secondary: Code label and paragraph colour. Aliased to --bs-text-secondary.
|
|
10
|
+
* @prop --bs-error-page-color-muted: Reference line colour. Aliased to --bs-text-muted.
|
|
11
|
+
* @prop --bs-error-page-info-bg: Icon tile background for `not-found`. Aliased to --bs-color-info-container (Figma uses this step; `bs-icon-tile`'s own information tint is one step lighter).
|
|
12
|
+
*/
|
|
13
|
+
:host {
|
|
14
|
+
display: block;
|
|
15
|
+
|
|
16
|
+
--bs-error-page-bg: var(--bs-paper-bg-base);
|
|
17
|
+
--bs-error-page-radius: var(--bs-border-radius-100);
|
|
18
|
+
--bs-error-page-padding: var(--bs-spacing-400);
|
|
19
|
+
--bs-error-page-min-height: 440px;
|
|
20
|
+
--bs-error-page-gap: var(--bs-spacing-150);
|
|
21
|
+
--bs-error-page-description-width: 420px;
|
|
22
|
+
--bs-error-page-color: var(--bs-text-default);
|
|
23
|
+
--bs-error-page-color-secondary: var(--bs-text-secondary);
|
|
24
|
+
--bs-error-page-color-muted: var(--bs-text-muted);
|
|
25
|
+
--bs-error-page-info-bg: var(--bs-color-info-container);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* bs-card supplies the surface; this only sets how it looks here. */
|
|
29
|
+
.bs-error-page {
|
|
30
|
+
--bs-card-bg: var(--bs-error-page-bg);
|
|
31
|
+
--bs-card-radius: var(--bs-error-page-radius);
|
|
32
|
+
--bs-card-padding: var(--bs-error-page-padding);
|
|
33
|
+
--bs-card-shadow: none;
|
|
34
|
+
color: var(--bs-error-page-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.bs-error-page__body {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
gap: var(--bs-error-page-gap);
|
|
44
|
+
min-height: calc(var(--bs-error-page-min-height) - var(--bs-error-page-padding) * 2);
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bs-error-page__art-group {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: var(--bs-spacing-150);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bs-error-page__art--info {
|
|
56
|
+
--bs-icon-tile-bg: var(--bs-error-page-info-bg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bs-error-page__glyph,
|
|
60
|
+
::slotted([slot='icon']) {
|
|
61
|
+
width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.bs-error-page__code {
|
|
66
|
+
color: var(--bs-error-page-color-secondary);
|
|
67
|
+
font-size: var(--bs-font-size-sm);
|
|
68
|
+
font-weight: var(--bs-font-weight-semibold);
|
|
69
|
+
line-height: 20px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.bs-error-page__heading {
|
|
73
|
+
margin: 0;
|
|
74
|
+
font-size: var(--bs-font-size-2xl);
|
|
75
|
+
font-weight: var(--bs-font-weight-bold);
|
|
76
|
+
line-height: 32px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.bs-error-page__description {
|
|
80
|
+
max-width: var(--bs-error-page-description-width);
|
|
81
|
+
margin: 0;
|
|
82
|
+
color: var(--bs-error-page-color-secondary);
|
|
83
|
+
font-size: var(--bs-font-size-sm);
|
|
84
|
+
line-height: 20px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.bs-error-page__actions {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-wrap: wrap;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
gap: var(--bs-spacing-100);
|
|
93
|
+
padding-top: var(--bs-spacing-100);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.bs-error-page__actions bs-button {
|
|
97
|
+
--bs-button-height-md: var(--bs-spacing-550);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.bs-error-page__reference {
|
|
101
|
+
margin: 0;
|
|
102
|
+
color: var(--bs-error-page-color-muted);
|
|
103
|
+
font-size: var(--bs-font-size-xs);
|
|
104
|
+
line-height: 16px;
|
|
105
|
+
}
|