@brandsync/wc 0.0.10 → 0.0.11
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 +286 -0
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/{p-8d12ed96.entry.js → p-030a8ba7.entry.js} +1 -1
- package/dist/brandsync-wc/p-073e5fee.entry.js +1 -0
- package/dist/brandsync-wc/{p-ce0914a7.entry.js → p-0b858120.entry.js} +1 -1
- package/dist/brandsync-wc/{p-575ce905.entry.js → p-1bf0b2d5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-bc72439a.entry.js → p-2598ca88.entry.js} +1 -1
- package/dist/brandsync-wc/p-3c8fbaa8.entry.js +1 -0
- package/dist/brandsync-wc/p-3dd9b814.entry.js +1 -0
- package/dist/brandsync-wc/{p-94ed898a.entry.js → p-41edb0a2.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3dacae70.entry.js → p-4ca15322.entry.js} +1 -1
- package/dist/brandsync-wc/{p-b1e1b2d6.entry.js → p-6254dcbe.entry.js} +1 -1
- package/dist/brandsync-wc/{p-880ea3f8.entry.js → p-7131d0a1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a34f460d.entry.js → p-74a4dd91.entry.js} +1 -1
- package/dist/brandsync-wc/{p-30a0e168.entry.js → p-7a605d98.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a78d6ea.entry.js → p-84ae4420.entry.js} +1 -1
- package/dist/brandsync-wc/{p-16a54578.entry.js → p-8c302968.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dd747a12.entry.js → p-8d78171b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7776b57b.entry.js → p-8dff4f24.entry.js} +1 -1
- package/dist/brandsync-wc/{p-dad4a92c.entry.js → p-93e44903.entry.js} +1 -1
- package/dist/brandsync-wc/{p-nLORuTUY.js → p-DP_bvuvB.js} +2 -2
- package/dist/brandsync-wc/{p-eb4d87f0.entry.js → p-aa45d877.entry.js} +1 -1
- package/dist/brandsync-wc/{p-805644e4.entry.js → p-b174403d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d682675e.entry.js → p-c6d330c3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-1515498e.entry.js → p-d1dc2ced.entry.js} +1 -1
- package/dist/brandsync-wc/{p-18af02df.entry.js → p-dd224cb3.entry.js} +1 -1
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +83 -0
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +2 -2
- package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
- package/dist/cjs/bs-input.cjs.entry.js +3 -3
- 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-source-link.cjs.entry.js +3 -3
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{index-CVh-sqA_.js → index-CGrdFg95.js} +73 -1
- package/dist/cjs/loader.cjs.js +2 -2
- 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-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.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.cmp.test.js +107 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.css +193 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.js +234 -0
- package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +65 -0
- 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-source-link/bs-source-link.js +2 -2
- package/dist/collection/components/bs-tooltip/bs-tooltip.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-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-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-modal.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cz2nfz2j.js → p-B9PrXIl_.js} +1 -1
- package/dist/components/{p-DndQiCMP.js → p-BUbGEXL7.js} +1 -1
- package/dist/components/{p-BpvhHQSw.js → p-D1cYtKyN.js} +1 -1
- package/dist/components/{p-DHbUF0g6.js → p-D2HDHZjz.js} +1 -1
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +1 -1
- 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 +1 -1
- 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 +81 -0
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +2 -2
- package/dist/esm/bs-data-table.entry.js +3 -3
- package/dist/esm/bs-input.entry.js +3 -3
- package/dist/esm/bs-menu_2.entry.js +3 -3
- package/dist/esm/bs-modal.entry.js +1 -1
- package/dist/esm/bs-source-link.entry.js +3 -3
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/{index-nLORuTUY.js → index-DP_bvuvB.js} +73 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-checkbox/bs-checkbox.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.d.ts +53 -0
- package/dist/types/components/bs-checkbox/bs-checkbox.stories.d.ts +23 -0
- package/dist/types/components.d.ts +135 -0
- package/package.json +1 -1
- package/dist/brandsync-wc/p-0d64ea40.entry.js +0 -1
- package/dist/brandsync-wc/p-96f374be.entry.js +0 -1
|
@@ -10,6 +10,7 @@ import { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
|
10
10
|
import { BsButtonSize, BsButtonVariant } from "./components/bs-button/bs-button";
|
|
11
11
|
import { BsButtonSize as BsButtonSize1 } from "./components/bs-button/bs-button";
|
|
12
12
|
import { BsCardSurface } from "./components/bs-card/bs-card";
|
|
13
|
+
import { BsCheckboxSize } from "./components/bs-checkbox/bs-checkbox";
|
|
13
14
|
import { BsComposerState, BsComposerVariant } from "./components/bs-composer/bs-composer";
|
|
14
15
|
import { BsComposerStatusBannerType } from "./components/bs-composer-status-banner/bs-composer-status-banner";
|
|
15
16
|
import { BsDataTableColumn, BsDataTableRow } from "./components/bs-data-table/bs-data-table";
|
|
@@ -19,6 +20,7 @@ export { BsBadgeVariant } from "./components/bs-badge/bs-badge";
|
|
|
19
20
|
export { BsButtonSize, BsButtonVariant } from "./components/bs-button/bs-button";
|
|
20
21
|
export { BsButtonSize as BsButtonSize1 } from "./components/bs-button/bs-button";
|
|
21
22
|
export { BsCardSurface } from "./components/bs-card/bs-card";
|
|
23
|
+
export { BsCheckboxSize } from "./components/bs-checkbox/bs-checkbox";
|
|
22
24
|
export { BsComposerState, BsComposerVariant } from "./components/bs-composer/bs-composer";
|
|
23
25
|
export { BsComposerStatusBannerType } from "./components/bs-composer-status-banner/bs-composer-status-banner";
|
|
24
26
|
export { BsDataTableColumn, BsDataTableRow } from "./components/bs-data-table/bs-data-table";
|
|
@@ -516,6 +518,44 @@ export namespace Components {
|
|
|
516
518
|
*/
|
|
517
519
|
"disabled": boolean;
|
|
518
520
|
}
|
|
521
|
+
/**
|
|
522
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
523
|
+
* choices.
|
|
524
|
+
* ## When to use
|
|
525
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
526
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
527
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
528
|
+
* ## When not to use
|
|
529
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
530
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
531
|
+
*/
|
|
532
|
+
interface BsCheckbox {
|
|
533
|
+
/**
|
|
534
|
+
* Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly. When `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon) regardless of this value -- same as native checkboxes.
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
"checked": boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling, and prevents toggling.
|
|
540
|
+
* @default false
|
|
541
|
+
*/
|
|
542
|
+
"disabled": boolean;
|
|
543
|
+
/**
|
|
544
|
+
* Applies the error border/label-color treatment. This component's spec has no error message text of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.
|
|
545
|
+
* @default false
|
|
546
|
+
*/
|
|
547
|
+
"error": boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Whether the checkbox is in the indeterminate ("partially selected") state -- shows a minus icon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native checkboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the element. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's this component's own reflected state, not the native control's -- the native `<input>` inside has its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
"indeterminate": boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Sizing scale. Controls the box's width/height and border width; corner radius is constant across all sizes.
|
|
555
|
+
* @default 'lg'
|
|
556
|
+
*/
|
|
557
|
+
"size": BsCheckboxSize;
|
|
558
|
+
}
|
|
519
559
|
/**
|
|
520
560
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
521
561
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
|
@@ -986,6 +1026,10 @@ export interface BsChatbotSuggestionButtonCustomEvent<T> extends CustomEvent<T>
|
|
|
986
1026
|
detail: T;
|
|
987
1027
|
target: HTMLBsChatbotSuggestionButtonElement;
|
|
988
1028
|
}
|
|
1029
|
+
export interface BsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
1030
|
+
detail: T;
|
|
1031
|
+
target: HTMLBsCheckboxElement;
|
|
1032
|
+
}
|
|
989
1033
|
export interface BsComposerCustomEvent<T> extends CustomEvent<T> {
|
|
990
1034
|
detail: T;
|
|
991
1035
|
target: HTMLBsComposerElement;
|
|
@@ -1497,6 +1541,34 @@ declare global {
|
|
|
1497
1541
|
prototype: HTMLBsChatbotSuggestionButtonElement;
|
|
1498
1542
|
new (): HTMLBsChatbotSuggestionButtonElement;
|
|
1499
1543
|
};
|
|
1544
|
+
interface HTMLBsCheckboxElementEventMap {
|
|
1545
|
+
"bsChange": boolean;
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
1549
|
+
* choices.
|
|
1550
|
+
* ## When to use
|
|
1551
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
1552
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
1553
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
1554
|
+
* ## When not to use
|
|
1555
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
1556
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
1557
|
+
*/
|
|
1558
|
+
interface HTMLBsCheckboxElement extends Components.BsCheckbox, HTMLStencilElement {
|
|
1559
|
+
addEventListener<K extends keyof HTMLBsCheckboxElementEventMap>(type: K, listener: (this: HTMLBsCheckboxElement, ev: BsCheckboxCustomEvent<HTMLBsCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1560
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1561
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1562
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1563
|
+
removeEventListener<K extends keyof HTMLBsCheckboxElementEventMap>(type: K, listener: (this: HTMLBsCheckboxElement, ev: BsCheckboxCustomEvent<HTMLBsCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1564
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1565
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1566
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1567
|
+
}
|
|
1568
|
+
var HTMLBsCheckboxElement: {
|
|
1569
|
+
prototype: HTMLBsCheckboxElement;
|
|
1570
|
+
new (): HTMLBsCheckboxElement;
|
|
1571
|
+
};
|
|
1500
1572
|
interface HTMLBsComposerElementEventMap {
|
|
1501
1573
|
"bsInput": string;
|
|
1502
1574
|
"bsSubmit": void;
|
|
@@ -1872,6 +1944,7 @@ declare global {
|
|
|
1872
1944
|
"bs-chatbot-response-action": HTMLBsChatbotResponseActionElement;
|
|
1873
1945
|
"bs-chatbot-sources-drawer": HTMLBsChatbotSourcesDrawerElement;
|
|
1874
1946
|
"bs-chatbot-suggestion-button": HTMLBsChatbotSuggestionButtonElement;
|
|
1947
|
+
"bs-checkbox": HTMLBsCheckboxElement;
|
|
1875
1948
|
"bs-composer": HTMLBsComposerElement;
|
|
1876
1949
|
"bs-composer-status-banner": HTMLBsComposerStatusBannerElement;
|
|
1877
1950
|
"bs-data-table": HTMLBsDataTableElement;
|
|
@@ -2448,6 +2521,48 @@ declare namespace LocalJSX {
|
|
|
2448
2521
|
*/
|
|
2449
2522
|
"onBsSelect"?: (event: BsChatbotSuggestionButtonCustomEvent<void>) => void;
|
|
2450
2523
|
}
|
|
2524
|
+
/**
|
|
2525
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
2526
|
+
* choices.
|
|
2527
|
+
* ## When to use
|
|
2528
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
2529
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
2530
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
2531
|
+
* ## When not to use
|
|
2532
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
2533
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
2534
|
+
*/
|
|
2535
|
+
interface BsCheckbox {
|
|
2536
|
+
/**
|
|
2537
|
+
* Whether the checkbox is checked. Mutable so clicking the label/input toggles it directly. When `indeterminate` is also true, `indeterminate` wins visually (shows the minus icon) regardless of this value -- same as native checkboxes.
|
|
2538
|
+
* @default false
|
|
2539
|
+
*/
|
|
2540
|
+
"checked"?: boolean;
|
|
2541
|
+
/**
|
|
2542
|
+
* Disables the checkbox: sets the native `disabled` attribute, suppresses hover/focus styling, and prevents toggling.
|
|
2543
|
+
* @default false
|
|
2544
|
+
*/
|
|
2545
|
+
"disabled"?: boolean;
|
|
2546
|
+
/**
|
|
2547
|
+
* Applies the error border/label-color treatment. This component's spec has no error message text of its own (unlike `bs-input`'s `error: string`), so it's a plain boolean.
|
|
2548
|
+
* @default false
|
|
2549
|
+
*/
|
|
2550
|
+
"error"?: boolean;
|
|
2551
|
+
/**
|
|
2552
|
+
* Whether the checkbox is in the indeterminate ("partially selected") state -- shows a minus icon instead of a check, and takes visual precedence over `checked`. Unlike `checked`, native checkboxes have no `indeterminate` HTML attribute; it can only be set as a JS property on the element. This `@Prop` still works as an attribute for the *host* (`<bs-checkbox>`) since that's this component's own reflected state, not the native control's -- the native `<input>` inside has its `.indeterminate` property set imperatively in `componentDidLoad`/`componentDidUpdate`.
|
|
2553
|
+
* @default false
|
|
2554
|
+
*/
|
|
2555
|
+
"indeterminate"?: boolean;
|
|
2556
|
+
/**
|
|
2557
|
+
* Emitted when the checked state changes via user interaction, with the new `checked` value.
|
|
2558
|
+
*/
|
|
2559
|
+
"onBsChange"?: (event: BsCheckboxCustomEvent<boolean>) => void;
|
|
2560
|
+
/**
|
|
2561
|
+
* Sizing scale. Controls the box's width/height and border width; corner radius is constant across all sizes.
|
|
2562
|
+
* @default 'lg'
|
|
2563
|
+
*/
|
|
2564
|
+
"size"?: BsCheckboxSize;
|
|
2565
|
+
}
|
|
2451
2566
|
/**
|
|
2452
2567
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
2453
2568
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
|
@@ -3015,6 +3130,13 @@ declare namespace LocalJSX {
|
|
|
3015
3130
|
interface BsChatbotSuggestionButtonAttributes {
|
|
3016
3131
|
"disabled": boolean;
|
|
3017
3132
|
}
|
|
3133
|
+
interface BsCheckboxAttributes {
|
|
3134
|
+
"size": BsCheckboxSize;
|
|
3135
|
+
"checked": boolean;
|
|
3136
|
+
"indeterminate": boolean;
|
|
3137
|
+
"disabled": boolean;
|
|
3138
|
+
"error": boolean;
|
|
3139
|
+
}
|
|
3018
3140
|
interface BsComposerAttributes {
|
|
3019
3141
|
"variant": BsComposerVariant;
|
|
3020
3142
|
"placeholder": string;
|
|
@@ -3099,6 +3221,7 @@ declare namespace LocalJSX {
|
|
|
3099
3221
|
"bs-chatbot-response-action": Omit<BsChatbotResponseAction, keyof BsChatbotResponseActionAttributes> & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes]?: BsChatbotResponseAction[K] } & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes as `attr:${K}`]?: BsChatbotResponseActionAttributes[K] } & { [K in keyof BsChatbotResponseAction & keyof BsChatbotResponseActionAttributes as `prop:${K}`]?: BsChatbotResponseAction[K] };
|
|
3100
3222
|
"bs-chatbot-sources-drawer": Omit<BsChatbotSourcesDrawer, keyof BsChatbotSourcesDrawerAttributes> & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes]?: BsChatbotSourcesDrawer[K] } & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes as `attr:${K}`]?: BsChatbotSourcesDrawerAttributes[K] } & { [K in keyof BsChatbotSourcesDrawer & keyof BsChatbotSourcesDrawerAttributes as `prop:${K}`]?: BsChatbotSourcesDrawer[K] };
|
|
3101
3223
|
"bs-chatbot-suggestion-button": Omit<BsChatbotSuggestionButton, keyof BsChatbotSuggestionButtonAttributes> & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes]?: BsChatbotSuggestionButton[K] } & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes as `attr:${K}`]?: BsChatbotSuggestionButtonAttributes[K] } & { [K in keyof BsChatbotSuggestionButton & keyof BsChatbotSuggestionButtonAttributes as `prop:${K}`]?: BsChatbotSuggestionButton[K] };
|
|
3224
|
+
"bs-checkbox": Omit<BsCheckbox, keyof BsCheckboxAttributes> & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes]?: BsCheckbox[K] } & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes as `attr:${K}`]?: BsCheckboxAttributes[K] } & { [K in keyof BsCheckbox & keyof BsCheckboxAttributes as `prop:${K}`]?: BsCheckbox[K] };
|
|
3102
3225
|
"bs-composer": Omit<BsComposer, keyof BsComposerAttributes> & { [K in keyof BsComposer & keyof BsComposerAttributes]?: BsComposer[K] } & { [K in keyof BsComposer & keyof BsComposerAttributes as `attr:${K}`]?: BsComposerAttributes[K] } & { [K in keyof BsComposer & keyof BsComposerAttributes as `prop:${K}`]?: BsComposer[K] };
|
|
3103
3226
|
"bs-composer-status-banner": Omit<BsComposerStatusBanner, keyof BsComposerStatusBannerAttributes> & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes]?: BsComposerStatusBanner[K] } & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes as `attr:${K}`]?: BsComposerStatusBannerAttributes[K] } & { [K in keyof BsComposerStatusBanner & keyof BsComposerStatusBannerAttributes as `prop:${K}`]?: BsComposerStatusBanner[K] };
|
|
3104
3227
|
"bs-data-table": Omit<BsDataTable, keyof BsDataTableAttributes> & { [K in keyof BsDataTable & keyof BsDataTableAttributes]?: BsDataTable[K] } & { [K in keyof BsDataTable & keyof BsDataTableAttributes as `attr:${K}`]?: BsDataTableAttributes[K] } & { [K in keyof BsDataTable & keyof BsDataTableAttributes as `prop:${K}`]?: BsDataTable[K] };
|
|
@@ -3448,6 +3571,18 @@ declare module "@stencil/core" {
|
|
|
3448
3571
|
* `--bs-border-primary-focus`.
|
|
3449
3572
|
*/
|
|
3450
3573
|
"bs-chatbot-suggestion-button": LocalJSX.IntrinsicElements["bs-chatbot-suggestion-button"] & JSXBase.HTMLAttributes<HTMLBsChatbotSuggestionButtonElement>;
|
|
3574
|
+
/**
|
|
3575
|
+
* A single checkbox with its label, for a binary choice or one item within a group of independent
|
|
3576
|
+
* choices.
|
|
3577
|
+
* ## When to use
|
|
3578
|
+
* - A single standalone binary setting (e.g. "Remember me", "I agree to the terms").
|
|
3579
|
+
* - One item within a set of independent, non-exclusive choices (a checkbox group/list).
|
|
3580
|
+
* - `indeterminate` for a "select all" checkbox representing a partially-selected group.
|
|
3581
|
+
* ## When not to use
|
|
3582
|
+
* - A single mutually-exclusive choice from a set -- use a radio group instead.
|
|
3583
|
+
* - An on/off setting that takes effect immediately (no explicit form submission) -- use `bs-switch`.
|
|
3584
|
+
*/
|
|
3585
|
+
"bs-checkbox": LocalJSX.IntrinsicElements["bs-checkbox"] & JSXBase.HTMLAttributes<HTMLBsCheckboxElement>;
|
|
3451
3586
|
/**
|
|
3452
3587
|
* A chat composer input for Genie AI-style conversational interfaces: a text field
|
|
3453
3588
|
* plus an attach button, a mic/voice-recording toggle, and a single primary action button whose
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as e,a,h as r}from"./p-nLORuTUY.js";const o=class{constructor(a){s(this,a),this.bsCollapse=e(this,"bsCollapse")}get el(){return a(this)}heading="Sources";count;bsCollapse;slottedCount=0;onSlotchange=s=>{this.slottedCount=s.target.assignedElements().filter((s=>"bs-source-link"===s.tagName.toLowerCase())).length};onCollapseClick=()=>{this.bsCollapse.emit()};render(){const s=this.count??this.slottedCount;return r("div",{key:"54cb56455b630d5ed30dd2a925728f2803143b17",class:"bs-chatbot-sources-drawer",role:"region","aria-label":this.heading},r("div",{key:"d24eabd0ac2c36ec4033a9b5c361aa32225fa78a",class:"bs-chatbot-sources-drawer__header"},r("div",{key:"0bec3fb848552496e1884b4731c5e1964570c70d",class:"bs-chatbot-sources-drawer__title-group"},r("h2",{key:"955389bd4f3ba1950c9af404e5880a6837298384",part:"heading",class:"bs-chatbot-sources-drawer__heading"},this.heading),s>0&&r("span",{key:"40d83288bbd257504ef814247c7bd4664df9e169",part:"count",class:"bs-chatbot-sources-drawer__count"},s)),r("button",{key:"56a15c64faea80790387d4918843c806b684268b",type:"button",part:"collapse",class:"bs-chatbot-sources-drawer__collapse","aria-label":"Collapse sources",onClick:this.onCollapseClick},r("slot",{key:"c321f53482f0265357a6a29fc40e0ff3766f0b74",name:"collapse-icon"},r(t,{key:"c3d4c17bebd2611b27c3e7f87d359e4b46c41d4f"})))),r("div",{key:"d6c4b8e3660f765112f0c33dd72021af118332d9",part:"list",class:"bs-chatbot-sources-drawer__list"},r("slot",{key:"19759a01d921ed2517cbca2b01ea53741a207b8b",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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-nLORuTUY.js";const s=class{constructor(a){t(this,a),this.bsSort=e(this,"bsSort"),this.bsRowSelect=e(this,"bsRowSelect")}columns=[];rows=[];sortColumn;sortDirection="asc";selectable=!1;cellRenderer;bsSort;bsRowSelect;selectedIds=new Set;onHeaderClick=t=>{t.sortable&&this.bsSort.emit({column:t.key,direction:this.sortColumn===t.key&&"asc"===this.sortDirection?"desc":"asc"})};onRowCheckboxChange=(t,e)=>{const a=e.target.checked,s=new Set(this.selectedIds);a?s.add(t.id):s.delete(t.id),this.selectedIds=s,this.bsRowSelect.emit({id:t.id,selected:a})};render(){return a("table",{key:"9b16ade44ff85120e9629722de8e8c1738835c1b",part:"table",class:"bs-data-table"},a("thead",{key:"644eed606e68782ada42c289bb7bfc8d6de4affb",part:"head"},a("tr",{key:"4e4ea75018796c77f14703c1c1402022f8c8cde9"},this.selectable&&a("th",{key:"85460f7c2eab6ad0f3604f72bcd81a4aa8699c03",class:"bs-data-table__select-col"}),this.columns.map((t=>{const e=this.sortColumn===t.key;return a("th",{part:"header-cell",class:"bs-data-table__header-cell","aria-sort":t.sortable?e?"asc"===this.sortDirection?"ascending":"descending":"none":void 0},t.sortable?a("button",{type:"button",class:"bs-data-table__sort-button",onClick:()=>this.onHeaderClick(t)},t.label,e&&a("span",{class:"bs-data-table__sort-indicator"},"asc"===this.sortDirection?" ▲":" ▼")):t.label)})))),a("tbody",{key:"024cb8a25cc6471e7074d119b78e6a8e22f86450",part:"body"},this.rows.map((t=>a("tr",{part:"row",class:"bs-data-table__row"},this.selectable&&a("td",{class:"bs-data-table__select-col"},a("input",{type:"checkbox",checked:this.selectedIds.has(t.id),onChange:e=>this.onRowCheckboxChange(t,e)})),this.columns.map((e=>this.cellRenderer?a("td",{part:"cell",class:"bs-data-table__cell",innerHTML:this.cellRenderer(t,e)}):a("td",{part:"cell",class:"bs-data-table__cell"},String(t[e.key]??"")))))))))}};s.style=":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)}";export{s as bs_data_table}
|