@vaneui/ui 0.2.1-alpha.20250810113755.26a118a → 0.2.1-alpha.20250812182914.4e44540

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 (34) hide show
  1. package/dist/components/examples/ref-usage-examples.d.ts +29 -0
  2. package/dist/components/examples/theme-types-strictness-compile-check.d.ts +5 -0
  3. package/dist/components/tests/grid2.test.d.ts +1 -0
  4. package/dist/components/tests/ref-support-comprehensive.test.d.ts +1 -0
  5. package/dist/components/tests/ref-support.test.d.ts +1 -0
  6. package/dist/components/tests/theme-types-strictness.test.d.ts +1 -0
  7. package/dist/components/themeContext.d.ts +70 -50
  8. package/dist/components/themedComponent.d.ts +1 -1
  9. package/dist/components/ui/badge.d.ts +2 -2
  10. package/dist/components/ui/button.d.ts +2 -2
  11. package/dist/components/ui/card.d.ts +2 -2
  12. package/dist/components/ui/checkbox.d.ts +83 -3
  13. package/dist/components/ui/chip.d.ts +2 -2
  14. package/dist/components/ui/code.d.ts +121 -3
  15. package/dist/components/ui/col.d.ts +2 -2
  16. package/dist/components/ui/container.d.ts +2 -2
  17. package/dist/components/ui/divider.d.ts +74 -3
  18. package/dist/components/ui/grid.d.ts +4 -3
  19. package/dist/components/ui/img.d.ts +81 -3
  20. package/dist/components/ui/label.d.ts +109 -3
  21. package/dist/components/ui/layout.d.ts +1 -1
  22. package/dist/components/ui/props/keys.d.ts +1 -1
  23. package/dist/components/ui/row.d.ts +2 -2
  24. package/dist/components/ui/section.d.ts +2 -2
  25. package/dist/components/ui/stack.d.ts +2 -2
  26. package/dist/components/ui/theme/gridTheme.d.ts +1 -0
  27. package/dist/components/ui/typography.d.ts +110 -9
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.esm.js +84 -75
  30. package/dist/index.esm.js.map +1 -1
  31. package/dist/index.js +83 -73
  32. package/dist/index.js.map +1 -1
  33. package/dist/ui.css +11 -0
  34. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Ref Support Examples for VaneUI Components
