@jenesei-software/jenesei-kit-react 1.3.39 → 2.0.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 (754) hide show
  1. package/README.md +0 -37
  2. package/build/AnimatePresence-BByJ67dn.js +134 -0
  3. package/build/AnimatePresence-BByJ67dn.js.map +1 -0
  4. package/build/AnimatePresence-BtUPiqYm.cjs +11 -0
  5. package/build/AnimatePresence-BtUPiqYm.cjs.map +1 -0
  6. package/build/area-outside.cjs.js +1 -2
  7. package/build/area-outside.d.ts +2 -28
  8. package/build/area-outside.es.js +2 -3
  9. package/build/area-preview.cjs.js +1 -2
  10. package/build/area-preview.d.ts +2 -48
  11. package/build/area-preview.es.js +3 -5
  12. package/build/area-skeleton.cjs.js +1 -2
  13. package/build/area-skeleton.d.ts +2 -68
  14. package/build/area-skeleton.es.js +2 -4
  15. package/build/areas/outside/area.d.ts +7 -0
  16. package/build/areas/outside/index.d.ts +1 -0
  17. package/build/areas/preview/area.d.ts +3 -0
  18. package/build/areas/preview/area.hooks.d.ts +1 -0
  19. package/build/areas/preview/area.types.d.ts +19 -0
  20. package/build/areas/preview/index.d.ts +3 -0
  21. package/build/areas/skeleton/area.d.ts +3 -0
  22. package/build/areas/skeleton/area.types.d.ts +21 -0
  23. package/build/areas/skeleton/index.d.ts +2 -0
  24. package/build/build-info.txt +3 -3
  25. package/build/button-C5PgNYns.cjs +3 -0
  26. package/build/button-C5PgNYns.cjs.map +1 -0
  27. package/build/button-D8zdhI-0.js +102 -0
  28. package/build/button-D8zdhI-0.js.map +1 -0
  29. package/build/checkbox-Ba0-4wxk.js +98 -0
  30. package/build/checkbox-Ba0-4wxk.js.map +1 -0
  31. package/build/checkbox-BtkbSjHq.cjs +3 -0
  32. package/build/checkbox-BtkbSjHq.cjs.map +1 -0
  33. package/build/chunk-CW3en5xf.cjs +1 -0
  34. package/build/chunk-D1xtDmiO.js +31 -0
  35. package/build/component-6HgOL-7c.js +71 -0
  36. package/build/component-6HgOL-7c.js.map +1 -0
  37. package/build/component-BjdeqpEq.cjs +3 -0
  38. package/build/component-BjdeqpEq.cjs.map +1 -0
  39. package/build/component-button.cjs.js +1 -2
  40. package/build/component-button.d.ts +2 -208
  41. package/build/component-button.es.js +2 -5
  42. package/build/component-checkbox.cjs.js +1 -2
  43. package/build/component-checkbox.d.ts +2 -208
  44. package/build/component-checkbox.es.js +2 -8
  45. package/build/component-date-picker.cjs.js +1 -2
  46. package/build/component-date-picker.d.ts +2 -582
  47. package/build/component-date-picker.es.js +2 -19
  48. package/build/component-icon.cjs.js +1 -2
  49. package/build/component-icon.d.ts +2 -136
  50. package/build/component-icon.es.js +4 -8
  51. package/build/component-input-otp.cjs.js +1 -2
  52. package/build/component-input-otp.d.ts +2 -211
  53. package/build/component-input-otp.es.js +2 -7
  54. package/build/component-input.cjs.js +1 -2
  55. package/build/component-input.d.ts +2 -286
  56. package/build/component-input.es.js +2 -18
  57. package/build/component-pagination.cjs.js +1 -2
  58. package/build/component-pagination.d.ts +2 -196
  59. package/build/component-pagination.es.js +2 -4
  60. package/build/component-popover.cjs.js +1 -0
  61. package/build/component-popover.d.ts +2 -0
  62. package/build/component-popover.es.js +5 -0
  63. package/build/component-select.cjs.js +1 -2
  64. package/build/component-select.d.ts +2 -411
  65. package/build/component-select.es.js +6 -18
  66. package/build/component-separator.cjs.js +1 -2
  67. package/build/component-separator.d.ts +2 -49
  68. package/build/component-separator.es.js +2 -5
  69. package/build/component-stack.cjs.js +1 -2
  70. package/build/component-stack.d.ts +2 -72
  71. package/build/component-stack.es.js +3 -6
  72. package/build/component-textarea.cjs.js +1 -2
  73. package/build/component-textarea.d.ts +2 -202
  74. package/build/component-textarea.es.js +2 -6
  75. package/build/component-toggle.cjs.js +1 -2
  76. package/build/component-toggle.d.ts +2 -150
  77. package/build/component-toggle.es.js +2 -6
  78. package/build/component-tooltip.cjs.js +1 -2
  79. package/build/component-tooltip.d.ts +2 -360
  80. package/build/component-tooltip.es.js +2 -10
  81. package/build/component-typography.cjs.js +1 -2
  82. package/build/component-typography.d.ts +2 -316
  83. package/build/component-typography.es.js +3 -9
  84. package/build/components/button/component.d.ts +3 -0
  85. package/build/components/button/component.types.d.ts +41 -0
  86. package/build/components/button/index.d.ts +2 -0
  87. package/build/components/checkbox/component.d.ts +3 -0
  88. package/build/components/checkbox/component.types.d.ts +51 -0
  89. package/build/components/checkbox/index.d.ts +2 -0
  90. package/build/components/date-picker/component.d.ts +2 -0
  91. package/build/components/date-picker/component.types.d.ts +86 -0
  92. package/build/components/date-picker/index.d.ts +2 -0
  93. package/build/components/error/component.d.ts +3 -0
  94. package/build/components/error/component.types.d.ts +11 -0
  95. package/build/components/error/index.d.ts +2 -0
  96. package/build/components/icon/component.consts.d.ts +6 -0
  97. package/build/components/icon/component.d.ts +9 -0
  98. package/build/components/icon/component.functions.d.ts +2 -0
  99. package/build/components/icon/component.hooks.d.ts +5 -0
  100. package/build/components/icon/component.types.d.ts +47 -0
  101. package/build/components/icon/index.d.ts +4 -0
  102. package/build/components/input/component.d.ts +6 -0
  103. package/build/components/input/component.types.d.ts +78 -0
  104. package/build/components/input/index.d.ts +2 -0
  105. package/build/components/input-otp/component.d.ts +2 -0
  106. package/build/components/input-otp/component.types.d.ts +8 -0
  107. package/build/components/input-otp/index.d.ts +2 -0
  108. package/build/components/pagination/component.constants.d.ts +1 -0
  109. package/build/components/pagination/component.d.ts +3 -0
  110. package/build/components/pagination/component.types.d.ts +22 -0
  111. package/build/components/pagination/index.d.ts +2 -0
  112. package/build/components/popover/component.constants.d.ts +3 -0
  113. package/build/components/popover/component.d.ts +34 -0
  114. package/build/components/popover/component.types.d.ts +113 -0
  115. package/build/components/popover/index.d.ts +2 -0
  116. package/build/components/select/component.d.ts +4 -0
  117. package/build/components/select/component.examples.d.ts +6 -0
  118. package/build/components/select/component.types.d.ts +109 -0
  119. package/build/components/select/index.d.ts +3 -0
  120. package/build/components/separator/component.d.ts +3 -0
  121. package/build/components/separator/component.types.d.ts +10 -0
  122. package/build/components/separator/index.d.ts +2 -0
  123. package/build/components/stack/component.d.ts +4 -0
  124. package/build/components/stack/component.types.d.ts +20 -0
  125. package/build/components/stack/index.d.ts +2 -0
  126. package/build/components/textarea/component.d.ts +2 -0
  127. package/build/components/textarea/component.types.d.ts +67 -0
  128. package/build/components/textarea/index.d.ts +2 -0
  129. package/build/components/toggle/component.d.ts +2 -0
  130. package/build/components/toggle/component.types.d.ts +25 -0
  131. package/build/components/toggle/index.d.ts +2 -0
  132. package/build/components/tooltip/component.constants.d.ts +3 -0
  133. package/build/components/tooltip/component.d.ts +4 -0
  134. package/build/components/tooltip/component.types.d.ts +12 -0
  135. package/build/components/tooltip/index.d.ts +2 -0
  136. package/build/components/typography/component.d.ts +3 -0
  137. package/build/components/typography/component.types.d.ts +18 -0
  138. package/build/components/typography/index.d.ts +2 -0
  139. package/build/components-error.cjs.js +1 -0
  140. package/build/components-error.d.ts +2 -0
  141. package/build/components-error.es.js +4 -0
  142. package/build/context-app-4_kY3Qcd.js +417 -0
  143. package/build/context-app-4_kY3Qcd.js.map +1 -0
  144. package/build/context-app-DKsS6_WR.cjs +9 -0
  145. package/build/context-app-DKsS6_WR.cjs.map +1 -0
  146. package/build/context-app.cjs.js +1 -2
  147. package/build/context-app.d.ts +2 -224
  148. package/build/context-app.es.js +3 -19
  149. package/build/context-browser-theme-CPhqqRUP.js +35 -0
  150. package/build/context-browser-theme-CPhqqRUP.js.map +1 -0
  151. package/build/context-browser-theme-o9geUlSH.cjs +3 -0
  152. package/build/context-browser-theme-o9geUlSH.cjs.map +1 -0
  153. package/build/context-browser-theme.cjs.js +1 -0
  154. package/build/context-browser-theme.d.ts +2 -0
  155. package/build/context-browser-theme.es.js +5 -0
  156. package/build/context-cookie-5CBhf-gb.js +138 -0
  157. package/build/context-cookie-5CBhf-gb.js.map +1 -0
  158. package/build/context-cookie-CvTU44MD.cjs +3 -0
  159. package/build/context-cookie-CvTU44MD.cjs.map +1 -0
  160. package/build/context-cookie.cjs.js +1 -2
  161. package/build/context-cookie.d.ts +2 -67
  162. package/build/context-cookie.es.js +3 -8
  163. package/build/context-dialog-CCnhd1EY.cjs +3 -0
  164. package/build/context-dialog-CCnhd1EY.cjs.map +1 -0
  165. package/build/context-dialog-HLeQ5WNn.js +176 -0
  166. package/build/context-dialog-HLeQ5WNn.js.map +1 -0
  167. package/build/context-dialog.cjs.js +1 -2
  168. package/build/context-dialog.d.ts +2 -106
  169. package/build/context-dialog.es.js +4 -17
  170. package/build/context-geolocation-C7PYGQ2g.js +42 -0
  171. package/build/context-geolocation-C7PYGQ2g.js.map +1 -0
  172. package/build/context-geolocation-ffFFV4kn.cjs +3 -0
  173. package/build/context-geolocation-ffFFV4kn.cjs.map +1 -0
  174. package/build/context-geolocation.cjs.js +1 -2
  175. package/build/context-geolocation.d.ts +2 -22
  176. package/build/context-geolocation.es.js +3 -6
  177. package/build/context-local-storage-Bb_vktd8.js +83 -0
  178. package/build/context-local-storage-Bb_vktd8.js.map +1 -0
  179. package/build/context-local-storage-kmxWNK_4.cjs +3 -0
  180. package/build/context-local-storage-kmxWNK_4.cjs.map +1 -0
  181. package/build/context-local-storage.cjs.js +1 -2
  182. package/build/context-local-storage.d.ts +2 -54
  183. package/build/context-local-storage.es.js +3 -8
  184. package/build/context-permission-Co4BKDOu.js +77 -0
  185. package/build/context-permission-Co4BKDOu.js.map +1 -0
  186. package/build/context-permission-K3tWOiAx.cjs +3 -0
  187. package/build/context-permission-K3tWOiAx.cjs.map +1 -0
  188. package/build/context-permission.cjs.js +1 -2
  189. package/build/context-permission.d.ts +2 -28
  190. package/build/context-permission.es.js +3 -7
  191. package/build/context-screen-width-CEsyIyg6.js +53 -0
  192. package/build/context-screen-width-CEsyIyg6.js.map +1 -0
  193. package/build/context-screen-width-ind6z7Ny.cjs +3 -0
  194. package/build/context-screen-width-ind6z7Ny.cjs.map +1 -0
  195. package/build/context-screen-width.cjs.js +1 -2
  196. package/build/context-screen-width.d.ts +2 -34
  197. package/build/context-screen-width.es.js +3 -5
  198. package/build/context-sonner-Bniiz914.js +218 -0
  199. package/build/context-sonner-Bniiz914.js.map +1 -0
  200. package/build/context-sonner-L0OMEvZE.cjs +3 -0
  201. package/build/context-sonner-L0OMEvZE.cjs.map +1 -0
  202. package/build/context-sonner.cjs.js +1 -2
  203. package/build/context-sonner.d.ts +2 -457
  204. package/build/context-sonner.es.js +3 -20
  205. package/build/contexts/context-app/context.d.ts +33 -0
  206. package/build/contexts/context-app/context.hooks.d.ts +2 -0
  207. package/build/contexts/context-app/context.styles.d.ts +14 -0
  208. package/build/contexts/context-app/context.types.d.ts +87 -0
  209. package/build/contexts/context-app/index.d.ts +2 -0
  210. package/build/contexts/context-browser-theme/context.d.ts +4 -0
  211. package/build/contexts/context-browser-theme/context.hooks.d.ts +2 -0
  212. package/build/contexts/context-browser-theme/context.types.d.ts +12 -0
  213. package/build/contexts/context-browser-theme/index.d.ts +2 -0
  214. package/build/contexts/context-cookie/context.d.ts +27 -0
  215. package/build/contexts/context-cookie/context.functions.d.ts +3 -0
  216. package/build/contexts/context-cookie/context.hooks.d.ts +9 -0
  217. package/build/contexts/context-cookie/context.types.d.ts +18 -0
  218. package/build/contexts/context-cookie/index.d.ts +3 -0
  219. package/build/contexts/context-dialog/context.constants.d.ts +8 -0
  220. package/build/contexts/context-dialog/context.d.ts +4 -0
  221. package/build/contexts/context-dialog/context.hooks.d.ts +3 -0
  222. package/build/contexts/context-dialog/context.styles.d.ts +9 -0
  223. package/build/contexts/context-dialog/context.types.d.ts +47 -0
  224. package/build/contexts/context-dialog/index.d.ts +3 -0
  225. package/build/contexts/context-geolocation/context.d.ts +4 -0
  226. package/build/contexts/context-geolocation/context.hooks.d.ts +2 -0
  227. package/build/contexts/context-geolocation/context.types.d.ts +10 -0
  228. package/build/contexts/context-geolocation/index.d.ts +2 -0
  229. package/build/contexts/context-local-storage/context.d.ts +21 -0
  230. package/build/contexts/context-local-storage/context.functions.d.ts +2 -0
  231. package/build/contexts/context-local-storage/context.hooks.d.ts +5 -0
  232. package/build/contexts/context-local-storage/context.types.d.ts +16 -0
  233. package/build/contexts/context-local-storage/index.d.ts +3 -0
  234. package/build/contexts/context-permission/context.d.ts +3 -0
  235. package/build/contexts/context-permission/context.functions.d.ts +1 -0
  236. package/build/contexts/context-permission/context.hooks.d.ts +5 -0
  237. package/build/contexts/context-permission/context.types.d.ts +11 -0
  238. package/build/contexts/context-permission/index.d.ts +2 -0
  239. package/build/contexts/context-screen-width/context.d.ts +4 -0
  240. package/build/contexts/context-screen-width/context.hooks.d.ts +2 -0
  241. package/build/contexts/context-screen-width/context.types.d.ts +11 -0
  242. package/build/contexts/context-screen-width/index.d.ts +3 -0
  243. package/build/contexts/context-sonner/context.constants.d.ts +9 -0
  244. package/build/contexts/context-sonner/context.d.ts +4 -0
  245. package/build/contexts/context-sonner/context.hooks.d.ts +2 -0
  246. package/build/contexts/context-sonner/context.styles.d.ts +30 -0
  247. package/build/contexts/context-sonner/context.types.d.ts +59 -0
  248. package/build/contexts/context-sonner/index.d.ts +3 -0
  249. package/build/cores/consts.d.ts +30 -0
  250. package/build/{functions.d.ts → cores/functions.d.ts} +18 -22
  251. package/build/cores/logger.d.ts +1 -0
  252. package/build/cores/types.d.ts +18 -0
  253. package/build/date-picker-CQUe3ZXt.cjs +3 -0
  254. package/build/date-picker-CQUe3ZXt.cjs.map +1 -0
  255. package/build/date-picker-z3LcE7Ab.js +689 -0
  256. package/build/date-picker-z3LcE7Ab.js.map +1 -0
  257. package/build/dist-C8r_OdG1.cjs +3 -0
  258. package/build/dist-C8r_OdG1.cjs.map +1 -0
  259. package/build/dist-Dq_YJa2q.js +483 -0
  260. package/build/dist-Dq_YJa2q.js.map +1 -0
  261. package/build/error--kiPVmoi.cjs +3 -0
  262. package/build/error--kiPVmoi.cjs.map +1 -0
  263. package/build/error-D1UNY-0f.js +50 -0
  264. package/build/error-D1UNY-0f.js.map +1 -0
  265. package/build/functions-CLGf7hqw.js +20 -0
  266. package/build/functions-CLGf7hqw.js.map +1 -0
  267. package/build/functions-Dwo54amB.cjs +3 -0
  268. package/build/functions-Dwo54amB.cjs.map +1 -0
  269. package/build/hooks/use-debounced-callback/index.d.ts +1 -0
  270. package/build/hooks/use-debounced-callback/use.d.ts +1 -0
  271. package/build/hooks/use-deep-compare-memoize/index.d.ts +1 -0
  272. package/build/hooks/use-deep-compare-memoize/use.d.ts +1 -0
  273. package/build/hooks/use-deep-memo/index.d.ts +1 -0
  274. package/build/hooks/use-deep-memo/use.d.ts +1 -0
  275. package/build/hooks/use-merge-refs/index.d.ts +1 -0
  276. package/build/hooks/use-merge-refs/use.d.ts +2 -0
  277. package/build/hooks/use-overflowing/index.d.ts +2 -0
  278. package/build/hooks/use-overflowing/use.d.ts +12 -0
  279. package/build/hooks/use-overflowing/use.types.d.ts +6 -0
  280. package/build/hooks/use-overflowing-advanced/index.d.ts +2 -0
  281. package/build/hooks/use-overflowing-advanced/use.d.ts +7 -0
  282. package/build/hooks/use-overflowing-advanced/use.types.d.ts +5 -0
  283. package/build/hooks/use-overflowing-in-container/index.d.ts +2 -0
  284. package/build/hooks/use-overflowing-in-container/use.d.ts +7 -0
  285. package/build/hooks/use-overflowing-in-container/use.types.d.ts +7 -0
  286. package/build/hooks/use-responsive-layout/index.d.ts +1 -0
  287. package/build/hooks/use-responsive-layout/use.d.ts +2 -0
  288. package/build/hooks/use-typography-styles/index.d.ts +2 -0
  289. package/build/hooks/use-typography-styles/use.d.ts +2 -0
  290. package/build/hooks/use-typography-styles/use.types.d.ts +11 -0
  291. package/build/hooks-use-debounced-callback.cjs.js +3 -2
  292. package/build/hooks-use-debounced-callback.cjs.js.map +1 -1
  293. package/build/hooks-use-debounced-callback.d.ts +2 -3
  294. package/build/hooks-use-debounced-callback.es.js +12 -3
  295. package/build/hooks-use-debounced-callback.es.js.map +1 -1
  296. package/build/hooks-use-deep-compare-memoize.cjs.js +3 -2
  297. package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -1
  298. package/build/hooks-use-deep-compare-memoize.d.ts +2 -3
  299. package/build/hooks-use-deep-compare-memoize.es.js +10 -3
  300. package/build/hooks-use-deep-compare-memoize.es.js.map +1 -1
  301. package/build/hooks-use-deep-memo.cjs.js +3 -0
  302. package/build/hooks-use-deep-memo.cjs.js.map +1 -0
  303. package/build/hooks-use-deep-memo.d.ts +2 -0
  304. package/build/hooks-use-deep-memo.es.js +13 -0
  305. package/build/hooks-use-deep-memo.es.js.map +1 -0
  306. package/build/hooks-use-merge-refs.cjs.js +3 -0
  307. package/build/hooks-use-merge-refs.cjs.js.map +1 -0
  308. package/build/hooks-use-merge-refs.d.ts +2 -0
  309. package/build/hooks-use-merge-refs.es.js +13 -0
  310. package/build/hooks-use-merge-refs.es.js.map +1 -0
  311. package/build/hooks-use-overflowing-advanced.cjs.js +3 -0
  312. package/build/hooks-use-overflowing-advanced.cjs.js.map +1 -0
  313. package/build/hooks-use-overflowing-advanced.d.ts +2 -0
  314. package/build/hooks-use-overflowing-advanced.es.js +24 -0
  315. package/build/hooks-use-overflowing-advanced.es.js.map +1 -0
  316. package/build/hooks-use-overflowing-in-container.cjs.js +3 -0
  317. package/build/hooks-use-overflowing-in-container.cjs.js.map +1 -0
  318. package/build/hooks-use-overflowing-in-container.d.ts +2 -0
  319. package/build/hooks-use-overflowing-in-container.es.js +20 -0
  320. package/build/hooks-use-overflowing-in-container.es.js.map +1 -0
  321. package/build/hooks-use-overflowing.cjs.js +3 -0
  322. package/build/hooks-use-overflowing.cjs.js.map +1 -0
  323. package/build/hooks-use-overflowing.d.ts +2 -0
  324. package/build/hooks-use-overflowing.es.js +28 -0
  325. package/build/hooks-use-overflowing.es.js.map +1 -0
  326. package/build/hooks-use-responsive-layout.cjs.js +3 -0
  327. package/build/hooks-use-responsive-layout.cjs.js.map +1 -0
  328. package/build/hooks-use-responsive-layout.d.ts +2 -0
  329. package/build/hooks-use-responsive-layout.es.js +22 -0
  330. package/build/hooks-use-responsive-layout.es.js.map +1 -0
  331. package/build/hooks-use-typography-styles.cjs.js +3 -0
  332. package/build/hooks-use-typography-styles.cjs.js.map +1 -0
  333. package/build/hooks-use-typography-styles.d.ts +2 -0
  334. package/build/hooks-use-typography-styles.es.js +37 -0
  335. package/build/hooks-use-typography-styles.es.js.map +1 -0
  336. package/build/icon-BG6R5Lfa.js +277 -0
  337. package/build/icon-BG6R5Lfa.js.map +1 -0
  338. package/build/icon-CreblPsB.cjs +3 -0
  339. package/build/icon-CreblPsB.cjs.map +1 -0
  340. package/build/index.cjs.js +1 -2
  341. package/build/index.d.ts +39 -2494
  342. package/build/index.es.js +104 -309
  343. package/build/input-CWcWWMCp.cjs +11 -0
  344. package/build/input-CWcWWMCp.cjs.map +1 -0
  345. package/build/input-DqMLnOz5.js +917 -0
  346. package/build/input-DqMLnOz5.js.map +1 -0
  347. package/build/input-otp-DPp3qmvI.js +106 -0
  348. package/build/input-otp-DPp3qmvI.js.map +1 -0
  349. package/build/input-otp-Z_wz6o6L.cjs +3 -0
  350. package/build/input-otp-Z_wz6o6L.cjs.map +1 -0
  351. package/build/isEqual-VCZu3vai.js +675 -0
  352. package/build/isEqual-VCZu3vai.js.map +1 -0
  353. package/build/isEqual-wc3RBuBi.cjs +3 -0
  354. package/build/isEqual-wc3RBuBi.cjs.map +1 -0
  355. package/build/logger-BRWLzI5S.js +174 -0
  356. package/build/logger-BRWLzI5S.js.map +1 -0
  357. package/build/logger-DZFY33QY.cjs +5 -0
  358. package/build/logger-DZFY33QY.cjs.map +1 -0
  359. package/build/motion-BeQRGZxW.cjs +3 -0
  360. package/build/motion-BeQRGZxW.cjs.map +1 -0
  361. package/build/motion-Ot_yGWVJ.js +128 -0
  362. package/build/motion-Ot_yGWVJ.js.map +1 -0
  363. package/build/outside-BtjOuCPD.js +24 -0
  364. package/build/outside-BtjOuCPD.js.map +1 -0
  365. package/build/outside-DJ1B9sBT.cjs +3 -0
  366. package/build/outside-DJ1B9sBT.cjs.map +1 -0
  367. package/build/pagination-BnvQ1aha.cjs +3 -0
  368. package/build/pagination-BnvQ1aha.cjs.map +1 -0
  369. package/build/pagination-CpaP3Svg.js +110 -0
  370. package/build/pagination-CpaP3Svg.js.map +1 -0
  371. package/build/popover-1k1MNFwv.js +1948 -0
  372. package/build/popover-1k1MNFwv.js.map +1 -0
  373. package/build/popover-fte_EMYr.cjs +3 -0
  374. package/build/popover-fte_EMYr.cjs.map +1 -0
  375. package/build/preview-BvJN6QoV.js +65 -0
  376. package/build/preview-BvJN6QoV.js.map +1 -0
  377. package/build/preview-CG76AiC9.cjs +3 -0
  378. package/build/preview-CG76AiC9.cjs.map +1 -0
  379. package/build/proxy-D2Z8K6jr.cjs +3 -0
  380. package/build/proxy-D2Z8K6jr.cjs.map +1 -0
  381. package/build/proxy-DTLy-pV-.js +4354 -0
  382. package/build/proxy-DTLy-pV-.js.map +1 -0
  383. package/build/select-B4JeEvIF.js +3443 -0
  384. package/build/select-B4JeEvIF.js.map +1 -0
  385. package/build/select-BQtWzaxE.cjs +9 -0
  386. package/build/select-BQtWzaxE.cjs.map +1 -0
  387. package/build/separator-BXoT44nC.cjs +3 -0
  388. package/build/separator-BXoT44nC.cjs.map +1 -0
  389. package/build/separator-hWp-s54-.js +29 -0
  390. package/build/separator-hWp-s54-.js.map +1 -0
  391. package/build/skeleton-BOfnrUaI.cjs +3 -0
  392. package/build/skeleton-BOfnrUaI.cjs.map +1 -0
  393. package/build/skeleton-Bzr92XmL.js +39 -0
  394. package/build/skeleton-Bzr92XmL.js.map +1 -0
  395. package/build/style-motion.cjs.js +1 -2
  396. package/build/style-motion.d.ts +2 -20
  397. package/build/style-motion.es.js +5 -6
  398. package/build/style-utils.cjs.js +1 -0
  399. package/build/style-utils.d.ts +2 -0
  400. package/build/style-utils.es.js +7 -0
  401. package/build/styles/motion/index.d.ts +1 -0
  402. package/build/styles/motion/motion.d.ts +13 -0
  403. package/build/styles/utils/constants.d.ts +1797 -0
  404. package/build/styles/utils/functions.d.ts +3 -0
  405. package/build/styles/utils/index.d.ts +3 -0
  406. package/build/styles/utils/types.d.ts +68 -0
  407. package/build/textarea-BRzorAFw.cjs +3 -0
  408. package/build/textarea-BRzorAFw.cjs.map +1 -0
  409. package/build/textarea-BssfjUe3.js +132 -0
  410. package/build/textarea-BssfjUe3.js.map +1 -0
  411. package/build/toggle-BFp9Nmas.cjs +3 -0
  412. package/build/toggle-BFp9Nmas.cjs.map +1 -0
  413. package/build/toggle-CCfZoBpW.js +86 -0
  414. package/build/toggle-CCfZoBpW.js.map +1 -0
  415. package/build/typography-B2KioMfq.js +116 -0
  416. package/build/typography-B2KioMfq.js.map +1 -0
  417. package/build/typography-whjfut7N.cjs +3 -0
  418. package/build/typography-whjfut7N.cjs.map +1 -0
  419. package/build/utils-Cona48dZ.js +925 -0
  420. package/build/utils-Cona48dZ.js.map +1 -0
  421. package/build/utils-DtinAjAU.cjs +3 -0
  422. package/build/utils-DtinAjAU.cjs.map +1 -0
  423. package/build/v4-BDi_Luux.cjs +3 -0
  424. package/build/v4-BDi_Luux.cjs.map +1 -0
  425. package/build/v4-CYaPyb-W.js +31 -0
  426. package/build/v4-CYaPyb-W.js.map +1 -0
  427. package/package.json +189 -194
  428. package/build/area-0BNtBqG8.cjs +0 -2
  429. package/build/area-0BNtBqG8.cjs.map +0 -1
  430. package/build/area-B6xxVQ87.js +0 -35
  431. package/build/area-B6xxVQ87.js.map +0 -1
  432. package/build/area-B7-4IFQB.js +0 -19
  433. package/build/area-B7-4IFQB.js.map +0 -1
  434. package/build/area-DxKLtDFZ.cjs +0 -2
  435. package/build/area-DxKLtDFZ.cjs.map +0 -1
  436. package/build/area-outside.cjs.js.map +0 -1
  437. package/build/area-outside.es.js.map +0 -1
  438. package/build/area-preview.cjs.js.map +0 -1
  439. package/build/area-preview.es.js.map +0 -1
  440. package/build/area-scroll.cjs.js +0 -2
  441. package/build/area-scroll.cjs.js.map +0 -1
  442. package/build/area-scroll.d.ts +0 -57
  443. package/build/area-scroll.es.js +0 -7
  444. package/build/area-scroll.es.js.map +0 -1
  445. package/build/area-skeleton.cjs.js.map +0 -1
  446. package/build/area-skeleton.es.js.map +0 -1
  447. package/build/area-smooth.cjs.js +0 -2
  448. package/build/area-smooth.cjs.js.map +0 -1
  449. package/build/area-smooth.d.ts +0 -37
  450. package/build/area-smooth.es.js +0 -5
  451. package/build/area-smooth.es.js.map +0 -1
  452. package/build/area.hooks-Bk04M7mk.js +0 -26
  453. package/build/area.hooks-Bk04M7mk.js.map +0 -1
  454. package/build/area.hooks-C_UKZzcb.cjs +0 -2
  455. package/build/area.hooks-C_UKZzcb.cjs.map +0 -1
  456. package/build/area.styles-Cpx4H0gc.cjs +0 -27
  457. package/build/area.styles-Cpx4H0gc.cjs.map +0 -1
  458. package/build/area.styles-DhCCEhuq.js +0 -32
  459. package/build/area.styles-DhCCEhuq.js.map +0 -1
  460. package/build/component-B0PbrKuJ.cjs +0 -2
  461. package/build/component-B0PbrKuJ.cjs.map +0 -1
  462. package/build/component-BBrKC5hB.js +0 -84
  463. package/build/component-BBrKC5hB.js.map +0 -1
  464. package/build/component-BMIqhbpK.js +0 -23
  465. package/build/component-BMIqhbpK.js.map +0 -1
  466. package/build/component-BlEglNo9.js +0 -60
  467. package/build/component-BlEglNo9.js.map +0 -1
  468. package/build/component-CONSm7hH.cjs +0 -2
  469. package/build/component-CONSm7hH.cjs.map +0 -1
  470. package/build/component-CPVG0orB.js +0 -50
  471. package/build/component-CPVG0orB.js.map +0 -1
  472. package/build/component-CTrSBI75.js +0 -64
  473. package/build/component-CTrSBI75.js.map +0 -1
  474. package/build/component-CWawez-M.js +0 -443
  475. package/build/component-CWawez-M.js.map +0 -1
  476. package/build/component-CZM5p4mC.js +0 -74
  477. package/build/component-CZM5p4mC.js.map +0 -1
  478. package/build/component-Cfs39n8Q.js +0 -21
  479. package/build/component-Cfs39n8Q.js.map +0 -1
  480. package/build/component-CoOTSdM5.cjs +0 -28
  481. package/build/component-CoOTSdM5.cjs.map +0 -1
  482. package/build/component-Cu2i_-RT.cjs +0 -2
  483. package/build/component-Cu2i_-RT.cjs.map +0 -1
  484. package/build/component-D-HMYzXU.js +0 -65
  485. package/build/component-D-HMYzXU.js.map +0 -1
  486. package/build/component-DGpaKn6_.js +0 -248
  487. package/build/component-DGpaKn6_.js.map +0 -1
  488. package/build/component-DJAq34yj.cjs +0 -2
  489. package/build/component-DJAq34yj.cjs.map +0 -1
  490. package/build/component-DKzHmIUP.js +0 -10
  491. package/build/component-DKzHmIUP.js.map +0 -1
  492. package/build/component-Dkw50gzn.cjs +0 -2
  493. package/build/component-Dkw50gzn.cjs.map +0 -1
  494. package/build/component-DqV_-YxZ.cjs +0 -2
  495. package/build/component-DqV_-YxZ.cjs.map +0 -1
  496. package/build/component-Dy66XPIf.cjs +0 -2
  497. package/build/component-Dy66XPIf.cjs.map +0 -1
  498. package/build/component-DyLdklDO.cjs +0 -2
  499. package/build/component-DyLdklDO.cjs.map +0 -1
  500. package/build/component-LG-duo2b.cjs +0 -2
  501. package/build/component-LG-duo2b.cjs.map +0 -1
  502. package/build/component-PZe4p8qh.cjs +0 -2
  503. package/build/component-PZe4p8qh.cjs.map +0 -1
  504. package/build/component-RlcwDmkg.js +0 -39
  505. package/build/component-RlcwDmkg.js.map +0 -1
  506. package/build/component-ZdZUAyaP.cjs +0 -2
  507. package/build/component-ZdZUAyaP.cjs.map +0 -1
  508. package/build/component-accordion.cjs.js +0 -2
  509. package/build/component-accordion.cjs.js.map +0 -1
  510. package/build/component-accordion.d.ts +0 -100
  511. package/build/component-accordion.es.js +0 -11
  512. package/build/component-accordion.es.js.map +0 -1
  513. package/build/component-buGvmEo6.cjs +0 -2
  514. package/build/component-buGvmEo6.cjs.map +0 -1
  515. package/build/component-button-group.cjs.js +0 -2
  516. package/build/component-button-group.cjs.js.map +0 -1
  517. package/build/component-button-group.d.ts +0 -195
  518. package/build/component-button-group.es.js +0 -7
  519. package/build/component-button-group.es.js.map +0 -1
  520. package/build/component-button.cjs.js.map +0 -1
  521. package/build/component-button.es.js.map +0 -1
  522. package/build/component-checkbox-group.cjs.js +0 -2
  523. package/build/component-checkbox-group.cjs.js.map +0 -1
  524. package/build/component-checkbox-group.d.ts +0 -224
  525. package/build/component-checkbox-group.es.js +0 -12
  526. package/build/component-checkbox-group.es.js.map +0 -1
  527. package/build/component-checkbox.cjs.js.map +0 -1
  528. package/build/component-checkbox.es.js.map +0 -1
  529. package/build/component-date-picker.cjs.js.map +0 -1
  530. package/build/component-date-picker.es.js.map +0 -1
  531. package/build/component-gcvwlILJ.js +0 -76
  532. package/build/component-gcvwlILJ.js.map +0 -1
  533. package/build/component-icon.cjs.js.map +0 -1
  534. package/build/component-icon.es.js.map +0 -1
  535. package/build/component-image-button.cjs.js +0 -2
  536. package/build/component-image-button.cjs.js.map +0 -1
  537. package/build/component-image-button.d.ts +0 -215
  538. package/build/component-image-button.es.js +0 -5
  539. package/build/component-image-button.es.js.map +0 -1
  540. package/build/component-image-select.cjs.js +0 -2
  541. package/build/component-image-select.cjs.js.map +0 -1
  542. package/build/component-image-select.d.ts +0 -313
  543. package/build/component-image-select.es.js +0 -12
  544. package/build/component-image-select.es.js.map +0 -1
  545. package/build/component-image-slider.cjs.js +0 -2
  546. package/build/component-image-slider.cjs.js.map +0 -1
  547. package/build/component-image-slider.d.ts +0 -108
  548. package/build/component-image-slider.es.js +0 -9
  549. package/build/component-image-slider.es.js.map +0 -1
  550. package/build/component-image.cjs.js +0 -2
  551. package/build/component-image.cjs.js.map +0 -1
  552. package/build/component-image.d.ts +0 -51
  553. package/build/component-image.es.js +0 -7
  554. package/build/component-image.es.js.map +0 -1
  555. package/build/component-input-otp.cjs.js.map +0 -1
  556. package/build/component-input-otp.es.js.map +0 -1
  557. package/build/component-input.cjs.js.map +0 -1
  558. package/build/component-input.es.js.map +0 -1
  559. package/build/component-pagination.cjs.js.map +0 -1
  560. package/build/component-pagination.es.js.map +0 -1
  561. package/build/component-range.cjs.js +0 -2
  562. package/build/component-range.cjs.js.map +0 -1
  563. package/build/component-range.d.ts +0 -212
  564. package/build/component-range.es.js +0 -9
  565. package/build/component-range.es.js.map +0 -1
  566. package/build/component-ripple.cjs.js +0 -2
  567. package/build/component-ripple.cjs.js.map +0 -1
  568. package/build/component-ripple.d.ts +0 -47
  569. package/build/component-ripple.es.js +0 -12
  570. package/build/component-ripple.es.js.map +0 -1
  571. package/build/component-sNGsB3JK.js +0 -88
  572. package/build/component-sNGsB3JK.js.map +0 -1
  573. package/build/component-sVzC5XUR.cjs +0 -2
  574. package/build/component-sVzC5XUR.cjs.map +0 -1
  575. package/build/component-select.cjs.js.map +0 -1
  576. package/build/component-select.es.js.map +0 -1
  577. package/build/component-separator.cjs.js.map +0 -1
  578. package/build/component-separator.es.js.map +0 -1
  579. package/build/component-stack.cjs.js.map +0 -1
  580. package/build/component-stack.es.js.map +0 -1
  581. package/build/component-textarea.cjs.js.map +0 -1
  582. package/build/component-textarea.es.js.map +0 -1
  583. package/build/component-toggle.cjs.js.map +0 -1
  584. package/build/component-toggle.es.js.map +0 -1
  585. package/build/component-tooltip.cjs.js.map +0 -1
  586. package/build/component-tooltip.es.js.map +0 -1
  587. package/build/component-typography.cjs.js.map +0 -1
  588. package/build/component-typography.es.js.map +0 -1
  589. package/build/component-wOmehMbn.js +0 -170
  590. package/build/component-wOmehMbn.js.map +0 -1
  591. package/build/component-zLIAB2HV.cjs +0 -2
  592. package/build/component-zLIAB2HV.cjs.map +0 -1
  593. package/build/component.constants-CJcoXCFC.js +0 -757
  594. package/build/component.constants-CJcoXCFC.js.map +0 -1
  595. package/build/component.constants-Ctj7PsM8.cjs +0 -2
  596. package/build/component.constants-Ctj7PsM8.cjs.map +0 -1
  597. package/build/component.constants-CzKFXlYT.cjs +0 -2
  598. package/build/component.constants-CzKFXlYT.cjs.map +0 -1
  599. package/build/component.constants-DjzlauTL.js +0 -142
  600. package/build/component.constants-DjzlauTL.js.map +0 -1
  601. package/build/component.functions-D9ffjEok.cjs +0 -8
  602. package/build/component.functions-D9ffjEok.cjs.map +0 -1
  603. package/build/component.functions-DNW6h8kk.js +0 -12
  604. package/build/component.functions-DNW6h8kk.js.map +0 -1
  605. package/build/component.styles-BX2Aiqp_.cjs +0 -43
  606. package/build/component.styles-BX2Aiqp_.cjs.map +0 -1
  607. package/build/component.styles-C0oU5oX_.js +0 -59
  608. package/build/component.styles-C0oU5oX_.js.map +0 -1
  609. package/build/component.styles-CD6ZzRrk.cjs +0 -14
  610. package/build/component.styles-CD6ZzRrk.cjs.map +0 -1
  611. package/build/component.styles-SZ5VuhNG.js +0 -20
  612. package/build/component.styles-SZ5VuhNG.js.map +0 -1
  613. package/build/component.types-CryJGkU7.js +0 -907
  614. package/build/component.types-CryJGkU7.js.map +0 -1
  615. package/build/component.types-Drt-O54w.cjs +0 -2
  616. package/build/component.types-Drt-O54w.cjs.map +0 -1
  617. package/build/consts.cjs.js +0 -2
  618. package/build/consts.cjs.js.map +0 -1
  619. package/build/consts.d.ts +0 -77
  620. package/build/consts.es.js +0 -151
  621. package/build/consts.es.js.map +0 -1
  622. package/build/context-B1id3uai.cjs +0 -2
  623. package/build/context-B1id3uai.cjs.map +0 -1
  624. package/build/context-B8kTBKjt.cjs +0 -2
  625. package/build/context-B8kTBKjt.cjs.map +0 -1
  626. package/build/context-BkovkNHQ.js +0 -117
  627. package/build/context-BkovkNHQ.js.map +0 -1
  628. package/build/context-C0_RNFp_.js +0 -195
  629. package/build/context-C0_RNFp_.js.map +0 -1
  630. package/build/context-DyTE2I_6.cjs +0 -4
  631. package/build/context-DyTE2I_6.cjs.map +0 -1
  632. package/build/context-LBih45kv.js +0 -44
  633. package/build/context-LBih45kv.js.map +0 -1
  634. package/build/context-app.cjs.js.map +0 -1
  635. package/build/context-app.es.js.map +0 -1
  636. package/build/context-cookie.cjs.js.map +0 -1
  637. package/build/context-cookie.es.js.map +0 -1
  638. package/build/context-dialog.cjs.js.map +0 -1
  639. package/build/context-dialog.es.js.map +0 -1
  640. package/build/context-geolocation.cjs.js.map +0 -1
  641. package/build/context-geolocation.es.js.map +0 -1
  642. package/build/context-local-storage.cjs.js.map +0 -1
  643. package/build/context-local-storage.es.js.map +0 -1
  644. package/build/context-permission.cjs.js.map +0 -1
  645. package/build/context-permission.es.js.map +0 -1
  646. package/build/context-screen-width.cjs.js.map +0 -1
  647. package/build/context-screen-width.es.js.map +0 -1
  648. package/build/context-sonner.cjs.js.map +0 -1
  649. package/build/context-sonner.es.js.map +0 -1
  650. package/build/context.constants-Bzn9Rcey.cjs +0 -32
  651. package/build/context.constants-Bzn9Rcey.cjs.map +0 -1
  652. package/build/context.constants-D0UjboYX.js +0 -12593
  653. package/build/context.constants-D0UjboYX.js.map +0 -1
  654. package/build/context.constants-DUVlJghM.js +0 -249
  655. package/build/context.constants-DUVlJghM.js.map +0 -1
  656. package/build/context.constants-gXk1ewxx.cjs +0 -1742
  657. package/build/context.constants-gXk1ewxx.cjs.map +0 -1
  658. package/build/context.functions-B8FDl7nJ.js +0 -14
  659. package/build/context.functions-B8FDl7nJ.js.map +0 -1
  660. package/build/context.functions-BqeTmcmr.cjs +0 -2
  661. package/build/context.functions-BqeTmcmr.cjs.map +0 -1
  662. package/build/context.functions-D2K4Xk47.js +0 -35
  663. package/build/context.functions-D2K4Xk47.js.map +0 -1
  664. package/build/context.functions-Duwzgcga.cjs +0 -2
  665. package/build/context.functions-Duwzgcga.cjs.map +0 -1
  666. package/build/context.functions-ObfwvEVG.js +0 -35
  667. package/build/context.functions-ObfwvEVG.js.map +0 -1
  668. package/build/context.functions-ar41xFVo.cjs +0 -2
  669. package/build/context.functions-ar41xFVo.cjs.map +0 -1
  670. package/build/context.hooks-B9dsW2kz.js +0 -117
  671. package/build/context.hooks-B9dsW2kz.js.map +0 -1
  672. package/build/context.hooks-Bkj1PSKe.cjs +0 -2
  673. package/build/context.hooks-Bkj1PSKe.cjs.map +0 -1
  674. package/build/context.hooks-CCLq09Ra.js +0 -13
  675. package/build/context.hooks-CCLq09Ra.js.map +0 -1
  676. package/build/context.hooks-CDvi20Bm.cjs +0 -2
  677. package/build/context.hooks-CDvi20Bm.cjs.map +0 -1
  678. package/build/context.hooks-CUXDpPaG.cjs +0 -2
  679. package/build/context.hooks-CUXDpPaG.cjs.map +0 -1
  680. package/build/context.hooks-CXJ-eM6d.js +0 -13
  681. package/build/context.hooks-CXJ-eM6d.js.map +0 -1
  682. package/build/context.hooks-CYJnoIrt.cjs +0 -2
  683. package/build/context.hooks-CYJnoIrt.cjs.map +0 -1
  684. package/build/context.hooks-DDD8ffJI.cjs +0 -2
  685. package/build/context.hooks-DDD8ffJI.cjs.map +0 -1
  686. package/build/context.hooks-Djt5R2yX.js +0 -13
  687. package/build/context.hooks-Djt5R2yX.js.map +0 -1
  688. package/build/context.hooks-DpwnIiRj.cjs +0 -2
  689. package/build/context.hooks-DpwnIiRj.cjs.map +0 -1
  690. package/build/context.hooks-oclt34zD.js +0 -68
  691. package/build/context.hooks-oclt34zD.js.map +0 -1
  692. package/build/context.hooks-v8uZ7dfO.js +0 -49
  693. package/build/context.hooks-v8uZ7dfO.js.map +0 -1
  694. package/build/functions.cjs.js +0 -2
  695. package/build/functions.cjs.js.map +0 -1
  696. package/build/functions.es.js +0 -50
  697. package/build/functions.es.js.map +0 -1
  698. package/build/index.cjs.js.map +0 -1
  699. package/build/index.es.js.map +0 -1
  700. package/build/jsx-runtime-C6yv_9g1.cjs +0 -11
  701. package/build/jsx-runtime-C6yv_9g1.cjs.map +0 -1
  702. package/build/jsx-runtime-DZS36FSE.js +0 -316
  703. package/build/jsx-runtime-DZS36FSE.js.map +0 -1
  704. package/build/motion-DrSN18V7.cjs +0 -2
  705. package/build/motion-DrSN18V7.cjs.map +0 -1
  706. package/build/motion-K7hUU4gL.js +0 -85
  707. package/build/motion-K7hUU4gL.js.map +0 -1
  708. package/build/style-BfuEu91g.js +0 -176
  709. package/build/style-BfuEu91g.js.map +0 -1
  710. package/build/style-Drq-Q1Im.cjs +0 -136
  711. package/build/style-Drq-Q1Im.cjs.map +0 -1
  712. package/build/style-add.cjs.js +0 -2
  713. package/build/style-add.cjs.js.map +0 -1
  714. package/build/style-add.d.ts +0 -88
  715. package/build/style-add.es.js +0 -17
  716. package/build/style-add.es.js.map +0 -1
  717. package/build/style-error.cjs.js +0 -2
  718. package/build/style-error.cjs.js.map +0 -1
  719. package/build/style-error.d.ts +0 -99
  720. package/build/style-error.es.js +0 -7
  721. package/build/style-error.es.js.map +0 -1
  722. package/build/style-fRZ6xrVp.cjs +0 -10
  723. package/build/style-fRZ6xrVp.cjs.map +0 -1
  724. package/build/style-motion.cjs.js.map +0 -1
  725. package/build/style-motion.es.js.map +0 -1
  726. package/build/style-plT9Ah7t.js +0 -33
  727. package/build/style-plT9Ah7t.js.map +0 -1
  728. package/build/style-sx.cjs.js +0 -2
  729. package/build/style-sx.cjs.js.map +0 -1
  730. package/build/style-sx.d.ts +0 -33
  731. package/build/style-sx.es.js +0 -5
  732. package/build/style-sx.es.js.map +0 -1
  733. package/build/style-theme.cjs.js +0 -2
  734. package/build/style-theme.cjs.js.map +0 -1
  735. package/build/style-theme.d.ts +0 -293
  736. package/build/style-theme.es.js +0 -16
  737. package/build/style-theme.es.js.map +0 -1
  738. package/build/types.cjs.js +0 -2
  739. package/build/types.cjs.js.map +0 -1
  740. package/build/types.d.ts +0 -27
  741. package/build/types.es.js +0 -2
  742. package/build/types.es.js.map +0 -1
  743. package/build/use-BNuSnUSV.cjs +0 -16
  744. package/build/use-BNuSnUSV.cjs.map +0 -1
  745. package/build/use-Bp8UVw4Y.js +0 -16
  746. package/build/use-Bp8UVw4Y.js.map +0 -1
  747. package/build/use-C7vngeRk.js +0 -882
  748. package/build/use-C7vngeRk.js.map +0 -1
  749. package/build/use-D8uozTND.js +0 -1577
  750. package/build/use-D8uozTND.js.map +0 -1
  751. package/build/use-IhzeVumv.cjs +0 -2
  752. package/build/use-IhzeVumv.cjs.map +0 -1
  753. package/build/use-zW3LuRc_.cjs +0 -2
  754. package/build/use-zW3LuRc_.cjs.map +0 -1
@@ -1,54 +1,2 @@
1
- import { Context } from 'react';
2
- import { FC } from 'react';
3
- import { PropsWithChildren } from 'react';
4
-
5
- export declare function getFromLocalStorage<T>(key: string): T | null;
6
-
7
- export declare const LocalStorageContext: Context<LocalStorageContextProps | null>;
8
-
9
- export declare interface LocalStorageContextProps {
10
- getLocalStorage: <K extends keyof ValidLocalStorageObject>(name: K) => ValidLocalStorageObject[K] | undefined;
11
- setLocalStorage: <K extends keyof ValidLocalStorageObject>(name: K, value: ValidLocalStorageObject[K]) => void;
12
- removeLocalStorageValue: <K extends keyof ValidLocalStorageObject>(name: K) => void;
13
- removeLocalStorageValues: () => void;
14
- checkLocalStorage: () => void;
15
- localStorageValues: ValidLocalStorageObject | undefined;
16
- }
17
-
18
- /**
19
- * Provider component for managing local storage.
20
- *
21
- * @remarks
22
- * The local storage is typed using the `jenesei-kit-react.d.ts` file:
23
- *
24
- * ```typescript
25
- * import '@jenesei-software/jenesei-kit-react'
26
- *
27
- * declare module '@jenesei-software/jenesei-kit-react' {
28
- * export interface ValidLocalStorageObject {
29
- * access_token: string
30
- * refresh_token: string
31
- * }
32
- * }
33
- * ```
34
- */
35
- export declare const ProviderLocalStorage: FC<ProviderLocalStorageProps>;
36
-
37
- export declare interface ProviderLocalStorageProps extends PropsWithChildren {
38
- validate?: {
39
- validateKeys: (keyof ValidLocalStorageObject)[];
40
- getValidateLocalStorageValue: <K extends keyof ValidLocalStorageObject>(key: K, value: ValidLocalStorageObject[K]) => value is ValidLocalStorageObject[K];
41
- };
42
- }
43
-
44
- export declare function setToLocalStorage<T>(key: string, value: T): void;
45
-
46
- /**
47
- * Custom hook to access the LocalStorageContext.
48
- */
49
- export declare const useLocalStorage: () => LocalStorageContextProps;
50
-
51
- export declare interface ValidLocalStorageObject {
52
- }
53
-
54
- export { }
1
+ export * from './contexts/context-local-storage/index'
2
+ export {}
@@ -1,10 +1,5 @@
1
- import { L, P } from "./context-BkovkNHQ.js";
2
- import { g, s, u } from "./context.functions-ObfwvEVG.js";
1
+ import { n as r, t as a } from "./context-local-storage-Bb_vktd8.js";
3
2
  export {
4
- L as LocalStorageContext,
5
- P as ProviderLocalStorage,
6
- g as getFromLocalStorage,
7
- s as setToLocalStorage,
8
- u as useLocalStorage
3
+ r as ProviderLocalStorage,
4
+ a as useLocalStorage
9
5
  };
