@onereach/styles 6.0.0 → 6.0.1-beta.3604.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "6.0.0",
|
|
3
|
+
"version": "6.0.1-beta.3604.0",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./main.css",
|
|
@@ -56,6 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
|
-
}
|
|
60
|
-
"gitHead": "a01bbb3d3dc850ca76979323afd39c6c5c7ef834"
|
|
59
|
+
}
|
|
61
60
|
}
|
|
@@ -167,7 +167,7 @@ module.exports = {
|
|
|
167
167
|
return {
|
|
168
168
|
backgroundColor: theme(`backgroundColor.${token}` + suffix, token),
|
|
169
169
|
|
|
170
|
-
[variants['disabled']]: {
|
|
170
|
+
[variants['disabled']]: ['white', 'black', 'disabled'].includes(token) ? undefined : {
|
|
171
171
|
backgroundColor: `${theme('backgroundColor.disabled' + suffix)} !important`,
|
|
172
172
|
},
|
|
173
173
|
};
|
|
@@ -63,7 +63,7 @@ module.exports = {
|
|
|
63
63
|
const [token, suffix = ''] = value.split('..');
|
|
64
64
|
|
|
65
65
|
return {
|
|
66
|
-
borderWidth:
|
|
66
|
+
borderWidth: '1px',
|
|
67
67
|
borderStyle: 'solid',
|
|
68
68
|
borderColor: theme(`borderColor.${token}` + suffix, token),
|
|
69
69
|
|
|
@@ -79,7 +79,23 @@ module.exports = {
|
|
|
79
79
|
const [token, suffix = ''] = value.split('..');
|
|
80
80
|
|
|
81
81
|
return {
|
|
82
|
-
borderWidth:
|
|
82
|
+
borderWidth: '2px',
|
|
83
|
+
borderStyle: 'solid',
|
|
84
|
+
borderColor: theme(`borderColor.${token}` + suffix, token),
|
|
85
|
+
|
|
86
|
+
[variants['disabled']]: {
|
|
87
|
+
borderColor: `${theme('borderColor.disabled' + suffix)} !important`,
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
}, { values });
|
|
92
|
+
|
|
93
|
+
matchUtilities({
|
|
94
|
+
'theme-border-4': (value) => {
|
|
95
|
+
const [token, suffix = ''] = value.split('..');
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
borderWidth: '4px',
|
|
83
99
|
borderStyle: 'solid',
|
|
84
100
|
borderColor: theme(`borderColor.${token}` + suffix, token),
|
|
85
101
|
|
|
@@ -137,7 +137,7 @@ module.exports = {
|
|
|
137
137
|
return {
|
|
138
138
|
color: theme(`textColor.${token}` + suffix, token),
|
|
139
139
|
|
|
140
|
-
[variants['disabled']]: {
|
|
140
|
+
[variants['disabled']]: ['white', 'black', 'on-disabled'].includes(token) ? undefined : {
|
|
141
141
|
color: `${theme('textColor.on-disabled' + suffix)} !important`,
|
|
142
142
|
},
|
|
143
143
|
};
|
|
@@ -66,5 +66,22 @@ module.exports = {
|
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
68
|
}, { values });
|
|
69
|
+
|
|
70
|
+
matchUtilities({
|
|
71
|
+
'theme-outline-10': (value) => {
|
|
72
|
+
const [token, suffix = ''] = value.split('..');
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
// In Safari outline doesn't follow current border-radius
|
|
76
|
+
// It seems like this is already fixed in Safari Technology Preview (Release 157)
|
|
77
|
+
// Stay tuned for Safari updates
|
|
78
|
+
boxShadow: `0 0 0 10px ${theme(`outlineColor.${token}-opacity-0-16` + suffix, token)}`,
|
|
79
|
+
// outlineOffset: '0',
|
|
80
|
+
// outlineWidth: theme('outlineWidth.2'),
|
|
81
|
+
// outlineStyle: 'solid',
|
|
82
|
+
// outlineColor: theme(`outlineColor.${token}-opacity-0-16` + suffix, token),
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
}, { values });
|
|
69
86
|
}),
|
|
70
87
|
};
|