@brandsync/wc 1.10.0 → 1.12.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 (443) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/custom-elements.json +8333 -4134
  3. package/dist/brandsync-wc/brandsync-wc.css +33 -0
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/{p-9f8852a0.entry.js → p-00a0d489.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-360452c2.entry.js → p-09435f41.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-dbcbe682.entry.js → p-09bc1923.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-1f7208cb.entry.js → p-09cbf05b.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-c99b6a66.entry.js → p-0b2d3b7e.entry.js} +1 -1
  10. package/dist/brandsync-wc/p-0b7c77c1.entry.js +1 -0
  11. package/dist/brandsync-wc/p-0ee4126c.entry.js +1 -0
  12. package/dist/brandsync-wc/{p-5f3cd501.entry.js → p-0f8cd2e8.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-1c0db4d6.entry.js → p-1261f0b0.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-b2074a32.entry.js → p-1978e63c.entry.js} +1 -1
  15. package/dist/brandsync-wc/p-1aab6d07.entry.js +1 -0
  16. package/dist/brandsync-wc/{p-96ed9386.entry.js → p-20030f4d.entry.js} +1 -1
  17. package/dist/brandsync-wc/p-2177042f.entry.js +1 -0
  18. package/dist/brandsync-wc/{p-a8e2a829.entry.js → p-2368a92e.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-2e958566.entry.js → p-247e36ad.entry.js} +1 -1
  20. package/dist/brandsync-wc/p-2497d128.entry.js +1 -0
  21. package/dist/brandsync-wc/{p-701ebf4a.entry.js → p-282ddbee.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-763876f5.entry.js → p-2f4e08e1.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-c3f72584.entry.js → p-34e5feaf.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-ea4e20ef.entry.js → p-39a26c64.entry.js} +1 -1
  25. package/dist/brandsync-wc/p-3a1af63a.entry.js +1 -0
  26. package/dist/brandsync-wc/{p-9f6fe37d.entry.js → p-3f09296a.entry.js} +1 -1
  27. package/dist/brandsync-wc/p-416322bd.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-f89de457.entry.js → p-452f9c1c.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-bbcc47b0.entry.js → p-491b51e6.entry.js} +1 -1
  30. package/dist/brandsync-wc/p-52cb2358.entry.js +1 -0
  31. package/dist/brandsync-wc/{p-daab6b22.entry.js → p-56c37e0a.entry.js} +1 -1
  32. package/dist/brandsync-wc/p-5ba90a13.entry.js +1 -0
  33. package/dist/brandsync-wc/{p-08c99a60.entry.js → p-617bd13a.entry.js} +1 -1
  34. package/dist/brandsync-wc/p-68fcd4a4.entry.js +1 -0
  35. package/dist/brandsync-wc/{p-9e88f19c.entry.js → p-69c0a85d.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-d3f44cb7.entry.js → p-6a696161.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-32cd69f1.entry.js → p-6c6cdf77.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-041776c0.entry.js → p-6e735e37.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-fc58c663.entry.js → p-73f214ed.entry.js} +1 -1
  40. package/dist/brandsync-wc/{p-be2c1740.entry.js → p-7796b93f.entry.js} +1 -1
  41. package/dist/brandsync-wc/p-78a69a59.entry.js +1 -0
  42. package/dist/brandsync-wc/{p-f370b8fa.entry.js → p-78f4fcf0.entry.js} +1 -1
  43. package/dist/brandsync-wc/p-7f954939.entry.js +1 -0
  44. package/dist/brandsync-wc/{p-835a8dc7.entry.js → p-81605b82.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-a71d2811.entry.js → p-823ab3b2.entry.js} +1 -1
  46. package/dist/brandsync-wc/{p-2181378f.entry.js → p-83c90489.entry.js} +1 -1
  47. package/dist/brandsync-wc/p-89099a39.entry.js +1 -0
  48. package/dist/brandsync-wc/{p-a92eec48.entry.js → p-89fabf27.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-AgoOSYvW.js → p-DqQRXQMx.js} +2 -2
  50. package/dist/brandsync-wc/{p-18c3c22c.entry.js → p-a9169157.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-301b2455.entry.js → p-b84366a7.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-a5feaad4.entry.js → p-b8d2ce91.entry.js} +1 -1
  53. package/dist/brandsync-wc/p-b9a4042e.entry.js +1 -0
  54. package/dist/brandsync-wc/{p-275072dd.entry.js → p-b9ccd9d1.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-61c1a2a3.entry.js → p-be3dd446.entry.js} +1 -1
  56. package/dist/brandsync-wc/{p-8eba7f90.entry.js → p-d754ee13.entry.js} +1 -1
  57. package/dist/brandsync-wc/{p-e9b43754.entry.js → p-d75f3f87.entry.js} +1 -1
  58. package/dist/brandsync-wc/{p-e8a5b8eb.entry.js → p-d8b29a53.entry.js} +1 -1
  59. package/dist/brandsync-wc/p-de110ad0.entry.js +1 -0
  60. package/dist/brandsync-wc/p-e2556b4e.entry.js +1 -0
  61. package/dist/brandsync-wc/{p-af2bf957.entry.js → p-e5daa6ca.entry.js} +1 -1
  62. package/dist/brandsync-wc/{p-0132a2d1.entry.js → p-f15d9524.entry.js} +1 -1
  63. package/dist/brandsync-wc/p-f5180578.entry.js +1 -0
  64. package/dist/brandsync-wc/{p-fd254972.entry.js → p-f7d15fbe.entry.js} +1 -1
  65. package/dist/brandsync-wc/{p-50a251a4.entry.js → p-fc069773.entry.js} +1 -1
  66. package/dist/brandsync-wc/p-fcee0dc4.entry.js +1 -0
  67. package/dist/cjs/brandsync-wc.cjs.js +2 -2
  68. package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
  69. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
  70. package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
  71. package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
  72. package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
  73. package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
  74. package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
  75. package/dist/cjs/bs-badge.cjs.entry.js +1 -1
  76. package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
  77. package/dist/cjs/bs-breadcrumb.cjs.entry.js +6 -3
  78. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
  79. package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
  80. package/dist/cjs/bs-button.cjs.entry.js +3 -3
  81. package/dist/cjs/bs-card.cjs.entry.js +3 -3
  82. package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
  83. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
  84. package/dist/cjs/bs-chatbot-header.cjs.entry.js +3 -3
  85. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
  86. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
  87. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
  88. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
  89. package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
  90. package/dist/cjs/bs-chip-filter.cjs.entry.js +1 -1
  91. package/dist/cjs/bs-chip-informative.cjs.entry.js +1 -1
  92. package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  94. package/dist/cjs/bs-composer.cjs.entry.js +2 -2
  95. package/dist/cjs/bs-cookie-consent.cjs.entry.js +186 -0
  96. package/dist/cjs/bs-data-table.cjs.entry.js +1 -1
  97. package/dist/cjs/bs-datepicker.cjs.entry.js +13 -9
  98. package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
  99. package/dist/cjs/bs-error-page.cjs.entry.js +103 -0
  100. package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
  101. package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
  102. package/dist/cjs/bs-icon-button.cjs.entry.js +2 -2
  103. package/dist/cjs/bs-icon-tile.cjs.entry.js +52 -0
  104. package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
  105. package/dist/cjs/{bs-input_2.cjs.entry.js → bs-input_3.cjs.entry.js} +42 -6
  106. package/dist/cjs/bs-logo.cjs.entry.js +1 -1
  107. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
  108. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +3 -3
  109. package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
  110. package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +161 -0
  111. package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
  112. package/dist/cjs/bs-product-tour.cjs.entry.js +78 -0
  113. package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
  114. package/dist/cjs/bs-progress.cjs.entry.js +3 -3
  115. package/dist/cjs/bs-qr-code.cjs.entry.js +148 -0
  116. package/dist/cjs/bs-radio.cjs.entry.js +2 -2
  117. package/dist/cjs/bs-session-timeout.cjs.entry.js +215 -0
  118. package/dist/cjs/bs-slider.cjs.entry.js +2 -2
  119. package/dist/cjs/bs-snackbar.cjs.entry.js +9 -3
  120. package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
  121. package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
  122. package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
  123. package/dist/cjs/bs-switch.cjs.entry.js +2 -2
  124. package/dist/cjs/bs-tab_3.cjs.entry.js +255 -0
  125. package/dist/cjs/bs-timepicker.cjs.entry.js +4 -4
  126. package/dist/cjs/bs-toast.cjs.entry.js +2 -2
  127. package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
  128. package/dist/cjs/bs-whats-new.cjs.entry.js +144 -0
  129. package/dist/cjs/{index-kk9YXF2S.js → index-tFJjflK5.js} +15 -3
  130. package/dist/cjs/loader.cjs.js +2 -2
  131. package/dist/collection/collection-manifest.json +9 -0
  132. package/dist/collection/components/bs-a11y.cmp.test.js +22 -0
  133. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  134. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  135. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  136. package/dist/collection/components/bs-attachment/bs-attachment.stories.js +4 -3
  137. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  138. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +6 -3
  139. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  140. package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +28 -0
  141. package/dist/collection/components/bs-button/bs-button/bs-button.css +8 -2
  142. package/dist/collection/components/bs-button/bs-button/bs-button.js +4 -1
  143. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  144. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  145. package/dist/collection/components/bs-card/bs-card.cmp.test.js +48 -0
  146. package/dist/collection/components/bs-card/bs-card.css +37 -16
  147. package/dist/collection/components/bs-card/bs-card.js +2 -2
  148. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  149. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.cmp.test.js +2 -2
  150. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +1 -1
  151. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  152. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  153. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  154. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  155. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  156. package/dist/collection/components/bs-composer/bs-composer.css +4 -2
  157. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.cmp.test.js +217 -0
  158. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.css +350 -0
  159. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.js +668 -0
  160. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.stories.js +103 -0
  161. package/dist/collection/components/bs-datepicker/bs-datepicker.cmp.test.js +9 -0
  162. package/dist/collection/components/bs-datepicker/bs-datepicker.css +21 -11
  163. package/dist/collection/components/bs-datepicker/bs-datepicker.js +13 -7
  164. package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +3 -2
  165. package/dist/collection/components/bs-error-page/bs-error-page.cmp.test.js +99 -0
  166. package/dist/collection/components/bs-error-page/bs-error-page.css +105 -0
  167. package/dist/collection/components/bs-error-page/bs-error-page.js +328 -0
  168. package/dist/collection/components/bs-error-page/bs-error-page.stories.js +57 -0
  169. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  170. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  171. package/dist/collection/components/bs-icon-tile/bs-icon-tile.cmp.test.js +175 -0
  172. package/dist/collection/components/bs-icon-tile/bs-icon-tile.css +112 -0
  173. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +158 -0
  174. package/dist/collection/components/bs-icon-tile/bs-icon-tile.stories.js +45 -0
  175. package/dist/collection/components/bs-input/bs-input.cmp.test.js +16 -2
  176. package/dist/collection/components/bs-input/bs-input.css +15 -23
  177. package/dist/collection/components/bs-input/bs-input.js +8 -4
  178. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  179. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  180. package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.js +280 -0
  181. package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.css +488 -0
  182. package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.js +674 -0
  183. package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.js +92 -0
  184. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  185. package/dist/collection/components/bs-product-tour/bs-product-tour.cmp.test.js +116 -0
  186. package/dist/collection/components/bs-product-tour/bs-product-tour.css +265 -0
  187. package/dist/collection/components/bs-product-tour/bs-product-tour.js +391 -0
  188. package/dist/collection/components/bs-product-tour/bs-product-tour.stories.js +68 -0
  189. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  190. package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +1 -1
  191. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  192. package/dist/collection/components/bs-qr-code/bs-qr-code.cmp.test.js +152 -0
  193. package/dist/collection/components/bs-qr-code/bs-qr-code.css +307 -0
  194. package/dist/collection/components/bs-qr-code/bs-qr-code.js +767 -0
  195. package/dist/collection/components/bs-qr-code/bs-qr-code.stories.js +99 -0
  196. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  197. package/dist/collection/components/bs-session-timeout/bs-session-timeout.cmp.test.js +202 -0
  198. package/dist/collection/components/bs-session-timeout/bs-session-timeout.css +239 -0
  199. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +772 -0
  200. package/dist/collection/components/bs-session-timeout/bs-session-timeout.stories.js +88 -0
  201. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  202. package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +20 -0
  203. package/dist/collection/components/bs-snackbar/bs-snackbar.css +6 -4
  204. package/dist/collection/components/bs-snackbar/bs-snackbar.js +53 -1
  205. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  206. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  207. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  208. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  209. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  210. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  211. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  212. package/dist/collection/components/bs-timepicker/bs-timepicker.css +15 -11
  213. package/dist/collection/components/bs-timepicker/bs-timepicker.js +4 -2
  214. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  215. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  216. package/dist/collection/components/bs-whats-new/bs-whats-new.cmp.test.js +200 -0
  217. package/dist/collection/components/bs-whats-new/bs-whats-new.css +315 -0
  218. package/dist/collection/components/bs-whats-new/bs-whats-new.js +790 -0
  219. package/dist/collection/components/bs-whats-new/bs-whats-new.stories.js +105 -0
  220. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.js +79 -0
  221. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.css +131 -0
  222. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +295 -0
  223. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.stories.js +67 -0
  224. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  225. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  226. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  227. package/dist/components/bs-accordion.js +1 -1
  228. package/dist/components/bs-ai-disclaimer.js +1 -1
  229. package/dist/components/bs-ai-greeting.js +1 -1
  230. package/dist/components/bs-ai-thinking.js +1 -1
  231. package/dist/components/bs-attachment-list.js +1 -1
  232. package/dist/components/bs-attachment.js +1 -1
  233. package/dist/components/bs-avatar.js +1 -1
  234. package/dist/components/bs-badge.js +1 -1
  235. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  236. package/dist/components/bs-breadcrumb.js +1 -1
  237. package/dist/components/bs-breadcrumbs.js +1 -1
  238. package/dist/components/bs-button-skeleton.js +1 -1
  239. package/dist/components/bs-button.js +1 -1
  240. package/dist/components/bs-card.js +1 -1
  241. package/dist/components/bs-carousel.js +1 -1
  242. package/dist/components/bs-chatbot-feedback.js +1 -1
  243. package/dist/components/bs-chatbot-header.js +1 -1
  244. package/dist/components/bs-chatbot-response-action.js +1 -1
  245. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  246. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  247. package/dist/components/bs-checkbox-skeleton.js +1 -1
  248. package/dist/components/bs-checkbox.js +1 -1
  249. package/dist/components/bs-chip-filter.js +1 -1
  250. package/dist/components/bs-chip-informative.js +1 -1
  251. package/dist/components/bs-chip-input.js +1 -1
  252. package/dist/components/bs-composer-status-banner.js +1 -1
  253. package/dist/components/bs-composer.js +1 -1
  254. package/dist/components/bs-cookie-consent.d.ts +11 -0
  255. package/dist/components/bs-cookie-consent.js +1 -0
  256. package/dist/components/bs-data-table.js +1 -1
  257. package/dist/components/bs-datepicker.js +1 -1
  258. package/dist/components/bs-dialog.js +1 -1
  259. package/dist/components/bs-error-page.d.ts +11 -0
  260. package/dist/components/bs-error-page.js +1 -0
  261. package/dist/components/bs-file-upload-item.js +1 -1
  262. package/dist/components/bs-file-upload.js +1 -1
  263. package/dist/components/bs-icon-button.js +1 -1
  264. package/dist/components/bs-icon-tile.d.ts +11 -0
  265. package/dist/components/bs-icon-tile.js +1 -0
  266. package/dist/components/bs-inline-tab.js +1 -1
  267. package/dist/components/bs-input.js +1 -1
  268. package/dist/components/bs-logo.js +1 -1
  269. package/dist/components/bs-menu-item.js +1 -1
  270. package/dist/components/bs-menu.js +1 -1
  271. package/dist/components/bs-navigation-drawer-item.js +1 -1
  272. package/dist/components/bs-navigation-drawer.js +1 -1
  273. package/dist/components/bs-navigation-header.js +1 -1
  274. package/dist/components/bs-onboarding-checklist.d.ts +11 -0
  275. package/dist/components/bs-onboarding-checklist.js +1 -0
  276. package/dist/components/bs-pagination.js +1 -1
  277. package/dist/components/bs-product-tour.d.ts +11 -0
  278. package/dist/components/bs-product-tour.js +1 -0
  279. package/dist/components/bs-progress-linear.js +1 -1
  280. package/dist/components/bs-progress.js +1 -1
  281. package/dist/components/bs-qr-code.d.ts +11 -0
  282. package/dist/components/bs-qr-code.js +1 -0
  283. package/dist/components/bs-radio.js +1 -1
  284. package/dist/components/bs-session-timeout.d.ts +11 -0
  285. package/dist/components/bs-session-timeout.js +1 -0
  286. package/dist/components/bs-slider.js +1 -1
  287. package/dist/components/bs-snackbar.js +1 -1
  288. package/dist/components/bs-source-link.js +1 -1
  289. package/dist/components/bs-stepper-step.js +1 -1
  290. package/dist/components/bs-stepper.js +1 -1
  291. package/dist/components/bs-switch.js +1 -1
  292. package/dist/components/bs-tab.js +1 -1
  293. package/dist/components/bs-tabs.js +1 -1
  294. package/dist/components/bs-timepicker.js +1 -1
  295. package/dist/components/bs-toast.js +1 -1
  296. package/dist/components/bs-tooltip.js +1 -1
  297. package/dist/components/bs-whats-new-entry.d.ts +11 -0
  298. package/dist/components/bs-whats-new-entry.js +1 -0
  299. package/dist/components/bs-whats-new.d.ts +11 -0
  300. package/dist/components/bs-whats-new.js +1 -0
  301. package/dist/components/index.js +1 -1
  302. package/dist/components/{p-R2MlkUzD.js → p-BEEoVNRu.js} +1 -1
  303. package/dist/components/p-BUskqBR6.js +1 -0
  304. package/dist/components/{p-DkIVyFOP.js → p-BZ3M4lOU.js} +1 -1
  305. package/dist/components/{p-ZK8p5zax.js → p-Be9L4_Fe.js} +1 -1
  306. package/dist/components/p-Be_Pmccm.js +1 -0
  307. package/dist/components/{p-CPvqZNO8.js → p-Bl_tVzeq.js} +1 -1
  308. package/dist/components/p-C8yT2Ucq.js +1 -0
  309. package/dist/components/p-CA31vqjL.js +1 -0
  310. package/dist/components/p-CUfs0ROR.js +1 -0
  311. package/dist/components/{p-JYlmcxBn.js → p-CVrEuVFo.js} +1 -1
  312. package/dist/components/{p-B7Icv1ho.js → p-C_j_jDM6.js} +1 -1
  313. package/dist/components/p-CbimDNGY.js +1 -0
  314. package/dist/components/p-CeUK3n7D.js +1 -0
  315. package/dist/components/p-CncySD_-.js +1 -0
  316. package/dist/components/p-DE8K7fg0.js +1 -0
  317. package/dist/components/p-Dr0Qk9Zc.js +1 -0
  318. package/dist/components/p-DuLL7Ouw.js +1 -0
  319. package/dist/components/p-YsHQLXET.js +1 -0
  320. package/dist/components/p-qmS2CBqi.js +1 -0
  321. package/dist/components/{p-BYR_ZC8v.js → p-zTHlbyH6.js} +1 -1
  322. package/dist/esm/brandsync-wc.js +3 -3
  323. package/dist/esm/bs-accordion.entry.js +1 -1
  324. package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
  325. package/dist/esm/bs-ai-greeting.entry.js +2 -2
  326. package/dist/esm/bs-ai-thinking.entry.js +2 -2
  327. package/dist/esm/bs-attachment-list.entry.js +2 -2
  328. package/dist/esm/bs-attachment.entry.js +1 -1
  329. package/dist/esm/bs-avatar.entry.js +1 -1
  330. package/dist/esm/bs-badge.entry.js +1 -1
  331. package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
  332. package/dist/esm/bs-breadcrumb.entry.js +6 -3
  333. package/dist/esm/bs-breadcrumbs.entry.js +2 -2
  334. package/dist/esm/bs-button-skeleton.entry.js +2 -2
  335. package/dist/esm/bs-button.entry.js +3 -3
  336. package/dist/esm/bs-card.entry.js +3 -3
  337. package/dist/esm/bs-carousel.entry.js +1 -1
  338. package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
  339. package/dist/esm/bs-chatbot-header.entry.js +3 -3
  340. package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
  341. package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
  342. package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
  343. package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
  344. package/dist/esm/bs-checkbox.entry.js +1 -1
  345. package/dist/esm/bs-chip-filter.entry.js +1 -1
  346. package/dist/esm/bs-chip-informative.entry.js +1 -1
  347. package/dist/esm/bs-chip-input.entry.js +1 -1
  348. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  349. package/dist/esm/bs-composer.entry.js +2 -2
  350. package/dist/esm/bs-cookie-consent.entry.js +184 -0
  351. package/dist/esm/bs-data-table.entry.js +1 -1
  352. package/dist/esm/bs-datepicker.entry.js +13 -9
  353. package/dist/esm/bs-dialog.entry.js +1 -1
  354. package/dist/esm/bs-error-page.entry.js +101 -0
  355. package/dist/esm/bs-file-upload-item.entry.js +2 -2
  356. package/dist/esm/bs-file-upload.entry.js +2 -2
  357. package/dist/esm/bs-icon-button.entry.js +2 -2
  358. package/dist/esm/bs-icon-tile.entry.js +50 -0
  359. package/dist/esm/bs-inline-tab.entry.js +2 -2
  360. package/dist/esm/{bs-input_2.entry.js → bs-input_3.entry.js} +42 -7
  361. package/dist/esm/bs-logo.entry.js +1 -1
  362. package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
  363. package/dist/esm/bs-navigation-drawer.entry.js +3 -3
  364. package/dist/esm/bs-navigation-header.entry.js +2 -2
  365. package/dist/esm/bs-onboarding-checklist.entry.js +159 -0
  366. package/dist/esm/bs-pagination.entry.js +2 -2
  367. package/dist/esm/bs-product-tour.entry.js +76 -0
  368. package/dist/esm/bs-progress-linear.entry.js +4 -4
  369. package/dist/esm/bs-progress.entry.js +3 -3
  370. package/dist/esm/bs-qr-code.entry.js +146 -0
  371. package/dist/esm/bs-radio.entry.js +2 -2
  372. package/dist/esm/bs-session-timeout.entry.js +213 -0
  373. package/dist/esm/bs-slider.entry.js +2 -2
  374. package/dist/esm/bs-snackbar.entry.js +9 -3
  375. package/dist/esm/bs-source-link.entry.js +3 -3
  376. package/dist/esm/bs-stepper-step.entry.js +2 -2
  377. package/dist/esm/bs-stepper.entry.js +2 -2
  378. package/dist/esm/bs-switch.entry.js +2 -2
  379. package/dist/esm/bs-tab_3.entry.js +251 -0
  380. package/dist/esm/bs-timepicker.entry.js +4 -4
  381. package/dist/esm/bs-toast.entry.js +2 -2
  382. package/dist/esm/bs-tooltip.entry.js +2 -2
  383. package/dist/esm/bs-whats-new.entry.js +142 -0
  384. package/dist/esm/{index-AgoOSYvW.js → index-DqQRXQMx.js} +15 -3
  385. package/dist/esm/loader.js +3 -3
  386. package/dist/types/components/bs-attachment/bs-attachment.stories.d.ts +1 -1
  387. package/dist/types/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.d.ts +4 -1
  388. package/dist/types/components/bs-button/bs-button/bs-button.d.ts +3 -0
  389. package/dist/types/components/bs-cookie-consent/bs-cookie-consent.cmp.test.d.ts +1 -0
  390. package/dist/types/components/bs-cookie-consent/bs-cookie-consent.d.ts +136 -0
  391. package/dist/types/components/bs-cookie-consent/bs-cookie-consent.stories.d.ts +16 -0
  392. package/dist/types/components/bs-datepicker/bs-datepicker.d.ts +2 -0
  393. package/dist/types/components/bs-error-page/bs-error-page.cmp.test.d.ts +1 -0
  394. package/dist/types/components/bs-error-page/bs-error-page.d.ts +60 -0
  395. package/dist/types/components/bs-error-page/bs-error-page.stories.d.ts +22 -0
  396. package/dist/types/components/bs-icon-tile/bs-icon-tile.cmp.test.d.ts +1 -0
  397. package/dist/types/components/bs-icon-tile/bs-icon-tile.d.ts +40 -0
  398. package/dist/types/components/bs-icon-tile/bs-icon-tile.stories.d.ts +13 -0
  399. package/dist/types/components/bs-input/bs-input.d.ts +4 -1
  400. package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.cmp.test.d.ts +1 -0
  401. package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.d.ts +140 -0
  402. package/dist/types/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.d.ts +18 -0
  403. package/dist/types/components/bs-product-tour/bs-product-tour.cmp.test.d.ts +1 -0
  404. package/dist/types/components/bs-product-tour/bs-product-tour.d.ts +78 -0
  405. package/dist/types/components/bs-product-tour/bs-product-tour.stories.d.ts +19 -0
  406. package/dist/types/components/bs-qr-code/bs-qr-code.cmp.test.d.ts +1 -0
  407. package/dist/types/components/bs-qr-code/bs-qr-code.d.ts +124 -0
  408. package/dist/types/components/bs-qr-code/bs-qr-code.stories.d.ts +28 -0
  409. package/dist/types/components/bs-session-timeout/bs-session-timeout.cmp.test.d.ts +1 -0
  410. package/dist/types/components/bs-session-timeout/bs-session-timeout.d.ts +141 -0
  411. package/dist/types/components/bs-session-timeout/bs-session-timeout.stories.d.ts +19 -0
  412. package/dist/types/components/bs-snackbar/bs-snackbar.d.ts +7 -0
  413. package/dist/types/components/bs-timepicker/bs-timepicker.d.ts +2 -0
  414. package/dist/types/components/bs-whats-new/bs-whats-new.cmp.test.d.ts +1 -0
  415. package/dist/types/components/bs-whats-new/bs-whats-new.d.ts +147 -0
  416. package/dist/types/components/bs-whats-new/bs-whats-new.stories.d.ts +14 -0
  417. package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.cmp.test.d.ts +1 -0
  418. package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.d.ts +53 -0
  419. package/dist/types/components/bs-whats-new-entry/bs-whats-new-entry.stories.d.ts +18 -0
  420. package/dist/types/components.d.ts +2642 -98
  421. package/package.json +3 -2
  422. package/dist/brandsync-wc/p-1c3a43c7.entry.js +0 -1
  423. package/dist/brandsync-wc/p-1c427ffb.entry.js +0 -1
  424. package/dist/brandsync-wc/p-4f2c4929.entry.js +0 -1
  425. package/dist/brandsync-wc/p-76e1c295.entry.js +0 -1
  426. package/dist/brandsync-wc/p-790db8b3.entry.js +0 -1
  427. package/dist/brandsync-wc/p-796a1860.entry.js +0 -1
  428. package/dist/brandsync-wc/p-806a5347.entry.js +0 -1
  429. package/dist/brandsync-wc/p-addfa0a0.entry.js +0 -1
  430. package/dist/brandsync-wc/p-c9a72416.entry.js +0 -1
  431. package/dist/brandsync-wc/p-d42b1c2b.entry.js +0 -1
  432. package/dist/brandsync-wc/p-f006d962.entry.js +0 -1
  433. package/dist/brandsync-wc/p-f074f94e.entry.js +0 -1
  434. package/dist/cjs/bs-menu.cjs.entry.js +0 -39
  435. package/dist/cjs/bs-tab.cjs.entry.js +0 -88
  436. package/dist/cjs/bs-tabs.cjs.entry.js +0 -133
  437. package/dist/components/p-BTvme8CE.js +0 -1
  438. package/dist/components/p-Ba860ej1.js +0 -1
  439. package/dist/components/p-CpUHnsq9.js +0 -1
  440. package/dist/components/p-jDO25SfF.js +0 -1
  441. package/dist/esm/bs-menu.entry.js +0 -37
  442. package/dist/esm/bs-tab.entry.js +0 -86
  443. package/dist/esm/bs-tabs.entry.js +0 -131
