@xaypay/tui 0.0.115 → 0.0.117

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.
Files changed (32) hide show
  1. package/dist/index.es.js +361 -256
  2. package/dist/index.js +361 -256
  3. package/package.json +1 -1
  4. package/src/components/button/index.js +3 -2
  5. package/src/components/captcha/index.js +5 -5
  6. package/src/components/checkbox/checkbox.module.css +0 -59
  7. package/src/components/checkbox/checkbox.stories.js +70 -4
  8. package/src/components/checkbox/index.js +103 -70
  9. package/src/components/input/index.js +6 -4
  10. package/src/components/modal/index.js +15 -3
  11. package/src/components/newAutocomplete/index.js +7 -5
  12. package/src/components/newFile/index.js +45 -42
  13. package/src/components/pagination/index.js +9 -2
  14. package/src/components/select/index.js +7 -2
  15. package/src/components/singleCheckbox/Checkbox.js +30 -19
  16. package/src/components/singleCheckbox/index.js +15 -9
  17. package/src/components/stepper/index.js +9 -2
  18. package/src/components/table/index.js +45 -4
  19. package/src/components/table/table.stories.js +1 -10
  20. package/src/components/table/td.js +41 -6
  21. package/src/components/table/th.js +12 -2
  22. package/src/components/textarea/index.js +8 -1
  23. package/src/components/toaster/index.js +7 -2
  24. package/src/components/tooltip/index.js +3 -3
  25. package/src/components/typography/index.js +1 -1
  26. package/src/index.js +0 -1
  27. package/src/stories/configuration.stories.mdx +45 -4
  28. package/src/stories/static/checkbox-group-usage-2.png +0 -0
  29. package/src/stories/static/checkbox-group-usage.png +0 -0
  30. package/src/stories/static/single-checkbox-usage.png +0 -0
  31. package/src/stories/usage.stories.mdx +11 -1
  32. package/tui.config.js +42 -7
@@ -490,16 +490,7 @@ const Template = (args) => {
490
490
  console.log(tData, ' data from table click action, with getData props')
491
491
  }
492
492
 
493
- return (
494
- <Table
495
- {...args}
496
- arrowColumn={2}
497
- arrowShow
498
- dataBody={bodyData}
499
- dataHeader={headerData}
500
- getData={handleGetData}
501
- />
502
- )
493
+ return <Table {...args} dataBody={bodyData} dataHeader={headerData} getData={handleGetData} />
503
494
  }
504
495
 
505
496
  export const Default = Template.bind({})
@@ -7,8 +7,12 @@ import { hasOwnerProperty } from './../../utils'
7
7
  import styles from './table.module.css'
8
8
 
9
9
  const TD = ({
10
+ row,
10
11
  item,
11
12
  index,
13
+ rowItem,
14
+ rowRadius,
15
+ hideBorder,
12
16
  innerIndex,
13
17
  tBodyColor,
14
18
  borderRight,
@@ -81,7 +85,12 @@ const TD = ({
81
85
  textAlign: tBodyTextAlign,
82
86
  fontFamily: tBodyFontFamily,
83
87
  fontWeight: tBodyFontWeight,
88
+ borderColor: hideBorder ? 'transparent' : '#eeeeee',
84
89
  boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
90
+ borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
91
+ borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
92
+ borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
93
+ borderBottomRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
85
94
  }}
86
95
  >
87
96
  {Array.isArray(item) ? (
@@ -102,7 +111,11 @@ const TD = ({
102
111
  key={`${newItem.id}_${newIndex}`}
103
112
  onClick={(e) => handleCheckActions(e, newItem, 'type', newIndex)}
104
113
  >
105
- {newItem.content}
114
+ {newItem.content === 0
115
+ ? newItem.content.toString()
116
+ : newItem.content
117
+ ? newItem.content
118
+ : ''}
106
119
  </span>
107
120
  )
108
121
  } else if (newItem && Array.isArray(newItem)) {
@@ -131,7 +144,11 @@ const TD = ({
131
144
  onClick={(e) => handleCheckActions(e, iT, 'type', iN)}
132
145
  key={`${iT.id || iT.content}_${iN}`}
133
146
  >
134
- {iT.content}
147
+ {iT.content === 0
148
+ ? iT.content.toString()
149
+ : iT.content
150
+ ? iT.content
151
+ : ''}
135
152
  </span>
136
153
  )
137
154
  })}
@@ -149,7 +166,15 @@ const TD = ({
149
166
  style={{
150
167
  display: 'flex',
151
168
  alignItems: 'flex-start',
152
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center',
169
+ justifyContent: hasOwnerProperty(item, 'checkBox')
170
+ ? 'space-between'
171
+ : tBodyTextAlign
172
+ ? tBodyTextAlign === 'left'
173
+ ? 'flex-start'
174
+ : tBodyTextAlign === 'right'
175
+ ? 'flex-end'
176
+ : 'center'
177
+ : 'center',
153
178
  }}
154
179
  >
155
180
  {!hasOwnerProperty(item, 'hideArrow') &&
@@ -227,7 +252,9 @@ const TD = ({
227
252
  : (_) => _
228
253
  }
229
254
  >
230
- {item.content ? (
255
+ {item.content === 0 ? (
256
+ item.content.toString()
257
+ ) : item.content ? (
231
258
  item.content
232
259
  ) : hasOwnerProperty(item, 'arrowComponent') ? (
233
260
  item.status === 'close' ? (
@@ -300,7 +327,11 @@ const TD = ({
300
327
  }}
301
328
  title={optionItem.content}
302
329
  >
303
- {optionItem.content}
330
+ {optionItem.content === 0
331
+ ? optionItem.content.toString()
332
+ : optionItem.content
333
+ ? optionItem.content
334
+ : ''}
304
335
  </span>
305
336
  </span>
306
337
  )
@@ -344,7 +375,11 @@ const TD = ({
344
375
  )
345
376
  }
346
377
  >
347
- {innerItem.content}
378
+ {innerItem.content === 0
379
+ ? innerItem.content.toString()
380
+ : innerItem.content
381
+ ? innerItem.content
382
+ : ''}
348
383
  </p>
349
384
  )
350
385
  })}
@@ -9,9 +9,11 @@ import styles from './table.module.css'
9
9
 
10
10
  const TH = ({
11
11
  item,
12
+ hideBorder,
12
13
  tHeadFamily,
13
14
  tHeadPadding,
14
15
  tHeadFontSize,
16
+ tHeadTextAlign,
15
17
  tHeadFontWeight,
16
18
  handleCheckedHeader,
17
19
  borderTopLeftRadius,
@@ -38,6 +40,7 @@ const TH = ({
38
40
  fontWeight: tHeadFontWeight,
39
41
  borderTopLeftRadius: borderTopLeftRadius,
40
42
  borderTopRightRadius: borderTopRightRadius,
43
+ borderColor: hideBorder ? 'transparent' : '#eeeeee',
41
44
  }}
42
45
  onClick={handleHeaderItemClick}
43
46
  className={`${
@@ -52,13 +55,20 @@ const TH = ({
52
55
  style={{
53
56
  display: 'flex',
54
57
  alignItems: 'flex-start',
55
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : 'center',
58
+ justifyContent: hasOwnerProperty(item, 'checkBox')
59
+ ? 'space-between'
60
+ : tHeadTextAlign
61
+ ? tHeadTextAlign === 'left'
62
+ ? 'flex-start'
63
+ : tHeadTextAlign === 'right'
64
+ ? 'flex-end'
65
+ : 'center'
66
+ : 'center',
56
67
  }}
57
68
  >
58
69
  {hasOwnerProperty(item, 'checkBox') ? (
59
70
  <SingleCheckbox
60
71
  data={item}
61
- float="left"
62
72
  checked={item.checkBox.checked}
63
73
  disabled={item.checkBox.disabled}
64
74
  handleChecked={!item.checkBox.disabled ? handleCheckedHeader : (_) => _}
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react'
2
2
  import PropTypes from 'prop-types'
3
-
3
+ import classnames from 'classnames'
4
4
  import { compereConfigs } from './../../utils'
5
5
 
6
6
  import SvgRequired from './../icon/Required'
@@ -29,12 +29,14 @@ export const Textarea = ({
29
29
  labelSize,
30
30
  errorSize,
31
31
  marginTop,
32
+ className,
32
33
  labelColor,
33
34
  errorColor,
34
35
  labelWeight,
35
36
  placeholder,
36
37
  labelDisplay,
37
38
  errorMessage,
39
+ labelFontFamily,
38
40
  backgroundColor,
39
41
  borderFocusColor,
40
42
  borderHoverColor,
@@ -47,6 +49,7 @@ export const Textarea = ({
47
49
  const [innerValue, setInnerValue] = useState('')
48
50
 
49
51
  const configStyles = compereConfigs()
52
+ const classProps = classnames(className ? className : configStyles.TEXTAREA.className)
50
53
 
51
54
  const handleMouseEnter = () => {
52
55
  setIsHover(true)
@@ -107,12 +110,14 @@ export const Textarea = ({
107
110
  style={{
108
111
  width: width ? width : configStyles.TEXTAREA.width,
109
112
  }}
113
+ className={classProps}
110
114
  >
111
115
  <div
112
116
  style={{
113
117
  display: 'flex',
114
118
  alignItems: 'center',
115
119
  justifyContent: label ? 'space-between' : 'flex-end',
120
+ fontFamily: labelFontFamily ? labelFontFamily : configStyles.TEXTAREA.labelFontFamily,
116
121
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom,
117
122
  }}
118
123
  >
@@ -228,12 +233,14 @@ Textarea.propTypes = {
228
233
  maxLength: PropTypes.number,
229
234
  labelSize: PropTypes.string,
230
235
  errorSize: PropTypes.string,
236
+ className: PropTypes.string,
231
237
  labelColor: PropTypes.string,
232
238
  errorColor: PropTypes.string,
233
239
  labelWeight: PropTypes.string,
234
240
  placeholder: PropTypes.string,
235
241
  errorMessage: PropTypes.string,
236
242
  labelDisplay: PropTypes.string,
243
+ labelFontFamily: PropTypes.string,
237
244
  backgroundColor: PropTypes.string,
238
245
  showCharacterCount: PropTypes.bool,
239
246
  value: PropTypes.string.isRequired,
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
2
  import ReactDOM from 'react-dom'
3
+ import classnames from 'classnames'
4
+ import { compereConfigs } from './../../utils'
3
5
 
4
6
  import { Toast } from './Toast'
5
7
 
@@ -104,7 +106,10 @@ export const toast = {
104
106
  },
105
107
  }
106
108
 
107
- export const Toaster = () => {
109
+ export const Toaster = ({ className }) => {
110
+ const configStyles = compereConfigs()
111
+ const classProps = classnames(className ? className : configStyles.TOASTER.className)
112
+
108
113
  window.addEventListener('popstate', () => {
109
114
  if (path !== window.location.href) {
110
115
  if (!toastify) {
@@ -122,5 +127,5 @@ export const Toaster = () => {
122
127
  e.stopPropagation()
123
128
  }
124
129
 
125
- return <div onClick={handleToasterClick} id="toastify"></div>
130
+ return <div onClick={handleToasterClick} className={classProps} id="toastify"></div>
126
131
  }
@@ -29,7 +29,7 @@ export const Tooltip = ({
29
29
  const [showTooltip, setShowTooltip] = useState(false)
30
30
 
31
31
  const configStyles = compereConfigs()
32
- const classProps = classnames(styles['tooltip'], className)
32
+ const classProps = classnames(styles['tooltip-block'], className ? className : configStyles.TOOLTIP.className)
33
33
 
34
34
  const handleShow = () => {
35
35
  setShowTooltip(!showTooltip)
@@ -51,7 +51,7 @@ export const Tooltip = ({
51
51
 
52
52
  return (
53
53
  <div
54
- className={`${styles['tooltip-block']}`}
54
+ className={classProps}
55
55
  style={{
56
56
  width: width ? width : configStyles.TOOLTIP.width,
57
57
  height: height ? height : configStyles.TOOLTIP.height,
@@ -62,7 +62,7 @@ export const Tooltip = ({
62
62
  {showTooltip ? (
63
63
  <div
64
64
  ref={tooltipRef}
65
- className={classProps}
65
+ className={`${styles['tooltip']}`}
66
66
  style={{
67
67
  width: tooltipWidth ? tooltipWidth : configStyles.TOOLTIP.tooltipWidth,
68
68
  borderRadius: tooltipRadius ? tooltipRadius : configStyles.TOOLTIP.tooltipRadius,
@@ -38,7 +38,7 @@ export const Typography = ({
38
38
  ...props
39
39
  }) => {
40
40
  const configStyles = compereConfigs()
41
- const classProps = classnames(className)
41
+ const classProps = classnames(className ? className : configStyles.TYPOGRAPHY.className)
42
42
 
43
43
  const [isHover, setIsHover] = useState(false)
44
44
  const [validVariant, setValidVariant] = useState(false)
package/src/index.js CHANGED
@@ -16,5 +16,4 @@ export * from './components/icon/Icon'
16
16
  export * from './components/typography'
17
17
  export * from './components/pagination'
18
18
  export * from './components/autocomplate'
19
- export * from './components/singleCheckbox'
20
19
  export * from './components/newAutocomplete'
@@ -129,6 +129,7 @@ import StackAlt from './assets/stackalt.svg';
129
129
  radius: '6px', // for border radius
130
130
  width: '100%', // for width
131
131
  weight: '400', // for font weight
132
+ className: '', // for button class
132
133
  type: 'button', // for type
133
134
  height: '46px', // for height
134
135
  color: 'white', // for color
@@ -181,7 +182,6 @@ import StackAlt from './assets/stackalt.svg';
181
182
  errorLineHeight: '19px', // for error message line height
182
183
  boxSizing: 'border-box', // for box sizing
183
184
  backgroundColor: 'white', // for input and also (if there exist left or right icons) icons block background color
184
- backgroundDisableColor: '#FBFBFB', // for input and also (if there exist left or right icons) icons block background color when input is disable
185
185
  color: 'rgb(60, 57, 62)', // for input color
186
186
  labelMarginBottom: '6px', // for label margin bottom
187
187
  phoneAlignItems: 'center', // for phone extention inside item, work when input type is tel
@@ -190,7 +190,9 @@ import StackAlt from './assets/stackalt.svg';
190
190
  phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
191
191
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
192
192
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
193
+ backgroundDisableColor: '#FBFBFB', // for input and also (if there exist left or right icons) icons block background color when input is disable
193
194
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
195
+ labelFontFamily: 'Arial, sans-serif', // for label font family
194
196
  }
195
197
  ```
196
198
 
@@ -220,6 +222,7 @@ import StackAlt from './assets/stackalt.svg';
220
222
  border: 'none', // for border
221
223
  cursor: 'default', // for cursor
222
224
  textShadow: 'none', // for text shadow
225
+ className: '', // for typography class
223
226
 
224
227
  colorp: '#3C393E', // for variant p color
225
228
  colorh1: '#3C393E', // for variant h1 color
@@ -328,6 +331,7 @@ import StackAlt from './assets/stackalt.svg';
328
331
  {
329
332
  dots: false, // for options, cut text and add dots
330
333
  showCloseIcon: false, // for select reset icon, when prop exist or true is show, otherwise is hide
334
+ className: '', // for select class
331
335
  marginTop: '10px', // for error message postion from top
332
336
  labelWeight: '500', // for label font weight
333
337
  labelColor: '#3C393E', // for label color
@@ -336,6 +340,7 @@ import StackAlt from './assets/stackalt.svg';
336
340
  labelLineHeight: '22px', // for label line height
337
341
  labelMarginBottom: '6px', // for label margin bottom
338
342
  labelTextTransform: 'none', // for label text transform
343
+ labelFontFamily: 'Arial, sans-serif', // for label font family
339
344
 
340
345
  errorSize: '14px', // for error font size
341
346
  errorColor: 'rgb(238, 0, 0)', // for error color
@@ -419,6 +424,7 @@ import StackAlt from './assets/stackalt.svg';
419
424
  {
420
425
  size: '16px', // for font size
421
426
  radius: '6px', // for border radius
427
+ className: '', // for Textarera class
422
428
  width: '400px', // for width
423
429
  resize: 'none', // for resize
424
430
  height: '134px', // for height
@@ -443,6 +449,7 @@ import StackAlt from './assets/stackalt.svg';
443
449
  borderFocusColor: '#00236A', // for boredr color when focus action is happaning
444
450
  showCharacterCount: true, // for showing textarea character count ( set itself without configuration file)
445
451
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
452
+ labelFontFamily: 'Arial, sans-serif', s// for label font family
446
453
  }
447
454
  ```
448
455
 
@@ -458,6 +465,7 @@ import StackAlt from './assets/stackalt.svg';
458
465
  labelLineHeight: '22px', // for label line height
459
466
  labelMarginBottom: '6px', // for label margin bottom
460
467
  labelTextTransform: 'none', // for label text transform
468
+ labelFontFamily: 'Arial, sans-serif', // for label font family
461
469
 
462
470
  className: '', // for autocomplete class if it need
463
471
  searchCount: 3, // for autocomplete show result logic
@@ -529,24 +537,27 @@ import StackAlt from './assets/stackalt.svg';
529
537
  {
530
538
  size: '16px', // for captcha label font size (configurable from config.js)
531
539
  color: '#3C393E', // for captcha label color (configurable from config.js)
540
+ className: '', // for captach class
532
541
  label: 'for example. Captcha', // for captcha label (add itself on each component)
533
542
  range: 'for example. 72', // for captcha range (add itself on each component)
534
543
  getRange: 'is must be function', // for captcha get current range (add itself on each component)
535
544
  }
536
545
  ```
537
546
 
538
- ### NewFile
547
+ ### File
539
548
  ```
540
549
  {
541
550
  or: 'կամ', // for file place text
542
551
  weight: 400, // for file place font weight
543
552
  size: '12px', // for file font size
544
553
  radius: '6px', // for file place border radius
554
+ className: '', // for file class
545
555
  width: '440px', // for file width
546
556
  height: '200px', // for file choose place height
547
557
  color: '#3C393E', // for file place color
548
558
  upload: 'Բեռնել', // for file place text
549
559
  labelSize: '16px', // for file font size
560
+ errorSize: '12px', // for file error font size
550
561
  border: '2px dashed', // for file choose place border
551
562
  errorColor: '#ee0000', // for file error message color
552
563
  labelColor: '#4A4A4D', // for file color
@@ -585,6 +596,7 @@ import StackAlt from './assets/stackalt.svg';
585
596
  {
586
597
  alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
587
598
  justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
599
+ className: '', // for modal class
588
600
  mMaxWidth: '95%', // for modal max width
589
601
  mMaxHeight: '95vh', // for modal max height
590
602
  outsideClose: true, // for modal close when happened outside click
@@ -612,11 +624,14 @@ import StackAlt from './assets/stackalt.svg';
612
624
  }
613
625
  ```
614
626
 
615
- ### SingleCheckbox
627
+ ### Checkbox
616
628
  ```
617
629
  {
618
630
  checkedColor: '#00236A', // for checkbox background ( fill ) color
619
631
  unCheckedColor: '#D1D1D1', // for checkbox border color
632
+ labelMarginLeft: '10px', // for checkbox label margin left
633
+ checkBoxMarginBottom: '10px' // for checkbox margin bottom
634
+ className: '' // for checkbox class
620
635
  }
621
636
  ```
622
637
 
@@ -626,6 +641,7 @@ import StackAlt from './assets/stackalt.svg';
626
641
  tHeadFontSize: '16px', // for table header font size
627
642
  tHeadFontWeight: 600, // for table header font weight
628
643
  tHeadColor: '#FBFBFB', // for table header color
644
+ tHeadTextAlign: 'center', // for table header text align
629
645
  tHeadPadding: '11px 20px', // for table header padding
630
646
  tHeadBorderRadius: '14px', // for table header border radius
631
647
  tHeadBackgroundColor: '#00236A', // for table header background color
@@ -637,9 +653,34 @@ import StackAlt from './assets/stackalt.svg';
637
653
  tBodyTextAlign: 'center', // for table body text align
638
654
  tBodyPadding: '11px 20px', // for table body padding
639
655
  tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
656
+ tBodyRowMarginTop: '10px', // for table tr margin top
657
+ tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
640
658
 
641
659
  tBodyRowBorder: '1px solid #eeeeee', // for table body row border
660
+ openListColor: '#A3A5A9', // for table body opened list color
661
+ className: '', // for table class
662
+ tableRowItem: false, // for table tr show item ( boolean prop )
663
+ tableRowBGColor: 'transparent', // for table tr background color
664
+ tableRowRadius: '6px', // for table tr border radius
665
+ tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
666
+ }
667
+ ```
642
668
 
643
- openListColor: '#A3A5A9' // for table body opened list color
669
+ ### PAGINATION
670
+ ```
671
+ {
672
+ className: '' // for pagination class
673
+ }
674
+ ```
675
+ ### Toaster
676
+ ```
677
+ {
678
+ className: '' // for pagination class
679
+ }
680
+ ```
681
+ ### Stepper
682
+ ```
683
+ {
684
+ className: '' // for pagination class
644
685
  }
645
686
  ```
@@ -19,9 +19,12 @@ import tooltipImage from './static/tooltip-usage.png';
19
19
  import textareaImage from './static/textarea-usage.png';
20
20
  import buttonImageIcon from './static/button-usage-icon.png';
21
21
  import fileSingleImage from './static/file-single-usage.png';
22
+ import checkboxGroup from './static/checkbox-group-usage.png';
23
+ import singleCheckbox from './static/single-checkbox-usage.png';
22
24
  import tableComponent from './static/table-component-usage.png';
23
25
  import toasterImage from './static/toaster-container-usage.png';
24
26
  import autocompleteImage from './static/autocomplete-usage.png';
27
+ import checkboxGroup2 from './static/checkbox-group-usage-2.png';
25
28
  import tableBodyStructureNew from './static/table-new-data-structure-usage.png';
26
29
  import tableHeaderStructure from './static/table-header-data-structure-usage.png';
27
30
  import tableBodyStructureFirst from './static/table-body-data-structure-first-part-usage.png';
@@ -187,4 +190,11 @@ import tableBodyStructureSecond from './static/table-body-data-structure-second-
187
190
  <img src={tableBodyStructureFirst} alt="file image" />
188
191
  <img src={tableBodyStructureSecond} alt="file image" />
189
192
  <img src={tableBodyStructureNew} alt="file image" />
190
- <img src={tableBodyStructureThird} alt="file image" />
193
+ <img src={tableBodyStructureThird} alt="file image" />
194
+
195
+ ### Single checkbox
196
+ <img src={singleCheckbox} alt="file image" />
197
+
198
+ ### Checkbox Group
199
+ <img src={checkboxGroup} alt="file image" />
200
+ <img src={checkboxGroup2} alt="file image" />
package/tui.config.js CHANGED
@@ -12,6 +12,7 @@ module.exports = {
12
12
  border: 'none', // for border
13
13
  disabled: false, // for disabled
14
14
  cursor: 'pointer', // for cursor
15
+ className: '', // for button class
15
16
  contentWidth: false, // for auto width, if contentWidth prop is exsit, then button get size automatically from inner content
16
17
  padding: '12px 20px', // for padding
17
18
  textTransform: 'none', // for text transform
@@ -67,6 +68,7 @@ module.exports = {
67
68
  phoneJustifyContent: 'center', // for phone extention inside item, work when input type is tel
68
69
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
69
70
  errorAnimationDuration: '240ms', // for animation duration (when have error message and errorAnimation prop is true)
71
+ labelFontFamily: 'Arial, sans-serif', // for label font family
70
72
  boxShadowHover: '0 0 0 2px #3c393e', // for border size and color in hover mode (set if you want to change it)
71
73
  },
72
74
  // default properties for <Tooltip /> component
@@ -90,6 +92,7 @@ module.exports = {
90
92
  border: 'none', // for border
91
93
  cursor: 'default', // for cursor
92
94
  textShadow: 'none', // for text shadow
95
+ className: '', // for typography class
93
96
 
94
97
  colorp: '#3C393E', // for variant p color
95
98
  colorh1: '#3C393E', // for variant h1 color
@@ -185,6 +188,7 @@ module.exports = {
185
188
  SELECT: {
186
189
  dots: false, // for options, cut text and add dots
187
190
  showCloseIcon: true, // for select reset icon, when prop exist or true is show, otherwise is hide
191
+ className: '', // for select class
188
192
  marginTop: '10px', // for error message postion from top
189
193
  labelWeight: '500', // for label font weight
190
194
  labelColor: '#3C393E', // for label color
@@ -193,6 +197,7 @@ module.exports = {
193
197
  labelLineHeight: '22px', // for label line height
194
198
  labelMarginBottom: '6px', // for label margin bottom
195
199
  labelTextTransform: 'none', // for label text transform
200
+ labelFontFamily: 'Arial, sans-serif', // for label font family
196
201
 
197
202
  errorSize: '14px', // for error font size
198
203
  errorColor: 'rgb(238, 0, 0)', // for error color
@@ -240,6 +245,7 @@ module.exports = {
240
245
  height: '134px', // for height
241
246
  maxLength: 1500, // for characters maximum count
242
247
  color: '#3C393E', // for color
248
+ className: '', // for Textarera class
243
249
  marginTop: '10px', // for error message position from top
244
250
  minWidth: '200px', // for minimum width
245
251
  maxWidth: '500px', // for maximum width
@@ -258,6 +264,7 @@ module.exports = {
258
264
  borderHoverColor: '#3C393E', // for border color when hover action is happaning
259
265
  borderFocusColor: '#00236A', // for boredr color when focus action is happaning
260
266
  boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
267
+ labelFontFamily: 'Arial, sans-serif', // for label font family
261
268
  },
262
269
  // default properties for <NewAutocomplete /> component
263
270
  NEWAUTOCOMPLETE: {
@@ -269,6 +276,7 @@ module.exports = {
269
276
  labelLineHeight: '22px', // for label line height
270
277
  labelMarginBottom: '6px', // for label margin bottom
271
278
  labelTextTransform: 'none', // for label text transform
279
+ labelFontFamily: 'Arial, sans-serif', // for label font family
272
280
 
273
281
  className: '', // for autocomplete class if it need
274
282
  searchCount: 3, // for autocomplete show result logic
@@ -333,24 +341,27 @@ module.exports = {
333
341
  backgroundDisableColor: '#FBFBFB', // for autocomplete disable background color
334
342
  },
335
343
  // default properties for <Captcha /> component
336
- Captcha: {
344
+ CAPTCHA: {
337
345
  size: '16px', // for captcha label font size
338
346
  color: '#3C393E', // for captcha label color
347
+ className: '', // for captach class
339
348
  },
340
349
  // default properties for <File /> component
341
- File: {
350
+ FILE: {
342
351
  or: 'կամ', // for file place text
343
352
  weight: 400, // for file place font weight
344
353
  size: '12px', // for file font size
345
354
  radius: '6px', // for file place border radius
355
+ className: '', // for FILE class
346
356
  height: '200px', // for file choose place height
347
357
  color: '#3C393E', // for file place color
348
358
  upload: 'Բեռնել', // for file place text
349
359
  maxWidth: '440px', // for file width
350
360
  labelSize: '16px', // for file font size
361
+ errorSize: '12px', // for file error font size
351
362
  border: '2px dashed', // for file choose place border
352
- labelColor: '#4A4A4D', // for file color
353
- timeForRemoveError: 4000, // for file error hide time when format is wrong
363
+ labelColor: '#4A4A4D', // for file color
364
+ timeForRemoveError: 4000, // for file error hide time when format is wrong
354
365
  errorColor: '#ee0000', // for file place and error message error color
355
366
  borderColor: '#D1D1D1', // for file choose place border color
356
367
  listItemHeight: '70px', // for file list item height
@@ -382,6 +393,7 @@ module.exports = {
382
393
  MODAL: {
383
394
  alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
384
395
  justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
396
+ className: '', // for modal class
385
397
  mMaxWidth: '95%', // for modal max width
386
398
  mMaxHeight: '95vh', // for modal max height
387
399
  outsideClose: true, // for modal close when happened outside click
@@ -408,15 +420,20 @@ module.exports = {
408
420
  imageWrapHeight: '80vh', // for image wrap
409
421
  imageWrapWidth: '100%', // for image wrap
410
422
  },
411
- SINGLECHECKBOX: {
423
+ // default properties for <Checkbox /> component
424
+ CHECKBOX: {
412
425
  checkedColor: '#00236A', // for checkbox background ( fill ) color
413
426
  unCheckedColor: '#D1D1D1', // for checkbox border color
427
+ labelMarginLeft: '10px', // for checkbox label margin left
428
+ checkBoxMarginBottom: '10px', // for checkbox margin bottom
429
+ className: '' // for checkbox class
414
430
  },
415
431
  // default properties for <Table /> component
416
432
  TABLE: {
417
433
  tHeadFontSize: '16px', // for table header font size
418
434
  tHeadFontWeight: 600, // for table header font weight
419
435
  tHeadColor: '#FBFBFB', // for table header color
436
+ tHeadTextAlign: 'center', // for table header text align
420
437
  tHeadPadding: '11px 20px', // for table header padding
421
438
  tHeadBorderRadius: '14px', // for table header border radius
422
439
  tHeadBackgroundColor: '#00236A', // for table header background color
@@ -428,9 +445,27 @@ module.exports = {
428
445
  tBodyTextAlign: 'center', // for table body text align
429
446
  tBodyPadding: '11px 20px', // for table body padding
430
447
  tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
448
+ tBodyRowMarginTop: '10px', // for table tr margin top
449
+ tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
431
450
 
432
451
  tBodyRowBorder: '1px solid #eeeeee', // for table body row border
433
-
434
- openListColor: '#A3A5A9' // for table body opened list color
452
+ openListColor: '#A3A5A9', // for table body opened list color
453
+ className: '', // for table class
454
+ tableRowItem: false, // for table tr show item ( boolean prop )
455
+ tableRowBGColor: 'transparent', // for table tr background color
456
+ tableRowRadius: '6px', // for table tr border radius
457
+ tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
458
+ },
459
+ // default properties for <Pagination /> component
460
+ PAGINATION: {
461
+ className: '' // for pagination class
462
+ },
463
+ // default properties for <Toaster /> component
464
+ TOASTER: {
465
+ className: ''
435
466
  },
467
+ // default properties for <Stepper /> component
468
+ STEPPER: {
469
+ className: '' // for stepper class
470
+ }
436
471
  }