@clickpalm/react 1.2.1 → 1.2.2

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.js CHANGED
@@ -1511,9 +1511,9 @@ var StyledContent = styled(Dialog.Content, {
1511
1511
  left: "50%",
1512
1512
  display: "flex",
1513
1513
  flexDirection: "column",
1514
- padding: "$4",
1514
+ padding: "0 $4",
1515
1515
  width: "90%",
1516
- maxWidth: "500px",
1516
+ maxWidth: "600px",
1517
1517
  backgroundColor: "$white",
1518
1518
  borderRadius: "$md",
1519
1519
  boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
@@ -1533,10 +1533,9 @@ var StyledTitle = styled(Dialog.Title, {
1533
1533
  color: "$black"
1534
1534
  });
1535
1535
  var StyledClose = styled(Dialog.Close, {
1536
- all: "unset",
1537
- position: "absolute",
1538
- top: "16px",
1539
- right: "16px",
1536
+ // position: 'absolute',
1537
+ // top: '24px',
1538
+ // right: '16px',
1540
1539
  cursor: "pointer",
1541
1540
  fontSize: "18px",
1542
1541
  color: "#999",
@@ -1547,7 +1546,8 @@ var StyledClose = styled(Dialog.Close, {
1547
1546
  var StyledDivider = styled("hr", {
1548
1547
  width: "100%",
1549
1548
  border: "none",
1550
- borderTop: "1px solid $gray_mid"
1549
+ borderTop: "1px solid $gray_mid",
1550
+ margin: 0
1551
1551
  });
1552
1552
  var StyledDescription = styled(Dialog.Description, {
1553
1553
  display: "flex",
@@ -1560,7 +1560,7 @@ var StyledDescription = styled(Dialog.Description, {
1560
1560
  // src/components/Modal/index.tsx
1561
1561
  var import_jsx_runtime22 = require("react/jsx-runtime");
1562
1562
  var Modal = ({ open, onOpenChange, title, description, children }) => {
1563
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog2.Portal, { children: [
1563
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2.Root, { open, onOpenChange, modal: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog2.Portal, { children: [
1564
1564
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledOverlay, {}),
1565
1565
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledContent, { children: [
1566
1566
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Wrapper, { children: [
@@ -3807,17 +3807,17 @@ var AccordionItem = styled(Accordion.Item, {
3807
3807
  }
3808
3808
  });
3809
3809
  var AccordionHeader = styled(Accordion.Header, {
3810
- display: "flex"
3810
+ display: "flex",
3811
+ alignItems: "center",
3812
+ justifyContent: "space-between",
3813
+ padding: "0 $5"
3811
3814
  });
3812
3815
  var AccordionTrigger = styled(Accordion.Trigger, {
3813
3816
  all: "unset",
3814
3817
  fontFamily: "$default",
3815
3818
  backgroundColor: "transparent",
3816
- padding: "0 $5",
3817
- flex: 1,
3818
3819
  display: "flex",
3819
3820
  alignItems: "center",
3820
- justifyContent: "space-between",
3821
3821
  fontSize: "$md",
3822
3822
  lineHeight: "$regular",
3823
3823
  color: "$black",
@@ -3867,13 +3867,13 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
3867
3867
  var Accordion2 = import_react21.default.forwardRef(
3868
3868
  ({ title, children, dropdownItems }, ref) => {
3869
3869
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContainer, { type: "single", collapsible: true, ref, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AccordionItem, { value: "item-1", children: [
3870
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AccordionTrigger, { children: [
3871
- title,
3870
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AccordionHeader, { children: [
3871
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: title }) }),
3872
3872
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(TriggerContent, { children: [
3873
3873
  dropdownItems && dropdownItems,
3874
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) })
3874
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadixAccordion.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(StyledButton, { as: "div", variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) }) })
3875
3875
  ] })
3876
- ] }) }),
3876
+ ] }),
3877
3877
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContent, { children }) })
3878
3878
  ] }) });
3879
3879
  }
package/dist/index.mjs CHANGED
@@ -1439,9 +1439,9 @@ var StyledContent = styled(Dialog.Content, {
1439
1439
  left: "50%",
1440
1440
  display: "flex",
1441
1441
  flexDirection: "column",
1442
- padding: "$4",
1442
+ padding: "0 $4",
1443
1443
  width: "90%",
1444
- maxWidth: "500px",
1444
+ maxWidth: "600px",
1445
1445
  backgroundColor: "$white",
1446
1446
  borderRadius: "$md",
1447
1447
  boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
@@ -1461,10 +1461,9 @@ var StyledTitle = styled(Dialog.Title, {
1461
1461
  color: "$black"
1462
1462
  });
1463
1463
  var StyledClose = styled(Dialog.Close, {
1464
- all: "unset",
1465
- position: "absolute",
1466
- top: "16px",
1467
- right: "16px",
1464
+ // position: 'absolute',
1465
+ // top: '24px',
1466
+ // right: '16px',
1468
1467
  cursor: "pointer",
1469
1468
  fontSize: "18px",
1470
1469
  color: "#999",
@@ -1475,7 +1474,8 @@ var StyledClose = styled(Dialog.Close, {
1475
1474
  var StyledDivider = styled("hr", {
1476
1475
  width: "100%",
1477
1476
  border: "none",
1478
- borderTop: "1px solid $gray_mid"
1477
+ borderTop: "1px solid $gray_mid",
1478
+ margin: 0
1479
1479
  });
1480
1480
  var StyledDescription = styled(Dialog.Description, {
1481
1481
  display: "flex",
@@ -1488,7 +1488,7 @@ var StyledDescription = styled(Dialog.Description, {
1488
1488
  // src/components/Modal/index.tsx
1489
1489
  import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
1490
1490
  var Modal = ({ open, onOpenChange, title, description, children }) => {
1491
- return /* @__PURE__ */ jsx22(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs6(Dialog2.Portal, { children: [
1491
+ return /* @__PURE__ */ jsx22(Dialog2.Root, { open, onOpenChange, modal: true, children: /* @__PURE__ */ jsxs6(Dialog2.Portal, { children: [
1492
1492
  /* @__PURE__ */ jsx22(StyledOverlay, {}),
1493
1493
  /* @__PURE__ */ jsxs6(StyledContent, { children: [
1494
1494
  /* @__PURE__ */ jsxs6(Wrapper, { children: [
@@ -3739,17 +3739,17 @@ var AccordionItem = styled(Accordion.Item, {
3739
3739
  }
3740
3740
  });
3741
3741
  var AccordionHeader = styled(Accordion.Header, {
3742
- display: "flex"
3742
+ display: "flex",
3743
+ alignItems: "center",
3744
+ justifyContent: "space-between",
3745
+ padding: "0 $5"
3743
3746
  });
3744
3747
  var AccordionTrigger = styled(Accordion.Trigger, {
3745
3748
  all: "unset",
3746
3749
  fontFamily: "$default",
3747
3750
  backgroundColor: "transparent",
3748
- padding: "0 $5",
3749
- flex: 1,
3750
3751
  display: "flex",
3751
3752
  alignItems: "center",
3752
- justifyContent: "space-between",
3753
3753
  fontSize: "$md",
3754
3754
  lineHeight: "$regular",
3755
3755
  color: "$black",
@@ -3799,13 +3799,13 @@ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3799
3799
  var Accordion2 = React6.forwardRef(
3800
3800
  ({ title, children, dropdownItems }, ref) => {
3801
3801
  return /* @__PURE__ */ jsx43(AccordionContainer, { type: "single", collapsible: true, ref, children: /* @__PURE__ */ jsxs20(AccordionItem, { value: "item-1", children: [
3802
- /* @__PURE__ */ jsx43(AccordionHeader, { children: /* @__PURE__ */ jsxs20(AccordionTrigger, { children: [
3803
- title,
3802
+ /* @__PURE__ */ jsxs20(AccordionHeader, { children: [
3803
+ /* @__PURE__ */ jsx43(AccordionTrigger, { children: /* @__PURE__ */ jsx43("span", { children: title }) }),
3804
3804
  /* @__PURE__ */ jsxs20(TriggerContent, { children: [
3805
3805
  dropdownItems && dropdownItems,
3806
- /* @__PURE__ */ jsx43(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx43(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) })
3806
+ /* @__PURE__ */ jsx43(RadixAccordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsx43(StyledButton, { as: "div", variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx43(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) }) })
3807
3807
  ] })
3808
- ] }) }),
3808
+ ] }),
3809
3809
  /* @__PURE__ */ jsx43(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ jsx43(AccordionContent, { children }) })
3810
3810
  ] }) });
3811
3811
  }
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.1",
6
+ "version": "1.2.2",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/clickpalm/clickpalm-designsystem-lib.git"