@clickpalm/react 1.3.9 → 1.3.11
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 +211 -187
- package/dist/index.mjs +170 -146
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -656,6 +656,29 @@ var Copy = (props) => {
|
|
|
656
656
|
);
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
+
// src/components/Icon/Svgs/Download.tsx
|
|
660
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
661
|
+
var Download = (props) => /* @__PURE__ */ jsx16(
|
|
662
|
+
"svg",
|
|
663
|
+
{
|
|
664
|
+
width: "15",
|
|
665
|
+
height: "15",
|
|
666
|
+
viewBox: "0 0 15 15",
|
|
667
|
+
fill: "none",
|
|
668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
669
|
+
...props,
|
|
670
|
+
children: /* @__PURE__ */ jsx16(
|
|
671
|
+
"path",
|
|
672
|
+
{
|
|
673
|
+
d: "M7.50005 1.04999C7.74858 1.04999 7.95005 1.25146 7.95005 1.49999V8.41359L10.1819 6.18179C10.3576 6.00605 10.6425 6.00605 10.8182 6.18179C10.994 6.35753 10.994 6.64245 10.8182 6.81819L7.81825 9.81819C7.64251 9.99392 7.35759 9.99392 7.18185 9.81819L4.18185 6.81819C4.00611 6.64245 4.00611 6.35753 4.18185 6.18179C4.35759 6.00605 4.64251 6.00605 4.81825 6.18179L7.05005 8.41359V1.49999C7.05005 1.25146 7.25152 1.04999 7.50005 1.04999ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12C3 12.5539 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2239 12.2239 10 12.5 10C12.7761 10 13 10.2239 13 10.5V12C13 13.1041 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2239 2.22386 10 2.5 10Z",
|
|
674
|
+
fill: "currentColor",
|
|
675
|
+
"fill-rule": "evenodd",
|
|
676
|
+
"clip-rule": "evenodd"
|
|
677
|
+
}
|
|
678
|
+
)
|
|
679
|
+
}
|
|
680
|
+
);
|
|
681
|
+
|
|
659
682
|
// src/components/Icon/icons.ts
|
|
660
683
|
var iconMap = {
|
|
661
684
|
TriangleDown,
|
|
@@ -669,6 +692,7 @@ var iconMap = {
|
|
|
669
692
|
Calendar,
|
|
670
693
|
Closed,
|
|
671
694
|
Dots,
|
|
695
|
+
Download,
|
|
672
696
|
Filter,
|
|
673
697
|
Hamburger,
|
|
674
698
|
Pencil,
|
|
@@ -682,7 +706,7 @@ var iconMap = {
|
|
|
682
706
|
};
|
|
683
707
|
|
|
684
708
|
// src/components/Icon/index.tsx
|
|
685
|
-
import { jsx as
|
|
709
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
686
710
|
var colorMap = {
|
|
687
711
|
black: "#000000",
|
|
688
712
|
green: "#78CB63",
|
|
@@ -695,7 +719,7 @@ function Icon({ name, size = 24, color = "black", ...rest }) {
|
|
|
695
719
|
return null;
|
|
696
720
|
}
|
|
697
721
|
const fillColor = colorMap[color];
|
|
698
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ jsx17(
|
|
699
723
|
IconComponent,
|
|
700
724
|
{
|
|
701
725
|
width: size,
|
|
@@ -902,7 +926,7 @@ var StyledLabel = styled("label", {
|
|
|
902
926
|
});
|
|
903
927
|
|
|
904
928
|
// src/components/Calendar/index.tsx
|
|
905
|
-
import { jsx as
|
|
929
|
+
import { jsx as jsx18, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
906
930
|
calendarStyles();
|
|
907
931
|
var Calendar2 = ({ label, onChange }) => {
|
|
908
932
|
const [selected, setSelected] = useState(void 0);
|
|
@@ -921,8 +945,8 @@ var Calendar2 = ({ label, onChange }) => {
|
|
|
921
945
|
}
|
|
922
946
|
}, [selected]);
|
|
923
947
|
return /* @__PURE__ */ jsxs2("div", { children: [
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ jsx18(StyledLabel, { children: label }),
|
|
949
|
+
/* @__PURE__ */ jsx18(
|
|
926
950
|
DayPicker,
|
|
927
951
|
{
|
|
928
952
|
className: !open ? "calendar-root-collapsed" : "",
|
|
@@ -953,20 +977,20 @@ var Calendar2 = ({ label, onChange }) => {
|
|
|
953
977
|
MonthCaption: ({ calendarMonth, displayIndex, ...safeprops }) => {
|
|
954
978
|
const displayMonth = calendarMonth.date;
|
|
955
979
|
return /* @__PURE__ */ jsxs2("div", { ...safeprops, children: [
|
|
956
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsx18(
|
|
957
981
|
Button,
|
|
958
982
|
{
|
|
959
983
|
variant: "secondary",
|
|
960
984
|
size: "sm",
|
|
961
985
|
onClick: () => setOpen(!open),
|
|
962
|
-
children: /* @__PURE__ */
|
|
986
|
+
children: /* @__PURE__ */ jsx18(StyledButton2, { isOpen: open, children: /* @__PURE__ */ jsx18(Icon, { name: "TriangleUp", size: 16 }) })
|
|
963
987
|
}
|
|
964
988
|
) }),
|
|
965
|
-
/* @__PURE__ */
|
|
989
|
+
/* @__PURE__ */ jsx18("div", { className: "calendar-month_caption", children: /* @__PURE__ */ jsx18("div", { className: "calendar-caption_label", role: "heading", "aria-level": 2, children: format(displayMonth, "MMMM 'de' yyyy", { locale: ptBR }).replace(/^./, (c) => c.toUpperCase()) }) })
|
|
966
990
|
] });
|
|
967
991
|
},
|
|
968
|
-
PreviousMonthButton: (props) => /* @__PURE__ */
|
|
969
|
-
NextMonthButton: (props) => /* @__PURE__ */
|
|
992
|
+
PreviousMonthButton: (props) => /* @__PURE__ */ jsx18(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx18(Icon, { name: "TriangleLeft", size: 16 }) }),
|
|
993
|
+
NextMonthButton: (props) => /* @__PURE__ */ jsx18(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx18(Icon, { name: "TriangleRight", size: 16 }) })
|
|
970
994
|
}
|
|
971
995
|
}
|
|
972
996
|
)
|
|
@@ -1090,12 +1114,12 @@ var Span = styled("span", {
|
|
|
1090
1114
|
});
|
|
1091
1115
|
|
|
1092
1116
|
// src/components/Checkbox/index.tsx
|
|
1093
|
-
import { jsx as
|
|
1117
|
+
import { jsx as jsx19, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1094
1118
|
var Checkbox2 = forwardRef2(
|
|
1095
1119
|
({ label, checked, onCheckedChange, errorMessage, ...rest }, ref) => {
|
|
1096
1120
|
return /* @__PURE__ */ jsxs3("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
|
|
1097
1121
|
/* @__PURE__ */ jsxs3(StyledWrapper, { hasError: !!errorMessage, children: [
|
|
1098
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ jsx19(
|
|
1099
1123
|
CheckboxContainer,
|
|
1100
1124
|
{
|
|
1101
1125
|
ref,
|
|
@@ -1103,12 +1127,12 @@ var Checkbox2 = forwardRef2(
|
|
|
1103
1127
|
onCheckedChange,
|
|
1104
1128
|
hasError: !!errorMessage,
|
|
1105
1129
|
...rest,
|
|
1106
|
-
children: /* @__PURE__ */
|
|
1130
|
+
children: /* @__PURE__ */ jsx19(CheckboxIndicator, { children: /* @__PURE__ */ jsx19(Icon, { name: "Check", size: 16, color: "white" }) })
|
|
1107
1131
|
}
|
|
1108
1132
|
),
|
|
1109
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ jsx19(CheckboxLabel, { children: label })
|
|
1110
1134
|
] }),
|
|
1111
|
-
errorMessage && /* @__PURE__ */
|
|
1135
|
+
errorMessage && /* @__PURE__ */ jsx19(Span, { children: errorMessage })
|
|
1112
1136
|
] });
|
|
1113
1137
|
}
|
|
1114
1138
|
);
|
|
@@ -1260,7 +1284,7 @@ var CharCounter = styled(Span2, {
|
|
|
1260
1284
|
});
|
|
1261
1285
|
|
|
1262
1286
|
// src/components/Input/index.tsx
|
|
1263
|
-
import { jsx as
|
|
1287
|
+
import { jsx as jsx20, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1264
1288
|
var Input2 = forwardRef3(
|
|
1265
1289
|
({ prefix, suffix, label, maxLength, showCounter = false, errorMessage, noMargin = false, redBorder, ...props }, forwardedRef) => {
|
|
1266
1290
|
const getDisplayValue = (value) => {
|
|
@@ -1307,7 +1331,7 @@ var Input2 = forwardRef3(
|
|
|
1307
1331
|
return type?.displayName === "Button";
|
|
1308
1332
|
};
|
|
1309
1333
|
return /* @__PURE__ */ jsxs4(StyledWrapper2, { children: [
|
|
1310
|
-
label && /* @__PURE__ */
|
|
1334
|
+
label && /* @__PURE__ */ jsx20(Label, { children: label }),
|
|
1311
1335
|
/* @__PURE__ */ jsxs4(
|
|
1312
1336
|
TextInputContainer,
|
|
1313
1337
|
{
|
|
@@ -1318,8 +1342,8 @@ var Input2 = forwardRef3(
|
|
|
1318
1342
|
onClick: handleContainerClick,
|
|
1319
1343
|
redBorder,
|
|
1320
1344
|
children: [
|
|
1321
|
-
!!prefix && /* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1345
|
+
!!prefix && /* @__PURE__ */ jsx20(Prefix, { children: prefix }),
|
|
1346
|
+
/* @__PURE__ */ jsx20(
|
|
1323
1347
|
Input,
|
|
1324
1348
|
{
|
|
1325
1349
|
ref: inputRef,
|
|
@@ -1331,12 +1355,12 @@ var Input2 = forwardRef3(
|
|
|
1331
1355
|
onChange: handleChange
|
|
1332
1356
|
}
|
|
1333
1357
|
),
|
|
1334
|
-
!!suffix && /* @__PURE__ */
|
|
1358
|
+
!!suffix && /* @__PURE__ */ jsx20(Suffix, { children: suffix })
|
|
1335
1359
|
]
|
|
1336
1360
|
}
|
|
1337
1361
|
),
|
|
1338
1362
|
/* @__PURE__ */ jsxs4(Footer, { children: [
|
|
1339
|
-
errorMessage && /* @__PURE__ */
|
|
1363
|
+
errorMessage && /* @__PURE__ */ jsx20(Span2, { children: errorMessage }),
|
|
1340
1364
|
showCounter && maxLength && /* @__PURE__ */ jsxs4(CharCounter, { hasReachedMax: maxLength ? charCount >= maxLength : false, children: [
|
|
1341
1365
|
charCount,
|
|
1342
1366
|
"/",
|
|
@@ -1477,7 +1501,7 @@ var SelectContainer = styled("div", {
|
|
|
1477
1501
|
});
|
|
1478
1502
|
|
|
1479
1503
|
// src/components/Datepicker/CustomSelect/index.tsx
|
|
1480
|
-
import { jsx as
|
|
1504
|
+
import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1481
1505
|
var CustomSelect = ({
|
|
1482
1506
|
options = [],
|
|
1483
1507
|
value,
|
|
@@ -1509,9 +1533,9 @@ var CustomSelect = ({
|
|
|
1509
1533
|
return /* @__PURE__ */ jsxs5(SelectContainer, { color, isOpen, ref: selectRef, children: [
|
|
1510
1534
|
/* @__PURE__ */ jsxs5(SelectValueButton, { onClick: handleToggle, children: [
|
|
1511
1535
|
selectedLabel,
|
|
1512
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ jsx21(IconWrapper, { children: /* @__PURE__ */ jsx21(Icon, { name: "TriangleDown", size: 16 }) })
|
|
1513
1537
|
] }),
|
|
1514
|
-
isOpen && /* @__PURE__ */
|
|
1538
|
+
isOpen && /* @__PURE__ */ jsx21(SelectOptionsList, { onMouseDown: (e) => e.preventDefault(), children: options.map((option) => /* @__PURE__ */ jsx21(
|
|
1515
1539
|
SelectOptionItem,
|
|
1516
1540
|
{
|
|
1517
1541
|
selected: option.value === value,
|
|
@@ -1525,7 +1549,7 @@ var CustomSelect = ({
|
|
|
1525
1549
|
};
|
|
1526
1550
|
|
|
1527
1551
|
// src/components/Datepicker/DatePickerSelectAdapter.tsx
|
|
1528
|
-
import { jsx as
|
|
1552
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1529
1553
|
function DatePickerSelectAdapter(props) {
|
|
1530
1554
|
const { options, value, onChange } = props;
|
|
1531
1555
|
const handleValueChange = (newValue) => {
|
|
@@ -1548,7 +1572,7 @@ function DatePickerSelectAdapter(props) {
|
|
|
1548
1572
|
if (isYearDropdown) {
|
|
1549
1573
|
selectOptions.reverse();
|
|
1550
1574
|
}
|
|
1551
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx22(
|
|
1552
1576
|
CustomSelect,
|
|
1553
1577
|
{
|
|
1554
1578
|
color: "black",
|
|
@@ -1651,7 +1675,7 @@ var datePickerStyles = globalCss({
|
|
|
1651
1675
|
});
|
|
1652
1676
|
|
|
1653
1677
|
// src/components/Datepicker/index.tsx
|
|
1654
|
-
import { jsx as
|
|
1678
|
+
import { jsx as jsx23, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1655
1679
|
datePickerStyles();
|
|
1656
1680
|
var oneYearMore = new Date((/* @__PURE__ */ new Date()).getFullYear() + 1, 11);
|
|
1657
1681
|
var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessage, endDate = oneYearMore }, ref) => {
|
|
@@ -1685,7 +1709,7 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
|
|
|
1685
1709
|
}, [open, selected]);
|
|
1686
1710
|
const isOpenWithError = open && errorMessage ? true : false;
|
|
1687
1711
|
return /* @__PURE__ */ jsxs6("div", { children: [
|
|
1688
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ jsx23(
|
|
1689
1713
|
Input2,
|
|
1690
1714
|
{
|
|
1691
1715
|
ref: inputRef,
|
|
@@ -1694,13 +1718,13 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
|
|
|
1694
1718
|
onFocus: () => setOpen(true),
|
|
1695
1719
|
value: value || "",
|
|
1696
1720
|
readOnly: true,
|
|
1697
|
-
suffix: /* @__PURE__ */
|
|
1721
|
+
suffix: /* @__PURE__ */ jsx23(Icon, { name: "Calendar", size: 16 }),
|
|
1698
1722
|
noMargin: true,
|
|
1699
1723
|
errorMessage: open ? "" : errorMessage,
|
|
1700
1724
|
redBorder: isOpenWithError
|
|
1701
1725
|
}
|
|
1702
1726
|
),
|
|
1703
|
-
open && /* @__PURE__ */
|
|
1727
|
+
open && /* @__PURE__ */ jsx23(
|
|
1704
1728
|
"div",
|
|
1705
1729
|
{
|
|
1706
1730
|
ref: calendarRef,
|
|
@@ -1712,7 +1736,7 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
|
|
|
1712
1736
|
boxShadow: "0 2px 8px rgba(0,0,0,0.15)",
|
|
1713
1737
|
borderRadius: "8px"
|
|
1714
1738
|
},
|
|
1715
|
-
children: /* @__PURE__ */
|
|
1739
|
+
children: /* @__PURE__ */ jsx23(
|
|
1716
1740
|
DayPicker2,
|
|
1717
1741
|
{
|
|
1718
1742
|
mode: "single",
|
|
@@ -1726,8 +1750,8 @@ var Datepicker = forwardRef4(({ label, placeholder, value, onChange, errorMessag
|
|
|
1726
1750
|
startMonth: new Date(1915, 0),
|
|
1727
1751
|
endMonth: endDate,
|
|
1728
1752
|
components: {
|
|
1729
|
-
PreviousMonthButton: (props) => /* @__PURE__ */
|
|
1730
|
-
NextMonthButton: (props) => /* @__PURE__ */
|
|
1753
|
+
PreviousMonthButton: (props) => /* @__PURE__ */ jsx23(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx23(Icon, { name: "TriangleLeft", size: 16 }) }),
|
|
1754
|
+
NextMonthButton: (props) => /* @__PURE__ */ jsx23(Button, { size: "sm", variant: "secondary", ...props, children: /* @__PURE__ */ jsx23(Icon, { name: "TriangleRight", size: 16 }) }),
|
|
1731
1755
|
Dropdown: DatePickerSelectAdapter
|
|
1732
1756
|
}
|
|
1733
1757
|
}
|
|
@@ -1740,7 +1764,7 @@ Datepicker.displayName = "Datepicker";
|
|
|
1740
1764
|
|
|
1741
1765
|
// src/components/Hr.tsx
|
|
1742
1766
|
import { forwardRef as forwardRef5 } from "react";
|
|
1743
|
-
import { jsx as
|
|
1767
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1744
1768
|
var StyledHr = styled("hr", {
|
|
1745
1769
|
border: "none",
|
|
1746
1770
|
height: "1px",
|
|
@@ -1757,7 +1781,7 @@ var StyledHr = styled("hr", {
|
|
|
1757
1781
|
}
|
|
1758
1782
|
});
|
|
1759
1783
|
var Hr = forwardRef5(function Hr2({ children, ...props }, ref) {
|
|
1760
|
-
return /* @__PURE__ */
|
|
1784
|
+
return /* @__PURE__ */ jsx24(StyledHr, { ref, ...props, children });
|
|
1761
1785
|
});
|
|
1762
1786
|
Hr.displayName = "Hr";
|
|
1763
1787
|
|
|
@@ -1834,19 +1858,19 @@ var StyledChildren = styled("div", {
|
|
|
1834
1858
|
});
|
|
1835
1859
|
|
|
1836
1860
|
// src/components/Modal/index.tsx
|
|
1837
|
-
import { jsx as
|
|
1861
|
+
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1838
1862
|
var Modal = ({ open, onOpenChange, title, description, children }) => {
|
|
1839
|
-
return /* @__PURE__ */
|
|
1840
|
-
/* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx25(Dialog2.Root, { open, onOpenChange, modal: true, children: /* @__PURE__ */ jsxs7(Dialog2.Portal, { children: [
|
|
1864
|
+
/* @__PURE__ */ jsx25(StyledOverlay, {}),
|
|
1841
1865
|
/* @__PURE__ */ jsxs7(StyledContent, { children: [
|
|
1842
1866
|
/* @__PURE__ */ jsxs7(Wrapper, { children: [
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ jsx25(StyledTitle, { children: title }),
|
|
1868
|
+
/* @__PURE__ */ jsx25(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ jsx25(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx25(Icon, { name: "Closed", size: 8 }) }) })
|
|
1845
1869
|
] }),
|
|
1846
|
-
/* @__PURE__ */
|
|
1870
|
+
/* @__PURE__ */ jsx25(StyledDivider, {}),
|
|
1847
1871
|
/* @__PURE__ */ jsxs7("div", { children: [
|
|
1848
|
-
description && /* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1872
|
+
description && /* @__PURE__ */ jsx25(StyledDescription, { children: description }),
|
|
1873
|
+
/* @__PURE__ */ jsx25(StyledChildren, { children })
|
|
1850
1874
|
] })
|
|
1851
1875
|
] })
|
|
1852
1876
|
] }) });
|
|
@@ -1883,7 +1907,7 @@ var StyledIndicator = styled(Progress.Indicator, {
|
|
|
1883
1907
|
});
|
|
1884
1908
|
|
|
1885
1909
|
// src/components/ProgressBar/index.tsx
|
|
1886
|
-
import { jsx as
|
|
1910
|
+
import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1887
1911
|
var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
|
|
1888
1912
|
const [progress2, setProgress] = useState5(0);
|
|
1889
1913
|
useEffect5(() => {
|
|
@@ -1892,14 +1916,14 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
|
|
|
1892
1916
|
}, [value]);
|
|
1893
1917
|
const valueLabel = `${Math.round(progress2 / max * 100)}%`;
|
|
1894
1918
|
return /* @__PURE__ */ jsxs8(StyledWrapper3, { children: [
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ jsx26("label", { style: { fontSize: 16, alignSelf: "flex-start", color: "black" }, children: label }),
|
|
1920
|
+
/* @__PURE__ */ jsx26(
|
|
1897
1921
|
StyledRoot,
|
|
1898
1922
|
{
|
|
1899
1923
|
value: progress2,
|
|
1900
1924
|
"aria-valuetext": valueLabel,
|
|
1901
1925
|
...rest,
|
|
1902
|
-
children: /* @__PURE__ */
|
|
1926
|
+
children: /* @__PURE__ */ jsx26(
|
|
1903
1927
|
StyledIndicator,
|
|
1904
1928
|
{
|
|
1905
1929
|
style: { transform: `translateX(-${100 - progress2}%)` }
|
|
@@ -2006,7 +2030,7 @@ var Span3 = styled("span", {
|
|
|
2006
2030
|
});
|
|
2007
2031
|
|
|
2008
2032
|
// src/components/Radio/index.tsx
|
|
2009
|
-
import { jsx as
|
|
2033
|
+
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2010
2034
|
var Radio = forwardRef6(({
|
|
2011
2035
|
labels,
|
|
2012
2036
|
value,
|
|
@@ -2016,7 +2040,7 @@ var Radio = forwardRef6(({
|
|
|
2016
2040
|
errorMessage
|
|
2017
2041
|
}, ref) => {
|
|
2018
2042
|
return /* @__PURE__ */ jsxs9("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
|
|
2019
|
-
/* @__PURE__ */
|
|
2043
|
+
/* @__PURE__ */ jsx27(
|
|
2020
2044
|
StyledRoot2,
|
|
2021
2045
|
{
|
|
2022
2046
|
ref,
|
|
@@ -2027,27 +2051,27 @@ var Radio = forwardRef6(({
|
|
|
2027
2051
|
required,
|
|
2028
2052
|
loop: true,
|
|
2029
2053
|
children: labels.map((label, index) => /* @__PURE__ */ jsxs9(Wrapper2, { children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ jsx27(
|
|
2031
2055
|
StyledItem,
|
|
2032
2056
|
{
|
|
2033
2057
|
value: label,
|
|
2034
2058
|
id: `radio-${index}`,
|
|
2035
2059
|
"aria-label": label,
|
|
2036
2060
|
hasError: !!errorMessage,
|
|
2037
|
-
children: /* @__PURE__ */
|
|
2061
|
+
children: /* @__PURE__ */ jsx27(StyledIndicator2, {})
|
|
2038
2062
|
}
|
|
2039
2063
|
),
|
|
2040
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ jsx27(ItemLabel, { htmlFor: `radio-${index}`, children: label })
|
|
2041
2065
|
] }, label))
|
|
2042
2066
|
}
|
|
2043
2067
|
),
|
|
2044
|
-
errorMessage && /* @__PURE__ */
|
|
2068
|
+
errorMessage && /* @__PURE__ */ jsx27(Span3, { children: errorMessage })
|
|
2045
2069
|
] });
|
|
2046
2070
|
});
|
|
2047
2071
|
Radio.displayName = "Radio";
|
|
2048
2072
|
|
|
2049
2073
|
// src/components/Spacing.tsx
|
|
2050
|
-
import { jsx as
|
|
2074
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2051
2075
|
var spacingMap = {
|
|
2052
2076
|
xs: 8,
|
|
2053
2077
|
sm: 12,
|
|
@@ -2059,7 +2083,7 @@ var spacingMap = {
|
|
|
2059
2083
|
};
|
|
2060
2084
|
var Spacing = ({ size, axis = "vertical" }) => {
|
|
2061
2085
|
const style = axis === "vertical" ? { height: spacingMap[size], width: "100%" } : { width: spacingMap[size], height: "100%" };
|
|
2062
|
-
return /* @__PURE__ */
|
|
2086
|
+
return /* @__PURE__ */ jsx28("div", { style, "data-testid": `spacing-${size}-${axis}` });
|
|
2063
2087
|
};
|
|
2064
2088
|
|
|
2065
2089
|
// src/components/Switch/index.tsx
|
|
@@ -2160,7 +2184,7 @@ var Span4 = styled("span", {
|
|
|
2160
2184
|
});
|
|
2161
2185
|
|
|
2162
2186
|
// src/components/Switch/index.tsx
|
|
2163
|
-
import { jsx as
|
|
2187
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2164
2188
|
var Switch2 = forwardRef7(({
|
|
2165
2189
|
label,
|
|
2166
2190
|
checked,
|
|
@@ -2173,7 +2197,7 @@ var Switch2 = forwardRef7(({
|
|
|
2173
2197
|
}, ref) => {
|
|
2174
2198
|
return /* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
|
|
2175
2199
|
/* @__PURE__ */ jsxs10(Wrapper3, { hasError: !!errorMessage, children: [
|
|
2176
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ jsx29(
|
|
2177
2201
|
StyledRoot3,
|
|
2178
2202
|
{
|
|
2179
2203
|
ref,
|
|
@@ -2184,12 +2208,12 @@ var Switch2 = forwardRef7(({
|
|
|
2184
2208
|
hasError: !!errorMessage,
|
|
2185
2209
|
disabled,
|
|
2186
2210
|
required,
|
|
2187
|
-
children: /* @__PURE__ */
|
|
2211
|
+
children: /* @__PURE__ */ jsx29(StyledThumb, {})
|
|
2188
2212
|
}
|
|
2189
2213
|
),
|
|
2190
|
-
label && /* @__PURE__ */
|
|
2214
|
+
label && /* @__PURE__ */ jsx29(Label2, { htmlFor: id, children: label })
|
|
2191
2215
|
] }),
|
|
2192
|
-
errorMessage && /* @__PURE__ */
|
|
2216
|
+
errorMessage && /* @__PURE__ */ jsx29(Span4, { children: errorMessage })
|
|
2193
2217
|
] });
|
|
2194
2218
|
});
|
|
2195
2219
|
Switch2.displayName = "Switch";
|
|
@@ -2275,9 +2299,9 @@ var TabsContent = styled(Tabs.Content, {
|
|
|
2275
2299
|
});
|
|
2276
2300
|
|
|
2277
2301
|
// src/components/Tabs/index.tsx
|
|
2278
|
-
import { Fragment, jsx as
|
|
2302
|
+
import { Fragment, jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2279
2303
|
var TabsItem = ({ children }) => {
|
|
2280
|
-
return /* @__PURE__ */
|
|
2304
|
+
return /* @__PURE__ */ jsx30(Fragment, { children });
|
|
2281
2305
|
};
|
|
2282
2306
|
var Tabs2 = ({ defaultValue, colorContent, children, value, onValueChange }) => {
|
|
2283
2307
|
const items = [];
|
|
@@ -2336,21 +2360,21 @@ var Tabs2 = ({ defaultValue, colorContent, children, value, onValueChange }) =>
|
|
|
2336
2360
|
onValueChange,
|
|
2337
2361
|
children: [
|
|
2338
2362
|
/* @__PURE__ */ jsxs11("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
2339
|
-
hasOverflow && /* @__PURE__ */
|
|
2363
|
+
hasOverflow && /* @__PURE__ */ jsx30(
|
|
2340
2364
|
Button,
|
|
2341
2365
|
{
|
|
2342
2366
|
variant: "secondary",
|
|
2343
2367
|
size: "sm",
|
|
2344
2368
|
onClick: () => scroll("left"),
|
|
2345
|
-
children: /* @__PURE__ */
|
|
2369
|
+
children: /* @__PURE__ */ jsx30(Icon, { name: "TriangleLeft", size: 64 })
|
|
2346
2370
|
}
|
|
2347
2371
|
),
|
|
2348
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx30(
|
|
2349
2373
|
TabsList,
|
|
2350
2374
|
{
|
|
2351
2375
|
ref: listRef,
|
|
2352
2376
|
scrollable: hasOverflow,
|
|
2353
|
-
children: items.map((item) => /* @__PURE__ */
|
|
2377
|
+
children: items.map((item) => /* @__PURE__ */ jsx30(
|
|
2354
2378
|
TabsTrigger,
|
|
2355
2379
|
{
|
|
2356
2380
|
value: item.value,
|
|
@@ -2361,17 +2385,17 @@ var Tabs2 = ({ defaultValue, colorContent, children, value, onValueChange }) =>
|
|
|
2361
2385
|
))
|
|
2362
2386
|
}
|
|
2363
2387
|
),
|
|
2364
|
-
hasOverflow && /* @__PURE__ */
|
|
2388
|
+
hasOverflow && /* @__PURE__ */ jsx30(
|
|
2365
2389
|
Button,
|
|
2366
2390
|
{
|
|
2367
2391
|
variant: "secondary",
|
|
2368
2392
|
size: "sm",
|
|
2369
2393
|
onClick: () => scroll("right"),
|
|
2370
|
-
children: /* @__PURE__ */
|
|
2394
|
+
children: /* @__PURE__ */ jsx30(Icon, { name: "TriangleRight", size: 64 })
|
|
2371
2395
|
}
|
|
2372
2396
|
)
|
|
2373
2397
|
] }),
|
|
2374
|
-
items.map((item) => /* @__PURE__ */
|
|
2398
|
+
items.map((item) => /* @__PURE__ */ jsx30(
|
|
2375
2399
|
TabsContent,
|
|
2376
2400
|
{
|
|
2377
2401
|
colorContent,
|
|
@@ -2389,7 +2413,7 @@ Tabs2.Item = TabsItem;
|
|
|
2389
2413
|
|
|
2390
2414
|
// src/components/TextArea.tsx
|
|
2391
2415
|
import { forwardRef as forwardRef8, useEffect as useEffect6, useState as useState7 } from "react";
|
|
2392
|
-
import { jsx as
|
|
2416
|
+
import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2393
2417
|
var Wrapper4 = styled("div", {
|
|
2394
2418
|
display: "flex",
|
|
2395
2419
|
flexDirection: "column"
|
|
@@ -2503,8 +2527,8 @@ var TextArea = forwardRef8(
|
|
|
2503
2527
|
setCharCount(props.value?.toString().length || 0);
|
|
2504
2528
|
}, [props.value]);
|
|
2505
2529
|
return /* @__PURE__ */ jsxs12(Wrapper4, { children: [
|
|
2506
|
-
label && /* @__PURE__ */
|
|
2507
|
-
/* @__PURE__ */
|
|
2530
|
+
label && /* @__PURE__ */ jsx31(StyledLabel2, { htmlFor: textAreaId, children: label }),
|
|
2531
|
+
/* @__PURE__ */ jsx31(
|
|
2508
2532
|
TextAreaElement,
|
|
2509
2533
|
{
|
|
2510
2534
|
id: textAreaId,
|
|
@@ -2522,7 +2546,7 @@ var TextArea = forwardRef8(
|
|
|
2522
2546
|
}
|
|
2523
2547
|
),
|
|
2524
2548
|
/* @__PURE__ */ jsxs12(Footer2, { children: [
|
|
2525
|
-
errorMessage && /* @__PURE__ */
|
|
2549
|
+
errorMessage && /* @__PURE__ */ jsx31(Span5, { children: errorMessage }),
|
|
2526
2550
|
showCounter && maxLength && /* @__PURE__ */ jsxs12(CharCounter2, { hasReachedMax: maxLength ? charCount >= maxLength : false, children: [
|
|
2527
2551
|
charCount,
|
|
2528
2552
|
"/",
|
|
@@ -2586,7 +2610,7 @@ var TooltipArrow = styled(RadixTooltip.Arrow, {
|
|
|
2586
2610
|
|
|
2587
2611
|
// src/components/Tooltip/index.tsx
|
|
2588
2612
|
import { useState as useState8, useEffect as useEffect7 } from "react";
|
|
2589
|
-
import { jsx as
|
|
2613
|
+
import { jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2590
2614
|
var Tooltip = ({
|
|
2591
2615
|
content,
|
|
2592
2616
|
children,
|
|
@@ -2609,11 +2633,11 @@ var Tooltip = ({
|
|
|
2609
2633
|
setOpen(!open);
|
|
2610
2634
|
}
|
|
2611
2635
|
};
|
|
2612
|
-
return /* @__PURE__ */
|
|
2613
|
-
/* @__PURE__ */
|
|
2636
|
+
return /* @__PURE__ */ jsx32(RadixTooltip2.Provider, { children: /* @__PURE__ */ jsxs13(RadixTooltip2.Root, { open, onOpenChange: setOpen, delayDuration, children: [
|
|
2637
|
+
/* @__PURE__ */ jsx32(TooltipTrigger, { asChild: true, onClick: handleClick, children }),
|
|
2614
2638
|
/* @__PURE__ */ jsxs13(TooltipContent, { side, sideOffset, children: [
|
|
2615
2639
|
content,
|
|
2616
|
-
/* @__PURE__ */
|
|
2640
|
+
/* @__PURE__ */ jsx32(TooltipArrow, {})
|
|
2617
2641
|
] })
|
|
2618
2642
|
] }) });
|
|
2619
2643
|
};
|
|
@@ -2697,9 +2721,9 @@ var Spinner = styled("span", {
|
|
|
2697
2721
|
});
|
|
2698
2722
|
|
|
2699
2723
|
// src/components/Loader/index.tsx
|
|
2700
|
-
import { jsx as
|
|
2724
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2701
2725
|
var Loader = ({ show, fullscreen = false }) => {
|
|
2702
|
-
return /* @__PURE__ */
|
|
2726
|
+
return /* @__PURE__ */ jsx33(Overlay2, { show, fullscreen, children: /* @__PURE__ */ jsx33(SpinnerContainer, { children: /* @__PURE__ */ jsx33(Spinner, {}) }) });
|
|
2703
2727
|
};
|
|
2704
2728
|
Loader.displayName = "Loader";
|
|
2705
2729
|
|
|
@@ -2768,7 +2792,7 @@ var applyMask = (value, maskType) => {
|
|
|
2768
2792
|
};
|
|
2769
2793
|
|
|
2770
2794
|
// src/components/MaskedInput/index.tsx
|
|
2771
|
-
import { jsx as
|
|
2795
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2772
2796
|
var MaskedInput = forwardRef9(
|
|
2773
2797
|
({ maskType, onChange, ...props }, ref) => {
|
|
2774
2798
|
const [value, setValue] = useState9("");
|
|
@@ -2805,7 +2829,7 @@ var MaskedInput = forwardRef9(
|
|
|
2805
2829
|
onChange(syntheticEvent);
|
|
2806
2830
|
}
|
|
2807
2831
|
};
|
|
2808
|
-
return /* @__PURE__ */
|
|
2832
|
+
return /* @__PURE__ */ jsx34(
|
|
2809
2833
|
Input2,
|
|
2810
2834
|
{
|
|
2811
2835
|
...props,
|
|
@@ -2906,27 +2930,27 @@ var IconButton = styled("button", {
|
|
|
2906
2930
|
});
|
|
2907
2931
|
|
|
2908
2932
|
// src/components/Dropdown/index.tsx
|
|
2909
|
-
import { jsx as
|
|
2933
|
+
import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2910
2934
|
var Dropdown = ({ children }) => {
|
|
2911
2935
|
const childrenArray = Children2.toArray(children);
|
|
2912
2936
|
return /* @__PURE__ */ jsxs14(DropdownMenu2.Root, { modal: false, children: [
|
|
2913
|
-
/* @__PURE__ */
|
|
2914
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ jsx35(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx35(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx35(Icon, { name: "Dots", size: 16 }) }) }),
|
|
2938
|
+
/* @__PURE__ */ jsx35(DropdownMenu2.Portal, { children: /* @__PURE__ */ jsx35(StyledContent2, { sideOffset: 5, align: "end", children: childrenArray.map((child, index) => /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
2915
2939
|
child,
|
|
2916
|
-
index < childrenArray.length - 1 && /* @__PURE__ */
|
|
2940
|
+
index < childrenArray.length - 1 && /* @__PURE__ */ jsx35(DropdownSeparator, {})
|
|
2917
2941
|
] }, index)) }) })
|
|
2918
2942
|
] });
|
|
2919
2943
|
};
|
|
2920
2944
|
var DropdownSeparator = StyledSeparator;
|
|
2921
2945
|
var DropdownItem = React3.forwardRef(({ children, ...props }, forwardedRef) => {
|
|
2922
|
-
return /* @__PURE__ */
|
|
2946
|
+
return /* @__PURE__ */ jsx35(StyledItem2, { ...props, ref: forwardedRef, children });
|
|
2923
2947
|
});
|
|
2924
2948
|
Dropdown.displayName = "Dropdown";
|
|
2925
2949
|
DropdownItem.displayName = "DropdownItem";
|
|
2926
2950
|
DropdownSeparator.displayName = "DropdownSeparator";
|
|
2927
2951
|
|
|
2928
2952
|
// src/components/Box.tsx
|
|
2929
|
-
import { jsx as
|
|
2953
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2930
2954
|
var StyledBox = styled("div", {
|
|
2931
2955
|
padding: "$5",
|
|
2932
2956
|
borderRadius: "$md",
|
|
@@ -2948,12 +2972,12 @@ var StyledBox = styled("div", {
|
|
|
2948
2972
|
}
|
|
2949
2973
|
});
|
|
2950
2974
|
var Box = (props) => {
|
|
2951
|
-
return /* @__PURE__ */
|
|
2975
|
+
return /* @__PURE__ */ jsx36(StyledBox, { ...props });
|
|
2952
2976
|
};
|
|
2953
2977
|
Box.displayName = "Box";
|
|
2954
2978
|
|
|
2955
2979
|
// src/components/Paragraph.tsx
|
|
2956
|
-
import { jsx as
|
|
2980
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2957
2981
|
var StyledParagraph = styled("p", {
|
|
2958
2982
|
fontFamily: "$default",
|
|
2959
2983
|
lineHeight: "$short",
|
|
@@ -2995,13 +3019,13 @@ var StyledParagraph = styled("p", {
|
|
|
2995
3019
|
}
|
|
2996
3020
|
});
|
|
2997
3021
|
var Paragraph = (props) => {
|
|
2998
|
-
return /* @__PURE__ */
|
|
3022
|
+
return /* @__PURE__ */ jsx37(StyledParagraph, { ...props });
|
|
2999
3023
|
};
|
|
3000
3024
|
Paragraph.displayName = "Paragraph";
|
|
3001
3025
|
|
|
3002
3026
|
// src/components/Heading.tsx
|
|
3003
3027
|
import { forwardRef as forwardRef10 } from "react";
|
|
3004
|
-
import { jsx as
|
|
3028
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3005
3029
|
var StyledHeading = styled("h2", {
|
|
3006
3030
|
fontFamily: "$default",
|
|
3007
3031
|
lineHeight: "$shorter",
|
|
@@ -3034,7 +3058,7 @@ var StyledHeading = styled("h2", {
|
|
|
3034
3058
|
});
|
|
3035
3059
|
var Heading = forwardRef10(
|
|
3036
3060
|
function Heading2({ children, bold = false, ...props }, ref) {
|
|
3037
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ jsx38(StyledHeading, { ref, bold, ...props, children });
|
|
3038
3062
|
}
|
|
3039
3063
|
);
|
|
3040
3064
|
Heading.displayName = "Heading";
|
|
@@ -3174,7 +3198,7 @@ var Span6 = styled("span", {
|
|
|
3174
3198
|
});
|
|
3175
3199
|
|
|
3176
3200
|
// src/components/Select/index.tsx
|
|
3177
|
-
import { jsx as
|
|
3201
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3178
3202
|
var Select2 = forwardRef11(
|
|
3179
3203
|
({
|
|
3180
3204
|
value,
|
|
@@ -3190,7 +3214,7 @@ var Select2 = forwardRef11(
|
|
|
3190
3214
|
}, ref) => {
|
|
3191
3215
|
const [open, setOpen] = useState10(false);
|
|
3192
3216
|
return /* @__PURE__ */ jsxs15(StyledWrapper4, { css: css2, className, style, children: [
|
|
3193
|
-
label && /* @__PURE__ */
|
|
3217
|
+
label && /* @__PURE__ */ jsx39(Label3, { children: label }),
|
|
3194
3218
|
/* @__PURE__ */ jsxs15(
|
|
3195
3219
|
CustomSelect2.Root,
|
|
3196
3220
|
{
|
|
@@ -3200,14 +3224,14 @@ var Select2 = forwardRef11(
|
|
|
3200
3224
|
...rest,
|
|
3201
3225
|
children: [
|
|
3202
3226
|
/* @__PURE__ */ jsxs15(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, ref, children: [
|
|
3203
|
-
/* @__PURE__ */
|
|
3204
|
-
/* @__PURE__ */
|
|
3227
|
+
/* @__PURE__ */ jsx39(CustomSelect2.Value, { placeholder }),
|
|
3228
|
+
/* @__PURE__ */ jsx39(StyledIcon, { open, children: /* @__PURE__ */ jsx39(TriangleDownIcon, {}) })
|
|
3205
3229
|
] }),
|
|
3206
|
-
errorMessage && /* @__PURE__ */
|
|
3207
|
-
/* @__PURE__ */
|
|
3208
|
-
/* @__PURE__ */
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
/* @__PURE__ */
|
|
3230
|
+
errorMessage && /* @__PURE__ */ jsx39(Span6, { children: errorMessage }),
|
|
3231
|
+
/* @__PURE__ */ jsx39(CustomSelect2.Portal, { children: /* @__PURE__ */ jsxs15(StyledContent3, { side: "bottom", align: "start", position: "popper", children: [
|
|
3232
|
+
/* @__PURE__ */ jsx39(CustomSelect2.ScrollUpButton, { children: /* @__PURE__ */ jsx39(TriangleUpIcon, {}) }),
|
|
3233
|
+
/* @__PURE__ */ jsx39(StyledViewport, { children: items.map((item) => /* @__PURE__ */ jsx39(StyledItem3, { value: item.value, children: /* @__PURE__ */ jsx39(StyledItemText, { children: item.label }) }, item.value)) }),
|
|
3234
|
+
/* @__PURE__ */ jsx39(CustomSelect2.ScrollDownButton, { children: /* @__PURE__ */ jsx39(TriangleDownIcon, {}) })
|
|
3211
3235
|
] }) })
|
|
3212
3236
|
]
|
|
3213
3237
|
}
|
|
@@ -3291,9 +3315,9 @@ var Value2 = styled("div", {
|
|
|
3291
3315
|
});
|
|
3292
3316
|
|
|
3293
3317
|
// src/components/LabelledValue/index.tsx
|
|
3294
|
-
import { jsx as
|
|
3318
|
+
import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3295
3319
|
function LabelledValue({ position = "vertical", withRow = false, children }) {
|
|
3296
|
-
return /* @__PURE__ */
|
|
3320
|
+
return /* @__PURE__ */ jsx40(Container, { position, children: Children3.map(children, (child) => {
|
|
3297
3321
|
if (isValidElement2(child)) {
|
|
3298
3322
|
return cloneElement(child, { position, withRow });
|
|
3299
3323
|
}
|
|
@@ -3302,8 +3326,8 @@ function LabelledValue({ position = "vertical", withRow = false, children }) {
|
|
|
3302
3326
|
}
|
|
3303
3327
|
function Item4({ label, value, position = "vertical", withRow = false }) {
|
|
3304
3328
|
return /* @__PURE__ */ jsxs16(ItemWrapper, { position, withRow, children: [
|
|
3305
|
-
/* @__PURE__ */
|
|
3306
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ jsx40(Label4, { children: label }),
|
|
3330
|
+
/* @__PURE__ */ jsx40(Value2, { children: value })
|
|
3307
3331
|
] });
|
|
3308
3332
|
}
|
|
3309
3333
|
LabelledValue.Item = Item4;
|
|
@@ -3375,10 +3399,10 @@ var Span7 = styled("span", {
|
|
|
3375
3399
|
});
|
|
3376
3400
|
|
|
3377
3401
|
// src/components/OneTimePassword/index.tsx
|
|
3378
|
-
import { jsx as
|
|
3402
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3379
3403
|
var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...rootProps }) => {
|
|
3380
|
-
return /* @__PURE__ */
|
|
3381
|
-
/* @__PURE__ */
|
|
3404
|
+
return /* @__PURE__ */ jsx41(Container2, { children: /* @__PURE__ */ jsxs17(StyledWrapper5, { children: [
|
|
3405
|
+
/* @__PURE__ */ jsx41(StyledLabel3, { children: label }),
|
|
3382
3406
|
/* @__PURE__ */ jsxs17(
|
|
3383
3407
|
StyledRoot4,
|
|
3384
3408
|
{
|
|
@@ -3387,12 +3411,12 @@ var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...r
|
|
|
3387
3411
|
...rootProps,
|
|
3388
3412
|
style: { "--otp-length": length },
|
|
3389
3413
|
children: [
|
|
3390
|
-
Array.from({ length }).map((_, index) => /* @__PURE__ */
|
|
3391
|
-
/* @__PURE__ */
|
|
3414
|
+
Array.from({ length }).map((_, index) => /* @__PURE__ */ jsx41(StyledInput, {}, index)),
|
|
3415
|
+
/* @__PURE__ */ jsx41(OneTimePasswordField2.HiddenInput, {})
|
|
3392
3416
|
]
|
|
3393
3417
|
}
|
|
3394
3418
|
),
|
|
3395
|
-
errorMessage && /* @__PURE__ */
|
|
3419
|
+
errorMessage && /* @__PURE__ */ jsx41(Span7, { children: errorMessage })
|
|
3396
3420
|
] }) });
|
|
3397
3421
|
};
|
|
3398
3422
|
OneTimePassword.displayName = "OneTimePasswordInput";
|
|
@@ -3562,7 +3586,7 @@ var toast = {
|
|
|
3562
3586
|
};
|
|
3563
3587
|
|
|
3564
3588
|
// src/components/Toast/index.tsx
|
|
3565
|
-
import { jsx as
|
|
3589
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3566
3590
|
var Toast = () => {
|
|
3567
3591
|
const [messages, setMessages] = React4.useState([]);
|
|
3568
3592
|
const [paused, setPaused] = React4.useState(false);
|
|
@@ -3593,10 +3617,10 @@ var Toast = () => {
|
|
|
3593
3617
|
onResume: () => setPaused(false),
|
|
3594
3618
|
children: [
|
|
3595
3619
|
/* @__PURE__ */ jsxs18(ToastContent, { children: [
|
|
3596
|
-
/* @__PURE__ */
|
|
3597
|
-
message.description && /* @__PURE__ */
|
|
3620
|
+
/* @__PURE__ */ jsx42(ToastTitle, { children: message.title }),
|
|
3621
|
+
message.description && /* @__PURE__ */ jsx42(ToastDescription, { children: message.description })
|
|
3598
3622
|
] }),
|
|
3599
|
-
/* @__PURE__ */
|
|
3623
|
+
/* @__PURE__ */ jsx42(ToastAction, { altText: "Fechar", asChild: true, children: /* @__PURE__ */ jsx42(
|
|
3600
3624
|
"button",
|
|
3601
3625
|
{
|
|
3602
3626
|
style: {
|
|
@@ -3606,15 +3630,15 @@ var Toast = () => {
|
|
|
3606
3630
|
alignItems: "center"
|
|
3607
3631
|
},
|
|
3608
3632
|
onClick: () => removeToast(message.id),
|
|
3609
|
-
children: /* @__PURE__ */
|
|
3633
|
+
children: /* @__PURE__ */ jsx42(Icon, { name: "Closed", size: 16, height: 14, width: 14 })
|
|
3610
3634
|
}
|
|
3611
3635
|
) }),
|
|
3612
|
-
/* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ jsx42(ToastProgress, { paused, variant: message.variant })
|
|
3613
3637
|
]
|
|
3614
3638
|
},
|
|
3615
3639
|
message.id
|
|
3616
3640
|
)),
|
|
3617
|
-
/* @__PURE__ */
|
|
3641
|
+
/* @__PURE__ */ jsx42(ToastViewport, {})
|
|
3618
3642
|
] });
|
|
3619
3643
|
};
|
|
3620
3644
|
|
|
@@ -3849,14 +3873,14 @@ var StepLabel = styled("span", {
|
|
|
3849
3873
|
});
|
|
3850
3874
|
|
|
3851
3875
|
// src/components/MultiStep/index.tsx
|
|
3852
|
-
import { jsx as
|
|
3876
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3853
3877
|
var MultiStep = ({
|
|
3854
3878
|
steps,
|
|
3855
3879
|
currentStep,
|
|
3856
3880
|
orientation = "horizontal",
|
|
3857
3881
|
variant
|
|
3858
3882
|
}) => {
|
|
3859
|
-
return /* @__PURE__ */
|
|
3883
|
+
return /* @__PURE__ */ jsx43(
|
|
3860
3884
|
Wrapper5,
|
|
3861
3885
|
{
|
|
3862
3886
|
orientation,
|
|
@@ -3864,7 +3888,7 @@ var MultiStep = ({
|
|
|
3864
3888
|
const isFirst = index === 0;
|
|
3865
3889
|
const isLast = index === steps.length - 1;
|
|
3866
3890
|
return /* @__PURE__ */ jsxs19(StepItem, { orientation, children: [
|
|
3867
|
-
/* @__PURE__ */
|
|
3891
|
+
/* @__PURE__ */ jsx43(
|
|
3868
3892
|
StepCircle,
|
|
3869
3893
|
{
|
|
3870
3894
|
orientation,
|
|
@@ -3875,7 +3899,7 @@ var MultiStep = ({
|
|
|
3875
3899
|
children: index + 1
|
|
3876
3900
|
}
|
|
3877
3901
|
),
|
|
3878
|
-
/* @__PURE__ */
|
|
3902
|
+
/* @__PURE__ */ jsx43(
|
|
3879
3903
|
StepLabel,
|
|
3880
3904
|
{
|
|
3881
3905
|
orientation,
|
|
@@ -4005,7 +4029,7 @@ var CarouselItemContainer = styled("div", {
|
|
|
4005
4029
|
});
|
|
4006
4030
|
|
|
4007
4031
|
// src/components/Carousel/index.tsx
|
|
4008
|
-
import { jsx as
|
|
4032
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4009
4033
|
var SWIPE_THRESHOLD = 50;
|
|
4010
4034
|
var Carousel = ({ title, variant, children }) => {
|
|
4011
4035
|
const items = Children4.toArray(children);
|
|
@@ -4050,9 +4074,9 @@ var Carousel = ({ title, variant, children }) => {
|
|
|
4050
4074
|
children: [
|
|
4051
4075
|
/* @__PURE__ */ jsxs20(Wrapper6, { variant, children: [
|
|
4052
4076
|
/* @__PURE__ */ jsxs20(CarouselHeader, { children: [
|
|
4053
|
-
/* @__PURE__ */
|
|
4077
|
+
/* @__PURE__ */ jsx44(Title2, { children: itemTitle ?? title }),
|
|
4054
4078
|
/* @__PURE__ */ jsxs20(Navigation, { children: [
|
|
4055
|
-
/* @__PURE__ */
|
|
4079
|
+
/* @__PURE__ */ jsx44(
|
|
4056
4080
|
Button,
|
|
4057
4081
|
{
|
|
4058
4082
|
size: "sm",
|
|
@@ -4060,10 +4084,10 @@ var Carousel = ({ title, variant, children }) => {
|
|
|
4060
4084
|
"aria-label": "Previous Slide",
|
|
4061
4085
|
onClick: prev,
|
|
4062
4086
|
tabIndex: 0,
|
|
4063
|
-
children: /* @__PURE__ */
|
|
4087
|
+
children: /* @__PURE__ */ jsx44(Icon, { name: "TriangleLeft", size: 16, color: variant === "purple" ? "white" : "black" })
|
|
4064
4088
|
}
|
|
4065
4089
|
),
|
|
4066
|
-
/* @__PURE__ */
|
|
4090
|
+
/* @__PURE__ */ jsx44(
|
|
4067
4091
|
Button,
|
|
4068
4092
|
{
|
|
4069
4093
|
size: "sm",
|
|
@@ -4071,15 +4095,15 @@ var Carousel = ({ title, variant, children }) => {
|
|
|
4071
4095
|
"aria-label": "Previous Slide",
|
|
4072
4096
|
onClick: next,
|
|
4073
4097
|
tabIndex: 0,
|
|
4074
|
-
children: /* @__PURE__ */
|
|
4098
|
+
children: /* @__PURE__ */ jsx44(Icon, { name: "TriangleRight", size: 16, color: variant === "purple" ? "white" : "black" })
|
|
4075
4099
|
}
|
|
4076
4100
|
)
|
|
4077
4101
|
] })
|
|
4078
4102
|
] }),
|
|
4079
|
-
/* @__PURE__ */
|
|
4080
|
-
/* @__PURE__ */
|
|
4081
|
-
/* @__PURE__ */
|
|
4082
|
-
/* @__PURE__ */
|
|
4103
|
+
/* @__PURE__ */ jsx44(Spacing, { size: "xs" }),
|
|
4104
|
+
/* @__PURE__ */ jsx44(Hr, { variant }),
|
|
4105
|
+
/* @__PURE__ */ jsx44(Spacing, { size: "xs" }),
|
|
4106
|
+
/* @__PURE__ */ jsx44(
|
|
4083
4107
|
CarouselContent,
|
|
4084
4108
|
{
|
|
4085
4109
|
onTouchStart,
|
|
@@ -4096,9 +4120,9 @@ var Carousel = ({ title, variant, children }) => {
|
|
|
4096
4120
|
}
|
|
4097
4121
|
)
|
|
4098
4122
|
] }),
|
|
4099
|
-
/* @__PURE__ */
|
|
4100
|
-
/* @__PURE__ */
|
|
4101
|
-
(page, index) => typeof page === "number" ? /* @__PURE__ */
|
|
4123
|
+
/* @__PURE__ */ jsx44(Spacing, { size: "md" }),
|
|
4124
|
+
/* @__PURE__ */ jsx44(DotsContainer, { children: /* @__PURE__ */ jsx44(Dots2, { role: "tablist", "aria-label": "Carousel Pagination", children: getPaginationItems(items.length, activeIndex).map(
|
|
4125
|
+
(page, index) => typeof page === "number" ? /* @__PURE__ */ jsx44(
|
|
4102
4126
|
DotButton,
|
|
4103
4127
|
{
|
|
4104
4128
|
active: page === activeIndex,
|
|
@@ -4109,7 +4133,7 @@ var Carousel = ({ title, variant, children }) => {
|
|
|
4109
4133
|
type: "button"
|
|
4110
4134
|
},
|
|
4111
4135
|
page
|
|
4112
|
-
) : /* @__PURE__ */
|
|
4136
|
+
) : /* @__PURE__ */ jsx44(Ellipsis, { children: "..." }, `ellipsis-${index}`)
|
|
4113
4137
|
) }) })
|
|
4114
4138
|
]
|
|
4115
4139
|
}
|
|
@@ -4127,12 +4151,12 @@ var getPaginationItems = (totalItems, activeIndex) => {
|
|
|
4127
4151
|
}
|
|
4128
4152
|
return [0, "...", activeIndex - 2, activeIndex - 1, activeIndex, activeIndex + 1, activeIndex + 2, "...", totalItems - 1];
|
|
4129
4153
|
};
|
|
4130
|
-
var CarouselItem = ({ children, style, title, ...props }) => /* @__PURE__ */
|
|
4154
|
+
var CarouselItem = ({ children, style, title, ...props }) => /* @__PURE__ */ jsx44(CarouselItemContainer, { ...props, style: { ...style }, children });
|
|
4131
4155
|
Carousel.Item = CarouselItem;
|
|
4132
4156
|
|
|
4133
4157
|
// src/components/PasswordInput.tsx
|
|
4134
4158
|
import { forwardRef as forwardRef12, useImperativeHandle as useImperativeHandle2, useRef as useRef7, useState as useState13 } from "react";
|
|
4135
|
-
import { jsx as
|
|
4159
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4136
4160
|
var ToggleButton = styled("button", {
|
|
4137
4161
|
all: "unset",
|
|
4138
4162
|
cursor: "pointer",
|
|
@@ -4161,7 +4185,7 @@ var PasswordInput = forwardRef12(
|
|
|
4161
4185
|
}
|
|
4162
4186
|
}, 0);
|
|
4163
4187
|
};
|
|
4164
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx45(
|
|
4165
4189
|
Input2,
|
|
4166
4190
|
{
|
|
4167
4191
|
...props,
|
|
@@ -4169,14 +4193,14 @@ var PasswordInput = forwardRef12(
|
|
|
4169
4193
|
type: visible ? "text" : "password",
|
|
4170
4194
|
value,
|
|
4171
4195
|
onChange,
|
|
4172
|
-
suffix: /* @__PURE__ */
|
|
4196
|
+
suffix: /* @__PURE__ */ jsx45(
|
|
4173
4197
|
ToggleButton,
|
|
4174
4198
|
{
|
|
4175
4199
|
type: "button",
|
|
4176
4200
|
onClick: handleToggleVisibility,
|
|
4177
4201
|
onMouseDown: (e) => e.preventDefault(),
|
|
4178
4202
|
"aria-label": visible ? "Ocultar senha" : "Mostrar senha",
|
|
4179
|
-
children: visible ? /* @__PURE__ */
|
|
4203
|
+
children: visible ? /* @__PURE__ */ jsx45(Icon, { name: "EyeClosed", size: 16, color: "black" }) : /* @__PURE__ */ jsx45(Icon, { name: "EyeOpen", size: 16, color: "black" })
|
|
4180
4204
|
}
|
|
4181
4205
|
)
|
|
4182
4206
|
}
|
|
@@ -4273,18 +4297,18 @@ var OptionsButton = styled(Button, {
|
|
|
4273
4297
|
});
|
|
4274
4298
|
|
|
4275
4299
|
// src/components/Accordion/index.tsx
|
|
4276
|
-
import { jsx as
|
|
4300
|
+
import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4277
4301
|
var Accordion2 = React6.forwardRef(
|
|
4278
4302
|
({ title, children, dropdownItems }, ref) => {
|
|
4279
|
-
return /* @__PURE__ */
|
|
4303
|
+
return /* @__PURE__ */ jsx46(AccordionContainer, { type: "single", collapsible: true, ref, children: /* @__PURE__ */ jsxs21(AccordionItem, { value: "item-1", children: [
|
|
4280
4304
|
/* @__PURE__ */ jsxs21(AccordionHeader, { children: [
|
|
4281
|
-
/* @__PURE__ */
|
|
4305
|
+
/* @__PURE__ */ jsx46(AccordionTrigger, { children: /* @__PURE__ */ jsx46("span", { children: title }) }),
|
|
4282
4306
|
/* @__PURE__ */ jsxs21(TriggerContent, { children: [
|
|
4283
4307
|
dropdownItems && dropdownItems,
|
|
4284
|
-
/* @__PURE__ */
|
|
4308
|
+
/* @__PURE__ */ jsx46(RadixAccordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsx46(StyledButton, { as: "div", variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx46(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) }) })
|
|
4285
4309
|
] })
|
|
4286
4310
|
] }),
|
|
4287
|
-
/* @__PURE__ */
|
|
4311
|
+
/* @__PURE__ */ jsx46(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ jsx46(AccordionContent, { children }) })
|
|
4288
4312
|
] }) });
|
|
4289
4313
|
}
|
|
4290
4314
|
);
|