tailwind-styled-v4 5.1.17 → 5.1.19

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/index.d.mts CHANGED
@@ -700,40 +700,6 @@ declare const v4Tokens: {
700
700
  readonly fontMono: string;
701
701
  };
702
702
 
703
- type TokenSubscriber = (tokens: TokenMap) => void;
704
- interface LiveTokenSet {
705
- vars: Record<string, string>;
706
- get(name: string): string | undefined;
707
- set(name: string, value: string): void;
708
- setAll(tokens: TokenMap): void;
709
- snapshot(): TokenMap;
710
- }
711
- interface LiveTokenEngineBridge {
712
- getToken(name: string): string | undefined;
713
- getTokens(): TokenMap;
714
- setToken(name: string, value: string): void;
715
- setTokens(tokens: TokenMap): void;
716
- applyTokenSet(tokens: TokenMap): void;
717
- subscribeTokens(fn: TokenSubscriber): () => void;
718
- subscribe?(fn: TokenSubscriber): () => void;
719
- }
720
- declare function tokenVar(name: string): string;
721
- declare function tokenRef(name: string): string;
722
- declare function liveToken(tokens: TokenMap): LiveTokenSet;
723
- declare function setToken(name: string, value: string): void;
724
- declare function setTokens(tokens: TokenMap): void;
725
- declare function applyTokenSet(tokens: TokenMap): void;
726
- declare function getToken(name: string): string | undefined;
727
- declare function getTokens(): TokenMap;
728
- declare function subscribeTokens(fn: TokenSubscriber): () => void;
729
- declare function generateTokenCssString(): string;
730
- declare function createUseTokens(): () => TokenMap;
731
- declare global {
732
- interface Window {
733
- __TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
734
- }
735
- }
736
-
737
703
  interface SubComponentProps {
738
704
  children?: React.ReactNode;
739
705
  className?: string;
@@ -773,4 +739,27 @@ interface ThemeConfig {
773
739
  raw: Record<string, string>;
774
740
  }
775
741
 
776
- export { type ComponentConfig, type ContainerConfig, type ContainerEntry, type CvFn, type HtmlTagName, type InferVariantProps, type LiveTokenSet, type MergeOptions, type ParsedClass, type ParsedClassModifier, type ResolvedThemeTokens, type StateComponentEntry, type StateConfig, type StyledComponentProps, type StyledOptions, type StyledProps, type StyledSystemConfig, type StyledSystemInstance, type SubComponentEntry, type SubComponentMap, type SubComponentProps, type SystemComponentConfig, type SystemComponentFactory, type SystemTokenMap, type ThemeConfig, type ThemeTokenMap, type TokenMap, type TokenSubscriber, type TwComponentFactory, type TwObject, type TwStyledComponent, type TwSubComponent, type TwTagFactory, type TwTagFactoryAny, type VariantLiterals, applyTokenSet, cn, tokenRef as containerRef, createComponent, createStyledSystem, createTheme, createTwMerge, createUseTokens, cssVar, cv, cx, cxm, generateContainerCss, generateStateCss, generateTokenCssString, getAllSubComponents, getContainerRegistry, getStateRegistry, getSubComponent, getToken, getTokens, liveToken, mergeWithRules, processContainer, processState, registerSubComponent, registerVariantTable, resolveStyledClassName, server, setToken, setTokens, styled, subscribeTokens, t, tokenRef, tokenVar, tw, twMerge, twVar, v4Tokens, withSubComponents };
742
+ type TokenSubscriber = (tokens: TokenMap) => void;
743
+ interface LiveTokenSet {
744
+ vars: Record<string, string>;
745
+ get(name: string): string | undefined;
746
+ set(name: string, value: string): void;
747
+ setAll(tokens: TokenMap): void;
748
+ snapshot(): TokenMap;
749
+ }
750
+ interface LiveTokenEngineBridge {
751
+ getToken(name: string): string | undefined;
752
+ getTokens(): TokenMap;
753
+ setToken(name: string, value: string): void;
754
+ setTokens(tokens: TokenMap): void;
755
+ applyTokenSet(tokens: TokenMap): void;
756
+ subscribeTokens(fn: TokenSubscriber): () => void;
757
+ subscribe?(fn: TokenSubscriber): () => void;
758
+ }
759
+ declare global {
760
+ interface Window {
761
+ __TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
762
+ }
763
+ }
764
+
765
+ export { type ComponentConfig, type ContainerConfig, type ContainerEntry, type CvFn, type HtmlTagName, type InferVariantProps, type LiveTokenSet, type MergeOptions, type ParsedClass, type ParsedClassModifier, type ResolvedThemeTokens, type StateComponentEntry, type StateConfig, type StyledComponentProps, type StyledOptions, type StyledProps, type StyledSystemConfig, type StyledSystemInstance, type SubComponentEntry, type SubComponentMap, type SubComponentProps, type SystemComponentConfig, type SystemComponentFactory, type SystemTokenMap, type ThemeConfig, type ThemeTokenMap, type TokenMap, type TokenSubscriber, type TwComponentFactory, type TwObject, type TwStyledComponent, type TwSubComponent, type TwTagFactory, type TwTagFactoryAny, type VariantLiterals, cn, createComponent, createStyledSystem, createTheme, createTwMerge, cssVar, cv, cx, cxm, generateContainerCss, generateStateCss, getAllSubComponents, getContainerRegistry, getStateRegistry, getSubComponent, mergeWithRules, processContainer, processState, registerSubComponent, registerVariantTable, resolveStyledClassName, server, styled, t, tw, twMerge, twVar, v4Tokens, withSubComponents };
package/dist/index.d.ts CHANGED
@@ -700,40 +700,6 @@ declare const v4Tokens: {
700
700
  readonly fontMono: string;
701
701
  };
702
702
 
703
- type TokenSubscriber = (tokens: TokenMap) => void;
704
- interface LiveTokenSet {
705
- vars: Record<string, string>;
706
- get(name: string): string | undefined;
707
- set(name: string, value: string): void;
708
- setAll(tokens: TokenMap): void;
709
- snapshot(): TokenMap;
710
- }
711
- interface LiveTokenEngineBridge {
712
- getToken(name: string): string | undefined;
713
- getTokens(): TokenMap;
714
- setToken(name: string, value: string): void;
715
- setTokens(tokens: TokenMap): void;
716
- applyTokenSet(tokens: TokenMap): void;
717
- subscribeTokens(fn: TokenSubscriber): () => void;
718
- subscribe?(fn: TokenSubscriber): () => void;
719
- }
720
- declare function tokenVar(name: string): string;
721
- declare function tokenRef(name: string): string;
722
- declare function liveToken(tokens: TokenMap): LiveTokenSet;
723
- declare function setToken(name: string, value: string): void;
724
- declare function setTokens(tokens: TokenMap): void;
725
- declare function applyTokenSet(tokens: TokenMap): void;
726
- declare function getToken(name: string): string | undefined;
727
- declare function getTokens(): TokenMap;
728
- declare function subscribeTokens(fn: TokenSubscriber): () => void;
729
- declare function generateTokenCssString(): string;
730
- declare function createUseTokens(): () => TokenMap;
731
- declare global {
732
- interface Window {
733
- __TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
734
- }
735
- }
736
-
737
703
  interface SubComponentProps {
738
704
  children?: React.ReactNode;
739
705
  className?: string;
@@ -773,4 +739,27 @@ interface ThemeConfig {
773
739
  raw: Record<string, string>;
774
740
  }
775
741
 
776
- export { type ComponentConfig, type ContainerConfig, type ContainerEntry, type CvFn, type HtmlTagName, type InferVariantProps, type LiveTokenSet, type MergeOptions, type ParsedClass, type ParsedClassModifier, type ResolvedThemeTokens, type StateComponentEntry, type StateConfig, type StyledComponentProps, type StyledOptions, type StyledProps, type StyledSystemConfig, type StyledSystemInstance, type SubComponentEntry, type SubComponentMap, type SubComponentProps, type SystemComponentConfig, type SystemComponentFactory, type SystemTokenMap, type ThemeConfig, type ThemeTokenMap, type TokenMap, type TokenSubscriber, type TwComponentFactory, type TwObject, type TwStyledComponent, type TwSubComponent, type TwTagFactory, type TwTagFactoryAny, type VariantLiterals, applyTokenSet, cn, tokenRef as containerRef, createComponent, createStyledSystem, createTheme, createTwMerge, createUseTokens, cssVar, cv, cx, cxm, generateContainerCss, generateStateCss, generateTokenCssString, getAllSubComponents, getContainerRegistry, getStateRegistry, getSubComponent, getToken, getTokens, liveToken, mergeWithRules, processContainer, processState, registerSubComponent, registerVariantTable, resolveStyledClassName, server, setToken, setTokens, styled, subscribeTokens, t, tokenRef, tokenVar, tw, twMerge, twVar, v4Tokens, withSubComponents };
742
+ type TokenSubscriber = (tokens: TokenMap) => void;
743
+ interface LiveTokenSet {
744
+ vars: Record<string, string>;
745
+ get(name: string): string | undefined;
746
+ set(name: string, value: string): void;
747
+ setAll(tokens: TokenMap): void;
748
+ snapshot(): TokenMap;
749
+ }
750
+ interface LiveTokenEngineBridge {
751
+ getToken(name: string): string | undefined;
752
+ getTokens(): TokenMap;
753
+ setToken(name: string, value: string): void;
754
+ setTokens(tokens: TokenMap): void;
755
+ applyTokenSet(tokens: TokenMap): void;
756
+ subscribeTokens(fn: TokenSubscriber): () => void;
757
+ subscribe?(fn: TokenSubscriber): () => void;
758
+ }
759
+ declare global {
760
+ interface Window {
761
+ __TW_TOKEN_ENGINE__?: LiveTokenEngineBridge;
762
+ }
763
+ }
764
+
765
+ export { type ComponentConfig, type ContainerConfig, type ContainerEntry, type CvFn, type HtmlTagName, type InferVariantProps, type LiveTokenSet, type MergeOptions, type ParsedClass, type ParsedClassModifier, type ResolvedThemeTokens, type StateComponentEntry, type StateConfig, type StyledComponentProps, type StyledOptions, type StyledProps, type StyledSystemConfig, type StyledSystemInstance, type SubComponentEntry, type SubComponentMap, type SubComponentProps, type SystemComponentConfig, type SystemComponentFactory, type SystemTokenMap, type ThemeConfig, type ThemeTokenMap, type TokenMap, type TokenSubscriber, type TwComponentFactory, type TwObject, type TwStyledComponent, type TwSubComponent, type TwTagFactory, type TwTagFactoryAny, type VariantLiterals, cn, createComponent, createStyledSystem, createTheme, createTwMerge, cssVar, cv, cx, cxm, generateContainerCss, generateStateCss, getAllSubComponents, getContainerRegistry, getStateRegistry, getSubComponent, mergeWithRules, processContainer, processState, registerSubComponent, registerVariantTable, resolveStyledClassName, server, styled, t, tw, twMerge, twVar, v4Tokens, withSubComponents };