@xaypay/tui 0.0.59 → 0.0.60

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.
@@ -3,14 +3,17 @@ import PropTypes from 'prop-types';
3
3
  import classnames from 'classnames';
4
4
  import { compereConfigs } from "./../../utils";
5
5
 
6
+ import { SelectCheckbox } from './../selectCheckbox';
7
+
6
8
  import ReactArrowIcon from './../../assets/icons/arrow.svg';
7
9
  import ReactCloseIcon from './../../assets/icons/close-icon.svg';
8
10
 
9
11
  import styles from './select.module.css';
10
12
 
11
13
  export const Select = ({
14
+ options,
15
+ multiple,
12
16
  disabled,
13
- jsonData,
14
17
  required,
15
18
  onChange,
16
19
  keyNames,
@@ -20,6 +23,7 @@ export const Select = ({
20
23
  closeIcon,
21
24
  errorMessage,
22
25
  defaultOption,
26
+ multipleCheckbox,
23
27
 
24
28
  label,
25
29
  labelColor,
@@ -35,7 +39,7 @@ export const Select = ({
35
39
  errorColor,
36
40
  selectedColor,
37
41
  selectedRadius,
38
- selectedHeight,
42
+ selectedMinHeight,
39
43
  selectedBorder,
40
44
  selectedPadding,
41
45
  selectedFontSize,
@@ -63,12 +67,12 @@ export const Select = ({
63
67
  optionItemBackgroudColor,
64
68
  optionItemBackgroudColorHover,
65
69
  }) => {
66
- const options = jsonData.length ? JSON.parse(jsonData) : [];
67
70
  const ref = useRef();
68
71
 
69
72
  const [opened, setOpened] = useState(false);
70
73
  const [isHover, setIsHover] = useState(false);
71
- const [newSelected, setNewSelected] = useState({});
74
+ const [newSelected, setNewSelected] = useState([]);
75
+ const [existOptions, setExistOptions] = useState([]);
72
76
 
73
77
  const configStyles = compereConfigs();
74
78
  const classProps = classnames(
@@ -81,14 +85,43 @@ export const Select = ({
81
85
 
82
86
  const handleClearSelect = (e) => {
83
87
  onChange({});
84
- setNewSelected({})
88
+ setNewSelected([]);
89
+ const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
90
+ item.checked = false;
91
+ return item;
92
+ });
93
+ setExistOptions(clearedOptions);
85
94
  e.stopPropagation();
86
95
  };
87
96
 
88
97
  const handleSelectItem = (option) => {
89
- onChange(option);
90
- setOpened(!opened);
91
- setNewSelected(option);
98
+ const checkedOption = {...option};
99
+ delete checkedOption.checked;
100
+ onChange(checkedOption);
101
+
102
+ if (!multiple) {
103
+ setOpened(!opened);
104
+ setNewSelected([option]);
105
+ } else {
106
+ const indexOfObject = newSelected.findIndex(obj => {
107
+ return obj.value === option.value;
108
+ });
109
+ if (indexOfObject === -1) {
110
+ option.checked = true;
111
+ setNewSelected(prev => {
112
+ return [
113
+ ...prev,
114
+ option
115
+ ]
116
+ });
117
+ } else {
118
+ option.checked = false;
119
+ setNewSelected([
120
+ ...newSelected.slice(0, indexOfObject),
121
+ ...newSelected.slice(indexOfObject + 1),
122
+ ]);
123
+ }
124
+ }
92
125
  };
93
126
 
94
127
  const handleMouseEnter = () => {
@@ -109,11 +142,6 @@ export const Select = ({
109
142
  e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor;
110
143
  };
111
144
 
112
- useEffect(()=>{
113
- const parseSelectedData = selected.length !== 0 ? JSON.parse(selected) : {};
114
- setNewSelected(parseSelectedData);
115
- },[selected])
116
-
117
145
  useEffect(() => {
118
146
  if(opened){
119
147
  const checkIfClickedOutside = e => {
@@ -127,6 +155,26 @@ export const Select = ({
127
155
  }
128
156
  }
129
157
  }, [opened]);
158
+
159
+ useEffect(() => {
160
+ selected && selected.length > 0 && setNewSelected(selected);
161
+ if (!multiple) {
162
+ options && options.length > 0 && setExistOptions(options);
163
+ } else {
164
+ const modifiedOptions = options && options.length > 0 && options.map((item, index) => {
165
+ item.checked = false;
166
+ if (selected && selected.length > 0) {
167
+ selected.map(innerItem => {
168
+ if (innerItem.value === item.value) {
169
+ item.checked = true;
170
+ }
171
+ });
172
+ }
173
+ return item;
174
+ });
175
+ setExistOptions(modifiedOptions);
176
+ }
177
+ }, [options, multiple, selected]);
130
178
 
131
179
  return (
132
180
  <div className={classProps}>
@@ -153,7 +201,7 @@ export const Select = ({
153
201
  <div
154
202
  style={{
155
203
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
156
- height: selectedHeight ? selectedHeight : configStyles.SELECT.selectedHeight,
204
+ minHeight: selectedMinHeight ? selectedMinHeight : configStyles.SELECT.selectedMinHeight,
157
205
  border: selectedBorder ? selectedBorder : configStyles.SELECT.selectedBorder,
158
206
  padding: selectedPadding ? selectedPadding : configStyles.SELECT.selectedPadding,
159
207
  borderRadius: selectedRadius ? selectedRadius : configStyles.SELECT.selectedRadius,
@@ -165,8 +213,8 @@ export const Select = ({
165
213
  borderColor: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : selectedBorderColor ? selectedBorderColor : configStyles.SELECT.selectedBorderColor
166
214
  }}
167
215
  onClick={disabled ? _ => _ : _ => handleOpenClose()}
168
- onMouseEnter={disabled ? _ => _ : handleMouseEnter}
169
- onMouseLeave={disabled ? _ => _ : handleMouseLeave}
216
+ onMouseEnter={disabled ? _ => _ : _ => handleMouseEnter()}
217
+ onMouseLeave={disabled ? _ => _ : _ => handleMouseLeave()}
170
218
  className={`${styles['select-content-top']}`}
171
219
  >
172
220
  <div
@@ -175,14 +223,29 @@ export const Select = ({
175
223
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor,
176
224
  }}
177
225
  >
178
- {newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption}
226
+ {
227
+ !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] :
228
+ newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
229
+ if (newSelected[index][keyNames.name]) {
230
+ if (index > 0) {
231
+ return ', ' + newSelected[index][keyNames.name];
232
+ } else {
233
+ return newSelected[index][keyNames.name];
234
+ }
235
+ }
236
+ }) : defaultOption ? defaultOption : ''
237
+ }
179
238
  </div>
180
239
  <div className={`${styles['select-content-top-icon']}`}>
240
+ {
241
+ multiple && newSelected.length > 1 && <span>{newSelected.length}</span>
242
+ }
181
243
 
182
- {Object.keys(newSelected).length > 0 &&
244
+ {newSelected && newSelected.length > 0 &&
183
245
  <div
184
- className={`${styles['close-icon']}`}
185
- onClick={disabled ? _ => _ : handleClearSelect}
246
+ className={`${styles['close-icon']}`}
247
+ onClick={disabled ? _ => _ : handleClearSelect}
248
+ style={{marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'}}
186
249
  >
187
250
  { closeIcon ? closeIcon : <img src={ReactCloseIcon} alt="icon" /> }
188
251
  </div>
@@ -204,13 +267,13 @@ export const Select = ({
204
267
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
205
268
  borderRadius: optionsBorderRadius ? optionsBorderRadius : configStyles.SELECT.optionsBorderRadius,
206
269
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
207
- top: parseFloat( selectedHeight ? selectedHeight.substring(0, selectedHeight.length - 2) : configStyles.SELECT.selectedHeight.substring(0, configStyles.SELECT.selectedHeight.length - 2)) + 6 + 'px'
270
+ top: parseFloat( selectedMinHeight ? selectedMinHeight.substring(0, selectedMinHeight.length - 2) : configStyles.SELECT.selectedMinHeight.substring(0, configStyles.SELECT.selectedMinHeight.length - 2)) + 6 + 'px'
208
271
  }}
209
272
  className={`${styles['select-content-bottom']}`}
210
273
  >
211
274
  <div className={`${styles['select-content-bottom-inner']}`}>
212
275
  {
213
- options.map((option, i) => {
276
+ existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
214
277
  return <div
215
278
  key={i}
216
279
  disabled={true}
@@ -232,6 +295,7 @@ export const Select = ({
232
295
  backgroundColor: optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor,
233
296
  }}
234
297
  >
298
+ {multiple && multipleCheckbox ? <SelectCheckbox checked={option.checked} /> : ''}
235
299
  {option[keyNames.name]}
236
300
  </div>
237
301
  })
@@ -259,17 +323,19 @@ export const Select = ({
259
323
  };
260
324
 
261
325
  Select.propTypes = {
326
+ options: PropTypes.array,
327
+ multiple: PropTypes.bool,
262
328
  onChange: PropTypes.func,
263
329
  required: PropTypes.bool,
264
330
  disabled: PropTypes.bool,
265
- selected: PropTypes.string,
266
- jsonData: PropTypes.string,
331
+ selected: PropTypes.array,
267
332
  keyNames: PropTypes.object,
268
333
  className: PropTypes.string,
269
334
  arrowIcon: PropTypes.element,
270
335
  closeIcon: PropTypes.element,
271
336
  errorMessage: PropTypes.string,
272
337
  defaultOption: PropTypes.string,
338
+ multipleCheckbox: PropTypes.bool,
273
339
 
274
340
  label: PropTypes.string,
275
341
  labelColor: PropTypes.string,
@@ -286,7 +352,7 @@ Select.propTypes = {
286
352
  selectedColor: PropTypes.string,
287
353
  selectedBorder: PropTypes.string,
288
354
  selectedRadius: PropTypes.string,
289
- selectedHeight: PropTypes.string,
355
+ selectedMinHeight: PropTypes.string,
290
356
  selectedPadding: PropTypes.string,
291
357
  selectedFontSize: PropTypes.string,
292
358
  selectedBoxSizing: PropTypes.string,
@@ -3,6 +3,14 @@ import { Select } from ".";
3
3
  export default {
4
4
  component: Select,
5
5
  title: 'Components/Select',
6
+ argTypes: {
7
+ options: {
8
+ control: 'array'
9
+ },
10
+ selected: {
11
+ control: 'array'
12
+ }
13
+ }
6
14
  };
7
15
 
8
16
  const Template = (args) => <Select label='' {...args} >Default</Select>;
@@ -10,11 +18,11 @@ const Template = (args) => <Select label='' {...args} >Default</Select>;
10
18
  export const Default = Template.bind({});
11
19
  Default.args = {
12
20
  label: 'վարչական շրջան',
13
- jsonData: '[{"bbb":"0", "value":"Արաբկիր"}, {"bbb":"1", "value":"Կենտրոն"}, {"bbb":"2", "value":"Մալաթիա"}]',
21
+ options: [{"bbb":"0", "value":"Արաբկիր"}, {"bbb":"1", "value":"Կենտրոն"}, {"bbb":"2", "value":"Մալաթիա"}],
14
22
  onChange: (newValue)=> {
15
23
  },
16
- defaultOption: '',
17
- selected: '{"bbb":"2", "value":"Մալաթիա"}',
24
+ defaultOption: 'Ընտրել',
25
+ selected: [{"bbb":"1", "value":"Կենտրոն"}, {"bbb":"2", "value":"Մալաթիա"}],
18
26
  keyNames: {name: 'value', id : 'bbb'}
19
27
  };
20
28
 
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ import ReactCheckbox from './../../assets/icons/checkbox-unchecked.svg';
5
+ import ReactCheckboxChecked from './../../assets/icons/checkbox-checked.svg';
6
+
7
+ export const SelectCheckbox = ({ checked }) => {
8
+
9
+ return <div
10
+ style={{
11
+ marginRight: '9px'
12
+ }}
13
+ >
14
+ { checked ? <img src={ReactCheckboxChecked} /> : <img src={ReactCheckbox} /> }
15
+ </div>;
16
+ };
17
+
18
+ SelectCheckbox.propTypes = {
19
+ checked: PropTypes.bool,
20
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { SelectCheckbox } from ".";
3
+ export default {
4
+ component: SelectCheckbox,
5
+ title: "Components/SelectCheckbox",
6
+ };
7
+
8
+ const Template = (args) => <SelectCheckbox {...args} />;
9
+
10
+ export const Default = Template.bind({});
@@ -22,8 +22,6 @@ export const Typography = ({
22
22
  radius,
23
23
  border,
24
24
  cursor,
25
- margin,
26
- padding,
27
25
  variant,
28
26
  onClick,
29
27
  children,
@@ -67,9 +65,7 @@ export const Typography = ({
67
65
  cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
68
66
  borderRadius: radius ? radius : configStyles.TYPOGRAPHY.radius,
69
67
  fontSize: size ? size : configStyles.TYPOGRAPHY['size'+variant],
70
- margin: margin ? margin : configStyles.TYPOGRAPHY['margin'+variant],
71
68
  fontWeight: weight ? weight : configStyles.TYPOGRAPHY['weight'+variant],
72
- padding: padding ? padding : configStyles.TYPOGRAPHY['padding'+variant],
73
69
  textShadow: textShadow ? textShadow : configStyles.TYPOGRAPHY.textShadow,
74
70
  textAlign: textAlign ? textAlign : configStyles.TYPOGRAPHY['textAlign'+variant],
75
71
  fontStyle: fontStyle ? fontStyle : configStyles.TYPOGRAPHY['fontStyle'+variant],
@@ -102,9 +98,7 @@ Typography.propTypes = {
102
98
  weight: PropTypes.string,
103
99
  border: PropTypes.string,
104
100
  cursor: PropTypes.string,
105
- margin: PropTypes.string,
106
101
  radius: PropTypes.string,
107
- padding: PropTypes.string,
108
102
  textAlign: PropTypes.string,
109
103
  className: PropTypes.string,
110
104
  fontStyle: PropTypes.string,
package/src/index.js CHANGED
@@ -12,4 +12,5 @@ export * from './components/checkbox';
12
12
  export * from './components/icon/Icon';
13
13
  export * from './components/typography';
14
14
  export * from './components/pagination';
15
- export * from './components/autocomplate';
15
+ export * from './components/autocomplate';
16
+ export * from './components/selectCheckbox';
@@ -114,5 +114,18 @@ import StackAlt from './assets/stackalt.svg';
114
114
  `}
115
115
  </style>
116
116
 
117
- # Documentation
117
+ # Changelog
118
+
119
+ ### v0.0.59
120
+
121
+ 1. Change: errorMesage to errorMessage (in all components)
122
+
123
+ ### v0.0.60
124
+
125
+ 1. Change/Add/Remove: tui.config.js file, //SELECT prop name selectedHeight to selectedMinHeight, //INPUT new props, // TYPOGRAPHY remove some props
126
+ 2. Add: new component selectCheckbox
127
+ 3. Remove: unnecessary unmount from Filr component
128
+ 4. Change: select prop jsonData to options always get an array
129
+ 5. Add: new functionality on select component, multiple mode
130
+
118
131
 
@@ -144,7 +144,7 @@ import StackAlt from './assets/stackalt.svg';
144
144
  disabledLineColor: 'rgba(60, 57, 62, 1)', // for border color (outline) in disabled mode
145
145
  disabledBackgroundColor: 'rgba(238, 238, 238, 1)', // for background color in disabled mode
146
146
  transition: 'background-color 240ms, color 240ms', // for transition
147
- },
147
+ }
148
148
  ```
149
149
 
150
150
  ### Input
@@ -167,6 +167,7 @@ import StackAlt from './assets/stackalt.svg';
167
167
  errorColor: '#e00', // for error message color
168
168
  labelWeight: '500', // for label font weight
169
169
  errorClassName: '', // for error message classname (you can set custom class for your custom css)
170
+ phoneDisplay: 'flex', // for phone extention display, work when input type is tel
170
171
  autoComplete: 'off', // for autocomplete fill mode (browser specific, may not work)
171
172
  errorBottom: '-20px', // for error message position from bottom (work when errorPosition prop is 'absolute')
172
173
  padding: '12px 15px', // for padding
@@ -179,8 +180,10 @@ import StackAlt from './assets/stackalt.svg';
179
180
  backgroundColor: 'white', // for input and also (if there exist left or right icons) icons block background color
180
181
  color: 'rgb(60, 57, 62)', // for input color
181
182
  labelMarginBottom: '6px', // for label margin bottom
183
+ phoneAlignItems: 'center', // for phone extention inside item, work when input type is tel
182
184
  errorPosition: 'absolute', // for error message position (maybe you want to show error message in custom place)
183
185
  transform: 'scale3d(0,0,0)', // for transform (when have error message and errorAnimation prop is true)
186
+ phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
184
187
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
185
188
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
186
189
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
@@ -214,15 +217,6 @@ import StackAlt from './assets/stackalt.svg';
214
217
  cursor: 'default', // for cursor
215
218
  textShadow: 'none', // for text shadow
216
219
 
217
- marginp: '0px', // for variant p margin
218
- marginh1: '0px', // for variant h1 margin
219
- marginh2: '0px', // for variant h2 margin
220
- marginh3: '0px', // for variant h3 margin
221
- marginh4: '0px', // for variant h4 margin
222
- marginh5: '0px', // for variant h5 margin
223
- marginh6: '0px', // for variant h6 margin
224
- marginspan: '0px', // for variant span margin
225
-
226
220
  colorp: '#3C393E', // for variant p color
227
221
  colorh1: '#3C393E', // for variant h1 color
228
222
  colorh2: '#3C393E', // for variant h2 color
@@ -230,16 +224,7 @@ import StackAlt from './assets/stackalt.svg';
230
224
  colorh4: '#3C393E', // for variant h4 color
231
225
  colorh5: '#3C393E', // for variant h5 color
232
226
  colorh6: '#3C393E', // for variant h6 color
233
- colorspan: '#3C393E', // for variant span color
234
-
235
- paddingp: '0px', // for variant p padding
236
- paddingh1: '0px', // for variant h1 padding
237
- paddingh2: '0px', // for variant h2 padding
238
- paddingh3: '0px', // for variant h3 padding
239
- paddingh4: '0px', // for variant h4 padding
240
- paddingh5: '0px', // for variant h5 padding
241
- paddingh6: '0px', // for variant h6 padding
242
- paddingspan: '0px', // for variant span padding
227
+ colorspan: '#3C393E', // for variant span color
243
228
 
244
229
  sizep: '13px', // for variant p font size
245
230
  sizeh1: '70px', // for variant h1 font size
@@ -344,15 +329,15 @@ import StackAlt from './assets/stackalt.svg';
344
329
  labelLineHeight: '22px', // for label line height
345
330
  labelMarginBottom: '6px', // for label margin bottom
346
331
  labelTextTransform: 'none', // for label text transform
347
-
332
+
348
333
  errorSize: '14px', // for error font size
349
334
  errorColor: 'rgb(238, 0, 0)', // for error color
350
335
 
351
336
  cursor: 'pointer', // for selected cursor
352
337
  selectedRadius: '6px', // for selected border radius
353
- selectedHeight: '46px', // for selected height
354
338
  selectedColor: '#3C393E', // for selected color
355
339
  selectedFontSize: '16px', // for selected font size
340
+ selectedMinHeight: '46px', // for selected height
356
341
  selectedFontWeight: '500', // for selected font weight
357
342
  selectedLineHeight: '22px', // for selected line height
358
343
  selectedPadding: '0px 15px', // for selected padding
package/tui.config.js CHANGED
@@ -40,6 +40,7 @@ module.exports = {
40
40
  errorColor: '#e00', // for error message color
41
41
  labelWeight: '500', // for label font weight
42
42
  errorClassName: '', // for error message classname (you can set custom class for your custom css)
43
+ phoneDisplay: 'flex', // for phone extention display, work when input type is tel
43
44
  autoComplete: 'off', // for autocomplete fill mode (browser specific, may not work)
44
45
  errorBottom: '-20px', // for error message position from bottom (work when errorPosition prop is 'absolute')
45
46
  padding: '12px 15px', // for padding
@@ -52,8 +53,10 @@ module.exports = {
52
53
  backgroundColor: 'white', // for input and also (if there exist left or right icons) icons block background color
53
54
  color: 'rgb(60, 57, 62)', // for input color
54
55
  labelMarginBottom: '6px', // for label margin bottom
56
+ phoneAlignItems: 'center', // for phone extention inside item, work when input type is tel
55
57
  errorPosition: 'absolute', // for error message position (maybe you want to show error message in custom place)
56
58
  transform: 'scale3d(0,0,0)', // for transform (when have error message and errorAnimation prop is true)
59
+ phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
57
60
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
58
61
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
59
62
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
@@ -80,15 +83,6 @@ module.exports = {
80
83
  cursor: 'default', // for cursor
81
84
  textShadow: 'none', // for text shadow
82
85
 
83
- marginp: '0px', // for variant p margin
84
- marginh1: '0px', // for variant h1 margin
85
- marginh2: '0px', // for variant h2 margin
86
- marginh3: '0px', // for variant h3 margin
87
- marginh4: '0px', // for variant h4 margin
88
- marginh5: '0px', // for variant h5 margin
89
- marginh6: '0px', // for variant h6 margin
90
- marginspan: '0px', // for variant span margin
91
-
92
86
  colorp: '#3C393E', // for variant p color
93
87
  colorh1: '#3C393E', // for variant h1 color
94
88
  colorh2: '#3C393E', // for variant h2 color
@@ -96,16 +90,7 @@ module.exports = {
96
90
  colorh4: '#3C393E', // for variant h4 color
97
91
  colorh5: '#3C393E', // for variant h5 color
98
92
  colorh6: '#3C393E', // for variant h6 color
99
- colorspan: '#3C393E', // for variant span color
100
-
101
- paddingp: '0px', // for variant p padding
102
- paddingh1: '0px', // for variant h1 padding
103
- paddingh2: '0px', // for variant h2 padding
104
- paddingh3: '0px', // for variant h3 padding
105
- paddingh4: '0px', // for variant h4 padding
106
- paddingh5: '0px', // for variant h5 padding
107
- paddingh6: '0px', // for variant h6 padding
108
- paddingspan: '0px', // for variant span padding
93
+ colorspan: '#3C393E', // for variant span color
109
94
 
110
95
  sizep: '13px', // for variant p font size
111
96
  sizeh1: '70px', // for variant h1 font size
@@ -206,15 +191,15 @@ module.exports = {
206
191
  labelLineHeight: '22px', // for label line height
207
192
  labelMarginBottom: '6px', // for label margin bottom
208
193
  labelTextTransform: 'none', // for label text transform
209
-
194
+
210
195
  errorSize: '14px', // for error font size
211
196
  errorColor: 'rgb(238, 0, 0)', // for error color
212
197
 
213
198
  cursor: 'pointer', // for selected cursor
214
199
  selectedRadius: '6px', // for selected border radius
215
- selectedHeight: '46px', // for selected height
216
200
  selectedColor: '#3C393E', // for selected color
217
201
  selectedFontSize: '16px', // for selected font size
202
+ selectedMinHeight: '46px', // for selected height
218
203
  selectedFontWeight: '500', // for selected font weight
219
204
  selectedLineHeight: '22px', // for selected line height
220
205
  selectedPadding: '0px 15px', // for selected padding