lkd-web-kit 0.7.8 → 0.7.10

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 (383) hide show
  1. package/dist/_virtual/___vite-browser-external.cjs +12 -0
  2. package/dist/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/_virtual/__vite-browser-external.cjs +5 -0
  4. package/dist/_virtual/__vite-browser-external.js +3 -0
  5. package/dist/_virtual/_commonjsHelpers.cjs +34 -0
  6. package/dist/_virtual/_commonjsHelpers.js +30 -0
  7. package/dist/_virtual/_interop_require_default.cjs +7 -0
  8. package/dist/_virtual/_interop_require_default.js +3 -0
  9. package/dist/_virtual/_interop_require_wildcard.cjs +7 -0
  10. package/dist/_virtual/_interop_require_wildcard.js +3 -0
  11. package/dist/_virtual/add-base-path.cjs +7 -0
  12. package/dist/_virtual/add-base-path.js +3 -0
  13. package/dist/_virtual/add-locale.cjs +7 -0
  14. package/dist/_virtual/add-locale.js +3 -0
  15. package/dist/_virtual/add-locale2.cjs +7 -0
  16. package/dist/_virtual/add-locale2.js +3 -0
  17. package/dist/_virtual/add-path-prefix.cjs +7 -0
  18. package/dist/_virtual/add-path-prefix.js +3 -0
  19. package/dist/_virtual/add-path-suffix.cjs +7 -0
  20. package/dist/_virtual/add-path-suffix.js +3 -0
  21. package/dist/_virtual/app-paths.cjs +7 -0
  22. package/dist/_virtual/app-paths.js +3 -0
  23. package/dist/_virtual/bloom-filter.cjs +7 -0
  24. package/dist/_virtual/bloom-filter.js +3 -0
  25. package/dist/_virtual/compare-states.cjs +7 -0
  26. package/dist/_virtual/compare-states.js +3 -0
  27. package/dist/_virtual/constants.cjs +7 -0
  28. package/dist/_virtual/constants.js +3 -0
  29. package/dist/_virtual/denormalize-page-path.cjs +7 -0
  30. package/dist/_virtual/denormalize-page-path.js +3 -0
  31. package/dist/_virtual/deployment-id.cjs +7 -0
  32. package/dist/_virtual/deployment-id.js +3 -0
  33. package/dist/_virtual/detect-domain-locale.cjs +7 -0
  34. package/dist/_virtual/detect-domain-locale.js +3 -0
  35. package/dist/_virtual/detect-domain-locale2.cjs +7 -0
  36. package/dist/_virtual/detect-domain-locale2.js +3 -0
  37. package/dist/_virtual/disable-smooth-scroll.cjs +7 -0
  38. package/dist/_virtual/disable-smooth-scroll.js +3 -0
  39. package/dist/_virtual/encode-uri-path.cjs +7 -0
  40. package/dist/_virtual/encode-uri-path.js +3 -0
  41. package/dist/_virtual/ensure-leading-slash.cjs +7 -0
  42. package/dist/_virtual/ensure-leading-slash.js +3 -0
  43. package/dist/_virtual/escape-regexp.cjs +7 -0
  44. package/dist/_virtual/escape-regexp.js +3 -0
  45. package/dist/_virtual/format-next-pathname-info.cjs +7 -0
  46. package/dist/_virtual/format-next-pathname-info.js +3 -0
  47. package/dist/_virtual/format-url.cjs +7 -0
  48. package/dist/_virtual/format-url.js +3 -0
  49. package/dist/_virtual/get-asset-path-from-route.cjs +7 -0
  50. package/dist/_virtual/get-asset-path-from-route.js +3 -0
  51. package/dist/_virtual/get-cookie-parser.cjs +7 -0
  52. package/dist/_virtual/get-cookie-parser.js +3 -0
  53. package/dist/_virtual/get-dynamic-param.cjs +7 -0
  54. package/dist/_virtual/get-dynamic-param.js +3 -0
  55. package/dist/_virtual/get-next-pathname-info.cjs +7 -0
  56. package/dist/_virtual/get-next-pathname-info.js +3 -0
  57. package/dist/_virtual/get-segment-param.cjs +7 -0
  58. package/dist/_virtual/get-segment-param.js +3 -0
  59. package/dist/_virtual/has-base-path.cjs +7 -0
  60. package/dist/_virtual/has-base-path.js +3 -0
  61. package/dist/_virtual/head-manager-context.shared-runtime.cjs +7 -0
  62. package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
  63. package/dist/_virtual/html-bots.cjs +7 -0
  64. package/dist/_virtual/html-bots.js +3 -0
  65. package/dist/_virtual/index.cjs +7 -0
  66. package/dist/_virtual/index.js +3 -0
  67. package/dist/_virtual/index2.cjs +7 -0
  68. package/dist/_virtual/index2.js +3 -0
  69. package/dist/_virtual/index3.cjs +7 -0
  70. package/dist/_virtual/index3.js +3 -0
  71. package/dist/_virtual/index4.cjs +7 -0
  72. package/dist/_virtual/index4.js +3 -0
  73. package/dist/_virtual/index5.cjs +7 -0
  74. package/dist/_virtual/index5.js +3 -0
  75. package/dist/_virtual/interception-routes.cjs +7 -0
  76. package/dist/_virtual/interception-routes.js +3 -0
  77. package/dist/_virtual/interpolate-as.cjs +7 -0
  78. package/dist/_virtual/interpolate-as.js +3 -0
  79. package/dist/_virtual/invariant-error.cjs +7 -0
  80. package/dist/_virtual/invariant-error.js +3 -0
  81. package/dist/_virtual/is-api-route.cjs +7 -0
  82. package/dist/_virtual/is-api-route.js +3 -0
  83. package/dist/_virtual/is-bot.cjs +7 -0
  84. package/dist/_virtual/is-bot.js +3 -0
  85. package/dist/_virtual/is-dynamic.cjs +7 -0
  86. package/dist/_virtual/is-dynamic.js +3 -0
  87. package/dist/_virtual/is-error.cjs +7 -0
  88. package/dist/_virtual/is-error.js +3 -0
  89. package/dist/_virtual/is-local-url.cjs +7 -0
  90. package/dist/_virtual/is-local-url.js +3 -0
  91. package/dist/_virtual/is-plain-object.cjs +7 -0
  92. package/dist/_virtual/is-plain-object.js +3 -0
  93. package/dist/_virtual/mitt.cjs +7 -0
  94. package/dist/_virtual/mitt.js +3 -0
  95. package/dist/_virtual/normalize-locale-path.cjs +7 -0
  96. package/dist/_virtual/normalize-locale-path.js +3 -0
  97. package/dist/_virtual/normalize-path-sep.cjs +7 -0
  98. package/dist/_virtual/normalize-path-sep.js +3 -0
  99. package/dist/_virtual/normalize-trailing-slash.cjs +7 -0
  100. package/dist/_virtual/normalize-trailing-slash.js +3 -0
  101. package/dist/_virtual/omit.cjs +7 -0
  102. package/dist/_virtual/omit.js +3 -0
  103. package/dist/_virtual/parse-loader-tree.cjs +7 -0
  104. package/dist/_virtual/parse-loader-tree.js +3 -0
  105. package/dist/_virtual/parse-path.cjs +7 -0
  106. package/dist/_virtual/parse-path.js +3 -0
  107. package/dist/_virtual/parse-relative-url.cjs +7 -0
  108. package/dist/_virtual/parse-relative-url.js +3 -0
  109. package/dist/_virtual/parse-url.cjs +7 -0
  110. package/dist/_virtual/parse-url.js +3 -0
  111. package/dist/_virtual/path-has-prefix.cjs +7 -0
  112. package/dist/_virtual/path-has-prefix.js +3 -0
  113. package/dist/_virtual/path-match.cjs +7 -0
  114. package/dist/_virtual/path-match.js +3 -0
  115. package/dist/_virtual/prepare-destination.cjs +7 -0
  116. package/dist/_virtual/prepare-destination.js +3 -0
  117. package/dist/_virtual/querystring.cjs +7 -0
  118. package/dist/_virtual/querystring.js +3 -0
  119. package/dist/_virtual/react-is.development.cjs +7 -0
  120. package/dist/_virtual/react-is.development.js +3 -0
  121. package/dist/_virtual/react-is.production.cjs +7 -0
  122. package/dist/_virtual/react-is.production.js +3 -0
  123. package/dist/_virtual/remove-base-path.cjs +7 -0
  124. package/dist/_virtual/remove-base-path.js +3 -0
  125. package/dist/_virtual/remove-locale.cjs +7 -0
  126. package/dist/_virtual/remove-locale.js +3 -0
  127. package/dist/_virtual/remove-path-prefix.cjs +7 -0
  128. package/dist/_virtual/remove-path-prefix.js +3 -0
  129. package/dist/_virtual/remove-trailing-slash.cjs +7 -0
  130. package/dist/_virtual/remove-trailing-slash.js +3 -0
  131. package/dist/_virtual/request-idle-callback.cjs +7 -0
  132. package/dist/_virtual/request-idle-callback.js +3 -0
  133. package/dist/_virtual/resolve-href.cjs +7 -0
  134. package/dist/_virtual/resolve-href.js +3 -0
  135. package/dist/_virtual/resolve-rewrites.cjs +7 -0
  136. package/dist/_virtual/resolve-rewrites.js +3 -0
  137. package/dist/_virtual/route-loader.cjs +7 -0
  138. package/dist/_virtual/route-loader.js +3 -0
  139. package/dist/_virtual/route-match-utils.cjs +7 -0
  140. package/dist/_virtual/route-match-utils.js +3 -0
  141. package/dist/_virtual/route-matcher.cjs +7 -0
  142. package/dist/_virtual/route-matcher.js +3 -0
  143. package/dist/_virtual/route-pattern-normalizer.cjs +7 -0
  144. package/dist/_virtual/route-pattern-normalizer.js +3 -0
  145. package/dist/_virtual/route-regex.cjs +7 -0
  146. package/dist/_virtual/route-regex.js +3 -0
  147. package/dist/_virtual/router-context.shared-runtime.cjs +7 -0
  148. package/dist/_virtual/router-context.shared-runtime.js +3 -0
  149. package/dist/_virtual/router.cjs +9 -0
  150. package/dist/_virtual/router.js +5 -0
  151. package/dist/_virtual/router2.cjs +7 -0
  152. package/dist/_virtual/router2.js +3 -0
  153. package/dist/_virtual/router3.cjs +7 -0
  154. package/dist/_virtual/router3.js +3 -0
  155. package/dist/_virtual/script.cjs +7 -0
  156. package/dist/_virtual/script.js +3 -0
  157. package/dist/_virtual/segment.cjs +7 -0
  158. package/dist/_virtual/segment.js +3 -0
  159. package/dist/_virtual/set-attributes-from-props.cjs +7 -0
  160. package/dist/_virtual/set-attributes-from-props.js +3 -0
  161. package/dist/_virtual/sorted-routes.cjs +7 -0
  162. package/dist/_virtual/sorted-routes.js +3 -0
  163. package/dist/_virtual/trusted-types.cjs +7 -0
  164. package/dist/_virtual/trusted-types.js +3 -0
  165. package/dist/_virtual/utils.cjs +7 -0
  166. package/dist/_virtual/utils.js +3 -0
  167. package/dist/_virtual/warn-once.cjs +7 -0
  168. package/dist/_virtual/warn-once.js +3 -0
  169. package/dist/_virtual/with-router.cjs +7 -0
  170. package/dist/_virtual/with-router.js +3 -0
  171. package/dist/components/EmptyState/index.cjs +5 -5
  172. package/dist/components/Icon.cjs +2 -2
  173. package/dist/components/InfinityLoader/index.cjs +4 -4
  174. package/dist/components/MyCheckboxGroup/index.cjs +24 -0
  175. package/dist/components/MyCheckboxGroup/index.js +20 -0
  176. package/dist/components/MyDateInput/index.cjs +3 -3
  177. package/dist/components/MyDatePickerInput/CalendarIcon.cjs +7 -7
  178. package/dist/components/MyDatePickerInput/index.cjs +3 -3
  179. package/dist/components/MyDateTimePicker/index.cjs +3 -3
  180. package/dist/components/MyMonthPickerInput/index.cjs +3 -3
  181. package/dist/components/MyMultiSelect/index.cjs +2 -2
  182. package/dist/components/MyNotifications/index.cjs +2 -2
  183. package/dist/components/MyNumberInput/index.cjs +2 -2
  184. package/dist/components/MyRadioGroup/index.cjs +2 -2
  185. package/dist/components/MySelect/index.cjs +2 -2
  186. package/dist/components/MyTextInput/index.cjs +2 -2
  187. package/dist/components/MyTextarea/index.cjs +2 -2
  188. package/dist/components/MyTimeInput/index.cjs +2 -2
  189. package/dist/components/NavItems.cjs +4 -4
  190. package/dist/components/SelectInfinity/index.cjs +8 -8
  191. package/dist/contexts/NavigationHistoryContext/hook.cjs +47 -0
  192. package/dist/contexts/NavigationHistoryContext/hook.js +42 -0
  193. package/dist/contexts/NavigationHistoryContext/index.cjs +15 -47
  194. package/dist/contexts/NavigationHistoryContext/index.js +17 -48
  195. package/dist/contexts/PageDataContext/index.cjs +2 -2
  196. package/dist/form/Form.cjs +2 -2
  197. package/dist/form/FormButtonSubmit.cjs +2 -2
  198. package/dist/form/base/FormCheckbox.cjs +2 -2
  199. package/dist/form/base/FormCheckboxGroup.cjs +17 -0
  200. package/dist/form/base/FormCheckboxGroup.js +13 -0
  201. package/dist/form/base/FormDateInput.cjs +2 -2
  202. package/dist/form/base/FormDatePickerInput.cjs +2 -2
  203. package/dist/form/base/FormDateTimePicker.cjs +2 -2
  204. package/dist/form/base/FormMonthPickerInput.cjs +2 -2
  205. package/dist/form/base/FormMultiSelect.cjs +2 -2
  206. package/dist/form/base/FormNumberInput.cjs +2 -2
  207. package/dist/form/base/FormRadioGroup.cjs +2 -2
  208. package/dist/form/base/FormSelect.cjs +2 -2
  209. package/dist/form/base/FormSelectInfinity.cjs +2 -2
  210. package/dist/form/base/FormTextInput.cjs +2 -2
  211. package/dist/form/base/FormTextarea.cjs +2 -2
  212. package/dist/form/base/FormTimeInput.cjs +2 -2
  213. package/dist/hocs/withController.cjs +3 -3
  214. package/dist/hocs/withModalManager.cjs +2 -2
  215. package/dist/index.cjs +12 -7
  216. package/dist/index.d.ts +16 -8
  217. package/dist/index.js +4 -1
  218. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +20 -0
  219. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +16 -0
  220. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +52 -0
  221. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +48 -0
  222. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
  223. package/dist/node_modules/next/dist/build/deployment-id.cjs +34 -0
  224. package/dist/node_modules/next/dist/build/deployment-id.js +30 -0
  225. package/dist/node_modules/next/dist/client/add-base-path.cjs +42 -0
  226. package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
  227. package/dist/node_modules/next/dist/client/add-locale.cjs +43 -0
  228. package/dist/node_modules/next/dist/client/add-locale.js +39 -0
  229. package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +40 -0
  230. package/dist/node_modules/next/dist/client/detect-domain-locale.js +36 -0
  231. package/dist/node_modules/next/dist/client/has-base-path.cjs +40 -0
  232. package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
  233. package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +54 -0
  234. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +50 -0
  235. package/dist/node_modules/next/dist/client/remove-base-path.cjs +49 -0
  236. package/dist/node_modules/next/dist/client/remove-base-path.js +45 -0
  237. package/dist/node_modules/next/dist/client/remove-locale.cjs +45 -0
  238. package/dist/node_modules/next/dist/client/remove-locale.js +41 -0
  239. package/dist/node_modules/next/dist/client/request-idle-callback.cjs +56 -0
  240. package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
  241. package/dist/node_modules/next/dist/client/resolve-href.cjs +132 -0
  242. package/dist/node_modules/next/dist/client/resolve-href.js +128 -0
  243. package/dist/node_modules/next/dist/client/route-loader.cjs +363 -0
  244. package/dist/node_modules/next/dist/client/route-loader.js +359 -0
  245. package/dist/node_modules/next/dist/client/router.cjs +201 -0
  246. package/dist/node_modules/next/dist/client/router.js +197 -0
  247. package/dist/node_modules/next/dist/client/script.cjs +366 -0
  248. package/dist/node_modules/next/dist/client/script.js +362 -0
  249. package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +81 -0
  250. package/dist/node_modules/next/dist/client/set-attributes-from-props.js +77 -0
  251. package/dist/node_modules/next/dist/client/trusted-types.cjs +56 -0
  252. package/dist/node_modules/next/dist/client/trusted-types.js +52 -0
  253. package/dist/node_modules/next/dist/client/with-router.cjs +54 -0
  254. package/dist/node_modules/next/dist/client/with-router.js +50 -0
  255. package/dist/node_modules/next/dist/compiled/cookie/index.cjs +22 -0
  256. package/dist/node_modules/next/dist/compiled/cookie/index.js +18 -0
  257. package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +17 -0
  258. package/dist/node_modules/next/dist/compiled/gzip-size/index.js +13 -0
  259. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +16 -0
  260. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +12 -0
  261. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +147 -0
  262. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +143 -0
  263. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +144 -0
  264. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +140 -0
  265. package/dist/node_modules/next/dist/compiled/react-is/index.cjs +23 -0
  266. package/dist/node_modules/next/dist/compiled/react-is/index.js +19 -0
  267. package/dist/node_modules/next/dist/lib/constants.cjs +365 -0
  268. package/dist/node_modules/next/dist/lib/constants.js +361 -0
  269. package/dist/node_modules/next/dist/lib/is-api-route.cjs +31 -0
  270. package/dist/node_modules/next/dist/lib/is-api-route.js +27 -0
  271. package/dist/node_modules/next/dist/lib/is-error.cjs +91 -0
  272. package/dist/node_modules/next/dist/lib/is-error.js +87 -0
  273. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +115 -0
  274. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +111 -0
  275. package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +39 -0
  276. package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +35 -0
  277. package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +101 -0
  278. package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +97 -0
  279. package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +31 -0
  280. package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +27 -0
  281. package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +37 -0
  282. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +33 -0
  283. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +36 -0
  284. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +32 -0
  285. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +41 -0
  286. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +37 -0
  287. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +70 -0
  288. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +66 -0
  289. package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +34 -0
  290. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +30 -0
  291. package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +54 -0
  292. package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +50 -0
  293. package/dist/node_modules/next/dist/shared/lib/mitt.cjs +58 -0
  294. package/dist/node_modules/next/dist/shared/lib/mitt.js +54 -0
  295. package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +36 -0
  296. package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +32 -0
  297. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +36 -0
  298. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +32 -0
  299. package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +37 -0
  300. package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +33 -0
  301. package/dist/node_modules/next/dist/shared/lib/router/router.cjs +1814 -0
  302. package/dist/node_modules/next/dist/shared/lib/router/router.js +1810 -0
  303. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +46 -0
  304. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +42 -0
  305. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +37 -0
  306. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +33 -0
  307. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +37 -0
  308. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +33 -0
  309. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +65 -0
  310. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
  311. package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +50 -0
  312. package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +46 -0
  313. package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +60 -0
  314. package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +56 -0
  315. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +47 -0
  316. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +43 -0
  317. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +103 -0
  318. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +99 -0
  319. package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +32 -0
  320. package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +28 -0
  321. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +208 -0
  322. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +204 -0
  323. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +71 -0
  324. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +67 -0
  325. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +94 -0
  326. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
  327. package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +29 -0
  328. package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +25 -0
  329. package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +43 -0
  330. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +39 -0
  331. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +119 -0
  332. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +115 -0
  333. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +71 -0
  334. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +67 -0
  335. package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +68 -0
  336. package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +64 -0
  337. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +43 -0
  338. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +39 -0
  339. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +44 -0
  340. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +40 -0
  341. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +37 -0
  342. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +33 -0
  343. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +46 -0
  344. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +42 -0
  345. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +51 -0
  346. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +47 -0
  347. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +54 -0
  348. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +50 -0
  349. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +50 -0
  350. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +46 -0
  351. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +37 -0
  352. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +33 -0
  353. package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +66 -0
  354. package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +62 -0
  355. package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +303 -0
  356. package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +299 -0
  357. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +90 -0
  358. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +86 -0
  359. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +56 -0
  360. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +52 -0
  361. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +39 -0
  362. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +35 -0
  363. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +140 -0
  364. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +136 -0
  365. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +127 -0
  366. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +123 -0
  367. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +63 -0
  368. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +59 -0
  369. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +272 -0
  370. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +268 -0
  371. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +256 -0
  372. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +252 -0
  373. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +36 -0
  374. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +32 -0
  375. package/dist/node_modules/next/dist/shared/lib/segment.cjs +103 -0
  376. package/dist/node_modules/next/dist/shared/lib/segment.js +99 -0
  377. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +38 -0
  378. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +34 -0
  379. package/dist/node_modules/next/dist/shared/lib/utils.cjs +204 -0
  380. package/dist/node_modules/next/dist/shared/lib/utils.js +200 -0
  381. package/dist/node_modules/next/router.cjs +17 -0
  382. package/dist/node_modules/next/router.js +13 -0
  383. package/package.json +6 -6
