@arc-ui/components 11.4.2 → 11.6.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 (341) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +57 -0
  2. package/dist/Alert/Alert.cjs.js +142 -0
  3. package/dist/Alert/Alert.esm.d.ts +57 -0
  4. package/dist/Alert/Alert.esm.js +134 -0
  5. package/dist/Alert/package.json +7 -0
  6. package/dist/Align/Align.cjs.js +6 -6
  7. package/dist/Align/Align.esm.js +2 -2
  8. package/dist/Badge/Badge.cjs.js +7 -7
  9. package/dist/Badge/Badge.esm.js +4 -4
  10. package/dist/Base/Base.cjs.d.ts +1 -1
  11. package/dist/Base/Base.cjs.js +2 -2
  12. package/dist/Base/Base.esm.d.ts +1 -1
  13. package/dist/Base/Base.esm.js +2 -2
  14. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
  15. package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
  16. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
  17. package/dist/BrandLogo/BrandLogo.esm.js +4 -4
  18. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
  19. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +11 -643
  20. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
  21. package/dist/Breadcrumbs/Breadcrumbs.esm.js +10 -642
  22. package/dist/Button/Button.cjs.d.ts +1 -1
  23. package/dist/Button/Button.cjs.js +6 -5
  24. package/dist/Button/Button.esm.d.ts +1 -1
  25. package/dist/Button/Button.esm.js +6 -5
  26. package/dist/Card/Card.cjs.d.ts +1 -130
  27. package/dist/Card/Card.cjs.js +12 -119
  28. package/dist/Card/Card.esm.d.ts +1 -130
  29. package/dist/Card/Card.esm.js +11 -118
  30. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -59
  31. package/dist/Checkbox/Checkbox.cjs.js +13 -55
  32. package/dist/Checkbox/Checkbox.esm.d.ts +1 -59
  33. package/dist/Checkbox/Checkbox.esm.js +12 -54
  34. package/dist/Clock/Clock.cjs.js +6 -6
  35. package/dist/Clock/Clock.esm.js +1 -1
  36. package/dist/Columns/Columns.cjs.d.ts +1 -76
  37. package/dist/Columns/Columns.cjs.js +6 -52
  38. package/dist/Columns/Columns.esm.d.ts +1 -76
  39. package/dist/Columns/Columns.esm.js +5 -51
  40. package/dist/Curve/Curve.cjs.d.ts +1 -1
  41. package/dist/Curve/Curve.cjs.js +3 -3
  42. package/dist/Curve/Curve.esm.d.ts +1 -1
  43. package/dist/Curve/Curve.esm.js +3 -3
  44. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  45. package/dist/Disclosure/Disclosure.cjs.js +8 -8
  46. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  47. package/dist/Disclosure/Disclosure.esm.js +4 -4
  48. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -0
  49. package/dist/DisclosureMini/DisclosureMini.cjs.js +16 -0
  50. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -0
  51. package/dist/DisclosureMini/DisclosureMini.esm.js +8 -0
  52. package/dist/DisclosureMini/package.json +7 -0
  53. package/dist/Elevation/Elevation.cjs.d.ts +4 -0
  54. package/dist/Elevation/Elevation.cjs.js +7 -5
  55. package/dist/Elevation/Elevation.esm.d.ts +4 -0
  56. package/dist/Elevation/Elevation.esm.js +4 -2
  57. package/dist/Filter/Filter.cjs.d.ts +1 -0
  58. package/dist/Filter/Filter.cjs.js +13 -0
  59. package/dist/Filter/Filter.esm.d.ts +1 -0
  60. package/dist/Filter/Filter.esm.js +5 -0
  61. package/dist/Filter/package.json +7 -0
  62. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  63. package/dist/FormControl/FormControl.cjs.js +8 -6
  64. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  65. package/dist/FormControl/FormControl.esm.js +8 -6
  66. package/dist/Group/Group.cjs.d.ts +1 -46
  67. package/dist/Group/Group.cjs.js +6 -43
  68. package/dist/Group/Group.esm.d.ts +1 -46
  69. package/dist/Group/Group.esm.js +5 -42
  70. package/dist/Heading/Heading.cjs.d.ts +1 -1
  71. package/dist/Heading/Heading.cjs.js +4 -4
  72. package/dist/Heading/Heading.esm.d.ts +1 -1
  73. package/dist/Heading/Heading.esm.js +4 -4
  74. package/dist/Icon/Icon.cjs.d.ts +1 -1
  75. package/dist/Icon/Icon.cjs.js +4 -4
  76. package/dist/Icon/Icon.esm.d.ts +1 -1
  77. package/dist/Icon/Icon.esm.js +4 -4
  78. package/dist/Image/Image.cjs.d.ts +1 -1
  79. package/dist/Image/Image.cjs.js +3 -3
  80. package/dist/Image/Image.esm.d.ts +1 -1
  81. package/dist/Image/Image.esm.js +3 -3
  82. package/dist/Markup/Markup.cjs.js +6 -6
  83. package/dist/Markup/Markup.esm.js +2 -2
  84. package/dist/Pagination/Pagination.cjs.d.ts +20 -0
  85. package/dist/Pagination/Pagination.cjs.js +87 -0
  86. package/dist/Pagination/Pagination.esm.d.ts +20 -0
  87. package/dist/Pagination/Pagination.esm.js +79 -0
  88. package/dist/Pagination/package.json +7 -0
  89. package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
  90. package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
  91. package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
  92. package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
  93. package/dist/PaginationSimple/package.json +7 -0
  94. package/dist/Poster/Poster.cjs.d.ts +1 -81
  95. package/dist/Poster/Poster.cjs.js +8 -45
  96. package/dist/Poster/Poster.esm.d.ts +1 -81
  97. package/dist/Poster/Poster.esm.js +7 -44
  98. package/dist/ProgressBar/ProgressBar.cjs.js +22 -41
  99. package/dist/ProgressBar/ProgressBar.esm.js +13 -32
  100. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
  101. package/dist/RadioGroup/RadioGroup.cjs.js +12 -68
  102. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
  103. package/dist/RadioGroup/RadioGroup.esm.js +11 -67
  104. package/dist/Rule/Rule.cjs.js +5 -5
  105. package/dist/Rule/Rule.esm.js +2 -2
  106. package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
  107. package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
  108. package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
  109. package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
  110. package/dist/ScrollToTop/package.json +7 -0
  111. package/dist/Section/Section.cjs.d.ts +1 -1
  112. package/dist/Section/Section.cjs.js +2 -2
  113. package/dist/Section/Section.esm.d.ts +1 -1
  114. package/dist/Section/Section.esm.js +2 -2
  115. package/dist/Select/Select.cjs.d.ts +2 -2
  116. package/dist/Select/Select.cjs.js +9 -8
  117. package/dist/Select/Select.esm.d.ts +2 -2
  118. package/dist/Select/Select.esm.js +9 -8
  119. package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
  120. package/dist/SiteFooter/SiteFooter.cjs.js +14 -69
  121. package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
  122. package/dist/SiteFooter/SiteFooter.esm.js +13 -67
  123. package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -252
  124. package/dist/SiteHeader/SiteHeader.cjs.js +17 -661
  125. package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -252
  126. package/dist/SiteHeader/SiteHeader.esm.js +15 -659
  127. package/dist/Surface/Surface.cjs.d.ts +1 -1
  128. package/dist/Surface/Surface.cjs.js +2 -2
  129. package/dist/Surface/Surface.esm.d.ts +1 -1
  130. package/dist/Surface/Surface.esm.js +2 -2
  131. package/dist/Switch/Switch.cjs.d.ts +2 -2
  132. package/dist/Switch/Switch.cjs.js +10 -8
  133. package/dist/Switch/Switch.esm.d.ts +2 -2
  134. package/dist/Switch/Switch.esm.js +10 -8
  135. package/dist/Tag/Tag.cjs.js +39 -18
  136. package/dist/Tag/Tag.esm.js +31 -10
  137. package/dist/Text/Text.cjs.d.ts +1 -1
  138. package/dist/Text/Text.cjs.js +4 -4
  139. package/dist/Text/Text.esm.d.ts +1 -1
  140. package/dist/Text/Text.esm.js +4 -4
  141. package/dist/TextArea/TextArea.cjs.d.ts +61 -0
  142. package/dist/TextArea/TextArea.cjs.js +87 -0
  143. package/dist/TextArea/TextArea.esm.d.ts +61 -0
  144. package/dist/TextArea/TextArea.esm.js +79 -0
  145. package/dist/TextArea/package.json +7 -0
  146. package/dist/TextInput/TextInput.cjs.d.ts +1 -75
  147. package/dist/TextInput/TextInput.cjs.js +13 -76
  148. package/dist/TextInput/TextInput.esm.d.ts +1 -75
  149. package/dist/TextInput/TextInput.esm.js +12 -75
  150. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
  151. package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
  152. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
  153. package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
  154. package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -1
  155. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  156. package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -1
  157. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  158. package/dist/_shared/cjs/{Base-e2b846fe.js → Base-569e4334.js} +3 -3
  159. package/dist/_shared/cjs/{BrandLogo-3c6102ef.js → BrandLogo-8008f0c4.js} +7 -7
  160. package/dist/_shared/cjs/Breadcrumbs-8b554370.d.ts +61 -0
  161. package/dist/_shared/cjs/Breadcrumbs-8b554370.js +106 -0
  162. package/dist/_shared/cjs/BtIconAlert-637db790.js +38 -0
  163. package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
  164. package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +29 -0
  165. package/dist/_shared/cjs/{Button-1af6868c.js → Button-27512fee.js} +16 -37
  166. package/dist/_shared/cjs/Card-804ab0e5.d.ts +136 -0
  167. package/dist/_shared/cjs/Card-804ab0e5.js +124 -0
  168. package/dist/_shared/cjs/Checkbox-21d3c4f6.d.ts +64 -0
  169. package/dist/_shared/cjs/Checkbox-21d3c4f6.js +62 -0
  170. package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
  171. package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
  172. package/dist/_shared/cjs/{Curve-e72ce25b.js → Curve-b05589d8.js} +6 -6
  173. package/dist/_shared/cjs/DisclosureMini-067e0319.d.ts +37 -0
  174. package/dist/_shared/cjs/DisclosureMini-067e0319.js +44 -0
  175. package/dist/_shared/cjs/Filter-f7d2fbda.d.ts +83 -0
  176. package/dist/_shared/cjs/Filter-f7d2fbda.js +121 -0
  177. package/dist/_shared/cjs/{FormControl-d4d9c665.d.ts → FormControl-9aaddd54.d.ts} +6 -29
  178. package/dist/_shared/cjs/FormControl-9aaddd54.js +96 -0
  179. package/dist/_shared/cjs/Group-d83f8c2e.d.ts +46 -0
  180. package/dist/_shared/cjs/Group-d83f8c2e.js +48 -0
  181. package/dist/_shared/cjs/{Heading-cc38c3ec.js → Heading-d45f6a7f.js} +7 -7
  182. package/dist/_shared/cjs/{Icon-719d13d4.js → Icon-9ae8dbe1.js} +7 -7
  183. package/dist/_shared/cjs/{Image-fe760a06.js → Image-3bf4b4f3.js} +8 -8
  184. package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
  185. package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
  186. package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
  187. package/dist/_shared/cjs/Poster-e05bbe13.d.ts +81 -0
  188. package/dist/_shared/cjs/Poster-e05bbe13.js +50 -0
  189. package/dist/_shared/cjs/RadioGroup-81805ef9.d.ts +97 -0
  190. package/dist/_shared/cjs/RadioGroup-81805ef9.js +70 -0
  191. package/dist/_shared/cjs/{Section-780f2377.js → Section-48aca5f5.js} +5 -5
  192. package/dist/_shared/cjs/SiteFooter-c540b5f1.d.ts +62 -0
  193. package/dist/_shared/cjs/SiteFooter-c540b5f1.js +73 -0
  194. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
  195. package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.d.ts +78 -0
  196. package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.js +673 -0
  197. package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
  198. package/dist/_shared/cjs/{Surface-d6b8010e.js → Surface-6da0a78e.js} +8 -8
  199. package/dist/_shared/cjs/{Text-1d3844be.js → Text-6f2827e6.js} +7 -7
  200. package/dist/_shared/cjs/TextInput-33314fc4.d.ts +10 -0
  201. package/dist/_shared/cjs/TextInput-33314fc4.js +78 -0
  202. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
  203. package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.d.ts +26 -0
  204. package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.js +35 -0
  205. package/dist/_shared/cjs/{VerticalSpace-7aed88ab.js → VerticalSpace-86f697e7.js} +5 -5
  206. package/dist/_shared/cjs/debounce-506538c5.js +544 -0
  207. package/dist/_shared/cjs/{index-78b35bc1.js → filter-data-attrs-a30dcf5f.js} +12 -12
  208. package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
  209. package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
  210. package/dist/_shared/cjs/index-9483ad5f.d.ts +2 -2
  211. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  212. package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
  213. package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
  214. package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
  215. package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
  216. package/dist/_shared/cjs/{suffix-modifier-edf7851e.js → suffix-modifier-1ee2da04.js} +2 -2
  217. package/dist/_shared/esm/{Base-c235dc45.js → Base-6c01e0ec.js} +1 -1
  218. package/dist/_shared/esm/{BrandLogo-4f13fe85.js → BrandLogo-56699561.js} +3 -3
  219. package/dist/_shared/esm/Breadcrumbs-04590057.d.ts +61 -0
  220. package/dist/_shared/esm/Breadcrumbs-04590057.js +100 -0
  221. package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +32 -0
  222. package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
  223. package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +23 -0
  224. package/dist/_shared/esm/{Button-10700df4.js → Button-d319fa11.js} +6 -27
  225. package/dist/_shared/esm/Card-e79eb6c8.d.ts +136 -0
  226. package/dist/_shared/esm/Card-e79eb6c8.js +118 -0
  227. package/dist/_shared/esm/Checkbox-94300d8c.d.ts +64 -0
  228. package/dist/_shared/esm/Checkbox-94300d8c.js +56 -0
  229. package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
  230. package/dist/_shared/esm/Columns-8704515b.js +51 -0
  231. package/dist/_shared/esm/{Curve-50697f7e.js → Curve-3e87b1bc.js} +2 -2
  232. package/dist/_shared/esm/DisclosureMini-022beae3.d.ts +37 -0
  233. package/dist/_shared/esm/DisclosureMini-022beae3.js +38 -0
  234. package/dist/_shared/esm/Filter-41b391e3.d.ts +83 -0
  235. package/dist/_shared/esm/Filter-41b391e3.js +115 -0
  236. package/dist/_shared/esm/{FormControl-2cb96de7.d.ts → FormControl-5e3fdca3.d.ts} +6 -29
  237. package/dist/_shared/esm/FormControl-5e3fdca3.js +88 -0
  238. package/dist/_shared/esm/Group-d62c3f56.d.ts +46 -0
  239. package/dist/_shared/esm/Group-d62c3f56.js +42 -0
  240. package/dist/_shared/esm/{Heading-eb1e42db.js → Heading-b61432fb.js} +3 -3
  241. package/dist/_shared/esm/{Icon-61f7237a.js → Icon-fd247973.js} +3 -3
  242. package/dist/_shared/esm/{Image-c0f3d42f.js → Image-3596ce55.js} +2 -2
  243. package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
  244. package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
  245. package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
  246. package/dist/_shared/esm/Poster-107d6954.d.ts +81 -0
  247. package/dist/_shared/esm/Poster-107d6954.js +44 -0
  248. package/dist/_shared/esm/RadioGroup-1fd0f389.d.ts +97 -0
  249. package/dist/_shared/esm/RadioGroup-1fd0f389.js +64 -0
  250. package/dist/_shared/esm/{Section-7bc71e26.js → Section-b8038d66.js} +1 -1
  251. package/dist/_shared/esm/SiteFooter-8075a9bd.d.ts +62 -0
  252. package/dist/_shared/esm/SiteFooter-8075a9bd.js +67 -0
  253. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
  254. package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.d.ts +78 -0
  255. package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.js +666 -0
  256. package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
  257. package/dist/_shared/esm/{Surface-bf201530.js → Surface-bb100ef8.js} +1 -1
  258. package/dist/_shared/esm/{Text-6b958ad8.js → Text-00e9743b.js} +3 -3
  259. package/dist/_shared/esm/TextInput-1631dbc4.d.ts +10 -0
  260. package/dist/_shared/esm/TextInput-1631dbc4.js +72 -0
  261. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
  262. package/dist/_shared/esm/UniversalHeader-7926abde.d.ts +26 -0
  263. package/dist/_shared/esm/UniversalHeader-7926abde.js +29 -0
  264. package/dist/_shared/esm/{VerticalSpace-3579b20e.js → VerticalSpace-93980c9c.js} +1 -1
  265. package/dist/_shared/esm/debounce-e228705f.js +542 -0
  266. package/dist/_shared/esm/{index-229fc864.js → filter-data-attrs-afdb7d32.js} +12 -12
  267. package/dist/_shared/esm/index-699086a7.d.ts +2 -0
  268. package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
  269. package/dist/_shared/esm/index-9483ad5f.d.ts +2 -2
  270. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  271. package/dist/_shared/esm/index-e340924e.d.ts +2 -0
  272. package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
  273. package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
  274. package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
  275. package/dist/_shared/esm/{suffix-modifier-f5e28822.js → suffix-modifier-7e640670.js} +1 -1
  276. package/dist/index.es.js +304 -113
  277. package/dist/index.es.js.map +1 -1
  278. package/dist/index.js +534 -341
  279. package/dist/index.js.map +1 -1
  280. package/dist/styles.css +1 -1
  281. package/dist/types/components/Alert/Alert.d.ts +56 -0
  282. package/dist/types/components/Alert/index.d.ts +1 -0
  283. package/dist/types/components/Checkbox/Checkbox.d.ts +6 -1
  284. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +36 -0
  285. package/dist/types/components/DisclosureMini/index.d.ts +1 -0
  286. package/dist/types/components/Elevation/Elevation.d.ts +4 -0
  287. package/dist/types/components/Filter/Filter.d.ts +38 -0
  288. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
  289. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
  290. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
  291. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
  292. package/dist/types/components/Filter/index.d.ts +1 -0
  293. package/dist/types/components/FormControl/FormControl.d.ts +4 -0
  294. package/dist/types/components/Pagination/Pagination.d.ts +19 -0
  295. package/dist/types/components/Pagination/index.d.ts +1 -0
  296. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
  297. package/dist/types/components/PaginationSimple/index.d.ts +1 -0
  298. package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
  299. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
  300. package/dist/types/components/ScrollToTop/index.d.ts +1 -0
  301. package/dist/types/components/Select/Select.d.ts +1 -1
  302. package/dist/types/components/SiteHeader/SiteHeader.d.ts +2 -0
  303. package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +8 -0
  304. package/dist/types/components/Switch/Switch.d.ts +1 -1
  305. package/dist/types/components/TextArea/TextArea.d.ts +60 -0
  306. package/dist/types/components/TextArea/index.d.ts +1 -0
  307. package/dist/types/components/TextInput/TextInput.d.ts +1 -1
  308. package/dist/types/components/index.d.ts +2 -0
  309. package/dist/types/hooks/use-pagination.d.ts +1 -0
  310. package/dist/types/styles.d.ts +10 -4
  311. package/package.json +4 -4
  312. package/dist/_shared/cjs/FormControl-d4d9c665.js +0 -148
  313. package/dist/_shared/esm/FormControl-2cb96de7.js +0 -139
  314. package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +0 -28
  315. package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +0 -1
  316. /package/dist/_shared/cjs/{Base-e2b846fe.d.ts → Base-569e4334.d.ts} +0 -0
  317. /package/dist/_shared/cjs/{BrandLogo-3c6102ef.d.ts → BrandLogo-8008f0c4.d.ts} +0 -0
  318. /package/dist/_shared/cjs/{Button-1af6868c.d.ts → Button-27512fee.d.ts} +0 -0
  319. /package/dist/_shared/cjs/{Curve-e72ce25b.d.ts → Curve-b05589d8.d.ts} +0 -0
  320. /package/dist/_shared/cjs/{Heading-cc38c3ec.d.ts → Heading-d45f6a7f.d.ts} +0 -0
  321. /package/dist/_shared/cjs/{Icon-719d13d4.d.ts → Icon-9ae8dbe1.d.ts} +0 -0
  322. /package/dist/_shared/cjs/{Image-fe760a06.d.ts → Image-3bf4b4f3.d.ts} +0 -0
  323. /package/dist/_shared/cjs/{Section-780f2377.d.ts → Section-48aca5f5.d.ts} +0 -0
  324. /package/dist/_shared/cjs/{Surface-d6b8010e.d.ts → Surface-6da0a78e.d.ts} +0 -0
  325. /package/dist/_shared/cjs/{Text-1d3844be.d.ts → Text-6f2827e6.d.ts} +0 -0
  326. /package/dist/_shared/cjs/{VerticalSpace-7aed88ab.d.ts → VerticalSpace-86f697e7.d.ts} +0 -0
  327. /package/dist/_shared/cjs/{index-78b35bc1.d.ts → filter-data-attrs-a30dcf5f.d.ts} +0 -0
  328. /package/dist/_shared/cjs/{suffix-modifier-edf7851e.d.ts → suffix-modifier-1ee2da04.d.ts} +0 -0
  329. /package/dist/_shared/esm/{Base-c235dc45.d.ts → Base-6c01e0ec.d.ts} +0 -0
  330. /package/dist/_shared/esm/{BrandLogo-4f13fe85.d.ts → BrandLogo-56699561.d.ts} +0 -0
  331. /package/dist/_shared/esm/{Button-10700df4.d.ts → Button-d319fa11.d.ts} +0 -0
  332. /package/dist/_shared/esm/{Curve-50697f7e.d.ts → Curve-3e87b1bc.d.ts} +0 -0
  333. /package/dist/_shared/esm/{Heading-eb1e42db.d.ts → Heading-b61432fb.d.ts} +0 -0
  334. /package/dist/_shared/esm/{Icon-61f7237a.d.ts → Icon-fd247973.d.ts} +0 -0
  335. /package/dist/_shared/esm/{Image-c0f3d42f.d.ts → Image-3596ce55.d.ts} +0 -0
  336. /package/dist/_shared/esm/{Section-7bc71e26.d.ts → Section-b8038d66.d.ts} +0 -0
  337. /package/dist/_shared/esm/{Surface-bf201530.d.ts → Surface-bb100ef8.d.ts} +0 -0
  338. /package/dist/_shared/esm/{Text-6b958ad8.d.ts → Text-00e9743b.d.ts} +0 -0
  339. /package/dist/_shared/esm/{VerticalSpace-3579b20e.d.ts → VerticalSpace-93980c9c.d.ts} +0 -0
  340. /package/dist/_shared/esm/{index-229fc864.d.ts → filter-data-attrs-afdb7d32.d.ts} +0 -0
  341. /package/dist/_shared/esm/{suffix-modifier-f5e28822.d.ts → suffix-modifier-7e640670.d.ts} +0 -0
@@ -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,51 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React__default, { useEffect } from 'react';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
+
6
+ /**
7
+ * Use `Columns` to compose layouts on a 12-column grid.
8
+ */
9
+ var Columns = function (_a) {
10
+ var children = _a.children, _b = _a.isGutterless, isGutterless = _b === void 0 ? false : _b, props = __rest(_a, ["children", "isGutterless"]);
11
+ useEffect(function () {
12
+ React__default.Children.map(children, function (item) {
13
+ if (item && item.type !== Col) {
14
+ throw new Error("Illegal child passed to <Columns />. Ensure to only use <Columns.Col />.");
15
+ }
16
+ });
17
+ }, [children]);
18
+ return (React__default.createElement("div", __assign({ className: classNames({
19
+ "arc-Columns": true,
20
+ "arc-Columns--gutterless": isGutterless
21
+ }) }, filterDataAttrs(props)),
22
+ React__default.createElement("div", { className: "arc-Columns-inner" }, children)));
23
+ };
24
+ var Col = function (_a) {
25
+ var _b;
26
+ 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 = __rest(_a, ["align", "children", "isDebugVisible", "offset", "offsetS", "offsetM", "offsetL", "offsetXL", "span", "spanS", "spanM", "spanL", "spanXL"]);
27
+ return (React__default.createElement("div", __assign({ className: classNames((_b = {},
28
+ _b["arc-Columns-col"] = true,
29
+ _b[suffixModifier("arc-Columns-col--align", align || "")] = align,
30
+ _b["arc-Columns-col--".concat(span)] = typeof span !== "undefined",
31
+ _b["arc-Columns-col--s".concat(spanS)] = typeof spanS !== "undefined",
32
+ _b["arc-Columns-col--m".concat(spanM)] = typeof spanM !== "undefined",
33
+ _b["arc-Columns-col--l".concat(spanL)] = typeof spanL !== "undefined",
34
+ _b["arc-Columns-col--xL".concat(spanXL)] = typeof spanXL !== "undefined",
35
+ _b["arc-Columns-col--offset"] = typeof offset !== "undefined" ||
36
+ typeof offsetS !== "undefined" ||
37
+ typeof offsetM !== "undefined" ||
38
+ typeof offsetL !== "undefined" ||
39
+ typeof offsetXL !== "undefined",
40
+ _b["arc-Columns-col--offset".concat(offset)] = typeof offset !== "undefined",
41
+ _b["arc-Columns-col--offsetS".concat(offsetS)] = typeof offsetS !== "undefined",
42
+ _b["arc-Columns-col--offsetM".concat(offsetM)] = typeof offsetM !== "undefined",
43
+ _b["arc-Columns-col--offsetL".concat(offsetL)] = typeof offsetL !== "undefined",
44
+ _b["arc-Columns-col--offsetXL".concat(offsetXL)] = typeof offsetXL !== "undefined",
45
+ _b["arc-Columns-col--debugVisible"] = isDebugVisible,
46
+ _b)) }, filterDataAttrs(props)), children));
47
+ };
48
+ Col.displayName = "Columns.Col";
49
+ Columns.Col = Col;
50
+
51
+ export { Columns as C };
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
5
 
6
6
  /**
7
7
  * Use `Curve` sparingly to soften edges and create a more natural, less rigid
@@ -0,0 +1,37 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `DisclosureMini` to display content that is only visible when toggled into
4
+ * an "open" state.
5
+ */
6
+ declare const DisclosureMini: FC<DisclosureMiniProps>;
7
+ interface DisclosureMiniProps {
8
+ /**
9
+ * Content to display in the DisclosureMini.
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * DisclosureMini ID.
14
+ */
15
+ id?: string;
16
+ /**
17
+ * The DisclosureMini summary text.
18
+ */
19
+ summary: string;
20
+ /**
21
+ * Should the Disclosure content be open by default?
22
+ */
23
+ isOpen?: boolean;
24
+ /**
25
+ * Position of the DisclosureMini icon?
26
+ */
27
+ iconPosition?: "left" | "right";
28
+ /**
29
+ * On Click handler for DisclosureMini summary disclosure.
30
+ */
31
+ onClick?: () => void;
32
+ /**
33
+ * Disclosure size.
34
+ */
35
+ size?: "s" | "l";
36
+ }
37
+ export { DisclosureMini, DisclosureMiniProps };
@@ -0,0 +1,38 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React__default, { useContext, useState } from 'react';
4
+ import { B as BtIconChevronDown2Px_2 } from './BtIconChevronDown2Px-782876e2.js';
5
+ import { T as Text } from './Text-00e9743b.js';
6
+ import { C as Context } from './Surface-bb100ef8.js';
7
+
8
+ /**
9
+ * Use `DisclosureMini` to display content that is only visible when toggled into
10
+ * an "open" state.
11
+ */
12
+ var DisclosureMini = function (_a) {
13
+ var children = _a.children, summary = _a.summary, onClick = _a.onClick, id = _a.id, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? "left" : _c, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "summary", "onClick", "id", "isOpen", "iconPosition", "size"]);
14
+ var surface = useContext(Context).surface;
15
+ var _e = useState(false), disclousreState = _e[0], setDisclosureState = _e[1];
16
+ var handleOnClick = function () {
17
+ onClick && onClick();
18
+ setDisclosureState(function (prevState) { return !prevState; });
19
+ };
20
+ return (React__default.createElement("details", __assign({ "data-testid": "DisclosureMini", className: classNames({
21
+ "arc-DisclosureMini": true,
22
+ "arc-DisclosureMini--onDarkSurface": surface === "dark"
23
+ }), open: isOpen }, filterDataAttrs(props)),
24
+ React__default.createElement("summary", { "data-testid": "DisclosureMiniSummary", className: classNames("arc-DisclosureMini-summary", {
25
+ "arc-DisclosureMini-summary--icon-left": iconPosition === "left",
26
+ "arc-DisclosureMini-summary--icon-right": iconPosition === "right"
27
+ }), onClick: handleOnClick, "aria-expanded": disclousreState },
28
+ React__default.createElement("div", { className: classNames("arc-DisclosureMini-summary-icon", {
29
+ "arc-DisclosureMini-summary-icon--small": size === "s"
30
+ }) },
31
+ React__default.createElement(BtIconChevronDown2Px_2, null)),
32
+ React__default.createElement(Text, { size: size === "l" ? "m" : "s" }, summary)),
33
+ React__default.createElement("div", { className: "arc-DisclosureMini-details" },
34
+ React__default.createElement(Text, { size: size === "l" ? "m" : "s" },
35
+ React__default.createElement("span", { id: id }, children)))));
36
+ };
37
+
38
+ export { DisclosureMini as D };
@@ -0,0 +1,83 @@
1
+ import { FC, ReactNode } from "react";
2
+ declare const FilterItems: FC<FilterItemsProps>;
3
+ interface FilterItemsProps {
4
+ /**
5
+ * Render children of `<Filter.Items />`. This should only use `<Filter.Item />`
6
+ */
7
+ children: ReactNode;
8
+ /**
9
+ * Determine the display style of `<Filter.Item />`
10
+ */
11
+ displayType?: "grid" | "list";
12
+ }
13
+ declare const FilterItem: FC<FilterItemProps>;
14
+ interface FilterItemProps {
15
+ /**
16
+ * Content to display within `Filter.Item`
17
+ */
18
+ children: ReactNode;
19
+ /**
20
+ * Attach Tags to content provided within `Filter.Item`
21
+ */
22
+ tags: string[];
23
+ }
24
+ declare const FilterControls: FC<FilterControlsProps>;
25
+ interface FilterControlsProps {
26
+ /**
27
+ * Contents of the `<FilterControls />` Should contain `<FilterControl />`
28
+ */
29
+ children: ReactNode;
30
+ /**
31
+ * Detmine how to align <FilterControl /> with in <FilterControls />. Default `center`
32
+ */
33
+ controlsAlignment?: "left" | "right" | "center";
34
+ }
35
+ declare const FilterControl: FC<FilterControlProps>;
36
+ interface FilterControlProps {
37
+ /**
38
+ * Name of the `<FilterControl />`
39
+ */
40
+ children: ReactNode;
41
+ /**
42
+ * Determine if the `<FilterControl />` is selected
43
+ */
44
+ isSelected?: boolean;
45
+ /**
46
+ * onClick handler
47
+ */
48
+ onClick?: () => void;
49
+ }
50
+ /** use `Filter` for interactive elements that filter and categorise page content. */
51
+ declare const Filter: FC<FilterProps> & {
52
+ Item: typeof FilterItem;
53
+ Items: typeof FilterItems;
54
+ Control: typeof FilterControl;
55
+ Controls: typeof FilterControls;
56
+ };
57
+ interface FilterProps {
58
+ /**
59
+ * Contents of the `<Filter />` Should contain `<Filter.Item />`
60
+ */
61
+ children?: ReactNode;
62
+ /**
63
+ * onChange handler called everytime `<FilterControl />` is pressed
64
+ */
65
+ onChange?: (selectedControls: string[]) => void;
66
+ /**
67
+ * Detmine how to display the content within `<Filter.Items />`. Default is `grid`
68
+ */
69
+ displayType?: FilterItemsProps["displayType"];
70
+ /**
71
+ * Detmine how to align <Filter.Controls />. Default `center`
72
+ */
73
+ controlsAlignment?: FilterControlsProps["controlsAlignment"];
74
+ /**
75
+ * Detmine if the `<Filter.Control />` have to partially match or match all
76
+ */
77
+ logicType?: "AND" | "OR";
78
+ /**
79
+ * Detmine what is display when no items match the filtering criteria
80
+ */
81
+ error?: ReactNode;
82
+ }
83
+ export { FilterItems, FilterItemsProps, FilterItem, FilterItemProps, FilterControls, FilterControlsProps, FilterControl, FilterControlProps, Filter, FilterProps };
@@ -0,0 +1,115 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs, b as __spreadArray } from './filter-data-attrs-afdb7d32.js';
2
+ import React__default, { useContext, useState, useEffect } from 'react';
3
+ import { C as Context } from './Surface-bb100ef8.js';
4
+ import { c as classNames } from './index-2ae58626.js';
5
+
6
+ var FilterControl = function (_a) {
7
+ var children = _a.children, onClick = _a.onClick, _b = _a.isSelected, isSelected = _b === void 0 ? false : _b;
8
+ var surface = useContext(Context).surface;
9
+ var _c = useState(isSelected), selected = _c[0], setSelected = _c[1];
10
+ var onClickHandler = function () {
11
+ onClick && onClick();
12
+ setSelected(function (previousValue) { return !previousValue; });
13
+ };
14
+ return (React__default.createElement("button", { className: classNames("arc-FilterControl", {
15
+ "arc-FilterControl--onDarkSurface": surface === "dark",
16
+ "arc-FilterControl--selected": selected
17
+ }), onClick: onClickHandler, tabIndex: 0 },
18
+ React__default.createElement("div", { className: "arc-FilterControl-text" }, children)));
19
+ };
20
+
21
+ var FilterControls = function (_a) {
22
+ var children = _a.children, controlsAlignment = _a.controlsAlignment, props = __rest(_a, ["children", "controlsAlignment"]);
23
+ return (React__default.createElement("div", __assign({ className: classNames("arc-FilterControls", {
24
+ "arc-FilterControls--alignLeft": controlsAlignment === "left",
25
+ "arc-FilterControls--alignRight": controlsAlignment === "right"
26
+ }) }, filterDataAttrs(props)), children));
27
+ };
28
+
29
+ var FilterItem = function (_a) {
30
+ var children = _a.children, props = __rest(_a, ["children"]);
31
+ return (React__default.createElement("div", __assign({ className: "arc-FilterItem" }, filterDataAttrs(props)), children));
32
+ };
33
+
34
+ var FilterItems = function (_a) {
35
+ var children = _a.children, _b = _a.displayType, displayType = _b === void 0 ? "grid" : _b, props = __rest(_a, ["children", "displayType"]);
36
+ return (React__default.createElement("div", __assign({ className: classNames("arc-FilterItems", {
37
+ "arc-FilterItems--list": displayType === "list",
38
+ "arc-FilterItems--grid": displayType === "grid"
39
+ }) }, filterDataAttrs(props)), displayType === "list"
40
+ ? React__default.Children.toArray(children).map(function (child, index, array) { return (React__default.createElement(React__default.Fragment, { key: index },
41
+ child,
42
+ index !== array.length - 1 && (React__default.createElement(React__default.Fragment, null,
43
+ React__default.createElement("div", { className: "arc-FilterItems-separator", "data-testid": "arc-FilterItems-separator" }))))); })
44
+ : children));
45
+ };
46
+
47
+ /** use `Filter` for interactive elements that filter and categorise page content. */
48
+ var Filter = function (_a) {
49
+ var children = _a.children, onChange = _a.onChange, displayType = _a.displayType, controlsAlignment = _a.controlsAlignment, _b = _a.logicType, logicType = _b === void 0 ? "OR" : _b, error = _a.error, props = __rest(_a, ["children", "onChange", "displayType", "controlsAlignment", "logicType", "error"]);
50
+ var _c = useState([]), selectedControls = _c[0], setSelectedControls = _c[1];
51
+ var controls = React__default.Children.toArray(children).find(function (child) { return React__default.isValidElement(child) && child.type === FilterControls; });
52
+ var items = React__default.Children.toArray(children).find(function (child) { return React__default.isValidElement(child) && child.type === FilterItems; });
53
+ useEffect(function () {
54
+ var initialSelectedControls = [];
55
+ if (controls && React__default.isValidElement(controls)) {
56
+ React__default.Children.forEach(controls.props.children, function (child) {
57
+ if (child.props.isSelected) {
58
+ initialSelectedControls.push(child.props.children);
59
+ }
60
+ });
61
+ }
62
+ setSelectedControls(initialSelectedControls);
63
+ // eslint-disable-next-line react-hooks/exhaustive-deps
64
+ }, []);
65
+ var handleControlClick = function (clickedControl) {
66
+ if (selectedControls.includes(clickedControl)) {
67
+ var updatedControls = selectedControls.filter(function (control) { return control !== clickedControl; });
68
+ setSelectedControls(updatedControls);
69
+ if (onChange) {
70
+ onChange(updatedControls);
71
+ }
72
+ }
73
+ else {
74
+ var updatedControls = __spreadArray(__spreadArray([], selectedControls, true), [clickedControl], false);
75
+ setSelectedControls(updatedControls);
76
+ if (onChange) {
77
+ onChange(updatedControls);
78
+ }
79
+ }
80
+ };
81
+ var filterItems = React__default.Children.toArray(items && React__default.isValidElement(items) && items.props.children);
82
+ var filteredItems = filterItems.filter(function (filteredItem) {
83
+ // If no tags are selected, show all items
84
+ if (selectedControls.length === 0) {
85
+ return true;
86
+ }
87
+ // If logicType is "AND", all selected tags should be present in the item's tags
88
+ if (logicType === "AND") {
89
+ return selectedControls.every(function (control) {
90
+ return filteredItem.props.tags.includes(control);
91
+ });
92
+ }
93
+ else {
94
+ // Check if item has tags property and if any selected tags are present in item's tags
95
+ return selectedControls.some(function (control) {
96
+ return filteredItem.props.tags.includes(control);
97
+ });
98
+ }
99
+ });
100
+ return (React__default.createElement("div", __assign({ className: "arc-Filter" }, filterDataAttrs(props)),
101
+ React__default.createElement(FilterControls, { controlsAlignment: controlsAlignment }, controls &&
102
+ React__default.isValidElement(controls) &&
103
+ React__default.Children.map(controls.props.children, function (control, index) { return (React__default.createElement(FilterControl, { key: index, onClick: function () { return handleControlClick(control.props.children); }, isSelected: control.props.isSelected }, control.props.children)); })),
104
+ filteredItems.length === 0 ? (React__default.createElement(React__default.Fragment, null, error)) : (React__default.createElement(FilterItems, { displayType: displayType }, filteredItems.map(function (item) { return item.props.children; })))));
105
+ };
106
+ Filter.Controls = FilterControls;
107
+ Filter.Control = FilterControl;
108
+ Filter.Items = FilterItems;
109
+ Filter.Item = FilterItem;
110
+ FilterControls.displayName = "Filter.Controls";
111
+ FilterControl.displayName = "Filter.Control";
112
+ FilterItems.displayName = "Filter.Items";
113
+ FilterItem.displayName = "Filter.Item";
114
+
115
+ export { Filter as F };
@@ -1,33 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { FC, ReactNode } from "react";
4
- /**
5
- * Use `FormControlDisclosure` to display content that is only visible when toggled into
6
- * an "open" state.
7
- */
8
- declare const FormControlDisclosure: FC<FormControlDisclosureProps>;
9
- interface FormControlDisclosureProps {
10
- /**
11
- * Content to display in the FormControlDisclosure.
12
- */
13
- children: ReactNode;
14
- /**
15
- * FormControlDisclosure ID.
16
- */
17
- id?: string;
18
- /**
19
- * The FormControlDisclosure summary text.
20
- */
21
- summary: string;
22
- /**
23
- * On Click handler for FormControlDisclosure summary disclosure.
24
- */
25
- onClick?: () => void;
26
- /**
27
- * Disclosure size.
28
- */
29
- size?: "s" | "l";
30
- }
3
+ import { FC } from "react";
31
4
  /**
32
5
  * Optionally define ariaDescribedBy if errorMessage or helper exist.
33
6
  */
