@solostylist/ui-kit 1.0.192 → 1.0.193

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.
@@ -1,35 +1,35 @@
1
- import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
- import a, { forwardRef as c } from "react";
3
- import { Tabs as x, Tab as h, Box as j } from "@mui/material";
4
- const g = c(
5
- ({ tabs: d, activeTab: s = 0, onTabChange: p, children: l, tabPanelProps: f, ...t }, m) => {
6
- const [n, i] = a.useState(s);
7
- a.useEffect(() => {
8
- s !== !1 && i(s);
1
+ import { j as o } from "../jsx-runtime-tc70JA_2.js";
2
+ import r, { forwardRef as j } from "react";
3
+ import { Tabs as g, Tab as y, Box as f } from "@mui/material";
4
+ const C = j(
5
+ ({ tabs: p, activeTab: s = 0, onTabChange: c, children: l, tabPanelProps: m, ...a }, u) => {
6
+ const [i, t] = r.useState(s);
7
+ r.useEffect(() => {
8
+ s !== !1 && t(s);
9
9
  }, [s]);
10
- const u = (e, o) => {
11
- s === !1 && i(o), p?.(e, o);
12
- };
13
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
14
- /* @__PURE__ */ r.jsx(x, { ref: m, value: n, onChange: u, ...t, children: d.map((e, o) => /* @__PURE__ */ r.jsx(
15
- h,
10
+ const x = (e, n) => {
11
+ s === !1 && t(n), c?.(e, n);
12
+ }, h = a.orientation === "vertical", d = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
13
+ /* @__PURE__ */ o.jsx(g, { ref: u, value: i, onChange: x, ...a, children: p.map((e, n) => /* @__PURE__ */ o.jsx(
14
+ y,
16
15
  {
17
16
  label: e.label,
18
- value: e.value ?? o,
17
+ value: e.value ?? n,
19
18
  disabled: e.disabled,
20
19
  icon: e.icon,
21
20
  iconPosition: e.iconPosition,
22
21
  wrapped: e.wrapped,
23
22
  ...e.tabProps
24
23
  },
25
- o
24
+ n
26
25
  )) }),
27
- l && /* @__PURE__ */ r.jsx(j, { role: "tabpanel", padding: 2, ...f, children: a.Children.toArray(l)[n] })
26
+ l && /* @__PURE__ */ o.jsx(f, { role: "tabpanel", padding: 2, ...m, children: r.Children.toArray(l)[i] })
28
27
  ] });
28
+ return h ? /* @__PURE__ */ o.jsx(f, { display: "flex", children: d }) : d;
29
29
  }
30
30
  );
31
- g.displayName = "STabs";
31
+ C.displayName = "STabs";
32
32
  export {
33
- g as STabs,
34
- g as default
33
+ C as STabs,
34
+ C as default
35
35
  };
@@ -1,33 +1,33 @@
1
1
  import { i } from "../../iconButtonClasses-BMfIhNTh.js";
2
- import { b as e } from "../../buttonBaseClasses-jtnoTmPn.js";
3
- import { t as a } from "../../typographyClasses-jmoWZuXc.js";
2
+ import { b as a } from "../../buttonBaseClasses-jtnoTmPn.js";
3
+ import { t as e } from "../../typographyClasses-jmoWZuXc.js";
4
4
  import { s as t } from "../../svgIconClasses-C6auqaBA.js";
5
5
  const r = (o) => ({
6
6
  alignItems: "center",
7
7
  display: "flex",
8
8
  gap: 8,
9
9
  padding: "0.5rem 1rem",
10
- borderRadius: (o.vars || o).shape.borderRadius,
10
+ borderRadius: 0,
11
11
  whiteSpace: "nowrap",
12
12
  color: (o.vars || o).palette.text.secondary,
13
13
  [`& .${t.root}`]: {
14
14
  color: (o.vars || o).palette.text.secondary
15
15
  },
16
16
  "&.Mui-selected": {
17
- backgroundColor: o.palette.action.selected,
17
+ backgroundColor: (o.vars || o).palette.action.selected,
18
18
  color: (o.vars || o).palette.text.primary,
19
19
  [`& .${t.root}`]: {
20
20
  color: (o.vars || o).palette.text.primary
21
21
  },
22
22
  "&:focus-visible": {
23
- backgroundColor: o.palette.action.selected
23
+ backgroundColor: (o.vars || o).palette.action.selected
24
24
  },
25
25
  "&:hover": {
26
- backgroundColor: o.palette.action.selected
26
+ backgroundColor: (o.vars || o).palette.action.selected
27
27
  }
28
28
  },
29
29
  "&:hover:not(.Mui-selected)": {
30
- backgroundColor: o.palette.action.hover,
30
+ backgroundColor: (o.vars || o).palette.action.hover,
31
31
  color: (o.vars || o).palette.text.primary,
32
32
  [`& .${t.root}`]: {
33
33
  color: (o.vars || o).palette.text.primary
@@ -60,10 +60,10 @@ const r = (o) => ({
60
60
  [`& .${t.root}`]: {
61
61
  color: (o.vars || o).palette.text.secondary
62
62
  },
63
- [`& .${a.root}`]: {
63
+ [`& .${e.root}`]: {
64
64
  fontWeight: 500
65
65
  },
66
- [`& .${e.root}`]: r(o)
66
+ [`& .${a.root}`]: r(o)
67
67
  })
68
68
  }
69
69
  },
@@ -1,10 +1,10 @@
1
- import { j as a } from "../../jsx-runtime-tc70JA_2.js";
1
+ import { j as e } from "../../jsx-runtime-tc70JA_2.js";
2
2
  import * as i from "react";
3
- import { c as s } from "../../createSvgIcon-DTNHY3_v.js";
4
- import { gray as o, brand as l } from "../theme-primitives.js";
3
+ import { c as l } from "../../createSvgIcon-DTNHY3_v.js";
4
+ import { gray as a, brand as s } from "../theme-primitives.js";
5
5
  import { t } from "../../tabClasses-DFvXsFrN.js";
6
6
  import { a as d } from "../../createTheme-CIXJrNxb.js";
7
- const n = s(/* @__PURE__ */ a.jsx("path", {
7
+ const n = l(/* @__PURE__ */ e.jsx("path", {
8
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"
9
9
  }), "UnfoldMoreRounded"), y = {
10
10
  MuiAppBar: {
@@ -49,7 +49,7 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
49
49
  },
50
50
  MuiSelect: {
51
51
  defaultProps: {
52
- IconComponent: i.forwardRef((r, e) => /* @__PURE__ */ a.jsx(n, { fontSize: "small", ...r, ref: e }))
52
+ IconComponent: i.forwardRef((r, o) => /* @__PURE__ */ e.jsx(n, { fontSize: "small", ...r, ref: o }))
53
53
  }
54
54
  },
55
55
  MuiLink: {
@@ -78,7 +78,7 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
78
78
  width: 0
79
79
  },
80
80
  "&:focus-visible": {
81
- outline: `3px solid ${d(l[500], 0.5)}`,
81
+ outline: `3px solid ${d(s[500], 0.5)}`,
82
82
  outlineOffset: "4px",
83
83
  borderRadius: "2px"
84
84
  }
@@ -109,12 +109,16 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
109
109
  },
110
110
  MuiTabs: {
111
111
  styleOverrides: {
112
- root: ({ theme: r }) => ({
113
- width: "100%",
112
+ root: ({ theme: r, ownerState: o }) => ({
114
113
  minHeight: "fit-content",
115
114
  border: 0,
116
- borderBottom: "1px solid",
117
- borderColor: (r.vars || r).palette.divider
115
+ ...o.orientation === "vertical" ? {
116
+ borderRight: "1px solid",
117
+ borderColor: (r.vars || r).palette.divider
118
+ } : {
119
+ borderBottom: "1px solid",
120
+ borderColor: (r.vars || r).palette.divider
121
+ }
118
122
  }),
119
123
  indicator: ({ theme: r }) => ({
120
124
  backgroundColor: (r.vars || r).palette.grey[800],
@@ -128,6 +132,9 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
128
132
  styleOverrides: {
129
133
  root: ({ theme: r }) => ({
130
134
  textTransform: "none",
135
+ ".MuiTabs-vertical &": {
136
+ alignItems: "flex-start"
137
+ },
131
138
  minWidth: "fit-content",
132
139
  minHeight: "fit-content",
133
140
  color: (r.vars || r).palette.text.secondary,
@@ -165,7 +172,7 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
165
172
  styleOverrides: {
166
173
  root: ({ theme: r }) => ({
167
174
  color: "transparent",
168
- border: `1px solid ${o[400]}`,
175
+ border: `1px solid ${a[400]}`,
169
176
  width: 12,
170
177
  height: 12,
171
178
  borderRadius: "50%",
@@ -181,7 +188,7 @@ const n = s(/* @__PURE__ */ a.jsx("path", {
181
188
  color: (r.vars || r).palette.success.main
182
189
  },
183
190
  ...r.applyStyles("dark", {
184
- border: `1px solid ${o[700]}`,
191
+ border: `1px solid ${a[700]}`,
185
192
  "&.Mui-active": {
186
193
  border: "none",
187
194
  color: (r.vars || r).palette.primary.light
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.192",
6
+ "version": "1.0.193",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "type": "module",
9
9
  "main": "dist/main.js",