@solostylist/ui-kit 1.0.57 → 1.0.58

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/dist/{Box-MoP3r0T2.js → Box-DuNveqKq.js} +1 -1
  2. package/dist/{Close-DLG48sGB.js → Close-Dc2lVwnr.js} +1 -1
  3. package/dist/{HelpOutlineOutlined-CBZQGWGK.js → HelpOutlineOutlined-BAjVLccf.js} +1 -1
  4. package/dist/{Menu-Y8dE9GrA.js → Menu-CFtdt9_b.js} +22 -8
  5. package/dist/MenuItem-Bqce0qet.js +261 -0
  6. package/dist/Select-D539S2ky.js +3917 -0
  7. package/dist/{Stack-DT2aopM5.js → Stack-CG6wicnq.js} +69 -91
  8. package/dist/{Typography-BXwj4yQZ.js → Typography-Bj_bEcQU.js} +2 -2
  9. package/dist/chipClasses-DKfDKFnh.js +10 -0
  10. package/dist/{createSvgIcon-YtxTUNwI.js → createSvgIcon-ChpOI-a_.js} +217 -213
  11. package/dist/{index-GaV7LHxy.js → index-Cuc5JxMf.js} +4 -4
  12. package/dist/main.d.ts +4 -0
  13. package/dist/main.js +35 -32
  14. package/dist/s-data-table/s-data-table.js +2 -2
  15. package/dist/s-datetime-picker/index.d.ts +4 -0
  16. package/dist/s-datetime-picker/index.js +5 -0
  17. package/dist/s-datetime-picker/package.json +5 -0
  18. package/dist/s-datetime-picker/s-datetime-picker.d.ts +15 -0
  19. package/dist/s-datetime-picker/s-datetime-picker.js +18763 -0
  20. package/dist/s-dialog/s-dialog.js +1 -1
  21. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  22. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  23. package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
  24. package/dist/s-file-icon/s-file-icon.js +1 -1
  25. package/dist/s-form/s-form.js +1 -1
  26. package/dist/s-label/s-label.js +1 -1
  27. package/dist/s-multi-select/s-multi-select.js +50 -298
  28. package/dist/s-text-editor/s-text-editor-toolbar.js +100 -4001
  29. package/dist/s-text-editor/s-text-editor.js +1 -1
  30. package/dist/s-tip/s-tip.js +3 -3
  31. package/dist/tabClasses-BM7nwRzw.js +10 -0
  32. package/dist/theme/components/avatar.js +1 -1
  33. package/dist/theme/customizations/data-display.js +36 -36
  34. package/dist/theme/customizations/inputs.js +1 -1
  35. package/dist/theme/customizations/navigation.js +52 -50
  36. package/dist/{useSlot-GW4ou7g5.js → useSlot-Dje0rInB.js} +1 -1
  37. package/dist/{useTheme-vk3BYrgD.js → useTheme-BM5dU4pp.js} +3 -2
  38. package/dist/useThemeProps-kZjTQ980.js +27 -0
  39. package/dist/utils/dayjs.js +14 -14
  40. package/package.json +7 -4
@@ -2,7 +2,7 @@ import { s as u, C as d, b as h, P as e } from "./createTheme-CozHbEju.js";
2
2
  import { s as T, c as y, g as B, T as N } from "./identifier-9JFYVRsR.js";
3
3
  import * as C from "react";
4
4
  import { j as b } from "./jsx-runtime-C5mzlN2N.js";
5
- import { u as g } from "./useTheme-vk3BYrgD.js";
5
+ import { u as g } from "./useTheme-BM5dU4pp.js";
6
6
  import { e as j } from "./extendSxProp-BuqOAkIB.js";
