@vaneui/ui 0.1.5 → 0.1.6

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.
@@ -17,25 +17,25 @@ import { DeepPartial } from "./utils/deepPartial";
17
17
  export declare const COMPONENT_KEYS: readonly ["button", "badge", "chip", "card", "divider", "row", "col", "stack", "section", "grid3", "grid4", "pageTitle", "sectionTitle", "title", "text", "link", "list", "listItem"];
18
18
  export type ComponentKey = typeof COMPONENT_KEYS[number];
19
19
  export interface ThemeProps extends Record<ComponentKey, ComponentTheme<object, object>> {
20
- button: ComponentTheme<ButtonProps, ButtonTheme<ButtonProps>>;
21
- badge: ComponentTheme<BadgeProps, BadgeTheme<BadgeProps>>;
22
- chip: ComponentTheme<ChipProps, ChipTheme<ChipProps>>;
23
- card: ComponentTheme<CardProps, CardTheme<CardProps>>;
24
- divider: ComponentTheme<DividerProps, DividerTheme<DividerProps>>;
25
- container: ComponentTheme<ContainerProps, ContainerTheme<ContainerProps>>;
26
- row: ComponentTheme<RowProps, RowTheme<RowProps>>;
27
- col: ComponentTheme<ColProps, ColTheme<ColProps>>;
28
- stack: ComponentTheme<StackProps, StackTheme<StackProps>>;
29
- section: ComponentTheme<SectionProps, SectionTheme<SectionProps>>;
30
- grid3: ComponentTheme<GridProps, GridTheme<GridProps>>;
31
- grid4: ComponentTheme<GridProps, GridTheme<GridProps>>;
32
- pageTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
33
- sectionTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
34
- title: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
35
- text: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
36
- link: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
37
- list: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
38
- listItem: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
20
+ button: ComponentTheme<ButtonProps, ButtonTheme>;
21
+ badge: ComponentTheme<BadgeProps, BadgeTheme>;
22
+ chip: ComponentTheme<ChipProps, ChipTheme>;
23
+ card: ComponentTheme<CardProps, CardTheme>;
24
+ divider: ComponentTheme<DividerProps, DividerTheme>;
25
+ container: ComponentTheme<ContainerProps, ContainerTheme>;
26
+ row: ComponentTheme<RowProps, RowTheme>;
27
+ col: ComponentTheme<ColProps, ColTheme>;
28
+ stack: ComponentTheme<StackProps, StackTheme>;
29
+ section: ComponentTheme<SectionProps, SectionTheme>;
30
+ grid3: ComponentTheme<GridProps, GridTheme>;
31
+ grid4: ComponentTheme<GridProps, GridTheme>;
32
+ pageTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
33
+ sectionTitle: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
34
+ title: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
35
+ text: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
36
+ link: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
37
+ list: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
38
+ listItem: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
39
39
  }
40
40
  export type PartialTheme = DeepPartial<ThemeProps>;
41
41
  export declare const defaultTheme: ThemeProps;
@@ -1,12 +1,14 @@
1
1
  import { BaseTheme } from "../common/baseTheme";
2
2
  import { VariantKey } from "../../props";
3
3
  import { TextAppearanceTheme } from "./textAppearanceTheme";
4
+ import { ShadowAppearanceTheme } from "./shadowAppearanceTheme";
4
5
  export interface GenericVariantTheme<T extends BaseTheme> extends Record<VariantKey, T> {
5
6
  }
