@conboai/storybook.components 0.2.18 → 0.2.19
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,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IChipsMultiSelect } from '../../interfaces/chipsMultiSelect';
|
|
3
3
|
|
|
4
|
-
declare function ChipsMultiSelect({ options, label, value, onChange }: IChipsMultiSelect): React.JSX.Element;
|
|
4
|
+
declare function ChipsMultiSelect({ options, label, value, onChange, size }: IChipsMultiSelect): React.JSX.Element;
|
|
5
5
|
export default ChipsMultiSelect;
|
|
@@ -41317,27 +41317,32 @@ function b4({
|
|
|
41317
41317
|
options: t,
|
|
41318
41318
|
label: e,
|
|
41319
41319
|
value: n,
|
|
41320
|
-
onChange: r
|
|
41320
|
+
onChange: r,
|
|
41321
|
+
size: o = "small"
|
|
41321
41322
|
}) {
|
|
41322
|
-
const
|
|
41323
|
+
const i = (c) => {
|
|
41323
41324
|
const {
|
|
41324
|
-
target: { value:
|
|
41325
|
-
} =
|
|
41326
|
-
r(typeof
|
|
41327
|
-
},
|
|
41325
|
+
target: { value: u }
|
|
41326
|
+
} = c;
|
|
41327
|
+
r(typeof u == "string" ? u.split(",") : u);
|
|
41328
|
+
}, a = (c) => /* @__PURE__ */ x.jsx(nt, { sx: bB, children: c.map((u) => /* @__PURE__ */ x.jsx(Hi, { label: u }, u)) }), l = {
|
|
41329
|
+
small: "small",
|
|
41330
|
+
medium: "normal"
|
|
41331
|
+
};
|
|
41328
41332
|
return /* @__PURE__ */ x.jsxs(As, { fullWidth: !0, children: [
|
|
41329
|
-
/* @__PURE__ */ x.jsx(bo, { sx: $y, children: e }),
|
|
41333
|
+
/* @__PURE__ */ x.jsx(bo, { sx: $y, size: l[o], children: e }),
|
|
41330
41334
|
/* @__PURE__ */ x.jsx(
|
|
41331
41335
|
Ro,
|
|
41332
41336
|
{
|
|
41333
41337
|
input: /* @__PURE__ */ x.jsx(zi, { label: e }),
|
|
41334
41338
|
multiple: !0,
|
|
41335
41339
|
value: n,
|
|
41336
|
-
onChange:
|
|
41340
|
+
onChange: i,
|
|
41337
41341
|
fullWidth: !0,
|
|
41338
|
-
|
|
41342
|
+
size: o,
|
|
41343
|
+
renderValue: a,
|
|
41339
41344
|
sx: Ny,
|
|
41340
|
-
children: t.map((
|
|
41345
|
+
children: t.map((c) => /* @__PURE__ */ x.jsx(Co, { value: c, children: c }, c))
|
|
41341
41346
|
}
|
|
41342
41347
|
)
|
|
41343
41348
|
] });
|