@onepercentio/one-ui 1.3.4 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/README.md +1 -1
  2. package/WebpackConfigs/email-templates.js +99 -0
  3. package/dist/components/AdaptiveButton/AdaptiveButton.d.ts +9 -0
  4. package/dist/components/AdaptiveButton/AdaptiveButton.js.map +1 -0
  5. package/dist/components/AdaptiveButton/index.d.ts +2 -0
  6. package/dist/components/AdaptiveButton/index.js.map +1 -0
  7. package/dist/components/AdaptiveContainer/AdaptiveContainer.d.ts +25 -0
  8. package/dist/components/AdaptiveContainer/AdaptiveContainer.js.map +1 -0
  9. package/dist/components/AdaptiveContainer/index.d.ts +2 -0
  10. package/dist/components/AdaptiveContainer/index.js.map +1 -0
  11. package/dist/components/AdaptiveDialog/AdaptiveDialog.d.ts +20 -0
  12. package/dist/components/AdaptiveDialog/AdaptiveDialog.js +6 -3
  13. package/dist/components/AdaptiveDialog/AdaptiveDialog.js.map +1 -0
  14. package/dist/components/AdaptiveDialog/AdaptiveDialog.module.scss +17 -3
  15. package/dist/components/AdaptiveDialog/index.d.ts +2 -0
  16. package/dist/components/AdaptiveDialog/index.js.map +1 -0
  17. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.d.ts +25 -0
  18. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.js.map +1 -0
  19. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.sample.d.ts +1 -0
  20. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.sample.js.map +1 -0
  21. package/dist/components/AdaptiveSidebar/index.d.ts +2 -0
  22. package/dist/components/AdaptiveSidebar/index.js.map +1 -0
  23. package/dist/components/AnchoredTooltip/AnchoredTooltip.d.ts +37 -0
  24. package/dist/components/AnchoredTooltip/AnchoredTooltip.js.map +1 -0
  25. package/dist/components/AnchoredTooltip/AnchoredTooltip.module.scss +13 -10
  26. package/dist/components/AnchoredTooltip/index.d.ts +2 -0
  27. package/dist/components/AnchoredTooltip/index.js.map +1 -0
  28. package/dist/components/AnimatedEntrance/AnimatedEntrance.d.ts +19 -0
  29. package/dist/components/AnimatedEntrance/AnimatedEntrance.js.map +1 -0
  30. package/dist/components/AnimatedEntrance/index.d.ts +2 -0
  31. package/dist/components/AnimatedEntrance/index.js.map +1 -0
  32. package/dist/components/AsyncTriggerContainer/AsyncTriggerContainer.d.ts +29 -0
  33. package/dist/components/AsyncTriggerContainer/AsyncTriggerContainer.js.map +1 -0
  34. package/dist/components/AsyncTriggerContainer/index.d.ts +2 -0
  35. package/dist/components/AsyncTriggerContainer/index.js.map +1 -0
  36. package/dist/components/AsyncWrapper/AsyncWrapper.d.ts +14 -0
  37. package/dist/components/AsyncWrapper/AsyncWrapper.js.map +1 -0
  38. package/dist/components/AsyncWrapper/index.d.ts +2 -0
  39. package/dist/components/AsyncWrapper/index.js.map +1 -0
  40. package/dist/components/Avatar/Avatar.d.ts +10 -0
  41. package/dist/components/Avatar/Avatar.js.map +1 -0
  42. package/dist/components/Avatar/index.d.ts +2 -0
  43. package/dist/components/Avatar/index.js.map +1 -0
  44. package/dist/components/BucketFill/BucketFill.d.ts +11 -0
  45. package/dist/components/BucketFill/BucketFill.js.map +1 -0
  46. package/dist/components/BucketFill/index.d.ts +2 -0
  47. package/dist/components/BucketFill/index.js.map +1 -0
  48. package/dist/components/Button/Button.d.ts +16 -0
  49. package/dist/components/Button/Button.js.map +1 -0
  50. package/dist/components/Button/index.d.ts +2 -0
  51. package/dist/components/Button/index.js.map +1 -0
  52. package/dist/components/Card/Card.d.ts +7 -0
  53. package/dist/components/Card/Card.js.map +1 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js.map +1 -0
  56. package/dist/components/Chart/Chart.d.ts +2 -0
  57. package/dist/components/Chart/Chart.e2e.d.ts +4 -0
  58. package/dist/components/Chart/Chart.e2e.js +9 -0
  59. package/dist/components/Chart/Chart.e2e.js.map +1 -0
  60. package/dist/components/Chart/Chart.js.map +1 -0
  61. package/dist/components/Chart/Chart.logic.d.ts +3 -0
  62. package/dist/components/Chart/Chart.logic.js.map +1 -0
  63. package/dist/components/Chart/Chart.types.d.ts +24 -0
  64. package/dist/components/Chart/Chart.types.js.map +1 -0
  65. package/dist/components/Chart/Chart.view.d.ts +5 -0
  66. package/dist/components/Chart/Chart.view.js.map +1 -0
  67. package/dist/components/Chart/index.d.ts +2 -0
  68. package/dist/components/Chart/index.js.map +1 -0
  69. package/dist/components/CheckBox/CheckBox.d.ts +18 -0
  70. package/dist/components/CheckBox/CheckBox.js +10 -6
  71. package/dist/components/CheckBox/CheckBox.js.map +1 -0
  72. package/dist/components/CheckBox/CheckBox.module.scss +5 -0
  73. package/dist/components/CheckBox/index.d.ts +2 -0
  74. package/dist/components/CheckBox/index.js.map +1 -0
  75. package/dist/components/CodeInput/CodeInput.d.ts +8 -0
  76. package/dist/components/CodeInput/CodeInput.js.map +1 -0
  77. package/dist/components/CodeInput/index.d.ts +2 -0
  78. package/dist/components/CodeInput/index.js.map +1 -0
  79. package/dist/components/Collapsable/Collapsable.d.ts +54 -0
  80. package/dist/components/Collapsable/Collapsable.js.map +1 -0
  81. package/dist/components/Collapsable/index.d.ts +2 -0
  82. package/dist/components/Collapsable/index.js.map +1 -0
  83. package/dist/components/Countdown/Countdown.d.ts +28 -0
  84. package/dist/components/Countdown/Countdown.js.map +1 -0
  85. package/dist/components/Countdown/index.d.ts +2 -0
  86. package/dist/components/Countdown/index.js.map +1 -0
  87. package/dist/components/CurrencyInput/CurrencyInput.d.ts +11 -0
  88. package/dist/components/CurrencyInput/CurrencyInput.hook.d.ts +7 -0
  89. package/dist/components/CurrencyInput/CurrencyInput.hook.js.map +1 -0
  90. package/dist/components/CurrencyInput/CurrencyInput.js.map +1 -0
  91. package/dist/components/CurrencyInput/index.d.ts +2 -0
  92. package/dist/components/CurrencyInput/index.js.map +1 -0
  93. package/dist/components/Divider/Divider.d.ts +6 -0
  94. package/dist/components/Divider/Divider.js.map +1 -0
  95. package/dist/components/Divider/index.d.ts +2 -0
  96. package/dist/components/Divider/index.js.map +1 -0
  97. package/dist/components/EmailInput/EmailInput.d.ts +33 -0
  98. package/dist/components/EmailInput/EmailInput.js.map +1 -0
  99. package/dist/components/EmailInput/index.d.ts +2 -0
  100. package/dist/components/EmailInput/index.js.map +1 -0
  101. package/dist/components/FadeIn/FadeIn.d.ts +16 -0
  102. package/dist/components/FadeIn/FadeIn.js.map +1 -0
  103. package/dist/components/FadeIn/index.d.ts +2 -0
  104. package/dist/components/FadeIn/index.js.map +1 -0
  105. package/dist/components/FileInput/FileInput.d.ts +34 -0
  106. package/dist/components/FileInput/FileInput.js.map +1 -0
  107. package/dist/components/FileInput/View/BigFactory/BigFactory.d.ts +6 -0
  108. package/dist/components/FileInput/View/BigFactory/BigFactory.js.map +1 -0
  109. package/dist/components/FileInput/View/BigFactory/index.d.ts +2 -0
  110. package/dist/components/FileInput/View/BigFactory/index.js.map +1 -0
  111. package/dist/components/FileInput/View/Compact/Compact.d.ts +11 -0
  112. package/dist/components/FileInput/View/Compact/Compact.js.map +1 -0
  113. package/dist/components/FileInput/View/Compact/index.d.ts +2 -0
  114. package/dist/components/FileInput/View/Compact/index.js.map +1 -0
  115. package/dist/components/FileInput/View/View.types.d.ts +8 -0
  116. package/dist/components/FileInput/View/View.types.js.map +1 -0
  117. package/dist/components/FileInput/index.d.ts +2 -0
  118. package/dist/components/FileInput/index.js.map +1 -0
  119. package/dist/components/FlowController/FlowController.d.ts +27 -0
  120. package/dist/components/FlowController/FlowController.js.map +1 -0
  121. package/dist/components/FlowController/index.d.ts +2 -0
  122. package/dist/components/FlowController/index.js.map +1 -0
  123. package/dist/components/Form/Form.d.ts +30 -0
  124. package/dist/components/Form/Form.hook.d.ts +40 -0
  125. package/dist/components/Form/Form.hook.js.map +1 -0
  126. package/dist/components/Form/Form.js.map +1 -0
  127. package/dist/components/Form/Form.types.d.ts +98 -0
  128. package/dist/components/Form/Form.types.js.map +1 -0
  129. package/dist/components/Form/FormField/Extensions/DateField/DateField.d.ts +13 -0
  130. package/dist/components/Form/FormField/Extensions/DateField/DateField.js +6 -2
  131. package/dist/components/Form/FormField/Extensions/DateField/DateField.js.map +1 -0
  132. package/dist/components/Form/FormField/Extensions/DateField/index.d.ts +2 -0
  133. package/dist/components/Form/FormField/Extensions/DateField/index.js.map +1 -0
  134. package/dist/components/Form/FormField/Extensions/PhoneField/PhoneField.d.ts +9 -0
  135. package/dist/components/Form/FormField/Extensions/PhoneField/PhoneField.js.map +1 -0
  136. package/dist/components/Form/FormField/Extensions/PhoneField/index.d.ts +2 -0
  137. package/dist/components/Form/FormField/Extensions/PhoneField/index.js.map +1 -0
  138. package/dist/components/Form/FormField/FormField.d.ts +5 -0
  139. package/dist/components/Form/FormField/FormField.js +26 -6
  140. package/dist/components/Form/FormField/FormField.js.map +1 -0
  141. package/dist/components/Form/FormField/FormField.types.d.ts +103 -0
  142. package/dist/components/Form/FormField/FormField.types.js.map +1 -0
  143. package/dist/components/Form/FormField/index.d.ts +2 -0
  144. package/dist/components/Form/FormField/index.js.map +1 -0
  145. package/dist/components/Form/index.d.ts +2 -0
  146. package/dist/components/Form/index.js.map +1 -0
  147. package/dist/components/Freeze/Freeze.d.ts +5 -0
  148. package/dist/components/Freeze/Freeze.js.map +1 -0
  149. package/dist/components/Freeze/index.d.ts +2 -0
  150. package/dist/components/Freeze/index.js.map +1 -0
  151. package/dist/components/HSForms/HSForms.d.ts +12 -0
  152. package/dist/components/HSForms/HSForms.js.map +1 -0
  153. package/dist/components/HSForms/index.d.ts +2 -0
  154. package/dist/components/HSForms/index.js.map +1 -0
  155. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.d.ts +9 -0
  156. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.js.map +1 -0
  157. package/dist/components/HeaderCloseBtn/index.d.ts +2 -0
  158. package/dist/components/HeaderCloseBtn/index.js.map +1 -0
  159. package/dist/components/InfinityScroll/InfinityScroll.d.ts +22 -0
  160. package/dist/components/InfinityScroll/InfinityScroll.js.map +1 -0
  161. package/dist/components/InfinityScroll/index.d.ts +2 -0
  162. package/dist/components/InfinityScroll/index.js.map +1 -0
  163. package/dist/components/Input/Input.d.ts +43 -0
  164. package/dist/components/Input/Input.js +3 -3
  165. package/dist/components/Input/Input.js.map +1 -0
  166. package/dist/components/Input/index.d.ts +2 -0
  167. package/dist/components/Input/index.js.map +1 -0
  168. package/dist/components/InstantCounter/InstantCounter.d.ts +16 -0
  169. package/dist/components/InstantCounter/InstantCounter.js.map +1 -0
  170. package/dist/components/InstantCounter/index.d.ts +2 -0
  171. package/dist/components/InstantCounter/index.js.map +1 -0
  172. package/dist/components/LavaLamp/LavaLamp.d.ts +12 -0
  173. package/dist/components/LavaLamp/LavaLamp.data.d.ts +16 -0
  174. package/dist/components/LavaLamp/LavaLamp.data.js.map +1 -0
  175. package/dist/components/LavaLamp/LavaLamp.js.map +1 -0
  176. package/dist/components/LavaLamp/index.d.ts +2 -0
  177. package/dist/components/LavaLamp/index.js.map +1 -0
  178. package/dist/components/LavaLamp/v2/LavaLamp.d.ts +4 -0
  179. package/dist/components/LavaLamp/v2/LavaLamp.js.map +1 -0
  180. package/dist/components/LinkToId/LinkToId.d.ts +11 -0
  181. package/dist/components/LinkToId/LinkToId.js.map +1 -0
  182. package/dist/components/LinkToId/index.d.ts +2 -0
  183. package/dist/components/LinkToId/index.js.map +1 -0
  184. package/dist/components/Loader/Loader.d.ts +8 -0
  185. package/dist/components/Loader/Loader.js.map +1 -0
  186. package/dist/components/Loader/index.d.ts +2 -0
  187. package/dist/components/Loader/index.js.map +1 -0
  188. package/dist/components/LoaderDotsIndicator/LoaderDotsIndicator.d.ts +12 -0
  189. package/dist/components/LoaderDotsIndicator/LoaderDotsIndicator.js.map +1 -0
  190. package/dist/components/LoaderDotsIndicator/index.d.ts +2 -0
  191. package/dist/components/LoaderDotsIndicator/index.js.map +1 -0
  192. package/dist/components/LoopableVideo/LoopableVideo.d.ts +12 -0
  193. package/dist/components/LoopableVideo/LoopableVideo.js.map +1 -0
  194. package/dist/components/LoopableVideo/index.d.ts +2 -0
  195. package/dist/components/LoopableVideo/index.js.map +1 -0
  196. package/dist/components/MainGrid/MainGrid.d.ts +17 -0
  197. package/dist/components/MainGrid/MainGrid.js.map +1 -0
  198. package/dist/components/MainGrid/index.d.ts +2 -0
  199. package/dist/components/MainGrid/index.js.map +1 -0
  200. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.d.ts +8 -0
  201. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.js.map +1 -0
  202. package/dist/components/MutableHamburgerButton/index.d.ts +2 -0
  203. package/dist/components/MutableHamburgerButton/index.js.map +1 -0
  204. package/dist/components/Notification/Notification.d.ts +8 -0
  205. package/dist/components/Notification/Notification.js.map +1 -0
  206. package/dist/components/Notification/index.d.ts +2 -0
  207. package/dist/components/Notification/index.js.map +1 -0
  208. package/dist/components/NumberInput/NumberInput.d.ts +11 -0
  209. package/dist/components/NumberInput/NumberInput.js.map +1 -0
  210. package/dist/components/NumberInput/index.d.ts +2 -0
  211. package/dist/components/NumberInput/index.js.map +1 -0
  212. package/dist/components/OrderableList/OrderableList.d.ts +40 -0
  213. package/dist/components/OrderableList/OrderableList.js.map +1 -0
  214. package/dist/components/OrderableList/index.d.ts +2 -0
  215. package/dist/components/OrderableList/index.js.map +1 -0
  216. package/dist/components/PaginationIndicator/PaginationIndicator.d.ts +45 -0
  217. package/dist/components/PaginationIndicator/PaginationIndicator.js.map +1 -0
  218. package/dist/components/PaginationIndicator/index.d.ts +2 -0
  219. package/dist/components/PaginationIndicator/index.js.map +1 -0
  220. package/dist/components/Parallax/Parallax.d.ts +20 -0
  221. package/dist/components/Parallax/Parallax.js.map +1 -0
  222. package/dist/components/Parallax/index.d.ts +2 -0
  223. package/dist/components/Parallax/index.js.map +1 -0
  224. package/dist/components/Parallax/math/helpers.d.ts +58 -0
  225. package/dist/components/Parallax/math/helpers.js.map +1 -0
  226. package/dist/components/PasswordInput/PasswordInput.d.ts +48 -0
  227. package/dist/components/PasswordInput/PasswordInput.js.map +1 -0
  228. package/dist/components/PasswordInput/index.d.ts +2 -0
  229. package/dist/components/PasswordInput/index.js.map +1 -0
  230. package/dist/components/PingPongText/PingPongText.d.ts +10 -0
  231. package/dist/components/PingPongText/PingPongText.js.map +1 -0
  232. package/dist/components/PingPongText/index.d.ts +2 -0
  233. package/dist/components/PingPongText/index.js.map +1 -0
  234. package/dist/components/PixelatedScan/PixelatedScan.d.ts +13 -0
  235. package/dist/components/PixelatedScan/PixelatedScan.js.map +1 -0
  236. package/dist/components/PixelatedScan/index.d.ts +2 -0
  237. package/dist/components/PixelatedScan/index.js.map +1 -0
  238. package/dist/components/Portal/Portal.d.ts +20 -0
  239. package/dist/components/Portal/Portal.js.map +1 -0
  240. package/dist/components/Portal/index.d.ts +2 -0
  241. package/dist/components/Portal/index.js.map +1 -0
  242. package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
  243. package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
  244. package/dist/components/ProgressBar/index.d.ts +2 -0
  245. package/dist/components/ProgressBar/index.js.map +1 -0
  246. package/dist/components/ProgressTexts/ProgressTexts.d.ts +29 -0
  247. package/dist/components/ProgressTexts/ProgressTexts.js.map +1 -0
  248. package/dist/components/ProgressTexts/index.d.ts +2 -0
  249. package/dist/components/ProgressTexts/index.js.map +1 -0
  250. package/dist/components/Radio/Radio.d.ts +15 -0
  251. package/dist/components/Radio/Radio.js.map +1 -0
  252. package/dist/components/Radio/index.d.ts +2 -0
  253. package/dist/components/Radio/index.js.map +1 -0
  254. package/dist/components/Radio/variants/Checkmark/Checkmark.d.ts +7 -0
  255. package/dist/components/Radio/variants/Checkmark/Checkmark.js.map +1 -0
  256. package/dist/components/Radio/variants/Checkmark/index.d.ts +2 -0
  257. package/dist/components/Radio/variants/Checkmark/index.js.map +1 -0
  258. package/dist/components/Radio/variants/Generic/Generic.d.ts +7 -0
  259. package/dist/components/Radio/variants/Generic/Generic.js.map +1 -0
  260. package/dist/components/Radio/variants/Generic/index.d.ts +2 -0
  261. package/dist/components/Radio/variants/Generic/index.js.map +1 -0
  262. package/dist/components/ScrollendIndicator/ScrollendIndicator.js +118 -0
  263. package/dist/components/ScrollendIndicator/ScrollendIndicator.module.scss +76 -0
  264. package/dist/components/SectionContainer/SectionContainer.d.ts +19 -0
  265. package/dist/components/SectionContainer/SectionContainer.js.map +1 -0
  266. package/dist/components/SectionContainer/index.d.ts +2 -0
  267. package/dist/components/SectionContainer/index.js.map +1 -0
  268. package/dist/components/Select/Select.d.ts +42 -0
  269. package/dist/components/Select/Select.js.map +1 -0
  270. package/dist/components/Select/index.d.ts +2 -0
  271. package/dist/components/Select/index.js.map +1 -0
  272. package/dist/components/Skeleton/Skeleton.d.ts +10 -0
  273. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  274. package/dist/components/Skeleton/index.d.ts +2 -0
  275. package/dist/components/Skeleton/index.js.map +1 -0
  276. package/dist/components/Slider/Slider.d.ts +11 -0
  277. package/dist/components/Slider/Slider.e2e.d.ts +4 -0
  278. package/dist/components/Slider/Slider.e2e.js +6 -0
  279. package/dist/components/Slider/Slider.e2e.js.map +1 -0
  280. package/dist/components/Slider/Slider.js.map +1 -0
  281. package/dist/components/Slider/index.d.ts +2 -0
  282. package/dist/components/Slider/index.js.map +1 -0
  283. package/dist/components/Spacing/Spacing.d.ts +11 -0
  284. package/dist/components/Spacing/Spacing.js.map +1 -0
  285. package/dist/components/Spacing/index.d.ts +2 -0
  286. package/dist/components/Spacing/index.js.map +1 -0
  287. package/dist/components/StaticScroller/StaticScroller.d.ts +7 -0
  288. package/dist/components/StaticScroller/StaticScroller.js.map +1 -0
  289. package/dist/components/StaticScroller/index.d.ts +2 -0
  290. package/dist/components/StaticScroller/index.js.map +1 -0
  291. package/dist/components/Switch/Switch.d.ts +12 -0
  292. package/dist/components/Switch/Switch.js.map +1 -0
  293. package/dist/components/Switch/index.d.ts +2 -0
  294. package/dist/components/Switch/index.js.map +1 -0
  295. package/dist/components/Table/Table.d.ts +23 -0
  296. package/dist/components/Table/Table.js.map +1 -0
  297. package/dist/components/Table/index.d.ts +2 -0
  298. package/dist/components/Table/index.js.map +1 -0
  299. package/dist/components/Tabs/Tabs.d.ts +28 -0
  300. package/dist/components/Tabs/Tabs.js.map +1 -0
  301. package/dist/components/Tabs/index.d.ts +2 -0
  302. package/dist/components/Tabs/index.js.map +1 -0
  303. package/dist/components/Text/Text.d.ts +22 -0
  304. package/dist/components/Text/Text.js.map +1 -0
  305. package/dist/components/Text/index.d.ts +2 -0
  306. package/dist/components/Text/index.js.map +1 -0
  307. package/dist/components/Transition/MasksFactory/DiagonalReveal.d.ts +1 -0
  308. package/dist/components/Transition/MasksFactory/DiagonalReveal.js.map +1 -0
  309. package/dist/components/Transition/MasksFactory/DiagonalSquareToBalls.d.ts +5 -0
  310. package/dist/components/Transition/MasksFactory/DiagonalSquareToBalls.js.map +1 -0
  311. package/dist/components/Transition/MasksFactory/PhysicsSquares.d.ts +7 -0
  312. package/dist/components/Transition/MasksFactory/PhysicsSquares.js.map +1 -0
  313. package/dist/components/Transition/MasksFactory/SquareToBalls.d.ts +5 -0
  314. package/dist/components/Transition/MasksFactory/SquareToBalls.js.map +1 -0
  315. package/dist/components/Transition/MasksFactory/utils.d.ts +8 -0
  316. package/dist/components/Transition/MasksFactory/utils.js.map +1 -0
  317. package/dist/components/Transition/Transition.d.ts +114 -0
  318. package/dist/components/Transition/Transition.js.map +1 -0
  319. package/dist/components/Transition/index.d.ts +2 -0
  320. package/dist/components/Transition/index.js.map +1 -0
  321. package/dist/components/UncontrolledTransition/UncontrolledTransition.d.ts +17 -0
  322. package/dist/components/UncontrolledTransition/UncontrolledTransition.js.map +1 -0
  323. package/dist/components/UncontrolledTransition/UncontrolledTransition.sample.d.ts +1 -0
  324. package/dist/components/UncontrolledTransition/UncontrolledTransition.sample.js.map +1 -0
  325. package/dist/components/UncontrolledTransition/index.d.ts +2 -0
  326. package/dist/components/UncontrolledTransition/index.js.map +1 -0
  327. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.d.ts +55 -0
  328. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.js.map +1 -0
  329. package/dist/components/WalletConnectionWrapper/index.d.ts +2 -0
  330. package/dist/components/WalletConnectionWrapper/index.js.map +1 -0
  331. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.d.ts +7 -0
  332. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.js.map +1 -0
  333. package/dist/components/utilitary/ScrollAndFocusLock/index.d.ts +2 -0
  334. package/dist/components/utilitary/ScrollAndFocusLock/index.js.map +1 -0
  335. package/dist/context/AsyncProcess.d.ts +23 -0
  336. package/dist/context/AsyncProcess.js.map +1 -0
  337. package/dist/context/ContextAsyncControl.d.ts +39 -0
  338. package/dist/context/ContextAsyncControl.js.map +1 -0
  339. package/dist/context/CustomBrowserRouter.d.ts +19 -0
  340. package/dist/context/CustomBrowserRouter.js.map +1 -0
  341. package/dist/context/OneUIProvider.d.ts +209 -0
  342. package/dist/context/OneUIProvider.js +1 -1
  343. package/dist/context/OneUIProvider.js.map +1 -0
  344. package/dist/hooks/logs/useDependencyChangeDetection.d.ts +1 -0
  345. package/dist/hooks/logs/useDependencyChangeDetection.js.map +1 -0
  346. package/dist/hooks/logs/useIsMounting.d.ts +1 -0
  347. package/dist/hooks/logs/useIsMounting.js.map +1 -0
  348. package/dist/hooks/persistence/useLocalStorage.d.ts +2 -0
  349. package/dist/hooks/persistence/useLocalStorage.js.map +1 -0
  350. package/dist/hooks/shims/ObjectWatchShim.d.ts +1 -0
  351. package/dist/hooks/shims/ObjectWatchShim.js.map +1 -0
  352. package/dist/hooks/ui/useAdaptiveImage.d.ts +7 -0
  353. package/dist/hooks/ui/useAdaptiveImage.js +2 -2
  354. package/dist/hooks/ui/useAdaptiveImage.js.map +1 -0
  355. package/dist/hooks/ui/useAlternating.d.ts +4 -0
  356. package/dist/hooks/ui/useAlternating.js.map +1 -0
  357. package/dist/hooks/ui/useBreakpoint.d.ts +5 -0
  358. package/dist/hooks/ui/useBreakpoint.js.map +1 -0
  359. package/dist/hooks/ui/useCustomScrollbar.d.ts +8 -0
  360. package/dist/hooks/ui/useCustomScrollbar.js.map +1 -0
  361. package/dist/hooks/ui/useEffectIf.d.ts +2 -0
  362. package/dist/hooks/ui/useEffectIf.js.map +1 -0
  363. package/dist/hooks/ui/useMouseHover.d.ts +11 -0
  364. package/dist/hooks/ui/useMouseHover.js +7 -10
  365. package/dist/hooks/ui/useMouseHover.js.map +1 -0
  366. package/dist/hooks/ui/usePaginationControls.d.ts +14 -0
  367. package/dist/hooks/ui/usePaginationControls.js.map +1 -0
  368. package/dist/hooks/ui/useSnapToViewport.d.ts +5 -0
  369. package/dist/hooks/ui/useSnapToViewport.js.map +1 -0
  370. package/dist/hooks/ui/useTilt.d.ts +46 -0
  371. package/dist/hooks/ui/useTilt.js.map +1 -0
  372. package/dist/hooks/ui/useZoomable.d.ts +6 -0
  373. package/dist/hooks/ui/useZoomable.js.map +1 -0
  374. package/dist/hooks/useAsyncControl.d.ts +32 -0
  375. package/dist/hooks/useAsyncControl.js.map +1 -0
  376. package/dist/hooks/useContainedRepositioning.d.ts +15 -0
  377. package/dist/hooks/useContainedRepositioning.js.map +1 -0
  378. package/dist/hooks/useCustomHistory.d.ts +14 -0
  379. package/dist/hooks/useCustomHistory.js.map +1 -0
  380. package/dist/hooks/useElementFit.d.ts +18 -0
  381. package/dist/hooks/useElementFit.js.map +1 -0
  382. package/dist/hooks/useFirestoreWatch.d.ts +12 -0
  383. package/dist/hooks/useFirestoreWatch.js.map +1 -0
  384. package/dist/hooks/useFreeze.d.ts +5 -0
  385. package/dist/hooks/useFreeze.js.map +1 -0
  386. package/dist/hooks/useHero.d.ts +68 -0
  387. package/dist/hooks/useHero.js.map +1 -0
  388. package/dist/hooks/useIntersection.d.ts +8 -0
  389. package/dist/hooks/useIntersection.js.map +1 -0
  390. package/dist/hooks/useMergeRefs.d.ts +9 -0
  391. package/dist/hooks/useMergeRefs.js.map +1 -0
  392. package/dist/hooks/useObserve.d.ts +6 -0
  393. package/dist/hooks/useObserve.js.map +1 -0
  394. package/dist/hooks/usePagination.d.ts +57 -0
  395. package/dist/hooks/usePagination.js.map +1 -0
  396. package/dist/hooks/usePooledOperation.d.ts +19 -0
  397. package/dist/hooks/usePooledOperation.js.map +1 -0
  398. package/dist/hooks/usePooling.d.ts +22 -0
  399. package/dist/hooks/usePooling.js.map +1 -0
  400. package/dist/hooks/useRebound.d.ts +13 -0
  401. package/dist/hooks/useRebound.js.map +1 -0
  402. package/dist/hooks/useShortIntl.d.ts +21 -0
  403. package/dist/hooks/useShortIntl.js.map +1 -0
  404. package/dist/hooks/utility/useAsyncMemo.d.ts +13 -0
  405. package/dist/hooks/utility/useAsyncMemo.js.map +1 -0
  406. package/dist/hooks/utility/useDepChange.d.ts +1 -0
  407. package/dist/hooks/utility/useDepChange.js.map +1 -0
  408. package/dist/hooks/utility/useEvents.d.ts +9 -0
  409. package/dist/hooks/utility/useEvents.js.map +1 -0
  410. package/dist/hooks/utility/useImmediate.d.ts +4 -0
  411. package/dist/hooks/utility/useImmediate.js.map +1 -0
  412. package/dist/hooks/utility/useManualInit.d.ts +4 -0
  413. package/dist/hooks/utility/useManualInit.js.map +1 -0
  414. package/dist/hooks/utility/useModule.d.ts +4 -0
  415. package/dist/hooks/utility/useModule.js.map +1 -0
  416. package/dist/hooks/utility/useQuery.d.ts +7 -0
  417. package/dist/hooks/utility/useQuery.js.map +1 -0
  418. package/dist/hooks/utility/useUniqueEffect.d.ts +1 -0
  419. package/dist/hooks/utility/useUniqueEffect.js.map +1 -0
  420. package/dist/index.d.ts +223 -0
  421. package/dist/index.js +13 -1
  422. package/dist/index.js.map +1 -0
  423. package/dist/index.preprocess.d.ts +1 -0
  424. package/dist/index.preprocess.js.map +1 -0
  425. package/dist/models/DebugLogger.d.ts +4 -0
  426. package/dist/models/DebugLogger.js.map +1 -0
  427. package/dist/models/GenericContract.d.ts +100 -0
  428. package/dist/models/GenericContract.js.map +1 -0
  429. package/dist/models/ImageScales.d.ts +7 -0
  430. package/dist/models/ImageScales.js +15 -0
  431. package/dist/models/ImageScales.js.map +1 -0
  432. package/dist/models/Orbs.d.ts +44 -0
  433. package/dist/models/Orbs.js.map +1 -0
  434. package/dist/storybookUtils/index.d.ts +5 -0
  435. package/dist/storybookUtils/index.js.map +1 -0
  436. package/dist/type-utils.d.ts +59 -0
  437. package/dist/type-utils.js.map +1 -0
  438. package/dist/types.d.ts +79 -0
  439. package/dist/types.js.map +1 -0
  440. package/dist/utils/blockchain.d.ts +8 -0
  441. package/dist/utils/blockchain.js.map +1 -0
  442. package/dist/utils/e2e.d.ts +19 -0
  443. package/dist/utils/e2e.js.map +1 -0
  444. package/dist/utils/flatten.d.ts +5 -0
  445. package/dist/utils/flatten.js.map +1 -0
  446. package/dist/utils/formatters.d.ts +21 -0
  447. package/dist/utils/formatters.js.map +1 -0
  448. package/dist/utils/html.utils.d.ts +2 -0
  449. package/dist/utils/html.utils.js.map +1 -0
  450. package/dist/utils/ownEvent.d.ts +4 -0
  451. package/dist/utils/ownEvent.js.map +1 -0
  452. package/dist/utils/test.d.ts +6 -0
  453. package/dist/utils/test.js.map +1 -0
  454. package/dist-ts/components/AdaptiveDialog/AdaptiveDialog.js +3 -1
  455. package/dist-ts/components/AdaptiveDialog/AdaptiveDialog.js.map +1 -1
  456. package/dist-ts/components/AdaptiveDialog/AdaptiveDialog.module.scss +17 -3
  457. package/dist-ts/components/Form/FormField/Extensions/DateField/DateField.js +2 -2
  458. package/dist-ts/components/Form/FormField/Extensions/DateField/DateField.js.map +1 -1
  459. package/dist-ts/components/Form/FormField/FormField.js +5 -5
  460. package/dist-ts/components/Form/FormField/FormField.js.map +1 -1
  461. package/dist-ts/components/ScrollendIndicator/ScrollendIndicator.d.ts +10 -0
  462. package/dist-ts/components/ScrollendIndicator/ScrollendIndicator.js +68 -0
  463. package/dist-ts/components/ScrollendIndicator/ScrollendIndicator.js.map +1 -0
  464. package/dist-ts/components/ScrollendIndicator/ScrollendIndicator.module.scss +76 -0
  465. package/dist-ts/context/OneUIProvider.d.ts +6 -0
  466. package/dist-ts/context/OneUIProvider.js.map +1 -1
  467. package/dist-ts/index.d.ts +1 -0
  468. package/dist-ts/index.js +1 -0
  469. package/dist-ts/index.js.map +1 -1
  470. package/package.json +1 -1
