@snapcall/design-system 1.21.2 → 1.22.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RN2FGOFK.mjs → chunk-CBQRH67Z.mjs} +8 -8
- package/dist/{chunk-XI3KELZM.mjs → chunk-R6W6SKNR.mjs} +3 -3
- package/dist/{chunk-ZMQWNJ3B.mjs → chunk-TU6HU32A.mjs} +1 -1
- package/dist/components/Accordion/index.d.mts +2 -7
- package/dist/components/Accordion/index.d.ts +2 -7
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Accordion/index.mjs +2 -2
- package/dist/components/AlertDialog/index.js +5 -5
- package/dist/components/AlertDialog/index.mjs +3 -3
- package/dist/components/Avatar/index.d.mts +10 -10
- package/dist/components/Avatar/index.d.ts +10 -10
- package/dist/components/Badge/index.d.mts +4 -4
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Banner/index.d.mts +70 -0
- package/dist/components/Banner/index.d.ts +70 -0
- package/dist/components/Banner/index.js +152 -0
- package/dist/components/Banner/index.mjs +84 -0
- package/dist/components/Button/index.d.mts +12 -12
- package/dist/components/Button/index.d.ts +12 -12
- package/dist/components/Button/index.js +3 -3
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/Calendar/index.js +5 -5
- package/dist/components/Calendar/index.mjs +3 -3
- package/dist/components/Carousel/index.js +3 -3
- package/dist/components/Carousel/index.mjs +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Command/index.d.mts +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.js +8 -8
- package/dist/components/Command/index.mjs +4 -4
- package/dist/components/CreatableSelect/index.d.mts +1 -1
- package/dist/components/CreatableSelect/index.d.ts +1 -1
- package/dist/components/CreatableSelect/index.js +14 -12
- package/dist/components/CreatableSelect/index.mjs +10 -8
- package/dist/components/Dialog/index.d.mts +2 -2
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/Dialog/index.mjs +5 -5
- package/dist/components/DropdownMenu/index.d.mts +2 -2
- package/dist/components/DropdownMenu/index.d.ts +2 -2
- package/dist/components/DropdownMenu/index.js +9 -9
- package/dist/components/DropdownMenu/index.mjs +12 -12
- package/dist/components/FilterButton/index.js +3 -3
- package/dist/components/FilterButton/index.mjs +1 -1
- package/dist/components/Form/index.d.mts +2 -1
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/Input/index.d.mts +3 -3
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Input/index.mjs +2 -2
- package/dist/components/MediaCard/index.d.mts +7 -3
- package/dist/components/MediaCard/index.d.ts +7 -3
- package/dist/components/MediaCard/index.js +21 -15
- package/dist/components/MediaCard/index.mjs +21 -15
- package/dist/components/Pagination/index.js +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Select/index.mjs +3 -3
- package/dist/components/Sheet/index.d.mts +6 -5
- package/dist/components/Sheet/index.d.ts +6 -5
- package/dist/components/Sheet/index.js +4 -4
- package/dist/components/Sheet/index.mjs +2 -2
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +4 -4
- package/dist/components/Table/index.d.ts +4 -4
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Table/index.mjs +2 -2
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/Tabs/index.mjs +3 -3
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/index.mjs +1 -1
- package/dist/components/Toaster/index.d.mts +12 -11
- package/dist/components/Toaster/index.d.ts +12 -11
- package/dist/components/Toaster/index.js +7 -7
- package/dist/components/Toaster/index.mjs +5 -5
- package/dist/components/ToggleGroup/index.d.mts +1 -1
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.js +4 -4
- package/dist/components/ToggleGroup/index.mjs +4 -4
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/components/{index-Btj0VOSP.d.ts → index-CMWfBd0H.d.mts} +39 -39
- package/dist/components/{index-Btj0VOSP.d.mts → index-CMWfBd0H.d.ts} +39 -39
- package/dist/components/types-DBpSTFQy.d.mts +9 -0
- package/dist/components/types-DBpSTFQy.d.ts +9 -0
- package/dist/index.d.mts +169 -100
- package/dist/index.d.ts +169 -100
- package/dist/index.js +33 -31
- package/dist/index.mjs +1 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.css +2 -3
- package/package.json +60 -59
- package/dist/tailwind.config.js +0 -449
|
@@ -396,6 +396,7 @@ var MediaCard = (_a) => {
|
|
|
396
396
|
actionBehavior = "default",
|
|
397
397
|
isLoading,
|
|
398
398
|
size,
|
|
399
|
+
author,
|
|
399
400
|
className
|
|
400
401
|
} = _b, otherProps = __objRest(_b, [
|
|
401
402
|
"title",
|
|
@@ -407,18 +408,15 @@ var MediaCard = (_a) => {
|
|
|
407
408
|
"actionBehavior",
|
|
408
409
|
"isLoading",
|
|
409
410
|
"size",
|
|
411
|
+
"author",
|
|
410
412
|
"className"
|
|
411
413
|
]);
|
|
412
414
|
const thumbnail = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
413
415
|
"div",
|
|
414
|
-
|
|
415
|
-
className: cn(
|
|
416
|
-
"
|
|
417
|
-
|
|
418
|
-
"aspect-square rounded-md": size === "medium" || size === "small"
|
|
419
|
-
},
|
|
420
|
-
className
|
|
421
|
-
),
|
|
416
|
+
{
|
|
417
|
+
className: cn("flex-1 min-h-0 bg-gray-50 relative", {
|
|
418
|
+
"aspect-square rounded-md": size === "medium" || size === "small"
|
|
419
|
+
}),
|
|
422
420
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex justify-center items-center w-full h-full rounded-[inherit] overflow-hidden relative", children: [
|
|
423
421
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
424
422
|
"div",
|
|
@@ -428,8 +426,15 @@ var MediaCard = (_a) => {
|
|
|
428
426
|
size === "large" ? "p-2" : "p-1"
|
|
429
427
|
),
|
|
430
428
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative w-full h-full flex justify-center items-center", children: [
|
|
431
|
-
duration && size === "large" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute bottom-0 left-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "px-1 py-0.5 bg-black/50 dark:bg-white/50 rounded text-xs text-white dark:text-black font-medium truncate", children: secondsToDuration(duration) }) }),
|
|
432
|
-
size !== "small" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute bottom-0 right-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
429
|
+
duration !== void 0 && size === "large" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute bottom-0 left-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "px-1 py-0.5 bg-black/50 dark:bg-white/50 rounded-sm text-xs text-white dark:text-black font-medium truncate", children: secondsToDuration(duration) }) }),
|
|
430
|
+
size !== "small" && author && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "absolute bottom-0 right-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
431
|
+
Avatar,
|
|
432
|
+
{
|
|
433
|
+
size: size === "large" ? "sm" : "xs",
|
|
434
|
+
name: author.name,
|
|
435
|
+
image: author.image
|
|
436
|
+
}
|
|
437
|
+
) }),
|
|
433
438
|
type === "video" && image && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
434
439
|
PlayIcon,
|
|
435
440
|
{
|
|
@@ -445,20 +450,21 @@ var MediaCard = (_a) => {
|
|
|
445
450
|
size: size === "large" ? 24 : size === "medium" ? 18 : 16
|
|
446
451
|
})
|
|
447
452
|
] })
|
|
448
|
-
}
|
|
453
|
+
}
|
|
449
454
|
);
|
|
450
455
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
451
456
|
"div",
|
|
452
|
-
{
|
|
457
|
+
__spreadProps(__spreadValues({}, otherProps), {
|
|
453
458
|
className: cn(
|
|
454
|
-
"flex flex-col bg-white border border-gray-200 divide-y divide-gray-200 rounded-lg shadow-
|
|
459
|
+
"flex flex-col bg-white border border-gray-200 divide-y divide-gray-200 rounded-lg shadow-xs group/mediacard",
|
|
455
460
|
"hover:bg-gray-25 active:bg-gray-50 overflow-hidden",
|
|
456
461
|
{
|
|
457
462
|
"opacity-40": isLoading,
|
|
458
463
|
"w-[232px] h-[184px]": size === "large",
|
|
459
464
|
"w-[240px] h-[72px]": size === "medium",
|
|
460
465
|
"w-[240px] h-[52px]": size === "small"
|
|
461
|
-
}
|
|
466
|
+
},
|
|
467
|
+
className
|
|
462
468
|
),
|
|
463
469
|
children: [
|
|
464
470
|
size === "large" && thumbnail,
|
|
@@ -490,7 +496,7 @@ var MediaCard = (_a) => {
|
|
|
490
496
|
}
|
|
491
497
|
)
|
|
492
498
|
]
|
|
493
|
-
}
|
|
499
|
+
})
|
|
494
500
|
);
|
|
495
501
|
};
|
|
496
502
|
MediaCard.displayName = "MediaCard";
|
|
@@ -221,6 +221,7 @@ var MediaCard = (_a) => {
|
|
|
221
221
|
actionBehavior = "default",
|
|
222
222
|
isLoading,
|
|
223
223
|
size,
|
|
224
|
+
author,
|
|
224
225
|
className
|
|
225
226
|
} = _b, otherProps = __objRest(_b, [
|
|
226
227
|
"title",
|
|
@@ -232,18 +233,15 @@ var MediaCard = (_a) => {
|
|
|
232
233
|
"actionBehavior",
|
|
233
234
|
"isLoading",
|
|
234
235
|
"size",
|
|
236
|
+
"author",
|
|
235
237
|
"className"
|
|
236
238
|
]);
|
|
237
239
|
const thumbnail = /* @__PURE__ */ jsx5(
|
|
238
240
|
"div",
|
|
239
|
-
|
|
240
|
-
className: cn(
|
|
241
|
-
"
|
|
242
|
-
|
|
243
|
-
"aspect-square rounded-md": size === "medium" || size === "small"
|
|
244
|
-
},
|
|
245
|
-
className
|
|
246
|
-
),
|
|
241
|
+
{
|
|
242
|
+
className: cn("flex-1 min-h-0 bg-gray-50 relative", {
|
|
243
|
+
"aspect-square rounded-md": size === "medium" || size === "small"
|
|
244
|
+
}),
|
|
247
245
|
children: /* @__PURE__ */ jsxs4("div", { className: "flex justify-center items-center w-full h-full rounded-[inherit] overflow-hidden relative", children: [
|
|
248
246
|
/* @__PURE__ */ jsx5(
|
|
249
247
|
"div",
|
|
@@ -253,8 +251,15 @@ var MediaCard = (_a) => {
|
|
|
253
251
|
size === "large" ? "p-2" : "p-1"
|
|
254
252
|
),
|
|
255
253
|
children: /* @__PURE__ */ jsxs4("div", { className: "relative w-full h-full flex justify-center items-center", children: [
|
|
256
|
-
duration && size === "large" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-0", children: /* @__PURE__ */ jsx5("p", { className: "px-1 py-0.5 bg-black/50 dark:bg-white/50 rounded text-xs text-white dark:text-black font-medium truncate", children: secondsToDuration(duration) }) }),
|
|
257
|
-
size !== "small" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 right-0", children: /* @__PURE__ */ jsx5(
|
|
254
|
+
duration !== void 0 && size === "large" && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 left-0", children: /* @__PURE__ */ jsx5("p", { className: "px-1 py-0.5 bg-black/50 dark:bg-white/50 rounded-sm text-xs text-white dark:text-black font-medium truncate", children: secondsToDuration(duration) }) }),
|
|
255
|
+
size !== "small" && author && /* @__PURE__ */ jsx5("div", { className: "absolute bottom-0 right-0", children: /* @__PURE__ */ jsx5(
|
|
256
|
+
Avatar,
|
|
257
|
+
{
|
|
258
|
+
size: size === "large" ? "sm" : "xs",
|
|
259
|
+
name: author.name,
|
|
260
|
+
image: author.image
|
|
261
|
+
}
|
|
262
|
+
) }),
|
|
258
263
|
type === "video" && image && /* @__PURE__ */ jsx5(
|
|
259
264
|
PlayIcon,
|
|
260
265
|
{
|
|
@@ -270,20 +275,21 @@ var MediaCard = (_a) => {
|
|
|
270
275
|
size: size === "large" ? 24 : size === "medium" ? 18 : 16
|
|
271
276
|
})
|
|
272
277
|
] })
|
|
273
|
-
}
|
|
278
|
+
}
|
|
274
279
|
);
|
|
275
280
|
return /* @__PURE__ */ jsxs4(
|
|
276
281
|
"div",
|
|
277
|
-
{
|
|
282
|
+
__spreadProps(__spreadValues({}, otherProps), {
|
|
278
283
|
className: cn(
|
|
279
|
-
"flex flex-col bg-white border border-gray-200 divide-y divide-gray-200 rounded-lg shadow-
|
|
284
|
+
"flex flex-col bg-white border border-gray-200 divide-y divide-gray-200 rounded-lg shadow-xs group/mediacard",
|
|
280
285
|
"hover:bg-gray-25 active:bg-gray-50 overflow-hidden",
|
|
281
286
|
{
|
|
282
287
|
"opacity-40": isLoading,
|
|
283
288
|
"w-[232px] h-[184px]": size === "large",
|
|
284
289
|
"w-[240px] h-[72px]": size === "medium",
|
|
285
290
|
"w-[240px] h-[52px]": size === "small"
|
|
286
|
-
}
|
|
291
|
+
},
|
|
292
|
+
className
|
|
287
293
|
),
|
|
288
294
|
children: [
|
|
289
295
|
size === "large" && thumbnail,
|
|
@@ -315,7 +321,7 @@ var MediaCard = (_a) => {
|
|
|
315
321
|
}
|
|
316
322
|
)
|
|
317
323
|
]
|
|
318
|
-
}
|
|
324
|
+
})
|
|
319
325
|
);
|
|
320
326
|
};
|
|
321
327
|
MediaCard.displayName = "MediaCard";
|
|
@@ -246,15 +246,15 @@ var SpinnerIcon = (0, import_react5.forwardRef)(
|
|
|
246
246
|
// src/components/Button/Button.tsx
|
|
247
247
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
248
248
|
var buttonVariants = (0, import_cva.cva)({
|
|
249
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
249
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
250
250
|
variants: {
|
|
251
251
|
variant: {
|
|
252
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
252
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
253
253
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
254
254
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
255
255
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
256
256
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
257
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
257
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
258
258
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
259
259
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
260
260
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -86,7 +86,7 @@ var PopoverContent = React.forwardRef((_a, ref) => {
|
|
|
86
86
|
align,
|
|
87
87
|
sideOffset,
|
|
88
88
|
className: cn(
|
|
89
|
-
"z-50 w-72 rounded-md border bg-white p-4 text-black shadow-md outline-
|
|
89
|
+
"z-50 w-72 rounded-md border border-gray-200 bg-white p-4 text-black shadow-md outline-hidden 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",
|
|
90
90
|
className
|
|
91
91
|
)
|
|
92
92
|
}, props)
|
|
@@ -19,7 +19,7 @@ var PopoverContent = React.forwardRef((_a, ref) => {
|
|
|
19
19
|
align,
|
|
20
20
|
sideOffset,
|
|
21
21
|
className: cn(
|
|
22
|
-
"z-50 w-72 rounded-md border bg-white p-4 text-black shadow-md outline-
|
|
22
|
+
"z-50 w-72 rounded-md border border-gray-200 bg-white p-4 text-black shadow-md outline-hidden 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",
|
|
23
23
|
className
|
|
24
24
|
)
|
|
25
25
|
}, props)
|
|
@@ -96,7 +96,7 @@ var RadioGroupItem = React.forwardRef((_a, ref) => {
|
|
|
96
96
|
__spreadProps(__spreadValues({
|
|
97
97
|
ref,
|
|
98
98
|
className: cn(
|
|
99
|
-
"aspect-square h-4 w-4 bg-gray-50 rounded-full border border-gray-200 data-[state=checked]:border-blue-700 ring-blue-300 focus:outline-
|
|
99
|
+
"aspect-square h-4 w-4 bg-gray-50 rounded-full border border-gray-200 data-[state=checked]:border-blue-700 ring-blue-300 focus:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-300 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
100
100
|
className
|
|
101
101
|
)
|
|
102
102
|
}, props), {
|
|
@@ -28,7 +28,7 @@ var RadioGroupItem = React.forwardRef((_a, ref) => {
|
|
|
28
28
|
__spreadProps(__spreadValues({
|
|
29
29
|
ref,
|
|
30
30
|
className: cn(
|
|
31
|
-
"aspect-square h-4 w-4 bg-gray-50 rounded-full border border-gray-200 data-[state=checked]:border-blue-700 ring-blue-300 focus:outline-
|
|
31
|
+
"aspect-square h-4 w-4 bg-gray-50 rounded-full border border-gray-200 data-[state=checked]:border-blue-700 ring-blue-300 focus:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-300 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
32
32
|
className
|
|
33
33
|
)
|
|
34
34
|
}, props), {
|
|
@@ -126,7 +126,7 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
126
126
|
__spreadProps(__spreadValues({
|
|
127
127
|
ref,
|
|
128
128
|
className: cn(
|
|
129
|
-
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-
|
|
129
|
+
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white in-[.dark-theme]:bg-gray-50 focus-within:outline focus-within:outline-[2px] focus-within:outline-blue-300 focus-within:outline-offset-[2px] items-center justify-between",
|
|
130
130
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
131
131
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
132
132
|
// when the disabled attr is set by reference
|
|
@@ -151,7 +151,7 @@ var SelectContent = React.forwardRef((_a, ref) => {
|
|
|
151
151
|
__spreadProps(__spreadValues({
|
|
152
152
|
ref,
|
|
153
153
|
className: cn(
|
|
154
|
-
"relative z-
|
|
154
|
+
"relative z-150 overflow-hidden rounded-md border border-gray-200 bg-white shadow-xs 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",
|
|
155
155
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
156
156
|
className
|
|
157
157
|
),
|
|
@@ -189,7 +189,7 @@ var SelectItem = React.forwardRef((_a, ref) => {
|
|
|
189
189
|
__spreadProps(__spreadValues({
|
|
190
190
|
ref,
|
|
191
191
|
className: cn(
|
|
192
|
-
"flex w-full cursor-default select-none items-center rounded-md py-1.5 px-2 text-black text-sm outline-
|
|
192
|
+
"flex w-full cursor-default select-none items-center rounded-md py-1.5 px-2 text-black text-sm outline-hidden hover:bg-gray-50 active:bg-gray-100 focus:bg-gray-100 data-disabled:pointer-events-none data-disabled:opacity-50 data-[state=checked]:bg-gray-50",
|
|
193
193
|
className
|
|
194
194
|
)
|
|
195
195
|
}, props), {
|
|
@@ -54,7 +54,7 @@ var SelectTrigger = React.forwardRef((_a, ref) => {
|
|
|
54
54
|
__spreadProps(__spreadValues({
|
|
55
55
|
ref,
|
|
56
56
|
className: cn(
|
|
57
|
-
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-
|
|
57
|
+
"flex gap-2 h-9 w-full px-3 py-2 text-sm outline-hidden text-black placeholder:text-gray-700 rounded-md border border-gray-200 bg-white in-[.dark-theme]:bg-gray-50 focus-within:outline focus-within:outline-[2px] focus-within:outline-blue-300 focus-within:outline-offset-[2px] items-center justify-between",
|
|
58
58
|
{ "cursor-not-allowed opacity-50": isDisabled },
|
|
59
59
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
60
60
|
// when the disabled attr is set by reference
|
|
@@ -79,7 +79,7 @@ var SelectContent = React.forwardRef((_a, ref) => {
|
|
|
79
79
|
__spreadProps(__spreadValues({
|
|
80
80
|
ref,
|
|
81
81
|
className: cn(
|
|
82
|
-
"relative z-
|
|
82
|
+
"relative z-150 overflow-hidden rounded-md border border-gray-200 bg-white shadow-xs 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",
|
|
83
83
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
84
84
|
className
|
|
85
85
|
),
|
|
@@ -117,7 +117,7 @@ var SelectItem = React.forwardRef((_a, ref) => {
|
|
|
117
117
|
__spreadProps(__spreadValues({
|
|
118
118
|
ref,
|
|
119
119
|
className: cn(
|
|
120
|
-
"flex w-full cursor-default select-none items-center rounded-md py-1.5 px-2 text-black text-sm outline-
|
|
120
|
+
"flex w-full cursor-default select-none items-center rounded-md py-1.5 px-2 text-black text-sm outline-hidden hover:bg-gray-50 active:bg-gray-100 focus:bg-gray-100 data-disabled:pointer-events-none data-disabled:opacity-50 data-[state=checked]:bg-gray-50",
|
|
121
121
|
className
|
|
122
122
|
)
|
|
123
123
|
}, props), {
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
import { VariantProps } from 'cva';
|
|
5
|
+
import { I as IconProps } from '../types-DBpSTFQy.mjs';
|
|
5
6
|
|
|
6
7
|
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
7
8
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -9,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.Di
|
|
|
9
10
|
declare const sheetVariants: (props?: ({
|
|
10
11
|
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
11
12
|
} & ({
|
|
12
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
13
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
13
14
|
[x: string]: any;
|
|
14
15
|
} | null | undefined)[] | {
|
|
15
16
|
[x: string]: any;
|
|
@@ -34,10 +35,10 @@ declare const sheetVariants: (props?: ({
|
|
|
34
35
|
} | null | undefined)[] | {
|
|
35
36
|
[x: string]: any;
|
|
36
37
|
} | null | undefined;
|
|
37
|
-
className?:
|
|
38
|
+
className?: never;
|
|
38
39
|
} | {
|
|
39
|
-
class?:
|
|
40
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
40
|
+
class?: never;
|
|
41
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
41
42
|
[x: string]: any;
|
|
42
43
|
} | null | undefined)[] | {
|
|
43
44
|
[x: string]: any;
|
|
@@ -72,7 +73,7 @@ declare const SheetHeader: {
|
|
|
72
73
|
displayName: string;
|
|
73
74
|
};
|
|
74
75
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
75
|
-
icon?: React.ReactElement<
|
|
76
|
+
icon?: React.ReactElement<IconProps>;
|
|
76
77
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
77
78
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
78
79
|
|
|
@@ -2,6 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
import { VariantProps } from 'cva';
|
|
5
|
+
import { I as IconProps } from '../types-DBpSTFQy.js';
|
|
5
6
|
|
|
6
7
|
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
7
8
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -9,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetPrimitive.Di
|
|
|
9
10
|
declare const sheetVariants: (props?: ({
|
|
10
11
|
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
11
12
|
} & ({
|
|
12
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
13
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
13
14
|
[x: string]: any;
|
|
14
15
|
} | null | undefined)[] | {
|
|
15
16
|
[x: string]: any;
|
|
@@ -34,10 +35,10 @@ declare const sheetVariants: (props?: ({
|
|
|
34
35
|
} | null | undefined)[] | {
|
|
35
36
|
[x: string]: any;
|
|
36
37
|
} | null | undefined;
|
|
37
|
-
className?:
|
|
38
|
+
className?: never;
|
|
38
39
|
} | {
|
|
39
|
-
class?:
|
|
40
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
40
|
+
class?: never;
|
|
41
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
41
42
|
[x: string]: any;
|
|
42
43
|
} | null | undefined)[] | {
|
|
43
44
|
[x: string]: any;
|
|
@@ -72,7 +73,7 @@ declare const SheetHeader: {
|
|
|
72
73
|
displayName: string;
|
|
73
74
|
};
|
|
74
75
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
75
|
-
icon?: React.ReactElement<
|
|
76
|
+
icon?: React.ReactElement<IconProps>;
|
|
76
77
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
77
78
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
78
79
|
|
|
@@ -160,15 +160,15 @@ var SpinnerIcon = (0, import_react2.forwardRef)(
|
|
|
160
160
|
// src/components/Button/Button.tsx
|
|
161
161
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
162
162
|
var buttonVariants = (0, import_cva.cva)({
|
|
163
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
163
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
164
164
|
variants: {
|
|
165
165
|
variant: {
|
|
166
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
166
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
167
167
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
168
168
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
169
169
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
170
170
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
171
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
171
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
172
172
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
173
173
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
174
174
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -298,7 +298,7 @@ var SheetOverlay = React2.forwardRef((_a, ref) => {
|
|
|
298
298
|
});
|
|
299
299
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
300
300
|
var sheetVariants = (0, import_cva2.cva)({
|
|
301
|
-
base: "fixed z-50 gap-4 bg-white p-6 shadow-
|
|
301
|
+
base: "fixed z-50 gap-4 bg-white p-6 shadow-xs border-gray-200 xl:rounded-none transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
302
302
|
variants: {
|
|
303
303
|
side: {
|
|
304
304
|
top: "inset-x-0 top-0 border-b rounded-b-3xl data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../chunk-FMJFBQTF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-R6W6SKNR.mjs";
|
|
7
7
|
import "../../chunk-N65I4EXR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
@@ -50,7 +50,7 @@ var SheetOverlay = React.forwardRef((_a, ref) => {
|
|
|
50
50
|
});
|
|
51
51
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
52
52
|
var sheetVariants = cva({
|
|
53
|
-
base: "fixed z-50 gap-4 bg-white p-6 shadow-
|
|
53
|
+
base: "fixed z-50 gap-4 bg-white p-6 shadow-xs border-gray-200 xl:rounded-none transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
54
54
|
variants: {
|
|
55
55
|
side: {
|
|
56
56
|
top: "inset-x-0 top-0 border-b rounded-b-3xl data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -82,7 +82,7 @@ var Switch = React.forwardRef((_a, ref) => {
|
|
|
82
82
|
SwitchPrimitive.Root,
|
|
83
83
|
__spreadProps(__spreadValues({
|
|
84
84
|
className: cn(
|
|
85
|
-
"box-border text-left relative w-[42px] h-6 bg-transparent border-2 border-gray-600 rounded-full data-[state=checked]:border-blue-700 data-[state=checked]:bg-blue-700 data-
|
|
85
|
+
"box-border text-left relative w-[42px] h-6 bg-transparent border-2 border-gray-600 rounded-full data-[state=checked]:border-blue-700 data-[state=checked]:bg-blue-700 data-disabled:data-[state=unchecked]:bg-gray-300 data-disabled:opacity-50 data-disabled:cursor-not-allowed",
|
|
86
86
|
className
|
|
87
87
|
)
|
|
88
88
|
}, props), {
|
|
@@ -15,7 +15,7 @@ var Switch = React.forwardRef((_a, ref) => {
|
|
|
15
15
|
SwitchPrimitive.Root,
|
|
16
16
|
__spreadProps(__spreadValues({
|
|
17
17
|
className: cn(
|
|
18
|
-
"box-border text-left relative w-[42px] h-6 bg-transparent border-2 border-gray-600 rounded-full data-[state=checked]:border-blue-700 data-[state=checked]:bg-blue-700 data-
|
|
18
|
+
"box-border text-left relative w-[42px] h-6 bg-transparent border-2 border-gray-600 rounded-full data-[state=checked]:border-blue-700 data-[state=checked]:bg-blue-700 data-disabled:data-[state=unchecked]:bg-gray-300 data-disabled:opacity-50 data-disabled:cursor-not-allowed",
|
|
19
19
|
className
|
|
20
20
|
)
|
|
21
21
|
}, props), {
|
|
@@ -7,11 +7,11 @@ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
7
7
|
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
8
|
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
9
|
declare const TableEmpty: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
10
|
-
title?: string
|
|
11
|
-
description?: string
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement & {
|
|
13
|
-
title?: string
|
|
14
|
-
description?: string
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
15
|
}>>;
|
|
16
16
|
|
|
17
17
|
export { Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow };
|
|
@@ -7,11 +7,11 @@ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
7
7
|
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
8
8
|
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
9
9
|
declare const TableEmpty: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
10
|
-
title?: string
|
|
11
|
-
description?: string
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement & {
|
|
13
|
-
title?: string
|
|
14
|
-
description?: string
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
15
|
}>>;
|
|
16
16
|
|
|
17
17
|
export { Table, TableBody, TableCell, TableEmpty, TableHead, TableHeader, TableRow };
|
|
@@ -83,7 +83,7 @@ function cn(...inputs) {
|
|
|
83
83
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
84
84
|
var Table = React.forwardRef((_a, ref) => {
|
|
85
85
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
86
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full overflow-auto border border-gray-200 rounded-lg", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
87
|
"table",
|
|
88
88
|
__spreadValues({
|
|
89
89
|
ref,
|
|
@@ -124,7 +124,7 @@ var TableRow = React.forwardRef((_a, ref) => {
|
|
|
124
124
|
__spreadValues({
|
|
125
125
|
ref,
|
|
126
126
|
className: cn(
|
|
127
|
-
"border-b transition-colors data-[state=selected]:bg-gray-50 text-black",
|
|
127
|
+
"border-b border-gray-200 transition-colors data-[state=selected]:bg-gray-50 text-black",
|
|
128
128
|
className
|
|
129
129
|
)
|
|
130
130
|
}, props)
|
|
@@ -10,7 +10,7 @@ import * as React from "react";
|
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
var Table = React.forwardRef((_a, ref) => {
|
|
12
12
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
13
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full overflow-auto border rounded-lg", children: /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full overflow-auto border border-gray-200 rounded-lg", children: /* @__PURE__ */ jsx(
|
|
14
14
|
"table",
|
|
15
15
|
__spreadValues({
|
|
16
16
|
ref,
|
|
@@ -51,7 +51,7 @@ var TableRow = React.forwardRef((_a, ref) => {
|
|
|
51
51
|
__spreadValues({
|
|
52
52
|
ref,
|
|
53
53
|
className: cn(
|
|
54
|
-
"border-b transition-colors data-[state=selected]:bg-gray-50 text-black",
|
|
54
|
+
"border-b border-gray-200 transition-colors data-[state=selected]:bg-gray-50 text-black",
|
|
55
55
|
className
|
|
56
56
|
)
|
|
57
57
|
}, props)
|
|
@@ -99,8 +99,8 @@ var TabsTrigger = React.forwardRef((_a, ref) => {
|
|
|
99
99
|
ref,
|
|
100
100
|
className: cn(
|
|
101
101
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-semibold ring-offset-white transition-all",
|
|
102
|
-
"hover:bg-gray-100 focus-visible:outline-
|
|
103
|
-
"data-[state=active]:bg-white data-[state=active]:text-blue-700 dark:data-[state=active]:text-black data-[state=active]:shadow-
|
|
102
|
+
"hover:bg-gray-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
103
|
+
"data-[state=active]:bg-white data-[state=active]:text-blue-700 dark:data-[state=active]:text-black data-[state=active]:shadow-xs",
|
|
104
104
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
105
105
|
className
|
|
106
106
|
)
|
|
@@ -115,7 +115,7 @@ var TabsContent = React.forwardRef((_a, ref) => {
|
|
|
115
115
|
__spreadValues({
|
|
116
116
|
ref,
|
|
117
117
|
className: cn(
|
|
118
|
-
"mt-2 ring-offset-white focus-visible:outline-
|
|
118
|
+
"mt-2 ring-offset-white focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
119
119
|
className
|
|
120
120
|
)
|
|
121
121
|
}, props)
|
|
@@ -31,8 +31,8 @@ var TabsTrigger = React.forwardRef((_a, ref) => {
|
|
|
31
31
|
ref,
|
|
32
32
|
className: cn(
|
|
33
33
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-semibold ring-offset-white transition-all",
|
|
34
|
-
"hover:bg-gray-100 focus-visible:outline-
|
|
35
|
-
"data-[state=active]:bg-white data-[state=active]:text-blue-700 dark:data-[state=active]:text-black data-[state=active]:shadow-
|
|
34
|
+
"hover:bg-gray-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
35
|
+
"data-[state=active]:bg-white data-[state=active]:text-blue-700 dark:data-[state=active]:text-black data-[state=active]:shadow-xs",
|
|
36
36
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
37
37
|
className
|
|
38
38
|
)
|
|
@@ -47,7 +47,7 @@ var TabsContent = React.forwardRef((_a, ref) => {
|
|
|
47
47
|
__spreadValues({
|
|
48
48
|
ref,
|
|
49
49
|
className: cn(
|
|
50
|
-
"mt-2 ring-offset-white focus-visible:outline-
|
|
50
|
+
"mt-2 ring-offset-white focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-blue-700 focus-visible:ring-offset-2",
|
|
51
51
|
className
|
|
52
52
|
)
|
|
53
53
|
}, props)
|
|
@@ -94,7 +94,7 @@ var Textarea = React.forwardRef(
|
|
|
94
94
|
"textarea",
|
|
95
95
|
__spreadProps(__spreadValues({}, props), {
|
|
96
96
|
disabled: isDisabled,
|
|
97
|
-
className: "w-full px-3 py-2 text-sm bg-transparent outline-
|
|
97
|
+
className: "w-full px-3 py-2 text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700 disabled:cursor-not-allowed",
|
|
98
98
|
ref
|
|
99
99
|
})
|
|
100
100
|
)
|
|
@@ -27,7 +27,7 @@ var Textarea = React.forwardRef(
|
|
|
27
27
|
"textarea",
|
|
28
28
|
__spreadProps(__spreadValues({}, props), {
|
|
29
29
|
disabled: isDisabled,
|
|
30
|
-
className: "w-full px-3 py-2 text-sm bg-transparent outline-
|
|
30
|
+
className: "w-full px-3 py-2 text-sm bg-transparent outline-hidden text-black placeholder:text-gray-700 disabled:cursor-not-allowed",
|
|
31
31
|
ref
|
|
32
32
|
})
|
|
33
33
|
)
|