@@ -114,9 +87,13 @@ interface FormControlProps {
114
87
  * onClick handler for FormControlDisclosure
115
88
  */
116
89
  onClickDisclosure?: () => void;
90
+ /**
91
+ * Optional additional information for the FormControl.
92
+ */
93
+ supplementaryInfo?: React.ReactNode;
117
94
  /**
118
95
  * Position helper text under label. This is set to `false` by default.
119
96
  */
120
97
  helperUnderLabel?: boolean;
121
98
  }
122
- export { FormControlDisclosure, FormControlDisclosureProps, useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
99
+ export { useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
@@ -0,0 +1,88 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React__default, { createContext, useContext } from 'react';
4
+ import { B as BtIconAlert_2 } from './BtIconAlert-55a6ed5c.js';
5
+ import { C as Context$1 } from './Surface-bb100ef8.js';
6
+ import { D as DisclosureMini } from './DisclosureMini-022beae3.js';
7
+
8
+ /**
9
+ * Optionally define ariaDescribedBy if errorMessage or helper exist.
10
+ */
11
+ var useAriaDescribedby = function (_a) {
12
+ var id = _a.id, _b = _a.idError, idError = _b === void 0 ? "".concat(id, "-error") : _b, _c = _a.idHelper, idHelper = _c === void 0 ? "".concat(id, "-helper") : _c, _d = _a.idDisclosure, idDisclosure = _d === void 0 ? "".concat(id, "-disclosure") : _d, errorMessage = _a.errorMessage, helper = _a.helper, disclosureText = _a.disclosureText;
13
+ if (!id) {
14
+ return {
15
+ ariaDescribedby: undefined,
16
+ idHelper: undefined,
17
+ idError: undefined,
18
+ idDisclosure: undefined
19
+ };
20
+ }
21
+ var ariaDescribedbyArr = [];
22
+ if (errorMessage) {
23
+ ariaDescribedbyArr.push(idError);
24
+ }
25
+ if (helper) {
26
+ ariaDescribedbyArr.push(idHelper);
27
+ }
28
+ if (disclosureText) {
29
+ ariaDescribedbyArr.push(idDisclosure);
30
+ }
31
+ var ariaDescribedby = ariaDescribedbyArr.length > 0 ? ariaDescribedbyArr.join(" ") : undefined;
32
+ return { ariaDescribedby: ariaDescribedby, idError: idError, idHelper: idHelper, idDisclosure: idDisclosure };
33
+ };
34
+
35
+ var defaultContext = {
36
+ requirementStatus: null
37
+ };
38
+ var Context = createContext(defaultContext);
39
+ var Provider = Context.Provider;
40
+ /**
41
+ * Use `FormControl` to provide inputs with labels, helper text and error messages
42
+ */
43
+ var FormControl = function (_a) {
44
+ var children = _a.children, _b = _a.elementType, ElementType = _b === void 0 ? "div" : _b, errorMessage = _a.errorMessage, helper = _a.helper, htmlFor = _a.htmlFor, supplementaryInfo = _a.supplementaryInfo, id = _a.id, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, _d = _a.requirementStatus, requirementStatus = _d === void 0 ? "optional" : _d, _e = _a.helperUnderLabel, helperUnderLabel = _e === void 0 ? false : _e, isDisabled = _a.isDisabled, disclosureTitle = _a.disclosureTitle, disclosureText = _a.disclosureText, onClickDisclosure = _a.onClickDisclosure, props = __rest(_a, ["children", "elementType", "errorMessage", "helper", "htmlFor", "supplementaryInfo", "id", "label", "labelSize", "requirementStatus", "helperUnderLabel", "isDisabled", "disclosureTitle", "disclosureText", "onClickDisclosure"]);
45
+ var surface = useContext(Context$1).surface;
46
+ var _f = useAriaDescribedby({
47
+ disclosureText: disclosureText,
48
+ errorMessage: errorMessage,
49
+ helper: helper,
50
+ id: htmlFor || id // `htmlFor` is preference to keep this deterministic with TextInput
51
+ }), ariaDescribedby = _f.ariaDescribedby, idError = _f.idError, idHelper = _f.idHelper, idDisclosure = _f.idDisclosure;
52
+ var LabelType = ElementType === "div" ? "label" : "legend";
53
+ var elementProps = {};
54
+ var labelProps = {};
55
+ if (LabelType === "label") {
56
+ labelProps["htmlFor"] = htmlFor;
57
+ if (htmlFor) {
58
+ labelProps["id"] = "".concat(htmlFor, "-label");
59
+ }
60
+ else if (id) {
61
+ labelProps["id"] = "".concat(id, "-label");
62
+ }
63
+ }
64
+ else {
65
+ elementProps["aria-describedby"] = ariaDescribedby;
66
+ }
67
+ return (React__default.createElement(Provider, { value: { requirementStatus: requirementStatus } },
68
+ React__default.createElement(ElementType, __assign({ className: classNames({
69
+ "arc-FormControl": true,
70
+ "arc-FormControl--isDisabled": isDisabled,
71
+ "arc-FormControl--smallLabel": labelSize === "s",
72
+ "arc-FormControl--onDarkSurface": surface === "dark"
73
+ }), id: id }, elementProps, filterDataAttrs(props)),
74
+ React__default.createElement(LabelType, __assign({ className: "arc-FormControl-label" }, labelProps),
75
+ label,
76
+ requirementStatus === "optional" && (React__default.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))),
77
+ helperUnderLabel && (React__default.createElement(React__default.Fragment, null, helper && (React__default.createElement("div", { className: "arc-FormControl-helper arc-FormControl-helper--underLabel", id: idHelper }, helper)))),
78
+ children,
79
+ React__default.createElement("div", { className: "arc-FormControl-info" },
80
+ !helperUnderLabel && (React__default.createElement("div", { className: "arc-FormControl-helperContainer" }, errorMessage ? (React__default.createElement("div", { className: "arc-FormControl-error", id: idError },
81
+ React__default.createElement("span", { className: "arc-FormControl-error--icon" },
82
+ React__default.createElement(BtIconAlert_2, null)),
83
+ errorMessage)) : disclosureTitle ? (React__default.createElement(React__default.Fragment, null,
84
+ React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText))) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))),
85
+ supplementaryInfo && (React__default.createElement("div", { className: "arc-FormControl-supplementaryInfo" }, supplementaryInfo))))));
86
+ };
87
+
88
+ export { Context as C, FormControl as F, useAriaDescribedby as u };
@@ -0,0 +1,46 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `Group` to arrange flexible items in a row.
4
+ */
5
+ declare const Group: FC<GroupProps> & {
6
+ Item: typeof GroupItem;
7
+ };
8
+ declare const GroupItem: FC<ItemProps>;
9
+ interface ItemProps {
10
+ /**
11
+ * Content to display in the Group.Item.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * Should the Group.Item be visible for debugging and documentation
16
+ * purposes?
17
+ */
18
+ isDebugVisible?: boolean;
19
+ /**
20
+ * Should the Group.Item stretch to fill the available space?
21
+ */
22
+ grow?: boolean;
23
+ }
24
+ interface GroupProps {
25
+ /**
26
+ * Contents of the Group. Should only contain `Group.Item`.
27
+ */
28
+ children: ReactNode;
29
+ /**
30
+ * Should all Group.Items in the Group stretch to fill the available space?
31
+ */
32
+ grow?: boolean;
33
+ /**
34
+ * Should all Group.Items in the Group stretch to fill the available space with equal widths?
35
+ */
36
+ growEqual?: boolean;
37
+ /**
38
+ * Should a border be shown between Group.Items? **Warning: Sets CSS property `overflow:hidden`.**
39
+ */
40
+ gutterBorder?: boolean;
41
+ /**
42
+ * Should wrapping of Group.Items in the Group be disabled?
43
+ */
44
+ noWrap?: boolean;
45
+ }
46
+ export { Group, GroupItem, ItemProps, GroupProps };
@@ -0,0 +1,42 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React__default, { useContext, useEffect } from 'react';
4
+ import { C as Context } from './Surface-bb100ef8.js';
5
+
6
+ /**
7
+ * Use `Group` to arrange flexible items in a row.
8
+ */
9
+ var Group = function (_a) {
10
+ var _b;
11
+ var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.growEqual, growEqual = _d === void 0 ? false : _d, _e = _a.gutterBorder, gutterBorder = _e === void 0 ? false : _e, _f = _a.noWrap, noWrap = _f === void 0 ? false : _f, props = __rest(_a, ["children", "grow", "growEqual", "gutterBorder", "noWrap"]);
12
+ var surface = useContext(Context).surface;
13
+ useEffect(function () {
14
+ React__default.Children.map(children, function (item) {
15
+ if (item && item.type !== GroupItem) {
16
+ throw new Error("Illegal child passed to <Group />. Ensure to only use <Group.Item />.");
17
+ }
18
+ });
19
+ }, [children]);
20
+ return (React__default.createElement("div", __assign({ className: classNames((_b = {},
21
+ _b["arc-Group"] = true,
22
+ _b["arc-Group--grow"] = grow,
23
+ _b["arc-Group--growEqual"] = growEqual,
24
+ _b["arc-Group--gutterBorder"] = gutterBorder,
25
+ _b["arc-Group--noWrap"] = noWrap,
26
+ _b["arc-Group--onDarkSurface"] = surface === "dark",
27
+ _b)) }, filterDataAttrs(props)),
28
+ React__default.createElement("div", { className: "arc-Group-inner" }, children)));
29
+ };
30
+ var GroupItem = function (_a) {
31
+ var _b;
32
+ var children = _a.children, _c = _a.grow, grow = _c === void 0 ? false : _c, _d = _a.isDebugVisible, isDebugVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "grow", "isDebugVisible"]);
33
+ return (React__default.createElement("div", __assign({ className: classNames((_b = {},
34
+ _b["arc-Group-item"] = true,
35
+ _b["arc-Group-item--grow"] = grow,
36
+ _b["arc-Group-item--debugVisible"] = isDebugVisible,
37
+ _b)) }, filterDataAttrs(props)), children));
38
+ };
39
+ GroupItem.displayName = "Group.Item";
40
+ Group.Item = GroupItem;
41
+
42
+ export { Group as G };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default, { useContext } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
- import { C as Context } from './Surface-bf201530.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
+ import { C as Context } from './Surface-bb100ef8.js';
6
6
 
7
7
  /**
8
8
  * Use `Heading` to display heading text.