@j3m-quantum/ui 0.3.0 → 0.7.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 +166 -0
- package/dist/index.cjs +167 -372
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -58
- package/dist/index.d.ts +22 -58
- package/dist/index.js +169 -373
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +601 -26
- package/package.json +1 -1
- package/dist/styles/j3m-overrides.css +0 -115
- package/dist/styles/theme.css +0 -59
- package/dist/styles/tokens.css +0 -248
package/dist/index.cjs
CHANGED
|
@@ -111,73 +111,24 @@ function cn(...inputs) {
|
|
|
111
111
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
112
112
|
}
|
|
113
113
|
var buttonVariants = classVarianceAuthority.cva(
|
|
114
|
-
|
|
115
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
114
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
116
115
|
{
|
|
117
116
|
variants: {
|
|
118
117
|
variant: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"focus-visible:ring-[var(--j3m-primary-300)]",
|
|
126
|
-
"rounded-[var(--j3m-radius-2xs)]",
|
|
127
|
-
"shadow-sm"
|
|
128
|
-
].join(" "),
|
|
129
|
-
// Secondary - Neutral surface
|
|
130
|
-
secondary: [
|
|
131
|
-
"text-[var(--color-text-main)]",
|
|
132
|
-
"bg-[var(--j3m-neutral-200)]",
|
|
133
|
-
"hover:bg-[var(--j3m-neutral-300)]",
|
|
134
|
-
"active:bg-[var(--j3m-neutral-400)]",
|
|
135
|
-
"focus-visible:ring-[var(--j3m-neutral-400)]",
|
|
136
|
-
"rounded-[var(--j3m-radius-2xs)]"
|
|
137
|
-
].join(" "),
|
|
138
|
-
// Outline - Border only
|
|
139
|
-
outline: [
|
|
140
|
-
"text-[var(--color-text-main)]",
|
|
141
|
-
"bg-transparent",
|
|
142
|
-
"border border-[var(--color-border-strong)]",
|
|
143
|
-
"hover:bg-[var(--j3m-neutral-200)]",
|
|
144
|
-
"active:bg-[var(--j3m-neutral-300)]",
|
|
145
|
-
"focus-visible:ring-[var(--j3m-neutral-400)]",
|
|
146
|
-
"rounded-[var(--j3m-radius-2xs)]"
|
|
147
|
-
].join(" "),
|
|
148
|
-
// Ghost - Minimal
|
|
149
|
-
ghost: [
|
|
150
|
-
"text-[var(--color-text-muted)]",
|
|
151
|
-
"bg-transparent",
|
|
152
|
-
"hover:bg-[var(--j3m-neutral-200)]",
|
|
153
|
-
"hover:text-[var(--color-text-main)]",
|
|
154
|
-
"active:bg-[var(--j3m-neutral-300)]",
|
|
155
|
-
"focus-visible:ring-[var(--j3m-neutral-400)]",
|
|
156
|
-
"rounded-[var(--j3m-radius-2xs)]"
|
|
157
|
-
].join(" "),
|
|
158
|
-
// Destructive - Error/danger actions
|
|
159
|
-
destructive: [
|
|
160
|
-
"text-[var(--color-text-on-accent)]",
|
|
161
|
-
"bg-[var(--j3m-red-100)]",
|
|
162
|
-
"hover:bg-[var(--j3m-red-200)]",
|
|
163
|
-
"active:bg-[var(--j3m-red-200)]",
|
|
164
|
-
"focus-visible:ring-[var(--j3m-red-100)]",
|
|
165
|
-
"rounded-[var(--j3m-radius-2xs)]",
|
|
166
|
-
"shadow-sm"
|
|
167
|
-
].join(" "),
|
|
168
|
-
// Link - Text only
|
|
169
|
-
link: [
|
|
170
|
-
"text-[var(--j3m-primary-300)]",
|
|
171
|
-
"underline-offset-4",
|
|
172
|
-
"hover:underline",
|
|
173
|
-
"hover:text-[var(--j3m-primary-400)]"
|
|
174
|
-
].join(" ")
|
|
118
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
119
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
120
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
121
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
122
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
123
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
175
124
|
},
|
|
176
125
|
size: {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
lg: "h-
|
|
180
|
-
icon: "h-
|
|
126
|
+
default: "h-9 px-4 py-2",
|
|
127
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
128
|
+
lg: "h-10 rounded-md px-8",
|
|
129
|
+
icon: "h-9 w-9",
|
|
130
|
+
"icon-sm": "h-8 w-8",
|
|
131
|
+
"icon-lg": "h-10 w-10"
|
|
181
132
|
}
|
|
182
133
|
},
|
|
183
134
|
defaultVariants: {
|
|
@@ -291,44 +242,8 @@ var Input = React10__namespace.forwardRef(
|
|
|
291
242
|
"input",
|
|
292
243
|
{
|
|
293
244
|
type,
|
|
294
|
-
"data-slot": "input",
|
|
295
245
|
className: cn(
|
|
296
|
-
|
|
297
|
-
"flex h-10 w-full min-w-0 text-sm",
|
|
298
|
-
"px-[var(--j3m-spacing-s)] py-[var(--j3m-spacing-xs)]",
|
|
299
|
-
"rounded-[var(--j3m-radius-2xs)]",
|
|
300
|
-
// Colors
|
|
301
|
-
"bg-[var(--color-bg-surface)]",
|
|
302
|
-
"text-[var(--color-text-main)]",
|
|
303
|
-
"border border-[var(--color-border-subtle)]",
|
|
304
|
-
// Placeholder
|
|
305
|
-
"placeholder:text-[var(--color-text-soft)]",
|
|
306
|
-
// Focus state
|
|
307
|
-
"focus-visible:outline-none",
|
|
308
|
-
"focus-visible:ring-2",
|
|
309
|
-
"focus-visible:ring-[var(--j3m-primary-300)]",
|
|
310
|
-
"focus-visible:ring-offset-1",
|
|
311
|
-
"focus-visible:border-[var(--j3m-primary-300)]",
|
|
312
|
-
// Hover state
|
|
313
|
-
"hover:border-[var(--color-border-strong)]",
|
|
314
|
-
// Disabled state
|
|
315
|
-
"disabled:cursor-not-allowed",
|
|
316
|
-
"disabled:opacity-50",
|
|
317
|
-
"disabled:bg-[var(--color-bg-subtle)]",
|
|
318
|
-
// Error state (via aria-invalid)
|
|
319
|
-
"aria-invalid:border-[var(--j3m-red-100)]",
|
|
320
|
-
"aria-invalid:focus-visible:ring-[var(--j3m-red-100)]",
|
|
321
|
-
// File input
|
|
322
|
-
"file:border-0",
|
|
323
|
-
"file:bg-transparent",
|
|
324
|
-
"file:text-sm",
|
|
325
|
-
"file:font-medium",
|
|
326
|
-
"file:text-[var(--color-text-main)]",
|
|
327
|
-
// Selection
|
|
328
|
-
"selection:bg-[var(--j3m-primary-100)]",
|
|
329
|
-
"selection:text-[var(--color-text-main)]",
|
|
330
|
-
// Transition
|
|
331
|
-
"transition-colors duration-150",
|
|
246
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
332
247
|
className
|
|
333
248
|
),
|
|
334
249
|
ref,
|
|
@@ -1312,147 +1227,55 @@ function FieldError({
|
|
|
1312
1227
|
}
|
|
1313
1228
|
);
|
|
1314
1229
|
}
|
|
1315
|
-
var
|
|
1316
|
-
|
|
1317
|
-
"flex flex-col rounded-[var(--j3m-radius-2xs)]",
|
|
1230
|
+
var Card = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1231
|
+
"div",
|
|
1318
1232
|
{
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
"text-[var(--color-text-main)]",
|
|
1326
|
-
"shadow-sm"
|
|
1327
|
-
].join(" "),
|
|
1328
|
-
// Glass Light - for light backgrounds or over images
|
|
1329
|
-
"glass-light": [
|
|
1330
|
-
"bg-[var(--j3m-glass-light)]",
|
|
1331
|
-
"backdrop-blur-[var(--j3m-blur-md)]",
|
|
1332
|
-
"border border-[var(--j3m-glass-border-light)]",
|
|
1333
|
-
"text-[var(--color-text-main)]",
|
|
1334
|
-
"shadow-[var(--j3m-glass-shadow-md)]"
|
|
1335
|
-
].join(" "),
|
|
1336
|
-
// Glass Dark - for light backgrounds, dark card
|
|
1337
|
-
"glass-dark": [
|
|
1338
|
-
"bg-[var(--j3m-glass-dark)]",
|
|
1339
|
-
"backdrop-blur-[var(--j3m-blur-md)]",
|
|
1340
|
-
"border border-[var(--j3m-glass-border-dark)]",
|
|
1341
|
-
"text-white",
|
|
1342
|
-
"shadow-[var(--j3m-glass-shadow-lg)]"
|
|
1343
|
-
].join(" "),
|
|
1344
|
-
// Glass Neutral - subtle frosted effect
|
|
1345
|
-
"glass-neutral": [
|
|
1346
|
-
"bg-[var(--j3m-glass-neutral)]",
|
|
1347
|
-
"backdrop-blur-[var(--j3m-blur-lg)]",
|
|
1348
|
-
"border border-[var(--j3m-glass-border-subtle)]",
|
|
1349
|
-
"text-[var(--color-text-main)]",
|
|
1350
|
-
"shadow-[var(--j3m-glass-shadow-sm)]"
|
|
1351
|
-
].join(" "),
|
|
1352
|
-
// Glass Primary - with orange tint
|
|
1353
|
-
"glass-primary": [
|
|
1354
|
-
"bg-[var(--j3m-glass-primary)]",
|
|
1355
|
-
"backdrop-blur-[var(--j3m-blur-lg)]",
|
|
1356
|
-
"border border-[var(--j3m-glass-border-light)]",
|
|
1357
|
-
"text-[var(--color-text-main)]",
|
|
1358
|
-
"shadow-[var(--j3m-glass-shadow-glow)]"
|
|
1359
|
-
].join(" ")
|
|
1360
|
-
}
|
|
1361
|
-
},
|
|
1362
|
-
defaultVariants: {
|
|
1363
|
-
variant: "default"
|
|
1364
|
-
}
|
|
1233
|
+
ref,
|
|
1234
|
+
className: cn(
|
|
1235
|
+
"rounded-xl border bg-card text-card-foreground shadow",
|
|
1236
|
+
className
|
|
1237
|
+
),
|
|
1238
|
+
...props
|
|
1365
1239
|
}
|
|
1366
|
-
);
|
|
1367
|
-
var Card = React10__namespace.forwardRef(
|
|
1368
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1369
|
-
"div",
|
|
1370
|
-
{
|
|
1371
|
-
ref,
|
|
1372
|
-
"data-slot": "card",
|
|
1373
|
-
className: cn(cardVariants({ variant, className })),
|
|
1374
|
-
...props
|
|
1375
|
-
}
|
|
1376
|
-
)
|
|
1377
|
-
);
|
|
1240
|
+
));
|
|
1378
1241
|
Card.displayName = "Card";
|
|
1379
|
-
var CardHeader = React10__namespace.forwardRef(
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
"px-[var(--j3m-spacing-l)] py-[var(--j3m-spacing-m)]",
|
|
1388
|
-
className
|
|
1389
|
-
),
|
|
1390
|
-
...props
|
|
1391
|
-
}
|
|
1392
|
-
)
|
|
1393
|
-
);
|
|
1242
|
+
var CardHeader = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1243
|
+
"div",
|
|
1244
|
+
{
|
|
1245
|
+
ref,
|
|
1246
|
+
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
1247
|
+
...props
|
|
1248
|
+
}
|
|
1249
|
+
));
|
|
1394
1250
|
CardHeader.displayName = "CardHeader";
|
|
1395
|
-
var CardTitle = React10__namespace.forwardRef(
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
className
|
|
1404
|
-
),
|
|
1405
|
-
...props
|
|
1406
|
-
}
|
|
1407
|
-
)
|
|
1408
|
-
);
|
|
1251
|
+
var CardTitle = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1252
|
+
"div",
|
|
1253
|
+
{
|
|
1254
|
+
ref,
|
|
1255
|
+
className: cn("font-semibold leading-none tracking-tight", className),
|
|
1256
|
+
...props
|
|
1257
|
+
}
|
|
1258
|
+
));
|
|
1409
1259
|
CardTitle.displayName = "CardTitle";
|
|
1410
|
-
var CardDescription = React10__namespace.forwardRef(
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
className
|
|
1419
|
-
),
|
|
1420
|
-
...props
|
|
1421
|
-
}
|
|
1422
|
-
)
|
|
1423
|
-
);
|
|
1260
|
+
var CardDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1261
|
+
"div",
|
|
1262
|
+
{
|
|
1263
|
+
ref,
|
|
1264
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
1265
|
+
...props
|
|
1266
|
+
}
|
|
1267
|
+
));
|
|
1424
1268
|
CardDescription.displayName = "CardDescription";
|
|
1425
|
-
var CardContent = React10__namespace.forwardRef(
|
|
1426
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1427
|
-
"div",
|
|
1428
|
-
{
|
|
1429
|
-
ref,
|
|
1430
|
-
"data-slot": "card-content",
|
|
1431
|
-
className: cn(
|
|
1432
|
-
"px-[var(--j3m-spacing-l)] pb-[var(--j3m-spacing-m)]",
|
|
1433
|
-
className
|
|
1434
|
-
),
|
|
1435
|
-
...props
|
|
1436
|
-
}
|
|
1437
|
-
)
|
|
1438
|
-
);
|
|
1269
|
+
var CardContent = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1439
1270
|
CardContent.displayName = "CardContent";
|
|
1440
|
-
var CardFooter = React10__namespace.forwardRef(
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
"px-[var(--j3m-spacing-l)] py-[var(--j3m-spacing-m)]",
|
|
1449
|
-
"border-t border-[inherit]",
|
|
1450
|
-
className
|
|
1451
|
-
),
|
|
1452
|
-
...props
|
|
1453
|
-
}
|
|
1454
|
-
)
|
|
1455
|
-
);
|
|
1271
|
+
var CardFooter = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1272
|
+
"div",
|
|
1273
|
+
{
|
|
1274
|
+
ref,
|
|
1275
|
+
className: cn("flex items-center p-6 pt-0", className),
|
|
1276
|
+
...props
|
|
1277
|
+
}
|
|
1278
|
+
));
|
|
1456
1279
|
CardFooter.displayName = "CardFooter";
|
|
1457
1280
|
function Table({ className, ...props }) {
|
|
1458
1281
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3158,153 +2981,126 @@ function PaginationEllipsis({
|
|
|
3158
2981
|
}
|
|
3159
2982
|
);
|
|
3160
2983
|
}
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3186
|
-
|
|
3187
|
-
DialogPrimitive__namespace.Content,
|
|
2984
|
+
function Dialog({
|
|
2985
|
+
...props
|
|
2986
|
+
}) {
|
|
2987
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "dialog", ...props });
|
|
2988
|
+
}
|
|
2989
|
+
function DialogTrigger({
|
|
2990
|
+
...props
|
|
2991
|
+
}) {
|
|
2992
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
2993
|
+
}
|
|
2994
|
+
function DialogPortal({
|
|
2995
|
+
...props
|
|
2996
|
+
}) {
|
|
2997
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "dialog-portal", ...props });
|
|
2998
|
+
}
|
|
2999
|
+
function DialogClose({
|
|
3000
|
+
...props
|
|
3001
|
+
}) {
|
|
3002
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "dialog-close", ...props });
|
|
3003
|
+
}
|
|
3004
|
+
function DialogOverlay({
|
|
3005
|
+
className,
|
|
3006
|
+
...props
|
|
3007
|
+
}) {
|
|
3008
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3009
|
+
DialogPrimitive__namespace.Overlay,
|
|
3188
3010
|
{
|
|
3189
|
-
|
|
3011
|
+
"data-slot": "dialog-overlay",
|
|
3190
3012
|
className: cn(
|
|
3191
|
-
|
|
3192
|
-
"fixed left-[50%] top-[50%] z-50",
|
|
3193
|
-
"translate-x-[-50%] translate-y-[-50%]",
|
|
3194
|
-
"w-full max-w-lg",
|
|
3195
|
-
"max-h-[90vh] overflow-y-auto",
|
|
3196
|
-
// Card-like styling
|
|
3197
|
-
"rounded-[var(--j3m-radius-2xs)]",
|
|
3198
|
-
"border border-[var(--color-border-subtle)]",
|
|
3199
|
-
"bg-[var(--color-bg-surface)]",
|
|
3200
|
-
"shadow-lg",
|
|
3201
|
-
// Padding
|
|
3202
|
-
"p-[var(--j3m-spacing-l)]",
|
|
3203
|
-
// Animations
|
|
3204
|
-
"duration-200",
|
|
3205
|
-
"data-[state=open]:animate-in",
|
|
3206
|
-
"data-[state=closed]:animate-out",
|
|
3207
|
-
"data-[state=closed]:fade-out-0",
|
|
3208
|
-
"data-[state=open]:fade-in-0",
|
|
3209
|
-
"data-[state=closed]:zoom-out-95",
|
|
3210
|
-
"data-[state=open]:zoom-in-95",
|
|
3211
|
-
"data-[state=closed]:slide-out-to-left-1/2",
|
|
3212
|
-
"data-[state=closed]:slide-out-to-top-[48%]",
|
|
3213
|
-
"data-[state=open]:slide-in-from-left-1/2",
|
|
3214
|
-
"data-[state=open]:slide-in-from-top-[48%]",
|
|
3013
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
3215
3014
|
className
|
|
3216
3015
|
),
|
|
3217
|
-
...props
|
|
3218
|
-
children: [
|
|
3219
|
-
children,
|
|
3220
|
-
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3221
|
-
DialogPrimitive__namespace.Close,
|
|
3222
|
-
{
|
|
3223
|
-
className: cn(
|
|
3224
|
-
"absolute right-[var(--j3m-spacing-m)] top-[var(--j3m-spacing-m)]",
|
|
3225
|
-
"rounded-[var(--j3m-radius-2xs)]",
|
|
3226
|
-
"p-1",
|
|
3227
|
-
"text-[var(--color-text-muted)]",
|
|
3228
|
-
"opacity-70",
|
|
3229
|
-
"ring-offset-background",
|
|
3230
|
-
"transition-opacity",
|
|
3231
|
-
"hover:opacity-100",
|
|
3232
|
-
"hover:bg-[var(--j3m-neutral-200)]",
|
|
3233
|
-
"focus:outline-none",
|
|
3234
|
-
"focus:ring-2",
|
|
3235
|
-
"focus:ring-[var(--j3m-primary-300)]",
|
|
3236
|
-
"focus:ring-offset-2",
|
|
3237
|
-
"disabled:pointer-events-none"
|
|
3238
|
-
),
|
|
3239
|
-
children: [
|
|
3240
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
|
|
3241
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
3242
|
-
]
|
|
3243
|
-
}
|
|
3244
|
-
)
|
|
3245
|
-
]
|
|
3016
|
+
...props
|
|
3246
3017
|
}
|
|
3247
|
-
)
|
|
3248
|
-
|
|
3249
|
-
DialogContent
|
|
3250
|
-
var DialogHeader = ({
|
|
3018
|
+
);
|
|
3019
|
+
}
|
|
3020
|
+
function DialogContent({
|
|
3251
3021
|
className,
|
|
3022
|
+
children,
|
|
3023
|
+
showCloseButton = true,
|
|
3252
3024
|
...props
|
|
3253
|
-
})
|
|
3254
|
-
"
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3025
|
+
}) {
|
|
3026
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
3027
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
3028
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3029
|
+
DialogPrimitive__namespace.Content,
|
|
3030
|
+
{
|
|
3031
|
+
"data-slot": "dialog-content",
|
|
3032
|
+
className: cn(
|
|
3033
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
3034
|
+
className
|
|
3035
|
+
),
|
|
3036
|
+
...props,
|
|
3037
|
+
children: [
|
|
3038
|
+
children,
|
|
3039
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3040
|
+
DialogPrimitive__namespace.Close,
|
|
3041
|
+
{
|
|
3042
|
+
"data-slot": "dialog-close",
|
|
3043
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3044
|
+
children: [
|
|
3045
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
|
|
3046
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
3047
|
+
]
|
|
3048
|
+
}
|
|
3049
|
+
)
|
|
3050
|
+
]
|
|
3051
|
+
}
|
|
3052
|
+
)
|
|
3053
|
+
] });
|
|
3054
|
+
}
|
|
3055
|
+
function DialogHeader({ className, ...props }) {
|
|
3056
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3057
|
+
"div",
|
|
3058
|
+
{
|
|
3059
|
+
"data-slot": "dialog-header",
|
|
3060
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
3061
|
+
...props
|
|
3062
|
+
}
|
|
3063
|
+
);
|
|
3064
|
+
}
|
|
3065
|
+
function DialogFooter({ className, ...props }) {
|
|
3066
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3067
|
+
"div",
|
|
3068
|
+
{
|
|
3069
|
+
"data-slot": "dialog-footer",
|
|
3070
|
+
className: cn(
|
|
3071
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
3072
|
+
className
|
|
3073
|
+
),
|
|
3074
|
+
...props
|
|
3075
|
+
}
|
|
3076
|
+
);
|
|
3077
|
+
}
|
|
3078
|
+
function DialogTitle({
|
|
3267
3079
|
className,
|
|
3268
3080
|
...props
|
|
3269
|
-
})
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
"
|
|
3274
|
-
"
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
"text-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
}
|
|
3293
|
-
));
|
|
3294
|
-
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
3295
|
-
var DialogDescription = React10__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3296
|
-
DialogPrimitive__namespace.Description,
|
|
3297
|
-
{
|
|
3298
|
-
ref,
|
|
3299
|
-
className: cn(
|
|
3300
|
-
"text-sm",
|
|
3301
|
-
"text-[var(--color-text-muted)]",
|
|
3302
|
-
className
|
|
3303
|
-
),
|
|
3304
|
-
...props
|
|
3305
|
-
}
|
|
3306
|
-
));
|
|
3307
|
-
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
3081
|
+
}) {
|
|
3082
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3083
|
+
DialogPrimitive__namespace.Title,
|
|
3084
|
+
{
|
|
3085
|
+
"data-slot": "dialog-title",
|
|
3086
|
+
className: cn("text-lg leading-none font-semibold", className),
|
|
3087
|
+
...props
|
|
3088
|
+
}
|
|
3089
|
+
);
|
|
3090
|
+
}
|
|
3091
|
+
function DialogDescription({
|
|
3092
|
+
className,
|
|
3093
|
+
...props
|
|
3094
|
+
}) {
|
|
3095
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3096
|
+
DialogPrimitive__namespace.Description,
|
|
3097
|
+
{
|
|
3098
|
+
"data-slot": "dialog-description",
|
|
3099
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
3100
|
+
...props
|
|
3101
|
+
}
|
|
3102
|
+
);
|
|
3103
|
+
}
|
|
3308
3104
|
function Command({
|
|
3309
3105
|
className,
|
|
3310
3106
|
...props
|
|
@@ -5691,7 +5487,6 @@ exports.TooltipTrigger = TooltipTrigger;
|
|
|
5691
5487
|
exports.badgeVariants = badgeVariants;
|
|
5692
5488
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
5693
5489
|
exports.buttonVariants = buttonVariants;
|
|
5694
|
-
exports.cardVariants = cardVariants;
|
|
5695
5490
|
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
5696
5491
|
exports.sectionVariants = sectionVariants;
|
|
5697
5492
|
exports.toggleVariants = toggleVariants;
|