@arc-ui/components 11.24.1 → 12.0.0-beta.3

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 (408) hide show
  1. package/dist/Alert/Alert.cjs.js +18 -29
  2. package/dist/Alert/Alert.esm.js +17 -28
  3. package/dist/Align/Align.cjs.js +6 -6
  4. package/dist/Align/Align.esm.js +2 -2
  5. package/dist/AppButton/AppButton.cjs.js +73 -0
  6. package/dist/AppButton/AppButton.esm.js +65 -0
  7. package/dist/AppButton/package.json +7 -0
  8. package/dist/Avatar/Avatar.cjs.js +7 -7
  9. package/dist/Avatar/Avatar.esm.js +7 -7
  10. package/dist/AvatarGroup/AvatarGroup.cjs.js +14 -14
  11. package/dist/AvatarGroup/AvatarGroup.esm.js +7 -7
  12. package/dist/Badge/Badge.cjs.js +5 -22
  13. package/dist/Badge/Badge.esm.js +5 -22
  14. package/dist/Box/Box.cjs.js +6 -6
  15. package/dist/Box/Box.esm.js +3 -3
  16. package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
  17. package/dist/BrandLogo/BrandLogo.esm.js +4 -4
  18. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +7 -7
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +7 -7
  20. package/dist/Button/Button.cjs.js +7 -8
  21. package/dist/Button/Button.esm.js +7 -8
  22. package/dist/ButtonV2/ButtonV2.cjs.js +16 -0
  23. package/dist/ButtonV2/ButtonV2.esm.js +8 -0
  24. package/dist/ButtonV2/package.json +7 -0
  25. package/dist/Calendar/Calendar.cjs.js +11 -10
  26. package/dist/Calendar/Calendar.esm.js +11 -10
  27. package/dist/Checkbox/Checkbox.cjs.js +8 -10
  28. package/dist/Checkbox/Checkbox.esm.js +8 -10
  29. package/dist/Columns/Columns.cjs.js +3 -3
  30. package/dist/Columns/Columns.esm.js +3 -3
  31. package/dist/DatePicker/DatePicker.cjs.js +35 -563
  32. package/dist/DatePicker/DatePicker.esm.js +26 -554
  33. package/dist/Disclosure/Disclosure.cjs.js +10 -10
  34. package/dist/Disclosure/Disclosure.esm.js +6 -6
  35. package/dist/DisclosureMini/DisclosureMini.cjs.js +6 -6
  36. package/dist/DisclosureMini/DisclosureMini.esm.js +6 -6
  37. package/dist/Elevation/Elevation.cjs.js +5 -5
  38. package/dist/Elevation/Elevation.esm.js +1 -1
  39. package/dist/Filter/Filter.cjs.js +3 -3
  40. package/dist/Filter/Filter.esm.js +3 -3
  41. package/dist/FormControl/FormControl.cjs.js +7 -8
  42. package/dist/FormControl/FormControl.esm.js +7 -8
  43. package/dist/Grid/Grid.cjs.js +3 -3
  44. package/dist/Grid/Grid.esm.js +3 -3
  45. package/dist/Group/Group.cjs.js +3 -3
  46. package/dist/Group/Group.esm.js +3 -3
  47. package/dist/Heading/Heading.cjs.js +4 -4
  48. package/dist/Heading/Heading.esm.js +4 -4
  49. package/dist/HeroButton/HeroButton.cjs.js +16 -0
  50. package/dist/HeroButton/HeroButton.esm.js +8 -0
  51. package/dist/HeroButton/package.json +7 -0
  52. package/dist/Hidden/Hidden.cjs.js +5 -5
  53. package/dist/Hidden/Hidden.esm.js +1 -1
  54. package/dist/Icon/Icon.cjs.js +5 -5
  55. package/dist/Icon/Icon.esm.js +5 -5
  56. package/dist/Image/Image.cjs.js +3 -3
  57. package/dist/Image/Image.esm.js +3 -3
  58. package/dist/ImpactCard/ImpactCard.cjs.js +18 -16
  59. package/dist/ImpactCard/ImpactCard.esm.js +14 -12
  60. package/dist/InformationCard/InformationCard.cjs.js +28 -26
  61. package/dist/InformationCard/InformationCard.esm.js +20 -18
  62. package/dist/Link/Link.cjs.js +13 -13
  63. package/dist/Link/Link.esm.js +6 -6
  64. package/dist/Markup/Markup.cjs.js +6 -6
  65. package/dist/Markup/Markup.esm.js +2 -2
  66. package/dist/MediaCard/MediaCard.cjs.js +19 -47
  67. package/dist/MediaCard/MediaCard.esm.js +18 -46
  68. package/dist/Modal/Modal.cjs.js +1496 -250
  69. package/dist/Modal/Modal.esm.js +1475 -248
  70. package/dist/Pagination/Pagination.cjs.js +15 -20
  71. package/dist/Pagination/Pagination.esm.js +8 -13
  72. package/dist/PaginationSimple/PaginationSimple.cjs.js +12 -16
  73. package/dist/PaginationSimple/PaginationSimple.esm.js +7 -11
  74. package/dist/Poster/Poster.cjs.js +5 -5
  75. package/dist/Poster/Poster.esm.js +5 -5
  76. package/dist/ProgressBar/ProgressBar.cjs.js +17 -43
  77. package/dist/ProgressBar/ProgressBar.esm.js +13 -39
  78. package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -5
  79. package/dist/ProgressStepper/ProgressStepper.esm.js +5 -5
  80. package/dist/RadioGroup/RadioGroup.cjs.js +8 -9
  81. package/dist/RadioGroup/RadioGroup.esm.js +8 -9
  82. package/dist/Rule/Rule.cjs.js +5 -5
  83. package/dist/Rule/Rule.esm.js +2 -2
  84. package/dist/ScrollToTop/ScrollToTop.cjs.js +14 -28
  85. package/dist/ScrollToTop/ScrollToTop.esm.js +10 -24
  86. package/dist/Section/Section.cjs.js +2 -2
  87. package/dist/Section/Section.esm.js +2 -2
  88. package/dist/Select/Select.cjs.js +58 -96
  89. package/dist/Select/Select.esm.js +25 -63
  90. package/dist/SiteFooter/SiteFooter.cjs.js +10 -34
  91. package/dist/SiteFooter/SiteFooter.esm.js +10 -34
  92. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +14 -13
  93. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +14 -13
  94. package/dist/SkipLink/SkipLink.cjs.js +3 -3
  95. package/dist/SkipLink/SkipLink.esm.js +1 -1
  96. package/dist/Surface/Surface.cjs.js +2 -2
  97. package/dist/Surface/Surface.esm.js +2 -2
  98. package/dist/Switch/Switch.cjs.js +26 -399
  99. package/dist/Switch/Switch.esm.js +13 -386
  100. package/dist/Tabs/Tabs.cjs.js +10 -11
  101. package/dist/Tabs/Tabs.esm.js +10 -11
  102. package/dist/Tag/Tag.cjs.js +6 -5
  103. package/dist/Tag/Tag.esm.js +6 -5
  104. package/dist/Text/Text.cjs.js +4 -4
  105. package/dist/Text/Text.esm.js +4 -4
  106. package/dist/TextArea/TextArea.cjs.js +62 -57
  107. package/dist/TextArea/TextArea.esm.js +58 -53
  108. package/dist/TextInput/TextInput.cjs.js +9 -10
  109. package/dist/TextInput/TextInput.esm.js +9 -10
  110. package/dist/Theme/Theme.cjs.js +30 -0
  111. package/dist/Theme/Theme.esm.js +21 -0
  112. package/dist/Theme/package.json +7 -0
  113. package/dist/ThemeIcon/ThemeIcon.cjs.js +14 -0
  114. package/dist/ThemeIcon/ThemeIcon.esm.js +6 -0
  115. package/dist/ThemeIcon/package.json +7 -0
  116. package/dist/Toast/Toast.cjs.js +10 -14
  117. package/dist/Toast/Toast.esm.js +10 -14
  118. package/dist/Truncate/Truncate.cjs.js +3 -3
  119. package/dist/Truncate/Truncate.esm.js +1 -1
  120. package/dist/TypographyCard/TypographyCard.cjs.js +16 -14
  121. package/dist/TypographyCard/TypographyCard.esm.js +13 -11
  122. package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
  123. package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
  124. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  125. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  126. package/dist/VideoPlayer/VideoPlayer.cjs.js +3013 -0
  127. package/dist/VideoPlayer/VideoPlayer.esm.js +3005 -0
  128. package/dist/VideoPlayer/package.json +7 -0
  129. package/dist/Visible/Visible.cjs.js +5 -5
  130. package/dist/Visible/Visible.esm.js +1 -1
  131. package/dist/_shared/cjs/ArcIconEclipse.esm-ac777a76.js +28 -0
  132. package/dist/_shared/cjs/Avatar-fc0d9b8b.js +49 -0
  133. package/dist/_shared/cjs/{BrandLogo-aea340c8.js → BrandLogo-1d2ca2c7.js} +7 -7
  134. package/dist/_shared/cjs/{Breadcrumbs-c6eaf5c4.js → Breadcrumbs-7af0af2c.js} +15 -16
  135. package/dist/_shared/cjs/BtIconArrowRight.esm-5989f2ca.js +38 -0
  136. package/dist/_shared/cjs/{BtIconAlert.esm-1a0ff9f0.js → BtIconPlayFill.esm-b8997cfc.js} +4 -8
  137. package/dist/_shared/cjs/{Button-6ba21d3b.js → Button-7d891a89.js} +13 -16
  138. package/dist/_shared/cjs/ButtonV2-b2db3f46.js +48 -0
  139. package/dist/_shared/cjs/Calendar-780bb071.js +1927 -0
  140. package/dist/_shared/cjs/{CardFooter-ff015d7d.js → CardFooter-5414bc4f.js} +9 -12
  141. package/dist/_shared/cjs/Checkbox-0e423653.js +65 -0
  142. package/dist/_shared/cjs/{Columns-ae4f8cef.js → Columns-1224bdff.js} +9 -16
  143. package/dist/_shared/cjs/{index-77ab5c6a.js → Combination-3a639f6d.js} +877 -83
  144. package/dist/_shared/cjs/DatePicker-e27ea988.js +550 -0
  145. package/dist/_shared/cjs/{DisclosureMini-09c749e5.js → DisclosureMini-c01ecce0.js} +12 -14
  146. package/dist/_shared/cjs/{Filter-f9506dfa.js → Filter-3b897d92.js} +13 -13
  147. package/dist/_shared/cjs/{FormControl-68258ce1.js → FormControl-88d48f42.js} +21 -18
  148. package/dist/_shared/cjs/Grid-9e91fb3d.js +46 -0
  149. package/dist/_shared/cjs/{Group-0429741a.js → Group-3d5ea240.js} +9 -16
  150. package/dist/_shared/cjs/{Heading-27cba320.js → Heading-fb63844f.js} +7 -7
  151. package/dist/_shared/cjs/HeroButton-0586a7c4.js +126 -0
  152. package/dist/_shared/cjs/Icon-0ec0c1fb.js +37 -0
  153. package/dist/_shared/cjs/Image-e9a5a326.js +56 -0
  154. package/dist/_shared/cjs/MediaCard-e1648705.js +65 -0
  155. package/dist/_shared/cjs/{Poster-9b48fd61.js → Poster-b7242b37.js} +15 -15
  156. package/dist/_shared/cjs/Preview-0bf3f6e8.js +167 -0
  157. package/dist/_shared/cjs/{ProgressStepper-491f0286.js → ProgressStepper-fb8405c2.js} +40 -19
  158. package/dist/_shared/cjs/{RadioGroup-26dc00fc.js → RadioGroup-a4186267.js} +14 -14
  159. package/dist/_shared/cjs/{Section-59804166.js → Section-ecfc659b.js} +5 -5
  160. package/dist/_shared/cjs/{SiteFooter-20d5a9fa.js → SiteFooter-b4247527.js} +14 -15
  161. package/dist/_shared/cjs/{SiteHeaderV2-ce1c8737.js → SiteHeaderV2-c2d651bc.js} +115 -83
  162. package/dist/_shared/cjs/{Surface-038db6e1.js → Surface-8599dbe4.js} +23 -23
  163. package/dist/_shared/cjs/{Tabs-bc9fac46.js → Tabs-75c34f43.js} +31 -49
  164. package/dist/_shared/cjs/{Tag-73a59171.js → Tag-452048f6.js} +9 -49
  165. package/dist/_shared/cjs/{Text-606ca3a2.js → Text-1c1110a4.js} +7 -7
  166. package/dist/_shared/cjs/{TextInput-8d139489.js → TextInput-762e2309.js} +11 -11
  167. package/dist/_shared/cjs/ThemeIcon-ee814862.js +27 -0
  168. package/dist/_shared/cjs/{Toast-26207fef.js → Toast-d06a89e0.js} +34 -38
  169. package/dist/_shared/cjs/{UniversalHeader-b8389447.js → UniversalHeader-f6d9c63a.js} +7 -14
  170. package/dist/_shared/cjs/{VerticalSpace-dc53bb70.js → VerticalSpace-e128ec68.js} +5 -5
  171. package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +21 -0
  172. package/dist/_shared/cjs/component-df82bc05.js +505 -0
  173. package/dist/_shared/cjs/{debounce-123468fb.js → debounce-a74c28cf.js} +2 -2
  174. package/dist/_shared/cjs/{index-74004a9c.js → index-039a9d35.js} +1 -1
  175. package/dist/_shared/cjs/{index-9f99d686.js → index-0c6319ec.js} +1 -1
  176. package/dist/_shared/cjs/index-28447df0.js +23 -0
  177. package/dist/_shared/cjs/{index-a31e64a9.js → index-3d629205.js} +2 -3
  178. package/dist/_shared/cjs/{index-dd1d18ea.js → index-3dd54df1.js} +21 -6
  179. package/dist/_shared/cjs/index-41b09e85.js +53 -0
  180. package/dist/_shared/cjs/{index-6eb396a3.js → index-7aa7f96a.js} +1 -1
  181. package/dist/_shared/{esm/Calendar-ea232839.js → cjs/index-7e31a45b.js} +54 -1942
  182. package/dist/_shared/cjs/{index-d38f1bd0.js → index-996dec94.js} +3 -3
  183. package/dist/_shared/cjs/{filter-data-attrs-1c9a530c.js → index-df60851b.js} +17 -57
  184. package/dist/_shared/cjs/index.es-8b018b0d.js +13 -0
  185. package/dist/_shared/cjs/{suffix-modifier-64dcd338.js → suffix-modifier-c8a34402.js} +2 -2
  186. package/dist/_shared/cjs/{use-media-query-e61881d8.js → use-media-query-d34c83b9.js} +0 -11
  187. package/dist/_shared/esm/ArcIconEclipse.esm-bb48b82a.js +22 -0
  188. package/dist/_shared/esm/{Avatar-320313f0.js → Avatar-38cc0595.js} +6 -23
  189. package/dist/_shared/esm/{BrandLogo-1af78f76.js → BrandLogo-7ed8aeda.js} +3 -3
  190. package/dist/_shared/esm/{Breadcrumbs-7d55e1a6.js → Breadcrumbs-9078b68e.js} +5 -6
  191. package/dist/_shared/esm/BtIconArrowRight.esm-6a17d0ce.js +31 -0
  192. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +24 -0
  193. package/dist/_shared/esm/{Button-a7d134c6.js → Button-dde2b46a.js} +7 -10
  194. package/dist/_shared/esm/ButtonV2-49cd0615.js +42 -0
  195. package/dist/_shared/esm/Calendar-f81052f4.js +1918 -0
  196. package/dist/_shared/esm/{CardFooter-e13f77b0.js → CardFooter-c79fb2db.js} +7 -10
  197. package/dist/_shared/esm/{Checkbox-588619c7.js → Checkbox-0baca464.js} +15 -12
  198. package/dist/_shared/esm/{Columns-d96b7425.js → Columns-6a8f6fbb.js} +3 -10
  199. package/dist/_shared/esm/{index-b84a20c6.js → Combination-ae3a3f08.js} +853 -66
  200. package/dist/_shared/esm/DatePicker-2260f260.js +539 -0
  201. package/dist/_shared/esm/{DisclosureMini-56719716.js → DisclosureMini-38f4c459.js} +8 -10
  202. package/dist/_shared/esm/{Filter-258ba675.js → Filter-49dcf5ce.js} +2 -2
  203. package/dist/_shared/esm/{FormControl-8e836656.js → FormControl-d873f7fa.js} +14 -11
  204. package/dist/_shared/esm/{Grid-07dbf4bd.js → Grid-fb9fc522.js} +5 -4
  205. package/dist/_shared/esm/{Group-73fdb896.js → Group-66196f07.js} +3 -10
  206. package/dist/_shared/esm/{Heading-d16e0e53.js → Heading-906c7c7c.js} +3 -3
  207. package/dist/_shared/esm/HeroButton-7ea692bf.js +120 -0
  208. package/dist/_shared/esm/{Icon-15799695.js → Icon-512f834f.js} +6 -23
  209. package/dist/_shared/esm/{Image-12fbd327.js → Image-57d08939.js} +15 -5
  210. package/dist/_shared/esm/MediaCard-01250268.js +59 -0
  211. package/dist/_shared/esm/{Poster-4ec2f679.js → Poster-e05a8b45.js} +7 -7
  212. package/dist/_shared/esm/Preview-43b2a75d.js +161 -0
  213. package/dist/_shared/esm/{ProgressStepper-7eba3a6a.js → ProgressStepper-189ed0f9.js} +33 -12
  214. package/dist/_shared/esm/{RadioGroup-427652ac.js → RadioGroup-8ff17cbb.js} +5 -5
  215. package/dist/_shared/esm/{Section-73781b56.js → Section-1acbc06a.js} +1 -1
  216. package/dist/_shared/esm/{SiteFooter-86f910b4.js → SiteFooter-ef6f0cdc.js} +11 -12
  217. package/dist/_shared/esm/{SiteHeaderV2-a7c1b1cb.js → SiteHeaderV2-a041b889.js} +64 -32
  218. package/dist/_shared/esm/{Surface-0ca6817d.js → Surface-71d21a9e.js} +17 -17
  219. package/dist/_shared/esm/{Tabs-9485cab6.js → Tabs-21ac7dfe.js} +11 -29
  220. package/dist/_shared/esm/{Tag-cb35d57b.js → Tag-2513c185.js} +6 -46
  221. package/dist/_shared/esm/{Text-14f586ac.js → Text-a46fb76b.js} +3 -3
  222. package/dist/_shared/esm/{TextInput-c0388103.js → TextInput-94c7b1a4.js} +4 -4
  223. package/dist/_shared/esm/ThemeIcon-c2dc41a6.js +21 -0
  224. package/dist/_shared/esm/{Toast-fcbfc194.js → Toast-de6ca2f3.js} +15 -19
  225. package/dist/_shared/esm/{UniversalHeader-80c7313f.js → UniversalHeader-456ad60c.js} +4 -11
  226. package/dist/_shared/esm/{VerticalSpace-43cd9138.js → VerticalSpace-b07cd8e6.js} +1 -1
  227. package/dist/_shared/esm/_commonjsHelpers-0109d574.js +18 -0
  228. package/dist/_shared/esm/component-d0a555cf.js +476 -0
  229. package/dist/_shared/esm/{debounce-6fed6b84.js → debounce-c8e41002.js} +1 -1
  230. package/dist/_shared/esm/{filter-data-attrs-ea8f4ed4.js → index-288c66b5.js} +17 -55
  231. package/dist/_shared/esm/index-4e58de24.js +51 -0
  232. package/dist/_shared/esm/{index-25a5b393.js → index-5113ed53.js} +1 -2
  233. package/dist/_shared/esm/{index-2cfab9f2.js → index-6028d797.js} +1 -1
  234. package/dist/_shared/{cjs/Calendar-b022545c.js → esm/index-605031ca.js} +44 -1954
  235. package/dist/_shared/esm/index-69089474.js +21 -0
  236. package/dist/_shared/esm/{index-efa9be1a.js → index-7740883c.js} +1 -1
  237. package/dist/_shared/esm/{index-7b531fa7.js → index-cace3545.js} +16 -2
  238. package/dist/_shared/esm/{index-044da8d0.js → index-f97466e9.js} +1 -1
  239. package/dist/_shared/esm/{index-ca72c9d5.js → index-fa93ec97.js} +1 -1
  240. package/dist/_shared/esm/index.es-3139cf9e.js +9 -0
  241. package/dist/_shared/esm/{suffix-modifier-3d548e45.js → suffix-modifier-1ce05abe.js} +2 -2
  242. package/dist/_shared/esm/{use-media-query-4c807227.js → use-media-query-d3622da8.js} +1 -9
  243. package/dist/index.es.js +17418 -40573
  244. package/dist/index.es.js.map +1 -1
  245. package/dist/index.js +17825 -40979
  246. package/dist/index.js.map +1 -1
  247. package/dist/styles.css +13 -11
  248. package/dist/types/components/Alert/Alert.d.ts +3 -5
  249. package/dist/types/components/AppButton/AppButton.d.ts +9 -0
  250. package/dist/types/components/AppButton/icons/AppStore.d.ts +2 -0
  251. package/dist/types/components/AppButton/icons/GooglePlay.d.ts +2 -0
  252. package/dist/types/components/AppButton/index.d.ts +1 -0
  253. package/dist/types/components/Avatar/types/avatar-image.d.ts +1 -1
  254. package/dist/types/components/Badge/Badge.d.ts +0 -8
  255. package/dist/types/components/BrandLogo/BrandLogo.d.ts +2 -2
  256. package/dist/types/components/ButtonV2/ButtonV2.d.ts +79 -0
  257. package/dist/types/components/ButtonV2/index.d.ts +1 -0
  258. package/dist/types/components/Checkbox/Checkbox.d.ts +7 -4
  259. package/dist/types/components/DatePicker/DatePicker.d.ts +1 -1
  260. package/dist/types/components/FormControl/FormControl.d.ts +1 -1
  261. package/dist/types/components/Grid/Grid.types.d.ts +2 -0
  262. package/dist/types/components/Grid/components/Col/Col.d.ts +2 -1
  263. package/dist/types/components/Grid/components/Row/Row.d.ts +2 -1
  264. package/dist/types/components/Grid/index.d.ts +1 -1
  265. package/dist/types/components/HeroButton/HeroButton.d.ts +66 -0
  266. package/dist/types/components/HeroButton/index.d.ts +1 -0
  267. package/dist/types/components/Image/Image.d.ts +4 -0
  268. package/dist/types/components/ImpactCard/ImpactCard.d.ts +8 -3
  269. package/dist/types/components/InformationCard/InformationCard.d.ts +5 -5
  270. package/dist/types/components/MediaCard/MediaCard.d.ts +7 -6
  271. package/dist/types/components/MediaCard/types/index.d.ts +2 -0
  272. package/dist/types/components/MediaCard/types/media-card-image.d.ts +4 -0
  273. package/dist/types/components/MediaCard/types/media-card-video.d.ts +4 -0
  274. package/dist/types/components/Modal/Modal.d.ts +2 -2
  275. package/dist/types/components/Poster/Poster.d.ts +2 -2
  276. package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +2 -2
  277. package/dist/types/components/RadioGroup/RadioGroup.d.ts +9 -1
  278. package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -4
  279. package/dist/types/components/SiteFooter/index.d.ts +0 -1
  280. package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +1 -1
  281. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +1 -0
  282. package/dist/types/components/Surface/Surface.d.ts +3 -3
  283. package/dist/types/components/Switch/Switch.d.ts +1 -1
  284. package/dist/types/components/TextArea/TextArea.d.ts +8 -0
  285. package/dist/types/components/TextInput/TextInput.d.ts +4 -2
  286. package/dist/types/components/Theme/Theme.d.ts +21 -0
  287. package/dist/types/components/Theme/index.d.ts +1 -0
  288. package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +18 -0
  289. package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -0
  290. package/dist/types/components/ThemeIcon/index.d.ts +1 -0
  291. package/dist/types/components/TypographyCard/TypographyCard.d.ts +9 -4
  292. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +18 -0
  293. package/dist/types/components/VideoPlayer/index.d.ts +1 -0
  294. package/dist/types/components/index.d.ts +8 -6
  295. package/dist/types/helpers/get-theme-img.d.ts +6 -0
  296. package/dist/types/helpers/index.d.ts +1 -0
  297. package/dist/types/hooks/index.d.ts +2 -4
  298. package/dist/types/hooks/private/index.d.ts +5 -0
  299. package/dist/types/hooks/private/use-aria-describedby/index.d.ts +1 -0
  300. package/dist/types/hooks/private/use-interaction-mode/index.d.ts +1 -0
  301. package/dist/types/hooks/private/use-numeric-input/index.d.ts +1 -0
  302. package/dist/types/hooks/{use-numeric-input.d.ts → private/use-numeric-input/use-numeric-input.d.ts} +3 -3
  303. package/dist/types/hooks/private/use-pagination/index.d.ts +1 -0
  304. package/dist/types/hooks/private/use-theme-element/index.d.ts +1 -0
  305. package/dist/types/hooks/public/index.d.ts +1 -0
  306. package/dist/types/hooks/public/use-media-query/index.d.ts +1 -0
  307. package/dist/types/hooks/{use-media-query.d.ts → public/use-media-query/use-media-query.d.ts} +1 -1
  308. package/dist/types/index.d.ts +1 -0
  309. package/dist/types/private-components/CardFooter/CardFooter.d.ts +1 -1
  310. package/dist/types/private-components/CardFooter/index.d.ts +1 -1
  311. package/dist/types/private-components/CardHeading/CardHeading.d.ts +3 -3
  312. package/dist/types/private-components/index.d.ts +1 -2
  313. package/dist/types/styles.d.ts +7 -30
  314. package/dist/use-media-query/package.json +7 -0
  315. package/dist/use-media-query/use-media-query.cjs.js +10 -0
  316. package/dist/use-media-query/use-media-query.esm.js +2 -0
  317. package/package.json +48 -38
  318. package/dist/Base/Base.cjs.js +0 -11
  319. package/dist/Base/Base.esm.js +0 -3
  320. package/dist/Base/package.json +0 -7
  321. package/dist/Card/Card.cjs.js +0 -19
  322. package/dist/Card/Card.esm.js +0 -11
  323. package/dist/Card/package.json +0 -7
  324. package/dist/Clock/Clock.cjs.js +0 -48
  325. package/dist/Clock/Clock.esm.js +0 -39
  326. package/dist/Clock/package.json +0 -7
  327. package/dist/Curve/Curve.cjs.js +0 -13
  328. package/dist/Curve/Curve.esm.js +0 -5
  329. package/dist/Curve/package.json +0 -7
  330. package/dist/SiteHeader/SiteHeader.cjs.js +0 -25
  331. package/dist/SiteHeader/SiteHeader.esm.js +0 -16
  332. package/dist/SiteHeader/package.json +0 -7
  333. package/dist/_shared/cjs/Avatar-f1b1c129.js +0 -66
  334. package/dist/_shared/cjs/Base-f5a86eed.js +0 -22
  335. package/dist/_shared/cjs/BtIconArrowRight.esm-50d96943.js +0 -54
  336. package/dist/_shared/cjs/BtIconArrowRightFill.esm-435cf4bd.js +0 -26
  337. package/dist/_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js +0 -26
  338. package/dist/_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js +0 -28
  339. package/dist/_shared/cjs/BtIconChevronRight2Px.esm-dbf8cbee.js +0 -44
  340. package/dist/_shared/cjs/BtIconCrossAlt2Px.esm-1452b14b.js +0 -26
  341. package/dist/_shared/cjs/BtIconTick.esm-844eac6c.js +0 -80
  342. package/dist/_shared/cjs/BtIconTickAlt2Px.esm-57c89acc.js +0 -26
  343. package/dist/_shared/cjs/Card-78a70e63.js +0 -126
  344. package/dist/_shared/cjs/Checkbox-0253327b.js +0 -62
  345. package/dist/_shared/cjs/Combination-9974f2e2.js +0 -1330
  346. package/dist/_shared/cjs/Curve-b5117889.js +0 -33
  347. package/dist/_shared/cjs/Grid-da776e77.js +0 -45
  348. package/dist/_shared/cjs/Icon-b46897a3.js +0 -54
  349. package/dist/_shared/cjs/Image-e873b8fc.js +0 -46
  350. package/dist/_shared/cjs/SiteHeader.rehydrator-9d8f3dad.js +0 -669
  351. package/dist/_shared/cjs/extends-8c5e4b48.js +0 -18
  352. package/dist/_shared/esm/Base-f200653c.js +0 -15
  353. package/dist/_shared/esm/BtIconAlert.esm-a4608d47.js +0 -28
  354. package/dist/_shared/esm/BtIconArrowRight.esm-9b181878.js +0 -46
  355. package/dist/_shared/esm/BtIconArrowRightFill.esm-99019d1a.js +0 -20
  356. package/dist/_shared/esm/BtIconChevronDown2Px.esm-217276c2.js +0 -20
  357. package/dist/_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js +0 -22
  358. package/dist/_shared/esm/BtIconChevronRight2Px.esm-75e92636.js +0 -37
  359. package/dist/_shared/esm/BtIconCrossAlt2Px.esm-7165ab1a.js +0 -20
  360. package/dist/_shared/esm/BtIconTick.esm-e265098f.js +0 -72
  361. package/dist/_shared/esm/BtIconTickAlt2Px.esm-0bc2ded0.js +0 -20
  362. package/dist/_shared/esm/Card-a4b78406.js +0 -120
  363. package/dist/_shared/esm/Combination-e9f7e64e.js +0 -1301
  364. package/dist/_shared/esm/Curve-e05b3c3f.js +0 -27
  365. package/dist/_shared/esm/SiteHeader.rehydrator-2ec02ee7.js +0 -662
  366. package/dist/_shared/esm/extends-8cc61aad.js +0 -16
  367. package/dist/types/components/Base/Base.d.ts +0 -16
  368. package/dist/types/components/Base/index.d.ts +0 -1
  369. package/dist/types/components/Card/Card.d.ts +0 -132
  370. package/dist/types/components/Card/index.d.ts +0 -1
  371. package/dist/types/components/Clock/Clock.d.ts +0 -17
  372. package/dist/types/components/Clock/Clock.rehydrator.d.ts +0 -2
  373. package/dist/types/components/Clock/index.d.ts +0 -2
  374. package/dist/types/components/Curve/Curve.d.ts +0 -34
  375. package/dist/types/components/Curve/index.d.ts +0 -1
  376. package/dist/types/components/SiteFooter/SiteFooter.rehydrator.d.ts +0 -2
  377. package/dist/types/components/SiteHeader/SiteHeader.d.ts +0 -79
  378. package/dist/types/components/SiteHeader/SiteHeader.rehydrator.d.ts +0 -8
  379. package/dist/types/components/SiteHeader/components/BackButton/BackButton.d.ts +0 -5
  380. package/dist/types/components/SiteHeader/components/BackButton/index.d.ts +0 -1
  381. package/dist/types/components/SiteHeader/components/Column/Column.d.ts +0 -8
  382. package/dist/types/components/SiteHeader/components/Column/index.d.ts +0 -1
  383. package/dist/types/components/SiteHeader/components/Item/Item.d.ts +0 -20
  384. package/dist/types/components/SiteHeader/components/Item/index.d.ts +0 -1
  385. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.d.ts +0 -26
  386. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.rehydrator.d.ts +0 -2
  387. package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +0 -2
  388. package/dist/types/components/SiteHeader/components/MenuButton/MenuButton.d.ts +0 -6
  389. package/dist/types/components/SiteHeader/components/MenuButton/index.d.ts +0 -1
  390. package/dist/types/components/SiteHeader/components/NavItem/NavItem.d.ts +0 -42
  391. package/dist/types/components/SiteHeader/components/NavItem/NavItem.rehydrator.d.ts +0 -2
  392. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.d.ts +0 -47
  393. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.rehydrator.d.ts +0 -2
  394. package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +0 -4
  395. package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +0 -8
  396. package/dist/types/components/SiteHeader/components/Panel/Panel.d.ts +0 -22
  397. package/dist/types/components/SiteHeader/components/Panel/index.d.ts +0 -1
  398. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.d.ts +0 -47
  399. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.rehydrator.d.ts +0 -2
  400. package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +0 -2
  401. package/dist/types/components/SiteHeader/index.d.ts +0 -2
  402. package/dist/types/private-components/CardLabel/CardLabel.d.ts +0 -10
  403. package/dist/types/private-components/CardLabel/index.d.ts +0 -1
  404. /package/dist/_shared/cjs/{BtIconChevronRightMid.esm-d01ebbd4.js → BtIconChevronRightMid.esm-3e8d18a9.js} +0 -0
  405. /package/dist/_shared/esm/{BtIconChevronRightMid.esm-32268f1a.js → BtIconChevronRightMid.esm-4764708f.js} +0 -0
  406. /package/dist/types/hooks/{use-aria-describedby.d.ts → private/use-aria-describedby/use-aria-describedby.d.ts} +0 -0
  407. /package/dist/types/hooks/{use-interaction-mode.d.ts → private/use-interaction-mode/use-interaction-mode.d.ts} +0 -0
  408. /package/dist/types/hooks/{use-pagination.d.ts → private/use-pagination/use-pagination.d.ts} +0 -0
