@clearstory/drywall-react 3.4.0 → 3.4.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.
@@ -0,0 +1,354 @@
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
+ import { useId as $ } from "./hooks/useId.js";
4
+ import "./icons/ClearstoryIcon.js";
5
+ import "./icons/InternalOnlyIcon.js";
6
+ import "./icons/MoneyBucketIcon.js";
7
+ import "./icons/MoreCircleOutlineIcon.js";
8
+ import { I as F } from "./Info-DtWHV9kz.js";
9
+ import "./theme/index.js";
10
+ import { A as M } from "./Autocomplete-CfXcTXLL.js";
11
+ import { D as O } from "./Datepicker-CJBEgBsm.js";
12
+ import "./components/DescriptionDetails/DescriptionDetails.js";
13
+ import "./components/DescriptionList/DescriptionList.js";
14
+ import "./components/DescriptionList/DescriptionListContext.js";
15
+ import "./components/DescriptionTerm/DescriptionTerm.js";
16
+ import { Input as Q } from "./components/Input/Input.js";
17
+ import { Select as U } from "./components/Select/Select.js";
18
+ import "./theme/internal.js";
19
+ import "./components/ToastContainer/ToastContainer.js";
20
+ import "./components/ToastContainer/ToastLabelContext.js";
21
+ import "./index-SzwnPTHF.js";
22
+ import { F as k } from "./FormControl-CuHXXTcL.js";
23
+ import { B as C } from "./Box-CKDKtm7F.js";
24
+ import { F as w } from "./FormLabel-CgNd8XLN.js";
25
+ import { T as B } from "./Tooltip-BJmTHiZe.js";
26
+ import { F as I } from "./FormHelperText-wucHHOG8.js";
27
+ import { s as V } from "./styled-fvngWWLy.js";
28
+ function X(c, m) {
29
+ const {
30
+ disabled: d,
31
+ error: t,
32
+ helperText: n,
33
+ id: f,
34
+ label: p,
35
+ required: o,
36
+ slotProps: l,
37
+ sublabel: s,
38
+ tooltip: a,
39
+ ...h
40
+ } = c, y = $("autocomplete"), i = f || y, r = n ? `${i}-helper` : void 0;
41
+ return /* @__PURE__ */ b(k, { disabled: d, error: t, ...l?.root, children: [
42
+ /* @__PURE__ */ b(
43
+ C,
44
+ {
45
+ sx: {
46
+ alignItems: "center",
47
+ display: "flex",
48
+ gap: "0.25rem"
49
+ },
50
+ children: [
51
+ /* @__PURE__ */ e(w, { htmlFor: i, required: o, ...l?.label, children: p }),
52
+ a && /* @__PURE__ */ e(B, { title: a, arrow: !0, children: /* @__PURE__ */ e(
53
+ F,
54
+ {
55
+ sx: ({ vars: x }) => ({
56
+ color: x?.palette.text.secondary,
57
+ marginBlockEnd: "3px",
58
+ height: "1rem",
59
+ width: "1rem"
60
+ })
61
+ }
62
+ ) })
63
+ ]
64
+ }
65
+ ),
66
+ s && /* @__PURE__ */ e(A, { ...l?.sublabel, children: s }),
67
+ /* @__PURE__ */ e(
68
+ M,
69
+ {
70
+ disabled: d,
71
+ ref: m,
72
+ error: t,
73
+ id: i,
74
+ "aria-describedby": r ? h["aria-describedby"] ? `${h["aria-describedby"]} ${r}` : r : h["aria-describedby"],
75
+ ...h
76
+ }
77
+ ),
78
+ n && /* @__PURE__ */ e(I, { id: r, ...l?.helperText, children: n })
79
+ ] });
80
+ }
81
+ const Y = u(
82
+ X
83
+ );
84
+ Y.displayName = "AutocompleteControl";
85
+ const Z = u(
86
+ ({
87
+ disabled: c = !1,
88
+ error: m = !1,
89
+ fullWidth: d,
90
+ helperText: t,
91
+ label: n,
92
+ required: f = !1,
93
+ slotProps: p = {},
94
+ sublabel: o,
95
+ tooltip: l,
96
+ name: s,
97
+ value: a,
98
+ onChange: h,
99
+ onAccept: y,
100
+ onClose: i,
101
+ onOpen: r,
102
+ format: x,
103
+ views: S,
104
+ openTo: E,
105
+ disableFuture: v,
106
+ disablePast: N,
107
+ minDate: j,
108
+ maxDate: T,
109
+ closeOnSelect: q,
110
+ readOnly: H,
111
+ clearable: L,
112
+ reduceAnimations: R,
113
+ ...z
114
+ }, G) => {
115
+ const J = $("datepicker"), g = s || J, D = t ? `${g}-helper` : void 0;
116
+ return /* @__PURE__ */ b(
117
+ k,
118
+ {
119
+ disabled: c,
120
+ error: m,
121
+ fullWidth: d,
122
+ ...p.root,
123
+ children: [
124
+ /* @__PURE__ */ b(
125
+ C,
126
+ {
127
+ sx: {
128
+ alignItems: "center",
129
+ display: "flex",
130
+ gap: "0.25rem"
131
+ },
132
+ children: [
133
+ /* @__PURE__ */ e(w, { htmlFor: g, required: f, ...p.label, children: n }),
134
+ l && /* @__PURE__ */ e(B, { title: l, arrow: !0, children: /* @__PURE__ */ e(
135
+ F,
136
+ {
137
+ sx: ({ vars: K }) => ({
138
+ color: K?.palette.text.secondary,
139
+ marginBlockEnd: "3px",
140
+ height: "1rem",
141
+ width: "1rem"
142
+ })
143
+ }
144
+ ) })
145
+ ]
146
+ }
147
+ ),
148
+ o && /* @__PURE__ */ e(A, { ...p.sublabel, children: o }),
149
+ /* @__PURE__ */ e(
150
+ O,
151
+ {
152
+ ref: G,
153
+ disabled: c,
154
+ name: g,
155
+ value: a,
156
+ onChange: h,
157
+ onAccept: y,
158
+ onClose: i,
159
+ onOpen: r,
160
+ format: x,
161
+ views: S,
162
+ openTo: E,
163
+ disableFuture: v,
164
+ disablePast: N,
165
+ minDate: j,
166
+ maxDate: T,
167
+ closeOnSelect: q,
168
+ readOnly: H,
169
+ clearable: L,
170
+ reduceAnimations: R,
171
+ error: m,
172
+ slotProps: {
173
+ field: {
174
+ id: g,
175
+ "aria-describedby": D,
176
+ ...d && { sx: { width: "100%" } }
177
+ },
178
+ popper: {
179
+ "aria-label": `Date picker${typeof n == "string" && ` for ${n}`}`
180
+ }
181
+ },
182
+ ...z
183
+ }
184
+ ),
185
+ t && /* @__PURE__ */ e(I, { id: D, ...p.helperText, children: t })
186
+ ]
187
+ }
188
+ );
189
+ }
190
+ );
191
+ Z.displayName = "DatepickerControl";
192
+ const A = V(I)(() => ({
193
+ marginBlockStart: 0,
194
+ marginBlockEnd: "3px",
195
+ marginInline: 0
196
+ })), _ = u(
197
+ ({
198
+ disabled: c,
199
+ error: m,
200
+ fullWidth: d,
201
+ helperText: t,
202
+ id: n,
203
+ label: f,
204
+ required: p,
205
+ slotProps: o,
206
+ sublabel: l,
207
+ tooltip: s,
208
+ ...a
209
+ }, h) => {
210
+ const y = $("input"), i = n || y, r = t ? `${i}-helper` : void 0;
211
+ return /* @__PURE__ */ b(
212
+ k,
213
+ {
214
+ disabled: c,
215
+ error: m,
216
+ fullWidth: d,
217
+ ...o?.root,
218
+ children: [
219
+ /* @__PURE__ */ b(
220
+ C,
221
+ {
222
+ sx: {
223
+ alignItems: "center",
224
+ display: "flex",
225
+ gap: "0.25rem"
226
+ },
227
+ children: [
228
+ /* @__PURE__ */ e(
229
+ w,
230
+ {
231
+ htmlFor: i,
232
+ required: p,
233
+ ...o?.label,
234
+ children: f
235
+ }
236
+ ),
237
+ s && /* @__PURE__ */ e(B, { title: s, arrow: !0, children: /* @__PURE__ */ e(
238
+ F,
239
+ {
240
+ sx: ({ vars: x }) => ({
241
+ color: x?.palette.text.secondary,
242
+ marginBlockEnd: "3px",
243
+ height: "1rem",
244
+ width: "1rem"
245
+ })
246
+ }
247
+ ) })
248
+ ]
249
+ }
250
+ ),
251
+ l && /* @__PURE__ */ e(A, { ...o?.sublabel, children: l }),
252
+ /* @__PURE__ */ e(
253
+ Q,
254
+ {
255
+ ref: h,
256
+ disabled: c,
257
+ error: m,
258
+ fullWidth: d,
259
+ id: i,
260
+ "aria-describedby": r ? a["aria-describedby"] ? `${a["aria-describedby"]} ${r}` : r : a["aria-describedby"],
261
+ ...a
262
+ }
263
+ ),
264
+ t && /* @__PURE__ */ e(I, { id: r, ...o?.helperText, children: t })
265
+ ]
266
+ }
267
+ );
268
+ }
269
+ );
270
+ _.displayName = "InputControl";
271
+ const W = u(
272
+ ({
273
+ disabled: c,
274
+ error: m,
275
+ fullWidth: d,
276
+ helperText: t,
277
+ id: n,
278
+ label: f,
279
+ required: p,
280
+ slotProps: o,
281
+ sublabel: l,
282
+ tooltip: s,
283
+ ...a
284
+ }, h) => {
285
+ const y = $("select"), i = n || y, r = t ? `${i}-helper` : void 0;
286
+ return /* @__PURE__ */ b(
287
+ k,
288
+ {
289
+ disabled: c,
290
+ error: m,
291
+ fullWidth: d,
292
+ ...o?.root,
293
+ children: [
294
+ /* @__PURE__ */ b(
295
+ C,
296
+ {
297
+ sx: {
298
+ alignItems: "center",
299
+ display: "flex",
300
+ gap: "0.25rem"
301
+ },
302
+ children: [
303
+ /* @__PURE__ */ e(
304
+ w,
305
+ {
306
+ id: `${i}-label`,
307
+ htmlFor: i,
308
+ required: p,
309
+ ...o?.label,
310
+ children: f
311
+ }
312
+ ),
313
+ s && /* @__PURE__ */ e(B, { title: s, arrow: !0, children: /* @__PURE__ */ e(
314
+ F,
315
+ {
316
+ sx: ({ vars: x }) => ({
317
+ color: x?.palette.text.secondary,
318
+ marginBlockEnd: "3px",
319
+ height: "1rem",
320
+ width: "1rem"
321
+ })
322
+ }
323
+ ) })
324
+ ]
325
+ }
326
+ ),
327
+ l && /* @__PURE__ */ e(A, { ...o?.sublabel, children: l }),
328
+ /* @__PURE__ */ e(
329
+ U,
330
+ {
331
+ ref: h,
332
+ disabled: c,
333
+ error: m,
334
+ fullWidth: d,
335
+ labelId: `${i}-label`,
336
+ id: i,
337
+ "aria-describedby": r ? a["aria-describedby"] ? `${a["aria-describedby"]} ${r}` : r : a["aria-describedby"],
338
+ ...a
339
+ }
340
+ ),
341
+ t && /* @__PURE__ */ e(I, { id: r, ...o?.helperText, children: t })
342
+ ]
343
+ }
344
+ );
345
+ }
346
+ );
347
+ W.displayName = "SelectControl";
348
+ export {
349
+ Y as A,
350
+ Z as D,
351
+ A as F,
352
+ _ as I,
353
+ W as S
354
+ };
@@ -8,7 +8,7 @@ import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
10
  import "../../Autocomplete-CfXcTXLL.js";
11
- import { A as B } from "../../SelectControl-DEUgj2Ie.js";
11
+ import { A as B } from "../../SelectControl-BmDx8v5U.js";
12
12
  import "../../Datepicker-CJBEgBsm.js";
13
13
  import "../DescriptionDetails/DescriptionDetails.js";
14
14
  import "../DescriptionList/DescriptionList.js";
@@ -1,4 +1,4 @@
1
- import { A as e } from "../../SelectControl-DEUgj2Ie.js";
1
+ import { A as e } from "../../SelectControl-BmDx8v5U.js";
2
2
  export {
3
3
  e as AutocompleteControl
4
4
  };
@@ -13,6 +13,7 @@ export interface DatepickerControlProps {
13
13
  required?: boolean;
14
14
  error?: boolean;
15
15
  disabled?: boolean;
16
+ fullWidth?: boolean;
16
17
  format?: string;
17
18
  views?: ("year" | "month" | "day")[];
18
19
  openTo?: "year" | "month" | "day";
@@ -8,7 +8,7 @@ import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
10
  import "../../Autocomplete-CfXcTXLL.js";
11
- import { D as A } from "../../SelectControl-DEUgj2Ie.js";
11
+ import { D as A } from "../../SelectControl-BmDx8v5U.js";
12
12
  import "../../Datepicker-CJBEgBsm.js";
13
13
  import "../DescriptionDetails/DescriptionDetails.js";
14
14
  import "../DescriptionList/DescriptionList.js";
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../SelectControl-DEUgj2Ie.js";
1
+ import { D as e } from "../../SelectControl-BmDx8v5U.js";
2
2
  export {
3
3
  e as DatepickerControl
4
4
  };
@@ -5,7 +5,7 @@ import "../../icons/MoneyBucketIcon.js";
5
5
  import "../../icons/MoreCircleOutlineIcon.js";
6
6
  import "../../theme/index.js";
7
7
  import "../../Autocomplete-CfXcTXLL.js";
8
- import { F as q } from "../../SelectControl-DEUgj2Ie.js";
8
+ import { F as q } from "../../SelectControl-BmDx8v5U.js";
9
9
  import "../../Datepicker-CJBEgBsm.js";
10
10
  import "../DescriptionDetails/DescriptionDetails.js";
11
11
  import "../DescriptionList/DescriptionList.js";
@@ -1,4 +1,4 @@
1
- import { F as a } from "../../SelectControl-DEUgj2Ie.js";
1
+ import { F as a } from "../../SelectControl-BmDx8v5U.js";
2
2
  export {
3
3
  a as FormSublabel
4
4
  };
@@ -8,7 +8,7 @@ import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
10
  import "../../Autocomplete-CfXcTXLL.js";
11
- import { I as A } from "../../SelectControl-DEUgj2Ie.js";
11
+ import { I as A } from "../../SelectControl-BmDx8v5U.js";
12
12
  import "../../Datepicker-CJBEgBsm.js";
13
13
  import "../DescriptionDetails/DescriptionDetails.js";
14
14
  import "../DescriptionList/DescriptionList.js";
@@ -1,4 +1,4 @@
1
- import { I as t } from "../../SelectControl-DEUgj2Ie.js";
1
+ import { I as t } from "../../SelectControl-BmDx8v5U.js";
2
2
  export {
3
3
  t as InputControl
4
4
  };
@@ -8,7 +8,7 @@ import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
10
  import "../../Autocomplete-CfXcTXLL.js";
11
- import { S as A } from "../../SelectControl-DEUgj2Ie.js";
11
+ import { S as A } from "../../SelectControl-BmDx8v5U.js";
12
12
  import "../../Datepicker-CJBEgBsm.js";
13
13
  import "../DescriptionDetails/DescriptionDetails.js";
14
14
  import "../DescriptionList/DescriptionList.js";
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../SelectControl-DEUgj2Ie.js";
1
+ import { S as r } from "../../SelectControl-BmDx8v5U.js";
2
2
  export {
3
3
  r as SelectControl
4
4
  };
package/dist/main.js CHANGED
@@ -9,7 +9,7 @@ import { C as Ua, a as ba, E as Sa, I as Da, W as La } from "./WarningAmberOutli
9
9
  import { I as Ba } from "./Info-DtWHV9kz.js";
10
10
  import { StyledEngineProvider as ka } from "./theme/index.js";
11
11
  import { A as wa, a as va, c as Fa, g as Oa } from "./Autocomplete-CfXcTXLL.js";
12
- import { A as Ra, D as Ga, F as Ha, I as Ea, S as Na } from "./SelectControl-DEUgj2Ie.js";
12
+ import { A as Ra, D as Ga, F as Ha, I as Ea, S as Na } from "./SelectControl-BmDx8v5U.js";
13
13
  import { c as Ka, a as za, b as Wa, D as ja, L as Qa, M as Za, P as qa, e as Ja, d as Xa, f as Ya, g as _a, j as $a, i as so, p as ao, h as oo } from "./Datepicker-CJBEgBsm.js";
14
14
  import { DescriptionDetails as eo } from "./components/DescriptionDetails/DescriptionDetails.js";
15
15
  import { DescriptionList as lo } from "./components/DescriptionList/DescriptionList.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearstory/drywall-react",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",
@@ -1,321 +0,0 @@
1
- import { jsxs as y, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as g } from "react";
3
- import { useId as u } from "./hooks/useId.js";
4
- import "./icons/ClearstoryIcon.js";
5
- import "./icons/InternalOnlyIcon.js";
6
- import "./icons/MoneyBucketIcon.js";
7
- import "./icons/MoreCircleOutlineIcon.js";
8
- import { I as $ } from "./Info-DtWHV9kz.js";
9
- import "./theme/index.js";
10
- import { A as K } from "./Autocomplete-CfXcTXLL.js";
11
- import { D as M } from "./Datepicker-CJBEgBsm.js";
12
- import "./components/DescriptionDetails/DescriptionDetails.js";
13
- import "./components/DescriptionList/DescriptionList.js";
14
- import "./components/DescriptionList/DescriptionListContext.js";
15
- import "./components/DescriptionTerm/DescriptionTerm.js";
16
- import { Input as O } from "./components/Input/Input.js";
17
- import { Select as Q } from "./components/Select/Select.js";
18
- import "./theme/internal.js";
19
- import "./components/ToastContainer/ToastContainer.js";
20
- import "./components/ToastContainer/ToastLabelContext.js";
21
- import "./index-SzwnPTHF.js";
22
- import { F } from "./FormControl-CuHXXTcL.js";
23
- import { B as k } from "./Box-CKDKtm7F.js";
24
- import { F as C } from "./FormLabel-CgNd8XLN.js";
25
- import { T as w } from "./Tooltip-BJmTHiZe.js";
26
- import { F as I } from "./FormHelperText-wucHHOG8.js";
27
- import { s as U } from "./styled-fvngWWLy.js";
28
- function V(d, n) {
29
- const {
30
- disabled: i,
31
- error: c,
32
- helperText: b,
33
- id: m,
34
- label: t,
35
- required: p,
36
- slotProps: l,
37
- sublabel: o,
38
- tooltip: f,
39
- ...s
40
- } = d, a = u("autocomplete"), r = m || a, h = b ? `${r}-helper` : void 0;
41
- return /* @__PURE__ */ y(F, { disabled: i, error: c, ...l?.root, children: [
42
- /* @__PURE__ */ y(
43
- k,
44
- {
45
- sx: {
46
- alignItems: "center",
47
- display: "flex",
48
- gap: "0.25rem"
49
- },
50
- children: [
51
- /* @__PURE__ */ e(C, { htmlFor: r, required: p, ...l?.label, children: t }),
52
- f && /* @__PURE__ */ e(w, { title: f, arrow: !0, children: /* @__PURE__ */ e(
53
- $,
54
- {
55
- sx: ({ vars: A }) => ({
56
- color: A?.palette.text.secondary,
57
- marginBlockEnd: "3px",
58
- height: "1rem",
59
- width: "1rem"
60
- })
61
- }
62
- ) })
63
- ]
64
- }
65
- ),
66
- o && /* @__PURE__ */ e(B, { ...l?.sublabel, children: o }),
67
- /* @__PURE__ */ e(
68
- K,
69
- {
70
- disabled: i,
71
- ref: n,
72
- error: c,
73
- id: r,
74
- "aria-describedby": h ? s["aria-describedby"] ? `${s["aria-describedby"]} ${h}` : h : s["aria-describedby"],
75
- ...s
76
- }
77
- ),
78
- b && /* @__PURE__ */ e(I, { id: h, ...l?.helperText, children: b })
79
- ] });
80
- }
81
- const W = g(
82
- V
83
- );
84
- W.displayName = "AutocompleteControl";
85
- const X = g(
86
- ({
87
- disabled: d = !1,
88
- error: n = !1,
89
- helperText: i,
90
- label: c,
91
- required: b = !1,
92
- slotProps: m = {},
93
- sublabel: t,
94
- tooltip: p,
95
- name: l,
96
- value: o,
97
- onChange: f,
98
- onAccept: s,
99
- onClose: a,
100
- onOpen: r,
101
- format: h,
102
- views: A,
103
- openTo: S,
104
- disableFuture: E,
105
- disablePast: v,
106
- minDate: N,
107
- maxDate: j,
108
- closeOnSelect: T,
109
- readOnly: q,
110
- clearable: H,
111
- reduceAnimations: L,
112
- ...R
113
- }, z) => {
114
- const G = u("datepicker"), x = l || G, D = i ? `${x}-helper` : void 0;
115
- return /* @__PURE__ */ y(F, { disabled: d, error: n, ...m.root, children: [
116
- /* @__PURE__ */ y(
117
- k,
118
- {
119
- sx: {
120
- alignItems: "center",
121
- display: "flex",
122
- gap: "0.25rem"
123
- },
124
- children: [
125
- /* @__PURE__ */ e(C, { htmlFor: x, required: b, ...m.label, children: c }),
126
- p && /* @__PURE__ */ e(w, { title: p, arrow: !0, children: /* @__PURE__ */ e(
127
- $,
128
- {
129
- sx: ({ vars: J }) => ({
130
- color: J?.palette.text.secondary,
131
- marginBlockEnd: "3px",
132
- height: "1rem",
133
- width: "1rem"
134
- })
135
- }
136
- ) })
137
- ]
138
- }
139
- ),
140
- t && /* @__PURE__ */ e(B, { ...m.sublabel, children: t }),
141
- /* @__PURE__ */ e(
142
- M,
143
- {
144
- ref: z,
145
- disabled: d,
146
- name: x,
147
- value: o,
148
- onChange: f,
149
- onAccept: s,
150
- onClose: a,
151
- onOpen: r,
152
- format: h,
153
- views: A,
154
- openTo: S,
155
- disableFuture: E,
156
- disablePast: v,
157
- minDate: N,
158
- maxDate: j,
159
- closeOnSelect: T,
160
- readOnly: q,
161
- clearable: H,
162
- reduceAnimations: L,
163
- error: n,
164
- slotProps: {
165
- field: {
166
- id: x,
167
- "aria-describedby": D
168
- },
169
- popper: {
170
- "aria-label": `Date picker${typeof c == "string" && ` for ${c}`}`
171
- }
172
- },
173
- ...R
174
- }
175
- ),
176
- i && /* @__PURE__ */ e(I, { id: D, ...m.helperText, children: i })
177
- ] });
178
- }
179
- );
180
- X.displayName = "DatepickerControl";
181
- const B = U(I)(() => ({
182
- marginBlockStart: 0,
183
- marginBlockEnd: "3px",
184
- marginInline: 0
185
- })), Y = g(
186
- ({
187
- disabled: d,
188
- error: n,
189
- helperText: i,
190
- id: c,
191
- label: b,
192
- required: m,
193
- slotProps: t,
194
- sublabel: p,
195
- tooltip: l,
196
- ...o
197
- }, f) => {
198
- const s = u("input"), a = c || s, r = i ? `${a}-helper` : void 0;
199
- return /* @__PURE__ */ y(F, { disabled: d, error: n, ...t?.root, children: [
200
- /* @__PURE__ */ y(
201
- k,
202
- {
203
- sx: {
204
- alignItems: "center",
205
- display: "flex",
206
- gap: "0.25rem"
207
- },
208
- children: [
209
- /* @__PURE__ */ e(
210
- C,
211
- {
212
- htmlFor: a,
213
- required: m,
214
- ...t?.label,
215
- children: b
216
- }
217
- ),
218
- l && /* @__PURE__ */ e(w, { title: l, arrow: !0, children: /* @__PURE__ */ e(
219
- $,
220
- {
221
- sx: ({ vars: h }) => ({
222
- color: h?.palette.text.secondary,
223
- marginBlockEnd: "3px",
224
- height: "1rem",
225
- width: "1rem"
226
- })
227
- }
228
- ) })
229
- ]
230
- }
231
- ),
232
- p && /* @__PURE__ */ e(B, { ...t?.sublabel, children: p }),
233
- /* @__PURE__ */ e(
234
- O,
235
- {
236
- ref: f,
237
- disabled: d,
238
- error: n,
239
- id: a,
240
- "aria-describedby": r ? o["aria-describedby"] ? `${o["aria-describedby"]} ${r}` : r : o["aria-describedby"],
241
- ...o
242
- }
243
- ),
244
- i && /* @__PURE__ */ e(I, { id: r, ...t?.helperText, children: i })
245
- ] });
246
- }
247
- );
248
- Y.displayName = "InputControl";
249
- const Z = g(
250
- ({
251
- disabled: d,
252
- error: n,
253
- helperText: i,
254
- id: c,
255
- label: b,
256
- required: m,
257
- slotProps: t,
258
- sublabel: p,
259
- tooltip: l,
260
- ...o
261
- }, f) => {
262
- const s = u("select"), a = c || s, r = i ? `${a}-helper` : void 0;
263
- return /* @__PURE__ */ y(F, { disabled: d, error: n, ...t?.root, children: [
264
- /* @__PURE__ */ y(
265
- k,
266
- {
267
- sx: {
268
- alignItems: "center",
269
- display: "flex",
270
- gap: "0.25rem"
271
- },
272
- children: [
273
- /* @__PURE__ */ e(
274
- C,
275
- {
276
- id: `${a}-label`,
277
- htmlFor: a,
278
- required: m,
279
- ...t?.label,
280
- children: b
281
- }
282
- ),
283
- l && /* @__PURE__ */ e(w, { title: l, arrow: !0, children: /* @__PURE__ */ e(
284
- $,
285
- {
286
- sx: ({ vars: h }) => ({
287
- color: h?.palette.text.secondary,
288
- marginBlockEnd: "3px",
289
- height: "1rem",
290
- width: "1rem"
291
- })
292
- }
293
- ) })
294
- ]
295
- }
296
- ),
297
- p && /* @__PURE__ */ e(B, { ...t?.sublabel, children: p }),
298
- /* @__PURE__ */ e(
299
- Q,
300
- {
301
- ref: f,
302
- disabled: d,
303
- error: n,
304
- labelId: `${a}-label`,
305
- id: a,
306
- "aria-describedby": r ? o["aria-describedby"] ? `${o["aria-describedby"]} ${r}` : r : o["aria-describedby"],
307
- ...o
308
- }
309
- ),
310
- i && /* @__PURE__ */ e(I, { id: r, ...t?.helperText, children: i })
311
- ] });
312
- }
313
- );
314
- Z.displayName = "SelectControl";
315
- export {
316
- W as A,
317
- X as D,
318
- B as F,
319
- Y as I,
320
- Z as S
321
- };