@getsoren/design-system 4.52.0 → 4.52.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.
Files changed (3) hide show
  1. package/dist/main.cjs +41 -41
  2. package/dist/main.js +85 -66
  3. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as mo, c as gn, i as vo, n as Jo, o as bo, r as yo, s as Co, t as Wp } from "./grey-BAzK6S76.js";
2
- import { Alert as Ql, AppBar as Ji, Autocomplete as Kp, Avatar as ln, Backdrop as jp, Badge as Hp, Box as le, Button as hn, Card as qo, CardContent as yd, Checkbox as ga, Chip as Tr, CircularProgress as Nl, Collapse as Yi, CssBaseline as Gp, Dialog as Zp, DialogActions as Xp, DialogContent as zp, DialogContentText as Jp, Divider as Bn, Fade as Ul, GlobalStyles as mn, IconButton as ct, InputAdornment as Do, InputLabel as Yp, List as vn, ListItem as br, ListItemAvatar as $p, ListItemButton as $i, ListItemIcon as Cd, ListItemText as Gr, Menu as xd, MenuItem as Ed, Modal as _p, Paper as ql, Popper as ef, Radio as tf, Skeleton as vt, Slide as rf, Snackbar as of, Stack as de, SvgIcon as Rt, SwipeableDrawer as nf, Tab as af, TextField as Pn, TextareaAutosize as lf, ThemeProvider as sf, ToggleButton as Xn, ToggleButtonGroup as uf, Toolbar as df, Tooltip as kr, Typography as we, alpha as Bt, createTheme as Oo, css as ha, getOverlayAlpha as _i, responsiveFontSizes as Wl, useMediaQuery as bn, useTheme as pt } from "@mui/material";
2
+ import { Alert as Ql, AppBar as Ji, Autocomplete as Kp, Avatar as ln, Backdrop as jp, Badge as Hp, Box as le, Button as hn, Card as qo, CardContent as yd, Checkbox as ga, Chip as Tr, CircularProgress as Nl, Collapse as Yi, CssBaseline as Gp, Dialog as Zp, DialogActions as Xp, DialogContent as zp, DialogContentText as Jp, Divider as Bn, Fade as Ul, GlobalStyles as mn, IconButton as ct, InputAdornment as Do, InputLabel as Yp, List as vn, ListItem as br, ListItemAvatar as $p, ListItemButton as $i, ListItemIcon as Cd, ListItemText as Gr, Menu as xd, MenuItem as Ed, Modal as _p, Paper as ql, Popper as ef, Radio as tf, Skeleton as vt, Slide as rf, Snackbar as of, Stack as de, SvgIcon as Ot, SwipeableDrawer as nf, Tab as af, TextField as Pn, TextareaAutosize as lf, ThemeProvider as sf, ToggleButton as Xn, ToggleButtonGroup as uf, Toolbar as df, Tooltip as kr, Typography as we, alpha as Tt, createTheme as Oo, css as ha, getOverlayAlpha as _i, responsiveFontSizes as Wl, useMediaQuery as bn, useTheme as pt } from "@mui/material";
3
3
  import * as I from "react";
4
4
  import Rr, { Children as Sd, cloneElement as ao, createContext as Fa, forwardRef as Ct, isValidElement as xt, memo as Qa, useCallback as qe, useContext as lr, useEffect as Ft, useImperativeHandle as wd, useMemo as jr, useRef as Ke, useState as De } from "react";
5
5
  import * as yn from "react/jsx-runtime";
@@ -93,7 +93,7 @@ function Jn(e, t) {
93
93
  function Df(e, t) {
94
94
  return e.map(t).join("");
95
95
  }
96
- var Wa = 1, Mo = 1, Dd = 0, Ot = 0, ot = 0, Wo = "";
96
+ var Wa = 1, Mo = 1, Dd = 0, kt = 0, ot = 0, Wo = "";
97
97
  function Ka(e, t, r, n, a, i, l) {
98
98
  return {
99
99
  value: e,
@@ -115,16 +115,16 @@ function Mf() {
115
115
  return ot;
116
116
  }
117
117
  function Vf() {
118
- return ot = Ot > 0 ? dt(Wo, --Ot) : 0, Mo--, ot === 10 && (Mo = 1, Wa--), ot;
118
+ return ot = kt > 0 ? dt(Wo, --kt) : 0, Mo--, ot === 10 && (Mo = 1, Wa--), ot;
119
119
  }
120
120
  function Lt() {
121
- return ot = Ot < Dd ? dt(Wo, Ot++) : 0, Mo++, ot === 10 && (Mo = 1, Wa++), ot;
121
+ return ot = kt < Dd ? dt(Wo, kt++) : 0, Mo++, ot === 10 && (Mo = 1, Wa++), ot;
122
122
  }
123
123
  function mr() {
124
- return dt(Wo, Ot);
124
+ return dt(Wo, kt);
125
125
  }
126
126
  function na() {
127
- return Ot;
127
+ return kt;
128
128
  }
129
129
  function Dn(e, t) {
130
130
  return Cn(Wo, e, t);
@@ -162,13 +162,13 @@ function xn(e) {
162
162
  return 0;
163
163
  }
164
164
  function Md(e) {
165
- return Wa = Mo = 1, Dd = pr(Wo = e), Ot = 0, [];
165
+ return Wa = Mo = 1, Dd = pr(Wo = e), kt = 0, [];
166
166
  }
167
167
  function Vd(e) {
168
168
  return Wo = "", e;
169
169
  }
170
170
  function aa(e) {
171
- return Pd(Dn(Ot - 1, rl(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
171
+ return Pd(Dn(kt - 1, rl(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
172
172
  }
173
173
  function Lf(e) {
174
174
  for (; (ot = mr()) && ot < 33; ) Lt();
@@ -181,7 +181,7 @@ function Ff(e, t) {
181
181
  function rl(e) {
182
182
  for (; Lt(); ) switch (ot) {
183
183
  case e:
184
- return Ot;
184
+ return kt;
185
185
  case 34:
186
186
  case 39:
187
187
  e !== 34 && e !== 39 && rl(ot);
@@ -193,15 +193,15 @@ function rl(e) {
193
193
  Lt();
194
194
  break;
195
195
  }
196
- return Ot;
196
+ return kt;
197
197
  }
198
198
  function Qf(e, t) {
199
199
  for (; Lt() && e + ot !== 57; ) if (e + ot === 84 && mr() === 47) break;
200
- return "/*" + Dn(t, Ot - 1) + "*" + qa(e === 47 ? e : Lt());
200
+ return "/*" + Dn(t, kt - 1) + "*" + qa(e === 47 ? e : Lt());
201
201
  }
202
202
  function Nf(e) {
203
203
  for (; !xn(mr()); ) Lt();
204
- return Dn(e, Ot);
204
+ return Dn(e, kt);
205
205
  }
206
206
  function Uf(e) {
207
207
  return Vd(ia("", null, null, null, [""], e = Md(e), 0, [0], e));
@@ -340,13 +340,13 @@ function Hf(e) {
340
340
  var Gf = function(t, r, n) {
341
341
  for (var a = 0, i = 0; a = i, i = mr(), a === 38 && i === 12 && (r[n] = 1), !xn(i); )
342
342
  Lt();
343
- return Dn(t, Ot);
343
+ return Dn(t, kt);
344
344
  }, Zf = function(t, r) {
345
345
  var n = -1, a = 44;
346
346
  do
347
347
  switch (xn(a)) {
348
348
  case 0:
349
- a === 38 && mr() === 12 && (r[n] = 1), t[n] += Gf(Ot - 1, r, n);
349
+ a === 38 && mr() === 12 && (r[n] = 1), t[n] += Gf(kt - 1, r, n);
350
350
  break;
351
351
  case 2:
352
352
  t[n] += aa(a);
@@ -1292,7 +1292,7 @@ var bA = (e, t) => {
1292
1292
  light: "#FFD95B",
1293
1293
  main: "#FFA726"
1294
1294
  }
1295
- } }, Tt = { palette: {
1295
+ } }, Rt = { palette: {
1296
1296
  action: {
1297
1297
  active: "rgba(255, 255, 255, 0.54)",
1298
1298
  disabled: "rgba(255, 255, 255, 0.26)",
@@ -1421,9 +1421,9 @@ var bA = (e, t) => {
1421
1421
  } }, SA = ({ sx: e, ...t }) => /* @__PURE__ */ d(ln, {
1422
1422
  variant: "rounded",
1423
1423
  sx: {
1424
- "& svg": { color: Tt?.palette?.text?.disabled },
1425
- backgroundColor: Tt?.palette?.grey?.[100],
1426
- color: Tt?.palette?.text?.primary,
1424
+ "& svg": { color: Rt?.palette?.text?.disabled },
1425
+ backgroundColor: Rt?.palette?.grey?.[100],
1426
+ color: Rt?.palette?.text?.primary,
1427
1427
  ...e
1428
1428
  },
1429
1429
  ...t
@@ -11785,7 +11785,7 @@ function D2(e) {
11785
11785
  ut || (Yt(!0), wt(!0), Le.current = !1, z && z(N));
11786
11786
  }, Sr = (N, U) => {
11787
11787
  ut && (Yt(!1), je.current = !1, Be.current = null, V && V(N, U));
11788
- }, kt = (N, U, ae, he) => {
11788
+ }, Bt = (N, U, ae, he) => {
11789
11789
  if (m) {
11790
11790
  if (_.length === U.length && _.every((Ie, Ye) => Ie === U[Ye])) return;
11791
11791
  } else if (_ === U) return;
@@ -11801,7 +11801,7 @@ function D2(e) {
11801
11801
  const He = Ye.findIndex((tt) => k(U, tt));
11802
11802
  He === -1 ? Ye.push(U) : he !== "freeSolo" && (Ye.splice(He, 1), Ie = "removeOption");
11803
11803
  }
11804
- nt(N, Ye, Ie), kt(N, Ye, Ie, { option: U }), !b && (!N || !N.ctrlKey && !N.metaKey) && Sr(N, Ie), (l === !0 || l === "touch" && Le.current || l === "mouse" && !Le.current) && $.current.blur();
11804
+ nt(N, Ye, Ie), Bt(N, Ye, Ie, { option: U }), !b && (!N || !N.ctrlKey && !N.metaKey) && Sr(N, Ie), (l === !0 || l === "touch" && Le.current || l === "mouse" && !Le.current) && $.current.blur();
11805
11805
  };
11806
11806
  function _r(N, U) {
11807
11807
  if (N === -1) return -1;
@@ -11819,7 +11819,7 @@ function D2(e) {
11819
11819
  let ae = G;
11820
11820
  G === -1 && U === "previous" ? (ae = _.length - 1, w && Ae !== "" && (At(""), L && L(N, "", "reset"))) : (ae += U === "next" ? 1 : -1, ae < 0 && (ae = 0), ae === _.length && (ae = -1)), ae = _r(ae, U), fe(ae), ge(ae);
11821
11821
  }, ho = (N) => {
11822
- re.current = !0, At(""), L && L(N, "", "clear"), kt(N, m ? [] : null, "clear");
11822
+ re.current = !0, At(""), L && L(N, "", "clear"), Bt(N, m ? [] : null, "clear");
11823
11823
  }, Si = (N) => (U) => {
11824
11824
  if (N.onKeyDown && N.onKeyDown(U), !U.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(U.key) && (fe(-1), ge(-1)), U.which !== 229))
11825
11825
  switch (U.key) {
@@ -11895,16 +11895,16 @@ function D2(e) {
11895
11895
  case "Backspace":
11896
11896
  if (m && !X && Ae === "" && _.length > 0) {
11897
11897
  const ae = G === -1 ? _.length - 1 : G, he = _.slice();
11898
- he.splice(ae, 1), kt(U, he, "removeOption", { option: _[ae] });
11898
+ he.splice(ae, 1), Bt(U, he, "removeOption", { option: _[ae] });
11899
11899
  }
11900
- !m && F && !X && Ae === "" && kt(U, null, "removeOption", { option: _ });
11900
+ !m && F && !X && Ae === "" && Bt(U, null, "removeOption", { option: _ });
11901
11901
  break;
11902
11902
  case "Delete":
11903
11903
  if (m && !X && Ae === "" && _.length > 0 && G !== -1) {
11904
11904
  const ae = G, he = _.slice();
11905
- he.splice(ae, 1), kt(U, he, "removeOption", { option: _[ae] });
11905
+ he.splice(ae, 1), Bt(U, he, "removeOption", { option: _[ae] });
11906
11906
  }
11907
- !m && F && !X && Ae === "" && kt(U, null, "removeOption", { option: _ });
11907
+ !m && F && !X && Ae === "" && Bt(U, null, "removeOption", { option: _ });
11908
11908
  break;
11909
11909
  default:
11910
11910
  }
@@ -11922,7 +11922,7 @@ function D2(e) {
11922
11922
  Nt(!1), ue.current = !0, re.current = !1, i && xe.current !== -1 && Je && Be.current !== "mouse" && Be.current !== "touch" ? Nr(N, Qe[xe.current], "blur") : i && w && Ae !== "" ? Nr(N, Ae, "blur", "freeSolo") : s && nt(N, _, "blur"), Sr(N, "blur");
11923
11923
  }, Ts = (N) => {
11924
11924
  const U = N.target.value, ae = Ae !== U;
11925
- ae && (At(U), je.current = !1, L && L(N, U, "input")), U === "" ? !f && !m && !F && kt(N, null, "clear") : Wt(N), ae && wt(!1);
11925
+ ae && (At(U), je.current = !1, L && L(N, U, "input")), U === "" ? !f && !m && !F && Bt(N, null, "clear") : Wt(N), ae && wt(!1);
11926
11926
  }, Zo = (N) => {
11927
11927
  const U = Number(N.currentTarget.getAttribute("data-option-index"));
11928
11928
  xe.current !== U ? Ut({
@@ -11940,9 +11940,9 @@ function D2(e) {
11940
11940
  Nr(N, Qe[Number(N.currentTarget.getAttribute("data-option-index"))], "selectOption"), Le.current = !1;
11941
11941
  }, ur = (N) => (U) => {
11942
11942
  const ae = _.slice();
11943
- ae.splice(N, 1), kt(U, ae, "removeOption", { option: _[N] });
11943
+ ae.splice(N, 1), Bt(U, ae, "removeOption", { option: _[N] });
11944
11944
  }, Ii = (N) => {
11945
- kt(N, null, "removeOption", { option: _ });
11945
+ Bt(N, null, "removeOption", { option: _ });
11946
11946
  }, Gn = (N) => {
11947
11947
  ut ? Sr(N, "toggleInput") : Wt(N);
11948
11948
  }, Ti = (N) => {
@@ -14169,9 +14169,9 @@ var Ee = ve("MuiAutocomplete", [
14169
14169
  _t,
14170
14170
  Sr
14171
14171
  ]);
14172
- const kt = I.useRef([]), Nr = I.useRef(!1), _r = ht ? Wt : kt.current;
14172
+ const Bt = I.useRef([]), Nr = I.useRef(!1), _r = ht ? Wt : Bt.current;
14173
14173
  Pr(() => {
14174
- ht && !Nr.current && (kt.current = []), Nr.current = ht, ht && Wt.length > 0 && (kt.current = Wt);
14174
+ ht && !Nr.current && (Bt.current = []), Nr.current = ht, ht && Wt.length > 0 && (Bt.current = Wt);
14175
14175
  }, [ht, Wt]);
14176
14176
  const go = !E && !C && et && !Pe, ho = (!P || R === !0) && R !== !1, { onMouseDown: Si } = Je(), { ref: wi, ...Hn } = at(), Zo = Q || ((Oe) => Oe.label ?? Oe), it = {
14177
14177
  ...n,
@@ -15330,7 +15330,7 @@ process.env.NODE_ENV !== "production" && (Ci.propTypes = {
15330
15330
  "standard"
15331
15331
  ])
15332
15332
  });
15333
- var Mv = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
15333
+ var Mv = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
15334
15334
  width: "8",
15335
15335
  height: "8",
15336
15336
  viewBox: "0 0 8 8",
@@ -15451,7 +15451,7 @@ var Mv = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */
15451
15451
  })] })]
15452
15452
  }))
15453
15453
  });
15454
- }, No = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
15454
+ }, No = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
15455
15455
  fontSize: t,
15456
15456
  height: 24,
15457
15457
  width: 24,
@@ -18857,7 +18857,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
18857
18857
  variant: "outlined"
18858
18858
  },
18859
18859
  style: ({ theme: e }) => {
18860
- const t = Bt(e.palette.text.primary, e.palette.action.hoverOpacity);
18860
+ const t = Tt(e.palette.text.primary, e.palette.action.hoverOpacity);
18861
18861
  return {
18862
18862
  "&:hover": {
18863
18863
  backgroundColor: e.palette.tertiary.main,
@@ -18899,7 +18899,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
18899
18899
  variant: "contained"
18900
18900
  },
18901
18901
  style: ({ theme: e }) => {
18902
- const t = Bt(e.palette.text.primary, e.palette.action.hoverOpacity);
18902
+ const t = Tt(e.palette.text.primary, e.palette.action.hoverOpacity);
18903
18903
  return {
18904
18904
  "&:hover": {
18905
18905
  backgroundColor: e.palette.grey.A100,
@@ -18910,6 +18910,25 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
18910
18910
  };
18911
18911
  }
18912
18912
  },
18913
+ {
18914
+ props: {
18915
+ color: "contrast",
18916
+ variant: "outlined"
18917
+ },
18918
+ style: ({ theme: e }) => {
18919
+ const t = Tt(e.palette.text.primary, e.palette.action.hoverOpacity);
18920
+ return {
18921
+ "&:hover": {
18922
+ backgroundColor: e.palette.grey.A100,
18923
+ backgroundImage: `linear-gradient(${t}, ${t})`,
18924
+ borderColor: e.palette.text.disabled
18925
+ },
18926
+ backgroundColor: e.palette.grey.A100,
18927
+ borderColor: e.palette.divider,
18928
+ color: e.palette.text.primary
18929
+ };
18930
+ }
18931
+ },
18913
18932
  {
18914
18933
  props: { variant: "link" },
18915
18934
  style: ({ theme: e, ownerState: t }) => {
@@ -18918,7 +18937,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
18918
18937
  "&:hover": {
18919
18938
  backgroundColor: "transparent",
18920
18939
  textDecoration: "underline",
18921
- textDecorationColor: Bt(r || e.palette.primary.main, 0.4)
18940
+ textDecorationColor: Tt(r || e.palette.primary.main, 0.4)
18922
18941
  },
18923
18942
  color: r,
18924
18943
  fontWeight: "inherit",
@@ -19144,7 +19163,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19144
19163
  }, {
19145
19164
  props: { variant: "outlined" },
19146
19165
  style: ({ theme: e }) => {
19147
- const { common: t } = e.palette, r = Bt(t.white, +_i(1));
19166
+ const { common: t } = e.palette, r = Tt(t.white, +_i(1));
19148
19167
  return { backgroundImage: `linear-gradient(${r}, ${r})` };
19149
19168
  }
19150
19169
  }]
@@ -19302,7 +19321,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19302
19321
  transform: "translateY(-50%)",
19303
19322
  width: 20
19304
19323
  },
19305
- backgroundColor: Bt(e.palette.secondary.main, 0.08),
19324
+ backgroundColor: Tt(e.palette.secondary.main, 0.08),
19306
19325
  borderColor: e.palette.secondary.main
19307
19326
  },
19308
19327
  backgroundColor: "transparent",
@@ -19515,7 +19534,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19515
19534
  style: ({ theme: e }) => {
19516
19535
  const t = encodeURIComponent(e.palette.action.active);
19517
19536
  return { "& .MuiInputBase-input::-webkit-search-cancel-button": {
19518
- "&:hover": { backgroundColor: Bt(e.palette.action.active, e.palette.action.hoverOpacity) },
19537
+ "&:hover": { backgroundColor: Tt(e.palette.action.active, e.palette.action.hoverOpacity) },
19519
19538
  backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z' fill='${t}'%3E%3C/path%3E%3C/svg%3E")`,
19520
19539
  backgroundPosition: "center",
19521
19540
  backgroundRepeat: "no-repeat",
@@ -19533,7 +19552,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19533
19552
  },
19534
19553
  MuiToggleButton: {
19535
19554
  styleOverrides: { root: ({ theme: e, ownerState: t }) => ({
19536
- "&.Mui-selected": { ...t.color && t.color !== "standard" && { backgroundColor: Bt(e.palette[t.color].main, 0.12) } },
19555
+ "&.Mui-selected": { ...t.color && t.color !== "standard" && { backgroundColor: Tt(e.palette[t.color].main, 0.12) } },
19537
19556
  borderRadius: e.shape.borderRadius,
19538
19557
  padding: "8px 11px"
19539
19558
  }) },
@@ -19654,7 +19673,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19654
19673
  letterSpacing: -0.3
19655
19674
  }
19656
19675
  })
19657
- }, Ll = Wl(Oo(Ss)), Bp = Wl(Oo(Ss, EA)), Pp = Wl(Oo(Ss, Tt)), TC = {
19676
+ }, Ll = Wl(Oo(Ss)), Bp = Wl(Oo(Ss, EA)), Pp = Wl(Oo(Ss, Rt)), TC = {
19658
19677
  commonTheme: Ll,
19659
19678
  darkTheme: Pp,
19660
19679
  lightTheme: Bp
@@ -19754,7 +19773,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
19754
19773
  }, ud = "en", wy = (e) => e in fa, Iy = () => {
19755
19774
  const { language: e } = lr(Dp), t = wy(e) ? fa[e] : fa[ud];
19756
19775
  return { t: (n) => t[n] ?? fa[ud][n] ?? n };
19757
- }, xi = Iy, rn = (e) => `linear-gradient(${Bt("#fff", +_i(e))}, ${Bt("#fff", +_i(e))})`, dd = 56, Ty = { viewMode: "soren-planning-timeline-view-mode" }, Ry = [
19776
+ }, xi = Iy, rn = (e) => `linear-gradient(${Tt("#fff", +_i(e))}, ${Tt("#fff", +_i(e))})`, dd = 56, Ty = { viewMode: "soren-planning-timeline-view-mode" }, Ry = [
19758
19777
  "day",
19759
19778
  "week",
19760
19779
  "month",
@@ -20112,8 +20131,8 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
20112
20131
  "primary",
20113
20132
  "secondary"
20114
20133
  ], By = (e) => ky.includes(e), Py = ({ color: e, sx: t, variant: r = "filled", fontSize: n = "medium", ...a }, i) => {
20115
- const { palette: l } = pt(), s = l.mode === "dark" ? l.text.disabled : l.grey[400], u = e || s, c = By(e) ? l?.[e]?.main : u, p = Bt(c, 0.2);
20116
- return /* @__PURE__ */ M(Rt, {
20134
+ const { palette: l } = pt(), s = l.mode === "dark" ? l.text.disabled : l.grey[400], u = e || s, c = By(e) ? l?.[e]?.main : u, p = Tt(c, 0.2);
20135
+ return /* @__PURE__ */ M(Ot, {
20117
20136
  ...a,
20118
20137
  viewBox: "0 0 16 16",
20119
20138
  ref: i,
@@ -20142,7 +20161,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
20142
20161
  fill: "transparent"
20143
20162
  })]
20144
20163
  });
20145
- }, Dy = Ct(Py), Aa = Dy, My = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
20164
+ }, Dy = Ct(Py), Aa = Dy, My = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
20146
20165
  width: "12",
20147
20166
  height: "12",
20148
20167
  viewBox: "0 0 12 12",
@@ -20155,7 +20174,7 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
20155
20174
  fill: r,
20156
20175
  fillOpacity: "0.54"
20157
20176
  })
20158
- }), ws = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
20177
+ }), ws = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
20159
20178
  width: "16",
20160
20179
  height: "16",
20161
20180
  viewBox: "0 0 16 16",
@@ -20746,12 +20765,12 @@ var vb = (e) => /* @__PURE__ */ M(yt, {
20746
20765
  size: "small",
20747
20766
  sx: {
20748
20767
  "&:hover": {
20749
- backgroundColor: Tt?.palette?.primary?.dark,
20750
- opacity: Tt?.palette?.primary?.dark
20768
+ backgroundColor: Rt?.palette?.primary?.dark,
20769
+ opacity: Rt?.palette?.primary?.dark
20751
20770
  },
20752
- backgroundColor: Tt?.palette.primary.main,
20753
- borderColor: Tt?.palette.primary.main,
20754
- color: Tt?.palette?.text?.contrast,
20771
+ backgroundColor: Rt?.palette.primary.main,
20772
+ borderColor: Rt?.palette.primary.main,
20773
+ color: Rt?.palette?.text?.contrast,
20755
20774
  ...e
20756
20775
  },
20757
20776
  ...t
@@ -21257,7 +21276,7 @@ function LC({ label: e, value: t, onChange: r, checked: n, onCheckedChange: a, o
21257
21276
  ]
21258
21277
  })] });
21259
21278
  }
21260
- var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */ M(Rt, {
21279
+ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */ M(Ot, {
21261
21280
  width: "40",
21262
21281
  height: "40",
21263
21282
  viewBox: "0 0 40 40",
@@ -21413,7 +21432,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21413
21432
  },
21414
21433
  size: "small",
21415
21434
  "aria-label": "increment",
21416
- children: /* @__PURE__ */ d(Rt, {
21435
+ children: /* @__PURE__ */ d(Ot, {
21417
21436
  viewBox: "0 0 24 24",
21418
21437
  children: /* @__PURE__ */ d("path", { d: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z" })
21419
21438
  })
@@ -21429,7 +21448,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21429
21448
  disabled: t === n || t === 0,
21430
21449
  size: "small",
21431
21450
  "aria-label": "decrement",
21432
- children: /* @__PURE__ */ d(Rt, {
21451
+ children: /* @__PURE__ */ d(Ot, {
21433
21452
  viewBox: "0 0 24 24",
21434
21453
  children: /* @__PURE__ */ d("path", { d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z" })
21435
21454
  })
@@ -21472,12 +21491,12 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21472
21491
  ref: a,
21473
21492
  sx: {
21474
21493
  "& .MuiInputBase-root": {
21475
- "&:hover .MuiOutlinedInput-notchedOutline": { borderColor: Tt?.palette?.primary?.light },
21476
- backgroundColor: Tt?.palette?.grey?.["50"],
21477
- color: Tt?.palette?.text?.primary
21494
+ "&:hover .MuiOutlinedInput-notchedOutline": { borderColor: Rt?.palette?.primary?.light },
21495
+ backgroundColor: Rt?.palette?.grey?.["50"],
21496
+ color: Rt?.palette?.text?.primary
21478
21497
  },
21479
- "& .MuiOutlinedInput-notchedOutline": { borderColor: Bt(Tt?.palette?.border?.outline, 0.23) },
21480
- "& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: Tt?.palette?.primary?.main },
21498
+ "& .MuiOutlinedInput-notchedOutline": { borderColor: Tt(Rt?.palette?.border?.outline, 0.23) },
21499
+ "& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: Rt?.palette?.primary?.main },
21481
21500
  maxWidth: 400,
21482
21501
  ...e,
21483
21502
  "input[type='search']::-webkit-search-cancel-button": { filter: ({ palette: i }) => i?.mode === "light" ? "invert(1)" : "invert(0)" }
@@ -21488,7 +21507,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21488
21507
  autoComplete: "off",
21489
21508
  startAdornment: r === "search" && /* @__PURE__ */ d(Do, {
21490
21509
  position: "start",
21491
- children: /* @__PURE__ */ d(Rt, {
21510
+ children: /* @__PURE__ */ d(Ot, {
21492
21511
  focusable: "false",
21493
21512
  "aria-hidden": "true",
21494
21513
  viewBox: "0 0 24 24",
@@ -21576,7 +21595,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21576
21595
  ...e
21577
21596
  }
21578
21597
  });
21579
- }), a6 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
21598
+ }), a6 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
21580
21599
  width: "24",
21581
21600
  height: "24",
21582
21601
  viewBox: "0 0 24 24",
@@ -21588,7 +21607,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21588
21607
  d: "M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",
21589
21608
  fill: r
21590
21609
  })
21591
- }), i6 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Rt, {
21610
+ }), i6 = ({ sx: e, fontSize: t, color: r = "currentColor" }) => /* @__PURE__ */ d(Ot, {
21592
21611
  width: "24",
21593
21612
  height: "24",
21594
21613
  viewBox: "0 0 24 24",
@@ -21652,7 +21671,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21652
21671
  })]
21653
21672
  })]
21654
21673
  });
21655
- }, WC = s6, Mp = ({ color: e = "currentColor" }) => /* @__PURE__ */ d(Rt, {
21674
+ }, WC = s6, Mp = ({ color: e = "currentColor" }) => /* @__PURE__ */ d(Ot, {
21656
21675
  focusable: "false",
21657
21676
  "aria-hidden": "true",
21658
21677
  viewBox: "0 0 24 24",
@@ -21684,7 +21703,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21684
21703
  })
21685
21704
  })
21686
21705
  });
21687
- }, c6 = d6, p6 = ({ sx: e, color: t = "currentColor" }) => /* @__PURE__ */ d(Rt, {
21706
+ }, c6 = d6, p6 = ({ sx: e, color: t = "currentColor" }) => /* @__PURE__ */ d(Ot, {
21688
21707
  width: "16",
21689
21708
  height: "16",
21690
21709
  viewBox: "0 0 16 16",
@@ -21950,7 +21969,7 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
21950
21969
  position: "absolute",
21951
21970
  right: -20,
21952
21971
  top: -12
21953
- }, g6 = ({ expanded: e }) => /* @__PURE__ */ d(Rt, {
21972
+ }, g6 = ({ expanded: e }) => /* @__PURE__ */ d(Ot, {
21954
21973
  fontSize: "small",
21955
21974
  viewBox: "0 0 24 24",
21956
21975
  sx: {
@@ -22221,8 +22240,8 @@ var zy = ({ fontSize: e, sx: t, color: r = "currentColor" }) => /* @__PURE__ */
22221
22240
  textDecoration: "none",
22222
22241
  width: "100%"
22223
22242
  },
22224
- "& > a.active": { backgroundColor: ({ palette: P }) => Bt(P.primary.main, P.action.selectedOpacity) },
22225
- "& > a.active:hover": { backgroundColor: ({ palette: P }) => Bt(P.primary.main, P.action.selectedOpacity + P.action.hoverOpacity) },
22243
+ "& > a.active": { backgroundColor: ({ palette: P }) => Tt(P.primary.main, P.action.selectedOpacity) },
22244
+ "& > a.active:hover": { backgroundColor: ({ palette: P }) => Tt(P.primary.main, P.action.selectedOpacity + P.action.hoverOpacity) },
22226
22245
  overflow: "hidden",
22227
22246
  padding: "0 !important"
22228
22247
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.52.0",
5
+ "version": "4.52.1",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",