@opexa/portal-components 0.0.275 → 0.0.277

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 (259) hide show
  1. package/dist/client/hooks/index.d.ts +65 -0
  2. package/dist/client/hooks/index.js +65 -0
  3. package/dist/client/services/index.d.ts +4 -0
  4. package/dist/client/services/index.js +4 -0
  5. package/dist/client/utils/index.d.ts +3 -0
  6. package/dist/client/utils/index.js +3 -0
  7. package/dist/components/Bonus/Bonus.client.js +1 -1
  8. package/dist/components/Cashback/Cashback.client.js +1 -1
  9. package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +2 -0
  10. package/dist/components/CashbackBonus/CashbackBonus.client.js +9 -0
  11. package/dist/components/CashbackBonus/CashbackBonus.d.ts +10 -0
  12. package/dist/components/CashbackBonus/CashbackBonus.js +5 -0
  13. package/dist/components/CashbackBonus/index.d.ts +1 -0
  14. package/dist/components/CashbackBonus/index.js +1 -0
  15. package/dist/components/CustomPromo/CustomPromo.js +1 -1
  16. package/dist/components/Empty.d.ts +9 -0
  17. package/dist/components/Empty.js +7 -0
  18. package/dist/components/FeatureFlag/FeatureFlag.d.ts +1 -0
  19. package/dist/components/FeatureFlag/FeatureFlag.js +29 -0
  20. package/dist/components/FeatureFlag/index.d.ts +1 -0
  21. package/dist/components/FeatureFlag/index.js +1 -0
  22. package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
  23. package/dist/components/Games/GameContext.d.ts +2 -0
  24. package/dist/components/Games/GameContext.js +2 -0
  25. package/dist/components/GamesSearch/GamesSearch.js +1 -1
  26. package/dist/components/InfiniteScroll.d.ts +10 -0
  27. package/dist/components/InfiniteScroll.js +25 -0
  28. package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +2 -0
  29. package/dist/components/JackpotCounter/JackpotCounter.client.js +66 -0
  30. package/dist/components/JackpotCounter/JackpotCounter.d.ts +17 -0
  31. package/dist/components/JackpotCounter/JackpotCounter.js +21 -0
  32. package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +18 -0
  33. package/dist/components/JackpotCounter/JackpotCounterItem.js +109 -0
  34. package/dist/components/JackpotCounter/JackpotCounterItem.module.css +184 -0
  35. package/dist/components/JackpotCounter/index.d.ts +1 -0
  36. package/dist/components/JackpotCounter/index.js +1 -0
  37. package/dist/components/Jackpots/JackpotDesktop.d.ts +1 -0
  38. package/dist/components/Jackpots/JackpotDesktop.js +45 -0
  39. package/dist/components/Jackpots/JackpotGameProviders.d.ts +5 -0
  40. package/dist/components/Jackpots/JackpotGameProviders.js +41 -0
  41. package/dist/components/Jackpots/JackpotItemDesktop.d.ts +9 -0
  42. package/dist/components/Jackpots/JackpotItemDesktop.js +43 -0
  43. package/dist/components/Jackpots/JackpotItemMobile.d.ts +9 -0
  44. package/dist/components/Jackpots/JackpotItemMobile.js +44 -0
  45. package/dist/components/Jackpots/JackpotMobile.d.ts +1 -0
  46. package/dist/components/Jackpots/JackpotMobile.js +46 -0
  47. package/dist/components/Jackpots/JackpotRules.d.ts +5 -0
  48. package/dist/components/Jackpots/JackpotRules.js +11 -0
  49. package/dist/components/Jackpots/Jackpots.client.d.ts +2 -0
  50. package/dist/components/Jackpots/Jackpots.client.js +29 -0
  51. package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
  52. package/dist/components/Jackpots/JackpotsContext.d.ts +4 -0
  53. package/dist/components/Jackpots/JackpotsContext.js +3 -0
  54. package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
  55. package/dist/components/Jackpots/useJackpotData.d.ts +14 -0
  56. package/dist/components/Jackpots/useJackpotData.js +93 -0
  57. package/dist/components/Jackpots/useJackpotItemData.d.ts +20 -0
  58. package/dist/components/Jackpots/useJackpotItemData.js +87 -0
  59. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  60. package/dist/components/KYC/AutoOpen.js +45 -0
  61. package/dist/components/KYC/Header.d.ts +1 -0
  62. package/dist/components/KYC/Header.js +8 -0
  63. package/dist/components/KYC/KYCReminder.lazy.js +0 -2
  64. package/dist/components/KYC/Step1.d.ts +1 -0
  65. package/dist/components/KYC/Step1.js +13 -0
  66. package/dist/components/KYC/Step2.d.ts +1 -0
  67. package/dist/components/KYC/Step2.js +13 -0
  68. package/dist/components/KYC/Step3.d.ts +1 -0
  69. package/dist/components/KYC/Step3.js +13 -0
  70. package/dist/components/KYC/Step4.d.ts +1 -0
  71. package/dist/components/KYC/Step4.js +7 -0
  72. package/dist/components/KYC/backup/Header.d.ts +1 -0
  73. package/dist/components/KYC/backup/Header.js +8 -0
  74. package/dist/components/KYC/backup/Indicator.d.ts +1 -0
  75. package/dist/components/KYC/backup/Indicator.js +9 -0
  76. package/dist/components/KYC/backup/KYC.d.ts +1 -0
  77. package/dist/components/KYC/backup/KYC.js +14 -0
  78. package/dist/components/KYC/backup/KYC.lazy.d.ts +1 -0
  79. package/dist/components/KYC/backup/KYC.lazy.js +26 -0
  80. package/dist/components/KYC/backup/KYCContext.d.ts +6 -0
  81. package/dist/components/KYC/backup/KYCContext.js +2 -0
  82. package/dist/components/KYC/backup/Step1.d.ts +1 -0
  83. package/dist/components/KYC/backup/Step1.js +13 -0
  84. package/dist/components/KYC/backup/Step2.d.ts +1 -0
  85. package/dist/components/KYC/backup/Step2.js +13 -0
  86. package/dist/components/KYC/backup/Step3.d.ts +1 -0
  87. package/dist/components/KYC/backup/Step3.js +13 -0
  88. package/dist/components/KYC/backup/Step4.d.ts +1 -0
  89. package/dist/components/KYC/backup/Step4.js +7 -0
  90. package/dist/components/KYC/backup/useKYC.d.ts +10 -0
  91. package/dist/components/KYC/backup/useKYC.js +8 -0
  92. package/dist/components/KYC/loadModels.d.ts +1 -0
  93. package/dist/components/KYC/loadModels.js +9 -0
  94. package/dist/components/KYC/utils.js +18 -18
  95. package/dist/components/Messages/Message.d.ts +1 -0
  96. package/dist/components/Messages/Message.js +34 -0
  97. package/dist/components/Messages/MessageContext.d.ts +6 -0
  98. package/dist/components/Messages/MessageContext.js +2 -0
  99. package/dist/components/Messages/MessageItem.d.ts +4 -0
  100. package/dist/components/Messages/MessageItem.js +34 -0
  101. package/dist/components/Messages/MessagePopup.d.ts +1 -0
  102. package/dist/components/Messages/MessagePopup.js +19 -0
  103. package/dist/components/Messages/MessageTrigger.d.ts +8 -0
  104. package/dist/components/Messages/MessageTrigger.js +19 -0
  105. package/dist/components/Messages/MessagesPopup.js +2 -2
  106. package/dist/components/News/News.js +1 -1
  107. package/dist/components/PortalProvider/FeatureFlag.js +1 -1
  108. package/dist/components/Promo/Promo.client.js +1 -1
  109. package/dist/components/Promo/PromoContent.d.ts +2 -0
  110. package/dist/components/Promo/PromoContent.js +9 -0
  111. package/dist/components/Promos/PromoCarousel.d.ts +2 -0
  112. package/dist/components/Promos/PromoCarousel.js +41 -0
  113. package/dist/components/Promos/PromoGrid.d.ts +2 -0
  114. package/dist/components/Promos/PromoGrid.js +12 -0
  115. package/dist/components/Promos/PromoItem.d.ts +7 -0
  116. package/dist/components/Promos/PromoItem.js +10 -0
  117. package/dist/components/Quests/CountdownTimer.d.ts +15 -0
  118. package/dist/components/Quests/CountdownTimer.js +33 -0
  119. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +4 -0
  120. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +78 -0
  121. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +8 -0
  122. package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +9 -0
  123. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +4 -0
  124. package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +4 -0
  125. package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +4 -0
  126. package/dist/components/Quests/WageringQuest/WageringQuest.js +20 -0
  127. package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +9 -0
  128. package/dist/components/Quests/WageringQuest/WageringQuestModal.js +9 -0
  129. package/dist/components/Search/Search.lazy.js +1 -1
  130. package/dist/components/SignUp/SignUp.lazy.d.ts +12 -0
  131. package/dist/components/SignUp/SignUp.lazy.js +18 -0
  132. package/dist/components/SignUp/SignUpContext.d.ts +6 -0
  133. package/dist/components/SignUp/SignUpContext.js +2 -0
  134. package/dist/components/SignUp/SignUpDefault/SignUpForm.js +7 -3
  135. package/dist/components/SignUp/SignUpForm.d.ts +1 -0
  136. package/dist/components/SignUp/SignUpForm.js +288 -0
  137. package/dist/components/SignUp/SignUpKYC/utils.js +18 -18
  138. package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +2 -0
  139. package/dist/components/TournamentCounter/TournamentCounter.client.js +50 -0
  140. package/dist/components/TournamentCounter/TournamentCounter.d.ts +8 -0
  141. package/dist/components/TournamentCounter/TournamentCounter.js +21 -0
  142. package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +8 -0
  143. package/dist/components/TournamentCounter/TournamentCounterItem.js +106 -0
  144. package/dist/components/TournamentCounter/index.d.ts +1 -0
  145. package/dist/components/TournamentCounter/index.js +1 -0
  146. package/dist/components/Tournaments/TournamentDesktop.d.ts +1 -0
  147. package/dist/components/Tournaments/TournamentDesktop.js +57 -0
  148. package/dist/components/Tournaments/TournamentGameProviders.d.ts +5 -0
  149. package/dist/components/Tournaments/TournamentGameProviders.js +38 -0
  150. package/dist/components/Tournaments/TournamentItemDesktop.d.ts +7 -0
  151. package/dist/components/Tournaments/TournamentItemDesktop.js +56 -0
  152. package/dist/components/Tournaments/TournamentItemMobile.d.ts +7 -0
  153. package/dist/components/Tournaments/TournamentItemMobile.js +54 -0
  154. package/dist/components/Tournaments/TournamentMobile.d.ts +1 -0
  155. package/dist/components/Tournaments/TournamentMobile.js +55 -0
  156. package/dist/components/Tournaments/TournamentRules.d.ts +5 -0
  157. package/dist/components/Tournaments/TournamentRules.js +11 -0
  158. package/dist/components/Tournaments/Tournaments.client.d.ts +2 -0
  159. package/dist/components/Tournaments/Tournaments.client.js +20 -0
  160. package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
  161. package/dist/components/Tournaments/TournamentsContext.d.ts +4 -0
  162. package/dist/components/Tournaments/TournamentsContext.js +3 -0
  163. package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
  164. package/dist/components/Tournaments/useTournamentData.d.ts +10 -0
  165. package/dist/components/Tournaments/useTournamentData.js +72 -0
  166. package/dist/components/Tournaments/useTournamentItemData.d.ts +16 -0
  167. package/dist/components/Tournaments/useTournamentItemData.js +64 -0
  168. package/dist/components/index.d.ts +33 -0
  169. package/dist/components/index.js +33 -0
  170. package/dist/components/shared/IdDocumentField.client.d.ts +25 -0
  171. package/dist/components/shared/IdDocumentField.client.js +204 -0
  172. package/dist/components/shared/IdDocumentField.d.ts +2 -0
  173. package/dist/components/shared/IdDocumentField.js +11 -0
  174. package/dist/components/shared/SelfieField.client.d.ts +20 -0
  175. package/dist/components/shared/SelfieField.client.js +327 -0
  176. package/dist/components/shared/SelfieField.d.ts +2 -0
  177. package/dist/components/shared/SelfieField.js +11 -0
  178. package/dist/constants/BranchCode.d.ts +4 -0
  179. package/dist/constants/BranchCode.js +42 -0
  180. package/dist/constants/endpoints.d.ts +10 -0
  181. package/dist/constants/endpoints.js +41 -0
  182. package/dist/constants/envVars.d.ts +5 -0
  183. package/dist/constants/envVars.js +28 -0
  184. package/dist/constants/gameProviders.d.ts +76 -0
  185. package/dist/constants/gameProviders.js +361 -0
  186. package/dist/constants/gameTypes.d.ts +3 -0
  187. package/dist/constants/gameTypes.js +64 -0
  188. package/dist/constants/headerKeys.d.ts +2 -0
  189. package/dist/constants/headerKeys.js +2 -0
  190. package/dist/constants/secretQuestions.d.ts +3 -0
  191. package/dist/constants/secretQuestions.js +24 -0
  192. package/dist/constants/storageKeys.d.ts +2 -0
  193. package/dist/constants/storageKeys.js +2 -0
  194. package/dist/handlers/index.d.ts +2 -2
  195. package/dist/handlers.d.ts +43 -0
  196. package/dist/handlers.js +297 -0
  197. package/dist/icons/BellRingIcon.d.ts +2 -0
  198. package/dist/icons/BellRingIcon.js +4 -0
  199. package/dist/icons/index.d.ts +65 -0
  200. package/dist/icons/index.js +65 -0
  201. package/dist/images/hacksaw-gaming.png +0 -0
  202. package/dist/server/services/index.d.ts +4 -0
  203. package/dist/server/services/index.js +4 -0
  204. package/dist/server/utils/index.d.ts +29 -0
  205. package/dist/server/utils/index.js +29 -0
  206. package/dist/services/queries.js +2570 -2570
  207. package/dist/styles/theme.css +695 -695
  208. package/dist/ui/Avatar/Avatar.d.ts +9 -9
  209. package/dist/ui/Avatar/avatar.recipe.d.ts +3 -3
  210. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  211. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  212. package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
  213. package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
  214. package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
  215. package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
  216. package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
  217. package/dist/ui/Collapsible/collapsible.recipe.d.ts +5 -5
  218. package/dist/ui/Combobox/Combobox.d.ts +42 -42
  219. package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
  220. package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
  221. package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
  222. package/dist/ui/Field/Field.d.ts +21 -21
  223. package/dist/ui/Field/field.recipe.d.ts +3 -3
  224. package/dist/ui/Menu/Menu.d.ts +198 -198
  225. package/dist/ui/Menu/menu.recipe.d.ts +11 -11
  226. package/dist/ui/Popover/Popover.d.ts +55 -55
  227. package/dist/ui/Popover/popover.recipe.d.ts +5 -5
  228. package/dist/ui/Presence.d.ts +2 -0
  229. package/dist/ui/Presence.js +7 -0
  230. package/dist/ui/Progress/Progress.d.ts +27 -27
  231. package/dist/ui/Progress/progress.recipe.d.ts +3 -3
  232. package/dist/ui/Prose.d.ts +2 -0
  233. package/dist/ui/Prose.js +5 -0
  234. package/dist/ui/QrCode/QrCode.d.ts +25 -25
  235. package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
  236. package/dist/ui/Select/Select.d.ts +45 -45
  237. package/dist/ui/Select/select.recipe.d.ts +3 -3
  238. package/dist/ui/Table/Table.d.ts +21 -21
  239. package/dist/ui/Table/table.anatomy.d.ts +1 -1
  240. package/dist/ui/Table/table.recipe.d.ts +3 -3
  241. package/dist/ui/Tabs/Tabs.d.ts +15 -15
  242. package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
  243. package/dist/ui/index.d.ts +26 -0
  244. package/dist/ui/index.js +26 -0
  245. package/dist/utils/createErrorFromCode.d.ts +2 -0
  246. package/dist/utils/createErrorFromCode.js +11 -0
  247. package/dist/utils/dataUrlToBlob.d.ts +1 -0
  248. package/dist/utils/dataUrlToBlob.js +11 -0
  249. package/dist/utils/index.d.ts +17 -0
  250. package/dist/utils/index.js +17 -0
  251. package/dist/utils/isMobile.d.ts +5 -0
  252. package/dist/utils/isMobile.js +9 -0
  253. package/dist/utils/resizeImageSize.d.ts +1 -0
  254. package/dist/utils/resizeImageSize.js +6 -0
  255. package/package.json +163 -163
  256. package/dist/handlers/postTransformIdFrontImage.d.ts +0 -3
  257. package/dist/handlers/postTransformIdFrontImage.js +0 -82
  258. package/dist/handlers/postTransformSelfieImage.d.ts +0 -3
  259. package/dist/handlers/postTransformSelfieImage.js +0 -82
