@brandsync/wc 1.12.1 → 1.13.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.
Files changed (499) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/CONVENTIONS.md +109 -0
  3. package/REFERENCE.md +1357 -0
  4. package/custom-elements.json +2628 -338
  5. package/dist/brandsync-wc/brandsync-wc.css +1 -1783
  6. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  7. package/dist/brandsync-wc/{p-83c90489.entry.js → p-00be9a64.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-b9ccd9d1.entry.js → p-020cb767.entry.js} +1 -1
  9. package/dist/brandsync-wc/p-046a53de.entry.js +1 -0
  10. package/dist/brandsync-wc/{p-282ddbee.entry.js → p-07966676.entry.js} +1 -1
  11. package/dist/brandsync-wc/p-0cb6fc39.entry.js +1 -0
  12. package/dist/brandsync-wc/{p-2497d128.entry.js → p-0e940ee1.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-e5daa6ca.entry.js → p-10290c41.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-e2556b4e.entry.js → p-144b6ac8.entry.js} +1 -1
  15. package/dist/brandsync-wc/p-1b5cc9b8.entry.js +1 -0
  16. package/dist/brandsync-wc/p-23b56775.entry.js +1 -0
  17. package/dist/brandsync-wc/{p-a9169157.entry.js → p-23cc532f.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-81605b82.entry.js → p-361aef36.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-89fabf27.entry.js → p-3789c7a5.entry.js} +1 -1
  20. package/dist/brandsync-wc/p-3f6682f8.entry.js +1 -0
  21. package/dist/brandsync-wc/{p-f5180578.entry.js → p-4054a944.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-fc069773.entry.js → p-45cb3e6d.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-de110ad0.entry.js → p-47b7fe76.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-2f4e08e1.entry.js → p-47cd19aa.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-3a1af63a.entry.js → p-4bbc4809.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-247e36ad.entry.js → p-4ea435a6.entry.js} +1 -1
  27. package/dist/brandsync-wc/{p-56c37e0a.entry.js → p-4ea9b6a1.entry.js} +1 -1
  28. package/dist/brandsync-wc/{p-1978e63c.entry.js → p-53362609.entry.js} +1 -1
  29. package/dist/brandsync-wc/p-658532b7.entry.js +1 -0
  30. package/dist/brandsync-wc/p-68f0be29.entry.js +1 -0
  31. package/dist/brandsync-wc/{p-09bc1923.entry.js → p-694fe468.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-78f4fcf0.entry.js → p-6ca1e51b.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-52cb2358.entry.js → p-6e923ebc.entry.js} +1 -1
  34. package/dist/brandsync-wc/p-7e24dbd7.entry.js +1 -0
  35. package/dist/brandsync-wc/{p-00a0d489.entry.js → p-8048d033.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-2368a92e.entry.js → p-8184d7de.entry.js} +1 -1
  37. package/dist/brandsync-wc/p-8390a155.entry.js +1 -0
  38. package/dist/brandsync-wc/{p-0b2d3b7e.entry.js → p-86028548.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-fcee0dc4.entry.js → p-89fa7567.entry.js} +1 -1
  40. package/dist/brandsync-wc/{p-7796b93f.entry.js → p-8c9938a5.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-68fcd4a4.entry.js → p-9125632c.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-416322bd.entry.js → p-94d435a2.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-69c0a85d.entry.js → p-95f034fc.entry.js} +1 -1
  44. package/dist/brandsync-wc/p-9b58c0c5.entry.js +1 -0
  45. package/dist/brandsync-wc/{p-39a26c64.entry.js → p-9cf8274a.entry.js} +1 -1
  46. package/dist/brandsync-wc/p-9d12b1fb.entry.js +1 -0
  47. package/dist/brandsync-wc/{p-5ba90a13.entry.js → p-9d660c03.entry.js} +1 -1
  48. package/dist/brandsync-wc/p-D3SkQJpw.js +3 -0
  49. package/dist/brandsync-wc/{p-7f954939.entry.js → p-a28ef52e.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-09435f41.entry.js → p-a5659499.entry.js} +1 -1
  51. package/dist/brandsync-wc/p-ab07c9b5.entry.js +1 -0
  52. package/dist/brandsync-wc/p-b0b2e525.entry.js +1 -0
  53. package/dist/brandsync-wc/p-b6ac1b50.entry.js +1 -0
  54. package/dist/brandsync-wc/p-bee30626.entry.js +1 -0
  55. package/dist/brandsync-wc/p-bf8bd386.entry.js +1 -0
  56. package/dist/brandsync-wc/{p-1aab6d07.entry.js → p-c05ee501.entry.js} +1 -1
  57. package/dist/brandsync-wc/p-c3da3080.entry.js +1 -0
  58. package/dist/brandsync-wc/p-c679b631.entry.js +1 -0
  59. package/dist/brandsync-wc/p-cceb8484.entry.js +1 -0
  60. package/dist/brandsync-wc/p-cd53bba9.entry.js +1 -0
  61. package/dist/brandsync-wc/p-ce16f038.entry.js +1 -0
  62. package/dist/brandsync-wc/{p-491b51e6.entry.js → p-d5a6098d.entry.js} +1 -1
  63. package/dist/brandsync-wc/{p-f15d9524.entry.js → p-d64cae57.entry.js} +1 -1
  64. package/dist/brandsync-wc/p-dfad8c0a.entry.js +1 -0
  65. package/dist/brandsync-wc/p-e0504a4b.entry.js +1 -0
  66. package/dist/brandsync-wc/{p-0ee4126c.entry.js → p-e1b7bea7.entry.js} +1 -1
  67. package/dist/brandsync-wc/{p-0b7c77c1.entry.js → p-e65d286c.entry.js} +1 -1
  68. package/dist/brandsync-wc/p-ed5c2d97.entry.js +1 -0
  69. package/dist/brandsync-wc/p-f134a502.entry.js +1 -0
  70. package/dist/brandsync-wc/p-f271e1d2.entry.js +1 -0
  71. package/dist/brandsync-wc/{p-3f09296a.entry.js → p-f3eca1ce.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-617bd13a.entry.js → p-f8d47004.entry.js} +1 -1
  73. package/dist/brandsync-wc/p-fa34fe20.entry.js +1 -0
  74. package/dist/brandsync-wc/{p-2177042f.entry.js → p-fa6b9750.entry.js} +1 -1
  75. package/dist/brandsync-wc/p-fb4d0093.entry.js +1 -0
  76. package/dist/brandsync-wc/{p-78a69a59.entry.js → p-fc76031e.entry.js} +1 -1
  77. package/dist/brandsync-wc/{p-be3dd446.entry.js → p-ffc07eb5.entry.js} +1 -1
  78. package/dist/cjs/brandsync-wc.cjs.js +2 -2
  79. package/dist/cjs/bs-accordion-group.cjs.entry.js +33 -0
  80. package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
  81. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
  82. package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
  83. package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
  84. package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
  85. package/dist/cjs/bs-attachment.cjs.entry.js +9 -5
  86. package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
  87. package/dist/cjs/bs-badge.cjs.entry.js +1 -1
  88. package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
  89. package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
  90. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
  91. package/dist/cjs/bs-button-skeleton.cjs.entry.js +4 -2
  92. package/dist/cjs/bs-button.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-card.cjs.entry.js +1 -1
  94. package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
  95. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +18 -2
  96. package/dist/cjs/bs-chatbot-header.cjs.entry.js +20 -2
  97. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +25 -3
  98. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +4 -2
  99. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +3 -3
  100. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +4 -2
  101. package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
  102. package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
  104. package/dist/cjs/bs-chip-input.cjs.entry.js +4 -2
  105. package/dist/cjs/bs-citation-preview.cjs.entry.js +29 -0
  106. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +11 -3
  107. package/dist/cjs/bs-composer.cjs.entry.js +36 -7
  108. package/dist/cjs/bs-cookie-consent.cjs.entry.js +1 -1
  109. package/dist/cjs/bs-data-table.cjs.entry.js +5 -3
  110. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  111. package/dist/cjs/bs-dialog.cjs.entry.js +4 -2
  112. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  115. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  116. package/dist/cjs/bs-icon-tile.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
  118. package/dist/cjs/bs-input_3.cjs.entry.js +15 -7
  119. package/dist/cjs/bs-logo.cjs.entry.js +1 -1
  120. package/dist/cjs/bs-message-list.cjs.entry.js +71 -0
  121. package/dist/cjs/bs-message.cjs.entry.js +25 -0
  122. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
  123. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +9 -3
  124. package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
  125. package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-pagination.cjs.entry.js +6 -2
  127. package/dist/cjs/bs-popover.cjs.entry.js +153 -0
  128. package/dist/cjs/bs-product-tour.cjs.entry.js +1 -1
  129. package/dist/cjs/bs-progress-linear.cjs.entry.js +3 -3
  130. package/dist/cjs/bs-progress.cjs.entry.js +3 -3
  131. package/dist/cjs/bs-qr-code.cjs.entry.js +2 -2
  132. package/dist/cjs/bs-radio.cjs.entry.js +2 -2
  133. package/dist/cjs/bs-session-timeout.cjs.entry.js +2 -2
  134. package/dist/cjs/bs-side-panel.cjs.entry.js +164 -0
  135. package/dist/cjs/bs-skeleton.cjs.entry.js +51 -0
  136. package/dist/cjs/bs-slider.cjs.entry.js +7 -3
  137. package/dist/cjs/bs-snackbar.cjs.entry.js +2 -2
  138. package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
  139. package/dist/cjs/bs-spinner.cjs.entry.js +24 -0
  140. package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
  141. package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
  142. package/dist/cjs/bs-switch.cjs.entry.js +2 -2
  143. package/dist/cjs/bs-tab_3.cjs.entry.js +4 -4
  144. package/dist/cjs/bs-timepicker.cjs.entry.js +8 -4
  145. package/dist/cjs/bs-toast.cjs.entry.js +4 -2
  146. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +46 -0
  147. package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
  148. package/dist/cjs/bs-whats-new.cjs.entry.js +1 -1
  149. package/dist/cjs/index-BYfMRtlW.js +1863 -0
  150. package/dist/cjs/loader.cjs.js +2 -2
  151. package/dist/collection/collection-manifest.json +9 -0
  152. package/dist/collection/components/bs-accordion-group/bs-accordion-group.cmp.test.js +39 -0
  153. package/dist/collection/components/bs-accordion-group/bs-accordion-group.css +10 -0
  154. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +86 -0
  155. package/dist/collection/components/bs-accordion-group/bs-accordion-group.stories.js +18 -0
  156. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  157. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  158. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  159. package/dist/collection/components/bs-attachment/bs-attachment.js +48 -4
  160. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  161. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  162. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +23 -1
  163. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.cmp.test.js +10 -0
  164. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +178 -2
  165. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +6 -0
  166. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +200 -1
  167. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.cmp.test.js +8 -0
  168. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.css +4 -0
  169. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +223 -1
  170. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +24 -2
  171. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.css +1 -4
  172. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +3 -6
  173. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +23 -1
  174. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +23 -1
  175. package/dist/collection/components/bs-citation-preview/bs-citation-preview.cmp.test.js +34 -0
  176. package/dist/collection/components/bs-citation-preview/bs-citation-preview.css +36 -0
  177. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +154 -0
  178. package/dist/collection/components/bs-citation-preview/bs-citation-preview.stories.js +22 -0
  179. package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +29 -2
  180. package/dist/collection/components/bs-composer/bs-composer.css +16 -0
  181. package/dist/collection/components/bs-composer/bs-composer.js +234 -6
  182. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.cmp.test.js +5 -0
  183. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.css +16 -0
  184. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +49 -1
  185. package/dist/collection/components/bs-data-table/bs-data-table.js +24 -2
  186. package/dist/collection/components/bs-dialog/bs-dialog.js +23 -1
  187. package/dist/collection/components/bs-input/bs-input.js +92 -4
  188. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  189. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  190. package/dist/collection/components/bs-message/bs-message.cmp.test.js +36 -0
  191. package/dist/collection/components/bs-message/bs-message.css +77 -0
  192. package/dist/collection/components/bs-message/bs-message.js +156 -0
  193. package/dist/collection/components/bs-message/bs-message.stories.js +33 -0
  194. package/dist/collection/components/bs-message-list/bs-message-list.cmp.test.js +58 -0
  195. package/dist/collection/components/bs-message-list/bs-message-list.css +40 -0
  196. package/dist/collection/components/bs-message-list/bs-message-list.js +161 -0
  197. package/dist/collection/components/bs-message-list/bs-message-list.stories.js +17 -0
  198. package/dist/collection/components/bs-pagination/bs-pagination.cmp.test.js +5 -0
  199. package/dist/collection/components/bs-pagination/bs-pagination.js +45 -1
  200. package/dist/collection/components/bs-popover/bs-popover.cmp.test.js +107 -0
  201. package/dist/collection/components/bs-popover/bs-popover.css +61 -0
  202. package/dist/collection/components/bs-popover/bs-popover.js +247 -0
  203. package/dist/collection/components/bs-popover/bs-popover.stories.js +26 -0
  204. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  205. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  206. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  207. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  208. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  209. package/dist/collection/components/bs-side-panel/bs-side-panel.cmp.test.js +117 -0
  210. package/dist/collection/components/bs-side-panel/bs-side-panel.css +77 -0
  211. package/dist/collection/components/bs-side-panel/bs-side-panel.js +325 -0
  212. package/dist/collection/components/bs-side-panel/bs-side-panel.stories.js +24 -0
  213. package/dist/collection/components/bs-skeleton/bs-skeleton.cmp.test.js +49 -0
  214. package/dist/collection/components/bs-skeleton/bs-skeleton.css +62 -0
  215. package/dist/collection/components/bs-skeleton/bs-skeleton.js +204 -0
  216. package/dist/collection/components/bs-skeleton/bs-skeleton.stories.js +43 -0
  217. package/dist/collection/components/bs-slider/bs-slider.js +46 -2
  218. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  219. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  220. package/dist/collection/components/bs-spinner/bs-spinner.cmp.test.js +32 -0
  221. package/dist/collection/components/bs-spinner/bs-spinner.css +61 -0
  222. package/dist/collection/components/bs-spinner/bs-spinner.js +96 -0
  223. package/dist/collection/components/bs-spinner/bs-spinner.stories.js +30 -0
  224. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  225. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  226. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  227. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  228. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  229. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  230. package/dist/collection/components/bs-timepicker/bs-timepicker.js +48 -4
  231. package/dist/collection/components/bs-toast/bs-toast.js +23 -1
  232. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  233. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.cmp.test.js +73 -0
  234. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.css +52 -0
  235. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +140 -0
  236. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.stories.js +21 -0
  237. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  238. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +68 -2
  239. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  240. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  241. package/dist/collection/global/brand-theming.cmp.test.js +44 -0
  242. package/dist/components/bs-accordion-group.d.ts +11 -0
  243. package/dist/components/bs-accordion-group.js +1 -0
  244. package/dist/components/bs-accordion.js +1 -1
  245. package/dist/components/bs-ai-disclaimer.js +1 -1
  246. package/dist/components/bs-ai-greeting.js +1 -1
  247. package/dist/components/bs-ai-thinking.js +1 -1
  248. package/dist/components/bs-attachment-list.js +1 -1
  249. package/dist/components/bs-attachment.js +1 -1
  250. package/dist/components/bs-avatar.js +1 -1
  251. package/dist/components/bs-badge.js +1 -1
  252. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  253. package/dist/components/bs-breadcrumb.js +1 -1
  254. package/dist/components/bs-breadcrumbs.js +1 -1
  255. package/dist/components/bs-button-skeleton.js +1 -1
  256. package/dist/components/bs-button.js +1 -1
  257. package/dist/components/bs-card.js +1 -1
  258. package/dist/components/bs-carousel.js +1 -1
  259. package/dist/components/bs-chatbot-feedback.js +1 -1
  260. package/dist/components/bs-chatbot-header.js +1 -1
  261. package/dist/components/bs-chatbot-response-action.js +1 -1
  262. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  263. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  264. package/dist/components/bs-checkbox-skeleton.js +1 -1
  265. package/dist/components/bs-checkbox.js +1 -1
  266. package/dist/components/bs-chip-filter.js +1 -1
  267. package/dist/components/bs-chip-informative.js +1 -1
  268. package/dist/components/bs-chip-input.js +1 -1
  269. package/dist/components/bs-citation-preview.d.ts +11 -0
  270. package/dist/components/bs-citation-preview.js +1 -0
  271. package/dist/components/bs-composer-status-banner.js +1 -1
  272. package/dist/components/bs-composer.js +1 -1
  273. package/dist/components/bs-cookie-consent.js +1 -1
  274. package/dist/components/bs-data-table.js +1 -1
  275. package/dist/components/bs-datepicker.js +1 -1
  276. package/dist/components/bs-dialog.js +1 -1
  277. package/dist/components/bs-error-page.js +1 -1
  278. package/dist/components/bs-file-upload-item.js +1 -1
  279. package/dist/components/bs-file-upload.js +1 -1
  280. package/dist/components/bs-icon-button.js +1 -1
  281. package/dist/components/bs-icon-tile.js +1 -1
  282. package/dist/components/bs-inline-tab.js +1 -1
  283. package/dist/components/bs-input.js +1 -1
  284. package/dist/components/bs-logo.js +1 -1
  285. package/dist/components/bs-menu-item.js +1 -1
  286. package/dist/components/bs-menu.js +1 -1
  287. package/dist/components/bs-message-list.d.ts +11 -0
  288. package/dist/components/bs-message-list.js +1 -0
  289. package/dist/components/bs-message.d.ts +11 -0
  290. package/dist/components/bs-message.js +1 -0
  291. package/dist/components/bs-navigation-drawer-item.js +1 -1
  292. package/dist/components/bs-navigation-drawer.js +1 -1
  293. package/dist/components/bs-navigation-header.js +1 -1
  294. package/dist/components/bs-onboarding-checklist.js +1 -1
  295. package/dist/components/bs-pagination.js +1 -1
  296. package/dist/components/bs-popover.d.ts +11 -0
  297. package/dist/components/bs-popover.js +1 -0
  298. package/dist/components/bs-product-tour.js +1 -1
  299. package/dist/components/bs-progress-linear.js +1 -1
  300. package/dist/components/bs-progress.js +1 -1
  301. package/dist/components/bs-qr-code.js +1 -1
  302. package/dist/components/bs-radio.js +1 -1
  303. package/dist/components/bs-session-timeout.js +1 -1
  304. package/dist/components/bs-side-panel.d.ts +11 -0
  305. package/dist/components/bs-side-panel.js +1 -0
  306. package/dist/components/bs-skeleton.d.ts +11 -0
  307. package/dist/components/bs-skeleton.js +1 -0
  308. package/dist/components/bs-slider.js +1 -1
  309. package/dist/components/bs-snackbar.js +1 -1
  310. package/dist/components/bs-source-link.js +1 -1
  311. package/dist/components/bs-spinner.d.ts +11 -0
  312. package/dist/components/bs-spinner.js +1 -0
  313. package/dist/components/bs-stepper-step.js +1 -1
  314. package/dist/components/bs-stepper.js +1 -1
  315. package/dist/components/bs-switch.js +1 -1
  316. package/dist/components/bs-tab.js +1 -1
  317. package/dist/components/bs-tabs.js +1 -1
  318. package/dist/components/bs-timepicker.js +1 -1
  319. package/dist/components/bs-toast.js +1 -1
  320. package/dist/components/bs-tooltip-trigger.d.ts +11 -0
  321. package/dist/components/bs-tooltip-trigger.js +1 -0
  322. package/dist/components/bs-tooltip.js +1 -1
  323. package/dist/components/bs-whats-new-entry.js +1 -1
  324. package/dist/components/bs-whats-new.js +1 -1
  325. package/dist/components/index.js +1 -1
  326. package/dist/components/p-B2gx7SZk.js +1 -0
  327. package/dist/components/{p-BEEoVNRu.js → p-BTPdjnXT.js} +1 -1
  328. package/dist/components/{p-Be9L4_Fe.js → p-BVhF8cZQ.js} +1 -1
  329. package/dist/components/{p-C_j_jDM6.js → p-Bfq5YVOv.js} +1 -1
  330. package/dist/components/{p-DE8K7fg0.js → p-C2NR1v3p.js} +1 -1
  331. package/dist/components/{p-YsHQLXET.js → p-C9jIMBG3.js} +1 -1
  332. package/dist/components/{p-DuLL7Ouw.js → p-CRtvJlh8.js} +1 -1
  333. package/dist/components/{p-Dr0Qk9Zc.js → p-ChcaPfNL.js} +1 -1
  334. package/dist/components/{p-CbimDNGY.js → p-CrmEXUwm.js} +1 -1
  335. package/dist/components/p-Cu-aeY9t.js +1 -0
  336. package/dist/components/{p-zTHlbyH6.js → p-DAwSBMeM.js} +1 -1
  337. package/dist/components/{p-qmS2CBqi.js → p-DYuzgzxI.js} +1 -1
  338. package/dist/components/p-DfzrJKwN.js +1 -0
  339. package/dist/components/{p-CUfs0ROR.js → p-DpVeeIko.js} +1 -1
  340. package/dist/components/p-DqXI9V2A.js +1 -0
  341. package/dist/components/p-Dqg8l1y6.js +1 -0
  342. package/dist/components/{p-CA31vqjL.js → p-DvNED6Lb.js} +1 -1
  343. package/dist/components/{p-C8yT2Ucq.js → p-QnTjSed5.js} +1 -1
  344. package/dist/components/{p-CncySD_-.js → p-Rx4bpeYN.js} +1 -1
  345. package/dist/components/{p-Be_Pmccm.js → p-owdeCW0M.js} +1 -1
  346. package/dist/components/{p-Bl_tVzeq.js → p-uHvS81XA.js} +1 -1
  347. package/dist/esm/brandsync-wc.js +3 -3
  348. package/dist/esm/bs-accordion-group.entry.js +31 -0
  349. package/dist/esm/bs-accordion.entry.js +1 -1
  350. package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
  351. package/dist/esm/bs-ai-greeting.entry.js +2 -2
  352. package/dist/esm/bs-ai-thinking.entry.js +2 -2
  353. package/dist/esm/bs-attachment-list.entry.js +2 -2
  354. package/dist/esm/bs-attachment.entry.js +9 -5
  355. package/dist/esm/bs-avatar.entry.js +1 -1
  356. package/dist/esm/bs-badge.entry.js +1 -1
  357. package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
  358. package/dist/esm/bs-breadcrumb.entry.js +1 -1
  359. package/dist/esm/bs-breadcrumbs.entry.js +2 -2
  360. package/dist/esm/bs-button-skeleton.entry.js +4 -2
  361. package/dist/esm/bs-button.entry.js +1 -1
  362. package/dist/esm/bs-card.entry.js +1 -1
  363. package/dist/esm/bs-carousel.entry.js +1 -1
  364. package/dist/esm/bs-chatbot-feedback.entry.js +18 -2
  365. package/dist/esm/bs-chatbot-header.entry.js +20 -2
  366. package/dist/esm/bs-chatbot-response-action.entry.js +25 -3
  367. package/dist/esm/bs-chatbot-sources-drawer.entry.js +4 -2
  368. package/dist/esm/bs-chatbot-suggestion-button.entry.js +3 -3
  369. package/dist/esm/bs-checkbox-skeleton.entry.js +4 -2
  370. package/dist/esm/bs-checkbox.entry.js +1 -1
  371. package/dist/esm/bs-chip-filter.entry.js +1 -1
  372. package/dist/esm/bs-chip-informative.entry.js +1 -1
  373. package/dist/esm/bs-chip-input.entry.js +4 -2
  374. package/dist/esm/bs-citation-preview.entry.js +27 -0
  375. package/dist/esm/bs-composer-status-banner.entry.js +11 -3
  376. package/dist/esm/bs-composer.entry.js +36 -7
  377. package/dist/esm/bs-cookie-consent.entry.js +1 -1
  378. package/dist/esm/bs-data-table.entry.js +5 -3
  379. package/dist/esm/bs-datepicker.entry.js +1 -1
  380. package/dist/esm/bs-dialog.entry.js +4 -2
  381. package/dist/esm/bs-error-page.entry.js +1 -1
  382. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  383. package/dist/esm/bs-file-upload.entry.js +1 -1
  384. package/dist/esm/bs-icon-button.entry.js +1 -1
  385. package/dist/esm/bs-icon-tile.entry.js +1 -1
  386. package/dist/esm/bs-inline-tab.entry.js +2 -2
  387. package/dist/esm/bs-input_3.entry.js +15 -7
  388. package/dist/esm/bs-logo.entry.js +1 -1
  389. package/dist/esm/bs-message-list.entry.js +69 -0
  390. package/dist/esm/bs-message.entry.js +23 -0
  391. package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
  392. package/dist/esm/bs-navigation-drawer.entry.js +9 -3
  393. package/dist/esm/bs-navigation-header.entry.js +2 -2
  394. package/dist/esm/bs-onboarding-checklist.entry.js +1 -1
  395. package/dist/esm/bs-pagination.entry.js +6 -2
  396. package/dist/esm/bs-popover.entry.js +151 -0
  397. package/dist/esm/bs-product-tour.entry.js +1 -1
  398. package/dist/esm/bs-progress-linear.entry.js +3 -3
  399. package/dist/esm/bs-progress.entry.js +3 -3
  400. package/dist/esm/bs-qr-code.entry.js +2 -2
  401. package/dist/esm/bs-radio.entry.js +2 -2
  402. package/dist/esm/bs-session-timeout.entry.js +2 -2
  403. package/dist/esm/bs-side-panel.entry.js +162 -0
  404. package/dist/esm/bs-skeleton.entry.js +49 -0
  405. package/dist/esm/bs-slider.entry.js +7 -3
  406. package/dist/esm/bs-snackbar.entry.js +2 -2
  407. package/dist/esm/bs-source-link.entry.js +3 -3
  408. package/dist/esm/bs-spinner.entry.js +22 -0
  409. package/dist/esm/bs-stepper-step.entry.js +2 -2
  410. package/dist/esm/bs-stepper.entry.js +2 -2
  411. package/dist/esm/bs-switch.entry.js +2 -2
  412. package/dist/esm/bs-tab_3.entry.js +4 -4
  413. package/dist/esm/bs-timepicker.entry.js +8 -4
  414. package/dist/esm/bs-toast.entry.js +4 -2
  415. package/dist/esm/bs-tooltip-trigger.entry.js +44 -0
  416. package/dist/esm/bs-tooltip.entry.js +2 -2
  417. package/dist/esm/bs-whats-new.entry.js +1 -1
  418. package/dist/esm/index-D3SkQJpw.js +1853 -0
  419. package/dist/esm/loader.js +3 -3
  420. package/dist/types/components/bs-accordion-group/bs-accordion-group.cmp.test.d.ts +1 -0
  421. package/dist/types/components/bs-accordion-group/bs-accordion-group.d.ts +25 -0
  422. package/dist/types/components/bs-accordion-group/bs-accordion-group.stories.d.ts +9 -0
  423. package/dist/types/components/bs-attachment/bs-attachment.d.ts +4 -0
  424. package/dist/types/components/bs-button-skeleton/bs-button-skeleton.d.ts +2 -0
  425. package/dist/types/components/bs-chatbot-feedback/bs-chatbot-feedback.d.ts +16 -0
  426. package/dist/types/components/bs-chatbot-header/bs-chatbot-header.d.ts +19 -0
  427. package/dist/types/components/bs-chatbot-response-action/bs-chatbot-response-action.d.ts +22 -0
  428. package/dist/types/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.d.ts +2 -0
  429. package/dist/types/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.d.ts +2 -5
  430. package/dist/types/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.d.ts +2 -0
  431. package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.d.ts +2 -0
  432. package/dist/types/components/bs-citation-preview/bs-citation-preview.cmp.test.d.ts +1 -0
  433. package/dist/types/components/bs-citation-preview/bs-citation-preview.d.ts +40 -0
  434. package/dist/types/components/bs-citation-preview/bs-citation-preview.stories.d.ts +13 -0
  435. package/dist/types/components/bs-composer/bs-composer.d.ts +25 -1
  436. package/dist/types/components/bs-composer-status-banner/bs-composer-status-banner.d.ts +5 -0
  437. package/dist/types/components/bs-data-table/bs-data-table.d.ts +2 -0
  438. package/dist/types/components/bs-dialog/bs-dialog.d.ts +2 -0
  439. package/dist/types/components/bs-input/bs-input.d.ts +8 -0
  440. package/dist/types/components/bs-message/bs-message.cmp.test.d.ts +1 -0
  441. package/dist/types/components/bs-message/bs-message.d.ts +49 -0
  442. package/dist/types/components/bs-message/bs-message.stories.d.ts +15 -0
  443. package/dist/types/components/bs-message-list/bs-message-list.cmp.test.d.ts +1 -0
  444. package/dist/types/components/bs-message-list/bs-message-list.d.ts +44 -0
  445. package/dist/types/components/bs-message-list/bs-message-list.stories.d.ts +8 -0
  446. package/dist/types/components/bs-pagination/bs-pagination.d.ts +4 -0
  447. package/dist/types/components/bs-popover/bs-popover.cmp.test.d.ts +1 -0
  448. package/dist/types/components/bs-popover/bs-popover.d.ts +58 -0
  449. package/dist/types/components/bs-popover/bs-popover.stories.d.ts +11 -0
  450. package/dist/types/components/bs-side-panel/bs-side-panel.cmp.test.d.ts +1 -0
  451. package/dist/types/components/bs-side-panel/bs-side-panel.d.ts +67 -0
  452. package/dist/types/components/bs-side-panel/bs-side-panel.stories.d.ts +14 -0
  453. package/dist/types/components/bs-skeleton/bs-skeleton.cmp.test.d.ts +1 -0
  454. package/dist/types/components/bs-skeleton/bs-skeleton.d.ts +44 -0
  455. package/dist/types/components/bs-skeleton/bs-skeleton.stories.d.ts +17 -0
  456. package/dist/types/components/bs-slider/bs-slider.d.ts +4 -0
  457. package/dist/types/components/bs-spinner/bs-spinner.cmp.test.d.ts +1 -0
  458. package/dist/types/components/bs-spinner/bs-spinner.d.ts +32 -0
  459. package/dist/types/components/bs-spinner/bs-spinner.stories.d.ts +12 -0
  460. package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +4 -0
  461. package/dist/types/components/bs-toast/bs-toast.d.ts +2 -0
  462. package/dist/types/components/bs-tooltip-trigger/bs-tooltip-trigger.cmp.test.d.ts +1 -0
  463. package/dist/types/components/bs-tooltip-trigger/bs-tooltip-trigger.d.ts +35 -0
  464. package/dist/types/components/bs-tooltip-trigger/bs-tooltip-trigger.stories.d.ts +10 -0
  465. package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.d.ts +6 -0
  466. package/dist/types/components.d.ts +1778 -38
  467. package/dist/types/global/brand-theming.cmp.test.d.ts +1 -0
  468. package/package.json +21 -5
  469. package/reference.d.ts +242 -0
  470. package/reference.json +4176 -0
  471. package/reference.mjs +2 -0
  472. package/tailwind-preset.cjs +36 -0
  473. package/testing/vitest-setup.mjs +41 -0
  474. package/dist/brandsync-wc/p-09cbf05b.entry.js +0 -1
  475. package/dist/brandsync-wc/p-0f8cd2e8.entry.js +0 -1
  476. package/dist/brandsync-wc/p-1261f0b0.entry.js +0 -1
  477. package/dist/brandsync-wc/p-20030f4d.entry.js +0 -1
  478. package/dist/brandsync-wc/p-22f8201a.entry.js +0 -1
  479. package/dist/brandsync-wc/p-34e5feaf.entry.js +0 -1
  480. package/dist/brandsync-wc/p-452f9c1c.entry.js +0 -1
  481. package/dist/brandsync-wc/p-6a696161.entry.js +0 -1
  482. package/dist/brandsync-wc/p-6c6cdf77.entry.js +0 -1
  483. package/dist/brandsync-wc/p-6e735e37.entry.js +0 -1
  484. package/dist/brandsync-wc/p-73f214ed.entry.js +0 -1
  485. package/dist/brandsync-wc/p-823ab3b2.entry.js +0 -1
  486. package/dist/brandsync-wc/p-DqQRXQMx.js +0 -3
  487. package/dist/brandsync-wc/p-b84366a7.entry.js +0 -1
  488. package/dist/brandsync-wc/p-b8d2ce91.entry.js +0 -1
  489. package/dist/brandsync-wc/p-b9a4042e.entry.js +0 -1
  490. package/dist/brandsync-wc/p-d754ee13.entry.js +0 -1
  491. package/dist/brandsync-wc/p-d75f3f87.entry.js +0 -1
  492. package/dist/brandsync-wc/p-d8b29a53.entry.js +0 -1
  493. package/dist/brandsync-wc/p-f7d15fbe.entry.js +0 -1
  494. package/dist/cjs/index-tFJjflK5.js +0 -1863
  495. package/dist/components/p-BGW5q5LZ.js +0 -1
  496. package/dist/components/p-BZ3M4lOU.js +0 -1
  497. package/dist/components/p-CVrEuVFo.js +0 -1
  498. package/dist/components/p-CeUK3n7D.js +0 -1
  499. package/dist/esm/index-DqQRXQMx.js +0 -1853
