@contractspec/lib.ui-kit 1.57.0 → 1.58.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,160 @@
|
|
|
1
|
+
// ui/icons/iconWithClassName.ts
|
|
2
|
+
import { styled } from "nativewind";
|
|
3
|
+
function iconWithClassName(icon) {
|
|
4
|
+
styled(icon, {
|
|
5
|
+
className: {
|
|
6
|
+
target: "style",
|
|
7
|
+
nativeStyleMapping: {
|
|
8
|
+
color: true,
|
|
9
|
+
opacity: true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ui/icons/ChevronDown.tsx
|
|
16
|
+
import { ChevronDown } from "lucide-react-native";
|
|
17
|
+
iconWithClassName(ChevronDown);
|
|
18
|
+
// ui/text.tsx
|
|
19
|
+
import * as Slot from "@rn-primitives/slot";
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import { Text as RNText } from "react-native";
|
|
22
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
23
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
24
|
+
var TextClassContext = React.createContext(undefined);
|
|
25
|
+
function Text2({
|
|
26
|
+
className,
|
|
27
|
+
asChild = false,
|
|
28
|
+
...props
|
|
29
|
+
}) {
|
|
30
|
+
const textClass = React.useContext(TextClassContext);
|
|
31
|
+
const Component = asChild ? Slot.Text : RNText;
|
|
32
|
+
return /* @__PURE__ */ jsxDEV(Component, {
|
|
33
|
+
className: cn("text-foreground web:select-text text-base", textClass, className),
|
|
34
|
+
...props
|
|
35
|
+
}, undefined, false, undefined, this);
|
|
36
|
+
}
|
|
37
|
+
// ui/accordion.tsx
|
|
38
|
+
import * as AccordionPrimitive from "@rn-primitives/accordion";
|
|
39
|
+
import { Platform, Pressable, View } from "react-native";
|
|
40
|
+
import Animated, {
|
|
41
|
+
Extrapolation,
|
|
42
|
+
FadeIn,
|
|
43
|
+
FadeOutUp,
|
|
44
|
+
interpolate,
|
|
45
|
+
LayoutAnimationConfig,
|
|
46
|
+
LinearTransition,
|
|
47
|
+
useAnimatedStyle,
|
|
48
|
+
useDerivedValue,
|
|
49
|
+
withTiming
|
|
50
|
+
} from "react-native-reanimated";
|
|
51
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
52
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
53
|
+
function Accordion({
|
|
54
|
+
children,
|
|
55
|
+
...props
|
|
56
|
+
}) {
|
|
57
|
+
return /* @__PURE__ */ jsxDEV2(LayoutAnimationConfig, {
|
|
58
|
+
skipEntering: true,
|
|
59
|
+
children: /* @__PURE__ */ jsxDEV2(AccordionPrimitive.Root, {
|
|
60
|
+
...props,
|
|
61
|
+
asChild: Platform.OS !== "web",
|
|
62
|
+
children: /* @__PURE__ */ jsxDEV2(Animated.View, {
|
|
63
|
+
layout: LinearTransition.duration(200),
|
|
64
|
+
children
|
|
65
|
+
}, undefined, false, undefined, this)
|
|
66
|
+
}, undefined, false, undefined, this)
|
|
67
|
+
}, undefined, false, undefined, this);
|
|
68
|
+
}
|
|
69
|
+
function AccordionItem({
|
|
70
|
+
className,
|
|
71
|
+
value,
|
|
72
|
+
...props
|
|
73
|
+
}) {
|
|
74
|
+
return /* @__PURE__ */ jsxDEV2(Animated.View, {
|
|
75
|
+
className: "overflow-hidden",
|
|
76
|
+
layout: LinearTransition.duration(200),
|
|
77
|
+
children: /* @__PURE__ */ jsxDEV2(AccordionPrimitive.Item, {
|
|
78
|
+
className: cn2("border-border border-b", className),
|
|
79
|
+
value,
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this)
|
|
82
|
+
}, undefined, false, undefined, this);
|
|
83
|
+
}
|
|
84
|
+
var Trigger2 = Platform.OS === "web" ? View : Pressable;
|
|
85
|
+
function AccordionTrigger({
|
|
86
|
+
className,
|
|
87
|
+
children,
|
|
88
|
+
...props
|
|
89
|
+
}) {
|
|
90
|
+
const { isExpanded } = AccordionPrimitive.useItemContext();
|
|
91
|
+
const progress = useDerivedValue(() => isExpanded ? withTiming(1, { duration: 250 }) : withTiming(0, { duration: 200 }));
|
|
92
|
+
const chevronStyle = useAnimatedStyle(() => ({
|
|
93
|
+
transform: [{ rotate: `${progress.value * 180}deg` }],
|
|
94
|
+
opacity: interpolate(progress.value, [0, 1], [1, 0.8], Extrapolation.CLAMP)
|
|
95
|
+
}));
|
|
96
|
+
return /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
97
|
+
value: "native:text-lg font-medium web:group-hover:underline",
|
|
98
|
+
children: /* @__PURE__ */ jsxDEV2(AccordionPrimitive.Header, {
|
|
99
|
+
className: "flex",
|
|
100
|
+
children: /* @__PURE__ */ jsxDEV2(AccordionPrimitive.Trigger, {
|
|
101
|
+
...props,
|
|
102
|
+
asChild: true,
|
|
103
|
+
children: /* @__PURE__ */ jsxDEV2(Trigger2, {
|
|
104
|
+
className: cn2("group web:flex-1 web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-1 web:focus-visible:ring-muted-foreground flex flex-row items-center justify-between py-4", className),
|
|
105
|
+
children: [
|
|
106
|
+
children,
|
|
107
|
+
/* @__PURE__ */ jsxDEV2(Animated.View, {
|
|
108
|
+
style: chevronStyle,
|
|
109
|
+
children: /* @__PURE__ */ jsxDEV2(ChevronDown, {
|
|
110
|
+
size: 18,
|
|
111
|
+
className: "text-foreground shrink-0"
|
|
112
|
+
}, undefined, false, undefined, this)
|
|
113
|
+
}, undefined, false, undefined, this)
|
|
114
|
+
]
|
|
115
|
+
}, undefined, true, undefined, this)
|
|
116
|
+
}, undefined, false, undefined, this)
|
|
117
|
+
}, undefined, false, undefined, this)
|
|
118
|
+
}, undefined, false, undefined, this);
|
|
119
|
+
}
|
|
120
|
+
function AccordionContent({
|
|
121
|
+
className,
|
|
122
|
+
children,
|
|
123
|
+
...props
|
|
124
|
+
}) {
|
|
125
|
+
const { isExpanded } = AccordionPrimitive.useItemContext();
|
|
126
|
+
return /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
127
|
+
value: "native:text-lg",
|
|
128
|
+
children: /* @__PURE__ */ jsxDEV2(AccordionPrimitive.Content, {
|
|
129
|
+
className: cn2("web:transition-all overflow-hidden text-sm", isExpanded ? "web:animate-accordion-down" : "web:animate-accordion-up"),
|
|
130
|
+
...props,
|
|
131
|
+
children: /* @__PURE__ */ jsxDEV2(InnerContent, {
|
|
132
|
+
className: cn2("pb-4", className),
|
|
133
|
+
children
|
|
134
|
+
}, undefined, false, undefined, this)
|
|
135
|
+
}, undefined, false, undefined, this)
|
|
136
|
+
}, undefined, false, undefined, this);
|
|
137
|
+
}
|
|
138
|
+
function InnerContent({
|
|
139
|
+
children,
|
|
140
|
+
className
|
|
141
|
+
}) {
|
|
142
|
+
if (Platform.OS === "web") {
|
|
143
|
+
return /* @__PURE__ */ jsxDEV2(View, {
|
|
144
|
+
className: cn2("pb-4", className),
|
|
145
|
+
children
|
|
146
|
+
}, undefined, false, undefined, this);
|
|
147
|
+
}
|
|
148
|
+
return /* @__PURE__ */ jsxDEV2(Animated.View, {
|
|
149
|
+
entering: FadeIn,
|
|
150
|
+
exiting: FadeOutUp.duration(200),
|
|
151
|
+
className: cn2("pb-4", className),
|
|
152
|
+
children
|
|
153
|
+
}, undefined, false, undefined, this);
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
AccordionTrigger,
|
|
157
|
+
AccordionItem,
|
|
158
|
+
AccordionContent,
|
|
159
|
+
Accordion
|
|
160
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
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/button.tsx
|
|
21
|
+
import { cva } from "class-variance-authority";
|
|
22
|
+
import { Pressable } 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
|
+
var buttonVariants = cva("group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2", {
|
|
26
|
+
variants: {
|
|
27
|
+
variant: {
|
|
28
|
+
default: "bg-primary web:hover:opacity-90 active:opacity-90",
|
|
29
|
+
destructive: "bg-destructive web:hover:opacity-90 active:opacity-90",
|
|
30
|
+
outline: "border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",
|
|
31
|
+
secondary: "bg-secondary web:hover:opacity-80 active:opacity-80",
|
|
32
|
+
ghost: "web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",
|
|
33
|
+
link: "web:underline-offset-4 web:hover:underline web:focus:underline"
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
default: "h-10 px-4 py-2 native:h-12 native:px-5 native:py-3",
|
|
37
|
+
sm: "h-9 rounded-md px-3",
|
|
38
|
+
lg: "h-11 rounded-md px-8 native:h-14",
|
|
39
|
+
icon: "h-10 w-10"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
variant: "default",
|
|
44
|
+
size: "default"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
var buttonTextVariants = cva("web:whitespace-nowrap text-sm native:text-base font-medium text-foreground web:transition-colors", {
|
|
48
|
+
variants: {
|
|
49
|
+
variant: {
|
|
50
|
+
default: "text-primary-foreground",
|
|
51
|
+
destructive: "text-destructive-foreground",
|
|
52
|
+
outline: "group-active:text-accent-foreground",
|
|
53
|
+
secondary: "text-secondary-foreground group-active:text-secondary-foreground",
|
|
54
|
+
ghost: "group-active:text-accent-foreground",
|
|
55
|
+
link: "text-primary group-active:underline"
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
default: "",
|
|
59
|
+
sm: "",
|
|
60
|
+
lg: "native:text-lg",
|
|
61
|
+
icon: ""
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
variant: "default",
|
|
66
|
+
size: "default"
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
function Button({ ref, className, variant, size, ...props }) {
|
|
70
|
+
return /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
|
|
71
|
+
value: buttonTextVariants({
|
|
72
|
+
variant,
|
|
73
|
+
size,
|
|
74
|
+
className: "web:pointer-events-none"
|
|
75
|
+
}),
|
|
76
|
+
children: /* @__PURE__ */ jsxDEV2(Pressable, {
|
|
77
|
+
className: cn2(props.disabled && "web:pointer-events-none opacity-50", buttonVariants({ variant, size, className })),
|
|
78
|
+
ref,
|
|
79
|
+
role: "button",
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this)
|
|
82
|
+
}, undefined, false, undefined, this);
|
|
83
|
+
}
|
|
84
|
+
// ui/alert-dialog.tsx
|
|
85
|
+
import * as AlertDialogPrimitive from "@rn-primitives/alert-dialog";
|
|
86
|
+
import { Platform, View } from "react-native";
|
|
87
|
+
import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
|
|
88
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
89
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
90
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
91
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
92
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
93
|
+
function AlertDialogOverlayWeb({
|
|
94
|
+
className,
|
|
95
|
+
...props
|
|
96
|
+
}) {
|
|
97
|
+
const { open } = AlertDialogPrimitive.useRootContext();
|
|
98
|
+
return /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Overlay, {
|
|
99
|
+
className: cn3("absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2", open ? "web:animate-in web:fade-in-0" : "web:animate-out web:fade-out-0", className),
|
|
100
|
+
...props
|
|
101
|
+
}, undefined, false, undefined, this);
|
|
102
|
+
}
|
|
103
|
+
function AlertDialogOverlayNative({
|
|
104
|
+
className,
|
|
105
|
+
children,
|
|
106
|
+
...props
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Overlay, {
|
|
109
|
+
className: cn3("absolute top-0 right-0 bottom-0 left-0 z-50 flex items-center justify-center bg-black/80 p-2", className),
|
|
110
|
+
...props,
|
|
111
|
+
asChild: true,
|
|
112
|
+
children: /* @__PURE__ */ jsxDEV3(Animated.View, {
|
|
113
|
+
entering: FadeIn.duration(150),
|
|
114
|
+
exiting: FadeOut.duration(150),
|
|
115
|
+
children
|
|
116
|
+
}, undefined, false, undefined, this)
|
|
117
|
+
}, undefined, false, undefined, this);
|
|
118
|
+
}
|
|
119
|
+
var AlertDialogOverlay = Platform.select({
|
|
120
|
+
web: AlertDialogOverlayWeb,
|
|
121
|
+
default: AlertDialogOverlayNative
|
|
122
|
+
});
|
|
123
|
+
function AlertDialogContent({
|
|
124
|
+
className,
|
|
125
|
+
portalHost,
|
|
126
|
+
...props
|
|
127
|
+
}) {
|
|
128
|
+
const { open } = AlertDialogPrimitive.useRootContext();
|
|
129
|
+
return /* @__PURE__ */ jsxDEV3(AlertDialogPortal, {
|
|
130
|
+
hostName: portalHost,
|
|
131
|
+
children: /* @__PURE__ */ jsxDEV3(AlertDialogOverlay, {
|
|
132
|
+
children: /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Content, {
|
|
133
|
+
className: cn3("border-border bg-background shadow-foreground/10 web:duration-200 z-50 max-w-lg gap-4 rounded-lg border p-6 shadow-lg", open ? "web:animate-in web:fade-in-0 web:zoom-in-95" : "web:animate-out web:fade-out-0 web:zoom-out-95", className),
|
|
134
|
+
...props
|
|
135
|
+
}, undefined, false, undefined, this)
|
|
136
|
+
}, undefined, false, undefined, this)
|
|
137
|
+
}, undefined, false, undefined, this);
|
|
138
|
+
}
|
|
139
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
140
|
+
return /* @__PURE__ */ jsxDEV3(View, {
|
|
141
|
+
className: cn3("flex flex-col gap-2", className),
|
|
142
|
+
...props
|
|
143
|
+
}, undefined, false, undefined, this);
|
|
144
|
+
}
|
|
145
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
146
|
+
return /* @__PURE__ */ jsxDEV3(View, {
|
|
147
|
+
className: cn3("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
148
|
+
...props
|
|
149
|
+
}, undefined, false, undefined, this);
|
|
150
|
+
}
|
|
151
|
+
function AlertDialogTitle({
|
|
152
|
+
className,
|
|
153
|
+
...props
|
|
154
|
+
}) {
|
|
155
|
+
return /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Title, {
|
|
156
|
+
className: cn3("native:text-xl text-foreground text-lg font-semibold", className),
|
|
157
|
+
...props
|
|
158
|
+
}, undefined, false, undefined, this);
|
|
159
|
+
}
|
|
160
|
+
function AlertDialogDescription({
|
|
161
|
+
className,
|
|
162
|
+
...props
|
|
163
|
+
}) {
|
|
164
|
+
return /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Description, {
|
|
165
|
+
className: cn3("native:text-base text-muted-foreground text-sm", className),
|
|
166
|
+
...props
|
|
167
|
+
}, undefined, false, undefined, this);
|
|
168
|
+
}
|
|
169
|
+
function AlertDialogAction({
|
|
170
|
+
className,
|
|
171
|
+
...props
|
|
172
|
+
}) {
|
|
173
|
+
return /* @__PURE__ */ jsxDEV3(TextClassContext.Provider, {
|
|
174
|
+
value: buttonTextVariants({ className }),
|
|
175
|
+
children: /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Action, {
|
|
176
|
+
className: cn3(buttonVariants(), className),
|
|
177
|
+
...props
|
|
178
|
+
}, undefined, false, undefined, this)
|
|
179
|
+
}, undefined, false, undefined, this);
|
|
180
|
+
}
|
|
181
|
+
function AlertDialogCancel({
|
|
182
|
+
className,
|
|
183
|
+
...props
|
|
184
|
+
}) {
|
|
185
|
+
return /* @__PURE__ */ jsxDEV3(TextClassContext.Provider, {
|
|
186
|
+
value: buttonTextVariants({ className, variant: "outline" }),
|
|
187
|
+
children: /* @__PURE__ */ jsxDEV3(AlertDialogPrimitive.Cancel, {
|
|
188
|
+
className: cn3(buttonVariants({ variant: "outline", className })),
|
|
189
|
+
...props
|
|
190
|
+
}, undefined, false, undefined, this)
|
|
191
|
+
}, undefined, false, undefined, this);
|
|
192
|
+
}
|
|
193
|
+
export {
|
|
194
|
+
AlertDialogTrigger,
|
|
195
|
+
AlertDialogTitle,
|
|
196
|
+
AlertDialogPortal,
|
|
197
|
+
AlertDialogOverlay,
|
|
198
|
+
AlertDialogHeader,
|
|
199
|
+
AlertDialogFooter,
|
|
200
|
+
AlertDialogDescription,
|
|
201
|
+
AlertDialogContent,
|
|
202
|
+
AlertDialogCancel,
|
|
203
|
+
AlertDialogAction,
|
|
204
|
+
AlertDialog
|
|
205
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
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/alert.tsx
|
|
21
|
+
import { useTheme } from "@react-navigation/native";
|
|
22
|
+
import { cva } from "class-variance-authority";
|
|
23
|
+
import { View } from "react-native";
|
|
24
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
25
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
26
|
+
var alertVariants = cva("relative bg-background w-full rounded-lg border border-border p-4 shadow-2xs shadow-foreground/10", {
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
default: "",
|
|
30
|
+
destructive: "border-destructive"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
function Alert({
|
|
38
|
+
className,
|
|
39
|
+
variant,
|
|
40
|
+
children,
|
|
41
|
+
icon: Icon,
|
|
42
|
+
iconSize = 16,
|
|
43
|
+
iconClassName,
|
|
44
|
+
...props
|
|
45
|
+
}) {
|
|
46
|
+
const { colors } = useTheme();
|
|
47
|
+
return /* @__PURE__ */ jsxDEV2(View, {
|
|
48
|
+
role: "alert",
|
|
49
|
+
className: alertVariants({ variant, className }),
|
|
50
|
+
...props,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsxDEV2(View, {
|
|
53
|
+
className: "absolute top-4 left-3.5 -translate-y-0.5",
|
|
54
|
+
children: /* @__PURE__ */ jsxDEV2(Icon, {
|
|
55
|
+
size: iconSize,
|
|
56
|
+
color: variant === "destructive" ? colors.notification : colors.text
|
|
57
|
+
}, undefined, false, undefined, this)
|
|
58
|
+
}, undefined, false, undefined, this),
|
|
59
|
+
children
|
|
60
|
+
]
|
|
61
|
+
}, undefined, true, undefined, this);
|
|
62
|
+
}
|
|
63
|
+
function AlertTitle({
|
|
64
|
+
className,
|
|
65
|
+
...props
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ jsxDEV2(Text2, {
|
|
68
|
+
className: cn2("text-foreground mb-1 pl-7 text-base leading-none font-medium tracking-tight", className),
|
|
69
|
+
...props
|
|
70
|
+
}, undefined, false, undefined, this);
|
|
71
|
+
}
|
|
72
|
+
function AlertDescription({
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}) {
|
|
76
|
+
return /* @__PURE__ */ jsxDEV2(Text2, {
|
|
77
|
+
className: cn2("text-foreground pl-7 text-sm leading-relaxed", className),
|
|
78
|
+
...props
|
|
79
|
+
}, undefined, false, undefined, this);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
AlertTitle,
|
|
83
|
+
AlertDescription,
|
|
84
|
+
Alert
|
|
85
|
+
};
|