lkd-web-kit 0.0.8 → 0.0.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.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -1
- package/dist/_virtual/_interop_require_default.cjs +1 -0
- package/dist/_virtual/_interop_require_default.js +4 -1
- package/dist/_virtual/_interop_require_wildcard.cjs +1 -0
- package/dist/_virtual/_interop_require_wildcard.js +4 -1
- package/dist/_virtual/action-async-storage-instance.cjs +1 -0
- package/dist/_virtual/action-async-storage-instance.js +4 -1
- package/dist/_virtual/action-async-storage.external.cjs +1 -0
- package/dist/_virtual/action-async-storage.external.js +4 -1
- package/dist/_virtual/add-base-path.cjs +1 -0
- package/dist/_virtual/add-base-path.js +4 -1
- package/dist/_virtual/add-locale.cjs +1 -0
- package/dist/_virtual/add-locale.js +4 -1
- package/dist/_virtual/add-locale2.cjs +1 -0
- package/dist/_virtual/add-locale2.js +4 -1
- package/dist/_virtual/add-path-prefix.cjs +1 -0
- package/dist/_virtual/add-path-prefix.js +4 -1
- package/dist/_virtual/app-paths.cjs +1 -0
- package/dist/_virtual/app-paths.js +4 -1
- package/dist/_virtual/app-router-context.shared-runtime.cjs +1 -0
- package/dist/_virtual/app-router-context.shared-runtime.js +4 -1
- package/dist/_virtual/app-router-headers.cjs +1 -0
- package/dist/_virtual/app-router-headers.js +4 -1
- package/dist/_virtual/async-local-storage.cjs +1 -0
- package/dist/_virtual/async-local-storage.js +4 -1
- package/dist/_virtual/bailout-to-client-rendering.cjs +1 -0
- package/dist/_virtual/bailout-to-client-rendering.js +4 -1
- package/dist/_virtual/bailout-to-csr.cjs +1 -0
- package/dist/_virtual/bailout-to-csr.js +4 -1
- package/dist/_virtual/constants.cjs +1 -0
- package/dist/_virtual/constants.js +4 -1
- package/dist/_virtual/detect-domain-locale.cjs +1 -0
- package/dist/_virtual/detect-domain-locale.js +4 -1
- package/dist/_virtual/detect-domain-locale2.cjs +1 -0
- package/dist/_virtual/detect-domain-locale2.js +4 -1
- package/dist/_virtual/dynamic-rendering-utils.cjs +1 -0
- package/dist/_virtual/dynamic-rendering-utils.js +4 -1
- package/dist/_virtual/dynamic-rendering.cjs +1 -0
- package/dist/_virtual/dynamic-rendering.js +4 -1
- package/dist/_virtual/ensure-leading-slash.cjs +1 -0
- package/dist/_virtual/ensure-leading-slash.js +4 -1
- package/dist/_virtual/error-once.cjs +1 -0
- package/dist/_virtual/error-once.js +4 -1
- package/dist/_virtual/escape-regexp.cjs +1 -0
- package/dist/_virtual/escape-regexp.js +4 -1
- package/dist/_virtual/forbidden.cjs +1 -0
- package/dist/_virtual/forbidden.js +4 -1
- package/dist/_virtual/format-url.cjs +1 -0
- package/dist/_virtual/format-url.js +4 -1
- package/dist/_virtual/get-domain-locale.cjs +1 -0
- package/dist/_virtual/get-domain-locale.js +4 -1
- package/dist/_virtual/get-segment-value.cjs +1 -0
- package/dist/_virtual/get-segment-value.js +4 -1
- package/dist/_virtual/has-base-path.cjs +1 -0
- package/dist/_virtual/has-base-path.js +4 -1
- package/dist/_virtual/hooks-client-context.shared-runtime.cjs +1 -0
- package/dist/_virtual/hooks-client-context.shared-runtime.js +4 -1
- package/dist/_virtual/hooks-server-context.cjs +1 -0
- package/dist/_virtual/hooks-server-context.js +4 -1
- package/dist/_virtual/http-access-fallback.cjs +1 -0
- package/dist/_virtual/http-access-fallback.js +4 -1
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -1
- package/dist/_virtual/interception-routes.cjs +1 -0
- package/dist/_virtual/interception-routes.js +4 -1
- package/dist/_virtual/interpolate-as.cjs +1 -0
- package/dist/_virtual/interpolate-as.js +4 -1
- package/dist/_virtual/is-dynamic.cjs +1 -0
- package/dist/_virtual/is-dynamic.js +4 -1
- package/dist/_virtual/is-local-url.cjs +1 -0
- package/dist/_virtual/is-local-url.js +4 -1
- package/dist/_virtual/is-next-router-error.cjs +1 -0
- package/dist/_virtual/is-next-router-error.js +4 -1
- package/dist/_virtual/is-postpone.cjs +1 -0
- package/dist/_virtual/is-postpone.js +4 -1
- package/dist/_virtual/link.cjs +1 -0
- package/dist/_virtual/link.js +7 -1
- package/dist/_virtual/link2.cjs +1 -0
- package/dist/_virtual/link2.js +4 -1
- package/dist/_virtual/metadata-constants.cjs +1 -0
- package/dist/_virtual/metadata-constants.js +4 -1
- package/dist/_virtual/navigation.cjs +1 -0
- package/dist/_virtual/navigation.js +5 -1
- package/dist/_virtual/navigation.react-server.cjs +1 -0
- package/dist/_virtual/navigation.react-server.js +4 -1
- package/dist/_virtual/navigation2.cjs +1 -0
- package/dist/_virtual/navigation2.js +4 -1
- package/dist/_virtual/normalize-locale-path.cjs +1 -0
- package/dist/_virtual/normalize-locale-path.js +4 -1
- package/dist/_virtual/normalize-locale-path2.cjs +1 -0
- package/dist/_virtual/normalize-locale-path2.js +4 -1
- package/dist/_virtual/normalize-trailing-slash.cjs +1 -0
- package/dist/_virtual/normalize-trailing-slash.js +4 -1
- package/dist/_virtual/not-found.cjs +1 -0
- package/dist/_virtual/not-found.js +4 -1
- package/dist/_virtual/omit.cjs +1 -0
- package/dist/_virtual/omit.js +4 -1
- package/dist/_virtual/parse-path.cjs +1 -0
- package/dist/_virtual/parse-path.js +4 -1
- package/dist/_virtual/path-has-prefix.cjs +1 -0
- package/dist/_virtual/path-has-prefix.js +4 -1
- package/dist/_virtual/querystring.cjs +1 -0
- package/dist/_virtual/querystring.js +4 -1
- package/dist/_virtual/redirect-error.cjs +1 -0
- package/dist/_virtual/redirect-error.js +4 -1
- package/dist/_virtual/redirect-status-code.cjs +1 -0
- package/dist/_virtual/redirect-status-code.js +4 -1
- package/dist/_virtual/redirect.cjs +1 -0
- package/dist/_virtual/redirect.js +4 -1
- package/dist/_virtual/remove-trailing-slash.cjs +1 -0
- package/dist/_virtual/remove-trailing-slash.js +4 -1
- package/dist/_virtual/request-idle-callback.cjs +1 -0
- package/dist/_virtual/request-idle-callback.js +4 -1
- package/dist/_virtual/resolve-href.cjs +1 -0
- package/dist/_virtual/resolve-href.js +4 -1
- package/dist/_virtual/route-matcher.cjs +1 -0
- package/dist/_virtual/route-matcher.js +4 -1
- package/dist/_virtual/route-regex.cjs +1 -0
- package/dist/_virtual/route-regex.js +4 -1
- package/dist/_virtual/router-context.shared-runtime.cjs +1 -0
- package/dist/_virtual/router-context.shared-runtime.js +4 -1
- package/dist/_virtual/scheduler.cjs +1 -0
- package/dist/_virtual/scheduler.js +4 -1
- package/dist/_virtual/segment.cjs +1 -0
- package/dist/_virtual/segment.js +4 -1
- package/dist/_virtual/server-inserted-html.shared-runtime.cjs +1 -0
- package/dist/_virtual/server-inserted-html.shared-runtime.js +4 -1
- package/dist/_virtual/sorted-routes.cjs +1 -0
- package/dist/_virtual/sorted-routes.js +4 -1
- package/dist/_virtual/static-generation-bailout.cjs +1 -0
- package/dist/_virtual/static-generation-bailout.js +4 -1
- package/dist/_virtual/unauthorized.cjs +1 -0
- package/dist/_virtual/unauthorized.js +4 -1
- package/dist/_virtual/unstable-rethrow.browser.cjs +1 -0
- package/dist/_virtual/unstable-rethrow.browser.js +4 -1
- package/dist/_virtual/unstable-rethrow.cjs +1 -0
- package/dist/_virtual/unstable-rethrow.js +4 -1
- package/dist/_virtual/unstable-rethrow.server.cjs +1 -0
- package/dist/_virtual/unstable-rethrow.server.js +4 -1
- package/dist/_virtual/use-intersection.cjs +1 -0
- package/dist/_virtual/use-intersection.js +4 -1
- package/dist/_virtual/use-merged-ref.cjs +1 -0
- package/dist/_virtual/use-merged-ref.js +4 -1
- package/dist/_virtual/utils.cjs +1 -0
- package/dist/_virtual/utils.js +4 -1
- package/dist/_virtual/work-async-storage-instance.cjs +1 -0
- package/dist/_virtual/work-async-storage-instance.js +4 -1
- package/dist/_virtual/work-async-storage.external.cjs +1 -0
- package/dist/_virtual/work-async-storage.external.js +4 -1
- package/dist/_virtual/work-unit-async-storage-instance.cjs +1 -0
- package/dist/_virtual/work-unit-async-storage-instance.js +4 -1
- package/dist/_virtual/work-unit-async-storage.external.cjs +1 -0
- package/dist/_virtual/work-unit-async-storage.external.js +4 -1
- package/dist/components/EmptyState/index.cjs +1 -0
- package/dist/components/EmptyState/index.js +36 -1
- package/dist/components/Icon.cjs +1 -0
- package/dist/components/Icon.js +54 -1
- package/dist/components/InfinityLoader/index.cjs +1 -0
- package/dist/components/InfinityLoader/index.js +6 -1
- package/dist/components/NavItems.cjs +1 -0
- package/dist/components/NavItems.js +36 -1
- package/dist/components/SelectInfinity/index.cjs +1 -0
- package/dist/components/SelectInfinity/index.js +106 -1
- package/dist/consts/http-status.cjs +1 -0
- package/dist/consts/http-status.js +4 -1
- package/dist/consts/revalidate.cjs +1 -0
- package/dist/consts/revalidate.js +4 -1
- package/dist/contexts/NavigationHistoryContext/index.cjs +1 -0
- package/dist/contexts/NavigationHistoryContext/index.js +47 -1
- package/dist/contexts/PageDataContext/index.cjs +1 -0
- package/dist/contexts/PageDataContext/index.js +15 -1
- package/dist/form/Form.cjs +1 -0
- package/dist/form/Form.js +21 -1
- package/dist/form/FormButtonSubmit.cjs +1 -0
- package/dist/form/FormButtonSubmit.js +18 -1
- package/dist/form/utils/nullableInput.cjs +1 -0
- package/dist/form/utils/nullableInput.js +9 -1
- package/dist/form/utils/zodValidator.cjs +1 -0
- package/dist/form/utils/zodValidator.js +9 -1
- package/dist/hocs/withForm.cjs +1 -0
- package/dist/hocs/withForm.js +47 -1
- package/dist/hocs/withModalManager.cjs +1 -0
- package/dist/hocs/withModalManager.js +28 -1
- package/dist/hooks/useFetchNextPageOnScroll.cjs +1 -0
- package/dist/hooks/useFetchNextPageOnScroll.js +17 -1
- package/dist/hooks/useOnScrollProgress.cjs +1 -0
- package/dist/hooks/useOnScrollProgress.js +18 -1
- package/dist/index.cjs +1 -0
- package/dist/index.js +60 -1
- package/dist/mantine/breakpointsWithPx.cjs +1 -0
- package/dist/mantine/breakpointsWithPx.js +11 -1
- package/dist/mantine/toTailwindColors.cjs +1 -0
- package/dist/mantine/toTailwindColors.js +10 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +13 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +1 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +30 -1
- package/dist/node_modules/next/dist/client/add-base-path.cjs +1 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +24 -1
- package/dist/node_modules/next/dist/client/add-locale.cjs +1 -0
- package/dist/node_modules/next/dist/client/add-locale.js +25 -1
- package/dist/node_modules/next/dist/client/components/app-router-headers.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +76 -1
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.js +30 -1
- package/dist/node_modules/next/dist/client/components/forbidden.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/forbidden.js +34 -1
- package/dist/node_modules/next/dist/client/components/hooks-server-context.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +36 -1
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +63 -1
- package/dist/node_modules/next/dist/client/components/is-next-router-error.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js +24 -1
- package/dist/node_modules/next/dist/client/components/navigation.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.js +133 -1
- package/dist/node_modules/next/dist/client/components/navigation.react-server.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js +75 -1
- package/dist/node_modules/next/dist/client/components/not-found.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/not-found.js +28 -1
- package/dist/node_modules/next/dist/client/components/redirect-error.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-error.js +41 -1
- package/dist/node_modules/next/dist/client/components/redirect-status-code.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js +21 -1
- package/dist/node_modules/next/dist/client/components/redirect.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/redirect.js +80 -1
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +21 -1
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +36 -1
- package/dist/node_modules/next/dist/client/components/unauthorized.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/unauthorized.js +34 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +26 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +21 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.cjs +1 -0
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +30 -1
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +1 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +25 -1
- package/dist/node_modules/next/dist/client/get-domain-locale.cjs +1 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js +33 -1
- package/dist/node_modules/next/dist/client/has-base-path.cjs +1 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +23 -1
- package/dist/node_modules/next/dist/client/link.cjs +8 -0
- package/dist/node_modules/next/dist/client/link.js +277 -5
- package/dist/node_modules/next/dist/client/normalize-locale-path.cjs +1 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +23 -1
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +1 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +26 -1
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +1 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +40 -1
- package/dist/node_modules/next/dist/client/resolve-href.cjs +1 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +67 -1
- package/dist/node_modules/next/dist/client/use-intersection.cjs +1 -0
- package/dist/node_modules/next/dist/client/use-intersection.js +85 -1
- package/dist/node_modules/next/dist/client/use-merged-ref.cjs +1 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js +44 -1
- package/dist/node_modules/next/dist/lib/constants.cjs +1 -0
- package/dist/node_modules/next/dist/lib/constants.js +285 -1
- package/dist/node_modules/next/dist/lib/metadata/metadata-constants.cjs +1 -0
- package/dist/node_modules/next/dist/lib/metadata/metadata-constants.js +30 -1
- package/dist/node_modules/next/dist/lib/scheduler.cjs +1 -0
- package/dist/node_modules/next/dist/lib/scheduler.js +45 -1
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +19 -1
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +19 -1
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +65 -1
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.cjs +4 -0
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +346 -4
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +19 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +19 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +19 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.cjs +1 -0
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +102 -1
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.cjs +1 -0
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +62 -1
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.cjs +1 -0
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +21 -1
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +41 -1
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +21 -1
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +33 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +28 -1
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +37 -1
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +35 -1
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +20 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +25 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +25 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +39 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +57 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +90 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +49 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +22 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +29 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +23 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +29 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +25 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +64 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +20 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +42 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +167 -1
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +154 -1
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +21 -1
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +49 -1
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +34 -1
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -1
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +1 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +166 -1
- package/dist/node_modules/next/link.cjs +1 -0
- package/dist/node_modules/next/link.js +8 -1
- package/dist/node_modules/next/navigation.cjs +1 -0
- package/dist/node_modules/next/navigation.js +8 -1
- package/dist/utils/array/groupBy.cjs +1 -0
- package/dist/utils/array/groupBy.js +34 -1
- package/dist/utils/array/shuffleArray.cjs +1 -0
- package/dist/utils/array/shuffleArray.js +13 -1
- package/dist/utils/formatBytes.cjs +1 -0
- package/dist/utils/formatBytes.js +8 -1
- package/dist/utils/isInfinityEmpty.cjs +1 -0
- package/dist/utils/isInfinityEmpty.js +4 -1
- package/dist/utils/ky/addBodyJsonHook.cjs +1 -0
- package/dist/utils/ky/addBodyJsonHook.js +5 -1
- package/dist/utils/ky/parseJson.cjs +1 -0
- package/dist/utils/ky/parseJson.js +6 -1
- package/dist/utils/newHref.cjs +1 -0
- package/dist/utils/newHref.js +20 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/_virtual/segment.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/_virtual/utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("clsx"),a=require("../Icon.cjs"),o={sm:48,md:60,lg:84},m=({label:t,action:s,icon:r,className:c,size:i="md",...l})=>e.jsxs("div",{className:n("justfiy-center flex flex-col items-center gap-1",c),...l,children:[e.jsx(a,{i:r,size:o[i],className:"text-gray-2"}),e.jsx("p",{className:"text-gray-6 text-sm font-semibold",children:t}),e.jsx("div",{children:s})]});exports.EmptyState=m;
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "clsx";
|
|
3
|
+
import a from "../Icon.js";
|
|
4
|
+
const n = {
|
|
5
|
+
sm: 48,
|
|
6
|
+
md: 60,
|
|
7
|
+
lg: 84
|
|
8
|
+
}, f = ({
|
|
9
|
+
label: t,
|
|
10
|
+
action: s,
|
|
11
|
+
icon: m,
|
|
12
|
+
className: r,
|
|
13
|
+
size: i = "md",
|
|
14
|
+
...c
|
|
15
|
+
}) => /* @__PURE__ */ o(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: l("justfiy-center flex flex-col items-center gap-1", r),
|
|
19
|
+
...c,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
i: m,
|
|
25
|
+
size: n[i],
|
|
26
|
+
className: "text-gray-2"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ e("p", { className: "text-gray-6 text-sm font-semibold", children: t }),
|
|
30
|
+
/* @__PURE__ */ e("div", { children: s })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
export {
|
|
35
|
+
f as EmptyState
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const d=require("react/jsx-runtime"),n=require("clsx"),o=({i:e,size:t="md",style:h,rotate:i,className:s,...r})=>d.jsx(e,{...typeof t=="number"?{height:t,width:t}:c[t],viewBox:"0 0 24 24",style:{...h,transform:`rotate(${i}deg)`},className:n("shrink-0",s),...r}),c={xs:{height:16,width:16},sm:{height:20,width:20},md:{height:24,width:24},lg:{height:28,width:28},xl:{height:32,width:32},"2xl":{height:40,width:40}};module.exports=o;
|
package/dist/components/Icon.js
CHANGED
|
@@ -1 +1,54 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import d from "clsx";
|
|
4
|
+
const n = ({
|
|
5
|
+
i: h,
|
|
6
|
+
size: t = "md",
|
|
7
|
+
style: e,
|
|
8
|
+
rotate: i,
|
|
9
|
+
className: o,
|
|
10
|
+
...r
|
|
11
|
+
}) => /* @__PURE__ */ s(
|
|
12
|
+
h,
|
|
13
|
+
{
|
|
14
|
+
...typeof t == "number" ? {
|
|
15
|
+
height: t,
|
|
16
|
+
width: t
|
|
17
|
+
} : m[t],
|
|
18
|
+
viewBox: "0 0 24 24",
|
|
19
|
+
style: {
|
|
20
|
+
...e,
|
|
21
|
+
transform: `rotate(${i}deg)`
|
|
22
|
+
},
|
|
23
|
+
className: d("shrink-0", o),
|
|
24
|
+
...r
|
|
25
|
+
}
|
|
26
|
+
), m = {
|
|
27
|
+
xs: {
|
|
28
|
+
height: 16,
|
|
29
|
+
width: 16
|
|
30
|
+
},
|
|
31
|
+
sm: {
|
|
32
|
+
height: 20,
|
|
33
|
+
width: 20
|
|
34
|
+
},
|
|
35
|
+
md: {
|
|
36
|
+
height: 24,
|
|
37
|
+
width: 24
|
|
38
|
+
},
|
|
39
|
+
lg: {
|
|
40
|
+
height: 28,
|
|
41
|
+
width: 28
|
|
42
|
+
},
|
|
43
|
+
xl: {
|
|
44
|
+
height: 32,
|
|
45
|
+
width: 32
|
|
46
|
+
},
|
|
47
|
+
"2xl": {
|
|
48
|
+
height: 40,
|
|
49
|
+
width: 40
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
n as default
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("@mantine/core"),a=({infinity:e,loaderProps:s,...o})=>r.jsx(t.Center,{...o,children:e.isFetching?r.jsx(t.Loader,{...s}):!e.hasNextPage&&(e.data?.pages.length??0)>1&&r.jsx("p",{children:"No hay más resultados"})});exports.InfinityLoader=a;
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Center as a, Loader as s } from "@mantine/core";
|
|
3
|
+
const m = ({ infinity: e, loaderProps: o, ...t }) => /* @__PURE__ */ r(a, { ...t, children: e.isFetching ? /* @__PURE__ */ r(s, { ...o }) : !e.hasNextPage && (e.data?.pages.length ?? 0) > 1 && /* @__PURE__ */ r("p", { children: "No hay más resultados" }) });
|
|
4
|
+
export {
|
|
5
|
+
m as InfinityLoader
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("@mantine/core"),s=require("../_virtual/link.cjs"),u=require("../_virtual/navigation.cjs"),l=({items:c})=>{const o=u.navigationExports.usePathname();return n.jsx(a.Stack,{gap:0,children:c.map(({href:t,isActive:r,...e})=>{if(t){const i=r??t.includes(o);return n.jsx(a.NavLink,{active:i,component:s,prefetch:!1,href:t,...e},e.label)}return n.jsx(a.NavLink,{active:r,component:"button",...e},e.label)})})};exports.NavItems=l;
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Stack as i, NavLink as a } from "@mantine/core";
|
|
4
|
+
import p from "../_virtual/link.js";
|
|
5
|
+
import { n as l } from "../_virtual/navigation.js";
|
|
6
|
+
const x = ({ items: m }) => {
|
|
7
|
+
const r = l.usePathname();
|
|
8
|
+
return /* @__PURE__ */ o(i, { gap: 0, children: m.map(({ href: e, isActive: n, ...t }) => {
|
|
9
|
+
if (e) {
|
|
10
|
+
const c = n ?? e.includes(r);
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
active: c,
|
|
15
|
+
component: p,
|
|
16
|
+
prefetch: !1,
|
|
17
|
+
href: e,
|
|
18
|
+
...t
|
|
19
|
+
},
|
|
20
|
+
t.label
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ o(
|
|
24
|
+
a,
|
|
25
|
+
{
|
|
26
|
+
active: n,
|
|
27
|
+
component: "button",
|
|
28
|
+
...t
|
|
29
|
+
},
|
|
30
|
+
t.label
|
|
31
|
+
);
|
|
32
|
+
}) });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
x as NavItems
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@mantine/core"),j=require("react"),C=require("../../hooks/useFetchNextPageOnScroll.cjs"),S=require("../InfinityLoader/index.cjs");function f({value:a,onChange:b,data:s=[],searchValue:p,onSearchChange:l,renderOption:c,onOptionSubmit:x,nothingFoundMessage:d,infinity:r,placeholder:m,...h}){const t=o.useCombobox({onDropdownClose:()=>{t.resetSelectedOption(),t.focusTarget(),l?.("")},onDropdownOpen:()=>{t.focusSearchInput()}}),i=s.map(n=>e.jsx(o.Combobox.Option,{value:n.value,children:c?c({option:n}):n.label},n.value)),g=s.find(n=>n.value===a),u=j.useRef(null);return C.useFetchNextPageOnScroll(r,u),e.jsxs(o.Combobox,{store:t,middlewares:{shift:{crossAxis:!0}},onOptionSubmit:n=>{b?.(n),x?.(n),t.closeDropdown()},children:[e.jsx(o.Combobox.Target,{children:e.jsx(o.InputBase,{component:"button",type:"button",pointer:!0,rightSection:e.jsx(o.Combobox.Chevron,{}),onClick:()=>t.toggleDropdown(),rightSectionPointerEvents:"none",...h,children:g?.label||e.jsx(o.Input.Placeholder,{children:m})})}),e.jsxs(o.Combobox.Dropdown,{children:[e.jsx(o.Combobox.Search,{value:p,onChange:n=>l?.(n.currentTarget.value),placeholder:"Escribe para buscar"}),e.jsx(o.Combobox.Options,{children:e.jsxs(o.ScrollArea.Autosize,{mah:200,type:"scroll",viewportRef:u,children:[i.length>0?i:r.isFetching?null:e.jsx(o.Combobox.Empty,{onClick:()=>t.closeDropdown(),className:"min-h-6",children:d??"Sin resultados"}),e.jsx(S.InfinityLoader,{className:"text-sm",infinity:r,loaderProps:{size:"sm",className:"mt-1 mb-2"}})]})})]})]})}exports.SelectInfinity=f;
|
|
@@ -1 +1,106 @@
|
|
|
1
|
-
"use
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import { useCombobox as S, Combobox as t, InputBase as v, Input as w, ScrollArea as C } from "@mantine/core";
|
|
4
|
+
import { useRef as D } from "react";
|
|
5
|
+
import { useFetchNextPageOnScroll as O } from "../../hooks/useFetchNextPageOnScroll.js";
|
|
6
|
+
import { InfinityLoader as I } from "../InfinityLoader/index.js";
|
|
7
|
+
function R({
|
|
8
|
+
value: u,
|
|
9
|
+
onChange: m,
|
|
10
|
+
data: s = [],
|
|
11
|
+
searchValue: d,
|
|
12
|
+
onSearchChange: c,
|
|
13
|
+
renderOption: i,
|
|
14
|
+
onOptionSubmit: h,
|
|
15
|
+
nothingFoundMessage: b,
|
|
16
|
+
infinity: n,
|
|
17
|
+
placeholder: f,
|
|
18
|
+
...g
|
|
19
|
+
}) {
|
|
20
|
+
const r = S({
|
|
21
|
+
onDropdownClose: () => {
|
|
22
|
+
r.resetSelectedOption(), r.focusTarget(), c?.("");
|
|
23
|
+
},
|
|
24
|
+
onDropdownOpen: () => {
|
|
25
|
+
r.focusSearchInput();
|
|
26
|
+
}
|
|
27
|
+
}), p = s.map((e) => /* @__PURE__ */ o(
|
|
28
|
+
t.Option,
|
|
29
|
+
{
|
|
30
|
+
value: e.value,
|
|
31
|
+
children: i ? i({ option: e }) : e.label
|
|
32
|
+
},
|
|
33
|
+
e.value
|
|
34
|
+
)), x = s.find((e) => e.value === u), a = D(null);
|
|
35
|
+
return O(n, a), /* @__PURE__ */ l(
|
|
36
|
+
t,
|
|
37
|
+
{
|
|
38
|
+
store: r,
|
|
39
|
+
middlewares: {
|
|
40
|
+
shift: {
|
|
41
|
+
crossAxis: !0
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
onOptionSubmit: (e) => {
|
|
45
|
+
m?.(e), h?.(e), r.closeDropdown();
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ o(t.Target, { children: /* @__PURE__ */ o(
|
|
49
|
+
v,
|
|
50
|
+
{
|
|
51
|
+
component: "button",
|
|
52
|
+
type: "button",
|
|
53
|
+
pointer: !0,
|
|
54
|
+
rightSection: /* @__PURE__ */ o(t.Chevron, {}),
|
|
55
|
+
onClick: () => r.toggleDropdown(),
|
|
56
|
+
rightSectionPointerEvents: "none",
|
|
57
|
+
...g,
|
|
58
|
+
children: x?.label || /* @__PURE__ */ o(w.Placeholder, { children: f })
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
/* @__PURE__ */ l(t.Dropdown, { children: [
|
|
62
|
+
/* @__PURE__ */ o(
|
|
63
|
+
t.Search,
|
|
64
|
+
{
|
|
65
|
+
value: d,
|
|
66
|
+
onChange: (e) => c?.(e.currentTarget.value),
|
|
67
|
+
placeholder: "Escribe para buscar"
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ o(t.Options, { children: /* @__PURE__ */ l(
|
|
71
|
+
C.Autosize,
|
|
72
|
+
{
|
|
73
|
+
mah: 200,
|
|
74
|
+
type: "scroll",
|
|
75
|
+
viewportRef: a,
|
|
76
|
+
children: [
|
|
77
|
+
p.length > 0 ? p : n.isFetching ? null : /* @__PURE__ */ o(
|
|
78
|
+
t.Empty,
|
|
79
|
+
{
|
|
80
|
+
onClick: () => r.closeDropdown(),
|
|
81
|
+
className: "min-h-6",
|
|
82
|
+
children: b ?? "Sin resultados"
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ o(
|
|
86
|
+
I,
|
|
87
|
+
{
|
|
88
|
+
className: "text-sm",
|
|
89
|
+
infinity: n,
|
|
90
|
+
loaderProps: {
|
|
91
|
+
size: "sm",
|
|
92
|
+
className: "mt-1 mb-2"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
) })
|
|
99
|
+
] })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
R as SelectInfinity
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=(e=>(e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e))(o||{});exports.HttpStatus=o;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var o = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(o || {});
|
|
2
|
+
export {
|
|
3
|
+
o as HttpStatus
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(n=>(n[n.OneHour=3600]="OneHour",n[n.OneDay=86400]="OneDay",n[n.OneWeek=604800]="OneWeek",n[n.OneMonth=2592e3]="OneMonth",n[n.OneYear=31536e3]="OneYear",n))(r||{});exports.Revalidate=r;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var O = /* @__PURE__ */ ((n) => (n[n.OneHour = 3600] = "OneHour", n[n.OneDay = 86400] = "OneDay", n[n.OneWeek = 604800] = "OneWeek", n[n.OneMonth = 2592e3] = "OneMonth", n[n.OneYear = 31536e3] = "OneYear", n))(O || {});
|
|
2
|
+
export {
|
|
3
|
+
O as Revalidate
|
|
4
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),i=require("../../_virtual/navigation.cjs"),u=require("react"),c=u.createContext(null);function P({children:s}){const e=i.navigationExports.usePathname(),o=i.navigationExports.useSearchParams(),[t,a]=u.useState([]);return u.useEffect(()=>{const r=o?.size?`${e}?${o.toString()}`:e;r&&a(n=>n.length>0&&n[n.length-1]===r?n:[...n,r])},[e,o]),v.jsx(c.Provider,{value:{history:t},children:s})}const g="backUrl";function y(){const s=u.useContext(c),e=i.navigationExports.useRouter();if(!s)throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");const o=i.navigationExports.useSearchParams(),{history:t}=s;return{history:t,goBack:r=>{const n=o.get(g);if(n){e.push(n);return}if(t.length<=1){e.push(r??"/");return}const h=t[t.length-2],l=t[t.length-1];if(t.length>=3&&t[t.length-3]===l){e.push(r??"/");return}e.push(h??"/")},currentRoute:t.length>0?t[t.length-1]:null,hasPreviousRoute:t.length>1,getPreviousRoute:()=>t.length>=2?t[t.length-2]:null}}exports.NavigationHistoryProvider=P;exports.QP_BACK_URL_NAME=g;exports.useNavigationHistory=y;
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { n as u } from "../../_virtual/navigation.js";
|
|
4
|
+
import { createContext as l, useState as f, useEffect as m, useContext as P } from "react";
|
|
5
|
+
const a = l(null);
|
|
6
|
+
function R({ children: s }) {
|
|
7
|
+
const e = u.usePathname(), o = u.useSearchParams(), [t, i] = f([]);
|
|
8
|
+
return m(() => {
|
|
9
|
+
const r = o?.size ? `${e}?${o.toString()}` : e;
|
|
10
|
+
r && i((n) => n.length > 0 && n[n.length - 1] === r ? n : [...n, r]);
|
|
11
|
+
}, [e, o]), /* @__PURE__ */ g(a.Provider, { value: { history: t }, children: s });
|
|
12
|
+
}
|
|
13
|
+
const v = "backUrl";
|
|
14
|
+
function d() {
|
|
15
|
+
const s = P(a), e = u.useRouter();
|
|
16
|
+
if (!s)
|
|
17
|
+
throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
|
|
18
|
+
const o = u.useSearchParams(), { history: t } = s;
|
|
19
|
+
return {
|
|
20
|
+
history: t,
|
|
21
|
+
goBack: (r) => {
|
|
22
|
+
const n = o.get(v);
|
|
23
|
+
if (n) {
|
|
24
|
+
e.push(n);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (t.length <= 1) {
|
|
28
|
+
e.push(r ?? "/");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const c = t[t.length - 2], h = t[t.length - 1];
|
|
32
|
+
if (t.length >= 3 && t[t.length - 3] === h) {
|
|
33
|
+
e.push(r ?? "/");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
e.push(c ?? "/");
|
|
37
|
+
},
|
|
38
|
+
currentRoute: t.length > 0 ? t[t.length - 1] : null,
|
|
39
|
+
hasPreviousRoute: t.length > 1,
|
|
40
|
+
getPreviousRoute: () => t.length >= 2 ? t[t.length - 2] : null
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
R as NavigationHistoryProvider,
|
|
45
|
+
v as QP_BACK_URL_NAME,
|
|
46
|
+
d as useNavigationHistory
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("react"),r=t.createContext(void 0),i=({value:e,children:a})=>o.jsx(r.Provider,{value:e,children:a}),n=()=>{const e=t.useContext(r);if(e===void 0)throw new Error("Out of context: usePageData");return e};exports.PageDataProvider=i;exports.usePageData=n;
|