@conboai/storybook.components 0.1.25 → 0.1.26

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,4 +3,5 @@ import { TypeTabsContent, TypeTabsContainer } from './tabsContainer';
3
3
  export interface IDetailsView {
4
4
  tabsContent: TypeTabsContent;
5
5
  tabs: TypeTabsContainer;
6
+ onChange?: (value: string) => void;
6
7
  }
@@ -16,6 +16,7 @@ export interface ITabsBox {
16
16
  value: string;
17
17
  tabs: TypeTabsContainer;
18
18
  tabsContent: TypeTabsContent;
19
+ onChange?: (value: string) => void;
19
20
  }
20
21
  export interface ITabsContainer extends Omit<ITabsBox, "tabsContent"> {
21
22
  }
@@ -41171,35 +41171,41 @@ const $y = {
41171
41171
  sx: { backgroundColor: Sb, display: "flex" },
41172
41172
  children: t
41173
41173
  }
41174
- ), r3 = ({ linkContent: t, link: e }) => /* @__PURE__ */ E.jsx(o0, { href: e, height: "100%", children: t }), pB = ({ setValue: t, value: e, tabs: n }) => {
41175
- const r = {
41174
+ ), r3 = ({ linkContent: t, link: e }) => /* @__PURE__ */ E.jsx(o0, { href: e, height: "100%", children: t }), pB = ({
41175
+ setValue: t,
41176
+ value: e,
41177
+ tabs: n,
41178
+ onChange: r
41179
+ }) => {
41180
+ const o = {
41176
41181
  ...Fy,
41177
41182
  "& .MuiTabs-flexContainer": {
41178
41183
  borderBottom: `1px solid ${sd}`
41179
41184
  }
41180
- }, o = (i, a) => {
41181
- t(a);
41185
+ }, i = (a, l) => {
41186
+ t(l), r && r(l);
41182
41187
  };
41183
- return /* @__PURE__ */ E.jsx(mt, { children: /* @__PURE__ */ E.jsx(Xl, { value: e, onChange: o, sx: r, children: n.map((i) => /* @__PURE__ */ E.jsx(
41188
+ return /* @__PURE__ */ E.jsx(mt, { children: /* @__PURE__ */ E.jsx(Xl, { value: e, onChange: i, sx: o, children: n.map((a) => /* @__PURE__ */ E.jsx(
41184
41189
  Ci,
41185
41190
  {
41186
- label: i.label,
41187
- value: i.value,
41188
- disabled: i.disabled,
41191
+ label: a.label,
41192
+ value: a.value,
41193
+ disabled: a.disabled,
41189
41194
  sx: $y
41190
41195
  },
41191
- i.value
41196
+ a.value
41192
41197
  )) }) });
41193
41198
  }, hB = ({ tabsContent: t }) => t.map((e) => /* @__PURE__ */ E.jsx(Xd, { value: e.value, sx: { padding: "20px 0 0" }, children: e.content }, e.value)), mB = ({ setValue: t, value: e, tabs: n, tabsContent: r }) => /* @__PURE__ */ E.jsxs(qd, { value: e, children: [
41194
41199
  /* @__PURE__ */ E.jsx(pB, { setValue: t, value: e, tabs: n }),
41195
41200
  /* @__PURE__ */ E.jsx(hB, { tabsContent: r })
41196
- ] }), o3 = ({ tabsContent: t, tabs: e }) => {
41197
- const [n, r] = dt("0"), o = { background: "none", padding: "20px" };
41198
- return /* @__PURE__ */ E.jsx(mt, { sx: o, children: /* @__PURE__ */ E.jsx(
41201
+ ] }), o3 = ({ tabsContent: t, tabs: e, onChange: n }) => {
41202
+ const [r, o] = dt("0"), i = { background: "none", padding: "20px" };
41203
+ return /* @__PURE__ */ E.jsx(mt, { sx: i, children: /* @__PURE__ */ E.jsx(
41199
41204
  mB,
41200
41205
  {
41201
- value: n,
41202
- setValue: r,
41206
+ onChange: n,
41207
+ value: r,
41208
+ setValue: o,
41203
41209
  tabs: e,
41204
41210
  tabsContent: t
41205
41211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [