@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;
@@ -2,5 +2,6 @@ export interface IChipsMultiSelect {
2
2
  options: string[];
3
3
  label: string;
4
4
  value: string[];
5
+ size?: "small" | "medium";
5
6
  onChange: (value: string[]) => void;
6
7
  }
@@ -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 o = (a) => {
41323
+ const i = (c) => {
41323
41324
  const {
41324
- target: { value: l }
41325
- } = a;
41326
- r(typeof l == "string" ? l.split(",") : l);
41327
- }, i = (a) => /* @__PURE__ */ x.jsx(nt, { sx: bB, children: a.map((l) => /* @__PURE__ */ x.jsx(Hi, { label: l }, l)) });
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: o,
41340
+ onChange: i,
41337
41341
  fullWidth: !0,
41338
- renderValue: i,
41342
+ size: o,
41343
+ renderValue: a,
41339
41344
  sx: Ny,
41340
- children: t.map((a) => /* @__PURE__ */ x.jsx(Co, { value: a, children: a }, a))
41345
+ children: t.map((c) => /* @__PURE__ */ x.jsx(Co, { value: c, children: c }, c))
41341
41346
  }
41342
41347
  )
41343
41348
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [