@brandsync/wc 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/REFERENCE.md +108 -0
- package/custom-elements.json +910 -13
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-9d660c03.entry.js → p-0f97fe35.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ab07c9b5.entry.js → p-1b4c0971.entry.js} +1 -1
- package/dist/brandsync-wc/{p-694fe468.entry.js → p-1bf8fbbb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b6ac1b50.entry.js → p-1ca8b01e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-47cd19aa.entry.js → p-23379d7c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-95f034fc.entry.js → p-2e285364.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3f6682f8.entry.js → p-3488c4fc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e1b7bea7.entry.js → p-34b0c048.entry.js} +1 -1
- package/dist/brandsync-wc/p-36fe783a.entry.js +1 -0
- package/dist/brandsync-wc/{p-8184d7de.entry.js → p-38ac9aad.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4ea9b6a1.entry.js → p-3c21d0bf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6e923ebc.entry.js → p-401b3d3d.entry.js} +1 -1
- package/dist/brandsync-wc/p-45986ad4.entry.js +1 -0
- package/dist/brandsync-wc/{p-ed5c2d97.entry.js → p-4ca40386.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9125632c.entry.js → p-4ed00786.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bee30626.entry.js → p-538d5b58.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fb4d0093.entry.js → p-54f9529f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1b5cc9b8.entry.js → p-5a45ef51.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ce16f038.entry.js → p-5ed1f45e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10290c41.entry.js → p-65fa1b21.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4054a944.entry.js → p-6cb21302.entry.js} +1 -1
- package/dist/brandsync-wc/{p-53362609.entry.js → p-6df48031.entry.js} +1 -1
- package/dist/brandsync-wc/p-769c5b4a.entry.js +1 -0
- package/dist/brandsync-wc/{p-07966676.entry.js → p-7a072e64.entry.js} +1 -1
- package/dist/brandsync-wc/p-7b3518b8.entry.js +1 -0
- package/dist/brandsync-wc/{p-658532b7.entry.js → p-86774165.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7e24dbd7.entry.js → p-87d44938.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4ea435a6.entry.js → p-89ea6366.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d64cae57.entry.js → p-912629c6.entry.js} +1 -1
- package/dist/brandsync-wc/p-9beeb30c.entry.js +1 -0
- package/dist/brandsync-wc/{p-23cc532f.entry.js → p-a56bc608.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9b58c0c5.entry.js → p-abfa43f5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-cceb8484.entry.js → p-ac9472ec.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f8d47004.entry.js → p-b6081bba.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b0b2e525.entry.js → p-b663ee67.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e0504a4b.entry.js → p-b67a0c8f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-86028548.entry.js → p-b9c0b481.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fa6b9750.entry.js → p-b9c9bcba.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9cf8274a.entry.js → p-baa3d37a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-68f0be29.entry.js → p-bc97ece8.entry.js} +1 -1
- package/dist/brandsync-wc/p-c25553bc.entry.js +1 -0
- package/dist/brandsync-wc/{p-45cb3e6d.entry.js → p-c85fe37b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c3da3080.entry.js → p-cf287ff1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c679b631.entry.js → p-d165a742.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f134a502.entry.js → p-d81c4f58.entry.js} +1 -1
- package/dist/brandsync-wc/{p-94d435a2.entry.js → p-dcacee29.entry.js} +1 -1
- package/dist/brandsync-wc/p-e294f698.entry.js +1 -0
- package/dist/brandsync-wc/{p-0e940ee1.entry.js → p-e5f50e93.entry.js} +1 -1
- package/dist/brandsync-wc/p-e72dd05e.entry.js +1 -0
- package/dist/brandsync-wc/{p-0cb6fc39.entry.js → p-e9b6b30f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fa34fe20.entry.js → p-ed71eb02.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e65d286c.entry.js → p-f0be9125.entry.js} +1 -1
- package/dist/brandsync-wc/p-f3cc961b.entry.js +1 -0
- package/dist/brandsync-wc/{p-6ca1e51b.entry.js → p-f4d1d56e.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +1 -1
- package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
- package/dist/cjs/bs-app-shell.cjs.entry.js +19 -0
- package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
- package/dist/cjs/bs-container.cjs.entry.js +23 -0
- package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
- package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/bs-divider.cjs.entry.js +29 -0
- package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/bs-grid.cjs.entry.js +55 -0
- package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
- package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
- package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-message.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-popover.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress.cjs.entry.js +2 -2
- package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/bs-radio.cjs.entry.js +1 -1
- package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
- package/dist/cjs/bs-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-slider.cjs.entry.js +1 -1
- package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
- package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bs-split-pane.cjs.entry.js +193 -0
- package/dist/cjs/bs-stack.cjs.entry.js +81 -0
- package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
- package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bs-switch.cjs.entry.js +1 -1
- package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
- package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
- package/dist/cjs/bs-toast.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
- 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-app-shell/bs-app-shell.cmp.test.js +71 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.css +58 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +79 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.stories.js +34 -0
- 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-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-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-citation-preview/bs-citation-preview.js +1 -1
- package/dist/collection/components/bs-container/bs-container.cmp.test.js +59 -0
- package/dist/collection/components/bs-container/bs-container.css +16 -0
- package/dist/collection/components/bs-container/bs-container.js +88 -0
- package/dist/collection/components/bs-container/bs-container.stories.js +24 -0
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
- package/dist/collection/components/bs-divider/bs-divider.cmp.test.js +47 -0
- package/dist/collection/components/bs-divider/bs-divider.css +47 -0
- package/dist/collection/components/bs-divider/bs-divider.js +147 -0
- package/dist/collection/components/bs-divider/bs-divider.stories.js +32 -0
- package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
- 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-grid/bs-grid.cmp.test.js +58 -0
- package/dist/collection/components/bs-grid/bs-grid.css +10 -0
- package/dist/collection/components/bs-grid/bs-grid.js +208 -0
- package/dist/collection/components/bs-grid/bs-grid.stories.js +38 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -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-message/bs-message.js +1 -1
- package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-popover/bs-popover.js +1 -1
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
- package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
- package/dist/collection/components/bs-split-pane/bs-split-pane.cmp.test.js +107 -0
- package/dist/collection/components/bs-split-pane/bs-split-pane.css +108 -0
- package/dist/collection/components/bs-split-pane/bs-split-pane.js +404 -0
- package/dist/collection/components/bs-split-pane/bs-split-pane.stories.js +47 -0
- package/dist/collection/components/bs-stack/bs-stack.cmp.test.js +113 -0
- package/dist/collection/components/bs-stack/bs-stack.css +22 -0
- package/dist/collection/components/bs-stack/bs-stack.js +252 -0
- package/dist/collection/components/bs-stack/bs-stack.stories.js +36 -0
- 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.js +2 -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-tooltip-trigger/bs-tooltip-trigger.js +1 -1
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
- 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-group.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-app-shell.d.ts +11 -0
- package/dist/components/bs-app-shell.js +1 -0
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.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-citation-preview.js +1 -1
- package/dist/components/bs-container.d.ts +11 -0
- package/dist/components/bs-container.js +1 -0
- package/dist/components/bs-cookie-consent.js +1 -1
- 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-divider.d.ts +11 -0
- package/dist/components/bs-divider.js +1 -0
- package/dist/components/bs-error-page.js +1 -1
- package/dist/components/bs-file-upload-item.js +1 -1
- package/dist/components/bs-file-upload.js +1 -1
- package/dist/components/bs-grid.d.ts +11 -0
- package/dist/components/bs-grid.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.js +1 -1
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-message-list.js +1 -1
- package/dist/components/bs-message.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.js +1 -1
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-popover.js +1 -1
- package/dist/components/bs-product-tour.js +1 -1
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-qr-code.js +1 -1
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-session-timeout.js +1 -1
- package/dist/components/bs-side-panel.js +1 -1
- package/dist/components/bs-skeleton.js +1 -1
- 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-spinner.js +1 -1
- package/dist/components/bs-split-pane.d.ts +11 -0
- package/dist/components/bs-split-pane.js +1 -0
- package/dist/components/bs-stack.d.ts +11 -0
- package/dist/components/bs-stack.js +1 -0
- 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-trigger.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/bs-whats-new-entry.js +1 -1
- package/dist/components/bs-whats-new.js +1 -1
- package/dist/components/{p-CrmEXUwm.js → p-B128GX8H.js} +1 -1
- package/dist/components/{p-DfzrJKwN.js → p-B3l4WpgS.js} +1 -1
- package/dist/components/{p-Rx4bpeYN.js → p-B80vOwH6.js} +1 -1
- package/dist/components/{p-Dqg8l1y6.js → p-Bqe4waKJ.js} +1 -1
- package/dist/components/{p-C9jIMBG3.js → p-BsbtyRJV.js} +1 -1
- package/dist/components/{p-Bfq5YVOv.js → p-BvYkZcOU.js} +1 -1
- package/dist/components/{p-BVhF8cZQ.js → p-ByKcHsj0.js} +1 -1
- package/dist/components/{p-owdeCW0M.js → p-ByLUtXxO.js} +1 -1
- package/dist/components/p-C7RZ6qZC.js +1 -0
- package/dist/components/{p-DpVeeIko.js → p-CK7fiES5.js} +1 -1
- package/dist/components/{p-QnTjSed5.js → p-CQjSDdH7.js} +1 -1
- package/dist/components/{p-uHvS81XA.js → p-D0KM1R2i.js} +1 -1
- package/dist/components/{p-DqXI9V2A.js → p-ElcsxZSh.js} +1 -1
- package/dist/components/{p-DAwSBMeM.js → p-GTDI4Ibw.js} +1 -1
- package/dist/components/{p-Cu-aeY9t.js → p-Mf1jorXP.js} +1 -1
- package/dist/components/{p-C2NR1v3p.js → p-kDJsWjTN.js} +1 -1
- package/dist/esm/brandsync-wc.js +1 -1
- package/dist/esm/bs-accordion-group.entry.js +1 -1
- package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
- package/dist/esm/bs-ai-greeting.entry.js +1 -1
- package/dist/esm/bs-ai-thinking.entry.js +1 -1
- package/dist/esm/bs-app-shell.entry.js +17 -0
- package/dist/esm/bs-attachment-list.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
- package/dist/esm/bs-chatbot-header.entry.js +1 -1
- package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
- package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
- package/dist/esm/bs-citation-preview.entry.js +1 -1
- package/dist/esm/bs-container.entry.js +21 -0
- package/dist/esm/bs-data-table.entry.js +2 -2
- package/dist/esm/bs-datepicker.entry.js +1 -1
- package/dist/esm/bs-divider.entry.js +27 -0
- package/dist/esm/bs-error-page.entry.js +1 -1
- package/dist/esm/bs-file-upload-item.entry.js +1 -1
- package/dist/esm/bs-file-upload.entry.js +1 -1
- package/dist/esm/bs-grid.entry.js +53 -0
- package/dist/esm/bs-icon-button.entry.js +1 -1
- package/dist/esm/bs-icon-tile.entry.js +2 -2
- package/dist/esm/bs-inline-tab.entry.js +1 -1
- package/dist/esm/bs-input_3.entry.js +4 -4
- package/dist/esm/bs-message-list.entry.js +1 -1
- package/dist/esm/bs-message.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer.entry.js +2 -2
- package/dist/esm/bs-navigation-header.entry.js +1 -1
- package/dist/esm/bs-pagination.entry.js +1 -1
- package/dist/esm/bs-popover.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +2 -2
- package/dist/esm/bs-progress.entry.js +2 -2
- package/dist/esm/bs-qr-code.entry.js +1 -1
- package/dist/esm/bs-radio.entry.js +1 -1
- package/dist/esm/bs-session-timeout.entry.js +1 -1
- package/dist/esm/bs-skeleton.entry.js +1 -1
- package/dist/esm/bs-slider.entry.js +1 -1
- package/dist/esm/bs-snackbar.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +2 -2
- package/dist/esm/bs-spinner.entry.js +1 -1
- package/dist/esm/bs-split-pane.entry.js +191 -0
- package/dist/esm/bs-stack.entry.js +79 -0
- package/dist/esm/bs-stepper-step.entry.js +1 -1
- package/dist/esm/bs-stepper.entry.js +1 -1
- package/dist/esm/bs-switch.entry.js +1 -1
- package/dist/esm/bs-tab_3.entry.js +3 -3
- package/dist/esm/bs-timepicker.entry.js +2 -2
- package/dist/esm/bs-toast.entry.js +1 -1
- package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-app-shell/bs-app-shell.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-shell/bs-app-shell.d.ts +40 -0
- package/dist/types/components/bs-app-shell/bs-app-shell.stories.d.ts +11 -0
- package/dist/types/components/bs-container/bs-container.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-container/bs-container.d.ts +22 -0
- package/dist/types/components/bs-container/bs-container.stories.d.ts +15 -0
- package/dist/types/components/bs-divider/bs-divider.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-divider/bs-divider.d.ts +29 -0
- package/dist/types/components/bs-divider/bs-divider.stories.d.ts +16 -0
- package/dist/types/components/bs-grid/bs-grid.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-grid/bs-grid.d.ts +43 -0
- package/dist/types/components/bs-grid/bs-grid.stories.d.ts +18 -0
- package/dist/types/components/bs-split-pane/bs-split-pane.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-split-pane/bs-split-pane.d.ts +85 -0
- package/dist/types/components/bs-split-pane/bs-split-pane.stories.d.ts +15 -0
- package/dist/types/components/bs-stack/bs-stack.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stack/bs-stack.d.ts +46 -0
- package/dist/types/components/bs-stack/bs-stack.stories.d.ts +18 -0
- package/dist/types/components.d.ts +798 -0
- package/package.json +1 -1
- package/reference.d.ts +18 -0
- package/reference.json +286 -0
- package/dist/brandsync-wc/p-4bbc4809.entry.js +0 -1
- package/dist/brandsync-wc/p-bf8bd386.entry.js +0 -1
- package/dist/brandsync-wc/p-cd53bba9.entry.js +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
const SPACING_TOKENS = ['0', '25', '50', '75', '100', '150', '200', '250', '300', '350', '400', '500', '550', '600', '700', '800', '1000', '1200', '1500'];
|
|
3
|
+
/**
|
|
4
|
+
* A centred wrapper that limits content width to a breakpoint and adds horizontal padding.
|
|
5
|
+
*
|
|
6
|
+
* ## When to use
|
|
7
|
+
* - Constraining page or section content to a readable, consistent maximum width.
|
|
8
|
+
*
|
|
9
|
+
* ## When not to use
|
|
10
|
+
* - Arranging children relative to each other (use `bs-stack`).
|
|
11
|
+
* - Full-bleed regions such as hero backgrounds (use `size="fluid"` or no container).
|
|
12
|
+
*
|
|
13
|
+
* @slot - Content to constrain.
|
|
14
|
+
* @prop --bs-container-max-width - Maximum width. Aliased to the `--bs-breakpoint-*` token for `size`; `none` for `fluid`.
|
|
15
|
+
* @prop --bs-container-padding - Horizontal padding. Aliased to the `padding` spacing token (default `--bs-spacing-300`).
|
|
16
|
+
*/
|
|
17
|
+
export class BsContainer {
|
|
18
|
+
/** Maximum width, taken from the breakpoint tokens. `fluid` removes the limit. */
|
|
19
|
+
size = 'xl';
|
|
20
|
+
/** Spacing token name for horizontal padding (e.g. `300` => `--bs-spacing-300`). Invalid values fall back to `300`. */
|
|
21
|
+
padding = '300';
|
|
22
|
+
render() {
|
|
23
|
+
const pad = SPACING_TOKENS.includes(String(this.padding)) ? String(this.padding) : '300';
|
|
24
|
+
return (h(Host, { key: '001d2089d9e69657dad10a4d95c550900bdb5252', style: { '--bs-container-padding-token': `var(--bs-spacing-${pad})` } }, h("slot", { key: '8f983ed8ad608a386d84468682296d9318089d28' })));
|
|
25
|
+
}
|
|
26
|
+
static get is() { return "bs-container"; }
|
|
27
|
+
static get encapsulation() { return "shadow"; }
|
|
28
|
+
static get originalStyleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["bs-container.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get styleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["bs-container.css"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get properties() {
|
|
39
|
+
return {
|
|
40
|
+
"size": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "BsContainerSize",
|
|
45
|
+
"resolved": "\"2xl\" | \"fluid\" | \"lg\" | \"md\" | \"sm\" | \"xl\"",
|
|
46
|
+
"references": {
|
|
47
|
+
"BsContainerSize": {
|
|
48
|
+
"location": "local",
|
|
49
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-container/bs-container.tsx",
|
|
50
|
+
"id": "src/components/bs-container/bs-container.tsx::BsContainerSize"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": "Maximum width, taken from the breakpoint tokens. `fluid` removes the limit."
|
|
59
|
+
},
|
|
60
|
+
"getter": false,
|
|
61
|
+
"setter": false,
|
|
62
|
+
"reflect": true,
|
|
63
|
+
"attribute": "size",
|
|
64
|
+
"defaultValue": "'xl'"
|
|
65
|
+
},
|
|
66
|
+
"padding": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "string",
|
|
71
|
+
"resolved": "string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Spacing token name for horizontal padding (e.g. `300` => `--bs-spacing-300`). Invalid values fall back to `300`."
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"attribute": "padding",
|
|
84
|
+
"defaultValue": "'300'"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { componentDescription } from "../../stories-utils";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Components/bs-container',
|
|
5
|
+
parameters: { docs: { description: { component: componentDescription('bs-container') } } },
|
|
6
|
+
render: args => html `
|
|
7
|
+
<bs-container size=${args.size} padding=${args.padding}>
|
|
8
|
+
<div style="background: var(--bs-surface-container); padding: var(--bs-spacing-200)">Container content (${args.size})</div>
|
|
9
|
+
</bs-container>
|
|
10
|
+
`,
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: { control: 'select', options: ['sm', 'md', 'lg', 'xl', '2xl', 'fluid'] },
|
|
13
|
+
padding: { control: 'select', options: ['0', '25', '50', '75', '100', '150', '200', '250', '300', '350', '400', '500', '550', '600', '700', '800', '1000', '1200', '1500'] },
|
|
14
|
+
},
|
|
15
|
+
args: { size: 'xl', padding: '300' },
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export const Default = {};
|
|
19
|
+
export const Small = { args: { size: 'sm' } };
|
|
20
|
+
export const Medium = { args: { size: 'md' } };
|
|
21
|
+
export const Large = { args: { size: 'lg' } };
|
|
22
|
+
export const ExtraLarge2x = { args: { size: '2xl' } };
|
|
23
|
+
export const Fluid = { args: { size: 'fluid' } };
|
|
24
|
+
export const WidePadding = { args: { size: 'md', padding: '600' } };
|
|
@@ -87,11 +87,11 @@ export class BsDataTable {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h("table", { key: '
|
|
90
|
+
return (h("table", { key: '5b61e4f581c2ab0da069cabf9a612285f98b0865', part: "table", class: "bs-data-table" }, h("thead", { key: 'c3bed54d42e2e2c3d54cfa9754251ab0d34c55fd', part: "head" }, h("tr", { key: '8f0aaa90b06650719423de98e05f39ffce407a67' }, this.selectable && (h("th", { key: 'ed065c125b50493c621c8922cdd3d7ca26222b8e', class: "bs-data-table__select-col" }, this.rows.length > 0 && (h("input", { key: '0e4f29de07f7818e7024714281f5faadcd288c88', type: "checkbox", "aria-label": this.selectAllLabel, checked: this.selectedIds.size > 0 && this.selectedIds.size === this.rows.length, indeterminate: this.selectedIds.size > 0 && this.selectedIds.size < this.rows.length, onChange: this.onSelectAllChange })))), this.columns.map(column => {
|
|
91
91
|
const isSorted = this.sortColumn === column.key;
|
|
92
92
|
const ariaSort = column.sortable ? (isSorted ? (this.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none') : undefined;
|
|
93
93
|
return (h("th", { part: "header-cell", class: "bs-data-table__header-cell", "aria-sort": ariaSort }, column.sortable ? (h("button", { type: "button", class: "bs-data-table__sort-button", onClick: () => this.onHeaderClick(column) }, column.label, isSorted && h("span", { class: "bs-data-table__sort-indicator" }, this.sortDirection === 'asc' ? ' ▲' : ' ▼'))) : (column.label)));
|
|
94
|
-
}))), h("tbody", { key: '
|
|
94
|
+
}))), h("tbody", { key: 'b993a2e1c22d094936c49ad33486b2ecc02861c8', part: "body" }, this.rows.map(row => (h("tr", { part: "row", class: "bs-data-table__row" }, this.selectable && (h("td", { class: "bs-data-table__select-col" }, h("input", { type: "checkbox", checked: this.selectedIds.has(row.id), onChange: ev => this.onRowCheckboxChange(row, ev) }))), this.columns.map(column => this.cellRenderer ? (
|
|
95
95
|
// cellRenderer is a developer-supplied, trusted function (JS-property-only, never
|
|
96
96
|
// derived from untrusted input) -- its HTML output is intentionally not escaped,
|
|
97
97
|
// same trust model as React's dangerouslySetInnerHTML.
|
|
@@ -340,7 +340,7 @@ export class BsDatepicker {
|
|
|
340
340
|
: this.defaultTabbable(days);
|
|
341
341
|
const isInRange = (iso) => !!selectedStart && !!previewEnd && iso > selectedStart && iso < previewEnd;
|
|
342
342
|
const weekdays = this.weekdays();
|
|
343
|
-
return (h("bs-card", { key: '
|
|
343
|
+
return (h("bs-card", { key: 'd2794a112b72b3dc871360b1e57273c9ef097fc4', part: "container", class: "bs-datepicker", surface: "raised" }, h("div", { key: 'bee55a1cd06aa44171f40babae77b1f2f742d160', class: "bs-datepicker__body" }, this.renderHeader(), h("div", { key: 'd4ab1cfd76fcea8b64daeb951da7b36300c036f0', part: "nav", class: "bs-datepicker__nav" }, h("button", { key: '5fcbb3f928db51049fd034beb3519400afe4f128', part: "prev", type: "button", class: "bs-datepicker__nav-button", "aria-label": this.previousLabel, onClick: () => this.moveView(-1) }, h("svg", { key: '18889f8f9dd9364bd73595635b72515b91d35ade', viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { key: '3d648cd4be611ef4de37cc08f9017809388d36e3', d: "M15 18L9 12L15 6", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: 'c0647871f1c140472807ae51e04604c6d87ccaa4', part: "title", class: "bs-datepicker__title", "aria-live": "polite" }, this.titleText()), h("button", { key: 'ec3d33aeea146534d6640ac336905a002d0e7dc2', part: "next", type: "button", class: "bs-datepicker__nav-button", "aria-label": this.nextLabel, onClick: () => this.moveView(1) }, h("svg", { key: '5cbac8630a30064d940e5f03ce767b525c09dd7c', viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { key: '2c47ca0911b8b42cd3590ff053905df327363e9f', d: "M9 18L15 12L9 6", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '91a6942792287f3044962fd278e36ed04ec03878', part: "grid", class: "bs-datepicker__grid", role: "grid", "aria-label": this.titleText() }, h("div", { key: '445e0548f0913426fe2eb730f291423d9165f839', class: "bs-datepicker__row", role: "row" }, weekdays.map(w => (h("div", { part: "weekday", class: "bs-datepicker__weekday", role: "columnheader" }, w)))), Array.from({ length: 6 }, (_, r) => {
|
|
344
344
|
const row = days.slice(r * 7, r * 7 + 7);
|
|
345
345
|
return (h("div", { class: "bs-datepicker__row", role: "row" }, row.map((d, c) => {
|
|
346
346
|
const iso = toIso(d);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
describe('bs-divider', () => {
|
|
3
|
+
it('defaults to a horizontal separator with ARIA', async () => {
|
|
4
|
+
const { root } = await render(h("div", null, h("bs-divider", null)));
|
|
5
|
+
const el = root.querySelector('bs-divider');
|
|
6
|
+
expect(el).toEqualAttribute('orientation', 'horizontal');
|
|
7
|
+
expect(el).toEqualAttribute('variant', 'default');
|
|
8
|
+
expect(el).toEqualAttribute('role', 'separator');
|
|
9
|
+
expect(el).toEqualAttribute('aria-orientation', 'horizontal');
|
|
10
|
+
});
|
|
11
|
+
it('decorative removes separator semantics', async () => {
|
|
12
|
+
const { root } = await render(h("div", null, h("bs-divider", { decorative: true })));
|
|
13
|
+
const el = root.querySelector('bs-divider');
|
|
14
|
+
expect(el).toEqualAttribute('role', 'none');
|
|
15
|
+
expect(el).toEqualAttribute('aria-hidden', 'true');
|
|
16
|
+
expect(el.hasAttribute('aria-orientation')).toBe(false);
|
|
17
|
+
});
|
|
18
|
+
it('vertical orientation sets aria-orientation and stretches to container height', async () => {
|
|
19
|
+
const { root } = await render(h("div", { style: { display: 'flex', height: '80px', width: '200px' } }, h("bs-divider", { orientation: "vertical" })));
|
|
20
|
+
const el = root.querySelector('bs-divider');
|
|
21
|
+
expect(el).toEqualAttribute('aria-orientation', 'vertical');
|
|
22
|
+
const r = el.getBoundingClientRect();
|
|
23
|
+
expect(Math.round(r.height)).toBe(80);
|
|
24
|
+
expect(Math.round(r.width)).toBe(1);
|
|
25
|
+
});
|
|
26
|
+
it('horizontal divider is full width and 1px thick', async () => {
|
|
27
|
+
const { root } = await render(h("div", { style: { width: '300px' } }, h("bs-divider", null)));
|
|
28
|
+
const r = root.querySelector('bs-divider').getBoundingClientRect();
|
|
29
|
+
expect(Math.round(r.width)).toBe(300);
|
|
30
|
+
expect(Math.round(r.height)).toBe(1);
|
|
31
|
+
});
|
|
32
|
+
it('inset indents the line', async () => {
|
|
33
|
+
const { root } = await render(h("div", { style: { width: '300px' } }, h("bs-divider", { id: "s", inset: "start" }), h("bs-divider", { id: "b", inset: "both" }), h("bs-divider", { id: "n" })));
|
|
34
|
+
const line = (id) => root.querySelector(`#${id}`).shadowRoot.querySelector('.line').getBoundingClientRect();
|
|
35
|
+
expect(Math.round(line('n').width)).toBe(300);
|
|
36
|
+
const start = line('s');
|
|
37
|
+
const both = line('b');
|
|
38
|
+
expect(start.width).toBeLessThan(300);
|
|
39
|
+
expect(both.width).toBeLessThan(start.width);
|
|
40
|
+
expect(Math.round(start.left - line('n').left)).toBeGreaterThan(0);
|
|
41
|
+
});
|
|
42
|
+
it('subtle variant uses a different colour than default', async () => {
|
|
43
|
+
const { root } = await render(h("div", null, h("bs-divider", { id: "d" }), h("bs-divider", { id: "s", variant: "subtle" })));
|
|
44
|
+
const bg = (id) => getComputedStyle(root.querySelector(`#${id}`).shadowRoot.querySelector('.line')).backgroundColor;
|
|
45
|
+
expect(bg('s')).not.toBe(bg('d'));
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
align-self: stretch;
|
|
5
|
+
flex: none;
|
|
6
|
+
--bs-divider-thickness: 1px;
|
|
7
|
+
--bs-divider-color: var(--bs-border-neutral-container);
|
|
8
|
+
--bs-divider-inset: var(--bs-spacing-300);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([variant='subtle']) {
|
|
12
|
+
--bs-divider-color: var(--bs-neutral-100);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([orientation='vertical']) {
|
|
16
|
+
width: var(--bs-divider-thickness);
|
|
17
|
+
min-height: 1em;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host(:not([orientation='vertical'])) {
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: var(--bs-divider-thickness);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.line {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
background: var(--bs-divider-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([inset='start']:not([orientation='vertical'])) .line {
|
|
33
|
+
margin-inline-start: var(--bs-divider-inset);
|
|
34
|
+
width: calc(100% - var(--bs-divider-inset));
|
|
35
|
+
}
|
|
36
|
+
:host([inset='both']:not([orientation='vertical'])) .line {
|
|
37
|
+
margin-inline: var(--bs-divider-inset);
|
|
38
|
+
width: calc(100% - 2 * var(--bs-divider-inset));
|
|
39
|
+
}
|
|
40
|
+
:host([inset='start'][orientation='vertical']) .line {
|
|
41
|
+
margin-block-start: var(--bs-divider-inset);
|
|
42
|
+
height: calc(100% - var(--bs-divider-inset));
|
|
43
|
+
}
|
|
44
|
+
:host([inset='both'][orientation='vertical']) .line {
|
|
45
|
+
margin-block: var(--bs-divider-inset);
|
|
46
|
+
height: calc(100% - 2 * var(--bs-divider-inset));
|
|
47
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A thin line that separates content, horizontally or vertically.
|
|
4
|
+
*
|
|
5
|
+
* ## When to use
|
|
6
|
+
* - Separating groups of related content in a list, menu, toolbar or card.
|
|
7
|
+
*
|
|
8
|
+
* ## When not to use
|
|
9
|
+
* - Adding vertical space between blocks (use `bs-stack` gap or spacing tokens).
|
|
10
|
+
* - Drawing a border around a surface (use `bs-card`).
|
|
11
|
+
*
|
|
12
|
+
* @part line - The visible line element.
|
|
13
|
+
* @prop --bs-divider-thickness - Line thickness. Defaults to `1px`.
|
|
14
|
+
* @prop --bs-divider-color - Line colour. Aliased to `--bs-border-neutral-container` (`default`) or `--bs-neutral-100` (`subtle`).
|
|
15
|
+
* @prop --bs-divider-inset - Indent applied by `inset`. Aliased to `--bs-spacing-300`.
|
|
16
|
+
*/
|
|
17
|
+
export class BsDivider {
|
|
18
|
+
/** Direction of the line. A vertical divider stretches to the height of its container. */
|
|
19
|
+
orientation = 'horizontal';
|
|
20
|
+
/** Visual weight of the line. */
|
|
21
|
+
variant = 'default';
|
|
22
|
+
/** Indents the line from its start edge, or from both edges. */
|
|
23
|
+
inset = 'none';
|
|
24
|
+
/** Purely visual: hides the divider from assistive technology instead of exposing a separator. */
|
|
25
|
+
decorative = false;
|
|
26
|
+
render() {
|
|
27
|
+
const orientation = this.orientation === 'vertical' ? 'vertical' : 'horizontal';
|
|
28
|
+
const a11y = this.decorative
|
|
29
|
+
? { role: 'none', 'aria-hidden': 'true' }
|
|
30
|
+
: { role: 'separator', 'aria-orientation': orientation };
|
|
31
|
+
return (h(Host, { key: '72be86556d663c54fde0d585ae5850b236389b23', ...a11y }, h("div", { key: 'a08f191d8f900bc88fc0c44be08da1a7d8eb2e3c', class: "line", part: "line" })));
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "bs-divider"; }
|
|
34
|
+
static get encapsulation() { return "shadow"; }
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["bs-divider.css"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["bs-divider.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"orientation": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "BsDividerOrientation",
|
|
52
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
53
|
+
"references": {
|
|
54
|
+
"BsDividerOrientation": {
|
|
55
|
+
"location": "local",
|
|
56
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
|
|
57
|
+
"id": "src/components/bs-divider/bs-divider.tsx::BsDividerOrientation"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": "Direction of the line. A vertical divider stretches to the height of its container."
|
|
66
|
+
},
|
|
67
|
+
"getter": false,
|
|
68
|
+
"setter": false,
|
|
69
|
+
"reflect": true,
|
|
70
|
+
"attribute": "orientation",
|
|
71
|
+
"defaultValue": "'horizontal'"
|
|
72
|
+
},
|
|
73
|
+
"variant": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "BsDividerVariant",
|
|
78
|
+
"resolved": "\"default\" | \"subtle\"",
|
|
79
|
+
"references": {
|
|
80
|
+
"BsDividerVariant": {
|
|
81
|
+
"location": "local",
|
|
82
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
|
|
83
|
+
"id": "src/components/bs-divider/bs-divider.tsx::BsDividerVariant"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Visual weight of the line."
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": true,
|
|
96
|
+
"attribute": "variant",
|
|
97
|
+
"defaultValue": "'default'"
|
|
98
|
+
},
|
|
99
|
+
"inset": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "BsDividerInset",
|
|
104
|
+
"resolved": "\"both\" | \"none\" | \"start\"",
|
|
105
|
+
"references": {
|
|
106
|
+
"BsDividerInset": {
|
|
107
|
+
"location": "local",
|
|
108
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
|
|
109
|
+
"id": "src/components/bs-divider/bs-divider.tsx::BsDividerInset"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "Indents the line from its start edge, or from both edges."
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": true,
|
|
122
|
+
"attribute": "inset",
|
|
123
|
+
"defaultValue": "'none'"
|
|
124
|
+
},
|
|
125
|
+
"decorative": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "boolean",
|
|
130
|
+
"resolved": "boolean",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Purely visual: hides the divider from assistive technology instead of exposing a separator."
|
|
138
|
+
},
|
|
139
|
+
"getter": false,
|
|
140
|
+
"setter": false,
|
|
141
|
+
"reflect": true,
|
|
142
|
+
"attribute": "decorative",
|
|
143
|
+
"defaultValue": "false"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { componentDescription } from "../../stories-utils";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Components/bs-divider',
|
|
5
|
+
parameters: { docs: { description: { component: componentDescription('bs-divider') } } },
|
|
6
|
+
render: args => html `
|
|
7
|
+
<div style="display: flex; flex-direction: ${args.orientation === 'vertical' ? 'row' : 'column'}; gap: var(--bs-spacing-200); height: 80px; width: 320px">
|
|
8
|
+
<span>Above</span>
|
|
9
|
+
<bs-divider
|
|
10
|
+
orientation=${args.orientation}
|
|
11
|
+
variant=${args.variant}
|
|
12
|
+
inset=${args.inset}
|
|
13
|
+
?decorative=${args.decorative}
|
|
14
|
+
></bs-divider>
|
|
15
|
+
<span>Below</span>
|
|
16
|
+
</div>
|
|
17
|
+
`,
|
|
18
|
+
argTypes: {
|
|
19
|
+
orientation: { control: 'inline-radio', options: ['horizontal', 'vertical'] },
|
|
20
|
+
variant: { control: 'inline-radio', options: ['subtle', 'default'] },
|
|
21
|
+
inset: { control: 'inline-radio', options: ['none', 'start', 'both'] },
|
|
22
|
+
decorative: { control: 'boolean' },
|
|
23
|
+
},
|
|
24
|
+
args: { orientation: 'horizontal', variant: 'default', inset: 'none', decorative: false },
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
export const Default = {};
|
|
28
|
+
export const Subtle = { args: { variant: 'subtle' } };
|
|
29
|
+
export const Vertical = { args: { orientation: 'vertical' } };
|
|
30
|
+
export const InsetStart = { args: { inset: 'start' } };
|
|
31
|
+
export const InsetBoth = { args: { inset: 'both' } };
|
|
32
|
+
export const Decorative = { args: { decorative: true } };
|
|
@@ -65,7 +65,7 @@ export class BsErrorPage {
|
|
|
65
65
|
const primary = this.primaryLabel ?? d.primary;
|
|
66
66
|
const secondary = this.secondaryLabel ?? d.secondary;
|
|
67
67
|
const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 1));
|
|
68
|
-
return (h("bs-card", { key: '
|
|
68
|
+
return (h("bs-card", { key: '68774f7ab0252b92905900f06f564d1c2a8ce163', part: "container", class: "bs-error-page", surface: "base" }, h("div", { key: 'f263ce4991e2aa4553e430e60e646df5fc257120', class: "bs-error-page__body" }, h("div", { key: '3aa6b36e1aa05ea63e52e8c79684b166853e5950', class: "bs-error-page__art-group" }, h("bs-icon-tile", { key: 'b0b7f3fa925acef6b95e23136df7f9bac3e43ff4', part: "art", class: `bs-error-page__art ${d.info ? 'bs-error-page__art--info' : ''}`, intent: d.intent, size: "lg" }, h("slot", { key: 'e33db2aa8c275de0e32effc759e177ef1ee46c6d', name: "icon" }, d.glyph())), code && (h("span", { key: '9f576963f7399e4ca6e86cfd0331f0c7c7119886', part: "code", class: "bs-error-page__code" }, code))), h(`h${level}`, { part: 'heading', class: { 'bs-error-page__heading': true } }, heading), description && (h("p", { key: 'ea4861b666f95c7416a4d54152f8ffd1b900eb61', part: "description", class: "bs-error-page__description" }, description)), (primary || secondary) && (h("div", { key: 'e0ec38c28b957390486fce52497f91661abc7ef1', part: "actions", class: "bs-error-page__actions" }, primary && (h("bs-button", { key: 'a2b190366240c9fbe3e7a78a16b9881a3ad4468a', part: "primary", variant: "primary", onClick: () => this.bsPrimary.emit() }, primary)), secondary && (h("bs-button", { key: 'bef26b3dcc61c4e968c054d35ed67430884c9f99', part: "secondary", variant: "outlined", onClick: () => this.bsSecondary.emit() }, secondary)))), this.reference && (h("p", { key: 'b8de6e83c2c68ca8880afc781e8ffceb03f23164', part: "reference", class: "bs-error-page__reference" }, this.reference)))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "bs-error-page"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -112,7 +112,7 @@ export class BsFileUpload {
|
|
|
112
112
|
this.handleFiles(files);
|
|
113
113
|
};
|
|
114
114
|
render() {
|
|
115
|
-
return (h("div", { key: '
|
|
115
|
+
return (h("div", { key: 'd9f116b4dcf8641a590581c24176d4659a2b6892', part: "dropzone", class: `bs-file-upload bs-file-upload--${this.direction} ${this.dragging ? 'bs-file-upload--dragging' : ''} ${this.disabled ? 'bs-file-upload--disabled' : ''}`, onDragEnter: this.onDragOver, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onDrop: this.onDrop }, h("div", { key: '5aa0c733860505646bde5cad571a4d850d38f979', part: "icon", class: "bs-file-upload__icon" }, h("slot", { key: '292d3074620f2a228dbe544363f7ef8cce4f194c', name: "icon" }, h(UploadIcon, { key: '65c343be45634d10d561ba0f7a3cdd201a7664e6' }))), h("div", { key: '69d1ddde89b8c26d7a40a963cf16d1519b5b1fd4', class: "bs-file-upload__content" }, h("div", { key: '7730fdb7efb8eeffb374fff22fdd9d60497eebce', class: "bs-file-upload__text" }, this.heading && (h("span", { key: '0ca349bd1fedd84d869b363da150e13c07623f3b', part: "heading", class: "bs-file-upload__heading" }, this.heading)), this.description && (h("span", { key: '522d99de1b5caf70cd7e44bf8e821fe49951c788', part: "description", id: "description", class: "bs-file-upload__description" }, this.description))), h("bs-button", { key: 'f7af51522dfb762102f0c17bcbfd0e737b52d783', part: "browse", variant: "neutral", size: "sm", disabled: this.disabled, onClick: this.onBrowse }, this.buttonLabel)), h("input", { key: '71a2262124fd84b52dbffa18966eb1479e1ad95a', ref: el => (this.inputEl = el), class: "bs-file-upload__input", type: "file", hidden: true, tabindex: -1, accept: this.accept, multiple: this.multiple, disabled: this.disabled, "aria-describedby": this.description ? 'description' : undefined, onChange: this.onInputChange })));
|
|
116
116
|
}
|
|
117
117
|
static get is() { return "bs-file-upload"; }
|
|
118
118
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class BsFileUploadItem {
|
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
88
|
const removing = this.state === 'success';
|
|
89
|
-
return (h("div", { key: '
|
|
89
|
+
return (h("div", { key: 'e109650dda74a0a0db7af7f621da5e70079a7830', part: "item", class: `bs-file-upload-item bs-file-upload-item--${this.state}` }, h("div", { key: '800f1bd6a8cabd97c0aa43fe9a521876d4e6feb8', part: "thumbnail", class: "bs-file-upload-item__thumbnail" }, h("slot", { key: 'e5696a2cf9d69579ff8fd79688f83879c4093c74', name: "thumbnail" }, this.thumbnailSrc ? (h("img", { class: "bs-file-upload-item__image", src: this.thumbnailSrc, alt: this.thumbnailAlt })) : (h(ImageIcon, null)))), h("div", { key: 'bc52ee589c5cf4040dcb1aa86cce0150136d71ae', class: "bs-file-upload-item__content" }, h("div", { key: 'a70dc514e89ebfb1de3e772652e6ab8b2987007a', class: "bs-file-upload-item__meta" }, h("span", { key: '1c0a8e151f284a8344650fb00912582c17d2d5ee', part: "name", class: "bs-file-upload-item__name" }, this.fileName), this.fileSize && (h("span", { key: 'f608a1ee6e44e34e9e67600622a180e676fb960a', part: "size", class: "bs-file-upload-item__size" }, this.fileSize))), this.renderStatus()), h("bs-icon-button", { key: '5781f2aa401d12d3a4f4b0172d64cb0b9ceacf00', part: "action", variant: "subtle", size: "lg", ariaLabel: removing ? this.removeLabel : this.cancelLabel, onClick: this.onAction }, removing ? h(TrashIcon, null) : h(CloseIcon, null))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "bs-file-upload-item"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
const mount = (props = {}, width = 620, items = 6) => render(h("div", { style: { width: `${width}px` } }, h("style", null, ':root{--bs-spacing-100:10px;--bs-spacing-200:20px;--bs-spacing-300:30px}'), h("bs-grid", { ...props }, Array.from({ length: items }, (_, i) => (h("div", { style: { height: '40px' } }, i))))));
|
|
3
|
+
const container = (root) => root.querySelector('bs-grid').shadowRoot.querySelector('[part="container"]');
|
|
4
|
+
const items = (root) => Array.from(root.querySelectorAll('bs-grid > div'));
|
|
5
|
+
describe('bs-grid', () => {
|
|
6
|
+
it('defaults to one column', async () => {
|
|
7
|
+
const { root } = await mount();
|
|
8
|
+
expect(container(root).style.gridTemplateColumns).toContain('repeat(1, minmax(0px, 1fr))');
|
|
9
|
+
const xs = new Set(items(root).map(i => Math.round(i.getBoundingClientRect().left)));
|
|
10
|
+
expect(xs.size).toBe(1);
|
|
11
|
+
});
|
|
12
|
+
it('turns a number into equal columns', async () => {
|
|
13
|
+
const { root } = await mount({ columns: '3' });
|
|
14
|
+
expect(container(root).style.gridTemplateColumns).toContain('repeat(3, minmax(0px, 1fr))');
|
|
15
|
+
const xs = new Set(items(root).map(i => Math.round(i.getBoundingClientRect().left)));
|
|
16
|
+
expect(xs.size).toBe(3);
|
|
17
|
+
});
|
|
18
|
+
it('passes a raw template through', async () => {
|
|
19
|
+
const { root } = await mount({ columns: '100px 1fr' });
|
|
20
|
+
const [a, b] = items(root);
|
|
21
|
+
expect(Math.round(a.getBoundingClientRect().width)).toBe(100);
|
|
22
|
+
expect(b.getBoundingClientRect().left).toBeGreaterThan(a.getBoundingClientRect().right - 1);
|
|
23
|
+
});
|
|
24
|
+
it('maps gap tokens and lets rowGap/columnGap override per axis', async () => {
|
|
25
|
+
const { root } = await mount({ columns: '2', gap: '200', rowGap: '300' });
|
|
26
|
+
const c = container(root);
|
|
27
|
+
expect(c.style.columnGap).toContain('var(--bs-spacing-200)');
|
|
28
|
+
expect(c.style.rowGap).toContain('var(--bs-spacing-300)');
|
|
29
|
+
const [a, b, , d] = items(root);
|
|
30
|
+
const ra = a.getBoundingClientRect();
|
|
31
|
+
expect(Math.round(b.getBoundingClientRect().left - ra.right)).toBe(20);
|
|
32
|
+
expect(Math.round(d.getBoundingClientRect().top - items(root)[0].getBoundingClientRect().bottom)).toBe(30);
|
|
33
|
+
});
|
|
34
|
+
it('uses the default gap of 100 and falls back for unknown tokens', async () => {
|
|
35
|
+
const { root } = await mount({ columns: '2' });
|
|
36
|
+
expect(container(root).style.columnGap).toContain('var(--bs-spacing-100)');
|
|
37
|
+
const bad = await mount({ columns: '2', gap: '999' });
|
|
38
|
+
expect(container(bad.root).style.columnGap).toContain('var(--bs-spacing-100)');
|
|
39
|
+
});
|
|
40
|
+
it('exposes --bs-grid-gap as an override', async () => {
|
|
41
|
+
const { root } = await mount({ columns: '2' });
|
|
42
|
+
root.querySelector('bs-grid').style.setProperty('--bs-grid-gap', '40px');
|
|
43
|
+
const [a, b] = items(root);
|
|
44
|
+
expect(Math.round(b.getBoundingClientRect().left - a.getBoundingClientRect().right)).toBe(40);
|
|
45
|
+
});
|
|
46
|
+
it('auto-fits columns by minColumnWidth and overrides columns', async () => {
|
|
47
|
+
const wide = await mount({ columns: '2', minColumnWidth: '100px' }, 620);
|
|
48
|
+
expect(container(wide.root).style.gridTemplateColumns).toContain('auto-fit');
|
|
49
|
+
expect(new Set(items(wide.root).map(i => Math.round(i.getBoundingClientRect().left))).size).toBe(5);
|
|
50
|
+
const narrow = await mount({ minColumnWidth: '100px' }, 250);
|
|
51
|
+
expect(new Set(items(narrow.root).map(i => Math.round(i.getBoundingClientRect().left))).size).toBe(2);
|
|
52
|
+
});
|
|
53
|
+
it('aligns items', async () => {
|
|
54
|
+
const { root } = await mount({ columns: '2', align: 'center' }, 620, 2);
|
|
55
|
+
expect(container(root).style.alignItems).toBe('center');
|
|
56
|
+
expect(container(root).getBoundingClientRect().width).toBeGreaterThan(0);
|
|
57
|
+
});
|
|
58
|
+
});
|