@clearstory/drywall-react 3.1.1 → 3.2.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.
@@ -22,7 +22,7 @@ import { u as ut } from "./useControlled-nm4pBabJ.js";
22
22
  import { u as Kt } from "./usePreviousProps-ByGlbpJ6.js";
23
23
  import { u as Ge } from "./useEventCallback-BAQJJ3ye.js";
24
24
  import { s as qt } from "./Portal-BD1qgEF2.js";
25
- import { s as j } from "./styled-fvngWWLy.js";
25
+ import { s as B } from "./styled-fvngWWLy.js";
26
26
  import { P as Dt } from "./Paper-DpGDlTnE.js";
27
27
  import { P as Rt } from "./Popper-CEmc3hgj.js";
28
28
  import { C as _t } from "./Chip-BzXGbbX1.js";
@@ -36,9 +36,9 @@ function At({
36
36
  array2: p,
37
37
  parser: g = (f) => f
38
38
  }) {
39
- return n && p && n.length === p.length && n.every((f, w) => g(f) === g(p[w]));
39
+ return n && p && n.length === p.length && n.every((f, T) => g(f) === g(p[T]));
40
40
  }
41
- function Tt(n) {
41
+ function wt(n) {
42
42
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
43
43
  }
44
44
  function Qt(n = {}) {
@@ -46,29 +46,29 @@ function Qt(n = {}) {
46
46
  ignoreAccents: p = !0,
47
47
  ignoreCase: g = !0,
48
48
  limit: f,
49
- matchFrom: w = "any",
49
+ matchFrom: T = "any",
50
50
  stringify: V,
51
51
  trim: N = !1
52
52
  } = n;
53
53
  return (D, {
54
- inputValue: B,
54
+ inputValue: U,
55
55
  getOptionLabel: O
56
56
  }) => {
57
- let T = N ? B.trim() : B;
58
- g && (T = T.toLowerCase()), p && (T = Tt(T));
59
- const U = T ? D.filter((ue) => {
57
+ let A = N ? U.trim() : U;
58
+ g && (A = A.toLowerCase()), p && (A = wt(A));
59
+ const F = A ? D.filter((ue) => {
60
60
  let S = (V || O)(ue);
61
- return g && (S = S.toLowerCase()), p && (S = Tt(S)), w === "start" ? S.startsWith(T) : S.includes(T);
61
+ return g && (S = S.toLowerCase()), p && (S = wt(S)), T === "start" ? S.startsWith(A) : S.includes(A);
62
62
  }) : D;
63
- return typeof f == "number" ? U.slice(0, f) : U;
63
+ return typeof f == "number" ? F.slice(0, f) : F;
64
64
  };
65
65
  }
66
- const Zt = Qt(), wt = 5, eo = (n) => n.current !== null && n.current.parentElement?.contains(document.activeElement), to = [];
66
+ const Zt = Qt(), Tt = 5, eo = (n) => n.current !== null && n.current.parentElement?.contains(document.activeElement), to = [];
67
67
  function St(n, p, g, f) {
68
68
  if (p || n == null || f)
69
69
  return "";
70
- const w = g(n);
71
- return typeof w == "string" ? w : "";
70
+ const T = g(n);
71
+ return typeof T == "string" ? T : "";
72
72
  }
73
73
  function oo(n) {
74
74
  const {
@@ -77,14 +77,14 @@ function oo(n) {
77
77
  // eslint-disable-next-line @typescript-eslint/naming-convention
78
78
  unstable_classNamePrefix: g = "Mui",
79
79
  autoComplete: f = !1,
80
- autoHighlight: w = !1,
80
+ autoHighlight: T = !1,
81
81
  autoSelect: V = !1,
82
82
  blurOnSelect: N = !1,
83
83
  clearOnBlur: D = !n.freeSolo,
84
- clearOnEscape: B = !1,
84
+ clearOnEscape: U = !1,
85
85
  componentName: O = "useAutocomplete",
86
- defaultValue: T = n.multiple ? to : null,
87
- disableClearable: U = !1,
86
+ defaultValue: A = n.multiple ? to : null,
87
+ disableClearable: F = !1,
88
88
  disableCloseOnSelect: ue = !1,
89
89
  disabled: S,
90
90
  disabledItemsFocusable: Le = !1,
@@ -127,9 +127,9 @@ function oo(n) {
127
127
  }
128
128
  return e;
129
129
  };
130
- 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
+ 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 = T ? 0 : -1, w = y.useRef(Ye), It = y.useRef(St(A ?? Me, u, P)).current, [i, $e] = ut({
131
131
  controlled: Me,
132
- default: T,
132
+ default: A,
133
133
  name: O
134
134
  }), [d, ae] = ut({
135
135
  controlled: Re,
@@ -154,16 +154,16 @@ function oo(n) {
154
154
  inputValue: He && xt ? "" : d,
155
155
  getOptionLabel: P
156
156
  }
157
- ) : [], F = Kt({
157
+ ) : [], H = Kt({
158
158
  filteredOptions: m,
159
159
  value: i,
160
160
  inputValue: d
161
161
  });
162
162
  y.useEffect(() => {
163
- const t = i !== F.value;
163
+ const t = i !== H.value;
164
164
  de && !t || ce && !t || fe(null, i, "reset");
165
- }, [i, fe, de, F.value, ce]);
166
- const ze = K && m.length > 0 && !G, H = Ge((t) => {
165
+ }, [i, fe, de, H.value, ce]);
166
+ const ze = K && m.length > 0 && !G, z = Ge((t) => {
167
167
  if (t === -1)
168
168
  b.current.focus();
169
169
  else {
@@ -172,8 +172,8 @@ function oo(n) {
172
172
  }
173
173
  });
174
174
  y.useEffect(() => {
175
- u && E > i.length - 1 && (Ve(-1), H(-1));
176
- }, [i, u, E, H]);
175
+ u && E > i.length - 1 && (Ve(-1), z(-1));
176
+ }, [i, u, E, z]);
177
177
  function Qe(t, e) {
178
178
  if (!M.current || t < 0 || t >= m.length)
179
179
  return -1;
@@ -191,7 +191,7 @@ function oo(n) {
191
191
  index: e,
192
192
  reason: r
193
193
  }) => {
194
- if (A.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${R}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(t, e === -1 ? null : m[e], r), !M.current)
194
+ if (w.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${R}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(t, e === -1 ? null : m[e], r), !M.current)
195
195
  return;
196
196
  const a = M.current.querySelector(`[role="option"].${g}-focused`);
197
197
  a && (a.classList.remove(`${g}-focused`), a.classList.remove(`${g}-focusVisible`));
@@ -207,7 +207,7 @@ function oo(n) {
207
207
  const I = h, k = l.clientHeight + l.scrollTop, be = I.offsetTop + I.offsetHeight;
208
208
  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));
209
209
  }
210
- }), z = Ge(({
210
+ }), j = Ge(({
211
211
  event: t,
212
212
  diff: e,
213
213
  direction: r = "next",
@@ -223,8 +223,8 @@ function oo(n) {
223
223
  return 0;
224
224
  if (e === "end")
225
225
  return I;
226
- const k = A.current + e;
227
- 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;
226
+ const k = w.current + e;
227
+ return k < 0 ? k === -1 && ye ? -1 : ke && w.current !== -1 || Math.abs(e) > 1 ? 0 : I : k > I ? k === I + 1 && ye ? -1 : ke || Math.abs(e) > 1 ? I : 0 : k;
228
228
  })(), r);
229
229
  if (q({
230
230
  index: h,
@@ -238,7 +238,7 @@ function oo(n) {
238
238
  b.current.value = I, I.toLowerCase().indexOf(d.toLowerCase()) === 0 && d.length > 0 && b.current.setSelectionRange(d.length, I.length);
239
239
  }
240
240
  }), je = !At({
241
- array1: F.filteredOptions,
241
+ array1: H.filteredOptions,
242
242
  array2: m,
243
243
  parser: P
244
244
  }), Ze = () => {
@@ -246,12 +246,12 @@ function oo(n) {
246
246
  const a = e ? P(e) : "", l = r ? P(r) : "";
247
247
  return a === l;
248
248
  };
249
- if (A.current !== -1 && !At({
250
- array1: F.filteredOptions,
249
+ if (w.current !== -1 && !At({
250
+ array1: H.filteredOptions,
251
251
  array2: m,
252
252
  parser: P
253
- }) && F.inputValue === d && (u ? i.length === F.value.length && F.value.every((e, r) => P(i[r]) === P(e)) : t(F.value, i))) {
254
- const e = F.filteredOptions[A.current];
253
+ }) && H.inputValue === d && (u ? i.length === H.value.length && H.value.every((e, r) => P(i[r]) === P(e)) : t(H.value, i))) {
254
+ const e = H.filteredOptions[w.current];
255
255
  if (e)
256
256
  return m.findIndex((r) => P(r) === P(e));
257
257
  }
@@ -261,37 +261,37 @@ function oo(n) {
261
261
  return;
262
262
  const t = Ze();
263
263
  if (t !== -1) {
264
- A.current = t;
264
+ w.current = t;
265
265
  return;
266
266
  }
267
267
  const e = u ? i[0] : i;
268
268
  if (m.length === 0 || e == null) {
269
- z({
269
+ j({
270
270
  diff: "reset"
271
271
  });
272
272
  return;
273
273
  }
274
274
  if (M.current) {
275
275
  if (e != null) {
276
- const r = m[A.current];
276
+ const r = m[w.current];
277
277
  if (u && r && i.findIndex((l) => Y(r, l)) !== -1)
278
278
  return;
279
279
  const a = m.findIndex((l) => Y(l, e));
280
- a === -1 ? z({
280
+ a === -1 ? j({
281
281
  diff: "reset"
282
282
  }) : q({
283
283
  index: a
284
284
  });
285
285
  return;
286
286
  }
287
- if (A.current >= m.length - 1) {
287
+ if (w.current >= m.length - 1) {
288
288
  q({
289
289
  index: m.length - 1
290
290
  });
291
291
  return;
292
292
  }
293
293
  q({
294
- index: A.current
294
+ index: w.current
295
295
  });
296
296
  }
297
297
  }, [
@@ -301,7 +301,7 @@ function oo(n) {
301
301
  // eslint-disable-next-line react-hooks/exhaustive-deps
302
302
  u ? !1 : i,
303
303
  De,
304
- z,
304
+ j,
305
305
  q,
306
306
  L,
307
307
  d,
@@ -361,14 +361,14 @@ function oo(n) {
361
361
  return;
362
362
  d === "" && ie(t, "toggleInput");
363
363
  let r = E;
364
- 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
+ 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), z(r);
365
365
  }, Be = (t) => {
366
366
  Oe.current = !0, ae(""), Q && Q(t, "", "clear"), J(t, u ? [] : null, "clear");
367
367
  }, tt = (t) => (e) => {
368
- if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (E !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), H(-1)), e.which !== 229))
368
+ if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (E !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), z(-1)), e.which !== 229))
369
369
  switch (e.key) {
370
370
  case "Home":
371
- L && qe && (e.preventDefault(), z({
371
+ L && qe && (e.preventDefault(), j({
372
372
  diff: "start",
373
373
  direction: "next",
374
374
  reason: "keyboard",
@@ -376,7 +376,7 @@ function oo(n) {
376
376
  }));
377
377
  break;
378
378
  case "End":
379
- L && qe && (e.preventDefault(), z({
379
+ L && qe && (e.preventDefault(), j({
380
380
  diff: "end",
381
381
  direction: "previous",
382
382
  reason: "keyboard",
@@ -384,23 +384,23 @@ function oo(n) {
384
384
  }));
385
385
  break;
386
386
  case "PageUp":
387
- e.preventDefault(), z({
388
- diff: -wt,
387
+ e.preventDefault(), j({
388
+ diff: -Tt,
389
389
  direction: "previous",
390
390
  reason: "keyboard",
391
391
  event: e
392
392
  }), _(e);
393
393
  break;
394
394
  case "PageDown":
395
- e.preventDefault(), z({
396
- diff: wt,
395
+ e.preventDefault(), j({
396
+ diff: Tt,
397
397
  direction: "next",
398
398
  reason: "keyboard",
399
399
  event: e
400
400
  }), _(e);
401
401
  break;
402
402
  case "ArrowDown":
403
- e.preventDefault(), z({
403
+ e.preventDefault(), j({
404
404
  diff: 1,
405
405
  direction: "next",
406
406
  reason: "keyboard",
@@ -408,7 +408,7 @@ function oo(n) {
408
408
  }), _(e);
409
409
  break;
410
410
  case "ArrowUp":
411
- e.preventDefault(), z({
411
+ e.preventDefault(), j({
412
412
  diff: -1,
413
413
  direction: "previous",
414
414
  reason: "keyboard",
@@ -416,21 +416,21 @@ function oo(n) {
416
416
  }), _(e);
417
417
  break;
418
418
  case "ArrowLeft":
419
- !u && v ? H(0) : se(e, "previous");
419
+ !u && v ? z(0) : se(e, "previous");
420
420
  break;
421
421
  case "ArrowRight":
422
- !u && v ? H(-1) : se(e, "next");
422
+ !u && v ? z(-1) : se(e, "next");
423
423
  break;
424
424
  case "Enter":
425
- if (A.current !== -1 && L) {
426
- const r = m[A.current], a = W ? W(r) : !1;
425
+ if (w.current !== -1 && L) {
426
+ const r = m[w.current], a = W ? W(r) : !1;
427
427
  if (e.preventDefault(), a)
428
428
  return;
429
429
  ee(e, r, "selectOption"), f && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
430
430
  } else ce && d !== "" && He === !1 && (u && e.preventDefault(), ee(e, d, "createOption", "freeSolo"));
431
431
  break;
432
432
  case "Escape":
433
- L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : B && (d !== "" || u && i.length > 0 || v) && (e.preventDefault(), e.stopPropagation(), Be(e));
433
+ L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : U && (d !== "" || u && i.length > 0 || v) && (e.preventDefault(), e.stopPropagation(), Be(e));
434
434
  break;
435
435
  case "Backspace":
436
436
  if (u && !G && d === "" && i.length > 0) {
@@ -439,7 +439,7 @@ function oo(n) {
439
439
  option: i[r]
440
440
  });
441
441
  }
442
- !u && v && !G && ($e(null), H(-1));
442
+ !u && v && !G && ($e(null), z(-1));
443
443
  break;
444
444
  case "Delete":
445
445
  if (u && !G && d === "" && i.length > 0 && E !== -1) {
@@ -448,7 +448,7 @@ function oo(n) {
448
448
  option: i[r]
449
449
  });
450
450
  }
451
- !u && v && !G && ($e(null), H(-1));
451
+ !u && v && !G && ($e(null), z(-1));
452
452
  break;
453
453
  }
454
454
  }, me = (t) => {
@@ -458,13 +458,13 @@ function oo(n) {
458
458
  b.current.focus();
459
459
  return;
460
460
  }
461
- 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");
462
- }, Te = (t) => {
461
+ Fe(!1), Pe.current = !0, Oe.current = !1, V && w.current !== -1 && L ? ee(t, m[w.current], "blur") : V && ce && d !== "" ? ee(t, d, "blur", "freeSolo") : D && fe(t, i, "blur"), ie(t, "blur");
462
+ }, we = (t) => {
463
463
  const e = t.target.value;
464
- d !== e && (ae(e), ge(!1), Q && Q(t, e, "input")), e === "" ? !U && !u && J(t, null, "clear") : _(t);
464
+ d !== e && (ae(e), ge(!1), Q && Q(t, e, "input")), e === "" ? !F && !u && J(t, null, "clear") : _(t);
465
465
  }, ot = (t) => {
466
466
  const e = Number(t.currentTarget.getAttribute("data-option-index"));
467
- A.current !== e && q({
467
+ w.current !== e && q({
468
468
  event: t,
469
469
  index: e,
470
470
  reason: "mouse"
@@ -483,7 +483,7 @@ function oo(n) {
483
483
  r.splice(t, 1), J(e, r, "removeOption", {
484
484
  option: i[t]
485
485
  });
486
- }, we = (t) => {
486
+ }, Te = (t) => {
487
487
  J(t, null, "removeOption", {
488
488
  option: i
489
489
  });
@@ -528,7 +528,7 @@ function oo(n) {
528
528
  value: d,
529
529
  onBlur: he,
530
530
  onFocus: me,
531
- onChange: Te,
531
+ onChange: we,
532
532
  onMouseDown: lt,
533
533
  // if open then this is handled imperatively so don't let react override
534
534
  // only have an opinion about this when closed
@@ -563,7 +563,7 @@ function oo(n) {
563
563
  },
564
564
  tabIndex: -1,
565
565
  ...!G && {
566
- onDelete: u ? at(t) : we
566
+ onDelete: u ? at(t) : Te
567
567
  }
568
568
  }),
569
569
  getPopupIndicatorProps: () => ({
@@ -634,18 +634,18 @@ const ro = (n) => {
634
634
  classes: p,
635
635
  disablePortal: g,
636
636
  expanded: f,
637
- focused: w,
637
+ focused: T,
638
638
  fullWidth: V,
639
639
  hasClearIcon: N,
640
640
  hasPopupIcon: D,
641
- inputFocused: B,
641
+ inputFocused: U,
642
642
  popupOpen: O,
643
- size: T
644
- } = n, U = {
645
- root: ["root", f && "expanded", w && "focused", V && "fullWidth", N && "hasClearIcon", D && "hasPopupIcon"],
643
+ size: A
644
+ } = n, F = {
645
+ root: ["root", f && "expanded", T && "focused", V && "fullWidth", N && "hasClearIcon", D && "hasPopupIcon"],
646
646
  inputRoot: ["inputRoot"],
647
- input: ["input", B && "inputFocused"],
648
- tag: ["tag", `tagSize${kt(T)}`],
647
+ input: ["input", U && "inputFocused"],
648
+ tag: ["tag", `tagSize${kt(A)}`],
649
649
  endAdornment: ["endAdornment"],
650
650
  clearIndicator: ["clearIndicator"],
651
651
  popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
@@ -658,8 +658,8 @@ const ro = (n) => {
658
658
  groupLabel: ["groupLabel"],
659
659
  groupUl: ["groupUl"]
660
660
  };
661
- return Jt(U, no, p);
662
- }, ao = j("div", {
661
+ return Jt(F, no, p);
662
+ }, ao = B("div", {
663
663
  name: "MuiAutocomplete",
664
664
  slot: "Root",
665
665
  overridesResolver: (n, p) => {
@@ -667,7 +667,7 @@ const ro = (n) => {
667
667
  ownerState: g
668
668
  } = n, {
669
669
  fullWidth: f,
670
- hasClearIcon: w,
670
+ hasClearIcon: T,
671
671
  hasPopupIcon: V,
672
672
  inputFocused: N,
673
673
  size: D
@@ -682,7 +682,7 @@ const ro = (n) => {
682
682
  [`& .${s.input}`]: p.input
683
683
  }, {
684
684
  [`& .${s.input}`]: N && p.inputFocused
685
- }, p.root, f && p.fullWidth, V && p.hasPopupIcon, w && p.hasClearIcon];
685
+ }, p.root, f && p.fullWidth, V && p.hasPopupIcon, T && p.hasClearIcon];
686
686
  }
687
687
  })({
688
688
  [`&.${s.focused} .${s.clearIndicator}`]: {
@@ -826,7 +826,7 @@ const ro = (n) => {
826
826
  }
827
827
  }
828
828
  }]
829
- }), lo = j("div", {
829
+ }), lo = B("div", {
830
830
  name: "MuiAutocomplete",
831
831
  slot: "EndAdornment"
832
832
  })({
@@ -835,14 +835,14 @@ const ro = (n) => {
835
835
  right: 0,
836
836
  top: "50%",
837
837
  transform: "translate(0, -50%)"
838
- }), io = j(Et, {
838
+ }), io = B(Et, {
839
839
  name: "MuiAutocomplete",
840
840
  slot: "ClearIndicator"
841
841
  })({
842
842
  marginRight: -2,
843
843
  padding: 4,
844
844
  visibility: "hidden"
845
- }), so = j(Et, {
845
+ }), so = B(Et, {
846
846
  name: "MuiAutocomplete",
847
847
  slot: "PopupIndicator",
848
848
  overridesResolver: (n, p) => {
@@ -862,7 +862,7 @@ const ro = (n) => {
862
862
  transform: "rotate(180deg)"
863
863
  }
864
864
  }]
865
- }), po = j(Rt, {
865
+ }), po = B(Rt, {
866
866
  name: "MuiAutocomplete",
867
867
  slot: "Popper",
868
868
  overridesResolver: (n, p) => {
@@ -885,7 +885,7 @@ const ro = (n) => {
885
885
  position: "absolute"
886
886
  }
887
887
  }]
888
- }))), uo = j(Dt, {
888
+ }))), uo = B(Dt, {
889
889
  name: "MuiAutocomplete",
890
890
  slot: "Paper"
891
891
  })(xe(({
@@ -893,7 +893,7 @@ const ro = (n) => {
893
893
  }) => ({
894
894
  ...n.typography.body1,
895
895
  overflow: "auto"
896
- }))), co = j("div", {
896
+ }))), co = B("div", {
897
897
  name: "MuiAutocomplete",
898
898
  slot: "Loading"
899
899
  })(xe(({
@@ -901,7 +901,7 @@ const ro = (n) => {
901
901
  }) => ({
902
902
  color: (n.vars || n).palette.text.secondary,
903
903
  padding: "14px 16px"
904
- }))), fo = j("div", {
904
+ }))), fo = B("div", {
905
905
  name: "MuiAutocomplete",
906
906
  slot: "NoOptions"
907
907
  })(xe(({
@@ -909,7 +909,7 @@ const ro = (n) => {
909
909
  }) => ({
910
910
  color: (n.vars || n).palette.text.secondary,
911
911
  padding: "14px 16px"
912
- }))), go = j("ul", {
912
+ }))), go = B("ul", {
913
913
  name: "MuiAutocomplete",
914
914
  slot: "Listbox"
915
915
  })(xe(({
@@ -966,7 +966,7 @@ const ro = (n) => {
966
966
  }
967
967
  }
968
968
  }
969
- }))), mo = j(Xt, {
969
+ }))), mo = B(Xt, {
970
970
  name: "MuiAutocomplete",
971
971
  slot: "GroupLabel"
972
972
  })(xe(({
@@ -974,7 +974,7 @@ const ro = (n) => {
974
974
  }) => ({
975
975
  backgroundColor: (n.vars || n).palette.background.paper,
976
976
  top: -8
977
- }))), ho = j("ul", {
977
+ }))), ho = B("ul", {
978
978
  name: "MuiAutocomplete",
979
979
  slot: "GroupUl"
980
980
  })({
@@ -987,16 +987,16 @@ const ro = (n) => {
987
987
  props: p,
988
988
  name: "MuiAutocomplete"
989
989
  }), {
990
- autoComplete: w = !1,
990
+ autoComplete: T = !1,
991
991
  autoHighlight: V = !1,
992
992
  autoSelect: N = !1,
993
993
  blurOnSelect: D = !1,
994
- ChipProps: B,
994
+ ChipProps: U,
995
995
  className: O,
996
- clearIcon: T = vt || (vt = /* @__PURE__ */ $(jt, {
996
+ clearIcon: A = vt || (vt = /* @__PURE__ */ $(jt, {
997
997
  fontSize: "small"
998
998
  })),
999
- clearOnBlur: U = !f.freeSolo,
999
+ clearOnBlur: F = !f.freeSolo,
1000
1000
  clearOnEscape: ue = !1,
1001
1001
  clearText: S = "Clear",
1002
1002
  closeText: Le = "Close",
@@ -1037,7 +1037,7 @@ const ro = (n) => {
1037
1037
  onOpen: E,
1038
1038
  open: Ve,
1039
1039
  openOnFocus: Ye = !1,
1040
- openText: A = "Open",
1040
+ openText: w = "Open",
1041
1041
  options: It,
1042
1042
  PaperComponent: i,
1043
1043
  PopperComponent: $e,
@@ -1053,13 +1053,13 @@ const ro = (n) => {
1053
1053
  slots: He = {},
1054
1054
  slotProps: L = {},
1055
1055
  value: m,
1056
- ...F
1056
+ ...H
1057
1057
  } = f, {
1058
1058
  getRootProps: ze,
1059
- getInputProps: H,
1059
+ getInputProps: z,
1060
1060
  getInputLabelProps: Qe,
1061
1061
  getPopupIndicatorProps: q,
1062
- getClearProps: z,
1062
+ getClearProps: j,
1063
1063
  getItemProps: je,
1064
1064
  getListboxProps: Ze,
1065
1065
  getOptionProps: Ae,
@@ -1077,20 +1077,20 @@ const ro = (n) => {
1077
1077
  } = oo({
1078
1078
  ...f,
1079
1079
  componentName: "Autocomplete"
1080
- }), he = !De && !W && _ && !ae, Te = (!Re || ye === !0) && ye !== !1, {
1080
+ }), he = !De && !W && _ && !ae, we = (!Re || ye === !0) && ye !== !1, {
1081
1081
  onMouseDown: ot
1082
- } = H(), {
1082
+ } = z(), {
1083
1083
  ref: nt,
1084
1084
  ...rt
1085
- } = Ze(), we = Ee || ((c) => c.label ?? c), x = {
1085
+ } = Ze(), Te = Ee || ((c) => c.label ?? c), x = {
1086
1086
  ...f,
1087
1087
  disablePortal: re,
1088
1088
  expanded: ie,
1089
1089
  focused: ee,
1090
1090
  fullWidth: Y,
1091
- getOptionLabel: we,
1091
+ getOptionLabel: Te,
1092
1092
  hasClearIcon: he,
1093
- hasPopupIcon: Te,
1093
+ hasPopupIcon: we,
1094
1094
  inputFocused: et === -1,
1095
1095
  popupOpen: X,
1096
1096
  size: ge
@@ -1101,7 +1101,7 @@ const ro = (n) => {
1101
1101
  ...He
1102
1102
  },
1103
1103
  slotProps: {
1104
- chip: B,
1104
+ chip: U,
1105
1105
  listbox: Me,
1106
1106
  ...ke,
1107
1107
  ...L
@@ -1147,7 +1147,7 @@ const ro = (n) => {
1147
1147
  index: oe
1148
1148
  });
1149
1149
  return /* @__PURE__ */ $(_t, {
1150
- label: we(c),
1150
+ label: Te(c),
1151
1151
  size: ge,
1152
1152
  ...ve,
1153
1153
  ...te.slotProps.chip
@@ -1177,7 +1177,7 @@ const ro = (n) => {
1177
1177
  } = c;
1178
1178
  return /* @__PURE__ */ $("li", {
1179
1179
  ...ve,
1180
- children: we(oe)
1180
+ children: Te(oe)
1181
1181
  }, ne);
1182
1182
  }), yt = (c, oe) => {
1183
1183
  const ne = Ae({
@@ -1198,7 +1198,7 @@ const ro = (n) => {
1198
1198
  ref: g,
1199
1199
  className: it(C.root, O),
1200
1200
  ownerState: x,
1201
- ...ze(F),
1201
+ ...ze(H),
1202
1202
  children: Fe({
1203
1203
  id: J,
1204
1204
  disabled: W,
@@ -1212,23 +1212,23 @@ const ro = (n) => {
1212
1212
  onMouseDown: (c) => {
1213
1213
  c.target === c.currentTarget && ot(c);
1214
1214
  },
1215
- ...(he || Te) && {
1215
+ ...(he || we) && {
1216
1216
  endAdornment: /* @__PURE__ */ We(lo, {
1217
1217
  className: C.endAdornment,
1218
1218
  ownerState: x,
1219
1219
  children: [he ? /* @__PURE__ */ $(io, {
1220
- ...z(),
1220
+ ...j(),
1221
1221
  "aria-label": S,
1222
1222
  title: S,
1223
1223
  ownerState: x,
1224
1224
  ...Ot,
1225
1225
  className: it(C.clearIndicator, Ot?.className),
1226
- children: T
1227
- }) : null, Te ? /* @__PURE__ */ $(so, {
1226
+ children: A
1227
+ }) : null, we ? /* @__PURE__ */ $(so, {
1228
1228
  ...q(),
1229
1229
  disabled: W,
1230
- "aria-label": X ? Le : A,
1231
- title: X ? Le : A,
1230
+ "aria-label": X ? Le : w,
1231
+ title: X ? Le : w,
1232
1232
  ownerState: x,
1233
1233
  ...Pt,
1234
1234
  className: it(C.popupIndicator, Pt?.className),
@@ -1241,7 +1241,7 @@ const ro = (n) => {
1241
1241
  className: C.input,
1242
1242
  disabled: W,
1243
1243
  readOnly: ae,
1244
- ...H()
1244
+ ...z()
1245
1245
  }
1246
1246
  })
1247
1247
  }), se ? /* @__PURE__ */ $(po, {
@@ -1733,36 +1733,49 @@ function bo(n, p) {
1733
1733
  const {
1734
1734
  color: g = "primary",
1735
1735
  size: f = "small",
1736
- placeholder: w,
1736
+ placeholder: T,
1737
1737
  error: V,
1738
1738
  name: N,
1739
- renderInput: D = (U) => {
1740
- const { ref: ue, ...S } = U.InputProps;
1739
+ renderInput: D = (F) => {
1740
+ const { ref: ue, ...S } = F.InputProps;
1741
1741
  return /* @__PURE__ */ $(
1742
1742
  Vt,
1743
1743
  {
1744
1744
  ref: ue,
1745
1745
  ...S,
1746
- inputProps: U.inputProps,
1747
- placeholder: w,
1746
+ inputProps: F.inputProps,
1747
+ inputRef: F.inputProps.ref,
1748
+ placeholder: T,
1748
1749
  color: g,
1749
1750
  size: f,
1750
1751
  error: V,
1751
- name: N
1752
+ name: N,
1753
+ sx: {
1754
+ ...A.multiple && {
1755
+ flexWrap: "wrap",
1756
+ justifyContent: "flex-start",
1757
+ input: {
1758
+ width: "auto"
1759
+ },
1760
+ ".DrywallAutocomplete-tag": {
1761
+ margin: 0.5
1762
+ }
1763
+ }
1764
+ }
1752
1765
  }
1753
1766
  );
1754
1767
  },
1755
- popupIcon: B = /* @__PURE__ */ $(Ft, {}),
1768
+ popupIcon: U = /* @__PURE__ */ $(Ft, {}),
1756
1769
  clearIcon: O = /* @__PURE__ */ $(Ht, {}),
1757
- ...T
1770
+ ...A
1758
1771
  } = n;
1759
1772
  return /* @__PURE__ */ $(
1760
1773
  Nt,
1761
1774
  {
1762
1775
  ref: p,
1763
- ...T,
1776
+ ...A,
1764
1777
  renderInput: D,
1765
- popupIcon: B,
1778
+ popupIcon: U,
1766
1779
  clearIcon: O
1767
1780
  }
1768
1781
  );