@@ -0,0 +1,114 @@
1
+ import React, { DetailedHTMLProps, Key, ReactElement } from "react";
2
+ export type TransitionTypeDefinitions = {
3
+ transitionType?: TransitionAnimationTypes.SLIDE | TransitionAnimationTypes.POP_FROM_CLICK_ORIGIN | TransitionAnimationTypes.FADE | TransitionAnimationTypes.COIN_FLIP;
4
+ } | {
5
+ transitionType?: TransitionAnimationTypes.POP_FROM_ELEMENT_ID;
6
+ elementId: string;
7
+ } | {
8
+ transitionType?: TransitionAnimationTypes.MASK;
9
+ /**
10
+ * It provides the transition container so you can create a dynamic svg to mask with
11
+ */
12
+ maskFactory: (container: HTMLDivElement) => string;
13
+ } | {
14
+ transitionType?: TransitionAnimationTypes.CUSTOM;
15
+ config: ReturnType<typeof TransitionClasses>;
16
+ };
17
+ export type TransitionProps = {
18
+ step: number;
19
+ className?: string;
20
+ contentStyle?: React.CSSProperties;
21
+ contentClassName?: string;
22
+ children: (React.ReactElement | undefined)[];
23
+ onDiscardStep?: (discardedKey: React.Key, startedAnimationAt: number) => void;
24
+ lockTransitionWidth?: boolean;
25
+ lockTransitionHeight?: boolean;
26
+ } & TransitionTypeDefinitions & Omit<DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "className" | "children">;
27
+ declare function TransitionClasses(type: NonNullable<Exclude<TransitionProps["transitionType"], TransitionAnimationTypes.CUSTOM>>): {
28
+ /**
29
+ * Applied to the element that was not visible and is now entering the screen
30
+ */
31
+ backward: {
32
+ elementEntering: string;
33
+ elementExiting: string;
34
+ };
35
+ /**
36
+ * Applied to the element that was visible and now is exiting the screen
37
+ */
38
+ forward: {
39
+ elementEntering: string;
40
+ elementExiting: string;
41
+ };
42
+ };
43
+ export declare enum TransitionAnimationTypes {
44
+ SLIDE = 0,
45
+ POP_FROM_CLICK_ORIGIN = 1,
46
+ POP_FROM_ELEMENT_ID = 2,
47
+ FADE = 3,
48
+ COIN_FLIP = 4,
49
+ MASK = 5,
50
+ CUSTOM = 6
51
+ }
52
+ /**
53
+ * A component that manages smooth transitions between different views or screens.
54
+ * It handles animations and switching between multiple children elements.
55
+ *
56
+ * Simple explanation: This component controls how content changes from one screen to another,
57
+ * making the transition look smooth and professional with various animation styles.
58
+ */
59
+ declare const Transition: React.ForwardRefExoticComponent<(Omit<{
60
+ step: number;
61
+ className?: string | undefined;
62
+ contentStyle?: React.CSSProperties | undefined;
63
+ contentClassName?: string | undefined;
64
+ children: (React.ReactElement | undefined)[];
65
+ onDiscardStep?: ((discardedKey: React.Key, startedAnimationAt: number) => void) | undefined;
66
+ lockTransitionWidth?: boolean | undefined;
67
+ lockTransitionHeight?: boolean | undefined;
68
+ } & {
69
+ transitionType?: TransitionAnimationTypes.SLIDE | TransitionAnimationTypes.POP_FROM_CLICK_ORIGIN | TransitionAnimationTypes.FADE | TransitionAnimationTypes.COIN_FLIP | undefined;
70
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "children" | "className">, "ref"> | Omit<{
71
+ step: number;
72
+ className?: string | undefined;
73
+ contentStyle?: React.CSSProperties | undefined;
74
+ contentClassName?: string | undefined;
75
+ children: (React.ReactElement | undefined)[];
76
+ onDiscardStep?: ((discardedKey: React.Key, startedAnimationAt: number) => void) | undefined;
77
+ lockTransitionWidth?: boolean | undefined;
78
+ lockTransitionHeight?: boolean | undefined;
79
+ } & {
80
+ transitionType?: TransitionAnimationTypes.POP_FROM_ELEMENT_ID | undefined;
81
+ elementId: string;
82
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "children" | "className">, "ref"> | Omit<{
83
+ step: number;
84
+ className?: string | undefined;
85
+ contentStyle?: React.CSSProperties | undefined;
86
+ contentClassName?: string | undefined;
87
+ children: (React.ReactElement | undefined)[];
88
+ onDiscardStep?: ((discardedKey: React.Key, startedAnimationAt: number) => void) | undefined;
89
+ lockTransitionWidth?: boolean | undefined;
90
+ lockTransitionHeight?: boolean | undefined;
91
+ } & {
92
+ transitionType?: TransitionAnimationTypes.MASK | undefined;
93
+ /**
94
+ * It provides the transition container so you can create a dynamic svg to mask with
95
+ */
96
+ maskFactory: (container: HTMLDivElement) => string;
97
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "children" | "className">, "ref"> | Omit<{
98
+ step: number;
99
+ className?: string | undefined;
100
+ contentStyle?: React.CSSProperties | undefined;
101
+ contentClassName?: string | undefined;
102
+ children: (React.ReactElement | undefined)[];
103
+ onDiscardStep?: ((discardedKey: React.Key, startedAnimationAt: number) => void) | undefined;
104
+ lockTransitionWidth?: boolean | undefined;
105
+ lockTransitionHeight?: boolean | undefined;
106
+ } & {
107
+ transitionType?: TransitionAnimationTypes.CUSTOM | undefined;
108
+ config: ReturnType<typeof TransitionClasses>;
109
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "children" | "className">, "ref">) & React.RefAttributes<HTMLDivElement | null>>;
110
+ /**
111
+ * A component that manages smooth transitions between different views or screens.
112
+ * It handles animations and switching between multiple children elements.
113
+ */
114
+ export default Transition;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transition.js","sourceRoot":"","sources":["../../../src/components/Transition/Transition.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAce;AACf,sFAA8C;AAyC9C,SAAS,iBAAiB,CACxB,IAEC;IAiBD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,wBAAwB,CAAC,SAAS;YACrC,OAAO;gBACL,QAAQ,EAAE;oBACR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;AARD,WAAY,wBAAwB;IAClC,yEAAK,CAAA;IACL,yGAAqB,CAAA;IACrB,qGAAmB,CAAA;IACnB,uEAAI,CAAA;IACJ,iFAAS,CAAA;IACT,uEAAI,CAAA;IACJ,2EAAM,CAAA;AACR,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAC;AAE3C;;;GAGG;AACH,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./Transition";
2
+ export * from "./Transition";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Transition/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2CAAuC;AAA9B,sHAAA,OAAO,OAAA;AAChB,+CAA6B"}
@@ -0,0 +1,17 @@
1
+ import React, { Key, RefObject } from "react";
2
+ import { TransitionProps, TransitionTypeDefinitions } from "../Transition/Transition";
3
+ /**
4
+ * A component that handles transitions when child elements change, making the swap appear smooth.
5
+ */
6
+ export declare const UncontrolledTransition: React.ForwardRefExoticComponent<({
7
+ className?: string | undefined;
8
+ contentClassName?: string | undefined;
9
+ children?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
10
+ lockTransitionWidth?: boolean | undefined;
11
+ lockTransitionHeight?: boolean | undefined;
12
+ onDiscardStep?: ((key: Key) => void) | undefined;
13
+ } & Pick<TransitionProps, "contentStyle"> & TransitionTypeDefinitions & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, any>, "children" | "ref" | "className">) & React.RefAttributes<{
14
+ setOrientation: (orientation: "forward" | "backward") => void;
15
+ sectionRef: RefObject<HTMLDivElement | null>;
16
+ }>>;
17
+ export default UncontrolledTransition;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UncontrolledTransition.js","sourceRoot":"","sources":["../../../src/components/UncontrolledTransition/UncontrolledTrans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B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,aAAa,EACnB,aAAa,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,EAAE;gBAC1C,UAAU,CAAC,GAAG,EAAE;oBACd,IAAI,aAAa;wBAAE,aAAa,CAAC,YAAY,CAAC,CAAC;oBAC/C,WAAW,CAAC,OAAO,GAAG,SAAS,CAAC;oBAChC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE;wBACrB,OAAO;4BACL,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;gCACvC,OAAO,CAAC,CAAC,GAAG,KAAK,YAAY,IAAI,CAAC,CAAC,SAAS,GAAG,UAAU,CAAC;4BAC5D,CAAC,CAAC;4BACF,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;yBAChD,CAAC;oBACJ,CAAC,CAAC,CAAC;gBACL,CAAC,EAAE,CAAC,CAAC,CAAA;YACP,CAAC,EACD,mBAAmB,EAAE,mBAAmB,EACxC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,IAC9B,KAAK,cAER,UAAU,IACA,CACd,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAC;AACJ,CAAC;AAED;;GAEG;AACU,QAAA,sBAAsB,GAAG,IAAA,kBAAU,EAAC,uBAAuB,CAAC,CAAC;AAC1E,kBAAe,8BAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export default function Example(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UncontrolledTransition.sample.js","sourceRoot":"","sources":["../../../src/components/UncontrolledTransition/UncontrolledTransition.sample.tsx"],"names":[],"mappings":";;;;;;AACA,iCAAiC;AACjC,uFAA+D;AAC/D,uDAA+B;AAE/B,SAAS,QAAQ;IACf,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AACzE,CAAC;AAED,SAAwB,OAAO;IAC7B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,GAAG,GAAG,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACtC,OAAO,CACL,uBAAC,gCAAsB,cACrB,iCAEE,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,OAAO;gBACf,eAAe,EAAE,GAAG;gBACpB,SAAS,EAAE,QAAQ;aACpB,aAED,uBAAC,gBAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,oCAEnD,EACT,iDAAY,EACZ,wCAAI,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAK,EAC5B,wCAAI,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAK,EAC5B,wCAAI,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAK,KAdvB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAef,GACiB,CAC1B,CAAC;AACJ,CAAC;AAxBD,0BAwBC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./UncontrolledTransition";
2
+ export * from "./UncontrolledTransition";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UncontrolledTransition/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mEAAmD;AAA1C,kIAAA,OAAO,OAAA;AAChB,2DAAyC"}
@@ -0,0 +1,55 @@
1
+ import React, { PropsWithChildren, ReactElement } from "react";
2
+ import useAsyncControl from "../../hooks/useAsyncControl";
3
+ export type WalletConnectionProps = PropsWithChildren<Omit<ReturnType<typeof useAsyncControl>, "process"> & {
4
+ chainId?: number;
5
+ isChainIdValid: boolean | undefined;
6
+ isProviderAvailable: boolean;
7
+ isConnectedAndValidChain: boolean;
8
+ isConnected: boolean;
9
+ wallet?: string;
10
+ connect: () => Promise<void>;
11
+ disconnect: () => void;
12
+ changeChainId: () => Promise<void>;
13
+ }>;
14
+ type Props = {
15
+ /**
16
+ * The chain id that the user is expected to connect to
17
+ */
18
+ chain?: {
19
+ id: number;
20
+ rpcUrl: string;
21
+ explorerUrl: string;
22
+ name: string;
23
+ currency: string;
24
+ };
25
+ /**
26
+ * When the user doesn't have a provider like metamask available
27
+ */
28
+ ProviderUnavailable?: React.FunctionComponent;
29
+ /**
30
+ * This is invoked when the chain ID is not available
31
+ */
32
+ ChainIdInvalid?: React.FunctionComponent<{
33
+ changeChainId: () => void;
34
+ }>;
35
+ /**
36
+ * This renders the content that is shown inside the wallet content
37
+ */
38
+ Content: (props: WalletConnectionProps) => ReactElement;
39
+ };
40
+ /**
41
+ * This component handles some cenarios when dealing with the wallet connection to different providers (ex: Metamask)
42
+ **/
43
+ declare const WalletConnectionWrapper: React.ForwardRefExoticComponent<Props & {
44
+ children?: React.ReactNode;
45
+ } & React.RefAttributes<{
46
+ connect: () => Promise<void>;
47
+ disconnect: () => void;
48
+ }>>;
49
+ export default WalletConnectionWrapper;
50
+ export declare const BaseWalletConnectionWrapper: React.ForwardRefExoticComponent<Props & {
51
+ children?: any;
52
+ } & React.RefAttributes<{
53
+ connect: () => Promise<void>;
54
+ disconnect: () => void;
55
+ }>>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WalletConnectionWrapper.js","sourceRoot":"","sources":["../../../src/components/WalletConnectionWrapper/WalletConnectionWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAWe;AACf,2CAA0D;AAC1D,kFAA0D;AA8C1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C;oCACxB,iBAAiB,EAAE,CAAC,KAAM,CAAC,WAAW,CAAC;oCACvC,cAAc,EAAE;wCACd,MAAM,EAAE,KAAM,CAAC,QAAQ;wCACvB,QAAQ,EAAE,EAAE;qCACb;iCACF;6BACF;yBACF,CAAC,CAAC;oBACL;wBACE,MAAM,CAAC,CAAC;gBACZ,CAAC;YACH,CAAC;QACH,CAAC;KAAA;IACD,MAAM,cAAc,GAAG,sBAA6B,CAAC;IACrD,OAAO,CACL,6DACG,mBAAmB,IAAI,CAAC,mBAAmB,IAAI,uBAAC,mBAAmB,KAAG,EACtE,cAAc,IAAI,CAAC,cAAc,IAAI,CACpC,uBAAC,cAAc,IAAC,aAAa,EAAE,aAAa,GAAI,CACjD,EAEC,uBAAC,cAAc,oBACT,sBAAsB,IAC1B,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,mBAAmB,EACxC,wBAAwB,EAAE,cAAc,IAAI,MAAM,CAAC,WAAW,EAAE,EAChE,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,EACjC,MAAM,EAAE,MAAM,CAAC,OAAO,YAErB,QAAQ,IACM,IAElB,CACJ,CAAC;AACJ,CAAC;AAED;;IAEI;AACJ,MAAM,uBAAuB,GAAG,IAAA,kBAAU,EAAC,wBAAwB,CAAC,CAAC;AACrE,kBAAe,uBAAuB,CAAC;AAE1B,QAAA,2BAA2B,GAAG,IAAA,kBAAU,EACnD,4BAA4B,CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./WalletConnectionWrapper";
2
+ export * from "./WalletConnectionWrapper";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/WalletConnectionWrapper/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qEAAoD;AAA3C,mIAAA,OAAO,OAAA;AAChB,4DAA0C"}
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from "react";
2
+ /**
3
+ * This utilitary component shall be used to lock the focus and disable scroll over the wrapped component
4
+ **/
5
+ export default function ScrollAndFocusLock({ open, children, }: PropsWithChildren<{
6
+ open: boolean;
7
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollAndFocusLock.js","sourceRoot":"","sources":["../../../../src/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAAoE;AACpE,sGAAsD;AACtD;;IAEI;AACJ,SAAwB,kBAAkB,CAAC,EACzC,IAAI,EACJ,QAAQ,GAGR;IACA,MAAM,WAAW,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IAChD,MAAM,YAAY,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IAClD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,IAAI;YAAE,YAAY,CAAC,OAAQ,CAAC,KAAK,EAAE,CAAC;IAC1C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,IAAI,EAAE,CAAC;YACT,YAAY,CAAC,OAAQ,CAAC,KAAK,EAAE,CAAC;YAC9B,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,wCAAM,CAAC,SAAS,CAAC,CAAA;YAE7C,OAAO,GAAG,EAAE;gBACV,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,wCAAM,CAAC,SAAS,CAAC,CAAA;YAClD,CAAC,CAAC;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,SAAS,cAAc,CAAC,CAAmC;QACzD,MAAM,mBAAmB,GAAG,GAAG,EAAE;YAC/B,MAAM,WAAW,GAAG,WAAW,CAAC,OAAQ,CAAC,kBAAkB,CAAC;YAC5D,IAAI,WAAW,YAAY,cAAc;gBAAE,WAAW,CAAC,KAAK,EAAE,CAAC;QACjE,CAAC,CAAC;QACF,IAAI,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;YACrC,IAAI,CAAC,CAAC,aAAa,KAAK,YAAY,CAAC,OAAO;gBAAE,UAAU,CAAC,OAAQ,CAAC,KAAK,EAAE,CAAC;;gBACrE,mBAAmB,EAAE,CAAC;QAC7B,CAAC;aAAM,IACL,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,OAAO;YAC/B,CAAC,CAAC,aAAa,KAAK,WAAW,CAAC,OAAO,EACvC,CAAC;YACD,mBAAmB,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,CACL,6DACE,gCAAK,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,GAAI,EAC/D,gCAAK,GAAG,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,GAAI,EACtC,QAAQ,EACT,gCAAK,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,GAAI,IAC7D,CACJ,CAAC;AACJ,CAAC;AA9CD,qCA8CC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./ScrollAndFocusLock";
2
+ export * from "./ScrollAndFocusLock";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/utilitary/ScrollAndFocusLock/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,2DAA+C;AAAtC,8HAAA,OAAO,OAAA;AAChB,uDAAqC"}
@@ -0,0 +1,23 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { FromOnePercentUtility } from "../type-utils";
3
+ type PersistedIdentifier = string;
4
+ /** Provides the async process functionality to the application */
5
+ export default function AsyncProcessProvider({ children, triggers, persistence, }: PropsWithChildren<{
6
+ /** Functions that will be provided to those that use the async process */
7
+ triggers: {
8
+ [k in keyof FromOnePercentUtility<'AsyncQueue.Processes'>]: (...args: FromOnePercentUtility<'AsyncQueue.Processes'>[k]) => Promise<void>;
9
+ };
10
+ /** This will persist the data required for restoring the async processes when required */
11
+ persistence: {
12
+ write: <K extends keyof FromOnePercentUtility<'AsyncQueue.Processes'>>(k: K, ...args: FromOnePercentUtility<'AsyncQueue.Processes'>[K]) => PersistedIdentifier;
13
+ remove: (id: PersistedIdentifier) => void;
14
+ recover: () => [PersistedIdentifier, Promise<void>][];
15
+ };
16
+ }>): import("react/jsx-runtime").JSX.Element;
17
+ /** Allows components to use the async process functionality */
18
+ export declare function useAsyncProcess(): {
19
+ [k in keyof FromOnePercentUtility<'AsyncQueue.Processes'>]: (...args: FromOnePercentUtility<'AsyncQueue.Processes'>[k]) => Promise<void>;
20
+ } & {
21
+ on: (k: keyof FromOnePercentUtility<'AsyncQueue.Processes'>, whatToDo: () => void) => void;
22
+ };
23
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncProcess.js","sourceRoot":"","sources":["../../src/context/AsyncProcess.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAuC;AACvC,iCAMe;AACf,2EAAmD;AAGnD,MAAM,mBAAmB,GAAG,IAAA,qBAAa,EAOtC,IAAW,CAAC,CAAC;AAIhB,kEAAkE;AAClE,SAAwB,oBAAoB,CAAC,EAC3C,QAAQ,EACR,QAAQ,EACR,WAAW,GAiBX;IACA,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,IAAA,mBAAS,GAAE,CAAC;IAE/C,MAAM,gBAAgB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACpC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CACjC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,iCACL,CAAC,K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E,CAAC;IAC/D,CAAC,EACD,EAAE,CACH,CAAC;IAEF,uBACE,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;YAClB,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;QACtD,CAAC,IACE,iBAAiB,EACpB;AACJ,CAAC;AA3BD,0CA2BC"}
@@ -0,0 +1,39 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { FunctionMap } from "../hooks/useAsyncControl";
3
+ type CB = (...args: any[]) => void;
4
+ declare class Subscriber {
5
+ private sharedCbs;
6
+ private latest;
7
+ register<C extends CB>(cbId: string, cb: C): (...args: Parameters<C>) => void;
8
+ unregister<C extends CB>(cbId: string, cb: C): void;
9
+ current(cbId: string): any;
10
+ }
11
+ /**
12
+ * Defines the structure for context control sharing.
13
+ */
14
+ export type ContextAsyncControlContextShape = {
15
+ [controlId: string]: Subscriber;
16
+ };
17
+ /**
18
+ * The context used to share state across components.
19
+ */
20
+ export declare const ContextAsyncControlContext: React.Context<ContextAsyncControlContextShape>;
21
+ /**
22
+ * Provider component to wrap the application context.
23
+ */
24
+ export default function ContextAsyncControlProvider({ children, }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
25
+ /**
26
+ * Hook to share state between components.
27
+ */
28
+ export declare function useShareState<E>(controlId: string, stateId: string): readonly [E, (value: React.SetStateAction<E>) => void];
29
+ /**
30
+ * Hook to control context with error and loading states.
31
+ */
32
+ export declare function useContextControl<E, F extends FunctionMap>(controlId: string, functionsToWrap: F): {
33
+ process: (asyncFn: Promise<any> | (() => Promise<any>)) => Promise<any>;
34
+ loading: boolean;
35
+ error: Error | E | undefined;
36
+ setError: React.Dispatch<React.SetStateAction<Error | E | undefined>>;
37
+ setLoading: React.Dispatch<React.SetStateAction<boolean>>;
38
+ } & F;
39
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextAsyncControl.js","sourceRoot":"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AAU,CAAC,CACtB,CAAC;AACJ,CAAC;AAfD,8CAeC"}
@@ -0,0 +1,19 @@
1
+ import { createBrowserHistory } from "history";
2
+ import { PropsWithChildren } from "react";
3
+ /**
4
+ * Defines the data that can be passed along with navigation.
5
+ */
6
+ export type CustomState = {
7
+ internalNavigation?: boolean;
8
+ };
9
+ /**
10
+ * A router component that manages navigation and route changes.
11
+ */
12
+ export default function CustomBrowserRouter({ children, beforeRouteChange, }: PropsWithChildren<{
13
+ /**
14
+ * Allows the dev to modify the route before commiting the route change
15
+ *
16
+ * @returns The new route
17
+ */
18
+ beforeRouteChange?: (newRoute: string, history: ReturnType<typeof createBrowserHistory>) => string;
19
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomBrowserRouter.js","sourceRoot":"","sources":["../../src/context/CustomBrowserRouter.tsx"],"names":[],"mappings":";;;AAAA,uDAAsD;AACtD,qCAA+C;AAC/C,iCAKe;AASf;;GAEG;AACH,SAAwB,mBAAmB,CAAC,EAC1C,QAAQ,EACR,iBAAiB,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAW5B;IACA,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,IAAA,cAAM,EAAC,IAAA,8BAAoB,GAAO,CAAC,CAAC;IACvE,IAAA,uBAAe,EAAC,GAAG,EAAE;QACnB,SAAS,gBAAgB,CAAC,IAAgC;YACxD,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAQ,CAAC;YACvC,aAAqB,CAAC,IAAI,CAAC,GAAG,CAC7B,KAAa,EACb,KAAyB,EACzB,GAAG,IAAW,EACd,EAAE;;gBACF,MAAM,+BAA+B,GACnC,IAAI,KAAK,SAAS,KAAI,MAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,KAAK,0CAAE,kBAAkB,CAAA,CAAC;gBACjE,MAAM,cAAc,GAAG,IAAI,KAAK,SAAS,CAAC;gBAC1C,IAAI,CAAC,cAAc,IAAI,+BAA+B,CAAC,IAAI,CAAC,KAAK;oBAC/D,KAAK,GAAG,EAAE,CAAC;gBACb,IAAI,KAAK;oBACP,KAAK,CAAC,kBAAkB;wBACtB,IAAI,KAAK,SAAS;4BAChB,CAAC,CAAC,MAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,KAAK,0CAAE,kBAAkB;4BAC1C,CAAC,CAAC,IAAI,CAAC;gBACb,MAAM,aAAa,GAAG,iBAAiB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;gBAC9D,OAAO,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;YAC7C,CAAC,CAAC;QACJ,CAAC;QACD,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACzB,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IACpB,OAAO,uBAAC,yBAAM,IAAC,OAAO,EAAE,aAAa,YAAG,QAAe,GAAU,CAAC;AACpE,CAAC;AAzCD,sCAyCC"}
@@ -0,0 +1,209 @@
1
+ import { JSX } from "react";
2
+ import { Get } from "type-fest";
3
+ import React, { ComponentProps, ReactElement, ReactNode } from "react";
4
+ import { PropsWithChildren } from "react";
5
+ import { ImageScales } from "../models/ImageScales";
6
+ import { UploadTask } from "firebase/storage";
7
+ import { FieldPath, FromOnePercentUtility, NamespaceAccessors, PathObject } from "../type-utils";
8
+ import Button from "../components/Button";
9
+ import CheckBox from "../components/CheckBox";
10
+ import Radio from "../components/Radio/Radio";
11
+ import { FileInputViewProps } from "../components/FileInput/View/View.types";
12
+ import { AnswerByField, FormField, GenericFormFieldProps } from "../components/Form/FormField/FormField.types";
13
+ import { FormMode } from "../components/Form/Form.types";
14
+ type DeepPartial<T> = {
15
+ [P in keyof T]?: NonNullable<T[P]> extends Function ? T[P] : DeepPartial<T[P]>;
16
+ };
17
+ type IfUtilityHas<N extends NamespaceAccessors, Declare> = FromOnePercentUtility<N> extends `To define this property you need to set OnepercentUtility.${string} globally` ? undefined : Declare;
18
+ /**
19
+ * Defines the available UI features and their settings.
20
+ */
21
+ export type OneUIContextSpecs = {
22
+ component: {
23
+ asyncTriggerContainer: {
24
+ LoadingComponent: () => ReactElement;
25
+ };
26
+ spacing: {
27
+ variants: {
28
+ [k in FromOnePercentUtility<"UIElements.SpacingVariants">]: string;
29
+ };
30
+ };
31
+ collapsable: {
32
+ className: string;
33
+ };
34
+ form: {
35
+ fieldWrapper: {
36
+ [k in `${keyof typeof FormMode}-${FormField["type"]}`]: string | ((p: PropsWithChildren<FormField & {
37
+ value: any;
38
+ }>) => ReactNode);
39
+ };
40
+ titleVariant: FromOnePercentUtility<"UIElements.TextVariants">;
41
+ labelVariant: FromOnePercentUtility<"UIElements.TextVariants">;
42
+ /** Label shown when a field is optional */
43
+ optionalLabel: string;
44
+ /** Label shown when a required field was not provided */
45
+ requiredLabel: string;
46
+ onFileUpload(questionId: string, file: File): UploadTask;
47
+ extensions: IfUtilityHas<"UIElements.FormExtension", {
48
+ [K in FromOnePercentUtility<"UIElements.FormExtension">["fields"]["type"]]: {
49
+ ReadOnly?: (props: Omit<GenericFormFieldProps<K>, "onAnswer" | "error">) => ReactElement;
50
+ Input: (props: GenericFormFieldProps<K>) => ReactElement;
51
+ validator: (answer: AnswerByField<{
52
+ type: K;
53
+ }> | undefined, question: FormField & (FromOnePercentUtility<"UIElements.FormExtension">["fields"] & {
54
+ type: K;
55
+ })) => {
56
+ isValid: boolean;
57
+ error?: string;
58
+ };
59
+ };
60
+ }>;
61
+ };
62
+ text: IfUtilityHas<"UIElements.TextVariants", {
63
+ className: {
64
+ [k in React.ComponentProps<(typeof import("../components/Text"))["default"]>["type"]]: string;
65
+ };
66
+ htmlTag: {
67
+ [k in React.ComponentProps<(typeof import("../components/Text"))["default"]>["type"]]: "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
68
+ };
69
+ }>;
70
+ button?: {
71
+ className?: {
72
+ [k in NonNullable<React.ComponentProps<(typeof import("../components/Button"))["default"]>["variant"]>]?: string;
73
+ };
74
+ Component?: (props: ComponentProps<typeof Button>) => ReactElement;
75
+ };
76
+ input: {
77
+ className: {
78
+ /** The wrapper around input tag & caption element (used for error and caption) */
79
+ container: string;
80
+ /** The input html tag */
81
+ input: string;
82
+ /** Appended to the input html tag's className when it has a visible error */
83
+ error?: string;
84
+ };
85
+ labelVariants: {
86
+ error?: FromOnePercentUtility<"UIElements.TextVariants">;
87
+ disclaimer?: FromOnePercentUtility<"UIElements.TextVariants">;
88
+ };
89
+ };
90
+ fileInput: {
91
+ View: (props: FileInputViewProps) => ReactElement;
92
+ button: {
93
+ variant: FromOnePercentUtility<"UIElements.ButtonVariants">;
94
+ };
95
+ };
96
+ passwordInput: {
97
+ iconSrc: {
98
+ passwordHidden: string;
99
+ passwordVisible: string;
100
+ };
101
+ };
102
+ asyncWrapper: {
103
+ LoadingComponent?: () => JSX.Element;
104
+ messages: {
105
+ error: {
106
+ title: string;
107
+ retryBtn: string;
108
+ };
109
+ };
110
+ };
111
+ select: {
112
+ StateIndicator: (props: {
113
+ open: boolean;
114
+ }) => JSX.Element;
115
+ className?: {
116
+ dropdown?: string;
117
+ item?: string;
118
+ selectedItem?: string;
119
+ input?: string;
120
+ };
121
+ };
122
+ header: {
123
+ LogoImage: () => JSX.Element;
124
+ MoreOptions: ({ open }: {
125
+ open: boolean;
126
+ }) => JSX.Element;
127
+ };
128
+ table: {
129
+ controls: {
130
+ PrevPage: ({ disabled }: {
131
+ disabled: boolean;
132
+ }) => JSX.Element;
133
+ NextPage: ({ disabled }: {
134
+ disabled: boolean;
135
+ }) => JSX.Element;
136
+ };
137
+ };
138
+ tooltip: {
139
+ className?: string;
140
+ };
141
+ adaptiveDialog: {
142
+ dialogClassName: string;
143
+ backdropClassName: string;
144
+ variant: {
145
+ [k in FromOnePercentUtility<"UIElements.AdaptiveDialogVariants">]: string;
146
+ };
147
+ closeButton: {
148
+ /** Overrides the default close button rendered on the dialog */
149
+ Component?: (props: {
150
+ onClick: () => void;
151
+ }) => ReactElement;
152
+ };
153
+ };
154
+ adaptiveSidebar: {
155
+ className: string;
156
+ controlClassName: string;
157
+ };
158
+ checkbox: {
159
+ Component?: (props: ComponentProps<typeof CheckBox>) => ReactElement;
160
+ };
161
+ radio: {
162
+ Component?: (props: ComponentProps<typeof Radio>) => ReactElement;
163
+ };
164
+ tabs: {
165
+ item: string;
166
+ container: string;
167
+ };
168
+ };
169
+ hook: {
170
+ ui: {
171
+ usePaginationControls: {
172
+ LeftControl: () => ReactElement;
173
+ RightControl: () => ReactElement;
174
+ className?: string;
175
+ };
176
+ };
177
+ };
178
+ state: {
179
+ imageScale: ImageScales;
180
+ };
181
+ };
182
+ /**
183
+ * The configuration object used to set up the UI provider.
184
+ */
185
+ export type ContextConfigSpecs = DeepPartial<OneUIContextSpecs> & PathObject<OneUIContextSpecs, "component.text">;
186
+ declare function OneUIProvider({ children, config, }: PropsWithChildren<{
187
+ config: ContextConfigSpecs;
188
+ }>): import("react/jsx-runtime").JSX.Element;
189
+ /**
190
+ * The main provider component that wraps your app to enable UI features.
191
+ */
192
+ export default OneUIProvider;
193
+ /**
194
+ * A hook to access the current UI configuration.
195
+ */
196
+ export declare function useOneUIContext(): OneUIContextSpecs;
197
+ /**
198
+ * A hook to get a specific UI view component.
199
+ */
200
+ export declare function useOneUIView<P extends FieldPath<OneUIContextSpecs>>(oneuiConfigPath: P, componentName: string): NonNullable<import("type-fest/source/get").GetWithPath<OneUIContextSpecs, P extends string ? import("type-fest").Split<import("type-fest/source/get").FixPathSquareBrackets<P>, "."> : P, {}>>;
201
+ /**
202
+ * A hook to retrieve a specific value from the UI configuration.
203
+ */
204
+ export declare function useOneUIConfig<P extends FieldPath<OneUIContextSpecs>>(prop: P): Get<OneUIContextSpecs, P>;
205
+ export declare function useOneUIConfig<P extends FieldPath<OneUIContextSpecs>, T extends DeepPartial<Get<OneUIContextSpecs, P>>>(prop: P, defaultValue: T): NonNullable<Get<OneUIContextSpecs, P>>;
206
+ /**
207
+ * A hook to get the current image scale setting.
208
+ */
209
+ export declare function useCurrentImageScale(): DeepPartial<ImageScales>;