@codeleap/styles 4.0.1 → 4.1.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/dist/lib/utils.js +6 -1
- package/package.json +1 -1
- package/src/lib/utils.ts +6 -1
package/dist/lib/utils.js
CHANGED
|
@@ -141,10 +141,15 @@ var mergeStyles = function (styles) {
|
|
|
141
141
|
return (0, deepmerge_1.default)({ all: true }).apply(void 0, __spreadArray([], __read(style), false));
|
|
142
142
|
};
|
|
143
143
|
exports.mergeStyles = mergeStyles;
|
|
144
|
+
// @note these words are reserved by css
|
|
144
145
|
exports.ignoredStyleKeys = [
|
|
145
146
|
'textAlign',
|
|
146
147
|
'textDecoration',
|
|
147
|
-
'textOverflow'
|
|
148
|
+
'textOverflow',
|
|
149
|
+
'left',
|
|
150
|
+
'top',
|
|
151
|
+
'right',
|
|
152
|
+
'bottom',
|
|
148
153
|
];
|
|
149
154
|
var concatStyles = function (styles) {
|
|
150
155
|
var e_6, _a;
|
package/package.json
CHANGED
package/src/lib/utils.ts
CHANGED
|
@@ -53,10 +53,15 @@ export const mergeStyles = (styles: Array<any>) => {
|
|
|
53
53
|
return deepmerge({ all: true })(...style)
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
// @note these words are reserved by css
|
|
56
57
|
export const ignoredStyleKeys = [
|
|
57
58
|
'textAlign',
|
|
58
59
|
'textDecoration',
|
|
59
|
-
'textOverflow'
|
|
60
|
+
'textOverflow',
|
|
61
|
+
'left',
|
|
62
|
+
'top',
|
|
63
|
+
'right',
|
|
64
|
+
'bottom',
|
|
60
65
|
]
|
|
61
66
|
|
|
62
67
|
export const concatStyles = <T extends string>(styles: Array<StyledProp<T>>): StyledProp<T> => {
|