@zuzjs/ui 0.5.1 → 0.5.2
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/comps/tabview.d.ts +1 -1
- package/dist/funs/css.js +2 -2
- package/dist/funs/stylesheet.js +1 -0
- package/package.json +1 -1
package/dist/comps/tabview.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactNode } from "react";
|
|
|
2
2
|
import { BaseProps } from "../types/interfaces";
|
|
3
3
|
export interface Tab {
|
|
4
4
|
onSelect: (index: number) => void;
|
|
5
|
-
label: string;
|
|
5
|
+
label: string | ReactNode | ReactNode[];
|
|
6
6
|
body: string | ReactNode | ReactNode[];
|
|
7
7
|
render?: boolean;
|
|
8
8
|
}
|
package/dist/funs/css.js
CHANGED
|
@@ -55,7 +55,7 @@ class CSS {
|
|
|
55
55
|
"@before", "@after", "@active", "@checked", "@default", "@disabled", "@empty", "@enabled", "@first", "@firstChild", "@firstOfType", "@focus", "@hover", "@indeterminate", "@inRange", "@invalid", "@lastChild", "@lastOfType", "@link", "@not", "@nthChild", "@nthLastChild", "@nthLastOfType", "@nthOfType", "@onlyChild", "@onlyOfType", "@optional", "@outOfRange", "@readOnly", "@readWrite", "@required", "@root", "@scope", "@target", "@valid", "@visited"
|
|
56
56
|
];
|
|
57
57
|
this.IGNORE = [
|
|
58
|
-
`flex`, `opacity`, `z-index`, `zIndex`, `color`, `line-height`, `anim`, `scale`
|
|
58
|
+
`flex`, `opacity`, `z-index`, `zIndex`, `color`, `line-height`, `anim`, `scale`, `saturate`
|
|
59
59
|
];
|
|
60
60
|
this.keysWithoutCommaToSpace = [
|
|
61
61
|
`transform`, `translate`, `color`, `background`, `background-color`, `backgroundColor`,
|
|
@@ -546,7 +546,7 @@ class CSS {
|
|
|
546
546
|
_out = _out.replace(`;`, `${important};`);
|
|
547
547
|
}
|
|
548
548
|
else {
|
|
549
|
-
const __value = `${val}${key
|
|
549
|
+
const __value = `${val}${self.IGNORE.includes(key) ? `` : self.makeUnit(key, val)}`;
|
|
550
550
|
_out = self.DIRECT[key].includes(`__VALUE__`) ?
|
|
551
551
|
self.DIRECT[key].replace(/__VALUE__/g, __value).replace(`;`, `${important};`) : self.DIRECT[key];
|
|
552
552
|
}
|
package/dist/funs/stylesheet.js
CHANGED
|
@@ -292,6 +292,7 @@ export const cssDirect = {
|
|
|
292
292
|
"block": "display: block;",
|
|
293
293
|
"inlineblock": "display: inline-block;",
|
|
294
294
|
"blur": "filter: blur(__VALUE__);",
|
|
295
|
+
"saturate": "filter: saturate(__VALUE__);",
|
|
295
296
|
"ratio": "aspect-ratio: __VALUE__;",
|
|
296
297
|
"center-h": "left: 50%;transform: translateX(-50%);",
|
|
297
298
|
"center-v": "top: 50%;transform: translateY(-50%);",
|