@arc-ui/components 12.0.0-beta7 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1194) hide show
  1. package/lib/Alert/Alert.cjs +77 -0
  2. package/lib/Alert/Alert.mjs +75 -0
  3. package/lib/Alert/styles.css +1 -0
  4. package/lib/Align/Align.cjs +29 -0
  5. package/lib/Align/Align.mjs +27 -0
  6. package/lib/Align/styles.css +1 -0
  7. package/lib/AppButton/AppButton.cjs +72 -0
  8. package/lib/AppButton/AppButton.mjs +70 -0
  9. package/lib/AppButton/styles.css +1 -0
  10. package/lib/Avatar/Avatar.cjs +21 -0
  11. package/lib/Avatar/Avatar.mjs +15 -0
  12. package/lib/Avatar/styles.css +1 -0
  13. package/lib/AvatarGroup/AvatarGroup.cjs +37 -0
  14. package/lib/AvatarGroup/AvatarGroup.mjs +35 -0
  15. package/lib/AvatarGroup/styles.css +1 -0
  16. package/lib/Badge/Badge.cjs +13 -0
  17. package/lib/Badge/Badge.mjs +7 -0
  18. package/lib/Badge/styles.css +1 -0
  19. package/lib/Banner/Banner.cjs +26 -0
  20. package/lib/Banner/Banner.mjs +24 -0
  21. package/lib/Box/Box.cjs +13 -0
  22. package/lib/Box/Box.mjs +7 -0
  23. package/lib/Box/styles.css +1 -0
  24. package/lib/BrandLogo/BrandLogo.cjs +16 -0
  25. package/lib/BrandLogo/BrandLogo.mjs +9 -0
  26. package/lib/BrandLogo/styles.css +1 -0
  27. package/lib/Breadcrumbs/Breadcrumbs.cjs +101 -0
  28. package/lib/Breadcrumbs/Breadcrumbs.mjs +97 -0
  29. package/lib/Breadcrumbs/styles.css +1 -0
  30. package/lib/Button/Button.cjs +17 -0
  31. package/lib/Button/Button.mjs +11 -0
  32. package/lib/Button/styles.css +1 -0
  33. package/lib/ButtonGroup/ButtonGroup.cjs +38 -0
  34. package/lib/ButtonGroup/ButtonGroup.mjs +36 -0
  35. package/lib/ButtonGroup/styles.css +1 -0
  36. package/lib/ButtonV2/ButtonV2.cjs +17 -0
  37. package/lib/ButtonV2/ButtonV2.mjs +11 -0
  38. package/lib/ButtonV2/styles.css +1 -0
  39. package/lib/Calendar/Calendar.cjs +24 -0
  40. package/lib/Calendar/Calendar.mjs +18 -0
  41. package/lib/Calendar/styles.css +1 -0
  42. package/lib/CardFooter/CardFooter.cjs +16 -0
  43. package/lib/CardFooter/CardFooter.mjs +10 -0
  44. package/lib/CardFooter/styles.css +1 -0
  45. package/lib/CardHeading/CardHeading.cjs +17 -0
  46. package/lib/CardHeading/CardHeading.mjs +11 -0
  47. package/lib/CardHeading/styles.css +1 -0
  48. package/lib/Carousel/Carousel.cjs +2250 -0
  49. package/lib/Carousel/Carousel.mjs +2248 -0
  50. package/lib/Carousel/styles.css +1 -0
  51. package/lib/Checkbox/Checkbox.cjs +60 -0
  52. package/lib/Checkbox/Checkbox.mjs +58 -0
  53. package/lib/Checkbox/styles.css +1 -0
  54. package/lib/CheckboxIcon/CheckboxIcon.cjs +19 -0
  55. package/lib/CheckboxIcon/CheckboxIcon.mjs +13 -0
  56. package/lib/CheckboxIcon/styles.css +1 -0
  57. package/lib/ClientSideVisible/ClientSideVisible.cjs +8 -0
  58. package/lib/ClientSideVisible/ClientSideVisible.mjs +2 -0
  59. package/lib/Columns/Columns.cjs +49 -0
  60. package/lib/Columns/Columns.mjs +46 -0
  61. package/lib/Columns/styles.css +1 -0
  62. package/lib/ComboBox/ComboBox.cjs +296 -0
  63. package/lib/ComboBox/ComboBox.mjs +294 -0
  64. package/lib/ComboBox/styles.css +1 -0
  65. package/lib/ConditionalWrapper/ConditionalWrapper.cjs +8 -0
  66. package/lib/ConditionalWrapper/ConditionalWrapper.mjs +2 -0
  67. package/lib/ContentSwitcher/ContentSwitcher.cjs +25 -0
  68. package/lib/ContentSwitcher/ContentSwitcher.mjs +16 -0
  69. package/lib/ContentSwitcher/styles.css +1 -0
  70. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +26 -0
  71. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +19 -0
  72. package/lib/ContentSwitcherDropdown/styles.css +1 -0
  73. package/lib/DatePicker/DatePicker.cjs +539 -0
  74. package/lib/DatePicker/DatePicker.mjs +531 -0
  75. package/lib/DatePicker/styles.css +1 -0
  76. package/lib/Disclosure/Disclosure.cjs +37 -0
  77. package/lib/Disclosure/Disclosure.mjs +35 -0
  78. package/lib/Disclosure/styles.css +1 -0
  79. package/lib/DisclosureMini/DisclosureMini.cjs +17 -0
  80. package/lib/DisclosureMini/DisclosureMini.mjs +11 -0
  81. package/lib/DisclosureMini/styles.css +1 -0
  82. package/lib/Download/Download.cjs +18 -0
  83. package/lib/Download/Download.mjs +12 -0
  84. package/lib/Download/styles.css +1 -0
  85. package/lib/Drawer/Drawer.cjs +218 -0
  86. package/lib/Drawer/Drawer.mjs +213 -0
  87. package/lib/Drawer/styles.css +1 -0
  88. package/lib/Elevation/Elevation.cjs +25 -0
  89. package/lib/Elevation/Elevation.mjs +23 -0
  90. package/lib/Elevation/styles.css +1 -0
  91. package/lib/Filter/Filter.cjs +91 -0
  92. package/lib/Filter/Filter.mjs +85 -0
  93. package/lib/Filter/styles.css +1 -0
  94. package/lib/FilterControl/FilterControl.cjs +14 -0
  95. package/lib/FilterControl/FilterControl.mjs +8 -0
  96. package/lib/FormControl/FormControl.cjs +20 -0
  97. package/lib/FormControl/FormControl.mjs +13 -0
  98. package/lib/FormControl/styles.css +1 -0
  99. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +36 -0
  100. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +34 -0
  101. package/lib/GhostedHeroBanner/styles.css +1 -0
  102. package/lib/GradientPageBackground/GradientPageBackground.cjs +159 -0
  103. package/lib/GradientPageBackground/GradientPageBackground.mjs +139 -0
  104. package/lib/GradientPageBackground/styles.css +1 -0
  105. package/lib/Grid/Grid.cjs +15 -0
  106. package/lib/Grid/Grid.mjs +7 -0
  107. package/lib/Grid/styles.css +1 -0
  108. package/lib/Group/Group.cjs +42 -0
  109. package/lib/Group/Group.mjs +39 -0
  110. package/lib/Group/styles.css +1 -0
  111. package/lib/Heading/Heading.cjs +16 -0
  112. package/lib/Heading/Heading.mjs +10 -0
  113. package/lib/Heading/styles.css +1 -0
  114. package/lib/HeroBanner/HeroBanner.cjs +31 -0
  115. package/lib/HeroBanner/HeroBanner.mjs +29 -0
  116. package/lib/HeroBanner/styles.css +1 -0
  117. package/lib/HeroButton/HeroButton.cjs +88 -0
  118. package/lib/HeroButton/HeroButton.mjs +86 -0
  119. package/lib/HeroButton/styles.css +1 -0
  120. package/lib/Hidden/Hidden.cjs +11 -0
  121. package/lib/Hidden/Hidden.mjs +5 -0
  122. package/lib/Hidden/styles.css +1 -0
  123. package/lib/HorizontalCard/HorizontalCard.cjs +40 -0
  124. package/lib/HorizontalCard/HorizontalCard.mjs +38 -0
  125. package/lib/HorizontalCard/styles.css +1 -0
  126. package/lib/Icon/Icon.cjs +16 -0
  127. package/lib/Icon/Icon.mjs +9 -0
  128. package/lib/Icon/styles.css +1 -0
  129. package/lib/Image/Image.cjs +18 -0
  130. package/lib/Image/Image.mjs +8 -0
  131. package/lib/Image/styles.css +1 -0
  132. package/lib/ImpactCard/ImpactCard.cjs +43 -0
  133. package/lib/ImpactCard/ImpactCard.mjs +41 -0
  134. package/lib/ImpactCard/styles.css +1 -0
  135. package/lib/InformationCard/InformationCard.cjs +91 -0
  136. package/lib/InformationCard/InformationCard.mjs +89 -0
  137. package/lib/InformationCard/styles.css +1 -0
  138. package/lib/Link/Link.cjs +17 -0
  139. package/lib/Link/Link.mjs +11 -0
  140. package/lib/Link/styles.css +1 -0
  141. package/lib/Markup/Markup.cjs +24 -0
  142. package/lib/Markup/Markup.mjs +22 -0
  143. package/lib/Markup/styles.css +1 -0
  144. package/lib/MediaCard/MediaCard.cjs +64 -0
  145. package/lib/MediaCard/MediaCard.mjs +62 -0
  146. package/lib/MediaCard/styles.css +1 -0
  147. package/lib/Menu/Menu.cjs +1688 -0
  148. package/lib/Menu/Menu.mjs +1651 -0
  149. package/lib/Menu/styles.css +1 -0
  150. package/lib/Modal/Modal.cjs +93 -0
  151. package/lib/Modal/Modal.mjs +91 -0
  152. package/lib/Modal/styles.css +1 -0
  153. package/lib/NavigationHeader/NavigationHeader.cjs +1423 -0
  154. package/lib/NavigationHeader/NavigationHeader.mjs +1418 -0
  155. package/lib/NavigationHeader/styles.css +1 -0
  156. package/lib/Pagination/Pagination.cjs +79 -0
  157. package/lib/Pagination/Pagination.mjs +77 -0
  158. package/lib/Pagination/styles.css +1 -0
  159. package/lib/PaginationSimple/PaginationSimple.cjs +74 -0
  160. package/lib/PaginationSimple/PaginationSimple.mjs +72 -0
  161. package/lib/PaginationSimple/styles.css +1 -0
  162. package/lib/Popover/Popover.cjs +22 -0
  163. package/lib/Popover/Popover.mjs +16 -0
  164. package/lib/Popover/styles.css +1 -0
  165. package/lib/Poster/Poster.cjs +44 -0
  166. package/lib/Poster/Poster.mjs +40 -0
  167. package/lib/Poster/styles.css +1 -0
  168. package/lib/ProgressBar/ProgressBar.cjs +68 -0
  169. package/lib/ProgressBar/ProgressBar.mjs +66 -0
  170. package/lib/ProgressBar/styles.css +1 -0
  171. package/lib/ProgressStepper/ProgressStepper.cjs +19 -0
  172. package/lib/ProgressStepper/ProgressStepper.mjs +12 -0
  173. package/lib/ProgressStepper/styles.css +1 -0
  174. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.cjs +107 -0
  175. package/lib/ProgressStepperOverflow/ProgressStepperOverflow.mjs +104 -0
  176. package/lib/ProgressStepperOverflow/styles.css +1 -0
  177. package/lib/RadioCardGroup/RadioCardGroup.cjs +86 -0
  178. package/lib/RadioCardGroup/RadioCardGroup.mjs +83 -0
  179. package/lib/RadioCardGroup/styles.css +1 -0
  180. package/lib/RadioGroup/RadioGroup.cjs +81 -0
  181. package/lib/RadioGroup/RadioGroup.mjs +77 -0
  182. package/lib/RadioGroup/styles.css +1 -0
  183. package/lib/Rule/Rule.cjs +14 -0
  184. package/lib/Rule/Rule.mjs +8 -0
  185. package/lib/Rule/styles.css +1 -0
  186. package/lib/ScrollToTop/ScrollToTop.cjs +51 -0
  187. package/lib/ScrollToTop/ScrollToTop.mjs +49 -0
  188. package/lib/ScrollToTop/styles.css +1 -0
  189. package/lib/Section/Section.cjs +12 -0
  190. package/lib/Section/Section.mjs +6 -0
  191. package/lib/Section/styles.css +1 -0
  192. package/lib/Select/Select.cjs +88 -0
  193. package/lib/Select/Select.mjs +86 -0
  194. package/lib/Select/styles.css +1 -0
  195. package/lib/SemanticHeading/SemanticHeading.cjs +10 -0
  196. package/lib/SemanticHeading/SemanticHeading.mjs +4 -0
  197. package/lib/SemanticHeading/styles.css +1 -0
  198. package/lib/SiteFooter/SiteFooter.cjs +60 -0
  199. package/lib/SiteFooter/SiteFooter.mjs +56 -0
  200. package/lib/SiteFooter/styles.css +1 -0
  201. package/lib/SiteFooterV2/SiteFooterV2.cjs +106 -0
  202. package/lib/SiteFooterV2/SiteFooterV2.mjs +100 -0
  203. package/lib/SiteFooterV2/styles.css +1 -0
  204. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +604 -0
  205. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +594 -0
  206. package/lib/SiteHeaderV2/styles.css +1 -0
  207. package/lib/Skeleton/Skeleton.cjs +21 -0
  208. package/lib/Skeleton/Skeleton.mjs +19 -0
  209. package/lib/Skeleton/styles.css +1 -0
  210. package/lib/SkipLink/SkipLink.cjs +19 -0
  211. package/lib/SkipLink/SkipLink.mjs +16 -0
  212. package/lib/SkipLink/styles.css +1 -0
  213. package/lib/Spinner/Spinner.cjs +11 -0
  214. package/lib/Spinner/Spinner.mjs +5 -0
  215. package/lib/Spinner/styles.css +1 -0
  216. package/lib/Surface/Surface.cjs +16 -0
  217. package/lib/Surface/Surface.mjs +7 -0
  218. package/lib/Surface/styles.css +1 -0
  219. package/lib/Switch/Switch.cjs +237 -0
  220. package/lib/Switch/Switch.mjs +235 -0
  221. package/lib/Switch/styles.css +1 -0
  222. package/lib/TabbedBanner/TabbedBanner.cjs +65 -0
  223. package/lib/TabbedBanner/TabbedBanner.mjs +63 -0
  224. package/lib/TabbedBanner/styles.css +1 -0
  225. package/lib/Tabs/Tabs.cjs +93 -0
  226. package/lib/Tabs/Tabs.mjs +88 -0
  227. package/lib/Tabs/styles.css +1 -0
  228. package/lib/Tag/Tag.cjs +62 -0
  229. package/lib/Tag/Tag.mjs +60 -0
  230. package/lib/Tag/styles.css +1 -0
  231. package/lib/TemplateBanner/TemplateBanner.cjs +23 -0
  232. package/lib/TemplateBanner/TemplateBanner.mjs +17 -0
  233. package/lib/TemplateBanner/styles.css +1 -0
  234. package/lib/Text/Text.cjs +15 -0
  235. package/lib/Text/Text.mjs +9 -0
  236. package/lib/Text/styles.css +1 -0
  237. package/lib/TextArea/TextArea.cjs +70 -0
  238. package/lib/TextArea/TextArea.mjs +68 -0
  239. package/lib/TextArea/styles.css +1 -0
  240. package/lib/TextInput/TextInput.cjs +28 -0
  241. package/lib/TextInput/TextInput.mjs +21 -0
  242. package/lib/TextInput/styles.css +1 -0
  243. package/lib/Theme/Theme.cjs +76 -0
  244. package/lib/Theme/Theme.mjs +73 -0
  245. package/lib/Theme/styles.css +1 -0
  246. package/lib/ThemeIcon/ThemeIcon.cjs +15 -0
  247. package/lib/ThemeIcon/ThemeIcon.mjs +9 -0
  248. package/lib/ThemeIcon/styles.css +1 -0
  249. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +31 -0
  250. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +29 -0
  251. package/lib/ThumbnailSignpost/styles.css +1 -0
  252. package/lib/Toast/Toast.cjs +1003 -0
  253. package/lib/Toast/Toast.mjs +1000 -0
  254. package/lib/Toast/styles.css +1 -0
  255. package/lib/Tooltip/Tooltip.cjs +21 -0
  256. package/lib/Tooltip/Tooltip.mjs +15 -0
  257. package/lib/Tooltip/styles.css +1 -0
  258. package/lib/Truncate/Truncate.cjs +14 -0
  259. package/lib/Truncate/Truncate.mjs +12 -0
  260. package/lib/Truncate/styles.css +1 -0
  261. package/lib/TypographyCard/TypographyCard.cjs +40 -0
  262. package/lib/TypographyCard/TypographyCard.mjs +38 -0
  263. package/lib/TypographyCard/styles.css +1 -0
  264. package/lib/UniversalHeader/UniversalHeader.cjs +31 -0
  265. package/lib/UniversalHeader/UniversalHeader.mjs +28 -0
  266. package/lib/UniversalHeader/styles.css +1 -0
  267. package/lib/VerticalSpace/VerticalSpace.cjs +11 -0
  268. package/lib/VerticalSpace/VerticalSpace.mjs +5 -0
  269. package/lib/VerticalSpace/styles.css +1 -0
  270. package/lib/VideoPlayer/VideoPlayer.cjs +3212 -0
  271. package/lib/VideoPlayer/VideoPlayer.mjs +3210 -0
  272. package/lib/VideoPlayer/styles.css +1 -0
  273. package/lib/Visible/Visible.cjs +11 -0
  274. package/lib/Visible/Visible.mjs +5 -0
  275. package/lib/Visible/styles.css +1 -0
  276. package/lib/VisuallyHidden/VisuallyHidden.cjs +10 -0
  277. package/lib/VisuallyHidden/VisuallyHidden.mjs +4 -0
  278. package/lib/VisuallyHidden/styles.css +1 -0
  279. package/lib/_shared/cjs/Avatar-CCKArHo9.cjs +48 -0
  280. package/lib/_shared/cjs/Badge-DX5PjtiZ.cjs +15 -0
  281. package/lib/_shared/cjs/BannerImage-CYHLvtfL.cjs +13 -0
  282. package/lib/_shared/cjs/Box-Va2g7Gdp.cjs +26 -0
  283. package/lib/_shared/cjs/BrandLogo-coNfTwRv.cjs +30 -0
  284. package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
  285. package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
  286. package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
  287. package/lib/_shared/cjs/Button-BN4jUsg5.cjs +51 -0
  288. package/lib/_shared/cjs/ButtonV2-bUu36xW8.cjs +61 -0
  289. package/lib/_shared/cjs/Calendar-D_jZ0cgf.cjs +1898 -0
  290. package/lib/_shared/cjs/CardFooter-PoifazZ1.cjs +32 -0
  291. package/lib/_shared/cjs/CardHeading-lGy1u6eD.cjs +14 -0
  292. package/lib/_shared/cjs/CheckboxIcon-BTkdXfpp.cjs +53 -0
  293. package/lib/_shared/cjs/ClientSideVisible-BhW-T6kb.cjs +16 -0
  294. package/lib/_shared/cjs/Combination-6m6aOXZq.cjs +1466 -0
  295. package/lib/_shared/cjs/ConditionalWrapper-Cl6kgjCL.cjs +11 -0
  296. package/lib/_shared/cjs/ContentSwitcherDropdown-BLXyhXVS.cjs +87 -0
  297. package/lib/_shared/cjs/ContentSwitcherList-DgychllS.cjs +111 -0
  298. package/lib/_shared/cjs/DisclosureMini-Cy7hNc90.cjs +38 -0
  299. package/lib/_shared/cjs/Download-Chs-DEGO.cjs +43 -0
  300. package/lib/_shared/cjs/FilterControl-BIwtgTjP.cjs +27 -0
  301. package/lib/_shared/cjs/FormControl-TtboqHRx.cjs +117 -0
  302. package/lib/_shared/cjs/GridRow-l_SePUqV.cjs +45 -0
  303. package/lib/_shared/cjs/Heading-BYBmZkmS.cjs +33 -0
  304. package/lib/_shared/cjs/Hidden-BpWHucG2.cjs +21 -0
  305. package/lib/_shared/cjs/Icon-Dk2XHa7V.cjs +40 -0
  306. package/lib/_shared/cjs/Image-MS1rBzbW.cjs +50 -0
  307. package/lib/_shared/cjs/Link-BZsSf3Nn.cjs +51 -0
  308. package/lib/_shared/cjs/Popover-CYcqjefw.cjs +35 -0
  309. package/lib/_shared/cjs/Preview-BYuMaIh7.cjs +175 -0
  310. package/lib/_shared/cjs/ProgressStepper-mTgKZYEl.cjs +210 -0
  311. package/lib/_shared/cjs/Rule-jmvOpci7.cjs +24 -0
  312. package/lib/_shared/cjs/Section-BorWFfNe.cjs +22 -0
  313. package/lib/_shared/cjs/SemanticHeading-C1-fyc3V.cjs +16 -0
  314. package/lib/_shared/cjs/Spinner-427lpnHI.cjs +17 -0
  315. package/lib/_shared/cjs/Surface-DIU5ciDT.cjs +56 -0
  316. package/lib/_shared/cjs/TemplateBanner-CzDAL0lq.cjs +84 -0
  317. package/lib/_shared/cjs/Text-jwsn80lQ.cjs +30 -0
  318. package/lib/_shared/cjs/TextInput-BHzuoI7E.cjs +163 -0
  319. package/lib/_shared/cjs/ThemeIcon-CwYN77IF.cjs +25 -0
  320. package/lib/_shared/cjs/Tooltip-CEb7YEP2.cjs +1379 -0
  321. package/lib/_shared/cjs/VerticalSpace-DLQUYsvc.cjs +27 -0
  322. package/lib/_shared/cjs/Visible-Ca2H20zc.cjs +21 -0
  323. package/lib/_shared/cjs/VisuallyHidden-CQg3cOVK.cjs +15 -0
  324. package/lib/_shared/cjs/arc-breakpoints-DFPoWNR4.cjs +33 -0
  325. package/lib/_shared/cjs/debounce-uPMetQ6J.cjs +412 -0
  326. package/lib/_shared/cjs/filter-attrs-D19P2s1V.cjs +15 -0
  327. package/lib/_shared/cjs/index-B11wQrRa.cjs +2208 -0
  328. package/lib/_shared/cjs/index-BCu-VH8y.cjs +416 -0
  329. package/lib/_shared/cjs/index-BGGFOAAx.cjs +152 -0
  330. package/lib/_shared/cjs/index-BLRjGROQ.cjs +2197 -0
  331. package/lib/_shared/cjs/index-BWfgSvRQ.cjs +313 -0
  332. package/lib/_shared/cjs/index-CDVpHNP8.cjs +1204 -0
  333. package/lib/_shared/cjs/index-CTlXMLug.cjs +106 -0
  334. package/lib/_shared/cjs/index-CklPiHsS.cjs +97 -0
  335. package/lib/_shared/cjs/index-CztwwwKE.cjs +375 -0
  336. package/lib/_shared/cjs/index-D9onmVh5.cjs +333 -0
  337. package/lib/_shared/cjs/index-DR8Rkav9.cjs +130 -0
  338. package/lib/_shared/cjs/index-DXNM3D1d.cjs +196 -0
  339. package/lib/_shared/cjs/index-DmvtEa22.cjs +219 -0
  340. package/lib/_shared/cjs/index-KrMgv4q_.cjs +318 -0
  341. package/lib/_shared/cjs/index.es-B2ZfX2D7.cjs +19 -0
  342. package/lib/_shared/cjs/isSymbol-BGrHFUbV.cjs +255 -0
  343. package/lib/_shared/cjs/suffix-modifier-DLUGR-yG.cjs +10 -0
  344. package/lib/_shared/cjs/tslib.es6-CCZ3TN_7.cjs +59 -0
  345. package/lib/_shared/cjs/use-media-query-BJV2IbHi.cjs +58 -0
  346. package/lib/_shared/esm/Avatar-BgK-wY7Z.mjs +46 -0
  347. package/lib/_shared/esm/Badge-C_3PBa0p.mjs +13 -0
  348. package/lib/_shared/esm/BannerImage-BdPAHkVD.mjs +11 -0
  349. package/lib/_shared/esm/Box-C8iK8x5c.mjs +24 -0
  350. package/lib/_shared/esm/BrandLogo-Dc-d_8ZN.mjs +27 -0
  351. package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
  352. package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
  353. package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
  354. package/lib/_shared/esm/Button-DTiOFT9M.mjs +49 -0
  355. package/lib/_shared/esm/ButtonV2-ByW5P8Hq.mjs +59 -0
  356. package/lib/_shared/esm/Calendar-wG6UVDgO.mjs +1893 -0
  357. package/lib/_shared/esm/CardFooter-DX3Ym8M6.mjs +30 -0
  358. package/lib/_shared/esm/CardHeading-CfPEEmBO.mjs +12 -0
  359. package/lib/_shared/esm/CheckboxIcon-BcVQe6mC.mjs +51 -0
  360. package/lib/_shared/esm/ClientSideVisible-D_iBE-3U.mjs +14 -0
  361. package/lib/_shared/esm/Combination-BQ4XBtF-.mjs +1435 -0
  362. package/lib/_shared/esm/ConditionalWrapper-CbEvXHTj.mjs +9 -0
  363. package/lib/_shared/esm/ContentSwitcherDropdown-ckPG4pry.mjs +84 -0
  364. package/lib/_shared/esm/ContentSwitcherList-CWZcMblg.mjs +106 -0
  365. package/lib/_shared/esm/DisclosureMini-DeQZyvDN.mjs +36 -0
  366. package/lib/_shared/esm/Download-CsJLNRAD.mjs +41 -0
  367. package/lib/_shared/esm/FilterControl-22MNdP1r.mjs +25 -0
  368. package/lib/_shared/esm/FormControl-DopDD_nC.mjs +113 -0
  369. package/lib/_shared/esm/GridRow-vjacXnq0.mjs +41 -0
  370. package/lib/_shared/esm/Heading-Da-o0d5x.mjs +31 -0
  371. package/lib/_shared/esm/Hidden-ByDYDWcI.mjs +19 -0
  372. package/lib/_shared/esm/Icon-CCUbr_AO.mjs +37 -0
  373. package/lib/_shared/esm/Image-DLYifxlu.mjs +44 -0
  374. package/lib/_shared/esm/Link-CoHABYiD.mjs +49 -0
  375. package/lib/_shared/esm/Popover-BHCEpLSa.mjs +33 -0
  376. package/lib/_shared/esm/Preview-AHYIJh9S.mjs +173 -0
  377. package/lib/_shared/esm/ProgressStepper-DxZrJR0q.mjs +207 -0
  378. package/lib/_shared/esm/Rule-I1w3EaZi.mjs +22 -0
  379. package/lib/_shared/esm/Section-COc1l3mp.mjs +20 -0
  380. package/lib/_shared/esm/SemanticHeading-DpEBq7pG.mjs +14 -0
  381. package/lib/_shared/esm/Spinner-DvngCIwx.mjs +15 -0
  382. package/lib/_shared/esm/Surface-C69KVzkY.mjs +51 -0
  383. package/lib/_shared/esm/TemplateBanner-CZSTdma0.mjs +82 -0
  384. package/lib/_shared/esm/Text-BAzOkkzN.mjs +28 -0
  385. package/lib/_shared/esm/TextInput-CZaNXVHl.mjs +159 -0
  386. package/lib/_shared/esm/ThemeIcon-B0n6cKRb.mjs +23 -0
  387. package/lib/_shared/esm/Tooltip-BpSzN3Tx.mjs +1359 -0
  388. package/lib/_shared/esm/VerticalSpace-BLWB02I7.mjs +25 -0
  389. package/lib/_shared/esm/Visible-C4eEyTBM.mjs +19 -0
  390. package/lib/_shared/esm/VisuallyHidden-aSQ4RA1o.mjs +13 -0
  391. package/lib/_shared/esm/arc-breakpoints-TEKN0W5t.mjs +26 -0
  392. package/lib/_shared/esm/debounce-D_Nx5go6.mjs +410 -0
  393. package/lib/_shared/esm/filter-attrs-v_SweZXP.mjs +13 -0
  394. package/lib/_shared/esm/index-5C0-U8cc.mjs +101 -0
  395. package/lib/_shared/esm/index-6HtUz28p.mjs +216 -0
  396. package/lib/_shared/esm/index-BFKdmv_g.mjs +293 -0
  397. package/lib/_shared/esm/index-BWkI4Dwz.mjs +393 -0
  398. package/lib/_shared/esm/index-Bz2JQq34.mjs +169 -0
  399. package/lib/_shared/esm/index-CN4hP3Wu.mjs +307 -0
  400. package/lib/_shared/esm/index-CWHcEz3_.mjs +2178 -0
  401. package/lib/_shared/esm/index-Cr6KeQLU.mjs +2188 -0
  402. package/lib/_shared/esm/index-DXHprNQ6.mjs +364 -0
  403. package/lib/_shared/esm/index-Do2wfP-X.mjs +287 -0
  404. package/lib/_shared/esm/index-GCEHSsY8.mjs +131 -0
  405. package/lib/_shared/esm/index-Spae4j7j.mjs +128 -0
  406. package/lib/_shared/esm/index-u47CK8Y0.mjs +76 -0
  407. package/lib/_shared/esm/index-vnVJe9rH.mjs +1171 -0
  408. package/lib/_shared/esm/index.es-Co1d96HB.mjs +12 -0
  409. package/lib/_shared/esm/isSymbol-DgWNE2Tm.mjs +251 -0
  410. package/lib/_shared/esm/suffix-modifier-B_pO0UkF.mjs +8 -0
  411. package/lib/_shared/esm/tslib.es6-w7hdJ3oZ.mjs +56 -0
  412. package/lib/_shared/esm/use-media-query-l6Sou0dd.mjs +56 -0
  413. package/lib/index.cjs +28308 -0
  414. package/lib/index.cjs.map +1 -0
  415. package/lib/index.d.cts +5278 -0
  416. package/lib/index.d.mts +5278 -0
  417. package/lib/index.js.map +1 -0
  418. package/lib/index.mjs +28117 -0
  419. package/lib/index.mjs.map +1 -0
  420. package/lib/styles.css +3 -0
  421. package/lib/use-media-query/use-media-query.cjs +8 -0
  422. package/lib/use-media-query/use-media-query.mjs +2 -0
  423. package/package.json +105 -83
  424. package/dist/Alert/Alert.cjs.js +0 -51
  425. package/dist/Alert/Alert.esm.js +0 -43
  426. package/dist/Alert/package.json +0 -7
  427. package/dist/Alert/styles.css +0 -1
  428. package/dist/Align/Align.cjs.js +0 -32
  429. package/dist/Align/Align.esm.js +0 -24
  430. package/dist/Align/package.json +0 -7
  431. package/dist/Align/styles.css +0 -1
  432. package/dist/AppButton/AppButton.cjs.js +0 -74
  433. package/dist/AppButton/AppButton.esm.js +0 -66
  434. package/dist/AppButton/package.json +0 -7
  435. package/dist/AppButton/styles.css +0 -1
  436. package/dist/Avatar/Avatar.cjs.js +0 -17
  437. package/dist/Avatar/Avatar.esm.js +0 -9
  438. package/dist/Avatar/package.json +0 -7
  439. package/dist/Avatar/styles.css +0 -1
  440. package/dist/AvatarGroup/AvatarGroup.cjs.js +0 -37
  441. package/dist/AvatarGroup/AvatarGroup.esm.js +0 -29
  442. package/dist/AvatarGroup/package.json +0 -7
  443. package/dist/AvatarGroup/styles.css +0 -1
  444. package/dist/Badge/Badge.cjs.js +0 -12
  445. package/dist/Badge/Badge.esm.js +0 -4
  446. package/dist/Badge/package.json +0 -7
  447. package/dist/Badge/styles.css +0 -1
  448. package/dist/Box/Box.cjs.js +0 -13
  449. package/dist/Box/Box.esm.js +0 -5
  450. package/dist/Box/package.json +0 -7
  451. package/dist/Box/styles.css +0 -1
  452. package/dist/BrandLogo/BrandLogo.cjs.js +0 -13
  453. package/dist/BrandLogo/BrandLogo.esm.js +0 -5
  454. package/dist/BrandLogo/package.json +0 -7
  455. package/dist/BrandLogo/styles.css +0 -1
  456. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +0 -17
  457. package/dist/Breadcrumbs/Breadcrumbs.esm.js +0 -9
  458. package/dist/Breadcrumbs/package.json +0 -7
  459. package/dist/Breadcrumbs/styles.css +0 -1
  460. package/dist/Button/Button.cjs.js +0 -15
  461. package/dist/Button/Button.esm.js +0 -7
  462. package/dist/Button/package.json +0 -7
  463. package/dist/Button/styles.css +0 -1
  464. package/dist/ButtonV2/ButtonV2.cjs.js +0 -15
  465. package/dist/ButtonV2/ButtonV2.esm.js +0 -7
  466. package/dist/ButtonV2/package.json +0 -7
  467. package/dist/ButtonV2/styles.css +0 -1
  468. package/dist/Calendar/Calendar.cjs.js +0 -21
  469. package/dist/Calendar/Calendar.esm.js +0 -13
  470. package/dist/Calendar/package.json +0 -7
  471. package/dist/Calendar/styles.css +0 -1
  472. package/dist/CardFooter/CardFooter.cjs.js +0 -17
  473. package/dist/CardFooter/CardFooter.esm.js +0 -9
  474. package/dist/CardFooter/package.json +0 -7
  475. package/dist/CardFooter/styles.css +0 -1
  476. package/dist/CardHeading/CardHeading.cjs.js +0 -14
  477. package/dist/CardHeading/CardHeading.esm.js +0 -6
  478. package/dist/CardHeading/package.json +0 -7
  479. package/dist/CardHeading/styles.css +0 -1
  480. package/dist/Carousel/Carousel.cjs.js +0 -457
  481. package/dist/Carousel/Carousel.esm.js +0 -431
  482. package/dist/Carousel/package.json +0 -7
  483. package/dist/Carousel/styles.css +0 -1
  484. package/dist/Checkbox/Checkbox.cjs.js +0 -18
  485. package/dist/Checkbox/Checkbox.esm.js +0 -10
  486. package/dist/Checkbox/package.json +0 -7
  487. package/dist/Checkbox/styles.css +0 -1
  488. package/dist/Columns/Columns.cjs.js +0 -12
  489. package/dist/Columns/Columns.esm.js +0 -4
  490. package/dist/Columns/package.json +0 -7
  491. package/dist/Columns/styles.css +0 -1
  492. package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +0 -10
  493. package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +0 -2
  494. package/dist/ConditionalWrapper/package.json +0 -7
  495. package/dist/ContentSwitcher/ContentSwitcher.cjs.js +0 -20
  496. package/dist/ContentSwitcher/ContentSwitcher.esm.js +0 -12
  497. package/dist/ContentSwitcher/package.json +0 -7
  498. package/dist/ContentSwitcher/styles.css +0 -1
  499. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +0 -23
  500. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +0 -15
  501. package/dist/ContentSwitcherDropdown/package.json +0 -7
  502. package/dist/ContentSwitcherDropdown/styles.css +0 -1
  503. package/dist/DatePicker/DatePicker.cjs.js +0 -36
  504. package/dist/DatePicker/DatePicker.esm.js +0 -23
  505. package/dist/DatePicker/package.json +0 -7
  506. package/dist/DatePicker/styles.css +0 -1
  507. package/dist/Disclosure/Disclosure.cjs.js +0 -38
  508. package/dist/Disclosure/Disclosure.esm.js +0 -30
  509. package/dist/Disclosure/package.json +0 -7
  510. package/dist/Disclosure/styles.css +0 -1
  511. package/dist/DisclosureMini/DisclosureMini.cjs.js +0 -15
  512. package/dist/DisclosureMini/DisclosureMini.esm.js +0 -7
  513. package/dist/DisclosureMini/package.json +0 -7
  514. package/dist/DisclosureMini/styles.css +0 -1
  515. package/dist/Elevation/Elevation.cjs.js +0 -27
  516. package/dist/Elevation/Elevation.esm.js +0 -19
  517. package/dist/Elevation/package.json +0 -7
  518. package/dist/Elevation/styles.css +0 -1
  519. package/dist/Filter/Filter.cjs.js +0 -14
  520. package/dist/Filter/Filter.esm.js +0 -6
  521. package/dist/Filter/package.json +0 -7
  522. package/dist/Filter/styles.css +0 -1
  523. package/dist/FormControl/FormControl.cjs.js +0 -18
  524. package/dist/FormControl/FormControl.esm.js +0 -9
  525. package/dist/FormControl/package.json +0 -7
  526. package/dist/FormControl/styles.css +0 -1
  527. package/dist/Grid/Grid.cjs.js +0 -12
  528. package/dist/Grid/Grid.esm.js +0 -4
  529. package/dist/Grid/package.json +0 -7
  530. package/dist/Grid/styles.css +0 -1
  531. package/dist/Group/Group.cjs.js +0 -13
  532. package/dist/Group/Group.esm.js +0 -5
  533. package/dist/Group/package.json +0 -7
  534. package/dist/Group/styles.css +0 -1
  535. package/dist/Heading/Heading.cjs.js +0 -13
  536. package/dist/Heading/Heading.esm.js +0 -5
  537. package/dist/Heading/package.json +0 -7
  538. package/dist/Heading/styles.css +0 -1
  539. package/dist/HeroBanner/HeroBanner.cjs.js +0 -63
  540. package/dist/HeroBanner/HeroBanner.esm.js +0 -55
  541. package/dist/HeroBanner/package.json +0 -7
  542. package/dist/HeroBanner/styles.css +0 -1
  543. package/dist/HeroButton/HeroButton.cjs.js +0 -15
  544. package/dist/HeroButton/HeroButton.esm.js +0 -7
  545. package/dist/HeroButton/package.json +0 -7
  546. package/dist/HeroButton/styles.css +0 -1
  547. package/dist/Hidden/Hidden.cjs.js +0 -24
  548. package/dist/Hidden/Hidden.esm.js +0 -16
  549. package/dist/Hidden/package.json +0 -7
  550. package/dist/Hidden/styles.css +0 -1
  551. package/dist/Icon/Icon.cjs.js +0 -13
  552. package/dist/Icon/Icon.esm.js +0 -5
  553. package/dist/Icon/package.json +0 -7
  554. package/dist/Icon/styles.css +0 -1
  555. package/dist/Image/Image.cjs.js +0 -13
  556. package/dist/Image/Image.esm.js +0 -4
  557. package/dist/Image/package.json +0 -7
  558. package/dist/Image/styles.css +0 -1
  559. package/dist/ImpactCard/ImpactCard.cjs.js +0 -43
  560. package/dist/ImpactCard/ImpactCard.esm.js +0 -35
  561. package/dist/ImpactCard/package.json +0 -7
  562. package/dist/ImpactCard/styles.css +0 -1
  563. package/dist/InformationCard/InformationCard.cjs.js +0 -60
  564. package/dist/InformationCard/InformationCard.esm.js +0 -52
  565. package/dist/InformationCard/package.json +0 -7
  566. package/dist/InformationCard/styles.css +0 -1
  567. package/dist/Link/Link.cjs.js +0 -75
  568. package/dist/Link/Link.esm.js +0 -67
  569. package/dist/Link/package.json +0 -7
  570. package/dist/Link/styles.css +0 -1
  571. package/dist/Markup/Markup.cjs.js +0 -27
  572. package/dist/Markup/Markup.esm.js +0 -19
  573. package/dist/Markup/package.json +0 -7
  574. package/dist/Markup/styles.css +0 -1
  575. package/dist/MediaCard/MediaCard.cjs.js +0 -26
  576. package/dist/MediaCard/MediaCard.esm.js +0 -18
  577. package/dist/MediaCard/package.json +0 -7
  578. package/dist/MediaCard/styles.css +0 -1
  579. package/dist/Modal/Modal.cjs.js +0 -393
  580. package/dist/Modal/Modal.esm.js +0 -367
  581. package/dist/Modal/package.json +0 -7
  582. package/dist/Modal/styles.css +0 -1
  583. package/dist/Pagination/Pagination.cjs.js +0 -81
  584. package/dist/Pagination/Pagination.esm.js +0 -73
  585. package/dist/Pagination/package.json +0 -7
  586. package/dist/Pagination/styles.css +0 -1
  587. package/dist/PaginationSimple/PaginationSimple.cjs.js +0 -41
  588. package/dist/PaginationSimple/PaginationSimple.esm.js +0 -33
  589. package/dist/PaginationSimple/package.json +0 -7
  590. package/dist/PaginationSimple/styles.css +0 -1
  591. package/dist/Poster/Poster.cjs.js +0 -14
  592. package/dist/Poster/Poster.esm.js +0 -6
  593. package/dist/Poster/package.json +0 -7
  594. package/dist/Poster/styles.css +0 -1
  595. package/dist/ProgressBar/ProgressBar.cjs.js +0 -69
  596. package/dist/ProgressBar/ProgressBar.esm.js +0 -61
  597. package/dist/ProgressBar/package.json +0 -7
  598. package/dist/ProgressBar/styles.css +0 -1
  599. package/dist/ProgressStepper/ProgressStepper.cjs.js +0 -15
  600. package/dist/ProgressStepper/ProgressStepper.esm.js +0 -7
  601. package/dist/ProgressStepper/package.json +0 -7
  602. package/dist/ProgressStepper/styles.css +0 -1
  603. package/dist/RadioGroup/RadioGroup.cjs.js +0 -19
  604. package/dist/RadioGroup/RadioGroup.esm.js +0 -10
  605. package/dist/RadioGroup/package.json +0 -7
  606. package/dist/RadioGroup/styles.css +0 -1
  607. package/dist/Rule/Rule.cjs.js +0 -29
  608. package/dist/Rule/Rule.esm.js +0 -21
  609. package/dist/Rule/package.json +0 -7
  610. package/dist/Rule/styles.css +0 -1
  611. package/dist/ScrollToTop/ScrollToTop.cjs.js +0 -50
  612. package/dist/ScrollToTop/ScrollToTop.esm.js +0 -42
  613. package/dist/ScrollToTop/package.json +0 -7
  614. package/dist/ScrollToTop/styles.css +0 -1
  615. package/dist/Section/Section.cjs.js +0 -12
  616. package/dist/Section/Section.esm.js +0 -4
  617. package/dist/Section/package.json +0 -7
  618. package/dist/Section/styles.css +0 -1
  619. package/dist/Select/Select.cjs.js +0 -88
  620. package/dist/Select/Select.esm.js +0 -80
  621. package/dist/Select/package.json +0 -7
  622. package/dist/Select/styles.css +0 -1
  623. package/dist/SiteFooter/SiteFooter.cjs.js +0 -19
  624. package/dist/SiteFooter/SiteFooter.esm.js +0 -11
  625. package/dist/SiteFooter/package.json +0 -7
  626. package/dist/SiteFooter/styles.css +0 -1
  627. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +0 -23
  628. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +0 -15
  629. package/dist/SiteHeaderV2/package.json +0 -7
  630. package/dist/SiteHeaderV2/styles.css +0 -1
  631. package/dist/SkipLink/SkipLink.cjs.js +0 -24
  632. package/dist/SkipLink/SkipLink.esm.js +0 -16
  633. package/dist/SkipLink/package.json +0 -7
  634. package/dist/SkipLink/styles.css +0 -1
  635. package/dist/Spinner/Spinner.cjs.js +0 -12
  636. package/dist/Spinner/Spinner.esm.js +0 -4
  637. package/dist/Spinner/package.json +0 -7
  638. package/dist/Spinner/styles.css +0 -1
  639. package/dist/Surface/Surface.cjs.js +0 -15
  640. package/dist/Surface/Surface.esm.js +0 -4
  641. package/dist/Surface/package.json +0 -7
  642. package/dist/Surface/styles.css +0 -1
  643. package/dist/Switch/Switch.cjs.js +0 -164
  644. package/dist/Switch/Switch.esm.js +0 -156
  645. package/dist/Switch/package.json +0 -7
  646. package/dist/Switch/styles.css +0 -1
  647. package/dist/Tabs/Tabs.cjs.js +0 -21
  648. package/dist/Tabs/Tabs.esm.js +0 -13
  649. package/dist/Tabs/package.json +0 -7
  650. package/dist/Tabs/styles.css +0 -1
  651. package/dist/Tag/Tag.cjs.js +0 -84
  652. package/dist/Tag/Tag.esm.js +0 -76
  653. package/dist/Tag/package.json +0 -7
  654. package/dist/Tag/styles.css +0 -1
  655. package/dist/Text/Text.cjs.js +0 -13
  656. package/dist/Text/Text.esm.js +0 -5
  657. package/dist/Text/package.json +0 -7
  658. package/dist/Text/styles.css +0 -1
  659. package/dist/TextArea/TextArea.cjs.js +0 -115
  660. package/dist/TextArea/TextArea.esm.js +0 -107
  661. package/dist/TextArea/package.json +0 -7
  662. package/dist/TextArea/styles.css +0 -1
  663. package/dist/TextInput/TextInput.cjs.js +0 -19
  664. package/dist/TextInput/TextInput.esm.js +0 -11
  665. package/dist/TextInput/package.json +0 -7
  666. package/dist/TextInput/styles.css +0 -1
  667. package/dist/Theme/Theme.cjs.js +0 -30
  668. package/dist/Theme/Theme.esm.js +0 -21
  669. package/dist/Theme/package.json +0 -7
  670. package/dist/Theme/styles.css +0 -1
  671. package/dist/ThemeIcon/ThemeIcon.cjs.js +0 -13
  672. package/dist/ThemeIcon/ThemeIcon.esm.js +0 -5
  673. package/dist/ThemeIcon/package.json +0 -7
  674. package/dist/ThemeIcon/styles.css +0 -1
  675. package/dist/Toast/Toast.cjs.js +0 -19
  676. package/dist/Toast/Toast.esm.js +0 -11
  677. package/dist/Toast/package.json +0 -7
  678. package/dist/Toast/styles.css +0 -1
  679. package/dist/Truncate/Truncate.cjs.js +0 -18
  680. package/dist/Truncate/Truncate.esm.js +0 -10
  681. package/dist/Truncate/package.json +0 -7
  682. package/dist/Truncate/styles.css +0 -1
  683. package/dist/TypographyCard/TypographyCard.cjs.js +0 -40
  684. package/dist/TypographyCard/TypographyCard.esm.js +0 -32
  685. package/dist/TypographyCard/package.json +0 -7
  686. package/dist/TypographyCard/styles.css +0 -1
  687. package/dist/UniversalHeader/UniversalHeader.cjs.js +0 -13
  688. package/dist/UniversalHeader/UniversalHeader.esm.js +0 -5
  689. package/dist/UniversalHeader/package.json +0 -7
  690. package/dist/UniversalHeader/styles.css +0 -1
  691. package/dist/VerticalSpace/VerticalSpace.cjs.js +0 -12
  692. package/dist/VerticalSpace/VerticalSpace.esm.js +0 -4
  693. package/dist/VerticalSpace/package.json +0 -7
  694. package/dist/VerticalSpace/styles.css +0 -1
  695. package/dist/VideoPlayer/VideoPlayer.cjs.js +0 -3012
  696. package/dist/VideoPlayer/VideoPlayer.esm.js +0 -3004
  697. package/dist/VideoPlayer/package.json +0 -7
  698. package/dist/VideoPlayer/styles.css +0 -1
  699. package/dist/Visible/Visible.cjs.js +0 -24
  700. package/dist/Visible/Visible.esm.js +0 -16
  701. package/dist/Visible/package.json +0 -7
  702. package/dist/Visible/styles.css +0 -1
  703. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +0 -11
  704. package/dist/VisuallyHidden/VisuallyHidden.esm.js +0 -3
  705. package/dist/VisuallyHidden/package.json +0 -7
  706. package/dist/VisuallyHidden/styles.css +0 -1
  707. package/dist/_shared/cjs/Avatar-e6ba0881.js +0 -48
  708. package/dist/_shared/cjs/Badge-1f86304b.js +0 -17
  709. package/dist/_shared/cjs/Box-d177ee32.js +0 -29
  710. package/dist/_shared/cjs/BrandLogo-d4a6fd05.js +0 -30
  711. package/dist/_shared/cjs/Breadcrumbs-ca30086e.js +0 -103
  712. package/dist/_shared/cjs/BtIconArrowRight.esm-6053bb79.js +0 -30
  713. package/dist/_shared/cjs/BtIconChevronRightMid.esm-3e8d18a9.js +0 -28
  714. package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +0 -30
  715. package/dist/_shared/cjs/Button-a2150286.js +0 -53
  716. package/dist/_shared/cjs/ButtonV2-7c437d1a.js +0 -53
  717. package/dist/_shared/cjs/Calendar-9b4b01c8.js +0 -1927
  718. package/dist/_shared/cjs/CardFooter-68235081.js +0 -79
  719. package/dist/_shared/cjs/CardHeading-88edadd4.js +0 -16
  720. package/dist/_shared/cjs/Checkbox-f6712cc5.js +0 -70
  721. package/dist/_shared/cjs/Columns-5c6bab74.js +0 -48
  722. package/dist/_shared/cjs/Combination-854a36ce.js +0 -1203
  723. package/dist/_shared/cjs/ConditionalWrapper-bf944594.js +0 -14
  724. package/dist/_shared/cjs/ContentSwitcher-88b00e11.js +0 -98
  725. package/dist/_shared/cjs/ContentSwitcherDropdown-ba5330ed.js +0 -47
  726. package/dist/_shared/cjs/DatePicker-61d66a55.js +0 -956
  727. package/dist/_shared/cjs/DisclosureMini-a46a4838.js +0 -41
  728. package/dist/_shared/cjs/Filter-b6ca2a39.js +0 -125
  729. package/dist/_shared/cjs/FormControl-0fba93b8.js +0 -111
  730. package/dist/_shared/cjs/Grid-69ed0e5c.js +0 -45
  731. package/dist/_shared/cjs/Group-7e6b78c9.js +0 -40
  732. package/dist/_shared/cjs/Heading-25d11688.js +0 -39
  733. package/dist/_shared/cjs/HeroButton-19814c26.js +0 -126
  734. package/dist/_shared/cjs/Icon-08447959.js +0 -47
  735. package/dist/_shared/cjs/Image-c8969ad9.js +0 -55
  736. package/dist/_shared/cjs/MediaCard-7bbe8aa0.js +0 -65
  737. package/dist/_shared/cjs/Poster-96aa286e.js +0 -45
  738. package/dist/_shared/cjs/Preview-0bf3f6e8.js +0 -167
  739. package/dist/_shared/cjs/ProgressStepper-c59ec56c.js +0 -97
  740. package/dist/_shared/cjs/RadioGroup-11f4b232.js +0 -85
  741. package/dist/_shared/cjs/Section-46646353.js +0 -23
  742. package/dist/_shared/cjs/SiteFooter-d839f66a.js +0 -70
  743. package/dist/_shared/cjs/SiteHeaderV2-3793453c.js +0 -687
  744. package/dist/_shared/cjs/Spinner-56122c43.js +0 -24
  745. package/dist/_shared/cjs/Surface-1b5c2ac8.js +0 -175
  746. package/dist/_shared/cjs/Tabs-30a12f1a.js +0 -93
  747. package/dist/_shared/cjs/Text-c187d9ef.js +0 -31
  748. package/dist/_shared/cjs/TextInput-d39f5a80.js +0 -103
  749. package/dist/_shared/cjs/ThemeIcon-7f537bd2.js +0 -26
  750. package/dist/_shared/cjs/Toast-35c83925.js +0 -965
  751. package/dist/_shared/cjs/UniversalHeader-f9ef793f.js +0 -29
  752. package/dist/_shared/cjs/VerticalSpace-973deefe.js +0 -29
  753. package/dist/_shared/cjs/VisuallyHidden-25393f58.js +0 -18
  754. package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +0 -21
  755. package/dist/_shared/cjs/component-4e71e3d3.js +0 -505
  756. package/dist/_shared/cjs/debounce-a74c28cf.js +0 -544
  757. package/dist/_shared/cjs/floating-ui.react-dom-08b8b87c.js +0 -1908
  758. package/dist/_shared/cjs/index-1e7a1fce.js +0 -379
  759. package/dist/_shared/cjs/index-28fbfd5b.js +0 -2206
  760. package/dist/_shared/cjs/index-2bf59363.js +0 -44
  761. package/dist/_shared/cjs/index-527f962b.js +0 -131
  762. package/dist/_shared/cjs/index-76f7dd53.js +0 -380
  763. package/dist/_shared/cjs/index-879e71ee.js +0 -47
  764. package/dist/_shared/cjs/index-89c323a4.js +0 -2204
  765. package/dist/_shared/cjs/index-9947ac13.js +0 -64
  766. package/dist/_shared/cjs/index-ba3141f5.js +0 -72
  767. package/dist/_shared/cjs/index-dbc843d3.js +0 -97
  768. package/dist/_shared/cjs/index.es-c26e8978.js +0 -201
  769. package/dist/_shared/cjs/index.es-f23456fa.js +0 -13
  770. package/dist/_shared/cjs/use-media-query-d34c83b9.js +0 -41
  771. package/dist/_shared/esm/Avatar-3537bca7.js +0 -42
  772. package/dist/_shared/esm/Badge-7bc80706.js +0 -11
  773. package/dist/_shared/esm/Box-557fb3b1.js +0 -23
  774. package/dist/_shared/esm/BrandLogo-45d0d795.js +0 -24
  775. package/dist/_shared/esm/Breadcrumbs-bcf9ca79.js +0 -97
  776. package/dist/_shared/esm/BtIconArrowRight.esm-93da96bb.js +0 -24
  777. package/dist/_shared/esm/BtIconChevronRightMid.esm-4764708f.js +0 -22
  778. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +0 -24
  779. package/dist/_shared/esm/Button-0506afa7.js +0 -47
  780. package/dist/_shared/esm/ButtonV2-c83db10c.js +0 -47
  781. package/dist/_shared/esm/Calendar-34b10bd5.js +0 -1918
  782. package/dist/_shared/esm/CardFooter-bf886438.js +0 -73
  783. package/dist/_shared/esm/CardHeading-c65f9fb2.js +0 -10
  784. package/dist/_shared/esm/Checkbox-8195c42c.js +0 -64
  785. package/dist/_shared/esm/Columns-9aa5df4a.js +0 -42
  786. package/dist/_shared/esm/Combination-2af75870.js +0 -1163
  787. package/dist/_shared/esm/ConditionalWrapper-b85979de.js +0 -8
  788. package/dist/_shared/esm/ContentSwitcher-bae1f0a7.js +0 -92
  789. package/dist/_shared/esm/ContentSwitcherDropdown-65291c09.js +0 -41
  790. package/dist/_shared/esm/DatePicker-aafbdea8.js +0 -927
  791. package/dist/_shared/esm/DisclosureMini-f6d8c9bc.js +0 -35
  792. package/dist/_shared/esm/Filter-a5bf3fe3.js +0 -119
  793. package/dist/_shared/esm/FormControl-ff671eb8.js +0 -103
  794. package/dist/_shared/esm/Grid-727d05d6.js +0 -39
  795. package/dist/_shared/esm/Group-c4f6c745.js +0 -34
  796. package/dist/_shared/esm/Heading-0a8d3545.js +0 -33
  797. package/dist/_shared/esm/HeroButton-a98767b7.js +0 -120
  798. package/dist/_shared/esm/Icon-a5cb17de.js +0 -41
  799. package/dist/_shared/esm/Image-c1dc10b5.js +0 -48
  800. package/dist/_shared/esm/MediaCard-fdc76670.js +0 -59
  801. package/dist/_shared/esm/Poster-dc3d7ee8.js +0 -39
  802. package/dist/_shared/esm/Preview-43b2a75d.js +0 -161
  803. package/dist/_shared/esm/ProgressStepper-427f24e3.js +0 -91
  804. package/dist/_shared/esm/RadioGroup-5b654bee.js +0 -78
  805. package/dist/_shared/esm/Section-c1dc6e37.js +0 -17
  806. package/dist/_shared/esm/SiteFooter-1cdba967.js +0 -64
  807. package/dist/_shared/esm/SiteHeaderV2-743847f6.js +0 -681
  808. package/dist/_shared/esm/Spinner-6704017c.js +0 -18
  809. package/dist/_shared/esm/Surface-0af6a69a.js +0 -165
  810. package/dist/_shared/esm/Tabs-d360207d.js +0 -87
  811. package/dist/_shared/esm/Text-df93be85.js +0 -25
  812. package/dist/_shared/esm/TextInput-7ab39a54.js +0 -96
  813. package/dist/_shared/esm/ThemeIcon-e1e19266.js +0 -20
  814. package/dist/_shared/esm/Toast-abd517c8.js +0 -958
  815. package/dist/_shared/esm/UniversalHeader-8ebc5322.js +0 -23
  816. package/dist/_shared/esm/VerticalSpace-6a3533db.js +0 -23
  817. package/dist/_shared/esm/VisuallyHidden-cf45ac18.js +0 -12
  818. package/dist/_shared/esm/_commonjsHelpers-0109d574.js +0 -18
  819. package/dist/_shared/esm/component-3e60a45e.js +0 -476
  820. package/dist/_shared/esm/debounce-c8e41002.js +0 -542
  821. package/dist/_shared/esm/floating-ui.react-dom-1bb71aae.js +0 -1878
  822. package/dist/_shared/esm/index-14c7f4da.js +0 -91
  823. package/dist/_shared/esm/index-2e73c2e9.js +0 -62
  824. package/dist/_shared/esm/index-57d4cb34.js +0 -369
  825. package/dist/_shared/esm/index-89a7c31c.js +0 -374
  826. package/dist/_shared/esm/index-ac50b180.js +0 -69
  827. package/dist/_shared/esm/index-afbf540d.js +0 -2169
  828. package/dist/_shared/esm/index-b9923ee4.js +0 -25
  829. package/dist/_shared/esm/index-ce6dee84.js +0 -2197
  830. package/dist/_shared/esm/index-e969452b.js +0 -41
  831. package/dist/_shared/esm/index-f2ddcbe2.js +0 -129
  832. package/dist/_shared/esm/index.es-5496ec12.js +0 -196
  833. package/dist/_shared/esm/index.es-932db59a.js +0 -9
  834. package/dist/_shared/esm/use-media-query-d3622da8.js +0 -39
  835. package/dist/index.es.js +0 -20394
  836. package/dist/index.es.js.map +0 -1
  837. package/dist/index.js +0 -20486
  838. package/dist/index.js.map +0 -1
  839. package/dist/styles.css +0 -15
  840. package/dist/types/components/Alert/Alert.d.ts +0 -54
  841. package/dist/types/components/Alert/index.d.ts +0 -1
  842. package/dist/types/components/Align/Align.d.ts +0 -30
  843. package/dist/types/components/Align/index.d.ts +0 -1
  844. package/dist/types/components/AppButton/AppButton.d.ts +0 -9
  845. package/dist/types/components/AppButton/icons/AppStore.d.ts +0 -2
  846. package/dist/types/components/AppButton/icons/GooglePlay.d.ts +0 -2
  847. package/dist/types/components/AppButton/index.d.ts +0 -1
  848. package/dist/types/components/Avatar/Avatar.d.ts +0 -14
  849. package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +0 -9
  850. package/dist/types/components/Avatar/index.d.ts +0 -1
  851. package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +0 -1
  852. package/dist/types/components/Avatar/types/avatar-image.d.ts +0 -2
  853. package/dist/types/components/Avatar/types/avatar-size.d.ts +0 -1
  854. package/dist/types/components/Avatar/types/avatar-text-size.d.ts +0 -2
  855. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -14
  856. package/dist/types/components/AvatarGroup/index.d.ts +0 -1
  857. package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +0 -2
  858. package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +0 -2
  859. package/dist/types/components/Badge/Badge.d.ts +0 -21
  860. package/dist/types/components/Badge/index.d.ts +0 -1
  861. package/dist/types/components/Box/Box.d.ts +0 -40
  862. package/dist/types/components/Box/index.d.ts +0 -1
  863. package/dist/types/components/BrandLogo/BrandLogo.d.ts +0 -25
  864. package/dist/types/components/BrandLogo/index.d.ts +0 -1
  865. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
  866. package/dist/types/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.d.ts +0 -17
  867. package/dist/types/components/Breadcrumbs/BreadcrumbsLink/BreadcrumbsLink.d.ts +0 -29
  868. package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
  869. package/dist/types/components/Button/Button.d.ts +0 -104
  870. package/dist/types/components/Button/index.d.ts +0 -1
  871. package/dist/types/components/ButtonV2/ButtonV2.d.ts +0 -79
  872. package/dist/types/components/ButtonV2/index.d.ts +0 -1
  873. package/dist/types/components/Calendar/Calendar.d.ts +0 -50
  874. package/dist/types/components/Calendar/Calendar.provider.d.ts +0 -21
  875. package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +0 -15
  876. package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +0 -1
  877. package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +0 -6
  878. package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +0 -1
  879. package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +0 -8
  880. package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +0 -1
  881. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +0 -9
  882. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +0 -1
  883. package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +0 -6
  884. package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +0 -1
  885. package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +0 -9
  886. package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +0 -1
  887. package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +0 -11
  888. package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +0 -1
  889. package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +0 -10
  890. package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +0 -1
  891. package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +0 -5
  892. package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +0 -1
  893. package/dist/types/components/Calendar/components/index.d.ts +0 -6
  894. package/dist/types/components/Calendar/constants/day-names.d.ts +0 -5
  895. package/dist/types/components/Calendar/constants/index.d.ts +0 -1
  896. package/dist/types/components/Calendar/helpers/contains-date.d.ts +0 -1
  897. package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +0 -1
  898. package/dist/types/components/Calendar/helpers/date-without-time.d.ts +0 -1
  899. package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +0 -1
  900. package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +0 -2
  901. package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +0 -1
  902. package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +0 -1
  903. package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +0 -1
  904. package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +0 -1
  905. package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +0 -1
  906. package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +0 -5
  907. package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +0 -1
  908. package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +0 -6
  909. package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +0 -1
  910. package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +0 -6
  911. package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +0 -1
  912. package/dist/types/components/Calendar/helpers/index.d.ts +0 -13
  913. package/dist/types/components/Calendar/helpers/is-day.d.ts +0 -2
  914. package/dist/types/components/Calendar/helpers/is-day.test.d.ts +0 -1
  915. package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +0 -1
  916. package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +0 -1
  917. package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +0 -1
  918. package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +0 -1
  919. package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +0 -1
  920. package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +0 -1
  921. package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +0 -9
  922. package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +0 -1
  923. package/dist/types/components/Calendar/index.d.ts +0 -2
  924. package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +0 -3
  925. package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +0 -3
  926. package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +0 -3
  927. package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +0 -2
  928. package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +0 -3
  929. package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +0 -3
  930. package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +0 -3
  931. package/dist/types/components/Calendar/state/handlers/index.d.ts +0 -12
  932. package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +0 -3
  933. package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +0 -3
  934. package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +0 -3
  935. package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +0 -3
  936. package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +0 -3
  937. package/dist/types/components/Calendar/state/index.d.ts +0 -2
  938. package/dist/types/components/Calendar/state/reducer.d.ts +0 -3
  939. package/dist/types/components/Calendar/state/reducer.test.d.ts +0 -1
  940. package/dist/types/components/Calendar/state/types/actions.d.ts +0 -81
  941. package/dist/types/components/Calendar/state/types/state-handler.d.ts +0 -3
  942. package/dist/types/components/Calendar/state/types/state.d.ts +0 -5
  943. package/dist/types/components/Calendar/types/calendar-type.d.ts +0 -1
  944. package/dist/types/components/Calendar/types/date-select-value.d.ts +0 -2
  945. package/dist/types/components/Calendar/types/index.d.ts +0 -6
  946. package/dist/types/components/Calendar/types/key-names.d.ts +0 -13
  947. package/dist/types/components/Calendar/types/range-selection.d.ts +0 -10
  948. package/dist/types/components/Calendar/types/selection-type.d.ts +0 -1
  949. package/dist/types/components/Calendar/types/week-days.d.ts +0 -18
  950. package/dist/types/components/CardFooter/CardFooter.d.ts +0 -11
  951. package/dist/types/components/CardFooter/index.d.ts +0 -1
  952. package/dist/types/components/CardHeading/CardHeading.d.ts +0 -19
  953. package/dist/types/components/CardHeading/index.d.ts +0 -1
  954. package/dist/types/components/Carousel/Carousel.d.ts +0 -12
  955. package/dist/types/components/Carousel/helpers/get-slide-config.d.ts +0 -4
  956. package/dist/types/components/Carousel/helpers/get-slider-position.d.ts +0 -9
  957. package/dist/types/components/Carousel/helpers/is-last-slide.d.ts +0 -2
  958. package/dist/types/components/Carousel/helpers/is-slide-hidden.d.ts +0 -2
  959. package/dist/types/components/Carousel/hooks/use-slides.d.ts +0 -18
  960. package/dist/types/components/Carousel/index.d.ts +0 -1
  961. package/dist/types/components/Carousel/types/breakpoints.d.ts +0 -1
  962. package/dist/types/components/Carousel/types/responsive.d.ts +0 -3
  963. package/dist/types/components/Carousel/types/screen-sizes.d.ts +0 -2
  964. package/dist/types/components/Carousel/types/slide-config.d.ts +0 -5
  965. package/dist/types/components/Carousel/types/slide.d.ts +0 -4
  966. package/dist/types/components/Checkbox/Checkbox.d.ts +0 -66
  967. package/dist/types/components/Checkbox/index.d.ts +0 -1
  968. package/dist/types/components/Columns/Columns.d.ts +0 -76
  969. package/dist/types/components/Columns/index.d.ts +0 -1
  970. package/dist/types/components/ConditionalWrapper/ConditionalWrapper.d.ts +0 -7
  971. package/dist/types/components/ConditionalWrapper/index.d.ts +0 -1
  972. package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +0 -28
  973. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +0 -12
  974. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +0 -1
  975. package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +0 -24
  976. package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +0 -1
  977. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +0 -17
  978. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +0 -1
  979. package/dist/types/components/ContentSwitcher/index.d.ts +0 -1
  980. package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +0 -37
  981. package/dist/types/components/ContentSwitcherDropdown/index.d.ts +0 -1
  982. package/dist/types/components/DatePicker/DatePicker.d.ts +0 -20
  983. package/dist/types/components/DatePicker/constants/date-format.d.ts +0 -1
  984. package/dist/types/components/DatePicker/constants/index.d.ts +0 -1
  985. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +0 -1
  986. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +0 -1
  987. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +0 -1
  988. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +0 -1
  989. package/dist/types/components/DatePicker/helpers/format-date.d.ts +0 -1
  990. package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +0 -1
  991. package/dist/types/components/DatePicker/helpers/index.d.ts +0 -8
  992. package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +0 -1
  993. package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +0 -1
  994. package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +0 -1
  995. package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +0 -1
  996. package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +0 -1
  997. package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +0 -1
  998. package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +0 -5
  999. package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +0 -1
  1000. package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +0 -14
  1001. package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +0 -1
  1002. package/dist/types/components/DatePicker/index.d.ts +0 -6
  1003. package/dist/types/components/Disclosure/Disclosure.d.ts +0 -29
  1004. package/dist/types/components/Disclosure/index.d.ts +0 -1
  1005. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +0 -35
  1006. package/dist/types/components/DisclosureMini/index.d.ts +0 -1
  1007. package/dist/types/components/Elevation/Elevation.d.ts +0 -19
  1008. package/dist/types/components/Elevation/index.d.ts +0 -1
  1009. package/dist/types/components/Filter/Filter.d.ts +0 -38
  1010. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +0 -16
  1011. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +0 -12
  1012. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +0 -12
  1013. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +0 -16
  1014. package/dist/types/components/Filter/index.d.ts +0 -1
  1015. package/dist/types/components/FormControl/FormControl.d.ts +0 -79
  1016. package/dist/types/components/FormControl/index.d.ts +0 -1
  1017. package/dist/types/components/Grid/Grid.constants.d.ts +0 -1
  1018. package/dist/types/components/Grid/Grid.d.ts +0 -28
  1019. package/dist/types/components/Grid/Grid.types.d.ts +0 -10
  1020. package/dist/types/components/Grid/components/Col/Col.d.ts +0 -10
  1021. package/dist/types/components/Grid/components/Col/index.d.ts +0 -1
  1022. package/dist/types/components/Grid/components/Row/Row.d.ts +0 -10
  1023. package/dist/types/components/Grid/components/Row/index.d.ts +0 -1
  1024. package/dist/types/components/Grid/index.d.ts +0 -2
  1025. package/dist/types/components/Group/Group.d.ts +0 -45
  1026. package/dist/types/components/Group/GroupItem/GroupItem.d.ts +0 -17
  1027. package/dist/types/components/Group/index.d.ts +0 -1
  1028. package/dist/types/components/Heading/Heading.d.ts +0 -49
  1029. package/dist/types/components/Heading/index.d.ts +0 -1
  1030. package/dist/types/components/HeroBanner/HeroBanner.d.ts +0 -52
  1031. package/dist/types/components/HeroBanner/index.d.ts +0 -1
  1032. package/dist/types/components/HeroButton/HeroButton.d.ts +0 -66
  1033. package/dist/types/components/HeroButton/index.d.ts +0 -1
  1034. package/dist/types/components/Hidden/Hidden.d.ts +0 -11
  1035. package/dist/types/components/Hidden/index.d.ts +0 -1
  1036. package/dist/types/components/Icon/Icon.d.ts +0 -37
  1037. package/dist/types/components/Icon/index.d.ts +0 -1
  1038. package/dist/types/components/Image/Image.d.ts +0 -97
  1039. package/dist/types/components/Image/index.d.ts +0 -1
  1040. package/dist/types/components/ImpactCard/ImpactCard.d.ts +0 -58
  1041. package/dist/types/components/ImpactCard/index.d.ts +0 -1
  1042. package/dist/types/components/InformationCard/InformationCard.d.ts +0 -62
  1043. package/dist/types/components/InformationCard/index.d.ts +0 -1
  1044. package/dist/types/components/Link/Link.d.ts +0 -52
  1045. package/dist/types/components/Link/index.d.ts +0 -1
  1046. package/dist/types/components/Markup/Markup.d.ts +0 -15
  1047. package/dist/types/components/Markup/index.d.ts +0 -1
  1048. package/dist/types/components/MediaCard/MediaCard.d.ts +0 -56
  1049. package/dist/types/components/MediaCard/index.d.ts +0 -1
  1050. package/dist/types/components/MediaCard/types/index.d.ts +0 -2
  1051. package/dist/types/components/MediaCard/types/media-card-image.d.ts +0 -4
  1052. package/dist/types/components/MediaCard/types/media-card-video.d.ts +0 -4
  1053. package/dist/types/components/Modal/Modal.d.ts +0 -50
  1054. package/dist/types/components/Modal/index.d.ts +0 -1
  1055. package/dist/types/components/Pagination/Pagination.d.ts +0 -19
  1056. package/dist/types/components/Pagination/index.d.ts +0 -1
  1057. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +0 -35
  1058. package/dist/types/components/PaginationSimple/index.d.ts +0 -1
  1059. package/dist/types/components/Poster/Poster.d.ts +0 -29
  1060. package/dist/types/components/Poster/PosterImage.d.ts +0 -34
  1061. package/dist/types/components/Poster/PosterVideo.d.ts +0 -21
  1062. package/dist/types/components/Poster/index.d.ts +0 -1
  1063. package/dist/types/components/ProgressBar/ProgressBar.d.ts +0 -50
  1064. package/dist/types/components/ProgressBar/constants/progress-bar-icon-map.d.ts +0 -3
  1065. package/dist/types/components/ProgressBar/index.d.ts +0 -1
  1066. package/dist/types/components/ProgressBar/types/progress-bar-icons.d.ts +0 -1
  1067. package/dist/types/components/ProgressBar/types/progress-bar-state.d.ts +0 -1
  1068. package/dist/types/components/ProgressBar/utils/get-progress-bar-props.d.ts +0 -1
  1069. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +0 -28
  1070. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +0 -58
  1071. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +0 -2
  1072. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +0 -2
  1073. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +0 -2
  1074. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +0 -2
  1075. package/dist/types/components/ProgressStepper/index.d.ts +0 -1
  1076. package/dist/types/components/ProgressStepper/progressStatus.d.ts +0 -1
  1077. package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +0 -21
  1078. package/dist/types/components/RadioGroup/RadioButton/index.d.ts +0 -1
  1079. package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +0 -36
  1080. package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +0 -1
  1081. package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -66
  1082. package/dist/types/components/RadioGroup/context.d.ts +0 -14
  1083. package/dist/types/components/RadioGroup/index.d.ts +0 -2
  1084. package/dist/types/components/Rule/Rule.d.ts +0 -8
  1085. package/dist/types/components/Rule/index.d.ts +0 -1
  1086. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +0 -24
  1087. package/dist/types/components/ScrollToTop/index.d.ts +0 -1
  1088. package/dist/types/components/Section/Section.d.ts +0 -20
  1089. package/dist/types/components/Section/index.d.ts +0 -1
  1090. package/dist/types/components/Select/Select.d.ts +0 -77
  1091. package/dist/types/components/Select/index.d.ts +0 -1
  1092. package/dist/types/components/SiteFooter/SiteFooter.d.ts +0 -57
  1093. package/dist/types/components/SiteFooter/index.d.ts +0 -1
  1094. package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +0 -82
  1095. package/dist/types/components/SiteHeaderV2/components/BackButton/BackButton.d.ts +0 -6
  1096. package/dist/types/components/SiteHeaderV2/components/BackButton/index.d.ts +0 -1
  1097. package/dist/types/components/SiteHeaderV2/components/Column/Column.d.ts +0 -8
  1098. package/dist/types/components/SiteHeaderV2/components/Column/index.d.ts +0 -1
  1099. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +0 -13
  1100. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +0 -1
  1101. package/dist/types/components/SiteHeaderV2/components/Item/Item.d.ts +0 -20
  1102. package/dist/types/components/SiteHeaderV2/components/Item/index.d.ts +0 -1
  1103. package/dist/types/components/SiteHeaderV2/components/ItemGroup/ItemGroup.d.ts +0 -27
  1104. package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +0 -1
  1105. package/dist/types/components/SiteHeaderV2/components/MenuButton/MenuButton.d.ts +0 -6
  1106. package/dist/types/components/SiteHeaderV2/components/MenuButton/index.d.ts +0 -1
  1107. package/dist/types/components/SiteHeaderV2/components/NavItem/NavItem.d.ts +0 -41
  1108. package/dist/types/components/SiteHeaderV2/components/NavItem/NavItemWithSubNav.d.ts +0 -56
  1109. package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +0 -2
  1110. package/dist/types/components/SiteHeaderV2/components/NodeItem/NodeItem.d.ts +0 -8
  1111. package/dist/types/components/SiteHeaderV2/components/Panel/Panel.d.ts +0 -28
  1112. package/dist/types/components/SiteHeaderV2/components/Panel/index.d.ts +0 -1
  1113. package/dist/types/components/SiteHeaderV2/components/SubNavItem/SubNavItem.d.ts +0 -45
  1114. package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +0 -1
  1115. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +0 -2
  1116. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +0 -1
  1117. package/dist/types/components/SiteHeaderV2/index.d.ts +0 -1
  1118. package/dist/types/components/SkipLink/SkipLink.d.ts +0 -12
  1119. package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +0 -16
  1120. package/dist/types/components/SkipLink/index.d.ts +0 -1
  1121. package/dist/types/components/Spinner/Spinner.d.ts +0 -16
  1122. package/dist/types/components/Spinner/index.d.ts +0 -1
  1123. package/dist/types/components/Surface/Surface.d.ts +0 -53
  1124. package/dist/types/components/Surface/index.d.ts +0 -1
  1125. package/dist/types/components/Switch/Switch.d.ts +0 -43
  1126. package/dist/types/components/Switch/index.d.ts +0 -1
  1127. package/dist/types/components/Tabs/Tab/Tab.d.ts +0 -22
  1128. package/dist/types/components/Tabs/Tab/index.d.ts +0 -1
  1129. package/dist/types/components/Tabs/TabContent/TabContent.d.ts +0 -12
  1130. package/dist/types/components/Tabs/TabContent/index.d.ts +0 -1
  1131. package/dist/types/components/Tabs/Tabs.d.ts +0 -28
  1132. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +0 -20
  1133. package/dist/types/components/Tabs/TabsList/index.d.ts +0 -1
  1134. package/dist/types/components/Tabs/index.d.ts +0 -1
  1135. package/dist/types/components/Tag/Tag.d.ts +0 -36
  1136. package/dist/types/components/Tag/index.d.ts +0 -1
  1137. package/dist/types/components/Text/Text.d.ts +0 -37
  1138. package/dist/types/components/Text/index.d.ts +0 -1
  1139. package/dist/types/components/TextArea/TextArea.d.ts +0 -80
  1140. package/dist/types/components/TextArea/index.d.ts +0 -1
  1141. package/dist/types/components/TextInput/TextInput.d.ts +0 -119
  1142. package/dist/types/components/TextInput/index.d.ts +0 -1
  1143. package/dist/types/components/Theme/Theme.d.ts +0 -21
  1144. package/dist/types/components/Theme/index.d.ts +0 -1
  1145. package/dist/types/components/ThemeIcon/ThemeIcon.d.ts +0 -18
  1146. package/dist/types/components/ThemeIcon/icon-names.d.ts +0 -1
  1147. package/dist/types/components/ThemeIcon/index.d.ts +0 -1
  1148. package/dist/types/components/Toast/Toast.d.ts +0 -17
  1149. package/dist/types/components/Toast/ToastNotification.d.ts +0 -39
  1150. package/dist/types/components/Toast/index.d.ts +0 -1
  1151. package/dist/types/components/Truncate/Truncate.d.ts +0 -17
  1152. package/dist/types/components/Truncate/index.d.ts +0 -1
  1153. package/dist/types/components/TypographyCard/TypographyCard.d.ts +0 -58
  1154. package/dist/types/components/TypographyCard/index.d.ts +0 -1
  1155. package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +0 -29
  1156. package/dist/types/components/UniversalHeader/index.d.ts +0 -1
  1157. package/dist/types/components/VerticalSpace/VerticalSpace.d.ts +0 -33
  1158. package/dist/types/components/VerticalSpace/index.d.ts +0 -1
  1159. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +0 -18
  1160. package/dist/types/components/VideoPlayer/index.d.ts +0 -1
  1161. package/dist/types/components/Visible/Visible.d.ts +0 -11
  1162. package/dist/types/components/Visible/index.d.ts +0 -1
  1163. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +0 -11
  1164. package/dist/types/components/VisuallyHidden/index.d.ts +0 -1
  1165. package/dist/types/components/index.d.ts +0 -64
  1166. package/dist/types/helpers/anchor-points.d.ts +0 -1
  1167. package/dist/types/helpers/get-theme-img.d.ts +0 -6
  1168. package/dist/types/helpers/handle-link-click.d.ts +0 -7
  1169. package/dist/types/helpers/index.d.ts +0 -2
  1170. package/dist/types/hooks/__tests__/use-aria-describedby.test.d.ts +0 -1
  1171. package/dist/types/hooks/__tests__/use-numeric-input.test.d.ts +0 -1
  1172. package/dist/types/hooks/index.d.ts +0 -2
  1173. package/dist/types/hooks/private/index.d.ts +0 -5
  1174. package/dist/types/hooks/private/use-aria-describedby/index.d.ts +0 -1
  1175. package/dist/types/hooks/private/use-aria-describedby/use-aria-describedby.d.ts +0 -22
  1176. package/dist/types/hooks/private/use-interaction-mode/index.d.ts +0 -1
  1177. package/dist/types/hooks/private/use-interaction-mode/use-interaction-mode.d.ts +0 -6
  1178. package/dist/types/hooks/private/use-numeric-input/index.d.ts +0 -1
  1179. package/dist/types/hooks/private/use-numeric-input/use-numeric-input.d.ts +0 -9
  1180. package/dist/types/hooks/private/use-pagination/index.d.ts +0 -1
  1181. package/dist/types/hooks/private/use-pagination/use-pagination.d.ts +0 -1
  1182. package/dist/types/hooks/private/use-theme-element/index.d.ts +0 -1
  1183. package/dist/types/hooks/public/index.d.ts +0 -1
  1184. package/dist/types/hooks/public/use-media-query/index.d.ts +0 -1
  1185. package/dist/types/hooks/public/use-media-query/use-media-query.d.ts +0 -19
  1186. package/dist/types/index.d.ts +0 -2
  1187. package/dist/types/styles.d.ts +0 -72
  1188. package/dist/types/types/arc-icon.d.ts +0 -2
  1189. package/dist/types/types/auto-complete-types.d.ts +0 -1
  1190. package/dist/use-media-query/package.json +0 -7
  1191. package/dist/use-media-query/use-media-query.cjs.js +0 -10
  1192. package/dist/use-media-query/use-media-query.esm.js +0 -2
  1193. /package/{dist/_shared/cjs/handle-link-click-17a44cf4.js → lib/_shared/cjs/handle-link-click-C7BvOIYa.cjs} +0 -0
  1194. /package/{dist/_shared/esm/handle-link-click-f64f55a2.js → lib/_shared/esm/handle-link-click-CIgZ7pa0.mjs} +0 -0
