@conboai/storybook.components 0.1.24 → 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
  }
@@ -26980,9 +26980,12 @@ process.env.NODE_ENV !== "production" && (Zl.propTypes = {
26980
26980
  variant: s.oneOf(["filled", "outlined", "standard"])
26981
26981
  });
26982
26982
  const TL = {
26983
- minWidth: "100px",
26984
26983
  flexGrow: "1",
26985
26984
  backgroundColor: gn,
26985
+ flex: 1,
26986
+ overflow: "hidden",
26987
+ textOverflow: "ellipsis",
26988
+ whiteSpace: "nowrap",
26986
26989
  "&.MuiOutlinedInput-root": {
26987
26990
  "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
26988
26991
  borderColor: `${$t} !important`
@@ -41168,35 +41171,41 @@ const $y = {
41168
41171
  sx: { backgroundColor: Sb, display: "flex" },
41169
41172
  children: t
41170
41173
  }
41171
- ), r3 = ({ linkContent: t, link: e }) => /* @__PURE__ */ E.jsx(o0, { href: e, height: "100%", children: t }), pB = ({ setValue: t, value: e, tabs: n }) => {
41172
- 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 = {
41173
41181
  ...Fy,
41174
41182
  "& .MuiTabs-flexContainer": {
41175
41183
  borderBottom: `1px solid ${sd}`
41176
41184
  }
41177
- }, o = (i, a) => {
41178
- t(a);
41185
+ }, i = (a, l) => {
41186
+ t(l), r && r(l);
41179
41187
  };
41180
- 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(
41181
41189
  Ci,
41182
41190
  {
41183
- label: i.label,
41184
- value: i.value,
41185
- disabled: i.disabled,
41191
+ label: a.label,
41192
+ value: a.value,
41193
+ disabled: a.disabled,
41186
41194
  sx: $y
41187
41195
  },
41188
- i.value
41196
+ a.value
41189
41197
  )) }) });
41190
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: [
41191
41199
  /* @__PURE__ */ E.jsx(pB, { setValue: t, value: e, tabs: n }),
41192
41200
  /* @__PURE__ */ E.jsx(hB, { tabsContent: r })
41193
- ] }), o3 = ({ tabsContent: t, tabs: e }) => {
41194
- const [n, r] = dt("0"), o = { background: "none", padding: "20px" };
41195
- 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(
41196
41204
  mB,
41197
41205
  {
41198
- value: n,
41199
- setValue: r,
41206
+ onChange: n,
41207
+ value: r,
41208
+ setValue: o,
41200
41209
  tabs: e,
41201
41210
  tabsContent: t
41202
41211
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [