@brandsync/wc 1.14.0 → 1.15.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 (352) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/REFERENCE.md +77 -0
  3. package/custom-elements.json +693 -0
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/{p-9d660c03.entry.js → p-0f97fe35.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-c488cc8b.entry.js → p-1b4c0971.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-df3e7973.entry.js → p-1bf8fbbb.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-b6ac1b50.entry.js → p-1ca8b01e.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-47cd19aa.entry.js → p-23379d7c.entry.js} +1 -1
  10. package/dist/brandsync-wc/{p-b793a0d6.entry.js → p-2e285364.entry.js} +1 -1
  11. package/dist/brandsync-wc/{p-204cc690.entry.js → p-3488c4fc.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-e1b7bea7.entry.js → p-34b0c048.entry.js} +1 -1
  13. package/dist/brandsync-wc/p-36fe783a.entry.js +1 -0
  14. package/dist/brandsync-wc/{p-8184d7de.entry.js → p-38ac9aad.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-16c78ff6.entry.js → p-3c21d0bf.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-6e923ebc.entry.js → p-401b3d3d.entry.js} +1 -1
  17. package/dist/brandsync-wc/p-45986ad4.entry.js +1 -0
  18. package/dist/brandsync-wc/{p-227a5182.entry.js → p-4ca40386.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-9125632c.entry.js → p-4ed00786.entry.js} +1 -1
  20. package/dist/brandsync-wc/{p-bee30626.entry.js → p-538d5b58.entry.js} +1 -1
  21. package/dist/brandsync-wc/{p-9fa67924.entry.js → p-54f9529f.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-1b5cc9b8.entry.js → p-5a45ef51.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-ce16f038.entry.js → p-5ed1f45e.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-10290c41.entry.js → p-65fa1b21.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-e6fc2cd4.entry.js → p-6cb21302.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-31cd66e0.entry.js → p-6df48031.entry.js} +1 -1
  27. package/dist/brandsync-wc/p-769c5b4a.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-d892277f.entry.js → p-7a072e64.entry.js} +1 -1
  29. package/dist/brandsync-wc/p-7b3518b8.entry.js +1 -0
  30. package/dist/brandsync-wc/{p-658532b7.entry.js → p-86774165.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-e0927a9a.entry.js → p-87d44938.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-cc1055e6.entry.js → p-89ea6366.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-4b40a596.entry.js → p-912629c6.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-c67bc817.entry.js → p-9beeb30c.entry.js} +1 -1
  35. package/dist/brandsync-wc/{p-315b510c.entry.js → p-a56bc608.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-2967240d.entry.js → p-abfa43f5.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-2e68b76e.entry.js → p-ac9472ec.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-686297f1.entry.js → p-b6081bba.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-833f9dc4.entry.js → p-b663ee67.entry.js} +1 -1
  40. package/dist/brandsync-wc/{p-dd52209a.entry.js → p-b67a0c8f.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-80700878.entry.js → p-b9c0b481.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-fa6b9750.entry.js → p-b9c9bcba.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-617bd76d.entry.js → p-baa3d37a.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-2c1efaa1.entry.js → p-bc97ece8.entry.js} +1 -1
  45. package/dist/brandsync-wc/p-c25553bc.entry.js +1 -0
  46. package/dist/brandsync-wc/{p-45cb3e6d.entry.js → p-c85fe37b.entry.js} +1 -1
  47. package/dist/brandsync-wc/{p-056608f0.entry.js → p-cf287ff1.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-cc25ee67.entry.js → p-d165a742.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-51f40972.entry.js → p-d81c4f58.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-94d435a2.entry.js → p-dcacee29.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-3477539c.entry.js → p-e294f698.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-3dabf202.entry.js → p-e5f50e93.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-221244a9.entry.js → p-e72dd05e.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-0cb6fc39.entry.js → p-e9b6b30f.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-a2e59aca.entry.js → p-ed71eb02.entry.js} +1 -1
  56. package/dist/brandsync-wc/{p-e65d286c.entry.js → p-f0be9125.entry.js} +1 -1
  57. package/dist/brandsync-wc/p-f3cc961b.entry.js +1 -0
  58. package/dist/brandsync-wc/{p-6ca1e51b.entry.js → p-f4d1d56e.entry.js} +1 -1
  59. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  60. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  61. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  62. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  63. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  64. package/dist/cjs/bs-app-shell.cjs.entry.js +19 -0
  65. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  66. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  67. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  68. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  69. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  70. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  71. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  72. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  73. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  74. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  75. package/dist/cjs/bs-container.cjs.entry.js +23 -0
  76. package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
  77. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  78. package/dist/cjs/bs-divider.cjs.entry.js +29 -0
  79. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  80. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  81. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  82. package/dist/cjs/bs-grid.cjs.entry.js +55 -0
  83. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  84. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  85. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  86. package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
  87. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  88. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  89. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  90. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  91. package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
  92. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  94. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  95. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  96. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  97. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  98. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  99. package/dist/cjs/bs-skeleton.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  101. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  102. package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
  103. package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
  104. package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-stack.cjs.entry.js +81 -0
  106. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  107. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  108. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  109. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  110. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  111. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  114. package/dist/cjs/loader.cjs.js +1 -1
  115. package/dist/collection/collection-manifest.json +5 -0
  116. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  117. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  118. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  119. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  120. package/dist/collection/components/bs-app-shell/bs-app-shell.cmp.test.js +71 -0
  121. package/dist/collection/components/bs-app-shell/bs-app-shell.css +58 -0
  122. package/dist/collection/components/bs-app-shell/bs-app-shell.js +79 -0
  123. package/dist/collection/components/bs-app-shell/bs-app-shell.stories.js +34 -0
  124. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  125. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  126. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  127. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  128. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  129. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  130. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  131. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  132. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  133. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  134. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  135. package/dist/collection/components/bs-container/bs-container.cmp.test.js +59 -0
  136. package/dist/collection/components/bs-container/bs-container.css +16 -0
  137. package/dist/collection/components/bs-container/bs-container.js +88 -0
  138. package/dist/collection/components/bs-container/bs-container.stories.js +24 -0
  139. package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
  140. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  141. package/dist/collection/components/bs-divider/bs-divider.cmp.test.js +47 -0
  142. package/dist/collection/components/bs-divider/bs-divider.css +47 -0
  143. package/dist/collection/components/bs-divider/bs-divider.js +147 -0
  144. package/dist/collection/components/bs-divider/bs-divider.stories.js +32 -0
  145. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  146. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  147. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  148. package/dist/collection/components/bs-grid/bs-grid.cmp.test.js +58 -0
  149. package/dist/collection/components/bs-grid/bs-grid.css +10 -0
  150. package/dist/collection/components/bs-grid/bs-grid.js +208 -0
  151. package/dist/collection/components/bs-grid/bs-grid.stories.js +38 -0
  152. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  153. package/dist/collection/components/bs-input/bs-input.js +2 -2
  154. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  155. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  156. package/dist/collection/components/bs-message/bs-message.js +1 -1
  157. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  158. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  159. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  160. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  161. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  162. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  163. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  164. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  165. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  166. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  167. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  168. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  169. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  170. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  171. package/dist/collection/components/bs-stack/bs-stack.cmp.test.js +113 -0
  172. package/dist/collection/components/bs-stack/bs-stack.css +22 -0
  173. package/dist/collection/components/bs-stack/bs-stack.js +252 -0
  174. package/dist/collection/components/bs-stack/bs-stack.stories.js +36 -0
  175. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  176. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  177. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  178. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  179. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  180. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  181. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  182. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  183. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  184. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  185. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  186. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  187. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  188. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  189. package/dist/components/bs-accordion-group.js +1 -1
  190. package/dist/components/bs-ai-disclaimer.js +1 -1
  191. package/dist/components/bs-ai-greeting.js +1 -1
  192. package/dist/components/bs-ai-thinking.js +1 -1
  193. package/dist/components/bs-app-shell.d.ts +11 -0
  194. package/dist/components/bs-app-shell.js +1 -0
  195. package/dist/components/bs-attachment-list.js +1 -1
  196. package/dist/components/bs-attachment.js +1 -1
  197. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  198. package/dist/components/bs-breadcrumbs.js +1 -1
  199. package/dist/components/bs-button-skeleton.js +1 -1
  200. package/dist/components/bs-carousel.js +1 -1
  201. package/dist/components/bs-chatbot-feedback.js +1 -1
  202. package/dist/components/bs-chatbot-header.js +1 -1
  203. package/dist/components/bs-chatbot-response-action.js +1 -1
  204. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  205. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  206. package/dist/components/bs-checkbox-skeleton.js +1 -1
  207. package/dist/components/bs-citation-preview.js +1 -1
  208. package/dist/components/bs-container.d.ts +11 -0
  209. package/dist/components/bs-container.js +1 -0
  210. package/dist/components/bs-cookie-consent.js +1 -1
  211. package/dist/components/bs-data-table.js +1 -1
  212. package/dist/components/bs-datepicker.js +1 -1
  213. package/dist/components/bs-dialog.js +1 -1
  214. package/dist/components/bs-divider.d.ts +11 -0
  215. package/dist/components/bs-divider.js +1 -0
  216. package/dist/components/bs-error-page.js +1 -1
  217. package/dist/components/bs-file-upload-item.js +1 -1
  218. package/dist/components/bs-file-upload.js +1 -1
  219. package/dist/components/bs-grid.d.ts +11 -0
  220. package/dist/components/bs-grid.js +1 -0
  221. package/dist/components/bs-icon-button.js +1 -1
  222. package/dist/components/bs-icon-tile.js +1 -1
  223. package/dist/components/bs-inline-tab.js +1 -1
  224. package/dist/components/bs-input.js +1 -1
  225. package/dist/components/bs-menu-item.js +1 -1
  226. package/dist/components/bs-menu.js +1 -1
  227. package/dist/components/bs-message-list.js +1 -1
  228. package/dist/components/bs-message.js +1 -1
  229. package/dist/components/bs-navigation-drawer-item.js +1 -1
  230. package/dist/components/bs-navigation-drawer.js +1 -1
  231. package/dist/components/bs-navigation-header.js +1 -1
  232. package/dist/components/bs-onboarding-checklist.js +1 -1
  233. package/dist/components/bs-pagination.js +1 -1
  234. package/dist/components/bs-popover.js +1 -1
  235. package/dist/components/bs-product-tour.js +1 -1
  236. package/dist/components/bs-progress-linear.js +1 -1
  237. package/dist/components/bs-progress.js +1 -1
  238. package/dist/components/bs-qr-code.js +1 -1
  239. package/dist/components/bs-radio.js +1 -1
  240. package/dist/components/bs-session-timeout.js +1 -1
  241. package/dist/components/bs-side-panel.js +1 -1
  242. package/dist/components/bs-skeleton.js +1 -1
  243. package/dist/components/bs-slider.js +1 -1
  244. package/dist/components/bs-snackbar.js +1 -1
  245. package/dist/components/bs-source-link.js +1 -1
  246. package/dist/components/bs-spinner.js +1 -1
  247. package/dist/components/bs-split-pane.js +1 -1
  248. package/dist/components/bs-stack.d.ts +11 -0
  249. package/dist/components/bs-stack.js +1 -0
  250. package/dist/components/bs-stepper-step.js +1 -1
  251. package/dist/components/bs-stepper.js +1 -1
  252. package/dist/components/bs-switch.js +1 -1
  253. package/dist/components/bs-tab.js +1 -1
  254. package/dist/components/bs-tabs.js +1 -1
  255. package/dist/components/bs-timepicker.js +1 -1
  256. package/dist/components/bs-toast.js +1 -1
  257. package/dist/components/bs-tooltip-trigger.js +1 -1
  258. package/dist/components/bs-tooltip.js +1 -1
  259. package/dist/components/bs-whats-new-entry.js +1 -1
  260. package/dist/components/bs-whats-new.js +1 -1
  261. package/dist/components/{p-CrmEXUwm.js → p-B128GX8H.js} +1 -1
  262. package/dist/components/{p-Dm3TqgV_.js → p-B3l4WpgS.js} +1 -1
  263. package/dist/components/{p-Rx4bpeYN.js → p-B80vOwH6.js} +1 -1
  264. package/dist/components/{p-nC2VxRNo.js → p-Bqe4waKJ.js} +1 -1
  265. package/dist/components/{p-BIW9eUic.js → p-BsbtyRJV.js} +1 -1
  266. package/dist/components/{p-BESyTlfT.js → p-BvYkZcOU.js} +1 -1
  267. package/dist/components/{p-CDYw4Eyj.js → p-ByKcHsj0.js} +1 -1
  268. package/dist/components/{p-BJR8KVFc.js → p-ByLUtXxO.js} +1 -1
  269. package/dist/components/p-C7RZ6qZC.js +1 -0
  270. package/dist/components/{p-DpVeeIko.js → p-CK7fiES5.js} +1 -1
  271. package/dist/components/{p-QnTjSed5.js → p-CQjSDdH7.js} +1 -1
  272. package/dist/components/{p-HAmR4gM2.js → p-D0KM1R2i.js} +1 -1
  273. package/dist/components/{p-HzaOqQ0U.js → p-ElcsxZSh.js} +1 -1
  274. package/dist/components/{p-DAwSBMeM.js → p-GTDI4Ibw.js} +1 -1
  275. package/dist/components/{p-zscW5LNR.js → p-Mf1jorXP.js} +1 -1
  276. package/dist/components/{p-CiSEDtbE.js → p-kDJsWjTN.js} +1 -1
  277. package/dist/esm/brandsync-wc.js +1 -1
  278. package/dist/esm/bs-accordion-group.entry.js +1 -1
  279. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  280. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  281. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  282. package/dist/esm/bs-app-shell.entry.js +17 -0
  283. package/dist/esm/bs-attachment-list.entry.js +1 -1
  284. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  285. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  286. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  287. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  288. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  289. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  290. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  291. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  292. package/dist/esm/bs-citation-preview.entry.js +1 -1
  293. package/dist/esm/bs-container.entry.js +21 -0
  294. package/dist/esm/bs-data-table.entry.js +2 -2
  295. package/dist/esm/bs-datepicker.entry.js +1 -1
  296. package/dist/esm/bs-divider.entry.js +27 -0
  297. package/dist/esm/bs-error-page.entry.js +1 -1
  298. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  299. package/dist/esm/bs-file-upload.entry.js +1 -1
  300. package/dist/esm/bs-grid.entry.js +53 -0
  301. package/dist/esm/bs-icon-button.entry.js +1 -1
  302. package/dist/esm/bs-icon-tile.entry.js +2 -2
  303. package/dist/esm/bs-inline-tab.entry.js +1 -1
  304. package/dist/esm/bs-input_3.entry.js +4 -4
  305. package/dist/esm/bs-message-list.entry.js +1 -1
  306. package/dist/esm/bs-message.entry.js +1 -1
  307. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  308. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  309. package/dist/esm/bs-navigation-header.entry.js +1 -1
  310. package/dist/esm/bs-pagination.entry.js +1 -1
  311. package/dist/esm/bs-popover.entry.js +1 -1
  312. package/dist/esm/bs-progress-linear.entry.js +2 -2
  313. package/dist/esm/bs-progress.entry.js +2 -2
  314. package/dist/esm/bs-qr-code.entry.js +1 -1
  315. package/dist/esm/bs-radio.entry.js +1 -1
  316. package/dist/esm/bs-session-timeout.entry.js +1 -1
  317. package/dist/esm/bs-skeleton.entry.js +1 -1
  318. package/dist/esm/bs-slider.entry.js +1 -1
  319. package/dist/esm/bs-snackbar.entry.js +1 -1
  320. package/dist/esm/bs-source-link.entry.js +2 -2
  321. package/dist/esm/bs-spinner.entry.js +1 -1
  322. package/dist/esm/bs-split-pane.entry.js +1 -1
  323. package/dist/esm/bs-stack.entry.js +79 -0
  324. package/dist/esm/bs-stepper-step.entry.js +1 -1
  325. package/dist/esm/bs-stepper.entry.js +1 -1
  326. package/dist/esm/bs-switch.entry.js +1 -1
  327. package/dist/esm/bs-tab_3.entry.js +3 -3
  328. package/dist/esm/bs-timepicker.entry.js +2 -2
  329. package/dist/esm/bs-toast.entry.js +1 -1
  330. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  331. package/dist/esm/bs-tooltip.entry.js +1 -1
  332. package/dist/esm/loader.js +1 -1
  333. package/dist/types/components/bs-app-shell/bs-app-shell.cmp.test.d.ts +1 -0
  334. package/dist/types/components/bs-app-shell/bs-app-shell.d.ts +40 -0
  335. package/dist/types/components/bs-app-shell/bs-app-shell.stories.d.ts +11 -0
  336. package/dist/types/components/bs-container/bs-container.cmp.test.d.ts +1 -0
  337. package/dist/types/components/bs-container/bs-container.d.ts +22 -0
  338. package/dist/types/components/bs-container/bs-container.stories.d.ts +15 -0
  339. package/dist/types/components/bs-divider/bs-divider.cmp.test.d.ts +1 -0
  340. package/dist/types/components/bs-divider/bs-divider.d.ts +29 -0
  341. package/dist/types/components/bs-divider/bs-divider.stories.d.ts +16 -0
  342. package/dist/types/components/bs-grid/bs-grid.cmp.test.d.ts +1 -0
  343. package/dist/types/components/bs-grid/bs-grid.d.ts +43 -0
  344. package/dist/types/components/bs-grid/bs-grid.stories.d.ts +18 -0
  345. package/dist/types/components/bs-stack/bs-stack.cmp.test.d.ts +1 -0
  346. package/dist/types/components/bs-stack/bs-stack.d.ts +46 -0
  347. package/dist/types/components/bs-stack/bs-stack.stories.d.ts +18 -0
  348. package/dist/types/components.d.ts +582 -0
  349. package/package.json +1 -1
  350. package/reference.d.ts +15 -0
  351. package/reference.json +178 -0
  352. package/dist/brandsync-wc/p-0e738622.entry.js +0 -1
@@ -0,0 +1,47 @@
1
+ :host {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ align-self: stretch;
5
+ flex: none;
6
+ --bs-divider-thickness: 1px;
7
+ --bs-divider-color: var(--bs-border-neutral-container);
8
+ --bs-divider-inset: var(--bs-spacing-300);
9
+ }
10
+
11
+ :host([variant='subtle']) {
12
+ --bs-divider-color: var(--bs-neutral-100);
13
+ }
14
+
15
+ :host([orientation='vertical']) {
16
+ width: var(--bs-divider-thickness);
17
+ min-height: 1em;
18
+ }
19
+
20
+ :host(:not([orientation='vertical'])) {
21
+ width: 100%;
22
+ height: var(--bs-divider-thickness);
23
+ }
24
+
25
+ .line {
26
+ box-sizing: border-box;
27
+ width: 100%;
28
+ height: 100%;
29
+ background: var(--bs-divider-color);
30
+ }
31
+
32
+ :host([inset='start']:not([orientation='vertical'])) .line {
33
+ margin-inline-start: var(--bs-divider-inset);
34
+ width: calc(100% - var(--bs-divider-inset));
35
+ }
36
+ :host([inset='both']:not([orientation='vertical'])) .line {
37
+ margin-inline: var(--bs-divider-inset);
38
+ width: calc(100% - 2 * var(--bs-divider-inset));
39
+ }
40
+ :host([inset='start'][orientation='vertical']) .line {
41
+ margin-block-start: var(--bs-divider-inset);
42
+ height: calc(100% - var(--bs-divider-inset));
43
+ }
44
+ :host([inset='both'][orientation='vertical']) .line {
45
+ margin-block: var(--bs-divider-inset);
46
+ height: calc(100% - 2 * var(--bs-divider-inset));
47
+ }
@@ -0,0 +1,147 @@
1
+ import { Host, h } from "@stencil/core";
2
+ /**
3
+ * A thin line that separates content, horizontally or vertically.
4
+ *
5
+ * ## When to use
6
+ * - Separating groups of related content in a list, menu, toolbar or card.
7
+ *
8
+ * ## When not to use
9
+ * - Adding vertical space between blocks (use `bs-stack` gap or spacing tokens).
10
+ * - Drawing a border around a surface (use `bs-card`).
11
+ *
12
+ * @part line - The visible line element.
13
+ * @prop --bs-divider-thickness - Line thickness. Defaults to `1px`.
14
+ * @prop --bs-divider-color - Line colour. Aliased to `--bs-border-neutral-container` (`default`) or `--bs-neutral-100` (`subtle`).
15
+ * @prop --bs-divider-inset - Indent applied by `inset`. Aliased to `--bs-spacing-300`.
16
+ */
17
+ export class BsDivider {
18
+ /** Direction of the line. A vertical divider stretches to the height of its container. */
19
+ orientation = 'horizontal';
20
+ /** Visual weight of the line. */
21
+ variant = 'default';
22
+ /** Indents the line from its start edge, or from both edges. */
23
+ inset = 'none';
24
+ /** Purely visual: hides the divider from assistive technology instead of exposing a separator. */
25
+ decorative = false;
26
+ render() {
27
+ const orientation = this.orientation === 'vertical' ? 'vertical' : 'horizontal';
28
+ const a11y = this.decorative
29
+ ? { role: 'none', 'aria-hidden': 'true' }
30
+ : { role: 'separator', 'aria-orientation': orientation };
31
+ return (h(Host, { key: '72be86556d663c54fde0d585ae5850b236389b23', ...a11y }, h("div", { key: 'a08f191d8f900bc88fc0c44be08da1a7d8eb2e3c', class: "line", part: "line" })));
32
+ }
33
+ static get is() { return "bs-divider"; }
34
+ static get encapsulation() { return "shadow"; }
35
+ static get originalStyleUrls() {
36
+ return {
37
+ "$": ["bs-divider.css"]
38
+ };
39
+ }
40
+ static get styleUrls() {
41
+ return {
42
+ "$": ["bs-divider.css"]
43
+ };
44
+ }
45
+ static get properties() {
46
+ return {
47
+ "orientation": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "BsDividerOrientation",
52
+ "resolved": "\"horizontal\" | \"vertical\"",
53
+ "references": {
54
+ "BsDividerOrientation": {
55
+ "location": "local",
56
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
57
+ "id": "src/components/bs-divider/bs-divider.tsx::BsDividerOrientation"
58
+ }
59
+ }
60
+ },
61
+ "required": false,
62
+ "optional": false,
63
+ "docs": {
64
+ "tags": [],
65
+ "text": "Direction of the line. A vertical divider stretches to the height of its container."
66
+ },
67
+ "getter": false,
68
+ "setter": false,
69
+ "reflect": true,
70
+ "attribute": "orientation",
71
+ "defaultValue": "'horizontal'"
72
+ },
73
+ "variant": {
74
+ "type": "string",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "BsDividerVariant",
78
+ "resolved": "\"default\" | \"subtle\"",
79
+ "references": {
80
+ "BsDividerVariant": {
81
+ "location": "local",
82
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
83
+ "id": "src/components/bs-divider/bs-divider.tsx::BsDividerVariant"
84
+ }
85
+ }
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": "Visual weight of the line."
92
+ },
93
+ "getter": false,
94
+ "setter": false,
95
+ "reflect": true,
96
+ "attribute": "variant",
97
+ "defaultValue": "'default'"
98
+ },
99
+ "inset": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "BsDividerInset",
104
+ "resolved": "\"both\" | \"none\" | \"start\"",
105
+ "references": {
106
+ "BsDividerInset": {
107
+ "location": "local",
108
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-divider/bs-divider.tsx",
109
+ "id": "src/components/bs-divider/bs-divider.tsx::BsDividerInset"
110
+ }
111
+ }
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Indents the line from its start edge, or from both edges."
118
+ },
119
+ "getter": false,
120
+ "setter": false,
121
+ "reflect": true,
122
+ "attribute": "inset",
123
+ "defaultValue": "'none'"
124
+ },
125
+ "decorative": {
126
+ "type": "boolean",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "boolean",
130
+ "resolved": "boolean",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "Purely visual: hides the divider from assistive technology instead of exposing a separator."
138
+ },
139
+ "getter": false,
140
+ "setter": false,
141
+ "reflect": true,
142
+ "attribute": "decorative",
143
+ "defaultValue": "false"
144
+ }
145
+ };
146
+ }
147
+ }
@@ -0,0 +1,32 @@
1
+ import { html } from "lit";
2
+ import { componentDescription } from "../../stories-utils";
3
+ const meta = {
4
+ title: 'Components/bs-divider',
5
+ parameters: { docs: { description: { component: componentDescription('bs-divider') } } },
6
+ render: args => html `
7
+ <div style="display: flex; flex-direction: ${args.orientation === 'vertical' ? 'row' : 'column'}; gap: var(--bs-spacing-200); height: 80px; width: 320px">
8
+ <span>Above</span>
9
+ <bs-divider
10
+ orientation=${args.orientation}
11
+ variant=${args.variant}
12
+ inset=${args.inset}
13
+ ?decorative=${args.decorative}
14
+ ></bs-divider>
15
+ <span>Below</span>
16
+ </div>
17
+ `,
18
+ argTypes: {
19
+ orientation: { control: 'inline-radio', options: ['horizontal', 'vertical'] },
20
+ variant: { control: 'inline-radio', options: ['subtle', 'default'] },
21
+ inset: { control: 'inline-radio', options: ['none', 'start', 'both'] },
22
+ decorative: { control: 'boolean' },
23
+ },
24
+ args: { orientation: 'horizontal', variant: 'default', inset: 'none', decorative: false },
25
+ };
26
+ export default meta;
27
+ export const Default = {};
28
+ export const Subtle = { args: { variant: 'subtle' } };
29
+ export const Vertical = { args: { orientation: 'vertical' } };
30
+ export const InsetStart = { args: { inset: 'start' } };
31
+ export const InsetBoth = { args: { inset: 'both' } };
32
+ export const Decorative = { args: { decorative: true } };
@@ -65,7 +65,7 @@ export class BsErrorPage {
65
65
  const primary = this.primaryLabel ?? d.primary;
66
66
  const secondary = this.secondaryLabel ?? d.secondary;
67
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)))));
68
+ return (h("bs-card", { key: '68774f7ab0252b92905900f06f564d1c2a8ce163', part: "container", class: "bs-error-page", surface: "base" }, h("div", { key: 'f263ce4991e2aa4553e430e60e646df5fc257120', class: "bs-error-page__body" }, h("div", { key: '3aa6b36e1aa05ea63e52e8c79684b166853e5950', class: "bs-error-page__art-group" }, h("bs-icon-tile", { key: 'b0b7f3fa925acef6b95e23136df7f9bac3e43ff4', part: "art", class: `bs-error-page__art ${d.info ? 'bs-error-page__art--info' : ''}`, intent: d.intent, size: "lg" }, h("slot", { key: 'e33db2aa8c275de0e32effc759e177ef1ee46c6d', name: "icon" }, d.glyph())), code && (h("span", { key: '9f576963f7399e4ca6e86cfd0331f0c7c7119886', part: "code", class: "bs-error-page__code" }, code))), h(`h${level}`, { part: 'heading', class: { 'bs-error-page__heading': true } }, heading), description && (h("p", { key: 'ea4861b666f95c7416a4d54152f8ffd1b900eb61', part: "description", class: "bs-error-page__description" }, description)), (primary || secondary) && (h("div", { key: 'e0ec38c28b957390486fce52497f91661abc7ef1', part: "actions", class: "bs-error-page__actions" }, primary && (h("bs-button", { key: 'a2b190366240c9fbe3e7a78a16b9881a3ad4468a', part: "primary", variant: "primary", onClick: () => this.bsPrimary.emit() }, primary)), secondary && (h("bs-button", { key: 'bef26b3dcc61c4e968c054d35ed67430884c9f99', part: "secondary", variant: "outlined", onClick: () => this.bsSecondary.emit() }, secondary)))), this.reference && (h("p", { key: 'b8de6e83c2c68ca8880afc781e8ffceb03f23164', part: "reference", class: "bs-error-page__reference" }, this.reference)))));
69
69
  }
70
70
  static get is() { return "bs-error-page"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -112,7 +112,7 @@ export class BsFileUpload {
112
112
  this.handleFiles(files);
113
113
  };
114
114
  render() {
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 })));
115
+ return (h("div", { key: 'd9f116b4dcf8641a590581c24176d4659a2b6892', 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: '5aa0c733860505646bde5cad571a4d850d38f979', part: "icon", class: "bs-file-upload__icon" }, h("slot", { key: '292d3074620f2a228dbe544363f7ef8cce4f194c', name: "icon" }, h(UploadIcon, { key: '65c343be45634d10d561ba0f7a3cdd201a7664e6' }))), h("div", { key: '69d1ddde89b8c26d7a40a963cf16d1519b5b1fd4', class: "bs-file-upload__content" }, h("div", { key: '7730fdb7efb8eeffb374fff22fdd9d60497eebce', class: "bs-file-upload__text" }, this.heading && (h("span", { key: '0ca349bd1fedd84d869b363da150e13c07623f3b', part: "heading", class: "bs-file-upload__heading" }, this.heading)), this.description && (h("span", { key: '522d99de1b5caf70cd7e44bf8e821fe49951c788', part: "description", id: "description", class: "bs-file-upload__description" }, this.description))), h("bs-button", { key: 'f7af51522dfb762102f0c17bcbfd0e737b52d783', part: "browse", variant: "neutral", size: "sm", disabled: this.disabled, onClick: this.onBrowse }, this.buttonLabel)), h("input", { key: '71a2262124fd84b52dbffa18966eb1479e1ad95a', 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: '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))));
89
+ return (h("div", { key: 'e109650dda74a0a0db7af7f621da5e70079a7830', part: "item", class: `bs-file-upload-item bs-file-upload-item--${this.state}` }, h("div", { key: '800f1bd6a8cabd97c0aa43fe9a521876d4e6feb8', part: "thumbnail", class: "bs-file-upload-item__thumbnail" }, h("slot", { key: 'e5696a2cf9d69579ff8fd79688f83879c4093c74', name: "thumbnail" }, this.thumbnailSrc ? (h("img", { class: "bs-file-upload-item__image", src: this.thumbnailSrc, alt: this.thumbnailAlt })) : (h(ImageIcon, null)))), h("div", { key: 'bc52ee589c5cf4040dcb1aa86cce0150136d71ae', class: "bs-file-upload-item__content" }, h("div", { key: 'a70dc514e89ebfb1de3e772652e6ab8b2987007a', class: "bs-file-upload-item__meta" }, h("span", { key: '1c0a8e151f284a8344650fb00912582c17d2d5ee', part: "name", class: "bs-file-upload-item__name" }, this.fileName), this.fileSize && (h("span", { key: 'f608a1ee6e44e34e9e67600622a180e676fb960a', part: "size", class: "bs-file-upload-item__size" }, this.fileSize))), this.renderStatus()), h("bs-icon-button", { key: '5781f2aa401d12d3a4f4b0172d64cb0b9ceacf00', 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,58 @@
1
+ import { render, h, describe, it, expect } from "@stencil/vitest";
2
+ const mount = (props = {}, width = 620, items = 6) => render(h("div", { style: { width: `${width}px` } }, h("style", null, ':root{--bs-spacing-100:10px;--bs-spacing-200:20px;--bs-spacing-300:30px}'), h("bs-grid", { ...props }, Array.from({ length: items }, (_, i) => (h("div", { style: { height: '40px' } }, i))))));
3
+ const container = (root) => root.querySelector('bs-grid').shadowRoot.querySelector('[part="container"]');
4
+ const items = (root) => Array.from(root.querySelectorAll('bs-grid > div'));
5
+ describe('bs-grid', () => {
6
+ it('defaults to one column', async () => {
7
+ const { root } = await mount();
8
+ expect(container(root).style.gridTemplateColumns).toContain('repeat(1, minmax(0px, 1fr))');
9
+ const xs = new Set(items(root).map(i => Math.round(i.getBoundingClientRect().left)));
10
+ expect(xs.size).toBe(1);
11
+ });
12
+ it('turns a number into equal columns', async () => {
13
+ const { root } = await mount({ columns: '3' });
14
+ expect(container(root).style.gridTemplateColumns).toContain('repeat(3, minmax(0px, 1fr))');
15
+ const xs = new Set(items(root).map(i => Math.round(i.getBoundingClientRect().left)));
16
+ expect(xs.size).toBe(3);
17
+ });
18
+ it('passes a raw template through', async () => {
19
+ const { root } = await mount({ columns: '100px 1fr' });
20
+ const [a, b] = items(root);
21
+ expect(Math.round(a.getBoundingClientRect().width)).toBe(100);
22
+ expect(b.getBoundingClientRect().left).toBeGreaterThan(a.getBoundingClientRect().right - 1);
23
+ });
24
+ it('maps gap tokens and lets rowGap/columnGap override per axis', async () => {
25
+ const { root } = await mount({ columns: '2', gap: '200', rowGap: '300' });
26
+ const c = container(root);
27
+ expect(c.style.columnGap).toContain('var(--bs-spacing-200)');
28
+ expect(c.style.rowGap).toContain('var(--bs-spacing-300)');
29
+ const [a, b, , d] = items(root);
30
+ const ra = a.getBoundingClientRect();
31
+ expect(Math.round(b.getBoundingClientRect().left - ra.right)).toBe(20);
32
+ expect(Math.round(d.getBoundingClientRect().top - items(root)[0].getBoundingClientRect().bottom)).toBe(30);
33
+ });
34
+ it('uses the default gap of 100 and falls back for unknown tokens', async () => {
35
+ const { root } = await mount({ columns: '2' });
36
+ expect(container(root).style.columnGap).toContain('var(--bs-spacing-100)');
37
+ const bad = await mount({ columns: '2', gap: '999' });
38
+ expect(container(bad.root).style.columnGap).toContain('var(--bs-spacing-100)');
39
+ });
40
+ it('exposes --bs-grid-gap as an override', async () => {
41
+ const { root } = await mount({ columns: '2' });
42
+ root.querySelector('bs-grid').style.setProperty('--bs-grid-gap', '40px');
43
+ const [a, b] = items(root);
44
+ expect(Math.round(b.getBoundingClientRect().left - a.getBoundingClientRect().right)).toBe(40);
45
+ });
46
+ it('auto-fits columns by minColumnWidth and overrides columns', async () => {
47
+ const wide = await mount({ columns: '2', minColumnWidth: '100px' }, 620);
48
+ expect(container(wide.root).style.gridTemplateColumns).toContain('auto-fit');
49
+ expect(new Set(items(wide.root).map(i => Math.round(i.getBoundingClientRect().left))).size).toBe(5);
50
+ const narrow = await mount({ minColumnWidth: '100px' }, 250);
51
+ expect(new Set(items(narrow.root).map(i => Math.round(i.getBoundingClientRect().left))).size).toBe(2);
52
+ });
53
+ it('aligns items', async () => {
54
+ const { root } = await mount({ columns: '2', align: 'center' }, 620, 2);
55
+ expect(container(root).style.alignItems).toBe('center');
56
+ expect(container(root).getBoundingClientRect().width).toBeGreaterThan(0);
57
+ });
58
+ });
@@ -0,0 +1,10 @@
1
+ :host {
2
+ display: block;
3
+ min-width: 0;
4
+ }
5
+
6
+ .bs-grid {
7
+ display: grid;
8
+ width: 100%;
9
+ box-sizing: border-box;
10
+ }
@@ -0,0 +1,208 @@
1
+ import { h } from "@stencil/core";
2
+ const SPACING_TOKENS = ['0', '25', '50', '75', '100', '150', '200', '250', '300', '350', '400', '500', '550', '600', '700', '800', '1000', '1200', '1500'];
3
+ const ALIGNS = ['start', 'center', 'end', 'stretch'];
4
+ /**
5
+ * A CSS grid layout wrapper. Children are placed in equal-width columns with a token-based gap.
6
+ *
7
+ * `columns` takes either a number (`"3"` becomes `repeat(3, minmax(0, 1fr))`) or any raw
8
+ * `grid-template-columns` value (`"200px 1fr"`). `minColumnWidth` is the responsive mechanism: it
9
+ * switches to `repeat(auto-fit, minmax(min(100%, X), 1fr))`, so the column count adapts to the
10
+ * container width and `columns` is ignored. There are deliberately no per-breakpoint props in v1.
11
+ *
12
+ * `gap`, `rowGap` and `columnGap` take spacing token names (`"200"` maps to `var(--bs-spacing-200)`);
13
+ * unknown names fall back to `100`.
14
+ *
15
+ * ## When to use
16
+ * - Card grids, form field grids and dashboards where items share equal column tracks.
17
+ * - Responsive galleries via `minColumnWidth`.
18
+ *
19
+ * ## When not to use
20
+ * - A single row or column of items with no wrapping (plain flex).
21
+ * - Resizable multi-pane layouts (use `bs-split-pane`) or the page frame (use `bs-app-shell`).
22
+ *
23
+ * @slot - The grid items.
24
+ * @part container - The grid element that holds the slotted items.
25
+ * @prop --bs-grid-gap - Gap on both axes. Overrides the `gap` prop's token (default `--bs-spacing-100`).
26
+ * @prop --bs-grid-row-gap - Row gap. Overrides `--bs-grid-gap` and the `rowGap` prop's token.
27
+ * @prop --bs-grid-column-gap - Column gap. Overrides `--bs-grid-gap` and the `columnGap` prop's token.
28
+ */
29
+ export class BsGrid {
30
+ /** A number of equal columns (`"3"`), or a raw `grid-template-columns` value. Ignored when `minColumnWidth` is set. */
31
+ columns = '1';
32
+ /** Spacing token name for the gap on both axes, e.g. `"200"` for `--bs-spacing-200`. */
33
+ gap = '100';
34
+ /** Spacing token name for the row gap; overrides `gap` for rows. */
35
+ rowGap;
36
+ /** Spacing token name for the column gap; overrides `gap` for columns. */
37
+ columnGap;
38
+ /** CSS length (e.g. `240px`). Switches to auto-fit columns at least this wide and overrides `columns`. */
39
+ minColumnWidth;
40
+ /** Block-axis alignment of items within their cell. */
41
+ align = 'stretch';
42
+ template() {
43
+ const min = this.minColumnWidth?.trim();
44
+ if (min)
45
+ return `repeat(auto-fit, minmax(min(100%, ${min}), 1fr))`;
46
+ const cols = (this.columns ?? '1').trim();
47
+ if (/^\d+$/.test(cols)) {
48
+ const n = parseInt(cols, 10);
49
+ return `repeat(${n > 0 ? n : 1}, minmax(0, 1fr))`;
50
+ }
51
+ return cols || 'repeat(1, minmax(0, 1fr))';
52
+ }
53
+ token(value) {
54
+ const v = value?.trim();
55
+ return `var(--bs-spacing-${v && SPACING_TOKENS.includes(v) ? v : '100'})`;
56
+ }
57
+ render() {
58
+ const gapValue = `var(--bs-grid-gap, ${this.token(this.gap)})`;
59
+ const row = this.rowGap ? this.token(this.rowGap) : gapValue;
60
+ const col = this.columnGap ? this.token(this.columnGap) : gapValue;
61
+ const align = ALIGNS.includes(this.align) ? this.align : 'stretch';
62
+ return (h("div", { key: 'a89d345eac5d88dd24b21606eb35b1f21e1b54dd', class: "bs-grid", part: "container", style: {
63
+ gridTemplateColumns: this.template(),
64
+ rowGap: `var(--bs-grid-row-gap, ${row})`,
65
+ columnGap: `var(--bs-grid-column-gap, ${col})`,
66
+ alignItems: align,
67
+ } }, h("slot", { key: 'f5676a0cc12cf0fafc04045b4fed50aee50d2995' })));
68
+ }
69
+ static get is() { return "bs-grid"; }
70
+ static get encapsulation() { return "shadow"; }
71
+ static get originalStyleUrls() {
72
+ return {
73
+ "$": ["bs-grid.css"]
74
+ };
75
+ }
76
+ static get styleUrls() {
77
+ return {
78
+ "$": ["bs-grid.css"]
79
+ };
80
+ }
81
+ static get properties() {
82
+ return {
83
+ "columns": {
84
+ "type": "string",
85
+ "mutable": false,
86
+ "complexType": {
87
+ "original": "string",
88
+ "resolved": "string",
89
+ "references": {}
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": "A number of equal columns (`\"3\"`), or a raw `grid-template-columns` value. Ignored when `minColumnWidth` is set."
96
+ },
97
+ "getter": false,
98
+ "setter": false,
99
+ "reflect": true,
100
+ "attribute": "columns",
101
+ "defaultValue": "'1'"
102
+ },
103
+ "gap": {
104
+ "type": "string",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "string",
108
+ "resolved": "string",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": false,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Spacing token name for the gap on both axes, e.g. `\"200\"` for `--bs-spacing-200`."
116
+ },
117
+ "getter": false,
118
+ "setter": false,
119
+ "reflect": true,
120
+ "attribute": "gap",
121
+ "defaultValue": "'100'"
122
+ },
123
+ "rowGap": {
124
+ "type": "string",
125
+ "mutable": false,
126
+ "complexType": {
127
+ "original": "string",
128
+ "resolved": "string",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": true,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": "Spacing token name for the row gap; overrides `gap` for rows."
136
+ },
137
+ "getter": false,
138
+ "setter": false,
139
+ "reflect": true,
140
+ "attribute": "row-gap"
141
+ },
142
+ "columnGap": {
143
+ "type": "string",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "string",
147
+ "resolved": "string",
148
+ "references": {}
149
+ },
150
+ "required": false,
151
+ "optional": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Spacing token name for the column gap; overrides `gap` for columns."
155
+ },
156
+ "getter": false,
157
+ "setter": false,
158
+ "reflect": true,
159
+ "attribute": "column-gap"
160
+ },
161
+ "minColumnWidth": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": true,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "CSS length (e.g. `240px`). Switches to auto-fit columns at least this wide and overrides `columns`."
174
+ },
175
+ "getter": false,
176
+ "setter": false,
177
+ "reflect": true,
178
+ "attribute": "min-column-width"
179
+ },
180
+ "align": {
181
+ "type": "string",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "BsGridAlign",
185
+ "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
186
+ "references": {
187
+ "BsGridAlign": {
188
+ "location": "local",
189
+ "path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-grid/bs-grid.tsx",
190
+ "id": "src/components/bs-grid/bs-grid.tsx::BsGridAlign"
191
+ }
192
+ }
193
+ },
194
+ "required": false,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Block-axis alignment of items within their cell."
199
+ },
200
+ "getter": false,
201
+ "setter": false,
202
+ "reflect": true,
203
+ "attribute": "align",
204
+ "defaultValue": "'stretch'"
205
+ }
206
+ };
207
+ }
208
+ }
@@ -0,0 +1,38 @@
1
+ import { html } from "lit";
2
+ import { ifDefined } from "lit/directives/if-defined.js";
3
+ import { componentDescription } from "../../stories-utils";
4
+ const cell = (n, h = 64) => html `
5
+ <div style="background: var(--bs-surface-container); padding: var(--bs-spacing-200); height: ${h}px">Item ${n}</div>
6
+ `;
7
+ const meta = {
8
+ title: 'Components/bs-grid',
9
+ parameters: { docs: { description: { component: componentDescription('bs-grid') } } },
10
+ render: args => html `
11
+ <bs-grid
12
+ columns=${args.columns}
13
+ gap=${args.gap}
14
+ row-gap=${ifDefined(args.rowGap || undefined)}
15
+ column-gap=${ifDefined(args.columnGap || undefined)}
16
+ min-column-width=${ifDefined(args.minColumnWidth || undefined)}
17
+ align=${args.align}
18
+ >
19
+ ${[1, 2, 3, 4, 5, 6].map(n => cell(n, n % 2 ? 64 : 96))}
20
+ </bs-grid>
21
+ `,
22
+ argTypes: {
23
+ columns: { control: 'text' },
24
+ gap: { control: 'text' },
25
+ rowGap: { control: 'text' },
26
+ columnGap: { control: 'text' },
27
+ minColumnWidth: { control: 'text' },
28
+ align: { control: 'inline-radio', options: ['start', 'center', 'end', 'stretch'] },
29
+ },
30
+ args: { columns: '3', gap: '100', rowGap: '', columnGap: '', minColumnWidth: '', align: 'stretch' },
31
+ };
32
+ export default meta;
33
+ export const Default = {};
34
+ export const LargeGap = { args: { gap: '300' } };
35
+ export const DifferentRowAndColumnGaps = { args: { rowGap: '50', columnGap: '400' } };
36
+ export const CustomTemplate = { args: { columns: '200px 1fr 2fr' } };
37
+ export const ResponsiveMinColumnWidth = { args: { minColumnWidth: '240px' } };
38
+ export const AlignCenter = { args: { align: 'center' } };
@@ -38,8 +38,8 @@ export class BsIconTile {
38
38
  render() {
39
39
  const labelled = !!this.label;
40
40
  return [
41
- h("div", { key: 'f23caf72680e3224fc8618cbebceac30590d36ce', part: "container", class: "bs-icon-tile", role: labelled ? 'img' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' }, h("span", { key: '944d594e4492b30544f935b217691ec7e53f398d', part: "icon", class: "bs-icon-tile__icon" }, h("slot", { key: 'cd62ccaf12a2ff398d506b865665eae42b2e43ff', onSlotchange: (ev) => (this.hasCustomIcon = hasContent(ev.target)) }), !this.hasCustomIcon && (GLYPHS[this.intent] ?? GLYPHS.default))),
42
- h("span", { key: 'f33a9fa50a2db0aee33fd8346681a5f56f22f685', part: "text", class: { 'bs-icon-tile__text': true, 'bs-icon-tile__text--visible': this.hasText } }, h("slot", { key: 'cb79316ee18a13c4f8d0dcb1d2271a22a6e71471', name: "text", onSlotchange: (ev) => (this.hasText = ev.target.assignedNodes().length > 0) })),
41
+ h("div", { key: '47586c94633cb072243559352fff92ffc178b59e', part: "container", class: "bs-icon-tile", role: labelled ? 'img' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' }, h("span", { key: 'af1f942a94eed409beaaf6845eee09003ef70fd4', part: "icon", class: "bs-icon-tile__icon" }, h("slot", { key: 'be9df10596772e84a65d4de467117ea6c6a13c29', onSlotchange: (ev) => (this.hasCustomIcon = hasContent(ev.target)) }), !this.hasCustomIcon && (GLYPHS[this.intent] ?? GLYPHS.default))),
42
+ h("span", { key: '0522505b1001e511e5c2446025a05b6e80ef0176', part: "text", class: { 'bs-icon-tile__text': true, 'bs-icon-tile__text--visible': this.hasText } }, h("slot", { key: '0fc0bb97e5b23a984bcd64eafc0133eb93782c2f', name: "text", onSlotchange: (ev) => (this.hasText = ev.target.assignedNodes().length > 0) })),
43
43
  ];
44
44
  }
45
45
  static get is() { return "bs-icon-tile"; }
@@ -397,10 +397,10 @@ export class BsInput {
397
397
  return (h("div", { part: "field", class: `bs-input__field bs-input__field--pin ${errorClass} ${disabledClass}` }, Array.from({ length: this.length }).map((_, i) => (h("input", { id: i === 0 ? 'control' : undefined, ref: el => (this.pinInputs[i] = el), part: "control", class: "bs-input__pin-cell", type: "text", inputMode: "numeric", maxLength: 1, value: this.value[i] ?? '', disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, onInput: this.onPinInput(i), onKeyDown: this.onPinKeydown(i) })))));
398
398
  }
399
399
  render() {
400
- return (h("div", { key: 'eb166070c898f3bf1e0d994265e5ad3adc1d7172', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
400
+ return (h("div", { key: 'ec191e3590785654e3701c7c49b1643f671dcc16', class: `bs-input ${this.error ? 'bs-input--error' : ''}` }, this.label && (
401
401
  // "control" is a fixed id, not a generated one -- safe because Shadow DOM scopes ids
402
402
  // to this instance's own shadow root, so it can never collide with another bs-input.
403
- h("label", { key: '1d02b7a6901c87c68ff6b91c03bc8099cfb823e6', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: '8ef20b2be514160fbdf37d046b59b0009b07ece2', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : this.type === 'initials' ? this.renderInitialsField() : this.renderField(), this.error ? (h("span", { id: "description-or-error", part: "error", class: "bs-input__error" }, h("svg", { part: "error-icon", class: "bs-input__error-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M8 5V8.5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }), h("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })), this.error)) : this.description ? (h("span", { id: "description-or-error", part: "description", class: "bs-input__description" }, this.description)) : null));
403
+ h("label", { key: '264558031d7bdf104254724ad1891c893668da60', part: "label", class: "bs-input__label", htmlFor: "control" }, this.label, this.required && (h("span", { key: '225d41e84484f1f160765a9f01e49a0bd850650c', part: "required", class: "bs-input__required", "aria-hidden": "true" }, "*")))), this.type === 'pin' ? this.renderPinField() : this.type === 'initials' ? this.renderInitialsField() : this.renderField(), this.error ? (h("span", { id: "description-or-error", part: "error", class: "bs-input__error" }, h("svg", { part: "error-icon", class: "bs-input__error-icon", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "8", cy: "8", r: "6.5", stroke: "currentColor", "stroke-width": "1.2" }), h("path", { d: "M8 5V8.5", stroke: "currentColor", "stroke-width": "1.2", "stroke-linecap": "round" }), h("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })), this.error)) : this.description ? (h("span", { id: "description-or-error", part: "description", class: "bs-input__description" }, this.description)) : null));
404
404
  }
405
405
  static get is() { return "bs-input"; }
406
406
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class BsMenu {
44
44
  items[next].shadowRoot?.querySelector('button')?.focus();
45
45
  }
46
46
  render() {
47
- return (h("div", { key: '931d856111c209026ceecfc7292336e3ffc95348', part: "list", class: "bs-menu", role: "menu" }, h("slot", { key: '773aeb60e85fd3c802da4dc9e78126f4a4543965' })));
47
+ return (h("div", { key: 'e886c7df63af6d741175aa81bc6390be600e371b', part: "list", class: "bs-menu", role: "menu" }, h("slot", { key: '365eae17c25fd6a3cc69c9ff01a28ce81eca11f8' })));
48
48
  }
49
49
  static get is() { return "bs-menu"; }
50
50
  static get encapsulation() { return "shadow"; }