@contractspec/lib.ui-kit-web 1.61.0 → 1.62.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/ui/alert-dialog.js +9 -4
- package/dist/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/ui/atoms/Pagination/index.js +9 -4
- package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/ui/atoms/SearchInput/index.js +9 -4
- package/dist/ui/button.d.ts +2 -6
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +9 -4
- package/dist/ui/calendar.js +12 -7
- package/dist/ui/carousel.js +20 -15
- package/dist/ui/confirm-dialog.js +9 -4
- package/dist/ui/context-menu.d.ts +26 -22
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +178 -85
- package/dist/ui/cta.d.ts +2 -8
- package/dist/ui/cta.d.ts.map +1 -1
- package/dist/ui/cta.js +13 -9
- package/dist/ui/date-picker.js +17 -12
- package/dist/ui/date-range-picker.js +14 -9
- package/dist/ui/datetime-picker.js +21 -16
- package/dist/ui/empty-state.js +32 -10
- package/dist/ui/input-group.js +9 -4
- package/dist/ui/input-otp.d.ts +13 -31
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +37 -18
- package/dist/ui/link.d.ts +4 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +6 -4
- package/dist/ui/loading-button.js +41 -14
- package/dist/ui/marketing/Hero.js +9 -4
- package/dist/ui/marketing/PricingTable.js +9 -4
- package/dist/ui/marketing/index.js +9 -4
- package/dist/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/ui/organisms/ListPage/index.js +41 -14
- package/dist/ui/page-header.js +32 -10
- package/dist/ui/pagination.d.ts +11 -22
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +98 -79
- package/dist/ui/resizable.d.ts +5 -20
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +6 -9
- package/dist/ui/section.d.ts +2 -9
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +12 -4
- package/dist/ui/sidebar.js +22 -17
- package/dist/ui/stack.d.ts +15 -23
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +32 -10
- package/dist/ui/stat-card-group.js +32 -10
- package/dist/ui/stepper.js +32 -10
- package/dist/ui/time-picker.js +13 -8
- package/dist/ui/toast.d.ts +20 -7
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +57 -29
- package/dist/ui/toaster.js +60 -32
- package/dist/ui/usecases/UseCaseCard.js +41 -14
- package/dist/ui/usecases/UserStoryCard.js +32 -10
- package/dist/ui/usecases/index.js +41 -14
- package/dist/ui/visually-hidden.d.ts +4 -2
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +8 -4
- package/package.json +11 -10
|
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// ui/toast.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
10
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
12
11
|
import { cva } from "class-variance-authority";
|
|
13
12
|
import { X } from "lucide-react";
|
|
@@ -15,12 +14,17 @@ import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
|
15
14
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
16
15
|
"use client";
|
|
17
16
|
var ToastProvider = ToastPrimitives.Provider;
|
|
18
|
-
|
|
17
|
+
function ToastViewport({
|
|
18
|
+
className,
|
|
19
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
20
|
...props
|
|
22
|
-
}
|
|
23
|
-
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
|
|
23
|
+
ref,
|
|
24
|
+
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),
|
|
25
|
+
...props
|
|
26
|
+
}, undefined, false, undefined, this);
|
|
27
|
+
}
|
|
24
28
|
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
29
|
variants: {
|
|
26
30
|
variant: {
|
|
@@ -32,44 +36,68 @@ var toastVariants = cva("group pointer-events-auto relative flex w-full items-ce
|
|
|
32
36
|
variant: "default"
|
|
33
37
|
}
|
|
34
38
|
});
|
|
35
|
-
|
|
39
|
+
function Toast({
|
|
40
|
+
className,
|
|
41
|
+
variant,
|
|
42
|
+
ref,
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
36
45
|
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
|
|
37
46
|
ref,
|
|
38
47
|
className: cn(toastVariants({ variant }), className),
|
|
39
48
|
...props
|
|
40
49
|
}, undefined, false, undefined, this);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
}
|
|
51
|
+
function ToastAction({
|
|
52
|
+
className,
|
|
44
53
|
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
54
|
...props
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
}) {
|
|
56
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
|
|
57
|
+
ref,
|
|
58
|
+
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),
|
|
59
|
+
...props
|
|
60
|
+
}, undefined, false, undefined, this);
|
|
61
|
+
}
|
|
62
|
+
function ToastClose({
|
|
63
|
+
className,
|
|
50
64
|
ref,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
className: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
...props
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
|
|
68
|
+
ref,
|
|
69
|
+
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),
|
|
70
|
+
"toast-close": "",
|
|
71
|
+
...props,
|
|
72
|
+
children: /* @__PURE__ */ jsxDEV(X, {
|
|
73
|
+
className: "h-4 w-4"
|
|
74
|
+
}, undefined, false, undefined, this)
|
|
75
|
+
}, undefined, false, undefined, this);
|
|
76
|
+
}
|
|
77
|
+
function ToastTitle({
|
|
78
|
+
className,
|
|
60
79
|
ref,
|
|
61
|
-
className: cn("text-base font-semibold", className),
|
|
62
80
|
...props
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
|
|
83
|
+
ref,
|
|
84
|
+
className: cn("text-base font-semibold", className),
|
|
85
|
+
...props
|
|
86
|
+
}, undefined, false, undefined, this);
|
|
87
|
+
}
|
|
88
|
+
function ToastDescription({
|
|
89
|
+
className,
|
|
66
90
|
ref,
|
|
67
|
-
className: cn("text-base opacity-90", className),
|
|
68
91
|
...props
|
|
69
|
-
}
|
|
70
|
-
|
|
92
|
+
}) {
|
|
93
|
+
return /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
|
|
94
|
+
ref,
|
|
95
|
+
className: cn("text-base opacity-90", className),
|
|
96
|
+
...props
|
|
97
|
+
}, undefined, false, undefined, this);
|
|
98
|
+
}
|
|
71
99
|
// ui/use-toast.ts
|
|
72
|
-
import * as
|
|
100
|
+
import * as React from "react";
|
|
73
101
|
"use client";
|
|
74
102
|
var TOAST_LIMIT = 1;
|
|
75
103
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
@@ -168,8 +196,8 @@ function toast({ ...props }) {
|
|
|
168
196
|
};
|
|
169
197
|
}
|
|
170
198
|
function useToast() {
|
|
171
|
-
const [state, setState] =
|
|
172
|
-
|
|
199
|
+
const [state, setState] = React.useState(memoryState);
|
|
200
|
+
React.useEffect(() => {
|
|
173
201
|
listeners.push(setState);
|
|
174
202
|
return () => {
|
|
175
203
|
const index = listeners.indexOf(setState);
|
|
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// ui/button.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
10
|
import { Slot } from "@radix-ui/react-slot";
|
|
12
11
|
import { cva } from "class-variance-authority";
|
|
13
12
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
@@ -34,7 +33,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
34
33
|
size: "default"
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
|
-
|
|
36
|
+
function Button({
|
|
37
|
+
className,
|
|
38
|
+
variant,
|
|
39
|
+
size,
|
|
40
|
+
asChild = false,
|
|
41
|
+
ref,
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
38
44
|
if (asChild) {
|
|
39
45
|
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
40
46
|
"data-slot": "button",
|
|
@@ -48,10 +54,8 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
|
|
|
48
54
|
className: cn(buttonVariants({ variant, size, className })),
|
|
49
55
|
...props
|
|
50
56
|
}, undefined, false, undefined, this);
|
|
51
|
-
}
|
|
52
|
-
Button.displayName = "Button";
|
|
57
|
+
}
|
|
53
58
|
// ui/stack.tsx
|
|
54
|
-
import * as React2 from "react";
|
|
55
59
|
import { cva as cva2 } from "class-variance-authority";
|
|
56
60
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
57
61
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
@@ -87,15 +91,22 @@ var vStackVariants = cva2("flex flex-col", {
|
|
|
87
91
|
justify: "start"
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
|
-
|
|
94
|
+
function VStack({
|
|
95
|
+
className,
|
|
96
|
+
gap,
|
|
97
|
+
align,
|
|
98
|
+
justify,
|
|
99
|
+
as = "div",
|
|
100
|
+
ref,
|
|
101
|
+
...props
|
|
102
|
+
}) {
|
|
91
103
|
const Comp = as;
|
|
92
104
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
93
105
|
ref,
|
|
94
106
|
className: cn2(vStackVariants({ gap, align, justify }), className),
|
|
95
107
|
...props
|
|
96
108
|
}, undefined, false, undefined, this);
|
|
97
|
-
}
|
|
98
|
-
VStack.displayName = "VStack";
|
|
109
|
+
}
|
|
99
110
|
var hStackVariants = cva2("flex flex-row", {
|
|
100
111
|
variants: {
|
|
101
112
|
gap: {
|
|
@@ -135,15 +146,23 @@ var hStackVariants = cva2("flex flex-row", {
|
|
|
135
146
|
wrap: "wrap"
|
|
136
147
|
}
|
|
137
148
|
});
|
|
138
|
-
|
|
149
|
+
function HStack({
|
|
150
|
+
className,
|
|
151
|
+
gap,
|
|
152
|
+
align,
|
|
153
|
+
justify,
|
|
154
|
+
wrap,
|
|
155
|
+
as = "div",
|
|
156
|
+
ref,
|
|
157
|
+
...props
|
|
158
|
+
}) {
|
|
139
159
|
const Comp = as;
|
|
140
160
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
141
161
|
ref,
|
|
142
162
|
className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
|
|
143
163
|
...props
|
|
144
164
|
}, undefined, false, undefined, this);
|
|
145
|
-
}
|
|
146
|
-
HStack.displayName = "HStack";
|
|
165
|
+
}
|
|
147
166
|
var boxVariants = cva2("flex flex-row", {
|
|
148
167
|
variants: {
|
|
149
168
|
gap: {
|
|
@@ -183,15 +202,23 @@ var boxVariants = cva2("flex flex-row", {
|
|
|
183
202
|
wrap: "nowrap"
|
|
184
203
|
}
|
|
185
204
|
});
|
|
186
|
-
|
|
205
|
+
function Box({
|
|
206
|
+
className,
|
|
207
|
+
gap,
|
|
208
|
+
align,
|
|
209
|
+
justify,
|
|
210
|
+
wrap,
|
|
211
|
+
as = "div",
|
|
212
|
+
ref,
|
|
213
|
+
...props
|
|
214
|
+
}) {
|
|
187
215
|
const Comp = as;
|
|
188
216
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
189
217
|
ref,
|
|
190
218
|
className: cn2(boxVariants({ gap, align, justify, wrap }), className),
|
|
191
219
|
...props
|
|
192
220
|
}, undefined, false, undefined, this);
|
|
193
|
-
}
|
|
194
|
-
Box.displayName = "Box";
|
|
221
|
+
}
|
|
195
222
|
// ui/usecases/UseCaseCard.tsx
|
|
196
223
|
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
197
224
|
function UseCaseCard({
|
|
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// ui/stack.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
10
|
import { cva } from "class-variance-authority";
|
|
12
11
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
13
12
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
@@ -43,15 +42,22 @@ var vStackVariants = cva("flex flex-col", {
|
|
|
43
42
|
justify: "start"
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
|
-
|
|
45
|
+
function VStack({
|
|
46
|
+
className,
|
|
47
|
+
gap,
|
|
48
|
+
align,
|
|
49
|
+
justify,
|
|
50
|
+
as = "div",
|
|
51
|
+
ref,
|
|
52
|
+
...props
|
|
53
|
+
}) {
|
|
47
54
|
const Comp = as;
|
|
48
55
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
49
56
|
ref,
|
|
50
57
|
className: cn(vStackVariants({ gap, align, justify }), className),
|
|
51
58
|
...props
|
|
52
59
|
}, undefined, false, undefined, this);
|
|
53
|
-
}
|
|
54
|
-
VStack.displayName = "VStack";
|
|
60
|
+
}
|
|
55
61
|
var hStackVariants = cva("flex flex-row", {
|
|
56
62
|
variants: {
|
|
57
63
|
gap: {
|
|
@@ -91,15 +97,23 @@ var hStackVariants = cva("flex flex-row", {
|
|
|
91
97
|
wrap: "wrap"
|
|
92
98
|
}
|
|
93
99
|
});
|
|
94
|
-
|
|
100
|
+
function HStack({
|
|
101
|
+
className,
|
|
102
|
+
gap,
|
|
103
|
+
align,
|
|
104
|
+
justify,
|
|
105
|
+
wrap,
|
|
106
|
+
as = "div",
|
|
107
|
+
ref,
|
|
108
|
+
...props
|
|
109
|
+
}) {
|
|
95
110
|
const Comp = as;
|
|
96
111
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
97
112
|
ref,
|
|
98
113
|
className: cn(hStackVariants({ gap, align, justify, wrap }), className),
|
|
99
114
|
...props
|
|
100
115
|
}, undefined, false, undefined, this);
|
|
101
|
-
}
|
|
102
|
-
HStack.displayName = "HStack";
|
|
116
|
+
}
|
|
103
117
|
var boxVariants = cva("flex flex-row", {
|
|
104
118
|
variants: {
|
|
105
119
|
gap: {
|
|
@@ -139,15 +153,23 @@ var boxVariants = cva("flex flex-row", {
|
|
|
139
153
|
wrap: "nowrap"
|
|
140
154
|
}
|
|
141
155
|
});
|
|
142
|
-
|
|
156
|
+
function Box({
|
|
157
|
+
className,
|
|
158
|
+
gap,
|
|
159
|
+
align,
|
|
160
|
+
justify,
|
|
161
|
+
wrap,
|
|
162
|
+
as = "div",
|
|
163
|
+
ref,
|
|
164
|
+
...props
|
|
165
|
+
}) {
|
|
143
166
|
const Comp = as;
|
|
144
167
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
145
168
|
ref,
|
|
146
169
|
className: cn(boxVariants({ gap, align, justify, wrap }), className),
|
|
147
170
|
...props
|
|
148
171
|
}, undefined, false, undefined, this);
|
|
149
|
-
}
|
|
150
|
-
Box.displayName = "Box";
|
|
172
|
+
}
|
|
151
173
|
// ui/usecases/UserStoryCard.tsx
|
|
152
174
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
153
175
|
function UserStoryCard({
|
|
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// ui/button.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
10
|
import { Slot } from "@radix-ui/react-slot";
|
|
12
11
|
import { cva } from "class-variance-authority";
|
|
13
12
|
import { cn } from "@contractspec/lib.ui-kit-core/utils";
|
|
@@ -34,7 +33,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
|
|
|
34
33
|
size: "default"
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
|
-
|
|
36
|
+
function Button({
|
|
37
|
+
className,
|
|
38
|
+
variant,
|
|
39
|
+
size,
|
|
40
|
+
asChild = false,
|
|
41
|
+
ref,
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
38
44
|
if (asChild) {
|
|
39
45
|
return /* @__PURE__ */ jsxDEV(Slot, {
|
|
40
46
|
"data-slot": "button",
|
|
@@ -48,10 +54,8 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
|
|
|
48
54
|
className: cn(buttonVariants({ variant, size, className })),
|
|
49
55
|
...props
|
|
50
56
|
}, undefined, false, undefined, this);
|
|
51
|
-
}
|
|
52
|
-
Button.displayName = "Button";
|
|
57
|
+
}
|
|
53
58
|
// ui/stack.tsx
|
|
54
|
-
import * as React2 from "react";
|
|
55
59
|
import { cva as cva2 } from "class-variance-authority";
|
|
56
60
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
57
61
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
@@ -87,15 +91,22 @@ var vStackVariants = cva2("flex flex-col", {
|
|
|
87
91
|
justify: "start"
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
|
-
|
|
94
|
+
function VStack({
|
|
95
|
+
className,
|
|
96
|
+
gap,
|
|
97
|
+
align,
|
|
98
|
+
justify,
|
|
99
|
+
as = "div",
|
|
100
|
+
ref,
|
|
101
|
+
...props
|
|
102
|
+
}) {
|
|
91
103
|
const Comp = as;
|
|
92
104
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
93
105
|
ref,
|
|
94
106
|
className: cn2(vStackVariants({ gap, align, justify }), className),
|
|
95
107
|
...props
|
|
96
108
|
}, undefined, false, undefined, this);
|
|
97
|
-
}
|
|
98
|
-
VStack.displayName = "VStack";
|
|
109
|
+
}
|
|
99
110
|
var hStackVariants = cva2("flex flex-row", {
|
|
100
111
|
variants: {
|
|
101
112
|
gap: {
|
|
@@ -135,15 +146,23 @@ var hStackVariants = cva2("flex flex-row", {
|
|
|
135
146
|
wrap: "wrap"
|
|
136
147
|
}
|
|
137
148
|
});
|
|
138
|
-
|
|
149
|
+
function HStack({
|
|
150
|
+
className,
|
|
151
|
+
gap,
|
|
152
|
+
align,
|
|
153
|
+
justify,
|
|
154
|
+
wrap,
|
|
155
|
+
as = "div",
|
|
156
|
+
ref,
|
|
157
|
+
...props
|
|
158
|
+
}) {
|
|
139
159
|
const Comp = as;
|
|
140
160
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
141
161
|
ref,
|
|
142
162
|
className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
|
|
143
163
|
...props
|
|
144
164
|
}, undefined, false, undefined, this);
|
|
145
|
-
}
|
|
146
|
-
HStack.displayName = "HStack";
|
|
165
|
+
}
|
|
147
166
|
var boxVariants = cva2("flex flex-row", {
|
|
148
167
|
variants: {
|
|
149
168
|
gap: {
|
|
@@ -183,15 +202,23 @@ var boxVariants = cva2("flex flex-row", {
|
|
|
183
202
|
wrap: "nowrap"
|
|
184
203
|
}
|
|
185
204
|
});
|
|
186
|
-
|
|
205
|
+
function Box({
|
|
206
|
+
className,
|
|
207
|
+
gap,
|
|
208
|
+
align,
|
|
209
|
+
justify,
|
|
210
|
+
wrap,
|
|
211
|
+
as = "div",
|
|
212
|
+
ref,
|
|
213
|
+
...props
|
|
214
|
+
}) {
|
|
187
215
|
const Comp = as;
|
|
188
216
|
return /* @__PURE__ */ jsxDEV2(Comp, {
|
|
189
217
|
ref,
|
|
190
218
|
className: cn2(boxVariants({ gap, align, justify, wrap }), className),
|
|
191
219
|
...props
|
|
192
220
|
}, undefined, false, undefined, this);
|
|
193
|
-
}
|
|
194
|
-
Box.displayName = "Box";
|
|
221
|
+
}
|
|
195
222
|
// ui/usecases/UseCaseCard.tsx
|
|
196
223
|
import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
|
|
197
224
|
function UseCaseCard({
|
|
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// ui/visually-hidden.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
10
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
12
11
|
var srOnlyStyle = {
|
|
13
12
|
border: 0,
|
|
@@ -20,7 +19,13 @@ var srOnlyStyle = {
|
|
|
20
19
|
width: "1px",
|
|
21
20
|
whiteSpace: "nowrap"
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
function VisuallyHidden({
|
|
23
|
+
as = "span",
|
|
24
|
+
style,
|
|
25
|
+
children,
|
|
26
|
+
ref,
|
|
27
|
+
...props
|
|
28
|
+
}) {
|
|
24
29
|
const Comp = as;
|
|
25
30
|
return /* @__PURE__ */ jsxDEV(Comp, {
|
|
26
31
|
ref,
|
|
@@ -28,8 +33,7 @@ var VisuallyHidden = React.forwardRef(({ as = "span", style, children, ...props
|
|
|
28
33
|
...props,
|
|
29
34
|
children
|
|
30
35
|
}, undefined, false, undefined, this);
|
|
31
|
-
}
|
|
32
|
-
VisuallyHidden.displayName = "VisuallyHidden";
|
|
36
|
+
}
|
|
33
37
|
export {
|
|
34
38
|
VisuallyHidden
|
|
35
39
|
};
|
package/dist/ui/alert-dialog.js
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,8 +49,7 @@ 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/alert-dialog.tsx
|
|
49
54
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
50
55
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
@@ -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,8 +49,7 @@ 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/select.tsx
|
|
49
54
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
50
55
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
@@ -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,8 +49,7 @@ 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/select.tsx
|
|
49
54
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
50
55
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
@@ -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,8 +49,7 @@ 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/input.tsx
|
|
49
54
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
50
55
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
@@ -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,8 +49,7 @@ 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/input.tsx
|
|
49
54
|
import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
|
|
50
55
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -6,12 +6,8 @@ declare const buttonVariants: (props?: ({
|
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonProps = React.ComponentPropsWithoutRef<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
9
10
|
};
|
|
10
|
-
declare
|
|
11
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
12
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
13
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
14
|
-
asChild?: boolean;
|
|
15
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare function Button({ className, variant, size, asChild, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
16
12
|
export { Button, buttonVariants };
|
|
17
13
|
//# sourceMappingURL=button.d.ts.map
|
package/dist/ui/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EA4BnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,GAChE,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EA4BnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,GAChE,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACpC,CAAC;AAEJ,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,2CAmBb;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|