@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
package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.js
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
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 parts = (root, p) => Array.from(sr(root).querySelectorAll(`[part~="${p}"]`));
|
|
5
|
+
const text = (el) => (el?.textContent ?? '').replace(/\s+/g, ' ').trim();
|
|
6
|
+
const STEPS = [
|
|
7
|
+
{ id: 'company', label: 'Add company details', done: true },
|
|
8
|
+
{ id: 'team', label: 'Invite your team', done: true },
|
|
9
|
+
{ id: 'customers', label: 'Import customers', done: true },
|
|
10
|
+
{ id: 'bank', label: 'Connect your bank', description: 'Import transactions automatically so payments are matched to invoices.', estimate: 'About 3 min', actionLabel: 'Connect bank' },
|
|
11
|
+
{ id: 'template', label: 'Choose an invoice template' },
|
|
12
|
+
{ id: 'invoice', label: 'Send your first invoice' },
|
|
13
|
+
];
|
|
14
|
+
describe('bs-onboarding-checklist', () => {
|
|
15
|
+
it('defaults to the panel, built on bs-card, as a labelled region', async () => {
|
|
16
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
17
|
+
expect(root).toEqualAttribute('type', 'panel');
|
|
18
|
+
expect(part(root, 'container').tagName).toBe('BS-CARD');
|
|
19
|
+
expect(part(root, 'container')).toEqualAttribute('role', 'region');
|
|
20
|
+
expect(part(root, 'container')).toEqualAttribute('aria-labelledby', 'heading');
|
|
21
|
+
expect(text(part(root, 'heading'))).toBe('Get started');
|
|
22
|
+
});
|
|
23
|
+
describe('panel', () => {
|
|
24
|
+
it('is 420px wide (Figma)', async () => {
|
|
25
|
+
const { root: wrap } = await render(h("div", { style: { width: '800px' } }, h("bs-onboarding-checklist", { steps: STEPS })));
|
|
26
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
27
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(420);
|
|
28
|
+
});
|
|
29
|
+
it('shows "3 of 6 done", 50 % and a bar at 50', async () => {
|
|
30
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
31
|
+
expect(text(part(root, 'progress'))).toContain('3 of 6 done');
|
|
32
|
+
expect(text(part(root, 'progress'))).toContain('50 %');
|
|
33
|
+
expect(sr(root).querySelector('bs-progress-linear').value).toBe(50);
|
|
34
|
+
});
|
|
35
|
+
it('lists every step; the first undone one is current, expanded, with aria-current', async () => {
|
|
36
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
37
|
+
const items = Array.from(sr(root).querySelectorAll('ol > li'));
|
|
38
|
+
expect(items).toHaveLength(6);
|
|
39
|
+
const current = items.filter(li => li.getAttribute('aria-current') === 'step');
|
|
40
|
+
expect(current).toHaveLength(1);
|
|
41
|
+
expect(text(current[0])).toContain('Connect your bank');
|
|
42
|
+
expect(text(current[0])).toContain('Import transactions automatically');
|
|
43
|
+
expect(text(current[0])).toContain('About 3 min');
|
|
44
|
+
});
|
|
45
|
+
it('marks finished and unfinished steps for assistive tech', async () => {
|
|
46
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
47
|
+
const rows = parts(root, 'step').filter(li => li.getAttribute('aria-current') !== 'step');
|
|
48
|
+
expect(text(rows[0])).toContain('Done');
|
|
49
|
+
expect(text(rows[3])).toContain('Not done');
|
|
50
|
+
});
|
|
51
|
+
it('colours the step status icons with the icon/action token', async () => {
|
|
52
|
+
const probe = document.createElement('div');
|
|
53
|
+
document.body.appendChild(probe);
|
|
54
|
+
probe.style.color = 'var(--bs-icon-action)';
|
|
55
|
+
const expected = getComputedStyle(probe).color;
|
|
56
|
+
probe.remove();
|
|
57
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
58
|
+
const status = sr(root).querySelector('.bs-oc__status');
|
|
59
|
+
expect(getComputedStyle(status).color).toBe(expected);
|
|
60
|
+
});
|
|
61
|
+
it('has Skip for now and the step action on the current step, emitting with the step id', async () => {
|
|
62
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
63
|
+
const events = [];
|
|
64
|
+
root.addEventListener('bsStepAction', (e) => events.push(['action', e.detail]));
|
|
65
|
+
root.addEventListener('bsStepSkip', (e) => events.push(['skip', e.detail]));
|
|
66
|
+
expect(text(part(root, 'skip'))).toBe('Skip for now');
|
|
67
|
+
expect(text(part(root, 'action'))).toBe('Connect bank');
|
|
68
|
+
part(root, 'skip').click();
|
|
69
|
+
part(root, 'action').click();
|
|
70
|
+
await waitForChanges();
|
|
71
|
+
expect(events).toEqual([['skip', { id: 'bank' }], ['action', { id: 'bank' }]]);
|
|
72
|
+
});
|
|
73
|
+
it('hides Skip for steps with skippable: false, and the action without an actionLabel', async () => {
|
|
74
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: [{ id: 'a', label: 'A', skippable: false }] }));
|
|
75
|
+
expect(part(root, 'skip')).toBeNull();
|
|
76
|
+
expect(part(root, 'action')).toBeNull();
|
|
77
|
+
});
|
|
78
|
+
it('moves the current step on when a step is marked done', async () => {
|
|
79
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
80
|
+
root.steps = STEPS.map(s => (s.id === 'bank' ? { ...s, done: true } : s));
|
|
81
|
+
await waitForChanges();
|
|
82
|
+
expect(text(sr(root).querySelector('[aria-current="step"]'))).toContain('Choose an invoice template');
|
|
83
|
+
expect(text(part(root, 'progress'))).toContain('4 of 6 done');
|
|
84
|
+
expect(text(part(root, 'progress'))).toContain('67 %');
|
|
85
|
+
});
|
|
86
|
+
it('shows the close button only when closable, and emits bsClose', async () => {
|
|
87
|
+
const a = await render(h("bs-onboarding-checklist", { steps: STEPS }));
|
|
88
|
+
expect(part(a.root, 'close')).toBeNull();
|
|
89
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { steps: STEPS, closable: true }));
|
|
90
|
+
let closed = 0;
|
|
91
|
+
root.addEventListener('bsClose', () => closed++);
|
|
92
|
+
part(root, 'close').click();
|
|
93
|
+
await waitForChanges();
|
|
94
|
+
expect(closed).toBe(1);
|
|
95
|
+
});
|
|
96
|
+
it('handles an empty step list without dividing by zero', async () => {
|
|
97
|
+
const { root } = await render(h("bs-onboarding-checklist", null));
|
|
98
|
+
expect(text(part(root, 'progress'))).toContain('0 of 0 done');
|
|
99
|
+
expect(text(part(root, 'progress'))).toContain('0 %');
|
|
100
|
+
});
|
|
101
|
+
it('lets props override the copy and progress template', async () => {
|
|
102
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS, heading: "Setup", description: "Hello.", progressLabel: "{done}/{total}", skipLabel: "Later" }));
|
|
103
|
+
expect(text(part(root, 'heading'))).toBe('Setup');
|
|
104
|
+
expect(text(part(root, 'description'))).toBe('Hello.');
|
|
105
|
+
expect(text(part(root, 'progress'))).toContain('3/6');
|
|
106
|
+
expect(text(part(root, 'skip'))).toBe('Later');
|
|
107
|
+
});
|
|
108
|
+
it('renders the heading at the requested level, clamped to 1-6', async () => {
|
|
109
|
+
const tags = [];
|
|
110
|
+
for (const level of [1, 2, 9]) {
|
|
111
|
+
const { root } = await render(h("bs-onboarding-checklist", { steps: STEPS, headingLevel: level }));
|
|
112
|
+
tags.push(part(root, 'heading').tagName);
|
|
113
|
+
}
|
|
114
|
+
expect(tags).toEqual(['H1', 'H2', 'H6']);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
describe('dashboard', () => {
|
|
118
|
+
it('shows the summary, progress, See all steps, and the current + next two steps as cards', async () => {
|
|
119
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS }));
|
|
120
|
+
expect(text(part(root, 'heading'))).toBe('Finish setting up');
|
|
121
|
+
expect(text(part(root, 'description'))).toBe('3 of 6 done.');
|
|
122
|
+
expect(text(part(root, 'see-all'))).toBe('See all steps');
|
|
123
|
+
const cards = parts(root, 'step');
|
|
124
|
+
expect(cards).toHaveLength(3);
|
|
125
|
+
expect(text(cards[0])).toContain('Connect your bank');
|
|
126
|
+
expect(text(cards[0])).toContain('Start');
|
|
127
|
+
expect(cards[0].getAttribute('aria-current')).toBe('step');
|
|
128
|
+
expect(text(cards[1])).toContain('Choose an invoice template');
|
|
129
|
+
expect(text(cards[1])).toContain('After the step before');
|
|
130
|
+
expect(cards[1].getAttribute('aria-current')).toBeNull();
|
|
131
|
+
});
|
|
132
|
+
it('tints the current card\'s icon brand blue and the others neutral, as in the Figma', async () => {
|
|
133
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS }));
|
|
134
|
+
const intents = parts(root, 'step-art').map(t => t.intent);
|
|
135
|
+
expect(intents).toEqual(['brand', 'default', 'default']);
|
|
136
|
+
});
|
|
137
|
+
it('keeps the step cards the same height when labels wrap differently', async () => {
|
|
138
|
+
const { root: wrap } = await render(h("div", { style: { width: '1077px' } }, h("bs-onboarding-checklist", { type: "dashboard", steps: [
|
|
139
|
+
{ id: 'a', label: 'Short' },
|
|
140
|
+
{ id: 'b', label: 'A much longer step label that wraps onto two lines' },
|
|
141
|
+
{ id: 'c', label: 'Medium label here' },
|
|
142
|
+
] })));
|
|
143
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
144
|
+
await new Promise(r => setTimeout(r, 200));
|
|
145
|
+
const surfaces = Array.from(sr(root).querySelectorAll('bs-card.bs-oc__step-card')).map(c => Math.round(c.shadowRoot.querySelector('.bs-card').getBoundingClientRect().height));
|
|
146
|
+
expect(new Set(surfaces).size).toBe(1);
|
|
147
|
+
});
|
|
148
|
+
it('makes the step cards 146px tall (Figma)', async () => {
|
|
149
|
+
const { root: wrap } = await render(h("div", { style: { width: '1077px' } }, h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS })));
|
|
150
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
151
|
+
await new Promise(r => setTimeout(r, 200));
|
|
152
|
+
const cards = Array.from(sr(root).querySelectorAll('bs-card.bs-oc__step-card'));
|
|
153
|
+
expect(cards.map(c => Math.round(c.getBoundingClientRect().height))).toEqual([146, 146, 146]);
|
|
154
|
+
// The visible surface (border and background) is that tall too, not just the box around it.
|
|
155
|
+
expect(cards.map(c => Math.round(c.shadowRoot.querySelector('.bs-card').getBoundingClientRect().height))).toEqual([146, 146, 146]);
|
|
156
|
+
});
|
|
157
|
+
it('keeps the Start and See all steps links indented like the Figma (not pulled back under the label)', async () => {
|
|
158
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS }));
|
|
159
|
+
const label = sr(root).querySelector('.bs-oc__step-card-label').getBoundingClientRect();
|
|
160
|
+
const start = part(root, 'action').shadowRoot.querySelector('[part="label"]').getBoundingClientRect();
|
|
161
|
+
// the link's text starts to the right of the label's left edge (the button's own padding)
|
|
162
|
+
expect(start.left - label.left).toBeGreaterThanOrEqual(8);
|
|
163
|
+
// Figma: about 12px in, not the 20px bs-button adds around an end icon.
|
|
164
|
+
expect(start.left - label.left).toBeLessThanOrEqual(14);
|
|
165
|
+
});
|
|
166
|
+
it('shows fewer cards when fewer steps remain', async () => {
|
|
167
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: [{ id: 'a', label: 'A', done: true }, { id: 'b', label: 'B' }] }));
|
|
168
|
+
expect(parts(root, 'step')).toHaveLength(1);
|
|
169
|
+
});
|
|
170
|
+
it('emits bsStepAction (Start) with the id, bsOpen (See all steps) and bsClose', async () => {
|
|
171
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS, closable: true }));
|
|
172
|
+
const events = [];
|
|
173
|
+
root.addEventListener('bsStepAction', (e) => events.push(['action', e.detail]));
|
|
174
|
+
root.addEventListener('bsOpen', () => events.push('open'));
|
|
175
|
+
root.addEventListener('bsClose', () => events.push('close'));
|
|
176
|
+
part(root, 'action').click();
|
|
177
|
+
part(root, 'see-all').click();
|
|
178
|
+
part(root, 'close').click();
|
|
179
|
+
await waitForChanges();
|
|
180
|
+
expect(events).toEqual([['action', { id: 'bank' }], 'open', 'close']);
|
|
181
|
+
});
|
|
182
|
+
it('offers a slot per step for its icon', async () => {
|
|
183
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS }, h("svg", { slot: "icon-bank", id: "mine", viewBox: "0 0 24 24" }, h("path", { d: "M0 0" }))));
|
|
184
|
+
const slot = sr(root).querySelector('slot[name="icon-bank"]');
|
|
185
|
+
expect(slot.assignedElements().map(e => e.id)).toEqual(['mine']);
|
|
186
|
+
});
|
|
187
|
+
it('fills its container wide, and stacks the step cards in a narrow one', async () => {
|
|
188
|
+
const wide = await render(h("div", { style: { width: '1077px' } }, h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS })));
|
|
189
|
+
const w = wide.root.querySelector('bs-onboarding-checklist');
|
|
190
|
+
const cards = parts(w, 'step').map(c => c.getBoundingClientRect());
|
|
191
|
+
expect(cards[1].left).toBeGreaterThan(cards[0].left);
|
|
192
|
+
const narrow = await render(h("div", { style: { width: '380px' } }, h("bs-onboarding-checklist", { type: "dashboard", steps: STEPS })));
|
|
193
|
+
const n = narrow.root.querySelector('bs-onboarding-checklist');
|
|
194
|
+
const stacked = parts(n, 'step').map(c => c.getBoundingClientRect());
|
|
195
|
+
expect(stacked[1].top).toBeGreaterThan(stacked[0].top);
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
describe('launcher', () => {
|
|
199
|
+
it.each([
|
|
200
|
+
['icon', 260],
|
|
201
|
+
['inline', 300],
|
|
202
|
+
])('the %s layout is %ipx wide (Figma)', async (layout, width) => {
|
|
203
|
+
const { root: wrap } = await render(h("div", { style: { width: '700px' } }, h("bs-onboarding-checklist", { type: "launcher", launcherLayout: layout, steps: STEPS })));
|
|
204
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
205
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(width);
|
|
206
|
+
});
|
|
207
|
+
it('sizes the ring launcher to its content (not collapsed, not full width)', async () => {
|
|
208
|
+
const { root: wrap } = await render(h("div", { style: { width: '700px' } }, h("bs-onboarding-checklist", { type: "launcher", launcherLayout: "ring", steps: STEPS })));
|
|
209
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
210
|
+
const w = part(root, 'container').getBoundingClientRect().width;
|
|
211
|
+
expect(w).toBeGreaterThan(120);
|
|
212
|
+
expect(w).toBeLessThan(220);
|
|
213
|
+
// Figma: 156px wide.
|
|
214
|
+
expect(Math.abs(w - 156)).toBeLessThanOrEqual(20);
|
|
215
|
+
});
|
|
216
|
+
it('shows Setup and "N% complete", as a single button that emits bsOpen', async () => {
|
|
217
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { type: "launcher", steps: STEPS }));
|
|
218
|
+
expect(text(part(root, 'launcher'))).toContain('Setup');
|
|
219
|
+
expect(text(part(root, 'launcher'))).toContain('50% complete');
|
|
220
|
+
expect(part(root, 'launcher').tagName).toBe('BUTTON');
|
|
221
|
+
let opened = 0;
|
|
222
|
+
root.addEventListener('bsOpen', () => opened++);
|
|
223
|
+
part(root, 'launcher').click();
|
|
224
|
+
await waitForChanges();
|
|
225
|
+
expect(opened).toBe(1);
|
|
226
|
+
});
|
|
227
|
+
it('takes custom progress text', async () => {
|
|
228
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "launcher", steps: STEPS, progressText: "3 steps left" }));
|
|
229
|
+
expect(text(part(root, 'launcher'))).toContain('3 steps left');
|
|
230
|
+
});
|
|
231
|
+
it('uses a circular progress in the ring layout, and a chevron in the inline one', async () => {
|
|
232
|
+
const ring = await render(h("bs-onboarding-checklist", { type: "launcher", launcherLayout: "ring", steps: STEPS }));
|
|
233
|
+
expect(sr(ring.root).querySelector('bs-progress').value).toBe(50);
|
|
234
|
+
expect(sr(ring.root).querySelector('bs-icon-tile')).toBeNull();
|
|
235
|
+
const inline = await render(h("bs-onboarding-checklist", { type: "launcher", launcherLayout: "inline", steps: STEPS }));
|
|
236
|
+
expect(sr(inline.root).querySelector('.bs-oc__chevron')).not.toBeNull();
|
|
237
|
+
const icon = await render(h("bs-onboarding-checklist", { type: "launcher", steps: STEPS }));
|
|
238
|
+
expect(sr(icon.root).querySelector('bs-icon-tile')).not.toBeNull();
|
|
239
|
+
expect(sr(icon.root).querySelector('bs-progress')).toBeNull();
|
|
240
|
+
});
|
|
241
|
+
it('turns the inline launcher tile green when everything is done', async () => {
|
|
242
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: "launcher", launcherLayout: "inline", steps: STEPS.map(s => ({ ...s, done: true })) }));
|
|
243
|
+
expect(part(root, 'art').intent).toBe('success');
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
describe('completion', () => {
|
|
247
|
+
it('is the "You\'re all set" card: success tile, 100 %, Go to dashboard and Hide checklist', async () => {
|
|
248
|
+
const { root: wrap } = await render(h("div", { style: { width: '800px' } }, h("bs-onboarding-checklist", { type: "completion", steps: STEPS.map(s => ({ ...s, done: true })) })));
|
|
249
|
+
const root = wrap.querySelector('bs-onboarding-checklist');
|
|
250
|
+
expect(part(root, 'container').getBoundingClientRect().width).toBe(380);
|
|
251
|
+
expect(text(part(root, 'heading'))).toBe('You’re all set');
|
|
252
|
+
expect(part(root, 'art').intent).toBe('success');
|
|
253
|
+
expect(text(part(root, 'progress'))).toContain('6 of 6 done');
|
|
254
|
+
expect(text(part(root, 'progress'))).toContain('100 %');
|
|
255
|
+
expect(text(part(root, 'primary'))).toBe('Go to dashboard');
|
|
256
|
+
expect(text(part(root, 'secondary'))).toBe('Hide checklist');
|
|
257
|
+
});
|
|
258
|
+
it('uses the same base surface as the other forms (not a raised one)', async () => {
|
|
259
|
+
const bg = async (type) => {
|
|
260
|
+
const { root } = await render(h("bs-onboarding-checklist", { type: type, steps: STEPS.map(s => ({ ...s, done: true })) }));
|
|
261
|
+
const card = part(root, 'container');
|
|
262
|
+
expect(card).toEqualAttribute('surface', 'base');
|
|
263
|
+
return getComputedStyle(card.shadowRoot.querySelector('.bs-card')).backgroundColor;
|
|
264
|
+
};
|
|
265
|
+
expect(await bg('completion')).toBe(await bg('panel'));
|
|
266
|
+
});
|
|
267
|
+
it('makes the buttons full width and emits bsDone / bsHide', async () => {
|
|
268
|
+
const { root, waitForChanges } = await render(h("bs-onboarding-checklist", { type: "completion", steps: STEPS.map(s => ({ ...s, done: true })) }));
|
|
269
|
+
const card = part(root, 'container').getBoundingClientRect();
|
|
270
|
+
expect(part(root, 'primary').getBoundingClientRect().width).toBeGreaterThan(card.width - 40);
|
|
271
|
+
const events = [];
|
|
272
|
+
root.addEventListener('bsDone', () => events.push('done'));
|
|
273
|
+
root.addEventListener('bsHide', () => events.push('hide'));
|
|
274
|
+
part(root, 'primary').click();
|
|
275
|
+
part(root, 'secondary').click();
|
|
276
|
+
await waitForChanges();
|
|
277
|
+
expect(events).toEqual(['done', 'hide']);
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
});
|