@solostylist/ui-kit 1.0.6 → 1.0.9

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 (83) hide show
  1. package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +1 -1
  2. package/dist/AppDataTable/AppDataTable.js +30 -29
  3. package/dist/AppDialogConfirm/AppDialogConfirm.js +1 -1
  4. package/dist/AppDialogMessage/AppDialogMessage.js +1 -1
  5. package/dist/AppFileDropzone/AppFileDropzone.js +3 -3
  6. package/dist/AppFileIcon/AppFileIcon.js +1 -1
  7. package/dist/AppMultiSelect/AppMultiSelect.js +2 -2
  8. package/dist/AppOption/AppOption.js +1 -1
  9. package/dist/AppTextEditor/AppTextEditor.js +1 -1
  10. package/dist/AppTextEditor/TextEditorToolbar.js +299 -303
  11. package/dist/AppTip/AppTip.js +2 -2
  12. package/dist/{Box-MNdIcw0w.js → Box-DyPisl7H.js} +11 -11
  13. package/dist/{ButtonBase-D7WZejV5.js → ButtonBase-C9K74oZC.js} +117 -120
  14. package/dist/{Menu-BymLGoMc.js → Menu-DrTy5vbc.js} +30 -30
  15. package/dist/{MenuItem-l3xZOND-.js → MenuItem-CSmlAERi.js} +84 -88
  16. package/dist/SThemeProvider/SThemeProvider.d.ts +12 -0
  17. package/dist/SThemeProvider/SThemeProvider.js +35 -0
  18. package/dist/SThemeProvider/index.d.ts +1 -0
  19. package/dist/SThemeProvider/index.js +4 -0
  20. package/dist/{Stack-CxKx2YGj.js → Stack-CP2l9Ko9.js} +14 -15
  21. package/dist/{Typography-QQx_YSAW.js → Typography-CgNLUV5h.js} +49 -54
  22. package/dist/backdropClasses-lc38rgzd.js +10 -0
  23. package/dist/buttonBaseClasses-DxKwiRBX.js +10 -0
  24. package/dist/createSvgIcon-CoYExp5F.js +247 -0
  25. package/dist/{createTheme-dX0MILsf.js → createTheme-BZxWCiBm.js} +9 -10
  26. package/dist/{extendSxProp-CTBBOYHX.js → extendSxProp-SCsFy5tr.js} +1 -1
  27. package/dist/generateUtilityClass-CRH_bFW6.js +34 -0
  28. package/dist/generateUtilityClasses-STjIp_B9.js +10 -0
  29. package/dist/iconButtonClasses-CqYTUZq-.js +10 -0
  30. package/dist/{clsx-DfguY6FT.js → identifier-CHPjnqaz.js} +50 -48
  31. package/dist/{index-f-gkJ93Q.js → index-BB439voV.js} +11 -10
  32. package/dist/{inputBaseClasses-s6dljKxi.js → inputBaseClasses-BRd7g4Od.js} +6 -5
  33. package/dist/{listItemIconClasses-CTdclC9V.js → listItemIconClasses-D-kc0Y9u.js} +1 -1
  34. package/dist/main.d.ts +1 -1
  35. package/dist/main.js +6 -6
  36. package/dist/memoTheme-B7hT_l31.js +291 -0
  37. package/dist/menuItemClasses-BxqenSTj.js +12 -0
  38. package/dist/outlinedInputClasses-BTtPbpE5.js +14 -0
  39. package/dist/{paperClasses-Bf2rrWVr.js → paperClasses-D1WMlaxU.js} +6 -5
  40. package/dist/selectClasses-BaagNb21.js +10 -0
  41. package/dist/styles/theme/components/autocomplete.js +2 -2
  42. package/dist/styles/theme/components/backdrop.js +1 -1
  43. package/dist/styles/theme/components/button.js +1 -1
  44. package/dist/styles/theme/components/card-header.js +1 -1
  45. package/dist/styles/theme/components/card.js +1 -1
  46. package/dist/styles/theme/components/filled-input.js +1 -1
  47. package/dist/styles/theme/components/input.js +1 -1
  48. package/dist/styles/theme/components/menu-item.js +1 -1
  49. package/dist/styles/theme/components/outlined-input.js +2 -2
  50. package/dist/styles/theme/components/table-head.js +1 -1
  51. package/dist/styles/theme/components/tabs.js +5 -4
  52. package/dist/styles/theme/customizations/data-display.d.ts +2 -0
  53. package/dist/styles/theme/customizations/data-display.js +234 -0
  54. package/dist/styles/theme/customizations/feedback.d.ts +2 -0
  55. package/dist/styles/theme/customizations/feedback.js +47 -0
  56. package/dist/styles/theme/customizations/inputs.d.ts +2 -0
  57. package/dist/styles/theme/customizations/inputs.js +447 -0
  58. package/dist/styles/theme/customizations/navigation.d.ts +2 -0
  59. package/dist/styles/theme/customizations/navigation.js +276 -0
  60. package/dist/styles/theme/customizations/surfaces.d.ts +2 -0
  61. package/dist/styles/theme/customizations/surfaces.js +112 -0
  62. package/dist/styles/theme/theme-primitives.d.ts +366 -0
  63. package/dist/styles/theme/theme-primitives.js +351 -0
  64. package/dist/svgIconClasses-SzHbWjUv.js +10 -0
  65. package/dist/tabClasses-CDDkt7la.js +5 -0
  66. package/dist/tableCellClasses-CBw1aep0.js +10 -0
  67. package/dist/typographyClasses-BrhUWCU3.js +10 -0
  68. package/dist/useControlled-QI8qSFYJ.js +38 -0
  69. package/dist/{useSlot-Tj9CW-Xc.js → useSlot-CX_V7IfD.js} +2 -2
  70. package/dist/{useTheme-CNZ6Hnpo.js → useTheme-DrS6mww6.js} +3 -3
  71. package/package.json +2 -2
  72. package/dist/AppThemeProvider/AppThemeProvider.d.ts +0 -9
  73. package/dist/AppThemeProvider/AppThemeProvider.js +0 -141
  74. package/dist/AppThemeProvider/index.d.ts +0 -1
  75. package/dist/AppThemeProvider/index.js +0 -4
  76. package/dist/DefaultPropsProvider-Cw67t9bx.js +0 -71
  77. package/dist/backdropClasses-DDhytLTQ.js +0 -9
  78. package/dist/generateUtilityClasses-CuEy5gtx.js +0 -41
  79. package/dist/memoTheme-DOlCkXD8.js +0 -223
  80. package/dist/outlinedInputClasses-rXE3T3sa.js +0 -13
  81. package/dist/tableCellClasses-BIg5orIQ.js +0 -9
  82. package/dist/useControlled-DyL3m721.js +0 -287
  83. /package/dist/{AppThemeProvider → SThemeProvider}/package.json +0 -0
