@clickpalm/react 1.1.2 → 1.2.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.
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.tsx
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
+ Accordion: () => Accordion2,
33
34
  Avatar: () => Avatar2,
34
35
  Box: () => Box,
35
36
  Button: () => Button,
@@ -37,6 +38,9 @@ __export(src_exports, {
37
38
  Carousel: () => Carousel,
38
39
  Checkbox: () => Checkbox2,
39
40
  Datepicker: () => Datepicker,
41
+ Dropdown: () => Dropdown,
42
+ DropdownItem: () => DropdownItem,
43
+ DropdownSeparator: () => DropdownSeparator,
40
44
  Heading: () => Heading,
41
45
  Hr: () => Hr,
42
46
  Icon: () => Icon,
@@ -1137,7 +1141,8 @@ var CheckboxLabel = styled("label", {
1137
1141
  display: "flex",
1138
1142
  paddingLeft: "$3",
1139
1143
  fontSize: "$md",
1140
- lineHeight: "$base"
1144
+ lineHeight: "$base",
1145
+ color: "$black"
1141
1146
  });
1142
1147
  var Span = styled("span", {
1143
1148
  fontFamily: "$default",
@@ -1208,7 +1213,7 @@ var TextInputContainer = styled("div", {
1208
1213
  padding: "$4 $4",
1209
1214
  marginBottom: "$6",
1210
1215
  FontSize: "$md",
1211
- "&:has(input:focus)": {
1216
+ "&:has(input:focus), &:hover": {
1212
1217
  border: "2px solid $clickpalm_light"
1213
1218
  },
1214
1219
  "&:has(input:disabled)": {
@@ -1229,7 +1234,7 @@ var TextInputContainer = styled("div", {
1229
1234
  true: {
1230
1235
  border: "1px solid $danger_dark",
1231
1236
  marginBottom: "0px",
1232
- "&:has(input:focus)": {
1237
+ "&:has(input:focus), &:hover": {
1233
1238
  border: "2px solid $danger_dark"
1234
1239
  }
1235
1240
  }
@@ -1494,14 +1499,13 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
1494
1499
 
1495
1500
  // src/components/Modal/styles.ts
1496
1501
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
1497
- var import_react9 = require("@stitches/react");
1498
- var StyledOverlay = (0, import_react9.styled)(Dialog.Overlay, {
1502
+ var StyledOverlay = styled(Dialog.Overlay, {
1499
1503
  backgroundColor: "rgba(0, 0, 0, 0.5)",
1500
1504
  position: "fixed",
1501
1505
  inset: 0,
1502
- zIndex: 999999999
1506
+ zIndex: 101
1503
1507
  });
1504
- var StyledContent = (0, import_react9.styled)(Dialog.Content, {
1508
+ var StyledContent = styled(Dialog.Content, {
1505
1509
  position: "fixed",
1506
1510
  top: "50%",
1507
1511
  left: "50%",
@@ -1514,19 +1518,21 @@ var StyledContent = (0, import_react9.styled)(Dialog.Content, {
1514
1518
  borderRadius: "$md",
1515
1519
  boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
1516
1520
  transform: "translate(-50%, -50%)",
1517
- zIndex: 1e9,
1518
- fontFamily: "$default"
1521
+ zIndex: 102,
1522
+ fontFamily: "$default",
1523
+ fontWeight: "$regular"
1519
1524
  });
1520
- var Wrapper = (0, import_react9.styled)("div", {
1525
+ var Wrapper = styled("div", {
1521
1526
  display: "flex",
1522
1527
  justifyContent: "space-between",
1523
1528
  alignItems: "center"
1524
1529
  });
1525
- var StyledTitle = (0, import_react9.styled)(Dialog.Title, {
1530
+ var StyledTitle = styled(Dialog.Title, {
1526
1531
  fontSize: "$lg",
1527
- fontWeight: "bold"
1532
+ fontWeight: "bold",
1533
+ color: "$black"
1528
1534
  });
1529
- var StyledClose = (0, import_react9.styled)(Dialog.Close, {
1535
+ var StyledClose = styled(Dialog.Close, {
1530
1536
  all: "unset",
1531
1537
  position: "absolute",
1532
1538
  top: "16px",
@@ -1538,15 +1544,22 @@ var StyledClose = (0, import_react9.styled)(Dialog.Close, {
1538
1544
  color: "#333"
1539
1545
  }
1540
1546
  });
1541
- var StyledDivider = (0, import_react9.styled)("hr", {
1547
+ var StyledDivider = styled("hr", {
1542
1548
  width: "100%",
1543
1549
  border: "none",
1544
1550
  borderTop: "1px solid $gray_mid"
1545
1551
  });
1552
+ var StyledDescription = styled(Dialog.Description, {
1553
+ display: "flex",
1554
+ fontFamily: "$default",
1555
+ fontWeight: "$regular",
1556
+ fontSize: "$md",
1557
+ margin: "$2 0"
1558
+ });
1546
1559
 
1547
1560
  // src/components/Modal/index.tsx
1548
1561
  var import_jsx_runtime22 = require("react/jsx-runtime");
1549
- var Modal = ({ open, onOpenChange, title, children }) => {
1562
+ var Modal = ({ open, onOpenChange, title, description, children }) => {
1550
1563
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog2.Portal, { children: [
1551
1564
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledOverlay, {}),
1552
1565
  /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledContent, { children: [
@@ -1555,13 +1568,14 @@ var Modal = ({ open, onOpenChange, title, children }) => {
1555
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 }) }) })
1556
1569
  ] }),
1557
1570
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDivider, {}),
1571
+ description && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDescription, { children: description }),
1558
1572
  children
1559
1573
  ] })
1560
1574
  ] }) });
1561
1575
  };
1562
1576
 
1563
1577
  // src/components/ProgressBar/index.tsx
1564
- var import_react10 = require("react");
1578
+ var import_react9 = require("react");
1565
1579
 
1566
1580
  // src/components/ProgressBar/styles.ts
1567
1581
  var Progress = __toESM(require("@radix-ui/react-progress"));
@@ -1593,8 +1607,8 @@ var StyledIndicator = styled(Progress.Indicator, {
1593
1607
  // src/components/ProgressBar/index.tsx
1594
1608
  var import_jsx_runtime23 = require("react/jsx-runtime");
1595
1609
  var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1596
- const [progress2, setProgress] = (0, import_react10.useState)(0);
1597
- (0, import_react10.useEffect)(() => {
1610
+ const [progress2, setProgress] = (0, import_react9.useState)(0);
1611
+ (0, import_react9.useEffect)(() => {
1598
1612
  const timer = setTimeout(() => setProgress(value), 500);
1599
1613
  return () => clearTimeout(timer);
1600
1614
  }, [value]);
@@ -1619,6 +1633,9 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1619
1633
  };
1620
1634
  ProgressBar.displayName = "ProgressBar";
1621
1635
 
1636
+ // src/components/Radio/index.tsx
1637
+ var import_react10 = require("react");
1638
+
1622
1639
  // src/components/Radio/styles.ts
1623
1640
  var RadioGroup = __toESM(require("@radix-ui/react-radio-group"));
1624
1641
  var StyledRoot2 = styled(RadioGroup.Root, {
@@ -1712,18 +1729,19 @@ var Span3 = styled("span", {
1712
1729
 
1713
1730
  // src/components/Radio/index.tsx
1714
1731
  var import_jsx_runtime24 = require("react/jsx-runtime");
1715
- var Radio = ({
1732
+ var Radio = (0, import_react10.forwardRef)(({
1716
1733
  labels,
1717
1734
  value,
1718
1735
  onChange,
1719
1736
  disabled = false,
1720
1737
  required = false,
1721
1738
  errorMessage
1722
- }) => {
1739
+ }, ref) => {
1723
1740
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1724
1741
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1725
1742
  StyledRoot2,
1726
1743
  {
1744
+ ref,
1727
1745
  value,
1728
1746
  onValueChange: onChange,
1729
1747
  hasError: !!errorMessage,
@@ -1747,7 +1765,8 @@ var Radio = ({
1747
1765
  ),
1748
1766
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Span3, { children: errorMessage })
1749
1767
  ] });
1750
- };
1768
+ });
1769
+ Radio.displayName = "Radio";
1751
1770
 
1752
1771
  // src/components/Spacing.tsx
1753
1772
  var import_jsx_runtime25 = require("react/jsx-runtime");
@@ -1765,6 +1784,9 @@ var Spacing = ({ size, axis = "vertical" }) => {
1765
1784
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style, "data-testid": `spacing-${size}-${axis}` });
1766
1785
  };
1767
1786
 
1787
+ // src/components/Switch/index.tsx
1788
+ var import_react11 = require("react");
1789
+
1768
1790
  // src/components/Switch/styles.ts
1769
1791
  var Switch = __toESM(require("@radix-ui/react-switch"));
1770
1792
  var Wrapper3 = styled("div", {
@@ -1861,7 +1883,7 @@ var Span4 = styled("span", {
1861
1883
 
1862
1884
  // src/components/Switch/index.tsx
1863
1885
  var import_jsx_runtime26 = require("react/jsx-runtime");
1864
- var Switch2 = ({
1886
+ var Switch2 = (0, import_react11.forwardRef)(({
1865
1887
  label,
1866
1888
  checked,
1867
1889
  defaultChecked,
@@ -1870,12 +1892,13 @@ var Switch2 = ({
1870
1892
  required = false,
1871
1893
  id,
1872
1894
  errorMessage
1873
- }) => {
1895
+ }, ref) => {
1874
1896
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1875
1897
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Wrapper3, { hasError: !!errorMessage, children: [
1876
1898
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1877
1899
  StyledRoot3,
1878
1900
  {
1901
+ ref,
1879
1902
  id,
1880
1903
  checked,
1881
1904
  defaultChecked,
@@ -1890,10 +1913,11 @@ var Switch2 = ({
1890
1913
  ] }),
1891
1914
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Span4, { children: errorMessage })
1892
1915
  ] });
1893
- };
1916
+ });
1917
+ Switch2.displayName = "Switch";
1894
1918
 
1895
1919
  // src/components/Tabs/index.tsx
1896
- var import_react11 = require("react");
1920
+ var import_react12 = require("react");
1897
1921
 
1898
1922
  // src/components/Tabs/styles.ts
1899
1923
  var Tabs = __toESM(require("@radix-ui/react-tabs"));
@@ -1980,17 +2004,17 @@ var TabsItem = ({ children }) => {
1980
2004
  };
1981
2005
  var Tabs2 = ({ defaultValue, colorContent, children }) => {
1982
2006
  const items = [];
1983
- const childrenArray = import_react11.Children.toArray(children);
2007
+ const childrenArray = import_react12.Children.toArray(children);
1984
2008
  childrenArray.forEach((child) => {
1985
- if ((0, import_react11.isValidElement)(child) && child.type === TabsItem) {
2009
+ if ((0, import_react12.isValidElement)(child) && child.type === TabsItem) {
1986
2010
  const { value, label, children: content } = child.props;
1987
2011
  items.push({ value, label, children: content });
1988
2012
  }
1989
2013
  });
1990
- const listRef = (0, import_react11.useRef)(null);
1991
- const rootRef = (0, import_react11.useRef)(null);
1992
- const hasOverflowRef = (0, import_react11.useRef)(false);
1993
- 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);
1994
2018
  const checkOverflow = () => {
1995
2019
  const listEl = listRef.current;
1996
2020
  const rootEl = rootRef.current;
@@ -2005,7 +2029,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2005
2029
  setHasOverflow(overflow);
2006
2030
  }
2007
2031
  };
2008
- (0, import_react11.useLayoutEffect)(() => {
2032
+ (0, import_react12.useLayoutEffect)(() => {
2009
2033
  checkOverflow();
2010
2034
  const resizeObserver = new ResizeObserver(checkOverflow);
2011
2035
  if (listRef.current) {
@@ -2084,6 +2108,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2084
2108
  Tabs2.Item = TabsItem;
2085
2109
 
2086
2110
  // src/components/TextArea.tsx
2111
+ var import_react13 = require("react");
2087
2112
  var import_jsx_runtime28 = require("react/jsx-runtime");
2088
2113
  var Wrapper4 = styled("div", {
2089
2114
  display: "flex",
@@ -2159,14 +2184,24 @@ var Span5 = styled("span", {
2159
2184
  marginTop: "2px",
2160
2185
  marginBottom: "$6"
2161
2186
  });
2162
- var TextArea = ({ label, id, htmlFor, errorMessage, ...props }) => {
2163
- const textAreaId = id || htmlFor || `textarea-${crypto.randomUUID()}`;
2164
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Wrapper4, { children: [
2165
- label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledLabel2, { htmlFor: textAreaId, children: label }),
2166
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TextAreaElement, { id: textAreaId, ...props, hasError: !!errorMessage }),
2167
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Span5, { children: errorMessage })
2168
- ] });
2169
- };
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
+ );
2170
2205
  TextArea.displayName = "TextArea";
2171
2206
 
2172
2207
  // src/components/Tooltip/index.tsx
@@ -2325,7 +2360,7 @@ var Loader = ({ show, fullscreen = false }) => {
2325
2360
  Loader.displayName = "Loader";
2326
2361
 
2327
2362
  // src/components/MaskedInput/index.tsx
2328
- var import_react12 = require("react");
2363
+ var import_react14 = require("react");
2329
2364
 
2330
2365
  // src/components/MaskedInput/utils.ts
2331
2366
  var MAX_LENGTHS = {
@@ -2390,10 +2425,10 @@ var applyMask = (value, maskType) => {
2390
2425
 
2391
2426
  // src/components/MaskedInput/index.tsx
2392
2427
  var import_jsx_runtime31 = require("react/jsx-runtime");
2393
- var MaskedInput = (0, import_react12.forwardRef)(
2428
+ var MaskedInput = (0, import_react14.forwardRef)(
2394
2429
  ({ maskType, onChange, ...props }, ref) => {
2395
- const [value, setValue] = (0, import_react12.useState)("");
2396
- const inputRef = (0, import_react12.useRef)(null);
2430
+ const [value, setValue] = (0, import_react14.useState)("");
2431
+ const inputRef = (0, import_react14.useRef)(null);
2397
2432
  const handleChange = (e) => {
2398
2433
  const { value: inputValue, selectionStart } = e.target;
2399
2434
  const isBackspace = value.length > inputValue.length;
@@ -2440,8 +2475,112 @@ var MaskedInput = (0, import_react12.forwardRef)(
2440
2475
  );
2441
2476
  MaskedInput.displayName = "MaskedInput";
2442
2477
 
2443
- // src/components/Box.tsx
2478
+ // src/components/Dropdown/index.tsx
2479
+ var import_react15 = __toESM(require("react"));
2480
+ var DropdownMenu2 = __toESM(require("@radix-ui/react-dropdown-menu"));
2481
+
2482
+ // src/components/Dropdown/styles.ts
2483
+ var DropdownMenu = __toESM(require("@radix-ui/react-dropdown-menu"));
2484
+ var slideUpAndFade2 = keyframes({
2485
+ "0%": { opacity: 0, transform: "translateY(2px)" },
2486
+ "100%": { opacity: 1, transform: "translateY(0)" }
2487
+ });
2488
+ var slideRightAndFade2 = keyframes({
2489
+ "0%": { opacity: 0, transform: "translateX(-2px)" },
2490
+ "100%": { opacity: 1, transform: "translateX(0)" }
2491
+ });
2492
+ var slideDownAndFade2 = keyframes({
2493
+ "0%": { opacity: 0, transform: "translateY(-2px)" },
2494
+ "100%": { opacity: 1, transform: "translateY(0)" }
2495
+ });
2496
+ var slideLeftAndFade2 = keyframes({
2497
+ "0%": { opacity: 0, transform: "translateX(2px)" },
2498
+ "100%": { opacity: 1, transform: "translateX(0)" }
2499
+ });
2500
+ var StyledContent2 = styled(DropdownMenu.Content, {
2501
+ minWidth: 100,
2502
+ backgroundColor: "$white",
2503
+ borderRadius: "$md",
2504
+ padding: "$2",
2505
+ boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
2506
+ animationDuration: "400ms",
2507
+ animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
2508
+ willChange: "transform, opacity",
2509
+ '&[data-state="open"]': {
2510
+ '&[data-side="top"]': { animationName: slideDownAndFade2 },
2511
+ '&[data-side="right"]': { animationName: slideLeftAndFade2 },
2512
+ '&[data-side="bottom"]': { animationName: slideUpAndFade2 },
2513
+ '&[data-side="left"]': { animationName: slideRightAndFade2 }
2514
+ }
2515
+ });
2516
+ var itemStyles = {
2517
+ all: "unset",
2518
+ fontSize: "$sm",
2519
+ lineHeight: 1,
2520
+ color: "$black",
2521
+ borderRadius: "$sm",
2522
+ display: "flex",
2523
+ alignItems: "center",
2524
+ height: 25,
2525
+ padding: "0 $2",
2526
+ position: "relative",
2527
+ paddingLeft: "$5",
2528
+ userSelect: "none",
2529
+ "&[data-disabled]": {
2530
+ color: "$gray_mid",
2531
+ pointerEvents: "none"
2532
+ },
2533
+ "&[data-highlighted]": {
2534
+ color: "$clickpalm_light",
2535
+ cursor: "pointer"
2536
+ },
2537
+ button: {
2538
+ all: "unset",
2539
+ width: "100%",
2540
+ textAlign: "left"
2541
+ }
2542
+ };
2543
+ var StyledItem2 = styled(DropdownMenu.Item, { ...itemStyles });
2544
+ var StyledSeparator = styled(DropdownMenu.Separator, {
2545
+ height: "1px",
2546
+ backgroundColor: "$gray_light",
2547
+ margin: "$2"
2548
+ });
2549
+ var IconButton = styled("button", {
2550
+ all: "unset",
2551
+ fontFamily: "inherit",
2552
+ borderRadius: "100%",
2553
+ height: 35,
2554
+ width: 35,
2555
+ display: "inline-flex",
2556
+ alignItems: "center",
2557
+ justifyContent: "center",
2558
+ color: "$clickpalm_light",
2559
+ backgroundColor: "transparent"
2560
+ });
2561
+
2562
+ // src/components/Dropdown/index.tsx
2444
2563
  var import_jsx_runtime32 = require("react/jsx-runtime");
2564
+ var Dropdown = ({ children }) => {
2565
+ const childrenArray = import_react15.Children.toArray(children);
2566
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(DropdownMenu2.Root, { children: [
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 }) }) }),
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: [
2569
+ child,
2570
+ index < childrenArray.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownSeparator, {})
2571
+ ] }, index)) }) })
2572
+ ] });
2573
+ };
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
+ });
2578
+ Dropdown.displayName = "Dropdown";
2579
+ DropdownItem.displayName = "DropdownItem";
2580
+ DropdownSeparator.displayName = "DropdownSeparator";
2581
+
2582
+ // src/components/Box.tsx
2583
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2445
2584
  var StyledBox = styled("div", {
2446
2585
  padding: "$5",
2447
2586
  borderRadius: "$md",
@@ -2463,15 +2602,16 @@ var StyledBox = styled("div", {
2463
2602
  }
2464
2603
  });
2465
2604
  var Box = (props) => {
2466
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledBox, { ...props });
2605
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledBox, { ...props });
2467
2606
  };
2468
2607
  Box.displayName = "Box";
2469
2608
 
2470
2609
  // src/components/Paragraph.tsx
2471
- var import_jsx_runtime33 = require("react/jsx-runtime");
2610
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2472
2611
  var StyledParagraph = styled("p", {
2473
2612
  fontFamily: "$default",
2474
2613
  lineHeight: "$short",
2614
+ color: "$black",
2475
2615
  margin: 0,
2476
2616
  variants: {
2477
2617
  size: {
@@ -2509,13 +2649,13 @@ var StyledParagraph = styled("p", {
2509
2649
  }
2510
2650
  });
2511
2651
  var Paragraph = (props) => {
2512
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledParagraph, { ...props });
2652
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledParagraph, { ...props });
2513
2653
  };
2514
2654
  Paragraph.displayName = "Paragraph";
2515
2655
 
2516
2656
  // src/components/Heading.tsx
2517
- var import_react13 = require("react");
2518
- var import_jsx_runtime34 = require("react/jsx-runtime");
2657
+ var import_react16 = require("react");
2658
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2519
2659
  var StyledHeading = styled("h2", {
2520
2660
  fontFamily: "$default",
2521
2661
  lineHeight: "$shorter",
@@ -2537,15 +2677,15 @@ var StyledHeading = styled("h2", {
2537
2677
  size: "md"
2538
2678
  }
2539
2679
  });
2540
- var Heading = (0, import_react13.forwardRef)(function Heading2({ children, ...props }, ref) {
2541
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledHeading, { ref, ...props, children });
2680
+ var Heading = (0, import_react16.forwardRef)(function Heading2({ children, ...props }, ref) {
2681
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledHeading, { ref, ...props, children });
2542
2682
  });
2543
2683
  Heading.displayName = "Heading";
2544
2684
 
2545
2685
  // src/components/Select/index.tsx
2546
2686
  var import_react_icons2 = require("@radix-ui/react-icons");
2547
2687
  var CustomSelect = __toESM(require("@radix-ui/react-select"));
2548
- var import_react14 = require("react");
2688
+ var import_react17 = require("react");
2549
2689
 
2550
2690
  // src/components/Select/styles.ts
2551
2691
  var Select = __toESM(require("@radix-ui/react-select"));
@@ -2574,6 +2714,7 @@ var StyledTrigger = styled(Select.Trigger, {
2574
2714
  fontSize: "$md",
2575
2715
  backgroundColor: "white",
2576
2716
  cursor: "pointer",
2717
+ color: "$black",
2577
2718
  "&[data-placeholder]": {
2578
2719
  color: "$gray_mid"
2579
2720
  },
@@ -2598,25 +2739,27 @@ var StyledTrigger = styled(Select.Trigger, {
2598
2739
  }
2599
2740
  }
2600
2741
  });
2601
- var StyledContent2 = styled(Select.Content, {
2742
+ var StyledContent3 = styled(Select.Content, {
2602
2743
  overflow: "hidden",
2603
2744
  backgroundColor: "$gray_background",
2604
2745
  borderRadius: "$md",
2605
2746
  boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
2606
- zIndex: 10,
2747
+ zIndex: 103,
2607
2748
  width: "var(--radix-select-trigger-width)",
2608
- maxHeight: "var(--radix-select-content-available-height)"
2749
+ maxHeight: "var(--radix-select-content-available-height)",
2750
+ fontWeight: "$regular"
2609
2751
  });
2610
2752
  var StyledViewport = styled(Select.Viewport, {
2611
2753
  padding: "4px"
2612
2754
  });
2613
- var StyledItem2 = styled(Select.Item, {
2755
+ var StyledItem3 = styled(Select.Item, {
2614
2756
  position: "relative",
2615
2757
  fontSize: "$md",
2758
+ fontWeight: "$regular",
2616
2759
  padding: "14px 12px",
2617
2760
  color: "$black",
2618
2761
  cursor: "pointer",
2619
- "&[data-highlighted]": {
2762
+ "&[data-highlighted], &:focus, &:hover": {
2620
2763
  outline: "none",
2621
2764
  color: "$clickpalm_light"
2622
2765
  },
@@ -2662,54 +2805,51 @@ var Span6 = styled("span", {
2662
2805
  });
2663
2806
 
2664
2807
  // src/components/Select/index.tsx
2665
- var import_jsx_runtime35 = require("react/jsx-runtime");
2666
- function Select2({
2667
- value,
2668
- onValueChange,
2669
- items,
2670
- placeholder = "Selecione",
2671
- label,
2672
- errorMessage,
2673
- ...rest
2674
- }) {
2675
- const [open, setOpen] = (0, import_react14.useState)(false);
2676
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(StyledWrapper4, { children: [
2677
- label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label3, { children: label }),
2678
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2679
- CustomSelect.Root,
2680
- {
2681
- value,
2682
- onValueChange,
2683
- onOpenChange: setOpen,
2684
- ...rest,
2685
- children: [
2686
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, children: [
2687
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomSelect.Value, { placeholder }),
2688
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledIcon, { open, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2689
- ] }),
2690
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Span6, { children: errorMessage }),
2691
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomSelect.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2692
- StyledContent2,
2693
- {
2694
- side: "bottom",
2695
- align: "start",
2696
- position: "popper",
2697
- children: [
2698
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomSelect.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons2.TriangleUpIcon, {}) }),
2699
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledViewport, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledItem2, { value: item.value, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomSelect.ItemText, { children: item.label }) }, item.value)) }),
2700
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomSelect.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_icons2.TriangleDownIcon, {}) })
2701
- ]
2702
- }
2703
- ) })
2704
- ]
2705
- }
2706
- )
2707
- ] });
2708
- }
2808
+ var import_jsx_runtime36 = require("react/jsx-runtime");
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
+ );
2709
2849
  Select2.displayName = "Select";
2710
2850
 
2711
2851
  // src/components/LabelledValue/index.tsx
2712
- var import_react15 = require("react");
2852
+ var import_react18 = require("react");
2713
2853
 
2714
2854
  // src/components/LabelledValue/styles.ts
2715
2855
  var Container = styled("div", {
@@ -2770,22 +2910,22 @@ var Value2 = styled("div", {
2770
2910
  });
2771
2911
 
2772
2912
  // src/components/LabelledValue/index.tsx
2773
- var import_jsx_runtime36 = require("react/jsx-runtime");
2913
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2774
2914
  function LabelledValue({ position = "vertical", withRow = false, children }) {
2775
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Container, { position, children: import_react15.Children.map(children, (child) => {
2776
- if ((0, import_react15.isValidElement)(child)) {
2777
- return (0, import_react15.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 });
2778
2918
  }
2779
2919
  return child;
2780
2920
  }) });
2781
2921
  }
2782
- function Item3({ label, value, position = "vertical", withRow = false }) {
2783
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(ItemWrapper, { position, withRow, children: [
2784
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label4, { children: label }),
2785
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Value2, { children: value })
2922
+ function Item4({ label, value, position = "vertical", withRow = false }) {
2923
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(ItemWrapper, { position, withRow, children: [
2924
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label4, { children: label }),
2925
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Value2, { children: value })
2786
2926
  ] });
2787
2927
  }
2788
- LabelledValue.Item = Item3;
2928
+ LabelledValue.Item = Item4;
2789
2929
 
2790
2930
  // src/components/OneTimePassword/index.tsx
2791
2931
  var OneTimePasswordField2 = __toESM(require("@radix-ui/react-one-time-password-field"));
@@ -2814,7 +2954,8 @@ var StyledLabel3 = styled(OneTimePasswordField.Root, {
2814
2954
  display: "flex",
2815
2955
  justifyContent: "center",
2816
2956
  alignItems: "center",
2817
- marginBottom: "$5"
2957
+ marginBottom: "$5",
2958
+ color: "$black"
2818
2959
  });
2819
2960
  var StyledInput = styled(OneTimePasswordField.Input, {
2820
2961
  all: "unset",
@@ -2853,11 +2994,11 @@ var Span7 = styled("span", {
2853
2994
  });
2854
2995
 
2855
2996
  // src/components/OneTimePassword/index.tsx
2856
- var import_jsx_runtime37 = require("react/jsx-runtime");
2997
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2857
2998
  var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...rootProps }) => {
2858
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Container2, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(StyledWrapper5, { children: [
2859
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledLabel3, { children: label }),
2860
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2999
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Container2, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(StyledWrapper5, { children: [
3000
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(StyledLabel3, { children: label }),
3001
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2861
3002
  StyledRoot4,
2862
3003
  {
2863
3004
  value,
@@ -2865,19 +3006,19 @@ var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...r
2865
3006
  ...rootProps,
2866
3007
  style: { "--otp-length": length },
2867
3008
  children: [
2868
- Array.from({ length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledInput, {}, index)),
2869
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(OneTimePasswordField2.HiddenInput, {})
3009
+ Array.from({ length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(StyledInput, {}, index)),
3010
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(OneTimePasswordField2.HiddenInput, {})
2870
3011
  ]
2871
3012
  }
2872
3013
  ),
2873
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Span7, { children: errorMessage })
3014
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Span7, { children: errorMessage })
2874
3015
  ] }) });
2875
3016
  };
2876
3017
  OneTimePassword.displayName = "OneTimePasswordInput";
2877
3018
 
2878
3019
  // src/components/Toast/index.tsx
2879
3020
  var ToastPrimitive2 = __toESM(require("@radix-ui/react-toast"));
2880
- var React3 = __toESM(require("react"));
3021
+ var React4 = __toESM(require("react"));
2881
3022
 
2882
3023
  // src/components/Toast/styles.ts
2883
3024
  var ToastPrimitive = __toESM(require("@radix-ui/react-toast"));
@@ -2974,7 +3115,7 @@ var ToastViewport = styled(ToastPrimitive.Viewport, {
2974
3115
  outline: "none",
2975
3116
  zIndex: 9999,
2976
3117
  "@lg": {
2977
- maxWidth: "900px"
3118
+ maxWidth: "700px"
2978
3119
  }
2979
3120
  });
2980
3121
  var progress = keyframes({
@@ -3040,11 +3181,11 @@ var toast = {
3040
3181
  };
3041
3182
 
3042
3183
  // src/components/Toast/index.tsx
3043
- var import_jsx_runtime38 = require("react/jsx-runtime");
3184
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3044
3185
  var Toast = () => {
3045
- const [messages, setMessages] = React3.useState([]);
3046
- const [paused, setPaused] = React3.useState(false);
3047
- React3.useEffect(() => {
3186
+ const [messages, setMessages] = React4.useState([]);
3187
+ const [paused, setPaused] = React4.useState(false);
3188
+ React4.useEffect(() => {
3048
3189
  const handleNewToast = (msg) => {
3049
3190
  setMessages((prev) => [...prev, msg]);
3050
3191
  };
@@ -3056,8 +3197,8 @@ var Toast = () => {
3056
3197
  const removeToast = (id) => {
3057
3198
  setMessages((prev) => prev.filter((msg) => msg.id !== id));
3058
3199
  };
3059
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(ToastPrimitive2.Provider, { swipeDirection: "right", children: [
3060
- messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3200
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(ToastPrimitive2.Provider, { swipeDirection: "right", children: [
3201
+ messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3061
3202
  ToastRoot,
3062
3203
  {
3063
3204
  open: true,
@@ -3070,11 +3211,11 @@ var Toast = () => {
3070
3211
  onPause: () => setPaused(true),
3071
3212
  onResume: () => setPaused(false),
3072
3213
  children: [
3073
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(ToastContent, { children: [
3074
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastTitle, { children: message.title }),
3075
- message.description && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastDescription, { children: message.description })
3214
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(ToastContent, { children: [
3215
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToastTitle, { children: message.title }),
3216
+ message.description && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToastDescription, { children: message.description })
3076
3217
  ] }),
3077
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastAction, { altText: "Fechar", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3218
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToastAction, { altText: "Fechar", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3078
3219
  "button",
3079
3220
  {
3080
3221
  style: {
@@ -3084,15 +3225,15 @@ var Toast = () => {
3084
3225
  alignItems: "center"
3085
3226
  },
3086
3227
  onClick: () => removeToast(message.id),
3087
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { name: "Closed", size: 16, height: 14, width: 14 })
3228
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { name: "Closed", size: 16, height: 14, width: 14 })
3088
3229
  }
3089
3230
  ) }),
3090
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastProgress, { paused, variant: message.variant })
3231
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToastProgress, { paused, variant: message.variant })
3091
3232
  ]
3092
3233
  },
3093
3234
  message.id
3094
3235
  )),
3095
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastViewport, {})
3236
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ToastViewport, {})
3096
3237
  ] });
3097
3238
  };
3098
3239
 
@@ -3135,7 +3276,6 @@ var StepItem = styled("div", {
3135
3276
  });
3136
3277
  var StepCircle = styled("div", {
3137
3278
  position: "relative",
3138
- zIndex: 990,
3139
3279
  width: "var(--circle-size)",
3140
3280
  height: "var(--circle-size)",
3141
3281
  borderRadius: "50%",
@@ -3328,22 +3468,22 @@ var StepLabel = styled("span", {
3328
3468
  });
3329
3469
 
3330
3470
  // src/components/MultiStep/index.tsx
3331
- var import_jsx_runtime39 = require("react/jsx-runtime");
3471
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3332
3472
  var MultiStep = ({
3333
3473
  steps,
3334
3474
  currentStep,
3335
3475
  orientation = "horizontal",
3336
3476
  variant
3337
3477
  }) => {
3338
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3478
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3339
3479
  Wrapper5,
3340
3480
  {
3341
3481
  orientation,
3342
3482
  children: steps.map((step, index) => {
3343
3483
  const isFirst = index === 0;
3344
3484
  const isLast = index === steps.length - 1;
3345
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(StepItem, { orientation, children: [
3346
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3485
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(StepItem, { orientation, children: [
3486
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3347
3487
  StepCircle,
3348
3488
  {
3349
3489
  orientation,
@@ -3354,7 +3494,7 @@ var MultiStep = ({
3354
3494
  children: index + 1
3355
3495
  }
3356
3496
  ),
3357
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3497
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3358
3498
  StepLabel,
3359
3499
  {
3360
3500
  orientation,
@@ -3370,7 +3510,7 @@ var MultiStep = ({
3370
3510
  MultiStep.displayName = "MultiStep";
3371
3511
 
3372
3512
  // src/components/Carousel/index.tsx
3373
- var import_react16 = require("react");
3513
+ var import_react19 = require("react");
3374
3514
 
3375
3515
  // src/components/Carousel/styles.ts
3376
3516
  var CarouselContainer = styled("div", {
@@ -3476,13 +3616,13 @@ var CarouselItemContainer = styled("div", {
3476
3616
  });
3477
3617
 
3478
3618
  // src/components/Carousel/index.tsx
3479
- var import_jsx_runtime40 = require("react/jsx-runtime");
3619
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3480
3620
  var SWIPE_THRESHOLD = 50;
3481
3621
  var Carousel = ({ title, variant, children }) => {
3482
- const items = import_react16.Children.toArray(children);
3483
- const [activeIndex, setActiveIndex] = (0, import_react16.useState)(0);
3484
- const [touchStartX, setTouchStartX] = (0, import_react16.useState)(null);
3485
- const [touchEndX, setTouchEndX] = (0, import_react16.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);
3486
3626
  const prev = () => {
3487
3627
  setActiveIndex((prevIndex) => prevIndex === 0 ? items.length - 1 : prevIndex - 1);
3488
3628
  };
@@ -3510,18 +3650,18 @@ var Carousel = ({ title, variant, children }) => {
3510
3650
  setTouchStartX(null);
3511
3651
  setTouchEndX(null);
3512
3652
  };
3513
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3653
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3514
3654
  CarouselContainer,
3515
3655
  {
3516
3656
  role: "region",
3517
3657
  "aria-roledescription": "carousel",
3518
3658
  "aria-label": "Carousel Component",
3519
3659
  children: [
3520
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Wrapper6, { variant, children: [
3521
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CarouselHeader, { children: [
3522
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Title2, { children: title }),
3523
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Navigation, { children: [
3524
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3660
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Wrapper6, { variant, children: [
3661
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(CarouselHeader, { children: [
3662
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Title2, { children: title }),
3663
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Navigation, { children: [
3664
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3525
3665
  Button,
3526
3666
  {
3527
3667
  size: "sm",
@@ -3529,10 +3669,10 @@ var Carousel = ({ title, variant, children }) => {
3529
3669
  "aria-label": "Previous Slide",
3530
3670
  onClick: prev,
3531
3671
  tabIndex: 0,
3532
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "TriangleLeft", size: 16, color: variant === "purple" ? "white" : "black" })
3672
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { name: "TriangleLeft", size: 16, color: variant === "purple" ? "white" : "black" })
3533
3673
  }
3534
3674
  ),
3535
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3675
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3536
3676
  Button,
3537
3677
  {
3538
3678
  size: "sm",
@@ -3540,22 +3680,22 @@ var Carousel = ({ title, variant, children }) => {
3540
3680
  "aria-label": "Previous Slide",
3541
3681
  onClick: next,
3542
3682
  tabIndex: 0,
3543
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "TriangleRight", size: 16, color: variant === "purple" ? "white" : "black" })
3683
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { name: "TriangleRight", size: 16, color: variant === "purple" ? "white" : "black" })
3544
3684
  }
3545
3685
  )
3546
3686
  ] })
3547
3687
  ] }),
3548
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "xs" }),
3549
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Hr, { variant }),
3550
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "xs" }),
3551
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3688
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Spacing, { size: "xs" }),
3689
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Hr, { variant }),
3690
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Spacing, { size: "xs" }),
3691
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3552
3692
  CarouselContent,
3553
3693
  {
3554
3694
  onTouchStart,
3555
3695
  onTouchMove,
3556
3696
  onTouchEnd,
3557
3697
  children: items.map(
3558
- (child, index) => (0, import_react16.cloneElement)(child, {
3698
+ (child, index) => (0, import_react19.cloneElement)(child, {
3559
3699
  "aria-hidden": index !== activeIndex,
3560
3700
  style: {
3561
3701
  display: index === activeIndex ? "block" : "none"
@@ -3565,8 +3705,8 @@ var Carousel = ({ title, variant, children }) => {
3565
3705
  }
3566
3706
  )
3567
3707
  ] }),
3568
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "md" }),
3569
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DotsContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dots2, { role: "tablist", "aria-label": "Carousel Pagination", children: items.map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3708
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Spacing, { size: "md" }),
3709
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(DotsContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Dots2, { role: "tablist", "aria-label": "Carousel Pagination", children: items.map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3570
3710
  DotButton,
3571
3711
  {
3572
3712
  active: idx === activeIndex,
@@ -3582,12 +3722,12 @@ var Carousel = ({ title, variant, children }) => {
3582
3722
  }
3583
3723
  );
3584
3724
  };
3585
- var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CarouselItemContainer, { ...props, style: { ...style }, children });
3725
+ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CarouselItemContainer, { ...props, style: { ...style }, children });
3586
3726
  Carousel.Item = CarouselItem;
3587
3727
 
3588
3728
  // src/components/PasswordInput.tsx
3589
- var import_react17 = require("react");
3590
- var import_jsx_runtime41 = require("react/jsx-runtime");
3729
+ var import_react20 = require("react");
3730
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3591
3731
  var ToggleButton = styled("button", {
3592
3732
  all: "unset",
3593
3733
  cursor: "pointer",
@@ -3602,11 +3742,11 @@ var ToggleButton = styled("button", {
3602
3742
  borderRadius: "$sm"
3603
3743
  }
3604
3744
  });
3605
- var PasswordInput = (0, import_react17.forwardRef)(
3745
+ var PasswordInput = (0, import_react20.forwardRef)(
3606
3746
  ({ value, onChange, ...props }, ref) => {
3607
- const [visible, setVisible] = (0, import_react17.useState)(false);
3608
- const innerRef = (0, import_react17.useRef)(null);
3609
- (0, import_react17.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);
3610
3750
  const handleToggleVisibility = () => {
3611
3751
  setVisible((v) => !v);
3612
3752
  setTimeout(() => {
@@ -3616,7 +3756,7 @@ var PasswordInput = (0, import_react17.forwardRef)(
3616
3756
  }
3617
3757
  }, 0);
3618
3758
  };
3619
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3759
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3620
3760
  Input2,
3621
3761
  {
3622
3762
  ...props,
@@ -3624,14 +3764,14 @@ var PasswordInput = (0, import_react17.forwardRef)(
3624
3764
  type: visible ? "text" : "password",
3625
3765
  value,
3626
3766
  onChange,
3627
- suffix: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3767
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3628
3768
  ToggleButton,
3629
3769
  {
3630
3770
  type: "button",
3631
3771
  onClick: handleToggleVisibility,
3632
3772
  onMouseDown: (e) => e.preventDefault(),
3633
3773
  "aria-label": visible ? "Ocultar senha" : "Mostrar senha",
3634
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { name: "EyeClosed", size: 16, color: "black" }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { name: "EyeOpen", size: 16, color: "black" })
3774
+ children: visible ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { name: "EyeClosed", size: 16, color: "black" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { name: "EyeOpen", size: 16, color: "black" })
3635
3775
  }
3636
3776
  )
3637
3777
  }
@@ -3639,8 +3779,109 @@ var PasswordInput = (0, import_react17.forwardRef)(
3639
3779
  }
3640
3780
  );
3641
3781
  PasswordInput.displayName = "PasswordInput";
3782
+
3783
+ // src/components/Accordion/index.tsx
3784
+ var RadixAccordion = __toESM(require("@radix-ui/react-accordion"));
3785
+ var import_react21 = __toESM(require("react"));
3786
+
3787
+ // src/components/Accordion/styles.ts
3788
+ var Accordion = __toESM(require("@radix-ui/react-accordion"));
3789
+ var AccordionContainer = styled(Accordion.Root, {
3790
+ borderRadius: "$md",
3791
+ width: "100%",
3792
+ backgroundColor: "$white",
3793
+ boxShadow: "0 1px 2px $colors$gray_mid",
3794
+ border: "2px solid $colors$gray_mid"
3795
+ });
3796
+ var AccordionItem = styled(Accordion.Item, {
3797
+ overflow: "hidden",
3798
+ marginTop: "1px",
3799
+ "&:first-child": {
3800
+ marginTop: 0,
3801
+ borderTopLeftRadius: "$md",
3802
+ borderTopRightRadius: "$md"
3803
+ },
3804
+ "&:last-child": {
3805
+ borderBottomLeftRadius: "$md",
3806
+ borderBottomRightRadius: "$md"
3807
+ }
3808
+ });
3809
+ var AccordionHeader = styled(Accordion.Header, {
3810
+ display: "flex"
3811
+ });
3812
+ var AccordionTrigger = styled(Accordion.Trigger, {
3813
+ all: "unset",
3814
+ fontFamily: "$default",
3815
+ backgroundColor: "transparent",
3816
+ padding: "0 $5",
3817
+ flex: 1,
3818
+ display: "flex",
3819
+ alignItems: "center",
3820
+ justifyContent: "space-between",
3821
+ fontSize: "$md",
3822
+ lineHeight: "$regular",
3823
+ color: "$black",
3824
+ fontWeight: "$bold",
3825
+ width: "100%",
3826
+ "&:hover": {
3827
+ cursor: "pointer"
3828
+ },
3829
+ "&:focus": {
3830
+ cursor: "pointer",
3831
+ outline: "none"
3832
+ }
3833
+ });
3834
+ var AccordionChevron = styled(Icon, {
3835
+ color: "$ignite_light",
3836
+ transition: "transform 300ms cubic-bezier(0.87, 0, 0.13, 1)",
3837
+ "[data-state=open] &": {
3838
+ transform: "rotate(180deg)"
3839
+ }
3840
+ });
3841
+ var AccordionContent = styled(Accordion.Content, {
3842
+ overflow: "hidden",
3843
+ fontSize: "$md",
3844
+ color: "$black",
3845
+ borderTop: "1px solid $colors$gray_mid",
3846
+ '&[data-state="open"]': {
3847
+ animation: "slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)"
3848
+ },
3849
+ '&[data-state="closed"]': {
3850
+ animation: "slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)"
3851
+ },
3852
+ "> div": {
3853
+ padding: "$5"
3854
+ }
3855
+ });
3856
+ var TriggerContent = styled("div", {
3857
+ display: "flex",
3858
+ alignItems: "center",
3859
+ gap: "$2"
3860
+ });
3861
+ var OptionsButton = styled(Button, {
3862
+ marginRight: "$1"
3863
+ });
3864
+
3865
+ // src/components/Accordion/index.tsx
3866
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3867
+ var Accordion2 = import_react21.default.forwardRef(
3868
+ ({ title, children, dropdownItems }, ref) => {
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,
3872
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(TriggerContent, { children: [
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 }) })
3875
+ ] })
3876
+ ] }) }),
3877
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(AccordionContent, { children }) })
3878
+ ] }) });
3879
+ }
3880
+ );
3881
+ Accordion2.displayName = "Accordion";
3642
3882
  // Annotate the CommonJS export names for ESM import in node:
3643
3883
  0 && (module.exports = {
3884
+ Accordion,
3644
3885
  Avatar,
3645
3886
  Box,
3646
3887
  Button,
@@ -3648,6 +3889,9 @@ PasswordInput.displayName = "PasswordInput";
3648
3889
  Carousel,
3649
3890
  Checkbox,
3650
3891
  Datepicker,
3892
+ Dropdown,
3893
+ DropdownItem,
3894
+ DropdownSeparator,
3651
3895
  Heading,
3652
3896
  Hr,
3653
3897
  Icon,