@@ -55,6 +55,28 @@ export class BsChatbotResponseAction {
55
55
  * `bsMenuOpen` for the consumer to react to.
56
56
  */
57
57
  menuOpen = false;
58
+ /** Marks the response as liked: sets `aria-pressed` on the Like button and applies the pressed
59
+ * background. Consumer-controlled -- the component never toggles it itself. */
60
+ liked = false;
61
+ /** Marks the response as disliked: sets `aria-pressed` on the Dislike button and applies the
62
+ * pressed background. Consumer-controlled -- the component never toggles it itself. */
63
+ disliked = false;
64
+ /** Removes the "Regenerate" button from the DOM. */
65
+ hideRegenerate = false;
66
+ /** Accessible name (and visible text, where applicable) of the Like button. */
67
+ likeLabel = 'Like';
68
+ /** Accessible name of the Dislike button. */
69
+ dislikeLabel = 'Dislike';
70
+ /** Accessible name of the Copy button. */
71
+ copyLabel = 'Copy';
72
+ /** Accessible name of the Regenerate button. */
73
+ regenerateLabel = 'Regenerate';
74
+ /** Accessible name of the "More options" button. */
75
+ menuLabel = 'More options';
76
+ /** Label for a single source; rendered as "1 {sourceLabel}". */
77
+ sourceLabel = 'source';
78
+ /** Label for multiple sources; rendered as "N {sourcesLabel}". */
79
+ sourcesLabel = 'sources';
58
80
  /** Fires when the "Like" button is clicked. */
59
81
  bsLike;
60
82
  /** Fires when the "Dislike" button is clicked. */
@@ -105,7 +127,7 @@ export class BsChatbotResponseAction {
105
127
  };
106
128
  render() {
107
129
  const hasSources = !!this.sourcesCount && this.sourcesCount > 0;
108
- return (h("div", { key: '227d45ac6fa99d0c5315d765327c02ba0f0ec103', class: "bs-chatbot-response-action" }, h("button", { key: '19db04d45fbe745bd4e80264c9f8e612ed03d411', type: "button", part: "like", class: "bs-chatbot-response-action__button", "aria-label": "Like", onClick: this.onLikeClick }, h("slot", { key: '034deacf77f82cb9b521db16be095b78522ee895', name: "like-icon" }, h(ThumbsUpIcon, { key: 'cd4d70ed2ee5d4be7916ba7f11b725f63bc29204' }))), h("button", { key: '380f16ac09380b76b7a931a7397bca0c8506207f', type: "button", part: "dislike", class: "bs-chatbot-response-action__button", "aria-label": "Dislike", onClick: this.onDislikeClick }, h("slot", { key: '7f1ecd578a69c138a8b44c360d371e33bd74e4a2', name: "dislike-icon" }, h(ThumbsDownIcon, { key: 'b196af3aee600a21b5d1bf53244888c690ba0451' }))), h("button", { key: '82739cc554821af33042f4620bcd6bbcbd96e517', type: "button", part: "copy", class: "bs-chatbot-response-action__button", "aria-label": "Copy", onClick: this.onCopyClick }, h("slot", { key: 'd4b9981fb67e317a6cee54b4ef17a68fe12d7115', name: "copy-icon" }, h(CopyIcon, { key: '7ca4e99ae3f3e418a0882fcbb663dd819e4582cf' }))), h("button", { key: '0b32cb3292ebd4e75ce8a3eb418f5d5a2ab191dc', type: "button", part: "regenerate", class: "bs-chatbot-response-action__button", "aria-label": "Regenerate", onClick: this.onRegenerateClick }, h("slot", { key: 'ede5d996bd1e6e5fe260df4734a5749b957c6455', name: "regenerate-icon" }, h(RegenerateIcon, { key: '12ff8d4527153fa65ba5e7de866758e9fe21dece' }))), h("div", { key: '03f207b3d016b114ef2d4337e9ed1468da63e3f7', class: "bs-chatbot-response-action__menu-wrapper" }, h("button", { key: '2e4745ace0e6d220998b17265902d2663b63e369', type: "button", part: "menu", class: "bs-chatbot-response-action__button", "aria-label": "More options", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.onMenuClick }, h("slot", { key: 'fb4d12abae8d01bfc8ff0f4eb3f3888eb2c5a78e', name: "menu-icon" }, h(MenuIcon, { key: '5cd60593c9bb37fdb0ecb09d95cc1d39056cf826' }))), this.menuOpen && (h("div", { key: '33bb00b251c3aef1af17854690c30b8b27e01da1', class: "bs-chatbot-response-action__menu-popup" }, h("slot", { key: 'cd848943f1c881c95a14c54f8ef01e4b0182c629', name: "menu" })))), hasSources && (h("button", { key: 'b6493094208f1716aebacb63ca6b2c0139ce34ff', type: "button", part: "sources", class: "bs-chatbot-response-action__sources", onClick: this.onSourcesClick }, h("slot", { key: 'dbec7bbc889f52b76b914fa5a7c19cd378829345', name: "sources-icon" }, h(SourcesIcon, { key: '0af7d81f2f9328f380a1ecf17f0e453243e0ae8f' })), h("span", { key: 'f5247563134eb5a3932110c1191edf51ef8c2f69', class: "bs-chatbot-response-action__sources-label" }, this.sourcesCount, " ", this.sourcesCount === 1 ? 'source' : 'sources')))));
130
+ return (h("div", { key: 'becd86515e3d17b3f9537aa4c430e18344145d0a', class: "bs-chatbot-response-action" }, h("button", { key: '68eacc1630c68821ceeb74bbb56771368ed4505e', type: "button", part: "like", class: "bs-chatbot-response-action__button", "aria-label": this.likeLabel, "aria-pressed": this.liked ? 'true' : 'false', onClick: this.onLikeClick }, h("slot", { key: '5bd8fa5b5e39eca83b22960eff8c6ba6a86df8e0', name: "like-icon" }, h(ThumbsUpIcon, { key: '64ebfd90363e3dccd041d48a0a45b0fa360d69f8' }))), h("button", { key: '88017910f984d8dc5ba1c07c068b18199572eb18', type: "button", part: "dislike", class: "bs-chatbot-response-action__button", "aria-label": this.dislikeLabel, "aria-pressed": this.disliked ? 'true' : 'false', onClick: this.onDislikeClick }, h("slot", { key: '8fcc3cd275c7df3a211c74ab64ec5ce08b3cf3eb', name: "dislike-icon" }, h(ThumbsDownIcon, { key: '42c0a60df9cfa91d77db1ef884246e41b51e6e79' }))), h("button", { key: '5bafab1582b9955d27af9bce9ac5855d24a80361', type: "button", part: "copy", class: "bs-chatbot-response-action__button", "aria-label": this.copyLabel, onClick: this.onCopyClick }, h("slot", { key: 'f44f5e4bb9fa39b799c887a2cf930b19cfd29629', name: "copy-icon" }, h(CopyIcon, { key: '37634487931a02c38b636d50d794b2033de17b8b' }))), !this.hideRegenerate && (h("button", { key: '55c4a0fccce0d6c7b05729b79f379a3e594df32e', type: "button", part: "regenerate", class: "bs-chatbot-response-action__button", "aria-label": this.regenerateLabel, onClick: this.onRegenerateClick }, h("slot", { key: '9d0b6d47287673fad41b41e2be76938394f5600c', name: "regenerate-icon" }, h(RegenerateIcon, { key: 'adc3c8e19c66cabff0ceb827ed66ede9e5da0c11' })))), h("div", { key: '6587bcf0dc88be190a9ba49a6b07c1cc839985ff', class: "bs-chatbot-response-action__menu-wrapper" }, h("button", { key: '14c4f84cb4a01138fb35e828f2a7491c540d5a3d', type: "button", part: "menu", class: "bs-chatbot-response-action__button", "aria-label": this.menuLabel, "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.onMenuClick }, h("slot", { key: 'b4f7d18ed92428af073801e915c323c8b7d0013b', name: "menu-icon" }, h(MenuIcon, { key: 'cbb4b6116a8ab8138beaa2e4f5ebffbd7f977c72' }))), this.menuOpen && (h("div", { key: '418743486b5e705addb0a4dab51e3541f9d12a89', class: "bs-chatbot-response-action__menu-popup" }, h("slot", { key: '20d3942ddb50b91bb98e5ad17bda061a3e9f78e0', name: "menu" })))), hasSources && (h("button", { key: 'e9d71089a12893f16bc21f3d018ec6addf692f01', type: "button", part: "sources", class: "bs-chatbot-response-action__sources", onClick: this.onSourcesClick }, h("slot", { key: '967727f395a15782f289c897f1844023fe4d42fc', name: "sources-icon" }, h(SourcesIcon, { key: '9ae7096801c6bc03f507b7e8551b2ccd2d199831' })), h("span", { key: '1c0d01ff699ec23b10cdaab3707805dd221b0da4', class: "bs-chatbot-response-action__sources-label" }, this.sourcesCount, " ", this.sourcesCount === 1 ? this.sourceLabel : this.sourcesLabel)))));
109
131
  }
110
132
  static get is() { return "bs-chatbot-response-action"; }
111
133
  static get encapsulation() { return "shadow"; }
@@ -159,6 +181,206 @@ export class BsChatbotResponseAction {
159
181
  "reflect": true,
160
182
  "attribute": "menu-open",
161
183
  "defaultValue": "false"
184
+ },
185
+ "liked": {
186
+ "type": "boolean",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "boolean",
190
+ "resolved": "boolean",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Marks the response as liked: sets `aria-pressed` on the Like button and applies the pressed\nbackground. Consumer-controlled -- the component never toggles it itself."
198
+ },
199
+ "getter": false,
200
+ "setter": false,
201
+ "reflect": true,
202
+ "attribute": "liked",
203
+ "defaultValue": "false"
204
+ },
205
+ "disliked": {
206
+ "type": "boolean",
207
+ "mutable": false,
208
+ "complexType": {
209
+ "original": "boolean",
210
+ "resolved": "boolean",
211
+ "references": {}
212
+ },
213
+ "required": false,
214
+ "optional": false,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": "Marks the response as disliked: sets `aria-pressed` on the Dislike button and applies the\npressed background. Consumer-controlled -- the component never toggles it itself."
218
+ },
219
+ "getter": false,
220
+ "setter": false,
221
+ "reflect": true,
222
+ "attribute": "disliked",
223
+ "defaultValue": "false"
224
+ },
225
+ "hideRegenerate": {
226
+ "type": "boolean",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "boolean",
230
+ "resolved": "boolean",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Removes the \"Regenerate\" button from the DOM."
238
+ },
239
+ "getter": false,
240
+ "setter": false,
241
+ "reflect": false,
242
+ "attribute": "hide-regenerate",
243
+ "defaultValue": "false"
244
+ },
245
+ "likeLabel": {
246
+ "type": "string",
247
+ "mutable": false,
248
+ "complexType": {
249
+ "original": "string",
250
+ "resolved": "string",
251
+ "references": {}
252
+ },
253
+ "required": false,
254
+ "optional": false,
255
+ "docs": {
256
+ "tags": [],
257
+ "text": "Accessible name (and visible text, where applicable) of the Like button."
258
+ },
259
+ "getter": false,
260
+ "setter": false,
261
+ "reflect": false,
262
+ "attribute": "like-label",
263
+ "defaultValue": "'Like'"
264
+ },
265
+ "dislikeLabel": {
266
+ "type": "string",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "string",
270
+ "resolved": "string",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": false,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": "Accessible name of the Dislike button."
278
+ },
279
+ "getter": false,
280
+ "setter": false,
281
+ "reflect": false,
282
+ "attribute": "dislike-label",
283
+ "defaultValue": "'Dislike'"
284
+ },
285
+ "copyLabel": {
286
+ "type": "string",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string",
290
+ "resolved": "string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "Accessible name of the Copy button."
298
+ },
299
+ "getter": false,
300
+ "setter": false,
301
+ "reflect": false,
302
+ "attribute": "copy-label",
303
+ "defaultValue": "'Copy'"
304
+ },
305
+ "regenerateLabel": {
306
+ "type": "string",
307
+ "mutable": false,
308
+ "complexType": {
309
+ "original": "string",
310
+ "resolved": "string",
311
+ "references": {}
312
+ },
313
+ "required": false,
314
+ "optional": false,
315
+ "docs": {
316
+ "tags": [],
317
+ "text": "Accessible name of the Regenerate button."
318
+ },
319
+ "getter": false,
320
+ "setter": false,
321
+ "reflect": false,
322
+ "attribute": "regenerate-label",
323
+ "defaultValue": "'Regenerate'"
324
+ },
325
+ "menuLabel": {
326
+ "type": "string",
327
+ "mutable": false,
328
+ "complexType": {
329
+ "original": "string",
330
+ "resolved": "string",
331
+ "references": {}
332
+ },
333
+ "required": false,
334
+ "optional": false,
335
+ "docs": {
336
+ "tags": [],
337
+ "text": "Accessible name of the \"More options\" button."
338
+ },
339
+ "getter": false,
340
+ "setter": false,
341
+ "reflect": false,
342
+ "attribute": "menu-label",
343
+ "defaultValue": "'More options'"
344
+ },
345
+ "sourceLabel": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "string",
350
+ "resolved": "string",
351
+ "references": {}
352
+ },
353
+ "required": false,
354
+ "optional": false,
355
+ "docs": {
356
+ "tags": [],
357
+ "text": "Label for a single source; rendered as \"1 {sourceLabel}\"."
358
+ },
359
+ "getter": false,
360
+ "setter": false,
361
+ "reflect": false,
362
+ "attribute": "source-label",
363
+ "defaultValue": "'source'"
364
+ },
365
+ "sourcesLabel": {
366
+ "type": "string",
367
+ "mutable": false,
368
+ "complexType": {
369
+ "original": "string",
370
+ "resolved": "string",
371
+ "references": {}
372
+ },
373
+ "required": false,
374
+ "optional": false,
375
+ "docs": {
376
+ "tags": [],
377
+ "text": "Label for multiple sources; rendered as \"N {sourcesLabel}\"."
378
+ },
379
+ "getter": false,
380
+ "setter": false,
381
+ "reflect": false,
382
+ "attribute": "sources-label",
383
+ "defaultValue": "'sources'"
162
384
  }