@@ -1,60 +1,29 @@
1
1
  'use client';
2
- import { jsx } from 'react/jsx-runtime';
3
- import { usePathname, useSearchParams, useRouter } from 'next/navigation';
4
- import { useState, useEffect, createContext, useContext } from 'react';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { usePathname, useSearchParams } from 'next/navigation';
4
+ import { useRef, createContext, Suspense, useEffect } from 'react';
5
5
 
6
6
  const NavigationHistoryContext = createContext(null);
7
7
  function NavigationHistoryProvider({ children }) {
8
+ const historyRef = useRef([]);
9
+ return /* @__PURE__ */ jsxs(NavigationHistoryContext.Provider, { value: { history: historyRef.current }, children: [
10
+ /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(HistoryTracker, { historyRef }) }),
11
+ children
12
+ ] });
13
+ }
14
+ function HistoryTracker({ historyRef }) {
8
15
  const pathname = usePathname();
9
16
  const searchParams = useSearchParams();
10
- const [history, setHistory] = useState([]);
11
17
  useEffect(() => {
12
18
  const fullPath = searchParams?.size ? `${pathname}?${searchParams.toString()}` : pathname;
13
19
  if (fullPath) {
14
- setHistory((prev) => {
15
- if (prev.length > 0 && prev[prev.length - 1] === fullPath) {
16
- return prev;
17
- }
18
- return [...prev, fullPath];
19
- });
20
- }
21
- }, [pathname, searchParams]);
22
- return /* @__PURE__ */ jsx(NavigationHistoryContext.Provider, { value: { history }, children });
23
- }
24
- const QP_BACK_URL_NAME = "backUrl";
25
- function useNavigationHistory() {
26
- const context = useContext(NavigationHistoryContext);
27
- const router = useRouter();
28
- if (!context) {
29
- throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
30
- }
31
- const searchParams = useSearchParams();
32
- const { history } = context;
33
- const goBack = (fallback) => {
34
- const returnUrl = searchParams.get(QP_BACK_URL_NAME);
35
- if (returnUrl) {
36
- router.push(returnUrl);
37
- return;
38
- }
39
- if (history.length <= 1) {
40
- router.push(fallback ?? "/");
41
- return;
42
- }
43
- const previousRoute = history[history.length - 2];
44
- const currentRoute = history[history.length - 1];
45
- if (history.length >= 3 && history[history.length - 3] === currentRoute) {
46
- router.push(fallback ?? "/");
47
- return;
20
+ const currentHistory = historyRef.current;
21
+ if (currentHistory.length > 0 && currentHistory[currentHistory.length - 1] === fullPath)
22
+ return;
23
+ historyRef.current = [...currentHistory, fullPath];
48
24
  }
49
- router.push(previousRoute ?? "/");
50
- };
51
- return {
52
- history,
53
- goBack,
54
- currentRoute: history.length > 0 ? history[history.length - 1] : null,
55
- hasPreviousRoute: history.length > 1,
56
- getPreviousRoute: () => history.length >= 2 ? history[history.length - 2] : null
57
- };
25
+ }, [pathname, searchParams, historyRef]);
26
+ return null;
58
27
  }
