@kanso-labs/kanso-ui 0.26.5 → 0.26.6

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.
Files changed (62) hide show
  1. package/dist/calendar/index.js +2 -1
  2. package/dist/calendar/index.js.map +1 -1
  3. package/dist/calendar/styles.js +0 -13
  4. package/dist/calendar/styles.js.map +1 -1
  5. package/dist/collection/index.js +31 -0
  6. package/dist/collection/index.js.map +1 -0
  7. package/dist/collection/styles.js +57 -0
  8. package/dist/collection/styles.js.map +1 -0
  9. package/dist/components/checkbox/index.js +35 -56
  10. package/dist/components/checkbox/index.js.map +1 -1
  11. package/dist/components/checkbox-group/index.js +8 -6
  12. package/dist/components/checkbox-group/index.js.map +1 -1
  13. package/dist/components/chip-group/index.js +5 -4
  14. package/dist/components/chip-group/index.js.map +1 -1
  15. package/dist/components/color-slider/index.js +9 -4
  16. package/dist/components/color-slider/index.js.map +1 -1
  17. package/dist/components/dialog/index.js +1 -1
  18. package/dist/components/dialog/index.js.map +1 -1
  19. package/dist/components/list/index.js +16 -21
  20. package/dist/components/list/index.js.map +1 -1
  21. package/dist/components/list-box/index.js +20 -25
  22. package/dist/components/list-box/index.js.map +1 -1
  23. package/dist/components/menu/index.js +4 -6
  24. package/dist/components/menu/index.js.map +1 -1
  25. package/dist/components/navigation-tree/index.js +11 -10
  26. package/dist/components/navigation-tree/index.js.map +1 -1
  27. package/dist/components/radio-group/index.js +38 -58
  28. package/dist/components/radio-group/index.js.map +1 -1
  29. package/dist/components/sheet/index.js +1 -1
  30. package/dist/components/sheet/index.js.map +1 -1
  31. package/dist/components/slider/index.js +15 -7
  32. package/dist/components/slider/index.js.map +1 -1
  33. package/dist/components/snackbar/index.js +1 -1
  34. package/dist/components/snackbar/index.js.map +1 -1
  35. package/dist/components/switch/index.js +47 -40
  36. package/dist/components/switch/index.js.map +1 -1
  37. package/dist/components/table/index.js +4 -6
  38. package/dist/components/table/index.js.map +1 -1
  39. package/dist/components/text-area/index.d.ts +9 -1
  40. package/dist/components/text-area/index.js +21 -19
  41. package/dist/components/text-area/index.js.map +1 -1
  42. package/dist/components/text-field/index.d.ts +9 -1
  43. package/dist/components/text-field/index.js +21 -19
  44. package/dist/components/text-field/index.js.map +1 -1
  45. package/dist/components/tree/index.js +28 -28
  46. package/dist/components/tree/index.js.map +1 -1
  47. package/dist/control/index.js +38 -0
  48. package/dist/control/index.js.map +1 -0
  49. package/dist/control/styles.js +65 -0
  50. package/dist/control/styles.js.map +1 -0
  51. package/dist/field/index.js +205 -393
  52. package/dist/field/index.js.map +1 -1
  53. package/dist/field/styles.js +381 -0
  54. package/dist/field/styles.js.map +1 -0
  55. package/dist/styles/icon-button.js +21 -0
  56. package/dist/styles/icon-button.js.map +1 -0
  57. package/dist/styles/overlay.js +1 -1
  58. package/dist/styles/overlay.js.map +1 -1
  59. package/dist/styles/picker.js +2 -17
  60. package/dist/styles/picker.js.map +1 -1
  61. package/dist/styles.css +44 -0
  62. package/package.json +2 -2
@@ -1,160 +1,12 @@
1
1
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
2
2
  import { mergeStatefulStyles, mergeStyles } from "../styles/merge.js";
3
3
  import { useInsideForm } from "./root.js";
4
+ import { fieldChromeStyles, groupStyles } from "./styles.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { createContext, useContext } from "react";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
- import { Button, FieldError, FieldErrorContext, Group, Input, InputContext, Label, SelectStateContext, Text, TextArea, TextAreaContext, useSlottedContext } from "react-aria-components";
8
+ import { Button, FieldError, FieldErrorContext, Group, Input, InputContext, Label, SelectStateContext, Text, TextArea, TextAreaContext, VisuallyHidden, useSlottedContext } from "react-aria-components";
8
9
  //#region src/field/index.tsx
9
- const styles = {
10
- autosizeCell: {
11
- kJuA4N: "x1b1wf8y",
12
- $$css: true
13
- },
14
- box: {
15
- kGNEyG: "x1cy8zhl",
16
- kWkggS: "x1rrhr5q",
17
- kZKoxP: "xnnlda6",
18
- kT0f0o: "x16uus16",
19
- kVL7Gh: "xbiv7yw",
20
- kfmiAY: "xirz1nw",
21
- krdFHd: "xzcck0f",
22
- kGVxlE: "x89kqus x18rfq6m",
23
- kB7OPa: "x9f619",
24
- k1xSpc: "x78zum5",
25
- kOIVth: "xxj4525",
26
- kGO01o: "x18d9i69",
27
- kLKAdn: "xi7mcox",
28
- kg3NbH: "x790zyz",
29
- kVAEAm: "x1n2onr6",
30
- kIyJzY: "x1qno0dh",
31
- k1ekBW: "xkdsq27",
32
- kAMwcw: "xpc4ca7",
33
- $$css: true
34
- },
35
- boxDisabled: {
36
- kWkggS: "xepofeg",
37
- kGVxlE: "x1pqbjc1",
38
- $$css: true
39
- },
40
- boxError: {
41
- kGVxlE: "x1lxxh4i x1d6xoej",
42
- $$css: true
43
- },
44
- boxFixed: {
45
- kMv6JI: "xp6n8n2",
46
- kGuDYH: "xkucv67",
47
- k63SB2: "x14hhc5u",
48
- kb6lSQ: "x12utw95",
49
- kLWn49: "xvzb9hk",
50
- $$css: true
51
- },
52
- boxFloating: {
53
- kMv6JI: "x1ps135g xnc7ww3 x16svsjw",
54
- kGuDYH: "x52kfa xys1t9b x1848etk",
55
- k63SB2: "xz4f7ai xn9xqko x1c52epr",
56
- kb6lSQ: "x19wmx12 x1t00fh7 x1qn8t5l",
57
- kLWn49: "xsv50tp x1f5c3pk x181fmp8",
58
- $$css: true
59
- },
60
- boxLeading: {
61
- kZCmMZ: "xwde665",
62
- $$css: true
63
- },
64
- boxMultiline: {
65
- kZKoxP: "xt7dq6l",
66
- kAzted: "xbktkl8",
67
- kGO01o: "xqf7pud",
68
- $$css: true
69
- },
70
- boxOutlined: {
71
- kWkggS: "xjbqb8w",
72
- kT0f0o: "x4gcak0",
73
- kVL7Gh: "xqs30sb",
74
- kGVxlE: "x1gnnqk1",
75
- kMwMTN: "x158cnre x1igw6b7 x1sa41d3",
76
- kGO01o: "xzfxn0k",
77
- kLKAdn: "x1clyivc",
78
- kVAEAm: "x1n2onr6",
79
- $$css: true
80
- },
81
- boxOutlinedDisabled: {
82
- kWkggS: "xjbqb8w",
83
- kGVxlE: "x1gnnqk1",
84
- kMwMTN: "x1ldq0ta",
85
- $$css: true
86
- },
87
- boxOutlinedError: {
88
- kMwMTN: "x12voer2 x1h298ve x4ii1qj",
89
- $$css: true
90
- },
91
- boxOutlinedFloating: {
92
- kLWn49: "xsv50tp x1f5c3pk xay82u3",
93
- $$css: true
94
- },
95
- boxTrailing: {
96
- kwRFfy: "xk163s",
97
- $$css: true
98
- },
99
- column: {
100
- kMwMTN: "x1w5n3ug",
101
- kzQI83: "x1iyjqo2",
102
- k7Eaqz: "xeuugli",
103
- kVAEAm: "x1n2onr6",
104
- $$css: true
105
- },
106
- columnDisabled: {
107
- kMwMTN: "x1xj74d8",
108
- $$css: true
109
- },
110
- columnDisabledFloating: {
111
- kMwMTN: "xspc5gk x19co3pv",
112
- $$css: true
113
- },
114
- columnFloating: {
115
- kMwMTN: "x1dfuzvz x6phwhp x19co3pv",
116
- $$css: true
117
- },
118
- input: {
119
- k8Qsv1: "x1hgeflb",
120
- kWkggS: "xjbqb8w",
121
- kMzoRj: "xc342km",
122
- kB7OPa: "x9f619",
123
- kMwMTN: "x139gbkf",
124
- kMv6JI: "x16svsjw",
125
- kGuDYH: "x1848etk",
126
- k63SB2: "x1c52epr",
127
- kzqmXN: "xh8yej3",
128
- kb6lSQ: "x1qn8t5l",
129
- kLWn49: "xh7dzej",
130
- k3XXqK: "x1t137rt",
131
- kmVPX3: "x1717udv",
132
- $$css: true
133
- },
134
- inputDisabled: {
135
- k8Qsv1: "x7ip5l3",
136
- kMwMTN: "x1xj74d8",
137
- $$css: true
138
- },
139
- inputUnderFloatingLabel: {
140
- k8Qsv1: "x1mvm7v4 xxqzaim",
141
- $$css: true
142
- },
143
- inputUnderLabel: {
144
- keoZOQ: "xwuztrq",
145
- $$css: true
146
- },
147
- textArea: {
148
- k1xSpc: "x1lliihq",
149
- kVQacm: "xysyzu8",
150
- kHenm0: "xtt52l0",
151
- $$css: true
152
- },
153
- textAreaAutosize: {
154
- kVQacm: "xb3r6kr",
155
- $$css: true
156
- }
157
- };
158
10
  const OUTSIDE_BOX = {
159
11
  label: "none",
160
12
  underLabel: false
@@ -203,7 +55,7 @@ function boxContent(label, children, floatingLabel, isPopulated, leading, traili
203
55
  * for them. See the outlined variant's note above.
204
56
  */
205
57
  function BoxContent(t0) {
206
- const $ = c(32);
58
+ const $ = c(35);
207
59
  const { children, floatingLabel, isPopulated, label, leading, state, trailing, trigger, variant } = t0;
208
60
  const read = useFieldPopulated();
209
61
  const populated = isPopulated ?? read;
@@ -214,17 +66,9 @@ function BoxContent(t0) {
214
66
  if ($[0] !== floated || $[1] !== label || $[2] !== leading || $[3] !== outlined || $[4] !== state.isFocusWithin) {
215
67
  t2 = outlined ? /* @__PURE__ */ jsx("fieldset", {
216
68
  "aria-hidden": "true",
217
- ...{
218
- 0: { className: "x1r7ld26 x1tfhd1 x1y0btm7 xmkeg23 x9f619 x1yicsit x1b35g6e x9d6959 x10a8y8t xwth0xh x1ghz6dp xeuugli xt970qd x1mhv0kc x47corl x10l6tqk x1qno0dh x1aqzbqr xpc4ca7" },
219
- 2: { className: "x1r7ld26 x1tfhd1 x1y0btm7 xmkeg23 x9f619 x1yicsit x1b35g6e x9d6959 x10a8y8t xwth0xh x1ghz6dp xeuugli xt970qd x1mhv0kc x47corl x10l6tqk x1qno0dh x1aqzbqr xpc4ca7 x167ah0f" },
220
- 1: { className: "x1r7ld26 x1tfhd1 x1y0btm7 x9f619 x1yicsit x1b35g6e x9d6959 x10a8y8t xwth0xh x1ghz6dp xeuugli xt970qd x1mhv0kc x47corl x10l6tqk x1qno0dh x1aqzbqr xpc4ca7 xdh2fpr" },
221
- 3: { className: "x1r7ld26 x1tfhd1 x1y0btm7 x9f619 x1yicsit x1b35g6e x9d6959 x10a8y8t xwth0xh x1ghz6dp xeuugli xt970qd x1mhv0kc x47corl x10l6tqk x1qno0dh x1aqzbqr xpc4ca7 x167ah0f xdh2fpr" }
222
- }[!!(leading !== void 0) << 1 | !!state.isFocusWithin << 0],
69
+ ...props(fieldChromeStyles.outline, leading !== void 0 && fieldChromeStyles.outlineLeading, state.isFocusWithin && fieldChromeStyles.outlineFocused),
223
70
  children: /* @__PURE__ */ jsx("legend", {
224
- ...{
225
- 0: { className: "xqtp20y x14ju556 x193iq5w xb3r6kr x1717udv xlshs6z xuxw1ft" },
226
- 1: { className: "xqtp20y x14ju556 x193iq5w xb3r6kr x1717udv xlshs6z xuxw1ft ximhkdq" }
227
- }[!!floated << 0],
71
+ ...props(fieldChromeStyles.outlineNotch, floated && fieldChromeStyles.outlineNotchOpen),
228
72
  children: floated ? label : null
229
73
  })
230
74
  }) : null;
@@ -238,10 +82,7 @@ function BoxContent(t0) {
238
82
  let t3;
239
83
  if ($[6] !== leading || $[7] !== state.isDisabled) {
240
84
  t3 = leading === void 0 ? null : /* @__PURE__ */ jsx("span", {
241
- ...{
242
- 0: { className: "x6s0dn4 xkh2ocl x1w5n3ug x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7" },
243
- 1: { className: "x6s0dn4 xkh2ocl x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7 x1xj74d8" }
244
- }[!!state.isDisabled << 0],
85
+ ...props(fieldChromeStyles.icon, state.isDisabled && fieldChromeStyles.iconDisabled),
245
86
  children: leading
246
87
  });
247
88
  $[6] = leading;
@@ -250,90 +91,78 @@ function BoxContent(t0) {
250
91
  } else t3 = $[8];
251
92
  let t4;
252
93
  if ($[9] !== floatingLabel || $[10] !== state.isDisabled) {
253
- t4 = props(styles.column, floatingLabel && styles.columnFloating, state.isDisabled && (floatingLabel ? styles.columnDisabledFloating : styles.columnDisabled));
94
+ t4 = props(fieldChromeStyles.column, floatingLabel && fieldChromeStyles.columnFloating, state.isDisabled && (floatingLabel ? fieldChromeStyles.columnDisabledFloating : fieldChromeStyles.columnDisabled));
254
95
  $[9] = floatingLabel;
255
96
  $[10] = state.isDisabled;
256
97
  $[11] = t4;
257
98
  } else t4 = $[11];
258
99
  let t5;
259
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
260
- t5 = {
261
- 0: { className: "x13vifvy x1o0tod x10l6tqk" },
262
- 4: { className: "x13vifvy x1o0tod x10l6tqk x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh" },
263
- 2: { className: "x13vifvy x10l6tqk x10k232c ximhkdq" },
264
- 6: { className: "x13vifvy x10l6tqk x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10k232c ximhkdq" },
265
- 1: { className: "x1o0tod x10l6tqk x1qjp6zz" },
266
- 5: { className: "x1o0tod x10l6tqk x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x1qjp6zz" },
267
- 3: { className: "x10l6tqk x10k232c ximhkdq x1qjp6zz" },
268
- 7: { className: "x10l6tqk x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10k232c ximhkdq x1qjp6zz" }
269
- };
270
- $[12] = t5;
271
- } else t5 = $[12];
272
- const t6 = t5[!!(floatingLabel && floated) << 2 | !!outlined << 1 | !!(outlined && floated) << 0];
273
- let t7;
274
- if ($[13] !== label || $[14] !== state || $[15] !== t6) {
275
- t7 = /* @__PURE__ */ jsx(FieldLabel, {
100
+ if ($[12] !== floated || $[13] !== floatingLabel || $[14] !== outlined) {
101
+ t5 = props(fieldChromeStyles.boxLabel, floatingLabel && floated && fieldChromeStyles.boxLabelFloated, outlined && fieldChromeStyles.boxLabelOutlined, outlined && floated && fieldChromeStyles.boxLabelOutlinedFloated);
102
+ $[12] = floated;
103
+ $[13] = floatingLabel;
104
+ $[14] = outlined;
105
+ $[15] = t5;
106
+ } else t5 = $[15];
107
+ let t6;
108
+ if ($[16] !== label || $[17] !== state || $[18] !== t5) {
109
+ t6 = /* @__PURE__ */ jsx(FieldLabel, {
276
110
  state,
277
- ...t6,
111
+ ...t5,
278
112
  children: label
279
113
  });
280
- $[13] = label;
281
- $[14] = state;
282
- $[15] = t6;
283
- $[16] = t7;
284
- } else t7 = $[16];
285
- let t8;
286
- if ($[17] !== children || $[18] !== t4 || $[19] !== t7) {
287
- t8 = /* @__PURE__ */ jsxs("div", {
114
+ $[16] = label;
115
+ $[17] = state;
116
+ $[18] = t5;
117
+ $[19] = t6;
118
+ } else t6 = $[19];
119
+ let t7;
120
+ if ($[20] !== children || $[21] !== t4 || $[22] !== t6) {
121
+ t7 = /* @__PURE__ */ jsxs("div", {
288
122
  ...t4,
289
- children: [t7, children]
123
+ children: [t6, children]
290
124
  });
291
- $[17] = children;
292
- $[18] = t4;
293
- $[19] = t7;
294
- $[20] = t8;
295
- } else t8 = $[20];
296
- let t9;
297
- if ($[21] !== state.isDisabled || $[22] !== state.isInvalid || $[23] !== trailing) {
298
- t9 = trailing === void 0 ? null : /* @__PURE__ */ jsx("span", {
299
- ...{
300
- 0: { className: "x6s0dn4 xkh2ocl x1w5n3ug x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7" },
301
- 2: { className: "x6s0dn4 xkh2ocl x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7 x4ii1qj" },
302
- 1: { className: "x6s0dn4 xkh2ocl x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7 x1xj74d8" },
303
- 3: { className: "x6s0dn4 xkh2ocl x78zum5 x2lah0s x1pvqxga xl56j7k x1motrhk xkzkux9 xt3l3uh xpc4ca7 x1xj74d8" }
304
- }[!!state.isInvalid << 1 | !!state.isDisabled << 0],
125
+ $[20] = children;
126
+ $[21] = t4;
127
+ $[22] = t6;
128
+ $[23] = t7;
129
+ } else t7 = $[23];
130
+ let t8;
131
+ if ($[24] !== state.isDisabled || $[25] !== state.isInvalid || $[26] !== trailing) {
132
+ t8 = trailing === void 0 ? null : /* @__PURE__ */ jsx("span", {
133
+ ...props(fieldChromeStyles.icon, state.isInvalid && fieldChromeStyles.iconError, state.isDisabled && fieldChromeStyles.iconDisabled),
305
134
  children: trailing
306
135
  });
307
- $[21] = state.isDisabled;
308
- $[22] = state.isInvalid;
309
- $[23] = trailing;
310
- $[24] = t9;
311
- } else t9 = $[24];
312
- let t10;
313
- if ($[25] !== t1 || $[26] !== t2 || $[27] !== t3 || $[28] !== t8 || $[29] !== t9 || $[30] !== trigger) {
314
- t10 = /* @__PURE__ */ jsxs(BoxContext, {
136
+ $[24] = state.isDisabled;
137
+ $[25] = state.isInvalid;
138
+ $[26] = trailing;
139
+ $[27] = t8;
140
+ } else t8 = $[27];
141
+ let t9;
142
+ if ($[28] !== t1 || $[29] !== t2 || $[30] !== t3 || $[31] !== t7 || $[32] !== t8 || $[33] !== trigger) {
143
+ t9 = /* @__PURE__ */ jsxs(BoxContext, {
315
144
  value: t1,
316
145
  children: [
317
146
  t2,
318
147
  trigger,
319
148
  t3,
320
- t8,
321
- t9
149
+ t7,
150
+ t8
322
151
  ]
323
152
  });
324
- $[25] = t1;
325
- $[26] = t2;
326
- $[27] = t3;
327
- $[28] = t8;
328
- $[29] = t9;
329
- $[30] = trigger;
330
- $[31] = t10;
331
- } else t10 = $[31];
332
- return t10;
153
+ $[28] = t1;
154
+ $[29] = t2;
155
+ $[30] = t3;
156
+ $[31] = t7;
157
+ $[32] = t8;
158
+ $[33] = trigger;
159
+ $[34] = t9;
160
+ } else t9 = $[34];
161
+ return t9;
333
162
  }
334
163
  function boxStyles(floatingLabel, multiline, leading, trailing, variant) {
335
164
  const outlined = variant === "outlined";
336
- return (state) => props(styles.box, floatingLabel ? styles.boxFloating : styles.boxFixed, multiline && styles.boxMultiline, leading && styles.boxLeading, trailing && styles.boxTrailing, outlined && styles.boxOutlined, outlined && floatingLabel && styles.boxOutlinedFloating, state.isInvalid && (outlined ? styles.boxOutlinedError : styles.boxError), state.isDisabled && (outlined ? styles.boxOutlinedDisabled : styles.boxDisabled));
165
+ return (state) => props(fieldChromeStyles.box, floatingLabel ? fieldChromeStyles.boxFloating : fieldChromeStyles.boxFixed, multiline && fieldChromeStyles.boxMultiline, leading && fieldChromeStyles.boxLeading, trailing && fieldChromeStyles.boxTrailing, outlined && fieldChromeStyles.boxOutlined, outlined && floatingLabel && fieldChromeStyles.boxOutlinedFloating, state.isInvalid && (outlined ? fieldChromeStyles.boxOutlinedError : fieldChromeStyles.boxError), state.isDisabled && (outlined ? fieldChromeStyles.boxOutlinedDisabled : fieldChromeStyles.boxDisabled));
337
166
  }
338
167
  /**
339
168
  * The box a control sits in, filled or outlined, with its label. React
@@ -435,46 +264,29 @@ function FieldBox(t0) {
435
264
  * placeholder it was given in every state.
436
265
  */
437
266
  function FieldInput(t0) {
438
- const $ = c(18);
439
- const { numeric: t1, placeholder, prefix, suffix, ...props } = t0;
267
+ const $ = c(19);
268
+ const { numeric: t1, placeholder, prefix, suffix, ...props$2 } = t0;
440
269
  const numeric = t1 === void 0 ? false : t1;
441
270
  const box = useContext(BoxContext);
442
271
  const T0 = Input;
443
272
  const t2 = placeholder ?? (box.label === "floating" ? " " : void 0);
444
273
  let t3;
445
274
  if ($[0] !== box || $[1] !== numeric) {
446
- t3 = (state) => ({
447
- 0: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv" },
448
- 8: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq" },
449
- 4: { className: "xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x1mvm7v4 xxqzaim" },
450
- 12: { className: "xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq x1mvm7v4 xxqzaim" },
451
- 2: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xbppi91 xss6m8b" },
452
- 10: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq xbppi91 xss6m8b" },
453
- 6: { className: "xjbqb8w xc342km x9f619 x139gbkf x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x1mvm7v4 xxqzaim xbppi91 xss6m8b" },
454
- 14: { className: "xjbqb8w xc342km x9f619 x139gbkf x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq x1mvm7v4 xxqzaim xbppi91 xss6m8b" },
455
- 1: { className: "xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x7ip5l3 x1xj74d8" },
456
- 9: { className: "xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq x7ip5l3 x1xj74d8" },
457
- 5: { className: "xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x7ip5l3 x1xj74d8" },
458
- 13: { className: "xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq x7ip5l3 x1xj74d8" },
459
- 3: { className: "xjbqb8w xc342km x9f619 x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xbppi91 xss6m8b x7ip5l3 x1xj74d8" },
460
- 11: { className: "xjbqb8w xc342km x9f619 x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq xbppi91 xss6m8b x7ip5l3 x1xj74d8" },
461
- 7: { className: "xjbqb8w xc342km x9f619 x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xbppi91 xss6m8b x7ip5l3 x1xj74d8" },
462
- 15: { className: "xjbqb8w xc342km x9f619 x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq xbppi91 xss6m8b x7ip5l3 x1xj74d8" }
463
- })[!!box.underLabel << 3 | !!(box.label === "floating") << 2 | !!numeric << 1 | !!state.isDisabled << 0];
275
+ t3 = (state) => props(fieldChromeStyles.input, box.underLabel && fieldChromeStyles.inputUnderLabel, box.label === "floating" && fieldChromeStyles.inputUnderFloatingLabel, numeric && fieldChromeStyles.numeric, state.isDisabled && fieldChromeStyles.inputDisabled);
464
276
  $[0] = box;
465
277
  $[1] = numeric;
466
278
  $[2] = t3;
467
279
  } else t3 = $[2];
468
- const t4 = mergeStatefulStyles(t3, props);
280
+ const t4 = mergeStatefulStyles(t3, props$2);
469
281
  let t5;
470
- if ($[3] !== T0 || $[4] !== props || $[5] !== t2 || $[6] !== t4) {
282
+ if ($[3] !== T0 || $[4] !== props$2 || $[5] !== t2 || $[6] !== t4) {
471
283
  t5 = /* @__PURE__ */ jsx(T0, {
472
284
  placeholder: t2,
473
- ...props,
285
+ ...props$2,
474
286
  ...t4
475
287
  });
476
288
  $[3] = T0;
477
- $[4] = props;
289
+ $[4] = props$2;
478
290
  $[5] = t2;
479
291
  $[6] = t4;
480
292
  $[7] = t5;
@@ -482,47 +294,46 @@ function FieldInput(t0) {
482
294
  const control = t5;
483
295
  if (prefix === void 0 && suffix === void 0) return control;
484
296
  let t6;
485
- if ($[8] !== box || $[9] !== prefix) {
486
- t6 = prefix === void 0 ? null : /* @__PURE__ */ jsx("span", {
487
- ...{
488
- 0: { className: "x2lah0s x16svsjw x1848etk x1c52epr x1qn8t5l xh7dzej xkzkux9 xt3l3uh xpc4ca7 xuxw1ft" },
489
- 1: { className: "x2lah0s x16svsjw x1848etk x1c52epr x1qn8t5l xh7dzej xkzkux9 xt3l3uh xpc4ca7 xuxw1ft xwuztrq" }
490
- }[!!box.underLabel << 0],
297
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
298
+ t6 = props(fieldChromeStyles.affixLine);
299
+ $[8] = t6;
300
+ } else t6 = $[8];
301
+ let t7;
302
+ if ($[9] !== box || $[10] !== prefix) {
303
+ t7 = prefix === void 0 ? null : /* @__PURE__ */ jsx("span", {
304
+ ...props(fieldChromeStyles.affix, box.underLabel && fieldChromeStyles.inputUnderLabel),
491
305
  children: prefix
492
306
  });
493
- $[8] = box;
494
- $[9] = prefix;
495
- $[10] = t6;
496
- } else t6 = $[10];
497
- let t7;
498
- if ($[11] !== box || $[12] !== suffix) {
499
- t7 = suffix === void 0 ? null : /* @__PURE__ */ jsx("span", {
500
- ...{
501
- 0: { className: "x2lah0s x16svsjw x1848etk x1c52epr x1qn8t5l xh7dzej xkzkux9 xt3l3uh xpc4ca7 xuxw1ft" },
502
- 1: { className: "x2lah0s x16svsjw x1848etk x1c52epr x1qn8t5l xh7dzej xkzkux9 xt3l3uh xpc4ca7 xuxw1ft xwuztrq" }
503
- }[!!box.underLabel << 0],
307
+ $[9] = box;
308
+ $[10] = prefix;
309
+ $[11] = t7;
310
+ } else t7 = $[11];
311
+ let t8;
312
+ if ($[12] !== box || $[13] !== suffix) {
313
+ t8 = suffix === void 0 ? null : /* @__PURE__ */ jsx("span", {
314
+ ...props(fieldChromeStyles.affix, box.underLabel && fieldChromeStyles.inputUnderLabel),
504
315
  children: suffix
505
316
  });
506
- $[11] = box;
507
- $[12] = suffix;
508
- $[13] = t7;
509
- } else t7 = $[13];
510
- let t8;
511
- if ($[14] !== control || $[15] !== t6 || $[16] !== t7) {
512
- t8 = /* @__PURE__ */ jsxs("span", {
513
- className: "x1pha0wt x78zum5 x14qo01y",
317
+ $[12] = box;
318
+ $[13] = suffix;
319
+ $[14] = t8;
320
+ } else t8 = $[14];
321
+ let t9;
322
+ if ($[15] !== control || $[16] !== t7 || $[17] !== t8) {
323
+ t9 = /* @__PURE__ */ jsxs("span", {
324
+ ...t6,
514
325
  children: [
515
- t6,
326
+ t7,
516
327
  control,
517
- t7
328
+ t8
518
329
  ]
519
330
  });
520
- $[14] = control;
521
- $[15] = t6;
331
+ $[15] = control;
522
332
  $[16] = t7;
523
333
  $[17] = t8;
524
- } else t8 = $[17];
525
- return t8;
334
+ $[18] = t9;
335
+ } else t9 = $[18];
336
+ return t9;
526
337
  }
527
338
  /**
528
339
  * A field's multi-line text control, in a {@link FieldBox} drawn `multiline`.
@@ -537,8 +348,8 @@ function FieldInput(t0) {
537
348
  * of the two is taller.
538
349
  */
539
350
  function FieldTextArea(t0) {
540
- const $ = c(15);
541
- const { autosize: t1, placeholder, ...props$1 } = t0;
351
+ const $ = c(17);
352
+ const { autosize: t1, placeholder, ...props$5 } = t0;
542
353
  const autosize = t1 === void 0 ? false : t1;
543
354
  const box = useContext(BoxContext);
544
355
  const context = useSlottedContext(TextAreaContext);
@@ -547,21 +358,21 @@ function FieldTextArea(t0) {
547
358
  const t2 = placeholder ?? (box.label === "floating" ? " " : void 0);
548
359
  let t3;
549
360
  if ($[0] !== autosize || $[1] !== box) {
550
- t3 = (state) => props(styles.input, box.underLabel && styles.inputUnderLabel, box.label === "floating" && styles.inputUnderFloatingLabel, styles.textArea, autosize && styles.textAreaAutosize, autosize && styles.autosizeCell, state.isDisabled && styles.inputDisabled);
361
+ t3 = (state) => props(fieldChromeStyles.input, box.underLabel && fieldChromeStyles.inputUnderLabel, box.label === "floating" && fieldChromeStyles.inputUnderFloatingLabel, fieldChromeStyles.textArea, autosize && fieldChromeStyles.textAreaAutosize, autosize && fieldChromeStyles.autosizeCell, state.isDisabled && fieldChromeStyles.inputDisabled);
551
362
  $[0] = autosize;
552
363
  $[1] = box;
553
364
  $[2] = t3;
554
365
  } else t3 = $[2];
555
- const t4 = mergeStatefulStyles(t3, props$1);
366
+ const t4 = mergeStatefulStyles(t3, props$5);
556
367
  let t5;
557
- if ($[3] !== T0 || $[4] !== props$1 || $[5] !== t2 || $[6] !== t4) {
368
+ if ($[3] !== T0 || $[4] !== props$5 || $[5] !== t2 || $[6] !== t4) {
558
369
  t5 = /* @__PURE__ */ jsx(T0, {
559
370
  placeholder: t2,
560
- ...props$1,
371
+ ...props$5,
561
372
  ...t4
562
373
  });
563
374
  $[3] = T0;
564
- $[4] = props$1;
375
+ $[4] = props$5;
565
376
  $[5] = t2;
566
377
  $[6] = t4;
567
378
  $[7] = t5;
@@ -570,34 +381,36 @@ function FieldTextArea(t0) {
570
381
  if (!autosize) return control;
571
382
  let t6;
572
383
  if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
573
- t6 = {
574
- 0: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x1mzt3pk xlshs6z x126k92a x1b1wf8y" },
575
- 1: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv xwuztrq x1mzt3pk xlshs6z x126k92a x1b1wf8y" }
576
- };
384
+ t6 = props(fieldChromeStyles.autosize);
577
385
  $[8] = t6;
578
386
  } else t6 = $[8];
579
- const t7 = t6[!!box.underLabel << 0];
387
+ let t7;
388
+ if ($[9] !== box.underLabel) {
389
+ t7 = props(fieldChromeStyles.input, box.underLabel && fieldChromeStyles.inputUnderLabel, fieldChromeStyles.replica, fieldChromeStyles.autosizeCell);
390
+ $[9] = box.underLabel;
391
+ $[10] = t7;
392
+ } else t7 = $[10];
580
393
  let t8;
581
- if ($[9] !== t7 || $[10] !== value) {
394
+ if ($[11] !== t7 || $[12] !== value) {
582
395
  t8 = /* @__PURE__ */ jsxs("div", {
583
396
  "aria-hidden": "true",
584
397
  ...t7,
585
398
  children: [value, " "]
586
399
  });
587
- $[9] = t7;
588
- $[10] = value;
589
- $[11] = t8;
590
- } else t8 = $[11];
400
+ $[11] = t7;
401
+ $[12] = value;
402
+ $[13] = t8;
403
+ } else t8 = $[13];
591
404
  let t9;
592
- if ($[12] !== control || $[13] !== t8) {
405
+ if ($[14] !== control || $[15] !== t8) {
593
406
  t9 = /* @__PURE__ */ jsxs("div", {
594
- className: "xrvj5dj",
407
+ ...t6,
595
408
  children: [control, t8]
596
409
  });
597
- $[12] = control;
598
- $[13] = t8;
599
- $[14] = t9;
600
- } else t9 = $[14];
410
+ $[14] = control;
411
+ $[15] = t8;
412
+ $[16] = t9;
413
+ } else t9 = $[16];
601
414
  return t9;
602
415
  }
603
416
  /**
@@ -610,21 +423,21 @@ function FieldTextArea(t0) {
610
423
  * the fill, the underline and the focus indicator, and it lights up while
611
424
  * this has focus because the indicator follows focus within.
612
425
  */
613
- function FieldTrigger(props) {
426
+ function FieldTrigger(props$1) {
614
427
  const $ = c(5);
615
428
  let t0;
616
- if ($[0] !== props) {
617
- t0 = mergeStatefulStyles({ className: "xjbqb8w xc342km x9f619 x1ypdohk x10a8y8t x1t137rt x1717udv x10l6tqk" }, props);
618
- $[0] = props;
429
+ if ($[0] !== props$1) {
430
+ t0 = mergeStatefulStyles(props(fieldChromeStyles.trigger), props$1);
431
+ $[0] = props$1;
619
432
  $[1] = t0;
620
433
  } else t0 = $[1];
621
434
  let t1;
622
- if ($[2] !== props || $[3] !== t0) {
435
+ if ($[2] !== props$1 || $[3] !== t0) {
623
436
  t1 = /* @__PURE__ */ jsx(Button, {
624
- ...props,
437
+ ...props$1,
625
438
  ...t0
626
439
  });
627
- $[2] = props;
440
+ $[2] = props$1;
628
441
  $[3] = t0;
629
442
  $[4] = t1;
630
443
  } else t1 = $[4];
@@ -647,28 +460,19 @@ function FieldTrigger(props) {
647
460
  */
648
461
  function FieldValue(t0) {
649
462
  const $ = c(3);
650
- const { isFocused: t1, isPlaceholder: t2, ...props } = t0;
463
+ const { isFocused: t1, isPlaceholder: t2, ...props$4 } = t0;
651
464
  const isFocused = t1 === void 0 ? false : t1;
652
465
  const isPlaceholder = t2 === void 0 ? false : t2;
653
466
  const box = useContext(BoxContext);
654
467
  const hidden = isPlaceholder && box.label === "floating" && !isFocused;
655
- const t3 = mergeStyles({
656
- 0: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft" },
657
- 4: { className: "x1hgeflb xjbqb8w xc342km x9f619 x139gbkf x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft xwuztrq" },
658
- 2: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft x1w5n3ug" },
659
- 6: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft xwuztrq x1w5n3ug" },
660
- 1: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft x19co3pv" },
661
- 5: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft xwuztrq x19co3pv" },
662
- 3: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft x19co3pv" },
663
- 7: { className: "x1hgeflb xjbqb8w xc342km x9f619 x16svsjw x1848etk x1c52epr xh8yej3 x1qn8t5l xh7dzej x1t137rt x1717udv x6s0dn4 x78zum5 xb3r6kr xlyipyv xuxw1ft xwuztrq x19co3pv" }
664
- }[!!box.underLabel << 2 | !!isPlaceholder << 1 | !!hidden << 0], props);
468
+ const t3 = mergeStyles(props(fieldChromeStyles.input, fieldChromeStyles.value, box.underLabel && fieldChromeStyles.inputUnderLabel, isPlaceholder && fieldChromeStyles.valuePlaceholder, hidden && fieldChromeStyles.valuePlaceholderHidden), props$4);
665
469
  let t4;
666
- if ($[0] !== props || $[1] !== t3) {
470
+ if ($[0] !== props$4 || $[1] !== t3) {
667
471
  t4 = /* @__PURE__ */ jsx("span", {
668
- ...props,
472
+ ...props$4,
669
473
  ...t3
670
474
  });
671
- $[0] = props;
475
+ $[0] = props$4;
672
476
  $[1] = t3;
673
477
  $[2] = t4;
674
478
  } else t4 = $[2];
@@ -700,23 +504,16 @@ function FieldLabel(t0) {
700
504
  let t1;
701
505
  let t2;
702
506
  if ($[0] !== t0) {
703
- const { state: t3, ...props } = t0;
704
- const { isDisabled: t4, isFocusWithin: t5, isInvalid: t6 } = t3 === void 0 ? NO_STATE : t3;
705
- const isDisabled = t4 === void 0 ? false : t4;
706
- const isFocusWithin = t5 === void 0 ? false : t5;
707
- const isInvalid = t6 === void 0 ? false : t6;
507
+ const { state: t3, variant: t4, ...props$3 } = t0;
508
+ const state = t3 === void 0 ? NO_STATE : t3;
509
+ const variant = t4 === void 0 ? "field" : t4;
510
+ const { isDisabled: t5, isFocusWithin: t6, isInvalid: t7 } = state;
511
+ const isDisabled = t5 === void 0 ? false : t5;
512
+ const isFocusWithin = t6 === void 0 ? false : t6;
513
+ const isInvalid = t7 === void 0 ? false : t7;
708
514
  T0 = Label;
709
- t1 = props;
710
- t2 = mergeStyles({
711
- 0: { className: "x1w5n3ug xkzkux9 xixa3zk xpc4ca7" },
712
- 4: { className: "xkzkux9 xixa3zk xpc4ca7 x1xj74d8" },
713
- 2: { className: "xkzkux9 xixa3zk xpc4ca7 x4ii1qj" },
714
- 6: { className: "xkzkux9 xixa3zk xpc4ca7 x4ii1qj" },
715
- 1: { className: "xkzkux9 xixa3zk xpc4ca7 x1mxwv8y" },
716
- 5: { className: "xkzkux9 xixa3zk xpc4ca7 x1mxwv8y" },
717
- 3: { className: "xkzkux9 xixa3zk xpc4ca7 x1mxwv8y" },
718
- 7: { className: "xkzkux9 xixa3zk xpc4ca7 x1mxwv8y" }
719
- }[!!isDisabled << 2 | !!isInvalid << 1 | !!(!isDisabled && !isInvalid && isFocusWithin) << 0], props);
515
+ t1 = props$3;
516
+ t2 = mergeStyles(props(fieldChromeStyles.label, variant === "group" && groupStyles.label, isDisabled && fieldChromeStyles.labelDisabled, isInvalid && fieldChromeStyles.labelError, !isDisabled && !isInvalid && isFocusWithin && fieldChromeStyles.labelFocused), props$3);
720
517
  $[0] = t0;
721
518
  $[1] = T0;
722
519
  $[2] = t1;
@@ -749,8 +546,8 @@ function FieldLabel(t0) {
749
546
  * the field's validation state is read for.
750
547
  */
751
548
  function FieldMessage(t0) {
752
- const $ = c(17);
753
- const { characterCount: t1, description, error, inset: t2, maxLength } = t0;
549
+ const $ = c(21);
550
+ const { characterCount: t1, characterLimitLabel, description, error, inset: t2, maxLength } = t0;
754
551
  const characterCount = t1 === void 0 ? false : t1;
755
552
  const inset = t2 === void 0 ? true : t2;
756
553
  const validation = useContext(FieldErrorContext);
@@ -758,73 +555,88 @@ function FieldMessage(t0) {
758
555
  const input = useSlottedContext(InputContext);
759
556
  const textArea = useSlottedContext(TextAreaContext);
760
557
  const insideForm = useInsideForm();
761
- if (!invalid && description === void 0 && !characterCount && !insideForm) return null;
558
+ const limit = maxLength === void 0 ? void 0 : characterLimitLabel ?? `Up to ${maxLength} character${maxLength === 1 ? "" : "s"}`;
559
+ let t3;
560
+ if ($[0] !== limit) {
561
+ t3 = limit === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, {
562
+ elementType: "span",
563
+ children: /* @__PURE__ */ jsx(Text, {
564
+ slot: "description",
565
+ children: limit
566
+ })
567
+ });
568
+ $[0] = limit;
569
+ $[1] = t3;
570
+ } else t3 = $[1];
571
+ const hidden = t3;
572
+ if (!invalid && description === void 0 && !characterCount && !insideForm) return hidden;
762
573
  const value = input?.value ?? textArea?.value ?? "";
763
574
  const length = String(value).length;
764
- let t3;
765
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
766
- t3 = {
767
- 0: { className: "x1w5n3ug x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x1pha0wt x78zum5 xxj4525 x1y88zpp x17jz683" },
768
- 1: { className: "x1w5n3ug x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x1pha0wt x78zum5 xxj4525 x1y88zpp x17jz683 xboopgi" }
769
- };
770
- $[0] = t3;
771
- } else t3 = $[0];
772
- const t4 = t3[!!inset << 0];
575
+ const hint = invalid ? void 0 : description;
576
+ let t4;
577
+ if ($[2] !== hidden || $[3] !== hint || $[4] !== limit) {
578
+ t4 = hint === void 0 ? hidden : /* @__PURE__ */ jsxs(Text, {
579
+ slot: "description",
580
+ ...props(fieldChromeStyles.message),
581
+ children: [hint, limit === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, {
582
+ elementType: "span",
583
+ children: ` ${limit}`
584
+ })]
585
+ });
586
+ $[2] = hidden;
587
+ $[3] = hint;
588
+ $[4] = limit;
589
+ $[5] = t4;
590
+ } else t4 = $[5];
591
+ const described = t4;
773
592
  let t5;
774
- if ($[1] !== error || $[2] !== validation) {
775
- t5 = validation === null && error !== void 0 ? /* @__PURE__ */ jsx("span", {
776
- className: "x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x4ii1qj",
593
+ if ($[6] !== inset) {
594
+ t5 = props(fieldChromeStyles.message, fieldChromeStyles.messageLine, inset && fieldChromeStyles.messageInset);
595
+ $[6] = inset;
596
+ $[7] = t5;
597
+ } else t5 = $[7];
598
+ let t6;
599
+ if ($[8] !== error || $[9] !== validation) {
600
+ t6 = validation === null && error !== void 0 ? /* @__PURE__ */ jsx("span", {
601
+ ...props(fieldChromeStyles.message, fieldChromeStyles.messageError),
777
602
  children: error
778
603
  }) : /* @__PURE__ */ jsx(FieldError, {
779
- className: "x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x4ii1qj",
604
+ ...props(fieldChromeStyles.message, fieldChromeStyles.messageError),
780
605
  children: error
781
606
  });
782
- $[1] = error;
783
- $[2] = validation;
784
- $[3] = t5;
785
- } else t5 = $[3];
786
- let t6;
787
- if ($[4] !== description || $[5] !== invalid) {
788
- t6 = !invalid && description !== void 0 ? /* @__PURE__ */ jsx(Text, {
789
- slot: "description",
790
- className: "x1w5n3ug x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j",
791
- children: description
792
- }) : null;
793
- $[4] = description;
794
- $[5] = invalid;
795
- $[6] = t6;
796
- } else t6 = $[6];
607
+ $[8] = error;
608
+ $[9] = validation;
609
+ $[10] = t6;
610
+ } else t6 = $[10];
797
611
  let t7;
798
- if ($[7] !== characterCount || $[8] !== invalid || $[9] !== length || $[10] !== maxLength) {
612
+ if ($[11] !== characterCount || $[12] !== invalid || $[13] !== length || $[14] !== maxLength) {
799
613
  t7 = characterCount ? /* @__PURE__ */ jsx("span", {
800
- ...{
801
- 0: { className: "x1w5n3ug x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x2lah0s xss6m8b xvc5jky xuxw1ft" },
802
- 1: { className: "x1yicsit x1b35g6e x9d6959 xwth0xh xybisxh x10im51j x2lah0s xss6m8b xvc5jky xuxw1ft x4ii1qj" }
803
- }[!!invalid << 0],
614
+ "aria-hidden": "true",
615
+ ...props(fieldChromeStyles.message, fieldChromeStyles.counter, invalid && fieldChromeStyles.messageError),
804
616
  children: maxLength === void 0 ? length : `${length}/${maxLength}`
805
617
  }) : null;
806
- $[7] = characterCount;
807
- $[8] = invalid;
808
- $[9] = length;
809
- $[10] = maxLength;
810
- $[11] = t7;
811
- } else t7 = $[11];
618
+ $[11] = characterCount;
619
+ $[12] = invalid;
620
+ $[13] = length;
621
+ $[14] = maxLength;
622
+ $[15] = t7;
623
+ } else t7 = $[15];
812
624
  let t8;
813
- if ($[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
625
+ if ($[16] !== described || $[17] !== t5 || $[18] !== t6 || $[19] !== t7) {
814
626
  t8 = /* @__PURE__ */ jsxs("div", {
815
- ...t4,
627
+ ...t5,
816
628
  children: [
817
- t5,
818
629
  t6,
630
+ described,
819
631
  t7
820
632
  ]
821
633
  });
822
- $[12] = t4;
823
- $[13] = t5;
824
- $[14] = t6;
825
- $[15] = t7;
826
- $[16] = t8;
827
- } else t8 = $[16];
634
+ $[16] = described;
635
+ $[17] = t5;
636
+ $[18] = t6;
637
+ $[19] = t7;
638
+ $[20] = t8;
639
+ } else t8 = $[20];
828
640
  return t8;
829
641
  }
830
642
  //#endregion