@clickpalm/react 1.0.0 → 1.1.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
@@ -42,18 +42,21 @@ __export(src_exports, {
42
42
  Icon: () => Icon,
43
43
  Input: () => Input2,
44
44
  LabelledValue: () => LabelledValue,
45
+ Loader: () => Loader,
46
+ MaskedInput: () => MaskedInput,
45
47
  Modal: () => Modal,
46
48
  MultiStep: () => MultiStep,
47
49
  OneTimePassword: () => OneTimePassword,
50
+ Paragraph: () => Paragraph,
48
51
  PasswordInput: () => PasswordInput,
49
52
  ProgressBar: () => ProgressBar,
50
53
  Radio: () => Radio,
51
54
  Select: () => Select2,
52
55
  Spacing: () => Spacing,
53
56
  Span: () => Span5,
57
+ StyledHr: () => StyledHr,
54
58
  Switch: () => Switch2,
55
59
  Tabs: () => Tabs2,
56
- Text: () => Text,
57
60
  TextArea: () => TextArea,
58
61
  TextAreaElement: () => TextAreaElement,
59
62
  Toast: () => Toast,
@@ -343,7 +346,7 @@ var StyledButton = styled("button", {
343
346
  primary: {
344
347
  color: "$white",
345
348
  backgroundImage: "linear-gradient(to bottom, $ignite_light, $ignite_dark)",
346
- "&:not(:disabled):hover": {
349
+ "&:not(:disabled):is(:hover, :focus)": {
347
350
  background: "$ignite_dark"
348
351
  },
349
352
  "&:disabled": {
@@ -353,7 +356,7 @@ var StyledButton = styled("button", {
353
356
  secondary: {
354
357
  color: "$clickpalm_mid",
355
358
  border: "2px solid $ignite_light",
356
- "&:not(:disabled):hover": {
359
+ "&:not(:disabled):is(:hover, :focus)": {
357
360
  border: "2px solid $ignite_dark"
358
361
  },
359
362
  "&:disabled": {
@@ -363,7 +366,7 @@ var StyledButton = styled("button", {
363
366
  tertiary: {
364
367
  color: "$ignite_light",
365
368
  border: "3px solid $clickpalm_mid",
366
- "&:not(:disabled):hover": {
369
+ "&:not(:disabled):is(:hover, :focus)": {
367
370
  color: "$ignite_dark"
368
371
  },
369
372
  "&:disabled": {
@@ -690,6 +693,32 @@ var Check = (props) => {
690
693
  );
691
694
  };
692
695
 
696
+ // src/components/Icon/Svgs/Copy.tsx
697
+ var import_jsx_runtime15 = require("react/jsx-runtime");
698
+ var Copy = (props) => {
699
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
700
+ "svg",
701
+ {
702
+ width: "18",
703
+ height: "19",
704
+ viewBox: "0 0 18 19",
705
+ fill: "none",
706
+ xmlns: "http://www.w3.org/2000/svg",
707
+ ...props,
708
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
709
+ "path",
710
+ {
711
+ d: "M3.4 11.9547H2.6C2.17565 11.9547 1.76869 11.7861 1.46863 11.4861C1.16857 11.186 1 10.779 1 10.3547V3.15469C1 2.73034 1.16857 2.32337 1.46863 2.02332C1.76869 1.72326 2.17565 1.55469 2.6 1.55469H9.8C10.2243 1.55469 10.6313 1.72326 10.9314 2.02332C11.2314 2.32337 11.4 2.73034 11.4 3.15469V3.95469M8.2 7.15469H15.4C16.2837 7.15469 17 7.87103 17 8.75469V15.9547C17 16.8383 16.2837 17.5547 15.4 17.5547H8.2C7.31634 17.5547 6.6 16.8383 6.6 15.9547V8.75469C6.6 7.87103 7.31634 7.15469 8.2 7.15469Z",
712
+ stroke: "currentColor",
713
+ "stroke-width": "2",
714
+ "stroke-linecap": "round",
715
+ "stroke-linejoin": "round"
716
+ }
717
+ )
718
+ }
719
+ );
720
+ };
721
+
693
722
  // src/components/Icon/icons.ts
694
723
  var iconMap = {
695
724
  TriangleDown: import_react_icons.TriangleDownIcon,
@@ -709,12 +738,13 @@ var iconMap = {
709
738
  Search,
710
739
  ChevronLeft,
711
740
  ChevronRight,
712
- Check
741
+ Check,
742
+ Copy
713
743
  };
714
744
 
715
745
  // src/components/Icon/index.tsx
716
746
  var import_react3 = require("react");
717
- var import_jsx_runtime15 = require("react/jsx-runtime");
747
+ var import_jsx_runtime16 = require("react/jsx-runtime");
718
748
  var colorMap = {
719
749
  black: "#000000",
720
750
  green: "#78CB63",
@@ -727,7 +757,7 @@ function Icon({ name, size = 24, color = "black", ...rest }) {
727
757
  return null;
728
758
  }
729
759
  const fillColor = (0, import_react3.useMemo)(() => colorMap[color], [color]);
730
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
760
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
731
761
  IconComponent,
732
762
  {
733
763
  width: size,
@@ -934,7 +964,7 @@ var StyledLabel = styled("label", {
934
964
  });
935
965
 
936
966
  // src/components/Calendar/index.tsx
937
- var import_jsx_runtime16 = require("react/jsx-runtime");
967
+ var import_jsx_runtime17 = require("react/jsx-runtime");
938
968
  calendarStyles();
939
969
  var Calendar2 = ({ label, onChange }) => {
940
970
  const [selected, setSelected] = (0, import_react4.useState)(void 0);
@@ -952,9 +982,9 @@ var Calendar2 = ({ label, onChange }) => {
952
982
  setMonth(selected);
953
983
  }
954
984
  }, [selected]);
955
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
956
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledLabel, { children: label }),
957
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
985
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
986
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledLabel, { children: label }),
987
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
958
988
  import_react_day_picker.DayPicker,
959
989
  {
960
990
  className: !open ? "calendar-root-collapsed" : "",
@@ -984,27 +1014,30 @@ var Calendar2 = ({ label, onChange }) => {
984
1014
  components: {
985
1015
  MonthCaption: ({ calendarMonth, displayIndex, ...safeprops }) => {
986
1016
  const displayMonth = calendarMonth.date;
987
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { ...safeprops, children: [
988
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1017
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { ...safeprops, children: [
1018
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
989
1019
  Button,
990
1020
  {
991
1021
  variant: "secondary",
992
1022
  size: "sm",
993
1023
  onClick: () => setOpen(!open),
994
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledButton2, { isOpen: open, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { name: "TriangleUp", size: 16 }) })
1024
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledButton2, { isOpen: open, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "TriangleUp", size: 16 }) })
995
1025
  }
996
1026
  ) }),
997
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "calendar-month_caption", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "calendar-caption_label", role: "heading", "aria-level": 2, children: (0, import_date_fns.format)(displayMonth, "MMMM 'de' yyyy", { locale: import_locale.ptBR }).replace(/^./, (c) => c.toUpperCase()) }) })
1027
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "calendar-month_caption", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "calendar-caption_label", role: "heading", "aria-level": 2, children: (0, import_date_fns.format)(displayMonth, "MMMM 'de' yyyy", { locale: import_locale.ptBR }).replace(/^./, (c) => c.toUpperCase()) }) })
998
1028
  ] });
999
1029
  },
1000
- PreviousMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { name: "TriangleLeft", size: 16 }) }),
1001
- NextMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { name: "TriangleRight", size: 16 }) })
1030
+ PreviousMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "TriangleLeft", size: 16 }) }),
1031
+ NextMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "TriangleRight", size: 16 }) })
1002
1032
  }
1003
1033
  }
1004
1034
  )
1005
1035
  ] });
1006
1036
  };
1007
1037
 
1038
+ // src/components/Checkbox/index.tsx
1039
+ var import_react5 = require("react");
1040
+
1008
1041
  // src/components/Checkbox/styles.ts
1009
1042
  var Checkbox = __toESM(require("@radix-ui/react-checkbox"));
