@brandsync/wc 0.0.4 → 0.0.5

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.
Files changed (49) hide show
  1. package/custom-elements.json +129 -2
  2. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  3. package/dist/brandsync-wc/{p-ea705742.entry.js → p-0ded3be8.entry.js} +1 -1
  4. package/dist/brandsync-wc/p-1dc6d7f5.entry.js +1 -0
  5. package/dist/brandsync-wc/p-300eea85.entry.js +1 -0
  6. package/dist/brandsync-wc/p-cdbad27a.entry.js +1 -0
  7. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  8. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +30 -4
  9. package/dist/cjs/bs-input.cjs.entry.js +2 -2
  10. package/dist/cjs/bs-menu-item.cjs.entry.js +29 -0
  11. package/dist/cjs/bs-menu.cjs.entry.js +17 -0
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/collection/collection-manifest.json +3 -1
  14. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.cmp.test.js +43 -2
  15. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.css +13 -0
  16. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +70 -6
  17. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.stories.js +96 -0
  18. package/dist/collection/components/bs-input/bs-input.js +2 -2
  19. package/dist/collection/components/bs-menu/bs-menu.cmp.test.js +18 -0
  20. package/dist/collection/components/bs-menu/bs-menu.css +20 -0
  21. package/dist/collection/components/bs-menu/bs-menu.js +39 -0
  22. package/dist/collection/components/bs-menu/bs-menu.stories.js +15 -0
  23. package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +33 -0
  24. package/dist/collection/components/bs-menu-item/bs-menu-item.css +68 -0
  25. package/dist/collection/components/bs-menu-item/bs-menu-item.js +79 -0
  26. package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +37 -0
  27. package/dist/components/bs-chatbot-response-action.js +1 -1
  28. package/dist/components/bs-input.js +1 -1
  29. package/dist/components/bs-menu-item.d.ts +11 -0
  30. package/dist/components/bs-menu-item.js +1 -0
  31. package/dist/components/bs-menu.d.ts +11 -0
  32. package/dist/components/bs-menu.js +1 -0
  33. package/dist/esm/brandsync-wc.js +1 -1
  34. package/dist/esm/bs-chatbot-response-action.entry.js +31 -5
  35. package/dist/esm/bs-input.entry.js +2 -2
  36. package/dist/esm/bs-menu-item.entry.js +27 -0
  37. package/dist/esm/bs-menu.entry.js +15 -0
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.d.ts +16 -2
  40. package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.stories.d.ts +1 -0
  41. package/dist/types/components/bs-menu/bs-menu.cmp.test.d.ts +1 -0
  42. package/dist/types/components/bs-menu/bs-menu.d.ts +24 -0
  43. package/dist/types/components/bs-menu/bs-menu.stories.d.ts +5 -0
  44. package/dist/types/components/bs-menu-item/bs-menu-item.cmp.test.d.ts +1 -0
  45. package/dist/types/components/bs-menu-item/bs-menu-item.d.ts +38 -0
  46. package/dist/types/components/bs-menu-item/bs-menu-item.stories.d.ts +7 -0
  47. package/dist/types/components.d.ts +195 -3
  48. package/package.json +1 -1
  49. package/dist/brandsync-wc/p-4ce458bf.entry.js +0 -1
