@brandsync/wc 1.19.0 → 1.20.1
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 +42 -0
- package/REFERENCE.md +266 -11
- package/custom-elements.json +11415 -6969
- package/dist/brandsync-wc/brandsync-wc.css +1 -1
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/index.esm.js +1 -1
- package/dist/brandsync-wc/p-040d4755.entry.js +1 -0
- package/dist/brandsync-wc/{p-a688a7ca.entry.js → p-08a5e178.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a50c5e68.entry.js → p-08d08dc9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-568de1b0.entry.js → p-0ebb60a8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10b8937f.entry.js → p-11fefb5a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-313ec145.entry.js → p-13d98ec3.entry.js} +1 -1
- package/dist/brandsync-wc/p-14719554.entry.js +1 -0
- package/dist/brandsync-wc/{p-42fcf134.entry.js → p-18cfec13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9751a12d.entry.js → p-1a549f9a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a28ef52e.entry.js → p-1bf8a54a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5371b31c.entry.js → p-1ce4395a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-de0dfd1c.entry.js → p-1daf48b1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-86f04e9e.entry.js → p-20dd8b76.entry.js} +1 -1
- package/dist/brandsync-wc/{p-391504ab.entry.js → p-2210c680.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f10b19a8.entry.js → p-23367a4d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-02314404.entry.js → p-238be384.entry.js} +1 -1
- package/dist/brandsync-wc/p-23affb5d.entry.js +1 -0
- package/dist/brandsync-wc/p-23b3958e.entry.js +1 -0
- package/dist/brandsync-wc/{p-03ad83a3.entry.js → p-2621b1b2.entry.js} +1 -1
- package/dist/brandsync-wc/p-28723df1.entry.js +1 -0
- package/dist/brandsync-wc/{p-d484e976.entry.js → p-28a34097.entry.js} +1 -1
- package/dist/brandsync-wc/{p-129a4de7.entry.js → p-2a96ce61.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7160a72e.entry.js → p-2f58b161.entry.js} +1 -1
- package/dist/brandsync-wc/p-319b7baa.entry.js +1 -0
- package/dist/brandsync-wc/{p-8a606b38.entry.js → p-32004fb3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-78c94cfe.entry.js → p-32157c7a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ab99b8c3.entry.js → p-32d83763.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8b21f623.entry.js → p-338b5e39.entry.js} +1 -1
- package/dist/brandsync-wc/p-39c50762.entry.js +1 -0
- package/dist/brandsync-wc/p-3f6be3f7.entry.js +1 -0
- package/dist/brandsync-wc/p-409cf56b.entry.js +1 -0
- package/dist/brandsync-wc/{p-8e107d7a.entry.js → p-452f6c13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-527fd08d.entry.js → p-47fc5f29.entry.js} +1 -1
- package/dist/brandsync-wc/p-4810bcc8.entry.js +1 -0
- package/dist/brandsync-wc/p-484a6546.entry.js +1 -0
- package/dist/brandsync-wc/p-4ae7b8b9.entry.js +1 -0
- package/dist/brandsync-wc/p-4d6f2fec.entry.js +1 -0
- package/dist/brandsync-wc/{p-4ffcf41a.entry.js → p-4f19e8d8.entry.js} +1 -1
- package/dist/brandsync-wc/p-50a154b8.entry.js +1 -0
- package/dist/brandsync-wc/{p-26e0ab15.entry.js → p-50ac6889.entry.js} +1 -1
- package/dist/brandsync-wc/p-520b277a.entry.js +1 -0
- package/dist/brandsync-wc/p-53b1c545.entry.js +1 -0
- package/dist/brandsync-wc/{p-90d8d45f.entry.js → p-548b96f7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-144b6ac8.entry.js → p-57ed5ac6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-028d3244.entry.js → p-587be2c6.entry.js} +1 -1
- package/dist/brandsync-wc/p-5a35d573.entry.js +1 -0
- package/dist/brandsync-wc/p-5b48a6c7.entry.js +1 -0
- package/dist/brandsync-wc/{p-4d1ee16e.entry.js → p-5ea899c4.entry.js} +1 -1
- package/dist/brandsync-wc/p-60636c6c.entry.js +1 -0
- package/dist/brandsync-wc/p-6096900b.entry.js +1 -0
- package/dist/brandsync-wc/{p-fc76031e.entry.js → p-630d41ab.entry.js} +1 -1
- package/dist/brandsync-wc/p-66f1ca2e.entry.js +1 -0
- package/dist/brandsync-wc/p-69489f45.entry.js +1 -0
- package/dist/brandsync-wc/p-6adc9c4f.entry.js +1 -0
- package/dist/brandsync-wc/p-6ae75ed0.entry.js +1 -0
- package/dist/brandsync-wc/p-6b1ba5ec.entry.js +1 -0
- package/dist/brandsync-wc/p-6bdd9ef9.entry.js +1 -0
- package/dist/brandsync-wc/{p-dc2ea372.entry.js → p-6db03e96.entry.js} +1 -1
- package/dist/brandsync-wc/{p-64e19200.entry.js → p-70924681.entry.js} +1 -1
- package/dist/brandsync-wc/{p-590deea0.entry.js → p-78e4dd14.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f96f45ae.entry.js → p-806bb471.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a18864a.entry.js → p-89dbb3c8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ebcd105d.entry.js → p-8a4d64fd.entry.js} +1 -1
- package/dist/brandsync-wc/p-8c83cc99.entry.js +1 -0
- package/dist/brandsync-wc/p-8ccd1735.entry.js +1 -0
- package/dist/brandsync-wc/p-8d674f11.entry.js +1 -0
- package/dist/brandsync-wc/{p-8d1ad4b0.entry.js → p-90442341.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a2bfbf02.entry.js → p-9e93b482.entry.js} +1 -1
- package/dist/brandsync-wc/{p-020cb767.entry.js → p-9f852c8b.entry.js} +1 -1
- package/dist/brandsync-wc/p-Vo0zbGRB.js +1 -0
- package/dist/brandsync-wc/p-a1d34ff3.entry.js +1 -0
- package/dist/brandsync-wc/{p-15c6f0f3.entry.js → p-a3c7b4e7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9ba500f1.entry.js → p-a6cbb6c6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-70a5897b.entry.js → p-a86560e6.entry.js} +1 -1
- package/dist/brandsync-wc/p-aa70e80c.entry.js +1 -0
- package/dist/brandsync-wc/p-aa99b1f8.entry.js +1 -0
- package/dist/brandsync-wc/{p-0dff9822.entry.js → p-b0f4cbca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c6980b9.entry.js → p-b1663378.entry.js} +1 -1
- package/dist/brandsync-wc/{p-25914efc.entry.js → p-b1b14615.entry.js} +1 -1
- package/dist/brandsync-wc/p-b6dc9234.entry.js +1 -0
- package/dist/brandsync-wc/{p-2389f473.entry.js → p-b7545d9b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d80eecf4.entry.js → p-baca1abf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a92c0f06.entry.js → p-bfdd135b.entry.js} +1 -1
- package/dist/brandsync-wc/p-c0e5db3d.entry.js +1 -0
- package/dist/brandsync-wc/{p-89fa7567.entry.js → p-c23e274a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4928c4ad.entry.js → p-c39e6be9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-30736034.entry.js → p-c6c15b9f.entry.js} +1 -1
- package/dist/brandsync-wc/p-ca8a1e51.entry.js +1 -0
- package/dist/brandsync-wc/{p-9fa7bd83.entry.js → p-d263deec.entry.js} +1 -1
- package/dist/brandsync-wc/p-d555984e.entry.js +1 -0
- package/dist/brandsync-wc/p-d6600c7c.entry.js +1 -0
- package/dist/brandsync-wc/{p-e5235e76.entry.js → p-d67840f5.entry.js} +1 -1
- package/dist/brandsync-wc/p-d8a299a9.entry.js +1 -0
- package/dist/brandsync-wc/{p-8ac86d16.entry.js → p-dc59a735.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f4796801.entry.js → p-dd3499ab.entry.js} +1 -1
- package/dist/brandsync-wc/p-debc308d.entry.js +1 -0
- package/dist/brandsync-wc/{p-c01e231e.entry.js → p-e18cb639.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7bff3aa5.entry.js → p-e18e45bc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4c51da66.entry.js → p-e2268c96.entry.js} +1 -1
- package/dist/brandsync-wc/p-e4033ebc.entry.js +1 -0
- package/dist/brandsync-wc/p-e8027825.entry.js +1 -0
- package/dist/brandsync-wc/{p-7c741b8d.entry.js → p-eb1b1497.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9868ee72.entry.js → p-eb4ad606.entry.js} +1 -1
- package/dist/brandsync-wc/p-ecb1a27d.entry.js +1 -0
- package/dist/brandsync-wc/p-f229f59a.entry.js +1 -0
- package/dist/brandsync-wc/{p-0819add7.entry.js → p-f22d2db8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-feb46fa6.entry.js → p-f71d7582.entry.js} +1 -1
- package/dist/brandsync-wc/p-fa894893.entry.js +1 -0
- package/dist/brandsync-wc/p-fbd204b6.entry.js +1 -0
- package/dist/brandsync-wc/{p-21e5d4d6.entry.js → p-fc7df528.entry.js} +1 -1
- package/dist/brandsync-wc/{p-27663faf.entry.js → p-fe6f71da.entry.js} +1 -1
- package/dist/brandsync-wc/p-ff85a9d8.entry.js +1 -0
- package/dist/brandsync-wc/p-wz7B473u.js +3 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-accordion-group.cjs.entry.js +2 -2
- package/dist/cjs/bs-accordion.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +5 -5
- package/dist/cjs/bs-app-shell.cjs.entry.js +2 -2
- package/dist/cjs/bs-app-switcher.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +2 -2
- package/dist/cjs/bs-avatar.cjs.entry.js +3 -10
- package/dist/cjs/bs-badge.cjs.entry.js +2 -2
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +10 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button_2.cjs.entry.js +17 -4
- package/dist/cjs/bs-card.cjs.entry.js +44 -3
- package/dist/cjs/bs-carousel.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +3 -7
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +3 -7
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +3 -3
- package/dist/cjs/bs-checkbox-group.cjs.entry.js +80 -0
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-informative.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/bs-citation-preview.cjs.entry.js +2 -2
- package/dist/cjs/bs-code-block.cjs.entry.js +75 -0
- package/dist/cjs/bs-command-palette.cjs.entry.js +2 -2
- package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +5 -5
- package/dist/cjs/bs-company-switcher.cjs.entry.js +3 -3
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +6 -4
- package/dist/cjs/bs-container.cjs.entry.js +2 -2
- package/dist/cjs/bs-cookie-consent.cjs.entry.js +1 -1
- package/dist/cjs/bs-data-table.cjs.entry.js +8 -5
- package/dist/cjs/bs-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/bs-description-item.cjs.entry.js +23 -0
- package/dist/cjs/bs-description-list.cjs.entry.js +40 -0
- package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/bs-divider.cjs.entry.js +2 -2
- package/dist/cjs/bs-dropdown.cjs.entry.js +96 -0
- package/dist/cjs/bs-empty-state.cjs.entry.js +7 -3
- package/dist/cjs/bs-error-page.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bs-global-search.cjs.entry.js +3 -3
- package/dist/cjs/bs-grid.cjs.entry.js +3 -3
- package/dist/cjs/bs-heading.cjs.entry.js +28 -0
- package/dist/cjs/bs-icon-button.cjs.entry.js +10 -3
- package/dist/cjs/bs-icon-tile.cjs.entry.js +3 -3
- package/dist/cjs/bs-icon.cjs.entry.js +35 -0
- package/dist/cjs/bs-inline-tab.cjs.entry.js +3 -3
- package/dist/cjs/bs-input_4.cjs.entry.js +794 -0
- package/dist/cjs/bs-key-caps.cjs.entry.js +2 -2
- package/dist/cjs/bs-key.cjs.entry.js +2 -2
- package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +3 -3
- package/dist/cjs/bs-link.cjs.entry.js +52 -0
- package/dist/cjs/bs-list-item.cjs.entry.js +68 -0
- package/dist/cjs/bs-list.cjs.entry.js +9 -3
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-mega-menu.cjs.entry.js +2 -2
- package/dist/cjs/bs-message-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-message.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +26 -5
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bs-navigation-header.cjs.entry.js +4 -4
- package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +1 -1
- package/dist/cjs/bs-page-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/bs-popover.cjs.entry.js +223 -0
- package/dist/cjs/bs-presence.cjs.entry.js +2 -2
- package/dist/cjs/bs-product-tour.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
- package/dist/cjs/bs-progress.cjs.entry.js +3 -3
- package/dist/cjs/bs-qr-code.cjs.entry.js +2 -2
- package/dist/cjs/bs-radio-group.cjs.entry.js +90 -0
- package/dist/cjs/bs-radio.cjs.entry.js +6 -2
- package/dist/cjs/bs-search-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-select.cjs.entry.js +234 -0
- package/dist/cjs/bs-session-timeout.cjs.entry.js +2 -2
- package/dist/cjs/bs-shortcut-row.cjs.entry.js +2 -2
- package/dist/cjs/bs-side-panel.cjs.entry.js +1 -1
- package/dist/cjs/bs-skip-link.cjs.entry.js +52 -0
- package/dist/cjs/bs-slider.cjs.entry.js +3 -3
- package/dist/cjs/bs-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/bs-source-link.cjs.entry.js +4 -4
- package/dist/cjs/bs-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/bs-stack.cjs.entry.js +2 -2
- package/dist/cjs/bs-stat.cjs.entry.js +53 -0
- package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bs-switch.cjs.entry.js +2 -2
- package/dist/cjs/bs-tab_3.cjs.entry.js +16 -9
- package/dist/cjs/bs-table-of-contents.cjs.entry.js +171 -0
- package/dist/cjs/bs-tag.cjs.entry.js +51 -0
- package/dist/cjs/bs-text.cjs.entry.js +24 -0
- package/dist/cjs/bs-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/bs-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-toggle-button-group.cjs.entry.js +108 -0
- package/dist/cjs/bs-toggle-button.cjs.entry.js +57 -0
- package/dist/cjs/bs-toolbar.cjs.entry.js +195 -0
- package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/bs-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/bs-tree.cjs.entry.js +2 -2
- package/dist/cjs/bs-whats-new.cjs.entry.js +1 -1
- package/dist/cjs/icon-registry-DWYCqjKw.js +64 -0
- package/dist/cjs/{index-BYfMRtlW.js → index-BFxk-bY6.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +19 -1
- package/dist/collection/components/bs-a11y.cmp.test.js +9 -0
- package/dist/collection/components/bs-accordion/bs-accordion.js +1 -1
- 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.js +3 -3
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
- package/dist/collection/components/bs-attachment/bs-attachment.cmp.test.js +10 -0
- package/dist/collection/components/bs-attachment/bs-attachment.css +6 -6
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.cmp.test.js +11 -1
- package/dist/collection/components/bs-avatar/bs-avatar.css +9 -4
- package/dist/collection/components/bs-avatar/bs-avatar.js +1 -8
- package/dist/collection/components/bs-badge/bs-badge.css +4 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.js +13 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.css +8 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +26 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +31 -2
- package/dist/collection/components/bs-button/bs-button/bs-button.css +16 -18
- package/dist/collection/components/bs-button/bs-button/bs-button.js +102 -7
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +43 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +32 -2
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +68 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.cmp.test.js +78 -0
- package/dist/collection/components/bs-card/bs-card.css +75 -0
- package/dist/collection/components/bs-card/bs-card.js +200 -1
- package/dist/collection/components/bs-card/bs-card.stories.js +32 -0
- package/dist/collection/components/bs-carousel/bs-carousel.js +2 -2
- package/dist/collection/components/bs-carousel/bs-carousel.stories.js +9 -5
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.cmp.test.js +8 -0
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.css +11 -8
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -5
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +2 -3
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -5
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.cmp.test.js +18 -0
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.css +8 -2
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +4 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.cmp.test.js +58 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.css +65 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.js +254 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.stories.js +34 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -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.js +1 -1
- package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
- package/dist/collection/components/bs-code-block/bs-code-block.cmp.test.js +78 -0
- package/dist/collection/components/bs-code-block/bs-code-block.css +132 -0
- package/dist/collection/components/bs-code-block/bs-code-block.js +317 -0
- package/dist/collection/components/bs-code-block/bs-code-block.stories.js +56 -0
- 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.js +1 -1
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.cmp.test.js +13 -7
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
- package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +29 -0
- package/dist/collection/components/bs-composer/bs-composer.css +2 -1
- package/dist/collection/components/bs-composer/bs-composer.js +4 -2
- package/dist/collection/components/bs-composer/bs-composer.stories.js +1 -2
- 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-cookie-consent/bs-cookie-consent.cmp.test.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.cmp.test.js +39 -0
- package/dist/collection/components/bs-data-table/bs-data-table.css +12 -0
- package/dist/collection/components/bs-data-table/bs-data-table.js +34 -3
- package/dist/collection/components/bs-data-table/bs-data-table.stories.js +1 -1
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
- package/dist/collection/components/bs-description-item/bs-description-item.cmp.test.js +14 -0
- package/dist/collection/components/bs-description-item/bs-description-item.css +47 -0
- package/dist/collection/components/bs-description-item/bs-description-item.js +111 -0
- package/dist/collection/components/bs-description-list/bs-description-list.cmp.test.js +58 -0
- package/dist/collection/components/bs-description-list/bs-description-list.css +15 -0
- package/dist/collection/components/bs-description-list/bs-description-list.js +127 -0
- package/dist/collection/components/bs-description-list/bs-description-list.stories.js +34 -0
- package/dist/collection/components/bs-divider/bs-divider.js +1 -1
- package/dist/collection/components/bs-dropdown/bs-dropdown.cmp.test.js +133 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.css +3 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.js +218 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.stories.js +42 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +15 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.css +30 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.js +29 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +24 -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-heading/bs-heading.cmp.test.js +38 -0
- package/dist/collection/components/bs-heading/bs-heading.css +42 -0
- package/dist/collection/components/bs-heading/bs-heading.js +154 -0
- package/dist/collection/components/bs-heading/bs-heading.stories.js +28 -0
- package/dist/collection/components/bs-icon/bs-icon.cmp.test.js +78 -0
- package/dist/collection/components/bs-icon/bs-icon.css +47 -0
- package/dist/collection/components/bs-icon/bs-icon.js +155 -0
- package/dist/collection/components/bs-icon/bs-icon.stories.js +52 -0
- package/dist/collection/components/bs-icon/icon-registry.js +58 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
- package/dist/collection/components/bs-input/bs-input.cmp.test.js +431 -45
- package/dist/collection/components/bs-input/bs-input.css +196 -12
- package/dist/collection/components/bs-input/bs-input.js +565 -46
- package/dist/collection/components/bs-input/bs-input.stories.js +32 -4
- 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-link/bs-link.cmp.test.js +52 -0
- package/dist/collection/components/bs-link/bs-link.css +129 -0
- package/dist/collection/components/bs-link/bs-link.js +257 -0
- package/dist/collection/components/bs-link/bs-link.stories.js +31 -0
- package/dist/collection/components/bs-list/bs-list.cmp.test.js +23 -0
- package/dist/collection/components/bs-list/bs-list.js +32 -2
- package/dist/collection/components/bs-list/bs-list.stories.js +35 -2
- package/dist/collection/components/bs-list-item/bs-list-item.css +8 -0
- package/dist/collection/components/bs-list-item/bs-list-item.js +24 -1
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +1 -1
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-block/bs-menu-block.js +3 -3
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +19 -15
- 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.js +1 -1
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-popover/bs-popover.cmp.test.js +11 -4
- package/dist/collection/components/bs-popover/bs-popover.js +26 -2
- package/dist/collection/components/bs-presence/bs-presence.js +1 -1
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +4 -1
- 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.cmp.test.js +8 -0
- package/dist/collection/components/bs-radio/bs-radio.js +25 -1
- package/dist/collection/components/bs-radio-group/bs-radio-group.cmp.test.js +85 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.css +59 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.js +309 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.stories.js +35 -0
- package/dist/collection/components/bs-ripple/bs-ripple.js +1 -1
- package/dist/collection/components/bs-search-item/bs-search-item.js +1 -1
- package/dist/collection/components/bs-select/bs-select.cmp.test.js +108 -0
- package/dist/collection/components/bs-select/bs-select.css +231 -0
- package/dist/collection/components/bs-select/bs-select.js +506 -0
- package/dist/collection/components/bs-select/bs-select.stories.js +58 -0
- 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-skeleton/bs-skeleton.js +1 -1
- package/dist/collection/components/bs-skip-link/bs-skip-link.cmp.test.js +60 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.css +58 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.js +123 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.stories.js +27 -0
- package/dist/collection/components/bs-slider/bs-slider.cmp.test.js +13 -0
- package/dist/collection/components/bs-slider/bs-slider.css +3 -2
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +22 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +23 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +3 -3
- 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-stat/bs-stat.cmp.test.js +49 -0
- package/dist/collection/components/bs-stat/bs-stat.css +116 -0
- package/dist/collection/components/bs-stat/bs-stat.js +284 -0
- package/dist/collection/components/bs-stat/bs-stat.stories.js +44 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +2 -2
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.js +0 -4
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.stories.js +7 -7
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.cmp.test.js +35 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.css +6 -2
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +13 -6
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.cmp.test.js +125 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.css +115 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +392 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.stories.js +58 -0
- package/dist/collection/components/bs-tag/bs-tag.cmp.test.js +66 -0
- package/dist/collection/components/bs-tag/bs-tag.css +101 -0
- package/dist/collection/components/bs-tag/bs-tag.js +233 -0
- package/dist/collection/components/bs-tag/bs-tag.stories.js +59 -0
- package/dist/collection/components/bs-text/bs-text.cmp.test.js +33 -0
- package/dist/collection/components/bs-text/bs-text.css +48 -0
- package/dist/collection/components/bs-text/bs-text.js +126 -0
- package/dist/collection/components/bs-text/bs-text.stories.js +25 -0
- 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-toggle-button/bs-toggle-button.cmp.test.js +47 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.css +125 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.js +234 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.stories.js +22 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.js +69 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.css +43 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +264 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.stories.js +42 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.cmp.test.js +144 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.css +82 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.js +345 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.stories.js +49 -0
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
- package/dist/collection/components/bs-tree/bs-tree.js +1 -1
- package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
- package/dist/collection/components/bs-tree-item/bs-tree-item.stories.js +6 -4
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
- package/dist/collection/components/disabled-aria.cmp.test.js +19 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +25 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +2 -2
- 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.cmp.test.js +58 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.css +10 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +63 -4
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.js +42 -9
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +44 -37
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.js +22 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/test/helpers/block-link-navigation.js +13 -0
- package/dist/collection/test/helpers/contrast.js +57 -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.js +1 -1
- package/dist/components/bs-app-shell.js +1 -1
- package/dist/components/bs-app-switcher.js +1 -1
- package/dist/components/bs-app-tile.js +1 -1
- 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-group.d.ts +11 -0
- package/dist/components/bs-checkbox-group.js +1 -0
- 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-code-block.d.ts +11 -0
- package/dist/components/bs-code-block.js +1 -0
- package/dist/components/bs-command-palette.js +1 -1
- package/dist/components/bs-compact-menu-block.js +1 -1
- package/dist/components/bs-company-switcher.js +1 -1
- 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-description-item.d.ts +11 -0
- package/dist/components/bs-description-item.js +1 -0
- package/dist/components/bs-description-list.d.ts +11 -0
- package/dist/components/bs-description-list.js +1 -0
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-divider.js +1 -1
- package/dist/components/bs-dropdown.d.ts +11 -0
- package/dist/components/bs-dropdown.js +1 -0
- 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-heading.d.ts +11 -0
- package/dist/components/bs-heading.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.js +1 -1
- package/dist/components/bs-icon.d.ts +11 -0
- package/dist/components/bs-icon.js +1 -0
- 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-link.d.ts +11 -0
- package/dist/components/bs-link.js +1 -0
- package/dist/components/bs-list-item.js +1 -1
- package/dist/components/bs-list.js +1 -1
- package/dist/components/bs-logo.js +1 -1
- package/dist/components/bs-mega-menu.js +1 -1
- package/dist/components/bs-menu-block.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-message-list.js +1 -1
- package/dist/components/bs-message.js +1 -1
- package/dist/components/bs-navigation-drawer-item.js +1 -1
- package/dist/components/bs-navigation-drawer.js +1 -1
- package/dist/components/bs-navigation-header.js +1 -1
- package/dist/components/bs-onboarding-checklist.js +1 -1
- package/dist/components/bs-page-header.js +1 -1
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-popover.js +1 -1
- package/dist/components/bs-presence.js +1 -1
- package/dist/components/bs-product-tour.js +1 -1
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-qr-code.js +1 -1
- package/dist/components/bs-radio-group.d.ts +11 -0
- package/dist/components/bs-radio-group.js +1 -0
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-ripple.js +1 -1
- package/dist/components/bs-search-item.js +1 -1
- package/dist/components/bs-select.d.ts +11 -0
- package/dist/components/bs-select.js +1 -0
- 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-skip-link.d.ts +11 -0
- package/dist/components/bs-skip-link.js +1 -0
- 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-stat.d.ts +11 -0
- package/dist/components/bs-stat.js +1 -0
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-table-of-contents.d.ts +11 -0
- package/dist/components/bs-table-of-contents.js +1 -0
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-tag.d.ts +11 -0
- package/dist/components/bs-tag.js +1 -0
- package/dist/components/bs-text.d.ts +11 -0
- package/dist/components/bs-text.js +1 -0
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-toggle-button-group.d.ts +11 -0
- package/dist/components/bs-toggle-button-group.js +1 -0
- package/dist/components/bs-toggle-button.d.ts +11 -0
- package/dist/components/bs-toggle-button.js +1 -0
- package/dist/components/bs-toolbar.d.ts +11 -0
- package/dist/components/bs-toolbar.js +1 -0
- 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/index.js +1 -1
- package/dist/components/p-B5yjDh8h.js +1 -0
- package/dist/components/p-B81aicKA.js +1 -0
- package/dist/components/{p-CFR3Q0io.js → p-BB1HiIxJ.js} +1 -1
- package/dist/components/p-BLJL4BVY.js +1 -0
- package/dist/components/{p-D5eN9Lfa.js → p-BR7C-aKy.js} +1 -1
- package/dist/components/{p-D3PuUD8Z.js → p-Ba8J2kHD.js} +1 -1
- package/dist/components/{p-DF2FcJPs.js → p-C3YETziz.js} +1 -1
- package/dist/components/p-CALH_mHQ.js +1 -0
- package/dist/components/{p-DcD5eV_Z.js → p-CKTbatgt.js} +1 -1
- package/dist/components/{p-lPTgyF9v.js → p-CL99S8-7.js} +1 -1
- package/dist/components/{p-Dj393s3S.js → p-CZfbB-t_.js} +1 -1
- package/dist/components/p-CcAX4o5o.js +1 -0
- package/dist/components/{p-6Rr9bjVN.js → p-Cso2DKAz.js} +1 -1
- package/dist/components/{p-CVQycAap.js → p-CxNNy2m6.js} +1 -1
- package/dist/components/{p-CHZE_FrW.js → p-Cz38kNDe.js} +1 -1
- package/dist/components/{p-Y5FyLR8G.js → p-D4W5LcEW.js} +1 -1
- package/dist/components/{p--Tyv3LIl.js → p-DARbgzSz.js} +1 -1
- package/dist/components/p-DHZ_DStJ.js +1 -0
- package/dist/components/{p-BQ4rSQDm.js → p-DK1uv2fu.js} +1 -1
- package/dist/components/{p-DLnZG_G9.js → p-DL9HtG41.js} +1 -1
- package/dist/components/{p-Cr8cHmpM.js → p-DLNoxNuW.js} +1 -1
- package/dist/components/{p-4yShCgRb.js → p-DMp5CvEJ.js} +1 -1
- package/dist/components/p-DO4sVZCh.js +1 -0
- package/dist/components/{p-DDgzEg1C.js → p-DOW-YekD.js} +1 -1
- package/dist/components/p-DUV80kt-.js +1 -0
- package/dist/components/{p-BTPdjnXT.js → p-DVqoLSEW.js} +1 -1
- package/dist/components/{p-DtkTnaOp.js → p-DaKBSL2O.js} +1 -1
- package/dist/components/{p-ZfE38vXZ.js → p-Dlp2c-Ii.js} +1 -1
- package/dist/components/{p-XZXdZpt4.js → p-DnagAPBF.js} +1 -1
- package/dist/components/p-Dt3b6VYT.js +1 -0
- package/dist/components/{p-BWRkbt0f.js → p-KiyJJwzr.js} +1 -1
- package/dist/components/p-Vo0zbGRB.js +1 -0
- package/dist/components/p-_zxYDrzi.js +1 -0
- package/dist/components/p-abyVFrPp.js +1 -0
- package/dist/components/p-mxDA3wKn.js +1 -0
- package/dist/components/p-wd9-vGpQ.js +1 -0
- package/dist/components/p-wscU7FUD.js +1 -0
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-accordion-group.entry.js +2 -2
- package/dist/esm/bs-accordion.entry.js +2 -2
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-app-recent-item_3.entry.js +5 -5
- package/dist/esm/bs-app-shell.entry.js +2 -2
- package/dist/esm/bs-app-switcher.entry.js +1 -1
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +2 -2
- package/dist/esm/bs-avatar.entry.js +3 -10
- package/dist/esm/bs-badge.entry.js +2 -2
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +3 -3
- package/dist/esm/bs-breadcrumbs.entry.js +10 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button_2.entry.js +17 -4
- package/dist/esm/bs-card.entry.js +44 -3
- package/dist/esm/bs-carousel.entry.js +2 -2
- package/dist/esm/bs-chatbot-feedback.entry.js +3 -7
- package/dist/esm/bs-chatbot-header.entry.js +3 -7
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +3 -3
- package/dist/esm/bs-checkbox-group.entry.js +78 -0
- package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +2 -2
- package/dist/esm/bs-chip-informative.entry.js +2 -2
- package/dist/esm/bs-chip-input.entry.js +2 -2
- package/dist/esm/bs-citation-preview.entry.js +2 -2
- package/dist/esm/bs-code-block.entry.js +73 -0
- package/dist/esm/bs-command-palette.entry.js +2 -2
- package/dist/esm/bs-compact-menu-block_2.entry.js +5 -5
- package/dist/esm/bs-company-switcher.entry.js +3 -3
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +6 -4
- package/dist/esm/bs-container.entry.js +2 -2
- package/dist/esm/bs-cookie-consent.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +8 -5
- package/dist/esm/bs-datepicker.entry.js +2 -2
- package/dist/esm/bs-description-item.entry.js +21 -0
- package/dist/esm/bs-description-list.entry.js +38 -0
- package/dist/esm/bs-dialog.entry.js +1 -1
- package/dist/esm/bs-divider.entry.js +2 -2
- package/dist/esm/bs-dropdown.entry.js +94 -0
- package/dist/esm/bs-empty-state.entry.js +7 -3
- package/dist/esm/bs-error-page.entry.js +2 -2
- package/dist/esm/bs-file-upload-item.entry.js +2 -2
- package/dist/esm/bs-file-upload.entry.js +2 -2
- package/dist/esm/bs-global-search.entry.js +3 -3
- package/dist/esm/bs-grid.entry.js +3 -3
- package/dist/esm/bs-heading.entry.js +26 -0
- package/dist/esm/bs-icon-button.entry.js +10 -3
- package/dist/esm/bs-icon-tile.entry.js +3 -3
- package/dist/esm/bs-icon.entry.js +33 -0
- package/dist/esm/bs-inline-tab.entry.js +3 -3
- package/dist/esm/bs-input_4.entry.js +789 -0
- package/dist/esm/bs-key-caps.entry.js +2 -2
- package/dist/esm/bs-key.entry.js +2 -2
- package/dist/esm/bs-keyboard-shortcuts.entry.js +3 -3
- package/dist/esm/bs-link.entry.js +50 -0
- package/dist/esm/bs-list-item.entry.js +66 -0
- package/dist/esm/bs-list.entry.js +9 -3
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-mega-menu.entry.js +2 -2
- package/dist/esm/bs-message-list.entry.js +2 -2
- package/dist/esm/bs-message.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer-item.entry.js +26 -5
- package/dist/esm/bs-navigation-drawer.entry.js +4 -4
- package/dist/esm/bs-navigation-header.entry.js +4 -4
- package/dist/esm/bs-onboarding-checklist.entry.js +1 -1
- package/dist/esm/bs-page-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/bs-popover.entry.js +221 -0
- package/dist/esm/bs-presence.entry.js +2 -2
- package/dist/esm/bs-product-tour.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +4 -4
- package/dist/esm/bs-progress.entry.js +3 -3
- package/dist/esm/bs-qr-code.entry.js +2 -2
- package/dist/esm/bs-radio-group.entry.js +88 -0
- package/dist/esm/bs-radio.entry.js +6 -2
- package/dist/esm/bs-search-item.entry.js +2 -2
- package/dist/esm/bs-select.entry.js +232 -0
- package/dist/esm/bs-session-timeout.entry.js +2 -2
- package/dist/esm/bs-shortcut-row.entry.js +2 -2
- package/dist/esm/bs-side-panel.entry.js +1 -1
- package/dist/esm/bs-skip-link.entry.js +50 -0
- package/dist/esm/bs-slider.entry.js +3 -3
- package/dist/esm/bs-snackbar.entry.js +3 -3
- package/dist/esm/bs-source-link.entry.js +4 -4
- package/dist/esm/bs-split-pane.entry.js +2 -2
- package/dist/esm/bs-stack.entry.js +2 -2
- package/dist/esm/bs-stat.entry.js +51 -0
- package/dist/esm/bs-stepper-step.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +2 -2
- package/dist/esm/bs-switch.entry.js +2 -2
- package/dist/esm/bs-tab_3.entry.js +16 -9
- package/dist/esm/bs-table-of-contents.entry.js +169 -0
- package/dist/esm/bs-tag.entry.js +49 -0
- package/dist/esm/bs-text.entry.js +22 -0
- package/dist/esm/bs-timepicker.entry.js +3 -3
- package/dist/esm/bs-toast.entry.js +2 -2
- package/dist/esm/bs-toggle-button-group.entry.js +106 -0
- package/dist/esm/bs-toggle-button.entry.js +55 -0
- package/dist/esm/bs-toolbar.entry.js +193 -0
- package/dist/esm/bs-tooltip-trigger.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/bs-tree-item.entry.js +3 -3
- package/dist/esm/bs-tree.entry.js +2 -2
- package/dist/esm/bs-whats-new.entry.js +1 -1
- package/dist/esm/icon-registry-Vo0zbGRB.js +60 -0
- package/dist/esm/{index-D3SkQJpw.js → index-wz7B473u.js} +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.d.ts +9 -0
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +22 -6
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +7 -0
- package/dist/types/components/bs-card/bs-card.d.ts +35 -0
- package/dist/types/components/bs-card/bs-card.stories.d.ts +3 -0
- package/dist/types/components/bs-carousel/bs-carousel.d.ts +1 -1
- package/dist/types/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.d.ts +3 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.d.ts +48 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.stories.d.ts +15 -0
- package/dist/types/components/bs-code-block/bs-code-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-code-block/bs-code-block.d.ts +68 -0
- package/dist/types/components/bs-code-block/bs-code-block.stories.d.ts +18 -0
- package/dist/types/components/bs-data-table/bs-data-table.d.ts +11 -0
- package/dist/types/components/bs-description-item/bs-description-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-description-item/bs-description-item.d.ts +34 -0
- package/dist/types/components/bs-description-list/bs-description-list.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-description-list/bs-description-list.d.ts +33 -0
- package/dist/types/components/bs-description-list/bs-description-list.stories.d.ts +11 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.d.ts +51 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.stories.d.ts +12 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +6 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +3 -0
- package/dist/types/components/bs-heading/bs-heading.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-heading/bs-heading.d.ts +34 -0
- package/dist/types/components/bs-heading/bs-heading.stories.d.ts +15 -0
- package/dist/types/components/bs-icon/bs-icon.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-icon/bs-icon.d.ts +39 -0
- package/dist/types/components/bs-icon/bs-icon.stories.d.ts +16 -0
- package/dist/types/components/bs-icon/icon-registry.d.ts +16 -0
- package/dist/types/components/bs-input/bs-input.d.ts +83 -12
- package/dist/types/components/bs-input/bs-input.stories.d.ts +3 -1
- package/dist/types/components/bs-link/bs-link.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-link/bs-link.d.ts +48 -0
- package/dist/types/components/bs-link/bs-link.stories.d.ts +19 -0
- package/dist/types/components/bs-list/bs-list.d.ts +6 -0
- package/dist/types/components/bs-list/bs-list.stories.d.ts +4 -0
- package/dist/types/components/bs-list-item/bs-list-item.d.ts +3 -0
- package/dist/types/components/bs-popover/bs-popover.d.ts +9 -1
- package/dist/types/components/bs-radio/bs-radio.d.ts +4 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.d.ts +57 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.stories.d.ts +16 -0
- package/dist/types/components/bs-select/bs-select.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-select/bs-select.d.ts +85 -0
- package/dist/types/components/bs-select/bs-select.stories.d.ts +19 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.d.ts +40 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.stories.d.ts +10 -0
- package/dist/types/components/bs-stat/bs-stat.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stat/bs-stat.d.ts +56 -0
- package/dist/types/components/bs-stat/bs-stat.stories.d.ts +16 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.d.ts +0 -1
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.d.ts +5 -3
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.d.ts +96 -0
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.stories.d.ts +13 -0
- package/dist/types/components/bs-tag/bs-tag.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tag/bs-tag.d.ts +49 -0
- package/dist/types/components/bs-tag/bs-tag.stories.d.ts +16 -0
- package/dist/types/components/bs-text/bs-text.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-text/bs-text.d.ts +31 -0
- package/dist/types/components/bs-text/bs-text.stories.d.ts +14 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.d.ts +48 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.stories.d.ts +13 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.d.ts +42 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.stories.d.ts +13 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.d.ts +88 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.stories.d.ts +13 -0
- package/dist/types/components/disabled-aria.cmp.test.d.ts +1 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.d.ts +11 -1
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.d.ts +3 -0
- package/dist/types/components.d.ts +3107 -88
- package/dist/types/index.d.ts +1 -0
- package/dist/types/test/helpers/block-link-navigation.d.ts +8 -0
- package/dist/types/test/helpers/contrast.d.ts +5 -0
- package/package.json +6 -1
- package/reference.d.ts +63 -9
- package/reference.json +670 -17
- package/dist/brandsync-wc/p-08649f52.entry.js +0 -1
- package/dist/brandsync-wc/p-1580c56c.entry.js +0 -1
- package/dist/brandsync-wc/p-171fa239.entry.js +0 -1
- package/dist/brandsync-wc/p-197ac73f.entry.js +0 -1
- package/dist/brandsync-wc/p-1e33bc10.entry.js +0 -1
- package/dist/brandsync-wc/p-270b2cb0.entry.js +0 -1
- package/dist/brandsync-wc/p-28c38959.entry.js +0 -1
- package/dist/brandsync-wc/p-2a8b2ac9.entry.js +0 -1
- package/dist/brandsync-wc/p-2a967b45.entry.js +0 -1
- package/dist/brandsync-wc/p-2b3d0bd4.entry.js +0 -1
- package/dist/brandsync-wc/p-30ff0659.entry.js +0 -1
- package/dist/brandsync-wc/p-3627e0c6.entry.js +0 -1
- package/dist/brandsync-wc/p-38a2210a.entry.js +0 -1
- package/dist/brandsync-wc/p-3b212a8a.entry.js +0 -1
- package/dist/brandsync-wc/p-4dfd4715.entry.js +0 -1
- package/dist/brandsync-wc/p-6afacd47.entry.js +0 -1
- package/dist/brandsync-wc/p-6f32a08e.entry.js +0 -1
- package/dist/brandsync-wc/p-776b677f.entry.js +0 -1
- package/dist/brandsync-wc/p-D3SkQJpw.js +0 -3
- package/dist/brandsync-wc/p-ab301e9d.entry.js +0 -1
- package/dist/brandsync-wc/p-d15e48eb.entry.js +0 -1
- package/dist/brandsync-wc/p-e1d30e31.entry.js +0 -1
- package/dist/brandsync-wc/p-e776d145.entry.js +0 -1
- package/dist/brandsync-wc/p-e7c80f48.entry.js +0 -1
- package/dist/brandsync-wc/p-eb680cff.entry.js +0 -1
- package/dist/brandsync-wc/p-f3b60029.entry.js +0 -1
- package/dist/brandsync-wc/p-f4628861.entry.js +0 -1
- package/dist/brandsync-wc/p-f5e6fdf8.entry.js +0 -1
- package/dist/brandsync-wc/p-f93127e1.entry.js +0 -1
- package/dist/cjs/bs-input_3.cjs.entry.js +0 -461
- package/dist/cjs/bs-list-item_2.cjs.entry.js +0 -261
- package/dist/cjs/bs-spinner.cjs.entry.js +0 -24
- package/dist/components/p-B2gx7SZk.js +0 -1
- package/dist/components/p-BHzj13sd.js +0 -1
- package/dist/components/p-BIxcCDgl.js +0 -1
- package/dist/components/p-BfCah-Ij.js +0 -1
- package/dist/components/p-BpkPo4ay.js +0 -1
- package/dist/components/p-CvSewXZF.js +0 -1
- package/dist/components/p-DXbcyEgd.js +0 -1
- package/dist/components/p-DXwatzvM.js +0 -1
- package/dist/components/p-DsBToIYE.js +0 -1
- package/dist/components/p-EGNLb4cQ.js +0 -1
- package/dist/components/p-Jik5UkAe.js +0 -1
- package/dist/components/p-syO0ipbw.js +0 -1
- package/dist/components/p-up01gvHY.js +0 -1
- package/dist/esm/bs-input_3.entry.js +0 -457
- package/dist/esm/bs-list-item_2.entry.js +0 -258
- package/dist/esm/bs-spinner.entry.js +0 -22
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-wz7B473u.js';
|
|
2
|
+
|
|
3
|
+
const bsInputCss = () => `:host{display:block;--bs-input-radius:var(--bs-border-radius-100);--bs-input-height:var(--bs-spacing-550);--bs-input-padding-x:var(--bs-spacing-150);--bs-input-padding-y:var(--bs-spacing-100);--bs-input-gap:var(--bs-spacing-200);--bs-input-icon-size:var(--bs-spacing-300);--bs-input-stack-gap:var(--bs-spacing-100);--bs-input-pin-gap:var(--bs-spacing-75);--bs-input-pin-cell-size:var(--bs-spacing-550);--bs-input-listbox-bg:var(--bs-surface-raised);--bs-input-listbox-shadow:var(--bs-shadow-sm);--bs-input-listbox-max-height:calc(var(--bs-spacing-600) * 5);--bs-input-picker-min-width:calc(var(--bs-spacing-600) * 4);--bs-input-option-bg-active:var(--bs-color-neutral-container-hover);--bs-input-error-icon-size:var(--bs-spacing-250);--bs-input-field-bg:var(--bs-input-bg-default);--bs-input-field-bg-disabled:var(--bs-input-bg-disabled);--bs-input-field-border:var(--bs-input-border-default);--bs-input-field-border-hover:var(--bs-input-border-hover);--bs-input-field-border-focus:var(--bs-input-border-focus);--bs-input-field-border-error:var(--bs-input-border-error);--bs-input-field-text:var(--bs-input-text);--bs-input-field-placeholder:var(--bs-input-placeholder);--bs-input-label-color:var(--bs-input-label);--bs-input-label-font-size:var(--bs-font-size-sm);--bs-input-label-font-weight:var(--bs-font-weight-medium);--bs-input-label-line-height:normal;--bs-input-description-color:var(--bs-input-description);--bs-input-error-color:var(--bs-input-error);--bs-input-icon-color:var(--bs-icon-muted);--bs-input-icon-color-error:var(--bs-input-icon-error);--bs-input-icon-color-disabled:var(--bs-input-icon-disabled);--bs-input-initials-title-width:80px;--bs-input-initials-gap:var(--bs-spacing-50)}.bs-input{display:flex;flex-direction:column;gap:var(--bs-input-stack-gap);font-family:inherit}.bs-input__label{font-size:var(--bs-input-label-font-size);font-weight:var(--bs-input-label-font-weight);line-height:var(--bs-input-label-line-height);color:var(--bs-input-label-color)}.bs-input__required{color:var(--bs-input-error-color);margin-inline-start:2px}.bs-input__field{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-input-gap);height:var(--bs-input-height);padding:var(--bs-input-padding-y) var(--bs-input-padding-x);border:1px solid var(--bs-input-field-border);border-radius:var(--bs-input-radius);background:var(--bs-input-field-bg)}.bs-input__field:hover:not(.bs-input__field--disabled){border-color:var(--bs-input-field-border-hover)}.bs-input__field:focus-within{border-color:var(--bs-input-field-border-focus)}.bs-input__field--error{border-color:var(--bs-input-field-border-error)}.bs-input__field--disabled{background:var(--bs-input-field-bg-disabled);cursor:not-allowed}.bs-input__control{flex:1;min-width:0;border:none;outline:none;padding:0;background:transparent;color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit}.bs-input__control::placeholder{color:var(--bs-input-field-placeholder)}.bs-input__control:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-input__control::-webkit-strong-password-auto-fill-button,.bs-input__control::-webkit-credentials-auto-fill-button{display:none !important;visibility:hidden;pointer-events:none;position:absolute;inset-inline-end:0}.bs-input__control::-webkit-textfield-decoration-container{visibility:hidden}.bs-input__control::-ms-reveal,.bs-input__control::-ms-clear{display:none}.bs-input--error .bs-input__label{color:var(--bs-input-label-color)}.bs-input__icon,.bs-input__end-icon{display:none;align-items:center;flex-shrink:0;color:var(--bs-input-icon-color)}.bs-input__icon--visible,.bs-input__end-icon--visible{display:flex}.bs-input__icon ::slotted(*),.bs-input__end-icon ::slotted(*){display:block;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field--error .bs-input__icon,.bs-input__field--error .bs-input__end-icon{color:var(--bs-input-icon-color-error)}.bs-input__field--disabled .bs-input__icon,.bs-input__field--disabled .bs-input__end-icon{color:var(--bs-input-icon-color-disabled)}.bs-input__description{font-size:var(--bs-font-size-sm);color:var(--bs-input-description-color)}.bs-input__error{display:flex;align-items:center;gap:var(--bs-spacing-50);font-size:var(--bs-font-size-xs);color:var(--bs-input-error-color)}.bs-input__error-icon{flex-shrink:0;width:var(--bs-input-error-icon-size);height:var(--bs-input-error-icon-size)}.bs-input__field--textarea{height:auto;align-items:flex-start}.bs-input__control--textarea{resize:vertical}.bs-input__stepper{display:flex;flex-direction:column}.bs-input__stepper-btn{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size);display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;padding:0;cursor:pointer}.bs-input__stepper-btn:disabled{cursor:not-allowed}.bs-input__password-toggle{display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;padding:0;cursor:pointer;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__password-toggle:disabled{cursor:not-allowed}.bs-input__password-toggle svg{width:100%;height:100%}.bs-input__chevron{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field-wrapper{position:relative;width:100%}.bs-input__dropdown-menu{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline-start:0;inset-inline-end:0;z-index:1}.bs-input__control::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}.bs-input__calendar-btn{display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;padding:0;cursor:pointer;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__calendar-btn:disabled{cursor:not-allowed}.bs-input__combobox-popup{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline-start:0;inset-inline-end:0;z-index:1;box-sizing:border-box;background:var(--bs-input-listbox-bg);border-radius:var(--bs-input-radius);box-shadow:var(--bs-input-listbox-shadow);padding:var(--bs-spacing-50) 0}.bs-input__listbox{list-style:none;margin:0;padding:0;max-height:var(--bs-input-listbox-max-height);overflow-y:auto}.bs-input__option,.bs-input__listbox-status{padding:var(--bs-spacing-100) var(--bs-spacing-150);font-size:var(--bs-font-size-md);color:var(--bs-input-field-text)}.bs-input__option{cursor:pointer}.bs-input__option:hover,.bs-input__option--active{background:var(--bs-input-option-bg-active)}.bs-input__listbox-status{color:var(--bs-input-description-color)}.bs-input__clear{--bs-icon-button-size-xs:20px;--bs-icon-button-icon-size-xs:12px}.bs-input__end-icon{gap:var(--bs-spacing-50)}.bs-input__calendar{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__search-icon{width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__field--chip{flex-wrap:wrap;height:auto;min-height:var(--bs-input-height)}.bs-input__chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--bs-spacing-100);flex:1;min-width:0}.bs-input__chip{--bs-chip-informative-padding-x-plain-side:var(--bs-spacing-150)}.bs-input__chip-remove{--bs-icon-button-size-xs:20px;--bs-icon-button-icon-size-xs:12px;margin-inline-end:calc(var(--bs-spacing-50) * -1)}.bs-input__chip-input{flex:1;min-width:60px}.bs-input__country-select{flex-shrink:0;width:auto;border:none;outline:none;background:transparent;color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit}.bs-input__title-select,.bs-input__country-select{appearance:none;-webkit-appearance:none;-moz-appearance:none}.bs-input__title-select::-ms-expand,.bs-input__country-select::-ms-expand{display:none}.bs-input__select-chevron{flex-shrink:0;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size);color:var(--bs-input-icon-color);pointer-events:none}.bs-input__field--disabled .bs-input__select-chevron{color:var(--bs-input-icon-color-disabled)}.bs-input__initials-row{display:flex;gap:var(--bs-input-initials-gap);width:100%}.bs-input__field--initials-title{flex:0 0 auto;width:var(--bs-input-initials-title-width);gap:var(--bs-spacing-50)}.bs-input__field--initials-title .bs-input__select-chevron{width:10px;height:10px}.bs-input__field--initials-value{flex:1;min-width:0}.bs-input__country-select{width:auto}.bs-input__field--pin{border:none;padding:0;background:transparent;gap:var(--bs-input-pin-gap)}.bs-input__pin-cell{box-sizing:border-box;width:var(--bs-input-pin-cell-size);height:var(--bs-input-pin-cell-size);text-align:center;border:1px solid var(--bs-input-field-border);border-radius:var(--bs-input-radius);background:var(--bs-input-field-bg);color:var(--bs-input-field-text);font-size:var(--bs-font-size-md);font-family:inherit;outline:none}.bs-input__pin-cell:focus{border-color:var(--bs-input-field-border-focus)}.bs-input__field--pin.bs-input__field--disabled .bs-input__pin-cell{background:var(--bs-input-field-bg-disabled);cursor:not-allowed}.bs-input__field--pin.bs-input__field--error .bs-input__pin-cell{border-color:var(--bs-input-field-border-error)}.bs-input__picker-trigger{display:flex;align-items:center;gap:var(--bs-spacing-100);height:100%;text-align:start;cursor:pointer}.bs-input__picker-trigger:disabled{cursor:not-allowed}.bs-input__picker-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-input__picker-wrap{position:relative;flex:0 0 auto}.bs-input__field--country{flex:0 0 auto;width:auto;gap:var(--bs-spacing-50)}.bs-input__field--country .bs-input__control{flex:0 0 auto}.bs-input__field--country .bs-input__select-chevron{width:10px;height:10px}.bs-input__field--initials-title,.bs-input__field--country{cursor:pointer}.bs-input__field--disabled.bs-input__field--initials-title,.bs-input__field--disabled.bs-input__field--country{cursor:not-allowed}.bs-input__picker-popup{inset-inline-end:auto;min-width:max(100%, var(--bs-input-picker-min-width));z-index:2}.bs-input__flag{flex-shrink:0;line-height:1}.bs-input__flag--img{width:var(--bs-spacing-300);height:auto}.bs-input__option{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-input__option-label{flex:1;white-space:nowrap}.bs-input__option-check{display:none;flex-shrink:0;width:var(--bs-input-icon-size);height:var(--bs-input-icon-size)}.bs-input__option--selected{font-weight:var(--bs-font-weight-medium)}.bs-input__option--selected .bs-input__option-check{display:block}@media (forced-colors: active){.bs-input__control{border:1px solid FieldText}.bs-input__control:focus-visible{outline:2px solid Highlight;outline-offset:2px}}`;
|
|
4
|
+
|
|
5
|
+
const BsInput = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.bsInput = createEvent(this, "bsInput");
|
|
9
|
+
this.bsChange = createEvent(this, "bsChange");
|
|
10
|
+
this.bsOpen = createEvent(this, "bsOpen");
|
|
11
|
+
this.bsOptionSelect = createEvent(this, "bsOptionSelect");
|
|
12
|
+
this.bsChipAdd = createEvent(this, "bsChipAdd");
|
|
13
|
+
this.bsChipRemove = createEvent(this, "bsChipRemove");
|
|
14
|
+
this.bsTitleChange = createEvent(this, "bsTitleChange");
|
|
15
|
+
this.bsCountryChange = createEvent(this, "bsCountryChange");
|
|
16
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
17
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
21
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
get el() { return getElement(this); }
|
|
25
|
+
internals;
|
|
26
|
+
initialValue = '';
|
|
27
|
+
/** The `name` the value is submitted under in a surrounding `<form>`'s `FormData`. */
|
|
28
|
+
name;
|
|
29
|
+
/** Current value. Native `input`/`change` events don't cross the Shadow DOM boundary, so this
|
|
30
|
+
* component re-dispatches them as `bsInput`/`bsChange` custom events instead. Mutable so the
|
|
31
|
+
* `number` type's stepper buttons can update it directly. */
|
|
32
|
+
value = '';
|
|
33
|
+
/** Accessible name of the password toggle while the password is hidden. */
|
|
34
|
+
showPasswordLabel = 'Show password';
|
|
35
|
+
/** Accessible name of the password toggle while the password is visible. */
|
|
36
|
+
hidePasswordLabel = 'Hide password';
|
|
37
|
+
/** Accessible name of the number stepper's increment button. */
|
|
38
|
+
incrementLabel = 'Increment';
|
|
39
|
+
/** Accessible name of the number stepper's decrement button. */
|
|
40
|
+
decrementLabel = 'Decrement';
|
|
41
|
+
type = 'text';
|
|
42
|
+
label;
|
|
43
|
+
/** Accessible name for the control, used only when no visible `label` is set (e.g. a search field
|
|
44
|
+
* with no visible label). Passed to the inner native control, because an `aria-label` on the
|
|
45
|
+
* `<bs-input>` host cannot name an element inside its shadow root. */
|
|
46
|
+
ariaLabel = null;
|
|
47
|
+
placeholder;
|
|
48
|
+
description;
|
|
49
|
+
error;
|
|
50
|
+
disabled = false;
|
|
51
|
+
/** Marks the field as required: renders a red `*` after the label and sets `aria-required="true"`
|
|
52
|
+
* on the control. Applies regardless of `type`. */
|
|
53
|
+
required = false;
|
|
54
|
+
/** Step size for `type="number"`'s increment/decrement stepper buttons. */
|
|
55
|
+
step = 1;
|
|
56
|
+
/** Minimum value for `type="number"`'s stepper buttons. */
|
|
57
|
+
min;
|
|
58
|
+
/** Maximum value for `type="number"`'s stepper buttons. */
|
|
59
|
+
max;
|
|
60
|
+
/** Options for `type="select"` (rendered as `role="option"` rows of an in-shadow listbox) and `type="dropdown"` (rendered
|
|
61
|
+
* as a `bs-menu` of `bs-menu-item`s when `open`). Must be set as a JS property, not an HTML
|
|
62
|
+
* attribute -- see CONVENTIONS.md's non-string props rule. */
|
|
63
|
+
options = [];
|
|
64
|
+
/** Number of visible rows for `type="textarea"`. */
|
|
65
|
+
rows = 3;
|
|
66
|
+
/** Current chips for `type="chip"`. Must be set as a JS property, not an HTML attribute -- see
|
|
67
|
+
* CONVENTIONS.md's non-string props rule. */
|
|
68
|
+
chips = [];
|
|
69
|
+
/** Title select options for `type="initials"` (e.g. `['Mrs.', 'Mr.', 'Dr.']`). Must be set as a
|
|
70
|
+
* JS property, not an HTML attribute -- see CONVENTIONS.md's non-string props rule. */
|
|
71
|
+
titleOptions = [];
|
|
72
|
+
/** Current selected title for `type="initials"`. Named `initialsTitle` rather than `title` --
|
|
73
|
+
* `title` is a reserved standard HTML attribute (tooltip text) inherited by every element, and
|
|
74
|
+
* Stencil warns against shadowing it with a component `@Prop`. */
|
|
75
|
+
initialsTitle = '';
|
|
76
|
+
/** `type="initials"`: accessible name of the title picker (its visible text is just the title). */
|
|
77
|
+
titleLabel = 'Title';
|
|
78
|
+
/** Country select options for `type="country"`. Must be set as a JS property, not an HTML
|
|
79
|
+
* attribute -- see CONVENTIONS.md's non-string props rule. */
|
|
80
|
+
countryOptions = [];
|
|
81
|
+
/** Current selected country code for `type="country"`. */
|
|
82
|
+
country = '';
|
|
83
|
+
/** `type="country"`: accessible name of the country picker (its visible content is just the flag). */
|
|
84
|
+
countryLabel = 'Country';
|
|
85
|
+
/** Number of cells for `type="pin"`. */
|
|
86
|
+
length = 4;
|
|
87
|
+
/** `type="combobox"`: shows a loading indicator and, while no options match, a loading message
|
|
88
|
+
* in the popup instead of "no results". Use while fetching `options` asynchronously. */
|
|
89
|
+
loading = false;
|
|
90
|
+
/** `type="combobox"`: when true (default) `options` are filtered client-side by whether the label
|
|
91
|
+
* contains the typed text. Set false when you supply already-filtered results yourself (e.g. from
|
|
92
|
+
* a server) in response to `bsInput`. */
|
|
93
|
+
filterOptions = true;
|
|
94
|
+
/** `type="combobox"`: text of the popup row shown when no option matches. */
|
|
95
|
+
noResultsLabel = 'No results';
|
|
96
|
+
/** `type="combobox"`: text of the popup row shown while `loading` and nothing matches. */
|
|
97
|
+
loadingLabel = 'Loading...';
|
|
98
|
+
/** `type="combobox"`: accessible name of the clear button. */
|
|
99
|
+
clearLabel = 'Clear';
|
|
100
|
+
/** `type="date"`: accessible name of the default calendar button that opens the native picker. */
|
|
101
|
+
openPickerLabel = 'Open date picker';
|
|
102
|
+
/** Whether the `type="dropdown"` / `type="combobox"` popup is open. Reflects to an attribute so consumers can style
|
|
103
|
+
* an open state via CSS. When `options` is non-empty, this also controls whether the `bs-menu`
|
|
104
|
+
* of `bs-menu-item`s is rendered below the field. */
|
|
105
|
+
open = false;
|
|
106
|
+
bsInput;
|
|
107
|
+
bsChange;
|
|
108
|
+
/** Emitted when `type="dropdown"`'s trigger is toggled. See `open`'s doc comment for this type's
|
|
109
|
+
* shell-only limitation. */
|
|
110
|
+
bsOpen;
|
|
111
|
+
/** Emitted when a chip is committed (Enter pressed in the draft input) for `type="chip"`. */
|
|
112
|
+
/** Emitted when an option is chosen for `type="combobox"` (click or Enter), with the option's
|
|
113
|
+
* `{ label, value }`. `value` of the component itself becomes the option's label (the text shown). */
|
|
114
|
+
bsOptionSelect;
|
|
115
|
+
bsChipAdd;
|
|
116
|
+
/** Emitted when a chip's remove button is clicked for `type="chip"`. */
|
|
117
|
+
bsChipRemove;
|
|
118
|
+
/** Emitted when a title is chosen from the picker for `type="initials"`. */
|
|
119
|
+
bsTitleChange;
|
|
120
|
+
/** Emitted when a country is chosen from the picker for `type="country"`. */
|
|
121
|
+
bsCountryChange;
|
|
122
|
+
/** Tracks whether the `icon` slot has assigned content, so the leading icon wrapper only takes
|
|
123
|
+
* up space in the field when there's actually an icon (same pattern as `bs-button`). */
|
|
124
|
+
hasIcon = false;
|
|
125
|
+
/** Tracks whether the `end-icon` slot has assigned content, so the trailing icon wrapper only
|
|
126
|
+
* takes up space in the field when there's actually a trailing icon. */
|
|
127
|
+
hasEndIcon = false;
|
|
128
|
+
/** Whether `type="password"`'s native input is currently rendered as `type="text"` (revealed). The
|
|
129
|
+
* `type` prop itself stays `'password'` -- this only toggles the rendered native input's type. */
|
|
130
|
+
passwordVisible = false;
|
|
131
|
+
/** Draft text for `type="chip"`'s trailing input, committed to a chip on Enter. */
|
|
132
|
+
chipDraft = '';
|
|
133
|
+
/** Index into the visible (filtered) options of the active option for `type="combobox"`, -1 for none. */
|
|
134
|
+
activeIndex = -1;
|
|
135
|
+
/** True once the user has typed in the `type="combobox"` input, so opening it with a value that is
|
|
136
|
+
* already a chosen label still lists every option instead of only that one. */
|
|
137
|
+
comboFiltering = false;
|
|
138
|
+
pinInputs = [];
|
|
139
|
+
get isPopupType() {
|
|
140
|
+
return this.type === 'dropdown' || this.type === 'combobox';
|
|
141
|
+
}
|
|
142
|
+
/** `select`, `initials` (title) and `country` render a trigger button plus an in-shadow listbox
|
|
143
|
+
* styled like `bs-menu`, instead of a native `<select>` whose popup cannot be themed. */
|
|
144
|
+
get isPickerType() {
|
|
145
|
+
return this.type === 'select' || this.type === 'initials' || this.type === 'country';
|
|
146
|
+
}
|
|
147
|
+
typeahead = '';
|
|
148
|
+
typeaheadTimer;
|
|
149
|
+
get pickerItems() {
|
|
150
|
+
if (this.type === 'select')
|
|
151
|
+
return this.options.map(o => ({ value: o.value, label: o.label }));
|
|
152
|
+
if (this.type === 'initials')
|
|
153
|
+
return this.titleOptions.map(o => ({ value: o, label: o }));
|
|
154
|
+
if (this.type === 'country') {
|
|
155
|
+
return this.countryOptions.map(o => ({ value: o.code, label: `${o.code} ${o.label}`, flag: o.flagIcon }));
|
|
156
|
+
}
|
|
157
|
+
return [];
|
|
158
|
+
}
|
|
159
|
+
get pickerSelectedValue() {
|
|
160
|
+
return this.type === 'select' ? this.value : this.type === 'initials' ? this.initialsTitle : this.country;
|
|
161
|
+
}
|
|
162
|
+
get pickerSelectedIndex() {
|
|
163
|
+
return this.pickerItems.findIndex(i => i.value === this.pickerSelectedValue);
|
|
164
|
+
}
|
|
165
|
+
get visibleOptions() {
|
|
166
|
+
if (this.type !== 'combobox' || !this.filterOptions || !this.comboFiltering || !this.value)
|
|
167
|
+
return this.options;
|
|
168
|
+
const q = this.value.toLowerCase();
|
|
169
|
+
return this.options.filter(o => o.label.toLowerCase().includes(q));
|
|
170
|
+
}
|
|
171
|
+
componentDidRender() {
|
|
172
|
+
if ((this.type === 'combobox' || this.isPickerType) && this.open && this.activeIndex >= 0) {
|
|
173
|
+
const opt = this.el.shadowRoot?.getElementById(`option-${this.activeIndex}`);
|
|
174
|
+
opt?.scrollIntoView?.({ block: 'nearest' });
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/** Computes the initial `hasIcon`/`hasEndIcon` state directly from the host's light DOM
|
|
178
|
+
* children, before first render -- see `bs-button`'s `componentWillLoad` for why `slotchange`
|
|
179
|
+
* alone isn't enough for a slot that starts (and stays) empty. */
|
|
180
|
+
componentWillLoad() {
|
|
181
|
+
this.initialValue = this.value;
|
|
182
|
+
this.syncFormValue();
|
|
183
|
+
this.hasIcon = this.hasSlottedContent('icon');
|
|
184
|
+
this.hasEndIcon = this.hasSlottedContent('end-icon');
|
|
185
|
+
}
|
|
186
|
+
onFormStateChange() {
|
|
187
|
+
this.syncFormValue();
|
|
188
|
+
}
|
|
189
|
+
/** Pushes the current value + validity to the surrounding form. `chip` submits one entry per
|
|
190
|
+
* chip under `name`; every other type submits `value` as a single string. */
|
|
191
|
+
syncFormValue() {
|
|
192
|
+
if (!this.internals?.setFormValue)
|
|
193
|
+
return;
|
|
194
|
+
if (this.type === 'chip' && this.name) {
|
|
195
|
+
const data = new FormData();
|
|
196
|
+
this.chips.forEach(c => data.append(this.name, c));
|
|
197
|
+
this.internals.setFormValue(data);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
this.internals.setFormValue(this.value ?? '');
|
|
201
|
+
}
|
|
202
|
+
const empty = this.type === 'chip' ? this.chips.length === 0 : !this.value;
|
|
203
|
+
if (this.required && empty) {
|
|
204
|
+
this.internals.setValidity({ valueMissing: true }, 'Please fill out this field.');
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
this.internals.setValidity({});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/** Called by the browser when the surrounding `<form>` is reset. */
|
|
211
|
+
formResetCallback() {
|
|
212
|
+
this.value = this.initialValue;
|
|
213
|
+
}
|
|
214
|
+
/** Called when the browser restores form state (back/forward navigation, autofill). */
|
|
215
|
+
formStateRestoreCallback(state) {
|
|
216
|
+
if (typeof state === 'string')
|
|
217
|
+
this.value = state;
|
|
218
|
+
}
|
|
219
|
+
hasSlottedContent(slotName) {
|
|
220
|
+
return Array.from(this.el.childNodes).some(node => node.nodeType === Node.ELEMENT_NODE && node.getAttribute('slot') === slotName);
|
|
221
|
+
}
|
|
222
|
+
onIconSlotchange = (ev) => {
|
|
223
|
+
this.hasIcon = ev.target.assignedNodes().length > 0;
|
|
224
|
+
};
|
|
225
|
+
onEndIconSlotchange = (ev) => {
|
|
226
|
+
this.hasEndIcon = ev.target.assignedNodes().length > 0;
|
|
227
|
+
};
|
|
228
|
+
onInput = (ev) => {
|
|
229
|
+
const value = ev.target.value;
|
|
230
|
+
this.value = value;
|
|
231
|
+
if (this.type === 'combobox') {
|
|
232
|
+
this.comboFiltering = true;
|
|
233
|
+
this.activeIndex = -1;
|
|
234
|
+
this.setOpen(true);
|
|
235
|
+
}
|
|
236
|
+
this.bsInput.emit(value);
|
|
237
|
+
};
|
|
238
|
+
setOpen(open) {
|
|
239
|
+
if (this.open === open)
|
|
240
|
+
return;
|
|
241
|
+
this.open = open;
|
|
242
|
+
if (!open) {
|
|
243
|
+
this.activeIndex = -1;
|
|
244
|
+
this.comboFiltering = false;
|
|
245
|
+
}
|
|
246
|
+
this.bsOpen.emit(open);
|
|
247
|
+
}
|
|
248
|
+
onComboboxKeydown = (ev) => {
|
|
249
|
+
if (this.disabled)
|
|
250
|
+
return;
|
|
251
|
+
const n = this.visibleOptions.length;
|
|
252
|
+
switch (ev.key) {
|
|
253
|
+
case 'ArrowDown':
|
|
254
|
+
case 'ArrowUp': {
|
|
255
|
+
ev.preventDefault();
|
|
256
|
+
if (!this.open) {
|
|
257
|
+
this.setOpen(true);
|
|
258
|
+
this.activeIndex = n === 0 ? -1 : ev.key === 'ArrowDown' ? 0 : n - 1;
|
|
259
|
+
}
|
|
260
|
+
else if (n > 0) {
|
|
261
|
+
const down = ev.key === 'ArrowDown';
|
|
262
|
+
this.activeIndex = this.activeIndex === -1 ? (down ? 0 : n - 1) : (this.activeIndex + (down ? 1 : -1) + n) % n;
|
|
263
|
+
}
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
// Home/End only drive the list while an option is active; otherwise they keep moving the
|
|
267
|
+
// caret in the text field, as users expect from an editable combobox.
|
|
268
|
+
case 'Home':
|
|
269
|
+
case 'End':
|
|
270
|
+
if (this.open && this.activeIndex >= 0 && n > 0) {
|
|
271
|
+
ev.preventDefault();
|
|
272
|
+
this.activeIndex = ev.key === 'Home' ? 0 : n - 1;
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
case 'Enter':
|
|
276
|
+
if (this.open && this.activeIndex >= 0 && this.visibleOptions[this.activeIndex]) {
|
|
277
|
+
ev.preventDefault();
|
|
278
|
+
this.selectComboOption(this.visibleOptions[this.activeIndex]);
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
selectComboOption(option) {
|
|
284
|
+
this.value = option.label;
|
|
285
|
+
this.setOpen(false);
|
|
286
|
+
this.bsChange.emit(this.value);
|
|
287
|
+
this.bsOptionSelect.emit({ label: option.label, value: option.value });
|
|
288
|
+
}
|
|
289
|
+
onClear = () => {
|
|
290
|
+
if (this.disabled)
|
|
291
|
+
return;
|
|
292
|
+
this.value = '';
|
|
293
|
+
this.comboFiltering = true;
|
|
294
|
+
this.activeIndex = -1;
|
|
295
|
+
this.bsInput.emit('');
|
|
296
|
+
this.bsChange.emit('');
|
|
297
|
+
this.el.shadowRoot?.getElementById('control')?.focus();
|
|
298
|
+
};
|
|
299
|
+
onDatePickerOpen = () => {
|
|
300
|
+
if (this.disabled || this.type !== 'date')
|
|
301
|
+
return;
|
|
302
|
+
const input = this.el.shadowRoot?.getElementById('control');
|
|
303
|
+
if (!input)
|
|
304
|
+
return;
|
|
305
|
+
try {
|
|
306
|
+
if (typeof input.showPicker === 'function')
|
|
307
|
+
input.showPicker();
|
|
308
|
+
else
|
|
309
|
+
input.focus();
|
|
310
|
+
}
|
|
311
|
+
catch {
|
|
312
|
+
input.focus();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
onChange = (ev) => {
|
|
316
|
+
const value = ev.target.value;
|
|
317
|
+
this.value = value;
|
|
318
|
+
this.bsChange.emit(value);
|
|
319
|
+
};
|
|
320
|
+
clampNumber(n) {
|
|
321
|
+
if (this.min !== undefined && n < this.min)
|
|
322
|
+
n = this.min;
|
|
323
|
+
if (this.max !== undefined && n > this.max)
|
|
324
|
+
n = this.max;
|
|
325
|
+
return n;
|
|
326
|
+
}
|
|
327
|
+
onStepperIncrement = () => {
|
|
328
|
+
if (this.disabled)
|
|
329
|
+
return;
|
|
330
|
+
const next = this.clampNumber((parseFloat(this.value) || 0) + this.step);
|
|
331
|
+
this.value = String(next);
|
|
332
|
+
this.bsChange.emit(this.value);
|
|
333
|
+
};
|
|
334
|
+
onStepperDecrement = () => {
|
|
335
|
+
if (this.disabled)
|
|
336
|
+
return;
|
|
337
|
+
const next = this.clampNumber((parseFloat(this.value) || 0) - this.step);
|
|
338
|
+
this.value = String(next);
|
|
339
|
+
this.bsChange.emit(this.value);
|
|
340
|
+
};
|
|
341
|
+
onTogglePasswordVisibility = () => {
|
|
342
|
+
this.passwordVisible = !this.passwordVisible;
|
|
343
|
+
};
|
|
344
|
+
onDropdownToggle = () => {
|
|
345
|
+
if (this.disabled)
|
|
346
|
+
return;
|
|
347
|
+
this.open = !this.open;
|
|
348
|
+
this.bsOpen.emit(this.open);
|
|
349
|
+
};
|
|
350
|
+
onDropdownKeydown = (ev) => {
|
|
351
|
+
if (ev.key === 'Enter' || ev.key === ' ') {
|
|
352
|
+
ev.preventDefault();
|
|
353
|
+
this.onDropdownToggle();
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
onDropdownOptionSelect = (option) => () => {
|
|
357
|
+
this.value = option.label;
|
|
358
|
+
this.open = false;
|
|
359
|
+
this.bsChange.emit(this.value);
|
|
360
|
+
};
|
|
361
|
+
/** Closes the `type="dropdown"` menu on Escape, from anywhere within the component (host is the
|
|
362
|
+
* default @Listen target, and both keydown from the native control and from `bs-menu-item`
|
|
363
|
+
* buttons bubble/compose up to it). */
|
|
364
|
+
onHostKeydown(ev) {
|
|
365
|
+
if ((this.isPopupType || this.isPickerType) && this.open && ev.key === 'Escape') {
|
|
366
|
+
if (this.type === 'combobox' || this.isPickerType)
|
|
367
|
+
this.setOpen(false);
|
|
368
|
+
else
|
|
369
|
+
this.open = false;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/** Closes the `type="dropdown"` menu once focus leaves the component entirely (e.g. Tab away, or
|
|
373
|
+
* a click outside that moves focus elsewhere) -- `focusout` is composed, so it bubbles across
|
|
374
|
+
* the `bs-menu-item` shadow boundary too. */
|
|
375
|
+
onHostFocusOut(ev) {
|
|
376
|
+
if (!(this.isPopupType || this.isPickerType) || !this.open)
|
|
377
|
+
return;
|
|
378
|
+
const related = ev.relatedTarget;
|
|
379
|
+
if (!related || !this.el.contains(related)) {
|
|
380
|
+
if (this.type === 'combobox' || this.isPickerType)
|
|
381
|
+
this.setOpen(false);
|
|
382
|
+
else
|
|
383
|
+
this.open = false;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/** Closes an open picker on a click anywhere outside the component (focusout alone misses clicks
|
|
387
|
+
* on non-focusable page areas in some browsers). */
|
|
388
|
+
onDocumentClick(ev) {
|
|
389
|
+
if (!this.isPickerType || !this.open)
|
|
390
|
+
return;
|
|
391
|
+
if (!ev.composedPath().includes(this.el))
|
|
392
|
+
this.setOpen(false);
|
|
393
|
+
}
|
|
394
|
+
onChipDraftInput = (ev) => {
|
|
395
|
+
this.chipDraft = ev.target.value;
|
|
396
|
+
};
|
|
397
|
+
onChipDraftKeydown = (ev) => {
|
|
398
|
+
if (ev.key === 'Enter') {
|
|
399
|
+
ev.preventDefault();
|
|
400
|
+
const value = this.chipDraft.trim();
|
|
401
|
+
if (value) {
|
|
402
|
+
this.bsChipAdd.emit(value);
|
|
403
|
+
this.chipDraft = '';
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
onChipRemove = (chip) => () => {
|
|
408
|
+
this.bsChipRemove.emit(chip);
|
|
409
|
+
};
|
|
410
|
+
pickerCommit(item) {
|
|
411
|
+
if (this.type === 'select') {
|
|
412
|
+
this.value = item.value;
|
|
413
|
+
this.bsInput.emit(item.value);
|
|
414
|
+
this.bsChange.emit(item.value);
|
|
415
|
+
}
|
|
416
|
+
else if (this.type === 'initials') {
|
|
417
|
+
this.initialsTitle = item.value;
|
|
418
|
+
this.bsTitleChange.emit(item.value);
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
this.country = item.value;
|
|
422
|
+
this.bsCountryChange.emit(item.value);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
pickerOpen() {
|
|
426
|
+
if (this.pickerItems.length === 0)
|
|
427
|
+
return;
|
|
428
|
+
this.setOpen(true);
|
|
429
|
+
this.activeIndex = Math.max(this.pickerSelectedIndex, 0);
|
|
430
|
+
}
|
|
431
|
+
onPickerToggle = () => {
|
|
432
|
+
if (this.disabled)
|
|
433
|
+
return;
|
|
434
|
+
if (this.open)
|
|
435
|
+
this.setOpen(false);
|
|
436
|
+
else
|
|
437
|
+
this.pickerOpen();
|
|
438
|
+
};
|
|
439
|
+
onPickerOptionClick = (item) => () => {
|
|
440
|
+
this.pickerCommit(item);
|
|
441
|
+
this.setOpen(false);
|
|
442
|
+
};
|
|
443
|
+
onPickerKeyup = (ev) => {
|
|
444
|
+
// Some browsers synthesize a click from Space on keyup even if keydown was prevented.
|
|
445
|
+
if (ev.key === ' ')
|
|
446
|
+
ev.preventDefault();
|
|
447
|
+
};
|
|
448
|
+
onPickerKeydown = (ev) => {
|
|
449
|
+
if (this.disabled)
|
|
450
|
+
return;
|
|
451
|
+
const items = this.pickerItems;
|
|
452
|
+
const n = items.length;
|
|
453
|
+
if (n === 0)
|
|
454
|
+
return;
|
|
455
|
+
switch (ev.key) {
|
|
456
|
+
case 'ArrowDown':
|
|
457
|
+
case 'ArrowUp': {
|
|
458
|
+
ev.preventDefault();
|
|
459
|
+
if (!this.open) {
|
|
460
|
+
this.pickerOpen();
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
const down = ev.key === 'ArrowDown';
|
|
464
|
+
this.activeIndex = (this.activeIndex + (down ? 1 : -1) + n) % n;
|
|
465
|
+
}
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
case 'Home':
|
|
469
|
+
case 'End':
|
|
470
|
+
ev.preventDefault();
|
|
471
|
+
if (!this.open)
|
|
472
|
+
this.pickerOpen();
|
|
473
|
+
this.activeIndex = ev.key === 'Home' ? 0 : n - 1;
|
|
474
|
+
return;
|
|
475
|
+
case 'Enter':
|
|
476
|
+
case ' ':
|
|
477
|
+
if (ev.key === ' ' && this.typeahead)
|
|
478
|
+
break;
|
|
479
|
+
ev.preventDefault();
|
|
480
|
+
if (this.open && this.activeIndex >= 0 && items[this.activeIndex]) {
|
|
481
|
+
this.pickerCommit(items[this.activeIndex]);
|
|
482
|
+
this.setOpen(false);
|
|
483
|
+
}
|
|
484
|
+
else if (!this.open) {
|
|
485
|
+
this.pickerOpen();
|
|
486
|
+
}
|
|
487
|
+
return;
|
|
488
|
+
case 'Tab':
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
if (ev.key.length === 1 && !ev.ctrlKey && !ev.metaKey && !ev.altKey) {
|
|
492
|
+
ev.preventDefault();
|
|
493
|
+
this.typeahead += ev.key.toLowerCase();
|
|
494
|
+
clearTimeout(this.typeaheadTimer);
|
|
495
|
+
this.typeaheadTimer = setTimeout(() => (this.typeahead = ''), 500);
|
|
496
|
+
const from = this.open ? this.activeIndex : this.pickerSelectedIndex;
|
|
497
|
+
// The same repeated letter cycles through matches; a longer prefix keeps the current match.
|
|
498
|
+
const single = this.typeahead.split('').every(c => c === this.typeahead[0]);
|
|
499
|
+
const needle = single ? this.typeahead[0] : this.typeahead;
|
|
500
|
+
const start = single ? from + 1 : Math.max(from, 0);
|
|
501
|
+
for (let k = 0; k < n; k++) {
|
|
502
|
+
const idx = (start + k + n) % n;
|
|
503
|
+
if (items[idx].label.toLowerCase().startsWith(needle)) {
|
|
504
|
+
if (this.open)
|
|
505
|
+
this.activeIndex = idx;
|
|
506
|
+
else
|
|
507
|
+
this.pickerCommit(items[idx]);
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
onPinInput = (index) => (ev) => {
|
|
514
|
+
const input = ev.target;
|
|
515
|
+
let value = input.value;
|
|
516
|
+
if (value.length > 1) {
|
|
517
|
+
value = value.slice(-1);
|
|
518
|
+
input.value = value;
|
|
519
|
+
}
|
|
520
|
+
if (value && index < this.length - 1) {
|
|
521
|
+
this.pinInputs[index + 1]?.focus();
|
|
522
|
+
}
|
|
523
|
+
this.value = this.pinInputs.map(i => i?.value ?? '').join('');
|
|
524
|
+
this.bsChange.emit(this.value);
|
|
525
|
+
};
|
|
526
|
+
onPinKeydown = (index) => (ev) => {
|
|
527
|
+
if (ev.key === 'Backspace' && !ev.target.value && index > 0) {
|
|
528
|
+
this.pinInputs[index - 1]?.focus();
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
get showsEndIconArea() {
|
|
532
|
+
return (this.type === 'number' || this.type === 'password' || this.type === 'dropdown' || this.type === 'combobox' || this.type === 'date' || this.hasEndIcon);
|
|
533
|
+
}
|
|
534
|
+
get showsIconArea() {
|
|
535
|
+
return (this.type === 'search' && !this.hasIcon) || this.hasIcon;
|
|
536
|
+
}
|
|
537
|
+
renderIconContent() {
|
|
538
|
+
if (this.type === 'search' && !this.hasIcon) {
|
|
539
|
+
return (h("svg", { class: "bs-input__search-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "7", cy: "7", r: "5", stroke: "currentColor", "stroke-width": "1.3" }), h("path", { d: "M11 11L14.5 14.5", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round" })));
|
|
540
|
+
}
|
|
541
|
+
return h("slot", { name: "icon", onSlotchange: this.onIconSlotchange });
|
|
542
|
+
}
|
|
543
|
+
renderEndIconContent() {
|
|
544
|
+
if (this.type === 'number') {
|
|
545
|
+
return (h("span", { class: "bs-input__stepper" }, h("button", { type: "button", part: "control", class: "bs-input__stepper-btn", "aria-label": this.incrementLabel, tabIndex: -1, disabled: this.disabled, onClick: this.onStepperIncrement }, h("svg", { viewBox: "0 0 10 6", width: "10", height: "6", "aria-hidden": "true" }, h("path", { d: "M1 5L5 1L9 5", stroke: "currentColor", "stroke-width": "1.3", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { type: "button", part: "control", class: "bs-input__stepper-btn", "aria-label": this.decrementLabel, tabIndex: -1, disabled: this.disabled, onClick: this.onStepperDecrement }, h("svg", { viewBox: "0 0 10 6", width: "10", height: "6", "aria-hidden": "true" }, h("path", { d: "M1 1L5 5L9 1", stroke: "currentColor", "stroke-width": "1.3", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" })))));
|
|
546
|
+
}
|
|
547
|
+
if (this.type === 'password') {
|
|
548
|
+
return (h("button", { type: "button", part: "control", class: "bs-input__password-toggle", "aria-label": this.passwordVisible ? this.hidePasswordLabel : this.showPasswordLabel, disabled: this.disabled, onClick: this.onTogglePasswordVisibility }, this.passwordVisible ? (h("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M1 8C2.2 5.5 4.9 3 8 3C11.1 3 13.8 5.5 15 8C13.8 10.5 11.1 13 8 13C4.9 13 2.2 10.5 1 8Z", stroke: "currentColor", "stroke-width": "1.2", "stroke-linejoin": "round" }), h("circle", { cx: "8", cy: "8", r: "2", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M2 2L14 14", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }))) : (h("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M1 8C2.2 5.5 4.9 3 8 3C11.1 3 13.8 5.5 15 8C13.8 10.5 11.1 13 8 13C4.9 13 2.2 10.5 1 8Z", stroke: "currentColor", "stroke-width": "1.2", "stroke-linejoin": "round" }), h("circle", { cx: "8", cy: "8", r: "2", stroke: "currentColor", "stroke-width": "1.2" })))));
|
|
549
|
+
}
|
|
550
|
+
if (this.type === 'combobox') {
|
|
551
|
+
return [
|
|
552
|
+
this.loading && h("bs-spinner", { class: "bs-input__combobox-spinner", size: "sm", label: this.loadingLabel }),
|
|
553
|
+
this.value && !this.disabled && (h("bs-icon-button", { part: "clear", class: "bs-input__clear", variant: "subtle", size: "xs", ariaLabel: this.clearLabel, onMouseDown: (ev) => ev.preventDefault(), onClick: this.onClear }, h(ChipRemoveIcon, null))),
|
|
554
|
+
h("svg", { class: "bs-input__chevron", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" })),
|
|
555
|
+
];
|
|
556
|
+
}
|
|
557
|
+
if (this.type === 'dropdown') {
|
|
558
|
+
return (h("svg", { class: "bs-input__chevron", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
559
|
+
}
|
|
560
|
+
if (this.type === 'date' && !this.hasEndIcon) {
|
|
561
|
+
return (h("button", { type: "button", class: "bs-input__calendar-btn", "aria-label": this.openPickerLabel, tabIndex: -1, disabled: this.disabled }, h("svg", { class: "bs-input__calendar", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("rect", { x: "2", y: "3", width: "12", height: "11", rx: "1", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M2 6.5H14", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M5 1.5V4M11 1.5V4", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }))));
|
|
562
|
+
}
|
|
563
|
+
return h("slot", { name: "end-icon", onSlotchange: this.onEndIconSlotchange });
|
|
564
|
+
}
|
|
565
|
+
renderStandardControl() {
|
|
566
|
+
const isCombobox = this.type === 'combobox';
|
|
567
|
+
const nativeType = this.type === 'password' ? (this.passwordVisible ? 'text' : 'password') : this.isPopupType ? 'text' : this.type;
|
|
568
|
+
const activeId = isCombobox && this.open && this.activeIndex >= 0 ? `option-${this.activeIndex}` : undefined;
|
|
569
|
+
return (h("input", { id: "control", part: "control", class: "bs-input__control", type: nativeType, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.type === 'dropdown',
|
|
570
|
+
// The popup state belongs on the focusable control (a roleless wrapper div can't carry
|
|
571
|
+
// aria-haspopup/aria-expanded -- axe's aria-allowed-attr flags it).
|
|
572
|
+
role: this.isPopupType ? 'combobox' : undefined, "aria-haspopup": this.isPopupType ? 'listbox' : undefined, "aria-expanded": this.isPopupType ? String(this.open) : undefined, "aria-controls": isCombobox ? 'listbox' : undefined, "aria-activedescendant": activeId, "aria-autocomplete": isCombobox ? 'list' : undefined, autocomplete: isCombobox ? 'off' : undefined, "aria-label": this.label ? undefined : this.ariaLabel ?? undefined, min: this.type === 'number' ? this.min : undefined, max: this.type === 'number' ? this.max : undefined, step: this.type === 'number' ? this.step : undefined, "aria-describedby": this.error || this.description ? 'description-or-error' : undefined, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, onInput: this.onInput, onChange: this.onChange, onKeyDown: isCombobox ? this.onComboboxKeydown : undefined }));
|
|
573
|
+
}
|
|
574
|
+
/** An image URL flag renders as `<img>`; anything else (an emoji) as text. */
|
|
575
|
+
renderFlag(flag) {
|
|
576
|
+
const isUrl = /^(https?:|\/|\.|data:)/.test(flag);
|
|
577
|
+
return isUrl ? (h("img", { part: "flag", class: "bs-input__flag bs-input__flag--img", src: flag, alt: "" })) : (h("span", { part: "flag", class: "bs-input__flag", "aria-hidden": "true" }, flag));
|
|
578
|
+
}
|
|
579
|
+
/** The trigger button of the select/title/country pickers: a focusable `role="combobox"` whose
|
|
580
|
+
* listbox lives in this same shadow root so aria-controls/aria-activedescendant resolve. */
|
|
581
|
+
renderPickerTrigger() {
|
|
582
|
+
const items = this.pickerItems;
|
|
583
|
+
const sel = items[this.pickerSelectedIndex];
|
|
584
|
+
const shown = sel ?? (this.placeholder ? undefined : items[0]);
|
|
585
|
+
const isCountry = this.type === 'country';
|
|
586
|
+
const isTitle = this.type === 'initials';
|
|
587
|
+
const isSelect = this.type === 'select';
|
|
588
|
+
const name = isCountry ? this.countryLabel : isTitle ? this.titleLabel : this.label ? undefined : this.ariaLabel ?? undefined;
|
|
589
|
+
const countryName = isCountry && shown ? this.countryOptions.find(o => o.code === shown.value)?.label : undefined;
|
|
590
|
+
const ariaLabel = isCountry ? `${name}${countryName ? `: ${countryName}` : ''}` : name;
|
|
591
|
+
return (h("button", { type: "button", id: isSelect ? 'control' : undefined, part: "control", class: `bs-input__control bs-input__picker-trigger ${isCountry ? 'bs-input__country-select' : isTitle ? 'bs-input__title-select' : ''}`, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": String(this.open), "aria-controls": "listbox", "aria-activedescendant": this.open && this.activeIndex >= 0 ? `option-${this.activeIndex}` : undefined, "aria-label": ariaLabel, "aria-describedby": isSelect && (this.error || this.description) ? 'description-or-error' : undefined, "aria-invalid": isSelect && this.error ? 'true' : undefined, "aria-required": isSelect && this.required ? 'true' : undefined, disabled: this.disabled, onKeyDown: this.onPickerKeydown, onKeyUp: this.onPickerKeyup }, isCountry ? (shown?.flag ? (this.renderFlag(shown.flag)) : (h("span", { class: "bs-input__picker-text" }, shown?.value))) : (h("span", { class: "bs-input__picker-text" }, shown ? shown.label : this.placeholder))));
|
|
592
|
+
}
|
|
593
|
+
renderPickerPopup() {
|
|
594
|
+
const listName = this.type === 'initials' ? this.titleLabel : this.type === 'country' ? this.countryLabel : this.label || this.ariaLabel || undefined;
|
|
595
|
+
return (h("div", { part: "menu", class: "bs-input__combobox-popup bs-input__picker-popup" }, h("ul", { id: "listbox", role: "listbox", class: "bs-input__listbox", "aria-label": listName }, this.pickerItems.map((item, i) => {
|
|
596
|
+
const selected = item.value === this.pickerSelectedValue;
|
|
597
|
+
return (h("li", { key: item.value, id: `option-${i}`, part: "option", role: "option", "aria-selected": String(selected), class: `bs-input__option ${i === this.activeIndex ? 'bs-input__option--active' : ''} ${selected ? 'bs-input__option--selected' : ''}`, onMouseDown: (ev) => ev.preventDefault(), onClick: this.onPickerOptionClick(item) }, item.flag && this.renderFlag(item.flag), h("span", { class: "bs-input__option-label" }, item.label), selected && (h("svg", { class: "bs-input__option-check", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M3 8.5L6.5 12L13 4.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))));
|
|
598
|
+
}))));
|
|
599
|
+
}
|
|
600
|
+
renderSelectControl() {
|
|
601
|
+
return [this.renderPickerTrigger(), this.renderSelectChevron()];
|
|
602
|
+
}
|
|
603
|
+
renderTextareaControl() {
|
|
604
|
+
return (h("textarea", { id: "control", part: "control", class: "bs-input__control bs-input__control--textarea", rows: this.rows, value: this.value, placeholder: this.placeholder, disabled: this.disabled, "aria-describedby": this.error || this.description ? 'description-or-error' : undefined, "aria-invalid": this.error ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-label": this.label ? undefined : this.ariaLabel ?? undefined, onInput: this.onInput, onChange: this.onChange }));
|
|
605
|
+
}
|
|
606
|
+
renderChipControl() {
|
|
607
|
+
return (h("div", { class: "bs-input__chips" }, this.chips.map(chip => (h("bs-chip-informative", { part: "chip", class: "bs-input__chip", size: "md", disabled: this.disabled }, chip, h("bs-icon-button", { part: "chip-remove", class: "bs-input__chip-remove", variant: "subtle", size: "xs", ariaLabel: `Remove ${chip}`, disabled: this.disabled, onClick: this.onChipRemove(chip) }, h(ChipRemoveIcon, null))))), h("input", { id: "control", part: "control", class: "bs-input__control bs-input__chip-input", type: "text", value: this.chipDraft, placeholder: this.placeholder, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onChipDraftInput, onKeyDown: this.onChipDraftKeydown })));
|
|
608
|
+
}
|
|
609
|
+
// type="initials" renders two genuinely separate bordered boxes side by side (each with its own
|
|
610
|
+
// border/radius/background, a small gap between them), not one shared field wrapper -- Figma
|
|
611
|
+
// node 10306:101047 specs this as two independent "Base Input" containers, unlike every other
|
|
612
|
+
// composite type in this file (`country` included) which shares one field box across its
|
|
613
|
+
// sub-controls. Bypasses renderField()/renderControl() entirely for this reason, the same way
|
|
614
|
+
// `pin` already does with its own renderPinField().
|
|
615
|
+
renderInitialsField() {
|
|
616
|
+
const disabledClass = this.disabled ? 'bs-input__field--disabled' : '';
|
|
617
|
+
const errorClass = this.error ? 'bs-input__field--error' : '';
|
|
618
|
+
return (h("div", { class: "bs-input__initials-row" }, h("div", { class: "bs-input__picker-wrap" }, h("div", { part: "field", class: `bs-input__field bs-input__field--initials-title ${errorClass} ${disabledClass}`, onClick: this.onPickerToggle }, this.renderPickerTrigger(), this.renderSelectChevron()), this.open && this.renderPickerPopup()), h("div", { part: "field", class: `bs-input__field bs-input__field--initials-value ${errorClass} ${disabledClass}` }, h("input", { id: "control", part: "control", class: "bs-input__control", type: "text", value: this.value, placeholder: this.placeholder, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onInput, onChange: this.onChange }))));
|
|
619
|
+
}
|
|
620
|
+
// type="country": like initials, two separate bordered fields -- a compact flag picker and the
|
|
621
|
+
// phone input.
|
|
622
|
+
renderCountryField() {
|
|
623
|
+
const disabledClass = this.disabled ? 'bs-input__field--disabled' : '';
|
|
624
|
+
const errorClass = this.error ? 'bs-input__field--error' : '';
|
|
625
|
+
return (h("div", { class: "bs-input__initials-row bs-input__country-row" }, h("div", { class: "bs-input__picker-wrap" }, h("div", { part: "field", class: `bs-input__field bs-input__field--country ${errorClass} ${disabledClass}`, onClick: this.onPickerToggle }, this.renderPickerTrigger(), this.renderSelectChevron()), this.open && this.renderPickerPopup()), h("div", { part: "field", class: `bs-input__field bs-input__field--initials-value ${errorClass} ${disabledClass}` }, h("input", { id: "control", part: "control", class: "bs-input__control", type: "text", value: this.value, placeholder: this.placeholder, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onInput, onChange: this.onChange }))));
|
|
626
|
+
}
|
|
627
|
+
/* Both the initials title <select> and the country <select> have their native OS arrow
|
|
628
|
+
suppressed (appearance: none in CSS) in favor of this single chevron-down, matching
|
|
629
|
+
type="dropdown"'s own chevron -- native rendering varies by OS/browser (e.g. an up+down
|
|
630
|
+
double arrow on some platforms), which this replaces with one consistent icon. */
|
|
631
|
+
renderSelectChevron() {
|
|
632
|
+
return (h("svg", { class: "bs-input__select-chevron", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
633
|
+
}
|
|
634
|
+
renderControl() {
|
|
635
|
+
switch (this.type) {
|
|
636
|
+
case 'select':
|
|
637
|
+
return this.renderSelectControl();
|
|
638
|
+
case 'textarea':
|
|
639
|
+
return this.renderTextareaControl();
|
|
640
|
+
case 'chip':
|
|
641
|
+
return this.renderChipControl();
|
|
642
|
+
default:
|
|
643
|
+
return this.renderStandardControl();
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
onComboboxFieldClick = (ev) => {
|
|
647
|
+
if (this.disabled)
|
|
648
|
+
return;
|
|
649
|
+
// The clear button handles itself; only plain field clicks toggle the popup.
|
|
650
|
+
if (ev.target.closest?.('[part="clear"]'))
|
|
651
|
+
return;
|
|
652
|
+
this.setOpen(!this.open);
|
|
653
|
+
};
|
|
654
|
+
/** The `type="combobox"` popup. Rendered inside this shadow root so `aria-controls` and
|
|
655
|
+
* `aria-activedescendant` on the input resolve to real elements. */
|
|
656
|
+
renderComboboxPopup() {
|
|
657
|
+
const opts = this.visibleOptions;
|
|
658
|
+
return (h("div", { part: "menu", class: "bs-input__combobox-popup" }, h("ul", { id: "listbox", role: "listbox", class: "bs-input__listbox", "aria-label": this.label || this.ariaLabel || undefined }, opts.map((option, i) => (h("li", { key: option.value, id: `option-${i}`, part: "option", role: "option", "aria-selected": String(i === this.activeIndex), class: `bs-input__option ${i === this.activeIndex ? 'bs-input__option--active' : ''}`,
|
|
659
|
+
// Keep focus in the input while choosing with the mouse.
|
|
660
|
+
onMouseDown: (ev) => ev.preventDefault(), onClick: () => this.selectComboOption(option) }, option.label)))), opts.length === 0 && (h("div", { role: "status", class: "bs-input__listbox-status" }, this.loading ? this.loadingLabel : this.noResultsLabel))));
|
|
661
|
+
}
|
|
662
|
+
renderField() {
|
|
663
|
+
const fieldClasses = [
|
|
664
|
+
'bs-input__field',
|
|
665
|
+
this.error ? 'bs-input__field--error' : '',
|
|
666
|
+
this.disabled ? 'bs-input__field--disabled' : '',
|
|
667
|
+
this.type === 'textarea' ? 'bs-input__field--textarea' : '',
|
|
668
|
+
this.type === 'chip' ? 'bs-input__field--chip' : '',
|
|
669
|
+
]
|
|
670
|
+
.filter(Boolean)
|
|
671
|
+
.join(' ');
|
|
672
|
+
const isDropdown = this.type === 'dropdown';
|
|
673
|
+
return (h("div", { class: "bs-input__field-wrapper" }, h("div", { part: "field", class: fieldClasses, onClick: isDropdown ? this.onDropdownToggle : this.type === 'combobox' ? this.onComboboxFieldClick : this.type === 'select' ? this.onPickerToggle : undefined, onKeyDown: isDropdown ? this.onDropdownKeydown : undefined }, h("span", { part: "icon", class: `bs-input__icon ${this.showsIconArea ? 'bs-input__icon--visible' : ''}` }, this.renderIconContent()), this.renderControl(), h("span", { part: "end-icon", class: `bs-input__end-icon ${this.showsEndIconArea ? 'bs-input__end-icon--visible' : ''}`, onClick: this.type === 'date' ? this.onDatePickerOpen : undefined }, this.renderEndIconContent())), this.type === 'combobox' && this.open && this.renderComboboxPopup(), this.type === 'select' && this.open && this.renderPickerPopup(), isDropdown && this.open && this.options.length > 0 && (h("bs-menu", { part: "menu", class: "bs-input__dropdown-menu", role: "listbox" }, this.options.map(option => (h("bs-menu-item", { key: option.value, onBsSelect: this.onDropdownOptionSelect(option) }, option.label)))))));
|
|
674
|
+
}
|
|
675
|
+
renderPinField() {
|
|
676
|
+
this.pinInputs = [];
|
|
677
|
+
const errorClass = this.error ? 'bs-input__field--error' : '';
|
|
678
|
+
const disabledClass = this.disabled ? 'bs-input__field--disabled' : '';
|
|
679
|
+
return (h("div", { part: "field", class: `bs-input__field bs-input__field--pin ${errorClass} ${disabledClass}` }, Array.from({ length: this.length }).map((_, i) => (h("input", { id: i === 0 ? 'control' : undefined, ref: el => (this.pinInputs[i] = el), part: "control", class: "bs-input__pin-cell", type: "text", inputMode: "numeric", maxLength: 1, value: this.value[i] ?? '', disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onPinInput(i), onKeyDown: this.onPinKeydown(i) })))));
|
|
680
|
+
}
|
|
681
|
+
render() {
|
|
682
|
+
return (h("div", { key: '9eea22c2c7cbcbdcb2c37403b89c10efc145228d', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
|
|
683
|
+
// "control" is a fixed id, not a generated one -- safe because Shadow DOM scopes ids
|
|
684
|
+
// to this instance's own shadow root, so it can never collide with another bs-input.
|
|
685
|
+
h("label", { key: 'cbd4e5f0cd8fb0f004f7bc9f7e0dc3433d25e8dc', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: 'bcd1fb8d607e87c204cb7d93506aa1c648478f34', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : this.type === 'initials' ? this.renderInitialsField() : this.type === 'country' ? this.renderCountryField() : this.renderField(), this.error ? (h("span", { id: "description-or-error", part: "error", class: "bs-input__error" }, h("svg", { part: "error-icon", class: "bs-input__error-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M8 5V8.5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }), h("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })), this.error)) : this.description ? (h("span", { id: "description-or-error", part: "description", class: "bs-input__description" }, this.description)) : null));
|
|
686
|
+
}
|
|
687
|
+
static get delegatesFocus() { return true; }
|
|
688
|
+
static get formAssociated() { return true; }
|
|
689
|
+
static get watchers() { return {
|
|
690
|
+
"value": [{
|
|
691
|
+
"onFormStateChange": 0
|
|
692
|
+
}],
|
|
693
|
+
"type": [{
|
|
694
|
+
"onFormStateChange": 0
|
|
695
|
+
}],
|
|
696
|
+
"chips": [{
|
|
697
|
+
"onFormStateChange": 0
|
|
698
|
+
}],
|
|
699
|
+
"required": [{
|
|
700
|
+
"onFormStateChange": 0
|
|
701
|
+
}]
|
|
702
|
+
}; }
|
|
703
|
+
};
|
|
704
|
+
const ChipRemoveIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M18.75 5.25L5.25 18.75", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M18.75 18.75L5.25 5.25", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
705
|
+
BsInput.style = bsInputCss();
|
|
706
|
+
|
|
707
|
+
const bsMenuCss = () => `:host{display:block;--bs-menu-bg:var(--bs-surface-raised);--bs-menu-radius:var(--bs-border-radius-100);--bs-menu-padding-y:var(--bs-spacing-50);--bs-menu-gap:var(--bs-spacing-50);--bs-menu-shadow:var(--bs-shadow-sm)}.bs-menu{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-menu-gap);background:var(--bs-menu-bg);border-radius:var(--bs-menu-radius);padding:var(--bs-menu-padding-y) 0;box-shadow:var(--bs-menu-shadow);font-family:inherit}@media (forced-colors: active){.bs-menu{border:1px solid CanvasText}}`;
|
|
708
|
+
|
|
709
|
+
const BsMenu = class {
|
|
710
|
+
constructor(hostRef) {
|
|
711
|
+
registerInstance(this, hostRef);
|
|
712
|
+
}
|
|
713
|
+
get el() { return getElement(this); }
|
|
714
|
+
/** WAI-ARIA menu pattern: Up/Down move focus between enabled items (wrapping), Home/End jump
|
|
715
|
+
* to the first/last. Items are the slotted `bs-menu-item` children. */
|
|
716
|
+
onKeyDown(ev) {
|
|
717
|
+
if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(ev.key))
|
|
718
|
+
return;
|
|
719
|
+
const items = Array.from(this.el.querySelectorAll('bs-menu-item')).filter(i => !i.disabled);
|
|
720
|
+
if (items.length === 0)
|
|
721
|
+
return;
|
|
722
|
+
const current = items.findIndex(i => i === ev.target || i.contains(ev.target));
|
|
723
|
+
ev.preventDefault();
|
|
724
|
+
let next;
|
|
725
|
+
if (ev.key === 'Home')
|
|
726
|
+
next = 0;
|
|
727
|
+
else if (ev.key === 'End')
|
|
728
|
+
next = items.length - 1;
|
|
729
|
+
else if (ev.key === 'ArrowDown')
|
|
730
|
+
next = current === -1 ? 0 : (current + 1) % items.length;
|
|
731
|
+
else
|
|
732
|
+
next = current === -1 ? items.length - 1 : (current - 1 + items.length) % items.length;
|
|
733
|
+
items[next].shadowRoot?.querySelector('button')?.focus();
|
|
734
|
+
}
|
|
735
|
+
render() {
|
|
736
|
+
return (h("div", { key: 'c14d9bedef9bcb0bef69c739c8f477d7390af729', part: "list", class: "bs-menu", role: "menu" }, h("slot", { key: '6e26c1a053dee4b7ad91e603b82609ac1fee1abb' })));
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
BsMenu.style = bsMenuCss();
|
|
740
|
+
|
|
741
|
+
const bsMenuItemCss = () => `:host{display:block;--bs-menu-item-radius:var(--bs-border-radius-100);--bs-menu-item-padding-y:var(--bs-spacing-100);--bs-menu-item-padding-x:var(--bs-spacing-150);--bs-menu-item-gap:var(--bs-spacing-100);--bs-menu-item-hover:var(--bs-color-neutral-container-hover);--bs-menu-item-pressed:var(--bs-color-neutral-container-pressed);--bs-menu-item-disabled-bg:var(--bs-surface-action-disabled);--bs-menu-item-icon-color:var(--bs-icon-default);--bs-menu-item-icon-color-disabled:var(--bs-icon-disabled);--bs-menu-item-color:var(--bs-text-muted);--bs-menu-item-color-disabled:var(--bs-text-on-disabled);--bs-menu-item-font-size:var(--bs-font-size-md);--bs-menu-item-line-height:var(--bs-line-height-body-md)}.bs-menu-item{position:relative;box-sizing:border-box;display:flex;align-items:center;width:100%;height:48px;border:none;cursor:pointer;background:transparent;color:var(--bs-menu-item-color);font-family:inherit;border-radius:var(--bs-menu-item-radius);padding:var(--bs-menu-item-padding-y) var(--bs-menu-item-padding-x);gap:var(--bs-menu-item-gap);transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-menu-item:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-menu-item:hover{background:var(--bs-menu-item-hover)}.bs-menu-item:active{background:var(--bs-menu-item-pressed)}.bs-menu-item--disabled{background:var(--bs-menu-item-disabled-bg);color:var(--bs-menu-item-color-disabled);cursor:not-allowed}.bs-menu-item--disabled:hover,.bs-menu-item--disabled:active{background:var(--bs-menu-item-disabled-bg)}.bs-menu-item--disabled .bs-menu-item__icon{color:var(--bs-menu-item-icon-color-disabled)}.bs-menu-item__icon{display:none;width:24px;height:24px;flex-shrink:0;color:var(--bs-menu-item-icon-color)}.bs-menu-item__icon--has-content{display:inline-flex;align-items:center;justify-content:center}.bs-menu-item__icon ::slotted(svg){width:24px;height:24px}.bs-menu-item__label{font-size:var(--bs-menu-item-font-size);line-height:calc(var(--bs-menu-item-line-height) * 1px);white-space:nowrap}`;
|
|
742
|
+
|
|
743
|
+
const BsMenuItem = class {
|
|
744
|
+
constructor(hostRef) {
|
|
745
|
+
registerInstance(this, hostRef);
|
|
746
|
+
this.bsSelect = createEvent(this, "bsSelect");
|
|
747
|
+
}
|
|
748
|
+
/** Disables the item: no hover/pressed/focus styling, no pointer cursor, not reachable by
|
|
749
|
+
* keyboard tabbing, and clicking it does not emit `bsSelect`. */
|
|
750
|
+
disabled = false;
|
|
751
|
+
/** Tracks whether the `icon` slot has assigned content, so the icon wrapper (and its gap) only
|
|
752
|
+
* renders when there's actually an icon to show. */
|
|
753
|
+
hasIcon = false;
|
|
754
|
+
/** Fires when the item is clicked. */
|
|
755
|
+
bsSelect;
|
|
756
|
+
onIconSlotchange = (ev) => {
|
|
757
|
+
this.hasIcon = ev.target.assignedNodes().length > 0;
|
|
758
|
+
};
|
|
759
|
+
onClick = () => {
|
|
760
|
+
if (this.disabled)
|
|
761
|
+
return;
|
|
762
|
+
this.bsSelect.emit();
|
|
763
|
+
};
|
|
764
|
+
render() {
|
|
765
|
+
return (h("button", { key: 'c52e126d6150c7814a0d53cc260b3c5ab8aa3c5e', type: "button", part: "item", role: "menuitem", class: `bs-menu-item ${this.disabled ? 'bs-menu-item--disabled' : ''}`, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.onClick }, h("bs-ripple", { key: 'f9da7fdf2cfb591562764f67a84c4c4b511bb348', part: "ripple", centered: false, disabled: this.disabled }), h("span", { key: 'a91da1d5500117b6d67a5c6a7398ad8b40064385', part: "icon", class: `bs-menu-item__icon ${this.hasIcon ? 'bs-menu-item__icon--has-content' : ''}` }, h("slot", { key: '3fa07f929ac18f5aab4ceb26c9712f79379c5f4a', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '2e7e80d88803abc7a6cb54c1eb18df53d49f85a9', part: "label", class: "bs-menu-item__label" }, h("slot", { key: 'ad8413c282494014160497635cec1f5efaf44e12' }))));
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
BsMenuItem.style = bsMenuItemCss();
|
|
769
|
+
|
|
770
|
+
const bsSpinnerCss = () => `:host{display:inline-block;vertical-align:middle;--bs-spinner-size-xs:var(--bs-spacing-200);--bs-spinner-size-sm:var(--bs-spacing-250);--bs-spinner-size-md:var(--bs-spacing-300);--bs-spinner-color:currentColor;--bs-spinner-track-opacity:0.25;--bs-spinner-duration:0.8s}.bs-spinner{display:inline-flex;width:1em;height:1em;color:inherit}.bs-spinner--xs{width:var(--bs-spinner-size-xs);height:var(--bs-spinner-size-xs)}.bs-spinner--sm{width:var(--bs-spinner-size-sm);height:var(--bs-spinner-size-sm)}.bs-spinner--md{width:var(--bs-spinner-size-md);height:var(--bs-spinner-size-md)}.bs-spinner__svg{width:100%;height:100%;animation:bs-spinner-spin var(--bs-spinner-duration) linear infinite}.bs-spinner__track{stroke:var(--bs-spinner-color);opacity:var(--bs-spinner-track-opacity)}.bs-spinner__arc{stroke:var(--bs-spinner-color)}@keyframes bs-spinner-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.bs-spinner__svg{animation-duration:calc(var(--bs-spinner-duration) * 4)}}`;
|
|
771
|
+
|
|
772
|
+
const BsSpinner = class {
|
|
773
|
+
constructor(hostRef) {
|
|
774
|
+
registerInstance(this, hostRef);
|
|
775
|
+
}
|
|
776
|
+
/** `xs`/`sm`/`md` use fixed token sizes; `inherit` (default) is `1em`, following the font size. */
|
|
777
|
+
size = 'inherit';
|
|
778
|
+
/** Accessible name (e.g. "Loading"). When set, the spinner gets `role="status"` and this
|
|
779
|
+
* `aria-label`; when omitted it is `aria-hidden="true"` (use it next to visible text that already
|
|
780
|
+
* says what is happening). */
|
|
781
|
+
label;
|
|
782
|
+
render() {
|
|
783
|
+
const hasLabel = !!this.label;
|
|
784
|
+
return (h("span", { key: '536b5a9eeee4583c4a6e513deb458baa0c2351c7', part: "container", class: `bs-spinner bs-spinner--${this.size}`, role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.label : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, h("svg", { key: '2daa95caf00c24adfbb181b54c510262494b51ae', part: "svg", class: "bs-spinner__svg", viewBox: "0 0 24 24", fill: "none", focusable: "false" }, h("circle", { key: '27f9997a334a11d735a42ff72a5d6b2293f45087', class: "bs-spinner__track", cx: "12", cy: "12", r: "9", "stroke-width": "3" }), h("path", { key: '3d82ac0c874c564dc6383161c0b6b1b293370b88', class: "bs-spinner__arc", d: "M12 3a9 9 0 0 1 9 9", "stroke-width": "3", "stroke-linecap": "round" }))));
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
BsSpinner.style = bsSpinnerCss();
|
|
788
|
+
|
|
789
|
+
export { BsInput as bs_input, BsMenu as bs_menu, BsMenuItem as bs_menu_item, BsSpinner as bs_spinner };
|