Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clds/component-theme

Package Overview
Dependencies
Maintainers
0
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clds/component-theme - npm Package Compare versions

Comparing version 0.49.3 to 0.49.4

2

dist/api/createTheme.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc