@carto/meridian-ds 1.3.4 → 1.3.5-alpha.autocomplete-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{MenuItem-B3IDLBB1.js → MenuItem-CkxKygcd.js} +61 -61
  3. package/dist/{MenuItem-DUV2TC2p.cjs → MenuItem-Fb15qc5Z.cjs} +3 -3
  4. package/dist/components/index.cjs +5 -5
  5. package/dist/components/index.js +2941 -2777
  6. package/dist/theme/index.cjs +1 -1
  7. package/dist/theme/index.js +97 -50
  8. package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts +13 -0
  9. package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts.map +1 -0
  10. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +9 -0
  11. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -0
  12. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +9 -0
  13. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -0
  14. package/dist/types/components/molecules/Autocomplete/index.d.ts +4 -0
  15. package/dist/types/components/molecules/Autocomplete/index.d.ts.map +1 -0
  16. package/dist/types/components/molecules/Autocomplete/types.d.ts +37 -0
  17. package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -0
  18. package/dist/types/components/molecules/Autocomplete/useAutocompleteOption.d.ts +6 -0
  19. package/dist/types/components/molecules/Autocomplete/useAutocompleteOption.d.ts.map +1 -0
  20. package/dist/types/components/molecules/Autocomplete/useCreatableAutocomplete.d.ts +17 -0
  21. package/dist/types/components/molecules/Autocomplete/useCreatableAutocomplete.d.ts.map +1 -0
  22. package/dist/types/components/molecules/Autocomplete/utils.d.ts +2 -0
  23. package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -0
  24. package/dist/types/components/molecules/Avatar.d.ts +1 -0
  25. package/dist/types/components/molecules/Avatar.d.ts.map +1 -1
  26. package/dist/types/components/molecules/Menu/MenuFilter.d.ts +8 -0
  27. package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +1 -0
  28. package/dist/types/components/molecules/Menu/index.d.ts +2 -0
  29. package/dist/types/components/molecules/Menu/index.d.ts.map +1 -1
  30. package/dist/types/components/molecules/index.d.ts +2 -2
  31. package/dist/types/components/molecules/index.d.ts.map +1 -1
  32. package/dist/types/components/organisms/Dialog/DialogContent.d.ts +2 -2
  33. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
  34. package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
  35. package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
  36. package/package.json +15 -14
  37. package/dist/types/components/molecules/Autocomplete.d.ts +0 -18
  38. package/dist/types/components/molecules/Autocomplete.d.ts.map +0 -1
  39. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts +0 -9
  40. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,8 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Autocomplete: Split creatable and enhance multiple UX [#120](https://github.com/CartoDB/meridian-ds/pull/120)
6
+
5
7
  ## 1.0
6
8
 
9
+ ### 1.3.5
10
+
11
+ - Fix DialogContent support for ref [#131](https://github.com/CartoDB/meridian-ds/pull/131)
12
+ - Update Storybook to version 8.6.8 [#129](https://github.com/CartoDB/meridian-ds/pull/129)
13
+ - Add disabled prop to Avatar component [#128](https://github.com/CartoDB/meridian-ds/pull/128)
14
+
7
15
  ### 1.3.4
8
16
 
9
17
  - Fix CategoryWidget edge-case when number of items is <= than max items [#126](https://github.com/CartoDB/meridian-ds/pull/126)
@@ -1,13 +1,13 @@
1
1
  import * as p from "react";
2
2
  import { jsx as C, jsxs as Se } from "react/jsx-runtime";
3
3
  import { P as a, _ as E } from "./TablePaginationActions-BmvmVQd9.js";
4
- import { useThemeProps as pe, styled as B, alpha as Le } from "@mui/material/styles";
4
+ import { useThemeProps as pe, styled as B, alpha as $e } from "@mui/material/styles";
5
5
  import pt from "@mui/material/MenuItem";
6
6
  import ht from "@mui/material/MenuList";
7
7
  import Ye from "@mui/material/IconButton";
8
8
  import gt from "@mui/material/Typography";
9
9
  import { createSvgIcon as Ce } from "@mui/material/utils";
10
- import { styled as Lt, MenuItem as $t } from "@mui/material";
10
+ import { styled as $t, MenuItem as Lt } from "@mui/material";
11
11
  function ie(e, t) {
12
12
  if (e == null) return {};
13
13
  var n = {};
@@ -243,15 +243,15 @@ function Ne(e) {
243
243
  ref: c
244
244
  }, o);
245
245
  }
246
- const Xt = ["localeText"], $e = /* @__PURE__ */ p.createContext(null);
247
- process.env.NODE_ENV !== "production" && ($e.displayName = "MuiPickersAdapterContext");
246
+ const Xt = ["localeText"], Le = /* @__PURE__ */ p.createContext(null);
247
+ process.env.NODE_ENV !== "production" && (Le.displayName = "MuiPickersAdapterContext");
248
248
  const Jt = function(t) {
249
249
  const {
250
250
  localeText: n
251
251
  } = t, o = ie(t, Xt), {
252
252
  utils: r,
253
253
  localeText: s
254
- } = p.useContext($e) ?? {
254
+ } = p.useContext(Le) ?? {
255
255
  utils: void 0,
256
256
  localeText: void 0
257
257
  }, i = pe({
@@ -286,7 +286,7 @@ const Jt = function(t) {
286
286
  defaultDates: y,
287
287
  localeText: g
288
288
  }), [y, d, g]);
289
- return /* @__PURE__ */ C($e.Provider, {
289
+ return /* @__PURE__ */ C(Le.Provider, {
290
290
  value: k,
291
291
  children: u
292
292
  });
@@ -432,7 +432,7 @@ const Qt = (e) => ({
432
432
  }, en = vt;
433
433
  Qt(vt);
434
434
  const qe = () => {
435
- const e = p.useContext($e);
435
+ const e = p.useContext(Le);
436
436
  if (e === null)
437
437
  throw new Error(["MUI X: Can not find the date and time pickers localization context.", "It looks like you forgot to wrap your component in LocalizationProvider.", "This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
438
438
  `));
@@ -558,7 +558,7 @@ const rn = ["children", "className", "slots", "slotProps", "isNextDisabled", "is
558
558
  hidden: H.isHidden
559
559
  }),
560
560
  className: te(N.button, N.previousIconButton)
561
- }), O = (u == null ? void 0 : u.nextIconButton) ?? at, L = Ne({
561
+ }), O = (u == null ? void 0 : u.nextIconButton) ?? at, $ = Ne({
562
562
  elementType: O,
563
563
  externalSlotProps: l == null ? void 0 : l.nextIconButton,
564
564
  additionalProps: {
@@ -605,7 +605,7 @@ const rn = ["children", "className", "slots", "slotProps", "isNextDisabled", "is
605
605
  }) : /* @__PURE__ */ C(cn, {
606
606
  className: N.spacer,
607
607
  ownerState: V
608
- }), /* @__PURE__ */ C(O, E({}, L, {
608
+ }), /* @__PURE__ */ C(O, E({}, $, {
609
609
  children: o ? /* @__PURE__ */ C(I, E({}, _)) : /* @__PURE__ */ C(ne, E({}, le))
610
610
  }))]
611
611
  }));
@@ -675,15 +675,15 @@ function Ke({
675
675
  }), R = ae(() => {
676
676
  M && N(M);
677
677
  }), H = ae((h, x, O) => {
678
- const L = x === "finish", I = O ? (
678
+ const $ = x === "finish", I = O ? (
679
679
  // handles case like `DateTimePicker`, where a view might return a `finish` selection state
680
680
  // but when it's not the final view given all `views` -> overall selection state should be `partial`.
681
681
  r.indexOf(O) < r.length - 1
682
682
  ) : !!M;
683
- if (e(h, L && I ? "partial" : x, O), O && O !== m) {
683
+ if (e(h, $ && I ? "partial" : x, O), O && O !== m) {
684
684
  const _ = r[r.indexOf(O) + 1];
685
685
  _ && N(_);
686
- } else L && R();
686
+ } else $ && R();
687
687
  });
688
688
  return {
689
689
  view: m,
@@ -954,7 +954,7 @@ const Ue = (e, t, n) => {
954
954
  flexShrink: 0,
955
955
  position: "relative",
956
956
  pointerEvents: "none"
957
- }), Ln = B("div", {
957
+ }), $n = B("div", {
958
958
  name: "MuiClock",
959
959
  slot: "Wrapper",
960
960
  overridesResolver: (e, t) => t.wrapper
@@ -962,7 +962,7 @@ const Ue = (e, t, n) => {
962
962
  "&:focus": {
963
963
  outline: "none"
964
964
  }
965
- }), $n = B("div", {
965
+ }), Ln = B("div", {
966
966
  name: "MuiClock",
967
967
  slot: "SquareMask",
968
968
  overridesResolver: (e, t) => t.squareMask
@@ -1073,7 +1073,7 @@ function _n(e) {
1073
1073
  disabled: P = !1,
1074
1074
  readOnly: M,
1075
1075
  className: V
1076
- } = t, N = t, R = ge(), H = Be(), h = p.useRef(!1), x = Rn(N), O = l(d, g), L = !n && g === "hours" && (d < 1 || d > 12), I = (D, A) => {
1076
+ } = t, N = t, R = ge(), H = Be(), h = p.useRef(!1), x = Rn(N), O = l(d, g), $ = !n && g === "hours" && (d < 1 || d > 12), I = (D, A) => {
1077
1077
  P || M || l(D, g) || m(D, A);
1078
1078
  }, K = (D, A) => {
1079
1079
  let {
@@ -1129,7 +1129,7 @@ function _n(e) {
1129
1129
  className: te(x.root, V),
1130
1130
  children: [/* @__PURE__ */ Se(An, {
1131
1131
  className: x.clock,
1132
- children: [/* @__PURE__ */ C($n, {
1132
+ children: [/* @__PURE__ */ C(Ln, {
1133
1133
  onTouchMove: _,
1134
1134
  onTouchStart: _,
1135
1135
  onTouchEnd: ne,
@@ -1145,10 +1145,10 @@ function _n(e) {
1145
1145
  }), i != null && /* @__PURE__ */ C(In, {
1146
1146
  type: g,
1147
1147
  viewValue: d,
1148
- isInner: L,
1148
+ isInner: $,
1149
1149
  hasSelected: ce
1150
1150
  })]
1151
- }), /* @__PURE__ */ C(Ln, {
1151
+ }), /* @__PURE__ */ C($n, {
1152
1152
  "aria-activedescendant": b,
1153
1153
  "aria-label": H.clockLabelText(g, i, R, i == null ? null : R.format(i, "fullTime")),
1154
1154
  ref: de,
@@ -1847,7 +1847,7 @@ const pr = (e, t) => {
1847
1847
  views: h = uo,
1848
1848
  openTo: x,
1849
1849
  onViewChange: O,
1850
- focusedView: L,
1850
+ focusedView: $,
1851
1851
  onFocusedViewChange: I,
1852
1852
  className: K,
1853
1853
  disabled: _,
@@ -1883,16 +1883,16 @@ const pr = (e, t) => {
1883
1883
  openTo: x,
1884
1884
  onViewChange: O,
1885
1885
  onChange: X,
1886
- focusedView: L,
1886
+ focusedView: $,
1887
1887
  onFocusedViewChange: I
1888
1888
  }), {
1889
1889
  meridiemMode: q,
1890
1890
  handleMeridiemChange: be
1891
1891
  } = Ct(F, s, ee), me = p.useCallback((W, U) => {
1892
- const w = _e(g, o), $ = U === "hours" || U === "minutes" && h.includes("seconds"), v = ({
1892
+ const w = _e(g, o), L = U === "hours" || U === "minutes" && h.includes("seconds"), v = ({
1893
1893
  start: T,
1894
1894
  end: J
1895
- }) => !(y && w(y, J) || d && w(T, d) || k && w(T, G) || P && w(G, $ ? J : T)), S = (T, J = 1) => {
1895
+ }) => !(y && w(y, J) || d && w(T, d) || k && w(T, G) || P && w(G, L ? J : T)), S = (T, J = 1) => {
1896
1896
  if (T % J !== 0)
1897
1897
  return !1;
1898
1898
  if (V)
@@ -1939,8 +1939,8 @@ const pr = (e, t) => {
1939
1939
  }, [s, F, g, d, q, y, M, V, o, k, P, G, h]), Z = zt(), ke = p.useMemo(() => {
1940
1940
  switch (D) {
1941
1941
  case "hours": {
1942
- const W = ($, v) => {
1943
- const S = Oe($, q, s);
1942
+ const W = (L, v) => {
1943
+ const S = Oe(L, q, s);
1944
1944
  ee(o.setHours(F, S), v, "hours");
1945
1945
  }, U = o.getHours(F);
1946
1946
  let w;
@@ -1953,15 +1953,15 @@ const pr = (e, t) => {
1953
1953
  ampm: s,
1954
1954
  onChange: W,
1955
1955
  getClockNumberText: z.hoursClockNumberText,
1956
- isDisabled: ($) => _ || me($, "hours"),
1956
+ isDisabled: (L) => _ || me(L, "hours"),
1957
1957
  selectedId: Z
1958
1958
  }),
1959
1959
  viewRange: w
1960
1960
  };
1961
1961
  }
1962
1962
  case "minutes": {
1963
- const W = o.getMinutes(F), U = (w, $) => {
1964
- ee(o.setMinutes(F, w), $, "minutes");
1963
+ const W = o.getMinutes(F), U = (w, L) => {
1964
+ ee(o.setMinutes(F, w), L, "minutes");
1965
1965
  };
1966
1966
  return {
1967
1967
  viewValue: W,
@@ -1978,8 +1978,8 @@ const pr = (e, t) => {
1978
1978
  };
1979
1979
  }
1980
1980
  case "seconds": {
1981
- const W = o.getSeconds(F), U = (w, $) => {
1982
- ee(o.setSeconds(F, w), $, "seconds");
1981
+ const W = o.getSeconds(F), U = (w, L) => {
1982
+ ee(o.setSeconds(F, w), L, "seconds");
1983
1983
  };
1984
1984
  return {
1985
1985
  viewValue: W,
@@ -2005,7 +2005,7 @@ const pr = (e, t) => {
2005
2005
  ownerState: re
2006
2006
  }, le, {
2007
2007
  children: [/* @__PURE__ */ C(_n, E({
2008
- autoFocus: u ?? !!L,
2008
+ autoFocus: u ?? !!$,
2009
2009
  ampmInClock: i && h.includes("hours"),
2010
2010
  value: ce,
2011
2011
  type: D,
@@ -2249,7 +2249,7 @@ const Dr = (e, t) => (n) => {
2249
2249
  marginTop: 4
2250
2250
  },
2251
2251
  "&:hover": {
2252
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Le(e.palette.primary.main, e.palette.action.hoverOpacity)
2252
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : $e(e.palette.primary.main, e.palette.action.hoverOpacity)
2253
2253
  },
2254
2254
  "&.Mui-selected": {
2255
2255
  backgroundColor: (e.vars || e).palette.primary.main,
@@ -2259,7 +2259,7 @@ const Dr = (e, t) => (n) => {
2259
2259
  }
2260
2260
  },
2261
2261
  "&.Mui-focusVisible": {
2262
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})` : Le(e.palette.primary.main, e.palette.action.focusOpacity)
2262
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})` : $e(e.palette.primary.main, e.palette.action.focusOpacity)
2263
2263
  }
2264
2264
  })), Rt = /* @__PURE__ */ p.forwardRef(function(t, n) {
2265
2265
  const o = ge(), r = p.useRef(null), s = Ge(n, r), i = p.useRef(null), u = pe({
@@ -2284,7 +2284,7 @@ const Dr = (e, t) => (n) => {
2284
2284
  onChange: h,
2285
2285
  view: x,
2286
2286
  openTo: O,
2287
- onViewChange: L,
2287
+ onViewChange: $,
2288
2288
  focusedView: I,
2289
2289
  onFocusedViewChange: K,
2290
2290
  className: _,
@@ -2324,7 +2324,7 @@ const Dr = (e, t) => (n) => {
2324
2324
  view: x,
2325
2325
  views: le,
2326
2326
  openTo: O,
2327
- onViewChange: L,
2327
+ onViewChange: $,
2328
2328
  onChange: me,
2329
2329
  focusedView: I,
2330
2330
  onFocusedViewChange: K
@@ -2337,11 +2337,11 @@ const Dr = (e, t) => (n) => {
2337
2337
  const w = r.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');
2338
2338
  if (!w)
2339
2339
  return;
2340
- const $ = w.offsetTop;
2341
- (f || I) && w.focus(), r.current.scrollTop = $ - 4;
2340
+ const L = w.offsetTop;
2341
+ (f || I) && w.focus(), r.current.scrollTop = L - 4;
2342
2342
  });
2343
2343
  const re = p.useCallback((w) => {
2344
- const $ = _e(k, o), v = () => !(M && $(M, w) || P && $(w, P) || V && $(w, A) || N && $(A, w)), S = () => o.getMinutes(w) % R !== 0 ? !1 : H ? !H(w, "hours") : !0;
2344
+ const L = _e(k, o), v = () => !(M && L(M, w) || P && L(w, P) || V && L(w, A) || N && L(A, w)), S = () => o.getMinutes(w) % R !== 0 ? !1 : H ? !H(w, "hours") : !0;
2345
2345
  return !v() || !S();
2346
2346
  }, [k, o, M, P, V, A, N, R, H]), ye = p.useMemo(() => {
2347
2347
  const w = [];
@@ -2352,12 +2352,12 @@ const Dr = (e, t) => (n) => {
2352
2352
  }, [be, c, o]), W = ye.findIndex((w) => o.isEqual(w, be)), U = (w) => {
2353
2353
  switch (w.key) {
2354
2354
  case "PageUp": {
2355
- const $ = Fe(i.current) - 5, v = i.current.children, S = Math.max(0, $), T = v[S];
2355
+ const L = Fe(i.current) - 5, v = i.current.children, S = Math.max(0, L), T = v[S];
2356
2356
  T && T.focus(), w.preventDefault();
2357
2357
  break;
2358
2358
  }
2359
2359
  case "PageDown": {
2360
- const $ = Fe(i.current) + 5, v = i.current.children, S = Math.min(v.length - 1, $), T = v[S];
2360
+ const L = Fe(i.current) + 5, v = i.current.children, S = Math.min(v.length - 1, L), T = v[S];
2361
2361
  T && T.focus(), w.preventDefault();
2362
2362
  break;
2363
2363
  }
@@ -2374,10 +2374,10 @@ const Dr = (e, t) => (n) => {
2374
2374
  "aria-label": D.timePickerToolbarTitle,
2375
2375
  className: j.list,
2376
2376
  onKeyDown: U,
2377
- children: ye.map((w, $) => {
2377
+ children: ye.map((w, L) => {
2378
2378
  if (ce && re(w))
2379
2379
  return null;
2380
- const v = o.isEqual(w, F), S = o.format(w, l ? "fullTime12h" : "fullTime24h"), T = W === $ || W === -1 && $ === 0 ? 0 : -1;
2380
+ const v = o.isEqual(w, F), S = o.format(w, l ? "fullTime12h" : "fullTime24h"), T = W === L || W === -1 && L === 0 ? 0 : -1;
2381
2381
  return /* @__PURE__ */ C(ee, E({
2382
2382
  onClick: () => !oe && ke(w),
2383
2383
  selected: v,
@@ -2627,7 +2627,7 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2627
2627
  marginTop: 4
2628
2628
  },
2629
2629
  "&:hover": {
2630
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Le(e.palette.primary.main, e.palette.action.hoverOpacity)
2630
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : $e(e.palette.primary.main, e.palette.action.hoverOpacity)
2631
2631
  },
2632
2632
  "&.Mui-selected": {
2633
2633
  backgroundColor: (e.vars || e).palette.primary.main,
@@ -2637,7 +2637,7 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2637
2637
  }
2638
2638
  },
2639
2639
  "&.Mui-focusVisible": {
2640
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})` : Le(e.palette.primary.main, e.palette.action.focusOpacity)
2640
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})` : $e(e.palette.primary.main, e.palette.action.focusOpacity)
2641
2641
  }
2642
2642
  })), Do = /* @__PURE__ */ p.forwardRef(function(t, n) {
2643
2643
  const o = p.useRef(null), r = Ge(n, o), s = p.useRef(null), i = pe({
@@ -2670,12 +2670,12 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2670
2670
  const R = b.findIndex((h) => h.isFocused(h.value)), H = (h) => {
2671
2671
  switch (h.key) {
2672
2672
  case "PageUp": {
2673
- const x = Fe(o.current) - 5, O = o.current.children, L = Math.max(0, x), I = O[L];
2673
+ const x = Fe(o.current) - 5, O = o.current.children, $ = Math.max(0, x), I = O[$];
2674
2674
  I && I.focus(), h.preventDefault();
2675
2675
  break;
2676
2676
  }
2677
2677
  case "PageDown": {
2678
- const x = Fe(o.current) + 5, O = o.current.children, L = Math.min(O.length - 1, x), I = O[L];
2678
+ const x = Fe(o.current) + 5, O = o.current.children, $ = Math.min(O.length - 1, x), I = O[$];
2679
2679
  I && I.focus(), h.preventDefault();
2680
2680
  break;
2681
2681
  }
@@ -2691,17 +2691,17 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2691
2691
  }, P, {
2692
2692
  children: b.map((h, x) => {
2693
2693
  var _;
2694
- const O = (_ = h.isDisabled) == null ? void 0 : _.call(h, h.value), L = f || O;
2695
- if (k && L)
2694
+ const O = (_ = h.isDisabled) == null ? void 0 : _.call(h, h.value), $ = f || O;
2695
+ if (k && $)
2696
2696
  return null;
2697
2697
  const I = h.isSelected(h.value), K = R === x || R === -1 && x === 0 ? 0 : -1;
2698
2698
  return /* @__PURE__ */ C(N, E({
2699
2699
  onClick: () => !m && l(h.value),
2700
2700
  selected: I,
2701
- disabled: L,
2701
+ disabled: $,
2702
2702
  disableRipple: m,
2703
2703
  role: "option",
2704
- "aria-disabled": m || L || void 0,
2704
+ "aria-disabled": m || $ || void 0,
2705
2705
  "aria-label": h.ariaLabel,
2706
2706
  "aria-selected": I,
2707
2707
  tabIndex: K,
@@ -2804,7 +2804,7 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2804
2804
  views: h = ["hours", "minutes"],
2805
2805
  openTo: x,
2806
2806
  onViewChange: O,
2807
- focusedView: L,
2807
+ focusedView: $,
2808
2808
  onFocusedViewChange: I,
2809
2809
  className: K,
2810
2810
  disabled: _,
@@ -2843,7 +2843,7 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2843
2843
  openTo: x,
2844
2844
  onViewChange: O,
2845
2845
  onChange: Q,
2846
- focusedView: L,
2846
+ focusedView: $,
2847
2847
  onFocusedViewChange: I
2848
2848
  }), me = ae((v) => {
2849
2849
  q(v, "finish", "meridiem");
@@ -2976,10 +2976,10 @@ const Tr = De("MuiMultiSectionDigitalClockSection", ["root", "item"]), vo = ["au
2976
2976
  return v.reverse(), j.includes("meridiem") && v.push("meridiem"), v;
2977
2977
  }, [r, j]), U = p.useMemo(() => j.reduce((v, S) => E({}, v, {
2978
2978
  [S]: ye(S)
2979
- }), {}), [j, ye]), w = s, $ = To(w);
2979
+ }), {}), [j, ye]), w = s, L = To(w);
2980
2980
  return /* @__PURE__ */ C(Io, E({
2981
2981
  ref: n,
2982
- className: te($.root, K),
2982
+ className: te(L.root, K),
2983
2983
  ownerState: w,
2984
2984
  role: "group"
2985
2985
  }, ce, {
@@ -3190,7 +3190,7 @@ const Ir = ({
3190
3190
  sx: h,
3191
3191
  autoFocus: x,
3192
3192
  showViewSwitcher: O,
3193
- disableIgnoringDatePartForTimeValidation: L,
3193
+ disableIgnoringDatePartForTimeValidation: $,
3194
3194
  timezone: I
3195
3195
  }) => /* @__PURE__ */ C(Ot, {
3196
3196
  view: e,
@@ -3219,7 +3219,7 @@ const Ir = ({
3219
3219
  sx: h,
3220
3220
  autoFocus: x,
3221
3221
  showViewSwitcher: O,
3222
- disableIgnoringDatePartForTimeValidation: L,
3222
+ disableIgnoringDatePartForTimeValidation: $,
3223
3223
  timezone: I
3224
3224
  }), Vr = ({
3225
3225
  view: e,
@@ -3248,7 +3248,7 @@ const Ir = ({
3248
3248
  autoFocus: h,
3249
3249
  disableIgnoringDatePartForTimeValidation: x,
3250
3250
  timeSteps: O,
3251
- skipDisabled: L,
3251
+ skipDisabled: $,
3252
3252
  timezone: I
3253
3253
  }) => /* @__PURE__ */ C(Rt, {
3254
3254
  view: e,
@@ -3277,7 +3277,7 @@ const Ir = ({
3277
3277
  autoFocus: h,
3278
3278
  disableIgnoringDatePartForTimeValidation: x,
3279
3279
  timeStep: O == null ? void 0 : O.minutes,
3280
- skipDisabled: L,
3280
+ skipDisabled: $,
3281
3281
  timezone: I
3282
3282
  }), Nr = ({
3283
3283
  view: e,
@@ -3306,7 +3306,7 @@ const Ir = ({
3306
3306
  autoFocus: h,
3307
3307
  disableIgnoringDatePartForTimeValidation: x,
3308
3308
  timeSteps: O,
3309
- skipDisabled: L,
3309
+ skipDisabled: $,
3310
3310
  timezone: I
3311
3311
  }) => /* @__PURE__ */ C(Et, {
3312
3312
  view: e,
@@ -3335,9 +3335,9 @@ const Ir = ({
3335
3335
  autoFocus: h,
3336
3336
  disableIgnoringDatePartForTimeValidation: x,
3337
3337
  timeSteps: O,
3338
- skipDisabled: L,
3338
+ skipDisabled: $,
3339
3339
  timezone: I
3340
- }), Vo = Lt($t, {
3340
+ }), Vo = $t(Lt, {
3341
3341
  shouldForwardProp: (e) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
3342
3342
  e
3343
3343
  )
@@ -3444,7 +3444,7 @@ const Ir = ({
3444
3444
  minHeight: e.spacing(6),
3445
3445
  marginBottom: e.spacing(1),
3446
3446
  padding: e.spacing(0.5, 1.5),
3447
- backgroundColor: e.palette.background.paper,
3447
+ backgroundColor: `${e.palette.background.paper} !important`,
3448
3448
  borderBottom: `1px solid ${e.palette.divider}`
3449
3449
  },
3450
3450
  ".MuiAutocomplete-listbox &.MuiAutocomplete-option:first-of-type": {