@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
@@ -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 React__default, { useContext } from 'react';
3
3
  import { c as classNames } from './index-2ae58626.js';
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
  const React = React__default;
8
8
  const ArcIconArc = props =>
@@ -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, { useEffect } 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 `Image` to render a single image, or set of images, with support for
@@ -0,0 +1,27 @@
1
+ import { FC, ReactNode } from "react";
2
+ declare const ItemGroup: FC<ItemGroupProps>;
3
+ interface ItemGroupProps {
4
+ /**
5
+ * Contents of the ItemGroup. Must be Item components.
6
+ */
7
+ children: ReactNode;
8
+ /**
9
+ * A top-level URL for the ItemGroup to link to.
10
+ */
11
+ href?: string;
12
+ /**
13
+ * Title text to be displayed in the ItemGroup summary.
14
+ */
15
+ title?: string;
16
+ /**
17
+ * Text to display in top-level link inside the ItemGroup in narrow viewports.
18
+ * Only applies if `href` is present. If not provided, top-level link text
19
+ * will be automatically generated from `title`.
20
+ */
21
+ viewAllTitle?: string;
22
+ /**
23
+ * On click handler.
24
+ */
25
+ onClick?: () => void;
26
+ }
27
+ export { ItemGroup, ItemGroupProps };
@@ -0,0 +1,43 @@
1
+ import { FC, ReactNode } from "react";
2
+ declare const NavItem: FC<NavItemProps>;
3
+ interface NavItemProps {
4
+ /**
5
+ * Contents of the NavItem. Must be SiteHeader.ItemGroup or
6
+ * SiteHeader.Column components.
7
+ */
8
+ children?: ReactNode;
9
+ /**
10
+ * A top-level URL for the NavItem to link to.
11
+ *
12
+ * When `children` are not present, the URL to link to when the NavItem is
13
+ * clicked or touched.
14
+ *
15
+ * When `children` are present, the URL to link to when a top-level link
16
+ * inside the NavItem panel is clicked or touched.
17
+ */
18
+ href?: string;
19
+ /**
20
+ * Should the NavItem be highlighted as the current item/page? Only applies if
21
+ * `children` are not present (and `href` is present).
22
+ */
23
+ isCurrent?: boolean;
24
+ /**
25
+ * Content to display in the NavItem panel promo area.
26
+ */
27
+ promo?: ReactNode;
28
+ /**
29
+ * Top-level text to display in the NavItem.
30
+ */
31
+ title: string;
32
+ /**
33
+ * Text to display in top-level link inside the NavItem panel. Only
34
+ * applies if both `children` are present and `href` is true. If not
35
+ * provided, top-level link text will be automatically generated from `title`.
36
+ */
37
+ viewAllTitle?: string;
38
+ /**
39
+ * On click handler.
40
+ */
41
+ onClick?: () => void;
42
+ }
43
+ export { NavItem, NavItemProps };
@@ -0,0 +1,49 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactElement, ReactNode } from "react";
4
+ declare const Context: React.Context<{
5
+ navItem: React.MutableRefObject<HTMLLIElement> | null;
6
+ subTitle: string | null;
7
+ }>;
8
+ declare const NavItemWithSubNav: FC<NavItemWithSubNavProps>;
9
+ interface NavItemWithSubNavProps {
10
+ /**
11
+ * The URL to link to when a top-level link inside the NavItemWithSubNav panel
12
+ * is clicked or touched.
13
+ */
14
+ href?: string;
15
+ /**
16
+ * Content to be displayed in the first slot of the NavItemWithSubNav. Must be
17
+ * a single SiteHeader.SubNavItem component.
18
+ */
19
+ slot1: ReactElement;
20
+ /**
21
+ * Content to be displayed in the second slot of the NavItemWithSubNav. Must
22
+ * be a single SiteHeader.SubNavItem component.
23
+ */
24
+ slot2: ReactNode;
25
+ /**
26
+ * Content to be displayed in the third slot of the NavItemWithSubNav. Must be
27
+ * a single SiteHeader.SubNavItem component.
28
+ */
29
+ slot3?: ReactNode;
30
+ /**
31
+ * Title text to display inside the NavItemWithSubNav panel.
32
+ */
33
+ subTitle?: string;
34
+ /**
35
+ * Top-level text to display in the NavItemWithSubNav.
36
+ */
37
+ title: string;
38
+ /**
39
+ * Text to display in top-level link inside the NavItemWithSubNav panel. Only
40
+ * applies if `href` is true. If not provided, text will be automatically
41
+ * generated from `title`.
42
+ */
43
+ viewAllTitle?: string;
44
+ /**
45
+ * view all click handler.
46
+ */
47
+ onViewAllClick?: () => void;
48
+ }
49
+ export { NavItemWithSubNav, NavItemWithSubNavProps, Context as NavItemContext };
@@ -0,0 +1,81 @@
1
+ import React from "react";
2
+ import { FC, ReactNode } from "react";
3
+ import { anchorPoints } from "./index-9483ad5f";
4
+ import { loadingOptions } from "./Image-3596ce55";
5
+ declare const PosterVideo: FC<PosterVideoProps>;
6
+ interface PosterVideoProps {
7
+ /**
8
+ * Anchor point for the Poster.Video,
9
+ */
10
+ anchor?: typeof anchorPoints[number];
11
+ /**
12
+ * Should the Poster.Video autoplay?
13
+ */
14
+ autoPlay?: boolean;
15
+ /**
16
+ * HTML video sources for the Poster.Video. [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
17
+ */
18
+ children: ReactNode;
19
+ /**
20
+ * Should the Poster.Video loop?
21
+ */
22
+ loop?: boolean;
23
+ }
24
+ declare const PosterImage: FC<PosterImageProps>;
25
+ interface PosterImageProps {
26
+ /**
27
+ * Alternative text for the Poster.Image, shown if the image cannot be displayed. Consider avoiding this prop if the image is for decorative purposes only.
28
+ */
29
+ alt?: string;
30
+ /**
31
+ * Anchor point for the Poster.Image.
32
+ */
33
+ anchor?: typeof anchorPoints[number];
34
+ /**
35
+ * Loading behaviour of the Poster.Image.
36
+ */
37
+ loading?: typeof loadingOptions[number];
38
+ /**
39
+ * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
40
+ */
41
+ sizes?: string;
42
+ /**
43
+ * The `src` for the Poster.Image. Used if srcSet is not defined, or as a fallback.
44
+ */
45
+ src: string;
46
+ /**
47
+ * A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the Poster.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`.
48
+ */
49
+ srcSet?: string;
50
+ /**
51
+ * Contents of the PosterImage.
52
+ */
53
+ children?: React.ReactNode;
54
+ }
55
+ /**
56
+ * Use `Poster` to compose content on an image or video background.
57
+ */
58
+ declare const Poster: FC<PosterProps> & {
59
+ Image: typeof PosterImage;
60
+ Video: typeof PosterVideo;
61
+ };
62
+ interface PosterProps {
63
+ /**
64
+ * Poster background to overlay content on top of. Must be one of Poster.Image or Poster.Video.
65
+ */
66
+ background: ReactNode;
67
+ /**
68
+ * Contents of the Poster. Each item will be wrapped in an PosterItem component.
69
+ */
70
+ children: ReactNode;
71
+ /**
72
+ * Apply an overlay to the Poster background, e.g. a scrim gradient for text legibility.
73
+ */
74
+ overlay?: boolean;
75
+ /**
76
+ * The background surface colour to show behind the Poster content before it loads.
77
+ * If using `overlay`, the gradient will match the surface.
78
+ */
79
+ surface?: "darker" | "lighter";
80
+ }
81
+ export { PosterVideo, PosterVideoProps, PosterImage, PosterImageProps, Poster, PosterProps };
@@ -0,0 +1,44 @@
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 from 'react';
4
+ import { S as Surface } from './Surface-bb100ef8.js';
5
+ import { I as Image } from './Image-3596ce55.js';
6
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
7
+
8
+ var PosterImage = function (_a) {
9
+ var alt = _a.alt, _b = _a.anchor, anchor = _b === void 0 ? "C" : _b, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, props = __rest(_a, ["alt", "anchor", "loading", "sizes", "src", "srcSet"]);
10
+ return (React__default.createElement(Image, __assign({ alt: alt, anchor: anchor, fit: "cover", loading: loading, sizes: sizes, src: src, srcSet: srcSet }, props)));
11
+ };
12
+ PosterImage.displayName = "Poster.Image";
13
+
14
+ var PosterVideo = function (_a) {
15
+ var _b;
16
+ var _c = _a.anchor, anchor = _c === void 0 ? "C" : _c, _d = _a.autoPlay, autoPlay = _d === void 0 ? true : _d, children = _a.children, _e = _a.loop, loop = _e === void 0 ? true : _e, props = __rest(_a, ["anchor", "autoPlay", "children", "loop"]);
17
+ return (React__default.createElement("video", __assign({ className: classNames((_b = {
18
+ "arc-PosterVideo": true
19
+ },
20
+ _b[suffixModifier("arc-PosterVideo--anchor", anchor)] = anchor,
21
+ _b)), autoPlay: autoPlay, muted: true, loop: loop }, filterDataAttrs(props)), children));
22
+ };
23
+ PosterVideo.displayName = "Poster.Video";
24
+
25
+ /**
26
+ * Use `Poster` to compose content on an image or video background.
27
+ */
28
+ var Poster = function (_a) {
29
+ var background = _a.background, children = _a.children, _b = _a.overlay, overlay = _b === void 0 ? true : _b, _c = _a.surface, surface = _c === void 0 ? "darker" : _c, props = __rest(_a, ["background", "children", "overlay", "surface"]);
30
+ return (React__default.createElement(Surface, { background: surface },
31
+ React__default.createElement("div", __assign({ className: classNames({
32
+ "arc-Poster": true,
33
+ "arc-Poster--overlay": overlay,
34
+ "arc-Poster--overlayLight": surface === "lighter"
35
+ }) }, filterDataAttrs(props)),
36
+ React__default.createElement("div", { className: "arc-Poster-backgroundWrapper" }, background),
37
+ React__default.createElement("div", { className: "arc-Poster-body" }, children))));
38
+ };
39
+ PosterImage.displayName = "Poster.Image";
40
+ Poster.Image = PosterImage;
41
+ PosterVideo.displayName = "Poster.Video";
42
+ Poster.Video = PosterVideo;
43
+
44
+ export { Poster as P };
@@ -0,0 +1,97 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ import { FormControlProps } from "./FormControl-5e3fdca3";
5
+ /**
6
+ * Radio Button component.
7
+ */
8
+ declare const RadioButton: FC<RadioButtonProps>;
9
+ interface RadioButtonProps {
10
+ /**
11
+ * ID for the Radio Button.
12
+ */
13
+ id: string;
14
+ /**
15
+ * Should the RadioButton be disabled?
16
+ */
17
+ isDisabled?: boolean;
18
+ /**
19
+ * Helper text for the RadioButton, shown below the label.
20
+ */
21
+ helper?: string;
22
+ /**
23
+ * Label for the RadioButton.
24
+ */
25
+ label: string;
26
+ /**
27
+ * Current value (controlled).
28
+ */
29
+ value: string;
30
+ }
31
+ type EventType = React.ChangeEvent<HTMLInputElement>;
32
+ type ContextProps = {
33
+ blurEvent: (event: EventType) => void;
34
+ changeEvent: (event: EventType) => void;
35
+ groupDisabled: boolean;
36
+ checkedValue: string;
37
+ labelSize: "s" | "l";
38
+ name: string;
39
+ size: "s" | "l";
40
+ };
41
+ declare const Provider: React.Provider<ContextProps>;
42
+ declare const useRadioContext: () => ContextProps;
43
+ type EventType$0 = React.ChangeEvent<HTMLInputElement>;
44
+ /**
45
+ * Use `RadioGroup` to wrap and control radio buttons and apply default values
46
+ */
47
+ declare const RadioGroup: FC<RadioGroupProps> & {
48
+ RadioButton: typeof RadioButton;
49
+ };
50
+ interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel" | "supplementaryInfo"> {
51
+ /**
52
+ * Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
53
+ */
54
+ children?: React.ReactNode;
55
+ /**
56
+ * Value of the RadioButton that should be checked by default.
57
+ */
58
+ checkedValue: string;
59
+ /**
60
+ * Should all controls be disabled?
61
+ */
62
+ isDisabled?: boolean;
63
+ /**
64
+ * Helper message for the RadioGroup.
65
+ */
66
+ helper?: string;
67
+ /**
68
+ * ID for the RadioGroup.
69
+ */
70
+ id: string;
71
+ /**
72
+ * Label for the RadioGroup.
73
+ */
74
+ label: string;
75
+ /**
76
+ * Label size for the RadioGroup
77
+ */
78
+ labelSize?: "s" | "l";
79
+ /**
80
+ * Name for the RadioGroup.
81
+ */
82
+ name: string;
83
+ /**
84
+ * Function to call when the RadioGroup loses focus.
85
+ */
86
+ onBlur?: (e: EventType$0) => void;
87
+ /**
88
+ * Callback function to update the RadioGroup's controlled `checkedValue` prop,
89
+ * for example `e => setCheckedValue(e.target.value)`.
90
+ */
91
+ onChange?: (event: EventType$0) => void;
92
+ /**
93
+ * Size of the RadioGroup.
94
+ */
95
+ size?: "s" | "l";
96
+ }
97
+ export { RadioButton, RadioButtonProps, Provider, useRadioContext, RadioGroup, RadioGroupProps };
@@ -0,0 +1,64 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
3
+ import { F as FormControl } from './FormControl-5e3fdca3.js';
4
+ import { c as classNames } from './index-2ae58626.js';
5
+ import { C as Context } from './Surface-bb100ef8.js';
6
+
7
+ var RadioContext = createContext({});
8
+ var Provider = RadioContext.Provider;
9
+ var useRadioContext = function () {
10
+ var context = useContext(RadioContext);
11
+ return context;
12
+ };
13
+
14
+ /**
15
+ * Radio Button component.
16
+ */
17
+ var RadioButton = forwardRef(function (_a, ref) {
18
+ var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
19
+ var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
20
+ var surface = useContext(Context).surface;
21
+ var idLabel = "".concat(id, "-label");
22
+ var checked = checkedValue === value ? true : false;
23
+ return (React__default.createElement("div", __assign({ className: classNames({
24
+ "arc-RadioButton": true,
25
+ "arc-RadioButton--disabled": isDisabled || groupDisabled,
26
+ "arc-RadioButton--small": size === "s",
27
+ "arc-RadioButton--smallLabel": labelSize === "s",
28
+ "arc-RadioButton--onDarkSurface": surface === "dark"
29
+ }) }, filterDataAttrs(props)),
30
+ React__default.createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
31
+ React__default.createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
32
+ React__default.createElement("span", null,
33
+ label,
34
+ helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
35
+ });
36
+
37
+ /**
38
+ * Use `RadioGroup` to wrap and control radio buttons and apply default values
39
+ */
40
+ var RadioGroup = function (_a) {
41
+ var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
42
+ useEffect(function () {
43
+ React__default.Children.map(children, function (item) {
44
+ if (item && item.type !== RadioButton) {
45
+ throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
46
+ }
47
+ });
48
+ }, [children]);
49
+ return (React__default.createElement(Provider, { value: {
50
+ blurEvent: onBlur,
51
+ changeEvent: onChange,
52
+ groupDisabled: isDisabled,
53
+ checkedValue: checkedValue,
54
+ labelSize: labelSize,
55
+ name: name,
56
+ size: size
57
+ } },
58
+ React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
59
+ React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
60
+ };
61
+ RadioButton.displayName = "RadioGroup.RadioButton";
62
+ RadioGroup.RadioButton = RadioButton;
63
+
64
+ export { RadioGroup as R };
@@ -1,4 +1,4 @@
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
4
 
@@ -0,0 +1,62 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `SiteFooter` to display information at the bottom of a page.
4
+ */
5
+ declare const SiteFooter: FC<SiteFooterProps> & {
6
+ Item: typeof SiteFooterItem;
7
+ ItemGroup: typeof SiteFooterItemGroup;
8
+ };
9
+ declare const SiteFooterItemGroup: FC<SiteFooterItemGroupProps>;
10
+ declare const SiteFooterItem: FC<SiteFooterItemProps>;
11
+ interface SiteFooterItemGroupProps {
12
+ /**
13
+ * Contents of the SiteFooterItemGroup. Must be SiteFooter.Item components.
14
+ */
15
+ children: ReactNode;
16
+ /**
17
+ * Title text for the SiteFooterItemGroup.
18
+ */
19
+ title: string;
20
+ }
21
+ interface SiteFooterItemProps {
22
+ /**
23
+ * Contents of the SiteFooterItem.
24
+ */
25
+ children: ReactNode;
26
+ /**
27
+ * A URL to link to when the Item is clicked or touched.
28
+ */
29
+ href: string;
30
+ /**
31
+ * On click handler.
32
+ */
33
+ onClick?: () => void;
34
+ }
35
+ interface SiteFooterProps {
36
+ /**
37
+ * Secondary content of the SiteFooter. Must be SiteFooter.Item components.
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Copyright year.
42
+ */
43
+ currentYear?: string;
44
+ /**
45
+ * Should the SiteFooter include a Curve?
46
+ */
47
+ curve?: boolean;
48
+ /**
49
+ * Accessible text for the SiteFooter logo.
50
+ */
51
+ logoLabel?: string;
52
+ /**
53
+ * Main content of the SiteFooter. Must be SiteFooter.ItemGroup components.
54
+ */
55
+ main?: ReactNode;
56
+ /**
57
+ * Text that appears at the top of the footer. Can be the name of the site, a
58
+ * brand strapline, or similar.
59
+ */
60
+ siteName?: string;
61
+ }
62
+ export { SiteFooter, SiteFooterItemGroup, SiteFooterItem, SiteFooterItemGroupProps, SiteFooterItemProps, SiteFooterProps };
@@ -0,0 +1,67 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { u as useMediaQuery, A as ArcBreakpointM } from './index.es-00cb3bcb.js';
3
+ import { B as BtIconChevronDown2Px_2 } from './BtIconChevronDown2Px-782876e2.js';
4
+ import React__default, { useEffect, Fragment } from 'react';
5
+ import { B as BrandLogo } from './BrandLogo-56699561.js';
6
+ import { C as Curve } from './Curve-3e87b1bc.js';
7
+ import { S as Section } from './Section-b8038d66.js';
8
+ import { S as Surface } from './Surface-bb100ef8.js';
9
+ import { h as handleLinkClick } from './handle-link-click-f64f55a2.js';
10
+
11
+ /**
12
+ * Use `SiteFooter` to display information at the bottom of a page.
13
+ */
14
+ var SiteFooter = function (_a) {
15
+ var children = _a.children, currentYear = _a.currentYear, _b = _a.curve, curve = _b === void 0 ? true : _b, logoLabel = _a.logoLabel, main = _a.main, siteName = _a.siteName, props = __rest(_a, ["children", "currentYear", "curve", "logoLabel", "main", "siteName"]);
16
+ useEffect(function () {
17
+ React__default.Children.map(children, function (item) {
18
+ if (item && item.type !== SiteFooterItem) {
19
+ throw new Error("Illegal child passed to <SiteFooter />. Ensure to only use <SiteFooter.Item />.");
20
+ }
21
+ });
22
+ }, [children]);
23
+ return (React__default.createElement(React__default.Fragment, null,
24
+ curve ? (React__default.createElement(Curve, { bottomColor: "brand-flat", from: "topLeft", size: "s" })) : null,
25
+ React__default.createElement("footer", __assign({ className: "arc-SiteFooter" }, filterDataAttrs(props)),
26
+ React__default.createElement(Surface, { background: "brand-flat", paddingVertical: "24" },
27
+ (siteName || main) && (React__default.createElement(React__default.Fragment, null,
28
+ React__default.createElement(Section, null,
29
+ siteName && (React__default.createElement("div", { className: "arc-SiteFooter-name" }, siteName)),
30
+ main && React__default.createElement("div", { className: "arc-SiteFooter-main" }, main)),
31
+ React__default.createElement("hr", { className: "arc-SiteFooter-rule" }))),
32
+ React__default.createElement(Section, null,
33
+ React__default.createElement("div", { className: "arc-SiteFooter-secondary" },
34
+ children && (React__default.createElement("ul", { className: "arc-SiteFooter-secondaryItems" }, children)),
35
+ React__default.createElement("div", { className: "arc-SiteFooter-brand" },
36
+ React__default.createElement("div", { className: "arc-SiteFooter-copyright" },
37
+ React__default.createElement("span", { className: "arc-SiteFooter-copyrightSymbol" }, "\u00A9"), " ".concat(currentYear || new Date().getFullYear())),
38
+ React__default.createElement(BrandLogo, { label: logoLabel }))))))));
39
+ };
40
+ var SiteFooterItemGroup = function (_a) {
41
+ var children = _a.children, title = _a.title;
42
+ var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcBreakpointM, "px)"));
43
+ useEffect(function () {
44
+ React__default.Children.map(children, function (item) {
45
+ if (item && item.type !== SiteFooterItem && item.type !== Fragment) {
46
+ throw new Error("Illegal child passed to <SiteFooterItemGroup />. Ensure to only use <SiteFooter.Item />.");
47
+ }
48
+ });
49
+ }, [children]);
50
+ return (React__default.createElement("details", { className: "arc-SiteFooter-disclosure", open: isMinWidthArcBreakpointM },
51
+ React__default.createElement("summary", { className: "arc-SiteFooter-summary", tabIndex: isMinWidthArcBreakpointM ? -1 : 0 },
52
+ React__default.createElement("span", { className: "arc-SiteFooter-icon" },
53
+ React__default.createElement(BtIconChevronDown2Px_2, null)),
54
+ React__default.createElement("h2", { className: "arc-SiteFooter-title" }, title)),
55
+ React__default.createElement("ul", { className: "arc-SiteFooter-mainItems" }, children)));
56
+ };
57
+ var SiteFooterItem = function (_a) {
58
+ var children = _a.children, href = _a.href, onClick = _a.onClick, props = __rest(_a, ["children", "href", "onClick"]);
59
+ return (React__default.createElement("li", __assign({ className: "arc-SiteFooter-item" }, filterDataAttrs(props)),
60
+ React__default.createElement("a", { onClick: handleLinkClick({ handler: onClick }), className: "arc-SiteFooter-link", href: href }, children)));
61
+ };
62
+ SiteFooterItem.displayName = "SiteFooter.Item";
63
+ SiteFooter.Item = SiteFooterItem;
64
+ SiteFooterItemGroup.displayName = "SiteFooter.ItemGroup";
65
+ SiteFooter.ItemGroup = SiteFooterItemGroup;
66
+
67
+ export { SiteFooter as S };
@@ -0,0 +1,78 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactNode } from "react";
4
+ import { subBrands } from "./BrandLogo-56699561";
5
+ import { Column } from "./index-f419cf04";
6
+ import { Item } from "./index-699086a7";
7
+ import { ItemGroup } from "./index-e340924e";
8
+ import { NavItem, NavItemWithSubNav } from "./index-e6d20018";
9
+ import { NodeItem } from "./SiteHeader.rehydrator-4da8ac64";
10
+ import { SubNavItem } from "./index-74488a9f";
11
+ declare const Context: React.Context<{
12
+ transparent: boolean;
13
+ }>;
14
+ /**
15
+ * Use `SiteHeader` to display brand logo and navigation at the top of a page.
16
+ */
17
+ declare const SiteHeader: FC<SiteHeaderProps> & {
18
+ Column: typeof Column;
19
+ Item: typeof Item;
20
+ ItemGroup: typeof ItemGroup;
21
+ NavItem: typeof NavItem;
22
+ NodeItem: typeof NodeItem;
23
+ NavItemWithSubNav: typeof NavItemWithSubNav;
24
+ SubNavItem: typeof SubNavItem;
25
+ };
26
+ interface SiteHeaderProps {
27
+ /**
28
+ * Contents of the SiteHeader. Must be SiteHeader.NavItem or
29
+ * SiteHeader.NavItemWithSubNav components.
30
+ */
31
+ children?: ReactNode;
32
+ /**
33
+ * Basket component for the SiteHeader.
34
+ */
35
+ basket?: ReactNode;
36
+ /**
37
+ * Should account login links be included in the SiteHeader?
38
+ */
39
+ hasLogin?: boolean;
40
+ /**
41
+ * Should the SiteHeader have a transparent background?
42
+ */
43
+ isTransparent?: boolean;
44
+ /**
45
+ * A URL to link to when SiteHeader logo is clicked or touched.
46
+ */
47
+ loginHref?: string;
48
+ /**
49
+ * A Function to run to when SiteHeader logo is clicked or touched.
50
+ */
51
+ logoOnClick?: () => void;
52
+ /**
53
+ * A Function to run to when SiteHeader login links are clicked or touched.
54
+ */
55
+ loginOnClick?: () => void;
56
+ /**
57
+ * Text to display in SiteHeader login links.
58
+ */
59
+ loginTitle?: string;
60
+ /**
61
+ * A URL to link to when the SiteHeader brand logo link is clicked or touched.
62
+ */
63
+ logoHref?: string;
64
+ /**
65
+ * Accessible text for the SiteHeader brand logo link.
66
+ */
67
+ logoLabel?: string;
68
+ /**
69
+ * Search component for the SiteHeader.
70
+ */
71
+ search?: ReactNode;
72
+ /**
73
+ * Optional sub-brand variant. Only applies to BT.
74
+ */
75
+ subBrand?: typeof subBrands[number];
76
+ }
77
+ export { MenuButton } from "./SiteHeader.rehydrator-4da8ac64";
78
+ export { SiteHeader, SiteHeaderProps, Context as SiteHeaderContext };