10
- //# sourceMappingURL=context-local-storage.es.js.map
@@ -0,0 +1,77 @@
1
+ import { t as s } from "./logger-BRWLzI5S.js";
2
+ import { jsx as d } from "react/jsx-runtime";
3
+ import { createContext as P, useCallback as u, useContext as w, useEffect as a, useState as n } from "react";
4
+ var l = P(null), C = (o) => {
5
+ const { pushNotificationSupported: i } = h(), { isBiometricSupported: e } = p(), { notificationPermission: t, requestNotificationPermission: c, isNotificationPermissionLoading: r } = g(), { geolocationPermission: f, requestGeolocationPermission: m } = v();
6
+ return /* @__PURE__ */ d(l.Provider, {
7
+ value: {
8
+ isBiometricSupported: e,
9
+ geolocationPermission: f,
10
+ pushNotificationSupported: i,
11
+ requestGeolocationPermission: m,
12
+ notificationPermission: t,
13
+ requestNotificationPermission: c,
14
+ isNotificationPermissionLoading: r
15
+ },
16
+ children: o.children
17
+ });
18
+ }, p = () => {
19
+ const [o, i] = n(!1);
20
+ return a(() => {
21
+ (async () => {
22
+ try {
23
+ window.PublicKeyCredential && typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable == "function" ? i(await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()) : i(!1);
24
+ } catch (t) {
25
+ s.error("Error checking biometric availability:", t), i(!1);
26
+ }
27
+ })();
28
+ }, []), { isBiometricSupported: o };
29
+ }, v = () => {
30
+ const [o, i] = n(null);
31
+ return a(() => {
32
+ "permissions" in window.navigator && window.navigator.permissions.query({ name: "geolocation" }).then((e) => {
33
+ i(e.state), e.onchange = () => {
34
+ i(e.state);
35
+ };
36
+ });
37
+ }, []), {
38
+ geolocationPermission: o,
39
+ requestGeolocationPermission: u(() => {
40
+ "geolocation" in window.navigator ? window.navigator.geolocation.getCurrentPosition(() => i("granted"), () => i("denied")) : s.warn("Provider Permission. Geolocation is not supported in this browser.");
41
+ }, [])
42
+ };
43
+ }, g = () => {
44
+ const [o, i] = n(null), [e, t] = n(!1), c = u(async () => {
45
+ if (t(!0), "Notification" in window) try {
46
+ t(!0);
47
+ const r = await window.Notification.requestPermission();
48
+ return i(r), t(!1), r;
49
+ } catch (r) {
50
+ s.error("Provider Permission. Failed to request notification permission:", r);
51
+ }
52
+ else s.warn("Provider Permission. Notifications are not supported in this browser.");
53
+ t(!1);
54
+ }, []);
55
+ return a(() => {
56
+ "Notification" in window && i(window.Notification.permission);
57
+ }, []), {
58
+ notificationPermission: o,
59
+ requestNotificationPermission: c,
60
+ isNotificationPermissionLoading: e
61
+ };
62
+ }, h = () => {
63
+ const [o, i] = n(!1);
64
+ return a(() => {
65
+ "PushManager" in window && i(!0);
66
+ }, []), { pushNotificationSupported: o };
67
+ }, q = () => {
68
+ const o = w(l);
69
+ if (!o) throw new Error("usePermission must be used within an PermissionProvider");
70
+ return o;
71
+ };
72
+ export {
73
+ C as n,
74
+ q as t
75
+ };
76
+
77
+ //# sourceMappingURL=context-permission-Co4BKDOu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-permission-Co4BKDOu.js","names":[],"sources":["../src/contexts/context-permission/context.tsx","../src/contexts/context-permission/context.hooks.ts"],"sourcesContent":["import { logger } from '@local/cores/logger';\n\nimport { createContext, useCallback, useEffect, useState } from 'react';\n\nimport { IPermissionContext, IPermissionProvider } from './context.types';\n\nexport const PermissionContext = createContext<IPermissionContext | null>(null);\n\nexport const ProviderPermission = (props: IPermissionProvider) => {\n const { pushNotificationSupported } = usePushNotificationSupported();\n const { isBiometricSupported } = useBiometricSupported();\n const { notificationPermission, requestNotificationPermission, isNotificationPermissionLoading } =\n useNotificationPermission();\n const { geolocationPermission, requestGeolocationPermission } = useGeolocationPermission();\n\n return (\n <PermissionContext.Provider\n value={{\n isBiometricSupported,\n geolocationPermission,\n pushNotificationSupported,\n requestGeolocationPermission,\n notificationPermission,\n requestNotificationPermission,\n isNotificationPermissionLoading,\n }}\n >\n {props.children}\n </PermissionContext.Provider>\n );\n};\n\nconst useBiometricSupported = () => {\n const [isBiometricSupported, setIsBiometricSupported] = useState(false);\n\n useEffect(() => {\n const checkBiometricAvailability = async () => {\n try {\n if (\n window.PublicKeyCredential &&\n typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable === 'function'\n ) {\n const available = await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();\n setIsBiometricSupported(available);\n } else {\n setIsBiometricSupported(false);\n }\n } catch (error) {\n logger.error('Error checking biometric availability:', error);\n setIsBiometricSupported(false);\n }\n };\n\n checkBiometricAvailability();\n }, []);\n\n return { isBiometricSupported };\n};\n\nconst useGeolocationPermission = () => {\n // eslint-disable-next-line no-undef\n const [geolocationPermission, setGeolocationPermission] = useState<PermissionState | null>(null);\n\n useEffect(() => {\n if ('permissions' in window.navigator) {\n window.navigator.permissions.query({ name: 'geolocation' }).then((permissionStatus) => {\n setGeolocationPermission(permissionStatus.state);\n permissionStatus.onchange = () => {\n setGeolocationPermission(permissionStatus.state);\n };\n });\n }\n }, []);\n\n const requestGeolocationPermission = useCallback(() => {\n if ('geolocation' in window.navigator) {\n window.navigator.geolocation.getCurrentPosition(\n () => setGeolocationPermission('granted'),\n () => setGeolocationPermission('denied'),\n );\n } else {\n logger.warn('Provider Permission. Geolocation is not supported in this browser.');\n }\n }, []);\n\n return { geolocationPermission, requestGeolocationPermission };\n};\n\nconst useNotificationPermission = () => {\n // eslint-disable-next-line no-undef\n const [notificationPermission, setNotificationPermission] = useState<NotificationPermission | null>(null);\n const [isNotificationPermissionLoading, setIsNotificationPermissionLoading] = useState<boolean>(false);\n\n const requestNotificationPermission = useCallback(async () => {\n setIsNotificationPermissionLoading(true);\n if ('Notification' in window) {\n try {\n setIsNotificationPermissionLoading(true);\n const permission = await window.Notification.requestPermission();\n setNotificationPermission(permission);\n setIsNotificationPermissionLoading(false);\n return permission;\n } catch (error) {\n logger.error('Provider Permission. Failed to request notification permission:', error);\n }\n } else {\n logger.warn('Provider Permission. Notifications are not supported in this browser.');\n }\n setIsNotificationPermissionLoading(false);\n }, []);\n\n useEffect(() => {\n if ('Notification' in window) {\n setNotificationPermission(window.Notification.permission);\n }\n }, []);\n\n return { notificationPermission, requestNotificationPermission, isNotificationPermissionLoading };\n};\n\nconst usePushNotificationSupported = () => {\n const [pushNotificationSupported, setPushNotificationSupported] = useState<boolean>(false);\n\n useEffect(() => {\n if ('PushManager' in window) {\n setPushNotificationSupported(true);\n }\n }, []);\n\n return { pushNotificationSupported };\n};\n","import { useContext } from 'react';\n\nimport { PermissionContext } from './context';\nimport { IPermissionContext } from './context.types';\n\n/**\n * Custom hook to access the PermissionContext.\n */\nexport const usePermission = (): IPermissionContext => {\n const context = useContext(PermissionContext);\n if (!context) {\n throw new Error('usePermission must be used within an PermissionProvider');\n }\n return context;\n};\n"],"mappings":";;;AAMA,IAAa,IAAoB,EAAyC,IAAA,GAE7D,IAAA,CAAsB,MAA+B;AAChE,QAAM,EAAE,2BAAA,EAAA,IAA8B,EAAA,GAChC,EAAE,sBAAA,EAAA,IAAyB,EAAA,GAC3B,EAAE,wBAAA,GAAwB,+BAAA,GAA+B,iCAAA,EAAA,IAC7D,EAAA,GACI,EAAE,uBAAA,GAAuB,8BAAA,EAAA,IAAiC,EAAA;AAEhE,SACE,gBAAA,EAAC,EAAkB,UAAnB;AAAA,IACE,OAAO;AAAA,MACL,sBAAA;AAAA,MACA,uBAAA;AAAA,MACA,2BAAA;AAAA,MACA,8BAAA;AAAA,MACA,wBAAA;AAAA,MACA,+BAAA;AAAA,MACA,iCAAA;AAAA;cAGD,EAAM;AAAA,GACoB;GAI3B,IAAA,MAA8B;AAClC,QAAM,CAAC,GAAsB,CAAA,IAA2B,EAAS,EAAA;AAEjE,SAAA,EAAA,MAAgB;AAkBd,KAjBmC,YAAY;AAC7C,UAAI;AACF,QACE,OAAO,uBACP,OAAO,OAAO,oBAAoB,iDAAkD,aAGpF,EADkB,MAAM,OAAO,oBAAoB,8CAAA,CAA+C,IAGlG,EAAwB,EAAA;AAAA,eAEnB,GAAO;AACd,QAAA,EAAO,MAAM,0CAA0C,CAAA,GACvD,EAAwB,EAAA;AAAA;OAI5B;AAAA,KACC,CAAA,CAAE,GAEE,EAAE,sBAAA,EAAA;GAGL,IAAA,MAAiC;AAErC,QAAM,CAAC,GAAuB,CAAA,IAA4B,EAAiC,IAAA;AAE3F,SAAA,EAAA,MAAgB;AACd,IAAI,iBAAiB,OAAO,aAC1B,OAAO,UAAU,YAAY,MAAM,EAAE,MAAM,cAAA,CAAe,EAAE,KAAA,CAAM,MAAqB;AACrF,MAAA,EAAyB,EAAiB,KAAA,GAC1C,EAAiB,WAAA,MAAiB;AAChC,QAAA,EAAyB,EAAiB,KAAA;AAAA;;KAI/C,CAAA,CAAE,GAaE;AAAA,IAAE,uBAAA;AAAA,IAAuB,8BAXK,EAAA,MAAkB;AACrD,MAAI,iBAAiB,OAAO,YAC1B,OAAO,UAAU,YAAY,mBAAA,MACrB,EAAyB,SAAA,GAAU,MACnC,EAAyB,QAAA,CAAS,IAG1C,EAAO,KAAK,oEAAA;AAAA,OAEb,CAAA,CAAE;AAAA;GAKD,IAAA,MAAkC;AAEtC,QAAM,CAAC,GAAwB,CAAA,IAA6B,EAAwC,IAAA,GAC9F,CAAC,GAAiC,CAAA,IAAsC,EAAkB,EAAA,GAE1F,IAAgC,EAAY,YAAY;AAE5D,QADA,EAAmC,EAAA,GAC/B,kBAAkB,OACpB,KAAI;AACF,MAAA,EAAmC,EAAA;AACnC,YAAM,IAAa,MAAM,OAAO,aAAa,kBAAA;AAC7C,aAAA,EAA0B,CAAA,GAC1B,EAAmC,EAAA,GAC5B;AAAA,aACA,GAAO;AACd,MAAA,EAAO,MAAM,mEAAmE,CAAA;AAAA;QAGlF,CAAA,EAAO,KAAK,uEAAA;AAEd,IAAA,EAAmC,EAAA;AAAA,KAClC,CAAA,CAAE;AAEL,SAAA,EAAA,MAAgB;AACd,IAAI,kBAAkB,UACpB,EAA0B,OAAO,aAAa,UAAA;AAAA,KAE/C,CAAA,CAAE,GAEE;AAAA,IAAE,wBAAA;AAAA,IAAwB,+BAAA;AAAA,IAA+B,iCAAA;AAAA;GAG5D,IAAA,MAAqC;AACzC,QAAM,CAAC,GAA2B,CAAA,IAAgC,EAAkB,EAAA;AAEpF,SAAA,EAAA,MAAgB;AACd,IAAI,iBAAiB,UACnB,EAA6B,EAAA;AAAA,KAE9B,CAAA,CAAE,GAEE,EAAE,2BAAA,EAAA;GCzHE,IAAA,MAA0C;AACrD,QAAM,IAAU,EAAW,CAAA;AAC3B,MAAI,CAAC,EACH,OAAM,IAAI,MAAM,yDAAA;AAElB,SAAO"}
@@ -0,0 +1,3 @@
1
+ const v=require("./chunk-CW3en5xf.cjs"),s=require("./logger-DZFY33QY.cjs");let f=require("react/jsx-runtime"),e=require("react");var c=(0,e.createContext)(null),d=o=>{const{pushNotificationSupported:i}=g(),{isBiometricSupported:t}=P(),{notificationPermission:r,requestNotificationPermission:a,isNotificationPermissionLoading:n}=w(),{geolocationPermission:u,requestGeolocationPermission:l}=m();return(0,f.jsx)(c.Provider,{value:{isBiometricSupported:t,geolocationPermission:u,pushNotificationSupported:i,requestGeolocationPermission:l,notificationPermission:r,requestNotificationPermission:a,isNotificationPermissionLoading:n},children:o.children})},P=()=>{const[o,i]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{(async()=>{try{window.PublicKeyCredential&&typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"?i(await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()):i(!1)}catch(r){s.logger.error("Error checking biometric availability:",r),i(!1)}})()},[]),{isBiometricSupported:o}},m=()=>{const[o,i]=(0,e.useState)(null);return(0,e.useEffect)(()=>{"permissions"in window.navigator&&window.navigator.permissions.query({name:"geolocation"}).then(t=>{i(t.state),t.onchange=()=>{i(t.state)}})},[]),{geolocationPermission:o,requestGeolocationPermission:(0,e.useCallback)(()=>{"geolocation"in window.navigator?window.navigator.geolocation.getCurrentPosition(()=>i("granted"),()=>i("denied")):s.logger.warn("Provider Permission. Geolocation is not supported in this browser.")},[])}},w=()=>{const[o,i]=(0,e.useState)(null),[t,r]=(0,e.useState)(!1),a=(0,e.useCallback)(async()=>{if(r(!0),"Notification"in window)try{r(!0);const n=await window.Notification.requestPermission();return i(n),r(!1),n}catch(n){s.logger.error("Provider Permission. Failed to request notification permission:",n)}else s.logger.warn("Provider Permission. Notifications are not supported in this browser.");r(!1)},[]);return(0,e.useEffect)(()=>{"Notification"in window&&i(window.Notification.permission)},[]),{notificationPermission:o,requestNotificationPermission:a,isNotificationPermissionLoading:t}},g=()=>{const[o,i]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{"PushManager"in window&&i(!0)},[]),{pushNotificationSupported:o}},p=()=>{const o=(0,e.useContext)(c);if(!o)throw new Error("usePermission must be used within an PermissionProvider");return o};Object.defineProperty(exports,"ProviderPermission",{enumerable:!0,get:function(){return d}});Object.defineProperty(exports,"usePermission",{enumerable:!0,get:function(){return p}});
2
+
3
+ //# sourceMappingURL=context-permission-K3tWOiAx.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-permission-K3tWOiAx.cjs","names":[],"sources":["../src/contexts/context-permission/context.tsx","../src/contexts/context-permission/context.hooks.ts"],"sourcesContent":["import { logger } from '@local/cores/logger';\n\nimport { createContext, useCallback, useEffect, useState } from 'react';\n\nimport { IPermissionContext, IPermissionProvider } from './context.types';\n\nexport const PermissionContext = createContext<IPermissionContext | null>(null);\n\nexport const ProviderPermission = (props: IPermissionProvider) => {\n const { pushNotificationSupported } = usePushNotificationSupported();\n const { isBiometricSupported } = useBiometricSupported();\n const { notificationPermission, requestNotificationPermission, isNotificationPermissionLoading } =\n useNotificationPermission();\n const { geolocationPermission, requestGeolocationPermission } = useGeolocationPermission();\n\n return (\n <PermissionContext.Provider\n value={{\n isBiometricSupported,\n geolocationPermission,\n pushNotificationSupported,\n requestGeolocationPermission,\n notificationPermission,\n requestNotificationPermission,\n isNotificationPermissionLoading,\n }}\n >\n {props.children}\n </PermissionContext.Provider>\n );\n};\n\nconst useBiometricSupported = () => {\n const [isBiometricSupported, setIsBiometricSupported] = useState(false);\n\n useEffect(() => {\n const checkBiometricAvailability = async () => {\n try {\n if (\n window.PublicKeyCredential &&\n typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable === 'function'\n ) {\n const available = await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();\n setIsBiometricSupported(available);\n } else {\n setIsBiometricSupported(false);\n }\n } catch (error) {\n logger.error('Error checking biometric availability:', error);\n setIsBiometricSupported(false);\n }\n };\n\n checkBiometricAvailability();\n }, []);\n\n return { isBiometricSupported };\n};\n\nconst useGeolocationPermission = () => {\n // eslint-disable-next-line no-undef\n const [geolocationPermission, setGeolocationPermission] = useState<PermissionState | null>(null);\n\n useEffect(() => {\n if ('permissions' in window.navigator) {\n window.navigator.permissions.query({ name: 'geolocation' }).then((permissionStatus) => {\n setGeolocationPermission(permissionStatus.state);\n permissionStatus.onchange = () => {\n setGeolocationPermission(permissionStatus.state);\n };\n });\n }\n }, []);\n\n const requestGeolocationPermission = useCallback(() => {\n if ('geolocation' in window.navigator) {\n window.navigator.geolocation.getCurrentPosition(\n () => setGeolocationPermission('granted'),\n () => setGeolocationPermission('denied'),\n );\n } else {\n logger.warn('Provider Permission. Geolocation is not supported in this browser.');\n }\n }, []);\n\n return { geolocationPermission, requestGeolocationPermission };\n};\n\nconst useNotificationPermission = () => {\n // eslint-disable-next-line no-undef\n const [notificationPermission, setNotificationPermission] = useState<NotificationPermission | null>(null);\n const [isNotificationPermissionLoading, setIsNotificationPermissionLoading] = useState<boolean>(false);\n\n const requestNotificationPermission = useCallback(async () => {\n setIsNotificationPermissionLoading(true);\n if ('Notification' in window) {\n try {\n setIsNotificationPermissionLoading(true);\n const permission = await window.Notification.requestPermission();\n setNotificationPermission(permission);\n setIsNotificationPermissionLoading(false);\n return permission;\n } catch (error) {\n logger.error('Provider Permission. Failed to request notification permission:', error);\n }\n } else {\n logger.warn('Provider Permission. Notifications are not supported in this browser.');\n }\n setIsNotificationPermissionLoading(false);\n }, []);\n\n useEffect(() => {\n if ('Notification' in window) {\n setNotificationPermission(window.Notification.permission);\n }\n }, []);\n\n return { notificationPermission, requestNotificationPermission, isNotificationPermissionLoading };\n};\n\nconst usePushNotificationSupported = () => {\n const [pushNotificationSupported, setPushNotificationSupported] = useState<boolean>(false);\n\n useEffect(() => {\n if ('PushManager' in window) {\n setPushNotificationSupported(true);\n }\n }, []);\n\n return { pushNotificationSupported };\n};\n","import { useContext } from 'react';\n\nimport { PermissionContext } from './context';\nimport { IPermissionContext } from './context.types';\n\n/**\n * Custom hook to access the PermissionContext.\n */\nexport const usePermission = (): IPermissionContext => {\n const context = useContext(PermissionContext);\n if (!context) {\n throw new Error('usePermission must be used within an PermissionProvider');\n }\n return context;\n};\n"],"mappings":"iIAMA,IAAa,KAAA,EAAA,eAA6D,IAAA,EAE7D,EAAsB,GAA+B,CAChE,KAAM,CAAE,0BAAA,CAAA,EAA8B,EAAA,EAChC,CAAE,qBAAA,CAAA,EAAyB,EAAA,EAC3B,CAAE,uBAAA,EAAwB,8BAAA,EAA+B,gCAAA,CAAA,EAC7D,EAAA,EACI,CAAE,sBAAA,EAAuB,6BAAA,CAAA,EAAiC,EAAA,EAEhE,SACE,EAAA,KAAC,EAAkB,SAAnB,CACE,MAAO,CACL,qBAAA,EACA,sBAAA,EACA,0BAAA,EACA,6BAAA,EACA,uBAAA,EACA,8BAAA,EACA,gCAAA,YAGD,EAAM,SACoB,GAI3B,EAAA,IAA8B,CAClC,KAAM,CAAC,EAAsB,CAAA,KAAA,EAAA,UAAoC,EAAA,EAEjE,SAAA,EAAA,WAAA,IAAgB,EACqB,SAAY,CAC7C,GAAI,CAEA,OAAO,qBACP,OAAO,OAAO,oBAAoB,+CAAkD,WAGpF,EADkB,MAAM,OAAO,oBAAoB,8CAAA,CAA+C,EAGlG,EAAwB,EAAA,QAEnB,EAAO,CACd,EAAA,OAAO,MAAM,yCAA0C,CAAA,EACvD,EAAwB,EAAA,KAI5B,GACC,CAAA,CAAE,EAEE,CAAE,qBAAA,CAAA,GAGL,EAAA,IAAiC,CAErC,KAAM,CAAC,EAAuB,CAAA,KAAA,EAAA,UAA6D,IAAA,EAE3F,SAAA,EAAA,WAAA,IAAgB,CACV,gBAAiB,OAAO,WAC1B,OAAO,UAAU,YAAY,MAAM,CAAE,KAAM,aAAA,CAAe,EAAE,KAAM,GAAqB,CACrF,EAAyB,EAAiB,KAAA,EAC1C,EAAiB,SAAA,IAAiB,CAChC,EAAyB,EAAiB,KAAA,MAI/C,CAAA,CAAE,EAaE,CAAE,sBAAA,EAAuB,gCAAA,EAAA,aAAA,IAXuB,CACjD,gBAAiB,OAAO,UAC1B,OAAO,UAAU,YAAY,mBAAA,IACrB,EAAyB,SAAA,EAAU,IACnC,EAAyB,QAAA,CAAS,EAG1C,EAAA,OAAO,KAAK,oEAAA,GAEb,CAAA,CAAE,IAKD,EAAA,IAAkC,CAEtC,KAAM,CAAC,EAAwB,CAAA,KAAA,EAAA,UAAqE,IAAA,EAC9F,CAAC,EAAiC,CAAA,KAAA,EAAA,UAAwD,EAAA,EAE1F,KAAA,EAAA,aAA4C,SAAY,CAE5D,GADA,EAAmC,EAAA,EAC/B,iBAAkB,OACpB,GAAI,CACF,EAAmC,EAAA,EACnC,MAAM,EAAa,MAAM,OAAO,aAAa,kBAAA,EAC7C,OAAA,EAA0B,CAAA,EAC1B,EAAmC,EAAA,EAC5B,QACA,EAAO,CACd,EAAA,OAAO,MAAM,kEAAmE,CAAA,OAGlF,EAAA,OAAO,KAAK,uEAAA,EAEd,EAAmC,EAAA,GAClC,CAAA,CAAE,EAEL,SAAA,EAAA,WAAA,IAAgB,CACV,iBAAkB,QACpB,EAA0B,OAAO,aAAa,UAAA,GAE/C,CAAA,CAAE,EAEE,CAAE,uBAAA,EAAwB,8BAAA,EAA+B,gCAAA,IAG5D,EAAA,IAAqC,CACzC,KAAM,CAAC,EAA2B,CAAA,KAAA,EAAA,UAAkD,EAAA,EAEpF,SAAA,EAAA,WAAA,IAAgB,CACV,gBAAiB,QACnB,EAA6B,EAAA,GAE9B,CAAA,CAAE,EAEE,CAAE,0BAAA,CAAA,GCzHE,EAAA,IAA0C,CACrD,MAAM,KAAA,EAAA,YAAqB,CAAA,EAC3B,GAAI,CAAC,EACH,MAAM,IAAI,MAAM,yDAAA,EAElB,OAAO"}
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context.functions-ar41xFVo.cjs"),r=require("./context.hooks-DpwnIiRj.cjs");exports.urlBase64ToUint8Array=e.urlBase64ToUint8Array,exports.PermissionContext=r.PermissionContext,exports.ProviderPermission=r.ProviderPermission,exports.usePermission=r.usePermission;
2
- //# sourceMappingURL=context-permission.cjs.js.map
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-CW3en5xf.cjs"),e=require("./context-permission-K3tWOiAx.cjs");exports.ProviderPermission=e.ProviderPermission;exports.usePermission=e.usePermission;
@@ -1,28 +1,2 @@
1
- import { Context } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
3
- import { PropsWithChildren } from 'react';
4
-
5
- export declare const PermissionContext: Context<PermissionContextProps | null>;
6
-
7
- export declare interface PermissionContextProps {
8
- geolocationPermission: PermissionState | null;
9
- isBiometricSupported: boolean;
10
- isNotificationPermissionLoading: boolean;
11
- notificationPermission: NotificationPermission | null;
12
- pushNotificationSupported: boolean;
13
- requestGeolocationPermission: () => void;
14
- requestNotificationPermission: () => Promise<NotificationPermission | undefined>;
15
- }
16
-
17
- export declare const ProviderPermission: (props: ProviderPermissionProps) => JSX.Element;
18
-
19
- export declare type ProviderPermissionProps = PropsWithChildren;
20
-
21
- export declare const urlBase64ToUint8Array: (base64String: string) => Uint8Array<ArrayBuffer>;
22
-
23
- /**
24
- * Custom hook to access the PermissionContext.
25
- */
26
- export declare const usePermission: () => PermissionContextProps;
27
-
28
- export { }
1
+ export * from './contexts/context-permission/index'
2
+ export {}
@@ -1,9 +1,5 @@
1
- import { u } from "./context.functions-B8FDl7nJ.js";
2
- import { P, a, u as u2 } from "./context.hooks-B9dsW2kz.js";
1
+ import { n as s, t as i } from "./context-permission-Co4BKDOu.js";
3
2
  export {
4
- P as PermissionContext,
5
- a as ProviderPermission,
6
- u as urlBase64ToUint8Array,
7
- u2 as usePermission
3
+ s as ProviderPermission,
4
+ i as usePermission
8
5
  };
9
- //# sourceMappingURL=context-permission.es.js.map
@@ -0,0 +1,53 @@
1
+ import { r as p } from "./utils-Cona48dZ.js";
2
+ import { n as w, t as l } from "./dist-Dq_YJa2q.js";
3
+ import { jsx as h } from "react/jsx-runtime";
4
+ import { useCallback as m, useEffect as s, useRef as v, useState as c } from "react";
5
+ var f = l(null), b = typeof window < "u" && window.innerWidth > window.innerHeight ? "landscape" : "portrait", k = () => typeof window > "u" ? "default" : Object.entries(p.screen.breakpoint).map(([r, t]) => ({
6
+ key: r,
7
+ bp: parseInt(t.replace(/\D/g, ""), 10)
8
+ })).sort((r, t) => r.bp - t.bp).find(({ bp: r }) => window.innerWidth <= r)?.key ?? "default", S = k(), g = (r) => {
9
+ const [t, o] = c(S), [a, d] = c(b), n = v(null);
10
+ n.current === null && typeof window < "u" && (n.current = Object.entries(p.screen.breakpoint).map(([e, i]) => ({
11
+ key: e,
12
+ bp: parseInt(i.replace(/\D/g, ""), 10)
13
+ })).sort((e, i) => e.bp - i.bp).map(({ key: e, bp: i }) => ({
14
+ key: e,
15
+ mq: window.matchMedia(`(max-width: ${i}px)`)
16
+ })));
17
+ const u = m(() => {
18
+ n.current && o(n.current.find(({ mq: e }) => e.matches)?.key ?? "default");
19
+ }, []);
20
+ return s(() => {
21
+ if (typeof window > "u") return;
22
+ const e = () => {
23
+ d(window.innerWidth > window.innerHeight ? "landscape" : "portrait");
24
+ };
25
+ return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
26
+ }, []), s(() => {
27
+ if (n.current)
28
+ return n.current.forEach(({ mq: e }) => {
29
+ e.addEventListener("change", u);
30
+ }), u(), () => {
31
+ n.current?.forEach(({ mq: e }) => {
32
+ e.removeEventListener("change", u);
33
+ });
34
+ };
35
+ }, [u]), /* @__PURE__ */ h(f.Provider, {
36
+ value: {
37
+ breakpoint: t,
38
+ orientation: a,
39
+ type: r.type ?? "breakpoint"
40
+ },
41
+ children: r.children
42
+ });
43
+ }, C = (r) => {
44
+ const t = w(f, (o) => o ? r.reduce((a, d) => (a[d] = o[d], a), {}) : null);
45
+ if (!t) throw new Error("useScreenWidth must be used within an ProviderScreenWidth");
46
+ return t;
47
+ };
48
+ export {
49
+ g as n,
50
+ C as t
51
+ };
52
+
53
+ //# sourceMappingURL=context-screen-width-CEsyIyg6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-screen-width-CEsyIyg6.js","names":[],"sources":["../src/contexts/context-screen-width/context.tsx","../src/contexts/context-screen-width/context.hooks.ts"],"sourcesContent":["import { CSS_VARS, IThemeBreakpoint } from '@local/styles/utils';\n\nimport { FC, useCallback, useEffect, useRef, useState } from 'react';\nimport { createContext } from 'use-context-selector';\n\nimport { IScreenWidthContext, IScreenWidthProvider } from './context.types';\n\nexport const ScreenWidthContext = createContext<IScreenWidthContext | null>(null);\n\nconst defaultOrientation =\n typeof window !== 'undefined' && window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';\n\nconst getDefaultBreakpoint = (): IScreenWidthContext['breakpoint'] => {\n if (typeof window === 'undefined') return 'default';\n\n const breakpoints = Object.entries(CSS_VARS.screen.breakpoint)\n .map(([key, value]) => ({\n key: key as keyof typeof CSS_VARS.screen.breakpoint,\n bp: parseInt(value.replace(/\\D/g, ''), 10),\n }))\n .sort((a, b) => a.bp - b.bp);\n\n const matched = breakpoints.find(({ bp }) => window.innerWidth <= bp);\n return matched?.key ?? 'default';\n};\n\nconst defaultBreakpoint: IScreenWidthContext['breakpoint'] = getDefaultBreakpoint();\n\nexport const ProviderScreenWidth: FC<IScreenWidthProvider> = (props) => {\n const [breakpoint, setBreakpoint] = useState<IScreenWidthContext['breakpoint']>(defaultBreakpoint);\n const [orientation, setOrientation] = useState<IScreenWidthContext['orientation']>(defaultOrientation);\n\n const queriesRef = useRef<Array<{\n key: IThemeBreakpoint;\n mq: MediaQueryList;\n }> | null>(null);\n\n if (queriesRef.current === null && typeof window !== 'undefined') {\n queriesRef.current = Object.entries(CSS_VARS.screen.breakpoint)\n .map(([key, value]) => {\n const bp = parseInt(value.replace(/\\D/g, ''), 10);\n return {\n key: key as keyof typeof CSS_VARS.screen.breakpoint,\n bp,\n };\n })\n .sort((a, b) => a.bp - b.bp)\n .map(({ key, bp }) => ({\n key,\n mq: window.matchMedia(`(max-width: ${bp}px)`),\n }));\n }\n\n const updateBreakpoint = useCallback(() => {\n if (!queriesRef.current) return;\n const matched = queriesRef.current.find(({ mq }) => mq.matches);\n setBreakpoint(matched?.key ?? 'default');\n }, []);\n\n useEffect(() => {\n if (typeof window === 'undefined') return;\n\n const handleResize = () => {\n const newWidth = window.innerWidth;\n const newOrientation = newWidth > window.innerHeight ? 'landscape' : 'portrait';\n\n setOrientation(newOrientation);\n };\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n useEffect(() => {\n if (!queriesRef.current) return;\n\n queriesRef.current.forEach(({ mq }) => {\n mq.addEventListener('change', updateBreakpoint);\n });\n updateBreakpoint();\n\n return () => {\n queriesRef.current?.forEach(({ mq }) => {\n mq.removeEventListener('change', updateBreakpoint);\n });\n };\n }, [updateBreakpoint]);\n\n return (\n <ScreenWidthContext.Provider\n value={{\n breakpoint,\n orientation,\n type: props.type ?? 'breakpoint',\n }}\n >\n {props.children}\n </ScreenWidthContext.Provider>\n );\n};\n","import { useContextSelector } from 'use-context-selector';\n\nimport { ScreenWidthContext } from './context';\nimport { IScreenWidthContext, IUseScreenWidthDependencies } from './context.types';\n\nexport const useScreenWidth = (props: IUseScreenWidthDependencies): IScreenWidthContext => {\n const context = useContextSelector(ScreenWidthContext, (v) => {\n return v\n ? props.reduce((acc, prop) => {\n acc[prop] = v[prop];\n return acc;\n }, {} as any)\n : null;\n });\n if (!context) {\n throw new Error('useScreenWidth must be used within an ProviderScreenWidth');\n }\n return context;\n};\n"],"mappings":";;;;AAOA,IAAa,IAAqB,EAA0C,IAAA,GAEtE,IACJ,OAAO,SAAW,OAAe,OAAO,aAAa,OAAO,cAAc,cAAc,YAEpF,IAAA,MACA,OAAO,SAAW,MAAoB,YAEtB,OAAO,QAAQ,EAAS,OAAO,UAAA,EAChD,IAAA,CAAK,CAAC,GAAK,CAAA,OAAY;AAAA,EACjB,KAAA;AAAA,EACL,IAAI,SAAS,EAAM,QAAQ,OAAO,EAAA,GAAK,EAAA;EACxC,EACA,KAAA,CAAM,GAAG,MAAM,EAAE,KAAK,EAAE,EAAA,EAEC,KAAA,CAAM,EAAE,IAAA,EAAA,MAAS,OAAO,cAAc,CAAA,GAClD,OAAO,WAGnB,IAAuD,EAAA,GAEhD,IAAA,CAAiD,MAAU;AACtE,QAAM,CAAC,GAAY,CAAA,IAAiB,EAA4C,CAAA,GAC1E,CAAC,GAAa,CAAA,IAAkB,EAA6C,CAAA,GAE7E,IAAa,EAGR,IAAA;AAEX,EAAI,EAAW,YAAY,QAAQ,OAAO,SAAW,QACnD,EAAW,UAAU,OAAO,QAAQ,EAAS,OAAO,UAAA,EACjD,IAAA,CAAK,CAAC,GAAK,CAAA,OAEH;AAAA,IACA,KAAA;AAAA,IACL,IAHS,SAAS,EAAM,QAAQ,OAAO,EAAA,GAAK,EAAA;AAAA,MAM/C,KAAA,CAAM,GAAG,MAAM,EAAE,KAAK,EAAE,EAAA,EACxB,IAAA,CAAK,EAAE,KAAA,GAAK,IAAA,EAAA,OAAU;AAAA,IACrB,KAAA;AAAA,IACA,IAAI,OAAO,WAAW,eAAe,CAAA,KAAG;AAAA,IACzC;AAGL,QAAM,IAAmB,EAAA,MAAkB;AACzC,IAAK,EAAW,WAEhB,EADgB,EAAW,QAAQ,KAAA,CAAM,EAAE,IAAA,EAAA,MAAS,EAAG,OAAA,GAChC,OAAO,SAAA;AAAA,KAC7B,CAAA,CAAE;AAEL,SAAA,EAAA,MAAgB;AACd,QAAI,OAAO,SAAW,IAAa;AAEnC,UAAM,IAAA,MAAqB;AAIzB,MAAA,EAHiB,OAAO,aACU,OAAO,cAAc,cAAc,UAAA;AAAA;AAKvE,kBAAO,iBAAiB,UAAU,CAAA,GAClC,MAAa,OAAO,oBAAoB,UAAU,CAAA;AAAA,KACjD,CAAA,CAAE,GAEL,EAAA,MAAgB;AACd,QAAK,EAAW;AAEhB,aAAA,EAAW,QAAQ,QAAA,CAAS,EAAE,IAAA,EAAA,MAAS;AACrC,QAAA,EAAG,iBAAiB,UAAU,CAAA;AAAA,UAEhC,EAAA,GAEA,MAAa;AACX,QAAA,EAAW,SAAS,QAAA,CAAS,EAAE,IAAA,EAAA,MAAS;AACtC,UAAA,EAAG,oBAAoB,UAAU,CAAA;AAAA;;KAGpC,CAAC,CAAA,CAAiB,GAGnB,gBAAA,EAAC,EAAmB,UAApB;AAAA,IACE,OAAO;AAAA,MACL,YAAA;AAAA,MACA,aAAA;AAAA,MACA,MAAM,EAAM,QAAQ;AAAA;cAGrB,EAAM;AAAA,GACqB;GC5FrB,IAAA,CAAkB,MAA4D;AACzF,QAAM,IAAU,EAAmB,GAAA,CAAqB,MAC/C,IACH,EAAM,OAAA,CAAQ,GAAK,OACjB,EAAI,CAAA,IAAQ,EAAE,CAAA,GACP,IACN,CAAA,CAAE,IACL;AAEN,MAAI,CAAC,EACH,OAAM,IAAI,MAAM,2DAAA;AAElB,SAAO"}
@@ -0,0 +1,3 @@
1
+ const m=require("./chunk-CW3en5xf.cjs"),s=require("./utils-DtinAjAU.cjs"),f=require("./dist-C8r_OdG1.cjs");let l=require("react/jsx-runtime"),i=require("react");var p=f.createContext(null),w=typeof window<"u"&&window.innerWidth>window.innerHeight?"landscape":"portrait",h=()=>typeof window>"u"?"default":Object.entries(s.CSS_VARS.screen.breakpoint).map(([r,t])=>({key:r,bp:parseInt(t.replace(/\D/g,""),10)})).sort((r,t)=>r.bp-t.bp).find(({bp:r})=>window.innerWidth<=r)?.key??"default",b=h(),v=r=>{const[t,a]=(0,i.useState)(b),[d,o]=(0,i.useState)(w),n=(0,i.useRef)(null);n.current===null&&typeof window<"u"&&(n.current=Object.entries(s.CSS_VARS.screen.breakpoint).map(([e,u])=>({key:e,bp:parseInt(u.replace(/\D/g,""),10)})).sort((e,u)=>e.bp-u.bp).map(({key:e,bp:u})=>({key:e,mq:window.matchMedia(`(max-width: ${u}px)`)})));const c=(0,i.useCallback)(()=>{n.current&&a(n.current.find(({mq:e})=>e.matches)?.key??"default")},[]);return(0,i.useEffect)(()=>{if(typeof window>"u")return;const e=()=>{o(window.innerWidth>window.innerHeight?"landscape":"portrait")};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,i.useEffect)(()=>{if(n.current)return n.current.forEach(({mq:e})=>{e.addEventListener("change",c)}),c(),()=>{n.current?.forEach(({mq:e})=>{e.removeEventListener("change",c)})}},[c]),(0,l.jsx)(p.Provider,{value:{breakpoint:t,orientation:d,type:r.type??"breakpoint"},children:r.children})},S=r=>{const t=f.useContextSelector(p,a=>a?r.reduce((d,o)=>(d[o]=a[o],d),{}):null);if(!t)throw new Error("useScreenWidth must be used within an ProviderScreenWidth");return t};Object.defineProperty(exports,"ProviderScreenWidth",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"useScreenWidth",{enumerable:!0,get:function(){return S}});
2
+
3
+ //# sourceMappingURL=context-screen-width-ind6z7Ny.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-screen-width-ind6z7Ny.cjs","names":[],"sources":["../src/contexts/context-screen-width/context.tsx","../src/contexts/context-screen-width/context.hooks.ts"],"sourcesContent":["import { CSS_VARS, IThemeBreakpoint } from '@local/styles/utils';\n\nimport { FC, useCallback, useEffect, useRef, useState } from 'react';\nimport { createContext } from 'use-context-selector';\n\nimport { IScreenWidthContext, IScreenWidthProvider } from './context.types';\n\nexport const ScreenWidthContext = createContext<IScreenWidthContext | null>(null);\n\nconst defaultOrientation =\n typeof window !== 'undefined' && window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';\n\nconst getDefaultBreakpoint = (): IScreenWidthContext['breakpoint'] => {\n if (typeof window === 'undefined') return 'default';\n\n const breakpoints = Object.entries(CSS_VARS.screen.breakpoint)\n .map(([key, value]) => ({\n key: key as keyof typeof CSS_VARS.screen.breakpoint,\n bp: parseInt(value.replace(/\\D/g, ''), 10),\n }))\n .sort((a, b) => a.bp - b.bp);\n\n const matched = breakpoints.find(({ bp }) => window.innerWidth <= bp);\n return matched?.key ?? 'default';\n};\n\nconst defaultBreakpoint: IScreenWidthContext['breakpoint'] = getDefaultBreakpoint();\n\nexport const ProviderScreenWidth: FC<IScreenWidthProvider> = (props) => {\n const [breakpoint, setBreakpoint] = useState<IScreenWidthContext['breakpoint']>(defaultBreakpoint);\n const [orientation, setOrientation] = useState<IScreenWidthContext['orientation']>(defaultOrientation);\n\n const queriesRef = useRef<Array<{\n key: IThemeBreakpoint;\n mq: MediaQueryList;\n }> | null>(null);\n\n if (queriesRef.current === null && typeof window !== 'undefined') {\n queriesRef.current = Object.entries(CSS_VARS.screen.breakpoint)\n .map(([key, value]) => {\n const bp = parseInt(value.replace(/\\D/g, ''), 10);\n return {\n key: key as keyof typeof CSS_VARS.screen.breakpoint,\n bp,\n };\n })\n .sort((a, b) => a.bp - b.bp)\n .map(({ key, bp }) => ({\n key,\n mq: window.matchMedia(`(max-width: ${bp}px)`),\n }));\n }\n\n const updateBreakpoint = useCallback(() => {\n if (!queriesRef.current) return;\n const matched = queriesRef.current.find(({ mq }) => mq.matches);\n setBreakpoint(matched?.key ?? 'default');\n }, []);\n\n useEffect(() => {\n if (typeof window === 'undefined') return;\n\n const handleResize = () => {\n const newWidth = window.innerWidth;\n const newOrientation = newWidth > window.innerHeight ? 'landscape' : 'portrait';\n\n setOrientation(newOrientation);\n };\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n useEffect(() => {\n if (!queriesRef.current) return;\n\n queriesRef.current.forEach(({ mq }) => {\n mq.addEventListener('change', updateBreakpoint);\n });\n updateBreakpoint();\n\n return () => {\n queriesRef.current?.forEach(({ mq }) => {\n mq.removeEventListener('change', updateBreakpoint);\n });\n };\n }, [updateBreakpoint]);\n\n return (\n <ScreenWidthContext.Provider\n value={{\n breakpoint,\n orientation,\n type: props.type ?? 'breakpoint',\n }}\n >\n {props.children}\n </ScreenWidthContext.Provider>\n );\n};\n","import { useContextSelector } from 'use-context-selector';\n\nimport { ScreenWidthContext } from './context';\nimport { IScreenWidthContext, IUseScreenWidthDependencies } from './context.types';\n\nexport const useScreenWidth = (props: IUseScreenWidthDependencies): IScreenWidthContext => {\n const context = useContextSelector(ScreenWidthContext, (v) => {\n return v\n ? props.reduce((acc, prop) => {\n acc[prop] = v[prop];\n return acc;\n }, {} as any)\n : null;\n });\n if (!context) {\n throw new Error('useScreenWidth must be used within an ProviderScreenWidth');\n }\n return context;\n};\n"],"mappings":"iKAOA,IAAa,EAAqB,EAAA,cAA0C,IAAA,EAEtE,EACJ,OAAO,OAAW,KAAe,OAAO,WAAa,OAAO,YAAc,YAAc,WAEpF,EAAA,IACA,OAAO,OAAW,IAAoB,UAEtB,OAAO,QAAQ,EAAA,SAAS,OAAO,UAAA,EAChD,IAAA,CAAK,CAAC,EAAK,CAAA,KAAY,CACjB,IAAA,EACL,GAAI,SAAS,EAAM,QAAQ,MAAO,EAAA,EAAK,EAAA,GACxC,EACA,KAAA,CAAM,EAAG,IAAM,EAAE,GAAK,EAAE,EAAA,EAEC,KAAA,CAAM,CAAE,GAAA,CAAA,IAAS,OAAO,YAAc,CAAA,GAClD,KAAO,UAGnB,EAAuD,EAAA,EAEhD,EAAiD,GAAU,CACtE,KAAM,CAAC,EAAY,CAAA,KAAA,EAAA,UAA6D,CAAA,EAC1E,CAAC,EAAa,CAAA,KAAA,EAAA,UAA+D,CAAA,EAE7E,KAAA,EAAA,QAGK,IAAA,EAEP,EAAW,UAAY,MAAQ,OAAO,OAAW,MACnD,EAAW,QAAU,OAAO,QAAQ,EAAA,SAAS,OAAO,UAAA,EACjD,IAAA,CAAK,CAAC,EAAK,CAAA,KAEH,CACA,IAAA,EACL,GAHS,SAAS,EAAM,QAAQ,MAAO,EAAA,EAAK,EAAA,KAM/C,KAAA,CAAM,EAAG,IAAM,EAAE,GAAK,EAAE,EAAA,EACxB,IAAA,CAAK,CAAE,IAAA,EAAK,GAAA,CAAA,KAAU,CACrB,IAAA,EACA,GAAI,OAAO,WAAW,eAAe,CAAA,KAAG,GACzC,GAGL,MAAM,KAAA,EAAA,aAAA,IAAqC,CACpC,EAAW,SAEhB,EADgB,EAAW,QAAQ,KAAA,CAAM,CAAE,GAAA,CAAA,IAAS,EAAG,OAAA,GAChC,KAAO,SAAA,GAC7B,CAAA,CAAE,EAEL,SAAA,EAAA,WAAA,IAAgB,CACd,GAAI,OAAO,OAAW,IAAa,OAEnC,MAAM,EAAA,IAAqB,CAIzB,EAHiB,OAAO,WACU,OAAO,YAAc,YAAc,UAAA,GAKvE,cAAO,iBAAiB,SAAU,CAAA,EAClC,IAAa,OAAO,oBAAoB,SAAU,CAAA,GACjD,CAAA,CAAE,KAEL,EAAA,WAAA,IAAgB,CACd,GAAK,EAAW,QAEhB,OAAA,EAAW,QAAQ,QAAA,CAAS,CAAE,GAAA,CAAA,IAAS,CACrC,EAAG,iBAAiB,SAAU,CAAA,IAEhC,EAAA,EAEA,IAAa,CACX,EAAW,SAAS,QAAA,CAAS,CAAE,GAAA,CAAA,IAAS,CACtC,EAAG,oBAAoB,SAAU,CAAA,MAGpC,CAAC,CAAA,CAAiB,KAGnB,EAAA,KAAC,EAAmB,SAApB,CACE,MAAO,CACL,WAAA,EACA,YAAA,EACA,KAAM,EAAM,MAAQ,uBAGrB,EAAM,SACqB,GC5FrB,EAAkB,GAA4D,CACzF,MAAM,EAAU,EAAA,mBAAmB,EAAqB,GAC/C,EACH,EAAM,OAAA,CAAQ,EAAK,KACjB,EAAI,CAAA,EAAQ,EAAE,CAAA,EACP,GACN,CAAA,CAAE,EACL,MAEN,GAAI,CAAC,EACH,MAAM,IAAI,MAAM,2DAAA,EAElB,OAAO"}
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context.hooks-DDD8ffJI.cjs");exports.ProviderScreenWidth=e.ProviderScreenWidth,exports.ScreenWidthContext=e.ScreenWidthContext,exports.useScreenWidth=e.useScreenWidth;
2
- //# sourceMappingURL=context-screen-width.cjs.js.map
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-CW3en5xf.cjs"),e=require("./context-screen-width-ind6z7Ny.cjs");exports.ProviderScreenWidth=e.ProviderScreenWidth;exports.useScreenWidth=e.useScreenWidth;
@@ -1,34 +1,2 @@
1
- import { Context } from 'react';
2
- import { FC } from 'react';
3
- import { PropsWithChildren } from 'react';
4
-
5
- declare type IThemeDevice = 'default' | 'tablet' | 'mobile';
6
-
7
- declare type IThemeScreen = Record<IThemeDevice, {
8
- width: number;
9
- }>;
10
-
11
- export declare const ProviderScreenWidth: FC<ProviderScreenWidthProps>;
12
-
13
- export declare type ProviderScreenWidthProps = PropsWithChildren;
14
-
15
- export declare type Screens = keyof IThemeScreen;
16
-
17
- export declare const ScreenWidthContext: Context<ScreenWidthContextProps | null>;
18
-
19
- export declare interface ScreenWidthContextProps {
20
- screenWidth: Screens;
21
- screens: {
22
- value: Screens;
23
- isScreen: boolean;
24
- }[];
25
- screenActual: Screens;
26
- }
27
-
28
- export declare type ScreenWidthProps<T> = {
29
- [K in IThemeDevice]?: T;
30
- };
31
-
32
- export declare const useScreenWidth: () => ScreenWidthContextProps;
33
-
34
- export { }
1
+ export * from './contexts/context-screen-width/index'
2
+ export {}
@@ -1,7 +1,5 @@
1
- import { P, S, u } from "./context.hooks-oclt34zD.js";
1
+ import { n as r, t } from "./context-screen-width-CEsyIyg6.js";
2
2
  export {
3
- P as ProviderScreenWidth,
4
- S as ScreenWidthContext,
5
- u as useScreenWidth
3
+ r as ProviderScreenWidth,
4
+ t as useScreenWidth
6
5
  };
7
- //# sourceMappingURL=context-screen-width.es.js.map
@@ -0,0 +1,218 @@
1
+ import { t as U } from "./proxy-DTLy-pV-.js";
2
+ import { t as F } from "./AnimatePresence-BByJ67dn.js";
3
+ import { n as G, r as f } from "./utils-Cona48dZ.js";
4
+ import { t as W } from "./functions-CLGf7hqw.js";
5
+ import { r as I } from "./icon-BG6R5Lfa.js";
6
+ import { t as $ } from "./button-D8zdhI-0.js";
7
+ import { n as j, t as K } from "./dist-Dq_YJa2q.js";
8
+ import { t as w } from "./v4-CYaPyb-W.js";
9
+ import { Fragment as Y, jsx as l, jsxs as b } from "react/jsx-runtime";
10
+ import { memo as q, useCallback as u, useEffect as J, useMemo as s, useState as M } from "react";
11
+ var Q = 0.04, X = 0.3;
12
+ var Z = {
13
+ content: "Undo",
14
+ onClick: () => {
15
+ }
16
+ }, a = G.context.sonner, p = a.layout, ee = a.elementWrapper, ne = a.content, te = a.icon, ie = a.contentTitle, oe = a.contentDescription, ae = a.buttonWrapper, de = {
17
+ "bottom-center": a.layoutBottomCenter,
18
+ "bottom-left": a.layoutBottomLeft,
19
+ "bottom-right": a.layoutBottomRight,
20
+ "top-right": a.layoutTopRight,
21
+ "top-left": a.layoutTopLeft,
22
+ "top-center": a.layoutTopCenter
23
+ }, re = (e) => W([p, de[e]]), le = (e) => ({
24
+ "--context-sonner-gap": `${e.gap}px`,
25
+ "--context-sonner-z-index": `${e.zIndex ?? 0}`
26
+ }), ce = (e) => {
27
+ const t = f.genre.button[e];
28
+ return {
29
+ "--context-sonner-wrapper-background": t.background.index,
30
+ "--context-sonner-wrapper-border-color": t.border.index,
31
+ "--context-sonner-wrapper-box-shadow": e === "primary" || e === "secondary" ? f.palette.shadowPrimaryLight : f.palette.shadowSecondaryLight,
32
+ "--context-sonner-wrapper-box-shadow-hover": e === "primary" || e === "secondary" ? f.palette.shadowSecondaryLight : f.palette.shadowPrimaryLight,
33
+ "--context-sonner-icon-color": t.color.index,
34
+ "--context-sonner-title-color": t.color.index,
35
+ "--context-sonner-description-color": t.color.index
36
+ };
37
+ }, N = K(null), be = (e) => {
38
+ const t = s(() => e.visibleToasts, [e.visibleToasts]), g = s(() => e?.default?.description, [e?.default?.description]), v = s(() => e?.default?.title, [e?.default?.title]), S = s(() => e?.default?.button, [e?.default?.button]), O = s(() => e?.default?.hidingTime, [e?.default?.hidingTime]), k = s(() => e?.default?.hidingMode ?? "clickOnButton", [e?.default?.hidingMode]), D = s(() => e?.default?.genre ?? "product", [e?.default?.genre]), R = s(() => e.position.includes("top"), [e.position]), [C, T] = M([]), [_, E] = M(!1), V = u(() => {
39
+ E(!0);
40
+ }, []), L = u(() => {
41
+ E(!1);
42
+ }, []), m = u((n) => {
43
+ T((o) => {
44
+ const c = o.find((i) => i.id === n);
45
+ if (!c) return o;
46
+ const d = c.index, r = o.filter((i) => i.id !== n).map((i) => ({
47
+ ...i,
48
+ index: i.index > d ? i.index - 1 : i.index
49
+ }));
50
+ return r.length === 0 && L(), r;
51
+ });
52
+ }, [L]), x = u((n) => {
53
+ const o = n.id ?? w(), c = n.hidingTime ?? O;
54
+ T((d) => {
55
+ const r = d.findIndex((h) => h.id === o);
56
+ let i;
57
+ if (r !== -1)
58
+ i = [...d], i[r] = {
59
+ ...n,
60
+ id: o,
61
+ index: d[r].index
62
+ };
63
+ else {
64
+ i = d.map((y) => ({
65
+ ...y,
66
+ index: y.index + 1
67
+ }));
68
+ const h = {
69
+ ...n,
70
+ id: o,
71
+ index: 0
72
+ };
73
+ i.unshift(h);
74
+ }
75
+ return i;
76
+ }), c !== void 0 && setTimeout(() => {
77
+ m(o);
78
+ }, c);
79
+ }, [O, m]), P = u((n, o, c) => {
80
+ const d = w();
81
+ return x({
82
+ ...o,
83
+ id: d,
84
+ isLoading: !0
85
+ }), n.then((r) => {
86
+ x({
87
+ ...c(r, void 0),
88
+ id: d
89
+ });
90
+ }).catch((r) => {
91
+ x({
92
+ ...c(void 0, r),
93
+ id: d
94
+ });
95
+ });
96
+ }, [x]), A = u((n) => {
97
+ m(n);
98
+ }, [m]);
99
+ return J(() => () => {
100
+ T([]);
101
+ }, []), /* @__PURE__ */ b(N.Provider, {
102
+ value: {
103
+ toast: x,
104
+ promise: P,
105
+ remove: m,
106
+ contentHistory: C
107
+ },
108
+ children: [/* @__PURE__ */ l("div", {
109
+ className: re(e.position),
110
+ style: le({
111
+ gap: e.gap,
112
+ zIndex: e.zIndex ?? 100
113
+ }),
114
+ onMouseEnter: V,
115
+ onMouseLeave: L,
116
+ children: /* @__PURE__ */ l(F, { children: C.map((n) => {
117
+ const o = n.index, c = t ? o > t : !1, d = t ? o > t - 1 : !1, r = t ? o === t - 1 : !1, i = n.genre ?? D, h = i, y = n.hidingMode ?? k, B = "content" in n ? n.content : !1, H = "title" in n ? n.title : !1, z = "description" in n ? n.description : !1;
118
+ return /* @__PURE__ */ l(ue, {
119
+ isMoreThanLastViewIndexPlusOne: c,
120
+ isMoreThanLastViewIndex: d,
121
+ isLastViewIndex: r,
122
+ isTop: R,
123
+ id: n.id,
124
+ icon: n.icon,
125
+ isLoading: n.isLoading,
126
+ index: o,
127
+ buttonGenre: h,
128
+ hidingMode: y,
129
+ isHovered: _,
130
+ genre: i,
131
+ content: B,
132
+ title: H || v,
133
+ description: z || g,
134
+ button: n.button ?? S ?? Z,
135
+ handleOnClick: A
136
+ }, n.id);
137
+ }) })
138
+ }), e.children]
139
+ });
140
+ }, se = (e) => /* @__PURE__ */ l(U.div, {
141
+ layout: !0,
142
+ initial: {
143
+ opacity: 0,
144
+ scale: 1,
145
+ y: e.isLastViewIndex ? e.isTop ? 100 : -100 : e.isTop ? -100 : 100
146
+ },
147
+ animate: {
148
+ y: 0,
149
+ opacity: e.isMoreThanLastViewIndex ? 0 : 1,
150
+ pointerEvents: e.isMoreThanLastViewIndex ? "none" : "auto",
151
+ display: e.isMoreThanLastViewIndex ? "none" : "flex",
152
+ scale: e.isHovered ? 1 : Math.max(1 - e.index * Q, 0.88),
153
+ marginTop: e.isTop ? e.isHovered || e.index === 0 ? "0px" : "-65px" : "0px",
154
+ marginBottom: e.isTop || e.isHovered || e.index === 0 ? "0px" : "-65px"
155
+ },
156
+ style: { zIndex: -e.index },
157
+ whileInView: { opacity: e.isMoreThanLastViewIndex ? 0 : 1 },
158
+ exit: {
159
+ opacity: 0,
160
+ y: e.isTop ? -100 : 100
161
+ },
162
+ transition: {
163
+ type: "spring",
164
+ duration: X
165
+ },
166
+ children: /* @__PURE__ */ b("div", {
167
+ className: ee,
168
+ style: ce(e.genre),
169
+ role: e.hidingMode === "clickOnSonner" ? "button" : void 0,
170
+ tabIndex: e.hidingMode === "clickOnSonner" ? 0 : void 0,
171
+ onClick: () => e.hidingMode === "clickOnSonner" && e.handleOnClick(e.id, "clickOnSonner"),
172
+ onKeyDown: (t) => {
173
+ e.hidingMode === "clickOnSonner" && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.handleOnClick(e.id, "clickOnSonner"));
174
+ },
175
+ children: [
176
+ (e.isLoading || e.icon) && /* @__PURE__ */ l("div", {
177
+ className: te,
178
+ children: e.isLoading ? /* @__PURE__ */ l(I, {
179
+ size: "medium",
180
+ type: "loading",
181
+ name: "Line"
182
+ }) : e.icon && /* @__PURE__ */ l(I, {
183
+ ...e.icon,
184
+ size: e.icon.size ?? "medium"
185
+ })
186
+ }),
187
+ /* @__PURE__ */ l("div", {
188
+ className: ne,
189
+ children: e.content ? e.content : /* @__PURE__ */ b(Y, { children: [e.title && /* @__PURE__ */ l("div", {
190
+ className: ie,
191
+ children: e.title
192
+ }), e.description && /* @__PURE__ */ l("div", {
193
+ className: oe,
194
+ children: e.description
195
+ })] })
196
+ }),
197
+ e.button && "content" in e.button && e.button?.content && /* @__PURE__ */ l("div", {
198
+ className: ae,
199
+ children: /* @__PURE__ */ l($, {
200
+ genre: e.buttonGenre,
201
+ size: "small",
202
+ onClick: () => e.hidingMode === "clickOnButton" && e.handleOnClick(e.id, "clickOnButton"),
203
+ children: e.button.content
204
+ })
205
+ })
206
+ ]
207
+ })
208
+ }, e.id), ue = q(se), Oe = (e) => {
209
+ const t = j(N, (g) => g ? e.reduce((v, S) => (v[S] = g[S], v), {}) : null);
210
+ if (!t) throw new Error("useSonner must be used within an ProviderSonner");
211
+ return t;
212
+ };
213
+ export {
214
+ be as n,
215
+ Oe as t
216
+ };
217
+
218
+ //# sourceMappingURL=context-sonner-Bniiz914.js.map