163
385
  };
164
386
  }
@@ -44,6 +44,8 @@ export class BsChatbotSourcesDrawer {
44
44
  * Overrides the auto-detected count badge. By default the badge reflects the number of slotted
45
45
  * `bs-source-link` children, so most consumers don't need to set this.
46
46
  */
47
+ /** Accessible name of the collapse button. */
48
+ collapseLabel = 'Collapse sources';
47
49
  count;
48
50
  /** Fires when the collapse chevron is clicked. The consuming app owns actually hiding the panel. */
49
51
  bsCollapse;
@@ -57,7 +59,7 @@ export class BsChatbotSourcesDrawer {
57
59
  };
58
60
  render() {
59
61
  const displayCount = this.count ?? this.slottedCount;
60
- return (h("div", { key: '8d3a64121acfc35e2be62baf23ff3630a9193617', class: "bs-chatbot-sources-drawer", role: "region", "aria-label": this.heading }, h("div", { key: '384e3cb1c4bca85727d6f21260490b5119f29db5', class: "bs-chatbot-sources-drawer__header" }, h("div", { key: 'bd83473b5787fd2ca7a143c600de6fe74625ee80', class: "bs-chatbot-sources-drawer__title-group" }, h("h2", { key: '0c9285fa51de5f73f89c7d67786c5f4b5bde55ed', part: "heading", class: "bs-chatbot-sources-drawer__heading" }, this.heading), displayCount > 0 && (h("span", { key: 'a3725d4b2798e07972335ee7a8024cd2f8e73f99', part: "count", class: "bs-chatbot-sources-drawer__count" }, displayCount))), h("button", { key: 'afb5efa705e54a464e3237475a90987d7da5f506', type: "button", part: "collapse", class: "bs-chatbot-sources-drawer__collapse", "aria-label": "Collapse sources", onClick: this.onCollapseClick }, h("slot", { key: '8b886a8b6c2f60a4ca07978a8367f3366455bedc', name: "collapse-icon" }, h(CaretRightIcon, { key: 'bea232b218eca7f11c43a5c8884f78b0d5569cda' })))), h("div", { key: 'a417a26fb970a77002a56b7bd91645d18793ae69', part: "list", class: "bs-chatbot-sources-drawer__list" }, h("slot", { key: '018bf6454c7020b3d14122c1b9b86ae11072f1a7', onSlotchange: this.onSlotchange }))));
62
+ return (h("div", { key: 'a90584654ac6f07fe15ad66232e0ae4d5cb42808', class: "bs-chatbot-sources-drawer", role: "region", "aria-label": this.heading }, h("div", { key: '7729f46d857505f2a4bd99544668691dbd63b07d', class: "bs-chatbot-sources-drawer__header" }, h("div", { key: 'b0720fb68d543c3533498c7ba79be4e7b27cb46c', class: "bs-chatbot-sources-drawer__title-group" }, h("h2", { key: '6599f959e109128ecde454a294310a797e9195ef', part: "heading", class: "bs-chatbot-sources-drawer__heading" }, this.heading), displayCount > 0 && (h("span", { key: '8f9dca16aac6d904fccd28bcef26fef69b53184e', part: "count", class: "bs-chatbot-sources-drawer__count" }, displayCount))), h("button", { key: '034cb77b074513f8ca45c8609a4c40adea1d3c52', type: "button", part: "collapse", class: "bs-chatbot-sources-drawer__collapse", "aria-label": this.collapseLabel, onClick: this.onCollapseClick }, h("slot", { key: '2e54180b06bd3a648385fe5904be2985208e6367', name: "collapse-icon" }, h(CaretRightIcon, { key: 'cc34b3da07424488020fb225fccb154e29a18761' })))), h("div", { key: '39695ad1b0e5072951e1ca4c13ebe85f37cad97f', part: "list", class: "bs-chatbot-sources-drawer__list" }, h("slot", { key: '5e35adc3c78d1f36a44735ae2aa5a420f82a53be', onSlotchange: this.onSlotchange }))));
61
63
  }
62
64
  static get is() { return "bs-chatbot-sources-drawer"; }
63
65
  static get encapsulation() { return "shadow"; }
@@ -93,6 +95,26 @@ export class BsChatbotSourcesDrawer {
93
95
  "attribute": "heading",
94
96
  "defaultValue": "'Sources'"
95
97
  },
98
+ "collapseLabel": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "string",
103
+ "resolved": "string",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Accessible name of the collapse button."
111
+ },
112
+ "getter": false,
113
+ "setter": false,
114
+ "reflect": false,
115
+ "attribute": "collapse-label",
116
+ "defaultValue": "'Collapse sources'"
117
+ },
96
118
  "count": {
97
119
  "type": "number",
98
120
  "mutable": false,
@@ -105,7 +127,7 @@ export class BsChatbotSourcesDrawer {
105
127
  "optional": true,
106
128
  "docs": {
107
129
  "tags": [],
108
- "text": "Overrides the auto-detected count badge. By default the badge reflects the number of slotted\n`bs-source-link` children, so most consumers don't need to set this."
130
+ "text": ""
109
131
  },
110
132
  "getter": false,
111
133
  "setter": false,
@@ -4,10 +4,7 @@
4
4
  --bs-chatbot-suggestion-button-border-color: var(--bs-border-primary);
5
5
  --bs-chatbot-suggestion-button-bg-default: var(--bs-color-primary-container);
6
6
  --bs-chatbot-suggestion-button-bg-hover: var(--bs-color-primary-container-hover);
7
- /* No pre-built semantic "container-pressed" token matches this tonal button's lighter pressed
8
- * shade progression (50 -> 100 -> 200) -- alias the primitive directly, same precedent
9
- * documented in bs-button.css for its subtle/outlined/success/warning/info variants. */
10
- --bs-chatbot-suggestion-button-bg-pressed: var(--bs-brand-200);
7
+ --bs-chatbot-suggestion-button-bg-pressed: var(--bs-color-primary-container-pressed);
11
8
  --bs-chatbot-suggestion-button-bg-focus: var(--bs-color-primary-container-hover);
12
9
  --bs-chatbot-suggestion-button-text-default: var(--bs-text-action);
13
10
  --bs-chatbot-suggestion-button-text-hover: var(--bs-text-action-hover);
@@ -22,11 +22,8 @@ import { h } from "@stencil/core";
22
22
  * Aliased to `--bs-color-primary-container`.
23
23
  * @prop --bs-chatbot-suggestion-button-bg-hover - Background on hover. Aliased to
24
24
  * `--bs-color-primary-container-hover`.
25
- * @prop --bs-chatbot-suggestion-button-bg-pressed - Background when pressed. Aliased directly to
26
- * the primitive `--bs-brand-200` -- there's no pre-built semantic "container-pressed" token
27
- * matching this tonal button's lighter pressed shade progression (50 -> 100 -> 200), so this
28
- * component aliases one locally (same situation `bs-button.css` documents for its
29
- * subtle/outlined/success/warning/info variants).
25
+ * @prop --bs-chatbot-suggestion-button-bg-pressed - Background when pressed. Aliased to
26
+ * `--bs-color-primary-container-pressed`.
30
27
  * @prop --bs-chatbot-suggestion-button-bg-focus - Background when focused. Aliased to
31
28
  * `--bs-color-primary-container-hover` (same as hover).
32
29
  * @prop --bs-chatbot-suggestion-button-text-default - Text color in the default state. Aliased to
@@ -45,7 +42,7 @@ export class BsChatbotSuggestionButton {
45
42
  this.bsSelect.emit();
46
43
  };
47
44
  render() {
48
- return (h("button", { key: '159fda3cff7fa1295b9b9800d083706f282bbd0d', type: "button", part: "button", class: "bs-chatbot-suggestion-button", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: 'a26be73a49a140f2e3017ff91a0727f83e00b67c' })));
45
+ return (h("button", { key: '04551a15240fcab199c0b4aa261cf5ef0c9b3f42', type: "button", part: "button", class: "bs-chatbot-suggestion-button", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '7d743c8dfb4f434f15e47a0d7d2c1a48c5aedd70' })));
49
46
  }