@@ -180,6 +180,11 @@ export namespace Components {
180
180
  * @prop --bs-chatbot-response-action-sources-line-height - Aliased to `--bs-line-height-body-sm`.
181
181
  */
182
182
  interface BsChatbotResponseAction {
183
+ /**
184
+ * Whether the "more options" popup menu (the `menu` slot) is currently open. Mutable + reflected so the component can track/close itself (kebab click, click outside, Escape) the same way `bs-chatbot-header`'s `expanded` prop tracks its own toggle state, while still emitting `bsMenuOpen` for the consumer to react to.
185
+ * @default false
186
+ */
187
+ "menuOpen": boolean;
183
188
  /**
184
189
  * Number of sources backing the response. When set to a positive number, renders the "N sources" button (singular "1 source" / plural "N sources"). When unset or `0`, the button is not rendered at all.
185
190
  */
@@ -307,6 +312,44 @@ export namespace Components {
307
312
  */
308
313
  "value": string;
309
314
  }
315
+ /**
316
+ * A generic dropdown/popup menu container: a rounded, elevated list of items (typically
317
+ * `bs-menu-item` elements).
318
+ * ## When to use
319
+ * - A popup list of actions/options triggered by another control (e.g. a "more options" kebab
320
+ * button), such as `bs-chatbot-response-action`'s `menu` slot.
321
+ * ## When not to use
322
+ * - A persistent, always-visible list of options -- this component is purpose-built as a popup
323
+ * surface (rounded corners, elevation shadow), not a plain list.
324
+ * @prop --bs-menu-bg - Background of the menu box. Aliased to `--bs-surface-raised`.
325
+ * @prop --bs-menu-radius - Corner radius of the menu box. Aliased to `--bs-border-radius-100`.
326
+ * @prop --bs-menu-padding-y - Top/bottom padding of the menu box. Aliased to `--bs-spacing-50`.
327
+ * @prop --bs-menu-gap - Gap between slotted items. Aliased to `--bs-spacing-50`.
328
+ * @prop --bs-menu-shadow - Elevation shadow of the menu box. Aliased to `--bs-shadow-sm`.
329
+ */
330
+ interface BsMenu {
331
+ }
332
+ /**
333
+ * A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a
334
+ * real `<button>` for correct keyboard/click semantics.
335
+ * ## When to use
336
+ * - As a child of `bs-menu`, one per selectable action/option.
337
+ * ## When not to use
338
+ * - Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the
339
+ * menu's rounded, padded list box.
340
+ * @prop --bs-menu-item-radius - Corner radius of the row. Aliased to `--bs-border-radius-100`.
341
+ * @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
342
+ * @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
343
+ * @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
344
+ * @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
345
+ * @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
346
+ * @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
347
+ * @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
348
+ * @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
349
+ * @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
350
+ */
351
+ interface BsMenuItem {
352
+ }
310
353
  /**
311
354
  * An overlay dialog that interrupts the current flow for a focused task or confirmation.
312
355
  * Closes itself on backdrop click, Escape, or its own close button, and emits `bsClose`.
@@ -351,6 +394,10 @@ export interface BsInputCustomEvent<T> extends CustomEvent<T> {
351
394
  detail: T;
352
395
  target: HTMLBsInputElement;
353
396
  }
397
+ export interface BsMenuItemCustomEvent<T> extends CustomEvent<T> {
398
+ detail: T;
399
+ target: HTMLBsMenuItemElement;
400
+ }
354
401
  export interface BsModalCustomEvent<T> extends CustomEvent<T> {
355
402
  detail: T;
356
403
  target: HTMLBsModalElement;
@@ -480,7 +527,7 @@ declare global {
480
527
  "bsDislike": void;
481
528
  "bsCopy": void;
482
529
  "bsRegenerate": void;
483
- "bsMenuOpen": void;
530
+ "bsMenuOpen": boolean;
484
531
  "bsSourcesClick": void;
485
532
  }
486
533
  /**
@@ -631,6 +678,63 @@ declare global {
631
678
  prototype: HTMLBsInputElement;
632
679
  new (): HTMLBsInputElement;
633
680
  };
681
+ /**
682
+ * A generic dropdown/popup menu container: a rounded, elevated list of items (typically
683
+ * `bs-menu-item` elements).
684
+ * ## When to use
685
+ * - A popup list of actions/options triggered by another control (e.g. a "more options" kebab
686
+ * button), such as `bs-chatbot-response-action`'s `menu` slot.
687
+ * ## When not to use
688
+ * - A persistent, always-visible list of options -- this component is purpose-built as a popup
689
+ * surface (rounded corners, elevation shadow), not a plain list.
690
+ * @prop --bs-menu-bg - Background of the menu box. Aliased to `--bs-surface-raised`.
691
+ * @prop --bs-menu-radius - Corner radius of the menu box. Aliased to `--bs-border-radius-100`.
692
+ * @prop --bs-menu-padding-y - Top/bottom padding of the menu box. Aliased to `--bs-spacing-50`.
693
+ * @prop --bs-menu-gap - Gap between slotted items. Aliased to `--bs-spacing-50`.
694
+ * @prop --bs-menu-shadow - Elevation shadow of the menu box. Aliased to `--bs-shadow-sm`.
695
+ */
696
+ interface HTMLBsMenuElement extends Components.BsMenu, HTMLStencilElement {
697
+ }
698
+ var HTMLBsMenuElement: {
699
+ prototype: HTMLBsMenuElement;
700
+ new (): HTMLBsMenuElement;
701
+ };
702
+ interface HTMLBsMenuItemElementEventMap {
703
+ "bsSelect": void;
704
+ }
705
+ /**
706
+ * A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a
707
+ * real `<button>` for correct keyboard/click semantics.
708
+ * ## When to use
709
+ * - As a child of `bs-menu`, one per selectable action/option.
710
+ * ## When not to use
711
+ * - Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the
712
+ * menu's rounded, padded list box.
713
+ * @prop --bs-menu-item-radius - Corner radius of the row. Aliased to `--bs-border-radius-100`.
714
+ * @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
715
+ * @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
716
+ * @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
717
+ * @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
718
+ * @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
719
+ * @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
720
+ * @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
721
+ * @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
722
+ * @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
723
+ */
724
+ interface HTMLBsMenuItemElement extends Components.BsMenuItem, HTMLStencilElement {
725
+ addEventListener<K extends keyof HTMLBsMenuItemElementEventMap>(type: K, listener: (this: HTMLBsMenuItemElement, ev: BsMenuItemCustomEvent<HTMLBsMenuItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
726
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
727
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
728
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
729
+ removeEventListener<K extends keyof HTMLBsMenuItemElementEventMap>(type: K, listener: (this: HTMLBsMenuItemElement, ev: BsMenuItemCustomEvent<HTMLBsMenuItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
730
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
731
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
732
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
733
+ }
734
+ var HTMLBsMenuItemElement: {
735
+ prototype: HTMLBsMenuItemElement;
736
+ new (): HTMLBsMenuItemElement;
737
+ };
634
738
  interface HTMLBsModalElementEventMap {
635
739
  "bsClose": void;
636
740
  }
@@ -669,6 +773,8 @@ declare global {
669
773
  "bs-composer": HTMLBsComposerElement;
670
774
  "bs-data-table": HTMLBsDataTableElement;
671
775
  "bs-input": HTMLBsInputElement;
776
+ "bs-menu": HTMLBsMenuElement;
777
+ "bs-menu-item": HTMLBsMenuItemElement;
672
778
  "bs-modal": HTMLBsModalElement;
673
779
  }
674
780
  }
@@ -849,6 +955,11 @@ declare namespace LocalJSX {
849
955
  * @prop --bs-chatbot-response-action-sources-line-height - Aliased to `--bs-line-height-body-sm`.
850
956
  */
851
957
  interface BsChatbotResponseAction {
958
+ /**
959
+ * Whether the "more options" popup menu (the `menu` slot) is currently open. Mutable + reflected so the component can track/close itself (kebab click, click outside, Escape) the same way `bs-chatbot-header`'s `expanded` prop tracks its own toggle state, while still emitting `bsMenuOpen` for the consumer to react to.
960
+ * @default false
961
+ */
962
+ "menuOpen"?: boolean;
852
963
  /**
853
964
  * Fires when the "Copy" button is clicked.
854
965
  */
@@ -862,9 +973,9 @@ declare namespace LocalJSX {
862
973
  */
863
974
  "onBsLike"?: (event: BsChatbotResponseActionCustomEvent<void>) => void;
864
975
  /**
865
- * Fires when the "More options" button is clicked.
976
+ * Fires when the "More options" button is clicked or the menu is closed (click outside, Escape), with the new `menuOpen` value.
866
977
  */
867
- "onBsMenuOpen"?: (event: BsChatbotResponseActionCustomEvent<void>) => void;
978
+ "onBsMenuOpen"?: (event: BsChatbotResponseActionCustomEvent<boolean>) => void;
868
979
  /**
869
980
  * Fires when the "Regenerate" button is clicked.
870
981
  */
@@ -1028,6 +1139,48 @@ declare namespace LocalJSX {
1028
1139
  */
1029
1140
  "value"?: string;
1030
1141
  }
1142
+ /**
1143
+ * A generic dropdown/popup menu container: a rounded, elevated list of items (typically
1144
+ * `bs-menu-item` elements).
1145
+ * ## When to use
1146
+ * - A popup list of actions/options triggered by another control (e.g. a "more options" kebab
1147
+ * button), such as `bs-chatbot-response-action`'s `menu` slot.
1148
+ * ## When not to use
1149
+ * - A persistent, always-visible list of options -- this component is purpose-built as a popup
1150
+ * surface (rounded corners, elevation shadow), not a plain list.
1151
+ * @prop --bs-menu-bg - Background of the menu box. Aliased to `--bs-surface-raised`.
1152
+ * @prop --bs-menu-radius - Corner radius of the menu box. Aliased to `--bs-border-radius-100`.
1153
+ * @prop --bs-menu-padding-y - Top/bottom padding of the menu box. Aliased to `--bs-spacing-50`.
1154
+ * @prop --bs-menu-gap - Gap between slotted items. Aliased to `--bs-spacing-50`.
1155
+ * @prop --bs-menu-shadow - Elevation shadow of the menu box. Aliased to `--bs-shadow-sm`.
1156
+ */
1157
+ interface BsMenu {
1158
+ }
1159
+ /**
1160
+ * A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a
1161
+ * real `<button>` for correct keyboard/click semantics.
1162
+ * ## When to use
1163
+ * - As a child of `bs-menu`, one per selectable action/option.
1164
+ * ## When not to use
1165
+ * - Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the
1166
+ * menu's rounded, padded list box.
1167
+ * @prop --bs-menu-item-radius - Corner radius of the row. Aliased to `--bs-border-radius-100`.
1168
+ * @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
1169
+ * @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
1170
+ * @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
1171
+ * @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
1172
+ * @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
1173
+ * @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
1174
+ * @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
1175
+ * @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
1176
+ * @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
1177
+ */
1178
+ interface BsMenuItem {
1179
+ /**
1180
+ * Fires when the item is clicked.
1181
+ */
1182
+ "onBsSelect"?: (event: BsMenuItemCustomEvent<void>) => void;
1183
+ }
1031
1184
  /**
1032
1185
  * An overlay dialog that interrupts the current flow for a focused task or confirmation.
1033
1186
  * Closes itself on backdrop click, Escape, or its own close button, and emits `bsClose`.
@@ -1075,6 +1228,7 @@ declare namespace LocalJSX {
1075
1228
  }
1076
1229
  interface BsChatbotResponseActionAttributes {
1077
1230
  "sourcesCount": number;
1231
+ "menuOpen": boolean;
1078
1232
  }
1079
1233
  interface BsComposerAttributes {
1080
1234
  "variant": BsComposerVariant;
@@ -1113,6 +1267,8 @@ declare namespace LocalJSX {
1113
1267
  "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] };
1114
1268
  "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] };
1115
1269
  "bs-input": Omit<BsInput, keyof BsInputAttributes> & { [K in keyof BsInput & keyof BsInputAttributes]?: BsInput[K] } & { [K in keyof BsInput & keyof BsInputAttributes as `attr:${K}`]?: BsInputAttributes[K] } & { [K in keyof BsInput & keyof BsInputAttributes as `prop:${K}`]?: BsInput[K] };
1270
+ "bs-menu": BsMenu;
1271
+ "bs-menu-item": BsMenuItem;
1116
1272
  "bs-modal": Omit<BsModal, keyof BsModalAttributes> & { [K in keyof BsModal & keyof BsModalAttributes]?: BsModal[K] } & { [K in keyof BsModal & keyof BsModalAttributes as `attr:${K}`]?: BsModalAttributes[K] } & { [K in keyof BsModal & keyof BsModalAttributes as `prop:${K}`]?: BsModal[K] };
1117
1273
  }
1118
1274
  }
@@ -1280,6 +1436,42 @@ declare module "@stencil/core" {
1280
1436
  * - A fixed set of choices — use a select/radio/checkbox component instead of free text.
1281
1437
  */
1282
1438
  "bs-input": LocalJSX.IntrinsicElements["bs-input"] & JSXBase.HTMLAttributes<HTMLBsInputElement>;
1439
+ /**
1440
+ * A generic dropdown/popup menu container: a rounded, elevated list of items (typically
1441
+ * `bs-menu-item` elements).
1442
+ * ## When to use
1443
+ * - A popup list of actions/options triggered by another control (e.g. a "more options" kebab
1444
+ * button), such as `bs-chatbot-response-action`'s `menu` slot.
1445
+ * ## When not to use
1446
+ * - A persistent, always-visible list of options -- this component is purpose-built as a popup
1447
+ * surface (rounded corners, elevation shadow), not a plain list.
1448
+ * @prop --bs-menu-bg - Background of the menu box. Aliased to `--bs-surface-raised`.
1449
+ * @prop --bs-menu-radius - Corner radius of the menu box. Aliased to `--bs-border-radius-100`.
1450
+ * @prop --bs-menu-padding-y - Top/bottom padding of the menu box. Aliased to `--bs-spacing-50`.
1451
+ * @prop --bs-menu-gap - Gap between slotted items. Aliased to `--bs-spacing-50`.
1452
+ * @prop --bs-menu-shadow - Elevation shadow of the menu box. Aliased to `--bs-shadow-sm`.
1453
+ */
1454
+ "bs-menu": LocalJSX.IntrinsicElements["bs-menu"] & JSXBase.HTMLAttributes<HTMLBsMenuElement>;
1455
+ /**
1456
+ * A single selectable row inside a `bs-menu`: an optional icon plus a text label, rendered as a
1457
+ * real `<button>` for correct keyboard/click semantics.
1458
+ * ## When to use
1459
+ * - As a child of `bs-menu`, one per selectable action/option.
1460
+ * ## When not to use
1461
+ * - Outside of `bs-menu` -- this component's sizing/hover treatment is designed to sit inside the
1462
+ * menu's rounded, padded list box.
1463
+ * @prop --bs-menu-item-radius - Corner radius of the row. Aliased to `--bs-border-radius-100`.
1464
+ * @prop --bs-menu-item-padding-y - Top/bottom padding. Aliased to `--bs-spacing-100`.
1465
+ * @prop --bs-menu-item-padding-x - Left/right padding. Aliased to `--bs-spacing-150`.
1466
+ * @prop --bs-menu-item-gap - Gap between icon and label. Aliased to `--bs-spacing-100`.
1467
+ * @prop --bs-menu-item-hover - Background on hover. Aliased to `--bs-color-neutral-container`.
1468
+ * @prop --bs-menu-item-pressed - Background when pressed. Aliased to `--bs-color-neutral-container-pressed`.
1469
+ * @prop --bs-menu-item-icon-color - Icon color. Aliased to `--bs-icon-default`.
1470
+ * @prop --bs-menu-item-color - Label text color. Aliased to `--bs-text-muted`.
1471
+ * @prop --bs-menu-item-font-size - Aliased to `--bs-font-size-md`.
1472
+ * @prop --bs-menu-item-line-height - Aliased to `--bs-line-height-body-md`.
1473
+ */
1474
+ "bs-menu-item": LocalJSX.IntrinsicElements["bs-menu-item"] & JSXBase.HTMLAttributes<HTMLBsMenuItemElement>;
1283
1475
  /**
1284
1476
  * An overlay dialog that interrupts the current flow for a focused task or confirmation.
1285
1477
  * Closes itself on backdrop click, Escape, or its own close button, and emits `bsClose`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandsync/wc",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as e}from"./p-nLORuTUY.js";const s=class{constructor(e){o(this,e),this.bsLike=t(this,"bsLike"),this.bsDislike=t(this,"bsDislike"),this.bsCopy=t(this,"bsCopy"),this.bsRegenerate=t(this,"bsRegenerate"),this.bsMenuOpen=t(this,"bsMenuOpen"),this.bsSourcesClick=t(this,"bsSourcesClick")}sourcesCount;bsLike;bsDislike;bsCopy;bsRegenerate;bsMenuOpen;bsSourcesClick;onLikeClick=()=>{this.bsLike.emit()};onDislikeClick=()=>{this.bsDislike.emit()};onCopyClick=()=>{this.bsCopy.emit()};onRegenerateClick=()=>{this.bsRegenerate.emit()};onMenuClick=()=>{this.bsMenuOpen.emit()};onSourcesClick=()=>{this.bsSourcesClick.emit()};render(){const o=!!this.sourcesCount&&this.sourcesCount>0;return e("div",{key:"61a46c51ffba5e1256a94cbab87ce6e06e45941f",class:"bs-chatbot-response-action"},e("button",{key:"33e8e29235191bc2a4128074d5df08cc304dbefb",type:"button",part:"like",class:"bs-chatbot-response-action__button","aria-label":"Like",onClick:this.onLikeClick},e("slot",{key:"2337aa07fec93d12e6706ded394248f0353b91e6",name:"like-icon"},e(r,{key:"9be56ca48cbb7027ba608ea9f8e89c2c14f98eee"}))),e("button",{key:"fcdd8f3d4028a0e91cd5e10525ac97febf2261b6",type:"button",part:"dislike",class:"bs-chatbot-response-action__button","aria-label":"Dislike",onClick:this.onDislikeClick},e("slot",{key:"bc219702b5e935659aa7824596511e8b01d2014f",name:"dislike-icon"},e(n,{key:"5ec9da81d5a89d1d2a35dbfe88682214178204cb"}))),e("button",{key:"59d6b3032d141092537d9e56ced8e3045b40384f",type:"button",part:"copy",class:"bs-chatbot-response-action__button","aria-label":"Copy",onClick:this.onCopyClick},e("slot",{key:"e5bd9fbc4774ae9d67707803819697b56c516984",name:"copy-icon"},e(a,{key:"e7f8f643920bad3f88c597bb183cfc71f8319c46"}))),e("button",{key:"a6bd1be8be7f0f70157a5a5e37bc18d2c94462fc",type:"button",part:"regenerate",class:"bs-chatbot-response-action__button","aria-label":"Regenerate",onClick:this.onRegenerateClick},e("slot",{key:"7d35981706ea38ae1e613047945dde9d67a94c62",name:"regenerate-icon"},e(i,{key:"1d2dacd4bba68fcd120317bb207e7aa25bc0f62f"}))),e("button",{key:"32f3f790f4024cd7b58ba6f291d32b3f5f0dbbc8",type:"button",part:"menu",class:"bs-chatbot-response-action__button","aria-label":"More options",onClick:this.onMenuClick},e("slot",{key:"0aaf67bbc34bdf5d12247f9ab264a75dad63f996",name:"menu-icon"},e(c,{key:"c32d76d1e6f73cd9a82bbf4371a4d047b807b80c"}))),o&&e("button",{key:"240f26ed6ec5faded1efe1f171da10e4a292011e",type:"button",part:"sources",class:"bs-chatbot-response-action__sources",onClick:this.onSourcesClick},e("slot",{key:"e97e26840df27d2ff281882823bae7556d53bdc6",name:"sources-icon"},e(b,{key:"5dd3538a28ee3cf22b2801258024386827b9c774"})),e("span",{key:"acf07f2bba262a08c3f2d9650b9fd09fab51d172",class:"bs-chatbot-response-action__sources-label"},this.sourcesCount," ",1===this.sourcesCount?"source":"sources")))}},r=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M2.5 8.125H6.25V16.25H2.5C2.33424 16.25 2.17527 16.1842 2.05806 16.0669C1.94085 15.9497 1.875 15.7908 1.875 15.625V8.75C1.875 8.58424 1.94085 8.42527 2.05806 8.30806C2.17527 8.19085 2.33424 8.125 2.5 8.125Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.25 8.125L9.375 1.875C10.038 1.875 10.6739 2.13839 11.1428 2.60723C11.6116 3.07607 11.875 3.71196 11.875 4.375V6.25H16.875C17.0523 6.25005 17.2276 6.28782 17.3892 6.36081C17.5508 6.4338 17.695 6.54033 17.8123 6.67333C17.9295 6.80634 18.0172 6.96277 18.0693 7.13223C18.1215 7.3017 18.137 7.48033 18.1148 7.65625L17.1773 15.1562C17.1393 15.4583 16.9923 15.736 16.7641 15.9374C16.5358 16.1388 16.2419 16.2499 15.9375 16.25H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),n=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M2.5 3.75H6.25V11.875H2.5C2.33424 11.875 2.17527 11.8092 2.05806 11.6919C1.94085 11.5747 1.875 11.4158 1.875 11.25V4.375C1.875 4.20924 1.94085 4.05027 2.05806 3.93306C2.17527 3.81585 2.33424 3.75 2.5 3.75Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.25 11.875L9.375 18.125C10.038 18.125 10.6739 17.8616 11.1428 17.3928C11.6116 16.9239 11.875 16.288 11.875 15.625V13.75H16.875C17.0523 13.75 17.2276 13.7122 17.3892 13.6392C17.5508 13.5662 17.695 13.4597 17.8123 13.3267C17.9295 13.1937 18.0172 13.0372 18.0693 12.8678C18.1215 12.6983 18.137 12.5197 18.1148 12.3438L17.1773 4.84375C17.1393 4.54174 16.9923 4.26399 16.7641 4.06262C16.5358 3.86124 16.2419 3.75009 15.9375 3.75H6.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),a=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M13.125 13.125H16.875V3.125H6.875V6.875",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M13.125 6.875H3.125V16.875H13.125V6.875Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),i=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M13.125 7.5H16.875V3.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M16.875 7.5L14.6656 5.29063C13.3861 4.01117 11.6538 3.28772 9.84437 3.27719C8.03494 3.26666 6.29431 3.9699 5 5.23438",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.875 12.5H3.125V16.25",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M3.125 12.5L5.33437 14.7094C6.61388 15.9888 8.34621 16.7123 10.1556 16.7228C11.9651 16.7333 13.7057 16.0301 15 14.7656",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"})),c=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M10 9.11426C10.489 9.11426 10.8857 9.511 10.8857 10C10.8857 10.489 10.489 10.8857 10 10.8857C9.511 10.8857 9.11426 10.489 9.11426 10C9.11426 9.511 9.511 9.11426 10 9.11426Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),e("path",{d:"M10 3.80176C10.489 3.80176 10.8857 4.1985 10.8857 4.6875C10.8857 5.1765 10.489 5.57324 10 5.57324C9.511 5.57324 9.11426 5.1765 9.11426 4.6875C9.11426 4.1985 9.511 3.80176 10 3.80176Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.104167"}),e("path",{d:"M10 16.25C10.5178 16.25 10.9375 15.8303 10.9375 15.3125C10.9375 14.7947 10.5178 14.375 10 14.375C9.48223 14.375 9.0625 14.7947 9.0625 15.3125C9.0625 15.8303 9.48223 16.25 10 16.25Z",fill:"currentColor"})),b=()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e("path",{d:"M13.125 17.5H4.375C4.20924 17.5 4.05027 17.4342 3.93306 17.3169C3.81585 17.1997 3.75 17.0408 3.75 16.875V5.625C3.75 5.45924 3.81585 5.30027 3.93306 5.18306C4.05027 5.06585 4.20924 5 4.375 5H10.625L13.75 8.125V16.875C13.75 17.0408 13.6842 17.1997 13.5669 17.3169C13.4497 17.4342 13.2908 17.5 13.125 17.5Z",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.25 5V3.125C6.25 2.95924 6.31585 2.80027 6.43306 2.68306C6.55027 2.56585 6.70924 2.5 6.875 2.5H13.125L16.25 5.625V14.375C16.25 14.5408 16.1842 14.6997 16.0669 14.8169C15.9497 14.9342 15.7908 15 15.625 15H13.75",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.875 11.875H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6.875 14.375H10.625",stroke:"currentColor","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"}));s.style=":host{display:block;--bs-chatbot-response-action-gap:var(--bs-spacing-100);--bs-chatbot-response-action-padding-top:var(--bs-spacing-150);--bs-chatbot-response-action-padding-bottom:var(--bs-spacing-50);--bs-chatbot-response-action-button-size:var(--bs-spacing-400);--bs-chatbot-response-action-button-radius:var(--bs-border-radius-100);--bs-chatbot-response-action-button-hover:var(--bs-color-neutral-container);--bs-chatbot-response-action-button-pressed:var(--bs-color-neutral-container-pressed);--bs-chatbot-response-action-icon:var(--bs-icon-neutral-default);--bs-chatbot-response-action-sources-gap:var(--bs-spacing-50);--bs-chatbot-response-action-sources-padding-left:var(--bs-spacing-100);--bs-chatbot-response-action-sources-padding-right:var(--bs-spacing-150);--bs-chatbot-response-action-sources-color:var(--bs-text-neutral-default);--bs-chatbot-response-action-sources-font-size:var(--bs-font-size-sm);--bs-chatbot-response-action-sources-line-height:var(--bs-line-height-body-sm)}.bs-chatbot-response-action{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-chatbot-response-action-gap);padding-top:var(--bs-chatbot-response-action-padding-top);padding-bottom:var(--bs-chatbot-response-action-padding-bottom);background:transparent;font-family:inherit}.bs-chatbot-response-action__button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;padding:0;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-icon);font-family:inherit;border-radius:var(--bs-chatbot-response-action-button-radius);width:var(--bs-chatbot-response-action-button-size);height:var(--bs-chatbot-response-action-button-size);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__button svg{width:20px;height:20px}.bs-chatbot-response-action__button:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__button:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__sources{display:inline-flex;align-items:center;box-sizing:border-box;border:none;cursor:pointer;background:transparent;color:var(--bs-chatbot-response-action-sources-color);font-family:inherit;font-size:var(--bs-chatbot-response-action-sources-font-size);line-height:calc(var(--bs-chatbot-response-action-sources-line-height) * 1px);gap:var(--bs-chatbot-response-action-sources-gap);border-radius:var(--bs-chatbot-response-action-button-radius);height:var(--bs-chatbot-response-action-button-size);padding-left:var(--bs-chatbot-response-action-sources-padding-left);padding-right:var(--bs-chatbot-response-action-sources-padding-right);flex-shrink:0;transition:background-color var(--bs-duration-fast) var(--bs-easing-standard)}.bs-chatbot-response-action__sources:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-chatbot-response-action__sources svg{width:20px;height:20px;flex-shrink:0}.bs-chatbot-response-action__sources:hover{background:var(--bs-chatbot-response-action-button-hover)}.bs-chatbot-response-action__sources:active{background:var(--bs-chatbot-response-action-button-pressed)}.bs-chatbot-response-action__sources-label{white-space:nowrap}";export{s as bs_chatbot_response_action}