@clickpalm/react 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +54 -49
- package/dist/index.js +167 -133
- package/dist/index.mjs +137 -103
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1069,7 +1069,8 @@ var CheckboxLabel = styled("label", {
|
|
|
1069
1069
|
display: "flex",
|
|
1070
1070
|
paddingLeft: "$3",
|
|
1071
1071
|
fontSize: "$md",
|
|
1072
|
-
lineHeight: "$base"
|
|
1072
|
+
lineHeight: "$base",
|
|
1073
|
+
color: "$black"
|
|
1073
1074
|
});
|
|
1074
1075
|
var Span = styled("span", {
|
|
1075
1076
|
fontFamily: "$default",
|
|
@@ -1140,7 +1141,7 @@ var TextInputContainer = styled("div", {
|
|
|
1140
1141
|
padding: "$4 $4",
|
|
1141
1142
|
marginBottom: "$6",
|
|
1142
1143
|
FontSize: "$md",
|
|
1143
|
-
"&:has(input:focus)": {
|
|
1144
|
+
"&:has(input:focus), &:hover": {
|
|
1144
1145
|
border: "2px solid $clickpalm_light"
|
|
1145
1146
|
},
|
|
1146
1147
|
"&:has(input:disabled)": {
|
|
@@ -1161,7 +1162,7 @@ var TextInputContainer = styled("div", {
|
|
|
1161
1162
|
true: {
|
|
1162
1163
|
border: "1px solid $danger_dark",
|
|
1163
1164
|
marginBottom: "0px",
|
|
1164
|
-
"&:has(input:focus)": {
|
|
1165
|
+
"&:has(input:focus), &:hover": {
|
|
1165
1166
|
border: "2px solid $danger_dark"
|
|
1166
1167
|
}
|
|
1167
1168
|
}
|
|
@@ -1426,43 +1427,43 @@ import * as Dialog2 from "@radix-ui/react-dialog";
|
|
|
1426
1427
|
|
|
1427
1428
|
// src/components/Modal/styles.ts
|
|
1428
1429
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
1429
|
-
|
|
1430
|
-
var StyledOverlay = styled2(Dialog.Overlay, {
|
|
1430
|
+
var StyledOverlay = styled(Dialog.Overlay, {
|
|
1431
1431
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
1432
1432
|
position: "fixed",
|
|
1433
1433
|
inset: 0,
|
|
1434
|
-
zIndex:
|
|
1434
|
+
zIndex: 101
|
|
1435
1435
|
});
|
|
1436
|
-
var StyledContent =
|
|
1436
|
+
var StyledContent = styled(Dialog.Content, {
|
|
1437
1437
|
position: "fixed",
|
|
1438
1438
|
top: "50%",
|
|
1439
1439
|
left: "50%",
|
|
1440
1440
|
display: "flex",
|
|
1441
1441
|
flexDirection: "column",
|
|
1442
|
-
padding: "$4",
|
|
1442
|
+
padding: "0 $4",
|
|
1443
1443
|
width: "90%",
|
|
1444
|
-
maxWidth: "
|
|
1444
|
+
maxWidth: "600px",
|
|
1445
1445
|
backgroundColor: "$white",
|
|
1446
1446
|
borderRadius: "$md",
|
|
1447
1447
|
boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
|
|
1448
1448
|
transform: "translate(-50%, -50%)",
|
|
1449
|
-
zIndex:
|
|
1450
|
-
fontFamily: "$default"
|
|
1449
|
+
zIndex: 102,
|
|
1450
|
+
fontFamily: "$default",
|
|
1451
|
+
fontWeight: "$regular"
|
|
1451
1452
|
});
|
|
1452
|
-
var Wrapper =
|
|
1453
|
+
var Wrapper = styled("div", {
|
|
1453
1454
|
display: "flex",
|
|
1454
1455
|
justifyContent: "space-between",
|
|
1455
1456
|
alignItems: "center"
|
|
1456
1457
|
});
|
|
1457
|
-
var StyledTitle =
|
|
1458
|
+
var StyledTitle = styled(Dialog.Title, {
|
|
1458
1459
|
fontSize: "$lg",
|
|
1459
|
-
fontWeight: "bold"
|
|
1460
|
+
fontWeight: "bold",
|
|
1461
|
+
color: "$black"
|
|
1460
1462
|
});
|
|
1461
|
-
var StyledClose =
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
right: "16px",
|
|
1463
|
+
var StyledClose = styled(Dialog.Close, {
|
|
1464
|
+
// position: 'absolute',
|
|
1465
|
+
// top: '24px',
|
|
1466
|
+
// right: '16px',
|
|
1466
1467
|
cursor: "pointer",
|
|
1467
1468
|
fontSize: "18px",
|
|
1468
1469
|
color: "#999",
|
|
@@ -1470,16 +1471,24 @@ var StyledClose = styled2(Dialog.Close, {
|
|
|
1470
1471
|
color: "#333"
|
|
1471
1472
|
}
|
|
1472
1473
|
});
|
|
1473
|
-
var StyledDivider =
|
|
1474
|
+
var StyledDivider = styled("hr", {
|
|
1474
1475
|
width: "100%",
|
|
1475
1476
|
border: "none",
|
|
1476
|
-
borderTop: "1px solid $gray_mid"
|
|
1477
|
+
borderTop: "1px solid $gray_mid",
|
|
1478
|
+
margin: 0
|
|
1479
|
+
});
|
|
1480
|
+
var StyledDescription = styled(Dialog.Description, {
|
|
1481
|
+
display: "flex",
|
|
1482
|
+
fontFamily: "$default",
|
|
1483
|
+
fontWeight: "$regular",
|
|
1484
|
+
fontSize: "$md",
|
|
1485
|
+
margin: "$2 0"
|
|
1477
1486
|
});
|
|
1478
1487
|
|
|
1479
1488
|
// src/components/Modal/index.tsx
|
|
1480
1489
|
import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1481
|
-
var Modal = ({ open, onOpenChange, title, children }) => {
|
|
1482
|
-
return /* @__PURE__ */ jsx22(Dialog2.Root, { open, onOpenChange, children: /* @__PURE__ */ jsxs6(Dialog2.Portal, { children: [
|
|
1490
|
+
var Modal = ({ open, onOpenChange, title, description, children }) => {
|
|
1491
|
+
return /* @__PURE__ */ jsx22(Dialog2.Root, { open, onOpenChange, modal: true, children: /* @__PURE__ */ jsxs6(Dialog2.Portal, { children: [
|
|
1483
1492
|
/* @__PURE__ */ jsx22(StyledOverlay, {}),
|
|
1484
1493
|
/* @__PURE__ */ jsxs6(StyledContent, { children: [
|
|
1485
1494
|
/* @__PURE__ */ jsxs6(Wrapper, { children: [
|
|
@@ -1487,6 +1496,7 @@ var Modal = ({ open, onOpenChange, title, children }) => {
|
|
|
1487
1496
|
/* @__PURE__ */ jsx22(StyledClose, { asChild: true, "aria-label": "Close", children: /* @__PURE__ */ jsx22(Button, { variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx22(Icon, { name: "Closed", size: 8 }) }) })
|
|
1488
1497
|
] }),
|
|
1489
1498
|
/* @__PURE__ */ jsx22(StyledDivider, {}),
|
|
1499
|
+
description && /* @__PURE__ */ jsx22(StyledDescription, { children: description }),
|
|
1490
1500
|
children
|
|
1491
1501
|
] })
|
|
1492
1502
|
] }) });
|
|
@@ -1551,6 +1561,9 @@ var ProgressBar = ({ label, value = 0, max = 100, ...rest }) => {
|
|
|
1551
1561
|
};
|
|
1552
1562
|
ProgressBar.displayName = "ProgressBar";
|
|
1553
1563
|
|
|
1564
|
+
// src/components/Radio/index.tsx
|
|
1565
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
1566
|
+
|
|
1554
1567
|
// src/components/Radio/styles.ts
|
|
1555
1568
|
import * as RadioGroup from "@radix-ui/react-radio-group";
|
|
1556
1569
|
var StyledRoot2 = styled(RadioGroup.Root, {
|
|
@@ -1644,18 +1657,19 @@ var Span3 = styled("span", {
|
|
|
1644
1657
|
|
|
1645
1658
|
// src/components/Radio/index.tsx
|
|
1646
1659
|
import { jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1647
|
-
var Radio = ({
|
|
1660
|
+
var Radio = forwardRef5(({
|
|
1648
1661
|
labels,
|
|
1649
1662
|
value,
|
|
1650
1663
|
onChange,
|
|
1651
1664
|
disabled = false,
|
|
1652
1665
|
required = false,
|
|
1653
1666
|
errorMessage
|
|
1654
|
-
}) => {
|
|
1667
|
+
}, ref) => {
|
|
1655
1668
|
return /* @__PURE__ */ jsxs8("form", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
|
|
1656
1669
|
/* @__PURE__ */ jsx24(
|
|
1657
1670
|
StyledRoot2,
|
|
1658
1671
|
{
|
|
1672
|
+
ref,
|
|
1659
1673
|
value,
|
|
1660
1674
|
onValueChange: onChange,
|
|
1661
1675
|
hasError: !!errorMessage,
|
|
@@ -1679,7 +1693,8 @@ var Radio = ({
|
|
|
1679
1693
|
),
|
|
1680
1694
|
errorMessage && /* @__PURE__ */ jsx24(Span3, { children: errorMessage })
|
|
1681
1695
|
] });
|
|
1682
|
-
};
|
|
1696
|
+
});
|
|
1697
|
+
Radio.displayName = "Radio";
|
|
1683
1698
|
|
|
1684
1699
|
// src/components/Spacing.tsx
|
|
1685
1700
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
@@ -1697,6 +1712,9 @@ var Spacing = ({ size, axis = "vertical" }) => {
|
|
|
1697
1712
|
return /* @__PURE__ */ jsx25("div", { style, "data-testid": `spacing-${size}-${axis}` });
|
|
1698
1713
|
};
|
|
1699
1714
|
|
|
1715
|
+
// src/components/Switch/index.tsx
|
|
1716
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
1717
|
+
|
|
1700
1718
|
// src/components/Switch/styles.ts
|
|
1701
1719
|
import * as Switch from "@radix-ui/react-switch";
|
|
1702
1720
|
var Wrapper3 = styled("div", {
|
|
@@ -1793,7 +1811,7 @@ var Span4 = styled("span", {
|
|
|
1793
1811
|
|
|
1794
1812
|
// src/components/Switch/index.tsx
|
|
1795
1813
|
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1796
|
-
var Switch2 = ({
|
|
1814
|
+
var Switch2 = forwardRef6(({
|
|
1797
1815
|
label,
|
|
1798
1816
|
checked,
|
|
1799
1817
|
defaultChecked,
|
|
@@ -1802,12 +1820,13 @@ var Switch2 = ({
|
|
|
1802
1820
|
required = false,
|
|
1803
1821
|
id,
|
|
1804
1822
|
errorMessage
|
|
1805
|
-
}) => {
|
|
1823
|
+
}, ref) => {
|
|
1806
1824
|
return /* @__PURE__ */ jsxs9("div", { style: { display: "flex", flexDirection: "column", alignItems: "flex-start" }, children: [
|
|
1807
1825
|
/* @__PURE__ */ jsxs9(Wrapper3, { hasError: !!errorMessage, children: [
|
|
1808
1826
|
/* @__PURE__ */ jsx26(
|
|
1809
1827
|
StyledRoot3,
|
|
1810
1828
|
{
|
|
1829
|
+
ref,
|
|
1811
1830
|
id,
|
|
1812
1831
|
checked,
|
|
1813
1832
|
defaultChecked,
|
|
@@ -1822,7 +1841,8 @@ var Switch2 = ({
|
|
|
1822
1841
|
] }),
|
|
1823
1842
|
errorMessage && /* @__PURE__ */ jsx26(Span4, { children: errorMessage })
|
|
1824
1843
|
] });
|
|
1825
|
-
};
|
|
1844
|
+
});
|
|
1845
|
+
Switch2.displayName = "Switch";
|
|
1826
1846
|
|
|
1827
1847
|
// src/components/Tabs/index.tsx
|
|
1828
1848
|
import { Children, isValidElement, useLayoutEffect, useRef as useRef4, useState as useState4 } from "react";
|
|
@@ -2016,6 +2036,7 @@ var Tabs2 = ({ defaultValue, colorContent, children }) => {
|
|
|
2016
2036
|
Tabs2.Item = TabsItem;
|
|
2017
2037
|
|
|
2018
2038
|
// src/components/TextArea.tsx
|
|
2039
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
2019
2040
|
import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2020
2041
|
var Wrapper4 = styled("div", {
|
|
2021
2042
|
display: "flex",
|
|
@@ -2091,14 +2112,24 @@ var Span5 = styled("span", {
|
|
|
2091
2112
|
marginTop: "2px",
|
|
2092
2113
|
marginBottom: "$6"
|
|
2093
2114
|
});
|
|
2094
|
-
var TextArea = (
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2115
|
+
var TextArea = forwardRef7(
|
|
2116
|
+
({ label, id, htmlFor, errorMessage, ...props }, ref) => {
|
|
2117
|
+
const textAreaId = id || htmlFor || `textarea-${crypto.randomUUID()}`;
|
|
2118
|
+
return /* @__PURE__ */ jsxs11(Wrapper4, { children: [
|
|
2119
|
+
label && /* @__PURE__ */ jsx28(StyledLabel2, { htmlFor: textAreaId, children: label }),
|
|
2120
|
+
/* @__PURE__ */ jsx28(
|
|
2121
|
+
TextAreaElement,
|
|
2122
|
+
{
|
|
2123
|
+
id: textAreaId,
|
|
2124
|
+
...props,
|
|
2125
|
+
hasError: !!errorMessage,
|
|
2126
|
+
ref
|
|
2127
|
+
}
|
|
2128
|
+
),
|
|
2129
|
+
errorMessage && /* @__PURE__ */ jsx28(Span5, { children: errorMessage })
|
|
2130
|
+
] });
|
|
2131
|
+
}
|
|
2132
|
+
);
|
|
2102
2133
|
TextArea.displayName = "TextArea";
|
|
2103
2134
|
|
|
2104
2135
|
// src/components/Tooltip/index.tsx
|
|
@@ -2257,7 +2288,7 @@ var Loader = ({ show, fullscreen = false }) => {
|
|
|
2257
2288
|
Loader.displayName = "Loader";
|
|
2258
2289
|
|
|
2259
2290
|
// src/components/MaskedInput/index.tsx
|
|
2260
|
-
import { forwardRef as
|
|
2291
|
+
import { forwardRef as forwardRef8, useState as useState5, useRef as useRef5 } from "react";
|
|
2261
2292
|
|
|
2262
2293
|
// src/components/MaskedInput/utils.ts
|
|
2263
2294
|
var MAX_LENGTHS = {
|
|
@@ -2322,7 +2353,7 @@ var applyMask = (value, maskType) => {
|
|
|
2322
2353
|
|
|
2323
2354
|
// src/components/MaskedInput/index.tsx
|
|
2324
2355
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2325
|
-
var MaskedInput =
|
|
2356
|
+
var MaskedInput = forwardRef8(
|
|
2326
2357
|
({ maskType, onChange, ...props }, ref) => {
|
|
2327
2358
|
const [value, setValue] = useState5("");
|
|
2328
2359
|
const inputRef = useRef5(null);
|
|
@@ -2373,7 +2404,7 @@ var MaskedInput = forwardRef5(
|
|
|
2373
2404
|
MaskedInput.displayName = "MaskedInput";
|
|
2374
2405
|
|
|
2375
2406
|
// src/components/Dropdown/index.tsx
|
|
2376
|
-
import { Children as Children2, Fragment as Fragment2 } from "react";
|
|
2407
|
+
import React3, { Children as Children2, Fragment as Fragment2 } from "react";
|
|
2377
2408
|
import * as DropdownMenu2 from "@radix-ui/react-dropdown-menu";
|
|
2378
2409
|
|
|
2379
2410
|
// src/components/Dropdown/styles.ts
|
|
@@ -2468,8 +2499,10 @@ var Dropdown = ({ children }) => {
|
|
|
2468
2499
|
] }, index)) }) })
|
|
2469
2500
|
] });
|
|
2470
2501
|
};
|
|
2471
|
-
var DropdownItem = StyledItem2;
|
|
2472
2502
|
var DropdownSeparator = StyledSeparator;
|
|
2503
|
+
var DropdownItem = React3.forwardRef(({ children, ...props }, forwardedRef) => {
|
|
2504
|
+
return /* @__PURE__ */ jsx32(StyledItem2, { ...props, ref: forwardedRef, children });
|
|
2505
|
+
});
|
|
2473
2506
|
Dropdown.displayName = "Dropdown";
|
|
2474
2507
|
DropdownItem.displayName = "DropdownItem";
|
|
2475
2508
|
DropdownSeparator.displayName = "DropdownSeparator";
|
|
@@ -2506,6 +2539,7 @@ import { jsx as jsx34 } from "react/jsx-runtime";
|
|
|
2506
2539
|
var StyledParagraph = styled("p", {
|
|
2507
2540
|
fontFamily: "$default",
|
|
2508
2541
|
lineHeight: "$short",
|
|
2542
|
+
color: "$black",
|
|
2509
2543
|
margin: 0,
|
|
2510
2544
|
variants: {
|
|
2511
2545
|
size: {
|
|
@@ -2548,7 +2582,7 @@ var Paragraph = (props) => {
|
|
|
2548
2582
|
Paragraph.displayName = "Paragraph";
|
|
2549
2583
|
|
|
2550
2584
|
// src/components/Heading.tsx
|
|
2551
|
-
import { forwardRef as
|
|
2585
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
2552
2586
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2553
2587
|
var StyledHeading = styled("h2", {
|
|
2554
2588
|
fontFamily: "$default",
|
|
@@ -2571,7 +2605,7 @@ var StyledHeading = styled("h2", {
|
|
|
2571
2605
|
size: "md"
|
|
2572
2606
|
}
|
|
2573
2607
|
});
|
|
2574
|
-
var Heading =
|
|
2608
|
+
var Heading = forwardRef9(function Heading2({ children, ...props }, ref) {
|
|
2575
2609
|
return /* @__PURE__ */ jsx35(StyledHeading, { ref, ...props, children });
|
|
2576
2610
|
});
|
|
2577
2611
|
Heading.displayName = "Heading";
|
|
@@ -2579,7 +2613,7 @@ Heading.displayName = "Heading";
|
|
|
2579
2613
|
// src/components/Select/index.tsx
|
|
2580
2614
|
import { TriangleDownIcon, TriangleUpIcon } from "@radix-ui/react-icons";
|
|
2581
2615
|
import * as CustomSelect from "@radix-ui/react-select";
|
|
2582
|
-
import { useState as useState6 } from "react";
|
|
2616
|
+
import { forwardRef as forwardRef10, useState as useState6 } from "react";
|
|
2583
2617
|
|
|
2584
2618
|
// src/components/Select/styles.ts
|
|
2585
2619
|
import * as Select from "@radix-ui/react-select";
|
|
@@ -2608,6 +2642,7 @@ var StyledTrigger = styled(Select.Trigger, {
|
|
|
2608
2642
|
fontSize: "$md",
|
|
2609
2643
|
backgroundColor: "white",
|
|
2610
2644
|
cursor: "pointer",
|
|
2645
|
+
color: "$black",
|
|
2611
2646
|
"&[data-placeholder]": {
|
|
2612
2647
|
color: "$gray_mid"
|
|
2613
2648
|
},
|
|
@@ -2637,9 +2672,10 @@ var StyledContent3 = styled(Select.Content, {
|
|
|
2637
2672
|
backgroundColor: "$gray_background",
|
|
2638
2673
|
borderRadius: "$md",
|
|
2639
2674
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
|
2640
|
-
zIndex:
|
|
2675
|
+
zIndex: 103,
|
|
2641
2676
|
width: "var(--radix-select-trigger-width)",
|
|
2642
|
-
maxHeight: "var(--radix-select-content-available-height)"
|
|
2677
|
+
maxHeight: "var(--radix-select-content-available-height)",
|
|
2678
|
+
fontWeight: "$regular"
|
|
2643
2679
|
});
|
|
2644
2680
|
var StyledViewport = styled(Select.Viewport, {
|
|
2645
2681
|
padding: "4px"
|
|
@@ -2647,10 +2683,11 @@ var StyledViewport = styled(Select.Viewport, {
|
|
|
2647
2683
|
var StyledItem3 = styled(Select.Item, {
|
|
2648
2684
|
position: "relative",
|
|
2649
2685
|
fontSize: "$md",
|
|
2686
|
+
fontWeight: "$regular",
|
|
2650
2687
|
padding: "14px 12px",
|
|
2651
2688
|
color: "$black",
|
|
2652
2689
|
cursor: "pointer",
|
|
2653
|
-
"&[data-highlighted]": {
|
|
2690
|
+
"&[data-highlighted], &:focus, &:hover": {
|
|
2654
2691
|
outline: "none",
|
|
2655
2692
|
color: "$clickpalm_light"
|
|
2656
2693
|
},
|
|
@@ -2697,49 +2734,46 @@ var Span6 = styled("span", {
|
|
|
2697
2734
|
|
|
2698
2735
|
// src/components/Select/index.tsx
|
|
2699
2736
|
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
children:
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
)
|
|
2741
|
-
] });
|
|
2742
|
-
}
|
|
2737
|
+
var Select2 = forwardRef10(
|
|
2738
|
+
({
|
|
2739
|
+
value,
|
|
2740
|
+
onValueChange,
|
|
2741
|
+
items,
|
|
2742
|
+
placeholder = "Selecione",
|
|
2743
|
+
label,
|
|
2744
|
+
errorMessage,
|
|
2745
|
+
css: css2,
|
|
2746
|
+
className,
|
|
2747
|
+
style,
|
|
2748
|
+
...rest
|
|
2749
|
+
}, ref) => {
|
|
2750
|
+
const [open, setOpen] = useState6(false);
|
|
2751
|
+
return /* @__PURE__ */ jsxs14(StyledWrapper4, { css: css2, className, style, children: [
|
|
2752
|
+
label && /* @__PURE__ */ jsx36(Label3, { children: label }),
|
|
2753
|
+
/* @__PURE__ */ jsxs14(
|
|
2754
|
+
CustomSelect.Root,
|
|
2755
|
+
{
|
|
2756
|
+
value,
|
|
2757
|
+
onValueChange,
|
|
2758
|
+
onOpenChange: setOpen,
|
|
2759
|
+
...rest,
|
|
2760
|
+
children: [
|
|
2761
|
+
/* @__PURE__ */ jsxs14(StyledTrigger, { "aria-label": label, hasError: !!errorMessage, ref, children: [
|
|
2762
|
+
/* @__PURE__ */ jsx36(CustomSelect.Value, { placeholder }),
|
|
2763
|
+
/* @__PURE__ */ jsx36(StyledIcon, { open, children: /* @__PURE__ */ jsx36(TriangleDownIcon, {}) })
|
|
2764
|
+
] }),
|
|
2765
|
+
errorMessage && /* @__PURE__ */ jsx36(Span6, { children: errorMessage }),
|
|
2766
|
+
/* @__PURE__ */ jsx36(CustomSelect.Portal, { children: /* @__PURE__ */ jsxs14(StyledContent3, { side: "bottom", align: "start", position: "popper", children: [
|
|
2767
|
+
/* @__PURE__ */ jsx36(CustomSelect.ScrollUpButton, { children: /* @__PURE__ */ jsx36(TriangleUpIcon, {}) }),
|
|
2768
|
+
/* @__PURE__ */ jsx36(StyledViewport, { children: items.map((item) => /* @__PURE__ */ jsx36(StyledItem3, { value: item.value, children: /* @__PURE__ */ jsx36(CustomSelect.ItemText, { children: item.label }) }, item.value)) }),
|
|
2769
|
+
/* @__PURE__ */ jsx36(CustomSelect.ScrollDownButton, { children: /* @__PURE__ */ jsx36(TriangleDownIcon, {}) })
|
|
2770
|
+
] }) })
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
)
|
|
2774
|
+
] });
|
|
2775
|
+
}
|
|
2776
|
+
);
|
|
2743
2777
|
Select2.displayName = "Select";
|
|
2744
2778
|
|
|
2745
2779
|
// src/components/LabelledValue/index.tsx
|
|
@@ -2852,7 +2886,8 @@ var StyledLabel3 = styled(OneTimePasswordField.Root, {
|
|
|
2852
2886
|
display: "flex",
|
|
2853
2887
|
justifyContent: "center",
|
|
2854
2888
|
alignItems: "center",
|
|
2855
|
-
marginBottom: "$5"
|
|
2889
|
+
marginBottom: "$5",
|
|
2890
|
+
color: "$black"
|
|
2856
2891
|
});
|
|
2857
2892
|
var StyledInput = styled(OneTimePasswordField.Input, {
|
|
2858
2893
|
all: "unset",
|
|
@@ -3012,7 +3047,7 @@ var ToastViewport = styled(ToastPrimitive.Viewport, {
|
|
|
3012
3047
|
outline: "none",
|
|
3013
3048
|
zIndex: 9999,
|
|
3014
3049
|
"@lg": {
|
|
3015
|
-
maxWidth: "
|
|
3050
|
+
maxWidth: "700px"
|
|
3016
3051
|
}
|
|
3017
3052
|
});
|
|
3018
3053
|
var progress = keyframes({
|
|
@@ -3173,7 +3208,6 @@ var StepItem = styled("div", {
|
|
|
3173
3208
|
});
|
|
3174
3209
|
var StepCircle = styled("div", {
|
|
3175
3210
|
position: "relative",
|
|
3176
|
-
zIndex: 990,
|
|
3177
3211
|
width: "var(--circle-size)",
|
|
3178
3212
|
height: "var(--circle-size)",
|
|
3179
3213
|
borderRadius: "50%",
|
|
@@ -3624,7 +3658,7 @@ var CarouselItem = ({ children, style, ...props }) => /* @__PURE__ */ jsx41(Caro
|
|
|
3624
3658
|
Carousel.Item = CarouselItem;
|
|
3625
3659
|
|
|
3626
3660
|
// src/components/PasswordInput.tsx
|
|
3627
|
-
import { forwardRef as
|
|
3661
|
+
import { forwardRef as forwardRef11, useImperativeHandle, useRef as useRef6, useState as useState9 } from "react";
|
|
3628
3662
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3629
3663
|
var ToggleButton = styled("button", {
|
|
3630
3664
|
all: "unset",
|
|
@@ -3640,7 +3674,7 @@ var ToggleButton = styled("button", {
|
|
|
3640
3674
|
borderRadius: "$sm"
|
|
3641
3675
|
}
|
|
3642
3676
|
});
|
|
3643
|
-
var PasswordInput =
|
|
3677
|
+
var PasswordInput = forwardRef11(
|
|
3644
3678
|
({ value, onChange, ...props }, ref) => {
|
|
3645
3679
|
const [visible, setVisible] = useState9(false);
|
|
3646
3680
|
const innerRef = useRef6(null);
|
|
@@ -3705,17 +3739,17 @@ var AccordionItem = styled(Accordion.Item, {
|
|
|
3705
3739
|
}
|
|
3706
3740
|
});
|
|
3707
3741
|
var AccordionHeader = styled(Accordion.Header, {
|
|
3708
|
-
display: "flex"
|
|
3742
|
+
display: "flex",
|
|
3743
|
+
alignItems: "center",
|
|
3744
|
+
justifyContent: "space-between",
|
|
3745
|
+
padding: "0 $5"
|
|
3709
3746
|
});
|
|
3710
3747
|
var AccordionTrigger = styled(Accordion.Trigger, {
|
|
3711
3748
|
all: "unset",
|
|
3712
3749
|
fontFamily: "$default",
|
|
3713
3750
|
backgroundColor: "transparent",
|
|
3714
|
-
padding: "0 $5",
|
|
3715
|
-
flex: 1,
|
|
3716
3751
|
display: "flex",
|
|
3717
3752
|
alignItems: "center",
|
|
3718
|
-
justifyContent: "space-between",
|
|
3719
3753
|
fontSize: "$md",
|
|
3720
3754
|
lineHeight: "$regular",
|
|
3721
3755
|
color: "$black",
|
|
@@ -3765,13 +3799,13 @@ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
|
3765
3799
|
var Accordion2 = React6.forwardRef(
|
|
3766
3800
|
({ title, children, dropdownItems }, ref) => {
|
|
3767
3801
|
return /* @__PURE__ */ jsx43(AccordionContainer, { type: "single", collapsible: true, ref, children: /* @__PURE__ */ jsxs20(AccordionItem, { value: "item-1", children: [
|
|
3768
|
-
/* @__PURE__ */
|
|
3769
|
-
title,
|
|
3802
|
+
/* @__PURE__ */ jsxs20(AccordionHeader, { children: [
|
|
3803
|
+
/* @__PURE__ */ jsx43(AccordionTrigger, { children: /* @__PURE__ */ jsx43("span", { children: title }) }),
|
|
3770
3804
|
/* @__PURE__ */ jsxs20(TriggerContent, { children: [
|
|
3771
3805
|
dropdownItems && dropdownItems,
|
|
3772
|
-
/* @__PURE__ */ jsx43(
|
|
3806
|
+
/* @__PURE__ */ jsx43(RadixAccordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsx43(StyledButton, { as: "div", variant: "secondary", size: "sm", children: /* @__PURE__ */ jsx43(AccordionChevron, { name: "TriangleDown", size: 16, "aria-hidden": true }) }) })
|
|
3773
3807
|
] })
|
|
3774
|
-
] })
|
|
3808
|
+
] }),
|
|
3775
3809
|
/* @__PURE__ */ jsx43(RadixAccordion.Content, { asChild: true, children: /* @__PURE__ */ jsx43(AccordionContent, { children }) })
|
|
3776
3810
|
] }) });
|
|
3777
3811
|
}
|
package/package.json
CHANGED