@@ -12,7 +12,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
12
12
  body: string;
13
13
  };
14
14
  };
15
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
15
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
16
16
  size: {
17
17
  md: {
18
18
  root: string;
@@ -26,7 +26,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
26
26
  body: string;
27
27
  };
28
28
  };
29
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
29
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
30
30
  size: {
31
31
  md: {
32
32
  root: string;
@@ -40,7 +40,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
40
40
  body: string;
41
41
  };
42
42
  };
43
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
43
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
44
44
  export declare const Header: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
45
45
  size: {
46
46
  md: {
@@ -55,7 +55,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
55
55
  body: string;
56
56
  };
57
57
  };
58
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
58
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
59
59
  size: {
60
60
  md: {
61
61
  root: string;
@@ -69,7 +69,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
69
69
  body: string;
70
70
  };
71
71
  };
72
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
72
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
73
73
  size: {
74
74
  md: {
75
75
  root: string;
@@ -83,7 +83,7 @@ export declare const Header: import("react").ComponentType<import("@ark-ui/react
83
83
  body: string;
84
84
  };
85
85
  };
86
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
86
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
87
87
  export declare const Body: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
88
88
  size: {
89
89
  md: {
@@ -98,7 +98,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
98
98
  body: string;
99
99
  };
100
100
  };
101
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
101
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
102
102
  size: {
103
103
  md: {
104
104
  root: string;
@@ -112,7 +112,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
112
112
  body: string;
113
113
  };
114
114
  };
115
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
115
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
116
116
  size: {
117
117
  md: {
118
118
  root: string;
@@ -126,7 +126,7 @@ export declare const Body: import("react").ComponentType<import("@ark-ui/react")
126
126
  body: string;
127
127
  };
128
128
  };
129
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
129
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
130
130
  export declare const Footer: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
131
131
  size: {
132
132
  md: {
@@ -141,7 +141,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
141
141
  body: string;
142
142
  };
143
143
  };
144
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
144
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
145
145
  size: {
146
146
  md: {
147
147
  root: string;
@@ -155,7 +155,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
155
155
  body: string;
156
156
  };
157
157
  };
158
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
158
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
159
159
  size: {
160
160
  md: {
161
161
  root: string;
@@ -169,7 +169,7 @@ export declare const Footer: import("react").ComponentType<import("@ark-ui/react
169
169
  body: string;
170
170
  };
171
171
  };
172
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
172
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
173
173
  export declare const Row: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
174
174
  size: {
175
175
  md: {
@@ -184,7 +184,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
184
184
  body: string;
185
185
  };
186
186
  };
187
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
187
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
188
188
  size: {
189
189
  md: {
190
190
  root: string;
@@ -198,7 +198,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
198
198
  body: string;
199
199
  };
200
200
  };
201
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
201
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
202
202
  size: {
203
203
  md: {
204
204
  root: string;
@@ -212,7 +212,7 @@ export declare const Row: import("react").ComponentType<import("@ark-ui/react").
212
212
  body: string;
213
213
  };
214
214
  };
215
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
215
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
216
216
  export declare const Heading: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
217
217
  size: {
218
218
  md: {
@@ -227,7 +227,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
227
227
  body: string;
228
228
  };
229
229
  };
230
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
230
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
231
231
  size: {
232
232
  md: {
233
233
  root: string;
@@ -241,7 +241,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
241
241
  body: string;
242
242
  };
243
243
  };
244
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
244
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
245
245
  size: {
246
246
  md: {
247
247
  root: string;
@@ -255,7 +255,7 @@ export declare const Heading: import("react").ComponentType<import("@ark-ui/reac
255
255
  body: string;
256
256
  };
257
257
  };
258
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
258
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
259
259
  export declare const Cell: import("react").ComponentType<import("@ark-ui/react").Assign<import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & import("@ark-ui/react").PolymorphicProps, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
260
260
  size: {
261
261
  md: {
@@ -270,7 +270,7 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
270
270
  body: string;
271
271
  };
272
272
  };
273
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
273
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
274
274
  size: {
275
275
  md: {
276
276
  root: string;
@@ -284,7 +284,7 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
284
284
  body: string;
285
285
  };
286
286
  };
287
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
287
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
288
288
  size: {
289
289
  md: {
290
290
  root: string;
@@ -298,4 +298,4 @@ export declare const Cell: import("react").ComponentType<import("@ark-ui/react")
298
298
  body: string;
299
299
  };
300
300
  };
301
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
301
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
@@ -1 +1 @@
1
- export declare const tableAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row">;
1
+ export declare const tableAnatomy: import("@ark-ui/react/anatomy").AnatomyInstance<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root">;
@@ -12,7 +12,7 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
12
12
  body: string;
13
13
  };
14
14
  };
15
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, {
15
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, {
16
16
  size: {
17
17
  md: {
18
18
  root: string;
@@ -26,7 +26,7 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
26
26
  body: string;
27
27
  };
28
28
  };
29
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, import("tailwind-variants").TVReturnType<{
29
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, import("tailwind-variants").TVReturnType<{
30
30
  size: {
31
31
  md: {
32
32
  root: string;
@@ -40,4 +40,4 @@ export declare const tableRecipe: import("tailwind-variants").TVReturnType<{
40
40
  body: string;
41
41
  };
42
42
  };
43
- }, Record<"root" | "body" | "footer" | "header" | "cell" | "heading" | "row", string | string[]>, undefined, unknown, unknown, undefined>>;
43
+ }, Record<"body" | "footer" | "header" | "cell" | "heading" | "row" | "root", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -11,7 +11,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
11
11
  trigger: string;
12
12
  };
13
13
  };
14
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
14
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
15
15
  size: {
16
16
  md: {};
17
17
  };
@@ -23,7 +23,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
23
23
  trigger: string;
24
24
  };
25
25
  };
26
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
26
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
27
27
  size: {
28
28
  md: {};
29
29
  };
@@ -35,7 +35,7 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
35
35
  trigger: string;
36
36
  };
37
37
  };
38
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
38
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
39
39
  export declare const Content: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ContentProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
40
40
  size: {
41
41
  md: {};
@@ -48,7 +48,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
48
48
  trigger: string;
49
49
  };
50
50
  };
51
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
51
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
52
52
  size: {
53
53
  md: {};
54
54
  };
@@ -60,7 +60,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
60
60
  trigger: string;
61
61
  };
62
62
  };
63
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
63
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
64
64
  size: {
65
65
  md: {};
66
66
  };
@@ -72,7 +72,7 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
72
72
  trigger: string;
73
73
  };
74
74
  };
75
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
75
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
76
76
  export declare const Indicator: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
77
77
  size: {
78
78
  md: {};
@@ -85,7 +85,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
85
85
  trigger: string;
86
86
  };
87
87
  };
88
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
88
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
89
89
  size: {
90
90
  md: {};
91
91
  };
@@ -97,7 +97,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
97
97
  trigger: string;
98
98
  };
99
99
  };
100
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
100
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
101
101
  size: {
102
102
  md: {};
103
103
  };
@@ -109,7 +109,7 @@ export declare const Indicator: import("react").ComponentType<import("@ark-ui/re
109
109
  trigger: string;
110
110
  };
