@contractspec/lib.ui-kit-web 1.56.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +13 -0
- package/dist/browser/ui/accordion.js +73 -0
- package/dist/browser/ui/alert-dialog.js +177 -0
- package/dist/browser/ui/alert.js +60 -0
- package/dist/browser/ui/aspect-ratio.js +15 -0
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/index.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +89 -0
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +89 -0
- package/dist/browser/ui/atoms/Pagination/Pagination.js +387 -0
- package/dist/browser/ui/atoms/Pagination/index.js +387 -0
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/index.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +54 -0
- package/dist/browser/ui/badge.js +43 -0
- package/dist/browser/ui/breadcrumb.js +109 -0
- package/dist/browser/ui/button.js +56 -0
- package/dist/browser/ui/calendar.js +181 -0
- package/dist/browser/ui/card.js +87 -0
- package/dist/browser/ui/carousel.js +229 -0
- package/dist/browser/ui/checkbox.js +34 -0
- package/dist/browser/ui/collapsible.js +41 -0
- package/dist/browser/ui/command.js +266 -0
- package/dist/browser/ui/confirm-dialog.js +226 -0
- package/dist/browser/ui/context-menu.js +127 -0
- package/dist/browser/ui/cta.js +102 -0
- package/dist/browser/ui/date-picker.js +350 -0
- package/dist/browser/ui/date-range-picker.js +276 -0
- package/dist/browser/ui/datetime-picker.js +489 -0
- package/dist/browser/ui/dialog.js +140 -0
- package/dist/browser/ui/drawer.js +130 -0
- package/dist/browser/ui/dropdown-menu.js +214 -0
- package/dist/browser/ui/empty-state.js +209 -0
- package/dist/browser/ui/empty.js +90 -0
- package/dist/browser/ui/field.js +221 -0
- package/dist/browser/ui/focus-on-route-change.js +25 -0
- package/dist/browser/ui/form.js +156 -0
- package/dist/browser/ui/hover-card.js +51 -0
- package/dist/browser/ui/input-group.js +192 -0
- package/dist/browser/ui/input-otp.js +60 -0
- package/dist/browser/ui/input.js +22 -0
- package/dist/browser/ui/label.js +26 -0
- package/dist/browser/ui/link.js +24 -0
- package/dist/browser/ui/live-region.js +56 -0
- package/dist/browser/ui/loading-button.js +228 -0
- package/dist/browser/ui/map/MapBase.js +70 -0
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +56 -0
- package/dist/browser/ui/map/MapHeatmapH3.js +66 -0
- package/dist/browser/ui/map/MapMarkers.js +45 -0
- package/dist/browser/ui/map/index.js +210 -0
- package/dist/browser/ui/marketing/FeatureGrid.js +50 -0
- package/dist/browser/ui/marketing/Hero.js +116 -0
- package/dist/browser/ui/marketing/PricingTable.js +127 -0
- package/dist/browser/ui/marketing/index.js +217 -0
- package/dist/browser/ui/menubar.js +231 -0
- package/dist/browser/ui/molecules/Autocomplete/index.js +584 -0
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +44 -0
- package/dist/browser/ui/nav-layout.js +298 -0
- package/dist/browser/ui/navigation-menu.js +128 -0
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +191 -0
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +191 -0
- package/dist/browser/ui/organisms/ListPage/ListPage.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/index.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +206 -0
- package/dist/browser/ui/pagination.js +156 -0
- package/dist/browser/ui/popover.js +59 -0
- package/dist/browser/ui/progress.js +32 -0
- package/dist/browser/ui/radio-group.js +45 -0
- package/dist/browser/ui/resizable.js +41 -0
- package/dist/browser/ui/route-announcer.js +28 -0
- package/dist/browser/ui/scroll-area.js +53 -0
- package/dist/browser/ui/section.js +65 -0
- package/dist/browser/ui/select.js +165 -0
- package/dist/browser/ui/separator.js +30 -0
- package/dist/browser/ui/sheet.js +136 -0
- package/dist/browser/ui/sidebar.js +806 -0
- package/dist/browser/ui/skeleton.js +30 -0
- package/dist/browser/ui/skip-link.js +27 -0
- package/dist/browser/ui/slider.js +50 -0
- package/dist/browser/ui/sonner.js +29 -0
- package/dist/browser/ui/stack.js +158 -0
- package/dist/browser/ui/stat-card-group.js +263 -0
- package/dist/browser/ui/stepper.js +185 -0
- package/dist/browser/ui/switch.js +31 -0
- package/dist/browser/ui/table.js +106 -0
- package/dist/browser/ui/tabs.js +59 -0
- package/dist/browser/ui/text.js +22 -0
- package/dist/browser/ui/textarea.js +21 -0
- package/dist/browser/ui/time-picker.js +186 -0
- package/dist/browser/ui/toast.js +79 -0
- package/dist/browser/ui/toaster.js +220 -0
- package/dist/browser/ui/toggle-group.js +96 -0
- package/dist/browser/ui/toggle.js +47 -0
- package/dist/browser/ui/tooltip.js +68 -0
- package/dist/browser/ui/typography.js +123 -0
- package/dist/browser/ui/use-media-query.js +26 -0
- package/dist/browser/ui/use-mobile.js +27 -0
- package/dist/browser/ui/use-reduced-motion.js +24 -0
- package/dist/browser/ui/use-toast.js +129 -0
- package/dist/browser/ui/useListState.js +76 -0
- package/dist/browser/ui/usecases/UseCaseCard.js +232 -0
- package/dist/browser/ui/usecases/UserStoryCard.js +186 -0
- package/dist/browser/ui/usecases/index.js +267 -0
- package/dist/browser/ui/utils.js +17 -0
- package/dist/browser/ui/visually-hidden.js +35 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/ui/accordion.d.ts +7 -24
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +60 -40
- package/dist/ui/alert-dialog.d.ts +14 -48
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +158 -71
- package/dist/ui/alert.d.ts +8 -23
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +50 -34
- package/dist/ui/aspect-ratio.d.ts +2 -6
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +8 -8
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -7
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +237 -51
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -3
- package/dist/ui/atoms/FilterSelect/index.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/index.js +238 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +13 -16
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/types.js +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +14 -17
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +81 -43
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -2
- package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +83 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -7
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/Pagination.js +380 -155
- package/dist/ui/atoms/Pagination/index.d.ts +3 -3
- package/dist/ui/atoms/Pagination/index.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/index.js +381 -2
- package/dist/ui/atoms/Pagination/types.d.ts +11 -14
- package/dist/ui/atoms/Pagination/types.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/types.js +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -7
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +116 -48
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -3
- package/dist/ui/atoms/SearchInput/index.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/index.js +117 -2
- package/dist/ui/atoms/SearchInput/types.d.ts +8 -11
- package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/types.js +1 -0
- package/dist/ui/avatar.d.ts +6 -19
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +44 -28
- package/dist/ui/badge.d.ts +7 -17
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +34 -23
- package/dist/ui/breadcrumb.d.ts +11 -37
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +94 -62
- package/dist/ui/button.d.ts +14 -18
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +46 -50
- package/dist/ui/calendar.d.ts +7 -25
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +172 -105
- package/dist/ui/card.d.ts +9 -34
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +73 -49
- package/dist/ui/carousel.d.ts +13 -41
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +215 -127
- package/dist/ui/checkbox.d.ts +3 -10
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +25 -21
- package/dist/ui/collapsible.d.ts +5 -15
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +31 -23
- package/dist/ui/command.d.ts +18 -52
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +258 -87
- package/dist/ui/confirm-dialog.d.ts +13 -29
- package/dist/ui/confirm-dialog.d.ts.map +1 -1
- package/dist/ui/confirm-dialog.js +219 -32
- package/dist/ui/context-menu.d.ts +25 -32
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +109 -71
- package/dist/ui/cta.d.ts +17 -21
- package/dist/ui/cta.d.ts.map +1 -1
- package/dist/ui/cta.js +94 -36
- package/dist/ui/date-picker.d.ts +10 -24
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +342 -98
- package/dist/ui/date-range-picker.d.ts +11 -23
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/date-range-picker.js +268 -51
- package/dist/ui/datetime-picker.d.ts +11 -26
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.js +479 -39
- package/dist/ui/dialog.d.ts +15 -47
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +122 -77
- package/dist/ui/drawer.d.ts +13 -44
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +113 -70
- package/dist/ui/dropdown-menu.d.ts +25 -77
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +191 -109
- package/dist/ui/empty-state.d.ts +13 -26
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty-state.js +201 -40
- package/dist/ui/empty.d.ts +11 -35
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +76 -53
- package/dist/ui/field.d.ts +24 -64
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +202 -107
- package/dist/ui/focus-on-route-change.d.ts +2 -7
- package/dist/ui/focus-on-route-change.d.ts.map +1 -1
- package/dist/ui/focus-on-route-change.js +18 -15
- package/dist/ui/form.d.ts +24 -44
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +141 -84
- package/dist/ui/hover-card.d.ts +6 -19
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +41 -31
- package/dist/ui/input-group.d.ts +14 -41
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +177 -79
- package/dist/ui/input-otp.d.ts +32 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +47 -38
- package/dist/ui/input.d.ts +4 -12
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +14 -14
- package/dist/ui/label.d.ts +3 -10
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +18 -16
- package/dist/ui/link.d.ts +3 -7
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +14 -13
- package/dist/ui/live-region.d.ts +8 -14
- package/dist/ui/live-region.d.ts.map +1 -1
- package/dist/ui/live-region.js +47 -43
- package/dist/ui/loading-button.d.ts +7 -17
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +221 -19
- package/dist/ui/map/MapBase.d.ts +20 -25
- package/dist/ui/map/MapBase.d.ts.map +1 -1
- package/dist/ui/map/MapBase.js +62 -43
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +9 -14
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -1
- package/dist/ui/map/MapGeoJsonOverlay.js +47 -33
- package/dist/ui/map/MapHeatmapH3.d.ts +10 -15
- package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -1
- package/dist/ui/map/MapHeatmapH3.js +55 -44
- package/dist/ui/map/MapMarkers.d.ts +11 -18
- package/dist/ui/map/MapMarkers.d.ts.map +1 -1
- package/dist/ui/map/MapMarkers.js +36 -35
- package/dist/ui/map/index.d.ts +5 -5
- package/dist/ui/map/index.d.ts.map +1 -0
- package/dist/ui/map/index.js +204 -5
- package/dist/ui/marketing/FeatureGrid.d.ts +10 -19
- package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -1
- package/dist/ui/marketing/FeatureGrid.js +42 -32
- package/dist/ui/marketing/Hero.d.ts +16 -27
- package/dist/ui/marketing/Hero.d.ts.map +1 -1
- package/dist/ui/marketing/Hero.js +108 -50
- package/dist/ui/marketing/PricingTable.d.ts +15 -23
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
- package/dist/ui/marketing/PricingTable.js +119 -57
- package/dist/ui/marketing/index.d.ts +4 -4
- package/dist/ui/marketing/index.d.ts.map +1 -0
- package/dist/ui/marketing/index.js +211 -4
- package/dist/ui/menubar.d.ts +26 -84
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +223 -134
- package/dist/ui/molecules/Autocomplete/index.d.ts +1 -6
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/ui/molecules/Autocomplete/index.js +574 -80
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -7
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +496 -101
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -3
- package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +497 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -22
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
- package/dist/ui/molecules/SkeletonList.d.ts +5 -13
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
- package/dist/ui/molecules/SkeletonList.js +36 -12
- package/dist/ui/nav-layout.d.ts +44 -67
- package/dist/ui/nav-layout.d.ts.map +1 -1
- package/dist/ui/nav-layout.js +287 -127
- package/dist/ui/navigation-menu.d.ts +14 -46
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +113 -73
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +18 -22
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +182 -103
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +3 -2
- package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +185 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -28
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.js +1229 -196
- package/dist/ui/organisms/ListPage/index.d.ts +3 -3
- package/dist/ui/organisms/ListPage/index.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/index.js +1230 -2
- package/dist/ui/organisms/ListPage/types.d.ts +34 -38
- package/dist/ui/organisms/ListPage/types.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/types.js +1 -0
- package/dist/ui/page-header.d.ts +12 -24
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/page-header.js +198 -37
- package/dist/ui/pagination.d.ts +17 -38
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +142 -56
- package/dist/ui/popover.d.ts +7 -22
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +48 -33
- package/dist/ui/progress.d.ts +3 -11
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +24 -21
- package/dist/ui/radio-group.d.ts +4 -14
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +35 -27
- package/dist/ui/resizable.d.ts +22 -34
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +33 -22
- package/dist/ui/route-announcer.d.ts +3 -10
- package/dist/ui/route-announcer.d.ts.map +1 -1
- package/dist/ui/route-announcer.js +20 -19
- package/dist/ui/scroll-area.d.ts +4 -16
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +44 -36
- package/dist/ui/section.d.ts +20 -24
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +56 -59
- package/dist/ui/select.d.ts +15 -51
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +147 -87
- package/dist/ui/separator.d.ts +3 -12
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +22 -18
- package/dist/ui/sheet.d.ts +13 -40
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +117 -72
- package/dist/ui/sidebar.d.ts +65 -162
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +794 -372
- package/dist/ui/skeleton.d.ts +2 -9
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +22 -12
- package/dist/ui/skip-link.d.ts +6 -15
- package/dist/ui/skip-link.d.ts.map +1 -1
- package/dist/ui/skip-link.js +20 -15
- package/dist/ui/slider.d.ts +3 -14
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +42 -37
- package/dist/ui/sonner.d.ts +2 -8
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +21 -21
- package/dist/ui/stack.d.ts +40 -44
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +143 -148
- package/dist/ui/stat-card-group.d.ts +9 -17
- package/dist/ui/stat-card-group.d.ts.map +1 -1
- package/dist/ui/stat-card-group.js +255 -36
- package/dist/ui/stepper.d.ts +10 -20
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +176 -33
- package/dist/ui/switch.d.ts +5 -13
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +23 -20
- package/dist/ui/table.d.ts +10 -38
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +91 -61
- package/dist/ui/tabs.d.ts +7 -23
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +48 -34
- package/dist/ui/text.d.ts +5 -13
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +14 -13
- package/dist/ui/textarea.d.ts +4 -11
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +13 -13
- package/dist/ui/time-picker.d.ts +8 -20
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/time-picker.js +176 -76
- package/dist/ui/toast.d.ts +15 -19
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +63 -51
- package/dist/ui/toaster.d.ts +1 -6
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +212 -24
- package/dist/ui/toggle-group.d.ts +6 -22
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +85 -42
- package/dist/ui/toggle.d.ts +7 -17
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +38 -37
- package/dist/ui/tooltip.d.ts +7 -23
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +57 -34
- package/dist/ui/typography.d.ts +13 -61
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +95 -64
- package/dist/ui/use-media-query.d.ts +1 -4
- package/dist/ui/use-media-query.d.ts.map +1 -1
- package/dist/ui/use-media-query.js +18 -17
- package/dist/ui/use-mobile.d.ts +1 -4
- package/dist/ui/use-mobile.d.ts.map +1 -1
- package/dist/ui/use-mobile.js +19 -18
- package/dist/ui/use-reduced-motion.d.ts +1 -4
- package/dist/ui/use-reduced-motion.d.ts.map +1 -1
- package/dist/ui/use-reduced-motion.js +16 -15
- package/dist/ui/use-toast.d.ts +28 -33
- package/dist/ui/use-toast.d.ts.map +1 -1
- package/dist/ui/use-toast.js +113 -111
- package/dist/ui/useListState.d.ts +23 -31
- package/dist/ui/useListState.d.ts.map +1 -1
- package/dist/ui/useListState.js +69 -73
- package/dist/ui/usecases/UseCaseCard.d.ts +7 -18
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.js +225 -33
- package/dist/ui/usecases/UserStoryCard.d.ts +5 -14
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/dist/ui/usecases/UserStoryCard.js +179 -34
- package/dist/ui/usecases/index.d.ts +3 -3
- package/dist/ui/usecases/index.d.ts.map +1 -0
- package/dist/ui/usecases/index.js +261 -3
- package/dist/ui/utils.d.ts +2 -6
- package/dist/ui/utils.d.ts.map +1 -1
- package/dist/ui/utils.js +8 -7
- package/dist/ui/visually-hidden.d.ts +5 -8
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +26 -27
- package/package.json +874 -238
- package/dist/ui/accordion.js.map +0 -1
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/calendar.js.map +0 -1
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/confirm-dialog.js.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/cta.js.map +0 -1
- package/dist/ui/date-picker.js.map +0 -1
- package/dist/ui/date-range-picker.js.map +0 -1
- package/dist/ui/datetime-picker.js.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/drawer.js.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty-state.js.map +0 -1
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/field.js.map +0 -1
- package/dist/ui/focus-on-route-change.js.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/live-region.js.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/map/MapBase.js.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.js.map +0 -1
- package/dist/ui/map/MapHeatmapH3.js.map +0 -1
- package/dist/ui/map/MapMarkers.js.map +0 -1
- package/dist/ui/marketing/FeatureGrid.js.map +0 -1
- package/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
- package/dist/ui/molecules/SkeletonList.js.map +0 -1
- package/dist/ui/nav-layout.js.map +0 -1
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui/page-header.js.map +0 -1
- package/dist/ui/pagination.js.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/resizable.js.map +0 -1
- package/dist/ui/route-announcer.js.map +0 -1
- package/dist/ui/scroll-area.js.map +0 -1
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/sidebar.js.map +0 -1
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/skip-link.js.map +0 -1
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stat-card-group.js.map +0 -1
- package/dist/ui/stepper.js.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/time-picker.js.map +0 -1
- package/dist/ui/toast.js.map +0 -1
- package/dist/ui/toaster.js.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/typography.js.map +0 -1
- package/dist/ui/use-media-query.js.map +0 -1
- package/dist/ui/use-mobile.js.map +0 -1
- package/dist/ui/use-reduced-motion.js.map +0 -1
- package/dist/ui/use-toast.js.map +0 -1
- package/dist/ui/useListState.js.map +0 -1
- package/dist/ui/usecases/UseCaseCard.js.map +0 -1
- package/dist/ui/usecases/UserStoryCard.js.map +0 -1
- package/dist/ui/utils.js.map +0 -1
- package/dist/ui/visually-hidden.js.map +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
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/toast.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
import { X } from "lucide-react";
|
|
14
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
15
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
16
|
+
"use client";
|
|
17
|
+
var ToastProvider = ToastPrimitives.Provider;
|
|
18
|
+
var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
|
|
19
|
+
ref,
|
|
20
|
+
className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this));
|
|
23
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
24
|
+
var toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "border bg-background text-foreground",
|
|
28
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
variant: "default"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
|
|
36
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
|
|
37
|
+
ref,
|
|
38
|
+
className: cn(toastVariants({ variant }), className),
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
});
|
|
42
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
43
|
+
var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
|
|
46
|
+
...props
|
|
47
|
+
}, undefined, false, undefined, this));
|
|
48
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
49
|
+
var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
|
|
50
|
+
ref,
|
|
51
|
+
className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
|
|
52
|
+
"toast-close": "",
|
|
53
|
+
...props,
|
|
54
|
+
children: /* @__PURE__ */ jsxDEV(X, {
|
|
55
|
+
className: "h-4 w-4"
|
|
56
|
+
}, undefined, false, undefined, this)
|
|
57
|
+
}, undefined, false, undefined, this));
|
|
58
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
59
|
+
var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
|
|
60
|
+
ref,
|
|
61
|
+
className: cn("text-base font-semibold", className),
|
|
62
|
+
...props
|
|
63
|
+
}, undefined, false, undefined, this));
|
|
64
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
65
|
+
var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
|
|
66
|
+
ref,
|
|
67
|
+
className: cn("text-base opacity-90", className),
|
|
68
|
+
...props
|
|
69
|
+
}, undefined, false, undefined, this));
|
|
70
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
71
|
+
export {
|
|
72
|
+
ToastViewport,
|
|
73
|
+
ToastTitle,
|
|
74
|
+
ToastProvider,
|
|
75
|
+
ToastDescription,
|
|
76
|
+
ToastClose,
|
|
77
|
+
ToastAction,
|
|
78
|
+
Toast
|
|
79
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
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/toast.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
import { X } from "lucide-react";
|
|
14
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
15
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
16
|
+
"use client";
|
|
17
|
+
var ToastProvider = ToastPrimitives.Provider;
|
|
18
|
+
var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
|
|
19
|
+
ref,
|
|
20
|
+
className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this));
|
|
23
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
24
|
+
var toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "border bg-background text-foreground",
|
|
28
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
variant: "default"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
|
|
36
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
|
|
37
|
+
ref,
|
|
38
|
+
className: cn(toastVariants({ variant }), className),
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
});
|
|
42
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
43
|
+
var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
|
|
44
|
+
ref,
|
|
45
|
+
className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
|
|
46
|
+
...props
|
|
47
|
+
}, undefined, false, undefined, this));
|
|
48
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
49
|
+
var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
|
|
50
|
+
ref,
|
|
51
|
+
className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
|
|
52
|
+
"toast-close": "",
|
|
53
|
+
...props,
|
|
54
|
+
children: /* @__PURE__ */ jsxDEV(X, {
|
|
55
|
+
className: "h-4 w-4"
|
|
56
|
+
}, undefined, false, undefined, this)
|
|
57
|
+
}, undefined, false, undefined, this));
|
|
58
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
59
|
+
var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
|
|
60
|
+
ref,
|
|
61
|
+
className: cn("text-base font-semibold", className),
|
|
62
|
+
...props
|
|
63
|
+
}, undefined, false, undefined, this));
|
|
64
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
65
|
+
var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
|
|
66
|
+
ref,
|
|
67
|
+
className: cn("text-base opacity-90", className),
|
|
68
|
+
...props
|
|
69
|
+
}, undefined, false, undefined, this));
|
|
70
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
71
|
+
// ui/use-toast.ts
|
|
72
|
+
import * as React2 from "react";
|
|
73
|
+
"use client";
|
|
74
|
+
var TOAST_LIMIT = 1;
|
|
75
|
+
var TOAST_REMOVE_DELAY = 1e6;
|
|
76
|
+
var count = 0;
|
|
77
|
+
function genId() {
|
|
78
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
79
|
+
return count.toString();
|
|
80
|
+
}
|
|
81
|
+
var toastTimeouts = new Map;
|
|
82
|
+
var addToRemoveQueue = (toastId) => {
|
|
83
|
+
if (toastTimeouts.has(toastId)) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const timeout = setTimeout(() => {
|
|
87
|
+
toastTimeouts.delete(toastId);
|
|
88
|
+
dispatch({
|
|
89
|
+
type: "REMOVE_TOAST",
|
|
90
|
+
toastId
|
|
91
|
+
});
|
|
92
|
+
}, TOAST_REMOVE_DELAY);
|
|
93
|
+
toastTimeouts.set(toastId, timeout);
|
|
94
|
+
};
|
|
95
|
+
var reducer = (state, action) => {
|
|
96
|
+
switch (action.type) {
|
|
97
|
+
case "ADD_TOAST":
|
|
98
|
+
return {
|
|
99
|
+
...state,
|
|
100
|
+
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
|
|
101
|
+
};
|
|
102
|
+
case "UPDATE_TOAST":
|
|
103
|
+
return {
|
|
104
|
+
...state,
|
|
105
|
+
toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t)
|
|
106
|
+
};
|
|
107
|
+
case "DISMISS_TOAST": {
|
|
108
|
+
const { toastId } = action;
|
|
109
|
+
if (toastId) {
|
|
110
|
+
addToRemoveQueue(toastId);
|
|
111
|
+
} else {
|
|
112
|
+
state.toasts.forEach((toast) => {
|
|
113
|
+
addToRemoveQueue(toast.id);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
...state,
|
|
118
|
+
toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined ? {
|
|
119
|
+
...t,
|
|
120
|
+
open: false
|
|
121
|
+
} : t)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
case "REMOVE_TOAST":
|
|
125
|
+
if (action.toastId === undefined) {
|
|
126
|
+
return {
|
|
127
|
+
...state,
|
|
128
|
+
toasts: []
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
...state,
|
|
133
|
+
toasts: state.toasts.filter((t) => t.id !== action.toastId)
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
var listeners = [];
|
|
138
|
+
var memoryState = { toasts: [] };
|
|
139
|
+
function dispatch(action) {
|
|
140
|
+
memoryState = reducer(memoryState, action);
|
|
141
|
+
listeners.forEach((listener) => {
|
|
142
|
+
listener(memoryState);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function toast({ ...props }) {
|
|
146
|
+
const id = genId();
|
|
147
|
+
const update = (props2) => dispatch({
|
|
148
|
+
type: "UPDATE_TOAST",
|
|
149
|
+
toast: { ...props2, id }
|
|
150
|
+
});
|
|
151
|
+
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
152
|
+
dispatch({
|
|
153
|
+
type: "ADD_TOAST",
|
|
154
|
+
toast: {
|
|
155
|
+
...props,
|
|
156
|
+
id,
|
|
157
|
+
open: true,
|
|
158
|
+
onOpenChange: (open) => {
|
|
159
|
+
if (!open)
|
|
160
|
+
dismiss();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
return {
|
|
165
|
+
id,
|
|
166
|
+
dismiss,
|
|
167
|
+
update
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function useToast() {
|
|
171
|
+
const [state, setState] = React2.useState(memoryState);
|
|
172
|
+
React2.useEffect(() => {
|
|
173
|
+
listeners.push(setState);
|
|
174
|
+
return () => {
|
|
175
|
+
const index = listeners.indexOf(setState);
|
|
176
|
+
if (index > -1) {
|
|
177
|
+
listeners.splice(index, 1);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}, [state]);
|
|
181
|
+
return {
|
|
182
|
+
...state,
|
|
183
|
+
toast,
|
|
184
|
+
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
// ui/toaster.tsx
|
|
188
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
189
|
+
"use client";
|
|
190
|
+
function Toaster() {
|
|
191
|
+
const { toasts } = useToast();
|
|
192
|
+
return /* @__PURE__ */ jsxDEV2(ToastProvider, {
|
|
193
|
+
children: [
|
|
194
|
+
toasts.map(function({ id, title, description, action, ...props }) {
|
|
195
|
+
return /* @__PURE__ */ jsxDEV2(Toast, {
|
|
196
|
+
...props,
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ jsxDEV2("div", {
|
|
199
|
+
className: "grid gap-1",
|
|
200
|
+
children: [
|
|
201
|
+
title && /* @__PURE__ */ jsxDEV2(ToastTitle, {
|
|
202
|
+
children: title
|
|
203
|
+
}, undefined, false, undefined, this),
|
|
204
|
+
description && /* @__PURE__ */ jsxDEV2(ToastDescription, {
|
|
205
|
+
children: description
|
|
206
|
+
}, undefined, false, undefined, this)
|
|
207
|
+
]
|
|
208
|
+
}, undefined, true, undefined, this),
|
|
209
|
+
action,
|
|
210
|
+
/* @__PURE__ */ jsxDEV2(ToastClose, {}, undefined, false, undefined, this)
|
|
211
|
+
]
|
|
212
|
+
}, id, true, undefined, this);
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ jsxDEV2(ToastViewport, {}, undefined, false, undefined, this)
|
|
215
|
+
]
|
|
216
|
+
}, undefined, true, undefined, this);
|
|
217
|
+
}
|
|
218
|
+
export {
|
|
219
|
+
Toaster
|
|
220
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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/toggle.tsx
|
|
10
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
13
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
14
|
+
"use client";
|
|
15
|
+
var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-hidden transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-transparent",
|
|
19
|
+
outline: "border border-input bg-transparent shadow-2xs hover:bg-accent hover:text-accent-foreground"
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
default: "h-9 px-2 min-w-9",
|
|
23
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
24
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function Toggle({
|
|
33
|
+
className,
|
|
34
|
+
variant,
|
|
35
|
+
size,
|
|
36
|
+
...props
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ jsxDEV(TogglePrimitive.Root, {
|
|
39
|
+
"data-slot": "toggle",
|
|
40
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
41
|
+
...props
|
|
42
|
+
}, undefined, false, undefined, this);
|
|
43
|
+
}
|
|
44
|
+
// ui/toggle-group.tsx
|
|
45
|
+
import * as React from "react";
|
|
46
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
47
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
48
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
49
|
+
"use client";
|
|
50
|
+
var ToggleGroupContext = React.createContext({
|
|
51
|
+
size: "default",
|
|
52
|
+
variant: "default"
|
|
53
|
+
});
|
|
54
|
+
function ToggleGroup({
|
|
55
|
+
className,
|
|
56
|
+
variant,
|
|
57
|
+
size,
|
|
58
|
+
children,
|
|
59
|
+
...props
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ jsxDEV2(ToggleGroupPrimitive.Root, {
|
|
62
|
+
"data-slot": "toggle-group",
|
|
63
|
+
"data-variant": variant,
|
|
64
|
+
"data-size": size,
|
|
65
|
+
className: cn2("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-2xs", className),
|
|
66
|
+
...props,
|
|
67
|
+
children: /* @__PURE__ */ jsxDEV2(ToggleGroupContext.Provider, {
|
|
68
|
+
value: { variant, size },
|
|
69
|
+
children
|
|
70
|
+
}, undefined, false, undefined, this)
|
|
71
|
+
}, undefined, false, undefined, this);
|
|
72
|
+
}
|
|
73
|
+
function ToggleGroupItem({
|
|
74
|
+
className,
|
|
75
|
+
children,
|
|
76
|
+
variant,
|
|
77
|
+
size,
|
|
78
|
+
...props
|
|
79
|
+
}) {
|
|
80
|
+
const context = React.useContext(ToggleGroupContext);
|
|
81
|
+
return /* @__PURE__ */ jsxDEV2(ToggleGroupPrimitive.Item, {
|
|
82
|
+
"data-slot": "toggle-group-item",
|
|
83
|
+
"data-variant": context.variant || variant,
|
|
84
|
+
"data-size": context.size || size,
|
|
85
|
+
className: cn2(toggleVariants({
|
|
86
|
+
variant: context.variant || variant,
|
|
87
|
+
size: context.size || size
|
|
88
|
+
}), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", className),
|
|
89
|
+
...props,
|
|
90
|
+
children
|
|
91
|
+
}, undefined, false, undefined, this);
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
ToggleGroupItem,
|
|
95
|
+
ToggleGroup
|
|
96
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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/toggle.tsx
|
|
10
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
13
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
14
|
+
"use client";
|
|
15
|
+
var toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-hidden transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: "bg-transparent",
|
|
19
|
+
outline: "border border-input bg-transparent shadow-2xs hover:bg-accent hover:text-accent-foreground"
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
default: "h-9 px-2 min-w-9",
|
|
23
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
24
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function Toggle({
|
|
33
|
+
className,
|
|
34
|
+
variant,
|
|
35
|
+
size,
|
|
36
|
+
...props
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ jsxDEV(TogglePrimitive.Root, {
|
|
39
|
+
"data-slot": "toggle",
|
|
40
|
+
className: cn(toggleVariants({ variant, size, className })),
|
|
41
|
+
...props
|
|
42
|
+
}, undefined, false, undefined, this);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
toggleVariants,
|
|
46
|
+
Toggle
|
|
47
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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/tooltip.tsx
|
|
10
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
11
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
12
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
13
|
+
"use client";
|
|
14
|
+
function TooltipProvider({
|
|
15
|
+
delayDuration = 0,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ jsxDEV(TooltipPrimitive.Provider, {
|
|
19
|
+
"data-slot": "tooltip-provider",
|
|
20
|
+
delayDuration,
|
|
21
|
+
...props
|
|
22
|
+
}, undefined, false, undefined, this);
|
|
23
|
+
}
|
|
24
|
+
function Tooltip({
|
|
25
|
+
...props
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsxDEV(TooltipProvider, {
|
|
28
|
+
children: /* @__PURE__ */ jsxDEV(TooltipPrimitive.Root, {
|
|
29
|
+
"data-slot": "tooltip",
|
|
30
|
+
...props
|
|
31
|
+
}, undefined, false, undefined, this)
|
|
32
|
+
}, undefined, false, undefined, this);
|
|
33
|
+
}
|
|
34
|
+
function TooltipTrigger({
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ jsxDEV(TooltipPrimitive.Trigger, {
|
|
38
|
+
"data-slot": "tooltip-trigger",
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
}
|
|
42
|
+
function TooltipContent({
|
|
43
|
+
className,
|
|
44
|
+
sideOffset = 0,
|
|
45
|
+
children,
|
|
46
|
+
...props
|
|
47
|
+
}) {
|
|
48
|
+
return /* @__PURE__ */ jsxDEV(TooltipPrimitive.Portal, {
|
|
49
|
+
children: /* @__PURE__ */ jsxDEV(TooltipPrimitive.Content, {
|
|
50
|
+
"data-slot": "tooltip-content",
|
|
51
|
+
sideOffset,
|
|
52
|
+
className: cn("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className),
|
|
53
|
+
...props,
|
|
54
|
+
children: [
|
|
55
|
+
children,
|
|
56
|
+
/* @__PURE__ */ jsxDEV(TooltipPrimitive.Arrow, {
|
|
57
|
+
className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]"
|
|
58
|
+
}, undefined, false, undefined, this)
|
|
59
|
+
]
|
|
60
|
+
}, undefined, true, undefined, this)
|
|
61
|
+
}, undefined, false, undefined, this);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
TooltipTrigger,
|
|
65
|
+
TooltipProvider,
|
|
66
|
+
TooltipContent,
|
|
67
|
+
Tooltip
|
|
68
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
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/text.tsx
|
|
10
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
11
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
12
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
13
|
+
function Text({ className, asChild = false, ...props }) {
|
|
14
|
+
const Component = asChild ? Slot : "p";
|
|
15
|
+
return /* @__PURE__ */ jsxDEV(Component, {
|
|
16
|
+
className: cn("text-foreground web:select-text text-base", className),
|
|
17
|
+
...props
|
|
18
|
+
}, undefined, false, undefined, this);
|
|
19
|
+
}
|
|
20
|
+
// ui/typography.tsx
|
|
21
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
22
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
23
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
24
|
+
function H1({ className, asChild = false, ...props }) {
|
|
25
|
+
const Component = asChild ? Slot2 : "h1";
|
|
26
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
27
|
+
role: "heading",
|
|
28
|
+
"aria-level": 1,
|
|
29
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className),
|
|
30
|
+
...props
|
|
31
|
+
}, undefined, false, undefined, this);
|
|
32
|
+
}
|
|
33
|
+
function H2({ className, asChild = false, ...props }) {
|
|
34
|
+
const Component = asChild ? Slot2 : "h2";
|
|
35
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
36
|
+
role: "heading",
|
|
37
|
+
"aria-level": 2,
|
|
38
|
+
className: cn2("border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
|
|
39
|
+
...props
|
|
40
|
+
}, undefined, false, undefined, this);
|
|
41
|
+
}
|
|
42
|
+
function H3({ className, asChild = false, ...props }) {
|
|
43
|
+
const Component = asChild ? Slot2 : "h3";
|
|
44
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
45
|
+
role: "heading",
|
|
46
|
+
"aria-level": 3,
|
|
47
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight", className),
|
|
48
|
+
...props
|
|
49
|
+
}, undefined, false, undefined, this);
|
|
50
|
+
}
|
|
51
|
+
function H4({ className, asChild = false, ...props }) {
|
|
52
|
+
const Component = asChild ? Slot2 : "h4";
|
|
53
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
54
|
+
role: "heading",
|
|
55
|
+
"aria-level": 4,
|
|
56
|
+
className: cn2("text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight", className),
|
|
57
|
+
...props
|
|
58
|
+
}, undefined, false, undefined, this);
|
|
59
|
+
}
|
|
60
|
+
function P({ className, asChild = false, ...props }) {
|
|
61
|
+
const Component = asChild ? Slot2 : Text;
|
|
62
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
63
|
+
className: cn2("text-foreground web:select-text text-base", className),
|
|
64
|
+
...props
|
|
65
|
+
}, undefined, false, undefined, this);
|
|
66
|
+
}
|
|
67
|
+
function BlockQuote({ className, asChild = false, ...props }) {
|
|
68
|
+
const Component = asChild ? Slot2 : Text;
|
|
69
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
70
|
+
role: "blockquote",
|
|
71
|
+
className: cn2("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
|
|
72
|
+
...props
|
|
73
|
+
}, undefined, false, undefined, this);
|
|
74
|
+
}
|
|
75
|
+
function Code({ className, asChild = false, ...props }) {
|
|
76
|
+
const Component = asChild ? Slot2 : Text;
|
|
77
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
78
|
+
role: "code",
|
|
79
|
+
className: cn2("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this);
|
|
82
|
+
}
|
|
83
|
+
function Lead({ className, asChild = false, ...props }) {
|
|
84
|
+
const Component = asChild ? Slot2 : Text;
|
|
85
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
86
|
+
className: cn2("text-muted-foreground web:select-text text-xl", className),
|
|
87
|
+
...props
|
|
88
|
+
}, undefined, false, undefined, this);
|
|
89
|
+
}
|
|
90
|
+
function Large({ className, asChild = false, ...props }) {
|
|
91
|
+
const Component = asChild ? Slot2 : Text;
|
|
92
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
93
|
+
className: cn2("text-foreground web:select-text text-xl font-semibold", className),
|
|
94
|
+
...props
|
|
95
|
+
}, undefined, false, undefined, this);
|
|
96
|
+
}
|
|
97
|
+
function Small({ className, asChild = false, ...props }) {
|
|
98
|
+
const Component = asChild ? Slot2 : Text;
|
|
99
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
100
|
+
className: cn2("text-foreground web:select-text text-sm leading-none font-medium", className),
|
|
101
|
+
...props
|
|
102
|
+
}, undefined, false, undefined, this);
|
|
103
|
+
}
|
|
104
|
+
function Muted({ className, asChild = false, ...props }) {
|
|
105
|
+
const Component = asChild ? Slot2 : Text;
|
|
106
|
+
return /* @__PURE__ */ jsxDEV2(Component, {
|
|
107
|
+
className: cn2("text-muted-foreground web:select-text text-sm", className),
|
|
108
|
+
...props
|
|
109
|
+
}, undefined, false, undefined, this);
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
Small,
|
|
113
|
+
P,
|
|
114
|
+
Muted,
|
|
115
|
+
Lead,
|
|
116
|
+
Large,
|
|
117
|
+
H4,
|
|
118
|
+
H3,
|
|
119
|
+
H2,
|
|
120
|
+
H1,
|
|
121
|
+
Code,
|
|
122
|
+
BlockQuote
|
|
123
|
+
};
|
|
@@ -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/use-media-query.ts
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
function useMediaQuery(query) {
|
|
12
|
+
const [value, setValue] = React.useState(false);
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
function onChange(event) {
|
|
15
|
+
setValue(event.matches);
|
|
16
|
+
}
|
|
17
|
+
const result = matchMedia(query);
|
|
18
|
+
result.addEventListener("change", onChange);
|
|
19
|
+
setValue(result.matches);
|
|
20
|
+
return () => result.removeEventListener("change", onChange);
|
|
21
|
+
}, [query]);
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
useMediaQuery
|
|
26
|
+
};
|