@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,206 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-D3SkQJpw.js';
|
|
2
|
+
|
|
3
|
+
const bsAppSwitcherCss = () => `:host{display:block;box-sizing:border-box;width:var(--bs-app-switcher-width);max-width:100%;--bs-app-switcher-width:360px;--bs-app-switcher-radius:var(--bs-border-radius-150);--bs-app-switcher-bg:var(--bs-surface-base);--bs-app-switcher-border-color:var(--bs-border-default);--bs-app-switcher-shadow:var(--bs-shadow-position-0) var(--bs-shadow-position-100) var(--bs-shadow-blur-200) var(--bs-elevation-higher);--bs-app-switcher-padding:var(--bs-spacing-150);--bs-app-switcher-text-color:var(--bs-text-default);--bs-app-switcher-header-color:var(--bs-text-secondary);--bs-app-switcher-link-color:var(--bs-text-action);--bs-app-switcher-focus-ring:var(--bs-border-neutral-focus)}.bs-app-switcher{display:block;position:relative;--bs-card-bg:var(--bs-app-switcher-bg);--bs-card-radius:var(--bs-app-switcher-radius);--bs-card-padding:0px;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-app-switcher-border-color);--bs-card-shadow:var(--bs-app-switcher-shadow)}.bs-app-switcher__header,.bs-app-switcher__footer{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-spacing-150) var(--bs-spacing-200)}.bs-app-switcher__heading{margin:0;color:var(--bs-app-switcher-text-color);font-family:var(--bs-typography-font-family-heading, Roboto), sans-serif;font-size:var(--bs-fontsize-heading-h6);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h6) * 1px)}.bs-app-switcher__manage,.bs-app-switcher__browse{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);margin:0;padding:0;border:0;border-radius:var(--bs-border-radius-50);background:none;font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;cursor:pointer}.bs-app-switcher__manage{color:var(--bs-app-switcher-text-color);font-size:var(--bs-fontsize-body-sm);font-weight:var(--bs-font-weight-medium);line-height:calc(var(--bs-line-height-body-sm) * 1px);text-decoration:none}.bs-app-switcher__browse{color:var(--bs-app-switcher-link-color);font-size:var(--bs-fontsize-caption-sm);line-height:calc(var(--bs-line-height-caption-sm) * 1px);text-decoration:underline}.bs-app-switcher__manage:hover,.bs-app-switcher__browse:hover{color:var(--bs-text-action-hover)}.bs-app-switcher__manage:focus-visible,.bs-app-switcher__browse:focus-visible{outline:var(--bs-spacing-25) solid var(--bs-app-switcher-focus-ring);outline-offset:var(--bs-spacing-25)}.bs-app-switcher__external{width:var(--bs-spacing-150);height:var(--bs-spacing-150);flex:none}.bs-app-switcher__search{padding:var(--bs-spacing-150) var(--bs-app-switcher-padding) var(--bs-spacing-50)}.bs-app-switcher__search bs-input{width:100%}.bs-app-switcher__body{padding:var(--bs-spacing-50) var(--bs-app-switcher-padding) var(--bs-spacing-150)}.bs-app-switcher__group-header{padding:var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);color:var(--bs-app-switcher-header-color);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;font-size:var(--bs-fontsize-caption-sm);font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-line-height-caption-sm) * 1px);letter-spacing:var(--bs-letter-spacing-wide);text-transform:uppercase}.bs-app-switcher__grid,.bs-app-switcher__list{display:grid;margin:0;padding:0;list-style:none}.bs-app-switcher__grid--grid{grid-template-columns:repeat(3, minmax(0, 1fr));gap:var(--bs-spacing-150)}.bs-app-switcher__grid--compact{grid-template-columns:repeat(4, minmax(0, 1fr));gap:var(--bs-spacing-100)}.bs-app-switcher__section-divider{display:block;width:calc(100% + var(--bs-app-switcher-padding) * 2);margin:0 calc(var(--bs-app-switcher-padding) * -1)}.bs-app-switcher__empty{--bs-empty-state-padding-y:var(--bs-spacing-300)}.bs-app-switcher__skeleton-header{--bs-skeleton-width:var(--bs-sizing-1000);display:block;padding:var(--bs-spacing-100)}.bs-app-switcher__skeleton-tile{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-150);padding:var(--bs-spacing-150)}.bs-app-switcher__skeleton-icon{--bs-skeleton-width:calc(var(--bs-sizing-500) + var(--bs-spacing-50));--bs-skeleton-rect-height:calc(var(--bs-sizing-500) + var(--bs-spacing-50))}.bs-app-switcher__skeleton-label{--bs-skeleton-width:var(--bs-sizing-800)}.bs-app-switcher__live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}`;
|
|
4
|
+
|
|
5
|
+
let uid = 0;
|
|
6
|
+
const svgProps = {
|
|
7
|
+
viewBox: '0 0 24 24',
|
|
8
|
+
fill: 'none',
|
|
9
|
+
stroke: 'currentColor',
|
|
10
|
+
'stroke-width': '1.8',
|
|
11
|
+
'stroke-linecap': 'round',
|
|
12
|
+
'stroke-linejoin': 'round',
|
|
13
|
+
'aria-hidden': 'true',
|
|
14
|
+
};
|
|
15
|
+
const SKELETON_TILES = [0, 1, 2, 3, 4, 5, 6, 7, 8];
|
|
16
|
+
const BsAppSwitcher = class {
|
|
17
|
+
constructor(hostRef) {
|
|
18
|
+
registerInstance(this, hostRef);
|
|
19
|
+
this.bsAppSelect = createEvent(this, "bsAppSelect");
|
|
20
|
+
this.bsManage = createEvent(this, "bsManage");
|
|
21
|
+
this.bsBrowseAll = createEvent(this, "bsBrowseAll");
|
|
22
|
+
this.bsClearSearch = createEvent(this, "bsClearSearch");
|
|
23
|
+
this.bsRetry = createEvent(this, "bsRetry");
|
|
24
|
+
this.bsRequestAccess = createEvent(this, "bsRequestAccess");
|
|
25
|
+
this.bsQueryChange = createEvent(this, "bsQueryChange");
|
|
26
|
+
}
|
|
27
|
+
get el() { return getElement(this); }
|
|
28
|
+
id = `bs-as-${++uid}`;
|
|
29
|
+
inputEl;
|
|
30
|
+
/** The apps the user can open. JS property only (an array cannot be an attribute). */
|
|
31
|
+
apps = [];
|
|
32
|
+
/** Recently opened apps, most recent first. When there are any, the panel shows Recent and All apps. JS property only. */
|
|
33
|
+
recent = [];
|
|
34
|
+
/** `id` of the app you are in: selected background and `aria-current`. */
|
|
35
|
+
currentId;
|
|
36
|
+
/** The search text. Mutable: typing, Escape and "Clear search" update it. */
|
|
37
|
+
query = '';
|
|
38
|
+
/** `loading` shows skeleton tiles, `error` the failure state. */
|
|
39
|
+
status = 'ready';
|
|
40
|
+
/** URL of the Manage link. Without it Manage is a button that only fires `bsManage`. */
|
|
41
|
+
manageHref;
|
|
42
|
+
/** URL of the Browse all link. Without it it is a button that only fires `bsBrowseAll`. */
|
|
43
|
+
browseHref;
|
|
44
|
+
/** Panel heading. */
|
|
45
|
+
heading = 'EG apps';
|
|
46
|
+
/** Text of the Manage link. */
|
|
47
|
+
manageLabel = 'Manage';
|
|
48
|
+
/** Placeholder (and accessible name) of the search field. */
|
|
49
|
+
searchPlaceholder = 'Find an app';
|
|
50
|
+
/** Header of the default group when there are no recent apps. */
|
|
51
|
+
yourAppsLabel = 'Your apps';
|
|
52
|
+
/** Header of the recent group. */
|
|
53
|
+
recentLabel = 'Recent';
|
|
54
|
+
/** Header of the all apps group. */
|
|
55
|
+
allAppsLabel = 'All apps';
|
|
56
|
+
/** Search header with several results ("2 results"). */
|
|
57
|
+
resultsLabel = 'results';
|
|
58
|
+
/** Search header with one result ("1 result"). */
|
|
59
|
+
resultLabel = 'result';
|
|
60
|
+
/** Text of the footer link. */
|
|
61
|
+
browseLabel = 'Browse all EG products';
|
|
62
|
+
/** No-results heading. `{query}` is replaced by the query. */
|
|
63
|
+
noResultsHeading = 'No apps match “{query}”';
|
|
64
|
+
/** No-results description. */
|
|
65
|
+
noResultsDescription = 'Check the spelling, or browse all EG products to find more apps.';
|
|
66
|
+
/** Text of the Clear search button. */
|
|
67
|
+
clearLabel = 'Clear search';
|
|
68
|
+
/** Error heading. */
|
|
69
|
+
errorHeading = 'Couldn’t load your apps';
|
|
70
|
+
/** Error description. */
|
|
71
|
+
errorDescription = 'Check your connection and try again. Your work in the current app is not affected.';
|
|
72
|
+
/** Text of the Try again button. */
|
|
73
|
+
retryLabel = 'Try again';
|
|
74
|
+
/** Empty heading (no apps assigned). */
|
|
75
|
+
emptyHeading = 'No apps assigned yet';
|
|
76
|
+
/** Empty description. */
|
|
77
|
+
emptyDescription = 'Ask your administrator for access, or browse all EG products to see what’s available.';
|
|
78
|
+
/** Text of the Request access button. */
|
|
79
|
+
requestAccessLabel = 'Request access';
|
|
80
|
+
/** Announced while loading. */
|
|
81
|
+
loadingLabel = 'Loading apps…';
|
|
82
|
+
/** Fires when an app is chosen (click or Enter), with the app. Cancelable: `preventDefault()` cancels the originating click. */
|
|
83
|
+
bsAppSelect;
|
|
84
|
+
/** Fires when Manage is pressed. */
|
|
85
|
+
bsManage;
|
|
86
|
+
/** Fires when Browse all is pressed. */
|
|
87
|
+
bsBrowseAll;
|
|
88
|
+
/** Fires when the search is cleared with the Clear search button or Escape. */
|
|
89
|
+
bsClearSearch;
|
|
90
|
+
/** Fires when Try again is pressed. */
|
|
91
|
+
bsRetry;
|
|
92
|
+
/** Fires when Request access is pressed. */
|
|
93
|
+
bsRequestAccess;
|
|
94
|
+
/** Fires when the search text changes through user interaction, with the new text. */
|
|
95
|
+
bsQueryChange;
|
|
96
|
+
get q() {
|
|
97
|
+
return this.query.trim().toLowerCase();
|
|
98
|
+
}
|
|
99
|
+
matches() {
|
|
100
|
+
const q = this.q;
|
|
101
|
+
return this.apps.filter(a => a.name.toLowerCase().includes(q) || (a.description ?? '').toLowerCase().includes(q));
|
|
102
|
+
}
|
|
103
|
+
recentApps() {
|
|
104
|
+
return this.recent
|
|
105
|
+
.map(r => ({ app: this.apps.find(a => a.id === r.appId), recent: r }))
|
|
106
|
+
.filter((x) => !!x.app);
|
|
107
|
+
}
|
|
108
|
+
setQuery(next) {
|
|
109
|
+
this.query = next;
|
|
110
|
+
this.bsQueryChange.emit(next);
|
|
111
|
+
}
|
|
112
|
+
clear() {
|
|
113
|
+
if (!this.query)
|
|
114
|
+
return;
|
|
115
|
+
this.setQuery('');
|
|
116
|
+
this.bsClearSearch.emit();
|
|
117
|
+
this.inputEl?.focus();
|
|
118
|
+
}
|
|
119
|
+
onInput = (ev) => {
|
|
120
|
+
ev.stopPropagation();
|
|
121
|
+
this.setQuery(ev.detail);
|
|
122
|
+
};
|
|
123
|
+
onSearchKeyDown = (ev) => {
|
|
124
|
+
if (ev.key === 'Escape' && this.query) {
|
|
125
|
+
// Clear first; a second Escape (empty field) is left alone so a wrapping popover can close.
|
|
126
|
+
ev.preventDefault();
|
|
127
|
+
ev.stopPropagation();
|
|
128
|
+
this.clear();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
select(app, ev) {
|
|
132
|
+
if (app.disabled)
|
|
133
|
+
return;
|
|
134
|
+
const e = this.bsAppSelect.emit(app);
|
|
135
|
+
if (e.defaultPrevented)
|
|
136
|
+
ev.preventDefault();
|
|
137
|
+
}
|
|
138
|
+
desc(r) {
|
|
139
|
+
return [r.openedLabel, r.companyName].filter(Boolean).join(' · ');
|
|
140
|
+
}
|
|
141
|
+
renderLink(part, cls, href, label, onPress, trailing) {
|
|
142
|
+
const inner = [label, trailing];
|
|
143
|
+
return href ? (h("a", { part: part, class: cls, href: href, onClick: onPress }, inner)) : (h("button", { part: part, class: cls, type: "button", onClick: onPress }, inner));
|
|
144
|
+
}
|
|
145
|
+
renderTile(app, size) {
|
|
146
|
+
return (h("li", null, h("bs-app-tile", { part: "tile", size: size, name: app.name, icon: app.icon, disabled: !!app.disabled, current: app.id === this.currentId, onClick: (ev) => this.select(app, ev) })));
|
|
147
|
+
}
|
|
148
|
+
renderRow(app, description) {
|
|
149
|
+
return (h("li", null, h("bs-app-recent-item", { part: "row", name: app.name, description: description, icon: app.icon, disabled: !!app.disabled, current: app.id === this.currentId, onClick: (ev) => this.select(app, ev) })));
|
|
150
|
+
}
|
|
151
|
+
renderGroup(key, header, list, kind, size) {
|
|
152
|
+
const hid = `${this.id}-h-${key}`;
|
|
153
|
+
return (h("div", { part: "group", class: "bs-app-switcher__group", role: "group", "aria-labelledby": hid }, h("div", { part: "group-header", id: hid, class: "bs-app-switcher__group-header" }, header), h("ul", { part: kind, role: "list", class: { 'bs-app-switcher__grid': kind === 'grid', [`bs-app-switcher__grid--${size}`]: !!size, 'bs-app-switcher__list': kind === 'list' } }, list)));
|
|
154
|
+
}
|
|
155
|
+
renderState(heading, description, intent, icon, action) {
|
|
156
|
+
return (h("bs-empty-state", { part: "empty", class: "bs-app-switcher__empty", heading: heading, description: description, intent: intent }, icon, action));
|
|
157
|
+
}
|
|
158
|
+
renderBody() {
|
|
159
|
+
if (this.status === 'loading') {
|
|
160
|
+
return (h("div", { class: "bs-app-switcher__body", "aria-busy": "true" }, h("bs-skeleton", { class: "bs-app-switcher__skeleton-header" }), h("ul", { role: "list", class: "bs-app-switcher__grid bs-app-switcher__grid--grid" }, SKELETON_TILES.map(() => (h("li", { class: "bs-app-switcher__skeleton-tile" }, h("bs-skeleton", { variant: "rect", class: "bs-app-switcher__skeleton-icon" }), h("bs-skeleton", { class: "bs-app-switcher__skeleton-label" })))))));
|
|
161
|
+
}
|
|
162
|
+
if (this.status === 'error') {
|
|
163
|
+
return (h("div", { class: "bs-app-switcher__body", role: "alert" }, this.renderState(this.errorHeading, this.errorDescription, 'error', h("svg", { slot: "icon", ...svgProps }, h("circle", { cx: "12", cy: "12", r: "9" }), h("path", { d: "M12 7.5v5.5M12 16.2v.1" })), h("bs-button", { slot: "action", variant: "outlined", size: "sm", onClick: () => this.bsRetry.emit() }, this.retryLabel))));
|
|
164
|
+
}
|
|
165
|
+
if (this.apps.length === 0) {
|
|
166
|
+
return (h("div", { class: "bs-app-switcher__body" }, this.renderState(this.emptyHeading, this.emptyDescription, 'default', h("svg", { slot: "icon", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [6, 12, 18].flatMap(x => [6, 12, 18].map(y => h("circle", { cx: x, cy: y, r: "1.5" })))), h("bs-button", { slot: "action", variant: "outlined", size: "sm", onClick: () => this.bsRequestAccess.emit() }, this.requestAccessLabel))));
|
|
167
|
+
}
|
|
168
|
+
return [this.renderSearch(), h("div", { class: "bs-app-switcher__body" }, this.renderApps())];
|
|
169
|
+
}
|
|
170
|
+
renderSearch() {
|
|
171
|
+
return (h("div", { part: "search", class: "bs-app-switcher__search", onKeyDown: this.onSearchKeyDown }, h("bs-input", { ref: el => (this.inputEl = el), type: "search", value: this.query, placeholder: this.searchPlaceholder, onBsInput: this.onInput })));
|
|
172
|
+
}
|
|
173
|
+
renderApps() {
|
|
174
|
+
if (this.q) {
|
|
175
|
+
const found = this.matches();
|
|
176
|
+
if (!found.length) {
|
|
177
|
+
return this.renderState(this.noResultsHeading.replace('{query}', this.query.trim()), this.noResultsDescription, 'default', h("svg", { slot: "icon", ...svgProps }, h("circle", { cx: "11", cy: "11", r: "7" }), h("path", { d: "m20 20-3.5-3.5" })), h("bs-button", { slot: "action", variant: "outlined", size: "sm", onClick: () => this.clear() }, this.clearLabel));
|
|
178
|
+
}
|
|
179
|
+
return this.renderGroup('results', `${found.length} ${found.length === 1 ? this.resultLabel : this.resultsLabel}`, found.map(a => this.renderRow(a, a.description)), 'list');
|
|
180
|
+
}
|
|
181
|
+
const recent = this.recentApps();
|
|
182
|
+
if (recent.length) {
|
|
183
|
+
return [
|
|
184
|
+
this.renderGroup('recent', this.recentLabel, recent.map(({ app, recent: r }) => this.renderRow(app, this.desc(r))), 'list'),
|
|
185
|
+
h("bs-divider", { decorative: true, class: "bs-app-switcher__section-divider" }),
|
|
186
|
+
this.renderGroup('all', this.allAppsLabel, this.apps.map(a => this.renderTile(a, 'compact')), 'grid', 'compact'),
|
|
187
|
+
];
|
|
188
|
+
}
|
|
189
|
+
return this.renderGroup('yours', this.yourAppsLabel, this.apps.map(a => this.renderTile(a, 'grid')), 'grid', 'grid');
|
|
190
|
+
}
|
|
191
|
+
liveText() {
|
|
192
|
+
if (this.status === 'loading')
|
|
193
|
+
return this.loadingLabel;
|
|
194
|
+
if (this.status !== 'ready' || !this.apps.length || !this.q)
|
|
195
|
+
return '';
|
|
196
|
+
const n = this.matches().length;
|
|
197
|
+
return n ? `${n} ${n === 1 ? this.resultLabel : this.resultsLabel}` : this.noResultsHeading.replace('{query}', this.query.trim());
|
|
198
|
+
}
|
|
199
|
+
render() {
|
|
200
|
+
const headingId = `${this.id}-heading`;
|
|
201
|
+
return (h("bs-card", { key: '8257b65b618a40aa48c5e4e6ea464cd0e730b822', part: "panel", class: "bs-app-switcher", surface: "base", role: "region", "aria-labelledby": headingId }, h("div", { key: '99756a738b6954a8f6d6b4dae25115d9ba132be2', part: "header", class: "bs-app-switcher__header" }, h("h2", { key: '61ac20db2636acdf82c495e4aa1afaad047e5241', part: "heading", id: headingId, class: "bs-app-switcher__heading" }, this.heading), this.renderLink('manage', 'bs-app-switcher__manage', this.manageHref, this.manageLabel, () => this.bsManage.emit())), h("bs-divider", { key: 'f68ea80899a97f097dd26a4d4ff311a0c958c7a9', decorative: true }), this.renderBody(), h("bs-divider", { key: '05db5ca0047deb646a0b0bf68afec0663e7b132f', decorative: true }), h("div", { key: 'b32e86a8ba520756bce064384502f4ce71ada4ba', part: "footer", class: "bs-app-switcher__footer" }, this.renderLink('browse', 'bs-app-switcher__browse', this.browseHref, this.browseLabel, () => this.bsBrowseAll.emit(), h("svg", { class: "bs-app-switcher__external", ...svgProps }, h("path", { d: "M7 17 17 7M8 7h9v9" })))), h("span", { key: '1de45b23ef4e79e1b7af1f438304260f264e0489', class: "bs-app-switcher__live", role: "status" }, this.liveText())));
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
BsAppSwitcher.style = bsAppSwitcherCss();
|
|
205
|
+
|
|
206
|
+
export { BsAppSwitcher as bs_app_switcher };
|
|
@@ -37,7 +37,7 @@ const BsAttachmentList = class {
|
|
|
37
37
|
this.canScrollRight = row.scrollWidth - row.clientWidth - row.scrollLeft > 1;
|
|
38
38
|
};
|
|
39
39
|
render() {
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: 'c01982051a8914fcaede14e787f362a4f82a317d', class: "bs-attachment-list" }, h("div", { key: '9475c8aa5dec12ed9356f72326bdc4ab215576d5', part: "row", class: "bs-attachment-list__row", ref: el => (this.row = el), onScroll: this.onScroll, role: "group", "aria-label": this.ariaLabel, tabIndex: 0 }, h("slot", { key: '85db80cf4422334d291377e5cc7390f69e014676', onSlotchange: this.onSlotchange })), this.canScrollRight && h("div", { key: 'a8659966ec3fd0a128a9e4b5d40ff7121b919172', part: "fade", class: "bs-attachment-list__fade", "aria-hidden": "true" })));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
BsAttachmentList.style = bsAttachmentListCss();
|
|
@@ -30,7 +30,7 @@ const BsAttachment = class {
|
|
|
30
30
|
};
|
|
31
31
|
render() {
|
|
32
32
|
const isImage = this.type === 'image';
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '397e7570d4765a1e4dfb410666c0fb0b78c06686', class: { 'bs-attachment': true, 'bs-attachment--loading': this.loading }, "aria-busy": this.loading ? 'true' : 'false' }, isImage ? this.renderImage() : this.renderCard(), this.removable && (h("bs-icon-button", { key: '738b5e3dbf1e2b0856bb20dc5eb3027d1cd87ef5', part: "remove", class: "bs-attachment__remove", size: "xs", variant: "neutral", ariaLabel: `${this.removeLabel}: ${this.fileName}`, onClick: this.onRemoveClick }, h(CloseIcon, { key: 'd21c9d3832f170c5af2d01e2d76b83be3acd3da7' })))));
|
|
34
34
|
}
|
|
35
35
|
renderImage() {
|
|
36
36
|
return (h("div", { part: "thumbnail", class: "bs-attachment__thumbnail" }, h("img", { class: "bs-attachment__image", src: this.imageSrc, alt: this.imageAlt }), this.loading && h(Spinner, { class: "bs-attachment__spinner bs-attachment__spinner--overlay", size: 16, label: this.uploadingLabel })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-D3SkQJpw.js';
|
|
2
2
|
|
|
3
|
-
const bsAvatarCss = () => `:host{display:inline-flex;vertical-align:middle;--bs-avatar-size-xs:24px;--bs-avatar-size-sm:32px;--bs-avatar-size-md:44px;--bs-avatar-size-lg:64px;--bs-avatar-size-xl:96px;--bs-avatar-size-xxl:128px;--bs-avatar-radius:var(--bs-border-radius-full);--bs-avatar-border-width:var(--bs-border-width-thin);--bs-avatar-border-width-xxl:1.333px}.bs-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--bs-avatar-radius);border:var(--bs-avatar-border-width) solid var(--bs-avatar-border-primary);background:var(--bs-avatar-bg-dafault);flex-shrink:0;user-select:none;-webkit-user-select:none}.bs-avatar--xs{width:var(--bs-avatar-size-xs);height:var(--bs-avatar-size-xs)}.bs-avatar--sm{width:var(--bs-avatar-size-sm);height:var(--bs-avatar-size-sm)}.bs-avatar--md{width:var(--bs-avatar-size-md);height:var(--bs-avatar-size-md)}.bs-avatar--lg{width:var(--bs-avatar-size-lg);height:var(--bs-avatar-size-lg)}.bs-avatar--xl{width:var(--bs-avatar-size-xl);height:var(--bs-avatar-size-xl)}.bs-avatar--xxl{width:var(--bs-avatar-size-xxl);height:var(--bs-avatar-size-xxl);border-width:var(--bs-avatar-border-width-xxl)}.bs-avatar__image{display:block;width:100%;height:100%;object-fit:cover}.bs-avatar__icon{width:60%;height:60%;color:var(--bs-avatar-icon-primary)}.bs-avatar__initials{color:var(--bs-avatar-text-default);font-family:var(--bs-typography-font-family-body);font-weight:var(--bs-font-weight-medium);text-align:center;white-space:nowrap}.bs-avatar--xs .bs-avatar__initials,.bs-avatar--sm .bs-avatar__initials{font-size:var(--bs-fontsize-caption-sm);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-avatar--md .bs-avatar__initials{font-family:var(--bs-typography-font-family-heading);font-weight:var(--bs-font-weight-bold);font-size:var(--bs-fontsize-heading-h6);line-height:calc(var(--bs-line-height-heading-h6) * 1px)}.bs-avatar--lg .bs-avatar__initials{font-size:var(--bs-fontsize-body-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-avatar--xl .bs-avatar__initials,.bs-avatar--xxl .bs-avatar__initials{font-family:var(--bs-typography-font-family-heading);font-weight:var(--bs-font-weight-bold);font-size:var(--bs-fontsize-heading-h4);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}:host(:hover:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-hover);border-color:var(--bs-avatar-border-hover)}:host(:active:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-pressed);border-color:var(--bs-avatar-border-pressed)}:host(:focus-visible:not([disabled])){outline:none}:host(:focus-visible:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-focused);border-color:var(--bs-avatar-border-focused);box-shadow:0 0 0 3px var(--bs-avatar-border-focus)}:host([disabled]){opacity:0.5}`;
|
|
3
|
+
const bsAvatarCss = () => `:host{display:inline-flex;vertical-align:middle;--bs-avatar-size-xs:24px;--bs-avatar-size-sm:32px;--bs-avatar-size-md:44px;--bs-avatar-size-lg:64px;--bs-avatar-size-xl:96px;--bs-avatar-size-xxl:128px;--bs-avatar-radius:var(--bs-border-radius-full);--bs-avatar-border-width:var(--bs-border-width-thin);--bs-avatar-border-width-xxl:1.333px}.bs-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--bs-avatar-radius);border:var(--bs-avatar-border-width) solid var(--bs-avatar-border-primary);background:var(--bs-avatar-bg-dafault);flex-shrink:0;user-select:none;-webkit-user-select:none}.bs-avatar--xs{width:var(--bs-avatar-size-xs);height:var(--bs-avatar-size-xs)}.bs-avatar--sm{width:var(--bs-avatar-size-sm);height:var(--bs-avatar-size-sm)}.bs-avatar--md{width:var(--bs-avatar-size-md);height:var(--bs-avatar-size-md)}.bs-avatar--lg{width:var(--bs-avatar-size-lg);height:var(--bs-avatar-size-lg)}.bs-avatar--xl{width:var(--bs-avatar-size-xl);height:var(--bs-avatar-size-xl)}.bs-avatar--xxl{width:var(--bs-avatar-size-xxl);height:var(--bs-avatar-size-xxl);border-width:var(--bs-avatar-border-width-xxl)}.bs-avatar__image{display:block;width:100%;height:100%;object-fit:cover}.bs-avatar__icon{width:60%;height:60%;color:var(--bs-avatar-icon-primary)}.bs-avatar__initials{color:var(--bs-avatar-text-default);font-family:var(--bs-typography-font-family-body, Roboto), sans-serif;font-weight:var(--bs-font-weight-medium);text-align:center;white-space:nowrap}.bs-avatar--xs .bs-avatar__initials,.bs-avatar--sm .bs-avatar__initials{font-size:var(--bs-fontsize-caption-sm);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-avatar--md .bs-avatar__initials{font-family:var(--bs-typography-font-family-heading, Roboto), sans-serif;font-weight:var(--bs-font-weight-bold);font-size:var(--bs-fontsize-heading-h6);line-height:calc(var(--bs-line-height-heading-h6) * 1px)}.bs-avatar--lg .bs-avatar__initials{font-size:var(--bs-fontsize-body-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-avatar--xl .bs-avatar__initials,.bs-avatar--xxl .bs-avatar__initials{font-family:var(--bs-typography-font-family-heading, Roboto), sans-serif;font-weight:var(--bs-font-weight-bold);font-size:var(--bs-fontsize-heading-h4);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}:host(:hover:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-hover);border-color:var(--bs-avatar-border-hover)}:host(:active:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-pressed);border-color:var(--bs-avatar-border-pressed)}:host(:focus-visible:not([disabled])){outline:none}:host(:focus-visible:not([disabled])) .bs-avatar{background:var(--bs-avatar-bg-focused);border-color:var(--bs-avatar-border-focused);box-shadow:0 0 0 3px var(--bs-avatar-border-focus)}:host([disabled]){opacity:0.5}`;
|
|
4
4
|
|
|
5
5
|
const BsAvatar = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ const BsBadge = class {
|
|
|
9
9
|
/** Maps directly to the brandsync-tokens `--bs-badge-bg-*` / `--bs-badge-text-*` sets. */
|
|
10
10
|
variant = 'default';
|
|
11
11
|
render() {
|
|
12
|
-
return (h("span", { key: '
|
|
12
|
+
return (h("span", { key: 'e81df8a115da1e47eec003565f06f7d8f2bce24a', part: "container", class: `bs-badge bs-badge--${this.variant}` }, h("slot", { key: '112b68af29d688640aace037db5f9d786956d264' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
BsBadge.style = bsBadgeCss();
|
|
@@ -56,7 +56,7 @@ const BsBreadcrumbOverflow = class {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '8b47ed9e6346d813bf2db5a510151027d6f2a523', role: "listitem" }, h("span", { key: '7eb3b681a555c1bf07b16c34c8e7364384ecb3d2', part: "separator", class: "bs-breadcrumb-overflow__separator", "aria-hidden": "true" }, h(CaretRightIcon, { key: '4bd4ced37d1a24b37f507b53b7b6c0fe8f577de7' })), h("span", { key: '03f6ff9300d53bcbddf6d8fb57ed08a85fe9e67b', class: "bs-breadcrumb-overflow__wrapper" }, h("button", { key: '9b0fb0cfc28ccffbfe54dffc8a5612d1c83b27f5', type: "button", part: "ellipsis", class: "bs-breadcrumb-overflow__ellipsis", "aria-haspopup": "menu", "aria-expanded": String(this.open), "aria-label": this.overflowLabel, onClick: this.onEllipsisToggle }, h(DotsThreeIcon, { key: '932b86a682c495b1acc47cd703294c5b2dbf3c03' })), this.open && this.items.length > 0 && (h("bs-menu", { key: '809bbfe99843c3e531ee2e620a5adca4c66360d9', part: "menu", class: "bs-breadcrumb-overflow__menu" }, this.items.map(item => item.href ? (h("a", { part: "link", class: "bs-breadcrumb-overflow__link", href: item.href, onClick: this.onItemClick(item.href) }, item.label)) : (h("span", { part: "link", class: "bs-breadcrumb-overflow__link" }, item.label))))))));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
const CaretRightIcon = () => (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M6 3L11 8L6 13", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -39,7 +39,7 @@ const BsBreadcrumb = class {
|
|
|
39
39
|
ev.preventDefault();
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'b6d483d8dd99cda45b49bfc488aeec3514e3b234', role: "listitem" }, h("span", { key: '2dd5b9265590a43403f22830d34c1c7c4815927e', part: "separator", class: "bs-breadcrumb__separator", "aria-hidden": "true" }, h(CaretRightIcon, { key: '7178d1170e8fbdde1281514ac6916bf1e7561e7b' })), this.current ? (h("span", { part: "current", class: "bs-breadcrumb__current", "aria-current": "page" }, h("slot", null))) : this.href ? (h("a", { part: "link", class: "bs-breadcrumb__link", href: this.href, onClick: this.onLinkClick }, h("slot", null))) : (h("span", { part: "link", class: "bs-breadcrumb__link" }, h("slot", null)))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
const CaretRightIcon = () => (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M6 3L11 8L6 13", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
@@ -34,7 +34,7 @@ const BsBreadcrumbs = class {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("nav", { key: '
|
|
37
|
+
return (h("nav", { key: '6df966694de1f681033e8705c536c983faa1155c', "aria-label": this.label }, h("ol", { key: '61d5e7cf39bbee670f49bbc8340df75057919431', part: "list", class: "bs-breadcrumbs__list" }, h("slot", { key: '12ac9fccdb05ecf029e8eeaaa98065272945341b', onSlotchange: this.onSlotChange }))));
|
|
38
38
|
}
|
|
39
39
|
static get watchers() { return {
|
|
40
40
|
"size": [{
|
|
@@ -11,7 +11,7 @@ const BsButtonSkeleton = class {
|
|
|
11
11
|
/** Accessible name announced for the loading placeholder. */
|
|
12
12
|
loadingLabel = 'Loading';
|
|
13
13
|
render() {
|
|
14
|
-
return h("span", { key: '
|
|
14
|
+
return h("span", { key: 'c29256165abc3f5de50cf1f087f0ad161e33bb76', part: "container", class: `bs-button-skeleton bs-button-skeleton--${this.size}`, role: "status", "aria-label": this.loadingLabel });
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
BsButtonSkeleton.style = bsButtonSkeletonCss();
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, H as Host } from './index-D3SkQJpw.js';
|
|
2
|
+
|
|
3
|
+
const bsButtonCss = () => `:host{display:inline-block;width:var(--bs-button-width);--bs-button-width:auto;--bs-button-subtle-color:var(--bs-color-neutral-default);--bs-button-height-sm:var(--bs-spacing-500);--bs-button-height-md:var(--bs-spacing-600);--bs-button-height-lg:var(--bs-spacing-700);--bs-button-radius:var(--bs-border-radius-100);--bs-button-padding-x-sm:var(--bs-spacing-300);--bs-button-padding-x-icon-side:var(--bs-spacing-150);--bs-button-padding-x-label-side:var(--bs-spacing-250);--bs-button-error-default:var(--bs-color-error-default);--bs-button-error-hover:var(--bs-color-error-hover);--bs-button-error-focus:var(--bs-border-error-focus);--bs-button-error-pressed:var(--bs-color-error-pressed);--bs-button-error-disabled:var(--bs-surface-action-disabled);--bs-button-success-default:var(--bs-color-success-default);--bs-button-success-hover:var(--bs-color-success-hover);--bs-button-success-focus:var(--bs-border-success-focus);--bs-button-success-pressed:var(--bs-color-success-pressed);--bs-button-success-disabled:var(--bs-surface-action-disabled);--bs-button-warning-default:var(--bs-color-warning-default);--bs-button-warning-hover:var(--bs-color-warning-hover);--bs-button-warning-focus:var(--bs-border-warning-focus);--bs-button-warning-pressed:var(--bs-color-warning-pressed);--bs-button-warning-disabled:var(--bs-surface-action-disabled);--bs-button-info-default:var(--bs-color-info-default);--bs-button-info-hover:var(--bs-color-info-hover);--bs-button-info-focus:var(--bs-border-info-focus);--bs-button-info-pressed:var(--bs-color-info-pressed);--bs-button-info-disabled:var(--bs-surface-action-disabled);--bs-button-subtle-hover:var(--bs-color-neutral-container);--bs-button-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-button-subtle-focus:var(--bs-border-primary-focus);--bs-button-neutral-border:var(--bs-border-neutral-container);--bs-button-neutral-border-hover:var(--bs-border-neutral-container-hover);--bs-button-neutral-border-pressed:var(--bs-border-neutral-container-pressed);--bs-button-neutral-hover:var(--bs-color-neutral-container-hover);--bs-button-neutral-pressed:var(--bs-color-neutral-container-pressed);--bs-button-outlined-border:var(--bs-color-primary-default);--bs-button-outlined-border-hover:var(--bs-color-primary-hover);--bs-button-outlined-border-pressed:var(--bs-color-primary-pressed);--bs-button-outlined-text-hover:var(--bs-text-action-hover);--bs-button-outlined-focus:var(--bs-border-primary-focus);--bs-button-outlined-container:var(--bs-color-primary-container)}.bs-button{width:100%;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;border-radius:var(--bs-button-radius);font-family:inherit;font-weight:var(--bs-font-weight-regular);cursor:pointer;position:relative;transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease)}.bs-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-button:disabled{cursor:not-allowed}.bs-button--sm{height:var(--bs-button-height-sm);padding:0 var(--bs-button-padding-x-sm);font-size:var(--bs-font-size-sm)}.bs-button--md{height:var(--bs-button-height-md);padding:0 var(--bs-spacing-200);font-size:var(--bs-font-size-md)}.bs-button--lg{height:var(--bs-button-height-lg);padding:0 var(--bs-spacing-500);font-size:var(--bs-font-size-lg)}.bs-button--primary{background:var(--bs-button-primary-default);color:var(--bs-text-on-action)}.bs-button--primary:hover:not(:disabled){background:var(--bs-button-primary-hover)}.bs-button--primary:active:not(:disabled){background:var(--bs-button-primary-pressed)}.bs-button--primary:disabled{background:var(--bs-button-primary-disabled);color:var(--bs-text-on-disabled)}.bs-button--neutral{background:var(--bs-button-neutral-container);color:var(--bs-text-default);border:1px solid var(--bs-button-neutral-border)}.bs-button--neutral:hover:not(:disabled){background:var(--bs-button-neutral-hover);border-color:var(--bs-button-neutral-border-hover)}.bs-button--neutral:active:not(:disabled){background:var(--bs-button-neutral-pressed);border-color:var(--bs-button-neutral-border-pressed)}.bs-button--neutral:disabled{background:var(--bs-button-neutral-disabled);color:var(--bs-text-on-disabled);border-color:var(--bs-button-neutral-border)}.bs-button--error{background:var(--bs-button-error-default);color:var(--bs-text-on-action)}.bs-button--error:hover:not(:disabled){background:var(--bs-button-error-hover)}.bs-button--error:active:not(:disabled){background:var(--bs-button-error-pressed)}.bs-button--error:disabled{background:var(--bs-button-error-disabled);color:var(--bs-text-on-disabled)}.bs-button--error:focus-visible{outline-color:var(--bs-button-error-focus)}.bs-button--success{background:var(--bs-button-success-default);color:var(--bs-text-on-action)}.bs-button--success:hover:not(:disabled){background:var(--bs-button-success-hover)}.bs-button--success:active:not(:disabled){background:var(--bs-button-success-pressed)}.bs-button--success:disabled{background:var(--bs-button-success-disabled);color:var(--bs-text-on-disabled)}.bs-button--success:focus-visible{outline-color:var(--bs-button-success-focus)}.bs-button--warning{background:var(--bs-button-warning-default);color:var(--bs-text-on-action)}.bs-button--warning:hover:not(:disabled){background:var(--bs-button-warning-hover)}.bs-button--warning:active:not(:disabled){background:var(--bs-button-warning-pressed)}.bs-button--warning:disabled{background:var(--bs-button-warning-disabled);color:var(--bs-text-on-disabled)}.bs-button--warning:focus-visible{outline-color:var(--bs-button-warning-focus)}.bs-button--info{background:var(--bs-button-info-default);color:var(--bs-text-on-action)}.bs-button--info:hover:not(:disabled){background:var(--bs-button-info-hover)}.bs-button--info:active:not(:disabled){background:var(--bs-button-info-pressed)}.bs-button--info:disabled{background:var(--bs-button-info-disabled);color:var(--bs-text-on-disabled)}.bs-button--info:focus-visible{outline-color:var(--bs-button-info-focus)}.bs-button--subtle{background:transparent;color:var(--bs-button-subtle-color)}.bs-button--subtle:hover:not(:disabled){background:var(--bs-button-subtle-hover)}.bs-button--subtle:active:not(:disabled){background:var(--bs-button-subtle-pressed)}.bs-button--subtle:disabled{background:transparent;color:var(--bs-text-on-disabled)}.bs-button--subtle:focus-visible{outline-color:var(--bs-button-subtle-focus);background:var(--bs-button-subtle-hover)}.bs-button--outlined{background:transparent;color:var(--bs-color-primary-default);border:1px solid var(--bs-button-outlined-border)}.bs-button--outlined:hover:not(:disabled){background:var(--bs-button-outlined-container);border-color:var(--bs-button-outlined-border-hover);color:var(--bs-button-outlined-text-hover)}.bs-button--outlined:active:not(:disabled){background:var(--bs-button-outlined-container);color:var(--bs-button-outlined-text-hover);border-color:var(--bs-button-outlined-border-pressed)}.bs-button--outlined:disabled{opacity:var(--bs-opacity-disabled);cursor:not-allowed}.bs-button--outlined:focus-visible{outline-color:var(--bs-button-outlined-focus)}.bs-button__icon--visible{margin-inline-end:var(--bs-spacing-50)}.bs-button__end-icon--visible{margin-inline-start:var(--bs-spacing-50)}.bs-button__icon ::slotted(*),.bs-button__end-icon ::slotted(*){display:block;width:1em;height:1em}.bs-button--icon-only{padding:0;aspect-ratio:1 / 1}.bs-button--icon-only .bs-button__icon--visible{margin-inline-end:0}.bs-button--icon-only .bs-button__end-icon--visible{margin-inline-start:0}.bs-button--has-icon:not(.bs-button--has-end-icon){padding-inline-start:var(--bs-button-padding-x-icon-side);padding-inline-end:var(--bs-button-padding-x-label-side)}.bs-button--has-end-icon:not(.bs-button--has-icon){padding-inline-start:var(--bs-button-padding-x-label-side);padding-inline-end:var(--bs-button-padding-x-icon-side)}.bs-button--has-icon.bs-button--has-end-icon{padding-inline-start:var(--bs-button-padding-x-icon-side);padding-inline-end:var(--bs-button-padding-x-icon-side)}@media (forced-colors: active){.bs-button{border:1px solid ButtonText}.bs-button:disabled{border-color:GrayText;color:GrayText}.bs-button:focus-visible{outline:2px solid Highlight;outline-offset:2px}}`;
|
|
4
|
+
|
|
5
|
+
const BsButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
9
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
13
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
get el() { return getElement(this); }
|
|
17
|
+
internals;
|
|
18
|
+
/**
|
|
19
|
+
* Visual style. Maps directly to the brandsync-tokens `--bs-button-*` semantic set.
|
|
20
|
+
* `error` is for destructive/irreversible actions per BrandSync guidance, not a stronger
|
|
21
|
+
* emphasis alternative to `primary`.
|
|
22
|
+
*/
|
|
23
|
+
variant = 'primary';
|
|
24
|
+
/** Sizing scale. */
|
|
25
|
+
size = 'md';
|
|
26
|
+
/** Disables the button and applies the disabled token set. */
|
|
27
|
+
disabled = false;
|
|
28
|
+
/** Button type. `submit` submits the surrounding `<form>` (via `requestSubmit()`, so validation
|
|
29
|
+
* runs); `reset` resets it; `button` (default) does nothing on its own. */
|
|
30
|
+
type = 'button';
|
|
31
|
+
/**
|
|
32
|
+
* Accessible name for the button. Required for icon-only usage (no visible label text via the
|
|
33
|
+
* default slot) so screen readers still announce what the button does. Stencil reflects this
|
|
34
|
+
* camelCase prop to the `aria-label` HTML attribute automatically.
|
|
35
|
+
*/
|
|
36
|
+
ariaLabel = null;
|
|
37
|
+
/** Tracks whether the `icon` slot has assigned content, so the icon/label gap only
|
|
38
|
+
* applies when there's actually an icon. */
|
|
39
|
+
hasIcon = false;
|
|
40
|
+
/** Tracks whether the `end-icon` slot has assigned content, so the icon/label gap only
|
|
41
|
+
* applies when there's actually a trailing icon. */
|
|
42
|
+
hasEndIcon = false;
|
|
43
|
+
/**
|
|
44
|
+
* Tracks whether the default (label) slot has assigned content, so an icon-only button can be
|
|
45
|
+
* styled/sized differently (see `bs-button--icon-only`).
|
|
46
|
+
*
|
|
47
|
+
* Known edge case (not fixed, same simplification `hasIcon`/similar flags elsewhere in this
|
|
48
|
+
* codebase already make): a default slot containing only whitespace (e.g. a lone space text
|
|
49
|
+
* node) still counts as `hasLabel = true`, since checking for assigned nodes doesn't
|
|
50
|
+
* distinguish whitespace-only text nodes from real content.
|
|
51
|
+
*/
|
|
52
|
+
hasLabel = false;
|
|
53
|
+
/**
|
|
54
|
+
* Computes the initial `hasIcon`/`hasEndIcon`/`hasLabel` state directly from the host's light
|
|
55
|
+
* DOM children, before first render.
|
|
56
|
+
*
|
|
57
|
+
* This can't be left to the `slotchange` handlers below alone: `slotchange` only fires when a
|
|
58
|
+
* slot's *assigned nodes* change, and a slot that starts out with zero assigned nodes and stays
|
|
59
|
+
* that way never fires it (nothing changed). Relying on `slotchange` alone left an icon-only
|
|
60
|
+
* button (default slot empty from the start) permanently stuck on its initial `hasLabel`
|
|
61
|
+
* default, so `bs-button--icon-only` never applied.
|
|
62
|
+
*/
|
|
63
|
+
componentWillLoad() {
|
|
64
|
+
this.hasIcon = this.hasSlottedContent('icon');
|
|
65
|
+
this.hasEndIcon = this.hasSlottedContent('end-icon');
|
|
66
|
+
this.hasLabel = this.hasSlottedContent(null);
|
|
67
|
+
}
|
|
68
|
+
hasSlottedContent(slotName) {
|
|
69
|
+
return Array.from(this.el.childNodes).some(node => {
|
|
70
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
71
|
+
return node.getAttribute('slot') === slotName;
|
|
72
|
+
}
|
|
73
|
+
// Only elements can carry a `slot` attribute -- any other node type (text, comments) can
|
|
74
|
+
// only ever be assigned to the default slot.
|
|
75
|
+
return slotName === null;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
onIconSlotchange = (ev) => {
|
|
79
|
+
this.hasIcon = ev.target.assignedNodes().length > 0;
|
|
80
|
+
};
|
|
81
|
+
onEndIconSlotchange = (ev) => {
|
|
82
|
+
this.hasEndIcon = ev.target.assignedNodes().length > 0;
|
|
83
|
+
};
|
|
84
|
+
onLabelSlotchange = (ev) => {
|
|
85
|
+
this.hasLabel = ev.target.assignedNodes().length > 0;
|
|
86
|
+
};
|
|
87
|
+
onClick = () => {
|
|
88
|
+
const form = this.internals?.form;
|
|
89
|
+
if (!form || this.disabled)
|
|
90
|
+
return;
|
|
91
|
+
if (this.type === 'submit')
|
|
92
|
+
form.requestSubmit();
|
|
93
|
+
else if (this.type === 'reset')
|
|
94
|
+
form.reset();
|
|
95
|
+
};
|
|
96
|
+
render() {
|
|
97
|
+
const iconOnly = (this.hasIcon || this.hasEndIcon) && !this.hasLabel;
|
|
98
|
+
return (h("button", { key: '498371cb1db28a17e668275a5e3dab6a093ce932', class: `bs-button bs-button--${this.variant} bs-button--${this.size} ${iconOnly ? 'bs-button--icon-only' : ''} ${this.hasIcon && !iconOnly ? 'bs-button--has-icon' : ''} ${this.hasEndIcon && !iconOnly ? 'bs-button--has-end-icon' : ''}`, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabel, onClick: this.onClick }, h("bs-ripple", { key: '1d985ad61540f85cc47332f876eda6efcef5b87a', part: "ripple", centered: iconOnly, disabled: this.disabled }), h("span", { key: 'fbf28591ab62369e0a1a7b32da670cd350aee122', part: "icon", class: `bs-button__icon ${this.hasIcon ? 'bs-button__icon--visible' : ''}` }, h("slot", { key: '294540047c366c6f8576c8123f64f55c712d6335', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '8536c25dab900331235dba703350ff57fd7c8ff6', part: "label", class: "bs-button__label" }, h("slot", { key: '59cdb689925c55ec90c34a016e586f5be95f38e4', onSlotchange: this.onLabelSlotchange })), h("span", { key: '0976f3628408ccccec017b8e09b5a41016f0b516', part: "end-icon", class: `bs-button__end-icon ${this.hasEndIcon ? 'bs-button__end-icon--visible' : ''}` }, h("slot", { key: '40a1f6d3faf5f4ae39e9da0aa0027207afe3e7a1', name: "end-icon", onSlotchange: this.onEndIconSlotchange }))));
|
|
99
|
+
}
|
|
100
|
+
static get delegatesFocus() { return true; }
|
|
101
|
+
static get formAssociated() { return true; }
|
|
102
|
+
};
|
|
103
|
+
BsButton.style = bsButtonCss();
|
|
104
|
+
|
|
105
|
+
const bsRippleCss = () => `:host{position:absolute;inset:0;display:block;border-radius:inherit;overflow:hidden;pointer-events:none;--bs-ripple-color:currentColor;--bs-ripple-opacity:0.24;--bs-ripple-duration:var(--bs-duration-slower);--bs-ripple-easing:var(--bs-easing-decelerate)}.bs-ripple{position:absolute;inset:0;overflow:hidden;border-radius:inherit}.bs-ripple__circle{position:absolute;border-radius:50%;background:var(--bs-ripple-color);opacity:0;transform:scale(0);pointer-events:none}`;
|
|
106
|
+
|
|
107
|
+
const BsRipple = class {
|
|
108
|
+
constructor(hostRef) {
|
|
109
|
+
registerInstance(this, hostRef);
|
|
110
|
+
}
|
|
111
|
+
get el() { return getElement(this); }
|
|
112
|
+
/** Always start the ripple from the centre instead of the press point. Use it for round or icon-only controls. */
|
|
113
|
+
centered = false;
|
|
114
|
+
/** Turns the ripple off. A disabled parent (`<button disabled>`) also stops it. */
|
|
115
|
+
disabled = false;
|
|
116
|
+
/**
|
|
117
|
+
* CSS selector of the element to listen on, found with `closest()` from the ripple (so it stays inside
|
|
118
|
+
* the same shadow tree). By default the ripple listens on its parent. Use it when the pressable element
|
|
119
|
+
* is bigger than the ripple's own parent, e.g. a switch whose ripple sits on the knob but whose whole
|
|
120
|
+
* `<label>` is the press target.
|
|
121
|
+
*/
|
|
122
|
+
triggerSelector;
|
|
123
|
+
onTriggerChange() {
|
|
124
|
+
this.bind();
|
|
125
|
+
}
|
|
126
|
+
surface;
|
|
127
|
+
target;
|
|
128
|
+
connectedCallback() {
|
|
129
|
+
this.bind();
|
|
130
|
+
}
|
|
131
|
+
componentDidLoad() {
|
|
132
|
+
// Props are set by now, so a `triggerSelector` is resolved against the final DOM.
|
|
133
|
+
this.bind();
|
|
134
|
+
}
|
|
135
|
+
disconnectedCallback() {
|
|
136
|
+
this.unbind();
|
|
137
|
+
}
|
|
138
|
+
bind() {
|
|
139
|
+
this.unbind();
|
|
140
|
+
const target = (this.triggerSelector && this.el.closest(this.triggerSelector)) || this.el.parentElement || this.el.getRootNode().host;
|
|
141
|
+
this.target = target;
|
|
142
|
+
this.target?.addEventListener('pointerdown', this.onPointerDown);
|
|
143
|
+
}
|
|
144
|
+
unbind() {
|
|
145
|
+
this.target?.removeEventListener('pointerdown', this.onPointerDown);
|
|
146
|
+
this.target = undefined;
|
|
147
|
+
}
|
|
148
|
+
onPointerDown = (ev) => {
|
|
149
|
+
if (this.disabled || ev.button !== 0 || this.target?.disabled)
|
|
150
|
+
return;
|
|
151
|
+
const surface = this.surface;
|
|
152
|
+
if (!surface)
|
|
153
|
+
return;
|
|
154
|
+
const style = getComputedStyle(this.el);
|
|
155
|
+
const duration = this.toMs(style.getPropertyValue('--bs-ripple-duration'));
|
|
156
|
+
if (duration === 0)
|
|
157
|
+
return;
|
|
158
|
+
const rect = this.el.getBoundingClientRect();
|
|
159
|
+
const x = this.centered ? rect.width / 2 : ev.clientX - rect.left;
|
|
160
|
+
const y = this.centered ? rect.height / 2 : ev.clientY - rect.top;
|
|
161
|
+
// Radius that reaches the farthest corner, so the ripple always covers the whole surface.
|
|
162
|
+
const radius = Math.hypot(Math.max(x, rect.width - x), Math.max(y, rect.height - y));
|
|
163
|
+
const circle = document.createElement('span');
|
|
164
|
+
circle.className = 'bs-ripple__circle';
|
|
165
|
+
circle.style.left = `${x - radius}px`;
|
|
166
|
+
circle.style.top = `${y - radius}px`;
|
|
167
|
+
circle.style.width = circle.style.height = `${radius * 2}px`;
|
|
168
|
+
surface.appendChild(circle);
|
|
169
|
+
const opacity = style.getPropertyValue('--bs-ripple-opacity').trim() || '0.24';
|
|
170
|
+
const animation = circle.animate([
|
|
171
|
+
{ transform: 'scale(0)', opacity },
|
|
172
|
+
{ transform: 'scale(1)', opacity: 0 },
|
|
173
|
+
], { duration, easing: style.getPropertyValue('--bs-ripple-easing').trim() || 'ease-out' });
|
|
174
|
+
animation.onfinish = animation.oncancel = () => circle.remove();
|
|
175
|
+
};
|
|
176
|
+
toMs(value) {
|
|
177
|
+
const v = value.trim();
|
|
178
|
+
if (v.endsWith('ms'))
|
|
179
|
+
return parseFloat(v);
|
|
180
|
+
if (v.endsWith('s'))
|
|
181
|
+
return parseFloat(v) * 1000;
|
|
182
|
+
return 0;
|
|
183
|
+
}
|
|
184
|
+
render() {
|
|
185
|
+
return (h(Host, { key: '4bb0dd71635f57ed90deeeabc39a7abee9e66103', "aria-hidden": "true" }, h("div", { key: '29c6a7f4eefcb14598ee0aa2bc3980be2e04ebbc', part: "surface", class: "bs-ripple", ref: el => (this.surface = el) })));
|
|
186
|
+
}
|
|
187
|
+
static get watchers() { return {
|
|
188
|
+
"triggerSelector": [{
|
|
189
|
+
"onTriggerChange": 0
|
|
190
|
+
}]
|
|
191
|
+
}; }
|
|
192
|
+
};
|
|
193
|
+
BsRipple.style = bsRippleCss();
|
|
194
|
+
|
|
195
|
+
export { BsButton as bs_button, BsRipple as bs_ripple };
|
|
@@ -17,7 +17,7 @@ const BsCard = class {
|
|
|
17
17
|
this.hasImage = ev.target.assignedNodes().length > 0;
|
|
18
18
|
};
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '5badbcc0d29f07bf53520091e1e8fe8d8187dd18', part: "container", class: `bs-card bs-card--${this.surface}` }, h("div", { key: '2c69c0795db112c2dc52289a47b76d60662ef693', part: "image", class: `bs-card__image ${this.hasImage ? 'bs-card__image--visible' : ''}` }, h("slot", { key: '3aa0debc45e28c88b05103a494ee52f047305d9d', name: "image", onSlotchange: this.onImageSlotchange })), h("div", { key: '6fbe78e872b7aa7e166907a4173edd813f8fd73b', class: "bs-card__content" }, h("div", { key: '19df2524b50471bbb56e95b445643a4bfddd0c12', part: "header", class: "bs-card__header" }, h("slot", { key: 'bd4c9b53ccc07b7a95f6aee28b2a95a0ab8b137e', name: "header" })), h("div", { key: 'c5351e535d77c007806554ae3580b1b0b0bafd9d', part: "body", class: "bs-card__body" }, h("slot", { key: '323ac4df7355ce44383137ad754c650ff515ef28' })), h("div", { key: 'ac3e228d13303ffcaab2a4879a202db28e2c3a6a', part: "footer", class: "bs-card__footer" }, h("slot", { key: 'a2afbae842ef598422853a0628bb9f14dee34c6a', name: "footer" })))));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
BsCard.style = bsCardCss();
|