@conboai/storybook.components 0.2.17 → 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
  ] });
@@ -58344,9 +58349,9 @@ const FU = {
58344
58349
  position: "absolute",
58345
58350
  top: "50%",
58346
58351
  left: "50%",
58347
- transform: "translate(-50%, -50%)",
58348
58352
  width: "60%",
58349
- height: "50%"
58353
+ height: "70%",
58354
+ transform: "translate(-50%, -50%)"
58350
58355
  }, zU = {
58351
58356
  position: "absolute",
58352
58357
  top: "60px",
@@ -58396,7 +58401,7 @@ const FU = {
58396
58401
  {
58397
58402
  position: "absolute",
58398
58403
  top: "50%",
58399
- left: "13%",
58404
+ left: "10%",
58400
58405
  sx: {
58401
58406
  transform: "translate(-50%)"
58402
58407
  },
@@ -58408,7 +58413,7 @@ const FU = {
58408
58413
  {
58409
58414
  position: "absolute",
58410
58415
  top: "50%",
58411
- right: "13%",
58416
+ right: "10%",
58412
58417
  sx: {
58413
58418
  transform: "translate(50%)"
58414
58419
  },
@@ -58660,7 +58665,6 @@ const YU = {
58660
58665
  width: "100%",
58661
58666
  height: "100%",
58662
58667
  margin: "auto",
58663
- mt: 4,
58664
58668
  position: "relative",
58665
58669
  overflow: "hidden",
58666
58670
  borderRadius: "8px"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [