@solostylist/ui-kit 1.0.34 → 1.0.36

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 (37) hide show
  1. package/dist/{Menu-BDspvd-Q.js → Menu-BTGaz6HX.js} +11 -11
  2. package/dist/{Stack-hZ9m9_Gh.js → Stack-CHCAZYKm.js} +1 -1
  3. package/dist/{Typography-Cf3fyOHg.js → Typography-8CUP66S2.js} +2 -2
  4. package/dist/{createSvgIcon-GD-thYZm.js → createSvgIcon-FIMSBrG5.js} +1 -1
  5. package/dist/{index-CVr30Fc-.js → index-BKXuuq9K.js} +1 -1
  6. package/dist/{memoTheme-2xILj8Pd.js → memoTheme-Bz_6CvJG.js} +2 -2
  7. package/dist/s-data-table/s-data-table.js +3 -3
  8. package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
  9. package/dist/s-dialog-message/s-dialog-message.js +1 -1
  10. package/dist/s-file-dropzone/s-file-dropzone.js +2 -2
  11. package/dist/s-multi-select/s-multi-select.js +84 -81
  12. package/dist/s-smart-text-field/s-text-field.d.ts +6 -1
  13. package/dist/s-smart-text-field/s-text-field.js +1584 -1578
  14. package/dist/s-text-editor/s-text-editor-toolbar.js +1933 -2353
  15. package/dist/s-tip/s-tip.js +2 -2
  16. package/dist/theme/components/avatar.d.ts +5 -0
  17. package/dist/theme/components/avatar.js +6 -3
  18. package/dist/theme/components/backdrop.d.ts +12 -0
  19. package/dist/theme/components/backdrop.js +12 -0
  20. package/dist/theme/components/components.d.ts +60 -0
  21. package/dist/theme/components/components.js +15 -3
  22. package/dist/theme/components/container.d.ts +5 -0
  23. package/dist/theme/components/container.js +6 -0
  24. package/dist/theme/components/popover.d.ts +16 -0
  25. package/dist/theme/components/popover.js +7 -0
  26. package/dist/theme/components/rating.d.ts +7 -0
  27. package/dist/theme/components/rating.js +8 -0
  28. package/dist/theme/components/slider.d.ts +7 -0
  29. package/dist/theme/components/slider.js +8 -0
  30. package/dist/theme/components/svg-icon.d.ts +9 -0
  31. package/dist/theme/components/svg-icon.js +10 -0
  32. package/dist/theme/customizations/data-display.js +3 -1
  33. package/dist/theme/customizations/inputs.js +55 -35
  34. package/dist/theme/customizations/navigation.js +30 -48
  35. package/dist/{useSlot-Cwl3uYYg.js → useSlot-DFX3jR9F.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/menuItemClasses-BuN4fyVT.js +0 -12
@@ -3,9 +3,9 @@ import ve from "react";
3
3
  import { P as e, g as le, a as He, q as ze, l as rt } from "./createTheme-CyFSna1a.js";
4
4
  import { T as Rt, c as te } from "./identifier-BA7fwE7E.js";
5
5
  import { j as L } from "./jsx-runtime-C5mzlN2N.js";
6
- import { d as Ot, u as ce, s as W, c as ue, m as it, r as Nt } from "./memoTheme-2xILj8Pd.js";
6
+ import { d as Ot, u as ce, s as W, c as ue, m as it, b as Nt } from "./memoTheme-Bz_6CvJG.js";
7
7
  import { g as pe } from "./generateUtilityClasses-CvAVhM6T.js";
8
- import { c as we, d as wt, u as oe, a as X, b as We, f as St, m as Ct, r as Mt, e as kt, g as Dt, h as It, i as jt } from "./useSlot-Cwl3uYYg.js";
8
+ import { c as we, d as wt, u as oe, a as X, b as We, f as St, m as Ct, r as Mt, e as kt, g as Dt, h as It, i as jt } from "./useSlot-DFX3jR9F.js";
9
9
  import { u as Ft } from "./useTheme-TEQWKSsD.js";
10
10
  import { _ as Lt, a as At, b as st } from "./TransitionGroup-CuA3gNyE.js";
11
11
  import * as $t from "react-dom";
@@ -396,16 +396,13 @@ G.EXITED = Z;
396
396
  G.ENTERING = ee;
397
397
  G.ENTERED = ae;
398
398
  G.EXITING = Ae;
399
- function Ht(t) {
400
- return typeof t == "string";
401
- }
402
399
  function Ee(t, n, o, i, s) {
403
400
  if (process.env.NODE_ENV === "production")
404
401
  return null;
405
402
  const r = t[n], a = s || n;
406
403
  return r == null ? null : r && r.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
407
404
  }
408
- function zt(t) {
405
+ function Ht(t) {
409
406
  const n = typeof t;
410
407
  switch (n) {
411
408
  case "number":
@@ -419,7 +416,7 @@ function zt(t) {
419
416
  function lt(t, n, o, i) {
420
417
  const s = t[n];
421
418
  if (s == null || !Number.isInteger(s)) {
422
- const r = zt(s);
419
+ const r = Ht(s);
423
420
  return new RangeError(`Invalid ${i} \`${n}\` of type \`${r}\` supplied to \`${o}\`, expected \`integer\`.`);
424
421
  }
425
422
  return null;
@@ -433,6 +430,9 @@ function $e() {
433
430
  ct.isRequired = lt;
434
431
  $e.isRequired = $e;
435
432
  const ut = process.env.NODE_ENV === "production" ? $e : ct;
433
+ function zt(t) {
434
+ return typeof t == "string";
435
+ }
436
436
  function Wt(t) {
437
437
  const {
438
438
  prototype: n = {}
@@ -2162,7 +2162,7 @@ const Pn = (t) => {
2162
2162
  });
2163
2163
  return /* @__PURE__ */ L.jsx(Q, {
2164
2164
  ...Me,
2165
- ...!Ht(Q) && {
2165
+ ...!zt(Q) && {
2166
2166
  slots: ye,
2167
2167
  slotProps: Ce,
2168
2168
  disableScrollLock: S
@@ -2949,9 +2949,9 @@ export {
2949
2949
  vt as L,
2950
2950
  Ln as M,
2951
2951
  yt as P,
2952
- z as a,
2952
+ ne as a,
2953
2953
  qt as d,
2954
2954
  Se as g,
2955
- Ht as i,
2956
- ne as o
2955
+ zt as i,
2956
+ z as o
2957
2957
  };
@@ -1,5 +1,5 @@
1
1
  import { P as e, h as O, r as m, f as V, j as C, m as D, g as E, e as N, k as T } from "./createTheme-CyFSna1a.js";
2
- import { a as R, b as F, c as B, s as M, u as w } from "./memoTheme-2xILj8Pd.js";
2
+ import { a as R, r as F, c as B, s as M, u as w } from "./memoTheme-Bz_6CvJG.js";
3
3
  import * as f from "react";
4
4
  import { c as G } from "./identifier-BA7fwE7E.js";
5
5
  import { j as U } from "./jsx-runtime-C5mzlN2N.js";
@@ -1,8 +1,8 @@
1
1
  import * as j from "react";
2
2
  import { c, P as r } from "./createTheme-CyFSna1a.js";
3
3
  import { c as O } from "./identifier-BA7fwE7E.js";
4
- import { i as S } from "./index-CVr30Fc-.js";
5
- import { u as w, s as B, c as P, m as W } from "./memoTheme-2xILj8Pd.js";
4
+ import { i as S } from "./index-BKXuuq9K.js";
5
+ import { u as w, s as B, c as P, m as W } from "./memoTheme-Bz_6CvJG.js";
6
6
  import { c as C } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
7
7
  import { g as R } from "./typographyClasses-DVLfmcGt.js";
8
8
  import { j as M } from "./jsx-runtime-C5mzlN2N.js";
@@ -2,7 +2,7 @@ import * as h from "react";
2
2
  import { j as w } from "./jsx-runtime-C5mzlN2N.js";
3
3
  import { c as x, P as o } from "./createTheme-CyFSna1a.js";
4
4
  import { c as N } from "./identifier-BA7fwE7E.js";
5
- import { u as b, s as O, c as R, m as T } from "./memoTheme-2xILj8Pd.js";
5
+ import { u as b, s as O, c as R, m as T } from "./memoTheme-Bz_6CvJG.js";
6
6
  import { g as I } from "./svgIconClasses-SRBiyaM8.js";
7
7
  const j = (e) => {
8
8
  const {
@@ -2,7 +2,7 @@ import "react";
2
2
  import { j as p } from "./jsx-runtime-C5mzlN2N.js";
3
3
  import { e as f } from "./extendSxProp-C6KgcV1-.js";
4
4
  import { P as e } from "./createTheme-CyFSna1a.js";
5
- import { d as a } from "./memoTheme-2xILj8Pd.js";
5
+ import { d as a } from "./memoTheme-Bz_6CvJG.js";
6
6
  import { T as c } from "./identifier-BA7fwE7E.js";
7
7
  import { u as m } from "./useTheme-TEQWKSsD.js";
8
8
  import { Global as y } from "@emotion/react";
@@ -282,12 +282,12 @@ function Oe(e) {
282
282
  const xe = he;
283
283
  export {
284
284
  ie as a,
285
- g as b,
285
+ Se as b,
286
286
  Ne as c,
287
287
  ye as d,
288
288
  pe as e,
289
289
  xe as m,
290
- Se as r,
290
+ g as r,
291
291
  Te as s,
292
292
  Oe as u
293
293
  };
@@ -3,11 +3,11 @@ import * as y from "react";
3
3
  import Ce from "../s-empty/s-empty.js";
4
4
  import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-CyFSna1a.js";
5
5
  import { c as I } from "../identifier-BA7fwE7E.js";
6
- import { s as S, c as $, r as se, u as E, m as W } from "../memoTheme-2xILj8Pd.js";
6
+ import { s as S, c as $, b as se, u as E, m as W } from "../memoTheme-Bz_6CvJG.js";
7
7
  import { g as B } from "../generateUtilityClasses-CvAVhM6T.js";
8
8
  import { u as je, a as Oe } from "../useControlled-DnifWmuD.js";
9
- import { a as A, B as Re, r as we, m as Pe } from "../useSlot-Cwl3uYYg.js";
10
- import { c as J } from "../createSvgIcon-GD-thYZm.js";
9
+ import { a as A, B as Re, r as we, m as Pe } from "../useSlot-DFX3jR9F.js";
10
+ import { c as J } from "../createSvgIcon-FIMSBrG5.js";
11
11
  import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
12
12
  function Se(o) {
13
13
  return N("PrivateSwitchBase", o);
@@ -3,7 +3,7 @@ import * as r from "react";
3
3
  import { Dialog as p, DialogTitle as g, Stack as j, IconButton as D, DialogContent as v, DialogActions as y, Button as d } from "@mui/material";
4
4
  import { IconX as b } from "@tabler/icons-react";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as m } from "../Typography-Cf3fyOHg.js";
6
+ import { T as m } from "../Typography-8CUP66S2.js";
7
7
  const w = ({
8
8
  title: o,
9
9
  content: e,
@@ -3,7 +3,7 @@ import * as s from "react";
3
3
  import { Dialog as u, DialogTitle as p, Stack as g, IconButton as m, DialogContent as j, DialogActions as f, Button as C } from "@mui/material";
4
4
  import { IconX as D } from "@tabler/icons-react";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as c } from "../Typography-Cf3fyOHg.js";
6
+ import { T as c } from "../Typography-8CUP66S2.js";
7
7
  const v = ({
8
8
  title: t,
9
9
  content: e,
@@ -5,9 +5,9 @@ import { useDropzone as z } from "react-dropzone";
5
5
  import C from "../s-file-icon/s-file-icon.js";
6
6
  import k from "../s-form/s-form.js";
7
7
  import { bytesToSize as B } from "../utils/bytes-to-size.js";
8
- import { S as r } from "../Stack-hZ9m9_Gh.js";
8
+ import { S as r } from "../Stack-CHCAZYKm.js";
9
9
  import { B as d } from "../Box-BOnkyXg-.js";
10
- import { T as o } from "../Typography-Cf3fyOHg.js";
10
+ import { T as o } from "../Typography-8CUP66S2.js";
11
11
  const H = ({
12
12
  caption: i,
13
13
  label: p = "",
@@ -1,26 +1,29 @@
1
1
  import { j as l } from "../jsx-runtime-C5mzlN2N.js";
2
- import * as m from "react";
3
- import { c as V } from "../createSvgIcon-GD-thYZm.js";
2
+ import * as f from "react";
3
+ import { c as N } from "../createSvgIcon-FIMSBrG5.js";
4
4
  import { Stack as P, OutlinedInput as B, selectClasses as E } from "@mui/material";
5
5
  import { usePopover as U } from "../hooks/use-popover.js";
6
- import F from "../s-chips/s-chips.js";
7
- import { gray as x } from "../theme/theme-primitives.js";
8
- import { L as O, M as z } from "../Menu-BDspvd-Q.js";
9
- import { a as f, P as s } from "../createTheme-CyFSna1a.js";
10
- import { c as M } from "../identifier-BA7fwE7E.js";
11
- import { u as D, s as G, c as H, r as _, m as A } from "../memoTheme-2xILj8Pd.js";
12
- import { g as W, d as k, m as u } from "../menuItemClasses-BuN4fyVT.js";
6
+ import D from "../s-chips/s-chips.js";
7
+ import { gray as y } from "../theme/theme-primitives.js";
8
+ import { L as O, M as F } from "../Menu-BTGaz6HX.js";
9
+ import { g as z, a as m, P as t } from "../createTheme-CyFSna1a.js";
10
+ import { c as h } from "../identifier-BA7fwE7E.js";
11
+ import { u as G, s as A, c as H, b as W, m as _ } from "../memoTheme-Bz_6CvJG.js";
12
+ import { g as b } from "../generateUtilityClasses-CvAVhM6T.js";
13
13
  import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
14
- import { u as J, B as K } from "../useSlot-Cwl3uYYg.js";
15
- import { g as R } from "../generateUtilityClasses-CvAVhM6T.js";
16
- const Q = V(/* @__PURE__ */ l.jsx("path", {
14
+ import { u as J, B as K } from "../useSlot-DFX3jR9F.js";
15
+ const Q = N(/* @__PURE__ */ l.jsx("path", {
17
16
  d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
18
- }), "UnfoldMore"), S = R("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = R("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), X = (e, o) => {
17
+ }), "UnfoldMore"), k = b("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), w = b("MuiListItemIcon", ["root", "alignItemsFlexStart"]), R = b("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
18
+ function X(e) {
19
+ return z("MuiMenuItem", e);
20
+ }
21
+ const u = b("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), Y = (e, o) => {
19
22
  const {
20
23
  ownerState: r
21
24
  } = e;
22
25
  return [o.root, r.dense && o.dense, r.divider && o.divider, !r.disableGutters && o.gutters];
23
- }, Y = (e) => {
26
+ }, Z = (e) => {
24
27
  const {
25
28
  disabled: o,
26
29
  dense: r,
@@ -30,17 +33,17 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
30
33
  classes: c
31
34
  } = e, n = H({
32
35
  root: ["root", r && "dense", o && "disabled", !d && "gutters", a && "divider", i && "selected"]
33
- }, W, c);
36
+ }, X, c);
34
37
  return {
35
38
  ...c,
36
39
  ...n
37
40
  };
38
- }, Z = G(K, {
39
- shouldForwardProp: (e) => _(e) || e === "classes",
41
+ }, ee = A(K, {
42
+ shouldForwardProp: (e) => W(e) || e === "classes",
40
43
  name: "MuiMenuItem",
41
44
  slot: "Root",
42
- overridesResolver: X
43
- })(A(({
45
+ overridesResolver: Y
46
+ })(_(({
44
47
  theme: e
45
48
  }) => ({
46
49
  ...e.typography.body1,
@@ -63,16 +66,16 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
63
66
  }
64
67
  },
65
68
  [`&.${u.selected}`]: {
66
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity),
69
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : m(e.palette.primary.main, e.palette.action.selectedOpacity),
67
70
  [`&.${u.focusVisible}`]: {
68
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
71
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : m(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
69
72
  }
70
73
  },
71
74
  [`&.${u.selected}:hover`]: {
72
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
75
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : m(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
73
76
  // Reset on touch devices, it doesn't add specificity
74
77
  "@media (hover: none)": {
75
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity)
78
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : m(e.palette.primary.main, e.palette.action.selectedOpacity)
76
79
  }
77
80
  },
78
81
  [`&.${u.focusVisible}`]: {
@@ -88,14 +91,14 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
88
91
  [`& + .${k.inset}`]: {
89
92
  marginLeft: 52
90
93
  },
91
- [`& .${j.root}`]: {
94
+ [`& .${R.root}`]: {
92
95
  marginTop: 0,
93
96
  marginBottom: 0
94
97
  },
95
- [`& .${j.inset}`]: {
98
+ [`& .${R.inset}`]: {
96
99
  paddingLeft: 36
97
100
  },
98
- [`& .${S.root}`]: {
101
+ [`& .${w.root}`]: {
99
102
  minWidth: 36
100
103
  },
101
104
  variants: [{
@@ -133,56 +136,56 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
133
136
  paddingTop: 4,
134
137
  paddingBottom: 4,
135
138
  ...e.typography.body2,
136
- [`& .${S.root} svg`]: {
139
+ [`& .${w.root} svg`]: {
137
140
  fontSize: "1.25rem"
138
141
  }
139
142
  }
140
143
  }]
141
- }))), h = /* @__PURE__ */ m.forwardRef(function(o, r) {
142
- const a = D({
144
+ }))), S = /* @__PURE__ */ f.forwardRef(function(o, r) {
145
+ const a = G({
143
146
  props: o,
144
147
  name: "MuiMenuItem"
145
148
  }), {
146
149
  autoFocus: d = !1,
147
150
  component: i = "li",
148
151
  dense: c = !1,
149
- divider: t = !1,
152
+ divider: s = !1,
150
153
  disableGutters: n = !1,
151
154
  focusVisibleClassName: p,
152
- role: b = "menuitem",
153
- tabIndex: y,
154
- className: w,
155
- ...T
156
- } = a, C = m.useContext(O), I = m.useMemo(() => ({
157
- dense: c || C.dense || !1,
155
+ role: g = "menuitem",
156
+ tabIndex: C,
157
+ className: j,
158
+ ...V
159
+ } = a, I = f.useContext(O), M = f.useMemo(() => ({
160
+ dense: c || I.dense || !1,
158
161
  disableGutters: n
159
- }), [C.dense, c, n]), v = m.useRef(null);
162
+ }), [I.dense, c, n]), v = f.useRef(null);
160
163
  q(() => {
161
164
  d && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
162
165
  }, [d]);
163
166
  const L = {
164
167
  ...a,
165
- dense: I.dense,
166
- divider: t,
168
+ dense: M.dense,
169
+ divider: s,
167
170
  disableGutters: n
168
- }, g = Y(a), N = J(v, r);
171
+ }, x = Z(a), T = J(v, r);
169
172
  let $;
170
- return a.disabled || ($ = y !== void 0 ? y : -1), /* @__PURE__ */ l.jsx(O.Provider, {
171
- value: I,
172
- children: /* @__PURE__ */ l.jsx(Z, {
173
- ref: N,
174
- role: b,
173
+ return a.disabled || ($ = C !== void 0 ? C : -1), /* @__PURE__ */ l.jsx(O.Provider, {
174
+ value: M,
175
+ children: /* @__PURE__ */ l.jsx(ee, {
176
+ ref: T,
177
+ role: g,
175
178
  tabIndex: $,
176
179
  component: i,
177
- focusVisibleClassName: M(g.focusVisible, p),
178
- className: M(g.root, w),
179
- ...T,
180
+ focusVisibleClassName: h(x.focusVisible, p),
181
+ className: h(x.root, j),
182
+ ...V,
180
183
  ownerState: L,
181
- classes: g
184
+ classes: x
182
185
  })
183
186
  });
184
187
  });
185
- process.env.NODE_ENV !== "production" && (h.propTypes = {
188
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
186
189
  // ┌────────────────────────────── Warning ──────────────────────────────┐
187
190
  // │ These PropTypes are generated from the TypeScript type definitions. │
188
191
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -192,44 +195,44 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
192
195
  * Focus will also be triggered if the value changes from false to true.
193
196
  * @default false
194
197
  */
195
- autoFocus: s.bool,
198
+ autoFocus: t.bool,
196
199
  /**
197
200
  * The content of the component.
198
201
  */
199
- children: s.node,
202
+ children: t.node,
200
203
  /**
201
204
  * Override or extend the styles applied to the component.
202
205
  */
203
- classes: s.object,
206
+ classes: t.object,
204
207
  /**
205
208
  * @ignore
206
209
  */
207
- className: s.string,
210
+ className: t.string,
208
211
  /**
209
212
  * The component used for the root node.
210
213
  * Either a string to use a HTML element or a component.
211
214
  */
212
- component: s.elementType,
215
+ component: t.elementType,
213
216
  /**
214
217
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
215
218
  * The prop defaults to the value inherited from the parent Menu component.
216
219
  * @default false
217
220
  */
218
- dense: s.bool,
221
+ dense: t.bool,
219
222
  /**
220
223
  * @ignore
221
224
  */
222
- disabled: s.bool,
225
+ disabled: t.bool,
223
226
  /**
224
227
  * If `true`, the left and right padding is removed.
225
228
  * @default false
226
229
  */
227
- disableGutters: s.bool,
230
+ disableGutters: t.bool,
228
231
  /**
229
232
  * If `true`, a 1px light border is added to the bottom of the menu item.
230
233
  * @default false
231
234
  */
232
- divider: s.bool,
235
+ divider: t.bool,
233
236
  /**
234
237
  * This prop can help identify which element has keyboard focus.
235
238
  * The class name will be applied when the element gains the focus through keyboard interaction.
@@ -238,36 +241,36 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
238
241
  * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
239
242
  * if needed.
240
243
  */
241
- focusVisibleClassName: s.string,
244
+ focusVisibleClassName: t.string,
242
245
  /**
243
246
  * @ignore
244
247
  */
245
- role: s.string,
248
+ role: t.string,
246
249
  /**
247
250
  * If `true`, the component is selected.
248
251
  * @default false
249
252
  */
250
- selected: s.bool,
253
+ selected: t.bool,
251
254
  /**
252
255
  * The system prop that allows defining system overrides as well as additional CSS styles.
253
256
  */
254
- sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]),
257
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
255
258
  /**
256
259
  * @default 0
257
260
  */
258
- tabIndex: s.number
261
+ tabIndex: t.number
259
262
  });
260
- function fe({
263
+ function me({
261
264
  label: e,
262
265
  onChange: o,
263
266
  options: r,
264
267
  value: a = [],
265
268
  chipProps: d
266
269
  }) {
267
- const i = U(), c = m.useCallback(
268
- (t, n) => {
270
+ const i = U(), c = f.useCallback(
271
+ (s, n) => {
269
272
  let p = [...a];
270
- n ? p.push(t) : p = p.filter((b) => b !== t), o == null || o(p);
273
+ n ? p.push(s) : p = p.filter((g) => g !== s), o == null || o(p);
271
274
  },
272
275
  [o, a]
273
276
  );
@@ -288,17 +291,17 @@ function fe({
288
291
  sx: {
289
292
  borderRadius: "var(--s-shape-borderRadius)",
290
293
  border: "1px solid",
291
- borderColor: x[200],
294
+ borderColor: y[200],
292
295
  backgroundColor: "var(--s-palette-background-paper)",
293
296
  boxShadow: "inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)",
294
297
  "&:hover": {
295
- borderColor: x[300],
298
+ borderColor: y[300],
296
299
  backgroundColor: "var(--s-palette-background-paper)",
297
300
  boxShadow: "none"
298
301
  },
299
302
  [`&.${E.focused}`]: {
300
303
  outlineOffset: 0,
301
- borderColor: x[400]
304
+ borderColor: y[400]
302
305
  },
303
306
  "&:before, &:after": {
304
307
  display: "none"
@@ -307,37 +310,37 @@ function fe({
307
310
  }
308
311
  ),
309
312
  /* @__PURE__ */ l.jsx(
310
- z,
313
+ F,
311
314
  {
312
315
  anchorEl: i.anchorRef.current,
313
316
  onClose: i.handleClose,
314
317
  open: i.open,
315
318
  slotProps: { paper: { sx: { width: "250px" } } },
316
- children: r.map((t) => {
317
- const n = a.includes(t.value);
319
+ children: r.map((s) => {
320
+ const n = a.includes(s.value);
318
321
  return /* @__PURE__ */ l.jsx(
319
- h,
322
+ S,
320
323
  {
321
324
  onClick: () => {
322
- c(t.value, !n);
325
+ c(s.value, !n);
323
326
  },
324
327
  selected: n,
325
- children: t.label
328
+ children: s.label
326
329
  },
327
- t.label
330
+ s.label
328
331
  );
329
332
  })
330
333
  }
331
334
  ),
332
335
  /* @__PURE__ */ l.jsx(
333
- F,
336
+ D,
334
337
  {
335
- chips: r.filter((t) => a.includes(t.value)).map((t) => t.label),
338
+ chips: r.filter((s) => a.includes(s.value)).map((s) => s.label),
336
339
  ...d
337
340
  }
338
341
  )
339
342
  ] });
340
343
  }
341
344
  export {
342
- fe as default
345
+ me as default
343
346
  };
@@ -1,6 +1,11 @@
1
1
  import { AutosuggestionsConfigUserSpecified, CopilotTextarea } from '@copilotkit/react-textarea';
2
2
  export type SSmartTextFieldProps = Omit<React.ComponentProps<typeof CopilotTextarea>, 'autosuggestionsConfig'> & {
3
3
  autosuggestionsConfig?: AutosuggestionsConfigUserSpecified;
4
+ label?: string | React.ReactNode;
5
+ hint?: string;
6
+ error?: string;
7
+ required?: boolean;
8
+ htmlFor?: string;
4
9
  };
5
- export declare function SSmartTextField({ autosuggestionsConfig, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
6
11
  export default SSmartTextField;