@brandsync/wc 1.9.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 +8864 -3754
- 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-107b1c5d.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-7c94e6ae.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-0e39b9cc.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-6bf2f116.entry.js → p-1978e63c.entry.js} +1 -1
- package/dist/brandsync-wc/p-1aab6d07.entry.js +1 -0
- package/dist/brandsync-wc/{p-6fd7dd6a.entry.js → p-20030f4d.entry.js} +1 -1
- package/dist/brandsync-wc/p-2177042f.entry.js +1 -0
- package/dist/brandsync-wc/{p-33e44094.entry.js → p-2368a92e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-29027559.entry.js → p-247e36ad.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ae978c9a.entry.js → p-2497d128.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fc240aa0.entry.js → p-282ddbee.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0eed6813.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-062cfa34.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-3ec74d35.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-a09e157f.entry.js → p-617bd13a.entry.js} +1 -1
- package/dist/brandsync-wc/p-68fcd4a4.entry.js +1 -0
- package/dist/brandsync-wc/{p-cfcf3f0a.entry.js → p-69c0a85d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9f65f998.entry.js → p-6a696161.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8ee0153b.entry.js → p-6c6cdf77.entry.js} +1 -1
- package/dist/brandsync-wc/{p-051d3064.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-27bbed83.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-de7c946d.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-70f64b25.entry.js → p-a9169157.entry.js} +1 -1
- package/dist/brandsync-wc/{p-05c7de28.entry.js → p-afb07368.entry.js} +1 -1
- package/dist/brandsync-wc/{p-235ae012.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-c0a92750.entry.js +1 -0
- package/dist/brandsync-wc/{p-6331de9c.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-3176d1d3.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-4574a707.entry.js → p-e5daa6ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c4de155c.entry.js → p-f15d9524.entry.js} +1 -1
- package/dist/brandsync-wc/p-f5180578.entry.js +1 -0
- package/dist/brandsync-wc/{p-114d2fd8.entry.js → p-f7d15fbe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a0d5a620.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 +414 -0
- 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.cjs.entry.js → bs-input_3.cjs.entry.js} +74 -6
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +161 -0
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-product-tour.cjs.entry.js +78 -0
- package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
- package/dist/cjs/bs-progress.cjs.entry.js +3 -3
- package/dist/cjs/bs-qr-code.cjs.entry.js +148 -0
- package/dist/cjs/bs-radio.cjs.entry.js +2 -2
- package/dist/cjs/bs-session-timeout.cjs.entry.js +215 -0
- package/dist/cjs/bs-slider.cjs.entry.js +2 -2
- package/dist/cjs/bs-snackbar.cjs.entry.js +9 -3
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bs-switch.cjs.entry.js +2 -2
- package/dist/cjs/bs-tab_3.cjs.entry.js +255 -0
- package/dist/cjs/bs-timepicker.cjs.entry.js +209 -0
- 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 +11 -0
- package/dist/collection/components/bs-a11y.cmp.test.js +26 -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 +191 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.css +325 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +788 -0
- package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +64 -0
- 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 +7 -4
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.js +280 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.css +488 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.js +674 -0
- package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.js +92 -0
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-product-tour/bs-product-tour.cmp.test.js +116 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.css +265 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.js +391 -0
- package/dist/collection/components/bs-product-tour/bs-product-tour.stories.js +68 -0
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +1 -1
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.cmp.test.js +152 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.css +307 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +767 -0
- package/dist/collection/components/bs-qr-code/bs-qr-code.stories.js +99 -0
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.cmp.test.js +202 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.css +239 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +772 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.stories.js +88 -0
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +20 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +6 -4
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +53 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
- package/dist/collection/components/bs-timepicker/bs-timepicker.cmp.test.js +141 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.css +204 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.js +511 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.stories.js +44 -0
- 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.d.ts +11 -0
- package/dist/components/bs-datepicker.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/bs-timepicker.js +1 -0
- 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-EtXc94lJ.js → p-BZ3M4lOU.js} +1 -1
- package/dist/components/p-B_I4UEMp.js +1 -0
- package/dist/components/{p-BfEyD6Ku.js → p-Be9L4_Fe.js} +1 -1
- package/dist/components/p-Be_Pmccm.js +1 -0
- package/dist/components/p-Bl_tVzeq.js +1 -0
- 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-BA3c9Rom.js → p-C_j_jDM6.js} +1 -1
- package/dist/components/p-CbimDNGY.js +1 -0
- package/dist/components/{p-Buly0d5G.js → p-CeUK3n7D.js} +1 -1
- 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-BoeorHNv.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 +412 -0
- 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.entry.js → bs-input_3.entry.js} +73 -7
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer.entry.js +3 -3
- package/dist/esm/bs-navigation-header.entry.js +2 -2
- package/dist/esm/bs-onboarding-checklist.entry.js +159 -0
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-product-tour.entry.js +76 -0
- package/dist/esm/bs-progress-linear.entry.js +4 -4
- package/dist/esm/bs-progress.entry.js +3 -3
- package/dist/esm/bs-qr-code.entry.js +146 -0
- package/dist/esm/bs-radio.entry.js +2 -2
- package/dist/esm/bs-session-timeout.entry.js +213 -0
- package/dist/esm/bs-slider.entry.js +2 -2
- package/dist/esm/bs-snackbar.entry.js +9 -3
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-stepper-step.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +2 -2
- package/dist/esm/bs-switch.entry.js +2 -2
- package/dist/esm/bs-tab_3.entry.js +251 -0
- package/dist/esm/bs-timepicker.entry.js +207 -0
- 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.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.d.ts +138 -0
- package/dist/types/components/bs-datepicker/bs-datepicker.stories.d.ts +20 -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.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +103 -0
- package/dist/types/components/bs-timepicker/bs-timepicker.stories.d.ts +14 -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 +3072 -17
- package/package.json +1 -1
- package/dist/brandsync-wc/p-2891d40b.entry.js +0 -1
- package/dist/brandsync-wc/p-36bf37d9.entry.js +0 -1
- package/dist/brandsync-wc/p-3b64e3cd.entry.js +0 -1
- package/dist/brandsync-wc/p-4e5dcaff.entry.js +0 -1
- package/dist/brandsync-wc/p-7b00dd36.entry.js +0 -1
- package/dist/brandsync-wc/p-c10d2529.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/brandsync-wc/p-f7d47c17.entry.js +0 -1
- package/dist/brandsync-wc/p-fddc7bd1.entry.js +0 -1
- package/dist/cjs/bs-menu-item.cjs.entry.js +0 -34
- 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-CpUHnsq9.js +0 -1
- package/dist/components/p-wei0Ija2.js +0 -1
- package/dist/esm/bs-menu-item.entry.js +0 -32
- 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,64 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
+
import { componentDescription, propDescription } from "../../stories-utils";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/bs-datepicker',
|
|
6
|
+
parameters: { docs: { description: { component: componentDescription('bs-datepicker') } } },
|
|
7
|
+
render: args => html `
|
|
8
|
+
<bs-datepicker
|
|
9
|
+
?range=${args.range}
|
|
10
|
+
value=${args.value}
|
|
11
|
+
start=${args.start}
|
|
12
|
+
end=${args.end}
|
|
13
|
+
min=${ifDefined(args.min || undefined)}
|
|
14
|
+
max=${ifDefined(args.max || undefined)}
|
|
15
|
+
locale=${args.locale}
|
|
16
|
+
first-day-of-week=${args.firstDayOfWeek}
|
|
17
|
+
@bsChange=${(ev) => console.log('bsChange', ev.detail)}
|
|
18
|
+
></bs-datepicker>
|
|
19
|
+
`,
|
|
20
|
+
argTypes: {
|
|
21
|
+
range: { control: 'boolean', description: propDescription('bs-datepicker', 'range') },
|
|
22
|
+
value: { control: 'text', description: propDescription('bs-datepicker', 'value') },
|
|
23
|
+
start: { control: 'text', description: propDescription('bs-datepicker', 'start') },
|
|
24
|
+
end: { control: 'text', description: propDescription('bs-datepicker', 'end') },
|
|
25
|
+
min: { control: 'text', description: propDescription('bs-datepicker', 'min') },
|
|
26
|
+
max: { control: 'text', description: propDescription('bs-datepicker', 'max') },
|
|
27
|
+
locale: { control: 'text', description: propDescription('bs-datepicker', 'locale') },
|
|
28
|
+
firstDayOfWeek: { control: { type: 'number', min: 0, max: 6 }, description: propDescription('bs-datepicker', 'firstDayOfWeek') },
|
|
29
|
+
},
|
|
30
|
+
args: {
|
|
31
|
+
range: false,
|
|
32
|
+
value: '2026-09-16',
|
|
33
|
+
start: '',
|
|
34
|
+
end: '',
|
|
35
|
+
min: '',
|
|
36
|
+
max: '',
|
|
37
|
+
locale: 'en-GB',
|
|
38
|
+
firstDayOfWeek: 0,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export default meta;
|
|
42
|
+
// Figma "Default" type: month/year dropdowns, 16 September 2026 selected.
|
|
43
|
+
export const Default = {};
|
|
44
|
+
// Figma "Range" type: start/end fields, Mon-Sat of one week selected. The Figma's own dates (11-16
|
|
45
|
+
// September) don't line up with the real 2026 calendar, so this uses 14-19 September -- the same
|
|
46
|
+
// Monday-to-Saturday shape, so the band sits in a single row like the design.
|
|
47
|
+
export const Range = {
|
|
48
|
+
args: { range: true, value: '', start: '2026-09-14', end: '2026-09-19' },
|
|
49
|
+
};
|
|
50
|
+
export const RangeAcrossWeeks = {
|
|
51
|
+
name: 'Range across weeks',
|
|
52
|
+
args: { range: true, value: '', start: '2026-09-11', end: '2026-09-24' },
|
|
53
|
+
};
|
|
54
|
+
export const MinMax = {
|
|
55
|
+
name: 'Min and max',
|
|
56
|
+
args: { min: '2026-09-10', max: '2026-09-25' },
|
|
57
|
+
};
|
|
58
|
+
export const MondayFirst = {
|
|
59
|
+
name: 'Week starts on Monday',
|
|
60
|
+
args: { firstDayOfWeek: 1 },
|
|
61
|
+
};
|
|
62
|
+
export const Danish = {
|
|
63
|
+
args: { locale: 'da-DK', firstDayOfWeek: 1 },
|
|
64
|
+
};
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A full-block page for when the user can't get to what they asked for: page not found (404), a server
|
|
4
|
+
* error (500), no access (403), planned maintenance, or no internet connection. Matches the Figma
|
|
5
|
+
* "Error page" component's five states.
|
|
6
|
+
*
|
|
7
|
+
* Each `type` brings its own icon, tint, code label ("404", "Maintenance", ...), heading, paragraph and
|
|
8
|
+
* buttons, all overridable by props. The component doesn't navigate or retry anything: it emits
|
|
9
|
+
* `bsPrimary` / `bsSecondary` and your app decides what "Go to Overview" or "Try again" does.
|
|
10
|
+
*
|
|
11
|
+
* **Built from:** `bs-card` (the surface), `bs-icon-tile` (the icon), `bs-button` (the actions).
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* - Replacing the content of a page or panel that can't be shown, with a clear way forward.
|
|
15
|
+
*
|
|
16
|
+
* ## When not to use
|
|
17
|
+
* - A problem with one field or one action -- use inline validation or a `bs-snackbar`.
|
|
18
|
+
* - A blocking question the user must answer -- use `bs-dialog`.
|
|
19
|
+
*
|
|
20
|
+
* @slot icon - Replaces the default glyph in the icon tile. Draw it with `currentColor`.
|
|
21
|
+
* @part container - The card.
|
|
22
|
+
* @part art - The icon tile.
|
|
23
|
+
* @part code - The label under the icon ("404", "Maintenance", ...).
|
|
24
|
+
* @part heading - The heading.
|
|
25
|
+
* @part description - The paragraph.
|
|
26
|
+
* @part actions - The button row.
|
|
27
|
+
* @part primary - The primary button.
|
|
28
|
+
* @part secondary - The secondary button.
|
|
29
|
+
* @part reference - The small reference line (an error id and time).
|
|
30
|
+
*/
|
|
31
|
+
export class BsErrorPage {
|
|
32
|
+
/** Which error: `not-found` (404), `server-error` (500), `no-access` (403), `maintenance` or
|
|
33
|
+
* `offline`. */
|
|
34
|
+
type = 'not-found';
|
|
35
|
+
/** The small label under the icon, e.g. "404". Defaults per `type` ("404", "500", "403",
|
|
36
|
+
* "Maintenance", "Offline"). Set it to an empty string to hide it. */
|
|
37
|
+
code;
|
|
38
|
+
/** Heading. Defaults per `type`. */
|
|
39
|
+
heading;
|
|
40
|
+
/** HTML heading level for the heading, 1-6. Use 1 when this replaces the whole page; lower when it
|
|
41
|
+
* sits inside a section that already has a heading above it. */
|
|
42
|
+
headingLevel = 1;
|
|
43
|
+
/** Paragraph under the heading. Defaults per `type`. */
|
|
44
|
+
description;
|
|
45
|
+
/** Label of the primary button. Defaults per `type`. Set it to an empty string to hide it. */
|
|
46
|
+
primaryLabel;
|
|
47
|
+
/** Label of the secondary button. Defaults per `type` (only `not-found`, `server-error` and
|
|
48
|
+
* `no-access` have one). Set it to an empty string to hide it. */
|
|
49
|
+
secondaryLabel;
|
|
50
|
+
/** A small reference line under the buttons, e.g. `"Error ID: 7f3c-21a9 · 30.09.2026 10:42"`, for
|
|
51
|
+
* support to look up. Nothing is shown when empty. */
|
|
52
|
+
reference;
|
|
53
|
+
/** Fires when the primary button is pressed. */
|
|
54
|
+
bsPrimary;
|
|
55
|
+
/** Fires when the secondary button is pressed. */
|
|
56
|
+
bsSecondary;
|
|
57
|
+
get defaults() {
|
|
58
|
+
return TYPES[this.type] ?? TYPES['not-found'];
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const d = this.defaults;
|
|
62
|
+
const code = this.code ?? d.code;
|
|
63
|
+
const heading = this.heading ?? d.heading;
|
|
64
|
+
const description = this.description ?? d.description;
|
|
65
|
+
const primary = this.primaryLabel ?? d.primary;
|
|
66
|
+
const secondary = this.secondaryLabel ?? d.secondary;
|
|
67
|
+
const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 1));
|
|
68
|
+
return (h("bs-card", { key: '27e16dc9013ea60751032fcccd626fb44aa7f708', part: "container", class: "bs-error-page", surface: "base" }, h("div", { key: 'bbca94e98665e09c5cd86626bf136f7b1393cbeb', class: "bs-error-page__body" }, h("div", { key: 'f358107685a4bfa06f1428bdd203d06b767fa83b', class: "bs-error-page__art-group" }, h("bs-icon-tile", { key: '096621ed3f0fa1545ae4e9a55cf316ff8f4349cb', part: "art", class: `bs-error-page__art ${d.info ? 'bs-error-page__art--info' : ''}`, intent: d.intent, size: "lg" }, h("slot", { key: '675e23b9001cb6570d95092f429666bee38368d1', name: "icon" }, d.glyph())), code && (h("span", { key: 'f82874da8c28f2f3e7adc17f4532a4b99082fc81', part: "code", class: "bs-error-page__code" }, code))), h(`h${level}`, { part: 'heading', class: { 'bs-error-page__heading': true } }, heading), description && (h("p", { key: 'ee4a20fa4862df6533eb6de359dbf3f55c613f26', part: "description", class: "bs-error-page__description" }, description)), (primary || secondary) && (h("div", { key: 'b921d9f129128a92ce3af409a8cd723ee49b7e02', part: "actions", class: "bs-error-page__actions" }, primary && (h("bs-button", { key: '0e8e62423a122ce6bcb41ad93138cb5d2573d5d1', part: "primary", variant: "primary", onClick: () => this.bsPrimary.emit() }, primary)), secondary && (h("bs-button", { key: '07d4527e4fd8813d4a6c1d5316b34c2678bbae8d', part: "secondary", variant: "outlined", onClick: () => this.bsSecondary.emit() }, secondary)))), this.reference && (h("p", { key: '590120eeb06e91ab3617d3f1630a361c207afe42', part: "reference", class: "bs-error-page__reference" }, this.reference)))));
|
|
69
|
+
}
|
|
70
|
+
static get is() { return "bs-error-page"; }
|
|
71
|
+
static get encapsulation() { return "shadow"; }
|
|
72
|
+
static get originalStyleUrls() {
|
|
73
|
+
return {
|
|
74
|
+
"$": ["bs-error-page.css"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get styleUrls() {
|
|
78
|
+
return {
|
|
79
|
+
"$": ["bs-error-page.css"]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static get properties() {
|
|
83
|
+
return {
|
|
84
|
+
"type": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "BsErrorPageType",
|
|
89
|
+
"resolved": "\"maintenance\" | \"no-access\" | \"not-found\" | \"offline\" | \"server-error\"",
|
|
90
|
+
"references": {
|
|
91
|
+
"BsErrorPageType": {
|
|
92
|
+
"location": "local",
|
|
93
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-error-page/bs-error-page.tsx",
|
|
94
|
+
"id": "src/components/bs-error-page/bs-error-page.tsx::BsErrorPageType"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": "Which error: `not-found` (404), `server-error` (500), `no-access` (403), `maintenance` or\n`offline`."
|
|
103
|
+
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
106
|
+
"reflect": true,
|
|
107
|
+
"attribute": "type",
|
|
108
|
+
"defaultValue": "'not-found'"
|
|
109
|
+
},
|
|
110
|
+
"code": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": true,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "The small label under the icon, e.g. \"404\". Defaults per `type` (\"404\", \"500\", \"403\",\n\"Maintenance\", \"Offline\"). Set it to an empty string to hide it."
|
|
123
|
+
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"reflect": false,
|
|
127
|
+
"attribute": "code"
|
|
128
|
+
},
|
|
129
|
+
"heading": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "string",
|
|
134
|
+
"resolved": "string",
|
|
135
|
+
"references": {}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": true,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "Heading. Defaults per `type`."
|
|
142
|
+
},
|
|
143
|
+
"getter": false,
|
|
144
|
+
"setter": false,
|
|
145
|
+
"reflect": false,
|
|
146
|
+
"attribute": "heading"
|
|
147
|
+
},
|
|
148
|
+
"headingLevel": {
|
|
149
|
+
"type": "number",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "number",
|
|
153
|
+
"resolved": "number",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "HTML heading level for the heading, 1-6. Use 1 when this replaces the whole page; lower when it\nsits inside a section that already has a heading above it."
|
|
161
|
+
},
|
|
162
|
+
"getter": false,
|
|
163
|
+
"setter": false,
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"attribute": "heading-level",
|
|
166
|
+
"defaultValue": "1"
|
|
167
|
+
},
|
|
168
|
+
"description": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "string",
|
|
173
|
+
"resolved": "string",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": true,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Paragraph under the heading. Defaults per `type`."
|
|
181
|
+
},
|
|
182
|
+
"getter": false,
|
|
183
|
+
"setter": false,
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"attribute": "description"
|
|
186
|
+
},
|
|
187
|
+
"primaryLabel": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Label of the primary button. Defaults per `type`. Set it to an empty string to hide it."
|
|
200
|
+
},
|
|
201
|
+
"getter": false,
|
|
202
|
+
"setter": false,
|
|
203
|
+
"reflect": false,
|
|
204
|
+
"attribute": "primary-label"
|
|
205
|
+
},
|
|
206
|
+
"secondaryLabel": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "string",
|
|
211
|
+
"resolved": "string",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": true,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "Label of the secondary button. Defaults per `type` (only `not-found`, `server-error` and\n`no-access` have one). Set it to an empty string to hide it."
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"reflect": false,
|
|
223
|
+
"attribute": "secondary-label"
|
|
224
|
+
},
|
|
225
|
+
"reference": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"mutable": false,
|
|
228
|
+
"complexType": {
|
|
229
|
+
"original": "string",
|
|
230
|
+
"resolved": "string",
|
|
231
|
+
"references": {}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": true,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "A small reference line under the buttons, e.g. `\"Error ID: 7f3c-21a9 \u00B7 30.09.2026 10:42\"`, for\nsupport to look up. Nothing is shown when empty."
|
|
238
|
+
},
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false,
|
|
241
|
+
"reflect": false,
|
|
242
|
+
"attribute": "reference"
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
static get events() {
|
|
247
|
+
return [{
|
|
248
|
+
"method": "bsPrimary",
|
|
249
|
+
"name": "bsPrimary",
|
|
250
|
+
"bubbles": true,
|
|
251
|
+
"cancelable": true,
|
|
252
|
+
"composed": true,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "Fires when the primary button is pressed."
|
|
256
|
+
},
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "void",
|
|
259
|
+
"resolved": "void",
|
|
260
|
+
"references": {}
|
|
261
|
+
}
|
|
262
|
+
}, {
|
|
263
|
+
"method": "bsSecondary",
|
|
264
|
+
"name": "bsSecondary",
|
|
265
|
+
"bubbles": true,
|
|
266
|
+
"cancelable": true,
|
|
267
|
+
"composed": true,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": "Fires when the secondary button is pressed."
|
|
271
|
+
},
|
|
272
|
+
"complexType": {
|
|
273
|
+
"original": "void",
|
|
274
|
+
"resolved": "void",
|
|
275
|
+
"references": {}
|
|
276
|
+
}
|
|
277
|
+
}];
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
const icon = (children) => () => (h("svg", { class: "bs-error-page__glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.8", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, children));
|
|
281
|
+
const TYPES = {
|
|
282
|
+
'not-found': {
|
|
283
|
+
intent: 'default',
|
|
284
|
+
info: true,
|
|
285
|
+
code: '404',
|
|
286
|
+
heading: 'Page not found',
|
|
287
|
+
description: 'The link may be old, or the page has moved.',
|
|
288
|
+
primary: 'Go to Overview',
|
|
289
|
+
secondary: 'Search',
|
|
290
|
+
glyph: icon(h("g", null, h("circle", { cx: "10.5", cy: "10.5", r: "6.5" }), h("path", { d: "M15.5 15.5L20.5 20.5" }))),
|
|
291
|
+
},
|
|
292
|
+
'server-error': {
|
|
293
|
+
intent: 'error',
|
|
294
|
+
code: '500',
|
|
295
|
+
heading: 'Something went wrong on our side',
|
|
296
|
+
description: 'We’re working on it. Try again in a moment.',
|
|
297
|
+
primary: 'Try again',
|
|
298
|
+
secondary: 'Contact support',
|
|
299
|
+
glyph: icon(h("g", null, h("circle", { cx: "12", cy: "12", r: "9" }), h("path", { d: "M12 7.5V12.5" }), h("path", { d: "M12 16.2V16.3" }))),
|
|
300
|
+
},
|
|
301
|
+
'no-access': {
|
|
302
|
+
intent: 'default',
|
|
303
|
+
code: '403',
|
|
304
|
+
heading: 'You don’t have access',
|
|
305
|
+
description: 'Contact your administrator for the access.',
|
|
306
|
+
primary: 'Request access',
|
|
307
|
+
secondary: 'Go back',
|
|
308
|
+
glyph: icon(h("g", null, h("rect", { x: "5", y: "10.5", width: "14", height: "9.5", rx: "1.5" }), h("path", { d: "M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5" }))),
|
|
309
|
+
},
|
|
310
|
+
maintenance: {
|
|
311
|
+
intent: 'warning',
|
|
312
|
+
code: 'Maintenance',
|
|
313
|
+
heading: 'We’re upgrading the system',
|
|
314
|
+
description: 'We’ll be back shortly. Your data is safe.',
|
|
315
|
+
primary: 'View system status',
|
|
316
|
+
secondary: '',
|
|
317
|
+
glyph: icon(h("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" })),
|
|
318
|
+
},
|
|
319
|
+
offline: {
|
|
320
|
+
intent: 'warning',
|
|
321
|
+
code: 'Offline',
|
|
322
|
+
heading: 'No internet connection',
|
|
323
|
+
description: 'Changes are saved locally and will be updated when you’re back online.',
|
|
324
|
+
primary: 'Try again',
|
|
325
|
+
secondary: '',
|
|
326
|
+
glyph: icon(h("g", null, h("path", { d: "M4 4L20 20" }), h("path", { d: "M2.5 9.5A14 14 0 0 1 8 6.7" }), h("path", { d: "M21.5 9.5A14 14 0 0 0 14 6.2" }), h("path", { d: "M5.5 13A9.5 9.5 0 0 1 9.5 10.6" }), h("path", { d: "M18.5 13A9.5 9.5 0 0 0 16 11.3" }), h("path", { d: "M9 16.5A4.5 4.5 0 0 1 12 15.3" }), h("path", { d: "M12 19.2V19.3" }))),
|
|
327
|
+
},
|
|
328
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
+
import { componentDescription, propDescription } from "../../stories-utils";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/bs-error-page',
|
|
6
|
+
parameters: { docs: { description: { component: componentDescription('bs-error-page') } } },
|
|
7
|
+
render: args => html `
|
|
8
|
+
<bs-error-page
|
|
9
|
+
type=${args.type}
|
|
10
|
+
code=${ifDefined(args.code || undefined)}
|
|
11
|
+
heading=${ifDefined(args.heading || undefined)}
|
|
12
|
+
description=${ifDefined(args.description || undefined)}
|
|
13
|
+
primary-label=${ifDefined(args.primaryLabel || undefined)}
|
|
14
|
+
secondary-label=${ifDefined(args.secondaryLabel || undefined)}
|
|
15
|
+
reference=${ifDefined(args.reference || undefined)}
|
|
16
|
+
heading-level=${args.headingLevel}
|
|
17
|
+
@bsPrimary=${() => console.log('bsPrimary')}
|
|
18
|
+
@bsSecondary=${() => console.log('bsSecondary')}
|
|
19
|
+
></bs-error-page>
|
|
20
|
+
`,
|
|
21
|
+
argTypes: {
|
|
22
|
+
type: { control: 'select', options: ['not-found', 'server-error', 'no-access', 'maintenance', 'offline'], description: propDescription('bs-error-page', 'type') },
|
|
23
|
+
code: { control: 'text', description: propDescription('bs-error-page', 'code') },
|
|
24
|
+
heading: { control: 'text', description: propDescription('bs-error-page', 'heading') },
|
|
25
|
+
description: { control: 'text', description: propDescription('bs-error-page', 'description') },
|
|
26
|
+
primaryLabel: { control: 'text', description: propDescription('bs-error-page', 'primaryLabel') },
|
|
27
|
+
secondaryLabel: { control: 'text', description: propDescription('bs-error-page', 'secondaryLabel') },
|
|
28
|
+
reference: { control: 'text', description: propDescription('bs-error-page', 'reference') },
|
|
29
|
+
headingLevel: { control: { type: 'number', min: 1, max: 6 }, description: propDescription('bs-error-page', 'headingLevel') },
|
|
30
|
+
},
|
|
31
|
+
args: { type: 'not-found', code: '', heading: '', description: '', primaryLabel: '', secondaryLabel: '', reference: '', headingLevel: 1 },
|
|
32
|
+
};
|
|
33
|
+
export default meta;
|
|
34
|
+
export const NotFound = { name: 'Not found (404)' };
|
|
35
|
+
export const ServerError = {
|
|
36
|
+
name: 'Server error (500)',
|
|
37
|
+
args: { type: 'server-error', reference: 'Error ID: 7f3c-21a9 · 30.09.2026 10:42' },
|
|
38
|
+
};
|
|
39
|
+
export const NoAccess = { name: 'No access (403)', args: { type: 'no-access' } };
|
|
40
|
+
export const Maintenance = {
|
|
41
|
+
args: { type: 'maintenance', description: 'Back up at about 06:00. Your data is safe.' },
|
|
42
|
+
};
|
|
43
|
+
export const Offline = { args: { type: 'offline' } };
|
|
44
|
+
export const CustomCopy = {
|
|
45
|
+
name: 'Custom copy',
|
|
46
|
+
args: { type: 'not-found', heading: 'This order doesn’t exist', description: 'Check the order number, or search for it.', primaryLabel: 'All orders', secondaryLabel: 'Search orders' },
|
|
47
|
+
};
|
|
48
|
+
export const CustomIcon = {
|
|
49
|
+
name: 'Custom icon',
|
|
50
|
+
render: () => html `
|
|
51
|
+
<bs-error-page type="offline" heading="You're offline" description="We'll sync when you reconnect." primary-label="Retry now">
|
|
52
|
+
<svg slot="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
|
53
|
+
<path d="M12 3V13M8 9L12 13L16 9M5 19H19" />
|
|
54
|
+
</svg>
|
|
55
|
+
</bs-error-page>
|
|
56
|
+
`,
|
|
57
|
+
};
|