react-jupiter 5.10.9 → 5.11.0
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/avatar/index.js +8 -18
- package/button/index.js +23 -40
- package/card/card-template/index.js +10 -14
- package/card/event-card/index.js +61 -77
- package/card/organization-card/index.js +8 -12
- package/card/orgnizer-card/index.js +27 -38
- package/cover/index.js +23 -36
- package/display/index.js +2 -16
- package/file-item/index.js +20 -29
- package/form/captcha/index.js +9 -17
- package/form/checkbox/checkbox-option.js +5 -11
- package/form/checkbox/checkbox.js +7 -10
- package/form/dropdown/option.js +1 -5
- package/form/dropdown/select.js +20 -26
- package/form/errorMsg.js +1 -5
- package/form/radio/radio-option.js +12 -14
- package/form/radio/radio.js +12 -16
- package/form/text-input/index.js +18 -30
- package/form/textarea/index.js +14 -23
- package/form-v7/captcha/index.js +17 -27
- package/form-v7/checkbox/checkbox-option.js +9 -15
- package/form-v7/checkbox/checkbox.js +25 -26
- package/form-v7/dropdown/option.js +2 -10
- package/form-v7/dropdown/select.js +26 -34
- package/form-v7/errorMsg.js +1 -5
- package/form-v7/file-input/index.js +26 -41
- package/form-v7/label/index.js +9 -16
- package/form-v7/radio/radio-option.js +6 -11
- package/form-v7/radio/radio.js +23 -25
- package/form-v7/text-input/index.js +19 -37
- package/form-v7/textarea/index.js +29 -37
- package/icon/index.js +18 -30
- package/icons/index.js +7 -10
- package/modal/index.js +17 -29
- package/numeric-summery-report/index.js +2 -9
- package/package.json +1 -1
- package/product-menu/menu-item.js +2 -6
- package/product-owner/index.js +12 -24
- package/product-properties/index.js +9 -14
- package/show-date/index.js +2 -12
- package/tabs/tabs.js +6 -8
- package/titled-avatar/index.js +7 -11
- package/typography/heading/index.js +7 -11
- package/typography/link/index.js +15 -19
- package/typography/text/index.js +46 -66
package/cover/index.js
CHANGED
|
@@ -15,73 +15,60 @@ defaultImageUrl="https://static.evand.net/assets/images/defaults/event-cover.jpg
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
Cover=(a)=>{const
|
|
20
19
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
linkTo:
|
|
26
|
-
linkTarget:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...j
|
|
20
|
+
alt:c="\u06A9\u0627\u0648\u0631",
|
|
21
|
+
src:d=defaultImageUrl,
|
|
22
|
+
minHeight:e=151,
|
|
23
|
+
renderLink:f=void 0,
|
|
24
|
+
linkTo:g=void 0,
|
|
25
|
+
linkTarget:h="_blank",
|
|
26
|
+
isLazy:i=!1,
|
|
27
|
+
...b
|
|
30
28
|
}=a,
|
|
31
29
|
|
|
32
|
-
|
|
30
|
+
j=()=>
|
|
33
31
|
i?/*#__PURE__*/
|
|
34
32
|
|
|
35
33
|
_react.default.createElement(_index.StyledLazyImage,_extends({
|
|
36
34
|
effect:"blur",
|
|
37
|
-
srcSet:"".concat(
|
|
38
|
-
src:
|
|
39
|
-
alt:
|
|
35
|
+
srcSet:"".concat(d),
|
|
36
|
+
src:d,
|
|
37
|
+
alt:c,
|
|
40
38
|
"data-test":"cover"},
|
|
41
|
-
|
|
39
|
+
b)
|
|
42
40
|
):/*#__PURE__*/
|
|
43
41
|
|
|
44
42
|
|
|
45
43
|
_react.default.createElement(_index.StyledImage,_extends({
|
|
46
|
-
srcSet:"".concat(
|
|
47
|
-
src:
|
|
48
|
-
alt:
|
|
44
|
+
srcSet:"".concat(d),
|
|
45
|
+
src:d,
|
|
46
|
+
alt:c,
|
|
49
47
|
"data-test":"cover"},
|
|
50
|
-
|
|
48
|
+
b)
|
|
51
49
|
);return(
|
|
52
50
|
|
|
53
51
|
|
|
54
52
|
|
|
55
|
-
|
|
53
|
+
f?
|
|
56
54
|
|
|
57
55
|
// <Container minHeight={minHeight}>
|
|
58
|
-
|
|
56
|
+
f(j())
|
|
59
57
|
// </Container>
|
|
60
58
|
:
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
g?/*#__PURE__*/
|
|
63
61
|
|
|
64
|
-
_react.default.createElement("a",{href:
|
|
65
|
-
|
|
62
|
+
_react.default.createElement("a",{href:g,target:h},
|
|
63
|
+
j()
|
|
66
64
|
):/*#__PURE__*/
|
|
67
65
|
|
|
68
66
|
|
|
69
67
|
|
|
70
68
|
_react.default.createElement(_index.Container,{minHeight:e},
|
|
71
|
-
|
|
69
|
+
j()
|
|
72
70
|
))
|
|
73
71
|
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
Cover.defaultProps={
|
|
77
|
-
alt:"\u06A9\u0627\u0648\u0631",
|
|
78
|
-
src:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
|
|
79
|
-
srcSet:void 0,
|
|
80
|
-
minHeight:151,
|
|
81
|
-
renderLink:void 0,
|
|
82
|
-
linkTo:void 0,
|
|
83
|
-
linkTarget:"_blank",
|
|
84
|
-
isLazy:!1
|
|
85
72
|
};var _default=exports.default=
|
|
86
73
|
|
|
87
74
|
Cover;
|
package/display/index.js
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
const Display=(a)=>{
|
|
6
|
-
{
|
|
7
|
-
children:b,...c
|
|
8
|
-
}=a;
|
|
5
|
+
const Display=(a)=>{
|
|
9
6
|
|
|
10
7
|
|
|
11
8
|
|
|
@@ -17,7 +14,7 @@ children:b,...c
|
|
|
17
14
|
|
|
18
15
|
return/*#__PURE__*/(
|
|
19
16
|
_react.default.createElement(_react.default.Fragment,null,
|
|
20
|
-
(()=>void 0===b?null:/*#__PURE__*/_react.default.createElement(_index.DisplayStyle,
|
|
17
|
+
(()=>{const{children:b}=a;return void 0===b?null:/*#__PURE__*/_react.default.createElement(_index.DisplayStyle,a,b)})()
|
|
21
18
|
))
|
|
22
19
|
|
|
23
20
|
};
|
|
@@ -37,17 +34,6 @@ flexDirection:_propTypes.default.string,
|
|
|
37
34
|
flexDirectionMobile:_propTypes.default.string,
|
|
38
35
|
wrap:_propTypes.default.string,
|
|
39
36
|
className:_propTypes.default.string
|
|
40
|
-
},
|
|
41
|
-
Display.defaultProps={
|
|
42
|
-
display:"",
|
|
43
|
-
width:"",
|
|
44
|
-
justifyContent:"",
|
|
45
|
-
justifyContentMobile:"",
|
|
46
|
-
alignItems:"",
|
|
47
|
-
flexDirection:"",
|
|
48
|
-
flexDirectionMobile:"",
|
|
49
|
-
wrap:"",
|
|
50
|
-
className:""
|
|
51
37
|
};var _default=exports.default=
|
|
52
38
|
|
|
53
39
|
Display;
|
package/file-item/index.js
CHANGED
|
@@ -18,16 +18,15 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
const FileItem=(a)=>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
fileSize:
|
|
29
|
-
|
|
30
|
-
}=a;
|
|
21
|
+
const FileItem=(a)=>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
{let{type:c="zip",title:d="\u0641\u0627\u06CC\u0644 \u062F\u0627\u0646\u0644\u0648\u062F\u06CC",description:e="",price:b,fileSize:f="",onClick:g=()=>null}=a;
|
|
29
|
+
const[h,i]=(0,_react.useState)(!1);
|
|
31
30
|
|
|
32
31
|
|
|
33
32
|
|
|
@@ -42,13 +41,13 @@ _react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.defau
|
|
|
42
41
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
43
42
|
_react.default.createElement(_index.Wrapper,{
|
|
44
43
|
"data-test":"file-item",
|
|
45
|
-
isActive:
|
|
46
|
-
onMouseEnter:function(){
|
|
47
|
-
onMouseLeave:function(){
|
|
48
|
-
onClick:
|
|
44
|
+
isActive:h,
|
|
45
|
+
onMouseEnter:function(){i(!0)},
|
|
46
|
+
onMouseLeave:function(){i(!1)},
|
|
47
|
+
onClick:g},/*#__PURE__*/
|
|
49
48
|
|
|
50
49
|
_react.default.createElement(_fileImgIcon.default,{
|
|
51
|
-
iconFileName:(0,_utils.default)(
|
|
50
|
+
iconFileName:(0,_utils.default)(c,!h)}
|
|
52
51
|
),/*#__PURE__*/
|
|
53
52
|
|
|
54
53
|
_react.default.createElement(_index.InfoWrapper,null,/*#__PURE__*/
|
|
@@ -57,29 +56,29 @@ size:14,
|
|
|
57
56
|
bold:!0,
|
|
58
57
|
"data-test":"file-item-title"},
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
d
|
|
61
60
|
),
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
e?/*#__PURE__*/
|
|
64
63
|
_react.default.createElement(_typography.Text,{
|
|
65
64
|
size:10,
|
|
66
65
|
"data-test":"file-item-desc",
|
|
67
66
|
bold:!0},
|
|
68
67
|
|
|
69
|
-
|
|
68
|
+
e
|
|
70
69
|
):/*#__PURE__*/
|
|
71
70
|
|
|
72
71
|
_react.default.createElement("br",null),/*#__PURE__*/
|
|
73
72
|
|
|
74
73
|
|
|
75
74
|
_react.default.createElement("div",null,
|
|
76
|
-
|
|
75
|
+
f&&/*#__PURE__*/
|
|
77
76
|
_react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
|
|
78
77
|
_react.default.createElement(_typography.Text,{
|
|
79
78
|
size:10,
|
|
80
79
|
"data-test":"file-item-size"},
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
f
|
|
83
82
|
),/*#__PURE__*/
|
|
84
83
|
_react.default.createElement(_index.VerticalDivider,null)
|
|
85
84
|
),/*#__PURE__*/
|
|
@@ -89,7 +88,7 @@ _react.default.createElement(_typography.Text,{
|
|
|
89
88
|
size:10,
|
|
90
89
|
"data-test":"file-item-price"},
|
|
91
90
|
|
|
92
|
-
|
|
91
|
+
b
|
|
93
92
|
)
|
|
94
93
|
)
|
|
95
94
|
|
|
@@ -97,14 +96,6 @@ g
|
|
|
97
96
|
)
|
|
98
97
|
))
|
|
99
98
|
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
FileItem.defaultProps={
|
|
103
|
-
type:"zip",
|
|
104
|
-
title:"\u0641\u0627\u06CC\u0644 \u062F\u0627\u0646\u0644\u0648\u062F\u06CC",
|
|
105
|
-
description:"",
|
|
106
|
-
fileSize:"",
|
|
107
|
-
onClick:()=>null
|
|
108
99
|
};var _default=exports.default=
|
|
109
100
|
|
|
110
101
|
FileItem;
|
package/form/captcha/index.js
CHANGED
|
@@ -18,15 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
function Captcha(a)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
handleRetryCaptcha:f
|
|
28
|
-
|
|
29
|
-
[g,h]=(0,_react.useState)("loading");
|
|
21
|
+
function Captcha(a)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
{let{src:b,errorMessage:c="",inputRef:d=null,handleCaptchaError:e=()=>{},handleRetryCaptcha:f=null}=a;
|
|
28
|
+
const[g,h]=(0,_react.useState)("loading");
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
|
|
@@ -82,13 +81,6 @@ styleType:"failedToLoad"===g?"primary":"tertiary"},
|
|
|
82
81
|
|
|
83
82
|
))
|
|
84
83
|
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
Captcha.defaultProps={
|
|
88
|
-
errorMessage:"",
|
|
89
|
-
inputRef:null,
|
|
90
|
-
handleCaptchaError:()=>{},
|
|
91
|
-
handleRetryCaptcha:null
|
|
92
|
-
};var _default=exports.default=
|
|
84
|
+
}var _default=exports.default=
|
|
93
85
|
|
|
94
86
|
Captcha;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
const CheckboxOption=(a)=>{const
|
|
16
16
|
{
|
|
17
|
-
label:b,value:c,isDisabled:
|
|
17
|
+
label:b,value:c,isDisabled:e=!1,isChecked:f=!1,inputRef:g=null,groupName:d
|
|
18
18
|
}=a,
|
|
19
|
-
h="".concat(
|
|
19
|
+
h="".concat(d,"-").concat(c,"-").concat(b.split(" ").join(""));
|
|
20
20
|
|
|
21
21
|
return/*#__PURE__*/(
|
|
22
22
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
@@ -24,10 +24,10 @@ _react.default.createElement("label",{htmlFor:h},/*#__PURE__*/
|
|
|
24
24
|
_react.default.createElement(_index.Input,{
|
|
25
25
|
type:"checkbox",
|
|
26
26
|
id:h,
|
|
27
|
-
name:
|
|
27
|
+
name:d,
|
|
28
28
|
value:c,
|
|
29
|
-
defaultChecked:
|
|
30
|
-
disabled:
|
|
29
|
+
defaultChecked:f,
|
|
30
|
+
disabled:e,
|
|
31
31
|
ref:g}
|
|
32
32
|
),/*#__PURE__*/
|
|
33
33
|
_react.default.createElement(_typography.Text,{size:14},
|
|
@@ -36,12 +36,6 @@ b
|
|
|
36
36
|
)
|
|
37
37
|
))
|
|
38
38
|
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
CheckboxOption.defaultProps={
|
|
42
|
-
isDisabled:!1,
|
|
43
|
-
isChecked:!1,
|
|
44
|
-
inputRef:null
|
|
45
39
|
};var _default=exports.default=
|
|
46
40
|
|
|
47
41
|
CheckboxOption;
|
|
@@ -16,7 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
const Checkbox=(a)=>{const
|
|
18
18
|
{
|
|
19
|
-
|
|
19
|
+
groupName:c="radio-element",
|
|
20
|
+
label:d="",
|
|
21
|
+
handleChange:e=()=>{},
|
|
22
|
+
isDisabled:f=!1,
|
|
23
|
+
type:g="horizontal",
|
|
24
|
+
errorMessage:h="",
|
|
25
|
+
children:b
|
|
20
26
|
}=a,
|
|
21
27
|
i=_react.default.Children.toArray(b);
|
|
22
28
|
|
|
@@ -44,14 +50,5 @@ _react.default.cloneElement(a,{groupName:c})
|
|
|
44
50
|
_react.default.createElement(_errorMsg.default,{errorMessage:h})
|
|
45
51
|
))
|
|
46
52
|
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
Checkbox.defaultProps={
|
|
50
|
-
groupName:"radio-element",
|
|
51
|
-
label:"",
|
|
52
|
-
handleChange:()=>{},
|
|
53
|
-
isDisabled:!1,
|
|
54
|
-
type:"horizontal",
|
|
55
|
-
errorMessage:""
|
|
56
53
|
};var _default=exports.default=
|
|
57
54
|
Checkbox;
|
package/form/dropdown/option.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
const SelectOption=(a)=>{
|
|
9
|
-
const{label:b,value:c,isDisabled:d}=a;
|
|
9
|
+
const{label:b,value:c,isDisabled:d=!1}=a;
|
|
10
10
|
|
|
11
11
|
return/*#__PURE__*/(
|
|
12
12
|
_react.default.createElement("option",{
|
|
@@ -17,10 +17,6 @@ value:c,
|
|
|
17
17
|
b
|
|
18
18
|
))
|
|
19
19
|
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
SelectOption.defaultProps={
|
|
23
|
-
isDisabled:!1
|
|
24
20
|
};var _default=exports.default=
|
|
25
21
|
|
|
26
22
|
SelectOption;
|
package/form/dropdown/select.js
CHANGED
|
@@ -16,59 +16,53 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
const Select=(a)=>
|
|
19
|
+
const Select=(a)=>
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
{
|
|
25
30
|
function b(a){
|
|
26
|
-
|
|
27
|
-
}
|
|
31
|
+
i(a.target.value)
|
|
32
|
+
}let{htmlElementName:d="select-element",defaultValue:e="",placeholder:f="",label:g="",isDisabled:h=!1,handleChange:i=()=>{},errorMessage:j="",inputRef:k=null,children:c}=a;
|
|
28
33
|
|
|
29
|
-
|
|
34
|
+
const l=()=>/*#__PURE__*/
|
|
30
35
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
31
36
|
_react.default.createElement(_index.SelectButton,{disabled:h},/*#__PURE__*/
|
|
32
37
|
_react.default.createElement(_index.StyledSelect,{
|
|
33
38
|
disabled:h,
|
|
34
39
|
onChange:b,
|
|
35
|
-
name:
|
|
36
|
-
defaultValue:
|
|
40
|
+
name:d,
|
|
41
|
+
defaultValue:f?"":e,
|
|
37
42
|
"data-test":"select",
|
|
38
43
|
ref:k},
|
|
39
44
|
|
|
40
|
-
|
|
41
|
-
_react.default.createElement("option",{value:"",disabled:!0},
|
|
45
|
+
f&&/*#__PURE__*/
|
|
46
|
+
_react.default.createElement("option",{value:"",disabled:!0},f),
|
|
42
47
|
|
|
43
|
-
|
|
48
|
+
c
|
|
44
49
|
)
|
|
45
50
|
),/*#__PURE__*/
|
|
46
|
-
_react.default.createElement(_errorMsg.default,{errorMessage:
|
|
51
|
+
_react.default.createElement(_errorMsg.default,{errorMessage:j})
|
|
47
52
|
);return(
|
|
48
53
|
|
|
49
54
|
|
|
50
|
-
|
|
55
|
+
g?/*#__PURE__*/
|
|
51
56
|
|
|
52
|
-
_react.default.createElement("label",{htmlFor:
|
|
57
|
+
_react.default.createElement("label",{htmlFor:d},/*#__PURE__*/
|
|
53
58
|
_react.default.createElement(_typography.Text,{size:14,bold:!0,isDisplayBlock:!0},
|
|
54
|
-
|
|
59
|
+
g
|
|
55
60
|
),
|
|
56
|
-
|
|
61
|
+
l()
|
|
57
62
|
):
|
|
58
63
|
|
|
59
64
|
|
|
60
|
-
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
Select.defaultProps={
|
|
64
|
-
htmlElementName:"select-element",
|
|
65
|
-
defaultValue:"",
|
|
66
|
-
placeholder:"",
|
|
67
|
-
label:"",
|
|
68
|
-
isDisabled:!1,
|
|
69
|
-
handleChange:()=>{},
|
|
70
|
-
errorMessage:"",
|
|
71
|
-
inputRef:null
|
|
65
|
+
l())
|
|
72
66
|
};var _default=exports.default=
|
|
73
67
|
|
|
74
68
|
Select;
|
package/form/errorMsg.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
const ErrorMsg=(a)=>{let{errorMessage:b}=a;return(
|
|
6
|
+
const ErrorMsg=(a)=>{let{errorMessage:b=""}=a;return(
|
|
7
7
|
b?/*#__PURE__*/
|
|
8
8
|
|
|
9
9
|
_react.default.createElement(_spacing.Margin,{top:4},/*#__PURE__*/
|
|
@@ -16,10 +16,6 @@ b
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
null)
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
ErrorMsg.defaultProps={
|
|
22
|
-
errorMessage:""
|
|
23
19
|
};var _default=exports.default=
|
|
24
20
|
|
|
25
21
|
ErrorMsg;
|
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
const RadioOption=(a)=>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const RadioOption=(a)=>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
{let{label:b,value:c,isDisabled:e=!1,defaultCheckedValue:f="",inputRef:g=null,groupName:d}=a;
|
|
23
|
+
const h="".concat(d,"-").concat(c,"-").concat(b.split(" ").join(""));
|
|
20
24
|
|
|
21
25
|
return/*#__PURE__*/(
|
|
22
26
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
@@ -24,10 +28,10 @@ _react.default.createElement("label",{htmlFor:h},/*#__PURE__*/
|
|
|
24
28
|
_react.default.createElement(_index.Input,{
|
|
25
29
|
type:"radio",
|
|
26
30
|
id:h,
|
|
27
|
-
name:
|
|
31
|
+
name:d,
|
|
28
32
|
value:c,
|
|
29
|
-
defaultChecked:
|
|
30
|
-
disabled:
|
|
33
|
+
defaultChecked:f===c,
|
|
34
|
+
disabled:e,
|
|
31
35
|
ref:g}
|
|
32
36
|
),/*#__PURE__*/
|
|
33
37
|
_react.default.createElement(_typography.Text,{size:14},
|
|
@@ -36,12 +40,6 @@ b
|
|
|
36
40
|
)
|
|
37
41
|
))
|
|
38
42
|
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
RadioOption.defaultProps={
|
|
42
|
-
isDisabled:!1,
|
|
43
|
-
defaultCheckedValue:"",
|
|
44
|
-
inputRef:null
|
|
45
43
|
};var _default=exports.default=
|
|
46
44
|
|
|
47
45
|
RadioOption;
|
package/form/radio/radio.js
CHANGED
|
@@ -15,12 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
const Radio=(a)=>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
const Radio=(a)=>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
{let{groupName:c="radio-element",label:d="",handleChange:e=()=>{},defaultCheckedValue:f="",isDisabled:g=!1,type:h="horizontal",errorMessage:i="",children:b}=a;
|
|
28
|
+
const j=_react.default.Children.toArray(b);
|
|
24
29
|
|
|
25
30
|
return/*#__PURE__*/(
|
|
26
31
|
_react.default.createElement(_index.Fieldset,{onChange:e},/*#__PURE__*/
|
|
@@ -46,15 +51,6 @@ _react.default.cloneElement(a,{groupName:c,defaultCheckedValue:f})
|
|
|
46
51
|
_react.default.createElement(_errorMsg.default,{errorMessage:i})
|
|
47
52
|
))
|
|
48
53
|
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
Radio.defaultProps={
|
|
52
|
-
groupName:"radio-element",
|
|
53
|
-
label:"",
|
|
54
|
-
handleChange:()=>{},
|
|
55
|
-
defaultCheckedValue:"",
|
|
56
|
-
isDisabled:!1,
|
|
57
|
-
type:"horizontal",
|
|
58
|
-
errorMessage:""
|
|
59
54
|
};var _default=exports.default=
|
|
55
|
+
|
|
60
56
|
Radio;
|
package/form/text-input/index.js
CHANGED
|
@@ -25,18 +25,17 @@
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
const TextInput=(a)=>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
inputRef:j
|
|
39
|
-
}=a,
|
|
28
|
+
const TextInput=(a)=>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
{let{type:c="text",label:d=null,id:e=null,placeholder:f=null,disabled:g=!1,description:h=null,errorMessage:i="",inputRef:j=null,htmlElementName:b}=a;const
|
|
40
39
|
[k,l]=(0,_react.useState)(""),
|
|
41
40
|
[m,n]=(0,_react.useState)(!1);
|
|
42
41
|
|
|
@@ -55,10 +54,10 @@ inputRef:j
|
|
|
55
54
|
return/*#__PURE__*/(
|
|
56
55
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
57
56
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
58
|
-
_react.default.createElement(_index.Label,{htmlFor:e||"".concat(
|
|
59
|
-
|
|
57
|
+
_react.default.createElement(_index.Label,{htmlFor:e||"".concat(c,"-").concat(b.split(" ").join("")),"data-test":"text-input"},
|
|
58
|
+
d&&/*#__PURE__*/
|
|
60
59
|
_react.default.createElement(_index.LabelContainer,{bold:!0,size:14},
|
|
61
|
-
|
|
60
|
+
d
|
|
62
61
|
),
|
|
63
62
|
|
|
64
63
|
h&&/*#__PURE__*/
|
|
@@ -67,9 +66,9 @@ h
|
|
|
67
66
|
),/*#__PURE__*/
|
|
68
67
|
|
|
69
68
|
_react.default.createElement(_index.Input,{
|
|
70
|
-
id:e||"".concat(
|
|
71
|
-
name:
|
|
72
|
-
type:m||"text"===
|
|
69
|
+
id:e||"".concat(c,"-").concat(b.split(" ").join("")),
|
|
70
|
+
name:b,
|
|
71
|
+
type:m||"text"===c?"text":"password",
|
|
73
72
|
placeholder:f,
|
|
74
73
|
value:k,
|
|
75
74
|
onChange:function(a){l(a.target.value)},
|
|
@@ -77,7 +76,7 @@ onFocus:function(a){a.target.setSelectionRange(0,0)},
|
|
|
77
76
|
disabled:g,
|
|
78
77
|
ref:j}
|
|
79
78
|
),
|
|
80
|
-
"password"===
|
|
79
|
+
"password"===c&&/*#__PURE__*/
|
|
81
80
|
_react.default.createElement(_index.PasswordIcon,{
|
|
82
81
|
name:m?"visibility-off":"visibility",
|
|
83
82
|
color:m?"blue":"gray",
|
|
@@ -88,17 +87,6 @@ onClick:function(){n(!m)}}
|
|
|
88
87
|
_react.default.createElement(_errorMsg.default,{errorMessage:i})
|
|
89
88
|
))
|
|
90
89
|
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
TextInput.defaultProps={
|
|
94
|
-
type:"text",
|
|
95
|
-
label:null,
|
|
96
|
-
id:null,
|
|
97
|
-
placeholder:null,
|
|
98
|
-
disabled:!1,
|
|
99
|
-
description:null,
|
|
100
|
-
errorMessage:"",
|
|
101
|
-
inputRef:null
|
|
102
90
|
};var _default=exports.default=
|
|
103
91
|
|
|
104
92
|
TextInput;
|
package/form/textarea/index.js
CHANGED
|
@@ -19,13 +19,18 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
const Textarea=(a)=>{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const Textarea=(a)=>{let{
|
|
23
|
+
htmlElementName:b="textarea-element",
|
|
24
|
+
label:c="",
|
|
25
|
+
isDisabled:d=!1,
|
|
26
|
+
defaultValue:e="",
|
|
27
|
+
placeholder:f="",
|
|
28
|
+
resize:g="none",
|
|
29
|
+
minHeight:h=120,
|
|
30
|
+
handleChange:i=()=>{},
|
|
31
|
+
errorMessage:j="",
|
|
32
|
+
inputRef:k=null
|
|
33
|
+
}=a;return/*#__PURE__*/(
|
|
29
34
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
30
35
|
_react.default.createElement(_globalStyle.default,null),
|
|
31
36
|
c&&/*#__PURE__*/
|
|
@@ -48,21 +53,7 @@ ref:k},
|
|
|
48
53
|
e
|
|
49
54
|
),/*#__PURE__*/
|
|
50
55
|
_react.default.createElement(_errorMsg.default,{errorMessage:j})
|
|
51
|
-
))
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
Textarea.defaultProps={
|
|
56
|
-
htmlElementName:"textarea-element",
|
|
57
|
-
label:"",
|
|
58
|
-
isDisabled:!1,
|
|
59
|
-
defaultValue:"",
|
|
60
|
-
placeholder:"",
|
|
61
|
-
resize:"none",
|
|
62
|
-
minHeight:120,
|
|
63
|
-
handleChange:()=>{},
|
|
64
|
-
errorMessage:"",
|
|
65
|
-
inputRef:null
|
|
66
|
-
};var _default=exports.default=
|
|
56
|
+
))};var _default=exports.default=
|
|
57
|
+
|
|
67
58
|
|
|
68
59
|
Textarea;
|