@vaneui/ui 0.2.1-alpha.20250824103031.3e0b460 → 0.2.1-alpha.20250830120134.26927ee

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.
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { BadgeProps } from './props/props';
2
+ import { BadgeProps } from './props';
3
3
  export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { CardProps } from "./props/props";
2
+ import { CardProps } from "./props";
3
3
  export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { ChipProps } from './props/props';
2
+ import { ChipProps } from './props';
3
3
  export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { ColProps } from './props/props';
2
+ import { ColProps } from './props';
3
3
  export declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { ContainerProps } from './props/props';
2
+ import { ContainerProps } from './props';
3
3
  export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GridProps } from './props/props';
2
+ import { GridProps } from './props';
3
3
  export declare const Grid2: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
4
4
  export declare const Grid3: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
5
5
  export declare const Grid4: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { RowProps } from './props/props';
2
+ import { RowProps } from './props';
3
3
  export declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { SectionProps } from './props/props';
2
+ import { SectionProps } from './props';
3
3
  export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { StackProps } from './props/props';
2
+ import { StackProps } from './props';
3
3
  export declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,13 +4,9 @@ import { ModeKey, AppearanceKey } from "../../props";
4
4
  export interface AppearanceTheme extends Record<AppearanceKey, Record<ModeKey, string>> {
5
5
  }
