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.
- package/dist/_virtual/___vite-browser-external.cjs +12 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.cjs +5 -0
- package/dist/_virtual/__vite-browser-external.js +3 -0
- package/dist/_virtual/_commonjsHelpers.cjs +34 -0
- package/dist/_virtual/_commonjsHelpers.js +30 -0
- package/dist/_virtual/_interop_require_default.cjs +7 -0
- package/dist/_virtual/_interop_require_default.js +3 -0
- package/dist/_virtual/_interop_require_wildcard.cjs +7 -0
- package/dist/_virtual/_interop_require_wildcard.js +3 -0
- package/dist/_virtual/add-base-path.cjs +7 -0
- package/dist/_virtual/add-base-path.js +3 -0
- package/dist/_virtual/add-locale.cjs +7 -0
- package/dist/_virtual/add-locale.js +3 -0
- package/dist/_virtual/add-locale2.cjs +7 -0
- package/dist/_virtual/add-locale2.js +3 -0
- package/dist/_virtual/add-path-prefix.cjs +7 -0
- package/dist/_virtual/add-path-prefix.js +3 -0
- package/dist/_virtual/add-path-suffix.cjs +7 -0
- package/dist/_virtual/add-path-suffix.js +3 -0
- package/dist/_virtual/app-paths.cjs +7 -0
- package/dist/_virtual/app-paths.js +3 -0
- package/dist/_virtual/bloom-filter.cjs +7 -0
- package/dist/_virtual/bloom-filter.js +3 -0
- package/dist/_virtual/compare-states.cjs +7 -0
- package/dist/_virtual/compare-states.js +3 -0
- package/dist/_virtual/constants.cjs +7 -0
- package/dist/_virtual/constants.js +3 -0
- package/dist/_virtual/denormalize-page-path.cjs +7 -0
- package/dist/_virtual/denormalize-page-path.js +3 -0
- package/dist/_virtual/deployment-id.cjs +7 -0
- package/dist/_virtual/deployment-id.js +3 -0
- package/dist/_virtual/detect-domain-locale.cjs +7 -0
- package/dist/_virtual/detect-domain-locale.js +3 -0
- package/dist/_virtual/detect-domain-locale2.cjs +7 -0
- package/dist/_virtual/detect-domain-locale2.js +3 -0
- package/dist/_virtual/disable-smooth-scroll.cjs +7 -0
- package/dist/_virtual/disable-smooth-scroll.js +3 -0
- package/dist/_virtual/encode-uri-path.cjs +7 -0
- package/dist/_virtual/encode-uri-path.js +3 -0
- package/dist/_virtual/ensure-leading-slash.cjs +7 -0
- package/dist/_virtual/ensure-leading-slash.js +3 -0
- package/dist/_virtual/escape-regexp.cjs +7 -0
- package/dist/_virtual/escape-regexp.js +3 -0
- package/dist/_virtual/format-next-pathname-info.cjs +7 -0
- package/dist/_virtual/format-next-pathname-info.js +3 -0
- package/dist/_virtual/format-url.cjs +7 -0
- package/dist/_virtual/format-url.js +3 -0
- package/dist/_virtual/get-asset-path-from-route.cjs +7 -0
- package/dist/_virtual/get-asset-path-from-route.js +3 -0
- package/dist/_virtual/get-cookie-parser.cjs +7 -0
- package/dist/_virtual/get-cookie-parser.js +3 -0
- package/dist/_virtual/get-dynamic-param.cjs +7 -0
- package/dist/_virtual/get-dynamic-param.js +3 -0
- package/dist/_virtual/get-next-pathname-info.cjs +7 -0
- package/dist/_virtual/get-next-pathname-info.js +3 -0
- package/dist/_virtual/get-segment-param.cjs +7 -0
- package/dist/_virtual/get-segment-param.js +3 -0
- package/dist/_virtual/has-base-path.cjs +7 -0
- package/dist/_virtual/has-base-path.js +3 -0
- package/dist/_virtual/head-manager-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
- package/dist/_virtual/html-bots.cjs +7 -0
- package/dist/_virtual/html-bots.js +3 -0
- package/dist/_virtual/index.cjs +7 -0
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/index4.cjs +7 -0
- package/dist/_virtual/index4.js +3 -0
- package/dist/_virtual/index5.cjs +7 -0
- package/dist/_virtual/index5.js +3 -0
- package/dist/_virtual/interception-routes.cjs +7 -0
- package/dist/_virtual/interception-routes.js +3 -0
- package/dist/_virtual/interpolate-as.cjs +7 -0
- package/dist/_virtual/interpolate-as.js +3 -0
- package/dist/_virtual/invariant-error.cjs +7 -0
- package/dist/_virtual/invariant-error.js +3 -0
- package/dist/_virtual/is-api-route.cjs +7 -0
- package/dist/_virtual/is-api-route.js +3 -0
- package/dist/_virtual/is-bot.cjs +7 -0
- package/dist/_virtual/is-bot.js +3 -0
- package/dist/_virtual/is-dynamic.cjs +7 -0
- package/dist/_virtual/is-dynamic.js +3 -0
- package/dist/_virtual/is-error.cjs +7 -0
- package/dist/_virtual/is-error.js +3 -0
- package/dist/_virtual/is-local-url.cjs +7 -0
- package/dist/_virtual/is-local-url.js +3 -0
- package/dist/_virtual/is-plain-object.cjs +7 -0
- package/dist/_virtual/is-plain-object.js +3 -0
- package/dist/_virtual/mitt.cjs +7 -0
- package/dist/_virtual/mitt.js +3 -0
- package/dist/_virtual/normalize-locale-path.cjs +7 -0
- package/dist/_virtual/normalize-locale-path.js +3 -0
- package/dist/_virtual/normalize-path-sep.cjs +7 -0
- package/dist/_virtual/normalize-path-sep.js +3 -0
- package/dist/_virtual/normalize-trailing-slash.cjs +7 -0
- package/dist/_virtual/normalize-trailing-slash.js +3 -0
- package/dist/_virtual/omit.cjs +7 -0
- package/dist/_virtual/omit.js +3 -0
- package/dist/_virtual/parse-loader-tree.cjs +7 -0
- package/dist/_virtual/parse-loader-tree.js +3 -0
- package/dist/_virtual/parse-path.cjs +7 -0
- package/dist/_virtual/parse-path.js +3 -0
- package/dist/_virtual/parse-relative-url.cjs +7 -0
- package/dist/_virtual/parse-relative-url.js +3 -0
- package/dist/_virtual/parse-url.cjs +7 -0
- package/dist/_virtual/parse-url.js +3 -0
- package/dist/_virtual/path-has-prefix.cjs +7 -0
- package/dist/_virtual/path-has-prefix.js +3 -0
- package/dist/_virtual/path-match.cjs +7 -0
- package/dist/_virtual/path-match.js +3 -0
- package/dist/_virtual/prepare-destination.cjs +7 -0
- package/dist/_virtual/prepare-destination.js +3 -0
- package/dist/_virtual/querystring.cjs +7 -0
- package/dist/_virtual/querystring.js +3 -0
- package/dist/_virtual/react-is.development.cjs +7 -0
- package/dist/_virtual/react-is.development.js +3 -0
- package/dist/_virtual/react-is.production.cjs +7 -0
- package/dist/_virtual/react-is.production.js +3 -0
- package/dist/_virtual/remove-base-path.cjs +7 -0
- package/dist/_virtual/remove-base-path.js +3 -0
- package/dist/_virtual/remove-locale.cjs +7 -0
- package/dist/_virtual/remove-locale.js +3 -0
- package/dist/_virtual/remove-path-prefix.cjs +7 -0
- package/dist/_virtual/remove-path-prefix.js +3 -0
- package/dist/_virtual/remove-trailing-slash.cjs +7 -0
- package/dist/_virtual/remove-trailing-slash.js +3 -0
- package/dist/_virtual/request-idle-callback.cjs +7 -0
- package/dist/_virtual/request-idle-callback.js +3 -0
- package/dist/_virtual/resolve-href.cjs +7 -0
- package/dist/_virtual/resolve-href.js +3 -0
- package/dist/_virtual/resolve-rewrites.cjs +7 -0
- package/dist/_virtual/resolve-rewrites.js +3 -0
- package/dist/_virtual/route-loader.cjs +7 -0
- package/dist/_virtual/route-loader.js +3 -0
- package/dist/_virtual/route-match-utils.cjs +7 -0
- package/dist/_virtual/route-match-utils.js +3 -0
- package/dist/_virtual/route-matcher.cjs +7 -0
- package/dist/_virtual/route-matcher.js +3 -0
- package/dist/_virtual/route-pattern-normalizer.cjs +7 -0
- package/dist/_virtual/route-pattern-normalizer.js +3 -0
- package/dist/_virtual/route-regex.cjs +7 -0
- package/dist/_virtual/route-regex.js +3 -0
- package/dist/_virtual/router-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/router-context.shared-runtime.js +3 -0
- package/dist/_virtual/router.cjs +9 -0
- package/dist/_virtual/router.js +5 -0
- package/dist/_virtual/router2.cjs +7 -0
- package/dist/_virtual/router2.js +3 -0
- package/dist/_virtual/router3.cjs +7 -0
- package/dist/_virtual/router3.js +3 -0
- package/dist/_virtual/script.cjs +7 -0
- package/dist/_virtual/script.js +3 -0
- package/dist/_virtual/segment.cjs +7 -0
- package/dist/_virtual/segment.js +3 -0
- package/dist/_virtual/set-attributes-from-props.cjs +7 -0
- package/dist/_virtual/set-attributes-from-props.js +3 -0
- package/dist/_virtual/sorted-routes.cjs +7 -0
- package/dist/_virtual/sorted-routes.js +3 -0
- package/dist/_virtual/trusted-types.cjs +7 -0
- package/dist/_virtual/trusted-types.js +3 -0
- package/dist/_virtual/utils.cjs +7 -0
- package/dist/_virtual/utils.js +3 -0
- package/dist/_virtual/warn-once.cjs +7 -0
- package/dist/_virtual/warn-once.js +3 -0
- package/dist/_virtual/with-router.cjs +7 -0
- package/dist/_virtual/with-router.js +3 -0
- package/dist/components/EmptyState/index.cjs +5 -5
- package/dist/components/Icon.cjs +2 -2
- package/dist/components/InfinityLoader/index.cjs +4 -4
- package/dist/components/MyCheckboxGroup/index.cjs +24 -0
- package/dist/components/MyCheckboxGroup/index.js +20 -0
- package/dist/components/MyDateInput/index.cjs +3 -3
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +7 -7
- package/dist/components/MyDatePickerInput/index.cjs +3 -3
- package/dist/components/MyDateTimePicker/index.cjs +3 -3
- package/dist/components/MyMonthPickerInput/index.cjs +3 -3
- package/dist/components/MyMultiSelect/index.cjs +2 -2
- package/dist/components/MyNotifications/index.cjs +2 -2
- package/dist/components/MyNumberInput/index.cjs +2 -2
- package/dist/components/MyRadioGroup/index.cjs +2 -2
- package/dist/components/MySelect/index.cjs +2 -2
- package/dist/components/MyTextInput/index.cjs +2 -2
- package/dist/components/MyTextarea/index.cjs +2 -2
- package/dist/components/MyTimeInput/index.cjs +2 -2
- package/dist/components/NavItems.cjs +4 -4
- package/dist/components/SelectInfinity/index.cjs +8 -8
- package/dist/contexts/NavigationHistoryContext/hook.cjs +47 -0
- package/dist/contexts/NavigationHistoryContext/hook.js +42 -0
- package/dist/contexts/NavigationHistoryContext/index.cjs +15 -47
- package/dist/contexts/NavigationHistoryContext/index.js +17 -48
- package/dist/contexts/PageDataContext/index.cjs +2 -2
- package/dist/form/Form.cjs +2 -2
- package/dist/form/FormButtonSubmit.cjs +2 -2
- package/dist/form/base/FormCheckbox.cjs +2 -2
- package/dist/form/base/FormCheckboxGroup.cjs +17 -0
- package/dist/form/base/FormCheckboxGroup.js +13 -0
- package/dist/form/base/FormDateInput.cjs +2 -2
- package/dist/form/base/FormDatePickerInput.cjs +2 -2
- package/dist/form/base/FormDateTimePicker.cjs +2 -2
- package/dist/form/base/FormMonthPickerInput.cjs +2 -2
- package/dist/form/base/FormMultiSelect.cjs +2 -2
- package/dist/form/base/FormNumberInput.cjs +2 -2
- package/dist/form/base/FormRadioGroup.cjs +2 -2
- package/dist/form/base/FormSelect.cjs +2 -2
- package/dist/form/base/FormSelectInfinity.cjs +2 -2
- package/dist/form/base/FormTextInput.cjs +2 -2
- package/dist/form/base/FormTextarea.cjs +2 -2
- package/dist/form/base/FormTimeInput.cjs +2 -2
- package/dist/hocs/withController.cjs +3 -3
- package/dist/hocs/withModalManager.cjs +2 -2
- package/dist/index.cjs +12 -7
- package/dist/index.d.ts +16 -8
- package/dist/index.js +4 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +20 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +16 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +52 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +48 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/dist/node_modules/next/dist/build/deployment-id.cjs +34 -0
- package/dist/node_modules/next/dist/build/deployment-id.js +30 -0
- package/dist/node_modules/next/dist/client/add-base-path.cjs +42 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
- package/dist/node_modules/next/dist/client/add-locale.cjs +43 -0
- package/dist/node_modules/next/dist/client/add-locale.js +39 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +40 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +36 -0
- package/dist/node_modules/next/dist/client/has-base-path.cjs +40 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +54 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +50 -0
- package/dist/node_modules/next/dist/client/remove-base-path.cjs +49 -0
- package/dist/node_modules/next/dist/client/remove-base-path.js +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.cjs +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.js +41 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +56 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
- package/dist/node_modules/next/dist/client/resolve-href.cjs +132 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +128 -0
- package/dist/node_modules/next/dist/client/route-loader.cjs +363 -0
- package/dist/node_modules/next/dist/client/route-loader.js +359 -0
- package/dist/node_modules/next/dist/client/router.cjs +201 -0
- package/dist/node_modules/next/dist/client/router.js +197 -0
- package/dist/node_modules/next/dist/client/script.cjs +366 -0
- package/dist/node_modules/next/dist/client/script.js +362 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +81 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.js +77 -0
- package/dist/node_modules/next/dist/client/trusted-types.cjs +56 -0
- package/dist/node_modules/next/dist/client/trusted-types.js +52 -0
- package/dist/node_modules/next/dist/client/with-router.cjs +54 -0
- package/dist/node_modules/next/dist/client/with-router.js +50 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.cjs +22 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.js +18 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +17 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +13 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +16 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +12 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +147 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +143 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +144 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +140 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.cjs +23 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.js +19 -0
- package/dist/node_modules/next/dist/lib/constants.cjs +365 -0
- package/dist/node_modules/next/dist/lib/constants.js +361 -0
- package/dist/node_modules/next/dist/lib/is-api-route.cjs +31 -0
- package/dist/node_modules/next/dist/lib/is-api-route.js +27 -0
- package/dist/node_modules/next/dist/lib/is-error.cjs +91 -0
- package/dist/node_modules/next/dist/lib/is-error.js +87 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +115 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +111 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +39 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +101 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +97 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +31 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +27 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +41 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +37 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +70 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +66 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +34 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.cjs +58 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.js +54 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.cjs +1814 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.js +1810 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +65 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +60 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +28 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +208 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +204 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +29 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +119 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +115 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +68 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +64 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +44 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +40 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +51 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +66 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +62 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +303 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +299 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +86 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +52 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +140 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +136 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +127 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +123 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +63 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +59 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +272 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +268 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +256 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +252 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +38 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +204 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +200 -0
- package/dist/node_modules/next/router.cjs +17 -0
- package/dist/node_modules/next/router.js +13 -0
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const Icon = require('../Icon.cjs');
|
|
7
7
|
const core = require('@mantine/core');
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ const pxBySize = {
|
|
|
13
13
|
};
|
|
14
14
|
const EmptyState = ({ label, action, icon, size = "md", ...props }) => {
|
|
15
15
|
const { colors } = core.useMantineTheme();
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ require$$2.jsxs(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
style: {
|
|
@@ -25,7 +25,7 @@ const EmptyState = ({ label, action, icon, size = "md", ...props }) => {
|
|
|
25
25
|
},
|
|
26
26
|
...props,
|
|
27
27
|
children: [
|
|
28
|
-
icon && /* @__PURE__ */
|
|
28
|
+
icon && /* @__PURE__ */ require$$2.jsx(
|
|
29
29
|
Icon.Icon,
|
|
30
30
|
{
|
|
31
31
|
i: icon,
|
|
@@ -35,7 +35,7 @@ const EmptyState = ({ label, action, icon, size = "md", ...props }) => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
39
39
|
core.Text,
|
|
40
40
|
{
|
|
41
41
|
c: "gray.6",
|
|
@@ -46,7 +46,7 @@ const EmptyState = ({ label, action, icon, size = "md", ...props }) => {
|
|
|
46
46
|
children: label
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ require$$2.jsx("div", { children: action })
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
);
|
package/dist/components/Icon.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const require$$2 = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
8
|
const Icon = ({ i: I, size = "md", style, rotate, ...rest }) => {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
I,
|
|
11
11
|
{
|
|
12
12
|
...typeof size === "number" ? {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
const hooks = require('@mantine/hooks');
|
|
8
8
|
const React = require('react');
|
|
@@ -31,9 +31,9 @@ const InfinityLoader = ({
|
|
|
31
31
|
const showLoader = infinity.isLoading || infinity.isFetchingNextPage;
|
|
32
32
|
const showEndMessage = infinity.data && infinity.data.pages.length > 1 && !infinity.hasNextPage;
|
|
33
33
|
if (!showLoader && !showEndMessage) {
|
|
34
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ require$$2.jsx("div", { ref });
|
|
35
35
|
}
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ require$$2.jsx(
|
|
37
37
|
core.Center,
|
|
38
38
|
{
|
|
39
39
|
ref,
|
|
@@ -43,7 +43,7 @@ const InfinityLoader = ({
|
|
|
43
43
|
fontSize: "14px",
|
|
44
44
|
...props.style
|
|
45
45
|
},
|
|
46
|
-
children: showLoader ? /* @__PURE__ */
|
|
46
|
+
children: showLoader ? /* @__PURE__ */ require$$2.jsx(core.Loader, { ...loaderProps }) : showEndMessage ? endMessage : null
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
|
+
const core = require('@mantine/core');
|
|
7
|
+
|
|
8
|
+
const MyCheckboxGroup = ({
|
|
9
|
+
options,
|
|
10
|
+
orientation = "horizontal",
|
|
11
|
+
gap = "md",
|
|
12
|
+
...checkboxGroupProps
|
|
13
|
+
}) => {
|
|
14
|
+
const Container = orientation === "horizontal" ? core.Group : core.Stack;
|
|
15
|
+
return /* @__PURE__ */ require$$2.jsx(core.CheckboxGroup, { ...checkboxGroupProps, children: /* @__PURE__ */ require$$2.jsx(Container, { gap, children: options.map((option, index) => /* @__PURE__ */ require$$2.jsx(
|
|
16
|
+
core.Checkbox,
|
|
17
|
+
{
|
|
18
|
+
...option
|
|
19
|
+
},
|
|
20
|
+
String(option.value) || String(index)
|
|
21
|
+
)) }) });
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.MyCheckboxGroup = MyCheckboxGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { CheckboxGroup, Group, Stack, Checkbox } from '@mantine/core';
|
|
3
|
+
|
|
4
|
+
const MyCheckboxGroup = ({
|
|
5
|
+
options,
|
|
6
|
+
orientation = "horizontal",
|
|
7
|
+
gap = "md",
|
|
8
|
+
...checkboxGroupProps
|
|
9
|
+
}) => {
|
|
10
|
+
const Container = orientation === "horizontal" ? Group : Stack;
|
|
11
|
+
return /* @__PURE__ */ jsx(CheckboxGroup, { ...checkboxGroupProps, children: /* @__PURE__ */ jsx(Container, { gap, children: options.map((option, index) => /* @__PURE__ */ jsx(
|
|
12
|
+
Checkbox,
|
|
13
|
+
{
|
|
14
|
+
...option
|
|
15
|
+
},
|
|
16
|
+
String(option.value) || String(index)
|
|
17
|
+
)) }) });
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { MyCheckboxGroup };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const dates = require('@mantine/dates');
|
|
7
7
|
const CalendarIcon = require('../MyDatePickerInput/CalendarIcon.cjs');
|
|
8
8
|
|
|
9
|
-
const MyDateInput = (props) => /* @__PURE__ */
|
|
9
|
+
const MyDateInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
dates.DateInput,
|
|
11
11
|
{
|
|
12
|
-
leftSection: /* @__PURE__ */
|
|
12
|
+
leftSection: /* @__PURE__ */ require$$2.jsx(CalendarIcon, { size: props.size }),
|
|
13
13
|
leftSectionPointerEvents: "none",
|
|
14
14
|
variant: props.readOnly ? "filled" : "default",
|
|
15
15
|
...props
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const require$$2 = require('react/jsx-runtime');
|
|
4
4
|
|
|
5
5
|
const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ require$$2.jsxs(
|
|
7
7
|
"svg",
|
|
8
8
|
{
|
|
9
9
|
viewBox: "0 0 24 24",
|
|
@@ -12,7 +12,7 @@ const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
|
12
12
|
width: size === "sm" ? 20 : 24,
|
|
13
13
|
height: size === "sm" ? 20 : 24,
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
16
16
|
"path",
|
|
17
17
|
{
|
|
18
18
|
fillRule: "evenodd",
|
|
@@ -21,7 +21,7 @@ const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
|
21
21
|
fill: "currentColor"
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
25
25
|
"path",
|
|
26
26
|
{
|
|
27
27
|
fillRule: "evenodd",
|
|
@@ -30,7 +30,7 @@ const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
|
30
30
|
fill: "currentColor"
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
34
34
|
"path",
|
|
35
35
|
{
|
|
36
36
|
fillRule: "evenodd",
|
|
@@ -39,7 +39,7 @@ const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
|
39
39
|
fill: "currentColor"
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
43
43
|
"path",
|
|
44
44
|
{
|
|
45
45
|
fillRule: "evenodd",
|
|
@@ -48,7 +48,7 @@ const CalendarIcon = ({ size = "sm", ...props }) => {
|
|
|
48
48
|
fill: "currentColor"
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
52
52
|
"path",
|
|
53
53
|
{
|
|
54
54
|
fillRule: "evenodd",
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const dates = require('@mantine/dates');
|
|
7
7
|
const CalendarIcon = require('./CalendarIcon.cjs');
|
|
8
8
|
|
|
9
|
-
const MyDatePickerInput = (props) => /* @__PURE__ */
|
|
9
|
+
const MyDatePickerInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
dates.DatePickerInput,
|
|
11
11
|
{
|
|
12
|
-
leftSection: /* @__PURE__ */
|
|
12
|
+
leftSection: /* @__PURE__ */ require$$2.jsx(CalendarIcon, { size: props.size }),
|
|
13
13
|
leftSectionPointerEvents: "none",
|
|
14
14
|
variant: props.readOnly ? "filled" : "default",
|
|
15
15
|
...props
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const dates = require('@mantine/dates');
|
|
7
7
|
const CalendarIcon = require('../MyDatePickerInput/CalendarIcon.cjs');
|
|
8
8
|
|
|
9
|
-
const MyDateTimePicker = (props) => /* @__PURE__ */
|
|
9
|
+
const MyDateTimePicker = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
dates.DateTimePicker,
|
|
11
11
|
{
|
|
12
|
-
leftSection: /* @__PURE__ */
|
|
12
|
+
leftSection: /* @__PURE__ */ require$$2.jsx(CalendarIcon, { size: props.size }),
|
|
13
13
|
leftSectionPointerEvents: "none",
|
|
14
14
|
variant: props.readOnly ? "filled" : "default",
|
|
15
15
|
...props
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const dates = require('@mantine/dates');
|
|
7
7
|
const CalendarIcon = require('../MyDatePickerInput/CalendarIcon.cjs');
|
|
8
8
|
|
|
9
|
-
const MyMonthPickerInput = (props) => /* @__PURE__ */
|
|
9
|
+
const MyMonthPickerInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
dates.MonthPickerInput,
|
|
11
11
|
{
|
|
12
|
-
leftSection: /* @__PURE__ */
|
|
12
|
+
leftSection: /* @__PURE__ */ require$$2.jsx(CalendarIcon, { size: props.size }),
|
|
13
13
|
leftSectionPointerEvents: "none",
|
|
14
14
|
variant: props.readOnly ? "filled" : "default",
|
|
15
15
|
...props
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MyMultiSelect = (props) => /* @__PURE__ */
|
|
8
|
+
const MyMultiSelect = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.MultiSelect,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const notifications = require('@mantine/notifications');
|
|
7
7
|
;/* empty css */
|
|
8
8
|
|
|
9
|
-
const MyNotifications = (props) => /* @__PURE__ */
|
|
9
|
+
const MyNotifications = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
10
10
|
notifications.Notifications,
|
|
11
11
|
{
|
|
12
12
|
position: "top-center",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MyNumberInput = (props) => /* @__PURE__ */
|
|
8
|
+
const MyNumberInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.NumberInput,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
8
|
const MyRadioGroup = ({
|
|
@@ -12,7 +12,7 @@ const MyRadioGroup = ({
|
|
|
12
12
|
...radioGroupProps
|
|
13
13
|
}) => {
|
|
14
14
|
const Container = orientation === "horizontal" ? core.Group : core.Stack;
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ require$$2.jsx(core.Radio.Group, { ...radioGroupProps, children: /* @__PURE__ */ require$$2.jsx(Container, { gap, children: options.map((option, index) => /* @__PURE__ */ require$$2.jsx(
|
|
16
16
|
core.Radio,
|
|
17
17
|
{
|
|
18
18
|
...option
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MySelect = (props) => /* @__PURE__ */
|
|
8
|
+
const MySelect = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.Select,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MyTextInput = (props) => /* @__PURE__ */
|
|
8
|
+
const MyTextInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.TextInput,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MyTextarea = (props) => /* @__PURE__ */
|
|
8
|
+
const MyTextarea = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.Textarea,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const require$$2 = require('react/jsx-runtime');
|
|
6
6
|
const core = require('@mantine/core');
|
|
7
7
|
|
|
8
|
-
const MyTimeInput = (props) => /* @__PURE__ */
|
|
8
|
+
const MyTimeInput = (props) => /* @__PURE__ */ require$$2.jsx(
|
|
9
9
|
core.TextInput,
|
|
10
10
|
{
|
|
11
11
|
variant: props.readOnly ? "filled" : "default",
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const require$$2 = require('react/jsx-runtime');
|
|
7
7
|
const core = require('@mantine/core');
|
|
8
8
|
const Link = require('next/link');
|
|
9
9
|
const navigation = require('next/navigation');
|
|
10
10
|
|
|
11
11
|
const NavItems = ({ items, activeStrategy = "includes" }) => {
|
|
12
12
|
const pathname = navigation.usePathname();
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ require$$2.jsx(core.Stack, { gap: 0, children: items.map(({ href, isActive, ...navLinkProps }) => {
|
|
14
14
|
if (href) {
|
|
15
15
|
const active = isActive ?? (activeStrategy === "equals" ? href === pathname : href.includes(pathname));
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ require$$2.jsx(
|
|
17
17
|
core.NavLink,
|
|
18
18
|
{
|
|
19
19
|
active,
|
|
@@ -25,7 +25,7 @@ const NavItems = ({ items, activeStrategy = "includes" }) => {
|
|
|
25
25
|
navLinkProps.label
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ require$$2.jsx(
|
|
29
29
|
core.NavLink,
|
|
30
30
|
{
|
|
31
31
|
active: isActive,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const require$$2 = require('react/jsx-runtime');
|
|
7
7
|
const React = require('react');
|
|
8
8
|
const core = require('@mantine/core');
|
|
9
9
|
const hooks = require('@mantine/hooks');
|
|
@@ -70,7 +70,7 @@ function InfinitySelect({
|
|
|
70
70
|
getScrollElement: () => scrollRef.current
|
|
71
71
|
});
|
|
72
72
|
const scrollRef = React.useRef(null);
|
|
73
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ require$$2.jsxs(
|
|
74
74
|
core.Combobox,
|
|
75
75
|
{
|
|
76
76
|
store: combobox,
|
|
@@ -90,10 +90,10 @@ function InfinitySelect({
|
|
|
90
90
|
},
|
|
91
91
|
...comboboxProps,
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ require$$2.jsx(core.Combobox.Target, { children: /* @__PURE__ */ require$$2.jsx(
|
|
94
94
|
core.InputBase,
|
|
95
95
|
{
|
|
96
|
-
rightSection: props.readOnly ? null : value ? /* @__PURE__ */
|
|
96
|
+
rightSection: props.readOnly ? null : value ? /* @__PURE__ */ require$$2.jsx(core.Input.ClearButton, { onClick: _reset }) : /* @__PURE__ */ require$$2.jsx(core.Combobox.Chevron, {}),
|
|
97
97
|
component: "input",
|
|
98
98
|
rightSectionPointerEvents: value ? void 0 : "none",
|
|
99
99
|
readOnly: !searchable || props.readOnly,
|
|
@@ -121,7 +121,7 @@ function InfinitySelect({
|
|
|
121
121
|
variant: props.readOnly ? "filled" : "default"
|
|
122
122
|
}
|
|
123
123
|
) }),
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ require$$2.jsx(core.Combobox.Dropdown, { children: /* @__PURE__ */ require$$2.jsxs(
|
|
125
125
|
core.Combobox.Options,
|
|
126
126
|
{
|
|
127
127
|
mah: 200,
|
|
@@ -130,7 +130,7 @@ function InfinitySelect({
|
|
|
130
130
|
},
|
|
131
131
|
ref: scrollRef,
|
|
132
132
|
children: [
|
|
133
|
-
data.length > 0 ? /* @__PURE__ */
|
|
133
|
+
data.length > 0 ? /* @__PURE__ */ require$$2.jsx("div", { ...virtualStyles.getVirtualContainerProps(virtualizer), children: virtualizer.getVirtualItems().map((virtualItem) => {
|
|
134
134
|
const option = data[virtualItem.index];
|
|
135
135
|
const virtualItemProps = virtualStyles.getVirtualItemProps(virtualItem, virtualizer);
|
|
136
136
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -146,8 +146,8 @@ function InfinitySelect({
|
|
|
146
146
|
},
|
|
147
147
|
renderOption ? renderOption({ option }) : getOptionLabel(option)
|
|
148
148
|
);
|
|
149
|
-
}) }) : !infinity.isFetching ? /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
149
|
+
}) }) : !infinity.isFetching ? /* @__PURE__ */ require$$2.jsx(core.Combobox.Empty, { mih: 24, children: nothingFoundMessage ? typeof nothingFoundMessage === "function" ? nothingFoundMessage({ combobox }) : nothingFoundMessage : "No hay resultados" }) : null,
|
|
150
|
+
/* @__PURE__ */ require$$2.jsx(
|
|
151
151
|
index$1.InfinityLoader,
|
|
152
152
|
{
|
|
153
153
|
root: scrollRef,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const navigation = require('next/navigation');
|
|
6
|
+
const router = require('../../_virtual/router.cjs');
|
|
7
|
+
const React = require('react');
|
|
8
|
+
const index = require('./index.cjs');
|
|
9
|
+
|
|
10
|
+
const QP_BACK_URL_NAME = "backUrl";
|
|
11
|
+
function useNavigationHistory() {
|
|
12
|
+
const context = React.useContext(index.NavigationHistoryContext);
|
|
13
|
+
const router$1 = router.routerExports.useRouter();
|
|
14
|
+
if (!context) {
|
|
15
|
+
throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
|
|
16
|
+
}
|
|
17
|
+
const searchParams = navigation.useSearchParams();
|
|
18
|
+
const { history } = context;
|
|
19
|
+
const goBack = (fallback) => {
|
|
20
|
+
const returnUrl = searchParams.get(QP_BACK_URL_NAME);
|
|
21
|
+
if (returnUrl) {
|
|
22
|
+
router$1.push(returnUrl);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (history.length <= 1) {
|
|
26
|
+
router$1.push(fallback ?? "/");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const previousRoute = history[history.length - 2];
|
|
30
|
+
const currentRoute = history[history.length - 1];
|
|
31
|
+
if (history.length >= 3 && history[history.length - 3] === currentRoute) {
|
|
32
|
+
router$1.push(fallback ?? "/");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
router$1.push(previousRoute ?? "/");
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
history,
|
|
39
|
+
goBack,
|
|
40
|
+
currentRoute: history.length > 0 ? history[history.length - 1] : null,
|
|
41
|
+
hasPreviousRoute: history.length > 1,
|
|
42
|
+
getPreviousRoute: () => history.length >= 2 ? history[history.length - 2] : null
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
exports.QP_BACK_URL_NAME = QP_BACK_URL_NAME;
|
|
47
|
+
exports.useNavigationHistory = useNavigationHistory;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useSearchParams } from 'next/navigation';
|
|
2
|
+
import { r as routerExports } from '../../_virtual/router.js';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { NavigationHistoryContext } from './index.js';
|
|
5
|
+
|
|
6
|
+
const QP_BACK_URL_NAME = "backUrl";
|
|
7
|
+
function useNavigationHistory() {
|
|
8
|
+
const context = useContext(NavigationHistoryContext);
|
|
9
|
+
const router = routerExports.useRouter();
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
|
|
12
|
+
}
|
|
13
|
+
const searchParams = useSearchParams();
|
|
14
|
+
const { history } = context;
|
|
15
|
+
const goBack = (fallback) => {
|
|
16
|
+
const returnUrl = searchParams.get(QP_BACK_URL_NAME);
|
|
17
|
+
if (returnUrl) {
|
|
18
|
+
router.push(returnUrl);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (history.length <= 1) {
|
|
22
|
+
router.push(fallback ?? "/");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const previousRoute = history[history.length - 2];
|
|
26
|
+
const currentRoute = history[history.length - 1];
|
|
27
|
+
if (history.length >= 3 && history[history.length - 3] === currentRoute) {
|
|
28
|
+
router.push(fallback ?? "/");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
router.push(previousRoute ?? "/");
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
history,
|
|
35
|
+
goBack,
|
|
36
|
+
currentRoute: history.length > 0 ? history[history.length - 1] : null,
|
|
37
|
+
hasPreviousRoute: history.length > 1,
|
|
38
|
+
getPreviousRoute: () => history.length >= 2 ? history[history.length - 2] : null
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { QP_BACK_URL_NAME, useNavigationHistory };
|
|
@@ -3,64 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const require$$2 = require('react/jsx-runtime');
|
|
7
7
|
const navigation = require('next/navigation');
|
|
8
8
|
const React = require('react');
|
|
9
9
|
|
|
10
10
|
const NavigationHistoryContext = React.createContext(null);
|
|
11
11
|
function NavigationHistoryProvider({ children }) {
|
|
12
|
+
const historyRef = React.useRef([]);
|
|
13
|
+
return /* @__PURE__ */ require$$2.jsxs(NavigationHistoryContext.Provider, { value: { history: historyRef.current }, children: [
|
|
14
|
+
/* @__PURE__ */ require$$2.jsx(React.Suspense, { fallback: null, children: /* @__PURE__ */ require$$2.jsx(HistoryTracker, { historyRef }) }),
|
|
15
|
+
children
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
function HistoryTracker({ historyRef }) {
|
|
12
19
|
const pathname = navigation.usePathname();
|
|
13
20
|
const searchParams = navigation.useSearchParams();
|
|
14
|
-
const [history, setHistory] = React.useState([]);
|
|
15
21
|
React.useEffect(() => {
|
|
16
22
|
const fullPath = searchParams?.size ? `${pathname}?${searchParams.toString()}` : pathname;
|
|
17
23
|
if (fullPath) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return [...prev, fullPath];
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}, [pathname, searchParams]);
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationHistoryContext.Provider, { value: { history }, children });
|
|
27
|
-
}
|
|
28
|
-
const QP_BACK_URL_NAME = "backUrl";
|
|
29
|
-
function useNavigationHistory() {
|
|
30
|
-
const context = React.useContext(NavigationHistoryContext);
|
|
31
|
-
const router = navigation.useRouter();
|
|
32
|
-
if (!context) {
|
|
33
|
-
throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
|
|
34
|
-
}
|
|
35
|
-
const searchParams = navigation.useSearchParams();
|
|
36
|
-
const { history } = context;
|
|
37
|
-
const goBack = (fallback) => {
|
|
38
|
-
const returnUrl = searchParams.get(QP_BACK_URL_NAME);
|
|
39
|
-
if (returnUrl) {
|
|
40
|
-
router.push(returnUrl);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (history.length <= 1) {
|
|
44
|
-
router.push(fallback ?? "/");
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const previousRoute = history[history.length - 2];
|
|
48
|
-
const currentRoute = history[history.length - 1];
|
|
49
|
-
if (history.length >= 3 && history[history.length - 3] === currentRoute) {
|
|
50
|
-
router.push(fallback ?? "/");
|
|
51
|
-
return;
|
|
24
|
+
const currentHistory = historyRef.current;
|
|
25
|
+
if (currentHistory.length > 0 && currentHistory[currentHistory.length - 1] === fullPath)
|
|
26
|
+
return;
|
|
27
|
+
historyRef.current = [...currentHistory, fullPath];
|
|
52
28
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return {
|
|
56
|
-
history,
|
|
57
|
-
goBack,
|
|
58
|
-
currentRoute: history.length > 0 ? history[history.length - 1] : null,
|
|
59
|
-
hasPreviousRoute: history.length > 1,
|
|
60
|
-
getPreviousRoute: () => history.length >= 2 ? history[history.length - 2] : null
|
|
61
|
-
};
|
|
29
|
+
}, [pathname, searchParams, historyRef]);
|
|
30
|
+
return null;
|
|
62
31
|
}
|
|
63
32
|
|
|
33
|
+
exports.NavigationHistoryContext = NavigationHistoryContext;
|
|
64
34
|
exports.NavigationHistoryProvider = NavigationHistoryProvider;
|
|
65
|
-
exports.QP_BACK_URL_NAME = QP_BACK_URL_NAME;
|
|
66
|
-
exports.useNavigationHistory = useNavigationHistory;
|