@solostylist/ui-kit 1.0.118 → 1.0.119

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 (32) hide show
  1. package/dist/s-carousel/s-carousel.js +523 -523
  2. package/dist/s-date-picker/s-date-picker.js +20 -19
  3. package/dist/s-datetime-picker/s-datetime-picker.js +2 -1
  4. package/dist/s-image-modal/s-image-modal.js +44 -44
  5. package/dist/s-interactive-gallery/s-interactive-gallery.js +22 -22
  6. package/dist/s-lazy-image/s-lazy-image.js +10 -10
  7. package/dist/s-multi-select/s-multi-select.js +16 -22
  8. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +1 -1
  9. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +17 -17
  10. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +11 -11
  11. package/dist/s-select/s-select.js +31 -31
  12. package/dist/s-text-editor/s-text-editor-toolbar.js +10 -9
  13. package/dist/s-text-editor/s-text-editor.js +13 -12
  14. package/dist/s-text-shimmer/s-text-shimmer.js +6 -6
  15. package/dist/s-tip/s-tip.js +12 -14
  16. package/dist/theme/components/alert.d.ts +3846 -13
  17. package/dist/theme/components/alert.js +31 -14
  18. package/dist/theme/components/button.d.ts +96 -24
  19. package/dist/theme/components/button.js +42 -41
  20. package/dist/theme/components/chip.d.ts +6 -6
  21. package/dist/theme/components/chip.js +38 -160
  22. package/dist/theme/components/popover.d.ts +1 -0
  23. package/dist/theme/components/popover.js +4 -3
  24. package/dist/theme/components/tooltip.d.ts +16 -6
  25. package/dist/theme/components/tooltip.js +12 -11
  26. package/dist/theme/customizations/data-display.js +9 -9
  27. package/dist/theme/customizations/inputs.js +5 -12
  28. package/dist/theme/customizations/surfaces.js +6 -6
  29. package/dist/theme/theme-primitives.d.ts +20 -7
  30. package/dist/theme/theme-primitives.js +120 -176
  31. package/package.json +1 -1
  32. package/dist/theme/components/components.d.ts +0 -6114