7
7
  function E(n = {}) {
8
8
  const {
@@ -1,5 +1,5 @@
1
1
  import { j as o } from "./jsx-runtime-C5mzlN2N.js";
2
- import { c as s } from "./createSvgIcon-YtxTUNwI.js";
2
+ import { c as s } from "./createSvgIcon-ChpOI-a_.js";
3
3
  const e = s(/* @__PURE__ */ o.jsx("path", {
4
4
  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"
5
5
  }), "Close");
@@ -1,5 +1,5 @@
1
1
  import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
- import { c } from "./createSvgIcon-YtxTUNwI.js";
2
+ import { c } from "./createSvgIcon-ChpOI-a_.js";
3
3
  const o = c(/* @__PURE__ */ t.jsx("path", {
4
4
  d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
5
5
  }), "HelpOutlineOutlined");
@@ -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-CozHbEju.js";
4
4
  import { T as Rt, g as ce, c as te } from "./identifier-9JFYVRsR.js";
5
5
  import { j as L } from "./jsx-runtime-C5mzlN2N.js";
6
- import { d as Ot, u as ue, s as W, a as pe, m as it, f as Nt } from "./createSvgIcon-YtxTUNwI.js";
7
- 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-GW4ou7g5.js";
8
- import { u as Ft } from "./useTheme-vk3BYrgD.js";
6
+ import { e as Ot, u as ue, a as W, b as pe, m as it, f as Nt } from "./createSvgIcon-ChpOI-a_.js";
7
+ 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-Dje0rInB.js";
8
+ import { u as Ft } from "./useTheme-BM5dU4pp.js";
9
9
  import { _ as Lt, a as At, b as st } from "./TransitionGroup-BCkqyHLn.js";
10
10
  import * as $t from "react-dom";
11
11
  import Te from "react-dom";
@@ -61,8 +61,7 @@ var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
61
61
  enter: e.number,
62
62
  exit: e.number,
63
63
  appear: e.number
64
- }).isRequired]) : null;
65
- process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
64
+ }).isRequired]) : null, Wn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
66
65
  enter: e.string,
67
66
  exit: e.string,
68
67
  active: e.string
@@ -73,8 +72,7 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
73
72
  exit: e.string,
74
73
  exitDone: e.string,
75
74
  exitActive: e.string
76
- })]);
77
- var Bt = function(n) {
75
+ })]) : null, Bt = function(n) {
78
76
  return n.scrollTop;
79
77
  }, me = "unmounted", Z = "exited", ee = "entering", ae = "entered", Ae = "exiting", G = /* @__PURE__ */ function(t) {
80
78
  Lt(n, t);
@@ -2945,12 +2943,28 @@ process.env.NODE_ENV !== "production" && (Ln.propTypes = {
2945
2943
  variant: e.oneOf(["menu", "selectedMenu"])
2946
2944
  });
2947
2945
  export {
2946
+ ht as B,
2947
+ mt as F,
2948
+ Re as G,
2949
+ Ee as H,
2948
2950
  vt as L,
2949
2951
  Ln as M,
2950
2952
  yt as P,
2953
+ G as T,
2951
2954
  ne as a,
2955
+ On as b,
2956
+ Wn as c,
2952
2957
  qt as d,
2958
+ _e as e,
2959
+ Bt as f,
2953
2960
  Se as g,
2961
+ Ne as h,
2954
2962
  zt as i,
2955
- z as o
2963
+ Oe as j,
2964
+ Et as k,
2965
+ Tt as l,
2966
+ Pt as m,
2967
+ bt as n,
2968
+ z as o,
2969
+ Ut as u
2956
2970
  };
@@ -0,0 +1,261 @@
1
+ import * as c from "react";
2
+ import { g as R, a as d, P as t } from "./createTheme-CozHbEju.js";
3
+ import { g as p, c as x } from "./identifier-9JFYVRsR.js";
4
+ import { u as D, a as L, b as S, f as E, m as P } from "./createSvgIcon-ChpOI-a_.js";
5
+ import { L as I } from "./Menu-CFtdt9_b.js";
6
+ import { j as $ } from "./jsx-runtime-C5mzlN2N.js";
7
+ import { u as U } from "./useEnhancedEffect-CJGo-L3B.js";
8
+ import { u as F, B as G } from "./useSlot-Dje0rInB.js";
9
+ function Z(e) {
10
+ return R("MuiDivider", e);
11
+ }
12
+ const M = p("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), O = p("MuiListItemIcon", ["root", "alignItemsFlexStart"]), w = p("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
13
+ function H(e) {
14
+ return R("MuiMenuItem", e);
15
+ }
16
+ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), h = (e, o) => {
17
+ const {
18
+ ownerState: s
19
+ } = e;
20
+ return [o.root, s.dense && o.dense, s.divider && o.divider, !s.disableGutters && o.gutters];
21
+ }, z = (e) => {
22
+ const {
23
+ disabled: o,
24
+ dense: s,
25
+ divider: a,
26
+ disableGutters: l,
27
+ selected: u,
28
+ classes: i
29
+ } = e, r = S({
30
+ root: ["root", s && "dense", o && "disabled", !l && "gutters", a && "divider", u && "selected"]
31
+ }, H, i);
32
+ return {
33
+ ...i,
34
+ ...r
35
+ };
36
+ }, A = L(G, {
37
+ shouldForwardProp: (e) => E(e) || e === "classes",
38
+ name: "MuiMenuItem",
39
+ slot: "Root",
40
+ overridesResolver: h
41
+ })(P(({
42
+ theme: e
43
+ }) => ({
44
+ ...e.typography.body1,
45
+ display: "flex",
46
+ justifyContent: "flex-start",
47
+ alignItems: "center",
48
+ position: "relative",
49
+ textDecoration: "none",
50
+ minHeight: 48,
51
+ paddingTop: 6,
52
+ paddingBottom: 6,
53
+ boxSizing: "border-box",
54
+ whiteSpace: "nowrap",
55
+ "&:hover": {
56
+ textDecoration: "none",
57
+ backgroundColor: (e.vars || e).palette.action.hover,
58
+ // Reset on touch devices, it doesn't add specificity
59
+ "@media (hover: none)": {
60
+ backgroundColor: "transparent"
61
+ }
62
+ },
63
+ [`&.${n.selected}`]: {
64
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity),
65
+ [`&.${n.focusVisible}`]: {
66
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
67
+ }
68
+ },
69
+ [`&.${n.selected}:hover`]: {
70
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
71
+ // Reset on touch devices, it doesn't add specificity
72
+ "@media (hover: none)": {
73
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity)
74
+ }
75
+ },
76
+ [`&.${n.focusVisible}`]: {
77
+ backgroundColor: (e.vars || e).palette.action.focus
78
+ },
79
+ [`&.${n.disabled}`]: {
80
+ opacity: (e.vars || e).palette.action.disabledOpacity
81
+ },
82
+ [`& + .${M.root}`]: {
83
+ marginTop: e.spacing(1),
84
+ marginBottom: e.spacing(1)
85
+ },
86
+ [`& + .${M.inset}`]: {
87
+ marginLeft: 52
88
+ },
89
+ [`& .${w.root}`]: {
90
+ marginTop: 0,
91
+ marginBottom: 0
92
+ },
93
+ [`& .${w.inset}`]: {
94
+ paddingLeft: 36
95
+ },
96
+ [`& .${O.root}`]: {
97
+ minWidth: 36
98
+ },
99
+ variants: [{
100
+ props: ({
101
+ ownerState: o
102
+ }) => !o.disableGutters,
103
+ style: {
104
+ paddingLeft: 16,
105
+ paddingRight: 16
106
+ }
107
+ }, {
108
+ props: ({
109
+ ownerState: o
110
+ }) => o.divider,
111
+ style: {
112
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
113
+ backgroundClip: "padding-box"
114
+ }
115
+ }, {
116
+ props: ({
117
+ ownerState: o
118
+ }) => !o.dense,
119
+ style: {
120
+ [e.breakpoints.up("sm")]: {
121
+ minHeight: "auto"
122
+ }
123
+ }
124
+ }, {
125
+ props: ({
126
+ ownerState: o
127
+ }) => o.dense,
128
+ style: {
129
+ minHeight: 32,
130
+ // https://m2.material.io/components/menus#specs > Dense
131
+ paddingTop: 4,
132
+ paddingBottom: 4,
133
+ ...e.typography.body2,
134
+ [`& .${O.root} svg`]: {
135
+ fontSize: "1.25rem"
136
+ }
137
+ }
138
+ }]
139
+ }))), W = /* @__PURE__ */ c.forwardRef(function(o, s) {
140
+ const a = D({
141
+ props: o,
142
+ name: "MuiMenuItem"
143
+ }), {
144
+ autoFocus: l = !1,
145
+ component: u = "li",
146
+ dense: i = !1,
147
+ divider: f = !1,
148
+ disableGutters: r = !1,
149
+ focusVisibleClassName: T,
150
+ role: V = "menuitem",
151
+ tabIndex: g,
152
+ className: k,
153
+ ...N
154
+ } = a, v = c.useContext(I), y = c.useMemo(() => ({
155
+ dense: i || v.dense || !1,
156
+ disableGutters: r
157
+ }), [v.dense, i, r]), m = c.useRef(null);
158
+ U(() => {
159
+ l && (m.current ? m.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
160
+ }, [l]);
161
+ const j = {
162
+ ...a,
163
+ dense: y.dense,
164
+ divider: f,
165
+ disableGutters: r
166
+ }, b = z(a), B = F(m, s);
167
+ let C;
168
+ return a.disabled || (C = g !== void 0 ? g : -1), /* @__PURE__ */ $.jsx(I.Provider, {
169
+ value: y,
170
+ children: /* @__PURE__ */ $.jsx(A, {
171
+ ref: B,
172
+ role: V,
173
+ tabIndex: C,
174
+ component: u,
175
+ focusVisibleClassName: x(b.focusVisible, T),
176
+ className: x(b.root, k),
177
+ ...N,
178
+ ownerState: j,
179
+ classes: b
180
+ })
181
+ });
182
+ });
183
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
184
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
185
+ // │ These PropTypes are generated from the TypeScript type definitions. │
186
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
187
+ // └─────────────────────────────────────────────────────────────────────┘
188
+ /**
189
+ * If `true`, the list item is focused during the first mount.
190
+ * Focus will also be triggered if the value changes from false to true.
191
+ * @default false
192
+ */
193
+ autoFocus: t.bool,
194
+ /**
195
+ * The content of the component.
196
+ */
197
+ children: t.node,
198
+ /**
199
+ * Override or extend the styles applied to the component.
200
+ */
201
+ classes: t.object,
202
+ /**
203
+ * @ignore
204
+ */
205
+ className: t.string,
206
+ /**
207
+ * The component used for the root node.
208
+ * Either a string to use a HTML element or a component.
209
+ */
210
+ component: t.elementType,
211
+ /**
212
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
213
+ * The prop defaults to the value inherited from the parent Menu component.
214
+ * @default false
215
+ */
216
+ dense: t.bool,
217
+ /**
218
+ * @ignore
219
+ */
220
+ disabled: t.bool,
221
+ /**
222
+ * If `true`, the left and right padding is removed.
223
+ * @default false
224
+ */
225
+ disableGutters: t.bool,
226
+ /**
227
+ * If `true`, a 1px light border is added to the bottom of the menu item.
228
+ * @default false
229
+ */
230
+ divider: t.bool,
231
+ /**
232
+ * This prop can help identify which element has keyboard focus.
233
+ * The class name will be applied when the element gains the focus through keyboard interaction.
234
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
235
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
236
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
237
+ * if needed.
238
+ */
239
+ focusVisibleClassName: t.string,
240
+ /**
241
+ * @ignore
242
+ */
243
+ role: t.string,
244
+ /**
245
+ * If `true`, the component is selected.
246
+ * @default false
247
+ */
248
+ selected: t.bool,
249
+ /**
250
+ * The system prop that allows defining system overrides as well as additional CSS styles.
251
+ */
252
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
253
+ /**
254
+ * @default 0
255
+ */
256
+ tabIndex: t.number
257
+ });
258
+ export {
259
+ W as M,
260
+ Z as g
261
+ };