@strapi/design-system 1.7.0 → 1.7.1

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 (505) hide show
  1. package/dist/Accordion/Accordion.cjs +4 -4
  2. package/dist/Accordion/Accordion.js +13 -71
  3. package/dist/Accordion/AccordionContent.cjs +1 -1
  4. package/dist/Accordion/AccordionContent.js +3 -16
  5. package/dist/Accordion/AccordionContext.cjs +1 -1
  6. package/dist/Accordion/AccordionGroup.cjs +4 -4
  7. package/dist/Accordion/AccordionGroup.js +19 -89
  8. package/dist/Accordion/AccordionToggle.cjs +6 -6
  9. package/dist/Accordion/AccordionToggle.js +11 -101
  10. package/dist/Accordion/index.cjs +1 -1
  11. package/dist/Accordion/utils.cjs +1 -1
  12. package/dist/Alert/Alert.cjs +15 -15
  13. package/dist/Alert/Alert.js +8 -80
  14. package/dist/Alert/index.cjs +1 -1
  15. package/dist/Alert/utils.cjs +1 -1
  16. package/dist/Avatar/Avatar.cjs +5 -5
  17. package/dist/Avatar/Avatar.js +12 -56
  18. package/dist/Avatar/AvatarGroup.cjs +3 -3
  19. package/dist/Avatar/constants.cjs +1 -1
  20. package/dist/Avatar/index.cjs +1 -1
  21. package/dist/Badge/Badge.cjs +4 -4
  22. package/dist/Badge/Badge.js +4 -33
  23. package/dist/Badge/index.cjs +1 -1
  24. package/dist/BaseButton/BaseButton.cjs +3 -3
  25. package/dist/BaseButton/BaseButton.js +8 -32
  26. package/dist/BaseButton/index.cjs +1 -1
  27. package/dist/BaseCheckbox/BaseCheckbox.cjs +4 -4
  28. package/dist/BaseCheckbox/BaseCheckbox.js +19 -62
  29. package/dist/BaseCheckbox/index.cjs +1 -1
  30. package/dist/BaseCheckbox/utils.cjs +1 -1
  31. package/dist/BaseLink/BaseLink.cjs +1 -1
  32. package/dist/BaseLink/BaseLink.js +1 -17
  33. package/dist/BaseLink/index.cjs +1 -1
  34. package/dist/BaseRadio/BaseRadio.cjs +8 -8
  35. package/dist/BaseRadio/BaseRadio.js +12 -38
  36. package/dist/BaseRadio/RadioGroup.cjs +1 -1
  37. package/dist/BaseRadio/RadioGroup.js +3 -25
  38. package/dist/BaseRadio/context.cjs +1 -1
  39. package/dist/BaseRadio/index.cjs +1 -1
  40. package/dist/BaseRadio/utils.cjs +1 -1
  41. package/dist/Box/Box.cjs +1 -1
  42. package/dist/Box/Box.js +47 -173
  43. package/dist/Box/index.cjs +1 -1
  44. package/dist/Breadcrumbs/Breadcrumbs.cjs +3 -3
  45. package/dist/Breadcrumbs/Breadcrumbs.js +10 -43
  46. package/dist/Breadcrumbs/index.cjs +1 -1
  47. package/dist/Button/Button.cjs +11 -11
  48. package/dist/Button/Button.js +7 -54
  49. package/dist/Button/constants.cjs +1 -1
  50. package/dist/Button/index.cjs +1 -1
  51. package/dist/Button/utils.cjs +1 -1
  52. package/dist/Card/Card.cjs +1 -1
  53. package/dist/Card/Card.js +5 -25
  54. package/dist/Card/CardAction.cjs +2 -2
  55. package/dist/Card/CardAsset.cjs +4 -4
  56. package/dist/Card/CardAsset.js +5 -25
  57. package/dist/Card/CardBadge.cjs +3 -3
  58. package/dist/Card/CardBadge.js +2 -8
  59. package/dist/Card/CardBody.cjs +1 -1
  60. package/dist/Card/CardBody.js +1 -10
  61. package/dist/Card/CardCheckbox.cjs +1 -1
  62. package/dist/Card/CardCheckbox.js +5 -10
  63. package/dist/Card/CardContent.cjs +2 -2
  64. package/dist/Card/CardContent.js +1 -7
  65. package/dist/Card/CardContext.cjs +1 -1
  66. package/dist/Card/CardContext.js +1 -3
  67. package/dist/Card/CardHeader.cjs +2 -2
  68. package/dist/Card/CardHeader.js +2 -8
  69. package/dist/Card/CardTimer.cjs +1 -1
  70. package/dist/Card/CardTimer.js +1 -19
  71. package/dist/Card/CardTitle.cjs +1 -1
  72. package/dist/Card/CardTitle.js +3 -17
  73. package/dist/Card/index.cjs +1 -1
  74. package/dist/CarouselInput/Carousel.cjs +6 -6
  75. package/dist/CarouselInput/Carousel.js +51 -42
  76. package/dist/CarouselInput/CarouselActions.cjs +1 -1
  77. package/dist/CarouselInput/CarouselActions.js +8 -7
  78. package/dist/CarouselInput/CarouselImage.cjs +3 -3
  79. package/dist/CarouselInput/CarouselImage.js +13 -12
  80. package/dist/CarouselInput/CarouselInput.cjs +1 -1
  81. package/dist/CarouselInput/CarouselInput.js +39 -36
  82. package/dist/CarouselInput/CarouselSlide.cjs +2 -2
  83. package/dist/CarouselInput/CarouselSlide.js +10 -9
  84. package/dist/CarouselInput/index.cjs +1 -1
  85. package/dist/Checkbox/Checkbox.cjs +3 -3
  86. package/dist/Checkbox/Checkbox.js +37 -32
  87. package/dist/Checkbox/index.cjs +1 -1
  88. package/dist/Combobox/Combobox.cjs +9 -9
  89. package/dist/Combobox/Combobox.js +52 -253
  90. package/dist/Combobox/ComboboxList.cjs +5 -1
  91. package/dist/Combobox/ComboboxList.js +6 -5
  92. package/dist/Combobox/ComboboxOption.cjs +1 -1
  93. package/dist/Combobox/index.cjs +1 -1
  94. package/dist/DatePicker/DatePicker.cjs +5 -5
  95. package/dist/DatePicker/DatePicker.js +38 -56
  96. package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
  97. package/dist/DatePicker/DatePickerCalendar.js +20 -119
  98. package/dist/DatePicker/DatePickerTd.cjs +3 -3
  99. package/dist/DatePicker/DatePickerTd.js +13 -45
  100. package/dist/DatePicker/DatePickerTh.cjs +4 -4
  101. package/dist/DatePicker/DatePickerTh.js +9 -33
  102. package/dist/DatePicker/compareDates.cjs +1 -1
  103. package/dist/DatePicker/components.cjs +14 -8
  104. package/dist/DatePicker/components.js +17 -7
  105. package/dist/DatePicker/index.cjs +1 -1
  106. package/dist/DatePicker/utils/formatDate.cjs +1 -1
  107. package/dist/DatePicker/utils/generateWeeks.cjs +1 -1
  108. package/dist/DatePicker/utils/getDayOfWeek.cjs +1 -1
  109. package/dist/DatePicker/utils/getMonths.cjs +1 -1
  110. package/dist/DatePicker/utils/getYears.cjs +1 -1
  111. package/dist/DatePicker/utils/getYears.js +1 -1
  112. package/dist/DatePicker/utils/index.cjs +1 -1
  113. package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
  114. package/dist/DateTimePicker/DateTimePicker.js +41 -92
  115. package/dist/DateTimePicker/index.cjs +1 -1
  116. package/dist/DateTimePicker/parseDate.cjs +1 -1
  117. package/dist/Dialog/Dialog.cjs +6 -6
  118. package/dist/Dialog/Dialog.js +41 -38
  119. package/dist/Dialog/DialogBody.cjs +2 -2
  120. package/dist/Dialog/DialogBody.js +19 -15
  121. package/dist/Dialog/DialogFooter.cjs +3 -3
  122. package/dist/Dialog/DialogFooter.js +10 -6
  123. package/dist/Dialog/index.cjs +1 -1
  124. package/dist/DismissibleLayer/index.cjs +1 -1
  125. package/dist/DismissibleLayer/index.js +3 -2
  126. package/dist/Divider/Divider.cjs +2 -2
  127. package/dist/Divider/Divider.js +11 -10
  128. package/dist/Divider/index.cjs +1 -1
  129. package/dist/EmptyStateLayout/EmptyStateLayout.cjs +3 -3
  130. package/dist/EmptyStateLayout/EmptyStateLayout.js +13 -8
  131. package/dist/EmptyStateLayout/index.cjs +1 -1
  132. package/dist/EmptyStateLayout/story-assets/Illo.cjs +1 -1
  133. package/dist/EmptyStateLayout/story-assets/Illo.js +71 -62
  134. package/dist/Field/Field.cjs +1 -1
  135. package/dist/Field/Field.js +5 -26
  136. package/dist/Field/FieldAction.cjs +2 -2
  137. package/dist/Field/FieldAction.js +5 -20
  138. package/dist/Field/FieldContext.cjs +1 -1
  139. package/dist/Field/FieldError.cjs +1 -1
  140. package/dist/Field/FieldError.js +2 -12
  141. package/dist/Field/FieldHint.cjs +1 -1
  142. package/dist/Field/FieldHint.js +2 -12
  143. package/dist/Field/FieldInput.cjs +7 -7
  144. package/dist/Field/FieldInput.js +19 -86
  145. package/dist/Field/FieldLabel.cjs +4 -4
  146. package/dist/Field/FieldLabel.js +7 -32
  147. package/dist/Field/index.cjs +1 -1
  148. package/dist/Flex/Flex.cjs +3 -3
  149. package/dist/Flex/Flex.js +10 -25
  150. package/dist/Flex/index.cjs +1 -1
  151. package/dist/FocusTrap/FocusTrap.cjs +1 -1
  152. package/dist/FocusTrap/FocusTrap.js +14 -22
  153. package/dist/FocusTrap/index.cjs +1 -1
  154. package/dist/Grid/Grid.cjs +3 -3
  155. package/dist/Grid/Grid.js +15 -14
  156. package/dist/Grid/GridContext.cjs +1 -1
  157. package/dist/Grid/GridItem.cjs +2 -2
  158. package/dist/Grid/GridItem.js +12 -11
  159. package/dist/Grid/index.cjs +1 -1
  160. package/dist/Icon/Icon.cjs +4 -4
  161. package/dist/Icon/Icon.js +6 -21
  162. package/dist/Icon/index.cjs +1 -1
  163. package/dist/IconButton/IconButton.cjs +4 -4
  164. package/dist/IconButton/IconButton.js +28 -81
  165. package/dist/IconButton/index.cjs +1 -1
  166. package/dist/JSONInput/JSONInput.cjs +1 -1
  167. package/dist/JSONInput/JSONInput.js +11 -56
  168. package/dist/JSONInput/JSONInputContainer.cjs +3 -3
  169. package/dist/JSONInput/JSONInputContainer.js +7 -14
  170. package/dist/JSONInput/index.cjs +1 -1
  171. package/dist/JSONInput/utils/decorationExtension.cjs +1 -1
  172. package/dist/JSONInput/utils/decorationExtension.js +3 -0
  173. package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
  174. package/dist/KeyboardNavigable/KeyboardNavigable.js +32 -39
  175. package/dist/KeyboardNavigable/index.cjs +1 -1
  176. package/dist/Layout/ActionLayout.cjs +3 -3
  177. package/dist/Layout/ActionLayout.js +17 -13
  178. package/dist/Layout/ContentLayout.cjs +1 -1
  179. package/dist/Layout/ContentLayout.js +8 -7
  180. package/dist/Layout/GridLayout.cjs +3 -3
  181. package/dist/Layout/HeaderLayout.cjs +4 -4
  182. package/dist/Layout/HeaderLayout.js +83 -59
  183. package/dist/Layout/Layout.cjs +3 -3
  184. package/dist/Layout/Layout.js +14 -10
  185. package/dist/Layout/TwoColsLayout.cjs +1 -1
  186. package/dist/Layout/TwoColsLayout.js +12 -8
  187. package/dist/Layout/index.cjs +1 -1
  188. package/dist/Link/Link.cjs +5 -5
  189. package/dist/Link/Link.js +9 -53
  190. package/dist/Link/index.cjs +1 -1
  191. package/dist/LinkButton/LinkButton.cjs +7 -7
  192. package/dist/LinkButton/LinkButton.js +8 -51
  193. package/dist/LinkButton/index.cjs +1 -1
  194. package/dist/LiveRegions/LiveRegions.cjs +1 -1
  195. package/dist/LiveRegions/LiveRegions.js +1 -18
  196. package/dist/LiveRegions/constants.cjs +1 -1
  197. package/dist/LiveRegions/index.cjs +1 -1
  198. package/dist/LiveRegions/useNotifyAT.cjs +1 -1
  199. package/dist/Loader/Loader.cjs +5 -5
  200. package/dist/Loader/Loader.js +3 -22
  201. package/dist/Loader/index.cjs +1 -1
  202. package/dist/Main/Main.cjs +2 -2
  203. package/dist/Main/Main.js +7 -9
  204. package/dist/Main/SkipToContent.cjs +2 -2
  205. package/dist/Main/SkipToContent.js +10 -9
  206. package/dist/Main/index.cjs +1 -1
  207. package/dist/MainNav/MainNav.cjs +2 -2
  208. package/dist/MainNav/MainNav.js +16 -15
  209. package/dist/MainNav/MainNavContext.cjs +1 -1
  210. package/dist/MainNav/NavBrand.cjs +6 -6
  211. package/dist/MainNav/NavBrand.js +37 -21
  212. package/dist/MainNav/NavCondense.cjs +3 -3
  213. package/dist/MainNav/NavCondense.js +20 -16
  214. package/dist/MainNav/NavFooter.cjs +1 -1
  215. package/dist/MainNav/NavFooter.js +9 -8
  216. package/dist/MainNav/NavLink.cjs +10 -10
  217. package/dist/MainNav/NavLink.js +53 -43
  218. package/dist/MainNav/NavSection.cjs +1 -1
  219. package/dist/MainNav/NavSection.js +43 -33
  220. package/dist/MainNav/NavSections.cjs +2 -2
  221. package/dist/MainNav/NavSections.js +15 -14
  222. package/dist/MainNav/NavUser.cjs +3 -3
  223. package/dist/MainNav/NavUser.js +23 -20
  224. package/dist/MainNav/index.cjs +1 -1
  225. package/dist/ModalLayout/ModalBody.cjs +2 -2
  226. package/dist/ModalLayout/ModalBody.js +7 -6
  227. package/dist/ModalLayout/ModalContext.cjs +1 -1
  228. package/dist/ModalLayout/ModalFooter.cjs +3 -3
  229. package/dist/ModalLayout/ModalFooter.js +17 -13
  230. package/dist/ModalLayout/ModalHeader.cjs +2 -2
  231. package/dist/ModalLayout/ModalHeader.js +20 -16
  232. package/dist/ModalLayout/ModalLayout.cjs +4 -4
  233. package/dist/ModalLayout/ModalLayout.js +24 -23
  234. package/dist/ModalLayout/index.cjs +1 -1
  235. package/dist/NumberInput/NumberInput.cjs +6 -6
  236. package/dist/NumberInput/NumberInput.js +113 -106
  237. package/dist/NumberInput/index.cjs +1 -1
  238. package/dist/Pagination/Pagination.cjs +2 -2
  239. package/dist/Pagination/Pagination.js +16 -15
  240. package/dist/Pagination/PaginationContext.cjs +1 -1
  241. package/dist/Pagination/components.cjs +10 -10
  242. package/dist/Pagination/components.js +58 -47
  243. package/dist/Pagination/index.cjs +1 -1
  244. package/dist/Popover/Popover.cjs +3 -3
  245. package/dist/Popover/Popover.js +48 -100
  246. package/dist/Popover/index.cjs +1 -1
  247. package/dist/Portal/Portal.cjs +1 -1
  248. package/dist/Portal/Portal.js +7 -11
  249. package/dist/Portal/index.cjs +1 -1
  250. package/dist/ProgressBar/ProgressBar.cjs +2 -2
  251. package/dist/ProgressBar/ProgressBar.js +19 -18
  252. package/dist/ProgressBar/index.cjs +1 -1
  253. package/dist/Radio/Radio.cjs +2 -2
  254. package/dist/Radio/Radio.js +16 -12
  255. package/dist/Radio/index.cjs +1 -1
  256. package/dist/RawTable/RawCell.cjs +1 -1
  257. package/dist/RawTable/RawCell.js +6 -29
  258. package/dist/RawTable/RawTable.cjs +1 -1
  259. package/dist/RawTable/RawTable.js +4 -28
  260. package/dist/RawTable/RawTableContext.cjs +1 -1
  261. package/dist/RawTable/RawTbody.cjs +1 -1
  262. package/dist/RawTable/RawTbody.js +3 -11
  263. package/dist/RawTable/RawThead.cjs +1 -1
  264. package/dist/RawTable/RawThead.js +3 -11
  265. package/dist/RawTable/RawTr.cjs +1 -1
  266. package/dist/RawTable/RawTr.js +3 -13
  267. package/dist/RawTable/focusFocusable.cjs +1 -1
  268. package/dist/RawTable/index.cjs +1 -1
  269. package/dist/Searchbar/SearchForm.cjs +1 -1
  270. package/dist/Searchbar/SearchForm.js +3 -2
  271. package/dist/Searchbar/Searchbar.cjs +7 -7
  272. package/dist/Searchbar/Searchbar.js +51 -50
  273. package/dist/Searchbar/index.cjs +1 -1
  274. package/dist/Select/MultiSelect.cjs +7 -7
  275. package/dist/Select/MultiSelect.js +43 -206
  276. package/dist/Select/MultiSelectNested.cjs +3 -3
  277. package/dist/Select/MultiSelectNested.js +2 -20
  278. package/dist/Select/OptGroup.cjs +5 -1
  279. package/dist/Select/OptGroup.js +5 -0
  280. package/dist/Select/Option.cjs +5 -1
  281. package/dist/Select/Option.js +13 -11
  282. package/dist/Select/Select.cjs +6 -1
  283. package/dist/Select/Select.js +16 -8
  284. package/dist/Select/SelectList.cjs +5 -1
  285. package/dist/Select/SelectList.js +52 -72
  286. package/dist/Select/SelectParts.cjs +13 -13
  287. package/dist/Select/SelectParts.js +35 -153
  288. package/dist/Select/SingleSelect.cjs +1 -1
  289. package/dist/Select/SingleSelect.js +27 -117
  290. package/dist/Select/index.cjs +1 -1
  291. package/dist/SimpleMenu/SimpleMenu.cjs +11 -11
  292. package/dist/SimpleMenu/SimpleMenu.js +111 -92
  293. package/dist/SimpleMenu/index.cjs +1 -1
  294. package/dist/SimpleMenu/utils.cjs +1 -1
  295. package/dist/Stack/Stack.cjs +3 -3
  296. package/dist/Stack/Stack.js +7 -28
  297. package/dist/Stack/index.cjs +1 -1
  298. package/dist/Status/Status.cjs +7 -7
  299. package/dist/Status/Status.js +36 -24
  300. package/dist/Status/index.cjs +1 -1
  301. package/dist/SubNav/SubNav.cjs +5 -5
  302. package/dist/SubNav/SubNav.js +9 -9
  303. package/dist/SubNav/SubNavHeader.cjs +3 -3
  304. package/dist/SubNav/SubNavHeader.js +57 -47
  305. package/dist/SubNav/SubNavLink.cjs +5 -5
  306. package/dist/SubNav/SubNavLink.js +38 -32
  307. package/dist/SubNav/SubNavLinkSection.cjs +6 -6
  308. package/dist/SubNav/SubNavLinkSection.js +28 -21
  309. package/dist/SubNav/SubNavSection.cjs +3 -3
  310. package/dist/SubNav/SubNavSection.js +46 -39
  311. package/dist/SubNav/SubNavSectionLabel.cjs +4 -4
  312. package/dist/SubNav/SubNavSectionLabel.js +28 -25
  313. package/dist/SubNav/SubNavSections.cjs +1 -1
  314. package/dist/SubNav/SubNavSections.js +14 -13
  315. package/dist/SubNav/index.cjs +1 -1
  316. package/dist/Switch/Switch.cjs +5 -5
  317. package/dist/Switch/Switch.js +33 -26
  318. package/dist/Switch/index.cjs +1 -1
  319. package/dist/Table/Cell.cjs +3 -3
  320. package/dist/Table/Cell.js +17 -13
  321. package/dist/Table/TFooter.cjs +5 -5
  322. package/dist/Table/TFooter.js +23 -16
  323. package/dist/Table/Table.cjs +5 -5
  324. package/dist/Table/Table.js +28 -24
  325. package/dist/Table/Tbody.cjs +2 -2
  326. package/dist/Table/Tbody.js +7 -6
  327. package/dist/Table/Thead.cjs +2 -2
  328. package/dist/Table/Thead.js +8 -7
  329. package/dist/Table/Tr.cjs +2 -2
  330. package/dist/Table/Tr.js +6 -5
  331. package/dist/Table/index.cjs +1 -1
  332. package/dist/Tabs/TabGroup.cjs +1 -1
  333. package/dist/Tabs/TabGroup.js +26 -25
  334. package/dist/Tabs/TabPanels.cjs +1 -1
  335. package/dist/Tabs/TabPanels.js +15 -14
  336. package/dist/Tabs/Tabs.cjs +2 -2
  337. package/dist/Tabs/Tabs.js +64 -59
  338. package/dist/Tabs/TabsContext.cjs +1 -1
  339. package/dist/Tabs/components.cjs +12 -12
  340. package/dist/Tabs/index.cjs +1 -1
  341. package/dist/Tabs/useTabsFocus.cjs +1 -1
  342. package/dist/Tabs/useTabsFocus.js +1 -1
  343. package/dist/Tag/Tag.cjs +2 -2
  344. package/dist/Tag/Tag.js +6 -43
  345. package/dist/Tag/index.cjs +1 -1
  346. package/dist/TextButton/TextButton.cjs +6 -6
  347. package/dist/TextButton/TextButton.js +8 -37
  348. package/dist/TextButton/index.cjs +1 -1
  349. package/dist/TextInput/TextInput.cjs +1 -1
  350. package/dist/TextInput/TextInput.js +10 -41
  351. package/dist/TextInput/index.cjs +1 -1
  352. package/dist/Textarea/Textarea.cjs +2 -2
  353. package/dist/Textarea/Textarea.js +24 -21
  354. package/dist/Textarea/TextareaInput.cjs +4 -4
  355. package/dist/Textarea/TextareaInput.js +25 -30
  356. package/dist/Textarea/index.cjs +1 -1
  357. package/dist/ThemeProvider/ThemeProvider.cjs +1 -1
  358. package/dist/ThemeProvider/ThemeProvider.js +2 -10
  359. package/dist/ThemeProvider/hooks.cjs +1 -1
  360. package/dist/ThemeProvider/index.cjs +1 -1
  361. package/dist/TimePicker/TimePicker.cjs +3 -3
  362. package/dist/TimePicker/TimePicker.js +8 -30
  363. package/dist/TimePicker/index.cjs +1 -1
  364. package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
  365. package/dist/ToggleCheckbox/ToggleCheckbox.js +111 -110
  366. package/dist/ToggleCheckbox/index.cjs +1 -1
  367. package/dist/ToggleInput/ToggleInput.cjs +3 -3
  368. package/dist/ToggleInput/ToggleInput.js +41 -35
  369. package/dist/ToggleInput/index.cjs +1 -1
  370. package/dist/Tooltip/Tooltip.cjs +2 -2
  371. package/dist/Tooltip/Tooltip.js +9 -52
  372. package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -1
  373. package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -1
  374. package/dist/Tooltip/index.cjs +1 -1
  375. package/dist/Tooltip/utils/positionTooltip.cjs +1 -1
  376. package/dist/Typography/Typography.cjs +8 -8
  377. package/dist/Typography/Typography.js +6 -21
  378. package/dist/Typography/constants.cjs +1 -1
  379. package/dist/Typography/index.cjs +1 -1
  380. package/dist/Typography/utils.cjs +9 -9
  381. package/dist/VisuallyHidden/VisuallyHidden.cjs +2 -2
  382. package/dist/VisuallyHidden/index.cjs +1 -1
  383. package/dist/helpers/deprecations.cjs +1 -1
  384. package/dist/helpers/escapeSelector.cjs +1 -1
  385. package/dist/helpers/getDefaultLocale.cjs +1 -1
  386. package/dist/helpers/getFocusableNodes.cjs +1 -1
  387. package/dist/helpers/keyboardKeys.cjs +1 -1
  388. package/dist/helpers/objects.cjs +1 -1
  389. package/dist/helpers/setOpacity.cjs +1 -1
  390. package/dist/helpers/setTabIndexOnFirstItem.cjs +1 -1
  391. package/dist/helpers/theme.cjs +1 -1
  392. package/dist/helpers/useElementOnScreen.cjs +4 -1
  393. package/dist/helpers/useElementOnScreen.js +6 -1
  394. package/dist/helpers/useId.cjs +4 -1
  395. package/dist/helpers/useId.js +6 -1
  396. package/dist/helpers/useIntersection.cjs +4 -1
  397. package/dist/helpers/useIntersection.js +6 -1
  398. package/dist/helpers/useLockScroll.cjs +4 -1
  399. package/dist/helpers/useLockScroll.js +6 -1
  400. package/dist/helpers/usePrevious.cjs +4 -1
  401. package/dist/helpers/usePrevious.js +6 -1
  402. package/dist/helpers/useResizeObserver.cjs +4 -1
  403. package/dist/helpers/useResizeObserver.js +6 -1
  404. package/dist/hooks/useComposeRefs.cjs +1 -1
  405. package/dist/hooks/useControllableState.cjs +1 -1
  406. package/dist/hooks/useElementOnScreen.cjs +1 -1
  407. package/dist/hooks/useId.cjs +1 -1
  408. package/dist/hooks/useIntersection.cjs +1 -1
  409. package/dist/hooks/useLockScroll.cjs +1 -1
  410. package/dist/hooks/usePrevious.cjs +1 -1
  411. package/dist/hooks/useResizeObserver.cjs +1 -1
  412. package/dist/index.cjs +1 -1
  413. package/dist/index.js +209 -209
  414. package/dist/themes/common-theme.cjs +1 -1
  415. package/dist/themes/darkTheme/dark-colors.cjs +1 -1
  416. package/dist/themes/darkTheme/dark-shadows.cjs +1 -1
  417. package/dist/themes/darkTheme/index.cjs +1 -1
  418. package/dist/themes/extendTheme.cjs +2 -2
  419. package/dist/themes/index.cjs +1 -1
  420. package/dist/themes/lightTheme/index.cjs +1 -1
  421. package/dist/themes/lightTheme/light-colors.cjs +1 -1
  422. package/dist/themes/lightTheme/light-shadows.cjs +1 -1
  423. package/dist/themes/sizes.cjs +1 -1
  424. package/dist/themes/sizes.js +4 -4
  425. package/dist/themes/utils.cjs +5 -5
  426. package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +3 -3
  427. package/dist/v2/Breadcrumbs/Breadcrumbs.js +19 -15
  428. package/dist/v2/Breadcrumbs/Crumb.cjs +1 -1
  429. package/dist/v2/Breadcrumbs/Crumb.js +13 -12
  430. package/dist/v2/Breadcrumbs/CrumbLink.cjs +2 -2
  431. package/dist/v2/Breadcrumbs/CrumbLink.js +5 -4
  432. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
  433. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +16 -15
  434. package/dist/v2/Breadcrumbs/Divider.cjs +1 -1
  435. package/dist/v2/Breadcrumbs/Divider.js +6 -5
  436. package/dist/v2/Breadcrumbs/index.cjs +1 -1
  437. package/dist/v2/Link/Link.cjs +4 -4
  438. package/dist/v2/Link/Link.js +10 -39
  439. package/dist/v2/Link/index.cjs +1 -1
  440. package/dist/v2/LinkButton/LinkButton.cjs +7 -7
  441. package/dist/v2/LinkButton/LinkButton.js +11 -49
  442. package/dist/v2/LinkButton/index.cjs +1 -1
  443. package/dist/v2/MainNav/MainNav.cjs +2 -2
  444. package/dist/v2/MainNav/MainNav.js +16 -15
  445. package/dist/v2/MainNav/MainNavContext.cjs +1 -1
  446. package/dist/v2/MainNav/NavBrand.cjs +6 -6
  447. package/dist/v2/MainNav/NavBrand.js +38 -22
  448. package/dist/v2/MainNav/NavCondense.cjs +3 -3
  449. package/dist/v2/MainNav/NavCondense.js +20 -16
  450. package/dist/v2/MainNav/NavFooter.cjs +1 -1
  451. package/dist/v2/MainNav/NavFooter.js +9 -8
  452. package/dist/v2/MainNav/NavLink.cjs +10 -10
  453. package/dist/v2/MainNav/NavLink.js +55 -45
  454. package/dist/v2/MainNav/NavSection.cjs +1 -1
  455. package/dist/v2/MainNav/NavSection.js +43 -33
  456. package/dist/v2/MainNav/NavSections.cjs +2 -2
  457. package/dist/v2/MainNav/NavSections.js +15 -14
  458. package/dist/v2/MainNav/NavUser.cjs +3 -3
  459. package/dist/v2/MainNav/NavUser.js +22 -19
  460. package/dist/v2/MainNav/index.cjs +1 -1
  461. package/dist/v2/Pagination/Pagination.cjs +2 -2
  462. package/dist/v2/Pagination/Pagination.js +16 -15
  463. package/dist/v2/Pagination/PaginationContext.cjs +1 -1
  464. package/dist/v2/Pagination/components.cjs +10 -10
  465. package/dist/v2/Pagination/components.js +50 -37
  466. package/dist/v2/Pagination/index.cjs +1 -1
  467. package/dist/v2/SimpleMenu/Menu.cjs +13 -13
  468. package/dist/v2/SimpleMenu/Menu.js +15 -155
  469. package/dist/v2/SimpleMenu/SimpleMenu.cjs +1 -1
  470. package/dist/v2/SimpleMenu/SimpleMenu.js +17 -31
  471. package/dist/v2/SimpleMenu/index.cjs +1 -1
  472. package/dist/v2/SubNav/SubNav.cjs +5 -5
  473. package/dist/v2/SubNav/SubNav.js +9 -9
  474. package/dist/v2/SubNav/SubNavHeader.cjs +3 -3
  475. package/dist/v2/SubNav/SubNavHeader.js +57 -47
  476. package/dist/v2/SubNav/SubNavLink.cjs +5 -5
  477. package/dist/v2/SubNav/SubNavLink.js +40 -34
  478. package/dist/v2/SubNav/SubNavLinkSection.cjs +6 -6
  479. package/dist/v2/SubNav/SubNavLinkSection.js +28 -21
  480. package/dist/v2/SubNav/SubNavSection.cjs +3 -3
  481. package/dist/v2/SubNav/SubNavSection.js +48 -41
  482. package/dist/v2/SubNav/SubNavSectionLabel.cjs +4 -4
  483. package/dist/v2/SubNav/SubNavSectionLabel.js +28 -25
  484. package/dist/v2/SubNav/SubNavSections.cjs +1 -1
  485. package/dist/v2/SubNav/SubNavSections.js +14 -13
  486. package/dist/v2/SubNav/index.cjs +1 -1
  487. package/dist/v2/index.cjs +1 -1
  488. package/dist/v2/index.js +1 -1
  489. package/package.json +16 -19
  490. package/dist/DismissibleLayer/DismissibleLayer.cjs +0 -1
  491. package/dist/DismissibleLayer/DismissibleLayer.js +0 -30
  492. /package/dist/BaseCheckbox/assets/{checkmark-black.cjs → checkmark-black.svg.cjs} +0 -0
  493. /package/dist/BaseCheckbox/assets/{checkmark-black.js → checkmark-black.svg.js} +0 -0
  494. /package/dist/BaseCheckbox/assets/{checkmark.cjs → checkmark.svg.cjs} +0 -0
  495. /package/dist/BaseCheckbox/assets/{checkmark.js → checkmark.svg.js} +0 -0
  496. /package/dist/Loader/assets/{loader.cjs → loader.svg.cjs} +0 -0
  497. /package/dist/Loader/assets/{loader.js → loader.svg.js} +0 -0
  498. /package/dist/Pagination/assets/{next.cjs → next.svg.cjs} +0 -0
  499. /package/dist/Pagination/assets/{next.js → next.svg.js} +0 -0
  500. /package/dist/Pagination/assets/{previous.cjs → previous.svg.cjs} +0 -0
  501. /package/dist/Pagination/assets/{previous.js → previous.svg.js} +0 -0
  502. /package/dist/v2/Pagination/assets/{next.cjs → next.svg.cjs} +0 -0
  503. /package/dist/v2/Pagination/assets/{next.js → next.svg.js} +0 -0
  504. /package/dist/v2/Pagination/assets/{previous.cjs → previous.svg.cjs} +0 -0
  505. /package/dist/v2/Pagination/assets/{previous.js → previous.svg.js} +0 -0
