@arc-ui/components 11.5.0 → 11.7.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 (315) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +1 -1
  2. package/dist/Alert/Alert.cjs.js +4 -4
  3. package/dist/Alert/Alert.esm.d.ts +1 -1
  4. package/dist/Alert/Alert.esm.js +4 -4
  5. package/dist/Badge/Badge.cjs.js +2 -2
  6. package/dist/Badge/Badge.esm.js +2 -2
  7. package/dist/Box/Box.cjs.d.ts +1 -0
  8. package/dist/Box/Box.cjs.js +13 -0
  9. package/dist/Box/Box.esm.d.ts +1 -0
  10. package/dist/Box/Box.esm.js +5 -0
  11. package/dist/Box/package.json +7 -0
  12. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
  13. package/dist/BrandLogo/BrandLogo.cjs.js +2 -2
  14. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
  15. package/dist/BrandLogo/BrandLogo.esm.js +2 -2
  16. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
  17. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +10 -642
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +9 -641
  20. package/dist/Button/Button.cjs.d.ts +1 -1
  21. package/dist/Button/Button.cjs.js +4 -3
  22. package/dist/Button/Button.esm.d.ts +1 -1
  23. package/dist/Button/Button.esm.js +4 -3
  24. package/dist/Card/Card.cjs.d.ts +1 -130
  25. package/dist/Card/Card.cjs.js +12 -119
  26. package/dist/Card/Card.esm.d.ts +1 -130
  27. package/dist/Card/Card.esm.js +11 -118
  28. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -64
  29. package/dist/Checkbox/Checkbox.cjs.js +11 -60
  30. package/dist/Checkbox/Checkbox.esm.d.ts +1 -64
  31. package/dist/Checkbox/Checkbox.esm.js +10 -59
  32. package/dist/Columns/Columns.cjs.d.ts +1 -76
  33. package/dist/Columns/Columns.cjs.js +6 -52
  34. package/dist/Columns/Columns.esm.d.ts +1 -76
  35. package/dist/Columns/Columns.esm.js +5 -51
  36. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  37. package/dist/Disclosure/Disclosure.cjs.js +2 -2
  38. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  39. package/dist/Disclosure/Disclosure.esm.js +2 -2
  40. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  41. package/dist/DisclosureMini/DisclosureMini.cjs.js +3 -3
  42. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  43. package/dist/DisclosureMini/DisclosureMini.esm.js +3 -3
  44. package/dist/Filter/Filter.cjs.d.ts +1 -0
  45. package/dist/Filter/Filter.cjs.js +13 -0
  46. package/dist/Filter/Filter.esm.d.ts +1 -0
  47. package/dist/Filter/Filter.esm.js +5 -0
  48. package/dist/Filter/package.json +7 -0
  49. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  50. package/dist/FormControl/FormControl.cjs.js +4 -5
  51. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  52. package/dist/FormControl/FormControl.esm.js +4 -5
  53. package/dist/Group/Group.cjs.d.ts +1 -46
  54. package/dist/Group/Group.cjs.js +6 -43
  55. package/dist/Group/Group.esm.d.ts +1 -46
  56. package/dist/Group/Group.esm.js +5 -42
  57. package/dist/Heading/Heading.cjs.d.ts +1 -1
  58. package/dist/Heading/Heading.cjs.js +2 -2
  59. package/dist/Heading/Heading.esm.d.ts +1 -1
  60. package/dist/Heading/Heading.esm.js +2 -2
  61. package/dist/Icon/Icon.cjs.d.ts +1 -1
  62. package/dist/Icon/Icon.cjs.js +2 -2
  63. package/dist/Icon/Icon.esm.d.ts +1 -1
  64. package/dist/Icon/Icon.esm.js +2 -2
  65. package/dist/Image/Image.cjs.d.ts +1 -1
  66. package/dist/Image/Image.cjs.js +2 -1
  67. package/dist/Image/Image.esm.d.ts +1 -1
  68. package/dist/Image/Image.esm.js +1 -1
  69. package/dist/Markup/Markup.cjs.js +1 -1
  70. package/dist/Markup/Markup.esm.js +1 -1
  71. package/dist/MediaCard/MediaCard.cjs.d.ts +61 -0
  72. package/dist/MediaCard/MediaCard.cjs.js +31 -0
  73. package/dist/MediaCard/MediaCard.esm.d.ts +61 -0
  74. package/dist/MediaCard/MediaCard.esm.js +23 -0
  75. package/dist/MediaCard/package.json +7 -0
  76. package/dist/Modal/Modal.cjs.d.ts +31 -0
  77. package/dist/Modal/Modal.cjs.js +388 -0
  78. package/dist/Modal/Modal.esm.d.ts +31 -0
  79. package/dist/Modal/Modal.esm.js +380 -0
  80. package/dist/Modal/package.json +7 -0
  81. package/dist/Pagination/Pagination.cjs.d.ts +20 -0
  82. package/dist/Pagination/Pagination.cjs.js +87 -0
  83. package/dist/Pagination/Pagination.esm.d.ts +20 -0
  84. package/dist/Pagination/Pagination.esm.js +79 -0
  85. package/dist/Pagination/package.json +7 -0
  86. package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
  87. package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
  88. package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
  89. package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
  90. package/dist/PaginationSimple/package.json +7 -0
  91. package/dist/Poster/Poster.cjs.d.ts +1 -81
  92. package/dist/Poster/Poster.cjs.js +8 -45
  93. package/dist/Poster/Poster.esm.d.ts +1 -81
  94. package/dist/Poster/Poster.esm.js +7 -44
  95. package/dist/ProgressBar/ProgressBar.cjs.js +4 -4
  96. package/dist/ProgressBar/ProgressBar.esm.js +4 -4
  97. package/dist/ProgressStepper/ProgressStepper.cjs.d.ts +89 -0
  98. package/dist/ProgressStepper/ProgressStepper.cjs.js +152 -0
  99. package/dist/ProgressStepper/ProgressStepper.esm.d.ts +89 -0
  100. package/dist/ProgressStepper/ProgressStepper.esm.js +144 -0
  101. package/dist/ProgressStepper/package.json +7 -0
  102. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
  103. package/dist/RadioGroup/RadioGroup.cjs.js +9 -68
  104. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
  105. package/dist/RadioGroup/RadioGroup.esm.js +8 -67
  106. package/dist/Rule/Rule.cjs.js +1 -1
  107. package/dist/Rule/Rule.esm.js +1 -1
  108. package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
  109. package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
  110. package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
  111. package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
  112. package/dist/ScrollToTop/package.json +7 -0
  113. package/dist/Select/Select.cjs.d.ts +2 -2
  114. package/dist/Select/Select.cjs.js +20 -1419
  115. package/dist/Select/Select.esm.d.ts +2 -2
  116. package/dist/Select/Select.esm.js +10 -1390
  117. package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
  118. package/dist/SiteFooter/SiteFooter.cjs.js +10 -65
  119. package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
  120. package/dist/SiteFooter/SiteFooter.esm.js +12 -66
  121. package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -260
  122. package/dist/SiteHeader/SiteHeader.cjs.js +17 -669
  123. package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -260
  124. package/dist/SiteHeader/SiteHeader.esm.js +15 -667
  125. package/dist/Surface/Surface.cjs.d.ts +1 -1
  126. package/dist/Surface/Surface.cjs.js +1 -1
  127. package/dist/Surface/Surface.esm.d.ts +1 -1
  128. package/dist/Surface/Surface.esm.js +1 -1
  129. package/dist/Switch/Switch.cjs.d.ts +2 -2
  130. package/dist/Switch/Switch.cjs.js +8 -7
  131. package/dist/Switch/Switch.esm.d.ts +2 -2
  132. package/dist/Switch/Switch.esm.js +7 -6
  133. package/dist/Tag/Tag.cjs.js +2 -2
  134. package/dist/Tag/Tag.esm.js +2 -2
  135. package/dist/Text/Text.cjs.d.ts +1 -1
  136. package/dist/Text/Text.cjs.js +2 -2
  137. package/dist/Text/Text.esm.d.ts +1 -1
  138. package/dist/Text/Text.esm.js +2 -2
  139. package/dist/TextArea/TextArea.cjs.d.ts +61 -0
  140. package/dist/TextArea/TextArea.cjs.js +87 -0
  141. package/dist/TextArea/TextArea.esm.d.ts +61 -0
  142. package/dist/TextArea/TextArea.esm.js +79 -0
  143. package/dist/TextArea/package.json +7 -0
  144. package/dist/TextInput/TextInput.cjs.d.ts +1 -75
  145. package/dist/TextInput/TextInput.cjs.js +10 -76
  146. package/dist/TextInput/TextInput.esm.d.ts +1 -75
  147. package/dist/TextInput/TextInput.esm.js +9 -75
  148. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
  149. package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
  150. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
  151. package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
  152. package/dist/_shared/cjs/Box-ebe2b7be.d.ts +39 -0
  153. package/dist/_shared/cjs/Box-ebe2b7be.js +30 -0
  154. package/dist/_shared/cjs/{BrandLogo-8008f0c4.js → BrandLogo-8107d59f.js} +1 -1
  155. package/dist/_shared/cjs/Breadcrumbs-9f580f69.d.ts +61 -0
  156. package/dist/_shared/cjs/Breadcrumbs-9f580f69.js +106 -0
  157. package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
  158. package/dist/_shared/cjs/{Button-5dff284a.js → Button-b4d6ccc8.js} +8 -29
  159. package/dist/_shared/cjs/Card-f1108bfe.d.ts +136 -0
  160. package/dist/_shared/cjs/Card-f1108bfe.js +124 -0
  161. package/dist/_shared/cjs/Checkbox-c927b62f.d.ts +64 -0
  162. package/dist/_shared/cjs/Checkbox-c927b62f.js +62 -0
  163. package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
  164. package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
  165. package/dist/_shared/cjs/{DisclosureMini-5af13d3c.js → DisclosureMini-2a10006e.js} +5 -3
  166. package/dist/_shared/cjs/Filter-a7574fe7.d.ts +83 -0
  167. package/dist/_shared/cjs/Filter-a7574fe7.js +121 -0
  168. package/dist/_shared/{esm/FormControl-0744f93f.d.ts → cjs/FormControl-78b007b7.d.ts} +4 -0
  169. package/dist/_shared/cjs/{FormControl-42360ae8.js → FormControl-78b007b7.js} +10 -10
  170. package/dist/_shared/cjs/Group-f85dd4c0.d.ts +46 -0
  171. package/dist/_shared/cjs/Group-f85dd4c0.js +48 -0
  172. package/dist/_shared/cjs/{Heading-d45f6a7f.js → Heading-ed1cb455.js} +1 -1
  173. package/dist/_shared/cjs/{Icon-9ae8dbe1.js → Icon-e1dd45eb.js} +1 -1
  174. package/dist/_shared/cjs/{Image-3bf4b4f3.js → Image-0e393cbf.js} +2 -0
  175. package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
  176. package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
  177. package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
  178. package/dist/_shared/cjs/Poster-faea1ad3.d.ts +81 -0
  179. package/dist/_shared/cjs/Poster-faea1ad3.js +50 -0
  180. package/dist/_shared/cjs/RadioGroup-8e17de70.d.ts +97 -0
  181. package/dist/_shared/cjs/RadioGroup-8e17de70.js +70 -0
  182. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.d.ts +62 -0
  183. package/dist/_shared/cjs/SiteFooter-9f7f9c2d.js +73 -0
  184. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
  185. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.d.ts +78 -0
  186. package/dist/_shared/cjs/SiteHeader.rehydrator-ccbebde6.js +673 -0
  187. package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
  188. package/dist/_shared/cjs/{Surface-6da0a78e.d.ts → Surface-b7c51b2b.d.ts} +3 -2
  189. package/dist/_shared/cjs/{Surface-6da0a78e.js → Surface-b7c51b2b.js} +1 -1
  190. package/dist/_shared/cjs/{Text-6f2827e6.js → Text-555a29a4.js} +1 -1
  191. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
  192. package/dist/_shared/cjs/TextInput-b768e346.d.ts +10 -0
  193. package/dist/_shared/cjs/TextInput-b768e346.js +78 -0
  194. package/dist/_shared/cjs/UniversalHeader-da622e1a.d.ts +26 -0
  195. package/dist/_shared/cjs/UniversalHeader-da622e1a.js +35 -0
  196. package/dist/_shared/cjs/debounce-506538c5.js +544 -0
  197. package/dist/_shared/cjs/index-31fbb076.js +1416 -0
  198. package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
  199. package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
  200. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  201. package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
  202. package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
  203. package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
  204. package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
  205. package/dist/_shared/cjs/index.module-5ea728f4.js +23 -0
  206. package/dist/_shared/cjs/{index.module-af7c85f2.js → index.module-9b87a34d.js} +84 -103
  207. package/dist/_shared/esm/Box-06d99d8a.d.ts +39 -0
  208. package/dist/_shared/esm/Box-06d99d8a.js +24 -0
  209. package/dist/_shared/esm/{BrandLogo-56699561.js → BrandLogo-9ec620e8.js} +1 -1
  210. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.d.ts +61 -0
  211. package/dist/_shared/esm/Breadcrumbs-5dc0afa7.js +100 -0
  212. package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
  213. package/dist/_shared/esm/{Button-61241dd0.js → Button-9c3b0b11.js} +4 -25
  214. package/dist/_shared/esm/Card-79b6eae0.d.ts +136 -0
  215. package/dist/_shared/esm/Card-79b6eae0.js +118 -0
  216. package/dist/_shared/esm/Checkbox-2d144384.d.ts +64 -0
  217. package/dist/_shared/esm/Checkbox-2d144384.js +56 -0
  218. package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
  219. package/dist/_shared/esm/Columns-8704515b.js +51 -0
  220. package/dist/_shared/esm/{DisclosureMini-322fccc0.js → DisclosureMini-78a8f392.js} +5 -3
  221. package/dist/_shared/esm/Filter-a01aed11.d.ts +83 -0
  222. package/dist/_shared/esm/Filter-a01aed11.js +115 -0
  223. package/dist/_shared/{cjs/FormControl-42360ae8.d.ts → esm/FormControl-2fa7aae5.d.ts} +4 -0
  224. package/dist/_shared/esm/{FormControl-0744f93f.js → FormControl-2fa7aae5.js} +10 -10
  225. package/dist/_shared/esm/Group-fb26fd32.d.ts +46 -0
  226. package/dist/_shared/esm/Group-fb26fd32.js +42 -0
  227. package/dist/_shared/esm/{Heading-b61432fb.js → Heading-ee6bec51.js} +1 -1
  228. package/dist/_shared/esm/{Icon-fd247973.js → Icon-c1af47bc.js} +1 -1
  229. package/dist/_shared/esm/{Image-3596ce55.js → Image-3ed3863c.js} +2 -1
  230. package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
  231. package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
  232. package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
  233. package/dist/_shared/esm/Poster-a83ae770.d.ts +81 -0
  234. package/dist/_shared/esm/Poster-a83ae770.js +44 -0
  235. package/dist/_shared/esm/RadioGroup-65b8c8bf.d.ts +97 -0
  236. package/dist/_shared/esm/RadioGroup-65b8c8bf.js +64 -0
  237. package/dist/_shared/esm/SiteFooter-51bdc7df.d.ts +62 -0
  238. package/dist/_shared/esm/SiteFooter-51bdc7df.js +67 -0
  239. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
  240. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.d.ts +78 -0
  241. package/dist/_shared/esm/SiteHeader.rehydrator-382d1c03.js +666 -0
  242. package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
  243. package/dist/_shared/esm/{Surface-bb100ef8.d.ts → Surface-dde51789.d.ts} +3 -2
  244. package/dist/_shared/esm/{Surface-bb100ef8.js → Surface-dde51789.js} +1 -1
  245. package/dist/_shared/esm/{Text-00e9743b.js → Text-14deb70e.js} +1 -1
  246. package/dist/_shared/esm/TextInput-62bb7dee.d.ts +10 -0
  247. package/dist/_shared/esm/TextInput-62bb7dee.js +72 -0
  248. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
  249. package/dist/_shared/esm/UniversalHeader-1c5a886d.d.ts +26 -0
  250. package/dist/_shared/esm/UniversalHeader-1c5a886d.js +29 -0
  251. package/dist/_shared/esm/debounce-e228705f.js +542 -0
  252. package/dist/_shared/esm/index-4fa635bd.js +1386 -0
  253. package/dist/_shared/esm/index-699086a7.d.ts +2 -0
  254. package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
  255. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  256. package/dist/_shared/esm/index-e340924e.d.ts +2 -0
  257. package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
  258. package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
  259. package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
  260. package/dist/_shared/esm/{index.module-599b86dd.js → index.module-216016b5.js} +86 -104
  261. package/dist/_shared/esm/index.module-88179159.js +21 -0
  262. package/dist/index.es.js +179 -28
  263. package/dist/index.es.js.map +1 -1
  264. package/dist/index.js +180 -27
  265. package/dist/index.js.map +1 -1
  266. package/dist/styles.css +1 -1
  267. package/dist/types/components/Box/Box.d.ts +36 -0
  268. package/dist/types/components/Box/index.d.ts +1 -0
  269. package/dist/types/components/Filter/Filter.d.ts +38 -0
  270. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
  271. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
  272. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
  273. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
  274. package/dist/types/components/Filter/index.d.ts +1 -0
  275. package/dist/types/components/FormControl/FormControl.d.ts +4 -0
  276. package/dist/types/components/Image/index.d.ts +1 -1
  277. package/dist/types/components/MediaCard/MediaCard.d.ts +57 -0
  278. package/dist/types/components/MediaCard/index.d.ts +1 -0
  279. package/dist/types/components/Modal/Modal.stories-wip.d.ts +9 -0
  280. package/dist/types/components/Pagination/Pagination.d.ts +19 -0
  281. package/dist/types/components/Pagination/index.d.ts +1 -0
  282. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
  283. package/dist/types/components/PaginationSimple/index.d.ts +1 -0
  284. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +28 -0
  285. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +62 -0
  286. package/dist/types/components/ProgressStepper/index.d.ts +1 -0
  287. package/dist/types/components/ProgressStepper/progressStatus.d.ts +1 -0
  288. package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
  289. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
  290. package/dist/types/components/ScrollToTop/index.d.ts +1 -0
  291. package/dist/types/components/Select/Select.d.ts +1 -1
  292. package/dist/types/components/Surface/Surface.d.ts +2 -1
  293. package/dist/types/components/Surface/index.d.ts +1 -1
  294. package/dist/types/components/Switch/Switch.d.ts +1 -1
  295. package/dist/types/components/TextArea/TextArea.d.ts +60 -0
  296. package/dist/types/components/TextArea/index.d.ts +1 -0
  297. package/dist/types/components/TextInput/TextInput.d.ts +1 -1
  298. package/dist/types/components/index.d.ts +2 -0
  299. package/dist/types/hooks/use-pagination.d.ts +1 -0
  300. package/dist/types/styles.d.ts +10 -0
  301. package/package.json +4 -4
  302. /package/dist/_shared/cjs/{BrandLogo-8008f0c4.d.ts → BrandLogo-8107d59f.d.ts} +0 -0
  303. /package/dist/_shared/cjs/{Button-5dff284a.d.ts → Button-b4d6ccc8.d.ts} +0 -0
  304. /package/dist/_shared/cjs/{DisclosureMini-5af13d3c.d.ts → DisclosureMini-2a10006e.d.ts} +0 -0
  305. /package/dist/_shared/cjs/{Heading-d45f6a7f.d.ts → Heading-ed1cb455.d.ts} +0 -0
  306. /package/dist/_shared/cjs/{Icon-9ae8dbe1.d.ts → Icon-e1dd45eb.d.ts} +0 -0
  307. /package/dist/_shared/cjs/{Image-3bf4b4f3.d.ts → Image-0e393cbf.d.ts} +0 -0
  308. /package/dist/_shared/cjs/{Text-6f2827e6.d.ts → Text-555a29a4.d.ts} +0 -0
  309. /package/dist/_shared/esm/{BrandLogo-56699561.d.ts → BrandLogo-9ec620e8.d.ts} +0 -0
  310. /package/dist/_shared/esm/{Button-61241dd0.d.ts → Button-9c3b0b11.d.ts} +0 -0
  311. /package/dist/_shared/esm/{DisclosureMini-322fccc0.d.ts → DisclosureMini-78a8f392.d.ts} +0 -0
  312. /package/dist/_shared/esm/{Heading-b61432fb.d.ts → Heading-ee6bec51.d.ts} +0 -0
  313. /package/dist/_shared/esm/{Icon-fd247973.d.ts → Icon-c1af47bc.d.ts} +0 -0
  314. /package/dist/_shared/esm/{Image-3596ce55.d.ts → Image-3ed3863c.d.ts} +0 -0
  315. /package/dist/_shared/esm/{Text-00e9743b.d.ts → Text-14deb70e.d.ts} +0 -0
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ var React$1 = require('react');
4
+
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
8
+
9
+ const React = React__default["default"];
10
+ const BtIconChevronLeftMid = props =>
11
+ /*#__PURE__*/ React.createElement(
12
+ "svg",
13
+ Object.assign(
14
+ {
15
+ viewBox: "0 0 16 16",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ },
19
+ props
20
+ ),
21
+ /*#__PURE__*/ React.createElement("path", {
22
+ fillRule: "evenodd",
23
+ clipRule: "evenodd",
24
+ d:
25
+ "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
26
+ fill: "currentColor"
27
+ })
28
+ );
29
+ var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
30
+
31
+ exports.BtIconChevronLeftMid_2 = BtIconChevronLeftMid_2;
@@ -1,46 +1,25 @@
1
1
  'use strict';
