react-jupiter 5.11.29 → 5.11.30

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/button/index.js CHANGED
@@ -79,7 +79,7 @@ color:r}
79
79
  _react.default.createElement(_typography.Text,{
80
80
  size:_theme.default.size[i].font,
81
81
  color:r,
82
- bold:!0},
82
+ fontWeight:600},
83
83
 
84
84
  n?"\u0635\u0628\u0631 \u06A9\u0646\u06CC\u062F...":c
85
85
  ):
package/button/theme.js CHANGED
@@ -10,19 +10,19 @@ height:56
10
10
  },
11
11
  md:{
12
12
  padding:"4px 32px",
13
- font:14,
13
+ font:16,
14
14
  minWidth:128,
15
15
  height:48
16
16
  },
17
17
  sm:{
18
18
  padding:"2px 16px",
19
- font:10,
19
+ font:13,
20
20
  minWidth:80,
21
21
  height:36
22
22
  },
23
23
  xs:{
24
24
  padding:"2px 8px",
25
- font:8,
25
+ font:10,
26
26
  minWidth:64,
27
27
  height:32
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "5.11.29",
3
+ "version": "5.11.30",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,17 +23,18 @@ const renderString=(a)=>
23
23
 
24
24
 
25
25
 
26
- {let{size:d=_theme.default.defaultSize,color:e="default",underline:f=!1,lineThrough:g=!1,strong:h=!1,bold:i=!1,emphasized:j=!1,subScript:k=!1,supScript:l=!1,marked:m=!1,label:n=!1,isDisplayBlock:o=!1,isCutWithEllipsis:p=!1,children:b,...c}=a;
26
+
27
+ {let{size:d=_theme.default.defaultSize,color:e="default",underline:f=!1,lineThrough:g=!1,strong:h=!1,bold:i=!1,fontWight:j=400,emphasized:k=!1,subScript:l=!1,supScript:m=!1,marked:n=!1,label:o=!1,isDisplayBlock:p=!1,isCutWithEllipsis:q=!1,children:b,...c}=a;
27
28
  if(void 0===b)return null;
28
29
 
29
- let q;
30
+ let r;
30
31
 
31
32
 
32
33
 
33
34
 
34
35
 
35
36
 
36
- switch(q=h?"strong":j?"emphasized":k?"subScript":l?"supScript":"span",q){
37
+ switch(r=h?"strong":k?"emphasized":l?"subScript":m?"supScript":"span",r){
37
38
  case"strong":
38
39
  return/*#__PURE__*/(
39
40
  _react.default.createElement(_index.Strong,_extends({
@@ -41,9 +42,9 @@ size:d,
41
42
  color:e,
42
43
  underline:f&&!g,
43
44
  lineThrough:g&&!f,
44
- emphasized:j,
45
- marked:m&&!n,
46
- isLabel:n&&!m,
45
+ emphasized:k,
46
+ marked:n&&!o,
47
+ isLabel:o&&!n,
47
48
  "data-test":"strong"},
48
49
  c),
49
50
 
@@ -58,8 +59,8 @@ color:e,
58
59
  underline:f&&!g,
59
60
  lineThrough:g&&!f,
60
61
  bold:i,
61
- marked:m&&!n,
62
- isLabel:n&&!m,
62
+ marked:n&&!o,
63
+ isLabel:o&&!n,
63
64
  "data-test":"emphasized"},
64
65
  c),
65
66
 
@@ -86,12 +87,13 @@ spanSize:d,
86
87
  spanColor:e,
87
88
  underline:f&&!g,
88
89
  lineThrough:g&&!f,
89
- marked:m&&!n,
90
- isLabel:n&&!m,
90
+ marked:n&&!o,
91
+ isLabel:o&&!n,
91
92
  bold:i,
93
+ fontWight:j,
92
94
  "data-test":"span",
93
- isDisplayBlock:o,
94
- isCutWithEllipsis:p},
95
+ isDisplayBlock:p,
96
+ isCutWithEllipsis:q},
95
97
  c),
96
98
 
97
99
  b
@@ -30,13 +30,13 @@ b.colors.gray400,"; padding: 2px 8px; border-radius: 2px;"):
30
30
 
31
31
 
32
32
 
33
- String=exports.String=_styledComponents.default.span(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-family: 'IranSharp';\n font-size: ",";\n ","\n ","\n color: ",";\n ","\n ","\n ","\n ","\n ","\n ","\n"])),
33
+ String=exports.String=_styledComponents.default.span(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-family: 'IranSharp';\n font-size: ",";\n ","\n ","\n color: ",";\n font-weight: ",";\n ","\n ","\n ","\n ","\n ","\n"])),
34
34
 
35
35
  (a)=>{let{spanSize:b}=a;return"".concat(b,"px")},
36
36
  (a)=>{let{underline:b}=a;return b?"text-decoration: underline;":""},
37
37
  (a)=>{let{lineThrough:b}=a;return b?"text-decoration: line-through;":""},
38
38
  (a)=>{let{theme:b,spanColor:c}=a;return(0,_theme.getColorFromName)(b,c)},
39
- (a)=>{let{bold:b}=a;return b?"font-weight: bold;":""},
39
+ (a)=>{let{bold:b,fontWeight:c}=a;return b?"bold":c},
40
40
  (a)=>{let{theme:b,marked:c}=a;return c?"background-color: ".concat(b.colors.blue200,";"):""},
41
41
  (a)=>{let{theme:b,isLabel:c}=a;return c?"background-color: ".concat(
42
42
  b.colors.gray400,"; padding: 2px 8px; border-radius: 2px;"):