@@ -1,17 +1,38 @@
1
- import { j as $ } from "../../jsx-runtime-OVHDjVDe.js";
2
- import { chipClasses as o } from "@mui/material";
3
- import { gray as r, lightGray as a, brand as c, lightBrand as e, purple as p, lightPurple as d, green as b, lightGreen as n, red as s, lightRed as i, orange as y, lightOrange as t, blue as g, lightBlue as C } from "../theme-primitives.js";
4
- import { C as u } from "../../Close-DlTC3goO.js";
5
- const h = {
1
+ import { j as p } from "../../jsx-runtime-OVHDjVDe.js";
2
+ import { chipClasses as l } from "@mui/material";
3
+ import { gray as a, lightGray as i, brand as t, lightBrand as n, purple as c, lightPurple as d, green as y, lightGreen as g, red as u, lightRed as b, orange as f, lightOrange as m, blue as x, lightBlue as $ } from "../theme-primitives.js";
4
+ import { C } from "../../Close-DlTC3goO.js";
5
+ const o = (r, e, s) => ({
6
+ ...r.applyStyles("light", {
7
+ borderColor: e[700],
8
+ backgroundColor: e[800],
9
+ [`& .${l.label}`]: {
10
+ color: e[200]
11
+ },
12
+ [`& .${l.icon}`]: {
13
+ color: e[300]
14
+ }
15
+ }),
16
+ ...r.applyStyles("dark", {
17
+ borderColor: s[700],
18
+ backgroundColor: s[800],
19
+ [`& .${l.label}`]: {
20
+ color: s[200]
21
+ },
22
+ [`& .${l.icon}`]: {
23
+ color: s[300]
24
+ }
25
+ })
26
+ }), h = {
6
27
  defaultProps: {
7
28
  size: "small",
8
- deleteIcon: /* @__PURE__ */ $.jsx(u, {})
29
+ deleteIcon: /* @__PURE__ */ p.jsx(C, {})
9
30
  },
10
31
  styleOverrides: {
11
- root: ({ theme: l }) => ({
32
+ root: ({ theme: r }) => ({
12
33
  border: "1px solid",
13
34
  borderRadius: "999px",
14
- [`& .${o.label}`]: {
35
+ [`& .${l.label}`]: {
15
36
  fontWeight: 500
16
37
  },
17
38
  variants: [
@@ -20,26 +41,7 @@ const h = {
20
41
  color: "default"
21
42
  },
22
43
  style: {
23
- ...l.applyStyles("light", {
24
- borderColor: a[700],
25
- backgroundColor: a[800],
26
- [`& .${o.label}`]: {
27
- color: a[200]
28
- },
29
- [`& .${o.icon}`]: {
30
- color: a[300]
31
- }
32
- }),
33
- ...l.applyStyles("dark", {
34
- borderColor: r[700],
35
- backgroundColor: r[800],
36
- [`& .${o.label}`]: {
37
- color: r[200]
38
- },
39
- [`& .${o.icon}`]: {
40
- color: r[300]
41
- }
42
- })
44
+ ...o(r, i, a)
43
45
  }
44
46
  },
45
47
  {
@@ -47,26 +49,7 @@ const h = {
47
49
  color: "primary"
48
50
  },
49
51
  style: {
50
- ...l.applyStyles("light", {
51
- borderColor: e[700],
52
- backgroundColor: e[800],
53
- [`& .${o.label}`]: {
54
- color: e[200]
55
- },
56
- [`& .${o.icon}`]: {
57
- color: e[300]
58
- }
59
- }),
60
- ...l.applyStyles("dark", {
61
- borderColor: c[700],
62
- backgroundColor: c[800],
63
- [`& .${o.label}`]: {
64
- color: c[200]
65
- },
66
- [`& .${o.icon}`]: {
67
- color: c[300]
68
- }
69
- })
52
+ ...o(r, n, t)
70
53
  }
71
54
  },
72
55
  {
@@ -74,26 +57,7 @@ const h = {
74
57
  color: "secondary"
75
58
  },
76
59
  style: {
77
- ...l.applyStyles("light", {
78
- borderColor: d[700],
79
- backgroundColor: d[800],
80
- [`& .${o.label}`]: {
81
- color: d[200]
82
- },
83
- [`& .${o.icon}`]: {
84
- color: d[300]
85
- }
86
- }),
87
- ...l.applyStyles("dark", {
88
- borderColor: p[700],
89
- backgroundColor: p[800],
90
- [`& .${o.label}`]: {
91
- color: p[200]
92
- },
93
- [`& .${o.icon}`]: {
94
- color: p[300]
95
- }
96
- })
60
+ ...o(r, d, c)
97
61
  }
98
62
  },
99
63
  {
@@ -101,26 +65,7 @@ const h = {
101
65
  color: "success"
102
66
  },
103
67
  style: {
104
- ...l.applyStyles("light", {
105
- borderColor: n[700],
106
- backgroundColor: n[800],
107
- [`& .${o.label}`]: {
108
- color: n[200]
109
- },
110
- [`& .${o.icon}`]: {
111
- color: n[300]
112
- }
113
- }),
114
- ...l.applyStyles("dark", {
115
- borderColor: b[700],
116
- backgroundColor: b[800],
117
- [`& .${o.label}`]: {
118
- color: b[200]
119
- },
120
- [`& .${o.icon}`]: {
121
- color: b[300]
122
- }
123
- })
68
+ ...o(r, g, y)
124
69
  }
125
70
  },
126
71
  {
@@ -128,26 +73,7 @@ const h = {
128
73
  color: "error"
129
74
  },
130
75
  style: {
131
- ...l.applyStyles("light", {
132
- borderColor: i[700],
133
- backgroundColor: i[800],
134
- [`& .${o.label}`]: {
135
- color: i[200]
136
- },
137
- [`& .${o.icon}`]: {
138
- color: i[300]
139
- }
140
- }),
141
- ...l.applyStyles("dark", {
142
- borderColor: s[700],
143
- backgroundColor: s[800],
144
- [`& .${o.label}`]: {
145
- color: s[200]
146
- },
147
- [`& .${o.icon}`]: {
148
- color: s[300]
149
- }
150
- })
76
+ ...o(r, b, u)
151
77
  }
152
78
  },
153
79
  {
@@ -155,26 +81,7 @@ const h = {
155
81
  color: "warning"
156
82
  },
157
83
  style: {
158
- ...l.applyStyles("light", {
159
- borderColor: t[700],
160
- backgroundColor: t[800],
161
- [`& .${o.label}`]: {
162
- color: t[200]
163
- },
164
- [`& .${o.icon}`]: {
165
- color: t[300]
166
- }
167
- }),
168
- ...l.applyStyles("dark", {
169
- borderColor: y[800],
170
- backgroundColor: y[900],
171
- [`& .${o.label}`]: {
172
- color: y[200]
173
- },
174
- [`& .${o.icon}`]: {
175
- color: y[300]
176
- }
177
- })
84
+ ...o(r, m, f)
178
85
  }
179
86
  },
180
87
  {
@@ -182,47 +89,18 @@ const h = {
182
89
  color: "info"
183
90
  },
184
91
  style: {
185
- ...l.applyStyles("light", {
186
- borderColor: C[700],
187
- backgroundColor: C[800],
188
- [`& .${o.label}`]: {
189
- color: C[200]
190
- },
191
- [`& .${o.icon}`]: {
192
- color: C[300]
193
- }
194
- }),
195
- ...l.applyStyles("dark", {
196
- borderColor: g[700],
197
- backgroundColor: g[800],
198
- [`& .${o.label}`]: {
199
- color: g[200]
200
- },
201
- [`& .${o.icon}`]: {
202
- color: g[300]
203
- }
204
- })
92
+ ...o(r, $, x)
205
93
  }
206
94
  },
207
95
  {
208
96
  props: { color: "premium" },
209
97
  style: {
210
- ...l.applyStyles("dark", {
211
- borderColor: r[700],
212
- backgroundColor: "linear-gradient(90deg, #18181b 0%, #27272a 100%)",
213
- [`& .${o.label}`]: {
214
- color: r[200]
215
- },
216
- [`& .${o.icon}`]: {
217
- color: r[300]
218
- }
219
- })
98
+ border: "none"
220
99
  }
221
100
  }
222
101
  ]
223
102
  }),
224
- labelSmall: { paddingInline: 12 },
225
- colorSecondary: { color: r[500], backgroundColor: r[100] }
103
+ labelSmall: { paddingInline: 12 }
226
104
  }
227
105
  };
228
106
  export {
@@ -12,6 +12,7 @@ export declare const MuiPopover: {
12
12
  borderRadius: string | number;
13
13
  marginTop: number;
14
14
  border: string;
15
+ borderColor: string;
15
16
  };
16
17
  };
17
18
  };
@@ -1,13 +1,14 @@
1
- const e = {
1
+ const o = {
2
2
  defaultProps: { elevation: 0 },
3
3
  styleOverrides: {
4
4
  paper: ({ theme: r }) => ({
5
5
  borderRadius: (r.vars || r).shape.borderRadius,
6
6
  marginTop: 4,
7
- border: "1px solid var(--s-palette-divider)"
7
+ border: "1px solid",
8
+ borderColor: (r.vars || r).palette.divider
8
9
  })
9
10
  }
10
11
  };
11
12
  export {
12
- e as MuiPopover
13
+ o as MuiPopover
13
14
  };
@@ -1,19 +1,29 @@
1
+ import { Theme } from '../types';
1
2
  export declare const MuiTooltip: {
2
3
  defaultProps: {
3
4
  placement: "top";
4
5
  arrow: true;
5
6
  };
6
7
  styleOverrides: {
7
- tooltip: {
8
- backgroundColor: "var(--s-palette-background-default)";
8
+ tooltip: ({ theme }: import('@mui/material').TooltipProps & Record<string, unknown> & {
9
+ ownerState: import('@mui/material').TooltipProps & Record<string, unknown>;
10
+ } & {
11
+ theme: Theme;
12
+ }) => {
13
+ backgroundColor: any;
9
14
  border: string;
10
- color: "var(--s-palette-text-primary)";
15
+ borderColor: any;
16
+ color: any;
11
17
  };
12
- arrow: {
13
- color: "var(--s-palette-background-default)";
18
+ arrow: ({ theme }: import('@mui/material').TooltipProps & Record<string, unknown> & {
19
+ ownerState: import('@mui/material').TooltipProps & Record<string, unknown>;
20
+ } & {
21
+ theme: Theme;
22
+ }) => {
23
+ color: any;
14
24
  '&::before': {
15
25
  border: string;
16
- borderColor: string;
26
+ borderColor: any;
17
27
  };
18
28
  };
19
29
  };
@@ -1,23 +1,24 @@
1
- const r = {
1
+ const o = {
2
2
  defaultProps: {
3
3
  placement: "top",
4
4
  arrow: !0
5
5
  },
6
6
  styleOverrides: {
7
- tooltip: {
8
- backgroundColor: "var(--s-palette-background-default)",
9
- border: "1px solid var(--s-palette-divider)",
10
- color: "var(--s-palette-text-primary)"
11
- },
12
- arrow: {
13
- color: "var(--s-palette-background-default)",
7
+ tooltip: ({ theme: r }) => ({
8
+ backgroundColor: (r.vars || r).palette.background.default,
9
+ border: "1px solid",
10
+ borderColor: (r.vars || r).palette.divider,
11
+ color: (r.vars || r).palette.text.primary
12
+ }),
13
+ arrow: ({ theme: r }) => ({
14
+ color: (r.vars || r).palette.background.default,
14
15
  "&::before": {
15
16
  border: "1px solid",
16
- borderColor: "var(--s-palette-divider)"
17
+ borderColor: (r.vars || r).palette.divider
17
18
  }
18
- }
19
+ })
19
20
  }
20
21
  };
21
22
  export {
22
- r as MuiTooltip
23
+ o as MuiTooltip
23
24
  };
@@ -1,7 +1,7 @@
1
- import { i as e } from "../../iconButtonClasses-qz3jor3M.js";
2
- import { b as r } from "../../buttonBaseClasses-jCihfot4.js";
1
+ import { i as r } from "../../iconButtonClasses-qz3jor3M.js";
2
+ import { b as a } from "../../buttonBaseClasses-jCihfot4.js";
3
3
  import { s as i } from "../../svgIconClasses-CBCi8U9g.js";
4
- import { t as a } from "../../typographyClasses-C7fhAsUD.js";
4
+ import { t as e } from "../../typographyClasses-C7fhAsUD.js";
5
5
  import { a as t } from "../../colorManipulator-ep5lERxB.js";
6
6
  const y = {
7
7
  MuiList: {
@@ -22,10 +22,10 @@ const y = {
22
22
  height: "1rem",
23
23
  color: (o.vars || o).palette.text.secondary
24
24
  },
25
- [`& .${a.root}`]: {
25
+ [`& .${e.root}`]: {
26
26
  fontWeight: 500
27
27
  },
28
- [`& .${r.root}`]: {
28
+ [`& .${a.root}`]: {
29
29
  display: "flex",
30
30
  gap: 8,
31
31
  padding: "2px 8px",
@@ -33,15 +33,15 @@ const y = {
33
33
  opacity: 0.7,
34
34
  "&.Mui-selected": {
35
35
  opacity: 1,
36
- backgroundColor: t(o.palette.action.selected, 0.3),
36
+ backgroundColor: t((o.vars || o).palette.action.selected, 0.3),
37
37
  [`& .${i.root}`]: {
38
38
  color: (o.vars || o).palette.text.primary
39
39
  },
40
40
  "&:focus-visible": {
41
- backgroundColor: t(o.palette.action.selected, 0.3)
41
+ backgroundColor: t((o.vars || o).palette.action.selected, 0.3)
42
42
  },
43
43
  "&:hover": {
44
- backgroundColor: t(o.palette.action.selected, 0.5)
44
+ backgroundColor: t((o.vars || o).palette.action.selected, 0.5)
45
45
  }
46
46
  },
47
47
  "&:focus-visible": {
@@ -88,7 +88,7 @@ const y = {
88
88
  display: "flex",
89
89
  gap: 8,
90
90
  marginRight: 6,
91
- [`& .${e.root}`]: {
91
+ [`& .${r.root}`]: {
92
92
  minWidth: 0,
93
93
  width: 36,
94
94
  height: 36
@@ -18,14 +18,6 @@ const u = l(/* @__PURE__ */ i.jsx("path", {
18
18
  disableRipple: !0
19
19
  },
20
20
  styleOverrides: {
21
- // root: ({ theme }) => ({
22
- // boxSizing: 'border-box',
23
- // transition: 'all 100ms ease-in',
24
- // '&:focus-visible': {
25
- // outline: `3px solid ${alpha(theme.palette.primary.main, 0.5)}`,
26
- // outlineOffset: '2px',
27
- // },
28
- // }),
29
21
  root: {
30
22
  boxSizing: "border-box",
31
23
  transition: "all 100ms ease-in"
@@ -35,7 +27,7 @@ const u = l(/* @__PURE__ */ i.jsx("path", {
35
27
  MuiIconButton: {
36
28
  styleOverrides: {
37
29
  root: ({ theme: o }) => ({
38
- color: "var(--s-palette-text-primary)",
30
+ color: "inherit",
39
31
  boxShadow: "none",
40
32
  textTransform: "none",
41
33
  fontWeight: o.typography.fontWeightMedium,
@@ -193,10 +185,11 @@ const u = l(/* @__PURE__ */ i.jsx("path", {
193
185
  },
194
186
  MuiAutocomplete: {
195
187
  styleOverrides: {
196
- paper: {
188
+ paper: ({ theme: o }) => ({
197
189
  marginTop: 2,
198
- border: "1px solid var(--s-palette-divider)"
199
- },
190
+ border: "1px solid",
191
+ borderColor: (o.vars || o).palette.divider
192
+ }),
200
193
  popupIndicator: {
201
194
  background: "none",
202
195
  "&:hover": {
@@ -1,6 +1,6 @@
1
- import { gray as o } from "../theme-primitives.js";
2
- import { a as d } from "../../colorManipulator-ep5lERxB.js";
3
- const e = {
1
+ import { gray as o, lightGray as d } from "../theme-primitives.js";
2
+ import { a as s } from "../../colorManipulator-ep5lERxB.js";
3
+ const t = {
4
4
  MuiAccordion: {
5
5
  styleOverrides: {
6
6
  root: ({ theme: r, ownerState: a }) => ({
@@ -58,7 +58,7 @@ const e = {
58
58
  root: ({ theme: r }) => ({
59
59
  gap: 16,
60
60
  transition: "all 100ms ease",
61
- backgroundColor: o[50],
61
+ backgroundColor: d[100],
62
62
  borderRadius: (r.vars || r).shape.borderRadius,
63
63
  border: `1px solid ${(r.vars || r).palette.divider}`,
64
64
  boxShadow: "none",
@@ -75,7 +75,7 @@ const e = {
75
75
  boxShadow: "none",
76
76
  background: "rgb(255, 255, 255)",
77
77
  ...r.applyStyles("dark", {
78
- background: d(o[900], 0.4)
78
+ background: s(o[900], 0.4)
79
79
  })
80
80
  }
81
81
  }
@@ -107,5 +107,5 @@ const e = {
107
107
  }
108
108
  };
109
109
  export {
110
- e as surfacesCustomizations
110
+ t as surfacesCustomizations
111
111
  };
@@ -23,6 +23,26 @@ declare module '@mui/material/styles' {
23
23
  }
24
24
  interface Palette {
25
25
  baseShadow: string;
26
+ blackAlpha: {
27
+ zero: string;
28
+ light: string;
29
+ medium: string;
30
+ dark: string;
31
+ full: string;
32
+ };
33
+ whiteAlpha: {
34
+ zero: string;
35
+ light: string;
36
+ medium: string;
37
+ dark: string;
38
+ full: string;
39
+ };
40
+ gradient: {
41
+ primary: string;
42
+ secondary: string;
43
+ indigo: string;
44
+ sky: string;
45
+ };
26
46
  ui: {
27
47
  pulse: {
28
48
  shadowLight: string;
@@ -308,21 +328,14 @@ export declare const colorSchemes: {
308
328
  background: {
309
329
  default: string;
310
330
  paper: string;
311
- surface: string;
312
- elevated: string;
313
331
  };
314
332
  text: {
315
333
  primary: string;
316
334
  secondary: string;
317
- tertiary: string;
318
- disabled: string;
319
335
  };
320
336
  action: {
321
337
  hover: string;
322
338
  selected: string;
323
- disabled: string;
324
- disabledBackground: string;
325
- focus: string;
326
339
  };
327
340
  baseShadow: string;
328
341
  };