@easypost/easy-ui 1.0.0-alpha.7 → 1.0.0-alpha.71

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 (939) hide show
  1. package/Badge/index.js +16 -16
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +7 -7
  4. package/Banner/index.mjs +5 -5
  5. package/Button/Button.d.ts +12 -10
  6. package/Button/Button.d.ts.map +1 -1
  7. package/Button/Button.stories.d.ts +11 -9
  8. package/Button/Button.stories.d.ts.map +1 -1
  9. package/Button/index.js +2 -92
  10. package/Button/index.mjs +2 -92
  11. package/Button/utilities.d.ts +4 -0
  12. package/Button/utilities.d.ts.map +1 -1
  13. package/CHANGELOG.md +552 -0
  14. package/Calendar/Calendar.d.ts +67 -0
  15. package/Calendar/Calendar.d.ts.map +1 -0
  16. package/Calendar/Calendar.stories.d.ts +15 -0
  17. package/Calendar/Calendar.stories.d.ts.map +1 -0
  18. package/Calendar/Calendar.test.d.ts +2 -0
  19. package/Calendar/Calendar.test.d.ts.map +1 -0
  20. package/Calendar/CalendarBase.d.ts +57 -0
  21. package/Calendar/CalendarBase.d.ts.map +1 -0
  22. package/Calendar/CalendarCell.d.ts +12 -0
  23. package/Calendar/CalendarCell.d.ts.map +1 -0
  24. package/Calendar/CalendarGrid.d.ts +9 -0
  25. package/Calendar/CalendarGrid.d.ts.map +1 -0
  26. package/Calendar/CalendarHeader.d.ts +20 -0
  27. package/Calendar/CalendarHeader.d.ts.map +1 -0
  28. package/Calendar/index.d.ts +2 -0
  29. package/Calendar/index.d.ts.map +1 -0
  30. package/Calendar/index.js +4 -0
  31. package/Calendar/index.mjs +4 -0
  32. package/Card/Card.d.ts +62 -5
  33. package/Card/Card.d.ts.map +1 -1
  34. package/Card/Card.stories.d.ts +5 -0
  35. package/Card/Card.stories.d.ts.map +1 -1
  36. package/Card/index.js +3 -84
  37. package/Card/index.mjs +3 -84
  38. package/CheckableCard/CheckableCard.d.ts +28 -0
  39. package/CheckableCard/CheckableCard.d.ts.map +1 -0
  40. package/CheckableCard/CheckableCard.stories.d.ts +7 -0
  41. package/CheckableCard/CheckableCard.stories.d.ts.map +1 -0
  42. package/CheckableCard/CheckableCard.test.d.ts +2 -0
  43. package/CheckableCard/CheckableCard.test.d.ts.map +1 -0
  44. package/CheckableCard/index.d.ts +2 -0
  45. package/CheckableCard/index.d.ts.map +1 -0
  46. package/CheckableCard/index.js +65 -0
  47. package/CheckableCard/index.mjs +65 -0
  48. package/Checkbox/Checkbox.d.ts +1 -1
  49. package/Checkbox/Checkbox.d.ts.map +1 -1
  50. package/Checkbox/Checkbox.stories.d.ts +1 -0
  51. package/Checkbox/Checkbox.stories.d.ts.map +1 -1
  52. package/Checkbox/Checkbox.test.d.ts +1 -2
  53. package/Checkbox/Checkbox.test.d.ts.map +1 -1
  54. package/Checkbox/index.js +3 -231
  55. package/Checkbox/index.mjs +3 -215
  56. package/CodeBlock/CodeBlock.d.ts +6 -0
  57. package/CodeBlock/CodeBlock.d.ts.map +1 -1
  58. package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
  59. package/CodeBlock/LanguageMenu.d.ts.map +1 -1
  60. package/CodeBlock/index.js +177 -177
  61. package/CodeBlock/index.mjs +160 -160
  62. package/CodeSnippet/CodeSnippet.d.ts +3 -3
  63. package/CodeSnippet/CodeSnippet.d.ts.map +1 -1
  64. package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -1
  65. package/CodeSnippet/SyntaxHighlighter.d.ts +7 -0
  66. package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -1
  67. package/CodeSnippet/index.js +2 -9
  68. package/CodeSnippet/index.mjs +2 -9
  69. package/CodeSnippet/theme.d.ts +0 -1
  70. package/CodeSnippet/theme.d.ts.map +1 -1
  71. package/DataGrid/ActionsCellContent.d.ts +8 -0
  72. package/DataGrid/ActionsCellContent.d.ts.map +1 -0
  73. package/DataGrid/Cell.d.ts +15 -0
  74. package/DataGrid/Cell.d.ts.map +1 -0
  75. package/DataGrid/ColumnHeader.d.ts +10 -0
  76. package/DataGrid/ColumnHeader.d.ts.map +1 -0
  77. package/DataGrid/DataGrid.d.ts +39 -0
  78. package/DataGrid/DataGrid.d.ts.map +1 -0
  79. package/DataGrid/DataGrid.stories.d.ts +19 -0
  80. package/DataGrid/DataGrid.stories.d.ts.map +1 -0
  81. package/DataGrid/DataGrid.test.d.ts +2 -0
  82. package/DataGrid/DataGrid.test.d.ts.map +1 -0
  83. package/DataGrid/ExpandCellContent.d.ts +8 -0
  84. package/DataGrid/ExpandCellContent.d.ts.map +1 -0
  85. package/DataGrid/ExpandedRowContent.d.ts +7 -0
  86. package/DataGrid/ExpandedRowContent.d.ts.map +1 -0
  87. package/DataGrid/HeaderRow.d.ts +11 -0
  88. package/DataGrid/HeaderRow.d.ts.map +1 -0
  89. package/DataGrid/Row.d.ts +16 -0
  90. package/DataGrid/Row.d.ts.map +1 -0
  91. package/DataGrid/RowGroup.d.ts +8 -0
  92. package/DataGrid/RowGroup.d.ts.map +1 -0
  93. package/DataGrid/SortIndicator.d.ts +7 -0
  94. package/DataGrid/SortIndicator.d.ts.map +1 -0
  95. package/DataGrid/Table.d.ts +8 -0
  96. package/DataGrid/Table.d.ts.map +1 -0
  97. package/DataGrid/VisuallyHiddenCellContent.d.ts +7 -0
  98. package/DataGrid/VisuallyHiddenCellContent.d.ts.map +1 -0
  99. package/DataGrid/constants.d.ts +5 -0
  100. package/DataGrid/constants.d.ts.map +1 -0
  101. package/DataGrid/context.d.ts +31 -0
  102. package/DataGrid/context.d.ts.map +1 -0
  103. package/DataGrid/index.d.ts +2 -0
  104. package/DataGrid/index.d.ts.map +1 -0
  105. package/DataGrid/index.js +2738 -0
  106. package/DataGrid/index.mjs +2738 -0
  107. package/DataGrid/useEdgeInterceptors.d.ts +15 -0
  108. package/DataGrid/useEdgeInterceptors.d.ts.map +1 -0
  109. package/DataGrid/useExpandedRow.d.ts +14 -0
  110. package/DataGrid/useExpandedRow.d.ts.map +1 -0
  111. package/DataGrid/useGridTemplate.d.ts +14 -0
  112. package/DataGrid/useGridTemplate.d.ts.map +1 -0
  113. package/DatePicker/DateField.d.ts +14 -0
  114. package/DatePicker/DateField.d.ts.map +1 -0
  115. package/DatePicker/DatePicker.d.ts +91 -0
  116. package/DatePicker/DatePicker.d.ts.map +1 -0
  117. package/DatePicker/DatePicker.stories.d.ts +14 -0
  118. package/DatePicker/DatePicker.stories.d.ts.map +1 -0
  119. package/DatePicker/DatePicker.test.d.ts +2 -0
  120. package/DatePicker/DatePicker.test.d.ts.map +1 -0
  121. package/DatePicker/DatePickerBase.d.ts +32 -0
  122. package/DatePicker/DatePickerBase.d.ts.map +1 -0
  123. package/DatePicker/DatePickerOverlay.d.ts +12 -0
  124. package/DatePicker/DatePickerOverlay.d.ts.map +1 -0
  125. package/DatePicker/DatePickerTrigger.d.ts +20 -0
  126. package/DatePicker/DatePickerTrigger.d.ts.map +1 -0
  127. package/DatePicker/index.d.ts +2 -0
  128. package/DatePicker/index.d.ts.map +1 -0
  129. package/DatePicker/index.js +275 -0
  130. package/DatePicker/index.mjs +275 -0
  131. package/DateRangePicker/DateRangePicker.d.ts +89 -0
  132. package/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  133. package/DateRangePicker/DateRangePicker.stories.d.ts +14 -0
  134. package/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -0
  135. package/DateRangePicker/DateRangePicker.test.d.ts +2 -0
  136. package/DateRangePicker/DateRangePicker.test.d.ts.map +1 -0
  137. package/DateRangePicker/index.d.ts +2 -0
  138. package/DateRangePicker/index.d.ts.map +1 -0
  139. package/DateRangePicker/index.js +434 -0
  140. package/DateRangePicker/index.mjs +434 -0
  141. package/Drawer/Drawer.d.ts +53 -0
  142. package/Drawer/Drawer.d.ts.map +1 -0
  143. package/Drawer/Drawer.stories.d.ts +14 -0
  144. package/Drawer/Drawer.stories.d.ts.map +1 -0
  145. package/Drawer/Drawer.test.d.ts +2 -0
  146. package/Drawer/Drawer.test.d.ts.map +1 -0
  147. package/Drawer/DrawerBanner.d.ts +9 -0
  148. package/Drawer/DrawerBanner.d.ts.map +1 -0
  149. package/Drawer/DrawerBody.d.ts +10 -0
  150. package/Drawer/DrawerBody.d.ts.map +1 -0
  151. package/Drawer/DrawerCloseButton.d.ts +3 -0
  152. package/Drawer/DrawerCloseButton.d.ts.map +1 -0
  153. package/Drawer/DrawerContainer.d.ts +18 -0
  154. package/Drawer/DrawerContainer.d.ts.map +1 -0
  155. package/Drawer/DrawerContentArea.d.ts +17 -0
  156. package/Drawer/DrawerContentArea.d.ts.map +1 -0
  157. package/Drawer/DrawerHeader.d.ts +12 -0
  158. package/Drawer/DrawerHeader.d.ts.map +1 -0
  159. package/Drawer/DrawerTrigger.d.ts +26 -0
  160. package/Drawer/DrawerTrigger.d.ts.map +1 -0
  161. package/Drawer/DrawerUnderlay.d.ts +23 -0
  162. package/Drawer/DrawerUnderlay.d.ts.map +1 -0
  163. package/Drawer/context.d.ts +21 -0
  164. package/Drawer/context.d.ts.map +1 -0
  165. package/Drawer/index.d.ts +2 -0
  166. package/Drawer/index.d.ts.map +1 -0
  167. package/Drawer/index.js +2068 -0
  168. package/Drawer/index.mjs +2052 -0
  169. package/Drawer/useIntersectionDetection.d.ts +10 -0
  170. package/Drawer/useIntersectionDetection.d.ts.map +1 -0
  171. package/DropdownButton/DropdownButton.d.ts +3 -3
  172. package/DropdownButton/DropdownButton.d.ts.map +1 -1
  173. package/DropdownButton/DropdownButton.stories.d.ts +5 -5
  174. package/DropdownButton/DropdownButton.stories.d.ts.map +1 -1
  175. package/DropdownButton/index.js +17 -20
  176. package/DropdownButton/index.mjs +14 -17
  177. package/EmptyStateCard/EmptyStateCard.d.ts +87 -0
  178. package/EmptyStateCard/EmptyStateCard.d.ts.map +1 -0
  179. package/EmptyStateCard/EmptyStateCard.stories.d.ts +10 -0
  180. package/EmptyStateCard/EmptyStateCard.stories.d.ts.map +1 -0
  181. package/EmptyStateCard/EmptyStateCard.test.d.ts +2 -0
  182. package/EmptyStateCard/EmptyStateCard.test.d.ts.map +1 -0
  183. package/EmptyStateCard/index.d.ts +2 -0
  184. package/EmptyStateCard/index.d.ts.map +1 -0
  185. package/EmptyStateCard/index.js +127 -0
  186. package/EmptyStateCard/index.mjs +127 -0
  187. package/EmptyStateCard/utilities.d.ts +3 -0
  188. package/EmptyStateCard/utilities.d.ts.map +1 -0
  189. package/FocusedProductLayout/BackArrow.d.ts +4 -0
  190. package/FocusedProductLayout/BackArrow.d.ts.map +1 -0
  191. package/FocusedProductLayout/Content.d.ts +10 -0
  192. package/FocusedProductLayout/Content.d.ts.map +1 -0
  193. package/FocusedProductLayout/FocusedProductLayout.d.ts +111 -0
  194. package/FocusedProductLayout/FocusedProductLayout.d.ts.map +1 -0
  195. package/FocusedProductLayout/FocusedProductLayout.stories.d.ts +12 -0
  196. package/FocusedProductLayout/FocusedProductLayout.stories.d.ts.map +1 -0
  197. package/FocusedProductLayout/FocusedProductLayout.test.d.ts +2 -0
  198. package/FocusedProductLayout/FocusedProductLayout.test.d.ts.map +1 -0
  199. package/FocusedProductLayout/HeaderAtTopOfPage.d.ts +11 -0
  200. package/FocusedProductLayout/HeaderAtTopOfPage.d.ts.map +1 -0
  201. package/FocusedProductLayout/HeaderInContentArea.d.ts +11 -0
  202. package/FocusedProductLayout/HeaderInContentArea.d.ts.map +1 -0
  203. package/FocusedProductLayout/SidePanel.d.ts +13 -0
  204. package/FocusedProductLayout/SidePanel.d.ts.map +1 -0
  205. package/FocusedProductLayout/WizardContent.d.ts +49 -0
  206. package/FocusedProductLayout/WizardContent.d.ts.map +1 -0
  207. package/FocusedProductLayout/index.d.ts +2 -0
  208. package/FocusedProductLayout/index.d.ts.map +1 -0
  209. package/FocusedProductLayout/index.js +186 -0
  210. package/FocusedProductLayout/index.mjs +186 -0
  211. package/ForgeLayout/ForgeLayout.d.ts +138 -0
  212. package/ForgeLayout/ForgeLayout.d.ts.map +1 -0
  213. package/ForgeLayout/ForgeLayout.stories.d.ts +9 -0
  214. package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -0
  215. package/ForgeLayout/ForgeLayout.test.d.ts +2 -0
  216. package/ForgeLayout/ForgeLayout.test.d.ts.map +1 -0
  217. package/ForgeLayout/ForgeLayoutActions.d.ts +50 -0
  218. package/ForgeLayout/ForgeLayoutActions.d.ts.map +1 -0
  219. package/ForgeLayout/ForgeLayoutControls.d.ts +38 -0
  220. package/ForgeLayout/ForgeLayoutControls.d.ts.map +1 -0
  221. package/ForgeLayout/ForgeLayoutHeader.d.ts +18 -0
  222. package/ForgeLayout/ForgeLayoutHeader.d.ts.map +1 -0
  223. package/ForgeLayout/ForgeLayoutNav.d.ts +35 -0
  224. package/ForgeLayout/ForgeLayoutNav.d.ts.map +1 -0
  225. package/ForgeLayout/index.d.ts +2 -0
  226. package/ForgeLayout/index.d.ts.map +1 -0
  227. package/ForgeLayout/index.js +500 -0
  228. package/ForgeLayout/index.mjs +500 -0
  229. package/FormLayout/FormLayout.d.ts +55 -0
  230. package/FormLayout/FormLayout.d.ts.map +1 -0
  231. package/FormLayout/FormLayout.stories.d.ts +13 -0
  232. package/FormLayout/FormLayout.stories.d.ts.map +1 -0
  233. package/FormLayout/FormLayout.test.d.ts +2 -0
  234. package/FormLayout/FormLayout.test.d.ts.map +1 -0
  235. package/FormLayout/Grid.d.ts +19 -0
  236. package/FormLayout/Grid.d.ts.map +1 -0
  237. package/FormLayout/Header.d.ts +9 -0
  238. package/FormLayout/Header.d.ts.map +1 -0
  239. package/FormLayout/HelperText.d.ts +13 -0
  240. package/FormLayout/HelperText.d.ts.map +1 -0
  241. package/FormLayout/Section.d.ts +12 -0
  242. package/FormLayout/Section.d.ts.map +1 -0
  243. package/FormLayout/Title.d.ts +23 -0
  244. package/FormLayout/Title.d.ts.map +1 -0
  245. package/FormLayout/context.d.ts +2 -0
  246. package/FormLayout/context.d.ts.map +1 -0
  247. package/FormLayout/index.d.ts +2 -0
  248. package/FormLayout/index.d.ts.map +1 -0
  249. package/FormLayout/index.js +126 -0
  250. package/FormLayout/index.mjs +126 -0
  251. package/HorizontalGrid/index.js +2 -62
  252. package/HorizontalGrid/index.mjs +2 -62
  253. package/HorizontalStack/index.js +2 -48
  254. package/HorizontalStack/index.mjs +2 -48
  255. package/Icon/Icon.d.ts +19 -4
  256. package/Icon/Icon.d.ts.map +1 -1
  257. package/Icon/Icon.stories.d.ts.map +1 -1
  258. package/Icon/index.js +2 -38
  259. package/Icon/index.mjs +2 -38
  260. package/IconButton/IconButton.d.ts +3 -3
  261. package/IconButton/IconButton.d.ts.map +1 -1
  262. package/IconButton/IconButton.stories.d.ts +5 -5
  263. package/IconButton/IconButton.stories.d.ts.map +1 -1
  264. package/IconButton/index.js +17 -20
  265. package/IconButton/index.mjs +13 -16
  266. package/InputField/InputField.d.ts +7 -4
  267. package/InputField/InputField.d.ts.map +1 -1
  268. package/InputField/InputField.test.d.ts.map +1 -1
  269. package/InputField/Label.d.ts +0 -5
  270. package/InputField/Label.d.ts.map +1 -1
  271. package/InputField/index.js +2 -283
  272. package/InputField/index.mjs +2 -267
  273. package/InputField/inputText.d.ts +24 -0
  274. package/InputField/inputText.d.ts.map +1 -0
  275. package/InputField/utilities.d.ts +3 -1
  276. package/InputField/utilities.d.ts.map +1 -1
  277. package/KebabButton/KebabButton.d.ts +19 -0
  278. package/KebabButton/KebabButton.d.ts.map +1 -0
  279. package/KebabButton/KebabButton.stories.d.ts +7 -0
  280. package/KebabButton/KebabButton.stories.d.ts.map +1 -0
  281. package/KebabButton/KebabButton.test.d.ts +2 -0
  282. package/KebabButton/KebabButton.test.d.ts.map +1 -0
  283. package/KebabButton/index.d.ts +2 -0
  284. package/KebabButton/index.d.ts.map +1 -0
  285. package/KebabButton/index.js +4 -0
  286. package/KebabButton/index.mjs +4 -0
  287. package/Menu/Menu.stories.d.ts +4 -0
  288. package/Menu/Menu.stories.d.ts.map +1 -1
  289. package/Menu/MenuItem.d.ts.map +1 -1
  290. package/Menu/MenuOverlay.d.ts +18 -2
  291. package/Menu/MenuOverlay.d.ts.map +1 -1
  292. package/Menu/MenuSection.d.ts +2 -0
  293. package/Menu/MenuSection.d.ts.map +1 -1
  294. package/Menu/MenuTrigger.d.ts.map +1 -1
  295. package/Menu/index.js +2 -394
  296. package/Menu/index.mjs +2 -394
  297. package/Menu/utilities.d.ts +17 -1
  298. package/Menu/utilities.d.ts.map +1 -1
  299. package/Modal/Modal.d.ts +53 -0
  300. package/Modal/Modal.d.ts.map +1 -0
  301. package/Modal/Modal.stories.d.ts +15 -0
  302. package/Modal/Modal.stories.d.ts.map +1 -0
  303. package/Modal/Modal.test.d.ts +2 -0
  304. package/Modal/Modal.test.d.ts.map +1 -0
  305. package/Modal/ModalBody.d.ts +10 -0
  306. package/Modal/ModalBody.d.ts.map +1 -0
  307. package/Modal/ModalContainer.d.ts +26 -0
  308. package/Modal/ModalContainer.d.ts.map +1 -0
  309. package/Modal/ModalFooter.d.ts +25 -0
  310. package/Modal/ModalFooter.d.ts.map +1 -0
  311. package/Modal/ModalHeader.d.ts +35 -0
  312. package/Modal/ModalHeader.d.ts.map +1 -0
  313. package/Modal/ModalTrigger.d.ts +26 -0
  314. package/Modal/ModalTrigger.d.ts.map +1 -0
  315. package/Modal/ModalUnderlay.d.ts +19 -0
  316. package/Modal/ModalUnderlay.d.ts.map +1 -0
  317. package/Modal/context.d.ts +23 -0
  318. package/Modal/context.d.ts.map +1 -0
  319. package/Modal/index.d.ts +2 -0
  320. package/Modal/index.d.ts.map +1 -0
  321. package/Modal/index.js +292 -0
  322. package/Modal/index.mjs +292 -0
  323. package/Modal/useIntersectionDetection.d.ts +10 -0
  324. package/Modal/useIntersectionDetection.d.ts.map +1 -0
  325. package/MultiSelect/MultiSelect.d.ts +123 -0
  326. package/MultiSelect/MultiSelect.d.ts.map +1 -0
  327. package/MultiSelect/MultiSelect.stories.d.ts +11 -0
  328. package/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
  329. package/MultiSelect/MultiSelect.test.d.ts +2 -0
  330. package/MultiSelect/MultiSelect.test.d.ts.map +1 -0
  331. package/MultiSelect/MultiSelectDropdown.d.ts +22 -0
  332. package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -0
  333. package/MultiSelect/index.d.ts +2 -0
  334. package/MultiSelect/index.d.ts.map +1 -0
  335. package/MultiSelect/index.js +1987 -0
  336. package/MultiSelect/index.mjs +1972 -0
  337. package/MultiSelect/utilities.d.ts +3 -0
  338. package/MultiSelect/utilities.d.ts.map +1 -0
  339. package/NexusLayout/NexusLayout.d.ts +97 -0
  340. package/NexusLayout/NexusLayout.d.ts.map +1 -0
  341. package/NexusLayout/NexusLayout.stories.d.ts +8 -0
  342. package/NexusLayout/NexusLayout.stories.d.ts.map +1 -0
  343. package/NexusLayout/NexusLayout.test.d.ts +2 -0
  344. package/NexusLayout/NexusLayout.test.d.ts.map +1 -0
  345. package/NexusLayout/NexusLayoutActions.d.ts +38 -0
  346. package/NexusLayout/NexusLayoutActions.d.ts.map +1 -0
  347. package/NexusLayout/NexusLayoutMultipage.d.ts +27 -0
  348. package/NexusLayout/NexusLayoutMultipage.d.ts.map +1 -0
  349. package/NexusLayout/NexusLayoutMultipageSidebarNav.d.ts +31 -0
  350. package/NexusLayout/NexusLayoutMultipageSidebarNav.d.ts.map +1 -0
  351. package/NexusLayout/NexusLayoutNav.d.ts +28 -0
  352. package/NexusLayout/NexusLayoutNav.d.ts.map +1 -0
  353. package/NexusLayout/index.d.ts +2 -0
  354. package/NexusLayout/index.d.ts.map +1 -0
  355. package/NexusLayout/index.js +353 -0
  356. package/NexusLayout/index.mjs +353 -0
  357. package/Notification/index.js +5 -1535
  358. package/Notification/index.mjs +5 -1519
  359. package/Pagination/Pagination.d.ts +81 -0
  360. package/Pagination/Pagination.d.ts.map +1 -0
  361. package/Pagination/Pagination.stories.d.ts +9 -0
  362. package/Pagination/Pagination.stories.d.ts.map +1 -0
  363. package/Pagination/Pagination.test.d.ts +2 -0
  364. package/Pagination/Pagination.test.d.ts.map +1 -0
  365. package/Pagination/PaginationButton.d.ts +9 -0
  366. package/Pagination/PaginationButton.d.ts.map +1 -0
  367. package/Pagination/PaginationDropdown.d.ts +24 -0
  368. package/Pagination/PaginationDropdown.d.ts.map +1 -0
  369. package/Pagination/index.d.ts +2 -0
  370. package/Pagination/index.d.ts.map +1 -0
  371. package/Pagination/index.js +119 -0
  372. package/Pagination/index.mjs +119 -0
  373. package/PillGroup/PillGroup.d.ts +80 -0
  374. package/PillGroup/PillGroup.d.ts.map +1 -0
  375. package/PillGroup/PillGroup.stories.d.ts +11 -0
  376. package/PillGroup/PillGroup.stories.d.ts.map +1 -0
  377. package/PillGroup/PillGroup.test.d.ts +2 -0
  378. package/PillGroup/PillGroup.test.d.ts.map +1 -0
  379. package/PillGroup/index.d.ts +2 -0
  380. package/PillGroup/index.d.ts.map +1 -0
  381. package/PillGroup/index.js +5 -0
  382. package/PillGroup/index.mjs +5 -0
  383. package/ProductLayout/HelpMenu.d.ts +8 -0
  384. package/ProductLayout/HelpMenu.d.ts.map +1 -0
  385. package/ProductLayout/LayoutScreenSizeRenderer.d.ts +21 -0
  386. package/ProductLayout/LayoutScreenSizeRenderer.d.ts.map +1 -0
  387. package/ProductLayout/ProductLayout.d.ts +75 -0
  388. package/ProductLayout/ProductLayout.d.ts.map +1 -0
  389. package/ProductLayout/ProductLayout.stories.d.ts +8 -0
  390. package/ProductLayout/ProductLayout.stories.d.ts.map +1 -0
  391. package/ProductLayout/ProductLayout.test.d.ts +2 -0
  392. package/ProductLayout/ProductLayout.test.d.ts.map +1 -0
  393. package/ProductLayout/ProductLayoutContent.d.ts +9 -0
  394. package/ProductLayout/ProductLayoutContent.d.ts.map +1 -0
  395. package/ProductLayout/ProductLayoutHeader.d.ts +44 -0
  396. package/ProductLayout/ProductLayoutHeader.d.ts.map +1 -0
  397. package/ProductLayout/ProductLayoutSidebar.d.ts +9 -0
  398. package/ProductLayout/ProductLayoutSidebar.d.ts.map +1 -0
  399. package/ProductLayout/ProductLayoutTabbedContent.d.ts +15 -0
  400. package/ProductLayout/ProductLayoutTabbedContent.d.ts.map +1 -0
  401. package/ProductLayout/constants.d.ts +2 -0
  402. package/ProductLayout/constants.d.ts.map +1 -0
  403. package/ProductLayout/context.d.ts +13 -0
  404. package/ProductLayout/context.d.ts.map +1 -0
  405. package/ProductLayout/index.d.ts +2 -0
  406. package/ProductLayout/index.d.ts.map +1 -0
  407. package/ProductLayout/index.js +278 -0
  408. package/ProductLayout/index.mjs +278 -0
  409. package/Provider/Provider.d.ts +22 -5
  410. package/Provider/Provider.d.ts.map +1 -1
  411. package/Provider/index.js +20 -18
  412. package/Provider/index.mjs +19 -17
  413. package/README.md +20 -14
  414. package/RadioButtonGroup/RadioButtonGroup.d.ts +103 -0
  415. package/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
  416. package/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -0
  417. package/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
  418. package/RadioButtonGroup/RadioButtonGroup.test.d.ts +2 -0
  419. package/RadioButtonGroup/RadioButtonGroup.test.d.ts.map +1 -0
  420. package/RadioButtonGroup/index.d.ts +2 -0
  421. package/RadioButtonGroup/index.d.ts.map +1 -0
  422. package/RadioButtonGroup/index.js +260 -0
  423. package/RadioButtonGroup/index.mjs +260 -0
  424. package/RadioGroup/index.js +3 -297
  425. package/RadioGroup/index.mjs +3 -297
  426. package/RangeCalendar/RangeCalendar.d.ts +71 -0
  427. package/RangeCalendar/RangeCalendar.d.ts.map +1 -0
  428. package/RangeCalendar/RangeCalendar.stories.d.ts +15 -0
  429. package/RangeCalendar/RangeCalendar.stories.d.ts.map +1 -0
  430. package/RangeCalendar/RangeCalendar.test.d.ts +3 -0
  431. package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -0
  432. package/RangeCalendar/index.d.ts +2 -0
  433. package/RangeCalendar/index.d.ts.map +1 -0
  434. package/RangeCalendar/index.js +4 -0
  435. package/RangeCalendar/index.mjs +4 -0
  436. package/SearchNav/CTAGroup.d.ts +21 -0
  437. package/SearchNav/CTAGroup.d.ts.map +1 -0
  438. package/SearchNav/CondensedSearchNav.d.ts +9 -0
  439. package/SearchNav/CondensedSearchNav.d.ts.map +1 -0
  440. package/SearchNav/Logo.d.ts +13 -0
  441. package/SearchNav/Logo.d.ts.map +1 -0
  442. package/SearchNav/LogoGroup.d.ts +21 -0
  443. package/SearchNav/LogoGroup.d.ts.map +1 -0
  444. package/SearchNav/PrimaryCTAItem.d.ts +14 -0
  445. package/SearchNav/PrimaryCTAItem.d.ts.map +1 -0
  446. package/SearchNav/Search.d.ts +13 -0
  447. package/SearchNav/Search.d.ts.map +1 -0
  448. package/SearchNav/SearchNav.d.ts +105 -0
  449. package/SearchNav/SearchNav.d.ts.map +1 -0
  450. package/SearchNav/SearchNav.stories.d.ts +14 -0
  451. package/SearchNav/SearchNav.stories.d.ts.map +1 -0
  452. package/SearchNav/SearchNav.test.d.ts +2 -0
  453. package/SearchNav/SearchNav.test.d.ts.map +1 -0
  454. package/SearchNav/SecondaryCTAItem.d.ts +23 -0
  455. package/SearchNav/SecondaryCTAItem.d.ts.map +1 -0
  456. package/SearchNav/Selector.d.ts +15 -0
  457. package/SearchNav/Selector.d.ts.map +1 -0
  458. package/SearchNav/SelectorTrigger.d.ts +14 -0
  459. package/SearchNav/SelectorTrigger.d.ts.map +1 -0
  460. package/SearchNav/Separator.d.ts +9 -0
  461. package/SearchNav/Separator.d.ts.map +1 -0
  462. package/SearchNav/Title.d.ts +12 -0
  463. package/SearchNav/Title.d.ts.map +1 -0
  464. package/SearchNav/context.d.ts +20 -0
  465. package/SearchNav/context.d.ts.map +1 -0
  466. package/SearchNav/index.d.ts +2 -0
  467. package/SearchNav/index.d.ts.map +1 -0
  468. package/SearchNav/index.js +476 -0
  469. package/SearchNav/index.mjs +460 -0
  470. package/SearchNav/utilities.d.ts +14 -0
  471. package/SearchNav/utilities.d.ts.map +1 -0
  472. package/SectionCard/SectionCard.d.ts +53 -0
  473. package/SectionCard/SectionCard.d.ts.map +1 -0
  474. package/SectionCard/SectionCard.stories.d.ts +11 -0
  475. package/SectionCard/SectionCard.stories.d.ts.map +1 -0
  476. package/SectionCard/SectionCard.test.d.ts +2 -0
  477. package/SectionCard/SectionCard.test.d.ts.map +1 -0
  478. package/SectionCard/index.d.ts +2 -0
  479. package/SectionCard/index.d.ts.map +1 -0
  480. package/SectionCard/index.js +103 -0
  481. package/SectionCard/index.mjs +103 -0
  482. package/Select/Select.d.ts +4 -3
  483. package/Select/Select.d.ts.map +1 -1
  484. package/Select/Select.stories.d.ts.map +1 -1
  485. package/Select/SelectField.d.ts +3 -4
  486. package/Select/SelectField.d.ts.map +1 -1
  487. package/Select/SelectOverlay.d.ts.map +1 -1
  488. package/Select/index.js +28 -722
  489. package/Select/index.mjs +13 -707
  490. package/SelectorErrorTooltip/index.js +2 -104
  491. package/SelectorErrorTooltip/index.mjs +2 -88
  492. package/Spinner/Spinner.d.ts +73 -0
  493. package/Spinner/Spinner.d.ts.map +1 -0
  494. package/Spinner/Spinner.stories.d.ts +11 -0
  495. package/Spinner/Spinner.stories.d.ts.map +1 -0
  496. package/Spinner/Spinner.test.d.ts +2 -0
  497. package/Spinner/Spinner.test.d.ts.map +1 -0
  498. package/Spinner/index.d.ts +2 -0
  499. package/Spinner/index.d.ts.map +1 -0
  500. package/Spinner/index.js +4 -0
  501. package/Spinner/index.mjs +4 -0
  502. package/SplitToggleCard/SplitToggleCard.d.ts +57 -0
  503. package/SplitToggleCard/SplitToggleCard.d.ts.map +1 -0
  504. package/SplitToggleCard/SplitToggleCard.stories.d.ts +11 -0
  505. package/SplitToggleCard/SplitToggleCard.stories.d.ts.map +1 -0
  506. package/SplitToggleCard/SplitToggleCard.test.d.ts +2 -0
  507. package/SplitToggleCard/SplitToggleCard.test.d.ts.map +1 -0
  508. package/SplitToggleCard/index.d.ts +2 -0
  509. package/SplitToggleCard/index.d.ts.map +1 -0
  510. package/SplitToggleCard/index.js +50 -0
  511. package/SplitToggleCard/index.mjs +50 -0
  512. package/Stepper/Step.d.ts +33 -0
  513. package/Stepper/Step.d.ts.map +1 -0
  514. package/Stepper/StepButton.d.ts +25 -0
  515. package/Stepper/StepButton.d.ts.map +1 -0
  516. package/Stepper/Stepper.d.ts +104 -0
  517. package/Stepper/Stepper.d.ts.map +1 -0
  518. package/Stepper/Stepper.stories.d.ts +10 -0
  519. package/Stepper/Stepper.stories.d.ts.map +1 -0
  520. package/Stepper/Stepper.test.d.ts +2 -0
  521. package/Stepper/Stepper.test.d.ts.map +1 -0
  522. package/Stepper/StepperContext.d.ts +11 -0
  523. package/Stepper/StepperContext.d.ts.map +1 -0
  524. package/Stepper/index.d.ts +2 -0
  525. package/Stepper/index.d.ts.map +1 -0
  526. package/Stepper/index.js +4 -0
  527. package/Stepper/index.mjs +4 -0
  528. package/TabNav/TabNav.d.ts +29 -0
  529. package/TabNav/TabNav.d.ts.map +1 -0
  530. package/TabNav/TabNav.stories.d.ts +9 -0
  531. package/TabNav/TabNav.stories.d.ts.map +1 -0
  532. package/TabNav/TabNav.test.d.ts +2 -0
  533. package/TabNav/TabNav.test.d.ts.map +1 -0
  534. package/TabNav/TabNavItem.d.ts +12 -0
  535. package/TabNav/TabNavItem.d.ts.map +1 -0
  536. package/TabNav/index.d.ts +2 -0
  537. package/TabNav/index.d.ts.map +1 -0
  538. package/TabNav/index.js +4 -0
  539. package/TabNav/index.mjs +4 -0
  540. package/TabPanels/TabPanels.d.ts +68 -0
  541. package/TabPanels/TabPanels.d.ts.map +1 -0
  542. package/TabPanels/TabPanels.stories.d.ts +14 -0
  543. package/TabPanels/TabPanels.stories.d.ts.map +1 -0
  544. package/TabPanels/TabPanels.test.d.ts +2 -0
  545. package/TabPanels/TabPanels.test.d.ts.map +1 -0
  546. package/TabPanels/TabPanelsItem.d.ts +15 -0
  547. package/TabPanels/TabPanelsItem.d.ts.map +1 -0
  548. package/TabPanels/TabPanelsPanels.d.ts +14 -0
  549. package/TabPanels/TabPanelsPanels.d.ts.map +1 -0
  550. package/TabPanels/TabPanelsTabs.d.ts +15 -0
  551. package/TabPanels/TabPanelsTabs.d.ts.map +1 -0
  552. package/TabPanels/context.d.ts +10 -0
  553. package/TabPanels/context.d.ts.map +1 -0
  554. package/TabPanels/index.d.ts +2 -0
  555. package/TabPanels/index.d.ts.map +1 -0
  556. package/TabPanels/index.js +316 -0
  557. package/TabPanels/index.mjs +316 -0
  558. package/Tabs/Edge.d.ts +8 -0
  559. package/Tabs/Edge.d.ts.map +1 -0
  560. package/Tabs/Tabs.d.ts +23 -0
  561. package/Tabs/Tabs.d.ts.map +1 -0
  562. package/Tabs/TabsItem.d.ts +13 -0
  563. package/Tabs/TabsItem.d.ts.map +1 -0
  564. package/Tabs/context.d.ts +7 -0
  565. package/Tabs/context.d.ts.map +1 -0
  566. package/Tabs/index.d.ts +2 -0
  567. package/Tabs/index.d.ts.map +1 -0
  568. package/Tabs/index.js +4 -0
  569. package/Tabs/index.mjs +4 -0
  570. package/Tabs/useIndicatorSizing.d.ts +11 -0
  571. package/Tabs/useIndicatorSizing.d.ts.map +1 -0
  572. package/Tabs/useScrollIntoViewIfNeeded.d.ts +11 -0
  573. package/Tabs/useScrollIntoViewIfNeeded.d.ts.map +1 -0
  574. package/Tabs/useScrollbar.d.ts +6 -0
  575. package/Tabs/useScrollbar.d.ts.map +1 -0
  576. package/Tabs/util.d.ts +9 -0
  577. package/Tabs/util.d.ts.map +1 -0
  578. package/Text/Text.d.ts +13 -5
  579. package/Text/Text.d.ts.map +1 -1
  580. package/Text/Text.stories.d.ts +1 -0
  581. package/Text/Text.stories.d.ts.map +1 -1
  582. package/Text/index.js +2 -85
  583. package/Text/index.mjs +2 -85
  584. package/TextField/TextField.d.ts +3 -3
  585. package/TextField/TextField.d.ts.map +1 -1
  586. package/TextField/TextField.stories.d.ts +1 -0
  587. package/TextField/TextField.stories.d.ts.map +1 -1
  588. package/TextField/index.js +2 -33
  589. package/TextField/index.mjs +2 -33
  590. package/Textarea/Textarea.d.ts +3 -3
  591. package/Textarea/Textarea.d.ts.map +1 -1
  592. package/Textarea/Textarea.stories.d.ts.map +1 -1
  593. package/Textarea/index.js +32 -20
  594. package/Textarea/index.mjs +32 -20
  595. package/Theme/index.js +5 -145
  596. package/Theme/index.mjs +5 -145
  597. package/Toggle/Toggle.d.ts +34 -1
  598. package/Toggle/Toggle.d.ts.map +1 -1
  599. package/Toggle/index.js +2 -117
  600. package/Toggle/index.mjs +2 -117
  601. package/ToggleCard/ToggleCard.d.ts +88 -0
  602. package/ToggleCard/ToggleCard.d.ts.map +1 -0
  603. package/ToggleCard/ToggleCard.stories.d.ts +12 -0
  604. package/ToggleCard/ToggleCard.stories.d.ts.map +1 -0
  605. package/ToggleCard/ToggleCard.test.d.ts +2 -0
  606. package/ToggleCard/ToggleCard.test.d.ts.map +1 -0
  607. package/ToggleCard/index.d.ts +2 -0
  608. package/ToggleCard/index.d.ts.map +1 -0
  609. package/ToggleCard/index.js +47 -0
  610. package/ToggleCard/index.mjs +47 -0
  611. package/Tooltip/Tooltip.stories.d.ts +2 -0
  612. package/Tooltip/Tooltip.stories.d.ts.map +1 -1
  613. package/Tooltip/index.js +2 -11
  614. package/Tooltip/index.mjs +1 -10
  615. package/UnstyledButton/UnstyledButton.d.ts +2 -2
  616. package/UnstyledButton/UnstyledButton.d.ts.map +1 -1
  617. package/UnstyledButton/UnstyledPressButton.d.ts +10 -0
  618. package/UnstyledButton/UnstyledPressButton.d.ts.map +1 -0
  619. package/UnstyledButton/index.js +2 -7
  620. package/UnstyledButton/index.mjs +1 -6
  621. package/VerticalNav/Container.d.ts +4 -0
  622. package/VerticalNav/Container.d.ts.map +1 -0
  623. package/VerticalNav/ExpandButton.d.ts +7 -0
  624. package/VerticalNav/ExpandButton.d.ts.map +1 -0
  625. package/VerticalNav/Item.d.ts +37 -0
  626. package/VerticalNav/Item.d.ts.map +1 -0
  627. package/VerticalNav/ListVerticalNav.d.ts +29 -0
  628. package/VerticalNav/ListVerticalNav.d.ts.map +1 -0
  629. package/VerticalNav/NavItem.d.ts +13 -0
  630. package/VerticalNav/NavItem.d.ts.map +1 -0
  631. package/VerticalNav/Subnav.d.ts +18 -0
  632. package/VerticalNav/Subnav.d.ts.map +1 -0
  633. package/VerticalNav/SubnavItem.d.ts +9 -0
  634. package/VerticalNav/SubnavItem.d.ts.map +1 -0
  635. package/VerticalNav/SubnavItemDot.d.ts +7 -0
  636. package/VerticalNav/SubnavItemDot.d.ts.map +1 -0
  637. package/VerticalNav/SupplementaryAction.d.ts +26 -0
  638. package/VerticalNav/SupplementaryAction.d.ts.map +1 -0
  639. package/VerticalNav/TreeVerticalNav.d.ts +58 -0
  640. package/VerticalNav/TreeVerticalNav.d.ts.map +1 -0
  641. package/VerticalNav/VerticalNav.d.ts +29 -0
  642. package/VerticalNav/VerticalNav.d.ts.map +1 -0
  643. package/VerticalNav/VerticalNav.stories.d.ts +13 -0
  644. package/VerticalNav/VerticalNav.stories.d.ts.map +1 -0
  645. package/VerticalNav/VerticalNav.test.d.ts +2 -0
  646. package/VerticalNav/VerticalNav.test.d.ts.map +1 -0
  647. package/VerticalNav/context.d.ts +4 -0
  648. package/VerticalNav/context.d.ts.map +1 -0
  649. package/VerticalNav/index.d.ts +2 -0
  650. package/VerticalNav/index.d.ts.map +1 -0
  651. package/VerticalNav/index.js +293 -0
  652. package/VerticalNav/index.mjs +293 -0
  653. package/VerticalStack/VerticalStack.d.ts +2 -3
  654. package/VerticalStack/VerticalStack.d.ts.map +1 -1
  655. package/VerticalStack/index.js +2 -53
  656. package/VerticalStack/index.mjs +2 -53
  657. package/__chunks__/ArrowBack-BFS-tCpV.mjs +41 -0
  658. package/__chunks__/ArrowBack-C_LSatif.js +57 -0
  659. package/__chunks__/ArrowForwardIos-DSeLeLhY.mjs +41 -0
  660. package/__chunks__/ArrowForwardIos-DpRiDPNZ.js +57 -0
  661. package/__chunks__/Button-BoPQ-Fx9.js +161 -0
  662. package/__chunks__/Button-Cbv2rnYl.js +96 -0
  663. package/__chunks__/Button-DDDdq1jy.mjs +97 -0
  664. package/__chunks__/Button-DHEZ4A2s.mjs +162 -0
  665. package/__chunks__/Calendar-6J28aEN6.js +41 -0
  666. package/__chunks__/Calendar-IH-Hdju1.mjs +42 -0
  667. package/__chunks__/CalendarBase-Cn_m810l.js +3494 -0
  668. package/__chunks__/CalendarBase-NkfY0ZZQ.mjs +3495 -0
  669. package/__chunks__/Card-BHov7_vu.js +278 -0
  670. package/__chunks__/Card-Cfs_61bW.mjs +279 -0
  671. package/__chunks__/CheckCircle-C9h2PNWU.mjs +41 -0
  672. package/__chunks__/CheckCircle-lgmtkEe6.js +57 -0
  673. package/__chunks__/Checkbox-5_dirQJ7.js +254 -0
  674. package/__chunks__/Checkbox-PjSuOA8S.mjs +239 -0
  675. package/__chunks__/Close-BQ2IlPyf.js +57 -0
  676. package/__chunks__/Close-Cq6Q6MN6.mjs +41 -0
  677. package/__chunks__/CodeSnippet--gFmAN9i.js +5703 -0
  678. package/__chunks__/CodeSnippet-BvZT69UG.mjs +5704 -0
  679. package/__chunks__/DatePickerBase-B5DTXN8_.mjs +3108 -0
  680. package/__chunks__/DatePickerBase-DFxPgoc8.js +3122 -0
  681. package/__chunks__/Dialog-CuqmbMC4.js +291 -0
  682. package/__chunks__/Dialog-D9aIj4DH.mjs +292 -0
  683. package/__chunks__/{ExpandMore400-7c5263a4.mjs → ExpandMore400-CH7GNxqk.mjs} +9 -17
  684. package/__chunks__/{ExpandMore400-92646971.js → ExpandMore400-CJpvxyJm.js} +9 -17
  685. package/__chunks__/FocusScope-CUJV-jWH.mjs +706 -0
  686. package/__chunks__/FocusScope-Djtxzznf.js +705 -0
  687. package/__chunks__/HelpMenu-CnMDuzfD.js +125 -0
  688. package/__chunks__/HelpMenu-D8fqyHN6.mjs +110 -0
  689. package/__chunks__/HorizontalGrid-C0WrCjxa.js +61 -0
  690. package/__chunks__/HorizontalGrid-DXgJ4dXw.mjs +62 -0
  691. package/__chunks__/HorizontalStack-4-woUNq_.js +49 -0
  692. package/__chunks__/HorizontalStack-hi_QrrZB.mjs +50 -0
  693. package/__chunks__/Icon-C5tHQyHr.mjs +40 -0
  694. package/__chunks__/Icon-YEBBOjcK.js +39 -0
  695. package/__chunks__/InputCaption-DYZkvdQw.js +60 -0
  696. package/__chunks__/InputCaption-DiSkdAGZ.mjs +61 -0
  697. package/__chunks__/InputField-ErsDNt4h.mjs +224 -0
  698. package/__chunks__/InputField-ISqVunp5.js +239 -0
  699. package/__chunks__/InputIcon-MAaUXGCr.mjs +112 -0
  700. package/__chunks__/InputIcon-x3fs2oAT.js +111 -0
  701. package/__chunks__/Item-BhrTPNN2.mjs +80 -0
  702. package/__chunks__/Item-CfWjPrxx.js +79 -0
  703. package/__chunks__/KebabButton-C2L-OC4Y.mjs +106 -0
  704. package/__chunks__/KebabButton-K9NaCoId.js +121 -0
  705. package/__chunks__/KeyboardDoubleArrowRight-AAMLvGk-.mjs +79 -0
  706. package/__chunks__/KeyboardDoubleArrowRight-Ber8mUIO.js +95 -0
  707. package/__chunks__/LiveAnnouncer-BSV5-C0m.mjs +81 -0
  708. package/__chunks__/LiveAnnouncer-CzeNwq2D.js +80 -0
  709. package/__chunks__/Menu-BR1eZSkl.js +505 -0
  710. package/__chunks__/Menu-Bh10IFV1.mjs +506 -0
  711. package/__chunks__/Menu-OacI_98l.js +57 -0
  712. package/__chunks__/Menu-qMqvSorL.mjs +41 -0
  713. package/__chunks__/Notification-BVk1cbKv.mjs +1367 -0
  714. package/__chunks__/Notification-BYzidkwf.js +1382 -0
  715. package/__chunks__/NumberFormatter-CXW1Iqpu.js +153 -0
  716. package/__chunks__/NumberFormatter-p5KNJNTT.mjs +154 -0
  717. package/__chunks__/Overlay-CwJbrICR.js +164 -0
  718. package/__chunks__/Overlay-zuiAML3I.mjs +165 -0
  719. package/__chunks__/PillGroup-Cw7NxHK1.mjs +2146 -0
  720. package/__chunks__/PillGroup-DHGP8AdT.js +2145 -0
  721. package/__chunks__/RadioGroup-BRCEngTq.js +331 -0
  722. package/__chunks__/RadioGroup-NZKo5DhW.mjs +332 -0
  723. package/__chunks__/RangeCalendar-CbbQ0oO-.mjs +228 -0
  724. package/__chunks__/RangeCalendar-Ccn11Hi1.js +227 -0
  725. package/__chunks__/Search-BY7IgEyX.js +57 -0
  726. package/__chunks__/Search-Cyblmqo5.mjs +41 -0
  727. package/__chunks__/SelectOverlay-Od1KotbU.mjs +414 -0
  728. package/__chunks__/SelectOverlay-QpThRYAk.js +413 -0
  729. package/__chunks__/SelectionManager-DCO_d3m1.mjs +708 -0
  730. package/__chunks__/SelectionManager-DuX6geJg.js +707 -0
  731. package/__chunks__/SelectorErrorTooltip-B6N15DSq.js +90 -0
  732. package/__chunks__/SelectorErrorTooltip-DZK9TYeX.mjs +75 -0
  733. package/__chunks__/Spinner-DWNM6vOK.mjs +100 -0
  734. package/__chunks__/Spinner-idiilXrq.js +99 -0
  735. package/__chunks__/Stepper-Dip3LHZb.mjs +169 -0
  736. package/__chunks__/Stepper-Dt63049f.js +168 -0
  737. package/__chunks__/TabNav-BCal_o_e.mjs +58 -0
  738. package/__chunks__/TabNav-D_4bqwZ5.js +57 -0
  739. package/__chunks__/Tabs-D5YHkBYr.mjs +254 -0
  740. package/__chunks__/Tabs-DL53NmLt.js +253 -0
  741. package/__chunks__/Text-DAilskpC.mjs +110 -0
  742. package/__chunks__/Text-DKSomTmh.js +109 -0
  743. package/__chunks__/TextField-Co7_GAzT.js +44 -0
  744. package/__chunks__/TextField-gPC5-arj.mjs +45 -0
  745. package/__chunks__/Theme-BTOgcCP2.js +146 -0
  746. package/__chunks__/Theme-ByVPHaBx.mjs +147 -0
  747. package/__chunks__/Toggle-B6b2-C7T.mjs +135 -0
  748. package/__chunks__/Toggle-D89AeiqA.js +134 -0
  749. package/__chunks__/{index-affe5510.js → Tooltip-5lz6tVdi.js} +134 -142
  750. package/__chunks__/{index-e989a741.mjs → Tooltip-BAlARvJi.mjs} +123 -131
  751. package/__chunks__/{index-45f05366.mjs → UnstyledButton-D_DzFe67.mjs} +17 -72
  752. package/__chunks__/UnstyledButton-yd6ZL2Yi.js +77 -0
  753. package/__chunks__/VerticalStack-Dw2YBdjg.js +54 -0
  754. package/__chunks__/VerticalStack-yZwmajIO.mjs +55 -0
  755. package/__chunks__/VisuallyHidden-DcUrMWfu.js +74 -0
  756. package/__chunks__/VisuallyHidden-cQCgS6_a.mjs +75 -0
  757. package/__chunks__/_commonjsHelpers-Bc2YnDe1.js +7 -0
  758. package/__chunks__/_commonjsHelpers-DWwsNxpa.mjs +8 -0
  759. package/__chunks__/ariaHideOutside-CvJKAP9c.mjs +377 -0
  760. package/__chunks__/ariaHideOutside-DkYn-eBq.js +376 -0
  761. package/__chunks__/context-BZCcafjG.mjs +92 -0
  762. package/__chunks__/context-CYcq9Zvo.js +120 -0
  763. package/__chunks__/context-D3NeXov7.js +91 -0
  764. package/__chunks__/context-EpOG85wC.mjs +121 -0
  765. package/__chunks__/filterDOMProps-D3iOHP0H.js +27 -0
  766. package/__chunks__/filterDOMProps-EDDcM64A.mjs +28 -0
  767. package/__chunks__/focusSafely-CCOEuEpK.mjs +15 -0
  768. package/__chunks__/focusSafely-wmTq_iKq.js +14 -0
  769. package/__chunks__/getScrollParent-B5CCP-yO.mjs +10 -0
  770. package/__chunks__/getScrollParent-DNz2ReWu.js +9 -0
  771. package/__chunks__/index-CTw89HMx.js +198 -0
  772. package/__chunks__/index-CUcRN4NO.js +311 -0
  773. package/__chunks__/index-DCSYt1ke.mjs +199 -0
  774. package/__chunks__/index-Izk6uvQC.mjs +312 -0
  775. package/__chunks__/isScrollable-CE3Xdlg4.js +9 -0
  776. package/__chunks__/isScrollable-DwbLAiO0.mjs +10 -0
  777. package/__chunks__/isVirtualEvent-B_Z4yzgm.mjs +75 -0
  778. package/__chunks__/isVirtualEvent-C-tB2MCl.js +74 -0
  779. package/__chunks__/lodash-B19QVK6q.mjs +5492 -0
  780. package/__chunks__/lodash-CS8bkZ7S.js +5491 -0
  781. package/__chunks__/mergeProps-DSi85raC.mjs +227 -0
  782. package/__chunks__/mergeProps-DniMwM6P.js +226 -0
  783. package/__chunks__/mergeRefs-CCV6itCY.mjs +12 -0
  784. package/__chunks__/mergeRefs-CQsNYO0P.js +11 -0
  785. package/__chunks__/number-C4N6pKyl.js +6 -0
  786. package/__chunks__/number-CLRm_tTs.mjs +7 -0
  787. package/__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js +29 -0
  788. package/__chunks__/objectWithoutPropertiesLoose-ij10PUAf.mjs +30 -0
  789. package/__chunks__/omit-CC3uE8z5.js +2245 -0
  790. package/__chunks__/omit-CYoLXTjq.mjs +2246 -0
  791. package/__chunks__/{overlayscrollbars-react.es-f2a0bcff.js → overlayscrollbars-react-BFy4nomP.js} +982 -880
  792. package/__chunks__/{overlayscrollbars-react.es-7f332a3b.mjs → overlayscrollbars-react-BiRJpzDY.mjs} +982 -880
  793. package/__chunks__/scrollIntoView-BN4yt25y.js +114 -0
  794. package/__chunks__/scrollIntoView-wURtlgJt.mjs +115 -0
  795. package/__chunks__/{tokens-ad06cd2c.js → tokens-BmCk-Bk0.js} +153 -126
  796. package/__chunks__/{tokens-3c27019b.mjs → tokens-BolVbjJp.mjs} +153 -126
  797. package/__chunks__/useButton-B_VJe1i5.js +70 -0
  798. package/__chunks__/useButton-CdgRb7pd.mjs +71 -0
  799. package/__chunks__/useCollator-B-keb3wA.mjs +13 -0
  800. package/__chunks__/useCollator-DGrSWVh4.js +12 -0
  801. package/__chunks__/{import-6a831ca1.mjs → useControlledState-CFWhSD5C.mjs} +5 -14
  802. package/__chunks__/{import-dea5a24d.js → useControlledState-mnKBd6Uc.js} +4 -13
  803. package/__chunks__/useDialog-Bxep5NaV.mjs +72 -0
  804. package/__chunks__/useDialog-DJ-g6m8Y.js +71 -0
  805. package/__chunks__/useEdgeInterceptors-B2OWg9dT.js +48 -0
  806. package/__chunks__/useEdgeInterceptors-YaV-ot5j.mjs +49 -0
  807. package/__chunks__/useEvent-B0fsKtsf.mjs +23 -0
  808. package/__chunks__/useEvent-DY7dR7Mi.js +22 -0
  809. package/__chunks__/useField-B6VplZ_n.mjs +39 -0
  810. package/__chunks__/useField-BJW_bXVD.js +38 -0
  811. package/__chunks__/useFilter-D-K0Oj-7.mjs +65 -0
  812. package/__chunks__/useFilter-DpnZ54nd.js +64 -0
  813. package/__chunks__/useFocus-l6ZlVMHW.js +37 -0
  814. package/__chunks__/useFocus-lnK5BCt2.mjs +38 -0
  815. package/__chunks__/useFocusRing-KIEn23AD.mjs +43 -0
  816. package/__chunks__/useFocusRing-f5StfjhA.js +42 -0
  817. package/__chunks__/useFocusVisible-Bb3k4_O_.mjs +272 -0
  818. package/__chunks__/useFocusVisible-CiIrKjuz.js +271 -0
  819. package/__chunks__/useFocusWithin-BGNdxo9d.mjs +48 -0
  820. package/__chunks__/useFocusWithin-C-45XiL1.js +47 -0
  821. package/__chunks__/useFocusable-BQyiwtXU.js +99 -0
  822. package/__chunks__/useFocusable-DxcU91xN.mjs +100 -0
  823. package/__chunks__/useFormReset-Bgj93eR3.js +21 -0
  824. package/__chunks__/useFormReset-DA1Lwdha.mjs +22 -0
  825. package/__chunks__/useFormValidation-BeqiYVJN.js +262 -0
  826. package/__chunks__/useFormValidation-CCe1AoIX.mjs +263 -0
  827. package/__chunks__/useHasTabbableChild-CepF5tQS.js +36 -0
  828. package/__chunks__/useHasTabbableChild-DOO1szWv.mjs +37 -0
  829. package/__chunks__/useHighlightSelectionDescription-B_YjQEPD.mjs +572 -0
  830. package/__chunks__/useHighlightSelectionDescription-nSfKxNPA.js +570 -0
  831. package/__chunks__/useHover-BIKwjrCT.js +109 -0
  832. package/__chunks__/useHover-BOYR4wqI.mjs +110 -0
  833. package/__chunks__/useIntersectionDetection-BvUmtDgl.mjs +22 -0
  834. package/__chunks__/useIntersectionDetection-DI5n4zwA.js +21 -0
  835. package/__chunks__/useLabel-D37VV43W.mjs +27 -0
  836. package/__chunks__/useLabel-t-N6anB8.js +26 -0
  837. package/__chunks__/useLabels-5f58TiCH.mjs +23 -0
  838. package/__chunks__/useLabels-KmwewLTv.js +22 -0
  839. package/__chunks__/useLink-BGK9UEQW.mjs +95 -0
  840. package/__chunks__/useLink-CQhl3ZGL.js +94 -0
  841. package/__chunks__/useListBoxSection-Dl15OiHe.mjs +195 -0
  842. package/__chunks__/useListBoxSection-TdoNdwIM.js +194 -0
  843. package/__chunks__/useListState-AFrlkW73.mjs +182 -0
  844. package/__chunks__/useListState-I5rva0Fq.js +181 -0
  845. package/__chunks__/useLocalizedStringFormatter-BHXy3Wtu.mjs +122 -0
  846. package/__chunks__/useLocalizedStringFormatter-CaF1VsOH.js +121 -0
  847. package/__chunks__/useMenuTrigger-DDKy3dcp.mjs +264 -0
  848. package/__chunks__/useMenuTrigger-DhSBxWW5.js +263 -0
  849. package/__chunks__/useMenuTriggerState-BJJ3WdLH.mjs +67 -0
  850. package/__chunks__/useMenuTriggerState-DTZmPbSP.js +66 -0
  851. package/__chunks__/useModalOverlay-BeCxNyVY.mjs +48 -0
  852. package/__chunks__/useModalOverlay-gSHY_FAb.js +47 -0
  853. package/__chunks__/useObjectRef-BOGMJ5vM.js +18 -0
  854. package/__chunks__/useObjectRef-wU82Pkgx.mjs +19 -0
  855. package/__chunks__/useOverlayPosition-CTTQ0gZN.mjs +473 -0
  856. package/__chunks__/useOverlayPosition-DJGEWKwM.js +472 -0
  857. package/__chunks__/useOverlayTrigger-BvP35sYf.mjs +28 -0
  858. package/__chunks__/useOverlayTrigger-CiUR_pLO.js +27 -0
  859. package/__chunks__/usePress-CqfuY_T7.mjs +800 -0
  860. package/__chunks__/usePress-DTGD4Sub.js +799 -0
  861. package/__chunks__/useResizeObserver-BsbT3mjh.js +34 -0
  862. package/__chunks__/useResizeObserver-Dyb4wvuA.mjs +35 -0
  863. package/__chunks__/useSelectableItem-BEkjpB_K.js +615 -0
  864. package/__chunks__/useSelectableItem-DeFiKyU1.mjs +616 -0
  865. package/__chunks__/useSelectableList-DPJUwWwV.mjs +280 -0
  866. package/__chunks__/useSelectableList-Dk3TxzYJ.js +279 -0
  867. package/__chunks__/useSingleSelectListState-5RB1w9vv.js +55 -0
  868. package/__chunks__/useSingleSelectListState-DuCUY6dR.mjs +56 -0
  869. package/__chunks__/useTextField-CspDdKaL.mjs +110 -0
  870. package/__chunks__/useTextField-DM-ZTn9j.js +109 -0
  871. package/__chunks__/{import-eb35a9b9.mjs → useToggle-CbrJW7jr.mjs} +22 -29
  872. package/__chunks__/useToggle-Cu5EqIJD.js +74 -0
  873. package/__chunks__/useToggleState-CdbEMLRz.js +18 -0
  874. package/__chunks__/useToggleState-kFojjzgV.mjs +19 -0
  875. package/__chunks__/useTreeState-D6aHf9kN.js +142 -0
  876. package/__chunks__/useTreeState-w_raYfy2.mjs +143 -0
  877. package/__chunks__/useTriggerWidth-74VNM0k9.mjs +133 -0
  878. package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
  879. package/__chunks__/useUpdateEffect-BLgGnNgL.mjs +19 -0
  880. package/__chunks__/useUpdateEffect-CssYIsWI.js +18 -0
  881. package/__chunks__/utilities-CczOI9Hn.mjs +358 -0
  882. package/__chunks__/utilities-DIZYscJV.js +357 -0
  883. package/__chunks__/utils-BIfsWYLR.mjs +148 -0
  884. package/__chunks__/utils-BlKqJM2_.js +147 -0
  885. package/package.json +17 -15
  886. package/style.css +5239 -1686
  887. package/styles/_accessibility.scss +54 -0
  888. package/styles/_common.scss +8 -0
  889. package/styles/_media-queries.scss +25 -0
  890. package/styles/_poppins-fallback.scss +73 -0
  891. package/styles/_responsive-props.scss +90 -0
  892. package/styles/_scrollbars.scss +52 -0
  893. package/styles/_string-functions.scss +26 -0
  894. package/styles/_token-helpers.scss +41 -0
  895. package/styles/_typography.scss +53 -0
  896. package/styles/_unstyled.scss +32 -0
  897. package/styles/global.scss +32 -0
  898. package/types.d.ts +10 -4
  899. package/types.d.ts.map +1 -1
  900. package/utilities/EasyPostLogo.d.ts +3 -0
  901. package/utilities/EasyPostLogo.d.ts.map +1 -0
  902. package/utilities/css.d.ts +1 -0
  903. package/utilities/css.d.ts.map +1 -1
  904. package/utilities/css.js +20 -1
  905. package/utilities/css.mjs +20 -1
  906. package/utilities/react.d.ts +17 -1
  907. package/utilities/react.d.ts.map +1 -1
  908. package/utilities/react.js +44 -307
  909. package/utilities/react.mjs +43 -306
  910. package/utilities/storybook.d.ts +60 -2
  911. package/utilities/storybook.d.ts.map +1 -1
  912. package/utilities/test.d.ts +21 -3
  913. package/utilities/test.d.ts.map +1 -1
  914. package/utilities/tokens.d.ts.map +1 -1
  915. package/{Menu → utilities}/useScrollbar.d.ts +2 -4
  916. package/utilities/useScrollbar.d.ts.map +1 -0
  917. package/utilities/useScrollbar.js +22 -0
  918. package/utilities/useScrollbar.mjs +22 -0
  919. package/Menu/useScrollbar.d.ts.map +0 -1
  920. package/__chunks__/InputIcon-1f2ed127.mjs +0 -148
  921. package/__chunks__/InputIcon-f456e366.js +0 -147
  922. package/__chunks__/import-0f8555a4.js +0 -1121
  923. package/__chunks__/import-19bc38ac.mjs +0 -679
  924. package/__chunks__/import-24a482e1.js +0 -59
  925. package/__chunks__/import-26676303.js +0 -1436
  926. package/__chunks__/import-29af6941.mjs +0 -60
  927. package/__chunks__/import-3faba3a6.mjs +0 -1437
  928. package/__chunks__/import-890ae60e.js +0 -81
  929. package/__chunks__/import-a1e0f814.js +0 -678
  930. package/__chunks__/import-c4caaddf.mjs +0 -1122
  931. package/__chunks__/index-5f429325.js +0 -132
  932. package/__chunks__/index-72137376.mjs +0 -5421
  933. package/__chunks__/index-a7b6b429.js +0 -5420
  934. package/__chunks__/omit-f17deb8f.mjs +0 -1296
  935. package/__chunks__/omit-fca26542.js +0 -1295
  936. package/__chunks__/real-module-515df21d.mjs +0 -216
  937. package/__chunks__/real-module-e36b1436.js +0 -215
  938. package/__chunks__/useTriggerWidth-b554acaf.mjs +0 -2031
  939. package/__chunks__/useTriggerWidth-e11bf6d6.js +0 -2030
