@salty-css/core 0.0.1-alpha.113 → 0.0.1-alpha.114
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 +1 -1
- package/types/index.d.ts +4 -4
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { StyleComponentGenerator } from '../generator';
|
3
|
-
import { OrAny, OrString } from './util-types';
|
3
|
+
import { NeverObj, OrAny, OrString } from './util-types';
|
4
4
|
import type * as CSS from 'csstype';
|
5
5
|
export type CreateElementProps = {
|
6
6
|
extend?: Tag<any>;
|
@@ -8,8 +8,8 @@ export type CreateElementProps = {
|
|
8
8
|
className?: string;
|
9
9
|
element?: string;
|
10
10
|
passVariantProps?: boolean | string | string[];
|
11
|
-
style?: CssProperties
|
12
|
-
[key: string]:
|
11
|
+
style?: CssProperties | {
|
12
|
+
[key: string]: PropertyValueToken | NeverObj;
|
13
13
|
};
|
14
14
|
/** vks = Variant key set */
|
15
15
|
_vks?: Set<string>;
|
@@ -22,7 +22,7 @@ type FnComponent<PROPS extends StyledComponentProps> = {
|
|
22
22
|
export type Tag<PROPS extends StyledComponentProps> = OrString | keyof HTMLElementTagNameMap | FnComponent<PROPS>;
|
23
23
|
type CSSPropertyValueFunction = (params?: any) => any;
|
24
24
|
type CssProperties = {
|
25
|
-
[key in keyof CSS.Properties]: CSS.Properties[key] | PropertyValueToken | CSSPropertyValueFunction;
|
25
|
+
[key in keyof CSS.Properties]: CSS.Properties[key] | PropertyValueToken | CSSPropertyValueFunction | NeverObj;
|
26
26
|
};
|
27
27
|
type CssPropertyKeys = keyof CssProperties;
|
28
28
|
export type StyleValue<K extends string> = K extends CssPropertyKeys ? CssProperties[K] : never;
|