@lssm/lib.ui-kit 1.11.0 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/-core/src/utils.js +10 -0
- package/dist/_virtual/rolldown_runtime.js +33 -0
- package/dist/index.js +1 -2
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +34 -0
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +118 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +24 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +33 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/funnel.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/house.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js +31 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +31 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
- package/dist/node_modules/next/dist/client/add-locale.js +29 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
- package/dist/node_modules/next/dist/client/link.js +311 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
- package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
- package/dist/node_modules/next/dist/lib/constants.js +316 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
- package/dist/node_modules/next/link.js +12 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +2074 -0
- package/dist/node_modules/zod/v4/classic/errors.js +29 -0
- package/dist/node_modules/zod/v4/classic/iso.js +37 -0
- package/dist/node_modules/zod/v4/classic/parse.js +19 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +418 -0
- package/dist/node_modules/zod/v4/core/api.js +404 -0
- package/dist/node_modules/zod/v4/core/checks.js +225 -0
- package/dist/node_modules/zod/v4/core/core.js +61 -0
- package/dist/node_modules/zod/v4/core/errors.js +62 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +148 -0
- package/dist/node_modules/zod/v4/core/parse.js +109 -0
- package/dist/node_modules/zod/v4/core/regexes.js +57 -0
- package/dist/node_modules/zod/v4/core/registries.js +52 -0
- package/dist/node_modules/zod/v4/core/schemas.js +744 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +260 -0
- package/dist/node_modules/zod/v4/core/util.js +155 -0
- package/dist/node_modules/zod/v4/core/versions.js +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.js +2 -3
- package/dist/ui/alert-dialog.js +2 -3
- package/dist/ui/alert.js +2 -3
- package/dist/ui/aspect-ratio.js +1 -2
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +1 -2
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +4 -5
- package/dist/ui/atoms/Pagination/Pagination.js +5 -3
- package/dist/ui/atoms/SearchInput/SearchInput.js +3 -3
- package/dist/ui/avatar.js +2 -3
- package/dist/ui/badge.js +2 -3
- package/dist/ui/breadcrumb.js +5 -5
- package/dist/ui/button.js +2 -3
- package/dist/ui/card.js +2 -3
- package/dist/ui/carousel.js +1 -2
- package/dist/ui/checkbox.js +2 -3
- package/dist/ui/collapsible.js +1 -2
- package/dist/ui/command.js +1 -2
- package/dist/ui/context-menu.js +2 -3
- package/dist/ui/date-picker.js +2 -3
- package/dist/ui/date-range-picker.js +2 -3
- package/dist/ui/datetime-picker.js +1 -2
- package/dist/ui/dialog.js +2 -3
- package/dist/ui/dropdown-menu.js +2 -3
- package/dist/ui/empty-state.js +2 -3
- package/dist/ui/empty.js +2 -3
- package/dist/ui/fab.js +2 -3
- package/dist/ui/field.js +2 -3
- package/dist/ui/form.js +2 -3
- package/dist/ui/hover-card.js +2 -3
- package/dist/ui/icons/Check.js +1 -2
- package/dist/ui/icons/ChevronDown.js +1 -2
- package/dist/ui/icons/ChevronRight.js +1 -2
- package/dist/ui/icons/ChevronUp.js +1 -2
- package/dist/ui/icons/CircleUser.js +1 -2
- package/dist/ui/icons/Info.js +1 -2
- package/dist/ui/icons/Key.js +1 -2
- package/dist/ui/icons/MoonStar.js +1 -2
- package/dist/ui/icons/Sun.js +1 -2
- package/dist/ui/icons/X.js +1 -2
- package/dist/ui/icons/iconWithClassName.js +1 -2
- package/dist/ui/input.js +2 -3
- package/dist/ui/label.js +2 -3
- package/dist/ui/link.js +2 -3
- package/dist/ui/loading-button.js +1 -2
- package/dist/ui/loading-overlay.js +1 -2
- package/dist/ui/loading-screen.js +1 -2
- package/dist/ui/marketing/FeatureGrid.js +1 -2
- package/dist/ui/marketing/Hero.js +2 -3
- package/dist/ui/marketing/PricingTable.js +2 -3
- package/dist/ui/menubar.js +2 -3
- package/dist/ui/molecules/Autocomplete/index.js +1 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +5 -4
- package/dist/ui/molecules/SkeletonList.js +1 -2
- package/dist/ui/nativewind-env.d.js +0 -0
- package/dist/ui/navigation-menu.js +2 -3
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +6 -5
- package/dist/ui/organisms/ListPage/ListPage.js +13 -9
- package/dist/ui/page-header.js +2 -3
- package/dist/ui/password-strength.js +1 -2
- package/dist/ui/popover.js +2 -3
- package/dist/ui/progress.js +2 -3
- package/dist/ui/radio-group.js +2 -3
- package/dist/ui/select.js +2 -3
- package/dist/ui/separator.js +2 -3
- package/dist/ui/sheet.js +1 -2
- package/dist/ui/sidebar.js +1 -2
- package/dist/ui/skeleton.js +2 -3
- package/dist/ui/stack.js +2 -3
- package/dist/ui/stepper.js +2 -3
- package/dist/ui/switch.js +2 -3
- package/dist/ui/table.js +2 -3
- package/dist/ui/tabs.js +2 -3
- package/dist/ui/text.js +2 -3
- package/dist/ui/textarea.js +2 -3
- package/dist/ui/time-picker.js +2 -3
- package/dist/ui/toggle-group.js +2 -3
- package/dist/ui/toggle.js +2 -3
- package/dist/ui/tooltip.js +2 -3
- package/dist/ui/typography.js +2 -3
- package/dist/ui/useColorScheme.js +1 -2
- package/dist/ui/useListState.js +1 -2
- package/dist/ui/usecases/UseCaseCard.js +1 -2
- package/dist/ui/usecases/UserStoryCard.js +1 -2
- package/dist/ui/utils.js +1 -2
- package/package.json +204 -114
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/ui/accordion.d.ts +0 -36
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/accordion.js.map +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -72
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.d.ts +0 -37
- package/dist/ui/alert.d.ts.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.d.ts +0 -12
- package/dist/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -8
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -3
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -19
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -23
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -8
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui/atoms/Pagination/index.d.ts +0 -3
- package/dist/ui/atoms/Pagination/types.d.ts +0 -16
- package/dist/ui/atoms/Pagination/types.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -8
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -13
- package/dist/ui/atoms/SearchInput/types.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts +0 -28
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.d.ts +0 -22
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.d.ts +0 -39
- package/dist/ui/breadcrumb.d.ts.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button.d.ts +0 -26
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/card.d.ts +0 -44
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.d.ts +0 -5
- package/dist/ui/carousel.d.ts.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.d.ts +0 -17
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.d.ts +0 -25
- package/dist/ui/collapsible.d.ts.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.d.ts +0 -5
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/context-menu.d.ts +0 -110
- package/dist/ui/context-menu.d.ts.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/date-picker.d.ts +0 -24
- package/dist/ui/date-picker.d.ts.map +0 -1
- package/dist/ui/date-picker.js.map +0 -1
- package/dist/ui/date-range-picker.d.ts +0 -31
- package/dist/ui/date-range-picker.d.ts.map +0 -1
- package/dist/ui/date-range-picker.js.map +0 -1
- package/dist/ui/datetime-picker.d.ts +0 -28
- package/dist/ui/datetime-picker.d.ts.map +0 -1
- package/dist/ui/datetime-picker.js.map +0 -1
- package/dist/ui/dialog.d.ts +0 -69
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -112
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty-state.d.ts +0 -29
- package/dist/ui/empty-state.d.ts.map +0 -1
- package/dist/ui/empty-state.js.map +0 -1
- package/dist/ui/empty.d.ts +0 -37
- package/dist/ui/empty.d.ts.map +0 -1
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/fab.d.ts +0 -36
- package/dist/ui/fab.d.ts.map +0 -1
- package/dist/ui/fab.js.map +0 -1
- package/dist/ui/field.d.ts +0 -67
- package/dist/ui/field.d.ts.map +0 -1
- package/dist/ui/field.js.map +0 -1
- package/dist/ui/form.d.ts +0 -50
- package/dist/ui/form.d.ts.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.d.ts +0 -30
- package/dist/ui/hover-card.d.ts.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/icons/Check.d.ts +0 -2
- package/dist/ui/icons/Check.js.map +0 -1
- package/dist/ui/icons/ChevronDown.d.ts +0 -2
- package/dist/ui/icons/ChevronDown.js.map +0 -1
- package/dist/ui/icons/ChevronRight.d.ts +0 -2
- package/dist/ui/icons/ChevronRight.js.map +0 -1
- package/dist/ui/icons/ChevronUp.d.ts +0 -2
- package/dist/ui/icons/ChevronUp.js.map +0 -1
- package/dist/ui/icons/CircleUser.d.ts +0 -2
- package/dist/ui/icons/CircleUser.js.map +0 -1
- package/dist/ui/icons/Info.d.ts +0 -2
- package/dist/ui/icons/Info.js.map +0 -1
- package/dist/ui/icons/Key.d.ts +0 -2
- package/dist/ui/icons/Key.js.map +0 -1
- package/dist/ui/icons/MoonStar.d.ts +0 -2
- package/dist/ui/icons/MoonStar.js.map +0 -1
- package/dist/ui/icons/Sun.d.ts +0 -2
- package/dist/ui/icons/Sun.js.map +0 -1
- package/dist/ui/icons/X.d.ts +0 -2
- package/dist/ui/icons/X.js.map +0 -1
- package/dist/ui/icons/iconWithClassName.d.ts +0 -7
- package/dist/ui/icons/iconWithClassName.d.ts.map +0 -1
- package/dist/ui/icons/iconWithClassName.js.map +0 -1
- package/dist/ui/input.d.ts +0 -15
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.d.ts +0 -16
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.d.ts +0 -14
- package/dist/ui/link.d.ts.map +0 -1
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/loading-button.d.ts +0 -20
- package/dist/ui/loading-button.d.ts.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/loading-overlay.d.ts +0 -16
- package/dist/ui/loading-overlay.d.ts.map +0 -1
- package/dist/ui/loading-overlay.js.map +0 -1
- package/dist/ui/loading-screen.d.ts +0 -14
- package/dist/ui/loading-screen.d.ts.map +0 -1
- package/dist/ui/loading-screen.js.map +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -21
- package/dist/ui/marketing/FeatureGrid.d.ts.map +0 -1
- package/dist/ui/marketing/FeatureGrid.js.map +0 -1
- package/dist/ui/marketing/Hero.d.ts +0 -28
- package/dist/ui/marketing/Hero.d.ts.map +0 -1
- package/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui/marketing/PricingTable.d.ts +0 -25
- package/dist/ui/marketing/PricingTable.d.ts.map +0 -1
- package/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui/marketing/index.d.ts +0 -4
- package/dist/ui/menubar.d.ts +0 -115
- package/dist/ui/menubar.d.ts.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -5
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -8
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -25
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts +0 -16
- package/dist/ui/molecules/SkeletonList.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.js.map +0 -1
- package/dist/ui/nativewind-env.d.ts +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -68
- package/dist/ui/navigation-menu.d.ts.map +0 -1
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -30
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -29
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui/organisms/ListPage/index.d.ts +0 -3
- package/dist/ui/organisms/ListPage/types.d.ts +0 -42
- package/dist/ui/organisms/ListPage/types.d.ts.map +0 -1
- package/dist/ui/page-header.d.ts +0 -27
- package/dist/ui/page-header.d.ts.map +0 -1
- package/dist/ui/page-header.js.map +0 -1
- package/dist/ui/password-strength.d.ts +0 -21
- package/dist/ui/password-strength.d.ts.map +0 -1
- package/dist/ui/password-strength.js.map +0 -1
- package/dist/ui/popover.d.ts +0 -30
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.d.ts +0 -17
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.d.ts +0 -15
- package/dist/ui/radio-group.d.ts.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/select.d.ts +0 -84
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.d.ts +0 -16
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.d.ts +0 -5
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/sidebar.d.ts +0 -5
- package/dist/ui/sidebar.d.ts.map +0 -1
- package/dist/ui/sidebar.js.map +0 -1
- package/dist/ui/skeleton.d.ts +0 -12
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/stack.d.ts +0 -77
- package/dist/ui/stack.d.ts.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stepper.d.ts +0 -23
- package/dist/ui/stepper.d.ts.map +0 -1
- package/dist/ui/stepper.js.map +0 -1
- package/dist/ui/switch.d.ts +0 -15
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.d.ts +0 -51
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.d.ts +0 -33
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.d.ts +0 -21
- package/dist/ui/text.d.ts.map +0 -1
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.d.ts +0 -10
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/time-picker.d.ts +0 -22
- package/dist/ui/time-picker.d.ts.map +0 -1
- package/dist/ui/time-picker.js.map +0 -1
- package/dist/ui/toggle-group.d.ts +0 -36
- package/dist/ui/toggle-group.d.ts.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.d.ts +0 -34
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.d.ts +0 -32
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/typography.d.ts +0 -65
- package/dist/ui/typography.d.ts.map +0 -1
- package/dist/ui/typography.js.map +0 -1
- package/dist/ui/useColorScheme.d.ts +0 -12
- package/dist/ui/useColorScheme.d.ts.map +0 -1
- package/dist/ui/useColorScheme.js.map +0 -1
- package/dist/ui/useListState.d.ts +0 -34
- package/dist/ui/useListState.d.ts.map +0 -1
- package/dist/ui/useListState.js.map +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -19
- package/dist/ui/usecases/UseCaseCard.d.ts.map +0 -1
- package/dist/ui/usecases/UseCaseCard.js.map +0 -1
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -15
- package/dist/ui/usecases/UserStoryCard.d.ts.map +0 -1
- package/dist/ui/usecases/UserStoryCard.js.map +0 -1
- package/dist/ui/usecases/index.d.ts +0 -3
- package/dist/ui/utils.d.ts +0 -7
- package/dist/ui/utils.d.ts.map +0 -1
- package/dist/ui/utils.js.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/querystring.js
|
|
4
|
+
var require_querystring = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
assign: function() {
|
|
14
|
+
return assign;
|
|
15
|
+
},
|
|
16
|
+
searchParamsToUrlQuery: function() {
|
|
17
|
+
return searchParamsToUrlQuery;
|
|
18
|
+
},
|
|
19
|
+
urlQueryToSearchParams: function() {
|
|
20
|
+
return urlQueryToSearchParams;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function searchParamsToUrlQuery(searchParams) {
|
|
24
|
+
const query = {};
|
|
25
|
+
for (const [key, value] of searchParams.entries()) {
|
|
26
|
+
const existing = query[key];
|
|
27
|
+
if (typeof existing === "undefined") query[key] = value;
|
|
28
|
+
else if (Array.isArray(existing)) existing.push(value);
|
|
29
|
+
else query[key] = [existing, value];
|
|
30
|
+
}
|
|
31
|
+
return query;
|
|
32
|
+
}
|
|
33
|
+
function stringifyUrlQueryParam(param) {
|
|
34
|
+
if (typeof param === "string") return param;
|
|
35
|
+
if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") return String(param);
|
|
36
|
+
else return "";
|
|
37
|
+
}
|
|
38
|
+
function urlQueryToSearchParams(query) {
|
|
39
|
+
const searchParams = new URLSearchParams();
|
|
40
|
+
for (const [key, value] of Object.entries(query)) if (Array.isArray(value)) for (const item of value) searchParams.append(key, stringifyUrlQueryParam(item));
|
|
41
|
+
else searchParams.set(key, stringifyUrlQueryParam(value));
|
|
42
|
+
return searchParams;
|
|
43
|
+
}
|
|
44
|
+
function assign(target, ...searchParamsList) {
|
|
45
|
+
for (const searchParams of searchParamsList) {
|
|
46
|
+
for (const key of searchParams.keys()) target.delete(key);
|
|
47
|
+
for (const [key, value] of searchParams.entries()) target.append(key, value);
|
|
48
|
+
}
|
|
49
|
+
return target;
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export default require_querystring();
|
|
55
|
+
|
|
56
|
+
export { require_querystring };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
4
|
+
/**
|
|
5
|
+
* Removes the trailing slash for a given route or page path. Preserves the
|
|
6
|
+
* root page. Examples:
|
|
7
|
+
* - `/foo/bar/` -> `/foo/bar`
|
|
8
|
+
* - `/foo/bar` -> `/foo/bar`
|
|
9
|
+
* - `/` -> `/`
|
|
10
|
+
*/ var require_remove_trailing_slash = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return removeTrailingSlash;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function removeTrailingSlash(route) {
|
|
19
|
+
return route.replace(/\/$/, "") || "/";
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export default require_remove_trailing_slash();
|
|
25
|
+
|
|
26
|
+
export { require_remove_trailing_slash };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_path_to_regexp } from "../../../../compiled/path-to-regexp/index.js";
|
|
3
|
+
import { require_route_pattern_normalizer } from "../../../../lib/route-pattern-normalizer.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/route-match-utils.js
|
|
6
|
+
/**
|
|
7
|
+
* Client-safe utilities for route matching that don't import server-side
|
|
8
|
+
* utilities to avoid bundling issues with Turbopack
|
|
9
|
+
*/ var require_route_match_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
function _export(target, all) {
|
|
12
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: all[name]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
_export(exports, {
|
|
18
|
+
safeCompile: function() {
|
|
19
|
+
return safeCompile;
|
|
20
|
+
},
|
|
21
|
+
safePathToRegexp: function() {
|
|
22
|
+
return safePathToRegexp;
|
|
23
|
+
},
|
|
24
|
+
safeRegexpToFunction: function() {
|
|
25
|
+
return safeRegexpToFunction;
|
|
26
|
+
},
|
|
27
|
+
safeRouteMatcher: function() {
|
|
28
|
+
return safeRouteMatcher;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const _pathtoregexp = require_path_to_regexp();
|
|
32
|
+
const _routepatternnormalizer = require_route_pattern_normalizer();
|
|
33
|
+
function safePathToRegexp(route, keys, options) {
|
|
34
|
+
if (typeof route !== "string") return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
|
|
35
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
36
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
37
|
+
try {
|
|
38
|
+
return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
if (!needsNormalization) try {
|
|
41
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
42
|
+
return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
|
|
43
|
+
} catch (retryError) {
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function safeCompile(route, options) {
|
|
50
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
51
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
52
|
+
try {
|
|
53
|
+
const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
|
|
54
|
+
if (needsNormalization) return (params) => {
|
|
55
|
+
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
56
|
+
};
|
|
57
|
+
return compiler;
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (!needsNormalization) try {
|
|
60
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
61
|
+
const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
|
|
62
|
+
return (params) => {
|
|
63
|
+
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
64
|
+
};
|
|
65
|
+
} catch (retryError) {
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function safeRegexpToFunction(regexp, keys) {
|
|
72
|
+
const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
|
|
73
|
+
return (pathname) => {
|
|
74
|
+
const result = originalMatcher(pathname);
|
|
75
|
+
if (!result) return false;
|
|
76
|
+
return {
|
|
77
|
+
...result,
|
|
78
|
+
params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function safeRouteMatcher(matcherFn) {
|
|
83
|
+
return (pathname) => {
|
|
84
|
+
const result = matcherFn(pathname);
|
|
85
|
+
if (!result) return false;
|
|
86
|
+
return (0, _routepatternnormalizer.stripParameterSeparators)(result);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}));
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
export default require_route_match_utils();
|
|
93
|
+
|
|
94
|
+
export { require_route_match_utils };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_utils } from "../../utils.js";
|
|
3
|
+
import { require_route_match_utils } from "./route-match-utils.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js
|
|
6
|
+
var require_route_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
Object.defineProperty(exports, "getRouteMatcher", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return getRouteMatcher;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const _utils = require_utils();
|
|
15
|
+
const _routematchutils = require_route_match_utils();
|
|
16
|
+
function getRouteMatcher({ re, groups }) {
|
|
17
|
+
const rawMatcher = (pathname) => {
|
|
18
|
+
const routeMatch = re.exec(pathname);
|
|
19
|
+
if (!routeMatch) return false;
|
|
20
|
+
const decode = (param) => {
|
|
21
|
+
try {
|
|
22
|
+
return decodeURIComponent(param);
|
|
23
|
+
} catch {
|
|
24
|
+
throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
|
|
25
|
+
value: "E528",
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const params = {};
|
|
32
|
+
for (const [key, group] of Object.entries(groups)) {
|
|
33
|
+
const match = routeMatch[group.pos];
|
|
34
|
+
if (match !== void 0) if (group.repeat) params[key] = match.split("/").map((entry) => decode(entry));
|
|
35
|
+
else params[key] = decode(match);
|
|
36
|
+
}
|
|
37
|
+
return params;
|
|
38
|
+
};
|
|
39
|
+
return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export default require_route_matcher();
|
|
45
|
+
|
|
46
|
+
export { require_route_matcher };
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_remove_trailing_slash } from "./remove-trailing-slash.js";
|
|
3
|
+
import { require_interception_routes } from "./interception-routes.js";
|
|
4
|
+
import { require_constants } from "../../../../lib/constants.js";
|
|
5
|
+
import { require_escape_regexp } from "../../escape-regexp.js";
|
|
6
|
+
import { require_get_dynamic_param } from "./get-dynamic-param.js";
|
|
7
|
+
|
|
8
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js
|
|
9
|
+
var require_route_regex = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
function _export(target, all) {
|
|
12
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: all[name]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
_export(exports, {
|
|
18
|
+
getNamedMiddlewareRegex: function() {
|
|
19
|
+
return getNamedMiddlewareRegex;
|
|
20
|
+
},
|
|
21
|
+
getNamedRouteRegex: function() {
|
|
22
|
+
return getNamedRouteRegex;
|
|
23
|
+
},
|
|
24
|
+
getRouteRegex: function() {
|
|
25
|
+
return getRouteRegex;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _constants = require_constants();
|
|
29
|
+
const _interceptionroutes = require_interception_routes();
|
|
30
|
+
const _escaperegexp = require_escape_regexp();
|
|
31
|
+
const _removetrailingslash = require_remove_trailing_slash();
|
|
32
|
+
const _getdynamicparam = require_get_dynamic_param();
|
|
33
|
+
function getParametrizedRoute(route, includeSuffix, includePrefix) {
|
|
34
|
+
const groups = {};
|
|
35
|
+
let groupIndex = 1;
|
|
36
|
+
const segments = [];
|
|
37
|
+
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
38
|
+
const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
39
|
+
const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
|
|
40
|
+
if (markerMatch && paramMatches && paramMatches[2]) {
|
|
41
|
+
const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
|
|
42
|
+
groups[key] = {
|
|
43
|
+
pos: groupIndex++,
|
|
44
|
+
repeat,
|
|
45
|
+
optional
|
|
46
|
+
};
|
|
47
|
+
segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
|
|
48
|
+
} else if (paramMatches && paramMatches[2]) {
|
|
49
|
+
const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
|
|
50
|
+
groups[key] = {
|
|
51
|
+
pos: groupIndex++,
|
|
52
|
+
repeat,
|
|
53
|
+
optional
|
|
54
|
+
};
|
|
55
|
+
if (includePrefix && paramMatches[1]) segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
|
|
56
|
+
let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
57
|
+
if (includePrefix && paramMatches[1]) s = s.substring(1);
|
|
58
|
+
segments.push(s);
|
|
59
|
+
} else segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
|
|
60
|
+
if (includeSuffix && paramMatches && paramMatches[3]) segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
parameterizedRoute: segments.join(""),
|
|
64
|
+
groups
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
|
|
68
|
+
const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
|
|
69
|
+
let re = parameterizedRoute;
|
|
70
|
+
if (!excludeOptionalTrailingSlash) re += "(?:/)?";
|
|
71
|
+
return {
|
|
72
|
+
re: /* @__PURE__ */ new RegExp(`^${re}$`),
|
|
73
|
+
groups
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Builds a function to generate a minimal routeKey using only a-z and minimal
|
|
78
|
+
* number of characters.
|
|
79
|
+
*/ function buildGetSafeRouteKey() {
|
|
80
|
+
let i = 0;
|
|
81
|
+
return () => {
|
|
82
|
+
let routeKey = "";
|
|
83
|
+
let j = ++i;
|
|
84
|
+
while (j > 0) {
|
|
85
|
+
routeKey += String.fromCharCode(97 + (j - 1) % 26);
|
|
86
|
+
j = Math.floor((j - 1) / 26);
|
|
87
|
+
}
|
|
88
|
+
return routeKey;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
|
|
92
|
+
const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
|
|
93
|
+
let cleanedKey = key.replace(/\W/g, "");
|
|
94
|
+
if (keyPrefix) cleanedKey = `${keyPrefix}${cleanedKey}`;
|
|
95
|
+
let invalidKey = false;
|
|
96
|
+
if (cleanedKey.length === 0 || cleanedKey.length > 30) invalidKey = true;
|
|
97
|
+
if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) invalidKey = true;
|
|
98
|
+
if (invalidKey) cleanedKey = getSafeRouteKey();
|
|
99
|
+
const duplicateKey = cleanedKey in routeKeys;
|
|
100
|
+
if (keyPrefix) routeKeys[cleanedKey] = `${keyPrefix}${key}`;
|
|
101
|
+
else routeKeys[cleanedKey] = key;
|
|
102
|
+
const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
|
|
103
|
+
let pattern;
|
|
104
|
+
if (duplicateKey && backreferenceDuplicateKeys) pattern = `\\k<${cleanedKey}>`;
|
|
105
|
+
else if (repeat) pattern = `(?<${cleanedKey}>.+?)`;
|
|
106
|
+
else pattern = `(?<${cleanedKey}>[^/]+?)`;
|
|
107
|
+
return {
|
|
108
|
+
key,
|
|
109
|
+
pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
|
|
110
|
+
cleanedKey,
|
|
111
|
+
optional,
|
|
112
|
+
repeat
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
|
|
116
|
+
names: {},
|
|
117
|
+
intercepted: {}
|
|
118
|
+
}) {
|
|
119
|
+
const getSafeRouteKey = buildGetSafeRouteKey();
|
|
120
|
+
const routeKeys = {};
|
|
121
|
+
const segments = [];
|
|
122
|
+
const inverseParts = [];
|
|
123
|
+
reference = structuredClone(reference);
|
|
124
|
+
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
125
|
+
const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
|
|
126
|
+
const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
|
|
127
|
+
const interceptionMarker = hasInterceptionMarker ? paramMatches?.[1] : void 0;
|
|
128
|
+
let keyPrefix;
|
|
129
|
+
if (interceptionMarker && paramMatches?.[2]) {
|
|
130
|
+
keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
|
|
131
|
+
reference.intercepted[paramMatches[2]] = interceptionMarker;
|
|
132
|
+
} else if (paramMatches?.[2] && reference.intercepted[paramMatches[2]]) keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
|
|
133
|
+
else keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0;
|
|
134
|
+
if (interceptionMarker && paramMatches && paramMatches[2]) {
|
|
135
|
+
const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
|
|
136
|
+
getSafeRouteKey,
|
|
137
|
+
interceptionMarker,
|
|
138
|
+
segment: paramMatches[2],
|
|
139
|
+
routeKeys,
|
|
140
|
+
keyPrefix,
|
|
141
|
+
backreferenceDuplicateKeys
|
|
142
|
+
});
|
|
143
|
+
segments.push(pattern);
|
|
144
|
+
inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
|
|
145
|
+
reference.names[key] ??= cleanedKey;
|
|
146
|
+
} else if (paramMatches && paramMatches[2]) {
|
|
147
|
+
if (includePrefix && paramMatches[1]) {
|
|
148
|
+
segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
|
|
149
|
+
inverseParts.push(`/${paramMatches[1]}`);
|
|
150
|
+
}
|
|
151
|
+
const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
|
|
152
|
+
getSafeRouteKey,
|
|
153
|
+
segment: paramMatches[2],
|
|
154
|
+
routeKeys,
|
|
155
|
+
keyPrefix,
|
|
156
|
+
backreferenceDuplicateKeys
|
|
157
|
+
});
|
|
158
|
+
let s = pattern;
|
|
159
|
+
if (includePrefix && paramMatches[1]) s = s.substring(1);
|
|
160
|
+
segments.push(s);
|
|
161
|
+
inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
|
|
162
|
+
reference.names[key] ??= cleanedKey;
|
|
163
|
+
} else {
|
|
164
|
+
segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
|
|
165
|
+
inverseParts.push(`/${segment}`);
|
|
166
|
+
}
|
|
167
|
+
if (includeSuffix && paramMatches && paramMatches[3]) {
|
|
168
|
+
segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
169
|
+
inverseParts.push(paramMatches[3]);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
namedParameterizedRoute: segments.join(""),
|
|
174
|
+
routeKeys,
|
|
175
|
+
pathToRegexpPattern: inverseParts.join(""),
|
|
176
|
+
reference
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function getNamedRouteRegex(normalizedRoute, options) {
|
|
180
|
+
const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);
|
|
181
|
+
let namedRegex = result.namedParameterizedRoute;
|
|
182
|
+
if (!options.excludeOptionalTrailingSlash) namedRegex += "(?:/)?";
|
|
183
|
+
return {
|
|
184
|
+
...getRouteRegex(normalizedRoute, options),
|
|
185
|
+
namedRegex: `^${namedRegex}$`,
|
|
186
|
+
routeKeys: result.routeKeys,
|
|
187
|
+
pathToRegexpPattern: result.pathToRegexpPattern,
|
|
188
|
+
reference: result.reference
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function getNamedMiddlewareRegex(normalizedRoute, options) {
|
|
192
|
+
const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
|
|
193
|
+
const { catchAll = true } = options;
|
|
194
|
+
if (parameterizedRoute === "/") return { namedRegex: `^/${catchAll ? ".*" : ""}$` };
|
|
195
|
+
const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, void 0);
|
|
196
|
+
return { namedRegex: `^${namedParameterizedRoute}${catchAll ? "(?:(/.*)?)" : ""}$` };
|
|
197
|
+
}
|
|
198
|
+
}));
|
|
199
|
+
|
|
200
|
+
//#endregion
|
|
201
|
+
export default require_route_regex();
|
|
202
|
+
|
|
203
|
+
export { require_route_regex };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
|
|
4
|
+
var require_sorted_routes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
getSortedRouteObjects: function() {
|
|
14
|
+
return getSortedRouteObjects;
|
|
15
|
+
},
|
|
16
|
+
getSortedRoutes: function() {
|
|
17
|
+
return getSortedRoutes;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var UrlNode = class UrlNode {
|
|
21
|
+
insert(urlPath) {
|
|
22
|
+
this._insert(urlPath.split("/").filter(Boolean), [], false);
|
|
23
|
+
}
|
|
24
|
+
smoosh() {
|
|
25
|
+
return this._smoosh();
|
|
26
|
+
}
|
|
27
|
+
_smoosh(prefix = "/") {
|
|
28
|
+
const childrenPaths = [...this.children.keys()].sort();
|
|
29
|
+
if (this.slugName !== null) childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
|
|
30
|
+
if (this.restSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
|
|
31
|
+
if (this.optionalRestSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
|
|
32
|
+
const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [...prev, ...curr], []);
|
|
33
|
+
if (this.slugName !== null) routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
|
|
34
|
+
if (!this.placeholder) {
|
|
35
|
+
const r = prefix === "/" ? "/" : prefix.slice(0, -1);
|
|
36
|
+
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
|
|
37
|
+
value: "E458",
|
|
38
|
+
enumerable: false,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
routes.unshift(r);
|
|
42
|
+
}
|
|
43
|
+
if (this.restSlugName !== null) routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
|
|
44
|
+
if (this.optionalRestSlugName !== null) routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
|
|
45
|
+
return routes;
|
|
46
|
+
}
|
|
47
|
+
_insert(urlPaths, slugNames, isCatchAll) {
|
|
48
|
+
if (urlPaths.length === 0) {
|
|
49
|
+
this.placeholder = false;
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (isCatchAll) throw Object.defineProperty(/* @__PURE__ */ new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
|
|
53
|
+
value: "E392",
|
|
54
|
+
enumerable: false,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
let nextSegment = urlPaths[0];
|
|
58
|
+
if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
|
|
59
|
+
let segmentName = nextSegment.slice(1, -1);
|
|
60
|
+
let isOptional = false;
|
|
61
|
+
if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
|
|
62
|
+
segmentName = segmentName.slice(1, -1);
|
|
63
|
+
isOptional = true;
|
|
64
|
+
}
|
|
65
|
+
if (segmentName.startsWith("…")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
|
|
66
|
+
value: "E147",
|
|
67
|
+
enumerable: false,
|
|
68
|
+
configurable: true
|
|
69
|
+
});
|
|
70
|
+
if (segmentName.startsWith("...")) {
|
|
71
|
+
segmentName = segmentName.substring(3);
|
|
72
|
+
isCatchAll = true;
|
|
73
|
+
}
|
|
74
|
+
if (segmentName.startsWith("[") || segmentName.endsWith("]")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
|
|
75
|
+
value: "E421",
|
|
76
|
+
enumerable: false,
|
|
77
|
+
configurable: true
|
|
78
|
+
});
|
|
79
|
+
if (segmentName.startsWith(".")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
|
|
80
|
+
value: "E288",
|
|
81
|
+
enumerable: false,
|
|
82
|
+
configurable: true
|
|
83
|
+
});
|
|
84
|
+
function handleSlug(previousSlug, nextSlug) {
|
|
85
|
+
if (previousSlug !== null) {
|
|
86
|
+
if (previousSlug !== nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
|
|
87
|
+
value: "E337",
|
|
88
|
+
enumerable: false,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
slugNames.forEach((slug) => {
|
|
93
|
+
if (slug === nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
|
|
94
|
+
value: "E247",
|
|
95
|
+
enumerable: false,
|
|
96
|
+
configurable: true
|
|
97
|
+
});
|
|
98
|
+
if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
|
|
99
|
+
value: "E499",
|
|
100
|
+
enumerable: false,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
slugNames.push(nextSlug);
|
|
105
|
+
}
|
|
106
|
+
if (isCatchAll) if (isOptional) {
|
|
107
|
+
if (this.restSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
|
|
108
|
+
value: "E299",
|
|
109
|
+
enumerable: false,
|
|
110
|
+
configurable: true
|
|
111
|
+
});
|
|
112
|
+
handleSlug(this.optionalRestSlugName, segmentName);
|
|
113
|
+
this.optionalRestSlugName = segmentName;
|
|
114
|
+
nextSegment = "[[...]]";
|
|
115
|
+
} else {
|
|
116
|
+
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
|
|
117
|
+
value: "E300",
|
|
118
|
+
enumerable: false,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
handleSlug(this.restSlugName, segmentName);
|
|
122
|
+
this.restSlugName = segmentName;
|
|
123
|
+
nextSegment = "[...]";
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (isOptional) throw Object.defineProperty(/* @__PURE__ */ new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
|
|
127
|
+
value: "E435",
|
|
128
|
+
enumerable: false,
|
|
129
|
+
configurable: true
|
|
130
|
+
});
|
|
131
|
+
handleSlug(this.slugName, segmentName);
|
|
132
|
+
this.slugName = segmentName;
|
|
133
|
+
nextSegment = "[]";
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (!this.children.has(nextSegment)) this.children.set(nextSegment, new UrlNode());
|
|
137
|
+
this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
|
|
138
|
+
}
|
|
139
|
+
constructor() {
|
|
140
|
+
this.placeholder = true;
|
|
141
|
+
this.children = /* @__PURE__ */ new Map();
|
|
142
|
+
this.slugName = null;
|
|
143
|
+
this.restSlugName = null;
|
|
144
|
+
this.optionalRestSlugName = null;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
function getSortedRoutes(normalizedPages) {
|
|
148
|
+
const root = new UrlNode();
|
|
149
|
+
normalizedPages.forEach((pagePath) => root.insert(pagePath));
|
|
150
|
+
return root.smoosh();
|
|
151
|
+
}
|
|
152
|
+
function getSortedRouteObjects(objects, getter) {
|
|
153
|
+
const indexes = {};
|
|
154
|
+
const pathnames = [];
|
|
155
|
+
for (let i = 0; i < objects.length; i++) {
|
|
156
|
+
const pathname = getter(objects[i]);
|
|
157
|
+
indexes[pathname] = i;
|
|
158
|
+
pathnames[i] = pathname;
|
|
159
|
+
}
|
|
160
|
+
return getSortedRoutes(pathnames).map((pathname) => objects[indexes[pathname]]);
|
|
161
|
+
}
|
|
162
|
+
}));
|
|
163
|
+
|
|
164
|
+
//#endregion
|
|
165
|
+
export default require_sorted_routes();
|
|
166
|
+
|
|
167
|
+
export { require_sorted_routes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require__interop_require_default } from "../../../../@swc/helpers/cjs/_interop_require_default.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/dist/shared/lib/router-context.shared-runtime.js
|
|
5
|
+
var require_router_context_shared_runtime = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
Object.defineProperty(exports, "RouterContext", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return RouterContext;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const RouterContext = (/* @__PURE__ */ require__interop_require_default()._(__require("react"))).default.createContext(null);
|
|
14
|
+
RouterContext.displayName = "RouterContext";
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export default require_router_context_shared_runtime();
|
|
19
|
+
|
|
20
|
+
export { require_router_context_shared_runtime };
|