@solostylist/ui-kit 1.0.43 → 1.0.45

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.
@@ -3,43 +3,42 @@ import * as p from "react";
3
3
  import { Link as n } from "@tiptap/extension-link";
4
4
  import { Placeholder as m } from "@tiptap/extension-placeholder";
5
5
  import { useEditor as c, EditorContent as f } from "@tiptap/react";
6
- import { StarterKit as x } from "@tiptap/starter-kit";
7
- import { STextEditorToolbar as d } from "./s-text-editor-toolbar.js";
8
- import { B as u } from "../Box-BOnkyXg-.js";
9
- const S = ({
10
- content: o,
11
- editable: r = !0,
6
+ import { StarterKit as u } from "@tiptap/starter-kit";
7
+ import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
8
+ import { B as d } from "../Box-BOnkyXg-.js";
9
+ const z = ({
10
+ content: r,
11
+ editable: o = !0,
12
12
  hideToolbar: i,
13
13
  onUpdate: s = () => {
14
14
  },
15
15
  placeholder: a
16
16
  }) => {
17
17
  const l = [
18
- x,
18
+ u,
19
19
  m.configure({ emptyEditorClass: "is-editor-empty", placeholder: a }),
20
20
  n.configure({ openOnClick: !1, autolink: !0 })
21
21
  ], e = c({
22
22
  extensions: l,
23
- content: o,
24
- editable: r,
23
+ content: r,
24
+ editable: o,
25
25
  onUpdate: s,
26
26
  parseOptions: {
27
27
  preserveWhitespace: "full"
28
28
  }
29
29
  });
30
30
  return p.useEffect(() => {
31
- e == null || e.commands.setContent(o, !1, { preserveWhitespace: "full" });
32
- }, [o]), /* @__PURE__ */ t.jsxs(
33
- u,
31
+ e == null || e.commands.setContent(r, !1, { preserveWhitespace: "full" });
32
+ }, [r]), /* @__PURE__ */ t.jsxs(
33
+ d,
34
34
  {
35
35
  className: "tiptap-root",
36
36
  sx: {
37
37
  display: "flex",
38
38
  flexDirection: "column",
39
- ...r && {
39
+ ...o && {
40
40
  border: "1px solid var(--s-palette-divider)",
41
- borderRadius: 1,
42
- boxShadow: "var(--s-shadows-1)"
41
+ borderRadius: 1
43
42
  },
44
43
  "& .tiptap-container": {
45
44
  display: "flex",
@@ -69,12 +68,12 @@ const S = ({
69
68
  }
70
69
  },
71
70
  children: [
72
- i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(d, { editor: e }),
71
+ i ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx(x, { editor: e }),
73
72
  /* @__PURE__ */ t.jsx(f, { className: "tiptap-container", editor: e })
74
73
  ]
75
74
  }
76
75
  );
77
76
  };
78
77
  export {
79
- S as default
78
+ z as default
80
79
  };
@@ -1,13 +1,14 @@
1
- import { ThemeOptions, ThemeProviderProps } from '@mui/material';
1
+ import { Theme, ThemeOptions, ThemeProviderProps } from '@mui/material';
2
2
  import * as React from 'react';
3
- export interface SThemeProviderProps {
3
+ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMode' | 'theme'> {
4
4
  children: React.ReactNode;
5
5
  /**
6
6
  * This is for the docs site. You can ignore it or remove it.
7
7
  */
8
8
  disableCustomTheme?: boolean;
9
9
  themeComponents?: ThemeOptions['components'];
10
- themeProviderProps?: ThemeProviderProps;
10
+ defaultMode?: 'light' | 'dark' | 'system' | undefined;
11
+ theme?: Theme;
11
12
  }
12
- declare const SThemeProvider: ({ children, disableCustomTheme, themeComponents, themeProviderProps, }: SThemeProviderProps) => React.JSX.Element;
13
+ declare const SThemeProvider: ({ children, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps) => React.JSX.Element;
13
14
  export default SThemeProvider;
@@ -1,51 +1,56 @@
1
- import { j as m } from "../jsx-runtime-C5mzlN2N.js";
2
- import * as s from "react";
3
- import { createTheme as e, ThemeProvider as n } from "@mui/material";
4
- import { components as c } from "../theme/components/components.js";
5
- import { dataDisplayCustomizations as f } from "../theme/customizations/data-display.js";
6
- import { feedbackCustomizations as u } from "../theme/customizations/feedback.js";
7
- import { inputsCustomizations as p } from "../theme/customizations/inputs.js";
1
+ import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
+ import * as m from "react";
3
+ import { createTheme as p, ThemeProvider as c } from "@mui/material";
4
+ import { components as f } from "../theme/components/components.js";
5
+ import { dataDisplayCustomizations as u } from "../theme/customizations/data-display.js";
6
+ import { feedbackCustomizations as d } from "../theme/customizations/feedback.js";
7
+ import { inputsCustomizations as h } from "../theme/customizations/inputs.js";
8
8
  import { navigationCustomizations as l } from "../theme/customizations/navigation.js";
9
9
  import { surfacesCustomizations as x } from "../theme/customizations/surfaces.js";
10
- import { shape as z, shadows as g, typography as h, colorSchemes as j } from "../theme/theme-primitives.js";
11
- const b = ({
12
- children: a,
13
- disableCustomTheme: t,
14
- themeComponents: r,
15
- themeProviderProps: o
10
+ import { shape as z, shadows as g, typography as j, colorSchemes as S } from "../theme/theme-primitives.js";
11
+ const w = ({
12
+ children: r,
13
+ disableCustomTheme: o,
14
+ themeComponents: t,
15
+ defaultMode: s = "dark",
16
+ theme: a,
17
+ ...i
16
18
  }) => {
17
- const i = s.useMemo(() => t ? {} : e({
19
+ const n = m.useMemo(() => o ? {} : p({
18
20
  // For more details about CSS variables configuration, see https://mui.com/material-ui/customization/css-theme-variables/configuration/
19
21
  cssVariables: {
20
22
  colorSchemeSelector: "data-mui-color-scheme",
21
23
  cssVarPrefix: "s"
22
24
  },
23
- colorSchemes: j,
25
+ palette: {
26
+ mode: "dark"
27
+ },
28
+ colorSchemes: S,
24
29
  // Recently added in v6 for building light & dark mode app, see https://mui.com/material-ui/customization/palette/#color-schemes
25
- typography: h,
30
+ typography: j,
26
31
  shadows: g,
27
32
  shape: z,
28
33
  components: {
29
- ...p,
30
- ...f,
34
+ ...h,
31
35
  ...u,
36
+ ...d,
32
37
  ...l,
33
38
  ...x,
34
- ...c,
35
- ...r
39
+ ...f,
40
+ ...t
36
41
  }
37
- }), [t, r]);
38
- return t ? /* @__PURE__ */ m.jsx(s.Fragment, { children: a }) : /* @__PURE__ */ m.jsx(
39
- n,
42
+ }), [o, t]);
43
+ return o ? /* @__PURE__ */ e.jsx(m.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(
44
+ c,
40
45
  {
41
46
  disableTransitionOnChange: !0,
42
- defaultMode: "dark",
43
- ...o,
44
- theme: { ...i, ...o == null ? void 0 : o.theme },
45
- children: a
47
+ ...i,
48
+ theme: { ...n, ...a },
49
+ defaultMode: s,
50
+ children: r
46
51
  }
47
52
  );
48
53
  };
49
54
  export {
50
- b as default
55
+ w as default
51
56
  };
@@ -1,5 +1,5 @@
1
1
  const e = {
2
- defaultProps: { elevation: 5 },
2
+ defaultProps: { elevation: 0 },
3
3
  styleOverrides: { paper: ({ theme: r }) => ({ borderRadius: (r.vars || r).shape.borderRadius, marginTop: 4 }) }
4
4
  };
5
5
  export {
@@ -18,14 +18,18 @@ const c = l(/* @__PURE__ */ a.jsx("path", {
18
18
  disableRipple: !0
19
19
  },
20
20
  styleOverrides: {
21
- root: ({ theme: o }) => ({
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
+ root: {
22
30
  boxSizing: "border-box",
23
- transition: "all 100ms ease-in",
24
- "&:focus-visible": {
25
- outline: `3px solid ${t(o.palette.primary.main, 0.5)}`,
26
- outlineOffset: "2px"
27
- }
28
- })
31
+ transition: "all 100ms ease-in"
32
+ }
29
33
  }
30
34
  },
31
35
  MuiButton: {
@@ -1,13 +1,12 @@
1
- import { j as s } from "../../jsx-runtime-C5mzlN2N.js";
2
- import * as l from "react";
3
- import { c as d } from "../../createSvgIcon-FIMSBrG5.js";
4
- import { gray as r, brand as n } from "../theme-primitives.js";
5
- import { g as p } from "../../generateUtilityClasses-CvAVhM6T.js";
6
- import { s as a } from "../../selectClasses-DWL9Cxkn.js";
7
- import { a as e } from "../../createTheme-CyFSna1a.js";
8
- const c = d(/* @__PURE__ */ s.jsx("path", {
1
+ import { j as e } from "../../jsx-runtime-C5mzlN2N.js";
2
+ import * as i from "react";
3
+ import { c as l } from "../../createSvgIcon-FIMSBrG5.js";
4
+ import { gray as r, brand as s } from "../theme-primitives.js";
5
+ import { g as n } from "../../generateUtilityClasses-CvAVhM6T.js";
6
+ import { a as d } from "../../createTheme-CyFSna1a.js";
7
+ const p = l(/* @__PURE__ */ e.jsx("path", {
9
8
  d: "m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 3.7a.996.996 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0zm0 12.34-2.46-2.46a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
10
- }), "UnfoldMoreRounded"), t = p("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), x = {
9
+ }), "UnfoldMoreRounded"), t = n("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), g = {
11
10
  MuiMenu: {
12
11
  styleOverrides: {
13
12
  list: {
@@ -15,6 +14,17 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
15
14
  paddingTop: 8,
16
15
  paddingBottom: 8
17
16
  }
17
+ },
18
+ defaultProps: {
19
+ anchorOrigin: {
20
+ vertical: "bottom",
21
+ horizontal: "center"
22
+ },
23
+ transformOrigin: {
24
+ vertical: "top",
25
+ horizontal: "center"
26
+ },
27
+ marginThreshold: 0
18
28
  }
19
29
  },
20
30
  MuiMenuItem: {
@@ -24,64 +34,7 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
24
34
  },
25
35
  MuiSelect: {
26
36
  defaultProps: {
27
- IconComponent: l.forwardRef((o, i) => /* @__PURE__ */ s.jsx(c, { fontSize: "small", ...o, ref: i })),
28
- MenuProps: {
29
- anchorOrigin: {
30
- vertical: "bottom",
31
- horizontal: "center"
32
- },
33
- transformOrigin: {
34
- vertical: "top",
35
- horizontal: "center"
36
- },
37
- marginThreshold: 0
38
- }
39
- },
40
- styleOverrides: {
41
- root: ({ theme: o }) => ({
42
- borderRadius: (o.vars || o).shape.borderRadius,
43
- border: "1px solid",
44
- borderColor: r[200],
45
- backgroundColor: (o.vars || o).palette.background.paper,
46
- boxShadow: "inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)",
47
- "&:hover": {
48
- borderColor: r[300],
49
- backgroundColor: (o.vars || o).palette.background.paper,
50
- boxShadow: "none"
51
- },
52
- [`&.${a.focused}`]: {
53
- outlineOffset: 0,
54
- borderColor: r[400]
55
- },
56
- "&:before, &:after": {
57
- display: "none"
58
- },
59
- ...o.applyStyles("dark", {
60
- borderRadius: (o.vars || o).shape.borderRadius,
61
- borderColor: r[700],
62
- backgroundColor: (o.vars || o).palette.background.paper,
63
- boxShadow: `inset 0 1px 0 1px ${e(r[700], 0.15)}, inset 0 -1px 0 1px hsla(220, 0%, 0%, 0.7)`,
64
- "&:hover": {
65
- borderColor: e(r[700], 0.7),
66
- backgroundColor: (o.vars || o).palette.background.paper,
67
- boxShadow: "none"
68
- },
69
- [`&.${a.focused}`]: {
70
- outlineOffset: 0,
71
- borderColor: r[900]
72
- },
73
- "&:before, &:after": {
74
- display: "none"
75
- }
76
- })
77
- }),
78
- select: ({ theme: o }) => ({
79
- ...o.applyStyles("dark", {
80
- "&:focus-visible": {
81
- backgroundColor: r[900]
82
- }
83
- })
84
- })
37
+ IconComponent: i.forwardRef((o, a) => /* @__PURE__ */ e.jsx(p, { fontSize: "small", ...o, ref: a }))
85
38
  }
86
39
  },
87
40
  MuiLink: {
@@ -110,7 +63,7 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
110
63
  width: 0
111
64
  },
112
65
  "&:focus-visible": {
113
- outline: `3px solid ${e(n[500], 0.5)}`,
66
+ outline: `3px solid ${d(s[500], 0.5)}`,
114
67
  outlineOffset: "4px",
115
68
  borderRadius: "2px"
116
69
  }
@@ -248,5 +201,5 @@ const c = d(/* @__PURE__ */ s.jsx("path", {
248
201
  }
249
202
  };
250
203
  export {
251
- x as navigationCustomizations
204
+ g as navigationCustomizations
252
205
  };
@@ -73,7 +73,7 @@ const i = {
73
73
  style: {
74
74
  border: `1px solid ${(r.vars || r).palette.divider}`,
75
75
  boxShadow: "none",
76
- background: "hsl(0, 0%, 100%)",
76
+ background: "rgb(255, 255, 255)",
77
77
  ...r.applyStyles("dark", {
78
78
  background: a(o[900], 0.4)
79
79
  })