2
2
 
3
3
  var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
- var React$1 = require('react');
4
+ var BtIconChevronLeftMid = require('./BtIconChevronLeftMid-df952a3e.js');
5
5
  var BtIconChevronRightMid = require('./BtIconChevronRightMid-5a38d855.js');
6
6
  var index = require('./index-45bfb67b.js');
7
+ var React = require('react');
7
8
  var suffixModifier = require('./suffix-modifier-1ee2da04.js');
8
- var Icon = require('./Icon-9ae8dbe1.js');
9
- var Surface = require('./Surface-6da0a78e.js');
9
+ var Icon = require('./Icon-e1dd45eb.js');
10
+ var Surface = require('./Surface-b7c51b2b.js');
10
11
 
11
12
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
13
 
13
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
14
-
15
- const React = React__default["default"];
16
- const BtIconChevronLeftMid = props =>
17
- /*#__PURE__*/ React.createElement(
18
- "svg",
19
- Object.assign(
20
- {
21
- viewBox: "0 0 16 16",
22
- fill: "none",
23
- xmlns: "http://www.w3.org/2000/svg"
24
- },
25
- props
26
- ),
27
- /*#__PURE__*/ React.createElement("path", {
28
- fillRule: "evenodd",
29
- clipRule: "evenodd",
30
- d:
31
- "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
32
- fill: "currentColor"
33
- })
34
- );
35
- var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
36
15
 
37
16
  /**
38
17
  * Use `Button` to allow users to take actions with clicks and taps.
39
18
  */
40
- var Button = React$1.forwardRef(function (_a, ref) {
19
+ var Button = React.forwardRef(function (_a, ref) {
41
20
  var _b;
42
21
  var ariaLabel = _a.ariaLabel, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, supportingText = _a.supportingText, target = _a.target, type = _a.type, props = filterDataAttrs.__rest(_a, ["ariaLabel", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "supportingText", "target", "type"]);
43
- var surface = React$1.useContext(Surface.Context).surface;
22
+ var surface = React.useContext(Surface.Context).surface;
44
23
  var buttonClasses = index.classNames((_b = {
45
24
  "arc-Button": true,
46
25
  "arc-Button--displayBlock": isDisplayBlock
@@ -71,7 +50,7 @@ var Button = React$1.forwardRef(function (_a, ref) {
71
50
  });
72
51
  var ButtonIcon = function (_a) {
73
52
  var icon = _a.icon, isChevron = _a.isChevron, isBeforeText = _a.isBeforeText;
74
- return (React__default["default"].createElement("span", { className: "arc-Button-icon" }, isChevron ? (React__default["default"].createElement(Icon.Icon, { icon: isBeforeText ? BtIconChevronLeftMid_2 : BtIconChevronRightMid.BtIconChevronRightMid_2 })) : (React__default["default"].createElement(Icon.Icon, { icon: icon }))));
53
+ return (React__default["default"].createElement("span", { className: "arc-Button-icon" }, isChevron ? (React__default["default"].createElement(Icon.Icon, { icon: isBeforeText ? BtIconChevronLeftMid.BtIconChevronLeftMid_2 : BtIconChevronRightMid.BtIconChevronRightMid_2 })) : (React__default["default"].createElement(Icon.Icon, { icon: icon }))));
75
54
  };
76
55
 
77
56
  exports.Button = Button;
@@ -0,0 +1,136 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, HTMLAttributes } from "react";
4
+ /**
5
+ * Detect interaction mode
6
+ */
7
+ declare const useInteractionMode: () => {
8
+ interactionMode: string;
9
+ };
10
+ /**
11
+ * Use `Card` to contain content and actions about a single subject.
12
+ */
13
+ declare const Card: FC<CardProps> & {
14
+ Block: typeof CardBlock;
15
+ Image: typeof CardImage;
16
+ };
17
+ /**
18
+ * Internal `Card.Block` component to section blocks of content within a Card.
19
+ */
20
+ declare const CardBlock: FC<{
21
+ /**
22
+ * Contents of the CardBlock.
23
+ */
24
+ children: React.ReactNode;
25
+ /**
26
+ * How should the content of the block be aligned?
27
+ */
28
+ align?: "left" | "center" | "right";
29
+ /**
30
+ * Should the block stretch to the width of the Card?
31
+ */
32
+ isFullWidth?: boolean;
33
+ /**
34
+ * Should the block grow to the fill the available vertical space? Used when the Card appears in a column.
35
+ */
36
+ grow?: boolean;
37
+ }>;
38
+ /**
39
+ * Internal `Card.Image` component to show an image within a Card.
40
+ */
41
+ declare const CardImage: FC<{
42
+ /**
43
+ * Alternative text for the Card.Image, shown if the image cannot be displayed.
44
+ */
45
+ alt?: string;
46
+ /**
47
+ * Height of the Card.Image.
48
+ */
49
+ height?: number;
50
+ /**
51
+ * Loading behaviour of the Card.Image.
52
+ */
53
+ loading?: "eager" | "lazy";
54
+ /**
55
+ * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
56
+ */
57
+ sizes?: string;
58
+ /**
59
+ * HTML src for the Card.Image.
60
+ */
61
+ src: string;
62
+ /**
63
+ * A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
64
+ */
65
+ srcSet?: string;
66
+ }>;
67
+ type TitleSize = "xs" | "s" | "m" | "l" | "xl";
68
+ interface CardProps extends HTMLAttributes<HTMLElement> {
69
+ /**
70
+ * The HTML ID passed to the Card Button for aria- attributes.
71
+ */
72
+ actionId?: string;
73
+ /**
74
+ * Label for the Card's Button. You should specify this if defining an href.
75
+ */
76
+ actionLabel?: string;
77
+ /**
78
+ * A `Card.Image` to use for the cover image.
79
+ */
80
+ coverImage?: React.ReactNode;
81
+ /**
82
+ * Card fill.
83
+ */
84
+ fill?: "solid" | "outlined" | "neutral";
85
+ /**
86
+ * A URL to link to when the Card is clicked or touched.
87
+ */
88
+ href: string;
89
+ /**
90
+ * Alternative text for the Card cover image, shown if the image cannot be displayed.
91
+ */
92
+ imageAlt?: string;
93
+ /**
94
+ * Height of the Card cover image.
95
+ */
96
+ imageHeight?: number;
97
+ /**
98
+ * Loading behaviour of the Card cover image.
99
+ */
100
+ imageLoading?: "eager" | "lazy";
101
+ /**
102
+ * HTML src for the Card cover image.
103
+ */
104
+ imageSrc?: string;
105
+ /**
106
+ * A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes in the Card cover image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
107
+ */
108
+ imageSrcSet?: string;
109
+ /**
110
+ * Object of `data-` attributes to render on internal anchor element, e.g.
111
+ * `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
112
+ */
113
+ linkData?: {};
114
+ /**
115
+ * The minimum height of the card. Cards in a series of columns will match the
116
+ * height of the tallest Card.
117
+ */
118
+ minHeight?: number;
119
+ /**
120
+ * Link target attribute for the Card link.
121
+ */
122
+ target?: "_blank" | "_parent" | "_self" | "_top";
123
+ /**
124
+ * The title for the Card, describing the content. This is required to provide good accessibility to screen readers.
125
+ */
126
+ title: string;
127
+ /**
128
+ * The size for the Card title.
129
+ */
130
+ titleSize?: TitleSize;
131
+ /**
132
+ * On click handler.
133
+ */
134
+ onClick?: () => void;
135
+ }
136
+ export { useInteractionMode, Card, TitleSize, CardProps };
@@ -0,0 +1,124 @@
1
+ 'use strict';
2
+
3
+ var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
+ var index = require('./index-45bfb67b.js');
5
+ var React = require('react');
6
+ var BtIconChevronRightMid = require('./BtIconChevronRightMid-5a38d855.js');
7
+ var Icon = require('./Icon-e1dd45eb.js');
8
+ var Image = require('./Image-0e393cbf.js');
9
+ var Heading = require('./Heading-ed1cb455.js');
10
+ var suffixModifier = require('./suffix-modifier-1ee2da04.js');
11
+ var Surface = require('./Surface-b7c51b2b.js');
12
+ var handleLinkClick = require('./handle-link-click-17a44cf4.js');
13
+
14
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
+
16
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
+
18
+ /**
19
+ * Detect interaction mode
20
+ */
21
+ var useInteractionMode = function () {
22
+ var _a = React.useState("pointer"), interactionMode = _a[0], setInteractionMode = _a[1];
23
+ React.useEffect(function () {
24
+ var onKeyDown = function (event) {
25
+ if (event.altKey || event.ctrlKey || event.metaKey) {
26
+ return;
27
+ }
28
+ setInteractionMode("keyboard");
29
+ };
30
+ var onPointerDown = function () {
31
+ setInteractionMode("pointer");
32
+ };
33
+ if (typeof window !== "undefined") {
34
+ document.addEventListener("keydown", onKeyDown, true);
35
+ document.addEventListener("click", onPointerDown, true);
36
+ }
37
+ return function () {
38
+ if (typeof window !== "undefined") {
39
+ document.removeEventListener("keydown", onKeyDown);
40
+ document.removeEventListener("click", onPointerDown);
41
+ }
42
+ };
43
+ }, []);
44
+ return { interactionMode: interactionMode };
45
+ };
46
+
47
+ /**
48
+ * Use `Card` to contain content and actions about a single subject.
49
+ */
50
+ var Card = function (_a) {
51
+ var _b;
52
+ var actionId = _a.actionId, _c = _a.actionLabel, actionLabel = _c === void 0 ? "Read more" : _c, children = _a.children, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, href = _a.href, imageAlt = _a.imageAlt, imageHeight = _a.imageHeight, imageLoading = _a.imageLoading, imageSrc = _a.imageSrc, imageSrcSet = _a.imageSrcSet, linkData = _a.linkData, minHeight = _a.minHeight, onClick = _a.onClick, target = _a.target, title = _a.title, _e = _a.titleSize, titleSize = _e === void 0 ? "s" : _e, props = filterDataAttrs.__rest(_a, ["actionId", "actionLabel", "children", "fill", "href", "imageAlt", "imageHeight", "imageLoading", "imageSrc", "imageSrcSet", "linkData", "minHeight", "onClick", "target", "title", "titleSize"]);
53
+ var surface = React.useContext(Surface.Context).surface;
54
+ var interactionMode = useInteractionMode().interactionMode;
55
+ var Wrapper = function (_a) {
56
+ var children = _a.children;
57
+ return fill === "outlined" || fill === "neutral" ? (React__default["default"].createElement("div", null, children)) : (React__default["default"].createElement(Surface.Surface, { background: surface === "dark" ? "white" : "darker" }, children));
58
+ };
59
+ var coverImage = imageSrc && (React__default["default"].createElement(CardImage, { alt: imageAlt, height: imageHeight, loading: imageLoading, src: imageSrc, srcSet: imageSrcSet }));
60
+ return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames((_b = {
61
+ "arc-Card": true,
62
+ "arc-Card--onDarkSurface": surface === "dark"
63
+ },
64
+ _b[suffixModifier.suffixModifier("arc-Card--fill", fill)] = fill !== "solid",
65
+ _b["arc-is-".concat(interactionMode, "InteractionMode")] = interactionMode,
66
+ _b)) }, filterDataAttrs.filterDataAttrs(props)),
67
+ React__default["default"].createElement(Wrapper, null,
68
+ React__default["default"].createElement("div", { className: "arc-Card-inner", style: { minHeight: minHeight } },
69
+ React__default["default"].createElement("div", { className: "arc-Card-header" },
70
+ React__default["default"].createElement("div", { className: "arc-Card-title" },
71
+ React__default["default"].createElement(Heading.Heading, { size: titleSize },
72
+ React__default["default"].createElement(CardLink, { stretch: true, onClick: onClick, actionId: actionId, fill: fill, href: href, linkData: linkData, target: target }, title))),
73
+ coverImage),
74
+ React__default["default"].createElement("div", { className: "arc-Card-children" },
75
+ React__default["default"].createElement(Card.Block, null, children)),
76
+ href && (React__default["default"].createElement(CardBlock, null,
77
+ React__default["default"].createElement(CardLink, { href: href, fill: fill, actionId: actionId, onClick: onClick, isButton: true }, actionLabel)))))));
78
+ };
79
+ /**
80
+ * Internal `Card.Block` component to section blocks of content within a Card.
81
+ */
82
+ var CardBlock = function (_a) {
83
+ var _b = _a.align, align = _b === void 0 ? "left" : _b, children = _a.children, _c = _a.isFullWidth, isFullWidth = _c === void 0 ? false : _c, _d = _a.grow, grow = _d === void 0 ? false : _d;
84
+ return (React__default["default"].createElement("div", { className: index.classNames({
85
+ "arc-Card-block": true,
86
+ "arc-Card-block--alignCenter": align === "center",
87
+ "arc-Card-block--alignRight": align === "right",
88
+ "arc-Card-block--fullWidth": isFullWidth,
89
+ "arc-Card-block--grow": grow
90
+ }) },
91
+ React__default["default"].createElement("div", { className: "arc-Card-blockInner" }, children)));
92
+ };
93
+ CardBlock.displayName = "Card.Block";
94
+ Card.Block = CardBlock;
95
+ /**
96
+ * Internal `Card.Image` component to show an image within a Card.
97
+ */
98
+ var CardImage = function (_a) {
99
+ var _b = _a.alt, alt = _b === void 0 ? "" : _b, _c = _a.height, height = _c === void 0 ? 176 : _c, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet;
100
+ return (React__default["default"].createElement("div", { className: index.classNames({
101
+ "arc-Card-image": true
102
+ }) },
103
+ React__default["default"].createElement(Image.Image, { alt: alt, fit: "cover", height: height, loading: loading, sizes: sizes, src: src, srcSet: srcSet })));
104
+ };
105
+ CardImage.displayName = "Card.Image";
106
+ Card.Image = CardImage;
107
+ /**
108
+ * Internal `CardLink` component.
109
+ */
110
+ var CardLink = function (_a) {
111
+ var actionId = _a.actionId, isButton = _a.isButton, children = _a.children, fill = _a.fill, href = _a.href, _b = _a.linkData, linkData = _b === void 0 ? {} : _b, onClick = _a.onClick, stretch = _a.stretch, target = _a.target;
112
+ var surface = React.useContext(Surface.Context).surface;
113
+ return (React__default["default"].createElement("a", filterDataAttrs.__assign({ onClick: handleLinkClick.handleLinkClick({ handler: onClick }), "aria-describedby": actionId, className: index.classNames({
114
+ "arc-Card-link": true,
115
+ "arc-Card-link--button": isButton,
116
+ "arc-Card-link--onDarkSurface": surface === "dark" && fill !== "neutral",
117
+ "arc-Card-link--stretch": stretch
118
+ }), href: href, rel: target === "_blank" ? "noopener noreferrer" : undefined, tabIndex: isButton ? -1 : undefined, target: target }, filterDataAttrs.filterDataAttrs(linkData)),
119
+ React__default["default"].createElement("span", { className: "arc-Card-linkText" }, children),
120
+ isButton && (React__default["default"].createElement("span", { className: "arc-Card-linkIcon" },
121
+ React__default["default"].createElement(Icon.Icon, { testId: "cardIcon", icon: BtIconChevronRightMid.BtIconChevronRightMid_2, size: 24 })))));
122
+ };
123
+
124
+ exports.Card = Card;
@@ -0,0 +1,64 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ type EventType = React.ChangeEvent<HTMLInputElement>;
4
+ /**
5
+ * Use `Checkbox` to allow users to select individual options.
6
+ */
7
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
8
+ interface CheckboxProps {
9
+ /**
10
+ * Error message for the Checkbox.
11
+ */
12
+ errorMessage?: string;
13
+ /**
14
+ * Helper text for the Checkbox, shown below the label.
15
+ */
16
+ helper?: React.ReactNode;
17
+ /**
18
+ * Determine the alignment the Checkbox.
19
+ *
20
+ */
21
+ checkboxAlignment?: "top" | "center";
22
+ /**
23
+ * ID for the Checkbox.
24
+ */
25
+ id: string;
26
+ /**
27
+ * Is the input checked?
28
+ */
29
+ checked?: boolean;
30
+ /**
31
+ * `isDisabled` is a legacy property and not recommended from a UX usability best practice perspective.
32
+ */
33
+ isDisabled?: boolean;
34
+ /**
35
+ * Is the Checkbox required?
36
+ */
37
+ isRequired?: boolean;
38
+ /**
39
+ * Label for the Checkbox.
40
+ */
41
+ label: React.ReactNode;
42
+ /**
43
+ * Name for the Checkbox.
44
+ */
45
+ name?: string;
46
+ /**
47
+ * Function to call when the Checkbox loses focus.
48
+ */
49
+ onBlur?: (e: EventType) => void;
50
+ /**
51
+ * Callback function to update the Checkbox's controlled `checked` prop, for
52
+ * example `e => setChecked(e.target.checked)`.
53
+ */
54
+ onChange?: (event: EventType) => void;
55
+ /**
56
+ * Size of the Checkbox.
57
+ */
58
+ size?: "s" | "l";
59
+ /**
60
+ * Value for the Checkbox.
61
+ */
62
+ value?: string;
63
+ }
64
+ export { Checkbox, CheckboxProps };
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+
3
+ var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
+ var React = require('react');
5
+ var BtIconTickAlt2Px = require('./BtIconTickAlt2Px-bdf06f8c.js');
6
+ var BtIconAlert = require('./BtIconAlert-637db790.js');
7
+ var index = require('./index-45bfb67b.js');
8
+ var FormControl = require('./FormControl-78b007b7.js');
9
+ var Surface = require('./Surface-b7c51b2b.js');
10
+
11
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+
13
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
+
15
+ /**
16
+ * Use `Checkbox` to allow users to select individual options.
17
+ */
18
+ var Checkbox = React.forwardRef(function (_a, ref) {
19
+ var _b = _a.checked, checked = _b === void 0 ? false : _b, errorMessage = _a.errorMessage, helper = _a.helper, id = _a.id, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, label = _a.label, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _e = _a.size, size = _e === void 0 ? "l" : _e, value = _a.value, _f = _a.checkboxAlignment, checkboxAlignment = _f === void 0 ? "center" : _f, props = filterDataAttrs.__rest(_a, ["checked", "errorMessage", "helper", "id", "isDisabled", "isRequired", "label", "name", "onBlur", "onChange", "size", "value", "checkboxAlignment"]);
20
+ var requirementStatus = React.useContext(FormControl.Context).requirementStatus;
21
+ var surface = React.useContext(Surface.Context).surface;
22
+ var _g = FormControl.useAriaDescribedby({
23
+ id: id,
24
+ errorMessage: errorMessage
25
+ }), ariaDescribedby = _g.ariaDescribedby, idError = _g.idError;
26
+ var idLabel = "".concat(id, "-label");
27
+ var checkedProps = {};
28
+ if (typeof onChange === "function") {
29
+ checkedProps.checked = checked;
30
+ }
31
+ else if (checked && !onChange) {
32
+ checkedProps.defaultChecked = true;
33
+ }
34
+ if (requirementStatus === "required") {
35
+ isRequired = true;
36
+ }
37
+ return (React__default["default"].createElement("div", { className: index.classNames({
38
+ "arc-Checkbox": true,
39
+ "arc-Checkbox--disabled": isDisabled,
40
+ "arc-Checkbox--invalid": errorMessage,
41
+ "arc-Checkbox--small": size === "s",
42
+ "arc-Checkbox--onDarkSurface": surface === "dark"
43
+ }) },
44
+ React__default["default"].createElement("label", { id: idLabel, htmlFor: id, className: index.classNames("arc-Checkbox-label", {
45
+ "arc-Checkbox-label--top": checkboxAlignment === "top"
46
+ }) },
47
+ React__default["default"].createElement("input", filterDataAttrs.__assign({ "aria-describedby": ariaDescribedby, "aria-invalid": errorMessage ? "true" : "false", className: "arc-Checkbox-input" }, checkedProps, { disabled: isDisabled, id: id, name: name, onBlur: onBlur, onChange: onChange, ref: ref, required: isRequired, type: "checkbox", value: value }, filterDataAttrs.filterDataAttrs(props))),
48
+ React__default["default"].createElement("span", { className: "arc-Checkbox-box" },
49
+ React__default["default"].createElement(BtIconTickAlt2Px.BtIconTickAlt2Px_2, null)),
50
+ React__default["default"].createElement("span", filterDataAttrs.__assign({}, (checkboxAlignment === "top" && {
51
+ className: "arc-Checkbox-content--marginTop"
52
+ })),
53
+ label,
54
+ !isRequired && requirementStatus !== "optional" ? (React__default["default"].createElement("span", { className: "arc-Checkbox-labelOptional" }, "(optional)")) : null,
55
+ helper && React__default["default"].createElement("span", { className: "arc-Checkbox-helper" }, helper))),
56
+ errorMessage && (React__default["default"].createElement("div", { id: idError, className: "arc-Checkbox-error" },
57
+ React__default["default"].createElement("span", { className: "arc-Checkbox-error--icon" },
58
+ React__default["default"].createElement(BtIconAlert.BtIconAlert_2, null)),
59
+ errorMessage))));
60
+ });
61
+
62
+ exports.Checkbox = Checkbox;
@@ -0,0 +1,76 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `Columns` to compose layouts on a 12-column grid.
4
+ */
5
+ declare const Columns: FC<ColumnsProps> & {
6
+ Col: typeof Col;
7
+ };
8
+ declare const Col: FC<ColProps>;
9
+ type Span = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
10
+ type Offset = "0" | "24" | "48" | "72" | "96" | "120" | "144" | "168" | "192" | "216" | "240" | "264" | "288" | "312" | "336" | "360" | "384";
11
+ interface ColProps {
12
+ /**
13
+ * Vertically align the Column.
14
+ */
15
+ align?: "top" | "center" | "bottom";
16
+ /**
17
+ * Content to display in the Column.
18
+ */
19
+ children?: ReactNode;
20
+ /**
21
+ * Should the Column be visible for debugging and documentation
22
+ * purposes?
23
+ */
24
+ isDebugVisible?: boolean;
25
+ /**
26
+ * Overlay the column over the previous content on the default breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
27
+ */
28
+ offset?: Offset;
29
+ /**
30
+ * Overlay the column over the previous content on the S breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
31
+ */
32
+ offsetS?: Offset;
33
+ /**
34
+ * Overlay the column over the previous content on the M breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
35
+ */
36
+ offsetM?: Offset;
37
+ /**
38
+ * Overlay the column over the previous content on the L breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
39
+ */
40
+ offsetL?: Offset;
41
+ /**
42
+ * Overlay the column over the previous content on the XL breakpoint and above. Multiples of 24 up to 384. Use with caution, and ensure to check responsive behaviour.
43
+ */
44
+ offsetXL?: Offset;
45
+ /**
46
+ * The number of columns to span on the default breakpoint and above, from 1 to 12.
47
+ */
48
+ span?: Span;
49
+ /**
50
+ * The number of columns to span on the S breakpoint and above, from 1 to 12.
51
+ */
52
+ spanS?: Span;
53
+ /**
54
+ * The number of columns to span on the M breakpoint and above, from 1 to 12.
55
+ */
56
+ spanM?: Span;
57
+ /**
58
+ * The number of columns to span on the L breakpoint and above, from 1 to 12.
59
+ */
60
+ spanL?: Span;
61
+ /**
62
+ * The number of columns to span on the XL breakpoint and above, from 1 to 12.
63
+ */
64
+ spanXL?: Span;
65
+ }
66
+ interface ColumnsProps {
67
+ /**
68
+ * Contents of the Columns. Should only contain `Columns.Col`.
69
+ */
70
+ children: ReactNode;
71
+ /**
72
+ * Should the Columns be gutterless?
73
+ */
74
+ isGutterless?: boolean;
75
+ }
76
+ export { Columns, Col, ColProps, ColumnsProps };
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
+ var index = require('./index-45bfb67b.js');
5
+ var React = require('react');
6
+ var suffixModifier = require('./suffix-modifier-1ee2da04.js');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
+
12
+ /**
13
+ * Use `Columns` to compose layouts on a 12-column grid.
14
+ */
15
+ var Columns = function (_a) {
16
+ var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = filterDataAttrs.__rest(_a, ["children", "isGutterless"]);
17
+ React.useEffect(function () {
18
+ React__default["default"].Children.map(children, function (item) {
19
+ if (item && item.type !== Col) {
20
+ throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
21
+ }
22
+ });
23
+ }, [children]);
24
+ return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
25
+ "arc-Columns": true,
26
+ "arc-Columns--gutterless": isGutterless
27
+ }) }, filterDataAttrs.filterDataAttrs(props)),
28
+ React__default["default"].createElement("div", { className: "arc-Columns-inner" }, children)));
29
+ };
30
+ var Col = function (_a) {
31
+ var _b;
32
+ var align = _a.align, children = _a.children, _c = _a.isDebugVisible, isDebugVisible = _c === void 0 ? false : _c, offset = _a.offset, offsetS = _a.offsetS, offsetM = _a.offsetM, offsetL = _a.offsetL, offsetXL = _a.offsetXL, span = _a.span, spanS = _a.spanS, spanM = _a.spanM, spanL = _a.spanL, spanXL = _a.spanXL, props = filterDataAttrs.__rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
33
+ return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames((_b = {},
34
+ _b["arc-Columns-col"] = true,
35
+ _b[suffixModifier.suffixModifier("arc-Columns-col--align", align || "")] = align,
36
+ _b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
37
+ _b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
38
+ _b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
39
+ _b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
40
+ _b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
41
+ _b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
42
+ typeof offsetS !== "undefined" ||
43
+ typeof offsetM !== "undefined" ||
44
+ typeof offsetL !== "undefined" ||
45
+ typeof offsetXL !== "undefined",
46
+ _b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
47
+ _b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
48
+ _b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
49
+ _b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
50
+ _b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
51
+ _b["arc-Columns-col--debugVisible"] = isDebugVisible,
52
+ _b)) }, filterDataAttrs.filterDataAttrs(props)), children));
53
+ };
54
+ Col.displayName = "Columns.Col";
55
+ Columns.Col = Col;
56
+
57
+ exports.Columns = Columns;
@@ -4,8 +4,8 @@ var filterDataAttrs = require('./filter-data-attrs-a30dcf5f.js');
4
4
  var index = require('./index-45bfb67b.js');