111
111
  };
112
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
112
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
113
113
  export declare const List: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.ListProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
114
114
  size: {
115
115
  md: {};
@@ -122,7 +122,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
122
122
  trigger: string;
123
123
  };
124
124
  };
125
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
125
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
126
126
  size: {
127
127
  md: {};
128
128
  };
@@ -134,7 +134,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
134
134
  trigger: string;
135
135
  };
136
136
  };
137
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
137
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
138
138
  size: {
139
139
  md: {};
140
140
  };
@@ -146,7 +146,7 @@ export declare const List: import("react").ComponentType<import("@ark-ui/react")
146
146
  trigger: string;
147
147
  };
148
148
  };
149
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
149
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
150
150
  export declare const Trigger: import("react").ComponentType<import("@ark-ui/react").Assign<Tabs.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
151
151
  size: {
152
152
  md: {};
@@ -159,7 +159,7 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
159
159
  trigger: string;
160
160
  };
161
161
  };
162
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
162
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
163
163
  size: {
164
164
  md: {};
165
165
  };
@@ -171,7 +171,7 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
171
171
  trigger: string;
172
172
  };
173
173
  };
174
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
174
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
175
175
  size: {
176
176
  md: {};
177
177
  };
@@ -183,5 +183,5 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
183
183
  trigger: string;
