@cytario/design 7.2.0 → 9.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/README.md +15 -28
- package/assets/approvals/.gitkeep +0 -0
- package/assets/fonts/.gitkeep +0 -0
- package/assets/fonts/Montserrat-Italic-VariableFont_wght.ttf +0 -0
- package/assets/fonts/Montserrat-VariableFont_wght.ttf +0 -0
- package/assets/logos/.gitkeep +0 -0
- package/assets/logos/cytario-logo-mono-black.svg +1 -0
- package/assets/logos/cytario-logo-mono-white.svg +1 -0
- package/assets/logos/cytario-logo-purple-tagline.svg +1 -0
- package/assets/logos/cytario-logo-purple.svg +1 -0
- package/assets/logos/cytario-logo-white-tagline.svg +1 -0
- package/assets/logos/cytario-logo-white.svg +1 -0
- package/assets/logos/png/cytario-logo-mono-white.png +0 -0
- package/assets/logos/png/cytario-logo-on-purple.png +0 -0
- package/assets/logos/png/cytario-logo-purple-tagline.png +0 -0
- package/assets/logos/png/cytario-logo-purple.png +0 -0
- package/assets/logos/png/cytario-logo-white-tagline.png +0 -0
- package/assets/logos/png/cytario-logo-white.png +0 -0
- package/assets/wireframes/DESIGN-SPEC.md +150 -0
- package/assets/wireframes/connection-info-edit-aws.puml +41 -0
- package/assets/wireframes/connection-info-edit-custom.puml +34 -0
- package/assets/wireframes/connection-info-view.puml +42 -0
- package/assets/wireframes/file-info-default.puml +25 -0
- package/assets/wireframes/file-info-delete-confirm.puml +28 -0
- package/dist/fonts/Montserrat-Italic-VariableFont_wght.ttf +0 -0
- package/dist/fonts/Montserrat-VariableFont_wght.ttf +0 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +115 -269
- package/dist/index.js +647 -882
- package/dist/index.js.map +1 -1
- package/package.json +8 -10
- package/src/styles/fonts/Montserrat-Italic-VariableFont_wght.ttf +0 -0
- package/src/styles/fonts/Montserrat-VariableFont_wght.ttf +0 -0
- package/src/styles/tailwind.css +1 -98
- package/src/styles/theme.css +557 -0
- package/src/styles/tokens.css +191 -0
- package/src/styles/global.css +0 -48
- package/src/tokens/utilities.css +0 -55
- package/src/tokens/variables-dark.css +0 -201
- package/src/tokens/variables.css +0 -201
package/dist/index.js
CHANGED
|
@@ -3,6 +3,60 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { RouterProvider } from "react-aria-components";
|
|
5
5
|
|
|
6
|
+
// src/components/Logo/Logo.tsx
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var W = 56;
|
|
9
|
+
var H = 20;
|
|
10
|
+
var paths = {
|
|
11
|
+
c: "M7.043,15.648C7.043,15.744 7.025,15.781 6.949,15.799C6.347,16.046 5.593,16.103 4.859,16.103C1.808,16.103 0,14.002 0,11.279C0,8.479 2.072,6.398 5.179,6.398C6.121,6.398 6.629,6.493 6.949,6.606C7.025,6.644 7.043,6.7 7.043,6.814L7.025,8.497C7.025,8.63 6.949,8.63 6.874,8.612C6.479,8.46 5.989,8.365 5.255,8.365C3.54,8.365 2.335,9.387 2.335,11.203C2.335,13.266 3.823,14.059 5.273,14.059C5.951,14.059 6.535,14.002 6.912,13.87C7.006,13.833 7.043,13.89 7.043,13.965L7.043,15.648Z",
|
|
12
|
+
y: "M9.919,6.588C9.994,6.588 10.051,6.606 10.088,6.701C11.313,10.238 11.953,12.282 12.197,13.208C12.819,11.297 13.479,9.349 14.326,6.701C14.364,6.625 14.42,6.588 14.533,6.588L16.473,6.588C16.586,6.588 16.605,6.644 16.586,6.738C15.23,10.919 13.071,16.185 11.546,19.684C11.508,19.76 11.452,19.817 11.301,19.817L9.238,20C9.125,20 9.099,19.938 9.144,19.849C9.71,18.713 10.427,17.181 11.03,15.744C11.068,15.63 11.086,15.573 11.048,15.44C10.54,14.192 8.732,9.69 7.602,6.72C7.564,6.644 7.62,6.588 7.715,6.588L9.919,6.588Z",
|
|
13
|
+
t: "M22.706,15.61C22.706,15.725 22.688,15.8 22.593,15.838C22.085,16.027 21.614,16.102 20.992,16.102C19.448,16.102 18.525,15.346 18.525,13.473L18.525,8.498L17.338,8.498C17.244,8.48 17.206,8.441 17.206,8.328L17.206,6.738C17.206,6.625 17.244,6.587 17.357,6.587L18.525,6.583C18.543,5.921 18.525,4.912 18.525,4.26C18.543,4.166 18.581,4.109 18.675,4.09L20.674,3.912C20.764,3.904 20.806,3.912 20.806,4.007L20.806,6.583L22.65,6.587C22.744,6.587 22.781,6.625 22.781,6.72L22.781,8.365C22.781,8.46 22.744,8.498 22.65,8.498L20.804,8.498L20.804,12.981C20.804,13.813 21.067,14.211 21.878,14.211C22.122,14.211 22.33,14.193 22.593,14.135C22.65,14.116 22.706,14.135 22.706,14.248L22.706,15.61Z",
|
|
14
|
+
a: "M28.959,11.752C28.676,11.714 28.356,11.695 27.923,11.695C26.435,11.695 25.776,12.186 25.776,13C25.776,13.7 26.265,14.305 27.621,14.305C28.111,14.305 28.544,14.248 28.959,14.079L28.959,11.752ZM31.162,13.984C31.162,14.4 31.162,14.778 31.2,15.176C31.2,15.213 31.2,15.232 31.162,15.252C29.618,15.913 28.526,16.102 27.244,16.102C25.192,16.102 23.553,15.138 23.553,13C23.553,10.995 25.342,9.992 27.791,9.992C28.356,9.992 28.789,10.011 28.959,10.03L28.959,9.803C28.959,9.368 28.714,8.384 27.056,8.384C26.115,8.384 25.286,8.574 24.588,8.914C24.532,8.933 24.438,8.914 24.438,8.801L24.438,7.155C24.438,7.06 24.457,7.022 24.551,6.966C25.361,6.587 26.397,6.397 27.415,6.397C30.032,6.397 31.162,8.044 31.162,10.144L31.162,13.984Z",
|
|
15
|
+
r: "M34.267,6.588C34.381,6.588 34.438,6.625 34.475,6.738C34.569,6.984 34.644,7.458 34.663,7.874C35.304,7.079 36.327,6.398 37.627,6.398C37.739,6.398 37.827,6.453 37.827,6.594L37.827,8.535C37.827,8.63 37.789,8.668 37.658,8.668C36.321,8.63 35.21,9.103 34.776,9.671L34.776,15.762C34.776,15.876 34.72,15.913 34.606,15.913L32.648,15.913C32.516,15.913 32.478,15.856 32.478,15.762C32.478,15.762 32.485,7.369 32.485,6.701C32.485,6.606 32.504,6.588 32.598,6.588L34.267,6.588Z",
|
|
16
|
+
i: "M38.777,6.55C38.777,6.466 38.845,6.398 38.929,6.398C40.114,6.398 41.075,7.362 41.075,8.553L41.075,15.764C41.075,15.877 41.036,15.915 40.905,15.915L38.966,15.915C38.834,15.915 38.777,15.858 38.777,15.745L38.777,6.55Z",
|
|
17
|
+
o: "M47.169,14.138C45.576,14.123 44.297,12.814 44.311,11.214C44.326,9.615 45.629,8.329 47.222,8.344C48.815,8.359 50.094,9.668 50.079,11.268C50.065,12.868 48.761,14.153 47.169,14.138M47.876,6.482C47.119,6.369 46.014,6.446 45.46,6.41C43.518,6.279 42.185,4.377 42.182,2.485C42.181,1.047 41.374,0.235 40.308,0.039C39.63,-0.088 38.97,0.105 38.471,0.501C37.984,0.908 37.658,1.518 37.642,2.21C37.612,3.297 38.236,4.259 39.637,4.556C41.479,4.951 43.056,6.656 42.782,8.591C42.702,9.142 42.392,10.273 42.346,11.04C42.18,13.708 44.321,16.035 47.032,16.093C48.225,16.119 49.332,15.719 50.191,15.02C51.049,14.322 51.682,13.32 51.889,12.138C52.369,9.509 50.569,6.882 47.876,6.482",
|
|
18
|
+
"\xAE": "M54.243,7.684C54.243,7.493 54.104,7.355 53.837,7.355L53.499,7.355L53.499,8.006L53.837,8.006C54.104,8.006 54.243,7.884 54.243,7.684M53.499,8.224L53.499,8.893L53.257,8.893L53.257,7.137L53.837,7.137C54.235,7.137 54.494,7.346 54.494,7.676C54.494,7.937 54.33,8.11 54.088,8.18L54.581,8.893L54.295,8.893L53.845,8.224L53.499,8.224ZM55.212,8.015C55.212,7.207 54.65,6.633 53.837,6.633C53.023,6.633 52.452,7.207 52.452,8.015C52.452,8.832 53.023,9.405 53.837,9.405C54.65,9.405 55.212,8.832 55.212,8.015M52.21,8.015C52.21,7.085 52.894,6.398 53.837,6.398C54.78,6.398 55.463,7.085 55.463,8.015C55.463,8.954 54.78,9.64 53.837,9.64C52.894,9.64 52.21,8.954 52.21,8.015"
|
|
19
|
+
};
|
|
20
|
+
function Logo({
|
|
21
|
+
color,
|
|
22
|
+
highlightColor,
|
|
23
|
+
scale = 1,
|
|
24
|
+
className
|
|
25
|
+
}) {
|
|
26
|
+
const width = W * scale;
|
|
27
|
+
const height = H * scale;
|
|
28
|
+
const style = {
|
|
29
|
+
fill: "var(--logo-fill)",
|
|
30
|
+
...color && { "--logo-fill": color },
|
|
31
|
+
...highlightColor && { "--logo-highlight": highlightColor }
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
"svg",
|
|
35
|
+
{
|
|
36
|
+
role: "img",
|
|
37
|
+
"aria-label": "Cytario Logo",
|
|
38
|
+
width,
|
|
39
|
+
height,
|
|
40
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
41
|
+
className,
|
|
42
|
+
style,
|
|
43
|
+
children: Object.entries(paths).map(([key, d], i) => /* @__PURE__ */ jsx(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
d,
|
|
47
|
+
"aria-hidden": "true",
|
|
48
|
+
style: {
|
|
49
|
+
fill: key === "o" ? "var(--logo-highlight)" : void 0,
|
|
50
|
+
animation: "logo-fade-in 0.4s ease-out both",
|
|
51
|
+
animationDelay: `${i * 0.06}s`
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
key
|
|
55
|
+
))
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
6
60
|
// src/components/Button/Button.tsx
|
|
7
61
|
import {
|
|
8
62
|
Button as AriaButton,
|
|
@@ -89,12 +143,16 @@ import {
|
|
|
89
143
|
AlignRight,
|
|
90
144
|
Archive,
|
|
91
145
|
ArrowDown,
|
|
146
|
+
ArrowLeft,
|
|
92
147
|
ArrowRight,
|
|
93
148
|
ArrowUp,
|
|
149
|
+
ArrowUpRight,
|
|
94
150
|
Ban,
|
|
95
151
|
Bookmark,
|
|
96
152
|
BookmarkCheck,
|
|
97
153
|
Braces,
|
|
154
|
+
Building2,
|
|
155
|
+
Calendar,
|
|
98
156
|
Check,
|
|
99
157
|
CheckCircle,
|
|
100
158
|
CheckCircle2,
|
|
@@ -103,11 +161,14 @@ import {
|
|
|
103
161
|
ChevronUp,
|
|
104
162
|
Circle,
|
|
105
163
|
CircleDot,
|
|
164
|
+
CircleSlash,
|
|
106
165
|
Clock,
|
|
107
166
|
Cloud,
|
|
108
167
|
Columns2,
|
|
109
168
|
Columns3,
|
|
110
169
|
Copy,
|
|
170
|
+
CreditCard,
|
|
171
|
+
Database,
|
|
111
172
|
Download,
|
|
112
173
|
Edit,
|
|
113
174
|
EllipsisVertical,
|
|
@@ -129,9 +190,11 @@ import {
|
|
|
129
190
|
ImageOff,
|
|
130
191
|
Inbox,
|
|
131
192
|
Info,
|
|
193
|
+
KeyRound,
|
|
132
194
|
Lasso,
|
|
133
195
|
Layers,
|
|
134
196
|
Layers2,
|
|
197
|
+
LayoutDashboard,
|
|
135
198
|
LayoutGrid,
|
|
136
199
|
List,
|
|
137
200
|
ListFilter,
|
|
@@ -139,9 +202,11 @@ import {
|
|
|
139
202
|
Mail,
|
|
140
203
|
MapPin,
|
|
141
204
|
Maximize,
|
|
205
|
+
Menu,
|
|
142
206
|
Microscope,
|
|
143
207
|
Minus,
|
|
144
208
|
MoreVertical,
|
|
209
|
+
Network,
|
|
145
210
|
PanelLeftClose,
|
|
146
211
|
PanelLeftOpen,
|
|
147
212
|
PanelRightClose,
|
|
@@ -149,8 +214,12 @@ import {
|
|
|
149
214
|
Pencil,
|
|
150
215
|
Plug,
|
|
151
216
|
Plus,
|
|
217
|
+
Power,
|
|
218
|
+
PowerOff,
|
|
219
|
+
RefreshCw,
|
|
152
220
|
RotateCcw,
|
|
153
221
|
RotateCw,
|
|
222
|
+
ScrollText,
|
|
154
223
|
Search,
|
|
155
224
|
SearchX,
|
|
156
225
|
Send,
|
|
@@ -159,6 +228,7 @@ import {
|
|
|
159
228
|
ShieldCheck,
|
|
160
229
|
Spline,
|
|
161
230
|
Square,
|
|
231
|
+
SquarePen,
|
|
162
232
|
Star,
|
|
163
233
|
Table,
|
|
164
234
|
Tag,
|
|
@@ -174,6 +244,54 @@ import {
|
|
|
174
244
|
ZoomIn,
|
|
175
245
|
ZoomOut
|
|
176
246
|
} from "lucide-react";
|
|
247
|
+
|
|
248
|
+
// src/components/Icon/icons/LinkedinIcon.tsx
|
|
249
|
+
import { forwardRef } from "react";
|
|
250
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
251
|
+
var LinkedinIcon = forwardRef(
|
|
252
|
+
function LinkedinIcon2({ size = 24, className, ...props }, ref) {
|
|
253
|
+
return /* @__PURE__ */ jsx2(
|
|
254
|
+
"svg",
|
|
255
|
+
{
|
|
256
|
+
ref,
|
|
257
|
+
width: size,
|
|
258
|
+
height: size,
|
|
259
|
+
viewBox: "0 0 24 24",
|
|
260
|
+
fill: "currentColor",
|
|
261
|
+
className,
|
|
262
|
+
"aria-hidden": "true",
|
|
263
|
+
focusable: false,
|
|
264
|
+
...props,
|
|
265
|
+
children: /* @__PURE__ */ jsx2("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.063 2.063 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" })
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
|
|
271
|
+
// src/components/Icon/icons/GithubIcon.tsx
|
|
272
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
273
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
274
|
+
var GithubIcon = forwardRef2(
|
|
275
|
+
function GithubIcon2({ size = 24, className, ...props }, ref) {
|
|
276
|
+
return /* @__PURE__ */ jsx3(
|
|
277
|
+
"svg",
|
|
278
|
+
{
|
|
279
|
+
ref,
|
|
280
|
+
width: size,
|
|
281
|
+
height: size,
|
|
282
|
+
viewBox: "0 0 24 24",
|
|
283
|
+
fill: "currentColor",
|
|
284
|
+
className,
|
|
285
|
+
"aria-hidden": "true",
|
|
286
|
+
focusable: false,
|
|
287
|
+
...props,
|
|
288
|
+
children: /* @__PURE__ */ jsx3("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
|
|
294
|
+
// src/components/Icon/icon-registry.ts
|
|
177
295
|
var iconRegistry = {
|
|
178
296
|
AlertCircle,
|
|
179
297
|
AlertTriangle,
|
|
@@ -182,12 +300,16 @@ var iconRegistry = {
|
|
|
182
300
|
AlignRight,
|
|
183
301
|
Archive,
|
|
184
302
|
ArrowDown,
|
|
303
|
+
ArrowLeft,
|
|
185
304
|
ArrowRight,
|
|
186
305
|
ArrowUp,
|
|
306
|
+
ArrowUpRight,
|
|
187
307
|
Ban,
|
|
188
308
|
Bookmark,
|
|
189
309
|
BookmarkCheck,
|
|
190
310
|
Braces,
|
|
311
|
+
Building2,
|
|
312
|
+
Calendar,
|
|
191
313
|
Check,
|
|
192
314
|
CheckCircle,
|
|
193
315
|
CheckCircle2,
|
|
@@ -196,11 +318,14 @@ var iconRegistry = {
|
|
|
196
318
|
ChevronUp,
|
|
197
319
|
Circle,
|
|
198
320
|
CircleDot,
|
|
321
|
+
CircleSlash,
|
|
199
322
|
Clock,
|
|
200
323
|
Cloud,
|
|
201
324
|
Columns2,
|
|
202
325
|
Columns3,
|
|
203
326
|
Copy,
|
|
327
|
+
CreditCard,
|
|
328
|
+
Database,
|
|
204
329
|
Download,
|
|
205
330
|
Edit,
|
|
206
331
|
EllipsisVertical,
|
|
@@ -215,6 +340,7 @@ var iconRegistry = {
|
|
|
215
340
|
FolderPlus,
|
|
216
341
|
FolderTree,
|
|
217
342
|
Fullscreen,
|
|
343
|
+
Github: GithubIcon,
|
|
218
344
|
Grid2x2,
|
|
219
345
|
Grid3x3,
|
|
220
346
|
Heart,
|
|
@@ -222,19 +348,24 @@ var iconRegistry = {
|
|
|
222
348
|
ImageOff,
|
|
223
349
|
Inbox,
|
|
224
350
|
Info,
|
|
351
|
+
KeyRound,
|
|
225
352
|
Lasso,
|
|
226
353
|
Layers,
|
|
227
354
|
Layers2,
|
|
355
|
+
LayoutDashboard,
|
|
228
356
|
LayoutGrid,
|
|
357
|
+
Linkedin: LinkedinIcon,
|
|
229
358
|
List,
|
|
230
359
|
ListFilter,
|
|
231
360
|
LogOut,
|
|
232
361
|
Mail,
|
|
233
362
|
MapPin,
|
|
234
363
|
Maximize,
|
|
364
|
+
Menu,
|
|
235
365
|
Microscope,
|
|
236
366
|
Minus,
|
|
237
367
|
MoreVertical,
|
|
368
|
+
Network,
|
|
238
369
|
PanelLeftClose,
|
|
239
370
|
PanelLeftOpen,
|
|
240
371
|
PanelRightClose,
|
|
@@ -242,8 +373,12 @@ var iconRegistry = {
|
|
|
242
373
|
Pencil,
|
|
243
374
|
Plug,
|
|
244
375
|
Plus,
|
|
376
|
+
Power,
|
|
377
|
+
PowerOff,
|
|
378
|
+
RefreshCw,
|
|
245
379
|
RotateCcw,
|
|
246
380
|
RotateCw,
|
|
381
|
+
ScrollText,
|
|
247
382
|
Search,
|
|
248
383
|
SearchX,
|
|
249
384
|
Send,
|
|
@@ -252,6 +387,7 @@ var iconRegistry = {
|
|
|
252
387
|
ShieldCheck,
|
|
253
388
|
Spline,
|
|
254
389
|
Square,
|
|
390
|
+
SquarePen,
|
|
255
391
|
Star,
|
|
256
392
|
Table,
|
|
257
393
|
Tag,
|
|
@@ -269,7 +405,7 @@ var iconRegistry = {
|
|
|
269
405
|
};
|
|
270
406
|
|
|
271
407
|
// src/components/Icon/Icon.tsx
|
|
272
|
-
import { jsx } from "react/jsx-runtime";
|
|
408
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
273
409
|
var sizeMap = {
|
|
274
410
|
xs: 14,
|
|
275
411
|
sm: 16,
|
|
@@ -284,7 +420,7 @@ function Icon({
|
|
|
284
420
|
className
|
|
285
421
|
}) {
|
|
286
422
|
const Component = typeof icon === "string" ? iconRegistry[icon] : icon;
|
|
287
|
-
return /* @__PURE__ */
|
|
423
|
+
return /* @__PURE__ */ jsx4(
|
|
288
424
|
Component,
|
|
289
425
|
{
|
|
290
426
|
size: sizeMap[size],
|
|
@@ -298,7 +434,7 @@ function Icon({
|
|
|
298
434
|
|
|
299
435
|
// src/components/Spinner/Spinner.tsx
|
|
300
436
|
import { twMerge as twMerge2 } from "tailwind-merge";
|
|
301
|
-
import { jsx as
|
|
437
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
302
438
|
function Spinner({
|
|
303
439
|
size = "md",
|
|
304
440
|
"aria-label": ariaLabel,
|
|
@@ -317,7 +453,7 @@ function Spinner({
|
|
|
317
453
|
width: sizeMap[size],
|
|
318
454
|
height: sizeMap[size],
|
|
319
455
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ jsx5(
|
|
321
457
|
"circle",
|
|
322
458
|
{
|
|
323
459
|
className: "opacity-25",
|
|
@@ -328,7 +464,7 @@ function Spinner({
|
|
|
328
464
|
strokeWidth: "4"
|
|
329
465
|
}
|
|
330
466
|
),
|
|
331
|
-
/* @__PURE__ */
|
|
467
|
+
/* @__PURE__ */ jsx5(
|
|
332
468
|
"path",
|
|
333
469
|
{
|
|
334
470
|
className: "opacity-75",
|
|
@@ -342,7 +478,7 @@ function Spinner({
|
|
|
342
478
|
}
|
|
343
479
|
|
|
344
480
|
// src/components/Button/Button.tsx
|
|
345
|
-
import { jsx as
|
|
481
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
346
482
|
var buttonBaseClass = `
|
|
347
483
|
inline-flex items-center justify-center gap-2 shrink-0 cursor-pointer
|
|
348
484
|
rounded-full
|
|
@@ -372,19 +508,126 @@ function ButtonBase({
|
|
|
372
508
|
className
|
|
373
509
|
);
|
|
374
510
|
return /* @__PURE__ */ jsxs2(Component, { ...props, isDisabled: isDisabled || isLoading, className: cx, children: [
|
|
375
|
-
isLoading && /* @__PURE__ */
|
|
376
|
-
!isLoading && iconLeft && /* @__PURE__ */
|
|
511
|
+
isLoading && /* @__PURE__ */ jsx6(Spinner, { size }),
|
|
512
|
+
!isLoading && iconLeft && /* @__PURE__ */ jsx6(Icon, { icon: iconLeft, size }),
|
|
377
513
|
children,
|
|
378
|
-
!isLoading && iconRight && /* @__PURE__ */
|
|
514
|
+
!isLoading && iconRight && /* @__PURE__ */ jsx6(Icon, { icon: iconRight, size })
|
|
379
515
|
] });
|
|
380
516
|
}
|
|
381
517
|
function Button(props) {
|
|
382
|
-
return /* @__PURE__ */
|
|
518
|
+
return /* @__PURE__ */ jsx6(ButtonBase, { as: AriaButton, ...props });
|
|
383
519
|
}
|
|
384
520
|
function ButtonLink(props) {
|
|
385
|
-
return /* @__PURE__ */
|
|
521
|
+
return /* @__PURE__ */ jsx6(ButtonBase, { as: AriaLink, ...props });
|
|
386
522
|
}
|
|
387
523
|
|
|
524
|
+
// src/components/Heading/Heading.tsx
|
|
525
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
526
|
+
import { twMerge as twMerge4 } from "tailwind-merge";
|
|
527
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
528
|
+
var sizeMap2 = {
|
|
529
|
+
h1: "text-4xl sm:text-5xl leading-tight font-bold",
|
|
530
|
+
h2: "text-2xl sm:text-3xl leading-tight font-bold",
|
|
531
|
+
h3: "text-lg sm:text-xl leading-snug font-bold",
|
|
532
|
+
h4: "text-base sm:text-lg font-semibold",
|
|
533
|
+
h5: "text-sm sm:text-base font-semibold",
|
|
534
|
+
h6: "text-sm font-semibold",
|
|
535
|
+
hero: "text-4xl sm:text-5xl lg:text-6xl leading-tight font-bold"
|
|
536
|
+
};
|
|
537
|
+
var Heading = forwardRef3(
|
|
538
|
+
function Heading2({ as: Tag2 = "h2", size, className, children, ...rest }, ref) {
|
|
539
|
+
const resolvedSize = size ?? Tag2;
|
|
540
|
+
const cx = twMerge4("text-inherit mb-4", sizeMap2[resolvedSize], className);
|
|
541
|
+
return /* @__PURE__ */ jsx7(Tag2, { ref, className: cx, ...rest, children });
|
|
542
|
+
}
|
|
543
|
+
);
|
|
544
|
+
var H1 = forwardRef3(
|
|
545
|
+
function H12(props, ref) {
|
|
546
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h1" });
|
|
547
|
+
}
|
|
548
|
+
);
|
|
549
|
+
var H2 = forwardRef3(
|
|
550
|
+
function H22(props, ref) {
|
|
551
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h2" });
|
|
552
|
+
}
|
|
553
|
+
);
|
|
554
|
+
var H3 = forwardRef3(
|
|
555
|
+
function H32(props, ref) {
|
|
556
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h3" });
|
|
557
|
+
}
|
|
558
|
+
);
|
|
559
|
+
var H4 = forwardRef3(
|
|
560
|
+
function H42(props, ref) {
|
|
561
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h4" });
|
|
562
|
+
}
|
|
563
|
+
);
|
|
564
|
+
var H5 = forwardRef3(
|
|
565
|
+
function H52(props, ref) {
|
|
566
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h5" });
|
|
567
|
+
}
|
|
568
|
+
);
|
|
569
|
+
var H6 = forwardRef3(
|
|
570
|
+
function H62(props, ref) {
|
|
571
|
+
return /* @__PURE__ */ jsx7(Heading, { ...props, ref, as: "h6" });
|
|
572
|
+
}
|
|
573
|
+
);
|
|
574
|
+
|
|
575
|
+
// src/components/Prose/Prose.tsx
|
|
576
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
577
|
+
import { twMerge as twMerge5 } from "tailwind-merge";
|
|
578
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
579
|
+
var sizeClasses = {
|
|
580
|
+
sm: "prose-sm",
|
|
581
|
+
default: "prose",
|
|
582
|
+
lg: "prose-lg",
|
|
583
|
+
xl: "prose-xl"
|
|
584
|
+
};
|
|
585
|
+
var Prose = forwardRef4(function Prose2({ size = "default", invert = false, className, children, ...rest }, ref) {
|
|
586
|
+
return /* @__PURE__ */ jsx8(
|
|
587
|
+
"div",
|
|
588
|
+
{
|
|
589
|
+
ref,
|
|
590
|
+
className: twMerge5(
|
|
591
|
+
"prose",
|
|
592
|
+
sizeClasses[size],
|
|
593
|
+
invert && "prose-invert",
|
|
594
|
+
"max-w-none",
|
|
595
|
+
className
|
|
596
|
+
),
|
|
597
|
+
...rest,
|
|
598
|
+
children
|
|
599
|
+
}
|
|
600
|
+
);
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
// src/components/Description/Description.tsx
|
|
604
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
605
|
+
import { twMerge as twMerge6 } from "tailwind-merge";
|
|
606
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
607
|
+
var sizeClasses2 = {
|
|
608
|
+
sm: "text-sm md:text-base",
|
|
609
|
+
md: "text-base md:text-lg",
|
|
610
|
+
lg: "text-lg md:text-xl",
|
|
611
|
+
xl: "text-xl md:text-2xl"
|
|
612
|
+
};
|
|
613
|
+
var Description = forwardRef5(
|
|
614
|
+
function Description2({ size = "md", className, children, ...rest }, ref) {
|
|
615
|
+
return /* @__PURE__ */ jsx9(
|
|
616
|
+
"p",
|
|
617
|
+
{
|
|
618
|
+
ref,
|
|
619
|
+
className: twMerge6(
|
|
620
|
+
"text-pretty text-muted-foreground mb-4",
|
|
621
|
+
sizeClasses2[size],
|
|
622
|
+
className
|
|
623
|
+
),
|
|
624
|
+
...rest,
|
|
625
|
+
children
|
|
626
|
+
}
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
|
|
388
631
|
// src/components/Tooltip/Tooltip.tsx
|
|
389
632
|
import {
|
|
390
633
|
useEffect,
|
|
@@ -393,7 +636,7 @@ import {
|
|
|
393
636
|
useState
|
|
394
637
|
} from "react";
|
|
395
638
|
import { createPortal } from "react-dom";
|
|
396
|
-
import { jsx as
|
|
639
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
397
640
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
398
641
|
var offsetThreshold = 5;
|
|
399
642
|
var tooltipDelay = 500;
|
|
@@ -486,7 +729,7 @@ function Tooltip({ content, children }) {
|
|
|
486
729
|
if (timerRef.current) clearTimeout(timerRef.current);
|
|
487
730
|
};
|
|
488
731
|
}, []);
|
|
489
|
-
const tooltipContent = isVisible && content != null ? /* @__PURE__ */
|
|
732
|
+
const tooltipContent = isVisible && content != null ? /* @__PURE__ */ jsx10(
|
|
490
733
|
"div",
|
|
491
734
|
{
|
|
492
735
|
ref: tooltipRef,
|
|
@@ -606,7 +849,7 @@ function useOverflowDetection(ref) {
|
|
|
606
849
|
}
|
|
607
850
|
|
|
608
851
|
// src/components/TruncatedText/TruncatedText.tsx
|
|
609
|
-
import { jsx as
|
|
852
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
610
853
|
var spanCx = "truncate overflow-hidden whitespace-nowrap block min-w-0 w-full";
|
|
611
854
|
var copyCx = "hover:bg-accent transition-colors rounded cursor-pointer";
|
|
612
855
|
var leftStyle = { direction: "rtl", textAlign: "left" };
|
|
@@ -619,7 +862,7 @@ var handleCopyKeyDown = (handleClick) => (e) => {
|
|
|
619
862
|
handleClick();
|
|
620
863
|
}
|
|
621
864
|
};
|
|
622
|
-
var CopiedOverlay = () => /* @__PURE__ */
|
|
865
|
+
var CopiedOverlay = () => /* @__PURE__ */ jsx11(
|
|
623
866
|
"span",
|
|
624
867
|
{
|
|
625
868
|
role: "status",
|
|
@@ -635,7 +878,7 @@ var RightEllipsis = ({ children, copyValue }) => {
|
|
|
635
878
|
const isCopyable = copyValue != null;
|
|
636
879
|
const baseCx = isCopyable ? `${spanCx} ${copyCx} relative` : spanCx;
|
|
637
880
|
const cx = isCopied ? `${baseCx} text-transparent` : baseCx;
|
|
638
|
-
return /* @__PURE__ */
|
|
881
|
+
return /* @__PURE__ */ jsx11(Tooltip, { content: isTruncated ? children : null, children: /* @__PURE__ */ jsxs4(
|
|
639
882
|
"span",
|
|
640
883
|
{
|
|
641
884
|
ref,
|
|
@@ -647,7 +890,7 @@ var RightEllipsis = ({ children, copyValue }) => {
|
|
|
647
890
|
tabIndex: isCopyable ? 0 : void 0,
|
|
648
891
|
children: [
|
|
649
892
|
children,
|
|
650
|
-
isCopied && /* @__PURE__ */
|
|
893
|
+
isCopied && /* @__PURE__ */ jsx11(CopiedOverlay, {})
|
|
651
894
|
]
|
|
652
895
|
}
|
|
653
896
|
) });
|
|
@@ -659,7 +902,7 @@ var LeftEllipsis = ({ children, copyValue }) => {
|
|
|
659
902
|
const isCopyable = copyValue != null;
|
|
660
903
|
const baseCx = isCopyable ? `${spanCx} ${copyCx} relative` : spanCx;
|
|
661
904
|
const cx = isCopied ? `${baseCx} text-transparent` : baseCx;
|
|
662
|
-
return /* @__PURE__ */
|
|
905
|
+
return /* @__PURE__ */ jsx11(Tooltip, { content: isTruncated ? children : null, children: /* @__PURE__ */ jsxs4(
|
|
663
906
|
"span",
|
|
664
907
|
{
|
|
665
908
|
ref,
|
|
@@ -671,8 +914,8 @@ var LeftEllipsis = ({ children, copyValue }) => {
|
|
|
671
914
|
role: isCopyable ? "button" : void 0,
|
|
672
915
|
tabIndex: isCopyable ? 0 : void 0,
|
|
673
916
|
children: [
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
isCopied && /* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ jsx11("bdi", { children }),
|
|
918
|
+
isCopied && /* @__PURE__ */ jsx11(CopiedOverlay, {})
|
|
676
919
|
]
|
|
677
920
|
}
|
|
678
921
|
) });
|
|
@@ -686,7 +929,7 @@ var MiddleEllipsisString = ({ text, copyValue }) => {
|
|
|
686
929
|
const isCopyable = copyValue != null;
|
|
687
930
|
const baseCx = isCopyable ? `${middleCx} ${copyCx} relative` : middleCx;
|
|
688
931
|
const cx = isCopied ? `${baseCx} text-transparent` : baseCx;
|
|
689
|
-
return /* @__PURE__ */
|
|
932
|
+
return /* @__PURE__ */ jsx11(Tooltip, { content: isTruncated ? text : null, children: /* @__PURE__ */ jsxs4(
|
|
690
933
|
"span",
|
|
691
934
|
{
|
|
692
935
|
ref,
|
|
@@ -699,16 +942,16 @@ var MiddleEllipsisString = ({ text, copyValue }) => {
|
|
|
699
942
|
tabIndex: isCopyable ? 0 : void 0,
|
|
700
943
|
children: [
|
|
701
944
|
displayed,
|
|
702
|
-
isCopied && /* @__PURE__ */
|
|
945
|
+
isCopied && /* @__PURE__ */ jsx11(CopiedOverlay, {})
|
|
703
946
|
]
|
|
704
947
|
}
|
|
705
948
|
) });
|
|
706
949
|
};
|
|
707
950
|
var TruncatedText = ({ children, ellipsis = "right", copyValue }) => {
|
|
708
|
-
if (ellipsis === "left") return /* @__PURE__ */
|
|
951
|
+
if (ellipsis === "left") return /* @__PURE__ */ jsx11(LeftEllipsis, { copyValue, children });
|
|
709
952
|
if (ellipsis === "middle" && typeof children === "string")
|
|
710
|
-
return /* @__PURE__ */
|
|
711
|
-
return /* @__PURE__ */
|
|
953
|
+
return /* @__PURE__ */ jsx11(MiddleEllipsisString, { text: children, copyValue });
|
|
954
|
+
return /* @__PURE__ */ jsx11(RightEllipsis, { copyValue, children });
|
|
712
955
|
};
|
|
713
956
|
|
|
714
957
|
// src/components/IconButton/IconButton.tsx
|
|
@@ -717,8 +960,8 @@ import {
|
|
|
717
960
|
Link as AriaLink2,
|
|
718
961
|
ToggleButton as AriaToggleButton
|
|
719
962
|
} from "react-aria-components";
|
|
720
|
-
import { twMerge as
|
|
721
|
-
import { jsx as
|
|
963
|
+
import { twMerge as twMerge7 } from "tailwind-merge";
|
|
964
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
722
965
|
var squareSizeStyles = {
|
|
723
966
|
xs: "h-7 w-7",
|
|
724
967
|
// 28px
|
|
@@ -741,7 +984,7 @@ function IconButtonBase({
|
|
|
741
984
|
ref,
|
|
742
985
|
...props
|
|
743
986
|
}) {
|
|
744
|
-
const cx =
|
|
987
|
+
const cx = twMerge7(
|
|
745
988
|
buttonBaseClass,
|
|
746
989
|
isLoading ? "pointer-events-none" : "",
|
|
747
990
|
variantStyles[variant],
|
|
@@ -750,7 +993,7 @@ function IconButtonBase({
|
|
|
750
993
|
squareSizeStyles[size],
|
|
751
994
|
className
|
|
752
995
|
);
|
|
753
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx12(Tooltip, { content: label, children: /* @__PURE__ */ jsx12(
|
|
754
997
|
Component,
|
|
755
998
|
{
|
|
756
999
|
...props,
|
|
@@ -758,18 +1001,18 @@ function IconButtonBase({
|
|
|
758
1001
|
"aria-label": label,
|
|
759
1002
|
isDisabled: isDisabled || isLoading,
|
|
760
1003
|
className: cx,
|
|
761
|
-
children: isLoading ? /* @__PURE__ */
|
|
1004
|
+
children: isLoading ? /* @__PURE__ */ jsx12(Spinner, { size }) : /* @__PURE__ */ jsx12(Icon, { icon, size })
|
|
762
1005
|
}
|
|
763
1006
|
) });
|
|
764
1007
|
}
|
|
765
1008
|
function IconButton(props) {
|
|
766
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ jsx12(IconButtonBase, { as: AriaButton2, ...props });
|
|
767
1010
|
}
|
|
768
1011
|
function IconButtonLink(props) {
|
|
769
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ jsx12(IconButtonBase, { as: AriaLink2, ...props });
|
|
770
1013
|
}
|
|
771
1014
|
function IconButtonToggle(props) {
|
|
772
|
-
return /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ jsx12(IconButtonBase, { as: AriaToggleButton, ...props });
|
|
773
1016
|
}
|
|
774
1017
|
|
|
775
1018
|
// src/components/Form/Input/Input.tsx
|
|
@@ -778,13 +1021,13 @@ import {
|
|
|
778
1021
|
Input as AriaInput,
|
|
779
1022
|
Text
|
|
780
1023
|
} from "react-aria-components";
|
|
781
|
-
import { twMerge as
|
|
1024
|
+
import { twMerge as twMerge8 } from "tailwind-merge";
|
|
782
1025
|
|
|
783
1026
|
// src/components/Form/Label/Label.tsx
|
|
784
1027
|
import {
|
|
785
1028
|
Label as AriaLabel
|
|
786
1029
|
} from "react-aria-components";
|
|
787
|
-
import { jsx as
|
|
1030
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
788
1031
|
function Label({ isRequired, children, className, ...props }) {
|
|
789
1032
|
return /* @__PURE__ */ jsxs5(
|
|
790
1033
|
AriaLabel,
|
|
@@ -798,7 +1041,7 @@ function Label({ isRequired, children, className, ...props }) {
|
|
|
798
1041
|
].filter(Boolean).join(" "),
|
|
799
1042
|
children: [
|
|
800
1043
|
children,
|
|
801
|
-
isRequired && /* @__PURE__ */
|
|
1044
|
+
isRequired && /* @__PURE__ */ jsx13(
|
|
802
1045
|
"span",
|
|
803
1046
|
{
|
|
804
1047
|
"aria-hidden": "true",
|
|
@@ -812,7 +1055,7 @@ function Label({ isRequired, children, className, ...props }) {
|
|
|
812
1055
|
}
|
|
813
1056
|
|
|
814
1057
|
// src/components/Form/Input/Input.tsx
|
|
815
|
-
import { jsx as
|
|
1058
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
816
1059
|
var alignClasses = {
|
|
817
1060
|
left: "text-left",
|
|
818
1061
|
center: "text-center",
|
|
@@ -845,13 +1088,13 @@ function Input({
|
|
|
845
1088
|
isDisabled,
|
|
846
1089
|
isRequired,
|
|
847
1090
|
isInvalid,
|
|
848
|
-
className:
|
|
1091
|
+
className: twMerge8("flex w-full flex-col gap-1", className),
|
|
849
1092
|
children: [
|
|
850
|
-
label && /* @__PURE__ */
|
|
1093
|
+
label && /* @__PURE__ */ jsx14(Label, { isRequired, children: label }),
|
|
851
1094
|
prefix ? /* @__PURE__ */ jsxs6(
|
|
852
1095
|
"div",
|
|
853
1096
|
{
|
|
854
|
-
className:
|
|
1097
|
+
className: twMerge8(
|
|
855
1098
|
"flex items-center overflow-hidden",
|
|
856
1099
|
radiusClass,
|
|
857
1100
|
"border",
|
|
@@ -862,10 +1105,10 @@ function Input({
|
|
|
862
1105
|
isDisabled && "opacity-50 pointer-events-none"
|
|
863
1106
|
),
|
|
864
1107
|
children: [
|
|
865
|
-
/* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ jsx14(
|
|
866
1109
|
"span",
|
|
867
1110
|
{
|
|
868
|
-
className:
|
|
1111
|
+
className: twMerge8(
|
|
869
1112
|
"self-stretch flex items-center shrink-0 select-none",
|
|
870
1113
|
"bg-card",
|
|
871
1114
|
"border-r border-r-border",
|
|
@@ -875,11 +1118,11 @@ function Input({
|
|
|
875
1118
|
children: prefix
|
|
876
1119
|
}
|
|
877
1120
|
),
|
|
878
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ jsx14(
|
|
879
1122
|
AriaInput,
|
|
880
1123
|
{
|
|
881
1124
|
placeholder,
|
|
882
|
-
className:
|
|
1125
|
+
className: twMerge8(
|
|
883
1126
|
"w-full bg-transparent",
|
|
884
1127
|
sizeStyles[size],
|
|
885
1128
|
alignClasses[align],
|
|
@@ -891,11 +1134,11 @@ function Input({
|
|
|
891
1134
|
)
|
|
892
1135
|
]
|
|
893
1136
|
}
|
|
894
|
-
) : /* @__PURE__ */
|
|
1137
|
+
) : /* @__PURE__ */ jsx14(
|
|
895
1138
|
AriaInput,
|
|
896
1139
|
{
|
|
897
1140
|
placeholder,
|
|
898
|
-
className:
|
|
1141
|
+
className: twMerge8(
|
|
899
1142
|
"w-full",
|
|
900
1143
|
sizeStyles[size],
|
|
901
1144
|
alignClasses[align],
|
|
@@ -911,8 +1154,8 @@ function Input({
|
|
|
911
1154
|
)
|
|
912
1155
|
}
|
|
913
1156
|
),
|
|
914
|
-
description && /* @__PURE__ */
|
|
915
|
-
isInvalid && /* @__PURE__ */
|
|
1157
|
+
description && /* @__PURE__ */ jsx14(Text, { slot: "description", className: "text-sm text-muted-foreground", children: description }),
|
|
1158
|
+
isInvalid && /* @__PURE__ */ jsx14(
|
|
916
1159
|
Text,
|
|
917
1160
|
{
|
|
918
1161
|
slot: "errorMessage",
|
|
@@ -927,11 +1170,11 @@ function Input({
|
|
|
927
1170
|
}
|
|
928
1171
|
|
|
929
1172
|
// src/components/Form/InputPassword/InputPassword.tsx
|
|
930
|
-
import { forwardRef, useId, useState as useState5 } from "react";
|
|
1173
|
+
import { forwardRef as forwardRef6, useId, useState as useState5 } from "react";
|
|
931
1174
|
import { Eye as Eye2, EyeOff as EyeOff2 } from "lucide-react";
|
|
932
|
-
import { twMerge as
|
|
933
|
-
import { jsx as
|
|
934
|
-
var InputPassword =
|
|
1175
|
+
import { twMerge as twMerge9 } from "tailwind-merge";
|
|
1176
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1177
|
+
var InputPassword = forwardRef6(
|
|
935
1178
|
function InputPassword2({
|
|
936
1179
|
label,
|
|
937
1180
|
description,
|
|
@@ -956,7 +1199,7 @@ var InputPassword = forwardRef(
|
|
|
956
1199
|
const errId = isInvalid ? `${inputId}-error` : void 0;
|
|
957
1200
|
const describedBy = [descId, errId, ariaDescribedByProp].filter(Boolean).join(" ") || void 0;
|
|
958
1201
|
const toggleDisabled = isToggleDisabled ?? isDisabled;
|
|
959
|
-
return /* @__PURE__ */ jsxs7("div", { className:
|
|
1202
|
+
return /* @__PURE__ */ jsxs7("div", { className: twMerge9("flex w-full flex-col gap-1", className), children: [
|
|
960
1203
|
label && /* @__PURE__ */ jsxs7(
|
|
961
1204
|
"label",
|
|
962
1205
|
{
|
|
@@ -964,14 +1207,14 @@ var InputPassword = forwardRef(
|
|
|
964
1207
|
className: "text-sm font-medium text-foreground",
|
|
965
1208
|
children: [
|
|
966
1209
|
label,
|
|
967
|
-
isRequired && /* @__PURE__ */
|
|
1210
|
+
isRequired && /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
|
|
968
1211
|
]
|
|
969
1212
|
}
|
|
970
1213
|
),
|
|
971
1214
|
/* @__PURE__ */ jsxs7(
|
|
972
1215
|
"div",
|
|
973
1216
|
{
|
|
974
|
-
className:
|
|
1217
|
+
className: twMerge9(
|
|
975
1218
|
"flex items-center overflow-hidden rounded-md border bg-background",
|
|
976
1219
|
"outline-none transition-colors",
|
|
977
1220
|
isInvalid ? "border-destructive-border" : "border-border",
|
|
@@ -979,7 +1222,7 @@ var InputPassword = forwardRef(
|
|
|
979
1222
|
isDisabled && "opacity-50 pointer-events-none"
|
|
980
1223
|
),
|
|
981
1224
|
children: [
|
|
982
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ jsx15(
|
|
983
1226
|
"input",
|
|
984
1227
|
{
|
|
985
1228
|
...inputProps,
|
|
@@ -990,7 +1233,7 @@ var InputPassword = forwardRef(
|
|
|
990
1233
|
disabled: isDisabled,
|
|
991
1234
|
"aria-invalid": isInvalid || ariaInvalidProp,
|
|
992
1235
|
"aria-describedby": describedBy,
|
|
993
|
-
className:
|
|
1236
|
+
className: twMerge9(
|
|
994
1237
|
"w-full bg-transparent text-foreground",
|
|
995
1238
|
"placeholder:text-muted-foreground",
|
|
996
1239
|
"outline-none border-none",
|
|
@@ -998,7 +1241,7 @@ var InputPassword = forwardRef(
|
|
|
998
1241
|
)
|
|
999
1242
|
}
|
|
1000
1243
|
),
|
|
1001
|
-
/* @__PURE__ */
|
|
1244
|
+
/* @__PURE__ */ jsx15(
|
|
1002
1245
|
"button",
|
|
1003
1246
|
{
|
|
1004
1247
|
type: "button",
|
|
@@ -1006,20 +1249,20 @@ var InputPassword = forwardRef(
|
|
|
1006
1249
|
disabled: toggleDisabled,
|
|
1007
1250
|
tabIndex: toggleDisabled ? -1 : void 0,
|
|
1008
1251
|
onClick: () => setVisible((v) => !v),
|
|
1009
|
-
className:
|
|
1252
|
+
className: twMerge9(
|
|
1010
1253
|
"flex items-center justify-center shrink-0 self-stretch px-3 cursor-pointer",
|
|
1011
1254
|
"text-muted-foreground hover:text-foreground transition-colors",
|
|
1012
1255
|
"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
1013
1256
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
1014
1257
|
),
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1258
|
+
children: /* @__PURE__ */ jsx15(Icon, { icon: visible ? EyeOff2 : Eye2, size: "sm" })
|
|
1016
1259
|
}
|
|
1017
1260
|
)
|
|
1018
1261
|
]
|
|
1019
1262
|
}
|
|
1020
1263
|
),
|
|
1021
|
-
description && /* @__PURE__ */
|
|
1022
|
-
isInvalid && /* @__PURE__ */
|
|
1264
|
+
description && /* @__PURE__ */ jsx15("p", { id: descId, className: "text-sm text-muted-foreground", children: description }),
|
|
1265
|
+
isInvalid && /* @__PURE__ */ jsx15("p", { id: errId, role: "alert", className: "text-sm text-destructive", children: errorMessage })
|
|
1023
1266
|
] });
|
|
1024
1267
|
}
|
|
1025
1268
|
);
|
|
@@ -1035,8 +1278,8 @@ import {
|
|
|
1035
1278
|
SelectValue,
|
|
1036
1279
|
Text as Text2
|
|
1037
1280
|
} from "react-aria-components";
|
|
1038
|
-
import { twMerge as
|
|
1039
|
-
import { Fragment, jsx as
|
|
1281
|
+
import { twMerge as twMerge10 } from "tailwind-merge";
|
|
1282
|
+
import { Fragment, jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1040
1283
|
function Select({
|
|
1041
1284
|
label,
|
|
1042
1285
|
items,
|
|
@@ -1058,14 +1301,14 @@ function Select({
|
|
|
1058
1301
|
isDisabled,
|
|
1059
1302
|
isRequired,
|
|
1060
1303
|
isInvalid: hasError,
|
|
1061
|
-
className:
|
|
1304
|
+
className: twMerge10("flex flex-col gap-1", className),
|
|
1062
1305
|
children: [
|
|
1063
|
-
label && /* @__PURE__ */
|
|
1306
|
+
label && /* @__PURE__ */ jsx16(Label, { isRequired, children: label }),
|
|
1064
1307
|
/* @__PURE__ */ jsxs8(
|
|
1065
1308
|
Button2,
|
|
1066
1309
|
{
|
|
1067
1310
|
"aria-required": isRequired || void 0,
|
|
1068
|
-
className:
|
|
1311
|
+
className: twMerge10(
|
|
1069
1312
|
`
|
|
1070
1313
|
inline-flex items-center justify-between
|
|
1071
1314
|
w-full rounded-md
|
|
@@ -1079,10 +1322,10 @@ function Select({
|
|
|
1079
1322
|
hasError ? "border-destructive-border" : "border-border"
|
|
1080
1323
|
),
|
|
1081
1324
|
children: [
|
|
1082
|
-
/* @__PURE__ */
|
|
1325
|
+
/* @__PURE__ */ jsx16(
|
|
1083
1326
|
SelectValue,
|
|
1084
1327
|
{
|
|
1085
|
-
className:
|
|
1328
|
+
className: twMerge10(
|
|
1086
1329
|
renderItem ? "min-w-0" : "truncate",
|
|
1087
1330
|
"data-placeholder:text-muted-foreground"
|
|
1088
1331
|
),
|
|
@@ -1093,11 +1336,11 @@ function Select({
|
|
|
1093
1336
|
}
|
|
1094
1337
|
}
|
|
1095
1338
|
),
|
|
1096
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ jsx16(
|
|
1097
1340
|
ChevronDown2,
|
|
1098
1341
|
{
|
|
1099
1342
|
"aria-hidden": true,
|
|
1100
|
-
className:
|
|
1343
|
+
className: twMerge10(
|
|
1101
1344
|
"shrink-0 text-muted-foreground",
|
|
1102
1345
|
size === "sm" ? "h-3.5 w-3.5" : "h-4 w-4"
|
|
1103
1346
|
)
|
|
@@ -1106,8 +1349,8 @@ function Select({
|
|
|
1106
1349
|
]
|
|
1107
1350
|
}
|
|
1108
1351
|
),
|
|
1109
|
-
description && /* @__PURE__ */
|
|
1110
|
-
hasError && /* @__PURE__ */
|
|
1352
|
+
description && /* @__PURE__ */ jsx16(Text2, { slot: "description", className: "text-sm text-muted-foreground", children: description }),
|
|
1353
|
+
hasError && /* @__PURE__ */ jsx16(
|
|
1111
1354
|
Text2,
|
|
1112
1355
|
{
|
|
1113
1356
|
slot: "errorMessage",
|
|
@@ -1116,10 +1359,10 @@ function Select({
|
|
|
1116
1359
|
children: errorMessage
|
|
1117
1360
|
}
|
|
1118
1361
|
),
|
|
1119
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ jsx16(
|
|
1120
1363
|
Popover,
|
|
1121
1364
|
{
|
|
1122
|
-
className:
|
|
1365
|
+
className: twMerge10(
|
|
1123
1366
|
"w-(--trigger-width)",
|
|
1124
1367
|
"rounded-md",
|
|
1125
1368
|
"border border-border",
|
|
@@ -1129,12 +1372,12 @@ function Select({
|
|
|
1129
1372
|
"entering:animate-in entering:fade-in",
|
|
1130
1373
|
"exiting:animate-out exiting:fade-out"
|
|
1131
1374
|
),
|
|
1132
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ jsx16(ListBox, { className: "p-1 outline-none", items, children: (item) => /* @__PURE__ */ jsx16(
|
|
1133
1376
|
ListBoxItem,
|
|
1134
1377
|
{
|
|
1135
1378
|
id: item.id,
|
|
1136
1379
|
textValue: item.name,
|
|
1137
|
-
className:
|
|
1380
|
+
className: twMerge10(
|
|
1138
1381
|
`
|
|
1139
1382
|
flex items-center justify-between gap-2
|
|
1140
1383
|
rounded-sm
|
|
@@ -1147,8 +1390,8 @@ function Select({
|
|
|
1147
1390
|
sizeStyles[size]
|
|
1148
1391
|
),
|
|
1149
1392
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs8(Fragment, { children: [
|
|
1150
|
-
/* @__PURE__ */
|
|
1151
|
-
isSelected && /* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ jsx16("span", { className: renderItem ? "min-w-0 flex-1" : "truncate", children: renderItem ? renderItem(item) : item.name }),
|
|
1394
|
+
isSelected && /* @__PURE__ */ jsx16(Check2, { className: "h-4 w-4 shrink-0 text-primary" })
|
|
1152
1395
|
] })
|
|
1153
1396
|
}
|
|
1154
1397
|
) })
|
|
@@ -1168,18 +1411,22 @@ import {
|
|
|
1168
1411
|
TableBody as AriaTableBody,
|
|
1169
1412
|
TableHeader as AriaTableHeader
|
|
1170
1413
|
} from "react-aria-components";
|
|
1171
|
-
import { jsx as
|
|
1414
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1172
1415
|
var tableSizeClass = {
|
|
1173
1416
|
compact: "[--table-row-py:theme(spacing.1)]",
|
|
1174
1417
|
comfortable: "[--table-row-py:theme(spacing.3)]"
|
|
1175
1418
|
};
|
|
1176
|
-
function Table2({
|
|
1177
|
-
|
|
1419
|
+
function Table2({
|
|
1420
|
+
size = "comfortable",
|
|
1421
|
+
className,
|
|
1422
|
+
...props
|
|
1423
|
+
}) {
|
|
1424
|
+
return /* @__PURE__ */ jsx17(
|
|
1178
1425
|
AriaTable,
|
|
1179
1426
|
{
|
|
1180
1427
|
...props,
|
|
1181
1428
|
className: [
|
|
1182
|
-
"w-full border-collapse text-
|
|
1429
|
+
"w-full border-collapse text-sm text-foreground",
|
|
1183
1430
|
tableSizeClass[size],
|
|
1184
1431
|
className
|
|
1185
1432
|
].filter(Boolean).join(" ")
|
|
@@ -1187,10 +1434,10 @@ function Table2({ size = "comfortable", className, ...props }) {
|
|
|
1187
1434
|
);
|
|
1188
1435
|
}
|
|
1189
1436
|
function TableHeader(props) {
|
|
1190
|
-
return /* @__PURE__ */
|
|
1437
|
+
return /* @__PURE__ */ jsx17(AriaTableHeader, { ...props });
|
|
1191
1438
|
}
|
|
1192
1439
|
function Column(props) {
|
|
1193
|
-
return /* @__PURE__ */
|
|
1440
|
+
return /* @__PURE__ */ jsx17(
|
|
1194
1441
|
AriaColumn,
|
|
1195
1442
|
{
|
|
1196
1443
|
...props,
|
|
@@ -1202,16 +1449,16 @@ function Column(props) {
|
|
|
1202
1449
|
].join(" "),
|
|
1203
1450
|
children: ({ allowsSorting, sortDirection }) => /* @__PURE__ */ jsxs9("span", { className: "inline-flex items-center gap-1", children: [
|
|
1204
1451
|
props.children,
|
|
1205
|
-
allowsSorting && /* @__PURE__ */
|
|
1452
|
+
allowsSorting && /* @__PURE__ */ jsx17("span", { "aria-hidden": "true", className: "text-muted-foreground", children: sortDirection === "ascending" ? "\u25B2" : sortDirection === "descending" ? "\u25BC" : "\u25B4" })
|
|
1206
1453
|
] })
|
|
1207
1454
|
}
|
|
1208
1455
|
);
|
|
1209
1456
|
}
|
|
1210
1457
|
function TableBody(props) {
|
|
1211
|
-
return /* @__PURE__ */
|
|
1458
|
+
return /* @__PURE__ */ jsx17(AriaTableBody, { ...props });
|
|
1212
1459
|
}
|
|
1213
1460
|
function Row(props) {
|
|
1214
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ jsx17(
|
|
1215
1462
|
AriaRow,
|
|
1216
1463
|
{
|
|
1217
1464
|
...props,
|
|
@@ -1227,7 +1474,7 @@ function Row(props) {
|
|
|
1227
1474
|
);
|
|
1228
1475
|
}
|
|
1229
1476
|
function Cell(props) {
|
|
1230
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ jsx17(
|
|
1231
1478
|
AriaCell,
|
|
1232
1479
|
{
|
|
1233
1480
|
...props,
|
|
@@ -1246,10 +1493,10 @@ import {
|
|
|
1246
1493
|
Modal,
|
|
1247
1494
|
ModalOverlay,
|
|
1248
1495
|
Dialog as AriaDialog,
|
|
1249
|
-
Heading
|
|
1496
|
+
Heading as Heading3
|
|
1250
1497
|
} from "react-aria-components";
|
|
1251
1498
|
import { X as X2 } from "lucide-react";
|
|
1252
|
-
import { Fragment as Fragment2, jsx as
|
|
1499
|
+
import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1253
1500
|
var sizeStyles2 = {
|
|
1254
1501
|
sm: "max-w-md",
|
|
1255
1502
|
md: "max-w-lg",
|
|
@@ -1265,7 +1512,7 @@ function Dialog({
|
|
|
1265
1512
|
children,
|
|
1266
1513
|
className
|
|
1267
1514
|
}) {
|
|
1268
|
-
return /* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ jsx18(
|
|
1269
1516
|
ModalOverlay,
|
|
1270
1517
|
{
|
|
1271
1518
|
isOpen,
|
|
@@ -1277,7 +1524,7 @@ function Dialog({
|
|
|
1277
1524
|
"entering:animate-in entering:fade-in",
|
|
1278
1525
|
"exiting:animate-out exiting:fade-out"
|
|
1279
1526
|
].join(" "),
|
|
1280
|
-
children: /* @__PURE__ */
|
|
1527
|
+
children: /* @__PURE__ */ jsx18(
|
|
1281
1528
|
Modal,
|
|
1282
1529
|
{
|
|
1283
1530
|
className: [
|
|
@@ -1288,17 +1535,17 @@ function Dialog({
|
|
|
1288
1535
|
"exiting:animate-out exiting:zoom-out-95 exiting:fade-out",
|
|
1289
1536
|
className
|
|
1290
1537
|
].filter(Boolean).join(" "),
|
|
1291
|
-
children: /* @__PURE__ */
|
|
1538
|
+
children: /* @__PURE__ */ jsx18(AriaDialog, { className: "outline-none flex flex-col max-h-[85vh]", children: ({ close }) => /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1292
1539
|
/* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between px-6 py-4 border-b border-border", children: [
|
|
1293
|
-
/* @__PURE__ */
|
|
1294
|
-
|
|
1540
|
+
/* @__PURE__ */ jsx18(
|
|
1541
|
+
Heading3,
|
|
1295
1542
|
{
|
|
1296
1543
|
slot: "title",
|
|
1297
1544
|
className: "text-lg font-semibold text-foreground",
|
|
1298
1545
|
children: title
|
|
1299
1546
|
}
|
|
1300
1547
|
),
|
|
1301
|
-
/* @__PURE__ */
|
|
1548
|
+
/* @__PURE__ */ jsx18(
|
|
1302
1549
|
"button",
|
|
1303
1550
|
{
|
|
1304
1551
|
type: "button",
|
|
@@ -1310,11 +1557,11 @@ function Dialog({
|
|
|
1310
1557
|
"transition-colors"
|
|
1311
1558
|
].join(" "),
|
|
1312
1559
|
"aria-label": "Close",
|
|
1313
|
-
children: /* @__PURE__ */
|
|
1560
|
+
children: /* @__PURE__ */ jsx18(X2, { size: 20, "aria-hidden": "true" })
|
|
1314
1561
|
}
|
|
1315
1562
|
)
|
|
1316
1563
|
] }),
|
|
1317
|
-
/* @__PURE__ */
|
|
1564
|
+
/* @__PURE__ */ jsx18("div", { className: "px-6 py-4 overflow-y-auto", children })
|
|
1318
1565
|
] }) })
|
|
1319
1566
|
}
|
|
1320
1567
|
)
|
|
@@ -1323,7 +1570,7 @@ function Dialog({
|
|
|
1323
1570
|
}
|
|
1324
1571
|
|
|
1325
1572
|
// src/components/Dialog/DialogFooter.tsx
|
|
1326
|
-
import { jsx as
|
|
1573
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1327
1574
|
|
|
1328
1575
|
// src/components/Toast/Toast.tsx
|
|
1329
1576
|
import {
|
|
@@ -1336,7 +1583,7 @@ import {
|
|
|
1336
1583
|
} from "react";
|
|
1337
1584
|
import { createPortal as createPortal2 } from "react-dom";
|
|
1338
1585
|
import { CheckCircle as CheckCircle3, XCircle as XCircle2, Info as Info2, X as X3 } from "lucide-react";
|
|
1339
|
-
import { jsx as
|
|
1586
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1340
1587
|
var ToastContext = createContext(null);
|
|
1341
1588
|
var toastCounter = 0;
|
|
1342
1589
|
var defaultDuration = {
|
|
@@ -1407,16 +1654,16 @@ function ToastItem({
|
|
|
1407
1654
|
config.containerClass
|
|
1408
1655
|
].join(" "),
|
|
1409
1656
|
children: [
|
|
1410
|
-
/* @__PURE__ */
|
|
1411
|
-
/* @__PURE__ */
|
|
1412
|
-
/* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ jsx20(IconComponent, { size: 20, className: ["shrink-0 mt-0.5", config.iconClass].join(" "), "aria-hidden": "true" }),
|
|
1658
|
+
/* @__PURE__ */ jsx20("p", { className: "flex-1 text-sm font-medium", children: toast.message }),
|
|
1659
|
+
/* @__PURE__ */ jsx20(
|
|
1413
1660
|
"button",
|
|
1414
1661
|
{
|
|
1415
1662
|
type: "button",
|
|
1416
1663
|
onClick: dismiss,
|
|
1417
1664
|
className: "shrink-0 rounded-sm p-0.5 opacity-70 hover:opacity-100 transition-opacity outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
1418
1665
|
"aria-label": "Dismiss",
|
|
1419
|
-
children: /* @__PURE__ */
|
|
1666
|
+
children: /* @__PURE__ */ jsx20(X3, { size: 16, "aria-hidden": "true" })
|
|
1420
1667
|
}
|
|
1421
1668
|
)
|
|
1422
1669
|
]
|
|
@@ -1436,7 +1683,7 @@ function ToastContainer({
|
|
|
1436
1683
|
}) {
|
|
1437
1684
|
if (toasts.length === 0) return null;
|
|
1438
1685
|
return createPortal2(
|
|
1439
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ jsx20(PlacementContext.Provider, { value: placement, children: /* @__PURE__ */ jsx20("div", { className: containerPositionStyles[placement], children: toasts.map((toast) => /* @__PURE__ */ jsx20(ToastItem, { toast, onRemove: removeToast }, toast.id)) }) }),
|
|
1440
1687
|
document.body
|
|
1441
1688
|
);
|
|
1442
1689
|
}
|
|
@@ -1469,7 +1716,7 @@ function ToastProvider({ children, bridge, placement = "bottom-right" }) {
|
|
|
1469
1716
|
}, [bridge, addToast]);
|
|
1470
1717
|
return /* @__PURE__ */ jsxs11(ToastContext.Provider, { value: { toasts, addToast, removeToast }, children: [
|
|
1471
1718
|
children,
|
|
1472
|
-
/* @__PURE__ */
|
|
1719
|
+
/* @__PURE__ */ jsx20(ToastContainer, { toasts, removeToast, placement })
|
|
1473
1720
|
] });
|
|
1474
1721
|
}
|
|
1475
1722
|
function useToast() {
|
|
@@ -1485,7 +1732,7 @@ function useToast() {
|
|
|
1485
1732
|
}
|
|
1486
1733
|
|
|
1487
1734
|
// src/components/EmptyState/EmptyState.tsx
|
|
1488
|
-
import { jsx as
|
|
1735
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1489
1736
|
function EmptyState({
|
|
1490
1737
|
icon,
|
|
1491
1738
|
title,
|
|
@@ -1501,10 +1748,10 @@ function EmptyState({
|
|
|
1501
1748
|
className
|
|
1502
1749
|
].filter(Boolean).join(" "),
|
|
1503
1750
|
children: [
|
|
1504
|
-
icon && /* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
description && /* @__PURE__ */
|
|
1507
|
-
action && /* @__PURE__ */
|
|
1751
|
+
icon && /* @__PURE__ */ jsx21(Icon, { icon, size: "xl", className: "text-muted-foreground" }),
|
|
1752
|
+
/* @__PURE__ */ jsx21("h3", { className: "text-lg font-semibold text-foreground mt-4", children: title }),
|
|
1753
|
+
description && /* @__PURE__ */ jsx21("p", { className: "text-sm text-muted-foreground mt-2 max-w-sm", children: description }),
|
|
1754
|
+
action && /* @__PURE__ */ jsx21("div", { className: "mt-6", children: action })
|
|
1508
1755
|
]
|
|
1509
1756
|
}
|
|
1510
1757
|
);
|
|
@@ -1515,9 +1762,9 @@ import {
|
|
|
1515
1762
|
Checkbox as AriaCheckbox
|
|
1516
1763
|
} from "react-aria-components";
|
|
1517
1764
|
import { Check as Check3 } from "lucide-react";
|
|
1518
|
-
import { Fragment as Fragment3, jsx as
|
|
1765
|
+
import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1519
1766
|
function Checkbox({ children, className, ...props }) {
|
|
1520
|
-
return /* @__PURE__ */
|
|
1767
|
+
return /* @__PURE__ */ jsx22(
|
|
1521
1768
|
AriaCheckbox,
|
|
1522
1769
|
{
|
|
1523
1770
|
...props,
|
|
@@ -1537,12 +1784,12 @@ function Checkbox({ children, className, ...props }) {
|
|
|
1537
1784
|
isSelected || isIndeterminate ? "bg-primary border-primary" : "bg-background border-border group-hover:border-border"
|
|
1538
1785
|
].join(" "),
|
|
1539
1786
|
children: [
|
|
1540
|
-
isSelected && /* @__PURE__ */
|
|
1541
|
-
isIndeterminate && /* @__PURE__ */
|
|
1787
|
+
isSelected && /* @__PURE__ */ jsx22(Check3, { className: "w-4 h-4 text-primary-foreground", strokeWidth: 3 }),
|
|
1788
|
+
isIndeterminate && /* @__PURE__ */ jsx22("div", { className: "w-3 h-0.5 bg-primary-foreground rounded-full" })
|
|
1542
1789
|
]
|
|
1543
1790
|
}
|
|
1544
1791
|
),
|
|
1545
|
-
children && /* @__PURE__ */
|
|
1792
|
+
children && /* @__PURE__ */ jsx22("span", { children })
|
|
1546
1793
|
] })
|
|
1547
1794
|
}
|
|
1548
1795
|
);
|
|
@@ -1552,7 +1799,7 @@ function Checkbox({ children, className, ...props }) {
|
|
|
1552
1799
|
import {
|
|
1553
1800
|
Switch as AriaSwitch
|
|
1554
1801
|
} from "react-aria-components";
|
|
1555
|
-
import { Fragment as Fragment4, jsx as
|
|
1802
|
+
import { Fragment as Fragment4, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1556
1803
|
var trackColorMap = {
|
|
1557
1804
|
primary: "bg-primary",
|
|
1558
1805
|
success: "bg-success",
|
|
@@ -1569,7 +1816,7 @@ function Switch({
|
|
|
1569
1816
|
...props
|
|
1570
1817
|
}) {
|
|
1571
1818
|
const isPreset = isPresetColor(color);
|
|
1572
|
-
return /* @__PURE__ */
|
|
1819
|
+
return /* @__PURE__ */ jsx23(
|
|
1573
1820
|
AriaSwitch,
|
|
1574
1821
|
{
|
|
1575
1822
|
...props,
|
|
@@ -1579,7 +1826,7 @@ function Switch({
|
|
|
1579
1826
|
className
|
|
1580
1827
|
].filter(Boolean).join(" "),
|
|
1581
1828
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
1582
|
-
/* @__PURE__ */
|
|
1829
|
+
/* @__PURE__ */ jsx23(
|
|
1583
1830
|
"div",
|
|
1584
1831
|
{
|
|
1585
1832
|
className: [
|
|
@@ -1588,7 +1835,7 @@ function Switch({
|
|
|
1588
1835
|
isSelected && isPreset ? trackColorMap[color] : !isSelected ? "bg-border" : ""
|
|
1589
1836
|
].join(" "),
|
|
1590
1837
|
style: isSelected && !isPreset ? { backgroundColor: color } : void 0,
|
|
1591
|
-
children: /* @__PURE__ */
|
|
1838
|
+
children: /* @__PURE__ */ jsx23(
|
|
1592
1839
|
"div",
|
|
1593
1840
|
{
|
|
1594
1841
|
className: [
|
|
@@ -1599,7 +1846,7 @@ function Switch({
|
|
|
1599
1846
|
)
|
|
1600
1847
|
}
|
|
1601
1848
|
),
|
|
1602
|
-
children && /* @__PURE__ */
|
|
1849
|
+
children && /* @__PURE__ */ jsx23("span", { children })
|
|
1603
1850
|
] })
|
|
1604
1851
|
}
|
|
1605
1852
|
);
|
|
@@ -1610,9 +1857,9 @@ import {
|
|
|
1610
1857
|
RadioGroup as AriaRadioGroup,
|
|
1611
1858
|
Radio as AriaRadio
|
|
1612
1859
|
} from "react-aria-components";
|
|
1613
|
-
import { Fragment as Fragment5, jsx as
|
|
1860
|
+
import { Fragment as Fragment5, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1614
1861
|
function RadioGroup({ children, className, ...props }) {
|
|
1615
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ jsx24(
|
|
1616
1863
|
AriaRadioGroup,
|
|
1617
1864
|
{
|
|
1618
1865
|
...props,
|
|
@@ -1626,7 +1873,7 @@ function RadioGroup({ children, className, ...props }) {
|
|
|
1626
1873
|
);
|
|
1627
1874
|
}
|
|
1628
1875
|
function Radio({ children, className, ...props }) {
|
|
1629
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ jsx24(
|
|
1630
1877
|
AriaRadio,
|
|
1631
1878
|
{
|
|
1632
1879
|
...props,
|
|
@@ -1636,7 +1883,7 @@ function Radio({ children, className, ...props }) {
|
|
|
1636
1883
|
className
|
|
1637
1884
|
].filter(Boolean).join(" "),
|
|
1638
1885
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs15(Fragment5, { children: [
|
|
1639
|
-
/* @__PURE__ */
|
|
1886
|
+
/* @__PURE__ */ jsx24(
|
|
1640
1887
|
"div",
|
|
1641
1888
|
{
|
|
1642
1889
|
className: [
|
|
@@ -1645,16 +1892,16 @@ function Radio({ children, className, ...props }) {
|
|
|
1645
1892
|
"group-focus-visible:ring-2 group-focus-visible:ring-ring group-focus-visible:ring-offset-2",
|
|
1646
1893
|
isSelected ? "border-primary" : "border-border group-hover:border-border"
|
|
1647
1894
|
].join(" "),
|
|
1648
|
-
children: isSelected && /* @__PURE__ */
|
|
1895
|
+
children: isSelected && /* @__PURE__ */ jsx24("div", { className: "w-2.5 h-2.5 rounded-full bg-primary" })
|
|
1649
1896
|
}
|
|
1650
1897
|
),
|
|
1651
|
-
children && /* @__PURE__ */
|
|
1898
|
+
children && /* @__PURE__ */ jsx24("span", { children })
|
|
1652
1899
|
] })
|
|
1653
1900
|
}
|
|
1654
1901
|
);
|
|
1655
1902
|
}
|
|
1656
1903
|
function RadioButton({ children, className, ...props }) {
|
|
1657
|
-
return /* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ jsx24(
|
|
1658
1905
|
AriaRadio,
|
|
1659
1906
|
{
|
|
1660
1907
|
...props,
|
|
@@ -1663,7 +1910,7 @@ function RadioButton({ children, className, ...props }) {
|
|
|
1663
1910
|
"disabled:opacity-50 disabled:cursor-default",
|
|
1664
1911
|
className
|
|
1665
1912
|
].filter(Boolean).join(" "),
|
|
1666
|
-
children: ({ isSelected }) => /* @__PURE__ */
|
|
1913
|
+
children: ({ isSelected }) => /* @__PURE__ */ jsx24(
|
|
1667
1914
|
"div",
|
|
1668
1915
|
{
|
|
1669
1916
|
className: [
|
|
@@ -1680,7 +1927,7 @@ function RadioButton({ children, className, ...props }) {
|
|
|
1680
1927
|
}
|
|
1681
1928
|
|
|
1682
1929
|
// src/components/Form/Fieldset/Fieldset.tsx
|
|
1683
|
-
import { jsx as
|
|
1930
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1684
1931
|
function Fieldset({ legend, children, className }) {
|
|
1685
1932
|
return /* @__PURE__ */ jsxs16(
|
|
1686
1933
|
"fieldset",
|
|
@@ -1691,7 +1938,7 @@ function Fieldset({ legend, children, className }) {
|
|
|
1691
1938
|
className
|
|
1692
1939
|
].filter(Boolean).join(" "),
|
|
1693
1940
|
children: [
|
|
1694
|
-
legend && /* @__PURE__ */
|
|
1941
|
+
legend && /* @__PURE__ */ jsx25(
|
|
1695
1942
|
"legend",
|
|
1696
1943
|
{
|
|
1697
1944
|
className: [
|
|
@@ -1709,74 +1956,11 @@ function Fieldset({ legend, children, className }) {
|
|
|
1709
1956
|
);
|
|
1710
1957
|
}
|
|
1711
1958
|
|
|
1712
|
-
// src/components/Heading/Heading.tsx
|
|
1713
|
-
import { twMerge as twMerge8 } from "tailwind-merge";
|
|
1714
|
-
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1715
|
-
var defaultSizeMap = {
|
|
1716
|
-
h1: "2xl",
|
|
1717
|
-
h2: "xl",
|
|
1718
|
-
h3: "lg",
|
|
1719
|
-
h4: "md",
|
|
1720
|
-
h5: "sm",
|
|
1721
|
-
h6: "xs"
|
|
1722
|
-
};
|
|
1723
|
-
var sizeStyles3 = {
|
|
1724
|
-
xs: "text-sm",
|
|
1725
|
-
sm: "text-base",
|
|
1726
|
-
md: "text-lg",
|
|
1727
|
-
lg: "text-xl",
|
|
1728
|
-
xl: "text-2xl",
|
|
1729
|
-
"2xl": "text-3xl",
|
|
1730
|
-
"3xl": "text-4xl"
|
|
1731
|
-
};
|
|
1732
|
-
var weightStyles = {
|
|
1733
|
-
semibold: "font-semibold",
|
|
1734
|
-
bold: "font-bold"
|
|
1735
|
-
};
|
|
1736
|
-
function Heading2({
|
|
1737
|
-
as: Tag2 = "h2",
|
|
1738
|
-
size,
|
|
1739
|
-
weight = "semibold",
|
|
1740
|
-
className,
|
|
1741
|
-
children
|
|
1742
|
-
}) {
|
|
1743
|
-
const resolvedSize = size ?? defaultSizeMap[Tag2];
|
|
1744
|
-
return /* @__PURE__ */ jsx20(
|
|
1745
|
-
Tag2,
|
|
1746
|
-
{
|
|
1747
|
-
className: twMerge8(
|
|
1748
|
-
weightStyles[weight],
|
|
1749
|
-
"text-foreground",
|
|
1750
|
-
sizeStyles3[resolvedSize],
|
|
1751
|
-
className
|
|
1752
|
-
),
|
|
1753
|
-
children
|
|
1754
|
-
}
|
|
1755
|
-
);
|
|
1756
|
-
}
|
|
1757
|
-
function H1(props) {
|
|
1758
|
-
return /* @__PURE__ */ jsx20(
|
|
1759
|
-
Heading2,
|
|
1760
|
-
{
|
|
1761
|
-
...props,
|
|
1762
|
-
as: "h1",
|
|
1763
|
-
size: props.size ?? "2xl",
|
|
1764
|
-
weight: props.weight ?? "bold"
|
|
1765
|
-
}
|
|
1766
|
-
);
|
|
1767
|
-
}
|
|
1768
|
-
function H2(props) {
|
|
1769
|
-
return /* @__PURE__ */ jsx20(Heading2, { ...props, as: "h2", size: props.size ?? "xl" });
|
|
1770
|
-
}
|
|
1771
|
-
function H3(props) {
|
|
1772
|
-
return /* @__PURE__ */ jsx20(Heading2, { ...props, as: "h3", size: props.size ?? "lg" });
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
1959
|
// src/components/Link/Link.tsx
|
|
1776
1960
|
import {
|
|
1777
1961
|
Link as AriaLink3
|
|
1778
1962
|
} from "react-aria-components";
|
|
1779
|
-
import { jsx as
|
|
1963
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1780
1964
|
var variantStyles2 = {
|
|
1781
1965
|
default: [
|
|
1782
1966
|
"text-teal-700 underline",
|
|
@@ -1792,7 +1976,7 @@ function Link({
|
|
|
1792
1976
|
className,
|
|
1793
1977
|
...props
|
|
1794
1978
|
}) {
|
|
1795
|
-
return /* @__PURE__ */
|
|
1979
|
+
return /* @__PURE__ */ jsx26(
|
|
1796
1980
|
AriaLink3,
|
|
1797
1981
|
{
|
|
1798
1982
|
...props,
|
|
@@ -1813,20 +1997,20 @@ import {
|
|
|
1813
1997
|
Link as Link2
|
|
1814
1998
|
} from "react-aria-components";
|
|
1815
1999
|
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1816
|
-
import { Fragment as Fragment6, jsx as
|
|
2000
|
+
import { Fragment as Fragment6, jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1817
2001
|
function Breadcrumbs({ items, className }) {
|
|
1818
|
-
return /* @__PURE__ */
|
|
2002
|
+
return /* @__PURE__ */ jsx27(
|
|
1819
2003
|
"nav",
|
|
1820
2004
|
{
|
|
1821
2005
|
"aria-label": "Breadcrumb",
|
|
1822
2006
|
className,
|
|
1823
|
-
children: /* @__PURE__ */
|
|
2007
|
+
children: /* @__PURE__ */ jsx27(
|
|
1824
2008
|
AriaBreadcrumbs,
|
|
1825
2009
|
{
|
|
1826
2010
|
className: "flex items-center gap-1 text-sm min-w-0",
|
|
1827
2011
|
children: items.map((item, index) => {
|
|
1828
2012
|
const isLast = index === items.length - 1;
|
|
1829
|
-
return /* @__PURE__ */
|
|
2013
|
+
return /* @__PURE__ */ jsx27(
|
|
1830
2014
|
AriaBreadcrumb,
|
|
1831
2015
|
{
|
|
1832
2016
|
id: item.id,
|
|
@@ -1834,8 +2018,8 @@ function Breadcrumbs({ items, className }) {
|
|
|
1834
2018
|
"flex items-center gap-1",
|
|
1835
2019
|
isLast ? "min-w-0" : "shrink-0"
|
|
1836
2020
|
].join(" "),
|
|
1837
|
-
children: isLast ? /* @__PURE__ */
|
|
1838
|
-
/* @__PURE__ */
|
|
2021
|
+
children: isLast ? /* @__PURE__ */ jsx27("span", { className: "font-medium text-foreground truncate", children: item.label }) : /* @__PURE__ */ jsxs17(Fragment6, { children: [
|
|
2022
|
+
/* @__PURE__ */ jsx27(
|
|
1839
2023
|
Link2,
|
|
1840
2024
|
{
|
|
1841
2025
|
href: item.href,
|
|
@@ -1843,10 +2027,10 @@ function Breadcrumbs({ items, className }) {
|
|
|
1843
2027
|
children: item.label
|
|
1844
2028
|
}
|
|
1845
2029
|
),
|
|
1846
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ jsx27(
|
|
1847
2031
|
ChevronRight2,
|
|
1848
2032
|
{
|
|
1849
|
-
className: "shrink-0 text-
|
|
2033
|
+
className: "shrink-0 text-slate-400",
|
|
1850
2034
|
size: 16,
|
|
1851
2035
|
"aria-hidden": "true"
|
|
1852
2036
|
}
|
|
@@ -1866,8 +2050,8 @@ function Breadcrumbs({ items, className }) {
|
|
|
1866
2050
|
import {
|
|
1867
2051
|
ToggleButton as AriaToggleButton2
|
|
1868
2052
|
} from "react-aria-components";
|
|
1869
|
-
import { twMerge as
|
|
1870
|
-
import { jsx as
|
|
2053
|
+
import { twMerge as twMerge11 } from "tailwind-merge";
|
|
2054
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1871
2055
|
var squareSizeStyles2 = {
|
|
1872
2056
|
xs: "h-6 w-6 text-xs",
|
|
1873
2057
|
sm: "h-7 w-7 text-sm",
|
|
@@ -1899,8 +2083,8 @@ var variantStyles3 = {
|
|
|
1899
2083
|
"pressed:bg-muted"
|
|
1900
2084
|
].join(" "),
|
|
1901
2085
|
selected: [
|
|
1902
|
-
"bg-
|
|
1903
|
-
"border border-
|
|
2086
|
+
"bg-slate-800 text-primary-foreground",
|
|
2087
|
+
"border border-slate-800"
|
|
1904
2088
|
].join(" ")
|
|
1905
2089
|
}
|
|
1906
2090
|
};
|
|
@@ -1912,11 +2096,11 @@ function ToggleButton({
|
|
|
1912
2096
|
...props
|
|
1913
2097
|
}) {
|
|
1914
2098
|
const styles = variantStyles3[variant];
|
|
1915
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ jsx28(
|
|
1916
2100
|
AriaToggleButton2,
|
|
1917
2101
|
{
|
|
1918
2102
|
...props,
|
|
1919
|
-
className: ({ isSelected }) =>
|
|
2103
|
+
className: ({ isSelected }) => twMerge11(
|
|
1920
2104
|
"inline-flex items-center justify-center gap-2 cursor-pointer",
|
|
1921
2105
|
isSquare ? "rounded-none" : "rounded-md",
|
|
1922
2106
|
"font-medium",
|
|
@@ -1939,7 +2123,7 @@ import {
|
|
|
1939
2123
|
MenuItem as AriaMenuItem,
|
|
1940
2124
|
Popover as Popover2
|
|
1941
2125
|
} from "react-aria-components";
|
|
1942
|
-
import { twMerge as
|
|
2126
|
+
import { twMerge as twMerge12 } from "tailwind-merge";
|
|
1943
2127
|
|
|
1944
2128
|
// src/components/Menu/menuStyles.ts
|
|
1945
2129
|
var popoverStyles = `
|
|
@@ -1951,8 +2135,8 @@ var popoverStyles = `
|
|
|
1951
2135
|
`;
|
|
1952
2136
|
|
|
1953
2137
|
// src/components/Menu/Menu.tsx
|
|
1954
|
-
import { jsx as
|
|
1955
|
-
function
|
|
2138
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2139
|
+
function Menu2({
|
|
1956
2140
|
items,
|
|
1957
2141
|
content,
|
|
1958
2142
|
children,
|
|
@@ -1966,7 +2150,7 @@ function Menu({
|
|
|
1966
2150
|
const selectionProps = selectionMode && selectionMode !== "none" ? { selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange } : {};
|
|
1967
2151
|
return /* @__PURE__ */ jsxs18(MenuTrigger, { children: [
|
|
1968
2152
|
children,
|
|
1969
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ jsx29(Popover2, { className: twMerge12(popoverStyles, className), children: items ? /* @__PURE__ */ jsx29(
|
|
1970
2154
|
AriaMenu,
|
|
1971
2155
|
{
|
|
1972
2156
|
items,
|
|
@@ -1993,14 +2177,14 @@ function Menu({
|
|
|
1993
2177
|
item.isDanger ? "text-destructive" : "text-foreground"
|
|
1994
2178
|
].filter(Boolean).join(" "),
|
|
1995
2179
|
children: [
|
|
1996
|
-
item.icon && /* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1998
|
-
item.endContent && /* @__PURE__ */
|
|
2180
|
+
item.icon && /* @__PURE__ */ jsx29(Icon, { icon: item.icon, size: "sm" }),
|
|
2181
|
+
/* @__PURE__ */ jsx29("span", { className: "flex-1", children: item.label }),
|
|
2182
|
+
item.endContent && /* @__PURE__ */ jsx29("span", { className: "ml-auto flex items-center", children: item.endContent })
|
|
1999
2183
|
]
|
|
2000
2184
|
}
|
|
2001
2185
|
)
|
|
2002
2186
|
}
|
|
2003
|
-
) : /* @__PURE__ */
|
|
2187
|
+
) : /* @__PURE__ */ jsx29(
|
|
2004
2188
|
AriaMenu,
|
|
2005
2189
|
{
|
|
2006
2190
|
onAction: (key) => onAction?.(key),
|
|
@@ -2025,8 +2209,8 @@ import {
|
|
|
2025
2209
|
Popover as Popover3,
|
|
2026
2210
|
Pressable
|
|
2027
2211
|
} from "react-aria-components";
|
|
2028
|
-
import { twMerge as
|
|
2029
|
-
import { jsx as
|
|
2212
|
+
import { twMerge as twMerge13 } from "tailwind-merge";
|
|
2213
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2030
2214
|
function useContextMenu({
|
|
2031
2215
|
content,
|
|
2032
2216
|
onAction,
|
|
@@ -2076,7 +2260,7 @@ function useContextMenu({
|
|
|
2076
2260
|
if (!open) close();
|
|
2077
2261
|
},
|
|
2078
2262
|
children: [
|
|
2079
|
-
/* @__PURE__ */
|
|
2263
|
+
/* @__PURE__ */ jsx30(Pressable, { children: /* @__PURE__ */ jsx30(
|
|
2080
2264
|
"span",
|
|
2081
2265
|
{
|
|
2082
2266
|
ref: anchorRef,
|
|
@@ -2085,14 +2269,14 @@ function useContextMenu({
|
|
|
2085
2269
|
style: { left: anchor?.x ?? 0, top: anchor?.y ?? 0 }
|
|
2086
2270
|
}
|
|
2087
2271
|
) }),
|
|
2088
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsx30(
|
|
2089
2273
|
Popover3,
|
|
2090
2274
|
{
|
|
2091
2275
|
isNonModal: true,
|
|
2092
2276
|
placement: "bottom start",
|
|
2093
2277
|
ref: popoverRef,
|
|
2094
|
-
className:
|
|
2095
|
-
children: /* @__PURE__ */
|
|
2278
|
+
className: twMerge13(popoverStyles, className),
|
|
2279
|
+
children: /* @__PURE__ */ jsx30(
|
|
2096
2280
|
AriaMenu2,
|
|
2097
2281
|
{
|
|
2098
2282
|
autoFocus: "first",
|
|
@@ -2120,7 +2304,7 @@ function useContextMenu({
|
|
|
2120
2304
|
|
|
2121
2305
|
// src/components/Menu/MenuItem.tsx
|
|
2122
2306
|
import { MenuItem as AriaMenuItem2 } from "react-aria-components";
|
|
2123
|
-
import { jsx as
|
|
2307
|
+
import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2124
2308
|
function MenuItem({
|
|
2125
2309
|
id,
|
|
2126
2310
|
children,
|
|
@@ -2153,9 +2337,9 @@ function MenuItem({
|
|
|
2153
2337
|
className
|
|
2154
2338
|
].filter(Boolean).join(" "),
|
|
2155
2339
|
children: [
|
|
2156
|
-
icon && /* @__PURE__ */
|
|
2157
|
-
/* @__PURE__ */
|
|
2158
|
-
endContent && /* @__PURE__ */
|
|
2340
|
+
icon && /* @__PURE__ */ jsx31(Icon, { icon, size: "sm" }),
|
|
2341
|
+
/* @__PURE__ */ jsx31("span", { className: "flex-1", children }),
|
|
2342
|
+
endContent && /* @__PURE__ */ jsx31("span", { className: "ml-auto flex items-center", children: endContent })
|
|
2159
2343
|
]
|
|
2160
2344
|
}
|
|
2161
2345
|
);
|
|
@@ -2164,7 +2348,7 @@ function MenuItem({
|
|
|
2164
2348
|
// src/components/Menu/MenuCheckboxItem.tsx
|
|
2165
2349
|
import { MenuItem as AriaMenuItem3 } from "react-aria-components";
|
|
2166
2350
|
import { Check as Check4 } from "lucide-react";
|
|
2167
|
-
import { Fragment as Fragment7, jsx as
|
|
2351
|
+
import { Fragment as Fragment7, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2168
2352
|
function MenuCheckboxItem({
|
|
2169
2353
|
id,
|
|
2170
2354
|
children,
|
|
@@ -2172,7 +2356,7 @@ function MenuCheckboxItem({
|
|
|
2172
2356
|
isDisabled,
|
|
2173
2357
|
className
|
|
2174
2358
|
}) {
|
|
2175
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ jsx32(
|
|
2176
2360
|
AriaMenuItem3,
|
|
2177
2361
|
{
|
|
2178
2362
|
id,
|
|
@@ -2189,8 +2373,8 @@ function MenuCheckboxItem({
|
|
|
2189
2373
|
className
|
|
2190
2374
|
].filter(Boolean).join(" "),
|
|
2191
2375
|
children: ({ isSelected }) => /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ jsx32("span", { className: "flex items-center justify-center w-4 h-4 shrink-0", children: isSelected && /* @__PURE__ */ jsx32(Check4, { size: 14, className: "text-primary", "aria-hidden": "true" }) }),
|
|
2377
|
+
/* @__PURE__ */ jsx32("span", { className: "flex-1", children })
|
|
2194
2378
|
] })
|
|
2195
2379
|
}
|
|
2196
2380
|
);
|
|
@@ -2201,7 +2385,7 @@ import {
|
|
|
2201
2385
|
MenuSection as AriaMenuSection,
|
|
2202
2386
|
Header
|
|
2203
2387
|
} from "react-aria-components";
|
|
2204
|
-
import { jsx as
|
|
2388
|
+
import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2205
2389
|
function MenuSection({
|
|
2206
2390
|
header,
|
|
2207
2391
|
children,
|
|
@@ -2209,7 +2393,7 @@ function MenuSection({
|
|
|
2209
2393
|
className
|
|
2210
2394
|
}) {
|
|
2211
2395
|
return /* @__PURE__ */ jsxs22(AriaMenuSection, { className, "aria-label": ariaLabel, children: [
|
|
2212
|
-
header && /* @__PURE__ */
|
|
2396
|
+
header && /* @__PURE__ */ jsx33(
|
|
2213
2397
|
Header,
|
|
2214
2398
|
{
|
|
2215
2399
|
className: [
|
|
@@ -2228,16 +2412,16 @@ function MenuSection({
|
|
|
2228
2412
|
|
|
2229
2413
|
// src/components/Menu/MenuHeader.tsx
|
|
2230
2414
|
import { Header as Header2 } from "react-aria-components";
|
|
2231
|
-
import { jsx as
|
|
2415
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2232
2416
|
function MenuHeader({ children, className }) {
|
|
2233
|
-
return /* @__PURE__ */
|
|
2417
|
+
return /* @__PURE__ */ jsx34(Header2, { className, children });
|
|
2234
2418
|
}
|
|
2235
2419
|
|
|
2236
2420
|
// src/components/Menu/MenuSeparator.tsx
|
|
2237
2421
|
import { Separator } from "react-aria-components";
|
|
2238
|
-
import { jsx as
|
|
2422
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2239
2423
|
function MenuSeparator({ className }) {
|
|
2240
|
-
return /* @__PURE__ */
|
|
2424
|
+
return /* @__PURE__ */ jsx35(
|
|
2241
2425
|
Separator,
|
|
2242
2426
|
{
|
|
2243
2427
|
className: [
|
|
@@ -2254,17 +2438,17 @@ import {
|
|
|
2254
2438
|
Popover as AriaPopover,
|
|
2255
2439
|
Button as AriaButton3
|
|
2256
2440
|
} from "react-aria-components";
|
|
2257
|
-
import { twMerge as
|
|
2258
|
-
import { jsx as
|
|
2441
|
+
import { twMerge as twMerge14 } from "tailwind-merge";
|
|
2442
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2259
2443
|
function Popover4({ children, isOpen, onOpenChange }) {
|
|
2260
|
-
return /* @__PURE__ */
|
|
2444
|
+
return /* @__PURE__ */ jsx36(DialogTrigger, { isOpen, onOpenChange, children });
|
|
2261
2445
|
}
|
|
2262
2446
|
function PopoverTrigger({ children, className }) {
|
|
2263
2447
|
const cx = `
|
|
2264
2448
|
inline-flex items-center bg-transparent border-none p-0 outline-none cursor-pointer
|
|
2265
2449
|
focus-visible:ring-2 focus-visible:ring-ring focus-visible:rounded-sm
|
|
2266
2450
|
`;
|
|
2267
|
-
return /* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx36(AriaButton3, { className: twMerge14(cx, className), children });
|
|
2268
2452
|
}
|
|
2269
2453
|
function PopoverContent({
|
|
2270
2454
|
placement = "bottom",
|
|
@@ -2285,13 +2469,13 @@ function PopoverContent({
|
|
|
2285
2469
|
entering:placement-left:slide-in-from-right-1
|
|
2286
2470
|
entering:placement-right:slide-in-from-left-1
|
|
2287
2471
|
`;
|
|
2288
|
-
return /* @__PURE__ */
|
|
2472
|
+
return /* @__PURE__ */ jsx36(
|
|
2289
2473
|
AriaPopover,
|
|
2290
2474
|
{
|
|
2291
2475
|
...rest,
|
|
2292
2476
|
placement,
|
|
2293
2477
|
offset: offsetPx,
|
|
2294
|
-
className:
|
|
2478
|
+
className: twMerge14(cx, className),
|
|
2295
2479
|
children
|
|
2296
2480
|
}
|
|
2297
2481
|
);
|
|
@@ -2299,19 +2483,19 @@ function PopoverContent({
|
|
|
2299
2483
|
|
|
2300
2484
|
// src/components/Tabs/Tabs.tsx
|
|
2301
2485
|
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
2302
|
-
import { twMerge as
|
|
2486
|
+
import { twMerge as twMerge15 } from "tailwind-merge";
|
|
2303
2487
|
import {
|
|
2304
2488
|
Tabs as AriaTabs,
|
|
2305
2489
|
TabList as AriaTabList,
|
|
2306
2490
|
Tab as AriaTab,
|
|
2307
2491
|
TabPanel as AriaTabPanel
|
|
2308
2492
|
} from "react-aria-components";
|
|
2309
|
-
import { jsx as
|
|
2493
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2310
2494
|
var TabsContext = createContext2({
|
|
2311
2495
|
variant: "underline",
|
|
2312
2496
|
size: "md"
|
|
2313
2497
|
});
|
|
2314
|
-
var
|
|
2498
|
+
var sizeStyles3 = {
|
|
2315
2499
|
sm: "px-3 py-1.5 text-sm",
|
|
2316
2500
|
md: "px-4 py-2 text-base",
|
|
2317
2501
|
lg: "px-6 py-3 text-lg"
|
|
@@ -2324,12 +2508,12 @@ function Tabs({
|
|
|
2324
2508
|
children,
|
|
2325
2509
|
...props
|
|
2326
2510
|
}) {
|
|
2327
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ jsx37(TabsContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx37(
|
|
2328
2512
|
AriaTabs,
|
|
2329
2513
|
{
|
|
2330
2514
|
...props,
|
|
2331
2515
|
orientation,
|
|
2332
|
-
className:
|
|
2516
|
+
className: twMerge15(
|
|
2333
2517
|
orientation === "vertical" ? "flex" : "",
|
|
2334
2518
|
className
|
|
2335
2519
|
),
|
|
@@ -2344,11 +2528,11 @@ function TabList({
|
|
|
2344
2528
|
const { variant } = useContext2(TabsContext);
|
|
2345
2529
|
const baseStyles = variant === "unstyled" ? "flex items-center" : variant === "underline" ? "flex items-center border-b border-border" : "inline-flex items-center bg-muted rounded-lg p-1 gap-1";
|
|
2346
2530
|
const verticalStyles = variant === "unstyled" ? "flex-col" : variant === "underline" ? "flex-col border-b-0 border-r border-border" : "flex-col";
|
|
2347
|
-
return /* @__PURE__ */
|
|
2531
|
+
return /* @__PURE__ */ jsx37(
|
|
2348
2532
|
AriaTabList,
|
|
2349
2533
|
{
|
|
2350
2534
|
...props,
|
|
2351
|
-
className: ({ orientation }) =>
|
|
2535
|
+
className: ({ orientation }) => twMerge15(
|
|
2352
2536
|
baseStyles,
|
|
2353
2537
|
orientation === "vertical" ? verticalStyles : "",
|
|
2354
2538
|
className
|
|
@@ -2358,20 +2542,20 @@ function TabList({
|
|
|
2358
2542
|
}
|
|
2359
2543
|
function Tab({ className, ...props }) {
|
|
2360
2544
|
const { variant, size } = useContext2(TabsContext);
|
|
2361
|
-
return /* @__PURE__ */
|
|
2545
|
+
return /* @__PURE__ */ jsx37(
|
|
2362
2546
|
AriaTab,
|
|
2363
2547
|
{
|
|
2364
2548
|
...props,
|
|
2365
2549
|
className: ({ isSelected, isDisabled, isHovered, isPressed }) => {
|
|
2366
2550
|
if (variant === "unstyled") {
|
|
2367
|
-
return
|
|
2551
|
+
return twMerge15(
|
|
2368
2552
|
"cursor-pointer outline-none",
|
|
2369
2553
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
2370
2554
|
isDisabled ? "opacity-50 pointer-events-none" : "",
|
|
2371
2555
|
className
|
|
2372
2556
|
);
|
|
2373
2557
|
}
|
|
2374
|
-
return
|
|
2558
|
+
return twMerge15(
|
|
2375
2559
|
// Base
|
|
2376
2560
|
"cursor-pointer outline-none transition-colors",
|
|
2377
2561
|
"font-medium",
|
|
@@ -2380,7 +2564,7 @@ function Tab({ className, ...props }) {
|
|
|
2380
2564
|
// Disabled
|
|
2381
2565
|
isDisabled ? "opacity-50 pointer-events-none" : "",
|
|
2382
2566
|
// Size
|
|
2383
|
-
|
|
2567
|
+
sizeStyles3[size],
|
|
2384
2568
|
...getTabVariantStyles(variant, {
|
|
2385
2569
|
isSelected,
|
|
2386
2570
|
isHovered,
|
|
@@ -2415,11 +2599,11 @@ function getTabVariantStyles(variant, state) {
|
|
|
2415
2599
|
}
|
|
2416
2600
|
function TabPanel({ className, ...props }) {
|
|
2417
2601
|
const { variant } = useContext2(TabsContext);
|
|
2418
|
-
return /* @__PURE__ */
|
|
2602
|
+
return /* @__PURE__ */ jsx37(
|
|
2419
2603
|
AriaTabPanel,
|
|
2420
2604
|
{
|
|
2421
2605
|
...props,
|
|
2422
|
-
className:
|
|
2606
|
+
className: twMerge15(
|
|
2423
2607
|
variant === "unstyled" ? "outline-none" : "mt-4 outline-none",
|
|
2424
2608
|
className
|
|
2425
2609
|
)
|
|
@@ -2437,16 +2621,16 @@ import {
|
|
|
2437
2621
|
|
|
2438
2622
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
2439
2623
|
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
2440
|
-
import { twMerge as
|
|
2624
|
+
import { twMerge as twMerge16 } from "tailwind-merge";
|
|
2441
2625
|
import {
|
|
2442
2626
|
ToggleButtonGroup as AriaToggleButtonGroup,
|
|
2443
2627
|
ToggleButton as AriaToggleButton3
|
|
2444
2628
|
} from "react-aria-components";
|
|
2445
|
-
import { jsx as
|
|
2629
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2446
2630
|
var SegmentedControlContext = createContext3({
|
|
2447
2631
|
size: "md"
|
|
2448
2632
|
});
|
|
2449
|
-
var
|
|
2633
|
+
var sizeStyles4 = {
|
|
2450
2634
|
sm: "px-2.5 py-1 text-xs",
|
|
2451
2635
|
md: "px-3 py-1.5 text-sm",
|
|
2452
2636
|
lg: "px-4 py-2 text-base"
|
|
@@ -2462,7 +2646,7 @@ function SegmentedControl({
|
|
|
2462
2646
|
...props
|
|
2463
2647
|
}) {
|
|
2464
2648
|
const isNoneMode = selectionMode === "none";
|
|
2465
|
-
return /* @__PURE__ */
|
|
2649
|
+
return /* @__PURE__ */ jsx38(SegmentedControlContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx38(
|
|
2466
2650
|
AriaToggleButtonGroup,
|
|
2467
2651
|
{
|
|
2468
2652
|
...props,
|
|
@@ -2470,7 +2654,7 @@ function SegmentedControl({
|
|
|
2470
2654
|
selectedKeys: isNoneMode ? /* @__PURE__ */ new Set() : selectedKeys,
|
|
2471
2655
|
defaultSelectedKeys: isNoneMode ? void 0 : defaultSelectedKeys,
|
|
2472
2656
|
onSelectionChange: isNoneMode ? void 0 : onSelectionChange,
|
|
2473
|
-
className:
|
|
2657
|
+
className: twMerge16(
|
|
2474
2658
|
"inline-flex items-center rounded-lg border border-border bg-muted p-0.5 gap-0.5",
|
|
2475
2659
|
className
|
|
2476
2660
|
),
|
|
@@ -2483,11 +2667,11 @@ function SegmentedControlItem({
|
|
|
2483
2667
|
...props
|
|
2484
2668
|
}) {
|
|
2485
2669
|
const { size } = useContext3(SegmentedControlContext);
|
|
2486
|
-
return /* @__PURE__ */
|
|
2670
|
+
return /* @__PURE__ */ jsx38(
|
|
2487
2671
|
AriaToggleButton3,
|
|
2488
2672
|
{
|
|
2489
2673
|
...props,
|
|
2490
|
-
className: ({ isSelected, isHovered, isPressed, isDisabled }) =>
|
|
2674
|
+
className: ({ isSelected, isHovered, isPressed, isDisabled }) => twMerge16(
|
|
2491
2675
|
// Base layout
|
|
2492
2676
|
"inline-flex items-center justify-center",
|
|
2493
2677
|
"rounded-md",
|
|
@@ -2498,7 +2682,7 @@ function SegmentedControlItem({
|
|
|
2498
2682
|
// Disabled
|
|
2499
2683
|
isDisabled && "opacity-50 pointer-events-none",
|
|
2500
2684
|
// Size
|
|
2501
|
-
|
|
2685
|
+
sizeStyles4[size],
|
|
2502
2686
|
// Selected state
|
|
2503
2687
|
isSelected ? "bg-background text-foreground shadow-sm font-semibold" : isPressed ? "bg-card text-foreground" : isHovered ? "bg-card text-foreground" : "bg-transparent text-muted-foreground",
|
|
2504
2688
|
className
|
|
@@ -2508,40 +2692,43 @@ function SegmentedControlItem({
|
|
|
2508
2692
|
}
|
|
2509
2693
|
|
|
2510
2694
|
// src/components/Badge/Badge.tsx
|
|
2511
|
-
import { twMerge as
|
|
2512
|
-
import { jsx as
|
|
2513
|
-
var
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
amber: "bg-(--color-badge-amber-bg) text-(--color-badge-amber-text)"
|
|
2695
|
+
import { twMerge as twMerge17 } from "tailwind-merge";
|
|
2696
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2697
|
+
var colorStyles = {
|
|
2698
|
+
purple: "bg-badge-purple-bg text-badge-purple-text border-badge-purple-text/20",
|
|
2699
|
+
teal: "bg-badge-teal-bg text-badge-teal-text border-badge-teal-text/20",
|
|
2700
|
+
rose: "bg-badge-rose-bg text-badge-rose-text border-badge-rose-text/20",
|
|
2701
|
+
slate: "bg-badge-slate-bg text-badge-slate-text border-badge-slate-text/20",
|
|
2702
|
+
green: "bg-badge-green-bg text-badge-green-text border-badge-green-text/20",
|
|
2703
|
+
amber: "bg-badge-amber-bg text-badge-amber-text border-badge-amber-text/20"
|
|
2521
2704
|
};
|
|
2522
|
-
var
|
|
2523
|
-
|
|
2524
|
-
|
|
2705
|
+
var sizeStyles5 = {
|
|
2706
|
+
xs: "px-1 py-0 text-[10px]",
|
|
2707
|
+
sm: "px-1.5 py-0.5 text-xs",
|
|
2708
|
+
md: "px-2 py-0.5 text-xs",
|
|
2709
|
+
lg: "px-2.5 py-1 text-sm"
|
|
2525
2710
|
};
|
|
2526
2711
|
function Badge({
|
|
2527
2712
|
children,
|
|
2528
|
-
|
|
2713
|
+
color = "slate",
|
|
2529
2714
|
size = "sm",
|
|
2530
2715
|
icon,
|
|
2531
|
-
className
|
|
2716
|
+
className,
|
|
2717
|
+
...rest
|
|
2532
2718
|
}) {
|
|
2533
2719
|
return /* @__PURE__ */ jsxs23(
|
|
2534
2720
|
"span",
|
|
2535
2721
|
{
|
|
2536
|
-
className:
|
|
2537
|
-
"inline-flex items-center gap-1 rounded-full",
|
|
2538
|
-
"
|
|
2539
|
-
|
|
2540
|
-
|
|
2722
|
+
className: twMerge17(
|
|
2723
|
+
"inline-flex items-center gap-1 rounded-full border",
|
|
2724
|
+
"font-medium leading-tight tracking-wider tabular-nums",
|
|
2725
|
+
colorStyles[color],
|
|
2726
|
+
sizeStyles5[size],
|
|
2541
2727
|
className
|
|
2542
2728
|
),
|
|
2729
|
+
...rest,
|
|
2543
2730
|
children: [
|
|
2544
|
-
icon && /* @__PURE__ */
|
|
2731
|
+
icon && /* @__PURE__ */ jsx39(Icon, { icon, size: "xs" }),
|
|
2545
2732
|
children
|
|
2546
2733
|
]
|
|
2547
2734
|
}
|
|
@@ -2549,87 +2736,29 @@ function Badge({
|
|
|
2549
2736
|
}
|
|
2550
2737
|
|
|
2551
2738
|
// src/components/Card/Card.tsx
|
|
2552
|
-
import {
|
|
2553
|
-
import {
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
children,
|
|
2563
|
-
header,
|
|
2564
|
-
footer,
|
|
2565
|
-
padding = "md",
|
|
2566
|
-
href,
|
|
2567
|
-
onPress,
|
|
2568
|
-
interactive = false,
|
|
2569
|
-
className
|
|
2570
|
-
}) {
|
|
2571
|
-
const isInteractive = interactive || !!href || !!onPress;
|
|
2572
|
-
const containerClass = twMerge16(
|
|
2573
|
-
"bg-background border border-border rounded-lg overflow-hidden shadow-sm",
|
|
2574
|
-
isInteractive && "transition-all hover:shadow-md hover:border-ring cursor-pointer",
|
|
2575
|
-
(href || onPress) && "block focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 outline-none",
|
|
2739
|
+
import { twMerge as twMerge18 } from "tailwind-merge";
|
|
2740
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2741
|
+
function Card({ children, header, footer, className }) {
|
|
2742
|
+
const cx = twMerge18(
|
|
2743
|
+
`
|
|
2744
|
+
bg-card p-8
|
|
2745
|
+
border border-border
|
|
2746
|
+
rounded-lg
|
|
2747
|
+
shadow-sm
|
|
2748
|
+
`,
|
|
2576
2749
|
className
|
|
2577
2750
|
);
|
|
2578
|
-
|
|
2579
|
-
(
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
onPress();
|
|
2583
|
-
}
|
|
2584
|
-
},
|
|
2585
|
-
[onPress]
|
|
2586
|
-
);
|
|
2587
|
-
const content = /* @__PURE__ */ jsxs24(Fragment8, { children: [
|
|
2588
|
-
header && /* @__PURE__ */ jsx35(
|
|
2589
|
-
"div",
|
|
2590
|
-
{
|
|
2591
|
-
className: twMerge16(
|
|
2592
|
-
"border-b border-border",
|
|
2593
|
-
paddingStyles[padding]
|
|
2594
|
-
),
|
|
2595
|
-
children: header
|
|
2596
|
-
}
|
|
2597
|
-
),
|
|
2598
|
-
/* @__PURE__ */ jsx35("div", { className: paddingStyles[padding], children }),
|
|
2599
|
-
footer && /* @__PURE__ */ jsx35(
|
|
2600
|
-
"div",
|
|
2601
|
-
{
|
|
2602
|
-
className: twMerge16(
|
|
2603
|
-
"border-t border-border",
|
|
2604
|
-
paddingStyles[padding]
|
|
2605
|
-
),
|
|
2606
|
-
children: footer
|
|
2607
|
-
}
|
|
2608
|
-
)
|
|
2751
|
+
return /* @__PURE__ */ jsxs24("div", { className: cx, children: [
|
|
2752
|
+
header && /* @__PURE__ */ jsx40("div", { className: "border-b border-border", children: header }),
|
|
2753
|
+
children,
|
|
2754
|
+
footer && /* @__PURE__ */ jsx40("div", { className: "border-t border-border", children: footer })
|
|
2609
2755
|
] });
|
|
2610
|
-
if (href) {
|
|
2611
|
-
return /* @__PURE__ */ jsx35("a", { href, className: containerClass, children: content });
|
|
2612
|
-
}
|
|
2613
|
-
if (onPress) {
|
|
2614
|
-
return /* @__PURE__ */ jsx35(
|
|
2615
|
-
"div",
|
|
2616
|
-
{
|
|
2617
|
-
role: "button",
|
|
2618
|
-
tabIndex: 0,
|
|
2619
|
-
className: containerClass,
|
|
2620
|
-
onClick: onPress,
|
|
2621
|
-
onKeyDown: handleKeyDown,
|
|
2622
|
-
children: content
|
|
2623
|
-
}
|
|
2624
|
-
);
|
|
2625
|
-
}
|
|
2626
|
-
return /* @__PURE__ */ jsx35("div", { className: containerClass, children: content });
|
|
2627
2756
|
}
|
|
2628
2757
|
|
|
2629
2758
|
// src/components/DeltaIndicator/DeltaIndicator.tsx
|
|
2630
2759
|
import { ArrowUp as ArrowUp2, ArrowDown as ArrowDown2, Minus as Minus2 } from "lucide-react";
|
|
2631
|
-
import { twMerge as
|
|
2632
|
-
import { jsx as
|
|
2760
|
+
import { twMerge as twMerge19 } from "tailwind-merge";
|
|
2761
|
+
import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2633
2762
|
function getDirection(current, previous) {
|
|
2634
2763
|
const diff = current - previous;
|
|
2635
2764
|
if (diff > 0) return "increase";
|
|
@@ -2651,14 +2780,14 @@ function formatPercentage(current, previous) {
|
|
|
2651
2780
|
return `${sign}${pct.toFixed(1)}%`;
|
|
2652
2781
|
}
|
|
2653
2782
|
var directionColors = {
|
|
2654
|
-
increase: "text-
|
|
2655
|
-
decrease: "text-
|
|
2656
|
-
flat: "text-
|
|
2783
|
+
increase: "text-delta-increase-text",
|
|
2784
|
+
decrease: "text-delta-decrease-text",
|
|
2785
|
+
flat: "text-delta-flat-text"
|
|
2657
2786
|
};
|
|
2658
2787
|
var reverseDirectionColors = {
|
|
2659
|
-
increase: "text-
|
|
2660
|
-
decrease: "text-
|
|
2661
|
-
flat: "text-
|
|
2788
|
+
increase: "text-delta-decrease-text",
|
|
2789
|
+
decrease: "text-delta-increase-text",
|
|
2790
|
+
flat: "text-delta-flat-text"
|
|
2662
2791
|
};
|
|
2663
2792
|
var directionIcons = {
|
|
2664
2793
|
increase: ArrowUp2,
|
|
@@ -2666,9 +2795,9 @@ var directionIcons = {
|
|
|
2666
2795
|
flat: Minus2
|
|
2667
2796
|
};
|
|
2668
2797
|
var directionBgColors = {
|
|
2669
|
-
increase: "bg-
|
|
2670
|
-
decrease: "bg-
|
|
2671
|
-
flat: "bg-
|
|
2798
|
+
increase: "bg-delta-increase-bg",
|
|
2799
|
+
decrease: "bg-delta-decrease-bg",
|
|
2800
|
+
flat: "bg-delta-flat-bg"
|
|
2672
2801
|
};
|
|
2673
2802
|
function DeltaIndicator({
|
|
2674
2803
|
current,
|
|
@@ -2685,13 +2814,13 @@ function DeltaIndicator({
|
|
|
2685
2814
|
return /* @__PURE__ */ jsxs25(
|
|
2686
2815
|
"span",
|
|
2687
2816
|
{
|
|
2688
|
-
className:
|
|
2817
|
+
className: twMerge19(
|
|
2689
2818
|
"inline-flex items-center gap-1 font-medium",
|
|
2690
2819
|
"text-muted-foreground",
|
|
2691
2820
|
className
|
|
2692
2821
|
),
|
|
2693
2822
|
children: [
|
|
2694
|
-
label && /* @__PURE__ */
|
|
2823
|
+
label && /* @__PURE__ */ jsx41("span", { className: "text-sm text-muted-foreground mr-1", children: label }),
|
|
2695
2824
|
unavailableText
|
|
2696
2825
|
]
|
|
2697
2826
|
}
|
|
@@ -2724,7 +2853,7 @@ function DeltaIndicator({
|
|
|
2724
2853
|
return /* @__PURE__ */ jsxs25(
|
|
2725
2854
|
"span",
|
|
2726
2855
|
{
|
|
2727
|
-
className:
|
|
2856
|
+
className: twMerge19(
|
|
2728
2857
|
"inline-flex items-center gap-1 font-medium",
|
|
2729
2858
|
colorStyles2,
|
|
2730
2859
|
isPill && [
|
|
@@ -2735,8 +2864,8 @@ function DeltaIndicator({
|
|
|
2735
2864
|
className
|
|
2736
2865
|
),
|
|
2737
2866
|
children: [
|
|
2738
|
-
label && /* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
2867
|
+
label && /* @__PURE__ */ jsx41("span", { className: "text-sm text-muted-foreground mr-1", children: label }),
|
|
2868
|
+
/* @__PURE__ */ jsx41(IconComponent, { size: 14, "aria-hidden": true }),
|
|
2740
2869
|
valueText
|
|
2741
2870
|
]
|
|
2742
2871
|
}
|
|
@@ -2744,16 +2873,16 @@ function DeltaIndicator({
|
|
|
2744
2873
|
}
|
|
2745
2874
|
|
|
2746
2875
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
2747
|
-
import { twMerge as
|
|
2748
|
-
import { jsx as
|
|
2876
|
+
import { twMerge as twMerge20 } from "tailwind-merge";
|
|
2877
|
+
import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2749
2878
|
var fillStyles = {
|
|
2750
|
-
brand: "bg-
|
|
2751
|
-
success: "bg-
|
|
2752
|
-
warning: "bg-
|
|
2753
|
-
danger: "bg-
|
|
2879
|
+
brand: "bg-progress-fill",
|
|
2880
|
+
success: "bg-progress-fill-success",
|
|
2881
|
+
warning: "bg-progress-fill-warning",
|
|
2882
|
+
danger: "bg-progress-fill-danger",
|
|
2754
2883
|
neutral: "bg-muted-foreground"
|
|
2755
2884
|
};
|
|
2756
|
-
var
|
|
2885
|
+
var sizeStyles6 = {
|
|
2757
2886
|
sm: "h-1.5",
|
|
2758
2887
|
md: "h-3",
|
|
2759
2888
|
lg: "h-4"
|
|
@@ -2768,12 +2897,12 @@ function ProgressBar({
|
|
|
2768
2897
|
className
|
|
2769
2898
|
}) {
|
|
2770
2899
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
2771
|
-
return /* @__PURE__ */ jsxs26("div", { className:
|
|
2900
|
+
return /* @__PURE__ */ jsxs26("div", { className: twMerge20("w-full", className), children: [
|
|
2772
2901
|
(label || description || showValue) && /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between mb-2", children: [
|
|
2773
|
-
/* @__PURE__ */
|
|
2774
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm font-medium text-foreground", children: label }),
|
|
2903
|
+
/* @__PURE__ */ jsx42("span", { className: "text-sm text-muted-foreground", children: description ?? (showValue ? `${clampedValue}%` : null) })
|
|
2775
2904
|
] }),
|
|
2776
|
-
/* @__PURE__ */
|
|
2905
|
+
/* @__PURE__ */ jsx42(
|
|
2777
2906
|
"div",
|
|
2778
2907
|
{
|
|
2779
2908
|
role: "progressbar",
|
|
@@ -2781,14 +2910,14 @@ function ProgressBar({
|
|
|
2781
2910
|
"aria-valuemin": 0,
|
|
2782
2911
|
"aria-valuemax": 100,
|
|
2783
2912
|
"aria-label": label ?? "Progress",
|
|
2784
|
-
className:
|
|
2785
|
-
"w-full rounded-full bg-
|
|
2786
|
-
|
|
2913
|
+
className: twMerge20(
|
|
2914
|
+
"w-full rounded-full bg-progress-track",
|
|
2915
|
+
sizeStyles6[size]
|
|
2787
2916
|
),
|
|
2788
|
-
children: /* @__PURE__ */
|
|
2917
|
+
children: /* @__PURE__ */ jsx42(
|
|
2789
2918
|
"div",
|
|
2790
2919
|
{
|
|
2791
|
-
className:
|
|
2920
|
+
className: twMerge20(
|
|
2792
2921
|
"h-full rounded-full transition-all duration-300",
|
|
2793
2922
|
fillStyles[variant]
|
|
2794
2923
|
),
|
|
@@ -2808,8 +2937,8 @@ import {
|
|
|
2808
2937
|
AlertCircle as AlertCircle2,
|
|
2809
2938
|
CheckCircle2 as CheckCircle22
|
|
2810
2939
|
} from "lucide-react";
|
|
2811
|
-
import { twMerge as
|
|
2812
|
-
import { jsx as
|
|
2940
|
+
import { twMerge as twMerge21 } from "tailwind-merge";
|
|
2941
|
+
import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2813
2942
|
var variantConfig2 = {
|
|
2814
2943
|
info: {
|
|
2815
2944
|
icon: Info3,
|
|
@@ -2857,19 +2986,19 @@ function Banner({
|
|
|
2857
2986
|
"div",
|
|
2858
2987
|
{
|
|
2859
2988
|
role: config.role,
|
|
2860
|
-
className:
|
|
2989
|
+
className: twMerge21(
|
|
2861
2990
|
"flex items-start gap-3 rounded-lg border px-4 py-3",
|
|
2862
2991
|
"text-sm",
|
|
2863
2992
|
config.containerClass,
|
|
2864
2993
|
className
|
|
2865
2994
|
),
|
|
2866
2995
|
children: [
|
|
2867
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ jsx43(
|
|
2868
2997
|
Icon,
|
|
2869
2998
|
{
|
|
2870
2999
|
icon: resolvedIcon,
|
|
2871
3000
|
size: "md",
|
|
2872
|
-
className:
|
|
3001
|
+
className: twMerge21("mt-0.5", config.iconClass)
|
|
2873
3002
|
}
|
|
2874
3003
|
),
|
|
2875
3004
|
/* @__PURE__ */ jsxs27("div", { className: "flex-1", children: [
|
|
@@ -2879,14 +3008,14 @@ function Banner({
|
|
|
2879
3008
|
] }),
|
|
2880
3009
|
children
|
|
2881
3010
|
] }),
|
|
2882
|
-
dismissible && /* @__PURE__ */
|
|
3011
|
+
dismissible && /* @__PURE__ */ jsx43(
|
|
2883
3012
|
"button",
|
|
2884
3013
|
{
|
|
2885
3014
|
type: "button",
|
|
2886
3015
|
onClick: handleDismiss,
|
|
2887
3016
|
className: "shrink-0 rounded-sm p-0.5 opacity-70 hover:opacity-100 transition-opacity outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
2888
3017
|
"aria-label": "Dismiss",
|
|
2889
|
-
children: /* @__PURE__ */
|
|
3018
|
+
children: /* @__PURE__ */ jsx43(Icon, { icon: "X", size: "sm" })
|
|
2890
3019
|
}
|
|
2891
3020
|
)
|
|
2892
3021
|
]
|
|
@@ -2895,8 +3024,8 @@ function Banner({
|
|
|
2895
3024
|
}
|
|
2896
3025
|
|
|
2897
3026
|
// src/components/MetricCard/MetricCard.tsx
|
|
2898
|
-
import { twMerge as
|
|
2899
|
-
import { Fragment as
|
|
3027
|
+
import { twMerge as twMerge22 } from "tailwind-merge";
|
|
3028
|
+
import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2900
3029
|
var sizeConfig = {
|
|
2901
3030
|
sm: {
|
|
2902
3031
|
padding: "p-3",
|
|
@@ -2918,101 +3047,119 @@ function MetricCard({
|
|
|
2918
3047
|
className
|
|
2919
3048
|
}) {
|
|
2920
3049
|
const config = sizeConfig[size];
|
|
2921
|
-
const containerClass =
|
|
3050
|
+
const containerClass = twMerge22(
|
|
2922
3051
|
"bg-background border border-border rounded-lg shadow-sm",
|
|
2923
3052
|
config.padding,
|
|
2924
3053
|
href && "block transition-shadow hover:shadow-md hover:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 outline-none",
|
|
2925
3054
|
className
|
|
2926
3055
|
);
|
|
2927
|
-
const content = /* @__PURE__ */ jsxs28(
|
|
2928
|
-
/* @__PURE__ */
|
|
2929
|
-
/* @__PURE__ */
|
|
3056
|
+
const content = /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
3057
|
+
/* @__PURE__ */ jsx44("div", { className: twMerge22(config.labelClass, "text-muted-foreground"), children: label }),
|
|
3058
|
+
/* @__PURE__ */ jsx44(
|
|
2930
3059
|
"div",
|
|
2931
3060
|
{
|
|
2932
|
-
className:
|
|
3061
|
+
className: twMerge22(
|
|
2933
3062
|
config.valueClass,
|
|
2934
3063
|
"font-semibold text-foreground mt-1 tabular-nums"
|
|
2935
3064
|
),
|
|
2936
3065
|
children: value
|
|
2937
3066
|
}
|
|
2938
3067
|
),
|
|
2939
|
-
secondary && /* @__PURE__ */
|
|
3068
|
+
secondary && /* @__PURE__ */ jsx44("div", { className: "mt-1 text-sm", children: secondary })
|
|
2940
3069
|
] });
|
|
2941
3070
|
if (href) {
|
|
2942
|
-
return /* @__PURE__ */
|
|
3071
|
+
return /* @__PURE__ */ jsx44("a", { href, className: containerClass, children: content });
|
|
2943
3072
|
}
|
|
2944
|
-
return /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ jsx44("div", { className: containerClass, children: content });
|
|
2945
3074
|
}
|
|
2946
3075
|
|
|
2947
3076
|
// src/components/SectionHeader/SectionHeader.tsx
|
|
2948
|
-
import {
|
|
2949
|
-
import {
|
|
2950
|
-
|
|
2951
|
-
|
|
3077
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
3078
|
+
import { twMerge as twMerge23 } from "tailwind-merge";
|
|
3079
|
+
import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3080
|
+
var SectionHeader = forwardRef7(
|
|
3081
|
+
function SectionHeader2({ title, as = "h2", children, className, ...rest }, ref) {
|
|
3082
|
+
return /* @__PURE__ */ jsxs29(
|
|
3083
|
+
"div",
|
|
3084
|
+
{
|
|
3085
|
+
ref,
|
|
3086
|
+
className: twMerge23(
|
|
3087
|
+
"flex flex-wrap items-center gap-3 pt-0 pb-4",
|
|
3088
|
+
className
|
|
3089
|
+
),
|
|
3090
|
+
...rest,
|
|
3091
|
+
children: [
|
|
3092
|
+
/* @__PURE__ */ jsx45(Heading, { as, children: title }),
|
|
3093
|
+
children && /* @__PURE__ */ jsx45("div", { className: "ml-auto flex flex-wrap items-center gap-2", children })
|
|
3094
|
+
]
|
|
3095
|
+
}
|
|
3096
|
+
);
|
|
3097
|
+
}
|
|
3098
|
+
);
|
|
3099
|
+
|
|
3100
|
+
// src/components/DescriptionList/DescriptionList.tsx
|
|
3101
|
+
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
3102
|
+
import { Button as AriaButton4 } from "react-aria-components";
|
|
3103
|
+
import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3104
|
+
var LayoutContext = createContext4("stacked");
|
|
3105
|
+
var listGapStyles = {
|
|
3106
|
+
stacked: "gap-4",
|
|
3107
|
+
horizontal: "gap-3"
|
|
3108
|
+
};
|
|
3109
|
+
function DescriptionList({
|
|
2952
3110
|
children,
|
|
3111
|
+
layout = "stacked",
|
|
2953
3112
|
className
|
|
2954
3113
|
}) {
|
|
2955
|
-
return /* @__PURE__ */
|
|
2956
|
-
"
|
|
3114
|
+
return /* @__PURE__ */ jsx46(LayoutContext.Provider, { value: layout, children: /* @__PURE__ */ jsx46(
|
|
3115
|
+
"dl",
|
|
2957
3116
|
{
|
|
2958
|
-
className:
|
|
2959
|
-
|
|
2960
|
-
className
|
|
2961
|
-
),
|
|
2962
|
-
children: [
|
|
2963
|
-
/* @__PURE__ */ jsx40(H2, { children: title }),
|
|
2964
|
-
children && /* @__PURE__ */ jsx40("div", { className: "ml-auto flex flex-wrap items-center gap-2", children })
|
|
2965
|
-
]
|
|
3117
|
+
className: ["flex flex-col", listGapStyles[layout], className].filter(Boolean).join(" "),
|
|
3118
|
+
children
|
|
2966
3119
|
}
|
|
2967
|
-
);
|
|
3120
|
+
) });
|
|
2968
3121
|
}
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2973
|
-
var hashColors = {
|
|
2974
|
-
purple: "bg-(--color-badge-purple-bg) text-(--color-badge-purple-text) border-(--color-badge-purple-text)/20",
|
|
2975
|
-
teal: "bg-(--color-badge-teal-bg) text-(--color-badge-teal-text) border-(--color-badge-teal-text)/20",
|
|
2976
|
-
rose: "bg-(--color-badge-rose-bg) text-(--color-badge-rose-text) border-(--color-badge-rose-text)/20",
|
|
2977
|
-
green: "bg-(--color-badge-green-bg) text-(--color-badge-green-text) border-(--color-badge-green-text)/20",
|
|
2978
|
-
amber: "bg-(--color-badge-amber-bg) text-(--color-badge-amber-text) border-(--color-badge-amber-text)/20"
|
|
2979
|
-
};
|
|
2980
|
-
var colorStyles = {
|
|
2981
|
-
...hashColors,
|
|
2982
|
-
slate: "bg-(--color-badge-slate-bg) text-(--color-badge-slate-text) border-(--color-badge-slate-text)/20"
|
|
3122
|
+
var itemLayoutStyles = {
|
|
3123
|
+
stacked: "flex flex-col gap-1",
|
|
3124
|
+
horizontal: "grid grid-cols-[140px_1fr] gap-x-(--spacing-4) items-baseline"
|
|
2983
3125
|
};
|
|
2984
|
-
var
|
|
3126
|
+
var labelClasses = "text-sm font-medium text-foreground";
|
|
3127
|
+
function DescriptionListItem({
|
|
3128
|
+
label,
|
|
3129
|
+
children,
|
|
3130
|
+
muted = false,
|
|
3131
|
+
fullValue
|
|
3132
|
+
}) {
|
|
3133
|
+
const layout = useContext4(LayoutContext);
|
|
3134
|
+
const valueClasses = [
|
|
3135
|
+
"text-sm m-0",
|
|
3136
|
+
muted ? "text-muted-foreground" : "text-foreground"
|
|
3137
|
+
].join(" ");
|
|
3138
|
+
const valueContent = /* @__PURE__ */ jsx46("dd", { className: valueClasses, children });
|
|
3139
|
+
return /* @__PURE__ */ jsxs30("div", { className: itemLayoutStyles[layout], children: [
|
|
3140
|
+
/* @__PURE__ */ jsx46("dt", { className: labelClasses, children: label }),
|
|
3141
|
+
fullValue ? /* @__PURE__ */ jsx46(Tooltip, { content: fullValue, children: /* @__PURE__ */ jsx46(AriaButton4, { className: "text-left outline-none cursor-default", children: valueContent }) }) : valueContent
|
|
3142
|
+
] });
|
|
3143
|
+
}
|
|
3144
|
+
DescriptionList.Item = DescriptionListItem;
|
|
3145
|
+
|
|
3146
|
+
// src/components/PathPill/PathPill.tsx
|
|
3147
|
+
import { twMerge as twMerge24 } from "tailwind-merge";
|
|
3148
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
3149
|
+
var hashColors = [
|
|
3150
|
+
"purple",
|
|
3151
|
+
"teal",
|
|
3152
|
+
"rose",
|
|
3153
|
+
"green",
|
|
3154
|
+
"amber"
|
|
3155
|
+
];
|
|
2985
3156
|
function pillColorFromName(name = "") {
|
|
2986
3157
|
let hash = 0;
|
|
2987
3158
|
for (let i = 0; i < name.length; i++) {
|
|
2988
3159
|
hash = name.charCodeAt(i) + ((hash << 5) - hash);
|
|
2989
3160
|
}
|
|
2990
|
-
return
|
|
2991
|
-
}
|
|
2992
|
-
function Pill({
|
|
2993
|
-
children,
|
|
2994
|
-
color = pillColorFromName(children),
|
|
2995
|
-
className,
|
|
2996
|
-
...rest
|
|
2997
|
-
}) {
|
|
2998
|
-
const cx = twMerge22(
|
|
2999
|
-
`
|
|
3000
|
-
inline-flex items-center
|
|
3001
|
-
rounded-full
|
|
3002
|
-
border
|
|
3003
|
-
px-2 py-0.5
|
|
3004
|
-
text-xs font-medium
|
|
3005
|
-
leading-tight
|
|
3006
|
-
`,
|
|
3007
|
-
colorStyles[color],
|
|
3008
|
-
className
|
|
3009
|
-
);
|
|
3010
|
-
return /* @__PURE__ */ jsx41("span", { className: cx, ...rest, children });
|
|
3161
|
+
return hashColors[Math.abs(hash) % hashColors.length];
|
|
3011
3162
|
}
|
|
3012
|
-
|
|
3013
|
-
// src/components/Pill/PathPill.tsx
|
|
3014
|
-
import { twMerge as twMerge23 } from "tailwind-merge";
|
|
3015
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3016
3163
|
function PathPill({
|
|
3017
3164
|
children,
|
|
3018
3165
|
visibleCount,
|
|
@@ -3024,18 +3171,18 @@ function PathPill({
|
|
|
3024
3171
|
const effectiveVisible = visibleCount ?? segments.length;
|
|
3025
3172
|
const dotCount = Math.max(0, segments.length - effectiveVisible);
|
|
3026
3173
|
const fullPath = segments.join(" / ");
|
|
3027
|
-
return /* @__PURE__ */
|
|
3174
|
+
return /* @__PURE__ */ jsx47(
|
|
3028
3175
|
"div",
|
|
3029
3176
|
{
|
|
3030
|
-
className:
|
|
3177
|
+
className: twMerge24("relative flex", className),
|
|
3031
3178
|
"aria-label": `Path: ${fullPath}`,
|
|
3032
3179
|
children: segments.map((segment, i) => {
|
|
3033
3180
|
const isCollapsed = i < dotCount;
|
|
3034
3181
|
const isLast = i === segments.length - 1;
|
|
3035
|
-
const cx =
|
|
3182
|
+
const cx = twMerge24(!isLast && "pr-5 -mr-4", isCollapsed && "pr-3");
|
|
3036
3183
|
const color = colorFn ? colorFn(segment, i) : pillColorFromName(segment);
|
|
3037
|
-
return /* @__PURE__ */
|
|
3038
|
-
|
|
3184
|
+
return /* @__PURE__ */ jsx47(
|
|
3185
|
+
Badge,
|
|
3039
3186
|
{
|
|
3040
3187
|
className: cx,
|
|
3041
3188
|
color,
|
|
@@ -3050,9 +3197,9 @@ function PathPill({
|
|
|
3050
3197
|
}
|
|
3051
3198
|
|
|
3052
3199
|
// src/components/FormWizard/FormWizard.tsx
|
|
3053
|
-
import { createContext as
|
|
3054
|
-
import { jsx as
|
|
3055
|
-
var FormWizardContext =
|
|
3200
|
+
import { createContext as createContext5, useContext as useContext5, useCallback as useCallback4, useMemo } from "react";
|
|
3201
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
3202
|
+
var FormWizardContext = createContext5({
|
|
3056
3203
|
currentStep: 0,
|
|
3057
3204
|
totalSteps: 1,
|
|
3058
3205
|
canGoBack: false,
|
|
@@ -3061,7 +3208,7 @@ var FormWizardContext = createContext4({
|
|
|
3061
3208
|
isLastStep: true
|
|
3062
3209
|
});
|
|
3063
3210
|
function useFormWizard() {
|
|
3064
|
-
return
|
|
3211
|
+
return useContext5(FormWizardContext);
|
|
3065
3212
|
}
|
|
3066
3213
|
function FormWizard({
|
|
3067
3214
|
currentStep,
|
|
@@ -3071,7 +3218,7 @@ function FormWizard({
|
|
|
3071
3218
|
}) {
|
|
3072
3219
|
const canGoBack = currentStep > 0;
|
|
3073
3220
|
const isLastStep = currentStep >= totalSteps - 1;
|
|
3074
|
-
const goBack =
|
|
3221
|
+
const goBack = useCallback4(() => {
|
|
3075
3222
|
if (currentStep > 0) {
|
|
3076
3223
|
onStepChange(currentStep - 1);
|
|
3077
3224
|
}
|
|
@@ -3086,13 +3233,13 @@ function FormWizard({
|
|
|
3086
3233
|
}),
|
|
3087
3234
|
[currentStep, totalSteps, canGoBack, goBack, isLastStep]
|
|
3088
3235
|
);
|
|
3089
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ jsx48(FormWizardContext.Provider, { value, children });
|
|
3090
3237
|
}
|
|
3091
3238
|
|
|
3092
3239
|
// src/components/FormWizard/FormWizardProgress.tsx
|
|
3093
|
-
import { jsx as
|
|
3240
|
+
import { jsx as jsx49, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3094
3241
|
function CheckIcon() {
|
|
3095
|
-
return /* @__PURE__ */
|
|
3242
|
+
return /* @__PURE__ */ jsx49(
|
|
3096
3243
|
"svg",
|
|
3097
3244
|
{
|
|
3098
3245
|
"aria-hidden": "true",
|
|
@@ -3103,24 +3250,24 @@ function CheckIcon() {
|
|
|
3103
3250
|
strokeWidth: "2",
|
|
3104
3251
|
strokeLinecap: "round",
|
|
3105
3252
|
strokeLinejoin: "round",
|
|
3106
|
-
children: /* @__PURE__ */
|
|
3253
|
+
children: /* @__PURE__ */ jsx49("path", { d: "M3 8.5l3.5 3.5 6.5-7" })
|
|
3107
3254
|
}
|
|
3108
3255
|
);
|
|
3109
3256
|
}
|
|
3110
3257
|
function FormWizardProgress({ labels }) {
|
|
3111
3258
|
const { currentStep, totalSteps } = useFormWizard();
|
|
3112
|
-
return /* @__PURE__ */
|
|
3259
|
+
return /* @__PURE__ */ jsx49("nav", { "aria-label": "Form progress", children: /* @__PURE__ */ jsx49("ol", { className: "flex items-start", role: "list", children: labels.map((label, index) => {
|
|
3113
3260
|
const isCompleted = index < currentStep;
|
|
3114
3261
|
const isCurrent = index === currentStep;
|
|
3115
3262
|
const isFuture = index > currentStep;
|
|
3116
|
-
return /* @__PURE__ */
|
|
3263
|
+
return /* @__PURE__ */ jsxs31(
|
|
3117
3264
|
"li",
|
|
3118
3265
|
{
|
|
3119
3266
|
className: "flex flex-1 flex-col items-center",
|
|
3120
3267
|
"aria-current": isCurrent ? "step" : void 0,
|
|
3121
3268
|
children: [
|
|
3122
|
-
/* @__PURE__ */
|
|
3123
|
-
index > 0 ? /* @__PURE__ */
|
|
3269
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex w-full items-center", children: [
|
|
3270
|
+
index > 0 ? /* @__PURE__ */ jsx49(
|
|
3124
3271
|
"div",
|
|
3125
3272
|
{
|
|
3126
3273
|
"aria-hidden": "true",
|
|
@@ -3129,8 +3276,8 @@ function FormWizardProgress({ labels }) {
|
|
|
3129
3276
|
index <= currentStep ? "bg-primary" : "bg-border"
|
|
3130
3277
|
].join(" ")
|
|
3131
3278
|
}
|
|
3132
|
-
) : /* @__PURE__ */
|
|
3133
|
-
/* @__PURE__ */
|
|
3279
|
+
) : /* @__PURE__ */ jsx49("div", { className: "flex-1", "aria-hidden": "true" }),
|
|
3280
|
+
/* @__PURE__ */ jsx49(
|
|
3134
3281
|
"div",
|
|
3135
3282
|
{
|
|
3136
3283
|
className: [
|
|
@@ -3142,10 +3289,10 @@ function FormWizardProgress({ labels }) {
|
|
|
3142
3289
|
isFuture ? "border-2 border-border bg-background text-muted-foreground" : ""
|
|
3143
3290
|
].join(" "),
|
|
3144
3291
|
"aria-hidden": "true",
|
|
3145
|
-
children: isCompleted ? /* @__PURE__ */
|
|
3292
|
+
children: isCompleted ? /* @__PURE__ */ jsx49(CheckIcon, {}) : index + 1
|
|
3146
3293
|
}
|
|
3147
3294
|
),
|
|
3148
|
-
index < totalSteps - 1 ? /* @__PURE__ */
|
|
3295
|
+
index < totalSteps - 1 ? /* @__PURE__ */ jsx49(
|
|
3149
3296
|
"div",
|
|
3150
3297
|
{
|
|
3151
3298
|
"aria-hidden": "true",
|
|
@@ -3154,9 +3301,9 @@ function FormWizardProgress({ labels }) {
|
|
|
3154
3301
|
index < currentStep ? "bg-primary" : "bg-border"
|
|
3155
3302
|
].join(" ")
|
|
3156
3303
|
}
|
|
3157
|
-
) : /* @__PURE__ */
|
|
3304
|
+
) : /* @__PURE__ */ jsx49("div", { className: "flex-1", "aria-hidden": "true" })
|
|
3158
3305
|
] }),
|
|
3159
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ jsx49(
|
|
3160
3307
|
"span",
|
|
3161
3308
|
{
|
|
3162
3309
|
className: [
|
|
@@ -3174,15 +3321,15 @@ function FormWizardProgress({ labels }) {
|
|
|
3174
3321
|
}
|
|
3175
3322
|
|
|
3176
3323
|
// src/components/FormWizard/FormWizardNav.tsx
|
|
3177
|
-
import { jsx as
|
|
3324
|
+
import { jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3178
3325
|
function FormWizardNav({
|
|
3179
3326
|
onNext,
|
|
3180
3327
|
isSubmitting = false,
|
|
3181
3328
|
submitLabel = "Submit"
|
|
3182
3329
|
}) {
|
|
3183
3330
|
const { canGoBack, goBack, isLastStep } = useFormWizard();
|
|
3184
|
-
return /* @__PURE__ */
|
|
3185
|
-
canGoBack && /* @__PURE__ */
|
|
3331
|
+
return /* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-end gap-3", children: [
|
|
3332
|
+
canGoBack && /* @__PURE__ */ jsx50(
|
|
3186
3333
|
Button,
|
|
3187
3334
|
{
|
|
3188
3335
|
variant: "secondary",
|
|
@@ -3192,7 +3339,7 @@ function FormWizardNav({
|
|
|
3192
3339
|
children: "Back"
|
|
3193
3340
|
}
|
|
3194
3341
|
),
|
|
3195
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ jsx50(
|
|
3196
3343
|
Button,
|
|
3197
3344
|
{
|
|
3198
3345
|
variant: "primary",
|
|
@@ -3204,404 +3351,32 @@ function FormWizardNav({
|
|
|
3204
3351
|
)
|
|
3205
3352
|
] });
|
|
3206
3353
|
}
|
|
3207
|
-
|
|
3208
|
-
// src/tokens/tokens.ts
|
|
3209
|
-
var ColorPurple50 = "#f5f0fa";
|
|
3210
|
-
var ColorPurple100 = "#ead9f5";
|
|
3211
|
-
var ColorPurple200 = "#d4b3eb";
|
|
3212
|
-
var ColorPurple300 = "#b87ddb";
|
|
3213
|
-
var ColorPurple400 = "#9b4fcb";
|
|
3214
|
-
var ColorPurple500 = "#7a2ea8";
|
|
3215
|
-
var ColorPurple600 = "#6b2695";
|
|
3216
|
-
var ColorPurple700 = "#5c2483";
|
|
3217
|
-
var ColorPurple800 = "#4a1d6a";
|
|
3218
|
-
var ColorPurple900 = "#3a1754";
|
|
3219
|
-
var ColorPurple950 = "#2a0f3e";
|
|
3220
|
-
var ColorTeal50 = "#edf9f9";
|
|
3221
|
-
var ColorTeal100 = "#d0f0f0";
|
|
3222
|
-
var ColorTeal200 = "#a1e1e2";
|
|
3223
|
-
var ColorTeal300 = "#6dd0d1";
|
|
3224
|
-
var ColorTeal400 = "#44c4c5";
|
|
3225
|
-
var ColorTeal500 = "#35b7b8";
|
|
3226
|
-
var ColorTeal600 = "#2a9b9c";
|
|
3227
|
-
var ColorTeal700 = "#217d7e";
|
|
3228
|
-
var ColorTeal800 = "#1a6364";
|
|
3229
|
-
var ColorTeal900 = "#144d4e";
|
|
3230
|
-
var ColorTeal950 = "#0a2829";
|
|
3231
|
-
var ColorGreen50 = "#f0fdf4";
|
|
3232
|
-
var ColorGreen100 = "#dcfce7";
|
|
3233
|
-
var ColorGreen200 = "#bbf7d0";
|
|
3234
|
-
var ColorGreen300 = "#86efac";
|
|
3235
|
-
var ColorGreen400 = "#4ade80";
|
|
3236
|
-
var ColorGreen500 = "#22c55e";
|
|
3237
|
-
var ColorGreen600 = "#16a34a";
|
|
3238
|
-
var ColorGreen700 = "#15803d";
|
|
3239
|
-
var ColorGreen800 = "#166534";
|
|
3240
|
-
var ColorGreen900 = "#14532d";
|
|
3241
|
-
var ColorGreen950 = "#052e16";
|
|
3242
|
-
var ColorRose50 = "#fff1f2";
|
|
3243
|
-
var ColorRose100 = "#ffe4e6";
|
|
3244
|
-
var ColorRose200 = "#fecdd3";
|
|
3245
|
-
var ColorRose300 = "#fda4af";
|
|
3246
|
-
var ColorRose400 = "#fb7185";
|
|
3247
|
-
var ColorRose500 = "#f43f5e";
|
|
3248
|
-
var ColorRose600 = "#e11d48";
|
|
3249
|
-
var ColorRose700 = "#be123c";
|
|
3250
|
-
var ColorRose800 = "#9f1239";
|
|
3251
|
-
var ColorRose900 = "#881337";
|
|
3252
|
-
var ColorRose950 = "#4c0519";
|
|
3253
|
-
var ColorSlate50 = "#f8fafc";
|
|
3254
|
-
var ColorSlate100 = "#f1f5f9";
|
|
3255
|
-
var ColorSlate200 = "#e2e8f0";
|
|
3256
|
-
var ColorSlate300 = "#cbd5e1";
|
|
3257
|
-
var ColorSlate400 = "#94a3b8";
|
|
3258
|
-
var ColorSlate500 = "#64748b";
|
|
3259
|
-
var ColorSlate600 = "#475569";
|
|
3260
|
-
var ColorSlate700 = "#334155";
|
|
3261
|
-
var ColorSlate800 = "#1e293b";
|
|
3262
|
-
var ColorSlate900 = "#0f172a";
|
|
3263
|
-
var ColorSlate950 = "#020617";
|
|
3264
|
-
var ColorAmber50 = "#fffbeb";
|
|
3265
|
-
var ColorAmber100 = "#fef3c7";
|
|
3266
|
-
var ColorAmber200 = "#fde68a";
|
|
3267
|
-
var ColorAmber300 = "#fcd34d";
|
|
3268
|
-
var ColorAmber400 = "#fbbf24";
|
|
3269
|
-
var ColorAmber500 = "#f59e0b";
|
|
3270
|
-
var ColorAmber600 = "#d97706";
|
|
3271
|
-
var ColorAmber700 = "#b45309";
|
|
3272
|
-
var ColorAmber800 = "#92400e";
|
|
3273
|
-
var ColorAmber900 = "#78350f";
|
|
3274
|
-
var ColorAmber950 = "#451a03";
|
|
3275
|
-
var ColorBlue50 = "#eff6ff";
|
|
3276
|
-
var ColorBlue100 = "#dbeafe";
|
|
3277
|
-
var ColorBlue200 = "#bfdbfe";
|
|
3278
|
-
var ColorBlue300 = "#93c5fd";
|
|
3279
|
-
var ColorBlue400 = "#60a5fa";
|
|
3280
|
-
var ColorBlue500 = "#3b82f6";
|
|
3281
|
-
var ColorBlue600 = "#2563eb";
|
|
3282
|
-
var ColorBlue700 = "#1d4ed8";
|
|
3283
|
-
var ColorBlue800 = "#1e40af";
|
|
3284
|
-
var ColorBlue900 = "#1e3a8a";
|
|
3285
|
-
var ColorBlue950 = "#172554";
|
|
3286
|
-
var ColorWhite = "#ffffff";
|
|
3287
|
-
var ColorBlack = "#000000";
|
|
3288
|
-
var ColorAlphaBlack80 = "#000000cc";
|
|
3289
|
-
var ColorAlphaBlack60 = "#00000099";
|
|
3290
|
-
var ColorAlphaBlack40 = "#00000066";
|
|
3291
|
-
var ColorAlphaBlack06 = "#0000000f";
|
|
3292
|
-
var ColorAlphaWhite10 = "#ffffff1a";
|
|
3293
|
-
var ColorAlphaWhite06 = "#ffffff0f";
|
|
3294
|
-
var ColorBackground = "#ffffff";
|
|
3295
|
-
var ColorForeground = "#0f172a";
|
|
3296
|
-
var ColorCard = "#f8fafc";
|
|
3297
|
-
var ColorMuted = "#f1f5f9";
|
|
3298
|
-
var ColorMutedForeground = "#475569";
|
|
3299
|
-
var ColorAccent = "#e2e8f0";
|
|
3300
|
-
var ColorAccentForeground = "#0f172a";
|
|
3301
|
-
var ColorAccentPressed = "#cbd5e1";
|
|
3302
|
-
var ColorBorder = "#e2e8f0";
|
|
3303
|
-
var ColorRing = "#35b7b8";
|
|
3304
|
-
var ColorOverlay = "#000000cc";
|
|
3305
|
-
var ColorBackdrop = "#00000066";
|
|
3306
|
-
var ColorPrimary = "#5c2483";
|
|
3307
|
-
var ColorPrimaryForeground = "#ffffff";
|
|
3308
|
-
var ColorPrimaryHover = "#4a1d6a";
|
|
3309
|
-
var ColorPrimaryPressed = "#3a1754";
|
|
3310
|
-
var ColorSecondary = "#6dd0d1";
|
|
3311
|
-
var ColorSecondaryForeground = "#0a2829";
|
|
3312
|
-
var ColorSecondaryHover = "#44c4c5";
|
|
3313
|
-
var ColorSecondaryPressed = "#35b7b8";
|
|
3314
|
-
var ColorDestructive = "#e11d48";
|
|
3315
|
-
var ColorDestructiveForeground = "#ffffff";
|
|
3316
|
-
var ColorDestructiveHover = "#be123c";
|
|
3317
|
-
var ColorDestructivePressed = "#9f1239";
|
|
3318
|
-
var ColorDestructiveSurface = "#fff1f2";
|
|
3319
|
-
var ColorDestructiveSurfaceForeground = "#be123c";
|
|
3320
|
-
var ColorDestructiveBorder = "#fecdd3";
|
|
3321
|
-
var ColorSuccess = "#15803d";
|
|
3322
|
-
var ColorSuccessForeground = "#ffffff";
|
|
3323
|
-
var ColorSuccessHover = "#166534";
|
|
3324
|
-
var ColorSuccessPressed = "#14532d";
|
|
3325
|
-
var ColorSuccessSurface = "#f0fdf4";
|
|
3326
|
-
var ColorSuccessSurfaceForeground = "#15803d";
|
|
3327
|
-
var ColorSuccessBorder = "#bbf7d0";
|
|
3328
|
-
var ColorWarning = "#f59e0b";
|
|
3329
|
-
var ColorWarningForeground = "#0f172a";
|
|
3330
|
-
var ColorWarningHover = "#fbbf24";
|
|
3331
|
-
var ColorWarningPressed = "#fcd34d";
|
|
3332
|
-
var ColorWarningSurface = "#fffbeb";
|
|
3333
|
-
var ColorWarningSurfaceForeground = "#92400e";
|
|
3334
|
-
var ColorWarningBorder = "#fde68a";
|
|
3335
|
-
var ColorInfo = "#2563eb";
|
|
3336
|
-
var ColorInfoForeground = "#ffffff";
|
|
3337
|
-
var ColorInfoHover = "#1d4ed8";
|
|
3338
|
-
var ColorInfoPressed = "#1e40af";
|
|
3339
|
-
var ColorInfoSurface = "#eff6ff";
|
|
3340
|
-
var ColorInfoSurfaceForeground = "#1d4ed8";
|
|
3341
|
-
var ColorInfoBorder = "#bfdbfe";
|
|
3342
|
-
var ColorDeltaIncreaseBg = "#fff1f2";
|
|
3343
|
-
var ColorDeltaIncreaseText = "#be123c";
|
|
3344
|
-
var ColorDeltaIncreaseIcon = "#f43f5e";
|
|
3345
|
-
var ColorDeltaDecreaseBg = "#f0fdf4";
|
|
3346
|
-
var ColorDeltaDecreaseText = "#15803d";
|
|
3347
|
-
var ColorDeltaDecreaseIcon = "#22c55e";
|
|
3348
|
-
var ColorDeltaFlatBg = "#f1f5f9";
|
|
3349
|
-
var ColorDeltaFlatText = "#64748b";
|
|
3350
|
-
var ColorDeltaFlatIcon = "#94a3b8";
|
|
3351
|
-
var ColorProgressTrack = "#e2e8f0";
|
|
3352
|
-
var ColorProgressFill = "#6b2695";
|
|
3353
|
-
var ColorProgressFillSuccess = "#22c55e";
|
|
3354
|
-
var ColorProgressFillWarning = "#f59e0b";
|
|
3355
|
-
var ColorProgressFillDanger = "#f43f5e";
|
|
3356
|
-
var ColorBadgePurpleBg = "#ead9f5";
|
|
3357
|
-
var ColorBadgePurpleText = "#5c2483";
|
|
3358
|
-
var ColorBadgeTealBg = "#d0f0f0";
|
|
3359
|
-
var ColorBadgeTealText = "#1a6364";
|
|
3360
|
-
var ColorBadgeSlateBg = "#f1f5f9";
|
|
3361
|
-
var ColorBadgeSlateText = "#334155";
|
|
3362
|
-
var ColorBadgeRoseBg = "#ffe4e6";
|
|
3363
|
-
var ColorBadgeRoseText = "#be123c";
|
|
3364
|
-
var ColorBadgeNeutralBg = "#f1f5f9";
|
|
3365
|
-
var ColorBadgeNeutralText = "#334155";
|
|
3366
|
-
var ColorBadgeGreenBg = "#dcfce7";
|
|
3367
|
-
var ColorBadgeGreenText = "#15803d";
|
|
3368
|
-
var ColorBadgeAmberBg = "#fef3c7";
|
|
3369
|
-
var ColorBadgeAmberText = "#92400e";
|
|
3370
|
-
var Spacing1 = "4px";
|
|
3371
|
-
var Spacing2 = "8px";
|
|
3372
|
-
var Spacing3 = "12px";
|
|
3373
|
-
var Spacing4 = "16px";
|
|
3374
|
-
var Spacing6 = "24px";
|
|
3375
|
-
var Spacing8 = "32px";
|
|
3376
|
-
var Spacing12 = "48px";
|
|
3377
|
-
var Spacing16 = "64px";
|
|
3378
|
-
var BorderRadiusNone = "0px";
|
|
3379
|
-
var BorderRadiusSm = "4px";
|
|
3380
|
-
var BorderRadiusMd = "8px";
|
|
3381
|
-
var BorderRadiusLg = "12px";
|
|
3382
|
-
var BorderRadiusXl = "16px";
|
|
3383
|
-
var BorderRadiusFull = "9999px";
|
|
3384
|
-
var FontSizeXs = "12px";
|
|
3385
|
-
var FontSizeSm = "14px";
|
|
3386
|
-
var FontSizeBase = "16px";
|
|
3387
|
-
var FontSizeLg = "18px";
|
|
3388
|
-
var FontSizeXl = "20px";
|
|
3389
|
-
var FontSize2xl = "24px";
|
|
3390
|
-
var FontSize3xl = "30px";
|
|
3391
|
-
var FontSize4xl = "36px";
|
|
3392
|
-
var FontSize5xl = "48px";
|
|
3393
|
-
var FontWeightLight = 300;
|
|
3394
|
-
var FontWeightRegular = 400;
|
|
3395
|
-
var FontWeightMedium = 500;
|
|
3396
|
-
var FontWeightSemibold = 600;
|
|
3397
|
-
var FontWeightBold = 700;
|
|
3398
|
-
var FontWeightExtrabold = 800;
|
|
3399
|
-
var LineHeightTight = 1.25;
|
|
3400
|
-
var LineHeightNormal = 1.5;
|
|
3401
|
-
var LineHeightRelaxed = 1.625;
|
|
3402
3354
|
export {
|
|
3403
3355
|
Badge,
|
|
3404
3356
|
Banner,
|
|
3405
|
-
BorderRadiusFull,
|
|
3406
|
-
BorderRadiusLg,
|
|
3407
|
-
BorderRadiusMd,
|
|
3408
|
-
BorderRadiusNone,
|
|
3409
|
-
BorderRadiusSm,
|
|
3410
|
-
BorderRadiusXl,
|
|
3411
3357
|
Breadcrumbs,
|
|
3412
3358
|
Button,
|
|
3413
3359
|
ButtonLink,
|
|
3414
3360
|
Card,
|
|
3415
3361
|
Cell,
|
|
3416
3362
|
Checkbox,
|
|
3417
|
-
ColorAccent,
|
|
3418
|
-
ColorAccentForeground,
|
|
3419
|
-
ColorAccentPressed,
|
|
3420
|
-
ColorAlphaBlack06,
|
|
3421
|
-
ColorAlphaBlack40,
|
|
3422
|
-
ColorAlphaBlack60,
|
|
3423
|
-
ColorAlphaBlack80,
|
|
3424
|
-
ColorAlphaWhite06,
|
|
3425
|
-
ColorAlphaWhite10,
|
|
3426
|
-
ColorAmber100,
|
|
3427
|
-
ColorAmber200,
|
|
3428
|
-
ColorAmber300,
|
|
3429
|
-
ColorAmber400,
|
|
3430
|
-
ColorAmber50,
|
|
3431
|
-
ColorAmber500,
|
|
3432
|
-
ColorAmber600,
|
|
3433
|
-
ColorAmber700,
|
|
3434
|
-
ColorAmber800,
|
|
3435
|
-
ColorAmber900,
|
|
3436
|
-
ColorAmber950,
|
|
3437
|
-
ColorBackdrop,
|
|
3438
|
-
ColorBackground,
|
|
3439
|
-
ColorBadgeAmberBg,
|
|
3440
|
-
ColorBadgeAmberText,
|
|
3441
|
-
ColorBadgeGreenBg,
|
|
3442
|
-
ColorBadgeGreenText,
|
|
3443
|
-
ColorBadgeNeutralBg,
|
|
3444
|
-
ColorBadgeNeutralText,
|
|
3445
|
-
ColorBadgePurpleBg,
|
|
3446
|
-
ColorBadgePurpleText,
|
|
3447
|
-
ColorBadgeRoseBg,
|
|
3448
|
-
ColorBadgeRoseText,
|
|
3449
|
-
ColorBadgeSlateBg,
|
|
3450
|
-
ColorBadgeSlateText,
|
|
3451
|
-
ColorBadgeTealBg,
|
|
3452
|
-
ColorBadgeTealText,
|
|
3453
|
-
ColorBlack,
|
|
3454
|
-
ColorBlue100,
|
|
3455
|
-
ColorBlue200,
|
|
3456
|
-
ColorBlue300,
|
|
3457
|
-
ColorBlue400,
|
|
3458
|
-
ColorBlue50,
|
|
3459
|
-
ColorBlue500,
|
|
3460
|
-
ColorBlue600,
|
|
3461
|
-
ColorBlue700,
|
|
3462
|
-
ColorBlue800,
|
|
3463
|
-
ColorBlue900,
|
|
3464
|
-
ColorBlue950,
|
|
3465
|
-
ColorBorder,
|
|
3466
|
-
ColorCard,
|
|
3467
|
-
ColorDeltaDecreaseBg,
|
|
3468
|
-
ColorDeltaDecreaseIcon,
|
|
3469
|
-
ColorDeltaDecreaseText,
|
|
3470
|
-
ColorDeltaFlatBg,
|
|
3471
|
-
ColorDeltaFlatIcon,
|
|
3472
|
-
ColorDeltaFlatText,
|
|
3473
|
-
ColorDeltaIncreaseBg,
|
|
3474
|
-
ColorDeltaIncreaseIcon,
|
|
3475
|
-
ColorDeltaIncreaseText,
|
|
3476
|
-
ColorDestructive,
|
|
3477
|
-
ColorDestructiveBorder,
|
|
3478
|
-
ColorDestructiveForeground,
|
|
3479
|
-
ColorDestructiveHover,
|
|
3480
|
-
ColorDestructivePressed,
|
|
3481
|
-
ColorDestructiveSurface,
|
|
3482
|
-
ColorDestructiveSurfaceForeground,
|
|
3483
|
-
ColorForeground,
|
|
3484
|
-
ColorGreen100,
|
|
3485
|
-
ColorGreen200,
|
|
3486
|
-
ColorGreen300,
|
|
3487
|
-
ColorGreen400,
|
|
3488
|
-
ColorGreen50,
|
|
3489
|
-
ColorGreen500,
|
|
3490
|
-
ColorGreen600,
|
|
3491
|
-
ColorGreen700,
|
|
3492
|
-
ColorGreen800,
|
|
3493
|
-
ColorGreen900,
|
|
3494
|
-
ColorGreen950,
|
|
3495
|
-
ColorInfo,
|
|
3496
|
-
ColorInfoBorder,
|
|
3497
|
-
ColorInfoForeground,
|
|
3498
|
-
ColorInfoHover,
|
|
3499
|
-
ColorInfoPressed,
|
|
3500
|
-
ColorInfoSurface,
|
|
3501
|
-
ColorInfoSurfaceForeground,
|
|
3502
|
-
ColorMuted,
|
|
3503
|
-
ColorMutedForeground,
|
|
3504
|
-
ColorOverlay,
|
|
3505
|
-
ColorPrimary,
|
|
3506
|
-
ColorPrimaryForeground,
|
|
3507
|
-
ColorPrimaryHover,
|
|
3508
|
-
ColorPrimaryPressed,
|
|
3509
|
-
ColorProgressFill,
|
|
3510
|
-
ColorProgressFillDanger,
|
|
3511
|
-
ColorProgressFillSuccess,
|
|
3512
|
-
ColorProgressFillWarning,
|
|
3513
|
-
ColorProgressTrack,
|
|
3514
|
-
ColorPurple100,
|
|
3515
|
-
ColorPurple200,
|
|
3516
|
-
ColorPurple300,
|
|
3517
|
-
ColorPurple400,
|
|
3518
|
-
ColorPurple50,
|
|
3519
|
-
ColorPurple500,
|
|
3520
|
-
ColorPurple600,
|
|
3521
|
-
ColorPurple700,
|
|
3522
|
-
ColorPurple800,
|
|
3523
|
-
ColorPurple900,
|
|
3524
|
-
ColorPurple950,
|
|
3525
|
-
ColorRing,
|
|
3526
|
-
ColorRose100,
|
|
3527
|
-
ColorRose200,
|
|
3528
|
-
ColorRose300,
|
|
3529
|
-
ColorRose400,
|
|
3530
|
-
ColorRose50,
|
|
3531
|
-
ColorRose500,
|
|
3532
|
-
ColorRose600,
|
|
3533
|
-
ColorRose700,
|
|
3534
|
-
ColorRose800,
|
|
3535
|
-
ColorRose900,
|
|
3536
|
-
ColorRose950,
|
|
3537
|
-
ColorSecondary,
|
|
3538
|
-
ColorSecondaryForeground,
|
|
3539
|
-
ColorSecondaryHover,
|
|
3540
|
-
ColorSecondaryPressed,
|
|
3541
|
-
ColorSlate100,
|
|
3542
|
-
ColorSlate200,
|
|
3543
|
-
ColorSlate300,
|
|
3544
|
-
ColorSlate400,
|
|
3545
|
-
ColorSlate50,
|
|
3546
|
-
ColorSlate500,
|
|
3547
|
-
ColorSlate600,
|
|
3548
|
-
ColorSlate700,
|
|
3549
|
-
ColorSlate800,
|
|
3550
|
-
ColorSlate900,
|
|
3551
|
-
ColorSlate950,
|
|
3552
|
-
ColorSuccess,
|
|
3553
|
-
ColorSuccessBorder,
|
|
3554
|
-
ColorSuccessForeground,
|
|
3555
|
-
ColorSuccessHover,
|
|
3556
|
-
ColorSuccessPressed,
|
|
3557
|
-
ColorSuccessSurface,
|
|
3558
|
-
ColorSuccessSurfaceForeground,
|
|
3559
|
-
ColorTeal100,
|
|
3560
|
-
ColorTeal200,
|
|
3561
|
-
ColorTeal300,
|
|
3562
|
-
ColorTeal400,
|
|
3563
|
-
ColorTeal50,
|
|
3564
|
-
ColorTeal500,
|
|
3565
|
-
ColorTeal600,
|
|
3566
|
-
ColorTeal700,
|
|
3567
|
-
ColorTeal800,
|
|
3568
|
-
ColorTeal900,
|
|
3569
|
-
ColorTeal950,
|
|
3570
|
-
ColorWarning,
|
|
3571
|
-
ColorWarningBorder,
|
|
3572
|
-
ColorWarningForeground,
|
|
3573
|
-
ColorWarningHover,
|
|
3574
|
-
ColorWarningPressed,
|
|
3575
|
-
ColorWarningSurface,
|
|
3576
|
-
ColorWarningSurfaceForeground,
|
|
3577
|
-
ColorWhite,
|
|
3578
3363
|
Column,
|
|
3579
3364
|
DeltaIndicator,
|
|
3365
|
+
Description,
|
|
3366
|
+
DescriptionList,
|
|
3580
3367
|
Dialog,
|
|
3581
3368
|
EmptyState,
|
|
3582
3369
|
Fieldset,
|
|
3583
|
-
FontSize2xl,
|
|
3584
|
-
FontSize3xl,
|
|
3585
|
-
FontSize4xl,
|
|
3586
|
-
FontSize5xl,
|
|
3587
|
-
FontSizeBase,
|
|
3588
|
-
FontSizeLg,
|
|
3589
|
-
FontSizeSm,
|
|
3590
|
-
FontSizeXl,
|
|
3591
|
-
FontSizeXs,
|
|
3592
|
-
FontWeightBold,
|
|
3593
|
-
FontWeightExtrabold,
|
|
3594
|
-
FontWeightLight,
|
|
3595
|
-
FontWeightMedium,
|
|
3596
|
-
FontWeightRegular,
|
|
3597
|
-
FontWeightSemibold,
|
|
3598
3370
|
FormWizard,
|
|
3599
3371
|
FormWizardNav,
|
|
3600
3372
|
FormWizardProgress,
|
|
3601
3373
|
H1,
|
|
3602
3374
|
H2,
|
|
3603
3375
|
H3,
|
|
3604
|
-
|
|
3376
|
+
H4,
|
|
3377
|
+
H5,
|
|
3378
|
+
H6,
|
|
3379
|
+
Heading,
|
|
3605
3380
|
Icon,
|
|
3606
3381
|
IconButton,
|
|
3607
3382
|
IconButtonLink,
|
|
@@ -3609,11 +3384,9 @@ export {
|
|
|
3609
3384
|
Input,
|
|
3610
3385
|
InputPassword,
|
|
3611
3386
|
Label,
|
|
3612
|
-
LineHeightNormal,
|
|
3613
|
-
LineHeightRelaxed,
|
|
3614
|
-
LineHeightTight,
|
|
3615
3387
|
Link,
|
|
3616
|
-
|
|
3388
|
+
Logo,
|
|
3389
|
+
Menu2 as Menu,
|
|
3617
3390
|
MenuCheckboxItem,
|
|
3618
3391
|
MenuHeader,
|
|
3619
3392
|
MenuItem,
|
|
@@ -3621,11 +3394,11 @@ export {
|
|
|
3621
3394
|
MenuSeparator,
|
|
3622
3395
|
MetricCard,
|
|
3623
3396
|
PathPill,
|
|
3624
|
-
Pill,
|
|
3625
3397
|
Popover4 as Popover,
|
|
3626
3398
|
PopoverContent,
|
|
3627
3399
|
PopoverTrigger,
|
|
3628
3400
|
ProgressBar,
|
|
3401
|
+
Prose,
|
|
3629
3402
|
Radio,
|
|
3630
3403
|
RadioButton,
|
|
3631
3404
|
RadioGroup,
|
|
@@ -3635,14 +3408,6 @@ export {
|
|
|
3635
3408
|
SegmentedControl,
|
|
3636
3409
|
SegmentedControlItem,
|
|
3637
3410
|
Select,
|
|
3638
|
-
Spacing1,
|
|
3639
|
-
Spacing12,
|
|
3640
|
-
Spacing16,
|
|
3641
|
-
Spacing2,
|
|
3642
|
-
Spacing3,
|
|
3643
|
-
Spacing4,
|
|
3644
|
-
Spacing6,
|
|
3645
|
-
Spacing8,
|
|
3646
3411
|
Spinner,
|
|
3647
3412
|
Switch,
|
|
3648
3413
|
Tab,
|