@conboai/storybook.components 0.2.18 → 0.2.20

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
  ] });
@@ -58617,18 +58622,28 @@ const YU = {
58617
58622
  leftLabel: n,
58618
58623
  sx: r,
58619
58624
  rightLabel: o
58620
- }) => /* @__PURE__ */ x.jsxs(ct, { container: !0, justifyContent: "space-between", sx: r, children: [
58621
- n && /* @__PURE__ */ x.jsx(bo, { sx: eg, children: n }),
58622
- /* @__PURE__ */ x.jsx(
58623
- Ei,
58624
- {
58625
- sx: { margin: 0 },
58626
- control: /* @__PURE__ */ x.jsx(p0, { checked: t, onChange: e, sx: n4 }),
58627
- label: ""
58628
- }
58629
- ),
58630
- o && /* @__PURE__ */ x.jsx(bo, { sx: eg, children: o })
58631
- ] }), r4 = ({
58625
+ }) => /* @__PURE__ */ x.jsxs(
58626
+ ct,
58627
+ {
58628
+ container: !0,
58629
+ justifyContent: "space-between",
58630
+ sx: r,
58631
+ flexWrap: "nowrap",
58632
+ alignItems: "center",
58633
+ children: [
58634
+ n && /* @__PURE__ */ x.jsx(bo, { sx: eg, children: /* @__PURE__ */ x.jsx("span", { title: n, children: n }) }),
58635
+ /* @__PURE__ */ x.jsx(
58636
+ Ei,
58637
+ {
58638
+ sx: { margin: 0 },
58639
+ control: /* @__PURE__ */ x.jsx(p0, { checked: t, onChange: e, sx: n4 }),
58640
+ label: ""
58641
+ }
58642
+ ),
58643
+ o && /* @__PURE__ */ x.jsx(bo, { sx: eg, children: /* @__PURE__ */ x.jsx("span", { title: o, children: o }) })
58644
+ ]
58645
+ }
58646
+ ), r4 = ({
58632
58647
  isModalOpen: t = !1,
58633
58648
  onModalClose: e,
58634
58649
  startIndex: n,
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.20",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [