@brandsync/wc 1.17.0 → 1.19.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 +19 -0
- package/REFERENCE.md +316 -8
- package/custom-elements.json +9323 -6758
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/p-02314404.entry.js +1 -0
- package/dist/brandsync-wc/{p-0bbaef51.entry.js → p-028d3244.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8c4dfccb.entry.js → p-03ad83a3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f82a9f0d.entry.js → p-0819add7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-67f125e8.entry.js → p-08649f52.entry.js} +1 -1
- package/dist/brandsync-wc/p-0dff9822.entry.js +1 -0
- package/dist/brandsync-wc/{p-9d12b1fb.entry.js → p-10b8937f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-aec2dfeb.entry.js → p-129a4de7.entry.js} +1 -1
- package/dist/brandsync-wc/p-1580c56c.entry.js +1 -0
- package/dist/brandsync-wc/p-15c6f0f3.entry.js +1 -0
- package/dist/brandsync-wc/{p-9d740928.entry.js → p-171fa239.entry.js} +1 -1
- package/dist/brandsync-wc/p-197ac73f.entry.js +1 -0
- package/dist/brandsync-wc/p-1e33bc10.entry.js +1 -0
- package/dist/brandsync-wc/{p-b5710db6.entry.js → p-21e5d4d6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-90ba3032.entry.js → p-2389f473.entry.js} +1 -1
- package/dist/brandsync-wc/p-25914efc.entry.js +1 -0
- package/dist/brandsync-wc/{p-4f4c0c68.entry.js → p-26e0ab15.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6ea02b98.entry.js → p-270b2cb0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-54d91ac9.entry.js → p-27663faf.entry.js} +1 -1
- package/dist/brandsync-wc/p-28c38959.entry.js +1 -0
- package/dist/brandsync-wc/{p-70c650b2.entry.js → p-2a8b2ac9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-84d6d6eb.entry.js → p-2a967b45.entry.js} +1 -1
- package/dist/brandsync-wc/p-2b3d0bd4.entry.js +1 -0
- package/dist/brandsync-wc/p-30736034.entry.js +1 -0
- package/dist/brandsync-wc/{p-9396c67e.entry.js → p-30ff0659.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a7fa839a.entry.js → p-313ec145.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c6ec5d0.entry.js → p-3627e0c6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e8ae626d.entry.js → p-38a2210a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3bad5e1b.entry.js → p-391504ab.entry.js} +1 -1
- package/dist/brandsync-wc/{p-47b7fe76.entry.js → p-3b212a8a.entry.js} +1 -1
- package/dist/brandsync-wc/p-3c6980b9.entry.js +1 -0
- package/dist/brandsync-wc/{p-d5a6098d.entry.js → p-42fcf134.entry.js} +1 -1
- package/dist/brandsync-wc/p-4928c4ad.entry.js +1 -0
- package/dist/brandsync-wc/{p-844205d9.entry.js → p-4c51da66.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f3eca1ce.entry.js → p-4d1ee16e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5b933ff4.entry.js → p-4dfd4715.entry.js} +1 -1
- package/dist/brandsync-wc/p-4ffcf41a.entry.js +1 -0
- package/dist/brandsync-wc/{p-11d80e17.entry.js → p-527fd08d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-43d5f708.entry.js → p-5371b31c.entry.js} +1 -1
- package/dist/brandsync-wc/p-568de1b0.entry.js +1 -0
- package/dist/brandsync-wc/{p-dcbeb143.entry.js → p-590deea0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2bd30709.entry.js → p-64e19200.entry.js} +1 -1
- package/dist/brandsync-wc/p-6afacd47.entry.js +1 -0
- package/dist/brandsync-wc/p-6f32a08e.entry.js +1 -0
- package/dist/brandsync-wc/{p-5c61eb06.entry.js → p-70a5897b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8134f97c.entry.js → p-7160a72e.entry.js} +1 -1
- package/dist/brandsync-wc/p-776b677f.entry.js +1 -0
- package/dist/brandsync-wc/{p-b142d8c9.entry.js → p-78c94cfe.entry.js} +1 -1
- package/dist/brandsync-wc/p-7bff3aa5.entry.js +1 -0
- package/dist/brandsync-wc/{p-fdc168ec.entry.js → p-7c741b8d.entry.js} +1 -1
- package/dist/brandsync-wc/p-86f04e9e.entry.js +1 -0
- package/dist/brandsync-wc/{p-4eaa9ed4.entry.js → p-8a18864a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-35f76ea7.entry.js → p-8a606b38.entry.js} +1 -1
- package/dist/brandsync-wc/p-8ac86d16.entry.js +1 -0
- package/dist/brandsync-wc/p-8b21f623.entry.js +1 -0
- package/dist/brandsync-wc/{p-1bd99669.entry.js → p-8d1ad4b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-07673a48.entry.js → p-8e107d7a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d9184940.entry.js → p-90d8d45f.entry.js} +1 -1
- package/dist/brandsync-wc/p-9751a12d.entry.js +1 -0
- package/dist/brandsync-wc/{p-857987f9.entry.js → p-9868ee72.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f98dfa85.entry.js → p-9ba500f1.entry.js} +1 -1
- package/dist/brandsync-wc/p-9fa7bd83.entry.js +1 -0
- package/dist/brandsync-wc/p-BSt9HeTa.js +1 -0
- package/dist/brandsync-wc/{p-c835afb7.entry.js → p-a2bfbf02.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ffccc1ee.entry.js → p-a50c5e68.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3bdeeb9d.entry.js → p-a688a7ca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f43a7f16.entry.js → p-a92c0f06.entry.js} +1 -1
- package/dist/brandsync-wc/p-ab301e9d.entry.js +1 -0
- package/dist/brandsync-wc/{p-065c7e7c.entry.js → p-ab99b8c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3cb79512.entry.js → p-c01e231e.entry.js} +1 -1
- package/dist/brandsync-wc/p-d15e48eb.entry.js +1 -0
- package/dist/brandsync-wc/p-d484e976.entry.js +1 -0
- package/dist/brandsync-wc/{p-d25adab2.entry.js → p-d80eecf4.entry.js} +1 -1
- package/dist/brandsync-wc/p-dc2ea372.entry.js +1 -0
- package/dist/brandsync-wc/p-de0dfd1c.entry.js +1 -0
- package/dist/brandsync-wc/p-e1d30e31.entry.js +1 -0
- package/dist/brandsync-wc/{p-a7fb0b59.entry.js → p-e5235e76.entry.js} +1 -1
- package/dist/brandsync-wc/{p-00be9a64.entry.js → p-e776d145.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ffc07eb5.entry.js → p-e7c80f48.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e0a9f2d1.entry.js → p-eb680cff.entry.js} +1 -1
- package/dist/brandsync-wc/p-ebcd105d.entry.js +1 -0
- package/dist/brandsync-wc/p-f10b19a8.entry.js +1 -0
- package/dist/brandsync-wc/{p-5057e4fe.entry.js → p-f3b60029.entry.js} +1 -1
- package/dist/brandsync-wc/p-f4628861.entry.js +1 -0
- package/dist/brandsync-wc/{p-b02bf1ca.entry.js → p-f4796801.entry.js} +1 -1
- package/dist/brandsync-wc/p-f5e6fdf8.entry.js +1 -0
- package/dist/brandsync-wc/p-f93127e1.entry.js +1 -0
- package/dist/brandsync-wc/{p-57ff14ca.entry.js → p-f96f45ae.entry.js} +1 -1
- package/dist/brandsync-wc/{p-debc83cc.entry.js → p-feb46fa6.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-accordion.cjs.entry.js +60 -3
- 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-recent-item_3.cjs.entry.js +133 -0
- package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/bs-app-switcher.cjs.entry.js +208 -0
- package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-button_2.cjs.entry.js +198 -0
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- package/dist/cjs/bs-carousel.cjs.entry.js +70 -5
- 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 +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-filter.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
- package/dist/cjs/bs-command-palette.cjs.entry.js +1 -1
- package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +46 -0
- package/dist/cjs/bs-company-switcher.cjs.entry.js +211 -0
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer.cjs.entry.js +1 -1
- package/dist/cjs/bs-container.cjs.entry.js +1 -1
- 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-dialog.cjs.entry.js +54 -3
- package/dist/cjs/bs-divider.cjs.entry.js +1 -1
- package/dist/cjs/bs-empty-state.cjs.entry.js +1 -1
- 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-global-search.cjs.entry.js +2 -2
- package/dist/cjs/bs-grid.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-button.cjs.entry.js +9 -2
- package/dist/cjs/bs-icon-tile.cjs.entry.js +10 -2
- package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/bs-input_3.cjs.entry.js +5 -5
- package/dist/cjs/bs-key-caps.cjs.entry.js +1 -1
- package/dist/cjs/bs-key.cjs.entry.js +1 -1
- package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/bs-list-item_2.cjs.entry.js +261 -0
- package/dist/cjs/bs-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-mega-menu.cjs.entry.js +120 -0
- 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 +5 -2
- package/dist/cjs/bs-page-header.cjs.entry.js +66 -0
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-presence.cjs.entry.js +88 -0
- 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 +4 -4
- package/dist/cjs/bs-search-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
- package/dist/cjs/bs-shortcut-row.cjs.entry.js +1 -1
- package/dist/cjs/bs-side-panel.cjs.entry.js +52 -3
- 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 +4 -3
- package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
- package/dist/cjs/bs-stack.cjs.entry.js +1 -1
- 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 +4 -11
- 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 +61 -3
- package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/bs-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/bs-tree.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/motion-DOlI71lc.js +43 -0
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/bs-accordion/bs-accordion.cmp.test.js +21 -6
- package/dist/collection/components/bs-accordion/bs-accordion.css +15 -0
- package/dist/collection/components/bs-accordion/bs-accordion.js +71 -2
- 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-recent-item/bs-app-recent-item.cmp.test.js +52 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.css +111 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +184 -0
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.stories.js +28 -0
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.cmp.test.js +179 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.css +173 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.js +902 -0
- package/dist/collection/components/bs-app-switcher/bs-app-switcher.stories.js +91 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.cmp.test.js +58 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.css +104 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.js +190 -0
- package/dist/collection/components/bs-app-tile/bs-app-tile.stories.js +43 -0
- package/dist/collection/components/bs-attachment/bs-attachment.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.css +3 -3
- package/dist/collection/components/bs-badge/bs-badge.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +12 -0
- package/dist/collection/components/bs-button/bs-button/bs-button.css +2 -0
- package/dist/collection/components/bs-button/bs-button/bs-button.js +4 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +13 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +2 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +28 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.js +1 -1
- package/dist/collection/components/bs-carousel/bs-carousel.cmp.test.js +39 -1
- package/dist/collection/components/bs-carousel/bs-carousel.css +9 -0
- package/dist/collection/components/bs-carousel/bs-carousel.js +75 -4
- 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.css +2 -0
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +2 -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.css +2 -0
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +2 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +7 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +2 -1
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.css +2 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +2 -1
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.css +7 -0
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +2 -1
- package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
- package/dist/collection/components/bs-command-palette/bs-command-palette.js +1 -1
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.cmp.test.js +32 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.css +43 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +67 -0
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.stories.js +25 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.cmp.test.js +171 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.css +196 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +720 -0
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.stories.js +78 -0
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-container/bs-container.js +1 -1
- 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-dialog/bs-dialog.cmp.test.js +32 -0
- package/dist/collection/components/bs-dialog/bs-dialog.css +16 -0
- package/dist/collection/components/bs-dialog/bs-dialog.js +61 -3
- package/dist/collection/components/bs-divider/bs-divider.js +1 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.js +1 -1
- 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-global-search/bs-global-search.js +2 -2
- package/dist/collection/components/bs-grid/bs-grid.js +2 -2
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +11 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-key/bs-key.js +1 -1
- package/dist/collection/components/bs-key-caps/bs-key-caps.js +1 -1
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +2 -2
- package/dist/collection/components/bs-list/bs-list.js +1 -1
- package/dist/collection/components/bs-list-item/bs-list-item.css +2 -0
- package/dist/collection/components/bs-list-item/bs-list-item.js +2 -1
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.cmp.test.js +204 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.css +143 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +443 -0
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.stories.js +188 -0
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-block/bs-menu-block.cmp.test.js +44 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.css +106 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.js +147 -0
- package/dist/collection/components/bs-menu-block/bs-menu-block.stories.js +36 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.css +2 -0
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +2 -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-page-header/bs-page-header.cmp.test.js +206 -0
- package/dist/collection/components/bs-page-header/bs-page-header.css +252 -0
- package/dist/collection/components/bs-page-header/bs-page-header.js +351 -0
- package/dist/collection/components/bs-page-header/bs-page-header.stories.js +177 -0
- package/dist/collection/components/bs-pagination/bs-pagination.css +2 -0
- package/dist/collection/components/bs-pagination/bs-pagination.js +2 -1
- package/dist/collection/components/bs-popover/bs-popover.cmp.test.js +20 -0
- package/dist/collection/components/bs-popover/bs-popover.css +3 -0
- package/dist/collection/components/bs-popover/bs-popover.js +59 -2
- package/dist/collection/components/bs-presence/bs-presence.cmp.test.js +64 -0
- package/dist/collection/components/bs-presence/bs-presence.css +80 -0
- package/dist/collection/components/bs-presence/bs-presence.js +233 -0
- package/dist/collection/components/bs-presence/bs-presence.stories.js +101 -0
- 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.css +6 -0
- package/dist/collection/components/bs-radio/bs-radio.js +4 -3
- package/dist/collection/components/bs-ripple/bs-ripple.cmp.test.js +45 -0
- package/dist/collection/components/bs-ripple/bs-ripple.css +32 -0
- package/dist/collection/components/bs-ripple/bs-ripple.js +188 -0
- package/dist/collection/components/bs-ripple/bs-ripple.stories.js +33 -0
- package/dist/collection/components/bs-search-item/bs-search-item.css +2 -0
- package/dist/collection/components/bs-search-item/bs-search-item.js +2 -1
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +1 -1
- package/dist/collection/components/bs-side-panel/bs-side-panel.cmp.test.js +19 -0
- package/dist/collection/components/bs-side-panel/bs-side-panel.css +8 -0
- package/dist/collection/components/bs-side-panel/bs-side-panel.js +58 -2
- 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.css +2 -0
- package/dist/collection/components/bs-source-link/bs-source-link.js +4 -2
- package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
- package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
- package/dist/collection/components/bs-stack/bs-stack.js +1 -1
- 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.css +9 -0
- package/dist/collection/components/bs-switch/bs-switch.js +4 -10
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +2 -0
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +2 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +2 -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.cmp.test.js +53 -2
- package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.css +3 -0
- package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +70 -3
- package/dist/collection/components/bs-tree/bs-tree.js +1 -1
- package/dist/collection/components/bs-tree-item/bs-tree-item.css +2 -0
- package/dist/collection/components/bs-tree-item/bs-tree-item.js +3 -2
- 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.cmp.test.js +79 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +46 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +10 -1
- package/dist/collection/utils/motion.js +37 -0
- package/dist/components/bs-accordion-group.js +1 -1
- package/dist/components/bs-accordion.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-app-recent-item.d.ts +11 -0
- package/dist/components/bs-app-recent-item.js +1 -0
- package/dist/components/bs-app-shell.js +1 -1
- package/dist/components/bs-app-switcher.d.ts +11 -0
- package/dist/components/bs-app-switcher.js +1 -0
- package/dist/components/bs-app-tile.d.ts +11 -0
- package/dist/components/bs-app-tile.js +1 -0
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-avatar.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-carousel.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-skeleton.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-citation-preview.js +1 -1
- package/dist/components/bs-command-palette.js +1 -1
- package/dist/components/bs-compact-menu-block.d.ts +11 -0
- package/dist/components/bs-compact-menu-block.js +1 -0
- package/dist/components/bs-company-switcher.d.ts +11 -0
- package/dist/components/bs-company-switcher.js +1 -0
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-container.js +1 -1
- 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.js +1 -1
- package/dist/components/bs-empty-state.js +1 -1
- 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-global-search.js +1 -1
- package/dist/components/bs-grid.js +1 -1
- 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-key-caps.js +1 -1
- package/dist/components/bs-key.js +1 -1
- package/dist/components/bs-keyboard-shortcuts.js +1 -1
- package/dist/components/bs-list-item.js +1 -1
- package/dist/components/bs-list.js +1 -1
- package/dist/components/bs-mega-menu.d.ts +11 -0
- package/dist/components/bs-mega-menu.js +1 -0
- package/dist/components/bs-menu-block.d.ts +11 -0
- package/dist/components/bs-menu-block.js +1 -0
- 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-page-header.d.ts +11 -0
- package/dist/components/bs-page-header.js +1 -0
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-popover.js +1 -1
- package/dist/components/bs-presence.d.ts +11 -0
- package/dist/components/bs-presence.js +1 -0
- 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-ripple.d.ts +11 -0
- package/dist/components/bs-ripple.js +1 -0
- package/dist/components/bs-search-item.js +1 -1
- package/dist/components/bs-session-timeout.js +1 -1
- package/dist/components/bs-shortcut-row.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.js +1 -1
- package/dist/components/bs-stack.js +1 -1
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-tooltip-trigger.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/bs-tree-item.js +1 -1
- package/dist/components/bs-tree.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--Tyv3LIl.js +1 -0
- package/dist/components/p-4yShCgRb.js +1 -0
- package/dist/components/p-6Rr9bjVN.js +1 -0
- package/dist/components/{p-CervX0wH.js → p-BHzj13sd.js} +1 -1
- package/dist/components/p-BIxcCDgl.js +1 -0
- package/dist/components/p-BQ4rSQDm.js +1 -0
- package/dist/components/p-BSt9HeTa.js +1 -0
- package/dist/components/p-BWRkbt0f.js +1 -0
- package/dist/components/p-BfCah-Ij.js +1 -0
- package/dist/components/p-BpkPo4ay.js +1 -0
- package/dist/components/{p-Bp3DIxjT.js → p-CFR3Q0io.js} +1 -1
- package/dist/components/p-CHZE_FrW.js +1 -0
- package/dist/components/{p-CYzBTzzf.js → p-CVQycAap.js} +1 -1
- package/dist/components/{p-DtYTs9Kh.js → p-Cr8cHmpM.js} +1 -1
- package/dist/components/p-CvSewXZF.js +1 -0
- package/dist/components/{p-Dt4JNhHT.js → p-D3PuUD8Z.js} +1 -1
- package/dist/components/p-D5eN9Lfa.js +1 -0
- package/dist/components/{p-BDnZvjlq.js → p-DDgzEg1C.js} +1 -1
- package/dist/components/p-DF2FcJPs.js +1 -0
- package/dist/components/{p-DcjgRtSQ.js → p-DLnZG_G9.js} +1 -1
- package/dist/components/{p-CH5atin4.js → p-DXbcyEgd.js} +1 -1
- package/dist/components/{p-CRtvJlh8.js → p-DXwatzvM.js} +1 -1
- package/dist/components/p-DcD5eV_Z.js +1 -0
- package/dist/components/p-Dj393s3S.js +1 -0
- package/dist/components/p-DsBToIYE.js +1 -0
- package/dist/components/p-DtkTnaOp.js +1 -0
- package/dist/components/{p-DvNED6Lb.js → p-EGNLb4cQ.js} +1 -1
- package/dist/components/{p-CRM1wIX9.js → p-Jik5UkAe.js} +1 -1
- package/dist/components/p-XZXdZpt4.js +1 -0
- package/dist/components/{p-BcYNrEOB.js → p-Y5FyLR8G.js} +1 -1
- package/dist/components/{p-DG9eT5yi.js → p-ZfE38vXZ.js} +1 -1
- package/dist/components/p-lPTgyF9v.js +1 -0
- package/dist/components/p-syO0ipbw.js +1 -0
- package/dist/components/p-up01gvHY.js +1 -0
- package/dist/esm/brandsync-wc.js +1 -1
- package/dist/esm/bs-accordion-group.entry.js +1 -1
- package/dist/esm/bs-accordion.entry.js +61 -4
- 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-recent-item_3.entry.js +129 -0
- package/dist/esm/bs-app-shell.entry.js +1 -1
- package/dist/esm/bs-app-switcher.entry.js +206 -0
- package/dist/esm/bs-attachment-list.entry.js +1 -1
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-avatar.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +1 -1
- package/dist/esm/bs-button_2.entry.js +195 -0
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-carousel.entry.js +70 -5
- 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 +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
- package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
- package/dist/esm/bs-checkbox.entry.js +2 -2
- package/dist/esm/bs-chip-filter.entry.js +2 -2
- package/dist/esm/bs-chip-informative.entry.js +1 -1
- package/dist/esm/bs-chip-input.entry.js +2 -2
- package/dist/esm/bs-citation-preview.entry.js +1 -1
- package/dist/esm/bs-command-palette.entry.js +1 -1
- package/dist/esm/bs-compact-menu-block_2.entry.js +43 -0
- package/dist/esm/bs-company-switcher.entry.js +209 -0
- package/dist/esm/bs-composer-status-banner.entry.js +1 -1
- package/dist/esm/bs-composer.entry.js +1 -1
- package/dist/esm/bs-container.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +2 -2
- package/dist/esm/bs-datepicker.entry.js +1 -1
- package/dist/esm/bs-dialog.entry.js +55 -4
- package/dist/esm/bs-divider.entry.js +1 -1
- package/dist/esm/bs-empty-state.entry.js +1 -1
- 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-global-search.entry.js +2 -2
- package/dist/esm/bs-grid.entry.js +2 -2
- package/dist/esm/bs-icon-button.entry.js +9 -2
- package/dist/esm/bs-icon-tile.entry.js +11 -3
- package/dist/esm/bs-inline-tab.entry.js +2 -2
- package/dist/esm/bs-input_3.entry.js +5 -5
- package/dist/esm/bs-key-caps.entry.js +1 -1
- package/dist/esm/bs-key.entry.js +1 -1
- package/dist/esm/bs-keyboard-shortcuts.entry.js +2 -2
- package/dist/esm/bs-list-item_2.entry.js +258 -0
- package/dist/esm/bs-list.entry.js +1 -1
- package/dist/esm/bs-mega-menu.entry.js +118 -0
- 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 +5 -2
- package/dist/esm/bs-page-header.entry.js +64 -0
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-presence.entry.js +86 -0
- 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 +4 -4
- package/dist/esm/bs-search-item.entry.js +2 -2
- package/dist/esm/bs-session-timeout.entry.js +1 -1
- package/dist/esm/bs-shortcut-row.entry.js +1 -1
- package/dist/esm/bs-side-panel.entry.js +52 -3
- 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 +4 -3
- package/dist/esm/bs-spinner.entry.js +1 -1
- package/dist/esm/bs-split-pane.entry.js +1 -1
- package/dist/esm/bs-stack.entry.js +1 -1
- 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 +4 -11
- 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 +62 -4
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/bs-tree-item.entry.js +3 -3
- package/dist/esm/bs-tree.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/motion-BSt9HeTa.js +39 -0
- package/dist/types/components/bs-accordion/bs-accordion.d.ts +22 -0
- package/dist/types/components/bs-app-recent-item/bs-app-recent-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-recent-item/bs-app-recent-item.d.ts +51 -0
- package/dist/types/components/bs-app-recent-item/bs-app-recent-item.stories.d.ts +15 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.d.ts +159 -0
- package/dist/types/components/bs-app-switcher/bs-app-switcher.stories.d.ts +34 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.d.ts +51 -0
- package/dist/types/components/bs-app-tile/bs-app-tile.stories.d.ts +18 -0
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +3 -0
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +8 -0
- package/dist/types/components/bs-carousel/bs-carousel.d.ts +21 -1
- package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.d.ts +1 -0
- package/dist/types/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +1 -0
- package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.d.ts +1 -0
- package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.d.ts +1 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.d.ts +28 -0
- package/dist/types/components/bs-compact-menu-block/bs-compact-menu-block.stories.d.ts +10 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.d.ts +130 -0
- package/dist/types/components/bs-company-switcher/bs-company-switcher.stories.d.ts +25 -0
- package/dist/types/components/bs-dialog/bs-dialog.d.ts +14 -0
- package/dist/types/components/bs-icon-tile/bs-icon-tile.d.ts +5 -0
- package/dist/types/components/bs-list-item/bs-list-item.d.ts +1 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.d.ts +134 -0
- package/dist/types/components/bs-mega-menu/bs-mega-menu.stories.d.ts +55 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.d.ts +47 -0
- package/dist/types/components/bs-menu-block/bs-menu-block.stories.d.ts +15 -0
- package/dist/types/components/bs-menu-item/bs-menu-item.d.ts +1 -0
- package/dist/types/components/bs-page-header/bs-page-header.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-page-header/bs-page-header.d.ts +100 -0
- package/dist/types/components/bs-page-header/bs-page-header.stories.d.ts +41 -0
- package/dist/types/components/bs-pagination/bs-pagination.d.ts +1 -0
- package/dist/types/components/bs-popover/bs-popover.d.ts +15 -0
- package/dist/types/components/bs-presence/bs-presence.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-presence/bs-presence.d.ts +50 -0
- package/dist/types/components/bs-presence/bs-presence.stories.d.ts +15 -0
- package/dist/types/components/bs-radio/bs-radio.d.ts +1 -0
- package/dist/types/components/bs-ripple/bs-ripple.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-ripple/bs-ripple.d.ts +52 -0
- package/dist/types/components/bs-ripple/bs-ripple.stories.d.ts +11 -0
- package/dist/types/components/bs-search-item/bs-search-item.d.ts +1 -0
- package/dist/types/components/bs-side-panel/bs-side-panel.d.ts +13 -0
- package/dist/types/components/bs-source-link/bs-source-link.d.ts +1 -0
- package/dist/types/components/bs-switch/bs-switch.d.ts +1 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.d.ts +1 -0
- package/dist/types/components/bs-tab/bs-tab/bs-tab.d.ts +1 -0
- package/dist/types/components/bs-tooltip-trigger/bs-tooltip-trigger.d.ts +18 -0
- package/dist/types/components/bs-tree-item/bs-tree-item.d.ts +1 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.d.ts +7 -1
- package/dist/types/components.d.ts +2422 -0
- package/dist/types/svg-inline.d.ts +5 -0
- package/dist/types/utils/motion.d.ts +21 -0
- package/package.json +2 -1
- package/reference.d.ts +53 -23
- package/reference.json +1210 -98
- package/dist/brandsync-wc/p-044ac86c.entry.js +0 -1
- package/dist/brandsync-wc/p-046a53de.entry.js +0 -1
- package/dist/brandsync-wc/p-08e96f13.entry.js +0 -1
- package/dist/brandsync-wc/p-225148be.entry.js +0 -1
- package/dist/brandsync-wc/p-23b56775.entry.js +0 -1
- package/dist/brandsync-wc/p-32297416.entry.js +0 -1
- package/dist/brandsync-wc/p-361aef36.entry.js +0 -1
- package/dist/brandsync-wc/p-3789c7a5.entry.js +0 -1
- package/dist/brandsync-wc/p-3d2c62a6.entry.js +0 -1
- package/dist/brandsync-wc/p-3d7b0708.entry.js +0 -1
- package/dist/brandsync-wc/p-4b460eda.entry.js +0 -1
- package/dist/brandsync-wc/p-5eb5795f.entry.js +0 -1
- package/dist/brandsync-wc/p-61deb48c.entry.js +0 -1
- package/dist/brandsync-wc/p-79fc849c.entry.js +0 -1
- package/dist/brandsync-wc/p-7ed071fb.entry.js +0 -1
- package/dist/brandsync-wc/p-8048d033.entry.js +0 -1
- package/dist/brandsync-wc/p-8c9938a5.entry.js +0 -1
- package/dist/brandsync-wc/p-a5659499.entry.js +0 -1
- package/dist/brandsync-wc/p-ab14a07d.entry.js +0 -1
- package/dist/brandsync-wc/p-b4511ad3.entry.js +0 -1
- package/dist/brandsync-wc/p-baa39c08.entry.js +0 -1
- package/dist/brandsync-wc/p-be7aac52.entry.js +0 -1
- package/dist/brandsync-wc/p-c05ee501.entry.js +0 -1
- package/dist/brandsync-wc/p-d2a15599.entry.js +0 -1
- package/dist/brandsync-wc/p-d7956c51.entry.js +0 -1
- package/dist/brandsync-wc/p-dfad8c0a.entry.js +0 -1
- package/dist/brandsync-wc/p-e123b391.entry.js +0 -1
- package/dist/brandsync-wc/p-e8e22238.entry.js +0 -1
- package/dist/brandsync-wc/p-eb0dc5bf.entry.js +0 -1
- package/dist/cjs/bs-button.cjs.entry.js +0 -107
- package/dist/cjs/bs-list-item.cjs.entry.js +0 -66
- package/dist/cjs/bs-popover.cjs.entry.js +0 -153
- package/dist/cjs/bs-skeleton.cjs.entry.js +0 -51
- package/dist/components/p-B32Kl4IB.js +0 -1
- package/dist/components/p-BUpnOUIM.js +0 -1
- package/dist/components/p-BcbaiZLh.js +0 -1
- package/dist/components/p-ChcaPfNL.js +0 -1
- package/dist/components/p-Cpe2k7ZC.js +0 -1
- package/dist/components/p-D7AXo5NT.js +0 -1
- package/dist/components/p-D8bvv9QQ.js +0 -1
- package/dist/components/p-DMLfXpva.js +0 -1
- package/dist/components/p-DYDk73TF.js +0 -1
- package/dist/components/p-DYuzgzxI.js +0 -1
- package/dist/components/p-TAY9S9yG.js +0 -1
- package/dist/components/p-w-DkdA4O.js +0 -1
- package/dist/esm/bs-button.entry.js +0 -105
- package/dist/esm/bs-list-item.entry.js +0 -64
- package/dist/esm/bs-popover.entry.js +0 -151
- package/dist/esm/bs-skeleton.entry.js +0 -49
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import axe from "axe-core";
|
|
3
|
+
import { assertShadowParts, assertCssCustomProperties } from "../../test/helpers/conventions";
|
|
4
|
+
import { ICONS } from "../bs-mega-menu/bs-mega-menu.stories";
|
|
5
|
+
const q = (el, s) => el.shadowRoot.querySelector(s);
|
|
6
|
+
const make = async (props = {}) => {
|
|
7
|
+
const r = await render(h("div", { style: { width: '340px' } }, h("bs-menu-block", { name: "Quotes" })));
|
|
8
|
+
const el = r.root.querySelector('bs-menu-block');
|
|
9
|
+
Object.assign(el, { icon: ICONS.quotes, description: 'Create and send price quotes', ...props });
|
|
10
|
+
await r.waitForChanges();
|
|
11
|
+
return { ...r, el };
|
|
12
|
+
};
|
|
13
|
+
describe('bs-menu-block', () => {
|
|
14
|
+
it('is a button named by its title and description, with the parts and custom properties', async () => {
|
|
15
|
+
const { el } = await make();
|
|
16
|
+
const c = q(el, '[part="container"]');
|
|
17
|
+
expect(c.tagName).toBe('BUTTON');
|
|
18
|
+
expect(c.textContent).toContain('Quotes');
|
|
19
|
+
expect(c.textContent).toContain('Create and send price quotes');
|
|
20
|
+
expect(q(el, '.bs-menu-block__glyph')).not.toBeNull();
|
|
21
|
+
assertShadowParts(el.shadowRoot, ['container', 'icon', 'name', 'description']);
|
|
22
|
+
assertCssCustomProperties(el, ['--bs-menu-block-padding', '--bs-menu-block-bg-hover', '--bs-menu-block-focus-ring']);
|
|
23
|
+
});
|
|
24
|
+
it('shows the badge chip only when set, and exactly one icon', async () => {
|
|
25
|
+
const { el, waitForChanges } = await make();
|
|
26
|
+
expect(q(el, '[part="badge"]')).toBeNull();
|
|
27
|
+
el.badge = 'New';
|
|
28
|
+
await waitForChanges();
|
|
29
|
+
expect(q(el, '[part="badge"]').textContent).toBe('New');
|
|
30
|
+
await new Promise(r => setTimeout(r, 100));
|
|
31
|
+
expect(q(el, 'bs-icon-tile').shadowRoot.querySelector('svg')).toBeNull();
|
|
32
|
+
});
|
|
33
|
+
it('uses the 32px icon square', async () => {
|
|
34
|
+
const { el } = await make();
|
|
35
|
+
expect(Math.round(q(el, 'bs-icon-tile').getBoundingClientRect().width)).toBe(32);
|
|
36
|
+
});
|
|
37
|
+
it('has no axe violations', async () => {
|
|
38
|
+
for (const props of [{}, { badge: 'New' }]) {
|
|
39
|
+
const { el } = await make(props);
|
|
40
|
+
const results = await axe.run(el);
|
|
41
|
+
expect(results.violations.map(v => `${JSON.stringify(props)} ${v.id}: ${v.help}`)).toEqual([]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
--bs-menu-block-padding: var(--bs-spacing-150);
|
|
5
|
+
--bs-menu-block-gap: var(--bs-spacing-150);
|
|
6
|
+
--bs-menu-block-radius: var(--bs-border-radius-100);
|
|
7
|
+
--bs-menu-block-bg: transparent;
|
|
8
|
+
--bs-menu-block-bg-hover: var(--bs-surface-hover);
|
|
9
|
+
--bs-menu-block-bg-pressed: var(--bs-surface-pressed);
|
|
10
|
+
--bs-menu-block-icon-bg: var(--bs-color-neutral-container);
|
|
11
|
+
--bs-menu-block-color: var(--bs-text-default);
|
|
12
|
+
--bs-menu-block-color-muted: var(--bs-text-secondary);
|
|
13
|
+
--bs-menu-block-focus-ring: var(--bs-border-info);
|
|
14
|
+
--bs-menu-block-white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bs-menu-block {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: var(--bs-menu-block-gap);
|
|
22
|
+
width: 100%;
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: var(--bs-menu-block-padding);
|
|
25
|
+
border: 0;
|
|
26
|
+
border-radius: var(--bs-menu-block-radius);
|
|
27
|
+
background: var(--bs-menu-block-bg);
|
|
28
|
+
color: var(--bs-menu-block-color);
|
|
29
|
+
font-family: var(--bs-typography-font-family-body, Roboto), sans-serif;
|
|
30
|
+
text-align: left;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.bs-menu-block:hover,
|
|
35
|
+
.bs-menu-block:active {
|
|
36
|
+
--bs-menu-block-icon-bg: var(--bs-surface-base);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.bs-menu-block:hover,
|
|
40
|
+
.bs-menu-block:focus-visible {
|
|
41
|
+
background: var(--bs-menu-block-bg-hover);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bs-menu-block:active {
|
|
45
|
+
background: var(--bs-menu-block-bg-pressed);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* The secondary text is too faint on the pressed background, so it takes the title colour while pressed. */
|
|
49
|
+
.bs-menu-block:active .bs-menu-block__description {
|
|
50
|
+
color: var(--bs-menu-block-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.bs-menu-block:focus-visible {
|
|
54
|
+
outline: var(--bs-spacing-25) solid var(--bs-menu-block-focus-ring);
|
|
55
|
+
outline-offset: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bs-menu-block__icon {
|
|
59
|
+
--bs-icon-tile-bg: var(--bs-menu-block-icon-bg);
|
|
60
|
+
--bs-icon-tile-color: var(--bs-icon-default);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.bs-menu-block__glyph {
|
|
64
|
+
display: block;
|
|
65
|
+
width: var(--bs-icon-tile-icon-size);
|
|
66
|
+
height: var(--bs-icon-tile-icon-size);
|
|
67
|
+
background: currentColor;
|
|
68
|
+
-webkit-mask: var(--bs-menu-block-glyph) center / contain no-repeat;
|
|
69
|
+
mask: var(--bs-menu-block-glyph) center / contain no-repeat;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.bs-menu-block__text {
|
|
73
|
+
flex: 1 1 0;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.bs-menu-block__title {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: var(--bs-spacing-100);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.bs-menu-block__name {
|
|
86
|
+
min-width: 0;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: var(--bs-menu-block-white-space);
|
|
90
|
+
font-size: var(--bs-fontsize-body-sm);
|
|
91
|
+
font-weight: var(--bs-font-weight-semibold);
|
|
92
|
+
line-height: calc(var(--bs-line-height-body-sm) * 1px);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.bs-menu-block__badge {
|
|
96
|
+
flex: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bs-menu-block__description {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
white-space: var(--bs-menu-block-white-space);
|
|
103
|
+
color: var(--bs-menu-block-color-muted);
|
|
104
|
+
font-size: var(--bs-fontsize-caption-sm);
|
|
105
|
+
line-height: calc(var(--bs-line-height-caption-sm) * 1px);
|
|
106
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A rich entry in a mega menu: an icon tile, a title with an optional "New" chip, and a one-line description.
|
|
4
|
+
* Matches the Figma "Menu block" component (Default, Hover, Pressed and Focused).
|
|
5
|
+
*
|
|
6
|
+
* The block is always a native button and only emits events; it never navigates. Hover, pressed and focus come from the
|
|
7
|
+
* native element. Its accessible name is its text: the title, the badge and the description, read once.
|
|
8
|
+
*
|
|
9
|
+
* Built from `bs-icon-tile` (the icon) and `bs-chip-informative` (the badge). The icon is either a URL of a
|
|
10
|
+
* monochrome SVG in `icon` (painted with the theme's icon colour through a CSS mask, so it follows light and
|
|
11
|
+
* dark mode), or any element in the default slot (an `<svg>` drawn with `currentColor`).
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* - A destination in a mega menu that needs an icon and a sentence of explanation, usually inside `bs-mega-menu`.
|
|
15
|
+
*
|
|
16
|
+
* ## When not to use
|
|
17
|
+
* - A plain text destination -- use `bs-compact-menu-block`.
|
|
18
|
+
* - A command in a dropdown list -- use `bs-menu-item`.
|
|
19
|
+
*
|
|
20
|
+
* @slot - The icon (16px, `currentColor`). Overrides the `icon` prop.
|
|
21
|
+
* @part container - The button.
|
|
22
|
+
* @part icon - The icon tile (`bs-icon-tile`).
|
|
23
|
+
* @part name - The title.
|
|
24
|
+
* @part badge - The badge chip (`bs-chip-informative`).
|
|
25
|
+
* @part description - The description.
|
|
26
|
+
* @prop --bs-menu-block-padding - Padding inside the block. Aliased to `--bs-spacing-150`.
|
|
27
|
+
* @prop --bs-menu-block-gap - Gap between icon and text. Aliased to `--bs-spacing-150`.
|
|
28
|
+
* @prop --bs-menu-block-radius - Corner radius. Aliased to `--bs-border-radius-100`.
|
|
29
|
+
* @prop --bs-menu-block-bg - Resting background. `transparent`.
|
|
30
|
+
* @prop --bs-menu-block-bg-hover - Aliased to `--bs-surface-hover`.
|
|
31
|
+
* @prop --bs-menu-block-bg-pressed - Aliased to `--bs-surface-pressed`.
|
|
32
|
+
* @prop --bs-menu-block-icon-bg - Icon square background. Aliased to `--bs-color-neutral-container`; `--bs-surface-base` while hovered or pressed.
|
|
33
|
+
* @prop --bs-menu-block-color - Title colour. Aliased to `--bs-text-default`.
|
|
34
|
+
* @prop --bs-menu-block-color-muted - Description colour. Aliased to `--bs-text-secondary`.
|
|
35
|
+
* @prop --bs-menu-block-focus-ring - Focus ring colour. Aliased to `--bs-border-info`.
|
|
36
|
+
* @prop --bs-menu-block-white-space - `white-space` of the title and description. `nowrap` (single line, ellipsis); set `normal` to let them wrap.
|
|
37
|
+
*/
|
|
38
|
+
export class BsMenuBlock {
|
|
39
|
+
/** The title, and the start of the accessible name. */
|
|
40
|
+
name;
|
|
41
|
+
/** One line under the title; part of the accessible name. */
|
|
42
|
+
description;
|
|
43
|
+
/** URL of a monochrome SVG painted with the icon colour. The default slot overrides it. */
|
|
44
|
+
icon;
|
|
45
|
+
/** Short text for a chip beside the title, e.g. "New". */
|
|
46
|
+
badge;
|
|
47
|
+
render() {
|
|
48
|
+
const common = { part: 'container', class: 'bs-menu-block' };
|
|
49
|
+
const body = [
|
|
50
|
+
h("bs-icon-tile", { key: 'f16451b0269c9e2147303016a9a8eff3054804fa', part: "icon", class: "bs-menu-block__icon", size: "md" }, this.icon ? h("span", { class: "bs-menu-block__glyph", style: { '--bs-menu-block-glyph': `url(${JSON.stringify(this.icon)})` } }) : h("slot", null)),
|
|
51
|
+
h("span", { key: 'b0ec2c28feb0db796dd9c252da01db7297680916', class: "bs-menu-block__text" }, h("span", { key: '512bfedc88a49232164be59eba523ca673876f2e', class: "bs-menu-block__title" }, h("span", { key: 'a75951dfa734644f3fbd5abd1f97e51b9a023a36', part: "name", class: "bs-menu-block__name" }, this.name), this.badge && (h("bs-chip-informative", { key: 'b4769585e7578532a68be1cb19bd1dc0553a7d52', part: "badge", class: "bs-menu-block__badge", color: "info", size: "sm" }, this.badge))), this.description && (h("span", { key: 'bc5049f8180aff51f96bad7bfedc6e5b7704f459', part: "description", class: "bs-menu-block__description" }, this.description))),
|
|
52
|
+
];
|
|
53
|
+
return (h("button", { key: 'f468826125b6743495c96049081f94ea7f372a0d', ...common, type: "button" }, body));
|
|
54
|
+
}
|
|
55
|
+
static get is() { return "bs-menu-block"; }
|
|
56
|
+
static get encapsulation() { return "shadow"; }
|
|
57
|
+
static get originalStyleUrls() {
|
|
58
|
+
return {
|
|
59
|
+
"$": ["bs-menu-block.css"]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
static get styleUrls() {
|
|
63
|
+
return {
|
|
64
|
+
"$": ["bs-menu-block.css"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static get properties() {
|
|
68
|
+
return {
|
|
69
|
+
"name": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "string",
|
|
74
|
+
"resolved": "string",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": true,
|
|
78
|
+
"optional": false,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "The title, and the start of the accessible name."
|
|
82
|
+
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"attribute": "name"
|
|
87
|
+
},
|
|
88
|
+
"description": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": true,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "One line under the title; part of the accessible name."
|
|
101
|
+
},
|
|
102
|
+
"getter": false,
|
|
103
|
+
"setter": false,
|
|
104
|
+
"reflect": false,
|
|
105
|
+
"attribute": "description"
|
|
106
|
+
},
|
|
107
|
+
"icon": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": true,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "URL of a monochrome SVG painted with the icon colour. The default slot overrides it."
|
|
120
|
+
},
|
|
121
|
+
"getter": false,
|
|
122
|
+
"setter": false,
|
|
123
|
+
"reflect": false,
|
|
124
|
+
"attribute": "icon"
|
|
125
|
+
},
|
|
126
|
+
"badge": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "string",
|
|
131
|
+
"resolved": "string",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": true,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [],
|
|
138
|
+
"text": "Short text for a chip beside the title, e.g. \"New\"."
|
|
139
|
+
},
|
|
140
|
+
"getter": false,
|
|
141
|
+
"setter": false,
|
|
142
|
+
"reflect": false,
|
|
143
|
+
"attribute": "badge"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { componentDescription } from "../../stories-utils";
|
|
3
|
+
import { ICONS } from "../bs-mega-menu/bs-mega-menu.stories";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/bs-menu-block',
|
|
6
|
+
parameters: { layout: 'padded', docs: { description: { component: componentDescription('bs-menu-block') } } },
|
|
7
|
+
argTypes: { name: { control: 'text' }, description: { control: 'text' }, badge: { control: 'text' } },
|
|
8
|
+
args: { name: 'Quotes', description: 'Create and send price quotes', badge: '' },
|
|
9
|
+
render: args => html `
|
|
10
|
+
<div style="width: 340px">
|
|
11
|
+
<bs-menu-block .icon=${ICONS.quotes} name=${args.name} description=${args.description} badge=${args.badge}></bs-menu-block>
|
|
12
|
+
</div>
|
|
13
|
+
`,
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const Default = {};
|
|
17
|
+
export const WithBadge = { args: { name: 'Subscriptions', description: 'Recurring billing for services', badge: 'New' } };
|
|
18
|
+
/** The four states in the design. Hover, pressed and focus come from the native element: point at a block, press it, or Tab to it. */
|
|
19
|
+
export const States = {
|
|
20
|
+
render: () => html `
|
|
21
|
+
<div style="display:flex;flex-direction:column;gap:8px;width:340px">
|
|
22
|
+
<bs-menu-block .icon=${ICONS.quotes} name="Quotes" description="Create and send price quotes"></bs-menu-block>
|
|
23
|
+
<bs-menu-block .icon=${ICONS.subscriptions} name="Subscriptions" description="Recurring billing for services" badge="New"></bs-menu-block>
|
|
24
|
+
</div>
|
|
25
|
+
`,
|
|
26
|
+
};
|
|
27
|
+
/** A slotted `<svg>` instead of the `icon` URL. */
|
|
28
|
+
export const SlottedIcon = {
|
|
29
|
+
render: () => html `
|
|
30
|
+
<div style="width: 340px">
|
|
31
|
+
<bs-menu-block name="Custom" description="An icon drawn with currentColor">
|
|
32
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8" /></svg>
|
|
33
|
+
</bs-menu-block>
|
|
34
|
+
</div>
|
|
35
|
+
`,
|
|
36
|
+
};
|
|
@@ -28,6 +28,7 @@ import { h } from "@stencil/core";
|
|
|
28
28
|
* @prop --bs-menu-item-color-disabled - Label text color when `disabled` is set. Aliased to `--bs-text-on-disabled`.
|
|
29
29
|
* @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
|
|
30
30
|
* @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
|
|
31
|
+
* @part ripple - The press-ripple layer (a `bs-ripple`). Tune it with `::part(ripple) { --bs-ripple-color: ...; }`.
|
|
31
32
|
*/
|
|
32
33
|
export class BsMenuItem {
|
|
33
34
|
/** Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by
|
|
@@ -47,7 +48,7 @@ export class BsMenuItem {
|
|
|
47
48
|
this.bsSelect.emit();
|
|
48
49
|
};
|
|
49
50
|
render() {
|
|
50
|
-
return (h("button", { key: '
|
|
51
|
+
return (h("button", { key: 'a6022e318de72f62cf5b4be5c924d472221b4cff', type: "button", part: "item", role: "menuitem", class: `bs-menu-item ${this.disabled ? 'bs-menu-item--disabled' : ''}`, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.onClick }, h("bs-ripple", { key: '5c330b32fb6450c9015ea5549ec522bbab0a3ac0', part: "ripple", centered: false, disabled: this.disabled }), h("span", { key: '16fece8c1363813f05410e120be8bdee4281ccfa', part: "icon", class: `bs-menu-item__icon ${this.hasIcon ? 'bs-menu-item__icon--has-content' : ''}` }, h("slot", { key: 'e8ceb7834a709543718dd0145d753fb186a74489', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '7ddb04608737ffeb097bebcdb5c00f825e058b9f', part: "label", class: "bs-menu-item__label" }, h("slot", { key: 'd24f52e58bfb3629ba8512e17e41844ad0b3baab' }))));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "bs-menu-item"; }
|
|
53
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,7 +45,7 @@ export class BsMessage {
|
|
|
45
45
|
/** Delivery/render state. `error` uses error colours; `pending` dims the bubble and sets `aria-busy`. */
|
|
46
46
|
status = 'default';
|
|
47
47
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: 'db1349965dab9cdb4ca7cddd47d9df6aa21227d2', class: "bs-message", "aria-busy": this.status === 'pending' ? 'true' : undefined }, h("div", { key: 'd1bee0f3145b3bd789ffe90b2603caefba8fcf1e', part: "avatar", class: "bs-message__avatar" }, h("slot", { key: '487a6d52013d52ac80f8906fbccf3017a1dd927d', name: "avatar" })), h("div", { key: 'c0713ad732145108ee0a40991fcc3f7955d6d263', class: "bs-message__column" }, h("bs-card", { key: 'ffa3b7c127f117c61e704e3209b031c0d1e0f385', part: "container", class: "bs-message__bubble", surface: "base" }, h("div", { key: 'f7b852caaecf770856fdb332db9e3af6540d99c2', part: "content", class: "bs-message__content" }, h("slot", { key: 'd3cacbf1031960c074b67115cdd110910eeb116b' }))), h("div", { key: '7161bd50553b2a2f4047c23501877ede4ff4facf', part: "footer", class: "bs-message__footer" }, h("slot", { key: '7109f10f94523fd2d58b6dd4de2195626b385dfb', name: "footer" })), h("div", { key: 'bf4e8e6c4817d33c69dd12362b397860d70766e9', part: "timestamp", class: "bs-message__timestamp" }, h("slot", { key: '6b70a022b77a2e20d4c0c3524d2ef00b45f1b583', name: "timestamp" }, this.timestamp && h("time", { key: '4e421395a0537ce46369fe9555cf308b052d71f1', dateTime: this.datetime }, this.timestamp))))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "bs-message"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class BsMessageList {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
render() {
|
|
78
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: 'b10cb414ec777f2ee2b793788f1d7cd1c8be7c03', class: "bs-message-list" }, h("div", { key: 'cdc9d56810ccab43ecc5a4f2a8c2fa0d7f87a238', part: "viewport", class: "bs-message-list__viewport", role: "log", "aria-live": "polite", tabindex: "0", ref: el => (this.viewport = el), onScroll: this.onScroll }, h("slot", { key: '54e2d0281818c3f0a6e9b4d8d147b7769b4bfd62' })), this.showScrollButton && (h("bs-icon-button", { key: 'dbe6009a3905d63fd50e69860e1f287a625d6d25', part: "scroll-to-latest", class: "bs-message-list__scroll", variant: "neutral", ariaLabel: this.scrollToLatestLabel, onClick: () => this.scrollToLatest() }, h("svg", { key: '000793a84e2f256bcf59cd7e000e54a6dcb0e63d', width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { key: '6d8447826dc8ae2534156820f45fe761797bf70a', d: "M8 3v10M3.5 8.5L8 13l4.5-4.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "bs-message-list"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import axe from "axe-core";
|
|
3
|
+
import { assertShadowParts, assertCssCustomProperties } from "../../test/helpers/conventions";
|
|
4
|
+
const q = (el, s) => el.shadowRoot.querySelector(s);
|
|
5
|
+
const Trail = () => (h("bs-breadcrumbs", { slot: "breadcrumb", label: "Breadcrumb" }, h("bs-breadcrumb", { href: "#sales" }, "Sales"), h("bs-breadcrumb", { href: "#invoices" }, "Invoices"), h("bs-breadcrumb", { current: true }, "INV-2041")));
|
|
6
|
+
const Status = () => (h("bs-chip-informative", { slot: "status", color: "error", size: "sm" }, "Overdue"));
|
|
7
|
+
const Actions = () => [
|
|
8
|
+
h("bs-button", { slot: "actions", variant: "outlined", size: "sm" }, "Send reminder"),
|
|
9
|
+
h("bs-button", { slot: "actions", size: "sm" }, "Register payment"),
|
|
10
|
+
h("bs-icon-button", { slot: "actions", variant: "outlined", size: "sm", ariaLabel: "More actions" }, h("svg", { viewBox: "0 0 16 16", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "2" }))),
|
|
11
|
+
];
|
|
12
|
+
const Tabs = () => (h("bs-tabs", { slot: "tabs", type: "bs-tab", value: "overview" }, h("bs-tab", { value: "overview", selected: true }, "Overview"), h("bs-tab", { value: "lines" }, "Lines"), h("bs-tab", { value: "payments" }, "Payments")));
|
|
13
|
+
const make = async (props = {}, width = 1100, children = [Trail(), Status(), Actions(), Tabs()]) => {
|
|
14
|
+
const r = await render(h("div", { style: { width: `${width}px` } }, h("bs-page-header", { heading: "Invoices", meta: "214 invoices \u00B7 38 open \u00B7 5 overdue", ...props }, children)));
|
|
15
|
+
await new Promise(res => setTimeout(res, 80));
|
|
16
|
+
const el = r.root.querySelector('bs-page-header');
|
|
17
|
+
return { ...r, el };
|
|
18
|
+
};
|
|
19
|
+
describe('bs-page-header', () => {
|
|
20
|
+
it('renders the heading as an h1 by default and clamps headingLevel to 1-6', async () => {
|
|
21
|
+
const levels = [];
|
|
22
|
+
for (const level of [undefined, 2, 4, 9, 0, 'x']) {
|
|
23
|
+
const { el } = await make(level === undefined ? {} : { headingLevel: level });
|
|
24
|
+
levels.push(q(el, '[part="heading"]').tagName);
|
|
25
|
+
}
|
|
26
|
+
expect(levels).toEqual(['H1', 'H2', 'H4', 'H6', 'H1', 'H1']);
|
|
27
|
+
const { el } = await make();
|
|
28
|
+
expect(q(el, 'h1').textContent).toBe('Invoices');
|
|
29
|
+
});
|
|
30
|
+
it('is a plain div, not a landmark, and exposes the parts and custom properties', async () => {
|
|
31
|
+
const { el } = await make({ back: true, favoritable: true });
|
|
32
|
+
const root = q(el, '[part="container"]');
|
|
33
|
+
expect(root.tagName).toBe('DIV');
|
|
34
|
+
expect(root.getAttribute('role')).toBeNull();
|
|
35
|
+
assertShadowParts(el.shadowRoot, ['container', 'breadcrumb', 'row', 'main', 'back', 'title', 'heading', 'status', 'favorite', 'meta', 'actions', 'tabs', 'divider']);
|
|
36
|
+
assertCssCustomProperties(el, ['--bs-page-header-bg', '--bs-page-header-shadow', '--bs-page-header-sticky-offset', '--bs-page-header-z-index']);
|
|
37
|
+
});
|
|
38
|
+
it('renders the meta prop, and the meta slot overrides it', async () => {
|
|
39
|
+
const { el } = await make();
|
|
40
|
+
expect(q(el, '[part="meta"]').textContent).toBe('214 invoices · 38 open · 5 overdue');
|
|
41
|
+
const { el: el2 } = await make({}, 1100, [h("span", { slot: "meta" }, "Slotted meta")]);
|
|
42
|
+
expect(q(el2, 'slot[name="meta"]').assignedNodes()[0].textContent).toBe('Slotted meta');
|
|
43
|
+
});
|
|
44
|
+
it('removes empty areas from layout (no breadcrumb, actions, status or meta)', async () => {
|
|
45
|
+
const { el } = await make({ meta: undefined }, 1100, []);
|
|
46
|
+
for (const part of ['breadcrumb', 'status', 'meta', 'actions', 'tabs']) {
|
|
47
|
+
expect(getComputedStyle(q(el, `[part="${part}"]`)).display, part).toBe('none');
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
it('shows the back button only with `back`, named by backLabel, and emits bsBack', async () => {
|
|
51
|
+
const { el, waitForChanges } = await make();
|
|
52
|
+
expect(q(el, '[part="back"]')).toBeNull();
|
|
53
|
+
el.back = true;
|
|
54
|
+
el.backLabel = 'Tilbage';
|
|
55
|
+
await waitForChanges();
|
|
56
|
+
const back = q(el, '[part="back"]');
|
|
57
|
+
expect(back.shadowRoot.querySelector('button').getAttribute('aria-label')).toBe('Tilbage');
|
|
58
|
+
let n = 0;
|
|
59
|
+
el.addEventListener('bsBack', () => n++);
|
|
60
|
+
back.shadowRoot.querySelector('button').click();
|
|
61
|
+
expect(n).toBe(1);
|
|
62
|
+
});
|
|
63
|
+
it('aligns the meta line with the title, not the back button', async () => {
|
|
64
|
+
const { el } = await make({ back: true });
|
|
65
|
+
const title = q(el, '[part="title"]').getBoundingClientRect();
|
|
66
|
+
const meta = q(el, '[part="meta"]').getBoundingClientRect();
|
|
67
|
+
expect(Math.round(meta.left)).toBe(Math.round(title.left));
|
|
68
|
+
expect(meta.top).toBeGreaterThanOrEqual(title.bottom - 1);
|
|
69
|
+
});
|
|
70
|
+
describe('favourite toggle', () => {
|
|
71
|
+
it('only exists with `favoritable`, is a pressed toggle with a constant label', async () => {
|
|
72
|
+
const { el, waitForChanges } = await make();
|
|
73
|
+
expect(q(el, '[part="favorite"]')).toBeNull();
|
|
74
|
+
el.favoritable = true;
|
|
75
|
+
await waitForChanges();
|
|
76
|
+
const fav = q(el, '[part="favorite"]');
|
|
77
|
+
expect(fav.shadowRoot.querySelector('button').getAttribute('aria-label')).toBe('Favourite');
|
|
78
|
+
expect(fav.shadowRoot.querySelector('button').getAttribute('aria-pressed')).toBe('false');
|
|
79
|
+
el.favorite = true;
|
|
80
|
+
await waitForChanges();
|
|
81
|
+
expect(fav.shadowRoot.querySelector('button').getAttribute('aria-pressed')).toBe('true');
|
|
82
|
+
expect(fav.shadowRoot.querySelector('button').getAttribute('aria-label')).toBe('Favourite');
|
|
83
|
+
});
|
|
84
|
+
it('toggles on click, emitting bsFavoriteChange with the new value', async () => {
|
|
85
|
+
const { el, waitForChanges } = await make({ favoritable: true });
|
|
86
|
+
const seen = [];
|
|
87
|
+
el.addEventListener('bsFavoriteChange', (e) => seen.push(e.detail.favorite));
|
|
88
|
+
const click = () => q(el, '[part="favorite"]').shadowRoot.querySelector('button').click();
|
|
89
|
+
click();
|
|
90
|
+
await waitForChanges();
|
|
91
|
+
expect(el.favorite).toBe(true);
|
|
92
|
+
expect(el.hasAttribute('favorite')).toBe(true);
|
|
93
|
+
click();
|
|
94
|
+
await waitForChanges();
|
|
95
|
+
expect(el.favorite).toBe(false);
|
|
96
|
+
expect(seen).toEqual([true, false]);
|
|
97
|
+
});
|
|
98
|
+
it('keeps the old value when bsFavoriteChange is cancelled', async () => {
|
|
99
|
+
const { el, waitForChanges } = await make({ favoritable: true });
|
|
100
|
+
el.addEventListener('bsFavoriteChange', (e) => e.preventDefault());
|
|
101
|
+
q(el, '[part="favorite"]').shadowRoot.querySelector('button').click();
|
|
102
|
+
await waitForChanges();
|
|
103
|
+
expect(el.favorite).toBe(false);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
it('draws the divider under the tabs only when there are tabs and the header is not compact', async () => {
|
|
107
|
+
const { el, waitForChanges } = await make();
|
|
108
|
+
expect(q(el, '[part="divider"]')).not.toBeNull();
|
|
109
|
+
el.compact = true;
|
|
110
|
+
await waitForChanges();
|
|
111
|
+
expect(q(el, '[part="divider"]')).toBeNull();
|
|
112
|
+
const { el: noTabs } = await make({}, 1100, [Trail()]);
|
|
113
|
+
expect(q(noTabs, '[part="divider"]')).toBeNull();
|
|
114
|
+
});
|
|
115
|
+
describe('compact', () => {
|
|
116
|
+
it('is sticky, with the level 2 shadow, a token z-index, and no breadcrumb or tabs', async () => {
|
|
117
|
+
const { el } = await make({ compact: true, back: true });
|
|
118
|
+
expect(el.hasAttribute('compact')).toBe(true);
|
|
119
|
+
const host = getComputedStyle(el);
|
|
120
|
+
expect(host.position).toBe('sticky');
|
|
121
|
+
expect(host.top).toBe('0px');
|
|
122
|
+
expect(host.zIndex).toBe('200');
|
|
123
|
+
const box = getComputedStyle(q(el, '[part="container"]'));
|
|
124
|
+
expect(box.boxShadow).toContain('0px 2px 4px');
|
|
125
|
+
expect(getComputedStyle(q(el, '[part="breadcrumb"]')).display).toBe('none');
|
|
126
|
+
expect(getComputedStyle(q(el, '[part="tabs"]')).display).toBe('none');
|
|
127
|
+
});
|
|
128
|
+
it('is one row of 80px with the meta inline after the title', async () => {
|
|
129
|
+
const { el } = await make({ compact: true, back: true, meta: 'Nordlys Handel AS · 4 250,00 kr' });
|
|
130
|
+
expect(Math.round(q(el, '[part="container"]').getBoundingClientRect().height)).toBe(80);
|
|
131
|
+
const title = q(el, '[part="title"]').getBoundingClientRect();
|
|
132
|
+
const meta = q(el, '[part="meta"]').getBoundingClientRect();
|
|
133
|
+
expect(meta.left).toBeGreaterThanOrEqual(title.right - 1);
|
|
134
|
+
expect(Math.abs(meta.top + meta.height / 2 - (title.top + title.height / 2))).toBeLessThan(4);
|
|
135
|
+
});
|
|
136
|
+
it('honours --bs-page-header-sticky-offset', async () => {
|
|
137
|
+
const { el } = await make({ compact: true });
|
|
138
|
+
el.style.setProperty('--bs-page-header-sticky-offset', '64px');
|
|
139
|
+
expect(getComputedStyle(el).top).toBe('64px');
|
|
140
|
+
});
|
|
141
|
+
it('sticks to the top of its scroll container', async () => {
|
|
142
|
+
const r = await render(h("div", { id: "scroller", style: { height: '200px', overflow: 'auto' } }, h("bs-page-header", { compact: true, heading: "Invoices", meta: "x" }), h("div", { style: { height: '1200px' } })));
|
|
143
|
+
const scroller = r.root;
|
|
144
|
+
scroller.scrollTop = 500;
|
|
145
|
+
await new Promise(res => setTimeout(res, 50));
|
|
146
|
+
const top = r.root.querySelector('bs-page-header').getBoundingClientRect().top - scroller.getBoundingClientRect().top;
|
|
147
|
+
expect(Math.round(top)).toBe(0);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
describe('narrow container', () => {
|
|
151
|
+
it('wraps the actions below the title block without overflowing, at 320px', async () => {
|
|
152
|
+
const { el } = await make({ back: true, favoritable: true }, 320);
|
|
153
|
+
const main = q(el, '[part="main"]').getBoundingClientRect();
|
|
154
|
+
const actions = q(el, '[part="actions"]').getBoundingClientRect();
|
|
155
|
+
expect(actions.top).toBeGreaterThanOrEqual(main.bottom - 1);
|
|
156
|
+
const host = el.getBoundingClientRect();
|
|
157
|
+
expect(host.width).toBe(320);
|
|
158
|
+
expect(el.scrollWidth).toBeLessThanOrEqual(320);
|
|
159
|
+
for (const b of Array.from(el.querySelectorAll('[slot="actions"]'))) {
|
|
160
|
+
const r = b.getBoundingClientRect();
|
|
161
|
+
expect(r.right).toBeLessThanOrEqual(host.right + 0.5);
|
|
162
|
+
expect(r.height).toBeGreaterThanOrEqual(44);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
it('makes the built-in back and favourite buttons 44px', async () => {
|
|
166
|
+
const { el } = await make({ back: true, favoritable: true }, 375);
|
|
167
|
+
expect(q(el, '[part="back"]').getBoundingClientRect().height).toBeGreaterThanOrEqual(44);
|
|
168
|
+
expect(q(el, '[part="favorite"]').getBoundingClientRect().width).toBeGreaterThanOrEqual(44);
|
|
169
|
+
});
|
|
170
|
+
it('lets a long title and the meta wrap, and scrolls the tab row inside itself', async () => {
|
|
171
|
+
const long = 'Invoice INV-2041 for Nordlys Handel AS and a very long supplementary description that must wrap';
|
|
172
|
+
const { el } = await make({ heading: long, meta: long, back: true }, 320, [
|
|
173
|
+
Trail(),
|
|
174
|
+
Status(),
|
|
175
|
+
Actions(),
|
|
176
|
+
h("bs-tabs", { slot: "tabs", type: "bs-tab" }, ['Overview', 'Lines', 'Payments', 'Activity', 'Attachments', 'History'].map(t => (h("bs-tab", null, t)))),
|
|
177
|
+
]);
|
|
178
|
+
expect(el.scrollWidth).toBeLessThanOrEqual(320);
|
|
179
|
+
expect(q(el, '[part="heading"]').getBoundingClientRect().height).toBeGreaterThan(40);
|
|
180
|
+
const tabs = q(el, '[part="tabs"]');
|
|
181
|
+
expect(getComputedStyle(tabs).overflowX).toBe('auto');
|
|
182
|
+
expect(tabs.scrollWidth).toBeGreaterThan(tabs.clientWidth);
|
|
183
|
+
expect(tabs.getBoundingClientRect().right).toBeLessThanOrEqual(320);
|
|
184
|
+
});
|
|
185
|
+
it('keeps the wide layout (actions beside the title) at 640px and wider', async () => {
|
|
186
|
+
const { el } = await make({}, 640);
|
|
187
|
+
const main = q(el, '[part="main"]').getBoundingClientRect();
|
|
188
|
+
const actions = q(el, '[part="actions"]').getBoundingClientRect();
|
|
189
|
+
expect(actions.left).toBeGreaterThanOrEqual(main.right - 1);
|
|
190
|
+
expect(actions.top).toBeLessThan(main.bottom);
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
it('has no axe violations in each configuration', async () => {
|
|
194
|
+
const configs = [
|
|
195
|
+
[{}, 1100],
|
|
196
|
+
[{ back: true, favoritable: true }, 1100],
|
|
197
|
+
[{ back: true, favoritable: true, favorite: true }, 375],
|
|
198
|
+
[{ compact: true, back: true }, 1100],
|
|
199
|
+
];
|
|
200
|
+
for (const [props, width] of configs) {
|
|
201
|
+
const { el } = await make(props, width);
|
|
202
|
+
const results = await axe.run(el);
|
|
203
|
+
expect(results.violations.map(v => `${v.id}: ${v.help}`), JSON.stringify(props)).toEqual([]);
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
});
|