@brandsync/wc 1.1.0 → 1.2.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 +169 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-6fc78ccf.entry.js → p-03f9fd54.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e230ed08.entry.js → p-04d6aa95.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3e8728dc.entry.js → p-17dbd4b3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-32fe390d.entry.js → p-1e9ceb9d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-6ef0a0ed.entry.js → p-205deb32.entry.js} +1 -1
- package/dist/brandsync-wc/{p-696f885c.entry.js → p-260e14de.entry.js} +1 -1
- package/dist/brandsync-wc/p-3e6d37a4.entry.js +1 -0
- package/dist/brandsync-wc/{p-bb2ec290.entry.js → p-41732f18.entry.js} +1 -1
- package/dist/brandsync-wc/{p-778fcc55.entry.js → p-650b7eef.entry.js} +1 -1
- package/dist/brandsync-wc/{p-c7427962.entry.js → p-67bc2ec8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-790fadf9.entry.js → p-6970a24c.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0a2d690f.entry.js → p-718ce85f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-aa1cc2b6.entry.js → p-7655e741.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3e61d206.entry.js → p-7f14660d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-0cf117f4.entry.js → p-8f2cfe31.entry.js} +1 -1
- package/dist/brandsync-wc/{p-31b28025.entry.js → p-a35d5ea7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-82953f42.entry.js → p-a597dc2b.entry.js} +1 -1
- package/dist/brandsync-wc/p-aac6b59b.entry.js +1 -0
- package/dist/brandsync-wc/{p-5321186f.entry.js → p-b6425ac2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ac12372f.entry.js → p-c8480d21.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1abacfe8.entry.js → p-ce08c9d7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-579fbe4d.entry.js → p-ed704126.entry.js} +1 -1
- package/dist/brandsync-wc/{p-63906504.entry.js → p-f6fafbd6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a7704457.entry.js → p-f94449da.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +1 -1
- 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-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/bs-button-skeleton.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-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-pagination.cjs.entry.js +1 -1
- package/dist/cjs/bs-radio.cjs.entry.js +1 -1
- package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
- package/dist/cjs/bs-toast.cjs.entry.js +45 -0
- 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-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-avatar/bs-avatar.js +2 -2
- 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 +2 -2
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +2 -2
- 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 +2 -2
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
- package/dist/collection/components/bs-composer/bs-composer.js +2 -2
- 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 +4 -4
- package/dist/collection/components/bs-dialog/bs-dialog.js +1 -1
- package/dist/collection/components/bs-input/bs-input.js +2 -2
- package/dist/collection/components/bs-logo/bs-logo.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-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 +2 -2
- 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 +2 -2
- package/dist/collection/components/bs-toast/bs-toast.cmp.test.js +59 -0
- package/dist/collection/components/bs-toast/bs-toast.css +151 -0
- package/dist/collection/components/bs-toast/bs-toast.js +108 -0
- package/dist/collection/components/bs-toast/bs-toast.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.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-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-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.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-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-pagination.js +1 -1
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-toast.d.ts +11 -0
- package/dist/components/bs-toast.js +1 -0
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/{p-BPUNjzjH.js → p-BOP5EJrQ.js} +1 -1
- package/dist/components/{p-BFVUq5m5.js → p-Bg98eW9H.js} +1 -1
- package/dist/components/{p-Bb6vh9PN.js → p-BlCziuES.js} +1 -1
- package/dist/esm/brandsync-wc.js +1 -1
- 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-breadcrumbs.entry.js +1 -1
- package/dist/esm/bs-button-skeleton.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-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-pagination.entry.js +1 -1
- package/dist/esm/bs-radio.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +1 -1
- package/dist/esm/bs-toast.entry.js +43 -0
- package/dist/esm/bs-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bs-toast/bs-toast.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toast/bs-toast.d.ts +27 -0
- package/dist/types/components/bs-toast/bs-toast.stories.d.ts +12 -0
- package/dist/types/components.d.ts +79 -0
- package/package.json +1 -1
- package/dist/brandsync-wc/p-cc9f85d6.entry.js +0 -1
|
@@ -33,6 +33,7 @@ import { BsStepperDirection as BsStepperDirection1, BsStepperStepComputedState }
|
|
|
33
33
|
import { BsSwitchSize } from "./components/bs-switch/bs-switch";
|
|
34
34
|
import { BsTabIconPosition } from "./components/bs-tab/bs-tab/bs-tab";
|
|
35
35
|
import { BsTabsOrientation, BsTabsType } from "./components/bs-tab/bs-tabs/bs-tabs";
|
|
36
|
+
import { BsToastState } from "./components/bs-toast/bs-toast";
|
|
36
37
|
export { BsAttachmentType } from "./components/bs-attachment/bs-attachment";
|
|
37
38
|
export { BsAvatarSize, BsAvatarType } from "./components/bs-avatar/bs-avatar";
|
|
38
39
|
export { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
@@ -61,6 +62,7 @@ export { BsStepperDirection as BsStepperDirection1, BsStepperStepComputedState }
|
|
|
61
62
|
export { BsSwitchSize } from "./components/bs-switch/bs-switch";
|
|
62
63
|
export { BsTabIconPosition } from "./components/bs-tab/bs-tab/bs-tab";
|
|
63
64
|
export { BsTabsOrientation, BsTabsType } from "./components/bs-tab/bs-tabs/bs-tabs";
|
|
65
|
+
export { BsToastState } from "./components/bs-toast/bs-toast";
|
|
64
66
|
export namespace Components {
|
|
65
67
|
/**
|
|
66
68
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
@@ -1981,6 +1983,21 @@ export namespace Components {
|
|
|
1981
1983
|
*/
|
|
1982
1984
|
"type": BsTabsType;
|
|
1983
1985
|
}
|
|
1986
|
+
/**
|
|
1987
|
+
* A transient status message for confirming the result of an action (e.g. "Files uploaded
|
|
1988
|
+
* successfully.") -- a state-specific icon, a message, and a close button.
|
|
1989
|
+
* This component only renders the toast itself -- it doesn't manage its own visibility, timing, or
|
|
1990
|
+
* stacking. A consumer (typically a small "toast manager" utility) creates one per message and
|
|
1991
|
+
* removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
|
|
1992
|
+
* auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
|
|
1993
|
+
*/
|
|
1994
|
+
interface BsToast {
|
|
1995
|
+
/**
|
|
1996
|
+
* Semantic state. Each state has its own icon and matching container/text tokens -- there is no neutral/default state.
|
|
1997
|
+
* @default 'info'
|
|
1998
|
+
*/
|
|
1999
|
+
"state": BsToastState;
|
|
2000
|
+
}
|
|
1984
2001
|
/**
|
|
1985
2002
|
* A dark tooltip bubble with a pointer arrow, used to surface a short hint of extra information
|
|
1986
2003
|
* next to a trigger element.
|
|
@@ -2116,6 +2133,10 @@ export interface BsTabCustomEvent<T> extends CustomEvent<T> {
|
|
|
2116
2133
|
detail: T;
|
|
2117
2134
|
target: HTMLBsTabElement;
|
|
2118
2135
|
}
|
|
2136
|
+
export interface BsToastCustomEvent<T> extends CustomEvent<T> {
|
|
2137
|
+
detail: T;
|
|
2138
|
+
target: HTMLBsToastElement;
|
|
2139
|
+
}
|
|
2119
2140
|
declare global {
|
|
2120
2141
|
/**
|
|
2121
2142
|
* A centered caption disclaimer for Genie AI surfaces, e.g. "AI can make mistakes. Please verify
|
|
@@ -3652,6 +3673,31 @@ declare global {
|
|
|
3652
3673
|
prototype: HTMLBsTabsElement;
|
|
3653
3674
|
new (): HTMLBsTabsElement;
|
|
3654
3675
|
};
|
|
3676
|
+
interface HTMLBsToastElementEventMap {
|
|
3677
|
+
"bsDismiss": void;
|
|
3678
|
+
}
|
|
3679
|
+
/**
|
|
3680
|
+
* A transient status message for confirming the result of an action (e.g. "Files uploaded
|
|
3681
|
+
* successfully.") -- a state-specific icon, a message, and a close button.
|
|
3682
|
+
* This component only renders the toast itself -- it doesn't manage its own visibility, timing, or
|
|
3683
|
+
* stacking. A consumer (typically a small "toast manager" utility) creates one per message and
|
|
3684
|
+
* removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
|
|
3685
|
+
* auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
|
|
3686
|
+
*/
|
|
3687
|
+
interface HTMLBsToastElement extends Components.BsToast, HTMLStencilElement {
|
|
3688
|
+
addEventListener<K extends keyof HTMLBsToastElementEventMap>(type: K, listener: (this: HTMLBsToastElement, ev: BsToastCustomEvent<HTMLBsToastElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3689
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3690
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3691
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3692
|
+
removeEventListener<K extends keyof HTMLBsToastElementEventMap>(type: K, listener: (this: HTMLBsToastElement, ev: BsToastCustomEvent<HTMLBsToastElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3693
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3694
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3695
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3696
|
+
}
|
|
3697
|
+
var HTMLBsToastElement: {
|
|
3698
|
+
prototype: HTMLBsToastElement;
|
|
3699
|
+
new (): HTMLBsToastElement;
|
|
3700
|
+
};
|
|
3655
3701
|
/**
|
|
3656
3702
|
* A dark tooltip bubble with a pointer arrow, used to surface a short hint of extra information
|
|
3657
3703
|
* next to a trigger element.
|
|
@@ -3732,6 +3778,7 @@ declare global {
|
|
|
3732
3778
|
"bs-switch": HTMLBsSwitchElement;
|
|
3733
3779
|
"bs-tab": HTMLBsTabElement;
|
|
3734
3780
|
"bs-tabs": HTMLBsTabsElement;
|
|
3781
|
+
"bs-toast": HTMLBsToastElement;
|
|
3735
3782
|
"bs-tooltip": HTMLBsTooltipElement;
|
|
3736
3783
|
}
|
|
3737
3784
|
}
|
|
@@ -5860,6 +5907,25 @@ declare namespace LocalJSX {
|
|
|
5860
5907
|
*/
|
|
5861
5908
|
"type"?: BsTabsType;
|
|
5862
5909
|
}
|
|
5910
|
+
/**
|
|
5911
|
+
* A transient status message for confirming the result of an action (e.g. "Files uploaded
|
|
5912
|
+
* successfully.") -- a state-specific icon, a message, and a close button.
|
|
5913
|
+
* This component only renders the toast itself -- it doesn't manage its own visibility, timing, or
|
|
5914
|
+
* stacking. A consumer (typically a small "toast manager" utility) creates one per message and
|
|
5915
|
+
* removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
|
|
5916
|
+
* auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
|
|
5917
|
+
*/
|
|
5918
|
+
interface BsToast {
|
|
5919
|
+
/**
|
|
5920
|
+
* Fires when the close button is clicked. This component doesn't remove itself from the DOM -- the consumer is expected to do that (or hide it) in response to this event.
|
|
5921
|
+
*/
|
|
5922
|
+
"onBsDismiss"?: (event: BsToastCustomEvent<void>) => void;
|
|
5923
|
+
/**
|
|
5924
|
+
* Semantic state. Each state has its own icon and matching container/text tokens -- there is no neutral/default state.
|
|
5925
|
+
* @default 'info'
|
|
5926
|
+
*/
|
|
5927
|
+
"state"?: BsToastState;
|
|
5928
|
+
}
|
|
5863
5929
|
/**
|
|
5864
5930
|
* A dark tooltip bubble with a pointer arrow, used to surface a short hint of extra information
|
|
5865
5931
|
* next to a trigger element.
|
|
@@ -6169,6 +6235,9 @@ declare namespace LocalJSX {
|
|
|
6169
6235
|
"type": BsTabsType;
|
|
6170
6236
|
"orientation": BsTabsOrientation;
|
|
6171
6237
|
}
|
|
6238
|
+
interface BsToastAttributes {
|
|
6239
|
+
"state": BsToastState;
|
|
6240
|
+
}
|
|
6172
6241
|
interface BsTooltipAttributes {
|
|
6173
6242
|
"placement": 'top';
|
|
6174
6243
|
}
|
|
@@ -6220,6 +6289,7 @@ declare namespace LocalJSX {
|
|
|
6220
6289
|
"bs-switch": Omit<BsSwitch, keyof BsSwitchAttributes> & { [K in keyof BsSwitch & keyof BsSwitchAttributes]?: BsSwitch[K] } & { [K in keyof BsSwitch & keyof BsSwitchAttributes as `attr:${K}`]?: BsSwitchAttributes[K] } & { [K in keyof BsSwitch & keyof BsSwitchAttributes as `prop:${K}`]?: BsSwitch[K] };
|
|
6221
6290
|
"bs-tab": Omit<BsTab, keyof BsTabAttributes> & { [K in keyof BsTab & keyof BsTabAttributes]?: BsTab[K] } & { [K in keyof BsTab & keyof BsTabAttributes as `attr:${K}`]?: BsTabAttributes[K] } & { [K in keyof BsTab & keyof BsTabAttributes as `prop:${K}`]?: BsTab[K] };
|
|
6222
6291
|
"bs-tabs": Omit<BsTabs, keyof BsTabsAttributes> & { [K in keyof BsTabs & keyof BsTabsAttributes]?: BsTabs[K] } & { [K in keyof BsTabs & keyof BsTabsAttributes as `attr:${K}`]?: BsTabsAttributes[K] } & { [K in keyof BsTabs & keyof BsTabsAttributes as `prop:${K}`]?: BsTabs[K] };
|
|
6292
|
+
"bs-toast": Omit<BsToast, keyof BsToastAttributes> & { [K in keyof BsToast & keyof BsToastAttributes]?: BsToast[K] } & { [K in keyof BsToast & keyof BsToastAttributes as `attr:${K}`]?: BsToastAttributes[K] } & { [K in keyof BsToast & keyof BsToastAttributes as `prop:${K}`]?: BsToast[K] };
|
|
6223
6293
|
"bs-tooltip": Omit<BsTooltip, keyof BsTooltipAttributes> & { [K in keyof BsTooltip & keyof BsTooltipAttributes]?: BsTooltip[K] } & { [K in keyof BsTooltip & keyof BsTooltipAttributes as `attr:${K}`]?: BsTooltipAttributes[K] } & { [K in keyof BsTooltip & keyof BsTooltipAttributes as `prop:${K}`]?: BsTooltip[K] };
|
|
6224
6294
|
}
|
|
6225
6295
|
}
|
|
@@ -7227,6 +7297,15 @@ declare module "@stencil/core" {
|
|
|
7227
7297
|
* directly.
|
|
7228
7298
|
*/
|
|
7229
7299
|
"bs-tabs": LocalJSX.IntrinsicElements["bs-tabs"] & JSXBase.HTMLAttributes<HTMLBsTabsElement>;
|
|
7300
|
+
/**
|
|
7301
|
+
* A transient status message for confirming the result of an action (e.g. "Files uploaded
|
|
7302
|
+
* successfully.") -- a state-specific icon, a message, and a close button.
|
|
7303
|
+
* This component only renders the toast itself -- it doesn't manage its own visibility, timing, or
|
|
7304
|
+
* stacking. A consumer (typically a small "toast manager" utility) creates one per message and
|
|
7305
|
+
* removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
|
|
7306
|
+
* auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
|
|
7307
|
+
*/
|
|
7308
|
+
"bs-toast": LocalJSX.IntrinsicElements["bs-toast"] & JSXBase.HTMLAttributes<HTMLBsToastElement>;
|
|
7230
7309
|
/**
|
|
7231
7310
|
* A dark tooltip bubble with a pointer arrow, used to surface a short hint of extra information
|
|
7232
7311
|
* next to a trigger element.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as s,a,h as r}from"./p-CvfB8CQv.js";const o=class{constructor(a){e(this,a),this.bsCollapse=s(this,"bsCollapse")}get el(){return a(this)}heading="Sources";count;bsCollapse;slottedCount=0;onSlotchange=e=>{this.slottedCount=e.target.assignedElements().filter((e=>"bs-source-link"===e.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const e=this.count??this.slottedCount;return r("div",{key:"d457067b704c7df5a763ec8ada13f02595e9a450",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},r("div",{key:"7bed0625e25444d49cb2bc2d85bda4b08f242672",class:"bs-chatbot-sources-drawer__header"},r("div",{key:"b55ce1be49393360840caa2ed824ae2d3eafab59",class:"bs-chatbot-sources-drawer__title-group"},r("h2",{key:"fe97457121b810e09792581e07864c366e5d9121",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),e>0&&r("span",{key:"41a116982438e62d6d6a870f4eaf8f68d8ff758b",part:"count",class:"bs-chatbot-sources-drawer__count"},e)),r("button",{key:"5026bcd60e49776abff2305793c9d0424fce8cbb",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":"Collapse sources",onClick:this.onCollapseClick},r("slot",{key:"f9ca644ea20b7d9b440d766ae93e1ee01a5b451b",name:"collapse-icon"},r(t,{key:"ffa427ee1e25cac7e197c5fb1c44edefb45d328e"})))),r("div",{key:"67b518bd9c1da897d44f607d08200ad0ffca067e",part:"list",class:"bs-chatbot-sources-drawer__list"},r("slot",{key:"34f904ce8cc9f0924d0c2012fff054faab4cb306",onSlotchange:this.onSlotchange})))}},t=()=>r("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("path",{d:"M7.5 4.375L13.125 10L7.5 15.625",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));o.style=":host{display:block;--bs-chatbot-sources-drawer-bg:var(--bs-surface-raised);--bs-chatbot-sources-drawer-header-shadow:var(--bs-shadow-xs);--bs-chatbot-sources-drawer-header-padding-x:var(--bs-spacing-200);--bs-chatbot-sources-drawer-header-padding-top:var(--bs-spacing-150);--bs-chatbot-sources-drawer-header-padding-bottom:var(--bs-spacing-100);--bs-chatbot-sources-drawer-heading-color:var(--bs-text-default);--bs-chatbot-sources-drawer-count-bg:var(--bs-badge-bg-neutral-container);--bs-chatbot-sources-drawer-count-color:var(--bs-badge-text-neutral);--bs-chatbot-sources-drawer-collapse-hover:var(--bs-surface-hover);--bs-chatbot-sources-drawer-section-gap:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-padding:var(--bs-spacing-200);--bs-chatbot-sources-drawer-list-gap:var(--bs-spacing-50)}.bs-chatbot-sources-drawer{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-section-gap);width:100%;height:100%;background:var(--bs-chatbot-sources-drawer-bg);font-family:inherit}.bs-chatbot-sources-drawer__header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding:var(--bs-chatbot-sources-drawer-header-padding-top) var(--bs-chatbot-sources-drawer-header-padding-x) var(--bs-chatbot-sources-drawer-header-padding-bottom);box-shadow:var(--bs-chatbot-sources-drawer-header-shadow)}.bs-chatbot-sources-drawer__title-group{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-chatbot-sources-drawer__heading{margin:0;color:var(--bs-chatbot-sources-drawer-heading-color);font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:calc(var(--bs-line-height-heading-h4) * 1px)}.bs-chatbot-sources-drawer__count{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:16px;max-width:34px;padding:var(--bs-spacing-50) var(--bs-spacing-100);background:var(--bs-chatbot-sources-drawer-count-bg);border-radius:var(--bs-border-radius-50);color:var(--bs-chatbot-sources-drawer-count-color);font-size:var(--bs-font-size-xs);line-height:calc(var(--bs-line-height-caption-sm) * 1px)}.bs-chatbot-sources-drawer__collapse{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:none;border:none;border-radius:var(--bs-border-radius-100);color:var(--bs-icon-default);cursor:pointer}.bs-chatbot-sources-drawer__collapse:hover{background:var(--bs-chatbot-sources-drawer-collapse-hover)}.bs-chatbot-sources-drawer__collapse:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:1px}.bs-chatbot-sources-drawer__list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-chatbot-sources-drawer-list-gap);padding:0 var(--bs-chatbot-sources-drawer-list-padding) var(--bs-chatbot-sources-drawer-list-padding);overflow-y:auto}";export{o as bs_chatbot_sources_drawer}
|