@cfx-dev/ui-components 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/README.md +1 -1
  2. package/dist/{Combination-Dp_plIQU.js → Combination-BRUj3CHE.js} +42 -43
  3. package/dist/Logos.types-Bdec3F0Q.js +6 -0
  4. package/dist/Rail-rtPENZs2.js +81 -0
  5. package/dist/assets/Accordion.css +1 -0
  6. package/dist/assets/Avatar.css +1 -1
  7. package/dist/assets/Badge.css +1 -1
  8. package/dist/assets/Button.css +1 -1
  9. package/dist/assets/ButtonBar.css +1 -0
  10. package/dist/assets/Checkbox.css +1 -1
  11. package/dist/assets/ClipboardButton.css +1 -0
  12. package/dist/assets/ColorShowcase.css +1 -0
  13. package/dist/assets/ColorVariationsShowcase.css +1 -0
  14. package/dist/assets/ColorsShowcase.css +1 -0
  15. package/dist/assets/ControlHeightShowcase.css +1 -0
  16. package/dist/assets/Dot.css +1 -1
  17. package/dist/assets/Flex.css +1 -1
  18. package/dist/assets/Flyout.css +1 -1
  19. package/dist/assets/IconBig.css +1 -0
  20. package/dist/assets/IconButton.css +1 -0
  21. package/dist/assets/InfoPanel.css +1 -1
  22. package/dist/assets/Input.css +1 -1
  23. package/dist/assets/InputDropzone.css +1 -1
  24. package/dist/assets/Island.css +1 -1
  25. package/dist/assets/ItemPreview.css +1 -1
  26. package/dist/assets/Modal.css +1 -1
  27. package/dist/assets/NavList.css +1 -1
  28. package/dist/assets/OffsetShowcase.css +1 -0
  29. package/dist/assets/Pad.css +1 -1
  30. package/dist/assets/Popover.css +1 -1
  31. package/dist/assets/PopoverShowcase.css +1 -0
  32. package/dist/assets/Prose.css +1 -1
  33. package/dist/assets/QuantShowcase.css +1 -0
  34. package/dist/assets/Radio.css +1 -1
  35. package/dist/assets/Rail.css +1 -1
  36. package/dist/assets/RichInput.css +1 -1
  37. package/dist/assets/Select.css +1 -1
  38. package/dist/assets/Separator.css +1 -1
  39. package/dist/assets/Spacer.css +1 -1
  40. package/dist/assets/Switch.css +1 -1
  41. package/dist/assets/Tabular.css +1 -1
  42. package/dist/assets/Text.css +1 -1
  43. package/dist/assets/TextShowcase.css +1 -0
  44. package/dist/assets/Textarea.css +1 -1
  45. package/dist/assets/Title.css +1 -1
  46. package/dist/assets/ToggleGroup.css +1 -0
  47. package/dist/assets/global.css +1 -1
  48. package/dist/assets/themes.css +1 -1
  49. package/dist/cfxIcons-BlbKR-zU.js +86 -0
  50. package/dist/cfxIconsBig-CNY8zL27.js +14 -0
  51. package/dist/components/Accordion/Accordion.d.ts +26 -0
  52. package/dist/components/Accordion/Accordion.js +120 -0
  53. package/dist/components/Accordion/AccordionShowcase.d.ts +5 -0
  54. package/dist/components/Accordion/AccordionShowcase.js +60 -0
  55. package/dist/components/Accordion/index.d.ts +0 -0
  56. package/dist/components/Accordion/index.js +1 -0
  57. package/dist/components/Avatar/Avatar.d.ts +5 -1
  58. package/dist/components/Avatar/Avatar.js +31 -16
  59. package/dist/components/Avatar/AvatarShowcase.d.ts +5 -0
  60. package/dist/components/Avatar/AvatarShowcase.js +33 -0
  61. package/dist/components/Avatar/index.d.ts +2 -0
  62. package/dist/components/Avatar/index.js +4 -0
  63. package/dist/components/BackdropPortal/BackdropPortal.js +9 -6
  64. package/dist/components/Badge/Badge.d.ts +4 -1
  65. package/dist/components/Badge/Badge.js +23 -13
  66. package/dist/components/Badge/BadgeShowcase.d.ts +5 -0
  67. package/dist/components/Badge/BadgeShowcase.js +56 -0
  68. package/dist/components/Badge/index.d.ts +2 -0
  69. package/dist/components/Badge/index.js +4 -0
  70. package/dist/components/Button/Button.d.ts +4 -6
  71. package/dist/components/Button/Button.js +84 -84
  72. package/dist/components/Button/ButtonBar.d.ts +3 -2
  73. package/dist/components/Button/ButtonBar.js +27 -9
  74. package/dist/components/Button/ButtonShowcase.d.ts +5 -0
  75. package/dist/components/Button/ButtonShowcase.js +89 -0
  76. package/dist/components/Button/index.d.ts +6 -0
  77. package/dist/components/Button/index.js +10 -0
  78. package/dist/components/Checkbox/Checkbox.d.ts +10 -9
  79. package/dist/components/Checkbox/Checkbox.js +249 -37
  80. package/dist/components/Checkbox/index.d.ts +2 -0
  81. package/dist/components/Checkbox/index.js +4 -0
  82. package/dist/components/ClipboardButton/ClipboardButton.d.ts +16 -0
  83. package/dist/components/ClipboardButton/ClipboardButton.js +50 -0
  84. package/dist/components/ClipboardButton/index.d.ts +0 -0
  85. package/dist/components/ClipboardButton/index.js +1 -0
  86. package/dist/components/Dot/Dot.d.ts +5 -2
  87. package/dist/components/Dot/Dot.js +25 -10
  88. package/dist/components/Dot/index.d.ts +2 -0
  89. package/dist/components/Dot/index.js +4 -0
  90. package/dist/components/Flyout/Flyout.js +47 -46
  91. package/dist/components/Icon/Icon.d.ts +7 -6
  92. package/dist/components/Icon/Icon.js +31 -19
  93. package/dist/components/Icon/index.d.ts +3 -0
  94. package/dist/components/Icon/index.js +4 -0
  95. package/dist/components/IconBig/IconBig.d.ts +12 -0
  96. package/dist/components/IconBig/IconBig.js +69 -0
  97. package/dist/components/IconBig/index.d.ts +2 -0
  98. package/dist/components/IconBig/index.js +4 -0
  99. package/dist/components/IconButton/IconButton.d.ts +16 -0
  100. package/dist/components/IconButton/IconButton.js +35 -0
  101. package/dist/components/IconButton/index.d.ts +2 -0
  102. package/dist/components/IconButton/index.js +4 -0
  103. package/dist/components/Icons/Icons.types.d.ts +4 -0
  104. package/dist/components/Icons/Icons.types.js +1 -0
  105. package/dist/components/Icons/IconsShowcase.js +101 -0
  106. package/dist/components/Icons/cfx-icons/Close.d.ts +5 -0
  107. package/dist/components/Icons/cfx-icons/Close.js +27 -0
  108. package/dist/components/Icons/cfx-icons/Controller.d.ts +5 -0
  109. package/dist/components/Icons/cfx-icons/Controller.js +31 -0
  110. package/dist/components/Icons/cfx-icons/Copy.d.ts +5 -0
  111. package/dist/components/Icons/cfx-icons/Copy.js +27 -0
  112. package/dist/components/Icons/cfx-icons/DownArrow.d.ts +5 -0
  113. package/dist/components/Icons/cfx-icons/DownArrow.js +27 -0
  114. package/dist/components/Icons/cfx-icons/DownChevron.d.ts +5 -0
  115. package/dist/components/Icons/cfx-icons/DownChevron.js +27 -0
  116. package/dist/components/Icons/cfx-icons/Download.d.ts +5 -0
  117. package/dist/components/Icons/cfx-icons/Download.js +27 -0
  118. package/dist/components/Icons/cfx-icons/Expand.d.ts +5 -0
  119. package/dist/components/Icons/cfx-icons/Expand.js +26 -0
  120. package/dist/components/Icons/cfx-icons/ExternalLink.d.ts +5 -0
  121. package/dist/components/Icons/cfx-icons/ExternalLink.js +27 -0
  122. package/dist/components/Icons/cfx-icons/Heart.d.ts +5 -0
  123. package/dist/components/Icons/cfx-icons/Heart.js +25 -0
  124. package/dist/components/Icons/cfx-icons/HeartFilled.d.ts +5 -0
  125. package/dist/components/Icons/cfx-icons/HeartFilled.js +25 -0
  126. package/dist/components/Icons/cfx-icons/Help.d.ts +5 -0
  127. package/dist/components/Icons/cfx-icons/Help.js +27 -0
  128. package/dist/components/Icons/cfx-icons/LeftArrow.d.ts +5 -0
  129. package/dist/components/Icons/cfx-icons/LeftArrow.js +27 -0
  130. package/dist/components/Icons/cfx-icons/LeftChevron.d.ts +5 -0
  131. package/dist/components/Icons/cfx-icons/LeftChevron.js +27 -0
  132. package/dist/components/Icons/cfx-icons/Map.d.ts +5 -0
  133. package/dist/components/Icons/cfx-icons/Map.js +39 -0
  134. package/dist/components/Icons/cfx-icons/Menu.d.ts +5 -0
  135. package/dist/components/Icons/cfx-icons/Menu.js +49 -0
  136. package/dist/components/Icons/cfx-icons/Minus.d.ts +5 -0
  137. package/dist/components/Icons/cfx-icons/Minus.js +27 -0
  138. package/dist/components/Icons/cfx-icons/More.d.ts +5 -0
  139. package/dist/components/Icons/cfx-icons/More.js +27 -0
  140. package/dist/components/Icons/cfx-icons/MoreInfo.d.ts +5 -0
  141. package/dist/components/Icons/cfx-icons/MoreInfo.js +27 -0
  142. package/dist/components/Icons/cfx-icons/Pencil.d.ts +5 -0
  143. package/dist/components/Icons/cfx-icons/Pencil.js +25 -0
  144. package/dist/components/Icons/cfx-icons/Play.d.ts +5 -0
  145. package/dist/components/Icons/cfx-icons/Play.js +25 -0
  146. package/dist/components/Icons/cfx-icons/Plus.d.ts +5 -0
  147. package/dist/components/Icons/cfx-icons/Plus.js +27 -0
  148. package/dist/components/Icons/cfx-icons/Refresh.d.ts +5 -0
  149. package/dist/components/Icons/cfx-icons/Refresh.js +27 -0
  150. package/dist/components/Icons/cfx-icons/RightArrow.d.ts +5 -0
  151. package/dist/components/Icons/cfx-icons/RightArrow.js +27 -0
  152. package/dist/components/Icons/cfx-icons/RightChevron.d.ts +5 -0
  153. package/dist/components/Icons/cfx-icons/RightChevron.js +27 -0
  154. package/dist/components/Icons/cfx-icons/Search.d.ts +5 -0
  155. package/dist/components/Icons/cfx-icons/Search.js +27 -0
  156. package/dist/components/Icons/cfx-icons/Sort.d.ts +5 -0
  157. package/dist/components/Icons/cfx-icons/Sort.js +27 -0
  158. package/dist/components/Icons/cfx-icons/Square.d.ts +5 -0
  159. package/dist/components/Icons/cfx-icons/Square.js +18 -0
  160. package/dist/components/Icons/cfx-icons/SquareCheck.d.ts +5 -0
  161. package/dist/components/Icons/cfx-icons/SquareCheck.js +27 -0
  162. package/dist/components/Icons/cfx-icons/Stop.d.ts +5 -0
  163. package/dist/components/Icons/cfx-icons/Stop.js +27 -0
  164. package/dist/components/Icons/cfx-icons/Tick.d.ts +5 -0
  165. package/dist/components/Icons/cfx-icons/Tick.js +27 -0
  166. package/dist/components/Icons/cfx-icons/Transfer.d.ts +5 -0
  167. package/dist/components/Icons/cfx-icons/Transfer.js +27 -0
  168. package/dist/components/Icons/cfx-icons/Trash.d.ts +5 -0
  169. package/dist/components/Icons/cfx-icons/Trash.js +23 -0
  170. package/dist/components/Icons/cfx-icons/Undo.d.ts +5 -0
  171. package/dist/components/Icons/cfx-icons/Undo.js +27 -0
  172. package/dist/components/Icons/cfx-icons/UpArrow.d.ts +5 -0
  173. package/dist/components/Icons/cfx-icons/UpArrow.js +27 -0
  174. package/dist/components/Icons/cfx-icons/UpChevron.d.ts +5 -0
  175. package/dist/components/Icons/cfx-icons/UpChevron.js +27 -0
  176. package/dist/components/Icons/cfx-icons/Upload.d.ts +5 -0
  177. package/dist/components/Icons/cfx-icons/Upload.js +27 -0
  178. package/dist/components/Icons/cfx-icons/Users.d.ts +5 -0
  179. package/dist/components/Icons/cfx-icons/Users.js +43 -0
  180. package/dist/components/Icons/cfx-icons/Visibility.d.ts +5 -0
  181. package/dist/components/Icons/cfx-icons/Visibility.js +23 -0
  182. package/dist/components/Icons/cfx-icons/VisibilityOff.d.ts +5 -0
  183. package/dist/components/Icons/cfx-icons/VisibilityOff.js +23 -0
  184. package/dist/components/Icons/cfx-icons/Warning.d.ts +5 -0
  185. package/dist/components/Icons/cfx-icons/Warning.js +27 -0
  186. package/dist/components/Icons/cfx-icons-big/Like.d.ts +5 -0
  187. package/dist/components/Icons/cfx-icons-big/Like.js +25 -0
  188. package/dist/components/Icons/cfx-icons-big/Subscriptions.d.ts +5 -0
  189. package/dist/components/Icons/cfx-icons-big/Subscriptions.js +33 -0
  190. package/dist/components/Icons/cfx-icons-big/Upload.d.ts +5 -0
  191. package/dist/components/Icons/cfx-icons-big/Upload.js +27 -0
  192. package/dist/components/Icons/cfx-icons-big/Warning.d.ts +5 -0
  193. package/dist/components/Icons/cfx-icons-big/Warning.js +27 -0
  194. package/dist/components/Icons/cfxIcons.d.ts +40 -0
  195. package/dist/components/Icons/cfxIcons.js +82 -0
  196. package/dist/components/Icons/cfxIconsBig.d.ts +4 -0
  197. package/dist/components/Icons/cfxIconsBig.js +10 -0
  198. package/dist/components/Icons/index.d.ts +3 -0
  199. package/dist/components/Icons/index.js +6 -0
  200. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -7
  201. package/dist/components/InfoPanel/InfoPanel.js +50 -28
  202. package/dist/components/InfoPanel/InfoPanelShowcase.d.ts +5 -0
  203. package/dist/components/InfoPanel/InfoPanelShowcase.js +47 -0
  204. package/dist/components/InfoPanel/index.d.ts +2 -0
  205. package/dist/components/InfoPanel/index.js +4 -0
  206. package/dist/components/Input/Input.d.ts +16 -19
  207. package/dist/components/Input/Input.js +73 -81
  208. package/dist/components/Input/InputShowcase.d.ts +5 -0
  209. package/dist/components/Input/InputShowcase.js +90 -0
  210. package/dist/components/Input/RichInput.d.ts +2 -1
  211. package/dist/components/Input/RichInput.js +37 -35
  212. package/dist/components/Input/index.d.ts +4 -0
  213. package/dist/components/Input/index.js +6 -0
  214. package/dist/components/InputDropzone/InputDropzone.d.ts +6 -3
  215. package/dist/components/InputDropzone/InputDropzone.js +260 -259
  216. package/dist/components/InputDropzone/InputDropzoneShowcase.d.ts +5 -0
  217. package/dist/components/InputDropzone/InputDropzoneShowcase.js +27 -0
  218. package/dist/components/InputDropzone/ItemPreview.d.ts +5 -1
  219. package/dist/components/InputDropzone/ItemPreview.js +20 -17
  220. package/dist/components/InputDropzone/index.d.ts +4 -0
  221. package/dist/components/InputDropzone/index.js +6 -0
  222. package/dist/components/Interactive/Interactive.d.ts +1 -0
  223. package/dist/components/Interactive/Interactive.js +10 -9
  224. package/dist/components/Island/Island.js +23 -23
  225. package/dist/components/Layout/Flex/Flex.js +46 -43
  226. package/dist/components/Layout/Pad/Pad.js +29 -26
  227. package/dist/components/Layout/Scrollable/Rail.d.ts +1 -2
  228. package/dist/components/Layout/Scrollable/Rail.js +2 -3
  229. package/dist/components/Layout/Scrollable/Scrollable.js +23 -23
  230. package/dist/components/Layout/Scrollable/ScrollableShowcase.d.ts +5 -0
  231. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +112 -0
  232. package/dist/components/Layout/Scrollable/VirtualScrollable.js +6 -7
  233. package/dist/components/Layout/Scrollable/index.d.ts +6 -0
  234. package/dist/components/Layout/Scrollable/index.js +8 -0
  235. package/dist/components/Logos/Logos.types.d.ts +26 -0
  236. package/dist/components/Logos/Logos.types.js +1 -0
  237. package/dist/components/Logos/LogosShowcase.d.ts +5 -0
  238. package/dist/components/Logos/LogosShowcase.js +430 -0
  239. package/dist/components/Logos/cfx/CompositeLogo.d.ts +5 -0
  240. package/dist/components/Logos/cfx/CompositeLogo.js +91 -0
  241. package/dist/components/Logos/cfx/Icon.d.ts +5 -0
  242. package/dist/components/Logos/cfx/Icon.js +23 -0
  243. package/dist/components/Logos/cfx/Logo.d.ts +5 -0
  244. package/dist/components/Logos/cfx/Logo.js +70 -0
  245. package/dist/components/Logos/cfx/Wordmark.d.ts +5 -0
  246. package/dist/components/Logos/cfx/Wordmark.js +60 -0
  247. package/dist/components/Logos/cfx/index.d.ts +4 -0
  248. package/dist/components/Logos/cfx/index.js +10 -0
  249. package/dist/components/Logos/cfxbazaar/CompositeLogo.d.ts +5 -0
  250. package/dist/components/Logos/cfxbazaar/CompositeLogo.js +102 -0
  251. package/dist/components/Logos/cfxbazaar/Wordmark.d.ts +5 -0
  252. package/dist/components/Logos/cfxbazaar/Wordmark.js +81 -0
  253. package/dist/components/Logos/cfxbazaar/index.d.ts +2 -0
  254. package/dist/components/Logos/cfxbazaar/index.js +6 -0
  255. package/dist/components/Logos/discord/Icon.d.ts +5 -0
  256. package/dist/components/Logos/discord/Icon.js +23 -0
  257. package/dist/components/Logos/discord/index.d.ts +1 -0
  258. package/dist/components/Logos/discord/index.js +4 -0
  259. package/dist/components/Logos/esx/Icon.d.ts +5 -0
  260. package/dist/components/Logos/esx/Icon.js +26 -0
  261. package/dist/components/Logos/esx/index.d.ts +1 -0
  262. package/dist/components/Logos/esx/index.js +4 -0
  263. package/dist/components/Logos/fivem/CompositeLogo.d.ts +5 -0
  264. package/dist/components/Logos/fivem/CompositeLogo.js +98 -0
  265. package/dist/components/Logos/fivem/Icon.d.ts +5 -0
  266. package/dist/components/Logos/fivem/Icon.js +39 -0
  267. package/dist/components/Logos/fivem/LockupLandscape.d.ts +5 -0
  268. package/dist/components/Logos/fivem/LockupLandscape.js +81 -0
  269. package/dist/components/Logos/fivem/LockupPortrait.d.ts +5 -0
  270. package/dist/components/Logos/fivem/LockupPortrait.js +140 -0
  271. package/dist/components/Logos/fivem/Logo.d.ts +5 -0
  272. package/dist/components/Logos/fivem/Logo.js +63 -0
  273. package/dist/components/Logos/fivem/Wordmark.d.ts +5 -0
  274. package/dist/components/Logos/fivem/Wordmark.js +39 -0
  275. package/dist/components/Logos/fivem/index.d.ts +6 -0
  276. package/dist/components/Logos/fivem/index.js +14 -0
  277. package/dist/components/Logos/google/Icon.d.ts +5 -0
  278. package/dist/components/Logos/google/Icon.js +46 -0
  279. package/dist/components/Logos/google/Wordmark.d.ts +5 -0
  280. package/dist/components/Logos/google/Wordmark.js +63 -0
  281. package/dist/components/Logos/google/index.d.ts +2 -0
  282. package/dist/components/Logos/google/index.js +6 -0
  283. package/dist/components/Logos/index.d.ts +29 -0
  284. package/dist/components/Logos/index.js +33 -0
  285. package/dist/components/Logos/patreon/Icon.d.ts +5 -0
  286. package/dist/components/Logos/patreon/Icon.js +23 -0
  287. package/dist/components/Logos/patreon/Wordmark.d.ts +5 -0
  288. package/dist/components/Logos/patreon/Wordmark.js +32 -0
  289. package/dist/components/Logos/patreon/index.d.ts +2 -0
  290. package/dist/components/Logos/patreon/index.js +6 -0
  291. package/dist/components/Logos/qbcore/Icon.d.ts +5 -0
  292. package/dist/components/Logos/qbcore/Icon.js +26 -0
  293. package/dist/components/Logos/qbcore/index.d.ts +1 -0
  294. package/dist/components/Logos/qbcore/index.js +4 -0
  295. package/dist/components/Logos/redemrp/Icon.d.ts +5 -0
  296. package/dist/components/Logos/redemrp/Icon.js +26 -0
  297. package/dist/components/Logos/redemrp/index.d.ts +1 -0
  298. package/dist/components/Logos/redemrp/index.js +4 -0
  299. package/dist/components/Logos/redm/CompositeLogo.d.ts +5 -0
  300. package/dist/components/Logos/redm/CompositeLogo.js +250 -0
  301. package/dist/components/Logos/redm/Icon.d.ts +5 -0
  302. package/dist/components/Logos/redm/Icon.js +88 -0
  303. package/dist/components/Logos/redm/LockupLandscape.d.ts +5 -0
  304. package/dist/components/Logos/redm/LockupLandscape.js +231 -0
  305. package/dist/components/Logos/redm/LockupPortrait.d.ts +5 -0
  306. package/dist/components/Logos/redm/LockupPortrait.js +182 -0
  307. package/dist/components/Logos/redm/Logo.d.ts +5 -0
  308. package/dist/components/Logos/redm/Logo.js +214 -0
  309. package/dist/components/Logos/redm/Wordmark.d.ts +5 -0
  310. package/dist/components/Logos/redm/Wordmark.js +35 -0
  311. package/dist/components/Logos/redm/index.d.ts +6 -0
  312. package/dist/components/Logos/redm/index.js +14 -0
  313. package/dist/components/Logos/rockstar/Icon.d.ts +5 -0
  314. package/dist/components/Logos/rockstar/Icon.js +32 -0
  315. package/dist/components/Logos/rockstar/index.d.ts +1 -0
  316. package/dist/components/Logos/rockstar/index.js +4 -0
  317. package/dist/components/Logos/tebex/Icon.d.ts +5 -0
  318. package/dist/components/Logos/tebex/Icon.js +23 -0
  319. package/dist/components/Logos/tebex/Wordmark.d.ts +5 -0
  320. package/dist/components/Logos/tebex/Wordmark.js +34 -0
  321. package/dist/components/Logos/tebex/index.d.ts +2 -0
  322. package/dist/components/Logos/tebex/index.js +6 -0
  323. package/dist/components/Logos/vorpcore/Icon.d.ts +5 -0
  324. package/dist/components/Logos/vorpcore/Icon.js +26 -0
  325. package/dist/components/Logos/vorpcore/index.d.ts +1 -0
  326. package/dist/components/Logos/vorpcore/index.js +4 -0
  327. package/dist/components/Modal/Modal.d.ts +13 -6
  328. package/dist/components/Modal/Modal.js +75 -34
  329. package/dist/components/Modal/ModalShowcase.d.ts +5 -0
  330. package/dist/components/Modal/ModalShowcase.js +52 -0
  331. package/dist/components/Modal/index.d.ts +2 -0
  332. package/dist/components/Modal/index.js +4 -0
  333. package/dist/components/NavList/NavList.js +5 -5
  334. package/dist/components/OnScreenSensor.js +13 -10
  335. package/dist/components/Overlay/Overlay.js +10 -8
  336. package/dist/components/Popover/Popover.d.ts +5 -3
  337. package/dist/components/Popover/Popover.js +32 -26
  338. package/dist/components/Popover/PopoverShowcase.d.ts +5 -0
  339. package/dist/components/Popover/PopoverShowcase.js +53 -0
  340. package/dist/components/Popover/index.d.ts +2 -0
  341. package/dist/components/Popover/index.js +4 -0
  342. package/dist/components/Prose/Prose.js +1 -1
  343. package/dist/components/Radio/Radio.js +20 -20
  344. package/dist/components/Select/Select.d.ts +5 -3
  345. package/dist/components/Select/Select.js +1997 -2230
  346. package/dist/components/Select/SelectShowcase.d.ts +5 -0
  347. package/dist/components/Select/SelectShowcase.js +121 -0
  348. package/dist/components/Select/index.d.ts +2 -0
  349. package/dist/components/Select/index.js +4 -0
  350. package/dist/components/Separator/Separator.d.ts +2 -0
  351. package/dist/components/Separator/Separator.js +33 -22
  352. package/dist/components/Shroud/Shroud.js +11 -8
  353. package/dist/components/Spacer/Spacer.d.ts +3 -1
  354. package/dist/components/Spacer/Spacer.js +22 -18
  355. package/dist/components/Switch/Switch.d.ts +6 -15
  356. package/dist/components/Switch/Switch.js +119 -62
  357. package/dist/components/Switch/index.d.ts +2 -0
  358. package/dist/components/Switch/index.js +4 -0
  359. package/dist/components/Table/Table.js +41 -35
  360. package/dist/components/Tabular/Tabular.d.ts +20 -15
  361. package/dist/components/Tabular/Tabular.js +84 -54
  362. package/dist/components/Tabular/TabularShowcase.d.ts +5 -0
  363. package/dist/components/Tabular/TabularShowcase.js +47 -0
  364. package/dist/components/Tabular/index.d.ts +2 -0
  365. package/dist/components/Tabular/index.js +4 -0
  366. package/dist/components/Text/BodyShowcase.d.ts +5 -0
  367. package/dist/components/Text/BodyShowcase.js +133 -0
  368. package/dist/components/Text/HeadingShowcase.d.ts +5 -0
  369. package/dist/components/Text/HeadingShowcase.js +101 -0
  370. package/dist/components/Text/Text.d.ts +5 -3
  371. package/dist/components/Text/Text.js +59 -47
  372. package/dist/components/Text/Text.types.d.ts +11 -9
  373. package/dist/components/Text/TextShowcase.d.ts +12 -0
  374. package/dist/components/Text/TextShowcase.js +46 -0
  375. package/dist/components/Text/index.d.ts +2 -0
  376. package/dist/components/Text/index.js +8 -0
  377. package/dist/components/Textarea/Textarea.js +35 -35
  378. package/dist/components/Title/Title.d.ts +6 -2
  379. package/dist/components/Title/Title.js +89 -83
  380. package/dist/components/Title/TitleShowcase.d.ts +5 -0
  381. package/dist/components/Title/TitleShowcase.js +22 -0
  382. package/dist/components/ToggleGroup/ToggleGroup.d.ts +17 -0
  383. package/dist/components/ToggleGroup/ToggleGroup.js +65 -0
  384. package/dist/iconBase-C6DV9qqL.js +60 -0
  385. package/dist/{index-C1KmDBa6.js → index-2hJuj4UN.js} +939 -939
  386. package/dist/index-BCMIaGt2.js +10 -0
  387. package/dist/index-BFDtbr-9.js +8 -0
  388. package/dist/index-BgyFvlVL.js +14 -0
  389. package/dist/index-Bj7QGXdt.js +10 -0
  390. package/dist/index-CjWRnNpt.js +210 -0
  391. package/dist/index-CndZSWbO.js +8 -0
  392. package/dist/index-Cy4ZbWBL.js +8 -0
  393. package/dist/index-D7JPdg13.js +18 -0
  394. package/dist/index-DXAZagKA.js +8 -0
  395. package/dist/index-DmiGJpGO.js +8 -0
  396. package/dist/index-DwfZyjnS.js +8 -0
  397. package/dist/index-Jh-MtE10.js +18 -0
  398. package/dist/index-kbBuAY0m.js +10 -0
  399. package/dist/index-zDYfHjPd.js +10 -0
  400. package/dist/inheritsLoose-CyjgKRgL.js +21 -0
  401. package/dist/main.d.ts +36 -19
  402. package/dist/main.js +166 -148
  403. package/dist/style-guide/Colors/ColorShowcase.d.ts +21 -0
  404. package/dist/style-guide/Colors/ColorShowcase.js +1881 -0
  405. package/dist/style-guide/Colors/ColorVariationsShowcase.d.ts +5 -0
  406. package/dist/style-guide/Colors/ColorVariationsShowcase.js +43 -0
  407. package/dist/style-guide/Colors/ColorsShowcase.d.ts +5 -0
  408. package/dist/style-guide/Colors/ColorsShowcase.js +43 -0
  409. package/dist/style-guide/Layout/ControlHeightShowcase.d.ts +5 -0
  410. package/dist/style-guide/Layout/ControlHeightShowcase.js +27 -0
  411. package/dist/style-guide/Layout/OffsetShowcase.d.ts +5 -0
  412. package/dist/style-guide/Layout/OffsetShowcase.js +32 -0
  413. package/dist/style-guide/Layout/QuantShowcase.d.ts +5 -0
  414. package/dist/style-guide/Layout/QuantShowcase.js +36 -0
  415. package/dist/styles-scss/_typography.scss +52 -0
  416. package/dist/styles-scss/_ui.scss +126 -9
  417. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.ttf +0 -0
  418. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff +0 -0
  419. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff2 +0 -0
  420. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.ttf +0 -0
  421. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff +0 -0
  422. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff2 +0 -0
  423. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.ttf +0 -0
  424. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff +0 -0
  425. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff2 +0 -0
  426. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.ttf +0 -0
  427. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff +0 -0
  428. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff2 +0 -0
  429. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.ttf +0 -0
  430. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff +0 -0
  431. package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff2 +0 -0
  432. package/dist/styles-scss/global.scss +95 -41
  433. package/dist/styles-scss/themes/theme_cfx.scss +32 -0
  434. package/dist/styles-scss/themes/theme_fivem.scss +32 -0
  435. package/dist/styles-scss/themes/theme_redm.scss +32 -0
  436. package/dist/styles-scss/themes/theme_wireframe.scss +32 -0
  437. package/dist/styles-scss/themes.scss +4 -2
  438. package/dist/styles-scss/tokens.scss +274 -190
  439. package/dist/types/Offset.d.ts +1 -0
  440. package/dist/types/Offset.js +1 -0
  441. package/dist/utils/color.d.ts +9 -0
  442. package/dist/utils/color.js +18 -0
  443. package/dist/utils/hooks/index.d.ts +8 -0
  444. package/dist/utils/hooks/index.js +16 -0
  445. package/dist/utils/hooks/useDynamicRef.d.ts +3 -0
  446. package/dist/utils/hooks/useDynamicRef.js +8 -0
  447. package/dist/utils/hooks/useGlobalKeyboardEvent.d.ts +6 -0
  448. package/dist/utils/hooks/useGlobalKeyboardEvent.js +29 -0
  449. package/dist/utils/hooks/useInstance.d.ts +1 -0
  450. package/dist/utils/hooks/useInstance.js +9 -0
  451. package/dist/utils/hooks/useKeyboardClose.d.ts +4 -0
  452. package/dist/utils/hooks/useKeyboardClose.js +12 -0
  453. package/dist/utils/hooks/useOutlet.d.ts +4 -0
  454. package/dist/utils/hooks/useOutlet.js +26 -0
  455. package/dist/utils/hooks/usePopoverController.d.ts +9 -0
  456. package/dist/utils/hooks/usePopoverController.js +35 -0
  457. package/dist/utils/hooks/useWindowResize.d.ts +1 -0
  458. package/dist/utils/hooks/useWindowResize.js +12 -0
  459. package/dist/utils/loremipsum.d.ts +1 -0
  460. package/dist/utils/loremipsum.js +4 -0
  461. package/dist/utils/random.d.ts +3 -0
  462. package/dist/utils/random.js +14 -0
  463. package/package.json +5 -6
  464. package/dist/Button.module-Z6njvP9Z.js +0 -17
  465. package/dist/Icons-BlBKvJD8.js +0 -104
  466. package/dist/Rail-CCuyJpf6.js +0 -89
  467. package/dist/extends-hS2Bh-Yp.js +0 -12
  468. package/dist/index.esm-BkynlSN6.js +0 -72
  469. package/dist/inheritsLoose-A8WKSWDx.js +0 -11
  470. package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +0 -2
  471. package/dist/style-guide/Colours/DarkThemeSwatches.js +0 -110
  472. package/dist/style-guide/Colours/LightThemeSwatches.d.ts +0 -2
  473. package/dist/style-guide/Colours/LightThemeSwatches.js +0 -105
  474. package/dist/style-guide/Colours/Swatches.d.ts +0 -6
  475. package/dist/style-guide/Colours/Swatches.js +0 -48
  476. package/dist/style-guide/Icons/IconDisplayGrid.js +0 -42
  477. package/dist/style-guide/Icons/Icons.d.ts +0 -38
  478. package/dist/style-guide/Icons/Icons.js +0 -7
  479. package/dist/styles-scss/assets/images/bgpat.png +0 -0
  480. package/dist/styles-scss/assets/images/checkered_dark.svg +0 -7
  481. package/dist/styles-scss/assets/images/checkered_light.svg +0 -7
  482. package/dist/styles-scss/theme_dark.scss +0 -24
  483. package/dist/styles-scss/theme_light.scss +0 -54
  484. package/dist/utils/hooks.d.ts +0 -15
  485. package/dist/utils/hooks.js +0 -79
  486. /package/dist/{style-guide/Icons/IconDisplayGrid.d.ts → components/Icons/IconsShowcase.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
- import { jsxs as he, jsx as N } from "react/jsx-runtime";
2
- import er, { useMemo as L, useRef as te, useReducer as br, useEffect as De, useCallback as D, forwardRef as hr, useImperativeHandle as Dr, Fragment as Ar } from "react";
1
+ import { jsxs as he, jsx as re } from "react/jsx-runtime";
2
+ import xe, { useMemo as L, useRef as te, useReducer as hr, useEffect as De, useCallback as D, forwardRef as Dr, useImperativeHandle as Ar, Fragment as wr } from "react";
3
3
  import { P as l } from "../../index-DQMInta3.js";
4
4
  import { a as M, b as $, c as We, d as Be } from "../../tslib.es6-CBKHJX9H.js";
5
- import { F as wr } from "../../Icons-BlBKvJD8.js";
6
- import { Icon as _r } from "../Icon/Icon.js";
7
- import { clsx as Fr } from "../../utils/clsx.js";
8
- import { ItemPreview as Or } from "./ItemPreview.js";
9
- import '../../assets/InputDropzone.css';var xr = /* @__PURE__ */ new Map([
5
+ import { IconBig as Or } from "../IconBig/IconBig.js";
6
+ import { Text as Ue } from "../Text/Text.js";
7
+ import { clsx as Er } from "../../utils/clsx.js";
8
+ import Fr from "./ItemPreview.js";
9
+ import '../../assets/InputDropzone.css';var _r = /* @__PURE__ */ new Map([
10
10
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
11
11
  ["aac", "audio/aac"],
12
12
  ["abw", "application/x-abiword"],
@@ -90,8 +90,8 @@ import '../../assets/InputDropzone.css';var xr = /* @__PURE__ */ new Map([
90
90
  ["mov", "video/quicktime"],
91
91
  ["msg", "application/vnd.ms-outlook"]
92
92
  ]);
93
- function Y(e, r) {
94
- var t = Er(e);
93
+ function U(e, r) {
94
+ var t = xr(e);
95
95
  if (typeof t.path != "string") {
96
96
  var n = e.webkitRelativePath;
97
97
  Object.defineProperty(t, "path", {
@@ -103,10 +103,10 @@ function Y(e, r) {
103
103
  }
104
104
  return t;
105
105
  }
106
- function Er(e) {
106
+ function xr(e) {
107
107
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
108
108
  if (t && !e.type) {
109
- var n = r.split(".").pop().toLowerCase(), i = xr.get(n);
109
+ var n = r.split(".").pop().toLowerCase(), i = _r.get(n);
110
110
  i && Object.defineProperty(e, "type", {
111
111
  value: i,
112
112
  writable: !1,
@@ -125,27 +125,27 @@ var jr = [
125
125
  function Pr(e) {
126
126
  return M(this, void 0, void 0, function() {
127
127
  return $(this, function(r) {
128
- return oe(e) && Tr(e.dataTransfer) ? [2, Rr(e.dataTransfer, e.type)] : Ir(e) ? [2, Sr(e)] : Array.isArray(e) && e.every(function(t) {
128
+ return oe(e) && Ir(e.dataTransfer) ? [2, Rr(e.dataTransfer, e.type)] : Tr(e) ? [2, Cr(e)] : Array.isArray(e) && e.every(function(t) {
129
129
  return "getFile" in t && typeof t.getFile == "function";
130
- }) ? [2, Cr(e)] : [2, []];
130
+ }) ? [2, Sr(e)] : [2, []];
131
131
  });
132
132
  });
133
133
  }
134
- function Tr(e) {
134
+ function Ir(e) {
135
135
  return oe(e);
136
136
  }
137
- function Ir(e) {
137
+ function Tr(e) {
138
138
  return oe(e) && oe(e.target);
139
139
  }
140
140
  function oe(e) {
141
141
  return typeof e == "object" && e !== null;
142
142
  }
143
- function Sr(e) {
143
+ function Cr(e) {
144
144
  return we(e.target.files).map(function(r) {
145
- return Y(r);
145
+ return U(r);
146
146
  });
147
147
  }
148
- function Cr(e) {
148
+ function Sr(e) {
149
149
  return M(this, void 0, void 0, function() {
150
150
  var r;
151
151
  return $(this, function(t) {
@@ -156,7 +156,7 @@ function Cr(e) {
156
156
  }))];
157
157
  case 1:
158
158
  return r = t.sent(), [2, r.map(function(n) {
159
- return Y(n);
159
+ return U(n);
160
160
  })];
161
161
  }
162
162
  });
@@ -170,18 +170,18 @@ function Rr(e, r) {
170
170
  case 0:
171
171
  return e.items ? (t = we(e.items).filter(function(a) {
172
172
  return a.kind === "file";
173
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(kr))]) : [3, 2];
173
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(zr))]) : [3, 2];
174
174
  case 1:
175
- return n = i.sent(), [2, Ne(rr(n))];
175
+ return n = i.sent(), [2, Ye(tr(n))];
176
176
  case 2:
177
- return [2, Ne(we(e.files).map(function(a) {
178
- return Y(a);
177
+ return [2, Ye(we(e.files).map(function(a) {
178
+ return U(a);
179
179
  }))];
180
180
  }
181
181
  });
182
182
  });
183
183
  }
184
- function Ne(e) {
184
+ function Ye(e) {
185
185
  return e.filter(function(r) {
186
186
  return jr.indexOf(r.name) === -1;
187
187
  });
@@ -195,44 +195,44 @@ function we(e) {
195
195
  }
196
196
  return r;
197
197
  }
198
- function kr(e) {
198
+ function zr(e) {
199
199
  if (typeof e.webkitGetAsEntry != "function")
200
- return Ue(e);
200
+ return Ge(e);
201
201
  var r = e.webkitGetAsEntry();
202
- return r && r.isDirectory ? tr(r) : Ue(e);
202
+ return r && r.isDirectory ? nr(r) : Ge(e);
203
203
  }
204
- function rr(e) {
204
+ function tr(e) {
205
205
  return e.reduce(function(r, t) {
206
- return We(We([], Be(r), !1), Be(Array.isArray(t) ? rr(t) : [t]), !1);
206
+ return We(We([], Be(r), !1), Be(Array.isArray(t) ? tr(t) : [t]), !1);
207
207
  }, []);
208
208
  }
209
- function Ue(e) {
209
+ function Ge(e) {
210
210
  var r = e.getAsFile();
211
211
  if (!r)
212
212
  return Promise.reject("".concat(e, " is not a File"));
213
- var t = Y(r);
213
+ var t = U(r);
214
214
  return Promise.resolve(t);
215
215
  }
216
- function zr(e) {
216
+ function kr(e) {
217
217
  return M(this, void 0, void 0, function() {
218
218
  return $(this, function(r) {
219
- return [2, e.isDirectory ? tr(e) : Lr(e)];
219
+ return [2, e.isDirectory ? nr(e) : Lr(e)];
220
220
  });
221
221
  });
222
222
  }
223
- function tr(e) {
223
+ function nr(e) {
224
224
  var r = e.createReader();
225
225
  return new Promise(function(t, n) {
226
226
  var i = [];
227
227
  function a() {
228
- var s = this;
229
- r.readEntries(function(u) {
230
- return M(s, void 0, void 0, function() {
228
+ var u = this;
229
+ r.readEntries(function(s) {
230
+ return M(u, void 0, void 0, function() {
231
231
  var d, A, w;
232
232
  return $(this, function(v) {
233
233
  switch (v.label) {
234
234
  case 0:
235
- if (u.length) return [3, 5];
235
+ if (s.length) return [3, 5];
236
236
  v.label = 1;
237
237
  case 1:
238
238
  return v.trys.push([1, 3, , 4]), [4, Promise.all(i)];
@@ -243,7 +243,7 @@ function tr(e) {
243
243
  case 4:
244
244
  return [3, 6];
245
245
  case 5:
246
- w = Promise.all(u.map(zr)), i.push(w), a(), v.label = 6;
246
+ w = Promise.all(s.map(kr)), i.push(w), a(), v.label = 6;
247
247
  case 6:
248
248
  return [
249
249
  2
@@ -252,8 +252,8 @@ function tr(e) {
252
252
  }
253
253
  });
254
254
  });
255
- }, function(u) {
256
- n(u);
255
+ }, function(s) {
256
+ n(s);
257
257
  });
258
258
  }
259
259
  a();
@@ -264,7 +264,7 @@ function Lr(e) {
264
264
  return $(this, function(r) {
265
265
  return [2, new Promise(function(t, n) {
266
266
  e.file(function(i) {
267
- var a = Y(i, e.fullPath);
267
+ var a = U(i, e.fullPath);
268
268
  t(a);
269
269
  }, function(i) {
270
270
  n(i);
@@ -276,15 +276,15 @@ function Lr(e) {
276
276
  var Mr = function(e, r) {
277
277
  if (e && r) {
278
278
  var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
279
- return t.some(function(s) {
280
- var u = s.trim().toLowerCase();
281
- return u.charAt(0) === "." ? n.toLowerCase().endsWith(u) : u.endsWith("/*") ? a === u.replace(/\/.*$/, "") : i === u;
279
+ return t.some(function(u) {
280
+ var s = u.trim().toLowerCase();
281
+ return s.charAt(0) === "." ? n.toLowerCase().endsWith(s) : s.endsWith("/*") ? a === s.replace(/\/.*$/, "") : i === s;
282
282
  });
283
283
  }
284
284
  return !0;
285
285
  };
286
- function Ye(e) {
287
- return Hr(e) || Kr(e) || or(e) || $r();
286
+ function qe(e) {
287
+ return Hr(e) || Kr(e) || ir(e) || $r();
288
288
  }
289
289
  function $r() {
290
290
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -294,9 +294,9 @@ function Kr(e) {
294
294
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
295
295
  }
296
296
  function Hr(e) {
297
- if (Array.isArray(e)) return _e(e);
297
+ if (Array.isArray(e)) return Oe(e);
298
298
  }
299
- function Ge(e, r) {
299
+ function Je(e, r) {
300
300
  var t = Object.keys(e);
301
301
  if (Object.getOwnPropertySymbols) {
302
302
  var n = Object.getOwnPropertySymbols(e);
@@ -306,61 +306,61 @@ function Ge(e, r) {
306
306
  }
307
307
  return t;
308
308
  }
309
- function qe(e) {
309
+ function Ve(e) {
310
310
  for (var r = 1; r < arguments.length; r++) {
311
311
  var t = arguments[r] != null ? arguments[r] : {};
312
- r % 2 ? Ge(Object(t), !0).forEach(function(n) {
313
- nr(e, n, t[n]);
314
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(n) {
312
+ r % 2 ? Je(Object(t), !0).forEach(function(n) {
313
+ or(e, n, t[n]);
314
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Je(Object(t)).forEach(function(n) {
315
315
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
316
316
  });
317
317
  }
318
318
  return e;
319
319
  }
320
- function nr(e, r, t) {
320
+ function or(e, r, t) {
321
321
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
322
322
  }
323
- function U(e, r) {
324
- return Nr(e) || Br(e, r) || or(e, r) || Wr();
323
+ function B(e, r) {
324
+ return Br(e) || Wr(e, r) || ir(e, r) || Nr();
325
325
  }
326
- function Wr() {
326
+ function Nr() {
327
327
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
328
328
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
329
329
  }
330
- function or(e, r) {
330
+ function ir(e, r) {
331
331
  if (e) {
332
- if (typeof e == "string") return _e(e, r);
332
+ if (typeof e == "string") return Oe(e, r);
333
333
  var t = Object.prototype.toString.call(e).slice(8, -1);
334
334
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
335
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _e(e, r);
335
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oe(e, r);
336
336
  }
337
337
  }
338
- function _e(e, r) {
338
+ function Oe(e, r) {
339
339
  (r == null || r > e.length) && (r = e.length);
340
340
  for (var t = 0, n = new Array(r); t < r; t++)
341
341
  n[t] = e[t];
342
342
  return n;
343
343
  }
344
- function Br(e, r) {
344
+ function Wr(e, r) {
345
345
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
346
346
  if (t != null) {
347
- var n = [], i = !0, a = !1, s, u;
347
+ var n = [], i = !0, a = !1, u, s;
348
348
  try {
349
- for (t = t.call(e); !(i = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); i = !0)
349
+ for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
350
350
  ;
351
351
  } catch (d) {
352
- a = !0, u = d;
352
+ a = !0, s = d;
353
353
  } finally {
354
354
  try {
355
355
  !i && t.return != null && t.return();
356
356
  } finally {
357
- if (a) throw u;
357
+ if (a) throw s;
358
358
  }
359
359
  }
360
360
  return n;
361
361
  }
362
362
  }
363
- function Nr(e) {
363
+ function Br(e) {
364
364
  if (Array.isArray(e)) return e;
365
365
  }
366
366
  var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr = "too-many-files", Jr = function(r) {
@@ -370,12 +370,12 @@ var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr =
370
370
  code: Ur,
371
371
  message: "File type must be ".concat(t)
372
372
  };
373
- }, Je = function(r) {
373
+ }, Qe = function(r) {
374
374
  return {
375
375
  code: Yr,
376
376
  message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
377
377
  };
378
- }, Ve = function(r) {
378
+ }, Xe = function(r) {
379
379
  return {
380
380
  code: Gr,
381
381
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
@@ -384,28 +384,28 @@ var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr =
384
384
  code: qr,
385
385
  message: "Too many files"
386
386
  };
387
- function ir(e, r) {
387
+ function ar(e, r) {
388
388
  var t = e.type === "application/x-moz-file" || Mr(e, r);
389
389
  return [t, t ? null : Jr(r)];
390
390
  }
391
- function ar(e, r, t) {
392
- if (S(e.size))
393
- if (S(r) && S(t)) {
394
- if (e.size > t) return [!1, Je(t)];
395
- if (e.size < r) return [!1, Ve(r)];
391
+ function cr(e, r, t) {
392
+ if (C(e.size))
393
+ if (C(r) && C(t)) {
394
+ if (e.size > t) return [!1, Qe(t)];
395
+ if (e.size < r) return [!1, Xe(r)];
396
396
  } else {
397
- if (S(r) && e.size < r) return [!1, Ve(r)];
398
- if (S(t) && e.size > t) return [!1, Je(t)];
397
+ if (C(r) && e.size < r) return [!1, Xe(r)];
398
+ if (C(t) && e.size > t) return [!1, Qe(t)];
399
399
  }
400
400
  return [!0, null];
401
401
  }
402
- function S(e) {
402
+ function C(e) {
403
403
  return e != null;
404
404
  }
405
405
  function Qr(e) {
406
- var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, s = e.maxFiles, u = e.validator;
407
- return !a && r.length > 1 || a && s >= 1 && r.length > s ? !1 : r.every(function(d) {
408
- var A = ir(d, t), w = U(A, 1), v = w[0], x = ar(d, n, i), E = U(x, 1), j = E[0], P = u ? u(d) : null;
406
+ var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, u = e.maxFiles, s = e.validator;
407
+ return !a && r.length > 1 || a && u >= 1 && r.length > u ? !1 : r.every(function(d) {
408
+ var A = ar(d, t), w = B(A, 1), v = w[0], _ = cr(d, n, i), x = B(_, 1), j = x[0], P = s ? s(d) : null;
409
409
  return v && j && !P;
410
410
  });
411
411
  }
@@ -417,7 +417,7 @@ function ne(e) {
417
417
  return r === "Files" || r === "application/x-moz-file";
418
418
  }) : !!e.target && !!e.target.files;
419
419
  }
420
- function Qe(e) {
420
+ function Ze(e) {
421
421
  e.preventDefault();
422
422
  }
423
423
  function Xr(e) {
@@ -430,14 +430,14 @@ function et() {
430
430
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
431
431
  return Xr(e) || Zr(e);
432
432
  }
433
- function _() {
433
+ function O() {
434
434
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
435
435
  r[t] = arguments[t];
436
436
  return function(n) {
437
- for (var i = arguments.length, a = new Array(i > 1 ? i - 1 : 0), s = 1; s < i; s++)
438
- a[s - 1] = arguments[s];
439
- return r.some(function(u) {
440
- return !ie(n) && u && u.apply(void 0, [n].concat(a)), ie(n);
437
+ for (var i = arguments.length, a = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
438
+ a[u - 1] = arguments[u];
439
+ return r.some(function(s) {
440
+ return !ie(n) && s && s.apply(void 0, [n].concat(a)), ie(n);
441
441
  });
442
442
  };
443
443
  }
@@ -445,13 +445,13 @@ function rt() {
445
445
  return "showOpenFilePicker" in window;
446
446
  }
447
447
  function tt(e) {
448
- if (S(e)) {
448
+ if (C(e)) {
449
449
  var r = Object.entries(e).filter(function(t) {
450
- var n = U(t, 2), i = n[0], a = n[1], s = !0;
451
- return cr(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(a) || !a.every(ur)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), s = !1), s;
450
+ var n = B(t, 2), i = n[0], a = n[1], u = !0;
451
+ return ur(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), u = !1), (!Array.isArray(a) || !a.every(sr)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), u = !1), u;
452
452
  }).reduce(function(t, n) {
453
- var i = U(n, 2), a = i[0], s = i[1];
454
- return qe(qe({}, t), {}, nr({}, a, s));
453
+ var i = B(n, 2), a = i[0], u = i[1];
454
+ return Ve(Ve({}, t), {}, or({}, a, u));
455
455
  }, {});
456
456
  return [{
457
457
  // description is required due to https://crbug.com/1264708
@@ -462,12 +462,12 @@ function tt(e) {
462
462
  return e;
463
463
  }
464
464
  function nt(e) {
465
- if (S(e))
465
+ if (C(e))
466
466
  return Object.entries(e).reduce(function(r, t) {
467
- var n = U(t, 2), i = n[0], a = n[1];
468
- return [].concat(Ye(r), [i], Ye(a));
467
+ var n = B(t, 2), i = n[0], a = n[1];
468
+ return [].concat(qe(r), [i], qe(a));
469
469
  }, []).filter(function(r) {
470
- return cr(r) || ur(r);
470
+ return ur(r) || sr(r);
471
471
  }).join(",");
472
472
  }
473
473
  function ot(e) {
@@ -476,15 +476,15 @@ function ot(e) {
476
476
  function it(e) {
477
477
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
478
478
  }
479
- function cr(e) {
479
+ function ur(e) {
480
480
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
481
481
  }
482
- function ur(e) {
482
+ function sr(e) {
483
483
  return /^.*\.[\w]+$/.test(e);
484
484
  }
485
485
  var at = ["children"], ct = ["open"], ut = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], st = ["refKey", "onChange", "onClick"];
486
486
  function lt(e) {
487
- return dt(e) || pt(e) || sr(e) || ft();
487
+ return dt(e) || pt(e) || lr(e) || ft();
488
488
  }
489
489
  function ft() {
490
490
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -494,24 +494,24 @@ function pt(e) {
494
494
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
495
495
  }
496
496
  function dt(e) {
497
- if (Array.isArray(e)) return Fe(e);
497
+ if (Array.isArray(e)) return Ee(e);
498
498
  }
499
499
  function Ae(e, r) {
500
- return vt(e) || gt(e, r) || sr(e, r) || mt();
500
+ return vt(e) || gt(e, r) || lr(e, r) || mt();
501
501
  }
502
502
  function mt() {
503
503
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
504
504
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
505
505
  }
506
- function sr(e, r) {
506
+ function lr(e, r) {
507
507
  if (e) {
508
- if (typeof e == "string") return Fe(e, r);
508
+ if (typeof e == "string") return Ee(e, r);
509
509
  var t = Object.prototype.toString.call(e).slice(8, -1);
510
510
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
511
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Fe(e, r);
511
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ee(e, r);
512
512
  }
513
513
  }
514
- function Fe(e, r) {
514
+ function Ee(e, r) {
515
515
  (r == null || r > e.length) && (r = e.length);
516
516
  for (var t = 0, n = new Array(r); t < r; t++)
517
517
  n[t] = e[t];
@@ -520,17 +520,17 @@ function Fe(e, r) {
520
520
  function gt(e, r) {
521
521
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
522
522
  if (t != null) {
523
- var n = [], i = !0, a = !1, s, u;
523
+ var n = [], i = !0, a = !1, u, s;
524
524
  try {
525
- for (t = t.call(e); !(i = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); i = !0)
525
+ for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
526
526
  ;
527
527
  } catch (d) {
528
- a = !0, u = d;
528
+ a = !0, s = d;
529
529
  } finally {
530
530
  try {
531
531
  !i && t.return != null && t.return();
532
532
  } finally {
533
- if (a) throw u;
533
+ if (a) throw s;
534
534
  }
535
535
  }
536
536
  return n;
@@ -539,7 +539,7 @@ function gt(e, r) {
539
539
  function vt(e) {
540
540
  if (Array.isArray(e)) return e;
541
541
  }
542
- function Xe(e, r) {
542
+ function er(e, r) {
543
543
  var t = Object.keys(e);
544
544
  if (Object.getOwnPropertySymbols) {
545
545
  var n = Object.getOwnPropertySymbols(e);
@@ -552,15 +552,15 @@ function Xe(e, r) {
552
552
  function f(e) {
553
553
  for (var r = 1; r < arguments.length; r++) {
554
554
  var t = arguments[r] != null ? arguments[r] : {};
555
- r % 2 ? Xe(Object(t), !0).forEach(function(n) {
556
- Oe(e, n, t[n]);
557
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(n) {
555
+ r % 2 ? er(Object(t), !0).forEach(function(n) {
556
+ Fe(e, n, t[n]);
557
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : er(Object(t)).forEach(function(n) {
558
558
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
559
559
  });
560
560
  }
561
561
  return e;
562
562
  }
563
- function Oe(e, r, t) {
563
+ function Fe(e, r, t) {
564
564
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
565
565
  }
566
566
  function ae(e, r) {
@@ -580,18 +580,18 @@ function yt(e, r) {
580
580
  i = n[a], !(r.indexOf(i) >= 0) && (t[i] = e[i]);
581
581
  return t;
582
582
  }
583
- var Ee = /* @__PURE__ */ hr(function(e, r) {
584
- var t = e.children, n = ae(e, at), i = fr(n), a = i.open, s = ae(i, ct);
585
- return Dr(r, function() {
583
+ var je = /* @__PURE__ */ Dr(function(e, r) {
584
+ var t = e.children, n = ae(e, at), i = pr(n), a = i.open, u = ae(i, ct);
585
+ return Ar(r, function() {
586
586
  return {
587
587
  open: a
588
588
  };
589
- }, [a]), /* @__PURE__ */ er.createElement(Ar, null, t(f(f({}, s), {}, {
589
+ }, [a]), /* @__PURE__ */ xe.createElement(wr, null, t(f(f({}, u), {}, {
590
590
  open: a
591
591
  })));
592
592
  });
593
- Ee.displayName = "Dropzone";
594
- var lr = {
593
+ je.displayName = "Dropzone";
594
+ var fr = {
595
595
  disabled: !1,
596
596
  getFilesFromEvent: Pr,
597
597
  maxSize: 1 / 0,
@@ -607,8 +607,8 @@ var lr = {
607
607
  useFsAccessApi: !0,
608
608
  autoFocus: !1
609
609
  };
610
- Ee.defaultProps = lr;
611
- Ee.propTypes = {
610
+ je.defaultProps = fr;
611
+ je.propTypes = {
612
612
  /**
613
613
  * Render function that exposes the dropzone state and prop getter fns
614
614
  *
@@ -776,7 +776,7 @@ Ee.propTypes = {
776
776
  */
777
777
  validator: l.func
778
778
  };
779
- var xe = {
779
+ var _e = {
780
780
  isFocused: !1,
781
781
  isFileDialogActive: !1,
782
782
  isDragActive: !1,
@@ -785,52 +785,52 @@ var xe = {
785
785
  acceptedFiles: [],
786
786
  fileRejections: []
787
787
  };
788
- function fr() {
789
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({}, lr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, a = r.maxSize, s = r.minSize, u = r.multiple, d = r.maxFiles, A = r.onDragEnter, w = r.onDragLeave, v = r.onDragOver, x = r.onDrop, E = r.onDropAccepted, j = r.onDropRejected, P = r.onFileDialogCancel, K = r.onFileDialogOpen, G = r.useFsAccessApi, q = r.autoFocus, O = r.preventDropOnDocument, je = r.noClick, ce = r.noKeyboard, Pe = r.noDrag, T = r.noDragEventsBubbling, ue = r.onError, H = r.validator, W = L(function() {
788
+ function pr() {
789
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({}, fr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, a = r.maxSize, u = r.minSize, s = r.multiple, d = r.maxFiles, A = r.onDragEnter, w = r.onDragLeave, v = r.onDragOver, _ = r.onDrop, x = r.onDropAccepted, j = r.onDropRejected, P = r.onFileDialogCancel, K = r.onFileDialogOpen, Y = r.useFsAccessApi, G = r.autoFocus, E = r.preventDropOnDocument, Pe = r.noClick, ce = r.noKeyboard, Ie = r.noDrag, I = r.noDragEventsBubbling, ue = r.onError, H = r.validator, N = L(function() {
790
790
  return nt(t);
791
791
  }, [t]), Te = L(function() {
792
792
  return tt(t);
793
793
  }, [t]), se = L(function() {
794
- return typeof K == "function" ? K : Ze;
795
- }, [K]), J = L(function() {
796
- return typeof P == "function" ? P : Ze;
797
- }, [P]), g = te(null), h = te(null), pr = br(bt, xe), Ie = Ae(pr, 2), le = Ie[0], y = Ie[1], dr = le.isFocused, Se = le.isFileDialogActive, V = te(typeof window < "u" && window.isSecureContext && G && rt()), Ce = function() {
798
- !V.current && Se && setTimeout(function() {
794
+ return typeof K == "function" ? K : rr;
795
+ }, [K]), q = L(function() {
796
+ return typeof P == "function" ? P : rr;
797
+ }, [P]), g = te(null), h = te(null), dr = hr(bt, _e), Ce = Ae(dr, 2), le = Ce[0], y = Ce[1], mr = le.isFocused, Se = le.isFileDialogActive, J = te(typeof window < "u" && window.isSecureContext && Y && rt()), Re = function() {
798
+ !J.current && Se && setTimeout(function() {
799
799
  if (h.current) {
800
800
  var c = h.current.files;
801
801
  c.length || (y({
802
802
  type: "closeDialog"
803
- }), J());
803
+ }), q());
804
804
  }
805
805
  }, 300);
806
806
  };
807
807
  De(function() {
808
- return window.addEventListener("focus", Ce, !1), function() {
809
- window.removeEventListener("focus", Ce, !1);
808
+ return window.addEventListener("focus", Re, !1), function() {
809
+ window.removeEventListener("focus", Re, !1);
810
810
  };
811
- }, [h, Se, J, V]);
812
- var C = te([]), Re = function(c) {
813
- g.current && g.current.contains(c.target) || (c.preventDefault(), C.current = []);
811
+ }, [h, Se, q, J]);
812
+ var S = te([]), ze = function(c) {
813
+ g.current && g.current.contains(c.target) || (c.preventDefault(), S.current = []);
814
814
  };
815
815
  De(function() {
816
- return O && (document.addEventListener("dragover", Qe, !1), document.addEventListener("drop", Re, !1)), function() {
817
- O && (document.removeEventListener("dragover", Qe), document.removeEventListener("drop", Re));
816
+ return E && (document.addEventListener("dragover", Ze, !1), document.addEventListener("drop", ze, !1)), function() {
817
+ E && (document.removeEventListener("dragover", Ze), document.removeEventListener("drop", ze));
818
818
  };
819
- }, [g, O]), De(function() {
820
- return !n && q && g.current && g.current.focus(), function() {
819
+ }, [g, E]), De(function() {
820
+ return !n && G && g.current && g.current.focus(), function() {
821
821
  };
822
- }, [g, q, n]);
823
- var I = D(function(o) {
822
+ }, [g, G, n]);
823
+ var T = D(function(o) {
824
824
  ue ? ue(o) : console.error(o);
825
825
  }, [ue]), ke = D(function(o) {
826
- o.preventDefault(), o.persist(), ee(o), C.current = [].concat(lt(C.current), [o.target]), ne(o) && Promise.resolve(i(o)).then(function(c) {
827
- if (!(ie(o) && !T)) {
826
+ o.preventDefault(), o.persist(), Z(o), S.current = [].concat(lt(S.current), [o.target]), ne(o) && Promise.resolve(i(o)).then(function(c) {
827
+ if (!(ie(o) && !I)) {
828
828
  var p = c.length, m = p > 0 && Qr({
829
829
  files: c,
830
- accept: W,
831
- minSize: s,
830
+ accept: N,
831
+ minSize: u,
832
832
  maxSize: a,
833
- multiple: u,
833
+ multiple: s,
834
834
  maxFiles: d,
835
835
  validator: H
836
836
  }), b = p > 0 && !m;
@@ -842,10 +842,10 @@ function fr() {
842
842
  }), A && A(o);
843
843
  }
844
844
  }).catch(function(c) {
845
- return I(c);
845
+ return T(c);
846
846
  });
847
- }, [i, A, I, T, W, s, a, u, d, H]), ze = D(function(o) {
848
- o.preventDefault(), o.persist(), ee(o);
847
+ }, [i, A, T, I, N, u, a, s, d, H]), Le = D(function(o) {
848
+ o.preventDefault(), o.persist(), Z(o);
849
849
  var c = ne(o);
850
850
  if (c && o.dataTransfer)
851
851
  try {
@@ -853,33 +853,33 @@ function fr() {
853
853
  } catch {
854
854
  }
855
855
  return c && v && v(o), !1;
856
- }, [v, T]), Le = D(function(o) {
857
- o.preventDefault(), o.persist(), ee(o);
858
- var c = C.current.filter(function(m) {
856
+ }, [v, I]), Me = D(function(o) {
857
+ o.preventDefault(), o.persist(), Z(o);
858
+ var c = S.current.filter(function(m) {
859
859
  return g.current && g.current.contains(m);
860
860
  }), p = c.indexOf(o.target);
861
- p !== -1 && c.splice(p, 1), C.current = c, !(c.length > 0) && (y({
861
+ p !== -1 && c.splice(p, 1), S.current = c, !(c.length > 0) && (y({
862
862
  type: "setDraggedFiles",
863
863
  isDragActive: !1,
864
864
  isDragAccept: !1,
865
865
  isDragReject: !1
866
866
  }), ne(o) && w && w(o));
867
- }, [g, w, T]), Q = D(function(o, c) {
867
+ }, [g, w, I]), V = D(function(o, c) {
868
868
  var p = [], m = [];
869
869
  o.forEach(function(b) {
870
- var B = ir(b, W), z = Ae(B, 2), pe = z[0], de = z[1], me = ar(b, s, a), re = Ae(me, 2), ge = re[0], ve = re[1], ye = H ? H(b) : null;
870
+ var W = ar(b, N), k = Ae(W, 2), pe = k[0], de = k[1], me = cr(b, u, a), ee = Ae(me, 2), ge = ee[0], ve = ee[1], ye = H ? H(b) : null;
871
871
  if (pe && ge && !ye)
872
872
  p.push(b);
873
873
  else {
874
874
  var be = [de, ve];
875
875
  ye && (be = be.concat(ye)), m.push({
876
876
  file: b,
877
- errors: be.filter(function(yr) {
878
- return yr;
877
+ errors: be.filter(function(br) {
878
+ return br;
879
879
  })
880
880
  });
881
881
  }
882
- }), (!u && p.length > 1 || u && d >= 1 && p.length > d) && (p.forEach(function(b) {
882
+ }), (!s && p.length > 1 || s && d >= 1 && p.length > d) && (p.forEach(function(b) {
883
883
  m.push({
884
884
  file: b,
885
885
  errors: [Vr]
@@ -888,102 +888,102 @@ function fr() {
888
888
  acceptedFiles: p,
889
889
  fileRejections: m,
890
890
  type: "setFiles"
891
- }), x && x(p, m, c), m.length > 0 && j && j(m, c), p.length > 0 && E && E(p, c);
892
- }, [y, u, W, s, a, d, x, E, j, H]), X = D(function(o) {
893
- o.preventDefault(), o.persist(), ee(o), C.current = [], ne(o) && Promise.resolve(i(o)).then(function(c) {
894
- ie(o) && !T || Q(c, o);
891
+ }), _ && _(p, m, c), m.length > 0 && j && j(m, c), p.length > 0 && x && x(p, c);
892
+ }, [y, s, N, u, a, d, _, x, j, H]), Q = D(function(o) {
893
+ o.preventDefault(), o.persist(), Z(o), S.current = [], ne(o) && Promise.resolve(i(o)).then(function(c) {
894
+ ie(o) && !I || V(c, o);
895
895
  }).catch(function(c) {
896
- return I(c);
896
+ return T(c);
897
897
  }), y({
898
898
  type: "reset"
899
899
  });
900
- }, [i, Q, I, T]), R = D(function() {
901
- if (V.current) {
900
+ }, [i, V, T, I]), R = D(function() {
901
+ if (J.current) {
902
902
  y({
903
903
  type: "openDialog"
904
904
  }), se();
905
905
  var o = {
906
- multiple: u,
906
+ multiple: s,
907
907
  types: Te
908
908
  };
909
909
  window.showOpenFilePicker(o).then(function(c) {
910
910
  return i(c);
911
911
  }).then(function(c) {
912
- Q(c, null), y({
912
+ V(c, null), y({
913
913
  type: "closeDialog"
914
914
  });
915
915
  }).catch(function(c) {
916
- ot(c) ? (J(c), y({
916
+ ot(c) ? (q(c), y({
917
917
  type: "closeDialog"
918
- })) : it(c) ? (V.current = !1, h.current ? (h.current.value = null, h.current.click()) : I(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : I(c);
918
+ })) : it(c) ? (J.current = !1, h.current ? (h.current.value = null, h.current.click()) : T(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : T(c);
919
919
  });
920
920
  return;
921
921
  }
922
922
  h.current && (y({
923
923
  type: "openDialog"
924
924
  }), se(), h.current.value = null, h.current.click());
925
- }, [y, se, J, G, Q, I, Te, u]), Me = D(function(o) {
925
+ }, [y, se, q, Y, V, T, Te, s]), $e = D(function(o) {
926
926
  !g.current || !g.current.isEqualNode(o.target) || (o.key === " " || o.key === "Enter" || o.keyCode === 32 || o.keyCode === 13) && (o.preventDefault(), R());
927
- }, [g, R]), $e = D(function() {
927
+ }, [g, R]), Ke = D(function() {
928
928
  y({
929
929
  type: "focus"
930
930
  });
931
- }, []), Ke = D(function() {
931
+ }, []), He = D(function() {
932
932
  y({
933
933
  type: "blur"
934
934
  });
935
- }, []), He = D(function() {
936
- je || (et() ? setTimeout(R, 0) : R());
937
- }, [je, R]), k = function(c) {
935
+ }, []), Ne = D(function() {
936
+ Pe || (et() ? setTimeout(R, 0) : R());
937
+ }, [Pe, R]), z = function(c) {
938
938
  return n ? null : c;
939
939
  }, fe = function(c) {
940
- return ce ? null : k(c);
940
+ return ce ? null : z(c);
941
+ }, X = function(c) {
942
+ return Ie ? null : z(c);
941
943
  }, Z = function(c) {
942
- return Pe ? null : k(c);
943
- }, ee = function(c) {
944
- T && c.stopPropagation();
945
- }, mr = L(function() {
944
+ I && c.stopPropagation();
945
+ }, gr = L(function() {
946
946
  return function() {
947
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, B = o.onFocus, z = o.onBlur, pe = o.onClick, de = o.onDragEnter, me = o.onDragOver, re = o.onDragLeave, ge = o.onDrop, ve = ae(o, ut);
948
- return f(f(Oe({
949
- onKeyDown: fe(_(b, Me)),
950
- onFocus: fe(_(B, $e)),
951
- onBlur: fe(_(z, Ke)),
952
- onClick: k(_(pe, He)),
953
- onDragEnter: Z(_(de, ke)),
954
- onDragOver: Z(_(me, ze)),
955
- onDragLeave: Z(_(re, Le)),
956
- onDrop: Z(_(ge, X)),
947
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, W = o.onFocus, k = o.onBlur, pe = o.onClick, de = o.onDragEnter, me = o.onDragOver, ee = o.onDragLeave, ge = o.onDrop, ve = ae(o, ut);
948
+ return f(f(Fe({
949
+ onKeyDown: fe(O(b, $e)),
950
+ onFocus: fe(O(W, Ke)),
951
+ onBlur: fe(O(k, He)),
952
+ onClick: z(O(pe, Ne)),
953
+ onDragEnter: X(O(de, ke)),
954
+ onDragOver: X(O(me, Le)),
955
+ onDragLeave: X(O(ee, Me)),
956
+ onDrop: X(O(ge, Q)),
957
957
  role: typeof m == "string" && m !== "" ? m : "presentation"
958
958
  }, p, g), !n && !ce ? {
959
959
  tabIndex: 0
960
960
  } : {}), ve);
961
961
  };
962
- }, [g, Me, $e, Ke, He, ke, ze, Le, X, ce, Pe, n]), gr = D(function(o) {
962
+ }, [g, $e, Ke, He, Ne, ke, Le, Me, Q, ce, Ie, n]), vr = D(function(o) {
963
963
  o.stopPropagation();
964
- }, []), vr = L(function() {
964
+ }, []), yr = L(function() {
965
965
  return function() {
966
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, B = ae(o, st), z = Oe({
967
- accept: W,
968
- multiple: u,
966
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, W = ae(o, st), k = Fe({
967
+ accept: N,
968
+ multiple: s,
969
969
  type: "file",
970
970
  style: {
971
971
  display: "none"
972
972
  },
973
- onChange: k(_(m, X)),
974
- onClick: k(_(b, gr)),
973
+ onChange: z(O(m, Q)),
974
+ onClick: z(O(b, vr)),
975
975
  tabIndex: -1
976
976
  }, p, h);
977
- return f(f({}, z), B);
977
+ return f(f({}, k), W);
978
978
  };
979
- }, [h, t, u, X, n]);
979
+ }, [h, t, s, Q, n]);
980
980
  return f(f({}, le), {}, {
981
- isFocused: dr && !n,
982
- getRootProps: mr,
983
- getInputProps: vr,
981
+ isFocused: mr && !n,
982
+ getRootProps: gr,
983
+ getInputProps: yr,
984
984
  rootRef: g,
985
985
  inputRef: h,
986
- open: k(R)
986
+ open: z(R)
987
987
  });
988
988
  }
989
989
  function bt(e, r) {
@@ -997,7 +997,7 @@ function bt(e, r) {
997
997
  isFocused: !1
998
998
  });
999
999
  case "openDialog":
1000
- return f(f({}, xe), {}, {
1000
+ return f(f({}, _e), {}, {
1001
1001
  isFileDialogActive: !0
1002
1002
  });
1003
1003
  case "closeDialog":
@@ -1016,88 +1016,89 @@ function bt(e, r) {
1016
1016
  fileRejections: r.fileRejections
1017
1017
  });
1018
1018
  case "reset":
1019
- return f({}, xe);
1019
+ return f({}, _e);
1020
1020
  default:
1021
1021
  return e;
1022
1022
  }
1023
1023
  }
1024
- function Ze() {
1024
+ function rr() {
1025
1025
  }
1026
- const ht = "_root_1kc1u_1", Dt = "_dropzone_1kc1u_1", At = "_text_1kc1u_21", wt = "_disabled_1kc1u_30", _t = "_focused_1kc1u_41", Ft = "_dragActive_1kc1u_41", Ot = "_linkText_1kc1u_47", F = {
1027
- root: ht,
1028
- dropzone: Dt,
1029
- text: At,
1030
- disabled: wt,
1031
- focused: _t,
1032
- dragActive: Ft,
1033
- linkText: Ot
1026
+ const ht = "_dropzone_ir264_1", Dt = "_text_ir264_19", At = "_disabled_ir264_25", wt = "_focused_ir264_39", Ot = "_dragActive_ir264_39", F = {
1027
+ dropzone: ht,
1028
+ text: Dt,
1029
+ disabled: At,
1030
+ focused: wt,
1031
+ dragActive: Ot
1034
1032
  };
1035
- function Rt(e) {
1033
+ function Et(e) {
1036
1034
  const {
1037
- value: r,
1038
- onChange: t,
1039
- text: n,
1040
- linkText: i,
1041
- removeItemAriaLabel: a = "",
1042
- rootAriaLabel: s = "",
1035
+ value: r = [],
1036
+ text: t,
1037
+ linkText: n,
1038
+ removeItemAriaLabel: i = "",
1039
+ rootAriaLabel: a = "",
1043
1040
  onRemoveFile: u,
1044
- ...d
1041
+ dropzoneItemClassName: s,
1042
+ dropzoneClassName: d,
1043
+ ...A
1045
1044
  } = e, {
1046
- isFocused: A,
1047
- isDragActive: w,
1048
- isDragAccept: v,
1045
+ isFocused: w,
1046
+ isDragActive: v,
1047
+ isDragAccept: _,
1049
1048
  isDragReject: x,
1050
- isFileDialogActive: E,
1051
- acceptedFiles: j,
1049
+ isFileDialogActive: j,
1052
1050
  getRootProps: P,
1053
1051
  getInputProps: K
1054
- } = fr(d), G = er.useCallback((O) => {
1055
- u && u(O);
1056
- }, [u]), q = Fr(F.dropzone, {
1057
- [F.disabled]: d.disabled,
1058
- [F.focused]: A,
1059
- [F.dragActive]: w,
1060
- [F.dragAccept]: v,
1052
+ } = pr(A), Y = xe.useCallback((E) => {
1053
+ u && u(E);
1054
+ }, [u]), G = Er(F.dropzone, d, {
1055
+ [F.disabled]: A.disabled,
1056
+ [F.focused]: w,
1057
+ [F.dragActive]: v,
1058
+ [F.dragAccept]: _,
1061
1059
  [F.dragReject]: x,
1062
- [F.fileDialogActive]: E
1060
+ [F.fileDialogActive]: j
1063
1061
  });
1064
- return /* @__PURE__ */ he("section", { className: F.root, children: [
1062
+ return /* @__PURE__ */ he("section", { children: [
1065
1063
  /* @__PURE__ */ he(
1066
1064
  "div",
1067
1065
  {
1068
- className: q,
1066
+ className: G,
1069
1067
  ...P({
1070
- "aria-label": s
1068
+ "aria-label": a
1071
1069
  }),
1072
1070
  children: [
1073
- /* @__PURE__ */ N(
1074
- "input",
1075
- {
1076
- ...K({
1077
- value: r,
1078
- onChange: t
1079
- })
1080
- }
1081
- ),
1082
- /* @__PURE__ */ N(_r, { size: "xxlarge", children: /* @__PURE__ */ N(wr, {}) }),
1083
- /* @__PURE__ */ he("span", { className: F.text, children: [
1084
- i ? `${n} ` : n,
1085
- !!i && /* @__PURE__ */ N("span", { className: F.linkText, children: i })
1071
+ /* @__PURE__ */ re("input", { ...K() }),
1072
+ /* @__PURE__ */ re(Or, { name: "Upload" }),
1073
+ /* @__PURE__ */ he(Ue, { family: "secondary", className: F.text, children: [
1074
+ n ? `${t} ` : t,
1075
+ !!n && /* @__PURE__ */ re(
1076
+ Ue,
1077
+ {
1078
+ weight: "bold",
1079
+ family: "secondary",
1080
+ color: "tertiary",
1081
+ underlined: !0,
1082
+ children: n
1083
+ }
1084
+ )
1086
1085
  ] })
1087
1086
  ]
1088
1087
  }
1089
1088
  ),
1090
- j.map((O) => /* @__PURE__ */ N(
1091
- Or,
1089
+ r.map((E) => /* @__PURE__ */ re(
1090
+ Fr,
1092
1091
  {
1093
- removeAriaLabel: a,
1094
- file: O,
1095
- onRemoveFile: G
1092
+ removeAriaLabel: i,
1093
+ file: E,
1094
+ onRemoveFile: Y,
1095
+ className: s
1096
1096
  },
1097
- O.path
1097
+ E.path
1098
1098
  ))
1099
1099
  ] });
1100
1100
  }
1101
+ const St = xe.memo(Et);
1101
1102
  export {
1102
- Rt as InputDropzone
1103
+ St as default
1103
1104
  };