@contractspec/lib.ui-kit-web 1.57.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +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 -35
- 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 +872 -236
- 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/collapsible.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
...props
|
|
7
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime0.JSX.Element;
|
|
8
|
-
declare function CollapsibleTrigger({
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime0.JSX.Element;
|
|
11
|
-
declare function CollapsibleContent({
|
|
12
|
-
...props
|
|
13
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime0.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
1
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
16
6
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../ui/collapsible.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAEpE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,2CAOtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/ui/collapsible.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
// ui/collapsible.tsx
|
|
4
5
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function Collapsible({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
7
|
+
"use client";
|
|
8
|
+
function Collapsible({
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsxDEV(CollapsiblePrimitive.Root, {
|
|
12
|
+
"data-slot": "collapsible",
|
|
13
|
+
...props
|
|
14
|
+
}, undefined, false, undefined, this);
|
|
12
15
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
function CollapsibleTrigger2({
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ jsxDEV(CollapsiblePrimitive.CollapsibleTrigger, {
|
|
20
|
+
"data-slot": "collapsible-trigger",
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this);
|
|
18
23
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
function CollapsibleContent2({
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsxDEV(CollapsiblePrimitive.CollapsibleContent, {
|
|
28
|
+
"data-slot": "collapsible-content",
|
|
29
|
+
...props
|
|
30
|
+
}, undefined, false, undefined, this);
|
|
24
31
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
32
|
+
export {
|
|
33
|
+
CollapsibleTrigger2 as CollapsibleTrigger,
|
|
34
|
+
CollapsibleContent2 as CollapsibleContent,
|
|
35
|
+
Collapsible
|
|
36
|
+
};
|
package/dist/ui/command.d.ts
CHANGED
|
@@ -1,53 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}:
|
|
11
|
-
declare function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
title?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
className?: string;
|
|
22
|
-
showCloseButton?: boolean;
|
|
23
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
24
|
-
declare function CommandInput({
|
|
25
|
-
className,
|
|
26
|
-
...props
|
|
27
|
-
}: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
declare function CommandList({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime0.JSX.Element;
|
|
32
|
-
declare function CommandEmpty({
|
|
33
|
-
...props
|
|
34
|
-
}: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime0.JSX.Element;
|
|
35
|
-
declare function CommandGroup({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime0.JSX.Element;
|
|
39
|
-
declare function CommandSeparator({
|
|
40
|
-
className,
|
|
41
|
-
...props
|
|
42
|
-
}: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime0.JSX.Element;
|
|
43
|
-
declare function CommandItem({
|
|
44
|
-
className,
|
|
45
|
-
...props
|
|
46
|
-
}: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime0.JSX.Element;
|
|
47
|
-
declare function CommandShortcut({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: React$1.ComponentPropsWithoutRef<'span'>): react_jsx_runtime0.JSX.Element;
|
|
51
|
-
//#endregion
|
|
52
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
3
|
+
import { Dialog } from './dialog';
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
53
19
|
//# sourceMappingURL=command.d.ts.map
|
package/dist/ui/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EACL,MAAM,EAKP,MAAM,UAAU,CAAC;AAElB,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CAiBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAiBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,2CAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,2CAWxC;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAC"}
|
package/dist/ui/command.js
CHANGED
|
@@ -1,90 +1,261 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
import "react";
|
|
5
|
-
import {
|
|
4
|
+
// ui/dialog.tsx
|
|
5
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
6
|
+
import { XIcon } from "lucide-react";
|
|
6
7
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
|
|
19
|
-
return /* @__PURE__ */ jsxs(Dialog, {
|
|
20
|
-
...props,
|
|
21
|
-
children: [/* @__PURE__ */ jsxs(DialogHeader, {
|
|
22
|
-
className: "sr-only",
|
|
23
|
-
children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
|
|
24
|
-
}), /* @__PURE__ */ jsx(DialogContent, {
|
|
25
|
-
className: cn("overflow-hidden p-0", className),
|
|
26
|
-
showCloseButton,
|
|
27
|
-
children: /* @__PURE__ */ jsx(Command, {
|
|
28
|
-
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",
|
|
29
|
-
children
|
|
30
|
-
})
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function CommandInput({ className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
36
|
-
"data-slot": "command-input-wrapper",
|
|
37
|
-
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
38
|
-
children: [/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
39
|
-
"data-slot": "command-input",
|
|
40
|
-
className: cn("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),
|
|
41
|
-
...props
|
|
42
|
-
})]
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function CommandList({ className, ...props }) {
|
|
46
|
-
return /* @__PURE__ */ jsx(Command$1.List, {
|
|
47
|
-
"data-slot": "command-list",
|
|
48
|
-
className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function CommandEmpty({ ...props }) {
|
|
53
|
-
return /* @__PURE__ */ jsx(Command$1.Empty, {
|
|
54
|
-
"data-slot": "command-empty",
|
|
55
|
-
className: "py-6 text-center text-sm",
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function CommandGroup({ className, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx(Command$1.Group, {
|
|
61
|
-
"data-slot": "command-group",
|
|
62
|
-
className: cn("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),
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function CommandSeparator({ className, ...props }) {
|
|
67
|
-
return /* @__PURE__ */ jsx(Command$1.Separator, {
|
|
68
|
-
"data-slot": "command-separator",
|
|
69
|
-
className: cn("bg-border -mx-1 h-px", className),
|
|
70
|
-
...props
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function CommandItem({ className, ...props }) {
|
|
74
|
-
return /* @__PURE__ */ jsx(Command$1.Item, {
|
|
75
|
-
"data-slot": "command-item",
|
|
76
|
-
className: cn("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),
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function CommandShortcut({ className, ...props }) {
|
|
81
|
-
return /* @__PURE__ */ jsx("span", {
|
|
82
|
-
"data-slot": "command-shortcut",
|
|
83
|
-
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
84
|
-
...props
|
|
85
|
-
});
|
|
8
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
9
|
+
"use client";
|
|
10
|
+
function Dialog({
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Root, {
|
|
14
|
+
"data-slot": "dialog",
|
|
15
|
+
...props
|
|
16
|
+
}, undefined, false, undefined, this);
|
|
86
17
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
18
|
+
function DialogTrigger({
|
|
19
|
+
...props
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Trigger, {
|
|
22
|
+
"data-slot": "dialog-trigger",
|
|
23
|
+
...props
|
|
24
|
+
}, undefined, false, undefined, this);
|
|
25
|
+
}
|
|
26
|
+
function DialogPortal({
|
|
27
|
+
...props
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Portal, {
|
|
30
|
+
"data-slot": "dialog-portal",
|
|
31
|
+
...props
|
|
32
|
+
}, undefined, false, undefined, this);
|
|
33
|
+
}
|
|
34
|
+
function DialogClose({
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Close, {
|
|
38
|
+
"data-slot": "dialog-close",
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
}
|
|
42
|
+
function DialogOverlay({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}) {
|
|
46
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Overlay, {
|
|
47
|
+
"data-slot": "dialog-overlay",
|
|
48
|
+
className: cn("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),
|
|
49
|
+
...props
|
|
50
|
+
}, undefined, false, undefined, this);
|
|
51
|
+
}
|
|
52
|
+
function DialogContent({
|
|
53
|
+
className,
|
|
54
|
+
children,
|
|
55
|
+
showCloseButton = true,
|
|
56
|
+
...props
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ jsxDEV(DialogPortal, {
|
|
59
|
+
"data-slot": "dialog-portal",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsxDEV(DialogOverlay, {}, undefined, false, undefined, this),
|
|
62
|
+
/* @__PURE__ */ jsxDEV(DialogPrimitive.Content, {
|
|
63
|
+
"data-slot": "dialog-content",
|
|
64
|
+
className: cn("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),
|
|
65
|
+
...props,
|
|
66
|
+
children: [
|
|
67
|
+
children,
|
|
68
|
+
showCloseButton && /* @__PURE__ */ jsxDEV(DialogPrimitive.Close, {
|
|
69
|
+
"data-slot": "dialog-close",
|
|
70
|
+
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",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsxDEV(XIcon, {}, undefined, false, undefined, this),
|
|
73
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
74
|
+
className: "sr-only",
|
|
75
|
+
children: "Close"
|
|
76
|
+
}, undefined, false, undefined, this)
|
|
77
|
+
]
|
|
78
|
+
}, undefined, true, undefined, this)
|
|
79
|
+
]
|
|
80
|
+
}, undefined, true, undefined, this)
|
|
81
|
+
]
|
|
82
|
+
}, undefined, true, undefined, this);
|
|
83
|
+
}
|
|
84
|
+
function DialogHeader({
|
|
85
|
+
className,
|
|
86
|
+
...props
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
89
|
+
"data-slot": "dialog-header",
|
|
90
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
91
|
+
...props
|
|
92
|
+
}, undefined, false, undefined, this);
|
|
93
|
+
}
|
|
94
|
+
function DialogFooter({
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
99
|
+
"data-slot": "dialog-footer",
|
|
100
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
101
|
+
...props
|
|
102
|
+
}, undefined, false, undefined, this);
|
|
103
|
+
}
|
|
104
|
+
function DialogTitle({
|
|
105
|
+
className,
|
|
106
|
+
...props
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Title, {
|
|
109
|
+
"data-slot": "dialog-title",
|
|
110
|
+
className: cn("text-lg leading-none font-semibold", className),
|
|
111
|
+
...props
|
|
112
|
+
}, undefined, false, undefined, this);
|
|
113
|
+
}
|
|
114
|
+
function DialogDescription({
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ jsxDEV(DialogPrimitive.Description, {
|
|
119
|
+
"data-slot": "dialog-description",
|
|
120
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
121
|
+
...props
|
|
122
|
+
}, undefined, false, undefined, this);
|
|
123
|
+
}
|
|
124
|
+
// ui/command.tsx
|
|
125
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
126
|
+
import { SearchIcon } from "lucide-react";
|
|
127
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
128
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
129
|
+
"use client";
|
|
130
|
+
function Command({
|
|
131
|
+
className,
|
|
132
|
+
...props
|
|
133
|
+
}) {
|
|
134
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive, {
|
|
135
|
+
"data-slot": "command",
|
|
136
|
+
className: cn2("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
137
|
+
...props
|
|
138
|
+
}, undefined, false, undefined, this);
|
|
139
|
+
}
|
|
140
|
+
function CommandDialog({
|
|
141
|
+
title = "Command Palette",
|
|
142
|
+
description = "Search for a command to run...",
|
|
143
|
+
children,
|
|
144
|
+
className,
|
|
145
|
+
showCloseButton = true,
|
|
146
|
+
...props
|
|
147
|
+
}) {
|
|
148
|
+
return /* @__PURE__ */ jsxDEV2(Dialog, {
|
|
149
|
+
...props,
|
|
150
|
+
children: [
|
|
151
|
+
/* @__PURE__ */ jsxDEV2(DialogHeader, {
|
|
152
|
+
className: "sr-only",
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsxDEV2(DialogTitle, {
|
|
155
|
+
children: title
|
|
156
|
+
}, undefined, false, undefined, this),
|
|
157
|
+
/* @__PURE__ */ jsxDEV2(DialogDescription, {
|
|
158
|
+
children: description
|
|
159
|
+
}, undefined, false, undefined, this)
|
|
160
|
+
]
|
|
161
|
+
}, undefined, true, undefined, this),
|
|
162
|
+
/* @__PURE__ */ jsxDEV2(DialogContent, {
|
|
163
|
+
className: cn2("overflow-hidden p-0", className),
|
|
164
|
+
showCloseButton,
|
|
165
|
+
children: /* @__PURE__ */ jsxDEV2(Command, {
|
|
166
|
+
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",
|
|
167
|
+
children
|
|
168
|
+
}, undefined, false, undefined, this)
|
|
169
|
+
}, undefined, false, undefined, this)
|
|
170
|
+
]
|
|
171
|
+
}, undefined, true, undefined, this);
|
|
172
|
+
}
|
|
173
|
+
function CommandInput({
|
|
174
|
+
className,
|
|
175
|
+
...props
|
|
176
|
+
}) {
|
|
177
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
178
|
+
"data-slot": "command-input-wrapper",
|
|
179
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ jsxDEV2(SearchIcon, {
|
|
182
|
+
className: "size-4 shrink-0 opacity-50"
|
|
183
|
+
}, undefined, false, undefined, this),
|
|
184
|
+
/* @__PURE__ */ jsxDEV2(CommandPrimitive.Input, {
|
|
185
|
+
"data-slot": "command-input",
|
|
186
|
+
className: cn2("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),
|
|
187
|
+
...props
|
|
188
|
+
}, undefined, false, undefined, this)
|
|
189
|
+
]
|
|
190
|
+
}, undefined, true, undefined, this);
|
|
191
|
+
}
|
|
192
|
+
function CommandList({
|
|
193
|
+
className,
|
|
194
|
+
...props
|
|
195
|
+
}) {
|
|
196
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive.List, {
|
|
197
|
+
"data-slot": "command-list",
|
|
198
|
+
className: cn2("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
199
|
+
...props
|
|
200
|
+
}, undefined, false, undefined, this);
|
|
201
|
+
}
|
|
202
|
+
function CommandEmpty({
|
|
203
|
+
...props
|
|
204
|
+
}) {
|
|
205
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive.Empty, {
|
|
206
|
+
"data-slot": "command-empty",
|
|
207
|
+
className: "py-6 text-center text-sm",
|
|
208
|
+
...props
|
|
209
|
+
}, undefined, false, undefined, this);
|
|
210
|
+
}
|
|
211
|
+
function CommandGroup({
|
|
212
|
+
className,
|
|
213
|
+
...props
|
|
214
|
+
}) {
|
|
215
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive.Group, {
|
|
216
|
+
"data-slot": "command-group",
|
|
217
|
+
className: cn2("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),
|
|
218
|
+
...props
|
|
219
|
+
}, undefined, false, undefined, this);
|
|
220
|
+
}
|
|
221
|
+
function CommandSeparator({
|
|
222
|
+
className,
|
|
223
|
+
...props
|
|
224
|
+
}) {
|
|
225
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive.Separator, {
|
|
226
|
+
"data-slot": "command-separator",
|
|
227
|
+
className: cn2("bg-border -mx-1 h-px", className),
|
|
228
|
+
...props
|
|
229
|
+
}, undefined, false, undefined, this);
|
|
230
|
+
}
|
|
231
|
+
function CommandItem({
|
|
232
|
+
className,
|
|
233
|
+
...props
|
|
234
|
+
}) {
|
|
235
|
+
return /* @__PURE__ */ jsxDEV2(CommandPrimitive.Item, {
|
|
236
|
+
"data-slot": "command-item",
|
|
237
|
+
className: cn2("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),
|
|
238
|
+
...props
|
|
239
|
+
}, undefined, false, undefined, this);
|
|
240
|
+
}
|
|
241
|
+
function CommandShortcut({
|
|
242
|
+
className,
|
|
243
|
+
...props
|
|
244
|
+
}) {
|
|
245
|
+
return /* @__PURE__ */ jsxDEV2("span", {
|
|
246
|
+
"data-slot": "command-shortcut",
|
|
247
|
+
className: cn2("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
248
|
+
...props
|
|
249
|
+
}, undefined, false, undefined, this);
|
|
250
|
+
}
|
|
251
|
+
export {
|
|
252
|
+
CommandShortcut,
|
|
253
|
+
CommandSeparator,
|
|
254
|
+
CommandList,
|
|
255
|
+
CommandItem,
|
|
256
|
+
CommandInput,
|
|
257
|
+
CommandGroup,
|
|
258
|
+
CommandEmpty,
|
|
259
|
+
CommandDialog,
|
|
260
|
+
Command
|
|
261
|
+
};
|
|
@@ -1,31 +1,15 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isLoading?: boolean;
|
|
14
|
-
onConfirm: () => Promise<void> | void;
|
|
15
|
-
trigger?: React$1.ReactNode;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
confirmLabel?: string;
|
|
8
|
+
cancelLabel?: string;
|
|
9
|
+
variant?: 'default' | 'destructive';
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
onConfirm: () => Promise<void> | void;
|
|
12
|
+
trigger?: React.ReactNode;
|
|
16
13
|
}
|
|
17
|
-
declare function ConfirmDialog({
|
|
18
|
-
open,
|
|
19
|
-
onOpenChange,
|
|
20
|
-
title,
|
|
21
|
-
description,
|
|
22
|
-
confirmLabel,
|
|
23
|
-
cancelLabel,
|
|
24
|
-
variant,
|
|
25
|
-
isLoading,
|
|
26
|
-
onConfirm,
|
|
27
|
-
trigger
|
|
28
|
-
}: ConfirmDialogProps): react_jsx_runtime0.JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { ConfirmDialog, ConfirmDialogProps };
|
|
14
|
+
export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, variant, isLoading, onConfirm, trigger, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
31
15
|
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-dialog.d.ts","
|
|
1
|
+
{"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../ui/confirm-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,YAA0B,EAC1B,WAAuB,EACvB,OAAmB,EACnB,SAAS,EACT,SAAS,EACT,OAAO,GACR,EAAE,kBAAkB,2CAsCpB"}
|