asma-ui-core 3.49.1 → 3.49.2
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/components/inputs/field-styles.js +31 -5
- package/dist/components/inputs/input-field/StyledInputField.js +121 -123
- package/dist/components/miscellaneous/StyledInputLabel.js +14 -13
- package/dist/src/components/inputs/field-styles.d.ts +13 -0
- package/dist/src/components/inputs/field-styles.layout.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
import { cn as a } from "../../helpers/cn.js";
|
|
2
|
-
var
|
|
2
|
+
var d = () => ({
|
|
3
|
+
boxSizing: "border-box",
|
|
4
|
+
height: 40,
|
|
5
|
+
minHeight: 40,
|
|
6
|
+
maxHeight: 40
|
|
7
|
+
}), l = ({ paddingLeft: e = 14, paddingRight: r = 14 } = {}) => ({
|
|
8
|
+
boxSizing: "border-box",
|
|
9
|
+
margin: 0,
|
|
10
|
+
paddingTop: 0,
|
|
11
|
+
paddingBottom: 0,
|
|
12
|
+
paddingLeft: e,
|
|
13
|
+
paddingRight: r,
|
|
14
|
+
height: 40,
|
|
15
|
+
minHeight: 40,
|
|
16
|
+
maxHeight: 40,
|
|
17
|
+
lineHeight: "24px",
|
|
18
|
+
fontSize: 16
|
|
19
|
+
}), b = (e) => e ? {
|
|
20
|
+
top: 0,
|
|
21
|
+
transform: "translateY(-50%)"
|
|
22
|
+
} : {
|
|
23
|
+
top: "50%",
|
|
24
|
+
transform: "translateY(-50%)"
|
|
25
|
+
}, x = ({ focused: e, error: r, disabled: t, readOnly: o }) => a("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", t ? "border-delta-300" : o ? "border-delta-200" : r ? a("border-error-500", e && "border-2") : e ? "border-2 border-gama-400" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), s = ({ focused: e, error: r, disabled: t, readOnly: o, notched: n = !0 }) => a("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", n ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-2 border-gama-400" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), g = (e) => a("invisible block h-[11px] overflow-hidden p-0 text-xs leading-[23px] transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), p = ({ shrink: e, focused: r, error: t, disabled: o, readOnly: n }) => a("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", o ? "text-delta-300" : n ? "text-delta-800" : t ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
|
|
3
26
|
export {
|
|
4
|
-
|
|
5
|
-
b as
|
|
6
|
-
|
|
7
|
-
|
|
27
|
+
p as floatingLabelClass,
|
|
28
|
+
b as floatingLabelLayoutStyle,
|
|
29
|
+
g as notchedLegendClass,
|
|
30
|
+
s as notchedOutlineClass,
|
|
31
|
+
x as outlineClass,
|
|
32
|
+
l as singleLineInputLayoutStyle,
|
|
33
|
+
d as singleLineShellLayoutStyle
|
|
8
34
|
};
|
|
@@ -1,195 +1,193 @@
|
|
|
1
1
|
import { cn as l } from "../../../helpers/cn.js";
|
|
2
|
-
import { resolveSx as
|
|
2
|
+
import { resolveSx as F } from "../../../helpers/sx.js";
|
|
3
3
|
import { CloseIcon as $e } from "../../icons/close-icon/CloseIcon.js";
|
|
4
|
-
import { ErrorOutlineIcon as
|
|
5
|
-
import { floatingLabelClass as
|
|
6
|
-
import
|
|
7
|
-
import { Children as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { useMergeRefs as
|
|
10
|
-
var
|
|
11
|
-
const
|
|
12
|
-
n || (
|
|
13
|
-
},
|
|
14
|
-
!s && !n &&
|
|
15
|
-
},
|
|
16
|
-
!s && !n &&
|
|
4
|
+
import { ErrorOutlineIcon as je } from "../../icons/error-outline-icon/ErrorOutlineIcon.js";
|
|
5
|
+
import { floatingLabelClass as ze, floatingLabelLayoutStyle as Ke, notchedLegendClass as Ue, notchedOutlineClass as J, singleLineInputLayoutStyle as Ve, singleLineShellLayoutStyle as We } from "../field-styles.js";
|
|
6
|
+
import y from "./StyledInputField.module.js";
|
|
7
|
+
import { Children as Ye, useCallback as Ge, useId as Je, useLayoutEffect as Q, useRef as X, useState as E } from "react";
|
|
8
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
9
|
+
import { useMergeRefs as Z } from "@floating-ui/react";
|
|
10
|
+
var bt = ({ dataTest: p, label: a, value: u, defaultValue: S, onChange: q, onBlur: O, onFocus: ee, error: o, helperText: L, disabled: s, readOnly: n, required: v, allowClear: te, onClear: ne, type: ie = "text", placeholder: oe, name: ae, id: le, autoComplete: se, autoFocus: de, multiline: d, rows: A, minRows: I, maxRows: C, size: re = "medium", fullWidth: ce, className: he, style: me, sx: pe, inputRef: ue, slotProps: t, InputProps: k, onKeyDown: D, onClick: ge, variant: Qe }) => {
|
|
11
|
+
const fe = Je(), T = le ?? fe, P = `${T}-helper-text`, $ = X(null), j = X(null), [xe, be] = E(void 0), [H, z] = E(!1), [ye, K] = E(S != null && S !== ""), _ = u !== void 0, U = _ ? u !== "" && u != null : ye, Se = !!s || !!n, R = t?.input?.startAdornment ?? k?.startAdornment, g = Ye.count(R) > 0, r = g && Array.isArray(R), f = t?.input?.endAdornment ?? k?.endAdornment, w = !!(te && U && !Se), { ref: Le, ...c } = t?.htmlInput ?? {}, Ie = ue ?? Le, { className: He, style: M, ref: Ne } = t?.input ?? {}, ve = Z([Ne]), Ae = t?.input?.onMouseDown, N = H || U || g, Ce = (e) => {
|
|
12
|
+
n || (_ || K(e.target.value !== ""), q?.(e));
|
|
13
|
+
}, _e = (e) => {
|
|
14
|
+
!s && !n && z(!0), ee?.(e);
|
|
15
|
+
}, Re = (e) => {
|
|
16
|
+
!s && !n && z(!1), O?.(e);
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
const e =
|
|
20
|
-
if (!
|
|
18
|
+
Q(() => {
|
|
19
|
+
const e = $.current;
|
|
20
|
+
if (!d || A != null || !e) return;
|
|
21
21
|
e.style.height = "auto";
|
|
22
|
-
const
|
|
23
|
-
e.style.height = `${Math.min(
|
|
22
|
+
const h = getComputedStyle(e), b = Number.parseFloat(h.lineHeight) || 24, G = Number.parseFloat(h.paddingTop) + Number.parseFloat(h.paddingBottom), Te = I ? I * b + G : 0, Pe = C ? C * b + G : Number.POSITIVE_INFINITY;
|
|
23
|
+
e.style.height = `${Math.min(Pe, Math.max(Te, e.scrollHeight))}px`;
|
|
24
24
|
}, [
|
|
25
|
-
|
|
25
|
+
S,
|
|
26
26
|
C,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
I,
|
|
28
|
+
d,
|
|
29
29
|
A,
|
|
30
|
-
|
|
30
|
+
u
|
|
31
31
|
]);
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
}, [])]), { style:
|
|
32
|
+
const V = Z([Ie, Ge((e) => {
|
|
33
|
+
$.current = e instanceof HTMLTextAreaElement ? e : null;
|
|
34
|
+
}, [])]), { style: B, ...we } = c, x = !d && !r, { height: Xe, minHeight: Ze, maxHeight: qe, paddingTop: Oe, paddingBottom: et, ...Me } = M ?? {}, Be = x ? {
|
|
35
|
+
...Me,
|
|
36
|
+
...We()
|
|
37
|
+
} : r ? {
|
|
35
38
|
boxSizing: "border-box",
|
|
36
|
-
height: 40,
|
|
37
39
|
minHeight: 40,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} : E;
|
|
51
|
-
Z(() => {
|
|
52
|
-
if (!f) return;
|
|
53
|
-
const e = j.current, m = e ? Math.ceil(e.getBoundingClientRect().width) + 20 : void 0;
|
|
54
|
-
be((g) => g === m ? g : m);
|
|
40
|
+
...M
|
|
41
|
+
} : M, { height: tt, minHeight: nt, maxHeight: it, paddingTop: ot, paddingBottom: at, paddingLeft: lt, paddingRight: Fe, ...Ee } = B ?? {}, ke = x ? {
|
|
42
|
+
...Ee,
|
|
43
|
+
...Ve({
|
|
44
|
+
paddingLeft: g ? 40 : 14,
|
|
45
|
+
paddingRight: Fe ?? xe ?? (w || f ? 40 : 14)
|
|
46
|
+
})
|
|
47
|
+
} : B;
|
|
48
|
+
Q(() => {
|
|
49
|
+
if (!x) return;
|
|
50
|
+
const e = j.current, h = e ? Math.ceil(e.getBoundingClientRect().width) + 20 : void 0;
|
|
51
|
+
be((b) => b === h ? b : h);
|
|
55
52
|
});
|
|
56
|
-
const
|
|
57
|
-
...
|
|
58
|
-
style:
|
|
59
|
-
name:
|
|
60
|
-
placeholder:
|
|
53
|
+
const W = {
|
|
54
|
+
...we,
|
|
55
|
+
style: x ? ke : B,
|
|
56
|
+
name: ae,
|
|
57
|
+
placeholder: N || !a ? oe : void 0,
|
|
61
58
|
disabled: s,
|
|
62
59
|
readOnly: n,
|
|
63
|
-
required:
|
|
64
|
-
autoComplete:
|
|
60
|
+
required: v,
|
|
61
|
+
autoComplete: se,
|
|
65
62
|
autoFocus: de,
|
|
66
|
-
value:
|
|
67
|
-
defaultValue:
|
|
68
|
-
"aria-invalid":
|
|
63
|
+
value: u,
|
|
64
|
+
defaultValue: S,
|
|
65
|
+
"aria-invalid": o ? !0 : void 0,
|
|
69
66
|
"aria-label": c["aria-label"] ?? (c["aria-labelledby"] ? void 0 : typeof a == "string" && a !== "" ? a : void 0),
|
|
70
|
-
"aria-describedby": !n && (
|
|
71
|
-
onChange:
|
|
72
|
-
onFocus:
|
|
73
|
-
onBlur:
|
|
67
|
+
"aria-describedby": !n && (L != null || o) ? P : c["aria-describedby"],
|
|
68
|
+
onChange: Ce,
|
|
69
|
+
onFocus: _e,
|
|
70
|
+
onBlur: Re,
|
|
74
71
|
onKeyDown: c.onKeyDown || D ? (e) => {
|
|
75
72
|
D?.(e), e.defaultPrevented || c.onKeyDown?.(e);
|
|
76
73
|
} : void 0
|
|
77
|
-
},
|
|
78
|
-
"data-start-adornment":
|
|
79
|
-
"data-end-adornment":
|
|
74
|
+
}, Y = l(y.Input, "peer border-0 bg-transparent text-base tracking-[0.00938em] text-delta-800 outline-none placeholder:text-delta-500", r ? "box-border h-8 min-w-[60px] flex-1 py-0 pl-0 pr-0 leading-[23px]" : d ? "w-full resize-none overflow-hidden p-0 pl-0 pr-0 leading-[23px]" : l("w-full", y["Input--singleLine"]), "disabled:text-delta-300", n && "text-delta-800", He), De = !d && !r ? {
|
|
75
|
+
"data-start-adornment": g ? "true" : void 0,
|
|
76
|
+
"data-end-adornment": w || f ? "true" : void 0
|
|
80
77
|
} : {};
|
|
81
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ m("div", {
|
|
82
79
|
className: l("group relative inline-flex flex-col", he),
|
|
83
80
|
onClick: ge,
|
|
84
81
|
style: {
|
|
85
|
-
width:
|
|
82
|
+
width: ce ? "100%" : 235,
|
|
86
83
|
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
|
|
87
84
|
letterSpacing: "0.00938em",
|
|
88
|
-
...
|
|
89
|
-
...
|
|
85
|
+
...F(pe),
|
|
86
|
+
...me
|
|
90
87
|
},
|
|
91
|
-
children: [/* @__PURE__ */
|
|
88
|
+
children: [/* @__PURE__ */ m("div", {
|
|
92
89
|
className: "relative overflow-visible",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
94
|
-
className: l("relative flex",
|
|
95
|
-
ref:
|
|
96
|
-
onMouseDown:
|
|
97
|
-
style:
|
|
98
|
-
"data-testid":
|
|
90
|
+
children: [/* @__PURE__ */ m("div", {
|
|
91
|
+
className: l("relative flex", x && y.InputShell, d && "box-border items-center px-[14px] py-[16.5px]", r && l(y.AdornmentList, f && y["AdornmentList--endAdornment"]), n && "rounded bg-delta-50"),
|
|
92
|
+
ref: ve,
|
|
93
|
+
onMouseDown: Ae,
|
|
94
|
+
style: Be,
|
|
95
|
+
"data-testid": r ? `${p}-adornment-list` : `${p}-shell`,
|
|
99
96
|
children: [
|
|
100
|
-
|
|
101
|
-
className: l("items-center text-delta-500",
|
|
102
|
-
children:
|
|
97
|
+
g && /* @__PURE__ */ i("span", {
|
|
98
|
+
className: l("items-center text-delta-500", r ? "contents" : "absolute left-3 flex"),
|
|
99
|
+
children: R
|
|
103
100
|
}),
|
|
104
|
-
|
|
105
|
-
...
|
|
106
|
-
ref:
|
|
107
|
-
"data-testid":
|
|
108
|
-
rows: A ??
|
|
109
|
-
className:
|
|
110
|
-
}) : /* @__PURE__ */
|
|
111
|
-
...
|
|
112
|
-
...
|
|
113
|
-
ref:
|
|
114
|
-
"data-testid":
|
|
101
|
+
d ? /* @__PURE__ */ i("textarea", {
|
|
102
|
+
...W,
|
|
103
|
+
ref: V,
|
|
104
|
+
"data-testid": p,
|
|
105
|
+
rows: A ?? I ?? 2,
|
|
106
|
+
className: Y
|
|
107
|
+
}) : /* @__PURE__ */ i("input", {
|
|
108
|
+
...W,
|
|
109
|
+
...De,
|
|
110
|
+
ref: V,
|
|
111
|
+
"data-testid": p,
|
|
115
112
|
type: ie,
|
|
116
|
-
className:
|
|
113
|
+
className: Y
|
|
117
114
|
}),
|
|
118
|
-
|
|
115
|
+
w ? /* @__PURE__ */ i("button", {
|
|
119
116
|
type: "button",
|
|
120
117
|
"aria-label": "Clear",
|
|
121
|
-
"data-testid": `${
|
|
118
|
+
"data-testid": `${p}-clear`,
|
|
122
119
|
className: "absolute right-4 z-40 flex items-center justify-center rounded-full border-0 bg-transparent p-[2px] duration-300 hover:bg-gama-100",
|
|
123
120
|
onClick: (e) => {
|
|
124
|
-
e.stopPropagation(), e.preventDefault(),
|
|
121
|
+
e.stopPropagation(), e.preventDefault(), _ || K(!1), ne?.();
|
|
125
122
|
},
|
|
126
|
-
children: /* @__PURE__ */
|
|
123
|
+
children: /* @__PURE__ */ i($e, {
|
|
127
124
|
width: 18,
|
|
128
125
|
height: 18
|
|
129
126
|
})
|
|
130
|
-
}) :
|
|
127
|
+
}) : f && /* @__PURE__ */ i("span", {
|
|
131
128
|
ref: j,
|
|
132
129
|
className: "absolute inset-y-0 right-[14px] flex max-w-[calc(100%-28px)] items-center gap-1",
|
|
133
|
-
children:
|
|
130
|
+
children: f
|
|
134
131
|
}),
|
|
135
|
-
a ? /* @__PURE__ */
|
|
132
|
+
a ? /* @__PURE__ */ i("fieldset", {
|
|
136
133
|
"aria-hidden": !0,
|
|
137
|
-
className:
|
|
138
|
-
focused:
|
|
139
|
-
error:
|
|
134
|
+
className: J({
|
|
135
|
+
focused: H,
|
|
136
|
+
error: o,
|
|
140
137
|
disabled: s,
|
|
141
138
|
readOnly: n,
|
|
142
139
|
notched: !0
|
|
143
140
|
}),
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
className:
|
|
146
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ i("legend", {
|
|
142
|
+
className: Ue(N),
|
|
143
|
+
children: /* @__PURE__ */ m("span", {
|
|
147
144
|
className: "inline-block px-[5px]",
|
|
148
|
-
children: [a,
|
|
145
|
+
children: [a, v && " *"]
|
|
149
146
|
})
|
|
150
147
|
})
|
|
151
|
-
}) : /* @__PURE__ */
|
|
148
|
+
}) : /* @__PURE__ */ i("div", {
|
|
152
149
|
"aria-hidden": !0,
|
|
153
|
-
className:
|
|
154
|
-
focused:
|
|
155
|
-
error:
|
|
150
|
+
className: J({
|
|
151
|
+
focused: H,
|
|
152
|
+
error: o,
|
|
156
153
|
disabled: s,
|
|
157
154
|
readOnly: n,
|
|
158
155
|
notched: !1
|
|
159
156
|
})
|
|
160
157
|
})
|
|
161
158
|
]
|
|
162
|
-
}), a && /* @__PURE__ */
|
|
163
|
-
htmlFor:
|
|
164
|
-
className: l(
|
|
165
|
-
shrink:
|
|
166
|
-
focused:
|
|
167
|
-
error:
|
|
159
|
+
}), a && /* @__PURE__ */ m("label", {
|
|
160
|
+
htmlFor: T,
|
|
161
|
+
className: l(ze({
|
|
162
|
+
shrink: N,
|
|
163
|
+
focused: H,
|
|
164
|
+
error: o,
|
|
168
165
|
disabled: s,
|
|
169
166
|
readOnly: n,
|
|
170
|
-
size:
|
|
167
|
+
size: re
|
|
171
168
|
}), t?.inputLabel?.className),
|
|
172
169
|
style: {
|
|
173
|
-
...
|
|
174
|
-
...t?.inputLabel?.style
|
|
170
|
+
...F(t?.inputLabel?.sx),
|
|
171
|
+
...t?.inputLabel?.style,
|
|
172
|
+
...Ke(N)
|
|
175
173
|
},
|
|
176
|
-
children: [a,
|
|
174
|
+
children: [a, v && " *"]
|
|
177
175
|
})]
|
|
178
|
-
}), !n && (
|
|
179
|
-
id:
|
|
180
|
-
className: l(!t?.formHelperText && "mr-[14px] box-border min-h-[24px] pt-1",
|
|
181
|
-
style:
|
|
182
|
-
children: [
|
|
176
|
+
}), !n && (L != null || o) && /* @__PURE__ */ m("div", {
|
|
177
|
+
id: P,
|
|
178
|
+
className: l(!t?.formHelperText && "mr-[14px] box-border min-h-[24px] pt-1", o && !t?.formHelperText?.hideErrorIcon && "flex items-start gap-1 text-error-500", !o && "text-delta-600", t?.formHelperText?.className),
|
|
179
|
+
style: F(t?.formHelperText?.sx),
|
|
180
|
+
children: [o && !t?.formHelperText?.hideErrorIcon && /* @__PURE__ */ i(je, {
|
|
183
181
|
width: 20,
|
|
184
182
|
height: 20,
|
|
185
183
|
className: "min-w-5 shrink-0"
|
|
186
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ i("span", {
|
|
187
185
|
className: "text-sm leading-5 tracking-[0.03333em]",
|
|
188
|
-
children:
|
|
186
|
+
children: o ? L ?? "Required" : L
|
|
189
187
|
})]
|
|
190
188
|
})]
|
|
191
189
|
});
|
|
192
190
|
};
|
|
193
191
|
export {
|
|
194
|
-
|
|
192
|
+
bt as StyledInputField
|
|
195
193
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { cn as m } from "../../helpers/cn.js";
|
|
2
|
-
import { floatingLabelClass as u } from "../inputs/field-styles.js";
|
|
3
|
-
import { useFormControlContext as
|
|
4
|
-
import { jsxs as
|
|
5
|
-
var
|
|
6
|
-
const e =
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
htmlFor:
|
|
9
|
-
id:
|
|
2
|
+
import { floatingLabelClass as u, floatingLabelLayoutStyle as b } from "../inputs/field-styles.js";
|
|
3
|
+
import { useFormControlContext as p } from "./FormControlContext.js";
|
|
4
|
+
import { jsxs as x } from "react/jsx-runtime";
|
|
5
|
+
var S = ({ children: o, htmlFor: s, id: l, required: t, disabled: i, error: a, size: d, shrink: n, className: f }) => {
|
|
6
|
+
const e = p(), r = n ?? (e ? e.focused || e.filled : !1), c = t ?? e?.required ?? !1;
|
|
7
|
+
return /* @__PURE__ */ x("label", {
|
|
8
|
+
htmlFor: s,
|
|
9
|
+
id: l ?? e?.labelId,
|
|
10
10
|
className: m(u({
|
|
11
|
-
shrink:
|
|
11
|
+
shrink: r,
|
|
12
12
|
focused: e?.focused,
|
|
13
|
-
error:
|
|
13
|
+
error: a ?? e?.error,
|
|
14
14
|
disabled: i ?? e?.disabled,
|
|
15
15
|
size: d ?? e?.size
|
|
16
|
-
}),
|
|
17
|
-
|
|
16
|
+
}), f),
|
|
17
|
+
style: b(r),
|
|
18
|
+
children: [o, c && " *"]
|
|
18
19
|
});
|
|
19
20
|
};
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
S as StyledInputLabel
|
|
22
23
|
};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/** Figma single-line outlined field height — pinned inline so duplicate app CSS cannot resize the box. */
|
|
3
|
+
export declare const SINGLE_LINE_FIELD_HEIGHT_PX = 40;
|
|
4
|
+
/** Inline layout for the 40px input shell; spread caller styles first, then this. */
|
|
5
|
+
export declare const singleLineShellLayoutStyle: () => CSSProperties;
|
|
6
|
+
export interface SingleLineInputLayoutOptions {
|
|
7
|
+
paddingLeft?: CSSProperties['paddingLeft'];
|
|
8
|
+
paddingRight?: CSSProperties['paddingRight'];
|
|
9
|
+
}
|
|
10
|
+
/** Inline layout for the single-line `<input>`; spread caller/htmlInput styles first, then this. */
|
|
11
|
+
export declare const singleLineInputLayoutStyle: ({ paddingLeft, paddingRight, }?: SingleLineInputLayoutOptions) => CSSProperties;
|
|
12
|
+
/** Label vertical anchor — inline so duplicate Tailwind `top-*` utilities cannot shift it. */
|
|
13
|
+
export declare const floatingLabelLayoutStyle: (shrink: boolean) => CSSProperties;
|
|
1
14
|
/**
|
|
2
15
|
* Shared outlined-field styling so `StyledInputField`, `StyledInputLabel` (+ `StyledFormControl`)
|
|
3
16
|
* and `StyledSelect` render an identical border + floating label without MUI. TASK-401.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|