@@ -1,93 +1,103 @@
1
- import r from "react";
2
- import o from "prop-types";
1
+ import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
+ import "react";
3
+ import e from "prop-types";
3
4
  import { NavLink as g } from "react-router-dom";
4
- import i from "styled-components";
5
+ import s from "styled-components";
5
6
  import { useMainNav as f } from "./MainNavContext.js";
6
- import { Badge as h } from "../Badge/Badge.js";
7
7
  import { Box as v } from "../Box/Box.js";
8
+ import { Typography as i } from "../Typography/Typography.js";
8
9
  import { Flex as $ } from "../Flex/Flex.js";
9
- import { Tooltip as b } from "../Tooltip/Tooltip.js";
10
- import { Typography as a } from "../Typography/Typography.js";
11
- const p = i(v)`
10
+ import { Badge as b } from "../Badge/Badge.js";
11
+ import { Tooltip as y } from "../Tooltip/Tooltip.js";
12
+ const p = s(v)`
12
13
  svg {
13
14
  width: 1rem;
14
15
  height: 1rem;
15
16
  }
16
- `, d = i(g)`
17
+ `, m = s(g)`
17
18
  position: relative;
18
19
  text-decoration: none;
19
20
  display: block;
20
- border-radius: ${({ theme: e }) => e.borderRadius};
21
- background: ${({ theme: e }) => e.colors.neutral0};
21
+ border-radius: ${({ theme: r }) => r.borderRadius};
22
+ background: ${({ theme: r }) => r.colors.neutral0};
22
23
 
23
- ${a} {
24
- color: ${({ theme: e }) => e.colors.neutral600};
24
+ ${i} {
25
+ color: ${({ theme: r }) => r.colors.neutral600};
25
26
  }
26
27
 
27
28
  svg path {
28
- fill: ${({ theme: e }) => e.colors.neutral500};
29
+ fill: ${({ theme: r }) => r.colors.neutral500};
29
30
  }
30
31
 
31
32
  &:hover {
32
- background: ${({ theme: e }) => e.colors.neutral100};
33
+ background: ${({ theme: r }) => r.colors.neutral100};
33
34
 
34
- ${a} {
35
- color: ${({ theme: e }) => e.colors.neutral700};
35
+ ${i} {
36
+ color: ${({ theme: r }) => r.colors.neutral700};
36
37
  }
37
38
 
38
39
  svg path {
39
- fill: ${({ theme: e }) => e.colors.neutral600};
40
+ fill: ${({ theme: r }) => r.colors.neutral600};
40
41
  }
41
42
  }
42
43
 
43
44
  &.active {
44
- background: ${({ theme: e }) => e.colors.primary100};
45
+ background: ${({ theme: r }) => r.colors.primary100};
45
46
 
46
47
  svg path {
47
- fill: ${({ theme: e }) => e.colors.primary600};
48
+ fill: ${({ theme: r }) => r.colors.primary600};
48
49
  }
49
50
 
50
- ${a} {
51
- color: ${({ theme: e }) => e.colors.primary600};
51
+ ${i} {
52
+ color: ${({ theme: r }) => r.colors.primary600};
52
53
  font-weight: 500;
53
54
  }
54
55
  }
55
- `, m = i($)`
56
- padding: ${({ theme: e }) => `${e.spaces[2]} ${e.spaces[3]}`};
57
- `, u = i(h)`
58
- ${({ theme: e, condensed: t }) => t && `
56
+ `, u = s($)`
57
+ padding: ${({ theme: r }) => `${r.spaces[2]} ${r.spaces[3]}`};
58
+ `, h = s(b)`
59
+ ${({ theme: r, condensed: a }) => a && `
59
60
  position: absolute;
60
61
  // Values based on visual aspect
61
- top: -${e.spaces[3]};
62
- right: -${e.spaces[1]};
62
+ top: -${r.spaces[3]};
63
+ right: -${r.spaces[1]};
63
64
  `}
64
65
 
65
- ${a} {
66
+ ${i} {
66
67
  //find a solution to remove !important
67
- color: ${({ theme: e }) => e.colors.neutral0} !important;
68
+ color: ${({ theme: r }) => r.colors.neutral0} !important;
68
69
  line-height: 0;
69
70
  }
70
71
 
71
72
  display: flex;
72
73
  justify-content: center;
73
74
  align-items: center;
74
- min-width: ${({ theme: e }) => e.spaces[6]};
75
- height: ${({ theme: e }) => e.spaces[5]};
76
- padding: ${({ theme: e }) => `0 ${e.spaces[2]}`};
77
- border-radius: ${({ theme: e }) => e.spaces[10]};
78
- background: ${({ theme: e }) => e.colors.primary600};
79
- `, s = ({ children: e, icon: t, badgeContent: n, badgeAriaLabel: l, ...c }) => f() ? /* @__PURE__ */ r.createElement(b, { position: "right", label: e }, /* @__PURE__ */ r.createElement(d, { ...c }, /* @__PURE__ */ r.createElement(m, { as: "span" }, /* @__PURE__ */ r.createElement(p, { "aria-hidden": !0, paddingRight: 0, as: "span" }, t), n && /* @__PURE__ */ r.createElement(u, { condensed: !0, "aria-label": l }, n)))) : /* @__PURE__ */ r.createElement(d, { ...c }, /* @__PURE__ */ r.createElement(m, { as: "span", justifyContent: "space-between" }, /* @__PURE__ */ r.createElement($, null, /* @__PURE__ */ r.createElement(p, { "aria-hidden": !0, paddingRight: 3, as: "span" }, t), /* @__PURE__ */ r.createElement(a, null, e)), n && /* @__PURE__ */ r.createElement(u, { justifyContent: "center", "aria-label": l }, n)));
80
- s.displayName = "NavLink";
81
- s.defaultProps = {
75
+ min-width: ${({ theme: r }) => r.spaces[6]};
76
+ height: ${({ theme: r }) => r.spaces[5]};
77
+ padding: ${({ theme: r }) => `0 ${r.spaces[2]}`};
78
+ border-radius: ${({ theme: r }) => r.spaces[10]};
79
+ background: ${({ theme: r }) => r.colors.primary600};
80
+ `, l = ({ children: r, icon: a, badgeContent: n, badgeAriaLabel: c, ...d }) => f() ? /* @__PURE__ */ o(y, { position: "right", label: r, children: /* @__PURE__ */ o(m, { ...d, children: /* @__PURE__ */ t(u, { as: "span", children: [
81
+ /* @__PURE__ */ o(p, { "aria-hidden": !0, paddingRight: 0, as: "span", children: a }),
82
+ n && /* @__PURE__ */ o(h, { condensed: !0, "aria-label": c, children: n })
83
+ ] }) }) }) : /* @__PURE__ */ o(m, { ...d, children: /* @__PURE__ */ t(u, { as: "span", justifyContent: "space-between", children: [
84
+ /* @__PURE__ */ t($, { children: [
85
+ /* @__PURE__ */ o(p, { "aria-hidden": !0, paddingRight: 3, as: "span", children: a }),
86
+ /* @__PURE__ */ o(i, { children: r })
87
+ ] }),
88
+ n && /* @__PURE__ */ o(h, { justifyContent: "center", "aria-label": c, children: n })
89
+ ] }) });
90
+ l.displayName = "NavLink";
91
+ l.defaultProps = {
82
92
  badgeContent: void 0,
83
93
  badgeAriaLabel: void 0
84
94
  };
85
- s.propTypes = {
86
- badgeAriaLabel: o.string,
87
- badgeContent: o.oneOfType([o.string, o.number]),
88
- children: o.node.isRequired,
89
- icon: o.node.isRequired
95
+ l.propTypes = {
96
+ badgeAriaLabel: e.string,
97
+ badgeContent: e.oneOfType([e.string, e.number]),
98
+ children: e.node.isRequired,
99
+ icon: e.node.isRequired
90
100
  };
91
101
  export {
92
- s as NavLink
102
+ l as NavLink
93
103
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),g=require("prop-types"),f=require("./MainNavContext.cjs"),s=require("../Box/Box.cjs"),y=require("../Divider/Divider.cjs"),n=require("../Flex/Flex.cjs"),x=require("../Typography/Typography.cjs"),v=require("../VisuallyHidden/VisuallyHidden.cjs"),p=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=p(i),o=p(g),m=({label:t,children:d,spacing:u=2,horizontal:a=!1,...c})=>f.useMainNav()?e.default.createElement(n.Flex,{direction:"column",alignItems:"stretch",gap:2},e.default.createElement(s.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span"},e.default.createElement(y.Divider,null),e.default.createElement(v.VisuallyHidden,null,e.default.createElement("span",null,t))),e.default.createElement(n.Flex,{as:"ul",gap:u,direction:a?"row":"column",alignItems:a?"center":"stretch",...c},i.Children.map(d,(r,l)=>e.default.createElement("li",{key:l},r)))):e.default.createElement(n.Flex,{direction:"column",alignItems:"stretch",gap:2},e.default.createElement(s.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span"},e.default.createElement(x.Typography,{variant:"sigma",textColor:"neutral600"},t)),e.default.createElement(n.Flex,{as:"ul",gap:u,direction:a?"row":"column",alignItems:a?"center":"stretch",...c},i.Children.map(d,(r,l)=>e.default.createElement("li",{key:l},r))));m.propTypes={children:o.default.node.isRequired,label:o.default.string.isRequired};exports.NavSection=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),l=require("prop-types"),x=require("./MainNavContext.cjs"),g=require("../Divider/Divider.cjs"),r=require("../Flex/Flex.cjs"),u=require("../Box/Box.cjs"),h=require("../VisuallyHidden/VisuallyHidden.cjs"),m=require("../Typography/Typography.cjs"),p=({label:t,children:d,spacing:a=2,horizontal:n=!1,...c})=>x.useMainNav()?e.jsxs(r.Flex,{direction:"column",alignItems:"stretch",gap:2,children:[e.jsxs(u.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",hasRadius:!0,as:"span",children:[e.jsx(g.Divider,{}),e.jsx(h.VisuallyHidden,{children:e.jsx("span",{children:t})})]}),e.jsx(r.Flex,{as:"ul",gap:a,direction:n?"row":"column",alignItems:n?"center":"stretch",...c,children:o.Children.map(d,(i,s)=>e.jsx("li",{children:i},s))})]}):e.jsxs(r.Flex,{direction:"column",alignItems:"stretch",gap:2,children:[e.jsx(u.Box,{paddingTop:1,paddingBottom:1,background:"neutral0",paddingRight:3,paddingLeft:3,hasRadius:!0,as:"span",children:e.jsx(m.Typography,{variant:"sigma",textColor:"neutral600",children:t})}),e.jsx(r.Flex,{as:"ul",gap:a,direction:n?"row":"column",alignItems:n?"center":"stretch",...c,children:o.Children.map(d,(i,s)=>e.jsx("li",{children:i},s))})]});p.propTypes={children:l.node.isRequired,label:l.string.isRequired};exports.NavSection=p;
@@ -1,36 +1,46 @@
1
- import e, { Children as c } from "react";
2
- import d from "prop-types";
3
- import { useMainNav as s } from "./MainNavContext.js";
4
- import { Box as p } from "../Box/Box.js";
5
- import { Divider as u } from "../Divider/Divider.js";
6
- import { Flex as r } from "../Flex/Flex.js";
7
- import { Typography as g } from "../Typography/Typography.js";
8
- import { VisuallyHidden as f } from "../VisuallyHidden/VisuallyHidden.js";
9
- const E = ({ label: i, children: m, spacing: o = 2, horizontal: t = !1, ...l }) => s() ? /* @__PURE__ */ e.createElement(r, { direction: "column", alignItems: "stretch", gap: 2 }, /* @__PURE__ */ e.createElement(p, { paddingTop: 1, paddingBottom: 1, background: "neutral0", hasRadius: !0, as: "span" }, /* @__PURE__ */ e.createElement(u, null), /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("span", null, i))), /* @__PURE__ */ e.createElement(
10
- r,
11
- {
12
- as: "ul",
13
- gap: o,
14
- direction: t ? "row" : "column",
15
- alignItems: t ? "center" : "stretch",
16
- ...l
17
- },
18
- c.map(m, (n, a) => /* @__PURE__ */ e.createElement("li", { key: a }, n))
19
- )) : /* @__PURE__ */ e.createElement(r, { direction: "column", alignItems: "stretch", gap: 2 }, /* @__PURE__ */ e.createElement(p, { paddingTop: 1, paddingBottom: 1, background: "neutral0", paddingRight: 3, paddingLeft: 3, hasRadius: !0, as: "span" }, /* @__PURE__ */ e.createElement(g, { variant: "sigma", textColor: "neutral600" }, i)), /* @__PURE__ */ e.createElement(
20
- r,
21
- {
22
- as: "ul",
23
- gap: o,
24
- direction: t ? "row" : "column",
25
- alignItems: t ? "center" : "stretch",
26
- ...l
27
- },
28
- c.map(m, (n, a) => /* @__PURE__ */ e.createElement("li", { key: a }, n))
29
- ));
30
- E.propTypes = {
31
- children: d.node.isRequired,
32
- label: d.string.isRequired
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { Children as m } from "react";
3
+ import p from "prop-types";
4
+ import { useMainNav as u } from "./MainNavContext.js";
5
+ import { Divider as g } from "../Divider/Divider.js";
6
+ import { Flex as i } from "../Flex/Flex.js";
7
+ import { Box as l } from "../Box/Box.js";
8
+ import { VisuallyHidden as h } from "../VisuallyHidden/VisuallyHidden.js";
9
+ import { Typography as f } from "../Typography/Typography.js";
10
+ const x = ({ label: o, children: a, spacing: s = 2, horizontal: e = !1, ...c }) => u() ? /* @__PURE__ */ d(i, { direction: "column", alignItems: "stretch", gap: 2, children: [
11
+ /* @__PURE__ */ d(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", hasRadius: !0, as: "span", children: [
12
+ /* @__PURE__ */ r(g, {}),
13
+ /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r("span", { children: o }) })
14
+ ] }),
15
+ /* @__PURE__ */ r(
16
+ i,
17
+ {
18
+ as: "ul",
19
+ gap: s,
20
+ direction: e ? "row" : "column",
21
+ alignItems: e ? "center" : "stretch",
22
+ ...c,
23
+ children: m.map(a, (n, t) => /* @__PURE__ */ r("li", { children: n }, t))
24
+ }
25
+ )
26
+ ] }) : /* @__PURE__ */ d(i, { direction: "column", alignItems: "stretch", gap: 2, children: [
27
+ /* @__PURE__ */ r(l, { paddingTop: 1, paddingBottom: 1, background: "neutral0", paddingRight: 3, paddingLeft: 3, hasRadius: !0, as: "span", children: /* @__PURE__ */ r(f, { variant: "sigma", textColor: "neutral600", children: o }) }),
28
+ /* @__PURE__ */ r(
29
+ i,
30
+ {
31
+ as: "ul",
32
+ gap: s,
33
+ direction: e ? "row" : "column",
34
+ alignItems: e ? "center" : "stretch",
35
+ ...c,
36
+ children: m.map(a, (n, t) => /* @__PURE__ */ r("li", { children: n }, t))
37
+ }
38
+ )
39
+ ] });
40
+ x.propTypes = {
41
+ children: p.node.isRequired,
42
+ label: p.string.isRequired
33
43
  };
34
44
  export {
35
- E as NavSection
45
+ x as NavSection
36
46
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react"),u=require("prop-types"),i=require("styled-components"),p=require("../Box/Box.cjs"),f=require("../Flex/Flex.cjs"),o=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=o(l),y=o(u),g=o(i),x=g.default(p.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),l=require("prop-types"),u=require("styled-components"),a=require("../Box/Box.cjs"),p=require("../Flex/Flex.cjs"),g=u(a.Box)`
2
2
  flex-grow: 1;
3
3
  overflow-y: auto;
4
- `,n=({children:e,spacing:a=4,horizontal:r=!1,...s})=>t.default.createElement(x,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8},t.default.createElement(f.Flex,{as:"ul",gap:a,direction:r?"row":"column",alignItems:r?"center":"stretch",...s},l.Children.map(e,(c,d)=>t.default.createElement("li",{key:d},c))));n.propTypes={children:y.default.node.isRequired};exports.NavSections=n;
4
+ `,t=({children:o,spacing:n=4,horizontal:r=!1,...i})=>e.jsx(g,{paddingLeft:3,paddingRight:2,paddingTop:3,paddingBottom:8,children:e.jsx(p.Flex,{as:"ul",gap:n,direction:r?"row":"column",alignItems:r?"center":"stretch",...i,children:d.Children.map(o,(s,c)=>e.jsx("li",{children:s},c))})});t.propTypes={children:l.node.isRequired};exports.NavSections=t;
@@ -1,24 +1,25 @@
1
- import e, { Children as m } from "react";
2
- import a from "prop-types";
3
- import d from "styled-components";
4
- import { Box as l } from "../Box/Box.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Children as d } from "react";
3
+ import m from "prop-types";
4
+ import l from "styled-components";
5
+ import { Box as s } from "../Box/Box.js";
5
6
  import { Flex as c } from "../Flex/Flex.js";
6
- const s = d(l)`
7
+ const a = l(s)`
7
8
  flex-grow: 1;
8
9
  overflow-y: auto;
9
- `, f = ({ children: t, spacing: o = 4, horizontal: r = !1, ...i }) => /* @__PURE__ */ e.createElement(s, { paddingLeft: 3, paddingRight: 2, paddingTop: 3, paddingBottom: 8 }, /* @__PURE__ */ e.createElement(
10
+ `, f = ({ children: e, spacing: i = 4, horizontal: o = !1, ...t }) => /* @__PURE__ */ r(a, { paddingLeft: 3, paddingRight: 2, paddingTop: 3, paddingBottom: 8, children: /* @__PURE__ */ r(
10
11
  c,
11
12
  {
12
13
  as: "ul",
13
- gap: o,
14
- direction: r ? "row" : "column",
15
- alignItems: r ? "center" : "stretch",
16
- ...i
17
- },
18
- m.map(t, (n, p) => /* @__PURE__ */ e.createElement("li", { key: p }, n))
19
- ));
14
+ gap: i,
15
+ direction: o ? "row" : "column",
16
+ alignItems: o ? "center" : "stretch",
17
+ ...t,
18
+ children: d.map(e, (p, n) => /* @__PURE__ */ r("li", { children: p }, n))
19
+ }
20
+ ) });
20
21
  f.propTypes = {
21
- children: a.node.isRequired
22
+ children: m.node.isRequired
22
23
  };
23
24
  export {
24
25
  f as NavSections
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("react"),f=require("prop-types"),y=require("styled-components"),v=require("./MainNavContext.cjs"),s=require("../Avatar/Avatar.cjs");require("../Avatar/AvatarGroup.cjs");const d=require("../Box/Box.cjs"),g=require("../Flex/Flex.cjs"),x=require("../Typography/Typography.cjs"),m=require("../VisuallyHidden/VisuallyHidden.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=l(p),r=l(f),q=l(y),j=q.default(d.Box)`
2
- border-top: 1px solid ${({theme:e})=>e.colors.neutral150};
3
- `,a=t.default.forwardRef(({src:e,children:n,initials:i,...u},c)=>{const o=v.useMainNav();return t.default.createElement(j,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,...u},t.default.createElement(g.Flex,{as:"button",justifyContent:o?"center":void 0,ref:c},e?t.default.createElement(s.Avatar,{src:e,alt:"","aria-hidden":!0}):t.default.createElement(s.Initials,null,i),o?t.default.createElement(m.VisuallyHidden,null,t.default.createElement("span",null,n)):t.default.createElement(d.Box,{width:`${130/16}rem`,paddingLeft:2,as:"span"},t.default.createElement(x.Typography,{ellipsis:!0,textColor:"neutral600"},n))))});a.displayName="NavUser";a.defaultProps={src:void 0,initials:void 0};a.propTypes={children:r.default.node.isRequired,initials:r.default.node,src:r.default.string};exports.NavUser=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),s=require("prop-types"),p=require("styled-components"),x=require("./MainNavContext.cjs"),o=require("../Avatar/Avatar.cjs"),a=require("../Box/Box.cjs"),y=require("../Flex/Flex.cjs"),v=require("../VisuallyHidden/VisuallyHidden.cjs"),g=require("../Typography/Typography.cjs"),j=p(a.Box)`
2
+ border-top: 1px solid ${({theme:r})=>r.colors.neutral150};
3
+ `,i=c.forwardRef(({src:r,children:t,initials:d,...l},u)=>{const n=x.useMainNav();return e.jsx(j,{paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5,...l,children:e.jsxs(y.Flex,{as:"button",justifyContent:n?"center":void 0,ref:u,children:[r?e.jsx(o.Avatar,{src:r,alt:"","aria-hidden":!0}):e.jsx(o.Initials,{children:d}),n?e.jsx(v.VisuallyHidden,{children:e.jsx("span",{children:t})}):e.jsx(a.Box,{width:`${130/16}rem`,paddingLeft:2,as:"span",children:e.jsx(g.Typography,{ellipsis:!0,textColor:"neutral600",children:t})})]})})});i.displayName="NavUser";i.defaultProps={src:void 0,initials:void 0};i.propTypes={children:s.node.isRequired,initials:s.node,src:s.string};exports.NavUser=i;
@@ -1,29 +1,32 @@
1
- import e from "react";
2
- import r from "prop-types";
3
- import m from "styled-components";
4
- import { useMainNav as s } from "./MainNavContext.js";
5
- import { Avatar as c, Initials as f } from "../Avatar/Avatar.js";
6
- import "../Avatar/AvatarGroup.js";
1
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import i from "prop-types";
4
+ import f from "styled-components";
5
+ import { useMainNav as c } from "./MainNavContext.js";
6
+ import { Avatar as u, Initials as h } from "../Avatar/Avatar.js";
7
7
  import { Box as n } from "../Box/Box.js";
8
- import { Flex as u } from "../Flex/Flex.js";
9
- import { Typography as g } from "../Typography/Typography.js";
8
+ import { Flex as g } from "../Flex/Flex.js";
10
9
  import { VisuallyHidden as v } from "../VisuallyHidden/VisuallyHidden.js";
11
- const y = m(n)`
12
- border-top: 1px solid ${({ theme: t }) => t.colors.neutral150};
13
- `, o = e.forwardRef(({ src: t, children: i, initials: l, ...p }, d) => {
14
- const a = s();
15
- return /* @__PURE__ */ e.createElement(y, { paddingTop: 3, paddingBottom: 3, paddingLeft: 5, paddingRight: 5, ...p }, /* @__PURE__ */ e.createElement(u, { as: "button", justifyContent: a ? "center" : void 0, ref: d }, t ? /* @__PURE__ */ e.createElement(c, { src: t, alt: "", "aria-hidden": !0 }) : /* @__PURE__ */ e.createElement(f, null, l), a ? /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement("span", null, i)) : /* @__PURE__ */ e.createElement(n, { width: `${130 / 16}rem`, paddingLeft: 2, as: "span" }, /* @__PURE__ */ e.createElement(g, { ellipsis: !0, textColor: "neutral600" }, i))));
10
+ import { Typography as x } from "../Typography/Typography.js";
11
+ const y = f(n)`
12
+ border-top: 1px solid ${({ theme: o }) => o.colors.neutral150};
13
+ `, t = m.forwardRef(({ src: o, children: e, initials: a, ...s }, p) => {
14
+ const d = c();
15
+ return /* @__PURE__ */ r(y, { paddingTop: 3, paddingBottom: 3, paddingLeft: 5, paddingRight: 5, ...s, children: /* @__PURE__ */ l(g, { as: "button", justifyContent: d ? "center" : void 0, ref: p, children: [
16
+ o ? /* @__PURE__ */ r(u, { src: o, alt: "", "aria-hidden": !0 }) : /* @__PURE__ */ r(h, { children: a }),
17
+ d ? /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r("span", { children: e }) }) : /* @__PURE__ */ r(n, { width: `${130 / 16}rem`, paddingLeft: 2, as: "span", children: /* @__PURE__ */ r(x, { ellipsis: !0, textColor: "neutral600", children: e }) })
18
+ ] }) });
16
19
  });
17
- o.displayName = "NavUser";
18
- o.defaultProps = {
20
+ t.displayName = "NavUser";
21
+ t.defaultProps = {
19
22
  src: void 0,
20
23
  initials: void 0
21
24
  };
22
- o.propTypes = {
23
- children: r.node.isRequired,
24
- initials: r.node,
25
- src: r.string
25
+ t.propTypes = {
26
+ children: i.node.isRequired,
27
+ initials: i.node,
28
+ src: i.string
26
29
  };
27
30
  export {
28
- o as NavUser
31
+ t as NavUser
29
32
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./MainNav.cjs"),a=require("./NavBrand.cjs"),n=require("./NavCondense.cjs"),v=require("./NavFooter.cjs"),o=require("./NavLink.cjs"),r=require("./NavSection.cjs"),s=require("./NavSections.cjs"),N=require("./NavUser.cjs");exports.MainNav=e.MainNav;exports.NavBrand=a.NavBrand;exports.NavCondense=n.NavCondense;exports.NavFooter=v.NavFooter;exports.NavLink=o.NavLink;exports.NavSection=r.NavSection;exports.NavSections=s.NavSections;exports.NavUser=N.NavUser;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MainNav.cjs"),a=require("./NavBrand.cjs"),n=require("./NavCondense.cjs"),r=require("./NavFooter.cjs"),o=require("./NavLink.cjs"),v=require("./NavSection.cjs"),N=require("./NavSections.cjs"),i=require("./NavUser.cjs");exports.MainNav=e.MainNav;exports.NavBrand=a.NavBrand;exports.NavCondense=n.NavCondense;exports.NavFooter=r.NavFooter;exports.NavLink=o.NavLink;exports.NavSection=v.NavSection;exports.NavSections=N.NavSections;exports.NavUser=i.NavUser;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),a=require("styled-components"),d=require("../Box/Box.cjs"),t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=t(o),r=t(a),c=r.default(d.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const r=require("styled-components"),t=require("../Box/Box.cjs"),d=r(t.Box)`
2
2
  overflow: auto;
3
3
  max-height: 60vh;
4
- `,u=e=>l.default.createElement(c,{padding:7,...e});exports.ModalBody=u;
4
+ `,i=e=>o.jsx(d,{padding:7,...e});exports.ModalBody=i;
@@ -1,10 +1,11 @@
1
- import t from "react";
2
- import r from "styled-components";
3
- import { Box as e } from "../Box/Box.js";
4
- const a = r(e)`
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import t from "styled-components";
4
+ import { Box as m } from "../Box/Box.js";
5
+ const p = t(m)`
5
6
  overflow: auto;
6
7
  max-height: 60vh;
7
- `, l = (o) => /* @__PURE__ */ t.createElement(a, { padding: 7, ...o });
8
+ `, f = (o) => /* @__PURE__ */ r(p, { padding: 7, ...o });
8
9
  export {
9
- l as ModalBody
10
+ f as ModalBody
10
11
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),t=e.createContext(),o=()=>e.useContext(t);exports.ModalContext=t;exports.useModal=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(),o=()=>e.useContext(t);exports.ModalContext=t;exports.useModal=o;
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react"),c=require("prop-types"),i=require("styled-components"),p=require("../Box/Box.cjs"),n=require("../Flex/Flex.cjs"),o=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=o(u),a=o(c),l=o(i),f=l.default(p.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const t=require("prop-types"),s=require("styled-components"),a=require("../Box/Box.cjs"),d=require("../Flex/Flex.cjs"),c=s(a.Box)`
2
2
  border-radius: 0 0 ${({theme:e})=>e.borderRadius} ${({theme:e})=>e.borderRadius};
3
3
  border-top: 1px solid ${({theme:e})=>e.colors.neutral150};
4
- `,d=l.default(n.Flex)`
4
+ `,n=s(d.Flex)`
5
5
  & > * + * {
6
6
  margin-left: ${({theme:e})=>e.spaces[2]};
7
7
  }
8
- `,r=({startActions:e,endActions:s})=>t.default.createElement(f,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100"},t.default.createElement(n.Flex,{justifyContent:"space-between"},t.default.createElement(d,null,e),t.default.createElement(d,null,s)));r.defaultProps={endActions:void 0,startActions:void 0};r.propTypes={endActions:a.default.node,startActions:a.default.node};exports.ModalFooter=r;
8
+ `,r=({startActions:e,endActions:i})=>o.jsx(c,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:o.jsxs(d.Flex,{justifyContent:"space-between",children:[o.jsx(n,{children:e}),o.jsx(n,{children:i})]})});r.defaultProps={endActions:void 0,startActions:void 0};r.propTypes={endActions:t.node,startActions:t.node};exports.ModalFooter=r;
@@ -1,24 +1,28 @@
1
- import o from "react";
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import "react";
2
3
  import t from "prop-types";
3
- import n from "styled-components";
4
- import { Box as i } from "../Box/Box.js";
5
- import { Flex as d } from "../Flex/Flex.js";
6
- const s = n(i)`
7
- border-radius: 0 0 ${({ theme: e }) => e.borderRadius} ${({ theme: e }) => e.borderRadius};
8
- border-top: 1px solid ${({ theme: e }) => e.colors.neutral150};
9
- `, r = n(d)`
4
+ import d from "styled-components";
5
+ import { Box as a } from "../Box/Box.js";
6
+ import { Flex as i } from "../Flex/Flex.js";
7
+ const c = d(a)`
8
+ border-radius: 0 0 ${({ theme: o }) => o.borderRadius} ${({ theme: o }) => o.borderRadius};
9
+ border-top: 1px solid ${({ theme: o }) => o.colors.neutral150};
10
+ `, e = d(i)`
10
11
  & > * + * {
11
- margin-left: ${({ theme: e }) => e.spaces[2]};
12
+ margin-left: ${({ theme: o }) => o.spaces[2]};
12
13
  }
13
- `, a = ({ startActions: e, endActions: p }) => /* @__PURE__ */ o.createElement(s, { paddingTop: 4, paddingBottom: 4, paddingLeft: 5, paddingRight: 5, background: "neutral100" }, /* @__PURE__ */ o.createElement(d, { justifyContent: "space-between" }, /* @__PURE__ */ o.createElement(r, null, e), /* @__PURE__ */ o.createElement(r, null, p)));
14
- a.defaultProps = {
14
+ `, n = ({ startActions: o, endActions: p }) => /* @__PURE__ */ r(c, { paddingTop: 4, paddingBottom: 4, paddingLeft: 5, paddingRight: 5, background: "neutral100", children: /* @__PURE__ */ s(i, { justifyContent: "space-between", children: [
15
+ /* @__PURE__ */ r(e, { children: o }),
16
+ /* @__PURE__ */ r(e, { children: p })
17
+ ] }) });
18
+ n.defaultProps = {
15
19
  endActions: void 0,
16
20
  startActions: void 0
17
21
  };
18
- a.propTypes = {
22
+ n.propTypes = {
19
23
  endActions: t.node,
20
24
  startActions: t.node
21
25
  };
22
26
  export {
23
- a as ModalFooter
27
+ n as ModalFooter
24
28
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),d=require("@strapi/icons"),c=require("prop-types"),u=require("styled-components"),i=require("./ModalContext.cjs"),p=require("../Box/Box.cjs"),f=require("../Flex/Flex.cjs"),b=require("../IconButton/IconButton.cjs"),o=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=o(s),n=o(c),x=o(u),y=x.default(p.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime");require("react");const d=require("@strapi/icons"),t=require("prop-types"),i=require("styled-components"),a=require("./ModalContext.cjs"),l=require("../IconButton/IconButton.cjs"),c=require("../Box/Box.cjs"),u=require("../Flex/Flex.cjs"),p=i(c.Box)`
2
2
  border-radius: ${({theme:e})=>e.borderRadius} ${({theme:e})=>e.borderRadius} 0 0;
3
3
  border-bottom: 1px solid ${({theme:e})=>e.colors.neutral150};
4
- `,r=({children:e,closeLabel:a})=>{const l=i.useModal();return t.default.createElement(y,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100"},t.default.createElement(f.Flex,{justifyContent:"space-between"},e,t.default.createElement(b.IconButton,{onClick:l,"aria-label":a,icon:t.default.createElement(d.Cross,null)})))};r.defaultProps={closeLabel:"Close the modal"};r.propTypes={children:n.default.node.isRequired,closeLabel:n.default.string};exports.ModalHeader=r;
4
+ `,r=({children:e,closeLabel:s})=>{const n=a.useModal();return o.jsx(p,{paddingTop:4,paddingBottom:4,paddingLeft:5,paddingRight:5,background:"neutral100",children:o.jsxs(u.Flex,{justifyContent:"space-between",children:[e,o.jsx(l.IconButton,{onClick:n,"aria-label":s,icon:o.jsx(d.Cross,{})})]})})};r.defaultProps={closeLabel:"Close the modal"};r.propTypes={children:t.node.isRequired,closeLabel:t.string};exports.ModalHeader=r;
@@ -1,24 +1,28 @@
1
- import o from "react";
2
- import { Cross as l } from "@strapi/icons";
3
- import r from "prop-types";
4
- import n from "styled-components";
5
- import { useModal as i } from "./ModalContext.js";
6
- import { Box as p } from "../Box/Box.js";
7
- import { Flex as m } from "../Flex/Flex.js";
8
- import { IconButton as s } from "../IconButton/IconButton.js";
9
- const c = n(p)`
10
- border-radius: ${({ theme: e }) => e.borderRadius} ${({ theme: e }) => e.borderRadius} 0 0;
11
- border-bottom: 1px solid ${({ theme: e }) => e.colors.neutral150};
12
- `, t = ({ children: e, closeLabel: a }) => {
13
- const d = i();
14
- return /* @__PURE__ */ o.createElement(c, { paddingTop: 4, paddingBottom: 4, paddingLeft: 5, paddingRight: 5, background: "neutral100" }, /* @__PURE__ */ o.createElement(m, { justifyContent: "space-between" }, e, /* @__PURE__ */ o.createElement(s, { onClick: d, "aria-label": a, icon: /* @__PURE__ */ o.createElement(l, null) })));
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Cross as p } from "@strapi/icons";
4
+ import e from "prop-types";
5
+ import a from "styled-components";
6
+ import { useModal as n } from "./ModalContext.js";
7
+ import { IconButton as l } from "../IconButton/IconButton.js";
8
+ import { Box as m } from "../Box/Box.js";
9
+ import { Flex as c } from "../Flex/Flex.js";
10
+ const u = a(m)`
11
+ border-radius: ${({ theme: o }) => o.borderRadius} ${({ theme: o }) => o.borderRadius} 0 0;
12
+ border-bottom: 1px solid ${({ theme: o }) => o.colors.neutral150};
13
+ `, t = ({ children: o, closeLabel: d }) => {
14
+ const i = n();
15
+ return /* @__PURE__ */ r(u, { paddingTop: 4, paddingBottom: 4, paddingLeft: 5, paddingRight: 5, background: "neutral100", children: /* @__PURE__ */ s(c, { justifyContent: "space-between", children: [
16
+ o,
17
+ /* @__PURE__ */ r(l, { onClick: i, "aria-label": d, icon: /* @__PURE__ */ r(p, {}) })
18
+ ] }) });
15
19
  };
16
20
  t.defaultProps = {
17
21
  closeLabel: "Close the modal"
18
22
  };
19
23
  t.propTypes = {
20
- children: r.node.isRequired,
21
- closeLabel: r.string
24
+ children: e.node.isRequired,
25
+ closeLabel: e.string
22
26
  };
23
27
  export {
24
28
  t as ModalHeader
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),i=require("prop-types"),d=require("styled-components"),p=require("./ModalContext.cjs"),f=require("../Box/Box.cjs"),y=require("../DismissibleLayer/DismissibleLayer.cjs"),m=require("../Flex/Flex.cjs"),x=require("../FocusTrap/FocusTrap.cjs"),b=require("../hooks/useLockScroll.cjs"),q=require("../Portal/Portal.cjs"),o=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=o(c),r=o(i),a=o(d),g=a.default(m.Flex)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("react");const o=require("prop-types"),t=require("styled-components"),u=require("./ModalContext.cjs"),d=require("../DismissibleLayer/index.cjs"),l=require("../hooks/useLockScroll.cjs"),c=require("../Flex/Flex.cjs"),p=require("../Box/Box.cjs"),x=require("../Portal/Portal.cjs"),q=require("../FocusTrap/FocusTrap.cjs"),y=t(c.Flex)`
2
2
  inset: 0;
3
- background: ${({theme:e})=>`${e.colors.neutral800}1F`};
4
- `,j=a.default(f.Box)`
3
+ background: ${({theme:r})=>`${r.colors.neutral800}1F`};
4
+ `,g=t(p.Box)`
5
5
  width: ${830/16}rem;
6
- `,l=({onClose:e,labelledBy:s,...u})=>(b(!0),t.default.createElement(q.Portal,null,t.default.createElement(p.ModalContext.Provider,{value:e},t.default.createElement(g,{justifyContent:"center",paddingLeft:8,paddingRight:8,position:"fixed",zIndex:4},t.default.createElement(x.FocusTrap,null,t.default.createElement(y.DismissibleLayer,{onEscapeKeyDown:e,onPointerDownOutside:e},t.default.createElement(j,{"aria-labelledby":s,onClick:n=>n.stopPropagation(),background:"neutral0",hasRadius:!0,shadow:"popupShadow",role:"dialog","aria-modal":!0,...u})))))));l.propTypes={labelledBy:r.default.string.isRequired,onClose:r.default.func.isRequired};exports.ModalLayout=l;
6
+ `,i=({onClose:r,labelledBy:n,...s})=>(l(!0),e.jsx(x.Portal,{children:e.jsx(u.ModalContext.Provider,{value:r,children:e.jsx(y,{justifyContent:"center",paddingLeft:8,paddingRight:8,position:"fixed",zIndex:4,children:e.jsx(q.FocusTrap,{children:e.jsx(d.DismissibleLayer,{onEscapeKeyDown:r,onPointerDownOutside:r,children:e.jsx(g,{"aria-labelledby":n,onClick:a=>a.stopPropagation(),background:"neutral0",hasRadius:!0,shadow:"popupShadow",role:"dialog","aria-modal":!0,...s})})})})})}));i.propTypes={labelledBy:o.string.isRequired,onClose:o.func.isRequired};exports.ModalLayout=i;
@@ -1,35 +1,36 @@
1
- import e from "react";
2
- import r from "prop-types";
3
- import t from "styled-components";
4
- import { ModalContext as l } from "./ModalContext.js";
5
- import { Box as m } from "../Box/Box.js";
6
- import { DismissibleLayer as p } from "../DismissibleLayer/DismissibleLayer.js";
7
- import { Flex as d } from "../Flex/Flex.js";
8
- import { FocusTrap as s } from "../FocusTrap/FocusTrap.js";
9
- import u from "../hooks/useLockScroll.js";
10
- import { Portal as c } from "../Portal/Portal.js";
11
- const f = t(d)`
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import "react";
3
+ import e from "prop-types";
4
+ import i from "styled-components";
5
+ import { ModalContext as d } from "./ModalContext.js";
6
+ import { DismissibleLayer as p } from "../DismissibleLayer/index.js";
7
+ import l from "../hooks/useLockScroll.js";
8
+ import { Flex as m } from "../Flex/Flex.js";
9
+ import { Box as s } from "../Box/Box.js";
10
+ import { Portal as u } from "../Portal/Portal.js";
11
+ import { FocusTrap as c } from "../FocusTrap/FocusTrap.js";
12
+ const f = i(m)`
12
13
  inset: 0;
13
- background: ${({ theme: o }) => `${o.colors.neutral800}1F`};
14
- `, y = t(m)`
14
+ background: ${({ theme: r }) => `${r.colors.neutral800}1F`};
15
+ `, h = i(s)`
15
16
  width: ${830 / 16}rem;
16
- `, g = ({ onClose: o, labelledBy: a, ...i }) => (u(!0), /* @__PURE__ */ e.createElement(c, null, /* @__PURE__ */ e.createElement(l.Provider, { value: o }, /* @__PURE__ */ e.createElement(f, { justifyContent: "center", paddingLeft: 8, paddingRight: 8, position: "fixed", zIndex: 4 }, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement(p, { onEscapeKeyDown: o, onPointerDownOutside: o }, /* @__PURE__ */ e.createElement(
17
- y,
17
+ `, y = ({ onClose: r, labelledBy: t, ...n }) => (l(!0), /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(d.Provider, { value: r, children: /* @__PURE__ */ o(f, { justifyContent: "center", paddingLeft: 8, paddingRight: 8, position: "fixed", zIndex: 4, children: /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(p, { onEscapeKeyDown: r, onPointerDownOutside: r, children: /* @__PURE__ */ o(
18
+ h,
18
19
  {
19
- "aria-labelledby": a,
20
- onClick: (n) => n.stopPropagation(),
20
+ "aria-labelledby": t,
21
+ onClick: (a) => a.stopPropagation(),
21
22
  background: "neutral0",
22
23
  hasRadius: !0,
23
24
  shadow: "popupShadow",
24
25
  role: "dialog",
25
26
  "aria-modal": !0,
26
- ...i
27
+ ...n
27
28
  }
28
- )))))));
29
- g.propTypes = {
30
- labelledBy: r.string.isRequired,
31
- onClose: r.func.isRequired
29
+ ) }) }) }) }) }));
30
+ y.propTypes = {
31
+ labelledBy: e.string.isRequired,
32
+ onClose: e.func.isRequired
32
33
  };
33
34
  export {
34
- g as ModalLayout
35
+ y as ModalLayout
35
36
  };