@@ -1,16 +0,0 @@
1
- function _extends() {
2
- _extends = Object.assign ? Object.assign.bind() : function (target) {
3
- for (var i = 1; i < arguments.length; i++) {
4
- var source = arguments[i];
5
- for (var key in source) {
6
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7
- target[key] = source[key];
8
- }
9
- }
10
- }
11
- return target;
12
- };
13
- return _extends.apply(this, arguments);
14
- }
15
-
16
- export { _extends as _ };
@@ -1,16 +0,0 @@
1
- import React, { FC } from "react";
2
- export declare const ArcRootElementContext: React.Context<HTMLElement | null>;
3
- /**
4
- * Use `Base` as the root component of the arc system.
5
- */
6
- export declare const Base: FC<BaseProps>;
7
- export interface BaseProps {
8
- /**
9
- * Brand theme to apply to Base.
10
- */
11
- brand?: "bt" | null;
12
- /**
13
- * Content to display inside Base.
14
- */
15
- children: any;
16
- }
@@ -1 +0,0 @@
1
- export { Base } from "./Base";
@@ -1,132 +0,0 @@
1
- import React, { FC, HTMLAttributes } from "react";
2
- /**
3
- #### Deprecation Notice
4
-
5
- The `Card` component has been superseded by a range of new `Card` options (`ImpactCard`, `InformationCard`, `MediaCard`, `TypographyCard`) and therefore is being deprecated from Arc and will be removed in a future release.
6
-
7
- Do not use `Card` for any new work, and prepare to update any design that features it to replace it with our newer `Card` options.
8
- */
9
- export declare const Card: FC<CardProps> & {
10
- Block: typeof CardBlock;
11
- Image: typeof CardImage;
12
- };
13
- /**
14
- * Internal `Card.Block` component to section blocks of content within a Card.
15
- */
16
- declare const CardBlock: FC<{
17
- /**
18
- * Contents of the CardBlock.
19
- */
20
- children: React.ReactNode;
21
- /**
22
- * How should the content of the block be aligned?
23
- */
24
- align?: "left" | "center" | "right";
25
- /**
26
- * Should the block stretch to the width of the Card?
27
- */
28
- isFullWidth?: boolean;
29
- /**
30
- * Should the block grow to the fill the available vertical space? Used when the Card appears in a column.
31
- */
32
- grow?: boolean;
33
- }>;
34
- /**
35
- * Internal `Card.Image` component to show an image within a Card.
36
- */
37
- declare const CardImage: FC<{
38
- /**
39
- * Alternative text for the Card.Image, shown if the image cannot be displayed.
40
- */
41
- alt?: string;
42
- /**
43
- * Height of the Card.Image.
44
- */
45
- height?: number;
46
- /**
47
- * Loading behaviour of the Card.Image.
48
- */
49
- loading?: "eager" | "lazy";
50
- /**
51
- * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Required if srcSet is defined.
52
- */
53
- sizes?: string;
54
- /**
55
- * HTML src for the Card.Image.
56
- */
57
- src: string;
58
- /**
59
- * A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
60
- */
61
- srcSet?: string;
62
- }>;
63
- export type TitleSize = "xs" | "s" | "m" | "l" | "xl";
64
- export interface CardProps extends HTMLAttributes<HTMLElement> {
65
- /**
66
- * The HTML ID passed to the Card Button for aria- attributes.
67
- */
68
- actionId?: string;
69
- /**
70
- * Label for the Card's Button. You should specify this if defining an href.
71
- */
72
- actionLabel?: string;
73
- /**
74
- * A `Card.Image` to use for the cover image.
75
- */
76
- coverImage?: React.ReactNode;
77
- /**
78
- * Card fill.
79
- */
80
- fill?: "solid" | "outlined" | "neutral";
81
- /**
82
- * A URL to link to when the Card is clicked or touched.
83
- */
84
- href: string;
85
- /**
86
- * Alternative text for the Card cover image, shown if the image cannot be displayed.
87
- */
88
- imageAlt?: string;
89
- /**
90
- * Height of the Card cover image.
91
- */
92
- imageHeight?: number;
93
- /**
94
- * Loading behaviour of the Card cover image.
95
- */
96
- imageLoading?: "eager" | "lazy";
97
- /**
98
- * HTML src for the Card cover image.
99
- */
100
- imageSrc?: string;
101
- /**
102
- * A comma-separated list indicating a set of possible image sources for the user agent to use for different screen sizes in the Card cover image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
103
- */
104
- imageSrcSet?: string;
105
- /**
106
- * Object of `data-` attributes to render on internal anchor element, e.g.
107
- * `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
108
- */
109
- linkData?: {};
110
- /**
111
- * The minimum height of the card. Cards in a series of columns will match the
112
- * height of the tallest Card.
113
- */
114
- minHeight?: number;
115
- /**
116
- * Link target attribute for the Card link.
117
- */
118
- target?: "_blank" | "_parent" | "_self" | "_top";
119
- /**
120
- * The title for the Card, describing the content. This is required to provide good accessibility to screen readers.
121
- */
122
- title: string;
123
- /**
124
- * The size for the Card title.
125
- */
126
- titleSize?: TitleSize;
127
- /**
128
- * On click handler.
129
- */
130
- onClick?: () => void;
131
- }
132
- export {};
@@ -1 +0,0 @@
1
- export { Card } from "./Card";
@@ -1,17 +0,0 @@
1
- import { FC } from "react";
2
- /**
3
- #### Deprecation Notice
4
-
5
- The `Clock` component is being deprecated from Arc and will be removed in a future release.
6
-
7
- Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
8
-
9
- */
10
- export declare const Clock: FC<ClockProps>;
11
- export type LocaleType = "en-GB" | "en-US" | "ar-EG";
12
- export interface ClockProps {
13
- /**
14
- * Locale for the Clock.
15
- */
16
- locale?: LocaleType;
17
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLTimeElement) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- export { Clock } from "./Clock";
2
- export { default as ClockRehydrator } from "./Clock.rehydrator";
@@ -1,34 +0,0 @@
1
- import { FC } from "react";
2
- import { backgroundsBT } from "../Surface";
3
- /**
4
- #### Deprecation Notice
5
-
6
- The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use `Curve` for any new work, and prepare to update any design that features it to remove it.
7
-
8
- `Curve` will be removed from Arc in a subsequent release
9
- */
10
- export declare const Curve: FC<CurveProps>;
11
- export declare const sizes: readonly ["s", "m", "l"];
12
- export declare const positions: readonly ["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"];
13
- export interface CurveProps {
14
- /**
15
- * Bottom color of the Curve. Shares values with Surface.
16
- */
17
- bottomColor?: (typeof backgroundsBT)[number];
18
- /**
19
- * Positional variants of the Curve.
20
- */
21
- from?: (typeof positions)[number];
22
- /**
23
- * Should the Curve colors be flipped? Normally used at the top of Poster.
24
- */
25
- isInverted?: boolean;
26
- /**
27
- * Size of the Curve.
28
- */
29
- size?: (typeof sizes)[number];
30
- /**
31
- * Top color of the Curve. Shares values with Surface.
32
- */
33
- topColor?: (typeof backgroundsBT)[number];
34
- }
@@ -1 +0,0 @@
1
- export { Curve } from "./Curve";
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLDivElement, rehydrateChildren: any) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,79 +0,0 @@
1
- import React, { FC, ReactNode } from "react";
2
- import { subBrands } from "../BrandLogo/BrandLogo";
3
- import { Column } from "./components/Column";
4
- import { Item } from "./components/Item";
5
- import { ItemGroup } from "./components/ItemGroup";
6
- import { NavItem, NavItemWithSubNav } from "./components/NavItem";
7
- import { NodeItem } from "./components/NodeItem/NodeItem";
8
- import { SubNavItem } from "./components/SubNavItem";
9
- declare const Context: React.Context<{
10
- transparent: boolean;
11
- }>;
12
- /**
13
- #### Deprecation Notice
14
-
15
- The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
16
-
17
- Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
18
- */
19
- export declare const SiteHeader: FC<SiteHeaderProps> & {
20
- Column: typeof Column;
21
- Item: typeof Item;
22
- ItemGroup: typeof ItemGroup;
23
- NavItem: typeof NavItem;
24
- NodeItem: typeof NodeItem;
25
- NavItemWithSubNav: typeof NavItemWithSubNav;
26
- SubNavItem: typeof SubNavItem;
27
- };
28
- export interface SiteHeaderProps {
29
- /**
30
- * Contents of the SiteHeader. Must be SiteHeader.NavItem or
31
- * SiteHeader.NavItemWithSubNav components.
32
- */
33
- children?: ReactNode;
34
- /**
35
- * Basket component for the SiteHeader.
36
- */
37
- basket?: ReactNode;
38
- /**
39
- * Should account login links be included in the SiteHeader?
40
- */
41
- hasLogin?: boolean;
42
- /**
43
- * Should the SiteHeader have a transparent background?
44
- */
45
- isTransparent?: boolean;
46
- /**
47
- * A URL to link to when SiteHeader logo is clicked or touched.
48
- */
49
- loginHref?: string;
50
- /**
51
- * A Function to run to when SiteHeader logo is clicked or touched.
52
- */
53
- logoOnClick?: () => void;
54
- /**
55
- * A Function to run to when SiteHeader login links are clicked or touched.
56
- */
57
- loginOnClick?: () => void;
58
- /**
59
- * Text to display in SiteHeader login links.
60
- */
61
- loginTitle?: string;
62
- /**
63
- * A URL to link to when the SiteHeader brand logo link is clicked or touched.
64
- */
65
- logoHref?: string;
66
- /**
67
- * Accessible text for the SiteHeader brand logo link.
68
- */
69
- logoLabel?: string;
70
- /**
71
- * Search component for the SiteHeader.
72
- */
73
- search?: ReactNode;
74
- /**
75
- * Optional sub-brand variant. Only applies to BT.
76
- */
77
- subBrand?: (typeof subBrands)[number];
78
- }
79
- export { Context as SiteHeaderContext };
@@ -1,8 +0,0 @@
1
- declare const SiteHeaderRehydrator: {
2
- (el: HTMLDivElement, hydrate: any): Promise<JSX.Element>;
3
- ItemGroupRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
4
- NavItemRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
5
- NavItemWithSubNavRehydrator: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
6
- SubNavItemRehydrator: (el: HTMLDivElement, hydrate: any) => Promise<JSX.Element>;
7
- };
8
- export default SiteHeaderRehydrator;
@@ -1,5 +0,0 @@
1
- import { FC } from "react";
2
- export declare const BackButton: FC<BackButtonProps>;
3
- export interface BackButtonProps {
4
- setOpen: (arg0: boolean) => any;
5
- }
@@ -1 +0,0 @@
1
- export { BackButton } from "./BackButton";
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const Column: FC<ColumnProps>;
3
- export interface ColumnProps {
4
- /**
5
- * Contents of the Column. Must be SiteHeader.ItemGroup components.
6
- */
7
- children: ReactNode;
8
- }
@@ -1 +0,0 @@
1
- export { Column } from "./Column";
@@ -1,20 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const Item: FC<ItemProps>;
3
- export interface ItemProps {
4
- /**
5
- * Contents of the Item. Usually text to be displayed in the Item link.
6
- */
7
- children: ReactNode;
8
- /**
9
- * A URL to link to when the Item is clicked or touched.
10
- */
11
- href: string;
12
- /**
13
- * Should the Item be emphasised?
14
- */
15
- isEmphasised?: boolean;
16
- /**
17
- * On click handler.
18
- */
19
- onClick?: () => void;
20
- }
@@ -1 +0,0 @@
1
- export { Item } from "./Item";
@@ -1,26 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const ItemGroup: FC<ItemGroupProps>;
3
- export 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
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- export { ItemGroup } from "./ItemGroup";
2
- export { default as ItemGroupRehydrator } from "./ItemGroup.rehydrator";
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- export declare const MenuButton: FC<MenuButtonProps>;
3
- export interface MenuButtonProps {
4
- menuOpen: boolean;
5
- setMenuOpen: (arg0: boolean) => any;
6
- }
@@ -1 +0,0 @@
1
- export { MenuButton } from "./MenuButton";
@@ -1,42 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const NavItem: FC<NavItemProps>;
3
- export 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
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,47 +0,0 @@
1
- import React, { FC, ReactElement, ReactNode } from "react";
2
- declare const Context: React.Context<{
3
- navItem: React.MutableRefObject<HTMLLIElement> | null;
4
- subTitle: string | null;
5
- }>;
6
- export declare const NavItemWithSubNav: FC<NavItemWithSubNavProps>;
7
- export interface NavItemWithSubNavProps {
8
- /**
9
- * The URL to link to when a top-level link inside the NavItemWithSubNav panel
10
- * is clicked or touched.
11
- */
12
- href?: string;
13
- /**
14
- * Content to be displayed in the first slot of the NavItemWithSubNav. Must be
15
- * a single SiteHeader.SubNavItem component.
16
- */
17
- slot1: ReactElement;
18
- /**
19
- * Content to be displayed in the second slot of the NavItemWithSubNav. Must
20
- * be a single SiteHeader.SubNavItem component.
21
- */
22
- slot2: ReactNode;
23
- /**
24
- * Content to be displayed in the third slot of the NavItemWithSubNav. Must be
25
- * a single SiteHeader.SubNavItem component.
26
- */
27
- slot3?: ReactNode;
28
- /**
29
- * Title text to display inside the NavItemWithSubNav panel.
30
- */
31
- subTitle?: string;
32
- /**
33
- * Top-level text to display in the NavItemWithSubNav.
34
- */
35
- title: string;
36
- /**
37
- * Text to display in top-level link inside the NavItemWithSubNav panel. Only
38
- * applies if `href` is true. If not provided, text will be automatically
39
- * generated from `title`.
40
- */
41
- viewAllTitle?: string;
42
- /**
43
- * view all click handler.
44
- */
45
- onViewAllClick?: () => void;
46
- }
47
- export { Context as NavItemContext };
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLLIElement, hydrate: any) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- export { NavItem } from "./NavItem";
2
- export { default as NavItemRehydrator } from "./NavItem.rehydrator";
3
- export { NavItemWithSubNav } from "./NavItemWithSubNav";
4
- export { default as NavItemWithSubNavRehydrator } from "./NavItemWithSubNav.rehydrator";
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const NodeItem: FC<NodeItemProps>;
3
- export interface NodeItemProps {
4
- /**
5
- * Content to display with `SiteHeader.NodeItem`
6
- */
7
- children?: ReactNode;
8
- }
@@ -1,22 +0,0 @@
1
- import React, { FC, ReactElement, ReactNode } from "react";
2
- export declare const Panel: FC<PanelProps> & {
3
- ViewAll: typeof ViewAll;
4
- };
5
- export declare const ViewAll: FC<ViewAllProps>;
6
- export interface ViewAllProps {
7
- href: string;
8
- title: string;
9
- onClick?: () => void;
10
- }
11
- export interface PanelProps {
12
- children: ReactNode;
13
- navItemRef: React.MutableRefObject<HTMLElement> | null;
14
- open: boolean;
15
- promo?: ReactNode;
16
- setOpen: (arg0: boolean) => any;
17
- subNavItemRef?: React.MutableRefObject<HTMLElement>;
18
- subNavLink?: string;
19
- title?: ReactNode;
20
- viewAll?: ReactElement;
21
- withSubNav?: boolean;
22
- }
@@ -1 +0,0 @@
1
- export { Panel } from "./Panel";
@@ -1,47 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const SubNavItem: FC<SubNavItemProps>;
3
- export interface SubNavItemProps {
4
- /**
5
- * Contents of the SubNavItem. Must be SiteHeader.ItemGroup or
6
- * SiteHeader.Column components.
7
- */
8
- children?: ReactNode;
9
- /**
10
- * Should the SubNavItem be the default open item in a
11
- * SiteHeader.NavItemWithSubNav? If not specified, the default open item will
12
- * be set automatically.
13
- */
14
- isDefaultItem?: boolean;
15
- /**
16
- * Optionally shift the SubNavItem-link upwards (in "desktop" viewports only)
17
- * to close off any empty space between items due to content size.
18
- */
19
- offsetXL?: "24" | "48";
20
- /**
21
- * Content to display in the SubNavItem panel promo area.
22
- */
23
- promo?: ReactNode;
24
- /**
25
- * A URL to link to when the SubNavItem is clicked or touched. Only applies if
26
- * `children` are not present.
27
- */
28
- href?: string;
29
- /**
30
- * Optional subtitle text for the SubNavItem.
31
- */
32
- subTitle?: string;
33
- /**
34
- * Title text for the SubNavItem.
35
- */
36
- title: string;
37
- /**
38
- * Text to display in top-level link inside the SubNavItem panel. Only
39
- * applies if both `children` are present and `href` is true. If not
40
- * provided, top-level link text will be automatically generated from `title`.
41
- */
42
- viewAllTitle?: string;
43
- /**
44
- * On click handler.
45
- */
46
- onClick?: () => void;
47
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (el: HTMLDivElement, hydrate: any) => Promise<JSX.Element>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- export { SubNavItem } from "./SubNavItem";
2
- export { default as SubNavItemRehydrator } from "./SubNavItem.rehydrator";
@@ -1,2 +0,0 @@
1
- export { SiteHeader } from "./SiteHeader";
2
- export { default as SiteHeaderRehydrator } from "./SiteHeader.rehydrator";
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- export declare const CardLabel: React.FC<CardLabelProps>;
3
- interface CardLabelProps {
4
- text: string;
5
- isDarkPathway?: boolean;
6
- color?: "supporting" | "muted";
7
- isBold?: boolean;
8
- withSpacing?: boolean;
9
- }
10
- export {};
@@ -1 +0,0 @@
1
- export { CardLabel } from "./CardLabel";