react-jupiter 6.0.0-beta.1 → 6.0.0-beta.2
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/components/button/index.styles.js +15 -15
- package/dist/components/display/index.style.js +5 -5
- package/dist/components/form/dropdown/index.style.js +2 -2
- package/dist/components/form-v7/dropdown/index.style.js +3 -3
- package/dist/components/grid/index.js +1 -1
- package/dist/components/product-menu/index.style.js +1 -1
- package/dist/components/typography/heading/index.styles.js +15 -15
- package/dist/components/typography/text/index.styles.js +17 -17
- package/package.json +134 -12
- package/package.lib.json +33 -5
|
@@ -25,37 +25,37 @@ const BaseButton = exports.BaseButton = _styledComponents.default.button`
|
|
|
25
25
|
|
|
26
26
|
&[data-styletype="primary"] {
|
|
27
27
|
border: none;
|
|
28
|
-
background: ${(
|
|
28
|
+
background: ${(_ref0) => {let { theme, mainColor } = _ref0;return (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
31
31
|
transition: all 0.25s;
|
|
32
|
-
background: ${(
|
|
32
|
+
background: ${(_ref1) => {let { theme, mainColor, disabled } = _ref1;return !disabled ? (0, _theme.getHoverColorFromName)(theme, mainColor) : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
33
33
|
}
|
|
34
34
|
&:active {
|
|
35
35
|
transition: all 0.25s;
|
|
36
|
-
background: ${(
|
|
36
|
+
background: ${(_ref10) => {let { theme, mainColor, disabled } = _ref10;return !disabled ? (0, _theme.getFocusColorFromName)(theme, mainColor) : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&[data-styletype="secondary"] {
|
|
41
|
-
border: 1px solid ${(
|
|
41
|
+
border: 1px solid ${(_ref11) => {let { theme, mainColor } = _ref11;return (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
42
42
|
background: transparent;
|
|
43
43
|
|
|
44
44
|
&:hover {
|
|
45
|
-
border-color: ${(
|
|
45
|
+
border-color: ${(_ref12) => {let { theme, disabled, mainColor } = _ref12;return !disabled ? 'transparent' : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
46
46
|
transition: all 0.25s;
|
|
47
|
-
background: ${(
|
|
47
|
+
background: ${(_ref13) => {let { theme, mainColor, disabled } = _ref13;return !disabled ? (0, _theme.getColorFromName)(theme, mainColor) : 'transparent';}};
|
|
48
48
|
* {
|
|
49
49
|
transition: all 0.25s;
|
|
50
|
-
color: ${(
|
|
50
|
+
color: ${(_ref14) => {let { theme, mainColor, disabled } = _ref14;return !disabled ? theme.colors.white : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
&:active {
|
|
54
|
-
border-color: ${(
|
|
55
|
-
background: ${(
|
|
54
|
+
border-color: ${(_ref15) => {let { theme, disabled, mainColor } = _ref15;return !disabled ? 'transparent' : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
55
|
+
background: ${(_ref16) => {let { theme, mainColor, disabled } = _ref16;return !disabled ? (0, _theme.getFocusColorFromName)(theme, mainColor) : 'transparent';}};
|
|
56
56
|
* {
|
|
57
57
|
transition: all 0.25s;
|
|
58
|
-
color: ${(
|
|
58
|
+
color: ${(_ref17) => {let { theme, mainColor, disabled } = _ref17;return !disabled ? theme.colors.white : (0, _theme.getColorFromName)(theme, mainColor);}};
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -67,13 +67,13 @@ const BaseButton = exports.BaseButton = _styledComponents.default.button`
|
|
|
67
67
|
&:hover {
|
|
68
68
|
* {
|
|
69
69
|
transition: all 0.25s;
|
|
70
|
-
color: ${(
|
|
70
|
+
color: ${(_ref18) => {let { theme } = _ref18;return theme.colors.darkBlue400;}};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
&:active {
|
|
74
74
|
* {
|
|
75
75
|
transition: all 0.25s;
|
|
76
|
-
color: ${(
|
|
76
|
+
color: ${(_ref19) => {let { theme } = _ref19;return theme.colors.darkBlue800;}};
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -85,20 +85,20 @@ const StyledIcon = exports.StyledIcon = (0, _styledComponents.default)(_icon.def
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
const ExternalLink = exports.ExternalLink = _styledComponents.default.a`
|
|
88
|
-
color: ${(
|
|
88
|
+
color: ${(_ref20) => {let { theme, color } = _ref20;return (0, _theme.getColorFromName)(theme, color);}};
|
|
89
89
|
text-decoration: none;
|
|
90
90
|
&:hover {
|
|
91
91
|
text-decoration: none;
|
|
92
92
|
}
|
|
93
93
|
&:visited {
|
|
94
|
-
color: ${(
|
|
94
|
+
color: ${(_ref21) => {let { theme, color } = _ref21;return (0, _theme.getColorFromName)(theme, color);}};
|
|
95
95
|
text-decoration: none;
|
|
96
96
|
}
|
|
97
97
|
`;
|
|
98
98
|
|
|
99
99
|
const InternalLink = exports.InternalLink = _styledComponents.default.div`
|
|
100
100
|
a {
|
|
101
|
-
color: ${(
|
|
101
|
+
color: ${(_ref22) => {let { theme, color } = _ref22;return (0, _theme.getColorFromName)(theme, color);}};
|
|
102
102
|
text-decoration: none;
|
|
103
103
|
}
|
|
104
104
|
`;
|
|
@@ -54,26 +54,26 @@ const DisplayStyle = exports.DisplayStyle = _styledComponents.default.div`
|
|
|
54
54
|
}` :
|
|
55
55
|
'';}}
|
|
56
56
|
${
|
|
57
|
-
(
|
|
57
|
+
(_ref0) => {let { flexDirection } = _ref0;return flexDirection ?
|
|
58
58
|
`flex-direction: ${flexDirection};` :
|
|
59
59
|
'';}}
|
|
60
60
|
|
|
61
61
|
${
|
|
62
|
-
(
|
|
62
|
+
(_ref1) => {let { flexDirectionMobile } = _ref1;return flexDirectionMobile ?
|
|
63
63
|
`@media only screen and (max-width: ${_themes.default.breakpoints.sm}px) {
|
|
64
64
|
flex-direction: ${flexDirectionMobile};
|
|
65
65
|
}` :
|
|
66
66
|
'';}}
|
|
67
67
|
${
|
|
68
|
-
(
|
|
68
|
+
(_ref10) => {let { wrap } = _ref10;return wrap ?
|
|
69
69
|
'flex-wrap: wrap;' :
|
|
70
70
|
'';}}
|
|
71
71
|
${
|
|
72
|
-
(
|
|
72
|
+
(_ref11) => {let { flex } = _ref11;return flex ?
|
|
73
73
|
`flex: ${flex};` :
|
|
74
74
|
'';}}
|
|
75
75
|
${
|
|
76
|
-
(
|
|
76
|
+
(_ref12) => {let { alignSelf } = _ref12;return alignSelf ?
|
|
77
77
|
`align-self: ${alignSelf};` :
|
|
78
78
|
'';}}
|
|
79
79
|
`;
|
|
@@ -48,10 +48,10 @@ const StyledSelect = exports.StyledSelect = _styledComponents.default.select`
|
|
|
48
48
|
cursor: ${(_ref9) => {let { disabled } = _ref9;return disabled ? 'not-allowed' : 'pointer';}};
|
|
49
49
|
|
|
50
50
|
&:hover {
|
|
51
|
-
border-color: ${(
|
|
51
|
+
border-color: ${(_ref0) => {let { disabled, theme } = _ref0;return disabled ? 'transparent' : theme.borderColor.hover;}};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&:focus {
|
|
55
|
-
border-color: ${(
|
|
55
|
+
border-color: ${(_ref1) => {let { theme } = _ref1;return theme.borderColor.focus;}};
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
@@ -45,13 +45,13 @@ const StyledSelect = exports.StyledSelect = _styledComponents.default.select`
|
|
|
45
45
|
background: ${(_ref7) => {let { disabled, theme } = _ref7;return disabled ? theme.disabled.background : 'white';}};
|
|
46
46
|
${(_ref8) => {let { disabled, theme } = _ref8;return disabled ? `color: ${theme.disabled.color};` : '';}}
|
|
47
47
|
${(_ref9) => {let { disabled, theme } = _ref9;return disabled ? `color: ${theme.disabled.color};` : '';}}
|
|
48
|
-
cursor: ${(
|
|
48
|
+
cursor: ${(_ref0) => {let { disabled } = _ref0;return disabled ? 'not-allowed' : 'pointer';}};
|
|
49
49
|
|
|
50
50
|
&:hover {
|
|
51
|
-
border-color: ${(
|
|
51
|
+
border-color: ${(_ref1) => {let { disabled, theme } = _ref1;return disabled ? 'transparent' : theme.borderColor.hover;}};
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&:focus {
|
|
55
|
-
border-color: ${(
|
|
55
|
+
border-color: ${(_ref10) => {let { theme } = _ref10;return theme.borderColor.focus;}};
|
|
56
56
|
}
|
|
57
57
|
`;
|
|
@@ -72,7 +72,7 @@ const GridUnit = _styledComponents.default.div`
|
|
|
72
72
|
${(_ref9) => {let { visible, theme } = _ref9;return getResponsiveVisibility(visible, theme);}}
|
|
73
73
|
`;
|
|
74
74
|
|
|
75
|
-
const Grid = (
|
|
75
|
+
const Grid = (_ref0) => {let { children, ...props } = _ref0;return (/*#__PURE__*/
|
|
76
76
|
_react.default.createElement(GridContainer, props,
|
|
77
77
|
children
|
|
78
78
|
));};
|
|
@@ -34,5 +34,5 @@ const ExtraMenuWrapper = exports.ExtraMenuWrapper = _styledComponents.default.ol
|
|
|
34
34
|
`;
|
|
35
35
|
|
|
36
36
|
const Nav = exports.Nav = _styledComponents.default.nav`
|
|
37
|
-
border-bottom: 1px solid ${(
|
|
37
|
+
border-bottom: 1px solid ${(_ref0) => {let { theme } = _ref0;return theme.borderColor;}};
|
|
38
38
|
`;
|
|
@@ -27,43 +27,43 @@ const H2 = exports.H2 = _styledComponents.default.h2`
|
|
|
27
27
|
const H3 = exports.H3 = _styledComponents.default.h3`
|
|
28
28
|
font-family: 'IranSharp';
|
|
29
29
|
margin: ${(_ref9) => {let { theme, size } = _ref9;return (0, _utils.getMarginOfHeading)(theme, size, 3);}}
|
|
30
|
-
font-size: ${(
|
|
31
|
-
line-height: ${(
|
|
30
|
+
font-size: ${(_ref0) => {let { theme, size } = _ref0;return `${(0, _utils.getSizeOfHeading)(theme, size, 3)}px;`;}}
|
|
31
|
+
line-height: ${(_ref1) => {let { theme, size } = _ref1;return `
|
|
32
32
|
${(0, _utils.getSizeOfHeading)(theme, size, 3) * theme.lineHeightRatio}px;
|
|
33
33
|
`;}}
|
|
34
|
-
color: ${(
|
|
34
|
+
color: ${(_ref10) => {let { theme, color } = _ref10;return (0, _theme.getColorFromName)(theme, color);}};
|
|
35
35
|
font-weight: bold;
|
|
36
36
|
`;
|
|
37
37
|
|
|
38
38
|
const H4 = exports.H4 = _styledComponents.default.h4`
|
|
39
39
|
font-family: 'IranSharp';
|
|
40
|
-
margin: ${(
|
|
41
|
-
font-size: ${(
|
|
42
|
-
line-height: ${(
|
|
40
|
+
margin: ${(_ref11) => {let { theme, size } = _ref11;return (0, _utils.getMarginOfHeading)(theme, size, 4);}}
|
|
41
|
+
font-size: ${(_ref12) => {let { theme, size } = _ref12;return `${(0, _utils.getSizeOfHeading)(theme, size, 4)}px;`;}}
|
|
42
|
+
line-height: ${(_ref13) => {let { theme, size } = _ref13;return `
|
|
43
43
|
${(0, _utils.getSizeOfHeading)(theme, size, 4) * theme.lineHeightRatio}px;
|
|
44
44
|
`;}}
|
|
45
|
-
color: ${(
|
|
45
|
+
color: ${(_ref14) => {let { theme, color } = _ref14;return (0, _theme.getColorFromName)(theme, color);}};
|
|
46
46
|
font-weight: bold;
|
|
47
47
|
`;
|
|
48
48
|
|
|
49
49
|
const H5 = exports.H5 = _styledComponents.default.h5`
|
|
50
50
|
font-family: 'IranSharp';
|
|
51
|
-
margin: ${(
|
|
52
|
-
font-size: ${(
|
|
53
|
-
line-height: ${(
|
|
51
|
+
margin: ${(_ref15) => {let { theme, size } = _ref15;return (0, _utils.getMarginOfHeading)(theme, size, 5);}}
|
|
52
|
+
font-size: ${(_ref16) => {let { theme, size } = _ref16;return `${(0, _utils.getSizeOfHeading)(theme, size, 5)}px;`;}}
|
|
53
|
+
line-height: ${(_ref17) => {let { theme, size } = _ref17;return `
|
|
54
54
|
${(0, _utils.getSizeOfHeading)(theme, size, 5) * theme.lineHeightRatio}px;
|
|
55
55
|
`;}}
|
|
56
|
-
color: ${(
|
|
56
|
+
color: ${(_ref18) => {let { theme, color } = _ref18;return (0, _theme.getColorFromName)(theme, color);}};
|
|
57
57
|
font-weight: bold;
|
|
58
58
|
`;
|
|
59
59
|
|
|
60
60
|
const H6 = exports.H6 = _styledComponents.default.h6`
|
|
61
61
|
font-family: 'IranSharp';
|
|
62
|
-
margin: ${(
|
|
63
|
-
font-size: ${(
|
|
64
|
-
line-height: ${(
|
|
62
|
+
margin: ${(_ref19) => {let { theme, size } = _ref19;return (0, _utils.getMarginOfHeading)(theme, size, 6);}}
|
|
63
|
+
font-size: ${(_ref20) => {let { theme, size } = _ref20;return `${(0, _utils.getSizeOfHeading)(theme, size, 6)}px;`;}}
|
|
64
|
+
line-height: ${(_ref21) => {let { theme, size } = _ref21;return `
|
|
65
65
|
${(0, _utils.getSizeOfHeading)(theme, size, 6) * theme.lineHeightRatio}px;
|
|
66
66
|
`;}}
|
|
67
|
-
color: ${(
|
|
67
|
+
color: ${(_ref22) => {let { theme, color } = _ref22;return (0, _theme.getColorFromName)(theme, color);}};
|
|
68
68
|
font-weight: bold;
|
|
69
69
|
`;
|
|
@@ -20,11 +20,11 @@ const Strong = exports.Strong = _styledComponents.default.strong`
|
|
|
20
20
|
font-size: ${(_ref8) => {let { size } = _ref8;return `${size}px`;}};
|
|
21
21
|
font-weight: bold;
|
|
22
22
|
${(_ref9) => {let { underline } = _ref9;return underline ? 'text-decoration: underline;' : '';}}
|
|
23
|
-
${(
|
|
24
|
-
${(
|
|
25
|
-
color: ${(
|
|
26
|
-
${(
|
|
27
|
-
${(
|
|
23
|
+
${(_ref0) => {let { lineThrough } = _ref0;return lineThrough ? 'text-decoration: line-through;' : '';}}
|
|
24
|
+
${(_ref1) => {let { emphasized } = _ref1;return emphasized ? 'font-style: italic;' : '';}}
|
|
25
|
+
color: ${(_ref10) => {let { theme, color } = _ref10;return (0, _theme.getColorFromName)(theme, color);}};
|
|
26
|
+
${(_ref11) => {let { theme, marked } = _ref11;return marked ? `background-color: ${theme.colors.blue200};` : '';}}
|
|
27
|
+
${(_ref12) => {let { theme, isLabel } = _ref12;return isLabel ?
|
|
28
28
|
`background-color: ${theme.colors.gray400}; padding: 2px 8px; border-radius: 2px;` :
|
|
29
29
|
'';}}
|
|
30
30
|
`;
|
|
@@ -32,18 +32,18 @@ const Strong = exports.Strong = _styledComponents.default.strong`
|
|
|
32
32
|
|
|
33
33
|
const String = exports.String = _styledComponents.default.span`
|
|
34
34
|
font-family: 'IranSharp';
|
|
35
|
-
font-size: ${(
|
|
36
|
-
${(
|
|
37
|
-
${(
|
|
38
|
-
color: ${(
|
|
39
|
-
font-weight: ${(
|
|
40
|
-
${(
|
|
41
|
-
${(
|
|
35
|
+
font-size: ${(_ref13) => {let { spanSize } = _ref13;return `${spanSize}px`;}};
|
|
36
|
+
${(_ref14) => {let { underline } = _ref14;return underline ? 'text-decoration: underline;' : '';}}
|
|
37
|
+
${(_ref15) => {let { lineThrough } = _ref15;return lineThrough ? 'text-decoration: line-through;' : '';}}
|
|
38
|
+
color: ${(_ref16) => {let { theme, spanColor } = _ref16;return (0, _theme.getColorFromName)(theme, spanColor);}};
|
|
39
|
+
font-weight: ${(_ref17) => {let { bold, fontWeight } = _ref17;return bold ? 'bold' : fontWeight;}};
|
|
40
|
+
${(_ref18) => {let { theme, marked } = _ref18;return marked ? `background-color: ${theme.colors.blue200};` : '';}}
|
|
41
|
+
${(_ref19) => {let { theme, isLabel } = _ref19;return isLabel ?
|
|
42
42
|
`background-color: ${theme.colors.gray400}; padding: 2px 8px; border-radius: 2px;` :
|
|
43
43
|
'';}}
|
|
44
44
|
${
|
|
45
|
-
(
|
|
46
|
-
${(
|
|
45
|
+
(_ref20) => {let { isDisplayBlock } = _ref20;return isDisplayBlock ? 'display: block;' : '';}}
|
|
46
|
+
${(_ref21) => {let { isCutWithEllipsis } = _ref21;
|
|
47
47
|
if (isCutWithEllipsis) {
|
|
48
48
|
return `
|
|
49
49
|
white-space: nowrap;
|
|
@@ -54,7 +54,7 @@ const String = exports.String = _styledComponents.default.span`
|
|
|
54
54
|
}
|
|
55
55
|
return '';
|
|
56
56
|
}}
|
|
57
|
-
${(
|
|
57
|
+
${(_ref22) => {let { textAlign } = _ref22;return textAlign ?
|
|
58
58
|
`text-align: ${textAlign}` :
|
|
59
59
|
'';}}
|
|
60
60
|
`;
|
|
@@ -63,11 +63,11 @@ const String = exports.String = _styledComponents.default.span`
|
|
|
63
63
|
const SubScript = exports.SubScript = _styledComponents.default.sub`
|
|
64
64
|
font-family: 'IranSharp';
|
|
65
65
|
font-size: 8px;
|
|
66
|
-
color: ${(
|
|
66
|
+
color: ${(_ref23) => {let { theme, color } = _ref23;return (0, _theme.getColorFromName)(theme, color);}};
|
|
67
67
|
`;
|
|
68
68
|
|
|
69
69
|
const SupScript = exports.SupScript = _styledComponents.default.sup`
|
|
70
70
|
font-family: 'IranSharp';
|
|
71
71
|
font-size: 8px;
|
|
72
|
-
color: ${(
|
|
72
|
+
color: ${(_ref24) => {let { theme, color } = _ref24;return (0, _theme.getColorFromName)(theme, color);}};
|
|
73
73
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-jupiter",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
4
|
-
"main": "index.js",
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"evand",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"styled-component"
|
|
12
12
|
],
|
|
13
13
|
"contributors": [
|
|
14
|
-
"@mehranshiri",
|
|
15
14
|
"@arashmanteghi",
|
|
16
|
-
"https://github.com/marzzy"
|
|
15
|
+
"https://github.com/marzzy",
|
|
16
|
+
"@mehranshiri"
|
|
17
17
|
],
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
@@ -25,23 +25,145 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/evandhq/react-jupiter/issues"
|
|
27
27
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
},
|
|
30
28
|
"dependencies": {
|
|
29
|
+
"@heroicons/react": "^2.2.0",
|
|
30
|
+
"@mdx-js/react": "^2.1.5",
|
|
31
|
+
"babel-plugin-macros": "^2.8.0",
|
|
32
|
+
"babel-preset-react-app": "^9.1.2",
|
|
33
|
+
"marked": "^15.0.7",
|
|
31
34
|
"moment-jalaali": "^0.9.4",
|
|
32
35
|
"prop-types": "^15.8.0",
|
|
33
|
-
"react": "18.
|
|
34
|
-
"react-dom": "18.
|
|
36
|
+
"react": "^18.3.1",
|
|
37
|
+
"react-dom": "^18.3.1",
|
|
35
38
|
"react-hook-form": "^7.38.0",
|
|
36
39
|
"react-lazy-load-image-component": "^1.5.1",
|
|
37
40
|
"react-modal": "3.16.1",
|
|
38
41
|
"react-responsive": "^8.2.0",
|
|
39
42
|
"react-router-dom": "^5.3.0",
|
|
43
|
+
"react-scripts": "^5.0.1",
|
|
40
44
|
"styled-components": "^5.3.11",
|
|
41
|
-
"styled-media-query": "^2.1.2"
|
|
45
|
+
"styled-media-query": "^2.1.2",
|
|
46
|
+
"tailwind-merge": "^3.2.0",
|
|
47
|
+
"webpack-dev-middleware": "^7.4.2"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"start": "react-scripts start",
|
|
51
|
+
"build": "react-scripts build",
|
|
52
|
+
"test": "react-scripts test",
|
|
53
|
+
"eject": "react-scripts eject",
|
|
54
|
+
"build:lib": "babel src --out-dir dist --copy-files",
|
|
55
|
+
"storybook": "storybook dev -p 6006",
|
|
56
|
+
"build-storybook": "storybook build",
|
|
57
|
+
"lint": "./node_modules/.bin/eslint ./src",
|
|
58
|
+
"lint:fix": "./node_modules/.bin/eslint ./src --fix",
|
|
59
|
+
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
60
|
+
},
|
|
61
|
+
"husky": {
|
|
62
|
+
"hooks": {}
|
|
63
|
+
},
|
|
64
|
+
"browserslist": {
|
|
65
|
+
"production": [
|
|
66
|
+
">0.2%",
|
|
67
|
+
"not dead",
|
|
68
|
+
"not op_mini all"
|
|
69
|
+
],
|
|
70
|
+
"development": [
|
|
71
|
+
"last 1 chrome version",
|
|
72
|
+
"last 1 firefox version",
|
|
73
|
+
"last 1 safari version"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/cli": "^7.16.7",
|
|
78
|
+
"@babel/core": "^7.16.7",
|
|
79
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
80
|
+
"@babel/preset-flow": "^7.16.7",
|
|
81
|
+
"@storybook/addon-actions": "^8.6.4",
|
|
82
|
+
"@storybook/addon-essentials": "^8.6.4",
|
|
83
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
84
|
+
"@storybook/addon-links": "^8.6.4",
|
|
85
|
+
"@storybook/builder-webpack5": "^8.6.4",
|
|
86
|
+
"@storybook/cli": "^8.6.4",
|
|
87
|
+
"@storybook/preset-create-react-app": "^8.6.4",
|
|
88
|
+
"@storybook/react": "^8.6.4",
|
|
89
|
+
"@storybook/react-webpack5": "^8.6.4",
|
|
90
|
+
"@storybook/test": "^8.6.12",
|
|
91
|
+
"@storybook/testing-library": "^0.2.2",
|
|
92
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
93
|
+
"@testing-library/react": "^16.0.0",
|
|
94
|
+
"@testing-library/user-event": "^14.5.2",
|
|
95
|
+
"auto-changelog": "^1.16.4",
|
|
96
|
+
"autoprefixer": "^10.4.21",
|
|
97
|
+
"babel-core": "^7.0.0-bridge.0",
|
|
98
|
+
"babel-jest": "^29.7.0",
|
|
99
|
+
"babel-minify": "^0.5.1",
|
|
100
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
101
|
+
"babel-preset-env": "^1.7.0",
|
|
102
|
+
"babel-preset-minify": "^0.5.1",
|
|
103
|
+
"babel-preset-react": "^6.24.1",
|
|
104
|
+
"css-loader": "^7.1.2",
|
|
105
|
+
"del-cli": "^2.0.0",
|
|
106
|
+
"eslint": "^8.57.0",
|
|
107
|
+
"eslint-config-react-app": "^7.0.1",
|
|
108
|
+
"eslint-plugin-import": "^2.31.0",
|
|
109
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
110
|
+
"eslint-plugin-react": "^7.37.4",
|
|
111
|
+
"file-loader": "^6.2.0",
|
|
112
|
+
"flow-bin": "^0.117.0",
|
|
113
|
+
"husky": "^3.1.0",
|
|
114
|
+
"identity-obj-proxy": "^3.0.0",
|
|
115
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
116
|
+
"jest-styled-components": "^7.2.0",
|
|
117
|
+
"postcss": "^8.5.3",
|
|
118
|
+
"postcss-import": "^16.1.0",
|
|
119
|
+
"react-app-rewired": "^2.2.1",
|
|
120
|
+
"react-is": "^19.0.0",
|
|
121
|
+
"react-refresh": "^0.16.0",
|
|
122
|
+
"react-test-renderer": "^18.3.1",
|
|
123
|
+
"sass": "^1.85.1",
|
|
124
|
+
"style-loader": "^4.0.0",
|
|
125
|
+
"tailwindcss": "^3.4.17",
|
|
126
|
+
"typescript": "^4.9.5",
|
|
127
|
+
"webpack": "^5.98.0"
|
|
128
|
+
},
|
|
129
|
+
"eslintConfig": {
|
|
130
|
+
"overrides": [
|
|
131
|
+
{
|
|
132
|
+
"files": [
|
|
133
|
+
"**/*.stories.*"
|
|
134
|
+
],
|
|
135
|
+
"rules": {
|
|
136
|
+
"import/no-anonymous-default-export": "off",
|
|
137
|
+
"no-trailing-spaces": "off",
|
|
138
|
+
"comma-dangle": [
|
|
139
|
+
"error",
|
|
140
|
+
"always-multiline"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
42
145
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
146
|
+
"jest": {
|
|
147
|
+
"setupFilesAfterEnv": [
|
|
148
|
+
"<rootDir>/src/setupTests.js"
|
|
149
|
+
],
|
|
150
|
+
"testEnvironment": "jsdom",
|
|
151
|
+
"moduleNameMapper": {
|
|
152
|
+
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
|
153
|
+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js"
|
|
154
|
+
},
|
|
155
|
+
"transform": {
|
|
156
|
+
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
|
|
157
|
+
},
|
|
158
|
+
"moduleFileExtensions": [
|
|
159
|
+
"js",
|
|
160
|
+
"jsx",
|
|
161
|
+
"json",
|
|
162
|
+
"node"
|
|
163
|
+
],
|
|
164
|
+
"testPathIgnorePatterns": [
|
|
165
|
+
"/node_modules/"
|
|
166
|
+
]
|
|
46
167
|
}
|
|
47
168
|
}
|
|
169
|
+
|
package/package.lib.json
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-jupiter",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
4
|
-
"main": "index.js",
|
|
3
|
+
"version": "6.0.0-beta.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./dist/index.js",
|
|
7
|
+
"./typography": "./dist/components/typography/index.js",
|
|
8
|
+
"./button": "./dist/components/button/index.js",
|
|
9
|
+
"./grid": "./dist/components/grid/index.js",
|
|
10
|
+
"./spacing": "./dist/components/spacing/index.js",
|
|
11
|
+
"./utils": "./dist/components/utils/index.js",
|
|
12
|
+
"./show-date": "./dist/components/show-date/index.js",
|
|
13
|
+
"./avatar": "./dist/components/avatar/index.js",
|
|
14
|
+
"./icon": "./dist/components/icon/index.js",
|
|
15
|
+
"./titled-avatar": "./dist/components/titled-avatar/index.js",
|
|
16
|
+
"./numeric-summery-report": "./dist/components/numeric-summery-report/index.js",
|
|
17
|
+
"./card": "./dist/components/card/index.js",
|
|
18
|
+
"./product-properties": "./dist/components/product-properties/index.js",
|
|
19
|
+
"./cover": "./dist/components/cover/index.js",
|
|
20
|
+
"./form": "./dist/components/form/index.js",
|
|
21
|
+
"./form-v7": "./dist/components/form-v7/index.js",
|
|
22
|
+
"./responsive": "./dist/components/responsive/index.js",
|
|
23
|
+
"./product-owner": "./dist/components/product-owner/index.js",
|
|
24
|
+
"./file-item": "./dist/components/file-item/index.js",
|
|
25
|
+
"./modal": "./dist/components/modal/index.js",
|
|
26
|
+
"./product-menu": "./dist/components/product-menu/index.js",
|
|
27
|
+
"./table": "./dist/components/table/index.js",
|
|
28
|
+
"./tabs": "./dist/components/tabs/index.js",
|
|
29
|
+
"./display": "./dist/components/display/index.js"
|
|
30
|
+
},
|
|
5
31
|
"license": "MIT",
|
|
6
32
|
"keywords": [
|
|
7
33
|
"evand",
|
|
@@ -28,17 +54,19 @@
|
|
|
28
54
|
"scripts": {
|
|
29
55
|
},
|
|
30
56
|
"dependencies": {
|
|
57
|
+
"@heroicons/react": "^2.2.0",
|
|
31
58
|
"moment-jalaali": "^0.9.4",
|
|
32
59
|
"prop-types": "^15.8.0",
|
|
33
|
-
"react": "18.
|
|
34
|
-
"react-dom": "18.
|
|
60
|
+
"react": "^18.3.1",
|
|
61
|
+
"react-dom": "^18.3.1",
|
|
35
62
|
"react-hook-form": "^7.38.0",
|
|
36
63
|
"react-lazy-load-image-component": "^1.5.1",
|
|
37
64
|
"react-modal": "3.16.1",
|
|
38
65
|
"react-responsive": "^8.2.0",
|
|
39
66
|
"react-router-dom": "^5.3.0",
|
|
40
67
|
"styled-components": "^5.3.11",
|
|
41
|
-
"styled-media-query": "^2.1.2"
|
|
68
|
+
"styled-media-query": "^2.1.2",
|
|
69
|
+
"tailwind-merge": "^3.2.0"
|
|
42
70
|
},
|
|
43
71
|
"peerDependencies": {
|
|
44
72
|
"react": ">=16.8.0",
|