@asdp/ferryui 0.1.22-dev.8826 → 0.1.22-dev.8882
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 +67 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2228,6 +2228,15 @@ var useStyles7 = makeStyles({
|
|
|
2228
2228
|
},
|
|
2229
2229
|
labelLarge: {
|
|
2230
2230
|
fontSize: tokens.fontSizeBase300
|
|
2231
|
+
},
|
|
2232
|
+
valueSmall: {
|
|
2233
|
+
fontSize: tokens.fontSizeBase200
|
|
2234
|
+
},
|
|
2235
|
+
valueMedium: {
|
|
2236
|
+
fontSize: tokens.fontSizeBase300
|
|
2237
|
+
},
|
|
2238
|
+
valueLarge: {
|
|
2239
|
+
fontSize: tokens.fontSizeBase400
|
|
2231
2240
|
}
|
|
2232
2241
|
});
|
|
2233
2242
|
var detectIdentityType = (value) => {
|
|
@@ -2503,6 +2512,8 @@ var InputDynamic = ({
|
|
|
2503
2512
|
};
|
|
2504
2513
|
const otpMatch = /^otp(\d+)$/.exec(String(name));
|
|
2505
2514
|
const otpIndex2 = otpMatch ? parseInt(otpMatch[1], 10) : null;
|
|
2515
|
+
const classNameSize = size === "small" ? styles.valueSmall : size === "medium" ? styles.valueMedium : styles.valueLarge;
|
|
2516
|
+
const fontSizeValuePhoneInput = size == "small" ? tokens.fontSizeBase200 : size === "medium" ? tokens.fontSizeBase300 : tokens.fontSizeBase400;
|
|
2506
2517
|
if (type === "emailOrPhone") {
|
|
2507
2518
|
updateEmailOrPhoneType(field.value);
|
|
2508
2519
|
const stringValue = typeof field.value === "string" ? field.value : "";
|
|
@@ -2542,6 +2553,9 @@ var InputDynamic = ({
|
|
|
2542
2553
|
children: /* @__PURE__ */ jsx(
|
|
2543
2554
|
PhoneInput,
|
|
2544
2555
|
{
|
|
2556
|
+
inputStyle: {
|
|
2557
|
+
fontSize: fontSizeValuePhoneInput
|
|
2558
|
+
},
|
|
2545
2559
|
country: defaultCountry.toLowerCase(),
|
|
2546
2560
|
value: stringValue.startsWith("+") ? stringValue.substring(1) : stringValue,
|
|
2547
2561
|
onChange: (value, data) => {
|
|
@@ -2601,6 +2615,7 @@ var InputDynamic = ({
|
|
|
2601
2615
|
field.onChange(normalizedValue);
|
|
2602
2616
|
updateEmailOrPhoneType(normalizedValue);
|
|
2603
2617
|
},
|
|
2618
|
+
className: classNameSize,
|
|
2604
2619
|
placeholder: inputPlaceholder,
|
|
2605
2620
|
disabled,
|
|
2606
2621
|
appearance,
|
|
@@ -2680,7 +2695,10 @@ var InputDynamic = ({
|
|
|
2680
2695
|
placeholder: inputPlaceholder,
|
|
2681
2696
|
disabled,
|
|
2682
2697
|
enableSearch: true,
|
|
2683
|
-
disableSearchIcon: true
|
|
2698
|
+
disableSearchIcon: true,
|
|
2699
|
+
inputStyle: {
|
|
2700
|
+
fontSize: fontSizeValuePhoneInput
|
|
2701
|
+
}
|
|
2684
2702
|
}
|
|
2685
2703
|
)
|
|
2686
2704
|
}
|
|
@@ -2703,13 +2721,22 @@ var InputDynamic = ({
|
|
|
2703
2721
|
appearance,
|
|
2704
2722
|
size,
|
|
2705
2723
|
type: inputType,
|
|
2706
|
-
style: { width: "100%" }
|
|
2724
|
+
style: { width: "100%" },
|
|
2725
|
+
className: classNameSize
|
|
2707
2726
|
}
|
|
2708
2727
|
) });
|
|
2709
2728
|
}
|
|
2710
2729
|
switch (type) {
|
|
2711
2730
|
case "textarea":
|
|
2712
|
-
return /* @__PURE__ */ jsx(
|
|
2731
|
+
return /* @__PURE__ */ jsx(
|
|
2732
|
+
Textarea,
|
|
2733
|
+
{
|
|
2734
|
+
...commonProps,
|
|
2735
|
+
rows,
|
|
2736
|
+
resize: "vertical",
|
|
2737
|
+
className: classNameSize
|
|
2738
|
+
}
|
|
2739
|
+
);
|
|
2713
2740
|
case "select":
|
|
2714
2741
|
return /* @__PURE__ */ jsx(
|
|
2715
2742
|
Select,
|
|
@@ -2720,7 +2747,7 @@ var InputDynamic = ({
|
|
|
2720
2747
|
placeholder,
|
|
2721
2748
|
options,
|
|
2722
2749
|
styles: getSelectStyles(!!error),
|
|
2723
|
-
className: styles.reactSelect,
|
|
2750
|
+
className: mergeClasses(styles.reactSelect, classNameSize),
|
|
2724
2751
|
classNamePrefix: "react-select",
|
|
2725
2752
|
isMulti: isMultiSelect,
|
|
2726
2753
|
inputProps: {
|
|
@@ -2756,7 +2783,7 @@ var InputDynamic = ({
|
|
|
2756
2783
|
placeholder: placeholder || "Select country",
|
|
2757
2784
|
options: COUNTRIES,
|
|
2758
2785
|
styles: getSelectStyles(!!error),
|
|
2759
|
-
className: styles.reactSelect,
|
|
2786
|
+
className: mergeClasses(styles.reactSelect, classNameSize),
|
|
2760
2787
|
classNamePrefix: "react-select",
|
|
2761
2788
|
inputProps: {
|
|
2762
2789
|
autoComplete: "new-password",
|
|
@@ -2773,10 +2800,16 @@ var InputDynamic = ({
|
|
|
2773
2800
|
},
|
|
2774
2801
|
getOptionLabel: (option) => option.label,
|
|
2775
2802
|
getOptionValue: (option) => option.value,
|
|
2776
|
-
formatOptionLabel: (option) => /* @__PURE__ */ jsxs(
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2803
|
+
formatOptionLabel: (option) => /* @__PURE__ */ jsxs(
|
|
2804
|
+
"div",
|
|
2805
|
+
{
|
|
2806
|
+
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
2807
|
+
children: [
|
|
2808
|
+
/* @__PURE__ */ jsx(Icon, { icon: option.flag, width: 20, height: 20 }),
|
|
2809
|
+
/* @__PURE__ */ jsx("span", { children: option.label })
|
|
2810
|
+
]
|
|
2811
|
+
}
|
|
2812
|
+
),
|
|
2780
2813
|
menuPlacement
|
|
2781
2814
|
}
|
|
2782
2815
|
);
|
|
@@ -2807,7 +2840,10 @@ var InputDynamic = ({
|
|
|
2807
2840
|
placeholder: placeholder || mergedLabels.phoneDefaultPlaceholder,
|
|
2808
2841
|
disabled,
|
|
2809
2842
|
enableSearch: true,
|
|
2810
|
-
disableSearchIcon: true
|
|
2843
|
+
disableSearchIcon: true,
|
|
2844
|
+
inputStyle: {
|
|
2845
|
+
fontSize: fontSizeValuePhoneInput
|
|
2846
|
+
}
|
|
2811
2847
|
}
|
|
2812
2848
|
)
|
|
2813
2849
|
}
|
|
@@ -2913,7 +2949,10 @@ var InputDynamic = ({
|
|
|
2913
2949
|
min,
|
|
2914
2950
|
max,
|
|
2915
2951
|
step,
|
|
2916
|
-
className:
|
|
2952
|
+
className: mergeClasses(
|
|
2953
|
+
styles.inputWithAutocomplete,
|
|
2954
|
+
classNameSize
|
|
2955
|
+
)
|
|
2917
2956
|
}
|
|
2918
2957
|
);
|
|
2919
2958
|
case "time":
|
|
@@ -2925,7 +2964,10 @@ var InputDynamic = ({
|
|
|
2925
2964
|
type,
|
|
2926
2965
|
min,
|
|
2927
2966
|
max,
|
|
2928
|
-
className:
|
|
2967
|
+
className: mergeClasses(
|
|
2968
|
+
styles.inputWithAutocomplete,
|
|
2969
|
+
classNameSize
|
|
2970
|
+
)
|
|
2929
2971
|
}
|
|
2930
2972
|
);
|
|
2931
2973
|
case "password":
|
|
@@ -2934,7 +2976,10 @@ var InputDynamic = ({
|
|
|
2934
2976
|
{
|
|
2935
2977
|
...commonProps,
|
|
2936
2978
|
type: showPassword ? "text" : "password",
|
|
2937
|
-
className:
|
|
2979
|
+
className: mergeClasses(
|
|
2980
|
+
styles.inputWithAutocomplete,
|
|
2981
|
+
classNameSize
|
|
2982
|
+
),
|
|
2938
2983
|
contentAfter: /* @__PURE__ */ jsx(
|
|
2939
2984
|
Button,
|
|
2940
2985
|
{
|
|
@@ -3097,7 +3142,10 @@ var InputDynamic = ({
|
|
|
3097
3142
|
...commonProps,
|
|
3098
3143
|
type,
|
|
3099
3144
|
onInput,
|
|
3100
|
-
className:
|
|
3145
|
+
className: mergeClasses(
|
|
3146
|
+
styles.inputWithAutocomplete,
|
|
3147
|
+
classNameSize
|
|
3148
|
+
)
|
|
3101
3149
|
}
|
|
3102
3150
|
);
|
|
3103
3151
|
}
|
|
@@ -11273,14 +11321,11 @@ var CardPaymentInfo = ({
|
|
|
11273
11321
|
{
|
|
11274
11322
|
size: "large",
|
|
11275
11323
|
label: /* @__PURE__ */ jsx(Subtitle2, { style: { color: tokens.colorNeutralForeground1 }, children: mergedLabels.totalPayment }),
|
|
11276
|
-
children: /* @__PURE__ */
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
className: styles.input
|
|
11282
|
-
}
|
|
11283
|
-
)
|
|
11324
|
+
children: /* @__PURE__ */ jsxs(Title2, { children: [
|
|
11325
|
+
mergedLabels.currencySymbol,
|
|
11326
|
+
" ",
|
|
11327
|
+
totalAmount.toLocaleString(language === "id" ? "id-ID" : "en-US")
|
|
11328
|
+
] })
|
|
11284
11329
|
}
|
|
11285
11330
|
)
|
|
11286
11331
|
] }),
|