@arc-ui/components 11.25.0 → 12.0.0-beta.10

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 (603) hide show
  1. package/dist/Alert/Alert.cjs.js +16 -28
  2. package/dist/Alert/Alert.esm.js +16 -28
  3. package/dist/Alert/styles.css +1 -0
  4. package/dist/Align/Align.cjs.js +6 -7
  5. package/dist/Align/Align.esm.js +1 -2
  6. package/dist/Align/styles.css +1 -0
  7. package/dist/AppButton/AppButton.cjs.js +74 -0
  8. package/dist/AppButton/AppButton.esm.js +66 -0
  9. package/dist/AppButton/package.json +7 -0
  10. package/dist/AppButton/styles.css +1 -0
  11. package/dist/Avatar/Avatar.cjs.js +7 -8
  12. package/dist/Avatar/Avatar.esm.js +7 -8
  13. package/dist/Avatar/styles.css +1 -0
  14. package/dist/AvatarGroup/AvatarGroup.cjs.js +12 -13
  15. package/dist/AvatarGroup/AvatarGroup.esm.js +7 -8
  16. package/dist/AvatarGroup/styles.css +1 -0
  17. package/dist/Badge/Badge.cjs.js +5 -30
  18. package/dist/Badge/Badge.esm.js +4 -29
  19. package/dist/Badge/styles.css +1 -0
  20. package/dist/Banner/Banner.cjs.js +21 -0
  21. package/dist/Banner/Banner.esm.js +13 -0
  22. package/dist/Banner/package.json +7 -0
  23. package/dist/Banner/styles.css +1 -0
  24. package/dist/BannerWithTabs/BannerWithTabs.cjs.js +62 -0
  25. package/dist/BannerWithTabs/BannerWithTabs.esm.js +54 -0
  26. package/dist/BannerWithTabs/package.json +7 -0
  27. package/dist/BannerWithTabs/styles.css +1 -0
  28. package/dist/Box/Box.cjs.js +6 -24
  29. package/dist/Box/Box.esm.js +5 -23
  30. package/dist/Box/styles.css +1 -0
  31. package/dist/BrandLogo/BrandLogo.cjs.js +3 -4
  32. package/dist/BrandLogo/BrandLogo.esm.js +3 -4
  33. package/dist/BrandLogo/styles.css +1 -0
  34. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +7 -7
  35. package/dist/Breadcrumbs/Breadcrumbs.esm.js +7 -7
  36. package/dist/Breadcrumbs/styles.css +1 -0
  37. package/dist/Button/Button.cjs.js +6 -8
  38. package/dist/Button/Button.esm.js +6 -8
  39. package/dist/Button/styles.css +1 -0
  40. package/dist/ButtonV2/ButtonV2.cjs.js +15 -0
  41. package/dist/ButtonV2/ButtonV2.esm.js +7 -0
  42. package/dist/ButtonV2/package.json +7 -0
  43. package/dist/ButtonV2/styles.css +1 -0
  44. package/dist/Calendar/Calendar.cjs.js +11 -11
  45. package/dist/Calendar/Calendar.esm.js +11 -11
  46. package/dist/Calendar/styles.css +1 -0
  47. package/dist/CardFooter/CardFooter.cjs.js +17 -0
  48. package/dist/CardFooter/CardFooter.esm.js +9 -0
  49. package/dist/CardFooter/package.json +7 -0
  50. package/dist/CardFooter/styles.css +1 -0
  51. package/dist/CardHeading/CardHeading.cjs.js +14 -0
  52. package/dist/CardHeading/CardHeading.esm.js +6 -0
  53. package/dist/CardHeading/package.json +7 -0
  54. package/dist/CardHeading/styles.css +1 -0
  55. package/dist/Carousel/Carousel.cjs.js +1921 -0
  56. package/dist/Carousel/Carousel.esm.js +1913 -0
  57. package/dist/Carousel/package.json +7 -0
  58. package/dist/Carousel/styles.css +1 -0
  59. package/dist/Checkbox/Checkbox.cjs.js +8 -11
  60. package/dist/Checkbox/Checkbox.esm.js +8 -11
  61. package/dist/Checkbox/styles.css +1 -0
  62. package/dist/Columns/Columns.cjs.js +2 -3
  63. package/dist/Columns/Columns.esm.js +2 -3
  64. package/dist/Columns/styles.css +1 -0
  65. package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +10 -0
  66. package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +2 -0
  67. package/dist/ConditionalWrapper/package.json +7 -0
  68. package/dist/ContentSwitcher/ContentSwitcher.cjs.js +20 -0
  69. package/dist/ContentSwitcher/ContentSwitcher.esm.js +12 -0
  70. package/dist/ContentSwitcher/package.json +7 -0
  71. package/dist/ContentSwitcher/styles.css +1 -0
  72. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +23 -0
  73. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +15 -0
  74. package/dist/ContentSwitcherDropdown/package.json +7 -0
  75. package/dist/ContentSwitcherDropdown/styles.css +1 -0
  76. package/dist/DatePicker/DatePicker.cjs.js +31 -563
  77. package/dist/DatePicker/DatePicker.esm.js +22 -554
  78. package/dist/DatePicker/styles.css +1 -0
  79. package/dist/Disclosure/Disclosure.cjs.js +8 -9
  80. package/dist/Disclosure/Disclosure.esm.js +5 -6
  81. package/dist/Disclosure/styles.css +1 -0
  82. package/dist/DisclosureMini/DisclosureMini.cjs.js +5 -6
  83. package/dist/DisclosureMini/DisclosureMini.esm.js +5 -6
  84. package/dist/DisclosureMini/styles.css +1 -0
  85. package/dist/Download/Download.cjs.js +16 -0
  86. package/dist/Download/Download.esm.js +8 -0
  87. package/dist/Download/package.json +7 -0
  88. package/dist/Download/styles.css +1 -0
  89. package/dist/Elevation/Elevation.cjs.js +4 -4
  90. package/dist/Elevation/Elevation.esm.js +1 -1
  91. package/dist/Elevation/styles.css +1 -0
  92. package/dist/Filter/Filter.cjs.js +4 -4
  93. package/dist/Filter/Filter.esm.js +4 -4
  94. package/dist/Filter/styles.css +1 -0
  95. package/dist/FormControl/FormControl.cjs.js +7 -9
  96. package/dist/FormControl/FormControl.esm.js +7 -9
  97. package/dist/FormControl/styles.css +1 -0
  98. package/dist/Grid/Grid.cjs.js +2 -3
  99. package/dist/Grid/Grid.esm.js +2 -3
  100. package/dist/Grid/styles.css +1 -0
  101. package/dist/Group/Group.cjs.js +3 -3
  102. package/dist/Group/Group.esm.js +3 -3
  103. package/dist/Group/styles.css +1 -0
  104. package/dist/Heading/Heading.cjs.js +3 -4
  105. package/dist/Heading/Heading.esm.js +3 -4
  106. package/dist/Heading/styles.css +1 -0
  107. package/dist/HeroBanner/HeroBanner.cjs.js +28 -0
  108. package/dist/HeroBanner/HeroBanner.esm.js +20 -0
  109. package/dist/HeroBanner/package.json +7 -0
  110. package/dist/HeroButton/HeroButton.cjs.js +15 -0
  111. package/dist/HeroButton/HeroButton.esm.js +7 -0
  112. package/dist/HeroButton/package.json +7 -0
  113. package/dist/HeroButton/styles.css +1 -0
  114. package/dist/Hidden/Hidden.cjs.js +4 -4
  115. package/dist/Hidden/Hidden.esm.js +1 -1
  116. package/dist/Hidden/styles.css +1 -0
  117. package/dist/Icon/Icon.cjs.js +4 -5
  118. package/dist/Icon/Icon.esm.js +4 -5
  119. package/dist/Icon/styles.css +1 -0
  120. package/dist/Image/Image.cjs.js +2 -3
  121. package/dist/Image/Image.esm.js +2 -3
  122. package/dist/Image/styles.css +1 -0
  123. package/dist/ImpactCard/ImpactCard.cjs.js +17 -16
  124. package/dist/ImpactCard/ImpactCard.esm.js +14 -13
  125. package/dist/ImpactCard/styles.css +1 -0
  126. package/dist/InformationCard/InformationCard.cjs.js +36 -48
  127. package/dist/InformationCard/InformationCard.esm.js +34 -46
  128. package/dist/InformationCard/styles.css +1 -0
  129. package/dist/Link/Link.cjs.js +11 -12
  130. package/dist/Link/Link.esm.js +6 -7
  131. package/dist/Link/styles.css +1 -0
  132. package/dist/Markup/Markup.cjs.js +5 -5
  133. package/dist/Markup/Markup.esm.js +2 -2
  134. package/dist/Markup/styles.css +1 -0
  135. package/dist/MediaCard/MediaCard.cjs.js +19 -47
  136. package/dist/MediaCard/MediaCard.esm.js +18 -46
  137. package/dist/MediaCard/styles.css +1 -0
  138. package/dist/Modal/Modal.cjs.js +343 -254
  139. package/dist/Modal/Modal.esm.js +323 -252
  140. package/dist/Modal/styles.css +1 -0
  141. package/dist/PageBanner/PageBanner.cjs.js +28 -0
  142. package/dist/PageBanner/PageBanner.esm.js +20 -0
  143. package/dist/PageBanner/package.json +7 -0
  144. package/dist/Pagination/Pagination.cjs.js +9 -15
  145. package/dist/Pagination/Pagination.esm.js +7 -13
  146. package/dist/Pagination/styles.css +1 -0
  147. package/dist/PaginationSimple/PaginationSimple.cjs.js +78 -35
  148. package/dist/PaginationSimple/PaginationSimple.esm.js +77 -34
  149. package/dist/PaginationSimple/styles.css +1 -0
  150. package/dist/Poster/Poster.cjs.js +4 -5
  151. package/dist/Poster/Poster.esm.js +4 -5
  152. package/dist/Poster/styles.css +1 -0
  153. package/dist/ProgressBar/ProgressBar.cjs.js +15 -42
  154. package/dist/ProgressBar/ProgressBar.esm.js +12 -39
  155. package/dist/ProgressBar/styles.css +1 -0
  156. package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -6
  157. package/dist/ProgressStepper/ProgressStepper.esm.js +5 -6
  158. package/dist/ProgressStepper/styles.css +1 -0
  159. package/dist/RadioGroup/RadioGroup.cjs.js +8 -10
  160. package/dist/RadioGroup/RadioGroup.esm.js +8 -10
  161. package/dist/RadioGroup/styles.css +1 -0
  162. package/dist/Rule/Rule.cjs.js +4 -4
  163. package/dist/Rule/Rule.esm.js +2 -2
  164. package/dist/Rule/styles.css +1 -0
  165. package/dist/ScrollToTop/ScrollToTop.cjs.js +11 -9
  166. package/dist/ScrollToTop/ScrollToTop.esm.js +9 -7
  167. package/dist/ScrollToTop/styles.css +1 -0
  168. package/dist/Section/Section.cjs.js +2 -2
  169. package/dist/Section/Section.esm.js +2 -2
  170. package/dist/Section/styles.css +1 -0
  171. package/dist/Select/Select.cjs.js +38 -1177
  172. package/dist/Select/Select.esm.js +26 -1165
  173. package/dist/Select/styles.css +1 -0
  174. package/dist/SiteFooter/SiteFooter.cjs.js +9 -34
  175. package/dist/SiteFooter/SiteFooter.esm.js +9 -34
  176. package/dist/SiteFooter/styles.css +1 -0
  177. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +14 -14
  178. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +14 -14
  179. package/dist/SiteHeaderV2/styles.css +1 -0
  180. package/dist/SkipLink/SkipLink.cjs.js +4 -4
  181. package/dist/SkipLink/SkipLink.esm.js +3 -3
  182. package/dist/SkipLink/styles.css +1 -0
  183. package/dist/{Base/Base.cjs.js → Spinner/Spinner.cjs.js} +3 -3
  184. package/dist/Spinner/Spinner.esm.js +4 -0
  185. package/dist/Spinner/package.json +7 -0
  186. package/dist/Spinner/styles.css +1 -0
  187. package/dist/Surface/Surface.cjs.js +2 -2
  188. package/dist/Surface/Surface.esm.js +2 -2
  189. package/dist/Surface/styles.css +1 -0
  190. package/dist/Switch/Switch.cjs.js +25 -400
  191. package/dist/Switch/Switch.esm.js +14 -389
  192. package/dist/Switch/styles.css +1 -0
  193. package/dist/Tabs/Tabs.cjs.js +9 -12
  194. package/dist/Tabs/Tabs.esm.js +9 -12
  195. package/dist/Tabs/styles.css +1 -0
  196. package/dist/Tag/Tag.cjs.js +77 -8
  197. package/dist/Tag/Tag.esm.js +76 -7
  198. package/dist/Tag/styles.css +1 -0
  199. package/dist/Text/Text.cjs.js +3 -4
  200. package/dist/Text/Text.esm.js +3 -4
  201. package/dist/Text/styles.css +1 -0
  202. package/dist/TextArea/TextArea.cjs.js +68 -58
  203. package/dist/TextArea/TextArea.esm.js +66 -56
  204. package/dist/TextArea/styles.css +1 -0
  205. package/dist/TextInput/TextInput.cjs.js +8 -11
  206. package/dist/TextInput/TextInput.esm.js +8 -11
  207. package/dist/TextInput/styles.css +1 -0
  208. package/dist/Theme/Theme.cjs.js +31 -0
  209. package/dist/Theme/Theme.esm.js +22 -0
  210. package/dist/Theme/package.json +7 -0
  211. package/dist/Theme/styles.css +1 -0
  212. package/dist/ThemeIcon/ThemeIcon.cjs.js +13 -0
  213. package/dist/ThemeIcon/ThemeIcon.esm.js +5 -0
  214. package/dist/ThemeIcon/package.json +7 -0
  215. package/dist/ThemeIcon/styles.css +1 -0
  216. package/dist/Toast/Toast.cjs.js +8 -14
  217. package/dist/Toast/Toast.esm.js +8 -14
  218. package/dist/Toast/styles.css +1 -0
  219. package/dist/Truncate/Truncate.cjs.js +3 -3
  220. package/dist/Truncate/Truncate.esm.js +3 -3
  221. package/dist/Truncate/styles.css +1 -0
  222. package/dist/TypographyCard/TypographyCard.cjs.js +15 -14
  223. package/dist/TypographyCard/TypographyCard.esm.js +13 -12
  224. package/dist/TypographyCard/styles.css +1 -0
  225. package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
  226. package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
  227. package/dist/UniversalHeader/styles.css +1 -0
  228. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  229. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  230. package/dist/VerticalSpace/styles.css +1 -0
  231. package/dist/VideoPlayer/VideoPlayer.cjs.js +3025 -0
  232. package/dist/VideoPlayer/VideoPlayer.esm.js +3017 -0
  233. package/dist/VideoPlayer/package.json +7 -0
  234. package/dist/VideoPlayer/styles.css +1 -0
  235. package/dist/Visible/Visible.cjs.js +4 -4
  236. package/dist/Visible/Visible.esm.js +1 -1
  237. package/dist/Visible/styles.css +1 -0
  238. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +2 -1
  239. package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -1
  240. package/dist/VisuallyHidden/styles.css +1 -0
  241. package/dist/_shared/cjs/Avatar-d37e7dee.js +48 -0
  242. package/dist/_shared/cjs/Badge-e5e57c0d.js +17 -0
  243. package/dist/_shared/cjs/Banner-a28364b4.js +66 -0
  244. package/dist/_shared/cjs/Box-a8f42d4f.js +29 -0
  245. package/dist/_shared/cjs/{BrandLogo-aea340c8.js → BrandLogo-5aef900a.js} +6 -7
  246. package/dist/_shared/cjs/{Breadcrumbs-c6eaf5c4.js → Breadcrumbs-edf76698.js} +13 -13
  247. package/dist/_shared/cjs/{BtIconAlert.esm-1a0ff9f0.js → BtIconArrowRight.esm-6053bb79.js} +3 -7
  248. package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +30 -0
  249. package/dist/_shared/cjs/{Button-6ba21d3b.js → Button-82df14c9.js} +11 -15
  250. package/dist/_shared/cjs/ButtonV2-0679b44b.js +53 -0
  251. package/dist/_shared/cjs/Calendar-d2511ee9.js +1927 -0
  252. package/dist/_shared/cjs/{CardFooter-ff015d7d.js → CardFooter-facb09e6.js} +11 -14
  253. package/dist/_shared/cjs/CardHeading-a7d8d472.js +16 -0
  254. package/dist/_shared/cjs/Checkbox-d34c19c4.js +70 -0
  255. package/dist/_shared/cjs/{Columns-ae4f8cef.js → Columns-e5f9406b.js} +8 -16
  256. package/dist/_shared/cjs/Combination-06cc56d0.js +1203 -0
  257. package/dist/_shared/cjs/ContentSwitcher-df2381c9.js +99 -0
  258. package/dist/_shared/cjs/ContentSwitcherDropdown-91856b98.js +64 -0
  259. package/dist/_shared/cjs/DatePicker-3abcf361.js +939 -0
  260. package/dist/_shared/cjs/{DisclosureMini-09c749e5.js → DisclosureMini-64a1c682.js} +10 -12
  261. package/dist/_shared/cjs/Download-45dc0d20.js +43 -0
  262. package/dist/_shared/cjs/{Filter-f9506dfa.js → Filter-c93d809e.js} +14 -14
  263. package/dist/_shared/cjs/{FormControl-68258ce1.js → FormControl-09c28bbb.js} +20 -17
  264. package/dist/_shared/cjs/Grid-102905c8.js +45 -0
  265. package/dist/_shared/cjs/{Group-0429741a.js → Group-33f84a2f.js} +8 -15
  266. package/dist/_shared/cjs/{Heading-27cba320.js → Heading-b4b65724.js} +8 -8
  267. package/dist/_shared/cjs/HeroButton-db55ff2a.js +126 -0
  268. package/dist/_shared/cjs/Icon-5dd78f2b.js +47 -0
  269. package/dist/_shared/cjs/Image-bb696c61.js +55 -0
  270. package/dist/_shared/cjs/MediaCard-158890b3.js +65 -0
  271. package/dist/_shared/cjs/{Poster-9b48fd61.js → Poster-11d2f8af.js} +14 -15
  272. package/dist/_shared/cjs/Preview-0bf3f6e8.js +167 -0
  273. package/dist/_shared/cjs/{ProgressStepper-491f0286.js → ProgressStepper-65294193.js} +24 -27
  274. package/dist/_shared/cjs/{RadioGroup-26dc00fc.js → RadioGroup-4fe1c546.js} +12 -12
  275. package/dist/_shared/cjs/{Section-59804166.js → Section-4415d756.js} +4 -4
  276. package/dist/_shared/cjs/{SiteFooter-20d5a9fa.js → SiteFooter-e741eb87.js} +14 -15
  277. package/dist/_shared/cjs/{SiteHeaderV2-ce1c8737.js → SiteHeaderV2-e0ae0718.js} +58 -61
  278. package/dist/_shared/cjs/Spinner-0f578e7f.js +24 -0
  279. package/dist/_shared/cjs/Surface-ca708a8c.js +175 -0
  280. package/dist/_shared/cjs/Tabs-a587b50f.js +90 -0
  281. package/dist/_shared/cjs/{Text-606ca3a2.js → Text-1b3e4fb6.js} +7 -7
  282. package/dist/_shared/cjs/{TextInput-8d139489.js → TextInput-5e533805.js} +12 -12
  283. package/dist/_shared/cjs/ThemeIcon-cf6ddb34.js +26 -0
  284. package/dist/_shared/cjs/{Toast-26207fef.js → Toast-e088fa5d.js} +35 -40
  285. package/dist/_shared/cjs/{UniversalHeader-b8389447.js → UniversalHeader-de415648.js} +7 -14
  286. package/dist/_shared/cjs/{VerticalSpace-dc53bb70.js → VerticalSpace-a5cf4d4e.js} +8 -8
  287. package/dist/_shared/cjs/{VisuallyHidden-b0de4c7b.js → VisuallyHidden-c691ea4d.js} +3 -2
  288. package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +21 -0
  289. package/dist/_shared/cjs/component-aa9fcdbb.js +505 -0
  290. package/dist/_shared/cjs/{debounce-123468fb.js → debounce-a74c28cf.js} +2 -2
  291. package/dist/_shared/cjs/{index-77ab5c6a.js → floating-ui.react-dom-08b8b87c.js} +12 -284
  292. package/dist/_shared/cjs/{Tabs-bc9fac46.js → index-1e7a1fce.js} +20 -123
  293. package/dist/_shared/{esm/Calendar-ea232839.js → cjs/index-28fbfd5b.js} +12 -1900
  294. package/dist/_shared/cjs/index-2bf59363.js +44 -0
  295. package/dist/_shared/cjs/{index-d38f1bd0.js → index-527f962b.js} +3 -3
  296. package/dist/_shared/cjs/index-568ebc78.js +2204 -0
  297. package/dist/_shared/cjs/{index-dd1d18ea.js → index-76f7dd53.js} +52 -37
  298. package/dist/_shared/cjs/{index-6eb396a3.js → index-879e71ee.js} +8 -1
  299. package/dist/_shared/cjs/index-ba3141f5.js +72 -0
  300. package/dist/_shared/cjs/{index-9f99d686.js → index-dbc843d3.js} +1 -1
  301. package/dist/_shared/cjs/index.es-0c2c97f4.js +355 -0
  302. package/dist/_shared/cjs/index.es-0f681622.js +13 -0
  303. package/dist/_shared/cjs/{use-media-query-e61881d8.js → use-media-query-d34c83b9.js} +0 -11
  304. package/dist/_shared/esm/{Avatar-320313f0.js → Avatar-f9df2686.js} +6 -24
  305. package/dist/_shared/esm/Badge-ec093004.js +11 -0
  306. package/dist/_shared/esm/Banner-1b709fc7.js +60 -0
  307. package/dist/_shared/esm/Box-0516cf8c.js +23 -0
  308. package/dist/_shared/esm/{BrandLogo-1af78f76.js → BrandLogo-640e58ed.js} +2 -3
  309. package/dist/_shared/esm/{Breadcrumbs-7d55e1a6.js → Breadcrumbs-58ab8ba0.js} +10 -10
  310. package/dist/_shared/esm/{BtIconAlert.esm-a4608d47.js → BtIconArrowRight.esm-93da96bb.js} +3 -7
  311. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +24 -0
  312. package/dist/_shared/esm/{Button-a7d134c6.js → Button-6d09ead2.js} +6 -10
  313. package/dist/_shared/esm/ButtonV2-b35cea64.js +47 -0
  314. package/dist/_shared/esm/Calendar-d56cdead.js +1918 -0
  315. package/dist/_shared/esm/{CardFooter-e13f77b0.js → CardFooter-97261b1c.js} +9 -12
  316. package/dist/_shared/esm/CardHeading-4e020d2e.js +10 -0
  317. package/dist/_shared/esm/{Checkbox-588619c7.js → Checkbox-a687c6cd.js} +20 -12
  318. package/dist/_shared/esm/{Columns-d96b7425.js → Columns-767e7860.js} +2 -10
  319. package/dist/_shared/esm/Combination-71be1a15.js +1163 -0
  320. package/dist/_shared/esm/ContentSwitcher-bc952e2f.js +93 -0
  321. package/dist/_shared/esm/ContentSwitcherDropdown-1675387e.js +58 -0
  322. package/dist/_shared/esm/DatePicker-dd060b1c.js +910 -0
  323. package/dist/_shared/esm/{DisclosureMini-56719716.js → DisclosureMini-9caa350c.js} +8 -10
  324. package/dist/_shared/esm/Download-07f5e3dd.js +37 -0
  325. package/dist/_shared/esm/{Filter-258ba675.js → Filter-284297be.js} +11 -11
  326. package/dist/_shared/esm/{FormControl-8e836656.js → FormControl-350bb1c8.js} +15 -12
  327. package/dist/_shared/esm/{Grid-07dbf4bd.js → Grid-5d1afe1a.js} +4 -4
  328. package/dist/_shared/esm/{Group-73fdb896.js → Group-64dee285.js} +3 -10
  329. package/dist/_shared/esm/{Heading-d16e0e53.js → Heading-e83f0d49.js} +5 -5
  330. package/dist/_shared/esm/HeroButton-32fec849.js +120 -0
  331. package/dist/_shared/esm/Icon-6fef56b3.js +41 -0
  332. package/dist/_shared/esm/{Image-12fbd327.js → Image-45c7760b.js} +14 -5
  333. package/dist/_shared/esm/MediaCard-38c7a943.js +59 -0
  334. package/dist/_shared/esm/{Poster-4ec2f679.js → Poster-f248e28b.js} +7 -8
  335. package/dist/_shared/esm/Preview-43b2a75d.js +161 -0
  336. package/dist/_shared/esm/{ProgressStepper-7eba3a6a.js → ProgressStepper-9bb4706f.js} +18 -21
  337. package/dist/_shared/esm/{RadioGroup-427652ac.js → RadioGroup-84c7ca35.js} +9 -9
  338. package/dist/_shared/esm/{Section-73781b56.js → Section-3ab74edb.js} +1 -1
  339. package/dist/_shared/esm/{SiteFooter-86f910b4.js → SiteFooter-7317b40e.js} +11 -12
  340. package/dist/_shared/esm/{SiteHeaderV2-a7c1b1cb.js → SiteHeaderV2-6d4af7e5.js} +30 -33
  341. package/dist/_shared/esm/Spinner-7c6f320f.js +18 -0
  342. package/dist/_shared/esm/Surface-201aa0d6.js +165 -0
  343. package/dist/_shared/esm/Tabs-ab8e189d.js +84 -0
  344. package/dist/_shared/esm/{Text-14f586ac.js → Text-dc3f9cb5.js} +5 -5
  345. package/dist/_shared/esm/{TextInput-c0388103.js → TextInput-0707edc3.js} +6 -6
  346. package/dist/_shared/esm/ThemeIcon-69de5351.js +20 -0
  347. package/dist/_shared/esm/{Toast-fcbfc194.js → Toast-e3ab54f9.js} +14 -19
  348. package/dist/_shared/esm/{UniversalHeader-80c7313f.js → UniversalHeader-15169a0d.js} +5 -12
  349. package/dist/_shared/esm/{VerticalSpace-43cd9138.js → VerticalSpace-4b6b7468.js} +5 -5
  350. package/dist/_shared/esm/VisuallyHidden-59f004f5.js +12 -0
  351. package/dist/_shared/esm/_commonjsHelpers-0109d574.js +18 -0
  352. package/dist/_shared/esm/component-4448135f.js +476 -0
  353. package/dist/_shared/esm/{debounce-6fed6b84.js → debounce-c8e41002.js} +1 -1
  354. package/dist/_shared/esm/{index-b84a20c6.js → floating-ui.react-dom-1bb71aae.js} +4 -281
  355. package/dist/_shared/esm/index-0ae42785.js +2169 -0
  356. package/dist/_shared/esm/{index-efa9be1a.js → index-13458236.js} +9 -2
  357. package/dist/_shared/esm/{index-044da8d0.js → index-2403936c.js} +1 -1
  358. package/dist/_shared/esm/index-6bdce6c5.js +69 -0
  359. package/dist/_shared/esm/{index-ca72c9d5.js → index-7868cc59.js} +1 -1
  360. package/dist/_shared/esm/{index-7b531fa7.js → index-7f23bb37.js} +48 -34
  361. package/dist/_shared/esm/index-a41a5e50.js +41 -0
  362. package/dist/_shared/esm/{Tabs-9485cab6.js → index-b051f161.js} +6 -108
  363. package/dist/_shared/{cjs/Calendar-b022545c.js → esm/index-ce6dee84.js} +44 -1954
  364. package/dist/_shared/esm/index.es-be971b8d.js +9 -0
  365. package/dist/_shared/esm/index.es-fc59ba8f.js +348 -0
  366. package/dist/_shared/esm/{use-media-query-4c807227.js → use-media-query-d3622da8.js} +1 -9
  367. package/dist/index.es.js +18198 -40375
  368. package/dist/index.es.js.map +1 -1
  369. package/dist/index.js +18249 -40418
  370. package/dist/index.js.map +1 -1
  371. package/dist/styles.css +15 -11
  372. package/dist/types/components/Alert/Alert.d.ts +3 -5
  373. package/dist/types/components/AppButton/AppButton.d.ts +9 -0
  374. package/dist/types/components/AppButton/icons/AppStore.d.ts +2 -0
  375. package/dist/types/components/AppButton/icons/GooglePlay.d.ts +2 -0
  376. package/dist/types/components/AppButton/index.d.ts +1 -0
  377. package/dist/types/components/Avatar/index.d.ts +1 -1
  378. package/dist/types/components/Avatar/types/avatar-image.d.ts +1 -1
  379. package/dist/types/components/Badge/Badge.d.ts +0 -8
  380. package/dist/types/components/Banner/Banner.d.ts +68 -0
  381. package/dist/types/components/Banner/index.d.ts +1 -0
  382. package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +17 -0
  383. package/dist/types/components/BannerWithTabs/index.d.ts +1 -0
  384. package/dist/types/components/Box/Box.d.ts +4 -0
  385. package/dist/types/components/BrandLogo/BrandLogo.d.ts +2 -2
  386. package/dist/types/components/ButtonV2/ButtonV2.d.ts +79 -0
  387. package/dist/types/components/ButtonV2/index.d.ts +1 -0
  388. package/dist/types/{private-components → components}/CardFooter/CardFooter.d.ts +1 -1
  389. package/dist/types/components/CardFooter/index.d.ts +1 -0
  390. package/dist/types/{private-components → components}/CardHeading/CardHeading.d.ts +3 -3
  391. package/dist/types/components/CardHeading/index.d.ts +1 -0
  392. package/dist/types/components/Carousel/Carousel.d.ts +34 -0
  393. package/dist/types/components/Carousel/components/DotButton.d.ts +10 -0
  394. package/dist/types/components/Carousel/constants/breakpoints.d.ts +5 -0
  395. package/dist/types/components/Carousel/helpers/get-options.d.ts +3 -0
  396. package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +12 -0
  397. package/dist/types/components/Carousel/index.d.ts +1 -0
  398. package/dist/types/components/Carousel/types/breakpoints.d.ts +1 -0
  399. package/dist/types/components/Carousel/types/keynames.d.ts +5 -0
  400. package/dist/types/components/Carousel/types/responsive.d.ts +3 -0
  401. package/dist/types/components/Carousel/types/screen-sizes.d.ts +2 -0
  402. package/dist/types/components/Carousel/types/slide-config.d.ts +5 -0
  403. package/dist/types/components/Checkbox/Checkbox.d.ts +8 -5
  404. package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +32 -0
  405. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +12 -0
  406. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +1 -0
  407. package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +24 -0
  408. package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +1 -0
  409. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +17 -0
  410. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +1 -0
  411. package/dist/types/components/ContentSwitcher/index.d.ts +1 -0
  412. package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +57 -0
  413. package/dist/types/components/ContentSwitcherDropdown/index.d.ts +1 -0
  414. package/dist/types/components/DatePicker/DatePicker.d.ts +1 -1
  415. package/dist/types/components/Disclosure/index.d.ts +1 -1
  416. package/dist/types/components/Download/Download.d.ts +41 -0
  417. package/dist/types/components/Download/index.d.ts +1 -0
  418. package/dist/types/components/FormControl/FormControl.d.ts +1 -1
  419. package/dist/types/components/Grid/Grid.types.d.ts +2 -0
  420. package/dist/types/components/Grid/components/Col/Col.d.ts +2 -1
  421. package/dist/types/components/Grid/components/Row/Row.d.ts +2 -1
  422. package/dist/types/components/Grid/index.d.ts +1 -1
  423. package/dist/types/components/Heading/Heading.d.ts +4 -0
  424. package/dist/types/components/Heading/index.d.ts +1 -1
  425. package/dist/types/components/HeroBanner/HeroBanner.d.ts +5 -0
  426. package/dist/types/components/HeroBanner/index.d.ts +1 -0
  427. package/dist/types/components/HeroButton/HeroButton.d.ts +66 -0
  428. package/dist/types/components/HeroButton/index.d.ts +1 -0
  429. package/dist/types/components/Icon/Icon.d.ts +2 -2
  430. package/dist/types/components/Image/Image.d.ts +4 -0
  431. package/dist/types/components/ImpactCard/ImpactCard.d.ts +9 -4
  432. package/dist/types/components/ImpactCard/index.d.ts +1 -1
  433. package/dist/types/components/InformationCard/InformationCard.d.ts +7 -7
  434. package/dist/types/components/InformationCard/index.d.ts +1 -1
  435. package/dist/types/components/MediaCard/MediaCard.d.ts +7 -6
  436. package/dist/types/components/MediaCard/index.d.ts +1 -1
  437. package/dist/types/components/MediaCard/types/index.d.ts +2 -0
  438. package/dist/types/components/MediaCard/types/media-card-image.d.ts +4 -0
  439. package/dist/types/components/MediaCard/types/media-card-video.d.ts +4 -0
  440. package/dist/types/components/Modal/Modal.d.ts +2 -2
  441. package/dist/types/components/PageBanner/PageBanner.d.ts +5 -0
  442. package/dist/types/components/PageBanner/index.d.ts +1 -0
  443. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +21 -41
  444. package/dist/types/components/Poster/Poster.d.ts +2 -2
  445. package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +2 -2
  446. package/dist/types/components/RadioGroup/RadioGroup.d.ts +9 -1
  447. package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -4
  448. package/dist/types/components/SiteFooter/index.d.ts +0 -1
  449. package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +1 -1
  450. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +1 -0
  451. package/dist/types/components/Spinner/Spinner.d.ts +16 -0
  452. package/dist/types/components/Spinner/index.d.ts +1 -0
  453. package/dist/types/components/Surface/Surface.d.ts +7 -3
  454. package/dist/types/components/Switch/Switch.d.ts +5 -1
  455. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +5 -0
  456. package/dist/types/components/Text/Text.d.ts +4 -0
  457. package/dist/types/components/TextArea/TextArea.d.ts +8 -0
  458. package/dist/types/components/TextInput/TextInput.d.ts +6 -4
  459. package/dist/types/components/Theme/Theme.d.ts +21 -0
  460. package/dist/types/components/Theme/index.d.ts +1 -0
  461. package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +18 -0
  462. package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -0
  463. package/dist/types/components/ThemeIcon/index.d.ts +1 -0
  464. package/dist/types/components/Truncate/Truncate.d.ts +1 -1
  465. package/dist/types/components/TypographyCard/TypographyCard.d.ts +9 -4
  466. package/dist/types/components/TypographyCard/index.d.ts +1 -1
  467. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +27 -0
  468. package/dist/types/components/VideoPlayer/index.d.ts +1 -0
  469. package/dist/types/components/index.d.ts +15 -6
  470. package/dist/types/helpers/get-theme-img.d.ts +6 -0
  471. package/dist/types/helpers/index.d.ts +1 -2
  472. package/dist/types/hooks/index.d.ts +2 -4
  473. package/dist/types/hooks/private/index.d.ts +5 -0
  474. package/dist/types/hooks/private/use-aria-describedby/index.d.ts +1 -0
  475. package/dist/types/hooks/private/use-interaction-mode/index.d.ts +1 -0
  476. package/dist/types/hooks/private/use-numeric-input/index.d.ts +1 -0
  477. package/dist/types/hooks/{use-numeric-input.d.ts → private/use-numeric-input/use-numeric-input.d.ts} +3 -3
  478. package/dist/types/hooks/private/use-pagination/index.d.ts +1 -0
  479. package/dist/types/hooks/private/use-theme-element/index.d.ts +1 -0
  480. package/dist/types/hooks/public/index.d.ts +1 -0
  481. package/dist/types/hooks/public/use-media-query/index.d.ts +1 -0
  482. package/dist/types/hooks/{use-media-query.d.ts → public/use-media-query/use-media-query.d.ts} +1 -1
  483. package/dist/types/index.d.ts +1 -0
  484. package/dist/types/styles.d.ts +16 -33
  485. package/dist/use-media-query/package.json +7 -0
  486. package/dist/use-media-query/use-media-query.cjs.js +10 -0
  487. package/dist/use-media-query/use-media-query.esm.js +2 -0
  488. package/package.json +59 -41
  489. package/dist/Base/Base.esm.js +0 -4
  490. package/dist/Base/package.json +0 -7
  491. package/dist/Card/Card.cjs.js +0 -19
  492. package/dist/Card/Card.esm.js +0 -11
  493. package/dist/Card/package.json +0 -7
  494. package/dist/Clock/Clock.cjs.js +0 -48
  495. package/dist/Clock/Clock.esm.js +0 -39
  496. package/dist/Clock/package.json +0 -7
  497. package/dist/Curve/Curve.cjs.js +0 -13
  498. package/dist/Curve/Curve.esm.js +0 -5
  499. package/dist/Curve/package.json +0 -7
  500. package/dist/SiteHeader/SiteHeader.cjs.js +0 -25
  501. package/dist/SiteHeader/SiteHeader.esm.js +0 -16
  502. package/dist/SiteHeader/package.json +0 -7
  503. package/dist/_shared/cjs/Avatar-f1b1c129.js +0 -66
  504. package/dist/_shared/cjs/Base-4676f12e.js +0 -25
  505. package/dist/_shared/cjs/BtIconArrowRight.esm-50d96943.js +0 -54
  506. package/dist/_shared/cjs/BtIconArrowRightFill.esm-435cf4bd.js +0 -26
  507. package/dist/_shared/cjs/BtIconChevronDown2Px.esm-39030ee0.js +0 -26
  508. package/dist/_shared/cjs/BtIconChevronLeftMid.esm-0aaa6770.js +0 -28
  509. package/dist/_shared/cjs/BtIconCrossAlt2Px.esm-1452b14b.js +0 -26
  510. package/dist/_shared/cjs/BtIconTick.esm-844eac6c.js +0 -80
  511. package/dist/_shared/cjs/BtIconTickAlt2Px.esm-57c89acc.js +0 -26
  512. package/dist/_shared/cjs/Card-78a70e63.js +0 -126
  513. package/dist/_shared/cjs/Checkbox-0253327b.js +0 -62
  514. package/dist/_shared/cjs/Combination-9974f2e2.js +0 -1330
  515. package/dist/_shared/cjs/Curve-b5117889.js +0 -33
  516. package/dist/_shared/cjs/Grid-da776e77.js +0 -45
  517. package/dist/_shared/cjs/Icon-b46897a3.js +0 -54
  518. package/dist/_shared/cjs/Image-e873b8fc.js +0 -46
  519. package/dist/_shared/cjs/SiteHeader.rehydrator-9d8f3dad.js +0 -669
  520. package/dist/_shared/cjs/Surface-038db6e1.js +0 -57
  521. package/dist/_shared/cjs/Tag-73a59171.js +0 -84
  522. package/dist/_shared/cjs/extends-8c5e4b48.js +0 -18
  523. package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +0 -227
  524. package/dist/_shared/cjs/index-74004a9c.js +0 -23
  525. package/dist/_shared/cjs/index-a31e64a9.js +0 -27
  526. package/dist/_shared/cjs/index-dcfdd5da.js +0 -11
  527. package/dist/_shared/cjs/suffix-modifier-64dcd338.js +0 -19
  528. package/dist/_shared/esm/Base-211ca3a4.js +0 -18
  529. package/dist/_shared/esm/BtIconArrowRight.esm-9b181878.js +0 -46
  530. package/dist/_shared/esm/BtIconArrowRightFill.esm-99019d1a.js +0 -20
  531. package/dist/_shared/esm/BtIconChevronDown2Px.esm-217276c2.js +0 -20
  532. package/dist/_shared/esm/BtIconChevronLeftMid.esm-1ed8330b.js +0 -22
  533. package/dist/_shared/esm/BtIconCrossAlt2Px.esm-7165ab1a.js +0 -20
  534. package/dist/_shared/esm/BtIconTick.esm-e265098f.js +0 -72
  535. package/dist/_shared/esm/BtIconTickAlt2Px.esm-0bc2ded0.js +0 -20
  536. package/dist/_shared/esm/Card-a4b78406.js +0 -120
  537. package/dist/_shared/esm/Combination-e9f7e64e.js +0 -1301
  538. package/dist/_shared/esm/Curve-e05b3c3f.js +0 -27
  539. package/dist/_shared/esm/Icon-15799695.js +0 -48
  540. package/dist/_shared/esm/SiteHeader.rehydrator-2ec02ee7.js +0 -662
  541. package/dist/_shared/esm/Surface-0ca6817d.js +0 -48
  542. package/dist/_shared/esm/Tag-cb35d57b.js +0 -78
  543. package/dist/_shared/esm/VisuallyHidden-06692fd3.js +0 -11
  544. package/dist/_shared/esm/extends-8cc61aad.js +0 -16
  545. package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +0 -220
  546. package/dist/_shared/esm/index-25a5b393.js +0 -25
  547. package/dist/_shared/esm/index-2cfab9f2.js +0 -21
  548. package/dist/_shared/esm/index-a624de47.js +0 -9
  549. package/dist/_shared/esm/suffix-modifier-3d548e45.js +0 -17
  550. package/dist/types/components/Base/Base.d.ts +0 -20
  551. package/dist/types/components/Base/index.d.ts +0 -1
  552. package/dist/types/components/Card/Card.d.ts +0 -132
  553. package/dist/types/components/Card/index.d.ts +0 -1
  554. package/dist/types/components/Clock/Clock.d.ts +0 -17
  555. package/dist/types/components/Clock/Clock.rehydrator.d.ts +0 -2
  556. package/dist/types/components/Clock/index.d.ts +0 -2
  557. package/dist/types/components/Curve/Curve.d.ts +0 -34
  558. package/dist/types/components/Curve/index.d.ts +0 -1
  559. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Todo.d.ts +0 -2
  560. package/dist/types/components/SiteFooter/SiteFooter.rehydrator.d.ts +0 -2
  561. package/dist/types/components/SiteHeader/SiteHeader.d.ts +0 -79
  562. package/dist/types/components/SiteHeader/SiteHeader.rehydrator.d.ts +0 -8
  563. package/dist/types/components/SiteHeader/components/BackButton/BackButton.d.ts +0 -5
  564. package/dist/types/components/SiteHeader/components/BackButton/index.d.ts +0 -1
  565. package/dist/types/components/SiteHeader/components/Column/Column.d.ts +0 -8
  566. package/dist/types/components/SiteHeader/components/Column/index.d.ts +0 -1
  567. package/dist/types/components/SiteHeader/components/Item/Item.d.ts +0 -20
  568. package/dist/types/components/SiteHeader/components/Item/index.d.ts +0 -1
  569. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.d.ts +0 -26
  570. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.rehydrator.d.ts +0 -2
  571. package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +0 -2
  572. package/dist/types/components/SiteHeader/components/MenuButton/MenuButton.d.ts +0 -6
  573. package/dist/types/components/SiteHeader/components/MenuButton/index.d.ts +0 -1
  574. package/dist/types/components/SiteHeader/components/NavItem/NavItem.d.ts +0 -42
  575. package/dist/types/components/SiteHeader/components/NavItem/NavItem.rehydrator.d.ts +0 -2
  576. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.d.ts +0 -47
  577. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.rehydrator.d.ts +0 -2
  578. package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +0 -4
  579. package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +0 -8
  580. package/dist/types/components/SiteHeader/components/Panel/Panel.d.ts +0 -22
  581. package/dist/types/components/SiteHeader/components/Panel/index.d.ts +0 -1
  582. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.d.ts +0 -47
  583. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.rehydrator.d.ts +0 -2
  584. package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +0 -2
  585. package/dist/types/components/SiteHeader/index.d.ts +0 -2
  586. package/dist/types/helpers/filter-data-attrs.d.ts +0 -1
  587. package/dist/types/helpers/suffix-modifier.d.ts +0 -9
  588. package/dist/types/private-components/CardFooter/index.d.ts +0 -1
  589. package/dist/types/private-components/CardHeading/index.d.ts +0 -1
  590. package/dist/types/private-components/CardLabel/CardLabel.d.ts +0 -10
  591. package/dist/types/private-components/CardLabel/index.d.ts +0 -1
  592. package/dist/types/private-components/index.d.ts +0 -4
  593. /package/dist/_shared/cjs/{BtIconChevronRight2Px.esm-dbf8cbee.js → BtIconChevronRight2Px.esm-2e4d117e.js} +0 -0
  594. /package/dist/_shared/cjs/{BtIconChevronRightMid.esm-d01ebbd4.js → BtIconChevronRightMid.esm-3e8d18a9.js} +0 -0
  595. /package/dist/_shared/cjs/{ConditionalWrapper-be3b2625.js → ConditionalWrapper-bf944594.js} +0 -0
  596. /package/dist/_shared/esm/{BtIconChevronRight2Px.esm-75e92636.js → BtIconChevronRight2Px.esm-c939e317.js} +0 -0
  597. /package/dist/_shared/esm/{BtIconChevronRightMid.esm-32268f1a.js → BtIconChevronRightMid.esm-4764708f.js} +0 -0
  598. /package/dist/_shared/esm/{ConditionalWrapper-59be8f35.js → ConditionalWrapper-b85979de.js} +0 -0
  599. /package/dist/types/{private-components → components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
  600. /package/dist/types/{private-components → components}/ConditionalWrapper/index.d.ts +0 -0
  601. /package/dist/types/hooks/{use-aria-describedby.d.ts → private/use-aria-describedby/use-aria-describedby.d.ts} +0 -0
  602. /package/dist/types/hooks/{use-interaction-mode.d.ts → private/use-interaction-mode/use-interaction-mode.d.ts} +0 -0
  603. /package/dist/types/hooks/{use-pagination.d.ts → private/use-pagination/use-pagination.d.ts} +0 -0
@@ -0,0 +1,476 @@
1
+ import * as React from 'react';
2
+ import { useState } from 'react';
3
+ import { a as __assign, _ as __rest } from './index.es-fc59ba8f.js';
4
+
5
+ var useThemeElement = function () {
6
+ var _a = useState(undefined), themeElement = _a[0], setElement = _a[1];
7
+ var setThemeElement = function (el) {
8
+ el &&
9
+ setElement(el.closest(".arc-ds-sys-theme") || undefined);
10
+ };
11
+ return [themeElement, setThemeElement];
12
+ };
13
+
14
+ var getDefaultParent = function (originalTarget) {
15
+ if (typeof document === 'undefined') {
16
+ return null;
17
+ }
18
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
19
+ return sampleTarget.ownerDocument.body;
20
+ };
21
+ var counterMap = new WeakMap();
22
+ var uncontrolledNodes = new WeakMap();
23
+ var markerMap = {};
24
+ var lockCount = 0;
25
+ var unwrapHost = function (node) {
26
+ return node && (node.host || unwrapHost(node.parentNode));
27
+ };
28
+ var correctTargets = function (parent, targets) {
29
+ return targets
30
+ .map(function (target) {
31
+ if (parent.contains(target)) {
32
+ return target;
33
+ }
34
+ var correctedTarget = unwrapHost(target);
35
+ if (correctedTarget && parent.contains(correctedTarget)) {
36
+ return correctedTarget;
37
+ }
38
+ console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
39
+ return null;
40
+ })
41
+ .filter(function (x) { return Boolean(x); });
42
+ };
43
+ /**
44
+ * Marks everything except given node(or nodes) as aria-hidden
45
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
46
+ * @param [parentNode] - top element, defaults to document.body
47
+ * @param {String} [markerName] - a special attribute to mark every node
48
+ * @param {String} [controlAttribute] - html Attribute to control
49
+ * @return {Undo} undo command
50
+ */
51
+ var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
52
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
53
+ if (!markerMap[markerName]) {
54
+ markerMap[markerName] = new WeakMap();
55
+ }
56
+ var markerCounter = markerMap[markerName];
57
+ var hiddenNodes = [];
58
+ var elementsToKeep = new Set();
59
+ var elementsToStop = new Set(targets);
60
+ var keep = function (el) {
61
+ if (!el || elementsToKeep.has(el)) {
62
+ return;
63
+ }
64
+ elementsToKeep.add(el);
65
+ keep(el.parentNode);
66
+ };
67
+ targets.forEach(keep);
68
+ var deep = function (parent) {
69
+ if (!parent || elementsToStop.has(parent)) {
70
+ return;
71
+ }
72
+ Array.prototype.forEach.call(parent.children, function (node) {
73
+ if (elementsToKeep.has(node)) {
74
+ deep(node);
75
+ }
76
+ else {
77
+ var attr = node.getAttribute(controlAttribute);
78
+ var alreadyHidden = attr !== null && attr !== 'false';
79
+ var counterValue = (counterMap.get(node) || 0) + 1;
80
+ var markerValue = (markerCounter.get(node) || 0) + 1;
81
+ counterMap.set(node, counterValue);
82
+ markerCounter.set(node, markerValue);
83
+ hiddenNodes.push(node);
84
+ if (counterValue === 1 && alreadyHidden) {
85
+ uncontrolledNodes.set(node, true);
86
+ }
87
+ if (markerValue === 1) {
88
+ node.setAttribute(markerName, 'true');
89
+ }
90
+ if (!alreadyHidden) {
91
+ node.setAttribute(controlAttribute, 'true');
92
+ }
93
+ }
94
+ });
95
+ };
96
+ deep(parentNode);
97
+ elementsToKeep.clear();
98
+ lockCount++;
99
+ return function () {
100
+ hiddenNodes.forEach(function (node) {
101
+ var counterValue = counterMap.get(node) - 1;
102
+ var markerValue = markerCounter.get(node) - 1;
103
+ counterMap.set(node, counterValue);
104
+ markerCounter.set(node, markerValue);
105
+ if (!counterValue) {
106
+ if (!uncontrolledNodes.has(node)) {
107
+ node.removeAttribute(controlAttribute);
108
+ }
109
+ uncontrolledNodes.delete(node);
110
+ }
111
+ if (!markerValue) {
112
+ node.removeAttribute(markerName);
113
+ }
114
+ });
115
+ lockCount--;
116
+ if (!lockCount) {
117
+ // clear
118
+ counterMap = new WeakMap();
119
+ counterMap = new WeakMap();
120
+ uncontrolledNodes = new WeakMap();
121
+ markerMap = {};
122
+ }
123
+ };
124
+ };
125
+ /**
126
+ * Marks everything except given node(or nodes) as aria-hidden
127
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
128
+ * @param [parentNode] - top element, defaults to document.body
129
+ * @param {String} [markerName] - a special attribute to mark every node
130
+ * @return {Undo} undo command
131
+ */
132
+ var hideOthers = function (originalTarget, parentNode, markerName) {
133
+ if (markerName === void 0) { markerName = 'data-aria-hidden'; }
134
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
135
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
136
+ if (!activeParentNode) {
137
+ return function () { return null; };
138
+ }
139
+ // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
140
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
141
+ return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
142
+ };
143
+
144
+ var zeroRightClassName = 'right-scroll-bar-position';
145
+ var fullWidthClassName = 'width-before-scroll-bar';
146
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
147
+ /**
148
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
149
+ * ! might be undefined ! use will fallback!
150
+ */
151
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
152
+
153
+ /**
154
+ * Assigns a value for a given ref, no matter of the ref format
155
+ * @param {RefObject} ref - a callback function or ref object
156
+ * @param value - a new value
157
+ *
158
+ * @see https://github.com/theKashey/use-callback-ref#assignref
159
+ * @example
160
+ * const refObject = useRef();
161
+ * const refFn = (ref) => {....}
162
+ *
163
+ * assignRef(refObject, "refValue");
164
+ * assignRef(refFn, "refValue");
165
+ */
166
+ function assignRef(ref, value) {
167
+ if (typeof ref === 'function') {
168
+ ref(value);
169
+ }
170
+ else if (ref) {
171
+ ref.current = value;
172
+ }
173
+ return ref;
174
+ }
175
+
176
+ /**
177
+ * creates a MutableRef with ref change callback
178
+ * @param initialValue - initial ref value
179
+ * @param {Function} callback - a callback to run when value changes
180
+ *
181
+ * @example
182
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
183
+ * ref.current = 1;
184
+ * // prints 0 -> 1
185
+ *
186
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
187
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
188
+ * @returns {MutableRefObject}
189
+ */
190
+ function useCallbackRef(initialValue, callback) {
191
+ var ref = useState(function () { return ({
192
+ // value
193
+ value: initialValue,
194
+ // last callback
195
+ callback: callback,
196
+ // "memoized" public interface
197
+ facade: {
198
+ get current() {
199
+ return ref.value;
200
+ },
201
+ set current(value) {
202
+ var last = ref.value;
203
+ if (last !== value) {
204
+ ref.value = value;
205
+ ref.callback(value, last);
206
+ }
207
+ },
208
+ },
209
+ }); })[0];
210
+ // update callback
211
+ ref.callback = callback;
212
+ return ref.facade;
213
+ }
214
+
215
+ /**
216
+ * Merges two or more refs together providing a single interface to set their value
217
+ * @param {RefObject|Ref} refs
218
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
219
+ *
220
+ * @see {@link mergeRefs} a version without buit-in memoization
221
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
222
+ * @example
223
+ * const Component = React.forwardRef((props, ref) => {
224
+ * const ownRef = useRef();
225
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
226
+ * return <div ref={domRef}>...</div>
227
+ * }
228
+ */
229
+ function useMergeRefs(refs, defaultValue) {
230
+ return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
231
+ }
232
+
233
+ function ItoI(a) {
234
+ return a;
235
+ }
236
+ function innerCreateMedium(defaults, middleware) {
237
+ if (middleware === void 0) { middleware = ItoI; }
238
+ var buffer = [];
239
+ var assigned = false;
240
+ var medium = {
241
+ read: function () {
242
+ if (assigned) {
243
+ throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
244
+ }
245
+ if (buffer.length) {
246
+ return buffer[buffer.length - 1];
247
+ }
248
+ return defaults;
249
+ },
250
+ useMedium: function (data) {
251
+ var item = middleware(data, assigned);
252
+ buffer.push(item);
253
+ return function () {
254
+ buffer = buffer.filter(function (x) { return x !== item; });
255
+ };
256
+ },
257
+ assignSyncMedium: function (cb) {
258
+ assigned = true;
259
+ while (buffer.length) {
260
+ var cbs = buffer;
261
+ buffer = [];
262
+ cbs.forEach(cb);
263
+ }
264
+ buffer = {
265
+ push: function (x) { return cb(x); },
266
+ filter: function () { return buffer; },
267
+ };
268
+ },
269
+ assignMedium: function (cb) {
270
+ assigned = true;
271
+ var pendingQueue = [];
272
+ if (buffer.length) {
273
+ var cbs = buffer;
274
+ buffer = [];
275
+ cbs.forEach(cb);
276
+ pendingQueue = buffer;
277
+ }
278
+ var executeQueue = function () {
279
+ var cbs = pendingQueue;
280
+ pendingQueue = [];
281
+ cbs.forEach(cb);
282
+ };
283
+ var cycle = function () { return Promise.resolve().then(executeQueue); };
284
+ cycle();
285
+ buffer = {
286
+ push: function (x) {
287
+ pendingQueue.push(x);
288
+ cycle();
289
+ },
290
+ filter: function (filter) {
291
+ pendingQueue = pendingQueue.filter(filter);
292
+ return buffer;
293
+ },
294
+ };
295
+ },
296
+ };
297
+ return medium;
298
+ }
299
+ // eslint-disable-next-line @typescript-eslint/ban-types
300
+ function createSidecarMedium(options) {
301
+ if (options === void 0) { options = {}; }
302
+ var medium = innerCreateMedium(null);
303
+ medium.options = __assign({ async: true, ssr: false }, options);
304
+ return medium;
305
+ }
306
+
307
+ var SideCar = function (_a) {
308
+ var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
309
+ if (!sideCar) {
310
+ throw new Error('Sidecar: please provide `sideCar` property to import the right car');
311
+ }
312
+ var Target = sideCar.read();
313
+ if (!Target) {
314
+ throw new Error('Sidecar medium not found');
315
+ }
316
+ return React.createElement(Target, __assign({}, rest));
317
+ };
318
+ SideCar.isSideCarExport = true;
319
+ function exportSidecar(medium, exported) {
320
+ medium.useMedium(exported);
321
+ return SideCar;
322
+ }
323
+
324
+ var getNonce = function () {
325
+ if (typeof __webpack_nonce__ !== 'undefined') {
326
+ return __webpack_nonce__;
327
+ }
328
+ return undefined;
329
+ };
330
+
331
+ function makeStyleTag() {
332
+ if (!document)
333
+ return null;
334
+ var tag = document.createElement('style');
335
+ tag.type = 'text/css';
336
+ var nonce = getNonce();
337
+ if (nonce) {
338
+ tag.setAttribute('nonce', nonce);
339
+ }
340
+ return tag;
341
+ }
342
+ function injectStyles(tag, css) {
343
+ // @ts-ignore
344
+ if (tag.styleSheet) {
345
+ // @ts-ignore
346
+ tag.styleSheet.cssText = css;
347
+ }
348
+ else {
349
+ tag.appendChild(document.createTextNode(css));
350
+ }
351
+ }
352
+ function insertStyleTag(tag) {
353
+ var head = document.head || document.getElementsByTagName('head')[0];
354
+ head.appendChild(tag);
355
+ }
356
+ var stylesheetSingleton = function () {
357
+ var counter = 0;
358
+ var stylesheet = null;
359
+ return {
360
+ add: function (style) {
361
+ if (counter == 0) {
362
+ if ((stylesheet = makeStyleTag())) {
363
+ injectStyles(stylesheet, style);
364
+ insertStyleTag(stylesheet);
365
+ }
366
+ }
367
+ counter++;
368
+ },
369
+ remove: function () {
370
+ counter--;
371
+ if (!counter && stylesheet) {
372
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
373
+ stylesheet = null;
374
+ }
375
+ },
376
+ };
377
+ };
378
+
379
+ /**
380
+ * creates a hook to control style singleton
381
+ * @see {@link styleSingleton} for a safer component version
382
+ * @example
383
+ * ```tsx
384
+ * const useStyle = styleHookSingleton();
385
+ * ///
386
+ * useStyle('body { overflow: hidden}');
387
+ */
388
+ var styleHookSingleton = function () {
389
+ var sheet = stylesheetSingleton();
390
+ return function (styles, isDynamic) {
391
+ React.useEffect(function () {
392
+ sheet.add(styles);
393
+ return function () {
394
+ sheet.remove();
395
+ };
396
+ }, [styles && isDynamic]);
397
+ };
398
+ };
399
+
400
+ /**
401
+ * create a Component to add styles on demand
402
+ * - styles are added when first instance is mounted
403
+ * - styles are removed when the last instance is unmounted
404
+ * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
405
+ */
406
+ var styleSingleton = function () {
407
+ var useStyle = styleHookSingleton();
408
+ var Sheet = function (_a) {
409
+ var styles = _a.styles, dynamic = _a.dynamic;
410
+ useStyle(styles, dynamic);
411
+ return null;
412
+ };
413
+ return Sheet;
414
+ };
415
+
416
+ var zeroGap = {
417
+ left: 0,
418
+ top: 0,
419
+ right: 0,
420
+ gap: 0,
421
+ };
422
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
423
+ var getOffset = function (gapMode) {
424
+ var cs = window.getComputedStyle(document.body);
425
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
426
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
427
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
428
+ return [parse(left), parse(top), parse(right)];
429
+ };
430
+ var getGapWidth = function (gapMode) {
431
+ if (gapMode === void 0) { gapMode = 'margin'; }
432
+ if (typeof window === 'undefined') {
433
+ return zeroGap;
434
+ }
435
+ var offsets = getOffset(gapMode);
436
+ var documentWidth = document.documentElement.clientWidth;
437
+ var windowWidth = window.innerWidth;
438
+ return {
439
+ left: offsets[0],
440
+ top: offsets[1],
441
+ right: offsets[2],
442
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
443
+ };
444
+ };
445
+
446
+ var Style = styleSingleton();
447
+ // important tip - once we measure scrollBar width and remove them
448
+ // we could not repeat this operation
449
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
450
+ var getStyles = function (_a, allowRelative, gapMode, important) {
451
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
452
+ if (gapMode === void 0) { gapMode = 'margin'; }
453
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
454
+ allowRelative && "position: relative ".concat(important, ";"),
455
+ gapMode === 'margin' &&
456
+ "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
457
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
458
+ ]
459
+ .filter(Boolean)
460
+ .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
461
+ };
462
+ /**
463
+ * Removes page scrollbar and blocks page scroll when mounted
464
+ */
465
+ var RemoveScrollBar = function (props) {
466
+ var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
467
+ /*
468
+ gap will be measured on every component mount
469
+ however it will be used only by the "first" invocation
470
+ due to singleton nature of <Style
471
+ */
472
+ var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
473
+ return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
474
+ };
475
+
476
+ export { RemoveScrollBar as R, useMergeRefs as a, createSidecarMedium as c, exportSidecar as e, fullWidthClassName as f, hideOthers as h, styleSingleton as s, useThemeElement as u, zeroRightClassName as z };
@@ -1,4 +1,4 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1
+ import { c as commonjsGlobal } from './_commonjsHelpers-0109d574.js';
2
2
 
3
3
  /**
4
4
  * Checks if `value` is the