@brandsync/wc 0.0.10 → 0.0.12
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/custom-elements.json +3584 -508
- package/dist/brandsync-wc/brandsync-wc.css +20 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-b1e1b2d6.entry.js → p-09aa03d1.entry.js} +1 -1
- package/dist/brandsync-wc/p-0eee5477.entry.js +1 -0
- package/dist/brandsync-wc/p-0fa017ce.entry.js +1 -0
- package/dist/brandsync-wc/p-12ec9e92.entry.js +1 -0
- package/dist/brandsync-wc/{p-3dacae70.entry.js → p-1900f6ce.entry.js} +1 -1
- package/dist/brandsync-wc/{p-575ce905.entry.js → p-1adc59be.entry.js} +1 -1
- package/dist/brandsync-wc/p-1c6fa697.entry.js +1 -0
- package/dist/brandsync-wc/{p-dd747a12.entry.js → p-1cf715aa.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a78d6ea.entry.js → p-20dbc6a1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a34f460d.entry.js → p-23457a21.entry.js} +1 -1
- package/dist/brandsync-wc/p-266f5dde.entry.js +1 -0
- package/dist/brandsync-wc/p-2a65aabb.entry.js +1 -0
- package/dist/brandsync-wc/{p-8d12ed96.entry.js → p-2c51d738.entry.js} +1 -1
- package/dist/brandsync-wc/p-3b31f7c7.entry.js +1 -0
- package/dist/brandsync-wc/p-46ddc8e1.entry.js +1 -0
- package/dist/brandsync-wc/p-56c66448.entry.js +1 -0
- package/dist/brandsync-wc/{p-18af02df.entry.js → p-57fdbb76.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7776b57b.entry.js → p-64e2a7d7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-805644e4.entry.js → p-6e854e92.entry.js} +1 -1
- package/dist/brandsync-wc/p-72a33f88.entry.js +1 -0
- package/dist/brandsync-wc/p-8049f9f2.entry.js +1 -0
- package/dist/brandsync-wc/{p-d682675e.entry.js → p-88a0abee.entry.js} +1 -1
- package/dist/brandsync-wc/p-8b662ee3.entry.js +1 -0
- package/dist/brandsync-wc/{p-94ed898a.entry.js → p-8ded1eb6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-nLORuTUY.js → p-DST5-cTx.js} +2 -2
- package/dist/brandsync-wc/p-a5b15061.entry.js +1 -0
- package/dist/brandsync-wc/{p-30a0e168.entry.js → p-aba300a9.entry.js} +1 -1
- package/dist/brandsync-wc/p-b24a980b.entry.js +1 -0
- package/dist/brandsync-wc/{p-96f374be.entry.js → p-b289450a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-880ea3f8.entry.js → p-b8a2f882.entry.js} +1 -1
- package/dist/brandsync-wc/p-c320b6b4.entry.js +1 -0
- package/dist/brandsync-wc/{p-1515498e.entry.js → p-d4e3ca77.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ce0914a7.entry.js → p-dd09d335.entry.js} +1 -1
- package/dist/brandsync-wc/p-ef8522b5.entry.js +1 -0
- package/dist/brandsync-wc/p-f04db1b0.entry.js +1 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +3 -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-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +3 -3
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button.cjs.entry.js +3 -3
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +94 -0
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +14 -2
- package/dist/cjs/bs-composer.cjs.entry.js +37 -4
- package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
- package/dist/cjs/bs-icon-button.cjs.entry.js +40 -0
- package/dist/cjs/bs-inline-tab.cjs.entry.js +69 -0
- package/dist/cjs/bs-input.cjs.entry.js +3 -3
- package/dist/cjs/bs-logo.cjs.entry.js +165 -0
- package/dist/cjs/bs-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/bs-modal.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +104 -0
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +81 -0
- package/dist/cjs/bs-navigation-header.cjs.entry.js +44 -0
- package/dist/cjs/bs-radio.cjs.entry.js +49 -0
- package/dist/cjs/bs-slider.cjs.entry.js +191 -0
- package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-switch.cjs.entry.js +57 -0
- package/dist/cjs/bs-tab.cjs.entry.js +80 -0
- package/dist/cjs/bs-tabs.cjs.entry.js +39 -0
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-CVh-sqA_.js → index-B3sdhEGk.js} +74 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +14 -2
- package/dist/collection/components/bs-ai-chatbot/bs-ai-chatbot.stories.js +26 -11
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +2 -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-attachment/bs-attachment.css +12 -33
- package/dist/collection/components/bs-attachment/bs-attachment.js +4 -10
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-button/{bs-button.cmp.test.js → bs-button/bs-button.cmp.test.js} +26 -0
- package/dist/collection/components/bs-button/{bs-button.css → bs-button/bs-button.css} +57 -6
- package/dist/collection/components/bs-button/{bs-button.js → bs-button/bs-button.js} +10 -5
- package/dist/collection/components/bs-button/{bs-button.stories.js → bs-button/bs-button.stories.js} +2 -27
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +83 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +346 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +185 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.stories.js +74 -0
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +3 -3
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.cmp.test.js +117 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +199 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +265 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +65 -0
- package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +48 -7
- package/dist/collection/components/bs-composer/bs-composer.css +15 -0
- package/dist/collection/components/bs-composer/bs-composer.js +38 -4
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.cmp.test.js +47 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +20 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-logo/brandsync-logo-full-dark.js +44 -0
- package/dist/collection/components/bs-logo/brandsync-logo-full-light.js +40 -0
- package/dist/collection/components/bs-logo/brandsync-logo-mark.js +17 -0
- package/dist/collection/components/bs-logo/bs-logo.cmp.test.js +113 -0
- package/dist/collection/components/bs-logo/bs-logo.css +79 -0
- package/dist/collection/components/bs-logo/bs-logo.js +193 -0
- package/dist/collection/components/bs-logo/bs-logo.stories.js +69 -0
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-radio/bs-radio.cmp.test.js +76 -0
- package/dist/collection/components/bs-radio/bs-radio.css +164 -0
- package/dist/collection/components/bs-radio/bs-radio.js +170 -0
- package/dist/collection/components/bs-radio/bs-radio.stories.js +56 -0
- package/dist/collection/components/bs-slider/bs-slider.cmp.test.js +139 -0
- package/dist/collection/components/bs-slider/bs-slider.css +409 -0
- package/dist/collection/components/bs-slider/bs-slider.js +499 -0
- package/dist/collection/components/bs-slider/bs-slider.stories.js +70 -0
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-switch/bs-switch.cmp.test.js +71 -0
- package/dist/collection/components/bs-switch/bs-switch.css +196 -0
- package/dist/collection/components/bs-switch/bs-switch.js +185 -0
- package/dist/collection/components/bs-switch/bs-switch.stories.js +60 -0
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.cmp.test.js +104 -0
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +163 -0
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +192 -0
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.js +95 -0
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.cmp.test.js +120 -0
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.css +216 -0
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +232 -0
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.stories.js +138 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.cmp.test.js +61 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.css +39 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +133 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.stories.js +39 -0
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +131 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +257 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +253 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.js +202 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.cmp.test.js +172 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.css +325 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +314 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.stories.js +78 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.js +77 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +106 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +188 -0
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.js +189 -0
- 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-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-badge.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-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.d.ts +11 -0
- package/dist/components/bs-checkbox.js +1 -0
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-icon-button.d.ts +11 -0
- package/dist/components/bs-icon-button.js +1 -0
- package/dist/components/bs-inline-tab.d.ts +11 -0
- package/dist/components/bs-inline-tab.js +1 -0
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-logo.d.ts +11 -0
- package/dist/components/bs-logo.js +1 -0
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-modal.js +1 -1
- package/dist/components/bs-navigation-drawer-item.d.ts +11 -0
- package/dist/components/bs-navigation-drawer-item.js +1 -0
- package/dist/components/bs-navigation-drawer.d.ts +11 -0
- package/dist/components/bs-navigation-drawer.js +1 -0
- package/dist/components/bs-navigation-header.d.ts +11 -0
- package/dist/components/bs-navigation-header.js +1 -0
- package/dist/components/bs-radio.d.ts +11 -0
- package/dist/components/bs-radio.js +1 -0
- package/dist/components/bs-slider.d.ts +11 -0
- package/dist/components/bs-slider.js +1 -0
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-switch.d.ts +11 -0
- package/dist/components/bs-switch.js +1 -0
- package/dist/components/bs-tab.d.ts +11 -0
- package/dist/components/bs-tab.js +1 -0
- package/dist/components/bs-tabs.d.ts +11 -0
- package/dist/components/bs-tabs.js +1 -0
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BAOJc0V0.js +1 -0
- package/dist/components/{p-BpvhHQSw.js → p-Be1Pfcnm.js} +1 -1
- package/dist/components/{p-Cz2nfz2j.js → p-BqYyMGrB.js} +1 -1
- package/dist/components/p-CaWqTQBZ.js +1 -0
- package/dist/components/{p-DndQiCMP.js → p-DivZLd6i.js} +1 -1
- package/dist/components/{p-DHbUF0g6.js → p-xfx69LQx.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-ai-disclaimer.entry.js +3 -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-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +3 -3
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button.entry.js +3 -3
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
- package/dist/esm/bs-chatbot-header.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/bs-checkbox.entry.js +92 -0
- package/dist/esm/bs-composer-status-banner.entry.js +14 -2
- package/dist/esm/bs-composer.entry.js +37 -4
- package/dist/esm/bs-data-table.entry.js +3 -3
- package/dist/esm/bs-icon-button.entry.js +38 -0
- package/dist/esm/bs-inline-tab.entry.js +67 -0
- package/dist/esm/bs-input.entry.js +3 -3
- package/dist/esm/bs-logo.entry.js +163 -0
- package/dist/esm/bs-menu_2.entry.js +3 -3
- package/dist/esm/bs-modal.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +102 -0
- package/dist/esm/bs-navigation-drawer.entry.js +79 -0
- package/dist/esm/bs-navigation-header.entry.js +42 -0
- package/dist/esm/bs-radio.entry.js +47 -0
- package/dist/esm/bs-slider.entry.js +189 -0
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-switch.entry.js +55 -0
- package/dist/esm/bs-tab.entry.js +78 -0
- package/dist/esm/bs-tabs.entry.js +37 -0
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-nLORuTUY.js → index-DST5-cTx.js} +74 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-attachment/bs-attachment.d.ts +3 -9
- package/dist/types/components/bs-button/{bs-button.d.ts → bs-button/bs-button.d.ts} +5 -0
- package/dist/types/components/bs-button/{bs-button.stories.d.ts → bs-button/bs-button.stories.d.ts} +0 -2
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +51 -0
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.stories.d.ts +16 -0
- package/dist/types/components/bs-button-skeleton/bs-button-skeleton.d.ts +1 -1
- package/dist/types/components/bs-button-skeleton/bs-button-skeleton.stories.d.ts +1 -1
- package/dist/types/components/bs-checkbox/bs-checkbox.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +64 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.stories.d.ts +23 -0
- package/dist/types/components/bs-composer/bs-composer.d.ts +26 -2
- package/dist/types/components/bs-composer-status-banner/bs-composer-status-banner.d.ts +14 -0
- package/dist/types/components/bs-logo/brandsync-logo-full-dark.d.ts +1 -0
- package/dist/types/components/bs-logo/brandsync-logo-full-light.d.ts +1 -0
- package/dist/types/components/bs-logo/brandsync-logo-mark.d.ts +1 -0
- package/dist/types/components/bs-logo/bs-logo.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-logo/bs-logo.d.ts +73 -0
- package/dist/types/components/bs-logo/bs-logo.stories.d.ts +17 -0
- package/dist/types/components/bs-radio/bs-radio.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-radio/bs-radio.d.ts +45 -0
- package/dist/types/components/bs-radio/bs-radio.stories.d.ts +16 -0
- package/dist/types/components/bs-slider/bs-slider.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-slider/bs-slider.d.ts +109 -0
- package/dist/types/components/bs-slider/bs-slider.stories.d.ts +24 -0
- package/dist/types/components/bs-switch/bs-switch.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-switch/bs-switch.d.ts +45 -0
- package/dist/types/components/bs-switch/bs-switch.stories.d.ts +17 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.d.ts +65 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.d.ts +22 -0
- package/dist/types/components/bs-tab/bs-tab/bs-tab.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tab/bs-tab/bs-tab.d.ts +74 -0
- package/dist/types/components/bs-tab/bs-tab/bs-tab.stories.d.ts +30 -0
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.d.ts +45 -0
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.stories.d.ts +13 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.d.ts +1 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.d.ts +96 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.stories.d.ts +16 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.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 +103 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.stories.d.ts +20 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.d.ts +1 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.d.ts +60 -0
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.d.ts +21 -0
- package/dist/types/components.d.ts +1973 -49
- package/package.json +1 -1
- package/dist/brandsync-wc/p-0d64ea40.entry.js +0 -1
- package/dist/brandsync-wc/p-16a54578.entry.js +0 -1
- package/dist/brandsync-wc/p-bc72439a.entry.js +0 -1
- package/dist/brandsync-wc/p-dad4a92c.entry.js +0 -1
- package/dist/brandsync-wc/p-eb4d87f0.entry.js +0 -1
- /package/dist/types/components/bs-button/{bs-button.cmp.test.d.ts → bs-button/bs-button.cmp.test.d.ts} +0 -0
|
@@ -74,7 +74,7 @@ export class BsChatbotHeader {
|
|
|
74
74
|
this.bsClose.emit();
|
|
75
75
|
};
|
|
76
76
|
render() {
|
|
77
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: 'f867f6c63e8931079fbbee1ce4dc7b74f6bf7ddd', class: "bs-chatbot-header", role: "banner", "aria-label": this.heading }, h("div", { key: 'a91afd437bbe43e9be65d64df36688d8d885916d', part: "logo", class: "bs-chatbot-header__logo", role: "img", "aria-label": this.heading, innerHTML: GENIE_LOGO_SVG }), h("div", { key: '3dddaab00c3b983b1e86be356eec9c07c415de1b', class: "bs-chatbot-header__actions" }, h("span", { key: '0f0b3388022c75ef0e04c1bb41a826fb0318764d', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '7b1eb2edc2414fece90681b1d56de3a9b0c7171c', type: "button", part: "new-chat", class: "bs-chatbot-header__button", "aria-label": "New chat", onClick: this.onNewChatClick }, h("slot", { key: 'a4ff761ddc7b3dbcfe449a89f731561cb3b85d0a', name: "new-chat-icon" }, h(NewChatIcon, { key: 'b2244e10010085b85a258413f7391180f6b3a20f' }))), h("bs-tooltip", { key: 'b24f3b73d6cfca88f14e12e7bc0ad0634d3338c1', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, "New chat")), h("span", { key: '94a5bf67800ea1a608a04a0bb33d1a7aed053045', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: '49bb1dc0956c021becaaf562146352b9abcc415b', type: "button", part: "history", class: "bs-chatbot-header__button", "aria-label": "History", onClick: this.onHistoryClick }, h("slot", { key: 'f2c6dc057674cfc803d822d936b3fcf9d6f2f576', name: "history-icon" }, h(HistoryIcon, { key: '0ededb5c7c553f1a6723f3d20b734cb5200b2a4d' }))), h("bs-tooltip", { key: 'd533c9ac7661d89d8c8fe4865639c6d4fdab5ca3', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, "History")), h("span", { key: 'e183c44cd967d683fa8de2c53c53913b0a1a19e4', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'f3af2b7730e1410f97fc46612148c1728be67517', type: "button", part: "expand", class: "bs-chatbot-header__button", "aria-label": this.expanded ? 'Collapse' : 'Expand', "aria-pressed": this.expanded ? 'true' : 'false', onClick: this.onExpandClick }, h("slot", { key: '808dcea2f16a09615efa1e17c7cdaadb35cac494', name: "expand-icon" }, h(ExpandIcon, { key: '58487c506c21b5e4214be89ef37126ee9404550b' }))), h("bs-tooltip", { key: 'e89cd45c9c34e840bb316ac2acc281d8bbc09eb4', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, this.expanded ? 'Collapse' : 'Expand')), h("span", { key: '1ccdb12018a5e0bffb6e50fb4974799f177cf943', class: "bs-chatbot-header__tooltip-wrapper" }, h("button", { key: 'e416fe4e56f37b9c623e86764cf5e3a510e89657', type: "button", part: "close", class: "bs-chatbot-header__button", "aria-label": "Close", onClick: this.onCloseClick }, h("slot", { key: 'db32a3957b3d635e34665ea4b3022d888bd4c5c8', name: "close-icon" }, h(CloseIcon, { key: '1062922ee3b32445503c2bc81913806f1684683b' }))), h("bs-tooltip", { key: '90d5458d0eb14e99767ea5b1d0e8c9b23b51aaeb', class: "bs-chatbot-header__tooltip", placement: "top", "aria-hidden": "true" }, "Close")))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "bs-chatbot-header"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
|
@@ -105,7 +105,7 @@ export class BsChatbotResponseAction {
|
|
|
105
105
|
};
|
|
106
106
|
render() {
|
|
107
107
|
const hasSources = !!this.sourcesCount && this.sourcesCount > 0;
|
|
108
|
-
return (h("div", { key: '
|
|
108
|
+
return (h("div", { key: '7bec7f4a10f842d706ae24aca5d4e265420d9ddf', class: "bs-chatbot-response-action" }, h("button", { key: '750e004f98f72f3737468bda9985484d344ebaa3', type: "button", part: "like", class: "bs-chatbot-response-action__button", "aria-label": "Like", onClick: this.onLikeClick }, h("slot", { key: '2706c270afcf0c71b94e28bef5ab803a29168508', name: "like-icon" }, h(ThumbsUpIcon, { key: '8fe6d8d403e8d2a80b37edd10e7b4f56197ad544' }))), h("button", { key: 'e807b85ddd08e2a37239fe3927f1a385371b6e60', type: "button", part: "dislike", class: "bs-chatbot-response-action__button", "aria-label": "Dislike", onClick: this.onDislikeClick }, h("slot", { key: 'd6dbcbd2ee1b7e74e05dd2cbae1c69d98e414904', name: "dislike-icon" }, h(ThumbsDownIcon, { key: 'f10796ec4a207e9f8eb55441b762e8873a2c615f' }))), h("button", { key: 'd6452d6a3cbb9aec60e65085086c312dc8723ce9', type: "button", part: "copy", class: "bs-chatbot-response-action__button", "aria-label": "Copy", onClick: this.onCopyClick }, h("slot", { key: '9f650bebcaef7cdf4797bc94c28f934887954722', name: "copy-icon" }, h(CopyIcon, { key: 'bc8fcfd2c9b2d3b0b634f3c92750ffea8b301270' }))), h("button", { key: 'f7b7fc1048a3e641c460e0708e3f751178c337da', type: "button", part: "regenerate", class: "bs-chatbot-response-action__button", "aria-label": "Regenerate", onClick: this.onRegenerateClick }, h("slot", { key: '79cc6721191aff640823fdea839668edddfb5746', name: "regenerate-icon" }, h(RegenerateIcon, { key: '4f8dcfcae578dc5d66e7707f961717a5dd513e20' }))), h("div", { key: '15282bbecdec01239855b7e6637fab4f12801122', class: "bs-chatbot-response-action__menu-wrapper" }, h("button", { key: 'f5d2b3db52c76e129e1d56a4bef819cf1e8bc5ed', type: "button", part: "menu", class: "bs-chatbot-response-action__button", "aria-label": "More options", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.onMenuClick }, h("slot", { key: '8796afebcc39b15c858bbea22ae377631da8ce2e', name: "menu-icon" }, h(MenuIcon, { key: '21a189fb8e61033e7644bf6e6c3eecb2ffa8e880' }))), this.menuOpen && (h("div", { key: 'd6617d1ff68199cdbdeabda382018fb48c0a1bd9', class: "bs-chatbot-response-action__menu-popup" }, h("slot", { key: 'b4645cb0ccf01b265efa56726ffb1fd5a8ec13db', name: "menu" })))), hasSources && (h("button", { key: '736c23e7560404a0e7177b372993317a84a19bf5', type: "button", part: "sources", class: "bs-chatbot-response-action__sources", onClick: this.onSourcesClick }, h("slot", { key: 'bb5187741f2cb4e470038753df41dcee2ceaf02e', name: "sources-icon" }, h(SourcesIcon, { key: '4d488a150dc6b86d1d6045b55f16bce22c5cdd22' })), h("span", { key: '02da04e9df74b4926cf8f0d6a4c7548c1bb1e699', class: "bs-chatbot-response-action__sources-label" }, this.sourcesCount, " ", this.sourcesCount === 1 ? 'source' : 'sources')))));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "bs-chatbot-response-action"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class BsChatbotSourcesDrawer {
|
|
|
57
57
|
};
|
|
58
58
|
render() {
|
|
59
59
|
const displayCount = this.count ?? this.slottedCount;
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '8f71e38ceb897b13d7726495c8b27619e246af2b', class: "bs-chatbot-sources-drawer", role: "region", "aria-label": this.heading }, h("div", { key: 'ee57cd05934a900b71b5445f7d31caf8e038e774', class: "bs-chatbot-sources-drawer__header" }, h("div", { key: 'd9aa9f82aad30480bf52b7a701f094b9175e3a98', class: "bs-chatbot-sources-drawer__title-group" }, h("h2", { key: '913ac293e7af80ee142635ae7bd4b3339ac746b0', part: "heading", class: "bs-chatbot-sources-drawer__heading" }, this.heading), displayCount > 0 && (h("span", { key: 'ad659ddf56b745f915df9909c07a6a617e8e7d5a', part: "count", class: "bs-chatbot-sources-drawer__count" }, displayCount))), h("button", { key: '30ac395d5087496a955b956437dc9459eabcbe10', type: "button", part: "collapse", class: "bs-chatbot-sources-drawer__collapse", "aria-label": "Collapse sources", onClick: this.onCollapseClick }, h("slot", { key: 'aaa9629de257bb416c24e9b5b15ac634e71caf38', name: "collapse-icon" }, h(CaretRightIcon, { key: '9bbb6d7875cd5ce27ec63c03113a7982a6309814' })))), h("div", { key: 'aa0d81e61701b50231a802120443f0819b2b0a98', part: "list", class: "bs-chatbot-sources-drawer__list" }, h("slot", { key: 'cbfd567766318fc4d360804c4de5e591654a29c0', onSlotchange: this.onSlotchange }))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "bs-chatbot-sources-drawer"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js
CHANGED
|
@@ -45,7 +45,7 @@ export class BsChatbotSuggestionButton {
|
|
|
45
45
|
this.bsSelect.emit();
|
|
46
46
|
};
|
|
47
47
|
render() {
|
|
48
|
-
return (h("button", { key: '
|
|
48
|
+
return (h("button", { key: '4a8fe89091ddc9d343c58d22b35b9f8dc2691490', type: "button", part: "button", class: "bs-chatbot-suggestion-button", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: 'f0295569d8aac7ad51116d3fde445dda7bcb24a6' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "bs-chatbot-suggestion-button"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
describe('bs-checkbox', () => {
|
|
3
|
+
it('renders an unchecked native checkbox by default', async () => {
|
|
4
|
+
const { root } = await render(h("bs-checkbox", null));
|
|
5
|
+
const input = root.shadowRoot.querySelector('input');
|
|
6
|
+
expect(input).toEqualAttribute('type', 'checkbox');
|
|
7
|
+
expect(input.checked).toBe(false);
|
|
8
|
+
expect(root.shadowRoot.querySelector('[part="box"] [part="icon"]')).toBeNull();
|
|
9
|
+
});
|
|
10
|
+
it('reflects ariaLabel to the native input, for label-less accessible names', async () => {
|
|
11
|
+
const { root } = await render(h("bs-checkbox", { ariaLabel: "Select all rows" }));
|
|
12
|
+
const input = root.shadowRoot.querySelector('input');
|
|
13
|
+
expect(input).toEqualAttribute('aria-label', 'Select all rows');
|
|
14
|
+
});
|
|
15
|
+
it('does not set aria-label on the native input when ariaLabel is not provided', async () => {
|
|
16
|
+
const { root } = await render(h("bs-checkbox", null));
|
|
17
|
+
const input = root.shadowRoot.querySelector('input');
|
|
18
|
+
expect(input).not.toHaveAttribute('aria-label');
|
|
19
|
+
});
|
|
20
|
+
it('reflects the checked prop to the native input and shows the check icon', async () => {
|
|
21
|
+
const { root } = await render(h("bs-checkbox", { checked: true }));
|
|
22
|
+
const input = root.shadowRoot.querySelector('input');
|
|
23
|
+
expect(input.checked).toBe(true);
|
|
24
|
+
expect(root.shadowRoot.querySelector('[part="box"]')).toHaveClass('bs-checkbox__box--selected');
|
|
25
|
+
expect(root.shadowRoot.querySelector('[part="icon"]')).not.toBeNull();
|
|
26
|
+
});
|
|
27
|
+
it('clicking the input toggles checked and emits bsChange with the new value', async () => {
|
|
28
|
+
const { root, waitForChanges, spyOnEvent } = await render(h("bs-checkbox", null));
|
|
29
|
+
const bsChangeSpy = spyOnEvent('bsChange');
|
|
30
|
+
const input = root.shadowRoot.querySelector('input');
|
|
31
|
+
input.click();
|
|
32
|
+
await waitForChanges();
|
|
33
|
+
expect(input.checked).toBe(true);
|
|
34
|
+
expect(bsChangeSpy).toHaveReceivedEventTimes(1);
|
|
35
|
+
expect(bsChangeSpy).toHaveReceivedEventDetail(true);
|
|
36
|
+
input.click();
|
|
37
|
+
await waitForChanges();
|
|
38
|
+
expect(input.checked).toBe(false);
|
|
39
|
+
expect(bsChangeSpy).toHaveReceivedEventTimes(2);
|
|
40
|
+
expect(bsChangeSpy).toHaveReceivedEventDetail(false);
|
|
41
|
+
});
|
|
42
|
+
describe('indeterminate', () => {
|
|
43
|
+
it('sets the native input .indeterminate JS property, not an HTML attribute', async () => {
|
|
44
|
+
const { root } = await render(h("bs-checkbox", { indeterminate: true }));
|
|
45
|
+
const input = root.shadowRoot.querySelector('input');
|
|
46
|
+
expect(input.indeterminate).toBe(true);
|
|
47
|
+
expect(input).not.toHaveAttribute('indeterminate');
|
|
48
|
+
});
|
|
49
|
+
it('takes visual precedence over checked, showing the minus icon', async () => {
|
|
50
|
+
const { root } = await render(h("bs-checkbox", { checked: true, indeterminate: true }));
|
|
51
|
+
const box = root.shadowRoot.querySelector('[part="box"]');
|
|
52
|
+
expect(box).toHaveClass('bs-checkbox__box--selected');
|
|
53
|
+
const icon = root.shadowRoot.querySelector('[part="icon"]');
|
|
54
|
+
expect(icon.querySelector('path')).not.toBeNull();
|
|
55
|
+
// Minus icon is a single horizontal line; check icon has two line segments in its path data.
|
|
56
|
+
expect(icon.innerHTML).toContain('M3 8H13');
|
|
57
|
+
});
|
|
58
|
+
it('updates the native .indeterminate property when the prop changes after initial render', async () => {
|
|
59
|
+
const { root, waitForChanges } = await render(h("bs-checkbox", null));
|
|
60
|
+
const input = root.shadowRoot.querySelector('input');
|
|
61
|
+
expect(input.indeterminate).toBe(false);
|
|
62
|
+
root.indeterminate = true;
|
|
63
|
+
await waitForChanges();
|
|
64
|
+
expect(input.indeterminate).toBe(true);
|
|
65
|
+
});
|
|
66
|
+
it('clears indeterminate when the user toggles the checkbox', async () => {
|
|
67
|
+
const { root, waitForChanges } = await render(h("bs-checkbox", { indeterminate: true }));
|
|
68
|
+
const input = root.shadowRoot.querySelector('input');
|
|
69
|
+
input.click();
|
|
70
|
+
await waitForChanges();
|
|
71
|
+
expect(input.indeterminate).toBe(false);
|
|
72
|
+
expect(root.indeterminate).toBe(false);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
describe('disabled', () => {
|
|
76
|
+
it('sets the disabled attribute on the native input', async () => {
|
|
77
|
+
const { root } = await render(h("bs-checkbox", { disabled: true }));
|
|
78
|
+
const input = root.shadowRoot.querySelector('input');
|
|
79
|
+
expect(input).toHaveAttribute('disabled');
|
|
80
|
+
});
|
|
81
|
+
it('prevents toggling via click', async () => {
|
|
82
|
+
const { root, waitForChanges, spyOnEvent } = await render(h("bs-checkbox", { disabled: true }));
|
|
83
|
+
const bsChangeSpy = spyOnEvent('bsChange');
|
|
84
|
+
const input = root.shadowRoot.querySelector('input');
|
|
85
|
+
input.click();
|
|
86
|
+
await waitForChanges();
|
|
87
|
+
expect(input.checked).toBe(false);
|
|
88
|
+
expect(bsChangeSpy).toHaveReceivedEventTimes(0);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
describe('error', () => {
|
|
92
|
+
it('applies the error class to the box', async () => {
|
|
93
|
+
const { root } = await render(h("bs-checkbox", { error: true }));
|
|
94
|
+
const box = root.shadowRoot.querySelector('[part="box"]');
|
|
95
|
+
expect(box).toHaveClass('bs-checkbox__box--error');
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
['sm', 'md', 'lg'].forEach(size => {
|
|
99
|
+
it(`renders size="${size}" with the matching box modifier class`, async () => {
|
|
100
|
+
const { root } = await render(h("bs-checkbox", { size: size }));
|
|
101
|
+
const box = root.shadowRoot.querySelector('[part="box"]');
|
|
102
|
+
if (size === 'lg') {
|
|
103
|
+
expect(box).not.toHaveClass('bs-checkbox__box--sm');
|
|
104
|
+
expect(box).not.toHaveClass('bs-checkbox__box--md');
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
expect(box).toHaveClass(`bs-checkbox__box--${size}`);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
it('renders label slot content', async () => {
|
|
112
|
+
const { root } = await render(h("bs-checkbox", null, "Accept terms"));
|
|
113
|
+
expect(root).toHaveTextContent('Accept terms');
|
|
114
|
+
const label = root.shadowRoot.querySelector('[part="label"]');
|
|
115
|
+
expect(label.querySelector('slot')).not.toBeNull();
|
|
116
|
+
});
|
|
117
|
+
});
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-checkbox-radius: Corner radius of the box, constant across all sizes. Aliased to --bs-border-radius-50.
|
|
3
|
+
* @prop --bs-checkbox-gap: Gap between the box and the label text. Aliased to --bs-spacing-100.
|
|
4
|
+
* @prop --bs-checkbox-size-sm: Box width/height at size="sm". Aliased to --bs-spacing-200.
|
|
5
|
+
* @prop --bs-checkbox-size-md: Box width/height at size="md". Aliased to --bs-spacing-250.
|
|
6
|
+
* @prop --bs-checkbox-size-lg: Box width/height at size="lg". Aliased to --bs-spacing-300.
|
|
7
|
+
* @prop --bs-checkbox-border-width-sm: Border width at size="sm".
|
|
8
|
+
* @prop --bs-checkbox-border-width-md: Border width at size="md".
|
|
9
|
+
* @prop --bs-checkbox-border-width-lg: Border width at size="lg".
|
|
10
|
+
* @prop --bs-checkbox-border-default: Border color, deselected/enabled. Aliased to --bs-border-default.
|
|
11
|
+
* @prop --bs-checkbox-bg-hover: Box background, deselected/hovered. Aliased to --bs-surface-hover.
|
|
12
|
+
* @prop --bs-checkbox-border-hover: Border color, deselected/hovered. Aliased to --bs-border-neutral-hover.
|
|
13
|
+
* @prop --bs-checkbox-bg-focus: Box background, deselected/focused. Aliased to --bs-surface-raised.
|
|
14
|
+
* @prop --bs-checkbox-border-focus: Border color, deselected/focused. Aliased to --bs-border-neutral-hover.
|
|
15
|
+
* @prop --bs-checkbox-focus-ring-color: Focus ring color, drawn outside the box. Aliased to --bs-border-neutral-focus.
|
|
16
|
+
* @prop --bs-checkbox-bg-disabled: Box background, disabled. Aliased to --bs-surface-action-disabled.
|
|
17
|
+
* @prop --bs-checkbox-border-disabled: Border color, disabled. Aliased to --bs-border-neutral-disabled.
|
|
18
|
+
* @prop --bs-checkbox-border-error: Border color, deselected/error. Aliased to --bs-border-error.
|
|
19
|
+
* @prop --bs-checkbox-bg-selected: Box background, selected or indeterminate/enabled. Aliased to --bs-color-primary-default.
|
|
20
|
+
* @prop --bs-checkbox-border-selected: Border color, selected or indeterminate/enabled. Aliased to --bs-color-primary-default.
|
|
21
|
+
* @prop --bs-checkbox-bg-selected-hover: Box background, selected or indeterminate/hovered. Aliased to --bs-color-primary-hover.
|
|
22
|
+
* @prop --bs-checkbox-border-selected-hover: Border color, selected or indeterminate/hovered. Aliased to --bs-color-primary-hover.
|
|
23
|
+
* @prop --bs-checkbox-bg-selected-error: Box background, selected or indeterminate/error. Aliased to --bs-icon-error.
|
|
24
|
+
* @prop --bs-checkbox-border-selected-error: Border color, selected or indeterminate/error. Aliased to --bs-icon-error.
|
|
25
|
+
* @prop --bs-checkbox-icon-color: Check/minus icon color. Aliased to --bs-icon-static-white.
|
|
26
|
+
* @prop --bs-checkbox-icon-color-disabled: Check/minus icon color, disabled. Aliased to --bs-icon-disabled.
|
|
27
|
+
* @prop --bs-checkbox-label-color: Label text color. Aliased to --bs-text-default.
|
|
28
|
+
* @prop --bs-checkbox-label-color-disabled: Label text color, disabled. Aliased to --bs-text-on-disabled.
|
|
29
|
+
* @prop --bs-checkbox-label-color-error: Label text color, error. Aliased to --bs-text-error.
|
|
30
|
+
*/
|
|
31
|
+
:host {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
|
|
34
|
+
--bs-checkbox-radius: var(--bs-border-radius-50);
|
|
35
|
+
--bs-checkbox-gap: var(--bs-spacing-100);
|
|
36
|
+
|
|
37
|
+
--bs-checkbox-size-sm: var(--bs-spacing-200);
|
|
38
|
+
--bs-checkbox-size-md: var(--bs-spacing-250);
|
|
39
|
+
--bs-checkbox-size-lg: var(--bs-spacing-300);
|
|
40
|
+
|
|
41
|
+
--bs-checkbox-border-width-sm: 1.333px;
|
|
42
|
+
--bs-checkbox-border-width-md: 1.667px;
|
|
43
|
+
--bs-checkbox-border-width-lg: 2px;
|
|
44
|
+
|
|
45
|
+
--bs-checkbox-border-default: var(--bs-border-default);
|
|
46
|
+
--bs-checkbox-bg-hover: var(--bs-surface-hover);
|
|
47
|
+
--bs-checkbox-border-hover: var(--bs-border-neutral-hover);
|
|
48
|
+
--bs-checkbox-bg-focus: var(--bs-surface-raised);
|
|
49
|
+
--bs-checkbox-border-focus: var(--bs-border-neutral-hover);
|
|
50
|
+
--bs-checkbox-focus-ring-color: var(--bs-border-neutral-focus);
|
|
51
|
+
--bs-checkbox-bg-disabled: var(--bs-surface-action-disabled);
|
|
52
|
+
--bs-checkbox-border-disabled: var(--bs-border-neutral-disabled);
|
|
53
|
+
--bs-checkbox-border-error: var(--bs-border-error);
|
|
54
|
+
|
|
55
|
+
--bs-checkbox-bg-selected: var(--bs-color-primary-default);
|
|
56
|
+
--bs-checkbox-border-selected: var(--bs-color-primary-default);
|
|
57
|
+
--bs-checkbox-bg-selected-hover: var(--bs-color-primary-hover);
|
|
58
|
+
--bs-checkbox-border-selected-hover: var(--bs-color-primary-hover);
|
|
59
|
+
--bs-checkbox-bg-selected-error: var(--bs-icon-error);
|
|
60
|
+
--bs-checkbox-border-selected-error: var(--bs-icon-error);
|
|
61
|
+
|
|
62
|
+
--bs-checkbox-icon-color: var(--bs-icon-static-white);
|
|
63
|
+
--bs-checkbox-icon-color-disabled: var(--bs-icon-disabled);
|
|
64
|
+
|
|
65
|
+
--bs-checkbox-label-color: var(--bs-text-default);
|
|
66
|
+
--bs-checkbox-label-color-disabled: var(--bs-text-on-disabled);
|
|
67
|
+
--bs-checkbox-label-color-error: var(--bs-text-error);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bs-checkbox {
|
|
71
|
+
position: relative;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--bs-checkbox-gap);
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.bs-checkbox--disabled {
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* The native input is visually hidden but stays in the layout/focus/keyboard chain -- opacity: 0
|
|
84
|
+
(not display: none) so it can still receive and show focus. */
|
|
85
|
+
.bs-checkbox__input {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 0;
|
|
88
|
+
left: 0;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
margin: 0;
|
|
92
|
+
padding: 0;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.bs-checkbox__input:disabled {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.bs-checkbox__box {
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
position: relative;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
width: var(--bs-checkbox-size-lg);
|
|
109
|
+
height: var(--bs-checkbox-size-lg);
|
|
110
|
+
border: var(--bs-checkbox-border-width-lg) solid var(--bs-checkbox-border-default);
|
|
111
|
+
border-radius: var(--bs-checkbox-radius);
|
|
112
|
+
background: transparent;
|
|
113
|
+
color: var(--bs-checkbox-icon-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.bs-checkbox__box--md {
|
|
117
|
+
width: var(--bs-checkbox-size-md);
|
|
118
|
+
height: var(--bs-checkbox-size-md);
|
|
119
|
+
border-width: var(--bs-checkbox-border-width-md);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.bs-checkbox__box--sm {
|
|
123
|
+
width: var(--bs-checkbox-size-sm);
|
|
124
|
+
height: var(--bs-checkbox-size-sm);
|
|
125
|
+
border-width: var(--bs-checkbox-border-width-sm);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.bs-checkbox__box--selected {
|
|
129
|
+
background: var(--bs-checkbox-bg-selected);
|
|
130
|
+
border-color: var(--bs-checkbox-border-selected);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Hover/focus -- keyed off the hidden native input's pseudo-classes, since it sits on top of and
|
|
134
|
+
is the same size as the box, so it always reflects the user's actual pointer/keyboard target. */
|
|
135
|
+
.bs-checkbox__input:hover:not(:disabled) ~ .bs-checkbox__box {
|
|
136
|
+
background: var(--bs-checkbox-bg-hover);
|
|
137
|
+
border-color: var(--bs-checkbox-border-hover);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.bs-checkbox__input:hover:not(:disabled) ~ .bs-checkbox__box--selected {
|
|
141
|
+
background: var(--bs-checkbox-bg-selected-hover);
|
|
142
|
+
border-color: var(--bs-checkbox-border-selected-hover);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.bs-checkbox__input:focus-visible ~ .bs-checkbox__box {
|
|
146
|
+
background: var(--bs-checkbox-bg-focus);
|
|
147
|
+
border-color: var(--bs-checkbox-border-focus);
|
|
148
|
+
outline: 2px solid var(--bs-checkbox-focus-ring-color);
|
|
149
|
+
outline-offset: 2px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.bs-checkbox__input:focus-visible ~ .bs-checkbox__box--selected {
|
|
153
|
+
background: var(--bs-checkbox-bg-selected-hover);
|
|
154
|
+
border-color: var(--bs-checkbox-border-selected-hover);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.bs-checkbox__box--error {
|
|
158
|
+
border-color: var(--bs-checkbox-border-error);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.bs-checkbox__box--error.bs-checkbox__box--selected {
|
|
162
|
+
background: var(--bs-checkbox-bg-selected-error);
|
|
163
|
+
border-color: var(--bs-checkbox-border-selected-error);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.bs-checkbox__box--disabled {
|
|
167
|
+
background: var(--bs-checkbox-bg-disabled);
|
|
168
|
+
border-color: var(--bs-checkbox-border-disabled);
|
|
169
|
+
color: var(--bs-checkbox-icon-color-disabled);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.bs-checkbox__box--disabled.bs-checkbox__box--selected {
|
|
173
|
+
background: var(--bs-checkbox-bg-disabled);
|
|
174
|
+
border-color: var(--bs-checkbox-border-disabled);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.bs-checkbox__icon {
|
|
178
|
+
width: 80%;
|
|
179
|
+
height: 80%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.bs-checkbox__label {
|
|
183
|
+
font-size: var(--bs-font-size-md);
|
|
184
|
+
color: var(--bs-checkbox-label-color);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Figma specs the label at fontsize/body/sm (14px) only for size="sm" -- size="md"/"lg" both use
|
|
188
|
+
fontsize/body/md (16px), which is the default set above. */
|
|
189
|
+
.bs-checkbox__box--sm ~ .bs-checkbox__label {
|
|
190
|
+
font-size: var(--bs-font-size-sm);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.bs-checkbox--disabled .bs-checkbox__label {
|
|
194
|
+
color: var(--bs-checkbox-label-color-disabled);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.bs-checkbox:not(.bs-checkbox--disabled) .bs-checkbox__box--error ~ .bs-checkbox__label {
|
|
198
|
+
color: var(--bs-checkbox-label-color-error);
|
|
199
|
+
}
|