@smart-react-components/ui 2.0.0-alpha-119 → 2.0.0-alpha-120
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.
|
@@ -36,7 +36,7 @@ const Svg = styled_components_1.default.svg.attrs({
|
|
|
36
36
|
|
|
37
37
|
> path {
|
|
38
38
|
fill: transparent;
|
|
39
|
-
stroke: ${theme.$.color.
|
|
39
|
+
stroke: ${theme.$.color.white};
|
|
40
40
|
stroke-width: 4px;
|
|
41
41
|
stroke-dasharray: 36px;
|
|
42
42
|
stroke-dashoffset: 36px;
|
|
@@ -46,7 +46,7 @@ const Svg = styled_components_1.default.svg.attrs({
|
|
|
46
46
|
const IndeterminateMark = styled_components_1.default.div.attrs({
|
|
47
47
|
className: 'src-checkbox-indeterminate-mark',
|
|
48
48
|
})(({ theme }) => `
|
|
49
|
-
background: ${theme.$.color.
|
|
49
|
+
background: ${theme.$.color.white};
|
|
50
50
|
height: 2px;
|
|
51
51
|
margin-top: -1px;
|
|
52
52
|
opacity: 0;
|
|
@@ -74,7 +74,8 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ child
|
|
|
74
74
|
|
|
75
75
|
.src-checkbox-container {
|
|
76
76
|
border-radius: ${theme.$.radius.checkbox[shape]};
|
|
77
|
-
|
|
77
|
+
transition: border-color 200ms 0s ease-in-out;
|
|
78
|
+
|
|
78
79
|
${!isOutline
|
|
79
80
|
? `
|
|
80
81
|
background: ${theme.$.color.dynamic.accent};
|
|
@@ -88,22 +89,26 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ child
|
|
|
88
89
|
|
|
89
90
|
${isChecked
|
|
90
91
|
? `
|
|
91
|
-
.src-checkbox-
|
|
92
|
-
|
|
93
|
-
}
|
|
92
|
+
.src-checkbox-container {
|
|
93
|
+
border-color: ${!isSoft ? theme.$.palette[palette].main : theme.$.palette[palette].soft};
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
.src-checkbox-rectangle {
|
|
96
|
+
background: ${!isSoft ? theme.$.palette[palette].main : theme.$.palette[palette].soft};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
${!isIndeterminate
|
|
96
100
|
? `
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
.src-checkbox-svg > path {
|
|
102
|
+
stroke-dashoffset: 0;
|
|
103
|
+
}
|
|
104
|
+
`
|
|
101
105
|
: `
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
.src-checkbox-indeterminate-mark {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: scaleX(1);
|
|
109
|
+
}
|
|
110
|
+
`}
|
|
111
|
+
}
|
|
107
112
|
`
|
|
108
113
|
: ''}
|
|
109
114
|
`);
|
|
@@ -36,7 +36,7 @@ exports.default = (0, styled_components_1.default)(Label_1.default).attrs(({ isB
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
> span {
|
|
39
|
-
color: ${theme.$.color.dynamic.
|
|
39
|
+
color: ${theme.$.color.dynamic.bodyFont};
|
|
40
40
|
display: inline-flex;
|
|
41
41
|
flex: 1 1 auto;
|
|
42
42
|
font-family: ${theme.$.fontFamily.form};
|
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-120",
|
|
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-45",
|
|
68
|
+
"@smart-react-components/router": "2.0.0-alpha-42",
|
|
69
|
+
"@smart-react-components/transition": "2.0.0-alpha-39",
|
|
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-45",
|
|
87
|
+
"@smart-react-components/router": "^2.0.0-alpha-42",
|
|
88
|
+
"@smart-react-components/transition": "^2.0.0-alpha-39",
|
|
89
89
|
"react": "^18.2.0",
|
|
90
90
|
"react-dom": "^18.2.0",
|
|
91
91
|
"styled-components": "^5.3.5"
|