@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,113 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
const mount = (props = {}, count = 3) => render(h("div", { style: { width: '400px' } }, h("bs-stack", { ...props }, Array.from({ length: count }, (_, i) => (h("div", { id: `c${i}`, style: { width: '50px', height: '20px' } }, i))))));
|
|
3
|
+
const stackOf = (root) => root.querySelector('bs-stack');
|
|
4
|
+
const rect = (root, id) => root.querySelector(`#${id}`).getBoundingClientRect();
|
|
5
|
+
describe('bs-stack', () => {
|
|
6
|
+
it('defaults: vertical, stretch, start, gap 100', async () => {
|
|
7
|
+
const { root } = await mount();
|
|
8
|
+
const el = stackOf(root);
|
|
9
|
+
expect(el).toEqualAttribute('direction', 'vertical');
|
|
10
|
+
expect(el).toEqualAttribute('align', 'stretch');
|
|
11
|
+
expect(el).toEqualAttribute('justify', 'start');
|
|
12
|
+
const cs = getComputedStyle(el);
|
|
13
|
+
expect(cs.flexDirection).toBe('column');
|
|
14
|
+
expect(parseFloat(cs.rowGap)).toBeGreaterThan(0);
|
|
15
|
+
const gap = rect(root, 'c1').top - rect(root, 'c0').bottom;
|
|
16
|
+
expect(Math.round(gap)).toBe(Math.round(parseFloat(cs.rowGap)));
|
|
17
|
+
});
|
|
18
|
+
it('horizontal lays children in a row', async () => {
|
|
19
|
+
const { root } = await mount({ direction: 'horizontal' });
|
|
20
|
+
expect(rect(root, 'c1').left).toBeGreaterThan(rect(root, 'c0').left);
|
|
21
|
+
expect(Math.round(rect(root, 'c1').top)).toBe(Math.round(rect(root, 'c0').top));
|
|
22
|
+
});
|
|
23
|
+
it('gap prop maps to a spacing token; bigger token gives a bigger gap; invalid falls back', async () => {
|
|
24
|
+
const { root, waitForChanges } = await mount({ gap: '200' });
|
|
25
|
+
const el = stackOf(root);
|
|
26
|
+
const g200 = parseFloat(getComputedStyle(el).rowGap);
|
|
27
|
+
el.setAttribute('gap', '100');
|
|
28
|
+
await waitForChanges();
|
|
29
|
+
const g100 = parseFloat(getComputedStyle(el).rowGap);
|
|
30
|
+
expect(g200).toBeGreaterThan(g100);
|
|
31
|
+
el.setAttribute('gap', '999');
|
|
32
|
+
await waitForChanges();
|
|
33
|
+
expect(parseFloat(getComputedStyle(el).rowGap)).toBe(g100);
|
|
34
|
+
el.setAttribute('gap', '0');
|
|
35
|
+
await waitForChanges();
|
|
36
|
+
expect(parseFloat(getComputedStyle(el).rowGap)).toBe(0);
|
|
37
|
+
});
|
|
38
|
+
it('--bs-stack-gap can be overridden directly', async () => {
|
|
39
|
+
const { root } = await mount({ style: { '--bs-stack-gap': '24px' } });
|
|
40
|
+
expect(Math.round(rect(root, 'c1').top - rect(root, 'c0').bottom)).toBe(24);
|
|
41
|
+
});
|
|
42
|
+
it('align and justify position items', async () => {
|
|
43
|
+
const { root, waitForChanges } = await mount({ direction: 'horizontal', align: 'center', justify: 'end' });
|
|
44
|
+
const el = stackOf(root);
|
|
45
|
+
expect(Math.round(rect(root, 'c2').right)).toBe(Math.round(el.getBoundingClientRect().right));
|
|
46
|
+
el.setAttribute('justify', 'center');
|
|
47
|
+
await waitForChanges();
|
|
48
|
+
const first = rect(root, 'c0').left - el.getBoundingClientRect().left;
|
|
49
|
+
const last = el.getBoundingClientRect().right - rect(root, 'c2').right;
|
|
50
|
+
expect(Math.abs(first - last)).toBeLessThan(2);
|
|
51
|
+
});
|
|
52
|
+
it('wrap lets items flow onto a second line', async () => {
|
|
53
|
+
const { root } = await render(h("div", { style: { width: '120px' } }, h("bs-stack", { direction: "horizontal", wrap: true }, h("div", { id: "a", style: { width: '80px', height: '10px' } }), h("div", { id: "b", style: { width: '80px', height: '10px' } }))));
|
|
54
|
+
expect(rect(root, 'b').top).toBeGreaterThan(rect(root, 'a').top);
|
|
55
|
+
});
|
|
56
|
+
it('divider inserts n-1 decorative dividers, perpendicular to the direction', async () => {
|
|
57
|
+
const { root, waitForChanges } = await mount({ divider: true });
|
|
58
|
+
await waitForChanges();
|
|
59
|
+
const el = stackOf(root);
|
|
60
|
+
const dividers = el.shadowRoot.querySelectorAll('bs-divider');
|
|
61
|
+
expect(dividers.length).toBe(2);
|
|
62
|
+
expect(dividers[0]).toEqualAttribute('orientation', 'horizontal');
|
|
63
|
+
expect(dividers[0]).toEqualAttribute('role', 'none');
|
|
64
|
+
// Light DOM children stay in place and in order.
|
|
65
|
+
expect(Array.from(el.children).map(c => c.id)).toEqual(['c0', 'c1', 'c2']);
|
|
66
|
+
// Geometry: a divider sits between c0 and c1.
|
|
67
|
+
const d = dividers[0].getBoundingClientRect();
|
|
68
|
+
expect(d.top).toBeGreaterThanOrEqual(Math.round(rect(root, 'c0').bottom));
|
|
69
|
+
expect(d.bottom).toBeLessThanOrEqual(Math.round(rect(root, 'c1').top) + 1);
|
|
70
|
+
});
|
|
71
|
+
it('horizontal stack uses vertical dividers that stretch to the row height', async () => {
|
|
72
|
+
const { root, waitForChanges } = await mount({ divider: true, direction: 'horizontal' });
|
|
73
|
+
await waitForChanges();
|
|
74
|
+
const el = stackOf(root);
|
|
75
|
+
const dividers = el.shadowRoot.querySelectorAll('bs-divider');
|
|
76
|
+
expect(dividers.length).toBe(2);
|
|
77
|
+
expect(dividers[0]).toEqualAttribute('orientation', 'vertical');
|
|
78
|
+
expect(Math.round(dividers[0].getBoundingClientRect().height)).toBe(Math.round(el.getBoundingClientRect().height));
|
|
79
|
+
});
|
|
80
|
+
it('tracks added and removed children', async () => {
|
|
81
|
+
const { root, waitForChanges } = await mount({ divider: true });
|
|
82
|
+
await waitForChanges();
|
|
83
|
+
const el = stackOf(root);
|
|
84
|
+
const extra = document.createElement('div');
|
|
85
|
+
extra.id = 'extra';
|
|
86
|
+
el.appendChild(extra);
|
|
87
|
+
await new Promise(r => setTimeout(r, 50));
|
|
88
|
+
await waitForChanges();
|
|
89
|
+
expect(el.shadowRoot.querySelectorAll('bs-divider').length).toBe(3);
|
|
90
|
+
el.removeChild(extra);
|
|
91
|
+
el.removeChild(el.firstElementChild);
|
|
92
|
+
await new Promise(r => setTimeout(r, 50));
|
|
93
|
+
await waitForChanges();
|
|
94
|
+
expect(el.shadowRoot.querySelectorAll('bs-divider').length).toBe(1);
|
|
95
|
+
});
|
|
96
|
+
it('turning divider off removes dividers and generated slot attributes', async () => {
|
|
97
|
+
const { root, waitForChanges } = await mount({ divider: true });
|
|
98
|
+
await waitForChanges();
|
|
99
|
+
const el = stackOf(root);
|
|
100
|
+
expect(root.querySelector('#c0').getAttribute('slot')).toBe('bs-stack-item-0');
|
|
101
|
+
el.divider = false;
|
|
102
|
+
await waitForChanges();
|
|
103
|
+
expect(el.shadowRoot.querySelectorAll('bs-divider').length).toBe(0);
|
|
104
|
+
expect(root.querySelector('#c0').hasAttribute('slot')).toBe(false);
|
|
105
|
+
});
|
|
106
|
+
it('no dividers by default and none for a single child', async () => {
|
|
107
|
+
const { root } = await mount();
|
|
108
|
+
expect(stackOf(root).shadowRoot.querySelectorAll('bs-divider').length).toBe(0);
|
|
109
|
+
const single = await mount({ divider: true }, 1);
|
|
110
|
+
await single.waitForChanges();
|
|
111
|
+
expect(stackOf(single.root).shadowRoot.querySelectorAll('bs-divider').length).toBe(0);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
/* --bs-stack-gap is the public override; -token is set from the `gap` prop. */
|
|
8
|
+
gap: var(--bs-stack-gap, var(--bs-stack-gap-token, var(--bs-spacing-100)));
|
|
9
|
+
}
|
|
10
|
+
:host([direction='horizontal']) { flex-direction: row; }
|
|
11
|
+
:host([wrap]) { flex-wrap: wrap; }
|
|
12
|
+
:host([align='start']) { align-items: flex-start; }
|
|
13
|
+
:host([align='center']) { align-items: center; }
|
|
14
|
+
:host([align='end']) { align-items: flex-end; }
|
|
15
|
+
:host([align='stretch']) { align-items: stretch; }
|
|
16
|
+
:host([align='baseline']) { align-items: baseline; }
|
|
17
|
+
:host([justify='start']) { justify-content: flex-start; }
|
|
18
|
+
:host([justify='center']) { justify-content: center; }
|
|
19
|
+
:host([justify='end']) { justify-content: flex-end; }
|
|
20
|
+
:host([justify='between']) { justify-content: space-between; }
|
|
21
|
+
:host([justify='around']) { justify-content: space-around; }
|
|
22
|
+
slot { display: contents; }
|
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
const MARK = 'data-bs-stack-item';
|
|
4
|
+
/**
|
|
5
|
+
* A flex layout that arranges its children in a row or column with a token-based gap, optionally
|
|
6
|
+
* drawing a divider between children.
|
|
7
|
+
*
|
|
8
|
+
* Built from: `bs-divider` (when `divider` is set).
|
|
9
|
+
*
|
|
10
|
+
* With `divider`, each child is given a generated `slot="bs-stack-item-N"` attribute (plus a
|
|
11
|
+
* `data-bs-stack-item` marker) so a divider can be rendered between the named slots. Light-DOM
|
|
12
|
+
* nodes are never moved; the attributes are removed again when `divider` is turned off.
|
|
13
|
+
*
|
|
14
|
+
* ## When to use
|
|
15
|
+
* - Spacing and aligning a short run of siblings (form fields, button rows, card content).
|
|
16
|
+
*
|
|
17
|
+
* ## When not to use
|
|
18
|
+
* - Two-dimensional grids (use CSS grid).
|
|
19
|
+
* - Resizable panes (use `bs-split-pane`).
|
|
20
|
+
*
|
|
21
|
+
* @slot - The items to arrange.
|
|
22
|
+
* @part divider - Each generated `bs-divider` (only with `divider`).
|
|
23
|
+
* @prop --bs-stack-gap - Space between items. Defaults from the `gap` prop (`--bs-spacing-<gap>`); may be overridden directly.
|
|
24
|
+
*/
|
|
25
|
+
export class BsStack {
|
|
26
|
+
el;
|
|
27
|
+
/** Main axis: `vertical` stacks children in a column, `horizontal` in a row. */
|
|
28
|
+
direction = 'vertical';
|
|
29
|
+
/** Spacing token name (e.g. `200` => `--bs-spacing-200`). Invalid values fall back to `100`. */
|
|
30
|
+
gap = '100';
|
|
31
|
+
/** Cross-axis alignment. */
|
|
32
|
+
align = 'stretch';
|
|
33
|
+
/** Main-axis distribution. */
|
|
34
|
+
justify = 'start';
|
|
35
|
+
/** Lets items wrap onto further lines. */
|
|
36
|
+
wrap = false;
|
|
37
|
+
/** Renders a decorative `bs-divider` between each child. */
|
|
38
|
+
divider = false;
|
|
39
|
+
itemCount = 0;
|
|
40
|
+
dividerChanged() {
|
|
41
|
+
this.sync();
|
|
42
|
+
}
|
|
43
|
+
sync = () => {
|
|
44
|
+
if (!this.divider) {
|
|
45
|
+
this.clearSlots();
|
|
46
|
+
this.itemCount = 0;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// Children without a foreign `slot` attribute (ours are marked).
|
|
50
|
+
const items = Array.from(this.el.children).filter(c => !c.hasAttribute('slot') || c.hasAttribute(MARK));
|
|
51
|
+
items.forEach((c, i) => {
|
|
52
|
+
const name = `bs-stack-item-${i}`;
|
|
53
|
+
if (c.getAttribute('slot') !== name)
|
|
54
|
+
c.setAttribute('slot', name);
|
|
55
|
+
c.setAttribute(MARK, '');
|
|
56
|
+
});
|
|
57
|
+
this.itemCount = items.length;
|
|
58
|
+
};
|
|
59
|
+
clearSlots() {
|
|
60
|
+
Array.from(this.el.children)
|
|
61
|
+
.filter(c => c.hasAttribute(MARK))
|
|
62
|
+
.forEach(c => {
|
|
63
|
+
c.removeAttribute('slot');
|
|
64
|
+
c.removeAttribute(MARK);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
componentDidLoad() {
|
|
68
|
+
this.sync();
|
|
69
|
+
}
|
|
70
|
+
disconnectedCallback() {
|
|
71
|
+
this.clearSlots();
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const gap = SPACING_TOKENS.includes(String(this.gap)) ? String(this.gap) : '100';
|
|
75
|
+
const dividerOrientation = this.direction === 'horizontal' ? 'vertical' : 'horizontal';
|
|
76
|
+
const parts = [];
|
|
77
|
+
if (this.divider) {
|
|
78
|
+
for (let i = 0; i < this.itemCount; i++) {
|
|
79
|
+
if (i > 0)
|
|
80
|
+
parts.push(h("bs-divider", { part: "divider", decorative: true, orientation: dividerOrientation }));
|
|
81
|
+
parts.push(h("slot", { name: `bs-stack-item-${i}`, onSlotchange: this.sync }));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return (h(Host, { key: '36539e2d556a29fffe996ae4b53d207ac39e3889', style: { '--bs-stack-gap-token': `var(--bs-spacing-${gap})` } }, h("slot", { key: 'fe94e79e6ded0341d04792c9be2949c6663de5a9', onSlotchange: this.sync }), parts));
|
|
85
|
+
}
|
|
86
|
+
static get is() { return "bs-stack"; }
|
|
87
|
+
static get encapsulation() { return "shadow"; }
|
|
88
|
+
static get originalStyleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["bs-stack.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get styleUrls() {
|
|
94
|
+
return {
|
|
95
|
+
"$": ["bs-stack.css"]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get properties() {
|
|
99
|
+
return {
|
|
100
|
+
"direction": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "BsStackDirection",
|
|
105
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
106
|
+
"references": {
|
|
107
|
+
"BsStackDirection": {
|
|
108
|
+
"location": "local",
|
|
109
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-stack/bs-stack.tsx",
|
|
110
|
+
"id": "src/components/bs-stack/bs-stack.tsx::BsStackDirection"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Main axis: `vertical` stacks children in a column, `horizontal` in a row."
|
|
119
|
+
},
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
122
|
+
"reflect": true,
|
|
123
|
+
"attribute": "direction",
|
|
124
|
+
"defaultValue": "'vertical'"
|
|
125
|
+
},
|
|
126
|
+
"gap": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "string",
|
|
131
|
+
"resolved": "string",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": false,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": "Spacing token name (e.g. `200` => `--bs-spacing-200`). Invalid values fall back to `100`."
|
|
139
|
+
},
|
|
140
|
+
"getter": false,
|
|
141
|
+
"setter": false,
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"attribute": "gap",
|
|
144
|
+
"defaultValue": "'100'"
|
|
145
|
+
},
|
|
146
|
+
"align": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "BsStackAlign",
|
|
151
|
+
"resolved": "\"baseline\" | \"center\" | \"end\" | \"start\" | \"stretch\"",
|
|
152
|
+
"references": {
|
|
153
|
+
"BsStackAlign": {
|
|
154
|
+
"location": "local",
|
|
155
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-stack/bs-stack.tsx",
|
|
156
|
+
"id": "src/components/bs-stack/bs-stack.tsx::BsStackAlign"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Cross-axis alignment."
|
|
165
|
+
},
|
|
166
|
+
"getter": false,
|
|
167
|
+
"setter": false,
|
|
168
|
+
"reflect": true,
|
|
169
|
+
"attribute": "align",
|
|
170
|
+
"defaultValue": "'stretch'"
|
|
171
|
+
},
|
|
172
|
+
"justify": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "BsStackJustify",
|
|
177
|
+
"resolved": "\"around\" | \"between\" | \"center\" | \"end\" | \"start\"",
|
|
178
|
+
"references": {
|
|
179
|
+
"BsStackJustify": {
|
|
180
|
+
"location": "local",
|
|
181
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-stack/bs-stack.tsx",
|
|
182
|
+
"id": "src/components/bs-stack/bs-stack.tsx::BsStackJustify"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Main-axis distribution."
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"reflect": true,
|
|
195
|
+
"attribute": "justify",
|
|
196
|
+
"defaultValue": "'start'"
|
|
197
|
+
},
|
|
198
|
+
"wrap": {
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "boolean",
|
|
203
|
+
"resolved": "boolean",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Lets items wrap onto further lines."
|
|
211
|
+
},
|
|
212
|
+
"getter": false,
|
|
213
|
+
"setter": false,
|
|
214
|
+
"reflect": true,
|
|
215
|
+
"attribute": "wrap",
|
|
216
|
+
"defaultValue": "false"
|
|
217
|
+
},
|
|
218
|
+
"divider": {
|
|
219
|
+
"type": "boolean",
|
|
220
|
+
"mutable": false,
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "boolean",
|
|
223
|
+
"resolved": "boolean",
|
|
224
|
+
"references": {}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": "Renders a decorative `bs-divider` between each child."
|
|
231
|
+
},
|
|
232
|
+
"getter": false,
|
|
233
|
+
"setter": false,
|
|
234
|
+
"reflect": true,
|
|
235
|
+
"attribute": "divider",
|
|
236
|
+
"defaultValue": "false"
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
static get states() {
|
|
241
|
+
return {
|
|
242
|
+
"itemCount": {}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
static get elementRef() { return "el"; }
|
|
246
|
+
static get watchers() {
|
|
247
|
+
return [{
|
|
248
|
+
"propName": "divider",
|
|
249
|
+
"methodName": "dividerChanged"
|
|
250
|
+
}];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { componentDescription } from "../../stories-utils";
|
|
3
|
+
const box = (label) => html `<div style="padding: var(--bs-spacing-150); background: var(--bs-surface-container); border-radius: var(--bs-border-radius-100)">${label}</div>`;
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/bs-stack',
|
|
6
|
+
parameters: { docs: { description: { component: componentDescription('bs-stack') } } },
|
|
7
|
+
render: args => html `
|
|
8
|
+
<bs-stack
|
|
9
|
+
direction=${args.direction}
|
|
10
|
+
gap=${args.gap}
|
|
11
|
+
align=${args.align}
|
|
12
|
+
justify=${args.justify}
|
|
13
|
+
?wrap=${args.wrap}
|
|
14
|
+
?divider=${args.divider}
|
|
15
|
+
style="width: 480px"
|
|
16
|
+
>
|
|
17
|
+
${box('One')} ${box('Two')} ${box('Three')}
|
|
18
|
+
</bs-stack>
|
|
19
|
+
`,
|
|
20
|
+
argTypes: {
|
|
21
|
+
direction: { control: 'inline-radio', options: ['vertical', 'horizontal'] },
|
|
22
|
+
gap: { control: 'select', options: ['0', '25', '50', '75', '100', '150', '200', '250', '300', '350', '400', '500', '550', '600', '700', '800', '1000', '1200', '1500'] },
|
|
23
|
+
align: { control: 'select', options: ['start', 'center', 'end', 'stretch', 'baseline'] },
|
|
24
|
+
justify: { control: 'select', options: ['start', 'center', 'end', 'between', 'around'] },
|
|
25
|
+
wrap: { control: 'boolean' },
|
|
26
|
+
divider: { control: 'boolean' },
|
|
27
|
+
},
|
|
28
|
+
args: { direction: 'vertical', gap: '100', align: 'stretch', justify: 'start', wrap: false, divider: false },
|
|
29
|
+
};
|
|
30
|
+
export default meta;
|
|
31
|
+
export const Default = {};
|
|
32
|
+
export const Horizontal = { args: { direction: 'horizontal', gap: '200' } };
|
|
33
|
+
export const WithDividers = { args: { divider: true, gap: '200' } };
|
|
34
|
+
export const HorizontalWithDividers = { args: { direction: 'horizontal', divider: true, gap: '200', align: 'center' } };
|
|
35
|
+
export const Wrapping = { args: { direction: 'horizontal', wrap: true, gap: '150' } };
|
|
36
|
+
export const SpaceBetween = { args: { direction: 'horizontal', justify: 'between' } };
|
|
@@ -62,7 +62,7 @@ export class BsStepper {
|
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
64
|
// role="list" so each bs-stepper-step's role="listitem" has the required parent.
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '974bd59785233de47d55750ede0a3d823ff11c75', role: "list" }, h("slot", { key: 'ce637c2c5631329c747897c66ec2cca9e6f738fb', onSlotchange: this.onSlotChange })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "bs-stepper"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class BsStepperStep {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
const state = this.state;
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'aebeb38afde905d2b5d12f6c6218c7f6d8caa6db', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: '5ce2ab43631225cabfad3d0a65724fe53475c609', class: "bs-stepper-step__top" }, h("span", { key: '5270d9396ce4eaae1e7f8893d28198df7f87d515', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: 'a2a83808311c13113d9cefa5a2bc9926be9dea97', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: 'acf704a0de2391bac5cddc3eebef1f6aa821e233' }), state === 'error' && h(ExclamationIcon, { key: '4fc253c6ffced8ef5eaf337e39c0912b0765f5aa' })), h("span", { key: '163f5b4e465c4b6b27238ceaf73d7cdd96f5b376', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: 'f71f15dba5235e6176dad102c4ebad976e063900', class: "bs-stepper-step__connector-line" }))), h("span", { key: 'ae5cd8999024687a6a3631dc6887428256899479', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: 'a5971b572a0f1a2f602e8f888a16d6e0e5599183', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: '2873a2ceb40f7abc5e543a0d50192bc42945f3e5', part: "description", class: "bs-stepper-step__description" }, this.description)))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "bs-stepper-step"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class BsSwitch {
|
|
|
75
75
|
const knobClasses = ['bs-switch__knob', `bs-switch__knob--${this.size}`, this.disabled ? 'bs-switch__knob--disabled' : '']
|
|
76
76
|
.filter(Boolean)
|
|
77
77
|
.join(' ');
|
|
78
|
-
return (h("label", { key: '
|
|
78
|
+
return (h("label", { key: '8e879cda3d51659448298ad74e0cd72d6a3c7692', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '49e885f0275339b520e601eab3dd5e58e4deaf33', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: '713c1fe5e578730b3afdeff880083ca9df5f0805', part: "track", class: trackClasses }, h("span", { key: 'f64210e5e3c6fa2c814567921922da3a3b93dd5f', part: "knob", class: knobClasses })), h("span", { key: '5a5cdbdb31470bcda460412ddb6f78fa4bb37a4b', part: "label", class: "bs-switch__label" }, h("slot", { key: '4d1857d66cfbed3b59805359692371decec5c374' }))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "bs-switch"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,7 +94,7 @@ export class BsInlineTab {
|
|
|
94
94
|
};
|
|
95
95
|
render() {
|
|
96
96
|
const iconOnly = this.hasIcon && !this.hasLabel;
|
|
97
|
-
return (h("button", { key: '
|
|
97
|
+
return (h("button", { key: '4b8df7a5f37f0aad60679cbdd3bd03cb20482ba7', type: "button", part: "tab", role: "tab", class: `bs-inline-tab ${this.selected ? 'bs-inline-tab--selected' : ''} ${this.disabled ? 'bs-inline-tab--disabled' : ''} ${iconOnly ? 'bs-inline-tab--icon-only' : ''} ${this.hasIcon ? 'bs-inline-tab--has-icon' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, tabIndex: this.tabbable === undefined ? undefined : this.tabbable ? 0 : -1, onClick: this.onClick }, h("span", { key: '037cdaae4331e050b5c02083d1776bb5509ff92b', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: '3b67b01e65434c35545fc9f06dab7bb871362001', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'd41611429e951d13df23521f938217716f2afacd', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: '8ea82e8ecc120c9961b8288a1162ec03ac0223bf', onSlotchange: this.onLabelSlotchange }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "bs-inline-tab"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -107,7 +107,7 @@ export class BsTab {
|
|
|
107
107
|
const iconOnly = this.hasIcon && !this.hasLabel;
|
|
108
108
|
const vertical = this.hasIcon && this.hasLabel && this.iconPosition === 'top';
|
|
109
109
|
const showBadge = this.hasBadge && !iconOnly && !vertical;
|
|
110
|
-
return (h("button", { key: '
|
|
110
|
+
return (h("button", { key: '23d18710e7c697958aa0a7b4f8248bd85541db04', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, tabIndex: this.tabbable === undefined ? undefined : this.tabbable ? 0 : -1, onClick: this.onClick }, h("span", { key: 'd48e487274031e23a9febc4dccec966e939420ff', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: '004e5fc7c61b9d4a9813ce8a5ce21e71ff3f9bb8', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'e7d905a2daed877414e43078a2a4460486eee9a2', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: '2bc379c7f2bd7a14c1864da3024773a1e392598f', onSlotchange: this.onLabelSlotchange })), h("span", { key: '92aff30ad4fd06d0a16c5fc40202fb4c553e80d6', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'e655135dd81a288e7428d00c0778bb2b42294258', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: 'abecf083399730cc0e84c62109f51b683bf55ac0', part: "indicator", class: "bs-tab__indicator" })));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "bs-tab"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,7 +135,7 @@ export class BsTabs {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
const vertical = this.orientation === 'vertical';
|
|
138
|
-
return (h("div", { key: '
|
|
138
|
+
return (h("div", { key: '07185cefa2f1a443035e61ba13f080913ce73ca6', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '99fe98e753609bc4f594fb32dab5a7df2f4b3c0d', onSlotchange: () => this.syncRovingTabindex() })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "bs-tabs"; }
|
|
141
141
|
static get encapsulation() { return "shadow"; }
|
|
@@ -200,14 +200,14 @@ export class BsTimepicker {
|
|
|
200
200
|
return (h("div", { part: "spinner", class: "bs-timepicker__spinner" }, h("button", { part: "step", type: "button", class: "bs-timepicker__step", "aria-label": stepLabel(this.increaseLabel), tabindex: -1, onClick: () => this.stepBy(col, 1) }, h("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { d: "M18 15L12 9L6 15", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { part: "value", class: "bs-timepicker__value", role: "spinbutton", tabindex: 0, "aria-label": label, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": n, "aria-valuetext": pad(n), onKeyDown: this.onKeyDown(col), onBlur: () => (this.typed = '') }, pad(n)), h("button", { part: "step", type: "button", class: "bs-timepicker__step", "aria-label": stepLabel(this.decreaseLabel), tabindex: -1, onClick: () => this.stepBy(col, -1) }, h("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { d: "M6 9L12 15L18 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))));
|
|
201
201
|
}
|
|
202
202
|
render() {
|
|
203
|
-
return (h("bs-card", { key: '
|
|
203
|
+
return (h("bs-card", { key: 'ad3c51871ca4b0b1871944b658bae070140d1e99', part: "container", class: "bs-timepicker", surface: "raised" }, h("div", { key: 'b522d8a85e0161c4f7cd7938364919eda0585cf9', class: "bs-timepicker__body" }, h("div", { key: 'a3dd5ea83fa63cd9e8e6db2dfeb32b195e084f58', part: "header", class: "bs-timepicker__header" }, h("div", { key: '9af7c0024a4341ed1bbaccb4fb25e0e7558de93e', part: "title", class: "bs-timepicker__title" }, this.heading), h("label", { key: 'e18dcfcfe44a19f8dbac0737e487b23234d92fd6', class: "bs-timepicker__format" }, h("span", { key: '954b1579e9789c76521ba9364ed84caee882a05d' }, this.formatLabel), h("bs-switch", { key: '020b23405f62aa272c8af71d9071e0090bec5c30', part: "format-toggle", size: "md", ariaLabel: this.formatLabel, checked: !this.is12h, onBsChange: (ev) => (this.format = ev.detail ? '24h' : '12h') }))), h("div", { key: '283ba5ff1525c6561b7d00552dfc86ed34284f9b', class: "bs-timepicker__divider" }), h("div", { key: 'c2dfc0cb7b7cc0e5d106565746f3426b4065af9a', part: "selector", class: "bs-timepicker__selector" }, this.renderColumn('hour', this.hourLabel), h("div", { key: '1d017fd059c36955ba5ba4c5da5a05b9fb18e7d2', part: "separator", class: "bs-timepicker__separator", "aria-hidden": "true" }, h("svg", { key: '6b182c00b7dbd9150640c47aee43423d20e270c5', viewBox: "0 0 4 32", fill: "currentColor" }, h("circle", { key: '531640b6870cc87a284ac9ea64ca5b292c4f529f', cx: "2", cy: "10", r: "2" }), h("circle", { key: '323a4a90bebd8203b5c2f9803ffe03055991f9e2', cx: "2", cy: "22", r: "2" }))), this.renderColumn('minute', this.minuteLabel), this.is12h && (h("bs-input", { key: '3d7ec2986824358b3f1e795a9ce05b1b81d14432', part: "period", class: "bs-timepicker__period", type: "dropdown", label: this.periodLabel, value: this.isPm ? 'PM' : 'AM', options: [
|
|
204
204
|
{ label: 'AM', value: 'AM' },
|
|
205
205
|
{ label: 'PM', value: 'PM' },
|
|
206
206
|
], onBsChange: (ev) => {
|
|
207
207
|
const pm = ev.detail === 'PM';
|
|
208
208
|
if (pm !== this.isPm)
|
|
209
209
|
this.hour = (this.hour + 12) % 24;
|
|
210
|
-
} }))), h("div", { key: '
|
|
210
|
+
} }))), h("div", { key: '664da910d0c1849ff6a47ca326945b37f837760a', class: "bs-timepicker__divider" }), h("div", { key: '852c88b44cbb5cc3f236363181920163776a4521', part: "footer", class: "bs-timepicker__footer" }, h("bs-button", { key: 'e92e26209c7ed2e45094265a54ad8347ce697f05', part: "cancel", variant: "subtle", onClick: this.cancel }, this.cancelLabel), h("bs-button", { key: '110338b7a98727089613a3eb661ca5e0d8346691', part: "confirm", variant: "primary", onClick: this.confirm }, this.confirmLabel)))));
|
|
211
211
|
}
|
|
212
212
|
static get is() { return "bs-timepicker"; }
|
|
213
213
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class BsToast {
|
|
|
27
27
|
this.bsDismiss.emit();
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '335782bd5c8c1c721105684ee50efb71dc8a9dd8', part: "container", class: `bs-toast bs-toast--${this.state}`, role: "status", "aria-live": this.state === 'error' ? 'assertive' : 'polite' }, h("div", { key: '77c48c6315299064a6904646f46bb787dc4dada2', class: "bs-toast__content" }, h("span", { key: '8aef9bc3f662320fb3d60bbfdf8d4d8672297bd4', part: "icon", class: "bs-toast__icon", "aria-hidden": "true" }, h(StateIcon, { key: 'b1501a806e5866b69fbea2073741325f65b1209c', state: this.state })), h("span", { key: '751407d5dc04f3f8b4e57c5b47d1639f66e673a6', part: "message", class: "bs-toast__message" }, h("slot", { key: '9407fe265762817eb68e8119a40b792b53dbdb6e' }))), h("div", { key: '4bcd82ca67e8ce49998c7c954b3764df242e4eeb', class: "bs-toast__actions" }, h("button", { key: '352a9789b6f773ee385396bda80fde2ed972af30', part: "close", type: "button", class: "bs-toast__close", "aria-label": this.dismissLabel, onClick: this.onDismiss }, h(CloseIcon, { key: '5296f2811fda1f42b95087c4494fa05d3e0efff4' })))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "bs-toast"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class BsTooltip {
|
|
|
42
42
|
*/
|
|
43
43
|
placement = 'top';
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: 'f41f09865c1604e9c6f42d77a007ebef233d3b20', class: "bs-tooltip" }, h("span", { key: 'c963a9ffaedeb05e4b6787509e683f20fbd5d893', part: "arrow", class: "bs-tooltip__arrow" }), h("div", { key: 'ac5c26e3fded66c18cc563b33626645d6049f9e2', part: "bubble", class: "bs-tooltip__bubble" }, h("slot", { key: '662c27547a391756b7d1a98d1154c0e01690e110' }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "bs-tooltip"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class BsTooltipTrigger {
|
|
|
48
48
|
};
|
|
49
49
|
render() {
|
|
50
50
|
const show = this.visible && !!this.text;
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '399a6f518855e7ba3ac3824276933d3b1ec913cc', part: "trigger", class: "bs-tooltip-trigger", "aria-describedby": this.tooltipId, onMouseEnter: this.show, onMouseLeave: this.hide, onFocusin: this.show, onFocusout: this.hide, onKeyDown: this.onKeyDown }, h("slot", { key: 'bf83352404bcdf757325421b86c8c571f89bae47' }), h("div", { key: '44f5fed6608f49041f206e44302a22404c1b6fc2', part: "tooltip", id: this.tooltipId, class: "bs-tooltip-trigger__tooltip", role: "tooltip", hidden: !show }, h("bs-tooltip", { key: 'f04fab6b6e9c6fba4c0dbdfe01db5927e98227cb' }, this.text))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "bs-tooltip-trigger"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class BsWhatsNewEntry {
|
|
|
50
50
|
hasImage = false;
|
|
51
51
|
render() {
|
|
52
52
|
const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 3));
|
|
53
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '392e53167e223e1a34802bf0106d0a92e3fbce47', class: "bs-whats-new-entry" }, (this.tag || this.date || this.unread) && (h("div", { key: 'a069414465afa8d5894967c4b91c029c6ca94714', part: "meta", class: "bs-whats-new-entry__meta" }, this.tag && (h("bs-chip-informative", { key: 'ba1c8320df4641ad9ba2e781a475ba81ab2e793e', part: "tag", size: "sm", color: this.tagColor }, this.tag)), this.date && (h("span", { key: '90fff95b14393041ef0d2a95f9d2f1e1e4fc4824', part: "date", class: "bs-whats-new-entry__date" }, this.date)), this.unread && (h("span", { key: '72a3ed86e67fdfbe754b94431e313b4978887bc0', part: "unread", class: "bs-whats-new-entry__unread" }, h("span", { key: '70f8e4492c9b09f39ffb78d3d2d6d0baf8cae27c', class: "bs-whats-new-entry__sr-only" }, this.unreadLabel))))), h("div", { key: '2930545aee739edac5d93ae7abc87984becbc6d6', part: "image", class: { 'bs-whats-new-entry__image': true, 'bs-whats-new-entry__image--visible': this.hasImage } }, h("slot", { key: 'a1ca6d788ee50e16668c50621c631b7be10128ea', name: "image", onSlotchange: (ev) => (this.hasImage = ev.target.assignedNodes().length > 0) })), h("div", { key: 'bc1cc0c9ad0d4272aa0e612822200d47a9108406', class: "bs-whats-new-entry__content" }, this.heading && h(`h${level}`, { part: 'heading', class: { 'bs-whats-new-entry__heading': true } }, this.heading), this.description && (h("p", { key: '7e0a2520c2c3bd7c753e4f3a64d7f61230bf1c7e', part: "description", class: "bs-whats-new-entry__description" }, this.description)), this.actionLabel && (h("bs-button", { key: '8344b34f92c0bcd1da4e491823f8d1f2cef82ad2', part: "action", class: "bs-whats-new-entry__action", variant: "subtle", size: "sm", onClick: () => this.bsAction.emit() }, this.actionLabel, h("svg", { key: '8941060aacc137bee4a7a9f15a9a32023dfc5390', slot: "end-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { key: '0833d06eca31e2a199ff5cd4def1a408d74c4030', d: "M5 12H19" }), h("path", { key: 'e079ace356dc320dfde3f48d7336d2507303d1bf', d: "M13 6L19 12L13 18" }))))), this.divider && h("div", { key: '369d9767229d3fb57cb1a68d0bcefb03da4a953e', part: "divider", class: "bs-whats-new-entry__divider" })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "bs-whats-new-entry"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|