184
184
  };
185
185
  };
186
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
186
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
187
187
  export declare const Context: (props: Tabs.ContextProps) => import("react").ReactNode;
@@ -10,7 +10,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
10
10
  trigger: string;
11
11
  };
12
12
  };
13
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, {
13
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, {
14
14
  size: {
15
15
  md: {};
16
16
  };
@@ -22,7 +22,7 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
22
22
  trigger: string;
23
23
  };
24
24
  };
25
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, import("tailwind-variants").TVReturnType<{
25
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, import("tailwind-variants").TVReturnType<{
26
26
  size: {
27
27
  md: {};
28
28
  };
@@ -34,4 +34,4 @@ export declare const tabsRecipe: import("tailwind-variants").TVReturnType<{
34
34
  trigger: string;
35
35
  };
36
36
  };
37
- }, Record<"root" | "content" | "trigger" | "indicator" | "list", string | string[]>, undefined, unknown, unknown, undefined>>;
37
+ }, Record<"content" | "trigger" | "list" | "root" | "indicator", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,26 @@
1
+ export * from './AlertDialog';
2
+ export * from './Avatar';
3
+ export * from './Badge';
4
+ export * from './Button';
5
+ export * from './Checkbox';
6
+ export * from './Clipboard';
7
+ export * from './Collapsible';
8
+ export * from './Combobox';
9
+ export * from './DatePicker';
10
+ export * from './Dialog';
11
+ export * from './Drawer';
12
+ export * from './Field';
13
+ export * from './IconButton';
14
+ export * from './Menu';
15
+ export * from './NumberInput';
16
+ export * from './PasswordInput';
17
+ export * from './PinInput';
18
+ export * from './Popover';
19
+ export * from './Presence';
20
+ export * from './Progress';
21
+ export * from './Prose';
22
+ export * from './SegmentGroup';
23
+ export * from './Select';
24
+ export * from './Table';
25
+ export * from './Tabs';
26
+ export * from './Tooltip';
@@ -0,0 +1,26 @@
1
+ export * from './AlertDialog/index.js';
2
+ export * from './Avatar/index.js';
3
+ export * from './Badge/index.js';
4
+ export * from './Button/index.js';
5
+ export * from './Checkbox/index.js';
6
+ export * from './Clipboard/index.js';
7
+ export * from './Collapsible/index.js';
8
+ export * from './Combobox/index.js';
9
+ export * from './DatePicker/index.js';
10
+ export * from './Dialog/index.js';
11
+ export * from './Drawer/index.js';
12
+ export * from './Field/index.js';
13
+ export * from './IconButton/index.js';
14
+ export * from './Menu/index.js';
15
+ export * from './NumberInput/index.js';
16
+ export * from './PasswordInput/index.js';
17
+ export * from './PinInput/index.js';
18
+ export * from './Popover/index.js';
19
+ export * from './Presence.js';
20
+ export * from './Progress/index.js';
21
+ export * from './Prose.js';
22
+ export * from './SegmentGroup/index.js';
23
+ export * from './Select/index.js';
24
+ export * from './Table/index.js';
25
+ export * from './Tabs/index.js';
26
+ export * from './Tooltip/index.js';
@@ -0,0 +1,2 @@
1
+ export type KnownErrorName = '' | (string & {});
2
+ export declare function createErrorFromCode(name: KnownErrorName | (string & {}), message?: string): Error;
@@ -0,0 +1,11 @@
1
+ // ✏️ TODO
2
+ const ERROR_CODES_MAP = {
3
+ '': '',
4
+ };
5
+ export function createErrorFromCode(name, message) {
6
+ const error = new Error();
7
+ error.name = name;
8
+ error.message = ERROR_CODES_MAP[name] ?? message ?? 'Something went wrong';
9
+ Error.captureStackTrace?.(error, createErrorFromCode);
10
+ return error;
11
+ }
@@ -0,0 +1 @@
1
+ export declare function dataURLtoBlob(dataURL: string): Blob;
@@ -0,0 +1,11 @@
1
+ export function dataURLtoBlob(dataURL) {
2
+ const parts = dataURL.split(';base64,');
3
+ const contentType = parts[0].split(':')[1];
4
+ const raw = window.atob(parts[1]);
5
+ const rawLength = raw.length;
6
+ const uInt8Array = new Uint8Array(rawLength);
7
+ for (let i = 0; i < rawLength; ++i) {
8
+ uInt8Array[i] = raw.charCodeAt(i);
9
+ }
10
+ return new Blob([uInt8Array], { type: contentType });
11
+ }
@@ -0,0 +1,17 @@
1
+ export * from './anatomyToRecipeSlots';
2
+ export * from './callIfFn';
3
+ export * from './capitalize';
4
+ export * from './createPoll';
5
+ export * from './createSplitProps';
6
+ export * from './dataAttr';
7
+ export * from './formatNumber';
8
+ export * from './getGameImageUrl';
9
+ export * from './getGameProviderData';
10
+ export * from './getGameTypeData';
11
+ export * from './getLocaleInfo';
12
+ export * from './getPercentage';
13
+ export * from './getQueryClient';
14
+ export * from './isMobile';
15
+ export * from './mask';
16
+ export * from './parseDecimal';
17
+ export * from './queryKeys';
@@ -0,0 +1,17 @@
1
+ export * from './anatomyToRecipeSlots.js';
2
+ export * from './callIfFn.js';
3
+ export * from './capitalize.js';
4
+ export * from './createPoll.js';
5
+ export * from './createSplitProps.js';
6
+ export * from './dataAttr.js';
7
+ export * from './formatNumber.js';
8
+ export * from './getGameImageUrl.js';
9
+ export * from './getGameProviderData.js';
10
+ export * from './getGameTypeData.js';
11
+ export * from './getLocaleInfo.js';
12
+ export * from './getPercentage.js';
13
+ export * from './getQueryClient.js';
14
+ export * from './isMobile.js';
15
+ export * from './mask.js';
16
+ export * from './parseDecimal.js';
17
+ export * from './queryKeys.js';
@@ -0,0 +1,5 @@
1
+ import { type IsMobileOptions } from 'is-mobile';
2
+ interface OnMobileOptions extends IsMobileOptions {
3
+ }
4
+ export declare const onMobileDevice: (opts?: OnMobileOptions) => boolean;
5
+ export {};
@@ -0,0 +1,9 @@
1
+ import { isMobile } from 'is-mobile';
2
+ import { cache } from 'react';
3
+ export const onMobileDevice = cache((opts) => {
4
+ return isMobile({
5
+ tablet: true,
6
+ featureDetect: typeof window !== 'undefined',
7
+ ...opts,
8
+ });
9
+ });
@@ -0,0 +1 @@
1
+ export declare const resizeFile: (file: File) => Promise<unknown>;
@@ -0,0 +1,6 @@
1
+ import Resizer from 'react-image-file-resizer';
2
+ export const resizeFile = (file) => new Promise((resolve) => {
3
+ Resizer.imageFileResizer(file, 300, 300, 'jpeg', 100, 0, (uri) => {
4
+ resolve(uri);
5
+ }, 'file');
6
+ });