@contractspec/lib.ui-kit-web 1.56.1 → 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 +13 -0
- package/dist/browser/ui/accordion.js +73 -0
- package/dist/browser/ui/alert-dialog.js +177 -0
- package/dist/browser/ui/alert.js +60 -0
- package/dist/browser/ui/aspect-ratio.js +15 -0
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/index.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +89 -0
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +89 -0
- package/dist/browser/ui/atoms/Pagination/Pagination.js +387 -0
- package/dist/browser/ui/atoms/Pagination/index.js +387 -0
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/index.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +54 -0
- package/dist/browser/ui/badge.js +43 -0
- package/dist/browser/ui/breadcrumb.js +109 -0
- package/dist/browser/ui/button.js +56 -0
- package/dist/browser/ui/calendar.js +181 -0
- package/dist/browser/ui/card.js +87 -0
- package/dist/browser/ui/carousel.js +229 -0
- package/dist/browser/ui/checkbox.js +34 -0
- package/dist/browser/ui/collapsible.js +41 -0
- package/dist/browser/ui/command.js +266 -0
- package/dist/browser/ui/confirm-dialog.js +226 -0
- package/dist/browser/ui/context-menu.js +127 -0
- package/dist/browser/ui/cta.js +102 -0
- package/dist/browser/ui/date-picker.js +350 -0
- package/dist/browser/ui/date-range-picker.js +276 -0
- package/dist/browser/ui/datetime-picker.js +489 -0
- package/dist/browser/ui/dialog.js +140 -0
- package/dist/browser/ui/drawer.js +130 -0
- package/dist/browser/ui/dropdown-menu.js +214 -0
- package/dist/browser/ui/empty-state.js +209 -0
- package/dist/browser/ui/empty.js +90 -0
- package/dist/browser/ui/field.js +221 -0
- package/dist/browser/ui/focus-on-route-change.js +25 -0
- package/dist/browser/ui/form.js +156 -0
- package/dist/browser/ui/hover-card.js +51 -0
- package/dist/browser/ui/input-group.js +192 -0
- package/dist/browser/ui/input-otp.js +60 -0
- package/dist/browser/ui/input.js +22 -0
- package/dist/browser/ui/label.js +26 -0
- package/dist/browser/ui/link.js +24 -0
- package/dist/browser/ui/live-region.js +56 -0
- package/dist/browser/ui/loading-button.js +228 -0
- package/dist/browser/ui/map/MapBase.js +70 -0
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +56 -0
- package/dist/browser/ui/map/MapHeatmapH3.js +66 -0
- package/dist/browser/ui/map/MapMarkers.js +45 -0
- package/dist/browser/ui/map/index.js +210 -0
- package/dist/browser/ui/marketing/FeatureGrid.js +50 -0
- package/dist/browser/ui/marketing/Hero.js +116 -0
- package/dist/browser/ui/marketing/PricingTable.js +127 -0
- package/dist/browser/ui/marketing/index.js +217 -0
- package/dist/browser/ui/menubar.js +231 -0
- package/dist/browser/ui/molecules/Autocomplete/index.js +584 -0
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +44 -0
- package/dist/browser/ui/nav-layout.js +298 -0
- package/dist/browser/ui/navigation-menu.js +128 -0
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +191 -0
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +191 -0
- package/dist/browser/ui/organisms/ListPage/ListPage.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/index.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +206 -0
- package/dist/browser/ui/pagination.js +156 -0
- package/dist/browser/ui/popover.js +59 -0
- package/dist/browser/ui/progress.js +32 -0
- package/dist/browser/ui/radio-group.js +45 -0
- package/dist/browser/ui/resizable.js +41 -0
- package/dist/browser/ui/route-announcer.js +28 -0
- package/dist/browser/ui/scroll-area.js +53 -0
- package/dist/browser/ui/section.js +65 -0
- package/dist/browser/ui/select.js +165 -0
- package/dist/browser/ui/separator.js +30 -0
- package/dist/browser/ui/sheet.js +136 -0
- package/dist/browser/ui/sidebar.js +806 -0
- package/dist/browser/ui/skeleton.js +30 -0
- package/dist/browser/ui/skip-link.js +27 -0
- package/dist/browser/ui/slider.js +50 -0
- package/dist/browser/ui/sonner.js +29 -0
- package/dist/browser/ui/stack.js +158 -0
- package/dist/browser/ui/stat-card-group.js +263 -0
- package/dist/browser/ui/stepper.js +185 -0
- package/dist/browser/ui/switch.js +31 -0
- package/dist/browser/ui/table.js +106 -0
- package/dist/browser/ui/tabs.js +59 -0
- package/dist/browser/ui/text.js +22 -0
- package/dist/browser/ui/textarea.js +21 -0
- package/dist/browser/ui/time-picker.js +186 -0
- package/dist/browser/ui/toast.js +79 -0
- package/dist/browser/ui/toaster.js +220 -0
- package/dist/browser/ui/toggle-group.js +96 -0
- package/dist/browser/ui/toggle.js +47 -0
- package/dist/browser/ui/tooltip.js +68 -0
- package/dist/browser/ui/typography.js +123 -0
- package/dist/browser/ui/use-media-query.js +26 -0
- package/dist/browser/ui/use-mobile.js +27 -0
- package/dist/browser/ui/use-reduced-motion.js +24 -0
- package/dist/browser/ui/use-toast.js +129 -0
- package/dist/browser/ui/useListState.js +76 -0
- package/dist/browser/ui/usecases/UseCaseCard.js +232 -0
- package/dist/browser/ui/usecases/UserStoryCard.js +186 -0
- package/dist/browser/ui/usecases/index.js +267 -0
- package/dist/browser/ui/utils.js +17 -0
- package/dist/browser/ui/visually-hidden.js +35 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/ui/accordion.d.ts +7 -24
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +60 -40
- package/dist/ui/alert-dialog.d.ts +14 -48
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +158 -71
- package/dist/ui/alert.d.ts +8 -23
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +50 -34
- package/dist/ui/aspect-ratio.d.ts +2 -6
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +8 -8
- 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 +237 -51
- 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 +238 -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 +81 -43
- 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 +83 -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 +380 -155
- 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 +381 -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 +116 -48
- 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 +117 -2
- 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 +6 -19
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +44 -28
- package/dist/ui/badge.d.ts +7 -17
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +34 -23
- package/dist/ui/breadcrumb.d.ts +11 -37
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +94 -62
- package/dist/ui/button.d.ts +14 -18
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +46 -50
- package/dist/ui/calendar.d.ts +7 -25
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +172 -105
- package/dist/ui/card.d.ts +9 -34
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +73 -49
- package/dist/ui/carousel.d.ts +13 -41
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +215 -127
- package/dist/ui/checkbox.d.ts +3 -10
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +25 -21
- package/dist/ui/collapsible.d.ts +5 -15
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +31 -23
- package/dist/ui/command.d.ts +18 -52
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +258 -87
- package/dist/ui/confirm-dialog.d.ts +13 -29
- package/dist/ui/confirm-dialog.d.ts.map +1 -1
- package/dist/ui/confirm-dialog.js +219 -32
- package/dist/ui/context-menu.d.ts +25 -32
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +109 -71
- package/dist/ui/cta.d.ts +17 -21
- package/dist/ui/cta.d.ts.map +1 -1
- package/dist/ui/cta.js +94 -36
- package/dist/ui/date-picker.d.ts +10 -24
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +342 -98
- package/dist/ui/date-range-picker.d.ts +11 -23
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/date-range-picker.js +268 -51
- 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 +479 -39
- package/dist/ui/dialog.d.ts +15 -47
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +122 -77
- package/dist/ui/drawer.d.ts +13 -44
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +113 -70
- package/dist/ui/dropdown-menu.d.ts +25 -77
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +191 -109
- 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 +201 -40
- package/dist/ui/empty.d.ts +11 -35
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +76 -53
- package/dist/ui/field.d.ts +24 -64
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +202 -107
- package/dist/ui/focus-on-route-change.d.ts +2 -7
- package/dist/ui/focus-on-route-change.d.ts.map +1 -1
- package/dist/ui/focus-on-route-change.js +18 -15
- package/dist/ui/form.d.ts +24 -44
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +141 -84
- package/dist/ui/hover-card.d.ts +6 -19
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +41 -31
- package/dist/ui/input-group.d.ts +14 -41
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +177 -79
- package/dist/ui/input-otp.d.ts +32 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +47 -38
- package/dist/ui/input.d.ts +4 -12
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +14 -14
- package/dist/ui/label.d.ts +3 -10
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +18 -16
- package/dist/ui/link.d.ts +3 -7
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +14 -13
- package/dist/ui/live-region.d.ts +8 -14
- package/dist/ui/live-region.d.ts.map +1 -1
- package/dist/ui/live-region.js +47 -43
- 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 +221 -19
- package/dist/ui/map/MapBase.d.ts +20 -25
- package/dist/ui/map/MapBase.d.ts.map +1 -1
- package/dist/ui/map/MapBase.js +62 -43
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +9 -14
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -1
- package/dist/ui/map/MapGeoJsonOverlay.js +47 -33
- package/dist/ui/map/MapHeatmapH3.d.ts +10 -15
- package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -1
- package/dist/ui/map/MapHeatmapH3.js +55 -44
- package/dist/ui/map/MapMarkers.d.ts +11 -18
- package/dist/ui/map/MapMarkers.d.ts.map +1 -1
- package/dist/ui/map/MapMarkers.js +36 -35
- package/dist/ui/map/index.d.ts +5 -5
- package/dist/ui/map/index.d.ts.map +1 -0
- package/dist/ui/map/index.js +204 -5
- 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 +42 -32
- 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 +108 -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 +119 -57
- 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 +211 -4
- package/dist/ui/menubar.d.ts +26 -84
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +223 -134
- package/dist/ui/molecules/Autocomplete/index.d.ts +1 -6
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/ui/molecules/Autocomplete/index.js +574 -80
- 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 +496 -101
- 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 +497 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -22
- 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 +36 -12
- package/dist/ui/nav-layout.d.ts +44 -67
- package/dist/ui/nav-layout.d.ts.map +1 -1
- package/dist/ui/nav-layout.js +287 -127
- package/dist/ui/navigation-menu.d.ts +14 -46
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +113 -73
- 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 +182 -103
- 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 +185 -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 +1229 -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 +1230 -2
- package/dist/ui/organisms/ListPage/types.d.ts +34 -38
- 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 +198 -37
- package/dist/ui/pagination.d.ts +17 -38
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +142 -56
- package/dist/ui/popover.d.ts +7 -22
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +48 -33
- package/dist/ui/progress.d.ts +3 -11
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +24 -21
- package/dist/ui/radio-group.d.ts +4 -14
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +35 -27
- package/dist/ui/resizable.d.ts +22 -34
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +33 -22
- package/dist/ui/route-announcer.d.ts +3 -10
- package/dist/ui/route-announcer.d.ts.map +1 -1
- package/dist/ui/route-announcer.js +20 -19
- package/dist/ui/scroll-area.d.ts +4 -16
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +44 -36
- package/dist/ui/section.d.ts +20 -24
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +56 -59
- package/dist/ui/select.d.ts +15 -51
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +147 -87
- package/dist/ui/separator.d.ts +3 -12
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +22 -18
- package/dist/ui/sheet.d.ts +13 -40
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +117 -72
- package/dist/ui/sidebar.d.ts +65 -162
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +794 -372
- package/dist/ui/skeleton.d.ts +2 -9
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +22 -12
- package/dist/ui/skip-link.d.ts +6 -15
- package/dist/ui/skip-link.d.ts.map +1 -1
- package/dist/ui/skip-link.js +20 -15
- package/dist/ui/slider.d.ts +3 -14
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +42 -37
- package/dist/ui/sonner.d.ts +2 -8
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +21 -21
- package/dist/ui/stack.d.ts +40 -44
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +143 -148
- package/dist/ui/stat-card-group.d.ts +9 -17
- package/dist/ui/stat-card-group.d.ts.map +1 -1
- package/dist/ui/stat-card-group.js +255 -36
- package/dist/ui/stepper.d.ts +10 -20
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +176 -33
- package/dist/ui/switch.d.ts +5 -13
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +23 -20
- package/dist/ui/table.d.ts +10 -38
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +91 -61
- package/dist/ui/tabs.d.ts +7 -23
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +48 -34
- package/dist/ui/text.d.ts +5 -13
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +14 -13
- package/dist/ui/textarea.d.ts +4 -11
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +13 -13
- 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 +176 -76
- package/dist/ui/toast.d.ts +15 -19
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +63 -51
- package/dist/ui/toaster.d.ts +1 -6
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +212 -24
- package/dist/ui/toggle-group.d.ts +6 -22
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +85 -42
- package/dist/ui/toggle.d.ts +7 -17
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +38 -37
- package/dist/ui/tooltip.d.ts +7 -23
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +57 -34
- package/dist/ui/typography.d.ts +13 -61
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +95 -64
- package/dist/ui/use-media-query.d.ts +1 -4
- package/dist/ui/use-media-query.d.ts.map +1 -1
- package/dist/ui/use-media-query.js +18 -17
- package/dist/ui/use-mobile.d.ts +1 -4
- package/dist/ui/use-mobile.d.ts.map +1 -1
- package/dist/ui/use-mobile.js +19 -18
- package/dist/ui/use-reduced-motion.d.ts +1 -4
- package/dist/ui/use-reduced-motion.d.ts.map +1 -1
- package/dist/ui/use-reduced-motion.js +16 -15
- package/dist/ui/use-toast.d.ts +28 -33
- package/dist/ui/use-toast.d.ts.map +1 -1
- package/dist/ui/use-toast.js +113 -111
- package/dist/ui/useListState.d.ts +23 -31
- package/dist/ui/useListState.d.ts.map +1 -1
- package/dist/ui/useListState.js +69 -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 +225 -33
- 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 +179 -34
- 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 +261 -3
- package/dist/ui/utils.d.ts +2 -6
- package/dist/ui/utils.d.ts.map +1 -1
- package/dist/ui/utils.js +8 -7
- package/dist/ui/visually-hidden.d.ts +5 -8
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +26 -27
- package/package.json +874 -238
- 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/calendar.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/confirm-dialog.js.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/cta.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/drawer.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/field.js.map +0 -1
- package/dist/ui/focus-on-route-change.js.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input-otp.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/live-region.js.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/map/MapBase.js.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.js.map +0 -1
- package/dist/ui/map/MapHeatmapH3.js.map +0 -1
- package/dist/ui/map/MapMarkers.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/nav-layout.js.map +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/pagination.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/resizable.js.map +0 -1
- package/dist/ui/route-announcer.js.map +0 -1
- package/dist/ui/scroll-area.js.map +0 -1
- package/dist/ui/section.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/skip-link.js.map +0 -1
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stat-card-group.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/toast.js.map +0 -1
- package/dist/ui/toaster.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/use-media-query.js.map +0 -1
- package/dist/ui/use-mobile.js.map +0 -1
- package/dist/ui/use-reduced-motion.js.map +0 -1
- package/dist/ui/use-toast.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
- package/dist/ui/visually-hidden.js.map +0 -1
package/dist/ui/card.js
CHANGED
|
@@ -1,58 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// ui/card.tsx
|
|
5
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
7
|
function Card({ className, ...props }) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
9
|
+
"data-slot": "card",
|
|
10
|
+
className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-2xs", className),
|
|
11
|
+
...props
|
|
12
|
+
}, undefined, false, undefined, this);
|
|
12
13
|
}
|
|
13
|
-
function CardHeader({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
function CardHeader({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
19
|
+
"data-slot": "card-header",
|
|
20
|
+
className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this);
|
|
19
23
|
}
|
|
20
|
-
function CardTitle({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
function CardTitle({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
29
|
+
"data-slot": "card-title",
|
|
30
|
+
className: cn("leading-none font-semibold", className),
|
|
31
|
+
...props
|
|
32
|
+
}, undefined, false, undefined, this);
|
|
26
33
|
}
|
|
27
|
-
function CardDescription({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
function CardDescription({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
39
|
+
"data-slot": "card-description",
|
|
40
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
41
|
+
...props
|
|
42
|
+
}, undefined, false, undefined, this);
|
|
33
43
|
}
|
|
34
|
-
function CardAction({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
function CardAction({
|
|
45
|
+
className,
|
|
46
|
+
...props
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
49
|
+
"data-slot": "card-action",
|
|
50
|
+
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
51
|
+
...props
|
|
52
|
+
}, undefined, false, undefined, this);
|
|
40
53
|
}
|
|
41
|
-
function CardContent({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
function CardContent({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
59
|
+
"data-slot": "card-content",
|
|
60
|
+
className: cn("px-6", className),
|
|
61
|
+
...props
|
|
62
|
+
}, undefined, false, undefined, this);
|
|
47
63
|
}
|
|
48
|
-
function CardFooter({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
function CardFooter({
|
|
65
|
+
className,
|
|
66
|
+
...props
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
69
|
+
"data-slot": "card-footer",
|
|
70
|
+
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
71
|
+
...props
|
|
72
|
+
}, undefined, false, undefined, this);
|
|
54
73
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
export {
|
|
75
|
+
CardTitle,
|
|
76
|
+
CardHeader,
|
|
77
|
+
CardFooter,
|
|
78
|
+
CardDescription,
|
|
79
|
+
CardContent,
|
|
80
|
+
CardAction,
|
|
81
|
+
Card
|
|
82
|
+
};
|
package/dist/ui/carousel.d.ts
CHANGED
|
@@ -1,48 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
5
|
-
|
|
6
|
-
//#region ui/carousel.d.ts
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
|
|
3
|
+
import { Button } from './button';
|
|
7
4
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
8
5
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
9
6
|
type CarouselOptions = UseCarouselParameters[0];
|
|
10
7
|
type CarouselPlugin = UseCarouselParameters[1];
|
|
11
8
|
interface CarouselProps {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
opts?: CarouselOptions;
|
|
10
|
+
plugins?: CarouselPlugin;
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
setApi?: (api: CarouselApi) => void;
|
|
16
13
|
}
|
|
17
|
-
declare function Carousel({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children,
|
|
24
|
-
...props
|
|
25
|
-
}: React$1.ComponentPropsWithoutRef<'div'> & CarouselProps): react_jsx_runtime41.JSX.Element;
|
|
26
|
-
declare function CarouselContent({
|
|
27
|
-
className,
|
|
28
|
-
...props
|
|
29
|
-
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime41.JSX.Element;
|
|
30
|
-
declare function CarouselItem({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime41.JSX.Element;
|
|
34
|
-
declare function CarouselPrevious({
|
|
35
|
-
className,
|
|
36
|
-
variant,
|
|
37
|
-
size,
|
|
38
|
-
...props
|
|
39
|
-
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime41.JSX.Element;
|
|
40
|
-
declare function CarouselNext({
|
|
41
|
-
className,
|
|
42
|
-
variant,
|
|
43
|
-
size,
|
|
44
|
-
...props
|
|
45
|
-
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime41.JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
14
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentPropsWithoutRef<'div'> & CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CarouselContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CarouselItem({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
48
20
|
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACrC;AAuBD,iBAAS,QAAQ,CAAC,EAChB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,aAAa,2CAgFvD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAmBvC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAgBvC;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAuBrC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAuBrC;AAED,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAC"}
|
package/dist/ui/carousel.js
CHANGED
|
@@ -1,136 +1,224 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
4
|
+
// ui/button.tsx
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
8
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
9
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
10
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-hidden focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
14
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
15
|
+
outline: "border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
16
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
17
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
18
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
22
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
23
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
24
|
+
icon: "size-9"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
33
|
+
if (asChild) {
|
|
34
|
+
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
35
|
+
"data-slot": "button",
|
|
36
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
37
|
+
...props
|
|
38
|
+
}, undefined, false, undefined, this);
|
|
39
|
+
}
|
|
40
|
+
return /* @__PURE__ */ jsxDEV("button", {
|
|
41
|
+
ref,
|
|
42
|
+
"data-slot": "button",
|
|
43
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
44
|
+
...props
|
|
45
|
+
}, undefined, false, undefined, this);
|
|
46
|
+
});
|
|
47
|
+
Button.displayName = "Button";
|
|
48
|
+
// ui/utils.ts
|
|
49
|
+
import { clsx } from "clsx";
|
|
50
|
+
import { twMerge } from "tailwind-merge";
|
|
51
|
+
function cn2(...inputs) {
|
|
52
|
+
return twMerge(clsx(inputs));
|
|
53
|
+
}
|
|
9
54
|
|
|
10
|
-
|
|
11
|
-
|
|
55
|
+
// ui/carousel.tsx
|
|
56
|
+
import * as React2 from "react";
|
|
57
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
58
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
59
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
60
|
+
"use client";
|
|
61
|
+
var CarouselContext = React2.createContext(null);
|
|
12
62
|
function useCarousel() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
63
|
+
const context = React2.useContext(CarouselContext);
|
|
64
|
+
if (!context) {
|
|
65
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
66
|
+
}
|
|
67
|
+
return context;
|
|
16
68
|
}
|
|
17
|
-
function Carousel({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
function Carousel({
|
|
70
|
+
orientation = "horizontal",
|
|
71
|
+
opts,
|
|
72
|
+
setApi,
|
|
73
|
+
plugins,
|
|
74
|
+
className,
|
|
75
|
+
children,
|
|
76
|
+
...props
|
|
77
|
+
}) {
|
|
78
|
+
const [carouselRef, api] = useEmblaCarousel({
|
|
79
|
+
...opts,
|
|
80
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
81
|
+
}, plugins);
|
|
82
|
+
const [canScrollPrev, setCanScrollPrev] = React2.useState(false);
|
|
83
|
+
const [canScrollNext, setCanScrollNext] = React2.useState(false);
|
|
84
|
+
const onSelect = React2.useCallback((api2) => {
|
|
85
|
+
if (!api2)
|
|
86
|
+
return;
|
|
87
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
88
|
+
setCanScrollNext(api2.canScrollNext());
|
|
89
|
+
}, []);
|
|
90
|
+
const scrollPrev = React2.useCallback(() => {
|
|
91
|
+
api?.scrollPrev();
|
|
92
|
+
}, [api]);
|
|
93
|
+
const scrollNext = React2.useCallback(() => {
|
|
94
|
+
api?.scrollNext();
|
|
95
|
+
}, [api]);
|
|
96
|
+
const handleKeyDown = React2.useCallback((event) => {
|
|
97
|
+
if (event.key === "ArrowLeft") {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
scrollPrev();
|
|
100
|
+
} else if (event.key === "ArrowRight") {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
scrollNext();
|
|
103
|
+
}
|
|
104
|
+
}, [scrollPrev, scrollNext]);
|
|
105
|
+
React2.useEffect(() => {
|
|
106
|
+
if (!api || !setApi)
|
|
107
|
+
return;
|
|
108
|
+
setApi(api);
|
|
109
|
+
}, [api, setApi]);
|
|
110
|
+
React2.useEffect(() => {
|
|
111
|
+
if (!api)
|
|
112
|
+
return;
|
|
113
|
+
onSelect(api);
|
|
114
|
+
api.on("reInit", onSelect);
|
|
115
|
+
api.on("select", onSelect);
|
|
116
|
+
return () => {
|
|
117
|
+
api?.off("select", onSelect);
|
|
118
|
+
};
|
|
119
|
+
}, [api, onSelect]);
|
|
120
|
+
return /* @__PURE__ */ jsxDEV2(CarouselContext.Provider, {
|
|
121
|
+
value: {
|
|
122
|
+
carouselRef,
|
|
123
|
+
api,
|
|
124
|
+
opts,
|
|
125
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
126
|
+
scrollPrev,
|
|
127
|
+
scrollNext,
|
|
128
|
+
canScrollPrev,
|
|
129
|
+
canScrollNext
|
|
130
|
+
},
|
|
131
|
+
children: /* @__PURE__ */ jsxDEV2("div", {
|
|
132
|
+
onKeyDownCapture: handleKeyDown,
|
|
133
|
+
className: cn2("relative", className),
|
|
134
|
+
role: "region",
|
|
135
|
+
"aria-roledescription": "carousel",
|
|
136
|
+
"data-slot": "carousel",
|
|
137
|
+
...props,
|
|
138
|
+
children
|
|
139
|
+
}, undefined, false, undefined, this)
|
|
140
|
+
}, undefined, false, undefined, this);
|
|
78
141
|
}
|
|
79
|
-
function CarouselContent({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
142
|
+
function CarouselContent({
|
|
143
|
+
className,
|
|
144
|
+
...props
|
|
145
|
+
}) {
|
|
146
|
+
const { carouselRef, orientation } = useCarousel();
|
|
147
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
148
|
+
ref: carouselRef,
|
|
149
|
+
className: "overflow-hidden",
|
|
150
|
+
"data-slot": "carousel-content",
|
|
151
|
+
children: /* @__PURE__ */ jsxDEV2("div", {
|
|
152
|
+
className: cn2("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className),
|
|
153
|
+
...props
|
|
154
|
+
}, undefined, false, undefined, this)
|
|
155
|
+
}, undefined, false, undefined, this);
|
|
90
156
|
}
|
|
91
|
-
function CarouselItem({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
157
|
+
function CarouselItem({
|
|
158
|
+
className,
|
|
159
|
+
...props
|
|
160
|
+
}) {
|
|
161
|
+
const { orientation } = useCarousel();
|
|
162
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
163
|
+
role: "group",
|
|
164
|
+
"aria-roledescription": "slide",
|
|
165
|
+
"data-slot": "carousel-item",
|
|
166
|
+
className: cn2("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className),
|
|
167
|
+
...props
|
|
168
|
+
}, undefined, false, undefined, this);
|
|
100
169
|
}
|
|
101
|
-
function CarouselPrevious({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
170
|
+
function CarouselPrevious({
|
|
171
|
+
className,
|
|
172
|
+
variant = "outline",
|
|
173
|
+
size = "icon",
|
|
174
|
+
...props
|
|
175
|
+
}) {
|
|
176
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
177
|
+
return /* @__PURE__ */ jsxDEV2(Button, {
|
|
178
|
+
"data-slot": "carousel-previous",
|
|
179
|
+
variant,
|
|
180
|
+
size,
|
|
181
|
+
className: cn2("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
|
|
182
|
+
disabled: !canScrollPrev,
|
|
183
|
+
onClick: scrollPrev,
|
|
184
|
+
...props,
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ jsxDEV2(ArrowLeft, {}, undefined, false, undefined, this),
|
|
187
|
+
/* @__PURE__ */ jsxDEV2("span", {
|
|
188
|
+
className: "sr-only",
|
|
189
|
+
children: "Previous slide"
|
|
190
|
+
}, undefined, false, undefined, this)
|
|
191
|
+
]
|
|
192
|
+
}, undefined, true, undefined, this);
|
|
116
193
|
}
|
|
117
|
-
function CarouselNext({
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
194
|
+
function CarouselNext({
|
|
195
|
+
className,
|
|
196
|
+
variant = "outline",
|
|
197
|
+
size = "icon",
|
|
198
|
+
...props
|
|
199
|
+
}) {
|
|
200
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
201
|
+
return /* @__PURE__ */ jsxDEV2(Button, {
|
|
202
|
+
"data-slot": "carousel-next",
|
|
203
|
+
variant,
|
|
204
|
+
size,
|
|
205
|
+
className: cn2("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
|
|
206
|
+
disabled: !canScrollNext,
|
|
207
|
+
onClick: scrollNext,
|
|
208
|
+
...props,
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ jsxDEV2(ArrowRight, {}, undefined, false, undefined, this),
|
|
211
|
+
/* @__PURE__ */ jsxDEV2("span", {
|
|
212
|
+
className: "sr-only",
|
|
213
|
+
children: "Next slide"
|
|
214
|
+
}, undefined, false, undefined, this)
|
|
215
|
+
]
|
|
216
|
+
}, undefined, true, undefined, this);
|
|
132
217
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
218
|
+
export {
|
|
219
|
+
CarouselPrevious,
|
|
220
|
+
CarouselNext,
|
|
221
|
+
CarouselItem,
|
|
222
|
+
CarouselContent,
|
|
223
|
+
Carousel
|
|
224
|
+
};
|
package/dist/ui/checkbox.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region ui/checkbox.d.ts
|
|
6
|
-
declare function Checkbox({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime47.JSX.Element;
|
|
10
|
-
//#endregion
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
11
4
|
export { Checkbox };
|
|
12
5
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAK9D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAkBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/ui/checkbox.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
// ui/checkbox.tsx
|
|
5
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
6
|
import { CheckIcon } from "lucide-react";
|
|
5
7
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
9
|
+
"use client";
|
|
10
|
+
function Checkbox({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ jsxDEV(CheckboxPrimitive.Root, {
|
|
15
|
+
"data-slot": "checkbox",
|
|
16
|
+
className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsxDEV(CheckboxPrimitive.Indicator, {
|
|
19
|
+
"data-slot": "checkbox-indicator",
|
|
20
|
+
className: "grid place-content-center text-current transition-none",
|
|
21
|
+
children: /* @__PURE__ */ jsxDEV(CheckIcon, {
|
|
22
|
+
className: "size-3.5"
|
|
23
|
+
}, undefined, false, undefined, this)
|
|
24
|
+
}, undefined, false, undefined, this)
|
|
25
|
+
}, undefined, false, undefined, this);
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=checkbox.js.map
|
|
27
|
+
export {
|
|
28
|
+
Checkbox
|
|
29
|
+
};
|