@solostylist/ui-kit 1.0.187 → 1.0.188

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.
@@ -46,6 +46,8 @@ export interface STwoPaneLayoutProps {
46
46
  sidebarHeaderPadding?: number | string;
47
47
  /** Padding for content header. Default: 2 */
48
48
  contentHeaderPadding?: number | string;
49
+ /** Height of header sections to ensure consistent sizing between panes. Default: '40px' */
50
+ headerHeight?: number | string;
49
51
  }
50
52
  /**
51
53
  * A flexible two-pane layout component with customizable sidebar and content areas.
@@ -1,53 +1,82 @@
1
1
  import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
2
  import { Box as r } from "@mui/material";
3
- import { SOverlayScrollbar as p } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
4
- import { SFlexBox as C } from "../s-flex-box/s-flex-box.js";
3
+ import { SOverlayScrollbar as a } from "../s-overlay-scrollbar/s-overlay-scrollbar.js";
4
+ import { SFlexBox as I } from "../s-flex-box/s-flex-box.js";
5
5
  const R = ({
6
- sidebar: o,
7
- content: l,
8
- sidebarWidth: a = 280,
6
+ sidebar: x,
7
+ content: i,
8
+ sidebarWidth: g = 280,
9
9
  height: u = "calc(100vh - 65px)",
10
10
  containerSx: v,
11
11
  sidebarSx: w,
12
- contentSx: g,
13
- sidebarHeaderSx: y,
14
- contentHeaderSx: B,
15
- sidebarScrollSx: i,
12
+ contentSx: y,
13
+ sidebarHeaderSx: B,
14
+ contentHeaderSx: D,
15
+ sidebarScrollSx: o,
16
16
  contentScrollSx: s,
17
17
  disableBorder: h = !1,
18
- sidebarHeader: d,
19
- contentHeader: t,
20
- enableSidebarScroll: D = !0,
21
- enableContentScroll: f = !1,
22
- sidebarPosition: x = "left",
23
- sidebarPadding: n = 1,
18
+ sidebarHeader: t,
19
+ contentHeader: d,
20
+ enableSidebarScroll: F = !0,
21
+ enableContentScroll: n = !1,
22
+ sidebarPosition: l = "left",
23
+ sidebarPadding: f = 1,
24
24
  contentPadding: c = 1,
25
- sidebarHeaderPadding: F = 2,
26
- contentHeaderPadding: L = 2
25
+ sidebarHeaderPadding: L = 2,
26
+ contentHeaderPadding: C = 2,
27
+ headerHeight: m = "40px"
27
28
  }) => {
28
- const j = /* @__PURE__ */ e.jsxs(
29
+ const p = /* @__PURE__ */ e.jsxs(
29
30
  r,
30
31
  {
31
32
  sx: {
32
- width: a,
33
- borderRight: !h && x === "left" ? 1 : 0,
34
- borderLeft: !h && x === "right" ? 1 : 0,
33
+ width: g,
34
+ borderRight: !h && l === "left" ? 1 : 0,
35
+ borderLeft: !h && l === "right" ? 1 : 0,
35
36
  borderColor: "divider",
36
37
  display: "flex",
37
38
  flexDirection: "column",
38
39
  ...w
39
40
  },
40
41
  children: [
41
- d && /* @__PURE__ */ e.jsx(r, { sx: { p: F, borderBottom: 1, borderColor: "divider", ...y }, children: d }),
42
- /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, minHeight: 0 }, children: D ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: n, ...i }, children: o }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: n, height: "100%", overflow: "hidden", ...i }, children: o }) })
42
+ t && /* @__PURE__ */ e.jsx(
43
+ r,
44
+ {
45
+ sx: {
46
+ p: L,
47
+ height: m,
48
+ borderBottom: 1,
49
+ borderColor: "divider",
50
+ display: "flex",
51
+ alignItems: "center",
52
+ ...B
53
+ },
54
+ children: t
55
+ }
56
+ ),
57
+ /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, minHeight: 0 }, children: F ? /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: f, ...o }, children: x }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: f, height: "100%", overflow: "hidden", ...o }, children: x }) })
43
58
  ]
44
59
  }
45
- ), m = /* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, display: "flex", flexDirection: "column", ...g }, height: "100%", children: [
46
- t && /* @__PURE__ */ e.jsx(r, { sx: { p: L, borderBottom: 1, borderColor: "divider", ...B }, children: t }),
47
- /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, overflow: f ? "auto" : "hidden" }, children: f ? /* @__PURE__ */ e.jsx(p, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: c, ...s }, children: l }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: c, height: "100%", ...s }, children: l }) })
60
+ ), j = /* @__PURE__ */ e.jsxs(r, { sx: { flex: 1, display: "flex", flexDirection: "column", ...y }, height: "100%", children: [
61
+ d && /* @__PURE__ */ e.jsx(
62
+ r,
63
+ {
64
+ sx: {
65
+ p: C,
66
+ height: m,
67
+ borderBottom: 1,
68
+ borderColor: "divider",
69
+ display: "flex",
70
+ alignItems: "center",
71
+ ...D
72
+ },
73
+ children: d
74
+ }
75
+ ),
76
+ /* @__PURE__ */ e.jsx(r, { sx: { flex: 1, overflow: n ? "auto" : "hidden" }, children: n ? /* @__PURE__ */ e.jsx(a, { children: /* @__PURE__ */ e.jsx(r, { sx: { p: c, ...s }, children: i }) }) : /* @__PURE__ */ e.jsx(r, { sx: { p: c, height: "100%", ...s }, children: i }) })
48
77
  ] });
49
78
  return /* @__PURE__ */ e.jsx(
50
- C,
79
+ I,
51
80
  {
52
81
  sx: {
53
82
  height: u,
@@ -56,12 +85,12 @@ const R = ({
56
85
  overflow: "hidden",
57
86
  ...v
58
87
  },
59
- children: x === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
60
- j,
61
- m
62
- ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
63
- m,
88
+ children: l === "left" ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
89
+ p,
64
90
  j
91
+ ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
92
+ j,
93
+ p
65
94
  ] })
66
95
  }
67
96
  );
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.187",
6
+ "version": "1.0.188",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "type": "module",
9
9
  "main": "dist/main.js",