50
47
  static get is() { return "bs-chatbot-suggestion-button"; }
51
48
  static get encapsulation() { return "shadow"; }
@@ -32,8 +32,10 @@ export class BsCheckboxSkeleton {
32
32
  /** Sizing scale, matching the `bs-checkbox` size it stands in for. Defaults to `lg`, the same
33
33
  * (unusual) default `bs-checkbox` itself uses. */
34
34
  size = 'lg';
35
+ /** Accessible name announced for the loading placeholder. */
36
+ loadingLabel = 'Loading';
35
37
  render() {
36
- return (h("span", { key: '26d1c09678d3385cda9494440b116c190c0431cd', part: "container", class: "bs-checkbox-skeleton", role: "status", "aria-label": "Loading" }, h("span", { key: '62e597f01d199aadbbd2e725753ab82377c9b685', part: "box", class: `bs-checkbox-skeleton__box bs-checkbox-skeleton__box--${this.size}` }), h("span", { key: 'a36053e0d189edaae49fcf9340f28f70ed50a28b', part: "label", class: "bs-checkbox-skeleton__label" })));
38
+ return (h("span", { key: '3915a978ff6205ba48237d684209ee01b948392a', part: "container", class: "bs-checkbox-skeleton", role: "status", "aria-label": this.loadingLabel }, h("span", { key: 'f23cbc29d9e2fabf49584897c81ed481e7e2f753', part: "box", class: `bs-checkbox-skeleton__box bs-checkbox-skeleton__box--${this.size}` }), h("span", { key: '1b317811cc4eff44dcbef6c78a97b0f7f2efaddd', part: "label", class: "bs-checkbox-skeleton__label" })));
37
39
  }
38
40
  static get is() { return "bs-checkbox-skeleton"; }
39
41
  static get encapsulation() { return "shadow"; }
@@ -75,6 +77,26 @@ export class BsCheckboxSkeleton {
75
77
  "reflect": false,
76
78
  "attribute": "size",
77
79
  "defaultValue": "'lg'"
80
+ },
81
+ "loadingLabel": {
82
+ "type": "string",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "string",
86
+ "resolved": "string",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Accessible name announced for the loading placeholder."
94
+ },
95
+ "getter": false,
96
+ "setter": false,
97
+ "reflect": false,
98
+ "attribute": "loading-label",
99
+ "defaultValue": "'Loading'"
78
100
  }
