@xaypay/tui 0.0.59 → 0.0.61

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,48 @@ 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
+
101
+ if (!multiple) {
102
+ setOpened(!opened);
103
+ setNewSelected([option]);
104
+ onChange(checkedOption);
105
+ } else {
106
+ const indexOfObject = newSelected.findIndex(obj => {
107
+ return obj[keyNames.name] === option[keyNames.name];
108
+ });
109
+ if (indexOfObject === -1) {
110
+ option.checked = true;
111
+ setNewSelected(prev => {
112
+ return [
113
+ ...prev,
114
+ option
115
+ ]
116
+ });
117
+ onChange([...newSelected, option])
118
+ } else {
119
+ option.checked = false;
120
+ setNewSelected([
121
+ ...newSelected.slice(0, indexOfObject),
122
+ ...newSelected.slice(indexOfObject + 1),
123
+ ]);
124
+ onChange([
125
+ ...newSelected.slice(0, indexOfObject),
126
+ ...newSelected.slice(indexOfObject + 1),
127
+ ])
128
+ }
129
+ }
92
130
  };
93
131
 
94
132
  const handleMouseEnter = () => {
@@ -109,11 +147,6 @@ export const Select = ({
109
147
  e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor;
110
148
  };
111
149
 
112
- useEffect(()=>{
113
- const parseSelectedData = selected.length !== 0 ? JSON.parse(selected) : {};
114
- setNewSelected(parseSelectedData);
115
- },[selected])
116
-
117
150
  useEffect(() => {
118
151
  if(opened){
119
152
  const checkIfClickedOutside = e => {
@@ -127,6 +160,26 @@ export const Select = ({
127
160
  }
128
161
  }
129
162
  }, [opened]);
163
+
164
+ useEffect(() => {
165
+ selected && selected.length > 0 && setNewSelected(selected);
166
+ if (!multiple) {
167
+ options && options.length > 0 && setExistOptions(options);
168
+ } else {
169
+ const modifiedOptions = options && options.length > 0 && options.map((item, index) => {
170
+ item.checked = false;
171
+ if (selected && selected.length > 0) {
172
+ selected.map(innerItem => {
173
+ if (innerItem[keyNames.name] === item[keyNames.name]) {
174
+ item.checked = true;
175
+ }
176
+ });
177
+ }
178
+ return item;
179
+ });
180
+ setExistOptions(modifiedOptions);
181
+ }
182
+ }, [options, multiple, selected]);
130
183
 
131
184
  return (
132
185
  <div className={classProps}>
@@ -153,7 +206,7 @@ export const Select = ({
153
206
  <div
154
207
  style={{
155
208
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
156
- height: selectedHeight ? selectedHeight : configStyles.SELECT.selectedHeight,
209
+ minHeight: selectedMinHeight ? selectedMinHeight : configStyles.SELECT.selectedMinHeight,
157
210
  border: selectedBorder ? selectedBorder : configStyles.SELECT.selectedBorder,
158
211
  padding: selectedPadding ? selectedPadding : configStyles.SELECT.selectedPadding,
159
212
  borderRadius: selectedRadius ? selectedRadius : configStyles.SELECT.selectedRadius,
@@ -165,8 +218,8 @@ export const Select = ({
165
218
  borderColor: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : selectedBorderColor ? selectedBorderColor : configStyles.SELECT.selectedBorderColor
166
219
  }}
167
220
  onClick={disabled ? _ => _ : _ => handleOpenClose()}
168
- onMouseEnter={disabled ? _ => _ : handleMouseEnter}
169
- onMouseLeave={disabled ? _ => _ : handleMouseLeave}
221
+ onMouseEnter={disabled ? _ => _ : _ => handleMouseEnter()}
222
+ onMouseLeave={disabled ? _ => _ : _ => handleMouseLeave()}
170
223
  className={`${styles['select-content-top']}`}
171
224
  >
172
225
  <div
@@ -175,14 +228,29 @@ export const Select = ({
175
228
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor,
176
229
  }}
177
230
  >
178
- {newSelected && newSelected[keyNames.name] ? newSelected[keyNames.name] : defaultOption}
231
+ {
232
+ !multiple && newSelected && newSelected[0] && newSelected[0][keyNames.name] ? newSelected[0][keyNames.name] :
233
+ newSelected && newSelected.length > 0 ? newSelected.map((_, index) => {
234
+ if (newSelected[index][keyNames.name]) {
235
+ if (index > 0) {
236
+ return ', ' + newSelected[index][keyNames.name];
237
+ } else {
238
+ return newSelected[index][keyNames.name];
239
+ }
240
+ }
241
+ }) : defaultOption ? defaultOption : ''
242
+ }
179
243
  </div>
180
244
  <div className={`${styles['select-content-top-icon']}`}>
245
+ {
246
+ multiple && newSelected.length > 1 && <span>{newSelected.length}</span>
247
+ }
181
248
 
182
- {Object.keys(newSelected).length > 0 &&
249
+ {newSelected && newSelected.length > 0 &&
183
250
  <div
184
- className={`${styles['close-icon']}`}
185
- onClick={disabled ? _ => _ : handleClearSelect}
251
+ className={`${styles['close-icon']}`}
252
+ onClick={disabled ? _ => _ : handleClearSelect}
253
+ style={{marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'}}
186
254
  >
187
255
  { closeIcon ? closeIcon : <img src={ReactCloseIcon} alt="icon" /> }
188
256
  </div>
@@ -204,13 +272,13 @@ export const Select = ({
204
272
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
205
273
  borderRadius: optionsBorderRadius ? optionsBorderRadius : configStyles.SELECT.optionsBorderRadius,
206
274
  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'
275
+ top: parseFloat( selectedMinHeight ? selectedMinHeight.substring(0, selectedMinHeight.length - 2) : configStyles.SELECT.selectedMinHeight.substring(0, configStyles.SELECT.selectedMinHeight.length - 2)) + 6 + 'px'
208
276
  }}
209
277
  className={`${styles['select-content-bottom']}`}
210
278
  >
211
279
  <div className={`${styles['select-content-bottom-inner']}`}>
212
280
  {
213
- options.map((option, i) => {
281
+ existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
214
282
  return <div
215
283
  key={i}
216
284
  disabled={true}
@@ -232,6 +300,7 @@ export const Select = ({
232
300
  backgroundColor: optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor,
233
301
  }}
234
302
  >
303
+ {multiple && multipleCheckbox ? <SelectCheckbox checked={option.checked} /> : ''}
235
304
  {option[keyNames.name]}
236
305
  </div>
237
306
  })
@@ -259,17 +328,19 @@ export const Select = ({
259
328
  };
260
329
 
261
330
  Select.propTypes = {
331
+ options: PropTypes.array,
332
+ multiple: PropTypes.bool,
262
333
  onChange: PropTypes.func,
263
334
  required: PropTypes.bool,
264
335
  disabled: PropTypes.bool,
265
- selected: PropTypes.string,
266
- jsonData: PropTypes.string,
336
+ selected: PropTypes.array,
267
337
  keyNames: PropTypes.object,
268
338
  className: PropTypes.string,
269
339
  arrowIcon: PropTypes.element,
270
340
  closeIcon: PropTypes.element,
271
341
  errorMessage: PropTypes.string,
272
342
  defaultOption: PropTypes.string,
343
+ multipleCheckbox: PropTypes.bool,
273
344
 
274
345
  label: PropTypes.string,
275
346
  labelColor: PropTypes.string,
@@ -286,7 +357,7 @@ Select.propTypes = {
286
357
  selectedColor: PropTypes.string,
287
358
  selectedBorder: PropTypes.string,
288
359
  selectedRadius: PropTypes.string,
289
- selectedHeight: PropTypes.string,
360
+ selectedMinHeight: PropTypes.string,
290
361
  selectedPadding: PropTypes.string,
291
362
  selectedFontSize: PropTypes.string,
292
363
  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