@contractspec/lib.ui-kit-web 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +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
|
@@ -0,0 +1,60 @@
|
|
|
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/input-otp.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
12
|
+
import { Dot } from "lucide-react";
|
|
13
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
14
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
15
|
+
"use client";
|
|
16
|
+
var InputOTP = React.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxDEV(OTPInput, {
|
|
17
|
+
ref,
|
|
18
|
+
containerClassName: cn("flex items-center gap-2 has-disabled:opacity-50", containerClassName),
|
|
19
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
20
|
+
...props
|
|
21
|
+
}, undefined, false, undefined, this));
|
|
22
|
+
InputOTP.displayName = "InputOTP";
|
|
23
|
+
var InputOTPGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV("div", {
|
|
24
|
+
ref,
|
|
25
|
+
className: cn("flex items-center", className),
|
|
26
|
+
...props
|
|
27
|
+
}, undefined, false, undefined, this));
|
|
28
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
29
|
+
var InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
30
|
+
const inputOTPContext = React.useContext(OTPInputContext);
|
|
31
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index] || {};
|
|
32
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
33
|
+
ref,
|
|
34
|
+
className: cn("border-input relative flex h-10 w-10 items-center justify-center border-y border-r text-base transition-all first:rounded-l-md first:border-l last:rounded-r-md", isActive && "ring-ring ring-offset-background z-10 ring-2", className),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
char,
|
|
38
|
+
hasFakeCaret && /* @__PURE__ */ jsxDEV("div", {
|
|
39
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
40
|
+
children: /* @__PURE__ */ jsxDEV("div", {
|
|
41
|
+
className: "animate-caret-blink bg-foreground h-4 w-px duration-1000"
|
|
42
|
+
}, undefined, false, undefined, this)
|
|
43
|
+
}, undefined, false, undefined, this)
|
|
44
|
+
]
|
|
45
|
+
}, undefined, true, undefined, this);
|
|
46
|
+
});
|
|
47
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
48
|
+
var InputOTPSeparator = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxDEV("div", {
|
|
49
|
+
ref,
|
|
50
|
+
role: "separator",
|
|
51
|
+
...props,
|
|
52
|
+
children: /* @__PURE__ */ jsxDEV(Dot, {}, undefined, false, undefined, this)
|
|
53
|
+
}, undefined, false, undefined, this));
|
|
54
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
55
|
+
export {
|
|
56
|
+
InputOTPSlot,
|
|
57
|
+
InputOTPSeparator,
|
|
58
|
+
InputOTPGroup,
|
|
59
|
+
InputOTP
|
|
60
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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/input.tsx
|
|
10
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
11
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
12
|
+
function Input({ className, type, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsxDEV("input", {
|
|
14
|
+
type,
|
|
15
|
+
"data-slot": "input",
|
|
16
|
+
className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "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", className),
|
|
17
|
+
...props
|
|
18
|
+
}, undefined, false, undefined, this);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
Input
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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/label.tsx
|
|
10
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
11
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
12
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
13
|
+
"use client";
|
|
14
|
+
function Label({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsxDEV(LabelPrimitive.Root, {
|
|
19
|
+
"data-slot": "label",
|
|
20
|
+
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
Label
|
|
26
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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/link.tsx
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
12
|
+
import NextLink from "next/link";
|
|
13
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
14
|
+
var Link = forwardRef(({ className, ...props }, ref) => {
|
|
15
|
+
return /* @__PURE__ */ jsxDEV(NextLink, {
|
|
16
|
+
ref,
|
|
17
|
+
className: cn('className="text-primary underline"', className),
|
|
18
|
+
...props
|
|
19
|
+
}, undefined, false, undefined, this);
|
|
20
|
+
});
|
|
21
|
+
Link.displayName = "Link";
|
|
22
|
+
export {
|
|
23
|
+
Link
|
|
24
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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/live-region.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
12
|
+
"use client";
|
|
13
|
+
var SRLiveRegionContext = React.createContext(null);
|
|
14
|
+
function useSRLiveRegion() {
|
|
15
|
+
const ctx = React.useContext(SRLiveRegionContext);
|
|
16
|
+
if (!ctx)
|
|
17
|
+
throw new Error("useSRLiveRegion must be used within SRLiveRegionProvider");
|
|
18
|
+
return ctx;
|
|
19
|
+
}
|
|
20
|
+
function SRLiveRegionProvider({
|
|
21
|
+
children
|
|
22
|
+
}) {
|
|
23
|
+
const [messages, setMessages] = React.useState([]);
|
|
24
|
+
const idRef = React.useRef(0);
|
|
25
|
+
const announce = React.useCallback((text, politeness = "polite") => {
|
|
26
|
+
const id = ++idRef.current;
|
|
27
|
+
setMessages((prev) => [...prev, { id, text, politeness }]);
|
|
28
|
+
setTimeout(() => setMessages((prev) => prev.filter((m) => m.id !== id)), 1000);
|
|
29
|
+
}, []);
|
|
30
|
+
return /* @__PURE__ */ jsxDEV(SRLiveRegionContext.Provider, {
|
|
31
|
+
value: { announce },
|
|
32
|
+
children: [
|
|
33
|
+
children,
|
|
34
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
35
|
+
"aria-live": "polite",
|
|
36
|
+
"aria-atomic": "true",
|
|
37
|
+
className: "sr-only",
|
|
38
|
+
children: messages.filter((m) => m.politeness === "polite").map((m) => /* @__PURE__ */ jsxDEV("div", {
|
|
39
|
+
children: m.text
|
|
40
|
+
}, m.id, false, undefined, this))
|
|
41
|
+
}, undefined, false, undefined, this),
|
|
42
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
43
|
+
"aria-live": "assertive",
|
|
44
|
+
"aria-atomic": "true",
|
|
45
|
+
className: "sr-only",
|
|
46
|
+
children: messages.filter((m) => m.politeness === "assertive").map((m) => /* @__PURE__ */ jsxDEV("div", {
|
|
47
|
+
children: m.text
|
|
48
|
+
}, m.id, false, undefined, this))
|
|
49
|
+
}, undefined, false, undefined, this)
|
|
50
|
+
]
|
|
51
|
+
}, undefined, true, undefined, this);
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
useSRLiveRegion,
|
|
55
|
+
SRLiveRegionProvider
|
|
56
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
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/stack.tsx
|
|
54
|
+
import * as React2 from "react";
|
|
55
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
56
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
57
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
58
|
+
var vStackVariants = cva2("flex flex-col", {
|
|
59
|
+
variants: {
|
|
60
|
+
gap: {
|
|
61
|
+
none: "gap-0",
|
|
62
|
+
xs: "gap-1",
|
|
63
|
+
sm: "gap-2",
|
|
64
|
+
md: "gap-3",
|
|
65
|
+
lg: "gap-4",
|
|
66
|
+
xl: "gap-6",
|
|
67
|
+
"2xl": "gap-8"
|
|
68
|
+
},
|
|
69
|
+
align: {
|
|
70
|
+
start: "items-start",
|
|
71
|
+
center: "items-center",
|
|
72
|
+
end: "items-end",
|
|
73
|
+
stretch: "items-stretch"
|
|
74
|
+
},
|
|
75
|
+
justify: {
|
|
76
|
+
start: "justify-start",
|
|
77
|
+
center: "justify-center",
|
|
78
|
+
end: "justify-end",
|
|
79
|
+
between: "justify-between",
|
|
80
|
+
around: "justify-around",
|
|
81
|
+
evenly: "justify-evenly"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
gap: "md",
|
|
86
|
+
align: "stretch",
|
|
87
|
+
justify: "start"
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
|
|
91
|
+
const Comp = as;
|
|
92
|
+
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
93
|
+
ref,
|
|
94
|
+
className: cn2(vStackVariants({ gap, align, justify }), className),
|
|
95
|
+
...props
|
|
96
|
+
}, undefined, false, undefined, this);
|
|
97
|
+
});
|
|
98
|
+
VStack.displayName = "VStack";
|
|
99
|
+
var hStackVariants = cva2("flex flex-row", {
|
|
100
|
+
variants: {
|
|
101
|
+
gap: {
|
|
102
|
+
none: "gap-0",
|
|
103
|
+
xs: "gap-1",
|
|
104
|
+
sm: "gap-2",
|
|
105
|
+
md: "gap-3",
|
|
106
|
+
lg: "gap-4",
|
|
107
|
+
xl: "gap-6",
|
|
108
|
+
"2xl": "gap-8"
|
|
109
|
+
},
|
|
110
|
+
align: {
|
|
111
|
+
start: "items-start",
|
|
112
|
+
center: "items-center",
|
|
113
|
+
end: "items-end",
|
|
114
|
+
stretch: "items-stretch",
|
|
115
|
+
baseline: "items-baseline"
|
|
116
|
+
},
|
|
117
|
+
justify: {
|
|
118
|
+
start: "justify-start",
|
|
119
|
+
center: "justify-center",
|
|
120
|
+
end: "justify-end",
|
|
121
|
+
between: "justify-between",
|
|
122
|
+
around: "justify-around",
|
|
123
|
+
evenly: "justify-evenly"
|
|
124
|
+
},
|
|
125
|
+
wrap: {
|
|
126
|
+
nowrap: "flex-nowrap",
|
|
127
|
+
wrap: "flex-wrap",
|
|
128
|
+
wrapReverse: "flex-wrap-reverse"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
defaultVariants: {
|
|
132
|
+
gap: "md",
|
|
133
|
+
align: "center",
|
|
134
|
+
justify: "start",
|
|
135
|
+
wrap: "wrap"
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
|
|
139
|
+
const Comp = as;
|
|
140
|
+
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
141
|
+
ref,
|
|
142
|
+
className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
|
|
143
|
+
...props
|
|
144
|
+
}, undefined, false, undefined, this);
|
|
145
|
+
});
|
|
146
|
+
HStack.displayName = "HStack";
|
|
147
|
+
var boxVariants = cva2("flex flex-row", {
|
|
148
|
+
variants: {
|
|
149
|
+
gap: {
|
|
150
|
+
none: "gap-0",
|
|
151
|
+
xs: "gap-1",
|
|
152
|
+
sm: "gap-2",
|
|
153
|
+
md: "gap-3",
|
|
154
|
+
lg: "gap-4",
|
|
155
|
+
xl: "gap-6",
|
|
156
|
+
"2xl": "gap-8"
|
|
157
|
+
},
|
|
158
|
+
align: {
|
|
159
|
+
start: "items-start",
|
|
160
|
+
center: "items-center",
|
|
161
|
+
end: "items-end",
|
|
162
|
+
stretch: "items-stretch",
|
|
163
|
+
baseline: "items-baseline"
|
|
164
|
+
},
|
|
165
|
+
justify: {
|
|
166
|
+
start: "justify-start",
|
|
167
|
+
center: "justify-center",
|
|
168
|
+
end: "justify-end",
|
|
169
|
+
between: "justify-between",
|
|
170
|
+
around: "justify-around",
|
|
171
|
+
evenly: "justify-evenly"
|
|
172
|
+
},
|
|
173
|
+
wrap: {
|
|
174
|
+
nowrap: "flex-nowrap",
|
|
175
|
+
wrap: "flex-wrap",
|
|
176
|
+
wrapReverse: "flex-wrap-reverse"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
defaultVariants: {
|
|
180
|
+
gap: "md",
|
|
181
|
+
align: "center",
|
|
182
|
+
justify: "center",
|
|
183
|
+
wrap: "nowrap"
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
|
|
187
|
+
const Comp = as;
|
|
188
|
+
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
189
|
+
ref,
|
|
190
|
+
className: cn2(boxVariants({ gap, align, justify, wrap }), className),
|
|
191
|
+
...props
|
|
192
|
+
}, undefined, false, undefined, this);
|
|
193
|
+
});
|
|
194
|
+
Box.displayName = "Box";
|
|
195
|
+
// ui/text.tsx
|
|
196
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
197
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
198
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
199
|
+
function Text({ className, asChild = false, ...props }) {
|
|
200
|
+
const Component = asChild ? Slot2 : "p";
|
|
201
|
+
return /* @__PURE__ */ jsxDEV3(Component, {
|
|
202
|
+
className: cn3("text-foreground web:select-text text-base", className),
|
|
203
|
+
...props
|
|
204
|
+
}, undefined, false, undefined, this);
|
|
205
|
+
}
|
|
206
|
+
// ui/loading-button.tsx
|
|
207
|
+
import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
|
|
208
|
+
function LoadingButton({
|
|
209
|
+
isLoading = false,
|
|
210
|
+
loadingText,
|
|
211
|
+
children,
|
|
212
|
+
disabled,
|
|
213
|
+
...props
|
|
214
|
+
}) {
|
|
215
|
+
return /* @__PURE__ */ jsxDEV4(Button, {
|
|
216
|
+
disabled: disabled || isLoading,
|
|
217
|
+
...props,
|
|
218
|
+
children: isLoading ? /* @__PURE__ */ jsxDEV4(HStack, {
|
|
219
|
+
className: "items-center gap-x-2",
|
|
220
|
+
children: /* @__PURE__ */ jsxDEV4(Text, {
|
|
221
|
+
children: loadingText || "Loading..."
|
|
222
|
+
}, undefined, false, undefined, this)
|
|
223
|
+
}, undefined, false, undefined, this) : children
|
|
224
|
+
}, undefined, false, undefined, this);
|
|
225
|
+
}
|
|
226
|
+
export {
|
|
227
|
+
LoadingButton
|
|
228
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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/map/MapBase.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import Map, {
|
|
12
|
+
NavigationControl,
|
|
13
|
+
ScaleControl
|
|
14
|
+
} from "react-map-gl/maplibre";
|
|
15
|
+
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
|
|
16
|
+
"use client";
|
|
17
|
+
var DEFAULT_STYLE = "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json";
|
|
18
|
+
function MapBase(props) {
|
|
19
|
+
const {
|
|
20
|
+
initialViewState = { longitude: 2.3522, latitude: 48.8566, zoom: 5 },
|
|
21
|
+
styleUrl = DEFAULT_STYLE,
|
|
22
|
+
style,
|
|
23
|
+
showControls = true,
|
|
24
|
+
showCssLink = true,
|
|
25
|
+
onMapRef,
|
|
26
|
+
children
|
|
27
|
+
} = props;
|
|
28
|
+
const mapRef = React.useRef(null);
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
onMapRef?.(mapRef.current);
|
|
31
|
+
}, [mapRef.current]);
|
|
32
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
33
|
+
style: {
|
|
34
|
+
position: "relative",
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%",
|
|
37
|
+
...style || {}
|
|
38
|
+
},
|
|
39
|
+
children: [
|
|
40
|
+
showCssLink && /* @__PURE__ */ jsxDEV("link", {
|
|
41
|
+
href: "https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css",
|
|
42
|
+
rel: "stylesheet"
|
|
43
|
+
}, undefined, false, undefined, this),
|
|
44
|
+
/* @__PURE__ */ jsxDEV(Map, {
|
|
45
|
+
ref: mapRef,
|
|
46
|
+
mapLib: import("maplibre-gl"),
|
|
47
|
+
initialViewState,
|
|
48
|
+
style: { width: "100%", height: "100%" },
|
|
49
|
+
mapStyle: styleUrl,
|
|
50
|
+
maplibreLogo: false,
|
|
51
|
+
children: [
|
|
52
|
+
showControls && /* @__PURE__ */ jsxDEV(Fragment, {
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxDEV(ScaleControl, {
|
|
55
|
+
position: "bottom-left"
|
|
56
|
+
}, undefined, false, undefined, this),
|
|
57
|
+
/* @__PURE__ */ jsxDEV(NavigationControl, {
|
|
58
|
+
position: "bottom-left"
|
|
59
|
+
}, undefined, false, undefined, this)
|
|
60
|
+
]
|
|
61
|
+
}, undefined, true, undefined, this),
|
|
62
|
+
children
|
|
63
|
+
]
|
|
64
|
+
}, undefined, true, undefined, this)
|
|
65
|
+
]
|
|
66
|
+
}, undefined, true, undefined, this);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
MapBase
|
|
70
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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/map/MapGeoJsonOverlay.tsx
|
|
10
|
+
import { Layer, Source } from "react-map-gl/maplibre";
|
|
11
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
12
|
+
"use client";
|
|
13
|
+
function MapGeoJsonOverlay(props) {
|
|
14
|
+
const {
|
|
15
|
+
id = "geojson-overlay",
|
|
16
|
+
data,
|
|
17
|
+
fillColor = "#2563eb",
|
|
18
|
+
fillOpacity = 0.25,
|
|
19
|
+
lineColor = "#1e40af",
|
|
20
|
+
lineWidth = 1.5,
|
|
21
|
+
lineOpacity = 0.8
|
|
22
|
+
} = props;
|
|
23
|
+
const fillLayer = {
|
|
24
|
+
id: `${id}-fill`,
|
|
25
|
+
type: "fill",
|
|
26
|
+
paint: {
|
|
27
|
+
"fill-color": fillColor,
|
|
28
|
+
"fill-opacity": fillOpacity
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const outlineLayer = {
|
|
32
|
+
id: `${id}-outline`,
|
|
33
|
+
type: "line",
|
|
34
|
+
paint: {
|
|
35
|
+
"line-color": lineColor,
|
|
36
|
+
"line-width": lineWidth,
|
|
37
|
+
"line-opacity": lineOpacity
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ jsxDEV(Source, {
|
|
41
|
+
id,
|
|
42
|
+
type: "geojson",
|
|
43
|
+
data,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsxDEV(Layer, {
|
|
46
|
+
...fillLayer
|
|
47
|
+
}, undefined, false, undefined, this),
|
|
48
|
+
/* @__PURE__ */ jsxDEV(Layer, {
|
|
49
|
+
...outlineLayer
|
|
50
|
+
}, undefined, false, undefined, this)
|
|
51
|
+
]
|
|
52
|
+
}, undefined, true, undefined, this);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
MapGeoJsonOverlay
|
|
56
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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/map/MapHeatmapH3.tsx
|
|
10
|
+
import { Layer, Source } from "react-map-gl/maplibre";
|
|
11
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
12
|
+
"use client";
|
|
13
|
+
function buildChoroplethPaint(stops, _maxCount) {
|
|
14
|
+
const scaleStops = (stops || []).map(([c, col]) => [c, col]);
|
|
15
|
+
return {
|
|
16
|
+
"fill-color": [
|
|
17
|
+
"interpolate",
|
|
18
|
+
["linear"],
|
|
19
|
+
["get", "count"],
|
|
20
|
+
...scaleStops.flat()
|
|
21
|
+
],
|
|
22
|
+
"fill-opacity": 0.6
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function MapHeatmapH3(props) {
|
|
26
|
+
const {
|
|
27
|
+
id = "h3-heatmap",
|
|
28
|
+
data,
|
|
29
|
+
colorStops = [
|
|
30
|
+
[0, "#22c55e"],
|
|
31
|
+
[5, "#eab308"],
|
|
32
|
+
[10, "#ef4444"]
|
|
33
|
+
],
|
|
34
|
+
maxCount
|
|
35
|
+
} = props;
|
|
36
|
+
const fillLayer = {
|
|
37
|
+
id: `${id}-fill`,
|
|
38
|
+
type: "fill",
|
|
39
|
+
paint: buildChoroplethPaint(colorStops, maxCount)
|
|
40
|
+
};
|
|
41
|
+
const lineLayer = {
|
|
42
|
+
id: `${id}-outline`,
|
|
43
|
+
type: "line",
|
|
44
|
+
paint: {
|
|
45
|
+
"line-color": "#ffffff",
|
|
46
|
+
"line-width": 0.25,
|
|
47
|
+
"line-opacity": 0.25
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ jsxDEV(Source, {
|
|
51
|
+
id,
|
|
52
|
+
type: "geojson",
|
|
53
|
+
data,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsxDEV(Layer, {
|
|
56
|
+
...fillLayer
|
|
57
|
+
}, undefined, false, undefined, this),
|
|
58
|
+
/* @__PURE__ */ jsxDEV(Layer, {
|
|
59
|
+
...lineLayer
|
|
60
|
+
}, undefined, false, undefined, this)
|
|
61
|
+
]
|
|
62
|
+
}, undefined, true, undefined, this);
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
MapHeatmapH3
|
|
66
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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/map/MapMarkers.tsx
|
|
10
|
+
import { Marker } from "react-map-gl/maplibre";
|
|
11
|
+
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
|
|
12
|
+
"use client";
|
|
13
|
+
function MapMarkers({ points }) {
|
|
14
|
+
return /* @__PURE__ */ jsxDEV(Fragment, {
|
|
15
|
+
children: points.map((p) => /* @__PURE__ */ jsxDEV(Marker, {
|
|
16
|
+
longitude: p.lng,
|
|
17
|
+
latitude: p.lat,
|
|
18
|
+
anchor: "bottom",
|
|
19
|
+
children: /* @__PURE__ */ jsxDEV("button", {
|
|
20
|
+
role: p.onClick ? "button" : undefined,
|
|
21
|
+
tabIndex: p.onClick ? 0 : -1,
|
|
22
|
+
"aria-label": p.ariaLabel || "marker",
|
|
23
|
+
onClick: p.onClick,
|
|
24
|
+
onKeyDown: (e) => {
|
|
25
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
p.onClick?.();
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
style: {
|
|
31
|
+
width: p.size ?? 14,
|
|
32
|
+
height: p.size ?? 14,
|
|
33
|
+
background: p.color ?? "#2563eb",
|
|
34
|
+
border: "2px solid white",
|
|
35
|
+
borderRadius: 9999,
|
|
36
|
+
boxShadow: "0 1px 3px rgba(0,0,0,0.35)",
|
|
37
|
+
cursor: p.onClick ? "pointer" : "default"
|
|
38
|
+
}
|
|
39
|
+
}, undefined, false, undefined, this)
|
|
40
|
+
}, p.id, false, undefined, this))
|
|
41
|
+
}, undefined, false, undefined, this);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
MapMarkers
|
|
45
|
+
};
|