@vaneui/ui 0.2.0 → 0.2.1-alpha.20250802172458.e2b9257
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/tests/prop-filtering.test.d.ts +1 -0
- package/dist/components/tests/prop-omission-edge-cases.test.d.ts +1 -0
- package/dist/components/tests/prop-omission.test.d.ts +1 -0
- package/dist/components/tests/prop-types-validation.test.d.ts +1 -0
- package/dist/components/tests/utils/propOmissionTestUtils.d.ts +27 -0
- package/dist/components/tests/visual-decoration.test.d.ts +1 -0
- package/dist/components/ui/props/keys.d.ts +28 -18
- package/dist/components/ui/theme/appearance/genericVariantTheme.d.ts +6 -6
- package/dist/components/ui/theme/appearance/textAppearanceTheme.d.ts +0 -7
- package/dist/components/ui/theme/badgeTheme.d.ts +5 -5
- package/dist/components/ui/theme/buttonTheme.d.ts +5 -5
- package/dist/components/ui/theme/chipTheme.d.ts +5 -5
- package/dist/components/ui/theme/colTheme.d.ts +10 -0
- package/dist/components/ui/theme/rowTheme.d.ts +10 -0
- package/dist/components/ui/theme/stackTheme.d.ts +10 -0
- package/dist/components/utils/componentUtils.d.ts +0 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +85 -104
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +97 -105
- package/dist/index.js.map +1 -1
- package/dist/ui.css +4 -0
- package/package.json +9 -5
- package/dist/components/complex/index.d.ts +0 -1
- package/dist/components/complex/index.js +0 -132
- package/dist/components/complex/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentCategoryKey } from '../../ui/props/keys';
|
|
2
|
+
/**
|
|
3
|
+
* Get all possible boolean props for a given set of component categories
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAllBooleanPropsForCategories(categories: readonly ComponentCategoryKey[]): string[];
|
|
6
|
+
/**
|
|
7
|
+
* Create test props object with all boolean props for given categories set to true
|
|
8
|
+
*/
|
|
9
|
+
export declare function createTestPropsWithAllBooleans(categories: readonly ComponentCategoryKey[]): Record<string, boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Check if a DOM element has any of the boolean prop attributes that should be omitted
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkForOmittedProps(element: Element | null, categories: readonly ComponentCategoryKey[]): {
|
|
14
|
+
hasInvalidProps: boolean;
|
|
15
|
+
invalidProps: string[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if element has the standard allowed props that should never be omitted
|
|
19
|
+
*/
|
|
20
|
+
export declare function checkForRequiredProps(element: Element | null): {
|
|
21
|
+
hasRequiredProps: boolean;
|
|
22
|
+
missingProps: string[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Create a comprehensive test case for prop omission
|
|
26
|
+
*/
|
|
27
|
+
export declare function createPropOmissionTest(componentName: string, categories: readonly ComponentCategoryKey[], renderComponent: (props: any) => any, querySelector?: string): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const LAYOUT_CORE: readonly ["size", "hide", "items", "justify", "position", "display", "overflow"];
|
|
2
|
+
export declare const LAYOUT_FLEX: readonly ["wrap", "gap", "flexDirection", "reverse"];
|
|
3
|
+
export declare const PADDING: readonly ["padding"];
|
|
4
|
+
export declare const BREAKPOINT: readonly ["breakpoint"];
|
|
5
|
+
export declare const VISUAL_CORE: readonly ["appearance", "transparent"];
|
|
6
|
+
export declare const VISUAL_DECORATION: readonly ["border", "shadow", "ring"];
|
|
7
|
+
export declare const SHAPE: readonly ["shape"];
|
|
8
|
+
export declare const TYPOGRAPHY_STYLE: readonly ["fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign"];
|
|
9
|
+
export declare const LINK: readonly ["link"];
|
|
10
|
+
export declare const VARIANT: readonly ["variant"];
|
|
11
|
+
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "transparent", "wrap", "gap", "flexDirection", "reverse", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "size", "hide", "items", "justify", "position", "display", "overflow", "breakpoint", "link", "padding", "border", "shadow", "ring", "shape", "variant", "mode"];
|
|
2
12
|
export type ComponentCategoryKey = typeof COMPONENT_PROPS_CATEGORY[number];
|
|
3
13
|
export declare const ComponentKeys: {
|
|
4
14
|
readonly appearance: readonly ["default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info"];
|
|
@@ -20,7 +30,6 @@ export declare const ComponentKeys: {
|
|
|
20
30
|
readonly position: readonly ["relative", "absolute", "fixed", "sticky", "static"];
|
|
21
31
|
readonly reverse: readonly ["reverse"];
|
|
22
32
|
readonly ring: readonly ["ring", "noRing"];
|
|
23
|
-
readonly rounded: readonly ["rounded"];
|
|
24
33
|
readonly shadow: readonly ["shadow", "noShadow"];
|
|
25
34
|
readonly shape: readonly ["pill", "sharp", "rounded"];
|
|
26
35
|
readonly size: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
@@ -57,22 +66,23 @@ export type JustifyKey = typeof ComponentKeys.justify[number];
|
|
|
57
66
|
export type WrapKey = typeof ComponentKeys.wrap[number];
|
|
58
67
|
export type DisplayKey = typeof ComponentKeys.display[number];
|
|
59
68
|
export type OverflowKey = typeof ComponentKeys.overflow[number];
|
|
60
|
-
export declare const
|
|
61
|
-
export declare const
|
|
62
|
-
export declare const
|
|
63
|
-
export declare const INTERACTIVE_CATEGORIES:
|
|
64
|
-
export declare const BUTTON_CATEGORIES:
|
|
65
|
-
export declare const BADGE_CATEGORIES:
|
|
66
|
-
export declare const CHIP_CATEGORIES:
|
|
67
|
-
export declare const
|
|
68
|
-
export declare const
|
|
69
|
-
export declare const GRID_CATEGORIES:
|
|
70
|
-
export declare const
|
|
71
|
-
export declare const COL_CATEGORIES:
|
|
72
|
-
export declare const
|
|
73
|
-
export declare const
|
|
74
|
-
export declare const
|
|
75
|
-
export declare const
|
|
69
|
+
export declare const LAYOUT_FULL: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse"];
|
|
70
|
+
export declare const VISUAL_FULL: readonly ["appearance", "transparent", "border", "shadow", "ring", "shape"];
|
|
71
|
+
export declare const TYPOGRAPHY_FULL: readonly ["fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "link"];
|
|
72
|
+
export declare const INTERACTIVE_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "padding", "variant"];
|
|
73
|
+
export declare const BUTTON_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "padding", "variant"];
|
|
74
|
+
export declare const BADGE_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "padding", "variant"];
|
|
75
|
+
export declare const CHIP_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "padding", "variant"];
|
|
76
|
+
export declare const TYPOGRAPHY_CATEGORIES: readonly ["fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "link", "size", "hide", "items", "justify", "position", "display", "overflow", "appearance", "transparent"];
|
|
77
|
+
export declare const LIST_CATEGORIES: readonly ["fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "link", "size", "hide", "items", "justify", "position", "display", "overflow", "appearance", "transparent", "padding"];
|
|
78
|
+
export declare const GRID_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent"];
|
|
79
|
+
export declare const CONTAINER_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape"];
|
|
80
|
+
export declare const COL_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape"];
|
|
81
|
+
export declare const ROW_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "breakpoint", "appearance", "transparent", "border", "shadow", "ring", "shape"];
|
|
82
|
+
export declare const STACK_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "breakpoint", "padding", "appearance", "transparent", "border", "shadow", "ring", "shape"];
|
|
83
|
+
export declare const CARD_CATEGORIES: readonly ["fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "link", "size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "breakpoint", "appearance", "transparent", "border", "shadow", "ring", "shape", "padding"];
|
|
84
|
+
export declare const DIVIDER_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "appearance", "transparent", "padding"];
|
|
85
|
+
export declare const SECTION_CATEGORIES: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "reverse", "appearance", "transparent", "border", "shadow", "ring", "shape", "padding", "breakpoint"];
|
|
76
86
|
export type CategoryProps = {
|
|
77
87
|
[K in ComponentCategoryKey]?: (typeof ComponentKeys)[K][number];
|
|
78
88
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseTheme } from "../common/baseTheme";
|
|
2
2
|
import type { CategoryProps } from "../../props";
|
|
3
3
|
import { VariantKey } from "../../props";
|
|
4
|
-
import { TextAppearanceTheme
|
|
4
|
+
import { TextAppearanceTheme } from "./textAppearanceTheme";
|
|
5
5
|
import { ShadowAppearanceTheme } from "./shadowAppearanceTheme";
|
|
6
6
|
export interface GenericVariantTheme<T extends BaseTheme> extends Record<VariantKey, T> {
|
|
7
7
|
}
|
|
@@ -9,14 +9,14 @@ export declare class GenericVariantTheme<T extends BaseTheme> extends BaseTheme
|
|
|
9
9
|
private constructor();
|
|
10
10
|
private static filterToUIElementKeys;
|
|
11
11
|
getClasses(extractedKeys: CategoryProps): string[];
|
|
12
|
-
static createUIElementTextTheme(): GenericVariantTheme<
|
|
12
|
+
static createUIElementTextTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
13
13
|
static createUIElementShadowTheme(): GenericVariantTheme<ShadowAppearanceTheme>;
|
|
14
14
|
static createBorderAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
15
|
-
static createUIElementBorderTheme(): GenericVariantTheme<
|
|
15
|
+
static createUIElementBorderTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
16
16
|
static createRingAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
17
|
-
static createUIElementRingTheme(): GenericVariantTheme<
|
|
17
|
+
static createUIElementRingTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
18
18
|
static createBgAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
19
|
-
static createUIElementBgAppearanceTheme(): GenericVariantTheme<
|
|
19
|
+
static createUIElementBgAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
20
20
|
static createSimpleBgAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
21
|
-
static createSimpleUIElementBgAppearanceTheme(): GenericVariantTheme<
|
|
21
|
+
static createSimpleUIElementBgAppearanceTheme(): GenericVariantTheme<TextAppearanceTheme>;
|
|
22
22
|
}
|
|
@@ -3,15 +3,8 @@ import type { CategoryProps } from "../../props";
|
|
|
3
3
|
import { ModeKey, AppearanceKey } from "../../props";
|
|
4
4
|
export interface TextAppearanceTheme extends Record<AppearanceKey, Record<ModeKey, string>> {
|
|
5
5
|
}
|
|
6
|
-
export interface UIElementTextAppearanceTheme extends Record<AppearanceKey, Record<ModeKey, string>> {
|
|
7
|
-
}
|
|
8
6
|
export declare class TextAppearanceTheme extends BaseTheme {
|
|
9
7
|
private constructor();
|
|
10
8
|
getClasses(extractedKeys: CategoryProps): string[];
|
|
11
9
|
static createTheme(src?: Partial<Record<ModeKey, Partial<Record<AppearanceKey, string>>>>): TextAppearanceTheme;
|
|
12
10
|
}
|
|
13
|
-
export declare class UIElementTextAppearanceTheme extends BaseTheme {
|
|
14
|
-
private constructor();
|
|
15
|
-
getClasses(extractedKeys: CategoryProps): string[];
|
|
16
|
-
static createTheme(src?: Partial<Record<ModeKey, Partial<Record<AppearanceKey, string>>>>): UIElementTextAppearanceTheme;
|
|
17
|
-
}
|
|
@@ -7,7 +7,7 @@ import { BorderTheme } from "./layout/borderTheme";
|
|
|
7
7
|
import { RingTheme } from "./layout/ringTheme";
|
|
8
8
|
import { PxTheme } from "./size/pxTheme";
|
|
9
9
|
import { PyTheme } from "./size/pyTheme";
|
|
10
|
-
import {
|
|
10
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
11
11
|
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
12
12
|
import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
|
|
13
13
|
export interface BadgeTheme extends BaseTypographyComponentTheme {
|
|
@@ -18,10 +18,10 @@ export interface BadgeTheme extends BaseTypographyComponentTheme {
|
|
|
18
18
|
gap: GapTheme;
|
|
19
19
|
};
|
|
20
20
|
appearance: {
|
|
21
|
-
background: GenericVariantTheme<
|
|
22
|
-
text: GenericVariantTheme<
|
|
23
|
-
border: GenericVariantTheme<
|
|
24
|
-
ring: GenericVariantTheme<
|
|
21
|
+
background: GenericVariantTheme<TextAppearanceTheme>;
|
|
22
|
+
text: GenericVariantTheme<TextAppearanceTheme>;
|
|
23
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
24
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
25
25
|
shadow: GenericVariantTheme<ShadowAppearanceTheme>;
|
|
26
26
|
};
|
|
27
27
|
layout: DefaultLayoutThemes & {
|
|
@@ -8,7 +8,7 @@ import { RingTheme } from "./layout/ringTheme";
|
|
|
8
8
|
import { PxTheme } from "./size/pxTheme";
|
|
9
9
|
import { PyTheme } from "./size/pyTheme";
|
|
10
10
|
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
11
|
-
import {
|
|
11
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
12
12
|
import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
|
|
13
13
|
export interface ButtonTheme extends BaseTypographyComponentTheme {
|
|
14
14
|
size: {
|
|
@@ -18,10 +18,10 @@ export interface ButtonTheme extends BaseTypographyComponentTheme {
|
|
|
18
18
|
gap: GapTheme;
|
|
19
19
|
};
|
|
20
20
|
appearance: {
|
|
21
|
-
background: GenericVariantTheme<
|
|
22
|
-
text: GenericVariantTheme<
|
|
23
|
-
border: GenericVariantTheme<
|
|
24
|
-
ring: GenericVariantTheme<
|
|
21
|
+
background: GenericVariantTheme<TextAppearanceTheme>;
|
|
22
|
+
text: GenericVariantTheme<TextAppearanceTheme>;
|
|
23
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
24
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
25
25
|
shadow: GenericVariantTheme<ShadowAppearanceTheme>;
|
|
26
26
|
};
|
|
27
27
|
layout: DefaultLayoutThemes & {
|
|
@@ -8,7 +8,7 @@ import { RingTheme } from "./layout/ringTheme";
|
|
|
8
8
|
import { PxTheme } from "./size/pxTheme";
|
|
9
9
|
import { PyTheme } from "./size/pyTheme";
|
|
10
10
|
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
11
|
-
import {
|
|
11
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
12
12
|
import { ShadowAppearanceTheme } from "./appearance/shadowAppearanceTheme";
|
|
13
13
|
export interface ChipTheme extends BaseTypographyComponentTheme {
|
|
14
14
|
size: {
|
|
@@ -18,10 +18,10 @@ export interface ChipTheme extends BaseTypographyComponentTheme {
|
|
|
18
18
|
gap: GapTheme;
|
|
19
19
|
};
|
|
20
20
|
appearance: {
|
|
21
|
-
background: GenericVariantTheme<
|
|
22
|
-
text: GenericVariantTheme<
|
|
23
|
-
border: GenericVariantTheme<
|
|
24
|
-
ring: GenericVariantTheme<
|
|
21
|
+
background: GenericVariantTheme<TextAppearanceTheme>;
|
|
22
|
+
text: GenericVariantTheme<TextAppearanceTheme>;
|
|
23
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
24
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
25
25
|
shadow: GenericVariantTheme<ShadowAppearanceTheme>;
|
|
26
26
|
};
|
|
27
27
|
layout: DefaultLayoutThemes & {
|
|
@@ -4,6 +4,11 @@ import { ColProps } from "../props/props";
|
|
|
4
4
|
import { GapTheme } from "./size/gapTheme";
|
|
5
5
|
import { WrapTheme } from "./layout/wrapTheme";
|
|
6
6
|
import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
|
|
7
|
+
import { BorderTheme } from "./layout/borderTheme";
|
|
8
|
+
import { RingTheme } from "./layout/ringTheme";
|
|
9
|
+
import { RadiusTheme } from "./layout/radiusTheme";
|
|
10
|
+
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
11
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
7
12
|
export interface ColTheme extends BaseComponentTheme {
|
|
8
13
|
size: {
|
|
9
14
|
gap: GapTheme;
|
|
@@ -11,9 +16,14 @@ export interface ColTheme extends BaseComponentTheme {
|
|
|
11
16
|
layout: DefaultLayoutThemes & {
|
|
12
17
|
wrap: WrapTheme;
|
|
13
18
|
direction: DirectionTheme;
|
|
19
|
+
border: BorderTheme;
|
|
20
|
+
ring: RingTheme;
|
|
21
|
+
radius: RadiusTheme;
|
|
14
22
|
};
|
|
15
23
|
appearance: {
|
|
16
24
|
background: BgAppearanceTheme;
|
|
25
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
26
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
17
27
|
};
|
|
18
28
|
}
|
|
19
29
|
export declare const defaultColTheme: ComponentTheme<ColProps, ColTheme>;
|
|
@@ -5,6 +5,11 @@ import { RowProps } from "../props/props";
|
|
|
5
5
|
import { BreakpointTheme } from "./size/breakpointTheme";
|
|
6
6
|
import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
|
|
7
7
|
import { DirectionTheme } from "./layout/directionTheme";
|
|
8
|
+
import { BorderTheme } from "./layout/borderTheme";
|
|
9
|
+
import { RingTheme } from "./layout/ringTheme";
|
|
10
|
+
import { RadiusTheme } from "./layout/radiusTheme";
|
|
11
|
+
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
12
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
8
13
|
export interface RowTheme extends BaseComponentTheme {
|
|
9
14
|
size: {
|
|
10
15
|
gap: GapTheme;
|
|
@@ -13,9 +18,14 @@ export interface RowTheme extends BaseComponentTheme {
|
|
|
13
18
|
layout: DefaultLayoutThemes & {
|
|
14
19
|
wrap: WrapTheme;
|
|
15
20
|
direction: DirectionTheme;
|
|
21
|
+
border: BorderTheme;
|
|
22
|
+
ring: RingTheme;
|
|
23
|
+
radius: RadiusTheme;
|
|
16
24
|
};
|
|
17
25
|
appearance: {
|
|
18
26
|
background: BgAppearanceTheme;
|
|
27
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
28
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
19
29
|
};
|
|
20
30
|
}
|
|
21
31
|
export declare const defaultRowTheme: ComponentTheme<RowProps, RowTheme>;
|
|
@@ -6,6 +6,11 @@ import { GapTheme } from "./size/gapTheme";
|
|
|
6
6
|
import { PxTheme } from "./size/pxTheme";
|
|
7
7
|
import { PyTheme } from "./size/pyTheme";
|
|
8
8
|
import { BgAppearanceTheme } from "./appearance/bgAppearanceTheme";
|
|
9
|
+
import { BorderTheme } from "./layout/borderTheme";
|
|
10
|
+
import { RingTheme } from "./layout/ringTheme";
|
|
11
|
+
import { RadiusTheme } from "./layout/radiusTheme";
|
|
12
|
+
import { GenericVariantTheme } from "./appearance/genericVariantTheme";
|
|
13
|
+
import { TextAppearanceTheme } from "./appearance/textAppearanceTheme";
|
|
9
14
|
export interface StackTheme extends BaseComponentTheme {
|
|
10
15
|
size: {
|
|
11
16
|
px: PxTheme;
|
|
@@ -15,9 +20,14 @@ export interface StackTheme extends BaseComponentTheme {
|
|
|
15
20
|
layout: DefaultLayoutThemes & {
|
|
16
21
|
wrap: WrapTheme;
|
|
17
22
|
direction: DirectionTheme;
|
|
23
|
+
border: BorderTheme;
|
|
24
|
+
ring: RingTheme;
|
|
25
|
+
radius: RadiusTheme;
|
|
18
26
|
};
|
|
19
27
|
appearance: {
|
|
20
28
|
background: BgAppearanceTheme;
|
|
29
|
+
border: GenericVariantTheme<TextAppearanceTheme>;
|
|
30
|
+
ring: GenericVariantTheme<TextAppearanceTheme>;
|
|
21
31
|
};
|
|
22
32
|
}
|
|
23
33
|
export declare const defaultStackTheme: ComponentTheme<StackProps, StackTheme>;
|
|
@@ -5,7 +5,3 @@ import { ComponentKeys, ComponentCategoryKey } from '../ui/props';
|
|
|
5
5
|
* Returns the specific key type for the given category.
|
|
6
6
|
*/
|
|
7
7
|
export declare function pickFirstTruthyKeyByCategory<T extends ComponentCategoryKey>(props: Record<string, any>, defaults: Record<string, any>, category: T): typeof ComponentKeys[T][number] | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Generic function to extract keys for any component based on its categories
|
|
10
|
-
*/
|
|
11
|
-
export declare function extractKeysFromCategories<T extends readonly ComponentCategoryKey[]>(props: Record<string, boolean>, defaults: Record<string, boolean>, categories: T): Record<string, string | undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { Divider } from "./components/ui/divider";
|
|
|
4
4
|
export { Chip } from "./components/ui/chip";
|
|
5
5
|
export { Section, Container, Col, Row, Stack, Grid3, Grid4, Card } from "./components/ui/layout";
|
|
6
6
|
export { Text, Title, Link, List, ListItem, SectionTitle, PageTitle } from "./components/ui/typography";
|
|
7
|
+
export { ComponentKeys } from "./components/ui/props/keys";
|
|
7
8
|
export { ThemeProvider, useTheme, defaultTheme, COMPONENT, type ThemeProps, type ThemeDefaults, type ThemeProviderProps, type PartialTheme, type ComponentKey, } from './components/themeContext';
|
|
8
9
|
export * from "./components/ui/props/index";
|