@usetheo/ui 0.27.0 → 0.28.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.
|
@@ -8,7 +8,7 @@ declare const inputVariants: (props?: ({
|
|
|
8
8
|
*
|
|
9
9
|
* Violet Forge specifics:
|
|
10
10
|
* - height 40px (h-10) matching default Button md.
|
|
11
|
-
* - rounded-
|
|
11
|
+
* - rounded-lg (8px) — matches buttons (compact Builder identity, 2026-07-16).
|
|
12
12
|
* - focus uses violet ring (--ring).
|
|
13
13
|
* - placeholder uses --muted-foreground.
|
|
14
14
|
*
|
package/dist/index.js
CHANGED
|
@@ -583,9 +583,9 @@ var buttonVariants = cva(
|
|
|
583
583
|
// md: tier ajustável via density (CSS var on :root). See D3 ADR of
|
|
584
584
|
// faang-density-tightening plan. Default `comfortable` density makes
|
|
585
585
|
// this 36px (--theo-control-h: 2.25rem). sm and lg stay hardcoded.
|
|
586
|
-
md: "h-[var(--theo-control-h,
|
|
586
|
+
md: "h-[var(--theo-control-h,2rem)] px-[var(--theo-control-px,0.75rem)] text-body-sm",
|
|
587
587
|
lg: "h-11 px-4 text-body-md",
|
|
588
|
-
icon: "h-[var(--theo-control-h,
|
|
588
|
+
icon: "h-[var(--theo-control-h,2rem)] w-[var(--theo-control-h,2rem)] p-0"
|
|
589
589
|
}
|
|
590
590
|
},
|
|
591
591
|
defaultVariants: {
|
|
@@ -1102,7 +1102,7 @@ var JsonViewer = forwardRef(
|
|
|
1102
1102
|
JsonViewer.displayName = "JsonViewer";
|
|
1103
1103
|
var inputVariants = cva(
|
|
1104
1104
|
[
|
|
1105
|
-
"flex w-full rounded-
|
|
1105
|
+
"flex w-full rounded-lg border border-input bg-card",
|
|
1106
1106
|
"text-foreground placeholder:text-muted-foreground",
|
|
1107
1107
|
"transition-[box-shadow,border-color] duration-base ease-out-soft",
|
|
1108
1108
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -1115,7 +1115,7 @@ var inputVariants = cva(
|
|
|
1115
1115
|
size: {
|
|
1116
1116
|
sm: "h-8 px-2.5 py-1 text-body-sm",
|
|
1117
1117
|
// md: density-tunable via CSS var. Comfortable (default) = 36px.
|
|
1118
|
-
md: "h-[var(--theo-control-h,
|
|
1118
|
+
md: "h-[var(--theo-control-h,2rem)] px-[var(--theo-control-px,0.75rem)] py-1.5 text-body-sm",
|
|
1119
1119
|
lg: "h-11 px-4 py-2.5 text-body-md"
|
|
1120
1120
|
}
|
|
1121
1121
|
},
|
|
@@ -2368,7 +2368,7 @@ var EmptyState = forwardRef(
|
|
|
2368
2368
|
EmptyState.displayName = "EmptyState";
|
|
2369
2369
|
var selectTriggerVariants = cva(
|
|
2370
2370
|
[
|
|
2371
|
-
"flex w-full items-center justify-between gap-2 rounded-
|
|
2371
|
+
"flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-card",
|
|
2372
2372
|
"text-foreground placeholder:text-muted-foreground",
|
|
2373
2373
|
"transition-[border-color,box-shadow] duration-base ease-out-soft",
|
|
2374
2374
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -2381,7 +2381,7 @@ var selectTriggerVariants = cva(
|
|
|
2381
2381
|
variants: {
|
|
2382
2382
|
size: {
|
|
2383
2383
|
sm: "h-8 px-2.5 py-1 text-body-sm",
|
|
2384
|
-
md: "h-[var(--theo-control-h,
|
|
2384
|
+
md: "h-[var(--theo-control-h,2rem)] px-[var(--theo-control-px,0.75rem)] py-1.5 text-body-sm",
|
|
2385
2385
|
lg: "h-11 px-4 py-2.5 text-body-md"
|
|
2386
2386
|
}
|
|
2387
2387
|
},
|
|
@@ -2632,7 +2632,7 @@ var Switch = forwardRef(
|
|
|
2632
2632
|
Switch.displayName = "Switch";
|
|
2633
2633
|
var textareaVariants = cva(
|
|
2634
2634
|
[
|
|
2635
|
-
"flex w-full resize-y rounded-
|
|
2635
|
+
"flex w-full resize-y rounded-lg border border-input bg-card",
|
|
2636
2636
|
"text-foreground placeholder:text-muted-foreground",
|
|
2637
2637
|
"transition-[box-shadow,border-color] duration-base ease-out-soft",
|
|
2638
2638
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -2645,7 +2645,7 @@ var textareaVariants = cva(
|
|
|
2645
2645
|
sm: "min-h-[64px] px-2.5 py-1.5 text-body-sm",
|
|
2646
2646
|
// md: text scale + padding tighten to body-sm per FAANG density.
|
|
2647
2647
|
// min-h stays 96px because multiline has its own height rationale.
|
|
2648
|
-
md: "min-h-[6rem] px-[var(--theo-control-px,0.
|
|
2648
|
+
md: "min-h-[6rem] px-[var(--theo-control-px,0.75rem)] py-1.5 text-body-sm",
|
|
2649
2649
|
lg: "min-h-[128px] px-4 py-2.5 text-body-md"
|
|
2650
2650
|
}
|
|
2651
2651
|
},
|
|
@@ -8485,7 +8485,7 @@ var EvaluatorForm = forwardRef(
|
|
|
8485
8485
|
disabled,
|
|
8486
8486
|
onChange: (e) => onChange(defaultEvaluatorConfig(e.target.value)),
|
|
8487
8487
|
className: cn(
|
|
8488
|
-
"flex h-[var(--theo-control-h,
|
|
8488
|
+
"flex h-[var(--theo-control-h,2rem)] w-full rounded-lg border border-input bg-card px-[var(--theo-control-px,0.75rem)] py-1.5 text-body-sm text-foreground",
|
|
8489
8489
|
"focus-visible:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
8490
8490
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
8491
8491
|
),
|
package/dist/tailwind-preset.js
CHANGED
|
@@ -109,7 +109,7 @@ var theoUIPreset = {
|
|
|
109
109
|
// weight) remains separate via its line-height / weight signature.
|
|
110
110
|
"body-lg": ["18px", { lineHeight: "1.56", letterSpacing: "-0.01em", fontWeight: "400" }],
|
|
111
111
|
"body-md": ["14px", { lineHeight: "1.43", letterSpacing: "0", fontWeight: "400" }],
|
|
112
|
-
"body-sm": ["
|
|
112
|
+
"body-sm": ["14px", { lineHeight: "1.43", fontWeight: "400" }],
|
|
113
113
|
// Label tier — used on buttons, nav, secondary actions
|
|
114
114
|
label: ["14px", { lineHeight: "1.43", fontWeight: "500" }],
|
|
115
115
|
"label-caps": ["12px", { lineHeight: "1.33", letterSpacing: "0.04em", fontWeight: "500" }],
|
package/package.json
CHANGED