@strapi/design-system 1.3.0-beta.3 → 1.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (864) hide show
  1. package/LICENSE +20 -0
  2. package/dist/Accordion/Accordion.cjs +23 -0
  3. package/dist/Accordion/Accordion.js +88 -0
  4. package/dist/Accordion/AccordionContent.cjs +1 -0
  5. package/dist/Accordion/AccordionContent.js +23 -0
  6. package/dist/Accordion/AccordionContext.cjs +1 -0
  7. package/dist/Accordion/AccordionContext.js +6 -0
  8. package/dist/Accordion/AccordionGroup.cjs +47 -0
  9. package/dist/Accordion/AccordionGroup.js +91 -0
  10. package/dist/Accordion/AccordionToggle.cjs +28 -0
  11. package/dist/Accordion/AccordionToggle.js +127 -0
  12. package/dist/Accordion/index.cjs +1 -0
  13. package/dist/Accordion/index.js +11 -0
  14. package/dist/Accordion/utils.cjs +1 -0
  15. package/dist/Accordion/utils.js +7 -0
  16. package/dist/Alert/Alert.cjs +35 -0
  17. package/dist/Alert/Alert.js +111 -0
  18. package/dist/Alert/index.cjs +1 -0
  19. package/dist/Alert/index.js +4 -0
  20. package/dist/Alert/utils.cjs +1 -0
  21. package/dist/Alert/utils.js +6 -0
  22. package/dist/Avatar/Avatar.cjs +29 -0
  23. package/dist/Avatar/Avatar.js +80 -0
  24. package/dist/Avatar/AvatarGroup.cjs +5 -0
  25. package/dist/Avatar/AvatarGroup.js +11 -0
  26. package/dist/Avatar/constants.cjs +1 -0
  27. package/dist/Avatar/constants.js +5 -0
  28. package/dist/Avatar/index.cjs +1 -0
  29. package/dist/Avatar/index.js +7 -0
  30. package/dist/Badge/Badge.cjs +1 -0
  31. package/dist/Badge/Badge.js +33 -0
  32. package/dist/Badge/index.cjs +1 -0
  33. package/dist/Badge/index.js +4 -0
  34. package/dist/BaseButton/BaseButton.cjs +23 -0
  35. package/dist/BaseButton/BaseButton.js +45 -0
  36. package/dist/BaseButton/index.cjs +1 -0
  37. package/dist/BaseButton/index.js +5 -0
  38. package/dist/BaseCheckbox/BaseCheckbox.cjs +62 -0
  39. package/dist/BaseCheckbox/BaseCheckbox.js +105 -0
  40. package/dist/BaseCheckbox/assets/checkmark-black.cjs +1 -0
  41. package/dist/BaseCheckbox/assets/checkmark-black.js +4 -0
  42. package/dist/BaseCheckbox/assets/checkmark.cjs +1 -0
  43. package/dist/BaseCheckbox/assets/checkmark.js +4 -0
  44. package/dist/BaseCheckbox/index.cjs +1 -0
  45. package/dist/BaseCheckbox/index.js +4 -0
  46. package/dist/BaseCheckbox/utils.cjs +1 -0
  47. package/dist/BaseCheckbox/utils.js +4 -0
  48. package/dist/BaseLink/BaseLink.cjs +3 -0
  49. package/dist/BaseLink/BaseLink.js +31 -0
  50. package/dist/BaseLink/index.cjs +1 -0
  51. package/dist/BaseLink/index.js +4 -0
  52. package/dist/BaseRadio/BaseRadio.cjs +31 -0
  53. package/dist/BaseRadio/BaseRadio.js +62 -0
  54. package/dist/BaseRadio/RadioGroup.cjs +1 -0
  55. package/dist/BaseRadio/RadioGroup.js +32 -0
  56. package/dist/BaseRadio/context.cjs +1 -0
  57. package/dist/BaseRadio/context.js +6 -0
  58. package/dist/BaseRadio/index.cjs +1 -0
  59. package/dist/BaseRadio/index.js +6 -0
  60. package/dist/BaseRadio/utils.cjs +1 -0
  61. package/dist/BaseRadio/utils.js +6 -0
  62. package/dist/Box/Box.cjs +80 -0
  63. package/dist/Box/Box.js +95 -0
  64. package/dist/Box/BoxProps.cjs +1 -0
  65. package/dist/Box/BoxProps.js +51 -0
  66. package/dist/Box/index.cjs +1 -0
  67. package/dist/Box/index.js +4 -0
  68. package/dist/Breadcrumbs/Breadcrumbs.cjs +16 -0
  69. package/dist/Breadcrumbs/Breadcrumbs.js +52 -0
  70. package/dist/Breadcrumbs/index.cjs +1 -0
  71. package/dist/Breadcrumbs/index.js +5 -0
  72. package/dist/Button/Button.cjs +48 -0
  73. package/dist/Button/Button.js +109 -0
  74. package/dist/Button/constants.cjs +1 -0
  75. package/dist/Button/constants.js +14 -0
  76. package/dist/Button/index.cjs +1 -0
  77. package/dist/Button/index.js +5 -0
  78. package/dist/Button/utils.cjs +87 -0
  79. package/dist/Button/utils.js +112 -0
  80. package/dist/Card/Card.cjs +1 -0
  81. package/dist/Card/Card.js +32 -0
  82. package/dist/Card/CardAction.cjs +6 -0
  83. package/dist/Card/CardAction.js +14 -0
  84. package/dist/Card/CardAsset.cjs +19 -0
  85. package/dist/Card/CardAsset.js +42 -0
  86. package/dist/Card/CardBadge.cjs +6 -0
  87. package/dist/Card/CardBadge.js +14 -0
  88. package/dist/Card/CardBody.cjs +1 -0
  89. package/dist/Card/CardBody.js +15 -0
  90. package/dist/Card/CardCheckbox.cjs +1 -0
  91. package/dist/Card/CardCheckbox.js +16 -0
  92. package/dist/Card/CardContent.cjs +3 -0
  93. package/dist/Card/CardContent.js +15 -0
  94. package/dist/Card/CardContext.cjs +1 -0
  95. package/dist/Card/CardContext.js +6 -0
  96. package/dist/Card/CardHeader.cjs +4 -0
  97. package/dist/Card/CardHeader.js +13 -0
  98. package/dist/Card/CardTimer.cjs +5 -0
  99. package/dist/Card/CardTimer.js +26 -0
  100. package/dist/Card/CardTitle.cjs +1 -0
  101. package/dist/Card/CardTitle.js +23 -0
  102. package/dist/Card/index.cjs +1 -0
  103. package/dist/Card/index.js +23 -0
  104. package/dist/CarouselInput/Carousel.cjs +14 -0
  105. package/dist/CarouselInput/Carousel.js +131 -0
  106. package/dist/CarouselInput/CarouselActions.cjs +1 -0
  107. package/dist/CarouselInput/CarouselActions.js +14 -0
  108. package/dist/CarouselInput/CarouselImage.cjs +4 -0
  109. package/dist/CarouselInput/CarouselImage.js +35 -0
  110. package/dist/CarouselInput/CarouselInput.cjs +1 -0
  111. package/dist/CarouselInput/CarouselInput.js +79 -0
  112. package/dist/CarouselInput/CarouselSlide.cjs +3 -0
  113. package/dist/CarouselInput/CarouselSlide.js +26 -0
  114. package/dist/CarouselInput/index.cjs +1 -0
  115. package/dist/CarouselInput/index.js +12 -0
  116. package/dist/Checkbox/Checkbox.cjs +7 -0
  117. package/dist/Checkbox/Checkbox.js +64 -0
  118. package/dist/Checkbox/index.cjs +1 -0
  119. package/dist/Checkbox/index.js +4 -0
  120. package/dist/Combobox/Combobox.cjs +1 -0
  121. package/dist/Combobox/Combobox.js +285 -0
  122. package/dist/Combobox/ComboboxList.cjs +1 -0
  123. package/dist/Combobox/ComboboxList.js +15 -0
  124. package/dist/Combobox/ComboboxOption.cjs +1 -0
  125. package/dist/Combobox/ComboboxOption.js +30 -0
  126. package/dist/Combobox/components.cjs +53 -0
  127. package/dist/Combobox/components.js +64 -0
  128. package/dist/Combobox/index.cjs +1 -0
  129. package/dist/Combobox/index.js +7 -0
  130. package/dist/Combobox/utils.cjs +1 -0
  131. package/dist/Combobox/utils.js +78 -0
  132. package/dist/DatePicker/DatePicker.cjs +1 -0
  133. package/dist/DatePicker/DatePicker.js +104 -0
  134. package/dist/DatePicker/DatePickerCalendar.cjs +1 -0
  135. package/dist/DatePicker/DatePickerCalendar.js +102 -0
  136. package/dist/DatePicker/DatePickerTd.cjs +19 -0
  137. package/dist/DatePicker/DatePickerTd.js +55 -0
  138. package/dist/DatePicker/DatePickerTh.cjs +9 -0
  139. package/dist/DatePicker/DatePickerTh.js +35 -0
  140. package/dist/DatePicker/compareDates.cjs +1 -0
  141. package/dist/DatePicker/compareDates.js +4 -0
  142. package/dist/DatePicker/components.cjs +31 -0
  143. package/dist/DatePicker/components.js +41 -0
  144. package/dist/DatePicker/index.cjs +1 -0
  145. package/dist/DatePicker/index.js +4 -0
  146. package/dist/DatePicker/utils/formatDate.cjs +1 -0
  147. package/dist/DatePicker/utils/formatDate.js +4 -0
  148. package/dist/DatePicker/utils/generateWeeks.cjs +1 -0
  149. package/dist/DatePicker/utils/generateWeeks.js +17 -0
  150. package/dist/DatePicker/utils/getDayOfWeek.cjs +1 -0
  151. package/dist/DatePicker/utils/getDayOfWeek.js +15 -0
  152. package/dist/DatePicker/utils/getMonths.cjs +1 -0
  153. package/dist/DatePicker/utils/getMonths.js +7 -0
  154. package/dist/DatePicker/utils/getYears.cjs +1 -0
  155. package/dist/DatePicker/utils/getYears.js +9 -0
  156. package/dist/DatePicker/utils/index.cjs +1 -0
  157. package/dist/DatePicker/utils/index.js +12 -0
  158. package/dist/DateTimePicker/DateTimePicker.cjs +1 -0
  159. package/dist/DateTimePicker/DateTimePicker.js +108 -0
  160. package/dist/DateTimePicker/DateTimePickerProps.cjs +1 -0
  161. package/dist/DateTimePicker/DateTimePickerProps.js +42 -0
  162. package/dist/DateTimePicker/__tests__/parseDate.test.cjs +1 -0
  163. package/dist/DateTimePicker/__tests__/parseDate.test.js +8 -0
  164. package/dist/DateTimePicker/index.cjs +1 -0
  165. package/dist/DateTimePicker/index.js +4 -0
  166. package/dist/DateTimePicker/parseDate.cjs +1 -0
  167. package/dist/DateTimePicker/parseDate.js +7 -0
  168. package/dist/Dialog/Dialog.cjs +14 -0
  169. package/dist/Dialog/Dialog.js +66 -0
  170. package/dist/Dialog/DialogBody.cjs +10 -0
  171. package/dist/Dialog/DialogBody.js +32 -0
  172. package/dist/Dialog/DialogFooter.cjs +9 -0
  173. package/dist/Dialog/DialogFooter.js +31 -0
  174. package/dist/Dialog/index.cjs +1 -0
  175. package/dist/Dialog/index.js +8 -0
  176. package/dist/DismissibleLayer/DismissibleLayer.cjs +1 -0
  177. package/dist/DismissibleLayer/DismissibleLayer.js +38 -0
  178. package/dist/DismissibleLayer/index.cjs +1 -0
  179. package/dist/DismissibleLayer/index.js +4 -0
  180. package/dist/Divider/Divider.cjs +5 -0
  181. package/dist/Divider/Divider.js +24 -0
  182. package/dist/Divider/index.cjs +1 -0
  183. package/dist/Divider/index.js +4 -0
  184. package/dist/EmptyStateLayout/EmptyStateLayout.cjs +10 -0
  185. package/dist/EmptyStateLayout/EmptyStateLayout.js +44 -0
  186. package/dist/EmptyStateLayout/index.cjs +1 -0
  187. package/dist/EmptyStateLayout/index.js +4 -0
  188. package/dist/EmptyStateLayout/story-assets/Illo.cjs +1 -0
  189. package/dist/EmptyStateLayout/story-assets/Illo.js +49 -0
  190. package/dist/Field/Field.cjs +1 -0
  191. package/dist/Field/Field.js +28 -0
  192. package/dist/Field/FieldAction.cjs +10 -0
  193. package/dist/Field/FieldAction.js +24 -0
  194. package/dist/Field/FieldContext.cjs +1 -0
  195. package/dist/Field/FieldContext.js +6 -0
  196. package/dist/Field/FieldError.cjs +1 -0
  197. package/dist/Field/FieldError.js +16 -0
  198. package/dist/Field/FieldHint.cjs +1 -0
  199. package/dist/Field/FieldHint.js +15 -0
  200. package/dist/Field/FieldInput.cjs +43 -0
  201. package/dist/Field/FieldInput.js +105 -0
  202. package/dist/Field/FieldLabel.cjs +9 -0
  203. package/dist/Field/FieldLabel.js +44 -0
  204. package/dist/Field/index.cjs +1 -0
  205. package/dist/Field/index.js +18 -0
  206. package/dist/Flex/Flex.cjs +9 -0
  207. package/dist/Flex/Flex.js +22 -0
  208. package/dist/Flex/FlexProps.cjs +1 -0
  209. package/dist/Flex/FlexProps.js +40 -0
  210. package/dist/Flex/index.cjs +1 -0
  211. package/dist/Flex/index.js +4 -0
  212. package/dist/FocusTrap/ExampleComponent.cjs +1 -0
  213. package/dist/FocusTrap/ExampleComponent.js +70 -0
  214. package/dist/FocusTrap/FocusTrap.cjs +1 -0
  215. package/dist/FocusTrap/FocusTrap.js +48 -0
  216. package/dist/FocusTrap/index.cjs +1 -0
  217. package/dist/FocusTrap/index.js +4 -0
  218. package/dist/Grid/Grid.cjs +5 -0
  219. package/dist/Grid/Grid.js +28 -0
  220. package/dist/Grid/GridContext.cjs +1 -0
  221. package/dist/Grid/GridContext.js +6 -0
  222. package/dist/Grid/GridItem.cjs +12 -0
  223. package/dist/Grid/GridItem.js +41 -0
  224. package/dist/Grid/index.cjs +1 -0
  225. package/dist/Grid/index.js +6 -0
  226. package/dist/Icon/Icon.cjs +6 -0
  227. package/dist/Icon/Icon.js +26 -0
  228. package/dist/Icon/index.cjs +1 -0
  229. package/dist/Icon/index.js +4 -0
  230. package/dist/IconButton/IconButton.cjs +86 -0
  231. package/dist/IconButton/IconButton.js +149 -0
  232. package/dist/IconButton/index.cjs +1 -0
  233. package/dist/IconButton/index.js +5 -0
  234. package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -0
  235. package/dist/KeyboardNavigable/KeyboardNavigable.js +58 -0
  236. package/dist/KeyboardNavigable/index.cjs +1 -0
  237. package/dist/KeyboardNavigable/index.js +4 -0
  238. package/dist/Layout/ActionLayout.cjs +9 -0
  239. package/dist/Layout/ActionLayout.js +37 -0
  240. package/dist/Layout/ContentLayout.cjs +1 -0
  241. package/dist/Layout/ContentLayout.js +13 -0
  242. package/dist/Layout/GridLayout.cjs +5 -0
  243. package/dist/Layout/GridLayout.js +13 -0
  244. package/dist/Layout/HeaderLayout.cjs +8 -0
  245. package/dist/Layout/HeaderLayout.js +132 -0
  246. package/dist/Layout/Layout.cjs +6 -0
  247. package/dist/Layout/Layout.js +24 -0
  248. package/dist/Layout/TwoColsLayout.cjs +1 -0
  249. package/dist/Layout/TwoColsLayout.js +29 -0
  250. package/dist/Layout/index.cjs +1 -0
  251. package/dist/Layout/index.js +15 -0
  252. package/dist/Link/Link.cjs +33 -0
  253. package/dist/Link/Link.js +87 -0
  254. package/dist/Link/index.cjs +1 -0
  255. package/dist/Link/index.js +4 -0
  256. package/dist/LinkButton/LinkButton.cjs +32 -0
  257. package/dist/LinkButton/LinkButton.js +99 -0
  258. package/dist/LinkButton/index.cjs +1 -0
  259. package/dist/LinkButton/index.js +4 -0
  260. package/dist/LiveRegions/LiveRegions.cjs +1 -0
  261. package/dist/LiveRegions/LiveRegions.js +22 -0
  262. package/dist/LiveRegions/StoryComponent.cjs +1 -0
  263. package/dist/LiveRegions/StoryComponent.js +18 -0
  264. package/dist/LiveRegions/constants.cjs +1 -0
  265. package/dist/LiveRegions/constants.js +8 -0
  266. package/dist/LiveRegions/index.cjs +1 -0
  267. package/dist/LiveRegions/index.js +4 -0
  268. package/dist/LiveRegions/useNotifyAT.cjs +1 -0
  269. package/dist/LiveRegions/useNotifyAT.js +17 -0
  270. package/dist/Loader/Loader.cjs +12 -0
  271. package/dist/Loader/Loader.js +37 -0
  272. package/dist/Loader/assets/loader.cjs +1 -0
  273. package/dist/Loader/assets/loader.js +4 -0
  274. package/dist/Loader/index.cjs +1 -0
  275. package/dist/Loader/index.js +4 -0
  276. package/dist/Main/Main.cjs +6 -0
  277. package/dist/Main/Main.js +26 -0
  278. package/dist/Main/SkipToContent.cjs +12 -0
  279. package/dist/Main/SkipToContent.js +29 -0
  280. package/dist/Main/index.cjs +1 -0
  281. package/dist/Main/index.js +6 -0
  282. package/dist/MainNav/MainNav.cjs +9 -0
  283. package/dist/MainNav/MainNav.js +30 -0
  284. package/dist/MainNav/MainNavContext.cjs +1 -0
  285. package/dist/MainNav/MainNavContext.js +6 -0
  286. package/dist/MainNav/NavBrand.cjs +12 -0
  287. package/dist/MainNav/NavBrand.js +67 -0
  288. package/dist/MainNav/NavCondense.cjs +20 -0
  289. package/dist/MainNav/NavCondense.js +45 -0
  290. package/dist/MainNav/NavLink.cjs +69 -0
  291. package/dist/MainNav/NavLink.js +119 -0
  292. package/dist/MainNav/NavSection.cjs +1 -0
  293. package/dist/MainNav/NavSection.js +49 -0
  294. package/dist/MainNav/NavSections.cjs +1 -0
  295. package/dist/MainNav/NavSections.js +21 -0
  296. package/dist/MainNav/NavUser.cjs +7 -0
  297. package/dist/MainNav/NavUser.js +54 -0
  298. package/dist/MainNav/index.cjs +1 -0
  299. package/dist/MainNav/index.js +16 -0
  300. package/dist/ModalLayout/ModalBody.cjs +4 -0
  301. package/dist/ModalLayout/ModalBody.js +13 -0
  302. package/dist/ModalLayout/ModalContext.cjs +1 -0
  303. package/dist/ModalLayout/ModalContext.js +6 -0
  304. package/dist/ModalLayout/ModalFooter.cjs +8 -0
  305. package/dist/ModalLayout/ModalFooter.js +32 -0
  306. package/dist/ModalLayout/ModalHeader.cjs +4 -0
  307. package/dist/ModalLayout/ModalHeader.js +37 -0
  308. package/dist/ModalLayout/ModalLayout.cjs +12 -0
  309. package/dist/ModalLayout/ModalLayout.js +42 -0
  310. package/dist/ModalLayout/index.cjs +1 -0
  311. package/dist/ModalLayout/index.js +10 -0
  312. package/dist/NumberInput/NumberInput.cjs +12 -0
  313. package/dist/NumberInput/NumberInput.js +179 -0
  314. package/dist/NumberInput/index.cjs +1 -0
  315. package/dist/NumberInput/index.js +4 -0
  316. package/dist/Pagination/Pagination.cjs +5 -0
  317. package/dist/Pagination/Pagination.js +30 -0
  318. package/dist/Pagination/PaginationContext.cjs +1 -0
  319. package/dist/Pagination/PaginationContext.js +6 -0
  320. package/dist/Pagination/assets/next.cjs +1 -0
  321. package/dist/Pagination/assets/next.js +4 -0
  322. package/dist/Pagination/assets/previous.cjs +1 -0
  323. package/dist/Pagination/assets/previous.js +4 -0
  324. package/dist/Pagination/components.cjs +36 -0
  325. package/dist/Pagination/components.js +111 -0
  326. package/dist/Pagination/index.cjs +1 -0
  327. package/dist/Pagination/index.js +9 -0
  328. package/dist/Popover/Popover.cjs +26 -0
  329. package/dist/Popover/Popover.js +122 -0
  330. package/dist/Popover/index.cjs +1 -0
  331. package/dist/Popover/index.js +5 -0
  332. package/dist/Portal/Portal.cjs +1 -0
  333. package/dist/Portal/Portal.js +15 -0
  334. package/dist/Portal/index.cjs +1 -0
  335. package/dist/Portal/index.js +4 -0
  336. package/dist/ProgressBar/ProgressBar.cjs +11 -0
  337. package/dist/ProgressBar/ProgressBar.js +44 -0
  338. package/dist/ProgressBar/index.cjs +1 -0
  339. package/dist/ProgressBar/index.js +4 -0
  340. package/dist/Radio/Radio.cjs +4 -0
  341. package/dist/Radio/Radio.js +24 -0
  342. package/dist/Radio/index.cjs +1 -0
  343. package/dist/Radio/index.js +6 -0
  344. package/dist/RawTable/RawCell.cjs +1 -0
  345. package/dist/RawTable/RawCell.js +80 -0
  346. package/dist/RawTable/RawTable.cjs +1 -0
  347. package/dist/RawTable/RawTable.js +73 -0
  348. package/dist/RawTable/RawTableContext.cjs +1 -0
  349. package/dist/RawTable/RawTableContext.js +12 -0
  350. package/dist/RawTable/RawTbody.cjs +1 -0
  351. package/dist/RawTable/RawTbody.js +16 -0
  352. package/dist/RawTable/RawThead.cjs +1 -0
  353. package/dist/RawTable/RawThead.js +14 -0
  354. package/dist/RawTable/RawTr.cjs +1 -0
  355. package/dist/RawTable/RawTr.js +19 -0
  356. package/dist/RawTable/focusFocusable.cjs +1 -0
  357. package/dist/RawTable/focusFocusable.js +7 -0
  358. package/dist/RawTable/index.cjs +1 -0
  359. package/dist/RawTable/index.js +13 -0
  360. package/dist/Searchbar/SearchForm.cjs +1 -0
  361. package/dist/Searchbar/SearchForm.js +8 -0
  362. package/dist/Searchbar/Searchbar.cjs +29 -0
  363. package/dist/Searchbar/Searchbar.js +79 -0
  364. package/dist/Searchbar/index.cjs +1 -0
  365. package/dist/Searchbar/index.js +6 -0
  366. package/dist/Select/MultiSelectNested.cjs +1 -0
  367. package/dist/Select/MultiSelectNested.js +26 -0
  368. package/dist/Select/OptGroup.cjs +1 -0
  369. package/dist/Select/OptGroup.js +20 -0
  370. package/dist/Select/Option.cjs +49 -0
  371. package/dist/Select/Option.js +104 -0
  372. package/dist/Select/Select.cjs +3 -0
  373. package/dist/Select/Select.js +232 -0
  374. package/dist/Select/SelectButton.cjs +19 -0
  375. package/dist/Select/SelectButton.js +64 -0
  376. package/dist/Select/SelectList.cjs +1 -0
  377. package/dist/Select/SelectList.js +81 -0
  378. package/dist/Select/SelectTags.cjs +8 -0
  379. package/dist/Select/SelectTags.js +36 -0
  380. package/dist/Select/components.cjs +39 -0
  381. package/dist/Select/components.js +48 -0
  382. package/dist/Select/constants.cjs +1 -0
  383. package/dist/Select/constants.js +8 -0
  384. package/dist/Select/hooks/useButtonRef.cjs +1 -0
  385. package/dist/Select/hooks/useButtonRef.js +13 -0
  386. package/dist/Select/hooks/useListRef.cjs +1 -0
  387. package/dist/Select/hooks/useListRef.js +18 -0
  388. package/dist/Select/index.cjs +1 -0
  389. package/dist/Select/index.js +12 -0
  390. package/dist/Select/utils.cjs +1 -0
  391. package/dist/Select/utils.js +17 -0
  392. package/dist/SimpleMenu/SimpleMenu.cjs +19 -0
  393. package/dist/SimpleMenu/SimpleMenu.js +164 -0
  394. package/dist/SimpleMenu/index.cjs +1 -0
  395. package/dist/SimpleMenu/index.js +5 -0
  396. package/dist/SimpleMenu/utils.cjs +12 -0
  397. package/dist/SimpleMenu/utils.js +15 -0
  398. package/dist/Stack/Stack.cjs +19 -0
  399. package/dist/Stack/Stack.js +55 -0
  400. package/dist/Stack/index.cjs +1 -0
  401. package/dist/Stack/index.js +4 -0
  402. package/dist/Status/Status.cjs +11 -0
  403. package/dist/Status/Status.js +46 -0
  404. package/dist/Status/index.cjs +1 -0
  405. package/dist/Status/index.js +4 -0
  406. package/dist/SubNav/SubNav.cjs +10 -0
  407. package/dist/SubNav/SubNav.js +26 -0
  408. package/dist/SubNav/SubNavHeader.cjs +4 -0
  409. package/dist/SubNav/SubNavHeader.js +98 -0
  410. package/dist/SubNav/SubNavLink.cjs +39 -0
  411. package/dist/SubNav/SubNavLink.js +80 -0
  412. package/dist/SubNav/SubNavLinkSection.cjs +19 -0
  413. package/dist/SubNav/SubNavLinkSection.js +68 -0
  414. package/dist/SubNav/SubNavSection.cjs +8 -0
  415. package/dist/SubNav/SubNavSection.js +63 -0
  416. package/dist/SubNav/SubNavSectionLabel.cjs +9 -0
  417. package/dist/SubNav/SubNavSectionLabel.js +53 -0
  418. package/dist/SubNav/SubNavSections.cjs +1 -0
  419. package/dist/SubNav/SubNavSections.js +20 -0
  420. package/dist/SubNav/index.cjs +1 -0
  421. package/dist/SubNav/index.js +15 -0
  422. package/dist/Switch/Switch.cjs +42 -0
  423. package/dist/Switch/Switch.js +80 -0
  424. package/dist/Switch/index.cjs +1 -0
  425. package/dist/Switch/index.js +4 -0
  426. package/dist/Table/Cell.cjs +17 -0
  427. package/dist/Table/Cell.js +39 -0
  428. package/dist/Table/TFooter.cjs +22 -0
  429. package/dist/Table/TFooter.js +50 -0
  430. package/dist/Table/Table.cjs +36 -0
  431. package/dist/Table/Table.js +80 -0
  432. package/dist/Table/Tbody.cjs +5 -0
  433. package/dist/Table/Tbody.js +13 -0
  434. package/dist/Table/Thead.cjs +3 -0
  435. package/dist/Table/Thead.js +11 -0
  436. package/dist/Table/Tr.cjs +20 -0
  437. package/dist/Table/Tr.js +28 -0
  438. package/dist/Table/index.cjs +1 -0
  439. package/dist/Table/index.js +15 -0
  440. package/dist/Tabs/TabGroup.cjs +1 -0
  441. package/dist/Tabs/TabGroup.js +36 -0
  442. package/dist/Tabs/TabPanels.cjs +1 -0
  443. package/dist/Tabs/TabPanels.js +32 -0
  444. package/dist/Tabs/Tabs.cjs +5 -0
  445. package/dist/Tabs/Tabs.js +134 -0
  446. package/dist/Tabs/TabsContext.cjs +1 -0
  447. package/dist/Tabs/TabsContext.js +6 -0
  448. package/dist/Tabs/components.cjs +43 -0
  449. package/dist/Tabs/components.js +52 -0
  450. package/dist/Tabs/index.cjs +1 -0
  451. package/dist/Tabs/index.js +10 -0
  452. package/dist/Tabs/useTabsFocus.cjs +1 -0
  453. package/dist/Tabs/useTabsFocus.js +16 -0
  454. package/dist/Tag/Tag.cjs +14 -0
  455. package/dist/Tag/Tag.js +60 -0
  456. package/dist/Tag/index.cjs +1 -0
  457. package/dist/Tag/index.js +4 -0
  458. package/dist/TextButton/TextButton.cjs +32 -0
  459. package/dist/TextButton/TextButton.js +82 -0
  460. package/dist/TextButton/index.cjs +1 -0
  461. package/dist/TextButton/index.js +4 -0
  462. package/dist/TextInput/TextInput.cjs +1 -0
  463. package/dist/TextInput/TextInput.js +69 -0
  464. package/dist/TextInput/index.cjs +1 -0
  465. package/dist/TextInput/index.js +4 -0
  466. package/dist/Textarea/Textarea.cjs +15 -0
  467. package/dist/Textarea/Textarea.js +74 -0
  468. package/dist/Textarea/TextareaInput.cjs +30 -0
  469. package/dist/Textarea/TextareaInput.js +68 -0
  470. package/dist/Textarea/index.cjs +1 -0
  471. package/dist/Textarea/index.js +4 -0
  472. package/dist/ThemeProvider/ThemeProvider.cjs +173 -0
  473. package/dist/ThemeProvider/ThemeProvider.js +186 -0
  474. package/dist/ThemeProvider/hooks.cjs +1 -0
  475. package/dist/ThemeProvider/hooks.js +5 -0
  476. package/dist/ThemeProvider/index.cjs +1 -0
  477. package/dist/ThemeProvider/index.js +6 -0
  478. package/dist/TimePicker/TimePicker.cjs +12 -0
  479. package/dist/TimePicker/TimePicker.js +104 -0
  480. package/dist/TimePicker/index.cjs +1 -0
  481. package/dist/TimePicker/index.js +4 -0
  482. package/dist/ToggleCheckbox/ToggleCheckbox.cjs +36 -0
  483. package/dist/ToggleCheckbox/ToggleCheckbox.js +119 -0
  484. package/dist/ToggleCheckbox/index.cjs +1 -0
  485. package/dist/ToggleCheckbox/index.js +4 -0
  486. package/dist/ToggleInput/ToggleInput.cjs +6 -0
  487. package/dist/ToggleInput/ToggleInput.js +90 -0
  488. package/dist/ToggleInput/index.cjs +1 -0
  489. package/dist/ToggleInput/index.js +4 -0
  490. package/dist/Tooltip/Tooltip.cjs +6 -0
  491. package/dist/Tooltip/Tooltip.js +60 -0
  492. package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -0
  493. package/dist/Tooltip/hooks/useTooltipHandlers.js +22 -0
  494. package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -0
  495. package/dist/Tooltip/hooks/useTooltipLayout.js +14 -0
  496. package/dist/Tooltip/index.cjs +1 -0
  497. package/dist/Tooltip/index.js +4 -0
  498. package/dist/Tooltip/utils/positionTooltip.cjs +1 -0
  499. package/dist/Tooltip/utils/positionTooltip.js +27 -0
  500. package/dist/Typography/Typography.cjs +13 -0
  501. package/dist/Typography/Typography.js +26 -0
  502. package/dist/Typography/TypographyProps.cjs +1 -0
  503. package/dist/Typography/TypographyProps.js +31 -0
  504. package/dist/Typography/constants.cjs +1 -0
  505. package/dist/Typography/constants.js +11 -0
  506. package/dist/Typography/index.cjs +1 -0
  507. package/dist/Typography/index.js +4 -0
  508. package/dist/Typography/utils.cjs +34 -0
  509. package/dist/Typography/utils.js +59 -0
  510. package/dist/VisuallyHidden/VisuallyHidden.cjs +10 -0
  511. package/dist/VisuallyHidden/VisuallyHidden.js +14 -0
  512. package/dist/VisuallyHidden/index.cjs +1 -0
  513. package/dist/VisuallyHidden/index.js +4 -0
  514. package/dist/helpers/escapeSelector.cjs +1 -0
  515. package/dist/helpers/escapeSelector.js +4 -0
  516. package/dist/helpers/genId.cjs +1 -0
  517. package/dist/helpers/genId.js +5 -0
  518. package/dist/helpers/getDefaultLocale.cjs +1 -0
  519. package/dist/helpers/getDefaultLocale.js +4 -0
  520. package/dist/helpers/getFocusableNodes.cjs +1 -0
  521. package/dist/helpers/getFocusableNodes.js +7 -0
  522. package/dist/helpers/handleResponsiveValues.cjs +5 -0
  523. package/dist/helpers/handleResponsiveValues.js +19 -0
  524. package/dist/helpers/keyboardKeys.cjs +1 -0
  525. package/dist/helpers/keyboardKeys.js +20 -0
  526. package/dist/helpers/setOpacity.cjs +1 -0
  527. package/dist/helpers/setOpacity.js +4 -0
  528. package/dist/helpers/setTabIndexOnFirstItem.cjs +1 -0
  529. package/dist/helpers/setTabIndexOnFirstItem.js +7 -0
  530. package/dist/helpers/useElementOnScreen.cjs +1 -0
  531. package/dist/helpers/useElementOnScreen.js +15 -0
  532. package/dist/helpers/useId.cjs +1 -0
  533. package/dist/helpers/useId.js +6 -0
  534. package/dist/helpers/useIntersection.cjs +1 -0
  535. package/dist/helpers/useIntersection.js +21 -0
  536. package/dist/helpers/useLockScroll.cjs +1 -0
  537. package/dist/helpers/useLockScroll.js +9 -0
  538. package/dist/helpers/usePrevious.cjs +1 -0
  539. package/dist/helpers/usePrevious.js +10 -0
  540. package/dist/helpers/useResizeObserver.cjs +1 -0
  541. package/dist/helpers/useResizeObserver.js +14 -0
  542. package/dist/index.cjs +1 -0
  543. package/dist/index.js +290 -0
  544. package/dist/themes/ColorButton.cjs +3 -0
  545. package/dist/themes/ColorButton.js +25 -0
  546. package/dist/themes/colors.cjs +1 -0
  547. package/dist/themes/colors.js +49 -0
  548. package/dist/themes/common-theme.cjs +1 -0
  549. package/dist/themes/common-theme.js +21 -0
  550. package/dist/themes/darkTheme/dark-colors.cjs +1 -0
  551. package/dist/themes/darkTheme/dark-colors.js +52 -0
  552. package/dist/themes/darkTheme/dark-shadows.cjs +1 -0
  553. package/dist/themes/darkTheme/dark-shadows.js +12 -0
  554. package/dist/themes/darkTheme/index.cjs +1 -0
  555. package/dist/themes/darkTheme/index.js +11 -0
  556. package/dist/themes/extendTheme.cjs +13 -0
  557. package/dist/themes/extendTheme.js +36 -0
  558. package/dist/themes/index.cjs +1 -0
  559. package/dist/themes/index.js +12 -0
  560. package/dist/themes/lightTheme/index.cjs +1 -0
  561. package/dist/themes/lightTheme/index.js +11 -0
  562. package/dist/themes/lightTheme/light-colors.cjs +1 -0
  563. package/dist/themes/lightTheme/light-colors.js +52 -0
  564. package/dist/themes/lightTheme/light-shadows.cjs +1 -0
  565. package/dist/themes/lightTheme/light-shadows.js +12 -0
  566. package/dist/themes/sizes.cjs +1 -0
  567. package/dist/themes/sizes.js +18 -0
  568. package/dist/themes/utils.cjs +41 -0
  569. package/dist/themes/utils.js +46 -0
  570. package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +9 -0
  571. package/dist/v2/Breadcrumbs/Breadcrumbs.js +38 -0
  572. package/dist/v2/Breadcrumbs/Crumb.cjs +1 -0
  573. package/dist/v2/Breadcrumbs/Crumb.js +27 -0
  574. package/dist/v2/Breadcrumbs/CrumbLink.cjs +14 -0
  575. package/dist/v2/Breadcrumbs/CrumbLink.js +31 -0
  576. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +8 -0
  577. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +28 -0
  578. package/dist/v2/Breadcrumbs/Divider.cjs +1 -0
  579. package/dist/v2/Breadcrumbs/Divider.js +15 -0
  580. package/dist/v2/Breadcrumbs/index.cjs +1 -0
  581. package/dist/v2/Breadcrumbs/index.js +10 -0
  582. package/dist/v2/Link/Link.cjs +23 -0
  583. package/dist/v2/Link/Link.js +69 -0
  584. package/dist/v2/Link/index.cjs +1 -0
  585. package/dist/v2/Link/index.js +4 -0
  586. package/dist/v2/LinkButton/LinkButton.cjs +33 -0
  587. package/dist/v2/LinkButton/LinkButton.js +95 -0
  588. package/dist/v2/LinkButton/index.cjs +1 -0
  589. package/dist/v2/LinkButton/index.js +4 -0
  590. package/dist/v2/MainNav/MainNav.cjs +9 -0
  591. package/dist/v2/MainNav/MainNav.js +30 -0
  592. package/dist/v2/MainNav/MainNavContext.cjs +1 -0
  593. package/dist/v2/MainNav/MainNavContext.js +6 -0
  594. package/dist/v2/MainNav/NavBrand.cjs +12 -0
  595. package/dist/v2/MainNav/NavBrand.js +68 -0
  596. package/dist/v2/MainNav/NavCondense.cjs +20 -0
  597. package/dist/v2/MainNav/NavCondense.js +45 -0
  598. package/dist/v2/MainNav/NavLink.cjs +69 -0
  599. package/dist/v2/MainNav/NavLink.js +122 -0
  600. package/dist/v2/MainNav/NavSection.cjs +1 -0
  601. package/dist/v2/MainNav/NavSection.js +49 -0
  602. package/dist/v2/MainNav/NavSections.cjs +1 -0
  603. package/dist/v2/MainNav/NavSections.js +21 -0
  604. package/dist/v2/MainNav/NavUser.cjs +7 -0
  605. package/dist/v2/MainNav/NavUser.js +54 -0
  606. package/dist/v2/MainNav/index.cjs +1 -0
  607. package/dist/v2/MainNav/index.js +16 -0
  608. package/dist/v2/Pagination/Pagination.cjs +5 -0
  609. package/dist/v2/Pagination/Pagination.js +30 -0
  610. package/dist/v2/Pagination/PaginationContext.cjs +1 -0
  611. package/dist/v2/Pagination/PaginationContext.js +6 -0
  612. package/dist/v2/Pagination/assets/next.cjs +1 -0
  613. package/dist/v2/Pagination/assets/next.js +4 -0
  614. package/dist/v2/Pagination/assets/previous.cjs +1 -0
  615. package/dist/v2/Pagination/assets/previous.js +4 -0
  616. package/dist/v2/Pagination/components.cjs +36 -0
  617. package/dist/v2/Pagination/components.js +111 -0
  618. package/dist/v2/Pagination/index.cjs +1 -0
  619. package/dist/v2/Pagination/index.js +9 -0
  620. package/dist/v2/SimpleMenu/SimpleMenu.cjs +19 -0
  621. package/dist/v2/SimpleMenu/SimpleMenu.js +164 -0
  622. package/dist/v2/SimpleMenu/index.cjs +1 -0
  623. package/dist/v2/SimpleMenu/index.js +5 -0
  624. package/dist/v2/SimpleMenu/utils.cjs +12 -0
  625. package/dist/v2/SimpleMenu/utils.js +15 -0
  626. package/dist/v2/SubNav/SubNav.cjs +10 -0
  627. package/dist/v2/SubNav/SubNav.js +26 -0
  628. package/dist/v2/SubNav/SubNavHeader.cjs +4 -0
  629. package/dist/v2/SubNav/SubNavHeader.js +98 -0
  630. package/dist/v2/SubNav/SubNavLink.cjs +39 -0
  631. package/dist/v2/SubNav/SubNavLink.js +83 -0
  632. package/dist/v2/SubNav/SubNavLinkSection.cjs +19 -0
  633. package/dist/v2/SubNav/SubNavLinkSection.js +68 -0
  634. package/dist/v2/SubNav/SubNavSection.cjs +8 -0
  635. package/dist/v2/SubNav/SubNavSection.js +63 -0
  636. package/dist/v2/SubNav/SubNavSectionLabel.cjs +9 -0
  637. package/dist/v2/SubNav/SubNavSectionLabel.js +53 -0
  638. package/dist/v2/SubNav/SubNavSections.cjs +1 -0
  639. package/dist/v2/SubNav/SubNavSections.js +20 -0
  640. package/dist/v2/SubNav/index.cjs +1 -0
  641. package/dist/v2/SubNav/index.js +15 -0
  642. package/dist/v2/index.cjs +1 -0
  643. package/dist/v2/index.js +51 -0
  644. package/package.json +23 -22
  645. package/Accordion.development.js +0 -775
  646. package/Accordion.js +0 -9
  647. package/Accordion.production.js +0 -1
  648. package/Alert.development.js +0 -562
  649. package/Alert.js +0 -9
  650. package/Alert.production.js +0 -1
  651. package/Avatar.development.js +0 -485
  652. package/Avatar.js +0 -9
  653. package/Avatar.production.js +0 -1
  654. package/Badge.development.js +0 -494
  655. package/Badge.js +0 -9
  656. package/Badge.production.js +0 -1
  657. package/BaseButton.development.js +0 -285
  658. package/BaseButton.js +0 -9
  659. package/BaseButton.production.js +0 -1
  660. package/BaseCheckbox.development.js +0 -434
  661. package/BaseCheckbox.js +0 -9
  662. package/BaseCheckbox.production.js +0 -1
  663. package/BaseLink.development.js +0 -273
  664. package/BaseLink.js +0 -9
  665. package/BaseLink.production.js +0 -1
  666. package/BaseRadio.development.js +0 -321
  667. package/BaseRadio.js +0 -9
  668. package/BaseRadio.production.js +0 -1
  669. package/Box.development.js +0 -341
  670. package/Box.js +0 -9
  671. package/Box.production.js +0 -1
  672. package/Breadcrumbs.development.js +0 -518
  673. package/Breadcrumbs.js +0 -9
  674. package/Breadcrumbs.production.js +0 -1
  675. package/Button.development.js +0 -573
  676. package/Button.js +0 -9
  677. package/Button.production.js +0 -1
  678. package/Card.development.js +0 -746
  679. package/Card.js +0 -9
  680. package/Card.production.js +0 -1
  681. package/CarouselInput.development.js +0 -898
  682. package/CarouselInput.js +0 -9
  683. package/CarouselInput.production.js +0 -1
  684. package/Checkbox.development.js +0 -722
  685. package/Checkbox.js +0 -9
  686. package/Checkbox.production.js +0 -1
  687. package/Combobox.development.js +0 -934
  688. package/Combobox.js +0 -9
  689. package/Combobox.production.js +0 -1
  690. package/DatePicker.development.js +0 -1323
  691. package/DatePicker.js +0 -9
  692. package/DatePicker.production.js +0 -1
  693. package/DateTimePicker.development.js +0 -1622
  694. package/DateTimePicker.js +0 -9
  695. package/DateTimePicker.production.js +0 -1
  696. package/Dialog.development.js +0 -741
  697. package/Dialog.js +0 -9
  698. package/Dialog.production.js +0 -1
  699. package/DismissibleLayer.development.js +0 -218
  700. package/DismissibleLayer.js +0 -9
  701. package/DismissibleLayer.production.js +0 -1
  702. package/Divider.development.js +0 -398
  703. package/Divider.js +0 -9
  704. package/Divider.production.js +0 -1
  705. package/EmptyStateLayout.development.js +0 -425
  706. package/EmptyStateLayout.js +0 -9
  707. package/EmptyStateLayout.production.js +0 -1
  708. package/Field.development.js +0 -614
  709. package/Field.js +0 -9
  710. package/Field.production.js +0 -1
  711. package/Flex.development.js +0 -377
  712. package/Flex.js +0 -9
  713. package/Flex.production.js +0 -1
  714. package/FocusTrap.development.js +0 -341
  715. package/FocusTrap.js +0 -9
  716. package/FocusTrap.production.js +0 -1
  717. package/Grid.development.js +0 -422
  718. package/Grid.js +0 -9
  719. package/Grid.production.js +0 -1
  720. package/Icon.development.js +0 -376
  721. package/Icon.js +0 -9
  722. package/Icon.production.js +0 -1
  723. package/IconButton.development.js +0 -684
  724. package/IconButton.js +0 -9
  725. package/IconButton.production.js +0 -1
  726. package/KeyboardNavigable.development.js +0 -454
  727. package/KeyboardNavigable.js +0 -9
  728. package/KeyboardNavigable.production.js +0 -1
  729. package/Layout.development.js +0 -626
  730. package/Layout.js +0 -9
  731. package/Layout.production.js +0 -1
  732. package/Link.development.js +0 -492
  733. package/Link.js +0 -9
  734. package/Link.production.js +0 -1
  735. package/LinkButton.development.js +0 -573
  736. package/LinkButton.js +0 -9
  737. package/LinkButton.production.js +0 -1
  738. package/LiveRegions.development.js +0 -147
  739. package/LiveRegions.js +0 -9
  740. package/LiveRegions.production.js +0 -1
  741. package/Loader.development.js +0 -309
  742. package/Loader.js +0 -9
  743. package/Loader.production.js +0 -1
  744. package/Main.development.js +0 -410
  745. package/Main.js +0 -9
  746. package/Main.production.js +0 -1
  747. package/MainNav.development.js +0 -957
  748. package/MainNav.js +0 -9
  749. package/MainNav.production.js +0 -1
  750. package/ModalLayout.development.js +0 -895
  751. package/ModalLayout.js +0 -9
  752. package/ModalLayout.production.js +0 -1
  753. package/NumberInput.development.js +0 -733
  754. package/NumberInput.js +0 -9
  755. package/NumberInput.production.js +0 -1
  756. package/Pagination.development.js +0 -587
  757. package/Pagination.js +0 -9
  758. package/Pagination.production.js +0 -1
  759. package/Popover.development.js +0 -481
  760. package/Popover.js +0 -9
  761. package/Popover.production.js +0 -1
  762. package/Portal.development.js +0 -212
  763. package/Portal.js +0 -9
  764. package/Portal.production.js +0 -1
  765. package/ProgressBar.development.js +0 -273
  766. package/ProgressBar.js +0 -9
  767. package/ProgressBar.production.js +0 -1
  768. package/Radio.development.js +0 -518
  769. package/Radio.js +0 -9
  770. package/Radio.production.js +0 -1
  771. package/RawTable.development.js +0 -549
  772. package/RawTable.js +0 -9
  773. package/RawTable.production.js +0 -1
  774. package/Searchbar.development.js +0 -696
  775. package/Searchbar.js +0 -9
  776. package/Searchbar.production.js +0 -1
  777. package/Select.development.js +0 -1063
  778. package/Select.js +0 -9
  779. package/Select.production.js +0 -1
  780. package/SimpleMenu.development.js +0 -821
  781. package/SimpleMenu.js +0 -9
  782. package/SimpleMenu.production.js +0 -1
  783. package/Stack.development.js +0 -434
  784. package/Stack.js +0 -9
  785. package/Stack.production.js +0 -1
  786. package/Status.development.js +0 -494
  787. package/Status.js +0 -9
  788. package/Status.production.js +0 -1
  789. package/SubNav.development.js +0 -1123
  790. package/SubNav.js +0 -9
  791. package/SubNav.production.js +0 -1
  792. package/Switch.development.js +0 -434
  793. package/Switch.js +0 -9
  794. package/Switch.production.js +0 -1
  795. package/Table.development.js +0 -741
  796. package/Table.js +0 -9
  797. package/Table.production.js +0 -1
  798. package/Tabs.development.js +0 -590
  799. package/Tabs.js +0 -9
  800. package/Tabs.production.js +0 -1
  801. package/Tag.development.js +0 -494
  802. package/Tag.js +0 -9
  803. package/Tag.production.js +0 -1
  804. package/TextButton.development.js +0 -517
  805. package/TextButton.js +0 -9
  806. package/TextButton.production.js +0 -1
  807. package/TextInput.development.js +0 -662
  808. package/TextInput.js +0 -9
  809. package/TextInput.production.js +0 -1
  810. package/Textarea.development.js +0 -674
  811. package/Textarea.js +0 -9
  812. package/Textarea.production.js +0 -1
  813. package/ThemeProvider.development.js +0 -300
  814. package/ThemeProvider.js +0 -9
  815. package/ThemeProvider.production.js +0 -1
  816. package/TimePicker.development.js +0 -1098
  817. package/TimePicker.js +0 -9
  818. package/TimePicker.production.js +0 -1
  819. package/ToggleCheckbox.development.js +0 -542
  820. package/ToggleCheckbox.js +0 -9
  821. package/ToggleCheckbox.production.js +0 -1
  822. package/ToggleInput.development.js +0 -745
  823. package/ToggleInput.js +0 -9
  824. package/ToggleInput.production.js +0 -1
  825. package/Tooltip.development.js +0 -588
  826. package/Tooltip.js +0 -9
  827. package/Tooltip.production.js +0 -1
  828. package/Typography.development.js +0 -276
  829. package/Typography.js +0 -9
  830. package/Typography.production.js +0 -1
  831. package/VisuallyHidden.development.js +0 -146
  832. package/VisuallyHidden.js +0 -9
  833. package/VisuallyHidden.production.js +0 -1
  834. package/index.development.js +0 -4338
  835. package/index.js +0 -9
  836. package/index.production.js +0 -1
  837. package/themes.development.js +0 -254
  838. package/themes.js +0 -9
  839. package/themes.production.js +0 -1
  840. package/v2/Breadcrumbs.development.js +0 -906
  841. package/v2/Breadcrumbs.js +0 -9
  842. package/v2/Breadcrumbs.production.js +0 -1
  843. package/v2/Link.development.js +0 -505
  844. package/v2/Link.js +0 -9
  845. package/v2/Link.production.js +0 -1
  846. package/v2/LinkButton.development.js +0 -586
  847. package/v2/LinkButton.js +0 -9
  848. package/v2/LinkButton.production.js +0 -1
  849. package/v2/MainNav.development.js +0 -970
  850. package/v2/MainNav.js +0 -9
  851. package/v2/MainNav.production.js +0 -1
  852. package/v2/Pagination.development.js +0 -600
  853. package/v2/Pagination.js +0 -9
  854. package/v2/Pagination.production.js +0 -1
  855. package/v2/SimpleMenu.development.js +0 -834
  856. package/v2/SimpleMenu.js +0 -9
  857. package/v2/SimpleMenu.production.js +0 -1
  858. package/v2/SubNav.development.js +0 -1136
  859. package/v2/SubNav.js +0 -9
  860. package/v2/SubNav.production.js +0 -1
  861. package/v2/index.development.js +0 -1740
  862. package/v2/index.js +0 -9
  863. package/v2/index.production.js +0 -1
  864. package/v2/package.json +0 -81
package/Popover.js DELETED
@@ -1,9 +0,0 @@
1
-
2
- 'use strict';
3
-
4
- if (process.env.NODE_ENV === "production") {
5
- module.exports = require("./Popover.production.js");
6
- } else {
7
- module.exports = require("./Popover.development.js");
8
- }
9
-
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("styled-components"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","styled-components","react-dom"],e):"object"==typeof exports?exports.strapiDs=e(require("react"),require("styled-components"),require("react-dom")):t.strapiDs=e(t.react,t["styled-components"],t["react-dom"])}(this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t,e,n){t.exports=n(24)()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(30);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"Box",(function(){return y}));var r,o=n(3),i=n.n(o),a=n(2),c=n.n(a),s=n(7),u=n(1),l=n.n(u),f=n(0),d=n.n(f),p=function(t){return l.a.createElement("div",t)},h={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},m={_hover:d.a.func,background:d.a.string,basis:d.a.oneOfType([d.a.string,d.a.string]),borderColor:d.a.string,children:d.a.oneOfType([d.a.node,d.a.string]),color:d.a.string,flex:d.a.oneOfType([d.a.string,d.a.string]),grow:d.a.oneOfType([d.a.string,d.a.string]),hasRadius:d.a.bool,hiddenS:d.a.bool,hiddenXS:d.a.bool,padding:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingBottom:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingLeft:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingRight:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingTop:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),shadow:d.a.string,shrink:d.a.oneOfType([d.a.string,d.a.string])};p.defaultProps=h,p.propTypes=m;var g={color:!0},y=c.a.div.withConfig({shouldForwardProp:function(t,e){return!g[t]&&e(t)}})(r||(r=i()(["\n // Font\n font-size: ",";\n\n // Colors\n background: ",";\n color: ",";\n\n // Spaces\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n // Responsive hiding\n ","\n ","\n \n\n // Borders\n border-radius: ",";\n border-style: ",";\n border-width: ",";\n border-color: ",";\n border: ",";\n\n // Shadows\n box-shadow: ",";\n\n // Handlers\n pointer-events: ",";\n &:hover {\n ","\n }\n\n // Display\n display: ",";\n\n // Position\n position: ",";\n left: ",";\n right: ",";\n top: ",";\n bottom: ",";\n z-index: ",";\n overflow: ",";\n cursor: ",";\n\n // Size\n width: ",";\n max-width: ",";\n min-width: ",";\n height: ",";\n max-height: ",";\n min-height: ",";\n\n // Animation\n transition: ",";\n transform: ",";\n animation: ",";\n\n //Flexbox children props\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: ",";\n flex: ",";\n\n // Text\n text-align: ",";\n text-transform: ",";\n line-height: ",";\n\n // Cursor\n cursor: ",";\n"])),(function(t){var e=t.fontSize;return t.theme.fontSizes[e]||e}),(function(t){var e=t.theme,n=t.background;return e.colors[n]}),(function(t){var e=t.theme,n=t.color;return e.colors[n]}),(function(t){var e=t.theme,n=t.padding;return Object(s.a)("padding",n,e)}),(function(t){var e=t.theme,n=t.paddingTop;return Object(s.a)("padding-top",n,e)}),(function(t){var e=t.theme,n=t.paddingRight;return Object(s.a)("padding-right",n,e)}),(function(t){var e=t.theme,n=t.paddingBottom;return Object(s.a)("padding-bottom",n,e)}),(function(t){var e=t.theme,n=t.paddingLeft;return Object(s.a)("padding-left",n,e)}),(function(t){var e=t.theme,n=t.marginLeft;return Object(s.a)("margin-left",n,e)}),(function(t){var e=t.theme,n=t.marginRight;return Object(s.a)("margin-right",n,e)}),(function(t){var e=t.theme,n=t.marginTop;return Object(s.a)("margin-top",n,e)}),(function(t){var e=t.theme,n=t.marginBottom;return Object(s.a)("margin-bottom",n,e)}),(function(t){var e=t.theme;return t.hiddenS?"".concat(e.mediaQueries.tablet," { display: none; }"):void 0}),(function(t){var e=t.theme;return t.hiddenXS?"".concat(e.mediaQueries.mobile," { display: none; }"):void 0}),(function(t){var e=t.theme,n=t.hasRadius,r=t.borderRadius;return n?e.borderRadius:r}),(function(t){return t.borderStyle}),(function(t){return t.borderWidth}),(function(t){var e=t.borderColor;return t.theme.colors[e]}),(function(t){var e=t.theme,n=t.borderColor,r=t.borderStyle,o=t.borderWidth;if(n&&!r&&!o)return"1px solid ".concat(e.colors[n])}),(function(t){var e=t.theme,n=t.shadow;return e.shadows[n]}),(function(t){return t.pointerEvents}),(function(t){var e=t._hover,n=t.theme;return e?e(n):void 0}),(function(t){return t.display}),(function(t){return t.position}),(function(t){var e=t.left;return t.theme.spaces[e]||e}),(function(t){var e=t.right;return t.theme.spaces[e]||e}),(function(t){var e=t.top;return t.theme.spaces[e]||e}),(function(t){var e=t.bottom;return t.theme.spaces[e]||e}),(function(t){return t.zIndex}),(function(t){return t.overflow}),(function(t){return t.cursor}),(function(t){var e=t.width;return t.theme.spaces[e]||e}),(function(t){var e=t.maxWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.minWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.height;return t.theme.spaces[e]||e}),(function(t){var e=t.maxHeight;return t.theme.spaces[e]||e}),(function(t){var e=t.minHeight;return t.theme.spaces[e]||e}),(function(t){return t.transition}),(function(t){return t.transform}),(function(t){return t.animation}),(function(t){return t.shrink}),(function(t){return t.grow}),(function(t){return t.basis}),(function(t){return t.flex}),(function(t){return t.textAlign}),(function(t){return t.textTransform}),(function(t){return t.lineHeight}),(function(t){return t.cursor}));y.defaultProps=h,y.propTypes=m},function(t,e,n){"use strict";var r=n(11),o=n.n(r),i=n(16),a=n.n(i);e.a=function(t,e,n){var r=e;if(Array.isArray(e)||"object"!==a()(e)||(r=[null==e?void 0:e.desktop,null==e?void 0:e.tablet,null==e?void 0:e.mobile]),void 0!==r){if(Array.isArray(r)){var i=r,c=o()(i,3),s=c[0],u=c[1],l=c[2],f="".concat(t,": ").concat(n.spaces[s],";");return void 0!==u&&(f+="".concat(n.mediaQueries.tablet,"{\n ").concat(t,": ").concat(n.spaces[u],";\n }")),void 0!==l&&(f+="".concat(n.mediaQueries.mobile,"{\n ").concat(t,": ").concat(n.spaces[l],";\n }")),f}var d=n.spaces[r]||r;return"".concat(t,": ").concat(d,";")}}},,,,function(t,e,n){var r=n(27),o=n(28),i=n(26),a=n(29);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},,,,,function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,,function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=n(25);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("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");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(23);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},,,,function(t,e){t.exports=n},function(t,e,n){"use strict";n.r(e),n.d(e,"Portal",(function(){return c}));var r=n(11),o=n.n(r),i=n(1),a=n(34),c=function(t){var e=t.children,n=Object(i.useRef)(null),r=Object(i.useState)(!1),c=o()(r,2),s=c[0],u=c[1];return Object(i.useLayoutEffect)((function(){return n.current=document.createElement("div"),n.current.setAttribute("data-react-portal","true"),document.body.appendChild(n.current),u(!0),function(){var t;null===(t=n.current)||void 0===t||t.remove()}}),[]),s&&n.current?Object(a.createPortal)(e,n.current):null}},,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"POPOVER_PLACEMENTS",(function(){return xt})),n.d(e,"Popover",(function(){return Tt}));var r=n(5),o=n.n(r),i=n(11),a=n.n(i),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(1),d=n(0),p=n.n(d),h=n(2),m=n.n(h);function g(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function b(t){return["top","bottom"].includes(g(t))?"x":"y"}function v(t){return"y"===t?"height":"width"}function x(t,e,n){let{reference:r,floating:o}=t;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,c=b(e),s=v(c),u=r[s]/2-o[s]/2,l="x"===c;let f;switch(g(e)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(y(e)){case"start":f[c]-=u*(n&&l?-1:1);break;case"end":f[c]+=u*(n&&l?-1:1)}return f}function w(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function O(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function R(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=e,h=w(p),m=c[d?"floating"===f?"reference":"floating":f],g=O(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:l,strategy:s})),y=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),strategy:s}):a[f]);return{top:g.top-y.top+h.top,bottom:y.bottom-g.bottom+h.bottom,left:g.left-y.left+h.left,right:y.right-g.right+h.right}}const T=Math.min,E=Math.max;function S(t,e,n){return E(t,T(e,n))}const _={left:"right",right:"left",bottom:"top",top:"bottom"};function j(t){return t.replace(/left|right|bottom|top/g,t=>_[t])}function P(t,e,n){void 0===n&&(n=!1);const r=y(t),o=b(t),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=j(a)),{main:a,cross:j(a)}}const A={start:"end",end:"start"};function k(t){return t.replace(/start|end/g,t=>A[t])}const L=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:s}=e,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=t,m=g(r),y=[a,...f||(m===a||!p?[j(a)]:function(t){const e=j(t);return[k(t),e,k(e)]}(a))],b=await R(e,h),v=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&v.push(b[m]),l){const{main:t,cross:e}=P(r,i,await(null==c.isRTL?void 0:c.isRTL(s.floating)));v.push(b[t],b[e])}if(x=[...x,{placement:r,overflows:v}],!v.every(t=>t<=0)){var w,O;const t=(null!=(w=null==(O=o.flip)?void 0:O.index)?w:0)+1,e=y[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let n="bottom";switch(d){case"bestFit":{var T;const t=null==(T=x.map(t=>[t,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:T[0].placement;t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const M=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,o=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),c=y(n),s="x"===b(n),u=["left","top"].includes(a)?-1:1,l=i&&s?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof h&&(p="end"===c?-1*h:h),s?{x:p*l,y:d*u}:{x:d*u,y:p*l}}(e,t);return{x:n+o.x,y:r+o.y,data:o}}}};function W(t){return"x"===t?"y":"x"}function C(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function D(t){if(null==t)return window;if(!C(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function H(t){return D(t).getComputedStyle(t)}function I(t){return C(t)?"":t?(t.nodeName||"").toLowerCase():""}function z(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function B(t){return t instanceof D(t).HTMLElement}function q(t){return t instanceof D(t).Element}function N(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof D(t).ShadowRoot||t instanceof ShadowRoot}function V(t){const{overflow:e,overflowX:n,overflowY:r}=H(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function F(t){return["table","td","th"].includes(I(t))}function X(t){const e=/firefox/i.test(z()),n=H(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function Q(){return!/^((?!chrome|android).)*safari/i.test(z())}const U=Math.min,Y=Math.max,$=Math.round;function G(t,e,n){var r,o,i,a;void 0===e&&(e=!1),void 0===n&&(n=!1);const c=t.getBoundingClientRect();let s=1,u=1;e&&B(t)&&(s=t.offsetWidth>0&&$(c.width)/t.offsetWidth||1,u=t.offsetHeight>0&&$(c.height)/t.offsetHeight||1);const l=q(t)?D(t):window,f=!Q()&&n,d=(c.left+(f&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(c.top+(f&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function J(t){return(e=t,(e instanceof D(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function K(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return G(J(t)).left+K(t).scrollLeft}function tt(t,e,n){const r=B(e),o=J(e),i=G(t,r&&function(t){const e=G(t);return $(e.width)!==t.offsetWidth||$(e.height)!==t.offsetHeight}(e),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==I(e)||V(o))&&(a=K(e)),B(e)){const t=G(e,!0);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else o&&(c.x=Z(o));return{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function et(t){return"html"===I(t)?t:t.assignedSlot||t.parentNode||(N(t)?t.host:null)||J(t)}function nt(t){return B(t)&&"fixed"!==H(t).position?function(t){let{offsetParent:e}=t,n=t,r=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let o=t.offsetParent;if("contents"===H(t).display){const e=t.hasAttribute("style"),r=t.style.display;t.style.display=H(n).display,o=t.offsetParent,t.style.display=r,e||t.removeAttribute("style")}n=t,e!==o&&(e=o,r=!0)}else if(N(n)&&n.host&&r)break;n=N(n)&&n.host||n.parentNode}return e}(t):null}function rt(t){const e=D(t);let n=nt(t);for(;n&&F(n)&&"static"===H(n).position;)n=nt(n);return n&&("html"===I(n)||"body"===I(n)&&"static"===H(n).position&&!X(n))?e:n||function(t){let e=et(t);for(N(e)&&(e=e.host);B(e)&&!["html","body"].includes(I(e));){if(X(e))return e;{const t=e.parentNode;e=N(t)?t.host:t}}return null}(t)||e}function ot(t){if(B(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=G(t);return{width:e.width,height:e.height}}function it(t,e){var n;void 0===e&&(e=[]);const r=function t(e){const n=et(e);return["html","body","#document"].includes(I(n))?e.ownerDocument.body:B(n)&&V(n)?n:t(n)}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=D(r),a=o?[i].concat(i.visualViewport||[],V(r)?r:[]):r,c=e.concat(a);return o?c:c.concat(it(a))}function at(t,e,n){return"viewport"===e?O(function(t,e){const n=D(t),r=J(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const t=Q();(t||!t&&"fixed"===e)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(t,n)):q(e)?function(t,e){const n=G(t,!1,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):O(function(t){var e;const n=J(t),r=K(t),o=null==(e=t.ownerDocument)?void 0:e.body,i=Y(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Y(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let c=-r.scrollLeft+Z(t);const s=-r.scrollTop;return"rtl"===H(o||n).direction&&(c+=Y(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(J(t)))}function ct(t){const e=it(t),n=["absolute","fixed"].includes(H(t).position)&&B(t)?rt(t):t;return q(n)?e.filter(t=>q(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&N(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==I(t)):[]}const st={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?ct(e):[].concat(n),r],a=i[0],c=i.reduce((t,n)=>{const r=at(e,n,o);return t.top=Y(r.top,t.top),t.right=U(r.right,t.right),t.bottom=U(r.bottom,t.bottom),t.left=Y(r.left,t.left),t},at(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:r}=t;const o=B(n),i=J(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==I(n)||V(i))&&(a=K(n)),B(n))){const t=G(n,!0);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{...e,x:e.x-a.scrollLeft+c.x,y:e.y-a.scrollTop+c.y}},isElement:q,getDimensions:ot,getOffsetParent:rt,getDocumentElement:J,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:tt(e,rt(n),r),floating:{...ot(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===H(t).direction};function ut(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=i&&!c,l=s||u?[...q(t)?it(t):[],...it(e)]:[];l.forEach(t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)});let f,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),q(t)&&!c&&d.observe(t),d.observe(e)}let p=c?G(t):null;return c&&function e(){const r=G(t);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n();p=r,f=requestAnimationFrame(e)}(),n(),()=>{var t;l.forEach(t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)}),null==(t=d)||t.disconnect(),d=null,c&&cancelAnimationFrame(f)}}const lt=(t,e,n)=>(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:l}=x(s,r,c),f=r,d={},p=0;for(let n=0;n<i.length;n++){const{name:h,fn:m}=i[n],{x:g,y:y,data:b,reset:v}=await m({x:u,y:l,initialPlacement:r,placement:f,strategy:o,middlewareData:d,rects:s,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,l=null!=y?y:l,d={...d,[h]:{...d[h],...b}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:l}=x(s,f,c))),n=-1)}return{x:u,y:l,placement:f,strategy:o,middlewareData:d}})(t,e,{platform:st,...n});var ft=n(34),dt="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;0!=r--;)if(!pt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!pt(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function ht(t){let{middleware:e,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===t?{}:t;const[i,a]=f.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[c,s]=f.useState(e);pt(null==c?void 0:c.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}),null==e?void 0:e.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}))||s(e);const u=f.useRef(null),l=f.useRef(null),d=f.useRef(null),p=f.useRef(i),h=function(t){const e=f.useRef(t);return dt(()=>{e.current=t}),e}(o),m=f.useCallback(()=>{u.current&&l.current&&lt(u.current,l.current,{middleware:c,placement:n,strategy:r}).then(t=>{g.current&&!pt(p.current,t)&&(p.current=t,ft.flushSync(()=>{a(t)}))})},[c,n,r]);dt(()=>{g.current&&m()},[m]);const g=f.useRef(!1);dt(()=>(g.current=!0,()=>{g.current=!1}),[]);const y=f.useCallback(()=>{if("function"==typeof d.current&&(d.current(),d.current=null),u.current&&l.current)if(h.current){const t=h.current(u.current,l.current,m);d.current=t}else m()},[m,h]),b=f.useCallback(t=>{u.current=t,y()},[y]),v=f.useCallback(t=>{l.current=t,y()},[y]),x=f.useMemo(()=>({reference:u,floating:l}),[]);return f.useMemo(()=>({...i,update:m,refs:x,reference:b,floating:v}),[i,m,x,b,v])}var mt,gt,yt=n(6),bt=n(35),vt=["source","children","spacing","fullWidth","placement","onReachEnd","intersectionId","centered"],xt=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],wt=m()(yt.Box)(mt||(mt=l()(["\n box-shadow: ",";\n z-index: 4;\n border: 1px solid ",";\n background: ",";\n"])),(function(t){return t.theme.shadows.filterShadow}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.colors.neutral0})),Ot=m()(yt.Box)(gt||(gt=l()(["\n // 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list\n max-height: ","rem;\n overflow-y: auto;\n overflow-x: hidden;\n\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: ",";\n margin-right: 10px;\n }\n"])),15,(function(t){return t.theme.colors.neutral0}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.borderRadius})),Rt=function(t){var e,n,r,i,c,u,l,d=t.source,p=t.children,h=t.spacing,m=t.fullWidth,y=t.placement,v=t.onReachEnd,x=t.intersectionId,w=t.centered,O=s()(t,vt),T=f.useRef(null),E=f.useState(void 0),_=a()(E,2),j=_[0],P=_[1],A=ht({strategy:"fixed",placement:w?"bottom":y,middleware:[M({mainAxis:h}),(void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=e,u={x:n,y:r},l=await R(t,s),f=b(g(o)),d=W(f);let p=u[f],h=u[d];if(i){const t="y"===f?"bottom":"right";p=S(p+l["y"===f?"top":"left"],p,p-l[t])}if(a){const t="y"===d?"bottom":"right";h=S(h+l["y"===d?"top":"left"],h,h-l[t])}const m=c.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}),L()],whileElementsMounted:ut}),k=A.x,C=A.y,D=A.reference,H=A.floating,I=A.strategy;return f.useLayoutEffect((function(){D(d.current)}),[d]),f.useLayoutEffect((function(){m&&P(d.current.offsetWidth)}),[m]),n=T,r=v,i={selectorToWatch:"#".concat(x),skipWhen:!x||!v},c=i.selectorToWatch,u=i.skipWhen,l=void 0!==u&&u,Object(f.useEffect)((function(){if(!l){var t={root:n.current,rootMargin:"0px"},e=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&n.current.scrollHeight>n.current.clientHeight&&r(t)}))}),t),o=n.current.querySelector(c);return e.observe(o),function(){e.disconnect()}}}),[l,r,c]),f.createElement(wt,{ref:H,style:{left:k,top:C,position:I,width:j||void 0},hasRadius:!0,background:"neutral0",padding:1},f.createElement(Ot,o()({ref:T},O),p,x&&v&&f.createElement(yt.Box,{id:x,width:"100%",height:"1px"})))},Tt=function(t){return f.createElement(bt.Portal,null,f.createElement(Rt,t))},Et={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1,placement:"bottom-start"},St={centered:p.a.bool,children:p.a.node.isRequired,fullWidth:p.a.bool,intersectionId:p.a.string,onReachEnd:p.a.func,placement:p.a.oneOf(xt),source:p.a.shape({current:("undefined"==typeof Element?p.a.any:p.a.instanceOf(Element)).isRequired}).isRequired,spacing:p.a.number};Rt.propTypes=St,Rt.defaultProps=Et,Tt.propTypes=St,Tt.defaultProps=Et}])}));
@@ -1,212 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"), require("react-dom"));
4
- else if(typeof define === 'function' && define.amd)
5
- define("strapiDs", ["react", "react-dom"], factory);
6
- else if(typeof exports === 'object')
7
- exports["strapiDs"] = factory(require("react"), require("react-dom"));
8
- else
9
- root["strapiDs"] = factory(root["react"], root["react-dom"]);
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = "./src/Portal/index.js");
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
98
-
99
- /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
100
- /*!*****************************************************************!*\
101
- !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
102
- \*****************************************************************/
103
- /*! no static exports found */
104
- /***/ (function(module, exports) {
105
-
106
- eval("function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5TGlrZVRvQXJyYXkuanM/NWE0MyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBOztBQUVBLHdDQUF3QyxTQUFTO0FBQ2pEO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvYXJyYXlMaWtlVG9BcnJheS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9hcnJheUxpa2VUb0FycmF5KGFyciwgbGVuKSB7XG4gIGlmIChsZW4gPT0gbnVsbCB8fCBsZW4gPiBhcnIubGVuZ3RoKSBsZW4gPSBhcnIubGVuZ3RoO1xuXG4gIGZvciAodmFyIGkgPSAwLCBhcnIyID0gbmV3IEFycmF5KGxlbik7IGkgPCBsZW47IGkrKykge1xuICAgIGFycjJbaV0gPSBhcnJbaV07XG4gIH1cblxuICByZXR1cm4gYXJyMjtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfYXJyYXlMaWtlVG9BcnJheTtcbm1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\n");
107
-
108
- /***/ }),
109
-
110
- /***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
111
- /*!***************************************************************!*\
112
- !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
113
- \***************************************************************/
114
- /*! no static exports found */
115
- /***/ (function(module, exports) {
116
-
117
- eval("function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5V2l0aEhvbGVzLmpzP2MxMzUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBOztBQUVBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hcnJheVdpdGhIb2xlcy5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9hcnJheVdpdGhIb2xlcyhhcnIpIHtcbiAgaWYgKEFycmF5LmlzQXJyYXkoYXJyKSkgcmV0dXJuIGFycjtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfYXJyYXlXaXRoSG9sZXM7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js\n");
118
-
119
- /***/ }),
120
-
121
- /***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
122
- /*!*********************************************************************!*\
123
- !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
124
- \*********************************************************************/
125
- /*! no static exports found */
126
- /***/ (function(module, exports) {
127
-
128
- eval("function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2l0ZXJhYmxlVG9BcnJheUxpbWl0LmpzPzliNDIiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBLDJCQUEyQiwrQkFBK0I7QUFDMUQ7O0FBRUE7QUFDQTtBQUNBLEdBQUc7QUFDSDtBQUNBO0FBQ0EsR0FBRztBQUNIO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2l0ZXJhYmxlVG9BcnJheUxpbWl0LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2l0ZXJhYmxlVG9BcnJheUxpbWl0KGFyciwgaSkge1xuICB2YXIgX2kgPSBhcnIgPT0gbnVsbCA/IG51bGwgOiB0eXBlb2YgU3ltYm9sICE9PSBcInVuZGVmaW5lZFwiICYmIGFycltTeW1ib2wuaXRlcmF0b3JdIHx8IGFycltcIkBAaXRlcmF0b3JcIl07XG5cbiAgaWYgKF9pID09IG51bGwpIHJldHVybjtcbiAgdmFyIF9hcnIgPSBbXTtcbiAgdmFyIF9uID0gdHJ1ZTtcbiAgdmFyIF9kID0gZmFsc2U7XG5cbiAgdmFyIF9zLCBfZTtcblxuICB0cnkge1xuICAgIGZvciAoX2kgPSBfaS5jYWxsKGFycik7ICEoX24gPSAoX3MgPSBfaS5uZXh0KCkpLmRvbmUpOyBfbiA9IHRydWUpIHtcbiAgICAgIF9hcnIucHVzaChfcy52YWx1ZSk7XG5cbiAgICAgIGlmIChpICYmIF9hcnIubGVuZ3RoID09PSBpKSBicmVhaztcbiAgICB9XG4gIH0gY2F0Y2ggKGVycikge1xuICAgIF9kID0gdHJ1ZTtcbiAgICBfZSA9IGVycjtcbiAgfSBmaW5hbGx5IHtcbiAgICB0cnkge1xuICAgICAgaWYgKCFfbiAmJiBfaVtcInJldHVyblwiXSAhPSBudWxsKSBfaVtcInJldHVyblwiXSgpO1xuICAgIH0gZmluYWxseSB7XG4gICAgICBpZiAoX2QpIHRocm93IF9lO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBfYXJyO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9pdGVyYWJsZVRvQXJyYXlMaW1pdDtcbm1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js\n");
129
-
130
- /***/ }),
131
-
132
- /***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
133
- /*!****************************************************************!*\
134
- !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
135
- \****************************************************************/
136
- /*! no static exports found */
137
- /***/ (function(module, exports) {
138
-
139
- eval("function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL25vbkl0ZXJhYmxlUmVzdC5qcz9jMjQwIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvbm9uSXRlcmFibGVSZXN0LmpzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX25vbkl0ZXJhYmxlUmVzdCgpIHtcbiAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIkludmFsaWQgYXR0ZW1wdCB0byBkZXN0cnVjdHVyZSBub24taXRlcmFibGUgaW5zdGFuY2UuXFxuSW4gb3JkZXIgdG8gYmUgaXRlcmFibGUsIG5vbi1hcnJheSBvYmplY3RzIG11c3QgaGF2ZSBhIFtTeW1ib2wuaXRlcmF0b3JdKCkgbWV0aG9kLlwiKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfbm9uSXRlcmFibGVSZXN0O1xubW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHMsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/nonIterableRest.js\n");
140
-
141
- /***/ }),
142
-
143
- /***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js":
144
- /*!**************************************************************!*\
145
- !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
146
- \**************************************************************/
147
- /*! no static exports found */
148
- /***/ (function(module, exports, __webpack_require__) {
149
-
150
- eval("var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ \"./node_modules/@babel/runtime/helpers/arrayWithHoles.js\");\n\nvar iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ \"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ \"./node_modules/@babel/runtime/helpers/nonIterableRest.js\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3NsaWNlZFRvQXJyYXkuanM/Mjc4YyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQkFBcUIsbUJBQU8sQ0FBQyxvRkFBcUI7O0FBRWxELDJCQUEyQixtQkFBTyxDQUFDLGdHQUEyQjs7QUFFOUQsaUNBQWlDLG1CQUFPLENBQUMsNEdBQWlDOztBQUUxRSxzQkFBc0IsbUJBQU8sQ0FBQyxzRkFBc0I7O0FBRXBEO0FBQ0E7QUFDQTs7QUFFQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvc2xpY2VkVG9BcnJheS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciBhcnJheVdpdGhIb2xlcyA9IHJlcXVpcmUoXCIuL2FycmF5V2l0aEhvbGVzLmpzXCIpO1xuXG52YXIgaXRlcmFibGVUb0FycmF5TGltaXQgPSByZXF1aXJlKFwiLi9pdGVyYWJsZVRvQXJyYXlMaW1pdC5qc1wiKTtcblxudmFyIHVuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5ID0gcmVxdWlyZShcIi4vdW5zdXBwb3J0ZWRJdGVyYWJsZVRvQXJyYXkuanNcIik7XG5cbnZhciBub25JdGVyYWJsZVJlc3QgPSByZXF1aXJlKFwiLi9ub25JdGVyYWJsZVJlc3QuanNcIik7XG5cbmZ1bmN0aW9uIF9zbGljZWRUb0FycmF5KGFyciwgaSkge1xuICByZXR1cm4gYXJyYXlXaXRoSG9sZXMoYXJyKSB8fCBpdGVyYWJsZVRvQXJyYXlMaW1pdChhcnIsIGkpIHx8IHVuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5KGFyciwgaSkgfHwgbm9uSXRlcmFibGVSZXN0KCk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3NsaWNlZFRvQXJyYXk7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/slicedToArray.js\n");
151
-
152
- /***/ }),
153
-
154
- /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
155
- /*!***************************************************************************!*\
156
- !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
157
- \***************************************************************************/
158
- /*! no static exports found */
159
- /***/ (function(module, exports, __webpack_require__) {
160
-
161
- eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5LmpzPzY2MTMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUJBQXVCLG1CQUFPLENBQUMsd0ZBQXVCOztBQUV0RDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0EiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy91bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciBhcnJheUxpa2VUb0FycmF5ID0gcmVxdWlyZShcIi4vYXJyYXlMaWtlVG9BcnJheS5qc1wiKTtcblxuZnVuY3Rpb24gX3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5KG8sIG1pbkxlbikge1xuICBpZiAoIW8pIHJldHVybjtcbiAgaWYgKHR5cGVvZiBvID09PSBcInN0cmluZ1wiKSByZXR1cm4gYXJyYXlMaWtlVG9BcnJheShvLCBtaW5MZW4pO1xuICB2YXIgbiA9IE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChvKS5zbGljZSg4LCAtMSk7XG4gIGlmIChuID09PSBcIk9iamVjdFwiICYmIG8uY29uc3RydWN0b3IpIG4gPSBvLmNvbnN0cnVjdG9yLm5hbWU7XG4gIGlmIChuID09PSBcIk1hcFwiIHx8IG4gPT09IFwiU2V0XCIpIHJldHVybiBBcnJheS5mcm9tKG8pO1xuICBpZiAobiA9PT0gXCJBcmd1bWVudHNcIiB8fCAvXig/OlVpfEkpbnQoPzo4fDE2fDMyKSg/OkNsYW1wZWQpP0FycmF5JC8udGVzdChuKSkgcmV0dXJuIGFycmF5TGlrZVRvQXJyYXkobywgbWluTGVuKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfdW5zdXBwb3J0ZWRJdGVyYWJsZVRvQXJyYXk7XG5tb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\n");
162
-
163
- /***/ }),
164
-
165
- /***/ "./src/Portal/Portal.js":
166
- /*!******************************!*\
167
- !*** ./src/Portal/Portal.js ***!
168
- \******************************/
169
- /*! exports provided: Portal */
170
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
171
-
172
- "use strict";
173
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Portal\", function() { return Portal; });\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ \"./node_modules/@babel/runtime/helpers/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ \"react-dom\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nvar Portal = function Portal(_ref) {\n var children = _ref.children;\n var rootRef = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(null);\n\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false),\n _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),\n mounted = _useState2[0],\n setMounted = _useState2[1];\n\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useLayoutEffect\"])(function () {\n rootRef.current = document.createElement('div');\n rootRef.current.setAttribute('data-react-portal', 'true');\n document.body.appendChild(rootRef.current);\n setMounted(true);\n return function () {\n var _rootRef$current;\n\n (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.remove();\n };\n }, []);\n\n if (!mounted || !rootRef.current) {\n return null;\n }\n\n return /*#__PURE__*/Object(react_dom__WEBPACK_IMPORTED_MODULE_2__[\"createPortal\"])(children, rootRef.current);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL3NyYy9Qb3J0YWwvUG9ydGFsLmpzPzNmZGQiXSwibmFtZXMiOlsiUG9ydGFsIiwiY2hpbGRyZW4iLCJyb290UmVmIiwidXNlUmVmIiwidXNlU3RhdGUiLCJtb3VudGVkIiwic2V0TW91bnRlZCIsInVzZUxheW91dEVmZmVjdCIsImN1cnJlbnQiLCJkb2N1bWVudCIsImNyZWF0ZUVsZW1lbnQiLCJzZXRBdHRyaWJ1dGUiLCJib2R5IiwiYXBwZW5kQ2hpbGQiLCJyZW1vdmUiLCJjcmVhdGVQb3J0YWwiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFFTyxJQUFNQSxNQUFNLEdBQUcsU0FBVEEsTUFBUyxPQUFrQjtBQUFBLE1BQWZDLFFBQWUsUUFBZkEsUUFBZTtBQUN0QyxNQUFNQyxPQUFPLEdBQUdDLG9EQUFNLENBQUMsSUFBRCxDQUF0Qjs7QUFDQSxrQkFBOEJDLHNEQUFRLENBQUMsS0FBRCxDQUF0QztBQUFBO0FBQUEsTUFBT0MsT0FBUDtBQUFBLE1BQWdCQyxVQUFoQjs7QUFFQUMsK0RBQWUsQ0FBQyxZQUFNO0FBQ3BCTCxXQUFPLENBQUNNLE9BQVIsR0FBa0JDLFFBQVEsQ0FBQ0MsYUFBVCxDQUF1QixLQUF2QixDQUFsQjtBQUNBUixXQUFPLENBQUNNLE9BQVIsQ0FBZ0JHLFlBQWhCLENBQTZCLG1CQUE3QixFQUFrRCxNQUFsRDtBQUNBRixZQUFRLENBQUNHLElBQVQsQ0FBY0MsV0FBZCxDQUEwQlgsT0FBTyxDQUFDTSxPQUFsQztBQUVBRixjQUFVLENBQUMsSUFBRCxDQUFWO0FBRUEsV0FBTyxZQUFNO0FBQUE7O0FBQ1gsMEJBQUFKLE9BQU8sQ0FBQ00sT0FBUixzRUFBaUJNLE1BQWpCO0FBQ0QsS0FGRDtBQUdELEdBVmMsRUFVWixFQVZZLENBQWY7O0FBWUEsTUFBSSxDQUFDVCxPQUFELElBQVksQ0FBQ0gsT0FBTyxDQUFDTSxPQUF6QixFQUFrQztBQUNoQyxXQUFPLElBQVA7QUFDRDs7QUFFRCxzQkFBT08sOERBQVksQ0FBQ2QsUUFBRCxFQUFXQyxPQUFPLENBQUNNLE9BQW5CLENBQW5CO0FBQ0QsQ0FyQk0iLCJmaWxlIjoiLi9zcmMvUG9ydGFsL1BvcnRhbC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHVzZUxheW91dEVmZmVjdCwgdXNlUmVmLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNyZWF0ZVBvcnRhbCB9IGZyb20gJ3JlYWN0LWRvbSc7XG5cbmV4cG9ydCBjb25zdCBQb3J0YWwgPSAoeyBjaGlsZHJlbiB9KSA9PiB7XG4gIGNvbnN0IHJvb3RSZWYgPSB1c2VSZWYobnVsbCk7XG4gIGNvbnN0IFttb3VudGVkLCBzZXRNb3VudGVkXSA9IHVzZVN0YXRlKGZhbHNlKTtcblxuICB1c2VMYXlvdXRFZmZlY3QoKCkgPT4ge1xuICAgIHJvb3RSZWYuY3VycmVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xuICAgIHJvb3RSZWYuY3VycmVudC5zZXRBdHRyaWJ1dGUoJ2RhdGEtcmVhY3QtcG9ydGFsJywgJ3RydWUnKTtcbiAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHJvb3RSZWYuY3VycmVudCk7XG5cbiAgICBzZXRNb3VudGVkKHRydWUpO1xuXG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIHJvb3RSZWYuY3VycmVudD8ucmVtb3ZlKCk7XG4gICAgfTtcbiAgfSwgW10pO1xuXG4gIGlmICghbW91bnRlZCB8fCAhcm9vdFJlZi5jdXJyZW50KSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICByZXR1cm4gY3JlYXRlUG9ydGFsKGNoaWxkcmVuLCByb290UmVmLmN1cnJlbnQpO1xufTtcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/Portal/Portal.js\n");
174
-
175
- /***/ }),
176
-
177
- /***/ "./src/Portal/index.js":
178
- /*!*****************************!*\
179
- !*** ./src/Portal/index.js ***!
180
- \*****************************/
181
- /*! exports provided: Portal */
182
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
183
-
184
- "use strict";
185
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Portal */ \"./src/Portal/Portal.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Portal\", function() { return _Portal__WEBPACK_IMPORTED_MODULE_0__[\"Portal\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy8uL3NyYy9Qb3J0YWwvaW5kZXguanM/ZWJmYiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQSIsImZpbGUiOiIuL3NyYy9Qb3J0YWwvaW5kZXguanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL1BvcnRhbCc7XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/Portal/index.js\n");
186
-
187
- /***/ }),
188
-
189
- /***/ "react":
190
- /*!************************!*\
191
- !*** external "react" ***!
192
- \************************/
193
- /*! no static exports found */
194
- /***/ (function(module, exports) {
195
-
196
- eval("module.exports = __WEBPACK_EXTERNAL_MODULE_react__;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy9leHRlcm5hbCBcInJlYWN0XCI/NTg4ZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiJyZWFjdC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gX19XRUJQQUNLX0VYVEVSTkFMX01PRFVMRV9yZWFjdF9fOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///react\n");
197
-
198
- /***/ }),
199
-
200
- /***/ "react-dom":
201
- /*!****************************!*\
202
- !*** external "react-dom" ***!
203
- \****************************/
204
- /*! no static exports found */
205
- /***/ (function(module, exports) {
206
-
207
- eval("module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9zdHJhcGlEcy9leHRlcm5hbCBcInJlYWN0LWRvbVwiPzVlOWEiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEiLCJmaWxlIjoicmVhY3QtZG9tLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBfX1dFQlBBQ0tfRVhURVJOQUxfTU9EVUxFX3JlYWN0X2RvbV9fOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///react-dom\n");
208
-
209
- /***/ })
210
-
211
- /******/ });
212
- });
package/Portal.js DELETED
@@ -1,9 +0,0 @@
1
-
2
- 'use strict';
3
-
4
- if (process.env.NODE_ENV === "production") {
5
- module.exports = require("./Portal.production.js");
6
- } else {
7
- module.exports = require("./Portal.development.js");
8
- }
9
-
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","react-dom"],t):"object"==typeof exports?exports.strapiDs=t(require("react"),require("react-dom")):e.strapiDs=t(e.react,e["react-dom"])}(this,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=35)}({1:function(t,r){t.exports=e},11:function(e,t,r){var n=r(27),o=r(28),u=r(26),c=r(29);e.exports=function(e,t){return n(e)||o(e,t)||u(e,t)||c()},e.exports.default=e.exports,e.exports.__esModule=!0},23:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},26:function(e,t,r){var n=r(23);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},27:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},28:function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u=[],c=!0,i=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(i)throw o}}return u}},e.exports.default=e.exports,e.exports.__esModule=!0},29:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},34:function(e,r){e.exports=t},35:function(e,t,r){"use strict";r.r(t),r.d(t,"Portal",(function(){return i}));var n=r(11),o=r.n(n),u=r(1),c=r(34),i=function(e){var t=e.children,r=Object(u.useRef)(null),n=Object(u.useState)(!1),i=o()(n,2),a=i[0],l=i[1];return Object(u.useLayoutEffect)((function(){return r.current=document.createElement("div"),r.current.setAttribute("data-react-portal","true"),document.body.appendChild(r.current),l(!0),function(){var e;null===(e=r.current)||void 0===e||e.remove()}}),[]),a&&r.current?Object(c.createPortal)(t,r.current):null}}})}));