5
5
  var React = require('react');
6
6
  var BtIconChevronDown2Px = require('./BtIconChevronDown2Px-8fb4e2eb.js');
7
- var Text = require('./Text-6f2827e6.js');
8
- var Surface = require('./Surface-6da0a78e.js');
7
+ var Text = require('./Text-555a29a4.js');
8
+ var Surface = require('./Surface-b7c51b2b.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
@@ -31,7 +31,9 @@ var DisclosureMini = function (_a) {
31
31
  "arc-DisclosureMini-summary--icon-left": iconPosition === "left",
32
32
  "arc-DisclosureMini-summary--icon-right": iconPosition === "right"
33
33
  }), onClick: handleOnClick, "aria-expanded": disclousreState },
34
- React__default["default"].createElement("span", { className: "arc-DisclosureMini-summary-icon" },
34
+ React__default["default"].createElement("div", { className: index.classNames("arc-DisclosureMini-summary-icon", {
35
+ "arc-DisclosureMini-summary-icon--small": size === "s"
36
+ }) },
35
37
  React__default["default"].createElement(BtIconChevronDown2Px.BtIconChevronDown2Px_2, null)),
36
38
  React__default["default"].createElement(Text.Text, { size: size === "l" ? "m" : "s" }, summary)),
37
39
  React__default["default"].createElement("div", { className: "arc-DisclosureMini-details" },