@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
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined")
|
|
5
|
+
return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// ui/button.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
14
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
15
|
+
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", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
19
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
20
|
+
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",
|
|
21
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
22
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
23
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
27
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
28
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
29
|
+
icon: "size-9"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
variant: "default",
|
|
34
|
+
size: "default"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
38
|
+
if (asChild) {
|
|
39
|
+
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
40
|
+
"data-slot": "button",
|
|
41
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
42
|
+
...props
|
|
43
|
+
}, undefined, false, undefined, this);
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ jsxDEV("button", {
|
|
46
|
+
ref,
|
|
47
|
+
"data-slot": "button",
|
|
48
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
49
|
+
...props
|
|
50
|
+
}, undefined, false, undefined, this);
|
|
51
|
+
});
|
|
52
|
+
Button.displayName = "Button";
|
|
53
|
+
// ui/dialog.tsx
|
|
54
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
55
|
+
import { XIcon } from "lucide-react";
|
|
56
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
57
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
58
|
+
"use client";
|
|
59
|
+
function Dialog({
|
|
60
|
+
...props
|
|
61
|
+
}) {
|
|
62
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Root, {
|
|
63
|
+
"data-slot": "dialog",
|
|
64
|
+
...props
|
|
65
|
+
}, undefined, false, undefined, this);
|
|
66
|
+
}
|
|
67
|
+
function DialogTrigger({
|
|
68
|
+
...props
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Trigger, {
|
|
71
|
+
"data-slot": "dialog-trigger",
|
|
72
|
+
...props
|
|
73
|
+
}, undefined, false, undefined, this);
|
|
74
|
+
}
|
|
75
|
+
function DialogPortal({
|
|
76
|
+
...props
|
|
77
|
+
}) {
|
|
78
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Portal, {
|
|
79
|
+
"data-slot": "dialog-portal",
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this);
|
|
82
|
+
}
|
|
83
|
+
function DialogClose({
|
|
84
|
+
...props
|
|
85
|
+
}) {
|
|
86
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Close, {
|
|
87
|
+
"data-slot": "dialog-close",
|
|
88
|
+
...props
|
|
89
|
+
}, undefined, false, undefined, this);
|
|
90
|
+
}
|
|
91
|
+
function DialogOverlay({
|
|
92
|
+
className,
|
|
93
|
+
...props
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Overlay, {
|
|
96
|
+
"data-slot": "dialog-overlay",
|
|
97
|
+
className: cn2("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
98
|
+
...props
|
|
99
|
+
}, undefined, false, undefined, this);
|
|
100
|
+
}
|
|
101
|
+
function DialogContent({
|
|
102
|
+
className,
|
|
103
|
+
children,
|
|
104
|
+
showCloseButton = true,
|
|
105
|
+
...props
|
|
106
|
+
}) {
|
|
107
|
+
return /* @__PURE__ */ jsxDEV2(DialogPortal, {
|
|
108
|
+
"data-slot": "dialog-portal",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsxDEV2(DialogOverlay, {}, undefined, false, undefined, this),
|
|
111
|
+
/* @__PURE__ */ jsxDEV2(DialogPrimitive.Content, {
|
|
112
|
+
"data-slot": "dialog-content",
|
|
113
|
+
className: cn2("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
|
|
114
|
+
...props,
|
|
115
|
+
children: [
|
|
116
|
+
children,
|
|
117
|
+
showCloseButton && /* @__PURE__ */ jsxDEV2(DialogPrimitive.Close, {
|
|
118
|
+
"data-slot": "dialog-close",
|
|
119
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ jsxDEV2(XIcon, {}, undefined, false, undefined, this),
|
|
122
|
+
/* @__PURE__ */ jsxDEV2("span", {
|
|
123
|
+
className: "sr-only",
|
|
124
|
+
children: "Close"
|
|
125
|
+
}, undefined, false, undefined, this)
|
|
126
|
+
]
|
|
127
|
+
}, undefined, true, undefined, this)
|
|
128
|
+
]
|
|
129
|
+
}, undefined, true, undefined, this)
|
|
130
|
+
]
|
|
131
|
+
}, undefined, true, undefined, this);
|
|
132
|
+
}
|
|
133
|
+
function DialogHeader({
|
|
134
|
+
className,
|
|
135
|
+
...props
|
|
136
|
+
}) {
|
|
137
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
138
|
+
"data-slot": "dialog-header",
|
|
139
|
+
className: cn2("flex flex-col gap-2 text-center sm:text-left", className),
|
|
140
|
+
...props
|
|
141
|
+
}, undefined, false, undefined, this);
|
|
142
|
+
}
|
|
143
|
+
function DialogFooter({
|
|
144
|
+
className,
|
|
145
|
+
...props
|
|
146
|
+
}) {
|
|
147
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
148
|
+
"data-slot": "dialog-footer",
|
|
149
|
+
className: cn2("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
150
|
+
...props
|
|
151
|
+
}, undefined, false, undefined, this);
|
|
152
|
+
}
|
|
153
|
+
function DialogTitle({
|
|
154
|
+
className,
|
|
155
|
+
...props
|
|
156
|
+
}) {
|
|
157
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Title, {
|
|
158
|
+
"data-slot": "dialog-title",
|
|
159
|
+
className: cn2("text-lg leading-none font-semibold", className),
|
|
160
|
+
...props
|
|
161
|
+
}, undefined, false, undefined, this);
|
|
162
|
+
}
|
|
163
|
+
function DialogDescription({
|
|
164
|
+
className,
|
|
165
|
+
...props
|
|
166
|
+
}) {
|
|
167
|
+
return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Description, {
|
|
168
|
+
"data-slot": "dialog-description",
|
|
169
|
+
className: cn2("text-muted-foreground text-sm", className),
|
|
170
|
+
...props
|
|
171
|
+
}, undefined, false, undefined, this);
|
|
172
|
+
}
|
|
173
|
+
// ui/command.tsx
|
|
174
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
175
|
+
import { SearchIcon } from "lucide-react";
|
|
176
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
177
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
178
|
+
"use client";
|
|
179
|
+
function Command({
|
|
180
|
+
className,
|
|
181
|
+
...props
|
|
182
|
+
}) {
|
|
183
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive, {
|
|
184
|
+
"data-slot": "command",
|
|
185
|
+
className: cn3("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
186
|
+
...props
|
|
187
|
+
}, undefined, false, undefined, this);
|
|
188
|
+
}
|
|
189
|
+
function CommandDialog({
|
|
190
|
+
title = "Command Palette",
|
|
191
|
+
description = "Search for a command to run...",
|
|
192
|
+
children,
|
|
193
|
+
className,
|
|
194
|
+
showCloseButton = true,
|
|
195
|
+
...props
|
|
196
|
+
}) {
|
|
197
|
+
return /* @__PURE__ */ jsxDEV3(Dialog, {
|
|
198
|
+
...props,
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ jsxDEV3(DialogHeader, {
|
|
201
|
+
className: "sr-only",
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ jsxDEV3(DialogTitle, {
|
|
204
|
+
children: title
|
|
205
|
+
}, undefined, false, undefined, this),
|
|
206
|
+
/* @__PURE__ */ jsxDEV3(DialogDescription, {
|
|
207
|
+
children: description
|
|
208
|
+
}, undefined, false, undefined, this)
|
|
209
|
+
]
|
|
210
|
+
}, undefined, true, undefined, this),
|
|
211
|
+
/* @__PURE__ */ jsxDEV3(DialogContent, {
|
|
212
|
+
className: cn3("overflow-hidden p-0", className),
|
|
213
|
+
showCloseButton,
|
|
214
|
+
children: /* @__PURE__ */ jsxDEV3(Command, {
|
|
215
|
+
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
216
|
+
children
|
|
217
|
+
}, undefined, false, undefined, this)
|
|
218
|
+
}, undefined, false, undefined, this)
|
|
219
|
+
]
|
|
220
|
+
}, undefined, true, undefined, this);
|
|
221
|
+
}
|
|
222
|
+
function CommandInput({
|
|
223
|
+
className,
|
|
224
|
+
...props
|
|
225
|
+
}) {
|
|
226
|
+
return /* @__PURE__ */ jsxDEV3("div", {
|
|
227
|
+
"data-slot": "command-input-wrapper",
|
|
228
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ jsxDEV3(SearchIcon, {
|
|
231
|
+
className: "size-4 shrink-0 opacity-50"
|
|
232
|
+
}, undefined, false, undefined, this),
|
|
233
|
+
/* @__PURE__ */ jsxDEV3(CommandPrimitive.Input, {
|
|
234
|
+
"data-slot": "command-input",
|
|
235
|
+
className: cn3("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
236
|
+
...props
|
|
237
|
+
}, undefined, false, undefined, this)
|
|
238
|
+
]
|
|
239
|
+
}, undefined, true, undefined, this);
|
|
240
|
+
}
|
|
241
|
+
function CommandList({
|
|
242
|
+
className,
|
|
243
|
+
...props
|
|
244
|
+
}) {
|
|
245
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive.List, {
|
|
246
|
+
"data-slot": "command-list",
|
|
247
|
+
className: cn3("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
248
|
+
...props
|
|
249
|
+
}, undefined, false, undefined, this);
|
|
250
|
+
}
|
|
251
|
+
function CommandEmpty({
|
|
252
|
+
...props
|
|
253
|
+
}) {
|
|
254
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Empty, {
|
|
255
|
+
"data-slot": "command-empty",
|
|
256
|
+
className: "py-6 text-center text-sm",
|
|
257
|
+
...props
|
|
258
|
+
}, undefined, false, undefined, this);
|
|
259
|
+
}
|
|
260
|
+
function CommandGroup({
|
|
261
|
+
className,
|
|
262
|
+
...props
|
|
263
|
+
}) {
|
|
264
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Group, {
|
|
265
|
+
"data-slot": "command-group",
|
|
266
|
+
className: cn3("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
|
|
267
|
+
...props
|
|
268
|
+
}, undefined, false, undefined, this);
|
|
269
|
+
}
|
|
270
|
+
function CommandSeparator({
|
|
271
|
+
className,
|
|
272
|
+
...props
|
|
273
|
+
}) {
|
|
274
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Separator, {
|
|
275
|
+
"data-slot": "command-separator",
|
|
276
|
+
className: cn3("bg-border -mx-1 h-px", className),
|
|
277
|
+
...props
|
|
278
|
+
}, undefined, false, undefined, this);
|
|
279
|
+
}
|
|
280
|
+
function CommandItem({
|
|
281
|
+
className,
|
|
282
|
+
...props
|
|
283
|
+
}) {
|
|
284
|
+
return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Item, {
|
|
285
|
+
"data-slot": "command-item",
|
|
286
|
+
className: cn3("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
287
|
+
...props
|
|
288
|
+
}, undefined, false, undefined, this);
|
|
289
|
+
}
|
|
290
|
+
function CommandShortcut({
|
|
291
|
+
className,
|
|
292
|
+
...props
|
|
293
|
+
}) {
|
|
294
|
+
return /* @__PURE__ */ jsxDEV3("span", {
|
|
295
|
+
"data-slot": "command-shortcut",
|
|
296
|
+
className: cn3("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
297
|
+
...props
|
|
298
|
+
}, undefined, false, undefined, this);
|
|
299
|
+
}
|
|
300
|
+
// ui/popover.tsx
|
|
301
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
302
|
+
import { cn as cn4 } from "@contractspec/lib.ui-kit-core/utils";
|
|
303
|
+
import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
|
|
304
|
+
"use client";
|
|
305
|
+
function Popover({
|
|
306
|
+
...props
|
|
307
|
+
}) {
|
|
308
|
+
return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Root, {
|
|
309
|
+
"data-slot": "popover",
|
|
310
|
+
...props
|
|
311
|
+
}, undefined, false, undefined, this);
|
|
312
|
+
}
|
|
313
|
+
function PopoverTrigger({
|
|
314
|
+
...props
|
|
315
|
+
}) {
|
|
316
|
+
return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Trigger, {
|
|
317
|
+
"data-slot": "popover-trigger",
|
|
318
|
+
...props
|
|
319
|
+
}, undefined, false, undefined, this);
|
|
320
|
+
}
|
|
321
|
+
function PopoverContent({
|
|
322
|
+
className,
|
|
323
|
+
align = "center",
|
|
324
|
+
sideOffset = 4,
|
|
325
|
+
...props
|
|
326
|
+
}) {
|
|
327
|
+
return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Portal, {
|
|
328
|
+
children: /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Content, {
|
|
329
|
+
"data-slot": "popover-content",
|
|
330
|
+
align,
|
|
331
|
+
sideOffset,
|
|
332
|
+
className: cn4("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
|
|
333
|
+
...props
|
|
334
|
+
}, undefined, false, undefined, this)
|
|
335
|
+
}, undefined, false, undefined, this);
|
|
336
|
+
}
|
|
337
|
+
function PopoverAnchor({
|
|
338
|
+
...props
|
|
339
|
+
}) {
|
|
340
|
+
return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Anchor, {
|
|
341
|
+
"data-slot": "popover-anchor",
|
|
342
|
+
...props
|
|
343
|
+
}, undefined, false, undefined, this);
|
|
344
|
+
}
|
|
345
|
+
// ui/drawer.tsx
|
|
346
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
347
|
+
import { cn as cn5 } from "@contractspec/lib.ui-kit-core/utils";
|
|
348
|
+
import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
|
|
349
|
+
"use client";
|
|
350
|
+
function Drawer({
|
|
351
|
+
...props
|
|
352
|
+
}) {
|
|
353
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Root, {
|
|
354
|
+
"data-slot": "drawer",
|
|
355
|
+
...props
|
|
356
|
+
}, undefined, false, undefined, this);
|
|
357
|
+
}
|
|
358
|
+
function DrawerTrigger({
|
|
359
|
+
...props
|
|
360
|
+
}) {
|
|
361
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Trigger, {
|
|
362
|
+
"data-slot": "drawer-trigger",
|
|
363
|
+
...props
|
|
364
|
+
}, undefined, false, undefined, this);
|
|
365
|
+
}
|
|
366
|
+
function DrawerPortal({
|
|
367
|
+
...props
|
|
368
|
+
}) {
|
|
369
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Portal, {
|
|
370
|
+
"data-slot": "drawer-portal",
|
|
371
|
+
...props
|
|
372
|
+
}, undefined, false, undefined, this);
|
|
373
|
+
}
|
|
374
|
+
function DrawerClose({
|
|
375
|
+
...props
|
|
376
|
+
}) {
|
|
377
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Close, {
|
|
378
|
+
"data-slot": "drawer-close",
|
|
379
|
+
...props
|
|
380
|
+
}, undefined, false, undefined, this);
|
|
381
|
+
}
|
|
382
|
+
function DrawerOverlay({
|
|
383
|
+
className,
|
|
384
|
+
...props
|
|
385
|
+
}) {
|
|
386
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Overlay, {
|
|
387
|
+
"data-slot": "drawer-overlay",
|
|
388
|
+
className: cn5("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
389
|
+
...props
|
|
390
|
+
}, undefined, false, undefined, this);
|
|
391
|
+
}
|
|
392
|
+
function DrawerContent({
|
|
393
|
+
className,
|
|
394
|
+
children,
|
|
395
|
+
...props
|
|
396
|
+
}) {
|
|
397
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPortal, {
|
|
398
|
+
"data-slot": "drawer-portal",
|
|
399
|
+
children: [
|
|
400
|
+
/* @__PURE__ */ jsxDEV5(DrawerOverlay, {}, undefined, false, undefined, this),
|
|
401
|
+
/* @__PURE__ */ jsxDEV5(DrawerPrimitive.Content, {
|
|
402
|
+
"data-slot": "drawer-content",
|
|
403
|
+
className: cn5("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l sm:data-[vaul-drawer-direction=right]:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r sm:data-[vaul-drawer-direction=left]:max-w-sm", className),
|
|
404
|
+
...props,
|
|
405
|
+
children: [
|
|
406
|
+
/* @__PURE__ */ jsxDEV5("div", {
|
|
407
|
+
className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
|
|
408
|
+
}, undefined, false, undefined, this),
|
|
409
|
+
children
|
|
410
|
+
]
|
|
411
|
+
}, undefined, true, undefined, this)
|
|
412
|
+
]
|
|
413
|
+
}, undefined, true, undefined, this);
|
|
414
|
+
}
|
|
415
|
+
function DrawerHeader({
|
|
416
|
+
className,
|
|
417
|
+
...props
|
|
418
|
+
}) {
|
|
419
|
+
return /* @__PURE__ */ jsxDEV5("div", {
|
|
420
|
+
"data-slot": "drawer-header",
|
|
421
|
+
className: cn5("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className),
|
|
422
|
+
...props
|
|
423
|
+
}, undefined, false, undefined, this);
|
|
424
|
+
}
|
|
425
|
+
function DrawerFooter({
|
|
426
|
+
className,
|
|
427
|
+
...props
|
|
428
|
+
}) {
|
|
429
|
+
return /* @__PURE__ */ jsxDEV5("div", {
|
|
430
|
+
"data-slot": "drawer-footer",
|
|
431
|
+
className: cn5("mt-auto flex flex-col gap-2 p-4", className),
|
|
432
|
+
...props
|
|
433
|
+
}, undefined, false, undefined, this);
|
|
434
|
+
}
|
|
435
|
+
function DrawerTitle({
|
|
436
|
+
className,
|
|
437
|
+
...props
|
|
438
|
+
}) {
|
|
439
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Title, {
|
|
440
|
+
"data-slot": "drawer-title",
|
|
441
|
+
className: cn5("text-foreground font-semibold", className),
|
|
442
|
+
...props
|
|
443
|
+
}, undefined, false, undefined, this);
|
|
444
|
+
}
|
|
445
|
+
function DrawerDescription({
|
|
446
|
+
className,
|
|
447
|
+
...props
|
|
448
|
+
}) {
|
|
449
|
+
return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Description, {
|
|
450
|
+
"data-slot": "drawer-description",
|
|
451
|
+
className: cn5("text-muted-foreground text-sm", className),
|
|
452
|
+
...props
|
|
453
|
+
}, undefined, false, undefined, this);
|
|
454
|
+
}
|
|
455
|
+
// ui/use-media-query.ts
|
|
456
|
+
import * as React2 from "react";
|
|
457
|
+
function useMediaQuery(query) {
|
|
458
|
+
const [value, setValue] = React2.useState(false);
|
|
459
|
+
React2.useEffect(() => {
|
|
460
|
+
function onChange(event) {
|
|
461
|
+
setValue(event.matches);
|
|
462
|
+
}
|
|
463
|
+
const result = matchMedia(query);
|
|
464
|
+
result.addEventListener("change", onChange);
|
|
465
|
+
setValue(result.matches);
|
|
466
|
+
return () => result.removeEventListener("change", onChange);
|
|
467
|
+
}, [query]);
|
|
468
|
+
return value;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// ui/molecules/Autocomplete/index.tsx
|
|
472
|
+
import * as React3 from "react";
|
|
473
|
+
import { jsxDEV as jsxDEV6, Fragment } from "react/jsx-dev-runtime";
|
|
474
|
+
"use client";
|
|
475
|
+
var statuses = [
|
|
476
|
+
{
|
|
477
|
+
value: "backlog",
|
|
478
|
+
label: "Backlog"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
value: "in progress",
|
|
482
|
+
label: "In Progress"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
value: "done",
|
|
486
|
+
label: "Done"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
value: "canceled",
|
|
490
|
+
label: "Canceled"
|
|
491
|
+
}
|
|
492
|
+
];
|
|
493
|
+
function ComboBoxResponsive() {
|
|
494
|
+
const [open, setOpen] = React3.useState(false);
|
|
495
|
+
const isDesktop = useMediaQuery("(min-width: 768px)");
|
|
496
|
+
const [selectedStatus, setSelectedStatus] = React3.useState(null);
|
|
497
|
+
if (isDesktop) {
|
|
498
|
+
return /* @__PURE__ */ jsxDEV6(Popover, {
|
|
499
|
+
open,
|
|
500
|
+
onOpenChange: setOpen,
|
|
501
|
+
children: [
|
|
502
|
+
/* @__PURE__ */ jsxDEV6(PopoverTrigger, {
|
|
503
|
+
asChild: true,
|
|
504
|
+
children: /* @__PURE__ */ jsxDEV6(Button, {
|
|
505
|
+
variant: "outline",
|
|
506
|
+
className: "w-[150px] justify-start",
|
|
507
|
+
children: selectedStatus ? /* @__PURE__ */ jsxDEV6(Fragment, {
|
|
508
|
+
children: selectedStatus.label
|
|
509
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV6(Fragment, {
|
|
510
|
+
children: "+ Set status"
|
|
511
|
+
}, undefined, false, undefined, this)
|
|
512
|
+
}, undefined, false, undefined, this)
|
|
513
|
+
}, undefined, false, undefined, this),
|
|
514
|
+
/* @__PURE__ */ jsxDEV6(PopoverContent, {
|
|
515
|
+
className: "w-[200px] p-0",
|
|
516
|
+
align: "start",
|
|
517
|
+
children: /* @__PURE__ */ jsxDEV6(StatusList, {
|
|
518
|
+
setOpen,
|
|
519
|
+
setSelectedStatus
|
|
520
|
+
}, undefined, false, undefined, this)
|
|
521
|
+
}, undefined, false, undefined, this)
|
|
522
|
+
]
|
|
523
|
+
}, undefined, true, undefined, this);
|
|
524
|
+
}
|
|
525
|
+
return /* @__PURE__ */ jsxDEV6(Drawer, {
|
|
526
|
+
open,
|
|
527
|
+
onOpenChange: setOpen,
|
|
528
|
+
children: [
|
|
529
|
+
/* @__PURE__ */ jsxDEV6(DrawerTrigger, {
|
|
530
|
+
asChild: true,
|
|
531
|
+
children: /* @__PURE__ */ jsxDEV6(Button, {
|
|
532
|
+
variant: "outline",
|
|
533
|
+
className: "w-[150px] justify-start",
|
|
534
|
+
children: selectedStatus ? /* @__PURE__ */ jsxDEV6(Fragment, {
|
|
535
|
+
children: selectedStatus.label
|
|
536
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV6(Fragment, {
|
|
537
|
+
children: "+ Set status"
|
|
538
|
+
}, undefined, false, undefined, this)
|
|
539
|
+
}, undefined, false, undefined, this)
|
|
540
|
+
}, undefined, false, undefined, this),
|
|
541
|
+
/* @__PURE__ */ jsxDEV6(DrawerContent, {
|
|
542
|
+
children: /* @__PURE__ */ jsxDEV6("div", {
|
|
543
|
+
className: "mt-4 border-t",
|
|
544
|
+
children: /* @__PURE__ */ jsxDEV6(StatusList, {
|
|
545
|
+
setOpen,
|
|
546
|
+
setSelectedStatus
|
|
547
|
+
}, undefined, false, undefined, this)
|
|
548
|
+
}, undefined, false, undefined, this)
|
|
549
|
+
}, undefined, false, undefined, this)
|
|
550
|
+
]
|
|
551
|
+
}, undefined, true, undefined, this);
|
|
552
|
+
}
|
|
553
|
+
function StatusList({
|
|
554
|
+
setOpen,
|
|
555
|
+
setSelectedStatus
|
|
556
|
+
}) {
|
|
557
|
+
return /* @__PURE__ */ jsxDEV6(Command, {
|
|
558
|
+
children: [
|
|
559
|
+
/* @__PURE__ */ jsxDEV6(CommandInput, {
|
|
560
|
+
placeholder: "Filter status..."
|
|
561
|
+
}, undefined, false, undefined, this),
|
|
562
|
+
/* @__PURE__ */ jsxDEV6(CommandList, {
|
|
563
|
+
children: [
|
|
564
|
+
/* @__PURE__ */ jsxDEV6(CommandEmpty, {
|
|
565
|
+
children: "No results found."
|
|
566
|
+
}, undefined, false, undefined, this),
|
|
567
|
+
/* @__PURE__ */ jsxDEV6(CommandGroup, {
|
|
568
|
+
children: statuses.map((status) => /* @__PURE__ */ jsxDEV6(CommandItem, {
|
|
569
|
+
value: status.value,
|
|
570
|
+
onSelect: (value) => {
|
|
571
|
+
setSelectedStatus(statuses.find((priority) => priority.value === value) || null);
|
|
572
|
+
setOpen(false);
|
|
573
|
+
},
|
|
574
|
+
children: status.label
|
|
575
|
+
}, status.value, false, undefined, this))
|
|
576
|
+
}, undefined, false, undefined, this)
|
|
577
|
+
]
|
|
578
|
+
}, undefined, true, undefined, this)
|
|
579
|
+
]
|
|
580
|
+
}, undefined, true, undefined, this);
|
|
581
|
+
}
|
|
582
|
+
export {
|
|
583
|
+
ComboBoxResponsive
|
|
584
|
+
};
|