@conboai/storybook.components 0.5.69 → 0.5.70

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.
@@ -12,4 +12,5 @@ export interface IDetailsView {
12
12
  tabsWidth?: string;
13
13
  isCollapseActive?: boolean;
14
14
  sx?: SxProps;
15
+ isScrollable?: boolean;
15
16
  }
@@ -22,6 +22,7 @@ export interface ITabsBox {
22
22
  isCollapseActive?: boolean;
23
23
  isResizing?: any;
24
24
  handleMouseDown?: (e: React.MouseEvent) => void;
25
+ isScrollable?: boolean;
25
26
  }
26
27
  export interface ITabsContainer {
27
28
  setValue: (value: string) => void;
@@ -31,6 +32,7 @@ export interface ITabsContainer {
31
32
  children?: React.ReactNode;
32
33
  tabsWidth?: string;
33
34
  isCollapseActive?: boolean;
35
+ isScrollable?: boolean;
34
36
  }
35
37
  export interface ITabsContent {
36
38
  tabsContent: TypeTabsContent;
@@ -47102,26 +47102,38 @@ const Ooe = ({
47102
47102
  setValue: e,
47103
47103
  value: t,
47104
47104
  tabs: n,
47105
- onChange: r
47105
+ onChange: r,
47106
+ isScrollable: o = !1
47106
47107
  }) => {
47107
- const o = {
47108
+ const i = {
47108
47109
  ...EE,
47109
47110
  "& .MuiTabs-flexContainer": {
47110
47111
  borderBottom: `1px solid ${eb}`
47111
47112
  }
47112
- }, i = (s, l) => {
47113
- e(l), r && r(l);
47113
+ }, s = (l, c) => {
47114
+ e(c), r && r(c);
47114
47115
  };
47115
- return /* @__PURE__ */ V.jsx(bt, { children: /* @__PURE__ */ V.jsx(xg, { value: t, onChange: i, sx: o, children: n.map((s) => /* @__PURE__ */ V.jsx(
47116
- dh,
47116
+ return /* @__PURE__ */ V.jsx(bt, { children: /* @__PURE__ */ V.jsx(
47117
+ xg,
47117
47118
  {
47118
- label: s.label,
47119
- value: s.value,
47120
- disabled: s.disabled,
47121
- sx: TE
47122
- },
47123
- `${s.value}-${s.label}`
47124
- )) }) });
47119
+ value: t,
47120
+ onChange: s,
47121
+ variant: o ? "scrollable" : "standard",
47122
+ scrollButtons: o ? "auto" : void 0,
47123
+ allowScrollButtonsMobile: o,
47124
+ sx: i,
47125
+ children: n.map((l) => /* @__PURE__ */ V.jsx(
47126
+ dh,
47127
+ {
47128
+ label: l.label,
47129
+ value: l.value,
47130
+ disabled: l.disabled,
47131
+ sx: TE
47132
+ },
47133
+ `${l.value}-${l.label}`
47134
+ ))
47135
+ }
47136
+ ) });
47125
47137
  }, Voe = ({ tabsContent: e }) => e.map((t, n) => /* @__PURE__ */ V.jsx(
47126
47138
  Gb,
47127
47139
  {
@@ -47165,14 +47177,15 @@ const Ooe = ({
47165
47177
  tabsWidth: s,
47166
47178
  isCollapseActive: l,
47167
47179
  handleMouseDown: c,
47168
- isResizing: u
47180
+ isResizing: u,
47181
+ isScrollable: d
47169
47182
  }) => {
47170
- const [d, h] = Ne(!1), f = s || "50%", m = Goe(u), p = () => {
47171
- h(!d);
47183
+ const [h, f] = Ne(!1), m = s || "50%", p = Goe(u), g = () => {
47184
+ f(!h);
47172
47185
  };
47173
47186
  return /* @__PURE__ */ V.jsxs(zb, { value: t, children: [
47174
47187
  /* @__PURE__ */ V.jsxs(bt, { display: "flex", alignItems: "center", sx: zoe, children: [
47175
- c && /* @__PURE__ */ V.jsx(bt, { sx: m, onMouseDown: c, children: /* @__PURE__ */ V.jsx(
47188
+ c && /* @__PURE__ */ V.jsx(bt, { sx: p, onMouseDown: c, children: /* @__PURE__ */ V.jsx(
47176
47189
  bt,
47177
47190
  {
47178
47191
  sx: {
@@ -47182,13 +47195,14 @@ const Ooe = ({
47182
47195
  children: /* @__PURE__ */ V.jsx(Sn, { icon: "doubleArrow" })
47183
47196
  }
47184
47197
  ) }),
47185
- /* @__PURE__ */ V.jsx(bt, { width: i ? f : "100%", children: /* @__PURE__ */ V.jsx(
47198
+ /* @__PURE__ */ V.jsx(bt, { width: i ? m : "100%", children: /* @__PURE__ */ V.jsx(
47186
47199
  $oe,
47187
47200
  {
47188
47201
  setValue: e,
47189
47202
  value: t,
47190
47203
  tabs: n,
47191
- onChange: o
47204
+ onChange: o,
47205
+ isScrollable: d
47192
47206
  }
47193
47207
  ) }),
47194
47208
  l && /* @__PURE__ */ V.jsx(
@@ -47199,12 +47213,12 @@ const Ooe = ({
47199
47213
  bottom: "5px",
47200
47214
  right: "10px"
47201
47215
  },
47202
- children: /* @__PURE__ */ V.jsx(lr, { onClick: p, children: d ? /* @__PURE__ */ V.jsx(Uoe, {}) : /* @__PURE__ */ V.jsx(Hoe, {}) })
47216
+ children: /* @__PURE__ */ V.jsx(lr, { onClick: g, children: h ? /* @__PURE__ */ V.jsx(Uoe, {}) : /* @__PURE__ */ V.jsx(Hoe, {}) })
47203
47217
  }
47204
47218
  ),
47205
47219
  i
47206
47220
  ] }),
47207
- !d && /* @__PURE__ */ V.jsx(Voe, { tabsContent: r })
47221
+ !h && /* @__PURE__ */ V.jsx(Voe, { tabsContent: r })
47208
47222
  ] });
47209
47223
  }, Pve = ({
47210
47224
  tabsContent: e,
@@ -47215,21 +47229,23 @@ const Ooe = ({
47215
47229
  isCollapseActive: i,
47216
47230
  handleMouseDown: s,
47217
47231
  isResizing: l,
47218
- sx: c
47232
+ sx: c,
47233
+ isScrollable: u
47219
47234
  }) => {
47220
- const [u, d] = Ne("0"), f = { ...{ background: "none", paddingTop: "12px" }, ...c };
47221
- return /* @__PURE__ */ V.jsx(bt, { sx: f, children: /* @__PURE__ */ V.jsx(
47235
+ const [d, h] = Ne("0"), m = { ...{ background: "none", paddingTop: "12px" }, ...c };
47236
+ return /* @__PURE__ */ V.jsx(bt, { sx: m, children: /* @__PURE__ */ V.jsx(
47222
47237
  Woe,
47223
47238
  {
47224
47239
  onChange: n,
47225
- value: u,
47226
- setValue: d,
47240
+ value: d,
47241
+ setValue: h,
47227
47242
  tabs: t,
47228
47243
  tabsContent: e,
47229
47244
  tabsWidth: o,
47230
47245
  isCollapseActive: i,
47231
47246
  handleMouseDown: s,
47232
47247
  isResizing: l,
47248
+ isScrollable: u,
47233
47249
  children: r
47234
47250
  }
47235
47251
  ) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.5.69",
3
+ "version": "0.5.70",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [