@clickpalm/react 1.2.2 → 1.2.4

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
@@ -2301,7 +2301,7 @@ declare const CheckboxContainer: _stitches_react_types_styled_component.StyledCo
2301
2301
 
2302
2302
  interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
2303
2303
  label: string;
2304
- checked: boolean;
2304
+ checked?: boolean;
2305
2305
  onCheckedChange: (checked: boolean) => void;
2306
2306
  errorMessage?: string;
2307
2307
  }
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,
@@ -1165,7 +1166,7 @@ var Checkbox2 = (0, import_react5.forwardRef)(
1165
1166
  CheckboxContainer,
1166
1167
  {
1167
1168
  ref,
1168
- checked,
1169
+ checked: !!checked,
1169
1170
  onCheckedChange,
1170
1171
  hasError: !!errorMessage,
1171
1172
  ...rest,
@@ -1547,14 +1548,23 @@ var StyledDivider = styled("hr", {
1547
1548
  width: "100%",
1548
1549
  border: "none",
1549
1550
  borderTop: "1px solid $gray_mid",
1550
- margin: 0
1551
+ margin: "0px"
1551
1552
  });
1552
1553
  var StyledDescription = styled(Dialog.Description, {
1553
1554
  display: "flex",
1554
1555
  fontFamily: "$default",
1555
1556
  fontWeight: "$regular",
1556
1557
  fontSize: "$md",
1557
- margin: "$2 0"
1558
+ color: "$black",
1559
+ marginTop: "$4",
1560
+ marginBottom: 0
1561
+ });
1562
+ var StyledChildren = styled("div", {
1563
+ fontFamily: "$default",
1564
+ fontWeight: "$regular",
1565
+ fontSize: "$md",
1566
+ color: "$black",
1567
+ margin: "$4 0"
1558
1568
  });
1559
1569
 
1560
1570
  // src/components/Modal/index.tsx
@@ -1568,8 +1578,10 @@ var Modal = ({ open, onOpenChange, title, description, children }) => {
1568
1578
  /* @__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 }) }) })
1569
1579
  ] }),
1570
1580
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDivider, {}),
1571
- description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1572
- children
1581
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
1582
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1583
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledChildren, { children })
1584
+ ] })
1573
1585
  ] })
1574
1586
  ] }) });
1575
1587
  };
@@ -1614,7 +1626,7 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1614
1626
  }, [value]);
1615
1627
  const valueLabel = `${Math.round(progress2 / max * 100)}%`;
1616
1628
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(StyledWrapper3, { children: [
1617
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start", color: "black" }, children: label }),
1618
1630
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1619
1631
  StyledRoot,
1620
1632
  {
@@ -3545,12 +3557,14 @@ var CarouselHeader = styled("div", {
3545
3557
  display: "flex",
3546
3558
  justifyContent: "space-between",
3547
3559
  alignItems: "center",
3548
- width: "100%"
3560
+ width: "100%",
3561
+ color: "$black"
3549
3562
  });
3550
3563
  var Title2 = styled("h3", {
3551
3564
  fontFamily: "$default",
3552
3565
  fontWeight: "$bold",
3553
3566
  fontSize: "$md",
3567
+ color: "$black",
3554
3568
  margin: "0px",
3555
3569
  variants: {
3556
3570
  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,
@@ -1093,7 +1095,7 @@ var Checkbox2 = forwardRef2(
1093
1095
  CheckboxContainer,
1094
1096
  {
1095
1097
  ref,
1096
- checked,
1098
+ checked: !!checked,
1097
1099
  onCheckedChange,
1098
1100
  hasError: !!errorMessage,
1099
1101
  ...rest,
@@ -1475,14 +1477,23 @@ var StyledDivider = styled("hr", {
1475
1477
  width: "100%",
1476
1478
  border: "none",
1477
1479
  borderTop: "1px solid $gray_mid",
1478
- margin: 0
1480
+ margin: "0px"
1479
1481
  });
1480
1482
  var StyledDescription = styled(Dialog.Description, {
1481
1483
  display: "flex",
1482
1484
  fontFamily: "$default",
1483
1485
  fontWeight: "$regular",
1484
1486
  fontSize: "$md",
1485
- margin: "$2 0"
1487
+ color: "$black",
1488
+ marginTop: "$4",
1489
+ marginBottom: 0
1490
+ });
1491
+ var StyledChildren = styled("div", {
1492
+ fontFamily: "$default",
1493
+ fontWeight: "$regular",
1494
+ fontSize: "$md",
1495
+ color: "$black",
1496
+ margin: "$4 0"
1486
1497
  });
1487
1498
 
1488
1499
  // src/components/Modal/index.tsx
@@ -1496,8 +1507,10 @@ var Modal = ({ open, onOpenChange, title, description, children }) => {
1496
1507
  /* @__PURE__ */ jsx22(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ jsx22(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx22(Icon, { name: "Closed", size: 8 }) }) })
1497
1508
  ] }),
1498
1509
  /* @__PURE__ */ jsx22(StyledDivider, {}),
1499
- description && /* @__PURE__ */ jsx22(StyledDescription, { children: description }),
1500
- children
1510
+ /* @__PURE__ */ jsxs6("div", { children: [
1511
+ description && /* @__PURE__ */ jsx22(StyledDescription, { children: description }),
1512
+ /* @__PURE__ */ jsx22(StyledChildren, { children })
1513
+ ] })
1501
1514
  ] })
1502
1515
  ] }) });
1503
1516
  };
@@ -1542,7 +1555,7 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1542
1555
  }, [value]);
1543
1556
  const valueLabel = `${Math.round(progress2 / max * 100)}%`;
1544
1557
  return /* @__PURE__ */ jsxs7(StyledWrapper3, { children: [
1545
- /* @__PURE__ */ jsx23("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1558
+ /* @__PURE__ */ jsx23("label", { style: { fontSize: 16, alignSelf: "flex-start", color: "black" }, children: label }),
1546
1559
  /* @__PURE__ */ jsx23(
1547
1560
  StyledRoot,
1548
1561
  {
@@ -3477,12 +3490,14 @@ var CarouselHeader = styled("div", {
3477
3490
  display: "flex",
3478
3491
  justifyContent: "space-between",
3479
3492
  alignItems: "center",
3480
- width: "100%"
3493
+ width: "100%",
3494
+ color: "$black"
3481
3495
  });
3482
3496
  var Title2 = styled("h3", {
3483
3497
  fontFamily: "$default",
3484
3498
  fontWeight: "$bold",
3485
3499
  fontSize: "$md",
3500
+ color: "$black",
3486
3501
  margin: "0px",
3487
3502
  variants: {
3488
3503
  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.2",
6
+ "version": "1.2.4",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/clickpalm/clickpalm-designsystem-lib.git"