1010
1043
  var StyledWrapper = styled("div", {
@@ -1118,36 +1151,39 @@ var Span = styled("span", {
1118
1151
  });
1119
1152
 
1120
1153
  // src/components/Checkbox/index.tsx
1121
- var import_jsx_runtime17 = require("react/jsx-runtime");
1122
- function Checkbox2({ label, checked, onCheckedChange, errorMessage, ...rest }) {
1123
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1124
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(StyledWrapper, { hasError: !!errorMessage, children: [
1125
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1126
- CheckboxContainer,
1127
- {
1128
- checked,
1129
- onCheckedChange,
1130
- hasError: !!errorMessage,
1131
- ...rest,
1132
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "Check", size: 16 }) })
1133
- }
1134
- ),
1135
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckboxLabel, { children: label })
1136
- ] }),
1137
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Span, { children: errorMessage })
1138
- ] });
1139
- }
1154
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1155
+ var Checkbox2 = (0, import_react5.forwardRef)(
1156
+ ({ label, checked, onCheckedChange, errorMessage, ...rest }, ref) => {
1157
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1158
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(StyledWrapper, { hasError: !!errorMessage, children: [
1159
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1160
+ CheckboxContainer,
1161
+ {
1162
+ ref,
1163
+ checked,
1164
+ onCheckedChange,
1165
+ hasError: !!errorMessage,
1166
+ ...rest,
1167
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { name: "Check", size: 16 }) })
1168
+ }
1169
+ ),
1170
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CheckboxLabel, { children: label })
1171
+ ] }),
1172
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Span, { children: errorMessage })
1173
+ ] });
1174
+ }
1175
+ );
1140
1176
  Checkbox2.displayName = "Checkbox";
1141
1177
 
1142
1178
  // src/components/Datepicker/index.tsx
1143
1179
  var import_date_fns2 = require("date-fns");
1144
1180
  var import_locale2 = require("date-fns/locale");
1145
- var import_react6 = require("react");
1181
+ var import_react7 = require("react");
1146
1182
  var import_react_day_picker2 = require("react-day-picker");
1147
1183
  var import_style2 = require("react-day-picker/dist/style.css");
1148
1184
 
1149
1185
  // src/components/Input/index.tsx
1150
- var import_react5 = __toESM(require("react"));
1186
+ var import_react6 = __toESM(require("react"));
1151
1187
 
1152
1188
  // src/components/Input/styles.ts
1153
1189
  var StyledWrapper2 = styled("div", {
@@ -1244,23 +1280,23 @@ var Span2 = styled("span", {
1244
1280
  });
1245
1281
 
1246
1282
  // src/components/Input/index.tsx
1247
- var import_jsx_runtime18 = require("react/jsx-runtime");
1248
- var Input2 = (0, import_react5.forwardRef)(
1283
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1284
+ var Input2 = (0, import_react6.forwardRef)(
1249
1285
  ({ prefix, suffix, label, errorMessage, noMargin = false, ...props }, forwardedRef) => {
1250
- const localInputRef = (0, import_react5.useRef)(null);
1286
+ const localInputRef = (0, import_react6.useRef)(null);
1251
1287
  const inputRef = forwardedRef || localInputRef;
1252
1288
  const handleContainerClick = () => {
1253
1289
  inputRef?.current?.focus();
1254
1290
  };
1255
1291
  const isButtonElement = (node) => {
1256
- if (!import_react5.default.isValidElement(node))
1292
+ if (!import_react6.default.isValidElement(node))
1257
1293
  return false;
1258
1294
  const type = node.type;
1259
1295
  return type?.displayName === "Button";
1260
1296
  };
1261
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(StyledWrapper2, { children: [
1262
- label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Label, { children: label }),
1263
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1297
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(StyledWrapper2, { children: [
1298
+ label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Label, { children: label }),
1299
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1264
1300
  TextInputContainer,
1265
1301
  {
1266
1302
  hasButtonSuffix: isButtonElement(suffix),
@@ -1268,13 +1304,13 @@ var Input2 = (0, import_react5.forwardRef)(
1268
1304
  hasError: !!errorMessage,
1269
1305
  onClick: handleContainerClick,
1270
1306
  children: [
1271
- !!prefix && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Prefix, { children: prefix }),
1272
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Input, { ref: inputRef, ...props }),
1273
- !!suffix && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Suffix, { children: suffix })
1307
+ !!prefix && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Prefix, { children: prefix }),
1308
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Input, { ref: inputRef, ...props }),
1309
+ !!suffix && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Suffix, { children: suffix })
1274
1310
  ]
1275
1311
  }
1276
1312
  ),
1277
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Span2, { children: errorMessage })
1313
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Span2, { children: errorMessage })
1278
1314
  ] });
1279
1315
  }
1280
1316
  );
@@ -1342,14 +1378,14 @@ var datePickerStyles = globalCss({
1342
1378
  });
1343
1379
 
1344
1380
  // src/components/Datepicker/index.tsx
1345
- var import_jsx_runtime19 = require("react/jsx-runtime");
1381
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1346
1382
  datePickerStyles();
1347
1383
  var Datepicker = ({ label, value, onChange }) => {
1348
- const [selected, setSelected] = (0, import_react6.useState)(void 0);
1349
- const [month, setMonth] = (0, import_react6.useState)(/* @__PURE__ */ new Date());
1350
- const [open, setOpen] = (0, import_react6.useState)(false);
1351
- const inputRef = (0, import_react6.useRef)(null);
1352
- const calendarRef = (0, import_react6.useRef)(null);
1384
+ const [selected, setSelected] = (0, import_react7.useState)(void 0);
1385
+ const [month, setMonth] = (0, import_react7.useState)(/* @__PURE__ */ new Date());
1386
+ const [open, setOpen] = (0, import_react7.useState)(false);
1387
+ const inputRef = (0, import_react7.useRef)(null);
1388
+ const calendarRef = (0, import_react7.useRef)(null);
1353
1389
  const handleDaySelect = (date) => {
1354
1390
  setSelected(date);
1355
1391
  if (date) {
@@ -1358,7 +1394,7 @@ var Datepicker = ({ label, value, onChange }) => {
1358
1394
  }
1359
1395
  setOpen(false);
1360
1396
  };
1361
- (0, import_react6.useEffect)(() => {
1397
+ (0, import_react7.useEffect)(() => {
1362
1398
  const handleClickOutside = (event) => {
1363
1399
  if (calendarRef.current && !calendarRef.current.contains(event.target) && inputRef.current && !inputRef.current.contains(event.target)) {
1364
1400
  setOpen(false);
@@ -1367,13 +1403,13 @@ var Datepicker = ({ label, value, onChange }) => {
1367
1403
  document.addEventListener("mousedown", handleClickOutside);
1368
1404
  return () => document.removeEventListener("mousedown", handleClickOutside);
1369
1405
  }, []);
1370
- (0, import_react6.useEffect)(() => {
1406
+ (0, import_react7.useEffect)(() => {
1371
1407
  if (!open && selected) {
1372
1408
  setMonth(selected);
1373
1409
  }
1374
1410
  }, [open, selected]);
1375
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
1376
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1411
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
1412
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1377
1413
  Input2,
1378
1414
  {
1379
1415
  ref: inputRef,
@@ -1383,10 +1419,10 @@ var Datepicker = ({ label, value, onChange }) => {
1383
1419
  value: value || "",
1384
1420
  noMargin: true,
1385
1421
  readOnly: true,
1386
- suffix: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "Calendar", size: 16 })
1422
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "Calendar", size: 16 })
1387
1423
  }
1388
1424
  ),
1389
- open && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1425
+ open && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1390
1426
  "div",
1391
1427
  {
1392
1428
  ref: calendarRef,
@@ -1398,7 +1434,7 @@ var Datepicker = ({ label, value, onChange }) => {
1398
1434
  boxShadow: "0 2px 8px rgba(0,0,0,0.15)",
1399
1435
  borderRadius: "8px"
1400
1436
  },
1401
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1437
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1402
1438
  import_react_day_picker2.DayPicker,
1403
1439
  {
1404
1440
  mode: "single",
@@ -1420,8 +1456,8 @@ var Datepicker = ({ label, value, onChange }) => {
1420
1456
  }
1421
1457
  },
1422
1458
  components: {
1423
- PreviousMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "TriangleLeft", size: 16 }) }),
1424
- NextMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "TriangleRight", size: 16 }) })
1459
+ PreviousMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "TriangleLeft", size: 16 }) }),
1460
+ NextMonthButton: (props) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "TriangleRight", size: 16 }) })
1425
1461
  }
1426
1462
  }
1427
1463
  )
@@ -1431,7 +1467,9 @@ var Datepicker = ({ label, value, onChange }) => {
1431
1467
  };
1432
1468
 
1433
1469
  // src/components/Hr.tsx
1434
- var Hr = styled("hr", {
1470
+ var import_react8 = require("react");
1471
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1472
+ var StyledHr = styled("hr", {
1435
1473
  border: "none",
1436
1474
  height: "1px",
1437
1475
  width: "100%",
@@ -1446,20 +1484,24 @@ var Hr = styled("hr", {
1446
1484
  }
1447
1485
  }
1448
1486
  });
1487
+ var Hr = (0, import_react8.forwardRef)(function Hr2({ children, ...props }, ref) {
1488
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledHr, { ref, ...props, children });
1489
+ });
1490
+ Hr.displayName = "Hr";
1449
1491
 
1450
1492
  // src/components/Modal/index.tsx
1451
1493
  var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
1452
1494
 
1453
1495
  // src/components/Modal/styles.ts
1454
1496
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
1455
- var import_react7 = require("@stitches/react");
1456
- var StyledOverlay = (0, import_react7.styled)(Dialog.Overlay, {
1497
+ var import_react9 = require("@stitches/react");
1498
+ var StyledOverlay = (0, import_react9.styled)(Dialog.Overlay, {
1457
1499
  backgroundColor: "rgba(0, 0, 0, 0.5)",
1458
1500
  position: "fixed",
1459
1501
  inset: 0,
1460
1502
  zIndex: 999999999
1461
1503
  });
1462
- var StyledContent = (0, import_react7.styled)(Dialog.Content, {
1504
+ var StyledContent = (0, import_react9.styled)(Dialog.Content, {
1463
1505
  position: "fixed",
1464
1506
  top: "50%",
1465
1507
  left: "50%",
@@ -1475,16 +1517,16 @@ var StyledContent = (0, import_react7.styled)(Dialog.Content, {
1475
1517
  zIndex: 1e9,
1476
1518
  fontFamily: "$default"
1477
1519
  });
1478
- var Wrapper = (0, import_react7.styled)("div", {
1520
+ var Wrapper = (0, import_react9.styled)("div", {
1479
1521
  display: "flex",
1480
1522
  justifyContent: "space-between",
1481
1523
  alignItems: "center"
1482
1524
  });
1483
- var StyledTitle = (0, import_react7.styled)(Dialog.Title, {
1525
+ var StyledTitle = (0, import_react9.styled)(Dialog.Title, {
1484
1526
  fontSize: "$lg",
1485
1527
  fontWeight: "bold"
1486
1528
  });
1487
- var StyledClose = (0, import_react7.styled)(Dialog.Close, {
1529
+ var StyledClose = (0, import_react9.styled)(Dialog.Close, {
1488
1530
  all: "unset",
1489
1531
  position: "absolute",
1490
1532
  top: "16px",
@@ -1496,30 +1538,30 @@ var StyledClose = (0, import_react7.styled)(Dialog.Close, {
1496
1538
  color: "#333"
1497
1539
  }
1498
1540
  });
1499
- var StyledDivider = (0, import_react7.styled)("hr", {
1541
+ var StyledDivider = (0, import_react9.styled)("hr", {
1500
1542
  width: "100%",
1501
1543
  border: "none",
1502
1544
  borderTop: "1px solid $gray_mid"
1503
1545
  });
1504
1546
 
1505
1547
  // src/components/Modal/index.tsx
1506
- var import_jsx_runtime20 = require("react/jsx-runtime");
1548
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1507
1549
  var Modal = ({ open, onOpenChange, title, children }) => {
1508
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Dialog2.Portal, { children: [
1509
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledOverlay, {}),
1510
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(StyledContent, { children: [
1511
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Wrapper, { children: [
1512
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTitle, { children: title }),
1513
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { name: "Closed", size: 8 }) }) })
1550
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Dialog2.Portal, { children: [
1551
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledOverlay, {}),
1552
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledContent, { children: [
1553
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Wrapper, { children: [
1554
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledTitle, { children: title }),
1555
+ /* @__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 }) }) })
1514
1556
  ] }),
1515
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledDivider, {}),
1557
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledDivider, {}),
1516
1558
  children
1517
1559
  ] })
1518
1560
  ] }) });
1519
1561
  };
1520
1562
 
1521
1563
  // src/components/ProgressBar/index.tsx
1522
- var import_react8 = require("react");
1564
+ var import_react10 = require("react");
1523
1565
 
1524
1566
  // src/components/ProgressBar/styles.ts
1525
1567
  var Progress = __toESM(require("@radix-ui/react-progress"));
@@ -1549,23 +1591,23 @@ var StyledIndicator = styled(Progress.Indicator, {
1549
1591
  });
1550
1592
 
1551
1593
  // src/components/ProgressBar/index.tsx
1552
- var import_jsx_runtime21 = require("react/jsx-runtime");
1594
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1553
1595
  var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
1554
- const [progress2, setProgress] = (0, import_react8.useState)(0);
1555
- (0, import_react8.useEffect)(() => {
1596
+ const [progress2, setProgress] = (0, import_react10.useState)(0);
1597
+ (0, import_react10.useEffect)(() => {
1556
1598
  const timer = setTimeout(() => setProgress(value), 500);
1557
1599
  return () => clearTimeout(timer);
1558
1600
  }, [value]);
1559
1601
  const valueLabel = `${Math.round(progress2 / max * 100)}%`;
1560
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(StyledWrapper3, { children: [
1561
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1562
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1602
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(StyledWrapper3, { children: [
1603
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { style: { fontSize: 16, alignSelf: "flex-start" }, children: label }),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1563
1605
  StyledRoot,
1564
1606
  {
1565
1607
  value: progress2,
1566
1608
  "aria-valuetext": valueLabel,
1567
1609
  ...rest,
1568
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1610
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1569
1611
  StyledIndicator,
1570
1612
  {
1571
1613
  style: { transform: `translateX(-${100 - progress2}%)` }
@@ -1669,7 +1711,7 @@ var Span3 = styled("span", {
1669
1711
  });
1670
1712
 
1671
1713
  // src/components/Radio/index.tsx
1672
- var import_jsx_runtime22 = require("react/jsx-runtime");
1714
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1673
1715
  var Radio = ({
1674
1716
  labels,
1675
1717
  value,
@@ -1678,8 +1720,8 @@ var Radio = ({
1678
1720
  required = false,
1679
1721
  errorMessage
1680
1722
  }) => {
1681
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1682
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1723
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1724
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1683
1725
  StyledRoot2,
1684
1726
  {
1685
1727
  value,
@@ -1688,27 +1730,27 @@ var Radio = ({
1688
1730
  disabled,
1689
1731
  required,
1690
1732
  loop: true,
1691
- children: labels.map((label, index) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Wrapper2, { children: [
1692
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1733
+ children: labels.map((label, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Wrapper2, { children: [
1734
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1693
1735
  StyledItem,
1694
1736
  {
1695
1737
  value: label,
1696
1738
  id: `radio-${index}`,
1697
1739
  "aria-label": label,
1698
1740
  hasError: !!errorMessage,
1699
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledIndicator2, {})
1741
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyledIndicator2, {})
1700
1742
  }
1701
1743
  ),
1702
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ItemLabel, { htmlFor: `radio-${index}`, children: label })
1744
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ItemLabel, { htmlFor: `radio-${index}`, children: label })
1703
1745
  ] }, label))
1704
1746
  }
1705
1747
  ),
1706
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Span3, { children: errorMessage })
1748
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Span3, { children: errorMessage })
1707
1749
  ] });
1708
1750
  };
1709
1751
 
1710
1752
  // src/components/Spacing.tsx
1711
- var import_jsx_runtime23 = require("react/jsx-runtime");
1753
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1712
1754
  var spacingMap = {
1713
1755
  xs: 8,
1714
1756
  sm: 12,
@@ -1720,7 +1762,7 @@ var spacingMap = {
1720
1762
  };
1721
1763
  var Spacing = ({ size, axis = "vertical" }) => {
1722
1764
  const style = axis === "vertical" ? { height: spacingMap[size], width: "100%" } : { width: spacingMap[size], height: "100%" };
1723
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { style, "data-testid": `spacing-${size}-${axis}` });
1765
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style, "data-testid": `spacing-${size}-${axis}` });
1724
1766
  };
1725
1767
 
1726
1768
  // src/components/Switch/styles.ts
@@ -1818,7 +1860,7 @@ var Span4 = styled("span", {
1818
1860
  });
1819
1861
 
1820
1862
  // src/components/Switch/index.tsx
1821
- var import_jsx_runtime24 = require("react/jsx-runtime");
1863
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1822
1864
  var Switch2 = ({
1823
1865
  label,
1824
1866
  checked,
@@ -1829,9 +1871,9 @@ var Switch2 = ({
1829
1871
  id,
1830
1872
  errorMessage
1831
1873
  }) => {
1832
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1833
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Wrapper3, { hasError: !!errorMessage, children: [
1834
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1874
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
1875
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Wrapper3, { hasError: !!errorMessage, children: [
1876
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1835
1877
  StyledRoot3,
1836
1878
  {
1837
1879
  id,
@@ -1841,17 +1883,17 @@ var Switch2 = ({
1841
1883
  hasError: !!errorMessage,
1842
1884
  disabled,
1843
1885
  required,
1844
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyledThumb, {})
1886
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledThumb, {})
1845
1887
  }
1846
1888
  ),
1847
- label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label2, { htmlFor: id, children: label })
1889
+ label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label2, { htmlFor: id, children: label })
1848
1890
  ] }),
1849
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Span4, { children: errorMessage })
1891
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Span4, { children: errorMessage })
1850
1892
  ] });
1851
1893
  };
1852
1894
 
1853
1895
  // src/components/Tabs/index.tsx
1854
- var import_react9 = require("react");
1896
+ var import_react11 = require("react");
1855
1897
 
1856
1898
  // src/components/Tabs/styles.ts
1857
1899
  var Tabs = __toESM(require("@radix-ui/react-tabs"));
@@ -1932,23 +1974,23 @@ var TabsContent = styled(Tabs.Content, {
1932
1974
  });
1933
1975
 
1934
1976
  // src/components/Tabs/index.tsx
1935
- var import_jsx_runtime25 = require("react/jsx-runtime");
1977
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1936
1978
  var TabsItem = ({ children }) => {
1937
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children });
1979
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children });
1938
1980
  };
1939
1981
  var Tabs2 = ({ defaultValue, colorContent, children }) => {
1940
1982
  const items = [];
1941
- const childrenArray = import_react9.Children.toArray(children);
1983
+ const childrenArray = import_react11.Children.toArray(children);
1942
1984
  childrenArray.forEach((child) => {
1943
- if ((0, import_react9.isValidElement)(child) && child.type === TabsItem) {
1985
+ if ((0, import_react11.isValidElement)(child) && child.type === TabsItem) {
1944
1986
  const { value, label, children: content } = child.props;
1945
1987
  items.push({ value, label, children: content });
1946
1988
  }
1947
1989
  });
1948
- const listRef = (0, import_react9.useRef)(null);
1949
- const rootRef = (0, import_react9.useRef)(null);
1950
- const hasOverflowRef = (0, import_react9.useRef)(false);
1951
- const [hasOverflow, setHasOverflow] = (0, import_react9.useState)(false);
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);
1952
1994
  const checkOverflow = () => {
1953
1995
  const listEl = listRef.current;
1954
1996
  const rootEl = rootRef.current;
@@ -1963,7 +2005,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
1963
2005
  setHasOverflow(overflow);
1964
2006
  }
1965
2007
  };
1966
- (0, import_react9.useLayoutEffect)(() => {
2008
+ (0, import_react11.useLayoutEffect)(() => {
1967
2009
  checkOverflow();
1968
2010
  const resizeObserver = new ResizeObserver(checkOverflow);
1969
2011
  if (listRef.current) {
@@ -1984,28 +2026,28 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
1984
2026
  });
1985
2027
  }
1986
2028
  };
1987
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2029
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1988
2030
  TabsRoot,
1989
2031
  {
1990
2032
  defaultValue: defaultValue || items[0]?.value,
1991
2033
  ref: rootRef,
1992
2034
  children: [
1993
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1994
- hasOverflow && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2035
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2036
+ hasOverflow && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1995
2037
  Button,
1996
2038
  {
1997
2039
  variant: "secondary",
1998
2040
  size: "sm",
1999
2041
  onClick: () => scroll("left"),
2000
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "TriangleLeft", size: 64 })
2042
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "TriangleLeft", size: 64 })
2001
2043
  }
2002
2044
  ),
2003
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2045
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2004
2046
  TabsList,
2005
2047
  {
2006
2048
  ref: listRef,
2007
2049
  scrollable: hasOverflow,
2008
- children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2050
+ children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2009
2051
  TabsTrigger,
2010
2052
  {
2011
2053
  value: item.value,
@@ -2016,17 +2058,17 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2016
2058
  ))
2017
2059
  }
2018
2060
  ),
2019
- hasOverflow && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2061
+ hasOverflow && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2020
2062
  Button,
2021
2063
  {
2022
2064
  variant: "secondary",
2023
2065
  size: "sm",
2024
2066
  onClick: () => scroll("right"),
2025
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { name: "TriangleRight", size: 64 })
2067
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "TriangleRight", size: 64 })
2026
2068
  }
2027
2069
  )
2028
2070
  ] }),
2029
- items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2071
+ items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2030
2072
  TabsContent,
2031
2073
  {
2032
2074
  colorContent,
@@ -2042,7 +2084,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
2042
2084
  Tabs2.Item = TabsItem;
2043
2085
 
2044
2086
  // src/components/TextArea.tsx
2045
- var import_jsx_runtime26 = require("react/jsx-runtime");
2087
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2046
2088
  var Wrapper4 = styled("div", {
2047
2089
  display: "flex",
2048
2090
  flexDirection: "column"
@@ -2119,10 +2161,10 @@ var Span5 = styled("span", {
2119
2161
  });
2120
2162
  var TextArea = ({ label, id, htmlFor, errorMessage, ...props }) => {
2121
2163
  const textAreaId = id || htmlFor || `textarea-${crypto.randomUUID()}`;
2122
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Wrapper4, { children: [
2123
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledLabel2, { htmlFor: textAreaId, children: label }),
2124
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TextAreaElement, { id: textAreaId, ...props, hasError: !!errorMessage }),
2125
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Span5, { children: errorMessage })
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 })
2126
2168
  ] });
2127
2169
  };
2128
2170
  TextArea.displayName = "TextArea";
@@ -2178,7 +2220,7 @@ var TooltipArrow = styled(RadixTooltip.Arrow, {
2178
2220
  });
2179
2221
 
2180
2222
  // src/components/Tooltip/index.tsx
2181
- var import_jsx_runtime27 = require("react/jsx-runtime");
2223
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2182
2224
  var Tooltip = ({
2183
2225
  content,
2184
2226
  children,
@@ -2188,18 +2230,218 @@ var Tooltip = ({
2188
2230
  onOpenChange,
2189
2231
  delayDuration = 100
2190
2232
  }) => {
2191
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RadixTooltip2.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(RadixTooltip2.Root, { open, onOpenChange, delayDuration, children: [
2192
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipTrigger, { asChild: true, children }),
2193
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(TooltipContent, { side, sideOffset, children: [
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RadixTooltip2.Provider, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(RadixTooltip2.Root, { open, onOpenChange, delayDuration, children: [
2234
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipTrigger, { asChild: true, children }),
2235
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(TooltipContent, { side, sideOffset, children: [
2194
2236
  content,
2195
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TooltipArrow, {})
2237
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipArrow, {})
2196
2238
  ] })
2197
2239
  ] }) });
2198
2240
  };
2199
2241
  Tooltip.displayName = "Tooltip";
2200
2242
 
2243
+ // src/components/Loader/style.ts
2244
+ var Content4 = styled("div", {
2245
+ position: "relative",
2246
+ height: "100%",
2247
+ width: "100%",
2248
+ minHeight: "inherit",
2249
+ top: 0,
2250
+ left: 0,
2251
+ backgroundColor: "YellowGreen"
2252
+ });
2253
+ var Overlay2 = styled("div", {
2254
+ display: "flex",
2255
+ justifyContent: "center",
2256
+ alignItems: "center",
2257
+ backgroundColor: "rgba(255, 255, 255, 0.6)",
2258
+ zIndex: 999,
2259
+ transition: "opacity 0.3s ease-in-out",
2260
+ variants: {
2261
+ show: {
2262
+ true: {
2263
+ opacity: 1,
2264
+ pointerEvents: "auto"
2265
+ },
2266
+ false: {
2267
+ opacity: 0,
2268
+ pointerEvents: "none"
2269
+ }
2270
+ },
2271
+ fullscreen: {
2272
+ true: {
2273
+ position: "fixed",
2274
+ top: 0,
2275
+ left: 0,
2276
+ right: 0,
2277
+ bottom: 0
2278
+ },
2279
+ false: {
2280
+ position: "absolute",
2281
+ top: 0,
2282
+ left: 0,
2283
+ width: "100%",
2284
+ height: "100%"
2285
+ }
2286
+ }
2287
+ }
2288
+ });
2289
+ var SpinnerContainer = styled("div", {
2290
+ position: "relative"
2291
+ });
2292
+ var rotation = keyframes({
2293
+ "0%": { transform: "rotate(0deg)" },
2294
+ "100%": { transform: "rotate(360deg)" }
2295
+ });
2296
+ var Spinner = styled("span", {
2297
+ width: "$19",
2298
+ height: "$19",
2299
+ borderRadius: "50%",
2300
+ display: "inline-block",
2301
+ borderTop: "6px solid $ignite_light",
2302
+ borderRight: "6px solid transparent",
2303
+ boxSizing: "border-box",
2304
+ animation: `${rotation} 1s linear infinite`,
2305
+ "&::after": {
2306
+ content: '""',
2307
+ boxSizing: "border-box",
2308
+ position: "absolute",
2309
+ left: 0,
2310
+ top: 0,
2311
+ width: "$19",
2312
+ height: "$19",
2313
+ borderRadius: "50%",
2314
+ borderLeft: "6px solid $clickpalm_light",
2315
+ borderBottom: "6px solid transparent",
2316
+ animation: `${rotation} 0.5s linear infinite reverse`
2317
+ }
2318
+ });
2319
+
2320
+ // src/components/Loader/index.tsx
2321
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2322
+ var Loader = ({ show, fullscreen = false }) => {
2323
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Overlay2, { show, fullscreen, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SpinnerContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Spinner, {}) }) });
2324
+ };
2325
+ Loader.displayName = "Loader";
2326
+
2327
+ // src/components/MaskedInput/index.tsx
2328
+ var import_react12 = require("react");
2329
+
2330
+ // src/components/MaskedInput/utils.ts
2331
+ var MAX_LENGTHS = {
2332
+ cellPhone: 15,
2333
+ homePhone: 14,
2334
+ cep: 9,
2335
+ cpf: 14,
2336
+ cnpj: 18,
2337
+ date: 10
2338
+ };
2339
+ var applyMask = (value, maskType) => {
2340
+ const digits = value.replace(/\D/g, "");
2341
+ const maxLength = MAX_LENGTHS[maskType];
2342
+ if (digits.length > maxLength) {
2343
+ return value.slice(0, -1);
2344
+ }
2345
+ switch (maskType) {
2346
+ case "cellPhone":
2347
+ if (digits.length <= 2)
2348
+ return digits;
2349
+ if (digits.length <= 7)
2350
+ return `(${digits.slice(0, 2)}) ${digits.slice(2)}`;
2351
+ return `(${digits.slice(0, 2)}) ${digits.slice(2, 7)}-${digits.slice(7, 11)}`;
2352
+ case "homePhone":
2353
+ if (digits.length <= 2)
2354
+ return digits;
2355
+ if (digits.length <= 6)
2356
+ return `(${digits.slice(0, 2)}) ${digits.slice(2)}`;
2357
+ return `(${digits.slice(0, 2)}) ${digits.slice(2, 6)}-${digits.slice(6, 10)}`;
2358
+ case "cep":
2359
+ if (digits.length <= 5)
2360
+ return digits;
2361
+ return `${digits.slice(0, 5)}-${digits.slice(5, 8)}`;
2362
+ case "cpf":
2363
+ if (digits.length <= 3)
2364
+ return digits;
2365
+ if (digits.length <= 6)
2366
+ return `${digits.slice(0, 3)}.${digits.slice(3)}`;
2367
+ if (digits.length <= 9)
2368
+ return `${digits.slice(0, 3)}.${digits.slice(3, 6)}.${digits.slice(6)}`;
2369
+ return `${digits.slice(0, 3)}.${digits.slice(3, 6)}.${digits.slice(6, 9)}-${digits.slice(9, 11)}`;
2370
+ case "cnpj":
2371
+ if (digits.length <= 2)
2372
+ return digits;
2373
+ if (digits.length <= 5)
2374
+ return `${digits.slice(0, 2)}.${digits.slice(2)}`;
2375
+ if (digits.length <= 8)
2376
+ return `${digits.slice(0, 2)}.${digits.slice(2, 5)}.${digits.slice(5)}`;
2377
+ if (digits.length <= 12)
2378
+ return `${digits.slice(0, 2)}.${digits.slice(2, 5)}.${digits.slice(5, 8)}/${digits.slice(8)}`;
2379
+ return `${digits.slice(0, 2)}.${digits.slice(2, 5)}.${digits.slice(5, 8)}/${digits.slice(8, 12)}-${digits.slice(12, 14)}`;
2380
+ case "date":
2381
+ if (digits.length <= 2)
2382
+ return digits;
2383
+ if (digits.length <= 4)
2384
+ return `${digits.slice(0, 2)}/${digits.slice(2)}`;
2385
+ return `${digits.slice(0, 2)}/${digits.slice(2, 4)}/${digits.slice(4, 8)}`;
2386
+ default:
2387
+ return value;
2388
+ }
2389
+ };
2390
+
2391
+ // src/components/MaskedInput/index.tsx
2392
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2393
+ var MaskedInput = (0, import_react12.forwardRef)(
2394
+ ({ maskType, onChange, ...props }, ref) => {
2395
+ const [value, setValue] = (0, import_react12.useState)("");
2396
+ const inputRef = (0, import_react12.useRef)(null);
2397
+ const handleChange = (e) => {
2398
+ const { value: inputValue, selectionStart } = e.target;
2399
+ const isBackspace = value.length > inputValue.length;
2400
+ const rawValue = inputValue.replace(/\D/g, "");
2401
+ const maskedValue = applyMask(rawValue, maskType);
2402
+ setValue(maskedValue);
2403
+ if (inputRef.current && selectionStart !== null) {
2404
+ let newCursorPos = selectionStart;
2405
+ if (isBackspace && value.length > 0) {
2406
+ const prevChar = value[selectionStart || 0];
2407
+ if (prevChar && !/\d/.test(prevChar)) {
2408
+ newCursorPos = Math.max(0, (selectionStart || 0) - 1);
2409
+ }
2410
+ }
2411
+ setTimeout(() => {
2412
+ if (inputRef.current) {
2413
+ inputRef.current.setSelectionRange(newCursorPos, newCursorPos);
2414
+ }
2415
+ }, 0);
2416
+ }
2417
+ if (onChange) {
2418
+ const syntheticEvent = {
2419
+ ...e,
2420
+ target: {
2421
+ ...e.target,
2422
+ value: maskedValue,
2423
+ rawValue
2424
+ }
2425
+ };
2426
+ onChange(syntheticEvent);
2427
+ }
2428
+ };
2429
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2430
+ Input2,
2431
+ {
2432
+ ...props,
2433
+ ref,
2434
+ value,
2435
+ onChange: handleChange,
2436
+ maxLength: MAX_LENGTHS[maskType]
2437
+ }
2438
+ );
2439
+ }
2440
+ );
2441
+ MaskedInput.displayName = "MaskedInput";
2442
+
2201
2443
  // src/components/Box.tsx
2202
- var import_jsx_runtime28 = require("react/jsx-runtime");
2444
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2203
2445
  var StyledBox = styled("div", {
2204
2446
  padding: "$5",
2205
2447
  borderRadius: "$md",
@@ -2221,13 +2463,13 @@ var StyledBox = styled("div", {
2221
2463
  }
2222
2464
  });
2223
2465
  var Box = (props) => {
2224
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledBox, { ...props });
2466
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledBox, { ...props });
2225
2467
  };
2226
2468
  Box.displayName = "Box";
2227
2469
 
2228
- // src/components/Text.tsx
2229
- var import_jsx_runtime29 = require("react/jsx-runtime");
2230
- var StyledText = styled("p", {
2470
+ // src/components/Paragraph.tsx
2471
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2472
+ var StyledParagraph = styled("p", {
2231
2473
  fontFamily: "$default",
2232
2474
  lineHeight: "$short",
2233
2475
  margin: 0,
@@ -2266,13 +2508,15 @@ var StyledText = styled("p", {
2266
2508
  lineHeight: "short"
2267
2509
  }
2268
2510
  });
2269
- var Text = (props) => {
2270
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StyledText, { ...props });
2511
+ var Paragraph = (props) => {
2512
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledParagraph, { ...props });
2271
2513
  };
2272
- Text.displayName = "Text";
2514
+ Paragraph.displayName = "Paragraph";
2273
2515
 
2274
2516
  // src/components/Heading.tsx
2275
- var Heading = styled("h2", {
2517
+ var import_react13 = require("react");
2518
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2519
+ var StyledHeading = styled("h2", {
2276
2520
  fontFamily: "$default",
2277
2521
  lineHeight: "$shorter",
2278
2522
  margin: 0,
@@ -2293,12 +2537,15 @@ var Heading = styled("h2", {
2293
2537
  size: "md"
2294
2538
  }
2295
2539
  });
2540
+ var Heading = (0, import_react13.forwardRef)(function Heading2({ children, ...props }, ref) {
2541
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledHeading, { ref, ...props, children });
2542
+ });
2296
2543
  Heading.displayName = "Heading";
2297
2544
 
2298
2545
  // src/components/Select/index.tsx
2299
2546
  var import_react_icons2 = require("@radix-ui/react-icons");
2300
2547
  var CustomSelect = __toESM(require("@radix-ui/react-select"));
2301
- var import_react10 = require("react");
2548
+ var import_react14 = require("react");
2302
2549
 
2303
2550
  // src/components/Select/styles.ts
2304
2551
  var Select = __toESM(require("@radix-ui/react-select"));
@@ -2320,7 +2567,7 @@ var StyledTrigger = styled(Select.Trigger, {
2320
2567
  alignItems: "center",
2321
2568
  justifyContent: "space-between",
2322
2569
  marginBottom: "$6",
2323
- padding: "$3 $4",
2570
+ padding: "$4 $4",
2324
2571
  boxSizing: "border-box",
2325
2572
  borderRadius: "$md",
2326
2573
  border: "1px solid $gray_mid",
@@ -2415,7 +2662,7 @@ var Span6 = styled("span", {
2415
2662
  });
2416
2663
 
2417
2664
  // src/components/Select/index.tsx
2418
- var import_jsx_runtime30 = require("react/jsx-runtime");
2665
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2419
2666
  function Select2({
2420
2667
  value,
2421
2668
  onValueChange,
@@ -2425,10 +2672,10 @@ function Select2({
2425
2672
  errorMessage,
2426
2673
  ...rest
2427
2674
  }) {
2428
- const [open, setOpen] = (0, import_react10.useState)(false);
2429
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(StyledWrapper4, { children: [
2430
- label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label3, { children: label }),
2431
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
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)(
2432
2679
  CustomSelect.Root,
2433
2680
  {
2434
2681
  value,
@@ -2436,21 +2683,21 @@ function Select2({
2436
2683
  onOpenChange: setOpen,
2437
2684
  ...rest,
2438
2685
  children: [
2439
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, children: [
2440
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CustomSelect.Value, { placeholder }),
2441
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StyledIcon, { open, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons2.TriangleDownIcon, {}) })
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, {}) })
2442
2689
  ] }),
2443
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Span6, { children: errorMessage }),
2444
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CustomSelect.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
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)(
2445
2692
  StyledContent2,
2446
2693
  {
2447
2694
  side: "bottom",
2448
2695
  align: "start",
2449
2696
  position: "popper",
2450
2697
  children: [
2451
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CustomSelect.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons2.TriangleUpIcon, {}) }),
2452
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StyledViewport, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StyledItem2, { value: item.value, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CustomSelect.ItemText, { children: item.label }) }, item.value)) }),
2453
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CustomSelect.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons2.TriangleDownIcon, {}) })
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, {}) })
2454
2701
  ]
2455
2702
  }
2456
2703
  ) })
@@ -2462,7 +2709,7 @@ function Select2({
2462
2709
  Select2.displayName = "Select";
2463
2710
 
2464
2711
  // src/components/LabelledValue/index.tsx
2465
- var import_react11 = require("react");
2712
+ var import_react15 = require("react");
2466
2713
 
2467
2714
  // src/components/LabelledValue/styles.ts
2468
2715
  var Container = styled("div", {
@@ -2523,19 +2770,19 @@ var Value2 = styled("div", {
2523
2770
  });
2524
2771
 
2525
2772
  // src/components/LabelledValue/index.tsx
2526
- var import_jsx_runtime31 = require("react/jsx-runtime");
2773
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2527
2774
  function LabelledValue({ position = "vertical", withRow = false, children }) {
2528
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Container, { position, children: import_react11.Children.map(children, (child) => {
2529
- if ((0, import_react11.isValidElement)(child)) {
2530
- return (0, import_react11.cloneElement)(child, { position, withRow });
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 });
2531
2778
  }
2532
2779
  return child;
2533
2780
  }) });
2534
2781
  }
2535
2782
  function Item3({ label, value, position = "vertical", withRow = false }) {
2536
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ItemWrapper, { position, withRow, children: [
2537
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Label4, { children: label }),
2538
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Value2, { children: value })
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 })
2539
2786
  ] });
2540
2787
  }
2541
2788
  LabelledValue.Item = Item3;
@@ -2545,14 +2792,18 @@ var OneTimePasswordField2 = __toESM(require("@radix-ui/react-one-time-password-f
2545
2792
 
2546
2793
  // src/components/OneTimePassword/styles.ts
2547
2794
  var OneTimePasswordField = __toESM(require("@radix-ui/react-one-time-password-field"));
2548
- var StyledWrapper5 = styled("div", {
2795
+ var Container2 = styled("div", {
2549
2796
  display: "flex",
2550
2797
  flexDirection: "column",
2551
2798
  justifyContent: "center",
2552
2799
  alignItems: "center",
2553
- gap: "$5",
2554
2800
  marginBottom: "$6"
2555
2801
  });
2802
+ var StyledWrapper5 = styled("div", {
2803
+ display: "flex",
2804
+ flexDirection: "column",
2805
+ gap: "$5"
2806
+ });
2556
2807
  var StyledRoot4 = styled(OneTimePasswordField.Root, {
2557
2808
  display: "flex",
2558
2809
  gap: "$2",
@@ -2568,7 +2819,7 @@ var StyledInput = styled(OneTimePasswordField.Input, {
2568
2819
  boxSizing: "border-box",
2569
2820
  borderRadius: "$md",
2570
2821
  borderStyle: "solid",
2571
- borderColor: "#C2C2C2",
2822
+ borderColor: "$gray_mid",
2572
2823
  borderWidth: "3px",
2573
2824
  fontSize: "$md",
2574
2825
  color: "$black",
@@ -2582,31 +2833,44 @@ var StyledInput = styled(OneTimePasswordField.Input, {
2582
2833
  borderColor: "$clickpalm_mid"
2583
2834
  }
2584
2835
  });
2836
+ var Span7 = styled("span", {
2837
+ fontFamily: "$default",
2838
+ fontWeight: "$regular",
2839
+ fontSize: "$sm",
2840
+ color: "$danger_dark",
2841
+ alignSelf: "flex-start",
2842
+ paddingLeft: "1px",
2843
+ marginTop: "2px",
2844
+ marginBottom: "$6"
2845
+ });
2585
2846
 
2586
2847
  // src/components/OneTimePassword/index.tsx
2587
- var import_jsx_runtime32 = require("react/jsx-runtime");
2588
- var OneTimePassword = ({ label, length, value, onValueChange, ...rootProps }) => {
2589
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(StyledWrapper5, { children: [
2590
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { children: label }),
2591
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
2592
- StyledRoot4,
2593
- {
2594
- value,
2595
- onValueChange,
2596
- ...rootProps,
2597
- children: [
2598
- Array.from({ length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledInput, {}, index)),
2599
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(OneTimePasswordField2.HiddenInput, {})
2600
- ]
2601
- }
2602
- )
2848
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2849
+ var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...rootProps }) => {
2850
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Container2, { children: [
2851
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(StyledWrapper5, { children: [
2852
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { children: label }),
2853
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
2854
+ StyledRoot4,
2855
+ {
2856
+ value,
2857
+ onValueChange,
2858
+ ...rootProps,
2859
+ children: [
2860
+ Array.from({ length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledInput, {}, index)),
2861
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(OneTimePasswordField2.HiddenInput, {})
2862
+ ]
2863
+ }
2864
+ )
2865
+ ] }),
2866
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Span7, { children: errorMessage })
2603
2867
  ] });
2604
2868
  };
2605
2869
  OneTimePassword.displayName = "OneTimePasswordInput";
2606
2870
 
2607
2871
  // src/components/Toast/index.tsx
2608
2872
  var ToastPrimitive2 = __toESM(require("@radix-ui/react-toast"));
2609
- var React2 = __toESM(require("react"));
2873
+ var React3 = __toESM(require("react"));
2610
2874
 
2611
2875
  // src/components/Toast/styles.ts
2612
2876
  var ToastPrimitive = __toESM(require("@radix-ui/react-toast"));
@@ -2769,11 +3033,11 @@ var toast = {
2769
3033
  };
2770
3034
 
2771
3035
  // src/components/Toast/index.tsx
2772
- var import_jsx_runtime33 = require("react/jsx-runtime");
3036
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2773
3037
  var Toast = () => {
2774
- const [messages, setMessages] = React2.useState([]);
2775
- const [paused, setPaused] = React2.useState(false);
2776
- React2.useEffect(() => {
3038
+ const [messages, setMessages] = React3.useState([]);
3039
+ const [paused, setPaused] = React3.useState(false);
3040
+ React3.useEffect(() => {
2777
3041
  const handleNewToast = (msg) => {
2778
3042
  setMessages((prev) => [...prev, msg]);
2779
3043
  };
@@ -2785,8 +3049,8 @@ var Toast = () => {
2785
3049
  const removeToast = (id) => {
2786
3050
  setMessages((prev) => prev.filter((msg) => msg.id !== id));
2787
3051
  };
2788
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ToastPrimitive2.Provider, { swipeDirection: "right", children: [
2789
- messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3052
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(ToastPrimitive2.Provider, { swipeDirection: "right", children: [
3053
+ messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2790
3054
  ToastRoot,
2791
3055
  {
2792
3056
  open: true,
@@ -2799,11 +3063,11 @@ var Toast = () => {
2799
3063
  onPause: () => setPaused(true),
2800
3064
  onResume: () => setPaused(false),
2801
3065
  children: [
2802
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ToastContent, { children: [
2803
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ToastTitle, { children: message.title }),
2804
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ToastDescription, { children: message.description })
3066
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(ToastContent, { children: [
3067
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastTitle, { children: message.title }),
3068
+ message.description && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastDescription, { children: message.description })
2805
3069
  ] }),
2806
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ToastAction, { altText: "Fechar", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3070
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastAction, { altText: "Fechar", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2807
3071
  "button",
2808
3072
  {
2809
3073
  style: {
@@ -2813,15 +3077,15 @@ var Toast = () => {
2813
3077
  alignItems: "center"
2814
3078
  },
2815
3079
  onClick: () => removeToast(message.id),
2816
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: "Closed", size: 16, height: 14, width: 14 })
3080
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { name: "Closed", size: 16, height: 14, width: 14 })
2817
3081
  }
2818
3082
  ) }),
2819
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ToastProgress, { paused, variant: message.variant })
3083
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastProgress, { paused, variant: message.variant })
2820
3084
  ]
2821
3085
  },
2822
3086
  message.id
2823
3087
  )),
2824
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ToastViewport, {})
3088
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ToastViewport, {})
2825
3089
  ] });
2826
3090
  };
2827
3091
 
@@ -2856,7 +3120,7 @@ var StepItem = styled("div", {
2856
3120
  textAlign: "center"
2857
3121
  },
2858
3122
  vertical: {
2859
- margin: "$4 0",
3123
+ margin: "$2 0",
2860
3124
  flexDirection: "row"
2861
3125
  }
2862
3126
  }
@@ -2895,7 +3159,7 @@ var StepCircle = styled("div", {
2895
3159
  left: "50%",
2896
3160
  transform: "translate(-50%, -100%)",
2897
3161
  width: "3px",
2898
- height: "$6",
3162
+ height: "$4",
2899
3163
  backgroundColor: "$clickpalm_dark"
2900
3164
  },
2901
3165
  "&::after": {
@@ -2905,7 +3169,7 @@ var StepCircle = styled("div", {
2905
3169
  left: "50%",
2906
3170
  transform: "translate(-50%, 100%)",
2907
3171
  width: "3px",
2908
- height: "$6",
3172
+ height: "$4",
2909
3173
  backgroundColor: "$clickpalm_dark"
2910
3174
  }
2911
3175
  }
@@ -3057,22 +3321,22 @@ var StepLabel = styled("span", {
3057
3321
  });
3058
3322
 
3059
3323
  // src/components/MultiStep/index.tsx
3060
- var import_jsx_runtime34 = require("react/jsx-runtime");
3324
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3061
3325
  var MultiStep = ({
3062
3326
  steps,
3063
3327
  currentStep,
3064
3328
  orientation = "horizontal",
3065
3329
  variant
3066
3330
  }) => {
3067
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3331
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3068
3332
  Wrapper5,
3069
3333
  {
3070
3334
  orientation,
3071
3335
  children: steps.map((step, index) => {
3072
3336
  const isFirst = index === 0;
3073
3337
  const isLast = index === steps.length - 1;
3074
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(StepItem, { orientation, children: [
3075
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3338
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(StepItem, { orientation, children: [
3339
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3076
3340
  StepCircle,
3077
3341
  {
3078
3342
  orientation,
@@ -3083,7 +3347,7 @@ var MultiStep = ({
3083
3347
  children: index + 1
3084
3348
  }
3085
3349
  ),
3086
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3350
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3087
3351
  StepLabel,
3088
3352
  {
3089
3353
  orientation,
@@ -3099,7 +3363,7 @@ var MultiStep = ({
3099
3363
  MultiStep.displayName = "MultiStep";
3100
3364
 
3101
3365
  // src/components/Carousel/index.tsx
3102
- var import_react12 = require("react");
3366
+ var import_react16 = require("react");
3103
3367
 
3104
3368
  // src/components/Carousel/styles.ts
3105
3369
  var CarouselContainer = styled("div", {
@@ -3205,13 +3469,13 @@ var CarouselItemContainer = styled("div", {
3205
3469
  });
3206
3470
 
3207
3471
  // src/components/Carousel/index.tsx
3208
- var import_jsx_runtime35 = require("react/jsx-runtime");
3472
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3209
3473
  var SWIPE_THRESHOLD = 50;
3210
3474
  var Carousel = ({ title, variant, children }) => {
3211
- const items = import_react12.Children.toArray(children);
3212
- const [activeIndex, setActiveIndex] = (0, import_react12.useState)(0);
3213
- const [touchStartX, setTouchStartX] = (0, import_react12.useState)(null);
3214
- const [touchEndX, setTouchEndX] = (0, import_react12.useState)(null);
3475
+ const items = import_react16.Children.toArray(children);
3476
+ const [activeIndex, setActiveIndex] = (0, import_react16.useState)(0);
3477
+ const [touchStartX, setTouchStartX] = (0, import_react16.useState)(null);
3478
+ const [touchEndX, setTouchEndX] = (0, import_react16.useState)(null);
3215
3479
  const prev = () => {
3216
3480
  setActiveIndex((prevIndex) => prevIndex === 0 ? items.length - 1 : prevIndex - 1);
3217
3481
  };
@@ -3239,18 +3503,18 @@ var Carousel = ({ title, variant, children }) => {
3239
3503
  setTouchStartX(null);
3240
3504
  setTouchEndX(null);
3241
3505
  };
3242
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3506
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3243
3507
  CarouselContainer,
3244
3508
  {
3245
3509
  role: "region",
3246
3510
  "aria-roledescription": "carousel",
3247
3511
  "aria-label": "Carousel Component",
3248
3512
  children: [
3249
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Wrapper6, { variant, children: [
3250
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(CarouselHeader, { children: [
3251
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Title2, { children: title }),
3252
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Navigation, { children: [
3253
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3513
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Wrapper6, { variant, children: [
3514
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(CarouselHeader, { children: [
3515
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Title2, { children: title }),
3516
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Navigation, { children: [
3517
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3254
3518
  Button,
3255
3519
  {
3256
3520
  size: "sm",
@@ -3258,10 +3522,10 @@ var Carousel = ({ title, variant, children }) => {
3258
3522
  "aria-label": "Previous Slide",
3259
3523
  onClick: prev,
3260
3524
  tabIndex: 0,
3261
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "TriangleLeft", size: 16, color: variant === "purple" ? "white" : "black" })
3525
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "TriangleLeft", size: 16, color: variant === "purple" ? "white" : "black" })
3262
3526
  }
3263
3527
  ),
3264
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3528
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3265
3529
  Button,
3266
3530
  {
3267
3531
  size: "sm",
@@ -3269,22 +3533,22 @@ var Carousel = ({ title, variant, children }) => {
3269
3533
  "aria-label": "Previous Slide",
3270
3534
  onClick: next,
3271
3535
  tabIndex: 0,
3272
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { name: "TriangleRight", size: 16, color: variant === "purple" ? "white" : "black" })
3536
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { name: "TriangleRight", size: 16, color: variant === "purple" ? "white" : "black" })
3273
3537
  }
3274
3538
  )
3275
3539
  ] })
3276
3540
  ] }),
3277
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Spacing, { size: "xs" }),
3278
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Hr, { variant }),
3279
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Spacing, { size: "xs" }),
3280
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3541
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "xs" }),
3542
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Hr, { variant }),
3543
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "xs" }),
3544
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3281
3545
  CarouselContent,
3282
3546
  {
3283
3547
  onTouchStart,
3284
3548
  onTouchMove,
3285
3549
  onTouchEnd,
3286
3550
  children: items.map(
3287
- (child, index) => (0, import_react12.cloneElement)(child, {
3551
+ (child, index) => (0, import_react16.cloneElement)(child, {
3288
3552
  "aria-hidden": index !== activeIndex,
3289
3553
  style: {
3290
3554
  display: index === activeIndex ? "block" : "none"
@@ -3294,8 +3558,8 @@ var Carousel = ({ title, variant, children }) => {
3294
3558
  }
3295
3559
  )
3296
3560
  ] }),
3297
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Spacing, { size: "md" }),
3298
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DotsContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Dots2, { role: "tablist", "aria-label": "Carousel Pagination", children: items.map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3561
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spacing, { size: "md" }),
3562
+ /* @__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)(
3299
3563
  DotButton,
3300
3564
  {
3301
3565
  active: idx === activeIndex,
@@ -3311,18 +3575,31 @@ var Carousel = ({ title, variant, children }) => {
3311
3575
  }
3312
3576
  );
3313
3577
  };
3314
- var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CarouselItemContainer, { ...props, style: { ...style }, children });
3578
+ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CarouselItemContainer, { ...props, style: { ...style }, children });
3315
3579
  Carousel.Item = CarouselItem;
3316
3580
 
3317
3581
  // src/components/PasswordInput.tsx
3318
- var import_react13 = require("react");
3319
- var import_jsx_runtime36 = require("react/jsx-runtime");
3320
- var PasswordInput = (0, import_react13.forwardRef)(
3582
+ var import_react17 = require("react");
3583
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3584
+ var ToggleButton = styled("button", {
3585
+ all: "unset",
3586
+ cursor: "pointer",
3587
+ display: "flex",
3588
+ alignItems: "center",
3589
+ justifyContent: "center",
3590
+ borderRadius: "$sm",
3591
+ padding: "2px",
3592
+ "&:focus-visible": {
3593
+ outline: "none",
3594
+ boxShadow: "0 0 0 2px $colors$ignite_light",
3595
+ borderRadius: "$sm"
3596
+ }
3597
+ });
3598
+ var PasswordInput = (0, import_react17.forwardRef)(
3321
3599
  ({ value, onChange, ...props }, ref) => {
3322
- console.log("\u{1F680} ~ value:", value);
3323
- const [visible, setVisible] = (0, import_react13.useState)(false);
3324
- const innerRef = (0, import_react13.useRef)(null);
3325
- (0, import_react13.useImperativeHandle)(ref, () => innerRef.current);
3600
+ const [visible, setVisible] = (0, import_react17.useState)(false);
3601
+ const innerRef = (0, import_react17.useRef)(null);
3602
+ (0, import_react17.useImperativeHandle)(ref, () => innerRef.current);
3326
3603
  const handleToggleVisibility = () => {
3327
3604
  setVisible((v) => !v);
3328
3605
  setTimeout(() => {
@@ -3332,7 +3609,7 @@ var PasswordInput = (0, import_react13.forwardRef)(
3332
3609
  }
3333
3610
  }, 0);
3334
3611
  };
3335
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3612
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3336
3613
  Input2,
3337
3614
  {
3338
3615
  ...props,
@@ -3340,21 +3617,14 @@ var PasswordInput = (0, import_react13.forwardRef)(
3340
3617
  type: visible ? "text" : "password",
3341
3618
  value,
3342
3619
  onChange,
3343
- suffix: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3344
- "button",
3620
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3621
+ ToggleButton,
3345
3622
  {
3346
3623
  type: "button",
3347
3624
  onClick: handleToggleVisibility,
3348
3625
  onMouseDown: (e) => e.preventDefault(),
3349
- style: {
3350
- all: "unset",
3351
- cursor: "pointer",
3352
- display: "flex",
3353
- alignItems: "center",
3354
- justifyContent: "center"
3355
- },
3356
3626
  "aria-label": visible ? "Ocultar senha" : "Mostrar senha",
3357
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { name: "EyeClosed", size: 16, color: "black" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { name: "EyeOpen", size: 16, color: "black" })
3627
+ 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" })
3358
3628
  }
3359
3629
  )
3360
3630
  }
@@ -3376,18 +3646,21 @@ PasswordInput.displayName = "PasswordInput";
3376
3646
  Icon,
3377
3647
  Input,
3378
3648
  LabelledValue,
3649
+ Loader,
3650
+ MaskedInput,
3379
3651
  Modal,
3380
3652
  MultiStep,
3381
3653
  OneTimePassword,
3654
+ Paragraph,
3382
3655
  PasswordInput,
3383
3656
  ProgressBar,
3384
3657
  Radio,
3385
3658
  Select,
3386
3659
  Spacing,
3387
3660
  Span,
3661
+ StyledHr,
3388
3662
  Switch,
3389
3663
  Tabs,
3390
- Text,
3391
3664
  TextArea,
3392
3665
  TextAreaElement,
3393
3666
  Toast,