59
28
 
60
- export { NavigationHistoryProvider, QP_BACK_URL_NAME, useNavigationHistory };
29
+ export { NavigationHistoryContext, NavigationHistoryProvider };
@@ -3,14 +3,14 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const jsxRuntime = require('react/jsx-runtime');
6
+ const require$$2 = require('react/jsx-runtime');
7
7
  const React = require('react');
8
8
 
9
9
  const PageData = React.createContext(void 0);
10
10
  const PageDataProvider = ({
11
11
  value,
12
12
  children
13
- }) => /* @__PURE__ */ jsxRuntime.jsx(PageData.Provider, { value, children });
13
+ }) => /* @__PURE__ */ require$$2.jsx(PageData.Provider, { value, children });
14
14
  const usePageData = () => {
15
15
  const data = React.useContext(PageData);
16
16
  if (data === void 0) throw new Error("Out of context: usePageData");
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const jsxRuntime = require('react/jsx-runtime');
6
+ const require$$2 = require('react/jsx-runtime');
7
7
  const core = require('@mantine/core');
8
8
  const reactHookForm = require('react-hook-form');
9
9
 
@@ -14,7 +14,7 @@ const Form = ({
14
14
  onSubmitError,
15
15
  ...rest
16
16
  }) => {
17
- return /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.FormProvider, { ...methods, children: /* @__PURE__ */ jsxRuntime.jsx(
17
+ return /* @__PURE__ */ require$$2.jsx(reactHookForm.FormProvider, { ...methods, children: /* @__PURE__ */ require$$2.jsx(
18
18
  core.Box,
19
19
  {
20
20
  component: "form",
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const jsxRuntime = require('react/jsx-runtime');
6
+ const require$$2 = require('react/jsx-runtime');
7
7
  const core = require('@mantine/core');
8
8
  const reactHookForm = require('react-hook-form');
9
9
 
@@ -15,7 +15,7 @@ const FormButtonSubmit = ({
15
15
  const {
16
16
  formState: { isSubmitting, isSubmitSuccessful }
17
17
  } = reactHookForm.useFormContext();
18
- return /* @__PURE__ */ jsxRuntime.jsx(
18
+ return /* @__PURE__ */ require$$2.jsx(
19
19
  core.Button,
20
20
  {
21
21
  disabled: disabled ?? (isSubmitSuccessful && disabledWhenSuccess),
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const core = require('@mantine/core');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormCheckbox = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormCheckbox = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  core.Checkbox,
11
11
  {
12
12
  ...field,
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const require$$2 = require('react/jsx-runtime');
6
+ const index = require('../../components/MyCheckboxGroup/index.cjs');
7
+ const withController = require('../../hocs/withController.cjs');
8
+
9
+ const FormCheckboxGroup = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
+ index.MyCheckboxGroup,
11
+ {
12
+ ...field,
13
+ ...props
14
+ }
15
+ ));
16
+
17
+ exports.FormCheckboxGroup = FormCheckboxGroup;
@@ -0,0 +1,13 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { MyCheckboxGroup } from '../../components/MyCheckboxGroup/index.js';
3
+ import { withController } from '../../hocs/withController.js';
4
+
5
+ const FormCheckboxGroup = withController(({ field, props }) => /* @__PURE__ */ jsx(
6
+ MyCheckboxGroup,
7
+ {
8
+ ...field,
9
+ ...props
10
+ }
11
+ ));
12
+
13
+ export { FormCheckboxGroup };
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyDateInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormDateInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormDateInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyDateInput,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyDatePickerInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormDatePickerInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormDatePickerInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyDatePickerInput,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyDateTimePicker/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormDateTimePicker = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormDateTimePicker = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyDateTimePicker,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyMonthPickerInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormMonthPickerInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormMonthPickerInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyMonthPickerInput,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyMultiSelect/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormMultiSelect = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormMultiSelect = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyMultiSelect,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyNumberInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormNumberInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormNumberInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyNumberInput,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyRadioGroup/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormRadioGroup = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormRadioGroup = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyRadioGroup,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MySelect/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormSelect = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormSelect = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MySelect,
11
11
  {
12
12
  ...field,
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/SelectInfinity/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
9
  const FormInfinitySelect = withController.withController(({ field, props }) => {
10
- return /* @__PURE__ */ jsxRuntime.jsx(
10
+ return /* @__PURE__ */ require$$2.jsx(
11
11
  index.InfinitySelect,
12
12
  {
13
13
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyTextInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormTextInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormTextInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyTextInput,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyTextarea/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormTextarea = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormTextarea = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyTextarea,
11
11
  {
12
12
  ...field,
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const jsxRuntime = require('react/jsx-runtime');
5
+ const require$$2 = require('react/jsx-runtime');
6
6
  const index = require('../../components/MyTimeInput/index.cjs');
7
7
  const withController = require('../../hocs/withController.cjs');
8
8
 
9
- const FormTimeInput = withController.withController(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
9
+ const FormTimeInput = withController.withController(({ field, props }) => /* @__PURE__ */ require$$2.jsx(
10
10
  index.MyTimeInput,
11
11
  {
12
12
  ...field,
@@ -3,14 +3,14 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const jsxRuntime = require('react/jsx-runtime');
6
+ const require$$2 = require('react/jsx-runtime');
7
7
  const reactHookForm = require('react-hook-form');
8
8
  const zodValidator = require('../form/utils/zodValidator.cjs');
9
9
 
10
10
  const withController = (WrappedComponent, getControllerProps) => {
11
11
  const FormField = (props) => {
12
12
  const { validate, name = "", placeholder, label, description, ...withFormRestProps } = props;
13
- return /* @__PURE__ */ jsxRuntime.jsx(
13
+ return /* @__PURE__ */ require$$2.jsx(
14
14
  reactHookForm.Controller,
15
15
  {
16
16
  name,
@@ -44,7 +44,7 @@ const withController = (WrappedComponent, getControllerProps) => {
44
44
  },
45
45
  ...withFormRestProps
46
46
  };
47
- return /* @__PURE__ */ jsxRuntime.jsx(WrappedComponent, { ...fieldProps });
47
+ return /* @__PURE__ */ require$$2.jsx(WrappedComponent, { ...fieldProps });
48
48
  }
49
49
  }
50
50
  );
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
- const jsxRuntime = require('react/jsx-runtime');
6
+ const require$$2 = require('react/jsx-runtime');
7
7
  const React = require('react');
8
8
 
9
9
  const withModalManager = (WrappedComponent) => {
@@ -18,7 +18,7 @@ const withModalManager = (WrappedComponent) => {
18
18
  if (props.modalProps.opened) setTimeout(() => setIsOpen(true), 0);
19
19
  else onClose();
20
20
  }, [props.modalProps.opened]);
21
- return /* @__PURE__ */ jsxRuntime.jsx(
21
+ return /* @__PURE__ */ require$$2.jsx(
22
22
  WrappedComponent,
23
23
  {
24
24
  ...props,
package/dist/index.cjs CHANGED
@@ -19,10 +19,12 @@ const index$b = require('./components/SelectInfinity/index.cjs');
19
19
  const index$c = require('./components/MyMultiSelect/index.cjs');
20
20
  const index$d = require('./components/MyMonthPickerInput/index.cjs');
21
21
  const index$e = require('./components/MyDateInput/index.cjs');
22
+ const index$f = require('./components/MyCheckboxGroup/index.cjs');
22
23
  const httpStatus = require('./consts/http-status.cjs');
23
24
  const revalidate = require('./consts/revalidate.cjs');
24
- const index$f = require('./contexts/NavigationHistoryContext/index.cjs');
25
- const index$g = require('./contexts/PageDataContext/index.cjs');
25
+ const index$g = require('./contexts/NavigationHistoryContext/index.cjs');
26
+ const hook = require('./contexts/NavigationHistoryContext/hook.cjs');
27
+ const index$h = require('./contexts/PageDataContext/index.cjs');
26
28
  const Form = require('./form/Form.cjs');
27
29
  const FormButtonSubmit = require('./form/FormButtonSubmit.cjs');
28
30
  const zodValidator = require('./form/utils/zodValidator.cjs');
@@ -41,6 +43,7 @@ const FormTimeInput = require('./form/base/FormTimeInput.cjs');
41
43
  const FormMultiSelect = require('./form/base/FormMultiSelect.cjs');
42
44
  const FormMonthPickerInput = require('./form/base/FormMonthPickerInput.cjs');
43
45
  const FormDateInput = require('./form/base/FormDateInput.cjs');
46
+ const FormCheckboxGroup = require('./form/base/FormCheckboxGroup.cjs');
44
47
  const withController = require('./hocs/withController.cjs');
45
48
  const withModalManager = require('./hocs/withModalManager.cjs');
46
49
  const useBreakpoint = require('./hooks/useBreakpoint.cjs');
@@ -80,13 +83,14 @@ exports.InfinitySelect = index$b.InfinitySelect;
80
83
  exports.MyMultiSelect = index$c.MyMultiSelect;
81
84
  exports.MyMonthPickerInput = index$d.MyMonthPickerInput;
82
85
  exports.MyDateInput = index$e.MyDateInput;
86
+ exports.MyCheckboxGroup = index$f.MyCheckboxGroup;
83
87
  exports.HttpStatus = httpStatus.HttpStatus;
84
88
  exports.Revalidate = revalidate.Revalidate;
85
- exports.NavigationHistoryProvider = index$f.NavigationHistoryProvider;
86
- exports.QP_BACK_URL_NAME = index$f.QP_BACK_URL_NAME;
87
- exports.useNavigationHistory = index$f.useNavigationHistory;
88
- exports.PageDataProvider = index$g.PageDataProvider;
89
- exports.usePageData = index$g.usePageData;
89
+ exports.NavigationHistoryProvider = index$g.NavigationHistoryProvider;
90
+ exports.QP_BACK_URL_NAME = hook.QP_BACK_URL_NAME;
91
+ exports.useNavigationHistory = hook.useNavigationHistory;
92
+ exports.PageDataProvider = index$h.PageDataProvider;
93
+ exports.usePageData = index$h.usePageData;
90
94
  exports.Form = Form.Form;
91
95
  exports.FormButtonSubmit = FormButtonSubmit.FormButtonSubmit;
92
96
  exports.zodValidator = zodValidator.zodValidator;
@@ -107,6 +111,7 @@ exports.timeInputToNumber = FormTimeInput.timeInputToNumber;
107
111
  exports.FormMultiSelect = FormMultiSelect.FormMultiSelect;
108
112
  exports.FormMonthPickerInput = FormMonthPickerInput.FormMonthPickerInput;
109
113
  exports.FormDateInput = FormDateInput.FormDateInput;
114
+ exports.FormCheckboxGroup = FormCheckboxGroup.FormCheckboxGroup;
110
115
  exports.withController = withController.withController;
111
116
  exports.withModalManager = withModalManager.withModalManager;
112
117
  exports.useBreakpoint = useBreakpoint.useBreakpoint;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { BoxProps } from '@mantine/core';
3
3
  import { ButtonProps } from '@mantine/core';
4
4
  import { CenterProps } from '@mantine/core';
5
5
  import { ChangeEventHandler } from 'react';
6
+ import { CheckboxGroupProps } from '@mantine/core';
6
7
  import { CheckboxProps } from '@mantine/core';
7
8
  import { ComboboxItem } from '@mantine/core';
8
9
  import { ComboboxProps } from '@mantine/core';
@@ -123,6 +124,12 @@ export declare const FormCheckbox: FC<CheckboxProps & WithControllerProps & {
123
124
  onValueChange?: ChangeEventHandler<HTMLInputElement> | undefined;
124
125
  }>;
125
126
 
127
+ export declare const FormCheckboxGroup: FC<MyCheckboxGroupProps & WithControllerProps & {
128
+ onValueChange?: ((value: string[]) => void) | undefined;
129
+ }>;
130
+
131
+ export declare type FormCheckboxGroupProps = MyCheckboxGroupProps & WithControllerProps;
132
+
126
133
  export declare type FormCheckboxProps = CheckboxProps & WithControllerProps;
127
134
 
128
135
  export declare const FormDateInput: FC<WithControllerProps & MyDateInputProps & {
@@ -380,6 +387,15 @@ export declare type ModalManagerWrapperProps<T extends object = object> = T & {
380
387
  removeModal: () => void;
381
388
  };
382
389
 
390
+ export declare const MyCheckboxGroup: ({ options, orientation, gap, ...checkboxGroupProps }: MyCheckboxGroupProps) => JSX.Element;
391
+
392
+ export declare interface MyCheckboxGroupProps extends Omit<CheckboxGroupProps, 'children'> {
393
+ options: CheckboxProps[];
394
+ orientation?: 'horizontal' | 'vertical';
395
+ gap?: MantineSpacing;
396
+ disabled?: boolean;
397
+ }
398
+
383
399
  export declare const MyDateInput: (props: MyDateInputProps) => JSX.Element;
384
400
 
385
401
  export declare interface MyDateInputProps extends DateInputProps {
@@ -464,10 +480,6 @@ declare interface NavigationHistoryHook {
464
480
  getPreviousRoute: () => string | null;
465
481
  }
466
482
 
467
- /**
468
- * Proveedor de historial de navegación
469
- * Solo se encarga de registrar las rutas visitadas
470
- */
471
483
  export declare function NavigationHistoryProvider({ children }: NavigationHistoryProviderProps): JSX.Element;
472
484
 
473
485
  declare interface NavigationHistoryProviderProps {
@@ -599,10 +611,6 @@ export declare const useBreakpoint: (breakpoint: keyof typeof breakpointsWithPx)
599
611
 
600
612
  export declare const useFetchNextPageOnScroll: ({ infinity, scrollRef, disabled, }: FetchNextPageOnScrollOptions) => void;
601
613
 
602
- /**
603
- * Hook para usar el historial de navegación
604
- * @returns {NavigationHistoryHook} Objeto con el historial y la función goBack
605
- */
606
614
  export declare function useNavigationHistory(): NavigationHistoryHook;
607
615
 
608
616
  export declare const useOnScrollProgress: ({ triggerPercentage, callback, scrollRef, disabled, }: OnScrollProgressOptions) => void;
package/dist/index.js CHANGED
@@ -15,9 +15,11 @@ export { InfinitySelect } from './components/SelectInfinity/index.js';
15
15
  export { MyMultiSelect } from './components/MyMultiSelect/index.js';
16
16
  export { MyMonthPickerInput } from './components/MyMonthPickerInput/index.js';
17
17
  export { MyDateInput } from './components/MyDateInput/index.js';
18
+ export { MyCheckboxGroup } from './components/MyCheckboxGroup/index.js';
18
19
  export { HttpStatus } from './consts/http-status.js';
19
20
  export { Revalidate } from './consts/revalidate.js';
20
- export { NavigationHistoryProvider, QP_BACK_URL_NAME, useNavigationHistory } from './contexts/NavigationHistoryContext/index.js';
21
+ export { NavigationHistoryProvider } from './contexts/NavigationHistoryContext/index.js';
22
+ export { QP_BACK_URL_NAME, useNavigationHistory } from './contexts/NavigationHistoryContext/hook.js';
21
23
  export { PageDataProvider, usePageData } from './contexts/PageDataContext/index.js';
22
24
  export { Form } from './form/Form.js';
23
25
  export { FormButtonSubmit } from './form/FormButtonSubmit.js';
@@ -37,6 +39,7 @@ export { FormTimeInput, numberToTimeInput, timeInputToNumber } from './form/base
37
39
  export { FormMultiSelect } from './form/base/FormMultiSelect.js';
38
40
  export { FormMonthPickerInput } from './form/base/FormMonthPickerInput.js';
39
41
  export { FormDateInput } from './form/base/FormDateInput.js';
42
+ export { FormCheckboxGroup } from './form/base/FormCheckboxGroup.js';
40
43
  export { withController } from './hocs/withController.js';
41
44
  export { withModalManager } from './hocs/withModalManager.js';
42
45
  export { useBreakpoint } from './hooks/useBreakpoint.js';
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const _interop_require_default = require('../../../../_virtual/_interop_require_default.cjs');
6
+
7
+ var hasRequired_interop_require_default;
8
+
9
+ function require_interop_require_default () {
10
+ if (hasRequired_interop_require_default) return _interop_require_default.__exports;
11
+ hasRequired_interop_require_default = 1;
12
+
13
+ function _interop_require_default$1(obj) {
14
+ return obj && obj.__esModule ? obj : { default: obj };
15
+ }
16
+ _interop_require_default.__exports._ = _interop_require_default$1;
17
+ return _interop_require_default.__exports;
18
+ }
19
+
20
+ exports.__require = require_interop_require_default;
@@ -0,0 +1,16 @@
1
+ import { __exports as _interop_require_default } from '../../../../_virtual/_interop_require_default.js';
2
+
3
+ var hasRequired_interop_require_default;
4
+
5
+ function require_interop_require_default () {
6
+ if (hasRequired_interop_require_default) return _interop_require_default;
7
+ hasRequired_interop_require_default = 1;
8
+
9
+ function _interop_require_default$1(obj) {
10
+ return obj && obj.__esModule ? obj : { default: obj };
11
+ }
12
+ _interop_require_default._ = _interop_require_default$1;
13
+ return _interop_require_default;
14
+ }
15
+
16
+ export { require_interop_require_default as __require };
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const _interop_require_wildcard = require('../../../../_virtual/_interop_require_wildcard.cjs');
6
+
7
+ var hasRequired_interop_require_wildcard;
8
+
9
+ function require_interop_require_wildcard () {
10
+ if (hasRequired_interop_require_wildcard) return _interop_require_wildcard.__exports;
11
+ hasRequired_interop_require_wildcard = 1;
12
+
13
+ function _getRequireWildcardCache(nodeInterop) {
14
+ if (typeof WeakMap !== "function") return null;
15
+
16
+ var cacheBabelInterop = new WeakMap();
17
+ var cacheNodeInterop = new WeakMap();
18
+
19
+ return (_getRequireWildcardCache = function(nodeInterop) {
20
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
21
+ })(nodeInterop);
22
+ }
23
+ function _interop_require_wildcard$1(obj, nodeInterop) {
24
+ if (!nodeInterop && obj && obj.__esModule) return obj;
25
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
26
+
27
+ var cache = _getRequireWildcardCache(nodeInterop);
28
+
29
+ if (cache && cache.has(obj)) return cache.get(obj);
30
+
31
+ var newObj = { __proto__: null };
32
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
33
+
34
+ for (var key in obj) {
35
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
36
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
37
+ if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
38
+ else newObj[key] = obj[key];
39
+ }
40
+ }
41
+
42
+ newObj.default = obj;
43
+
44
+ if (cache) cache.set(obj, newObj);
45
+
46
+ return newObj;
47
+ }
48
+ _interop_require_wildcard.__exports._ = _interop_require_wildcard$1;
49
+ return _interop_require_wildcard.__exports;
50
+ }
51
+
52
+ exports.__require = require_interop_require_wildcard;