@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,150 @@
|
|
|
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/toggle.tsx
|
|
21
|
+
import * as TogglePrimitive from "@rn-primitives/toggle";
|
|
22
|
+
import { cva } from "class-variance-authority";
|
|
23
|
+
import * as React2 from "react";
|
|
24
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
25
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
26
|
+
var toggleVariants = cva("web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted active:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2", {
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
default: "bg-transparent",
|
|
30
|
+
outline: "border border-input bg-transparent web:hover:bg-accent active:bg-accent active:bg-accent"
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
default: "h-10 px-3 native:h-12 native:px-[12]",
|
|
34
|
+
sm: "h-9 px-2.5 native:h-10 native:px-[9]",
|
|
35
|
+
lg: "h-11 px-5 native:h-14 native:px-6"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "default",
|
|
40
|
+
size: "default"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var toggleTextVariants = cva("text-sm native:text-base text-foreground font-medium", {
|
|
44
|
+
variants: {
|
|
45
|
+
variant: {
|
|
46
|
+
default: "",
|
|
47
|
+
outline: "web:group-hover:text-accent-foreground web:group-active:text-accent-foreground"
|
|
48
|
+
},
|
|
49
|
+
size: {
|
|
50
|
+
default: "",
|
|
51
|
+
sm: "",
|
|
52
|
+
lg: ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
variant: "default",
|
|
57
|
+
size: "default"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
function Toggle({
|
|
61
|
+
className,
|
|
62
|
+
variant,
|
|
63
|
+
size,
|
|
64
|
+
...props
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
67
|
+
value: cn2(toggleTextVariants({ variant, size }), props.pressed ? "text-accent-foreground" : "web:group-hover:text-muted-foreground", className),
|
|
68
|
+
children: /* @__PURE__ */ jsxDEV2(TogglePrimitive.Root, {
|
|
69
|
+
className: cn2(toggleVariants({ variant, size }), props.disabled && "web:pointer-events-none opacity-50", props.pressed && "bg-accent", className),
|
|
70
|
+
...props
|
|
71
|
+
}, undefined, false, undefined, this)
|
|
72
|
+
}, undefined, false, undefined, this);
|
|
73
|
+
}
|
|
74
|
+
function ToggleIcon({
|
|
75
|
+
className,
|
|
76
|
+
icon: Icon,
|
|
77
|
+
...props
|
|
78
|
+
}) {
|
|
79
|
+
const textClass = React2.useContext(TextClassContext);
|
|
80
|
+
return /* @__PURE__ */ jsxDEV2(Icon, {
|
|
81
|
+
className: cn2(textClass, className),
|
|
82
|
+
...props
|
|
83
|
+
}, undefined, false, undefined, this);
|
|
84
|
+
}
|
|
85
|
+
// ui/toggle-group.tsx
|
|
86
|
+
import * as React3 from "react";
|
|
87
|
+
import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
|
|
88
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
89
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
90
|
+
var ToggleGroupContext = React3.createContext(null);
|
|
91
|
+
function ToggleGroup({
|
|
92
|
+
className,
|
|
93
|
+
variant,
|
|
94
|
+
size,
|
|
95
|
+
children,
|
|
96
|
+
...props
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ jsxDEV3(ToggleGroupPrimitive.Root, {
|
|
99
|
+
className: cn3("flex flex-row items-center justify-center gap-1", className),
|
|
100
|
+
...props,
|
|
101
|
+
children: /* @__PURE__ */ jsxDEV3(ToggleGroupContext.Provider, {
|
|
102
|
+
value: { variant, size },
|
|
103
|
+
children
|
|
104
|
+
}, undefined, false, undefined, this)
|
|
105
|
+
}, undefined, false, undefined, this);
|
|
106
|
+
}
|
|
107
|
+
function useToggleGroupContext() {
|
|
108
|
+
const context = React3.useContext(ToggleGroupContext);
|
|
109
|
+
if (context === null) {
|
|
110
|
+
throw new Error("ToggleGroup compound components cannot be rendered outside the ToggleGroup component");
|
|
111
|
+
}
|
|
112
|
+
return context;
|
|
113
|
+
}
|
|
114
|
+
function ToggleGroupItem({
|
|
115
|
+
className,
|
|
116
|
+
children,
|
|
117
|
+
variant,
|
|
118
|
+
size,
|
|
119
|
+
...props
|
|
120
|
+
}) {
|
|
121
|
+
const context = useToggleGroupContext();
|
|
122
|
+
const { value } = ToggleGroupPrimitive.useRootContext();
|
|
123
|
+
return /* @__PURE__ */ jsxDEV3(TextClassContext.Provider, {
|
|
124
|
+
value: cn3(toggleTextVariants({ variant, size }), ToggleGroupPrimitive.utils.getIsSelected(value, props.value) ? "text-accent-foreground" : "web:group-hover:text-muted-foreground"),
|
|
125
|
+
children: /* @__PURE__ */ jsxDEV3(ToggleGroupPrimitive.Item, {
|
|
126
|
+
className: cn3(toggleVariants({
|
|
127
|
+
variant: context.variant || variant,
|
|
128
|
+
size: context.size || size
|
|
129
|
+
}), props.disabled && "web:pointer-events-none opacity-50", ToggleGroupPrimitive.utils.getIsSelected(value, props.value) && "bg-accent", className),
|
|
130
|
+
...props,
|
|
131
|
+
children
|
|
132
|
+
}, undefined, false, undefined, this)
|
|
133
|
+
}, undefined, false, undefined, this);
|
|
134
|
+
}
|
|
135
|
+
function ToggleGroupIcon({
|
|
136
|
+
className,
|
|
137
|
+
icon: Icon,
|
|
138
|
+
...props
|
|
139
|
+
}) {
|
|
140
|
+
const textClass = React3.useContext(TextClassContext);
|
|
141
|
+
return /* @__PURE__ */ jsxDEV3(Icon, {
|
|
142
|
+
className: cn3(textClass, className),
|
|
143
|
+
...props
|
|
144
|
+
}, undefined, false, undefined, this);
|
|
145
|
+
}
|
|
146
|
+
export {
|
|
147
|
+
ToggleGroupItem,
|
|
148
|
+
ToggleGroupIcon,
|
|
149
|
+
ToggleGroup
|
|
150
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
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/toggle.tsx
|
|
21
|
+
import * as TogglePrimitive from "@rn-primitives/toggle";
|
|
22
|
+
import { cva } from "class-variance-authority";
|
|
23
|
+
import * as React2 from "react";
|
|
24
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
25
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
26
|
+
var toggleVariants = cva("web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted active:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2", {
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
default: "bg-transparent",
|
|
30
|
+
outline: "border border-input bg-transparent web:hover:bg-accent active:bg-accent active:bg-accent"
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
default: "h-10 px-3 native:h-12 native:px-[12]",
|
|
34
|
+
sm: "h-9 px-2.5 native:h-10 native:px-[9]",
|
|
35
|
+
lg: "h-11 px-5 native:h-14 native:px-6"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "default",
|
|
40
|
+
size: "default"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var toggleTextVariants = cva("text-sm native:text-base text-foreground font-medium", {
|
|
44
|
+
variants: {
|
|
45
|
+
variant: {
|
|
46
|
+
default: "",
|
|
47
|
+
outline: "web:group-hover:text-accent-foreground web:group-active:text-accent-foreground"
|
|
48
|
+
},
|
|
49
|
+
size: {
|
|
50
|
+
default: "",
|
|
51
|
+
sm: "",
|
|
52
|
+
lg: ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
variant: "default",
|
|
57
|
+
size: "default"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
function Toggle({
|
|
61
|
+
className,
|
|
62
|
+
variant,
|
|
63
|
+
size,
|
|
64
|
+
...props
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
67
|
+
value: cn2(toggleTextVariants({ variant, size }), props.pressed ? "text-accent-foreground" : "web:group-hover:text-muted-foreground", className),
|
|
68
|
+
children: /* @__PURE__ */ jsxDEV2(TogglePrimitive.Root, {
|
|
69
|
+
className: cn2(toggleVariants({ variant, size }), props.disabled && "web:pointer-events-none opacity-50", props.pressed && "bg-accent", className),
|
|
70
|
+
...props
|
|
71
|
+
}, undefined, false, undefined, this)
|
|
72
|
+
}, undefined, false, undefined, this);
|
|
73
|
+
}
|
|
74
|
+
function ToggleIcon({
|
|
75
|
+
className,
|
|
76
|
+
icon: Icon,
|
|
77
|
+
...props
|
|
78
|
+
}) {
|
|
79
|
+
const textClass = React2.useContext(TextClassContext);
|
|
80
|
+
return /* @__PURE__ */ jsxDEV2(Icon, {
|
|
81
|
+
className: cn2(textClass, className),
|
|
82
|
+
...props
|
|
83
|
+
}, undefined, false, undefined, this);
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
toggleVariants,
|
|
87
|
+
toggleTextVariants,
|
|
88
|
+
ToggleIcon,
|
|
89
|
+
Toggle
|
|
90
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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/tooltip.tsx
|
|
21
|
+
import * as TooltipPrimitive from "@rn-primitives/tooltip";
|
|
22
|
+
import { Platform, StyleSheet } from "react-native";
|
|
23
|
+
import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
|
|
24
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
25
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
26
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
27
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
28
|
+
function TooltipContent({
|
|
29
|
+
className,
|
|
30
|
+
sideOffset = 4,
|
|
31
|
+
portalHost,
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsxDEV2(TooltipPrimitive.Portal, {
|
|
35
|
+
hostName: portalHost,
|
|
36
|
+
children: /* @__PURE__ */ jsxDEV2(TooltipPrimitive.Overlay, {
|
|
37
|
+
style: Platform.OS !== "web" ? StyleSheet.absoluteFill : undefined,
|
|
38
|
+
children: /* @__PURE__ */ jsxDEV2(Animated.View, {
|
|
39
|
+
entering: Platform.select({ web: undefined, default: FadeIn }),
|
|
40
|
+
exiting: Platform.select({ web: undefined, default: FadeOut }),
|
|
41
|
+
children: /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
42
|
+
value: "text-sm native:text-base text-popover-foreground",
|
|
43
|
+
children: /* @__PURE__ */ jsxDEV2(TooltipPrimitive.Content, {
|
|
44
|
+
sideOffset,
|
|
45
|
+
className: cn2("border-border bg-popover shadow-foreground/5 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 web:animate-in web:fade-in-0 web:zoom-in-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md", className),
|
|
46
|
+
...props
|
|
47
|
+
}, undefined, false, undefined, this)
|
|
48
|
+
}, undefined, false, undefined, this)
|
|
49
|
+
}, undefined, false, undefined, this)
|
|
50
|
+
}, undefined, false, undefined, this)
|
|
51
|
+
}, undefined, false, undefined, this);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
TooltipTrigger,
|
|
55
|
+
TooltipContent,
|
|
56
|
+
Tooltip
|
|
57
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
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/typography.tsx
|
|
21
|
+
import * as Slot2 from "@rn-primitives/slot";
|
|
22
|
+
import { Platform } from "react-native";
|
|
23
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
24
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
25
|
+
function H1({ className, asChild = false, ...props }) {
|
|
26
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
27
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
28
|
+
role: "heading",
|
|
29
|
+
"aria-level": "1",
|
|
30
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className),
|
|
31
|
+
...props
|
|
32
|
+
}, undefined, false, undefined, this);
|
|
33
|
+
}
|
|
34
|
+
function H2({ className, asChild = false, ...props }) {
|
|
35
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
36
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
37
|
+
role: "heading",
|
|
38
|
+
"aria-level": "2",
|
|
39
|
+
className: cn2("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),
|
|
40
|
+
...props
|
|
41
|
+
}, undefined, false, undefined, this);
|
|
42
|
+
}
|
|
43
|
+
function H3({ className, asChild = false, ...props }) {
|
|
44
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
45
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
46
|
+
role: "heading",
|
|
47
|
+
"aria-level": "3",
|
|
48
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
49
|
+
...props
|
|
50
|
+
}, undefined, false, undefined, this);
|
|
51
|
+
}
|
|
52
|
+
function H4({ className, asChild = false, ...props }) {
|
|
53
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
54
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
55
|
+
role: "heading",
|
|
56
|
+
"aria-level": "4",
|
|
57
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
58
|
+
...props
|
|
59
|
+
}, undefined, false, undefined, this);
|
|
60
|
+
}
|
|
61
|
+
function P({ className, asChild = false, ...props }) {
|
|
62
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
63
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
64
|
+
className: cn2("text-foreground web:select-text text-base", className),
|
|
65
|
+
...props
|
|
66
|
+
}, undefined, false, undefined, this);
|
|
67
|
+
}
|
|
68
|
+
function BlockQuote({ className, asChild = false, ...props }) {
|
|
69
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
70
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
71
|
+
role: Platform.OS === "web" ? "blockquote" : undefined,
|
|
72
|
+
className: cn2("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
|
|
73
|
+
...props
|
|
74
|
+
}, undefined, false, undefined, this);
|
|
75
|
+
}
|
|
76
|
+
function Code({ className, asChild = false, ...props }) {
|
|
77
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
78
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
79
|
+
role: Platform.OS === "web" ? "code" : undefined,
|
|
80
|
+
className: cn2("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
|
|
81
|
+
...props
|
|
82
|
+
}, undefined, false, undefined, this);
|
|
83
|
+
}
|
|
84
|
+
function Lead({ className, asChild = false, ...props }) {
|
|
85
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
86
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
87
|
+
className: cn2("text-muted-foreground web:select-text text-xl", className),
|
|
88
|
+
...props
|
|
89
|
+
}, undefined, false, undefined, this);
|
|
90
|
+
}
|
|
91
|
+
function Large({ className, asChild = false, ...props }) {
|
|
92
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
93
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
94
|
+
className: cn2("text-foreground web:select-text text-xl font-semibold", className),
|
|
95
|
+
...props
|
|
96
|
+
}, undefined, false, undefined, this);
|
|
97
|
+
}
|
|
98
|
+
function Small({ className, asChild = false, ...props }) {
|
|
99
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
100
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
101
|
+
className: cn2("text-foreground web:select-text text-sm leading-none font-medium", className),
|
|
102
|
+
...props
|
|
103
|
+
}, undefined, false, undefined, this);
|
|
104
|
+
}
|
|
105
|
+
function Muted({ className, asChild = false, ...props }) {
|
|
106
|
+
const Component = asChild ? Slot2.Text : Text2;
|
|
107
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
108
|
+
className: cn2("text-muted-foreground web:select-text text-sm", className),
|
|
109
|
+
...props
|
|
110
|
+
}, undefined, false, undefined, this);
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
Small,
|
|
114
|
+
P,
|
|
115
|
+
Muted,
|
|
116
|
+
Lead,
|
|
117
|
+
Large,
|
|
118
|
+
H4,
|
|
119
|
+
H3,
|
|
120
|
+
H2,
|
|
121
|
+
H1,
|
|
122
|
+
Code,
|
|
123
|
+
BlockQuote
|
|
124
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// ui/useColorScheme.tsx
|
|
2
|
+
import { useColorScheme as useNativewindColorScheme } from "nativewind";
|
|
3
|
+
var DEFAULT_COLOR_SCHEME = "light";
|
|
4
|
+
function useColorScheme() {
|
|
5
|
+
const { colorScheme, setColorScheme, toggleColorScheme } = useNativewindColorScheme();
|
|
6
|
+
return {
|
|
7
|
+
colorScheme: colorScheme ?? DEFAULT_COLOR_SCHEME,
|
|
8
|
+
isDarkColorScheme: colorScheme === "dark",
|
|
9
|
+
setColorScheme,
|
|
10
|
+
toggleColorScheme
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
useColorScheme
|
|
15
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// ui/useListState.tsx
|
|
2
|
+
import { useCallback, useMemo, useState } from "react";
|
|
3
|
+
var useListState = ({
|
|
4
|
+
initialSearch = "",
|
|
5
|
+
initialFilters = {},
|
|
6
|
+
initialPage = 1,
|
|
7
|
+
initialItemsPerPage = 25
|
|
8
|
+
} = {}) => {
|
|
9
|
+
const [searchQuery, setSearchQuery] = useState(initialSearch);
|
|
10
|
+
const [filters, setFilters] = useState(initialFilters);
|
|
11
|
+
const [currentPage, setCurrentPage] = useState(initialPage);
|
|
12
|
+
const [itemsPerPage, setItemsPerPage] = useState(initialItemsPerPage);
|
|
13
|
+
const setFilter = useCallback((key, value) => {
|
|
14
|
+
setFilters((prev) => ({
|
|
15
|
+
...prev,
|
|
16
|
+
[key]: value
|
|
17
|
+
}));
|
|
18
|
+
setCurrentPage(1);
|
|
19
|
+
}, []);
|
|
20
|
+
const clearFilters = useCallback(() => {
|
|
21
|
+
setFilters({});
|
|
22
|
+
setCurrentPage(1);
|
|
23
|
+
}, []);
|
|
24
|
+
const handleSetSearchQuery = useCallback((query) => {
|
|
25
|
+
setSearchQuery(query);
|
|
26
|
+
setCurrentPage(1);
|
|
27
|
+
}, []);
|
|
28
|
+
const handleSetItemsPerPage = useCallback((newItemsPerPage) => {
|
|
29
|
+
setItemsPerPage(newItemsPerPage);
|
|
30
|
+
setCurrentPage(1);
|
|
31
|
+
}, []);
|
|
32
|
+
const resetAll = useCallback(() => {
|
|
33
|
+
setSearchQuery(initialSearch);
|
|
34
|
+
setFilters(initialFilters);
|
|
35
|
+
setCurrentPage(initialPage);
|
|
36
|
+
setItemsPerPage(initialItemsPerPage);
|
|
37
|
+
}, [initialSearch, initialFilters, initialPage, initialItemsPerPage]);
|
|
38
|
+
const queryParams = useMemo(() => {
|
|
39
|
+
const baseParams = {
|
|
40
|
+
search: searchQuery,
|
|
41
|
+
page: currentPage,
|
|
42
|
+
limit: itemsPerPage
|
|
43
|
+
};
|
|
44
|
+
const filterParams = {};
|
|
45
|
+
Object.entries(filters).forEach(([key, value]) => {
|
|
46
|
+
if (value) {
|
|
47
|
+
filterParams[key] = value;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return { ...baseParams, ...filterParams };
|
|
51
|
+
}, [searchQuery, filters, currentPage, itemsPerPage]);
|
|
52
|
+
return {
|
|
53
|
+
searchQuery,
|
|
54
|
+
setSearchQuery: handleSetSearchQuery,
|
|
55
|
+
filters,
|
|
56
|
+
setFilter,
|
|
57
|
+
clearFilters,
|
|
58
|
+
currentPage,
|
|
59
|
+
itemsPerPage,
|
|
60
|
+
setCurrentPage,
|
|
61
|
+
setItemsPerPage: handleSetItemsPerPage,
|
|
62
|
+
queryParams,
|
|
63
|
+
resetAll
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
useListState
|
|
68
|
+
};
|