@clds/component-theme
Advanced tools
Comparing version 0.49.3 to 0.49.4
@@ -1,2 +0,2 @@ | ||
import { MappedNode, Override } from './createTheme.types'; | ||
import { MappedNode, Override } from './createTheme.types.js'; | ||
import { Node, ThemeId } from '../types.js'; | ||
@@ -3,0 +3,0 @@ export declare const idField: unique symbol; |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { Leaf, MixinFunction, MixinProps, Node, ParentNode, ThemeWithOverrides } from '../types'; | ||
import { Leaf, MixinFunction, MixinProps, Node, ParentNode, ThemeWithOverrides } from '../types.js'; | ||
export interface Mixin<NodeType extends Node> { | ||
@@ -9,0 +9,0 @@ <PropsType, ThemeType extends ThemeWithOverrides>(props: MixinProps<PropsType, ThemeType>): ConvertLiteralToPrimitive<NodeType>; |
@@ -1,8 +0,8 @@ | ||
export * from './api/createTheme'; | ||
export * from './api/globalTheme'; | ||
export * from './api/combineValues'; | ||
export * from './api/createVariant'; | ||
export * from './api/useMixin'; | ||
export * from './api/getDefaultValue'; | ||
export type { Mixin } from './api/createTheme.types'; | ||
export type { MixinFunction, ThemeWithOverrides } from './types'; | ||
export * from './api/createTheme.js'; | ||
export * from './api/globalTheme.js'; | ||
export * from './api/combineValues.js'; | ||
export * from './api/createVariant.js'; | ||
export * from './api/useMixin.js'; | ||
export * from './api/getDefaultValue.js'; | ||
export type { Mixin } from './api/createTheme.types.js'; | ||
export type { MixinFunction, ThemeWithOverrides } from './types.js'; |
// istanbul ignore file | ||
export * from './api/createTheme'; | ||
export * from './api/globalTheme'; | ||
export * from './api/combineValues'; | ||
export * from './api/createVariant'; | ||
export * from './api/useMixin'; | ||
export * from './api/getDefaultValue'; | ||
export * from './api/createTheme.js'; | ||
export * from './api/globalTheme.js'; | ||
export * from './api/combineValues.js'; | ||
export * from './api/createVariant.js'; | ||
export * from './api/useMixin.js'; | ||
export * from './api/getDefaultValue.js'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@clds/component-theme", | ||
"description": "Define, override and use component theme", | ||
"version": "0.49.3", | ||
"version": "0.49.4", | ||
"author": "Cloudinary", | ||
@@ -12,4 +12,4 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@clds/theme-helper": "0.49.3", | ||
"@clds/themes": "0.49.3" | ||
"@clds/theme-helper": "0.49.4", | ||
"@clds/themes": "0.49.4" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -13,3 +13,3 @@ /** | ||
ThemeWithOverrides, | ||
} from '../types'; | ||
} from '../types.js'; | ||
@@ -30,12 +30,12 @@ export interface Mixin<NodeType extends Node> { | ||
: T extends number | ||
? number | ||
: T extends string | ||
? string | ||
: T extends boolean | ||
? boolean | ||
: T extends ParentNode | ||
? { | ||
[Key in keyof T]: ConvertLiteralToPrimitive<T[Key]>; | ||
} | ||
: T; | ||
? number | ||
: T extends string | ||
? string | ||
: T extends boolean | ||
? boolean | ||
: T extends ParentNode | ||
? { | ||
[Key in keyof T]: ConvertLiteralToPrimitive<T[Key]>; | ||
} | ||
: T; | ||
@@ -60,11 +60,11 @@ export interface NodeToMixinMapper { | ||
: NodeType extends ParentNode | ||
? { | ||
[Key in keyof NodeType]: MixinToReturnValue<NodeType[Key]>; | ||
} | ||
: NodeType | ||
: NodeType extends ParentNode | ||
? { | ||
[Key in keyof NodeType]: MixinToReturnValue<NodeType[Key]>; | ||
} | ||
: NodeType | ||
: NodeType extends ParentNode | ||
? { | ||
[Key in keyof NodeType]: MixinToReturnValue<NodeType[Key]>; | ||
} | ||
: NodeType; | ||
: NodeType; | ||
@@ -71,0 +71,0 @@ /** |
// istanbul ignore file | ||
export * from './api/createTheme'; | ||
export * from './api/globalTheme'; | ||
export * from './api/combineValues'; | ||
export * from './api/createVariant'; | ||
export * from './api/useMixin'; | ||
export * from './api/getDefaultValue'; | ||
export type { Mixin } from './api/createTheme.types'; | ||
export type { MixinFunction, ThemeWithOverrides } from './types'; | ||
export * from './api/createTheme.js'; | ||
export * from './api/globalTheme.js'; | ||
export * from './api/combineValues.js'; | ||
export * from './api/createVariant.js'; | ||
export * from './api/useMixin.js'; | ||
export * from './api/getDefaultValue.js'; | ||
export type { Mixin } from './api/createTheme.types.js'; | ||
export type { MixinFunction, ThemeWithOverrides } from './types.js'; |
@@ -7,3 +7,3 @@ /* eslint-disable @typescript-eslint/consistent-type-definitions, @typescript-eslint/no-explicit-any */ | ||
MixinToReturnValue, | ||
} from '../../src/api/createTheme.types'; | ||
} from '../../src/api/createTheme.types.js'; | ||
import { globalTheme } from '../../src/api/globalTheme.js'; | ||
@@ -10,0 +10,0 @@ import { MixinProps } from '../../src/types.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
123204
+ Added@clds/theme-helper@0.49.4(transitive)
+ Added@clds/themes@0.49.4(transitive)
- Removed@clds/theme-helper@0.49.3(transitive)
- Removed@clds/themes@0.49.3(transitive)
Updated@clds/theme-helper@0.49.4
Updated@clds/themes@0.49.4