@xaypay/tui 0.0.115 → 0.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +347 -253
- package/dist/index.js +347 -253
- package/package.json +1 -1
- package/src/components/button/index.js +3 -2
- package/src/components/captcha/index.js +5 -4
- package/src/components/checkbox/checkbox.module.css +0 -59
- package/src/components/checkbox/checkbox.stories.js +70 -4
- package/src/components/checkbox/index.js +103 -70
- package/src/components/input/index.js +3 -3
- package/src/components/modal/index.js +15 -3
- package/src/components/newAutocomplete/index.js +4 -5
- package/src/components/newFile/index.js +45 -42
- package/src/components/pagination/index.js +9 -2
- package/src/components/select/index.js +4 -2
- package/src/components/singleCheckbox/Checkbox.js +30 -19
- package/src/components/singleCheckbox/index.js +15 -9
- package/src/components/stepper/index.js +9 -2
- package/src/components/table/index.js +45 -4
- package/src/components/table/table.stories.js +1 -10
- package/src/components/table/td.js +38 -5
- package/src/components/table/th.js +12 -2
- package/src/components/textarea/index.js +5 -1
- package/src/components/toaster/index.js +7 -2
- package/src/components/tooltip/index.js +3 -3
- package/src/components/typography/index.js +1 -1
- package/src/index.js +0 -1
- package/src/stories/configuration.stories.mdx +40 -3
- package/src/stories/static/checkbox-group-usage-2.png +0 -0
- package/src/stories/static/checkbox-group-usage.png +0 -0
- package/src/stories/static/single-checkbox-usage.png +0 -0
- package/src/stories/usage.stories.mdx +11 -1
- package/tui.config.js +38 -7
|
@@ -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')
|
|
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') &&
|
|
@@ -300,7 +325,11 @@ const TD = ({
|
|
|
300
325
|
}}
|
|
301
326
|
title={optionItem.content}
|
|
302
327
|
>
|
|
303
|
-
{optionItem.content
|
|
328
|
+
{optionItem.content === 0
|
|
329
|
+
? optionItem.content.toString()
|
|
330
|
+
: optionItem.content
|
|
331
|
+
? optionItem.content
|
|
332
|
+
: ''}
|
|
304
333
|
</span>
|
|
305
334
|
</span>
|
|
306
335
|
)
|
|
@@ -344,7 +373,11 @@ const TD = ({
|
|
|
344
373
|
)
|
|
345
374
|
}
|
|
346
375
|
>
|
|
347
|
-
{innerItem.content
|
|
376
|
+
{innerItem.content === 0
|
|
377
|
+
? innerItem.content.toString()
|
|
378
|
+
: innerItem.content
|
|
379
|
+
? innerItem.content
|
|
380
|
+
: ''}
|
|
348
381
|
</p>
|
|
349
382
|
)
|
|
350
383
|
})}
|
|
@@ -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')
|
|
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,6 +29,7 @@ export const Textarea = ({
|
|
|
29
29
|
labelSize,
|
|
30
30
|
errorSize,
|
|
31
31
|
marginTop,
|
|
32
|
+
className,
|
|
32
33
|
labelColor,
|
|
33
34
|
errorColor,
|
|
34
35
|
labelWeight,
|
|
@@ -46,6 +47,7 @@ export const Textarea = ({
|
|
|
46
47
|
const [isFocus, setIsFocus] = useState(false)
|
|
47
48
|
const [innerValue, setInnerValue] = useState('')
|
|
48
49
|
|
|
50
|
+
const classProps = classnames(className ? className : configStyles.TEXTAREA.className)
|
|
49
51
|
const configStyles = compereConfigs()
|
|
50
52
|
|
|
51
53
|
const handleMouseEnter = () => {
|
|
@@ -107,6 +109,7 @@ export const Textarea = ({
|
|
|
107
109
|
style={{
|
|
108
110
|
width: width ? width : configStyles.TEXTAREA.width,
|
|
109
111
|
}}
|
|
112
|
+
className={classProps}
|
|
110
113
|
>
|
|
111
114
|
<div
|
|
112
115
|
style={{
|
|
@@ -228,6 +231,7 @@ Textarea.propTypes = {
|
|
|
228
231
|
maxLength: PropTypes.number,
|
|
229
232
|
labelSize: PropTypes.string,
|
|
230
233
|
errorSize: PropTypes.string,
|
|
234
|
+
className: PropTypes.string,
|
|
231
235
|
labelColor: PropTypes.string,
|
|
232
236
|
errorColor: PropTypes.string,
|
|
233
237
|
labelWeight: PropTypes.string,
|
|
@@ -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={
|
|
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={
|
|
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
|
@@ -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
|
|
@@ -220,6 +221,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
220
221
|
border: 'none', // for border
|
|
221
222
|
cursor: 'default', // for cursor
|
|
222
223
|
textShadow: 'none', // for text shadow
|
|
224
|
+
className: '', // for typography class
|
|
223
225
|
|
|
224
226
|
colorp: '#3C393E', // for variant p color
|
|
225
227
|
colorh1: '#3C393E', // for variant h1 color
|
|
@@ -328,6 +330,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
328
330
|
{
|
|
329
331
|
dots: false, // for options, cut text and add dots
|
|
330
332
|
showCloseIcon: false, // for select reset icon, when prop exist or true is show, otherwise is hide
|
|
333
|
+
className: '', // for select class
|
|
331
334
|
marginTop: '10px', // for error message postion from top
|
|
332
335
|
labelWeight: '500', // for label font weight
|
|
333
336
|
labelColor: '#3C393E', // for label color
|
|
@@ -419,6 +422,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
419
422
|
{
|
|
420
423
|
size: '16px', // for font size
|
|
421
424
|
radius: '6px', // for border radius
|
|
425
|
+
className: '', // for Textarera class
|
|
422
426
|
width: '400px', // for width
|
|
423
427
|
resize: 'none', // for resize
|
|
424
428
|
height: '134px', // for height
|
|
@@ -529,24 +533,27 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
529
533
|
{
|
|
530
534
|
size: '16px', // for captcha label font size (configurable from config.js)
|
|
531
535
|
color: '#3C393E', // for captcha label color (configurable from config.js)
|
|
536
|
+
className: '', // for captach class
|
|
532
537
|
label: 'for example. Captcha', // for captcha label (add itself on each component)
|
|
533
538
|
range: 'for example. 72', // for captcha range (add itself on each component)
|
|
534
539
|
getRange: 'is must be function', // for captcha get current range (add itself on each component)
|
|
535
540
|
}
|
|
536
541
|
```
|
|
537
542
|
|
|
538
|
-
###
|
|
543
|
+
### File
|
|
539
544
|
```
|
|
540
545
|
{
|
|
541
546
|
or: 'կամ', // for file place text
|
|
542
547
|
weight: 400, // for file place font weight
|
|
543
548
|
size: '12px', // for file font size
|
|
544
549
|
radius: '6px', // for file place border radius
|
|
550
|
+
className: '', // for file class
|
|
545
551
|
width: '440px', // for file width
|
|
546
552
|
height: '200px', // for file choose place height
|
|
547
553
|
color: '#3C393E', // for file place color
|
|
548
554
|
upload: 'Բեռնել', // for file place text
|
|
549
555
|
labelSize: '16px', // for file font size
|
|
556
|
+
errorSize: '12px', // for file error font size
|
|
550
557
|
border: '2px dashed', // for file choose place border
|
|
551
558
|
errorColor: '#ee0000', // for file error message color
|
|
552
559
|
labelColor: '#4A4A4D', // for file color
|
|
@@ -585,6 +592,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
585
592
|
{
|
|
586
593
|
alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
|
|
587
594
|
justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
|
|
595
|
+
className: '', // for modal class
|
|
588
596
|
mMaxWidth: '95%', // for modal max width
|
|
589
597
|
mMaxHeight: '95vh', // for modal max height
|
|
590
598
|
outsideClose: true, // for modal close when happened outside click
|
|
@@ -612,11 +620,14 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
612
620
|
}
|
|
613
621
|
```
|
|
614
622
|
|
|
615
|
-
###
|
|
623
|
+
### Checkbox
|
|
616
624
|
```
|
|
617
625
|
{
|
|
618
626
|
checkedColor: '#00236A', // for checkbox background ( fill ) color
|
|
619
627
|
unCheckedColor: '#D1D1D1', // for checkbox border color
|
|
628
|
+
labelMarginLeft: '10px', // for checkbox label margin left
|
|
629
|
+
checkBoxMarginBottom: '10px' // for checkbox margin bottom
|
|
630
|
+
className: '' // for checkbox class
|
|
620
631
|
}
|
|
621
632
|
```
|
|
622
633
|
|
|
@@ -626,6 +637,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
626
637
|
tHeadFontSize: '16px', // for table header font size
|
|
627
638
|
tHeadFontWeight: 600, // for table header font weight
|
|
628
639
|
tHeadColor: '#FBFBFB', // for table header color
|
|
640
|
+
tHeadTextAlign: 'center', // for table header text align
|
|
629
641
|
tHeadPadding: '11px 20px', // for table header padding
|
|
630
642
|
tHeadBorderRadius: '14px', // for table header border radius
|
|
631
643
|
tHeadBackgroundColor: '#00236A', // for table header background color
|
|
@@ -637,9 +649,34 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
637
649
|
tBodyTextAlign: 'center', // for table body text align
|
|
638
650
|
tBodyPadding: '11px 20px', // for table body padding
|
|
639
651
|
tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
|
|
652
|
+
tBodyRowMarginTop: '10px', // for table tr margin top
|
|
653
|
+
tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
|
|
640
654
|
|
|
641
655
|
tBodyRowBorder: '1px solid #eeeeee', // for table body row border
|
|
656
|
+
openListColor: '#A3A5A9', // for table body opened list color
|
|
657
|
+
className: '', // for table class
|
|
658
|
+
tableRowItem: false, // for table tr show item ( boolean prop )
|
|
659
|
+
tableRowBGColor: 'transparent', // for table tr background color
|
|
660
|
+
tableRowRadius: '6px', // for table tr border radius
|
|
661
|
+
tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
|
|
662
|
+
}
|
|
663
|
+
```
|
|
642
664
|
|
|
643
|
-
|
|
665
|
+
### PAGINATION
|
|
666
|
+
```
|
|
667
|
+
{
|
|
668
|
+
className: '' // for pagination class
|
|
669
|
+
}
|
|
670
|
+
```
|
|
671
|
+
### Toaster
|
|
672
|
+
```
|
|
673
|
+
{
|
|
674
|
+
className: '' // for pagination class
|
|
675
|
+
}
|
|
676
|
+
```
|
|
677
|
+
### Stepper
|
|
678
|
+
```
|
|
679
|
+
{
|
|
680
|
+
className: '' // for pagination class
|
|
644
681
|
}
|
|
645
682
|
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
@@ -90,6 +91,7 @@ module.exports = {
|
|
|
90
91
|
border: 'none', // for border
|
|
91
92
|
cursor: 'default', // for cursor
|
|
92
93
|
textShadow: 'none', // for text shadow
|
|
94
|
+
className: '', // for typography class
|
|
93
95
|
|
|
94
96
|
colorp: '#3C393E', // for variant p color
|
|
95
97
|
colorh1: '#3C393E', // for variant h1 color
|
|
@@ -185,6 +187,7 @@ module.exports = {
|
|
|
185
187
|
SELECT: {
|
|
186
188
|
dots: false, // for options, cut text and add dots
|
|
187
189
|
showCloseIcon: true, // for select reset icon, when prop exist or true is show, otherwise is hide
|
|
190
|
+
className: '', // for select class
|
|
188
191
|
marginTop: '10px', // for error message postion from top
|
|
189
192
|
labelWeight: '500', // for label font weight
|
|
190
193
|
labelColor: '#3C393E', // for label color
|
|
@@ -240,6 +243,7 @@ module.exports = {
|
|
|
240
243
|
height: '134px', // for height
|
|
241
244
|
maxLength: 1500, // for characters maximum count
|
|
242
245
|
color: '#3C393E', // for color
|
|
246
|
+
className: '', // for Textarera class
|
|
243
247
|
marginTop: '10px', // for error message position from top
|
|
244
248
|
minWidth: '200px', // for minimum width
|
|
245
249
|
maxWidth: '500px', // for maximum width
|
|
@@ -333,24 +337,27 @@ module.exports = {
|
|
|
333
337
|
backgroundDisableColor: '#FBFBFB', // for autocomplete disable background color
|
|
334
338
|
},
|
|
335
339
|
// default properties for <Captcha /> component
|
|
336
|
-
|
|
340
|
+
CAPTCHA: {
|
|
337
341
|
size: '16px', // for captcha label font size
|
|
338
342
|
color: '#3C393E', // for captcha label color
|
|
343
|
+
className: '', // for captach class
|
|
339
344
|
},
|
|
340
345
|
// default properties for <File /> component
|
|
341
|
-
|
|
346
|
+
FILE: {
|
|
342
347
|
or: 'կամ', // for file place text
|
|
343
348
|
weight: 400, // for file place font weight
|
|
344
349
|
size: '12px', // for file font size
|
|
345
350
|
radius: '6px', // for file place border radius
|
|
351
|
+
className: '', // for FILE class
|
|
346
352
|
height: '200px', // for file choose place height
|
|
347
353
|
color: '#3C393E', // for file place color
|
|
348
354
|
upload: 'Բեռնել', // for file place text
|
|
349
355
|
maxWidth: '440px', // for file width
|
|
350
356
|
labelSize: '16px', // for file font size
|
|
357
|
+
errorSize: '12px', // for file error font size
|
|
351
358
|
border: '2px dashed', // for file choose place border
|
|
352
|
-
labelColor: '#4A4A4D',
|
|
353
|
-
timeForRemoveError: 4000,
|
|
359
|
+
labelColor: '#4A4A4D', // for file color
|
|
360
|
+
timeForRemoveError: 4000, // for file error hide time when format is wrong
|
|
354
361
|
errorColor: '#ee0000', // for file place and error message error color
|
|
355
362
|
borderColor: '#D1D1D1', // for file choose place border color
|
|
356
363
|
listItemHeight: '70px', // for file list item height
|
|
@@ -382,6 +389,7 @@ module.exports = {
|
|
|
382
389
|
MODAL: {
|
|
383
390
|
alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
|
|
384
391
|
justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
|
|
392
|
+
className: '', // for modal class
|
|
385
393
|
mMaxWidth: '95%', // for modal max width
|
|
386
394
|
mMaxHeight: '95vh', // for modal max height
|
|
387
395
|
outsideClose: true, // for modal close when happened outside click
|
|
@@ -408,15 +416,20 @@ module.exports = {
|
|
|
408
416
|
imageWrapHeight: '80vh', // for image wrap
|
|
409
417
|
imageWrapWidth: '100%', // for image wrap
|
|
410
418
|
},
|
|
411
|
-
|
|
419
|
+
// default properties for <Checkbox /> component
|
|
420
|
+
CHECKBOX: {
|
|
412
421
|
checkedColor: '#00236A', // for checkbox background ( fill ) color
|
|
413
422
|
unCheckedColor: '#D1D1D1', // for checkbox border color
|
|
423
|
+
labelMarginLeft: '10px', // for checkbox label margin left
|
|
424
|
+
checkBoxMarginBottom: '10px', // for checkbox margin bottom
|
|
425
|
+
className: '' // for checkbox class
|
|
414
426
|
},
|
|
415
427
|
// default properties for <Table /> component
|
|
416
428
|
TABLE: {
|
|
417
429
|
tHeadFontSize: '16px', // for table header font size
|
|
418
430
|
tHeadFontWeight: 600, // for table header font weight
|
|
419
431
|
tHeadColor: '#FBFBFB', // for table header color
|
|
432
|
+
tHeadTextAlign: 'center', // for table header text align
|
|
420
433
|
tHeadPadding: '11px 20px', // for table header padding
|
|
421
434
|
tHeadBorderRadius: '14px', // for table header border radius
|
|
422
435
|
tHeadBackgroundColor: '#00236A', // for table header background color
|
|
@@ -428,9 +441,27 @@ module.exports = {
|
|
|
428
441
|
tBodyTextAlign: 'center', // for table body text align
|
|
429
442
|
tBodyPadding: '11px 20px', // for table body padding
|
|
430
443
|
tBodyFontFamily: 'Noto Sans Armenia', // for table body font family
|
|
444
|
+
tBodyRowMarginTop: '10px', // for table tr margin top
|
|
445
|
+
tBodyBoxShadow: '0px 10px 30px rgba(0, 35, 106, 0.06)', // for table body box shadow
|
|
431
446
|
|
|
432
447
|
tBodyRowBorder: '1px solid #eeeeee', // for table body row border
|
|
433
|
-
|
|
434
|
-
|
|
448
|
+
openListColor: '#A3A5A9', // for table body opened list color
|
|
449
|
+
className: '', // for table class
|
|
450
|
+
tableRowItem: false, // for table tr show item ( boolean prop )
|
|
451
|
+
tableRowBGColor: 'transparent', // for table tr background color
|
|
452
|
+
tableRowRadius: '6px', // for table tr border radius
|
|
453
|
+
tableRowBoxShadow: '0px 10px 30px 0px #00236A0F' // for table tr box shadow
|
|
454
|
+
},
|
|
455
|
+
// default properties for <Pagination /> component
|
|
456
|
+
PAGINATION: {
|
|
457
|
+
className: '' // for pagination class
|
|
458
|
+
},
|
|
459
|
+
// default properties for <Toaster /> component
|
|
460
|
+
TOASTER: {
|
|
461
|
+
className: ''
|
|
435
462
|
},
|
|
463
|
+
// default properties for <Stepper /> component
|
|
464
|
+
STEPPER: {
|
|
465
|
+
className: '' // for stepper class
|
|
466
|
+
}
|
|
436
467
|
}
|