6
6
  export declare class AppearanceTheme extends BaseTheme {
7
- private readonly transparentClassSource?;
8
- private readonly linkClassSource?;
7
+ private readonly transparentClasses?;
9
8
  private constructor();
10
9
  getClasses(extractedKeys: CategoryProps): string[];
11
- static createTheme(src?: Partial<Record<ModeKey, Partial<Record<AppearanceKey, string>>>>, options?: {
12
- transparentClassSource?: Record<string, string>;
13
- linkClassSource?: Record<string, string>;
14
- }): AppearanceTheme;
10
+ static createTheme(src?: Partial<Record<ModeKey, Partial<Record<AppearanceKey, string>>>>): AppearanceTheme;
15
11
  static createLayoutBgTheme(): AppearanceTheme;
16
12
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
- import { BadgeProps } from "../props/props";
2
+ import { BadgeProps } from "../props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
@@ -1,6 +1,6 @@
1
1
  import { DirectionTheme } from "./layout/directionTheme";
2
2
  import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
3
- import { CardProps } from "../props/props";
3
+ import { CardProps } from "../props";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { WrapTheme } from "./layout/wrapTheme";
6
6
  import { BorderTheme } from "./layout/borderTheme";
@@ -1,5 +1,5 @@
1
1
  import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
- import { ChipProps } from "../props/props";
2
+ import { ChipProps } from "../props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
@@ -1,5 +1,5 @@
1
1
  import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
- import { CodeProps } from "../props/props";
2
+ import { CodeProps } from "../props";
3
3
  import { SizeTheme } from "./size/sizeTheme";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { RadiusTheme } from "./layout/radiusTheme";
@@ -1,6 +1,6 @@
1
1
  import { DirectionTheme } from "./layout/directionTheme";
2
2
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
3
- import { ColProps } from "../props/props";
3
+ import { ColProps } from "../props";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { WrapTheme } from "./layout/wrapTheme";
6
6
  import { AppearanceTheme } from "./appearance/appearanceTheme";
@@ -1,6 +1,6 @@
1
1
  import { DirectionTheme } from "./layout/directionTheme";
2
2
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
3
- import { ContainerProps } from "../props/props";
3
+ import { ContainerProps } from "../props";
4
4
  import { GapTheme } from "./size/gapTheme";
5
5
  import { SizeTheme } from "./size/sizeTheme";
6
6
  import { WrapTheme } from "./layout/wrapTheme";
@@ -1,5 +1,5 @@
1
1
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
- import { DividerProps } from "../props/props";
2
+ import { DividerProps } from "../props";
3
3
  import { AppearanceTheme } from "./appearance/appearanceTheme";
4
4
  import { PyTheme } from "./size/pyTheme";
5
5
  export interface DividerTheme extends BaseComponentTheme {
@@ -1,5 +1,5 @@
1
1
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
2
- import { GridProps } from "../props/props";
2
+ import { GridProps } from "../props";
3
3
  import { GapTheme } from "./size/gapTheme";
4
4
  import { WrapTheme } from "./layout/wrapTheme";
5
5
  import { DirectionTheme } from "./layout/directionTheme";
@@ -1,7 +1,7 @@
1
1
  import { GapTheme } from "./size/gapTheme";
2
2
  import { WrapTheme } from "./layout/wrapTheme";
3
3
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
4
- import { RowProps } from "../props/props";
4
+ import { RowProps } from "../props";
5
5
  import { BreakpointTheme } from "./size/breakpointTheme";
6
6
  import { AppearanceTheme } from "./appearance/appearanceTheme";
7
7
  import { DirectionTheme } from "./layout/directionTheme";
@@ -1,7 +1,7 @@
1
1
  import { DirectionTheme } from "./layout/directionTheme";
2
2
  import { WrapTheme } from "./layout/wrapTheme";
3
3
  import { BaseComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
4
- import { StackProps } from "../props/props";
4
+ import { StackProps } from "../props";
5
5
  import { GapTheme } from "./size/gapTheme";
6
6
  import { PxTheme } from "./size/pxTheme";
7
7
  import { PyTheme } from "./size/pyTheme";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TypographyProps } from './props/props';
2
+ import { TypographyProps } from './props';
3
3
  export declare const PageTitle: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLHeadingElement>>;
4
4
  export declare const SectionTitle: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLHeadingElement>>;
5
5
  export declare const Title: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLHeadingElement>>;
package/dist/index.esm.js CHANGED
@@ -3630,17 +3630,16 @@ const filledCheckedBackgroundAppearanceClasses = {
3630
3630
  };
3631
3631
 
3632
3632
  class AppearanceTheme extends BaseTheme {
3633
- constructor(config, options) {
3633
+ constructor(config, transparentClasses) {
3634
3634
  super();
3635
3635
  Object.assign(this, config);
3636
- this.transparentClassSource = options === null || options === void 0 ? void 0 : options.transparentClassSource;
3637
- this.linkClassSource = options === null || options === void 0 ? void 0 : options.linkClassSource;
3636
+ this.transparentClasses = transparentClasses;
3638
3637
  }
3639
3638
  getClasses(extractedKeys) {
3640
3639
  var _a;
3641
3640
  // Check for specific transparent styles first
3642
3641
  if (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent) {
3643
- const transparentClass = ((_a = this.transparentClassSource) === null || _a === void 0 ? void 0 : _a[extractedKeys.transparent]) || '';
3642
+ const transparentClass = ((_a = this.transparentClasses) === null || _a === void 0 ? void 0 : _a[extractedKeys.transparent]) || '';
3644
3643
  return [transparentClass];
3645
3644
  }
3646
3645
  // Use appearance (now includes link as an appearance option)
@@ -3653,8 +3652,8 @@ class AppearanceTheme extends BaseTheme {
3653
3652
  }
3654
3653
  return [];
3655
3654
  }
3656
- static createTheme(src = {}, options) {
3657
- const finalConfig = Object.fromEntries(ComponentKeys.appearance.map(textKey => [
3655
+ static createTheme(src = {}) {
3656
+ const config = Object.fromEntries(ComponentKeys.appearance.map(textKey => [
3658
3657
  textKey,
3659
3658
  Object.fromEntries(ComponentKeys.mode.map(modeKey => {
3660
3659
  var _a;
@@ -3664,13 +3663,7 @@ class AppearanceTheme extends BaseTheme {
3664
3663
  ];
3665
3664
  })),
3666
3665
  ]));
3667
- // Auto-detect base classes for transparent and link sources if not explicitly provided
3668
- const baseClasses = src.base;
3669
- const finalOptions = {
3670
- transparentClassSource: (options === null || options === void 0 ? void 0 : options.transparentClassSource) || baseClasses,
3671
- linkClassSource: (options === null || options === void 0 ? void 0 : options.linkClassSource) || baseClasses,
3672
- };
3673
- return new AppearanceTheme(finalConfig, finalOptions);
3666
+ return new AppearanceTheme(config, src.base);
3674
3667
  }
3675
3668
  static createLayoutBgTheme() {
3676
3669
  // Creates a theme for layout backgrounds, replacing BgAppearanceTheme
@@ -3682,10 +3675,7 @@ class AppearanceTheme extends BaseTheme {
3682
3675
  active: '',
3683
3676
  }
3684
3677
  ]));
3685
- return new AppearanceTheme(config, {
3686
- transparentClassSource: layoutBackgroundAppearanceClasses,
3687
- linkClassSource: layoutBackgroundAppearanceClasses
3688
- });
3678
+ return new AppearanceTheme(config, layoutBackgroundAppearanceClasses);
3689
3679
  }
3690
3680
  }
3691
3681