@@ -0,0 +1,2068 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
33
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
34
+ const React = require("react");
35
+ const utilities_css = require("../utilities/css.js");
36
+ const utilities_useScrollbar = require("../utilities/useScrollbar.js");
37
+ const Icon = require("../__chunks__/Icon-YEBBOjcK.js");
38
+ const Text = require("../__chunks__/Text-DKSomTmh.js");
39
+ const useModalOverlay = require("../__chunks__/useModalOverlay-gSHY_FAb.js");
40
+ const Overlay = require("../__chunks__/Overlay-CwJbrICR.js");
41
+ const objectWithoutPropertiesLoose = require("../__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js");
42
+ const _commonjsHelpers = require("../__chunks__/_commonjsHelpers-Bc2YnDe1.js");
43
+ const ReactDOM = require("react-dom");
44
+ const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-CiUR_pLO.js");
45
+ const useDialog = require("../__chunks__/useDialog-DJ-g6m8Y.js");
46
+ function _interopNamespaceDefault(e) {
47
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
48
+ if (e) {
49
+ for (const k in e) {
50
+ if (k !== "default") {
51
+ const d = Object.getOwnPropertyDescriptor(e, k);
52
+ Object.defineProperty(n, k, d.get ? d : {
53
+ enumerable: true,
54
+ get: () => e[k]
55
+ });
56
+ }
57
+ }
58
+ }
59
+ n.default = e;
60
+ return Object.freeze(n);
61
+ }
62
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
63
+ const underlayBg = "_underlayBg_1d5mb_5";
64
+ const underlayBgEnter = "_underlayBgEnter_1d5mb_33";
65
+ const underlayBgEnterDone = "_underlayBgEnterDone_1d5mb_37";
66
+ const underlayBgExit = "_underlayBgExit_1d5mb_42";
67
+ const underlayBox = "_underlayBox_1d5mb_47";
68
+ const underlayBoxAppear = "_underlayBoxAppear_1d5mb_58";
69
+ const underlayBoxExit = "_underlayBoxExit_1d5mb_66";
70
+ const Drawer$1 = "_Drawer_1d5mb_70";
71
+ const header = "_header_1d5mb_87";
72
+ const stuck = "_stuck_1d5mb_90";
73
+ const banner = "_banner_1d5mb_94";
74
+ const body = "_body_1d5mb_100";
75
+ const closeButton = "_closeButton_1d5mb_117";
76
+ const banneredContentArea = "_banneredContentArea_1d5mb_132";
77
+ const standaloneContentArea = "_standaloneContentArea_1d5mb_136";
78
+ const styles = {
79
+ underlayBg,
80
+ underlayBgEnter,
81
+ underlayBgEnterDone,
82
+ underlayBgExit,
83
+ underlayBox,
84
+ underlayBoxAppear,
85
+ underlayBoxExit,
86
+ Drawer: Drawer$1,
87
+ header,
88
+ stuck,
89
+ banner,
90
+ body,
91
+ closeButton,
92
+ banneredContentArea,
93
+ standaloneContentArea
94
+ };
95
+ function DrawerBanner(props) {
96
+ const className = utilities_css.classNames(styles.banner);
97
+ return React.createElement("div", {
98
+ className
99
+ }, props.children);
100
+ }
101
+ const DrawerContext = React.createContext(null);
102
+ const useDrawerContext = () => {
103
+ const drawerContext = React.useContext(DrawerContext);
104
+ if (!drawerContext) {
105
+ throw new Error("useDrawer must be used within a Drawer");
106
+ }
107
+ return drawerContext;
108
+ };
109
+ const DrawerTriggerContext = React.createContext(null);
110
+ const useDrawerTriggerContext = () => {
111
+ const drawerTriggerContext = React.useContext(DrawerTriggerContext);
112
+ if (!drawerTriggerContext) {
113
+ throw new Error("useDrawerTrigger must be used within a DrawerTrigger");
114
+ }
115
+ return drawerTriggerContext;
116
+ };
117
+ const useDrawerTrigger = () => {
118
+ const drawerTriggerContext = useDrawerTriggerContext();
119
+ return drawerTriggerContext.state;
120
+ };
121
+ function DrawerBody(props) {
122
+ const { children } = props;
123
+ const drawerContext = useDrawerContext();
124
+ utilities_useScrollbar.useScrollbar(drawerContext.bodyRef, "ezui-os-theme-drawer");
125
+ return React.createElement("div", {
126
+ className: styles.body,
127
+ ref: drawerContext.bodyRef
128
+ }, React.createElement("div", {
129
+ "data-intercept": "header",
130
+ ref: drawerContext.headerInterceptorRef
131
+ }), children);
132
+ }
133
+ var __defProp2 = Object.defineProperty;
134
+ var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
135
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
136
+ var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
137
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
138
+ enumerable: true,
139
+ configurable: true,
140
+ writable: true,
141
+ value
142
+ }) : obj[key] = value;
143
+ var __spreadValues2 = (a, b) => {
144
+ for (var prop in b || (b = {})) if (__hasOwnProp2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
145
+ if (__getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(b)) {
146
+ if (__propIsEnum2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
147
+ }
148
+ return a;
149
+ };
150
+ var __objRest2 = (source, exclude) => {
151
+ var target = {};
152
+ for (var prop in source) if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
153
+ if (source != null && __getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(source)) {
154
+ if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop)) target[prop] = source[prop];
155
+ }
156
+ return target;
157
+ };
158
+ const Cancel = (_a) => {
159
+ var _b = _a, { title, titleId } = _b, props = __objRest2(_b, ["title", "titleId"]);
160
+ return React__namespace.createElement("svg", __spreadValues2({
161
+ xmlns: "http://www.w3.org/2000/svg",
162
+ viewBox: "0 -960 960 960",
163
+ "aria-labelledby": titleId
164
+ }, props), title ? React__namespace.createElement("title", {
165
+ id: titleId
166
+ }, title) : null, React__namespace.createElement("path", {
167
+ d: "M331.54-299.54 480-448l148.46 148.46 32-32L512-480l148.46-148.46-32-32L480-512 331.54-660.46l-32 32L448-480 299.54-331.54l32 32ZM480.07-100q-78.22 0-147.4-29.92t-120.99-81.71q-51.81-51.79-81.75-120.94Q100-401.71 100-479.93q0-78.84 29.92-148.21t81.71-120.68q51.79-51.31 120.94-81.25Q401.71-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.22-29.92 147.4t-81.21 120.99q-51.29 51.81-120.63 81.75Q558.9-100 480.07-100Zm-.07-45.39q139.69 0 237.15-97.76 97.46-97.77 97.46-236.85 0-139.69-97.46-237.15-97.46-97.46-237.15-97.46-139.08 0-236.85 97.46-97.76 97.46-97.76 237.15 0 139.08 97.76 236.85 97.77 97.76 236.85 97.76ZM480-480Z"
168
+ }));
169
+ };
170
+ function DrawerCloseButton() {
171
+ const drawerTriggerContext = useDrawerTriggerContext();
172
+ const handleClick = React.useCallback(() => {
173
+ drawerTriggerContext.state.close();
174
+ }, [drawerTriggerContext.state]);
175
+ if (!drawerTriggerContext.isDismissable) {
176
+ return null;
177
+ }
178
+ return React.createElement("button", {
179
+ className: styles.closeButton,
180
+ onClick: handleClick
181
+ }, React.createElement(Text.Text, {
182
+ visuallyHidden: true
183
+ }, "Close drawer"), React.createElement(Icon.Icon, {
184
+ symbol: Cancel,
185
+ size: "md"
186
+ }));
187
+ }
188
+ function _setPrototypeOf(o, p) {
189
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
190
+ o2.__proto__ = p2;
191
+ return o2;
192
+ };
193
+ return _setPrototypeOf(o, p);
194
+ }
195
+ function _inheritsLoose(subClass, superClass) {
196
+ subClass.prototype = Object.create(superClass.prototype);
197
+ subClass.prototype.constructor = subClass;
198
+ _setPrototypeOf(subClass, superClass);
199
+ }
200
+ var propTypes = { exports: {} };
201
+ var reactIs = { exports: {} };
202
+ var reactIs_production_min = {};
203
+ /** @license React v16.13.1
204
+ * react-is.production.min.js
205
+ *
206
+ * Copyright (c) Facebook, Inc. and its affiliates.
207
+ *
208
+ * This source code is licensed under the MIT license found in the
209
+ * LICENSE file in the root directory of this source tree.
210
+ */
211
+ var hasRequiredReactIs_production_min;
212
+ function requireReactIs_production_min() {
213
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
214
+ hasRequiredReactIs_production_min = 1;
215
+ var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
216
+ function z(a) {
217
+ if ("object" === typeof a && null !== a) {
218
+ var u = a.$$typeof;
219
+ switch (u) {
220
+ case c:
221
+ switch (a = a.type, a) {
222
+ case l:
223
+ case m:
224
+ case e:
225
+ case g:
226
+ case f:
227
+ case p:
228
+ return a;
229
+ default:
230
+ switch (a = a && a.$$typeof, a) {
231
+ case k:
232
+ case n:
233
+ case t:
234
+ case r:
235
+ case h:
236
+ return a;
237
+ default:
238
+ return u;
239
+ }
240
+ }
241
+ case d:
242
+ return u;
243
+ }
244
+ }
245
+ }
246
+ function A(a) {
247
+ return z(a) === m;
248
+ }
249
+ reactIs_production_min.AsyncMode = l;
250
+ reactIs_production_min.ConcurrentMode = m;
251
+ reactIs_production_min.ContextConsumer = k;
252
+ reactIs_production_min.ContextProvider = h;
253
+ reactIs_production_min.Element = c;
254
+ reactIs_production_min.ForwardRef = n;
255
+ reactIs_production_min.Fragment = e;
256
+ reactIs_production_min.Lazy = t;
257
+ reactIs_production_min.Memo = r;
258
+ reactIs_production_min.Portal = d;
259
+ reactIs_production_min.Profiler = g;
260
+ reactIs_production_min.StrictMode = f;
261
+ reactIs_production_min.Suspense = p;
262
+ reactIs_production_min.isAsyncMode = function(a) {
263
+ return A(a) || z(a) === l;
264
+ };
265
+ reactIs_production_min.isConcurrentMode = A;
266
+ reactIs_production_min.isContextConsumer = function(a) {
267
+ return z(a) === k;
268
+ };
269
+ reactIs_production_min.isContextProvider = function(a) {
270
+ return z(a) === h;
271
+ };
272
+ reactIs_production_min.isElement = function(a) {
273
+ return "object" === typeof a && null !== a && a.$$typeof === c;
274
+ };
275
+ reactIs_production_min.isForwardRef = function(a) {
276
+ return z(a) === n;
277
+ };
278
+ reactIs_production_min.isFragment = function(a) {
279
+ return z(a) === e;
280
+ };
281
+ reactIs_production_min.isLazy = function(a) {
282
+ return z(a) === t;
283
+ };
284
+ reactIs_production_min.isMemo = function(a) {
285
+ return z(a) === r;
286
+ };
287
+ reactIs_production_min.isPortal = function(a) {
288
+ return z(a) === d;
289
+ };
290
+ reactIs_production_min.isProfiler = function(a) {
291
+ return z(a) === g;
292
+ };
293
+ reactIs_production_min.isStrictMode = function(a) {
294
+ return z(a) === f;
295
+ };
296
+ reactIs_production_min.isSuspense = function(a) {
297
+ return z(a) === p;
298
+ };
299
+ reactIs_production_min.isValidElementType = function(a) {
300
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
301
+ };
302
+ reactIs_production_min.typeOf = z;
303
+ return reactIs_production_min;
304
+ }
305
+ var reactIs_development = {};
306
+ /** @license React v16.13.1
307
+ * react-is.development.js
308
+ *
309
+ * Copyright (c) Facebook, Inc. and its affiliates.
310
+ *
311
+ * This source code is licensed under the MIT license found in the
312
+ * LICENSE file in the root directory of this source tree.
313
+ */
314
+ var hasRequiredReactIs_development;
315
+ function requireReactIs_development() {
316
+ if (hasRequiredReactIs_development) return reactIs_development;
317
+ hasRequiredReactIs_development = 1;
318
+ if (process.env.NODE_ENV !== "production") {
319
+ (function() {
320
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
321
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
322
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
323
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
324
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
325
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
326
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
327
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
328
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
329
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
330
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
331
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
332
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
333
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
334
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
335
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
336
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
337
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
338
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
339
+ function isValidElementType(type) {
340
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
341
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
342
+ }
343
+ function typeOf(object) {
344
+ if (typeof object === "object" && object !== null) {
345
+ var $$typeof = object.$$typeof;
346
+ switch ($$typeof) {
347
+ case REACT_ELEMENT_TYPE:
348
+ var type = object.type;
349
+ switch (type) {
350
+ case REACT_ASYNC_MODE_TYPE:
351
+ case REACT_CONCURRENT_MODE_TYPE:
352
+ case REACT_FRAGMENT_TYPE:
353
+ case REACT_PROFILER_TYPE:
354
+ case REACT_STRICT_MODE_TYPE:
355
+ case REACT_SUSPENSE_TYPE:
356
+ return type;
357
+ default:
358
+ var $$typeofType = type && type.$$typeof;
359
+ switch ($$typeofType) {
360
+ case REACT_CONTEXT_TYPE:
361
+ case REACT_FORWARD_REF_TYPE:
362
+ case REACT_LAZY_TYPE:
363
+ case REACT_MEMO_TYPE:
364
+ case REACT_PROVIDER_TYPE:
365
+ return $$typeofType;
366
+ default:
367
+ return $$typeof;
368
+ }
369
+ }
370
+ case REACT_PORTAL_TYPE:
371
+ return $$typeof;
372
+ }
373
+ }
374
+ return void 0;
375
+ }
376
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
377
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
378
+ var ContextConsumer = REACT_CONTEXT_TYPE;
379
+ var ContextProvider = REACT_PROVIDER_TYPE;
380
+ var Element2 = REACT_ELEMENT_TYPE;
381
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
382
+ var Fragment = REACT_FRAGMENT_TYPE;
383
+ var Lazy = REACT_LAZY_TYPE;
384
+ var Memo = REACT_MEMO_TYPE;
385
+ var Portal = REACT_PORTAL_TYPE;
386
+ var Profiler = REACT_PROFILER_TYPE;
387
+ var StrictMode = REACT_STRICT_MODE_TYPE;
388
+ var Suspense = REACT_SUSPENSE_TYPE;
389
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
390
+ function isAsyncMode(object) {
391
+ {
392
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
393
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
394
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
395
+ }
396
+ }
397
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
398
+ }
399
+ function isConcurrentMode(object) {
400
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
401
+ }
402
+ function isContextConsumer(object) {
403
+ return typeOf(object) === REACT_CONTEXT_TYPE;
404
+ }
405
+ function isContextProvider(object) {
406
+ return typeOf(object) === REACT_PROVIDER_TYPE;
407
+ }
408
+ function isElement(object) {
409
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
410
+ }
411
+ function isForwardRef(object) {
412
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
413
+ }
414
+ function isFragment(object) {
415
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
416
+ }
417
+ function isLazy(object) {
418
+ return typeOf(object) === REACT_LAZY_TYPE;
419
+ }
420
+ function isMemo(object) {
421
+ return typeOf(object) === REACT_MEMO_TYPE;
422
+ }
423
+ function isPortal(object) {
424
+ return typeOf(object) === REACT_PORTAL_TYPE;
425
+ }
426
+ function isProfiler(object) {
427
+ return typeOf(object) === REACT_PROFILER_TYPE;
428
+ }
429
+ function isStrictMode(object) {
430
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
431
+ }
432
+ function isSuspense(object) {
433
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
434
+ }
435
+ reactIs_development.AsyncMode = AsyncMode;
436
+ reactIs_development.ConcurrentMode = ConcurrentMode;
437
+ reactIs_development.ContextConsumer = ContextConsumer;
438
+ reactIs_development.ContextProvider = ContextProvider;
439
+ reactIs_development.Element = Element2;
440
+ reactIs_development.ForwardRef = ForwardRef;
441
+ reactIs_development.Fragment = Fragment;
442
+ reactIs_development.Lazy = Lazy;
443
+ reactIs_development.Memo = Memo;
444
+ reactIs_development.Portal = Portal;
445
+ reactIs_development.Profiler = Profiler;
446
+ reactIs_development.StrictMode = StrictMode;
447
+ reactIs_development.Suspense = Suspense;
448
+ reactIs_development.isAsyncMode = isAsyncMode;
449
+ reactIs_development.isConcurrentMode = isConcurrentMode;
450
+ reactIs_development.isContextConsumer = isContextConsumer;
451
+ reactIs_development.isContextProvider = isContextProvider;
452
+ reactIs_development.isElement = isElement;
453
+ reactIs_development.isForwardRef = isForwardRef;
454
+ reactIs_development.isFragment = isFragment;
455
+ reactIs_development.isLazy = isLazy;
456
+ reactIs_development.isMemo = isMemo;
457
+ reactIs_development.isPortal = isPortal;
458
+ reactIs_development.isProfiler = isProfiler;
459
+ reactIs_development.isStrictMode = isStrictMode;
460
+ reactIs_development.isSuspense = isSuspense;
461
+ reactIs_development.isValidElementType = isValidElementType;
462
+ reactIs_development.typeOf = typeOf;
463
+ })();
464
+ }
465
+ return reactIs_development;
466
+ }
467
+ var hasRequiredReactIs;
468
+ function requireReactIs() {
469
+ if (hasRequiredReactIs) return reactIs.exports;
470
+ hasRequiredReactIs = 1;
471
+ if (process.env.NODE_ENV === "production") {
472
+ reactIs.exports = requireReactIs_production_min();
473
+ } else {
474
+ reactIs.exports = requireReactIs_development();
475
+ }
476
+ return reactIs.exports;
477
+ }
478
+ /*
479
+ object-assign
480
+ (c) Sindre Sorhus
481
+ @license MIT
482
+ */
483
+ var objectAssign;
484
+ var hasRequiredObjectAssign;
485
+ function requireObjectAssign() {
486
+ if (hasRequiredObjectAssign) return objectAssign;
487
+ hasRequiredObjectAssign = 1;
488
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
489
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
490
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
491
+ function toObject(val) {
492
+ if (val === null || val === void 0) {
493
+ throw new TypeError("Object.assign cannot be called with null or undefined");
494
+ }
495
+ return Object(val);
496
+ }
497
+ function shouldUseNative() {
498
+ try {
499
+ if (!Object.assign) {
500
+ return false;
501
+ }
502
+ var test1 = new String("abc");
503
+ test1[5] = "de";
504
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
505
+ return false;
506
+ }
507
+ var test2 = {};
508
+ for (var i = 0; i < 10; i++) {
509
+ test2["_" + String.fromCharCode(i)] = i;
510
+ }
511
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
512
+ return test2[n];
513
+ });
514
+ if (order2.join("") !== "0123456789") {
515
+ return false;
516
+ }
517
+ var test3 = {};
518
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
519
+ test3[letter] = letter;
520
+ });
521
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
522
+ return false;
523
+ }
524
+ return true;
525
+ } catch (err) {
526
+ return false;
527
+ }
528
+ }
529
+ objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
530
+ var from;
531
+ var to = toObject(target);
532
+ var symbols;
533
+ for (var s = 1; s < arguments.length; s++) {
534
+ from = Object(arguments[s]);
535
+ for (var key in from) {
536
+ if (hasOwnProperty.call(from, key)) {
537
+ to[key] = from[key];
538
+ }
539
+ }
540
+ if (getOwnPropertySymbols) {
541
+ symbols = getOwnPropertySymbols(from);
542
+ for (var i = 0; i < symbols.length; i++) {
543
+ if (propIsEnumerable.call(from, symbols[i])) {
544
+ to[symbols[i]] = from[symbols[i]];
545
+ }
546
+ }
547
+ }
548
+ }
549
+ return to;
550
+ };
551
+ return objectAssign;
552
+ }
553
+ var ReactPropTypesSecret_1;
554
+ var hasRequiredReactPropTypesSecret;
555
+ function requireReactPropTypesSecret() {
556
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
557
+ hasRequiredReactPropTypesSecret = 1;
558
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
559
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
560
+ return ReactPropTypesSecret_1;
561
+ }
562
+ var has;
563
+ var hasRequiredHas;
564
+ function requireHas() {
565
+ if (hasRequiredHas) return has;
566
+ hasRequiredHas = 1;
567
+ has = Function.call.bind(Object.prototype.hasOwnProperty);
568
+ return has;
569
+ }
570
+ var checkPropTypes_1;
571
+ var hasRequiredCheckPropTypes;
572
+ function requireCheckPropTypes() {
573
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
574
+ hasRequiredCheckPropTypes = 1;
575
+ var printWarning = function() {
576
+ };
577
+ if (process.env.NODE_ENV !== "production") {
578
+ var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
579
+ var loggedTypeFailures = {};
580
+ var has2 = /* @__PURE__ */ requireHas();
581
+ printWarning = function(text) {
582
+ var message = "Warning: " + text;
583
+ if (typeof console !== "undefined") {
584
+ console.error(message);
585
+ }
586
+ try {
587
+ throw new Error(message);
588
+ } catch (x) {
589
+ }
590
+ };
591
+ }
592
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
593
+ if (process.env.NODE_ENV !== "production") {
594
+ for (var typeSpecName in typeSpecs) {
595
+ if (has2(typeSpecs, typeSpecName)) {
596
+ var error;
597
+ try {
598
+ if (typeof typeSpecs[typeSpecName] !== "function") {
599
+ var err = Error(
600
+ (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
601
+ );
602
+ err.name = "Invariant Violation";
603
+ throw err;
604
+ }
605
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
606
+ } catch (ex) {
607
+ error = ex;
608
+ }
609
+ if (error && !(error instanceof Error)) {
610
+ printWarning(
611
+ (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
612
+ );
613
+ }
614
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
615
+ loggedTypeFailures[error.message] = true;
616
+ var stack = getStack ? getStack() : "";
617
+ printWarning(
618
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
619
+ );
620
+ }
621
+ }
622
+ }
623
+ }
624
+ }
625
+ checkPropTypes.resetWarningCache = function() {
626
+ if (process.env.NODE_ENV !== "production") {
627
+ loggedTypeFailures = {};
628
+ }
629
+ };
630
+ checkPropTypes_1 = checkPropTypes;
631
+ return checkPropTypes_1;
632
+ }
633
+ var factoryWithTypeCheckers;
634
+ var hasRequiredFactoryWithTypeCheckers;
635
+ function requireFactoryWithTypeCheckers() {
636
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
637
+ hasRequiredFactoryWithTypeCheckers = 1;
638
+ var ReactIs = requireReactIs();
639
+ var assign = requireObjectAssign();
640
+ var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
641
+ var has2 = /* @__PURE__ */ requireHas();
642
+ var checkPropTypes = /* @__PURE__ */ requireCheckPropTypes();
643
+ var printWarning = function() {
644
+ };
645
+ if (process.env.NODE_ENV !== "production") {
646
+ printWarning = function(text) {
647
+ var message = "Warning: " + text;
648
+ if (typeof console !== "undefined") {
649
+ console.error(message);
650
+ }
651
+ try {
652
+ throw new Error(message);
653
+ } catch (x) {
654
+ }
655
+ };
656
+ }
657
+ function emptyFunctionThatReturnsNull() {
658
+ return null;
659
+ }
660
+ factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
661
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
662
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
663
+ function getIteratorFn(maybeIterable) {
664
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
665
+ if (typeof iteratorFn === "function") {
666
+ return iteratorFn;
667
+ }
668
+ }
669
+ var ANONYMOUS = "<<anonymous>>";
670
+ var ReactPropTypes = {
671
+ array: createPrimitiveTypeChecker("array"),
672
+ bigint: createPrimitiveTypeChecker("bigint"),
673
+ bool: createPrimitiveTypeChecker("boolean"),
674
+ func: createPrimitiveTypeChecker("function"),
675
+ number: createPrimitiveTypeChecker("number"),
676
+ object: createPrimitiveTypeChecker("object"),
677
+ string: createPrimitiveTypeChecker("string"),
678
+ symbol: createPrimitiveTypeChecker("symbol"),
679
+ any: createAnyTypeChecker(),
680
+ arrayOf: createArrayOfTypeChecker,
681
+ element: createElementTypeChecker(),
682
+ elementType: createElementTypeTypeChecker(),
683
+ instanceOf: createInstanceTypeChecker,
684
+ node: createNodeChecker(),
685
+ objectOf: createObjectOfTypeChecker,
686
+ oneOf: createEnumTypeChecker,
687
+ oneOfType: createUnionTypeChecker,
688
+ shape: createShapeTypeChecker,
689
+ exact: createStrictShapeTypeChecker
690
+ };
691
+ function is(x, y) {
692
+ if (x === y) {
693
+ return x !== 0 || 1 / x === 1 / y;
694
+ } else {
695
+ return x !== x && y !== y;
696
+ }
697
+ }
698
+ function PropTypeError(message, data) {
699
+ this.message = message;
700
+ this.data = data && typeof data === "object" ? data : {};
701
+ this.stack = "";
702
+ }
703
+ PropTypeError.prototype = Error.prototype;
704
+ function createChainableTypeChecker(validate) {
705
+ if (process.env.NODE_ENV !== "production") {
706
+ var manualPropTypeCallCache = {};
707
+ var manualPropTypeWarningCount = 0;
708
+ }
709
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
710
+ componentName = componentName || ANONYMOUS;
711
+ propFullName = propFullName || propName;
712
+ if (secret !== ReactPropTypesSecret) {
713
+ if (throwOnDirectAccess) {
714
+ var err = new Error(
715
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
716
+ );
717
+ err.name = "Invariant Violation";
718
+ throw err;
719
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
720
+ var cacheKey = componentName + ":" + propName;
721
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
722
+ manualPropTypeWarningCount < 3) {
723
+ printWarning(
724
+ "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
725
+ );
726
+ manualPropTypeCallCache[cacheKey] = true;
727
+ manualPropTypeWarningCount++;
728
+ }
729
+ }
730
+ }
731
+ if (props[propName] == null) {
732
+ if (isRequired) {
733
+ if (props[propName] === null) {
734
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
735
+ }
736
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
737
+ }
738
+ return null;
739
+ } else {
740
+ return validate(props, propName, componentName, location, propFullName);
741
+ }
742
+ }
743
+ var chainedCheckType = checkType.bind(null, false);
744
+ chainedCheckType.isRequired = checkType.bind(null, true);
745
+ return chainedCheckType;
746
+ }
747
+ function createPrimitiveTypeChecker(expectedType) {
748
+ function validate(props, propName, componentName, location, propFullName, secret) {
749
+ var propValue = props[propName];
750
+ var propType = getPropType(propValue);
751
+ if (propType !== expectedType) {
752
+ var preciseType = getPreciseType(propValue);
753
+ return new PropTypeError(
754
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
755
+ { expectedType }
756
+ );
757
+ }
758
+ return null;
759
+ }
760
+ return createChainableTypeChecker(validate);
761
+ }
762
+ function createAnyTypeChecker() {
763
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
764
+ }
765
+ function createArrayOfTypeChecker(typeChecker) {
766
+ function validate(props, propName, componentName, location, propFullName) {
767
+ if (typeof typeChecker !== "function") {
768
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
769
+ }
770
+ var propValue = props[propName];
771
+ if (!Array.isArray(propValue)) {
772
+ var propType = getPropType(propValue);
773
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
774
+ }
775
+ for (var i = 0; i < propValue.length; i++) {
776
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
777
+ if (error instanceof Error) {
778
+ return error;
779
+ }
780
+ }
781
+ return null;
782
+ }
783
+ return createChainableTypeChecker(validate);
784
+ }
785
+ function createElementTypeChecker() {
786
+ function validate(props, propName, componentName, location, propFullName) {
787
+ var propValue = props[propName];
788
+ if (!isValidElement(propValue)) {
789
+ var propType = getPropType(propValue);
790
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
791
+ }
792
+ return null;
793
+ }
794
+ return createChainableTypeChecker(validate);
795
+ }
796
+ function createElementTypeTypeChecker() {
797
+ function validate(props, propName, componentName, location, propFullName) {
798
+ var propValue = props[propName];
799
+ if (!ReactIs.isValidElementType(propValue)) {
800
+ var propType = getPropType(propValue);
801
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
802
+ }
803
+ return null;
804
+ }
805
+ return createChainableTypeChecker(validate);
806
+ }
807
+ function createInstanceTypeChecker(expectedClass) {
808
+ function validate(props, propName, componentName, location, propFullName) {
809
+ if (!(props[propName] instanceof expectedClass)) {
810
+ var expectedClassName = expectedClass.name || ANONYMOUS;
811
+ var actualClassName = getClassName(props[propName]);
812
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
813
+ }
814
+ return null;
815
+ }
816
+ return createChainableTypeChecker(validate);
817
+ }
818
+ function createEnumTypeChecker(expectedValues) {
819
+ if (!Array.isArray(expectedValues)) {
820
+ if (process.env.NODE_ENV !== "production") {
821
+ if (arguments.length > 1) {
822
+ printWarning(
823
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
824
+ );
825
+ } else {
826
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
827
+ }
828
+ }
829
+ return emptyFunctionThatReturnsNull;
830
+ }
831
+ function validate(props, propName, componentName, location, propFullName) {
832
+ var propValue = props[propName];
833
+ for (var i = 0; i < expectedValues.length; i++) {
834
+ if (is(propValue, expectedValues[i])) {
835
+ return null;
836
+ }
837
+ }
838
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
839
+ var type = getPreciseType(value);
840
+ if (type === "symbol") {
841
+ return String(value);
842
+ }
843
+ return value;
844
+ });
845
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
846
+ }
847
+ return createChainableTypeChecker(validate);
848
+ }
849
+ function createObjectOfTypeChecker(typeChecker) {
850
+ function validate(props, propName, componentName, location, propFullName) {
851
+ if (typeof typeChecker !== "function") {
852
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
853
+ }
854
+ var propValue = props[propName];
855
+ var propType = getPropType(propValue);
856
+ if (propType !== "object") {
857
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
858
+ }
859
+ for (var key in propValue) {
860
+ if (has2(propValue, key)) {
861
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
862
+ if (error instanceof Error) {
863
+ return error;
864
+ }
865
+ }
866
+ }
867
+ return null;
868
+ }
869
+ return createChainableTypeChecker(validate);
870
+ }
871
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
872
+ if (!Array.isArray(arrayOfTypeCheckers)) {
873
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
874
+ return emptyFunctionThatReturnsNull;
875
+ }
876
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
877
+ var checker = arrayOfTypeCheckers[i];
878
+ if (typeof checker !== "function") {
879
+ printWarning(
880
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
881
+ );
882
+ return emptyFunctionThatReturnsNull;
883
+ }
884
+ }
885
+ function validate(props, propName, componentName, location, propFullName) {
886
+ var expectedTypes = [];
887
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
888
+ var checker2 = arrayOfTypeCheckers[i2];
889
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
890
+ if (checkerResult == null) {
891
+ return null;
892
+ }
893
+ if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
894
+ expectedTypes.push(checkerResult.data.expectedType);
895
+ }
896
+ }
897
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
898
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
899
+ }
900
+ return createChainableTypeChecker(validate);
901
+ }
902
+ function createNodeChecker() {
903
+ function validate(props, propName, componentName, location, propFullName) {
904
+ if (!isNode(props[propName])) {
905
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
906
+ }
907
+ return null;
908
+ }
909
+ return createChainableTypeChecker(validate);
910
+ }
911
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
912
+ return new PropTypeError(
913
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
914
+ );
915
+ }
916
+ function createShapeTypeChecker(shapeTypes) {
917
+ function validate(props, propName, componentName, location, propFullName) {
918
+ var propValue = props[propName];
919
+ var propType = getPropType(propValue);
920
+ if (propType !== "object") {
921
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
922
+ }
923
+ for (var key in shapeTypes) {
924
+ var checker = shapeTypes[key];
925
+ if (typeof checker !== "function") {
926
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
927
+ }
928
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
929
+ if (error) {
930
+ return error;
931
+ }
932
+ }
933
+ return null;
934
+ }
935
+ return createChainableTypeChecker(validate);
936
+ }
937
+ function createStrictShapeTypeChecker(shapeTypes) {
938
+ function validate(props, propName, componentName, location, propFullName) {
939
+ var propValue = props[propName];
940
+ var propType = getPropType(propValue);
941
+ if (propType !== "object") {
942
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
943
+ }
944
+ var allKeys = assign({}, props[propName], shapeTypes);
945
+ for (var key in allKeys) {
946
+ var checker = shapeTypes[key];
947
+ if (has2(shapeTypes, key) && typeof checker !== "function") {
948
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
949
+ }
950
+ if (!checker) {
951
+ return new PropTypeError(
952
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
953
+ );
954
+ }
955
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
956
+ if (error) {
957
+ return error;
958
+ }
959
+ }
960
+ return null;
961
+ }
962
+ return createChainableTypeChecker(validate);
963
+ }
964
+ function isNode(propValue) {
965
+ switch (typeof propValue) {
966
+ case "number":
967
+ case "string":
968
+ case "undefined":
969
+ return true;
970
+ case "boolean":
971
+ return !propValue;
972
+ case "object":
973
+ if (Array.isArray(propValue)) {
974
+ return propValue.every(isNode);
975
+ }
976
+ if (propValue === null || isValidElement(propValue)) {
977
+ return true;
978
+ }
979
+ var iteratorFn = getIteratorFn(propValue);
980
+ if (iteratorFn) {
981
+ var iterator = iteratorFn.call(propValue);
982
+ var step;
983
+ if (iteratorFn !== propValue.entries) {
984
+ while (!(step = iterator.next()).done) {
985
+ if (!isNode(step.value)) {
986
+ return false;
987
+ }
988
+ }
989
+ } else {
990
+ while (!(step = iterator.next()).done) {
991
+ var entry = step.value;
992
+ if (entry) {
993
+ if (!isNode(entry[1])) {
994
+ return false;
995
+ }
996
+ }
997
+ }
998
+ }
999
+ } else {
1000
+ return false;
1001
+ }
1002
+ return true;
1003
+ default:
1004
+ return false;
1005
+ }
1006
+ }
1007
+ function isSymbol(propType, propValue) {
1008
+ if (propType === "symbol") {
1009
+ return true;
1010
+ }
1011
+ if (!propValue) {
1012
+ return false;
1013
+ }
1014
+ if (propValue["@@toStringTag"] === "Symbol") {
1015
+ return true;
1016
+ }
1017
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
1018
+ return true;
1019
+ }
1020
+ return false;
1021
+ }
1022
+ function getPropType(propValue) {
1023
+ var propType = typeof propValue;
1024
+ if (Array.isArray(propValue)) {
1025
+ return "array";
1026
+ }
1027
+ if (propValue instanceof RegExp) {
1028
+ return "object";
1029
+ }
1030
+ if (isSymbol(propType, propValue)) {
1031
+ return "symbol";
1032
+ }
1033
+ return propType;
1034
+ }
1035
+ function getPreciseType(propValue) {
1036
+ if (typeof propValue === "undefined" || propValue === null) {
1037
+ return "" + propValue;
1038
+ }
1039
+ var propType = getPropType(propValue);
1040
+ if (propType === "object") {
1041
+ if (propValue instanceof Date) {
1042
+ return "date";
1043
+ } else if (propValue instanceof RegExp) {
1044
+ return "regexp";
1045
+ }
1046
+ }
1047
+ return propType;
1048
+ }
1049
+ function getPostfixForTypeWarning(value) {
1050
+ var type = getPreciseType(value);
1051
+ switch (type) {
1052
+ case "array":
1053
+ case "object":
1054
+ return "an " + type;
1055
+ case "boolean":
1056
+ case "date":
1057
+ case "regexp":
1058
+ return "a " + type;
1059
+ default:
1060
+ return type;
1061
+ }
1062
+ }
1063
+ function getClassName(propValue) {
1064
+ if (!propValue.constructor || !propValue.constructor.name) {
1065
+ return ANONYMOUS;
1066
+ }
1067
+ return propValue.constructor.name;
1068
+ }
1069
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1070
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1071
+ ReactPropTypes.PropTypes = ReactPropTypes;
1072
+ return ReactPropTypes;
1073
+ };
1074
+ return factoryWithTypeCheckers;
1075
+ }
1076
+ var factoryWithThrowingShims;
1077
+ var hasRequiredFactoryWithThrowingShims;
1078
+ function requireFactoryWithThrowingShims() {
1079
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1080
+ hasRequiredFactoryWithThrowingShims = 1;
1081
+ var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
1082
+ function emptyFunction() {
1083
+ }
1084
+ function emptyFunctionWithReset() {
1085
+ }
1086
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1087
+ factoryWithThrowingShims = function() {
1088
+ function shim(props, propName, componentName, location, propFullName, secret) {
1089
+ if (secret === ReactPropTypesSecret) {
1090
+ return;
1091
+ }
1092
+ var err = new Error(
1093
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1094
+ );
1095
+ err.name = "Invariant Violation";
1096
+ throw err;
1097
+ }
1098
+ shim.isRequired = shim;
1099
+ function getShim() {
1100
+ return shim;
1101
+ }
1102
+ var ReactPropTypes = {
1103
+ array: shim,
1104
+ bigint: shim,
1105
+ bool: shim,
1106
+ func: shim,
1107
+ number: shim,
1108
+ object: shim,
1109
+ string: shim,
1110
+ symbol: shim,
1111
+ any: shim,
1112
+ arrayOf: getShim,
1113
+ element: shim,
1114
+ elementType: shim,
1115
+ instanceOf: getShim,
1116
+ node: shim,
1117
+ objectOf: getShim,
1118
+ oneOf: getShim,
1119
+ oneOfType: getShim,
1120
+ shape: getShim,
1121
+ exact: getShim,
1122
+ checkPropTypes: emptyFunctionWithReset,
1123
+ resetWarningCache: emptyFunction
1124
+ };
1125
+ ReactPropTypes.PropTypes = ReactPropTypes;
1126
+ return ReactPropTypes;
1127
+ };
1128
+ return factoryWithThrowingShims;
1129
+ }
1130
+ var hasRequiredPropTypes;
1131
+ function requirePropTypes() {
1132
+ if (hasRequiredPropTypes) return propTypes.exports;
1133
+ hasRequiredPropTypes = 1;
1134
+ if (process.env.NODE_ENV !== "production") {
1135
+ var ReactIs = requireReactIs();
1136
+ var throwOnDirectAccess = true;
1137
+ propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1138
+ } else {
1139
+ propTypes.exports = /* @__PURE__ */ requireFactoryWithThrowingShims()();
1140
+ }
1141
+ return propTypes.exports;
1142
+ }
1143
+ var propTypesExports = /* @__PURE__ */ requirePropTypes();
1144
+ const PropTypes = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(propTypesExports);
1145
+ function hasClass(element, className) {
1146
+ if (element.classList) return !!className && element.classList.contains(className);
1147
+ return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
1148
+ }
1149
+ function addClass(element, className) {
1150
+ if (element.classList) element.classList.add(className);
1151
+ else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
1152
+ else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
1153
+ }
1154
+ function replaceClassName(origClass, classToRemove) {
1155
+ return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
1156
+ }
1157
+ function removeClass$1(element, className) {
1158
+ if (element.classList) {
1159
+ element.classList.remove(className);
1160
+ } else if (typeof element.className === "string") {
1161
+ element.className = replaceClassName(element.className, className);
1162
+ } else {
1163
+ element.setAttribute("class", replaceClassName(element.className && element.className.baseVal || "", className));
1164
+ }
1165
+ }
1166
+ const config = {
1167
+ disabled: false
1168
+ };
1169
+ var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
1170
+ enter: PropTypes.number,
1171
+ exit: PropTypes.number,
1172
+ appear: PropTypes.number
1173
+ }).isRequired]) : null;
1174
+ var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
1175
+ enter: PropTypes.string,
1176
+ exit: PropTypes.string,
1177
+ active: PropTypes.string
1178
+ }), PropTypes.shape({
1179
+ enter: PropTypes.string,
1180
+ enterDone: PropTypes.string,
1181
+ enterActive: PropTypes.string,
1182
+ exit: PropTypes.string,
1183
+ exitDone: PropTypes.string,
1184
+ exitActive: PropTypes.string
1185
+ })]) : null;
1186
+ const TransitionGroupContext = React.createContext(null);
1187
+ var forceReflow = function forceReflow2(node) {
1188
+ return node.scrollTop;
1189
+ };
1190
+ var UNMOUNTED = "unmounted";
1191
+ var EXITED = "exited";
1192
+ var ENTERING = "entering";
1193
+ var ENTERED = "entered";
1194
+ var EXITING = "exiting";
1195
+ var Transition = /* @__PURE__ */ function(_React$Component) {
1196
+ _inheritsLoose(Transition2, _React$Component);
1197
+ function Transition2(props, context) {
1198
+ var _this;
1199
+ _this = _React$Component.call(this, props, context) || this;
1200
+ var parentGroup = context;
1201
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
1202
+ var initialStatus;
1203
+ _this.appearStatus = null;
1204
+ if (props.in) {
1205
+ if (appear) {
1206
+ initialStatus = EXITED;
1207
+ _this.appearStatus = ENTERING;
1208
+ } else {
1209
+ initialStatus = ENTERED;
1210
+ }
1211
+ } else {
1212
+ if (props.unmountOnExit || props.mountOnEnter) {
1213
+ initialStatus = UNMOUNTED;
1214
+ } else {
1215
+ initialStatus = EXITED;
1216
+ }
1217
+ }
1218
+ _this.state = {
1219
+ status: initialStatus
1220
+ };
1221
+ _this.nextCallback = null;
1222
+ return _this;
1223
+ }
1224
+ Transition2.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
1225
+ var nextIn = _ref.in;
1226
+ if (nextIn && prevState.status === UNMOUNTED) {
1227
+ return {
1228
+ status: EXITED
1229
+ };
1230
+ }
1231
+ return null;
1232
+ };
1233
+ var _proto = Transition2.prototype;
1234
+ _proto.componentDidMount = function componentDidMount() {
1235
+ this.updateStatus(true, this.appearStatus);
1236
+ };
1237
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
1238
+ var nextStatus = null;
1239
+ if (prevProps !== this.props) {
1240
+ var status = this.state.status;
1241
+ if (this.props.in) {
1242
+ if (status !== ENTERING && status !== ENTERED) {
1243
+ nextStatus = ENTERING;
1244
+ }
1245
+ } else {
1246
+ if (status === ENTERING || status === ENTERED) {
1247
+ nextStatus = EXITING;
1248
+ }
1249
+ }
1250
+ }
1251
+ this.updateStatus(false, nextStatus);
1252
+ };
1253
+ _proto.componentWillUnmount = function componentWillUnmount() {
1254
+ this.cancelNextCallback();
1255
+ };
1256
+ _proto.getTimeouts = function getTimeouts() {
1257
+ var timeout2 = this.props.timeout;
1258
+ var exit, enter, appear;
1259
+ exit = enter = appear = timeout2;
1260
+ if (timeout2 != null && typeof timeout2 !== "number") {
1261
+ exit = timeout2.exit;
1262
+ enter = timeout2.enter;
1263
+ appear = timeout2.appear !== void 0 ? timeout2.appear : enter;
1264
+ }
1265
+ return {
1266
+ exit,
1267
+ enter,
1268
+ appear
1269
+ };
1270
+ };
1271
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
1272
+ if (mounting === void 0) {
1273
+ mounting = false;
1274
+ }
1275
+ if (nextStatus !== null) {
1276
+ this.cancelNextCallback();
1277
+ if (nextStatus === ENTERING) {
1278
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
1279
+ var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
1280
+ if (node) forceReflow(node);
1281
+ }
1282
+ this.performEnter(mounting);
1283
+ } else {
1284
+ this.performExit();
1285
+ }
1286
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
1287
+ this.setState({
1288
+ status: UNMOUNTED
1289
+ });
1290
+ }
1291
+ };
1292
+ _proto.performEnter = function performEnter(mounting) {
1293
+ var _this2 = this;
1294
+ var enter = this.props.enter;
1295
+ var appearing = this.context ? this.context.isMounting : mounting;
1296
+ var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing], maybeNode = _ref2[0], maybeAppearing = _ref2[1];
1297
+ var timeouts = this.getTimeouts();
1298
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
1299
+ if (!mounting && !enter || config.disabled) {
1300
+ this.safeSetState({
1301
+ status: ENTERED
1302
+ }, function() {
1303
+ _this2.props.onEntered(maybeNode);
1304
+ });
1305
+ return;
1306
+ }
1307
+ this.props.onEnter(maybeNode, maybeAppearing);
1308
+ this.safeSetState({
1309
+ status: ENTERING
1310
+ }, function() {
1311
+ _this2.props.onEntering(maybeNode, maybeAppearing);
1312
+ _this2.onTransitionEnd(enterTimeout, function() {
1313
+ _this2.safeSetState({
1314
+ status: ENTERED
1315
+ }, function() {
1316
+ _this2.props.onEntered(maybeNode, maybeAppearing);
1317
+ });
1318
+ });
1319
+ });
1320
+ };
1321
+ _proto.performExit = function performExit() {
1322
+ var _this3 = this;
1323
+ var exit = this.props.exit;
1324
+ var timeouts = this.getTimeouts();
1325
+ var maybeNode = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
1326
+ if (!exit || config.disabled) {
1327
+ this.safeSetState({
1328
+ status: EXITED
1329
+ }, function() {
1330
+ _this3.props.onExited(maybeNode);
1331
+ });
1332
+ return;
1333
+ }
1334
+ this.props.onExit(maybeNode);
1335
+ this.safeSetState({
1336
+ status: EXITING
1337
+ }, function() {
1338
+ _this3.props.onExiting(maybeNode);
1339
+ _this3.onTransitionEnd(timeouts.exit, function() {
1340
+ _this3.safeSetState({
1341
+ status: EXITED
1342
+ }, function() {
1343
+ _this3.props.onExited(maybeNode);
1344
+ });
1345
+ });
1346
+ });
1347
+ };
1348
+ _proto.cancelNextCallback = function cancelNextCallback() {
1349
+ if (this.nextCallback !== null) {
1350
+ this.nextCallback.cancel();
1351
+ this.nextCallback = null;
1352
+ }
1353
+ };
1354
+ _proto.safeSetState = function safeSetState(nextState, callback) {
1355
+ callback = this.setNextCallback(callback);
1356
+ this.setState(nextState, callback);
1357
+ };
1358
+ _proto.setNextCallback = function setNextCallback(callback) {
1359
+ var _this4 = this;
1360
+ var active = true;
1361
+ this.nextCallback = function(event) {
1362
+ if (active) {
1363
+ active = false;
1364
+ _this4.nextCallback = null;
1365
+ callback(event);
1366
+ }
1367
+ };
1368
+ this.nextCallback.cancel = function() {
1369
+ active = false;
1370
+ };
1371
+ return this.nextCallback;
1372
+ };
1373
+ _proto.onTransitionEnd = function onTransitionEnd(timeout2, handler) {
1374
+ this.setNextCallback(handler);
1375
+ var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
1376
+ var doesNotHaveTimeoutOrListener = timeout2 == null && !this.props.addEndListener;
1377
+ if (!node || doesNotHaveTimeoutOrListener) {
1378
+ setTimeout(this.nextCallback, 0);
1379
+ return;
1380
+ }
1381
+ if (this.props.addEndListener) {
1382
+ var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], maybeNode = _ref3[0], maybeNextCallback = _ref3[1];
1383
+ this.props.addEndListener(maybeNode, maybeNextCallback);
1384
+ }
1385
+ if (timeout2 != null) {
1386
+ setTimeout(this.nextCallback, timeout2);
1387
+ }
1388
+ };
1389
+ _proto.render = function render() {
1390
+ var status = this.state.status;
1391
+ if (status === UNMOUNTED) {
1392
+ return null;
1393
+ }
1394
+ var _this$props = this.props, children = _this$props.children;
1395
+ _this$props.in;
1396
+ _this$props.mountOnEnter;
1397
+ _this$props.unmountOnExit;
1398
+ _this$props.appear;
1399
+ _this$props.enter;
1400
+ _this$props.exit;
1401
+ _this$props.timeout;
1402
+ _this$props.addEndListener;
1403
+ _this$props.onEnter;
1404
+ _this$props.onEntering;
1405
+ _this$props.onEntered;
1406
+ _this$props.onExit;
1407
+ _this$props.onExiting;
1408
+ _this$props.onExited;
1409
+ _this$props.nodeRef;
1410
+ var childProps = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1411
+ return (
1412
+ // allows for nested Transitions
1413
+ /* @__PURE__ */ React.createElement(TransitionGroupContext.Provider, {
1414
+ value: null
1415
+ }, typeof children === "function" ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
1416
+ );
1417
+ };
1418
+ return Transition2;
1419
+ }(React.Component);
1420
+ Transition.contextType = TransitionGroupContext;
1421
+ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
1422
+ /**
1423
+ * A React reference to DOM element that need to transition:
1424
+ * https://stackoverflow.com/a/51127130/4671932
1425
+ *
1426
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
1427
+ * (e.g. `onEnter`) because user already has direct access to the node.
1428
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
1429
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
1430
+ * (see
1431
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
1432
+ */
1433
+ nodeRef: PropTypes.shape({
1434
+ current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
1435
+ var value = propValue[key];
1436
+ return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
1437
+ }
1438
+ }),
1439
+ /**
1440
+ * A `function` child can be used instead of a React element. This function is
1441
+ * called with the current transition status (`'entering'`, `'entered'`,
1442
+ * `'exiting'`, `'exited'`), which can be used to apply context
1443
+ * specific props to a component.
1444
+ *
1445
+ * ```jsx
1446
+ * <Transition in={this.state.in} timeout={150}>
1447
+ * {state => (
1448
+ * <MyComponent className={`fade fade-${state}`} />
1449
+ * )}
1450
+ * </Transition>
1451
+ * ```
1452
+ */
1453
+ children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
1454
+ /**
1455
+ * Show the component; triggers the enter or exit states
1456
+ */
1457
+ in: PropTypes.bool,
1458
+ /**
1459
+ * By default the child component is mounted immediately along with
1460
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
1461
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
1462
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
1463
+ */
1464
+ mountOnEnter: PropTypes.bool,
1465
+ /**
1466
+ * By default the child component stays mounted after it reaches the `'exited'` state.
1467
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
1468
+ */
1469
+ unmountOnExit: PropTypes.bool,
1470
+ /**
1471
+ * By default the child component does not perform the enter transition when
1472
+ * it first mounts, regardless of the value of `in`. If you want this
1473
+ * behavior, set both `appear` and `in` to `true`.
1474
+ *
1475
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
1476
+ * > only adds an additional enter transition. However, in the
1477
+ * > `<CSSTransition>` component that first enter transition does result in
1478
+ * > additional `.appear-*` classes, that way you can choose to style it
1479
+ * > differently.
1480
+ */
1481
+ appear: PropTypes.bool,
1482
+ /**
1483
+ * Enable or disable enter transitions.
1484
+ */
1485
+ enter: PropTypes.bool,
1486
+ /**
1487
+ * Enable or disable exit transitions.
1488
+ */
1489
+ exit: PropTypes.bool,
1490
+ /**
1491
+ * The duration of the transition, in milliseconds.
1492
+ * Required unless `addEndListener` is provided.
1493
+ *
1494
+ * You may specify a single timeout for all transitions:
1495
+ *
1496
+ * ```jsx
1497
+ * timeout={500}
1498
+ * ```
1499
+ *
1500
+ * or individually:
1501
+ *
1502
+ * ```jsx
1503
+ * timeout={{
1504
+ * appear: 500,
1505
+ * enter: 300,
1506
+ * exit: 500,
1507
+ * }}
1508
+ * ```
1509
+ *
1510
+ * - `appear` defaults to the value of `enter`
1511
+ * - `enter` defaults to `0`
1512
+ * - `exit` defaults to `0`
1513
+ *
1514
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
1515
+ */
1516
+ timeout: function timeout(props) {
1517
+ var pt = timeoutsShape;
1518
+ if (!props.addEndListener) pt = pt.isRequired;
1519
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1520
+ args[_key - 1] = arguments[_key];
1521
+ }
1522
+ return pt.apply(void 0, [props].concat(args));
1523
+ },
1524
+ /**
1525
+ * Add a custom transition end trigger. Called with the transitioning
1526
+ * DOM node and a `done` callback. Allows for more fine grained transition end
1527
+ * logic. Timeouts are still used as a fallback if provided.
1528
+ *
1529
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1530
+ *
1531
+ * ```jsx
1532
+ * addEndListener={(node, done) => {
1533
+ * // use the css transitionend event to mark the finish of a transition
1534
+ * node.addEventListener('transitionend', done, false);
1535
+ * }}
1536
+ * ```
1537
+ */
1538
+ addEndListener: PropTypes.func,
1539
+ /**
1540
+ * Callback fired before the "entering" status is applied. An extra parameter
1541
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1542
+ *
1543
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1544
+ *
1545
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
1546
+ */
1547
+ onEnter: PropTypes.func,
1548
+ /**
1549
+ * Callback fired after the "entering" status is applied. An extra parameter
1550
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1551
+ *
1552
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1553
+ *
1554
+ * @type Function(node: HtmlElement, isAppearing: bool)
1555
+ */
1556
+ onEntering: PropTypes.func,
1557
+ /**
1558
+ * Callback fired after the "entered" status is applied. An extra parameter
1559
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1560
+ *
1561
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1562
+ *
1563
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
1564
+ */
1565
+ onEntered: PropTypes.func,
1566
+ /**
1567
+ * Callback fired before the "exiting" status is applied.
1568
+ *
1569
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1570
+ *
1571
+ * @type Function(node: HtmlElement) -> void
1572
+ */
1573
+ onExit: PropTypes.func,
1574
+ /**
1575
+ * Callback fired after the "exiting" status is applied.
1576
+ *
1577
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1578
+ *
1579
+ * @type Function(node: HtmlElement) -> void
1580
+ */
1581
+ onExiting: PropTypes.func,
1582
+ /**
1583
+ * Callback fired after the "exited" status is applied.
1584
+ *
1585
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1586
+ *
1587
+ * @type Function(node: HtmlElement) -> void
1588
+ */
1589
+ onExited: PropTypes.func
1590
+ } : {};
1591
+ function noop() {
1592
+ }
1593
+ Transition.defaultProps = {
1594
+ in: false,
1595
+ mountOnEnter: false,
1596
+ unmountOnExit: false,
1597
+ appear: false,
1598
+ enter: true,
1599
+ exit: true,
1600
+ onEnter: noop,
1601
+ onEntering: noop,
1602
+ onEntered: noop,
1603
+ onExit: noop,
1604
+ onExiting: noop,
1605
+ onExited: noop
1606
+ };
1607
+ Transition.UNMOUNTED = UNMOUNTED;
1608
+ Transition.EXITED = EXITED;
1609
+ Transition.ENTERING = ENTERING;
1610
+ Transition.ENTERED = ENTERED;
1611
+ Transition.EXITING = EXITING;
1612
+ var _addClass = function addClass$1(node, classes) {
1613
+ return node && classes && classes.split(" ").forEach(function(c) {
1614
+ return addClass(node, c);
1615
+ });
1616
+ };
1617
+ var removeClass = function removeClass2(node, classes) {
1618
+ return node && classes && classes.split(" ").forEach(function(c) {
1619
+ return removeClass$1(node, c);
1620
+ });
1621
+ };
1622
+ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
1623
+ _inheritsLoose(CSSTransition2, _React$Component);
1624
+ function CSSTransition2() {
1625
+ var _this;
1626
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1627
+ args[_key] = arguments[_key];
1628
+ }
1629
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1630
+ _this.appliedClasses = {
1631
+ appear: {},
1632
+ enter: {},
1633
+ exit: {}
1634
+ };
1635
+ _this.onEnter = function(maybeNode, maybeAppearing) {
1636
+ var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument[0], appearing = _this$resolveArgument[1];
1637
+ _this.removeClasses(node, "exit");
1638
+ _this.addClass(node, appearing ? "appear" : "enter", "base");
1639
+ if (_this.props.onEnter) {
1640
+ _this.props.onEnter(maybeNode, maybeAppearing);
1641
+ }
1642
+ };
1643
+ _this.onEntering = function(maybeNode, maybeAppearing) {
1644
+ var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument2[0], appearing = _this$resolveArgument2[1];
1645
+ var type = appearing ? "appear" : "enter";
1646
+ _this.addClass(node, type, "active");
1647
+ if (_this.props.onEntering) {
1648
+ _this.props.onEntering(maybeNode, maybeAppearing);
1649
+ }
1650
+ };
1651
+ _this.onEntered = function(maybeNode, maybeAppearing) {
1652
+ var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing), node = _this$resolveArgument3[0], appearing = _this$resolveArgument3[1];
1653
+ var type = appearing ? "appear" : "enter";
1654
+ _this.removeClasses(node, type);
1655
+ _this.addClass(node, type, "done");
1656
+ if (_this.props.onEntered) {
1657
+ _this.props.onEntered(maybeNode, maybeAppearing);
1658
+ }
1659
+ };
1660
+ _this.onExit = function(maybeNode) {
1661
+ var _this$resolveArgument4 = _this.resolveArguments(maybeNode), node = _this$resolveArgument4[0];
1662
+ _this.removeClasses(node, "appear");
1663
+ _this.removeClasses(node, "enter");
1664
+ _this.addClass(node, "exit", "base");
1665
+ if (_this.props.onExit) {
1666
+ _this.props.onExit(maybeNode);
1667
+ }
1668
+ };
1669
+ _this.onExiting = function(maybeNode) {
1670
+ var _this$resolveArgument5 = _this.resolveArguments(maybeNode), node = _this$resolveArgument5[0];
1671
+ _this.addClass(node, "exit", "active");
1672
+ if (_this.props.onExiting) {
1673
+ _this.props.onExiting(maybeNode);
1674
+ }
1675
+ };
1676
+ _this.onExited = function(maybeNode) {
1677
+ var _this$resolveArgument6 = _this.resolveArguments(maybeNode), node = _this$resolveArgument6[0];
1678
+ _this.removeClasses(node, "exit");
1679
+ _this.addClass(node, "exit", "done");
1680
+ if (_this.props.onExited) {
1681
+ _this.props.onExited(maybeNode);
1682
+ }
1683
+ };
1684
+ _this.resolveArguments = function(maybeNode, maybeAppearing) {
1685
+ return _this.props.nodeRef ? [_this.props.nodeRef.current, maybeNode] : [maybeNode, maybeAppearing];
1686
+ };
1687
+ _this.getClassNames = function(type) {
1688
+ var classNames = _this.props.classNames;
1689
+ var isStringClassNames = typeof classNames === "string";
1690
+ var prefix = isStringClassNames && classNames ? classNames + "-" : "";
1691
+ var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
1692
+ var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
1693
+ var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
1694
+ return {
1695
+ baseClassName,
1696
+ activeClassName,
1697
+ doneClassName
1698
+ };
1699
+ };
1700
+ return _this;
1701
+ }
1702
+ var _proto = CSSTransition2.prototype;
1703
+ _proto.addClass = function addClass2(node, type, phase) {
1704
+ var className = this.getClassNames(type)[phase + "ClassName"];
1705
+ var _this$getClassNames = this.getClassNames("enter"), doneClassName = _this$getClassNames.doneClassName;
1706
+ if (type === "appear" && phase === "done" && doneClassName) {
1707
+ className += " " + doneClassName;
1708
+ }
1709
+ if (phase === "active") {
1710
+ if (node) forceReflow(node);
1711
+ }
1712
+ if (className) {
1713
+ this.appliedClasses[type][phase] = className;
1714
+ _addClass(node, className);
1715
+ }
1716
+ };
1717
+ _proto.removeClasses = function removeClasses(node, type) {
1718
+ var _this$appliedClasses$ = this.appliedClasses[type], baseClassName = _this$appliedClasses$.base, activeClassName = _this$appliedClasses$.active, doneClassName = _this$appliedClasses$.done;
1719
+ this.appliedClasses[type] = {};
1720
+ if (baseClassName) {
1721
+ removeClass(node, baseClassName);
1722
+ }
1723
+ if (activeClassName) {
1724
+ removeClass(node, activeClassName);
1725
+ }
1726
+ if (doneClassName) {
1727
+ removeClass(node, doneClassName);
1728
+ }
1729
+ };
1730
+ _proto.render = function render() {
1731
+ var _this$props = this.props;
1732
+ _this$props.classNames;
1733
+ var props = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(_this$props, ["classNames"]);
1734
+ return /* @__PURE__ */ React.createElement(Transition, objectWithoutPropertiesLoose._extends({}, props, {
1735
+ onEnter: this.onEnter,
1736
+ onEntered: this.onEntered,
1737
+ onEntering: this.onEntering,
1738
+ onExit: this.onExit,
1739
+ onExiting: this.onExiting,
1740
+ onExited: this.onExited
1741
+ }));
1742
+ };
1743
+ return CSSTransition2;
1744
+ }(React.Component);
1745
+ CSSTransition.defaultProps = {
1746
+ classNames: ""
1747
+ };
1748
+ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? objectWithoutPropertiesLoose._extends({}, Transition.propTypes, {
1749
+ /**
1750
+ * The animation classNames applied to the component as it appears, enters,
1751
+ * exits or has finished the transition. A single name can be provided, which
1752
+ * will be suffixed for each stage, e.g. `classNames="fade"` applies:
1753
+ *
1754
+ * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
1755
+ * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
1756
+ * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
1757
+ *
1758
+ * A few details to note about how these classes are applied:
1759
+ *
1760
+ * 1. They are _joined_ with the ones that are already defined on the child
1761
+ * component, so if you want to add some base styles, you can use
1762
+ * `className` without worrying that it will be overridden.
1763
+ *
1764
+ * 2. If the transition component mounts with `in={false}`, no classes are
1765
+ * applied yet. You might be expecting `*-exit-done`, but if you think
1766
+ * about it, a component cannot finish exiting if it hasn't entered yet.
1767
+ *
1768
+ * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
1769
+ * allows you to define different behavior for when appearing is done and
1770
+ * when regular entering is done, using selectors like
1771
+ * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
1772
+ * an epic entrance animation when element first appears in the DOM using
1773
+ * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
1774
+ * simply use `fade-enter-done` for defining both cases.
1775
+ *
1776
+ * Each individual classNames can also be specified independently like:
1777
+ *
1778
+ * ```js
1779
+ * classNames={{
1780
+ * appear: 'my-appear',
1781
+ * appearActive: 'my-active-appear',
1782
+ * appearDone: 'my-done-appear',
1783
+ * enter: 'my-enter',
1784
+ * enterActive: 'my-active-enter',
1785
+ * enterDone: 'my-done-enter',
1786
+ * exit: 'my-exit',
1787
+ * exitActive: 'my-active-exit',
1788
+ * exitDone: 'my-done-exit',
1789
+ * }}
1790
+ * ```
1791
+ *
1792
+ * If you want to set these classes using CSS Modules:
1793
+ *
1794
+ * ```js
1795
+ * import styles from './styles.css';
1796
+ * ```
1797
+ *
1798
+ * you might want to use camelCase in your CSS file, that way could simply
1799
+ * spread them instead of listing them one by one:
1800
+ *
1801
+ * ```js
1802
+ * classNames={{ ...styles }}
1803
+ * ```
1804
+ *
1805
+ * @type {string | {
1806
+ * appear?: string,
1807
+ * appearActive?: string,
1808
+ * appearDone?: string,
1809
+ * enter?: string,
1810
+ * enterActive?: string,
1811
+ * enterDone?: string,
1812
+ * exit?: string,
1813
+ * exitActive?: string,
1814
+ * exitDone?: string,
1815
+ * }}
1816
+ */
1817
+ classNames: classNamesShape,
1818
+ /**
1819
+ * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
1820
+ * applied.
1821
+ *
1822
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1823
+ *
1824
+ * @type Function(node: HtmlElement, isAppearing: bool)
1825
+ */
1826
+ onEnter: PropTypes.func,
1827
+ /**
1828
+ * A `<Transition>` callback fired immediately after the 'enter-active' or
1829
+ * 'appear-active' class is applied.
1830
+ *
1831
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1832
+ *
1833
+ * @type Function(node: HtmlElement, isAppearing: bool)
1834
+ */
1835
+ onEntering: PropTypes.func,
1836
+ /**
1837
+ * A `<Transition>` callback fired immediately after the 'enter' or
1838
+ * 'appear' classes are **removed** and the `done` class is added to the DOM node.
1839
+ *
1840
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1841
+ *
1842
+ * @type Function(node: HtmlElement, isAppearing: bool)
1843
+ */
1844
+ onEntered: PropTypes.func,
1845
+ /**
1846
+ * A `<Transition>` callback fired immediately after the 'exit' class is
1847
+ * applied.
1848
+ *
1849
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1850
+ *
1851
+ * @type Function(node: HtmlElement)
1852
+ */
1853
+ onExit: PropTypes.func,
1854
+ /**
1855
+ * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
1856
+ *
1857
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1858
+ *
1859
+ * @type Function(node: HtmlElement)
1860
+ */
1861
+ onExiting: PropTypes.func,
1862
+ /**
1863
+ * A `<Transition>` callback fired immediately after the 'exit' classes
1864
+ * are **removed** and the `exit-done` class is added to the DOM node.
1865
+ *
1866
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1867
+ *
1868
+ * @type Function(node: HtmlElement)
1869
+ */
1870
+ onExited: PropTypes.func
1871
+ }) : {};
1872
+ function DrawerUnderlay(props) {
1873
+ const _a = props, { state, children, setAnimationExited } = _a, overlayProps = __objRest(_a, ["state", "children", "setAnimationExited"]);
1874
+ const { isDismissable = true } = overlayProps;
1875
+ const ref = React.useRef(null);
1876
+ const underlayBgRef = React.useRef(null);
1877
+ const { modalProps, underlayProps } = useModalOverlay.$8ac8429251c45e4b$export$dbc0f175b25fb0fb(__spreadProps(__spreadValues({}, overlayProps), {
1878
+ isDismissable,
1879
+ isKeyboardDismissDisabled: !isDismissable
1880
+ }), state, ref);
1881
+ const createAnimationEndListener = (ref2) => (done) => {
1882
+ if (ref2.current) {
1883
+ ref2.current.addEventListener("transitionend", done, false);
1884
+ }
1885
+ };
1886
+ return React.createElement(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, null, React.createElement(CSSTransition, {
1887
+ in: state.isOpen,
1888
+ appear: true,
1889
+ onEntered: () => setAnimationExited(false),
1890
+ onExited: () => setAnimationExited(true),
1891
+ nodeRef: underlayBgRef,
1892
+ addEndListener: createAnimationEndListener(underlayBgRef),
1893
+ classNames: {
1894
+ enter: styles.underlayBgEnter,
1895
+ enterDone: styles.underlayBgEnterDone,
1896
+ exit: styles.underlayBgExit
1897
+ }
1898
+ }, React.createElement("div", __spreadValues({
1899
+ ref: underlayBgRef,
1900
+ className: styles.underlayBg
1901
+ }, underlayProps), React.createElement(CSSTransition, {
1902
+ in: state.isOpen,
1903
+ appear: true,
1904
+ nodeRef: ref,
1905
+ addEndListener: createAnimationEndListener(ref),
1906
+ classNames: {
1907
+ appear: styles.underlayBoxAppear,
1908
+ appearDone: styles.underlayBoxDone,
1909
+ exit: styles.underlayBoxExit
1910
+ }
1911
+ }, React.createElement("div", __spreadProps(__spreadValues({}, modalProps), {
1912
+ ref,
1913
+ className: styles.underlayBox
1914
+ }), children)))));
1915
+ }
1916
+ function DrawerContainer(props) {
1917
+ const { children, isDismissable = true, onDismiss = () => {
1918
+ } } = props;
1919
+ const existingDrawerTriggerContext = React.useContext(DrawerTriggerContext);
1920
+ if (existingDrawerTriggerContext) {
1921
+ throw new Error("Drawer.Container must be used outside of a Drawer.Trigger");
1922
+ }
1923
+ const childArray = React.Children.toArray(children);
1924
+ if (childArray.length > 1) {
1925
+ throw new Error("Only a single child can be passed to ModalContainer.");
1926
+ }
1927
+ const [lastChild, setLastChild] = React.useState(null);
1928
+ let child = null;
1929
+ if (Array.isArray(children)) {
1930
+ child = children.find(React.isValidElement);
1931
+ } else if (React.isValidElement(children)) {
1932
+ child = children;
1933
+ }
1934
+ if (child && child !== lastChild) {
1935
+ setLastChild(child);
1936
+ }
1937
+ const state = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6({
1938
+ isOpen: Boolean(child),
1939
+ onOpenChange: (isOpen) => {
1940
+ if (!isOpen) {
1941
+ onDismiss();
1942
+ }
1943
+ }
1944
+ });
1945
+ const { overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
1946
+ type: "dialog"
1947
+ }, state);
1948
+ const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
1949
+ const context = React.useMemo(() => {
1950
+ return {
1951
+ state,
1952
+ isDismissable
1953
+ };
1954
+ }, [state, isDismissable]);
1955
+ return React.createElement(DrawerTriggerContext.Provider, {
1956
+ value: context
1957
+ }, (state.isOpen || !animationExited) && React.createElement(DrawerUnderlay, {
1958
+ setAnimationExited,
1959
+ state,
1960
+ isDismissable
1961
+ }, lastChild ? React.cloneElement(lastChild, overlayProps) : null));
1962
+ }
1963
+ function DrawerBanneredContentArea(props) {
1964
+ const { children } = props;
1965
+ return React.createElement("div", {
1966
+ className: styles.banneredContentArea
1967
+ }, children);
1968
+ }
1969
+ function DrawerStandaloneContentArea(props) {
1970
+ const { children } = props;
1971
+ return React.createElement("div", {
1972
+ className: styles.standaloneContentArea
1973
+ }, children);
1974
+ }
1975
+ function DrawerHeader(props) {
1976
+ const { children } = props;
1977
+ const drawerContext = useDrawerContext();
1978
+ const className = utilities_css.classNames(styles.header, drawerContext.isHeaderStuck && styles.stuck);
1979
+ return React.createElement("div", {
1980
+ className
1981
+ }, children);
1982
+ }
1983
+ function DrawerTitle(props) {
1984
+ const drawerContext = useDrawerContext();
1985
+ return React.createElement(Text.Text, __spreadValues(__spreadValues({
1986
+ variant: "heading3"
1987
+ }, drawerContext.titleProps), props));
1988
+ }
1989
+ function DrawerTrigger(props) {
1990
+ const _a = props, { children, isDismissable = true } = _a, inTriggerProps = __objRest(_a, ["children", "isDismissable"]);
1991
+ const state = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6(inTriggerProps);
1992
+ const { triggerProps, overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
1993
+ type: "dialog"
1994
+ }, state);
1995
+ const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
1996
+ if (children.length !== 2) {
1997
+ throw new Error("children must be exactly one trigger element and one modal element");
1998
+ }
1999
+ const [trigger, modal] = children;
2000
+ const context = React.useMemo(() => {
2001
+ return {
2002
+ state,
2003
+ isDismissable
2004
+ };
2005
+ }, [isDismissable, state]);
2006
+ return React.createElement(DrawerTriggerContext.Provider, {
2007
+ value: context
2008
+ }, React.cloneElement(trigger, triggerProps), (state.isOpen || !animationExited) && React.createElement(DrawerUnderlay, __spreadProps(__spreadValues({
2009
+ setAnimationExited
2010
+ }, props), {
2011
+ state
2012
+ }), React.cloneElement(typeof modal === "function" ? modal(state.close) : modal, overlayProps)));
2013
+ }
2014
+ function useIntersectionDetection(targetRef, scrollRef) {
2015
+ const [isStuck, setIsStuck] = React.useState(false);
2016
+ React.useEffect(() => {
2017
+ if (!targetRef.current || !scrollRef.current) {
2018
+ return;
2019
+ }
2020
+ const observer = new IntersectionObserver(([entry]) => {
2021
+ setIsStuck(!entry.isIntersecting);
2022
+ }, {
2023
+ root: scrollRef.current
2024
+ });
2025
+ observer.observe(targetRef.current);
2026
+ return () => {
2027
+ observer.disconnect();
2028
+ };
2029
+ }, [targetRef, scrollRef]);
2030
+ return isStuck;
2031
+ }
2032
+ function Drawer(props) {
2033
+ const { children } = props;
2034
+ const bodyRef = React.useRef(null);
2035
+ const headerInterceptorRef = React.useRef(null);
2036
+ const isHeaderStuck = useIntersectionDetection(headerInterceptorRef, bodyRef);
2037
+ const dialogRef = React.useRef(null);
2038
+ const { dialogProps, titleProps } = useDialog.$40df3f8667284809$export$d55e7ee900f34e93({
2039
+ role: "dialog"
2040
+ }, dialogRef);
2041
+ const context = React.useMemo(() => {
2042
+ return {
2043
+ bodyRef,
2044
+ headerInterceptorRef,
2045
+ isHeaderStuck,
2046
+ dialogProps,
2047
+ titleProps
2048
+ };
2049
+ }, [dialogProps, isHeaderStuck, titleProps]);
2050
+ const className = utilities_css.classNames(styles.Drawer);
2051
+ return React.createElement(DrawerContext.Provider, {
2052
+ value: context
2053
+ }, React.createElement("div", __spreadProps(__spreadValues({}, dialogProps), {
2054
+ className,
2055
+ ref: dialogRef
2056
+ }), children));
2057
+ }
2058
+ Drawer.Trigger = DrawerTrigger;
2059
+ Drawer.Header = DrawerHeader;
2060
+ Drawer.Title = DrawerTitle;
2061
+ Drawer.Banner = DrawerBanner;
2062
+ Drawer.Body = DrawerBody;
2063
+ Drawer.BanneredContentArea = DrawerBanneredContentArea;
2064
+ Drawer.StandaloneContentArea = DrawerStandaloneContentArea;
2065
+ Drawer.CloseButton = DrawerCloseButton;
2066
+ exports.Drawer = Drawer;
2067
+ exports.DrawerContainer = DrawerContainer;
2068
+ exports.useDrawerTrigger = useDrawerTrigger;