@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,505 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index_es = require('./index.es-0c2c97f4.js');
5
+
6
+ function _interopNamespace(e) {
7
+ if (e && e.__esModule) return e;
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n["default"] = e;
21
+ return Object.freeze(n);
22
+ }
23
+
24
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
25
+
26
+ var useThemeElement = function () {
27
+ var _a = React.useState(undefined), themeElement = _a[0], setElement = _a[1];
28
+ var setThemeElement = function (el) {
29
+ el &&
30
+ setElement(el.closest(".arc-ds-sys-theme") || undefined);
31
+ };
32
+ return [themeElement, setThemeElement];
33
+ };
34
+
35
+ var getDefaultParent = function (originalTarget) {
36
+ if (typeof document === 'undefined') {
37
+ return null;
38
+ }
39
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
40
+ return sampleTarget.ownerDocument.body;
41
+ };
42
+ var counterMap = new WeakMap();
43
+ var uncontrolledNodes = new WeakMap();
44
+ var markerMap = {};
45
+ var lockCount = 0;
46
+ var unwrapHost = function (node) {
47
+ return node && (node.host || unwrapHost(node.parentNode));
48
+ };
49
+ var correctTargets = function (parent, targets) {
50
+ return targets
51
+ .map(function (target) {
52
+ if (parent.contains(target)) {
53
+ return target;
54
+ }
55
+ var correctedTarget = unwrapHost(target);
56
+ if (correctedTarget && parent.contains(correctedTarget)) {
57
+ return correctedTarget;
58
+ }
59
+ console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');
60
+ return null;
61
+ })
62
+ .filter(function (x) { return Boolean(x); });
63
+ };
64
+ /**
65
+ * Marks everything except given node(or nodes) as aria-hidden
66
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
67
+ * @param [parentNode] - top element, defaults to document.body
68
+ * @param {String} [markerName] - a special attribute to mark every node
69
+ * @param {String} [controlAttribute] - html Attribute to control
70
+ * @return {Undo} undo command
71
+ */
72
+ var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {
73
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
74
+ if (!markerMap[markerName]) {
75
+ markerMap[markerName] = new WeakMap();
76
+ }
77
+ var markerCounter = markerMap[markerName];
78
+ var hiddenNodes = [];
79
+ var elementsToKeep = new Set();
80
+ var elementsToStop = new Set(targets);
81
+ var keep = function (el) {
82
+ if (!el || elementsToKeep.has(el)) {
83
+ return;
84
+ }
85
+ elementsToKeep.add(el);
86
+ keep(el.parentNode);
87
+ };
88
+ targets.forEach(keep);
89
+ var deep = function (parent) {
90
+ if (!parent || elementsToStop.has(parent)) {
91
+ return;
92
+ }
93
+ Array.prototype.forEach.call(parent.children, function (node) {
94
+ if (elementsToKeep.has(node)) {
95
+ deep(node);
96
+ }
97
+ else {
98
+ var attr = node.getAttribute(controlAttribute);
99
+ var alreadyHidden = attr !== null && attr !== 'false';
100
+ var counterValue = (counterMap.get(node) || 0) + 1;
101
+ var markerValue = (markerCounter.get(node) || 0) + 1;
102
+ counterMap.set(node, counterValue);
103
+ markerCounter.set(node, markerValue);
104
+ hiddenNodes.push(node);
105
+ if (counterValue === 1 && alreadyHidden) {
106
+ uncontrolledNodes.set(node, true);
107
+ }
108
+ if (markerValue === 1) {
109
+ node.setAttribute(markerName, 'true');
110
+ }
111
+ if (!alreadyHidden) {
112
+ node.setAttribute(controlAttribute, 'true');
113
+ }
114
+ }
115
+ });
116
+ };
117
+ deep(parentNode);
118
+ elementsToKeep.clear();
119
+ lockCount++;
120
+ return function () {
121
+ hiddenNodes.forEach(function (node) {
122
+ var counterValue = counterMap.get(node) - 1;
123
+ var markerValue = markerCounter.get(node) - 1;
124
+ counterMap.set(node, counterValue);
125
+ markerCounter.set(node, markerValue);
126
+ if (!counterValue) {
127
+ if (!uncontrolledNodes.has(node)) {
128
+ node.removeAttribute(controlAttribute);
129
+ }
130
+ uncontrolledNodes.delete(node);
131
+ }
132
+ if (!markerValue) {
133
+ node.removeAttribute(markerName);
134
+ }
135
+ });
136
+ lockCount--;
137
+ if (!lockCount) {
138
+ // clear
139
+ counterMap = new WeakMap();
140
+ counterMap = new WeakMap();
141
+ uncontrolledNodes = new WeakMap();
142
+ markerMap = {};
143
+ }
144
+ };
145
+ };
146
+ /**
147
+ * Marks everything except given node(or nodes) as aria-hidden
148
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
149
+ * @param [parentNode] - top element, defaults to document.body
150
+ * @param {String} [markerName] - a special attribute to mark every node
151
+ * @return {Undo} undo command
152
+ */
153
+ var hideOthers = function (originalTarget, parentNode, markerName) {
154
+ if (markerName === void 0) { markerName = 'data-aria-hidden'; }
155
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
156
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
157
+ if (!activeParentNode) {
158
+ return function () { return null; };
159
+ }
160
+ // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10
161
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));
162
+ return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');
163
+ };
164
+
165
+ var zeroRightClassName = 'right-scroll-bar-position';
166
+ var fullWidthClassName = 'width-before-scroll-bar';
167
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
168
+ /**
169
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
170
+ * ! might be undefined ! use will fallback!
171
+ */
172
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
173
+
174
+ /**
175
+ * Assigns a value for a given ref, no matter of the ref format
176
+ * @param {RefObject} ref - a callback function or ref object
177
+ * @param value - a new value
178
+ *
179
+ * @see https://github.com/theKashey/use-callback-ref#assignref
180
+ * @example
181
+ * const refObject = useRef();
182
+ * const refFn = (ref) => {....}
183
+ *
184
+ * assignRef(refObject, "refValue");
185
+ * assignRef(refFn, "refValue");
186
+ */
187
+ function assignRef(ref, value) {
188
+ if (typeof ref === 'function') {
189
+ ref(value);
190
+ }
191
+ else if (ref) {
192
+ ref.current = value;
193
+ }
194
+ return ref;
195
+ }
196
+
197
+ /**
198
+ * creates a MutableRef with ref change callback
199
+ * @param initialValue - initial ref value
200
+ * @param {Function} callback - a callback to run when value changes
201
+ *
202
+ * @example
203
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
204
+ * ref.current = 1;
205
+ * // prints 0 -> 1
206
+ *
207
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
208
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
209
+ * @returns {MutableRefObject}
210
+ */
211
+ function useCallbackRef(initialValue, callback) {
212
+ var ref = React.useState(function () { return ({
213
+ // value
214
+ value: initialValue,
215
+ // last callback
216
+ callback: callback,
217
+ // "memoized" public interface
218
+ facade: {
219
+ get current() {
220
+ return ref.value;
221
+ },
222
+ set current(value) {
223
+ var last = ref.value;
224
+ if (last !== value) {
225
+ ref.value = value;
226
+ ref.callback(value, last);
227
+ }
228
+ },
229
+ },
230
+ }); })[0];
231
+ // update callback
232
+ ref.callback = callback;
233
+ return ref.facade;
234
+ }
235
+
236
+ /**
237
+ * Merges two or more refs together providing a single interface to set their value
238
+ * @param {RefObject|Ref} refs
239
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
240
+ *
241
+ * @see {@link mergeRefs} a version without buit-in memoization
242
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
243
+ * @example
244
+ * const Component = React.forwardRef((props, ref) => {
245
+ * const ownRef = useRef();
246
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
247
+ * return <div ref={domRef}>...</div>
248
+ * }
249
+ */
250
+ function useMergeRefs(refs, defaultValue) {
251
+ return useCallbackRef(defaultValue || null, function (newValue) { return refs.forEach(function (ref) { return assignRef(ref, newValue); }); });
252
+ }
253
+
254
+ function ItoI(a) {
255
+ return a;
256
+ }
257
+ function innerCreateMedium(defaults, middleware) {
258
+ if (middleware === void 0) { middleware = ItoI; }
259
+ var buffer = [];
260
+ var assigned = false;
261
+ var medium = {
262
+ read: function () {
263
+ if (assigned) {
264
+ throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
265
+ }
266
+ if (buffer.length) {
267
+ return buffer[buffer.length - 1];
268
+ }
269
+ return defaults;
270
+ },
271
+ useMedium: function (data) {
272
+ var item = middleware(data, assigned);
273
+ buffer.push(item);
274
+ return function () {
275
+ buffer = buffer.filter(function (x) { return x !== item; });
276
+ };
277
+ },
278
+ assignSyncMedium: function (cb) {
279
+ assigned = true;
280
+ while (buffer.length) {
281
+ var cbs = buffer;
282
+ buffer = [];
283
+ cbs.forEach(cb);
284
+ }
285
+ buffer = {
286
+ push: function (x) { return cb(x); },
287
+ filter: function () { return buffer; },
288
+ };
289
+ },
290
+ assignMedium: function (cb) {
291
+ assigned = true;
292
+ var pendingQueue = [];
293
+ if (buffer.length) {
294
+ var cbs = buffer;
295
+ buffer = [];
296
+ cbs.forEach(cb);
297
+ pendingQueue = buffer;
298
+ }
299
+ var executeQueue = function () {
300
+ var cbs = pendingQueue;
301
+ pendingQueue = [];
302
+ cbs.forEach(cb);
303
+ };
304
+ var cycle = function () { return Promise.resolve().then(executeQueue); };
305
+ cycle();
306
+ buffer = {
307
+ push: function (x) {
308
+ pendingQueue.push(x);
309
+ cycle();
310
+ },
311
+ filter: function (filter) {
312
+ pendingQueue = pendingQueue.filter(filter);
313
+ return buffer;
314
+ },
315
+ };
316
+ },
317
+ };
318
+ return medium;
319
+ }
320
+ // eslint-disable-next-line @typescript-eslint/ban-types
321
+ function createSidecarMedium(options) {
322
+ if (options === void 0) { options = {}; }
323
+ var medium = innerCreateMedium(null);
324
+ medium.options = index_es.__assign({ async: true, ssr: false }, options);
325
+ return medium;
326
+ }
327
+
328
+ var SideCar = function (_a) {
329
+ var sideCar = _a.sideCar, rest = index_es.__rest(_a, ["sideCar"]);
330
+ if (!sideCar) {
331
+ throw new Error('Sidecar: please provide `sideCar` property to import the right car');
332
+ }
333
+ var Target = sideCar.read();
334
+ if (!Target) {
335
+ throw new Error('Sidecar medium not found');
336
+ }
337
+ return React__namespace.createElement(Target, index_es.__assign({}, rest));
338
+ };
339
+ SideCar.isSideCarExport = true;
340
+ function exportSidecar(medium, exported) {
341
+ medium.useMedium(exported);
342
+ return SideCar;
343
+ }
344
+
345
+ var getNonce = function () {
346
+ if (typeof __webpack_nonce__ !== 'undefined') {
347
+ return __webpack_nonce__;
348
+ }
349
+ return undefined;
350
+ };
351
+
352
+ function makeStyleTag() {
353
+ if (!document)
354
+ return null;
355
+ var tag = document.createElement('style');
356
+ tag.type = 'text/css';
357
+ var nonce = getNonce();
358
+ if (nonce) {
359
+ tag.setAttribute('nonce', nonce);
360
+ }
361
+ return tag;
362
+ }
363
+ function injectStyles(tag, css) {
364
+ // @ts-ignore
365
+ if (tag.styleSheet) {
366
+ // @ts-ignore
367
+ tag.styleSheet.cssText = css;
368
+ }
369
+ else {
370
+ tag.appendChild(document.createTextNode(css));
371
+ }
372
+ }
373
+ function insertStyleTag(tag) {
374
+ var head = document.head || document.getElementsByTagName('head')[0];
375
+ head.appendChild(tag);
376
+ }
377
+ var stylesheetSingleton = function () {
378
+ var counter = 0;
379
+ var stylesheet = null;
380
+ return {
381
+ add: function (style) {
382
+ if (counter == 0) {
383
+ if ((stylesheet = makeStyleTag())) {
384
+ injectStyles(stylesheet, style);
385
+ insertStyleTag(stylesheet);
386
+ }
387
+ }
388
+ counter++;
389
+ },
390
+ remove: function () {
391
+ counter--;
392
+ if (!counter && stylesheet) {
393
+ stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
394
+ stylesheet = null;
395
+ }
396
+ },
397
+ };
398
+ };
399
+
400
+ /**
401
+ * creates a hook to control style singleton
402
+ * @see {@link styleSingleton} for a safer component version
403
+ * @example
404
+ * ```tsx
405
+ * const useStyle = styleHookSingleton();
406
+ * ///
407
+ * useStyle('body { overflow: hidden}');
408
+ */
409
+ var styleHookSingleton = function () {
410
+ var sheet = stylesheetSingleton();
411
+ return function (styles, isDynamic) {
412
+ React__namespace.useEffect(function () {
413
+ sheet.add(styles);
414
+ return function () {
415
+ sheet.remove();
416
+ };
417
+ }, [styles && isDynamic]);
418
+ };
419
+ };
420
+
421
+ /**
422
+ * create a Component to add styles on demand
423
+ * - styles are added when first instance is mounted
424
+ * - styles are removed when the last instance is unmounted
425
+ * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
426
+ */
427
+ var styleSingleton = function () {
428
+ var useStyle = styleHookSingleton();
429
+ var Sheet = function (_a) {
430
+ var styles = _a.styles, dynamic = _a.dynamic;
431
+ useStyle(styles, dynamic);
432
+ return null;
433
+ };
434
+ return Sheet;
435
+ };
436
+
437
+ var zeroGap = {
438
+ left: 0,
439
+ top: 0,
440
+ right: 0,
441
+ gap: 0,
442
+ };
443
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
444
+ var getOffset = function (gapMode) {
445
+ var cs = window.getComputedStyle(document.body);
446
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
447
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
448
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
449
+ return [parse(left), parse(top), parse(right)];
450
+ };
451
+ var getGapWidth = function (gapMode) {
452
+ if (gapMode === void 0) { gapMode = 'margin'; }
453
+ if (typeof window === 'undefined') {
454
+ return zeroGap;
455
+ }
456
+ var offsets = getOffset(gapMode);
457
+ var documentWidth = document.documentElement.clientWidth;
458
+ var windowWidth = window.innerWidth;
459
+ return {
460
+ left: offsets[0],
461
+ top: offsets[1],
462
+ right: offsets[2],
463
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
464
+ };
465
+ };
466
+
467
+ var Style = styleSingleton();
468
+ // important tip - once we measure scrollBar width and remove them
469
+ // we could not repeat this operation
470
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
471
+ var getStyles = function (_a, allowRelative, gapMode, important) {
472
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
473
+ if (gapMode === void 0) { gapMode = 'margin'; }
474
+ 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([
475
+ allowRelative && "position: relative ".concat(important, ";"),
476
+ gapMode === 'margin' &&
477
+ "\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 "),
478
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
479
+ ]
480
+ .filter(Boolean)
481
+ .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");
482
+ };
483
+ /**
484
+ * Removes page scrollbar and blocks page scroll when mounted
485
+ */
486
+ var RemoveScrollBar = function (props) {
487
+ var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? 'margin' : _a;
488
+ /*
489
+ gap will be measured on every component mount
490
+ however it will be used only by the "first" invocation
491
+ due to singleton nature of <Style
492
+ */
493
+ var gap = React__namespace.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
494
+ return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
495
+ };
496
+
497
+ exports.RemoveScrollBar = RemoveScrollBar;
498
+ exports.createSidecarMedium = createSidecarMedium;
499
+ exports.exportSidecar = exportSidecar;
500
+ exports.fullWidthClassName = fullWidthClassName;
501
+ exports.hideOthers = hideOthers;
502
+ exports.styleSingleton = styleSingleton;
503
+ exports.useMergeRefs = useMergeRefs;
504
+ exports.useThemeElement = useThemeElement;
505
+ exports.zeroRightClassName = zeroRightClassName;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3
+ var _commonjsHelpers = require('./_commonjsHelpers-56412ec5.js');
4
4
 
5
5
  /**
6
6
  * Checks if `value` is the
@@ -37,7 +37,7 @@ var isObject_1 = isObject$2;
37
37
 
38
38
  /** Detect free variable `global` from Node.js. */
39
39
 
40
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
40
+ var freeGlobal$1 = typeof _commonjsHelpers.commonjsGlobal == 'object' && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
41
41
 
42
42
  var _freeGlobal = freeGlobal$1;
43
43