@xqmsg/ui-core 0.23.1-rc.0 → 0.23.1-rc.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/components/input/StackedInput/StackedInput.d.ts +1 -0
- package/dist/components/input/StackedPilledInput/index.d.ts +1 -0
- package/dist/components/input/StackedTextarea/StackedTextarea.d.ts +1 -0
- package/dist/theme/components/button.d.ts +0 -3
- package/dist/theme/components/checkbox.d.ts +5 -4
- package/dist/theme/components/input.d.ts +12 -1
- package/dist/theme/components/select.d.ts +12 -1
- package/dist/theme/components/textarea.d.ts +15 -3
- package/dist/ui-core.cjs.development.js +84 -77
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +84 -77
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/Input.stories.tsx +1 -0
- package/src/components/input/StackedInput/StackedInput.tsx +8 -3
- package/src/components/input/StackedPilledInput/index.tsx +24 -0
- package/src/components/input/StackedTextarea/StackedTextarea.tsx +6 -4
- package/src/components/input/index.tsx +3 -0
- package/src/components/select/index.tsx +36 -80
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/checkbox.ts +5 -2
- package/src/theme/components/input.ts +9 -1
- package/src/theme/components/textarea.ts +4 -3
|
@@ -8,6 +8,7 @@ export interface StackedPilledInputProps extends InputFieldProps {
|
|
|
8
8
|
control: Control<FieldValues, any>;
|
|
9
9
|
separators?: string[];
|
|
10
10
|
variant?: string;
|
|
11
|
+
label?: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* A functional React component utilized to render the `StackedPilledInput` component.
|
|
@@ -129,7 +129,6 @@ declare const _default: {
|
|
|
129
129
|
border: string;
|
|
130
130
|
gap: string;
|
|
131
131
|
height: string;
|
|
132
|
-
margin: string;
|
|
133
132
|
fontSize: string;
|
|
134
133
|
fontWeight: string;
|
|
135
134
|
lineHeight: string;
|
|
@@ -182,7 +181,6 @@ declare const _default: {
|
|
|
182
181
|
border: string;
|
|
183
182
|
gap: string;
|
|
184
183
|
height: string;
|
|
185
|
-
margin: string;
|
|
186
184
|
fontSize: string;
|
|
187
185
|
lineHeight: string;
|
|
188
186
|
letterSpacing: string;
|
|
@@ -225,7 +223,6 @@ declare const _default: {
|
|
|
225
223
|
border: string;
|
|
226
224
|
gap: string;
|
|
227
225
|
height: string;
|
|
228
|
-
margin: string;
|
|
229
226
|
fontSize: string;
|
|
230
227
|
lineHeight: string;
|
|
231
228
|
letterSpacing: string;
|
|
@@ -9,13 +9,14 @@ declare const _default: {
|
|
|
9
9
|
} | undefined;
|
|
10
10
|
variants?: {
|
|
11
11
|
mobile: {
|
|
12
|
-
control: {
|
|
13
|
-
borderRadius: number;
|
|
14
|
-
padding: number;
|
|
15
|
-
};
|
|
12
|
+
control: {};
|
|
16
13
|
label: {
|
|
17
14
|
fontSize: string;
|
|
15
|
+
fontWeight: number;
|
|
16
|
+
lineHeight: string;
|
|
17
|
+
padding: string;
|
|
18
18
|
};
|
|
19
|
+
height: string;
|
|
19
20
|
};
|
|
20
21
|
} | undefined;
|
|
21
22
|
defaultProps?: {
|
|
@@ -24,6 +24,9 @@ declare const _default: {
|
|
|
24
24
|
border: string;
|
|
25
25
|
borderColor: string;
|
|
26
26
|
};
|
|
27
|
+
_placeholder: {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
27
30
|
};
|
|
28
31
|
};
|
|
29
32
|
variants: {
|
|
@@ -51,18 +54,26 @@ declare const _default: {
|
|
|
51
54
|
border: string;
|
|
52
55
|
borderColor: string;
|
|
53
56
|
};
|
|
57
|
+
_placeholder: {
|
|
58
|
+
color: string;
|
|
59
|
+
};
|
|
54
60
|
};
|
|
55
61
|
};
|
|
56
62
|
mobile: {
|
|
57
63
|
field: {
|
|
58
64
|
fontSize: string;
|
|
59
|
-
border: string;
|
|
60
65
|
py: string;
|
|
61
66
|
px: string;
|
|
62
67
|
cursor: string;
|
|
63
68
|
lineHeight: string;
|
|
64
69
|
fontWeight: number;
|
|
65
70
|
borderRadius: number;
|
|
71
|
+
height: string;
|
|
72
|
+
padding: string;
|
|
73
|
+
border: string;
|
|
74
|
+
borderColor: string;
|
|
75
|
+
borderLeft: string;
|
|
76
|
+
borderRight: string;
|
|
66
77
|
};
|
|
67
78
|
};
|
|
68
79
|
};
|
|
@@ -29,6 +29,9 @@ declare const _default: {
|
|
|
29
29
|
border: string;
|
|
30
30
|
borderColor: string;
|
|
31
31
|
};
|
|
32
|
+
_placeholder: {
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
32
35
|
};
|
|
33
36
|
icon: {
|
|
34
37
|
color: string;
|
|
@@ -63,18 +66,26 @@ declare const _default: {
|
|
|
63
66
|
border: string;
|
|
64
67
|
borderColor: string;
|
|
65
68
|
};
|
|
69
|
+
_placeholder: {
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
66
72
|
};
|
|
67
73
|
};
|
|
68
74
|
mobile: {
|
|
69
75
|
field: {
|
|
70
76
|
fontSize: string;
|
|
71
|
-
border: string;
|
|
72
77
|
py: string;
|
|
73
78
|
px: string;
|
|
74
79
|
cursor: string;
|
|
75
80
|
lineHeight: string;
|
|
76
81
|
fontWeight: number;
|
|
77
82
|
borderRadius: number;
|
|
83
|
+
height: string;
|
|
84
|
+
padding: string;
|
|
85
|
+
border: string;
|
|
86
|
+
borderColor: string;
|
|
87
|
+
borderLeft: string;
|
|
88
|
+
borderRight: string;
|
|
78
89
|
};
|
|
79
90
|
};
|
|
80
91
|
};
|
|
@@ -27,6 +27,9 @@ declare const _default: {
|
|
|
27
27
|
border: string;
|
|
28
28
|
borderColor: string;
|
|
29
29
|
};
|
|
30
|
+
_placeholder: {
|
|
31
|
+
color: string;
|
|
32
|
+
};
|
|
30
33
|
};
|
|
31
34
|
variants: {
|
|
32
35
|
default: {
|
|
@@ -57,28 +60,34 @@ declare const _default: {
|
|
|
57
60
|
border: string;
|
|
58
61
|
borderColor: string;
|
|
59
62
|
};
|
|
63
|
+
_placeholder: {
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
60
66
|
};
|
|
61
67
|
mobile: {
|
|
62
68
|
border: string;
|
|
63
69
|
borderRadius: number;
|
|
64
70
|
paddingY: string;
|
|
65
71
|
paddingX: string;
|
|
66
|
-
padding: string;
|
|
67
72
|
cursor: string;
|
|
68
73
|
lineHeight: string;
|
|
69
74
|
fontWeight: number;
|
|
70
75
|
resize: string;
|
|
71
76
|
overflowY: string;
|
|
72
77
|
fontSize: string;
|
|
78
|
+
minHeight: string;
|
|
73
79
|
py: string;
|
|
74
80
|
px: string;
|
|
75
|
-
display: string;
|
|
76
81
|
height: string;
|
|
82
|
+
padding: string;
|
|
83
|
+
borderColor: string;
|
|
84
|
+
borderLeft: string;
|
|
85
|
+
borderRight: string;
|
|
86
|
+
display: string;
|
|
77
87
|
h: string;
|
|
78
88
|
'::placeholder': {
|
|
79
89
|
color: string;
|
|
80
90
|
};
|
|
81
|
-
borderColor: string;
|
|
82
91
|
_disabled: {
|
|
83
92
|
opacity: number;
|
|
84
93
|
cursor: string;
|
|
@@ -92,6 +101,9 @@ declare const _default: {
|
|
|
92
101
|
border: string;
|
|
93
102
|
borderColor: string;
|
|
94
103
|
};
|
|
104
|
+
_placeholder: {
|
|
105
|
+
color: string;
|
|
106
|
+
};
|
|
95
107
|
};
|
|
96
108
|
};
|
|
97
109
|
defaultProps: {
|
|
@@ -808,7 +808,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
808
808
|
return target;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "allowDefault", "variant"];
|
|
811
|
+
var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "allowDefault", "variant", "label"];
|
|
812
812
|
/**
|
|
813
813
|
* A functional React component utilized to render the `StackedInput` component.
|
|
814
814
|
*/
|
|
@@ -821,14 +821,17 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
|
|
|
821
821
|
defaultValue = _ref2.defaultValue,
|
|
822
822
|
allowDefault = _ref2.allowDefault,
|
|
823
823
|
variant = _ref2.variant,
|
|
824
|
+
label = _ref2.label,
|
|
824
825
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
825
|
-
|
|
826
|
+
var isMobile = variant === 'mobile';
|
|
827
|
+
var placeholder = isMobile && label ? label : undefined;
|
|
828
|
+
return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({}, props, {
|
|
829
|
+
placeholder: placeholder,
|
|
826
830
|
type: type,
|
|
827
|
-
isRequired: isRequired
|
|
828
|
-
}, props, {
|
|
831
|
+
isRequired: isRequired,
|
|
829
832
|
ref: _ref,
|
|
830
833
|
defaultValue: defaultValue,
|
|
831
|
-
fontSize:
|
|
834
|
+
fontSize: isMobile ? '17px' : '13px',
|
|
832
835
|
variant: variant,
|
|
833
836
|
onKeyDown: function onKeyDown(e) {
|
|
834
837
|
if (e.key === 'Enter' && !allowDefault) {
|
|
@@ -1172,20 +1175,23 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1172
1175
|
}));
|
|
1173
1176
|
});
|
|
1174
1177
|
|
|
1175
|
-
var _excluded$2 = ["isRequired", "allowDefault", "variant"];
|
|
1178
|
+
var _excluded$2 = ["isRequired", "allowDefault", "variant", "label"];
|
|
1176
1179
|
/**
|
|
1177
1180
|
* A functional React component utilized to render the `StackedTextarea` component.
|
|
1178
1181
|
*/
|
|
1179
1182
|
var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
|
|
1180
1183
|
var allowDefault = _ref2.allowDefault,
|
|
1181
1184
|
variant = _ref2.variant,
|
|
1185
|
+
label = _ref2.label,
|
|
1182
1186
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
|
|
1183
|
-
|
|
1184
|
-
|
|
1187
|
+
var isMobile = variant === 'mobile';
|
|
1188
|
+
if (isMobile) {
|
|
1189
|
+
return /*#__PURE__*/React__default.createElement(react.Flex, null, /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
|
|
1185
1190
|
ref: _ref
|
|
1186
1191
|
}, props, {
|
|
1187
1192
|
variant: variant,
|
|
1188
1193
|
fontSize: "17px",
|
|
1194
|
+
placeholder: label != null ? label : '',
|
|
1189
1195
|
onKeyDown: function onKeyDown(e) {
|
|
1190
1196
|
if (e.key === 'Enter' && !allowDefault) {
|
|
1191
1197
|
e.stopPropagation();
|
|
@@ -1198,7 +1204,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
|
|
|
1198
1204
|
ref: _ref
|
|
1199
1205
|
}, props, {
|
|
1200
1206
|
variant: variant,
|
|
1201
|
-
fontSize:
|
|
1207
|
+
fontSize: "13px",
|
|
1202
1208
|
onKeyDown: function onKeyDown(e) {
|
|
1203
1209
|
if (e.key === 'Enter' && !allowDefault) {
|
|
1204
1210
|
e.stopPropagation();
|
|
@@ -1568,7 +1574,8 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1568
1574
|
disabled = _ref2.disabled,
|
|
1569
1575
|
_ref2$separators = _ref2.separators,
|
|
1570
1576
|
separators = _ref2$separators === void 0 ? ['Enter', ' ', ',', ';', 'Tab'] : _ref2$separators,
|
|
1571
|
-
variant = _ref2.variant
|
|
1577
|
+
variant = _ref2.variant,
|
|
1578
|
+
label = _ref2.label;
|
|
1572
1579
|
var watchedValue = reactHookForm.useWatch({
|
|
1573
1580
|
control: control,
|
|
1574
1581
|
name: name
|
|
@@ -1716,6 +1723,18 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1716
1723
|
borderRadius: isMobile ? '0' : '4px',
|
|
1717
1724
|
alignItems: "center",
|
|
1718
1725
|
justifyContent: "space-between",
|
|
1726
|
+
style: isMobile ? {
|
|
1727
|
+
cursor: 'pointer',
|
|
1728
|
+
height: '48px',
|
|
1729
|
+
fontSize: '17px',
|
|
1730
|
+
lineHeight: '20px',
|
|
1731
|
+
fontWeight: 400,
|
|
1732
|
+
padding: '12px 16px 12px 0px',
|
|
1733
|
+
borderRadius: 0,
|
|
1734
|
+
border: '0.5px solid rgba(153, 153, 153, 0.1)',
|
|
1735
|
+
borderLeft: 'none',
|
|
1736
|
+
borderRight: 'none'
|
|
1737
|
+
} : undefined,
|
|
1719
1738
|
onClick: function onClick() {
|
|
1720
1739
|
if (isFocussed && tokenIndex !== null) {
|
|
1721
1740
|
setTokenIndex(null);
|
|
@@ -1795,7 +1814,11 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1795
1814
|
setIsFocussed(false);
|
|
1796
1815
|
return setTokenIndex(null);
|
|
1797
1816
|
},
|
|
1798
|
-
|
|
1817
|
+
placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
|
|
1818
|
+
variant: variant,
|
|
1819
|
+
style: isMobile ? {
|
|
1820
|
+
border: 'none'
|
|
1821
|
+
} : undefined
|
|
1799
1822
|
}))));
|
|
1800
1823
|
});
|
|
1801
1824
|
|
|
@@ -1897,7 +1920,8 @@ function Input(_ref) {
|
|
|
1897
1920
|
defaultValue: defaultValue,
|
|
1898
1921
|
value: value,
|
|
1899
1922
|
allowDefault: allowDefault,
|
|
1900
|
-
variant: variant
|
|
1923
|
+
variant: variant,
|
|
1924
|
+
label: label
|
|
1901
1925
|
});
|
|
1902
1926
|
case 'radio':
|
|
1903
1927
|
return /*#__PURE__*/React__default.createElement(StackedRadioGroup, {
|
|
@@ -1946,7 +1970,8 @@ function Input(_ref) {
|
|
|
1946
1970
|
ref: ref,
|
|
1947
1971
|
disabled: disabled,
|
|
1948
1972
|
value: value,
|
|
1949
|
-
variant: variant
|
|
1973
|
+
variant: variant,
|
|
1974
|
+
label: label
|
|
1950
1975
|
});
|
|
1951
1976
|
case 'checkbox':
|
|
1952
1977
|
return /*#__PURE__*/React__default.createElement(StackedCheckbox, {
|
|
@@ -1999,7 +2024,8 @@ function Input(_ref) {
|
|
|
1999
2024
|
clearErrors: clearErrors,
|
|
2000
2025
|
control: control,
|
|
2001
2026
|
maxLength: maxLength,
|
|
2002
|
-
variant: variant
|
|
2027
|
+
variant: variant,
|
|
2028
|
+
label: label
|
|
2003
2029
|
});
|
|
2004
2030
|
case 'switch':
|
|
2005
2031
|
return /*#__PURE__*/React__default.createElement(StackedSwitch, {
|
|
@@ -2995,7 +3021,6 @@ var _excluded$4 = ["label", "ariaLabel", "className", "placeholder", "name", "he
|
|
|
2995
3021
|
* A functional React component utilized to render the `SelectNative` component.
|
|
2996
3022
|
*/
|
|
2997
3023
|
var SelectNative = function SelectNative(_ref) {
|
|
2998
|
-
var _options$;
|
|
2999
3024
|
var name = _ref.name,
|
|
3000
3025
|
helperText = _ref.helperText,
|
|
3001
3026
|
options = _ref.options,
|
|
@@ -3009,38 +3034,35 @@ var SelectNative = function SelectNative(_ref) {
|
|
|
3009
3034
|
setValue = _ref.setValue,
|
|
3010
3035
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3011
3036
|
// const [selectedOption, setSelectedOption] = useState(
|
|
3012
|
-
// options
|
|
3037
|
+
// options ? options[0] ?? '' : ''
|
|
3013
3038
|
// );
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3039
|
+
var style = {
|
|
3040
|
+
cursor: 'pointer',
|
|
3041
|
+
color: 'var(--chakra-colors-blue-500)',
|
|
3042
|
+
height: '48px',
|
|
3043
|
+
fontSize: '17px',
|
|
3044
|
+
lineHeight: '20px',
|
|
3045
|
+
fontWeight: 400,
|
|
3046
|
+
padding: '12px 16px 12px 0px',
|
|
3047
|
+
borderRadius: 0,
|
|
3048
|
+
border: '0.5px solid rgba(153, 153, 153, 0.1)',
|
|
3049
|
+
borderLeft: 'none',
|
|
3050
|
+
borderRight: 'none'
|
|
3051
|
+
};
|
|
3027
3052
|
var handleOnSelectItem = function handleOnSelectItem(selectedValue) {
|
|
3028
|
-
console.log(selectedValue);
|
|
3029
3053
|
var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
|
|
3030
3054
|
var val = _ref2.value;
|
|
3031
3055
|
return selectedValue === val;
|
|
3032
3056
|
});
|
|
3033
|
-
console.log(selectedValue);
|
|
3034
|
-
setValue(name, selectedValue);
|
|
3035
3057
|
if (selectedOption) {
|
|
3036
3058
|
if (onChange) {
|
|
3037
3059
|
onChange(selectedOption.value);
|
|
3038
3060
|
}
|
|
3039
|
-
setSelectedOption(selectedOption);
|
|
3040
3061
|
setValue(name, selectedOption.value);
|
|
3062
|
+
} else {
|
|
3063
|
+
setValue(name, selectedValue);
|
|
3041
3064
|
}
|
|
3042
3065
|
};
|
|
3043
|
-
console.log(selectedOption);
|
|
3044
3066
|
React.useEffect(function () {
|
|
3045
3067
|
if (defaultValue) {
|
|
3046
3068
|
handleOnSelectItem(defaultValue);
|
|
@@ -3050,61 +3072,34 @@ var SelectNative = function SelectNative(_ref) {
|
|
|
3050
3072
|
return /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
3051
3073
|
control: control,
|
|
3052
3074
|
name: name,
|
|
3053
|
-
// defaultValue={defaultValue as PathValue<T, Path<T>>}
|
|
3054
3075
|
rules: {
|
|
3055
3076
|
required: isRequired
|
|
3056
3077
|
},
|
|
3057
3078
|
/** @ts-ignore: issues with implicit */
|
|
3058
3079
|
render: function render(_ref3) {
|
|
3059
3080
|
var _ref3$field = _ref3.field,
|
|
3060
|
-
ref = _ref3$field.ref
|
|
3081
|
+
ref = _ref3$field.ref,
|
|
3082
|
+
value = _ref3$field.value;
|
|
3061
3083
|
return /*#__PURE__*/React__default.createElement(react.FormControl, {
|
|
3062
3084
|
id: name,
|
|
3063
3085
|
isInvalid: isInvalid,
|
|
3064
3086
|
position: "relative",
|
|
3065
3087
|
py: 0
|
|
3066
|
-
}, /*#__PURE__*/React__default.createElement(react.Box //ref={dropdownRef}
|
|
3067
|
-
, {
|
|
3068
|
-
position: "relative"
|
|
3069
|
-
}, /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
3070
|
-
flexDirection: "column",
|
|
3071
|
-
//ref={dropdownRef}
|
|
3072
|
-
//scrollMargin="15px"
|
|
3073
|
-
border: "0",
|
|
3074
|
-
mt: "3px",
|
|
3075
|
-
//maxH="240px"
|
|
3076
|
-
overflowY: "auto",
|
|
3077
|
-
width: "fit-content",
|
|
3078
|
-
minWidth: "100%",
|
|
3079
|
-
zIndex: 100,
|
|
3080
|
-
tabIndex: -2000,
|
|
3081
|
-
borderTop: "0.5px solid #9999991A"
|
|
3082
3088
|
}, /*#__PURE__*/React__default.createElement(react.Select, Object.assign({}, props, {
|
|
3083
3089
|
required: isRequired,
|
|
3084
3090
|
ref: ref,
|
|
3085
|
-
|
|
3086
|
-
// textShadow={`0 0 0 ${colors.label.primary.light}`}
|
|
3091
|
+
value: value,
|
|
3087
3092
|
disabled: disabled != null ? disabled : false,
|
|
3088
3093
|
onChange: function onChange(e) {
|
|
3089
3094
|
return handleOnSelectItem(e.target.value);
|
|
3090
3095
|
},
|
|
3091
|
-
|
|
3092
|
-
style: {
|
|
3093
|
-
cursor: 'pointer',
|
|
3094
|
-
color: 'var(--chakra-colors-blue-500)',
|
|
3095
|
-
height: '48px',
|
|
3096
|
-
fontSize: '17px',
|
|
3097
|
-
lineHeight: '20px',
|
|
3098
|
-
fontWeight: 400,
|
|
3099
|
-
padding: '12px 16px 12px 0px',
|
|
3100
|
-
borderRadius: 0
|
|
3101
|
-
}
|
|
3096
|
+
style: style
|
|
3102
3097
|
}), options && options.map(function (i) {
|
|
3103
3098
|
return /*#__PURE__*/React__default.createElement("option", {
|
|
3104
3099
|
value: i.value,
|
|
3105
3100
|
key: i.sortValue
|
|
3106
3101
|
}, i.label);
|
|
3107
|
-
}))
|
|
3102
|
+
})), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
|
|
3108
3103
|
}
|
|
3109
3104
|
});
|
|
3110
3105
|
};
|
|
@@ -3795,7 +3790,7 @@ var variantPrimaryFlat = function variantPrimaryFlat() {
|
|
|
3795
3790
|
border: '0.5px',
|
|
3796
3791
|
gap: '8px',
|
|
3797
3792
|
height: '44px',
|
|
3798
|
-
margin: '8px',
|
|
3793
|
+
// margin: '8px',
|
|
3799
3794
|
fontSize: '17px',
|
|
3800
3795
|
fontWeight: '500',
|
|
3801
3796
|
lineHeight: '24px',
|
|
@@ -3866,12 +3861,15 @@ var _createMultiStyleConf = /*#__PURE__*/react.createMultiStyleConfigHelpers(ana
|
|
|
3866
3861
|
defineMultiStyleConfig = _createMultiStyleConf.defineMultiStyleConfig;
|
|
3867
3862
|
var roundedCheckbox = /*#__PURE__*/definePartsStyle({
|
|
3868
3863
|
control: {
|
|
3869
|
-
borderRadius: 50,
|
|
3870
|
-
padding: 3
|
|
3864
|
+
//borderRadius: 50,
|
|
3871
3865
|
},
|
|
3872
3866
|
label: {
|
|
3873
|
-
fontSize: '17px'
|
|
3874
|
-
|
|
3867
|
+
fontSize: '17px',
|
|
3868
|
+
fontWeight: 400,
|
|
3869
|
+
lineHeight: '20px',
|
|
3870
|
+
padding: '12px 16px 12px 0px'
|
|
3871
|
+
},
|
|
3872
|
+
height: '44px'
|
|
3875
3873
|
});
|
|
3876
3874
|
var variants$3 = {
|
|
3877
3875
|
mobile: roundedCheckbox
|
|
@@ -3987,19 +3985,27 @@ var baseStyle$7 = {
|
|
|
3987
3985
|
bg: '#ffffff',
|
|
3988
3986
|
border: '2px solid',
|
|
3989
3987
|
borderColor: colors.border.focus
|
|
3988
|
+
},
|
|
3989
|
+
_placeholder: {
|
|
3990
|
+
color: colors.label.secondary.light
|
|
3990
3991
|
}
|
|
3991
3992
|
}
|
|
3992
3993
|
};
|
|
3993
3994
|
var mobileInputs = /*#__PURE__*/_extends$6({}, baseStyle$7, {
|
|
3994
3995
|
field: {
|
|
3995
3996
|
fontSize: '17px',
|
|
3996
|
-
border: 'none',
|
|
3997
3997
|
py: '14px',
|
|
3998
3998
|
px: '16px',
|
|
3999
3999
|
cursor: 'pointer',
|
|
4000
4000
|
lineHeight: '21px',
|
|
4001
4001
|
fontWeight: 400,
|
|
4002
|
-
borderRadius: 0
|
|
4002
|
+
borderRadius: 0,
|
|
4003
|
+
height: '48px',
|
|
4004
|
+
padding: '12px 16px 12px 0px',
|
|
4005
|
+
border: '0.5px solid rgba(153, 153, 153, 0.1)',
|
|
4006
|
+
borderColor: 'rgba(153, 153, 153, 0.1)',
|
|
4007
|
+
borderLeft: 'none',
|
|
4008
|
+
borderRight: 'none'
|
|
4003
4009
|
}
|
|
4004
4010
|
});
|
|
4005
4011
|
var variants$5 = {
|
|
@@ -4558,15 +4564,16 @@ var baseStyle$e = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
|
|
|
4558
4564
|
var mobileInputs$1 = /*#__PURE__*/react.defineStyle( /*#__PURE__*/_extends$6({}, baseStyle$e, Input$1.variants.mobile.field, {
|
|
4559
4565
|
border: 'none',
|
|
4560
4566
|
borderRadius: 0,
|
|
4561
|
-
paddingY: '
|
|
4562
|
-
paddingX: '
|
|
4563
|
-
padding: '
|
|
4567
|
+
paddingY: '16px',
|
|
4568
|
+
paddingX: '0',
|
|
4569
|
+
// padding: '16px 16px',
|
|
4564
4570
|
cursor: 'pointer',
|
|
4565
4571
|
lineHeight: '21px',
|
|
4566
4572
|
fontWeight: 400,
|
|
4567
4573
|
resize: 'none',
|
|
4568
4574
|
overflowY: 'auto',
|
|
4569
|
-
fontSize: '17px'
|
|
4575
|
+
fontSize: '17px',
|
|
4576
|
+
minHeight: '208px'
|
|
4570
4577
|
}));
|
|
4571
4578
|
var variants$9 = {
|
|
4572
4579
|
"default": baseStyle$e,
|