@tamagui/button 2.7.7 → 3.0.0-beta.1093.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 +97 -268
- package/dist/cjs/Button.native.cjs +122 -0
- package/dist/cjs/Button.native.js +100 -273
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +20 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Button.mjs +88 -257
- package/dist/esm/Button.mjs.map +1 -1
- package/dist/esm/Button.native.js +91 -263
- 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 +88 -257
- package/dist/jsx/Button.mjs.map +1 -1
- package/dist/jsx/Button.native.cjs +122 -0
- package/dist/jsx/Button.native.js +100 -273
- 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 +20 -0
- package/dist/jsx/index.native.js +9 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +14 -14
- package/src/Button.tsx +152 -309
- package/types/Button.d.ts +75 -208
- 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,131 +1,53 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
size?: SizeTokens;
|
|
7
|
-
variant?: ButtonVariant;
|
|
8
|
-
elevation?: SizeTokens | number;
|
|
9
|
-
};
|
|
10
|
-
export declare const ButtonContext: import("@tamagui/web").StyledContext<{
|
|
11
|
-
size?: SizeTokens;
|
|
12
|
-
variant?: ButtonVariant;
|
|
13
|
-
color?: ButtonContextStyles["color"];
|
|
14
|
-
}>;
|
|
15
|
-
type IconProp = JSX.Element | FunctionComponent<{
|
|
16
|
-
color?: any;
|
|
17
|
-
size?: any;
|
|
18
|
-
}> | null;
|
|
19
|
-
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;
|
|
1
|
+
import type { TextParentStyles } from '@tamagui/text';
|
|
2
|
+
import { textParentProps } from '@tamagui/text';
|
|
3
|
+
import type { GetProps, TamaguiComponentPropsBaseBase } from '@tamagui/web';
|
|
4
|
+
import type { FunctionComponent, JSX, ReactNode } from 'react';
|
|
5
|
+
export declare const ButtonFrame: FunctionComponent<Omit<import("@tamagui/web").StackNonStyleProps, "disabled" | keyof import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithFlatVariantValues<{
|
|
22
6
|
disabled?: boolean | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
chromeless?: boolean | "all" | undefined;
|
|
27
|
-
}>, "form" | "name" | "value" | keyof TextContextStyles | "textProps" | "noTextWrap" | "icon" | "iconAfter" | "scaleIcon" | "iconSize" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & TextContextStyles & {
|
|
28
|
-
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
29
|
-
noTextWrap?: boolean;
|
|
30
|
-
} & {
|
|
31
|
-
icon?: IconProp;
|
|
32
|
-
iconAfter?: IconProp;
|
|
33
|
-
scaleIcon?: number;
|
|
34
|
-
iconSize?: SizeTokens;
|
|
35
|
-
type?: "submit" | "reset" | "button";
|
|
36
|
-
form?: string;
|
|
37
|
-
formAction?: string;
|
|
38
|
-
formEncType?: string;
|
|
39
|
-
formMethod?: string;
|
|
40
|
-
formNoValidate?: boolean;
|
|
41
|
-
formTarget?: string;
|
|
42
|
-
name?: string;
|
|
43
|
-
value?: string | readonly string[] | number;
|
|
44
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps & TextContextStyles & {
|
|
45
|
-
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
46
|
-
noTextWrap?: boolean;
|
|
47
|
-
} & {
|
|
48
|
-
icon?: IconProp;
|
|
49
|
-
iconAfter?: IconProp;
|
|
50
|
-
scaleIcon?: number;
|
|
51
|
-
iconSize?: SizeTokens;
|
|
52
|
-
type?: "submit" | "reset" | "button";
|
|
53
|
-
form?: string;
|
|
54
|
-
formAction?: string;
|
|
55
|
-
formEncType?: string;
|
|
56
|
-
formMethod?: string;
|
|
57
|
-
formNoValidate?: boolean;
|
|
58
|
-
formTarget?: string;
|
|
59
|
-
name?: string;
|
|
60
|
-
value?: string | readonly string[] | number;
|
|
61
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
62
|
-
size?: number | SizeTokens | undefined;
|
|
63
|
-
variant?: "outlined" | undefined;
|
|
64
|
-
disabled?: boolean | undefined;
|
|
65
|
-
unstyled?: boolean | undefined;
|
|
66
|
-
elevation?: number | SizeTokens | undefined;
|
|
67
|
-
circular?: boolean | undefined;
|
|
68
|
-
chromeless?: boolean | "all" | undefined;
|
|
69
|
-
}, import("@tamagui/web").StaticConfigPublic>;
|
|
70
|
-
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
71
|
-
size?: number | SizeTokens | undefined;
|
|
72
|
-
variant?: "outlined" | undefined;
|
|
73
|
-
disabled?: boolean | undefined;
|
|
74
|
-
unstyled?: boolean | undefined;
|
|
75
|
-
elevation?: number | SizeTokens | undefined;
|
|
76
|
-
circular?: boolean | undefined;
|
|
77
|
-
chromeless?: boolean | "all" | undefined;
|
|
78
|
-
}>, "form" | "name" | "value" | keyof TextContextStyles | "textProps" | "noTextWrap" | "icon" | "iconAfter" | "scaleIcon" | "iconSize" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & TextContextStyles & {
|
|
79
|
-
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
80
|
-
noTextWrap?: boolean;
|
|
81
|
-
} & {
|
|
82
|
-
icon?: IconProp;
|
|
83
|
-
iconAfter?: IconProp;
|
|
84
|
-
scaleIcon?: number;
|
|
85
|
-
iconSize?: SizeTokens;
|
|
86
|
-
type?: "submit" | "reset" | "button";
|
|
87
|
-
form?: string;
|
|
88
|
-
formAction?: string;
|
|
89
|
-
formEncType?: string;
|
|
90
|
-
formMethod?: string;
|
|
91
|
-
formNoValidate?: boolean;
|
|
92
|
-
formTarget?: string;
|
|
93
|
-
name?: string;
|
|
94
|
-
value?: string | readonly string[] | number;
|
|
95
|
-
} & import("react").RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
96
|
-
size?: number | SizeTokens | undefined;
|
|
97
|
-
variant?: "outlined" | undefined;
|
|
7
|
+
}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & {
|
|
8
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiElement> | undefined;
|
|
9
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
98
10
|
disabled?: boolean | undefined;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
} & {
|
|
107
|
-
|
|
108
|
-
|
|
11
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
12
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
15
|
+
};
|
|
16
|
+
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").WithFlatVariantValues<{}> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").TextStylePropsBase>> & {
|
|
17
|
+
ref?: import("react").Ref<import("@tamagui/web").TamaguiTextElement> | undefined;
|
|
18
|
+
}> & 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"> & {
|
|
19
|
+
__tama: [import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {}, import("@tamagui/web").StaticConfigPublic];
|
|
20
|
+
};
|
|
21
|
+
export type ButtonIconProps = {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
color?: string;
|
|
109
24
|
scaleIcon?: number;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
25
|
+
size?: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const ButtonIcon: ({ children, color, scaleIcon, size }: ButtonIconProps) => any;
|
|
28
|
+
type ButtonIconInput = JSX.Element | FunctionComponent<{
|
|
29
|
+
color?: any;
|
|
30
|
+
size?: any;
|
|
31
|
+
}> | ((props: {
|
|
32
|
+
color?: any;
|
|
33
|
+
size?: any;
|
|
34
|
+
}) => ReactNode) | null;
|
|
35
|
+
/**
|
|
36
|
+
* The props `useButton` reads and replaces. It hands the frame everything else
|
|
37
|
+
* untouched, so this is exactly what its result omits.
|
|
38
|
+
*/
|
|
39
|
+
type ButtonConsumedProps = {
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
render?: TamaguiComponentPropsBaseBase['render'];
|
|
43
|
+
icon?: ButtonIconInput;
|
|
44
|
+
iconAfter?: ButtonIconInput;
|
|
45
|
+
iconSize?: number;
|
|
126
46
|
scaleIcon?: number;
|
|
127
|
-
|
|
128
|
-
|
|
47
|
+
};
|
|
48
|
+
/** passed straight through to the rendered `<button>` */
|
|
49
|
+
type ButtonHTMLProps = {
|
|
50
|
+
type?: 'submit' | 'reset' | 'button';
|
|
129
51
|
form?: string;
|
|
130
52
|
formAction?: string;
|
|
131
53
|
formEncType?: string;
|
|
@@ -134,90 +56,35 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
134
56
|
formTarget?: string;
|
|
135
57
|
name?: string;
|
|
136
58
|
value?: string | readonly string[] | number;
|
|
137
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
138
|
-
size?: number | SizeTokens | undefined;
|
|
139
|
-
variant?: "outlined" | undefined;
|
|
140
|
-
disabled?: boolean | undefined;
|
|
141
|
-
unstyled?: boolean | undefined;
|
|
142
|
-
elevation?: number | SizeTokens | undefined;
|
|
143
|
-
circular?: boolean | undefined;
|
|
144
|
-
chromeless?: boolean | "all" | undefined;
|
|
145
|
-
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
146
|
-
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
147
|
-
size?: number | SizeTokens | undefined;
|
|
148
|
-
variant?: "outlined" | undefined;
|
|
149
|
-
disabled?: boolean | undefined;
|
|
150
|
-
unstyled?: boolean | undefined;
|
|
151
|
-
elevation?: number | SizeTokens | undefined;
|
|
152
|
-
circular?: boolean | undefined;
|
|
153
|
-
chromeless?: boolean | "all" | undefined;
|
|
154
|
-
}>, "form" | "name" | "value" | keyof TextContextStyles | "textProps" | "noTextWrap" | "icon" | "iconAfter" | "scaleIcon" | "iconSize" | "type" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & TextContextStyles & {
|
|
155
|
-
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
156
|
-
noTextWrap?: boolean;
|
|
157
|
-
} & {
|
|
158
|
-
icon?: IconProp;
|
|
159
|
-
iconAfter?: IconProp;
|
|
160
|
-
scaleIcon?: number;
|
|
161
|
-
iconSize?: SizeTokens;
|
|
162
|
-
type?: "submit" | "reset" | "button";
|
|
163
|
-
form?: string;
|
|
164
|
-
formAction?: string;
|
|
165
|
-
formEncType?: string;
|
|
166
|
-
formMethod?: string;
|
|
167
|
-
formNoValidate?: boolean;
|
|
168
|
-
formTarget?: string;
|
|
169
|
-
name?: string;
|
|
170
|
-
value?: string | readonly string[] | number;
|
|
171
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps & TextContextStyles & {
|
|
172
|
-
textProps?: Partial<import("@tamagui/text").SizableTextProps>;
|
|
173
|
-
noTextWrap?: boolean;
|
|
174
|
-
} & {
|
|
175
|
-
icon?: IconProp;
|
|
176
|
-
iconAfter?: IconProp;
|
|
177
|
-
scaleIcon?: number;
|
|
178
|
-
iconSize?: SizeTokens;
|
|
179
|
-
type?: "submit" | "reset" | "button";
|
|
180
|
-
form?: string;
|
|
181
|
-
formAction?: string;
|
|
182
|
-
formEncType?: string;
|
|
183
|
-
formMethod?: string;
|
|
184
|
-
formNoValidate?: boolean;
|
|
185
|
-
formTarget?: string;
|
|
186
|
-
name?: string;
|
|
187
|
-
value?: string | readonly string[] | number;
|
|
188
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
189
|
-
size?: number | SizeTokens | undefined;
|
|
190
|
-
variant?: "outlined" | undefined;
|
|
191
|
-
disabled?: boolean | undefined;
|
|
192
|
-
unstyled?: boolean | undefined;
|
|
193
|
-
elevation?: number | SizeTokens | undefined;
|
|
194
|
-
circular?: boolean | undefined;
|
|
195
|
-
chromeless?: boolean | "all" | undefined;
|
|
196
|
-
}, import("@tamagui/web").StaticConfigPublic];
|
|
197
|
-
} & {
|
|
198
|
-
Apply: import("react").Provider<ButtonContextStyles> & import("react").ProviderExoticComponent<Partial<ButtonContextStyles> & {
|
|
199
|
-
children?: import("react").ReactNode;
|
|
200
|
-
scope?: string;
|
|
201
|
-
}>;
|
|
202
|
-
Frame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/web").StackNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
203
|
-
size?: number | SizeTokens | undefined;
|
|
204
|
-
variant?: "outlined" | undefined;
|
|
205
|
-
disabled?: boolean | undefined;
|
|
206
|
-
unstyled?: boolean | undefined;
|
|
207
|
-
elevation?: number | SizeTokens | undefined;
|
|
208
|
-
circular?: boolean | undefined;
|
|
209
|
-
chromeless?: boolean | "all" | undefined;
|
|
210
|
-
}, import("@tamagui/web").StaticConfigPublic>;
|
|
211
|
-
Text: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/web").TextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
|
|
212
|
-
size?: import("@tamagui/web").FontSizeTokens | undefined;
|
|
213
|
-
unstyled?: boolean | undefined;
|
|
214
|
-
}, import("@tamagui/web").StaticConfigPublic>;
|
|
215
|
-
Icon: (props: {
|
|
216
|
-
children: React.ReactNode;
|
|
217
|
-
scaleIcon?: number;
|
|
218
|
-
size?: SizeTokens;
|
|
219
|
-
}) => any;
|
|
220
59
|
};
|
|
221
|
-
export type
|
|
60
|
+
export type ButtonBehaviorProps = TextParentStyles & ButtonConsumedProps & ButtonHTMLProps;
|
|
61
|
+
/**
|
|
62
|
+
* What `useButton` returns: the caller's props minus the ones it consumed, plus
|
|
63
|
+
* the ones it decides. Spelled out rather than cast, so a skin that spreads the
|
|
64
|
+
* result onto a frame is type-checked on exactly what it will receive.
|
|
65
|
+
*/
|
|
66
|
+
export type UseButtonProps<Props> = Omit<Omit<Props, keyof TextParentStyles | keyof typeof textParentProps>, keyof ButtonConsumedProps> & {
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
'aria-disabled'?: boolean;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
render?: TamaguiComponentPropsBaseBase['render'];
|
|
71
|
+
tabIndex?: number;
|
|
72
|
+
};
|
|
73
|
+
export type UseButtonOptions = {
|
|
74
|
+
Text?: any;
|
|
75
|
+
iconColor?: string;
|
|
76
|
+
iconSize?: number;
|
|
77
|
+
textProps?: Record<string, unknown>;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Button behavior: icon theming, wrapping bare children in a text, and the html
|
|
81
|
+
* nesting rules. Flat text styles are partitioned in one pass and handed to the
|
|
82
|
+
* wrapped text, with no style resolution hook or text context.
|
|
83
|
+
*/
|
|
84
|
+
export declare function useButton<Props extends ButtonBehaviorProps>(propsIn: Props, { Text, iconColor, iconSize: iconSizeOption, textProps: textPropsOption, }?: UseButtonOptions): {
|
|
85
|
+
isNested: boolean;
|
|
86
|
+
props: UseButtonProps<Props>;
|
|
87
|
+
};
|
|
88
|
+
export type ButtonFrameProps = GetProps<typeof ButtonFrame>;
|
|
222
89
|
export {};
|
|
223
90
|
//# sourceMappingURL=Button.d.ts.map
|
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":[]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
|
3
|
-
import { createTamagui } from "@tamagui/core";
|
|
4
|
-
import { describe, expect, test } from "vitest";
|
|
5
|
-
import { Button } from "./Button.native.js";
|
|
6
|
-
var conf = createTamagui(getDefaultTamaguiConfig());
|
|
7
|
-
describe("Button", function () {
|
|
8
|
-
test(`123`, function () {
|
|
9
|
-
expect(true).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
test("accepts native button html props", function () {
|
|
12
|
-
var _submitBtn = /* @__PURE__ */_jsx(Button, {
|
|
13
|
-
type: "submit",
|
|
14
|
-
children: "Submit"
|
|
15
|
-
});
|
|
16
|
-
var _resetBtn = /* @__PURE__ */_jsx(Button, {
|
|
17
|
-
type: "reset",
|
|
18
|
-
children: "Reset"
|
|
19
|
-
});
|
|
20
|
-
var _buttonBtn = /* @__PURE__ */_jsx(Button, {
|
|
21
|
-
type: "button",
|
|
22
|
-
children: "Button"
|
|
23
|
-
});
|
|
24
|
-
var _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.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","getDefaultTamaguiConfig","createTamagui","describe","expect","test","Button","conf","toBeTruthy","_submitBtn","type","children","_resetBtn","_buttonBtn","_formBtn","form","formAction","formMethod","formTarget","formNoValidate","name"],"sources":["../../src/Button.test.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,2BAA+B;AACxC,SAASC,uBAAqB;AAC9B,SAASC,aAAU,QAAQ,eAAY;AACvC,SAASC,QAAA,EAAAC,MAAc,EAAAC,IAAA;AAYA,SAAAC,MAAA;AAVvB,IAAAC,IAAM,GAAAL,aAAO,CAAAD,uBAAc,GAAwB;AAEnDE,QAAA,CAAS,UAAU,YAAM;EACvBE,IAAA,CAAK,OAAO,YAAM;IAChBD,MAAA,CAAO,IAAI,EAAEI,UAAA,CAAW;EAC1B,CAAC;EAGDH,IAAA,CAAK,oCAAoC,YAAM;IAE7C,IAAAI,UAAM,kBAAaT,IAAA,CAAAM,MAAC;MACpBI,IAAM;MACNC,QAAM;IACN;IACE,IAACC,SAAA,kBAAAZ,IAAA,CAAAM,MAAA;MAAAI,IAAA;MAAAC,QACM;IAAA;IACA,IACLE,UAAA,GAAW,eAAAb,IAAA,CAAAM,MAAA;MAAAI,IACX,UAAW;MAAAC,QACX;IAAW;IACG,IACdG,QAAK,kBAAAd,IAAA,CAAAM,MAAA;MAAAI,IACL,UAAM;MAAAK,IACP;MAAAC,UAAA;MAEDC,UAAA;MAEFC,UAAW,EAAE;MACdC,cAAA;MAWFC,IAAA","ignoreList":[]}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/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":[]}
|
|
@@ -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,YAAS;;AACT,IAAAA,kBAAS,GAAAC,OAAqB;AAC9B,IAAAC,qBAAmB,GAAQD,OAAA,0BAAY;AACvC,IAAAE,WAAS,GAAAF,OAAc;AAYA,IAAAG,aAAA,GAAAH,OAAA;AAVvB,IAAAI,aAAa,GAAAJ,OAAc;AAE3B,IAAAK,IAAA,GAAS,IAAAH,WAAgB,CAAAI,aAAA,MAAAL,qBAAA,CAAAM,uBAAA;AACvB,IAAAJ,aAAY,CAAAK,QAAM;EAChB,IAAAL,aAAa,CAAAM,IAAA,OAAW;IACzB,IAAAN,aAAA,CAAAO,MAAA,QAAAC,UAAA;EAGD;EAEE,IAAAR,aAAM,CAAAM,IAAa,oCAAa,cAAS;IACzC,IAAAG,UAAM,kBAAY,IAAAb,kBAAa,CAAAc,GAAA,EAAAT,aAAQ,CAAAU,MAAA,EAAK;MAC5CC,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,UAAW,EAAE;MACdC,UAAA;MAWFC,cAAA","ignoreList":[]}
|
package/dist/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|