@clearstory/drywall-react 2.3.0 → 3.0.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.
@@ -1729,7 +1729,7 @@ process.env.NODE_ENV !== "production" && (Nt.propTypes = {
1729
1729
  value: $t(o.any, (n) => n.multiple && n.value !== void 0 && !Array.isArray(n.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${n.value} was provided.`].join(`
1730
1730
  `)) : null)
1731
1731
  });
1732
- const bo = Mt((n, p) => {
1732
+ function bo(n, p) {
1733
1733
  const {
1734
1734
  color: g = "primary",
1735
1735
  size: f = "small",
@@ -1766,10 +1766,13 @@ const bo = Mt((n, p) => {
1766
1766
  clearIcon: O
1767
1767
  }
1768
1768
  );
1769
- });
1770
- bo.displayName = "Autocomplete";
1769
+ }
1770
+ const Io = Mt(
1771
+ bo
1772
+ );
1773
+ Io.displayName = "Autocomplete";
1771
1774
  export {
1772
- bo as A,
1775
+ Io as A,
1773
1776
  s as a,
1774
1777
  Qt as c,
1775
1778
  no as g
@@ -0,0 +1,317 @@
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-tzEooGdJ.js";
11
+ import { D as M } from "./Datepicker-DYDSgJ7Y.js";
12
+ import { Input as O } from "./components/Input/Input.js";
13
+ import { Select as Q } from "./components/Select/Select.js";
14
+ import "./theme/internal.js";
15
+ import "./components/ToastContainer/ToastContainer.js";
16
+ import "./components/ToastContainer/ToastLabelContext.js";
17
+ import "./index-SzwnPTHF.js";
18
+ import { F } from "./FormControl-CuHXXTcL.js";
19
+ import { B as k } from "./Box-CKDKtm7F.js";
20
+ import { F as C } from "./FormLabel-CgNd8XLN.js";
21
+ import { T as w } from "./Tooltip-BJmTHiZe.js";
22
+ import { F as I } from "./FormHelperText-wucHHOG8.js";
23
+ import { s as U } from "./styled-fvngWWLy.js";
24
+ function V(d, n) {
25
+ const {
26
+ disabled: i,
27
+ error: c,
28
+ helperText: b,
29
+ id: m,
30
+ label: t,
31
+ required: p,
32
+ slotProps: l,
33
+ sublabel: o,
34
+ tooltip: f,
35
+ ...s
36
+ } = d, a = u("autocomplete"), r = m || a, h = b ? `${r}-helper` : void 0;
37
+ return /* @__PURE__ */ y(F, { disabled: i, error: c, ...l?.root, children: [
38
+ /* @__PURE__ */ y(
39
+ k,
40
+ {
41
+ sx: {
42
+ alignItems: "center",
43
+ display: "flex",
44
+ gap: "0.25rem"
45
+ },
46
+ children: [
47
+ /* @__PURE__ */ e(C, { htmlFor: r, required: p, ...l?.label, children: t }),
48
+ f && /* @__PURE__ */ e(w, { title: f, arrow: !0, children: /* @__PURE__ */ e(
49
+ $,
50
+ {
51
+ sx: ({ vars: A }) => ({
52
+ color: A?.palette.text.secondary,
53
+ marginBlockEnd: "3px",
54
+ height: "1rem",
55
+ width: "1rem"
56
+ })
57
+ }
58
+ ) })
59
+ ]
60
+ }
61
+ ),
62
+ o && /* @__PURE__ */ e(B, { ...l?.sublabel, children: o }),
63
+ /* @__PURE__ */ e(
64
+ K,
65
+ {
66
+ disabled: i,
67
+ ref: n,
68
+ error: c,
69
+ id: r,
70
+ "aria-describedby": h ? s["aria-describedby"] ? `${s["aria-describedby"]} ${h}` : h : s["aria-describedby"],
71
+ ...s
72
+ }
73
+ ),
74
+ b && /* @__PURE__ */ e(I, { id: h, ...l?.helperText, children: b })
75
+ ] });
76
+ }
77
+ const W = g(
78
+ V
79
+ );
80
+ W.displayName = "AutocompleteControl";
81
+ const X = g(
82
+ ({
83
+ disabled: d = !1,
84
+ error: n = !1,
85
+ helperText: i,
86
+ label: c,
87
+ required: b = !1,
88
+ slotProps: m = {},
89
+ sublabel: t,
90
+ tooltip: p,
91
+ name: l,
92
+ value: o,
93
+ onChange: f,
94
+ onAccept: s,
95
+ onClose: a,
96
+ onOpen: r,
97
+ format: h,
98
+ views: A,
99
+ openTo: S,
100
+ disableFuture: E,
101
+ disablePast: v,
102
+ minDate: N,
103
+ maxDate: j,
104
+ closeOnSelect: T,
105
+ readOnly: q,
106
+ clearable: H,
107
+ reduceAnimations: L,
108
+ ...R
109
+ }, z) => {
110
+ const G = u("datepicker"), x = l || G, D = i ? `${x}-helper` : void 0;
111
+ return /* @__PURE__ */ y(F, { disabled: d, error: n, ...m.root, children: [
112
+ /* @__PURE__ */ y(
113
+ k,
114
+ {
115
+ sx: {
116
+ alignItems: "center",
117
+ display: "flex",
118
+ gap: "0.25rem"
119
+ },
120
+ children: [
121
+ /* @__PURE__ */ e(C, { htmlFor: x, required: b, ...m.label, children: c }),
122
+ p && /* @__PURE__ */ e(w, { title: p, arrow: !0, children: /* @__PURE__ */ e(
123
+ $,
124
+ {
125
+ sx: ({ vars: J }) => ({
126
+ color: J?.palette.text.secondary,
127
+ marginBlockEnd: "3px",
128
+ height: "1rem",
129
+ width: "1rem"
130
+ })
131
+ }
132
+ ) })
133
+ ]
134
+ }
135
+ ),
136
+ t && /* @__PURE__ */ e(B, { ...m.sublabel, children: t }),
137
+ /* @__PURE__ */ e(
138
+ M,
139
+ {
140
+ ref: z,
141
+ disabled: d,
142
+ name: x,
143
+ value: o,
144
+ onChange: f,
145
+ onAccept: s,
146
+ onClose: a,
147
+ onOpen: r,
148
+ format: h,
149
+ views: A,
150
+ openTo: S,
151
+ disableFuture: E,
152
+ disablePast: v,
153
+ minDate: N,
154
+ maxDate: j,
155
+ closeOnSelect: T,
156
+ readOnly: q,
157
+ clearable: H,
158
+ reduceAnimations: L,
159
+ error: n,
160
+ slotProps: {
161
+ field: {
162
+ id: x,
163
+ "aria-describedby": D
164
+ },
165
+ popper: {
166
+ "aria-label": `Date picker${typeof c == "string" && ` for ${c}`}`
167
+ }
168
+ },
169
+ ...R
170
+ }
171
+ ),
172
+ i && /* @__PURE__ */ e(I, { id: D, ...m.helperText, children: i })
173
+ ] });
174
+ }
175
+ );
176
+ X.displayName = "DatepickerControl";
177
+ const B = U(I)(() => ({
178
+ marginBlockStart: 0,
179
+ marginBlockEnd: "3px",
180
+ marginInline: 0
181
+ })), Y = g(
182
+ ({
183
+ disabled: d,
184
+ error: n,
185
+ helperText: i,
186
+ id: c,
187
+ label: b,
188
+ required: m,
189
+ slotProps: t,
190
+ sublabel: p,
191
+ tooltip: l,
192
+ ...o
193
+ }, f) => {
194
+ const s = u("input"), a = c || s, r = i ? `${a}-helper` : void 0;
195
+ return /* @__PURE__ */ y(F, { disabled: d, error: n, ...t?.root, children: [
196
+ /* @__PURE__ */ y(
197
+ k,
198
+ {
199
+ sx: {
200
+ alignItems: "center",
201
+ display: "flex",
202
+ gap: "0.25rem"
203
+ },
204
+ children: [
205
+ /* @__PURE__ */ e(
206
+ C,
207
+ {
208
+ htmlFor: a,
209
+ required: m,
210
+ ...t?.label,
211
+ children: b
212
+ }
213
+ ),
214
+ l && /* @__PURE__ */ e(w, { title: l, arrow: !0, children: /* @__PURE__ */ e(
215
+ $,
216
+ {
217
+ sx: ({ vars: h }) => ({
218
+ color: h?.palette.text.secondary,
219
+ marginBlockEnd: "3px",
220
+ height: "1rem",
221
+ width: "1rem"
222
+ })
223
+ }
224
+ ) })
225
+ ]
226
+ }
227
+ ),
228
+ p && /* @__PURE__ */ e(B, { ...t?.sublabel, children: p }),
229
+ /* @__PURE__ */ e(
230
+ O,
231
+ {
232
+ ref: f,
233
+ disabled: d,
234
+ error: n,
235
+ id: a,
236
+ "aria-describedby": r ? o["aria-describedby"] ? `${o["aria-describedby"]} ${r}` : r : o["aria-describedby"],
237
+ ...o
238
+ }
239
+ ),
240
+ i && /* @__PURE__ */ e(I, { id: r, ...t?.helperText, children: i })
241
+ ] });
242
+ }
243
+ );
244
+ Y.displayName = "InputControl";
245
+ const Z = g(
246
+ ({
247
+ disabled: d,
248
+ error: n,
249
+ helperText: i,
250
+ id: c,
251
+ label: b,
252
+ required: m,
253
+ slotProps: t,
254
+ sublabel: p,
255
+ tooltip: l,
256
+ ...o
257
+ }, f) => {
258
+ const s = u("select"), a = c || s, r = i ? `${a}-helper` : void 0;
259
+ return /* @__PURE__ */ y(F, { disabled: d, error: n, ...t?.root, children: [
260
+ /* @__PURE__ */ y(
261
+ k,
262
+ {
263
+ sx: {
264
+ alignItems: "center",
265
+ display: "flex",
266
+ gap: "0.25rem"
267
+ },
268
+ children: [
269
+ /* @__PURE__ */ e(
270
+ C,
271
+ {
272
+ id: `${a}-label`,
273
+ htmlFor: a,
274
+ required: m,
275
+ ...t?.label,
276
+ children: b
277
+ }
278
+ ),
279
+ l && /* @__PURE__ */ e(w, { title: l, arrow: !0, children: /* @__PURE__ */ e(
280
+ $,
281
+ {
282
+ sx: ({ vars: h }) => ({
283
+ color: h?.palette.text.secondary,
284
+ marginBlockEnd: "3px",
285
+ height: "1rem",
286
+ width: "1rem"
287
+ })
288
+ }
289
+ ) })
290
+ ]
291
+ }
292
+ ),
293
+ p && /* @__PURE__ */ e(B, { ...t?.sublabel, children: p }),
294
+ /* @__PURE__ */ e(
295
+ Q,
296
+ {
297
+ ref: f,
298
+ disabled: d,
299
+ error: n,
300
+ labelId: `${a}-label`,
301
+ id: a,
302
+ "aria-describedby": r ? o["aria-describedby"] ? `${o["aria-describedby"]} ${r}` : r : o["aria-describedby"],
303
+ ...o
304
+ }
305
+ ),
306
+ i && /* @__PURE__ */ e(I, { id: r, ...t?.helperText, children: i })
307
+ ] });
308
+ }
309
+ );
310
+ Z.displayName = "SelectControl";
311
+ export {
312
+ W as A,
313
+ X as D,
314
+ B as F,
315
+ Y as I,
316
+ Z as S
317
+ };
@@ -1,5 +1,5 @@
1
1
  import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
2
- import { ElementType, ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import { ElementType, Ref, ReactElement } from 'react';
3
3
  import { InputProps } from '../Input';
4
4
  export interface AutocompleteProps<Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends ElementType = "div"> extends Omit<MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, "renderInput"> {
5
5
  color?: InputProps["color"];
@@ -11,5 +11,10 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined =
11
11
  popupIcon?: MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>["popupIcon"];
12
12
  clearIcon?: MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>["clearIcon"];
13
13
  }
14
- export declare const Autocomplete: ForwardRefExoticComponent<Omit<AutocompleteProps<unknown, boolean, boolean, boolean, ElementType>, "ref"> & RefAttributes<HTMLDivElement>>;
14
+ type AutocompleteComponentType = <Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends ElementType = "div">(props: AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
15
+ ref?: Ref<HTMLDivElement>;
16
+ }) => ReactElement;
17
+ export declare const Autocomplete: AutocompleteComponentType & {
18
+ displayName?: string;
19
+ };
15
20
  export default Autocomplete;
@@ -6,7 +6,7 @@ import "../../icons/InternalOnlyIcon.js";
6
6
  import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Clear-ABzw_mBN.js";
9
- import { A as l, A as s } from "../../Autocomplete-BnNe-Ocu.js";
9
+ import { A as l, A as s } from "../../Autocomplete-tzEooGdJ.js";
10
10
  export {
11
11
  l as Autocomplete,
12
12
  s as default
@@ -1,4 +1,4 @@
1
- import { A as a, a as s, c as o, A as l, g as c } from "../../Autocomplete-BnNe-Ocu.js";
1
+ import { A as a, a as s, c as o, A as l, g as c } from "../../Autocomplete-tzEooGdJ.js";
2
2
  export {
3
3
  a as Autocomplete,
4
4
  s as autocompleteClasses,
@@ -1,4 +1,4 @@
1
- import { ReactNode, DOMAttributes, ElementType, ForwardRefExoticComponent, RefAttributes } from 'react';
1
+ import { ReactNode, DOMAttributes, ElementType, Ref, ReactElement } from 'react';
2
2
  import { AutocompleteProps, FormControlProps, FormLabelProps, FormHelperTextProps, FormSublabelProps } from '../../main';
3
3
  type DOMEventHandlers = keyof DOMAttributes<HTMLElement>;
4
4
  export interface AutocompleteControlProps<Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends ElementType = "div"> extends Omit<AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>, "ref" | "slotProps"> {
@@ -14,5 +14,10 @@ export interface AutocompleteControlProps<Value, Multiple extends boolean | unde
14
14
  sublabel?: ReactNode;
15
15
  tooltip?: ReactNode;
16
16
  }
17
- export declare const AutocompleteControl: ForwardRefExoticComponent<AutocompleteControlProps<unknown, boolean, boolean, boolean, ElementType> & RefAttributes<HTMLDivElement>>;
17
+ type AutocompleteControlComponentType = <Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends ElementType = "div">(props: AutocompleteControlProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
18
+ ref?: Ref<HTMLDivElement>;
19
+ }) => ReactElement;
20
+ export declare const AutocompleteControl: AutocompleteControlComponentType & {
21
+ displayName?: string;
22
+ };
18
23
  export {};
@@ -7,8 +7,8 @@ import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BnNe-Ocu.js";
11
- import { A as v } from "../../SelectControl-DGAnDeHt.js";
10
+ import "../../Autocomplete-tzEooGdJ.js";
11
+ import { A as v } from "../../SelectControl-BEXL5rk4.js";
12
12
  import "../../Datepicker-DYDSgJ7Y.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { A as e } from "../../SelectControl-DGAnDeHt.js";
1
+ import { A as e } from "../../SelectControl-BEXL5rk4.js";
2
2
  export {
3
3
  e as AutocompleteControl
4
4
  };
@@ -7,8 +7,8 @@ import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BnNe-Ocu.js";
11
- import { D as v } from "../../SelectControl-DGAnDeHt.js";
10
+ import "../../Autocomplete-tzEooGdJ.js";
11
+ import { D as v } from "../../SelectControl-BEXL5rk4.js";
12
12
  import "../../Datepicker-DYDSgJ7Y.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../SelectControl-DGAnDeHt.js";
1
+ import { D as e } from "../../SelectControl-BEXL5rk4.js";
2
2
  export {
3
3
  e as DatepickerControl
4
4
  };
@@ -4,8 +4,8 @@ import "../../icons/InternalOnlyIcon.js";
4
4
  import "../../icons/MoneyBucketIcon.js";
5
5
  import "../../icons/MoreCircleOutlineIcon.js";
6
6
  import "../../theme/index.js";
7
- import "../../Autocomplete-BnNe-Ocu.js";
8
- import { F as h } from "../../SelectControl-DGAnDeHt.js";
7
+ import "../../Autocomplete-tzEooGdJ.js";
8
+ import { F as h } from "../../SelectControl-BEXL5rk4.js";
9
9
  import "../../Datepicker-DYDSgJ7Y.js";
10
10
  import "../Input/Input.js";
11
11
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { F as a } from "../../SelectControl-DGAnDeHt.js";
1
+ import { F as a } from "../../SelectControl-BEXL5rk4.js";
2
2
  export {
3
3
  a as FormSublabel
4
4
  };
@@ -7,8 +7,8 @@ import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BnNe-Ocu.js";
11
- import { I as v } from "../../SelectControl-DGAnDeHt.js";
10
+ import "../../Autocomplete-tzEooGdJ.js";
11
+ import { I as v } from "../../SelectControl-BEXL5rk4.js";
12
12
  import "../../Datepicker-DYDSgJ7Y.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { I as t } from "../../SelectControl-DGAnDeHt.js";
1
+ import { I as t } from "../../SelectControl-BEXL5rk4.js";
2
2
  export {
3
3
  t as InputControl
4
4
  };
@@ -7,8 +7,8 @@ import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-DtWHV9kz.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BnNe-Ocu.js";
11
- import { S as v } from "../../SelectControl-DGAnDeHt.js";
10
+ import "../../Autocomplete-tzEooGdJ.js";
11
+ import { S as v } from "../../SelectControl-BEXL5rk4.js";
12
12
  import "../../Datepicker-DYDSgJ7Y.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../SelectControl-DGAnDeHt.js";
1
+ import { S as r } from "../../SelectControl-BEXL5rk4.js";
2
2
  export {
3
3
  r as SelectControl
4
4
  };
package/dist/main.js CHANGED
@@ -8,8 +8,8 @@ import { A as xa, C as ua } from "./Clear-ABzw_mBN.js";
8
8
  import { C as Aa, a as Ua, E as ba, I as Sa, W as La } from "./WarningAmberOutlined-Bip82sqV.js";
9
9
  import { I as Ta } from "./Info-DtWHV9kz.js";
10
10
  import { StyledEngineProvider as ha } from "./theme/index.js";
11
- import { A as Pa, a as wa, c as va, g as Fa } from "./Autocomplete-BnNe-Ocu.js";
12
- import { A as Ma, D as Ra, F as Ga, I as Ha, S as Ea } from "./SelectControl-DGAnDeHt.js";
11
+ import { A as Pa, a as wa, c as va, g as Fa } from "./Autocomplete-tzEooGdJ.js";
12
+ import { A as Ma, D as Ra, F as Ga, I as Ha, S as Ea } from "./SelectControl-BEXL5rk4.js";
13
13
  import { a as Va, b as Ka, D as za, L as Wa, M as ja, d as Qa } from "./Datepicker-DYDSgJ7Y.js";
14
14
  import { Input as qa } from "./components/Input/Input.js";
15
15
  import { Select as Xa } from "./components/Select/Select.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clearstory/drywall-react",
3
- "version": "2.3.0",
3
+ "version": "3.0.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",
@@ -1,324 +0,0 @@
1
- import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as x } 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 M } from "./Autocomplete-BnNe-Ocu.js";
11
- import { D as O } from "./Datepicker-DYDSgJ7Y.js";
12
- import { Input as Q } from "./components/Input/Input.js";
13
- import { Select as U } from "./components/Select/Select.js";
14
- import "./theme/internal.js";
15
- import "./components/ToastContainer/ToastContainer.js";
16
- import "./components/ToastContainer/ToastLabelContext.js";
17
- import "./index-SzwnPTHF.js";
18
- import { F } from "./FormControl-CuHXXTcL.js";
19
- import { B as k } from "./Box-CKDKtm7F.js";
20
- import { F as w } from "./FormLabel-CgNd8XLN.js";
21
- import { T as C } from "./Tooltip-BJmTHiZe.js";
22
- import { F as I } from "./FormHelperText-wucHHOG8.js";
23
- import { s as V } from "./styled-fvngWWLy.js";
24
- const W = x(
25
- ({
26
- disabled: o,
27
- error: n,
28
- helperText: a,
29
- id: p,
30
- label: s,
31
- required: c,
32
- slotProps: r,
33
- sublabel: l,
34
- tooltip: m,
35
- ...i
36
- }, b) => {
37
- const f = u("autocomplete"), d = p || f, t = a ? `${d}-helper` : void 0;
38
- return /* @__PURE__ */ h(F, { disabled: o, error: n, ...r?.root, children: [
39
- /* @__PURE__ */ h(
40
- k,
41
- {
42
- sx: {
43
- alignItems: "center",
44
- display: "flex",
45
- gap: "0.25rem"
46
- },
47
- children: [
48
- /* @__PURE__ */ e(
49
- w,
50
- {
51
- htmlFor: d,
52
- required: c,
53
- ...r?.label,
54
- children: s
55
- }
56
- ),
57
- m && /* @__PURE__ */ e(C, { title: m, arrow: !0, children: /* @__PURE__ */ e(
58
- $,
59
- {
60
- sx: ({ vars: y }) => ({
61
- color: y?.palette.text.secondary,
62
- marginBlockEnd: "3px",
63
- height: "1rem",
64
- width: "1rem"
65
- })
66
- }
67
- ) })
68
- ]
69
- }
70
- ),
71
- l && /* @__PURE__ */ e(B, { ...r?.sublabel, children: l }),
72
- /* @__PURE__ */ e(
73
- M,
74
- {
75
- disabled: o,
76
- ref: b,
77
- error: n,
78
- id: d,
79
- "aria-describedby": t ? i["aria-describedby"] ? `${i["aria-describedby"]} ${t}` : t : i["aria-describedby"],
80
- ...i
81
- }
82
- ),
83
- a && /* @__PURE__ */ e(I, { id: t, ...r?.helperText, children: a })
84
- ] });
85
- }
86
- );
87
- W.displayName = "AutocompleteControl";
88
- const X = x(
89
- ({
90
- disabled: o = !1,
91
- error: n = !1,
92
- helperText: a,
93
- label: p,
94
- required: s = !1,
95
- slotProps: c = {},
96
- sublabel: r,
97
- tooltip: l,
98
- name: m,
99
- value: i,
100
- onChange: b,
101
- onAccept: f,
102
- onClose: d,
103
- onOpen: t,
104
- format: y,
105
- views: S,
106
- openTo: A,
107
- disableFuture: E,
108
- disablePast: v,
109
- minDate: N,
110
- maxDate: j,
111
- closeOnSelect: H,
112
- readOnly: L,
113
- clearable: R,
114
- reduceAnimations: q,
115
- ...z
116
- }, G) => {
117
- const J = u("datepicker"), g = m || J, D = a ? `${g}-helper` : void 0;
118
- return /* @__PURE__ */ h(F, { disabled: o, error: n, ...c.root, children: [
119
- /* @__PURE__ */ h(
120
- k,
121
- {
122
- sx: {
123
- alignItems: "center",
124
- display: "flex",
125
- gap: "0.25rem"
126
- },
127
- children: [
128
- /* @__PURE__ */ e(w, { htmlFor: g, required: s, ...c.label, children: p }),
129
- l && /* @__PURE__ */ e(C, { title: l, arrow: !0, children: /* @__PURE__ */ e(
130
- $,
131
- {
132
- sx: ({ vars: K }) => ({
133
- color: K?.palette.text.secondary,
134
- marginBlockEnd: "3px",
135
- height: "1rem",
136
- width: "1rem"
137
- })
138
- }
139
- ) })
140
- ]
141
- }
142
- ),
143
- r && /* @__PURE__ */ e(B, { ...c.sublabel, children: r }),
144
- /* @__PURE__ */ e(
145
- O,
146
- {
147
- ref: G,
148
- disabled: o,
149
- name: g,
150
- value: i,
151
- onChange: b,
152
- onAccept: f,
153
- onClose: d,
154
- onOpen: t,
155
- format: y,
156
- views: S,
157
- openTo: A,
158
- disableFuture: E,
159
- disablePast: v,
160
- minDate: N,
161
- maxDate: j,
162
- closeOnSelect: H,
163
- readOnly: L,
164
- clearable: R,
165
- reduceAnimations: q,
166
- error: n,
167
- slotProps: {
168
- field: {
169
- id: g,
170
- "aria-describedby": D
171
- },
172
- popper: {
173
- "aria-label": `Date picker${typeof p == "string" && ` for ${p}`}`
174
- }
175
- },
176
- ...z
177
- }
178
- ),
179
- a && /* @__PURE__ */ e(I, { id: D, ...c.helperText, children: a })
180
- ] });
181
- }
182
- );
183
- X.displayName = "DatepickerControl";
184
- const B = V(I)(() => ({
185
- marginBlockStart: 0,
186
- marginBlockEnd: "3px",
187
- marginInline: 0
188
- })), Y = x(
189
- ({
190
- disabled: o,
191
- error: n,
192
- helperText: a,
193
- id: p,
194
- label: s,
195
- required: c,
196
- slotProps: r,
197
- sublabel: l,
198
- tooltip: m,
199
- ...i
200
- }, b) => {
201
- const f = u("input"), d = p || f, t = a ? `${d}-helper` : void 0;
202
- return /* @__PURE__ */ h(F, { disabled: o, error: n, ...r?.root, children: [
203
- /* @__PURE__ */ h(
204
- k,
205
- {
206
- sx: {
207
- alignItems: "center",
208
- display: "flex",
209
- gap: "0.25rem"
210
- },
211
- children: [
212
- /* @__PURE__ */ e(
213
- w,
214
- {
215
- htmlFor: d,
216
- required: c,
217
- ...r?.label,
218
- children: s
219
- }
220
- ),
221
- m && /* @__PURE__ */ e(C, { title: m, arrow: !0, children: /* @__PURE__ */ e(
222
- $,
223
- {
224
- sx: ({ vars: y }) => ({
225
- color: y?.palette.text.secondary,
226
- marginBlockEnd: "3px",
227
- height: "1rem",
228
- width: "1rem"
229
- })
230
- }
231
- ) })
232
- ]
233
- }
234
- ),
235
- l && /* @__PURE__ */ e(B, { ...r?.sublabel, children: l }),
236
- /* @__PURE__ */ e(
237
- Q,
238
- {
239
- ref: b,
240
- disabled: o,
241
- error: n,
242
- id: d,
243
- "aria-describedby": t ? i["aria-describedby"] ? `${i["aria-describedby"]} ${t}` : t : i["aria-describedby"],
244
- ...i
245
- }
246
- ),
247
- a && /* @__PURE__ */ e(I, { id: t, ...r?.helperText, children: a })
248
- ] });
249
- }
250
- );
251
- Y.displayName = "InputControl";
252
- const Z = x(
253
- ({
254
- disabled: o,
255
- error: n,
256
- helperText: a,
257
- id: p,
258
- label: s,
259
- required: c,
260
- slotProps: r,
261
- sublabel: l,
262
- tooltip: m,
263
- ...i
264
- }, b) => {
265
- const f = u("select"), d = p || f, t = a ? `${d}-helper` : void 0;
266
- return /* @__PURE__ */ h(F, { disabled: o, error: n, ...r?.root, children: [
267
- /* @__PURE__ */ h(
268
- k,
269
- {
270
- sx: {
271
- alignItems: "center",
272
- display: "flex",
273
- gap: "0.25rem"
274
- },
275
- children: [
276
- /* @__PURE__ */ e(
277
- w,
278
- {
279
- id: `${d}-label`,
280
- htmlFor: d,
281
- required: c,
282
- ...r?.label,
283
- children: s
284
- }
285
- ),
286
- m && /* @__PURE__ */ e(C, { title: m, arrow: !0, children: /* @__PURE__ */ e(
287
- $,
288
- {
289
- sx: ({ vars: y }) => ({
290
- color: y?.palette.text.secondary,
291
- marginBlockEnd: "3px",
292
- height: "1rem",
293
- width: "1rem"
294
- })
295
- }
296
- ) })
297
- ]
298
- }
299
- ),
300
- l && /* @__PURE__ */ e(B, { ...r?.sublabel, children: l }),
301
- /* @__PURE__ */ e(
302
- U,
303
- {
304
- ref: b,
305
- disabled: o,
306
- error: n,
307
- labelId: `${d}-label`,
308
- id: d,
309
- "aria-describedby": t ? i["aria-describedby"] ? `${i["aria-describedby"]} ${t}` : t : i["aria-describedby"],
310
- ...i
311
- }
312
- ),
313
- a && /* @__PURE__ */ e(I, { id: t, ...r?.helperText, children: a })
314
- ] });
315
- }
316
- );
317
- Z.displayName = "SelectControl";
318
- export {
319
- W as A,
320
- X as D,
321
- B as F,
322
- Y as I,
323
- Z as S
324
- };