@tamagui/button 2.7.7 → 3.0.0-beta.643.1
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/cjs/Button.cjs +180 -266
- package/dist/cjs/Button.native.cjs +224 -0
- package/dist/cjs/Button.native.js +200 -271
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Button.mjs +168 -255
- package/dist/esm/Button.mjs.map +1 -1
- package/dist/esm/Button.native.js +188 -261
- package/dist/esm/Button.native.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/index.native.js +1 -2
- package/dist/jsx/Button.mjs +168 -255
- package/dist/jsx/Button.mjs.map +1 -1
- package/dist/jsx/Button.native.cjs +224 -0
- package/dist/jsx/Button.native.js +200 -271
- package/dist/jsx/Button.native.js.map +1 -1
- package/dist/jsx/index.js +1 -2
- package/dist/jsx/index.mjs +1 -2
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +11 -12
- package/src/Button.tsx +222 -280
- package/types/Button.d.ts +218 -114
- package/types/Button.d.ts.map +1 -1
- package/dist/cjs/Button.test.cjs +0 -37
- package/dist/cjs/Button.test.native.js +0 -40
- package/dist/cjs/Button.test.native.js.map +0 -1
- package/dist/esm/Button.test.mjs +0 -38
- package/dist/esm/Button.test.mjs.map +0 -1
- package/dist/esm/Button.test.native.js +0 -38
- package/dist/esm/Button.test.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/Button.test.mjs +0 -38
- package/dist/jsx/Button.test.mjs.map +0 -1
- package/dist/jsx/Button.test.native.js +0 -40
- package/dist/jsx/Button.test.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/src/Button.test.tsx +0 -45
- package/types/Button.test.d.ts +0 -2
- package/types/Button.test.d.ts.map +0 -1
package/types/Button.d.ts
CHANGED
|
@@ -1,38 +1,105 @@
|
|
|
1
|
-
import type { TextContextStyles } from '@tamagui/text';
|
|
2
|
-
import type { GetProps
|
|
3
|
-
import type { FunctionComponent, JSX } from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { TextContextStyles, TextParentStyles } from '@tamagui/text';
|
|
2
|
+
import type { GetProps } from '@tamagui/web';
|
|
3
|
+
import type { FunctionComponent, JSX, ReactNode } from 'react';
|
|
4
|
+
export declare const ButtonContext: import("@tamagui/web").StyledContext<TextContextStyles, "color" | "ellipsis" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "maxFontSizeMultiplier" | "textAlign">;
|
|
5
|
+
export declare const ButtonFrame: FunctionComponent<Omit<import("@tamagui/web").StackNonStyleProps, "disabled" | "ellipsis" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "maxFontSizeMultiplier" | "textAlign" | keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
8
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
9
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
10
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
11
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
12
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
13
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
14
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
15
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & {
|
|
16
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
17
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
20
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
21
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
22
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
23
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
24
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
25
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
26
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
27
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
28
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
31
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
32
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
33
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
34
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
35
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
36
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
37
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
38
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
39
|
+
};
|
|
40
|
+
export declare const ButtonText: FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
41
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
42
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
43
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
44
|
+
};
|
|
45
|
+
export type ButtonIconProps = {
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
color?: TextContextStyles['color'];
|
|
48
|
+
scaleIcon?: number;
|
|
49
|
+
size?: number;
|
|
9
50
|
};
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
type IconProp = JSX.Element | FunctionComponent<{
|
|
51
|
+
export declare const ButtonIcon: ({ children, color, scaleIcon, size }: ButtonIconProps) => any;
|
|
52
|
+
type ButtonIconInput = JSX.Element | FunctionComponent<{
|
|
53
|
+
color?: any;
|
|
54
|
+
size?: any;
|
|
55
|
+
}> | ((props: {
|
|
16
56
|
color?: any;
|
|
17
57
|
size?: any;
|
|
18
|
-
}
|
|
58
|
+
}) => ReactNode) | null;
|
|
59
|
+
export type ButtonBehaviorProps = TextParentStyles & {
|
|
60
|
+
icon?: ButtonIconInput;
|
|
61
|
+
iconAfter?: ButtonIconInput;
|
|
62
|
+
iconSize?: number;
|
|
63
|
+
scaleIcon?: number;
|
|
64
|
+
type?: 'submit' | 'reset' | 'button';
|
|
65
|
+
form?: string;
|
|
66
|
+
formAction?: string;
|
|
67
|
+
formEncType?: string;
|
|
68
|
+
formMethod?: string;
|
|
69
|
+
formNoValidate?: boolean;
|
|
70
|
+
formTarget?: string;
|
|
71
|
+
name?: string;
|
|
72
|
+
value?: string | readonly string[] | number;
|
|
73
|
+
};
|
|
74
|
+
export type UseButtonOptions = {
|
|
75
|
+
Text?: any;
|
|
76
|
+
iconColor?: TextContextStyles['color'];
|
|
77
|
+
iconSize?: number;
|
|
78
|
+
textProps?: Record<string, unknown>;
|
|
79
|
+
};
|
|
80
|
+
export declare function useButton<Props extends ButtonBehaviorProps>(propsIn: Props, { Text, iconColor: iconColorOption, iconSize: iconSizeOption, textProps: textPropsOption, }?: UseButtonOptions): {
|
|
81
|
+
isNested: boolean;
|
|
82
|
+
props: Props;
|
|
83
|
+
};
|
|
19
84
|
declare const ButtonComponent: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
20
|
-
size?: number | SizeTokens | undefined;
|
|
21
|
-
variant?: "outlined" | undefined;
|
|
22
85
|
disabled?: boolean | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
86
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
87
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
88
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
89
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
90
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
91
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
92
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
93
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
94
|
+
}>, "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "icon" | "iconAfter" | "iconSize" | "name" | "noTextWrap" | "scaleIcon" | "textProps" | "type" | "value" | keyof TextContextStyles> & TextContextStyles & {
|
|
28
95
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
29
96
|
noTextWrap?: boolean;
|
|
30
97
|
} & {
|
|
31
|
-
icon?:
|
|
32
|
-
iconAfter?:
|
|
98
|
+
icon?: ButtonIconInput;
|
|
99
|
+
iconAfter?: ButtonIconInput;
|
|
100
|
+
iconSize?: number;
|
|
33
101
|
scaleIcon?: number;
|
|
34
|
-
|
|
35
|
-
type?: "submit" | "reset" | "button";
|
|
102
|
+
type?: 'submit' | 'reset' | 'button';
|
|
36
103
|
form?: string;
|
|
37
104
|
formAction?: string;
|
|
38
105
|
formEncType?: string;
|
|
@@ -41,15 +108,15 @@ declare const ButtonComponent: import("@tamagui/web").TamaguiComponent<Omit<impo
|
|
|
41
108
|
formTarget?: string;
|
|
42
109
|
name?: string;
|
|
43
110
|
value?: string | readonly string[] | number;
|
|
44
|
-
}, import("@tamagui/web").
|
|
111
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods), import("@tamagui/web").StackNonStyleProps & TextContextStyles & {
|
|
45
112
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
46
113
|
noTextWrap?: boolean;
|
|
47
114
|
} & {
|
|
48
|
-
icon?:
|
|
49
|
-
iconAfter?:
|
|
115
|
+
icon?: ButtonIconInput;
|
|
116
|
+
iconAfter?: ButtonIconInput;
|
|
117
|
+
iconSize?: number;
|
|
50
118
|
scaleIcon?: number;
|
|
51
|
-
|
|
52
|
-
type?: "submit" | "reset" | "button";
|
|
119
|
+
type?: 'submit' | 'reset' | 'button';
|
|
53
120
|
form?: string;
|
|
54
121
|
formAction?: string;
|
|
55
122
|
formEncType?: string;
|
|
@@ -59,31 +126,35 @@ declare const ButtonComponent: import("@tamagui/web").TamaguiComponent<Omit<impo
|
|
|
59
126
|
name?: string;
|
|
60
127
|
value?: string | readonly string[] | number;
|
|
61
128
|
}, import("@tamagui/web").StackStyleBase, {
|
|
62
|
-
size?: number | SizeTokens | undefined;
|
|
63
|
-
variant?: "outlined" | undefined;
|
|
64
129
|
disabled?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
130
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
131
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
132
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
133
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
134
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
135
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
136
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
137
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
69
138
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
70
|
-
export declare const Button:
|
|
71
|
-
size?: number | SizeTokens | undefined;
|
|
72
|
-
variant?: "outlined" | undefined;
|
|
139
|
+
export declare const Button: FunctionComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
73
140
|
disabled?: boolean | undefined;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
141
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
142
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
143
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
144
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
145
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
146
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
147
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
148
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
149
|
+
}>, "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "icon" | "iconAfter" | "iconSize" | "name" | "noTextWrap" | "scaleIcon" | "textProps" | "type" | "value" | keyof TextContextStyles> & TextContextStyles & {
|
|
79
150
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
80
151
|
noTextWrap?: boolean;
|
|
81
152
|
} & {
|
|
82
|
-
icon?:
|
|
83
|
-
iconAfter?:
|
|
153
|
+
icon?: ButtonIconInput;
|
|
154
|
+
iconAfter?: ButtonIconInput;
|
|
155
|
+
iconSize?: number;
|
|
84
156
|
scaleIcon?: number;
|
|
85
|
-
|
|
86
|
-
type?: "submit" | "reset" | "button";
|
|
157
|
+
type?: 'submit' | 'reset' | 'button';
|
|
87
158
|
form?: string;
|
|
88
159
|
formAction?: string;
|
|
89
160
|
formEncType?: string;
|
|
@@ -92,23 +163,27 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
92
163
|
formTarget?: string;
|
|
93
164
|
name?: string;
|
|
94
165
|
value?: string | readonly string[] | number;
|
|
95
|
-
} &
|
|
96
|
-
|
|
97
|
-
|
|
166
|
+
} & {
|
|
167
|
+
ref?: import("react").Ref<import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods)> | undefined;
|
|
168
|
+
}> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
98
169
|
disabled?: boolean | undefined;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
170
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
171
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
172
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
173
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
174
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
175
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
176
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
177
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
178
|
+
}>, "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "icon" | "iconAfter" | "iconSize" | "name" | "noTextWrap" | "scaleIcon" | "textProps" | "type" | "value" | keyof TextContextStyles> & TextContextStyles & {
|
|
104
179
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
105
180
|
noTextWrap?: boolean;
|
|
106
181
|
} & {
|
|
107
|
-
icon?:
|
|
108
|
-
iconAfter?:
|
|
182
|
+
icon?: ButtonIconInput;
|
|
183
|
+
iconAfter?: ButtonIconInput;
|
|
184
|
+
iconSize?: number;
|
|
109
185
|
scaleIcon?: number;
|
|
110
|
-
|
|
111
|
-
type?: "submit" | "reset" | "button";
|
|
186
|
+
type?: 'submit' | 'reset' | 'button';
|
|
112
187
|
form?: string;
|
|
113
188
|
formAction?: string;
|
|
114
189
|
formEncType?: string;
|
|
@@ -117,15 +192,15 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
117
192
|
formTarget?: string;
|
|
118
193
|
name?: string;
|
|
119
194
|
value?: string | readonly string[] | number;
|
|
120
|
-
}, import("@tamagui/web").
|
|
195
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods), import("@tamagui/web").StackNonStyleProps & TextContextStyles & {
|
|
121
196
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
122
197
|
noTextWrap?: boolean;
|
|
123
198
|
} & {
|
|
124
|
-
icon?:
|
|
125
|
-
iconAfter?:
|
|
199
|
+
icon?: ButtonIconInput;
|
|
200
|
+
iconAfter?: ButtonIconInput;
|
|
201
|
+
iconSize?: number;
|
|
126
202
|
scaleIcon?: number;
|
|
127
|
-
|
|
128
|
-
type?: "submit" | "reset" | "button";
|
|
203
|
+
type?: 'submit' | 'reset' | 'button';
|
|
129
204
|
form?: string;
|
|
130
205
|
formAction?: string;
|
|
131
206
|
formEncType?: string;
|
|
@@ -135,31 +210,35 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
135
210
|
name?: string;
|
|
136
211
|
value?: string | readonly string[] | number;
|
|
137
212
|
}, import("@tamagui/web").StackStyleBase, {
|
|
138
|
-
size?: number | SizeTokens | undefined;
|
|
139
|
-
variant?: "outlined" | undefined;
|
|
140
213
|
disabled?: boolean | undefined;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
214
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
215
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
216
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
217
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
218
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
219
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
220
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
221
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
222
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
146
223
|
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
147
|
-
size?: number | SizeTokens | undefined;
|
|
148
|
-
variant?: "outlined" | undefined;
|
|
149
224
|
disabled?: boolean | undefined;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
225
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
226
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
227
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
228
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
229
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
230
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
231
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
232
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
233
|
+
}>, "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "icon" | "iconAfter" | "iconSize" | "name" | "noTextWrap" | "scaleIcon" | "textProps" | "type" | "value" | keyof TextContextStyles> & TextContextStyles & {
|
|
155
234
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
156
235
|
noTextWrap?: boolean;
|
|
157
236
|
} & {
|
|
158
|
-
icon?:
|
|
159
|
-
iconAfter?:
|
|
237
|
+
icon?: ButtonIconInput;
|
|
238
|
+
iconAfter?: ButtonIconInput;
|
|
239
|
+
iconSize?: number;
|
|
160
240
|
scaleIcon?: number;
|
|
161
|
-
|
|
162
|
-
type?: "submit" | "reset" | "button";
|
|
241
|
+
type?: 'submit' | 'reset' | 'button';
|
|
163
242
|
form?: string;
|
|
164
243
|
formAction?: string;
|
|
165
244
|
formEncType?: string;
|
|
@@ -168,15 +247,15 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
168
247
|
formTarget?: string;
|
|
169
248
|
name?: string;
|
|
170
249
|
value?: string | readonly string[] | number;
|
|
171
|
-
}, import("@tamagui/web").
|
|
250
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods), import("@tamagui/web").StackNonStyleProps & TextContextStyles & {
|
|
172
251
|
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
173
252
|
noTextWrap?: boolean;
|
|
174
253
|
} & {
|
|
175
|
-
icon?:
|
|
176
|
-
iconAfter?:
|
|
254
|
+
icon?: ButtonIconInput;
|
|
255
|
+
iconAfter?: ButtonIconInput;
|
|
256
|
+
iconSize?: number;
|
|
177
257
|
scaleIcon?: number;
|
|
178
|
-
|
|
179
|
-
type?: "submit" | "reset" | "button";
|
|
258
|
+
type?: 'submit' | 'reset' | 'button';
|
|
180
259
|
form?: string;
|
|
181
260
|
formAction?: string;
|
|
182
261
|
formEncType?: string;
|
|
@@ -186,37 +265,62 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
186
265
|
name?: string;
|
|
187
266
|
value?: string | readonly string[] | number;
|
|
188
267
|
}, import("@tamagui/web").StackStyleBase, {
|
|
189
|
-
size?: number | SizeTokens | undefined;
|
|
190
|
-
variant?: "outlined" | undefined;
|
|
191
268
|
disabled?: boolean | undefined;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
269
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
270
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
271
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
272
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
273
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
274
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
275
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
276
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
196
277
|
}, import("@tamagui/web").StaticConfigPublic];
|
|
197
278
|
} & {
|
|
198
|
-
Apply: import("react").Provider<
|
|
199
|
-
children?:
|
|
279
|
+
Apply: import("react").Provider<TextContextStyles> & import("react").ProviderExoticComponent<Partial<TextContextStyles> & {
|
|
280
|
+
children?: ReactNode;
|
|
200
281
|
scope?: string;
|
|
201
282
|
}>;
|
|
202
|
-
Frame:
|
|
203
|
-
size?: number | SizeTokens | undefined;
|
|
204
|
-
variant?: "outlined" | undefined;
|
|
283
|
+
Frame: FunctionComponent<Omit<import("@tamagui/web").StackNonStyleProps, "disabled" | "ellipsis" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "maxFontSizeMultiplier" | "textAlign" | keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
205
284
|
disabled?: boolean | undefined;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
285
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
286
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
287
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
288
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
289
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
290
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
291
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
292
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
293
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & {
|
|
294
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
295
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
296
|
+
disabled?: boolean | undefined;
|
|
297
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
298
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
299
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
300
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
301
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
302
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
303
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
304
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
305
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
306
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
307
|
+
disabled?: boolean | undefined;
|
|
308
|
+
ellipsis?: import("@tamagui/web").FlatStyleValue<"unset" | boolean | undefined>;
|
|
309
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
310
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
311
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
312
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
313
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
314
|
+
maxFontSizeMultiplier?: number | undefined;
|
|
315
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
316
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
317
|
+
};
|
|
318
|
+
Icon: typeof ButtonIcon;
|
|
319
|
+
Text: FunctionComponent<Omit<import("@tamagui/web").TextNonStyleProps, keyof import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
320
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
321
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
322
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
323
|
+
};
|
|
220
324
|
};
|
|
221
325
|
export type ButtonProps = GetProps<typeof ButtonComponent>;
|
|
222
326
|
export {};
|
package/types/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"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"}
|
package/dist/cjs/Button.test.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var import_config_default = require("@tamagui/config-default");
|
|
2
|
-
var import_core = require("@tamagui/core");
|
|
3
|
-
var import_vitest = require("vitest");
|
|
4
|
-
var import_Button = require("./Button.cjs");
|
|
5
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
const conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
|
|
7
|
-
(0, import_vitest.describe)("Button", () => {
|
|
8
|
-
(0, import_vitest.test)(`123`, () => {
|
|
9
|
-
(0, import_vitest.expect)(true).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
(0, import_vitest.test)("accepts native button html props", () => {
|
|
12
|
-
const _submitBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
13
|
-
type: "submit",
|
|
14
|
-
children: "Submit"
|
|
15
|
-
});
|
|
16
|
-
const _resetBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
17
|
-
type: "reset",
|
|
18
|
-
children: "Reset"
|
|
19
|
-
});
|
|
20
|
-
const _buttonBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
21
|
-
type: "button",
|
|
22
|
-
children: "Button"
|
|
23
|
-
});
|
|
24
|
-
const _formBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
25
|
-
type: "submit",
|
|
26
|
-
form: "myForm",
|
|
27
|
-
formAction: "/submit",
|
|
28
|
-
formMethod: "post",
|
|
29
|
-
formTarget: "_blank",
|
|
30
|
-
formNoValidate: true,
|
|
31
|
-
name: "submitBtn",
|
|
32
|
-
value: "submit",
|
|
33
|
-
children: "Submit"
|
|
34
|
-
});
|
|
35
|
-
(0, import_vitest.expect)(true).toBeTruthy();
|
|
36
|
-
});
|
|
37
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
var import_config_default = require("@tamagui/config-default");
|
|
5
|
-
var import_core = require("@tamagui/core");
|
|
6
|
-
var import_vitest = require("vitest");
|
|
7
|
-
var import_Button = require("./Button.native.js");
|
|
8
|
-
var conf = (0, import_core.createTamagui)((0, import_config_default.getDefaultTamaguiConfig)());
|
|
9
|
-
(0, import_vitest.describe)("Button", function () {
|
|
10
|
-
(0, import_vitest.test)(`123`, function () {
|
|
11
|
-
(0, import_vitest.expect)(true).toBeTruthy();
|
|
12
|
-
});
|
|
13
|
-
(0, import_vitest.test)("accepts native button html props", function () {
|
|
14
|
-
var _submitBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
15
|
-
type: "submit",
|
|
16
|
-
children: "Submit"
|
|
17
|
-
});
|
|
18
|
-
var _resetBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
19
|
-
type: "reset",
|
|
20
|
-
children: "Reset"
|
|
21
|
-
});
|
|
22
|
-
var _buttonBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
23
|
-
type: "button",
|
|
24
|
-
children: "Button"
|
|
25
|
-
});
|
|
26
|
-
var _formBtn = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Button.Button, {
|
|
27
|
-
type: "submit",
|
|
28
|
-
form: "myForm",
|
|
29
|
-
formAction: "/submit",
|
|
30
|
-
formMethod: "post",
|
|
31
|
-
formTarget: "_blank",
|
|
32
|
-
formNoValidate: true,
|
|
33
|
-
name: "submitBtn",
|
|
34
|
-
value: "submit",
|
|
35
|
-
children: "Submit"
|
|
36
|
-
});
|
|
37
|
-
(0, import_vitest.expect)(true).toBeTruthy();
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=Button.test.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["import_jsx_runtime","require","import_config_default","import_core","import_vitest","import_Button","conf","createTamagui","getDefaultTamaguiConfig","describe","test","expect","toBeTruthy","_submitBtn","jsx","Button","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA;;AACA,IAAAA,kBAA8B,GAAAC,OAAA;AAC9B,IAAAC,qBAAuC,GAAAD,OAAA;AACvC,IAAAE,WAAA,GAAAF,OAAuB;AAYA,IAAAG,aAAA,GAAAH,OAAA;AAVvB,IAAAI,aAAa,GAAAJ,OAAA;AAAuC,IAEpDK,IAAA,OAAAH,WAAA,CAAAI,aAAmB,IAAM,EAAAL,qBAAA,CAAAM,uBAAA;AACvB,IAAAJ,aAAA,CAAAK,QAAK,UAAO,cAAM;EAChB,IAAAL,aAAA,CAAAM,IAAA,OAAO,cAAM;IACd,IAAAN,aAAA,CAAAO,MAAA,QAAAC,UAAA;EAGD;EAEE,IAAAR,aAAM,CAAAM,IAAa,kDAAC;IACpB,IAAAG,UAAM,kBAAY,IAAAb,kBAAA,CAAAc,GAAA,EAAAT,aAAC,CAAAU,MAAA;MACnBC,IAAM;MACNC,QAAM;IACJ,EAAC;IAAA,IAAAC,SAAA,sBAAAlB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACC,SAAK;MAAAC,QACA;IAAA;IACM,IACXE,UAAA,GAAW,mBAAAnB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACX,UAAW;MAAAC,QACX;IAAc;IACT,IACLG,QAAM,sBAAApB,kBAAA,CAAAc,GAAA,EAAAT,aAAA,CAAAU,MAAA;MAAAC,IACP;MAAAK,IAAA;MAEDC,UAAA;MAEFC,UAAA;MACDC,UAAA;MAWFC,cAAA","ignoreList":[]}
|
package/dist/esm/Button.test.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
|
2
|
-
import { createTamagui } from "@tamagui/core";
|
|
3
|
-
import { describe, expect, test } from "vitest";
|
|
4
|
-
import { Button } from "./Button.mjs";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
const conf = createTamagui(getDefaultTamaguiConfig());
|
|
7
|
-
describe("Button", () => {
|
|
8
|
-
test(`123`, () => {
|
|
9
|
-
expect(true).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
test("accepts native button html props", () => {
|
|
12
|
-
const _submitBtn = /* @__PURE__ */jsx(Button, {
|
|
13
|
-
type: "submit",
|
|
14
|
-
children: "Submit"
|
|
15
|
-
});
|
|
16
|
-
const _resetBtn = /* @__PURE__ */jsx(Button, {
|
|
17
|
-
type: "reset",
|
|
18
|
-
children: "Reset"
|
|
19
|
-
});
|
|
20
|
-
const _buttonBtn = /* @__PURE__ */jsx(Button, {
|
|
21
|
-
type: "button",
|
|
22
|
-
children: "Button"
|
|
23
|
-
});
|
|
24
|
-
const _formBtn = /* @__PURE__ */jsx(Button, {
|
|
25
|
-
type: "submit",
|
|
26
|
-
form: "myForm",
|
|
27
|
-
formAction: "/submit",
|
|
28
|
-
formMethod: "post",
|
|
29
|
-
formTarget: "_blank",
|
|
30
|
-
formNoValidate: true,
|
|
31
|
-
name: "submitBtn",
|
|
32
|
-
value: "submit",
|
|
33
|
-
children: "Submit"
|
|
34
|
-
});
|
|
35
|
-
expect(true).toBeTruthy();
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=Button.test.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getDefaultTamaguiConfig","createTamagui","describe","expect","test","Button","jsx","conf","toBeTruthy","_submitBtn","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate","name","value"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,uBAAA,QAA+B;AACxC,SAASC,aAAA,QAAqB;AAC9B,SAASC,QAAA,EAAUC,MAAA,EAAQC,IAAA,QAAY;AACvC,SAASC,MAAA,QAAc;AAYA,SAAAC,GAAA;AAVvB,MAAMC,IAAA,GAAON,aAAA,CAAcD,uBAAA,CAAwB,CAAC;AAEpDE,QAAA,CAAS,UAAU,MAAM;EACvBE,IAAA,CAAK,OAAO,MAAM;IAChBD,MAAA,CAAO,IAAI,EAAEK,UAAA,CAAW;EAC1B,CAAC;EAGDJ,IAAA,CAAK,oCAAoC,MAAM;IAE7C,MAAMK,UAAA,GAAa,eAAAH,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAASC,QAAA;IAAA,CAAM;IAC/C,MAAMC,SAAA,GAAY,eAAAN,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAAQC,QAAA;IAAA,CAAK;IAC5C,MAAME,UAAA,GAAa,eAAAP,GAAA,CAACD,MAAA;MAAOK,IAAA,EAAK;MAASC,QAAA;IAAA,CAAM;IAC/C,MAAMG,QAAA,GACJ,eAAAR,GAAA,CAACD,MAAA;MACCK,IAAA,EAAK;MACLK,IAAA,EAAK;MACLC,UAAA,EAAW;MACXC,UAAA,EAAW;MACXC,UAAA,EAAW;MACXC,cAAA,EAAc;MACdC,IAAA,EAAK;MACLC,KAAA,EAAM;MACPV,QAAA;IAAA,CAED;IAEFR,MAAA,CAAO,IAAI,EAAEK,UAAA,CAAW;EAC1B,CAAC;AAWH,CAAC","ignoreList":[]}
|