react-jupiter 5.10.9 → 5.11.1
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/paragraph/index.js +8 -11
- package/typography/text/index.js +46 -66
|
@@ -32,11 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
const TextInput=(a)=>{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
const TextInput=(a)=>
|
|
40
36
|
|
|
41
37
|
|
|
42
38
|
|
|
@@ -51,69 +47,55 @@ const TextInput=(a)=>{
|
|
|
51
47
|
|
|
52
48
|
|
|
53
49
|
|
|
50
|
+
{
|
|
54
51
|
function b(a){
|
|
55
52
|
a.target.setSelectionRange(0,0)
|
|
56
|
-
}
|
|
53
|
+
}let{type:f="text",label:g=null,htmlElementName:c,id:h=null,placeholder:i=null,disabled:j=!1,description:k=null,required:l=!1,number:m=null,rtl:n=!0,onFocus:o=()=>{},readOnly:p=!1,register:d,control:e}=a;
|
|
57
54
|
|
|
58
55
|
return/*#__PURE__*/(
|
|
59
56
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
60
57
|
_react.default.createElement(_index2.Fieldset,null,/*#__PURE__*/
|
|
61
58
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
62
|
-
_react.default.createElement(_label.default,{htmlFor:
|
|
63
|
-
|
|
59
|
+
_react.default.createElement(_label.default,{htmlFor:h||"".concat(f,"-").concat(c.split(" ").join("")),label:g,number:m,required:l}),
|
|
60
|
+
k&&/*#__PURE__*/
|
|
64
61
|
_react.default.createElement(_index.DescriptionContainer,{size:10,color:"gray","data-test":"text-input-description"},
|
|
65
|
-
|
|
62
|
+
k
|
|
66
63
|
),/*#__PURE__*/
|
|
67
64
|
|
|
68
65
|
_react.default.createElement(_reactHookForm.Controller,{
|
|
69
|
-
name:
|
|
70
|
-
control:
|
|
71
|
-
rules:{required:!!
|
|
72
|
-
render:(a)=>{var
|
|
66
|
+
name:c,
|
|
67
|
+
control:e,
|
|
68
|
+
rules:{required:!!l&&"\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u062C\u0628\u0627\u0631\u06CC \u0627\u0633\u062A"},
|
|
69
|
+
render:(a)=>{var e;let{field:{value:k},fieldState:g}=a;return/*#__PURE__*/(
|
|
73
70
|
_react.default.createElement(_react.default.Fragment,null,
|
|
74
|
-
"password"===
|
|
71
|
+
"password"===f&&/*#__PURE__*/
|
|
75
72
|
_react.default.createElement(_index.PasswordIcon,{
|
|
76
73
|
name:"visibility",
|
|
77
74
|
color:"gray"}
|
|
78
75
|
),/*#__PURE__*/
|
|
79
76
|
|
|
80
77
|
_react.default.createElement(_index.Input,_extends({
|
|
81
|
-
id:
|
|
82
|
-
name:
|
|
83
|
-
type:"text"===
|
|
84
|
-
placeholder:
|
|
78
|
+
id:h||"".concat(f,"-").concat(c.split(" ").join("")),
|
|
79
|
+
name:c,
|
|
80
|
+
type:"text"===f?"text":"password",
|
|
81
|
+
placeholder:i,
|
|
85
82
|
defaultValue:k,
|
|
86
|
-
rtl:
|
|
87
|
-
|
|
83
|
+
rtl:n},
|
|
84
|
+
d(c,{
|
|
88
85
|
onFocus:b,
|
|
89
|
-
disabled:
|
|
86
|
+
disabled:j,
|
|
90
87
|
onChange:(a)=>(0,_numbers.fixNumbers)(a)
|
|
91
88
|
}),{
|
|
92
89
|
onFocus:o,
|
|
93
90
|
readOnly:p})
|
|
94
91
|
),/*#__PURE__*/
|
|
95
|
-
_react.default.createElement(_errorMsg.default,{errorMessage:
|
|
92
|
+
_react.default.createElement(_errorMsg.default,{errorMessage:g&&(null===(e=g.error)||void 0===e?void 0:e.message)})
|
|
96
93
|
))}}
|
|
97
94
|
|
|
98
95
|
)
|
|
99
96
|
)
|
|
100
97
|
))
|
|
101
98
|
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
TextInput.defaultProps={
|
|
105
|
-
type:"text",
|
|
106
|
-
label:null,
|
|
107
|
-
id:null,
|
|
108
|
-
placeholder:null,
|
|
109
|
-
disabled:!1,
|
|
110
|
-
description:null,
|
|
111
|
-
required:!1,
|
|
112
|
-
number:null,
|
|
113
|
-
rtl:!0,
|
|
114
|
-
value:"",
|
|
115
|
-
onFocus:()=>{},
|
|
116
|
-
readOnly:!1
|
|
117
99
|
};var _default=exports.default=
|
|
118
100
|
|
|
119
101
|
TextInput;
|
|
@@ -23,56 +23,48 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
const Textarea=(a)=>{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
const Textarea=(a)=>{let{
|
|
27
|
+
htmlElementName:d="textarea-element",
|
|
28
|
+
label:e="",
|
|
29
|
+
isDisabled:f=!1,
|
|
30
|
+
defaultValue:g="",
|
|
31
|
+
placeholder:h="",
|
|
32
|
+
resize:i="none",
|
|
33
|
+
minHeight:j=120,
|
|
34
|
+
handleChange:k=()=>{},
|
|
35
|
+
required:l=!1,
|
|
36
|
+
number:m=null,
|
|
37
|
+
register:b,
|
|
38
|
+
control:c
|
|
39
|
+
}=a;return/*#__PURE__*/(
|
|
34
40
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
35
41
|
_react.default.createElement(_index2.Fieldset,null,/*#__PURE__*/
|
|
36
42
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
37
|
-
_react.default.createElement(_label.default,{htmlFor:
|
|
43
|
+
_react.default.createElement(_label.default,{htmlFor:d,label:e,number:m,required:l}),/*#__PURE__*/
|
|
38
44
|
|
|
39
45
|
_react.default.createElement(_reactHookForm.Controller,{
|
|
40
|
-
name:
|
|
41
|
-
control:
|
|
46
|
+
name:d,
|
|
47
|
+
control:c,
|
|
42
48
|
rules:{required:!!l&&"\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u062C\u0628\u0627\u0631\u06CC \u0627\u0633\u062A"},
|
|
43
|
-
render:(a)=>{var c;let{fieldState:
|
|
49
|
+
render:(a)=>{var c;let{fieldState:e}=a;return/*#__PURE__*/(
|
|
44
50
|
_react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
|
|
45
51
|
_react.default.createElement(_index.default,_extends({
|
|
46
|
-
name:
|
|
47
|
-
placeholder:
|
|
48
|
-
resize:
|
|
49
|
-
defaultValue:
|
|
50
|
-
minHeight:
|
|
51
|
-
|
|
52
|
-
onChange:
|
|
53
|
-
disabled:
|
|
52
|
+
name:d,
|
|
53
|
+
placeholder:h,
|
|
54
|
+
resize:i,
|
|
55
|
+
defaultValue:g,
|
|
56
|
+
minHeight:j},
|
|
57
|
+
b(d,{
|
|
58
|
+
onChange:k,
|
|
59
|
+
disabled:f
|
|
54
60
|
}))
|
|
55
61
|
),/*#__PURE__*/
|
|
56
|
-
_react.default.createElement(_errorMsg.default,{errorMessage:
|
|
62
|
+
_react.default.createElement(_errorMsg.default,{errorMessage:e&&(null===(c=e.error)||void 0===c?void 0:c.message)})
|
|
57
63
|
))}}
|
|
58
64
|
|
|
59
65
|
)
|
|
60
66
|
)
|
|
61
|
-
))
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
Textarea.defaultProps={
|
|
66
|
-
htmlElementName:"textarea-element",
|
|
67
|
-
label:"",
|
|
68
|
-
isDisabled:!1,
|
|
69
|
-
defaultValue:"",
|
|
70
|
-
placeholder:"",
|
|
71
|
-
resize:"none",
|
|
72
|
-
minHeight:120,
|
|
73
|
-
handleChange:()=>{},
|
|
74
|
-
required:!1,
|
|
75
|
-
number:null
|
|
76
|
-
};var _default=exports.default=
|
|
67
|
+
))};var _default=exports.default=
|
|
68
|
+
|
|
77
69
|
|
|
78
70
|
Textarea;
|
package/icon/index.js
CHANGED
|
@@ -6,19 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
const Icon=(a)=>
|
|
10
|
-
const{
|
|
11
|
-
name:b,
|
|
12
|
-
size:c,
|
|
13
|
-
color:d,
|
|
14
|
-
className:e,
|
|
15
|
-
stickyLeft:f,
|
|
16
|
-
stickyRight:g,
|
|
17
|
-
marginLeft:h,
|
|
18
|
-
marginRight:i,
|
|
19
|
-
...j
|
|
20
|
-
}=a;return(
|
|
9
|
+
const Icon=(a)=>
|
|
21
10
|
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
{let{name:b,size:d="md",color:e="default",className:f="",stickyLeft:g=!1,stickyRight:h=!1,marginLeft:i=0,marginRight:j=0,...c}=a;return(
|
|
22
20
|
void 0===b?null:/*#__PURE__*/
|
|
23
21
|
|
|
24
22
|
|
|
@@ -26,15 +24,15 @@ _react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.defau
|
|
|
26
24
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
27
25
|
_react.default.createElement(_iconFont.default,null),/*#__PURE__*/
|
|
28
26
|
_react.default.createElement(_index.default,_extends({
|
|
29
|
-
size:
|
|
30
|
-
IconColor:
|
|
31
|
-
className:"jupiter-icon new-icon-".concat(b," ").concat(
|
|
27
|
+
size:d,
|
|
28
|
+
IconColor:e,
|
|
29
|
+
className:"jupiter-icon new-icon-".concat(b," ").concat(f),
|
|
32
30
|
"data-test":"icon",
|
|
33
|
-
stickyLeft:
|
|
34
|
-
stickyRight:
|
|
35
|
-
marginLeft:
|
|
36
|
-
marginRight:
|
|
37
|
-
|
|
31
|
+
stickyLeft:g,
|
|
32
|
+
stickyRight:h,
|
|
33
|
+
marginLeft:i,
|
|
34
|
+
marginRight:j},
|
|
35
|
+
c)
|
|
38
36
|
)
|
|
39
37
|
))
|
|
40
38
|
|
|
@@ -49,16 +47,6 @@ stickyLeft:_propTypes.default.bool,
|
|
|
49
47
|
stickyRight:_propTypes.default.bool,
|
|
50
48
|
marginLeft:_propTypes.default.number,
|
|
51
49
|
marginRight:_propTypes.default.number
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
Icon.defaultProps={
|
|
55
|
-
size:"md",
|
|
56
|
-
color:"default",
|
|
57
|
-
className:"",
|
|
58
|
-
stickyLeft:!1,
|
|
59
|
-
stickyRight:!1,
|
|
60
|
-
marginLeft:0,
|
|
61
|
-
marginRight:0
|
|
62
50
|
};var _default=exports.default=
|
|
63
51
|
|
|
64
52
|
Icon;
|
package/icons/index.js
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
const Icons=(a)=>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const Icons=(a)=>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
{let{size:d=_themes.default.sizes.medium,color:e="default",type:b,...c}=a;return(
|
|
12
14
|
void 0===b?null:/*#__PURE__*/
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_themes.default},/*#__PURE__*/
|
|
16
|
-
_react.default.createElement(_index.default,_extends({type:b,size:
|
|
18
|
+
_react.default.createElement(_index.default,_extends({type:b,size:d,color:e},c,{"data-test":"i-tag"}))
|
|
17
19
|
))
|
|
18
20
|
|
|
19
21
|
};
|
|
@@ -22,11 +24,6 @@ Icons.propTypes={
|
|
|
22
24
|
type:_propTypes.default.string.isRequired,
|
|
23
25
|
size:_propTypes.default.string,
|
|
24
26
|
color:_propTypes.default.oneOf(["default","red","green","blue","yellow","white","darkBlue","gray"])
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
Icons.defaultProps={
|
|
28
|
-
size:_themes.default.sizes.medium,
|
|
29
|
-
color:"default"
|
|
30
27
|
};var _default=exports.default=
|
|
31
28
|
|
|
32
29
|
Icons;
|
package/modal/index.js
CHANGED
|
@@ -20,24 +20,22 @@
|
|
|
20
20
|
|
|
21
21
|
_reactModal.default.setAppElement("body");
|
|
22
22
|
|
|
23
|
-
function JupiterModal(a)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
fullHeight:i,
|
|
33
|
-
modalWidthMobile:j
|
|
34
|
-
}=a;
|
|
23
|
+
function JupiterModal(a)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
35
32
|
|
|
33
|
+
{let{onRequestClose:d=()=>{},onAfterOpen:e=()=>{},hasCloseButton:f=!0,disabledClose:g=!1,modalWidth:h="80%",modalWidthMobile:i="100%",fullHeight:j=!1,isOpen:b,children:c}=a;
|
|
36
34
|
return/*#__PURE__*/(
|
|
37
35
|
_react.default.createElement(_reactModal.default,{
|
|
38
36
|
isOpen:b,
|
|
39
|
-
onAfterOpen:
|
|
40
|
-
onRequestClose:
|
|
37
|
+
onAfterOpen:e,
|
|
38
|
+
onRequestClose:d,
|
|
41
39
|
contentLabel:"Example Modal",
|
|
42
40
|
shouldCloseOnOverlayClick:!g,
|
|
43
41
|
overlayClassName:"modal",
|
|
@@ -46,11 +44,11 @@ className:"overlay"},/*#__PURE__*/
|
|
|
46
44
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
47
45
|
_react.default.createElement(_index.StyledWrapper,null,
|
|
48
46
|
!g&&f&&/*#__PURE__*/
|
|
49
|
-
_react.default.createElement(_index.StyledIcon,{onClick:
|
|
47
|
+
_react.default.createElement(_index.StyledIcon,{onClick:d,"aria-hidden":"true"},/*#__PURE__*/
|
|
50
48
|
_react.default.createElement(_icon.default,{name:"close",size:"md"})
|
|
51
49
|
),
|
|
52
50
|
|
|
53
|
-
|
|
51
|
+
c
|
|
54
52
|
),/*#__PURE__*/
|
|
55
53
|
_react.default.createElement("style",null,"\n .modal {\n position: fixed;\n top: 50%;\n left: 50%;\n right: auto;\n bottom: auto;\n transform: translate(-50%, -50%);\n width: ".concat(
|
|
56
54
|
|
|
@@ -62,11 +60,11 @@ _react.default.createElement("style",null,"\n .modal {\n pos
|
|
|
62
60
|
|
|
63
61
|
|
|
64
62
|
h,";\n height: ").concat(
|
|
65
|
-
|
|
63
|
+
j?"100%":"auto",";\n }\n @media(max-width: 767px){\n .modal {\n width: ").concat(
|
|
66
64
|
|
|
67
65
|
|
|
68
66
|
|
|
69
|
-
|
|
67
|
+
i,";\n }\n }\n .overlay {\n background: ").concat(
|
|
70
68
|
|
|
71
69
|
|
|
72
70
|
|
|
@@ -92,16 +90,6 @@ _theme.default.overlayColor,";\n position: relative;\n dis
|
|
|
92
90
|
)
|
|
93
91
|
))
|
|
94
92
|
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
JupiterModal.defaultProps={
|
|
98
|
-
onRequestClose:()=>{},
|
|
99
|
-
onAfterOpen:()=>{},
|
|
100
|
-
hasCloseButton:!0,
|
|
101
|
-
disabledClose:!1,
|
|
102
|
-
modalWidth:"80%",
|
|
103
|
-
modalWidthMobile:"100%",
|
|
104
|
-
fullHeight:!1
|
|
105
|
-
};var _default=exports.default=
|
|
93
|
+
}var _default=exports.default=
|
|
106
94
|
|
|
107
95
|
JupiterModal;
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
const NumericSummeryReport=(a)=>{
|
|
15
|
-
const{data:b,textColor:c}=a;
|
|
16
|
-
return/*#__PURE__*/(
|
|
14
|
+
const NumericSummeryReport=(a)=>{let{data:b,textColor:c="gray"}=a;return/*#__PURE__*/(
|
|
17
15
|
_react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
|
|
18
16
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
19
17
|
_react.default.createElement(_index.ListContainer,{"data-test":"numeric-summery-report"},
|
|
@@ -24,12 +22,7 @@ _react.default.createElement(_typography.Text,{size:"16",bold:!0},(0,_numbers.to
|
|
|
24
22
|
)
|
|
25
23
|
)
|
|
26
24
|
)
|
|
27
|
-
))
|
|
25
|
+
))};var _default=exports.default=
|
|
28
26
|
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
NumericSummeryReport.defaultProps={
|
|
32
|
-
textColor:"gray"
|
|
33
|
-
};var _default=exports.default=
|
|
34
27
|
|
|
35
28
|
NumericSummeryReport;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
function MenuItem(a){let{label:b,handleClick:c,color:d}=a;
|
|
9
|
+
function MenuItem(a){let{label:b,handleClick:c=()=>{},color:d="default"}=a;
|
|
10
10
|
return/*#__PURE__*/(
|
|
11
11
|
_react.default.createElement(_typography.Text,{
|
|
12
12
|
size:14,
|
|
@@ -18,10 +18,6 @@ color:d},
|
|
|
18
18
|
b
|
|
19
19
|
))
|
|
20
20
|
|
|
21
|
-
}
|
|
21
|
+
}var _default=exports.default=
|
|
22
22
|
|
|
23
|
-
MenuItem.defaultProps={
|
|
24
|
-
handleClick:()=>{},
|
|
25
|
-
color:"default"
|
|
26
|
-
};var _default=exports.default=
|
|
27
23
|
MenuItem;
|
package/product-owner/index.js
CHANGED
|
@@ -18,19 +18,16 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
const ProductOwner=(a)=>{
|
|
22
|
-
const{
|
|
21
|
+
const ProductOwner=(a)=>{let{
|
|
23
22
|
name:b,
|
|
24
23
|
avatar:c,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
renderTitledAvatarLink:f,
|
|
28
|
-
renderDescriptionLink:g,
|
|
29
|
-
onClickFollowMe:h,
|
|
30
|
-
onClickConnectUs:i
|
|
31
|
-
}=a;
|
|
32
|
-
|
|
33
|
-
return/*#__PURE__*/(
|
|
24
|
+
isLoading:d,
|
|
25
|
+
isFollowed:e=!1,
|
|
26
|
+
renderTitledAvatarLink:f=null,
|
|
27
|
+
renderDescriptionLink:g=null,
|
|
28
|
+
onClickFollowMe:h=()=>!1,
|
|
29
|
+
onClickConnectUs:i=()=>{}
|
|
30
|
+
}=a;return/*#__PURE__*/(
|
|
34
31
|
_react.default.createElement("div",{"data-test":"product-owner"},/*#__PURE__*/
|
|
35
32
|
_react.default.createElement(_responsive.default,{option:{lessThan:_themes.default.breakpoints.sm}},/*#__PURE__*/
|
|
36
33
|
_react.default.createElement(_titledAvatar.default,{
|
|
@@ -54,14 +51,14 @@ _react.default.createElement(_responsive.default,{option:{greaterThan:_themes.de
|
|
|
54
51
|
_react.default.createElement(_index.ButtonContainer,null,/*#__PURE__*/
|
|
55
52
|
_react.default.createElement(_index.StyledButton,{
|
|
56
53
|
className:"follow-button",
|
|
57
|
-
styleType:
|
|
54
|
+
styleType:e?"secondary":"primary",
|
|
58
55
|
htmlType:"button",
|
|
59
56
|
mainColor:"blue",
|
|
60
57
|
size:_themes.default.sizes.small,
|
|
61
|
-
isLoading:
|
|
58
|
+
isLoading:d,
|
|
62
59
|
onClick:h},
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
e?"\u062F\u0646\u0628\u0627\u0644 \u0645\u06CC\u06A9\u0646\u06CC\u062F":"\u062F\u0646\u0628\u0627\u0644 \u06A9\u0646\u06CC\u062F"
|
|
65
62
|
),/*#__PURE__*/
|
|
66
63
|
_react.default.createElement(_index.StyledButton,{
|
|
67
64
|
styleType:"secondary",
|
|
@@ -82,16 +79,7 @@ renderLink:g},
|
|
|
82
79
|
)
|
|
83
80
|
)
|
|
84
81
|
)
|
|
85
|
-
))
|
|
82
|
+
))};var _default=exports.default=
|
|
86
83
|
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
ProductOwner.defaultProps={
|
|
90
|
-
isFollowed:!1,
|
|
91
|
-
renderTitledAvatarLink:null,
|
|
92
|
-
renderDescriptionLink:null,
|
|
93
|
-
onClickFollowMe:()=>!1,
|
|
94
|
-
onClickConnectUs:()=>{}
|
|
95
|
-
};var _default=exports.default=
|
|
96
84
|
|
|
97
85
|
ProductOwner;
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
const ProductProperties=(a)=>{const
|
|
22
22
|
{
|
|
23
23
|
list:b,
|
|
24
|
-
isHorizontal:
|
|
25
|
-
color:
|
|
26
|
-
link:
|
|
27
|
-
...
|
|
24
|
+
isHorizontal:e=!1,
|
|
25
|
+
color:f="gray",
|
|
26
|
+
link:c,
|
|
27
|
+
...d
|
|
28
28
|
}=a,
|
|
29
|
-
g=1<b.length&&
|
|
29
|
+
g=1<b.length&&e?b.length:1;return(
|
|
30
30
|
|
|
31
31
|
1===b.length?/*#__PURE__*/
|
|
32
32
|
|
|
33
33
|
_react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
|
|
34
34
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
35
|
-
_react.default.createElement(_productProperty.default,_extends({iconName:b[0].iconName,text:b[0].text},
|
|
35
|
+
_react.default.createElement(_productProperty.default,_extends({iconName:b[0].iconName,text:b[0].text},d))
|
|
36
36
|
):/*#__PURE__*/
|
|
37
37
|
|
|
38
38
|
|
|
@@ -40,20 +40,15 @@ _react.default.createElement(_productProperty.default,_extends({iconName:b[0].ic
|
|
|
40
40
|
|
|
41
41
|
_react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
|
|
42
42
|
_react.default.createElement(_globalStyle.default,null),/*#__PURE__*/
|
|
43
|
-
_react.default.createElement(_index.ListContainer,_extends({isHorizontal:
|
|
44
|
-
b.map((a,b)=>{let{iconName:c,text:
|
|
43
|
+
_react.default.createElement(_index.ListContainer,_extends({isHorizontal:e},d),
|
|
44
|
+
b.map((a,b)=>{let{iconName:c,text:d,link:e}=a;return/*#__PURE__*/(
|
|
45
45
|
_react.default.createElement(_index.ListItem,{key:"".concat(c,"-").concat(b.toString()),propsLength:g},/*#__PURE__*/
|
|
46
|
-
_react.default.createElement(_productProperty.default,{iconName:c,text:
|
|
46
|
+
_react.default.createElement(_productProperty.default,{iconName:c,text:d,color:f,link:e})
|
|
47
47
|
))}
|
|
48
48
|
)
|
|
49
49
|
)
|
|
50
50
|
))
|
|
51
51
|
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
ProductProperties.defaultProps={
|
|
55
|
-
isHorizontal:!1,
|
|
56
|
-
color:"gray"
|
|
57
52
|
};var _default=exports.default=
|
|
58
53
|
|
|
59
54
|
ProductProperties;
|
package/show-date/index.js
CHANGED
|
@@ -4,15 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
const ShowDate=(a)=>{
|
|
8
|
-
const{date:b,fontSize:c,color:d}=a;
|
|
9
|
-
|
|
10
|
-
return/*#__PURE__*/(
|
|
7
|
+
const ShowDate=(a)=>{let{fontSize:c=12,color:d="default",date:b}=a;return/*#__PURE__*/(
|
|
11
8
|
_react.default.createElement(_typography.Text,{size:c,color:d,"data-test":"show-date"},
|
|
12
9
|
(0,_numbers.englishNumberToPersianInString)((0,_date.convertToJalaali)(b,"dddd jD jMMMM jYYYY \u0633\u0627\u0639\u062A HH:mm"))
|
|
13
|
-
))
|
|
10
|
+
))};
|
|
14
11
|
|
|
15
|
-
};
|
|
16
12
|
|
|
17
13
|
ShowDate.propTypes={
|
|
18
14
|
date:_propTypes.default.oneOfType([
|
|
@@ -24,12 +20,6 @@ _propTypes.default.string,
|
|
|
24
20
|
_propTypes.default.number]
|
|
25
21
|
),
|
|
26
22
|
color:_propTypes.default.oneOf(["default","red","green","blue","yellow","white","darkBlue","gray"])
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
ShowDate.defaultProps={
|
|
30
|
-
fontSize:12,
|
|
31
|
-
color:"default"
|
|
32
23
|
};var _default=exports.default=
|
|
33
24
|
|
|
34
|
-
|
|
35
25
|
ShowDate;
|
package/tabs/tabs.js
CHANGED
|
@@ -11,10 +11,13 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
function Tabs(a)
|
|
14
|
+
function Tabs(a)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
{
|
|
19
|
+
|
|
20
|
+
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
|
|
@@ -32,7 +35,7 @@ b="BUTTON"===a.target.tagName?a.target.attributes["data-access"].value:a.target.
|
|
|
32
35
|
b!==g&&
|
|
33
36
|
h(b)
|
|
34
37
|
|
|
35
|
-
}
|
|
38
|
+
}let{defaultTab:d="",onChange:e=()=>{},children:c}=a;const f=_react.default.Children.toArray(c),[g,h]=(0,_react.useState)(d||f[0].props.tabKey),i=f.find((a)=>a.props.tabKey===g);
|
|
36
39
|
|
|
37
40
|
return(0,_react.useEffect)(()=>{e(g)},[g,e]),/*#__PURE__*/
|
|
38
41
|
_react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
|
|
@@ -63,11 +66,6 @@ _react.default.cloneElement(i)
|
|
|
63
66
|
)
|
|
64
67
|
)
|
|
65
68
|
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
Tabs.defaultProps={
|
|
69
|
-
defaultTab:"",
|
|
70
|
-
onChange:()=>{}
|
|
71
|
-
};var _default=exports.default=
|
|
69
|
+
}var _default=exports.default=
|
|
72
70
|
|
|
73
71
|
Tabs;
|
package/titled-avatar/index.js
CHANGED
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
const TitledAvatar=(a)=>
|
|
19
|
-
{
|
|
20
|
-
title:b,avatar:c,renderAvatarLink:d,avatarSize:e,titleSize:f
|
|
21
|
-
}=a,
|
|
18
|
+
const TitledAvatar=(a)=>
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
{let{title:b,avatar:c,renderAvatarLink:d=void 0,avatarSize:e="md",titleSize:f=12}=a;
|
|
25
|
+
const g=()=>
|
|
24
26
|
10===f?/*#__PURE__*/
|
|
25
27
|
_react.default.createElement(_index.SmallTitle,{size:10},b):/*#__PURE__*/
|
|
26
28
|
|
|
@@ -44,12 +46,6 @@ _react.default.createElement(_avatar.default,{src:c,size:e}),
|
|
|
44
46
|
g()
|
|
45
47
|
))
|
|
46
48
|
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
TitledAvatar.defaultProps={
|
|
50
|
-
renderAvatarLink:void 0,
|
|
51
|
-
avatarSize:"md",
|
|
52
|
-
titleSize:12
|
|
53
49
|
};var _default=exports.default=
|
|
54
50
|
|
|
55
51
|
TitledAvatar;
|