@lssm/lib.ui-kit 0.0.0-canary-20251120170226
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 +75 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +35 -0
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -0
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +119 -0
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +2062 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/errors.js +30 -0
- package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/iso.js +38 -0
- package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/parse.js +20 -0
- package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +395 -0
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/api.js +377 -0
- package/dist/node_modules/zod/v4/core/api.js.map +1 -0
- package/dist/node_modules/zod/v4/core/checks.js +226 -0
- package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
- package/dist/node_modules/zod/v4/core/core.js +57 -0
- package/dist/node_modules/zod/v4/core/core.js.map +1 -0
- package/dist/node_modules/zod/v4/core/errors.js +63 -0
- package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
- package/dist/node_modules/zod/v4/core/parse.js +110 -0
- package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
- package/dist/node_modules/zod/v4/core/regexes.js +59 -0
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
- package/dist/node_modules/zod/v4/core/registries.js +53 -0
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
- package/dist/node_modules/zod/v4/core/schemas.js +755 -0
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
- package/dist/node_modules/zod/v4/core/util.js +152 -0
- package/dist/node_modules/zod/v4/core/util.js.map +1 -0
- package/dist/node_modules/zod/v4/core/versions.js +10 -0
- package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/ui/accordion.d.ts +36 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +93 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.d.ts +72 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +98 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +37 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +50 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.d.ts +12 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +8 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +8 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +58 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -0
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -0
- package/dist/ui/atoms/FilterSelect/index.js +3 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts +19 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +23 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +48 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +3 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts +8 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/Pagination.js +163 -0
- package/dist/ui/atoms/Pagination/Pagination.js.map +1 -0
- package/dist/ui/atoms/Pagination/index.d.ts +3 -0
- package/dist/ui/atoms/Pagination/index.js +3 -0
- package/dist/ui/atoms/Pagination/types.d.ts +16 -0
- package/dist/ui/atoms/Pagination/types.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/types.js +0 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +8 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.js +50 -0
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -0
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -0
- package/dist/ui/atoms/SearchInput/index.js +3 -0
- package/dist/ui/atoms/SearchInput/types.d.ts +13 -0
- package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/types.js +0 -0
- package/dist/ui/avatar.d.ts +28 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +28 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +22 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +26 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/breadcrumb.d.ts +39 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +73 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button.d.ts +26 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +75 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +44 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +52 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.d.ts +5 -0
- package/dist/ui/carousel.d.ts.map +1 -0
- package/dist/ui/carousel.js +6 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/checkbox.d.ts +17 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +21 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/collapsible.d.ts +25 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +10 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/command.d.ts +5 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/command.js +6 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/context-menu.d.ts +110 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +108 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/date-picker.d.ts +24 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.js +54 -0
- package/dist/ui/date-picker.js.map +1 -0
- package/dist/ui/date-range-picker.d.ts +31 -0
- package/dist/ui/date-range-picker.d.ts.map +1 -0
- package/dist/ui/date-range-picker.js +86 -0
- package/dist/ui/date-range-picker.js.map +1 -0
- package/dist/ui/datetime-picker.d.ts +28 -0
- package/dist/ui/datetime-picker.d.ts.map +1 -0
- package/dist/ui/datetime-picker.js +45 -0
- package/dist/ui/datetime-picker.js.map +1 -0
- package/dist/ui/dialog.d.ts +69 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +81 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +112 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +110 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/empty-state.d.ts +29 -0
- package/dist/ui/empty-state.d.ts.map +1 -0
- package/dist/ui/empty-state.js +46 -0
- package/dist/ui/empty-state.js.map +1 -0
- package/dist/ui/empty.d.ts +37 -0
- package/dist/ui/empty.d.ts.map +1 -0
- package/dist/ui/empty.js +63 -0
- package/dist/ui/empty.js.map +1 -0
- package/dist/ui/fab.d.ts +36 -0
- package/dist/ui/fab.d.ts.map +1 -0
- package/dist/ui/fab.js +104 -0
- package/dist/ui/fab.js.map +1 -0
- package/dist/ui/field.d.ts +67 -0
- package/dist/ui/field.d.ts.map +1 -0
- package/dist/ui/field.js +124 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/form.d.ts +50 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +96 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/hover-card.d.ts +30 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/hover-card.js +33 -0
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/icons/Check.d.ts +2 -0
- package/dist/ui/icons/Check.js +9 -0
- package/dist/ui/icons/Check.js.map +1 -0
- package/dist/ui/icons/ChevronDown.d.ts +2 -0
- package/dist/ui/icons/ChevronDown.js +9 -0
- package/dist/ui/icons/ChevronDown.js.map +1 -0
- package/dist/ui/icons/ChevronRight.d.ts +2 -0
- package/dist/ui/icons/ChevronRight.js +9 -0
- package/dist/ui/icons/ChevronRight.js.map +1 -0
- package/dist/ui/icons/ChevronUp.d.ts +2 -0
- package/dist/ui/icons/ChevronUp.js +9 -0
- package/dist/ui/icons/ChevronUp.js.map +1 -0
- package/dist/ui/icons/CircleUser.d.ts +2 -0
- package/dist/ui/icons/CircleUser.js +9 -0
- package/dist/ui/icons/CircleUser.js.map +1 -0
- package/dist/ui/icons/Info.d.ts +2 -0
- package/dist/ui/icons/Info.js +9 -0
- package/dist/ui/icons/Info.js.map +1 -0
- package/dist/ui/icons/Key.d.ts +2 -0
- package/dist/ui/icons/Key.js +9 -0
- package/dist/ui/icons/Key.js.map +1 -0
- package/dist/ui/icons/MoonStar.d.ts +2 -0
- package/dist/ui/icons/MoonStar.js +9 -0
- package/dist/ui/icons/MoonStar.js.map +1 -0
- package/dist/ui/icons/Sun.d.ts +2 -0
- package/dist/ui/icons/Sun.js +9 -0
- package/dist/ui/icons/Sun.js.map +1 -0
- package/dist/ui/icons/X.d.ts +2 -0
- package/dist/ui/icons/X.js +9 -0
- package/dist/ui/icons/X.js.map +1 -0
- package/dist/ui/icons/iconWithClassName.d.ts +7 -0
- package/dist/ui/icons/iconWithClassName.d.ts.map +1 -0
- package/dist/ui/icons/iconWithClassName.js +16 -0
- package/dist/ui/icons/iconWithClassName.js.map +1 -0
- package/dist/ui/input.d.ts +15 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +17 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/label.d.ts +16 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +24 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/link.d.ts +14 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +16 -0
- package/dist/ui/link.js.map +1 -0
- package/dist/ui/loading-button.d.ts +20 -0
- package/dist/ui/loading-button.d.ts.map +1 -0
- package/dist/ui/loading-button.js +22 -0
- package/dist/ui/loading-button.js.map +1 -0
- package/dist/ui/loading-overlay.d.ts +16 -0
- package/dist/ui/loading-overlay.d.ts.map +1 -0
- package/dist/ui/loading-overlay.js +44 -0
- package/dist/ui/loading-overlay.js.map +1 -0
- package/dist/ui/loading-screen.d.ts +14 -0
- package/dist/ui/loading-screen.d.ts.map +1 -0
- package/dist/ui/loading-screen.js +93 -0
- package/dist/ui/loading-screen.js.map +1 -0
- package/dist/ui/marketing/FeatureGrid.d.ts +21 -0
- package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -0
- package/dist/ui/marketing/FeatureGrid.js +35 -0
- package/dist/ui/marketing/FeatureGrid.js.map +1 -0
- package/dist/ui/marketing/Hero.d.ts +28 -0
- package/dist/ui/marketing/Hero.d.ts.map +1 -0
- package/dist/ui/marketing/Hero.js +52 -0
- package/dist/ui/marketing/Hero.js.map +1 -0
- package/dist/ui/marketing/PricingTable.d.ts +25 -0
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -0
- package/dist/ui/marketing/PricingTable.js +60 -0
- package/dist/ui/marketing/PricingTable.js.map +1 -0
- package/dist/ui/marketing/index.d.ts +4 -0
- package/dist/ui/marketing/index.js +5 -0
- package/dist/ui/menubar.d.ts +115 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +120 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts +5 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -0
- package/dist/ui/molecules/Autocomplete/index.js +6 -0
- package/dist/ui/molecules/Autocomplete/index.js.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +8 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +106 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +3 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +25 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/ui/molecules/SkeletonList.d.ts +16 -0
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -0
- package/dist/ui/molecules/SkeletonList.js +15 -0
- package/dist/ui/molecules/SkeletonList.js.map +1 -0
- package/dist/ui/nativewind-env.d.ts +1 -0
- package/dist/ui/navigation-menu.d.ts +68 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +87 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +30 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +108 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +3 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts +29 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/ListPage.js +198 -0
- package/dist/ui/organisms/ListPage/ListPage.js.map +1 -0
- package/dist/ui/organisms/ListPage/index.d.ts +3 -0
- package/dist/ui/organisms/ListPage/index.js +3 -0
- package/dist/ui/organisms/ListPage/types.d.ts +42 -0
- package/dist/ui/organisms/ListPage/types.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/types.js +0 -0
- package/dist/ui/page-header.d.ts +27 -0
- package/dist/ui/page-header.d.ts.map +1 -0
- package/dist/ui/page-header.js +41 -0
- package/dist/ui/page-header.js.map +1 -0
- package/dist/ui/password-strength.d.ts +21 -0
- package/dist/ui/password-strength.d.ts.map +1 -0
- package/dist/ui/password-strength.js +99 -0
- package/dist/ui/password-strength.js.map +1 -0
- package/dist/ui/popover.d.ts +30 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +35 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/progress.d.ts +17 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +40 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio-group.d.ts +15 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +23 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/select.d.ts +84 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +111 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.d.ts +16 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +18 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.d.ts +5 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +6 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.d.ts +5 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +6 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.d.ts +12 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +24 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/stack.d.ts +77 -0
- package/dist/ui/stack.d.ts.map +1 -0
- package/dist/ui/stack.js +238 -0
- package/dist/ui/stack.js.map +1 -0
- package/dist/ui/stepper.d.ts +23 -0
- package/dist/ui/stepper.d.ts.map +1 -0
- package/dist/ui/stepper.js +38 -0
- package/dist/ui/stepper.js.map +1 -0
- package/dist/ui/switch.d.ts +15 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +54 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +51 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +57 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +33 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +29 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/text.d.ts +21 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/text.js +19 -0
- package/dist/ui/text.js.map +1 -0
- package/dist/ui/textarea.d.ts +10 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +20 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/time-picker.d.ts +22 -0
- package/dist/ui/time-picker.d.ts.map +1 -0
- package/dist/ui/time-picker.js +53 -0
- package/dist/ui/time-picker.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +36 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +55 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.d.ts +34 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +67 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.d.ts +32 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +41 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui/typography.d.ts +65 -0
- package/dist/ui/typography.d.ts.map +1 -0
- package/dist/ui/typography.js +88 -0
- package/dist/ui/typography.js.map +1 -0
- package/dist/ui/useColorScheme.d.ts +12 -0
- package/dist/ui/useColorScheme.d.ts.map +1 -0
- package/dist/ui/useColorScheme.js +17 -0
- package/dist/ui/useColorScheme.js.map +1 -0
- package/dist/ui/useListState.d.ts +34 -0
- package/dist/ui/useListState.d.ts.map +1 -0
- package/dist/ui/useListState.js +75 -0
- package/dist/ui/useListState.js.map +1 -0
- package/dist/ui/usecases/UseCaseCard.d.ts +19 -0
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -0
- package/dist/ui/usecases/UseCaseCard.js +35 -0
- package/dist/ui/usecases/UseCaseCard.js.map +1 -0
- package/dist/ui/usecases/UserStoryCard.d.ts +15 -0
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -0
- package/dist/ui/usecases/UserStoryCard.js +36 -0
- package/dist/ui/usecases/UserStoryCard.js.map +1 -0
- package/dist/ui/usecases/index.d.ts +3 -0
- package/dist/ui/usecases/index.js +4 -0
- package/dist/ui/utils.d.ts +7 -0
- package/dist/ui/utils.d.ts.map +1 -0
- package/dist/ui/utils.js +11 -0
- package/dist/ui/utils.js.map +1 -0
- package/package.json +212 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ChevronDown } from "./icons/ChevronDown.js";
|
|
2
|
+
import { cn } from "./utils.js";
|
|
3
|
+
import { Check } from "./icons/Check.js";
|
|
4
|
+
import { ChevronUp } from "./icons/ChevronUp.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { Platform, StyleSheet, View } from "react-native";
|
|
7
|
+
import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import * as SelectPrimitive from "@rn-primitives/select";
|
|
10
|
+
|
|
11
|
+
//#region ui/select.tsx
|
|
12
|
+
const Select = SelectPrimitive.Root;
|
|
13
|
+
const SelectGroup = SelectPrimitive.Group;
|
|
14
|
+
const SelectValue = SelectPrimitive.Value;
|
|
15
|
+
function SelectTrigger({ ref, className, children,...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
17
|
+
ref,
|
|
18
|
+
className: cn("native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1", props.disabled && "web:cursor-not-allowed opacity-50", className),
|
|
19
|
+
...props,
|
|
20
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDown, {
|
|
21
|
+
size: 16,
|
|
22
|
+
"aria-hidden": true,
|
|
23
|
+
className: "text-foreground opacity-50"
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Platform: WEB ONLY
|
|
29
|
+
*/
|
|
30
|
+
function SelectScrollUpButton({ className,...props }) {
|
|
31
|
+
if (Platform.OS !== "web") return null;
|
|
32
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
|
|
33
|
+
className: cn("web:cursor-default flex items-center justify-center py-1", className),
|
|
34
|
+
...props,
|
|
35
|
+
children: /* @__PURE__ */ jsx(ChevronUp, {
|
|
36
|
+
size: 14,
|
|
37
|
+
className: "text-foreground"
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Platform: WEB ONLY
|
|
43
|
+
*/
|
|
44
|
+
function SelectScrollDownButton({ className,...props }) {
|
|
45
|
+
if (Platform.OS !== "web") return null;
|
|
46
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
|
|
47
|
+
className: cn("web:cursor-default flex items-center justify-center py-1", className),
|
|
48
|
+
...props,
|
|
49
|
+
children: /* @__PURE__ */ jsx(ChevronDown, {
|
|
50
|
+
size: 14,
|
|
51
|
+
className: "text-foreground"
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function SelectContent({ className, children, position = "popper", portalHost,...props }) {
|
|
56
|
+
const { open } = SelectPrimitive.useRootContext();
|
|
57
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, {
|
|
58
|
+
hostName: portalHost,
|
|
59
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.Overlay, {
|
|
60
|
+
style: Platform.OS !== "web" ? StyleSheet.absoluteFill : void 0,
|
|
61
|
+
children: /* @__PURE__ */ jsx(Animated.View, {
|
|
62
|
+
className: "z-50",
|
|
63
|
+
entering: FadeIn,
|
|
64
|
+
exiting: FadeOut,
|
|
65
|
+
children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
66
|
+
className: cn("border-border bg-popover shadow-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-32 rounded-md border px-1 py-2 shadow-md", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", open ? "web:animate-in web:fade-in-0 web:zoom-in-95" : "web:animate-out web:fade-out-0 web:zoom-out-95", className),
|
|
67
|
+
position,
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
71
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
|
|
72
|
+
className: cn("p-1", position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),
|
|
73
|
+
children
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function SelectLabel({ className,...props }) {
|
|
83
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
84
|
+
className: cn("native:pb-2 native:pl-10 native:text-base text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold", className),
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function SelectItem({ className, children,...props }) {
|
|
89
|
+
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
90
|
+
className: cn("web:group native:py-2 native:pl-10 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent/50 web:focus:bg-accent relative flex w-full flex-row items-center rounded-xs py-1.5 pr-2 pl-8", props.disabled && "web:pointer-events-none opacity-50", className),
|
|
91
|
+
...props,
|
|
92
|
+
children: [/* @__PURE__ */ jsx(View, {
|
|
93
|
+
className: "native:left-3.5 native:pt-px absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
94
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, {
|
|
95
|
+
size: 16,
|
|
96
|
+
strokeWidth: 3,
|
|
97
|
+
className: "text-popover-foreground"
|
|
98
|
+
}) })
|
|
99
|
+
}), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { className: "native:text-lg native:text-base text-popover-foreground web:group-focus:text-accent-foreground text-sm" })]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function SelectSeparator({ className,...props }) {
|
|
103
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
|
|
104
|
+
className: cn("bg-muted -mx-1 my-1 h-px", className),
|
|
105
|
+
...props
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
111
|
+
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","names":[],"sources":["../../ui/select.tsx"],"sourcesContent":["import * as SelectPrimitive from '@rn-primitives/select';\nimport * as React from 'react';\nimport { Platform, StyleSheet, View } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { Check } from './icons/Check';\nimport { ChevronDown } from './icons/ChevronDown';\nimport { ChevronUp } from './icons/ChevronUp';\nimport { cn } from './utils';\n\ntype Option = SelectPrimitive.Option;\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nfunction SelectTrigger({\n ref,\n className,\n children,\n ...props\n}: SelectPrimitive.TriggerProps & {\n ref?: React.RefObject<SelectPrimitive.TriggerRef>;\n children?: React.ReactNode;\n}) {\n return (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1',\n props.disabled && 'web:cursor-not-allowed opacity-50',\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown\n size={16}\n aria-hidden={true}\n className=\"text-foreground opacity-50\"\n />\n </SelectPrimitive.Trigger>\n );\n}\n\n/**\n * Platform: WEB ONLY\n */\nfunction SelectScrollUpButton({\n className,\n ...props\n}: SelectPrimitive.ScrollUpButtonProps) {\n if (Platform.OS !== 'web') {\n return null;\n }\n return (\n <SelectPrimitive.ScrollUpButton\n className={cn(\n 'web:cursor-default flex items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronUp size={14} className=\"text-foreground\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\n/**\n * Platform: WEB ONLY\n */\nfunction SelectScrollDownButton({\n className,\n ...props\n}: SelectPrimitive.ScrollDownButtonProps) {\n if (Platform.OS !== 'web') {\n return null;\n }\n return (\n <SelectPrimitive.ScrollDownButton\n className={cn(\n 'web:cursor-default flex items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronDown size={14} className=\"text-foreground\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n portalHost,\n ...props\n}: SelectPrimitive.ContentProps & {\n ref?: React.RefObject<SelectPrimitive.ContentRef>;\n className?: string;\n portalHost?: string;\n}) {\n const { open } = SelectPrimitive.useRootContext();\n\n return (\n <SelectPrimitive.Portal hostName={portalHost}>\n <SelectPrimitive.Overlay\n style={Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined}\n >\n <Animated.View className=\"z-50\" entering={FadeIn} exiting={FadeOut}>\n <SelectPrimitive.Content\n className={cn(\n 'border-border bg-popover shadow-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-32 rounded-md border px-1 py-2 shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n open\n ? 'web:animate-in web:fade-in-0 web:zoom-in-95'\n : 'web:animate-out web:fade-out-0 web:zoom-out-95',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </Animated.View>\n </SelectPrimitive.Overlay>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: SelectPrimitive.LabelProps & {\n ref?: React.RefObject<SelectPrimitive.LabelRef>;\n}) {\n return (\n <SelectPrimitive.Label\n className={cn(\n 'native:pb-2 native:pl-10 native:text-base text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: SelectPrimitive.ItemProps & {\n ref?: React.RefObject<SelectPrimitive.ItemRef>;\n}) {\n return (\n <SelectPrimitive.Item\n className={cn(\n 'web:group native:py-2 native:pl-10 active:bg-accent web:cursor-default web:select-none web:outline-hidden web:hover:bg-accent/50 web:focus:bg-accent relative flex w-full flex-row items-center rounded-xs py-1.5 pr-2 pl-8',\n props.disabled && 'web:pointer-events-none opacity-50',\n className\n )}\n {...props}\n >\n <View className=\"native:left-3.5 native:pt-px absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check\n size={16}\n strokeWidth={3}\n className=\"text-popover-foreground\"\n />\n </SelectPrimitive.ItemIndicator>\n </View>\n <SelectPrimitive.ItemText className=\"native:text-lg native:text-base text-popover-foreground web:group-focus:text-accent-foreground text-sm\" />\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: SelectPrimitive.SeparatorProps & {\n ref?: React.RefObject<SelectPrimitive.SeparatorRef>;\n}) {\n return (\n <SelectPrimitive.Separator\n className={cn('bg-muted -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n type Option,\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAM,SAAS,gBAAgB;AAE/B,MAAM,cAAc,gBAAgB;AAEpC,MAAM,cAAc,gBAAgB;AAEpC,SAAS,cAAc,EACrB,KACA,WACA,SACA,GAAG,SAIF;AACD,QACE,qBAAC,gBAAgB;EACV;EACL,WAAW,GACT,2RACA,MAAM,YAAY,qCAClB,UACD;EACD,GAAI;aAEH,UACD,oBAAC;GACC,MAAM;GACN,eAAa;GACb,WAAU;IACV;GACsB;;;;;AAO9B,SAAS,qBAAqB,EAC5B,UACA,GAAG,SACmC;AACtC,KAAI,SAAS,OAAO,MAClB,QAAO;AAET,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,4DACA,UACD;EACD,GAAI;YAEJ,oBAAC;GAAU,MAAM;GAAI,WAAU;IAAoB;GACpB;;;;;AAOrC,SAAS,uBAAuB,EAC9B,UACA,GAAG,SACqC;AACxC,KAAI,SAAS,OAAO,MAClB,QAAO;AAET,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,4DACA,UACD;EACD,GAAI;YAEJ,oBAAC;GAAY,MAAM;GAAI,WAAU;IAAoB;GACpB;;AAIvC,SAAS,cAAc,EACrB,WACA,UACA,WAAW,UACX,WACA,GAAG,SAKF;CACD,MAAM,EAAE,SAAS,gBAAgB,gBAAgB;AAEjD,QACE,oBAAC,gBAAgB;EAAO,UAAU;YAChC,oBAAC,gBAAgB;GACf,OAAO,SAAS,OAAO,QAAQ,WAAW,eAAe;aAEzD,oBAAC,SAAS;IAAK,WAAU;IAAO,UAAU;IAAQ,SAAS;cACzD,qBAAC,gBAAgB;KACf,WAAW,GACT,mRACA,aAAa,YACX,mIACF,OACI,gDACA,kDACJ,UACD;KACS;KACV,GAAI;;MAEJ,oBAAC,yBAAuB;MACxB,oBAAC,gBAAgB;OACf,WAAW,GACT,OACA,aAAa,YACX,gFACH;OAEA;QACwB;MAC3B,oBAAC,2BAAyB;;MACF;KACZ;IACQ;GACH;;AAI7B,SAAS,YAAY,EACnB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GACT,4GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,WACA,SACA,GAAG,SAGF;AACD,QACE,qBAAC,gBAAgB;EACf,WAAW,GACT,+NACA,MAAM,YAAY,sCAClB,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,gBAAgB,2BACf,oBAAC;IACC,MAAM;IACN,aAAa;IACb,WAAU;KACV,GAC4B;IAC3B,EACP,oBAAC,gBAAgB,YAAS,WAAU,2GAA2G;GAC1H;;AAI3B,SAAS,gBAAgB,EACvB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,gBAAgB;EACf,WAAW,GAAG,4BAA4B,UAAU;EACpD,GAAI;GACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime121 from "react/jsx-runtime";
|
|
3
|
+
import * as SeparatorPrimitive from "@rn-primitives/separator";
|
|
4
|
+
|
|
5
|
+
//#region ui/separator.d.ts
|
|
6
|
+
declare function Separator({
|
|
7
|
+
className,
|
|
8
|
+
orientation,
|
|
9
|
+
decorative,
|
|
10
|
+
...props
|
|
11
|
+
}: SeparatorPrimitive.RootProps & {
|
|
12
|
+
ref?: React$1.RefObject<SeparatorPrimitive.RootRef>;
|
|
13
|
+
}): react_jsx_runtime121.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Separator };
|
|
16
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","names":[],"sources":["../../ui/separator.tsx"],"sourcesContent":[],"mappings":";;;;;iBAIS,SAAA;;;;;GAKN,kBAAA,CAAmB;QACd,OAAA,CAAM,UAAU,kBAAA,CAAmB;IAC1C,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cn } from "./utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as SeparatorPrimitive from "@rn-primitives/separator";
|
|
5
|
+
|
|
6
|
+
//#region ui/separator.tsx
|
|
7
|
+
function Separator({ className, orientation = "horizontal", decorative = true,...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
9
|
+
decorative,
|
|
10
|
+
orientation,
|
|
11
|
+
className: cn("bg-border shrink-0", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Separator };
|
|
18
|
+
//# sourceMappingURL=separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.js","names":[],"sources":["../../ui/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from '@rn-primitives/separator';\nimport * as React from 'react';\nimport { cn } from './utils';\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: SeparatorPrimitive.RootProps & {\n ref?: React.RefObject<SeparatorPrimitive.RootRef>;\n}) {\n return (\n <SeparatorPrimitive.Root\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'bg-border shrink-0',\n orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"mappings":";;;;;;AAIA,SAAS,UAAU,EACjB,WACA,cAAc,cACd,aAAa,KACb,GAAG,SAGF;AACD,QACE,oBAAC,mBAAmB;EACN;EACC;EACb,WAAW,GACT,sBACA,gBAAgB,eAAe,gBAAgB,eAC/C,UACD;EACD,GAAI;GACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","names":[],"sources":["../../ui/sheet.tsx"],"sourcesContent":[],"mappings":";cAAa,KAAA"}
|
package/dist/ui/sheet.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../ui/sheet.tsx"],"sourcesContent":["export const sheet = 'null';\n"],"mappings":";AAAA,MAAa,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","names":[],"sources":["../../ui/sidebar.tsx"],"sourcesContent":[],"mappings":";cAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.js","names":[],"sources":["../../ui/sidebar.tsx"],"sourcesContent":["export const sidebar = 'null';\n"],"mappings":";AAAA,MAAa,UAAU"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import * as react_jsx_runtime122 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region ui/skeleton.d.ts
|
|
6
|
+
declare function Skeleton({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: Omit<React$1.ComponentPropsWithoutRef<typeof View>, 'style'>): react_jsx_runtime122.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Skeleton };
|
|
12
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","names":[],"sources":["../../ui/skeleton.tsx"],"sourcesContent":[],"mappings":";;;;;iBAaS,QAAA;;;GAIN,KAAK,OAAA,CAAM,gCAAgC,kBAAe,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cn } from "./utils.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import Animated, { useAnimatedStyle, useSharedValue, withRepeat, withSequence, withTiming } from "react-native-reanimated";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region ui/skeleton.tsx
|
|
8
|
+
const duration = 1e3;
|
|
9
|
+
function Skeleton({ className,...props }) {
|
|
10
|
+
const sv = useSharedValue(1);
|
|
11
|
+
React$1.useEffect(() => {
|
|
12
|
+
sv.value = withRepeat(withSequence(withTiming(.5, { duration }), withTiming(1, { duration })), -1);
|
|
13
|
+
}, []);
|
|
14
|
+
const style = useAnimatedStyle(() => ({ opacity: sv.value }));
|
|
15
|
+
return /* @__PURE__ */ jsx(Animated.View, {
|
|
16
|
+
style,
|
|
17
|
+
className: cn("bg-secondary dark:bg-muted rounded-md", className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Skeleton };
|
|
24
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","names":[],"sources":["../../ui/skeleton.tsx"],"sourcesContent":["import * as React from 'react';\nimport Animated, {\n useAnimatedStyle,\n useSharedValue,\n withRepeat,\n withSequence,\n withTiming,\n} from 'react-native-reanimated';\nimport { cn } from './utils';\nimport { View } from 'react-native';\n\nconst duration = 1000;\n\nfunction Skeleton({\n className,\n ...props\n // }: Omit<React.ComponentPropsWithoutRef<typeof Animated.View>, 'style'>) {\n}: Omit<React.ComponentPropsWithoutRef<typeof View>, 'style'>) {\n const sv = useSharedValue(1);\n\n React.useEffect(() => {\n sv.value = withRepeat(\n withSequence(withTiming(0.5, { duration }), withTiming(1, { duration })),\n -1\n );\n }, []);\n\n const style = useAnimatedStyle(() => ({\n opacity: sv.value,\n }));\n\n return (\n <Animated.View\n style={style}\n className={cn('bg-secondary dark:bg-muted rounded-md', className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n"],"mappings":";;;;;;;AAWA,MAAM,WAAW;AAEjB,SAAS,SAAS,EAChB,UACA,GAAG,SAE0D;CAC7D,MAAM,KAAK,eAAe,EAAE;AAE5B,SAAM,gBAAgB;AACpB,KAAG,QAAQ,WACT,aAAa,WAAW,IAAK,EAAE,UAAU,CAAC,EAAE,WAAW,GAAG,EAAE,UAAU,CAAC,CAAC,EACxE,GACD;IACA,EAAE,CAAC;CAEN,MAAM,QAAQ,wBAAwB,EACpC,SAAS,GAAG,OACb,EAAE;AAEH,QACE,oBAAC,SAAS;EACD;EACP,WAAW,GAAG,yCAAyC,UAAU;EACjE,GAAI;GACJ"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { View, ViewProps } from "react-native";
|
|
3
|
+
import * as react_jsx_runtime123 from "react/jsx-runtime";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
6
|
+
|
|
7
|
+
//#region ui/stack.d.ts
|
|
8
|
+
declare const vStackVariants: (props?: ({
|
|
9
|
+
spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
|
|
10
|
+
align?: "stretch" | "start" | "center" | "end" | null | undefined;
|
|
11
|
+
justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
12
|
+
width?: "auto" | "full" | "screen" | "fit" | null | undefined;
|
|
13
|
+
padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
14
|
+
gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
16
|
+
declare const hStackVariants: (props?: ({
|
|
17
|
+
spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
|
|
18
|
+
align?: "stretch" | "start" | "center" | "end" | "baseline" | null | undefined;
|
|
19
|
+
justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
20
|
+
width?: "auto" | "full" | "screen" | "fit" | null | undefined;
|
|
21
|
+
padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
22
|
+
gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
23
|
+
wrap?: "reverse" | "wrap" | "nowrap" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
25
|
+
declare const boxVariants: (props?: ({
|
|
26
|
+
spacing?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | "2xl" | null | undefined;
|
|
27
|
+
align?: "stretch" | "start" | "center" | "end" | "baseline" | null | undefined;
|
|
28
|
+
justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
29
|
+
width?: "auto" | "full" | "screen" | "fit" | null | undefined;
|
|
30
|
+
padding?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
31
|
+
gap?: "sm" | "lg" | "md" | "none" | "xs" | "xl" | null | undefined;
|
|
32
|
+
wrap?: "reverse" | "wrap" | "nowrap" | null | undefined;
|
|
33
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
34
|
+
type BoxProps = ViewProps & VariantProps<typeof boxVariants> & {
|
|
35
|
+
ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
|
|
36
|
+
};
|
|
37
|
+
type VStackProps = ViewProps & VariantProps<typeof vStackVariants> & {
|
|
38
|
+
ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
|
|
39
|
+
};
|
|
40
|
+
type HStackProps = ViewProps & VariantProps<typeof hStackVariants> & {
|
|
41
|
+
ref?: React$1.RefObject<React$1.ComponentRef<typeof View>>;
|
|
42
|
+
};
|
|
43
|
+
declare function Box({
|
|
44
|
+
className,
|
|
45
|
+
spacing,
|
|
46
|
+
align,
|
|
47
|
+
justify,
|
|
48
|
+
width,
|
|
49
|
+
padding,
|
|
50
|
+
gap,
|
|
51
|
+
wrap,
|
|
52
|
+
...props
|
|
53
|
+
}: BoxProps): react_jsx_runtime123.JSX.Element;
|
|
54
|
+
declare function HStack({
|
|
55
|
+
className,
|
|
56
|
+
spacing,
|
|
57
|
+
align,
|
|
58
|
+
justify,
|
|
59
|
+
width,
|
|
60
|
+
padding,
|
|
61
|
+
gap,
|
|
62
|
+
wrap,
|
|
63
|
+
...props
|
|
64
|
+
}: HStackProps): react_jsx_runtime123.JSX.Element;
|
|
65
|
+
declare function VStack({
|
|
66
|
+
className,
|
|
67
|
+
spacing,
|
|
68
|
+
align,
|
|
69
|
+
justify,
|
|
70
|
+
width,
|
|
71
|
+
padding,
|
|
72
|
+
gap,
|
|
73
|
+
...props
|
|
74
|
+
}: VStackProps): react_jsx_runtime123.JSX.Element;
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Box, type BoxProps, HStack, type HStackProps, VStack, type VStackProps };
|
|
77
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","names":[],"sources":["../../ui/stack.tsx"],"sourcesContent":[],"mappings":";;;;;;;cASM,sBAsMU;;;EAtMV,OAAA,CAAA,EAAA,OA2DL,GAAA,QAAA,GAAA,KAAA,GAAA,SAAA,GAAA,QAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;EAGK,KAAA,CAAA,EAAA,MAAA,GAkEL,MAAA,GAAA,QAAA,GAAA,KAAA,GAAA,IAAA,GAAA,SAAA;EAEK,OAAA,CAAA,EAAA,IAkEL,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAEI,GAAA,CAAA,EAAA,IAAA,GAAQ,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAAG,GA3If,+BAAA,CAAA,SA2Ie,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;cAxIV,cAyIgB,EAAA,CAAA,KAKA,CALA,EAAA,CAAA;EAApB,OAAA,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,KAAA,GAAA,IAAA,GAAA,SAAA;EACkD,KAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,QAAA,GAAA,KAAA,GAAA,UAAA,GAAA,IAAA,GAAA,SAAA;EAA1B,OAAM,CAAA,EAAA,OAAA,GAAA,QAAA,GAAA,KAAA,GAAA,SAAA,GAAA,QAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;EAAtB,KAAM,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,QAAA,GAAA,KAAA,GAAA,IAAA,GAAA,SAAA;EAAS,OAAA,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAGpB,GAAA,CAAA,EAAA,IAAA,GAAA,IAAW,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAAG,IAAA,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;CACG,GA5ErB,+BAAA,CAAA,SA4EqB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;cA1EhB,WA0EJ,EAAA,CAAA,KAKA,CALA,EAAA,CAAA;EACkD,OAAA,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,KAAA,GAAA,IAAA,GAAA,SAAA;EAA1B,KAAM,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,QAAA,GAAA,KAAA,GAAA,UAAA,GAAA,IAAA,GAAA,SAAA;EAAtB,OAAM,CAAA,EAAA,OAAA,GAAA,QAAA,GAAA,KAAA,GAAA,SAAA,GAAA,QAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;EAAS,KAAA,CAAA,EAAA,MAAA,GAAA,MAAA,GAAA,QAAA,GAAA,KAAA,GAAA,IAAA,GAAA,SAAA;EAGpB,OAAA,CAAA,EAAA,IAAW,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAAG,GAAA,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EACG,IAAA,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;CAApB,GAbD,+BAAA,CAAA,SAaC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAXG,QAAA,GAAW,SAYoC,GAXlD,YAWkD,CAAA,OAX9B,WAW8B,CAAA,GAAA;EAA1B,GAAA,CAAA,EAVhB,OAAA,CAAM,SAUgB,CAVN,OAAA,CAAM,YAUA,CAAA,OAVoB,IAUpB,CAAA,CAAA;CAAtB;KAPL,WAAA,GAAc,SAOM,GANvB,YAMuB,CAAA,OANH,cAMG,CAAA,GAAA;EAGhB,GAAA,CAAA,EARC,OAAA,CAAM,SAQJ,CARc,OAAA,CAAM,YAQpB,CAAA,OARwC,IAQxC,CAAA,CAAA;CACV;KANG,WAAA,GAAc,SAOjB,GANA,YAMA,CAAA,OANoB,cAMpB,CAAA,GAAA;EACA,GAAA,CAAA,EANQ,OAAA,CAAM,SAMd,CANwB,OAAA,CAAM,YAM9B,CAAA,OANkD,IAMlD,CAAA,CAAA;CACA;iBAJO,GAAA,CAKP;EAAA,SAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAKC,QALD,CAAA,EAKS,oBAAA,CAAA,GAAA,CAAA,OALT;iBAiBO,MAAA,CAhBP;EAAA,SAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EA0BC,WA1BD,CAAA,EA0BY,oBAAA,CAAA,GAAA,CAAA,OA1BZ;iBAsCO,MAAA,CArCP;EAAA,SAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,KAAA;EAAA,OAAA;EAAA,GAAA;EAAA,GAAA;AAAA,CAAA,EA8CC,WA9CD,CAAA,EA8CY,oBAAA,CAAA,GAAA,CAAA,OA9CZ"}
|
package/dist/ui/stack.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { cn } from "./utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
|
|
7
|
+
//#region ui/stack.tsx
|
|
8
|
+
const baseStyle = "flex";
|
|
9
|
+
const vStackVariants = cva([baseStyle, "flex-col"], {
|
|
10
|
+
variants: {
|
|
11
|
+
spacing: {
|
|
12
|
+
none: "",
|
|
13
|
+
xs: "gap-y-1",
|
|
14
|
+
sm: "gap-y-2",
|
|
15
|
+
md: "gap-y-4",
|
|
16
|
+
lg: "gap-y-6",
|
|
17
|
+
xl: "gap-y-8",
|
|
18
|
+
"2xl": "gap-y-12"
|
|
19
|
+
},
|
|
20
|
+
align: {
|
|
21
|
+
stretch: "items-stretch",
|
|
22
|
+
start: "items-start",
|
|
23
|
+
center: "items-center",
|
|
24
|
+
end: "items-end"
|
|
25
|
+
},
|
|
26
|
+
justify: {
|
|
27
|
+
start: "justify-start",
|
|
28
|
+
center: "justify-center",
|
|
29
|
+
end: "justify-end",
|
|
30
|
+
between: "justify-between",
|
|
31
|
+
around: "justify-around",
|
|
32
|
+
evenly: "justify-evenly"
|
|
33
|
+
},
|
|
34
|
+
width: {
|
|
35
|
+
auto: "w-auto",
|
|
36
|
+
full: "w-full",
|
|
37
|
+
screen: "w-screen",
|
|
38
|
+
fit: "w-fit"
|
|
39
|
+
},
|
|
40
|
+
padding: {
|
|
41
|
+
none: "",
|
|
42
|
+
xs: "p-1",
|
|
43
|
+
sm: "p-2",
|
|
44
|
+
md: "p-4",
|
|
45
|
+
lg: "p-6",
|
|
46
|
+
xl: "p-8"
|
|
47
|
+
},
|
|
48
|
+
gap: {
|
|
49
|
+
none: "",
|
|
50
|
+
xs: "gap-1",
|
|
51
|
+
sm: "gap-2",
|
|
52
|
+
md: "gap-4",
|
|
53
|
+
lg: "gap-6",
|
|
54
|
+
xl: "gap-8"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
spacing: "md",
|
|
59
|
+
align: "stretch",
|
|
60
|
+
justify: "start",
|
|
61
|
+
width: "auto",
|
|
62
|
+
padding: "none",
|
|
63
|
+
gap: "none"
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const hStackVariants = cva([baseStyle, "flex-row"], {
|
|
67
|
+
variants: {
|
|
68
|
+
spacing: {
|
|
69
|
+
none: "",
|
|
70
|
+
xs: "gap-x-1",
|
|
71
|
+
sm: "gap-x-2",
|
|
72
|
+
md: "gap-x-4",
|
|
73
|
+
lg: "gap-x-6",
|
|
74
|
+
xl: "gap-x-8",
|
|
75
|
+
"2xl": "gap-x-12"
|
|
76
|
+
},
|
|
77
|
+
align: {
|
|
78
|
+
stretch: "items-stretch",
|
|
79
|
+
start: "items-start",
|
|
80
|
+
center: "items-center",
|
|
81
|
+
end: "items-end",
|
|
82
|
+
baseline: "items-baseline"
|
|
83
|
+
},
|
|
84
|
+
justify: {
|
|
85
|
+
start: "justify-start",
|
|
86
|
+
center: "justify-center",
|
|
87
|
+
end: "justify-end",
|
|
88
|
+
between: "justify-between",
|
|
89
|
+
around: "justify-around",
|
|
90
|
+
evenly: "justify-evenly"
|
|
91
|
+
},
|
|
92
|
+
width: {
|
|
93
|
+
auto: "w-auto",
|
|
94
|
+
full: "w-full",
|
|
95
|
+
screen: "w-screen",
|
|
96
|
+
fit: "w-fit"
|
|
97
|
+
},
|
|
98
|
+
padding: {
|
|
99
|
+
none: "",
|
|
100
|
+
xs: "p-1",
|
|
101
|
+
sm: "p-2",
|
|
102
|
+
md: "p-4",
|
|
103
|
+
lg: "p-6",
|
|
104
|
+
xl: "p-8"
|
|
105
|
+
},
|
|
106
|
+
gap: {
|
|
107
|
+
none: "",
|
|
108
|
+
xs: "gap-1",
|
|
109
|
+
sm: "gap-2",
|
|
110
|
+
md: "gap-4",
|
|
111
|
+
lg: "gap-6",
|
|
112
|
+
xl: "gap-8"
|
|
113
|
+
},
|
|
114
|
+
wrap: {
|
|
115
|
+
nowrap: "flex-nowrap",
|
|
116
|
+
wrap: "flex-wrap",
|
|
117
|
+
reverse: "flex-wrap-reverse"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
defaultVariants: {
|
|
121
|
+
spacing: "md",
|
|
122
|
+
align: "center",
|
|
123
|
+
justify: "start",
|
|
124
|
+
width: "auto",
|
|
125
|
+
padding: "none",
|
|
126
|
+
gap: "none",
|
|
127
|
+
wrap: "wrap"
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
const boxVariants = cva([baseStyle, "flex-row"], {
|
|
131
|
+
variants: {
|
|
132
|
+
spacing: {
|
|
133
|
+
none: "",
|
|
134
|
+
xs: "gap-x-1",
|
|
135
|
+
sm: "gap-x-2",
|
|
136
|
+
md: "gap-x-4",
|
|
137
|
+
lg: "gap-x-6",
|
|
138
|
+
xl: "gap-x-8",
|
|
139
|
+
"2xl": "gap-x-12"
|
|
140
|
+
},
|
|
141
|
+
align: {
|
|
142
|
+
stretch: "items-stretch",
|
|
143
|
+
start: "items-start",
|
|
144
|
+
center: "items-center",
|
|
145
|
+
end: "items-end",
|
|
146
|
+
baseline: "items-baseline"
|
|
147
|
+
},
|
|
148
|
+
justify: {
|
|
149
|
+
start: "justify-start",
|
|
150
|
+
center: "justify-center",
|
|
151
|
+
end: "justify-end",
|
|
152
|
+
between: "justify-between",
|
|
153
|
+
around: "justify-around",
|
|
154
|
+
evenly: "justify-evenly"
|
|
155
|
+
},
|
|
156
|
+
width: {
|
|
157
|
+
auto: "w-auto",
|
|
158
|
+
full: "w-full",
|
|
159
|
+
screen: "w-screen",
|
|
160
|
+
fit: "w-fit"
|
|
161
|
+
},
|
|
162
|
+
padding: {
|
|
163
|
+
none: "",
|
|
164
|
+
xs: "p-1",
|
|
165
|
+
sm: "p-2",
|
|
166
|
+
md: "p-4",
|
|
167
|
+
lg: "p-6",
|
|
168
|
+
xl: "p-8"
|
|
169
|
+
},
|
|
170
|
+
gap: {
|
|
171
|
+
none: "",
|
|
172
|
+
xs: "gap-1",
|
|
173
|
+
sm: "gap-2",
|
|
174
|
+
md: "gap-4",
|
|
175
|
+
lg: "gap-6",
|
|
176
|
+
xl: "gap-8"
|
|
177
|
+
},
|
|
178
|
+
wrap: {
|
|
179
|
+
nowrap: "flex-nowrap",
|
|
180
|
+
wrap: "flex-wrap",
|
|
181
|
+
reverse: "flex-wrap-reverse"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
defaultVariants: {
|
|
185
|
+
spacing: "md",
|
|
186
|
+
align: "center",
|
|
187
|
+
justify: "center",
|
|
188
|
+
width: "auto",
|
|
189
|
+
padding: "none",
|
|
190
|
+
gap: "none",
|
|
191
|
+
wrap: "wrap"
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
function Box({ className, spacing, align, justify, width, padding, gap, wrap,...props }) {
|
|
195
|
+
return /* @__PURE__ */ jsx(View, {
|
|
196
|
+
className: cn(boxVariants({
|
|
197
|
+
spacing,
|
|
198
|
+
align,
|
|
199
|
+
justify,
|
|
200
|
+
width,
|
|
201
|
+
padding,
|
|
202
|
+
gap,
|
|
203
|
+
wrap
|
|
204
|
+
}), className),
|
|
205
|
+
...props
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function HStack({ className, spacing, align, justify, width, padding, gap, wrap,...props }) {
|
|
209
|
+
return /* @__PURE__ */ jsx(View, {
|
|
210
|
+
className: cn(hStackVariants({
|
|
211
|
+
spacing,
|
|
212
|
+
align,
|
|
213
|
+
justify,
|
|
214
|
+
width,
|
|
215
|
+
padding,
|
|
216
|
+
gap,
|
|
217
|
+
wrap
|
|
218
|
+
}), className),
|
|
219
|
+
...props
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function VStack({ className, spacing, align, justify, width, padding, gap,...props }) {
|
|
223
|
+
return /* @__PURE__ */ jsx(View, {
|
|
224
|
+
className: cn(vStackVariants({
|
|
225
|
+
spacing,
|
|
226
|
+
align,
|
|
227
|
+
justify,
|
|
228
|
+
width,
|
|
229
|
+
padding,
|
|
230
|
+
gap
|
|
231
|
+
}), className),
|
|
232
|
+
...props
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
//#endregion
|
|
237
|
+
export { Box, HStack, VStack };
|
|
238
|
+
//# sourceMappingURL=stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.js","names":[],"sources":["../../ui/stack.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ViewProps } from 'react-native';\nimport { View } from 'react-native';\nimport { cn } from './utils';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nconst baseStyle = 'flex';\n\n// VStack variants using cva\nconst vStackVariants = cva(\n [baseStyle, 'flex-col'], // base classes\n {\n variants: {\n spacing: {\n none: '',\n xs: 'gap-y-1',\n sm: 'gap-y-2',\n md: 'gap-y-4',\n lg: 'gap-y-6',\n xl: 'gap-y-8',\n '2xl': 'gap-y-12',\n },\n align: {\n stretch: 'items-stretch',\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n },\n justify: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n },\n width: {\n auto: 'w-auto',\n full: 'w-full',\n screen: 'w-screen',\n fit: 'w-fit',\n },\n padding: {\n none: '',\n xs: 'p-1',\n sm: 'p-2',\n md: 'p-4',\n lg: 'p-6',\n xl: 'p-8',\n },\n gap: {\n none: '',\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-4',\n lg: 'gap-6',\n xl: 'gap-8',\n },\n },\n defaultVariants: {\n spacing: 'md',\n align: 'stretch',\n justify: 'start',\n width: 'auto',\n padding: 'none',\n gap: 'none',\n },\n }\n);\n\n// HStack variants using cva\nconst hStackVariants = cva(\n [baseStyle, 'flex-row'], // base classes\n {\n variants: {\n spacing: {\n none: '',\n xs: 'gap-x-1',\n sm: 'gap-x-2',\n md: 'gap-x-4',\n lg: 'gap-x-6',\n xl: 'gap-x-8',\n '2xl': 'gap-x-12',\n },\n align: {\n stretch: 'items-stretch',\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n baseline: 'items-baseline',\n },\n justify: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n },\n width: {\n auto: 'w-auto',\n full: 'w-full',\n screen: 'w-screen',\n fit: 'w-fit',\n },\n padding: {\n none: '',\n xs: 'p-1',\n sm: 'p-2',\n md: 'p-4',\n lg: 'p-6',\n xl: 'p-8',\n },\n gap: {\n none: '',\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-4',\n lg: 'gap-6',\n xl: 'gap-8',\n },\n wrap: {\n nowrap: 'flex-nowrap',\n wrap: 'flex-wrap',\n reverse: 'flex-wrap-reverse',\n },\n },\n defaultVariants: {\n spacing: 'md',\n align: 'center',\n justify: 'start',\n width: 'auto',\n padding: 'none',\n gap: 'none',\n wrap: 'wrap',\n },\n }\n);\n\nconst boxVariants = cva(\n [baseStyle, 'flex-row'], // base classes\n {\n variants: {\n spacing: {\n none: '',\n xs: 'gap-x-1',\n sm: 'gap-x-2',\n md: 'gap-x-4',\n lg: 'gap-x-6',\n xl: 'gap-x-8',\n '2xl': 'gap-x-12',\n },\n align: {\n stretch: 'items-stretch',\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n baseline: 'items-baseline',\n },\n justify: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n },\n width: {\n auto: 'w-auto',\n full: 'w-full',\n screen: 'w-screen',\n fit: 'w-fit',\n },\n padding: {\n none: '',\n xs: 'p-1',\n sm: 'p-2',\n md: 'p-4',\n lg: 'p-6',\n xl: 'p-8',\n },\n gap: {\n none: '',\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-4',\n lg: 'gap-6',\n xl: 'gap-8',\n },\n wrap: {\n nowrap: 'flex-nowrap',\n wrap: 'flex-wrap',\n reverse: 'flex-wrap-reverse',\n },\n },\n defaultVariants: {\n spacing: 'md',\n align: 'center',\n justify: 'center',\n width: 'auto',\n padding: 'none',\n gap: 'none',\n wrap: 'wrap',\n },\n }\n);\n\ntype BoxProps = ViewProps &\n VariantProps<typeof boxVariants> & {\n ref?: React.RefObject<React.ComponentRef<typeof View>>;\n };\n\ntype VStackProps = ViewProps &\n VariantProps<typeof vStackVariants> & {\n ref?: React.RefObject<React.ComponentRef<typeof View>>;\n };\n\ntype HStackProps = ViewProps &\n VariantProps<typeof hStackVariants> & {\n ref?: React.RefObject<React.ComponentRef<typeof View>>;\n };\n\nfunction Box({\n className,\n spacing,\n align,\n justify,\n width,\n padding,\n gap,\n wrap,\n ...props\n}: BoxProps) {\n return (\n <View\n className={cn(\n boxVariants({ spacing, align, justify, width, padding, gap, wrap }),\n className\n )}\n {...props}\n />\n );\n}\n\nfunction HStack({\n className,\n spacing,\n align,\n justify,\n width,\n padding,\n gap,\n wrap,\n ...props\n}: HStackProps) {\n return (\n <View\n className={cn(\n hStackVariants({ spacing, align, justify, width, padding, gap, wrap }),\n className\n )}\n {...props}\n />\n );\n}\n\nfunction VStack({\n className,\n spacing,\n align,\n justify,\n width,\n padding,\n gap,\n ...props\n}: VStackProps) {\n return (\n <View\n className={cn(\n vStackVariants({ spacing, align, justify, width, padding, gap }),\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n HStack,\n VStack,\n type HStackProps,\n type VStackProps,\n Box,\n type BoxProps,\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime126 from "react/jsx-runtime";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
4
|
+
|
|
5
|
+
//#region ui/stepper.d.ts
|
|
6
|
+
declare const dotVariants: (props?: ({
|
|
7
|
+
state?: "active" | "inactive" | null | undefined;
|
|
8
|
+
size?: "sm" | "md" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
10
|
+
interface StepperProps extends VariantProps<typeof dotVariants> {
|
|
11
|
+
current: number;
|
|
12
|
+
total: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function Stepper({
|
|
16
|
+
current,
|
|
17
|
+
total,
|
|
18
|
+
size,
|
|
19
|
+
className
|
|
20
|
+
}: StepperProps): react_jsx_runtime126.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Stepper, StepperProps };
|
|
23
|
+
//# sourceMappingURL=stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","names":[],"sources":["../../ui/stepper.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM;;;IAeJ,gCAAA,CAAA;AAfI,UAiBW,YAAA,SAAqB,YAFpC,CAAA,OAEwD,WAFxD,CAAA,CAAA;EAEe,OAAA,EAAA,MAAa;EAMd,KAAA,EAAA,MAAO;EAAG,SAAA,CAAA,EAAA,MAAA;;AAAgB,iBAA1B,OAAA,CAA0B;EAAA,OAAA;EAAA,KAAA;EAAA,IAAA;EAAA;AAAA,CAAA,EAAmB,YAAnB,CAAA,EAA+B,oBAAA,CAAA,GAAA,CAAA,OAA/B"}
|