@hanzogui/button 2.0.0

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 (84) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Button.cjs +218 -0
  3. package/dist/cjs/Button.native.js +224 -0
  4. package/dist/cjs/Button.native.js.map +1 -0
  5. package/dist/cjs/Button.test.cjs +36 -0
  6. package/dist/cjs/Button.test.native.js +39 -0
  7. package/dist/cjs/Button.test.native.js.map +1 -0
  8. package/dist/cjs/index.cjs +18 -0
  9. package/dist/cjs/index.native.js +21 -0
  10. package/dist/cjs/index.native.js.map +1 -0
  11. package/dist/cjs/v1/Button.cjs +259 -0
  12. package/dist/cjs/v1/Button.native.js +265 -0
  13. package/dist/cjs/v1/Button.native.js.map +1 -0
  14. package/dist/cjs/v1/Button.test.cjs +9 -0
  15. package/dist/cjs/v1/Button.test.native.js +12 -0
  16. package/dist/cjs/v1/Button.test.native.js.map +1 -0
  17. package/dist/cjs/v1/index.cjs +18 -0
  18. package/dist/cjs/v1/index.native.js +21 -0
  19. package/dist/cjs/v1/index.native.js.map +1 -0
  20. package/dist/esm/Button.mjs +194 -0
  21. package/dist/esm/Button.mjs.map +1 -0
  22. package/dist/esm/Button.native.js +197 -0
  23. package/dist/esm/Button.native.js.map +1 -0
  24. package/dist/esm/Button.test.mjs +37 -0
  25. package/dist/esm/Button.test.mjs.map +1 -0
  26. package/dist/esm/Button.test.native.js +37 -0
  27. package/dist/esm/Button.test.native.js.map +1 -0
  28. package/dist/esm/index.js +2 -0
  29. package/dist/esm/index.js.map +1 -0
  30. package/dist/esm/index.mjs +2 -0
  31. package/dist/esm/index.mjs.map +1 -0
  32. package/dist/esm/index.native.js +2 -0
  33. package/dist/esm/index.native.js.map +1 -0
  34. package/dist/esm/v1/Button.mjs +231 -0
  35. package/dist/esm/v1/Button.mjs.map +1 -0
  36. package/dist/esm/v1/Button.native.js +234 -0
  37. package/dist/esm/v1/Button.native.js.map +1 -0
  38. package/dist/esm/v1/Button.test.mjs +10 -0
  39. package/dist/esm/v1/Button.test.mjs.map +1 -0
  40. package/dist/esm/v1/Button.test.native.js +10 -0
  41. package/dist/esm/v1/Button.test.native.js.map +1 -0
  42. package/dist/esm/v1/index.mjs +2 -0
  43. package/dist/esm/v1/index.mjs.map +1 -0
  44. package/dist/esm/v1/index.native.js +2 -0
  45. package/dist/esm/v1/index.native.js.map +1 -0
  46. package/dist/jsx/Button.mjs +194 -0
  47. package/dist/jsx/Button.mjs.map +1 -0
  48. package/dist/jsx/Button.native.js +224 -0
  49. package/dist/jsx/Button.native.js.map +1 -0
  50. package/dist/jsx/Button.test.mjs +37 -0
  51. package/dist/jsx/Button.test.mjs.map +1 -0
  52. package/dist/jsx/Button.test.native.js +39 -0
  53. package/dist/jsx/Button.test.native.js.map +1 -0
  54. package/dist/jsx/index.js +2 -0
  55. package/dist/jsx/index.js.map +1 -0
  56. package/dist/jsx/index.mjs +2 -0
  57. package/dist/jsx/index.mjs.map +1 -0
  58. package/dist/jsx/index.native.js +21 -0
  59. package/dist/jsx/index.native.js.map +1 -0
  60. package/dist/jsx/v1/Button.mjs +231 -0
  61. package/dist/jsx/v1/Button.mjs.map +1 -0
  62. package/dist/jsx/v1/Button.native.js +265 -0
  63. package/dist/jsx/v1/Button.native.js.map +1 -0
  64. package/dist/jsx/v1/Button.test.mjs +10 -0
  65. package/dist/jsx/v1/Button.test.mjs.map +1 -0
  66. package/dist/jsx/v1/Button.test.native.js +12 -0
  67. package/dist/jsx/v1/Button.test.native.js.map +1 -0
  68. package/dist/jsx/v1/index.mjs +2 -0
  69. package/dist/jsx/v1/index.mjs.map +1 -0
  70. package/dist/jsx/v1/index.native.js +21 -0
  71. package/dist/jsx/v1/index.native.js.map +1 -0
  72. package/package.json +59 -0
  73. package/src/Button.test.tsx +45 -0
  74. package/src/Button.tsx +272 -0
  75. package/src/index.ts +1 -0
  76. package/src/v1/Button.test.tsx +21 -0
  77. package/src/v1/Button.tsx +336 -0
  78. package/src/v1/index.ts +1 -0
  79. package/types/Button.d.ts +123 -0
  80. package/types/Button.test.d.ts +2 -0
  81. package/types/index.d.ts +2 -0
  82. package/types/v1/Button.d.ts +302 -0
  83. package/types/v1/Button.test.d.ts +2 -0
  84. package/types/v1/index.d.ts +2 -0
@@ -0,0 +1,123 @@
1
+ import type { ColorTokens, GetProps, SizeTokens } from '@gui/web';
2
+ import type { FunctionComponent, JSX } from 'react';
3
+ type ButtonVariant = 'outlined';
4
+ export declare const ButtonContext: import("@gui/web").StyledContext<{
5
+ size?: SizeTokens;
6
+ variant?: ButtonVariant;
7
+ color?: ColorTokens | string;
8
+ }>;
9
+ type IconProp = JSX.Element | FunctionComponent<{
10
+ color?: any;
11
+ size?: any;
12
+ }> | null;
13
+ type ButtonExtraProps = {
14
+ icon?: IconProp;
15
+ iconAfter?: IconProp;
16
+ scaleIcon?: number;
17
+ iconSize?: SizeTokens;
18
+ type?: 'submit' | 'reset' | 'button';
19
+ form?: string;
20
+ formAction?: string;
21
+ formEncType?: string;
22
+ formMethod?: string;
23
+ formNoValidate?: boolean;
24
+ formTarget?: string;
25
+ name?: string;
26
+ value?: string | readonly string[] | number;
27
+ };
28
+ declare const ButtonComponent: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
29
+ size?: number | SizeTokens | undefined;
30
+ variant?: "outlined" | undefined;
31
+ elevation?: number | SizeTokens | undefined;
32
+ circular?: boolean | undefined;
33
+ chromeless?: boolean | "all" | undefined;
34
+ disabled?: boolean | undefined;
35
+ unstyled?: boolean | undefined;
36
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
37
+ size?: number | SizeTokens | undefined;
38
+ variant?: "outlined" | undefined;
39
+ elevation?: number | SizeTokens | undefined;
40
+ circular?: boolean | undefined;
41
+ chromeless?: boolean | "all" | undefined;
42
+ disabled?: boolean | undefined;
43
+ unstyled?: boolean | undefined;
44
+ }, import("@gui/web").StaticConfigPublic>;
45
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
46
+ size?: number | SizeTokens | undefined;
47
+ variant?: "outlined" | undefined;
48
+ elevation?: number | SizeTokens | undefined;
49
+ circular?: boolean | undefined;
50
+ chromeless?: boolean | "all" | undefined;
51
+ disabled?: boolean | undefined;
52
+ unstyled?: boolean | undefined;
53
+ }>, keyof ButtonExtraProps> & ButtonExtraProps & import("react").RefAttributes<import("@gui/web").GuiElement>> & import("@gui/web").StaticComponentObject<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
54
+ size?: number | SizeTokens | undefined;
55
+ variant?: "outlined" | undefined;
56
+ elevation?: number | SizeTokens | undefined;
57
+ circular?: boolean | undefined;
58
+ chromeless?: boolean | "all" | undefined;
59
+ disabled?: boolean | undefined;
60
+ unstyled?: boolean | undefined;
61
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
62
+ size?: number | SizeTokens | undefined;
63
+ variant?: "outlined" | undefined;
64
+ elevation?: number | SizeTokens | undefined;
65
+ circular?: boolean | undefined;
66
+ chromeless?: boolean | "all" | undefined;
67
+ disabled?: boolean | undefined;
68
+ unstyled?: boolean | undefined;
69
+ }, import("@gui/web").StaticConfigPublic> & Omit<import("@gui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
70
+ __tama: [Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
71
+ size?: number | SizeTokens | undefined;
72
+ variant?: "outlined" | undefined;
73
+ elevation?: number | SizeTokens | undefined;
74
+ circular?: boolean | undefined;
75
+ chromeless?: boolean | "all" | undefined;
76
+ disabled?: boolean | undefined;
77
+ unstyled?: boolean | undefined;
78
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
79
+ size?: number | SizeTokens | undefined;
80
+ variant?: "outlined" | undefined;
81
+ elevation?: number | SizeTokens | undefined;
82
+ circular?: boolean | undefined;
83
+ chromeless?: boolean | "all" | undefined;
84
+ disabled?: boolean | undefined;
85
+ unstyled?: boolean | undefined;
86
+ }, import("@gui/web").StaticConfigPublic];
87
+ } & {
88
+ Apply: import("react").Provider<{
89
+ size?: SizeTokens;
90
+ variant?: ButtonVariant;
91
+ color?: ColorTokens | string;
92
+ elevation?: SizeTokens | number;
93
+ }> & import("react").ProviderExoticComponent<Partial<{
94
+ size?: SizeTokens;
95
+ variant?: ButtonVariant;
96
+ color?: ColorTokens | string;
97
+ elevation?: SizeTokens | number;
98
+ }> & {
99
+ children?: import("react").ReactNode;
100
+ scope?: string;
101
+ }>;
102
+ Frame: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
103
+ size?: number | SizeTokens | undefined;
104
+ variant?: "outlined" | undefined;
105
+ elevation?: number | SizeTokens | undefined;
106
+ circular?: boolean | undefined;
107
+ chromeless?: boolean | "all" | undefined;
108
+ disabled?: boolean | undefined;
109
+ unstyled?: boolean | undefined;
110
+ }, import("@gui/web").StaticConfigPublic>;
111
+ Text: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
112
+ size?: import("@gui/web").FontSizeTokens | undefined;
113
+ unstyled?: boolean | undefined;
114
+ }, import("@gui/web").StaticConfigPublic>;
115
+ Icon: (props: {
116
+ children: React.ReactNode;
117
+ scaleIcon?: number;
118
+ size?: SizeTokens;
119
+ }) => any;
120
+ };
121
+ export type ButtonProps = GetProps<typeof ButtonComponent>;
122
+ export {};
123
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Button.test.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,302 @@
1
+ import type { TextContextStyles, TextParentStyles } from '@gui/text';
2
+ import type { FontSizeTokens, GetProps, SizeTokens, ThemeableProps } from '@gui/web';
3
+ import type { FunctionComponent, JSX } from 'react';
4
+ type ButtonVariant = 'outlined';
5
+ export declare const ButtonContext: import("@gui/web").StyledContext<Partial<TextContextStyles & {
6
+ size: SizeTokens;
7
+ variant?: ButtonVariant;
8
+ }>>;
9
+ type ButtonIconProps = {
10
+ color?: any;
11
+ size?: any;
12
+ };
13
+ type IconProp = JSX.Element | FunctionComponent<ButtonIconProps> | ((props: ButtonIconProps) => any) | null;
14
+ type ButtonExtraProps = TextParentStyles & ThemeableProps & {
15
+ /**
16
+ * add icon before, passes color and size automatically if Component
17
+ */
18
+ icon?: IconProp;
19
+ /**
20
+ * add icon after, passes color and size automatically if Component
21
+ */
22
+ iconAfter?: IconProp;
23
+ /**
24
+ * adjust icon relative to size
25
+ *
26
+ * @default 1
27
+ */
28
+ scaleIcon?: number;
29
+ /**
30
+ * make the spacing elements flex
31
+ */
32
+ spaceFlex?: number | boolean;
33
+ /**
34
+ * adjust internal space relative to icon size
35
+ */
36
+ scaleSpace?: number;
37
+ /**
38
+ * remove default styles
39
+ */
40
+ unstyled?: boolean;
41
+ };
42
+ type ButtonProps = ButtonExtraProps & GetProps<typeof ButtonFrame>;
43
+ declare const ButtonFrame: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
44
+ size?: number | SizeTokens | undefined;
45
+ variant?: "outlined" | undefined;
46
+ elevation?: number | SizeTokens | undefined;
47
+ circular?: boolean | undefined;
48
+ chromeless?: boolean | "all" | undefined;
49
+ transparent?: boolean | undefined;
50
+ disabled?: boolean | undefined;
51
+ unstyled?: boolean | undefined;
52
+ fullscreen?: boolean | undefined;
53
+ elevate?: boolean | undefined;
54
+ bordered?: boolean | undefined;
55
+ }, import("@gui/web").StaticConfigPublic>;
56
+ declare const ButtonText: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
57
+ size?: FontSizeTokens | undefined;
58
+ unstyled?: boolean | undefined;
59
+ }, import("@gui/web").StaticConfigPublic>;
60
+ declare const ButtonIcon: (props: {
61
+ children: React.ReactNode;
62
+ scaleIcon?: number;
63
+ }) => any;
64
+ /**
65
+ * @summary A Button is a clickable element that can be used to trigger actions such as submitting forms, navigating to other pages, or performing other actions.
66
+ * @see — Docs https://gui.dev/ui/button
67
+ */
68
+ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
69
+ size?: number | SizeTokens | undefined;
70
+ variant?: "outlined" | undefined;
71
+ elevation?: number | SizeTokens | undefined;
72
+ circular?: boolean | undefined;
73
+ chromeless?: boolean | "all" | undefined;
74
+ transparent?: boolean | undefined;
75
+ disabled?: boolean | undefined;
76
+ unstyled?: boolean | undefined;
77
+ fullscreen?: boolean | undefined;
78
+ elevate?: boolean | undefined;
79
+ bordered?: boolean | undefined;
80
+ }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
81
+ textProps?: Partial<import("@gui/text").SizableTextProps>;
82
+ noTextWrap?: boolean;
83
+ } & ThemeableProps & {
84
+ /**
85
+ * add icon before, passes color and size automatically if Component
86
+ */
87
+ icon?: IconProp;
88
+ /**
89
+ * add icon after, passes color and size automatically if Component
90
+ */
91
+ iconAfter?: IconProp;
92
+ /**
93
+ * adjust icon relative to size
94
+ *
95
+ * @default 1
96
+ */
97
+ scaleIcon?: number;
98
+ /**
99
+ * make the spacing elements flex
100
+ */
101
+ spaceFlex?: number | boolean;
102
+ /**
103
+ * adjust internal space relative to icon size
104
+ */
105
+ scaleSpace?: number;
106
+ /**
107
+ * remove default styles
108
+ */
109
+ unstyled?: boolean;
110
+ } & import("react").RefAttributes<import("@gui/web").GuiElement>> & import("@gui/web").StaticComponentObject<Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
111
+ size?: number | SizeTokens | undefined;
112
+ variant?: "outlined" | undefined;
113
+ elevation?: number | SizeTokens | undefined;
114
+ circular?: boolean | undefined;
115
+ chromeless?: boolean | "all" | undefined;
116
+ transparent?: boolean | undefined;
117
+ disabled?: boolean | undefined;
118
+ unstyled?: boolean | undefined;
119
+ fullscreen?: boolean | undefined;
120
+ elevate?: boolean | undefined;
121
+ bordered?: boolean | undefined;
122
+ }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
123
+ textProps?: Partial<import("@gui/text").SizableTextProps>;
124
+ noTextWrap?: boolean;
125
+ } & ThemeableProps & {
126
+ /**
127
+ * add icon before, passes color and size automatically if Component
128
+ */
129
+ icon?: IconProp;
130
+ /**
131
+ * add icon after, passes color and size automatically if Component
132
+ */
133
+ iconAfter?: IconProp;
134
+ /**
135
+ * adjust icon relative to size
136
+ *
137
+ * @default 1
138
+ */
139
+ scaleIcon?: number;
140
+ /**
141
+ * make the spacing elements flex
142
+ */
143
+ spaceFlex?: number | boolean;
144
+ /**
145
+ * adjust internal space relative to icon size
146
+ */
147
+ scaleSpace?: number;
148
+ /**
149
+ * remove default styles
150
+ */
151
+ unstyled?: boolean;
152
+ }, import("@gui/web").GuiElement, import("@gui/core").RNGuiViewNonStyleProps & TextContextStyles & {
153
+ textProps?: Partial<import("@gui/text").SizableTextProps>;
154
+ noTextWrap?: boolean;
155
+ } & ThemeableProps & {
156
+ /**
157
+ * add icon before, passes color and size automatically if Component
158
+ */
159
+ icon?: IconProp;
160
+ /**
161
+ * add icon after, passes color and size automatically if Component
162
+ */
163
+ iconAfter?: IconProp;
164
+ /**
165
+ * adjust icon relative to size
166
+ *
167
+ * @default 1
168
+ */
169
+ scaleIcon?: number;
170
+ /**
171
+ * make the spacing elements flex
172
+ */
173
+ spaceFlex?: number | boolean;
174
+ /**
175
+ * adjust internal space relative to icon size
176
+ */
177
+ scaleSpace?: number;
178
+ /**
179
+ * remove default styles
180
+ */
181
+ unstyled?: boolean;
182
+ }, import("@gui/web").StackStyleBase, {
183
+ size?: number | SizeTokens | undefined;
184
+ variant?: "outlined" | undefined;
185
+ elevation?: number | SizeTokens | undefined;
186
+ circular?: boolean | undefined;
187
+ chromeless?: boolean | "all" | undefined;
188
+ transparent?: boolean | undefined;
189
+ disabled?: boolean | undefined;
190
+ unstyled?: boolean | undefined;
191
+ fullscreen?: boolean | undefined;
192
+ elevate?: boolean | undefined;
193
+ bordered?: boolean | undefined;
194
+ }, import("@gui/web").StaticConfigPublic> & Omit<import("@gui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
195
+ __tama: [Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
196
+ size?: number | SizeTokens | undefined;
197
+ variant?: "outlined" | undefined;
198
+ elevation?: number | SizeTokens | undefined;
199
+ circular?: boolean | undefined;
200
+ chromeless?: boolean | "all" | undefined;
201
+ transparent?: boolean | undefined;
202
+ disabled?: boolean | undefined;
203
+ unstyled?: boolean | undefined;
204
+ fullscreen?: boolean | undefined;
205
+ elevate?: boolean | undefined;
206
+ bordered?: boolean | undefined;
207
+ }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
208
+ textProps?: Partial<import("@gui/text").SizableTextProps>;
209
+ noTextWrap?: boolean;
210
+ } & ThemeableProps & {
211
+ /**
212
+ * add icon before, passes color and size automatically if Component
213
+ */
214
+ icon?: IconProp;
215
+ /**
216
+ * add icon after, passes color and size automatically if Component
217
+ */
218
+ iconAfter?: IconProp;
219
+ /**
220
+ * adjust icon relative to size
221
+ *
222
+ * @default 1
223
+ */
224
+ scaleIcon?: number;
225
+ /**
226
+ * make the spacing elements flex
227
+ */
228
+ spaceFlex?: number | boolean;
229
+ /**
230
+ * adjust internal space relative to icon size
231
+ */
232
+ scaleSpace?: number;
233
+ /**
234
+ * remove default styles
235
+ */
236
+ unstyled?: boolean;
237
+ }, import("@gui/web").GuiElement, import("@gui/core").RNGuiViewNonStyleProps & TextContextStyles & {
238
+ textProps?: Partial<import("@gui/text").SizableTextProps>;
239
+ noTextWrap?: boolean;
240
+ } & ThemeableProps & {
241
+ /**
242
+ * add icon before, passes color and size automatically if Component
243
+ */
244
+ icon?: IconProp;
245
+ /**
246
+ * add icon after, passes color and size automatically if Component
247
+ */
248
+ iconAfter?: IconProp;
249
+ /**
250
+ * adjust icon relative to size
251
+ *
252
+ * @default 1
253
+ */
254
+ scaleIcon?: number;
255
+ /**
256
+ * make the spacing elements flex
257
+ */
258
+ spaceFlex?: number | boolean;
259
+ /**
260
+ * adjust internal space relative to icon size
261
+ */
262
+ scaleSpace?: number;
263
+ /**
264
+ * remove default styles
265
+ */
266
+ unstyled?: boolean;
267
+ }, import("@gui/web").StackStyleBase, {
268
+ size?: number | SizeTokens | undefined;
269
+ variant?: "outlined" | undefined;
270
+ elevation?: number | SizeTokens | undefined;
271
+ circular?: boolean | undefined;
272
+ chromeless?: boolean | "all" | undefined;
273
+ transparent?: boolean | undefined;
274
+ disabled?: boolean | undefined;
275
+ unstyled?: boolean | undefined;
276
+ fullscreen?: boolean | undefined;
277
+ elevate?: boolean | undefined;
278
+ bordered?: boolean | undefined;
279
+ }, import("@gui/web").StaticConfigPublic];
280
+ } & {
281
+ Text: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
282
+ size?: FontSizeTokens | undefined;
283
+ unstyled?: boolean | undefined;
284
+ }, import("@gui/web").StaticConfigPublic>;
285
+ Icon: (props: {
286
+ children: React.ReactNode;
287
+ scaleIcon?: number;
288
+ }) => any;
289
+ };
290
+ /**
291
+ * @deprecated Instead of useButton, see the Button docs for the newer and much improved Advanced customization pattern: https://gui.dev/docs/components/button
292
+ */
293
+ declare function useButton<Props extends ButtonProps>({ textProps, ...propsIn }: Props, { Text }?: {
294
+ Text: any;
295
+ }): {
296
+ spaceSize: number | import("@gui/web").UnionableString | "unset" | import("@gui/web").Variable<any>;
297
+ isNested: boolean;
298
+ props: Props;
299
+ };
300
+ export { Button, ButtonFrame, ButtonIcon, ButtonText, useButton, };
301
+ export type { ButtonProps };
302
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Button.test.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ //# sourceMappingURL=index.d.ts.map