@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,177 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
3
|
+
import { componentDescription } from "../../stories-utils";
|
|
4
|
+
import exportIcon from "@phosphor-icons/core/assets/regular/download-simple.svg?inline";
|
|
5
|
+
import plusIcon from "@phosphor-icons/core/assets/regular/plus.svg?inline";
|
|
6
|
+
import moreIcon from "@phosphor-icons/core/assets/bold/dots-three-bold.svg?inline";
|
|
7
|
+
import mailIcon from "@phosphor-icons/core/assets/regular/envelope-simple.svg?inline";
|
|
8
|
+
/** Phosphor (regular) icons as monochrome SVG data URIs; a real app supplies its own. */
|
|
9
|
+
export const ICONS = { export: exportIcon, plus: plusIcon, more: moreIcon, mail: mailIcon };
|
|
10
|
+
/** Sample data (invented for the stories and tests; not real invoices, customers or amounts). */
|
|
11
|
+
export const SAMPLE = {
|
|
12
|
+
heading: 'Invoices',
|
|
13
|
+
listMeta: '214 invoices · 38 open · 5 overdue',
|
|
14
|
+
customerMeta: 'Nordlys Handel AS · 4 250,00 kr',
|
|
15
|
+
};
|
|
16
|
+
/** An icon painted from a monochrome SVG URL in the surrounding text colour, sized by the slot (1em). */
|
|
17
|
+
const icon = (url) => {
|
|
18
|
+
const mask = `url("${url}") center / contain no-repeat`;
|
|
19
|
+
return html `<span aria-hidden="true" style=${styleMap({ display: 'block', width: '100%', height: '100%', background: 'currentColor', '-webkit-mask': mask, mask })}></span>`;
|
|
20
|
+
};
|
|
21
|
+
const trail = (record) => html `
|
|
22
|
+
<bs-breadcrumbs slot="breadcrumb" label="Breadcrumb">
|
|
23
|
+
<bs-breadcrumb href="#sales">Sales</bs-breadcrumb>
|
|
24
|
+
<bs-breadcrumb href="#invoices" ?current=${!record}>Invoices</bs-breadcrumb>
|
|
25
|
+
${record ? html `<bs-breadcrumb current>INV-2041</bs-breadcrumb>` : ''}
|
|
26
|
+
</bs-breadcrumbs>
|
|
27
|
+
`;
|
|
28
|
+
const status = html `<bs-chip-informative slot="status" color="error" size="sm">Overdue</bs-chip-informative>`;
|
|
29
|
+
const more = html `<bs-icon-button slot="actions" variant="outlined" size="sm" aria-label="More actions" style="--bs-icon-button-icon-size-sm: var(--bs-scale-250)">${icon(ICONS.more)}</bs-icon-button>`;
|
|
30
|
+
const listActions = html `
|
|
31
|
+
<bs-button slot="actions" variant="outlined" size="sm"><span slot="icon" style="font-size: var(--bs-scale-250)">${icon(ICONS.export)}</span>Export</bs-button>
|
|
32
|
+
<bs-button slot="actions" variant="primary" size="sm"><span slot="icon" style="font-size: var(--bs-scale-250)">${icon(ICONS.plus)}</span>New invoice</bs-button>
|
|
33
|
+
${more}
|
|
34
|
+
`;
|
|
35
|
+
const recordActions = html `
|
|
36
|
+
<bs-button slot="actions" variant="outlined" size="sm"><span slot="icon" style="font-size: var(--bs-scale-250)">${icon(ICONS.mail)}</span>Send reminder</bs-button>
|
|
37
|
+
<bs-button slot="actions" variant="primary" size="sm">Register payment</bs-button>
|
|
38
|
+
${more}
|
|
39
|
+
`;
|
|
40
|
+
const tabs = html `
|
|
41
|
+
<bs-tabs slot="tabs" type="bs-tab" value="overview">
|
|
42
|
+
<bs-tab value="overview" selected>Overview</bs-tab>
|
|
43
|
+
<bs-tab value="lines">Lines</bs-tab>
|
|
44
|
+
<bs-tab value="payments">Payments</bs-tab>
|
|
45
|
+
<bs-tab value="activity">Activity</bs-tab>
|
|
46
|
+
<bs-tab value="attachments">Attachments</bs-tab>
|
|
47
|
+
</bs-tabs>
|
|
48
|
+
`;
|
|
49
|
+
const meta = {
|
|
50
|
+
title: 'Components/bs-page-header',
|
|
51
|
+
excludeStories: /^[A-Z0-9_]+$/,
|
|
52
|
+
parameters: { layout: 'fullscreen', docs: { description: { component: componentDescription('bs-page-header') } } },
|
|
53
|
+
argTypes: {
|
|
54
|
+
heading: { control: 'text' },
|
|
55
|
+
headingLevel: { control: { type: 'number', min: 1, max: 6 } },
|
|
56
|
+
meta: { control: 'text' },
|
|
57
|
+
compact: { control: 'boolean' },
|
|
58
|
+
back: { control: 'boolean' },
|
|
59
|
+
favoritable: { control: 'boolean' },
|
|
60
|
+
favorite: { control: 'boolean' },
|
|
61
|
+
backLabel: { control: 'text' },
|
|
62
|
+
favoriteLabel: { control: 'text' },
|
|
63
|
+
},
|
|
64
|
+
args: { heading: SAMPLE.heading, headingLevel: 1, meta: SAMPLE.listMeta, compact: false, back: false, favoritable: false, favorite: false, backLabel: 'Back', favoriteLabel: 'Favourite' },
|
|
65
|
+
render: args => html `
|
|
66
|
+
<bs-page-header
|
|
67
|
+
.heading=${args.heading}
|
|
68
|
+
.headingLevel=${args.headingLevel}
|
|
69
|
+
.meta=${args.meta}
|
|
70
|
+
.compact=${args.compact}
|
|
71
|
+
.back=${args.back}
|
|
72
|
+
.favoritable=${args.favoritable}
|
|
73
|
+
.favorite=${args.favorite}
|
|
74
|
+
.backLabel=${args.backLabel}
|
|
75
|
+
.favoriteLabel=${args.favoriteLabel}
|
|
76
|
+
>
|
|
77
|
+
${trail(false)} ${listActions}
|
|
78
|
+
</bs-page-header>
|
|
79
|
+
`,
|
|
80
|
+
};
|
|
81
|
+
export default meta;
|
|
82
|
+
/** Type "List page": breadcrumb, title, a meta line and the page actions on the right. */
|
|
83
|
+
export const ListPage = { name: 'List page' };
|
|
84
|
+
/** Type "Record": back button, status chip and favourite toggle beside the title; the meta line lines up with the title. */
|
|
85
|
+
export const Record = {
|
|
86
|
+
args: { back: true, favoritable: true, meta: SAMPLE.listMeta },
|
|
87
|
+
render: args => html `
|
|
88
|
+
<bs-page-header .heading=${args.heading} .headingLevel=${args.headingLevel} .meta=${args.meta} back favoritable .favorite=${args.favorite}>
|
|
89
|
+
${trail(true)} ${status} ${recordActions}
|
|
90
|
+
</bs-page-header>
|
|
91
|
+
`,
|
|
92
|
+
};
|
|
93
|
+
/** Type "Record with tabs": a `bs-tabs` row under the meta line with a full-width divider below it. */
|
|
94
|
+
export const RecordWithTabs = {
|
|
95
|
+
name: 'Record with tabs',
|
|
96
|
+
args: { back: true, favoritable: true },
|
|
97
|
+
render: args => html `
|
|
98
|
+
<bs-page-header .heading=${args.heading} .headingLevel=${args.headingLevel} .meta=${args.meta} back favoritable .favorite=${args.favorite}>
|
|
99
|
+
${trail(true)} ${status} ${recordActions} ${tabs}
|
|
100
|
+
</bs-page-header>
|
|
101
|
+
`,
|
|
102
|
+
};
|
|
103
|
+
/** Type "Sticky compact": one row with an inline meta and a level 2 shadow. Scroll the box: the header stays at the top. */
|
|
104
|
+
export const StickyCompact = {
|
|
105
|
+
name: 'Sticky compact',
|
|
106
|
+
args: { compact: true, back: true, meta: SAMPLE.customerMeta },
|
|
107
|
+
render: args => html `
|
|
108
|
+
<div
|
|
109
|
+
role="region"
|
|
110
|
+
aria-label="Scrollable page (sample)"
|
|
111
|
+
tabindex="0"
|
|
112
|
+
style="height: 360px; overflow: auto; scroll-padding-top: 80px; background: var(--bs-surface-base);"
|
|
113
|
+
>
|
|
114
|
+
<bs-page-header compact .heading=${args.heading} .headingLevel=${args.headingLevel} .meta=${args.meta} back>
|
|
115
|
+
${status} ${recordActions}
|
|
116
|
+
</bs-page-header>
|
|
117
|
+
<div style="padding: var(--bs-spacing-300) var(--bs-spacing-200); font-family: sans-serif; color: var(--bs-text-secondary);">
|
|
118
|
+
${Array.from({ length: 14 }, (_, i) => html `<p>Page content (sample), paragraph ${i + 1}. The compact header stays at the top while this scrolls.</p>`)}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
`,
|
|
122
|
+
};
|
|
123
|
+
/** A favourited record: the star is filled and the button reports `aria-pressed="true"`. */
|
|
124
|
+
export const Favourited = {
|
|
125
|
+
args: { back: true, favoritable: true, favorite: true },
|
|
126
|
+
render: args => html `
|
|
127
|
+
<bs-page-header .heading=${args.heading} .meta=${args.meta} back favoritable .favorite=${args.favorite}>
|
|
128
|
+
${trail(true)} ${status} ${recordActions}
|
|
129
|
+
</bs-page-header>
|
|
130
|
+
`,
|
|
131
|
+
};
|
|
132
|
+
/** No actions and no status: the title block and the meta line only. */
|
|
133
|
+
export const NoActions = {
|
|
134
|
+
name: 'No actions',
|
|
135
|
+
render: args => html `<bs-page-header .heading=${args.heading} .meta=${args.meta}>${trail(false)}</bs-page-header>`,
|
|
136
|
+
};
|
|
137
|
+
/** A long title wraps inside the title block; the status, favourite toggle and actions stay in place. */
|
|
138
|
+
export const LongTitle = {
|
|
139
|
+
name: 'Long title',
|
|
140
|
+
args: {
|
|
141
|
+
back: true,
|
|
142
|
+
favoritable: true,
|
|
143
|
+
heading: 'Invoice INV-2041 for Nordlys Handel AS, delivery of seasonal goods for the autumn campaign and winter stock',
|
|
144
|
+
meta: 'Issued 3 September · due 3 October · 4 250,00 kr',
|
|
145
|
+
},
|
|
146
|
+
render: args => html `
|
|
147
|
+
<bs-page-header .heading=${args.heading} .meta=${args.meta} back favoritable>${trail(true)} ${status} ${recordActions}</bs-page-header>
|
|
148
|
+
`,
|
|
149
|
+
};
|
|
150
|
+
const PHONE_VIEWPORT = {
|
|
151
|
+
options: { phone375: { name: 'Phone (375px)', styles: { width: '375px', height: '812px' }, type: 'mobile' } },
|
|
152
|
+
};
|
|
153
|
+
/** The Record with tabs at 375px: actions wrap below the title, buttons are 44px tall, the tabs scroll inside their row. */
|
|
154
|
+
export const Mobile = {
|
|
155
|
+
parameters: { layout: 'fullscreen', viewport: PHONE_VIEWPORT },
|
|
156
|
+
globals: { viewport: { value: 'phone375', isRotated: false } },
|
|
157
|
+
args: { back: true, favoritable: true },
|
|
158
|
+
render: args => html `
|
|
159
|
+
<bs-page-header .heading=${args.heading} .meta=${args.meta} back favoritable>${trail(true)} ${status} ${recordActions} ${tabs}</bs-page-header>
|
|
160
|
+
`,
|
|
161
|
+
};
|
|
162
|
+
/** Wired up: click back or the star; the last event is printed below. `bsFavoriteChange` is cancelable. */
|
|
163
|
+
export const Interactive = {
|
|
164
|
+
args: { back: true, favoritable: true },
|
|
165
|
+
render: args => {
|
|
166
|
+
const wrap = document.createElement('div');
|
|
167
|
+
const out = document.createElement('output');
|
|
168
|
+
out.style.cssText = 'display:block;padding:8px 16px;font:14px/20px monospace;color:var(--bs-text-secondary)';
|
|
169
|
+
out.textContent = 'Click the back arrow or the star.';
|
|
170
|
+
const ph = document.createElement('bs-page-header');
|
|
171
|
+
Object.assign(ph, { heading: args.heading, meta: args.meta, back: true, favoritable: true });
|
|
172
|
+
ph.addEventListener('bsBack', () => (out.textContent = 'bsBack'));
|
|
173
|
+
ph.addEventListener('bsFavoriteChange', e => (out.textContent = `bsFavoriteChange favorite=${e.detail.favorite}`));
|
|
174
|
+
wrap.append(ph, out);
|
|
175
|
+
return wrap;
|
|
176
|
+
},
|
|
177
|
+
};
|
|
@@ -24,6 +24,7 @@ import { h } from "@stencil/core";
|
|
|
24
24
|
* @part page - Each page-number button.
|
|
25
25
|
* @part current - The current page's button (in addition to `page`).
|
|
26
26
|
* @part ellipsis - Each collapsed-range indicator.
|
|
27
|
+
* @part ripple - The press-ripple layer (a `bs-ripple`). Tune it with `::part(ripple) { --bs-ripple-color: ...; }`.
|
|
27
28
|
*/
|
|
28
29
|
export class BsPagination {
|
|
29
30
|
/** Total number of pages. Must be a positive integer -- there's always at least one page. */
|
|
@@ -91,7 +92,7 @@ export class BsPagination {
|
|
|
91
92
|
}
|
|
92
93
|
render() {
|
|
93
94
|
const pageList = this.getPageList();
|
|
94
|
-
return (h("nav", { key: '
|
|
95
|
+
return (h("nav", { key: '574bba698954fefe6083b1c0b46215b53cd929cc', "aria-label": this.navLabel }, h("ul", { key: 'db7a37916e2f2bb8739828936048b9b73af2c93f', part: "list", class: "bs-pagination__list" }, h("li", { key: '25fc9453e309eec5c7226fc3a2255fe20f138ebc', part: "item", class: "bs-pagination__item" }, h("button", { key: '654898cca41f9868f3780b16a01d25e39c76de06', part: "prev", type: "button", class: "bs-pagination__control", "aria-label": this.previousLabel, disabled: this.currentPage <= 1, onClick: () => this.goToPage(this.currentPage - 1) }, h("bs-ripple", { key: '544bddaee750f3d18519cf676fccf2788ae65b8f', part: "ripple", centered: true }), h(ChevronLeftIcon, { key: 'c8913363a09dada9765383ab59d309058b272b65' }))), pageList.map((item, index) => item === 'ellipsis' ? (h("li", { part: "item", class: "bs-pagination__item", key: `ellipsis-${index}` }, h("span", { part: "ellipsis", class: "bs-pagination__ellipsis", "aria-hidden": "true" }, h(EllipsisIcon, null)))) : (h("li", { part: "item", class: "bs-pagination__item", key: item }, h("button", { part: item === this.currentPage ? 'page current' : 'page', type: "button", class: `bs-pagination__control bs-pagination__page ${item === this.currentPage ? 'bs-pagination__page--current' : ''}`, "aria-label": `${this.pageLabel} ${item}`, "aria-current": item === this.currentPage ? 'page' : undefined, onClick: () => this.goToPage(item) }, h("bs-ripple", { part: "ripple", centered: true }), item)))), h("li", { key: '8ce36f14052801aa1ef9b2f750f6d030de1ed6b1', part: "item", class: "bs-pagination__item" }, h("button", { key: 'a944585c463d4a8035b2932e1a1c881fb5ad68ee', part: "next", type: "button", class: "bs-pagination__control", "aria-label": this.nextLabel, disabled: this.currentPage >= this.safeTotalPages, onClick: () => this.goToPage(this.currentPage + 1) }, h("bs-ripple", { key: '3082d79238e9242cbfc52e08be0d53160f85bfed', part: "ripple", centered: true }), h(ChevronRightIcon, { key: 'be4c48d8075ecf6e9389546e63c8e192da50ed30' }))))));
|
|
95
96
|
}
|
|
96
97
|
static get is() { return "bs-pagination"; }
|
|
97
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
2
3
|
const setup = () => render(h("bs-popover", null, h("button", { slot: "trigger" }, "Open"), h("div", null, "Content")));
|
|
3
4
|
describe('bs-popover', () => {
|
|
4
5
|
it('is closed by default with aria wiring on the trigger wrapper', async () => {
|
|
@@ -104,4 +105,23 @@ describe('bs-popover', () => {
|
|
|
104
105
|
await waitForChanges();
|
|
105
106
|
expect(pop.getAttribute('data-placement')).toBe('bottom-end');
|
|
106
107
|
});
|
|
108
|
+
describe('open/close motion', () => {
|
|
109
|
+
it('keeps the popup visible while it fades out, then hides it', async () => {
|
|
110
|
+
const { root, waitForChanges } = await render(h("bs-popover", { open: true, style: { '--bs-popover-duration': '150ms' } }, h("button", { slot: "trigger" }, "Open"), h("p", null, "Content")));
|
|
111
|
+
const popup = root.shadowRoot.querySelector('[part="popup"]');
|
|
112
|
+
expect(popup.hidden).toBe(false);
|
|
113
|
+
root.open = false;
|
|
114
|
+
await waitForChanges();
|
|
115
|
+
expect(popup.hidden).toBe(false);
|
|
116
|
+
await wait(400);
|
|
117
|
+
await waitForChanges();
|
|
118
|
+
expect(popup.hidden).toBe(true);
|
|
119
|
+
});
|
|
120
|
+
it('hides immediately when the duration is 0ms', async () => {
|
|
121
|
+
const { root, waitForChanges } = await render(h("bs-popover", { open: true, style: { '--bs-popover-duration': '0ms' } }, h("button", { slot: "trigger" }, "Open"), h("p", null, "Content")));
|
|
122
|
+
root.open = false;
|
|
123
|
+
await waitForChanges();
|
|
124
|
+
expect(root.shadowRoot.querySelector('[part="popup"]').hidden).toBe(true);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
107
127
|
});
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
--bs-popover-offset: var(--bs-spacing-100);
|
|
8
8
|
--bs-popover-min-width: var(--bs-scale-1600);
|
|
9
9
|
--bs-popover-z-index: var(--bs-z-index-popover);
|
|
10
|
+
--bs-popover-duration: var(--bs-duration-fast);
|
|
11
|
+
--bs-popover-easing: var(--bs-easing-standard);
|
|
12
|
+
--bs-popover-distance: var(--bs-spacing-50);
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
.bs-popover__trigger {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { cancelMotion, play, readMotion } from "../../utils/motion";
|
|
2
3
|
let popoverId = 0;
|
|
3
4
|
/**
|
|
4
5
|
* A trigger plus a popup panel that opens on trigger click and closes on outside click or Escape.
|
|
@@ -23,6 +24,12 @@ let popoverId = 0;
|
|
|
23
24
|
* @prop --bs-popover-offset - Gap between trigger and popup. Aliased to `--bs-spacing-100`.
|
|
24
25
|
* @prop --bs-popover-min-width - Minimum popup width. Aliased to `--bs-scale-1600`.
|
|
25
26
|
* @prop --bs-popover-z-index - Popup stacking order. Aliased to `--bs-z-index-popover`.
|
|
27
|
+
* @prop --bs-popover-duration - Length of the open/close motion. Aliased to `--bs-duration-fast`.
|
|
28
|
+
* @prop --bs-popover-easing - Curve of the open/close motion. Aliased to `--bs-easing-standard`.
|
|
29
|
+
* @prop --bs-popover-distance - How far the popup nudges while it fades. Aliased to `--bs-spacing-50`.
|
|
30
|
+
*
|
|
31
|
+
* The popup fades and nudges toward its trigger when it opens and closes. Length, curve and travel are
|
|
32
|
+
* `--bs-popover-duration`, `--bs-popover-easing` and `--bs-popover-distance`; under `prefers-reduced-motion: reduce` it is instant.
|
|
26
33
|
*/
|
|
27
34
|
export class BsPopover {
|
|
28
35
|
el;
|
|
@@ -34,12 +41,21 @@ export class BsPopover {
|
|
|
34
41
|
bsOpenChange;
|
|
35
42
|
popupId = `bs-popover-${++popoverId}`;
|
|
36
43
|
triggerSlot;
|
|
44
|
+
/** True while the exit motion plays after `open` went false, so the popup stays visible for it. */
|
|
45
|
+
closing = false;
|
|
37
46
|
popupEl;
|
|
47
|
+
enterPending = false;
|
|
48
|
+
exitPending = false;
|
|
49
|
+
motionRun = 0;
|
|
38
50
|
needsFocusIn = false;
|
|
39
51
|
escaped = false;
|
|
40
52
|
onOpenChange(next) {
|
|
41
53
|
this.detach();
|
|
54
|
+
this.motionRun++;
|
|
55
|
+
cancelMotion(this.popupEl);
|
|
42
56
|
if (next) {
|
|
57
|
+
this.closing = false;
|
|
58
|
+
this.enterPending = true;
|
|
43
59
|
document.addEventListener('click', this.onDocClick, true);
|
|
44
60
|
document.addEventListener('keydown', this.onKeyDown);
|
|
45
61
|
window.addEventListener('resize', this.reposition);
|
|
@@ -48,7 +64,14 @@ export class BsPopover {
|
|
|
48
64
|
}
|
|
49
65
|
else {
|
|
50
66
|
this.needsFocusIn = false;
|
|
51
|
-
this.
|
|
67
|
+
if (this.popupEl && !this.popupEl.hidden && readMotion(this.el, 'bs-popover').ms > 0) {
|
|
68
|
+
// Keep the resolved (possibly flipped) placement while the popup fades out; it is reset when the motion ends.
|
|
69
|
+
this.closing = true;
|
|
70
|
+
this.exitPending = true;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this.el.setAttribute('data-placement', this.placement);
|
|
74
|
+
}
|
|
52
75
|
const active = this.el.shadowRoot?.activeElement || document.activeElement;
|
|
53
76
|
const focusInside = this.el.contains(document.activeElement) && document.activeElement !== this.triggerSlot?.assignedElements()[0] && !this.isInTrigger(document.activeElement);
|
|
54
77
|
if (this.escaped || (focusInside && active))
|
|
@@ -62,10 +85,39 @@ export class BsPopover {
|
|
|
62
85
|
componentWillLoad() {
|
|
63
86
|
this.el.setAttribute('data-placement', this.placement);
|
|
64
87
|
}
|
|
88
|
+
/** Slides toward the trigger it hangs off: a popup above its trigger rises from below, one below drops from above. */
|
|
89
|
+
offset(distance) {
|
|
90
|
+
const above = (this.el.getAttribute('data-placement') ?? this.placement).startsWith('top');
|
|
91
|
+
return `translateY(${above ? distance : -distance}px)`;
|
|
92
|
+
}
|
|
93
|
+
playEnter() {
|
|
94
|
+
const { ms, easing, distance } = readMotion(this.el, 'bs-popover');
|
|
95
|
+
if (ms === 0)
|
|
96
|
+
return;
|
|
97
|
+
play(this.popupEl, [{ opacity: 0, transform: this.offset(distance) }, { opacity: 1, transform: 'none' }], ms, easing);
|
|
98
|
+
}
|
|
99
|
+
playExit() {
|
|
100
|
+
const { ms, easing, distance } = readMotion(this.el, 'bs-popover');
|
|
101
|
+
const run = ++this.motionRun;
|
|
102
|
+
play(this.popupEl, [{ opacity: 1, transform: 'none' }, { opacity: 0, transform: this.offset(distance) }], ms, easing, 'forwards').then(() => {
|
|
103
|
+
if (run !== this.motionRun)
|
|
104
|
+
return;
|
|
105
|
+
this.closing = false;
|
|
106
|
+
this.el.setAttribute('data-placement', this.placement);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
65
109
|
componentDidRender() {
|
|
110
|
+
if (!this.open && this.closing && this.exitPending) {
|
|
111
|
+
this.exitPending = false;
|
|
112
|
+
this.playExit();
|
|
113
|
+
}
|
|
66
114
|
if (!this.open)
|
|
67
115
|
return;
|
|
68
116
|
this.reposition();
|
|
117
|
+
if (this.enterPending) {
|
|
118
|
+
this.enterPending = false;
|
|
119
|
+
this.playEnter();
|
|
120
|
+
}
|
|
69
121
|
if (this.needsFocusIn) {
|
|
70
122
|
this.needsFocusIn = false;
|
|
71
123
|
this.focusPopup();
|
|
@@ -152,7 +204,7 @@ export class BsPopover {
|
|
|
152
204
|
}
|
|
153
205
|
};
|
|
154
206
|
render() {
|
|
155
|
-
return (h("div", { key: '
|
|
207
|
+
return (h("div", { key: '39151f3b9bf56616c0e96cf0c5312d75331d89bb', class: "bs-popover" }, h("div", { key: 'dd05791d8e55c9abf1447761bd3c411b86bc20f4', part: "trigger", class: "bs-popover__trigger", "aria-haspopup": "true", "aria-expanded": String(this.open), "aria-controls": this.popupId, onClick: this.onTriggerClick, onKeyDown: this.onTriggerKeyDown }, h("slot", { key: '5aaf9d25f29381bc005e2424a43e806d01a74ec4', name: "trigger", ref: el => (this.triggerSlot = el) })), h("div", { key: 'bc734ecdcb751ff09bb5ccdc5829035d8fd56f72', part: "popup", id: this.popupId, class: "bs-popover__popup", tabindex: "-1", hidden: !this.open && !this.closing, ref: el => (this.popupEl = el) }, h("slot", { key: 'b10ce9654f2c0f899fded5b13bf0d66f841d3f2e' }))));
|
|
156
208
|
}
|
|
157
209
|
static get is() { return "bs-popover"; }
|
|
158
210
|
static get encapsulation() { return "shadow"; }
|
|
@@ -216,6 +268,11 @@ export class BsPopover {
|
|
|
216
268
|
}
|
|
217
269
|
};
|
|
218
270
|
}
|
|
271
|
+
static get states() {
|
|
272
|
+
return {
|
|
273
|
+
"closing": {}
|
|
274
|
+
};
|
|
275
|
+
}
|
|
219
276
|
static get events() {
|
|
220
277
|
return [{
|
|
221
278
|
"method": "bsOpenChange",
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import { assertCssCustomProperties, assertShadowParts, runAxeCheck } from "../../test/helpers/conventions";
|
|
3
|
+
describe('bs-presence', () => {
|
|
4
|
+
it('hides slotted content until active', async () => {
|
|
5
|
+
const { root } = await render(h("bs-presence", null, h("span", null, "Room 214")));
|
|
6
|
+
expect(root).toEqualAttribute('preset', 'fade');
|
|
7
|
+
expect(root).toEqualAttribute('duration', 'default');
|
|
8
|
+
expect(root).toEqualAttribute('easing', 'standard');
|
|
9
|
+
expect(root).not.toHaveAttribute('active');
|
|
10
|
+
expect(root).toEqualAttribute('aria-hidden', 'true');
|
|
11
|
+
expect(root).toHaveAttribute('inert');
|
|
12
|
+
expect(root).toHaveTextContent('Room 214');
|
|
13
|
+
const clip = root.shadowRoot.querySelector('.bs-presence__clip');
|
|
14
|
+
expect(getComputedStyle(clip).opacity).toBe('0');
|
|
15
|
+
});
|
|
16
|
+
it('shows content when active', async () => {
|
|
17
|
+
const { root } = await render(h("bs-presence", { active: true }, h("span", null, "Room 214")));
|
|
18
|
+
expect(root).toHaveAttribute('active');
|
|
19
|
+
expect(root).not.toHaveAttribute('aria-hidden');
|
|
20
|
+
expect(root).not.toHaveAttribute('inert');
|
|
21
|
+
const clip = root.shadowRoot.querySelector('.bs-presence__clip');
|
|
22
|
+
expect(getComputedStyle(clip).opacity).toBe('1');
|
|
23
|
+
});
|
|
24
|
+
it('applies the preset class', async () => {
|
|
25
|
+
const { root } = await render(h("bs-presence", { preset: "collapse" }));
|
|
26
|
+
expect(root.shadowRoot.querySelector('[part="content"]')).toHaveClass('bs-presence--collapse');
|
|
27
|
+
});
|
|
28
|
+
it('falls back to fade for an unknown preset', async () => {
|
|
29
|
+
const { root } = await render(h("bs-presence", { preset: 'bounce' }));
|
|
30
|
+
expect(root.shadowRoot.querySelector('[part="content"]')).toHaveClass('bs-presence--fade');
|
|
31
|
+
});
|
|
32
|
+
it('exposes its customization surface', async () => {
|
|
33
|
+
const { root } = await render(h("bs-presence", { active: true }));
|
|
34
|
+
assertShadowParts(root.shadowRoot, ['content']);
|
|
35
|
+
assertCssCustomProperties(root, ['--bs-presence-duration', '--bs-presence-easing', '--bs-presence-distance', '--bs-presence-scale']);
|
|
36
|
+
});
|
|
37
|
+
it('maps duration and easing onto the motion tokens', async () => {
|
|
38
|
+
const { root } = await render(h("bs-presence", { duration: "slow", easing: "decelerate" }));
|
|
39
|
+
const style = getComputedStyle(root);
|
|
40
|
+
const tokens = getComputedStyle(document.documentElement);
|
|
41
|
+
expect(style.getPropertyValue('--bs-presence-duration').trim()).toBe(tokens.getPropertyValue('--bs-duration-slow').trim());
|
|
42
|
+
expect(style.getPropertyValue('--bs-presence-easing').trim()).toBe(tokens.getPropertyValue('--bs-easing-decelerate').trim());
|
|
43
|
+
});
|
|
44
|
+
it('emits bsTransitionEnd with the state just reached', async () => {
|
|
45
|
+
const { root } = await render(h("bs-presence", { duration: "instant" }, h("span", null, "Room 214")));
|
|
46
|
+
const events = [];
|
|
47
|
+
root.addEventListener('bsTransitionEnd', (event) => events.push(event.detail));
|
|
48
|
+
root.active = true;
|
|
49
|
+
await new Promise(resolve => setTimeout(resolve, 50));
|
|
50
|
+
expect(events).toEqual([true]);
|
|
51
|
+
});
|
|
52
|
+
it('emits bsTransitionEnd after a non-zero transition', async () => {
|
|
53
|
+
const { root } = await render(h("bs-presence", { duration: "fast" }, h("span", null, "Room 214")));
|
|
54
|
+
const events = [];
|
|
55
|
+
root.addEventListener('bsTransitionEnd', (event) => events.push(event.detail));
|
|
56
|
+
root.active = true;
|
|
57
|
+
await new Promise(resolve => setTimeout(resolve, 250));
|
|
58
|
+
expect(events).toEqual([true]);
|
|
59
|
+
});
|
|
60
|
+
it('passes an axe check while shown', async () => {
|
|
61
|
+
const { root } = await render(h("bs-presence", { active: true }, h("span", null, "Room 214")));
|
|
62
|
+
await runAxeCheck(root);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
--bs-presence-duration: var(--bs-duration-default);
|
|
4
|
+
--bs-presence-easing: var(--bs-easing-standard);
|
|
5
|
+
--bs-presence-distance: var(--bs-spacing-400);
|
|
6
|
+
/* No brandsync token for a unitless scale factor. 0.96 is visible in the playground
|
|
7
|
+
without the content jumping. */
|
|
8
|
+
--bs-presence-scale: 0.96;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([duration='instant']) {
|
|
12
|
+
--bs-presence-duration: var(--bs-duration-instant);
|
|
13
|
+
}
|
|
14
|
+
:host([duration='fast']) {
|
|
15
|
+
--bs-presence-duration: var(--bs-duration-fast);
|
|
16
|
+
}
|
|
17
|
+
:host([duration='default']) {
|
|
18
|
+
--bs-presence-duration: var(--bs-duration-default);
|
|
19
|
+
}
|
|
20
|
+
:host([duration='slow']) {
|
|
21
|
+
--bs-presence-duration: var(--bs-duration-slow);
|
|
22
|
+
}
|
|
23
|
+
:host([duration='slower']) {
|
|
24
|
+
--bs-presence-duration: var(--bs-duration-slower);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([easing='standard']) {
|
|
28
|
+
--bs-presence-easing: var(--bs-easing-standard);
|
|
29
|
+
}
|
|
30
|
+
:host([easing='decelerate']) {
|
|
31
|
+
--bs-presence-easing: var(--bs-easing-decelerate);
|
|
32
|
+
}
|
|
33
|
+
:host([easing='accelerate']) {
|
|
34
|
+
--bs-presence-easing: var(--bs-easing-accelerate);
|
|
35
|
+
}
|
|
36
|
+
:host([easing='linear']) {
|
|
37
|
+
--bs-presence-easing: var(--bs-easing-linear);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
:host {
|
|
42
|
+
--bs-presence-duration: var(--bs-duration-instant);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-presence {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-rows: 1fr;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.bs-presence--closed.bs-presence--collapse {
|
|
52
|
+
grid-template-rows: 0fr;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bs-presence--collapse .bs-presence__clip {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bs-presence__clip {
|
|
60
|
+
min-height: 0;
|
|
61
|
+
opacity: 1;
|
|
62
|
+
transform: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.bs-presence--closed .bs-presence__clip {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bs-presence--slide-up.bs-presence--closed .bs-presence__clip {
|
|
71
|
+
transform: translateY(var(--bs-presence-distance));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bs-presence--slide-down.bs-presence--closed .bs-presence__clip {
|
|
75
|
+
transform: translateY(calc(var(--bs-presence-distance) * -1));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.bs-presence--scale.bs-presence--closed .bs-presence__clip {
|
|
79
|
+
transform: scale(var(--bs-presence-scale));
|
|
80
|
+
}
|