@brandsync/wc 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/custom-elements.json +756 -162
  2. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  3. package/dist/brandsync-wc/p-00d40aca.entry.js +1 -0
  4. package/dist/brandsync-wc/{p-6e95eb36.entry.js → p-0299e8e1.entry.js} +1 -1
  5. package/dist/brandsync-wc/{p-e231e4cf.entry.js → p-03f9fd54.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-b18e4845.entry.js → p-04d6aa95.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-613ff380.entry.js → p-0921ca0d.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-aa43d478.entry.js → p-127d698d.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-9bcd99aa.entry.js → p-1780224d.entry.js} +1 -1
  10. package/dist/brandsync-wc/{p-baa4e2e0.entry.js → p-17dbd4b3.entry.js} +1 -1
  11. package/dist/brandsync-wc/{p-55a8d4b5.entry.js → p-18e0cff4.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-17a695af.entry.js → p-1e9ceb9d.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-27cce165.entry.js → p-205deb32.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-69c5bc2e.entry.js → p-260e14de.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-10f6f3cd.entry.js → p-2a7cc40c.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-9f1e4a91.entry.js → p-2e7586dd.entry.js} +1 -1
  17. package/dist/brandsync-wc/{p-38aad266.entry.js → p-35bcb932.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-0ba35c3b.entry.js → p-393efb5d.entry.js} +1 -1
  19. package/dist/brandsync-wc/p-3e6d37a4.entry.js +1 -0
  20. package/dist/brandsync-wc/{p-ab8de9b6.entry.js → p-41732f18.entry.js} +1 -1
  21. package/dist/brandsync-wc/{p-c04cf1bb.entry.js → p-650b7eef.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-59ac2495.entry.js → p-673546bf.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-7e544766.entry.js → p-67bc2ec8.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-63167373.entry.js → p-6970a24c.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-917a5bbc.entry.js → p-7091f130.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-4f8459ae.entry.js → p-718ce85f.entry.js} +1 -1
  27. package/dist/brandsync-wc/{p-752c04c8.entry.js → p-72e02bd5.entry.js} +1 -1
  28. package/dist/brandsync-wc/{p-1fcc9f47.entry.js → p-7655e741.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-37365a51.entry.js → p-7f14660d.entry.js} +1 -1
  30. package/dist/brandsync-wc/p-8b5f4ca7.entry.js +1 -0
  31. package/dist/brandsync-wc/{p-b5cbe30b.entry.js → p-8f2cfe31.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-Do3l4of3.js → p-CvfB8CQv.js} +2 -2
  33. package/dist/brandsync-wc/{p-c3079ad7.entry.js → p-a16afeaa.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-e3ce0c8c.entry.js → p-a35d5ea7.entry.js} +1 -1
  35. package/dist/brandsync-wc/{p-196cfcf0.entry.js → p-a597dc2b.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-cc79e75f.entry.js → p-a73bfd31.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-d22990c0.entry.js → p-aac6b59b.entry.js} +1 -1
  38. package/dist/brandsync-wc/p-b2abd8d9.entry.js +1 -0
  39. package/dist/brandsync-wc/p-b63362e7.entry.js +1 -0
  40. package/dist/brandsync-wc/{p-45016a37.entry.js → p-b6425ac2.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-48000949.entry.js → p-c76ca89f.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-43e37883.entry.js → p-c7b9a5c7.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-d037b619.entry.js → p-c8480d21.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-c3c383dc.entry.js → p-ca74c7d9.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-e2a37bda.entry.js → p-ce08c9d7.entry.js} +1 -1
  46. package/dist/brandsync-wc/p-cff188cb.entry.js +1 -0
  47. package/dist/brandsync-wc/{p-4ec24ccb.entry.js → p-ed704126.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-5ae9e60e.entry.js → p-f652d79c.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-16c960b5.entry.js → p-f6fafbd6.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-c90f5a74.entry.js → p-f94449da.entry.js} +1 -1
  51. package/dist/brandsync-wc/p-fc9d52d4.entry.js +1 -0
  52. package/dist/cjs/brandsync-wc.cjs.js +3 -3
  53. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
  54. package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
  55. package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
  56. package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
  57. package/dist/cjs/bs-attachment.cjs.entry.js +1 -1
  58. package/dist/cjs/bs-avatar.cjs.entry.js +1 -1
  59. package/dist/cjs/bs-badge.cjs.entry.js +1 -1
  60. package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
  61. package/dist/cjs/bs-breadcrumb.cjs.entry.js +1 -1
  62. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +2 -2
  63. package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
  64. package/dist/cjs/bs-button.cjs.entry.js +1 -1
  65. package/dist/cjs/bs-card.cjs.entry.js +2 -2
  66. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +2 -2
  67. package/dist/cjs/bs-chatbot-header.cjs.entry.js +2 -2
  68. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
  69. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
  70. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +2 -2
  71. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
  72. package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
  73. package/dist/cjs/bs-chip-filter.cjs.entry.js +68 -0
  74. package/dist/cjs/bs-chip-informative.cjs.entry.js +42 -0
  75. package/dist/cjs/bs-chip-input.cjs.entry.js +76 -0
  76. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
  77. package/dist/cjs/bs-composer.cjs.entry.js +2 -2
  78. package/dist/cjs/bs-data-table.cjs.entry.js +3 -3
  79. package/dist/cjs/bs-dialog.cjs.entry.js +13 -3
  80. package/dist/cjs/bs-icon-button.cjs.entry.js +2 -2
  81. package/dist/cjs/bs-inline-tab.cjs.entry.js +2 -2
  82. package/dist/cjs/bs-input.cjs.entry.js +3 -3
  83. package/dist/cjs/bs-logo.cjs.entry.js +1 -1
  84. package/dist/cjs/bs-menu-item.cjs.entry.js +2 -2
  85. package/dist/cjs/bs-menu.cjs.entry.js +2 -2
  86. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +2 -2
  87. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  88. package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
  89. package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
  90. package/dist/cjs/bs-radio.cjs.entry.js +2 -2
  91. package/dist/cjs/bs-slider.cjs.entry.js +2 -2
  92. package/dist/cjs/bs-snackbar.cjs.entry.js +2 -2
  93. package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
  94. package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
  95. package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
  96. package/dist/cjs/bs-switch.cjs.entry.js +2 -2
  97. package/dist/cjs/bs-tab.cjs.entry.js +2 -2
  98. package/dist/cjs/bs-tabs.cjs.entry.js +2 -2
  99. package/dist/cjs/bs-toast.cjs.entry.js +45 -0
  100. package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
  101. package/dist/cjs/{index-DHVw-IPK.js → index-CdAh5BFg.js} +27 -14
  102. package/dist/cjs/loader.cjs.js +2 -2
  103. package/dist/collection/collection-manifest.json +5 -1
  104. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  105. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  106. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  107. package/dist/collection/components/bs-attachment/bs-attachment.js +1 -1
  108. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  109. package/dist/collection/components/bs-avatar/bs-avatar.js +2 -2
  110. package/dist/collection/components/bs-badge/bs-badge.js +1 -1
  111. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
  112. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb-overflow/bs-breadcrumb-overflow.js +1 -1
  113. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  114. package/dist/collection/components/bs-button/bs-button/bs-button.js +2 -2
  115. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +3 -3
  116. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  117. package/dist/collection/components/bs-card/bs-card.css +6 -0
  118. package/dist/collection/components/bs-card/bs-card.js +1 -1
  119. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  120. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  121. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  122. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  123. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  124. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  125. package/dist/collection/components/bs-checkbox/bs-checkbox.js +1 -1
  126. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.cmp.test.js +99 -0
  127. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.css +156 -0
  128. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +222 -0
  129. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.stories.js +76 -0
  130. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.cmp.test.js +43 -0
  131. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.css +135 -0
  132. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +143 -0
  133. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.js +70 -0
  134. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.cmp.test.js +93 -0
  135. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.css +172 -0
  136. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +208 -0
  137. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.stories.js +67 -0
  138. package/dist/collection/components/bs-composer/bs-composer.js +3 -3
  139. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +2 -2
  140. package/dist/collection/components/bs-data-table/bs-data-table.js +6 -6
  141. package/dist/collection/components/bs-dialog/bs-dialog.cmp.test.js +6 -0
  142. package/dist/collection/components/bs-dialog/bs-dialog.js +13 -3
  143. package/dist/collection/components/bs-input/bs-input.js +2 -2
  144. package/dist/collection/components/bs-logo/bs-logo.js +2 -2
  145. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  146. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  147. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  148. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  149. package/dist/collection/components/bs-slider/bs-slider.js +2 -2
  150. package/dist/collection/components/bs-snackbar/bs-snackbar.js +2 -2
  151. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  152. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  153. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +3 -3
  154. package/dist/collection/components/bs-switch/bs-switch.js +2 -2
  155. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  156. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +2 -2
  157. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +3 -3
  158. package/dist/collection/components/bs-toast/bs-toast.cmp.test.js +59 -0
  159. package/dist/collection/components/bs-toast/bs-toast.css +151 -0
  160. package/dist/collection/components/bs-toast/bs-toast.js +108 -0
  161. package/dist/collection/components/bs-toast/bs-toast.stories.js +39 -0
  162. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  163. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +1 -1
  164. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  165. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
  166. package/dist/components/bs-ai-disclaimer.js +1 -1
  167. package/dist/components/bs-ai-greeting.js +1 -1
  168. package/dist/components/bs-ai-thinking.js +1 -1
  169. package/dist/components/bs-attachment-list.js +1 -1
  170. package/dist/components/bs-attachment.js +1 -1
  171. package/dist/components/bs-avatar.js +1 -1
  172. package/dist/components/bs-badge.js +1 -1
  173. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  174. package/dist/components/bs-breadcrumb.js +1 -1
  175. package/dist/components/bs-breadcrumbs.js +1 -1
  176. package/dist/components/bs-button-skeleton.js +1 -1
  177. package/dist/components/bs-button.js +1 -1
  178. package/dist/components/bs-card.js +1 -1
  179. package/dist/components/bs-chatbot-feedback.js +1 -1
  180. package/dist/components/bs-chatbot-header.js +1 -1
  181. package/dist/components/bs-chatbot-response-action.js +1 -1
  182. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  183. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  184. package/dist/components/bs-checkbox-skeleton.js +1 -1
  185. package/dist/components/bs-checkbox.js +1 -1
  186. package/dist/components/bs-chip-filter.d.ts +11 -0
  187. package/dist/components/bs-chip-filter.js +1 -0
  188. package/dist/components/bs-chip-informative.d.ts +11 -0
  189. package/dist/components/bs-chip-informative.js +1 -0
  190. package/dist/components/bs-chip-input.d.ts +11 -0
  191. package/dist/components/bs-chip-input.js +1 -0
  192. package/dist/components/bs-composer-status-banner.js +1 -1
  193. package/dist/components/bs-composer.js +1 -1
  194. package/dist/components/bs-data-table.js +1 -1
  195. package/dist/components/bs-dialog.js +1 -1
  196. package/dist/components/bs-icon-button.js +1 -1
  197. package/dist/components/bs-inline-tab.js +1 -1
  198. package/dist/components/bs-input.js +1 -1
  199. package/dist/components/bs-logo.js +1 -1
  200. package/dist/components/bs-menu-item.js +1 -1
  201. package/dist/components/bs-menu.js +1 -1
  202. package/dist/components/bs-navigation-drawer-item.js +1 -1
  203. package/dist/components/bs-navigation-drawer.js +1 -1
  204. package/dist/components/bs-navigation-header.js +1 -1
  205. package/dist/components/bs-pagination.js +1 -1
  206. package/dist/components/bs-radio.js +1 -1
  207. package/dist/components/bs-slider.js +1 -1
  208. package/dist/components/bs-snackbar.js +1 -1
  209. package/dist/components/bs-source-link.js +1 -1
  210. package/dist/components/bs-stepper-step.js +1 -1
  211. package/dist/components/bs-stepper.js +1 -1
  212. package/dist/components/bs-switch.js +1 -1
  213. package/dist/components/bs-tab.js +1 -1
  214. package/dist/components/bs-tabs.js +1 -1
  215. package/dist/components/bs-toast.d.ts +11 -0
  216. package/dist/components/bs-toast.js +1 -0
  217. package/dist/components/bs-tooltip.js +1 -1
  218. package/dist/components/index.js +1 -1
  219. package/dist/components/{p-BFcVSpES.js → p-B8JpGodL.js} +1 -1
  220. package/dist/components/{p-Bs7nEbqK.js → p-BOP5EJrQ.js} +1 -1
  221. package/dist/components/{p-CUa8zihb.js → p-Bg98eW9H.js} +1 -1
  222. package/dist/components/{p-CPSCOLIf.js → p-BlCziuES.js} +1 -1
  223. package/dist/components/{p-BJZYe7M4.js → p-CsnFdZ3v.js} +1 -1
  224. package/dist/components/{p-BKaZWFE1.js → p-DwVm6HIb.js} +1 -1
  225. package/dist/esm/brandsync-wc.js +4 -4
  226. package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
  227. package/dist/esm/bs-ai-greeting.entry.js +2 -2
  228. package/dist/esm/bs-ai-thinking.entry.js +2 -2
  229. package/dist/esm/bs-attachment-list.entry.js +2 -2
  230. package/dist/esm/bs-attachment.entry.js +1 -1
  231. package/dist/esm/bs-avatar.entry.js +1 -1
  232. package/dist/esm/bs-badge.entry.js +1 -1
  233. package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
  234. package/dist/esm/bs-breadcrumb.entry.js +1 -1
  235. package/dist/esm/bs-breadcrumbs.entry.js +2 -2
  236. package/dist/esm/bs-button-skeleton.entry.js +2 -2
  237. package/dist/esm/bs-button.entry.js +1 -1
  238. package/dist/esm/bs-card.entry.js +2 -2
  239. package/dist/esm/bs-chatbot-feedback.entry.js +2 -2
  240. package/dist/esm/bs-chatbot-header.entry.js +2 -2
  241. package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
  242. package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
  243. package/dist/esm/bs-chatbot-suggestion-button.entry.js +2 -2
  244. package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
  245. package/dist/esm/bs-checkbox.entry.js +1 -1
  246. package/dist/esm/bs-chip-filter.entry.js +66 -0
  247. package/dist/esm/bs-chip-informative.entry.js +40 -0
  248. package/dist/esm/bs-chip-input.entry.js +74 -0
  249. package/dist/esm/bs-composer-status-banner.entry.js +2 -2
  250. package/dist/esm/bs-composer.entry.js +2 -2
  251. package/dist/esm/bs-data-table.entry.js +3 -3
  252. package/dist/esm/bs-dialog.entry.js +13 -3
  253. package/dist/esm/bs-icon-button.entry.js +2 -2
  254. package/dist/esm/bs-inline-tab.entry.js +2 -2
  255. package/dist/esm/bs-input.entry.js +3 -3
  256. package/dist/esm/bs-logo.entry.js +1 -1
  257. package/dist/esm/bs-menu-item.entry.js +2 -2
  258. package/dist/esm/bs-menu.entry.js +2 -2
  259. package/dist/esm/bs-navigation-drawer-item.entry.js +2 -2
  260. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  261. package/dist/esm/bs-navigation-header.entry.js +2 -2
  262. package/dist/esm/bs-pagination.entry.js +2 -2
  263. package/dist/esm/bs-radio.entry.js +2 -2
  264. package/dist/esm/bs-slider.entry.js +2 -2
  265. package/dist/esm/bs-snackbar.entry.js +2 -2
  266. package/dist/esm/bs-source-link.entry.js +3 -3
  267. package/dist/esm/bs-stepper-step.entry.js +2 -2
  268. package/dist/esm/bs-stepper.entry.js +2 -2
  269. package/dist/esm/bs-switch.entry.js +2 -2
  270. package/dist/esm/bs-tab.entry.js +2 -2
  271. package/dist/esm/bs-tabs.entry.js +2 -2
  272. package/dist/esm/bs-toast.entry.js +43 -0
  273. package/dist/esm/bs-tooltip.entry.js +2 -2
  274. package/dist/esm/{index-Do3l4of3.js → index-CvfB8CQv.js} +27 -14
  275. package/dist/esm/loader.js +3 -3
  276. package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.cmp.test.d.ts +1 -0
  277. package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.d.ts +56 -0
  278. package/dist/types/components/bs-chip/bs-chip-filter/bs-chip-filter.stories.d.ts +20 -0
  279. package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.cmp.test.d.ts +1 -0
  280. package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.d.ts +41 -0
  281. package/dist/types/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.d.ts +21 -0
  282. package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.cmp.test.d.ts +1 -0
  283. package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.d.ts +60 -0
  284. package/dist/types/components/bs-chip/bs-chip-input/bs-chip-input.stories.d.ts +18 -0
  285. package/dist/types/components/bs-toast/bs-toast.cmp.test.d.ts +1 -0
  286. package/dist/types/components/bs-toast/bs-toast.d.ts +27 -0
  287. package/dist/types/components/bs-toast/bs-toast.stories.d.ts +12 -0
  288. package/dist/types/components.d.ts +434 -0
  289. package/dist/types/stencil-public-runtime.d.ts +62 -55
  290. package/loader/index.d.ts +1 -1
  291. package/package.json +6 -5
  292. package/dist/brandsync-wc/p-3efb76dd.entry.js +0 -1
  293. package/dist/brandsync-wc/p-ce7fc368.entry.js +0 -1
  294. package/dist/brandsync-wc/p-f0ae2740.entry.js +0 -1
