@xaypay/tui 0.0.117 → 0.0.119

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.
@@ -28,11 +28,8 @@
28
28
 
29
29
  .list-text {
30
30
  cursor: pointer;
31
- overflow: hidden;
32
- text-align: left;
33
- white-space: nowrap;
31
+ white-space: wrap;
34
32
  margin: 0px 0px 8px 0px;
35
- text-overflow: ellipsis;
36
33
  }
37
34
 
38
35
  .dots-option-item {
@@ -23,7 +23,11 @@ const TD = ({
23
23
  tBodyFontFamily,
24
24
  tBodyFontWeight,
25
25
  handleCheckDots,
26
+ openListFontSize,
26
27
  handleCheckedBody,
28
+ openListFontFamily,
29
+ tableColumnMinWidth,
30
+ tableColumnMaxWidth,
27
31
  handleBodyActionClick,
28
32
  handleMoreOptionsClick,
29
33
  handleContentListClick,
@@ -78,13 +82,15 @@ const TD = ({
78
82
  width: 'auto',
79
83
  color: tBodyColor,
80
84
  verticalAlign: 'top',
81
- whiteSpace: 'nowrap',
82
85
  padding: tBodyPadding,
83
86
  fontSize: tBodyFontSize,
84
87
  borderRight: borderRight,
85
88
  textAlign: tBodyTextAlign,
86
89
  fontFamily: tBodyFontFamily,
87
90
  fontWeight: tBodyFontWeight,
91
+ minWidth: tableColumnMinWidth,
92
+ maxWidth: tableColumnMaxWidth,
93
+ whiteSpace: Array.isArray(item) ? 'nowrap' : 'wrap',
88
94
  borderColor: hideBorder ? 'transparent' : '#eeeeee',
89
95
  boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
90
96
  borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
@@ -214,15 +220,16 @@ const TD = ({
214
220
 
215
221
  <div
216
222
  style={{
223
+ flexShrink: 11,
217
224
  marginLeft:
218
225
  hasOwnerProperty(item, 'contentList') &&
219
226
  (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true)
220
227
  ? hasOwnerProperty(item, 'rightArrow')
221
228
  ? item.rightArrow === true
222
229
  ? '0px'
223
- : '10px'
230
+ : '11px'
224
231
  : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')
225
- ? '10px'
232
+ ? '11px'
226
233
  : '0px'
227
234
  : '0px',
228
235
  marginRight:
@@ -230,7 +237,7 @@ const TD = ({
230
237
  (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true)
231
238
  ? hasOwnerProperty(item, 'rightArrow')
232
239
  ? item.rightArrow === true
233
- ? '10px'
240
+ ? '11px'
234
241
  : '0px'
235
242
  : '0px'
236
243
  : '0px',
@@ -238,6 +245,7 @@ const TD = ({
238
245
  >
239
246
  <p
240
247
  style={{
248
+ textAlign: tBodyTextAlign,
241
249
  margin: '0px',
242
250
  cursor:
243
251
  hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots')
@@ -347,7 +355,7 @@ const TD = ({
347
355
  style={{
348
356
  overflow: 'auto',
349
357
  marginTop: '10px',
350
- maxHeight: '300px',
358
+ maxHeight: '500px',
351
359
  maxWidth: '100%',
352
360
  height: item.status === 'close' ? '0px' : 'auto',
353
361
  }}
@@ -358,10 +366,11 @@ const TD = ({
358
366
  key={`${innerItem}_${innerItemIndex}`}
359
367
  className={styles['list-text']}
360
368
  style={{
369
+ maxWidth: '100%',
361
370
  color: openListColor,
362
- maxWidth:
363
- (item.content.length * 9 <= 100 ? 100 : item.content.length * 9) +
364
- 'px',
371
+ textAlign: tBodyTextAlign,
372
+ fontSize: openListFontSize,
373
+ fontFamily: openListFontFamily,
365
374
  }}
366
375
  onClick={(e) =>
367
376
  handleContentList(
@@ -15,6 +15,8 @@ const TH = ({
15
15
  tHeadFontSize,
16
16
  tHeadTextAlign,
17
17
  tHeadFontWeight,
18
+ tableColumnMinWidth,
19
+ tableColumnMaxWidth,
18
20
  handleCheckedHeader,
19
21
  borderTopLeftRadius,
20
22
  borderTopRightRadius,
@@ -32,12 +34,13 @@ const TH = ({
32
34
  style={{
33
35
  width: 'auto',
34
36
  cursor: 'pointer',
35
- whiteSpace: 'nowrap',
36
37
  position: 'relative',
37
38
  padding: tHeadPadding,
38
39
  fontSize: tHeadFontSize,
39
40
  fontFamily: tHeadFamily,
40
41
  fontWeight: tHeadFontWeight,
42
+ minWidth: tableColumnMinWidth,
43
+ maxWidth: tableColumnMaxWidth,
41
44
  borderTopLeftRadius: borderTopLeftRadius,
42
45
  borderTopRightRadius: borderTopRightRadius,
43
46
  borderColor: hideBorder ? 'transparent' : '#eeeeee',
@@ -7,6 +7,11 @@ import SvgRequired from './../icon/Required'
7
7
 
8
8
  import './textarea.module.css'
9
9
 
10
+ export const PositionSide = {
11
+ TOP: 'top',
12
+ BOTTOM: 'bottom',
13
+ }
14
+
10
15
  export const Textarea = ({
11
16
  size,
12
17
  label,
@@ -42,6 +47,7 @@ export const Textarea = ({
42
47
  borderHoverColor,
43
48
  labelMarginBottom,
44
49
  showCharacterCount,
50
+ characterCountPosition,
45
51
  }) => {
46
52
  const [error, setError] = useState('')
47
53
  const [isHover, setIsHover] = useState(false)
@@ -90,20 +96,18 @@ export const Textarea = ({
90
96
  alert('Please add onChange function on Textarea component')
91
97
  }
92
98
 
93
- if (value === '') {
94
- setError('')
95
- }
96
-
97
- setInnerValue(value)
98
- }, [value, onChange])
99
-
100
- useEffect(() => {
101
99
  if (errorMessage) {
102
100
  setError(errorMessage)
103
101
  } else {
104
102
  setError('')
105
103
  }
106
- }, [errorMessage])
104
+
105
+ if (value === '') {
106
+ setError('')
107
+ }
108
+
109
+ setInnerValue(value)
110
+ }, [value, onChange, errorMessage])
107
111
 
108
112
  return (
109
113
  <div
@@ -141,7 +145,7 @@ export const Textarea = ({
141
145
  ''
142
146
  )}
143
147
 
144
- {showCharacterCount && maxLength && (
148
+ {showCharacterCount && maxLength && characterCountPosition === 'top' && (
145
149
  <span
146
150
  style={{
147
151
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
@@ -195,17 +199,42 @@ export const Textarea = ({
195
199
  onMouseEnter={handleMouseEnter}
196
200
  onMouseLeave={handleMouseLeave}
197
201
  ></textarea>
202
+ {showCharacterCount && maxLength && characterCountPosition === 'bottom' && (
203
+ <div
204
+ style={{
205
+ float: 'right',
206
+ }}
207
+ >
208
+ <span
209
+ style={{
210
+ color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
211
+ fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize,
212
+ }}
213
+ >
214
+ {maxLength - value.length} նիշ
215
+ </span>
216
+ </div>
217
+ )}
218
+
198
219
  {error ? (
199
- <span
220
+ <div
200
221
  style={{
201
- display: 'inline-block',
202
- fontSize: errorSize ? errorSize : configStyles.TEXTAREA.errorSize,
203
- color: errorColor ? errorColor : configStyles.TEXTAREA.errorColor,
204
- marginTop: marginTop ? marginTop : configStyles.TEXTAREA.marginTop,
222
+ clear: 'both',
223
+ wordBreak: 'break-all',
224
+ maxWidth: width ? width : configStyles.TEXTAREA.width,
205
225
  }}
206
226
  >
207
- {error}
208
- </span>
227
+ <span
228
+ style={{
229
+ display: 'inline-block',
230
+ fontSize: errorSize ? errorSize : configStyles.TEXTAREA.errorSize,
231
+ color: errorColor ? errorColor : configStyles.TEXTAREA.errorColor,
232
+ marginTop: marginTop ? marginTop : configStyles.TEXTAREA.marginTop,
233
+ }}
234
+ >
235
+ {error}
236
+ </span>
237
+ </div>
209
238
  ) : (
210
239
  ''
211
240
  )}
@@ -248,4 +277,9 @@ Textarea.propTypes = {
248
277
  borderHoverColor: PropTypes.string,
249
278
  labelMarginBottom: PropTypes.string,
250
279
  onChange: PropTypes.func.isRequired,
280
+ characterCountPosition: PropTypes.oneOf(Object.values(PositionSide)),
281
+ }
282
+
283
+ Textarea.defaultProps = {
284
+ characterCountPosition: 'top',
251
285
  }
@@ -1,9 +1,14 @@
1
1
  import React, { useState } from 'react'
2
- import { Textarea } from '.'
2
+ import { Textarea, PositionSide } from '.'
3
3
 
4
4
  export default {
5
5
  Comment: Textarea,
6
6
  title: 'Components/Textarea',
7
+ argsType: {
8
+ characterCountPosition: {
9
+ options: Object.values(PositionSide),
10
+ },
11
+ },
7
12
  }
8
13
 
9
14
  const Template = (args) => {
@@ -47,4 +52,5 @@ Default.args = {
47
52
  showCharacterCount: true, // for showing textarea character count
48
53
  borderHoverColor: '#3C393E',
49
54
  borderFocusColor: '#00236A',
55
+ characterCountPosition: 'top',
50
56
  }
@@ -116,9 +116,47 @@ import StackAlt from './assets/stackalt.svg';
116
116
 
117
117
  # Changelog
118
118
 
119
- ### v0.0.59
120
-
121
- 1. Change: errorMesage to errorMessage (in all components)
119
+ ### v0.0.119
120
+ 1. Bugfix: white space
121
+ 2. Change: Textarea show error message logic
122
+ 3. Change: errorMessage location in useEffect
123
+ 4. Add: posibility to change character coount position in textarea component
124
+ 5. Add: posibility use NewFile component without preview mode
125
+ 6. Add: props preview for NewFile, uploadBtnFont, uploadBtnSize, uploadBtnLabel, uploadBtnColor, uploadBtnHeight, uploadBtnBackgroundColor
126
+ 7. Change: captcha to uppercase, Add: second file component in story
127
+
128
+ ### v0.0.118
129
+
130
+ 1. Change: Radio component implementation
131
+ 2. Refactor: structure Radio component, Add: possibility custom styles
132
+ 3. Add: props on table component, for min max width, open list font-size and font family
133
+ 4. Remove: dots from table open list
134
+
135
+ ### v0.0.117
136
+ 1. Add: call toString function on every content with value 0 in table component
137
+ 2. Add: font family prop on input, select, newautocomplete, textarea components
138
+ 3. Fix: configStyles declaration position
139
+
140
+ ### v0.0.116
141
+ 1. Change: property check in Select component
142
+ 2. Add: CheckboxGroup component
143
+ 3. Change: SingleCheckbox component, check props in TUI usage and configuration sections
144
+ 4. Add: hover logic on modal component for show zoom icon
145
+ 5. Change: show content logic in table component
146
+ 6. Set: prop type array or object in checkbox component
147
+ 7. Add: hideBorder boolean prop on table component for hide borders
148
+ 8. Set: css outline none, on button component
149
+ 9. Change: Proptypes.oneOf to Proptypes.oneOfType for checkbox
150
+ 10. Refactor: className props for all components
151
+ 11. Change: table body textAlign show logic, Add: the same logic for header
152
+ 12. Add: tHeadTextAlign prop in propTypes object in Table component
153
+ 13. Change: configStyles variable declaration place
154
+ 14. Add: errorSize prop in config just for set value by default
155
+ 15. Add: posibility on table to show row as items, see props in configuration tab
156
+
157
+ ### v0.0.115
158
+ Refactor: table check sortingArrows property logic
159
+ Add: maxLength prop to global config for input component, set highest value by default 255 characters
122
160
 
123
161
  ### v0.0.60
124
162
 
@@ -128,4 +166,7 @@ import StackAlt from './assets/stackalt.svg';
128
166
  4. Change: select prop jsonData to options always get an array
129
167
  5. Add: new functionality on select component, multiple mode
130
168
 
169
+ ### v0.0.59
170
+
171
+ 1. Change: errorMesage to errorMessage (in all components)
131
172
 
@@ -120,7 +120,7 @@ import StackAlt from './assets/stackalt.svg';
120
120
 
121
121
  # Configuration
122
122
 
123
- ### Button
123
+ ### BUTTON
124
124
 
125
125
  ```
126
126
  {
@@ -151,7 +151,7 @@ import StackAlt from './assets/stackalt.svg';
151
151
  }
152
152
  ```
153
153
 
154
- ### Input
154
+ ### INPUT
155
155
 
156
156
  ```
157
157
  {
@@ -196,7 +196,7 @@ import StackAlt from './assets/stackalt.svg';
196
196
  }
197
197
  ```
198
198
 
199
- ### Tooltip
199
+ ### TOOLTIP
200
200
  ```
201
201
  {
202
202
  type: 'top', // for tooltip type (top, right, bottom, left)
@@ -214,7 +214,7 @@ import StackAlt from './assets/stackalt.svg';
214
214
  }
215
215
  ```
216
216
 
217
- ### Typography
217
+ ### TYPOGRAPHY
218
218
 
219
219
  ```
220
220
  {
@@ -325,7 +325,7 @@ import StackAlt from './assets/stackalt.svg';
325
325
  }
326
326
  ```
327
327
 
328
- ### Select
328
+ ### SELECT
329
329
 
330
330
  ```
331
331
  {
@@ -380,7 +380,7 @@ import StackAlt from './assets/stackalt.svg';
380
380
  }
381
381
  ```
382
382
 
383
- ### Toaster
383
+ ### TOASTER
384
384
 
385
385
  ```
386
386
  {
@@ -415,10 +415,11 @@ import StackAlt from './assets/stackalt.svg';
415
415
  position: 'top-right', ---> one of this strings ['top-left', 'top-right', 'top-center', 'bottom-left', 'bottom-right', 'bottom-center']
416
416
  description: 'Toast description' ---> description is a string for toast description
417
417
  });
418
+ className: '' // for pagination class
418
419
  }
419
420
  ```
420
421
 
421
- ### Textarea
422
+ ### TEXTAREA
422
423
 
423
424
  ```
424
425
  {
@@ -531,7 +532,7 @@ import StackAlt from './assets/stackalt.svg';
531
532
  }
532
533
  ```
533
534
 
534
- ### Captcha
535
+ ### CAPTCHA
535
536
 
536
537
  ```
537
538
  {
@@ -544,7 +545,7 @@ import StackAlt from './assets/stackalt.svg';
544
545
  }
545
546
  ```
546
547
 
547
- ### File
548
+ ### FILE
548
549
  ```
549
550
  {
550
551
  or: 'կամ', // for file place text
@@ -588,10 +589,17 @@ import StackAlt from './assets/stackalt.svg';
588
589
  putFileHere: 'Տեղադրել ֆայլը այստեղ', // for file place text
589
590
  hiddenBackgroundColor: 'rgba(60, 57, 62, 0.4)', // for file place background color when hover on file place and there is a choosen file
590
591
  listItemBackgroundErrorColor: 'rgba(255, 0, 0, 0.7)', // for file multiple mode error background color
592
+
593
+ uploadBtnFont: 'Arial', // for button font familty
594
+ uploadBtnSize: '14px', // for button font size
595
+ uploadBtnLabel: 'Բեռնել', // for button text
596
+ uploadBtnColor: '#fff', // for button color
597
+ uploadBtnHeight: '30px', // for button height
598
+ uploadBtnBackgroundColor: 'rgba(0, 35, 106, 1)' // for button background color
591
599
  }
592
600
  ```
593
601
 
594
- ### Modal
602
+ ### MODAL
595
603
  ```
596
604
  {
597
605
  alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
@@ -624,7 +632,7 @@ import StackAlt from './assets/stackalt.svg';
624
632
  }
625
633
  ```
626
634
 
627
- ### Checkbox
635
+ ### CHECKBOX
628
636
  ```
629
637
  {
630
638
  checkedColor: '#00236A', // for checkbox background ( fill ) color
@@ -654,15 +662,19 @@ import StackAlt from './assets/stackalt.svg';
654
662
  tBodyPadding: '11px 20px', // for table body padding
655
663
  tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
656
664
  tBodyRowMarginTop: '10px', // for table tr margin top
657
- tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
665
+ tBodyBoxShadow: '', // for table body box shadow
658
666
 
659
667
  tBodyRowBorder: '1px solid #eeeeee', // for table body row border
660
668
  openListColor: '#A3A5A9', // for table body opened list color
669
+ openListFontSize: '', // for table body opened list font size
670
+ openListFontFamily: '', // for table body opened list font family
661
671
  className: '', // for table class
662
672
  tableRowItem: false, // for table tr show item ( boolean prop )
663
673
  tableRowBGColor: 'transparent', // for table tr background color
664
674
  tableRowRadius: '6px', // for table tr border radius
665
- tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
675
+ tableRowBoxShadow: '', // for table tr box shadow
676
+ tableColumnMaxWidth: '', // for table column max width
677
+ tableColumnMinWidth: '', // for table column min width
666
678
  }
667
679
  ```
668
680
 
@@ -672,15 +684,32 @@ import StackAlt from './assets/stackalt.svg';
672
684
  className: '' // for pagination class
673
685
  }
674
686
  ```
675
- ### Toaster
687
+
688
+ ```
689
+ ### STEPPER
676
690
  ```
677
691
  {
678
692
  className: '' // for pagination class
679
693
  }
680
694
  ```
681
- ### Stepper
695
+
696
+ ### RADIO
682
697
  ```
683
698
  {
684
- className: '' // for pagination class
699
+ size: '20px', // for width and height
700
+ className: '', // for parent element class
701
+ borderSize: '2px', // for border width
702
+ borderStyle: 'solid', // for border style
703
+ borderColor: '#E7E7E7', // for border color
704
+ radioMarginRight: '10px', // for circle margin right
705
+ borderActiveColor: '#3C3D46', // for active border color
706
+ radioItemMarginRight: '10px', // for radio item margin right ( circle + label )
707
+ radioItemMarginBottom: '10px', // for radio item margin bottom ( circle + label )
708
+
709
+ labelColor: '#3C3D46', // for label color
710
+ labelFontSize: '16px', // for label font size
711
+ labelFontWeight: '500', // for label font weight
712
+ labelLineHeight: '21px', // for label line height
713
+ labelFontFamily: 'Arial, sans-serif', // for label font family
685
714
  }
686
- ```
715
+ ```
@@ -11,6 +11,7 @@ import StackAlt from './assets/stackalt.svg';
11
11
  import fileImage from './static/file-usage.png';
12
12
  import captcha from './static/captcha-usage.png';
13
13
  import inputImage from './static/input-usage.png';
14
+ import radioImage from './static/radio-usage.png';
14
15
  import modalImage from './static/modal-usage.png';
15
16
  import buttonImage from './static/button-usage.png';
16
17
  import selectImage from './static/select-usage.png';
@@ -20,7 +21,6 @@ import textareaImage from './static/textarea-usage.png';
20
21
  import buttonImageIcon from './static/button-usage-icon.png';
21
22
  import fileSingleImage from './static/file-single-usage.png';
22
23
  import checkboxGroup from './static/checkbox-group-usage.png';
23
- import singleCheckbox from './static/single-checkbox-usage.png';
24
24
  import tableComponent from './static/table-component-usage.png';
25
25
  import toasterImage from './static/toaster-container-usage.png';
26
26
  import autocompleteImage from './static/autocomplete-usage.png';
@@ -192,9 +192,10 @@ import tableBodyStructureSecond from './static/table-body-data-structure-second-
192
192
  <img src={tableBodyStructureNew} alt="file image" />
193
193
  <img src={tableBodyStructureThird} alt="file image" />
194
194
 
195
- ### Single checkbox
196
- <img src={singleCheckbox} alt="file image" />
197
-
198
195
  ### Checkbox Group
199
196
  <img src={checkboxGroup} alt="file image" />
200
197
  <img src={checkboxGroup2} alt="file image" />
198
+
199
+ ### Radio
200
+ <img src={radioImage} alt="file image" />
201
+
package/tui.config.js CHANGED
@@ -2,7 +2,6 @@ module.exports = {
2
2
  // default properties for <Button /> component
3
3
  BUTTON: {
4
4
  size: '16px', // for font size
5
- font: 'Arial', // for font family
6
5
  radius: '6px', // for border radius
7
6
  width: '100%', // for width
8
7
  weight: '400', // for font weight
@@ -17,6 +16,7 @@ module.exports = {
17
16
  padding: '12px 20px', // for padding
18
17
  textTransform: 'none', // for text transform
19
18
  boxSizing: 'border-box', // for box sizing
19
+ font: 'Arial, sans-serif', // for font family
20
20
  disabledColor: 'rgba(60, 57, 62, 1)', // for color in disabled mode
21
21
  backgroundColor: 'rgba(0, 35, 106, 1)', // for background color
22
22
  disabledLineColor: 'rgba(60, 57, 62, 1)', // for border color (outline) in disabled mode
@@ -388,6 +388,13 @@ module.exports = {
388
388
  putFileHere: 'Տեղադրել ֆայլը այստեղ', // for file place text
389
389
  hiddenBackgroundColor: 'rgba(60, 57, 62, 0.4)', // for file place background color when hover on file place and there is a choosen file
390
390
  listItemBackgroundErrorColor: '#F6F8F8', // for file multiple mode error background color
391
+
392
+ uploadBtnFont: 'Arial', // for button font familty
393
+ uploadBtnSize: '14px', // for button font size
394
+ uploadBtnLabel: 'Բեռնել', // for button text
395
+ uploadBtnColor: '#fff', // for button color
396
+ uploadBtnHeight: '30px', // for button height
397
+ uploadBtnBackgroundColor: 'rgba(0, 35, 106, 1)' // for button background color
391
398
  },
392
399
  // default properties for <Modal /> component
393
400
  MODAL: {
@@ -446,15 +453,19 @@ module.exports = {
446
453
  tBodyPadding: '11px 20px', // for table body padding
447
454
  tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
448
455
  tBodyRowMarginTop: '10px', // for table tr margin top
449
- tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
456
+ tBodyBoxShadow: '', // for table body box shadow
450
457
 
451
458
  tBodyRowBorder: '1px solid #eeeeee', // for table body row border
452
459
  openListColor: '#A3A5A9', // for table body opened list color
460
+ openListFontSize: '', // for table body opened list font size
461
+ openListFontFamily: '', // for table body opened list font family
453
462
  className: '', // for table class
454
463
  tableRowItem: false, // for table tr show item ( boolean prop )
455
464
  tableRowBGColor: 'transparent', // for table tr background color
456
465
  tableRowRadius: '6px', // for table tr border radius
457
- tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
466
+ tableRowBoxShadow: '', // for table tr box shadow
467
+ tableColumnMaxWidth: '', // for table column max width
468
+ tableColumnMinWidth: '', // for table column min width
458
469
  },
459
470
  // default properties for <Pagination /> component
460
471
  PAGINATION: {
@@ -467,5 +478,23 @@ module.exports = {
467
478
  // default properties for <Stepper /> component
468
479
  STEPPER: {
469
480
  className: '' // for stepper class
481
+ },
482
+ // default properties for <Radio /> component
483
+ RADIO: {
484
+ size: '20px', // for width and height
485
+ className: '', // for parent element class
486
+ borderSize: '2px', // for border width
487
+ borderStyle: 'solid', // for border style
488
+ borderColor: '#E7E7E7', // for border color
489
+ radioMarginRight: '10px', // for circle margin right
490
+ borderActiveColor: '#3C3D46', // for active border color
491
+ radioItemMarginRight: '10px', // for radio item margin right ( circle + label )
492
+ radioItemMarginBottom: '10px', // for radio item margin bottom ( circle + label )
493
+
494
+ labelColor: '#3C3D46', // for label color
495
+ labelFontSize: '16px', // for label font size
496
+ labelFontWeight: '500', // for label font weight
497
+ labelLineHeight: '21px', // for label line height
498
+ labelFontFamily: 'Arial, sans-serif', // for label font family
470
499
  }
471
500
  }