@vaneui/ui 0.2.1-alpha.20250820203636.5bf2e74 → 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.
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/card.d.ts +1 -1
- package/dist/components/ui/chip.d.ts +1 -1
- package/dist/components/ui/col.d.ts +1 -1
- package/dist/components/ui/container.d.ts +1 -1
- package/dist/components/ui/grid.d.ts +1 -1
- package/dist/components/ui/row.d.ts +1 -1
- package/dist/components/ui/section.d.ts +1 -1
- package/dist/components/ui/stack.d.ts +1 -1
- package/dist/components/ui/theme/appearance/appearanceTheme.d.ts +2 -6
- package/dist/components/ui/theme/badgeTheme.d.ts +1 -1
- package/dist/components/ui/theme/cardTheme.d.ts +1 -1
- package/dist/components/ui/theme/checkboxTheme.d.ts +3 -0
- package/dist/components/ui/theme/chipTheme.d.ts +1 -1
- package/dist/components/ui/theme/codeTheme.d.ts +1 -1
- package/dist/components/ui/theme/colTheme.d.ts +1 -1
- package/dist/components/ui/theme/containerTheme.d.ts +1 -1
- package/dist/components/ui/theme/dividerTheme.d.ts +1 -1
- package/dist/components/ui/theme/gridTheme.d.ts +1 -1
- package/dist/components/ui/theme/rowTheme.d.ts +1 -1
- package/dist/components/ui/theme/stackTheme.d.ts +1 -1
- package/dist/components/ui/typography.d.ts +1 -1
- package/dist/index.esm.js +13 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -17
- package/dist/index.js.map +1 -1
- package/dist/ui.css +0 -16
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { GridProps } from './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>>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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";
|
|
@@ -41,5 +41,8 @@ export interface CheckboxWrapperTheme extends BaseComponentTheme {
|
|
|
41
41
|
height: SizeTheme;
|
|
42
42
|
};
|
|
43
43
|
layout: DefaultLayoutThemes;
|
|
44
|
+
appearance: {
|
|
45
|
+
variant: GenericVariantTheme<AppearanceTheme>;
|
|
46
|
+
};
|
|
44
47
|
}
|
|
45
48
|
export declare const defaultCheckboxWrapperTheme: ComponentTheme<CheckboxProps, CheckboxWrapperTheme>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTypographyComponentTheme, ComponentTheme, DefaultLayoutThemes } from "./common/ComponentTheme";
|
|
2
|
-
import { ChipProps } from "../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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
3633
|
+
constructor(config, transparentClasses) {
|
|
3634
3634
|
super();
|
|
3635
3635
|
Object.assign(this, config);
|
|
3636
|
-
this.
|
|
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.
|
|
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 = {}
|
|
3657
|
-
const
|
|
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
|
-
|
|
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
|
|
|
@@ -4170,12 +4160,15 @@ const themeDefaults = {
|
|
|
4170
4160
|
},
|
|
4171
4161
|
check: {
|
|
4172
4162
|
default: true,
|
|
4163
|
+
filled: true,
|
|
4173
4164
|
},
|
|
4174
4165
|
wrapper: {
|
|
4166
|
+
transparent: true,
|
|
4175
4167
|
md: true,
|
|
4176
4168
|
inlineGrid: true,
|
|
4177
4169
|
itemsCenter: true,
|
|
4178
4170
|
justifyCenter: true,
|
|
4171
|
+
filled: true,
|
|
4179
4172
|
},
|
|
4180
4173
|
},
|
|
4181
4174
|
};
|
|
@@ -4776,6 +4769,9 @@ const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
|
|
|
4776
4769
|
})
|
|
4777
4770
|
},
|
|
4778
4771
|
layout: defaultLayoutTheme,
|
|
4772
|
+
appearance: {
|
|
4773
|
+
variant: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme()
|
|
4774
|
+
}
|
|
4779
4775
|
}, ((_c = themeDefaults.checkbox) === null || _c === void 0 ? void 0 : _c.wrapper) || {}, CHECKBOX_CATEGORIES);
|
|
4780
4776
|
|
|
4781
4777
|
const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointer cursor-default", {
|