@contractspec/lib.ui-kit-web 1.56.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +13 -0
- package/dist/browser/ui/accordion.js +73 -0
- package/dist/browser/ui/alert-dialog.js +177 -0
- package/dist/browser/ui/alert.js +60 -0
- package/dist/browser/ui/aspect-ratio.js +15 -0
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/index.js +244 -0
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +89 -0
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +89 -0
- package/dist/browser/ui/atoms/Pagination/Pagination.js +387 -0
- package/dist/browser/ui/atoms/Pagination/index.js +387 -0
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/index.js +123 -0
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +54 -0
- package/dist/browser/ui/badge.js +43 -0
- package/dist/browser/ui/breadcrumb.js +109 -0
- package/dist/browser/ui/button.js +56 -0
- package/dist/browser/ui/calendar.js +181 -0
- package/dist/browser/ui/card.js +87 -0
- package/dist/browser/ui/carousel.js +229 -0
- package/dist/browser/ui/checkbox.js +34 -0
- package/dist/browser/ui/collapsible.js +41 -0
- package/dist/browser/ui/command.js +266 -0
- package/dist/browser/ui/confirm-dialog.js +226 -0
- package/dist/browser/ui/context-menu.js +127 -0
- package/dist/browser/ui/cta.js +102 -0
- package/dist/browser/ui/date-picker.js +350 -0
- package/dist/browser/ui/date-range-picker.js +276 -0
- package/dist/browser/ui/datetime-picker.js +489 -0
- package/dist/browser/ui/dialog.js +140 -0
- package/dist/browser/ui/drawer.js +130 -0
- package/dist/browser/ui/dropdown-menu.js +214 -0
- package/dist/browser/ui/empty-state.js +209 -0
- package/dist/browser/ui/empty.js +90 -0
- package/dist/browser/ui/field.js +221 -0
- package/dist/browser/ui/focus-on-route-change.js +25 -0
- package/dist/browser/ui/form.js +156 -0
- package/dist/browser/ui/hover-card.js +51 -0
- package/dist/browser/ui/input-group.js +192 -0
- package/dist/browser/ui/input-otp.js +60 -0
- package/dist/browser/ui/input.js +22 -0
- package/dist/browser/ui/label.js +26 -0
- package/dist/browser/ui/link.js +24 -0
- package/dist/browser/ui/live-region.js +56 -0
- package/dist/browser/ui/loading-button.js +228 -0
- package/dist/browser/ui/map/MapBase.js +70 -0
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +56 -0
- package/dist/browser/ui/map/MapHeatmapH3.js +66 -0
- package/dist/browser/ui/map/MapMarkers.js +45 -0
- package/dist/browser/ui/map/index.js +210 -0
- package/dist/browser/ui/marketing/FeatureGrid.js +50 -0
- package/dist/browser/ui/marketing/Hero.js +116 -0
- package/dist/browser/ui/marketing/PricingTable.js +127 -0
- package/dist/browser/ui/marketing/index.js +217 -0
- package/dist/browser/ui/menubar.js +231 -0
- package/dist/browser/ui/molecules/Autocomplete/index.js +584 -0
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +503 -0
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +44 -0
- package/dist/browser/ui/nav-layout.js +298 -0
- package/dist/browser/ui/navigation-menu.js +128 -0
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +191 -0
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +191 -0
- package/dist/browser/ui/organisms/ListPage/ListPage.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/index.js +1236 -0
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +206 -0
- package/dist/browser/ui/pagination.js +156 -0
- package/dist/browser/ui/popover.js +59 -0
- package/dist/browser/ui/progress.js +32 -0
- package/dist/browser/ui/radio-group.js +45 -0
- package/dist/browser/ui/resizable.js +41 -0
- package/dist/browser/ui/route-announcer.js +28 -0
- package/dist/browser/ui/scroll-area.js +53 -0
- package/dist/browser/ui/section.js +65 -0
- package/dist/browser/ui/select.js +165 -0
- package/dist/browser/ui/separator.js +30 -0
- package/dist/browser/ui/sheet.js +136 -0
- package/dist/browser/ui/sidebar.js +806 -0
- package/dist/browser/ui/skeleton.js +30 -0
- package/dist/browser/ui/skip-link.js +27 -0
- package/dist/browser/ui/slider.js +50 -0
- package/dist/browser/ui/sonner.js +29 -0
- package/dist/browser/ui/stack.js +158 -0
- package/dist/browser/ui/stat-card-group.js +263 -0
- package/dist/browser/ui/stepper.js +185 -0
- package/dist/browser/ui/switch.js +31 -0
- package/dist/browser/ui/table.js +106 -0
- package/dist/browser/ui/tabs.js +59 -0
- package/dist/browser/ui/text.js +22 -0
- package/dist/browser/ui/textarea.js +21 -0
- package/dist/browser/ui/time-picker.js +186 -0
- package/dist/browser/ui/toast.js +79 -0
- package/dist/browser/ui/toaster.js +220 -0
- package/dist/browser/ui/toggle-group.js +96 -0
- package/dist/browser/ui/toggle.js +47 -0
- package/dist/browser/ui/tooltip.js +68 -0
- package/dist/browser/ui/typography.js +123 -0
- package/dist/browser/ui/use-media-query.js +26 -0
- package/dist/browser/ui/use-mobile.js +27 -0
- package/dist/browser/ui/use-reduced-motion.js +24 -0
- package/dist/browser/ui/use-toast.js +129 -0
- package/dist/browser/ui/useListState.js +76 -0
- package/dist/browser/ui/usecases/UseCaseCard.js +232 -0
- package/dist/browser/ui/usecases/UserStoryCard.js +186 -0
- package/dist/browser/ui/usecases/index.js +267 -0
- package/dist/browser/ui/utils.js +17 -0
- package/dist/browser/ui/visually-hidden.js +35 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/ui/accordion.d.ts +7 -24
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +60 -40
- package/dist/ui/alert-dialog.d.ts +14 -48
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +158 -71
- package/dist/ui/alert.d.ts +8 -23
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +50 -34
- package/dist/ui/aspect-ratio.d.ts +2 -6
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +8 -8
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -7
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +237 -51
- package/dist/ui/atoms/FilterSelect/index.d.ts +3 -3
- package/dist/ui/atoms/FilterSelect/index.d.ts.map +1 -0
- package/dist/ui/atoms/FilterSelect/index.js +238 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +13 -16
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -1
- package/dist/ui/atoms/FilterSelect/types.js +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +14 -17
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +81 -43
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -2
- package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +83 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -7
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/Pagination.js +380 -155
- package/dist/ui/atoms/Pagination/index.d.ts +3 -3
- package/dist/ui/atoms/Pagination/index.d.ts.map +1 -0
- package/dist/ui/atoms/Pagination/index.js +381 -2
- package/dist/ui/atoms/Pagination/types.d.ts +11 -14
- package/dist/ui/atoms/Pagination/types.d.ts.map +1 -1
- package/dist/ui/atoms/Pagination/types.js +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -7
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +116 -48
- package/dist/ui/atoms/SearchInput/index.d.ts +3 -3
- package/dist/ui/atoms/SearchInput/index.d.ts.map +1 -0
- package/dist/ui/atoms/SearchInput/index.js +117 -2
- package/dist/ui/atoms/SearchInput/types.d.ts +8 -11
- package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -1
- package/dist/ui/atoms/SearchInput/types.js +1 -0
- package/dist/ui/avatar.d.ts +6 -19
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +44 -28
- package/dist/ui/badge.d.ts +7 -17
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +34 -23
- package/dist/ui/breadcrumb.d.ts +11 -37
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +94 -62
- package/dist/ui/button.d.ts +14 -18
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +46 -50
- package/dist/ui/calendar.d.ts +7 -25
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +172 -105
- package/dist/ui/card.d.ts +9 -34
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +73 -49
- package/dist/ui/carousel.d.ts +13 -41
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +215 -127
- package/dist/ui/checkbox.d.ts +3 -10
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +25 -21
- package/dist/ui/collapsible.d.ts +5 -15
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +31 -23
- package/dist/ui/command.d.ts +18 -52
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +258 -87
- package/dist/ui/confirm-dialog.d.ts +13 -29
- package/dist/ui/confirm-dialog.d.ts.map +1 -1
- package/dist/ui/confirm-dialog.js +219 -32
- package/dist/ui/context-menu.d.ts +25 -32
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +109 -71
- package/dist/ui/cta.d.ts +17 -21
- package/dist/ui/cta.d.ts.map +1 -1
- package/dist/ui/cta.js +94 -36
- package/dist/ui/date-picker.d.ts +10 -24
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +342 -98
- package/dist/ui/date-range-picker.d.ts +11 -23
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/date-range-picker.js +268 -51
- package/dist/ui/datetime-picker.d.ts +11 -26
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.js +479 -39
- package/dist/ui/dialog.d.ts +15 -47
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +122 -77
- package/dist/ui/drawer.d.ts +13 -44
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +113 -70
- package/dist/ui/dropdown-menu.d.ts +25 -77
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +191 -109
- package/dist/ui/empty-state.d.ts +13 -26
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty-state.js +201 -40
- package/dist/ui/empty.d.ts +11 -35
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +76 -53
- package/dist/ui/field.d.ts +24 -64
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +202 -107
- package/dist/ui/focus-on-route-change.d.ts +2 -7
- package/dist/ui/focus-on-route-change.d.ts.map +1 -1
- package/dist/ui/focus-on-route-change.js +18 -15
- package/dist/ui/form.d.ts +24 -44
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +141 -84
- package/dist/ui/hover-card.d.ts +6 -19
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +41 -31
- package/dist/ui/input-group.d.ts +14 -41
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +177 -79
- package/dist/ui/input-otp.d.ts +32 -36
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +47 -38
- package/dist/ui/input.d.ts +4 -12
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +14 -14
- package/dist/ui/label.d.ts +3 -10
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +18 -16
- package/dist/ui/link.d.ts +3 -7
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +14 -13
- package/dist/ui/live-region.d.ts +8 -14
- package/dist/ui/live-region.d.ts.map +1 -1
- package/dist/ui/live-region.js +47 -43
- package/dist/ui/loading-button.d.ts +7 -17
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +221 -19
- package/dist/ui/map/MapBase.d.ts +20 -25
- package/dist/ui/map/MapBase.d.ts.map +1 -1
- package/dist/ui/map/MapBase.js +62 -43
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +9 -14
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -1
- package/dist/ui/map/MapGeoJsonOverlay.js +47 -33
- package/dist/ui/map/MapHeatmapH3.d.ts +10 -15
- package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -1
- package/dist/ui/map/MapHeatmapH3.js +55 -44
- package/dist/ui/map/MapMarkers.d.ts +11 -18
- package/dist/ui/map/MapMarkers.d.ts.map +1 -1
- package/dist/ui/map/MapMarkers.js +36 -35
- package/dist/ui/map/index.d.ts +5 -5
- package/dist/ui/map/index.d.ts.map +1 -0
- package/dist/ui/map/index.js +204 -5
- package/dist/ui/marketing/FeatureGrid.d.ts +10 -19
- package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -1
- package/dist/ui/marketing/FeatureGrid.js +42 -32
- package/dist/ui/marketing/Hero.d.ts +16 -27
- package/dist/ui/marketing/Hero.d.ts.map +1 -1
- package/dist/ui/marketing/Hero.js +108 -50
- package/dist/ui/marketing/PricingTable.d.ts +15 -23
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
- package/dist/ui/marketing/PricingTable.js +119 -57
- package/dist/ui/marketing/index.d.ts +4 -4
- package/dist/ui/marketing/index.d.ts.map +1 -0
- package/dist/ui/marketing/index.js +211 -4
- package/dist/ui/menubar.d.ts +26 -84
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +223 -134
- package/dist/ui/molecules/Autocomplete/index.d.ts +1 -6
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
- package/dist/ui/molecules/Autocomplete/index.js +574 -80
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -7
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +496 -101
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -3
- package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +1 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +497 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -22
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
- package/dist/ui/molecules/SkeletonList.d.ts +5 -13
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
- package/dist/ui/molecules/SkeletonList.js +36 -12
- package/dist/ui/nav-layout.d.ts +44 -67
- package/dist/ui/nav-layout.d.ts.map +1 -1
- package/dist/ui/nav-layout.js +287 -127
- package/dist/ui/navigation-menu.d.ts +14 -46
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +113 -73
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +18 -22
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +182 -103
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +3 -2
- package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +185 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -28
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.js +1229 -196
- package/dist/ui/organisms/ListPage/index.d.ts +3 -3
- package/dist/ui/organisms/ListPage/index.d.ts.map +1 -0
- package/dist/ui/organisms/ListPage/index.js +1230 -2
- package/dist/ui/organisms/ListPage/types.d.ts +34 -38
- package/dist/ui/organisms/ListPage/types.d.ts.map +1 -1
- package/dist/ui/organisms/ListPage/types.js +1 -0
- package/dist/ui/page-header.d.ts +12 -24
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/page-header.js +198 -37
- package/dist/ui/pagination.d.ts +17 -38
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +142 -56
- package/dist/ui/popover.d.ts +7 -22
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +48 -33
- package/dist/ui/progress.d.ts +3 -11
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +24 -21
- package/dist/ui/radio-group.d.ts +4 -14
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +35 -27
- package/dist/ui/resizable.d.ts +22 -34
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +33 -22
- package/dist/ui/route-announcer.d.ts +3 -10
- package/dist/ui/route-announcer.d.ts.map +1 -1
- package/dist/ui/route-announcer.js +20 -19
- package/dist/ui/scroll-area.d.ts +4 -16
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +44 -36
- package/dist/ui/section.d.ts +20 -24
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +56 -59
- package/dist/ui/select.d.ts +15 -51
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +147 -87
- package/dist/ui/separator.d.ts +3 -12
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +22 -18
- package/dist/ui/sheet.d.ts +13 -40
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +117 -72
- package/dist/ui/sidebar.d.ts +65 -162
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +794 -372
- package/dist/ui/skeleton.d.ts +2 -9
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +22 -12
- package/dist/ui/skip-link.d.ts +6 -15
- package/dist/ui/skip-link.d.ts.map +1 -1
- package/dist/ui/skip-link.js +20 -15
- package/dist/ui/slider.d.ts +3 -14
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +42 -37
- package/dist/ui/sonner.d.ts +2 -8
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +21 -21
- package/dist/ui/stack.d.ts +40 -44
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +143 -148
- package/dist/ui/stat-card-group.d.ts +9 -17
- package/dist/ui/stat-card-group.d.ts.map +1 -1
- package/dist/ui/stat-card-group.js +255 -36
- package/dist/ui/stepper.d.ts +10 -20
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +176 -33
- package/dist/ui/switch.d.ts +5 -13
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +23 -20
- package/dist/ui/table.d.ts +10 -38
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +91 -61
- package/dist/ui/tabs.d.ts +7 -23
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +48 -34
- package/dist/ui/text.d.ts +5 -13
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +14 -13
- package/dist/ui/textarea.d.ts +4 -11
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +13 -13
- package/dist/ui/time-picker.d.ts +8 -20
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/time-picker.js +176 -76
- package/dist/ui/toast.d.ts +15 -19
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +63 -51
- package/dist/ui/toaster.d.ts +1 -6
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +212 -24
- package/dist/ui/toggle-group.d.ts +6 -22
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +85 -42
- package/dist/ui/toggle.d.ts +7 -17
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +38 -37
- package/dist/ui/tooltip.d.ts +7 -23
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +57 -34
- package/dist/ui/typography.d.ts +13 -61
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +95 -64
- package/dist/ui/use-media-query.d.ts +1 -4
- package/dist/ui/use-media-query.d.ts.map +1 -1
- package/dist/ui/use-media-query.js +18 -17
- package/dist/ui/use-mobile.d.ts +1 -4
- package/dist/ui/use-mobile.d.ts.map +1 -1
- package/dist/ui/use-mobile.js +19 -18
- package/dist/ui/use-reduced-motion.d.ts +1 -4
- package/dist/ui/use-reduced-motion.d.ts.map +1 -1
- package/dist/ui/use-reduced-motion.js +16 -15
- package/dist/ui/use-toast.d.ts +28 -33
- package/dist/ui/use-toast.d.ts.map +1 -1
- package/dist/ui/use-toast.js +113 -111
- package/dist/ui/useListState.d.ts +23 -31
- package/dist/ui/useListState.d.ts.map +1 -1
- package/dist/ui/useListState.js +69 -73
- package/dist/ui/usecases/UseCaseCard.d.ts +7 -18
- package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.js +225 -33
- package/dist/ui/usecases/UserStoryCard.d.ts +5 -14
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/dist/ui/usecases/UserStoryCard.js +179 -34
- package/dist/ui/usecases/index.d.ts +3 -3
- package/dist/ui/usecases/index.d.ts.map +1 -0
- package/dist/ui/usecases/index.js +261 -3
- package/dist/ui/utils.d.ts +2 -6
- package/dist/ui/utils.d.ts.map +1 -1
- package/dist/ui/utils.js +8 -7
- package/dist/ui/visually-hidden.d.ts +5 -8
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +26 -27
- package/package.json +874 -238
- package/dist/ui/accordion.js.map +0 -1
- package/dist/ui/alert-dialog.js.map +0 -1
- package/dist/ui/alert.js.map +0 -1
- package/dist/ui/aspect-ratio.js.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui/avatar.js.map +0 -1
- package/dist/ui/badge.js.map +0 -1
- package/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui/button.js.map +0 -1
- package/dist/ui/calendar.js.map +0 -1
- package/dist/ui/card.js.map +0 -1
- package/dist/ui/carousel.js.map +0 -1
- package/dist/ui/checkbox.js.map +0 -1
- package/dist/ui/collapsible.js.map +0 -1
- package/dist/ui/command.js.map +0 -1
- package/dist/ui/confirm-dialog.js.map +0 -1
- package/dist/ui/context-menu.js.map +0 -1
- package/dist/ui/cta.js.map +0 -1
- package/dist/ui/date-picker.js.map +0 -1
- package/dist/ui/date-range-picker.js.map +0 -1
- package/dist/ui/datetime-picker.js.map +0 -1
- package/dist/ui/dialog.js.map +0 -1
- package/dist/ui/drawer.js.map +0 -1
- package/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui/empty-state.js.map +0 -1
- package/dist/ui/empty.js.map +0 -1
- package/dist/ui/field.js.map +0 -1
- package/dist/ui/focus-on-route-change.js.map +0 -1
- package/dist/ui/form.js.map +0 -1
- package/dist/ui/hover-card.js.map +0 -1
- package/dist/ui/input-group.js.map +0 -1
- package/dist/ui/input-otp.js.map +0 -1
- package/dist/ui/input.js.map +0 -1
- package/dist/ui/label.js.map +0 -1
- package/dist/ui/link.js.map +0 -1
- package/dist/ui/live-region.js.map +0 -1
- package/dist/ui/loading-button.js.map +0 -1
- package/dist/ui/map/MapBase.js.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.js.map +0 -1
- package/dist/ui/map/MapHeatmapH3.js.map +0 -1
- package/dist/ui/map/MapMarkers.js.map +0 -1
- package/dist/ui/marketing/FeatureGrid.js.map +0 -1
- package/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui/menubar.js.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
- package/dist/ui/molecules/SkeletonList.js.map +0 -1
- package/dist/ui/nav-layout.js.map +0 -1
- package/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui/page-header.js.map +0 -1
- package/dist/ui/pagination.js.map +0 -1
- package/dist/ui/popover.js.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/radio-group.js.map +0 -1
- package/dist/ui/resizable.js.map +0 -1
- package/dist/ui/route-announcer.js.map +0 -1
- package/dist/ui/scroll-area.js.map +0 -1
- package/dist/ui/section.js.map +0 -1
- package/dist/ui/select.js.map +0 -1
- package/dist/ui/separator.js.map +0 -1
- package/dist/ui/sheet.js.map +0 -1
- package/dist/ui/sidebar.js.map +0 -1
- package/dist/ui/skeleton.js.map +0 -1
- package/dist/ui/skip-link.js.map +0 -1
- package/dist/ui/slider.js.map +0 -1
- package/dist/ui/sonner.js.map +0 -1
- package/dist/ui/stack.js.map +0 -1
- package/dist/ui/stat-card-group.js.map +0 -1
- package/dist/ui/stepper.js.map +0 -1
- package/dist/ui/switch.js.map +0 -1
- package/dist/ui/table.js.map +0 -1
- package/dist/ui/tabs.js.map +0 -1
- package/dist/ui/text.js.map +0 -1
- package/dist/ui/textarea.js.map +0 -1
- package/dist/ui/time-picker.js.map +0 -1
- package/dist/ui/toast.js.map +0 -1
- package/dist/ui/toaster.js.map +0 -1
- package/dist/ui/toggle-group.js.map +0 -1
- package/dist/ui/toggle.js.map +0 -1
- package/dist/ui/tooltip.js.map +0 -1
- package/dist/ui/typography.js.map +0 -1
- package/dist/ui/use-media-query.js.map +0 -1
- package/dist/ui/use-mobile.js.map +0 -1
- package/dist/ui/use-reduced-motion.js.map +0 -1
- package/dist/ui/use-toast.js.map +0 -1
- package/dist/ui/useListState.js.map +0 -1
- package/dist/ui/usecases/UseCaseCard.js.map +0 -1
- package/dist/ui/usecases/UserStoryCard.js.map +0 -1
- package/dist/ui/utils.js.map +0 -1
- package/dist/ui/visually-hidden.js.map +0 -1
package/dist/ui/text.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region ui/text.d.ts
|
|
5
|
-
type TextProps = React$1.ComponentPropsWithoutRef<'p'> & {
|
|
6
|
-
asChild?: boolean;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type TextProps = React.ComponentPropsWithoutRef<'p'> & {
|
|
3
|
+
asChild?: boolean;
|
|
7
4
|
};
|
|
8
|
-
declare function Text({
|
|
9
|
-
|
|
10
|
-
asChild,
|
|
11
|
-
...props
|
|
12
|
-
}: TextProps): react_jsx_runtime192.JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Text, TextProps };
|
|
5
|
+
declare function Text({ className, asChild, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Text };
|
|
15
7
|
//# sourceMappingURL=text.d.ts.map
|
package/dist/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../ui/text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,OAAe,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAQhE;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/ui/text.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
5
3
|
|
|
6
|
-
|
|
4
|
+
// ui/text.tsx
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
7
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
7
8
|
function Text({ className, asChild = false, ...props }) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const Component = asChild ? Slot : "p";
|
|
10
|
+
return /* @__PURE__ */ jsxDEV(Component, {
|
|
11
|
+
className: cn("text-foreground web:select-text text-base", className),
|
|
12
|
+
...props
|
|
13
|
+
}, undefined, false, undefined, this);
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=text.js.map
|
|
15
|
+
export {
|
|
16
|
+
Text
|
|
17
|
+
};
|
package/dist/ui/textarea.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type TextareaProps = React$1.ComponentPropsWithoutRef<'textarea'>;
|
|
6
|
-
declare function Textarea({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: TextareaProps): react_jsx_runtime244.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Textarea, TextareaProps };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type TextareaProps = React.ComponentPropsWithoutRef<'textarea'>;
|
|
3
|
+
declare function Textarea({ className, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Textarea };
|
|
12
5
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;AAEvE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAWvD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/ui/textarea.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// ui/textarea.tsx
|
|
5
|
+
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
7
|
function Textarea({ className, ...props }) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return /* @__PURE__ */ jsxDEV("textarea", {
|
|
9
|
+
"data-slot": "textarea",
|
|
10
|
+
className: cn("aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
|
|
11
|
+
...props
|
|
12
|
+
}, undefined, false, undefined, this);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=textarea.js.map
|
|
14
|
+
export {
|
|
15
|
+
Textarea
|
|
16
|
+
};
|
package/dist/ui/time-picker.d.ts
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
is24Hour?: boolean;
|
|
10
|
-
className?: string;
|
|
1
|
+
export interface TimePickerProps {
|
|
2
|
+
value: Date | null;
|
|
3
|
+
onChange: (date: Date | null) => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
is24Hour?: boolean;
|
|
7
|
+
className?: string;
|
|
11
8
|
}
|
|
12
|
-
declare function TimePicker({
|
|
13
|
-
value,
|
|
14
|
-
onChange,
|
|
15
|
-
disabled,
|
|
16
|
-
placeholder,
|
|
17
|
-
is24Hour,
|
|
18
|
-
className
|
|
19
|
-
}: TimePickerProps): react_jsx_runtime68.JSX.Element;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { TimePicker, TimePickerProps };
|
|
9
|
+
export declare function TimePicker({ value, onChange, disabled, placeholder, is24Hour, className, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
22
10
|
//# sourceMappingURL=time-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-picker.d.ts","
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../ui/time-picker.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAWD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAA2B,EAC3B,QAAe,EACf,SAAS,GACV,EAAE,eAAe,2CAkEjB"}
|
package/dist/ui/time-picker.js
CHANGED
|
@@ -1,81 +1,181 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
// ui/button.tsx
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
6
8
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
10
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-hidden focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
14
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
15
|
+
outline: "border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
16
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
17
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
18
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
22
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
23
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
24
|
+
icon: "size-9"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
33
|
+
if (asChild) {
|
|
34
|
+
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
35
|
+
"data-slot": "button",
|
|
36
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
37
|
+
...props
|
|
38
|
+
}, undefined, false, undefined, this);
|
|
39
|
+
}
|
|
40
|
+
return /* @__PURE__ */ jsxDEV("button", {
|
|
41
|
+
ref,
|
|
42
|
+
"data-slot": "button",
|
|
43
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
44
|
+
...props
|
|
45
|
+
}, undefined, false, undefined, this);
|
|
46
|
+
});
|
|
47
|
+
Button.displayName = "Button";
|
|
48
|
+
// ui/popover.tsx
|
|
49
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
50
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
51
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
52
|
+
"use client";
|
|
53
|
+
function Popover({
|
|
54
|
+
...props
|
|
55
|
+
}) {
|
|
56
|
+
return /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Root, {
|
|
57
|
+
"data-slot": "popover",
|
|
58
|
+
...props
|
|
59
|
+
}, undefined, false, undefined, this);
|
|
60
|
+
}
|
|
61
|
+
function PopoverTrigger({
|
|
62
|
+
...props
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Trigger, {
|
|
65
|
+
"data-slot": "popover-trigger",
|
|
66
|
+
...props
|
|
67
|
+
}, undefined, false, undefined, this);
|
|
68
|
+
}
|
|
69
|
+
function PopoverContent({
|
|
70
|
+
className,
|
|
71
|
+
align = "center",
|
|
72
|
+
sideOffset = 4,
|
|
73
|
+
...props
|
|
74
|
+
}) {
|
|
75
|
+
return /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Portal, {
|
|
76
|
+
children: /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Content, {
|
|
77
|
+
"data-slot": "popover-content",
|
|
78
|
+
align,
|
|
79
|
+
sideOffset,
|
|
80
|
+
className: cn2("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
|
|
81
|
+
...props
|
|
82
|
+
}, undefined, false, undefined, this)
|
|
83
|
+
}, undefined, false, undefined, this);
|
|
84
|
+
}
|
|
85
|
+
function PopoverAnchor({
|
|
86
|
+
...props
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Anchor, {
|
|
89
|
+
"data-slot": "popover-anchor",
|
|
90
|
+
...props
|
|
91
|
+
}, undefined, false, undefined, this);
|
|
92
|
+
}
|
|
93
|
+
// ui/time-picker.tsx
|
|
94
|
+
import * as React2 from "react";
|
|
95
|
+
import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
|
|
96
|
+
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
97
|
+
"use client";
|
|
10
98
|
function formatTime(d, is24Hour) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
99
|
+
if (!d)
|
|
100
|
+
return "";
|
|
101
|
+
return d.toLocaleTimeString([], {
|
|
102
|
+
hour: "2-digit",
|
|
103
|
+
minute: "2-digit",
|
|
104
|
+
hour12: !is24Hour
|
|
105
|
+
});
|
|
17
106
|
}
|
|
18
|
-
function TimePicker({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
107
|
+
function TimePicker({
|
|
108
|
+
value,
|
|
109
|
+
onChange,
|
|
110
|
+
disabled,
|
|
111
|
+
placeholder = "Select time",
|
|
112
|
+
is24Hour = true,
|
|
113
|
+
className
|
|
114
|
+
}) {
|
|
115
|
+
const [open, setOpen] = React2.useState(false);
|
|
116
|
+
const [hours, setHours] = React2.useState(() => value ? String(value.getHours()).padStart(2, "0") : "");
|
|
117
|
+
const [minutes, setMinutes] = React2.useState(() => value ? String(value.getMinutes()).padStart(2, "0") : "");
|
|
118
|
+
const commit = (h, m) => {
|
|
119
|
+
const base = value ?? new Date;
|
|
120
|
+
const next = new Date(base);
|
|
121
|
+
next.setHours(h, m, 0, 0);
|
|
122
|
+
onChange(next);
|
|
123
|
+
setOpen(false);
|
|
124
|
+
};
|
|
125
|
+
return /* @__PURE__ */ jsxDEV3(Popover, {
|
|
126
|
+
open,
|
|
127
|
+
onOpenChange: setOpen,
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ jsxDEV3(PopoverTrigger, {
|
|
130
|
+
asChild: true,
|
|
131
|
+
children: /* @__PURE__ */ jsxDEV3(Button, {
|
|
132
|
+
type: "button",
|
|
133
|
+
variant: "outline",
|
|
134
|
+
disabled,
|
|
135
|
+
className: cn3("w-full justify-start text-left font-normal", className),
|
|
136
|
+
children: value ? formatTime(value, is24Hour) : /* @__PURE__ */ jsxDEV3("span", {
|
|
137
|
+
className: "opacity-50",
|
|
138
|
+
children: placeholder
|
|
139
|
+
}, undefined, false, undefined, this)
|
|
140
|
+
}, undefined, false, undefined, this)
|
|
141
|
+
}, undefined, false, undefined, this),
|
|
142
|
+
/* @__PURE__ */ jsxDEV3(PopoverContent, {
|
|
143
|
+
className: "w-56",
|
|
144
|
+
align: "start",
|
|
145
|
+
children: /* @__PURE__ */ jsxDEV3("div", {
|
|
146
|
+
className: "flex items-center gap-2",
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsxDEV3("input", {
|
|
149
|
+
type: "number",
|
|
150
|
+
min: 0,
|
|
151
|
+
max: is24Hour ? 23 : 12,
|
|
152
|
+
value: hours,
|
|
153
|
+
onChange: (e) => setHours(e.target.value),
|
|
154
|
+
className: "border-input bg-background w-16 rounded-md border px-2 py-1 text-center"
|
|
155
|
+
}, undefined, false, undefined, this),
|
|
156
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
157
|
+
children: ":"
|
|
158
|
+
}, undefined, false, undefined, this),
|
|
159
|
+
/* @__PURE__ */ jsxDEV3("input", {
|
|
160
|
+
type: "number",
|
|
161
|
+
min: 0,
|
|
162
|
+
max: 59,
|
|
163
|
+
value: minutes,
|
|
164
|
+
onChange: (e) => setMinutes(e.target.value),
|
|
165
|
+
className: "border-input bg-background w-16 rounded-md border px-2 py-1 text-center"
|
|
166
|
+
}, undefined, false, undefined, this),
|
|
167
|
+
/* @__PURE__ */ jsxDEV3(Button, {
|
|
168
|
+
type: "button",
|
|
169
|
+
onClick: () => commit(Number(hours || 0), Number(minutes || 0)),
|
|
170
|
+
className: "ml-auto",
|
|
171
|
+
children: "Set"
|
|
172
|
+
}, undefined, false, undefined, this)
|
|
173
|
+
]
|
|
174
|
+
}, undefined, true, undefined, this)
|
|
175
|
+
}, undefined, false, undefined, this)
|
|
176
|
+
]
|
|
177
|
+
}, undefined, true, undefined, this);
|
|
77
178
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
//# sourceMappingURL=time-picker.js.map
|
|
179
|
+
export {
|
|
180
|
+
TimePicker
|
|
181
|
+
};
|
package/dist/ui/toast.d.ts
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast>;
|
|
17
|
-
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
|
+
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
|
+
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
7
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
14
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
15
|
+
export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
|
|
20
16
|
//# sourceMappingURL=toast.d.ts.map
|
package/dist/ui/toast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../ui/toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAmBH,QAAA,MAAM,KAAK;;qHAYT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAYf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAed,CAAC;AAGH,QAAA,MAAM,UAAU,2JASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKASpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,CAAC"}
|
package/dist/ui/toast.js
CHANGED
|
@@ -1,62 +1,74 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
var __require = import.meta.require;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
// ui/toast.tsx
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
4
8
|
import { X } from "lucide-react";
|
|
5
9
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
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),
|
|
15
|
-
...props
|
|
16
|
-
}));
|
|
10
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
11
|
+
"use client";
|
|
12
|
+
var ToastProvider = ToastPrimitives.Provider;
|
|
13
|
+
var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
|
|
14
|
+
ref,
|
|
15
|
+
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),
|
|
16
|
+
...props
|
|
17
|
+
}, undefined, false, undefined, this));
|
|
17
18
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
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", {
|
|
20
|
+
variants: {
|
|
21
|
+
variant: {
|
|
22
|
+
default: "border bg-background text-foreground",
|
|
23
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default"
|
|
28
|
+
}
|
|
24
29
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
|
|
31
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
|
|
32
|
+
ref,
|
|
33
|
+
className: cn(toastVariants({ variant }), className),
|
|
34
|
+
...props
|
|
35
|
+
}, undefined, false, undefined, this);
|
|
31
36
|
});
|
|
32
37
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}));
|
|
38
|
+
var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
|
|
39
|
+
ref,
|
|
40
|
+
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),
|
|
41
|
+
...props
|
|
42
|
+
}, undefined, false, undefined, this));
|
|
38
43
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
|
|
45
|
+
ref,
|
|
46
|
+
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),
|
|
47
|
+
"toast-close": "",
|
|
48
|
+
...props,
|
|
49
|
+
children: /* @__PURE__ */ jsxDEV(X, {
|
|
50
|
+
className: "h-4 w-4"
|
|
51
|
+
}, undefined, false, undefined, this)
|
|
52
|
+
}, undefined, false, undefined, this));
|
|
46
53
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}));
|
|
54
|
+
var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
|
|
55
|
+
ref,
|
|
56
|
+
className: cn("text-base font-semibold", className),
|
|
57
|
+
...props
|
|
58
|
+
}, undefined, false, undefined, this));
|
|
52
59
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}));
|
|
60
|
+
var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
|
|
61
|
+
ref,
|
|
62
|
+
className: cn("text-base opacity-90", className),
|
|
63
|
+
...props
|
|
64
|
+
}, undefined, false, undefined, this));
|
|
58
65
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
export {
|
|
67
|
+
ToastViewport,
|
|
68
|
+
ToastTitle,
|
|
69
|
+
ToastProvider,
|
|
70
|
+
ToastDescription,
|
|
71
|
+
ToastClose,
|
|
72
|
+
ToastAction,
|
|
73
|
+
Toast
|
|
74
|
+
};
|
package/dist/ui/toaster.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region ui/toaster.d.ts
|
|
4
|
-
declare function Toaster(): react_jsx_runtime69.JSX.Element;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { Toaster };
|
|
1
|
+
export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
7
2
|
//# sourceMappingURL=toaster.d.ts.map
|
package/dist/ui/toaster.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.d.ts","
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../ui/toaster.tsx"],"names":[],"mappings":"AAYA,wBAAgB,OAAO,4CAsBtB"}
|