@@ -0,0 +1,1893 @@
1
+ import { b as __spreadArray, a as __assign, _ as __rest } from './tslib.es6-w7hdJ3oZ.mjs';
2
+ import React__default, { createContext, forwardRef, useContext, useCallback, useRef, useState, useReducer, useEffect } from 'react';
3
+ import { r as requiredArgs, t as toDate, b as toInteger, _ as _typeof, g as getDefaultOptions, f as format } from './index-Cr6KeQLU.mjs';
4
+ import { a as ArcSizeBreakpointsM } from './index.es-Co1d96HB.mjs';
5
+ import { f as filterAttrs } from './filter-attrs-v_SweZXP.mjs';
6
+ import { u as useMediaQuery } from './use-media-query-l6Sou0dd.mjs';
7
+ import { c as classNames } from './index-5C0-U8cc.mjs';
8
+ import { T as Text } from './Text-BAzOkkzN.mjs';
9
+ import { V as VisuallyHidden } from './VisuallyHidden-aSQ4RA1o.mjs';
10
+ import './index-Spae4j7j.mjs';
11
+ import { S as Surface } from './Surface-C69KVzkY.mjs';
12
+ import { H as Heading } from './Heading-Da-o0d5x.mjs';
13
+ import { T as ThemeIcon } from './ThemeIcon-B0n6cKRb.mjs';
14
+ import { I as Icon } from './Icon-CCUbr_AO.mjs';
15
+
16
+ /**
17
+ * @name addMonths
18
+ * @category Month Helpers
19
+ * @summary Add the specified number of months to the given date.
20
+ *
21
+ * @description
22
+ * Add the specified number of months to the given date.
23
+ *
24
+ * @param {Date|Number} date - the date to be changed
25
+ * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
26
+ * @returns {Date} the new date with the months added
27
+ * @throws {TypeError} 2 arguments required
28
+ *
29
+ * @example
30
+ * // Add 5 months to 1 September 2014:
31
+ * const result = addMonths(new Date(2014, 8, 1), 5)
32
+ * //=> Sun Feb 01 2015 00:00:00
33
+ */
34
+ function addMonths(dirtyDate, dirtyAmount) {
35
+ requiredArgs(2, arguments);
36
+ var date = toDate(dirtyDate);
37
+ var amount = toInteger(dirtyAmount);
38
+ if (isNaN(amount)) {
39
+ return new Date(NaN);
40
+ }
41
+ if (!amount) {
42
+ // If 0 months, no-op to avoid changing times in the hour before end of DST
43
+ return date;
44
+ }
45
+ var dayOfMonth = date.getDate();
46
+
47
+ // The JS Date object supports date math by accepting out-of-bounds values for
48
+ // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and
49
+ // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we
50
+ // want except that dates will wrap around the end of a month, meaning that
51
+ // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
52
+ // we'll default to the end of the desired month by adding 1 to the desired
53
+ // month and using a date of 0 to back up one day to the end of the desired
54
+ // month.
55
+ var endOfDesiredMonth = new Date(date.getTime());
56
+ endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
57
+ var daysInMonth = endOfDesiredMonth.getDate();
58
+ if (dayOfMonth >= daysInMonth) {
59
+ // If we're already at the end of the month, then this is the correct date
60
+ // and we're done.
61
+ return endOfDesiredMonth;
62
+ } else {
63
+ // Otherwise, we now know that setting the original day-of-month value won't
64
+ // cause an overflow, so set the desired day-of-month. Note that we can't
65
+ // just set the date of `endOfDesiredMonth` because that object may have had
66
+ // its time changed in the unusual case where where a DST transition was on
67
+ // the last day of the month and its local time was in the hour skipped or
68
+ // repeated next to a DST transition. So we use `date` instead which is
69
+ // guaranteed to still have the original time.
70
+ date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
71
+ return date;
72
+ }
73
+ }
74
+
75
+ /**
76
+ * @name subMonths
77
+ * @category Month Helpers
78
+ * @summary Subtract the specified number of months from the given date.
79
+ *
80
+ * @description
81
+ * Subtract the specified number of months from the given date.
82
+ *
83
+ * @param {Date|Number} date - the date to be changed
84
+ * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
85
+ * @returns {Date} the new date with the months subtracted
86
+ * @throws {TypeError} 2 arguments required
87
+ *
88
+ * @example
89
+ * // Subtract 5 months from 1 February 2015:
90
+ * const result = subMonths(new Date(2015, 1, 1), 5)
91
+ * //=> Mon Sep 01 2014 00:00:00
92
+ */
93
+ function subMonths(dirtyDate, dirtyAmount) {
94
+ requiredArgs(2, arguments);
95
+ var amount = toInteger(dirtyAmount);
96
+ return addMonths(dirtyDate, -amount);
97
+ }
98
+
99
+ /**
100
+ * @name startOfMonth
101
+ * @category Month Helpers
102
+ * @summary Return the start of a month for the given date.
103
+ *
104
+ * @description
105
+ * Return the start of a month for the given date.
106
+ * The result will be in the local timezone.
107
+ *
108
+ * @param {Date|Number} date - the original date
109
+ * @returns {Date} the start of a month
110
+ * @throws {TypeError} 1 argument required
111
+ *
112
+ * @example
113
+ * // The start of a month for 2 September 2014 11:55:00:
114
+ * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
115
+ * //=> Mon Sep 01 2014 00:00:00
116
+ */
117
+ function startOfMonth(dirtyDate) {
118
+ requiredArgs(1, arguments);
119
+ var date = toDate(dirtyDate);
120
+ date.setDate(1);
121
+ date.setHours(0, 0, 0, 0);
122
+ return date;
123
+ }
124
+
125
+ var containsDate = function (dates, compareDate) {
126
+ return dates.map(function (date) { return date.getTime(); }).includes(compareDate.getTime());
127
+ };
128
+
129
+ /**
130
+ * @name getMonth
131
+ * @category Month Helpers
132
+ * @summary Get the month of the given date.
133
+ *
134
+ * @description
135
+ * Get the month of the given date.
136
+ *
137
+ * @param {Date|Number} date - the given date
138
+ * @returns {Number} the month
139
+ * @throws {TypeError} 1 argument required
140
+ *
141
+ * @example
142
+ * // Which month is 29 February 2012?
143
+ * const result = getMonth(new Date(2012, 1, 29))
144
+ * //=> 1
145
+ */
146
+ function getMonth(dirtyDate) {
147
+ requiredArgs(1, arguments);
148
+ var date = toDate(dirtyDate);
149
+ var month = date.getMonth();
150
+ return month;
151
+ }
152
+
153
+ /**
154
+ * @name getYear
155
+ * @category Year Helpers
156
+ * @summary Get the year of the given date.
157
+ *
158
+ * @description
159
+ * Get the year of the given date.
160
+ *
161
+ * @param {Date|Number} date - the given date
162
+ * @returns {Number} the year
163
+ * @throws {TypeError} 1 argument required
164
+ *
165
+ * @example
166
+ * // Which year is 2 July 2014?
167
+ * const result = getYear(new Date(2014, 6, 2))
168
+ * //=> 2014
169
+ */
170
+ function getYear(dirtyDate) {
171
+ requiredArgs(1, arguments);
172
+ return toDate(dirtyDate).getFullYear();
173
+ }
174
+
175
+ /**
176
+ * @name getDaysInMonth
177
+ * @category Month Helpers
178
+ * @summary Get the number of days in a month of the given date.
179
+ *
180
+ * @description
181
+ * Get the number of days in a month of the given date.
182
+ *
183
+ * @param {Date|Number} date - the given date
184
+ * @returns {Number} the number of days in a month
185
+ * @throws {TypeError} 1 argument required
186
+ *
187
+ * @example
188
+ * // How many days are in February 2000?
189
+ * const result = getDaysInMonth(new Date(2000, 1))
190
+ * //=> 29
191
+ */
192
+ function getDaysInMonth(dirtyDate) {
193
+ requiredArgs(1, arguments);
194
+ var date = toDate(dirtyDate);
195
+ var year = date.getFullYear();
196
+ var monthIndex = date.getMonth();
197
+ var lastDayOfMonth = new Date(0);
198
+ lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
199
+ lastDayOfMonth.setHours(0, 0, 0, 0);
200
+ return lastDayOfMonth.getDate();
201
+ }
202
+
203
+ /**
204
+ * @name setMonth
205
+ * @category Month Helpers
206
+ * @summary Set the month to the given date.
207
+ *
208
+ * @description
209
+ * Set the month to the given date.
210
+ *
211
+ * @param {Date|Number} date - the date to be changed
212
+ * @param {Number} month - the month of the new date
213
+ * @returns {Date} the new date with the month set
214
+ * @throws {TypeError} 2 arguments required
215
+ *
216
+ * @example
217
+ * // Set February to 1 September 2014:
218
+ * const result = setMonth(new Date(2014, 8, 1), 1)
219
+ * //=> Sat Feb 01 2014 00:00:00
220
+ */
221
+ function setMonth(dirtyDate, dirtyMonth) {
222
+ requiredArgs(2, arguments);
223
+ var date = toDate(dirtyDate);
224
+ var month = toInteger(dirtyMonth);
225
+ var year = date.getFullYear();
226
+ var day = date.getDate();
227
+ var dateWithDesiredMonth = new Date(0);
228
+ dateWithDesiredMonth.setFullYear(year, month, 15);
229
+ dateWithDesiredMonth.setHours(0, 0, 0, 0);
230
+ var daysInMonth = getDaysInMonth(dateWithDesiredMonth);
231
+ // Set the last day of the new month
232
+ // if the original date was the last day of the longer month
233
+ date.setMonth(month, Math.min(day, daysInMonth));
234
+ return date;
235
+ }
236
+
237
+ /**
238
+ * @name set
239
+ * @category Common Helpers
240
+ * @summary Set date values to a given date.
241
+ *
242
+ * @description
243
+ * Set date values to a given date.
244
+ *
245
+ * Sets time values to date from object `values`.
246
+ * A value is not set if it is undefined or null or doesn't exist in `values`.
247
+ *
248
+ * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
249
+ * to use native `Date#setX` methods. If you use this function, you may not want to include the
250
+ * other `setX` functions that date-fns provides if you are concerned about the bundle size.
251
+ *
252
+ * @param {Date|Number} date - the date to be changed
253
+ * @param {Object} values - an object with options
254
+ * @param {Number} [values.year] - the number of years to be set
255
+ * @param {Number} [values.month] - the number of months to be set
256
+ * @param {Number} [values.date] - the number of days to be set
257
+ * @param {Number} [values.hours] - the number of hours to be set
258
+ * @param {Number} [values.minutes] - the number of minutes to be set
259
+ * @param {Number} [values.seconds] - the number of seconds to be set
260
+ * @param {Number} [values.milliseconds] - the number of milliseconds to be set
261
+ * @returns {Date} the new date with options set
262
+ * @throws {TypeError} 2 arguments required
263
+ * @throws {RangeError} `values` must be an object
264
+ *
265
+ * @example
266
+ * // Transform 1 September 2014 into 20 October 2015 in a single line:
267
+ * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
268
+ * //=> Tue Oct 20 2015 00:00:00
269
+ *
270
+ * @example
271
+ * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
272
+ * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
273
+ * //=> Mon Sep 01 2014 12:23:45
274
+ */
275
+ function set(dirtyDate, values) {
276
+ requiredArgs(2, arguments);
277
+ if (_typeof(values) !== 'object' || values === null) {
278
+ throw new RangeError('values parameter must be an object');
279
+ }
280
+ var date = toDate(dirtyDate);
281
+
282
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
283
+ if (isNaN(date.getTime())) {
284
+ return new Date(NaN);
285
+ }
286
+ if (values.year != null) {
287
+ date.setFullYear(values.year);
288
+ }
289
+ if (values.month != null) {
290
+ date = setMonth(date, values.month);
291
+ }
292
+ if (values.date != null) {
293
+ date.setDate(toInteger(values.date));
294
+ }
295
+ if (values.hours != null) {
296
+ date.setHours(toInteger(values.hours));
297
+ }
298
+ if (values.minutes != null) {
299
+ date.setMinutes(toInteger(values.minutes));
300
+ }
301
+ if (values.seconds != null) {
302
+ date.setSeconds(toInteger(values.seconds));
303
+ }
304
+ if (values.milliseconds != null) {
305
+ date.setMilliseconds(toInteger(values.milliseconds));
306
+ }
307
+ return date;
308
+ }
309
+
310
+ var dateWithoutTime = function (date) {
311
+ return set(new Date(date), {
312
+ hours: 0,
313
+ minutes: 0,
314
+ milliseconds: 0,
315
+ seconds: 0,
316
+ });
317
+ };
318
+
319
+ var getDatesInMonth = function (date) {
320
+ var dateYear = getYear(date);
321
+ var dateMonth = getMonth(date);
322
+ return Array.from({ length: getDaysInMonth(date) }, function (_, i) {
323
+ return dateWithoutTime(new Date(dateYear, dateMonth, i + 1));
324
+ });
325
+ };
326
+
327
+ /**
328
+ * @name getDay
329
+ * @category Weekday Helpers
330
+ * @summary Get the day of the week of the given date.
331
+ *
332
+ * @description
333
+ * Get the day of the week of the given date.
334
+ *
335
+ * @param {Date|Number} date - the given date
336
+ * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday
337
+ * @throws {TypeError} 1 argument required
338
+ *
339
+ * @example
340
+ * // Which day of the week is 29 February 2012?
341
+ * const result = getDay(new Date(2012, 1, 29))
342
+ * //=> 3
343
+ */
344
+ function getDay(dirtyDate) {
345
+ requiredArgs(1, arguments);
346
+ var date = toDate(dirtyDate);
347
+ var day = date.getDay();
348
+ return day;
349
+ }
350
+
351
+ var WeekDaysAbbr;
352
+ (function (WeekDaysAbbr) {
353
+ WeekDaysAbbr["MON"] = "Mon";
354
+ WeekDaysAbbr["TUE"] = "Tue";
355
+ WeekDaysAbbr["WED"] = "Wed";
356
+ WeekDaysAbbr["THUR"] = "Thur";
357
+ WeekDaysAbbr["FRI"] = "Fri";
358
+ WeekDaysAbbr["SAT"] = "Sat";
359
+ WeekDaysAbbr["SUN"] = "Sun";
360
+ })(WeekDaysAbbr || (WeekDaysAbbr = {}));
361
+ var WeekDays;
362
+ (function (WeekDays) {
363
+ WeekDays["MONDAY"] = "Monday";
364
+ WeekDays["TUESDAY"] = "Tuesday";
365
+ WeekDays["WEDNESDAY"] = "Wednesday";
366
+ WeekDays["THURSDAY"] = "Thursday";
367
+ WeekDays["FRIDAY"] = "Friday";
368
+ WeekDays["SATURDAY"] = "Saturday";
369
+ WeekDays["SUNDAY"] = "Sunday";
370
+ })(WeekDays || (WeekDays = {}));
371
+
372
+ var isDay = function (date, day) {
373
+ var _a;
374
+ var dayMap = (_a = {},
375
+ _a[WeekDays.MONDAY] = 1,
376
+ _a[WeekDays.TUESDAY] = 2,
377
+ _a[WeekDays.WEDNESDAY] = 3,
378
+ _a[WeekDays.THURSDAY] = 4,
379
+ _a[WeekDays.FRIDAY] = 5,
380
+ _a[WeekDays.SATURDAY] = 6,
381
+ _a[WeekDays.SUNDAY] = 0,
382
+ _a);
383
+ return getDay(date) === dayMap[day];
384
+ };
385
+
386
+ /**
387
+ * @name isBefore
388
+ * @category Common Helpers
389
+ * @summary Is the first date before the second one?
390
+ *
391
+ * @description
392
+ * Is the first date before the second one?
393
+ *
394
+ * @param {Date|Number} date - the date that should be before the other one to return true
395
+ * @param {Date|Number} dateToCompare - the date to compare with
396
+ * @returns {Boolean} the first date is before the second date
397
+ * @throws {TypeError} 2 arguments required
398
+ *
399
+ * @example
400
+ * // Is 10 July 1989 before 11 February 1987?
401
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
402
+ * //=> false
403
+ */
404
+ function isBefore(dirtyDate, dirtyDateToCompare) {
405
+ requiredArgs(2, arguments);
406
+ var date = toDate(dirtyDate);
407
+ var dateToCompare = toDate(dirtyDateToCompare);
408
+ return date.getTime() < dateToCompare.getTime();
409
+ }
410
+
411
+ /**
412
+ * @name isAfter
413
+ * @category Common Helpers
414
+ * @summary Is the first date after the second one?
415
+ *
416
+ * @description
417
+ * Is the first date after the second one?
418
+ *
419
+ * @param {Date|Number} date - the date that should be after the other one to return true
420
+ * @param {Date|Number} dateToCompare - the date to compare with
421
+ * @returns {Boolean} the first date is after the second date
422
+ * @throws {TypeError} 2 arguments required
423
+ *
424
+ * @example
425
+ * // Is 10 July 1989 after 11 February 1987?
426
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
427
+ * //=> true
428
+ */
429
+ function isAfter(dirtyDate, dirtyDateToCompare) {
430
+ requiredArgs(2, arguments);
431
+ var date = toDate(dirtyDate);
432
+ var dateToCompare = toDate(dirtyDateToCompare);
433
+ return date.getTime() > dateToCompare.getTime();
434
+ }
435
+
436
+ var isDisabledDate = function (date, disabledDates, minDate, maxDate) {
437
+ return ((minDate && isBefore(date, minDate)) ||
438
+ (maxDate && isAfter(date, maxDate)) ||
439
+ (disabledDates && containsDate(disabledDates, date)));
440
+ };
441
+
442
+ var isMonthBeforeMinDate = function (month, minDate) {
443
+ return getDatesInMonth(month).every(function (date) {
444
+ return isBefore(date, minDate);
445
+ });
446
+ };
447
+
448
+ var isMonthAfterMaxDate = function (date, maxDate) {
449
+ return getDatesInMonth(date).every(function (date) {
450
+ return isAfter(date, maxDate);
451
+ });
452
+ };
453
+
454
+ /**
455
+ * @name compareAsc
456
+ * @category Common Helpers
457
+ * @summary Compare the two dates and return -1, 0 or 1.
458
+ *
459
+ * @description
460
+ * Compare the two dates and return 1 if the first date is after the second,
461
+ * -1 if the first date is before the second or 0 if dates are equal.
462
+ *
463
+ * @param {Date|Number} dateLeft - the first date to compare
464
+ * @param {Date|Number} dateRight - the second date to compare
465
+ * @returns {Number} the result of the comparison
466
+ * @throws {TypeError} 2 arguments required
467
+ *
468
+ * @example
469
+ * // Compare 11 February 1987 and 10 July 1989:
470
+ * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
471
+ * //=> -1
472
+ *
473
+ * @example
474
+ * // Sort the array of dates:
475
+ * const result = [
476
+ * new Date(1995, 6, 2),
477
+ * new Date(1987, 1, 11),
478
+ * new Date(1989, 6, 10)
479
+ * ].sort(compareAsc)
480
+ * //=> [
481
+ * // Wed Feb 11 1987 00:00:00,
482
+ * // Mon Jul 10 1989 00:00:00,
483
+ * // Sun Jul 02 1995 00:00:00
484
+ * // ]
485
+ */
486
+ function compareAsc(dirtyDateLeft, dirtyDateRight) {
487
+ requiredArgs(2, arguments);
488
+ var dateLeft = toDate(dirtyDateLeft);
489
+ var dateRight = toDate(dirtyDateRight);
490
+ var diff = dateLeft.getTime() - dateRight.getTime();
491
+ if (diff < 0) {
492
+ return -1;
493
+ } else if (diff > 0) {
494
+ return 1;
495
+ // Return 0 if diff is 0; return NaN if diff is NaN
496
+ } else {
497
+ return diff;
498
+ }
499
+ }
500
+
501
+ /**
502
+ * @name eachDayOfInterval
503
+ * @category Interval Helpers
504
+ * @summary Return the array of dates within the specified time interval.
505
+ *
506
+ * @description
507
+ * Return the array of dates within the specified time interval.
508
+ *
509
+ * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}
510
+ * @param {Object} [options] - an object with options.
511
+ * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.
512
+ * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end
513
+ * @throws {TypeError} 1 argument required
514
+ * @throws {RangeError} `options.step` must be a number greater than 1
515
+ * @throws {RangeError} The start of an interval cannot be after its end
516
+ * @throws {RangeError} Date in interval cannot be `Invalid Date`
517
+ *
518
+ * @example
519
+ * // Each day between 6 October 2014 and 10 October 2014:
520
+ * const result = eachDayOfInterval({
521
+ * start: new Date(2014, 9, 6),
522
+ * end: new Date(2014, 9, 10)
523
+ * })
524
+ * //=> [
525
+ * // Mon Oct 06 2014 00:00:00,
526
+ * // Tue Oct 07 2014 00:00:00,
527
+ * // Wed Oct 08 2014 00:00:00,
528
+ * // Thu Oct 09 2014 00:00:00,
529
+ * // Fri Oct 10 2014 00:00:00
530
+ * // ]
531
+ */
532
+ function eachDayOfInterval(dirtyInterval, options) {
533
+ var _options$step;
534
+ requiredArgs(1, arguments);
535
+ var interval = dirtyInterval || {};
536
+ var startDate = toDate(interval.start);
537
+ var endDate = toDate(interval.end);
538
+ var endTime = endDate.getTime();
539
+
540
+ // Throw an exception if start date is after end date or if any date is `Invalid Date`
541
+ if (!(startDate.getTime() <= endTime)) {
542
+ throw new RangeError('Invalid interval');
543
+ }
544
+ var dates = [];
545
+ var currentDate = startDate;
546
+ currentDate.setHours(0, 0, 0, 0);
547
+ var step = Number((_options$step = void 0 ) !== null && _options$step !== void 0 ? _options$step : 1);
548
+ if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');
549
+ while (currentDate.getTime() <= endTime) {
550
+ dates.push(toDate(currentDate));
551
+ currentDate.setDate(currentDate.getDate() + step);
552
+ currentDate.setHours(0, 0, 0, 0);
553
+ }
554
+ return dates;
555
+ }
556
+
557
+ var processSelectedRange = function (_a) {
558
+ var range = _a.range, value = _a.value, disabledDates = _a.disabledDates;
559
+ var exisitingRange = range.filter(function (date) { return Boolean(date); });
560
+ var newRange = __spreadArray(__spreadArray([], (exisitingRange.length === 2 ? [] : exisitingRange), true), [
561
+ value,
562
+ ], false).sort(compareAsc);
563
+ var isSelectionComplete = newRange.length === 2;
564
+ var allDaysInRange = isSelectionComplete
565
+ ? eachDayOfInterval({
566
+ start: newRange[0],
567
+ end: newRange[1],
568
+ })
569
+ : [];
570
+ var rangeOnChangeValue = {
571
+ dates: allDaysInRange.map(function (date) { return ({
572
+ value: date,
573
+ disabled: disabledDates ? containsDate(disabledDates, date) : false,
574
+ }); }),
575
+ selectedDate: value,
576
+ start: newRange[0],
577
+ end: newRange[1],
578
+ isSelectionComplete: isSelectionComplete,
579
+ };
580
+ return {
581
+ rangeValue: newRange,
582
+ rangeOnChangeValue: rangeOnChangeValue,
583
+ };
584
+ };
585
+
586
+ var getCalendarType = function (type, isDesktop) {
587
+ if (type === "double" && !isDesktop) {
588
+ return "month";
589
+ }
590
+ if (type === "double" && isDesktop) {
591
+ return "double";
592
+ }
593
+ return type;
594
+ };
595
+
596
+ var getDoubleMonthDisplayRange = function (date) {
597
+ var firstMonth = getMonth(date) % 2 !== 0 ? subMonths(date, 1) : date;
598
+ var secondMonth = addMonths(firstMonth, 1);
599
+ return [firstMonth, secondMonth];
600
+ };
601
+
602
+ var getFocusDate = function (_a) {
603
+ var minDate = _a.minDate, maxDate = _a.maxDate, date = _a.date;
604
+ var isFocusDateBeforeMinDate = minDate && isBefore(date, minDate);
605
+ var isFocusDateAfterMaxDate = maxDate && isAfter(date, maxDate);
606
+ if (isFocusDateBeforeMinDate) {
607
+ return minDate;
608
+ }
609
+ if (isFocusDateAfterMaxDate) {
610
+ return maxDate;
611
+ }
612
+ return date;
613
+ };
614
+
615
+ var getHighlightRange = function (_a) {
616
+ var date = _a.date, minDate = _a.minDate, maxDate = _a.maxDate, range = _a.range;
617
+ var existingRange = range.filter(function (date) { return Boolean(date); });
618
+ if (existingRange.filter(function (date) { return Boolean(date); }).length === 1) {
619
+ var isDateBeforeMinDate = minDate && isBefore(date, minDate);
620
+ var isDateAfterMaxDate = maxDate && isAfter(date, maxDate);
621
+ if (isDateBeforeMinDate) {
622
+ return [minDate, existingRange[0]].sort(compareAsc);
623
+ }
624
+ if (isDateAfterMaxDate) {
625
+ return [maxDate, existingRange[0]].sort(compareAsc);
626
+ }
627
+ return [date, existingRange[0]].sort(compareAsc);
628
+ }
629
+ return existingRange;
630
+ };
631
+
632
+ /**
633
+ * @name addDays
634
+ * @category Day Helpers
635
+ * @summary Add the specified number of days to the given date.
636
+ *
637
+ * @description
638
+ * Add the specified number of days to the given date.
639
+ *
640
+ * @param {Date|Number} date - the date to be changed
641
+ * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
642
+ * @returns {Date} - the new date with the days added
643
+ * @throws {TypeError} - 2 arguments required
644
+ *
645
+ * @example
646
+ * // Add 10 days to 1 September 2014:
647
+ * const result = addDays(new Date(2014, 8, 1), 10)
648
+ * //=> Thu Sep 11 2014 00:00:00
649
+ */
650
+ function addDays(dirtyDate, dirtyAmount) {
651
+ requiredArgs(2, arguments);
652
+ var date = toDate(dirtyDate);
653
+ var amount = toInteger(dirtyAmount);
654
+ if (isNaN(amount)) {
655
+ return new Date(NaN);
656
+ }
657
+ if (!amount) {
658
+ // If 0 days, no-op to avoid changing times in the hour before end of DST
659
+ return date;
660
+ }
661
+ date.setDate(date.getDate() + amount);
662
+ return date;
663
+ }
664
+
665
+ /**
666
+ * @name addWeeks
667
+ * @category Week Helpers
668
+ * @summary Add the specified number of weeks to the given date.
669
+ *
670
+ * @description
671
+ * Add the specified number of week to the given date.
672
+ *
673
+ * @param {Date|Number} date - the date to be changed
674
+ * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
675
+ * @returns {Date} the new date with the weeks added
676
+ * @throws {TypeError} 2 arguments required
677
+ *
678
+ * @example
679
+ * // Add 4 weeks to 1 September 2014:
680
+ * const result = addWeeks(new Date(2014, 8, 1), 4)
681
+ * //=> Mon Sep 29 2014 00:00:00
682
+ */
683
+ function addWeeks(dirtyDate, dirtyAmount) {
684
+ requiredArgs(2, arguments);
685
+ var amount = toInteger(dirtyAmount);
686
+ var days = amount * 7;
687
+ return addDays(dirtyDate, days);
688
+ }
689
+
690
+ /**
691
+ * @name subDays
692
+ * @category Day Helpers
693
+ * @summary Subtract the specified number of days from the given date.
694
+ *
695
+ * @description
696
+ * Subtract the specified number of days from the given date.
697
+ *
698
+ * @param {Date|Number} date - the date to be changed
699
+ * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
700
+ * @returns {Date} the new date with the days subtracted
701
+ * @throws {TypeError} 2 arguments required
702
+ *
703
+ * @example
704
+ * // Subtract 10 days from 1 September 2014:
705
+ * const result = subDays(new Date(2014, 8, 1), 10)
706
+ * //=> Fri Aug 22 2014 00:00:00
707
+ */
708
+ function subDays(dirtyDate, dirtyAmount) {
709
+ requiredArgs(2, arguments);
710
+ var amount = toInteger(dirtyAmount);
711
+ return addDays(dirtyDate, -amount);
712
+ }
713
+
714
+ /**
715
+ * @name startOfWeek
716
+ * @category Week Helpers
717
+ * @summary Return the start of a week for the given date.
718
+ *
719
+ * @description
720
+ * Return the start of a week for the given date.
721
+ * The result will be in the local timezone.
722
+ *
723
+ * @param {Date|Number} date - the original date
724
+ * @param {Object} [options] - an object with options.
725
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
726
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
727
+ * @returns {Date} the start of a week
728
+ * @throws {TypeError} 1 argument required
729
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
730
+ *
731
+ * @example
732
+ * // The start of a week for 2 September 2014 11:55:00:
733
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
734
+ * //=> Sun Aug 31 2014 00:00:00
735
+ *
736
+ * @example
737
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
738
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
739
+ * //=> Mon Sep 01 2014 00:00:00
740
+ */
741
+ function startOfWeek(dirtyDate, options) {
742
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
743
+ requiredArgs(1, arguments);
744
+ var defaultOptions = getDefaultOptions();
745
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
746
+
747
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
748
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
749
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
750
+ }
751
+ var date = toDate(dirtyDate);
752
+ var day = date.getDay();
753
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
754
+ date.setDate(date.getDate() - diff);
755
+ date.setHours(0, 0, 0, 0);
756
+ return date;
757
+ }
758
+
759
+ /**
760
+ * @name endOfWeek
761
+ * @category Week Helpers
762
+ * @summary Return the end of a week for the given date.
763
+ *
764
+ * @description
765
+ * Return the end of a week for the given date.
766
+ * The result will be in the local timezone.
767
+ *
768
+ * @param {Date|Number} date - the original date
769
+ * @param {Object} [options] - an object with options.
770
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
771
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
772
+ * @returns {Date} the end of a week
773
+ * @throws {TypeError} 1 argument required
774
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
775
+ *
776
+ * @example
777
+ * // The end of a week for 2 September 2014 11:55:00:
778
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
779
+ * //=> Sat Sep 06 2014 23:59:59.999
780
+ *
781
+ * @example
782
+ * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
783
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
784
+ * //=> Sun Sep 07 2014 23:59:59.999
785
+ */
786
+ function endOfWeek(dirtyDate, options) {
787
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
788
+ requiredArgs(1, arguments);
789
+ var defaultOptions = getDefaultOptions();
790
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
791
+
792
+ // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
793
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
794
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
795
+ }
796
+ var date = toDate(dirtyDate);
797
+ var day = date.getDay();
798
+ var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
799
+ date.setDate(date.getDate() + diff);
800
+ date.setHours(23, 59, 59, 999);
801
+ return date;
802
+ }
803
+
804
+ /**
805
+ * @name subWeeks
806
+ * @category Week Helpers
807
+ * @summary Subtract the specified number of weeks from the given date.
808
+ *
809
+ * @description
810
+ * Subtract the specified number of weeks from the given date.
811
+ *
812
+ * @param {Date|Number} date - the date to be changed
813
+ * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
814
+ * @returns {Date} the new date with the weeks subtracted
815
+ * @throws {TypeError} 2 arguments required
816
+ *
817
+ * @example
818
+ * // Subtract 4 weeks from 1 September 2014:
819
+ * const result = subWeeks(new Date(2014, 8, 1), 4)
820
+ * //=> Mon Aug 04 2014 00:00:00
821
+ */
822
+ function subWeeks(dirtyDate, dirtyAmount) {
823
+ requiredArgs(2, arguments);
824
+ var amount = toInteger(dirtyAmount);
825
+ return addWeeks(dirtyDate, -amount);
826
+ }
827
+
828
+ /**
829
+ * @name addYears
830
+ * @category Year Helpers
831
+ * @summary Add the specified number of years to the given date.
832
+ *
833
+ * @description
834
+ * Add the specified number of years to the given date.
835
+ *
836
+ * @param {Date|Number} date - the date to be changed
837
+ * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
838
+ * @returns {Date} the new date with the years added
839
+ * @throws {TypeError} 2 arguments required
840
+ *
841
+ * @example
842
+ * // Add 5 years to 1 September 2014:
843
+ * const result = addYears(new Date(2014, 8, 1), 5)
844
+ * //=> Sun Sep 01 2019 00:00:00
845
+ */
846
+ function addYears(dirtyDate, dirtyAmount) {
847
+ requiredArgs(2, arguments);
848
+ var amount = toInteger(dirtyAmount);
849
+ return addMonths(dirtyDate, amount * 12);
850
+ }
851
+
852
+ /**
853
+ * @name subYears
854
+ * @category Year Helpers
855
+ * @summary Subtract the specified number of years from the given date.
856
+ *
857
+ * @description
858
+ * Subtract the specified number of years from the given date.
859
+ *
860
+ * @param {Date|Number} date - the date to be changed
861
+ * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
862
+ * @returns {Date} the new date with the years subtracted
863
+ * @throws {TypeError} 2 arguments required
864
+ *
865
+ * @example
866
+ * // Subtract 5 years from 1 September 2014:
867
+ * const result = subYears(new Date(2014, 8, 1), 5)
868
+ * //=> Tue Sep 01 2009 00:00:00
869
+ */
870
+ function subYears(dirtyDate, dirtyAmount) {
871
+ requiredArgs(2, arguments);
872
+ var amount = toInteger(dirtyAmount);
873
+ return addYears(dirtyDate, -amount);
874
+ }
875
+
876
+ var KeyNames;
877
+ (function (KeyNames) {
878
+ KeyNames["ArrowUp"] = "ArrowUp";
879
+ KeyNames["ArrowDown"] = "ArrowDown";
880
+ KeyNames["ArrowLeft"] = "ArrowLeft";
881
+ KeyNames["ArrowRight"] = "ArrowRight";
882
+ KeyNames["Home"] = "Home";
883
+ KeyNames["End"] = "End";
884
+ KeyNames["PageUp"] = "PageUp";
885
+ KeyNames["PageDown"] = "PageDown";
886
+ KeyNames["Tab"] = "Tab";
887
+ KeyNames["Enter"] = "Enter";
888
+ KeyNames["Space"] = " ";
889
+ })(KeyNames || (KeyNames = {}));
890
+
891
+ var getKeyDownDate = function (_a) {
892
+ var key = _a.key, shiftKey = _a.shiftKey, focusDate = _a.focusDate;
893
+ switch (key) {
894
+ case KeyNames.ArrowDown:
895
+ return addWeeks(focusDate, 1);
896
+ case KeyNames.ArrowLeft:
897
+ return subDays(focusDate, 1);
898
+ case KeyNames.ArrowRight:
899
+ return addDays(focusDate, 1);
900
+ case KeyNames.ArrowUp:
901
+ return subWeeks(focusDate, 1);
902
+ case KeyNames.Home:
903
+ return dateWithoutTime(startOfWeek(focusDate, { weekStartsOn: 1 }));
904
+ case KeyNames.End:
905
+ return dateWithoutTime(endOfWeek(focusDate, { weekStartsOn: 1 }));
906
+ case KeyNames.PageUp:
907
+ return shiftKey ? subYears(focusDate, 1) : subMonths(focusDate, 1);
908
+ case KeyNames.PageDown:
909
+ return shiftKey ? addYears(focusDate, 1) : addMonths(focusDate, 1);
910
+ default:
911
+ return focusDate;
912
+ }
913
+ };
914
+
915
+ /**
916
+ * @name endOfDay
917
+ * @category Day Helpers
918
+ * @summary Return the end of a day for the given date.
919
+ *
920
+ * @description
921
+ * Return the end of a day for the given date.
922
+ * The result will be in the local timezone.
923
+ *
924
+ * @param {Date|Number} date - the original date
925
+ * @returns {Date} the end of a day
926
+ * @throws {TypeError} 1 argument required
927
+ *
928
+ * @example
929
+ * // The end of a day for 2 September 2014 11:55:00:
930
+ * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
931
+ * //=> Tue Sep 02 2014 23:59:59.999
932
+ */
933
+ function endOfDay(dirtyDate) {
934
+ requiredArgs(1, arguments);
935
+ var date = toDate(dirtyDate);
936
+ date.setHours(23, 59, 59, 999);
937
+ return date;
938
+ }
939
+
940
+ /**
941
+ * @name endOfMonth
942
+ * @category Month Helpers
943
+ * @summary Return the end of a month for the given date.
944
+ *
945
+ * @description
946
+ * Return the end of a month for the given date.
947
+ * The result will be in the local timezone.
948
+ *
949
+ * @param {Date|Number} date - the original date
950
+ * @returns {Date} the end of a month
951
+ * @throws {TypeError} 1 argument required
952
+ *
953
+ * @example
954
+ * // The end of a month for 2 September 2014 11:55:00:
955
+ * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
956
+ * //=> Tue Sep 30 2014 23:59:59.999
957
+ */
958
+ function endOfMonth(dirtyDate) {
959
+ requiredArgs(1, arguments);
960
+ var date = toDate(dirtyDate);
961
+ var month = date.getMonth();
962
+ date.setFullYear(date.getFullYear(), month + 1, 0);
963
+ date.setHours(23, 59, 59, 999);
964
+ return date;
965
+ }
966
+
967
+ /**
968
+ * @name isLastDayOfMonth
969
+ * @category Month Helpers
970
+ * @summary Is the given date the last day of a month?
971
+ *
972
+ * @description
973
+ * Is the given date the last day of a month?
974
+ *
975
+ * @param {Date|Number} date - the date to check
976
+ * @returns {Boolean} the date is the last day of a month
977
+ * @throws {TypeError} 1 argument required
978
+ *
979
+ * @example
980
+ * // Is 28 February 2014 the last day of a month?
981
+ * const result = isLastDayOfMonth(new Date(2014, 1, 28))
982
+ * //=> true
983
+ */
984
+ function isLastDayOfMonth(dirtyDate) {
985
+ requiredArgs(1, arguments);
986
+ var date = toDate(dirtyDate);
987
+ return endOfDay(date).getTime() === endOfMonth(date).getTime();
988
+ }
989
+
990
+ /**
991
+ * @name isFirstDayOfMonth
992
+ * @category Month Helpers
993
+ * @summary Is the given date the first day of a month?
994
+ *
995
+ * @description
996
+ * Is the given date the first day of a month?
997
+ *
998
+ * @param {Date|Number} date - the date to check
999
+ * @returns {Boolean} the date is the first day of a month
1000
+ * @throws {TypeError} 1 argument required
1001
+ *
1002
+ * @example
1003
+ * // Is 1 September 2014 the first day of a month?
1004
+ * const result = isFirstDayOfMonth(new Date(2014, 8, 1))
1005
+ * //=> true
1006
+ */
1007
+ function isFirstDayOfMonth(dirtyDate) {
1008
+ requiredArgs(1, arguments);
1009
+ return toDate(dirtyDate).getDate() === 1;
1010
+ }
1011
+
1012
+ /**
1013
+ * @name getDate
1014
+ * @category Day Helpers
1015
+ * @summary Get the day of the month of the given date.
1016
+ *
1017
+ * @description
1018
+ * Get the day of the month of the given date.
1019
+ *
1020
+ * @param {Date|Number} date - the given date
1021
+ * @returns {Number} the day of month
1022
+ * @throws {TypeError} 1 argument required
1023
+ *
1024
+ * @example
1025
+ * // Which day of the month is 29 February 2012?
1026
+ * const result = getDate(new Date(2012, 1, 29))
1027
+ * //=> 29
1028
+ */
1029
+ function getDate(dirtyDate) {
1030
+ requiredArgs(1, arguments);
1031
+ var date = toDate(dirtyDate);
1032
+ var dayOfMonth = date.getDate();
1033
+ return dayOfMonth;
1034
+ }
1035
+
1036
+ /**
1037
+ * @name isEqual
1038
+ * @category Common Helpers
1039
+ * @summary Are the given dates equal?
1040
+ *
1041
+ * @description
1042
+ * Are the given dates equal?
1043
+ *
1044
+ * @param {Date|Number} dateLeft - the first date to compare
1045
+ * @param {Date|Number} dateRight - the second date to compare
1046
+ * @returns {Boolean} the dates are equal
1047
+ * @throws {TypeError} 2 arguments required
1048
+ *
1049
+ * @example
1050
+ * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
1051
+ * const result = isEqual(
1052
+ * new Date(2014, 6, 2, 6, 30, 45, 0),
1053
+ * new Date(2014, 6, 2, 6, 30, 45, 500)
1054
+ * )
1055
+ * //=> false
1056
+ */
1057
+ function isEqual(dirtyLeftDate, dirtyRightDate) {
1058
+ requiredArgs(2, arguments);
1059
+ var dateLeft = toDate(dirtyLeftDate);
1060
+ var dateRight = toDate(dirtyRightDate);
1061
+ return dateLeft.getTime() === dateRight.getTime();
1062
+ }
1063
+
1064
+ var ArcCalendarContext = createContext(null);
1065
+
1066
+ var CalendarDayNumber = forwardRef(function (_a, autoFocusRef) {
1067
+ var date = _a.date, shouldRender = _a.shouldRender, isFocusWithinDayGrid = _a.isFocusWithinDayGrid;
1068
+ var context = useContext(ArcCalendarContext);
1069
+ var isFocusDate = context && isEqual(date, context.focusDate);
1070
+ var tableCellRef = useCallback(function (el) {
1071
+ if (el && isFocusDate && isFocusWithinDayGrid) {
1072
+ el.focus();
1073
+ }
1074
+ }, [isFocusDate, isFocusWithinDayGrid]);
1075
+ if (!context) {
1076
+ return null;
1077
+ }
1078
+ var handleRefs = function (el) {
1079
+ tableCellRef(el);
1080
+ if (autoFocusRef && typeof autoFocusRef === "function") {
1081
+ autoFocusRef(el);
1082
+ }
1083
+ };
1084
+ var disabledDates = context.disabledDates, selectedDate = context.selectedDate, selectionType = context.selectionType, selectedRange = context.selectedRange, highlightedRange = context.highlightedRange, todayDate = context.todayDate, onDayNumberClick = context.onDayNumberClick, onDayNumberHover = context.onDayNumberHover, minDate = context.minDate, maxDate = context.maxDate;
1085
+ var highlightedRangeStart = highlightedRange[0];
1086
+ var highlightedRangeEnd = highlightedRange[1];
1087
+ var isSelectedDate = selectionType === "single"
1088
+ ? isEqual(date, selectedDate)
1089
+ : selectedRange.length &&
1090
+ containsDate(selectedRange.filter(function (date) { return Boolean(date); }), date);
1091
+ var isTodayDate = isEqual(date, todayDate);
1092
+ var dateIsWithinHighlightedRange = selectionType === "range" &&
1093
+ highlightedRange.length === 2 &&
1094
+ !isAfter(date, highlightedRangeEnd) &&
1095
+ !isBefore(date, highlightedRangeStart);
1096
+ var isRoundedLeft = selectionType === "range" &&
1097
+ (isDay(date, WeekDays.MONDAY) ||
1098
+ isFirstDayOfMonth(date) ||
1099
+ isEqual(date, highlightedRangeStart));
1100
+ var isRoundedRight = selectionType === "range" &&
1101
+ (isDay(date, WeekDays.SUNDAY) ||
1102
+ isLastDayOfMonth(date) ||
1103
+ isEqual(date, highlightedRangeEnd));
1104
+ var conditionalClasses = {
1105
+ "arc-CalendarDayNumber--selected": isSelectedDate,
1106
+ "arc-CalendarDayNumber--todayDate": isTodayDate,
1107
+ "arc-CalendarDayNumber--hightlightedRange": dateIsWithinHighlightedRange,
1108
+ "arc-CalendarDayNumber--hightlightedRangeRoundedLeft": isRoundedLeft,
1109
+ "arc-CalendarDayNumber--hightlightedRangeRoundedRight": isRoundedRight,
1110
+ };
1111
+ var isAriaSelected = isSelectedDate ||
1112
+ (dateIsWithinHighlightedRange && selectedRange.length === 2);
1113
+ var tableCellProps = {
1114
+ className: classNames("arc-CalendarDayNumber", conditionalClasses),
1115
+ tabIndex: isFocusDate && shouldRender ? 0 : -1,
1116
+ "aria-current": isTodayDate ? "date" : undefined,
1117
+ "aria-selected": isAriaSelected,
1118
+ "aria-disabled": isDisabledDate(date, disabledDates, minDate, maxDate),
1119
+ onClick: onDayNumberClick(date),
1120
+ onMouseEnter: onDayNumberHover(date),
1121
+ };
1122
+ return (React__default.createElement("td", __assign({ ref: handleRefs, "data-date": date.getTime() }, (shouldRender ? tableCellProps : {}), { role: "gridcell" }), shouldRender && (React__default.createElement(React__default.Fragment, null,
1123
+ React__default.createElement(VisuallyHidden, null, format(date, "MMMM do, yyyy")),
1124
+ React__default.createElement("div", { className: "arc-CalendarDayNumber-buttonOuter" },
1125
+ React__default.createElement("div", { className: "arc-CalendarDayNumber-buttonInner" },
1126
+ React__default.createElement(Text, { size: "s" },
1127
+ React__default.createElement("span", { "aria-hidden": true }, getDate(date)))))))));
1128
+ });
1129
+
1130
+ /**
1131
+ * Do not edit directly
1132
+ * Generated file
1133
+ */
1134
+
1135
+ const BtIconChevronDownMid =
1136
+ "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='currentColor' d='m16 18.09 5.704-5.696a1.347 1.347 0 0 1 2.296.949 1.34 1.34 0 0 1-.393.95L16.95 20.94a1.347 1.347 0 0 1-1.902 0l-6.656-6.648A1.342 1.342 0 0 1 9.345 12c.356 0 .699.142.951.393z'/%3e%3c/svg%3e";
1137
+
1138
+ var CalendarDateSelect = function (_a) {
1139
+ var ariaLabel = _a.ariaLabel, onChange = _a.onChange, name = _a.name, value = _a.value, displayValue = _a.displayValue, options = _a.options;
1140
+ return (React__default.createElement("div", { className: "arc-CalendarDateSelect-wrapper" },
1141
+ React__default.createElement("select", { "aria-label": ariaLabel, onChange: onChange, className: "arc-CalendarDateSelect", value: value, name: name }, options.map(function (_a) {
1142
+ var text = _a.text, value = _a.value;
1143
+ return (React__default.createElement("option", { className: "arc-CalendarDateSelect-option", key: "arc-calendar-year-select-".concat(value), value: value }, text));
1144
+ })),
1145
+ React__default.createElement("div", { "aria-hidden": true, className: "arc-CalendarDateSelect-label" },
1146
+ React__default.createElement(Heading, { size: "s" }, displayValue || value),
1147
+ React__default.createElement("div", { className: "arc-CalendarDateSelect-icon" },
1148
+ React__default.createElement(Icon, { size: 24, icon: BtIconChevronDownMid })))));
1149
+ };
1150
+
1151
+ /**
1152
+ * @name isSameMonth
1153
+ * @category Month Helpers
1154
+ * @summary Are the given dates in the same month (and year)?
1155
+ *
1156
+ * @description
1157
+ * Are the given dates in the same month (and year)?
1158
+ *
1159
+ * @param {Date|Number} dateLeft - the first date to check
1160
+ * @param {Date|Number} dateRight - the second date to check
1161
+ * @returns {Boolean} the dates are in the same month (and year)
1162
+ * @throws {TypeError} 2 arguments required
1163
+ *
1164
+ * @example
1165
+ * // Are 2 September 2014 and 25 September 2014 in the same month?
1166
+ * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
1167
+ * //=> true
1168
+ *
1169
+ * @example
1170
+ * // Are 2 September 2014 and 25 September 2015 in the same month?
1171
+ * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
1172
+ * //=> false
1173
+ */
1174
+ function isSameMonth(dirtyDateLeft, dirtyDateRight) {
1175
+ requiredArgs(2, arguments);
1176
+ var dateLeft = toDate(dirtyDateLeft);
1177
+ var dateRight = toDate(dirtyDateRight);
1178
+ return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
1179
+ }
1180
+
1181
+ /**
1182
+ * @name eachWeekOfInterval
1183
+ * @category Interval Helpers
1184
+ * @summary Return the array of weeks within the specified time interval.
1185
+ *
1186
+ * @description
1187
+ * Return the array of weeks within the specified time interval.
1188
+ *
1189
+ * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}
1190
+ * @param {Object} [options] - an object with options.
1191
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
1192
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
1193
+ * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end
1194
+ * @throws {TypeError} 1 argument required
1195
+ * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6
1196
+ * @throws {RangeError} The start of an interval cannot be after its end
1197
+ * @throws {RangeError} Date in interval cannot be `Invalid Date`
1198
+ *
1199
+ * @example
1200
+ * // Each week within interval 6 October 2014 - 23 November 2014:
1201
+ * const result = eachWeekOfInterval({
1202
+ * start: new Date(2014, 9, 6),
1203
+ * end: new Date(2014, 10, 23)
1204
+ * })
1205
+ * //=> [
1206
+ * // Sun Oct 05 2014 00:00:00,
1207
+ * // Sun Oct 12 2014 00:00:00,
1208
+ * // Sun Oct 19 2014 00:00:00,
1209
+ * // Sun Oct 26 2014 00:00:00,
1210
+ * // Sun Nov 02 2014 00:00:00,
1211
+ * // Sun Nov 09 2014 00:00:00,
1212
+ * // Sun Nov 16 2014 00:00:00,
1213
+ * // Sun Nov 23 2014 00:00:00
1214
+ * // ]
1215
+ */
1216
+ function eachWeekOfInterval(dirtyInterval, options) {
1217
+ requiredArgs(1, arguments);
1218
+ var interval = dirtyInterval || {};
1219
+ var startDate = toDate(interval.start);
1220
+ var endDate = toDate(interval.end);
1221
+ var endTime = endDate.getTime();
1222
+
1223
+ // Throw an exception if start date is after end date or if any date is `Invalid Date`
1224
+ if (!(startDate.getTime() <= endTime)) {
1225
+ throw new RangeError('Invalid interval');
1226
+ }
1227
+ var startDateWeek = startOfWeek(startDate, options);
1228
+ var endDateWeek = startOfWeek(endDate, options);
1229
+
1230
+ // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet
1231
+ startDateWeek.setHours(15);
1232
+ endDateWeek.setHours(15);
1233
+ endTime = endDateWeek.getTime();
1234
+ var weeks = [];
1235
+ var currentWeek = startDateWeek;
1236
+ while (currentWeek.getTime() <= endTime) {
1237
+ currentWeek.setHours(0);
1238
+ weeks.push(toDate(currentWeek));
1239
+ currentWeek = addWeeks(currentWeek, 1);
1240
+ currentWeek.setHours(15);
1241
+ }
1242
+ return weeks;
1243
+ }
1244
+
1245
+ var DAY_NAMES = [
1246
+ {
1247
+ value: WeekDays.MONDAY,
1248
+ displayValue: WeekDaysAbbr.MON,
1249
+ },
1250
+ {
1251
+ value: WeekDays.TUESDAY,
1252
+ displayValue: WeekDaysAbbr.TUE,
1253
+ },
1254
+ {
1255
+ value: WeekDays.WEDNESDAY,
1256
+ displayValue: WeekDaysAbbr.WED,
1257
+ },
1258
+ {
1259
+ value: WeekDays.THURSDAY,
1260
+ displayValue: WeekDaysAbbr.THUR,
1261
+ },
1262
+ {
1263
+ value: WeekDays.FRIDAY,
1264
+ displayValue: WeekDaysAbbr.FRI,
1265
+ },
1266
+ {
1267
+ value: WeekDays.SATURDAY,
1268
+ displayValue: WeekDaysAbbr.SAT,
1269
+ },
1270
+ {
1271
+ value: WeekDays.SUNDAY,
1272
+ displayValue: WeekDaysAbbr.SUN,
1273
+ },
1274
+ ];
1275
+
1276
+ var CalendarDayGrid = function (_a) {
1277
+ var displayRange = _a.displayRange;
1278
+ var hasAutoFocused = useRef(false);
1279
+ var dayNumberGridRef = useRef(null);
1280
+ var context = useContext(ArcCalendarContext);
1281
+ var autoFocusRef = useCallback(function (el) {
1282
+ if (el &&
1283
+ el.tabIndex === 0 &&
1284
+ (context === null || context === void 0 ? void 0 : context.autoFocusOnMount) &&
1285
+ !hasAutoFocused.current) {
1286
+ el.focus();
1287
+ }
1288
+ if (document.activeElement === el) {
1289
+ hasAutoFocused.current = true;
1290
+ }
1291
+ }, [context === null || context === void 0 ? void 0 : context.autoFocusOnMount]);
1292
+ if (!context) {
1293
+ return null;
1294
+ }
1295
+ var onKeyboardNavigate = context.onKeyboardNavigate, onDayNumberClick = context.onDayNumberClick, onDayGridLeave = context.onDayGridLeave;
1296
+ var isFocusWithinDayGrid = Boolean(dayNumberGridRef &&
1297
+ dayNumberGridRef.current &&
1298
+ dayNumberGridRef.current.contains(document.activeElement));
1299
+ var handleKeyDown = function (e) {
1300
+ var key = e.key;
1301
+ var newDate = e.target.getAttribute("data-date");
1302
+ if (key === KeyNames.Tab) {
1303
+ return;
1304
+ }
1305
+ if (Object.values(KeyNames).includes(key)) {
1306
+ e.preventDefault();
1307
+ }
1308
+ if ([KeyNames.Space, KeyNames.Enter].includes(key) && newDate) {
1309
+ onDayNumberClick(dateWithoutTime(new Date(parseInt(newDate))))();
1310
+ }
1311
+ else {
1312
+ onKeyboardNavigate(e.key, e.shiftKey);
1313
+ }
1314
+ };
1315
+ var getWeeksInMonth = function (month) {
1316
+ return eachWeekOfInterval({ start: startOfMonth(month), end: endOfMonth(month) }, { weekStartsOn: 1 }).map(function (week) { return eachDayOfInterval({ start: week, end: addDays(week, 6) }); });
1317
+ };
1318
+ return (React__default.createElement("div", { ref: dayNumberGridRef, onMouseLeave: onDayGridLeave, className: classNames("arc-CalendarDayGrid", {
1319
+ "arc-CalendarDayGrid--dual": displayRange.length > 1,
1320
+ }) }, displayRange.map(function (month) { return (React__default.createElement("div", { key: month.getTime(), className: "arc-CalendarDayGrid-month" },
1321
+ React__default.createElement("table", { className: "arc-CalendarDayGrid-table" },
1322
+ React__default.createElement("thead", null,
1323
+ React__default.createElement("tr", null, DAY_NAMES.map(function (dayName) { return (React__default.createElement("th", { key: "".concat(month.getTime(), "-").concat(dayName.displayValue) },
1324
+ React__default.createElement(Text, { key: dayName.displayValue, size: "s" },
1325
+ React__default.createElement("b", { "aria-hidden": true }, dayName.displayValue)),
1326
+ React__default.createElement(VisuallyHidden, null, dayName.value))); }))),
1327
+ React__default.createElement("tbody", { onKeyDown: handleKeyDown }, getWeeksInMonth(month).map(function (week, i) { return (React__default.createElement("tr", { key: "".concat(month.getTime(), "-week-").concat(i) }, week.map(function (day) { return (React__default.createElement(CalendarDayNumber, { ref: autoFocusRef, shouldRender: isSameMonth(month, day), key: day.getTime(), date: day, isFocusWithinDayGrid: isFocusWithinDayGrid })); }))); }))))); })));
1328
+ };
1329
+
1330
+ var CalendarNavButton = function (_a) {
1331
+ var isDisabled = _a.isDisabled, onClick = _a.onClick, direction = _a.direction, ariaLabel = _a.ariaLabel;
1332
+ var icons = {
1333
+ previous: "calendarLeft",
1334
+ next: "calendarRight",
1335
+ };
1336
+ return (React__default.createElement("button", { "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick, type: "button", className: classNames("arc-CalendarNavButton", {
1337
+ "arc-CalendarNavButton--previous": direction === "previous",
1338
+ "arc-CalendarNavButton--next": direction === "next",
1339
+ }) },
1340
+ React__default.createElement("div", { className: "arc-CalendarNavButton-icon" },
1341
+ React__default.createElement(ThemeIcon, { icon: icons[direction] }))));
1342
+ };
1343
+
1344
+ var CalendarDoubleMonthView = function (_a) {
1345
+ var isPreviousMonthDisabled = _a.isPreviousMonthDisabled, isNextMonthDisabled = _a.isNextMonthDisabled, onNextMonthClick = _a.onNextMonthClick, onPreviousMonthClick = _a.onPreviousMonthClick;
1346
+ var context = useContext(ArcCalendarContext);
1347
+ if (!context) {
1348
+ return null;
1349
+ }
1350
+ var displayDate = context.displayDate;
1351
+ var displayRange = getDoubleMonthDisplayRange(displayDate);
1352
+ var getAriaLabel = function (date) {
1353
+ var months = getDoubleMonthDisplayRange(date);
1354
+ return "show ".concat(format(months[0], "MMMM yyyy"), " to ").concat(format(months[1], "MMMM yyyy"));
1355
+ };
1356
+ return (React__default.createElement(React__default.Fragment, null,
1357
+ React__default.createElement(VisuallyHidden, null,
1358
+ React__default.createElement(Heading, { level: "2" },
1359
+ React__default.createElement("span", { "aria-live": "polite" },
1360
+ "showing ",
1361
+ format(displayRange[0], "MMMM yyyy"),
1362
+ " to",
1363
+ " ",
1364
+ format(displayRange[1], "MMMM yyyy")))),
1365
+ React__default.createElement("div", { className: "arc-CalendarDoubleMonthView-header" },
1366
+ React__default.createElement("div", { className: "arc-CalendarDoubleMonthView-headerMonth" },
1367
+ React__default.createElement("div", { className: "arc-CalendarDoubleMonthView-headerMonthItem" },
1368
+ React__default.createElement(CalendarNavButton, { ariaLabel: getAriaLabel(subMonths(displayDate, 2)), direction: "previous", isDisabled: isPreviousMonthDisabled, onClick: onPreviousMonthClick })),
1369
+ React__default.createElement("div", { "aria-hidden": true, className: "arc-CalendarDoubleMonthView-headerMonthItem" },
1370
+ React__default.createElement(Heading, { level: "2", size: "s" }, format(displayRange[0], "MMM yyyy")))),
1371
+ React__default.createElement("div", { className: "arc-CalendarDoubleMonthView-headerMonth" },
1372
+ React__default.createElement("div", { "aria-hidden": true, className: "arc-CalendarDoubleMonthView-headerMonthItem" },
1373
+ React__default.createElement(Heading, { level: "2", size: "s" }, format(displayRange[1], "MMM yyyy"))),
1374
+ React__default.createElement("div", { className: "arc-CalendarDoubleMonthView-headerMonthItem" },
1375
+ React__default.createElement(CalendarNavButton, { ariaLabel: getAriaLabel(addMonths(displayDate, 2)), direction: "next", isDisabled: isNextMonthDisabled, onClick: onNextMonthClick })))),
1376
+ React__default.createElement(CalendarDayGrid, { displayRange: displayRange })));
1377
+ };
1378
+
1379
+ var CalendarMonthView = function (_a) {
1380
+ var isPreviousMonthDisabled = _a.isPreviousMonthDisabled, isNextMonthDisabled = _a.isNextMonthDisabled, onNextMonthClick = _a.onNextMonthClick, onPreviousMonthClick = _a.onPreviousMonthClick;
1381
+ var context = useContext(ArcCalendarContext);
1382
+ if (!context) {
1383
+ return null;
1384
+ }
1385
+ var displayDate = context.displayDate;
1386
+ return (React__default.createElement(React__default.Fragment, null,
1387
+ React__default.createElement("div", { className: "arc-CalendarMonthView-header" },
1388
+ React__default.createElement(CalendarNavButton, { ariaLabel: "Show ".concat(format(subMonths(displayDate, 1), "MMMM yyyy")), direction: "previous", isDisabled: isPreviousMonthDisabled, onClick: onPreviousMonthClick }),
1389
+ React__default.createElement("div", { className: "arc-CalendarMonthView-headingContainer" },
1390
+ React__default.createElement(VisuallyHidden, null,
1391
+ React__default.createElement(Heading, { level: "2" },
1392
+ React__default.createElement("span", { "aria-live": "polite" },
1393
+ "showing ",
1394
+ format(displayDate, "MMMM yyyy")))),
1395
+ React__default.createElement("div", { "aria-hidden": true },
1396
+ React__default.createElement(Heading, { size: "s", level: "2" }, format(displayDate, "MMM yyyy")))),
1397
+ React__default.createElement(CalendarNavButton, { direction: "next", ariaLabel: "Show ".concat(format(addMonths(displayDate, 1), "MMMM yyyy")), isDisabled: isNextMonthDisabled, onClick: onNextMonthClick })),
1398
+ React__default.createElement(CalendarDayGrid, { displayRange: [displayDate] })));
1399
+ };
1400
+
1401
+ var CalendarMonthYearView = function (_a) {
1402
+ var isPreviousMonthDisabled = _a.isPreviousMonthDisabled, isNextMonthDisabled = _a.isNextMonthDisabled, onMonthChange = _a.onMonthChange, onYearChange = _a.onYearChange, onNextMonthClick = _a.onNextMonthClick, onPreviousMonthClick = _a.onPreviousMonthClick;
1403
+ var context = useContext(ArcCalendarContext);
1404
+ if (!context) {
1405
+ return null;
1406
+ }
1407
+ var displayDate = context.displayDate, minDate = context.minDate, maxDate = context.maxDate;
1408
+ var monthOptions = Array.from({ length: 12 })
1409
+ .map(function (_, i) { return ({
1410
+ value: i,
1411
+ text: format(new Date(2023, i, 1), "MMMM"),
1412
+ }); })
1413
+ .filter(function (_a) {
1414
+ var value = _a.value;
1415
+ var currentDateYear = getYear(displayDate);
1416
+ var date = dateWithoutTime(new Date(currentDateYear, value, 1));
1417
+ return ((!minDate || !isMonthBeforeMinDate(date, minDate)) &&
1418
+ (!maxDate || !isMonthAfterMaxDate(date, maxDate)));
1419
+ });
1420
+ var yearOptions = Array.from({ length: 21 }, function (_, i) {
1421
+ var value = getYear(displayDate) - 10 + i;
1422
+ return {
1423
+ value: value,
1424
+ text: value,
1425
+ };
1426
+ }).filter(function (_a) {
1427
+ var value = _a.value;
1428
+ return ((minDate ? value >= getYear(minDate) : true) &&
1429
+ (maxDate ? value <= getYear(maxDate) : true));
1430
+ });
1431
+ return (React__default.createElement(React__default.Fragment, null,
1432
+ React__default.createElement("div", { className: "arc-CalendarMonthYearView-header" },
1433
+ React__default.createElement(VisuallyHidden, null,
1434
+ React__default.createElement(Heading, { level: "2" },
1435
+ React__default.createElement("span", { "aria-live": "polite" },
1436
+ "showing ",
1437
+ format(displayDate, "MMMM yyyy")))),
1438
+ React__default.createElement("div", { className: "arc-CalendarMonthYearView-selectWrapper" },
1439
+ React__default.createElement("div", null,
1440
+ React__default.createElement(CalendarDateSelect, { options: monthOptions, ariaLabel: "month", onChange: function (e) { return onMonthChange(parseInt(e.target.value)); }, name: "arc-CalendarMonthYearView-monthSelect", displayValue: format(displayDate, "MMM"), value: "".concat(getMonth(displayDate)) })),
1441
+ React__default.createElement("div", { className: "arc-CalendarMonthYearView-yearSelectContainer" },
1442
+ React__default.createElement(CalendarDateSelect, { options: yearOptions, ariaLabel: "year", onChange: function (e) { return onYearChange(parseInt(e.target.value)); }, name: "arc-CalendarMonthYearView-yearSelect", value: getYear(displayDate) }))),
1443
+ React__default.createElement("div", { className: "arc-CalendarMonthYearView-navButtonContainer" },
1444
+ React__default.createElement(CalendarNavButton, { direction: "previous", ariaLabel: "Show ".concat(format(subMonths(displayDate, 1), "MMMM yyyy")), isDisabled: isPreviousMonthDisabled, onClick: onPreviousMonthClick }),
1445
+ React__default.createElement(CalendarNavButton, { direction: "next", ariaLabel: "Show ".concat(format(addMonths(displayDate, 1), "MMMM yyyy")), isDisabled: isNextMonthDisabled, onClick: onNextMonthClick }))),
1446
+ React__default.createElement(CalendarDayGrid, { displayRange: [displayDate] })));
1447
+ };
1448
+
1449
+ var showPreviousMonthHandler = function (payload, state) {
1450
+ return __assign(__assign({}, state), { focusDate: getFocusDate({
1451
+ date: subMonths(state.focusDate, 1),
1452
+ minDate: payload.minDate,
1453
+ }), displayDate: subMonths(state.displayDate, 1) });
1454
+ };
1455
+
1456
+ var showNextMonthHandler = function (payload, state) {
1457
+ return __assign(__assign({}, state), { focusDate: getFocusDate({
1458
+ date: addMonths(state.focusDate, 1),
1459
+ maxDate: payload.maxDate,
1460
+ }), displayDate: addMonths(state.displayDate, 1) });
1461
+ };
1462
+
1463
+ var showPreviousDoubleMonthHandler = function (payload, state) {
1464
+ return __assign(__assign({}, state), { focusDate: getFocusDate({
1465
+ date: subMonths(state.focusDate, 2),
1466
+ minDate: payload.minDate,
1467
+ }), displayDate: subMonths(state.displayDate, 2) });
1468
+ };
1469
+
1470
+ var showNextDoubleMonthHandler = function (payload, state) {
1471
+ return __assign(__assign({}, state), { focusDate: getFocusDate({
1472
+ date: addMonths(state.focusDate, 2),
1473
+ maxDate: payload.maxDate,
1474
+ }), displayDate: addMonths(state.displayDate, 2) });
1475
+ };
1476
+
1477
+ var rangeSelectHandler = function (payload, state) {
1478
+ return __assign(__assign({}, state), { focusDate: payload.date, highlightedRange: payload.range });
1479
+ };
1480
+
1481
+ var highlightRangeHandler = function (payload, state) {
1482
+ return __assign(__assign({}, state), { highlightedRange: getHighlightRange({
1483
+ date: payload.date,
1484
+ range: payload.range,
1485
+ minDate: payload.minDate,
1486
+ maxDate: payload.maxDate,
1487
+ }) });
1488
+ };
1489
+
1490
+ var dayNumberSelectHandler = function (payload, state) {
1491
+ return __assign(__assign({}, state), { focusDate: payload });
1492
+ };
1493
+
1494
+ var dayGridLeaveHandler = function (payload, state) {
1495
+ if (payload.selectionType === "range" &&
1496
+ payload.range.filter(function (date) { return Boolean(date); }).length === 1) {
1497
+ return __assign(__assign({}, state), { highlightedRange: [] });
1498
+ }
1499
+ return __assign({}, state);
1500
+ };
1501
+
1502
+ var dropDownChangeYearHandler = function (payload, state) {
1503
+ var year = payload.year, minDate = payload.minDate, maxDate = payload.maxDate;
1504
+ var yearsToAdd = year - getYear(state.displayDate);
1505
+ var newDisplayDate = addYears(state.displayDate, yearsToAdd);
1506
+ var focusDate = getFocusDate({
1507
+ date: addYears(state.focusDate, yearsToAdd),
1508
+ minDate: payload.minDate,
1509
+ maxDate: payload.maxDate,
1510
+ });
1511
+ if (minDate && isBefore(newDisplayDate, minDate)) {
1512
+ return __assign(__assign({}, state), { focusDate: focusDate, displayDate: minDate });
1513
+ }
1514
+ if (maxDate && isAfter(newDisplayDate, maxDate)) {
1515
+ return __assign(__assign({}, state), { focusDate: focusDate, displayDate: maxDate });
1516
+ }
1517
+ return __assign(__assign({}, state), { focusDate: focusDate, displayDate: newDisplayDate });
1518
+ };
1519
+
1520
+ var dropDownChangeMonthHandler = function (payload, state) {
1521
+ return __assign(__assign({}, state), { focusDate: getFocusDate({
1522
+ date: setMonth(state.focusDate, payload.month),
1523
+ minDate: payload.minDate,
1524
+ maxDate: payload.maxDate,
1525
+ }), displayDate: setMonth(state.displayDate, payload.month) });
1526
+ };
1527
+
1528
+ /**
1529
+ * @name isWithinInterval
1530
+ * @category Interval Helpers
1531
+ * @summary Is the given date within the interval?
1532
+ *
1533
+ * @description
1534
+ * Is the given date within the interval? (Including start and end.)
1535
+ *
1536
+ * @param {Date|Number} date - the date to check
1537
+ * @param {Interval} interval - the interval to check
1538
+ * @returns {Boolean} the date is within the interval
1539
+ * @throws {TypeError} 2 arguments required
1540
+ * @throws {RangeError} The start of an interval cannot be after its end
1541
+ * @throws {RangeError} Date in interval cannot be `Invalid Date`
1542
+ *
1543
+ * @example
1544
+ * // For the date within the interval:
1545
+ * isWithinInterval(new Date(2014, 0, 3), {
1546
+ * start: new Date(2014, 0, 1),
1547
+ * end: new Date(2014, 0, 7)
1548
+ * })
1549
+ * //=> true
1550
+ *
1551
+ * @example
1552
+ * // For the date outside of the interval:
1553
+ * isWithinInterval(new Date(2014, 0, 10), {
1554
+ * start: new Date(2014, 0, 1),
1555
+ * end: new Date(2014, 0, 7)
1556
+ * })
1557
+ * //=> false
1558
+ *
1559
+ * @example
1560
+ * // For date equal to interval start:
1561
+ * isWithinInterval(date, { start, end: date }) // => true
1562
+ *
1563
+ * @example
1564
+ * // For date equal to interval end:
1565
+ * isWithinInterval(date, { start: date, end }) // => true
1566
+ */
1567
+ function isWithinInterval(dirtyDate, interval) {
1568
+ requiredArgs(2, arguments);
1569
+ var time = toDate(dirtyDate).getTime();
1570
+ var startTime = toDate(interval.start).getTime();
1571
+ var endTime = toDate(interval.end).getTime();
1572
+
1573
+ // Throw an exception if start date is after end date or if any date is `Invalid Date`
1574
+ if (!(startTime <= endTime)) {
1575
+ throw new RangeError('Invalid interval');
1576
+ }
1577
+ return time >= startTime && time <= endTime;
1578
+ }
1579
+
1580
+ /**
1581
+ * @name setYear
1582
+ * @category Year Helpers
1583
+ * @summary Set the year to the given date.
1584
+ *
1585
+ * @description
1586
+ * Set the year to the given date.
1587
+ *
1588
+ * @param {Date|Number} date - the date to be changed
1589
+ * @param {Number} year - the year of the new date
1590
+ * @returns {Date} the new date with the year set
1591
+ * @throws {TypeError} 2 arguments required
1592
+ *
1593
+ * @example
1594
+ * // Set year 2013 to 1 September 2014:
1595
+ * const result = setYear(new Date(2014, 8, 1), 2013)
1596
+ * //=> Sun Sep 01 2013 00:00:00
1597
+ */
1598
+ function setYear(dirtyDate, dirtyYear) {
1599
+ requiredArgs(2, arguments);
1600
+ var date = toDate(dirtyDate);
1601
+ var year = toInteger(dirtyYear);
1602
+
1603
+ // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
1604
+ if (isNaN(date.getTime())) {
1605
+ return new Date(NaN);
1606
+ }
1607
+ date.setFullYear(year);
1608
+ return date;
1609
+ }
1610
+
1611
+ var calendarKeydownHandler = function (payload, state) {
1612
+ var displayDate = state.displayDate, focusDate = state.focusDate, highlightedRange = state.highlightedRange;
1613
+ var minDate = payload.minDate, maxDate = payload.maxDate, calendarType = payload.calendarType, key = payload.key, shiftKey = payload.shiftKey, range = payload.range, selectionType = payload.selectionType;
1614
+ var isNavigatingByYear = shiftKey && [KeyNames.PageUp, KeyNames.PageDown].includes(key);
1615
+ var keyDownDate = getKeyDownDate({
1616
+ focusDate: focusDate,
1617
+ key: key,
1618
+ shiftKey: shiftKey,
1619
+ });
1620
+ var newFocusDate = getFocusDate({
1621
+ minDate: minDate,
1622
+ maxDate: maxDate,
1623
+ date: keyDownDate,
1624
+ });
1625
+ var newHighlightedRange = selectionType === "range"
1626
+ ? getHighlightRange({
1627
+ date: keyDownDate,
1628
+ range: range,
1629
+ minDate: minDate,
1630
+ maxDate: maxDate,
1631
+ })
1632
+ : highlightedRange;
1633
+ var focusDateIsMinOrMax = (maxDate && isEqual(newFocusDate, maxDate)) ||
1634
+ (minDate && isEqual(newFocusDate, minDate));
1635
+ var _a = getDoubleMonthDisplayRange(displayDate), doubleMonthFirstMonth = _a[0], doubleMonthSecondMonth = _a[1];
1636
+ var doubleMonthVisibleRange = {
1637
+ start: startOfMonth(doubleMonthFirstMonth),
1638
+ end: endOfMonth(doubleMonthSecondMonth),
1639
+ };
1640
+ var singleMonthVisibleRange = {
1641
+ start: startOfMonth(displayDate),
1642
+ end: endOfMonth(displayDate),
1643
+ };
1644
+ var isNewFocusDateVisible = isWithinInterval(newFocusDate, calendarType === "double"
1645
+ ? doubleMonthVisibleRange
1646
+ : singleMonthVisibleRange);
1647
+ var commonState = __assign(__assign({}, state), { focusDate: newFocusDate, highlightedRange: newHighlightedRange });
1648
+ if (!isNewFocusDateVisible &&
1649
+ !focusDateIsMinOrMax &&
1650
+ isNavigatingByYear &&
1651
+ calendarType === "double") {
1652
+ return __assign(__assign({}, commonState), { displayDate: setYear(displayDate, getYear(newFocusDate)) });
1653
+ }
1654
+ if (!isNewFocusDateVisible) {
1655
+ return __assign(__assign({}, commonState), { displayDate: startOfMonth(newFocusDate) });
1656
+ }
1657
+ return commonState;
1658
+ };
1659
+
1660
+ var defaultHandler = function (state) {
1661
+ return __assign({}, state);
1662
+ };
1663
+
1664
+ var reducer = function (state, action) {
1665
+ switch (action.type) {
1666
+ case "DAY_NUMBER_SELECT":
1667
+ return dayNumberSelectHandler(action.payload, state);
1668
+ case "RANGE_SELECT":
1669
+ return rangeSelectHandler(action.payload, state);
1670
+ case "HIGHLIGHT_RANGE":
1671
+ return highlightRangeHandler(action.payload, state);
1672
+ case "DAY_GRID_LEAVE":
1673
+ return dayGridLeaveHandler(action.payload, state);
1674
+ case "SHOW_PREVIOUS_MONTH":
1675
+ return showPreviousMonthHandler(action.payload, state);
1676
+ case "SHOW_NEXT_MONTH":
1677
+ return showNextMonthHandler(action.payload, state);
1678
+ case "SHOW_PREVIOUS_DOUBLE_MONTH":
1679
+ return showPreviousDoubleMonthHandler(action.payload, state);
1680
+ case "SHOW_NEXT_DOUBLE_MONTH":
1681
+ return showNextDoubleMonthHandler(action.payload, state);
1682
+ case "DROPDOWN_CHANGE_YEAR":
1683
+ return dropDownChangeYearHandler(action.payload, state);
1684
+ case "DROPDOWN_CHANGE_MONTH":
1685
+ return dropDownChangeMonthHandler(action.payload, state);
1686
+ case "CALENDAR_KEYDOWN":
1687
+ return calendarKeydownHandler(action.payload, state);
1688
+ default:
1689
+ return defaultHandler(state);
1690
+ }
1691
+ };
1692
+
1693
+ var CalendarFooter = function (_a) {
1694
+ var onCancelClick = _a.onCancelClick;
1695
+ return (React__default.createElement("div", { className: "arc-CalendarFooter" },
1696
+ React__default.createElement("button", { type: "button", className: "arc-CalendarFooter-button", onClick: onCancelClick }, "Cancel")));
1697
+ };
1698
+
1699
+ var CalendarWrapper = function (_a) {
1700
+ var uncontained = _a.uncontained, children = _a.children;
1701
+ return (React__default.createElement("div", { className: classNames("arc-CalendarWrapper", {
1702
+ "arc-CalendarWrapper--uncontained": uncontained,
1703
+ }) },
1704
+ React__default.createElement(Surface, { background: "light-white" },
1705
+ React__default.createElement("div", { className: "arc-CalendarWrapper-inner" }, children))));
1706
+ };
1707
+
1708
+ /** Use `Calendar` to clearly present available dates and allowing users to choose a way to enter information. */
1709
+ var Calendar = function (_a) {
1710
+ var _b = _a.type, type = _b === void 0 ? "month" : _b, _c = _a.selectionType, selectionType = _c === void 0 ? "single" : _c, _d = _a.autoFocusOnMount, autoFocusOnMount = _d === void 0 ? false : _d, _e = _a.selectedRange, rawSelectedRange = _e === void 0 ? [] : _e, _f = _a.selectedDate, rawSelectedDate = _f === void 0 ? new Date() : _f, rawDisabledDates = _a.disabledDates, rawMinDate = _a.minDate, rawMaxDate = _a.maxDate, onCancelClick = _a.onCancelClick, onDateSelect = _a.onDateSelect, onRangeSelect = _a.onRangeSelect, _g = _a.uncontained, uncontained = _g === void 0 ? false : _g, props = __rest(_a, ["type", "selectionType", "autoFocusOnMount", "selectedRange", "selectedDate", "disabledDates", "minDate", "maxDate", "onCancelClick", "onDateSelect", "onRangeSelect", "uncontained"]);
1711
+ var todayDate = dateWithoutTime(new Date());
1712
+ var selectedDate = dateWithoutTime(rawSelectedDate);
1713
+ var selectedRange = rawSelectedRange
1714
+ .filter(function (rangeDate) { return Boolean(rangeDate); })
1715
+ .map(function (rangeDate) { return dateWithoutTime(rangeDate); });
1716
+ var _h = useState(false), isClientLoaded = _h[0], setIsClientLoaded = _h[1];
1717
+ var _j = useReducer(reducer, {
1718
+ displayDate: selectionType === "single"
1719
+ ? startOfMonth(selectedDate)
1720
+ : startOfMonth(selectedRange[0] || todayDate),
1721
+ focusDate: selectionType === "single"
1722
+ ? selectedDate
1723
+ : selectedRange[0] || todayDate,
1724
+ highlightedRange: selectedRange,
1725
+ }), _k = _j[0], displayDate = _k.displayDate, focusDate = _k.focusDate, highlightedRange = _k.highlightedRange, dispatch = _j[1];
1726
+ var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
1727
+ useEffect(function () {
1728
+ setIsClientLoaded(true);
1729
+ }, []);
1730
+ var disabledDates = rawDisabledDates === null || rawDisabledDates === void 0 ? void 0 : rawDisabledDates.map(function (date) { return dateWithoutTime(date); });
1731
+ var minDate = rawMinDate && dateWithoutTime(rawMinDate);
1732
+ var maxDate = rawMaxDate && dateWithoutTime(rawMaxDate);
1733
+ var calendarType = getCalendarType(type, isMinWidthArcBreakpointM);
1734
+ var doubleMonthDisplayRange = getDoubleMonthDisplayRange(displayDate);
1735
+ var isPreviousMonthDisabled = minDate
1736
+ ? isMonthBeforeMinDate(subMonths(displayDate, 1), minDate)
1737
+ : false;
1738
+ var isNextMonthDisabled = maxDate
1739
+ ? isMonthAfterMaxDate(addMonths(displayDate, 1), maxDate)
1740
+ : false;
1741
+ var isDoubleMonthPreviousDisabled = minDate
1742
+ ? isMonthBeforeMinDate(subMonths(doubleMonthDisplayRange[0], 1), minDate)
1743
+ : false;
1744
+ var isDoubleMonthNextDisabled = maxDate
1745
+ ? isMonthAfterMaxDate(addMonths(doubleMonthDisplayRange[1], 1), maxDate)
1746
+ : false;
1747
+ var setDateRange = function (value) {
1748
+ var _a = processSelectedRange({
1749
+ value: value,
1750
+ range: selectedRange,
1751
+ disabledDates: disabledDates,
1752
+ }), rangeOnChangeValue = _a.rangeOnChangeValue, rangeValue = _a.rangeValue;
1753
+ dispatch({
1754
+ type: "RANGE_SELECT",
1755
+ payload: {
1756
+ date: value,
1757
+ range: rangeValue,
1758
+ },
1759
+ });
1760
+ onRangeSelect && onRangeSelect(rangeOnChangeValue);
1761
+ };
1762
+ var setNewDate = function (value) {
1763
+ dispatch({
1764
+ type: "DAY_NUMBER_SELECT",
1765
+ payload: value,
1766
+ });
1767
+ onDateSelect && onDateSelect(value);
1768
+ };
1769
+ var onDayNumberHover = function (date) { return function () {
1770
+ selectionType === "range" &&
1771
+ dispatch({
1772
+ type: "HIGHLIGHT_RANGE",
1773
+ payload: {
1774
+ date: date,
1775
+ minDate: minDate,
1776
+ maxDate: maxDate,
1777
+ range: selectedRange,
1778
+ },
1779
+ });
1780
+ }; };
1781
+ var handleDateSelection = function (date) {
1782
+ var isDisabled = isDisabledDate(date, disabledDates, minDate, maxDate);
1783
+ if (isDisabled)
1784
+ return;
1785
+ selectionType === "single" ? setNewDate(date) : setDateRange(date);
1786
+ };
1787
+ var onDayNumberClick = function (date) { return function () {
1788
+ handleDateSelection(date);
1789
+ }; };
1790
+ var onCancelButtonClick = function () {
1791
+ onCancelClick && onCancelClick();
1792
+ };
1793
+ var onDayGridLeave = function () {
1794
+ dispatch({
1795
+ type: "DAY_GRID_LEAVE",
1796
+ payload: {
1797
+ selectionType: selectionType,
1798
+ range: selectedRange,
1799
+ },
1800
+ });
1801
+ };
1802
+ var onPreviousMonthClick = function () {
1803
+ dispatch({
1804
+ type: "SHOW_PREVIOUS_MONTH",
1805
+ payload: {
1806
+ minDate: minDate,
1807
+ },
1808
+ });
1809
+ };
1810
+ var onNextMonthClick = function () {
1811
+ dispatch({
1812
+ type: "SHOW_NEXT_MONTH",
1813
+ payload: {
1814
+ maxDate: maxDate,
1815
+ },
1816
+ });
1817
+ };
1818
+ var onDoubleViewPreviousClick = function () {
1819
+ dispatch({
1820
+ type: "SHOW_PREVIOUS_DOUBLE_MONTH",
1821
+ payload: {
1822
+ minDate: minDate,
1823
+ },
1824
+ });
1825
+ };
1826
+ var onDoubleViewNextClick = function () {
1827
+ dispatch({
1828
+ type: "SHOW_NEXT_DOUBLE_MONTH",
1829
+ payload: {
1830
+ maxDate: maxDate,
1831
+ },
1832
+ });
1833
+ };
1834
+ var onYearChange = function (year) {
1835
+ dispatch({
1836
+ type: "DROPDOWN_CHANGE_YEAR",
1837
+ payload: {
1838
+ year: year,
1839
+ minDate: minDate,
1840
+ maxDate: maxDate,
1841
+ },
1842
+ });
1843
+ };
1844
+ var onMonthChange = function (month) {
1845
+ dispatch({
1846
+ type: "DROPDOWN_CHANGE_MONTH",
1847
+ payload: {
1848
+ month: month,
1849
+ minDate: minDate,
1850
+ maxDate: maxDate,
1851
+ },
1852
+ });
1853
+ };
1854
+ var onKeyboardNavigate = function (key, shiftKey) {
1855
+ dispatch({
1856
+ type: "CALENDAR_KEYDOWN",
1857
+ payload: {
1858
+ minDate: minDate,
1859
+ maxDate: maxDate,
1860
+ selectionType: selectionType,
1861
+ calendarType: calendarType,
1862
+ key: key,
1863
+ shiftKey: shiftKey,
1864
+ range: selectedRange,
1865
+ },
1866
+ });
1867
+ };
1868
+ return (React__default.createElement(ArcCalendarContext.Provider, __assign({ value: {
1869
+ minDate: minDate,
1870
+ maxDate: maxDate,
1871
+ focusDate: focusDate,
1872
+ todayDate: todayDate,
1873
+ displayDate: displayDate,
1874
+ onDayGridLeave: onDayGridLeave,
1875
+ disabledDates: disabledDates,
1876
+ selectedDate: selectedDate,
1877
+ selectionType: selectionType,
1878
+ selectedRange: selectedRange,
1879
+ highlightedRange: highlightedRange,
1880
+ onDayNumberClick: onDayNumberClick,
1881
+ onDayNumberHover: onDayNumberHover,
1882
+ onKeyboardNavigate: onKeyboardNavigate,
1883
+ autoFocusOnMount: autoFocusOnMount,
1884
+ } }, filterAttrs(props)),
1885
+ React__default.createElement("div", { style: { display: isClientLoaded ? "block" : "none" } },
1886
+ React__default.createElement(CalendarWrapper, { uncontained: uncontained },
1887
+ calendarType === "year" && (React__default.createElement(CalendarMonthYearView, { isPreviousMonthDisabled: isPreviousMonthDisabled, isNextMonthDisabled: isNextMonthDisabled, onPreviousMonthClick: onPreviousMonthClick, onNextMonthClick: onNextMonthClick, onMonthChange: onMonthChange, onYearChange: onYearChange })),
1888
+ calendarType === "month" && (React__default.createElement(CalendarMonthView, { isPreviousMonthDisabled: isPreviousMonthDisabled, isNextMonthDisabled: isNextMonthDisabled, onPreviousMonthClick: onPreviousMonthClick, onNextMonthClick: onNextMonthClick })),
1889
+ calendarType === "double" && (React__default.createElement(CalendarDoubleMonthView, { isPreviousMonthDisabled: isDoubleMonthPreviousDisabled, isNextMonthDisabled: isDoubleMonthNextDisabled, onPreviousMonthClick: onDoubleViewPreviousClick, onNextMonthClick: onDoubleViewNextClick })),
1890
+ onCancelClick && (React__default.createElement(CalendarFooter, { onCancelClick: onCancelButtonClick }))))));
1891
+ };
1892
+
1893
+ export { Calendar as C, isAfter as a, compareAsc as c, isBefore as i };