@overmap-ai/blocks 1.0.31-tailwind-components.32 → 1.0.31-tailwind-components.33
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/blocks.js +58 -59
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +58 -59
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks.js
CHANGED
|
@@ -229,7 +229,7 @@ const buttonCva = cva(
|
|
|
229
229
|
// disabled
|
|
230
230
|
"disabled:opacity-50",
|
|
231
231
|
"disabled:pointer-events-none",
|
|
232
|
-
"transition-
|
|
232
|
+
"transition-[background,color,box-shadow]"
|
|
233
233
|
],
|
|
234
234
|
{
|
|
235
235
|
variants: {
|
|
@@ -261,22 +261,22 @@ const buttonCva = cva(
|
|
|
261
261
|
],
|
|
262
262
|
surface: [
|
|
263
263
|
"bg-(--accent-surface)",
|
|
264
|
-
"hover:ring-(--accent-a8)",
|
|
264
|
+
"hover:inset-ring-(--accent-a8)",
|
|
265
265
|
"active:bg-(--accent-a3)",
|
|
266
|
-
"ring
|
|
267
|
-
"ring-(--accent-a7)",
|
|
266
|
+
"inset-ring",
|
|
267
|
+
"inset-ring-(--accent-a7)",
|
|
268
268
|
"text-(--accent-a11)",
|
|
269
269
|
"data-[state='open']:bg-(--accent-a4)"
|
|
270
270
|
],
|
|
271
271
|
outline: [
|
|
272
272
|
"bg-transparent",
|
|
273
|
-
"ring
|
|
274
|
-
"ring-(--accent-a7)",
|
|
275
|
-
"hover:ring-(--accent-a8)",
|
|
273
|
+
"inset-ring",
|
|
274
|
+
"inset-ring-(--accent-a7)",
|
|
275
|
+
"hover:inset-ring-(--accent-a8)",
|
|
276
276
|
"hover:bg-(--accent-a3)",
|
|
277
277
|
"active:bg-(--accent-a4)",
|
|
278
278
|
"text-(--accent-a11)",
|
|
279
|
-
"data-[state='open']:ring-(--accent-a8)",
|
|
279
|
+
"data-[state='open']:inset-ring-(--accent-a8)",
|
|
280
280
|
"data-[state='open']:bg-(--accent-a3)"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
@@ -478,8 +478,8 @@ const avatarFallback = cva(["flex", "items-center", "justify-center", "w-full",
|
|
|
478
478
|
variant: {
|
|
479
479
|
solid: ["bg-(--accent-9)", "text-(--accent-contrast)"],
|
|
480
480
|
soft: ["bg-(--accent-a3)", "text-(--accent-a11)"],
|
|
481
|
-
outline: ["bg-transparent", "ring
|
|
482
|
-
surface: ["bg-(--accent-surface)", "ring
|
|
481
|
+
outline: ["bg-transparent", "inset-ring", "inset-ring-(--accent-a7)", "text-(--accent-a11)"],
|
|
482
|
+
surface: ["bg-(--accent-surface)", "inset-ring", "inset-ring-(--accent-a7)", "text-(--accent-a11)"]
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
485
|
defaultVariants: {
|
|
@@ -548,8 +548,8 @@ const badge = cva(["inline-flex", "items-center", "shrink-0"], {
|
|
|
548
548
|
variant: {
|
|
549
549
|
solid: ["bg-(--accent-9)", "text-(--accent-contrast)"],
|
|
550
550
|
soft: ["bg-(--accent-a3)", "text-(--accent-a11)"],
|
|
551
|
-
outline: ["bg-transparent", "ring
|
|
552
|
-
surface: ["bg-(--accent-surface)", "ring
|
|
551
|
+
outline: ["bg-transparent", "inset-ring", "inset-ring-(--accent-a7)", "text-(--accent-a11)"],
|
|
552
|
+
surface: ["bg-(--accent-surface)", "inset-ring", "inset-ring-(--accent-a7)", "text-(--accent-a11)"]
|
|
553
553
|
}
|
|
554
554
|
},
|
|
555
555
|
compoundVariants: [
|
|
@@ -638,8 +638,8 @@ const cardCva = cva([], {
|
|
|
638
638
|
variants: {
|
|
639
639
|
variant: {
|
|
640
640
|
soft: ["bg-(--accent-2)"],
|
|
641
|
-
surface: ["bg-(--accent-2)", "ring
|
|
642
|
-
outline: ["ring-1", "ring-(--accent-a6)"]
|
|
641
|
+
surface: ["bg-(--accent-2)", "inset-ring", "inset-ring-(--accent-a6)"],
|
|
642
|
+
outline: ["inset-ring-1", "inset-ring-(--accent-a6)"]
|
|
643
643
|
},
|
|
644
644
|
size: {
|
|
645
645
|
xs: ["p-2", "text-xs"],
|
|
@@ -699,22 +699,21 @@ const checkbox = cva(
|
|
|
699
699
|
// disabled
|
|
700
700
|
"disabled:opacity-50",
|
|
701
701
|
"disabled:pointer-events-none",
|
|
702
|
-
"transition-
|
|
702
|
+
"transition-[background,color,box-shadow]"
|
|
703
703
|
],
|
|
704
704
|
{
|
|
705
705
|
variants: {
|
|
706
706
|
variant: {
|
|
707
707
|
surface: [
|
|
708
|
-
"ring
|
|
709
|
-
"ring-
|
|
710
|
-
"ring-(--base-a7)",
|
|
708
|
+
"inset-ring",
|
|
709
|
+
"inset-ring-(--base-a7)",
|
|
711
710
|
"bg-(--base-surface)",
|
|
712
711
|
"data-[state='checked']:bg-(--accent-indicator)",
|
|
713
|
-
"data-[state='checked']:ring-(--accent-indicator)",
|
|
712
|
+
"data-[state='checked']:inset-ring-(--accent-indicator)",
|
|
714
713
|
"text-(--accent-contrast)"
|
|
715
714
|
],
|
|
716
715
|
soft: ["bg-(--accent-a5)", "text-(--accent-a11)"],
|
|
717
|
-
outline: ["bg-transparent", "ring
|
|
716
|
+
outline: ["bg-transparent", "inset-ring", "inset-ring-(--accent-a7)", "text-(--accent-a11)"]
|
|
718
717
|
},
|
|
719
718
|
size: {
|
|
720
719
|
xs: ["h-4", "w-4", "text-xs"],
|
|
@@ -1206,18 +1205,19 @@ const inputRoot$1 = cva(
|
|
|
1206
1205
|
[
|
|
1207
1206
|
"flex",
|
|
1208
1207
|
"items-stretch",
|
|
1209
|
-
"
|
|
1210
|
-
"has-[:focus]:
|
|
1211
|
-
"has-[:focus]
|
|
1208
|
+
"has-[:focus]:outline-2",
|
|
1209
|
+
"has-[:focus]:outline-(--accent-8)",
|
|
1210
|
+
"has-[:focus]:-outline-offset-1",
|
|
1212
1211
|
"has-[:disabled]:opacity-50",
|
|
1213
|
-
"has-[:disabled]:pointer-events-none"
|
|
1212
|
+
"has-[:disabled]:pointer-events-none",
|
|
1213
|
+
"transition-[background,color,box-shadow]"
|
|
1214
1214
|
],
|
|
1215
1215
|
{
|
|
1216
1216
|
variants: {
|
|
1217
1217
|
variant: {
|
|
1218
|
-
surface: ["ring
|
|
1218
|
+
surface: ["inset-ring", "inset-ring-(--accent-a7)", "bg-(--accent-surface)", "text-(--accent-a12)"],
|
|
1219
1219
|
soft: ["bg-(--accent-a3)", "text-(--accent-12)"],
|
|
1220
|
-
outline: ["ring
|
|
1220
|
+
outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"]
|
|
1221
1221
|
},
|
|
1222
1222
|
size: {
|
|
1223
1223
|
xs: ["h-5", "text-xs"],
|
|
@@ -2848,13 +2848,13 @@ RadioGroupIndicator.displayName = "RadioGroupIndicator";
|
|
|
2848
2848
|
const RadioGroupContext = createContext({});
|
|
2849
2849
|
const radioGroupItem = cva(
|
|
2850
2850
|
[
|
|
2851
|
-
"outline-none",
|
|
2852
2851
|
"rounded-full",
|
|
2853
2852
|
"focus-visible:outline-2",
|
|
2854
2853
|
"focus-visible:outline-(--accent-a8)",
|
|
2855
2854
|
"focus-visible:outline-offset-2",
|
|
2856
2855
|
"disabled:opacity-50",
|
|
2857
|
-
"disabled:pointer-events-none"
|
|
2856
|
+
"disabled:pointer-events-none",
|
|
2857
|
+
"data-[state='checked']:transition-[background,color,box-shadow]"
|
|
2858
2858
|
],
|
|
2859
2859
|
{
|
|
2860
2860
|
variants: {
|
|
@@ -2862,10 +2862,9 @@ const radioGroupItem = cva(
|
|
|
2862
2862
|
surface: [
|
|
2863
2863
|
"bg-(--base-surface)",
|
|
2864
2864
|
"data-[state='checked']:bg-(--accent-indicator)",
|
|
2865
|
-
"ring
|
|
2866
|
-
"ring-
|
|
2867
|
-
"ring-(--
|
|
2868
|
-
"data-[state='checked']:ring-(--accent-indicator)",
|
|
2865
|
+
"inset-ring",
|
|
2866
|
+
"inset-ring-(--base-a6)",
|
|
2867
|
+
"data-[state='checked']:inset-ring-(--accent-indicator)",
|
|
2869
2868
|
"text-(--accent-contrast)"
|
|
2870
2869
|
],
|
|
2871
2870
|
soft: ["bg-(--accent-a3)", "text-(--accent-a11)"]
|
|
@@ -2921,8 +2920,8 @@ const segmentedControlRootCva = cva(["shrink-0", "transition-colors", "flex"], {
|
|
|
2921
2920
|
variants: {
|
|
2922
2921
|
variant: {
|
|
2923
2922
|
soft: ["bg-(--accent-a3)"],
|
|
2924
|
-
surface: ["bg-(--accent-surface)", "ring
|
|
2925
|
-
outline: ["bg-transparent", "ring-1", "ring-(--accent-a6)"]
|
|
2923
|
+
surface: ["bg-(--accent-surface)", "inset-ring", "inset-ring-(--accent-a6)"],
|
|
2924
|
+
outline: ["bg-transparent", "inset-ring-1", "inset-ring-(--accent-a6)"]
|
|
2926
2925
|
},
|
|
2927
2926
|
size: {
|
|
2928
2927
|
xs: ["h-5", "text-xs"],
|
|
@@ -3324,7 +3323,7 @@ const SlideOutV2 = memo(
|
|
|
3324
3323
|
})
|
|
3325
3324
|
);
|
|
3326
3325
|
const Spinner = memo(() => {
|
|
3327
|
-
return /* @__PURE__ */ jsx("div", { className: "size-5 animate-spin rounded-full border
|
|
3326
|
+
return /* @__PURE__ */ jsx("div", { className: "size-5 animate-spin rounded-full border-2 border-(--base-a12) border-b-transparent" });
|
|
3328
3327
|
});
|
|
3329
3328
|
Spinner.displayName = "Spinner";
|
|
3330
3329
|
const SwitchContext = createContext({});
|
|
@@ -3339,13 +3338,13 @@ const switchRoot = cva(
|
|
|
3339
3338
|
"focus-visible:outline-offset-2",
|
|
3340
3339
|
"focus-visible:outline-(--accent-a8)",
|
|
3341
3340
|
// ring
|
|
3342
|
-
"ring
|
|
3343
|
-
"ring-(--base-a4)",
|
|
3344
|
-
"data-[state=checked]:ring-(--accent-track)",
|
|
3341
|
+
"inset-ring",
|
|
3342
|
+
"inset-ring-(--base-a4)",
|
|
3343
|
+
"data-[state=checked]:inset-ring-(--accent-track)",
|
|
3345
3344
|
// bg
|
|
3346
3345
|
"bg-(--base-4)",
|
|
3347
3346
|
"data-[state=checked]:bg-(--accent-track)",
|
|
3348
|
-
"transition-
|
|
3347
|
+
"transition-[background,color,box-shadow]"
|
|
3349
3348
|
],
|
|
3350
3349
|
{
|
|
3351
3350
|
variants: {
|
|
@@ -3368,17 +3367,18 @@ const switchThumb = cva(
|
|
|
3368
3367
|
"items-center",
|
|
3369
3368
|
"justify-center",
|
|
3370
3369
|
"transition-transform",
|
|
3371
|
-
"data-[state='
|
|
3370
|
+
"data-[state='unchecked']:translate-x-[1px]",
|
|
3371
|
+
"data-[state='checked']:translate-x-[calc(100%+1px)]",
|
|
3372
3372
|
"bg-(--base-contrast)"
|
|
3373
3373
|
],
|
|
3374
3374
|
{
|
|
3375
3375
|
variants: {
|
|
3376
3376
|
size: {
|
|
3377
|
-
xs: ["
|
|
3378
|
-
sm: ["
|
|
3379
|
-
md: ["
|
|
3380
|
-
lg: ["
|
|
3381
|
-
xl: ["
|
|
3377
|
+
xs: ["size-[calc(calc(var(--spacing)*5)-1px)]"],
|
|
3378
|
+
sm: ["size-[calc(calc(var(--spacing)*6)-1px)]"],
|
|
3379
|
+
md: ["size-[calc(calc(var(--spacing)*7)-1px)]"],
|
|
3380
|
+
lg: ["size-[calc(calc(var(--spacing)*8)-1px)]"],
|
|
3381
|
+
xl: ["size-[calc(calc(var(--spacing)*9)-1px)]"]
|
|
3382
3382
|
}
|
|
3383
3383
|
},
|
|
3384
3384
|
defaultVariants: {
|
|
@@ -3686,14 +3686,14 @@ const Text = forwardRef((props, ref) => {
|
|
|
3686
3686
|
Text.displayName = "Text";
|
|
3687
3687
|
const textAreaCva = cva(
|
|
3688
3688
|
[
|
|
3689
|
-
"focus:
|
|
3690
|
-
"focus:
|
|
3689
|
+
"focus:outline-(--accent-a8)",
|
|
3690
|
+
"focus:outline-2",
|
|
3691
|
+
"focus:-outline-offset-1",
|
|
3691
3692
|
"disabled:opacity-50",
|
|
3692
3693
|
"disabled:pointer-events-none",
|
|
3693
|
-
"transition-colors",
|
|
3694
3694
|
"[scrollbar-width:thin]",
|
|
3695
3695
|
"[scrollbar-color:var(--base-6)_transparent]",
|
|
3696
|
-
"
|
|
3696
|
+
"transition-[background,color,box-shadow]"
|
|
3697
3697
|
],
|
|
3698
3698
|
{
|
|
3699
3699
|
variants: {
|
|
@@ -3701,8 +3701,8 @@ const textAreaCva = cva(
|
|
|
3701
3701
|
outline: [
|
|
3702
3702
|
"placeholder-(--base-a9)",
|
|
3703
3703
|
"selection:bg-(--accent-a5)",
|
|
3704
|
-
"ring
|
|
3705
|
-
"ring-(--base-a7)",
|
|
3704
|
+
"inset-ring",
|
|
3705
|
+
"inset-ring-(--base-a7)",
|
|
3706
3706
|
"bg-transparent",
|
|
3707
3707
|
"text-(--base-12)"
|
|
3708
3708
|
],
|
|
@@ -3710,8 +3710,8 @@ const textAreaCva = cva(
|
|
|
3710
3710
|
"placeholder-(--accent-12)",
|
|
3711
3711
|
"placeholder:opacity-60",
|
|
3712
3712
|
"selection:bg-(--accent-a5)",
|
|
3713
|
-
"ring
|
|
3714
|
-
"ring-(--accent-a7)",
|
|
3713
|
+
"inset-ring",
|
|
3714
|
+
"inset-ring-(--accent-a7)",
|
|
3715
3715
|
"bg-(--accent-surface)",
|
|
3716
3716
|
"text-(--accent-a12)"
|
|
3717
3717
|
],
|
|
@@ -3940,18 +3940,17 @@ const toggleButtonCva = cva(
|
|
|
3940
3940
|
// Disabled
|
|
3941
3941
|
"disabled:opacity-50",
|
|
3942
3942
|
"disabled:pointer-events-none",
|
|
3943
|
-
"transition-
|
|
3943
|
+
"transition-[background,color,box-shadow]"
|
|
3944
3944
|
],
|
|
3945
3945
|
{
|
|
3946
3946
|
variants: {
|
|
3947
3947
|
variant: {
|
|
3948
3948
|
outline: [
|
|
3949
3949
|
// ring
|
|
3950
|
-
"ring
|
|
3951
|
-
"ring-
|
|
3952
|
-
"ring-
|
|
3953
|
-
"data-[state=
|
|
3954
|
-
"data-[state=on]:ring-transparent",
|
|
3950
|
+
"inset-ring",
|
|
3951
|
+
"inset-ring-(--accent-a4)",
|
|
3952
|
+
"data-[state=off]:hover:inset-ring-transparent",
|
|
3953
|
+
"data-[state=on]:inset-ring-transparent",
|
|
3955
3954
|
// text
|
|
3956
3955
|
"text-(--accent-a11)",
|
|
3957
3956
|
"data-[state=on]:text-(--accent-a12)",
|