@contractspec/lib.ui-kit 1.57.0 → 1.59.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/dist/browser/index.js +5 -0
- package/dist/browser/ui/accordion.js +160 -0
- package/dist/browser/ui/alert-dialog.js +205 -0
- package/dist/browser/ui/alert.js +85 -0
- package/dist/browser/ui/aspect-ratio.js +6 -0
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +527 -0
- package/dist/browser/ui/atoms/FilterSelect/index.js +527 -0
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +193 -0
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +193 -0
- package/dist/browser/ui/atoms/Pagination/Pagination.js +442 -0
- package/dist/browser/ui/atoms/Pagination/index.js +442 -0
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +155 -0
- package/dist/browser/ui/atoms/SearchInput/index.js +155 -0
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +37 -0
- package/dist/browser/ui/badge.js +28 -0
- package/dist/browser/ui/breadcrumb.js +102 -0
- package/dist/browser/ui/button.js +88 -0
- package/dist/browser/ui/card.js +90 -0
- package/dist/browser/ui/carousel.js +5 -0
- package/dist/browser/ui/checkbox.js +21 -0
- package/dist/browser/ui/collapsible.js +10 -0
- package/dist/browser/ui/command.js +5 -0
- package/dist/browser/ui/context-menu.js +214 -0
- package/dist/browser/ui/date-picker.js +85 -0
- package/dist/browser/ui/date-range-picker.js +348 -0
- package/dist/browser/ui/datetime-picker.js +439 -0
- package/dist/browser/ui/dialog.js +126 -0
- package/dist/browser/ui/dropdown-menu.js +218 -0
- package/dist/browser/ui/empty-state.js +411 -0
- package/dist/browser/ui/empty.js +71 -0
- package/dist/browser/ui/fab.js +141 -0
- package/dist/browser/ui/field.js +559 -0
- package/dist/browser/ui/form.js +150 -0
- package/dist/browser/ui/hover-card.js +57 -0
- package/dist/browser/ui/icons/Check.js +20 -0
- package/dist/browser/ui/icons/ChevronDown.js +20 -0
- package/dist/browser/ui/icons/ChevronRight.js +20 -0
- package/dist/browser/ui/icons/ChevronUp.js +20 -0
- package/dist/browser/ui/icons/CircleUser.js +20 -0
- package/dist/browser/ui/icons/Info.js +20 -0
- package/dist/browser/ui/icons/Key.js +20 -0
- package/dist/browser/ui/icons/MoonStar.js +20 -0
- package/dist/browser/ui/icons/Sun.js +20 -0
- package/dist/browser/ui/icons/X.js +20 -0
- package/dist/browser/ui/icons/iconWithClassName.js +16 -0
- package/dist/browser/ui/input.js +18 -0
- package/dist/browser/ui/label.js +32 -0
- package/dist/browser/ui/link.js +16 -0
- package/dist/browser/ui/loading-button.js +350 -0
- package/dist/browser/ui/loading-overlay.js +398 -0
- package/dist/browser/ui/loading-screen.js +537 -0
- package/dist/browser/ui/marketing/FeatureGrid.js +42 -0
- package/dist/browser/ui/marketing/Hero.js +146 -0
- package/dist/browser/ui/marketing/PricingTable.js +158 -0
- package/dist/browser/ui/marketing/index.js +247 -0
- package/dist/browser/ui/menubar.js +225 -0
- package/dist/browser/ui/molecules/Autocomplete/index.js +5 -0
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +784 -0
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +784 -0
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +46 -0
- package/dist/browser/ui/nativewind-env.d.js +0 -0
- package/dist/browser/ui/navigation-menu.js +147 -0
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +222 -0
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +222 -0
- package/dist/browser/ui/organisms/ListPage/ListPage.js +1375 -0
- package/dist/browser/ui/organisms/ListPage/index.js +1375 -0
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +405 -0
- package/dist/browser/ui/password-strength.js +400 -0
- package/dist/browser/ui/popover.js +59 -0
- package/dist/browser/ui/progress.js +57 -0
- package/dist/browser/ui/radio-group.js +32 -0
- package/dist/browser/ui/select.js +172 -0
- package/dist/browser/ui/separator.js +20 -0
- package/dist/browser/ui/sheet.js +5 -0
- package/dist/browser/ui/sidebar.js +5 -0
- package/dist/browser/ui/skeleton.js +32 -0
- package/dist/browser/ui/stack.js +243 -0
- package/dist/browser/ui/stepper.js +274 -0
- package/dist/browser/ui/switch.js +84 -0
- package/dist/browser/ui/table.js +100 -0
- package/dist/browser/ui/tabs.js +30 -0
- package/dist/browser/ui/text.js +23 -0
- package/dist/browser/ui/textarea.js +18 -0
- package/dist/browser/ui/time-picker.js +83 -0
- package/dist/browser/ui/toggle-group.js +150 -0
- package/dist/browser/ui/toggle.js +90 -0
- package/dist/browser/ui/tooltip.js +57 -0
- package/dist/browser/ui/typography.js +124 -0
- package/dist/browser/ui/useColorScheme.js +15 -0
- package/dist/browser/ui/useListState.js +68 -0
- package/dist/browser/ui/usecases/UseCaseCard.js +359 -0
- package/dist/browser/ui/usecases/UserStoryCard.js +274 -0
- package/dist/browser/ui/usecases/index.js +394 -0
- package/dist/browser/ui/utils.js +9 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/ui/accordion.d.ts +15 -34
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +154 -86
- package/dist/ui/alert-dialog.d.ts +36 -67
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +192 -84
- package/dist/ui/alert.d.ts +15 -34
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +80 -44
- package/dist/ui/aspect-ratio.d.ts +4 -10
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +6 -7
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -7
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +526 -56
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -3
- package/dist/ui/atoms/FilterSelect/index.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/index.js +527 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +13 -16
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/types.js +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +14 -17
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +191 -45
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -2
- package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +193 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -7
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/Pagination.js +441 -161
- package/dist/ui/atoms/Pagination/index.d.ts +3 -3
- package/dist/ui/atoms/Pagination/index.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/index.js +442 -2
- package/dist/ui/atoms/Pagination/types.d.ts +11 -14
- package/dist/ui/atoms/Pagination/types.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/types.js +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -7
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +154 -47
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -3
- package/dist/ui/atoms/SearchInput/index.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/index.js +156 -3
- package/dist/ui/atoms/SearchInput/types.d.ts +8 -11
- package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/types.js +1 -0
- package/dist/ui/avatar.d.ts +12 -26
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +34 -24
- package/dist/ui/badge.d.ts +8 -18
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +24 -21
- package/dist/ui/breadcrumb.d.ts +12 -38
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +93 -62
- package/dist/ui/button.d.ts +13 -23
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +83 -69
- package/dist/ui/card.d.ts +22 -43
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +84 -45
- package/dist/ui/carousel.d.ts +1 -4
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +6 -6
- package/dist/ui/checkbox.d.ts +9 -13
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +20 -19
- package/dist/ui/collapsible.d.ts +16 -22
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +10 -9
- package/dist/ui/command.d.ts +1 -4
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +6 -6
- package/dist/ui/context-menu.d.ts +64 -105
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +203 -96
- package/dist/ui/date-picker.d.ts +9 -22
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +81 -49
- package/dist/ui/date-range-picker.d.ts +15 -28
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/date-range-picker.js +344 -81
- package/dist/ui/datetime-picker.d.ts +11 -26
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.js +437 -42
- package/dist/ui/dialog.d.ts +37 -63
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +114 -68
- package/dist/ui/dropdown-menu.d.ts +65 -107
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +207 -98
- package/dist/ui/empty-state.d.ts +13 -26
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty-state.js +409 -43
- package/dist/ui/empty.d.ts +11 -35
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +59 -50
- package/dist/ui/fab.d.ts +17 -31
- package/dist/ui/fab.d.ts.map +1 -1
- package/dist/ui/fab.js +138 -100
- package/dist/ui/field.d.ts +25 -65
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +548 -111
- package/dist/ui/form.d.ts +26 -47
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +139 -83
- package/dist/ui/hover-card.d.ts +16 -26
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +55 -30
- package/dist/ui/icons/Check.d.ts +3 -2
- package/dist/ui/icons/Check.d.ts.map +1 -0
- package/dist/ui/icons/Check.js +19 -7
- package/dist/ui/icons/ChevronDown.d.ts +3 -2
- package/dist/ui/icons/ChevronDown.d.ts.map +1 -0
- package/dist/ui/icons/ChevronDown.js +19 -7
- package/dist/ui/icons/ChevronRight.d.ts +3 -2
- package/dist/ui/icons/ChevronRight.d.ts.map +1 -0
- package/dist/ui/icons/ChevronRight.js +19 -7
- package/dist/ui/icons/ChevronUp.d.ts +3 -2
- package/dist/ui/icons/ChevronUp.d.ts.map +1 -0
- package/dist/ui/icons/ChevronUp.js +19 -7
- package/dist/ui/icons/CircleUser.d.ts +3 -2
- package/dist/ui/icons/CircleUser.d.ts.map +1 -0
- package/dist/ui/icons/CircleUser.js +19 -7
- package/dist/ui/icons/Info.d.ts +3 -2
- package/dist/ui/icons/Info.d.ts.map +1 -0
- package/dist/ui/icons/Info.js +19 -7
- package/dist/ui/icons/Key.d.ts +3 -2
- package/dist/ui/icons/Key.d.ts.map +1 -0
- package/dist/ui/icons/Key.js +19 -7
- package/dist/ui/icons/MoonStar.d.ts +3 -2
- package/dist/ui/icons/MoonStar.d.ts.map +1 -0
- package/dist/ui/icons/MoonStar.js +19 -7
- package/dist/ui/icons/Sun.d.ts +3 -2
- package/dist/ui/icons/Sun.d.ts.map +1 -0
- package/dist/ui/icons/Sun.js +19 -7
- package/dist/ui/icons/X.d.ts +3 -2
- package/dist/ui/icons/X.d.ts.map +1 -0
- package/dist/ui/icons/X.js +19 -7
- package/dist/ui/icons/iconWithClassName.d.ts +2 -6
- package/dist/ui/icons/iconWithClassName.d.ts.map +1 -1
- package/dist/ui/icons/iconWithClassName.js +14 -13
- package/dist/ui/input.d.ts +5 -13
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +16 -14
- package/dist/ui/label.d.ts +2 -14
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +30 -21
- package/dist/ui/link.d.ts +5 -12
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +15 -14
- package/dist/ui/loading-button.d.ts +7 -17
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +349 -20
- package/dist/ui/loading-overlay.d.ts +5 -13
- package/dist/ui/loading-overlay.d.ts.map +1 -1
- package/dist/ui/loading-overlay.js +399 -44
- package/dist/ui/loading-screen.d.ts +4 -11
- package/dist/ui/loading-screen.d.ts.map +1 -1
- package/dist/ui/loading-screen.js +536 -91
- package/dist/ui/marketing/FeatureGrid.d.ts +10 -19
- package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -1
- package/dist/ui/marketing/FeatureGrid.js +41 -33
- package/dist/ui/marketing/Hero.d.ts +16 -27
- package/dist/ui/marketing/Hero.d.ts.map +1 -1
- package/dist/ui/marketing/Hero.js +145 -50
- package/dist/ui/marketing/PricingTable.d.ts +15 -23
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
- package/dist/ui/marketing/PricingTable.js +157 -58
- package/dist/ui/marketing/index.d.ts +4 -4
- package/dist/ui/marketing/index.d.ts.map +1 -0
- package/dist/ui/marketing/index.js +247 -4
- package/dist/ui/menubar.d.ts +64 -110
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +212 -106
- package/dist/ui/molecules/Autocomplete/index.d.ts +1 -4
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/ui/molecules/Autocomplete/index.js +6 -6
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -7
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +783 -104
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -3
- package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +784 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -23
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
- package/dist/ui/molecules/SkeletonList.d.ts +5 -13
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
- package/dist/ui/molecules/SkeletonList.js +46 -14
- package/dist/ui/nativewind-env.d.js +1 -0
- package/dist/ui/navigation-menu.d.ts +35 -64
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +140 -79
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +18 -22
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +220 -104
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +3 -2
- package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +222 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -28
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.js +1374 -196
- package/dist/ui/organisms/ListPage/index.d.ts +3 -3
- package/dist/ui/organisms/ListPage/index.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/index.js +1375 -2
- package/dist/ui/organisms/ListPage/types.d.ts +34 -39
- package/dist/ui/organisms/ListPage/types.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/types.js +1 -0
- package/dist/ui/page-header.d.ts +12 -24
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/page-header.js +403 -38
- package/dist/ui/password-strength.d.ts +10 -17
- package/dist/ui/password-strength.d.ts.map +1 -1
- package/dist/ui/password-strength.js +396 -94
- package/dist/ui/popover.d.ts +14 -26
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +57 -32
- package/dist/ui/progress.d.ts +6 -15
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +54 -36
- package/dist/ui/radio-group.d.ts +3 -13
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +29 -19
- package/dist/ui/select.d.ts +43 -75
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +163 -101
- package/dist/ui/separator.d.ts +5 -14
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +19 -16
- package/dist/ui/sheet.d.ts +1 -4
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +6 -6
- package/dist/ui/sidebar.d.ts +1 -4
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +6 -6
- package/dist/ui/skeleton.d.ts +3 -10
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +31 -22
- package/dist/ui/stack.d.ts +34 -67
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +235 -229
- package/dist/ui/stepper.d.ts +10 -20
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +269 -32
- package/dist/ui/switch.d.ts +5 -12
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +79 -48
- package/dist/ui/table.d.ts +24 -50
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +99 -55
- package/dist/ui/tabs.d.ts +23 -28
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +27 -25
- package/dist/ui/text.d.ts +11 -19
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +21 -16
- package/dist/ui/textarea.d.ts +5 -8
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +15 -16
- package/dist/ui/time-picker.d.ts +8 -20
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/time-picker.js +79 -48
- package/dist/ui/toggle-group.d.ts +14 -34
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +144 -48
- package/dist/ui/toggle.d.ts +16 -30
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +85 -61
- package/dist/ui/tooltip.d.ts +18 -28
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +55 -38
- package/dist/ui/typography.d.ts +15 -63
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +101 -64
- package/dist/ui/useColorScheme.d.ts +5 -10
- package/dist/ui/useColorScheme.d.ts.map +1 -1
- package/dist/ui/useColorScheme.js +14 -15
- package/dist/ui/useListState.d.ts +23 -31
- package/dist/ui/useListState.d.ts.map +1 -1
- package/dist/ui/useListState.js +67 -73
- package/dist/ui/usecases/UseCaseCard.d.ts +7 -18
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.js +359 -34
- package/dist/ui/usecases/UserStoryCard.d.ts +5 -14
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/dist/ui/usecases/UserStoryCard.js +274 -35
- package/dist/ui/usecases/index.d.ts +3 -3
- package/dist/ui/usecases/index.d.ts.map +1 -0
- package/dist/ui/usecases/index.js +394 -3
- package/dist/ui/utils.d.ts +2 -6
- package/dist/ui/utils.d.ts.map +1 -1
- package/dist/ui/utils.js +6 -7
- package/package.json +775 -209
- package/dist/index.js.map +0 -1
- package/dist/ui/accordion.js.map +0 -1
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/date-picker.js.map +0 -1
- package/dist/ui/date-range-picker.js.map +0 -1
- package/dist/ui/datetime-picker.js.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty-state.js.map +0 -1
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/fab.js.map +0 -1
- package/dist/ui/field.js.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/icons/Check.js.map +0 -1
- package/dist/ui/icons/ChevronDown.js.map +0 -1
- package/dist/ui/icons/ChevronRight.js.map +0 -1
- package/dist/ui/icons/ChevronUp.js.map +0 -1
- package/dist/ui/icons/CircleUser.js.map +0 -1
- package/dist/ui/icons/Info.js.map +0 -1
- package/dist/ui/icons/Key.js.map +0 -1
- package/dist/ui/icons/MoonStar.js.map +0 -1
- package/dist/ui/icons/Sun.js.map +0 -1
- package/dist/ui/icons/X.js.map +0 -1
- package/dist/ui/icons/iconWithClassName.js.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/loading-overlay.js.map +0 -1
- package/dist/ui/loading-screen.js.map +0 -1
- package/dist/ui/marketing/FeatureGrid.js.map +0 -1
- package/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.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.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui/page-header.js.map +0 -1
- package/dist/ui/password-strength.js.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/sidebar.js.map +0 -1
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stepper.js.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/time-picker.js.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/typography.js.map +0 -1
- package/dist/ui/useColorScheme.js.map +0 -1
- package/dist/ui/useListState.js.map +0 -1
- package/dist/ui/usecases/UseCaseCard.js.map +0 -1
- package/dist/ui/usecases/UserStoryCard.js.map +0 -1
- package/dist/ui/utils.js.map +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// ui/text.tsx
|
|
2
|
+
import * as Slot from "@rn-primitives/slot";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Text as RNText } from "react-native";
|
|
5
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
7
|
+
var TextClassContext = React.createContext(undefined);
|
|
8
|
+
function Text2({
|
|
9
|
+
className,
|
|
10
|
+
asChild = false,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
const textClass = React.useContext(TextClassContext);
|
|
14
|
+
const Component = asChild ? Slot.Text : RNText;
|
|
15
|
+
return /* @__PURE__ */ jsxDEV(Component, {
|
|
16
|
+
className: cn("text-foreground web:select-text text-base", textClass, className),
|
|
17
|
+
...props
|
|
18
|
+
}, undefined, false, undefined, this);
|
|
19
|
+
}
|
|
20
|
+
// ui/utils.ts
|
|
21
|
+
import { clsx } from "clsx";
|
|
22
|
+
import { twMerge } from "tailwind-merge";
|
|
23
|
+
function cn2(...inputs) {
|
|
24
|
+
return twMerge(clsx(inputs));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ui/typography.tsx
|
|
28
|
+
import * as Slot2 from "@rn-primitives/slot";
|
|
29
|
+
import { Platform } from "react-native";
|
|
30
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
31
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
32
|
+
function H1({ className, asChild = false, ...props }) {
|
|
33
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
34
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
35
|
+
role: "heading",
|
|
36
|
+
"aria-level": "1",
|
|
37
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className),
|
|
38
|
+
...props
|
|
39
|
+
}, undefined, false, undefined, this);
|
|
40
|
+
}
|
|
41
|
+
function H2({ className, asChild = false, ...props }) {
|
|
42
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
43
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
44
|
+
role: "heading",
|
|
45
|
+
"aria-level": "2",
|
|
46
|
+
className: cn3("border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
|
|
47
|
+
...props
|
|
48
|
+
}, undefined, false, undefined, this);
|
|
49
|
+
}
|
|
50
|
+
function H3({ className, asChild = false, ...props }) {
|
|
51
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
52
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
53
|
+
role: "heading",
|
|
54
|
+
"aria-level": "3",
|
|
55
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
56
|
+
...props
|
|
57
|
+
}, undefined, false, undefined, this);
|
|
58
|
+
}
|
|
59
|
+
function H4({ className, asChild = false, ...props }) {
|
|
60
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
61
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
62
|
+
role: "heading",
|
|
63
|
+
"aria-level": "4",
|
|
64
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
65
|
+
...props
|
|
66
|
+
}, undefined, false, undefined, this);
|
|
67
|
+
}
|
|
68
|
+
function P({ className, asChild = false, ...props }) {
|
|
69
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
70
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
71
|
+
className: cn3("text-foreground web:select-text text-base", className),
|
|
72
|
+
...props
|
|
73
|
+
}, undefined, false, undefined, this);
|
|
74
|
+
}
|
|
75
|
+
function BlockQuote({ className, asChild = false, ...props }) {
|
|
76
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
77
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
78
|
+
role: Platform.OS === "web" ? "blockquote" : undefined,
|
|
79
|
+
className: cn3("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this);
|
|
82
|
+
}
|
|
83
|
+
function Code({ className, asChild = false, ...props }) {
|
|
84
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
85
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
86
|
+
role: Platform.OS === "web" ? "code" : undefined,
|
|
87
|
+
className: cn3("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
|
|
88
|
+
...props
|
|
89
|
+
}, undefined, false, undefined, this);
|
|
90
|
+
}
|
|
91
|
+
function Lead({ className, asChild = false, ...props }) {
|
|
92
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
93
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
94
|
+
className: cn3("text-muted-foreground web:select-text text-xl", className),
|
|
95
|
+
...props
|
|
96
|
+
}, undefined, false, undefined, this);
|
|
97
|
+
}
|
|
98
|
+
function Large({ className, asChild = false, ...props }) {
|
|
99
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
100
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
101
|
+
className: cn3("text-foreground web:select-text text-xl font-semibold", className),
|
|
102
|
+
...props
|
|
103
|
+
}, undefined, false, undefined, this);
|
|
104
|
+
}
|
|
105
|
+
function Small({ className, asChild = false, ...props }) {
|
|
106
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
107
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
108
|
+
className: cn3("text-foreground web:select-text text-sm leading-none font-medium", className),
|
|
109
|
+
...props
|
|
110
|
+
}, undefined, false, undefined, this);
|
|
111
|
+
}
|
|
112
|
+
function Muted({ className, asChild = false, ...props }) {
|
|
113
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
114
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
115
|
+
className: cn3("text-muted-foreground web:select-text text-sm", className),
|
|
116
|
+
...props
|
|
117
|
+
}, undefined, false, undefined, this);
|
|
118
|
+
}
|
|
119
|
+
// ui/atoms/LoadingSpinner/LoadingSpinner.tsx
|
|
120
|
+
import { Loader2 } from "lucide-react";
|
|
121
|
+
import { View } from "react-native";
|
|
122
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
123
|
+
var sizeClasses = {
|
|
124
|
+
sm: "h-4 w-4",
|
|
125
|
+
md: "h-6 w-6",
|
|
126
|
+
lg: "h-8 w-8",
|
|
127
|
+
xl: "h-12 w-12"
|
|
128
|
+
};
|
|
129
|
+
var LoadingSpinner = ({
|
|
130
|
+
size = "md",
|
|
131
|
+
className,
|
|
132
|
+
text,
|
|
133
|
+
fullScreen = false
|
|
134
|
+
}) => {
|
|
135
|
+
const spinner = /* @__PURE__ */ jsxDEV3(View, {
|
|
136
|
+
className: cn2("flex flex-col items-center justify-center gap-2", className),
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsxDEV3(Loader2, {
|
|
139
|
+
className: cn2("text-primary-600 animate-spin", sizeClasses[size])
|
|
140
|
+
}, undefined, false, undefined, this),
|
|
141
|
+
text && /* @__PURE__ */ jsxDEV3(P, {
|
|
142
|
+
className: "animate-pulse text-base text-gray-600",
|
|
143
|
+
children: text
|
|
144
|
+
}, undefined, false, undefined, this)
|
|
145
|
+
]
|
|
146
|
+
}, undefined, true, undefined, this);
|
|
147
|
+
if (fullScreen) {
|
|
148
|
+
return /* @__PURE__ */ jsxDEV3(View, {
|
|
149
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-white/80 backdrop-blur-xs",
|
|
150
|
+
children: spinner
|
|
151
|
+
}, undefined, false, undefined, this);
|
|
152
|
+
}
|
|
153
|
+
return spinner;
|
|
154
|
+
};
|
|
155
|
+
var SkeletonLine = ({
|
|
156
|
+
className
|
|
157
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
158
|
+
className: cn2("h-4 animate-pulse rounded-xs bg-gray-200", className)
|
|
159
|
+
}, undefined, false, undefined, this);
|
|
160
|
+
var SkeletonCard = ({
|
|
161
|
+
className
|
|
162
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
163
|
+
className: cn2("animate-pulse space-y-3 rounded-lg bg-gray-200 p-4", className),
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
166
|
+
className: "h-6 w-3/4"
|
|
167
|
+
}, undefined, false, undefined, this),
|
|
168
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
169
|
+
className: "h-4 w-full"
|
|
170
|
+
}, undefined, false, undefined, this),
|
|
171
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
172
|
+
className: "h-4 w-2/3"
|
|
173
|
+
}, undefined, false, undefined, this)
|
|
174
|
+
]
|
|
175
|
+
}, undefined, true, undefined, this);
|
|
176
|
+
var SkeletonTable = ({
|
|
177
|
+
rows = 5,
|
|
178
|
+
cols = 4
|
|
179
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
180
|
+
className: "space-y-3",
|
|
181
|
+
children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxDEV3(View, {
|
|
182
|
+
className: "flex space-x-4",
|
|
183
|
+
children: Array.from({ length: cols }).map((_2, j) => /* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
184
|
+
className: "flex-1"
|
|
185
|
+
}, j, false, undefined, this))
|
|
186
|
+
}, i, false, undefined, this))
|
|
187
|
+
}, undefined, false, undefined, this);
|
|
188
|
+
export {
|
|
189
|
+
SkeletonTable,
|
|
190
|
+
SkeletonLine,
|
|
191
|
+
SkeletonCard,
|
|
192
|
+
LoadingSpinner
|
|
193
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// ui/text.tsx
|
|
2
|
+
import * as Slot from "@rn-primitives/slot";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Text as RNText } from "react-native";
|
|
5
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
7
|
+
var TextClassContext = React.createContext(undefined);
|
|
8
|
+
function Text2({
|
|
9
|
+
className,
|
|
10
|
+
asChild = false,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
const textClass = React.useContext(TextClassContext);
|
|
14
|
+
const Component = asChild ? Slot.Text : RNText;
|
|
15
|
+
return /* @__PURE__ */ jsxDEV(Component, {
|
|
16
|
+
className: cn("text-foreground web:select-text text-base", textClass, className),
|
|
17
|
+
...props
|
|
18
|
+
}, undefined, false, undefined, this);
|
|
19
|
+
}
|
|
20
|
+
// ui/utils.ts
|
|
21
|
+
import { clsx } from "clsx";
|
|
22
|
+
import { twMerge } from "tailwind-merge";
|
|
23
|
+
function cn2(...inputs) {
|
|
24
|
+
return twMerge(clsx(inputs));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ui/typography.tsx
|
|
28
|
+
import * as Slot2 from "@rn-primitives/slot";
|
|
29
|
+
import { Platform } from "react-native";
|
|
30
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
31
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
32
|
+
function H1({ className, asChild = false, ...props }) {
|
|
33
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
34
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
35
|
+
role: "heading",
|
|
36
|
+
"aria-level": "1",
|
|
37
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className),
|
|
38
|
+
...props
|
|
39
|
+
}, undefined, false, undefined, this);
|
|
40
|
+
}
|
|
41
|
+
function H2({ className, asChild = false, ...props }) {
|
|
42
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
43
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
44
|
+
role: "heading",
|
|
45
|
+
"aria-level": "2",
|
|
46
|
+
className: cn3("border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
|
|
47
|
+
...props
|
|
48
|
+
}, undefined, false, undefined, this);
|
|
49
|
+
}
|
|
50
|
+
function H3({ className, asChild = false, ...props }) {
|
|
51
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
52
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
53
|
+
role: "heading",
|
|
54
|
+
"aria-level": "3",
|
|
55
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
56
|
+
...props
|
|
57
|
+
}, undefined, false, undefined, this);
|
|
58
|
+
}
|
|
59
|
+
function H4({ className, asChild = false, ...props }) {
|
|
60
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
61
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
62
|
+
role: "heading",
|
|
63
|
+
"aria-level": "4",
|
|
64
|
+
className: cn3("text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
65
|
+
...props
|
|
66
|
+
}, undefined, false, undefined, this);
|
|
67
|
+
}
|
|
68
|
+
function P({ className, asChild = false, ...props }) {
|
|
69
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
70
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
71
|
+
className: cn3("text-foreground web:select-text text-base", className),
|
|
72
|
+
...props
|
|
73
|
+
}, undefined, false, undefined, this);
|
|
74
|
+
}
|
|
75
|
+
function BlockQuote({ className, asChild = false, ...props }) {
|
|
76
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
77
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
78
|
+
role: Platform.OS === "web" ? "blockquote" : undefined,
|
|
79
|
+
className: cn3("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this);
|
|
82
|
+
}
|
|
83
|
+
function Code({ className, asChild = false, ...props }) {
|
|
84
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
85
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
86
|
+
role: Platform.OS === "web" ? "code" : undefined,
|
|
87
|
+
className: cn3("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
|
|
88
|
+
...props
|
|
89
|
+
}, undefined, false, undefined, this);
|
|
90
|
+
}
|
|
91
|
+
function Lead({ className, asChild = false, ...props }) {
|
|
92
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
93
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
94
|
+
className: cn3("text-muted-foreground web:select-text text-xl", className),
|
|
95
|
+
...props
|
|
96
|
+
}, undefined, false, undefined, this);
|
|
97
|
+
}
|
|
98
|
+
function Large({ className, asChild = false, ...props }) {
|
|
99
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
100
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
101
|
+
className: cn3("text-foreground web:select-text text-xl font-semibold", className),
|
|
102
|
+
...props
|
|
103
|
+
}, undefined, false, undefined, this);
|
|
104
|
+
}
|
|
105
|
+
function Small({ className, asChild = false, ...props }) {
|
|
106
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
107
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
108
|
+
className: cn3("text-foreground web:select-text text-sm leading-none font-medium", className),
|
|
109
|
+
...props
|
|
110
|
+
}, undefined, false, undefined, this);
|
|
111
|
+
}
|
|
112
|
+
function Muted({ className, asChild = false, ...props }) {
|
|
113
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
114
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
115
|
+
className: cn3("text-muted-foreground web:select-text text-sm", className),
|
|
116
|
+
...props
|
|
117
|
+
}, undefined, false, undefined, this);
|
|
118
|
+
}
|
|
119
|
+
// ui/atoms/LoadingSpinner/LoadingSpinner.tsx
|
|
120
|
+
import { Loader2 } from "lucide-react";
|
|
121
|
+
import { View } from "react-native";
|
|
122
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
123
|
+
var sizeClasses = {
|
|
124
|
+
sm: "h-4 w-4",
|
|
125
|
+
md: "h-6 w-6",
|
|
126
|
+
lg: "h-8 w-8",
|
|
127
|
+
xl: "h-12 w-12"
|
|
128
|
+
};
|
|
129
|
+
var LoadingSpinner = ({
|
|
130
|
+
size = "md",
|
|
131
|
+
className,
|
|
132
|
+
text,
|
|
133
|
+
fullScreen = false
|
|
134
|
+
}) => {
|
|
135
|
+
const spinner = /* @__PURE__ */ jsxDEV3(View, {
|
|
136
|
+
className: cn2("flex flex-col items-center justify-center gap-2", className),
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsxDEV3(Loader2, {
|
|
139
|
+
className: cn2("text-primary-600 animate-spin", sizeClasses[size])
|
|
140
|
+
}, undefined, false, undefined, this),
|
|
141
|
+
text && /* @__PURE__ */ jsxDEV3(P, {
|
|
142
|
+
className: "animate-pulse text-base text-gray-600",
|
|
143
|
+
children: text
|
|
144
|
+
}, undefined, false, undefined, this)
|
|
145
|
+
]
|
|
146
|
+
}, undefined, true, undefined, this);
|
|
147
|
+
if (fullScreen) {
|
|
148
|
+
return /* @__PURE__ */ jsxDEV3(View, {
|
|
149
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-white/80 backdrop-blur-xs",
|
|
150
|
+
children: spinner
|
|
151
|
+
}, undefined, false, undefined, this);
|
|
152
|
+
}
|
|
153
|
+
return spinner;
|
|
154
|
+
};
|
|
155
|
+
var SkeletonLine = ({
|
|
156
|
+
className
|
|
157
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
158
|
+
className: cn2("h-4 animate-pulse rounded-xs bg-gray-200", className)
|
|
159
|
+
}, undefined, false, undefined, this);
|
|
160
|
+
var SkeletonCard = ({
|
|
161
|
+
className
|
|
162
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
163
|
+
className: cn2("animate-pulse space-y-3 rounded-lg bg-gray-200 p-4", className),
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
166
|
+
className: "h-6 w-3/4"
|
|
167
|
+
}, undefined, false, undefined, this),
|
|
168
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
169
|
+
className: "h-4 w-full"
|
|
170
|
+
}, undefined, false, undefined, this),
|
|
171
|
+
/* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
172
|
+
className: "h-4 w-2/3"
|
|
173
|
+
}, undefined, false, undefined, this)
|
|
174
|
+
]
|
|
175
|
+
}, undefined, true, undefined, this);
|
|
176
|
+
var SkeletonTable = ({
|
|
177
|
+
rows = 5,
|
|
178
|
+
cols = 4
|
|
179
|
+
}) => /* @__PURE__ */ jsxDEV3(View, {
|
|
180
|
+
className: "space-y-3",
|
|
181
|
+
children: Array.from({ length: rows }).map((_, i) => /* @__PURE__ */ jsxDEV3(View, {
|
|
182
|
+
className: "flex space-x-4",
|
|
183
|
+
children: Array.from({ length: cols }).map((_2, j) => /* @__PURE__ */ jsxDEV3(SkeletonLine, {
|
|
184
|
+
className: "flex-1"
|
|
185
|
+
}, j, false, undefined, this))
|
|
186
|
+
}, i, false, undefined, this))
|
|
187
|
+
}, undefined, false, undefined, this);
|
|
188
|
+
export {
|
|
189
|
+
SkeletonTable,
|
|
190
|
+
SkeletonLine,
|
|
191
|
+
SkeletonCard,
|
|
192
|
+
LoadingSpinner
|
|
193
|
+
};
|