@contractspec/lib.ui-kit-web 1.61.0 → 2.0.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/ui/alert-dialog.js +9 -4
- package/dist/browser/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/browser/ui/atoms/Pagination/index.js +9 -4
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/browser/ui/atoms/SearchInput/index.js +9 -4
- package/dist/browser/ui/button.js +9 -4
- package/dist/browser/ui/calendar.js +12 -7
- package/dist/browser/ui/carousel.js +20 -15
- package/dist/browser/ui/confirm-dialog.js +9 -4
- package/dist/browser/ui/context-menu.js +178 -85
- package/dist/browser/ui/cta.js +13 -9
- package/dist/browser/ui/date-picker.js +17 -12
- package/dist/browser/ui/date-range-picker.js +14 -9
- package/dist/browser/ui/datetime-picker.js +21 -16
- package/dist/browser/ui/empty-state.js +32 -10
- package/dist/browser/ui/input-group.js +9 -4
- package/dist/browser/ui/input-otp.js +37 -18
- package/dist/browser/ui/link.js +6 -4
- package/dist/browser/ui/loading-button.js +41 -14
- package/dist/browser/ui/marketing/Hero.js +9 -4
- package/dist/browser/ui/marketing/PricingTable.js +9 -4
- package/dist/browser/ui/marketing/index.js +9 -4
- package/dist/browser/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/browser/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/browser/ui/organisms/ListPage/index.js +41 -14
- package/dist/browser/ui/page-header.js +32 -10
- package/dist/browser/ui/pagination.js +98 -79
- package/dist/browser/ui/resizable.js +6 -9
- package/dist/browser/ui/section.js +12 -4
- package/dist/browser/ui/sidebar.js +22 -17
- package/dist/browser/ui/stack.js +32 -10
- package/dist/browser/ui/stat-card-group.js +32 -10
- package/dist/browser/ui/stepper.js +32 -10
- package/dist/browser/ui/time-picker.js +13 -8
- package/dist/browser/ui/toast.js +57 -29
- package/dist/browser/ui/toaster.js +60 -32
- package/dist/browser/ui/usecases/UseCaseCard.js +41 -14
- package/dist/browser/ui/usecases/UserStoryCard.js +32 -10
- package/dist/browser/ui/usecases/index.js +41 -14
- package/dist/browser/ui/visually-hidden.js +8 -4
- package/dist/index.d.ts +0 -1
- package/dist/ui/accordion.d.ts +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -1
- package/dist/ui/alert-dialog.js +9 -4
- package/dist/ui/alert.d.ts +0 -1
- package/dist/ui/aspect-ratio.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/ui/atoms/Pagination/index.d.ts +0 -1
- package/dist/ui/atoms/Pagination/index.js +9 -4
- package/dist/ui/atoms/Pagination/types.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/index.js +9 -4
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -1
- package/dist/ui/avatar.d.ts +0 -1
- package/dist/ui/badge.d.ts +0 -1
- package/dist/ui/breadcrumb.d.ts +0 -1
- package/dist/ui/button.d.ts +2 -7
- package/dist/ui/button.js +9 -4
- package/dist/ui/calendar.d.ts +0 -1
- package/dist/ui/calendar.js +12 -7
- package/dist/ui/card.d.ts +0 -1
- package/dist/ui/carousel.d.ts +0 -1
- package/dist/ui/carousel.js +20 -15
- package/dist/ui/checkbox.d.ts +0 -1
- package/dist/ui/collapsible.d.ts +0 -1
- package/dist/ui/command.d.ts +0 -1
- package/dist/ui/confirm-dialog.d.ts +0 -1
- package/dist/ui/confirm-dialog.js +9 -4
- package/dist/ui/context-menu.d.ts +26 -23
- package/dist/ui/context-menu.js +178 -85
- package/dist/ui/cta.d.ts +2 -9
- package/dist/ui/cta.js +13 -9
- package/dist/ui/date-picker.d.ts +0 -1
- package/dist/ui/date-picker.js +17 -12
- package/dist/ui/date-range-picker.d.ts +0 -1
- package/dist/ui/date-range-picker.js +14 -9
- package/dist/ui/datetime-picker.d.ts +0 -1
- package/dist/ui/datetime-picker.js +21 -16
- package/dist/ui/dialog.d.ts +0 -1
- package/dist/ui/drawer.d.ts +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -1
- package/dist/ui/empty-state.d.ts +0 -1
- package/dist/ui/empty-state.js +32 -10
- package/dist/ui/empty.d.ts +0 -1
- package/dist/ui/field.d.ts +0 -1
- package/dist/ui/focus-on-route-change.d.ts +0 -1
- package/dist/ui/form.d.ts +0 -1
- package/dist/ui/hover-card.d.ts +0 -1
- package/dist/ui/input-group.d.ts +0 -1
- package/dist/ui/input-group.js +9 -4
- package/dist/ui/input-otp.d.ts +13 -32
- package/dist/ui/input-otp.js +37 -18
- package/dist/ui/input.d.ts +0 -1
- package/dist/ui/label.d.ts +0 -1
- package/dist/ui/link.d.ts +4 -3
- package/dist/ui/link.js +6 -4
- package/dist/ui/live-region.d.ts +0 -1
- package/dist/ui/loading-button.d.ts +0 -1
- package/dist/ui/loading-button.js +41 -14
- package/dist/ui/map/MapBase.d.ts +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -1
- package/dist/ui/map/MapHeatmapH3.d.ts +0 -1
- package/dist/ui/map/MapMarkers.d.ts +0 -1
- package/dist/ui/map/index.d.ts +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -1
- package/dist/ui/marketing/Hero.d.ts +0 -1
- package/dist/ui/marketing/Hero.js +9 -4
- package/dist/ui/marketing/PricingTable.d.ts +0 -1
- package/dist/ui/marketing/PricingTable.js +9 -4
- package/dist/ui/marketing/index.d.ts +0 -1
- package/dist/ui/marketing/index.js +9 -4
- package/dist/ui/menubar.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -1
- package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts +0 -1
- package/dist/ui/nav-layout.d.ts +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/ui/organisms/ListPage/index.d.ts +0 -1
- package/dist/ui/organisms/ListPage/index.js +41 -14
- package/dist/ui/organisms/ListPage/types.d.ts +0 -1
- package/dist/ui/page-header.d.ts +0 -1
- package/dist/ui/page-header.js +32 -10
- package/dist/ui/pagination.d.ts +11 -23
- package/dist/ui/pagination.js +98 -79
- package/dist/ui/popover.d.ts +0 -1
- package/dist/ui/progress.d.ts +0 -1
- package/dist/ui/radio-group.d.ts +0 -1
- package/dist/ui/resizable.d.ts +5 -21
- package/dist/ui/resizable.js +6 -9
- package/dist/ui/route-announcer.d.ts +0 -1
- package/dist/ui/scroll-area.d.ts +0 -1
- package/dist/ui/section.d.ts +2 -10
- package/dist/ui/section.js +12 -4
- package/dist/ui/select.d.ts +0 -1
- package/dist/ui/separator.d.ts +0 -1
- package/dist/ui/sheet.d.ts +0 -1
- package/dist/ui/sidebar.d.ts +0 -1
- package/dist/ui/sidebar.js +22 -17
- package/dist/ui/skeleton.d.ts +0 -1
- package/dist/ui/skip-link.d.ts +0 -1
- package/dist/ui/slider.d.ts +0 -1
- package/dist/ui/sonner.d.ts +0 -1
- package/dist/ui/stack.d.ts +15 -24
- package/dist/ui/stack.js +32 -10
- package/dist/ui/stat-card-group.d.ts +0 -1
- package/dist/ui/stat-card-group.js +32 -10
- package/dist/ui/stepper.d.ts +0 -1
- package/dist/ui/stepper.js +32 -10
- package/dist/ui/switch.d.ts +0 -1
- package/dist/ui/table.d.ts +0 -1
- package/dist/ui/tabs.d.ts +0 -1
- package/dist/ui/text.d.ts +0 -1
- package/dist/ui/textarea.d.ts +0 -1
- package/dist/ui/time-picker.d.ts +0 -1
- package/dist/ui/time-picker.js +13 -8
- package/dist/ui/toast.d.ts +20 -8
- package/dist/ui/toast.js +57 -29
- package/dist/ui/toaster.d.ts +0 -1
- package/dist/ui/toaster.js +60 -32
- package/dist/ui/toggle-group.d.ts +0 -1
- package/dist/ui/toggle.d.ts +0 -1
- package/dist/ui/tooltip.d.ts +0 -1
- package/dist/ui/typography.d.ts +0 -1
- package/dist/ui/use-media-query.d.ts +0 -1
- package/dist/ui/use-mobile.d.ts +0 -1
- package/dist/ui/use-reduced-motion.d.ts +0 -1
- package/dist/ui/use-toast.d.ts +0 -1
- package/dist/ui/useListState.d.ts +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -1
- package/dist/ui/usecases/UseCaseCard.js +41 -14
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -1
- package/dist/ui/usecases/UserStoryCard.js +32 -10
- package/dist/ui/usecases/index.d.ts +0 -1
- package/dist/ui/usecases/index.js +41 -14
- package/dist/ui/utils.d.ts +0 -1
- package/dist/ui/visually-hidden.d.ts +4 -3
- package/dist/ui/visually-hidden.js +8 -4
- package/package.json +13 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/alert.d.ts.map +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/index.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/index.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/types.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/index.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/types.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/breadcrumb.d.ts.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/calendar.d.ts.map +0 -1
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/carousel.d.ts.map +0 -1
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/collapsible.d.ts.map +0 -1
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/ui/context-menu.d.ts.map +0 -1
- package/dist/ui/cta.d.ts.map +0 -1
- package/dist/ui/date-picker.d.ts.map +0 -1
- package/dist/ui/date-range-picker.d.ts.map +0 -1
- package/dist/ui/datetime-picker.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/drawer.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/empty-state.d.ts.map +0 -1
- package/dist/ui/empty.d.ts.map +0 -1
- package/dist/ui/field.d.ts.map +0 -1
- package/dist/ui/focus-on-route-change.d.ts.map +0 -1
- package/dist/ui/form.d.ts.map +0 -1
- package/dist/ui/hover-card.d.ts.map +0 -1
- package/dist/ui/input-group.d.ts.map +0 -1
- package/dist/ui/input-otp.d.ts.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/link.d.ts.map +0 -1
- package/dist/ui/live-region.d.ts.map +0 -1
- package/dist/ui/loading-button.d.ts.map +0 -1
- package/dist/ui/map/MapBase.d.ts.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +0 -1
- package/dist/ui/map/MapHeatmapH3.d.ts.map +0 -1
- package/dist/ui/map/MapMarkers.d.ts.map +0 -1
- package/dist/ui/map/index.d.ts.map +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts.map +0 -1
- package/dist/ui/marketing/Hero.d.ts.map +0 -1
- package/dist/ui/marketing/PricingTable.d.ts.map +0 -1
- package/dist/ui/marketing/index.d.ts.map +0 -1
- package/dist/ui/menubar.d.ts.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts.map +0 -1
- package/dist/ui/nav-layout.d.ts.map +0 -1
- package/dist/ui/navigation-menu.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/index.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/types.d.ts.map +0 -1
- package/dist/ui/page-header.d.ts.map +0 -1
- package/dist/ui/pagination.d.ts.map +0 -1
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/radio-group.d.ts.map +0 -1
- package/dist/ui/resizable.d.ts.map +0 -1
- package/dist/ui/route-announcer.d.ts.map +0 -1
- package/dist/ui/scroll-area.d.ts.map +0 -1
- package/dist/ui/section.d.ts.map +0 -1
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/sidebar.d.ts.map +0 -1
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/skip-link.d.ts.map +0 -1
- package/dist/ui/slider.d.ts.map +0 -1
- package/dist/ui/sonner.d.ts.map +0 -1
- package/dist/ui/stack.d.ts.map +0 -1
- package/dist/ui/stat-card-group.d.ts.map +0 -1
- package/dist/ui/stepper.d.ts.map +0 -1
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/text.d.ts.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/time-picker.d.ts.map +0 -1
- package/dist/ui/toast.d.ts.map +0 -1
- package/dist/ui/toaster.d.ts.map +0 -1
- package/dist/ui/toggle-group.d.ts.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/typography.d.ts.map +0 -1
- package/dist/ui/use-media-query.d.ts.map +0 -1
- package/dist/ui/use-mobile.d.ts.map +0 -1
- package/dist/ui/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/use-toast.d.ts.map +0 -1
- package/dist/ui/useListState.d.ts.map +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts.map +0 -1
- package/dist/ui/usecases/UserStoryCard.d.ts.map +0 -1
- package/dist/ui/usecases/index.d.ts.map +0 -1
- package/dist/ui/utils.d.ts.map +0 -1
- package/dist/ui/visually-hidden.d.ts.map +0 -1
package/dist/ui/toaster.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// ui/toast.tsx
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
8
7
|
import { X } from "lucide-react";
|
|
@@ -10,12 +9,17 @@ import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
|
10
9
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
11
10
|
"use client";
|
|
12
11
|
var ToastProvider = ToastPrimitives.Provider;
|
|
13
|
-
|
|
12
|
+
function ToastViewport({
|
|
13
|
+
className,
|
|
14
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
15
|
...props
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
|
|
18
|
+
ref,
|
|
19
|
+
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),
|
|
20
|
+
...props
|
|
21
|
+
}, undefined, false, undefined, this);
|
|
22
|
+
}
|
|
19
23
|
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
24
|
variants: {
|
|
21
25
|
variant: {
|
|
@@ -27,44 +31,68 @@ var toastVariants = cva("group pointer-events-auto relative flex w-full items-ce
|
|
|
27
31
|
variant: "default"
|
|
28
32
|
}
|
|
29
33
|
});
|
|
30
|
-
|
|
34
|
+
function Toast({
|
|
35
|
+
className,
|
|
36
|
+
variant,
|
|
37
|
+
ref,
|
|
38
|
+
...props
|
|
39
|
+
}) {
|
|
31
40
|
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
|
|
32
41
|
ref,
|
|
33
42
|
className: cn(toastVariants({ variant }), className),
|
|
34
43
|
...props
|
|
35
44
|
}, undefined, false, undefined, this);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
}
|
|
46
|
+
function ToastAction({
|
|
47
|
+
className,
|
|
39
48
|
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
49
|
...props
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
|
|
52
|
+
ref,
|
|
53
|
+
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),
|
|
54
|
+
...props
|
|
55
|
+
}, undefined, false, undefined, this);
|
|
56
|
+
}
|
|
57
|
+
function ToastClose({
|
|
58
|
+
className,
|
|
45
59
|
ref,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
className: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
...props
|
|
61
|
+
}) {
|
|
62
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
|
|
63
|
+
ref,
|
|
64
|
+
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),
|
|
65
|
+
"toast-close": "",
|
|
66
|
+
...props,
|
|
67
|
+
children: /* @__PURE__ */ jsxDEV(X, {
|
|
68
|
+
className: "h-4 w-4"
|
|
69
|
+
}, undefined, false, undefined, this)
|
|
70
|
+
}, undefined, false, undefined, this);
|
|
71
|
+
}
|
|
72
|
+
function ToastTitle({
|
|
73
|
+
className,
|
|
55
74
|
ref,
|
|
56
|
-
className: cn("text-base font-semibold", className),
|
|
57
75
|
...props
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
|
|
78
|
+
ref,
|
|
79
|
+
className: cn("text-base font-semibold", className),
|
|
80
|
+
...props
|
|
81
|
+
}, undefined, false, undefined, this);
|
|
82
|
+
}
|
|
83
|
+
function ToastDescription({
|
|
84
|
+
className,
|
|
61
85
|
ref,
|
|
62
|
-
className: cn("text-base opacity-90", className),
|
|
63
86
|
...props
|
|
64
|
-
}
|
|
65
|
-
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
|
|
89
|
+
ref,
|
|
90
|
+
className: cn("text-base opacity-90", className),
|
|
91
|
+
...props
|
|
92
|
+
}, undefined, false, undefined, this);
|
|
93
|
+
}
|
|
66
94
|
// ui/use-toast.ts
|
|
67
|
-
import * as
|
|
95
|
+
import * as React from "react";
|
|
68
96
|
"use client";
|
|
69
97
|
var TOAST_LIMIT = 1;
|
|
70
98
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
@@ -163,8 +191,8 @@ function toast({ ...props }) {
|
|
|
163
191
|
};
|
|
164
192
|
}
|
|
165
193
|
function useToast() {
|
|
166
|
-
const [state, setState] =
|
|
167
|
-
|
|
194
|
+
const [state, setState] = React.useState(memoryState);
|
|
195
|
+
React.useEffect(() => {
|
|
168
196
|
listeners.push(setState);
|
|
169
197
|
return () => {
|
|
170
198
|
const index = listeners.indexOf(setState);
|
|
@@ -5,4 +5,3 @@ import { toggleVariants } from './toggle';
|
|
|
5
5
|
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { ToggleGroup, ToggleGroupItem };
|
|
8
|
-
//# sourceMappingURL=toggle-group.d.ts.map
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ declare const toggleVariants: (props?: ({
|
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Toggle, toggleVariants };
|
|
10
|
-
//# sourceMappingURL=toggle.d.ts.map
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimit
|
|
|
5
5
|
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
8
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
package/dist/ui/typography.d.ts
CHANGED
|
@@ -14,4 +14,3 @@ declare function Large({ className, asChild, ...props }: TypographyProps): impor
|
|
|
14
14
|
declare function Small({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare function Muted({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };
|
|
17
|
-
//# sourceMappingURL=typography.d.ts.map
|
package/dist/ui/use-mobile.d.ts
CHANGED
package/dist/ui/use-toast.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// ui/button.tsx
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
8
7
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
29
28
|
size: "default"
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
|
-
|
|
31
|
+
function Button({
|
|
32
|
+
className,
|
|
33
|
+
variant,
|
|
34
|
+
size,
|
|
35
|
+
asChild = false,
|
|
36
|
+
ref,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
33
39
|
if (asChild) {
|
|
34
40
|
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
35
41
|
"data-slot": "button",
|
|
@@ -43,10 +49,8 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
|
|
|
43
49
|
className: cn(buttonVariants({ variant, size, className })),
|
|
44
50
|
...props
|
|
45
51
|
}, undefined, false, undefined, this);
|
|
46
|
-
}
|
|
47
|
-
Button.displayName = "Button";
|
|
52
|
+
}
|
|
48
53
|
// ui/stack.tsx
|
|
49
|
-
import * as React2 from "react";
|
|
50
54
|
import { cva as cva2 } from "class-variance-authority";
|
|
51
55
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
52
56
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
@@ -82,15 +86,22 @@ var vStackVariants = cva2("flex flex-col", {
|
|
|
82
86
|
justify: "start"
|
|
83
87
|
}
|
|
84
88
|
});
|
|
85
|
-
|
|
89
|
+
function VStack({
|
|
90
|
+
className,
|
|
91
|
+
gap,
|
|
92
|
+
align,
|
|
93
|
+
justify,
|
|
94
|
+
as = "div",
|
|
95
|
+
ref,
|
|
96
|
+
...props
|
|
97
|
+
}) {
|
|
86
98
|
const Comp = as;
|
|
87
99
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
88
100
|
ref,
|
|
89
101
|
className: cn2(vStackVariants({ gap, align, justify }), className),
|
|
90
102
|
...props
|
|
91
103
|
}, undefined, false, undefined, this);
|
|
92
|
-
}
|
|
93
|
-
VStack.displayName = "VStack";
|
|
104
|
+
}
|
|
94
105
|
var hStackVariants = cva2("flex flex-row", {
|
|
95
106
|
variants: {
|
|
96
107
|
gap: {
|
|
@@ -130,15 +141,23 @@ var hStackVariants = cva2("flex flex-row", {
|
|
|
130
141
|
wrap: "wrap"
|
|
131
142
|
}
|
|
132
143
|
});
|
|
133
|
-
|
|
144
|
+
function HStack({
|
|
145
|
+
className,
|
|
146
|
+
gap,
|
|
147
|
+
align,
|
|
148
|
+
justify,
|
|
149
|
+
wrap,
|
|
150
|
+
as = "div",
|
|
151
|
+
ref,
|
|
152
|
+
...props
|
|
153
|
+
}) {
|
|
134
154
|
const Comp = as;
|
|
135
155
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
136
156
|
ref,
|
|
137
157
|
className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
|
|
138
158
|
...props
|
|
139
159
|
}, undefined, false, undefined, this);
|
|
140
|
-
}
|
|
141
|
-
HStack.displayName = "HStack";
|
|
160
|
+
}
|
|
142
161
|
var boxVariants = cva2("flex flex-row", {
|
|
143
162
|
variants: {
|
|
144
163
|
gap: {
|
|
@@ -178,15 +197,23 @@ var boxVariants = cva2("flex flex-row", {
|
|
|
178
197
|
wrap: "nowrap"
|
|
179
198
|
}
|
|
180
199
|
});
|
|
181
|
-
|
|
200
|
+
function Box({
|
|
201
|
+
className,
|
|
202
|
+
gap,
|
|
203
|
+
align,
|
|
204
|
+
justify,
|
|
205
|
+
wrap,
|
|
206
|
+
as = "div",
|
|
207
|
+
ref,
|
|
208
|
+
...props
|
|
209
|
+
}) {
|
|
182
210
|
const Comp = as;
|
|
183
211
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
184
212
|
ref,
|
|
185
213
|
className: cn2(boxVariants({ gap, align, justify, wrap }), className),
|
|
186
214
|
...props
|
|
187
215
|
}, undefined, false, undefined, this);
|
|
188
|
-
}
|
|
189
|
-
Box.displayName = "Box";
|
|
216
|
+
}
|
|
190
217
|
// ui/usecases/UseCaseCard.tsx
|
|
191
218
|
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
192
219
|
function UseCaseCard({
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// ui/stack.tsx
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import { cva } from "class-variance-authority";
|
|
7
6
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
8
7
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
@@ -38,15 +37,22 @@ var vStackVariants = cva("flex flex-col", {
|
|
|
38
37
|
justify: "start"
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
|
-
|
|
40
|
+
function VStack({
|
|
41
|
+
className,
|
|
42
|
+
gap,
|
|
43
|
+
align,
|
|
44
|
+
justify,
|
|
45
|
+
as = "div",
|
|
46
|
+
ref,
|
|
47
|
+
...props
|
|
48
|
+
}) {
|
|
42
49
|
const Comp = as;
|
|
43
50
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
44
51
|
ref,
|
|
45
52
|
className: cn(vStackVariants({ gap, align, justify }), className),
|
|
46
53
|
...props
|
|
47
54
|
}, undefined, false, undefined, this);
|
|
48
|
-
}
|
|
49
|
-
VStack.displayName = "VStack";
|
|
55
|
+
}
|
|
50
56
|
var hStackVariants = cva("flex flex-row", {
|
|
51
57
|
variants: {
|
|
52
58
|
gap: {
|
|
@@ -86,15 +92,23 @@ var hStackVariants = cva("flex flex-row", {
|
|
|
86
92
|
wrap: "wrap"
|
|
87
93
|
}
|
|
88
94
|
});
|
|
89
|
-
|
|
95
|
+
function HStack({
|
|
96
|
+
className,
|
|
97
|
+
gap,
|
|
98
|
+
align,
|
|
99
|
+
justify,
|
|
100
|
+
wrap,
|
|
101
|
+
as = "div",
|
|
102
|
+
ref,
|
|
103
|
+
...props
|
|
104
|
+
}) {
|
|
90
105
|
const Comp = as;
|
|
91
106
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
92
107
|
ref,
|
|
93
108
|
className: cn(hStackVariants({ gap, align, justify, wrap }), className),
|
|
94
109
|
...props
|
|
95
110
|
}, undefined, false, undefined, this);
|
|
96
|
-
}
|
|
97
|
-
HStack.displayName = "HStack";
|
|
111
|
+
}
|
|
98
112
|
var boxVariants = cva("flex flex-row", {
|
|
99
113
|
variants: {
|
|
100
114
|
gap: {
|
|
@@ -134,15 +148,23 @@ var boxVariants = cva("flex flex-row", {
|
|
|
134
148
|
wrap: "nowrap"
|
|
135
149
|
}
|
|
136
150
|
});
|
|
137
|
-
|
|
151
|
+
function Box({
|
|
152
|
+
className,
|
|
153
|
+
gap,
|
|
154
|
+
align,
|
|
155
|
+
justify,
|
|
156
|
+
wrap,
|
|
157
|
+
as = "div",
|
|
158
|
+
ref,
|
|
159
|
+
...props
|
|
160
|
+
}) {
|
|
138
161
|
const Comp = as;
|
|
139
162
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
140
163
|
ref,
|
|
141
164
|
className: cn(boxVariants({ gap, align, justify, wrap }), className),
|
|
142
165
|
...props
|
|
143
166
|
}, undefined, false, undefined, this);
|
|
144
|
-
}
|
|
145
|
-
Box.displayName = "Box";
|
|
167
|
+
}
|
|
146
168
|
// ui/usecases/UserStoryCard.tsx
|
|
147
169
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
148
170
|
function UserStoryCard({
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// ui/button.tsx
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
8
7
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
29
28
|
size: "default"
|
|
30
29
|
}
|
|
31
30
|
});
|
|
32
|
-
|
|
31
|
+
function Button({
|
|
32
|
+
className,
|
|
33
|
+
variant,
|
|
34
|
+
size,
|
|
35
|
+
asChild = false,
|
|
36
|
+
ref,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
33
39
|
if (asChild) {
|
|
34
40
|
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
35
41
|
"data-slot": "button",
|
|
@@ -43,10 +49,8 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
|
|
|
43
49
|
className: cn(buttonVariants({ variant, size, className })),
|
|
44
50
|
...props
|
|
45
51
|
}, undefined, false, undefined, this);
|
|
46
|
-
}
|
|
47
|
-
Button.displayName = "Button";
|
|
52
|
+
}
|
|
48
53
|
// ui/stack.tsx
|
|
49
|
-
import * as React2 from "react";
|
|
50
54
|
import { cva as cva2 } from "class-variance-authority";
|
|
51
55
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
52
56
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
@@ -82,15 +86,22 @@ var vStackVariants = cva2("flex flex-col", {
|
|
|
82
86
|
justify: "start"
|
|
83
87
|
}
|
|
84
88
|
});
|
|
85
|
-
|
|
89
|
+
function VStack({
|
|
90
|
+
className,
|
|
91
|
+
gap,
|
|
92
|
+
align,
|
|
93
|
+
justify,
|
|
94
|
+
as = "div",
|
|
95
|
+
ref,
|
|
96
|
+
...props
|
|
97
|
+
}) {
|
|
86
98
|
const Comp = as;
|
|
87
99
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
88
100
|
ref,
|
|
89
101
|
className: cn2(vStackVariants({ gap, align, justify }), className),
|
|
90
102
|
...props
|
|
91
103
|
}, undefined, false, undefined, this);
|
|
92
|
-
}
|
|
93
|
-
VStack.displayName = "VStack";
|
|
104
|
+
}
|
|
94
105
|
var hStackVariants = cva2("flex flex-row", {
|
|
95
106
|
variants: {
|
|
96
107
|
gap: {
|
|
@@ -130,15 +141,23 @@ var hStackVariants = cva2("flex flex-row", {
|
|
|
130
141
|
wrap: "wrap"
|
|
131
142
|
}
|
|
132
143
|
});
|
|
133
|
-
|
|
144
|
+
function HStack({
|
|
145
|
+
className,
|
|
146
|
+
gap,
|
|
147
|
+
align,
|
|
148
|
+
justify,
|
|
149
|
+
wrap,
|
|
150
|
+
as = "div",
|
|
151
|
+
ref,
|
|
152
|
+
...props
|
|
153
|
+
}) {
|
|
134
154
|
const Comp = as;
|
|
135
155
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
136
156
|
ref,
|
|
137
157
|
className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
|
|
138
158
|
...props
|
|
139
159
|
}, undefined, false, undefined, this);
|
|
140
|
-
}
|
|
141
|
-
HStack.displayName = "HStack";
|
|
160
|
+
}
|
|
142
161
|
var boxVariants = cva2("flex flex-row", {
|
|
143
162
|
variants: {
|
|
144
163
|
gap: {
|
|
@@ -178,15 +197,23 @@ var boxVariants = cva2("flex flex-row", {
|
|
|
178
197
|
wrap: "nowrap"
|
|
179
198
|
}
|
|
180
199
|
});
|
|
181
|
-
|
|
200
|
+
function Box({
|
|
201
|
+
className,
|
|
202
|
+
gap,
|
|
203
|
+
align,
|
|
204
|
+
justify,
|
|
205
|
+
wrap,
|
|
206
|
+
as = "div",
|
|
207
|
+
ref,
|
|
208
|
+
...props
|
|
209
|
+
}) {
|
|
182
210
|
const Comp = as;
|
|
183
211
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
184
212
|
ref,
|
|
185
213
|
className: cn2(boxVariants({ gap, align, justify, wrap }), className),
|
|
186
214
|
...props
|
|
187
215
|
}, undefined, false, undefined, this);
|
|
188
|
-
}
|
|
189
|
-
Box.displayName = "Box";
|
|
216
|
+
}
|
|
190
217
|
// ui/usecases/UseCaseCard.tsx
|
|
191
218
|
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
192
219
|
function UseCaseCard({
|
package/dist/ui/utils.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type VisuallyHiddenProps = React.HTMLAttributes<HTMLElement> & {
|
|
4
4
|
as?: keyof JSX.IntrinsicElements;
|
|
5
|
-
|
|
5
|
+
ref?: React.Ref<HTMLElement>;
|
|
6
|
+
};
|
|
7
|
+
declare function VisuallyHidden({ as, style, children, ref, ...props }: VisuallyHiddenProps): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export { VisuallyHidden };
|
|
7
|
-
//# sourceMappingURL=visually-hidden.d.ts.map
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// ui/visually-hidden.tsx
|
|
5
|
-
import * as React from "react";
|
|
6
5
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
7
6
|
var srOnlyStyle = {
|
|
8
7
|
border: 0,
|
|
@@ -15,7 +14,13 @@ var srOnlyStyle = {
|
|
|
15
14
|
width: "1px",
|
|
16
15
|
whiteSpace: "nowrap"
|
|
17
16
|
};
|
|
18
|
-
|
|
17
|
+
function VisuallyHidden({
|
|
18
|
+
as = "span",
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
ref,
|
|
22
|
+
...props
|
|
23
|
+
}) {
|
|
19
24
|
const Comp = as;
|
|
20
25
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
21
26
|
ref,
|
|
@@ -23,8 +28,7 @@ var VisuallyHidden = React.forwardRef(({ as = "span", style, children, ...props
|
|
|
23
28
|
...props,
|
|
24
29
|
children
|
|
25
30
|
}, undefined, false, undefined, this);
|
|
26
|
-
}
|
|
27
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
31
|
+
}
|
|
28
32
|
export {
|
|
29
33
|
VisuallyHidden
|
|
30
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.ui-kit-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Web UI components with Radix primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"lint:check": "eslint ui",
|
|
27
27
|
"storybook": "storybook dev -p 6006",
|
|
28
28
|
"build-storybook": "storybook build",
|
|
29
|
-
"test": "jest",
|
|
29
|
+
"test": "jest --passWithNoTests",
|
|
30
30
|
"prebuild": "contractspec-bun-build prebuild",
|
|
31
31
|
"typecheck": "tsc --noEmit"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@contractspec/lib.ui-kit-core": "
|
|
34
|
+
"@contractspec/lib.ui-kit-core": "2.0.0",
|
|
35
35
|
"@hookform/resolvers": "5.2.2",
|
|
36
36
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
37
37
|
"@radix-ui/react-alert-dialog": "^1.1.14",
|
|
@@ -65,12 +65,13 @@
|
|
|
65
65
|
"cmdk": "^1.1.1",
|
|
66
66
|
"embla-carousel-react": "^8.6.0",
|
|
67
67
|
"input-otp": "^1.4.2",
|
|
68
|
-
"lucide-react": "^0.
|
|
68
|
+
"lucide-react": "^0.564.0",
|
|
69
69
|
"next": "16.1.6",
|
|
70
70
|
"next-themes": "^0.4.3",
|
|
71
|
-
"
|
|
71
|
+
"radix-ui": "^1.4.3",
|
|
72
|
+
"react-day-picker": "^9.13.2",
|
|
72
73
|
"react-hook-form": "^7.70.0",
|
|
73
|
-
"react-resizable-panels": "^
|
|
74
|
+
"react-resizable-panels": "^4.6.4",
|
|
74
75
|
"sonner": "^2.0.7",
|
|
75
76
|
"tailwind-merge": "^3.3.1",
|
|
76
77
|
"vaul": "^1.1.2"
|
|
@@ -80,24 +81,24 @@
|
|
|
80
81
|
"react-dom": ">=19.2.4",
|
|
81
82
|
"react-hook-form": "^7.70.0",
|
|
82
83
|
"@sentry/nextjs": "^10.33.0",
|
|
83
|
-
"maplibre-gl": "^5.
|
|
84
|
+
"maplibre-gl": "^5.18.0",
|
|
84
85
|
"react-map-gl": "^8.0.4"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"@types/node": "^25.2.
|
|
88
|
+
"@types/node": "^25.2.3",
|
|
88
89
|
"@types/react-dom": "^19.2.2",
|
|
89
90
|
"@types/jest": "^30.0.0",
|
|
90
91
|
"jest": "^30.2.0",
|
|
91
|
-
"storybook": "^10.2.
|
|
92
|
+
"storybook": "^10.2.8",
|
|
92
93
|
"typescript": "^5.9.3",
|
|
93
94
|
"react": "19.2.4",
|
|
94
95
|
"react-dom": "19.2.4",
|
|
95
|
-
"@contractspec/tool.typescript": "
|
|
96
|
+
"@contractspec/tool.typescript": "2.0.0",
|
|
96
97
|
"@types/geojson": "^7946.0.14",
|
|
97
98
|
"@sentry/nextjs": "^10.33.0",
|
|
98
|
-
"maplibre-gl": "^5.
|
|
99
|
+
"maplibre-gl": "^5.18.0",
|
|
99
100
|
"react-map-gl": "^8.0.4",
|
|
100
|
-
"@contractspec/tool.bun": "
|
|
101
|
+
"@contractspec/tool.bun": "2.0.0"
|
|
101
102
|
},
|
|
102
103
|
"exports": {
|
|
103
104
|
".": {
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../ui/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,iBAAS,SAAS,CAAC,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAEtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAQtD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAgBzD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAUzD;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../ui/alert-dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,2CAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAI3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAI1D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAW3D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAc3D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAQvC;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAWvC;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,2CAQzD;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC,2CAQ/D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
package/dist/ui/alert.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAclB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAS5E;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAWvC;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CAWvC;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../ui/aspect-ratio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAErE,QAAA,MAAM,WAAW,kIAA4B,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,CAAC"}
|