@brandsync/wc 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +266 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-31fe38dd.entry.js → p-1b16b6e4.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bbd238cd.entry.js → p-1bfc80c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c8fabfd0.entry.js → p-1d094352.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6fa6a576.entry.js → p-27741046.entry.js} +1 -1
- package/dist/brandsync-wc/{p-984e9878.entry.js → p-2c2057f5.entry.js} +1 -1
- package/dist/brandsync-wc/p-2e8bf5da.entry.js +1 -0
- package/dist/brandsync-wc/{p-d5ea1b72.entry.js → p-35850bfe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b5ebbc76.entry.js → p-3e4a9f38.entry.js} +1 -1
- package/dist/brandsync-wc/{p-93984743.entry.js → p-3f6980bf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-df0fc514.entry.js → p-42f428b0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6dc7fc4a.entry.js → p-46957b76.entry.js} +1 -1
- package/dist/brandsync-wc/{p-baea8952.entry.js → p-4df71e00.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c89ab519.entry.js → p-58969b2b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-700fb759.entry.js → p-5ea24f7e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4567c1d0.entry.js → p-5f233b4e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2eb6db9f.entry.js → p-692fd5f0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-826c08ac.entry.js → p-69c76966.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b22038b2.entry.js → p-6acdf2e1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-507b5c4b.entry.js → p-6b62bf53.entry.js} +1 -1
- package/dist/brandsync-wc/{p-03a8fbbf.entry.js → p-6fd1fb04.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0c7f993e.entry.js → p-76a37a98.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d7ce9505.entry.js → p-83bda5f1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e5b1d254.entry.js → p-899d24f8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bca1149c.entry.js → p-8f90e906.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b1353da8.entry.js → p-906b4faa.entry.js} +1 -1
- package/dist/brandsync-wc/{p-17cef278.entry.js → p-943fc6b9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-fc52e0df.entry.js → p-95e0fb92.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4ba7690a.entry.js → p-9d5cf289.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b176c547.entry.js → p-a34c7553.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1d50cff0.entry.js → p-a55a3d87.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1030c935.entry.js → p-a64b64f8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8dec61f7.entry.js → p-a77a5438.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3b3ef658.entry.js → p-a96ec9a1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9a2f986d.entry.js → p-ac2ccc4b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c060d84.entry.js → p-b332fe01.entry.js} +1 -1
- package/dist/brandsync-wc/{p-117a52dc.entry.js → p-b4211012.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f0df6653.entry.js → p-c91eb3eb.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5bf18d08.entry.js → p-cd90ed34.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3eecd03e.entry.js → p-d1dfd37d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0534d0a9.entry.js → p-d69e5034.entry.js} +1 -1
- package/dist/brandsync-wc/p-dadbb3f1.entry.js +1 -0
- package/dist/brandsync-wc/{p-113ed9df.entry.js → p-dbd49107.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a6bc823e.entry.js → p-dc974a34.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6b850a6c.entry.js → p-e9a89ea0.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dc974d62.entry.js → p-eb1c98a5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-07043faa.entry.js → p-f0a6ff05.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9bc67188.entry.js → p-f4cb1337.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10ad342b.entry.js → p-fd1acc0f.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +1 -1
- package/dist/cjs/bs-accordion.cjs.entry.js +54 -0
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- package/dist/cjs/bs-badge.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-card.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
- package/dist/cjs/bs-composer.cjs.entry.js +1 -1
- package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
- package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/bs-input.cjs.entry.js +2 -2
- package/dist/cjs/bs-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-menu.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
- package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
- package/dist/cjs/bs-progress.cjs.entry.js +2 -2
- package/dist/cjs/bs-radio.cjs.entry.js +1 -1
- package/dist/cjs/bs-slider.cjs.entry.js +1 -1
- package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
- package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bs-switch.cjs.entry.js +1 -1
- package/dist/cjs/bs-tab.cjs.entry.js +1 -1
- package/dist/cjs/bs-tabs.cjs.entry.js +1 -1
- package/dist/cjs/bs-toast.cjs.entry.js +1 -1
- package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/bs-accordion/bs-accordion.cmp.test.js +112 -0
- package/dist/collection/components/bs-accordion/bs-accordion.css +174 -0
- package/dist/collection/components/bs-accordion/bs-accordion.js +203 -0
- package/dist/collection/components/bs-accordion/bs-accordion.stories.js +63 -0
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-attachment/bs-attachment.js +1 -1
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-badge/bs-badge.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.js +1 -1
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.js +1 -1
- package/dist/collection/components/bs-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-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
- package/dist/collection/components/bs-composer/bs-composer.js +1 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- 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-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-radio/bs-radio.js +1 -1
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
- package/dist/collection/components/bs-toast/bs-toast.js +1 -1
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
- package/dist/components/bs-accordion.d.ts +11 -0
- package/dist/components/bs-accordion.js +1 -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-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-skeleton.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-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-dialog.js +1 -1
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-navigation-drawer-item.js +1 -1
- package/dist/components/bs-navigation-drawer.js +1 -1
- package/dist/components/bs-navigation-header.js +1 -1
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-slider.js +1 -1
- package/dist/components/bs-snackbar.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/{p-C5ducC76.js → p-Byl-ZwBI.js} +1 -1
- package/dist/components/{p-BQdQhCjF.js → p-D4omPSOU.js} +1 -1
- package/dist/components/{p-CKXzHFVu.js → p-DOApNIwD.js} +1 -1
- package/dist/components/{p-Bi4KsnwA.js → p-Dkv8x1_Z.js} +1 -1
- package/dist/components/{p-CbSuTCj1.js → p-lvnXqw5g.js} +1 -1
- package/dist/esm/brandsync-wc.js +1 -1
- package/dist/esm/bs-accordion.entry.js +52 -0
- package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
- package/dist/esm/bs-ai-greeting.entry.js +1 -1
- package/dist/esm/bs-ai-thinking.entry.js +1 -1
- package/dist/esm/bs-attachment-list.entry.js +1 -1
- package/dist/esm/bs-attachment.entry.js +1 -1
- package/dist/esm/bs-badge.entry.js +1 -1
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +1 -1
- package/dist/esm/bs-breadcrumbs.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.entry.js +1 -1
- package/dist/esm/bs-button.entry.js +1 -1
- package/dist/esm/bs-card.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
- package/dist/esm/bs-chatbot-header.entry.js +1 -1
- package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
- package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +1 -1
- package/dist/esm/bs-chip-informative.entry.js +1 -1
- package/dist/esm/bs-chip-input.entry.js +1 -1
- package/dist/esm/bs-composer-status-banner.entry.js +1 -1
- package/dist/esm/bs-composer.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +2 -2
- package/dist/esm/bs-icon-button.entry.js +1 -1
- package/dist/esm/bs-inline-tab.entry.js +1 -1
- package/dist/esm/bs-input.entry.js +2 -2
- package/dist/esm/bs-menu-item.entry.js +1 -1
- package/dist/esm/bs-menu.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
- package/dist/esm/bs-navigation-drawer.entry.js +1 -1
- package/dist/esm/bs-navigation-header.entry.js +1 -1
- package/dist/esm/bs-pagination.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +2 -2
- package/dist/esm/bs-progress.entry.js +2 -2
- package/dist/esm/bs-radio.entry.js +1 -1
- package/dist/esm/bs-slider.entry.js +1 -1
- package/dist/esm/bs-snackbar.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +2 -2
- package/dist/esm/bs-stepper-step.entry.js +1 -1
- package/dist/esm/bs-stepper.entry.js +1 -1
- package/dist/esm/bs-switch.entry.js +1 -1
- package/dist/esm/bs-tab.entry.js +1 -1
- package/dist/esm/bs-tabs.entry.js +1 -1
- package/dist/esm/bs-toast.entry.js +1 -1
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-accordion/bs-accordion.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-accordion/bs-accordion.d.ts +51 -0
- package/dist/types/components/bs-accordion/bs-accordion.stories.d.ts +20 -0
- package/dist/types/components.d.ts +123 -0
- package/package.json +1 -1
- package/dist/brandsync-wc/p-b6dba2bf.entry.js +0 -1
package/dist/esm/loader.js
CHANGED
|
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-CcPfH1dJ.js';
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["bs-input",[[785,"bs-input",{"value":[1025],"type":[1],"label":[1],"placeholder":[1],"description":[1],"error":[1],"disabled":[4],"required":[4],"step":[2],"min":[2],"max":[2],"options":[16],"rows":[2],"chips":[16],"titleOptions":[16],"initialsTitle":[1,"initials-title"],"countryOptions":[16],"country":[1],"length":[2],"open":[1540],"hasIcon":[32],"hasEndIcon":[32],"passwordVisible":[32],"chipDraft":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["bs-snackbar",[[769,"bs-snackbar",{"variant":[1],"loading":[4],"actionLabel":[1,"action-label"]}]]],["bs-attachment",[[513,"bs-attachment",{"type":[1],"fileName":[1,"file-name"],"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"loading":[4],"removable":[4]}]]],["bs-breadcrumb-overflow",[[513,"bs-breadcrumb-overflow",{"items":[16],"overflowLabel":[1,"overflow-label"],"size":[513],"open":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["bs-chatbot-header",[[769,"bs-chatbot-header",{"heading":[1],"expanded":[1540]}]]],["bs-dialog",[[769,"bs-dialog",{"open":[1540],"heading":[1],"size":[1],"centered":[516],"hasFooter":[32],"hasImage":[32],"hasIcon":[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["bs-navigation-drawer",[[769,"bs-navigation-drawer",{"heading":[1],"collapsible":[4],"collapsed":[1540],"logoBackground":[1,"logo-background"],"showLogo":[4,"show-logo"]},null,{"collapsed":[{"onCollapsedChange":0}]}]]],["bs-navigation-header",[[769,"bs-navigation-header",{"alignment":[1],"ariaLabel":[1,"aria-label"],"skipToContentHref":[1,"skip-to-content-href"],"skipToContentLabel":[1,"skip-to-content-label"],"logoBackground":[1,"logo-background"]}]]],["bs-ai-disclaimer",[[257,"bs-ai-disclaimer"]]],["bs-ai-greeting",[[513,"bs-ai-greeting",{"assistantName":[1,"assistant-name"],"productName":[1,"product-name"]}]]],["bs-ai-thinking",[[513,"bs-ai-thinking",{"label":[1]}]]],["bs-attachment-list",[[769,"bs-attachment-list",{"ariaLabel":[1,"aria-label"],"canScrollRight":[32]}]]],["bs-avatar",[[513,"bs-avatar",{"type":[1],"size":[1],"initials":[1],"src":[1],"alt":[1],"ariaLabel":[1,"aria-label"],"disabled":[516]}]]],["bs-badge",[[769,"bs-badge",{"variant":[1]}]]],["bs-breadcrumb",[[769,"bs-breadcrumb",{"href":[1],"current":[516],"size":[513]}]]],["bs-breadcrumbs",[[769,"bs-breadcrumbs",{"label":[1],"size":[1]},null,{"size":[{"onSizeChange":0}]}]]],["bs-button-skeleton",[[513,"bs-button-skeleton",{"size":[1]}]]],["bs-card",[[769,"bs-card",{"surface":[1],"hasImage":[32]}]]],["bs-chatbot-feedback",[[513,"bs-chatbot-feedback",{"rating":[1538],"submitted":[1540],"comment":[1025],"heading":[1],"subtitle":[1]}]]],["bs-chatbot-response-action",[[769,"bs-chatbot-response-action",{"sourcesCount":[2,"sources-count"],"menuOpen":[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["bs-chatbot-sources-drawer",[[769,"bs-chatbot-sources-drawer",{"heading":[1],"count":[2],"slottedCount":[32]}]]],["bs-chatbot-suggestion-button",[[769,"bs-chatbot-suggestion-button",{"disabled":[4]}]]],["bs-checkbox",[[785,"bs-checkbox",{"size":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[4],"ariaLabel":[1,"aria-label"]},null,{"indeterminate":[{"onIndeterminateChange":0}]}]]],["bs-checkbox-skeleton",[[513,"bs-checkbox-skeleton",{"size":[1]}]]],["bs-chip-filter",[[785,"bs-chip-filter",{"size":[1],"selected":[516],"dropdown":[4],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32]}]]],["bs-chip-informative",[[769,"bs-chip-informative",{"color":[1],"size":[1],"disabled":[516],"hasIcon":[32]}]]],["bs-chip-input",[[785,"bs-chip-input",{"size":[1],"selected":[1540],"disabled":[516],"hasIcon":[32],"labelText":[32]}]]],["bs-composer",[[785,"bs-composer",{"variant":[1],"placeholder":[1],"value":[1025],"state":[513],"ariaLabel":[1,"aria-label"],"hasAttachments":[32]}]]],["bs-composer-status-banner",[[769,"bs-composer-status-banner",{"type":[1],"message":[1],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"actionLabel":[1,"action-label"],"allowClose":[4,"allow-close"]}]]],["bs-data-table",[[513,"bs-data-table",{"columns":[16],"rows":[16],"sortColumn":[1,"sort-column"],"sortDirection":[1,"sort-direction"],"selectable":[4],"cellRenderer":[16],"selectedIds":[32],"clearSelection":[64]}]]],["bs-inline-tab",[[769,"bs-inline-tab",{"selected":[516],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasLabel":[32]}]]],["bs-navigation-drawer-item",[[769,"bs-navigation-drawer-item",{"selected":[516],"expandable":[4],"expanded":[1540],"nested":[4],"ariaLabel":[1,"aria-label"],"collapsed":[516],"hasIcon":[32]}]]],["bs-pagination",[[513,"bs-pagination",{"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"siblingCount":[2,"sibling-count"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"]}]]],["bs-progress",[[513,"bs-progress",{"type":[1],"size":[1],"strokeWidth":[2,"stroke-width"],"value":[2],"showLabel":[4,"show-label"]}]]],["bs-progress-linear",[[769,"bs-progress-linear",{"type":[1],"size":[1],"value":[2],"showLabel":[4,"show-label"],"hasLabelContent":[32]}]]],["bs-radio",[[785,"bs-radio",{"name":[1],"value":[1],"checked":[1540],"disabled":[4]}]]],["bs-slider",[[529,"bs-slider",{"type":[1],"showLabel":[4,"show-label"],"label":[1],"min":[2],"max":[2],"step":[2],"value":[1026],"valueStart":[1026,"value-start"],"valueEnd":[1026,"value-end"],"segments":[2],"disabled":[4],"ariaLabel":[1,"aria-label"]}]]],["bs-source-link",[[769,"bs-source-link",{"fileName":[1,"file-name"],"sourceName":[1,"source-name"],"version":[1],"href":[1],"target":[1]}]]],["bs-stepper",[[769,"bs-stepper",{"currentStep":[2,"current-step"],"direction":[513],"showDescription":[4,"show-description"]},null,{"currentStep":[{"onPropChange":0}],"direction":[{"onPropChange":0}],"showDescription":[{"onPropChange":0}]}]]],["bs-stepper-step",[[513,"bs-stepper-step",{"name":[1],"description":[1],"error":[4],"disabled":[4],"computedState":[1,"computed-state"],"direction":[1],"showDescription":[4,"show-description"]}]]],["bs-switch",[[785,"bs-switch",{"size":[1],"checked":[1540],"disabled":[4],"ariaLabel":[1,"aria-label"]}]]],["bs-tab",[[769,"bs-tab",{"selected":[516],"disabled":[4],"iconPosition":[1,"icon-position"],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasLabel":[32],"hasBadge":[32]}]]],["bs-tabs",[[769,"bs-tabs",{"type":[1],"orientation":[1]},[[0,"bsSelect","onTabSelect"]]]]],["bs-toast",[[769,"bs-toast",{"state":[1]}]]],["bs-button",[[785,"bs-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasEndIcon":[32],"hasLabel":[32]}]]],["bs-menu-item",[[769,"bs-menu-item",{"disabled":[4],"hasIcon":[32]}]]],["bs-tooltip",[[769,"bs-tooltip",{"placement":[1]}]]],["bs-logo",[[513,"bs-logo",{"variant":[1],"background":[1],"src":[1],"alt":[1]}]]],["bs-menu",[[257,"bs-menu"]]],["bs-icon-button",[[785,"bs-icon-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"]}]]]], options);
|
|
7
|
+
return bootstrapLazy([["bs-input",[[785,"bs-input",{"value":[1025],"type":[1],"label":[1],"placeholder":[1],"description":[1],"error":[1],"disabled":[4],"required":[4],"step":[2],"min":[2],"max":[2],"options":[16],"rows":[2],"chips":[16],"titleOptions":[16],"initialsTitle":[1,"initials-title"],"countryOptions":[16],"country":[1],"length":[2],"open":[1540],"hasIcon":[32],"hasEndIcon":[32],"passwordVisible":[32],"chipDraft":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["bs-snackbar",[[769,"bs-snackbar",{"variant":[1],"loading":[4],"actionLabel":[1,"action-label"]}]]],["bs-attachment",[[513,"bs-attachment",{"type":[1],"fileName":[1,"file-name"],"imageSrc":[1,"image-src"],"imageAlt":[1,"image-alt"],"loading":[4],"removable":[4]}]]],["bs-breadcrumb-overflow",[[513,"bs-breadcrumb-overflow",{"items":[16],"overflowLabel":[1,"overflow-label"],"size":[513],"open":[32]},[[0,"keydown","onHostKeydown"],[0,"focusout","onHostFocusOut"]]]]],["bs-chatbot-header",[[769,"bs-chatbot-header",{"heading":[1],"expanded":[1540]}]]],["bs-dialog",[[769,"bs-dialog",{"open":[1540],"heading":[1],"size":[1],"centered":[516],"hasFooter":[32],"hasImage":[32],"hasIcon":[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]]]]],["bs-navigation-drawer",[[769,"bs-navigation-drawer",{"heading":[1],"collapsible":[4],"collapsed":[1540],"logoBackground":[1,"logo-background"],"showLogo":[4,"show-logo"]},null,{"collapsed":[{"onCollapsedChange":0}]}]]],["bs-navigation-header",[[769,"bs-navigation-header",{"alignment":[1],"ariaLabel":[1,"aria-label"],"skipToContentHref":[1,"skip-to-content-href"],"skipToContentLabel":[1,"skip-to-content-label"],"logoBackground":[1,"logo-background"]}]]],["bs-accordion",[[769,"bs-accordion",{"expanded":[516],"size":[1],"disabled":[4],"showIcon":[4,"show-icon"],"showPreview":[4,"show-preview"]}]]],["bs-ai-disclaimer",[[257,"bs-ai-disclaimer"]]],["bs-ai-greeting",[[513,"bs-ai-greeting",{"assistantName":[1,"assistant-name"],"productName":[1,"product-name"]}]]],["bs-ai-thinking",[[513,"bs-ai-thinking",{"label":[1]}]]],["bs-attachment-list",[[769,"bs-attachment-list",{"ariaLabel":[1,"aria-label"],"canScrollRight":[32]}]]],["bs-avatar",[[513,"bs-avatar",{"type":[1],"size":[1],"initials":[1],"src":[1],"alt":[1],"ariaLabel":[1,"aria-label"],"disabled":[516]}]]],["bs-badge",[[769,"bs-badge",{"variant":[1]}]]],["bs-breadcrumb",[[769,"bs-breadcrumb",{"href":[1],"current":[516],"size":[513]}]]],["bs-breadcrumbs",[[769,"bs-breadcrumbs",{"label":[1],"size":[1]},null,{"size":[{"onSizeChange":0}]}]]],["bs-button-skeleton",[[513,"bs-button-skeleton",{"size":[1]}]]],["bs-card",[[769,"bs-card",{"surface":[1],"hasImage":[32]}]]],["bs-chatbot-feedback",[[513,"bs-chatbot-feedback",{"rating":[1538],"submitted":[1540],"comment":[1025],"heading":[1],"subtitle":[1]}]]],["bs-chatbot-response-action",[[769,"bs-chatbot-response-action",{"sourcesCount":[2,"sources-count"],"menuOpen":[1540,"menu-open"]},[[4,"click","onDocumentClick"],[4,"keydown","onKeydown"]]]]],["bs-chatbot-sources-drawer",[[769,"bs-chatbot-sources-drawer",{"heading":[1],"count":[2],"slottedCount":[32]}]]],["bs-chatbot-suggestion-button",[[769,"bs-chatbot-suggestion-button",{"disabled":[4]}]]],["bs-checkbox",[[785,"bs-checkbox",{"size":[1],"checked":[1540],"indeterminate":[1540],"disabled":[4],"error":[4],"ariaLabel":[1,"aria-label"]},null,{"indeterminate":[{"onIndeterminateChange":0}]}]]],["bs-checkbox-skeleton",[[513,"bs-checkbox-skeleton",{"size":[1]}]]],["bs-chip-filter",[[785,"bs-chip-filter",{"size":[1],"selected":[516],"dropdown":[4],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32]}]]],["bs-chip-informative",[[769,"bs-chip-informative",{"color":[1],"size":[1],"disabled":[516],"hasIcon":[32]}]]],["bs-chip-input",[[785,"bs-chip-input",{"size":[1],"selected":[1540],"disabled":[516],"hasIcon":[32],"labelText":[32]}]]],["bs-composer",[[785,"bs-composer",{"variant":[1],"placeholder":[1],"value":[1025],"state":[513],"ariaLabel":[1,"aria-label"],"hasAttachments":[32]}]]],["bs-composer-status-banner",[[769,"bs-composer-status-banner",{"type":[1],"message":[1],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"actionLabel":[1,"action-label"],"allowClose":[4,"allow-close"]}]]],["bs-data-table",[[513,"bs-data-table",{"columns":[16],"rows":[16],"sortColumn":[1,"sort-column"],"sortDirection":[1,"sort-direction"],"selectable":[4],"cellRenderer":[16],"selectedIds":[32],"clearSelection":[64]}]]],["bs-inline-tab",[[769,"bs-inline-tab",{"selected":[516],"disabled":[4],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasLabel":[32]}]]],["bs-navigation-drawer-item",[[769,"bs-navigation-drawer-item",{"selected":[516],"expandable":[4],"expanded":[1540],"nested":[4],"ariaLabel":[1,"aria-label"],"collapsed":[516],"hasIcon":[32]}]]],["bs-pagination",[[513,"bs-pagination",{"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"siblingCount":[2,"sibling-count"],"previousLabel":[1,"previous-label"],"nextLabel":[1,"next-label"]}]]],["bs-progress",[[513,"bs-progress",{"type":[1],"size":[1],"strokeWidth":[2,"stroke-width"],"value":[2],"showLabel":[4,"show-label"]}]]],["bs-progress-linear",[[769,"bs-progress-linear",{"type":[1],"size":[1],"value":[2],"showLabel":[4,"show-label"],"hasLabelContent":[32]}]]],["bs-radio",[[785,"bs-radio",{"name":[1],"value":[1],"checked":[1540],"disabled":[4]}]]],["bs-slider",[[529,"bs-slider",{"type":[1],"showLabel":[4,"show-label"],"label":[1],"min":[2],"max":[2],"step":[2],"value":[1026],"valueStart":[1026,"value-start"],"valueEnd":[1026,"value-end"],"segments":[2],"disabled":[4],"ariaLabel":[1,"aria-label"]}]]],["bs-source-link",[[769,"bs-source-link",{"fileName":[1,"file-name"],"sourceName":[1,"source-name"],"version":[1],"href":[1],"target":[1]}]]],["bs-stepper",[[769,"bs-stepper",{"currentStep":[2,"current-step"],"direction":[513],"showDescription":[4,"show-description"]},null,{"currentStep":[{"onPropChange":0}],"direction":[{"onPropChange":0}],"showDescription":[{"onPropChange":0}]}]]],["bs-stepper-step",[[513,"bs-stepper-step",{"name":[1],"description":[1],"error":[4],"disabled":[4],"computedState":[1,"computed-state"],"direction":[1],"showDescription":[4,"show-description"]}]]],["bs-switch",[[785,"bs-switch",{"size":[1],"checked":[1540],"disabled":[4],"ariaLabel":[1,"aria-label"]}]]],["bs-tab",[[769,"bs-tab",{"selected":[516],"disabled":[4],"iconPosition":[1,"icon-position"],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasLabel":[32],"hasBadge":[32]}]]],["bs-tabs",[[769,"bs-tabs",{"type":[1],"orientation":[1]},[[0,"bsSelect","onTabSelect"]]]]],["bs-toast",[[769,"bs-toast",{"state":[1]}]]],["bs-button",[[785,"bs-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"],"hasIcon":[32],"hasEndIcon":[32],"hasLabel":[32]}]]],["bs-menu-item",[[769,"bs-menu-item",{"disabled":[4],"hasIcon":[32]}]]],["bs-tooltip",[[769,"bs-tooltip",{"placement":[1]}]]],["bs-logo",[[513,"bs-logo",{"variant":[1],"background":[1],"src":[1],"alt":[1]}]]],["bs-menu",[[257,"bs-menu"]]],["bs-icon-button",[[785,"bs-icon-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1],"ariaLabel":[1,"aria-label"]}]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type BsAccordionSize = 'medium' | 'large';
|
|
3
|
+
/**
|
|
4
|
+
* A single collapsible section -- a clickable header (optional leading icon, label, trailing
|
|
5
|
+
* caret) that reveals or hides a body content area.
|
|
6
|
+
*
|
|
7
|
+
* This component renders exactly one section. A consumer stacks multiple `bs-accordion` elements
|
|
8
|
+
* (optionally managing which one(s) are expanded, e.g. "only one open at a time") themselves --
|
|
9
|
+
* there's no accordion-group wrapper here, matching Figma's component which only specs the single
|
|
10
|
+
* section, not a group behavior.
|
|
11
|
+
*
|
|
12
|
+
* @slot - Default slot: the body/content area, shown below the header when expanded (and, unless
|
|
13
|
+
* `showPreview` is `false`, truncated to one line when collapsed).
|
|
14
|
+
* @slot label - The header's title text.
|
|
15
|
+
* @slot icon - Optional leading icon, overriding the default Plus glyph. Only rendered when
|
|
16
|
+
* `showIcon` is `true`.
|
|
17
|
+
* @part container - The outer wrapper.
|
|
18
|
+
* @part header - The clickable header row.
|
|
19
|
+
* @part icon - The leading icon wrapper.
|
|
20
|
+
* @part label - The label wrapper.
|
|
21
|
+
* @part caret - The trailing caret wrapper.
|
|
22
|
+
* @part content - The body content wrapper.
|
|
23
|
+
*/
|
|
24
|
+
export declare class BsAccordion {
|
|
25
|
+
/** Whether the section is expanded. This is the single source of truth for the component's
|
|
26
|
+
* visual state -- a controlled component, like a controlled `<input>`. Clicking (or
|
|
27
|
+
* keyboard-activating) the header never mutates this prop itself; it only emits `bsToggle` with
|
|
28
|
+
* the requested new value. If the consumer doesn't echo the change back via this prop (e.g.
|
|
29
|
+
* some validation rejects it), the rendering stays exactly as `expanded` says, rather than
|
|
30
|
+
* drifting into an internally-tracked truth -- same lesson as bs-chip-filter's `selected` prop.
|
|
31
|
+
* Reflected so consumers can target `bs-accordion[expanded]` via CSS. NOT `mutable: true`. */
|
|
32
|
+
expanded: boolean;
|
|
33
|
+
/** Sizing scale. Controls the leading icon box's dimensions and the header's vertical padding --
|
|
34
|
+
* the body content area's padding stays constant across sizes, matching the Figma spec. */
|
|
35
|
+
size: BsAccordionSize;
|
|
36
|
+
/** Disables the header: suppresses hover/focus/pressed styling, prevents toggling via click or
|
|
37
|
+
* keyboard, and removes it from the tab order. */
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
/** Shows the leading icon area (default Plus glyph, or the `icon` slot's content). When
|
|
40
|
+
* `false`, no icon box is reserved and the header/body padding tighten to the left edge. */
|
|
41
|
+
showIcon: boolean;
|
|
42
|
+
/** When collapsed, renders the body content truncated to a single line (pure CSS truncation of
|
|
43
|
+
* the same slotted content, not different content) instead of rendering nothing. Has no effect
|
|
44
|
+
* while expanded -- the full content always renders then, regardless of this prop. */
|
|
45
|
+
showPreview: boolean;
|
|
46
|
+
/** Emitted when the header is activated (click, or Enter/Space while focused), with the
|
|
47
|
+
* REQUESTED new expanded value (`!expanded`). Never fires while `disabled`. */
|
|
48
|
+
bsToggle: EventEmitter<boolean>;
|
|
49
|
+
private onActivate;
|
|
50
|
+
render(): any;
|
|
51
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { BsAccordionSize } from './bs-accordion';
|
|
3
|
+
interface BsAccordionArgs {
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
size: BsAccordionSize;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
showIcon: boolean;
|
|
8
|
+
showPreview: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
12
|
+
declare const meta: Meta<BsAccordionArgs>;
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<BsAccordionArgs>;
|
|
15
|
+
export declare const Default: Story;
|
|
16
|
+
export declare const Expanded: Story;
|
|
17
|
+
export declare const Large: Story;
|
|
18
|
+
export declare const NoIcon: Story;
|
|
19
|
+
export declare const NoPreview: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { BsAccordionSize } from "./components/bs-accordion/bs-accordion";
|
|
8
9
|
import { BsAttachmentType } from "./components/bs-attachment/bs-attachment";
|
|
9
10
|
import { BsAvatarSize, BsAvatarType } from "./components/bs-avatar/bs-avatar";
|
|
10
11
|
import { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
@@ -36,6 +37,7 @@ import { BsSwitchSize } from "./components/bs-switch/bs-switch";
|
|
|
36
37
|
import { BsTabIconPosition } from "./components/bs-tab/bs-tab/bs-tab";
|
|
37
38
|
import { BsTabsOrientation, BsTabsType } from "./components/bs-tab/bs-tabs/bs-tabs";
|
|
38
39
|
import { BsToastState } from "./components/bs-toast/bs-toast";
|
|
40
|
+
export { BsAccordionSize } from "./components/bs-accordion/bs-accordion";
|
|
39
41
|
export { BsAttachmentType } from "./components/bs-attachment/bs-attachment";
|
|
40
42
|
export { BsAvatarSize, BsAvatarType } from "./components/bs-avatar/bs-avatar";
|
|
41
43
|
export { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
@@ -68,6 +70,41 @@ export { BsTabIconPosition } from "./components/bs-tab/bs-tab/bs-tab";
|
|
|
68
70
|
export { BsTabsOrientation, BsTabsType } from "./components/bs-tab/bs-tabs/bs-tabs";
|
|
69
71
|
export { BsToastState } from "./components/bs-toast/bs-toast";
|
|
70
72
|
export namespace Components {
|
|
73
|
+
/**
|
|
74
|
+
* A single collapsible section -- a clickable header (optional leading icon, label, trailing
|
|
75
|
+
* caret) that reveals or hides a body content area.
|
|
76
|
+
* This component renders exactly one section. A consumer stacks multiple `bs-accordion` elements
|
|
77
|
+
* (optionally managing which one(s) are expanded, e.g. "only one open at a time") themselves --
|
|
78
|
+
* there's no accordion-group wrapper here, matching Figma's component which only specs the single
|
|
79
|
+
* section, not a group behavior.
|
|
80
|
+
*/
|
|
81
|
+
interface BsAccordion {
|
|
82
|
+
/**
|
|
83
|
+
* Disables the header: suppresses hover/focus/pressed styling, prevents toggling via click or keyboard, and removes it from the tab order.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
"disabled": boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the section is expanded. This is the single source of truth for the component's visual state -- a controlled component, like a controlled `<input>`. Clicking (or keyboard-activating) the header never mutates this prop itself; it only emits `bsToggle` with the requested new value. If the consumer doesn't echo the change back via this prop (e.g. some validation rejects it), the rendering stays exactly as `expanded` says, rather than drifting into an internally-tracked truth -- same lesson as bs-chip-filter's `selected` prop. Reflected so consumers can target `bs-accordion[expanded]` via CSS. NOT `mutable: true`.
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
"expanded": boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Shows the leading icon area (default Plus glyph, or the `icon` slot's content). When `false`, no icon box is reserved and the header/body padding tighten to the left edge.
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
"showIcon": boolean;
|
|
97
|
+
/**
|
|
98
|
+
* When collapsed, renders the body content truncated to a single line (pure CSS truncation of the same slotted content, not different content) instead of rendering nothing. Has no effect while expanded -- the full content always renders then, regardless of this prop.
|
|
99
|
+
* @default true
|
|
100
|
+
*/
|
|
101
|
+
"showPreview": boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Sizing scale. Controls the leading icon box's dimensions and the header's vertical padding -- the body content area's padding stays constant across sizes, matching the Figma spec.
|
|
104
|
+
* @default 'medium'
|
|
105
|
+
*/
|
|
106
|
+
"size": BsAccordionSize;
|
|
107
|
+
}
|
|
71
108
|
/**
|
|
72
109
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
73
110
|
* important information."
|
|
@@ -2117,6 +2154,10 @@ export namespace Components {
|
|
|
2117
2154
|
"placement": 'top';
|
|
2118
2155
|
}
|
|
2119
2156
|
}
|
|
2157
|
+
export interface BsAccordionCustomEvent<T> extends CustomEvent<T> {
|
|
2158
|
+
detail: T;
|
|
2159
|
+
target: HTMLBsAccordionElement;
|
|
2160
|
+
}
|
|
2120
2161
|
export interface BsAttachmentCustomEvent<T> extends CustomEvent<T> {
|
|
2121
2162
|
detail: T;
|
|
2122
2163
|
target: HTMLBsAttachmentElement;
|
|
@@ -2222,6 +2263,31 @@ export interface BsToastCustomEvent<T> extends CustomEvent<T> {
|
|
|
2222
2263
|
target: HTMLBsToastElement;
|
|
2223
2264
|
}
|
|
2224
2265
|
declare global {
|
|
2266
|
+
interface HTMLBsAccordionElementEventMap {
|
|
2267
|
+
"bsToggle": boolean;
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* A single collapsible section -- a clickable header (optional leading icon, label, trailing
|
|
2271
|
+
* caret) that reveals or hides a body content area.
|
|
2272
|
+
* This component renders exactly one section. A consumer stacks multiple `bs-accordion` elements
|
|
2273
|
+
* (optionally managing which one(s) are expanded, e.g. "only one open at a time") themselves --
|
|
2274
|
+
* there's no accordion-group wrapper here, matching Figma's component which only specs the single
|
|
2275
|
+
* section, not a group behavior.
|
|
2276
|
+
*/
|
|
2277
|
+
interface HTMLBsAccordionElement extends Components.BsAccordion, HTMLStencilElement {
|
|
2278
|
+
addEventListener<K extends keyof HTMLBsAccordionElementEventMap>(type: K, listener: (this: HTMLBsAccordionElement, ev: BsAccordionCustomEvent<HTMLBsAccordionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2279
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2280
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2281
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2282
|
+
removeEventListener<K extends keyof HTMLBsAccordionElementEventMap>(type: K, listener: (this: HTMLBsAccordionElement, ev: BsAccordionCustomEvent<HTMLBsAccordionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2283
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2284
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2285
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2286
|
+
}
|
|
2287
|
+
var HTMLBsAccordionElement: {
|
|
2288
|
+
prototype: HTMLBsAccordionElement;
|
|
2289
|
+
new (): HTMLBsAccordionElement;
|
|
2290
|
+
};
|
|
2225
2291
|
/**
|
|
2226
2292
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
2227
2293
|
* important information."
|
|
@@ -3855,6 +3921,7 @@ declare global {
|
|
|
3855
3921
|
new (): HTMLBsTooltipElement;
|
|
3856
3922
|
};
|
|
3857
3923
|
interface HTMLElementTagNameMap {
|
|
3924
|
+
"bs-accordion": HTMLBsAccordionElement;
|
|
3858
3925
|
"bs-ai-disclaimer": HTMLBsAiDisclaimerElement;
|
|
3859
3926
|
"bs-ai-greeting": HTMLBsAiGreetingElement;
|
|
3860
3927
|
"bs-ai-thinking": HTMLBsAiThinkingElement;
|
|
@@ -3908,6 +3975,45 @@ declare global {
|
|
|
3908
3975
|
}
|
|
3909
3976
|
}
|
|
3910
3977
|
declare namespace LocalJSX {
|
|
3978
|
+
/**
|
|
3979
|
+
* A single collapsible section -- a clickable header (optional leading icon, label, trailing
|
|
3980
|
+
* caret) that reveals or hides a body content area.
|
|
3981
|
+
* This component renders exactly one section. A consumer stacks multiple `bs-accordion` elements
|
|
3982
|
+
* (optionally managing which one(s) are expanded, e.g. "only one open at a time") themselves --
|
|
3983
|
+
* there's no accordion-group wrapper here, matching Figma's component which only specs the single
|
|
3984
|
+
* section, not a group behavior.
|
|
3985
|
+
*/
|
|
3986
|
+
interface BsAccordion {
|
|
3987
|
+
/**
|
|
3988
|
+
* Disables the header: suppresses hover/focus/pressed styling, prevents toggling via click or keyboard, and removes it from the tab order.
|
|
3989
|
+
* @default false
|
|
3990
|
+
*/
|
|
3991
|
+
"disabled"?: boolean;
|
|
3992
|
+
/**
|
|
3993
|
+
* Whether the section is expanded. This is the single source of truth for the component's visual state -- a controlled component, like a controlled `<input>`. Clicking (or keyboard-activating) the header never mutates this prop itself; it only emits `bsToggle` with the requested new value. If the consumer doesn't echo the change back via this prop (e.g. some validation rejects it), the rendering stays exactly as `expanded` says, rather than drifting into an internally-tracked truth -- same lesson as bs-chip-filter's `selected` prop. Reflected so consumers can target `bs-accordion[expanded]` via CSS. NOT `mutable: true`.
|
|
3994
|
+
* @default false
|
|
3995
|
+
*/
|
|
3996
|
+
"expanded"?: boolean;
|
|
3997
|
+
/**
|
|
3998
|
+
* Emitted when the header is activated (click, or Enter/Space while focused), with the REQUESTED new expanded value (`!expanded`). Never fires while `disabled`.
|
|
3999
|
+
*/
|
|
4000
|
+
"onBsToggle"?: (event: BsAccordionCustomEvent<boolean>) => void;
|
|
4001
|
+
/**
|
|
4002
|
+
* Shows the leading icon area (default Plus glyph, or the `icon` slot's content). When `false`, no icon box is reserved and the header/body padding tighten to the left edge.
|
|
4003
|
+
* @default true
|
|
4004
|
+
*/
|
|
4005
|
+
"showIcon"?: boolean;
|
|
4006
|
+
/**
|
|
4007
|
+
* When collapsed, renders the body content truncated to a single line (pure CSS truncation of the same slotted content, not different content) instead of rendering nothing. Has no effect while expanded -- the full content always renders then, regardless of this prop.
|
|
4008
|
+
* @default true
|
|
4009
|
+
*/
|
|
4010
|
+
"showPreview"?: boolean;
|
|
4011
|
+
/**
|
|
4012
|
+
* Sizing scale. Controls the leading icon box's dimensions and the header's vertical padding -- the body content area's padding stays constant across sizes, matching the Figma spec.
|
|
4013
|
+
* @default 'medium'
|
|
4014
|
+
*/
|
|
4015
|
+
"size"?: BsAccordionSize;
|
|
4016
|
+
}
|
|
3911
4017
|
/**
|
|
3912
4018
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
3913
4019
|
* important information."
|
|
@@ -6162,6 +6268,13 @@ declare namespace LocalJSX {
|
|
|
6162
6268
|
"placement"?: 'top';
|
|
6163
6269
|
}
|
|
6164
6270
|
|
|
6271
|
+
interface BsAccordionAttributes {
|
|
6272
|
+
"expanded": boolean;
|
|
6273
|
+
"size": BsAccordionSize;
|
|
6274
|
+
"disabled": boolean;
|
|
6275
|
+
"showIcon": boolean;
|
|
6276
|
+
"showPreview": boolean;
|
|
6277
|
+
}
|
|
6165
6278
|
interface BsAiGreetingAttributes {
|
|
6166
6279
|
"assistantName": string;
|
|
6167
6280
|
"productName": string;
|
|
@@ -6457,6 +6570,7 @@ declare namespace LocalJSX {
|
|
|
6457
6570
|
}
|
|
6458
6571
|
|
|
6459
6572
|
interface IntrinsicElements {
|
|
6573
|
+
"bs-accordion": Omit<BsAccordion, keyof BsAccordionAttributes> & { [K in keyof BsAccordion & keyof BsAccordionAttributes]?: BsAccordion[K] } & { [K in keyof BsAccordion & keyof BsAccordionAttributes as `attr:${K}`]?: BsAccordionAttributes[K] } & { [K in keyof BsAccordion & keyof BsAccordionAttributes as `prop:${K}`]?: BsAccordion[K] };
|
|
6460
6574
|
"bs-ai-disclaimer": BsAiDisclaimer;
|
|
6461
6575
|
"bs-ai-greeting": Omit<BsAiGreeting, keyof BsAiGreetingAttributes> & { [K in keyof BsAiGreeting & keyof BsAiGreetingAttributes]?: BsAiGreeting[K] } & { [K in keyof BsAiGreeting & keyof BsAiGreetingAttributes as `attr:${K}`]?: BsAiGreetingAttributes[K] } & { [K in keyof BsAiGreeting & keyof BsAiGreetingAttributes as `prop:${K}`]?: BsAiGreeting[K] };
|
|
6462
6576
|
"bs-ai-thinking": Omit<BsAiThinking, keyof BsAiThinkingAttributes> & { [K in keyof BsAiThinking & keyof BsAiThinkingAttributes]?: BsAiThinking[K] } & { [K in keyof BsAiThinking & keyof BsAiThinkingAttributes as `attr:${K}`]?: BsAiThinkingAttributes[K] } & { [K in keyof BsAiThinking & keyof BsAiThinkingAttributes as `prop:${K}`]?: BsAiThinking[K] };
|
|
@@ -6513,6 +6627,15 @@ export { LocalJSX as JSX };
|
|
|
6513
6627
|
declare module "@stencil/core" {
|
|
6514
6628
|
export namespace JSX {
|
|
6515
6629
|
interface IntrinsicElements {
|
|
6630
|
+
/**
|
|
6631
|
+
* A single collapsible section -- a clickable header (optional leading icon, label, trailing
|
|
6632
|
+
* caret) that reveals or hides a body content area.
|
|
6633
|
+
* This component renders exactly one section. A consumer stacks multiple `bs-accordion` elements
|
|
6634
|
+
* (optionally managing which one(s) are expanded, e.g. "only one open at a time") themselves --
|
|
6635
|
+
* there's no accordion-group wrapper here, matching Figma's component which only specs the single
|
|
6636
|
+
* section, not a group behavior.
|
|
6637
|
+
*/
|
|
6638
|
+
"bs-accordion": LocalJSX.IntrinsicElements["bs-accordion"] & JSXBase.HTMLAttributes<HTMLBsAccordionElement>;
|
|
6516
6639
|
/**
|
|
6517
6640
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
6518
6641
|
* important information."
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,a as e,h as a,H as s}from"./p-CcPfH1dJ.js";const t=class{constructor(e){i(this,e)}get el(){return e(this)}color="neutral";size="lg";disabled=!1;hasIcon=!1;componentWillLoad(){this.hasIcon=this.hasSlottedContent("icon")}hasSlottedContent(i){return Array.from(this.el.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("slot")===i))}onIconSlotchange=i=>{this.hasIcon=i.target.assignedNodes().length>0};render(){return a(s,{key:"333f8eb96435393dc676b7422de79a43f0e3d9d8",class:`bs-chip-informative bs-chip-informative--${this.color} bs-chip-informative--${this.size} bs-chip-informative--${this.hasIcon?"icon":"text"}`},a("span",{key:"5af00525b1ce8e1cee16e896c6fd1bee1e8344c0",part:"icon",class:"bs-chip-informative__icon "+(this.hasIcon?"bs-chip-informative__icon--visible":"")},a("slot",{key:"d6e72f0ea1a913b2a313441b83f1430549dcc5cc",name:"icon",onSlotchange:this.onIconSlotchange})),a("span",{key:"617013d83715e1d916e4bfc40185d31879acfab3",part:"label",class:"bs-chip-informative__label"},a("slot",{key:"dc6db50bff31169c3da18f472002528a78ed210a"})))}};t.style=":host{display:inline-flex;align-items:center;box-sizing:border-box;gap:var(--bs-chip-informative-gap);border-radius:var(--bs-border-radius-full);font-family:inherit;font-weight:var(--bs-chip-informative-font-weight);white-space:nowrap;--bs-chip-informative-height-sm:var(--bs-spacing-250);--bs-chip-informative-height-md:var(--bs-spacing-300);--bs-chip-informative-height-lg:var(--bs-spacing-400);--bs-chip-informative-gap:var(--bs-spacing-50);--bs-chip-informative-icon-size:16px;--bs-chip-informative-padding-x-glyph-side:var(--bs-spacing-100);--bs-chip-informative-padding-right-icon-variant:var(--bs-spacing-150);--bs-chip-informative-padding-x-plain-side:var(--bs-spacing-200);--bs-chip-informative-font-size-sm:var(--bs-font-size-xs);--bs-chip-informative-line-height-sm:var(--bs-line-height-caption-sm);--bs-chip-informative-font-size:var(--bs-font-size-sm);--bs-chip-informative-line-height:var(--bs-line-height-body-sm);--bs-chip-informative-font-weight:var(--bs-font-weight-regular)}:host(.bs-chip-informative--lg){height:var(--bs-chip-informative-height-lg);font-size:var(--bs-chip-informative-font-size);line-height:calc(var(--bs-chip-informative-line-height) * 1px)}:host(.bs-chip-informative--md){height:var(--bs-chip-informative-height-md);font-size:var(--bs-chip-informative-font-size);line-height:calc(var(--bs-chip-informative-line-height) * 1px)}:host(.bs-chip-informative--sm){height:var(--bs-chip-informative-height-sm);font-size:var(--bs-chip-informative-font-size-sm);line-height:calc(var(--bs-chip-informative-line-height-sm) * 1px)}:host(.bs-chip-informative--icon){padding-left:var(--bs-chip-informative-padding-x-glyph-side);padding-right:var(--bs-chip-informative-padding-right-icon-variant)}:host(.bs-chip-informative--text){padding-left:var(--bs-chip-informative-padding-x-plain-side);padding-right:var(--bs-chip-informative-padding-x-plain-side)}.bs-chip-informative__icon{display:none;flex-shrink:0;width:var(--bs-chip-informative-icon-size);height:var(--bs-chip-informative-icon-size)}.bs-chip-informative__icon--visible{display:flex;align-items:center;justify-content:center}.bs-chip-informative__icon ::slotted(*){display:block;width:var(--bs-chip-informative-icon-size);height:var(--bs-chip-informative-icon-size)}.bs-chip-informative__label{display:flex;align-items:center}:host(.bs-chip-informative--neutral){background:var(--bs-chip-bg-neutral-container);color:var(--bs-chip-text-neutral)}:host(.bs-chip-informative--warning){background:var(--bs-chip-bg-warning-container);color:var(--bs-chip-text-warning)}:host(.bs-chip-informative--success){background:var(--bs-chip-bg-success-container);color:var(--bs-chip-text-success)}:host(.bs-chip-informative--info){background:var(--bs-chip-bg-info-container);color:var(--bs-chip-text-info)}:host(.bs-chip-informative--error){background:var(--bs-chip-bg-error-container);color:var(--bs-chip-text-error)}:host([disabled]){background:var(--bs-chip-bg-disabled);color:var(--bs-chip-text-disabled)}";export{t as bs_chip_informative}
|