@clickpalm/react 1.2.0 → 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
@@ -1141,7 +1141,8 @@ var CheckboxLabel = styled("label", {
1141
1141
  display: "flex",
1142
1142
  paddingLeft: "$3",
1143
1143
  fontSize: "$md",
1144
- lineHeight: "$base"
1144
+ lineHeight: "$base",
1145
+ color: "$black"
1145
1146
  });
1146
1147
  var Span = styled("span", {
1147
1148
  fontFamily: "$default",
@@ -1212,7 +1213,7 @@ var TextInputContainer = styled("div", {
1212
1213
  padding: "$4 $4",
1213
1214
  marginBottom: "$6",
1214
1215
  FontSize: "$md",
1215
- "&:has(input:focus)": {
1216
+ "&:has(input:focus), &:hover": {
1216
1217
  border: "2px solid $clickpalm_light"
1217
1218
  },
1218
1219
  "&:has(input:disabled)": {
@@ -1233,7 +1234,7 @@ var TextInputContainer = styled("div", {
1233
1234
  true: {
1234
1235
  border: "1px solid $danger_dark",
1235
1236
  marginBottom: "0px",
1236
- "&:has(input:focus)": {
1237
+ "&:has(input:focus), &:hover": {
1237
1238
  border: "2px solid $danger_dark"
1238
1239
  }
1239
1240
  }
@@ -1498,43 +1499,43 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
1498
1499
 
1499
1500
  // src/components/Modal/styles.ts
1500
1501
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
1501
- var import_react9 = require("@stitches/react");
1502
- var StyledOverlay = (0, import_react9.styled)(Dialog.Overlay, {
1502
+ var StyledOverlay = styled(Dialog.Overlay, {
1503
1503
  backgroundColor: "rgba(0, 0, 0, 0.5)",
1504
1504
  position: "fixed",
1505
1505
  inset: 0,
1506
- zIndex: 999999999
1506
+ zIndex: 101
1507
1507
  });
1508
- var StyledContent = (0, import_react9.styled)(Dialog.Content, {
1508
+ var StyledContent = styled(Dialog.Content, {
1509
1509
  position: "fixed",
1510
1510
  top: "50%",
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)",
1520
1520
  transform: "translate(-50%, -50%)",
1521
- zIndex: 1e9,
1522
- fontFamily: "$default"
1521
+ zIndex: 102,
1522
+ fontFamily: "$default",
1523
+ fontWeight: "$regular"
1523
1524
  });
1524
- var Wrapper = (0, import_react9.styled)("div", {
1525
+ var Wrapper = styled("div", {
1525
1526
  display: "flex",
1526
1527
  justifyContent: "space-between",
1527
1528
  alignItems: "center"
1528
1529
  });
1529
- var StyledTitle = (0, import_react9.styled)(Dialog.Title, {
1530
+ var StyledTitle = styled(Dialog.Title, {
1530
1531
  fontSize: "$lg",
1531
- fontWeight: "bold"
1532
+ fontWeight: "bold",
1533
+ color: "$black"
1532
1534
  });
1533
- var StyledClose = (0, import_react9.styled)(Dialog.Close, {
1534
- all: "unset",
1535
- position: "absolute",
1536
- top: "16px",
1537
- right: "16px",
1535
+ var StyledClose = styled(Dialog.Close, {
1536
+ // position: 'absolute',
1537
+ // top: '24px',
1538
+ // right: '16px',
1538
1539
  cursor: "pointer",
1539
1540
  fontSize: "18px",
1540
1541
  color: "#999",
@@ -1542,16 +1543,24 @@ var StyledClose = (0, import_react9.styled)(Dialog.Close, {
1542
1543
  color: "#333"
1543
1544
  }
1544
1545
  });
1545
- var StyledDivider = (0, import_react9.styled)("hr", {
1546
+ var StyledDivider = styled("hr", {
1546
1547
  width: "100%",
1547
1548
  border: "none",
1548
- borderTop: "1px solid $gray_mid"
1549
+ borderTop: "1px solid $gray_mid",
1550
+ margin: 0
1551
+ });
1552
+ var StyledDescription = styled(Dialog.Description, {
1553
+ display: "flex",
1554
+ fontFamily: "$default",
1555
+ fontWeight: "$regular",
1556
+ fontSize: "$md",
1557
+ margin: "$2 0"
1549
1558
  });
1550
1559
 
1551
1560
  // src/components/Modal/index.tsx
1552
1561
  var import_jsx_runtime22 = require("react/jsx-runtime");
1553
- var Modal = ({ open, onOpenChange, title, children }) => {
1554
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog2.Portal, { children: [
1562
+ var Modal = ({ open, onOpenChange, title, description, 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: [
1555
1564
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledOverlay, {}),
1556
1565
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledContent, { children: [
1557
1566
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Wrapper, { children: [
@@ -1559,13 +1568,14 @@ var Modal = ({ open, onOpenChange, title, children }) => {
1559
1568
  /* @__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 }) }) })
1560
1569
  ] }),
1561
1570
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDivider, {}),
1571
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1562
1572
  children
1563
1573
  ] })
1564
1574
  ] }) });
1565
1575
  };
1566
1576
 
1567
1577
  // src/components/ProgressBar/index.tsx
1568
- var import_react10 = require("react");
1578
+ var import_react9 = require("react");
1569
1579
 
1570
1580
  // src/components/ProgressBar/styles.ts
1571
1581
  var Progress = __toESM(require("@radix-ui/react-progress"));
@@ -1597,8 +1607,8 @@ var StyledIndicator = styled(Progress.Indicator, {
1597
1607
  // src/components/ProgressBar/index.tsx
1598
1608
  var import_jsx_runtime23 = require("react/jsx-runtime");
1599
1609
  var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1600
- const [progress2, setProgress] = (0, import_react10.useState)(0);
1601
- (0, import_react10.useEffect)(() => {
1610
+ const [progress2, setProgress] = (0, import_react9.useState)(0);
1611
+ (0, import_react9.useEffect)(() => {
1602
1612
  const timer = setTimeout(() => setProgress(value), 500);
1603
1613
  return () => clearTimeout(timer);
1604
1614
  }, [value]);
@@ -1623,6 +1633,9 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1623
1633
  };
1624
1634
  ProgressBar.displayName = "ProgressBar";
1625
1635
 
1636
+ // src/components/Radio/index.tsx
1637
+ var import_react10 = require("react");
1638
+
1626
1639
  // src/components/Radio/styles.ts
1627
1640
  var RadioGroup = __toESM(require("@radix-ui/react-radio-group"));
1628
1641
  var StyledRoot2 = styled(RadioGroup.Root, {
@@ -1716,18 +1729,19 @@ var Span3 = styled("span", {
1716
1729
 
1717
1730
  // src/components/Radio/index.tsx
1718
1731
  var import_jsx_runtime24 = require("react/jsx-runtime");
1719
- var Radio = ({
1732
+ var Radio = (0, import_react10.forwardRef)(({
1720
1733
  labels,
1721
1734
  value,
1722
1735
  onChange,
1723
1736
  disabled = false,
1724
1737
  required = false,
1725
1738
  errorMessage
1726
- }) => {
1739
+ }, ref) => {
1727
1740
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1728
1741
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1729
1742
  StyledRoot2,
1730
1743
  {
1744
+ ref,
1731
1745
  value,
1732
1746
  onValueChange: onChange,
1733
1747
  hasError: !!errorMessage,
@@ -1751,7 +1765,8 @@ var Radio = ({
1751
1765
  ),
1752
1766
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Span3, { children: errorMessage })
1753
1767
  ] });
1754
- };
1768
+ });
1769
+ Radio.displayName = "Radio";
1755
1770
 
1756
1771
  // src/components/Spacing.tsx
1757
1772
  var import_jsx_runtime25 = require("react/jsx-runtime");
@@ -1769,6 +1784,9 @@ var Spacing = ({ size, axis = "vertical" }) => {
1769
1784
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style, "data-testid": `spacing-${size}-${axis}` });
1770
1785
  };
1771
1786
 
1787
+ // src/components/Switch/index.tsx
1788
+ var import_react11 = require("react");
1789
+
1772
1790
  // src/components/Switch/styles.ts
1773
1791
  var Switch = __toESM(require("@radix-ui/react-switch"));
1774
1792
  var Wrapper3 = styled("div", {
@@ -1865,7 +1883,7 @@ var Span4 = styled("span", {
1865
1883
 
1866
1884
  // src/components/Switch/index.tsx
1867
1885
  var import_jsx_runtime26 = require("react/jsx-runtime");
1868
- var Switch2 = ({
1886
+ var Switch2 = (0, import_react11.forwardRef)(({
1869
1887
  label,
1870
1888
  checked,
1871
1889
  defaultChecked,
@@ -1874,12 +1892,13 @@ var Switch2 = ({
1874
1892
  required = false,
1875
1893
  id,
1876
1894
  errorMessage
1877
- }) => {
1895
+ }, ref) => {
1878
1896
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1879
1897
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Wrapper3, { hasError: !!errorMessage, children: [
1880
1898
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1881
1899
  StyledRoot3,
1882
1900
  {
1901
+ ref,
1883
1902
  id,
1884
1903
  checked,
1885
1904
  defaultChecked,
@@ -1894,10 +1913,11 @@ var Switch2 = ({
1894
1913
  ] }),
1895
1914
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Span4, { children: errorMessage })
1896
1915
  ] });
1897
- };
1916
+ });
1917
+ Switch2.displayName = "Switch";
1898
1918
 
1899
1919
  // src/components/Tabs/index.tsx
1900
- var import_react11 = require("react");
1920
+ var import_react12 = require("react");
1901
1921
 
1902
1922
  // src/components/Tabs/styles.ts
1903
1923
  var Tabs = __toESM(require("@radix-ui/react-tabs"));
@@ -1984,17 +2004,17 @@ var TabsItem = ({ children }) => {
1984
2004
  };
1985
2005
  var Tabs2 = ({ defaultValue, colorContent, children }) => {
1986
2006
  const items = [];
1987
- const childrenArray = import_react11.Children.toArray(children);
2007
+ const childrenArray = import_react12.Children.toArray(children);
1988
2008
  childrenArray.forEach((child) => {
1989
- if ((0, import_react11.isValidElement)(child) && child.type === TabsItem) {
2009
+ if ((0, import_react12.isValidElement)(child) && child.type === TabsItem) {
1990
2010
  const { value, label, children: content } = child.props;
1991
2011
  items.push({ value, label, children: content });
1992
2012
  }
1993
2013
  });
1994
- const listRef = (0, import_react11.useRef)(null);
1995
- const rootRef = (0, import_react11.useRef)(null);
1996
- const hasOverflowRef = (0, import_react11.useRef)(false);
1997
- const [hasOverflow, setHasOverflow] = (0, import_react11.useState)(false);
2014
+ const listRef = (0, import_react12.useRef)(null);
2015
+ const rootRef = (0, import_react12.useRef)(null);
2016
+ const hasOverflowRef = (0, import_react12.useRef)(false);
2017
+ const [hasOverflow, setHasOverflow] = (0, import_react12.useState)(false);
1998
2018
  const checkOverflow = () => {
1999
2019
  const listEl = listRef.current;
2000
2020
  const rootEl = rootRef.current;
@@ -2009,7 +2029,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2009
2029
  setHasOverflow(overflow);
2010
2030
  }
2011
2031
  };
2012
- (0, import_react11.useLayoutEffect)(() => {
2032
+ (0, import_react12.useLayoutEffect)(() => {
2013
2033
  checkOverflow();
2014
2034
  const resizeObserver = new ResizeObserver(checkOverflow);
2015
2035
  if (listRef.current) {
@@ -2088,6 +2108,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2088
2108
  Tabs2.Item = TabsItem;
2089
2109
 
2090
2110
  // src/components/TextArea.tsx
2111
+ var import_react13 = require("react");
2091
2112
  var import_jsx_runtime28 = require("react/jsx-runtime");
2092
2113
  var Wrapper4 = styled("div", {
2093
2114
  display: "flex",
@@ -2163,14 +2184,24 @@ var Span5 = styled("span", {
2163
2184
  marginTop: "2px",
2164
2185
  marginBottom: "$6"
2165
2186
  });
2166
- var TextArea = ({ label, id, htmlFor, errorMessage, ...props }) => {
2167
- const textAreaId = id || htmlFor || `textarea-${crypto.randomUUID()}`;
2168
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Wrapper4, { children: [
2169
- label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledLabel2, { htmlFor: textAreaId, children: label }),
2170
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TextAreaElement, { id: textAreaId, ...props, hasError: !!errorMessage }),
2171
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Span5, { children: errorMessage })
2172
- ] });
2173
- };
2187
+ var TextArea = (0, import_react13.forwardRef)(
2188
+ ({ label, id, htmlFor, errorMessage, ...props }, ref) => {
2189
+ const textAreaId = id || htmlFor || `textarea-${crypto.randomUUID()}`;
2190
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Wrapper4, { children: [
2191
+ label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledLabel2, { htmlFor: textAreaId, children: label }),
2192
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2193
+ TextAreaElement,
2194
+ {
2195
+ id: textAreaId,
2196
+ ...props,
2197
+ hasError: !!errorMessage,
2198
+ ref
2199
+ }
2200
+ ),
2201
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Span5, { children: errorMessage })
2202
+ ] });
2203
+ }
2204
+ );
2174
2205
  TextArea.displayName = "TextArea";
2175
2206
 
2176
2207
  // src/components/Tooltip/index.tsx
@@ -2329,7 +2360,7 @@ var Loader = ({ show, fullscreen = false }) => {
2329
2360
  Loader.displayName = "Loader";
2330
2361
 
2331
2362
  // src/components/MaskedInput/index.tsx
2332
- var import_react12 = require("react");
2363
+ var import_react14 = require("react");
2333
2364
 
2334
2365
  // src/components/MaskedInput/utils.ts
2335
2366
  var MAX_LENGTHS = {
@@ -2394,10 +2425,10 @@ var applyMask = (value, maskType) => {
2394
2425
 
2395
2426
  // src/components/MaskedInput/index.tsx
2396
2427
  var import_jsx_runtime31 = require("react/jsx-runtime");
2397
- var MaskedInput = (0, import_react12.forwardRef)(
2428
+ var MaskedInput = (0, import_react14.forwardRef)(
2398
2429
  ({ maskType, onChange, ...props }, ref) => {
2399
- const [value, setValue] = (0, import_react12.useState)("");
2400
- const inputRef = (0, import_react12.useRef)(null);
2430
+ const [value, setValue] = (0, import_react14.useState)("");
2431
+ const inputRef = (0, import_react14.useRef)(null);
2401
2432
  const handleChange = (e) => {
2402
2433
  const { value: inputValue, selectionStart } = e.target;
2403
2434
  const isBackspace = value.length > inputValue.length;
@@ -2445,7 +2476,7 @@ var MaskedInput = (0, import_react12.forwardRef)(
2445
2476
  MaskedInput.displayName = "MaskedInput";
2446
2477
 
2447
2478
  // src/components/Dropdown/index.tsx
2448
- var import_react13 = require("react");
2479
+ var import_react15 = __toESM(require("react"));
2449
2480
  var DropdownMenu2 = __toESM(require("@radix-ui/react-dropdown-menu"));
2450
2481
 
2451
2482
  // src/components/Dropdown/styles.ts
@@ -2531,17 +2562,19 @@ var IconButton = styled("button", {
2531
2562
  // src/components/Dropdown/index.tsx
2532
2563
  var import_jsx_runtime32 = require("react/jsx-runtime");
2533
2564
  var Dropdown = ({ children }) => {
2534
- const childrenArray = import_react13.Children.toArray(children);
2565
+ const childrenArray = import_react15.Children.toArray(children);
2535
2566
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenu2.Root, { children: [
2536
2567
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon, { name: "Dots", size: 16 }) }) }),
2537
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenu2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledContent2, { sideOffset: 5, align: "end", children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react13.Fragment, { children: [
2568
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownMenu2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledContent2, { sideOffset: 5, align: "end", children: childrenArray.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react15.Fragment, { children: [
2538
2569
  child,
2539
2570
  index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownSeparator, {})
2540
2571
  ] }, index)) }) })
2541
2572
  ] });
2542
2573
  };
2543
- var DropdownItem = StyledItem2;
2544
2574
  var DropdownSeparator = StyledSeparator;
2575
+ var DropdownItem = import_react15.default.forwardRef(({ children, ...props }, forwardedRef) => {
2576
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledItem2, { ...props, ref: forwardedRef, children });
2577
+ });
2545
2578
  Dropdown.displayName = "Dropdown";
2546
2579
  DropdownItem.displayName = "DropdownItem";
2547
2580
  DropdownSeparator.displayName = "DropdownSeparator";
@@ -2578,6 +2611,7 @@ var import_jsx_runtime34 = require("react/jsx-runtime");
2578
2611
  var StyledParagraph = styled("p", {
2579
2612
  fontFamily: "$default",
2580
2613
  lineHeight: "$short",
2614
+ color: "$black",
2581
2615
  margin: 0,
2582
2616
  variants: {
2583
2617
  size: {
@@ -2620,7 +2654,7 @@ var Paragraph = (props) => {
2620
2654
  Paragraph.displayName = "Paragraph";
2621
2655
 
2622
2656
  // src/components/Heading.tsx
2623
- var import_react14 = require("react");
2657
+ var import_react16 = require("react");
2624
2658
  var import_jsx_runtime35 = require("react/jsx-runtime");
2625
2659
  var StyledHeading = styled("h2", {
2626
2660
  fontFamily: "$default",
@@ -2643,7 +2677,7 @@ var StyledHeading = styled("h2", {
2643
2677
  size: "md"
2644
2678
  }
2645
2679
  });
2646
- var Heading = (0, import_react14.forwardRef)(function Heading2({ children, ...props }, ref) {
2680
+ var Heading = (0, import_react16.forwardRef)(function Heading2({ children, ...props }, ref) {
2647
2681
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledHeading, { ref, ...props, children });
2648
2682
  });
2649
2683
  Heading.displayName = "Heading";
@@ -2651,7 +2685,7 @@ Heading.displayName = "Heading";
2651
2685
  // src/components/Select/index.tsx
2652
2686
  var import_react_icons2 = require("@radix-ui/react-icons");
2653
2687
  var CustomSelect = __toESM(require("@radix-ui/react-select"));
2654
- var import_react15 = require("react");
2688
+ var import_react17 = require("react");
2655
2689
 
2656
2690
  // src/components/Select/styles.ts
2657
2691
  var Select = __toESM(require("@radix-ui/react-select"));
@@ -2680,6 +2714,7 @@ var StyledTrigger = styled(Select.Trigger, {
2680
2714
  fontSize: "$md",
2681
2715
  backgroundColor: "white",
2682
2716
  cursor: "pointer",
2717
+ color: "$black",
2683
2718
  "&[data-placeholder]": {
2684
2719
  color: "$gray_mid"
2685
2720
  },
@@ -2709,9 +2744,10 @@ var StyledContent3 = styled(Select.Content, {
2709
2744
  backgroundColor: "$gray_background",
2710
2745
  borderRadius: "$md",
2711
2746
  boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
2712
- zIndex: 10,
2747
+ zIndex: 103,
2713
2748
  width: "var(--radix-select-trigger-width)",
2714
- maxHeight: "var(--radix-select-content-available-height)"
2749
+ maxHeight: "var(--radix-select-content-available-height)",
2750
+ fontWeight: "$regular"
2715
2751
  });
2716
2752
  var StyledViewport = styled(Select.Viewport, {
2717
2753
  padding: "4px"
@@ -2719,10 +2755,11 @@ var StyledViewport = styled(Select.Viewport, {
2719
2755
  var StyledItem3 = styled(Select.Item, {
2720
2756
  position: "relative",
2721
2757
  fontSize: "$md",
2758
+ fontWeight: "$regular",
2722
2759
  padding: "14px 12px",
2723
2760
  color: "$black",
2724
2761
  cursor: "pointer",
2725
- "&[data-highlighted]": {
2762
+ "&[data-highlighted], &:focus, &:hover": {
2726
2763
  outline: "none",
2727
2764
  color: "$clickpalm_light"
2728
2765
  },
@@ -2769,53 +2806,50 @@ var Span6 = styled("span", {
2769
2806
 
2770
2807
  // src/components/Select/index.tsx
2771
2808
  var import_jsx_runtime36 = require("react/jsx-runtime");
2772
- function Select2({
2773
- value,
2774
- onValueChange,
2775
- items,
2776
- placeholder = "Selecione",
2777
- label,
2778
- errorMessage,
2779
- ...rest
2780
- }) {
2781
- const [open, setOpen] = (0, import_react15.useState)(false);
2782
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(StyledWrapper4, { children: [
2783
- label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label3, { children: label }),
2784
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2785
- CustomSelect.Root,
2786
- {
2787
- value,
2788
- onValueChange,
2789
- onOpenChange: setOpen,
2790
- ...rest,
2791
- children: [
2792
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, children: [
2793
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.Value, { placeholder }),
2794
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledIcon, { open, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2795
- ] }),
2796
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Span6, { children: errorMessage }),
2797
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2798
- StyledContent3,
2799
- {
2800
- side: "bottom",
2801
- align: "start",
2802
- position: "popper",
2803
- children: [
2804
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleUpIcon, {}) }),
2805
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledViewport, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledItem3, { value: item.value, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ItemText, { children: item.label }) }, item.value)) }),
2806
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2807
- ]
2808
- }
2809
- ) })
2810
- ]
2811
- }
2812
- )
2813
- ] });
2814
- }
2809
+ var Select2 = (0, import_react17.forwardRef)(
2810
+ ({
2811
+ value,
2812
+ onValueChange,
2813
+ items,
2814
+ placeholder = "Selecione",
2815
+ label,
2816
+ errorMessage,
2817
+ css: css2,
2818
+ className,
2819
+ style,
2820
+ ...rest
2821
+ }, ref) => {
2822
+ const [open, setOpen] = (0, import_react17.useState)(false);
2823
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(StyledWrapper4, { css: css2, className, style, children: [
2824
+ label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label3, { children: label }),
2825
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2826
+ CustomSelect.Root,
2827
+ {
2828
+ value,
2829
+ onValueChange,
2830
+ onOpenChange: setOpen,
2831
+ ...rest,
2832
+ children: [
2833
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, ref, children: [
2834
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.Value, { placeholder }),
2835
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledIcon, { open, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2836
+ ] }),
2837
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Span6, { children: errorMessage }),
2838
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(StyledContent3, { side: "bottom", align: "start", position: "popper", children: [
2839
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleUpIcon, {}) }),
2840
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledViewport, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledItem3, { value: item.value, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ItemText, { children: item.label }) }, item.value)) }),
2841
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomSelect.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2842
+ ] }) })
2843
+ ]
2844
+ }
2845
+ )
2846
+ ] });
2847
+ }
2848
+ );
2815
2849
  Select2.displayName = "Select";
2816
2850
 
2817
2851
  // src/components/LabelledValue/index.tsx
2818
- var import_react16 = require("react");
2852
+ var import_react18 = require("react");
2819
2853
 
2820
2854
  // src/components/LabelledValue/styles.ts
2821
2855
  var Container = styled("div", {
@@ -2878,9 +2912,9 @@ var Value2 = styled("div", {
2878
2912
  // src/components/LabelledValue/index.tsx
2879
2913
  var import_jsx_runtime37 = require("react/jsx-runtime");
2880
2914
  function LabelledValue({ position = "vertical", withRow = false, children }) {
2881
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Container, { position, children: import_react16.Children.map(children, (child) => {
2882
- if ((0, import_react16.isValidElement)(child)) {
2883
- return (0, import_react16.cloneElement)(child, { position, withRow });
2915
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Container, { position, children: import_react18.Children.map(children, (child) => {
2916
+ if ((0, import_react18.isValidElement)(child)) {
2917
+ return (0, import_react18.cloneElement)(child, { position, withRow });
2884
2918
  }
2885
2919
  return child;
2886
2920
  }) });
@@ -2920,7 +2954,8 @@ var StyledLabel3 = styled(OneTimePasswordField.Root, {
2920
2954
  display: "flex",
2921
2955
  justifyContent: "center",
2922
2956
  alignItems: "center",
2923
- marginBottom: "$5"
2957
+ marginBottom: "$5",
2958
+ color: "$black"
2924
2959
  });
2925
2960
  var StyledInput = styled(OneTimePasswordField.Input, {
2926
2961
  all: "unset",
@@ -3080,7 +3115,7 @@ var ToastViewport = styled(ToastPrimitive.Viewport, {
3080
3115
  outline: "none",
3081
3116
  zIndex: 9999,
3082
3117
  "@lg": {
3083
- maxWidth: "900px"
3118
+ maxWidth: "700px"
3084
3119
  }
3085
3120
  });
3086
3121
  var progress = keyframes({
@@ -3241,7 +3276,6 @@ var StepItem = styled("div", {
3241
3276
  });
3242
3277
  var StepCircle = styled("div", {
3243
3278
  position: "relative",
3244
- zIndex: 990,
3245
3279
  width: "var(--circle-size)",
3246
3280
  height: "var(--circle-size)",
3247
3281
  borderRadius: "50%",
@@ -3476,7 +3510,7 @@ var MultiStep = ({
3476
3510
  MultiStep.displayName = "MultiStep";
3477
3511
 
3478
3512
  // src/components/Carousel/index.tsx
3479
- var import_react17 = require("react");
3513
+ var import_react19 = require("react");
3480
3514
 
3481
3515
  // src/components/Carousel/styles.ts
3482
3516
  var CarouselContainer = styled("div", {
@@ -3585,10 +3619,10 @@ var CarouselItemContainer = styled("div", {
3585
3619
  var import_jsx_runtime41 = require("react/jsx-runtime");
3586
3620
  var SWIPE_THRESHOLD = 50;
3587
3621
  var Carousel = ({ title, variant, children }) => {
3588
- const items = import_react17.Children.toArray(children);
3589
- const [activeIndex, setActiveIndex] = (0, import_react17.useState)(0);
3590
- const [touchStartX, setTouchStartX] = (0, import_react17.useState)(null);
3591
- const [touchEndX, setTouchEndX] = (0, import_react17.useState)(null);
3622
+ const items = import_react19.Children.toArray(children);
3623
+ const [activeIndex, setActiveIndex] = (0, import_react19.useState)(0);
3624
+ const [touchStartX, setTouchStartX] = (0, import_react19.useState)(null);
3625
+ const [touchEndX, setTouchEndX] = (0, import_react19.useState)(null);
3592
3626
  const prev = () => {
3593
3627
  setActiveIndex((prevIndex) => prevIndex === 0 ? items.length - 1 : prevIndex - 1);
3594
3628
  };
@@ -3661,7 +3695,7 @@ var Carousel = ({ title, variant, children }) => {
3661
3695
  onTouchMove,
3662
3696
  onTouchEnd,
3663
3697
  children: items.map(
3664
- (child, index) => (0, import_react17.cloneElement)(child, {
3698
+ (child, index) => (0, import_react19.cloneElement)(child, {
3665
3699
  "aria-hidden": index !== activeIndex,
3666
3700
  style: {
3667
3701
  display: index === activeIndex ? "block" : "none"
@@ -3692,7 +3726,7 @@ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import
3692
3726
  Carousel.Item = CarouselItem;
3693
3727
 
3694
3728
  // src/components/PasswordInput.tsx
3695
- var import_react18 = require("react");
3729
+ var import_react20 = require("react");
3696
3730
  var import_jsx_runtime42 = require("react/jsx-runtime");
3697
3731
  var ToggleButton = styled("button", {
3698
3732
  all: "unset",
@@ -3708,11 +3742,11 @@ var ToggleButton = styled("button", {
3708
3742
  borderRadius: "$sm"
3709
3743
  }
3710
3744
  });
3711
- var PasswordInput = (0, import_react18.forwardRef)(
3745
+ var PasswordInput = (0, import_react20.forwardRef)(
3712
3746
  ({ value, onChange, ...props }, ref) => {
3713
- const [visible, setVisible] = (0, import_react18.useState)(false);
3714
- const innerRef = (0, import_react18.useRef)(null);
3715
- (0, import_react18.useImperativeHandle)(ref, () => innerRef.current);
3747
+ const [visible, setVisible] = (0, import_react20.useState)(false);
3748
+ const innerRef = (0, import_react20.useRef)(null);
3749
+ (0, import_react20.useImperativeHandle)(ref, () => innerRef.current);
3716
3750
  const handleToggleVisibility = () => {
3717
3751
  setVisible((v) => !v);
3718
3752
  setTimeout(() => {
@@ -3748,7 +3782,7 @@ PasswordInput.displayName = "PasswordInput";
3748
3782
 
3749
3783
  // src/components/Accordion/index.tsx
3750
3784
  var RadixAccordion = __toESM(require("@radix-ui/react-accordion"));
3751
- var import_react19 = __toESM(require("react"));
3785
+ var import_react21 = __toESM(require("react"));
3752
3786
 
3753
3787
  // src/components/Accordion/styles.ts
3754
3788
  var Accordion = __toESM(require("@radix-ui/react-accordion"));
@@ -3773,17 +3807,17 @@ var AccordionItem = styled(Accordion.Item, {
3773
3807
  }
3774
3808
  });
3775
3809
  var AccordionHeader = styled(Accordion.Header, {
3776
- display: "flex"
3810
+ display: "flex",
3811
+ alignItems: "center",
3812
+ justifyContent: "space-between",
3813
+ padding: "0 $5"
3777
3814
  });
3778
3815
  var AccordionTrigger = styled(Accordion.Trigger, {
3779
3816
  all: "unset",
3780
3817
  fontFamily: "$default",
3781
3818
  backgroundColor: "transparent",
3782
- padding: "0 $5",
3783
- flex: 1,
3784
3819
  display: "flex",
3785
3820
  alignItems: "center",
3786
- justifyContent: "space-between",
3787
3821
  fontSize: "$md",
3788
3822
  lineHeight: "$regular",
3789
3823
  color: "$black",
@@ -3830,16 +3864,16 @@ var OptionsButton = styled(Button, {
3830
3864
 
3831
3865
  // src/components/Accordion/index.tsx
3832
3866
  var import_jsx_runtime43 = require("react/jsx-runtime");
3833
- var Accordion2 = import_react19.default.forwardRef(
3867
+ var Accordion2 = import_react21.default.forwardRef(
3834
3868
  ({ title, children, dropdownItems }, ref) => {
3835
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: [
3836
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(AccordionTrigger, { children: [
3837
- 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 }) }),
3838
3872
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(TriggerContent, { children: [
3839
3873
  dropdownItems && dropdownItems,
3840
- /* @__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 }) }) })
3841
3875
  ] })
3842
- ] }) }),
3876
+ ] }),
3843
3877
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContent, { children }) })
3844
3878
  ] }) });
3845
3879
  }