@boostdev/design-system-components 1.1.1 → 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 (320) hide show
  1. package/AGENTS.md +13 -10
  2. package/dist/client.cjs +77 -99
  3. package/dist/client.css +611 -580
  4. package/dist/client.d.cts +13 -16
  5. package/dist/client.d.ts +13 -16
  6. package/dist/client.js +87 -109
  7. package/dist/index.cjs +77 -99
  8. package/dist/index.css +611 -580
  9. package/dist/index.d.cts +13 -16
  10. package/dist/index.d.ts +13 -16
  11. package/dist/index.js +87 -109
  12. package/dist/native/index.cjs +9 -8
  13. package/dist/native/index.d.cts +1 -1
  14. package/dist/native/index.d.ts +1 -1
  15. package/dist/native/index.js +9 -8
  16. package/dist/web-components/chunk-2QA62WCQ.js +48 -0
  17. package/dist/web-components/chunk-3REOIRDW.js +246 -0
  18. package/dist/web-components/chunk-57TRNCWQ.js +93 -0
  19. package/dist/web-components/chunk-5IPHEONG.js +139 -0
  20. package/dist/web-components/chunk-5R6IFELV.js +63 -0
  21. package/dist/web-components/chunk-5TFWOPLH.js +49 -0
  22. package/dist/web-components/chunk-6I3CFC26.js +89 -0
  23. package/dist/web-components/chunk-6MH5UWUD.js +226 -0
  24. package/dist/web-components/chunk-7FMR53BW.js +127 -0
  25. package/dist/web-components/chunk-AGKJTMJI.js +56 -0
  26. package/dist/web-components/chunk-AJSXNDAP.js +151 -0
  27. package/dist/web-components/chunk-BQLZ7I4G.js +56 -0
  28. package/dist/web-components/chunk-BX3IPVOB.js +167 -0
  29. package/dist/web-components/chunk-CR5PGUHV.js +109 -0
  30. package/dist/web-components/chunk-DI46Q2EA.js +278 -0
  31. package/dist/web-components/chunk-DZRSJGPB.js +53 -0
  32. package/dist/web-components/chunk-EBJM3VD4.js +107 -0
  33. package/dist/web-components/chunk-ECW3HHWA.js +185 -0
  34. package/dist/web-components/chunk-HGBNDR22.js +98 -0
  35. package/dist/web-components/chunk-HHHRF2PS.js +118 -0
  36. package/dist/web-components/chunk-ITHLKR7Q.js +105 -0
  37. package/dist/web-components/chunk-JUKB3BUP.js +186 -0
  38. package/dist/web-components/chunk-L3XHOMN6.js +111 -0
  39. package/dist/{web-components.js → web-components/chunk-LGEZYFUU.js} +62 -844
  40. package/dist/web-components/chunk-LY62SAVN.js +64 -0
  41. package/dist/web-components/chunk-N6IMUOY4.js +185 -0
  42. package/dist/web-components/chunk-OHUTLSIQ.js +69 -0
  43. package/dist/web-components/chunk-OQTRTMAB.js +27 -0
  44. package/dist/web-components/chunk-PY62FTRW.js +179 -0
  45. package/dist/web-components/chunk-Q4T5BJT6.js +94 -0
  46. package/dist/web-components/chunk-QDST57JC.js +119 -0
  47. package/dist/web-components/chunk-QLZ2362S.js +279 -0
  48. package/dist/web-components/chunk-QPOKHLMQ.js +45 -0
  49. package/dist/web-components/chunk-SOQQ7RVJ.js +88 -0
  50. package/dist/web-components/chunk-T6AETZRP.js +131 -0
  51. package/dist/web-components/chunk-UFFCKVZE.js +149 -0
  52. package/dist/web-components/chunk-VMMVWLXL.js +53 -0
  53. package/dist/web-components/chunk-X3FKVHLK.js +144 -0
  54. package/dist/web-components/chunk-XNA6WTXG.js +133 -0
  55. package/dist/web-components/chunk-Y4MAXTMA.js +80 -0
  56. package/dist/web-components/chunk-YLVTEY23.js +165 -0
  57. package/dist/web-components/chunk-YRXCVKHV.js +116 -0
  58. package/dist/web-components/chunk-ZTC6GRP7.js +64 -0
  59. package/dist/web-components/globals.d.ts +2 -0
  60. package/dist/web-components/globals.js +1 -0
  61. package/dist/web-components/index.d.ts +41 -0
  62. package/dist/web-components/index.js +165 -0
  63. package/dist/web-components/interaction/bds-accordion-item.d.ts +54 -0
  64. package/dist/web-components/interaction/bds-accordion-item.js +7 -0
  65. package/dist/web-components/interaction/bds-accordion.d.ts +50 -0
  66. package/dist/web-components/interaction/bds-accordion.js +7 -0
  67. package/dist/web-components/interaction/bds-button.d.ts +100 -0
  68. package/dist/web-components/interaction/bds-button.js +7 -0
  69. package/dist/web-components/interaction/bds-collapsible.d.ts +52 -0
  70. package/dist/web-components/interaction/bds-collapsible.js +7 -0
  71. package/dist/web-components/interaction/bds-dialog.d.ts +56 -0
  72. package/dist/web-components/interaction/bds-dialog.js +7 -0
  73. package/dist/web-components/interaction/bds-drawer.d.ts +64 -0
  74. package/dist/web-components/interaction/bds-drawer.js +7 -0
  75. package/dist/web-components/interaction/bds-popover.d.ts +62 -0
  76. package/dist/web-components/interaction/bds-popover.js +7 -0
  77. package/dist/web-components/interaction/bds-skip-link.d.ts +36 -0
  78. package/dist/web-components/interaction/bds-skip-link.js +7 -0
  79. package/dist/web-components/interaction/bds-tab-panel.d.ts +26 -0
  80. package/dist/web-components/interaction/bds-tab-panel.js +7 -0
  81. package/dist/web-components/interaction/bds-tab.d.ts +45 -0
  82. package/dist/web-components/interaction/bds-tab.js +7 -0
  83. package/dist/web-components/interaction/bds-tabs.d.ts +46 -0
  84. package/dist/web-components/interaction/bds-tabs.js +7 -0
  85. package/dist/web-components/interaction/bds-toast-provider.d.ts +57 -0
  86. package/dist/web-components/interaction/bds-toast-provider.js +7 -0
  87. package/dist/web-components/interaction/bds-tooltip.d.ts +50 -0
  88. package/dist/web-components/interaction/bds-tooltip.js +7 -0
  89. package/dist/web-components/interaction/form/bds-checkbox.d.ts +70 -0
  90. package/dist/web-components/interaction/form/bds-checkbox.js +7 -0
  91. package/dist/web-components/interaction/form/bds-combobox.d.ts +84 -0
  92. package/dist/web-components/interaction/form/bds-combobox.js +7 -0
  93. package/dist/web-components/interaction/form/bds-file-input.d.ts +62 -0
  94. package/dist/web-components/interaction/form/bds-file-input.js +7 -0
  95. package/dist/web-components/interaction/form/bds-number-input.d.ts +68 -0
  96. package/dist/web-components/interaction/form/bds-number-input.js +7 -0
  97. package/dist/web-components/interaction/form/bds-radio.d.ts +68 -0
  98. package/dist/web-components/interaction/form/bds-radio.js +7 -0
  99. package/dist/web-components/interaction/form/bds-segmented-control.d.ts +88 -0
  100. package/dist/web-components/interaction/form/bds-segmented-control.js +7 -0
  101. package/dist/web-components/interaction/form/bds-select.d.ts +79 -0
  102. package/dist/web-components/interaction/form/bds-select.js +7 -0
  103. package/dist/web-components/interaction/form/bds-slider.d.ts +70 -0
  104. package/dist/web-components/interaction/form/bds-slider.js +7 -0
  105. package/dist/web-components/interaction/form/bds-switch.d.ts +67 -0
  106. package/dist/web-components/interaction/form/bds-switch.js +7 -0
  107. package/dist/web-components/interaction/form/bds-textarea.d.ts +70 -0
  108. package/dist/web-components/interaction/form/bds-textarea.js +7 -0
  109. package/dist/web-components/ui/bds-alert.d.ts +66 -0
  110. package/dist/web-components/ui/bds-alert.js +7 -0
  111. package/dist/web-components/ui/bds-avatar.d.ts +50 -0
  112. package/dist/web-components/ui/bds-avatar.js +7 -0
  113. package/dist/web-components/ui/bds-badge.d.ts +35 -0
  114. package/dist/web-components/ui/bds-badge.js +7 -0
  115. package/dist/web-components/ui/bds-breadcrumb.d.ts +35 -0
  116. package/dist/web-components/ui/bds-breadcrumb.js +7 -0
  117. package/dist/web-components/ui/bds-card.d.ts +72 -0
  118. package/dist/web-components/ui/bds-card.js +7 -0
  119. package/dist/web-components/ui/bds-description-list.d.ts +42 -0
  120. package/dist/web-components/ui/bds-description-list.js +7 -0
  121. package/dist/web-components/ui/bds-icon-wrapper.d.ts +39 -0
  122. package/dist/web-components/ui/bds-icon-wrapper.js +7 -0
  123. package/dist/web-components/ui/bds-link.d.ts +59 -0
  124. package/dist/web-components/ui/bds-link.js +7 -0
  125. package/dist/web-components/ui/bds-loading.d.ts +32 -0
  126. package/dist/web-components/ui/bds-loading.js +7 -0
  127. package/dist/web-components/ui/bds-notification-banner.d.ts +61 -0
  128. package/dist/web-components/ui/bds-notification-banner.js +7 -0
  129. package/dist/web-components/ui/bds-progress-circle.d.ts +53 -0
  130. package/dist/web-components/ui/bds-progress-circle.js +7 -0
  131. package/dist/web-components/ui/bds-progress.d.ts +54 -0
  132. package/dist/web-components/ui/bds-progress.js +7 -0
  133. package/dist/web-components/ui/bds-rating.d.ts +36 -0
  134. package/dist/web-components/ui/bds-rating.js +7 -0
  135. package/dist/web-components/ui/bds-section-header.d.ts +53 -0
  136. package/dist/web-components/ui/bds-section-header.js +8 -0
  137. package/dist/web-components/ui/bds-separator.d.ts +32 -0
  138. package/dist/web-components/ui/bds-separator.js +7 -0
  139. package/dist/web-components/ui/bds-skeleton.d.ts +22 -0
  140. package/dist/web-components/ui/bds-skeleton.js +7 -0
  141. package/dist/web-components/ui/bds-typography.d.ts +44 -0
  142. package/dist/web-components/ui/bds-typography.js +8 -0
  143. package/package.json +170 -5
  144. package/src/components/interaction/Button/Button.module.css +12 -11
  145. package/src/components/interaction/Button/Button.native.tsx +10 -9
  146. package/src/components/interaction/Button/Button.tsx +1 -1
  147. package/src/components/interaction/Command/Command.module.css +3 -7
  148. package/src/components/interaction/Dialog/Dialog.module.css +7 -5
  149. package/src/components/interaction/Drawer/Drawer.module.css +49 -1
  150. package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +1 -3
  151. package/src/components/interaction/Popover/Popover.module.css +1 -3
  152. package/src/components/interaction/form/Checkbox/Checkbox.module.css +1 -3
  153. package/src/components/interaction/form/Combobox/Combobox.module.css +2 -6
  154. package/src/components/interaction/form/FormInput/FormInput.module.css +1 -3
  155. package/src/components/interaction/form/NumberInput/NumberInput.module.css +16 -4
  156. package/src/components/interaction/form/Radio/Radio.module.css +6 -16
  157. package/src/components/interaction/form/SegmentedControl/SegmentedControl.mdx +70 -25
  158. package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +55 -33
  159. package/src/components/interaction/form/SegmentedControl/SegmentedControl.spec.tsx +127 -56
  160. package/src/components/interaction/form/SegmentedControl/SegmentedControl.stories.tsx +89 -72
  161. package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +40 -62
  162. package/src/components/interaction/form/SegmentedControl/index.ts +1 -1
  163. package/src/components/interaction/form/Select/Select.module.css +2 -4
  164. package/src/components/interaction/form/Switch/Switch.module.css +5 -7
  165. package/src/components/interaction/form/Switch/Switch.native.spec.tsx +9 -9
  166. package/src/components/interaction/form/Switch/Switch.native.tsx +2 -2
  167. package/src/components/interaction/form/Textarea/Textarea.module.css +1 -3
  168. package/src/components/interaction/form/atoms/InputContainer.stories.tsx +64 -0
  169. package/src/components/interaction/form/atoms/Label.stories.tsx +33 -0
  170. package/src/components/interaction/form/atoms/Message.stories.tsx +33 -0
  171. package/src/components/layout/Card/Card.module.css +1 -3
  172. package/src/components/ui/Accordion/Accordion.module.css +1 -2
  173. package/src/components/ui/Alert/Alert.module.css +1 -2
  174. package/src/components/ui/Calendar/Calendar.module.css +2 -5
  175. package/src/components/ui/Carousel/Carousel.module.css +1 -3
  176. package/src/components/ui/NotificationBanner/NotificationBanner.module.css +1 -2
  177. package/src/components/ui/Pagination/Pagination.module.css +1 -2
  178. package/src/components/ui/SkipLink/SkipLink.module.css +1 -2
  179. package/src/components/ui/Table/Table.module.css +1 -2
  180. package/src/css/bdc.css +16 -11
  181. package/src/index.ts +1 -1
  182. package/src/web-components/globals.ts +3 -3
  183. package/src/web-components/index.ts +47 -0
  184. package/src/web-components/interaction/BdsAccordion.mdx +51 -0
  185. package/src/web-components/interaction/BdsAccordion.stories.tsx +85 -0
  186. package/src/web-components/interaction/BdsCollapsible.mdx +46 -0
  187. package/src/web-components/interaction/BdsCollapsible.stories.tsx +87 -0
  188. package/src/web-components/interaction/BdsDialog.mdx +49 -0
  189. package/src/web-components/interaction/BdsDialog.stories.tsx +75 -0
  190. package/src/web-components/interaction/BdsDrawer.mdx +50 -0
  191. package/src/web-components/interaction/BdsDrawer.stories.tsx +66 -0
  192. package/src/web-components/interaction/BdsSkipLink.mdx +34 -0
  193. package/src/web-components/interaction/BdsSkipLink.stories.tsx +55 -0
  194. package/src/web-components/interaction/BdsTabs.mdx +47 -0
  195. package/src/web-components/interaction/BdsTabs.stories.tsx +80 -0
  196. package/src/web-components/interaction/BdsTooltip.mdx +38 -0
  197. package/src/web-components/interaction/BdsTooltip.stories.tsx +68 -0
  198. package/src/web-components/interaction/bds-accordion-item.spec.ts +75 -0
  199. package/src/web-components/interaction/bds-accordion-item.ts +181 -0
  200. package/src/web-components/interaction/bds-accordion.spec.ts +73 -0
  201. package/src/web-components/interaction/bds-accordion.ts +98 -0
  202. package/src/web-components/interaction/bds-button.ts +15 -13
  203. package/src/web-components/interaction/bds-collapsible.spec.ts +56 -0
  204. package/src/web-components/interaction/bds-collapsible.ts +170 -0
  205. package/src/web-components/interaction/bds-dialog.spec.ts +119 -0
  206. package/src/web-components/interaction/bds-dialog.ts +221 -0
  207. package/src/web-components/interaction/bds-drawer.spec.ts +113 -0
  208. package/src/web-components/interaction/bds-drawer.ts +315 -0
  209. package/src/web-components/interaction/bds-skip-link.spec.ts +42 -0
  210. package/src/web-components/interaction/bds-skip-link.ts +74 -0
  211. package/src/web-components/interaction/bds-tab-panel.spec.ts +32 -0
  212. package/src/web-components/interaction/bds-tab-panel.ts +38 -0
  213. package/src/web-components/interaction/bds-tab.spec.ts +71 -0
  214. package/src/web-components/interaction/bds-tab.ts +110 -0
  215. package/src/web-components/interaction/bds-tabs.spec.ts +120 -0
  216. package/src/web-components/interaction/bds-tabs.ts +152 -0
  217. package/src/web-components/interaction/bds-tooltip.spec.ts +49 -0
  218. package/src/web-components/interaction/bds-tooltip.ts +127 -0
  219. package/src/web-components/interaction/form/BdsCheckbox.mdx +39 -0
  220. package/src/web-components/interaction/form/BdsCheckbox.stories.tsx +73 -0
  221. package/src/web-components/interaction/form/BdsCombobox.mdx +52 -0
  222. package/src/web-components/interaction/form/BdsCombobox.stories.tsx +91 -0
  223. package/src/web-components/interaction/form/BdsFileInput.mdx +44 -0
  224. package/src/web-components/interaction/form/BdsFileInput.stories.tsx +84 -0
  225. package/src/web-components/interaction/form/BdsNumberInput.mdx +41 -0
  226. package/src/web-components/interaction/form/BdsNumberInput.stories.tsx +90 -0
  227. package/src/web-components/interaction/form/BdsRadio.mdx +41 -0
  228. package/src/web-components/interaction/form/BdsRadio.stories.tsx +90 -0
  229. package/src/web-components/interaction/form/BdsSegmentedControl.mdx +42 -0
  230. package/src/web-components/interaction/form/BdsSegmentedControl.stories.tsx +92 -0
  231. package/src/web-components/interaction/form/BdsSelect.mdx +38 -0
  232. package/src/web-components/interaction/form/BdsSelect.stories.tsx +93 -0
  233. package/src/web-components/interaction/form/BdsSlider.mdx +49 -0
  234. package/src/web-components/interaction/form/BdsSlider.stories.tsx +89 -0
  235. package/src/web-components/interaction/form/BdsSwitch.mdx +39 -0
  236. package/src/web-components/interaction/form/BdsSwitch.stories.tsx +73 -0
  237. package/src/web-components/interaction/form/BdsTextarea.mdx +41 -0
  238. package/src/web-components/interaction/form/BdsTextarea.stories.tsx +79 -0
  239. package/src/web-components/interaction/form/bds-checkbox.spec.ts +63 -0
  240. package/src/web-components/interaction/form/bds-checkbox.ts +166 -0
  241. package/src/web-components/interaction/form/bds-combobox.spec.ts +117 -0
  242. package/src/web-components/interaction/form/bds-combobox.ts +334 -0
  243. package/src/web-components/interaction/form/bds-file-input.spec.ts +58 -0
  244. package/src/web-components/interaction/form/bds-file-input.ts +209 -0
  245. package/src/web-components/interaction/form/bds-number-input.spec.ts +87 -0
  246. package/src/web-components/interaction/form/bds-number-input.ts +220 -0
  247. package/src/web-components/interaction/form/bds-radio.spec.ts +70 -0
  248. package/src/web-components/interaction/form/bds-radio.ts +151 -0
  249. package/src/web-components/interaction/form/bds-segmented-control.spec.ts +74 -0
  250. package/src/web-components/interaction/form/bds-segmented-control.ts +282 -0
  251. package/src/web-components/interaction/form/bds-select.spec.ts +74 -0
  252. package/src/web-components/interaction/form/bds-select.ts +188 -0
  253. package/src/web-components/interaction/form/bds-slider.spec.ts +41 -0
  254. package/src/web-components/interaction/form/bds-slider.ts +162 -0
  255. package/src/web-components/interaction/form/bds-switch.spec.ts +62 -0
  256. package/src/web-components/interaction/form/bds-switch.ts +165 -0
  257. package/src/web-components/interaction/form/bds-textarea.spec.ts +55 -0
  258. package/src/web-components/interaction/form/bds-textarea.ts +141 -0
  259. package/src/web-components/ui/BdsAvatar.mdx +67 -0
  260. package/src/web-components/ui/BdsAvatar.stories.tsx +62 -0
  261. package/src/web-components/ui/BdsBreadcrumb.mdx +63 -0
  262. package/src/web-components/ui/BdsBreadcrumb.stories.tsx +59 -0
  263. package/src/web-components/ui/BdsCard.mdx +83 -0
  264. package/src/web-components/ui/BdsCard.stories.tsx +90 -0
  265. package/src/web-components/ui/BdsDescriptionList.mdx +67 -0
  266. package/src/web-components/ui/BdsDescriptionList.stories.tsx +79 -0
  267. package/src/web-components/ui/BdsIconWrapper.mdx +70 -0
  268. package/src/web-components/ui/BdsIconWrapper.stories.tsx +76 -0
  269. package/src/web-components/ui/BdsLink.mdx +75 -0
  270. package/src/web-components/ui/BdsLink.stories.tsx +64 -0
  271. package/src/web-components/ui/BdsLoading.mdx +62 -0
  272. package/src/web-components/ui/BdsLoading.stories.tsx +37 -0
  273. package/src/web-components/ui/BdsNotificationBanner.mdx +90 -0
  274. package/src/web-components/ui/BdsNotificationBanner.stories.tsx +93 -0
  275. package/src/web-components/ui/BdsProgress.mdx +63 -0
  276. package/src/web-components/ui/BdsProgress.stories.tsx +70 -0
  277. package/src/web-components/ui/BdsProgressCircle.mdx +64 -0
  278. package/src/web-components/ui/BdsProgressCircle.stories.tsx +69 -0
  279. package/src/web-components/ui/BdsRating.mdx +61 -0
  280. package/src/web-components/ui/BdsRating.stories.tsx +39 -0
  281. package/src/web-components/ui/BdsSectionHeader.mdx +69 -0
  282. package/src/web-components/ui/BdsSectionHeader.stories.tsx +56 -0
  283. package/src/web-components/ui/BdsSeparator.mdx +63 -0
  284. package/src/web-components/ui/BdsSeparator.stories.tsx +47 -0
  285. package/src/web-components/ui/BdsSkeleton.mdx +67 -0
  286. package/src/web-components/ui/BdsSkeleton.stories.tsx +50 -0
  287. package/src/web-components/ui/BdsTypography.mdx +83 -0
  288. package/src/web-components/ui/BdsTypography.stories.tsx +51 -0
  289. package/src/web-components/ui/bds-alert.ts +1 -2
  290. package/src/web-components/ui/bds-avatar.spec.ts +75 -0
  291. package/src/web-components/ui/bds-avatar.ts +122 -0
  292. package/src/web-components/ui/bds-breadcrumb.spec.ts +55 -0
  293. package/src/web-components/ui/bds-breadcrumb.ts +114 -0
  294. package/src/web-components/ui/bds-card.spec.ts +70 -0
  295. package/src/web-components/ui/bds-card.ts +154 -0
  296. package/src/web-components/ui/bds-description-list.spec.ts +36 -0
  297. package/src/web-components/ui/bds-description-list.ts +79 -0
  298. package/src/web-components/ui/bds-icon-wrapper.spec.ts +21 -0
  299. package/src/web-components/ui/bds-icon-wrapper.ts +68 -0
  300. package/src/web-components/ui/bds-link.spec.ts +72 -0
  301. package/src/web-components/ui/bds-link.ts +138 -0
  302. package/src/web-components/ui/bds-loading.spec.ts +38 -0
  303. package/src/web-components/ui/bds-loading.ts +76 -0
  304. package/src/web-components/ui/bds-notification-banner.spec.ts +82 -0
  305. package/src/web-components/ui/bds-notification-banner.ts +184 -0
  306. package/src/web-components/ui/bds-progress-circle.spec.ts +58 -0
  307. package/src/web-components/ui/bds-progress-circle.ts +142 -0
  308. package/src/web-components/ui/bds-progress.spec.ts +66 -0
  309. package/src/web-components/ui/bds-progress.ts +127 -0
  310. package/src/web-components/ui/bds-rating.spec.ts +70 -0
  311. package/src/web-components/ui/bds-rating.ts +80 -0
  312. package/src/web-components/ui/bds-section-header.spec.ts +57 -0
  313. package/src/web-components/ui/bds-section-header.ts +96 -0
  314. package/src/web-components/ui/bds-separator.spec.ts +50 -0
  315. package/src/web-components/ui/bds-separator.ts +66 -0
  316. package/src/web-components/ui/bds-skeleton.spec.ts +22 -0
  317. package/src/web-components/ui/bds-skeleton.ts +55 -0
  318. package/src/web-components/ui/bds-typography.spec.ts +76 -0
  319. package/src/web-components/ui/bds-typography.ts +112 -0
  320. package/dist/web-components.d.ts +0 -304
@@ -0,0 +1,165 @@
1
+ import {
2
+ T,
3
+ i,
4
+ i2
5
+ } from "./chunk-LGEZYFUU.js";
6
+
7
+ // src/web-components/interaction/bds-toast-provider.ts
8
+ var BdsToastProvider = class extends i2 {
9
+ static styles = i`
10
+ :host {
11
+ display: contents;
12
+ }
13
+
14
+ .container {
15
+ /* Reset UA popover defaults */
16
+ position: fixed;
17
+ inset: unset;
18
+ bottom: var(--bds-space_xl, 2rem);
19
+ right: var(--bds-space_xl, 2rem);
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: var(--bds-space_m, 1rem);
23
+ border: none;
24
+ padding: 0;
25
+ background: transparent;
26
+ }
27
+
28
+ .toast {
29
+ padding: var(--bds-space_m) var(--bds-space_l);
30
+ background-color: var(--toast_color, var(--bds-color_bg));
31
+ color: var(--toast_on-color, var(--bds-color_on-bg));
32
+ border-radius: var(--bds-border_radius--s);
33
+ box-shadow: var(--bds-shadow_s);
34
+ display: flex;
35
+ align-items: center;
36
+ gap: var(--bds-space_m);
37
+ min-width: 300px;
38
+ }
39
+
40
+ .toast.--variant_success {
41
+ --toast_color: var(--bds-color_success);
42
+ --toast_on-color: var(--bds-color_on-success);
43
+ }
44
+
45
+ .toast.--variant_warning {
46
+ --toast_color: var(--bds-color_warning);
47
+ --toast_on-color: var(--bds-color_on-warning);
48
+ }
49
+
50
+ .toast.--variant_info {
51
+ --toast_color: var(--bds-color_bg--subtle);
52
+ --toast_on-color: var(--bds-color_on-bg--subtle);
53
+ }
54
+
55
+ .toast.--variant_error {
56
+ --toast_color: var(--bds-color_error);
57
+ --toast_on-color: var(--bds-color_on-error);
58
+ }
59
+
60
+ .message {
61
+ flex: 1;
62
+ }
63
+
64
+ .close {
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ flex-shrink: 0;
69
+ width: 1.25rem;
70
+ height: 1.25rem;
71
+ padding: 0;
72
+ background: none;
73
+ border: none;
74
+ cursor: pointer;
75
+ color: var(--toast_on-color);
76
+ }
77
+
78
+ .close svg {
79
+ width: 1rem;
80
+ height: 1rem;
81
+ }
82
+ `;
83
+ static properties = {
84
+ _toasts: { state: true }
85
+ };
86
+ constructor() {
87
+ super();
88
+ this._toasts = [];
89
+ }
90
+ connectedCallback() {
91
+ super.connectedCallback();
92
+ document.addEventListener("bds-show-toast", this._onShowToastEvent);
93
+ }
94
+ disconnectedCallback() {
95
+ super.disconnectedCallback();
96
+ document.removeEventListener("bds-show-toast", this._onShowToastEvent);
97
+ }
98
+ // Sync the popover's top-layer visibility with the toast queue —
99
+ // mirrors Toast.tsx's useEffect([toasts.length]).
100
+ updated() {
101
+ const container = this.shadowRoot?.querySelector("[popover]");
102
+ if (!container) return;
103
+ if (this._toasts.length > 0) {
104
+ container.showPopover?.();
105
+ } else {
106
+ try {
107
+ container.hidePopover?.();
108
+ } catch {
109
+ }
110
+ }
111
+ }
112
+ showToast(message, variant = "info") {
113
+ const id = Math.random().toString(36).slice(2, 9);
114
+ this._toasts = [...this._toasts, { id, message, variant }];
115
+ setTimeout(() => this._removeToast(id), 5e3);
116
+ }
117
+ _removeToast(id) {
118
+ this._toasts = this._toasts.filter((t) => t.id !== id);
119
+ }
120
+ _onShowToastEvent = (e) => {
121
+ const { message, variant } = e.detail ?? {};
122
+ if (message) this.showToast(message, variant);
123
+ };
124
+ static show(message, variant) {
125
+ const provider = document.querySelector("bds-toast-provider");
126
+ provider?.showToast(message, variant ?? "info");
127
+ }
128
+ render() {
129
+ return T`
130
+ <slot></slot>
131
+ <div
132
+ popover="manual"
133
+ role="region"
134
+ aria-label="Notifications"
135
+ class="container"
136
+ >
137
+ ${this._toasts.map((t) => T`
138
+ <div
139
+ class="toast --variant_${t.variant}"
140
+ role="status"
141
+ aria-live="polite"
142
+ aria-atomic="true"
143
+ >
144
+ <span class="message">${t.message}</span>
145
+ <button
146
+ type="button"
147
+ class="close"
148
+ @click=${() => this._removeToast(t.id)}
149
+ aria-label="Dismiss"
150
+ >
151
+ <svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
152
+ <path stroke-linecap="round" stroke-linejoin="round" d="M18 6L6 18M6 6l12 12" />
153
+ </svg>
154
+ </button>
155
+ </div>
156
+ `)}
157
+ </div>
158
+ `;
159
+ }
160
+ };
161
+ customElements.define("bds-toast-provider", BdsToastProvider);
162
+
163
+ export {
164
+ BdsToastProvider
165
+ };
@@ -0,0 +1,116 @@
1
+ import {
2
+ A,
3
+ T,
4
+ i,
5
+ i2
6
+ } from "./chunk-LGEZYFUU.js";
7
+
8
+ // src/web-components/ui/bds-card.ts
9
+ var BdsCard = class extends i2 {
10
+ static styles = i`
11
+ :host {
12
+ display: block;
13
+ }
14
+
15
+ .card {
16
+ background-color: var(--card_color, var(--bds-color_bg));
17
+ color: var(--card_on-color, var(--bds-color_on-bg));
18
+ border-radius: var(--bds-border_radius--m);
19
+ transition: all 0.3s ease;
20
+ position: relative;
21
+ box-sizing: border-box;
22
+ inline-size: 100%;
23
+ text-align: inherit;
24
+ font: inherit;
25
+ border: none;
26
+ }
27
+
28
+ .card.--default { box-shadow: var(--bds-shadow_s); }
29
+ .card.--elevated { box-shadow: var(--bds-shadow_m); }
30
+
31
+ .card.--outlined {
32
+ --bdc_color: currentcolor;
33
+ box-shadow: inset 0 0 0 var(--bdc-outline_width) var(--bdc_color), var(--bds-shadow_s);
34
+ }
35
+
36
+ .card.--padding-none { padding: 0; }
37
+ .card.--padding-small { padding: var(--bds-space_s); }
38
+ .card.--padding-medium { padding: var(--bds-space_m); }
39
+ .card.--padding-large { padding: var(--bds-space_l); }
40
+
41
+ .card.--text-start { text-align: start; }
42
+ .card.--text-center { text-align: center; }
43
+ .card.--text-end { text-align: end; }
44
+
45
+ .card.--clickable {
46
+ cursor: pointer;
47
+ display: block;
48
+ }
49
+
50
+ .card.--clickable:focus-visible {
51
+ outline: 2px solid var(--color_focus, currentcolor);
52
+ outline-offset: 2px;
53
+ }
54
+
55
+ .card.--clickable:active {
56
+ transform: translateY(0);
57
+ box-shadow: var(--bds-shadow_s);
58
+ }
59
+
60
+ @media (hover: hover) and (pointer: fine) {
61
+ .card.--clickable:hover {
62
+ transform: translateY(-2px);
63
+ box-shadow: var(--bds-shadow_xl);
64
+ }
65
+
66
+ .card.--default:hover { box-shadow: var(--bds-shadow_m); }
67
+ .card.--elevated:hover { box-shadow: var(--bds-shadow_2xl); }
68
+ .card.--outlined:hover { box-shadow: var(--bds-shadow_s); }
69
+ }
70
+ `;
71
+ static properties = {
72
+ variant: { type: String, reflect: true },
73
+ padding: { type: String, reflect: true },
74
+ textAlign: { type: String, attribute: "text-align", reflect: true },
75
+ clickable: { type: Boolean, reflect: true },
76
+ ariaLabel: { type: String, attribute: "aria-label" }
77
+ };
78
+ constructor() {
79
+ super();
80
+ this.variant = "default";
81
+ this.padding = "medium";
82
+ this.textAlign = "start";
83
+ this.clickable = false;
84
+ this.ariaLabel = "";
85
+ }
86
+ _handleClick() {
87
+ this.dispatchEvent(new CustomEvent("bds-click", { bubbles: true, composed: true }));
88
+ }
89
+ render() {
90
+ const classes = [
91
+ "card",
92
+ `--${this.variant}`,
93
+ `--padding-${this.padding}`,
94
+ `--text-${this.textAlign}`,
95
+ this.clickable ? "--clickable" : ""
96
+ ].filter(Boolean).join(" ");
97
+ if (this.clickable) {
98
+ return T`
99
+ <button
100
+ type="button"
101
+ class=${classes}
102
+ @click=${this._handleClick}
103
+ aria-label=${this.ariaLabel || A}
104
+ >
105
+ <slot></slot>
106
+ </button>
107
+ `;
108
+ }
109
+ return T`<div class=${classes}><slot></slot></div>`;
110
+ }
111
+ };
112
+ customElements.define("bds-card", BdsCard);
113
+
114
+ export {
115
+ BdsCard
116
+ };
@@ -0,0 +1,64 @@
1
+ import {
2
+ T,
3
+ i,
4
+ i2
5
+ } from "./chunk-LGEZYFUU.js";
6
+
7
+ // src/web-components/interaction/bds-accordion.ts
8
+ var BdsAccordion = class extends i2 {
9
+ static styles = i`
10
+ :host {
11
+ display: block;
12
+ --bdc_color: var(--bds-color_bg--subtle);
13
+ --bdc-outline_radius: var(--bds-border_radius--s);
14
+ border-radius: var(--accordion_radius, var(--bdc-outline_radius));
15
+ box-shadow: inset 0 0 0 var(--bdc-outline_width) var(--bdc_color);
16
+ overflow: hidden;
17
+ }
18
+ `;
19
+ static properties = {
20
+ allowMultiple: { type: Boolean, attribute: "allow-multiple", reflect: true }
21
+ };
22
+ _mo = null;
23
+ constructor() {
24
+ super();
25
+ this.allowMultiple = false;
26
+ }
27
+ connectedCallback() {
28
+ super.connectedCallback();
29
+ this.addEventListener("bds-accordion-item-toggle", this._handleItemToggle);
30
+ this._mo = new MutationObserver(() => this._discoverItems());
31
+ this._mo.observe(this, { childList: true, subtree: false });
32
+ }
33
+ disconnectedCallback() {
34
+ super.disconnectedCallback();
35
+ this.removeEventListener("bds-accordion-item-toggle", this._handleItemToggle);
36
+ this._mo?.disconnect();
37
+ this._mo = null;
38
+ }
39
+ get _items() {
40
+ return [...this.querySelectorAll("bds-accordion-item")];
41
+ }
42
+ _discoverItems() {
43
+ this.requestUpdate();
44
+ }
45
+ _handleItemToggle = (e) => {
46
+ const toggled = e.target;
47
+ const items = this._items;
48
+ const wasOpen = toggled.open;
49
+ if (!this.allowMultiple) {
50
+ items.forEach((item) => {
51
+ item.open = false;
52
+ });
53
+ }
54
+ toggled.open = !wasOpen;
55
+ };
56
+ render() {
57
+ return T`<slot></slot>`;
58
+ }
59
+ };
60
+ customElements.define("bds-accordion", BdsAccordion);
61
+
62
+ export {
63
+ BdsAccordion
64
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1 @@
1
+ import "./chunk-DZRSJGPB.js";
@@ -0,0 +1,41 @@
1
+ export { BdsBadge } from './ui/bds-badge.js';
2
+ export { BdsButton } from './interaction/bds-button.js';
3
+ export { BdsAlert } from './ui/bds-alert.js';
4
+ export { BdsPopover } from './interaction/bds-popover.js';
5
+ export { BdsToastProvider } from './interaction/bds-toast-provider.js';
6
+ export { BdsSeparator } from './ui/bds-separator.js';
7
+ export { BdsSkeleton } from './ui/bds-skeleton.js';
8
+ export { BdsLoading } from './ui/bds-loading.js';
9
+ export { BdsAvatar } from './ui/bds-avatar.js';
10
+ export { BdsTypography } from './ui/bds-typography.js';
11
+ export { BdsProgress } from './ui/bds-progress.js';
12
+ export { BdsProgressCircle } from './ui/bds-progress-circle.js';
13
+ export { BdsRating } from './ui/bds-rating.js';
14
+ export { BdsCollapsible } from './interaction/bds-collapsible.js';
15
+ export { BdsAccordionItem } from './interaction/bds-accordion-item.js';
16
+ export { BdsAccordion } from './interaction/bds-accordion.js';
17
+ export { BdsTab } from './interaction/bds-tab.js';
18
+ export { BdsTabPanel } from './interaction/bds-tab-panel.js';
19
+ export { BdsTabs } from './interaction/bds-tabs.js';
20
+ export { BdsTooltip } from './interaction/bds-tooltip.js';
21
+ export { BdsSkipLink } from './interaction/bds-skip-link.js';
22
+ export { BdsDialog } from './interaction/bds-dialog.js';
23
+ export { BdsDrawer } from './interaction/bds-drawer.js';
24
+ export { BdsCheckbox } from './interaction/form/bds-checkbox.js';
25
+ export { BdsRadio } from './interaction/form/bds-radio.js';
26
+ export { BdsSwitch } from './interaction/form/bds-switch.js';
27
+ export { BdsSelect } from './interaction/form/bds-select.js';
28
+ export { BdsTextarea } from './interaction/form/bds-textarea.js';
29
+ export { BdsNumberInput } from './interaction/form/bds-number-input.js';
30
+ export { BdsSlider } from './interaction/form/bds-slider.js';
31
+ export { BdsSegmentedControl } from './interaction/form/bds-segmented-control.js';
32
+ export { BdsFileInput } from './interaction/form/bds-file-input.js';
33
+ export { BdsCombobox } from './interaction/form/bds-combobox.js';
34
+ export { BdsNotificationBanner } from './ui/bds-notification-banner.js';
35
+ export { BdsCard } from './ui/bds-card.js';
36
+ export { BdsSectionHeader } from './ui/bds-section-header.js';
37
+ export { BdsIconWrapper } from './ui/bds-icon-wrapper.js';
38
+ export { BdsDescriptionList } from './ui/bds-description-list.js';
39
+ export { BdsBreadcrumb } from './ui/bds-breadcrumb.js';
40
+ export { BdsLink } from './ui/bds-link.js';
41
+ import 'lit';
@@ -0,0 +1,165 @@
1
+ import {
2
+ BdsSwitch
3
+ } from "./chunk-XNA6WTXG.js";
4
+ import {
5
+ BdsTextarea
6
+ } from "./chunk-EBJM3VD4.js";
7
+ import {
8
+ BdsCheckbox
9
+ } from "./chunk-T6AETZRP.js";
10
+ import {
11
+ BdsCombobox
12
+ } from "./chunk-QLZ2362S.js";
13
+ import {
14
+ BdsFileInput
15
+ } from "./chunk-PY62FTRW.js";
16
+ import {
17
+ BdsNumberInput
18
+ } from "./chunk-JUKB3BUP.js";
19
+ import {
20
+ BdsRadio
21
+ } from "./chunk-HHHRF2PS.js";
22
+ import {
23
+ BdsSegmentedControl
24
+ } from "./chunk-6MH5UWUD.js";
25
+ import {
26
+ BdsSelect
27
+ } from "./chunk-X3FKVHLK.js";
28
+ import {
29
+ BdsSlider
30
+ } from "./chunk-7FMR53BW.js";
31
+ import {
32
+ BdsDrawer
33
+ } from "./chunk-DI46Q2EA.js";
34
+ import {
35
+ BdsPopover
36
+ } from "./chunk-ECW3HHWA.js";
37
+ import {
38
+ BdsSkipLink
39
+ } from "./chunk-BQLZ7I4G.js";
40
+ import {
41
+ BdsTab
42
+ } from "./chunk-6I3CFC26.js";
43
+ import {
44
+ BdsTabPanel
45
+ } from "./chunk-OQTRTMAB.js";
46
+ import {
47
+ BdsTabs
48
+ } from "./chunk-L3XHOMN6.js";
49
+ import {
50
+ BdsToastProvider
51
+ } from "./chunk-YLVTEY23.js";
52
+ import {
53
+ BdsTooltip
54
+ } from "./chunk-HGBNDR22.js";
55
+ import {
56
+ BdsSeparator
57
+ } from "./chunk-VMMVWLXL.js";
58
+ import {
59
+ BdsSkeleton
60
+ } from "./chunk-2QA62WCQ.js";
61
+ import {
62
+ BdsTypography
63
+ } from "./chunk-SOQQ7RVJ.js";
64
+ import {
65
+ BdsAccordion
66
+ } from "./chunk-ZTC6GRP7.js";
67
+ import {
68
+ BdsAccordionItem
69
+ } from "./chunk-UFFCKVZE.js";
70
+ import {
71
+ BdsButton
72
+ } from "./chunk-3REOIRDW.js";
73
+ import {
74
+ BdsCollapsible
75
+ } from "./chunk-5IPHEONG.js";
76
+ import {
77
+ BdsDialog
78
+ } from "./chunk-N6IMUOY4.js";
79
+ import {
80
+ BdsIconWrapper
81
+ } from "./chunk-5TFWOPLH.js";
82
+ import {
83
+ BdsLink
84
+ } from "./chunk-CR5PGUHV.js";
85
+ import {
86
+ BdsLoading
87
+ } from "./chunk-5R6IFELV.js";
88
+ import {
89
+ BdsNotificationBanner
90
+ } from "./chunk-AJSXNDAP.js";
91
+ import {
92
+ BdsProgress
93
+ } from "./chunk-ITHLKR7Q.js";
94
+ import {
95
+ BdsProgressCircle
96
+ } from "./chunk-QDST57JC.js";
97
+ import {
98
+ BdsRating
99
+ } from "./chunk-LY62SAVN.js";
100
+ import {
101
+ BdsSectionHeader
102
+ } from "./chunk-Y4MAXTMA.js";
103
+ import "./chunk-QPOKHLMQ.js";
104
+ import "./chunk-DZRSJGPB.js";
105
+ import {
106
+ BdsAlert
107
+ } from "./chunk-BX3IPVOB.js";
108
+ import {
109
+ BdsAvatar
110
+ } from "./chunk-57TRNCWQ.js";
111
+ import {
112
+ BdsBadge
113
+ } from "./chunk-OHUTLSIQ.js";
114
+ import {
115
+ BdsBreadcrumb
116
+ } from "./chunk-Q4T5BJT6.js";
117
+ import {
118
+ BdsCard
119
+ } from "./chunk-YRXCVKHV.js";
120
+ import {
121
+ BdsDescriptionList
122
+ } from "./chunk-AGKJTMJI.js";
123
+ import "./chunk-LGEZYFUU.js";
124
+ export {
125
+ BdsAccordion,
126
+ BdsAccordionItem,
127
+ BdsAlert,
128
+ BdsAvatar,
129
+ BdsBadge,
130
+ BdsBreadcrumb,
131
+ BdsButton,
132
+ BdsCard,
133
+ BdsCheckbox,
134
+ BdsCollapsible,
135
+ BdsCombobox,
136
+ BdsDescriptionList,
137
+ BdsDialog,
138
+ BdsDrawer,
139
+ BdsFileInput,
140
+ BdsIconWrapper,
141
+ BdsLink,
142
+ BdsLoading,
143
+ BdsNotificationBanner,
144
+ BdsNumberInput,
145
+ BdsPopover,
146
+ BdsProgress,
147
+ BdsProgressCircle,
148
+ BdsRadio,
149
+ BdsRating,
150
+ BdsSectionHeader,
151
+ BdsSegmentedControl,
152
+ BdsSelect,
153
+ BdsSeparator,
154
+ BdsSkeleton,
155
+ BdsSkipLink,
156
+ BdsSlider,
157
+ BdsSwitch,
158
+ BdsTab,
159
+ BdsTabPanel,
160
+ BdsTabs,
161
+ BdsTextarea,
162
+ BdsToastProvider,
163
+ BdsTooltip,
164
+ BdsTypography
165
+ };
@@ -0,0 +1,54 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+
4
+ /**
5
+ * `<bds-accordion-item>` — child element of `<bds-accordion>`.
6
+ *
7
+ * Manages a single collapsible panel. The `open` and `disabled` state is
8
+ * controlled by the parent `<bds-accordion>` element.
9
+ *
10
+ * Attributes:
11
+ * open — boolean; whether the panel is expanded
12
+ * disabled — boolean; prevents the user from toggling this item
13
+ *
14
+ * Slots:
15
+ * header — the always-visible trigger label
16
+ * (default) — the content revealed when open
17
+ *
18
+ * Events:
19
+ * bds-accordion-item-toggle — fired (bubbles, composed) when the trigger
20
+ * button is clicked; the parent accordion handles
21
+ * the state change.
22
+ *
23
+ * @example
24
+ * <bds-accordion-item>
25
+ * <span slot="header">Question</span>
26
+ * <p>Answer content</p>
27
+ * </bds-accordion-item>
28
+ */
29
+ declare class BdsAccordionItem extends LitElement {
30
+ static styles: lit.CSSResult;
31
+ static properties: {
32
+ open: {
33
+ type: BooleanConstructor;
34
+ reflect: boolean;
35
+ };
36
+ disabled: {
37
+ type: BooleanConstructor;
38
+ reflect: boolean;
39
+ };
40
+ };
41
+ open: boolean;
42
+ disabled: boolean;
43
+ private readonly _uid;
44
+ constructor();
45
+ private _handleTriggerClick;
46
+ render(): lit.TemplateResult<1>;
47
+ }
48
+ declare global {
49
+ interface HTMLElementTagNameMap {
50
+ 'bds-accordion-item': BdsAccordionItem;
51
+ }
52
+ }
53
+
54
+ export { BdsAccordionItem };
@@ -0,0 +1,7 @@
1
+ import {
2
+ BdsAccordionItem
3
+ } from "../chunk-UFFCKVZE.js";
4
+ import "../chunk-LGEZYFUU.js";
5
+ export {
6
+ BdsAccordionItem
7
+ };
@@ -0,0 +1,50 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement } from 'lit';
3
+
4
+ /**
5
+ * `<bds-accordion>` — framework-agnostic Accordion custom element.
6
+ *
7
+ * Contains `<bds-accordion-item>` children. Coordinates open/closed state
8
+ * across items; by default only one item is open at a time.
9
+ *
10
+ * Attributes:
11
+ * allow-multiple — boolean; when set, multiple items can be open simultaneously
12
+ *
13
+ * @example
14
+ * <bds-accordion>
15
+ * <bds-accordion-item>
16
+ * <span slot="header">Question 1</span>
17
+ * <p>Answer 1</p>
18
+ * </bds-accordion-item>
19
+ * <bds-accordion-item>
20
+ * <span slot="header">Question 2</span>
21
+ * <p>Answer 2</p>
22
+ * </bds-accordion-item>
23
+ * </bds-accordion>
24
+ */
25
+ declare class BdsAccordion extends LitElement {
26
+ static styles: lit.CSSResult;
27
+ static properties: {
28
+ allowMultiple: {
29
+ type: BooleanConstructor;
30
+ attribute: string;
31
+ reflect: boolean;
32
+ };
33
+ };
34
+ allowMultiple: boolean;
35
+ private _mo;
36
+ constructor();
37
+ connectedCallback(): void;
38
+ disconnectedCallback(): void;
39
+ private get _items();
40
+ private _discoverItems;
41
+ private _handleItemToggle;
42
+ render(): lit.TemplateResult<1>;
43
+ }
44
+ declare global {
45
+ interface HTMLElementTagNameMap {
46
+ 'bds-accordion': BdsAccordion;
47
+ }
48
+ }
49
+
50
+ export { BdsAccordion };
@@ -0,0 +1,7 @@
1
+ import {
2
+ BdsAccordion
3
+ } from "../chunk-ZTC6GRP7.js";
4
+ import "../chunk-LGEZYFUU.js";
5
+ export {
6
+ BdsAccordion
7
+ };