tailwind-styled-v4 5.0.36 → 5.0.37
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/analyzer.d.mts +152 -5
- package/dist/analyzer.d.ts +152 -5
- package/dist/animate.d.mts +30 -3
- package/dist/animate.d.ts +30 -3
- package/dist/compiler.d.mts +5 -0
- package/dist/compiler.d.ts +5 -0
- package/dist/compiler.js.map +1 -1
- package/dist/compiler.mjs.map +1 -1
- package/dist/devtools.d.mts +88 -2
- package/dist/devtools.d.ts +88 -2
- package/dist/engine.d.mts +557 -6
- package/dist/engine.d.ts +557 -6
- package/dist/engine.js.map +1 -1
- package/dist/engine.mjs.map +1 -1
- package/dist/index.d.mts +236 -9
- package/dist/index.d.ts +236 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/next.js.map +1 -1
- package/dist/next.mjs.map +1 -1
- package/dist/plugin-api.d.mts +4 -2
- package/dist/plugin-api.d.ts +4 -2
- package/dist/plugin-registry.js +39 -25
- package/dist/plugin-registry.js.map +1 -1
- package/dist/plugin-registry.mjs +39 -25
- package/dist/plugin-registry.mjs.map +1 -1
- package/dist/plugin.d.mts +165 -5
- package/dist/plugin.d.ts +165 -5
- package/dist/plugin.js +17 -0
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +15 -1
- package/dist/plugin.mjs.map +1 -1
- package/dist/runtime.d.mts +38 -3
- package/dist/runtime.d.ts +38 -3
- package/dist/scanner.d.mts +58 -4
- package/dist/scanner.d.ts +58 -4
- package/dist/shared.d.mts +185 -3
- package/dist/shared.d.ts +185 -3
- package/dist/shared.js.map +1 -1
- package/dist/shared.mjs.map +1 -1
- package/dist/storybook-addon.d.mts +2 -2
- package/dist/storybook-addon.d.ts +2 -2
- package/dist/svelte.d.mts +2 -1
- package/dist/svelte.d.ts +2 -1
- package/dist/theme.d.mts +38 -3
- package/dist/theme.d.ts +38 -3
- package/dist/turbopackLoader.js.map +1 -1
- package/dist/turbopackLoader.mjs.map +1 -1
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs.map +1 -1
- package/dist/vue.d.mts +4 -1
- package/dist/vue.d.ts +4 -1
- package/native/tailwind-styled-native.linux-x64-gnu.node +0 -0
- package/native/tailwind-styled-native.node +0 -0
- package/package.json +1 -1
- package/dist/analyzeWorkspace-B1_XRfdl.d.ts +0 -134
- package/dist/analyzeWorkspace-hYfu4Hg3.d.mts +0 -134
- package/dist/index-DQI6O24n.d.mts +0 -464
- package/dist/index-NDINUhLN.d.mts +0 -90
- package/dist/index-NDINUhLN.d.ts +0 -90
- package/dist/index-UkYbyBkR.d.ts +0 -464
- package/dist/liveTokenEngine-CN9ian1R.d.ts +0 -38
- package/dist/liveTokenEngine-DKoWRtqH.d.mts +0 -38
- package/dist/schemas-DR-SLxZZ.d.mts +0 -59
- package/dist/schemas-DR-SLxZZ.d.ts +0 -59
- package/dist/trace-Dz4vmZdy.d.mts +0 -96
- package/dist/trace-Dz4vmZdy.d.ts +0 -96
- package/dist/types-DXr2PmGP.d.mts +0 -31
- package/dist/types-DXr2PmGP.d.ts +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type VariantMatrix = Record<string, Array<string | number | boolean>>;
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* tailwind-styled-v4 — Storybook Addon
|
|
@@ -48,4 +48,4 @@ declare function createVariantStoryArgs(config: ComponentConfig): {
|
|
|
48
48
|
};
|
|
49
49
|
declare function getVariantClass(config: ComponentConfig, props: Record<string, string>): string;
|
|
50
50
|
|
|
51
|
-
export { type ComponentConfig, VariantMatrix, createVariantStoryArgs, enumerateVariantProps, generateArgTypes, generateDefaultArgs, getVariantClass, withTailwindStyled };
|
|
51
|
+
export { type ComponentConfig, type VariantMatrix, createVariantStoryArgs, enumerateVariantProps, generateArgTypes, generateDefaultArgs, getVariantClass, withTailwindStyled };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type VariantMatrix = Record<string, Array<string | number | boolean>>;
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* tailwind-styled-v4 — Storybook Addon
|
|
@@ -48,4 +48,4 @@ declare function createVariantStoryArgs(config: ComponentConfig): {
|
|
|
48
48
|
};
|
|
49
49
|
declare function getVariantClass(config: ComponentConfig, props: Record<string, string>): string;
|
|
50
50
|
|
|
51
|
-
export { type ComponentConfig, VariantMatrix, createVariantStoryArgs, enumerateVariantProps, generateArgTypes, generateDefaultArgs, getVariantClass, withTailwindStyled };
|
|
51
|
+
export { type ComponentConfig, type VariantMatrix, createVariantStoryArgs, enumerateVariantProps, generateArgTypes, generateDefaultArgs, getVariantClass, withTailwindStyled };
|
package/dist/svelte.d.mts
CHANGED
package/dist/svelte.d.ts
CHANGED
package/dist/theme.d.mts
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
export { L as LiveTokenEngineBridge, a as LiveTokenSet, T as TokenSubscriber, b as applyTokenSet, c as createUseTokens, g as generateTokenCssString, d as getToken, e as getTokens, l as liveToken, f as liveTokenEngine, s as setToken, h as setTokens, i as subscribeTokens, t as tokenRef, j as tokenVar } from './liveTokenEngine-DKoWRtqH.mjs';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
type TokenMap = Record<string, string>;
|
|
4
|
+
|
|
5
|
+
type TokenSubscriber = (tokens: TokenMap) => void;
|
|
6
|
+
interface LiveTokenSet {
|
|
7
|
+
vars: Record<string, string>;
|
|
8
|
+
get(name: string): string | undefined;
|
|
9
|
+
set(name: string, value: string): void;
|
|
10
|
+
setAll(tokens: TokenMap): void;
|
|
11
|
+
snapshot(): TokenMap;
|
|
12
|
+
}
|
|
13
|
+
interface LiveTokenEngineBridge {
|
|
14
|
+
getToken(name: string): string | undefined;
|
|
15
|
+
getTokens(): TokenMap;
|
|
16
|
+
setToken(name: string, value: string): void;
|
|
17
|
+
setTokens(tokens: TokenMap): void;
|
|
18
|
+
applyTokenSet(tokens: TokenMap): void;
|
|
19
|
+
subscribeTokens(fn: TokenSubscriber): () => void;
|
|
20
|
+
subscribe?(fn: TokenSubscriber): () => void;
|
|
21
|
+
}
|
|
22
|
+
declare function tokenVar(name: string): string;
|
|
23
|
+
declare function tokenRef(name: string): string;
|
|
24
|
+
declare function liveToken(tokens: TokenMap): LiveTokenSet;
|
|
25
|
+
declare function setToken(name: string, value: string): void;
|
|
26
|
+
declare function setTokens(tokens: TokenMap): void;
|
|
27
|
+
declare function applyTokenSet(tokens: TokenMap): void;
|
|
28
|
+
declare function getToken(name: string): string | undefined;
|
|
29
|
+
declare function getTokens(): TokenMap;
|
|
30
|
+
declare function subscribeTokens(fn: TokenSubscriber): () => void;
|
|
31
|
+
declare function generateTokenCssString(): string;
|
|
32
|
+
declare function createUseTokens(): () => TokenMap;
|
|
33
|
+
declare const liveTokenEngine: LiveTokenEngineBridge;
|
|
34
|
+
declare global {
|
|
35
|
+
interface Window {
|
|
36
|
+
__TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
4
39
|
|
|
5
40
|
declare const TokenConfigSchema: z.ZodObject<{
|
|
6
41
|
name: z.ZodString;
|
|
@@ -214,4 +249,4 @@ interface DesignTokens {
|
|
|
214
249
|
*/
|
|
215
250
|
declare function compileDesignTokens(tokens: DesignTokens, prefix?: string): string;
|
|
216
251
|
|
|
217
|
-
export { type DesignTokens, type LiveTokenUpdateInput, LiveTokenUpdateSchema, type MultiThemeConfig, type Theme, type ThemeContract, type ThemeRegistrationInput, ThemeRegistrationSchema, ThemeRegistry, type ThemeTokenMap, type ThemeVars, type TokenConfigInput, TokenConfigSchema, compileDesignTokens, createMultiTheme, createTheme, defineThemeContract, parseLiveTokenUpdate, parseTokenConfig };
|
|
252
|
+
export { type DesignTokens, type LiveTokenEngineBridge, type LiveTokenSet, type LiveTokenUpdateInput, LiveTokenUpdateSchema, type MultiThemeConfig, type Theme, type ThemeContract, type ThemeRegistrationInput, ThemeRegistrationSchema, ThemeRegistry, type ThemeTokenMap, type ThemeVars, type TokenConfigInput, TokenConfigSchema, type TokenMap, type TokenSubscriber, applyTokenSet, compileDesignTokens, createMultiTheme, createTheme, createUseTokens, defineThemeContract, generateTokenCssString, getToken, getTokens, liveToken, liveTokenEngine, parseLiveTokenUpdate, parseTokenConfig, setToken, setTokens, subscribeTokens, tokenRef, tokenVar };
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
export { L as LiveTokenEngineBridge, a as LiveTokenSet, T as TokenSubscriber, b as applyTokenSet, c as createUseTokens, g as generateTokenCssString, d as getToken, e as getTokens, l as liveToken, f as liveTokenEngine, s as setToken, h as setTokens, i as subscribeTokens, t as tokenRef, j as tokenVar } from './liveTokenEngine-CN9ian1R.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
type TokenMap = Record<string, string>;
|
|
4
|
+
|
|
5
|
+
type TokenSubscriber = (tokens: TokenMap) => void;
|
|
6
|
+
interface LiveTokenSet {
|
|
7
|
+
vars: Record<string, string>;
|
|
8
|
+
get(name: string): string | undefined;
|
|
9
|
+
set(name: string, value: string): void;
|
|
10
|
+
setAll(tokens: TokenMap): void;
|
|
11
|
+
snapshot(): TokenMap;
|
|
12
|
+
}
|
|
13
|
+
interface LiveTokenEngineBridge {
|
|
14
|
+
getToken(name: string): string | undefined;
|
|
15
|
+
getTokens(): TokenMap;
|
|
16
|
+
setToken(name: string, value: string): void;
|
|
17
|
+
setTokens(tokens: TokenMap): void;
|
|
18
|
+
applyTokenSet(tokens: TokenMap): void;
|
|
19
|
+
subscribeTokens(fn: TokenSubscriber): () => void;
|
|
20
|
+
subscribe?(fn: TokenSubscriber): () => void;
|
|
21
|
+
}
|
|
22
|
+
declare function tokenVar(name: string): string;
|
|
23
|
+
declare function tokenRef(name: string): string;
|
|
24
|
+
declare function liveToken(tokens: TokenMap): LiveTokenSet;
|
|
25
|
+
declare function setToken(name: string, value: string): void;
|
|
26
|
+
declare function setTokens(tokens: TokenMap): void;
|
|
27
|
+
declare function applyTokenSet(tokens: TokenMap): void;
|
|
28
|
+
declare function getToken(name: string): string | undefined;
|
|
29
|
+
declare function getTokens(): TokenMap;
|
|
30
|
+
declare function subscribeTokens(fn: TokenSubscriber): () => void;
|
|
31
|
+
declare function generateTokenCssString(): string;
|
|
32
|
+
declare function createUseTokens(): () => TokenMap;
|
|
33
|
+
declare const liveTokenEngine: LiveTokenEngineBridge;
|
|
34
|
+
declare global {
|
|
35
|
+
interface Window {
|
|
36
|
+
__TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
4
39
|
|
|
5
40
|
declare const TokenConfigSchema: z.ZodObject<{
|
|
6
41
|
name: z.ZodString;
|
|
@@ -214,4 +249,4 @@ interface DesignTokens {
|
|
|
214
249
|
*/
|
|
215
250
|
declare function compileDesignTokens(tokens: DesignTokens, prefix?: string): string;
|
|
216
251
|
|
|
217
|
-
export { type DesignTokens, type LiveTokenUpdateInput, LiveTokenUpdateSchema, type MultiThemeConfig, type Theme, type ThemeContract, type ThemeRegistrationInput, ThemeRegistrationSchema, ThemeRegistry, type ThemeTokenMap, type ThemeVars, type TokenConfigInput, TokenConfigSchema, compileDesignTokens, createMultiTheme, createTheme, defineThemeContract, parseLiveTokenUpdate, parseTokenConfig };
|
|
252
|
+
export { type DesignTokens, type LiveTokenEngineBridge, type LiveTokenSet, type LiveTokenUpdateInput, LiveTokenUpdateSchema, type MultiThemeConfig, type Theme, type ThemeContract, type ThemeRegistrationInput, ThemeRegistrationSchema, ThemeRegistry, type ThemeTokenMap, type ThemeVars, type TokenConfigInput, TokenConfigSchema, type TokenMap, type TokenSubscriber, applyTokenSet, compileDesignTokens, createMultiTheme, createTheme, createUseTokens, defineThemeContract, generateTokenCssString, getToken, getTokens, liveToken, liveTokenEngine, parseLiveTokenUpdate, parseTokenConfig, setToken, setTokens, subscribeTokens, tokenRef, tokenVar };
|