mainstack-design-system 0.3.0 → 0.3.1

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.
@@ -47400,12 +47400,18 @@ const Cf = {
47400
47400
  return Object.entries(e).forEach(([i, l]) => {
47401
47401
  a[i] = Cf[l][n];
47402
47402
  }), a;
47403
- }, Xs = ({ size: e, color: n, children: a, ...i }) => /* @__PURE__ */ f(
47403
+ }, Xs = ({
47404
+ size: e,
47405
+ color: n,
47406
+ fontFamily: a,
47407
+ children: i,
47408
+ ...l
47409
+ }) => /* @__PURE__ */ f(
47404
47410
  i1,
47405
47411
  {
47406
47412
  as: "h2",
47407
47413
  color: n || "#000000",
47408
- fontFamily: "Degular",
47414
+ fontFamily: a || "Degular",
47409
47415
  fontSize: typeof e == "string" ? Cf[e].fontSize : {
47410
47416
  ...Jv(e, "fontSize")
47411
47417
  },
@@ -47418,8 +47424,8 @@ const Cf = {
47418
47424
  ...Jv(e, "letterSpacing")
47419
47425
  },
47420
47426
  m: "0",
47421
- ...i,
47422
- children: a
47427
+ ...l,
47428
+ children: i
47423
47429
  }
47424
47430
  ), I9e = ({
47425
47431
  children: e,
@@ -47432,26 +47438,27 @@ const Cf = {
47432
47438
  handleDelete: m,
47433
47439
  handleToggle: p,
47434
47440
  handleButton: v,
47435
- ...g
47441
+ isToggleChecked: g,
47442
+ ...y
47436
47443
  }) => /* @__PURE__ */ f(pr, { children: /* @__PURE__ */ f(
47437
47444
  rO,
47438
47445
  {
47439
47446
  w: "100%",
47440
47447
  border: "none !important",
47441
47448
  borderRadius: "16px",
47442
- ...g,
47443
- children: ({ isExpanded: y }) => /* @__PURE__ */ Q(
47449
+ ...y,
47450
+ children: ({ isExpanded: b }) => /* @__PURE__ */ Q(
47444
47451
  gn,
47445
47452
  {
47446
- outline: y ? "3px solid" : `${d ? "3px solid" : "1px solid"}`,
47447
- outlineOffset: y ? "-3px" : `${d ? "-3px" : "-1px"}`,
47453
+ outline: b ? "3px solid" : `${d ? "3px solid" : "1px solid"}`,
47454
+ outlineOffset: b ? "-3px" : `${d ? "-3px" : "-1px"}`,
47448
47455
  _hover: {
47449
- bg: y ? "none" : oe.gray50,
47456
+ bg: b ? "none" : oe.gray50,
47450
47457
  outline: "3px solid",
47451
47458
  outlineColor: d ? oe.red500 : oe.black300,
47452
47459
  outlineOffset: "-3px"
47453
47460
  },
47454
- outlineColor: y ? `${d ? oe.red500 : oe.black300}` : `${d ? oe.red500 : oe.gray50}`,
47461
+ outlineColor: b ? `${d ? oe.red500 : oe.black300}` : `${d ? oe.red500 : oe.gray50}`,
47455
47462
  borderRadius: "16px",
47456
47463
  px: "20px",
47457
47464
  py: "22px",
@@ -47473,7 +47480,7 @@ const Cf = {
47473
47480
  a && /* @__PURE__ */ f(gn, { mt: "4px", children: a })
47474
47481
  ] }),
47475
47482
  /* @__PURE__ */ Q(nn, { alignItems: "center", ml: "auto", children: [
47476
- l === "has-toggle" ? /* @__PURE__ */ f(Xne, { onClick: p }) : l === "has-delete" ? /* @__PURE__ */ f(
47483
+ l === "has-toggle" ? /* @__PURE__ */ f(Xne, { onChange: p, isChecked: g }) : l === "has-delete" ? /* @__PURE__ */ f(
47477
47484
  ry,
47478
47485
  {
47479
47486
  fontSize: "16px",
@@ -47489,7 +47496,7 @@ const Cf = {
47489
47496
  bg: oe.white100
47490
47497
  }
47491
47498
  ) : null,
47492
- /* @__PURE__ */ f(cc.div, { animate: { rotateX: y ? 180 : 0 }, children: /* @__PURE__ */ f($i, { boxSize: "28px", ml: "16px", children: /* @__PURE__ */ f($O, { fontSize: "28px" }) }) })
47499
+ /* @__PURE__ */ f(cc.div, { animate: { rotateX: b ? 180 : 0 }, children: /* @__PURE__ */ f($i, { boxSize: "28px", ml: "16px", children: /* @__PURE__ */ f($O, { fontSize: "28px" }) }) })
47493
47500
  ] })
47494
47501
  ] })
47495
47502
  }
@@ -48437,12 +48444,18 @@ const Cf = {
48437
48444
  return Object.entries(e).forEach(([i, l]) => {
48438
48445
  a[i] = vf[l][n];
48439
48446
  }), a;
48440
- }, Ya = ({ size: e, color: n, children: a, ...i }) => /* @__PURE__ */ f(
48447
+ }, Ya = ({
48448
+ size: e,
48449
+ color: n,
48450
+ fontFamily: a,
48451
+ children: i,
48452
+ ...l
48453
+ }) => /* @__PURE__ */ f(
48441
48454
  i1,
48442
48455
  {
48443
48456
  as: "p",
48444
48457
  color: n || "#000000",
48445
- fontFamily: "Degular",
48458
+ fontFamily: a || "Degular",
48446
48459
  fontSize: typeof e == "string" ? vf[e].fontSize : {
48447
48460
  ...Kv(e, "fontSize")
48448
48461
  },
@@ -48455,8 +48468,8 @@ const Cf = {
48455
48468
  ...Kv(e, "letterSpacing")
48456
48469
  },
48457
48470
  m: "0",
48458
- ...i,
48459
- children: a
48471
+ ...l,
48472
+ children: i
48460
48473
  }
48461
48474
  );
48462
48475
  function kE(e, n) {
@@ -64551,12 +64564,12 @@ const e6e = ({
64551
64564
  return Object.entries(e).forEach(([i, l]) => {
64552
64565
  a[i] = py[l][n];
64553
64566
  }), a;
64554
- }, t6e = ({ size: e, color: n, children: a, ...i }) => /* @__PURE__ */ f(
64567
+ }, t6e = ({ size: e, color: n, fontFamily: a, children: i, ...l }) => /* @__PURE__ */ f(
64555
64568
  i1,
64556
64569
  {
64557
64570
  as: "h1",
64558
64571
  color: n || "#000000",
64559
- fontFamily: "Degular Display",
64572
+ fontFamily: a || "Degular Display",
64560
64573
  fontSize: typeof e == "string" ? py[e].fontSize : {
64561
64574
  ...xL(e, "fontSize")
64562
64575
  },
@@ -64567,8 +64580,8 @@ const e6e = ({
64567
64580
  },
64568
64581
  letterSpacing: "0.3px",
64569
64582
  m: "0",
64570
- ...i,
64571
- children: a
64583
+ ...l,
64584
+ children: i
64572
64585
  }
64573
64586
  ), bf = {
64574
64587
  "3xl": {
@@ -64631,12 +64644,12 @@ const e6e = ({
64631
64644
  return Object.entries(e).forEach(([i, l]) => {
64632
64645
  a[i] = bf[l][n];
64633
64646
  }), a;
64634
- }, n6e = ({ size: e, color: n, children: a, ...i }) => /* @__PURE__ */ f(
64647
+ }, n6e = ({ size: e, color: n, fontFamily: a, children: i, ...l }) => /* @__PURE__ */ f(
64635
64648
  i1,
64636
64649
  {
64637
64650
  as: "h1",
64638
64651
  color: n || "#000000",
64639
- fontFamily: "Degular",
64652
+ fontFamily: a || "Degular",
64640
64653
  fontSize: typeof e == "string" ? bf[e].fontSize : {
64641
64654
  ...pg(e, "fontSize")
64642
64655
  },
@@ -64649,8 +64662,8 @@ const e6e = ({
64649
64662
  ...pg(e, "letterSpacing")
64650
64663
  },
64651
64664
  m: "0",
64652
- ...i,
64653
- children: a
64665
+ ...l,
64666
+ children: i
64654
64667
  }
64655
64668
  ), r6e = ({
64656
64669
  file: e,
@@ -12,6 +12,7 @@ export interface IAccordionItem extends AccordionItemProps {
12
12
  handleDelete?: () => void;
13
13
  handleToggle?: () => void;
14
14
  handleButton?: () => void;
15
+ isToggleChecked?: boolean;
15
16
  }
16
- declare const AccordionItem: ({ children, title, subtitle, isDraggable, type, error, buttonLabel, handleDelete, handleToggle, handleButton, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
17
+ declare const AccordionItem: ({ children, title, subtitle, isDraggable, type, error, buttonLabel, handleDelete, handleToggle, handleButton, isToggleChecked, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
17
18
  export default AccordionItem;
@@ -12,6 +12,7 @@ interface IDisplay extends TextProps {
12
12
  children: any;
13
13
  color?: string;
14
14
  size: DefaultType | ResponsiveType;
15
+ fontFamily?: string;
15
16
  }
16
- declare const Display: ({ size, color, children, ...props }: IDisplay) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Display: ({ size, color, fontFamily, children, ...props }: IDisplay) => import("react/jsx-runtime").JSX.Element;
17
18
  export default Display;
@@ -12,6 +12,7 @@ interface IHeading extends TextProps {
12
12
  children: any;
13
13
  color?: string;
14
14
  size: DefaultType | ResponsiveType;
15
+ fontFamily?: string;
15
16
  }
16
- declare const Heading: ({ size, color, children, ...props }: IHeading) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Heading: ({ size, color, fontFamily, children, ...props }: IHeading) => import("react/jsx-runtime").JSX.Element;
17
18
  export default Heading;
@@ -12,6 +12,7 @@ interface IParagraph extends TextProps {
12
12
  children: any;
13
13
  color?: string;
14
14
  size: DefaultType | ResponsiveType;
15
+ fontFamily?: string;
15
16
  }
16
- declare const Paragraph: ({ size, color, children, ...props }: IParagraph) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Paragraph: ({ size, color, fontFamily, children, ...props }: IParagraph) => import("react/jsx-runtime").JSX.Element;
17
18
  export default Paragraph;
@@ -12,6 +12,7 @@ interface ISubtitle extends TextProps {
12
12
  children: any;
13
13
  color?: string;
14
14
  size: DefaultType | ResponsiveType;
15
+ fontFamily?: string;
15
16
  }
16
- declare const Subtitle: ({ size, color, children, ...props }: ISubtitle) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Subtitle: ({ size, color, fontFamily, children, ...props }: ISubtitle) => import("react/jsx-runtime").JSX.Element;
17
18
  export default Subtitle;
@@ -1,8 +1,9 @@
1
1
  /** @format */
2
+ /// <reference types="react" />
2
3
  interface Props {
3
4
  variant: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "gradient";
4
5
  onProceed: () => void;
5
- message: string;
6
+ message: React.ReactNode;
6
7
  buttonText?: string;
7
8
  hasProceedButton?: boolean;
8
9
  hasCloseButton?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",