@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DST5-cTx.js';
|
|
2
2
|
|
|
3
3
|
const bsComposerStatusBannerCss = () => `:host{display:block;--bs-composer-status-banner-radius:var(--bs-border-radius-150);--bs-composer-status-banner-padding-x:var(--bs-spacing-150);--bs-composer-status-banner-padding-top:var(--bs-spacing-100);--bs-composer-status-banner-padding-bottom:var(--bs-spacing-200);--bs-composer-status-banner-gap:var(--bs-spacing-100);--bs-composer-status-banner-icon-gap:var(--bs-spacing-75);--bs-composer-status-banner-error-bg:var(--bs-color-error-container);--bs-composer-status-banner-error-text:var(--bs-text-error);--bs-composer-status-banner-error-action-bg:var(--bs-color-error-default);--bs-composer-status-banner-error-action-bg-hover:var(--bs-color-error-hover);--bs-composer-status-banner-info-bg:var(--bs-color-info-container);--bs-composer-status-banner-info-text:var(--bs-text-info);--bs-composer-status-banner-info-action-bg:var(--bs-color-info-default);--bs-composer-status-banner-info-action-bg-hover:var(--bs-color-info-hover);--bs-composer-status-banner-neutral-bg:var(--bs-color-neutral-container);--bs-composer-status-banner-neutral-text:var(--bs-text-default);--bs-composer-status-banner-neutral-action-bg:var(--bs-color-neutral-container);--bs-composer-status-banner-neutral-action-bg-hover:var(--bs-color-neutral-container-hover);--bs-composer-status-banner-neutral-action-border:var(--bs-border-neutral-container);--bs-composer-status-banner-warning-bg:var(--bs-color-warning-container);--bs-composer-status-banner-warning-text:var(--bs-text-warning);--bs-composer-status-banner-warning-action-bg:var(--bs-color-warning-default);--bs-composer-status-banner-warning-action-bg-hover:var(--bs-color-warning-hover);--bs-composer-status-banner-close-hover-bg:var(--bs-color-neutral-container-hover)}.bs-composer-status-banner{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-composer-status-banner-gap);padding:var(--bs-composer-status-banner-padding-top) var(--bs-composer-status-banner-padding-x) var(--bs-composer-status-banner-padding-bottom);border-radius:var(--bs-composer-status-banner-radius) var(--bs-composer-status-banner-radius) 0 0;font-family:inherit}.bs-composer-status-banner--error{background:var(--bs-composer-status-banner-error-bg);color:var(--bs-composer-status-banner-error-text)}.bs-composer-status-banner--info{background:var(--bs-composer-status-banner-info-bg);color:var(--bs-composer-status-banner-info-text)}.bs-composer-status-banner--neutral{background:var(--bs-composer-status-banner-neutral-bg);color:var(--bs-composer-status-banner-neutral-text)}.bs-composer-status-banner--warning{background:var(--bs-composer-status-banner-warning-bg);color:var(--bs-composer-status-banner-warning-text)}.bs-composer-status-banner__message-group{box-sizing:border-box;display:flex;align-items:center;flex:1 0 0;min-width:0;gap:var(--bs-composer-status-banner-icon-gap)}.bs-composer-status-banner__icon{display:inline-flex;flex-shrink:0;width:20px;height:20px}.bs-composer-status-banner__icon ::slotted(*){display:block;width:100%;height:100%}.bs-composer-status-banner__message{margin:0;flex:1 0 0;min-width:0;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);word-break:break-word}.bs-composer-status-banner__action{box-sizing:border-box;flex-shrink:0;height:32px;padding:0 var(--bs-spacing-150);border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-text-on-action);font-family:inherit;font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:calc(var(--bs-line-height-body-sm) * 1px);cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer-status-banner--error .bs-composer-status-banner__action{background:var(--bs-composer-status-banner-error-action-bg)}.bs-composer-status-banner--error .bs-composer-status-banner__action:hover{background:var(--bs-composer-status-banner-error-action-bg-hover)}.bs-composer-status-banner--info .bs-composer-status-banner__action{background:var(--bs-composer-status-banner-info-action-bg)}.bs-composer-status-banner--info .bs-composer-status-banner__action:hover{background:var(--bs-composer-status-banner-info-action-bg-hover)}.bs-composer-status-banner--warning .bs-composer-status-banner__action{background:var(--bs-composer-status-banner-warning-action-bg)}.bs-composer-status-banner--warning .bs-composer-status-banner__action:hover{background:var(--bs-composer-status-banner-warning-action-bg-hover)}.bs-composer-status-banner--neutral .bs-composer-status-banner__action{background:var(--bs-composer-status-banner-neutral-action-bg);border:var(--bs-border-width-thin) solid var(--bs-composer-status-banner-neutral-action-border);color:var(--bs-text-default)}.bs-composer-status-banner--neutral .bs-composer-status-banner__action:hover{background:var(--bs-composer-status-banner-neutral-action-bg-hover)}.bs-composer-status-banner__close{box-sizing:border-box;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;border-radius:var(--bs-border-radius-100);color:inherit;cursor:pointer;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer-status-banner__close:hover{background:var(--bs-composer-status-banner-close-hover-bg)}.bs-composer-status-banner__close svg{width:20px;height:20px}.bs-composer-status-banner__close:focus-visible,.bs-composer-status-banner__action:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}`;
|
|
4
4
|
|
|
@@ -30,11 +30,23 @@ const BsComposerStatusBanner = class {
|
|
|
30
30
|
onCloseClick = () => {
|
|
31
31
|
this.bsClose.emit();
|
|
32
32
|
};
|
|
33
|
+
/** `error`/`warning` need immediate, interrupting announcement (`alert`); `info`/`neutral` only
|
|
34
|
+
* need a polite one (`status`) -- matches the Figma Accessibility guidelines for this component. */
|
|
35
|
+
roleForType() {
|
|
36
|
+
return this.type === 'error' || this.type === 'warning' ? 'alert' : 'status';
|
|
37
|
+
}
|
|
38
|
+
/** Clock reads as "waiting/pending", a reasonable default for info/neutral notices -- but is a
|
|
39
|
+
* weak match for error/warning, which get a warning-triangle icon instead. Either default is
|
|
40
|
+
* still overridable via the `icon` slot. */
|
|
41
|
+
renderDefaultIcon() {
|
|
42
|
+
return this.type === 'error' || this.type === 'warning' ? h(WarningIcon, null) : h(ClockIcon, null);
|
|
43
|
+
}
|
|
33
44
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '1c8597f28e99e0900448fade97c53fd21a945b68', role: this.roleForType(), class: `bs-composer-status-banner bs-composer-status-banner--${this.type}` }, h("div", { key: 'f4d0b098780368863d92c43bac129d58cea2ccfd', class: "bs-composer-status-banner__message-group" }, this.showIcon && (h("span", { key: 'a713386fa868bdc244f9b84780fe1672c0a8f60e', part: "icon", class: "bs-composer-status-banner__icon" }, h("slot", { key: '8aa2007e7f744712c142f26d21bba54f6fa9dec7', name: "icon" }, this.renderDefaultIcon()))), h("p", { key: '000009a01e08ea49bd73f2d3490f1f13bfa9d597', part: "message", class: "bs-composer-status-banner__message" }, this.message)), this.showButton && (h("button", { key: 'd323a702a0f3f4f3cb16c23bb75d0f26a2b13b4b', type: "button", part: "action", class: "bs-composer-status-banner__action", onClick: this.onActionClick }, this.actionLabel)), this.allowClose && (h("button", { key: 'b62fa5da8b4fb8c40004f955b9368b71ae0b054c', type: "button", part: "close", class: "bs-composer-status-banner__close", "aria-label": "Dismiss", onClick: this.onCloseClick }, h(CloseIcon, { key: '4c8396f98eff345569ca9ca8940115aa4bc7c3f8' })))));
|
|
35
46
|
}
|
|
36
47
|
};
|
|
37
48
|
const ClockIcon = () => (h("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("circle", { cx: "10", cy: "10", r: "7.25", stroke: "currentColor", "stroke-width": "1.3" }), h("path", { d: "M10 5.83V10L12.5 11.67", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
49
|
+
const WarningIcon = () => (h("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M10 3L18 17H2L10 3Z", stroke: "currentColor", "stroke-width": "1.3", "stroke-linejoin": "round" }), h("path", { d: "M10 8V11.5", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round" }), h("circle", { cx: "10", cy: "14", r: "0.75", fill: "currentColor" })));
|
|
38
50
|
const CloseIcon = () => (h("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M15 5L5 15", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M15 15L5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
39
51
|
BsComposerStatusBanner.style = bsComposerStatusBannerCss();
|
|
40
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DST5-cTx.js';
|
|
2
2
|
|
|
3
|
-
const bsComposerCss = () => `:host{display:block;--bs-composer-radius:var(--bs-border-radius-150);--bs-composer-button-radius:var(--bs-border-radius-100);--bs-composer-button-size:var(--bs-spacing-600);--bs-composer-bg:var(--bs-input-bg-default);--bs-composer-border:var(--bs-input-border-default);--bs-composer-border-focus:var(--bs-input-border-focus);--bs-composer-action-bg:var(--bs-color-primary-default);--bs-composer-action-bg-hover:var(--bs-color-primary-hover);--bs-composer-action-bg-pressed:var(--bs-color-primary-pressed);--bs-composer-action-bg-disabled:var(--bs-surface-action-disabled);--bs-composer-action-icon:var(--bs-text-on-action);--bs-composer-action-icon-disabled:var(--bs-text-on-disabled);--bs-composer-attach-icon:var(--bs-icon-default);--bs-composer-mic-icon:var(--bs-icon-default);--bs-composer-mic-icon-disabled:var(--bs-icon-disabled);--bs-composer-mic-recording-icon:var(--bs-icon-default);--bs-composer-subtle-hover:var(--bs-color-neutral-container);--bs-composer-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-composer-waveform-color:var(--bs-border-default)}.bs-composer{box-sizing:border-box;display:flex;flex-direction:column;border:1px solid var(--bs-composer-border);border-radius:var(--bs-composer-radius);background:var(--bs-composer-bg);font-family:inherit}.bs-composer--human{border-style:dashed}.bs-composer:focus-within{border-color:var(--bs-composer-border-focus)}.bs-composer__attachments-row{display:none}.bs-composer__attachments-row--visible{display:block}.bs-composer__text-row{display:flex;align-items:center;gap:var(--bs-spacing-150);padding:var(--bs-spacing-150)}.bs-composer__input{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md)}.bs-composer__input::placeholder{color:var(--bs-input-placeholder)}.bs-composer__input:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-composer__waveform{display:inline-flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;overflow:hidden}.bs-composer__waveform-bar{display:inline-block;flex-shrink:0;width:2.5px;border-radius:1.5px;background:var(--bs-composer-waveform-color);height:var(--bs-composer-bar-height, 6px)}.bs-composer__controls-row{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150)}.bs-composer__spacer{flex:1}.bs-composer__attach,.bs-composer__mic,.bs-composer__action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;font-family:inherit;border-radius:var(--bs-composer-button-radius);width:var(--bs-composer-button-size);height:var(--bs-composer-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer__attach:focus-visible,.bs-composer__mic:focus-visible,.bs-composer__action:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-composer__attach svg,.bs-composer__mic svg,.bs-composer__action svg{width:24px;height:24px}.bs-composer__attach,.bs-composer__mic{background:transparent}.bs-composer__attach:hover:not(:disabled),.bs-composer__mic:hover:not(:disabled){background:var(--bs-composer-subtle-hover)}.bs-composer__attach:active:not(:disabled),.bs-composer__mic:active:not(:disabled){background:var(--bs-composer-subtle-pressed)}.bs-composer__attach{color:var(--bs-composer-attach-icon)}.bs-composer__mic{color:var(--bs-composer-mic-icon)}.bs-composer__mic--recording{color:var(--bs-composer-mic-recording-icon)}.bs-composer__mic:disabled{color:var(--bs-composer-mic-icon-disabled);cursor:not-allowed}.bs-composer__action{background:var(--bs-composer-action-bg);color:var(--bs-composer-action-icon)}.bs-composer__action:hover:not(:disabled){background:var(--bs-composer-action-bg-hover)}.bs-composer__action:active:not(:disabled){background:var(--bs-composer-action-bg-pressed)}.bs-composer__action:disabled{background:var(--bs-composer-action-bg-disabled);color:var(--bs-composer-action-icon-disabled);cursor:not-allowed}`;
|
|
3
|
+
const bsComposerCss = () => `:host{display:block;--bs-composer-radius:var(--bs-border-radius-150);--bs-composer-button-radius:var(--bs-border-radius-100);--bs-composer-button-size:var(--bs-spacing-600);--bs-composer-bg:var(--bs-input-bg-default);--bs-composer-border:var(--bs-input-border-default);--bs-composer-border-focus:var(--bs-input-border-focus);--bs-composer-action-bg:var(--bs-color-primary-default);--bs-composer-action-bg-hover:var(--bs-color-primary-hover);--bs-composer-action-bg-pressed:var(--bs-color-primary-pressed);--bs-composer-action-bg-disabled:var(--bs-surface-action-disabled);--bs-composer-action-icon:var(--bs-text-on-action);--bs-composer-action-icon-disabled:var(--bs-text-on-disabled);--bs-composer-attach-icon:var(--bs-icon-default);--bs-composer-mic-icon:var(--bs-icon-default);--bs-composer-mic-icon-disabled:var(--bs-icon-disabled);--bs-composer-mic-recording-icon:var(--bs-icon-default);--bs-composer-subtle-hover:var(--bs-color-neutral-container);--bs-composer-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-composer-waveform-color:var(--bs-border-default);--bs-composer-input-max-lines:10}.bs-composer{box-sizing:border-box;display:flex;flex-direction:column;border:1px solid var(--bs-composer-border);border-radius:var(--bs-composer-radius);background:var(--bs-composer-bg);font-family:inherit}.bs-composer--human{border-style:dashed}.bs-composer:focus-within{border-color:var(--bs-composer-border-focus)}.bs-composer__attachments-row{display:none}.bs-composer__attachments-row--visible{display:block}.bs-composer__text-row{display:flex;align-items:center;gap:var(--bs-spacing-150);padding:var(--bs-spacing-150)}.bs-composer__input{flex:1;min-width:0;box-sizing:border-box;padding:0;border:none;outline:none;resize:none;background:transparent;color:var(--bs-input-text);font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px);max-height:calc(var(--bs-composer-input-max-lines) * var(--bs-line-height-body-md) * 1px);overflow-y:auto}.bs-composer__input::placeholder{color:var(--bs-input-placeholder)}.bs-composer__input:disabled{color:var(--bs-input-text-disabled);cursor:not-allowed}.bs-composer__waveform{display:inline-flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:3px;overflow:hidden}.bs-composer__waveform-bar{display:inline-block;flex-shrink:0;width:2.5px;border-radius:1.5px;background:var(--bs-composer-waveform-color);height:var(--bs-composer-bar-height, 6px)}.bs-composer__controls-row{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150)}.bs-composer__spacer{flex:1}.bs-composer__attach,.bs-composer__mic,.bs-composer__action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;font-family:inherit;border-radius:var(--bs-composer-button-radius);width:var(--bs-composer-button-size);height:var(--bs-composer-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-composer__attach:focus-visible,.bs-composer__mic:focus-visible,.bs-composer__action:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-composer__attach svg,.bs-composer__mic svg,.bs-composer__action svg{width:24px;height:24px}.bs-composer__attach,.bs-composer__mic{background:transparent}.bs-composer__attach:hover:not(:disabled),.bs-composer__mic:hover:not(:disabled){background:var(--bs-composer-subtle-hover)}.bs-composer__attach:active:not(:disabled),.bs-composer__mic:active:not(:disabled){background:var(--bs-composer-subtle-pressed)}.bs-composer__attach{color:var(--bs-composer-attach-icon)}.bs-composer__mic{color:var(--bs-composer-mic-icon)}.bs-composer__mic--recording{color:var(--bs-composer-mic-recording-icon)}.bs-composer__mic:disabled{color:var(--bs-composer-mic-icon-disabled);cursor:not-allowed}.bs-composer__action{background:var(--bs-composer-action-bg);color:var(--bs-composer-action-icon)}.bs-composer__action:hover:not(:disabled){background:var(--bs-composer-action-bg-hover)}.bs-composer__action:active:not(:disabled){background:var(--bs-composer-action-bg-pressed)}.bs-composer__action:disabled{background:var(--bs-composer-action-bg-disabled);color:var(--bs-composer-action-icon-disabled);cursor:not-allowed}`;
|
|
4
4
|
|
|
5
5
|
const DEFAULT_PLACEHOLDERS = {
|
|
6
6
|
ai: 'Ask Genie something...',
|
|
@@ -24,6 +24,7 @@ const BsComposer = class {
|
|
|
24
24
|
this.bsMicToggle = createEvent(this, "bsMicToggle");
|
|
25
25
|
}
|
|
26
26
|
get el() { return getElement(this); }
|
|
27
|
+
inputEl;
|
|
27
28
|
/**
|
|
28
29
|
* Which flavor of composer this is: changes the *default* placeholder text (set `placeholder`
|
|
29
30
|
* directly to override it) and, per the Figma design, renders the container border dashed
|
|
@@ -34,7 +35,12 @@ const BsComposer = class {
|
|
|
34
35
|
/** Overrides the variant's default placeholder. */
|
|
35
36
|
placeholder;
|
|
36
37
|
/** Current text value. Native `input` events don't cross the Shadow DOM boundary, so this
|
|
37
|
-
* component re-dispatches them as a `bsInput` custom event instead.
|
|
38
|
+
* component re-dispatches them as a `bsInput` custom event instead.
|
|
39
|
+
*
|
|
40
|
+
* The field is a `<textarea>` (not a single-line `<input>`) that grows with its content, up to
|
|
41
|
+
* `--bs-composer-input-max-lines` (10 by default) -- beyond that it scrolls internally instead
|
|
42
|
+
* of growing further. Setting `value` as a prop (not just typing) also re-triggers the resize,
|
|
43
|
+
* so e.g. programmatically clearing the field after submit correctly shrinks it back down. */
|
|
38
44
|
value = '';
|
|
39
45
|
/**
|
|
40
46
|
* Which of the four mutually-exclusive composer states to render: `idle` (send, enabled),
|
|
@@ -71,11 +77,38 @@ const BsComposer = class {
|
|
|
71
77
|
componentWillLoad() {
|
|
72
78
|
this.hasAttachments = Array.from(this.el.childNodes).some(node => node.nodeType === Node.ELEMENT_NODE && node.getAttribute('slot') === 'attachments');
|
|
73
79
|
}
|
|
80
|
+
componentDidLoad() {
|
|
81
|
+
this.resizeInput();
|
|
82
|
+
}
|
|
83
|
+
/** Re-runs the auto-grow calculation after every re-render -- notably including a `value` prop
|
|
84
|
+
* change from the outside (e.g. a consumer clearing the field after submit, or pre-filling it),
|
|
85
|
+
* not just while the user is typing. This has to be `componentDidUpdate`, not a `@Watch('value')`
|
|
86
|
+
* callback: `@Watch` fires as soon as the prop is reassigned, which is BEFORE Stencil's next
|
|
87
|
+
* render actually pushes the new value into the textarea's DOM `.value` -- reading `scrollHeight`
|
|
88
|
+
* at that point still reflects the OLD content, so the resize would silently no-op. */
|
|
89
|
+
componentDidUpdate() {
|
|
90
|
+
this.resizeInput();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Grows the textarea to fit its content, up to `--bs-composer-input-max-lines` worth of height
|
|
94
|
+
* (CSS `max-height` clamps the visual result and `overflow-y: auto` takes over beyond that --
|
|
95
|
+
* see bs-composer.css). Resetting `height` to `auto` first is required before reading
|
|
96
|
+
* `scrollHeight`, otherwise a shrinking edit (e.g. deleting a line) would never shrink the
|
|
97
|
+
* textarea back down -- `scrollHeight` only ever reports the larger of "current height" and
|
|
98
|
+
* "content height" if the height isn't cleared first.
|
|
99
|
+
*/
|
|
100
|
+
resizeInput() {
|
|
101
|
+
if (!this.inputEl)
|
|
102
|
+
return;
|
|
103
|
+
this.inputEl.style.height = 'auto';
|
|
104
|
+
this.inputEl.style.height = `${this.inputEl.scrollHeight}px`;
|
|
105
|
+
}
|
|
74
106
|
onAttachmentsSlotchange = (ev) => {
|
|
75
107
|
this.hasAttachments = ev.target.assignedNodes().length > 0;
|
|
76
108
|
};
|
|
77
109
|
onInput = (ev) => {
|
|
78
110
|
const value = ev.target.value;
|
|
111
|
+
this.resizeInput();
|
|
79
112
|
this.bsInput.emit(value);
|
|
80
113
|
};
|
|
81
114
|
onAttachClick = () => {
|
|
@@ -113,7 +146,7 @@ const BsComposer = class {
|
|
|
113
146
|
const placeholder = this.placeholder ?? DEFAULT_PLACEHOLDERS[this.variant];
|
|
114
147
|
const disabled = this.state === 'disabled';
|
|
115
148
|
const recording = this.state === 'recording';
|
|
116
|
-
return (h("div", { key: '
|
|
149
|
+
return (h("div", { key: '4d6ea6241693e45065388f34f9fe2c141eb6379f', class: `bs-composer bs-composer--${this.state} bs-composer--${this.variant}` }, h("div", { key: '952853cd4a36c5dc6057186825432616c5c99b38', part: "attachments", class: `bs-composer__attachments-row ${this.hasAttachments ? 'bs-composer__attachments-row--visible' : ''}` }, h("slot", { key: '65311f5b1f1b8fd1e6c9f33741a53c94bbe292b0', name: "attachments", onSlotchange: this.onAttachmentsSlotchange })), h("div", { key: '8699568430ff2140b0869a004a253e6c01e1984f', class: "bs-composer__text-row" }, h("textarea", { key: '5505815f7bb6ff19191ffea375fcd7fb856371fd', ref: el => (this.inputEl = el), part: "input", class: "bs-composer__input", rows: 1, value: this.value, placeholder: placeholder, disabled: disabled, "aria-label": this.ariaLabel, onInput: this.onInput })), h("div", { key: 'fd65f7928117afd583e3f1e2372cbb66305a530e', class: "bs-composer__controls-row" }, h("button", { key: '4e691d7ca567a4ece45601f47836d1ac7c5e2a1d', type: "button", part: "attach", class: "bs-composer__attach", "aria-label": "Attach", onClick: this.onAttachClick }, h(PlusIcon, { key: 'e363bbfcd346090dbceafd20d893af0903952223' })), recording ? (h("span", { class: "bs-composer__waveform", "aria-hidden": "true" }, WAVEFORM_BAR_HEIGHTS.map(height => (h("span", { class: "bs-composer__waveform-bar", style: { '--bs-composer-bar-height': `${height}px` } }))))) : (h("span", { class: "bs-composer__spacer" })), h("button", { key: 'e0f113e189ec7ded494c7ef7cf91fe3e13df01bc', type: "button", part: "mic", class: `bs-composer__mic ${recording ? 'bs-composer__mic--recording' : ''}`, "aria-label": recording ? 'Stop recording' : 'Start voice input', disabled: disabled, onClick: this.onMicClick }, recording ? h(StopIcon, null) : h(MicIcon, null)), h("button", { key: '3603219c2c3781a9e2894142313f84dfa52c21ed', type: "button", part: "action", class: `bs-composer__action bs-composer__action--${this.state}`, "aria-label": this.actionLabel(), disabled: disabled, onClick: this.onActionClick }, this.renderActionIcon()), h("slot", { key: '3d143aa3f254310dba537c19a6ac4c40205a405d', name: "actions-end" }))));
|
|
117
150
|
}
|
|
118
151
|
static get delegatesFocus() { return true; }
|
|
119
152
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-DST5-cTx.js';
|
|
2
2
|
|
|
3
3
|
const bsDataTableCss = () => `:host{display:block}.bs-data-table{width:100%;border-collapse:collapse;font-family:inherit;font-size:var(--bs-font-size-sm);color:var(--bs-text-default)}.bs-data-table__header-cell{text-align:left;padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-secondary);white-space:nowrap}.bs-data-table__sort-button{display:inline-flex;align-items:center;border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;user-select:none}.bs-data-table__sort-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-data-table__sort-indicator{color:var(--bs-text-action)}.bs-data-table__row:hover{background:var(--bs-surface-hover)}.bs-data-table__cell{padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}.bs-data-table__select-col{width:var(--bs-spacing-500);padding:var(--bs-spacing-200) var(--bs-spacing-300);border-bottom:1px solid var(--bs-border-default)}`;
|
|
4
4
|
|
|
@@ -41,11 +41,11 @@ const BsDataTable = class {
|
|
|
41
41
|
this.bsRowSelect.emit({ id: row.id, selected });
|
|
42
42
|
};
|
|
43
43
|
render() {
|
|
44
|
-
return (h("table", { key: '
|
|
44
|
+
return (h("table", { key: 'b22d3029ddc85bd7125d69b53be2ed427cc7e3c4', part: "table", class: "bs-data-table" }, h("thead", { key: '469ff536b8e09ed6f866b1a883ad06f9df75f003', part: "head" }, h("tr", { key: '8394e3bfe1259bb2342a324ded83dfac41eb8271' }, this.selectable && h("th", { key: '9d2b97169b92b9e45209f91f855431901e8897c1', class: "bs-data-table__select-col" }), this.columns.map(column => {
|
|
45
45
|
const isSorted = this.sortColumn === column.key;
|
|
46
46
|
const ariaSort = column.sortable ? (isSorted ? (this.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none') : undefined;
|
|
47
47
|
return (h("th", { part: "header-cell", class: "bs-data-table__header-cell", "aria-sort": ariaSort }, column.sortable ? (h("button", { type: "button", class: "bs-data-table__sort-button", onClick: () => this.onHeaderClick(column) }, column.label, isSorted && h("span", { class: "bs-data-table__sort-indicator" }, this.sortDirection === 'asc' ? ' ▲' : ' ▼'))) : (column.label)));
|
|
48
|
-
}))), h("tbody", { key: '
|
|
48
|
+
}))), h("tbody", { key: '8a9fa723abcb83820c489b8f07eab58ee306e491', part: "body" }, this.rows.map(row => (h("tr", { part: "row", class: "bs-data-table__row" }, this.selectable && (h("td", { class: "bs-data-table__select-col" }, h("input", { type: "checkbox", checked: this.selectedIds.has(row.id), onChange: ev => this.onRowCheckboxChange(row, ev) }))), this.columns.map(column => this.cellRenderer ? (
|
|
49
49
|
// cellRenderer is a developer-supplied, trusted function (JS-property-only, never
|
|
50
50
|
// derived from untrusted input) -- its HTML output is intentionally not escaped,
|
|
51
51
|
// same trust model as React's dangerouslySetInnerHTML.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-DST5-cTx.js';
|
|
2
|
+
|
|
3
|
+
const bsIconButtonCss = () => `:host{display:inline-block;--bs-icon-button-radius:var(--bs-border-radius-100);--bs-icon-button-size-sm:40px;--bs-icon-button-size-md:44px;--bs-icon-button-size-lg:48px;--bs-icon-button-icon-size-sm:16px;--bs-icon-button-icon-size-md:20px;--bs-icon-button-icon-size-lg:24px;--bs-icon-button-padding:var(--bs-spacing-150);--bs-icon-button-radius-xs:var(--bs-border-radius-50);--bs-icon-button-size-xs:16px;--bs-icon-button-icon-size-xs:8px;--bs-icon-button-padding-xs:var(--bs-spacing-50);--bs-icon-button-primary-default:var(--bs-color-primary-default);--bs-icon-button-primary-hover:var(--bs-color-primary-hover);--bs-icon-button-primary-pressed:var(--bs-color-primary-pressed);--bs-icon-button-primary-disabled:var(--bs-surface-action-disabled);--bs-icon-button-neutral-container:var(--bs-color-neutral-container);--bs-icon-button-neutral-hover:var(--bs-color-neutral-container-hover);--bs-icon-button-neutral-pressed:var(--bs-color-neutral-container-pressed);--bs-icon-button-neutral-border:var(--bs-border-neutral-container);--bs-icon-button-neutral-border-hover:var(--bs-border-neutral-container-hover);--bs-icon-button-neutral-border-pressed:var(--bs-border-neutral-container-pressed);--bs-icon-button-subtle-hover:var(--bs-color-neutral-container);--bs-icon-button-subtle-pressed:var(--bs-color-neutral-container-pressed);--bs-icon-button-subtle-focus:var(--bs-border-primary-focus);--bs-icon-button-outlined-border:var(--bs-border-primary);--bs-icon-button-outlined-border-hover:var(--bs-border-primary-hover);--bs-icon-button-outlined-container:var(--bs-color-primary-container);--bs-icon-button-outlined-focus:var(--bs-border-primary-focus);--bs-icon-button-success-default:var(--bs-color-success-default);--bs-icon-button-success-hover:var(--bs-color-success-hover);--bs-icon-button-success-pressed:var(--bs-color-success-pressed);--bs-icon-button-success-disabled:var(--bs-surface-action-disabled);--bs-icon-button-success-focus:var(--bs-border-success-focus);--bs-icon-button-warning-default:var(--bs-color-warning-default);--bs-icon-button-warning-hover:var(--bs-color-warning-hover);--bs-icon-button-warning-pressed:var(--bs-color-warning-pressed);--bs-icon-button-warning-disabled:var(--bs-surface-action-disabled);--bs-icon-button-warning-focus:var(--bs-border-warning-focus);--bs-icon-button-info-default:var(--bs-color-info-default);--bs-icon-button-info-hover:var(--bs-color-info-hover);--bs-icon-button-info-pressed:var(--bs-color-info-pressed);--bs-icon-button-info-disabled:var(--bs-surface-action-disabled);--bs-icon-button-info-focus:var(--bs-border-info-focus);--bs-icon-button-error-default:var(--bs-color-error-default);--bs-icon-button-error-hover:var(--bs-color-error-hover);--bs-icon-button-error-pressed:var(--bs-color-error-pressed);--bs-icon-button-error-disabled:var(--bs-surface-action-disabled);--bs-icon-button-error-focus:var(--bs-border-error-focus)}.bs-icon-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;border-radius:var(--bs-icon-button-radius);padding:var(--bs-icon-button-padding);cursor:pointer;transition:background-color var(--bs-duration-fast, 120ms) var(--bs-easing-standard, ease)}.bs-icon-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-icon-button:disabled{cursor:not-allowed}.bs-icon-button--xs{width:var(--bs-icon-button-size-xs);height:var(--bs-icon-button-size-xs);padding:var(--bs-icon-button-padding-xs);border-radius:var(--bs-icon-button-radius-xs)}.bs-icon-button--xs .bs-icon-button__icon{width:var(--bs-icon-button-icon-size-xs);height:var(--bs-icon-button-icon-size-xs)}.bs-icon-button--sm{width:var(--bs-icon-button-size-sm);height:var(--bs-icon-button-size-sm)}.bs-icon-button--sm .bs-icon-button__icon{width:var(--bs-icon-button-icon-size-sm);height:var(--bs-icon-button-icon-size-sm)}.bs-icon-button--md{width:var(--bs-icon-button-size-md);height:var(--bs-icon-button-size-md)}.bs-icon-button--md .bs-icon-button__icon{width:var(--bs-icon-button-icon-size-md);height:var(--bs-icon-button-icon-size-md)}.bs-icon-button--lg{width:var(--bs-icon-button-size-lg);height:var(--bs-icon-button-size-lg)}.bs-icon-button--lg .bs-icon-button__icon{width:var(--bs-icon-button-icon-size-lg);height:var(--bs-icon-button-icon-size-lg)}.bs-icon-button__icon{display:inline-flex;align-items:center;justify-content:center;color:inherit}.bs-icon-button__icon ::slotted(*){display:block;width:100%;height:100%}.bs-icon-button--primary{background:var(--bs-icon-button-primary-default);color:var(--bs-text-on-action)}.bs-icon-button--primary:hover:not(:disabled){background:var(--bs-icon-button-primary-hover)}.bs-icon-button--primary:active:not(:disabled){background:var(--bs-icon-button-primary-pressed)}.bs-icon-button--primary:disabled{background:var(--bs-icon-button-primary-disabled);color:var(--bs-text-on-disabled)}.bs-icon-button--neutral{background:var(--bs-icon-button-neutral-container);color:var(--bs-text-default);border:1px solid var(--bs-icon-button-neutral-border)}.bs-icon-button--neutral:hover:not(:disabled){background:var(--bs-icon-button-neutral-hover);border-color:var(--bs-icon-button-neutral-border-hover)}.bs-icon-button--neutral:active:not(:disabled){background:var(--bs-icon-button-neutral-pressed);border-color:var(--bs-icon-button-neutral-border-pressed)}.bs-icon-button--neutral:disabled{background:var(--bs-icon-button-neutral-container);color:var(--bs-text-on-disabled);border-color:var(--bs-icon-button-neutral-border)}.bs-icon-button--error{background:var(--bs-icon-button-error-default);color:var(--bs-text-on-action)}.bs-icon-button--error:hover:not(:disabled){background:var(--bs-icon-button-error-hover)}.bs-icon-button--error:active:not(:disabled){background:var(--bs-icon-button-error-pressed)}.bs-icon-button--error:disabled{background:var(--bs-icon-button-error-disabled);color:var(--bs-text-on-disabled)}.bs-icon-button--error:focus-visible{outline-color:var(--bs-icon-button-error-focus)}.bs-icon-button--success{background:var(--bs-icon-button-success-default);color:var(--bs-text-on-action)}.bs-icon-button--success:hover:not(:disabled){background:var(--bs-icon-button-success-hover)}.bs-icon-button--success:active:not(:disabled){background:var(--bs-icon-button-success-pressed)}.bs-icon-button--success:disabled{background:var(--bs-icon-button-success-disabled);color:var(--bs-text-on-disabled)}.bs-icon-button--success:focus-visible{outline-color:var(--bs-icon-button-success-focus)}.bs-icon-button--warning{background:var(--bs-icon-button-warning-default);color:var(--bs-text-on-action)}.bs-icon-button--warning:hover:not(:disabled){background:var(--bs-icon-button-warning-hover)}.bs-icon-button--warning:active:not(:disabled){background:var(--bs-icon-button-warning-pressed)}.bs-icon-button--warning:disabled{background:var(--bs-icon-button-warning-disabled);color:var(--bs-text-on-disabled)}.bs-icon-button--warning:focus-visible{outline-color:var(--bs-icon-button-warning-focus)}.bs-icon-button--info{background:var(--bs-icon-button-info-default);color:var(--bs-text-on-action)}.bs-icon-button--info:hover:not(:disabled){background:var(--bs-icon-button-info-hover)}.bs-icon-button--info:active:not(:disabled){background:var(--bs-icon-button-info-pressed)}.bs-icon-button--info:disabled{background:var(--bs-icon-button-info-disabled);color:var(--bs-text-on-disabled)}.bs-icon-button--info:focus-visible{outline-color:var(--bs-icon-button-info-focus)}.bs-icon-button--subtle{background:transparent;color:var(--bs-icon-neutral-default)}.bs-icon-button--subtle:hover:not(:disabled){background:var(--bs-icon-button-subtle-hover)}.bs-icon-button--subtle:active:not(:disabled){background:var(--bs-icon-button-subtle-pressed)}.bs-icon-button--subtle:disabled{background:transparent;color:var(--bs-text-on-disabled)}.bs-icon-button--subtle:focus-visible{outline-color:var(--bs-icon-button-subtle-focus);background:var(--bs-icon-button-subtle-hover)}.bs-icon-button--outlined{background:transparent;color:var(--bs-color-primary-default);border:1.5px solid var(--bs-icon-button-outlined-border)}.bs-icon-button--outlined:hover:not(:disabled){background:var(--bs-icon-button-outlined-container);border-color:var(--bs-icon-button-outlined-border-hover)}.bs-icon-button--outlined:active:not(:disabled){background:var(--bs-icon-button-outlined-container);color:var(--bs-color-primary-pressed);border-color:var(--bs-icon-button-outlined-border-hover)}.bs-icon-button--outlined:disabled{opacity:var(--bs-opacity-disabled);cursor:not-allowed}.bs-icon-button--outlined:focus-visible{outline-color:var(--bs-icon-button-outlined-focus)}`;
|
|
4
|
+
|
|
5
|
+
const BsIconButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
get el() { return getElement(this); }
|
|
10
|
+
/**
|
|
11
|
+
* Visual style. Maps to the same semantic token families as `bs-button`'s `variant`.
|
|
12
|
+
* `error` is for destructive/irreversible actions per BrandSync guidance, not a stronger
|
|
13
|
+
* emphasis alternative to `primary`.
|
|
14
|
+
*/
|
|
15
|
+
variant = 'primary';
|
|
16
|
+
/** Sizing scale. `xs` (16px, an 8px icon) is a distinct, much smaller tier meant for compact
|
|
17
|
+
* chip/tag "remove" controls, not just a smaller toolbar button -- verified against a separate
|
|
18
|
+
* Figma redline (EG BrandSync UI Kit v1.5, node 20731:18427) from the one `sm`/`md`/`lg` were
|
|
19
|
+
* built against. */
|
|
20
|
+
size = 'md';
|
|
21
|
+
/** Disables the button and applies the disabled token set. */
|
|
22
|
+
disabled = false;
|
|
23
|
+
/** Native `<button>` type. */
|
|
24
|
+
type = 'button';
|
|
25
|
+
/**
|
|
26
|
+
* Accessible name for the button. Required -- this component is always icon-only, so there's
|
|
27
|
+
* no visible label text for screen readers to fall back on. Stencil reflects this camelCase
|
|
28
|
+
* prop to the `aria-label` HTML attribute automatically.
|
|
29
|
+
*/
|
|
30
|
+
ariaLabel = null;
|
|
31
|
+
render() {
|
|
32
|
+
return (h("button", { key: '1551d4e87c9bdedfc51a1a325c93ea9849aa9702', class: `bs-icon-button bs-icon-button--${this.variant} bs-icon-button--${this.size}`, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabel }, h("span", { key: '3966f47ff21fef8687d6d04289863039c2837f10', part: "icon", class: "bs-icon-button__icon" }, h("slot", { key: 'c673adaf051d568be40b13ddad39447994935b2b' }))));
|
|
33
|
+
}
|
|
34
|
+
static get delegatesFocus() { return true; }
|
|
35
|
+
};
|
|
36
|
+
BsIconButton.style = bsIconButtonCss();
|
|
37
|
+
|
|
38
|
+
export { BsIconButton as bs_icon_button };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DST5-cTx.js';
|
|
2
|
+
|
|
3
|
+
const bsInlineTabCss = () => `:host{display:inline-block;--bs-inline-tab-radius:var(--bs-border-radius-full);--bs-inline-tab-padding-y:var(--bs-spacing-100);--bs-inline-tab-padding-x:var(--bs-spacing-200);--bs-inline-tab-padding-left-with-icon:var(--bs-spacing-150);--bs-inline-tab-padding-right-with-icon:var(--bs-spacing-200);--bs-inline-tab-gap:var(--bs-spacing-50);--bs-inline-tab-bg-default:var(--bs-color-neutral-container);--bs-inline-tab-color-default:var(--bs-text-secondary);--bs-inline-tab-bg-hover:var(--bs-color-neutral-container-hover);--bs-inline-tab-color-hover:var(--bs-text-default);--bs-inline-tab-bg-focus:var(--bs-color-neutral-container-focused);--bs-inline-tab-bg-pressed:var(--bs-color-neutral-container-pressed);--bs-inline-tab-focus-ring-color:var(--bs-border-neutral-focus);--bs-inline-tab-bg-disabled:var(--bs-surface-action-disabled);--bs-inline-tab-color-disabled:var(--bs-text-on-disabled);--bs-inline-tab-bg-selected:var(--bs-color-primary-default);--bs-inline-tab-color-selected:var(--bs-text-on-action);--bs-inline-tab-bg-selected-hover:var(--bs-color-primary-hover);--bs-inline-tab-bg-selected-focus:var(--bs-color-primary-focused);--bs-inline-tab-bg-selected-pressed:var(--bs-color-primary-pressed);--bs-inline-tab-font-size:var(--bs-font-size-sm);--bs-inline-tab-font-weight:var(--bs-font-weight-semibold);--bs-inline-tab-line-height:var(--bs-line-height-body-sm)}.bs-inline-tab{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;font-family:inherit;border-radius:var(--bs-inline-tab-radius);padding:var(--bs-inline-tab-padding-y) var(--bs-inline-tab-padding-x);background:var(--bs-inline-tab-bg-default);color:var(--bs-inline-tab-color-default);transition:color var(--bs-duration-fast) var(--bs-easing-standard), background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-inline-tab--has-icon{padding-top:var(--bs-inline-tab-padding-y);padding-bottom:var(--bs-inline-tab-padding-y);padding-left:var(--bs-inline-tab-padding-left-with-icon);padding-right:var(--bs-inline-tab-padding-right-with-icon);gap:var(--bs-inline-tab-gap)}.bs-inline-tab:focus-visible{outline:2px solid var(--bs-inline-tab-focus-ring-color);outline-offset:2px}.bs-inline-tab:not(.bs-inline-tab--selected):not(.bs-inline-tab--disabled):hover{background:var(--bs-inline-tab-bg-hover);color:var(--bs-inline-tab-color-hover)}.bs-inline-tab:not(.bs-inline-tab--selected):not(.bs-inline-tab--disabled):focus-visible{background:var(--bs-inline-tab-bg-focus);color:var(--bs-inline-tab-color-hover)}.bs-inline-tab:not(.bs-inline-tab--selected):not(.bs-inline-tab--disabled):active{background:var(--bs-inline-tab-bg-pressed);color:var(--bs-inline-tab-color-hover)}.bs-inline-tab--selected{background:var(--bs-inline-tab-bg-selected);color:var(--bs-inline-tab-color-selected)}.bs-inline-tab--selected:not(.bs-inline-tab--disabled):hover{background:var(--bs-inline-tab-bg-selected-hover)}.bs-inline-tab--selected:not(.bs-inline-tab--disabled):focus-visible{background:var(--bs-inline-tab-bg-selected-focus)}.bs-inline-tab--selected:not(.bs-inline-tab--disabled):active{background:var(--bs-inline-tab-bg-selected-pressed)}.bs-inline-tab--disabled{background:var(--bs-inline-tab-bg-disabled);color:var(--bs-inline-tab-color-disabled);cursor:not-allowed}.bs-inline-tab__icon{display:none;width:24px;height:24px;flex-shrink:0;color:inherit}.bs-inline-tab__icon--has-content{display:inline-flex;align-items:center;justify-content:center}.bs-inline-tab__icon ::slotted(svg){width:24px;height:24px}.bs-inline-tab__label{display:none;font-size:var(--bs-inline-tab-font-size);font-weight:var(--bs-inline-tab-font-weight);line-height:calc(var(--bs-inline-tab-line-height) * 1px);white-space:nowrap}.bs-inline-tab__label--has-content{display:inline-block}`;
|
|
4
|
+
|
|
5
|
+
const BsInlineTab = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.bsSelect = createEvent(this, "bsSelect");
|
|
9
|
+
}
|
|
10
|
+
get el() { return getElement(this); }
|
|
11
|
+
/** Whether this tab is the currently active one. NOT mutable and NOT self-toggling -- see the
|
|
12
|
+
* "Known gap" note in the class JSDoc. Still reflected as an attribute so consumers/CSS can
|
|
13
|
+
* target `bs-inline-tab[selected]`. */
|
|
14
|
+
selected = false;
|
|
15
|
+
/** Disables the tab: sets the native `disabled` attribute, suppresses hover/focus styling, and
|
|
16
|
+
* prevents clicking from emitting `bsSelect`. */
|
|
17
|
+
disabled = false;
|
|
18
|
+
/** Accessible name for the tab. Required for icon-only usage (no visible label text via the
|
|
19
|
+
* default slot) so screen readers still announce what the tab does -- without it, an icon-only
|
|
20
|
+
* tab has no discernible name at all (axe-core flags this as a critical `button-name`
|
|
21
|
+
* violation). Stencil reflects this camelCase prop to the `aria-label` HTML attribute
|
|
22
|
+
* automatically, same as `bs-tab`'s identical prop. */
|
|
23
|
+
ariaLabel = null;
|
|
24
|
+
/** Tracks whether the `icon` slot has assigned content. */
|
|
25
|
+
hasIcon = false;
|
|
26
|
+
/** Tracks whether the default (label) slot has assigned content. */
|
|
27
|
+
hasLabel = false;
|
|
28
|
+
/** Fires when the tab is clicked. Does not toggle `selected` itself -- see the class JSDoc. */
|
|
29
|
+
bsSelect;
|
|
30
|
+
/**
|
|
31
|
+
* Computes the initial `hasIcon`/`hasLabel` state directly from the host's light DOM children,
|
|
32
|
+
* before first render -- same reasoning as `bs-tab.componentWillLoad` (a slot with zero assigned
|
|
33
|
+
* nodes from the start never fires `slotchange`).
|
|
34
|
+
*/
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
this.hasIcon = this.hasSlottedContent('icon');
|
|
37
|
+
this.hasLabel = this.hasSlottedContent(null);
|
|
38
|
+
}
|
|
39
|
+
hasSlottedContent(slotName) {
|
|
40
|
+
return Array.from(this.el.childNodes).some(node => {
|
|
41
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
42
|
+
return node.getAttribute('slot') === slotName;
|
|
43
|
+
}
|
|
44
|
+
// Only elements can carry a `slot` attribute -- any other node type (text, comments) can
|
|
45
|
+
// only ever be assigned to the default slot.
|
|
46
|
+
return slotName === null;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
onIconSlotchange = (ev) => {
|
|
50
|
+
this.hasIcon = ev.target.assignedNodes().length > 0;
|
|
51
|
+
};
|
|
52
|
+
onLabelSlotchange = (ev) => {
|
|
53
|
+
this.hasLabel = ev.target.assignedNodes().length > 0;
|
|
54
|
+
};
|
|
55
|
+
onClick = () => {
|
|
56
|
+
if (this.disabled)
|
|
57
|
+
return;
|
|
58
|
+
this.bsSelect.emit();
|
|
59
|
+
};
|
|
60
|
+
render() {
|
|
61
|
+
const iconOnly = this.hasIcon && !this.hasLabel;
|
|
62
|
+
return (h("button", { key: 'a0a20d6cb582852ae0276ae2dd91bc5c7708cbfa', type: "button", part: "tab", role: "tab", class: `bs-inline-tab ${this.selected ? 'bs-inline-tab--selected' : ''} ${this.disabled ? 'bs-inline-tab--disabled' : ''} ${iconOnly ? 'bs-inline-tab--icon-only' : ''} ${this.hasIcon ? 'bs-inline-tab--has-icon' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: 'e2fea17db42da65d9ff8ff6d59749572a25c3eb2', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: '4551fc4b092105be399277e42bf343390ae18ff8', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '99de7b930a840f482e0ad2c5e6eaf1b759c6f9ed', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: 'dbedcadbb5b1b51c47d0fa44b8a41f67d6ef4ef0', onSlotchange: this.onLabelSlotchange }))));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
BsInlineTab.style = bsInlineTabCss();
|
|
66
|
+
|
|
67
|
+
export { BsInlineTab as bs_inline_tab };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DST5-cTx.js';
|
|
2
2
|
|
|
3
3
|
const bsInputCss = () => `:host{display:block;--bs-input-radius:var(--bs-border-radius-100);--bs-input-height:var(--bs-spacing-600);--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-50);--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-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-chip-bg:var(--bs-input-bg-disabled);--bs-input-chip-text:var(--bs-input-text)}.bs-input{display:flex;flex-direction:column;gap:var(--bs-input-stack-gap);font-family:inherit}.bs-input__label{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);color:var(--bs-input-label-color)}.bs-input__required{color:var(--bs-input-error-color);margin-left: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;right: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-xs);color:var(--bs-input-description-color)}.bs-input__error{display:flex;align-items:center;gap:var(--bs-input-stack-gap);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{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-input-stack-gap));left:0;right:0;z-index:1}.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{display:inline-flex;align-items:center;gap:4px;background:var(--bs-input-chip-bg);color:var(--bs-input-chip-text);border-radius:var(--bs-input-radius);padding:2px 6px;font-size:var(--bs-font-size-sm)}.bs-input__chip-remove{border:none;background:transparent;color:inherit;cursor:pointer;padding:0;line-height:1}.bs-input__chip-input{flex:1;min-width:60px}.bs-input__title-select,.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__field--pin{border:none;padding:0;background:transparent;gap:var(--bs-input-gap)}.bs-input__pin-cell{box-sizing:border-box;width:var(--bs-input-height);height:var(--bs-input-height);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}`;
|
|
4
4
|
|
|
@@ -294,10 +294,10 @@ const BsInput = class {
|
|
|
294
294
|
return (h("div", { part: "field", class: `bs-input__field bs-input__field--pin ${this.disabled ? 'bs-input__field--disabled' : ''}` }, 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) })))));
|
|
295
295
|
}
|
|
296
296
|
render() {
|
|
297
|
-
return (h("div", { key: '
|
|
297
|
+
return (h("div", { key: '766dae0bf2565f45a9fffffc9684a83c89cea122', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
|
|
298
298
|
// "control" is a fixed id, not a generated one -- safe because Shadow DOM scopes ids
|
|
299
299
|
// to this instance's own shadow root, so it can never collide with another bs-input.
|
|
300
|
-
h("label", { key: '
|
|
300
|
+
h("label", { key: '7935c91837b4882a9b2a416e43f43b1e0d311c8f', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: '4db3ccc8647ebb5e0fb6635fb9c0e6050872b10c', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : 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));
|
|
301
301
|
}
|
|
302
302
|
static get delegatesFocus() { return true; }
|
|
303
303
|
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-DST5-cTx.js';
|
|
2
|
+
|
|
3
|
+
// BrandSync brand mark (icon + "EG BrandSync" wordmark) on a light background, exported directly
|
|
4
|
+
// from Figma's "Logo" component set (node 10909:30421, Device=Desktop, Background=Light) and
|
|
5
|
+
// inlined as a self-contained SVG string -- same pattern as bs-chatbot-header's GENIE_LOGO_SVG.
|
|
6
|
+
// The mark and wordmark were exported as two separate flat SVGs (Figma's own source splits them
|
|
7
|
+
// into several layered clip-path/mask groups that don't matter once flattened) and composited
|
|
8
|
+
// here into one <svg>, since combining them in markup avoids a second HTTP request and keeps the
|
|
9
|
+
// logo a single atomic asset.
|
|
10
|
+
//
|
|
11
|
+
// The icon-to-wordmark gap was tightened from Figma's own exported spacing (a ~48px gap, i.e. the
|
|
12
|
+
// word group translated to x=92.015 against a 44px-wide icon) to 16px (translate-x=60) at the
|
|
13
|
+
// user's request after seeing it rendered -- the original gap read as too much empty space
|
|
14
|
+
// between the mark and the text. Not a Figma re-measurement -- a deliberate deviation. Word group
|
|
15
|
+
// itself (130.977 wide, vertically centered at translate-y=11.3308 against the 44px-tall icon) is
|
|
16
|
+
// unchanged, so the total width is just 60 + 130.977 = 190.977.
|
|
17
|
+
const BRANDSYNC_LOGO_FULL_LIGHT_SVG = `<svg width="190.977" height="44" viewBox="0 0 190.977 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
<g id="Group">
|
|
19
|
+
<path id="Vector" d="M35.2 0.128906H8.8C4.01109 0.128906 0.128905 4.01109 0.128905 8.8V35.2C0.128905 39.9889 4.01109 43.8711 8.8 43.8711H35.2C39.9889 43.8711 43.8711 39.9889 43.8711 35.2V8.8C43.8711 4.01109 39.9889 0.128906 35.2 0.128906Z" fill="white"/>
|
|
20
|
+
<path id="Vector_2" d="M35.2 0.257812C39.9094 0.257812 43.7422 4.08891 43.7422 8.8V35.2C43.7422 39.9094 39.9111 43.7422 35.2 43.7422H8.8C4.09063 43.7422 0.257812 39.9111 0.257812 35.2V8.8C0.257812 4.08891 4.08891 0.257812 8.8 0.257812H35.2ZM35.2 0H8.8C3.93938 0 0 3.93938 0 8.8V35.2C0 40.0606 3.93938 44 8.8 44H35.2C40.0606 44 44 40.0606 44 35.2V8.8C44 3.93938 40.0606 0 35.2 0Z" fill="#E8EAEE"/>
|
|
21
|
+
<path id="Vector_3" d="M18.6038 21.5067L21.5067 18.6038C21.7748 18.3356 22.2097 18.3356 22.4795 18.6038L25.3962 21.5205C25.6644 21.7886 25.6644 22.2252 25.3962 22.4933L22.4933 25.3962C22.2252 25.6644 21.7886 25.6644 21.5205 25.3962L18.6038 22.4795C18.3356 22.2114 18.3356 21.7748 18.6038 21.5067Z" fill="#57B1FF"/>
|
|
22
|
+
<path id="Vector_4" d="M15.6423 12.6586L6.7925 21.5084C6.52438 21.7766 6.52438 22.2114 6.7925 22.4813L9.82781 25.5166C10.0959 25.7847 10.5308 25.7847 10.8006 25.5166L19.6505 16.6667C19.9186 16.3986 19.9186 15.962 19.6505 15.6939L16.6152 12.6586C16.347 12.3905 15.9105 12.3905 15.6423 12.6586Z" fill="#57B1FF"/>
|
|
23
|
+
<path id="Vector_5" d="M28.3559 31.3414L37.2161 22.4813C37.4842 22.2131 37.4842 21.7766 37.2161 21.5084L34.1808 18.4731C33.9127 18.205 33.4778 18.205 33.208 18.4731L24.3478 27.3333C24.0797 27.6014 24.0797 28.038 24.3478 28.3061L27.3831 31.3414C27.6512 31.6095 28.0878 31.6095 28.3559 31.3414Z" fill="#57B1FF"/>
|
|
24
|
+
<path id="Vector_6" d="M28.3577 12.6586L37.2075 21.5084C37.4756 21.7766 37.4756 22.2114 37.2075 22.4813L34.1722 25.5166C33.9041 25.7847 33.4692 25.7847 33.1994 25.5166L24.3495 16.6667C24.0814 16.3986 24.0814 15.962 24.3495 15.6939L27.3848 12.6586C27.653 12.3905 28.0895 12.3905 28.3577 12.6586Z" fill="#1B85FF"/>
|
|
25
|
+
<path id="Vector_7" d="M15.6441 31.3414L6.7839 22.4813C6.51578 22.2131 6.51578 21.7766 6.7839 21.5084L9.81922 18.4731C10.0873 18.205 10.5222 18.205 10.792 18.4731L19.6522 27.3333C19.9203 27.6014 19.9203 28.038 19.6522 28.3061L16.6169 31.3414C16.3487 31.6095 15.9122 31.6095 15.6441 31.3414Z" fill="#1B85FF"/>
|
|
26
|
+
</g>
|
|
27
|
+
<g transform="translate(60, 11.3308)">
|
|
28
|
+
<g id="Group">
|
|
29
|
+
<path id="Vector" d="M116.841 4.455C116.21 4.455 115.605 4.5375 115.043 4.7025C114.587 4.83485 114.087 5.04969 113.48 5.37282V5.18547C113.48 5.00328 113.412 4.88641 113.343 4.79532C113.252 4.675 113.104 4.60797 112.925 4.60797H111.825C111.664 4.60797 111.54 4.66125 111.42 4.77985C111.287 4.91219 111.27 5.05313 111.27 5.18547V16.4038C111.27 16.5653 111.323 16.6891 111.442 16.8094C111.559 16.9263 111.681 16.9813 111.825 16.9813H112.903C113.065 16.9813 113.188 16.928 113.309 16.8094C113.42 16.6977 113.48 16.555 113.48 16.4038V7.20672C114.568 6.67219 115.521 6.40063 116.313 6.40063C117.105 6.40063 117.707 6.6 118.057 6.99188C118.408 7.38375 118.594 8.13656 118.594 9.1661V16.402C118.594 16.5636 118.647 16.6873 118.766 16.8077C118.884 16.9263 119.01 16.9795 119.171 16.9795H120.227C120.388 16.9795 120.512 16.9263 120.632 16.8077C120.751 16.6891 120.804 16.5636 120.804 16.402V9.1661C120.804 6.03969 119.47 4.45328 116.839 4.45328" fill="#363C47"/>
|
|
30
|
+
<path id="Vector_2" d="M52.0747 4.455C51.0555 4.455 50.0827 4.76094 49.1116 5.39V5.18547C49.1116 5.02391 49.0583 4.90016 48.9397 4.77985C48.8314 4.67156 48.7334 4.60797 48.5564 4.60797H47.5234C47.3619 4.60797 47.2381 4.66125 47.1178 4.77985C46.9855 4.91219 46.9683 5.05313 46.9683 5.18547V16.4038C46.9683 16.5653 47.0216 16.6891 47.1402 16.8094C47.257 16.9263 47.3791 16.9813 47.5234 16.9813H48.6011C48.7627 16.9813 48.8864 16.928 49.0067 16.8094C49.1184 16.6994 49.1786 16.555 49.1786 16.4038V7.26688C50.1634 6.69281 51.138 6.40235 52.0764 6.40235C52.6178 6.40235 52.6763 6.04485 52.6763 5.89016V4.98781C52.6763 4.64922 52.458 4.455 52.0764 4.455" fill="#363C47"/>
|
|
31
|
+
<path id="Vector_3" d="M42.6456 8.39266C43.2644 8.10219 43.7525 7.69485 44.1306 7.15688C44.5552 6.55188 44.7717 5.80766 44.7717 4.94485V4.5925C44.7717 1.68438 42.5563 0.20969 38.1889 0.20969C36.8913 0.20969 35.7088 0.269846 34.6792 0.386721C34.1378 0.438284 33.8508 0.766565 33.8508 1.33719V15.9861C33.8508 16.2886 33.9298 16.5395 34.0673 16.677C34.1963 16.8059 34.3888 16.885 34.693 16.9348C35.5438 17.0689 36.7245 17.1342 38.2989 17.1342C42.6525 17.1342 44.8594 15.5186 44.8594 12.3338V11.9591C44.8594 11.0911 44.6291 10.3177 44.1753 9.65938C43.7783 9.0836 43.2764 8.66594 42.6456 8.39094M36.1505 15.082V9.30531H39.4006C40.0331 9.30531 40.5591 9.3775 40.9613 9.51672C41.372 9.6611 41.7106 9.86907 41.9392 10.1183C42.1558 10.3555 42.3294 10.6425 42.4394 10.9519C42.5374 11.2269 42.5855 11.5569 42.5855 11.9608V12.3355C42.5855 12.8683 42.4875 13.3358 42.2916 13.7259C42.1094 14.0886 41.8258 14.3808 41.4459 14.5905C41.0678 14.8002 40.6244 14.9497 40.1259 15.0373C39.6292 15.1233 39.0156 15.168 38.3024 15.168C38.0841 15.168 37.7919 15.1559 37.4206 15.1388L37.0752 15.1233C36.8723 15.1147 36.6953 15.1061 36.5458 15.0992C36.3859 15.0923 36.2536 15.0855 36.1522 15.082M42.4961 4.94485C42.4961 6.61375 41.4837 7.425 39.4006 7.425H36.1505V2.23953C37.2952 2.19828 37.9809 2.17766 38.1906 2.17766C38.763 2.17766 39.2614 2.2 39.6722 2.24297C40.1414 2.29281 40.5367 2.36328 40.8822 2.45953C41.2517 2.56266 41.5456 2.70531 41.7777 2.8961C42.0372 3.10922 42.2022 3.31547 42.3105 3.56985C42.4359 3.86375 42.4978 4.19719 42.4978 4.59422V4.94656L42.4961 4.94485Z" fill="#363C47"/>
|
|
32
|
+
<path id="Vector_4" d="M127.652 6.42297C128.631 6.42297 129.518 6.47282 130.362 6.57594H130.467C130.567 6.57594 130.713 6.56391 130.828 6.44875C130.902 6.37485 130.977 6.27688 130.977 6.11016V5.31782C130.977 5.1786 130.962 5.005 130.848 4.88985C130.776 4.81766 130.642 4.72485 130.422 4.69735C129.451 4.53578 128.52 4.45328 127.65 4.45328C126.125 4.45328 124.929 4.9586 124.092 5.95375C123.241 6.96438 122.829 8.26719 122.829 9.9361V11.6514C122.829 13.3186 123.243 14.6214 124.092 15.6338C124.929 16.6289 126.127 17.1342 127.65 17.1342C128.554 17.1342 129.461 17.0552 130.417 16.8919C130.642 16.8644 130.776 16.7716 130.848 16.6994C130.962 16.5859 130.977 16.4106 130.977 16.2714V15.4791C130.977 15.3123 130.902 15.2144 130.828 15.1405C130.713 15.0253 130.567 15.0116 130.467 15.0116H130.364C129.456 15.1147 128.569 15.1663 127.652 15.1663C125.893 15.1663 125.039 14.0164 125.039 11.6531V9.93781C125.039 7.57281 125.893 6.42469 127.652 6.42469" fill="#363C47"/>
|
|
33
|
+
<path id="Vector_5" d="M58.4306 4.455C57.2773 4.455 56.1223 4.55125 55.0017 4.74203C54.5222 4.81078 54.4225 5.08063 54.4225 5.29547V6.06547C54.4225 6.24766 54.4912 6.55532 54.9553 6.55532H55.0773C56.3286 6.43672 57.4252 6.38 58.4306 6.38C59.2591 6.38 59.84 6.55016 60.1562 6.88703C60.4811 7.2325 60.6461 7.85297 60.6461 8.72782V9.47031H59.1559C57.2223 9.47031 55.8199 9.76766 54.9863 10.3538C54.1441 10.945 53.7178 11.8938 53.7178 13.1708V13.4355C53.7178 14.1384 53.8141 14.7159 54.0134 15.2023C54.218 15.7008 54.4981 16.0789 54.8728 16.3608C55.2802 16.6667 55.6411 16.8506 56.0416 16.9555C56.497 17.0758 56.968 17.1359 57.4406 17.1359C58.4547 17.1359 59.5203 16.8163 60.6908 16.158V16.4038C60.6908 16.5653 60.7441 16.6891 60.8627 16.8094C60.9812 16.928 61.1067 16.9813 61.2683 16.9813H62.2806C62.4422 16.9813 62.5659 16.928 62.6863 16.8094C62.8048 16.6908 62.8581 16.5653 62.8581 16.4038V8.72782C62.8581 7.35625 62.4972 6.28719 61.7856 5.55328C61.0706 4.81422 59.9723 4.455 58.4323 4.455M55.9281 13.1484C55.9281 12.4094 56.1498 11.8714 56.5709 11.5913C56.8872 11.3816 57.5902 11.1306 59.1559 11.1306H60.6461V14.453C59.6458 14.9927 58.6695 15.2763 57.8136 15.2763C57.1777 15.2763 56.6964 15.1388 56.3853 14.8706C56.0862 14.6111 55.9264 14.1058 55.9264 13.4131V13.1484H55.9281Z" fill="#363C47"/>
|
|
34
|
+
<path id="Vector_6" d="M95.028 7.99391L93.005 6.78391C92.1216 6.25453 91.5028 5.8025 91.1642 5.44328C90.8394 5.09781 90.6744 4.69219 90.6744 4.24016C90.6744 3.51656 90.8978 3.02157 91.3584 2.72766C91.8174 2.43547 92.6286 2.28766 93.7698 2.28766C95.0022 2.28766 96.238 2.33063 97.5528 2.42H97.5975C97.735 2.42 97.8605 2.36844 97.9584 2.27047C98.0323 2.19656 98.108 2.09688 98.108 1.93188V0.986564C98.108 0.720158 97.9309 0.534533 97.6164 0.476096C96.4494 0.299064 95.1552 0.211408 93.7681 0.211408C92.0494 0.211408 90.7053 0.544846 89.7738 1.20485C88.8319 1.87172 88.3747 2.86516 88.3747 4.24188C88.3747 5.12016 88.6291 5.88844 89.1292 6.5261C89.6466 7.18438 90.4578 7.85813 91.4753 8.47172L93.6083 9.76938C94.6086 10.3864 95.303 10.8969 95.6708 11.287C96.0111 11.6463 96.183 12.0897 96.183 12.6002C96.183 13.3822 95.9406 14.0164 95.48 14.4341C95.0245 14.8483 94.1823 15.058 92.9775 15.058C91.5802 15.058 90.3633 15.0133 89.3595 14.9256H89.2822C89.1825 14.9256 89.0364 14.9377 88.9212 15.0528C88.8233 15.1508 88.7717 15.2763 88.7717 15.4138V16.2938C88.7717 16.4777 88.8078 16.6066 88.8783 16.677C88.9728 16.7716 89.1894 16.8111 89.3063 16.8266C90.6709 17.0345 91.8723 17.1359 92.9775 17.1359C93.8283 17.1359 94.588 17.0448 95.2359 16.8678C95.9234 16.677 96.4494 16.4484 96.8413 16.1648C97.2606 15.8623 97.5786 15.5375 97.8433 15.1405C98.1148 14.7331 98.3005 14.3172 98.3916 13.9064C98.4981 13.4234 98.548 13.0092 98.548 12.6002C98.548 11.6669 98.2799 10.847 97.7488 10.163C97.2039 9.45828 96.3119 8.75016 95.028 7.99563" fill="#363C47"/>
|
|
35
|
+
<path id="Vector_7" d="M109.022 4.60969H107.79C107.68 4.60969 107.566 4.65438 107.443 4.74719C107.331 4.83141 107.269 4.9225 107.238 5.0411L104.583 14.9909H104.337C104.271 14.9909 104.225 14.9755 104.192 14.9428C104.172 14.9222 104.103 14.8397 104.051 14.6077L101.456 5.06516C101.427 4.94656 101.367 4.83828 101.288 4.75922C101.191 4.66297 101.069 4.60969 100.949 4.60969H99.7391C99.4056 4.60969 99.2063 4.80047 99.2063 5.12188C99.2063 5.21125 99.2063 5.28172 99.2406 5.33672L102.159 15.3622C102.248 15.6939 102.36 15.9723 102.505 16.2113C102.652 16.457 102.773 16.6203 102.95 16.7217L103.022 16.7647C103.153 16.842 103.278 16.9142 103.412 16.9366C103.538 16.9572 103.727 16.983 103.919 16.983H104.051L103.873 17.7152C103.703 18.437 103.476 18.9148 103.195 19.1348C102.905 19.3634 102.444 19.4786 101.829 19.4786C101.503 19.4786 100.83 19.4339 99.8834 19.348H99.8044C99.3455 19.348 99.2492 19.6144 99.2492 19.8361V20.6508C99.2492 20.7608 99.3042 21.0272 99.8198 21.1372C100.42 21.2713 101.052 21.3383 101.697 21.3383C102.57 21.3383 103.276 21.2231 103.797 20.9963C104.313 20.7728 104.732 20.4153 105.045 19.9341C105.337 19.4855 105.609 18.8289 105.853 17.9833L109.476 5.33672C109.51 5.28 109.51 5.21125 109.51 5.12188C109.51 5.02219 109.496 4.8761 109.381 4.76094C109.283 4.66297 109.158 4.61141 109.02 4.61141" fill="#363C47"/>
|
|
36
|
+
<path id="Vector_8" d="M85.8808 0.165002H84.7584C84.5969 0.165002 84.4731 0.218283 84.3528 0.336877C84.2205 0.469221 84.2033 0.605003 84.2033 0.720159V4.6475C83.4213 4.51688 82.6237 4.45328 81.7678 4.45328C80.1573 4.45328 78.9164 4.93453 78.0794 5.885C77.2544 6.82172 76.835 8.20016 76.835 9.97907V11.562C76.835 13.2739 77.2458 14.642 78.0536 15.6303C78.8683 16.6272 80.1178 17.1325 81.7678 17.1325C83.1995 17.1325 84.5694 17.0053 85.8327 16.7578C85.9805 16.7389 86.1884 16.6977 86.3002 16.5498C86.3809 16.4416 86.4153 16.3127 86.4153 16.115V0.71844C86.4153 0.586096 86.3964 0.445159 86.2658 0.312815C86.1334 0.180471 85.9977 0.163283 85.8825 0.163283M84.2033 6.55531V15.0459C83.2047 15.125 82.3642 15.168 81.7678 15.168C80.7641 15.168 80.0748 14.8844 79.6589 14.3017C79.2464 13.7242 79.047 12.8305 79.047 11.5655V9.9825C79.047 8.78625 79.2602 7.88047 79.6813 7.29094C80.0972 6.70828 80.7812 6.42469 81.7695 6.42469C82.8902 6.42469 83.6705 6.46594 84.205 6.55703" fill="#363C47"/>
|
|
37
|
+
<path id="Vector_9" d="M70.8469 4.455C70.2161 4.455 69.6111 4.5375 69.0491 4.7025C68.5936 4.83485 68.0934 5.04969 67.4867 5.37282V5.18547C67.4867 5.00328 67.418 4.88641 67.3492 4.79532C67.2581 4.675 67.1103 4.60797 66.9316 4.60797H65.8316C65.67 4.60797 65.5463 4.66125 65.4259 4.77985C65.2936 4.91219 65.2764 5.05313 65.2764 5.18547V16.4038C65.2764 16.5653 65.3297 16.6891 65.4483 16.8094C65.5652 16.9263 65.6872 16.9813 65.8316 16.9813H66.9092C67.0708 16.9813 67.1945 16.928 67.3148 16.8094C67.4266 16.6994 67.4867 16.555 67.4867 16.4038V7.20672C68.5747 6.67219 69.5269 6.40063 70.3192 6.40063C71.1116 6.40063 71.7131 6.6 72.0638 6.99188C72.4144 7.38375 72.6 8.13656 72.6 9.1661V16.402C72.6 16.5636 72.6533 16.6873 72.7719 16.8077C72.8905 16.928 73.0159 16.9795 73.1775 16.9795H74.2328C74.3944 16.9795 74.5181 16.9263 74.6384 16.8077C74.757 16.6891 74.8103 16.5636 74.8103 16.402V9.1661C74.8103 6.03969 73.4766 4.45328 70.8452 4.45328" fill="#363C47"/>
|
|
38
|
+
<path id="Vector_10" d="M4.96032 17.2288C3.33438 17.2288 2.09172 16.8816 1.265 16.1975C0.426254 15.5014 9.53674e-07 14.3791 9.53674e-07 12.8631V4.39485C9.53674e-07 2.87719 0.426254 1.75485 1.265 1.06047C2.09 0.376408 3.33438 0.0292208 4.96032 0.0292208C8.84813 0.0292208 10.132 0.0687528 11.1117 0.161565C11.3231 0.166722 11.4366 0.336878 11.4744 0.393596C11.5483 0.505315 11.5861 0.623909 11.5861 0.744221V1.84422C11.5861 2.0075 11.5363 2.13985 11.44 2.2361C11.3472 2.32891 11.2114 2.38219 11.0705 2.38219H4.98266C4.27625 2.38219 3.72625 2.45781 3.34469 2.60563C3.01297 2.73453 2.805 2.90985 2.70532 3.14016C2.60047 3.38422 2.55063 3.78469 2.55063 4.39485V7.1775H10.6373C10.835 7.1775 10.9948 7.24453 11.1392 7.39063C11.2836 7.535 11.3523 7.69485 11.3523 7.8925V8.72782C11.3523 8.92547 11.2853 9.08532 11.1392 9.22969C10.9948 9.37407 10.835 9.44281 10.6373 9.44281H2.55063V12.8631C2.55063 13.475 2.59875 13.8738 2.70532 14.1178C2.80329 14.3481 3.01297 14.5234 3.34469 14.6523C3.70907 14.7933 4.10438 14.8758 5.36938 14.8758H11.0705C11.2131 14.8758 11.3489 14.9291 11.4417 15.0219C11.538 15.1181 11.5878 15.2505 11.5878 15.4138V16.5361C11.5878 16.6564 11.55 16.775 11.4761 16.8867C11.4383 16.9434 11.3248 17.1136 11.1048 17.1188C10.3469 17.1892 8.81719 17.2288 6.80454 17.2288H4.96204H4.96032Z" fill="#363C47"/>
|
|
39
|
+
<path id="Vector_11" d="M26.8623 8.94094V16.1906C26.8623 16.6547 26.6114 16.7406 26.5048 16.7716C26.4498 16.7888 24.2086 17.2838 20.5717 17.2838C16.2456 17.2838 12.9095 14.8139 12.9095 10.3813C12.9095 9.96875 12.9044 9.8175 12.9044 7.08125C12.9044 1.3286 17.3542 2.38419e-06 20.8209 2.38419e-06C23.9456 2.38419e-06 25.0491 0.266408 26.2281 0.445158C26.3398 0.462346 26.4413 0.495003 26.5255 0.541409C26.5891 0.575784 26.6441 0.618752 26.6905 0.666877C26.785 0.766564 26.84 0.89719 26.84 1.05016V2.15532C26.84 2.25844 26.8073 2.57125 26.4327 2.64C26.3863 2.6486 26.333 2.65375 26.2745 2.65375C26.2745 2.65375 26.1834 2.65375 26.1577 2.65031C25.9428 2.63141 23.6569 2.36844 21.0203 2.36844C17.3663 2.36844 15.467 3.92735 15.467 7.23594V10.1372C15.467 13.5541 17.7255 14.9428 20.6903 14.9428C23.0244 14.9428 24.2963 14.7177 24.2963 14.7177V10.5016H22.715C22.3953 10.5016 22.0017 10.2678 22.0017 9.8725C22.0017 9.47719 21.9966 9.45828 21.9966 8.94266C21.9966 8.42703 22.4056 8.22422 22.715 8.22422H26.1645C26.5822 8.22422 26.8606 8.57485 26.8606 8.94266" fill="#363C47"/>
|
|
40
|
+
</g>
|
|
41
|
+
</g>
|
|
42
|
+
</svg>`;
|
|
43
|
+
|
|
44
|
+
// BrandSync brand mark (icon + "EG BrandSync" wordmark) on a dark background, exported directly
|
|
45
|
+
// from Figma's "Logo" component set (node 10909:30421, Device=Desktop, Background=Dark). This is
|
|
46
|
+
// a genuinely separate, differently-drawn asset from brandsync-logo-full-light.ts's
|
|
47
|
+
// BRANDSYNC_LOGO_FULL_LIGHT_SVG -- not a currentColor swap of the same paths: every wordmark path
|
|
48
|
+
// is filled solid `white` instead of `#363C47`, and the icon mark's outer shape is a single solid
|
|
49
|
+
// white path instead of the light version's two-path white-fill-plus-subtle-border-ring. Composed
|
|
50
|
+
// the same way as the light asset (icon + word group, translated so the word is vertically
|
|
51
|
+
// centered against the 44px-tall icon) -- icon is 44px wide, and translate-y = (44 - 21.3383) / 2 =
|
|
52
|
+
// 11.3308, matching the light asset's own vertical-centering math exactly (word height 21.3383,
|
|
53
|
+
// word width 130.977 either way).
|
|
54
|
+
//
|
|
55
|
+
// The icon-to-wordmark gap was tightened from Figma's own exported spacing (a ~48px gap, i.e. the
|
|
56
|
+
// word group translated to x=91.868) to 16px (translate-x=60) at the user's request after seeing
|
|
57
|
+
// it rendered -- the original gap read as too much empty space between the mark and the text. Not
|
|
58
|
+
// a Figma re-measurement -- a deliberate deviation, matching the same change made to the light
|
|
59
|
+
// asset. Total width is 190.0 -- 0.977px narrower than the light asset's 190.977 despite an
|
|
60
|
+
// identical translate-x, since the two assets' word-group bounding boxes already differed by that
|
|
61
|
+
// same amount before this change (a pre-existing Figma export discrepancy, not something this
|
|
62
|
+
// change touches).
|
|
63
|
+
const BRANDSYNC_LOGO_FULL_DARK_SVG = `<svg width="190.0" height="44" viewBox="0 0 190.0 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
64
|
+
<g id="Group">
|
|
65
|
+
<path id="Vector" d="M35.2 44H8.8C3.93938 44 0 40.0606 0 35.2V8.8C0 3.93938 3.93938 0 8.8 0H35.2C40.0606 0 44 3.93938 44 8.8V35.2C44 40.0606 40.0606 44 35.2 44Z" fill="white"/>
|
|
66
|
+
<path id="Vector_2" d="M18.6038 21.5067L21.5067 18.6038C21.7748 18.3356 22.2097 18.3356 22.4795 18.6038L25.3963 21.5205C25.6644 21.7886 25.6644 22.2252 25.3963 22.4933L22.4933 25.3962C22.2252 25.6644 21.7886 25.6644 21.5205 25.3962L18.6038 22.4795C18.3356 22.2114 18.3356 21.7748 18.6038 21.5067Z" fill="#57B1FF"/>
|
|
67
|
+
<path id="Vector_3" d="M15.6423 12.6586L6.7925 21.5084C6.52438 21.7766 6.52438 22.2114 6.7925 22.4813L9.82782 25.5166C10.0959 25.7847 10.5308 25.7847 10.8006 25.5166L19.6505 16.6667C19.9186 16.3986 19.9186 15.962 19.6505 15.6939L16.6152 12.6586C16.347 12.3905 15.9105 12.3905 15.6423 12.6586Z" fill="#57B1FF"/>
|
|
68
|
+
<path id="Vector_4" d="M28.3559 31.3414L37.2161 22.4813C37.4842 22.2131 37.4842 21.7766 37.2161 21.5084L34.1808 18.4731C33.9127 18.205 33.4778 18.205 33.208 18.4731L24.3478 27.3333C24.0797 27.6014 24.0797 28.038 24.3478 28.3061L27.3831 31.3414C27.6513 31.6095 28.0878 31.6095 28.3559 31.3414Z" fill="#57B1FF"/>
|
|
69
|
+
<path id="Vector_5" d="M28.3577 12.6586L37.2075 21.5084C37.4756 21.7766 37.4756 22.2114 37.2075 22.4813L34.1722 25.5166C33.9041 25.7847 33.4692 25.7847 33.1994 25.5166L24.3495 16.6667C24.0814 16.3986 24.0814 15.962 24.3495 15.6939L27.3848 12.6586C27.653 12.3905 28.0895 12.3905 28.3577 12.6586Z" fill="#1B85FF"/>
|
|
70
|
+
<path id="Vector_6" d="M15.6441 31.3414L6.78391 22.4813C6.51578 22.2131 6.51578 21.7766 6.78391 21.5084L9.81922 18.4731C10.0873 18.205 10.5222 18.205 10.792 18.4731L19.6522 27.3333C19.9203 27.6014 19.9203 28.038 19.6522 28.3061L16.6169 31.3414C16.3488 31.6095 15.9122 31.6095 15.6441 31.3414Z" fill="#1B85FF"/>
|
|
71
|
+
</g>
|
|
72
|
+
<g transform="translate(60, 11.3308)">
|
|
73
|
+
<g id="Group">
|
|
74
|
+
<path id="Vector" d="M58.4306 4.455C57.2773 4.455 56.1223 4.55125 55.0017 4.74203C54.5222 4.81078 54.4225 5.08063 54.4225 5.29547V6.06547C54.4225 6.24766 54.4912 6.55531 54.9553 6.55531H55.0773C56.3286 6.43672 57.4252 6.38 58.4306 6.38C59.2591 6.38 59.84 6.55016 60.1562 6.88703C60.4811 7.2325 60.6461 7.85297 60.6461 8.72781V9.47031H59.1559C57.2223 9.47031 55.8199 9.76766 54.9863 10.3538C54.1441 10.945 53.7178 11.8938 53.7178 13.1708V13.4355C53.7178 14.1384 53.8141 14.7159 54.0134 15.2023C54.218 15.7008 54.4981 16.0789 54.8728 16.3608C55.2802 16.6667 55.6411 16.8506 56.0416 16.9555C56.497 17.0758 56.968 17.1359 57.4406 17.1359C58.4547 17.1359 59.5203 16.8163 60.6908 16.158V16.4038C60.6908 16.5653 60.7441 16.6891 60.8627 16.8094C60.9812 16.928 61.1067 16.9813 61.2683 16.9813H62.2806C62.4422 16.9813 62.5659 16.928 62.6863 16.8094C62.8048 16.6908 62.8581 16.5653 62.8581 16.4038V8.72781C62.8581 7.35625 62.4972 6.28719 61.7856 5.55328C61.0706 4.81422 59.9723 4.455 58.4323 4.455M55.9281 13.1484C55.9281 12.4094 56.1498 11.8714 56.5709 11.5913C56.8872 11.3816 57.5902 11.1306 59.1559 11.1306H60.6461V14.453C59.6458 14.9927 58.6695 15.2763 57.8136 15.2763C57.1777 15.2763 56.6964 15.1388 56.3853 14.8706C56.0862 14.6111 55.9264 14.1058 55.9264 13.4131V13.1484H55.9281Z" fill="white"/>
|
|
75
|
+
<path id="Vector_2" d="M52.0747 4.455C51.0555 4.455 50.0827 4.76094 49.1116 5.39V5.18547C49.1116 5.02391 49.0583 4.90016 48.9397 4.77984C48.8314 4.67156 48.7334 4.60797 48.5564 4.60797H47.5234C47.3619 4.60797 47.2381 4.66125 47.1178 4.77984C46.9855 4.91219 46.9683 5.05313 46.9683 5.18547V16.4038C46.9683 16.5653 47.0216 16.6891 47.1402 16.8094C47.257 16.9263 47.3791 16.9813 47.5234 16.9813H48.6011C48.7627 16.9813 48.8864 16.928 49.0067 16.8094C49.1184 16.6994 49.1786 16.555 49.1786 16.4038V7.26688C50.1634 6.69281 51.138 6.40234 52.0764 6.40234C52.6178 6.40234 52.6763 6.04484 52.6763 5.89016V4.98781C52.6763 4.64922 52.458 4.455 52.0764 4.455" fill="white"/>
|
|
76
|
+
<path id="Vector_3" d="M42.6456 8.39266C43.2644 8.10219 43.7525 7.69484 44.1306 7.15688C44.5552 6.55188 44.7717 5.80766 44.7717 4.94484V4.5925C44.7717 1.68438 42.5563 0.209689 38.1889 0.209689C36.8913 0.209689 35.7088 0.269845 34.6792 0.38672C34.1378 0.438282 33.8508 0.766563 33.8508 1.33719V15.9861C33.8508 16.2886 33.9298 16.5395 34.0673 16.677C34.1963 16.8059 34.3888 16.885 34.693 16.9348C35.5438 17.0689 36.7245 17.1342 38.2989 17.1342C42.6525 17.1342 44.8594 15.5186 44.8594 12.3338V11.9591C44.8594 11.0911 44.6291 10.3177 44.1753 9.65938C43.7783 9.0836 43.2764 8.66594 42.6456 8.39094M36.1505 15.082V9.30531H39.4006C40.0331 9.30531 40.5591 9.3775 40.9613 9.51672C41.372 9.6611 41.7106 9.86906 41.9392 10.1183C42.1558 10.3555 42.3294 10.6425 42.4394 10.9519C42.5374 11.2269 42.5855 11.5569 42.5855 11.9608V12.3355C42.5855 12.8683 42.4875 13.3358 42.2916 13.7259C42.1094 14.0886 41.8258 14.3808 41.4459 14.5905C41.0678 14.8002 40.6244 14.9497 40.1259 15.0373C39.6292 15.1233 39.0156 15.168 38.3024 15.168C38.0841 15.168 37.7919 15.1559 37.4206 15.1388L37.0752 15.1233C36.8723 15.1147 36.6953 15.1061 36.5458 15.0992C36.3859 15.0923 36.2536 15.0855 36.1522 15.082M42.4961 4.94484C42.4961 6.61375 41.4837 7.425 39.4006 7.425H36.1505V2.23953C37.2952 2.19828 37.9809 2.17766 38.1906 2.17766C38.763 2.17766 39.2614 2.2 39.6722 2.24297C40.1414 2.29281 40.5367 2.36328 40.8822 2.45953C41.2517 2.56266 41.5456 2.70531 41.7777 2.89609C42.0372 3.10922 42.2022 3.31547 42.3105 3.56984C42.4359 3.86375 42.4978 4.19719 42.4978 4.59422V4.94656L42.4961 4.94484Z" fill="white"/>
|
|
77
|
+
<path id="Vector_4" d="M116.841 4.455C116.21 4.455 115.605 4.5375 115.043 4.7025C114.587 4.83484 114.087 5.04969 113.48 5.37281V5.18547C113.48 5.00328 113.412 4.88641 113.343 4.79531C113.252 4.675 113.104 4.60797 112.925 4.60797H111.825C111.664 4.60797 111.54 4.66125 111.42 4.77984C111.287 4.91219 111.27 5.05313 111.27 5.18547V16.4037C111.27 16.5653 111.323 16.6891 111.442 16.8094C111.559 16.9263 111.681 16.9813 111.825 16.9813H112.903C113.065 16.9813 113.188 16.928 113.309 16.8094C113.42 16.6977 113.48 16.555 113.48 16.4037V7.20672C114.568 6.67219 115.521 6.40063 116.313 6.40063C117.105 6.40063 117.707 6.6 118.057 6.99188C118.408 7.38375 118.594 8.13656 118.594 9.16609V16.402C118.594 16.5636 118.647 16.6873 118.766 16.8077C118.884 16.9263 119.01 16.9795 119.171 16.9795H120.227C120.388 16.9795 120.512 16.9263 120.632 16.8077C120.751 16.6891 120.804 16.5636 120.804 16.402V9.16609C120.804 6.03969 119.47 4.45328 116.839 4.45328" fill="white"/>
|
|
78
|
+
<path id="Vector_5" d="M109.022 4.60969H107.79C107.68 4.60969 107.566 4.65438 107.443 4.74719C107.331 4.83141 107.269 4.9225 107.238 5.04109L104.583 14.9909H104.337C104.271 14.9909 104.225 14.9755 104.192 14.9428C104.172 14.9222 104.103 14.8397 104.051 14.6077L101.456 5.06516C101.427 4.94656 101.367 4.83828 101.288 4.75922C101.191 4.66297 101.069 4.60969 100.949 4.60969H99.7391C99.4056 4.60969 99.2063 4.80047 99.2063 5.12188C99.2063 5.21125 99.2063 5.28172 99.2406 5.33672L102.159 15.3622C102.248 15.6939 102.36 15.9723 102.505 16.2113C102.652 16.457 102.773 16.6203 102.95 16.7217L103.022 16.7647C103.153 16.842 103.278 16.9142 103.412 16.9366C103.538 16.9572 103.727 16.983 103.919 16.983H104.051L103.873 17.7152C103.703 18.437 103.476 18.9148 103.195 19.1348C102.905 19.3634 102.444 19.4786 101.829 19.4786C101.503 19.4786 100.83 19.4339 99.8834 19.348H99.8044C99.3455 19.348 99.2492 19.6144 99.2492 19.8361V20.6508C99.2492 20.7608 99.3042 21.0272 99.8198 21.1372C100.42 21.2713 101.052 21.3383 101.697 21.3383C102.57 21.3383 103.276 21.2231 103.797 20.9963C104.313 20.7728 104.732 20.4153 105.045 19.9341C105.337 19.4855 105.609 18.8289 105.853 17.9833L109.476 5.33672C109.51 5.28 109.51 5.21125 109.51 5.12188C109.51 5.02219 109.496 4.87609 109.381 4.76094C109.283 4.66297 109.158 4.61141 109.02 4.61141" fill="white"/>
|
|
79
|
+
<path id="Vector_6" d="M127.652 6.42297C128.631 6.42297 129.518 6.47281 130.362 6.57594H130.467C130.567 6.57594 130.713 6.56391 130.828 6.44875C130.902 6.37484 130.977 6.27688 130.977 6.11016V5.31781C130.977 5.1786 130.962 5.005 130.848 4.88984C130.776 4.81766 130.642 4.72484 130.422 4.69734C129.451 4.53578 128.52 4.45328 127.65 4.45328C126.125 4.45328 124.929 4.95859 124.092 5.95375C123.241 6.96438 122.829 8.26719 122.829 9.9361V11.6514C122.829 13.3186 123.243 14.6214 124.092 15.6338C124.929 16.6289 126.127 17.1342 127.65 17.1342C128.554 17.1342 129.461 17.0552 130.417 16.8919C130.642 16.8644 130.776 16.7716 130.848 16.6994C130.962 16.5859 130.977 16.4106 130.977 16.2714V15.4791C130.977 15.3123 130.902 15.2144 130.828 15.1405C130.713 15.0253 130.567 15.0116 130.467 15.0116H130.364C129.456 15.1147 128.569 15.1663 127.652 15.1663C125.893 15.1663 125.039 14.0164 125.039 11.6531V9.93781C125.039 7.57281 125.893 6.42469 127.652 6.42469" fill="white"/>
|
|
80
|
+
<path id="Vector_7" d="M85.8808 0.165001H84.7584C84.5969 0.165001 84.4731 0.218282 84.3528 0.336876C84.2205 0.46922 84.2033 0.605001 84.2033 0.720158V4.6475C83.4213 4.51688 82.6237 4.45328 81.7678 4.45328C80.1573 4.45328 78.9164 4.93453 78.0794 5.885C77.2544 6.82172 76.835 8.20016 76.835 9.97906V11.562C76.835 13.2739 77.2458 14.642 78.0536 15.6303C78.8683 16.6272 80.1178 17.1325 81.7678 17.1325C83.1995 17.1325 84.5694 17.0053 85.8327 16.7578C85.9805 16.7389 86.1884 16.6977 86.3002 16.5498C86.3809 16.4416 86.4153 16.3127 86.4153 16.115V0.718439C86.4153 0.586095 86.3964 0.445157 86.2658 0.312814C86.1334 0.18047 85.9977 0.163282 85.8825 0.163282M84.2033 6.55531V15.0459C83.2047 15.125 82.3642 15.168 81.7678 15.168C80.7641 15.168 80.0748 14.8844 79.6589 14.3017C79.2464 13.7242 79.047 12.8305 79.047 11.5655V9.9825C79.047 8.78625 79.2602 7.88047 79.6813 7.29094C80.0972 6.70828 80.7812 6.42469 81.7695 6.42469C82.8902 6.42469 83.6705 6.46594 84.205 6.55703" fill="white"/>
|
|
81
|
+
<path id="Vector_8" d="M95.028 7.99391L93.005 6.78391C92.1216 6.25453 91.5028 5.8025 91.1642 5.44328C90.8394 5.09781 90.6744 4.69219 90.6744 4.24016C90.6744 3.51656 90.8978 3.02156 91.3584 2.72766C91.8174 2.43547 92.6286 2.28766 93.7698 2.28766C95.0022 2.28766 96.238 2.33063 97.5528 2.42H97.5975C97.735 2.42 97.8605 2.36844 97.9584 2.27047C98.0323 2.19656 98.108 2.09688 98.108 1.93188V0.986563C98.108 0.720157 97.9309 0.534532 97.6164 0.476094C96.4494 0.299063 95.1552 0.211407 93.7681 0.211407C92.0494 0.211407 90.7053 0.544845 89.7738 1.20485C88.8319 1.87172 88.3747 2.86516 88.3747 4.24188C88.3747 5.12016 88.6291 5.88844 89.1292 6.52609C89.6466 7.18438 90.4578 7.85813 91.4753 8.47172L93.6083 9.76938C94.6086 10.3864 95.303 10.8969 95.6708 11.287C96.0111 11.6463 96.183 12.0897 96.183 12.6002C96.183 13.3822 95.9406 14.0164 95.48 14.4341C95.0245 14.8483 94.1823 15.058 92.9775 15.058C91.5802 15.058 90.3633 15.0133 89.3595 14.9256H89.2822C89.1825 14.9256 89.0364 14.9377 88.9212 15.0528C88.8233 15.1508 88.7717 15.2762 88.7717 15.4137V16.2937C88.7717 16.4777 88.8078 16.6066 88.8783 16.677C88.9728 16.7716 89.1894 16.8111 89.3063 16.8266C90.6709 17.0345 91.8723 17.1359 92.9775 17.1359C93.8283 17.1359 94.588 17.0448 95.2359 16.8678C95.9234 16.677 96.4494 16.4484 96.8413 16.1648C97.2606 15.8623 97.5786 15.5375 97.8433 15.1405C98.1148 14.7331 98.3005 14.3172 98.3916 13.9064C98.4981 13.4234 98.548 13.0092 98.548 12.6002C98.548 11.6669 98.2799 10.847 97.7488 10.163C97.2039 9.45828 96.3119 8.75016 95.028 7.99562" fill="white"/>
|
|
82
|
+
<path id="Vector_9" d="M70.8469 4.455C70.2161 4.455 69.6111 4.5375 69.0491 4.7025C68.5936 4.83484 68.0934 5.04969 67.4867 5.37281V5.18547C67.4867 5.00328 67.418 4.88641 67.3492 4.79531C67.2581 4.675 67.1103 4.60797 66.9316 4.60797H65.8316C65.67 4.60797 65.5463 4.66125 65.4259 4.77984C65.2936 4.91219 65.2764 5.05313 65.2764 5.18547V16.4037C65.2764 16.5653 65.3297 16.6891 65.4483 16.8094C65.5652 16.9263 65.6872 16.9813 65.8316 16.9813H66.9092C67.0708 16.9813 67.1945 16.928 67.3148 16.8094C67.4266 16.6994 67.4867 16.555 67.4867 16.4037V7.20672C68.5747 6.67219 69.5269 6.40063 70.3192 6.40063C71.1116 6.40063 71.7131 6.6 72.0638 6.99188C72.4144 7.38375 72.6 8.13656 72.6 9.16609V16.402C72.6 16.5636 72.6533 16.6873 72.7719 16.8077C72.8905 16.928 73.0159 16.9795 73.1775 16.9795H74.2328C74.3944 16.9795 74.5181 16.9263 74.6384 16.8077C74.757 16.6891 74.8103 16.5636 74.8103 16.402V9.16609C74.8103 6.03969 73.4766 4.45328 70.8452 4.45328" fill="white"/>
|
|
83
|
+
<path id="Vector_10" d="M4.96032 17.2288C3.33438 17.2288 2.09172 16.8816 1.265 16.1975C0.426254 15.5014 9.53674e-07 14.3791 9.53674e-07 12.8631V4.39484C9.53674e-07 2.87719 0.426254 1.75484 1.265 1.06047C2.09 0.376407 3.33438 0.0292195 4.96032 0.0292195C8.84813 0.0292195 10.132 0.0687515 11.1117 0.161564C11.3231 0.16672 11.4366 0.336876 11.4744 0.393595C11.5483 0.505314 11.5861 0.623908 11.5861 0.74422V1.84422C11.5861 2.0075 11.5363 2.13985 11.44 2.2361C11.3472 2.32891 11.2114 2.38219 11.0705 2.38219H4.98266C4.27625 2.38219 3.72625 2.45781 3.34469 2.60563C3.01297 2.73453 2.805 2.90984 2.70532 3.14016C2.60047 3.38422 2.55063 3.78469 2.55063 4.39484V7.1775H10.6373C10.835 7.1775 10.9948 7.24453 11.1392 7.39063C11.2836 7.535 11.3523 7.69484 11.3523 7.8925V8.72781C11.3523 8.92547 11.2853 9.08531 11.1392 9.22969C10.9948 9.37406 10.835 9.44281 10.6373 9.44281H2.55063V12.8631C2.55063 13.475 2.59875 13.8737 2.70532 14.1178C2.80329 14.3481 3.01297 14.5234 3.34469 14.6523C3.70907 14.7933 4.10438 14.8758 5.36938 14.8758H11.0705C11.2131 14.8758 11.3489 14.9291 11.4417 15.0219C11.538 15.1181 11.5878 15.2505 11.5878 15.4138V16.5361C11.5878 16.6564 11.55 16.775 11.4761 16.8867C11.4383 16.9434 11.3248 17.1136 11.1048 17.1188C10.3469 17.1892 8.81719 17.2288 6.80454 17.2288H4.96204H4.96032Z" fill="white"/>
|
|
84
|
+
<path id="Vector_11" d="M26.8623 8.94094V16.1906C26.8623 16.6547 26.6114 16.7406 26.5048 16.7716C26.4498 16.7888 24.2086 17.2838 20.5717 17.2838C16.2456 17.2838 12.9095 14.8139 12.9095 10.3813C12.9095 9.96875 12.9044 9.8175 12.9044 7.08125C12.9044 1.32859 17.3542 1.07288e-06 20.8209 1.07288e-06C23.9456 1.07288e-06 25.0491 0.266407 26.2281 0.445157C26.3398 0.462344 26.4413 0.495001 26.5255 0.541408C26.5891 0.575783 26.6441 0.618751 26.6905 0.666876C26.785 0.766563 26.84 0.897189 26.84 1.05016V2.15531C26.84 2.25844 26.8073 2.57125 26.4327 2.64C26.3863 2.64859 26.333 2.65375 26.2745 2.65375C26.2745 2.65375 26.1834 2.65375 26.1577 2.65031C25.9428 2.63141 23.6569 2.36844 21.0203 2.36844C17.3663 2.36844 15.467 3.92734 15.467 7.23594V10.1372C15.467 13.5541 17.7255 14.9428 20.6903 14.9428C23.0244 14.9428 24.2963 14.7177 24.2963 14.7177V10.5016H22.715C22.3953 10.5016 22.0017 10.2678 22.0017 9.8725C22.0017 9.47719 21.9966 9.45828 21.9966 8.94266C21.9966 8.42703 22.4056 8.22422 22.715 8.22422H26.1645C26.5822 8.22422 26.8606 8.57485 26.8606 8.94266" fill="white"/>
|
|
85
|
+
</g>
|
|
86
|
+
</g>
|
|
87
|
+
</svg>`;
|
|
88
|
+
|
|
89
|
+
// BrandSync icon mark only (no wordmark), extracted from the icon portion of
|
|
90
|
+
// brandsync-logo-full-light.ts's BRANDSYNC_LOGO_FULL_LIGHT_SVG (its first <g id="Group"> block,
|
|
91
|
+
// viewBox 0 0 44 44) and wrapped as its own standalone <svg>. Figma's "Logo" component set (node
|
|
92
|
+
// 10909:30421) only has one real designed instance of the icon-only mark (Device="Tab and
|
|
93
|
+
// mobile", Background="Default") -- there is no separate dark-background version of it, so this
|
|
94
|
+
// single asset is used regardless of bs-logo's `background` prop when `variant="mark"`.
|
|
95
|
+
const BRANDSYNC_LOGO_MARK_SVG = `<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
96
|
+
<g id="Group">
|
|
97
|
+
<path id="Vector" d="M35.2 0.128906H8.8C4.01109 0.128906 0.128905 4.01109 0.128905 8.8V35.2C0.128905 39.9889 4.01109 43.8711 8.8 43.8711H35.2C39.9889 43.8711 43.8711 39.9889 43.8711 35.2V8.8C43.8711 4.01109 39.9889 0.128906 35.2 0.128906Z" fill="white"/>
|
|
98
|
+
<path id="Vector_2" d="M35.2 0.257812C39.9094 0.257812 43.7422 4.08891 43.7422 8.8V35.2C43.7422 39.9094 39.9111 43.7422 35.2 43.7422H8.8C4.09063 43.7422 0.257812 39.9111 0.257812 35.2V8.8C0.257812 4.08891 4.08891 0.257812 8.8 0.257812H35.2ZM35.2 0H8.8C3.93938 0 0 3.93938 0 8.8V35.2C0 40.0606 3.93938 44 8.8 44H35.2C40.0606 44 44 40.0606 44 35.2V8.8C44 3.93938 40.0606 0 35.2 0Z" fill="#E8EAEE"/>
|
|
99
|
+
<path id="Vector_3" d="M18.6038 21.5067L21.5067 18.6038C21.7748 18.3356 22.2097 18.3356 22.4795 18.6038L25.3962 21.5205C25.6644 21.7886 25.6644 22.2252 25.3962 22.4933L22.4933 25.3962C22.2252 25.6644 21.7886 25.6644 21.5205 25.3962L18.6038 22.4795C18.3356 22.2114 18.3356 21.7748 18.6038 21.5067Z" fill="#57B1FF"/>
|
|
100
|
+
<path id="Vector_4" d="M15.6423 12.6586L6.7925 21.5084C6.52438 21.7766 6.52438 22.2114 6.7925 22.4813L9.82781 25.5166C10.0959 25.7847 10.5308 25.7847 10.8006 25.5166L19.6505 16.6667C19.9186 16.3986 19.9186 15.962 19.6505 15.6939L16.6152 12.6586C16.347 12.3905 15.9105 12.3905 15.6423 12.6586Z" fill="#57B1FF"/>
|
|
101
|
+
<path id="Vector_5" d="M28.3559 31.3414L37.2161 22.4813C37.4842 22.2131 37.4842 21.7766 37.2161 21.5084L34.1808 18.4731C33.9127 18.205 33.4778 18.205 33.208 18.4731L24.3478 27.3333C24.0797 27.6014 24.0797 28.038 24.3478 28.3061L27.3831 31.3414C27.6512 31.6095 28.0878 31.6095 28.3559 31.3414Z" fill="#57B1FF"/>
|
|
102
|
+
<path id="Vector_6" d="M28.3577 12.6586L37.2075 21.5084C37.4756 21.7766 37.4756 22.2114 37.2075 22.4813L34.1722 25.5166C33.9041 25.7847 33.4692 25.7847 33.1994 25.5166L24.3495 16.6667C24.0814 16.3986 24.0814 15.962 24.3495 15.6939L27.3848 12.6586C27.653 12.3905 28.0895 12.3905 28.3577 12.6586Z" fill="#1B85FF"/>
|
|
103
|
+
<path id="Vector_7" d="M15.6441 31.3414L6.7839 22.4813C6.51578 22.2131 6.51578 21.7766 6.7839 21.5084L9.81922 18.4731C10.0873 18.205 10.5222 18.205 10.792 18.4731L19.6522 27.3333C19.9203 27.6014 19.9203 28.038 19.6522 28.3061L16.6169 31.3414C16.3487 31.6095 15.9122 31.6095 15.6441 31.3414Z" fill="#1B85FF"/>
|
|
104
|
+
</g>
|
|
105
|
+
</svg>`;
|
|
106
|
+
|
|
107
|
+
const bsLogoCss = () => `:host{display:inline-block;--bs-logo-width-full:190.977px;--bs-logo-height-full:44px;--bs-logo-width-mark:44px;--bs-logo-height-mark:44px;--bs-logo-height-custom:44px}.bs-logo{display:block}.bs-logo--full{width:var(--bs-logo-width-full);height:var(--bs-logo-height-full)}.bs-logo--mark{width:var(--bs-logo-width-mark);height:var(--bs-logo-height-mark)}.bs-logo svg{display:block;width:100%;height:100%}.bs-logo__asset{display:none;width:100%;height:100%}.bs-logo--bg-auto .bs-logo__asset--light{display:var(--bs-logo-asset-light-display, block)}.bs-logo--bg-auto .bs-logo__asset--dark{display:var(--bs-logo-asset-dark-display, none)}.bs-logo--bg-light .bs-logo__asset--light{display:block}.bs-logo--bg-dark .bs-logo__asset--dark{display:block}.bs-logo--custom{width:auto;height:var(--bs-logo-height-custom);object-fit:contain}`;
|
|
108
|
+
|
|
109
|
+
const BsLogo = class {
|
|
110
|
+
constructor(hostRef) {
|
|
111
|
+
registerInstance(this, hostRef);
|
|
112
|
+
}
|
|
113
|
+
/** How much of the logo to render. `full` is the icon + "EG BrandSync" wordmark (190.977x44
|
|
114
|
+
* natural size); `mark` is just the icon (44x44 natural size), no wordmark; `custom` renders a
|
|
115
|
+
* consumer-supplied image via `src`/`alt` instead of a built-in BrandSync asset -- see the class
|
|
116
|
+
* doc above. */
|
|
117
|
+
variant = 'full';
|
|
118
|
+
/**
|
|
119
|
+
* Which pre-built asset to use for `variant="full"` -- Figma ships a genuinely separate,
|
|
120
|
+
* differently-drawn dark-background asset (every wordmark path filled solid white, and the
|
|
121
|
+
* icon's outer shape a single solid-white path instead of the light version's two-path
|
|
122
|
+
* white-fill-plus-border-ring), not a CSS currentColor swap of identical paths.
|
|
123
|
+
*
|
|
124
|
+
* `"auto"` (default) renders both assets and lets CSS pick one via
|
|
125
|
+
* `--bs-logo-asset-light-display`/`--bs-logo-asset-dark-display` (defined in
|
|
126
|
+
* `src/global/base.css`, flipped by the same `[data-theme="dark"]` attribute every other
|
|
127
|
+
* `--bs-*` token already reacts to) -- so the logo just follows the ambient theme with no wiring
|
|
128
|
+
* needed, the same way a consuming app's own dark mode already re-themes every other part of
|
|
129
|
+
* this library via ordinary CSS custom property inheritance. Set `"light"`/`"dark"` explicitly
|
|
130
|
+
* to pin one regardless of the ambient theme -- e.g. a dark sidebar that isn't otherwise
|
|
131
|
+
* dark-themed.
|
|
132
|
+
*
|
|
133
|
+
* Has no effect on `variant="mark"`: Figma's component set only has one real designed instance
|
|
134
|
+
* of the icon-only mark (`Device="Tab and mobile"`, `Background="Default"`) -- there's no
|
|
135
|
+
* separate dark version of it, so the mark renders identically regardless of this prop.
|
|
136
|
+
*/
|
|
137
|
+
background = 'auto';
|
|
138
|
+
/** `variant="custom"` only: the image URL to render (e.g. a URL your app already fetched from a
|
|
139
|
+
* logo API). Ignored for `full`/`mark`. */
|
|
140
|
+
src = null;
|
|
141
|
+
/**
|
|
142
|
+
* `variant="custom"` only: accessible alt text for the image -- a product logo is meaningful
|
|
143
|
+
* content (whose brand is this?), not decorative, so set this to something real (e.g. the
|
|
144
|
+
* product/company name). Falls back to `alt=""` (marking the image decorative to assistive
|
|
145
|
+
* tech) when unset, rather than omitting the `alt` attribute entirely -- an `<img>` with no
|
|
146
|
+
* `alt` attribute at all is a harder accessibility failure than one explicitly marked
|
|
147
|
+
* decorative, but an empty fallback is still worse than a real name, so don't rely on it.
|
|
148
|
+
* Ignored for `full`/`mark` (those already carry their own fixed `aria-label="BrandSync"`).
|
|
149
|
+
*/
|
|
150
|
+
alt = null;
|
|
151
|
+
render() {
|
|
152
|
+
if (this.variant === 'custom') {
|
|
153
|
+
return h("img", { part: "logo", class: "bs-logo bs-logo--custom", src: this.src ?? undefined, alt: this.alt ?? '' });
|
|
154
|
+
}
|
|
155
|
+
if (this.variant === 'mark') {
|
|
156
|
+
return h("div", { part: "logo", class: "bs-logo bs-logo--mark", role: "img", "aria-label": "BrandSync", innerHTML: BRANDSYNC_LOGO_MARK_SVG });
|
|
157
|
+
}
|
|
158
|
+
return (h("div", { part: "logo", class: `bs-logo bs-logo--full bs-logo--bg-${this.background}`, role: "img", "aria-label": "BrandSync" }, h("div", { class: "bs-logo__asset bs-logo__asset--light", innerHTML: BRANDSYNC_LOGO_FULL_LIGHT_SVG }), h("div", { class: "bs-logo__asset bs-logo__asset--dark", innerHTML: BRANDSYNC_LOGO_FULL_DARK_SVG })));
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
BsLogo.style = bsLogoCss();
|
|
162
|
+
|
|
163
|
+
export { BsLogo as bs_logo };
|