@smart-react-components/ui 2.0.0-alpha-102 → 2.0.0-alpha-104
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/components/Alert/AlertElement.js +7 -1
- package/components/Badge/BadgeElement.js +6 -0
- package/components/Breadcrumb/BreadcrumbItemElement.js +22 -15
- package/components/Button/ButtonContent.js +0 -1
- package/components/Button/ButtonElement.js +6 -0
- package/components/Input/InputWrapper.js +2 -0
- package/package.json +7 -7
|
@@ -41,6 +41,12 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
|
|
|
41
41
|
word-break: break-word;
|
|
42
42
|
word-wrap: break-word;
|
|
43
43
|
|
|
44
|
+
${isSoft
|
|
45
|
+
? `
|
|
46
|
+
font-weight: ${theme.$.fontWeight.semibold};
|
|
47
|
+
`
|
|
48
|
+
: ''}
|
|
49
|
+
|
|
44
50
|
${!isOutline
|
|
45
51
|
? `
|
|
46
52
|
${!isSoft
|
|
@@ -85,7 +91,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
|
|
|
85
91
|
|
|
86
92
|
a {
|
|
87
93
|
color: inherit;
|
|
88
|
-
font-weight: ${theme.$.fontWeight.
|
|
94
|
+
font-weight: ${!isSoft ? theme.$.fontWeight.semibold : theme.$.fontWeight.bold};
|
|
89
95
|
|
|
90
96
|
&:hover {
|
|
91
97
|
text-decoration: underline;
|
|
@@ -69,6 +69,12 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
|
|
|
69
69
|
border-radius: ${(isFixedSize && shape === 'rounded') ? '100%' : theme.$.radius.badge[shape]};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
${isSoft
|
|
73
|
+
? `
|
|
74
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
75
|
+
`
|
|
76
|
+
: ''}
|
|
77
|
+
|
|
72
78
|
${!isOutline
|
|
73
79
|
? `
|
|
74
80
|
${exports.Content} {
|
|
@@ -18,22 +18,23 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
18
18
|
transition: 200ms 0s ease-in-out;
|
|
19
19
|
transition-property: background, border, color, fill;
|
|
20
20
|
|
|
21
|
-
${
|
|
21
|
+
${isSoft
|
|
22
|
+
? `
|
|
23
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
24
|
+
`
|
|
25
|
+
: ''}
|
|
26
|
+
|
|
27
|
+
${!isDisabled
|
|
22
28
|
? `
|
|
23
29
|
&:hover {
|
|
24
30
|
text-decoration: underline;
|
|
25
31
|
}
|
|
26
32
|
`
|
|
27
33
|
: `
|
|
34
|
+
opacity: ${theme.$.opacity.breadcrumbDisabled};
|
|
28
35
|
pointer-events: none;
|
|
29
36
|
`}
|
|
30
37
|
|
|
31
|
-
${isDisabled
|
|
32
|
-
? `
|
|
33
|
-
opacity: ${theme.$.opacity.breadcrumbDisabled};
|
|
34
|
-
`
|
|
35
|
-
: ''}
|
|
36
|
-
|
|
37
38
|
${!isOutline
|
|
38
39
|
? `
|
|
39
40
|
${!isSoft
|
|
@@ -51,12 +52,12 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
51
52
|
: `
|
|
52
53
|
${(!isActive && !isDisabled) || isDisabled
|
|
53
54
|
? `
|
|
54
|
-
color: ${theme.$.palette[palette].softFont};
|
|
55
|
-
fill: ${theme.$.palette[palette].softFont};
|
|
56
|
-
`
|
|
57
|
-
: `
|
|
58
55
|
color: ${theme.$.palette[palette].softDarkest};
|
|
59
56
|
fill: ${theme.$.palette[palette].softDarkest};
|
|
57
|
+
`
|
|
58
|
+
: `
|
|
59
|
+
color: ${theme.$.palette[palette].softFont};
|
|
60
|
+
fill: ${theme.$.palette[palette].softFont};
|
|
60
61
|
`}
|
|
61
62
|
`}
|
|
62
63
|
`
|
|
@@ -71,8 +72,8 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
71
72
|
fill: ${theme.$.palette[palette].main};
|
|
72
73
|
`
|
|
73
74
|
: `
|
|
74
|
-
color: ${theme.$.
|
|
75
|
-
fill: ${theme.$.
|
|
75
|
+
color: ${theme.$.color.dynamic.font};
|
|
76
|
+
fill: ${theme.$.color.dynamic.font};
|
|
76
77
|
`}
|
|
77
78
|
`
|
|
78
79
|
: `
|
|
@@ -82,8 +83,8 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
82
83
|
fill: ${theme.$.palette[palette].soft};
|
|
83
84
|
`
|
|
84
85
|
: `
|
|
85
|
-
color: ${theme.$.
|
|
86
|
-
fill: ${theme.$.
|
|
86
|
+
color: ${theme.$.color.dynamic.font};
|
|
87
|
+
fill: ${theme.$.color.dynamic.font};
|
|
87
88
|
`}
|
|
88
89
|
`}
|
|
89
90
|
`
|
|
@@ -106,5 +107,11 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
106
107
|
: `
|
|
107
108
|
color: ${theme.$.color.dynamic.accent};
|
|
108
109
|
`}
|
|
110
|
+
|
|
111
|
+
${isSoft
|
|
112
|
+
? `
|
|
113
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
114
|
+
`
|
|
115
|
+
: ''}
|
|
109
116
|
}
|
|
110
117
|
`);
|
|
@@ -43,12 +43,14 @@ exports.default = (0, styled_components_1.default)(Div_1.default)(({ theme, hasB
|
|
|
43
43
|
|
|
44
44
|
${(hasSeparatedLeftAddon)
|
|
45
45
|
? `
|
|
46
|
+
border-left: 0;
|
|
46
47
|
border-bottom-left-radius: 0;
|
|
47
48
|
border-top-left-radius: 0;
|
|
48
49
|
`
|
|
49
50
|
: ''}
|
|
50
51
|
${hasSeparatedRightAddon
|
|
51
52
|
? `
|
|
53
|
+
border-right: 0;
|
|
52
54
|
border-bottom-right-radius: 0;
|
|
53
55
|
border-top-right-radius: 0;
|
|
54
56
|
`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-react-components/ui",
|
|
3
|
-
"version": "2.0.0-alpha-
|
|
3
|
+
"version": "2.0.0-alpha-104",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"description": "SRC UI includes React and Styled components.",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"test": "jest"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@smart-react-components/core": "2.0.0-alpha-
|
|
68
|
-
"@smart-react-components/router": "2.0.0-alpha-
|
|
69
|
-
"@smart-react-components/transition": "2.0.0-alpha-
|
|
67
|
+
"@smart-react-components/core": "2.0.0-alpha-37",
|
|
68
|
+
"@smart-react-components/router": "2.0.0-alpha-34",
|
|
69
|
+
"@smart-react-components/transition": "2.0.0-alpha-31",
|
|
70
70
|
"@testing-library/react": "13.4.0",
|
|
71
71
|
"@types/jest": "29.0.1",
|
|
72
72
|
"@types/react": "18.0.19",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"typescript": "4.8.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@smart-react-components/core": "^2.0.0-alpha-
|
|
87
|
-
"@smart-react-components/router": "^2.0.0-alpha-
|
|
88
|
-
"@smart-react-components/transition": "^2.0.0-alpha-
|
|
86
|
+
"@smart-react-components/core": "^2.0.0-alpha-37",
|
|
87
|
+
"@smart-react-components/router": "^2.0.0-alpha-34",
|
|
88
|
+
"@smart-react-components/transition": "^2.0.0-alpha-31",
|
|
89
89
|
"react": "^18.2.0",
|
|
90
90
|
"react-dom": "^18.2.0",
|
|
91
91
|
"styled-components": "^5.3.5"
|