@@ -105,7 +105,7 @@ export class BsLogo {
105
105
  "references": {
106
106
  "BsLogoVariant": {
107
107
  "location": "local",
108
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-logo/bs-logo.tsx",
108
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-logo/bs-logo.tsx",
109
109
  "id": "src/components/bs-logo/bs-logo.tsx::BsLogoVariant"
110
110
  }
111
111
  }
@@ -131,7 +131,7 @@ export class BsLogo {
131
131
  "references": {
132
132
  "BsLogoBackground": {
133
133
  "location": "local",
134
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-logo/bs-logo.tsx",
134
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-logo/bs-logo.tsx",
135
135
  "id": "src/components/bs-logo/bs-logo.tsx::BsLogoBackground"
136
136
  }
137
137
  }
@@ -22,7 +22,7 @@ import { h } from "@stencil/core";
22
22
  */
23
23
  export class BsMenu {
24
24
  render() {
25
- return (h("div", { key: '274c9fe8ed3c71e81758bbbc04880c365a79da14', part: "list", class: "bs-menu", role: "menu" }, h("slot", { key: '0011856560d7b7e7ef0e72ef54e151e26d192eaf' })));
25
+ return (h("div", { key: '3eec5b00fa0448900321d3f0b4b60f924b404c82', part: "list", class: "bs-menu", role: "menu" }, h("slot", { key: '4ba792af9042becd0b4dc9733fb835e2e9429442' })));
26
26
  }
27
27
  static get is() { return "bs-menu"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -47,7 +47,7 @@ export class BsMenuItem {
47
47
  this.bsSelect.emit();
48
48
  };
49
49
  render() {
50
- return (h("button", { key: 'ea5c64d6f4e5809b323cc55aeceb306666d57693', type: "button", part: "item", role: "menuitem", class: `bs-menu-item ${this.disabled ? 'bs-menu-item--disabled' : ''}`, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.onClick }, h("span", { key: '7e3ca7fcfabfc54151608b12a49c43d9192d449d', part: "icon", class: `bs-menu-item__icon ${this.hasIcon ? 'bs-menu-item__icon--has-content' : ''}` }, h("slot", { key: '49e8e51c8521b5c5bc0d341a1b915b9ed9b4274b', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'e453517c12cea42f93c8eae4f663269984dffe59', part: "label", class: "bs-menu-item__label" }, h("slot", { key: 'b268cced23bebc40560209eaab856dab51c2cd38' }))));
50
+ return (h("button", { key: '7f167cd83f9a8eeae18f128355d5ffb8f436ac79', type: "button", part: "item", role: "menuitem", class: `bs-menu-item ${this.disabled ? 'bs-menu-item--disabled' : ''}`, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.onClick }, h("span", { key: '4df57b5696b2c4853f6ea94b0316b6ae5094708b', part: "icon", class: `bs-menu-item__icon ${this.hasIcon ? 'bs-menu-item__icon--has-content' : ''}` }, h("slot", { key: '31a576332ed664d476376d1ae526dea00f6b9a3d', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'fc59ab3bb2c7229a97c3aff9a0442e8c3d346e96', part: "label", class: "bs-menu-item__label" }, h("slot", { key: '1d295c872f60b32e8230acbc2f63474b4d869bc8' }))));
51
51
  }
52
52
  static get is() { return "bs-menu-item"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -87,7 +87,7 @@ export class BsPagination {
87
87
  }
88
88
  render() {
89
89
  const pageList = this.getPageList();
90
- return (h("nav", { key: '0672f1f0264fb21d352bcdc1400d9cc712e703d0', "aria-label": "Pagination" }, h("ul", { key: '525ba6927de5a4b37a258a1513ac08d0e72ecef7', part: "list", class: "bs-pagination__list" }, h("li", { key: 'c40905f2ccf7fa9df67cde3c106d5f176f7bda4e', part: "item", class: "bs-pagination__item" }, h("button", { key: 'e09624f4c9a006a69d2c4dab14c744abb347b804', part: "prev", type: "button", class: "bs-pagination__control", "aria-label": this.previousLabel, disabled: this.currentPage <= 1, onClick: () => this.goToPage(this.currentPage - 1) }, h(ChevronLeftIcon, { key: '52e2a323c484f208c2dcbd0a783241eecdb6435d' }))), pageList.map((item, index) => item === 'ellipsis' ? (h("li", { part: "item", class: "bs-pagination__item", key: `ellipsis-${index}` }, h("span", { part: "ellipsis", class: "bs-pagination__ellipsis", "aria-hidden": "true" }, h(EllipsisIcon, null)))) : (h("li", { part: "item", class: "bs-pagination__item", key: item }, h("button", { part: item === this.currentPage ? 'page current' : 'page', type: "button", class: `bs-pagination__control bs-pagination__page ${item === this.currentPage ? 'bs-pagination__page--current' : ''}`, "aria-label": `Go to page ${item}`, "aria-current": item === this.currentPage ? 'page' : undefined, onClick: () => this.goToPage(item) }, item)))), h("li", { key: '01a3a6e391db347827cad882dcd762a246b2dd38', part: "item", class: "bs-pagination__item" }, h("button", { key: 'cf7389e94bf91d3878caefe6053aaa923d509b29', part: "next", type: "button", class: "bs-pagination__control", "aria-label": this.nextLabel, disabled: this.currentPage >= this.safeTotalPages, onClick: () => this.goToPage(this.currentPage + 1) }, h(ChevronRightIcon, { key: 'a77f841c472840f7d1560715e88b823ce65c8e9b' }))))));
90
+ return (h("nav", { key: 'd9f5e2b792e86a7d4d2571986a4fac1ae4f44fdc', "aria-label": "Pagination" }, h("ul", { key: 'cd277ba70a358c6425ed507378190373f4e39ecc', part: "list", class: "bs-pagination__list" }, h("li", { key: 'a0a1071f87a56c4c7c060261382ab70a4dc8c1fa', part: "item", class: "bs-pagination__item" }, h("button", { key: '6a6f0a0141db4c12f9a3d39c6ae609d003be308a', part: "prev", type: "button", class: "bs-pagination__control", "aria-label": this.previousLabel, disabled: this.currentPage <= 1, onClick: () => this.goToPage(this.currentPage - 1) }, h(ChevronLeftIcon, { key: '8687c2b631c801a89104718f370ac811d75b6ba4' }))), pageList.map((item, index) => item === 'ellipsis' ? (h("li", { part: "item", class: "bs-pagination__item", key: `ellipsis-${index}` }, h("span", { part: "ellipsis", class: "bs-pagination__ellipsis", "aria-hidden": "true" }, h(EllipsisIcon, null)))) : (h("li", { part: "item", class: "bs-pagination__item", key: item }, h("button", { part: item === this.currentPage ? 'page current' : 'page', type: "button", class: `bs-pagination__control bs-pagination__page ${item === this.currentPage ? 'bs-pagination__page--current' : ''}`, "aria-label": `Go to page ${item}`, "aria-current": item === this.currentPage ? 'page' : undefined, onClick: () => this.goToPage(item) }, item)))), h("li", { key: '27dfa774e3e541706a45a8d078c6ce1299128733', part: "item", class: "bs-pagination__item" }, h("button", { key: 'eaf59317f590798049f9206596b7ffd6b30c3429', part: "next", type: "button", class: "bs-pagination__control", "aria-label": this.nextLabel, disabled: this.currentPage >= this.safeTotalPages, onClick: () => this.goToPage(this.currentPage + 1) }, h(ChevronRightIcon, { key: 'ecbc2337e1db1dcf15f69f098b28c0d560aece9a' }))))));
91
91
  }
92
92
  static get is() { return "bs-pagination"; }
93
93
  static get encapsulation() { return "shadow"; }
@@ -51,7 +51,7 @@ export class BsRadio {
51
51
  }
52
52
  };
53
53
  render() {
54
- return (h("label", { key: '6d78b0c2ec41903227ff468952ac1972a1948f61', class: `bs-radio ${this.disabled ? 'bs-radio--disabled' : ''}` }, h("input", { key: '0d777f016ccc089ef96c66ae36bab7bdda398e4b', class: "bs-radio__input", type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), h("span", { key: '7fbcc84ffad6dfb7304b7d62396ef3733c8ac30c', class: "bs-radio__hit-area" }, h("span", { key: 'a818b5bea42ebdd0713c92a1e70db3c27fe1bd20', class: "bs-radio__state-layer" }, h("span", { key: 'ac42d940f1ad3f868e940ec8507a51595829f369', part: "circle", class: `bs-radio__circle ${this.checked ? 'bs-radio__circle--selected' : ''}` }, this.checked && h("span", { key: 'b56060d980c6579b31f8f9de0cd7367b0c145955', part: "dot", class: "bs-radio__dot" })))), h("span", { key: '287cadc837f4477c12c46e01c94799d951746ce6', part: "label", class: "bs-radio__label" }, h("slot", { key: '0230d91af5c327b7a941c6e5b0459f82fda2b516' }))));
54
+ return (h("label", { key: 'd2b90d388d4a165490c9e97f4716dc7b07a97d48', class: `bs-radio ${this.disabled ? 'bs-radio--disabled' : ''}` }, h("input", { key: 'a748a2fbcf810332d4046c4daec9c4a138ee127d', class: "bs-radio__input", type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), h("span", { key: 'f4aa8ca7333a598d921cad22c2ceb9e44745dbf4', class: "bs-radio__hit-area" }, h("span", { key: 'ecc93fe3be2284e86d2e8a8539edad55d40ce176', class: "bs-radio__state-layer" }, h("span", { key: 'e0f23810c8a7608654a75718aff71c468c24aecf', part: "circle", class: `bs-radio__circle ${this.checked ? 'bs-radio__circle--selected' : ''}` }, this.checked && h("span", { key: 'bb25cca2041b6c8a8978ee81d3c745530a1b660c', part: "dot", class: "bs-radio__dot" })))), h("span", { key: 'f8acfe4cac4182d922c63d7d9e96241c3eefabe9', part: "label", class: "bs-radio__label" }, h("slot", { key: '4b50c3944202d40f268c1e55bea8804273339e51' }))));
55
55
  }
56
56
  static get is() { return "bs-radio"; }
57
57
  static get encapsulation() { return "shadow"; }
@@ -199,7 +199,7 @@ export class BsSlider {
199
199
  render() {
200
200
  const isRange = this.type === 'range';
201
201
  const rootClasses = ['bs-slider', this.disabled ? 'bs-slider--disabled' : ''].filter(Boolean).join(' ');
202
- return (h("div", { key: '94e7804dd4e03881c5b53e3eb60ad6d4908b3c6d', class: rootClasses }, this.showLabel && (h("div", { key: '5a175e2c755c316e31637a99f32bbee4529a060e', class: "bs-slider__header" }, h("span", { key: '31c8b1ee83e4f86d9df201bb3e98be143c1bb4fb', id: "bs-slider-label", part: "label", class: "bs-slider__label" }, this.label), isRange ? (h("span", { class: "bs-slider__value-fields" }, this.renderPercentField(this.percent(this.effectiveValueStart), this.onStartPercentFieldChange, this.ariaLabel ?? 'Start value'), h("span", { class: "bs-slider__separator" }, "\u2013"), this.renderPercentField(this.percent(this.effectiveValueEnd), this.onEndPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} end` : 'End value'))) : (this.renderPercentField(this.percent(this.value), this.onPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} value` : 'Value')))), h("div", { key: '3e76e43398df4e013544e14cda18d61297f586c1', class: "bs-slider__row" }, this.showLabel && (h("span", { key: '68b68fb76315c024e8a58ef6e69ef5d3bcef8b8a', part: "bound", class: "bs-slider__bound" }, this.min)), isRange ? this.renderRangeThumbs() : this.renderSingleThumb(), this.showLabel && (h("span", { key: '37cd8e768c6c374f972ab7e00893193eeaaa14ec', part: "bound", class: "bs-slider__bound" }, this.max)))));
202
+ return (h("div", { key: 'e4647158959bb507711a1d9872e68f64d5f7bd34', class: rootClasses }, this.showLabel && (h("div", { key: 'eb5d67b8717cc627b63a17f85471e757d35cec85', class: "bs-slider__header" }, h("span", { key: '48f6184206774111a5beb1869857020d7008f013', id: "bs-slider-label", part: "label", class: "bs-slider__label" }, this.label), isRange ? (h("span", { class: "bs-slider__value-fields" }, this.renderPercentField(this.percent(this.effectiveValueStart), this.onStartPercentFieldChange, this.ariaLabel ?? 'Start value'), h("span", { class: "bs-slider__separator" }, "\u2013"), this.renderPercentField(this.percent(this.effectiveValueEnd), this.onEndPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} end` : 'End value'))) : (this.renderPercentField(this.percent(this.value), this.onPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} value` : 'Value')))), h("div", { key: '1ee4796e51f2d29b1b5bad812d81f037d1d2d29f', class: "bs-slider__row" }, this.showLabel && (h("span", { key: '4bfdfd86f9c5ae5c2f8ca08c0758be9fce483056', part: "bound", class: "bs-slider__bound" }, this.min)), isRange ? this.renderRangeThumbs() : this.renderSingleThumb(), this.showLabel && (h("span", { key: '06ee3063570c858bcdf49960b9021a301e56288e', part: "bound", class: "bs-slider__bound" }, this.max)))));
203
203
  }
204
204
  static get is() { return "bs-slider"; }
205
205
  static get encapsulation() { return "shadow"; }
@@ -225,7 +225,7 @@ export class BsSlider {
225
225
  "references": {
226
226
  "BsSliderType": {
227
227
  "location": "local",
228
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-slider/bs-slider.tsx",
228
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-slider/bs-slider.tsx",
229
229
  "id": "src/components/bs-slider/bs-slider.tsx::BsSliderType"
230
230
  }
231
231
  }
@@ -51,7 +51,7 @@ export class BsSnackbar {
51
51
  this.bsDismiss.emit();
52
52
  };
53
53
  render() {
54
- return (h("div", { key: '9106411da12b9a4687fc15cf51c3398e9f44cf61', part: "container", class: `bs-snackbar bs-snackbar--${this.variant}`, role: "status", "aria-live": this.variant === 'error' ? 'assertive' : 'polite' }, h("div", { key: '47d66fbf472070db51cc4ef1da513068a06bd4cf', class: "bs-snackbar__content" }, h("span", { key: 'aabe82b54a892ae9ce0ec299a8a8282b9c64a158', part: "icon", class: "bs-snackbar__icon", "aria-hidden": "true" }, this.loading ? h("span", { class: "bs-snackbar__spinner" }) : h(CheckCircleIcon, null)), h("span", { key: '0d349ebe58140aed06a6a887a71105aab8218c55', part: "message", class: "bs-snackbar__message" }, h("slot", { key: 'c95af54cae4327a956196c5e252c2e1bafc26e92' }))), h("div", { key: '9d85cb2e47cc696523bc3921afa804648ea13553', class: "bs-snackbar__actions" }, this.actionLabel && (h("button", { key: '59e85117a9351385d258ec9b5bac6cfb6b2d88bf', part: "action", type: "button", class: "bs-snackbar__action", onClick: this.onAction }, this.actionLabel)), h("button", { key: '9e60406a369a599d9a43fb3c9c321e1aa8e1144d', part: "close", type: "button", class: "bs-snackbar__close", "aria-label": "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: '93e815dace277cbee4f0f67a2ec1b3321c9ff495' })))));
54
+ return (h("div", { key: '3dc0997bd057ef72d7322d28ad5c561fb5e24730', part: "container", class: `bs-snackbar bs-snackbar--${this.variant}`, role: "status", "aria-live": this.variant === 'error' ? 'assertive' : 'polite' }, h("div", { key: '3b77e4ac957cd73368883afbb7b47fb5cc46966b', class: "bs-snackbar__content" }, h("span", { key: '45a8c01714b0a3bec9ffcc470a83959a1d9f0539', part: "icon", class: "bs-snackbar__icon", "aria-hidden": "true" }, this.loading ? h("span", { class: "bs-snackbar__spinner" }) : h(CheckCircleIcon, null)), h("span", { key: '6738316060e8da63c45ceda8ec2a2fce0dbcbc24', part: "message", class: "bs-snackbar__message" }, h("slot", { key: 'f88fe59ad8c970a222b2349a86df8c9ccb2836ab' }))), h("div", { key: '171fa694e2faccca014bb75234958cd458b17fe7', class: "bs-snackbar__actions" }, this.actionLabel && (h("button", { key: '2f529c556bbc9b6d01fddb23b434a6e381f38529', part: "action", type: "button", class: "bs-snackbar__action", onClick: this.onAction }, this.actionLabel)), h("button", { key: '1f45a977afdd80ee603e122fe8ac36b8161d6ee3', part: "close", type: "button", class: "bs-snackbar__close", "aria-label": "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: 'f16229c70fdbd0329e4a91fe7fbbf58e43e7870f' })))));
55
55
  }
56
56
  static get is() { return "bs-snackbar"; }
57
57
  static get encapsulation() { return "shadow"; }
@@ -76,7 +76,7 @@ export class BsSnackbar {
76
76
  "references": {
77
77
  "BsSnackbarVariant": {
78
78
  "location": "local",
79
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-snackbar/bs-snackbar.tsx",
79
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-snackbar/bs-snackbar.tsx",
80
80
  "id": "src/components/bs-snackbar/bs-snackbar.tsx::BsSnackbarVariant"
81
81
  }
82
82
  }
@@ -51,8 +51,8 @@ export class BsSourceLink {
51
51
  };
52
52
  render() {
53
53
  const inner = [
54
- h("span", { key: '753542a7656a7794bc572c25530f0a5eb1669d90', class: "bs-source-link__left" }, h("span", { key: 'fd80592c0236828d9a42c5e38136f8ef0534cb4c', class: "bs-source-link__filename-row" }, h("span", { key: '94343cc0f4defb5db6398758ae415dbf15b78496', part: "icon", class: "bs-source-link__icon" }, h("slot", { key: '3c07138dd24d92ee705185fa911aea7afff12a80', name: "icon" }, h(FileTextIcon, { key: 'ec9732d23d30f5b6a2300a25195369bd5f48db28' }))), h("p", { key: 'a74356f5ccc3afb88900b726432f3205d8a10fc5', part: "filename", class: "bs-source-link__filename" }, this.fileName)), h("span", { key: '682fcd2ecc83004dc0f59f93c3cf7b60dd9c6399', class: "bs-source-link__meta" }, this.sourceName && (h("span", { key: '6dc9967534fb2cf0d23f50a00e837d2979438af2', part: "source", class: "bs-source-link__source" }, this.sourceName)), this.sourceName && this.version && h("span", { key: '3e8679e0495224b3e178ec963da886c520880e74', class: "bs-source-link__dot", "aria-hidden": "true" }), this.version && (h("span", { key: '9ccb6b36baebadb43531c58a1668838d3073fc05', part: "version", class: "bs-source-link__version" }, this.version)))),
55
- h("span", { key: '0dd405de92bbda04ddf6aeb137cc2bfa4687bcb9', part: "arrow", class: "bs-source-link__arrow", "aria-hidden": "true" }, h(ArrowUpRightIcon, { key: '4b07b527923871b6ece0a48800a1bf30812c53df' })),
54
+ h("span", { key: '2729f16097550b7d60f116006c0cce86085e7fe4', class: "bs-source-link__left" }, h("span", { key: 'ba631a3a1c9c42e855dcbeb9554808dbb1b1f564', class: "bs-source-link__filename-row" }, h("span", { key: '324fec2cf91add6f8b7d7a5eeecfb8d5bcf8d087', part: "icon", class: "bs-source-link__icon" }, h("slot", { key: '504e4702cfe7c49c1c8186f12e5e893dc0cf166d', name: "icon" }, h(FileTextIcon, { key: 'c7eeca554f6b7fa7b4a7091676ccf6344292abc4' }))), h("p", { key: '7631367fe476e307120ea7e6f0f529016bbc86f7', part: "filename", class: "bs-source-link__filename" }, this.fileName)), h("span", { key: 'd67eaeb3e770d9119698bafe8f5c952b99999f5d', class: "bs-source-link__meta" }, this.sourceName && (h("span", { key: '67a08ca2742a10ac99734724e6a4ff0e1abfe870', part: "source", class: "bs-source-link__source" }, this.sourceName)), this.sourceName && this.version && h("span", { key: '5416ffb3915e03d901901455a47fd97ee7eadde5', class: "bs-source-link__dot", "aria-hidden": "true" }), this.version && (h("span", { key: '2c404027613850e260f93ed561306aa73a9eefd0', part: "version", class: "bs-source-link__version" }, this.version)))),
55
+ h("span", { key: '92e95ac26643f3035dc827a568512032622071e3', part: "arrow", class: "bs-source-link__arrow", "aria-hidden": "true" }, h(ArrowUpRightIcon, { key: 'baf53b5ec528ddf042f1717efdf51658a03aae3f' })),
56
56
  ];
57
57
  return this.href ? (h("a", { class: "bs-source-link", href: this.href, target: this.target, rel: "noopener noreferrer", onClick: this.onClick }, inner)) : (h("button", { type: "button", class: "bs-source-link", onClick: this.onClick }, inner));
58
58
  }
@@ -61,7 +61,7 @@ export class BsStepper {
61
61
  });
62
62
  }
63
63
  render() {
64
- return h("slot", { key: 'aed14a6d1d81b19d7d53fe9a536b2eb4912a2108', onSlotchange: this.onSlotChange });
64
+ return h("slot", { key: 'e897ba6e9153f8449bb5189245a22153d0e7e02e', onSlotchange: this.onSlotChange });
65
65
  }
66
66
  static get is() { return "bs-stepper"; }
67
67
  static get encapsulation() { return "shadow"; }
@@ -57,7 +57,7 @@ export class BsStepperStep {
57
57
  }
58
58
  render() {
59
59
  const state = this.state;
60
- return (h(Host, { key: '434e05ca150a24b2c9d5e3017198b1c5938460ba', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: 'b9c924f3f834a6c4bb45f6f2b5a655c48f5439fb', class: "bs-stepper-step__top" }, h("span", { key: '89b61162775733afef65c862e60b66e3eb732382', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: '7633c0612a65bbbc48fee9da55be642c22e8cc8f', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: '608682cbba1ad1f3bff467b1139cbd76d703ac2f' }), state === 'error' && h(ExclamationIcon, { key: '51123ab8c6a73faad6905c52065af8b59325a819' })), h("span", { key: '93d157b4df08963ab5febcf0cf855575cc1ed53f', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: '1af364efa632e94cf6e51a3e95f94b82dd1a51fd', class: "bs-stepper-step__connector-line" }))), h("span", { key: '3fb8c121d7180d82000ce516955e2597a43cefff', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: '07c716576b437a6e936be7746fa5db130bdf5e70', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: '8240af6eca62f42101c3101e653d6e4b3c1470da', part: "description", class: "bs-stepper-step__description" }, this.description)))));
60
+ return (h(Host, { key: '23bdc6334a36d9b2dd28719b9b23fbc17ad8f29b', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: '388e17882bb5215c33e0665107acbcff5c7b4c9c', class: "bs-stepper-step__top" }, h("span", { key: '6cf79ab50a94f9578e76f14ca23cdfa984ef394b', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: '8081181e8865a29f703c74d5a20183513bdf2b66', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: '92755c827c9c09b1bae504daabd2067fc498b355' }), state === 'error' && h(ExclamationIcon, { key: '62ac0a0826b8f8b507fcd0a7c47bff3c39f804b4' })), h("span", { key: 'a1c15ede35ab01d876a0289552dffc37c75626d1', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: '5029f8f629af1091bcb8fa2a47ebe12a7bd6628e', class: "bs-stepper-step__connector-line" }))), h("span", { key: '3835e986646f619751043ab0eeb1b5d977f22a58', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: '5da4053ea5ecf588853b5d9678737a67b7aadbe1', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: 'd5544b97eefe9311ac13f0cbcd4bf6d87bc24ca5', part: "description", class: "bs-stepper-step__description" }, this.description)))));
61
61
  }
62
62
  static get is() { return "bs-stepper-step"; }
63
63
  static get encapsulation() { return "shadow"; }
@@ -161,7 +161,7 @@ export class BsStepperStep {
161
161
  "references": {
162
162
  "BsStepperStepComputedState": {
163
163
  "location": "local",
164
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
164
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
165
165
  "id": "src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx::BsStepperStepComputedState"
166
166
  }
167
167
  }
@@ -187,7 +187,7 @@ export class BsStepperStep {
187
187
  "references": {
188
188
  "BsStepperDirection": {
189
189
  "location": "local",
190
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
190
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx",
191
191
  "id": "src/components/bs-stepper/bs-stepper-step/bs-stepper-step.tsx::BsStepperDirection"
192
192
  }
193
193
  }
@@ -58,7 +58,7 @@ export class BsSwitch {
58
58
  const knobClasses = ['bs-switch__knob', `bs-switch__knob--${this.size}`, this.disabled ? 'bs-switch__knob--disabled' : '']
59
59
  .filter(Boolean)
60
60
  .join(' ');
61
- return (h("label", { key: '166f681e2f776beda7d084c59437f1fff09a4ca8', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '15a147b4c9ce829ffd1a233331eb0dc177d95f87', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: '97e17ef669469c8b0751c2c950fcf9b17a12cb77', part: "track", class: trackClasses }, h("span", { key: '218b41fc9943769b41a8959d7715740dc3a14f4e', part: "knob", class: knobClasses })), h("span", { key: 'd967c820aeb62b522726ad7aff0aeb96ff59276f', part: "label", class: "bs-switch__label" }, h("slot", { key: '507e82bc8eb6389c79cc27cd8ae98b583ec6bc1c' }))));
61
+ return (h("label", { key: '72a1a031e9ed8763a2b60f3c23de18973cc7409d', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '90427f6930abcb294526caa912331a568f6eaaeb', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: 'be4eb4528f413527e67f38201c20ca86eeef37c1', part: "track", class: trackClasses }, h("span", { key: '030a60024a77bfae2f78a40128dd62a8581f5fd1', part: "knob", class: knobClasses })), h("span", { key: '5792002eed1c0489a1456e362f0fd3c290522834', part: "label", class: "bs-switch__label" }, h("slot", { key: '9dadf202bcde1760dcda56ca84155ecdb117b746' }))));
62
62
  }
63
63
  static get is() { return "bs-switch"; }
64
64
  static get encapsulation() { return "shadow"; }
@@ -84,7 +84,7 @@ export class BsSwitch {
84
84
  "references": {
85
85
  "BsSwitchSize": {
86
86
  "location": "local",
87
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-switch/bs-switch.tsx",
87
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-switch/bs-switch.tsx",
88
88
  "id": "src/components/bs-switch/bs-switch.tsx::BsSwitchSize"
89
89
  }
90
90
  }
@@ -86,7 +86,7 @@ export class BsInlineTab {
86
86
  };
87
87
  render() {
88
88
  const iconOnly = this.hasIcon && !this.hasLabel;
89
- return (h("button", { key: 'f500457efe9f3397d7137a3dc647758e59d601a1', type: "button", part: "tab", role: "tab", class: `bs-inline-tab ${this.selected ? 'bs-inline-tab--selected' : ''} ${this.disabled ? 'bs-inline-tab--disabled' : ''} ${iconOnly ? 'bs-inline-tab--icon-only' : ''} ${this.hasIcon ? 'bs-inline-tab--has-icon' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: '8ebede54d5ebd8a4e67a721dfc62e9c7d022fef9', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: '1e742bf36b7342966829aad269ce21754653fd1f', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'b457e2134cde29157add1d315835e081727dbf17', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: '2d50e9691930fac8b0dada3614f3a19b52e6bb8d', onSlotchange: this.onLabelSlotchange }))));
89
+ return (h("button", { key: '613b3ae3cfc8f3589a4c98d834cebadeb7d251c2', type: "button", part: "tab", role: "tab", class: `bs-inline-tab ${this.selected ? 'bs-inline-tab--selected' : ''} ${this.disabled ? 'bs-inline-tab--disabled' : ''} ${iconOnly ? 'bs-inline-tab--icon-only' : ''} ${this.hasIcon ? 'bs-inline-tab--has-icon' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: 'ee761ca1154bc2c111f5691dc2958f191ec75170', part: "icon", class: `bs-inline-tab__icon ${this.hasIcon ? 'bs-inline-tab__icon--has-content' : ''}` }, h("slot", { key: '2387c2f156ba8207ab337e8f32662a50765b70c4', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'e5c4ede4855ba79deffb7566c178c3339605b56c', part: "label", class: `bs-inline-tab__label ${this.hasLabel ? 'bs-inline-tab__label--has-content' : ''}` }, h("slot", { key: '20d73f50caad707f3f5b6853bbda906ced0e3620', onSlotchange: this.onLabelSlotchange }))));
90
90
  }
91
91
  static get is() { return "bs-inline-tab"; }
92
92
  static get encapsulation() { return "shadow"; }
@@ -99,7 +99,7 @@ export class BsTab {
99
99
  const iconOnly = this.hasIcon && !this.hasLabel;
100
100
  const vertical = this.hasIcon && this.hasLabel && this.iconPosition === 'top';
101
101
  const showBadge = this.hasBadge && !iconOnly && !vertical;
102
- return (h("button", { key: '9459bb70d5a9d6152f8339505c9b2bdeac846040', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: '270fc529b567e7acf1cd087d11ca1486a4f57398', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: '679bbd689b8381b57e44ce12ecd7a0fc13bcdb28', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: '48cc55b855d58ebefcb1aeed92e8d23c5245778a', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: 'f35e484c8d52507b81f96cad42f169a388f15a4d', onSlotchange: this.onLabelSlotchange })), h("span", { key: '637e767ef63781c97675bd296f45778025bd23bb', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: '66bd5e481528d69d5f6a15641bdd8f911ea7b2aa', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: '5ecc8124efb448f67bc470bd2473e3e988619fbf', part: "indicator", class: "bs-tab__indicator" })));
102
+ return (h("button", { key: '108e2a145203f9686056af4ef0afaccb9d2db30a', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, onClick: this.onClick }, h("span", { key: '16ac002486b78656a93cdb79ec2c496784fc97bd', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: '18eb1f6346db1658af06d4fd0fe3b9e647459abe', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'f97b7760370940a57d240635aa5680ffab053be8', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: '2ba740311a892af6d6db0d84ad0f126ca35c48de', onSlotchange: this.onLabelSlotchange })), h("span", { key: 'f1090ed9db4149673c29d1e62ec62db024c50868', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'a594d11d28f47d5e2665d3f1378892f8fb68c4aa', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: '1fd376b6321eeeec0e0a67000bd0c9d5166f9a40', part: "indicator", class: "bs-tab__indicator" })));
103
103
  }
104
104
  static get is() { return "bs-tab"; }
105
105
  static get encapsulation() { return "shadow"; }
@@ -164,7 +164,7 @@ export class BsTab {
164
164
  "references": {
165
165
  "BsTabIconPosition": {
166
166
  "location": "local",
167
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-tab/bs-tab/bs-tab.tsx",
167
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-tab/bs-tab/bs-tab.tsx",
168
168
  "id": "src/components/bs-tab/bs-tab/bs-tab.tsx::BsTabIconPosition"
169
169
  }
170
170
  }
@@ -50,7 +50,7 @@ export class BsTabs {
50
50
  }
51
51
  render() {
52
52
  const vertical = this.orientation === 'vertical';
53
- return (h("div", { key: '0b871aaeed20b903217a2c458df5d507f4fed4e0', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '0d8f3a81a14b1225f4c1d1ef2c241b16b39122ad' })));
53
+ return (h("div", { key: '625a82decaddca7fc41585696f15a8fdd19c3127', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '059943f777aaf60a2de4026bcb25f561f66a5020' })));
54
54
  }
55
55
  static get is() { return "bs-tabs"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -75,7 +75,7 @@ export class BsTabs {
75
75
  "references": {
76
76
  "BsTabsType": {
77
77
  "location": "local",
78
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
78
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
79
79
  "id": "src/components/bs-tab/bs-tabs/bs-tabs.tsx::BsTabsType"
80
80
  }
81
81
  }
@@ -101,7 +101,7 @@ export class BsTabs {
101
101
  "references": {
102
102
  "BsTabsOrientation": {
103
103
  "location": "local",
104
- "path": "/Users/vivka/brandsync-web-components/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
104
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-tab/bs-tabs/bs-tabs.tsx",
105
105
  "id": "src/components/bs-tab/bs-tabs/bs-tabs.tsx::BsTabsOrientation"
106
106
  }
107
107
  }
@@ -0,0 +1,59 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ describe('bs-toast', () => {
3
+ it('defaults to the "info" state', async () => {
4
+ const { root } = await render(h("bs-toast", null, "Files uploaded successfully."));
5
+ const container = root.shadowRoot.querySelector('[part="container"]');
6
+ expect(container).toHaveClass('bs-toast--info');
7
+ });
8
+ ['info', 'success', 'warning', 'error'].forEach(state => {
9
+ it(`applies the "${state}" state class`, async () => {
10
+ const { root } = await render(h("bs-toast", { state: state }, "Message"));
11
+ const container = root.shadowRoot.querySelector('[part="container"]');
12
+ expect(container).toHaveClass(`bs-toast--${state}`);
13
+ });
14
+ });
15
+ it('renders the slotted message', async () => {
16
+ const { root } = await render(h("bs-toast", null, "Files uploaded successfully."));
17
+ expect(root).toHaveTextContent('Files uploaded successfully.');
18
+ });
19
+ describe('icon per state', () => {
20
+ it('renders an icon for the info state', async () => {
21
+ const { root } = await render(h("bs-toast", { state: "info" }, "Message"));
22
+ const icon = root.shadowRoot.querySelector('[part="icon"]');
23
+ expect(icon.querySelector('svg')).not.toBeNull();
24
+ });
25
+ it('renders a different icon markup per state', async () => {
26
+ const renders = await Promise.all(['info', 'success', 'warning', 'error'].map(async (state) => {
27
+ const { root } = await render(h("bs-toast", { state: state }, "Message"));
28
+ return root.shadowRoot.querySelector('[part="icon"]').innerHTML;
29
+ }));
30
+ expect(new Set(renders).size).toBe(renders.length);
31
+ });
32
+ });
33
+ describe('close button', () => {
34
+ it('always renders a close button with an accessible name', async () => {
35
+ const { root } = await render(h("bs-toast", null, "Message"));
36
+ const close = root.shadowRoot.querySelector('[part="close"]');
37
+ expect(close).not.toBeNull();
38
+ expect(close).toEqualAttribute('aria-label', 'Dismiss');
39
+ });
40
+ it('emits bsDismiss when the close button is clicked', async () => {
41
+ const { root, spyOnEvent } = await render(h("bs-toast", null, "Message"));
42
+ const dismissSpy = spyOnEvent('bsDismiss');
43
+ root.shadowRoot.querySelector('[part="close"]').click();
44
+ expect(dismissSpy).toHaveReceivedEventTimes(1);
45
+ });
46
+ });
47
+ describe('aria-live', () => {
48
+ it('uses aria-live="polite" for non-error states', async () => {
49
+ const { root } = await render(h("bs-toast", { state: "success" }, "Message"));
50
+ const container = root.shadowRoot.querySelector('[part="container"]');
51
+ expect(container).toEqualAttribute('aria-live', 'polite');
52
+ });
53
+ it('uses aria-live="assertive" for the error state', async () => {
54
+ const { root } = await render(h("bs-toast", { state: "error" }, "Message"));
55
+ const container = root.shadowRoot.querySelector('[part="container"]');
56
+ expect(container).toEqualAttribute('aria-live', 'assertive');
57
+ });
58
+ });
59
+ });
@@ -0,0 +1,151 @@
1
+ /**
2
+ * @prop --bs-toast-radius: Corner radius of the toast. Aliased to --bs-border-radius-100.
3
+ * @prop --bs-toast-shadow: Elevation shadow, since a toast floats above page content. Aliased to --bs-shadow-md.
4
+ * @prop --bs-toast-content-padding-y: Top/bottom padding of the content area. Aliased to --bs-spacing-200.
5
+ * @prop --bs-toast-content-padding-x: Left padding of the content area (the toast's own left edge). Aliased to --bs-spacing-200.
6
+ * @prop --bs-toast-content-gap: Gap between the icon and the message. Aliased to --bs-spacing-150.
7
+ * @prop --bs-toast-font-size: Message font size. Aliased to --bs-font-size-md.
8
+ * @prop --bs-toast-line-height: Message line height. Aliased to --bs-line-height-body-md.
9
+ * @prop --bs-toast-actions-padding-y: Top/bottom padding of the actions area. Aliased to --bs-spacing-50.
10
+ * @prop --bs-toast-actions-padding-x: Right padding of the actions area (the toast's own right edge). Aliased to --bs-spacing-100.
11
+ * @prop --bs-toast-close-radius: Corner radius of the close button. Aliased to --bs-border-radius-100.
12
+ * @prop --bs-toast-surface-info: Toast background, state="info". Aliased to --bs-color-info-container.
13
+ * @prop --bs-toast-text-info: Icon/message/close color, state="info". Aliased to --bs-text-info.
14
+ * @prop --bs-toast-surface-warning: Toast background, state="warning". Aliased to --bs-color-warning-container.
15
+ * @prop --bs-toast-text-warning: Icon/message/close color, state="warning". Aliased to --bs-text-warning.
16
+ * @prop --bs-toast-surface-success: Toast background, state="success". Aliased to --bs-color-success-container.
17
+ * @prop --bs-toast-text-success: Icon/message/close color, state="success". Aliased to --bs-text-success.
18
+ * @prop --bs-toast-surface-error: Toast background, state="error". Aliased to --bs-color-error-container.
19
+ * @prop --bs-toast-text-error: Icon/message/close color, state="error". Aliased to --bs-text-error.
20
+ */
21
+ :host {
22
+ display: inline-flex;
23
+
24
+ --bs-toast-radius: var(--bs-border-radius-100);
25
+ --bs-toast-shadow: var(--bs-shadow-md);
26
+ --bs-toast-content-padding-y: var(--bs-spacing-200);
27
+ --bs-toast-content-padding-x: var(--bs-spacing-200);
28
+ --bs-toast-content-gap: var(--bs-spacing-150);
29
+ --bs-toast-font-size: var(--bs-font-size-md);
30
+ --bs-toast-line-height: var(--bs-line-height-body-md);
31
+ --bs-toast-actions-padding-y: var(--bs-spacing-50);
32
+ --bs-toast-actions-padding-x: var(--bs-spacing-100);
33
+ --bs-toast-close-radius: var(--bs-border-radius-100);
34
+
35
+ --bs-toast-surface-info: var(--bs-color-info-container);
36
+ --bs-toast-text-info: var(--bs-text-info);
37
+
38
+ --bs-toast-surface-warning: var(--bs-color-warning-container);
39
+ --bs-toast-text-warning: var(--bs-text-warning);
40
+
41
+ --bs-toast-surface-success: var(--bs-color-success-container);
42
+ --bs-toast-text-success: var(--bs-text-success);
43
+
44
+ --bs-toast-surface-error: var(--bs-color-error-container);
45
+ --bs-toast-text-error: var(--bs-text-error);
46
+ }
47
+
48
+ .bs-toast {
49
+ display: flex;
50
+ align-items: center;
51
+ border-radius: var(--bs-toast-radius);
52
+ box-shadow: var(--bs-toast-shadow);
53
+ font-family: inherit;
54
+ }
55
+
56
+ /* Each state sets its own surface/text pair -- .bs-toast__icon, .bs-toast__message, and
57
+ .bs-toast__close all inherit `color` from here rather than each redeclaring it. */
58
+ .bs-toast--info {
59
+ background: var(--bs-toast-surface-info);
60
+ color: var(--bs-toast-text-info);
61
+ }
62
+
63
+ .bs-toast--warning {
64
+ background: var(--bs-toast-surface-warning);
65
+ color: var(--bs-toast-text-warning);
66
+ }
67
+
68
+ .bs-toast--success {
69
+ background: var(--bs-toast-surface-success);
70
+ color: var(--bs-toast-text-success);
71
+ }
72
+
73
+ .bs-toast--error {
74
+ background: var(--bs-toast-surface-error);
75
+ color: var(--bs-toast-text-error);
76
+ }
77
+
78
+ .bs-toast__content {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: var(--bs-toast-content-gap);
82
+ flex: 1 1 auto;
83
+ min-width: 0;
84
+ padding: var(--bs-toast-content-padding-y) 0 var(--bs-toast-content-padding-y) var(--bs-toast-content-padding-x);
85
+ }
86
+
87
+ .bs-toast__icon {
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ width: 24px;
92
+ height: 24px;
93
+ flex-shrink: 0;
94
+ color: inherit;
95
+ }
96
+
97
+ .bs-toast__icon svg {
98
+ width: 24px;
99
+ height: 24px;
100
+ }
101
+
102
+ .bs-toast__message {
103
+ flex: 1 1 auto;
104
+ min-width: 0;
105
+ font-size: var(--bs-toast-font-size);
106
+ line-height: calc(var(--bs-toast-line-height) * 1px);
107
+ }
108
+
109
+ .bs-toast__actions {
110
+ display: flex;
111
+ align-items: center;
112
+ align-self: stretch;
113
+ flex-shrink: 0;
114
+ padding: var(--bs-toast-actions-padding-y) var(--bs-toast-actions-padding-x) var(--bs-toast-actions-padding-y) 0;
115
+ }
116
+
117
+ .bs-toast__close {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ width: 44px;
122
+ height: 44px;
123
+ flex-shrink: 0;
124
+ padding: 0;
125
+ border: none;
126
+ background: transparent;
127
+ border-radius: var(--bs-toast-close-radius);
128
+ color: inherit;
129
+ cursor: pointer;
130
+ }
131
+
132
+ .bs-toast__close svg {
133
+ width: 24px;
134
+ height: 24px;
135
+ }
136
+
137
+ /* Same color-mix tint technique as bs-snackbar's close button -- a transparent background with
138
+ only text color, so a real added tint (not an opacity blend toward whatever's behind) is needed
139
+ for hover/pressed feedback to read correctly on the light pastel state surfaces. */
140
+ .bs-toast__close:hover {
141
+ background: color-mix(in srgb, currentColor 12%, transparent);
142
+ }
143
+
144
+ .bs-toast__close:active {
145
+ background: color-mix(in srgb, currentColor 24%, transparent);
146
+ }
147
+
148
+ .bs-toast__close:focus-visible {
149
+ outline: 2px solid currentColor;
150
+ outline-offset: 2px;
151
+ }
@@ -0,0 +1,108 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * A transient status message for confirming the result of an action (e.g. "Files uploaded
4
+ * successfully.") -- a state-specific icon, a message, and a close button.
5
+ *
6
+ * This component only renders the toast itself -- it doesn't manage its own visibility, timing, or
7
+ * stacking. A consumer (typically a small "toast manager" utility) creates one per message and
8
+ * removes it from the DOM again, whether on a timer or on `bsDismiss`. Figma's spec doesn't show
9
+ * auto-dismiss timing at all (it's a static visual spec), so this deliberately doesn't invent one.
10
+ *
11
+ * @slot - Default slot: the message text.
12
+ * @part container - The outer toast.
13
+ * @part icon - The leading icon wrapper.
14
+ * @part message - The message text wrapper.
15
+ * @part close - The close button.
16
+ */
17
+ export class BsToast {
18
+ /** Semantic state. Each state has its own icon and matching container/text tokens -- there is
19
+ * no neutral/default state. */
20
+ state = 'info';
21
+ /** Fires when the close button is clicked. This component doesn't remove itself from the DOM --
22
+ * the consumer is expected to do that (or hide it) in response to this event. */
23
+ bsDismiss;
24
+ onDismiss = () => {
25
+ this.bsDismiss.emit();
26
+ };
27
+ render() {
28
+ return (h("div", { key: '46791568d11373681bdb2eae526fc29f93cc1ba6', part: "container", class: `bs-toast bs-toast--${this.state}`, role: "status", "aria-live": this.state === 'error' ? 'assertive' : 'polite' }, h("div", { key: '77b3faf40813c86dd624ec665e6e4eb0e6cb80b8', class: "bs-toast__content" }, h("span", { key: 'b8c2e8d6c729b8aaaf540906f55feaf95ea0d42c', part: "icon", class: "bs-toast__icon", "aria-hidden": "true" }, h(StateIcon, { key: '4c69c6dc371c2f7bc1cf393c293fadfd30fabcea', state: this.state })), h("span", { key: '3938894f0ad2c99bece035b5049b806847b6fc69', part: "message", class: "bs-toast__message" }, h("slot", { key: '35566107844c74a57b37b00d369a8396db821f5f' }))), h("div", { key: 'df56dba231fa2e6cf4ad5bd57bb2b4608161294d', class: "bs-toast__actions" }, h("button", { key: 'c0f78562bd1acbc421b87d6915d48c7768795e78', part: "close", type: "button", class: "bs-toast__close", "aria-label": "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: 'b74a4cbb76307190bf9af2651e52791ba814b2af' })))));
29
+ }
30
+ static get is() { return "bs-toast"; }
31
+ static get encapsulation() { return "shadow"; }
32
+ static get originalStyleUrls() {
33
+ return {
34
+ "$": ["bs-toast.css"]
35
+ };
36
+ }
37
+ static get styleUrls() {
38
+ return {
39
+ "$": ["bs-toast.css"]
40
+ };
41
+ }
42
+ static get properties() {
43
+ return {
44
+ "state": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "BsToastState",
49
+ "resolved": "\"error\" | \"info\" | \"success\" | \"warning\"",
50
+ "references": {
51
+ "BsToastState": {
52
+ "location": "local",
53
+ "path": "/home/runner/work/Brandsync-webcomponents/Brandsync-webcomponents/packages/wc/src/components/bs-toast/bs-toast.tsx",
54
+ "id": "src/components/bs-toast/bs-toast.tsx::BsToastState"
55
+ }
56
+ }
57
+ },
58
+ "required": false,
59
+ "optional": false,
60
+ "docs": {
61
+ "tags": [],
62
+ "text": "Semantic state. Each state has its own icon and matching container/text tokens -- there is\nno neutral/default state."
63
+ },
64
+ "getter": false,
65
+ "setter": false,
66
+ "reflect": false,
67
+ "attribute": "state",
68
+ "defaultValue": "'info'"
69
+ }
70
+ };
71
+ }
72
+ static get events() {
73
+ return [{
74
+ "method": "bsDismiss",
75
+ "name": "bsDismiss",
76
+ "bubbles": true,
77
+ "cancelable": true,
78
+ "composed": true,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "Fires when the close button is clicked. This component doesn't remove itself from the DOM --\nthe consumer is expected to do that (or hide it) in response to this event."
82
+ },
83
+ "complexType": {
84
+ "original": "void",
85
+ "resolved": "void",
86
+ "references": {}
87
+ }
88
+ }];
89
+ }
90
+ }
91
+ const StateIcon = ({ state }) => {
92
+ switch (state) {
93
+ case 'success':
94
+ return h(CheckCircleIcon, null);
95
+ case 'warning':
96
+ return h(WarningIcon, null);
97
+ case 'error':
98
+ return h(XCircleIcon, null);
99
+ case 'info':
100
+ default:
101
+ return h(InfoIcon, null);
102
+ }
103
+ };
104
+ const InfoIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 11V16.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 8.25V7.75", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
105
+ const CheckCircleIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M8.25 12.75L10.5 15L15.75 9.75", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
106
+ const WarningIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M10.4384 4.42212C11.1155 3.22528 12.8845 3.22528 13.5616 4.42212L20.6023 16.8508C21.2627 18.0182 20.4022 19.5 19.0407 19.5H4.95933C3.5978 19.5 2.73734 18.0182 3.39773 16.8508L10.4384 4.42212Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 9.75V13.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 16.25V16.75", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
107
+ const XCircleIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M9.75 9.75L14.25 14.25", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M14.25 9.75L9.75 14.25", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
108
+ const CloseIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M18.75 5.25L5.25 18.75", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M18.75 18.75L5.25 5.25", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));