@vaneui/ui 0.2.1-alpha.20250901145733.e9c8d4d → 0.2.2-alpha.20250907183237.5f63365

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.
Files changed (156) hide show
  1. package/dist/index.esm.js +280 -441
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +280 -440
  4. package/dist/index.js.map +1 -1
  5. package/dist/playground/src/App.d.ts +2 -0
  6. package/dist/playground/src/index.d.ts +2 -0
  7. package/dist/{components → src/components}/tests/utils/propOmissionTestUtils.d.ts +4 -9
  8. package/dist/src/components/tests/visual-decoration.test.d.ts +1 -0
  9. package/dist/{components → src/components}/themedComponent.d.ts +4 -2
  10. package/dist/src/components/ui/badge.d.ts +2 -0
  11. package/dist/src/components/ui/button.d.ts +2 -0
  12. package/dist/src/components/ui/card.d.ts +2 -0
  13. package/dist/{components → src/components}/ui/checkbox.d.ts +3 -4
  14. package/dist/src/components/ui/chip.d.ts +2 -0
  15. package/dist/src/components/ui/classes/radiusClasses.d.ts +3 -0
  16. package/dist/{components → src/components}/ui/code.d.ts +3 -4
  17. package/dist/src/components/ui/col.d.ts +2 -0
  18. package/dist/src/components/ui/container.d.ts +2 -0
  19. package/dist/{components → src/components}/ui/divider.d.ts +3 -4
  20. package/dist/src/components/ui/grid.d.ts +4 -0
  21. package/dist/{components → src/components}/ui/img.d.ts +3 -4
  22. package/dist/{components → src/components}/ui/label.d.ts +3 -4
  23. package/dist/{components → src/components}/ui/props/keys.d.ts +6 -5
  24. package/dist/src/components/ui/row.d.ts +2 -0
  25. package/dist/src/components/ui/section.d.ts +2 -0
  26. package/dist/src/components/ui/stack.d.ts +2 -0
  27. package/dist/src/components/ui/theme/appearance/appearanceTheme.d.ts +20 -0
  28. package/dist/{components → src/components}/ui/theme/appearance/genericVariantTheme.d.ts +4 -7
  29. package/dist/src/components/ui/theme/appearance/shadowAppearanceTheme.d.ts +21 -0
  30. package/dist/src/components/ui/theme/layout/borderTheme.d.ts +9 -0
  31. package/dist/src/components/ui/theme/layout/directionTheme.d.ts +10 -0
  32. package/dist/src/components/ui/theme/layout/displayTheme.d.ts +17 -0
  33. package/dist/src/components/ui/theme/layout/hideTheme.d.ts +11 -0
  34. package/dist/src/components/ui/theme/layout/itemsTheme.d.ts +11 -0
  35. package/dist/src/components/ui/theme/layout/justifyTheme.d.ts +14 -0
  36. package/dist/src/components/ui/theme/layout/overflowTheme.d.ts +21 -0
  37. package/dist/src/components/ui/theme/layout/positionTheme.d.ts +11 -0
  38. package/dist/{components → src/components}/ui/theme/layout/radiusTheme.d.ts +1 -6
  39. package/dist/src/components/ui/theme/layout/ringTheme.d.ts +9 -0
  40. package/dist/src/components/ui/theme/layout/wrapTheme.d.ts +9 -0
  41. package/dist/src/components/ui/theme/list/listStyleTheme.d.ts +8 -0
  42. package/dist/src/components/ui/theme/size/breakpointTheme.d.ts +11 -0
  43. package/dist/{components → src/components}/ui/theme/size/gapTheme.d.ts +6 -4
  44. package/dist/{components → src/components}/ui/theme/size/paddingTheme.d.ts +6 -4
  45. package/dist/{components → src/components}/ui/theme/size/plTheme.d.ts +0 -3
  46. package/dist/{components → src/components}/ui/theme/size/pxTheme.d.ts +0 -3
  47. package/dist/{components → src/components}/ui/theme/size/pyTheme.d.ts +0 -3
  48. package/dist/{components → src/components}/ui/theme/size/sizeTheme.d.ts +6 -3
  49. package/dist/src/components/ui/theme/typography/fontFamilyTheme.d.ts +8 -0
  50. package/dist/src/components/ui/theme/typography/fontStyleTheme.d.ts +8 -0
  51. package/dist/src/components/ui/theme/typography/fontWeightTheme.d.ts +15 -0
  52. package/dist/src/components/ui/theme/typography/textAlignTheme.d.ts +10 -0
  53. package/dist/src/components/ui/theme/typography/textDecorationTheme.d.ts +10 -0
  54. package/dist/src/components/ui/theme/typography/textTransformTheme.d.ts +10 -0
  55. package/dist/{components → src/components}/ui/theme/typographyTheme.d.ts +1 -1
  56. package/dist/{components → src/components}/ui/typography.d.ts +9 -10
  57. package/dist/{components → src/components}/utils/componentUtils.d.ts +1 -1
  58. package/package.json +9 -2
  59. package/dist/components/examples/ref-usage-examples.d.ts +0 -29
  60. package/dist/components/examples/theme-types-strictness-compile-check.d.ts +0 -5
  61. package/dist/components/ui/badge.d.ts +0 -3
  62. package/dist/components/ui/button.d.ts +0 -3
  63. package/dist/components/ui/card.d.ts +0 -3
  64. package/dist/components/ui/chip.d.ts +0 -3
  65. package/dist/components/ui/classes/radiusClasses.d.ts +0 -5
  66. package/dist/components/ui/col.d.ts +0 -3
  67. package/dist/components/ui/container.d.ts +0 -3
  68. package/dist/components/ui/grid.d.ts +0 -5
  69. package/dist/components/ui/row.d.ts +0 -3
  70. package/dist/components/ui/section.d.ts +0 -3
  71. package/dist/components/ui/stack.d.ts +0 -3
  72. package/dist/components/ui/theme/appearance/appearanceTheme.d.ts +0 -11
  73. package/dist/components/ui/theme/appearance/shadowAppearanceTheme.d.ts +0 -13
  74. package/dist/components/ui/theme/layout/borderTheme.d.ts +0 -10
  75. package/dist/components/ui/theme/layout/directionTheme.d.ts +0 -10
  76. package/dist/components/ui/theme/layout/displayTheme.d.ts +0 -10
  77. package/dist/components/ui/theme/layout/hideTheme.d.ts +0 -10
  78. package/dist/components/ui/theme/layout/itemsTheme.d.ts +0 -10
  79. package/dist/components/ui/theme/layout/justifyTheme.d.ts +0 -10
  80. package/dist/components/ui/theme/layout/overflowTheme.d.ts +0 -10
  81. package/dist/components/ui/theme/layout/positionTheme.d.ts +0 -10
  82. package/dist/components/ui/theme/layout/ringTheme.d.ts +0 -10
  83. package/dist/components/ui/theme/layout/wrapTheme.d.ts +0 -10
  84. package/dist/components/ui/theme/list/listStyleTheme.d.ts +0 -10
  85. package/dist/components/ui/theme/size/breakpointTheme.d.ts +0 -10
  86. package/dist/components/ui/theme/typography/fontFamilyTheme.d.ts +0 -9
  87. package/dist/components/ui/theme/typography/fontStyleTheme.d.ts +0 -10
  88. package/dist/components/ui/theme/typography/fontWeightTheme.d.ts +0 -10
  89. package/dist/components/ui/theme/typography/textAlignTheme.d.ts +0 -10
  90. package/dist/components/ui/theme/typography/textDecorationTheme.d.ts +0 -10
  91. package/dist/components/ui/theme/typography/textTransformTheme.d.ts +0 -10
  92. /package/dist/{components → src/components}/complex/sharer.d.ts +0 -0
  93. /package/dist/{components → src/components}/tests/badge.test.d.ts +0 -0
  94. /package/dist/{components → src/components}/tests/button.test.d.ts +0 -0
  95. /package/dist/{components → src/components}/tests/card.test.d.ts +0 -0
  96. /package/dist/{components → src/components}/tests/checkbox.test.d.ts +0 -0
  97. /package/dist/{components → src/components}/tests/chip.test.d.ts +0 -0
  98. /package/dist/{components → src/components}/tests/code.test.d.ts +0 -0
  99. /package/dist/{components → src/components}/tests/col.test.d.ts +0 -0
  100. /package/dist/{components → src/components}/tests/componentThemeCoverage.test.d.ts +0 -0
  101. /package/dist/{components → src/components}/tests/container.test.d.ts +0 -0
  102. /package/dist/{components → src/components}/tests/deepMerge.test.d.ts +0 -0
  103. /package/dist/{components → src/components}/tests/divider.test.d.ts +0 -0
  104. /package/dist/{components → src/components}/tests/extra-classes.test.d.ts +0 -0
  105. /package/dist/{components → src/components}/tests/grid.test.d.ts +0 -0
  106. /package/dist/{components → src/components}/tests/grid2.test.d.ts +0 -0
  107. /package/dist/{components → src/components}/tests/img.test.d.ts +0 -0
  108. /package/dist/{components → src/components}/tests/label.test.d.ts +0 -0
  109. /package/dist/{components → src/components}/tests/link.test.d.ts +0 -0
  110. /package/dist/{components → src/components}/tests/linkable.test.d.ts +0 -0
  111. /package/dist/{components → src/components}/tests/list.test.d.ts +0 -0
  112. /package/dist/{components → src/components}/tests/nested-theme-providers-simple.test.d.ts +0 -0
  113. /package/dist/{components → src/components}/tests/nested-theme-providers.test.d.ts +0 -0
  114. /package/dist/{components/tests/prop-filtering.test.d.ts → src/components/tests/pickFirstTruthyKeyByCategory.test.d.ts} +0 -0
  115. /package/dist/{components/tests/prop-types-validation.test.d.ts → src/components/tests/prop-filtering.test.d.ts} +0 -0
  116. /package/dist/{components → src/components}/tests/prop-omission-edge-cases.test.d.ts +0 -0
  117. /package/dist/{components → src/components}/tests/prop-omission.test.d.ts +0 -0
  118. /package/dist/{components/tests/theme-collections.test.d.ts → src/components/tests/prop-types-validation.test.d.ts} +0 -0
  119. /package/dist/{components → src/components}/tests/ref-support-comprehensive.test.d.ts +0 -0
  120. /package/dist/{components → src/components}/tests/ref-support.test.d.ts +0 -0
  121. /package/dist/{components → src/components}/tests/row.test.d.ts +0 -0
  122. /package/dist/{components → src/components}/tests/section.test.d.ts +0 -0
  123. /package/dist/{components → src/components}/tests/stack.test.d.ts +0 -0
  124. /package/dist/{components → src/components}/tests/text.test.d.ts +0 -0
  125. /package/dist/{components/tests/visual-decoration.test.d.ts → src/components/tests/theme-collections.test.d.ts} +0 -0
  126. /package/dist/{components → src/components}/tests/theme-override.test.d.ts +0 -0
  127. /package/dist/{components → src/components}/tests/theme-types-strictness.test.d.ts +0 -0
  128. /package/dist/{components → src/components}/tests/title.test.d.ts +0 -0
  129. /package/dist/{components → src/components}/themeContext.d.ts +0 -0
  130. /package/dist/{components → src/components}/ui/classes/appearanceClasses.d.ts +0 -0
  131. /package/dist/{components → src/components}/ui/classes/typographyClasses.d.ts +0 -0
  132. /package/dist/{components → src/components}/ui/layout.d.ts +0 -0
  133. /package/dist/{components → src/components}/ui/props/index.d.ts +0 -0
  134. /package/dist/{components → src/components}/ui/props/props.d.ts +0 -0
  135. /package/dist/{components → src/components}/ui/theme/badgeTheme.d.ts +0 -0
  136. /package/dist/{components → src/components}/ui/theme/buttonTheme.d.ts +0 -0
  137. /package/dist/{components → src/components}/ui/theme/cardTheme.d.ts +0 -0
  138. /package/dist/{components → src/components}/ui/theme/checkboxTheme.d.ts +0 -0
  139. /package/dist/{components → src/components}/ui/theme/chipTheme.d.ts +0 -0
  140. /package/dist/{components → src/components}/ui/theme/codeTheme.d.ts +0 -0
  141. /package/dist/{components → src/components}/ui/theme/colTheme.d.ts +0 -0
  142. /package/dist/{components → src/components}/ui/theme/common/ComponentTheme.d.ts +0 -0
  143. /package/dist/{components → src/components}/ui/theme/common/baseTheme.d.ts +0 -0
  144. /package/dist/{components → src/components}/ui/theme/containerTheme.d.ts +0 -0
  145. /package/dist/{components → src/components}/ui/theme/defaults.d.ts +0 -0
  146. /package/dist/{components → src/components}/ui/theme/dividerTheme.d.ts +0 -0
  147. /package/dist/{components → src/components}/ui/theme/gridTheme.d.ts +0 -0
  148. /package/dist/{components → src/components}/ui/theme/imgTheme.d.ts +0 -0
  149. /package/dist/{components → src/components}/ui/theme/labelTheme.d.ts +0 -0
  150. /package/dist/{components → src/components}/ui/theme/rowTheme.d.ts +0 -0
  151. /package/dist/{components → src/components}/ui/theme/sectionTheme.d.ts +0 -0
  152. /package/dist/{components → src/components}/ui/theme/stackTheme.d.ts +0 -0
  153. /package/dist/{components → src/components}/utils/deepMerge.d.ts +0 -0
  154. /package/dist/{components → src/components}/utils/deepPartial.d.ts +0 -0
  155. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  156. /package/dist/{setupTests.d.ts → src/setupTests.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ import '../../dist/vars.css';
2
+ import '../../dist/ui.css';
@@ -1,4 +1,4 @@
1
- import { ComponentCategoryKey } from '../../ui/props/keys';
1
+ import { ComponentCategoryKey } from '../../ui/props';
2
2
  /**
3
3
  * Get all possible boolean props for a given set of component categories
4
4
  */
@@ -14,14 +14,9 @@ export declare function checkForOmittedProps(element: Element | null, categories
14
14
  hasInvalidProps: boolean;
15
15
  invalidProps: string[];
16
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
17
  /**
25
18
  * Create a comprehensive test case for prop omission
26
19
  */
27
- export declare function createPropOmissionTest(componentName: string, categories: readonly ComponentCategoryKey[], renderComponent: (props: any) => any, querySelector?: string): () => void;
20
+ export declare function createPropOmissionTest(componentName: string, categories: readonly ComponentCategoryKey[], renderComponent: (props: Record<string, unknown>) => {
21
+ container: HTMLElement;
22
+ }, querySelector?: string): () => void;
@@ -6,7 +6,9 @@ type ComponentProps = {
6
6
  tag?: React.ElementType;
7
7
  };
8
8
  export type ThemedComponentProps<P extends ComponentProps, T extends object> = P & {
9
- theme: ComponentTheme<any, T>;
9
+ theme: ComponentTheme<P, T>;
10
10
  };
11
- export declare const ThemedComponent: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
11
+ export declare const ThemedComponent: React.ForwardRefExoticComponent<ComponentProps & {
12
+ theme: ComponentTheme<ComponentProps, object>;
13
+ } & React.RefAttributes<HTMLElement>>;
12
14
  export {};
@@ -0,0 +1,2 @@
1
+ import { BadgeProps } from './props';
2
+ export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from './props';
2
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ import { CardProps } from "./props";
2
+ export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- export declare const Checkbox: React.ForwardRefExoticComponent<{
1
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<{
3
2
  className?: string;
4
3
  children?: React.ReactNode;
5
- } & React.InputHTMLAttributes<HTMLInputElement> & {
4
+ } & import("react").InputHTMLAttributes<HTMLInputElement> & {
6
5
  transparent?: boolean | undefined;
7
6
  border?: boolean | undefined;
8
7
  shadow?: boolean | undefined;
@@ -81,4 +80,4 @@ export declare const Checkbox: React.ForwardRefExoticComponent<{
81
80
  outline?: boolean | undefined;
82
81
  } & {
83
82
  tag?: React.ElementType;
84
- } & React.RefAttributes<HTMLDivElement>>;
83
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { ChipProps } from './props';
2
+ export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,3 @@
1
+ import { SizeKey } from "../props";
2
+ export declare const uiBorderRadiusClasses: Record<SizeKey, string>;
3
+ export declare const layoutBorderRadiusClasses: Record<SizeKey, string>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- export declare const Code: React.ForwardRefExoticComponent<{
1
+ export declare const Code: import("react").ForwardRefExoticComponent<{
3
2
  className?: string;
4
3
  children?: React.ReactNode;
5
- } & React.HTMLAttributes<HTMLElement> & {
4
+ } & import("react").HTMLAttributes<HTMLElement> & {
6
5
  transparent?: boolean | undefined;
7
6
  gap?: boolean | undefined;
8
7
  reverse?: boolean | undefined;
@@ -119,4 +118,4 @@ export declare const Code: React.ForwardRefExoticComponent<{
119
118
  flexWrapReverse?: boolean | undefined;
120
119
  } & {
121
120
  tag?: React.ElementType;
122
- } & React.RefAttributes<HTMLElement>>;
121
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,2 @@
1
+ import { ColProps } from './props';
2
+ export declare const Col: import("react").ForwardRefExoticComponent<ColProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { ContainerProps } from './props';
2
+ export declare const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- export declare const Divider: React.ForwardRefExoticComponent<{
1
+ export declare const Divider: import("react").ForwardRefExoticComponent<{
3
2
  className?: string;
4
3
  children?: React.ReactNode;
5
- } & React.HTMLAttributes<HTMLDivElement> & {
4
+ } & import("react").HTMLAttributes<HTMLDivElement> & {
6
5
  transparent?: boolean | undefined;
7
6
  padding?: boolean | undefined;
8
7
  default?: boolean | undefined;
@@ -72,4 +71,4 @@ export declare const Divider: React.ForwardRefExoticComponent<{
72
71
  xl?: boolean | undefined;
73
72
  } & {
74
73
  tag?: React.ElementType;
75
- } & React.RefAttributes<HTMLDivElement>>;
74
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ import { GridProps } from './props';
2
+ export declare const Grid2: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const Grid3: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const Grid4: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- export declare const Img: React.ForwardRefExoticComponent<{
1
+ export declare const Img: import("react").ForwardRefExoticComponent<{
3
2
  className?: string;
4
3
  children?: React.ReactNode;
5
- } & React.ImgHTMLAttributes<HTMLImageElement> & {
4
+ } & import("react").ImgHTMLAttributes<HTMLImageElement> & {
6
5
  transparent?: boolean | undefined;
7
6
  border?: boolean | undefined;
8
7
  shadow?: boolean | undefined;
@@ -81,4 +80,4 @@ export declare const Img: React.ForwardRefExoticComponent<{
81
80
  outline?: boolean | undefined;
82
81
  } & {
83
82
  tag?: React.ElementType;
84
- } & React.RefAttributes<HTMLImageElement>>;
83
+ } & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- export declare const Label: React.ForwardRefExoticComponent<{
1
+ export declare const Label: import("react").ForwardRefExoticComponent<{
3
2
  className?: string;
4
3
  children?: React.ReactNode;
5
- } & React.LabelHTMLAttributes<HTMLLabelElement> & {
4
+ } & import("react").LabelHTMLAttributes<HTMLLabelElement> & {
6
5
  transparent?: boolean | undefined;
7
6
  gap?: boolean | undefined;
8
7
  reverse?: boolean | undefined;
@@ -108,4 +107,4 @@ export declare const Label: React.ForwardRefExoticComponent<{
108
107
  flexWrapReverse?: boolean | undefined;
109
108
  } & {
110
109
  tag?: React.ElementType;
111
- } & React.RefAttributes<HTMLLabelElement>>;
110
+ } & import("react").RefAttributes<HTMLLabelElement>>;
@@ -9,6 +9,12 @@ export declare const TYPOGRAPHY_STYLE: readonly ["fontWeight", "fontStyle", "tex
9
9
  export declare const LIST_STYLE: readonly ["listStyle"];
10
10
  export declare const VARIANT: readonly ["variant"];
11
11
  export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "transparent", "wrap", "gap", "flexDirection", "reverse", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "listStyle", "size", "hide", "items", "justify", "position", "display", "overflow", "breakpoint", "padding", "border", "shadow", "ring", "shape", "variant", "mode"];
12
+ /**
13
+ * Describes what the @ComponentKeys.appearance can be applied to
14
+ * @see ComponentKeys.appearance
15
+ */
16
+ export declare const APPEARANCE_CATEGORY: readonly ["text", "border", "ring", "shadow", "bg", "accent"];
17
+ export type AppearanceCategoryKey = typeof APPEARANCE_CATEGORY[number];
12
18
  export type ComponentCategoryKey = typeof COMPONENT_PROPS_CATEGORY[number];
13
19
  export declare const ComponentKeys: {
14
20
  readonly appearance: readonly ["default", "accent", "primary", "secondary", "tertiary", "success", "danger", "warning", "info", "link"];
@@ -42,11 +48,6 @@ export declare const ComponentKeys: {
42
48
  };
43
49
  export type ModeKey = typeof ComponentKeys.mode[number];
44
50
  export type SizeKey = typeof ComponentKeys.size[number];
45
- export type RingKey = typeof ComponentKeys.ring[number];
46
- export type ShapeKey = typeof ComponentKeys.shape[number];
47
- export type BorderKey = typeof ComponentKeys.border[number];
48
- export type PaddingKey = typeof ComponentKeys.padding[number];
49
- export type GapKey = typeof ComponentKeys.gap[number];
50
51
  export type VariantKey = typeof ComponentKeys.variant[number];
51
52
  export type AppearanceKey = typeof ComponentKeys.appearance[number];
52
53
  export type TransparentKey = typeof ComponentKeys.transparent[number];
@@ -0,0 +1,2 @@
1
+ import { RowProps } from './props';
2
+ export declare const Row: import("react").ForwardRefExoticComponent<RowProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { SectionProps } from './props';
2
+ export declare const Section: import("react").ForwardRefExoticComponent<SectionProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { StackProps } from './props';
2
+ export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,20 @@
1
+ import { BaseTheme } from "../common/baseTheme";
2
+ import { AppearanceCategoryKey, CategoryProps } from "../../props";
3
+ import { ModeKey, AppearanceKey } from "../../props";
4
+ export declare class AppearanceTheme extends BaseTheme implements Record<AppearanceKey, Record<ModeKey, string>> {
5
+ default: Record<ModeKey, string>;
6
+ accent: Record<ModeKey, string>;
7
+ primary: Record<ModeKey, string>;
8
+ secondary: Record<ModeKey, string>;
9
+ tertiary: Record<ModeKey, string>;
10
+ success: Record<ModeKey, string>;
11
+ danger: Record<ModeKey, string>;
12
+ warning: Record<ModeKey, string>;
13
+ info: Record<ModeKey, string>;
14
+ link: Record<ModeKey, string>;
15
+ private readonly transparentClasses?;
16
+ private readonly category;
17
+ private constructor();
18
+ getClasses(extractedKeys: CategoryProps): string[];
19
+ static createTheme(src: Partial<Record<ModeKey, Partial<Record<AppearanceKey, string>>>> | undefined, category: AppearanceCategoryKey): AppearanceTheme;
20
+ }
@@ -3,21 +3,18 @@ import type { CategoryProps } from "../../props";
3
3
  import { VariantKey } from "../../props";
4
4
  import { AppearanceTheme } from "./appearanceTheme";
5
5
  import { ShadowAppearanceTheme } from "./shadowAppearanceTheme";
6
- export interface GenericVariantTheme<T extends BaseTheme> extends Record<VariantKey, T> {
7
- }
8
- export declare class GenericVariantTheme<T extends BaseTheme> extends BaseTheme {
6
+ export declare class GenericVariantTheme<T extends BaseTheme> extends BaseTheme implements Record<VariantKey, T> {
7
+ filled: T;
8
+ outline: T;
9
9
  private constructor();
10
10
  getClasses(extractedKeys: CategoryProps): string[];
11
11
  static createUIElementTextTheme(): GenericVariantTheme<AppearanceTheme>;
12
12
  static createUIElementShadowTheme(): GenericVariantTheme<ShadowAppearanceTheme>;
13
13
  static createLayoutShadowTheme(): GenericVariantTheme<ShadowAppearanceTheme>;
14
- static createBorderAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
15
14
  static createUIElementBorderTheme(): GenericVariantTheme<AppearanceTheme>;
16
15
  static createUIElementRingTheme(): GenericVariantTheme<AppearanceTheme>;
17
- static createBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
18
16
  static createCheckboxBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
19
- static createUIElementBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
20
- static createSimpleBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
17
+ static createBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
21
18
  static createSimpleUIElementBgAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
22
19
  static createAccentColorAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
23
20
  static createCheckedAppearanceTheme(): GenericVariantTheme<AppearanceTheme>;
@@ -0,0 +1,21 @@
1
+ import { SizeKey, ModeKey, AppearanceKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class ShadowAppearanceTheme extends BaseTheme implements Record<AppearanceKey, Record<SizeKey, Record<ModeKey, string>> | null> {
5
+ default: Record<SizeKey, Record<ModeKey, string>> | null;
6
+ accent: Record<SizeKey, Record<ModeKey, string>> | null;
7
+ primary: Record<SizeKey, Record<ModeKey, string>> | null;
8
+ secondary: Record<SizeKey, Record<ModeKey, string>> | null;
9
+ tertiary: Record<SizeKey, Record<ModeKey, string>> | null;
10
+ success: Record<SizeKey, Record<ModeKey, string>> | null;
11
+ danger: Record<SizeKey, Record<ModeKey, string>> | null;
12
+ warning: Record<SizeKey, Record<ModeKey, string>> | null;
13
+ info: Record<SizeKey, Record<ModeKey, string>> | null;
14
+ link: Record<SizeKey, Record<ModeKey, string>> | null;
15
+ private static readonly defaultShadow;
16
+ private static readonly layoutShadow;
17
+ constructor(initial?: Partial<Record<AppearanceKey, Record<SizeKey, Record<ModeKey, string>> | null>>);
18
+ getClasses(extractedKeys: CategoryProps): string[];
19
+ static createTheme(src?: Partial<Record<AppearanceKey, Record<SizeKey, Record<ModeKey, string>> | null>>): ShadowAppearanceTheme;
20
+ static createLayoutTheme(src?: Partial<Record<AppearanceKey, Record<SizeKey, Record<ModeKey, string>> | null>>): ShadowAppearanceTheme;
21
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseTheme } from "../common/baseTheme";
2
+ import type { CategoryProps } from "../../props";
3
+ import { ModeKey } from "../../props";
4
+ export declare class BorderTheme extends BaseTheme implements Record<ModeKey, string> {
5
+ base: string;
6
+ hover: string;
7
+ active: string;
8
+ getClasses(extractedKeys: CategoryProps): string[];
9
+ }
@@ -0,0 +1,10 @@
1
+ import { FlexDirectionKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class DirectionTheme extends BaseTheme implements Record<FlexDirectionKey, string> {
5
+ row: string;
6
+ column: string;
7
+ rowReverse: string;
8
+ columnReverse: string;
9
+ getClasses(extractedKeys: CategoryProps): string[];
10
+ }
@@ -0,0 +1,17 @@
1
+ import { DisplayKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class DisplayTheme extends BaseTheme implements Record<DisplayKey, string> {
5
+ inline: string;
6
+ block: string;
7
+ inlineBlock: string;
8
+ flex: string;
9
+ inlineFlex: string;
10
+ grid: string;
11
+ inlineGrid: string;
12
+ contents: string;
13
+ table: string;
14
+ tableCell: string;
15
+ hidden: string;
16
+ getClasses(extractedKeys: CategoryProps): string[];
17
+ }
@@ -0,0 +1,11 @@
1
+ import { HideKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class HideTheme extends BaseTheme implements Record<HideKey, string> {
5
+ xsHide: string;
6
+ smHide: string;
7
+ mdHide: string;
8
+ lgHide: string;
9
+ xlHide: string;
10
+ getClasses(extractedKeys: CategoryProps): string[];
11
+ }
@@ -0,0 +1,11 @@
1
+ import { ItemsKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class ItemsTheme extends BaseTheme implements Record<ItemsKey, string> {
5
+ itemsStart: string;
6
+ itemsEnd: string;
7
+ itemsCenter: string;
8
+ itemsBaseline: string;
9
+ itemsStretch: string;
10
+ getClasses(extractedKeys: CategoryProps): string[];
11
+ }
@@ -0,0 +1,14 @@
1
+ import { JustifyKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class JustifyTheme extends BaseTheme implements Record<JustifyKey, string> {
5
+ justifyStart: string;
6
+ justifyEnd: string;
7
+ justifyCenter: string;
8
+ justifyBetween: string;
9
+ justifyAround: string;
10
+ justifyEvenly: string;
11
+ justifyStretch: string;
12
+ justifyBaseline: string;
13
+ getClasses(extractedKeys: CategoryProps): string[];
14
+ }
@@ -0,0 +1,21 @@
1
+ import { OverflowKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class OverflowTheme extends BaseTheme implements Record<OverflowKey, string> {
5
+ overflowAuto: string;
6
+ overflowHidden: string;
7
+ overflowClip: string;
8
+ overflowVisible: string;
9
+ overflowScroll: string;
10
+ overflowXAuto: string;
11
+ overflowYAuto: string;
12
+ overflowXHidden: string;
13
+ overflowYHidden: string;
14
+ overflowXClip: string;
15
+ overflowYClip: string;
16
+ overflowXVisible: string;
17
+ overflowYVisible: string;
18
+ overflowXScroll: string;
19
+ overflowYScroll: string;
20
+ getClasses(extractedKeys: CategoryProps): string[];
21
+ }
@@ -0,0 +1,11 @@
1
+ import { PositionKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class PositionTheme extends BaseTheme implements Record<PositionKey, string> {
5
+ relative: string;
6
+ absolute: string;
7
+ fixed: string;
8
+ sticky: string;
9
+ static: string;
10
+ getClasses(extractedKeys: CategoryProps): string[];
11
+ }
@@ -1,17 +1,12 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { BaseTheme } from "../common/baseTheme";
3
3
  import type { CategoryProps } from "../../props";
4
- export interface RadiusTheme {
5
- pill: string;
6
- sharp: string;
7
- rounded: Record<SizeKey, string>;
8
- }
9
4
  export declare class RadiusTheme extends BaseTheme {
10
5
  pill: string;
11
6
  sharp: string;
12
7
  rounded: Record<SizeKey, string>;
13
8
  private constructor();
14
9
  static createUITheme(customRounded?: Record<SizeKey, string>): RadiusTheme;
15
- static createLayoutTheme(customRounded?: Record<SizeKey, string>): RadiusTheme;
10
+ static createLayoutTheme(): RadiusTheme;
16
11
  getClasses(extractedKeys: CategoryProps): string[];
17
12
  }
@@ -0,0 +1,9 @@
1
+ import { BaseTheme } from "../common/baseTheme";
2
+ import type { CategoryProps } from "../../props";
3
+ import { ModeKey } from "../../props";
4
+ export declare class RingTheme extends BaseTheme implements Record<ModeKey, string> {
5
+ base: string;
6
+ hover: string;
7
+ active: string;
8
+ getClasses(extractedKeys: CategoryProps): string[];
9
+ }
@@ -0,0 +1,9 @@
1
+ import { WrapKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class WrapTheme extends BaseTheme implements Record<WrapKey, string> {
5
+ flexWrap: string;
6
+ flexNoWrap: string;
7
+ flexWrapReverse: string;
8
+ getClasses(extractedKeys: CategoryProps): string[];
9
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseTheme } from "../common/baseTheme";
2
+ import type { CategoryProps } from "../../props";
3
+ import { ListStyleKey } from "../../props";
4
+ export declare class ListStyleTheme extends BaseTheme implements Record<ListStyleKey, string> {
5
+ disc: string;
6
+ decimal: string;
7
+ getClasses(extractedKeys: CategoryProps): string[];
8
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseTheme } from "../common/baseTheme";
2
+ import type { CategoryProps } from "../../props";
3
+ import { BreakpointKey } from "../../props";
4
+ export declare class BreakpointTheme extends BaseTheme implements Record<BreakpointKey, string> {
5
+ xsCol: string;
6
+ smCol: string;
7
+ mdCol: string;
8
+ lgCol: string;
9
+ xlCol: string;
10
+ getClasses(extractedKeys: CategoryProps): string[];
11
+ }
@@ -1,10 +1,12 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { BaseTheme } from "../common/baseTheme";
3
3
  import type { CategoryProps } from "../../props";
4
- export interface GapTheme extends Record<SizeKey, string> {
5
- }
6
- export declare class GapTheme extends BaseTheme {
7
- readonly defaultClasses: Record<SizeKey, string>;
4
+ export declare class GapTheme extends BaseTheme implements Record<SizeKey, string> {
5
+ xs: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
8
10
  constructor(sizeMap?: Record<SizeKey, string>);
9
11
  getClasses(extractedKeys: CategoryProps): string[];
10
12
  }
@@ -1,10 +1,12 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { BaseTheme } from "../common/baseTheme";
3
3
  import type { CategoryProps } from "../../props";
4
- export interface PaddingTheme extends Record<SizeKey, string> {
5
- }
6
- export declare class PaddingTheme extends BaseTheme {
7
- readonly defaultClasses: Record<SizeKey, string>;
4
+ export declare class PaddingTheme extends BaseTheme implements Record<SizeKey, string> {
5
+ xs: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
8
10
  constructor(initial?: Partial<Record<SizeKey, string>>);
9
11
  getClasses(extractedKeys: CategoryProps): string[];
10
12
  }
@@ -1,8 +1,5 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { PaddingTheme } from "./paddingTheme";
3
- export interface PlTheme extends Record<SizeKey, string> {
4
- }
5
3
  export declare class PlTheme extends PaddingTheme {
6
- readonly defaultClasses: Record<SizeKey, string>;
7
4
  constructor(sizeMap?: Record<SizeKey, string>);
8
5
  }
@@ -1,8 +1,5 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { PaddingTheme } from "./paddingTheme";
3
- export interface PxTheme extends Record<SizeKey, string> {
4
- }
5
3
  export declare class PxTheme extends PaddingTheme {
6
- readonly defaultClasses: Record<SizeKey, string>;
7
4
  constructor(sizeMap?: Record<SizeKey, string>);
8
5
  }
@@ -1,8 +1,5 @@
1
1
  import { SizeKey } from "../../props";
2
2
  import { PaddingTheme } from "./paddingTheme";
3
- export interface PyTheme extends Record<SizeKey, string> {
4
- }
5
3
  export declare class PyTheme extends PaddingTheme {
6
- readonly defaultClasses: Record<SizeKey, string>;
7
4
  constructor(sizeMap?: Record<SizeKey, string>);
8
5
  }
@@ -1,9 +1,12 @@
1
1
  import { BaseTheme } from "../common/baseTheme";
2
2
  import type { CategoryProps } from "../../props";
3
3
  import { SizeKey } from "../../props";
4
- export interface SizeTheme extends Record<SizeKey, string> {
5
- }
6
- export declare class SizeTheme extends BaseTheme {
4
+ export declare class SizeTheme extends BaseTheme implements Record<SizeKey, string> {
5
+ xs: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
7
10
  private readonly useDefaultKey;
8
11
  constructor(sizeMap?: Record<SizeKey, string>, useDefaultKey?: boolean);
9
12
  getClasses(extractedKeys: CategoryProps): string[];
@@ -0,0 +1,8 @@
1
+ import { FontFamilyKey, CategoryProps } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ export declare class FontFamilyTheme extends BaseTheme implements Record<FontFamilyKey, string> {
4
+ sans: string;
5
+ serif: string;
6
+ mono: string;
7
+ getClasses(extractedKeys: CategoryProps): string[];
8
+ }
@@ -0,0 +1,8 @@
1
+ import { FontStyleKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class FontStyleTheme extends BaseTheme implements Record<FontStyleKey, string> {
5
+ italic: string;
6
+ notItalic: string;
7
+ getClasses(extractedKeys: CategoryProps): string[];
8
+ }
@@ -0,0 +1,15 @@
1
+ import { FontWeightKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class FontWeightTheme extends BaseTheme implements Record<FontWeightKey, string> {
5
+ thin: string;
6
+ extralight: string;
7
+ light: string;
8
+ normal: string;
9
+ medium: string;
10
+ semibold: string;
11
+ bold: string;
12
+ extrabold: string;
13
+ black: string;
14
+ getClasses(extractedKeys: CategoryProps): string[];
15
+ }
@@ -0,0 +1,10 @@
1
+ import { TextAlignKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class TextAlignTheme extends BaseTheme implements Record<TextAlignKey, string> {
5
+ textLeft: string;
6
+ textCenter: string;
7
+ textRight: string;
8
+ textJustify: string;
9
+ getClasses(extractedKeys: CategoryProps): string[];
10
+ }
@@ -0,0 +1,10 @@
1
+ import { TextDecorationKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class TextDecorationTheme extends BaseTheme implements Record<TextDecorationKey, string> {
5
+ underline: string;
6
+ lineThrough: string;
7
+ noUnderline: string;
8
+ overline: string;
9
+ getClasses(extractedKeys: CategoryProps): string[];
10
+ }
@@ -0,0 +1,10 @@
1
+ import { TextTransformKey } from "../../props";
2
+ import { BaseTheme } from "../common/baseTheme";
3
+ import type { CategoryProps } from "../../props";
4
+ export declare class TextTransformTheme extends BaseTheme implements Record<TextTransformKey, string> {
5
+ uppercase: string;
6
+ lowercase: string;
7
+ capitalize: string;
8
+ normalCase: string;
9
+ getClasses(extractedKeys: CategoryProps): string[];
10
+ }