79
101
  };
80
102
  }
@@ -27,6 +27,8 @@ export class BsChipInput {
27
27
  /** Sizing scale. Controls the chip's height only -- icon size, gap, and font size stay
28
28
  * constant across sizes, matching the Figma spec exactly. */
29
29
  size = 'lg';
30
+ /** Prefix of the remove button's accessible name ("Remove {label}"). */
31
+ removeLabel = 'Remove';
30
32
  /** Whether the chip reads as toggled on. Mutable so clicking the body toggles directly, and
31
33
  * reflected so consumers can target `bs-chip-input[selected]` via CSS. */
32
34
  selected = false;
@@ -77,7 +79,7 @@ export class BsChipInput {
77
79
  };
78
80
  render() {
79
81
  const paddingVariant = this.hasIcon ? 'icon' : 'text';
80
- return (h(Host, { key: 'bb8adc7ac62df562155d169a119d0bf3100f4c9f', class: `bs-chip-input bs-chip-input--${this.size} bs-chip-input--${paddingVariant}` }, h("button", { key: '92a509d98f93873738bed6db0fe0d5dc5bb9a7e4', type: "button", part: "body", class: "bs-chip-input__body", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.onBodyClick }, h("span", { key: '179d8713dd8be5a8340848eddb1de24ce7561d09', part: "icon", class: `bs-chip-input__icon ${this.hasIcon ? 'bs-chip-input__icon--visible' : ''}` }, h("slot", { key: '0b47b10606ef75c91b5374dc0032772993419ede', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'c2b678ecd9863d53c5ab52bd257122f298aafa62', part: "label", class: "bs-chip-input__label" }, h("slot", { key: '806fb8ea8e284a80d5faeef4905d1758c66f3ef0', onSlotchange: this.onLabelSlotchange }))), h("button", { key: 'a61df73d4a372dd0dce8b045feb6180853c209d2', type: "button", part: "remove", class: "bs-chip-input__remove", disabled: this.disabled, "aria-label": `Remove ${this.labelText}`, onClick: this.onRemoveClick }, h(CloseIcon, { key: '6e14762d31caae9473603449dd47a158859d28f6' }))));
82
+ return (h(Host, { key: '1e44e8c6c324502677a711e9efdeea812181e93d', class: `bs-chip-input bs-chip-input--${this.size} bs-chip-input--${paddingVariant}` }, h("button", { key: '7c698a6cfbe6ca8ff1215edeb59d7a58071ec29e', type: "button", part: "body", class: "bs-chip-input__body", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.onBodyClick }, h("span", { key: '159334959b3da3665fb6f4a2930c15fc1da028ad', part: "icon", class: `bs-chip-input__icon ${this.hasIcon ? 'bs-chip-input__icon--visible' : ''}` }, h("slot", { key: '0f12a8dbf2b17578ec1446032fa6b795f6aac9f4', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'd8236eaa237e3d204f721274551c0d50ce6b1f9a', part: "label", class: "bs-chip-input__label" }, h("slot", { key: '4872dcc68aa9a204801f10415fd1b3bc31db0c2a', onSlotchange: this.onLabelSlotchange }))), h("button", { key: 'ac930ef1166ff21f889641cf0644c20e77f92196', type: "button", part: "remove", class: "bs-chip-input__remove", disabled: this.disabled, "aria-label": `${this.removeLabel} ${this.labelText}`, onClick: this.onRemoveClick }, h(CloseIcon, { key: 'ba26dff61400df054f3b2d73526e08d02734ba07' }))));
81
83
  }
82
84
  static get is() { return "bs-chip-input"; }
83
85
  static get encapsulation() { return "shadow"; }
@@ -120,6 +122,26 @@ export class BsChipInput {
120
122
  "attribute": "size",
121
123
  "defaultValue": "'lg'"
122
124
  },
125
+ "removeLabel": {
126
+ "type": "string",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "string",
130
+ "resolved": "string",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "Prefix of the remove button's accessible name (\"Remove {label}\")."
138
+ },
139
+ "getter": false,
140
+ "setter": false,
141
+ "reflect": false,
142
+ "attribute": "remove-label",
143
+ "defaultValue": "'Remove'"
144
+ },
123
145
  "selected": {
124
146
  "type": "boolean",
125
147
  "mutable": true,
@@ -0,0 +1,34 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ describe('bs-citation-preview', () => {
3
+ it('composes bs-card and bs-source-link with the file and source names', async () => {
4
+ const { root } = await render(h("bs-citation-preview", { "file-name": "report.pdf", "source-name": "HoltePortalen" }));
5
+ expect(root.shadowRoot.querySelector('bs-card[part="container"]')).not.toBeNull();
6
+ const link = root.shadowRoot.querySelector('bs-source-link');
7
+ expect(link.fileName).toBe('report.pdf');
8
+ expect(link.sourceName).toBe('HoltePortalen');
9
+ });
10
+ it('renders the page label when page is set, and omits it otherwise', async () => {
11
+ const { root, waitForChanges } = await render(h("bs-citation-preview", { page: 4 }));
12
+ expect(root.shadowRoot.querySelector('[part="page"]')).toHaveTextContent('Page 4');
13
+ root.page = undefined;
14
+ await waitForChanges();
15
+ expect(root.shadowRoot.querySelector('[part="page"]')).toBeNull();
16
+ });
17
+ it('exposes the snippet and footer slots', async () => {
18
+ const { root } = await render(h("bs-citation-preview", null, h("p", null, "Quoted text")));
19
+ expect(root.shadowRoot.querySelector('[part="snippet"] slot:not([name])')).not.toBeNull();
20
+ expect(root.shadowRoot.querySelector('slot[name="footer"]')).not.toBeNull();
21
+ });
22
+ it('passes href to the source link', async () => {
23
+ const { root } = await render(h("bs-citation-preview", { href: "https://example.com/a.pdf" }));
24
+ const link = root.shadowRoot.querySelector('bs-source-link');
25
+ expect(link.href).toBe('https://example.com/a.pdf');
26
+ });
27
+ it('re-emits bsOpen from the header', async () => {
28
+ const { root, spyOnEvent } = await render(h("bs-citation-preview", null));
29
+ const spy = spyOnEvent('bsOpen');
30
+ const link = root.shadowRoot.querySelector('bs-source-link');
31
+ link.dispatchEvent(new CustomEvent('bsOpen'));
32
+ expect(spy).toHaveReceivedEventTimes(1);
33
+ });
34
+ });
@@ -0,0 +1,36 @@
1
+ :host {
2
+ display: block;
3
+ --bs-citation-preview-gap: var(--bs-spacing-100);
4
+ --bs-citation-preview-snippet-color: var(--bs-text-default);
5
+ --bs-citation-preview-snippet-bg: var(--bs-surface-base);
6
+ --bs-citation-preview-snippet-radius: var(--bs-border-radius-100);
7
+ --bs-citation-preview-page-color: var(--bs-text-secondary);
8
+ }
9
+
10
+ .bs-citation-preview {
11
+ --bs-card-border-width: var(--bs-border-width-thin);
12
+ --bs-card-border-color: var(--bs-border-default);
13
+ --bs-card-padding: var(--bs-spacing-100);
14
+ --bs-card-shadow: none;
15
+ }
16
+
17
+ .bs-citation-preview__body {
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: var(--bs-citation-preview-gap);
21
+ }
22
+
23
+ .bs-citation-preview__snippet {
24
+ padding: var(--bs-spacing-150);
25
+ border-radius: var(--bs-citation-preview-snippet-radius);
26
+ background: var(--bs-citation-preview-snippet-bg);
27
+ color: var(--bs-citation-preview-snippet-color);
28
+ font-size: var(--bs-font-size-sm);
29
+ line-height: var(--bs-line-height-normal);
30
+ }
31
+
32
+ .bs-citation-preview__page {
33
+ color: var(--bs-citation-preview-page-color);
34
+ font-size: var(--bs-font-size-sm);
35
+ line-height: var(--bs-line-height-normal);
36
+ }