3
+ *
4
+ * All VaneUI components now support refs through React.forwardRef.
5
+ * This file demonstrates various use cases for refs with different components.
6
+ */
7
+ /**
8
+ * Basic UI Components with Refs
9
+ * Each component is properly typed with its corresponding HTML element
10
+ */
11
+ export declare const BasicComponentRefs: () => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * Typography Components with Refs
14
+ */
15
+ export declare const TypographyComponentRefs: () => import("react/jsx-runtime").JSX.Element;
16
+ /**
17
+ * Layout Components with Refs
18
+ */
19
+ export declare const LayoutComponentRefs: () => import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * Practical Use Cases for Refs
22
+ */
23
+ export declare const PracticalRefUseCases: () => import("react/jsx-runtime").JSX.Element;
24
+ /**
25
+ * Working with Custom Tags and Refs
26
+ * Note: When using custom tags, the ref type becomes 'any'
27
+ */
28
+ export declare const CustomTagsWithRefs: () => import("react/jsx-runtime").JSX.Element;
29
+ export declare const CustomComponentWithRef: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ThemeDefaults, ThemeExtraClasses } from '../../index';
2
+ declare const validDefaults: ThemeDefaults;
3
+ declare const validExtraClasses: ThemeExtraClasses;
4
+ declare const validCheckboxConfig: ThemeDefaults;
5
+ export { validDefaults, validExtraClasses, validCheckboxConfig };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -30,6 +30,7 @@ export interface ThemeProps {
30
30
  col: ComponentTheme<ColProps, ColTheme>;
31
31
  stack: ComponentTheme<StackProps, StackTheme>;
32
32
  section: ComponentTheme<SectionProps, SectionTheme>;
33
+ grid2: ComponentTheme<GridProps, GridTheme>;
33
34
  grid3: ComponentTheme<GridProps, GridTheme>;
34
35
  grid4: ComponentTheme<GridProps, GridTheme>;
35
36
  pageTitle: ComponentTheme<TypographyProps, TypographyTheme>;
@@ -49,63 +50,81 @@ export interface ThemeProps {
49
50
  }
50
51
  export type PartialTheme = DeepPartial<ThemeProps>;
51
52
  export declare const defaultTheme: ThemeProps;
53
+ /**
54
+ * Helper type to extract boolean keys from component props.
55
+ * This ensures only valid component prop keys can be used in ThemeDefaults.
56
+ * For example, ButtonProps will only allow keys like 'primary', 'secondary', 'filled', etc.
57
+ */
58
+ type BooleanKeys<T> = {
59
+ [K in keyof T as T[K] extends boolean | undefined ? K : never]: boolean;
60
+ };
61
+ /**
62
+ * Helper type to get all boolean keys from component props as string-valued keys.
63
+ * This ensures only valid component prop keys can be used in ThemeExtraClasses.
64
+ * The keys are the same as BooleanKeys, but the values are strings (CSS class names).
65
+ */
66
+ type StringValueKeys<T> = {
67
+ [K in keyof T as T[K] extends boolean | undefined ? K : never]: string;
68
+ };
52
69
  export type ThemeDefaults = {
53
- button?: Record<string, boolean>;
54
- badge?: Record<string, boolean>;
55
- chip?: Record<string, boolean>;
56
- code?: Record<string, boolean>;
57
- card?: Record<string, boolean>;
58
- divider?: Record<string, boolean>;
59
- container?: Record<string, boolean>;
60
- row?: Record<string, boolean>;
61
- col?: Record<string, boolean>;
62
- stack?: Record<string, boolean>;
63
- section?: Record<string, boolean>;
64
- grid3?: Record<string, boolean>;
65
- grid4?: Record<string, boolean>;
66
- pageTitle?: Record<string, boolean>;
67
- sectionTitle?: Record<string, boolean>;
68
- title?: Record<string, boolean>;
69
- text?: Record<string, boolean>;
70
- link?: Record<string, boolean>;
71
- list?: Record<string, boolean>;
72
- listItem?: Record<string, boolean>;
70
+ button?: Partial<BooleanKeys<ButtonProps>>;
71
+ badge?: Partial<BooleanKeys<BadgeProps>>;
72
+ chip?: Partial<BooleanKeys<ChipProps>>;
73
+ code?: Partial<BooleanKeys<CodeProps>>;
74
+ card?: Partial<BooleanKeys<CardProps>>;
75
+ divider?: Partial<BooleanKeys<DividerProps>>;
76
+ container?: Partial<BooleanKeys<ContainerProps>>;
77
+ row?: Partial<BooleanKeys<RowProps>>;
78
+ col?: Partial<BooleanKeys<ColProps>>;
79
+ stack?: Partial<BooleanKeys<StackProps>>;
80
+ section?: Partial<BooleanKeys<SectionProps>>;
81
+ grid2?: Partial<BooleanKeys<GridProps>>;
82
+ grid3?: Partial<BooleanKeys<GridProps>>;
83
+ grid4?: Partial<BooleanKeys<GridProps>>;
84
+ pageTitle?: Partial<BooleanKeys<TypographyProps>>;
85
+ sectionTitle?: Partial<BooleanKeys<TypographyProps>>;
86
+ title?: Partial<BooleanKeys<TypographyProps>>;
87
+ text?: Partial<BooleanKeys<TypographyProps>>;
88
+ link?: Partial<BooleanKeys<TypographyProps>>;
89
+ list?: Partial<BooleanKeys<ListProps>>;
90
+ listItem?: Partial<BooleanKeys<TypographyProps>>;
73
91
  checkbox?: {
74
- input?: Record<string, boolean>;
75
- check?: Record<string, boolean>;
76
- wrapper?: Record<string, boolean>;
92
+ input?: Partial<BooleanKeys<CheckboxProps>>;
93
+ check?: Partial<BooleanKeys<CheckboxProps>>;
94
+ wrapper?: Partial<BooleanKeys<CheckboxProps>>;
77
95
  };
78
- label?: Record<string, boolean>;
79
- img?: Record<string, boolean>;
96
+ label?: Partial<BooleanKeys<LabelProps>>;
97
+ img?: Partial<BooleanKeys<ImgProps>>;
80
98
  };
81
99
  export type ThemeExtraClasses = {
82
- button?: Record<string, string>;
83
- badge?: Record<string, string>;
84
- chip?: Record<string, string>;
85
- code?: Record<string, string>;
86
- card?: Record<string, string>;
87
- divider?: Record<string, string>;
88
- container?: Record<string, string>;
89
- row?: Record<string, string>;
90
- col?: Record<string, string>;
91
- stack?: Record<string, string>;
92
- section?: Record<string, string>;
93
- grid3?: Record<string, string>;
94
- grid4?: Record<string, string>;
95
- pageTitle?: Record<string, string>;
96
- sectionTitle?: Record<string, string>;
97
- title?: Record<string, string>;
98
- text?: Record<string, string>;
99
- link?: Record<string, string>;
100
- list?: Record<string, string>;
101
- listItem?: Record<string, string>;
100
+ button?: Partial<StringValueKeys<ButtonProps>>;
101
+ badge?: Partial<StringValueKeys<BadgeProps>>;
102
+ chip?: Partial<StringValueKeys<ChipProps>>;
103
+ code?: Partial<StringValueKeys<CodeProps>>;
104
+ card?: Partial<StringValueKeys<CardProps>>;
105
+ divider?: Partial<StringValueKeys<DividerProps>>;
106
+ container?: Partial<StringValueKeys<ContainerProps>>;
107
+ row?: Partial<StringValueKeys<RowProps>>;
108
+ col?: Partial<StringValueKeys<ColProps>>;
109
+ stack?: Partial<StringValueKeys<StackProps>>;
110
+ section?: Partial<StringValueKeys<SectionProps>>;
111
+ grid2?: Partial<StringValueKeys<GridProps>>;
112
+ grid3?: Partial<StringValueKeys<GridProps>>;
113
+ grid4?: Partial<StringValueKeys<GridProps>>;
114
+ pageTitle?: Partial<StringValueKeys<TypographyProps>>;
115
+ sectionTitle?: Partial<StringValueKeys<TypographyProps>>;
116
+ title?: Partial<StringValueKeys<TypographyProps>>;
117
+ text?: Partial<StringValueKeys<TypographyProps>>;
118
+ link?: Partial<StringValueKeys<TypographyProps>>;
119
+ list?: Partial<StringValueKeys<ListProps>>;
120
+ listItem?: Partial<StringValueKeys<TypographyProps>>;
102
121
  checkbox?: {
103
- input?: Record<string, string>;
104
- check?: Record<string, string>;
105
- wrapper?: Record<string, string>;
122
+ input?: Partial<StringValueKeys<CheckboxProps>>;
123
+ check?: Partial<StringValueKeys<CheckboxProps>>;
124
+ wrapper?: Partial<StringValueKeys<CheckboxProps>>;
106
125
  };
107
- label?: Record<string, string>;
108
- img?: Record<string, string>;
126
+ label?: Partial<StringValueKeys<LabelProps>>;
127
+ img?: Partial<StringValueKeys<ImgProps>>;
109
128
  };
110
129
  export interface ThemeProviderProps {
111
130
  children: React.ReactNode;
@@ -116,3 +135,4 @@ export interface ThemeProviderProps {
116
135
  }
117
136
  export declare function ThemeProvider({ children, theme: themeObject, themeDefaults, extraClasses, themeOverride }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
118
137
  export declare function useTheme(): ThemeProps;
138
+ export {};
@@ -8,5 +8,5 @@ type ComponentProps = {
8
8
  export type ThemedComponentProps<P extends ComponentProps, T extends object> = P & {
9
9
  theme: ComponentTheme<any, T>;
10
10
  };
11
- export declare function ThemedComponent<P extends ComponentProps, T extends object>(allProps: ThemedComponentProps<P, T>): import("react/jsx-runtime").JSX.Element;
11
+ export declare const ThemedComponent: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
12
12
  export {};
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { BadgeProps } from './props/props';
3
- export declare const Badge: (props: BadgeProps) => JSX.Element;
3
+ export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { ButtonProps } from './props';
3
- export declare const Button: (props: ButtonProps) => JSX.Element;
3
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { CardProps } from "./props/props";
3
- export declare const Card: (props: CardProps) => JSX.Element;
3
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,83 @@
1
- import { JSX } from 'react';
2
- import { CheckboxProps } from './props';
3
- export declare const Checkbox: (props: CheckboxProps) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Checkbox: React.ForwardRefExoticComponent<{
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ } & React.InputHTMLAttributes<HTMLInputElement> & {
6
+ transparent?: boolean | undefined;
7
+ border?: boolean | undefined;
8
+ shadow?: boolean | undefined;
9
+ ring?: boolean | undefined;
10
+ default?: boolean | undefined;
11
+ accent?: boolean | undefined;
12
+ primary?: boolean | undefined;
13
+ secondary?: boolean | undefined;
14
+ tertiary?: boolean | undefined;
15
+ success?: boolean | undefined;
16
+ danger?: boolean | undefined;
17
+ warning?: boolean | undefined;
18
+ info?: boolean | undefined;
19
+ noBorder?: boolean | undefined;
20
+ inline?: boolean | undefined;
21
+ block?: boolean | undefined;
22
+ inlineBlock?: boolean | undefined;
23
+ flex?: boolean | undefined;
24
+ inlineFlex?: boolean | undefined;
25
+ grid?: boolean | undefined;
26
+ inlineGrid?: boolean | undefined;
27
+ contents?: boolean | undefined;
28
+ table?: boolean | undefined;
29
+ tableCell?: boolean | undefined;
30
+ hidden?: boolean | undefined;
31
+ xsHide?: boolean | undefined;
32
+ smHide?: boolean | undefined;
33
+ mdHide?: boolean | undefined;
34
+ lgHide?: boolean | undefined;
35
+ xlHide?: boolean | undefined;
36
+ itemsStart?: boolean | undefined;
37
+ itemsEnd?: boolean | undefined;
38
+ itemsCenter?: boolean | undefined;
39
+ itemsBaseline?: boolean | undefined;
40
+ itemsStretch?: boolean | undefined;
41
+ justifyStart?: boolean | undefined;
42
+ justifyEnd?: boolean | undefined;
43
+ justifyCenter?: boolean | undefined;
44
+ justifyBetween?: boolean | undefined;
45
+ justifyAround?: boolean | undefined;
46
+ justifyEvenly?: boolean | undefined;
47
+ justifyStretch?: boolean | undefined;
48
+ justifyBaseline?: boolean | undefined;
49
+ overflowAuto?: boolean | undefined;
50
+ overflowHidden?: boolean | undefined;
51
+ overflowClip?: boolean | undefined;
52
+ overflowVisible?: boolean | undefined;
53
+ overflowScroll?: boolean | undefined;
54
+ overflowXAuto?: boolean | undefined;
55
+ overflowYAuto?: boolean | undefined;
56
+ overflowXHidden?: boolean | undefined;
57
+ overflowYHidden?: boolean | undefined;
58
+ overflowXClip?: boolean | undefined;
59
+ overflowYClip?: boolean | undefined;
60
+ overflowXVisible?: boolean | undefined;
61
+ overflowYVisible?: boolean | undefined;
62
+ overflowXScroll?: boolean | undefined;
63
+ overflowYScroll?: boolean | undefined;
64
+ relative?: boolean | undefined;
65
+ absolute?: boolean | undefined;
66
+ fixed?: boolean | undefined;
67
+ sticky?: boolean | undefined;
68
+ static?: boolean | undefined;
69
+ noRing?: boolean | undefined;
70
+ noShadow?: boolean | undefined;
71
+ pill?: boolean | undefined;
72
+ sharp?: boolean | undefined;
73
+ rounded?: boolean | undefined;
74
+ xs?: boolean | undefined;
75
+ sm?: boolean | undefined;
76
+ md?: boolean | undefined;
77
+ lg?: boolean | undefined;
78
+ xl?: boolean | undefined;
79
+ filled?: boolean | undefined;
80
+ outline?: boolean | undefined;
81
+ } & {
82
+ tag?: React.ElementType;
83
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { ChipProps } from './props/props';
3
- export declare const Chip: (props: ChipProps) => JSX.Element;
3
+ export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
@@ -1,3 +1,121 @@
1
- import { JSX } from 'react';
2
- import { CodeProps } from './props/props';
3
- export declare const Code: (props: CodeProps) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Code: React.ForwardRefExoticComponent<{
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ } & React.HTMLAttributes<HTMLElement> & {
6
+ transparent?: boolean | undefined;
7
+ gap?: boolean | undefined;
8
+ reverse?: boolean | undefined;
9
+ padding?: boolean | undefined;
10
+ border?: boolean | undefined;
11
+ shadow?: boolean | undefined;
12
+ ring?: boolean | undefined;
13
+ default?: boolean | undefined;
14
+ accent?: boolean | undefined;
15
+ primary?: boolean | undefined;
16
+ secondary?: boolean | undefined;
17
+ tertiary?: boolean | undefined;
18
+ success?: boolean | undefined;
19
+ danger?: boolean | undefined;
20
+ warning?: boolean | undefined;
21
+ info?: boolean | undefined;
22
+ noBorder?: boolean | undefined;
23
+ inline?: boolean | undefined;
24
+ block?: boolean | undefined;
25
+ inlineBlock?: boolean | undefined;
26
+ flex?: boolean | undefined;
27
+ inlineFlex?: boolean | undefined;
28
+ grid?: boolean | undefined;
29
+ inlineGrid?: boolean | undefined;
30
+ contents?: boolean | undefined;
31
+ table?: boolean | undefined;
32
+ tableCell?: boolean | undefined;
33
+ hidden?: boolean | undefined;
34
+ row?: boolean | undefined;
35
+ column?: boolean | undefined;
36
+ rowReverse?: boolean | undefined;
37
+ columnReverse?: boolean | undefined;
38
+ sans?: boolean | undefined;
39
+ serif?: boolean | undefined;
40
+ mono?: boolean | undefined;
41
+ italic?: boolean | undefined;
42
+ notItalic?: boolean | undefined;
43
+ thin?: boolean | undefined;
44
+ extralight?: boolean | undefined;
45
+ light?: boolean | undefined;
46
+ normal?: boolean | undefined;
47
+ medium?: boolean | undefined;
48
+ semibold?: boolean | undefined;
49
+ bold?: boolean | undefined;
50
+ extrabold?: boolean | undefined;
51
+ black?: boolean | undefined;
52
+ noGap?: boolean | undefined;
53
+ xsHide?: boolean | undefined;
54
+ smHide?: boolean | undefined;
55
+ mdHide?: boolean | undefined;
56
+ lgHide?: boolean | undefined;
57
+ xlHide?: boolean | undefined;
58
+ itemsStart?: boolean | undefined;
59
+ itemsEnd?: boolean | undefined;
60
+ itemsCenter?: boolean | undefined;
61
+ itemsBaseline?: boolean | undefined;
62
+ itemsStretch?: boolean | undefined;
63
+ justifyStart?: boolean | undefined;
64
+ justifyEnd?: boolean | undefined;
65
+ justifyCenter?: boolean | undefined;
66
+ justifyBetween?: boolean | undefined;
67
+ justifyAround?: boolean | undefined;
68
+ justifyEvenly?: boolean | undefined;
69
+ justifyStretch?: boolean | undefined;
70
+ justifyBaseline?: boolean | undefined;
71
+ overflowAuto?: boolean | undefined;
72
+ overflowHidden?: boolean | undefined;
73
+ overflowClip?: boolean | undefined;
74
+ overflowVisible?: boolean | undefined;
75
+ overflowScroll?: boolean | undefined;
76
+ overflowXAuto?: boolean | undefined;
77
+ overflowYAuto?: boolean | undefined;
78
+ overflowXHidden?: boolean | undefined;
79
+ overflowYHidden?: boolean | undefined;
80
+ overflowXClip?: boolean | undefined;
81
+ overflowYClip?: boolean | undefined;
82
+ overflowXVisible?: boolean | undefined;
83
+ overflowYVisible?: boolean | undefined;
84
+ overflowXScroll?: boolean | undefined;
85
+ overflowYScroll?: boolean | undefined;
86
+ noPadding?: boolean | undefined;
87
+ relative?: boolean | undefined;
88
+ absolute?: boolean | undefined;
89
+ fixed?: boolean | undefined;
90
+ sticky?: boolean | undefined;
91
+ static?: boolean | undefined;
92
+ noRing?: boolean | undefined;
93
+ noShadow?: boolean | undefined;
94
+ pill?: boolean | undefined;
95
+ sharp?: boolean | undefined;
96
+ rounded?: boolean | undefined;
97
+ xs?: boolean | undefined;
98
+ sm?: boolean | undefined;
99
+ md?: boolean | undefined;
100
+ lg?: boolean | undefined;
101
+ xl?: boolean | undefined;
102
+ textLeft?: boolean | undefined;
103
+ textCenter?: boolean | undefined;
104
+ textRight?: boolean | undefined;
105
+ textJustify?: boolean | undefined;
106
+ underline?: boolean | undefined;
107
+ lineThrough?: boolean | undefined;
108
+ noUnderline?: boolean | undefined;
109
+ overline?: boolean | undefined;
110
+ uppercase?: boolean | undefined;
111
+ lowercase?: boolean | undefined;
112
+ capitalize?: boolean | undefined;
113
+ normalCase?: boolean | undefined;
114
+ filled?: boolean | undefined;
115
+ outline?: boolean | undefined;
116
+ flexWrap?: boolean | undefined;
117
+ flexNoWrap?: boolean | undefined;
118
+ flexWrapReverse?: boolean | undefined;
119
+ } & {
120
+ tag?: React.ElementType;
121
+ } & React.RefAttributes<HTMLElement>>;
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { ColProps } from './props/props';
3
- export declare const Col: (props: ColProps) => JSX.Element;
3
+ export declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { ContainerProps } from './props/props';
3
- export declare const Container: (props: ContainerProps) => JSX.Element;
3
+ export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,74 @@
1
- import { JSX } from 'react';
2
- import { DividerProps } from './props/props';
3
- export declare const Divider: (props: DividerProps) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Divider: React.ForwardRefExoticComponent<{
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ } & React.HTMLAttributes<HTMLDivElement> & {
6
+ transparent?: boolean | undefined;
7
+ padding?: boolean | undefined;
8
+ default?: boolean | undefined;
9
+ accent?: boolean | undefined;
10
+ primary?: boolean | undefined;
11
+ secondary?: boolean | undefined;
12
+ tertiary?: boolean | undefined;
13
+ success?: boolean | undefined;
14
+ danger?: boolean | undefined;
15
+ warning?: boolean | undefined;
16
+ info?: boolean | undefined;
17
+ inline?: boolean | undefined;
18
+ block?: boolean | undefined;
19
+ inlineBlock?: boolean | undefined;
20
+ flex?: boolean | undefined;
21
+ inlineFlex?: boolean | undefined;
22
+ grid?: boolean | undefined;
23
+ inlineGrid?: boolean | undefined;
24
+ contents?: boolean | undefined;
25
+ table?: boolean | undefined;
26
+ tableCell?: boolean | undefined;
27
+ hidden?: boolean | undefined;
28
+ xsHide?: boolean | undefined;
29
+ smHide?: boolean | undefined;
30
+ mdHide?: boolean | undefined;
31
+ lgHide?: boolean | undefined;
32
+ xlHide?: boolean | undefined;
33
+ itemsStart?: boolean | undefined;
34
+ itemsEnd?: boolean | undefined;
35
+ itemsCenter?: boolean | undefined;
36
+ itemsBaseline?: boolean | undefined;
37
+ itemsStretch?: boolean | undefined;
38
+ justifyStart?: boolean | undefined;
39
+ justifyEnd?: boolean | undefined;
40
+ justifyCenter?: boolean | undefined;
41
+ justifyBetween?: boolean | undefined;
42
+ justifyAround?: boolean | undefined;
43
+ justifyEvenly?: boolean | undefined;
44
+ justifyStretch?: boolean | undefined;
45
+ justifyBaseline?: boolean | undefined;
46
+ overflowAuto?: boolean | undefined;
47
+ overflowHidden?: boolean | undefined;
48
+ overflowClip?: boolean | undefined;
49
+ overflowVisible?: boolean | undefined;
50
+ overflowScroll?: boolean | undefined;
51
+ overflowXAuto?: boolean | undefined;
52
+ overflowYAuto?: boolean | undefined;
53
+ overflowXHidden?: boolean | undefined;
54
+ overflowYHidden?: boolean | undefined;
55
+ overflowXClip?: boolean | undefined;
56
+ overflowYClip?: boolean | undefined;
57
+ overflowXVisible?: boolean | undefined;
58
+ overflowYVisible?: boolean | undefined;
59
+ overflowXScroll?: boolean | undefined;
60
+ overflowYScroll?: boolean | undefined;
61
+ noPadding?: boolean | undefined;
62
+ relative?: boolean | undefined;
63
+ absolute?: boolean | undefined;
64
+ fixed?: boolean | undefined;
65
+ sticky?: boolean | undefined;
66
+ static?: boolean | undefined;
67
+ xs?: boolean | undefined;
68
+ sm?: boolean | undefined;
69
+ md?: boolean | undefined;
70
+ lg?: boolean | undefined;
71
+ xl?: boolean | undefined;
72
+ } & {
73
+ tag?: React.ElementType;
74
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,5 @@
1
- import { JSX } from 'react';
1
+ import React from 'react';
2
2
  import { GridProps } from './props/props';
3
- export declare const Grid3: (props: GridProps) => JSX.Element;
4
- export declare const Grid4: (props: GridProps) => JSX.Element;
3
+ export declare const Grid2: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const Grid3: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
5
+ export declare const Grid4: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,81 @@
1
- import { JSX } from 'react';
2
- import { ImgProps } from './props';
3
- export declare const Img: (props: ImgProps) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Img: React.ForwardRefExoticComponent<{
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ } & React.ImgHTMLAttributes<HTMLImageElement> & {
6
+ transparent?: boolean | undefined;
7
+ border?: boolean | undefined;
8
+ shadow?: boolean | undefined;
9
+ ring?: boolean | undefined;
10
+ default?: boolean | undefined;
11
+ accent?: boolean | undefined;
12
+ primary?: boolean | undefined;
13
+ secondary?: boolean | undefined;
14
+ tertiary?: boolean | undefined;
15
+ success?: boolean | undefined;
16
+ danger?: boolean | undefined;
17
+ warning?: boolean | undefined;
18
+ info?: boolean | undefined;
19
+ noBorder?: boolean | undefined;
20
+ inline?: boolean | undefined;
21
+ block?: boolean | undefined;
22
+ inlineBlock?: boolean | undefined;
23
+ flex?: boolean | undefined;
24
+ inlineFlex?: boolean | undefined;
25
+ grid?: boolean | undefined;
26
+ inlineGrid?: boolean | undefined;
27
+ contents?: boolean | undefined;
28
+ table?: boolean | undefined;
29
+ tableCell?: boolean | undefined;
30
+ hidden?: boolean | undefined;
31
+ xsHide?: boolean | undefined;
32
+ smHide?: boolean | undefined;
33
+ mdHide?: boolean | undefined;
34
+ lgHide?: boolean | undefined;
35
+ xlHide?: boolean | undefined;
36
+ itemsStart?: boolean | undefined;
37
+ itemsEnd?: boolean | undefined;
38
+ itemsCenter?: boolean | undefined;
39
+ itemsBaseline?: boolean | undefined;
40
+ itemsStretch?: boolean | undefined;
41
+ justifyStart?: boolean | undefined;
42
+ justifyEnd?: boolean | undefined;
43
+ justifyCenter?: boolean | undefined;
44
+ justifyBetween?: boolean | undefined;
45
+ justifyAround?: boolean | undefined;
46
+ justifyEvenly?: boolean | undefined;
47
+ justifyStretch?: boolean | undefined;
48
+ justifyBaseline?: boolean | undefined;
49
+ overflowAuto?: boolean | undefined;
50
+ overflowHidden?: boolean | undefined;
51
+ overflowClip?: boolean | undefined;
52
+ overflowVisible?: boolean | undefined;
53
+ overflowScroll?: boolean | undefined;
54
+ overflowXAuto?: boolean | undefined;
55
+ overflowYAuto?: boolean | undefined;
56
+ overflowXHidden?: boolean | undefined;
57
+ overflowYHidden?: boolean | undefined;
58
+ overflowXClip?: boolean | undefined;
59
+ overflowYClip?: boolean | undefined;
60
+ overflowXVisible?: boolean | undefined;
61
+ overflowYVisible?: boolean | undefined;
62
+ overflowXScroll?: boolean | undefined;
63
+ overflowYScroll?: boolean | undefined;
64
+ relative?: boolean | undefined;
65
+ absolute?: boolean | undefined;
66
+ fixed?: boolean | undefined;
67
+ sticky?: boolean | undefined;
68
+ static?: boolean | undefined;
69
+ noRing?: boolean | undefined;
70
+ noShadow?: boolean | undefined;
71
+ pill?: boolean | undefined;
72
+ sharp?: boolean | undefined;
73
+ rounded?: boolean | undefined;
74
+ xs?: boolean | undefined;
75
+ sm?: boolean | undefined;
76
+ md?: boolean | undefined;
77
+ lg?: boolean | undefined;
78
+ xl?: boolean | undefined;
79
+ } & {
80
+ tag?: React.ElementType;
81
+ } & React.RefAttributes<HTMLImageElement>>;