@clearstory/drywall-react 2.0.0 → 2.2.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.
@@ -6,13 +6,13 @@ import "./icons/ClearstoryIcon.js";
6
6
  import "./icons/InternalOnlyIcon.js";
7
7
  import "./icons/MoneyBucketIcon.js";
8
8
  import "./icons/MoreCircleOutlineIcon.js";
9
- import { C as Ft, A as Ht } from "./Clear-Cp_Sfbwo.js";
9
+ import { A as Ft, C as Ht } from "./Clear-Cp_Sfbwo.js";
10
10
  import { c as zt, j as kt, P as o } from "./createTheme-D79OrE1w.js";
11
11
  import { c as it } from "./clsx-OuTLNxxd.js";
12
- import { A as jt, f as be, o as Ct, i as st } from "./ArrowDropDown-1q6M8Obd.js";
12
+ import { A as jt, f as Ie, o as Ct, i as st } from "./ArrowDropDown-1q6M8Obd.js";
13
13
  import { i as pe } from "./InputBase-B6OIIVG0.js";
14
14
  import { C as Bt } from "./Close-CXMaN7wz.js";
15
- import { m as Ie } from "./memoTheme-DqlI3JW3.js";
15
+ import { m as xe } from "./memoTheme-DqlI3JW3.js";
16
16
  import { g as Ut } from "./generateUtilityClasses-CwzvHfCm.js";
17
17
  import { u as pt } from "./useSlot-BVGwJA4b.js";
18
18
  import { u as Wt } from "./DefaultPropsProvider-PBxTVeaD.js";
@@ -35,7 +35,7 @@ function At({
35
35
  array2: p,
36
36
  parser: g = (f) => f
37
37
  }) {
38
- return n && p && n.length === p.length && n.every((f, T) => g(f) === g(p[T]));
38
+ return n && p && n.length === p.length && n.every((f, w) => g(f) === g(p[w]));
39
39
  }
40
40
  function Tt(n) {
41
41
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
@@ -45,29 +45,29 @@ function Qt(n = {}) {
45
45
  ignoreAccents: p = !0,
46
46
  ignoreCase: g = !0,
47
47
  limit: f,
48
- matchFrom: T = "any",
48
+ matchFrom: w = "any",
49
49
  stringify: V,
50
50
  trim: N = !1
51
51
  } = n;
52
- return (w, {
52
+ return (D, {
53
53
  inputValue: B,
54
54
  getOptionLabel: O
55
55
  }) => {
56
- let S = N ? B.trim() : B;
57
- g && (S = S.toLowerCase()), p && (S = Tt(S));
58
- const ne = S ? w.filter((ve) => {
59
- let D = (V || O)(ve);
60
- return g && (D = D.toLowerCase()), p && (D = Tt(D)), T === "start" ? D.startsWith(S) : D.includes(S);
61
- }) : w;
62
- return typeof f == "number" ? ne.slice(0, f) : ne;
56
+ let T = N ? B.trim() : B;
57
+ g && (T = T.toLowerCase()), p && (T = Tt(T));
58
+ const U = T ? D.filter((ue) => {
59
+ let S = (V || O)(ue);
60
+ return g && (S = S.toLowerCase()), p && (S = Tt(S)), w === "start" ? S.startsWith(T) : S.includes(T);
61
+ }) : D;
62
+ return typeof f == "number" ? U.slice(0, f) : U;
63
63
  };
64
64
  }
65
65
  const Zt = Qt(), wt = 5, eo = (n) => n.current !== null && n.current.parentElement?.contains(document.activeElement), to = [];
66
66
  function St(n, p, g, f) {
67
67
  if (p || n == null || f)
68
68
  return "";
69
- const T = g(n);
70
- return typeof T == "string" ? T : "";
69
+ const w = g(n);
70
+ return typeof w == "string" ? w : "";
71
71
  }
72
72
  function oo(n) {
73
73
  const {
@@ -76,40 +76,40 @@ function oo(n) {
76
76
  // eslint-disable-next-line @typescript-eslint/naming-convention
77
77
  unstable_classNamePrefix: g = "Mui",
78
78
  autoComplete: f = !1,
79
- autoHighlight: T = !1,
79
+ autoHighlight: w = !1,
80
80
  autoSelect: V = !1,
81
81
  blurOnSelect: N = !1,
82
- clearOnBlur: w = !n.freeSolo,
82
+ clearOnBlur: D = !n.freeSolo,
83
83
  clearOnEscape: B = !1,
84
84
  componentName: O = "useAutocomplete",
85
- defaultValue: S = n.multiple ? to : null,
86
- disableClearable: ne = !1,
87
- disableCloseOnSelect: ve = !1,
88
- disabled: D,
85
+ defaultValue: T = n.multiple ? to : null,
86
+ disableClearable: U = !1,
87
+ disableCloseOnSelect: ue = !1,
88
+ disabled: S,
89
89
  disabledItemsFocusable: Le = !1,
90
90
  disableListWrap: ke = !1,
91
91
  filterOptions: ct = Zt,
92
92
  filterSelectedOptions: De = !1,
93
- freeSolo: ue = !1,
94
- getOptionDisabled: U,
93
+ freeSolo: ce = !1,
94
+ getOptionDisabled: W,
95
95
  getOptionKey: dt,
96
96
  getOptionLabel: Ke = (t) => t.label ?? t,
97
97
  groupBy: re,
98
98
  handleHomeEndKeys: qe = !n.freeSolo,
99
99
  id: ft,
100
- includeInputInList: xe = !1,
100
+ includeInputInList: ye = !1,
101
101
  inputValue: Re,
102
- isOptionEqualToValue: X = (t, e) => t === e,
102
+ isOptionEqualToValue: Y = (t, e) => t === e,
103
103
  multiple: u = !1,
104
104
  onChange: _e,
105
105
  onClose: Je,
106
106
  onHighlightChange: Ee,
107
- onInputChange: Y,
107
+ onInputChange: Q,
108
108
  onOpen: Ne,
109
109
  open: gt,
110
110
  openOnFocus: mt = !1,
111
111
  options: ht,
112
- readOnly: W = !1,
112
+ readOnly: G = !1,
113
113
  renderValue: v,
114
114
  selectOnFocus: Xe = !n.freeSolo,
115
115
  value: Me
@@ -126,27 +126,27 @@ function oo(n) {
126
126
  }
127
127
  return e;
128
128
  };
129
- const ye = y.useRef(!1), Oe = y.useRef(!0), b = y.useRef(null), M = y.useRef(null), [Pe, bt] = y.useState(null), [E, Ve] = y.useState(-1), Ye = T ? 0 : -1, A = y.useRef(Ye), It = y.useRef(St(S ?? Me, u, P)).current, [i, Ce] = ut({
129
+ const Oe = y.useRef(!1), Pe = y.useRef(!0), b = y.useRef(null), M = y.useRef(null), [Ce, bt] = y.useState(null), [E, Ve] = y.useState(-1), Ye = w ? 0 : -1, A = y.useRef(Ye), It = y.useRef(St(T ?? Me, u, P)).current, [i, $e] = ut({
130
130
  controlled: Me,
131
- default: S,
131
+ default: T,
132
132
  name: O
133
133
  }), [d, ae] = ut({
134
134
  controlled: Re,
135
135
  default: It,
136
136
  name: O,
137
137
  state: "inputValue"
138
- }), [ce, Fe] = y.useState(!1), de = y.useCallback((t, e, r) => {
139
- if (!(u ? i.length < e.length : e !== null) && !w)
138
+ }), [de, Fe] = y.useState(!1), fe = y.useCallback((t, e, r) => {
139
+ if (!(u ? i.length < e.length : e !== null) && !D)
140
140
  return;
141
141
  const l = St(e, u, P, v);
142
- d !== l && (ae(l), Y && Y(t, l, r));
143
- }, [P, d, u, Y, ae, w, i, v]), [G, le] = ut({
142
+ d !== l && (ae(l), Q && Q(t, l, r));
143
+ }, [P, d, u, Q, ae, D, i, v]), [K, le] = ut({
144
144
  controlled: gt,
145
145
  default: !1,
146
146
  name: O,
147
147
  state: "open"
148
- }), [xt, fe] = y.useState(!0), He = !u && i != null && d === P(i), L = G && !W, m = L ? ct(
149
- ht.filter((t) => !(De && (u ? i : [i]).some((e) => e !== null && X(t, e)))),
148
+ }), [xt, ge] = y.useState(!0), He = !u && i != null && d === P(i), L = K && !G, m = L ? ct(
149
+ ht.filter((t) => !(De && (u ? i : [i]).some((e) => e !== null && Y(t, e)))),
150
150
  // we use the empty string to manipulate `filterOptions` to not filter any options
151
151
  // i.e. the filter predicate always returns true
152
152
  {
@@ -160,14 +160,14 @@ function oo(n) {
160
160
  });
161
161
  y.useEffect(() => {
162
162
  const t = i !== F.value;
163
- ce && !t || ue && !t || de(null, i, "reset");
164
- }, [i, de, ce, F.value, ue]);
165
- const ze = G && m.length > 0 && !W, H = Ge((t) => {
163
+ de && !t || ce && !t || fe(null, i, "reset");
164
+ }, [i, fe, de, F.value, ce]);
165
+ const ze = K && m.length > 0 && !G, H = Ge((t) => {
166
166
  if (t === -1)
167
167
  b.current.focus();
168
168
  else {
169
169
  const e = v ? "data-item-index" : "data-tag-index";
170
- Pe.querySelector(`[${e}="${t}"]`).focus();
170
+ Ce.querySelector(`[${e}="${t}"]`).focus();
171
171
  }
172
172
  });
173
173
  y.useEffect(() => {
@@ -185,7 +185,7 @@ function oo(n) {
185
185
  return -1;
186
186
  }
187
187
  }
188
- const K = Ge(({
188
+ const q = Ge(({
189
189
  event: t,
190
190
  index: e,
191
191
  reason: r
@@ -203,8 +203,8 @@ function oo(n) {
203
203
  }
204
204
  const h = M.current.querySelector(`[data-option-index="${e}"]`);
205
205
  if (h && (h.classList.add(`${g}-focused`), r === "keyboard" && h.classList.add(`${g}-focusVisible`), l.scrollHeight > l.clientHeight && r !== "mouse" && r !== "touch")) {
206
- const I = h, k = l.clientHeight + l.scrollTop, he = I.offsetTop + I.offsetHeight;
207
- he > k ? l.scrollTop = he - l.clientHeight : I.offsetTop - I.offsetHeight * (re ? 1.3 : 0) < l.scrollTop && (l.scrollTop = I.offsetTop - I.offsetHeight * (re ? 1.3 : 0));
206
+ const I = h, k = l.clientHeight + l.scrollTop, be = I.offsetTop + I.offsetHeight;
207
+ be > k ? l.scrollTop = be - l.clientHeight : I.offsetTop - I.offsetHeight * (re ? 1.3 : 0) < l.scrollTop && (l.scrollTop = I.offsetTop - I.offsetHeight * (re ? 1.3 : 0));
208
208
  }
209
209
  }), z = Ge(({
210
210
  event: t,
@@ -223,9 +223,9 @@ function oo(n) {
223
223
  if (e === "end")
224
224
  return I;
225
225
  const k = A.current + e;
226
- return k < 0 ? k === -1 && xe ? -1 : ke && A.current !== -1 || Math.abs(e) > 1 ? 0 : I : k > I ? k === I + 1 && xe ? -1 : ke || Math.abs(e) > 1 ? I : 0 : k;
226
+ return k < 0 ? k === -1 && ye ? -1 : ke && A.current !== -1 || Math.abs(e) > 1 ? 0 : I : k > I ? k === I + 1 && ye ? -1 : ke || Math.abs(e) > 1 ? I : 0 : k;
227
227
  })(), r);
228
- if (K({
228
+ if (q({
229
229
  index: h,
230
230
  reason: a,
231
231
  event: t
@@ -255,7 +255,7 @@ function oo(n) {
255
255
  return m.findIndex((r) => P(r) === P(e));
256
256
  }
257
257
  return -1;
258
- }, $e = y.useCallback(() => {
258
+ }, Ae = y.useCallback(() => {
259
259
  if (!L)
260
260
  return;
261
261
  const t = Ze();
@@ -273,23 +273,23 @@ function oo(n) {
273
273
  if (M.current) {
274
274
  if (e != null) {
275
275
  const r = m[A.current];
276
- if (u && r && i.findIndex((l) => X(r, l)) !== -1)
276
+ if (u && r && i.findIndex((l) => Y(r, l)) !== -1)
277
277
  return;
278
- const a = m.findIndex((l) => X(l, e));
278
+ const a = m.findIndex((l) => Y(l, e));
279
279
  a === -1 ? z({
280
280
  diff: "reset"
281
- }) : K({
281
+ }) : q({
282
282
  index: a
283
283
  });
284
284
  return;
285
285
  }
286
286
  if (A.current >= m.length - 1) {
287
- K({
287
+ q({
288
288
  index: m.length - 1
289
289
  });
290
290
  return;
291
291
  }
292
- K({
292
+ q({
293
293
  index: A.current
294
294
  });
295
295
  }
@@ -301,45 +301,45 @@ function oo(n) {
301
301
  u ? !1 : i,
302
302
  De,
303
303
  z,
304
- K,
304
+ q,
305
305
  L,
306
306
  d,
307
307
  u
308
- ]), Q = Ge((t) => {
309
- qt(M, t), t && $e();
308
+ ]), Z = Ge((t) => {
309
+ qt(M, t), t && Ae();
310
310
  });
311
311
  process.env.NODE_ENV !== "production" && y.useEffect(() => {
312
312
  (!b.current || b.current.nodeName !== "INPUT") && (b.current && b.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${O} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
313
313
  `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${b.current} while an HTMLInputElement was expected.`, `Instead, ${O} expects an input element.`, "", O === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
314
314
  `)));
315
315
  }, [O]), y.useEffect(() => {
316
- je && $e();
317
- }, [$e, je]);
318
- const q = (t) => {
319
- G || (le(!0), fe(!0), Ne && Ne(t));
316
+ je && Ae();
317
+ }, [Ae, je]);
318
+ const _ = (t) => {
319
+ K || (le(!0), ge(!0), Ne && Ne(t));
320
320
  }, ie = (t, e) => {
321
- G && (le(!1), Je && Je(t, e));
322
- }, _ = (t, e, r, a) => {
321
+ K && (le(!1), Je && Je(t, e));
322
+ }, J = (t, e, r, a) => {
323
323
  if (u) {
324
324
  if (i.length === e.length && i.every((l, h) => l === e[h]))
325
325
  return;
326
326
  } else if (i === e)
327
327
  return;
328
- _e && _e(t, e, r, a), Ce(e);
329
- }, J = y.useRef(!1), Z = (t, e, r = "selectOption", a = "options") => {
328
+ _e && _e(t, e, r, a), $e(e);
329
+ }, X = y.useRef(!1), ee = (t, e, r = "selectOption", a = "options") => {
330
330
  let l = r, h = e;
331
331
  if (u) {
332
332
  if (h = Array.isArray(i) ? i.slice() : [], process.env.NODE_ENV !== "production") {
333
- const k = h.filter((he) => X(e, he));
333
+ const k = h.filter((be) => Y(e, be));
334
334
  k.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${O} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${k.length} matches.`].join(`
335
335
  `));
336
336
  }
337
- const I = h.findIndex((k) => X(e, k));
337
+ const I = h.findIndex((k) => Y(e, k));
338
338
  I === -1 ? h.push(e) : a !== "freeSolo" && (h.splice(I, 1), l = "removeOption");
339
339
  }
340
- de(t, h, l), _(t, h, l, {
340
+ fe(t, h, l), J(t, h, l, {
341
341
  option: e
342
- }), !ve && (!t || !t.ctrlKey && !t.metaKey) && ie(t, l), (N === !0 || N === "touch" && J.current || N === "mouse" && !J.current) && b.current.blur();
342
+ }), !ue && (!t || !t.ctrlKey && !t.metaKey) && ie(t, l), (N === !0 || N === "touch" && X.current || N === "mouse" && !X.current) && b.current.blur();
343
343
  };
344
344
  function et(t, e) {
345
345
  if (t === -1)
@@ -348,7 +348,7 @@ function oo(n) {
348
348
  for (; ; ) {
349
349
  if (e === "next" && r === i.length || e === "previous" && r === -1)
350
350
  return -1;
351
- const a = v ? "data-item-index" : "data-tag-index", l = Pe.querySelector(`[${a}="${r}"]`);
351
+ const a = v ? "data-item-index" : "data-tag-index", l = Ce.querySelector(`[${a}="${r}"]`);
352
352
  if (!l || !l.hasAttribute("tabindex") || l.disabled || l.getAttribute("aria-disabled") === "true")
353
353
  r += e === "next" ? 1 : -1;
354
354
  else
@@ -362,7 +362,7 @@ function oo(n) {
362
362
  let r = E;
363
363
  E === -1 ? d === "" && e === "previous" && (r = i.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === i.length && (r = -1)), r = et(r, e), Ve(r), H(r);
364
364
  }, Be = (t) => {
365
- ye.current = !0, ae(""), Y && Y(t, "", "clear"), _(t, u ? [] : null, "clear");
365
+ Oe.current = !0, ae(""), Q && Q(t, "", "clear"), J(t, u ? [] : null, "clear");
366
366
  }, tt = (t) => (e) => {
367
367
  if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (E !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), H(-1)), e.which !== 229))
368
368
  switch (e.key) {
@@ -388,7 +388,7 @@ function oo(n) {
388
388
  direction: "previous",
389
389
  reason: "keyboard",
390
390
  event: e
391
- }), q(e);
391
+ }), _(e);
392
392
  break;
393
393
  case "PageDown":
394
394
  e.preventDefault(), z({
@@ -396,7 +396,7 @@ function oo(n) {
396
396
  direction: "next",
397
397
  reason: "keyboard",
398
398
  event: e
399
- }), q(e);
399
+ }), _(e);
400
400
  break;
401
401
  case "ArrowDown":
402
402
  e.preventDefault(), z({
@@ -404,7 +404,7 @@ function oo(n) {
404
404
  direction: "next",
405
405
  reason: "keyboard",
406
406
  event: e
407
- }), q(e);
407
+ }), _(e);
408
408
  break;
409
409
  case "ArrowUp":
410
410
  e.preventDefault(), z({
@@ -412,7 +412,7 @@ function oo(n) {
412
412
  direction: "previous",
413
413
  reason: "keyboard",
414
414
  event: e
415
- }), q(e);
415
+ }), _(e);
416
416
  break;
417
417
  case "ArrowLeft":
418
418
  !u && v ? H(0) : se(e, "previous");
@@ -422,81 +422,81 @@ function oo(n) {
422
422
  break;
423
423
  case "Enter":
424
424
  if (A.current !== -1 && L) {
425
- const r = m[A.current], a = U ? U(r) : !1;
425
+ const r = m[A.current], a = W ? W(r) : !1;
426
426
  if (e.preventDefault(), a)
427
427
  return;
428
- Z(e, r, "selectOption"), f && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
429
- } else ue && d !== "" && He === !1 && (u && e.preventDefault(), Z(e, d, "createOption", "freeSolo"));
428
+ ee(e, r, "selectOption"), f && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
429
+ } else ce && d !== "" && He === !1 && (u && e.preventDefault(), ee(e, d, "createOption", "freeSolo"));
430
430
  break;
431
431
  case "Escape":
432
432
  L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : B && (d !== "" || u && i.length > 0 || v) && (e.preventDefault(), e.stopPropagation(), Be(e));
433
433
  break;
434
434
  case "Backspace":
435
- if (u && !W && d === "" && i.length > 0) {
435
+ if (u && !G && d === "" && i.length > 0) {
436
436
  const r = E === -1 ? i.length - 1 : E, a = i.slice();
437
- a.splice(r, 1), _(e, a, "removeOption", {
437
+ a.splice(r, 1), J(e, a, "removeOption", {
438
438
  option: i[r]
439
439
  });
440
440
  }
441
- !u && v && !W && (Ce(null), H(-1));
441
+ !u && v && !G && ($e(null), H(-1));
442
442
  break;
443
443
  case "Delete":
444
- if (u && !W && d === "" && i.length > 0 && E !== -1) {
444
+ if (u && !G && d === "" && i.length > 0 && E !== -1) {
445
445
  const r = E, a = i.slice();
446
- a.splice(r, 1), _(e, a, "removeOption", {
446
+ a.splice(r, 1), J(e, a, "removeOption", {
447
447
  option: i[r]
448
448
  });
449
449
  }
450
- !u && v && !W && (Ce(null), H(-1));
450
+ !u && v && !G && ($e(null), H(-1));
451
451
  break;
452
452
  }
453
- }, ge = (t) => {
454
- Fe(!0), mt && !ye.current && q(t);
455
453
  }, me = (t) => {
454
+ Fe(!0), mt && !Oe.current && _(t);
455
+ }, he = (t) => {
456
456
  if (p(M)) {
457
457
  b.current.focus();
458
458
  return;
459
459
  }
460
- Fe(!1), Oe.current = !0, ye.current = !1, V && A.current !== -1 && L ? Z(t, m[A.current], "blur") : V && ue && d !== "" ? Z(t, d, "blur", "freeSolo") : w && de(t, i, "blur"), ie(t, "blur");
461
- }, Ae = (t) => {
460
+ Fe(!1), Pe.current = !0, Oe.current = !1, V && A.current !== -1 && L ? ee(t, m[A.current], "blur") : V && ce && d !== "" ? ee(t, d, "blur", "freeSolo") : D && fe(t, i, "blur"), ie(t, "blur");
461
+ }, Te = (t) => {
462
462
  const e = t.target.value;
463
- d !== e && (ae(e), fe(!1), Y && Y(t, e, "input")), e === "" ? !ne && !u && _(t, null, "clear") : q(t);
463
+ d !== e && (ae(e), ge(!1), Q && Q(t, e, "input")), e === "" ? !U && !u && J(t, null, "clear") : _(t);
464
464
  }, ot = (t) => {
465
465
  const e = Number(t.currentTarget.getAttribute("data-option-index"));
466
- A.current !== e && K({
466
+ A.current !== e && q({
467
467
  event: t,
468
468
  index: e,
469
469
  reason: "mouse"
470
470
  });
471
471
  }, nt = (t) => {
472
- K({
472
+ q({
473
473
  event: t,
474
474
  index: Number(t.currentTarget.getAttribute("data-option-index")),
475
475
  reason: "touch"
476
- }), J.current = !0;
476
+ }), X.current = !0;
477
477
  }, rt = (t) => {
478
478
  const e = Number(t.currentTarget.getAttribute("data-option-index"));
479
- Z(t, m[e], "selectOption"), J.current = !1;
479
+ ee(t, m[e], "selectOption"), X.current = !1;
480
480
  }, at = (t) => (e) => {
481
481
  const r = i.slice();
482
- r.splice(t, 1), _(e, r, "removeOption", {
482
+ r.splice(t, 1), J(e, r, "removeOption", {
483
483
  option: i[t]
484
484
  });
485
- }, Te = (t) => {
486
- _(t, null, "removeOption", {
485
+ }, we = (t) => {
486
+ J(t, null, "removeOption", {
487
487
  option: i
488
488
  });
489
489
  }, x = (t) => {
490
- G ? ie(t, "toggleInput") : q(t);
490
+ K ? ie(t, "toggleInput") : _(t);
491
491
  }, C = (t) => {
492
492
  t.currentTarget.contains(t.target) && t.target.getAttribute("id") !== R && t.preventDefault();
493
- }, ee = (t) => {
494
- t.currentTarget.contains(t.target) && (b.current.focus(), Xe && Oe.current && b.current.selectionEnd - b.current.selectionStart === 0 && b.current.select(), Oe.current = !1);
493
+ }, te = (t) => {
494
+ t.currentTarget.contains(t.target) && (b.current.focus(), Xe && Pe.current && b.current.selectionEnd - b.current.selectionStart === 0 && b.current.select(), Pe.current = !1);
495
495
  }, lt = (t) => {
496
- !D && (d === "" || !G) && x(t);
496
+ !S && (d === "" || !K) && x(t);
497
497
  };
498
- let we = ue && d.length > 0;
499
- we = we || (u ? i.length > 0 : i !== null);
498
+ let Se = ce && d.length > 0;
499
+ Se = Se || (u ? i.length > 0 : i !== null);
500
500
  let Ue = m;
501
501
  if (re) {
502
502
  const t = /* @__PURE__ */ new Map();
@@ -511,12 +511,12 @@ function oo(n) {
511
511
  })), r;
512
512
  }, []);
513
513
  }
514
- return D && ce && me(), {
514
+ return S && de && he(), {
515
515
  getRootProps: (t = {}) => ({
516
516
  ...t,
517
517
  onKeyDown: tt(t),
518
518
  onMouseDown: C,
519
- onClick: ee
519
+ onClick: te
520
520
  }),
521
521
  getInputLabelProps: () => ({
522
522
  id: `${R}-label`,
@@ -525,9 +525,9 @@ function oo(n) {
525
525
  getInputProps: () => ({
526
526
  id: R,
527
527
  value: d,
528
- onBlur: me,
529
- onFocus: ge,
530
- onChange: Ae,
528
+ onBlur: he,
529
+ onFocus: me,
530
+ onChange: Te,
531
531
  onMouseDown: lt,
532
532
  // if open then this is handled imperatively so don't let react override
533
533
  // only have an opinion about this when closed
@@ -542,7 +542,7 @@ function oo(n) {
542
542
  autoCapitalize: "none",
543
543
  spellCheck: "false",
544
544
  role: "combobox",
545
- disabled: D
545
+ disabled: S
546
546
  }),
547
547
  getClearProps: () => ({
548
548
  tabIndex: -1,
@@ -561,8 +561,8 @@ function oo(n) {
561
561
  "data-tag-index": t
562
562
  },
563
563
  tabIndex: -1,
564
- ...!W && {
565
- onDelete: u ? at(t) : Te
564
+ ...!G && {
565
+ onDelete: u ? at(t) : we
566
566
  }
567
567
  }),
568
568
  getPopupIndicatorProps: () => ({
@@ -577,7 +577,7 @@ function oo(n) {
577
577
  key: t,
578
578
  "data-tag-index": t,
579
579
  tabIndex: -1,
580
- ...!W && {
580
+ ...!G && {
581
581
  onDelete: at(t)
582
582
  }
583
583
  }),
@@ -585,7 +585,7 @@ function oo(n) {
585
585
  role: "listbox",
586
586
  id: `${R}-listbox`,
587
587
  "aria-labelledby": `${R}-label`,
588
- ref: Q,
588
+ ref: Z,
589
589
  onMouseDown: (t) => {
590
590
  t.preventDefault();
591
591
  }
@@ -594,7 +594,7 @@ function oo(n) {
594
594
  index: t,
595
595
  option: e
596
596
  }) => {
597
- const r = (u ? i : [i]).some((l) => l != null && X(e, l)), a = U ? U(e) : !1;
597
+ const r = (u ? i : [i]).some((l) => l != null && Y(e, l)), a = W ? W(e) : !1;
598
598
  return {
599
599
  key: dt?.(e) ?? P(e),
600
600
  tabIndex: -1,
@@ -611,11 +611,11 @@ function oo(n) {
611
611
  id: R,
612
612
  inputValue: d,
613
613
  value: i,
614
- dirty: we,
615
- expanded: L && Pe,
614
+ dirty: Se,
615
+ expanded: L && Ce,
616
616
  popupOpen: L,
617
- focused: ce || E !== -1,
618
- anchorEl: Pe,
617
+ focused: de || E !== -1,
618
+ anchorEl: Ce,
619
619
  setAnchorEl: bt,
620
620
  focusedItem: E,
621
621
  // deprecated
@@ -633,18 +633,18 @@ const ro = (n) => {
633
633
  classes: p,
634
634
  disablePortal: g,
635
635
  expanded: f,
636
- focused: T,
636
+ focused: w,
637
637
  fullWidth: V,
638
638
  hasClearIcon: N,
639
- hasPopupIcon: w,
639
+ hasPopupIcon: D,
640
640
  inputFocused: B,
641
641
  popupOpen: O,
642
- size: S
643
- } = n, ne = {
644
- root: ["root", f && "expanded", T && "focused", V && "fullWidth", N && "hasClearIcon", w && "hasPopupIcon"],
642
+ size: T
643
+ } = n, U = {
644
+ root: ["root", f && "expanded", w && "focused", V && "fullWidth", N && "hasClearIcon", D && "hasPopupIcon"],
645
645
  inputRoot: ["inputRoot"],
646
646
  input: ["input", B && "inputFocused"],
647
- tag: ["tag", `tagSize${kt(S)}`],
647
+ tag: ["tag", `tagSize${kt(T)}`],
648
648
  endAdornment: ["endAdornment"],
649
649
  clearIndicator: ["clearIndicator"],
650
650
  popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
@@ -657,7 +657,7 @@ const ro = (n) => {
657
657
  groupLabel: ["groupLabel"],
658
658
  groupUl: ["groupUl"]
659
659
  };
660
- return Jt(ne, no, p);
660
+ return Jt(U, no, p);
661
661
  }, ao = j("div", {
662
662
  name: "MuiAutocomplete",
663
663
  slot: "Root",
@@ -666,22 +666,22 @@ const ro = (n) => {
666
666
  ownerState: g
667
667
  } = n, {
668
668
  fullWidth: f,
669
- hasClearIcon: T,
669
+ hasClearIcon: w,
670
670
  hasPopupIcon: V,
671
671
  inputFocused: N,
672
- size: w
672
+ size: D
673
673
  } = g;
674
674
  return [{
675
675
  [`& .${s.tag}`]: p.tag
676
676
  }, {
677
- [`& .${s.tag}`]: p[`tagSize${kt(w)}`]
677
+ [`& .${s.tag}`]: p[`tagSize${kt(D)}`]
678
678
  }, {
679
679
  [`& .${s.inputRoot}`]: p.inputRoot
680
680
  }, {
681
681
  [`& .${s.input}`]: p.input
682
682
  }, {
683
683
  [`& .${s.input}`]: N && p.inputFocused
684
- }, p.root, f && p.fullWidth, V && p.hasPopupIcon, T && p.hasClearIcon];
684
+ }, p.root, f && p.fullWidth, V && p.hasPopupIcon, w && p.hasClearIcon];
685
685
  }
686
686
  })({
687
687
  [`&.${s.focused} .${s.clearIndicator}`]: {
@@ -745,7 +745,7 @@ const ro = (n) => {
745
745
  padding: "2.5px 4px 2.5px 8px"
746
746
  }
747
747
  },
748
- [`& .${be.root}`]: {
748
+ [`& .${Ie.root}`]: {
749
749
  paddingTop: 19,
750
750
  paddingLeft: 8,
751
751
  [`.${s.hasPopupIcon}&, .${s.hasClearIcon}&`]: {
@@ -754,23 +754,23 @@ const ro = (n) => {
754
754
  [`.${s.hasPopupIcon}.${s.hasClearIcon}&`]: {
755
755
  paddingRight: 65
756
756
  },
757
- [`& .${be.input}`]: {
757
+ [`& .${Ie.input}`]: {
758
758
  padding: "7px 4px"
759
759
  },
760
760
  [`& .${s.endAdornment}`]: {
761
761
  right: 9
762
762
  }
763
763
  },
764
- [`& .${be.root}.${pe.sizeSmall}`]: {
764
+ [`& .${Ie.root}.${pe.sizeSmall}`]: {
765
765
  paddingBottom: 1,
766
- [`& .${be.input}`]: {
766
+ [`& .${Ie.input}`]: {
767
767
  padding: "2.5px 4px"
768
768
  }
769
769
  },
770
770
  [`& .${pe.hiddenLabel}`]: {
771
771
  paddingTop: 8
772
772
  },
773
- [`& .${be.root}.${pe.hiddenLabel}`]: {
773
+ [`& .${Ie.root}.${pe.hiddenLabel}`]: {
774
774
  paddingTop: 0,
775
775
  paddingBottom: 0,
776
776
  [`& .${s.input}`]: {
@@ -778,7 +778,7 @@ const ro = (n) => {
778
778
  paddingBottom: 17
779
779
  }
780
780
  },
781
- [`& .${be.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
781
+ [`& .${Ie.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
782
782
  [`& .${s.input}`]: {
783
783
  paddingTop: 8,
784
784
  paddingBottom: 9
@@ -872,7 +872,7 @@ const ro = (n) => {
872
872
  [`& .${s.option}`]: p.option
873
873
  }, p.popper, g.disablePortal && p.popperDisablePortal];
874
874
  }
875
- })(Ie(({
875
+ })(xe(({
876
876
  theme: n
877
877
  }) => ({
878
878
  zIndex: (n.vars || n).zIndex.modal,
@@ -887,7 +887,7 @@ const ro = (n) => {
887
887
  }))), uo = j(Dt, {
888
888
  name: "MuiAutocomplete",
889
889
  slot: "Paper"
890
- })(Ie(({
890
+ })(xe(({
891
891
  theme: n
892
892
  }) => ({
893
893
  ...n.typography.body1,
@@ -895,7 +895,7 @@ const ro = (n) => {
895
895
  }))), co = j("div", {
896
896
  name: "MuiAutocomplete",
897
897
  slot: "Loading"
898
- })(Ie(({
898
+ })(xe(({
899
899
  theme: n
900
900
  }) => ({
901
901
  color: (n.vars || n).palette.text.secondary,
@@ -903,7 +903,7 @@ const ro = (n) => {
903
903
  }))), fo = j("div", {
904
904
  name: "MuiAutocomplete",
905
905
  slot: "NoOptions"
906
- })(Ie(({
906
+ })(xe(({
907
907
  theme: n
908
908
  }) => ({
909
909
  color: (n.vars || n).palette.text.secondary,
@@ -911,7 +911,7 @@ const ro = (n) => {
911
911
  }))), go = j("ul", {
912
912
  name: "MuiAutocomplete",
913
913
  slot: "Listbox"
914
- })(Ie(({
914
+ })(xe(({
915
915
  theme: n
916
916
  }) => ({
917
917
  listStyle: "none",
@@ -968,7 +968,7 @@ const ro = (n) => {
968
968
  }))), mo = j(Xt, {
969
969
  name: "MuiAutocomplete",
970
970
  slot: "GroupLabel"
971
- })(Ie(({
971
+ })(xe(({
972
972
  theme: n
973
973
  }) => ({
974
974
  backgroundColor: (n.vars || n).palette.background.paper,
@@ -986,52 +986,52 @@ const ro = (n) => {
986
986
  props: p,
987
987
  name: "MuiAutocomplete"
988
988
  }), {
989
- autoComplete: T = !1,
989
+ autoComplete: w = !1,
990
990
  autoHighlight: V = !1,
991
991
  autoSelect: N = !1,
992
- blurOnSelect: w = !1,
992
+ blurOnSelect: D = !1,
993
993
  ChipProps: B,
994
994
  className: O,
995
- clearIcon: S = vt || (vt = /* @__PURE__ */ $(Bt, {
995
+ clearIcon: T = vt || (vt = /* @__PURE__ */ $(Bt, {
996
996
  fontSize: "small"
997
997
  })),
998
- clearOnBlur: ne = !f.freeSolo,
999
- clearOnEscape: ve = !1,
1000
- clearText: D = "Clear",
998
+ clearOnBlur: U = !f.freeSolo,
999
+ clearOnEscape: ue = !1,
1000
+ clearText: S = "Clear",
1001
1001
  closeText: Le = "Close",
1002
1002
  componentsProps: ke,
1003
1003
  defaultValue: ct = f.multiple ? [] : null,
1004
1004
  disableClearable: De = !1,
1005
- disableCloseOnSelect: ue = !1,
1006
- disabled: U = !1,
1005
+ disableCloseOnSelect: ce = !1,
1006
+ disabled: W = !1,
1007
1007
  disabledItemsFocusable: dt = !1,
1008
1008
  disableListWrap: Ke = !1,
1009
1009
  disablePortal: re = !1,
1010
1010
  filterOptions: qe,
1011
1011
  filterSelectedOptions: ft = !1,
1012
- forcePopupIcon: xe = "auto",
1012
+ forcePopupIcon: ye = "auto",
1013
1013
  freeSolo: Re = !1,
1014
- fullWidth: X = !1,
1014
+ fullWidth: Y = !1,
1015
1015
  getLimitTagsText: u = (c) => `+${c}`,
1016
1016
  getOptionDisabled: _e,
1017
1017
  getOptionKey: Je,
1018
1018
  getOptionLabel: Ee,
1019
- isOptionEqualToValue: Y,
1019
+ isOptionEqualToValue: Q,
1020
1020
  groupBy: Ne,
1021
1021
  handleHomeEndKeys: gt = !f.freeSolo,
1022
1022
  id: mt,
1023
1023
  includeInputInList: ht = !1,
1024
- inputValue: W,
1024
+ inputValue: G,
1025
1025
  limitTags: v = -1,
1026
1026
  ListboxComponent: Xe,
1027
1027
  ListboxProps: Me,
1028
1028
  loading: R = !1,
1029
1029
  loadingText: P = "Loading…",
1030
- multiple: ye = !1,
1031
- noOptionsText: Oe = "No options",
1030
+ multiple: Oe = !1,
1031
+ noOptionsText: Pe = "No options",
1032
1032
  onChange: b,
1033
1033
  onClose: M,
1034
- onHighlightChange: Pe,
1034
+ onHighlightChange: Ce,
1035
1035
  onInputChange: bt,
1036
1036
  onOpen: E,
1037
1037
  open: Ve,
@@ -1039,16 +1039,16 @@ const ro = (n) => {
1039
1039
  openText: A = "Open",
1040
1040
  options: It,
1041
1041
  PaperComponent: i,
1042
- PopperComponent: Ce,
1042
+ PopperComponent: $e,
1043
1043
  popupIcon: d = Lt || (Lt = /* @__PURE__ */ $(jt, {})),
1044
1044
  readOnly: ae = !1,
1045
- renderGroup: ce,
1045
+ renderGroup: de,
1046
1046
  renderInput: Fe,
1047
- renderOption: de,
1048
- renderTags: G,
1047
+ renderOption: fe,
1048
+ renderTags: K,
1049
1049
  renderValue: le,
1050
1050
  selectOnFocus: xt = !f.freeSolo,
1051
- size: fe = "medium",
1051
+ size: ge = "medium",
1052
1052
  slots: He = {},
1053
1053
  slotProps: L = {},
1054
1054
  value: m,
@@ -1057,46 +1057,46 @@ const ro = (n) => {
1057
1057
  getRootProps: ze,
1058
1058
  getInputProps: H,
1059
1059
  getInputLabelProps: Qe,
1060
- getPopupIndicatorProps: K,
1060
+ getPopupIndicatorProps: q,
1061
1061
  getClearProps: z,
1062
1062
  getItemProps: je,
1063
1063
  getListboxProps: Ze,
1064
- getOptionProps: $e,
1065
- value: Q,
1066
- dirty: q,
1064
+ getOptionProps: Ae,
1065
+ value: Z,
1066
+ dirty: _,
1067
1067
  expanded: ie,
1068
- id: _,
1069
- popupOpen: J,
1070
- focused: Z,
1068
+ id: J,
1069
+ popupOpen: X,
1070
+ focused: ee,
1071
1071
  focusedItem: et,
1072
1072
  anchorEl: se,
1073
1073
  setAnchorEl: Be,
1074
1074
  inputValue: tt,
1075
- groupedOptions: ge
1075
+ groupedOptions: me
1076
1076
  } = oo({
1077
1077
  ...f,
1078
1078
  componentName: "Autocomplete"
1079
- }), me = !De && !U && q && !ae, Ae = (!Re || xe === !0) && xe !== !1, {
1079
+ }), he = !De && !W && _ && !ae, Te = (!Re || ye === !0) && ye !== !1, {
1080
1080
  onMouseDown: ot
1081
1081
  } = H(), {
1082
1082
  ref: nt,
1083
1083
  ...rt
1084
- } = Ze(), Te = Ee || ((c) => c.label ?? c), x = {
1084
+ } = Ze(), we = Ee || ((c) => c.label ?? c), x = {
1085
1085
  ...f,
1086
1086
  disablePortal: re,
1087
1087
  expanded: ie,
1088
- focused: Z,
1089
- fullWidth: X,
1090
- getOptionLabel: Te,
1091
- hasClearIcon: me,
1092
- hasPopupIcon: Ae,
1088
+ focused: ee,
1089
+ fullWidth: Y,
1090
+ getOptionLabel: we,
1091
+ hasClearIcon: he,
1092
+ hasPopupIcon: Te,
1093
1093
  inputFocused: et === -1,
1094
- popupOpen: J,
1095
- size: fe
1096
- }, C = ro(x), ee = {
1094
+ popupOpen: X,
1095
+ size: ge
1096
+ }, C = ro(x), te = {
1097
1097
  slots: {
1098
1098
  paper: i,
1099
- popper: Ce,
1099
+ popper: $e,
1100
1100
  ...He
1101
1101
  },
1102
1102
  slotProps: {
@@ -1105,21 +1105,21 @@ const ro = (n) => {
1105
1105
  ...ke,
1106
1106
  ...L
1107
1107
  }
1108
- }, [lt, we] = pt("listbox", {
1108
+ }, [lt, Se] = pt("listbox", {
1109
1109
  elementType: go,
1110
- externalForwardedProps: ee,
1110
+ externalForwardedProps: te,
1111
1111
  ownerState: x,
1112
1112
  className: C.listbox,
1113
1113
  additionalProps: rt,
1114
1114
  ref: nt
1115
1115
  }), [Ue, t] = pt("paper", {
1116
1116
  elementType: Dt,
1117
- externalForwardedProps: ee,
1117
+ externalForwardedProps: te,
1118
1118
  ownerState: x,
1119
1119
  className: C.paper
1120
1120
  }), [e, r] = pt("popper", {
1121
1121
  elementType: Rt,
1122
- externalForwardedProps: ee,
1122
+ externalForwardedProps: te,
1123
1123
  ownerState: x,
1124
1124
  className: C.popper,
1125
1125
  additionalProps: {
@@ -1129,36 +1129,36 @@ const ro = (n) => {
1129
1129
  },
1130
1130
  role: "presentation",
1131
1131
  anchorEl: se,
1132
- open: J
1132
+ open: X
1133
1133
  }
1134
1134
  });
1135
1135
  let a;
1136
1136
  const l = (c) => ({
1137
1137
  className: C.tag,
1138
- disabled: U,
1138
+ disabled: W,
1139
1139
  ...je(c)
1140
1140
  });
1141
- if (ye ? Q.length > 0 && (G ? a = G(Q, l, x) : le ? a = le(Q, l, x) : a = Q.map((c, te) => {
1141
+ if (Oe ? Z.length > 0 && (K ? a = K(Z, l, x) : le ? a = le(Z, l, x) : a = Z.map((c, oe) => {
1142
1142
  const {
1143
- key: oe,
1144
- ...Se
1143
+ key: ne,
1144
+ ...ve
1145
1145
  } = l({
1146
- index: te
1146
+ index: oe
1147
1147
  });
1148
1148
  return /* @__PURE__ */ $(_t, {
1149
- label: Te(c),
1150
- size: fe,
1151
- ...Se,
1152
- ...ee.slotProps.chip
1153
- }, oe);
1154
- })) : le && Q != null && (a = le(Q, l, x)), v > -1 && Array.isArray(a)) {
1149
+ label: we(c),
1150
+ size: ge,
1151
+ ...ve,
1152
+ ...te.slotProps.chip
1153
+ }, ne);
1154
+ })) : le && Z != null && (a = le(Z, l, x)), v > -1 && Array.isArray(a)) {
1155
1155
  const c = a.length - v;
1156
- !Z && c > 0 && (a = a.splice(0, v), a.push(/* @__PURE__ */ $("span", {
1156
+ !ee && c > 0 && (a = a.splice(0, v), a.push(/* @__PURE__ */ $("span", {
1157
1157
  className: C.tag,
1158
1158
  children: u(c)
1159
1159
  }, a.length)));
1160
1160
  }
1161
- const I = ce || ((c) => /* @__PURE__ */ We("li", {
1161
+ const I = de || ((c) => /* @__PURE__ */ We("li", {
1162
1162
  children: [/* @__PURE__ */ $(mo, {
1163
1163
  className: C.groupLabel,
1164
1164
  ownerState: x,
@@ -1169,29 +1169,29 @@ const ro = (n) => {
1169
1169
  ownerState: x,
1170
1170
  children: c.children
1171
1171
  })]
1172
- }, c.key)), he = de || ((c, te) => {
1172
+ }, c.key)), be = fe || ((c, oe) => {
1173
1173
  const {
1174
- key: oe,
1175
- ...Se
1174
+ key: ne,
1175
+ ...ve
1176
1176
  } = c;
1177
1177
  return /* @__PURE__ */ $("li", {
1178
- ...Se,
1179
- children: Te(te)
1180
- }, oe);
1181
- }), yt = (c, te) => {
1182
- const oe = $e({
1178
+ ...ve,
1179
+ children: we(oe)
1180
+ }, ne);
1181
+ }), yt = (c, oe) => {
1182
+ const ne = Ae({
1183
1183
  option: c,
1184
- index: te
1184
+ index: oe
1185
1185
  });
1186
- return he({
1187
- ...oe,
1186
+ return be({
1187
+ ...ne,
1188
1188
  className: C.option
1189
1189
  }, c, {
1190
- selected: oe["aria-selected"],
1191
- index: te,
1190
+ selected: ne["aria-selected"],
1191
+ index: oe,
1192
1192
  inputValue: tt
1193
1193
  }, x);
1194
- }, Ot = ee.slotProps.clearIndicator, Pt = ee.slotProps.popupIndicator;
1194
+ }, Ot = te.slotProps.clearIndicator, Pt = te.slotProps.popupIndicator;
1195
1195
  return /* @__PURE__ */ We(y.Fragment, {
1196
1196
  children: [/* @__PURE__ */ $(ao, {
1197
1197
  ref: g,
@@ -1199,10 +1199,10 @@ const ro = (n) => {
1199
1199
  ownerState: x,
1200
1200
  ...ze(F),
1201
1201
  children: Fe({
1202
- id: _,
1203
- disabled: U,
1202
+ id: J,
1203
+ disabled: W,
1204
1204
  fullWidth: !0,
1205
- size: fe === "small" ? "small" : void 0,
1205
+ size: ge === "small" ? "small" : void 0,
1206
1206
  InputLabelProps: Qe(),
1207
1207
  InputProps: {
1208
1208
  ref: Be,
@@ -1211,23 +1211,23 @@ const ro = (n) => {
1211
1211
  onMouseDown: (c) => {
1212
1212
  c.target === c.currentTarget && ot(c);
1213
1213
  },
1214
- ...(me || Ae) && {
1214
+ ...(he || Te) && {
1215
1215
  endAdornment: /* @__PURE__ */ We(lo, {
1216
1216
  className: C.endAdornment,
1217
1217
  ownerState: x,
1218
- children: [me ? /* @__PURE__ */ $(io, {
1218
+ children: [he ? /* @__PURE__ */ $(io, {
1219
1219
  ...z(),
1220
- "aria-label": D,
1221
- title: D,
1220
+ "aria-label": S,
1221
+ title: S,
1222
1222
  ownerState: x,
1223
1223
  ...Ot,
1224
1224
  className: it(C.clearIndicator, Ot?.className),
1225
- children: S
1226
- }) : null, Ae ? /* @__PURE__ */ $(so, {
1227
- ...K(),
1228
- disabled: U,
1229
- "aria-label": J ? Le : A,
1230
- title: J ? Le : A,
1225
+ children: T
1226
+ }) : null, Te ? /* @__PURE__ */ $(so, {
1227
+ ...q(),
1228
+ disabled: W,
1229
+ "aria-label": X ? Le : A,
1230
+ title: X ? Le : A,
1231
1231
  ownerState: x,
1232
1232
  ...Pt,
1233
1233
  className: it(C.popupIndicator, Pt?.className),
@@ -1238,7 +1238,7 @@ const ro = (n) => {
1238
1238
  },
1239
1239
  inputProps: {
1240
1240
  className: C.input,
1241
- disabled: U,
1241
+ disabled: W,
1242
1242
  readOnly: ae,
1243
1243
  ...H()
1244
1244
  }
@@ -1249,26 +1249,26 @@ const ro = (n) => {
1249
1249
  children: /* @__PURE__ */ We(uo, {
1250
1250
  as: Ue,
1251
1251
  ...t,
1252
- children: [R && ge.length === 0 ? /* @__PURE__ */ $(co, {
1252
+ children: [R && me.length === 0 ? /* @__PURE__ */ $(co, {
1253
1253
  className: C.loading,
1254
1254
  ownerState: x,
1255
1255
  children: P
1256
- }) : null, ge.length === 0 && !Re && !R ? /* @__PURE__ */ $(fo, {
1256
+ }) : null, me.length === 0 && !Re && !R ? /* @__PURE__ */ $(fo, {
1257
1257
  className: C.noOptions,
1258
1258
  ownerState: x,
1259
1259
  role: "presentation",
1260
1260
  onMouseDown: (c) => {
1261
1261
  c.preventDefault();
1262
1262
  },
1263
- children: Oe
1264
- }) : null, ge.length > 0 ? /* @__PURE__ */ $(lt, {
1263
+ children: Pe
1264
+ }) : null, me.length > 0 ? /* @__PURE__ */ $(lt, {
1265
1265
  as: Xe,
1266
- ...we,
1267
- children: ge.map((c, te) => Ne ? I({
1266
+ ...Se,
1267
+ children: me.map((c, oe) => Ne ? I({
1268
1268
  key: c.key,
1269
1269
  group: c.group,
1270
- children: c.options.map((oe, Se) => yt(oe, c.index + Se))
1271
- }) : yt(c, te))
1270
+ children: c.options.map((ne, ve) => yt(ne, c.index + ve))
1271
+ }) : yt(c, oe))
1272
1272
  }) : null]
1273
1273
  })
1274
1274
  }) : null]
@@ -1732,32 +1732,37 @@ const bo = Mt((n, p) => {
1732
1732
  const {
1733
1733
  color: g = "primary",
1734
1734
  size: f = "small",
1735
- placeholder: T,
1735
+ placeholder: w,
1736
1736
  error: V,
1737
- ...N
1737
+ name: N,
1738
+ renderInput: D = (U) => {
1739
+ const { ref: ue, ...S } = U.InputProps;
1740
+ return /* @__PURE__ */ $(
1741
+ Vt,
1742
+ {
1743
+ ref: ue,
1744
+ ...S,
1745
+ inputProps: U.inputProps,
1746
+ placeholder: w,
1747
+ color: g,
1748
+ size: f,
1749
+ error: V,
1750
+ name: N
1751
+ }
1752
+ );
1753
+ },
1754
+ popupIcon: B = /* @__PURE__ */ $(Ft, {}),
1755
+ clearIcon: O = /* @__PURE__ */ $(Ht, {}),
1756
+ ...T
1738
1757
  } = n;
1739
1758
  return /* @__PURE__ */ $(
1740
1759
  Nt,
1741
1760
  {
1742
1761
  ref: p,
1743
- ...N,
1744
- renderInput: (w) => {
1745
- const { ref: B, ...O } = w.InputProps;
1746
- return /* @__PURE__ */ $(
1747
- Vt,
1748
- {
1749
- ref: B,
1750
- ...O,
1751
- inputProps: w.inputProps,
1752
- placeholder: T,
1753
- color: g,
1754
- size: f,
1755
- error: V
1756
- }
1757
- );
1758
- },
1759
- popupIcon: /* @__PURE__ */ $(Ht, {}),
1760
- clearIcon: /* @__PURE__ */ $(Ft, {})
1762
+ ...T,
1763
+ renderInput: D,
1764
+ popupIcon: B,
1765
+ clearIcon: O
1761
1766
  }
1762
1767
  );
1763
1768
  });
@@ -7,7 +7,7 @@ import "./icons/MoneyBucketIcon.js";
7
7
  import "./icons/MoreCircleOutlineIcon.js";
8
8
  import { I as $ } from "./Info-Nc5BG3Yc.js";
9
9
  import "./theme/index.js";
10
- import { A as M } from "./Autocomplete-BFrPAO1Z.js";
10
+ import { A as M } from "./Autocomplete-C9jR7Gz3.js";
11
11
  import { D as O } from "./Datepicker-CqhyyHOO.js";
12
12
  import { Input as Q } from "./components/Input/Input.js";
13
13
  import { Select as U } from "./components/Select/Select.js";
@@ -6,6 +6,10 @@ export interface AutocompleteProps<Value, Multiple extends boolean | undefined =
6
6
  size?: InputProps["size"];
7
7
  placeholder?: string;
8
8
  error?: boolean;
9
+ name?: string;
10
+ renderInput?: MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>["renderInput"];
11
+ popupIcon?: MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>["popupIcon"];
12
+ clearIcon?: MuiAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo, ChipComponent>["clearIcon"];
9
13
  }
10
14
  export declare const Autocomplete: ForwardRefExoticComponent<Omit<AutocompleteProps<unknown, boolean, boolean, boolean, ElementType>, "ref"> & RefAttributes<HTMLDivElement>>;
11
15
  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-Cp_Sfbwo.js";
9
- import { A as l, A as s } from "../../Autocomplete-BFrPAO1Z.js";
9
+ import { A as l, A as s } from "../../Autocomplete-C9jR7Gz3.js";
10
10
  export {
11
11
  l as Autocomplete,
12
12
  s as default
@@ -1,3 +1,4 @@
1
1
  export * from '@mui/material/Autocomplete';
2
+ export * from '@mui/material/useAutocomplete';
2
3
  export { Autocomplete, type AutocompleteProps } from './Autocomplete';
3
4
  export { default } from './Autocomplete';
@@ -1,4 +1,4 @@
1
- import { A as a, a as s, c as o, A as l, g as c } from "../../Autocomplete-BFrPAO1Z.js";
1
+ import { A as a, a as s, c as o, A as l, g as c } from "../../Autocomplete-C9jR7Gz3.js";
2
2
  export {
3
3
  a as Autocomplete,
4
4
  s as autocompleteClasses,
@@ -7,8 +7,8 @@ import "../../icons/MoneyBucketIcon.js";
7
7
  import "../../icons/MoreCircleOutlineIcon.js";
8
8
  import "../../Info-Nc5BG3Yc.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BFrPAO1Z.js";
11
- import { A as v } from "../../SelectControl-CPPHpibo.js";
10
+ import "../../Autocomplete-C9jR7Gz3.js";
11
+ import { A as v } from "../../SelectControl-Bz5THtuf.js";
12
12
  import "../../Datepicker-CqhyyHOO.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { A as e } from "../../SelectControl-CPPHpibo.js";
1
+ import { A as e } from "../../SelectControl-Bz5THtuf.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-Nc5BG3Yc.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BFrPAO1Z.js";
11
- import { D as v } from "../../SelectControl-CPPHpibo.js";
10
+ import "../../Autocomplete-C9jR7Gz3.js";
11
+ import { D as v } from "../../SelectControl-Bz5THtuf.js";
12
12
  import "../../Datepicker-CqhyyHOO.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../SelectControl-CPPHpibo.js";
1
+ import { D as e } from "../../SelectControl-Bz5THtuf.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-BFrPAO1Z.js";
8
- import { F as h } from "../../SelectControl-CPPHpibo.js";
7
+ import "../../Autocomplete-C9jR7Gz3.js";
8
+ import { F as h } from "../../SelectControl-Bz5THtuf.js";
9
9
  import "../../Datepicker-CqhyyHOO.js";
10
10
  import "../Input/Input.js";
11
11
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { F as a } from "../../SelectControl-CPPHpibo.js";
1
+ import { F as a } from "../../SelectControl-Bz5THtuf.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-Nc5BG3Yc.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BFrPAO1Z.js";
11
- import { I as v } from "../../SelectControl-CPPHpibo.js";
10
+ import "../../Autocomplete-C9jR7Gz3.js";
11
+ import { I as v } from "../../SelectControl-Bz5THtuf.js";
12
12
  import "../../Datepicker-CqhyyHOO.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { I as t } from "../../SelectControl-CPPHpibo.js";
1
+ import { I as t } from "../../SelectControl-Bz5THtuf.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-Nc5BG3Yc.js";
9
9
  import "../../theme/index.js";
10
- import "../../Autocomplete-BFrPAO1Z.js";
11
- import { S as v } from "../../SelectControl-CPPHpibo.js";
10
+ import "../../Autocomplete-C9jR7Gz3.js";
11
+ import { S as v } from "../../SelectControl-Bz5THtuf.js";
12
12
  import "../../Datepicker-CqhyyHOO.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Select/Select.js";
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../SelectControl-CPPHpibo.js";
1
+ import { S as r } from "../../SelectControl-Bz5THtuf.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-Cp_Sfbwo.js";
8
8
  import { C as Aa, a as Ua, E as ba, I as Sa, W as La } from "./WarningAmberOutlined-YV5tlDPZ.js";
9
9
  import { I as Ta } from "./Info-Nc5BG3Yc.js";
10
10
  import { StyledEngineProvider as ha } from "./theme/index.js";
11
- import { A as wa, a as Pa, c as Fa, g as va } from "./Autocomplete-BFrPAO1Z.js";
12
- import { A as Oa, D as Ra, F as Ga, I as Ha, S as Ea } from "./SelectControl-CPPHpibo.js";
11
+ import { A as wa, a as Pa, c as Fa, g as va } from "./Autocomplete-C9jR7Gz3.js";
12
+ import { A as Oa, D as Ra, F as Ga, I as Ha, S as Ea } from "./SelectControl-Bz5THtuf.js";
13
13
  import { a as Va, b as Ka, D as za, L as Wa, M as ja, d as Qa } from "./Datepicker-CqhyyHOO.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.0.0",
3
+ "version": "2.2.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "a Clearstory software design system",
6
6
  "type": "module",