6
7
  export declare class GenericVariantTheme<T extends BaseTheme> extends BaseTheme {
7
8
  private constructor();
8
9
  getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
9
10
  static createUIElementTextTheme(): GenericVariantTheme<TextAppearanceTheme>;
11
+ static createUIElementShadowTheme(): GenericVariantTheme<ShadowAppearanceTheme>;
10
12
  static createBorderAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
11
13
  static createRingAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
12
14
  static createBgAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
@@ -0,0 +1,10 @@
1
+ import { SizeKey, ModeKey, TextAppearanceKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ export interface ShadowAppearanceTheme extends Record<TextAppearanceKey, Record<SizeKey, Record<ModeKey, string>> | undefined> {
4
+ }
5
+ export declare class ShadowAppearanceTheme extends BaseTheme {
6
+ private static readonly defaultShadow;
7
+ constructor(initial?: Partial<Record<TextAppearanceKey, Record<SizeKey, Record<ModeKey, string>>>>);
8
+ getClasses(props: Record<string, boolean>, defaults: Record<string, boolean>): string[];
9
+ static createTheme(src?: Partial<Record<TextAppearanceKey, Record<SizeKey, Record<ModeKey, string>>>>): ShadowAppearanceTheme;
10
+ }
@@ -1,33 +1,33 @@
1
- import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
1
+ import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
2
  import { BadgeProps } from "../props/props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
6
6
  import { BorderTheme } from "./layout/borderTheme";
7
- import { ShadowTheme } from "./layout/shadowTheme";
8
7
  import { RingTheme } from "./layout/ringTheme";
9
8
  import { PxTheme } from "./size/pxTheme";
10
9
  import { PyTheme } from "./size/pyTheme";
11
10
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
12
11
  import { GenericVariantTheme } from "./appearance/genericVariantTheme";
13
- export interface BadgeTheme<P> extends BaseComponentTheme<P> {
12
+ import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
13
+ export interface BadgeTheme extends BaseTypographyComponentTheme {
14
14
  size: {
15
15
  px: PxTheme;
16
16
  py: PyTheme;
17
17
  text: SizeTheme;
18
18
  gap: GapTheme;
19
- shadow: ShadowTheme;
20
19
  };
21
20
  appearance: {
22
21
  background: GenericVariantTheme<TextAppearanceTheme>;
23
22
  text: GenericVariantTheme<TextAppearanceTheme>;
24
23
  border: GenericVariantTheme<TextAppearanceTheme>;
25
24
  ring: GenericVariantTheme<TextAppearanceTheme>;
25
+ shadow: GenericVariantTheme<ShadowAppearanceTheme>;
26
26
  };
27
- layout: DefaultLayoutThemes<P> & {
27
+ layout: DefaultLayoutThemes & {
28
28
  border: BorderTheme;
29
29
  ring: RingTheme;
30
30
  radius: RadiusTheme;
31
31
  };
32
32
  }
33
- export declare const defaultBadgeTheme: ComponentTheme<BadgeProps, BadgeTheme<BadgeProps>>;
33
+ export declare const defaultBadgeTheme: ComponentTheme<BadgeProps, BadgeTheme>;
@@ -1,33 +1,33 @@
1
- import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
1
+ import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
2
  import { ButtonProps } from "../props/props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
6
- import { ShadowTheme } from "./layout/shadowTheme";
7
6
  import { BorderTheme } from "./layout/borderTheme";
8
7
  import { RingTheme } from "./layout/ringTheme";
9
8
  import { PxTheme } from "./size/pxTheme";
10
9
  import { PyTheme } from "./size/pyTheme";
11
10
  import { GenericVariantTheme } from "./appearance/genericVariantTheme";
12
11
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
13
- export interface ButtonTheme<P> extends BaseComponentTheme<P> {
12
+ import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
13
+ export interface ButtonTheme extends BaseTypographyComponentTheme {
14
14
  size: {
15
15
  px: PxTheme;
16
16
  py: PyTheme;
17
17
  text: SizeTheme;
18
18
  gap: GapTheme;
19
- shadow: ShadowTheme;
20
19
  };
21
20
  appearance: {
22
21
  background: GenericVariantTheme<TextAppearanceTheme>;
23
22
  text: GenericVariantTheme<TextAppearanceTheme>;
24
23
  border: GenericVariantTheme<TextAppearanceTheme>;
25
24
  ring: GenericVariantTheme<TextAppearanceTheme>;
25
+ shadow: GenericVariantTheme<ShadowAppearanceTheme>;
26
26
  };
27
- layout: DefaultLayoutThemes<P> & {
27
+ layout: DefaultLayoutThemes & {
28
28
  border: BorderTheme;
29
29
  ring: RingTheme;
30
30
  radius: RadiusTheme;
31
31
  };
32
32
  }
33
- export declare const defaultButtonTheme: ComponentTheme<ButtonProps, ButtonTheme<ButtonProps>>;
33
+ export declare const defaultButtonTheme: ComponentTheme<ButtonProps, ButtonTheme>;
@@ -3,7 +3,6 @@ import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./commo
3
3
  import { CardProps } from "../props/props";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { WrapTheme } from "./layout/wrapTheme";
6
- import { ShadowTheme } from "./layout/shadowTheme";
7
6
  import { BorderTheme } from "./layout/borderTheme";
8
7
  import { RadiusTheme } from "./layout/radiusTheme";
9
8
  import { PxTheme } from "./size/pxTheme";
@@ -12,20 +11,21 @@ import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
12
11
  import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
13
12
  import { BreakpointTheme } from "./size/breakpointTheme";
14
13
  import { RingTheme } from "./layout/ringTheme";
15
- export interface CardTheme<P> extends BaseComponentTheme<P> {
14
+ import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
15
+ export interface CardTheme extends BaseComponentTheme {
16
16
  size: {
17
17
  px: PxTheme;
18
18
  py: PyTheme;
19
19
  gap: GapTheme;
20
- shadow: ShadowTheme;
21
20
  };
22
- layout: DefaultLayoutThemes<P> & {
21
+ layout: DefaultLayoutThemes & {
23
22
  border: BorderTheme;
24
23
  radius: RadiusTheme;
25
24
  ring: RingTheme;
26
25
  wrap: WrapTheme;
27
26
  direction: DirectionTheme;
28
27
  breakpoint: BreakpointTheme;
28
+ shadow: ShadowAppearanceTheme;
29
29
  };
30
30
  appearance: {
31
31
  background: BgAppearanceTheme;
@@ -34,4 +34,4 @@ export interface CardTheme<P> extends BaseComponentTheme<P> {
34
34
  ring: TextAppearanceTheme;
35
35
  };
36
36
  }
37
- export declare const defaultCardTheme: ComponentTheme<CardProps, CardTheme<CardProps>>;
37
+ export declare const defaultCardTheme: ComponentTheme<CardProps, CardTheme>;
@@ -1,33 +1,33 @@
1
- import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
1
+ import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
2
  import { ChipProps } from "../props/props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
6
- import { ShadowTheme } from "./layout/shadowTheme";
7
6
  import { BorderTheme } from "./layout/borderTheme";
8
7
  import { RingTheme } from "./layout/ringTheme";
9
8
  import { PxTheme } from "./size/pxTheme";
10
9
  import { PyTheme } from "./size/pyTheme";
11
10
  import { GenericVariantTheme } from "./appearance/genericVariantTheme";
12
11
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
13
- export interface ChipTheme<P> extends BaseComponentTheme<P> {
12
+ import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
13
+ export interface ChipTheme extends BaseTypographyComponentTheme {
14
14
  size: {
15
15
  px: PxTheme;
16
16
  py: PyTheme;
17
17
  text: SizeTheme;
18
18
  gap: GapTheme;
19
- shadow: ShadowTheme;
20
19
  };
21
20
  appearance: {
22
21
  background: GenericVariantTheme<TextAppearanceTheme>;
23
22
  text: GenericVariantTheme<TextAppearanceTheme>;
24
23
  border: GenericVariantTheme<TextAppearanceTheme>;
25
24
  ring: GenericVariantTheme<TextAppearanceTheme>;
25
+ shadow: GenericVariantTheme<ShadowAppearanceTheme>;
26
26
  };
27
- layout: DefaultLayoutThemes<P> & {
27
+ layout: DefaultLayoutThemes & {
28
28
  radius: RadiusTheme;
29
29
  border: BorderTheme;
30
30
  ring: RingTheme;
31
31
  };
32
32
  }
33
- export declare const defaultChipTheme: ComponentTheme<ChipProps, ChipTheme<ChipProps>>;
33
+ export declare const defaultChipTheme: ComponentTheme<ChipProps, ChipTheme>;
@@ -3,13 +3,13 @@ import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./commo
3
3
  import { ColProps } from "../props/props";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { WrapTheme } from "./layout/wrapTheme";
6
- export interface ColTheme<P> extends BaseComponentTheme<P> {
6
+ export interface ColTheme extends BaseComponentTheme {
7
7
  size: {
8
8
  gap: GapTheme;
9
9
  };
10
- layout: DefaultLayoutThemes<P> & {
10
+ layout: DefaultLayoutThemes & {
11
11
  wrap: WrapTheme;
12
12
  direction: DirectionTheme;
13
13
  };
14
14
  }
15
- export declare const defaultColTheme: ComponentTheme<ColProps, ColTheme<ColProps>>;
15
+ export declare const defaultColTheme: ComponentTheme<ColProps, ColTheme>;
@@ -17,14 +17,14 @@ type ThemeNode<P> = BaseTheme | ThemeMap<P>;
17
17
  export type ThemeMap<P> = {
18
18
  [key: string]: ThemeNode<P>;
19
19
  };
20
- export interface DefaultLayoutThemes<P> {
20
+ export interface DefaultLayoutThemes {
21
21
  hide: HideTheme;
22
22
  items: ItemsTheme;
23
23
  justify: JustifyTheme;
24
24
  position: PositionTheme;
25
25
  display: DisplayTheme;
26
26
  }
27
- export interface DefaultTypographyThemes<P> {
27
+ export interface DefaultTypographyThemes {
28
28
  fontFamily: FontFamilyTheme;
29
29
  fontWeight: FontWeightTheme;
30
30
  fontStyle: FontStyleTheme;
@@ -32,14 +32,18 @@ export interface DefaultTypographyThemes<P> {
32
32
  textTransform: TextTransformTheme;
33
33
  textAlign: TextAlignTheme;
34
34
  }
35
- export interface BaseComponentTheme<P> {
36
- layout: DefaultLayoutThemes<P>;
37
- typography: DefaultTypographyThemes<P>;
35
+ export declare const defaultLayoutTheme: DefaultLayoutThemes;
36
+ export declare const defaultTypographyTheme: DefaultTypographyThemes;
37
+ export interface BaseComponentTheme {
38
+ layout: DefaultLayoutThemes;
39
+ }
40
+ export interface BaseTypographyComponentTheme extends BaseComponentTheme {
41
+ typography: DefaultTypographyThemes;
38
42
  }
39
43
  export declare class ComponentTheme<P extends ComponentProps, TTheme extends object> {
40
44
  readonly tag: React.ElementType;
41
45
  readonly base: string;
42
- readonly themes: TTheme;
46
+ readonly themes: DeepPartial<TTheme>;
43
47
  defaults: Partial<P>;
44
48
  constructor(tag: React.ElementType, base: string, subThemes: DeepPartial<TTheme>, defaults?: Partial<P>);
45
49
  getClasses(props: P, defaults?: Partial<P>): string[];
@@ -9,12 +9,12 @@ import { RingTheme } from "./layout/ringTheme";
9
9
  import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
10
10
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
11
11
  import { RadiusTheme } from "./layout/radiusTheme";
12
- export interface ContainerTheme<P> extends BaseComponentTheme<P> {
12
+ export interface ContainerTheme extends BaseComponentTheme {
13
13
  size: {
14
14
  gap: GapTheme;
15
15
  maxWidth: SizeTheme;
16
16
  };
17
- layout: DefaultLayoutThemes<P> & {
17
+ layout: DefaultLayoutThemes & {
18
18
  wrap: WrapTheme;
19
19
  direction: DirectionTheme;
20
20
  border: BorderTheme;
@@ -28,4 +28,4 @@ export interface ContainerTheme<P> extends BaseComponentTheme<P> {
28
28
  ring: TextAppearanceTheme;
29
29
  };
30
30
  }
31
- export declare const defaultContainerTheme: ComponentTheme<ContainerProps, ContainerTheme<ContainerProps>>;
31
+ export declare const defaultContainerTheme: ComponentTheme<ContainerProps, ContainerTheme>;
@@ -1,9 +1,9 @@
1
1
  import { BaseComponentTheme, ComponentTheme } from "./common/ComponentTheme";
2
2
  import { DividerProps } from "../props/props";
3
3
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
4
- export interface DividerTheme<P> extends BaseComponentTheme<P> {
4
+ export interface DividerTheme extends BaseComponentTheme {
5
5
  appearance: {
6
6
  background: TextAppearanceTheme;
7
7
  };
8
8
  }
9
- export declare const defaultDividerTheme: ComponentTheme<DividerProps, DividerTheme<DividerProps>>;
9
+ export declare const defaultDividerTheme: ComponentTheme<DividerProps, DividerTheme>;
@@ -1,10 +1,10 @@
1
1
  import { BaseComponentTheme, ComponentTheme } from "./common/ComponentTheme";
2
2
  import { GridProps } from "../props/props";
3
3
  import { GapTheme } from "./size/gapTheme";
4
- export interface GridTheme<P> extends BaseComponentTheme<P> {
4
+ export interface GridTheme extends BaseComponentTheme {
5
5
  size: {
6
6
  gap: GapTheme;
7
7
  };
8
8
  }
9
- export declare const defaultGrid3Theme: ComponentTheme<GridProps, GridTheme<GridProps>>;
10
- export declare const defaultGrid4Theme: ComponentTheme<GridProps, GridTheme<GridProps>>;
9
+ export declare const defaultGrid3Theme: ComponentTheme<GridProps, GridTheme>;
10
+ export declare const defaultGrid4Theme: ComponentTheme<GridProps, GridTheme>;
@@ -3,13 +3,13 @@ import { WrapTheme } from "./layout/wrapTheme";
3
3
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
4
4
  import { RowProps } from "../props/props";
5
5
  import { BreakpointTheme } from "./size/breakpointTheme";
6
- export interface RowTheme<P> extends BaseComponentTheme<P> {
6
+ export interface RowTheme extends BaseComponentTheme {
7
7
  size: {
8
8
  gap: GapTheme;
9
9
  breakpoint: BreakpointTheme;
10
10
  };
11
- layout: DefaultLayoutThemes<P> & {
11
+ layout: DefaultLayoutThemes & {
12
12
  wrap: WrapTheme;
13
13
  };
14
14
  }
15
- export declare const defaultRowTheme: ComponentTheme<RowProps, RowTheme<RowProps>>;
15
+ export declare const defaultRowTheme: ComponentTheme<RowProps, RowTheme>;
@@ -8,24 +8,24 @@ import { PyTheme } from "./size/pyTheme";
8
8
  import { BorderTheme } from "./layout/borderTheme";
9
9
  import { RingTheme } from "./layout/ringTheme";
10
10
  import { RadiusTheme } from "./layout/radiusTheme";
11
- import { ShadowTheme } from "./layout/shadowTheme";
12
11
  import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
13
12
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
14
13
  import { GenericVariantTheme } from "./appearance/genericVariantTheme";
15
- export interface SectionTheme<P> extends BaseComponentTheme<P> {
14
+ import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
15
+ export interface SectionTheme extends BaseComponentTheme {
16
16
  size: {
17
17
  px: PxTheme;
18
18
  py: PyTheme;
19
19
  gap: GapTheme;
20
- shadow: ShadowTheme;
21
20
  };
22
21
  appearance: {
23
22
  background: GenericVariantTheme<BgAppearanceTheme>;
24
23
  text: GenericVariantTheme<TextAppearanceTheme>;
25
24
  border: GenericVariantTheme<TextAppearanceTheme>;
26
25
  ring: GenericVariantTheme<TextAppearanceTheme>;
26
+ shadow: ShadowAppearanceTheme;
27
27
  };
28
- layout: DefaultLayoutThemes<P> & {
28
+ layout: DefaultLayoutThemes & {
29
29
  wrap: WrapTheme;
30
30
  direction: DirectionTheme;
31
31
  border: BorderTheme;
@@ -33,4 +33,4 @@ export interface SectionTheme<P> extends BaseComponentTheme<P> {
33
33
  radius: RadiusTheme;
34
34
  };
35
35
  }
36
- export declare const defaultSectionTheme: ComponentTheme<SectionProps, SectionTheme<SectionProps>>;
36
+ export declare const defaultSectionTheme: ComponentTheme<SectionProps, SectionTheme>;
@@ -5,15 +5,15 @@ import { StackProps } from "../props/props";
5
5
  import { GapTheme } from "./size/gapTheme";
6
6
  import { PxTheme } from "./size/pxTheme";
7
7
  import { PyTheme } from "./size/pyTheme";
8
- export interface StackTheme<P> extends BaseComponentTheme<P> {
8
+ export interface StackTheme extends BaseComponentTheme {
9
9
  size: {
10
10
  px: PxTheme;
11
11
  py: PyTheme;
12
12
  gap: GapTheme;
13
13
  };
14
- layout: DefaultLayoutThemes<P> & {
14
+ layout: DefaultLayoutThemes & {
15
15
  wrap: WrapTheme;
16
16
  direction: DirectionTheme;
17
17
  };
18
18
  }
19
- export declare const defaultStackTheme: ComponentTheme<StackProps, StackTheme<StackProps>>;
19
+ export declare const defaultStackTheme: ComponentTheme<StackProps, StackTheme>;
@@ -1,10 +1,10 @@
1
- import { SizeKey } from "../props/keys";
2
1
  import { TypographyComponentProps } from "../props/props";
3
2
  import React from "react";
4
- import { BaseComponentTheme, ComponentTheme } from "./common/ComponentTheme";
3
+ import { BaseTypographyComponentTheme, ComponentTheme } from "./common/ComponentTheme";
5
4
  import { SizeTheme } from "./size/sizeTheme";
6
5
  import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
7
- export interface TypographyComponentTheme<P> extends BaseComponentTheme<P> {
6
+ import { SizeKey } from "../props";
7
+ export interface TypographyComponentTheme extends BaseTypographyComponentTheme {
8
8
  size: {
9
9
  text: SizeTheme;
10
10
  };
@@ -12,11 +12,11 @@ export interface TypographyComponentTheme<P> extends BaseComponentTheme<P> {
12
12
  text: TextAppearanceTheme;
13
13
  };
14
14
  }
15
- export declare const createTypographyComponentTheme: (tag: React.ReactNode | string | any, base?: string, textSizeMap?: Record<SizeKey, string>, defaults?: Partial<TypographyComponentProps>) => ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
16
- export declare const pageTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
17
- export declare const sectionTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
18
- export declare const titleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
19
- export declare const textTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
20
- export declare const linkTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
21
- export declare const listItemTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
22
- export declare const listTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme<TypographyComponentProps>>;
15
+ export declare const createTypographyComponentTheme: (tag: React.ReactNode | string | any, base?: string, textSizeMap?: Record<SizeKey, string>, defaults?: Partial<TypographyComponentProps>) => ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
16
+ export declare const pageTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
17
+ export declare const sectionTitleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
18
+ export declare const titleTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
19
+ export declare const textTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
20
+ export declare const linkTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
21
+ export declare const listItemTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;
22
+ export declare const listTheme: ComponentTheme<TypographyComponentProps, TypographyComponentTheme>;