@@ -1,287 +0,0 @@
1
- import * as i from "react";
2
- import { j as C } from "./jsx-runtime-C5mzlN2N.js";
3
- import { c as z, P as e } from "./createTheme-dX0MILsf.js";
4
- import { c as N } from "./clsx-DfguY6FT.js";
5
- import { s as I, c as E, m as w } from "./memoTheme-DOlCkXD8.js";
6
- import { a as O, g as $ } from "./generateUtilityClasses-CuEy5gtx.js";
7
- import { u as T } from "./DefaultPropsProvider-Cw67t9bx.js";
8
- const b = /* @__PURE__ */ i.createContext(void 0);
9
- process.env.NODE_ENV !== "production" && (b.displayName = "FormControlContext");
10
- function _() {
11
- return i.useContext(b);
12
- }
13
- function j(o) {
14
- return O("MuiSvgIcon", o);
15
- }
16
- $("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
17
- const R = (o) => {
18
- const {
19
- color: n,
20
- fontSize: t,
21
- classes: s
22
- } = o, r = {
23
- root: ["root", n !== "inherit" && `color${z(n)}`, `fontSize${z(t)}`]
24
- };
25
- return E(r, j, s);
26
- }, V = I("svg", {
27
- name: "MuiSvgIcon",
28
- slot: "Root",
29
- overridesResolver: (o, n) => {
30
- const {
31
- ownerState: t
32
- } = o;
33
- return [n.root, t.color !== "inherit" && n[`color${z(t.color)}`], n[`fontSize${z(t.fontSize)}`]];
34
- }
35
- })(w(({
36
- theme: o
37
- }) => {
38
- var n, t, s, r, f, u, a, d, c, g, p, S, h, m;
39
- return {
40
- userSelect: "none",
41
- width: "1em",
42
- height: "1em",
43
- display: "inline-block",
44
- flexShrink: 0,
45
- transition: (r = (n = o.transitions) == null ? void 0 : n.create) == null ? void 0 : r.call(n, "fill", {
46
- duration: (s = (t = (o.vars ?? o).transitions) == null ? void 0 : t.duration) == null ? void 0 : s.shorter
47
- }),
48
- variants: [
49
- {
50
- props: (l) => !l.hasSvgAsChild,
51
- style: {
52
- // the <svg> will define the property that has `currentColor`
53
- // for example heroicons uses fill="none" and stroke="currentColor"
54
- fill: "currentColor"
55
- }
56
- },
57
- {
58
- props: {
59
- fontSize: "inherit"
60
- },
61
- style: {
62
- fontSize: "inherit"
63
- }
64
- },
65
- {
66
- props: {
67
- fontSize: "small"
68
- },
69
- style: {
70
- fontSize: ((u = (f = o.typography) == null ? void 0 : f.pxToRem) == null ? void 0 : u.call(f, 20)) || "1.25rem"
71
- }
72
- },
73
- {
74
- props: {
75
- fontSize: "medium"
76
- },
77
- style: {
78
- fontSize: ((d = (a = o.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : d.call(a, 24)) || "1.5rem"
79
- }
80
- },
81
- {
82
- props: {
83
- fontSize: "large"
84
- },
85
- style: {
86
- fontSize: ((g = (c = o.typography) == null ? void 0 : c.pxToRem) == null ? void 0 : g.call(c, 35)) || "2.1875rem"
87
- }
88
- },
89
- // TODO v5 deprecate color prop, v6 remove for sx
90
- ...Object.entries((o.vars ?? o).palette).filter(([, l]) => l && l.main).map(([l]) => {
91
- var v, y;
92
- return {
93
- props: {
94
- color: l
95
- },
96
- style: {
97
- color: (y = (v = (o.vars ?? o).palette) == null ? void 0 : v[l]) == null ? void 0 : y.main
98
- }
99
- };
100
- }),
101
- {
102
- props: {
103
- color: "action"
104
- },
105
- style: {
106
- color: (S = (p = (o.vars ?? o).palette) == null ? void 0 : p.action) == null ? void 0 : S.active
107
- }
108
- },
109
- {
110
- props: {
111
- color: "disabled"
112
- },
113
- style: {
114
- color: (m = (h = (o.vars ?? o).palette) == null ? void 0 : h.action) == null ? void 0 : m.disabled
115
- }
116
- },
117
- {
118
- props: {
119
- color: "inherit"
120
- },
121
- style: {
122
- color: void 0
123
- }
124
- }
125
- ]
126
- };
127
- })), x = /* @__PURE__ */ i.forwardRef(function(n, t) {
128
- const s = T({
129
- props: n,
130
- name: "MuiSvgIcon"
131
- }), {
132
- children: r,
133
- className: f,
134
- color: u = "inherit",
135
- component: a = "svg",
136
- fontSize: d = "medium",
137
- htmlColor: c,
138
- inheritViewBox: g = !1,
139
- titleAccess: p,
140
- viewBox: S = "0 0 24 24",
141
- ...h
142
- } = s, m = /* @__PURE__ */ i.isValidElement(r) && r.type === "svg", l = {
143
- ...s,
144
- color: u,
145
- component: a,
146
- fontSize: d,
147
- instanceFontSize: n.fontSize,
148
- inheritViewBox: g,
149
- viewBox: S,
150
- hasSvgAsChild: m
151
- }, v = {};
152
- g || (v.viewBox = S);
153
- const y = R(l);
154
- return /* @__PURE__ */ C.jsxs(V, {
155
- as: a,
156
- className: N(y.root, f),
157
- focusable: "false",
158
- color: c,
159
- "aria-hidden": p ? void 0 : !0,
160
- role: p ? "img" : void 0,
161
- ref: t,
162
- ...v,
163
- ...h,
164
- ...m && r.props,
165
- ownerState: l,
166
- children: [m ? r.props.children : r, p ? /* @__PURE__ */ C.jsx("title", {
167
- children: p
168
- }) : null]
169
- });
170
- });
171
- process.env.NODE_ENV !== "production" && (x.propTypes = {
172
- // ┌────────────────────────────── Warning ──────────────────────────────┐
173
- // │ These PropTypes are generated from the TypeScript type definitions. │
174
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
175
- // └─────────────────────────────────────────────────────────────────────┘
176
- /**
177
- * Node passed into the SVG element.
178
- */
179
- children: e.node,
180
- /**
181
- * Override or extend the styles applied to the component.
182
- */
183
- classes: e.object,
184
- /**
185
- * @ignore
186
- */
187
- className: e.string,
188
- /**
189
- * The color of the component.
190
- * It supports both default and custom theme colors, which can be added as shown in the
191
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
192
- * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
193
- * @default 'inherit'
194
- */
195
- color: e.oneOfType([e.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
196
- /**
197
- * The component used for the root node.
198
- * Either a string to use a HTML element or a component.
199
- */
200
- component: e.elementType,
201
- /**
202
- * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
203
- * @default 'medium'
204
- */
205
- fontSize: e.oneOfType([e.oneOf(["inherit", "large", "medium", "small"]), e.string]),
206
- /**
207
- * Applies a color attribute to the SVG element.
208
- */
209
- htmlColor: e.string,
210
- /**
211
- * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
212
- * prop will be ignored.
213
- * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
214
- * `component`'s viewBox to the root node.
215
- * @default false
216
- */
217
- inheritViewBox: e.bool,
218
- /**
219
- * The shape-rendering attribute. The behavior of the different options is described on the
220
- * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
221
- * If you are having issues with blurry icons you should investigate this prop.
222
- */
223
- shapeRendering: e.string,
224
- /**
225
- * The system prop that allows defining system overrides as well as additional CSS styles.
226
- */
227
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
228
- /**
229
- * Provides a human-readable title for the element that contains it.
230
- * https://www.w3.org/TR/SVG-access/#Equivalent
231
- */
232
- titleAccess: e.string,
233
- /**
234
- * Allows you to redefine what the coordinates without units mean inside an SVG element.
235
- * For example, if the SVG element is 500 (width) by 200 (height),
236
- * and you pass viewBox="0 0 50 20",
237
- * this means that the coordinates inside the SVG will go from the top left corner (0,0)
238
- * to bottom right (50,20) and each unit will be worth 10px.
239
- * @default '0 0 24 24'
240
- */
241
- viewBox: e.string
242
- });
243
- x.muiName = "SvgIcon";
244
- function k(o, n) {
245
- function t(s, r) {
246
- return /* @__PURE__ */ C.jsx(x, {
247
- "data-testid": process.env.NODE_ENV !== "production" ? `${n}Icon` : void 0,
248
- ref: r,
249
- ...s,
250
- children: o
251
- });
252
- }
253
- return process.env.NODE_ENV !== "production" && (t.displayName = `${n}Icon`), t.muiName = x.muiName, /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(t));
254
- }
255
- function J({
256
- controlled: o,
257
- default: n,
258
- name: t,
259
- state: s = "value"
260
- }) {
261
- const {
262
- current: r
263
- } = i.useRef(o !== void 0), [f, u] = i.useState(n), a = r ? o : f;
264
- if (process.env.NODE_ENV !== "production") {
265
- i.useEffect(() => {
266
- r !== (o !== void 0) && console.error([`MUI: A component is changing the ${r ? "" : "un"}controlled ${s} state of ${t} to be ${r ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
267
- `));
268
- }, [s, t, o]);
269
- const {
270
- current: c
271
- } = i.useRef(n);
272
- i.useEffect(() => {
273
- !r && !Object.is(c, n) && console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
274
- `));
275
- }, [JSON.stringify(n)]);
276
- }
277
- const d = i.useCallback((c) => {
278
- r || u(c);
279
- }, []);
280
- return [a, d];
281
- }
282
- export {
283
- b as F,
284
- _ as a,
285
- k as c,
286
- J as u
287
- };