@@ -0,0 +1,328 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * A full-block page for when the user can't get to what they asked for: page not found (404), a server
4
+ * error (500), no access (403), planned maintenance, or no internet connection. Matches the Figma
5
+ * "Error page" component's five states.
6
+ *
7
+ * Each `type` brings its own icon, tint, code label ("404", "Maintenance", ...), heading, paragraph and
8
+ * buttons, all overridable by props. The component doesn't navigate or retry anything: it emits
9
+ * `bsPrimary` / `bsSecondary` and your app decides what "Go to Overview" or "Try again" does.
10
+ *
11
+ * **Built from:** `bs-card` (the surface), `bs-icon-tile` (the icon), `bs-button` (the actions).
12
+ *
13
+ * ## When to use
14
+ * - Replacing the content of a page or panel that can't be shown, with a clear way forward.
15
+ *
16
+ * ## When not to use
17
+ * - A problem with one field or one action -- use inline validation or a `bs-snackbar`.
18
+ * - A blocking question the user must answer -- use `bs-dialog`.
19
+ *
20
+ * @slot icon - Replaces the default glyph in the icon tile. Draw it with `currentColor`.
21
+ * @part container - The card.
22
+ * @part art - The icon tile.
23
+ * @part code - The label under the icon ("404", "Maintenance", ...).
24
+ * @part heading - The heading.
25
+ * @part description - The paragraph.
26
+ * @part actions - The button row.
27
+ * @part primary - The primary button.
28
+ * @part secondary - The secondary button.
29
+ * @part reference - The small reference line (an error id and time).
30
+ */
31
+ export class BsErrorPage {
32
+ /** Which error: `not-found` (404), `server-error` (500), `no-access` (403), `maintenance` or
33
+ * `offline`. */
34
+ type = 'not-found';
35
+ /** The small label under the icon, e.g. "404". Defaults per `type` ("404", "500", "403",
36
+ * "Maintenance", "Offline"). Set it to an empty string to hide it. */
37
+ code;
38
+ /** Heading. Defaults per `type`. */
39
+ heading;
40
+ /** HTML heading level for the heading, 1-6. Use 1 when this replaces the whole page; lower when it
41
+ * sits inside a section that already has a heading above it. */
42
+ headingLevel = 1;
43
+ /** Paragraph under the heading. Defaults per `type`. */
44
+ description;
45
+ /** Label of the primary button. Defaults per `type`. Set it to an empty string to hide it. */
46
+ primaryLabel;
47
+ /** Label of the secondary button. Defaults per `type` (only `not-found`, `server-error` and
48
+ * `no-access` have one). Set it to an empty string to hide it. */
49
+ secondaryLabel;
50
+ /** A small reference line under the buttons, e.g. `"Error ID: 7f3c-21a9 · 30.09.2026 10:42"`, for
51
+ * support to look up. Nothing is shown when empty. */
52
+ reference;
53
+ /** Fires when the primary button is pressed. */
54
+ bsPrimary;
55
+ /** Fires when the secondary button is pressed. */
56
+ bsSecondary;
57
+ get defaults() {
58
+ return TYPES[this.type] ?? TYPES['not-found'];
59
+ }
60
+ render() {
61
+ const d = this.defaults;
62
+ const code = this.code ?? d.code;
63
+ const heading = this.heading ?? d.heading;
64
+ const description = this.description ?? d.description;
65
+ const primary = this.primaryLabel ?? d.primary;
66
+ const secondary = this.secondaryLabel ?? d.secondary;
67
+ const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 1));
68
+ return (h("bs-card", { key: '27e16dc9013ea60751032fcccd626fb44aa7f708', part: "container", class: "bs-error-page", surface: "base" }, h("div", { key: 'bbca94e98665e09c5cd86626bf136f7b1393cbeb', class: "bs-error-page__body" }, h("div", { key: 'f358107685a4bfa06f1428bdd203d06b767fa83b', class: "bs-error-page__art-group" }, h("bs-icon-tile", { key: '096621ed3f0fa1545ae4e9a55cf316ff8f4349cb', part: "art", class: `bs-error-page__art ${d.info ? 'bs-error-page__art--info' : ''}`, intent: d.intent, size: "lg" }, h("slot", { key: '675e23b9001cb6570d95092f429666bee38368d1', name: "icon" }, d.glyph())), code && (h("span", { key: 'f82874da8c28f2f3e7adc17f4532a4b99082fc81', part: "code", class: "bs-error-page__code" }, code))), h(`h${level}`, { part: 'heading', class: { 'bs-error-page__heading': true } }, heading), description && (h("p", { key: 'ee4a20fa4862df6533eb6de359dbf3f55c613f26', part: "description", class: "bs-error-page__description" }, description)), (primary || secondary) && (h("div", { key: 'b921d9f129128a92ce3af409a8cd723ee49b7e02', part: "actions", class: "bs-error-page__actions" }, primary && (h("bs-button", { key: '0e8e62423a122ce6bcb41ad93138cb5d2573d5d1', part: "primary", variant: "primary", onClick: () => this.bsPrimary.emit() }, primary)), secondary && (h("bs-button", { key: '07d4527e4fd8813d4a6c1d5316b34c2678bbae8d', part: "secondary", variant: "outlined", onClick: () => this.bsSecondary.emit() }, secondary)))), this.reference && (h("p", { key: '590120eeb06e91ab3617d3f1630a361c207afe42', part: "reference", class: "bs-error-page__reference" }, this.reference)))));
69
+ }
70
+ static get is() { return "bs-error-page"; }
71
+ static get encapsulation() { return "shadow"; }
72
+ static get originalStyleUrls() {
73
+ return {
74
+ "$": ["bs-error-page.css"]
75
+ };
76
+ }
77
+ static get styleUrls() {
78
+ return {
79
+ "$": ["bs-error-page.css"]
80
+ };
81
+ }
82
+ static get properties() {
83
+ return {
84
+ "type": {
85
+ "type": "string",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "BsErrorPageType",
89
+ "resolved": "\"maintenance\" | \"no-access\" | \"not-found\" | \"offline\" | \"server-error\"",
90
+ "references": {
91
+ "BsErrorPageType": {
92
+ "location": "local",
93
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-error-page/bs-error-page.tsx",
94
+ "id": "src/components/bs-error-page/bs-error-page.tsx::BsErrorPageType"
95
+ }
96
+ }
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": "Which error: `not-found` (404), `server-error` (500), `no-access` (403), `maintenance` or\n`offline`."
103
+ },
104
+ "getter": false,
105
+ "setter": false,
106
+ "reflect": true,
107
+ "attribute": "type",
108
+ "defaultValue": "'not-found'"
109
+ },
110
+ "code": {
111
+ "type": "string",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "string",
115
+ "resolved": "string",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": true,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": "The small label under the icon, e.g. \"404\". Defaults per `type` (\"404\", \"500\", \"403\",\n\"Maintenance\", \"Offline\"). Set it to an empty string to hide it."
123
+ },
124
+ "getter": false,
125
+ "setter": false,
126
+ "reflect": false,
127
+ "attribute": "code"
128
+ },
129
+ "heading": {
130
+ "type": "string",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "string",
134
+ "resolved": "string",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": true,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "Heading. Defaults per `type`."
142
+ },
143
+ "getter": false,
144
+ "setter": false,
145
+ "reflect": false,
146
+ "attribute": "heading"
147
+ },
148
+ "headingLevel": {
149
+ "type": "number",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "number",
153
+ "resolved": "number",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "HTML heading level for the heading, 1-6. Use 1 when this replaces the whole page; lower when it\nsits inside a section that already has a heading above it."
161
+ },
162
+ "getter": false,
163
+ "setter": false,
164
+ "reflect": false,
165
+ "attribute": "heading-level",
166
+ "defaultValue": "1"
167
+ },
168
+ "description": {
169
+ "type": "string",
170
+ "mutable": false,
171
+ "complexType": {
172
+ "original": "string",
173
+ "resolved": "string",
174
+ "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": true,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "Paragraph under the heading. Defaults per `type`."
181
+ },
182
+ "getter": false,
183
+ "setter": false,
184
+ "reflect": false,
185
+ "attribute": "description"
186
+ },
187
+ "primaryLabel": {
188
+ "type": "string",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": true,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": "Label of the primary button. Defaults per `type`. Set it to an empty string to hide it."
200
+ },
201
+ "getter": false,
202
+ "setter": false,
203
+ "reflect": false,
204
+ "attribute": "primary-label"
205
+ },
206
+ "secondaryLabel": {
207
+ "type": "string",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "string",
211
+ "resolved": "string",
212
+ "references": {}
213
+ },
214
+ "required": false,
215
+ "optional": true,
216
+ "docs": {
217
+ "tags": [],
218
+ "text": "Label of the secondary button. Defaults per `type` (only `not-found`, `server-error` and\n`no-access` have one). Set it to an empty string to hide it."
219
+ },
220
+ "getter": false,
221
+ "setter": false,
222
+ "reflect": false,
223
+ "attribute": "secondary-label"
224
+ },
225
+ "reference": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": true,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "A small reference line under the buttons, e.g. `\"Error ID: 7f3c-21a9 \u00B7 30.09.2026 10:42\"`, for\nsupport to look up. Nothing is shown when empty."
238
+ },
239
+ "getter": false,
240
+ "setter": false,
241
+ "reflect": false,
242
+ "attribute": "reference"
243
+ }
244
+ };
245
+ }
246
+ static get events() {
247
+ return [{
248
+ "method": "bsPrimary",
249
+ "name": "bsPrimary",
250
+ "bubbles": true,
251
+ "cancelable": true,
252
+ "composed": true,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "Fires when the primary button is pressed."
256
+ },
257
+ "complexType": {
258
+ "original": "void",
259
+ "resolved": "void",
260
+ "references": {}
261
+ }
262
+ }, {
263
+ "method": "bsSecondary",
264
+ "name": "bsSecondary",
265
+ "bubbles": true,
266
+ "cancelable": true,
267
+ "composed": true,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": "Fires when the secondary button is pressed."
271
+ },
272
+ "complexType": {
273
+ "original": "void",
274
+ "resolved": "void",
275
+ "references": {}
276
+ }
277
+ }];
278
+ }
279
+ }
280
+ const icon = (children) => () => (h("svg", { class: "bs-error-page__glyph", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.8", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, children));
281
+ const TYPES = {
282
+ 'not-found': {
283
+ intent: 'default',
284
+ info: true,
285
+ code: '404',
286
+ heading: 'Page not found',
287
+ description: 'The link may be old, or the page has moved.',
288
+ primary: 'Go to Overview',
289
+ secondary: 'Search',
290
+ glyph: icon(h("g", null, h("circle", { cx: "10.5", cy: "10.5", r: "6.5" }), h("path", { d: "M15.5 15.5L20.5 20.5" }))),
291
+ },
292
+ 'server-error': {
293
+ intent: 'error',
294
+ code: '500',
295
+ heading: 'Something went wrong on our side',
296
+ description: 'We’re working on it. Try again in a moment.',
297
+ primary: 'Try again',
298
+ secondary: 'Contact support',
299
+ glyph: icon(h("g", null, h("circle", { cx: "12", cy: "12", r: "9" }), h("path", { d: "M12 7.5V12.5" }), h("path", { d: "M12 16.2V16.3" }))),
300
+ },
301
+ 'no-access': {
302
+ intent: 'default',
303
+ code: '403',
304
+ heading: 'You don’t have access',
305
+ description: 'Contact your administrator for the access.',
306
+ primary: 'Request access',
307
+ secondary: 'Go back',
308
+ glyph: icon(h("g", null, h("rect", { x: "5", y: "10.5", width: "14", height: "9.5", rx: "1.5" }), h("path", { d: "M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5" }))),
309
+ },
310
+ maintenance: {
311
+ intent: 'warning',
312
+ code: 'Maintenance',
313
+ heading: 'We’re upgrading the system',
314
+ description: 'We’ll be back shortly. Your data is safe.',
315
+ primary: 'View system status',
316
+ secondary: '',
317
+ glyph: icon(h("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" })),
318
+ },
319
+ offline: {
320
+ intent: 'warning',
321
+ code: 'Offline',
322
+ heading: 'No internet connection',
323
+ description: 'Changes are saved locally and will be updated when you’re back online.',
324
+ primary: 'Try again',
325
+ secondary: '',
326
+ glyph: icon(h("g", null, h("path", { d: "M4 4L20 20" }), h("path", { d: "M2.5 9.5A14 14 0 0 1 8 6.7" }), h("path", { d: "M21.5 9.5A14 14 0 0 0 14 6.2" }), h("path", { d: "M5.5 13A9.5 9.5 0 0 1 9.5 10.6" }), h("path", { d: "M18.5 13A9.5 9.5 0 0 0 16 11.3" }), h("path", { d: "M9 16.5A4.5 4.5 0 0 1 12 15.3" }), h("path", { d: "M12 19.2V19.3" }))),
327
+ },
328
+ };
@@ -0,0 +1,57 @@
1
+ import { html } from "lit";
2
+ import { ifDefined } from "lit/directives/if-defined.js";
3
+ import { componentDescription, propDescription } from "../../stories-utils";
4
+ const meta = {
5
+ title: 'Components/bs-error-page',
6
+ parameters: { docs: { description: { component: componentDescription('bs-error-page') } } },
7
+ render: args => html `
8
+ <bs-error-page
9
+ type=${args.type}
10
+ code=${ifDefined(args.code || undefined)}
11
+ heading=${ifDefined(args.heading || undefined)}
12
+ description=${ifDefined(args.description || undefined)}
13
+ primary-label=${ifDefined(args.primaryLabel || undefined)}
14
+ secondary-label=${ifDefined(args.secondaryLabel || undefined)}
15
+ reference=${ifDefined(args.reference || undefined)}
16
+ heading-level=${args.headingLevel}
17
+ @bsPrimary=${() => console.log('bsPrimary')}
18
+ @bsSecondary=${() => console.log('bsSecondary')}
19
+ ></bs-error-page>
20
+ `,
21
+ argTypes: {
22
+ type: { control: 'select', options: ['not-found', 'server-error', 'no-access', 'maintenance', 'offline'], description: propDescription('bs-error-page', 'type') },
23
+ code: { control: 'text', description: propDescription('bs-error-page', 'code') },
24
+ heading: { control: 'text', description: propDescription('bs-error-page', 'heading') },
25
+ description: { control: 'text', description: propDescription('bs-error-page', 'description') },
26
+ primaryLabel: { control: 'text', description: propDescription('bs-error-page', 'primaryLabel') },
27
+ secondaryLabel: { control: 'text', description: propDescription('bs-error-page', 'secondaryLabel') },
28
+ reference: { control: 'text', description: propDescription('bs-error-page', 'reference') },
29
+ headingLevel: { control: { type: 'number', min: 1, max: 6 }, description: propDescription('bs-error-page', 'headingLevel') },
30
+ },
31
+ args: { type: 'not-found', code: '', heading: '', description: '', primaryLabel: '', secondaryLabel: '', reference: '', headingLevel: 1 },
32
+ };
33
+ export default meta;
34
+ export const NotFound = { name: 'Not found (404)' };
35
+ export const ServerError = {
36
+ name: 'Server error (500)',
37
+ args: { type: 'server-error', reference: 'Error ID: 7f3c-21a9 · 30.09.2026 10:42' },
38
+ };
39
+ export const NoAccess = { name: 'No access (403)', args: { type: 'no-access' } };
40
+ export const Maintenance = {
41
+ args: { type: 'maintenance', description: 'Back up at about 06:00. Your data is safe.' },
42
+ };
43
+ export const Offline = { args: { type: 'offline' } };
44
+ export const CustomCopy = {
45
+ name: 'Custom copy',
46
+ args: { type: 'not-found', heading: 'This order doesn’t exist', description: 'Check the order number, or search for it.', primaryLabel: 'All orders', secondaryLabel: 'Search orders' },
47
+ };
48
+ export const CustomIcon = {
49
+ name: 'Custom icon',
50
+ render: () => html `
51
+ <bs-error-page type="offline" heading="You're offline" description="We'll sync when you reconnect." primary-label="Retry now">
52
+ <svg slot="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
53
+ <path d="M12 3V13M8 9L12 13L16 9M5 19H19" />
54
+ </svg>
55
+ </bs-error-page>
56
+ `,
57
+ };
@@ -112,7 +112,7 @@ export class BsFileUpload {
112
112
  this.handleFiles(files);
113
113
  };
114
114
  render() {
115
- return (h("div", { key: 'b33535fd240d2d406118fd64fd9c227dea7ecd6e', part: "dropzone", class: `bs-file-upload bs-file-upload--${this.direction} ${this.dragging ? 'bs-file-upload--dragging' : ''} ${this.disabled ? 'bs-file-upload--disabled' : ''}`, onDragEnter: this.onDragOver, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onDrop: this.onDrop }, h("div", { key: '38cc0d7e10cbdfd9daef5749c2b50ec7c9123f71', part: "icon", class: "bs-file-upload__icon" }, h("slot", { key: '0e9cadb8101a73f55410eb30b2ddbf9c5e2cd0ed', name: "icon" }, h(UploadIcon, { key: '3f745666d0967ab5de4a6824a0fc8b3e0f7f900b' }))), h("div", { key: '7e347497915149907ade2e90aa19bd339b013be9', class: "bs-file-upload__content" }, h("div", { key: 'ea3a760d44b38cd5397d5952dbee998ddb2bea1b', class: "bs-file-upload__text" }, this.heading && (h("span", { key: '9e00cc05d2b479964502243e1dda32eb7fa81e42', part: "heading", class: "bs-file-upload__heading" }, this.heading)), this.description && (h("span", { key: 'abb9857cdd2c85a7730101d05a5704d947c669bd', part: "description", id: "description", class: "bs-file-upload__description" }, this.description))), h("bs-button", { key: '98dea0715d7c0c641c552025403febd13fe4c32f', part: "browse", variant: "neutral", size: "sm", disabled: this.disabled, onClick: this.onBrowse }, this.buttonLabel)), h("input", { key: '0c83fdaba93b46128e4990f9d15a746fd95479f5', ref: el => (this.inputEl = el), class: "bs-file-upload__input", type: "file", hidden: true, tabindex: -1, accept: this.accept, multiple: this.multiple, disabled: this.disabled, "aria-describedby": this.description ? 'description' : undefined, onChange: this.onInputChange })));
115
+ return (h("div", { key: '0d56df66efcaae8ae01435f81755a2cbfe9e6735', part: "dropzone", class: `bs-file-upload bs-file-upload--${this.direction} ${this.dragging ? 'bs-file-upload--dragging' : ''} ${this.disabled ? 'bs-file-upload--disabled' : ''}`, onDragEnter: this.onDragOver, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onDrop: this.onDrop }, h("div", { key: '63d1f3d7b64f9efe016f5720f2e78224cde2d4ee', part: "icon", class: "bs-file-upload__icon" }, h("slot", { key: '8bd5a62c50cce5608bd48b5db4d414c00dcdb68d', name: "icon" }, h(UploadIcon, { key: '478fcbbd730135bc396837ff1fcdee22418cf662' }))), h("div", { key: 'b4403e04e359e0d01a9f2e06d90ccaf0ce9ed5dd', class: "bs-file-upload__content" }, h("div", { key: '2b2d4dd5492ff8b88acbf4e3525f94d427e66e05', class: "bs-file-upload__text" }, this.heading && (h("span", { key: '25110b17458d6ac5d8f41c75b1cac44e7aa5b726', part: "heading", class: "bs-file-upload__heading" }, this.heading)), this.description && (h("span", { key: '362c13ebac808e066aa583c861f7d540715ebf2b', part: "description", id: "description", class: "bs-file-upload__description" }, this.description))), h("bs-button", { key: '09fd3013539163d2478abc7cd127cc2121aa206e', part: "browse", variant: "neutral", size: "sm", disabled: this.disabled, onClick: this.onBrowse }, this.buttonLabel)), h("input", { key: '2829fea7f7d8b4f3aae730678c9193eadd075422', ref: el => (this.inputEl = el), class: "bs-file-upload__input", type: "file", hidden: true, tabindex: -1, accept: this.accept, multiple: this.multiple, disabled: this.disabled, "aria-describedby": this.description ? 'description' : undefined, onChange: this.onInputChange })));
116
116
  }
117
117
  static get is() { return "bs-file-upload"; }
118
118
  static get encapsulation() { return "shadow"; }
@@ -86,7 +86,7 @@ export class BsFileUploadItem {
86
86
  }
87
87
  render() {
88
88
  const removing = this.state === 'success';
89
- return (h("div", { key: '6b7fc89949cfa70838cc60d94ccb91afe09f75cd', part: "item", class: `bs-file-upload-item bs-file-upload-item--${this.state}` }, h("div", { key: '55923d2fc56d8b1794a3a0d835440cd428e1e168', part: "thumbnail", class: "bs-file-upload-item__thumbnail" }, h("slot", { key: '25f93a00ba465db98c73f1bf38abc46110ae5c82', name: "thumbnail" }, this.thumbnailSrc ? (h("img", { class: "bs-file-upload-item__image", src: this.thumbnailSrc, alt: this.thumbnailAlt })) : (h(ImageIcon, null)))), h("div", { key: 'ab975fe4e7e888755f9ceae00b6633f86b856c47', class: "bs-file-upload-item__content" }, h("div", { key: '6b1c9161edd76c799f0c545e2f939907bbb1dcee', class: "bs-file-upload-item__meta" }, h("span", { key: '3b7ca85e645d19b1ef1affff55a8e2a2284aff72', part: "name", class: "bs-file-upload-item__name" }, this.fileName), this.fileSize && (h("span", { key: '70dd2e29628bd536dac520ffe653bc7651f41c33', part: "size", class: "bs-file-upload-item__size" }, this.fileSize))), this.renderStatus()), h("bs-icon-button", { key: '5ac7e596601ebdb35add9e278f17f67db4758e48', part: "action", variant: "subtle", size: "lg", ariaLabel: removing ? this.removeLabel : this.cancelLabel, onClick: this.onAction }, removing ? h(TrashIcon, null) : h(CloseIcon, null))));
89
+ return (h("div", { key: 'b239ca2558d3f0c25c58e0deeff988b29696a4a2', part: "item", class: `bs-file-upload-item bs-file-upload-item--${this.state}` }, h("div", { key: 'c146e98abf457f86aaca4f22e1813e51b9f8bfea', part: "thumbnail", class: "bs-file-upload-item__thumbnail" }, h("slot", { key: '1d7b35010b00fcedcf8f3e94ccc710ff44a1de9f', name: "thumbnail" }, this.thumbnailSrc ? (h("img", { class: "bs-file-upload-item__image", src: this.thumbnailSrc, alt: this.thumbnailAlt })) : (h(ImageIcon, null)))), h("div", { key: 'ba248f04ec0c44a4419f2e87d800500259d50c39', class: "bs-file-upload-item__content" }, h("div", { key: '9feafd65955cd80cd7e8878dc2af73e2c4184455', class: "bs-file-upload-item__meta" }, h("span", { key: '95214fe26b2256399a0ab3ea3568f868ac22984e', part: "name", class: "bs-file-upload-item__name" }, this.fileName), this.fileSize && (h("span", { key: '8ffece05f1ecb00839fbdd4086ad55a485f0bbca', part: "size", class: "bs-file-upload-item__size" }, this.fileSize))), this.renderStatus()), h("bs-icon-button", { key: '63508a0938b11dabfba623f0197c91e024b004b7', part: "action", variant: "subtle", size: "lg", ariaLabel: removing ? this.removeLabel : this.cancelLabel, onClick: this.onAction }, removing ? h(TrashIcon, null) : h(CloseIcon, null))));
90
90
  }
91
91
  static get is() { return "bs-file-upload-item"; }
92
92
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,175 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ const box = (root) => root.getBoundingClientRect();
3
+ const cs = (root) => getComputedStyle(root.shadowRoot.querySelector('[part="container"]'));
4
+ describe('bs-icon-tile', () => {
5
+ it('defaults to a small default tile with the house glyph', async () => {
6
+ const { root } = await render(h("bs-icon-tile", null));
7
+ expect(root).toEqualAttribute('size', 'sm');
8
+ expect(root).toEqualAttribute('intent', 'default');
9
+ expect(box(root).width).toBe(24);
10
+ expect(box(root).height).toBe(24);
11
+ expect(root.shadowRoot.querySelector('[part="icon"] svg')).not.toBeNull();
12
+ });
13
+ it.each([
14
+ ['sm', 24, 12, '4px'],
15
+ ['md', 32, 16, '5.33333px'],
16
+ ['lg', 48, 24, '8px'],
17
+ ])('size %s is %ipx with a %ipx icon and %s radius (Figma)', async (size, tile, icon, radius) => {
18
+ const { root } = await render(h("bs-icon-tile", { size: size }));
19
+ expect(box(root).width).toBe(tile);
20
+ expect(root.shadowRoot.querySelector('svg').getBoundingClientRect().width).toBe(icon);
21
+ expect(cs(root).borderTopLeftRadius).toBe(radius);
22
+ });
23
+ it('renders a different glyph per intent', async () => {
24
+ const intents = ['default', 'success', 'warning', 'error', 'brand', 'information'];
25
+ const markup = new Set();
26
+ for (const intent of intents) {
27
+ const { root } = await render(h("bs-icon-tile", { intent: intent }));
28
+ markup.add(root.shadowRoot.querySelector('svg').innerHTML);
29
+ }
30
+ expect(markup.size).toBe(6);
31
+ });
32
+ it('tints each intent differently', async () => {
33
+ const intents = ['default', 'success', 'warning', 'error', 'brand', 'information'];
34
+ const colours = new Set();
35
+ for (const intent of intents) {
36
+ const { root } = await render(h("bs-icon-tile", { intent: intent }));
37
+ colours.add(cs(root).backgroundColor);
38
+ }
39
+ expect(colours.size).toBe(6);
40
+ });
41
+ it('replaces the default glyph with slotted content', async () => {
42
+ const { root } = await render(h("bs-icon-tile", null, h("svg", { slot: undefined, id: "mine", viewBox: "0 0 24 24" }, h("path", { d: "M0 0" }))));
43
+ const slot = root.shadowRoot.querySelector('slot');
44
+ expect(slot.assignedElements().map(e => e.id)).toEqual(['mine']);
45
+ });
46
+ it('is decorative by default', async () => {
47
+ const { root } = await render(h("bs-icon-tile", null));
48
+ const c = root.shadowRoot.querySelector('[part="container"]');
49
+ expect(c).toEqualAttribute('aria-hidden', 'true');
50
+ expect(c.getAttribute('role')).toBeNull();
51
+ });
52
+ it('is an image with an accessible name when label is set', async () => {
53
+ const { root } = await render(h("bs-icon-tile", { label: "Error" }));
54
+ const c = root.shadowRoot.querySelector('[part="container"]');
55
+ expect(c).toEqualAttribute('role', 'img');
56
+ expect(c).toEqualAttribute('aria-label', 'Error');
57
+ expect(c.getAttribute('aria-hidden')).toBeNull();
58
+ });
59
+ it('can be resized through its custom property', async () => {
60
+ const { root } = await render(h("bs-icon-tile", { style: { '--bs-icon-tile-size': '64px' } }));
61
+ expect(box(root).width).toBe(64);
62
+ });
63
+ describe('dark mode (Figma "Icon tile", dark)', () => {
64
+ const hex = (c) => '#' + (c.match(/\d+/g) || []).slice(0, 3).map(n => Number(n).toString(16).padStart(2, '0')).join('');
65
+ const colours = async (theme) => {
66
+ if (theme)
67
+ document.documentElement.setAttribute('data-theme', theme);
68
+ try {
69
+ const out = {};
70
+ for (const intent of ['default', 'success', 'warning', 'error', 'brand', 'information']) {
71
+ const { root } = await render(h("bs-icon-tile", { intent: intent }));
72
+ const cs = getComputedStyle(root.shadowRoot.querySelector('[part="container"]'));
73
+ out[intent] = [hex(cs.backgroundColor), hex(cs.color)];
74
+ }
75
+ return out;
76
+ }
77
+ finally {
78
+ document.documentElement.removeAttribute('data-theme');
79
+ }
80
+ };
81
+ it('uses the 900 step behind the 100 step in dark mode, and a fixed information tint', async () => {
82
+ const dark = await colours('dark');
83
+ expect(dark.default).toEqual(['#21262e', '#f9fafb']);
84
+ expect(dark.success).toEqual(['#0f2b1e', '#c5ebd5']);
85
+ expect(dark.warning).toEqual(['#332300', '#ffdea1']);
86
+ expect(dark.error).toEqual(['#481212', '#ffdad7']);
87
+ expect(dark.brand).toEqual(['#001b3e', '#3e88ef']);
88
+ expect(dark.information).toEqual(['#edf0fa', '#448cd6']);
89
+ });
90
+ it('keeps the light backgrounds from the light Figma', async () => {
91
+ const light = await colours();
92
+ expect(light.success[0]).toBe('#e5f5e9');
93
+ expect(light.warning[0]).toBe('#ffdea1');
94
+ expect(light.error[0]).toBe('#ffdad7');
95
+ expect(light.information[0]).toBe('#edf0fa');
96
+ });
97
+ });
98
+ describe('whitespace in the markup (any HTML template)', () => {
99
+ const mount = async (html) => {
100
+ const host = document.createElement('div');
101
+ host.innerHTML = html;
102
+ document.body.appendChild(host);
103
+ await new Promise(r => setTimeout(r, 200));
104
+ return host.querySelector('bs-icon-tile');
105
+ };
106
+ it('still shows the default glyph when the only children are whitespace around a text child', async () => {
107
+ const tile = await mount(`<bs-icon-tile size="md" intent="success">
108
+ <span slot="text">Payment received</span>
109
+ </bs-icon-tile>`);
110
+ const glyph = tile.shadowRoot.querySelector('[part="icon"] svg');
111
+ expect(glyph).not.toBeNull();
112
+ expect(glyph.getBoundingClientRect().width).toBe(16);
113
+ tile.parentElement.remove();
114
+ });
115
+ it('still shows the default glyph for a tile written across lines with nothing in it', async () => {
116
+ const tile = await mount(`<bs-icon-tile intent="error">
117
+
118
+ </bs-icon-tile>`);
119
+ expect(tile.shadowRoot.querySelector('[part="icon"] svg')).not.toBeNull();
120
+ tile.parentElement.remove();
121
+ });
122
+ it('still lets a real custom icon replace the default glyph', async () => {
123
+ const tile = await mount(`<bs-icon-tile>
124
+ <svg id="mine" viewBox="0 0 24 24"><path d="M0 0" /></svg>
125
+ </bs-icon-tile>`);
126
+ expect(tile.shadowRoot.querySelector('[part="icon"] > svg')).toBeNull();
127
+ const slot = tile.shadowRoot.querySelector('slot:not([name])');
128
+ expect(slot.assignedElements().map(e => e.id)).toEqual(['mine']);
129
+ tile.parentElement.remove();
130
+ });
131
+ });
132
+ describe('text slot', () => {
133
+ it('is exactly the square when no text is slotted', async () => {
134
+ const { root } = await render(h("bs-icon-tile", { size: "md" }));
135
+ expect(root.getBoundingClientRect().width).toBe(32);
136
+ expect(getComputedStyle(root.shadowRoot.querySelector('[part="text"]')).display).toBe('none');
137
+ });
138
+ it('shows slotted text beside the square, vertically centred, with a gap', async () => {
139
+ const { root } = await render(h("bs-icon-tile", { size: "md", intent: "success" }, h("span", { slot: "text" }, "Payment received")));
140
+ await new Promise(r => setTimeout(r, 100));
141
+ const square = root.shadowRoot.querySelector('[part="container"]').getBoundingClientRect();
142
+ const text = root.shadowRoot.querySelector('[part="text"]').getBoundingClientRect();
143
+ expect(getComputedStyle(root.shadowRoot.querySelector('[part="text"]')).display).toBe('block');
144
+ expect(text.left - square.right).toBe(8);
145
+ expect(Math.abs((text.top + text.bottom) / 2 - (square.top + square.bottom) / 2)).toBeLessThanOrEqual(1);
146
+ });
147
+ it('colours the text with --bs-icon-tile-text-color, and leaves the icon colour alone', async () => {
148
+ const { root } = await render(h("bs-icon-tile", { intent: "success", style: { '--bs-icon-tile-text-color': 'rgb(1, 2, 3)' } }, h("span", { slot: "text" }, "Done")));
149
+ await new Promise(r => setTimeout(r, 100));
150
+ expect(getComputedStyle(root.shadowRoot.querySelector('[part="text"]')).color).toBe('rgb(1, 2, 3)');
151
+ expect(getComputedStyle(root.shadowRoot.querySelector('[part="container"]')).color).not.toBe('rgb(1, 2, 3)');
152
+ });
153
+ it('uses the default text colour (--bs-text-default) when not overridden, in light and dark', async () => {
154
+ const read = async () => {
155
+ const { root } = await render(h("bs-icon-tile", null, h("span", { slot: "text" }, "Done")));
156
+ await new Promise(r => setTimeout(r, 100));
157
+ return getComputedStyle(root.shadowRoot.querySelector('[part="text"]')).color;
158
+ };
159
+ const light = await read();
160
+ document.documentElement.setAttribute('data-theme', 'dark');
161
+ try {
162
+ const dark = await read();
163
+ expect(dark).not.toBe(light);
164
+ }
165
+ finally {
166
+ document.documentElement.removeAttribute('data-theme');
167
+ }
168
+ });
169
+ it('keeps the square decorative: the text stays readable and is not inside the aria-hidden square', async () => {
170
+ const { root } = await render(h("bs-icon-tile", null, h("span", { slot: "text" }, "Payment received")));
171
+ expect(root.shadowRoot.querySelector('[part="container"]')).toEqualAttribute('aria-hidden', 'true');
172
+ expect(root.shadowRoot.querySelector('[part="container"]').contains(root.shadowRoot.querySelector('[part="text"]'))).toBe(false);
173
+ });
174
+ });
175
+ });