@clickpalm/react 1.2.3 → 1.2.5

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.
package/dist/index.d.ts CHANGED
@@ -4068,10 +4068,9 @@ type IconComponent = (props: SVGProps<SVGSVGElement>) => JSX.Element;
4068
4068
  declare const iconMap: Record<string, IconComponent>;
4069
4069
 
4070
4070
  type IconColor = 'black' | 'green' | 'white';
4071
- type IconSize = 8 | 16 | 24 | 64 | 104;
4072
4071
  interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'name' | 'color'> {
4073
4072
  name: keyof typeof iconMap;
4074
- size: IconSize;
4073
+ size?: number | string;
4075
4074
  color?: IconColor;
4076
4075
  }
4077
4076
 
package/dist/index.js CHANGED
@@ -731,6 +731,7 @@ var iconMap = {
731
731
  TriangleRight: import_react_icons.TriangleRightIcon,
732
732
  EyeClosed: import_react_icons.EyeClosedIcon,
733
733
  EyeOpen: import_react_icons.EyeOpenIcon,
734
+ QuestionMark: import_react_icons.QuestionMarkIcon,
734
735
  Calendar,
735
736
  Closed,
736
737
  Dots,
@@ -1422,7 +1423,6 @@ var Datepicker = ({ label, value, onChange }) => {
1422
1423
  placeholder: "dd/mm/aaaa",
1423
1424
  onFocus: () => setOpen(true),
1424
1425
  value: value || "",
1425
- noMargin: true,
1426
1426
  readOnly: true,
1427
1427
  suffix: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "Calendar", size: 16 })
1428
1428
  }
@@ -1558,7 +1558,7 @@ var StyledDescription = styled(Dialog.Description, {
1558
1558
  marginTop: "$4",
1559
1559
  marginBottom: 0
1560
1560
  });
1561
- var StyledChildren = styled(Dialog.Description, {
1561
+ var StyledChildren = styled("div", {
1562
1562
  fontFamily: "$default",
1563
1563
  fontWeight: "$regular",
1564
1564
  fontSize: "$md",
@@ -1577,8 +1577,10 @@ var Modal = ({ open, onOpenChange, title, description, children }) => {
1577
1577
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { name: "Closed", size: 8 }) }) })
1578
1578
  ] }),
1579
1579
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDivider, {}),
1580
- description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1581
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledChildren, { children })
1580
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1581
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledChildren, { children })
1583
+ ] })
1582
1584
  ] })
1583
1585
  ] }) });
1584
1586
  };
@@ -1623,7 +1625,7 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1623
1625
  }, [value]);
1624
1626
  const valueLabel = `${Math.round(progress2 / max * 100)}%`;
1625
1627
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(StyledWrapper3, { children: [
1626
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start", color: "black" }, children: label }),
1627
1629
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1628
1630
  StyledRoot,
1629
1631
  {
@@ -3554,12 +3556,14 @@ var CarouselHeader = styled("div", {
3554
3556
  display: "flex",
3555
3557
  justifyContent: "space-between",
3556
3558
  alignItems: "center",
3557
- width: "100%"
3559
+ width: "100%",
3560
+ color: "$black"
3558
3561
  });
3559
3562
  var Title2 = styled("h3", {
3560
3563
  fontFamily: "$default",
3561
3564
  fontWeight: "$bold",
3562
3565
  fontSize: "$md",
3566
+ color: "$black",
3563
3567
  margin: "0px",
3564
3568
  variants: {
3565
3569
  variant: {
package/dist/index.mjs CHANGED
@@ -360,7 +360,8 @@ import {
360
360
  TriangleLeftIcon as TriangleLeft,
361
361
  TriangleRightIcon as TriangleRight,
362
362
  EyeClosedIcon as EyeClosed,
363
- EyeOpenIcon as EyeOpen
363
+ EyeOpenIcon as EyeOpen,
364
+ QuestionMarkIcon as QuestionMark
364
365
  } from "@radix-ui/react-icons";
365
366
 
366
367
  // src/components/Icon/Svgs/Calendar.tsx
@@ -659,6 +660,7 @@ var iconMap = {
659
660
  TriangleRight,
660
661
  EyeClosed,
661
662
  EyeOpen,
663
+ QuestionMark,
662
664
  Calendar,
663
665
  Closed,
664
666
  Dots,
@@ -1350,7 +1352,6 @@ var Datepicker = ({ label, value, onChange }) => {
1350
1352
  placeholder: "dd/mm/aaaa",
1351
1353
  onFocus: () => setOpen(true),
1352
1354
  value: value || "",
1353
- noMargin: true,
1354
1355
  readOnly: true,
1355
1356
  suffix: /* @__PURE__ */ jsx20(Icon, { name: "Calendar", size: 16 })
1356
1357
  }
@@ -1486,7 +1487,7 @@ var StyledDescription = styled(Dialog.Description, {
1486
1487
  marginTop: "$4",
1487
1488
  marginBottom: 0
1488
1489
  });
1489
- var StyledChildren = styled(Dialog.Description, {
1490
+ var StyledChildren = styled("div", {
1490
1491
  fontFamily: "$default",
1491
1492
  fontWeight: "$regular",
1492
1493
  fontSize: "$md",
@@ -1505,8 +1506,10 @@ var Modal = ({ open, onOpenChange, title, description, children }) => {
1505
1506
  /* @__PURE__ */ jsx22(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ jsx22(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx22(Icon, { name: "Closed", size: 8 }) }) })
1506
1507
  ] }),
1507
1508
  /* @__PURE__ */ jsx22(StyledDivider, {}),
1508
- description && /* @__PURE__ */ jsx22(StyledDescription, { children: description }),
1509
- /* @__PURE__ */ jsx22(StyledChildren, { children })
1509
+ /* @__PURE__ */ jsxs6("div", { children: [
1510
+ description && /* @__PURE__ */ jsx22(StyledDescription, { children: description }),
1511
+ /* @__PURE__ */ jsx22(StyledChildren, { children })
1512
+ ] })
1510
1513
  ] })
1511
1514
  ] }) });
1512
1515
  };
@@ -1551,7 +1554,7 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1551
1554
  }, [value]);
1552
1555
  const valueLabel = `${Math.round(progress2 / max * 100)}%`;
1553
1556
  return /* @__PURE__ */ jsxs7(StyledWrapper3, { children: [
1554
- /* @__PURE__ */ jsx23("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1557
+ /* @__PURE__ */ jsx23("label", { style: { fontSize: 16, alignSelf: "flex-start", color: "black" }, children: label }),
1555
1558
  /* @__PURE__ */ jsx23(
1556
1559
  StyledRoot,
1557
1560
  {
@@ -3486,12 +3489,14 @@ var CarouselHeader = styled("div", {
3486
3489
  display: "flex",
3487
3490
  justifyContent: "space-between",
3488
3491
  alignItems: "center",
3489
- width: "100%"
3492
+ width: "100%",
3493
+ color: "$black"
3490
3494
  });
3491
3495
  var Title2 = styled("h3", {
3492
3496
  fontFamily: "$default",
3493
3497
  fontWeight: "$bold",
3494
3498
  fontSize: "$md",
3499
+ color: "$black",
3495
3500
  margin: "0px",
3496
3501
  variants: {
3497
3502
  variant: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Design System da Clikpalm",
4
4
  "author": "Enisson Shilo",
5
5
  "license": "MIT",
6
- "version": "1.2.3",
6
+ "version": "1.2.5",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/clickpalm/clickpalm-designsystem-lib.git"