@clickpalm/react 1.1.1 → 1.1.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 +2 -2
- package/dist/index.js +34 -27
- package/dist/index.mjs +34 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2300,8 +2300,8 @@ declare const CheckboxContainer: _stitches_react_types_styled_component.StyledCo
|
|
|
2300
2300
|
|
|
2301
2301
|
interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
|
|
2302
2302
|
label: string;
|
|
2303
|
-
checked: boolean
|
|
2304
|
-
onCheckedChange: (checked: boolean
|
|
2303
|
+
checked: boolean;
|
|
2304
|
+
onCheckedChange: (checked: boolean) => void;
|
|
2305
2305
|
errorMessage?: string;
|
|
2306
2306
|
}
|
|
2307
2307
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.js
CHANGED
|
@@ -2797,17 +2797,24 @@ var Container2 = styled("div", {
|
|
|
2797
2797
|
flexDirection: "column",
|
|
2798
2798
|
justifyContent: "center",
|
|
2799
2799
|
alignItems: "center",
|
|
2800
|
-
marginBottom: "$6"
|
|
2800
|
+
marginBottom: "$6",
|
|
2801
|
+
width: "100%"
|
|
2801
2802
|
});
|
|
2802
2803
|
var StyledWrapper5 = styled("div", {
|
|
2803
2804
|
display: "flex",
|
|
2804
|
-
flexDirection: "column"
|
|
2805
|
-
gap: "$5"
|
|
2805
|
+
flexDirection: "column"
|
|
2806
2806
|
});
|
|
2807
2807
|
var StyledRoot4 = styled(OneTimePasswordField.Root, {
|
|
2808
|
-
display: "
|
|
2808
|
+
display: "grid",
|
|
2809
2809
|
gap: "$2",
|
|
2810
|
-
|
|
2810
|
+
gridTemplateColumns: "repeat(var(--otp-length), 1fr)",
|
|
2811
|
+
width: "100%"
|
|
2812
|
+
});
|
|
2813
|
+
var StyledLabel3 = styled(OneTimePasswordField.Root, {
|
|
2814
|
+
display: "flex",
|
|
2815
|
+
justifyContent: "center",
|
|
2816
|
+
alignItems: "center",
|
|
2817
|
+
marginBottom: "$5"
|
|
2811
2818
|
});
|
|
2812
2819
|
var StyledInput = styled(OneTimePasswordField.Input, {
|
|
2813
2820
|
all: "unset",
|
|
@@ -2824,8 +2831,9 @@ var StyledInput = styled(OneTimePasswordField.Input, {
|
|
|
2824
2831
|
fontSize: "$md",
|
|
2825
2832
|
color: "$black",
|
|
2826
2833
|
padding: "0",
|
|
2827
|
-
|
|
2828
|
-
|
|
2834
|
+
width: "100%",
|
|
2835
|
+
aspectRatio: "1 / 1",
|
|
2836
|
+
maxWidth: "53px",
|
|
2829
2837
|
"&:hover": {
|
|
2830
2838
|
borderColor: "$gray_dark"
|
|
2831
2839
|
},
|
|
@@ -2847,24 +2855,23 @@ var Span7 = styled("span", {
|
|
|
2847
2855
|
// src/components/OneTimePassword/index.tsx
|
|
2848
2856
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2849
2857
|
var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...rootProps }) => {
|
|
2850
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.
|
|
2851
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
] }),
|
|
2858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Container2, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(StyledWrapper5, { children: [
|
|
2859
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledLabel3, { children: label }),
|
|
2860
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2861
|
+
StyledRoot4,
|
|
2862
|
+
{
|
|
2863
|
+
value,
|
|
2864
|
+
onValueChange,
|
|
2865
|
+
...rootProps,
|
|
2866
|
+
style: { "--otp-length": length },
|
|
2867
|
+
children: [
|
|
2868
|
+
Array.from({ length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(StyledInput, {}, index)),
|
|
2869
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(OneTimePasswordField2.HiddenInput, {})
|
|
2870
|
+
]
|
|
2871
|
+
}
|
|
2872
|
+
),
|
|
2866
2873
|
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Span7, { children: errorMessage })
|
|
2867
|
-
] });
|
|
2874
|
+
] }) });
|
|
2868
2875
|
};
|
|
2869
2876
|
OneTimePassword.displayName = "OneTimePasswordInput";
|
|
2870
2877
|
|
|
@@ -3097,7 +3104,8 @@ var Wrapper5 = styled("div", {
|
|
|
3097
3104
|
variants: {
|
|
3098
3105
|
orientation: {
|
|
3099
3106
|
horizontal: {
|
|
3100
|
-
|
|
3107
|
+
display: "grid",
|
|
3108
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(100px, 1fr))",
|
|
3101
3109
|
alignItems: "center",
|
|
3102
3110
|
gap: "var(--gap)"
|
|
3103
3111
|
},
|
|
@@ -3115,7 +3123,6 @@ var StepItem = styled("div", {
|
|
|
3115
3123
|
variants: {
|
|
3116
3124
|
orientation: {
|
|
3117
3125
|
horizontal: {
|
|
3118
|
-
flex: 1,
|
|
3119
3126
|
flexDirection: "column",
|
|
3120
3127
|
textAlign: "center"
|
|
3121
3128
|
},
|
|
@@ -3128,7 +3135,7 @@ var StepItem = styled("div", {
|
|
|
3128
3135
|
});
|
|
3129
3136
|
var StepCircle = styled("div", {
|
|
3130
3137
|
position: "relative",
|
|
3131
|
-
zIndex:
|
|
3138
|
+
zIndex: 990,
|
|
3132
3139
|
width: "var(--circle-size)",
|
|
3133
3140
|
height: "var(--circle-size)",
|
|
3134
3141
|
borderRadius: "50%",
|
package/dist/index.mjs
CHANGED
|
@@ -2733,17 +2733,24 @@ var Container2 = styled("div", {
|
|
|
2733
2733
|
flexDirection: "column",
|
|
2734
2734
|
justifyContent: "center",
|
|
2735
2735
|
alignItems: "center",
|
|
2736
|
-
marginBottom: "$6"
|
|
2736
|
+
marginBottom: "$6",
|
|
2737
|
+
width: "100%"
|
|
2737
2738
|
});
|
|
2738
2739
|
var StyledWrapper5 = styled("div", {
|
|
2739
2740
|
display: "flex",
|
|
2740
|
-
flexDirection: "column"
|
|
2741
|
-
gap: "$5"
|
|
2741
|
+
flexDirection: "column"
|
|
2742
2742
|
});
|
|
2743
2743
|
var StyledRoot4 = styled(OneTimePasswordField.Root, {
|
|
2744
|
-
display: "
|
|
2744
|
+
display: "grid",
|
|
2745
2745
|
gap: "$2",
|
|
2746
|
-
|
|
2746
|
+
gridTemplateColumns: "repeat(var(--otp-length), 1fr)",
|
|
2747
|
+
width: "100%"
|
|
2748
|
+
});
|
|
2749
|
+
var StyledLabel3 = styled(OneTimePasswordField.Root, {
|
|
2750
|
+
display: "flex",
|
|
2751
|
+
justifyContent: "center",
|
|
2752
|
+
alignItems: "center",
|
|
2753
|
+
marginBottom: "$5"
|
|
2747
2754
|
});
|
|
2748
2755
|
var StyledInput = styled(OneTimePasswordField.Input, {
|
|
2749
2756
|
all: "unset",
|
|
@@ -2760,8 +2767,9 @@ var StyledInput = styled(OneTimePasswordField.Input, {
|
|
|
2760
2767
|
fontSize: "$md",
|
|
2761
2768
|
color: "$black",
|
|
2762
2769
|
padding: "0",
|
|
2763
|
-
|
|
2764
|
-
|
|
2770
|
+
width: "100%",
|
|
2771
|
+
aspectRatio: "1 / 1",
|
|
2772
|
+
maxWidth: "53px",
|
|
2765
2773
|
"&:hover": {
|
|
2766
2774
|
borderColor: "$gray_dark"
|
|
2767
2775
|
},
|
|
@@ -2783,24 +2791,23 @@ var Span7 = styled("span", {
|
|
|
2783
2791
|
// src/components/OneTimePassword/index.tsx
|
|
2784
2792
|
import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2785
2793
|
var OneTimePassword = ({ label, length, value, errorMessage, onValueChange, ...rootProps }) => {
|
|
2786
|
-
return /* @__PURE__ */
|
|
2787
|
-
/* @__PURE__ */
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
] }),
|
|
2794
|
+
return /* @__PURE__ */ jsx37(Container2, { children: /* @__PURE__ */ jsxs15(StyledWrapper5, { children: [
|
|
2795
|
+
/* @__PURE__ */ jsx37(StyledLabel3, { children: label }),
|
|
2796
|
+
/* @__PURE__ */ jsxs15(
|
|
2797
|
+
StyledRoot4,
|
|
2798
|
+
{
|
|
2799
|
+
value,
|
|
2800
|
+
onValueChange,
|
|
2801
|
+
...rootProps,
|
|
2802
|
+
style: { "--otp-length": length },
|
|
2803
|
+
children: [
|
|
2804
|
+
Array.from({ length }).map((_, index) => /* @__PURE__ */ jsx37(StyledInput, {}, index)),
|
|
2805
|
+
/* @__PURE__ */ jsx37(OneTimePasswordField2.HiddenInput, {})
|
|
2806
|
+
]
|
|
2807
|
+
}
|
|
2808
|
+
),
|
|
2802
2809
|
errorMessage && /* @__PURE__ */ jsx37(Span7, { children: errorMessage })
|
|
2803
|
-
] });
|
|
2810
|
+
] }) });
|
|
2804
2811
|
};
|
|
2805
2812
|
OneTimePassword.displayName = "OneTimePasswordInput";
|
|
2806
2813
|
|
|
@@ -3033,7 +3040,8 @@ var Wrapper5 = styled("div", {
|
|
|
3033
3040
|
variants: {
|
|
3034
3041
|
orientation: {
|
|
3035
3042
|
horizontal: {
|
|
3036
|
-
|
|
3043
|
+
display: "grid",
|
|
3044
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(100px, 1fr))",
|
|
3037
3045
|
alignItems: "center",
|
|
3038
3046
|
gap: "var(--gap)"
|
|
3039
3047
|
},
|
|
@@ -3051,7 +3059,6 @@ var StepItem = styled("div", {
|
|
|
3051
3059
|
variants: {
|
|
3052
3060
|
orientation: {
|
|
3053
3061
|
horizontal: {
|
|
3054
|
-
flex: 1,
|
|
3055
3062
|
flexDirection: "column",
|
|
3056
3063
|
textAlign: "center"
|
|
3057
3064
|
},
|
|
@@ -3064,7 +3071,7 @@ var StepItem = styled("div", {
|
|
|
3064
3071
|
});
|
|
3065
3072
|
var StepCircle = styled("div", {
|
|
3066
3073
|
position: "relative",
|
|
3067
|
-
zIndex:
|
|
3074
|
+
zIndex: 990,
|
|
3068
3075
|
width: "var(--circle-size)",
|
|
3069
3076
|
height: "var(--circle-size)",
|
|
3070
3077
|
borderRadius: "50%",
|
package/package.json
CHANGED