@hanzogui/button 3.0.3 → 7.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 (77) hide show
  1. package/package.json +17 -17
  2. package/src/Button.test.tsx +5 -5
  3. package/src/Button.tsx +5 -5
  4. package/src/v1/Button.test.tsx +5 -5
  5. package/src/v1/Button.tsx +7 -7
  6. package/types/Button.d.ts +17 -17
  7. package/types/v1/Button.d.ts +26 -26
  8. package/dist/cjs/Button.cjs +0 -218
  9. package/dist/cjs/Button.native.js +0 -224
  10. package/dist/cjs/Button.native.js.map +0 -1
  11. package/dist/cjs/Button.test.cjs +0 -36
  12. package/dist/cjs/Button.test.native.js +0 -39
  13. package/dist/cjs/Button.test.native.js.map +0 -1
  14. package/dist/cjs/index.cjs +0 -18
  15. package/dist/cjs/index.native.js +0 -21
  16. package/dist/cjs/index.native.js.map +0 -1
  17. package/dist/cjs/v1/Button.cjs +0 -259
  18. package/dist/cjs/v1/Button.native.js +0 -265
  19. package/dist/cjs/v1/Button.native.js.map +0 -1
  20. package/dist/cjs/v1/Button.test.cjs +0 -9
  21. package/dist/cjs/v1/Button.test.native.js +0 -12
  22. package/dist/cjs/v1/Button.test.native.js.map +0 -1
  23. package/dist/cjs/v1/index.cjs +0 -18
  24. package/dist/cjs/v1/index.native.js +0 -21
  25. package/dist/cjs/v1/index.native.js.map +0 -1
  26. package/dist/esm/Button.mjs +0 -194
  27. package/dist/esm/Button.mjs.map +0 -1
  28. package/dist/esm/Button.native.js +0 -197
  29. package/dist/esm/Button.native.js.map +0 -1
  30. package/dist/esm/Button.test.mjs +0 -37
  31. package/dist/esm/Button.test.mjs.map +0 -1
  32. package/dist/esm/Button.test.native.js +0 -37
  33. package/dist/esm/Button.test.native.js.map +0 -1
  34. package/dist/esm/index.js +0 -2
  35. package/dist/esm/index.js.map +0 -1
  36. package/dist/esm/index.mjs +0 -2
  37. package/dist/esm/index.mjs.map +0 -1
  38. package/dist/esm/index.native.js +0 -2
  39. package/dist/esm/index.native.js.map +0 -1
  40. package/dist/esm/v1/Button.mjs +0 -231
  41. package/dist/esm/v1/Button.mjs.map +0 -1
  42. package/dist/esm/v1/Button.native.js +0 -234
  43. package/dist/esm/v1/Button.native.js.map +0 -1
  44. package/dist/esm/v1/Button.test.mjs +0 -10
  45. package/dist/esm/v1/Button.test.mjs.map +0 -1
  46. package/dist/esm/v1/Button.test.native.js +0 -10
  47. package/dist/esm/v1/Button.test.native.js.map +0 -1
  48. package/dist/esm/v1/index.mjs +0 -2
  49. package/dist/esm/v1/index.mjs.map +0 -1
  50. package/dist/esm/v1/index.native.js +0 -2
  51. package/dist/esm/v1/index.native.js.map +0 -1
  52. package/dist/jsx/Button.mjs +0 -194
  53. package/dist/jsx/Button.mjs.map +0 -1
  54. package/dist/jsx/Button.native.js +0 -224
  55. package/dist/jsx/Button.native.js.map +0 -1
  56. package/dist/jsx/Button.test.mjs +0 -37
  57. package/dist/jsx/Button.test.mjs.map +0 -1
  58. package/dist/jsx/Button.test.native.js +0 -39
  59. package/dist/jsx/Button.test.native.js.map +0 -1
  60. package/dist/jsx/index.js +0 -2
  61. package/dist/jsx/index.js.map +0 -1
  62. package/dist/jsx/index.mjs +0 -2
  63. package/dist/jsx/index.mjs.map +0 -1
  64. package/dist/jsx/index.native.js +0 -21
  65. package/dist/jsx/index.native.js.map +0 -1
  66. package/dist/jsx/v1/Button.mjs +0 -231
  67. package/dist/jsx/v1/Button.mjs.map +0 -1
  68. package/dist/jsx/v1/Button.native.js +0 -265
  69. package/dist/jsx/v1/Button.native.js.map +0 -1
  70. package/dist/jsx/v1/Button.test.mjs +0 -10
  71. package/dist/jsx/v1/Button.test.mjs.map +0 -1
  72. package/dist/jsx/v1/Button.test.native.js +0 -12
  73. package/dist/jsx/v1/Button.test.native.js.map +0 -1
  74. package/dist/jsx/v1/index.mjs +0 -2
  75. package/dist/jsx/v1/index.mjs.map +0 -1
  76. package/dist/jsx/v1/index.native.js +0 -21
  77. package/dist/jsx/v1/index.native.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/button",
3
- "version": "3.0.3",
3
+ "version": "7.0.0",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -31,25 +31,25 @@
31
31
  "access": "public"
32
32
  },
33
33
  "scripts": {
34
- "build": "hanzo-gui-build",
35
- "watch": "hanzo-gui-build --watch",
36
- "clean": "hanzo-gui-build clean",
37
- "clean:build": "hanzo-gui-build clean:build"
34
+ "build": "hanzogui-build",
35
+ "watch": "hanzogui-build --watch",
36
+ "clean": "hanzogui-build clean",
37
+ "clean:build": "hanzogui-build clean:build"
38
38
  },
39
39
  "dependencies": {
40
- "@hanzogui/config-default": "3.0.1",
41
- "@hanzogui/core": "3.0.1",
42
- "@hanzogui/get-button-sized": "3.0.1",
43
- "@hanzogui/helpers": "3.0.1",
44
- "@hanzogui/spacer": "3.0.1",
45
- "@hanzogui/stacks": "3.0.1",
46
- "@hanzogui/text": "3.0.1",
47
- "@hanzogui/font-size": "3.0.1",
48
- "@hanzogui/web": "3.0.1",
49
- "@hanzogui/component-helpers": "3.0.1"
40
+ "@hanzogui/config-default": "^7.0.0",
41
+ "@hanzogui/core": "^7.0.0",
42
+ "@hanzogui/get-button-sized": "^7.0.0",
43
+ "@hanzogui/helpers": "^7.0.0",
44
+ "@hanzogui/component-helpers": "^7.0.0",
45
+ "@hanzogui/spacer": "^7.0.0",
46
+ "@hanzogui/stacks": "^7.0.0",
47
+ "@hanzogui/text": "^7.0.0",
48
+ "@hanzogui/font-size": "^7.0.0",
49
+ "@hanzogui/web": "^7.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@hanzogui/build": "3.0.1",
52
+ "@hanzogui/build": "^7.0.0",
53
53
  "react": ">=19",
54
54
  "vitest": "4.0.4"
55
55
  },
@@ -57,4 +57,4 @@
57
57
  "react": ">=19"
58
58
  },
59
59
  "module:jsx": "dist/jsx"
60
- }
60
+ }
@@ -1,9 +1,9 @@
1
- import { getDefaultGuiConfig } from '@hanzogui/config-default'
2
- import { createGui } from '@hanzogui/core'
1
+ import { getDefaultHanzoguiConfig } from '@hanzogui/config-default'
2
+ import { createHanzogui } from '@hanzogui/core'
3
3
  import { describe, expect, test } from 'vitest'
4
4
  import { Button } from './Button'
5
5
 
6
- const conf = createGui(getDefaultGuiConfig())
6
+ const conf = createHanzogui(getDefaultHanzoguiConfig())
7
7
 
8
8
  describe('Button', () => {
9
9
  test(`123`, () => {
@@ -35,9 +35,9 @@ describe('Button', () => {
35
35
 
36
36
  // test(`Adapts to a when given accessibilityRole="link"`, async () => {
37
37
  // const { container } = render(
38
- // <GuiProvider config={conf} defaultTheme="light">
38
+ // <HanzoguiProvider config={conf} defaultTheme="light">
39
39
  // <Button href="http://google.com" accessibilityRole="link" />
40
- // </GuiProvider>
40
+ // </HanzoguiProvider>
41
41
  // )
42
42
 
43
43
  // expect(container.firstChild).toMatchSnapshot()
package/src/Button.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getFontSize } from '@hanzogui/font-size'
2
2
  import { getButtonSized } from '@hanzogui/get-button-sized'
3
- import { getIcon, useCurrentColor } from '@hanzogui/helpers'
3
+ import { getIcon, useCurrentColor } from '@hanzogui/component-helpers'
4
4
  import { ButtonNestingContext, getElevation, themeableVariants } from '@hanzogui/stacks'
5
5
  import { SizableText, wrapChildrenInText } from '@hanzogui/text'
6
6
  import type { ColorTokens, GetProps, SizeTokens, Token } from '@hanzogui/web'
@@ -69,7 +69,7 @@ const Frame = styled(View, {
69
69
 
70
70
  variant: {
71
71
  outlined:
72
- process.env.HANZO_GUI_HEADLESS === '1'
72
+ process.env.HANZOGUI_HEADLESS === '1'
73
73
  ? {}
74
74
  : {
75
75
  backgroundColor: 'transparent',
@@ -126,7 +126,7 @@ const Frame = styled(View, {
126
126
  } as const,
127
127
 
128
128
  defaultVariants: {
129
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
129
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
130
130
  },
131
131
  })
132
132
 
@@ -148,7 +148,7 @@ const Text = styled(SizableText, {
148
148
  } as const,
149
149
 
150
150
  defaultVariants: {
151
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
151
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
152
152
  },
153
153
  })
154
154
 
@@ -239,7 +239,7 @@ const ButtonComponent = Frame.styleable<ButtonExtraProps>((propsIn, ref) => {
239
239
  Text,
240
240
  { children },
241
241
  {
242
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
242
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
243
243
  size: finalSize ?? styledContext?.size,
244
244
  }
245
245
  )
@@ -1,8 +1,8 @@
1
- import { getDefaultGuiConfig } from '@hanzogui/config-default'
2
- import { createGui } from '@hanzogui/core'
1
+ import { getDefaultHanzoguiConfig } from '@hanzogui/config-default'
2
+ import { createHanzogui } from '@hanzogui/core'
3
3
  import { describe, expect, test } from 'vitest'
4
4
 
5
- const conf = createGui(getDefaultGuiConfig())
5
+ const conf = createHanzogui(getDefaultHanzoguiConfig())
6
6
 
7
7
  describe('Button', () => {
8
8
  test(`123`, () => {
@@ -11,9 +11,9 @@ describe('Button', () => {
11
11
 
12
12
  // test(`Adapts to a when given accessibilityRole="link"`, async () => {
13
13
  // const { container } = render(
14
- // <GuiProvider config={conf} defaultTheme="light">
14
+ // <HanzoguiProvider config={conf} defaultTheme="light">
15
15
  // <Button href="http://google.com" accessibilityRole="link" />
16
- // </GuiProvider>
16
+ // </HanzoguiProvider>
17
17
  // )
18
18
 
19
19
  // expect(container.firstChild).toMatchSnapshot()
package/src/v1/Button.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import { getFontSize } from '@hanzogui/font-size'
2
2
  import { getButtonSized } from '@hanzogui/get-button-sized'
3
3
  import { withStaticProperties } from '@hanzogui/helpers'
4
- import { useGetThemedIcon } from '@hanzogui/helpers'
4
+ import { useGetThemedIcon } from '@hanzogui/component-helpers'
5
5
  import { ButtonNestingContext, ThemeableStack } from '@hanzogui/stacks'
6
6
  import type { TextContextStyles, TextParentStyles } from '@hanzogui/text'
7
7
  import { SizableText, wrapChildrenInText } from '@hanzogui/text'
@@ -142,7 +142,7 @@ const ButtonFrame = styled(ThemeableStack, {
142
142
  } as const,
143
143
 
144
144
  defaultVariants: {
145
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
145
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
146
146
  },
147
147
  })
148
148
 
@@ -165,7 +165,7 @@ const ButtonText = styled(SizableText, {
165
165
  } as const,
166
166
 
167
167
  defaultVariants: {
168
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
168
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
169
169
  },
170
170
  })
171
171
 
@@ -191,7 +191,7 @@ const ButtonComponent = ButtonFrame.styleable<ButtonExtraProps>(
191
191
  )
192
192
  /**
193
193
  * @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.
194
- * @see — Docs https://gui.dev/ui/button
194
+ * @see — Docs https://hanzogui.dev/ui/button
195
195
  */
196
196
  const Button = withStaticProperties(ButtonComponent, {
197
197
  Text: ButtonText,
@@ -199,7 +199,7 @@ const Button = withStaticProperties(ButtonComponent, {
199
199
  })
200
200
 
201
201
  /**
202
- * @deprecated Instead of useButton, see the Button docs for the newer and much improved Advanced customization pattern: https://gui.dev/docs/components/button
202
+ * @deprecated Instead of useButton, see the Button docs for the newer and much improved Advanced customization pattern: https://hanzogui.dev/docs/components/button
203
203
  */
204
204
  function useButton<Props extends ButtonProps>(
205
205
  { textProps, ...propsIn }: Props,
@@ -267,7 +267,7 @@ function useButton<Props extends ButtonProps>(
267
267
  },
268
268
  Text === ButtonText && propsActive.unstyled !== true
269
269
  ? {
270
- unstyled: process.env.HANZO_GUI_HEADLESS === '1',
270
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
271
271
  size,
272
272
  }
273
273
  : undefined
@@ -304,7 +304,7 @@ function useButton<Props extends ButtonProps>(
304
304
  (isNested
305
305
  ? 'span'
306
306
  : // defaults to <a /> when accessibilityRole = link
307
- // see https://github.com/gui/gui/issues/505
307
+ // see https://github.com/hanzoai/gui/issues/505
308
308
  propsActive.accessibilityRole === 'link' || propsActive.role === 'link'
309
309
  ? 'a'
310
310
  : 'button'),
package/types/Button.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { ColorTokens, GetProps, SizeTokens } from '@gui/web';
1
+ import type { ColorTokens, GetProps, SizeTokens } from '@hanzogui/web';
2
2
  import type { FunctionComponent, JSX } from 'react';
3
3
  type ButtonVariant = 'outlined';
4
- export declare const ButtonContext: import("@gui/web").StyledContext<{
4
+ export declare const ButtonContext: import("@hanzogui/web").StyledContext<{
5
5
  size?: SizeTokens;
6
6
  variant?: ButtonVariant;
7
7
  color?: ColorTokens | string;
@@ -25,7 +25,7 @@ type ButtonExtraProps = {
25
25
  name?: string;
26
26
  value?: string | readonly string[] | number;
27
27
  };
28
- declare const ButtonComponent: import("@gui/web").GuiComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
28
+ declare const ButtonComponent: import("@hanzogui/web").HanzoguiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
29
29
  size?: number | SizeTokens | undefined;
30
30
  variant?: "outlined" | undefined;
31
31
  elevation?: number | SizeTokens | undefined;
@@ -33,7 +33,7 @@ declare const ButtonComponent: import("@gui/web").GuiComponent<Omit<import("@gui
33
33
  chromeless?: boolean | "all" | undefined;
34
34
  disabled?: boolean | undefined;
35
35
  unstyled?: boolean | undefined;
36
- }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
36
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
37
37
  size?: number | SizeTokens | undefined;
38
38
  variant?: "outlined" | undefined;
39
39
  elevation?: number | SizeTokens | undefined;
@@ -41,8 +41,8 @@ declare const ButtonComponent: import("@gui/web").GuiComponent<Omit<import("@gui
41
41
  chromeless?: boolean | "all" | undefined;
42
42
  disabled?: boolean | undefined;
43
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, {
44
+ }, import("@hanzogui/web").StaticConfigPublic>;
45
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
46
46
  size?: number | SizeTokens | undefined;
47
47
  variant?: "outlined" | undefined;
48
48
  elevation?: number | SizeTokens | undefined;
@@ -50,7 +50,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
50
50
  chromeless?: boolean | "all" | undefined;
51
51
  disabled?: boolean | undefined;
52
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, {
53
+ }>, keyof ButtonExtraProps> & ButtonExtraProps & import("react").RefAttributes<import("@hanzogui/web").HanzoguiElement>> & import("@hanzogui/web").StaticComponentObject<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
54
54
  size?: number | SizeTokens | undefined;
55
55
  variant?: "outlined" | undefined;
56
56
  elevation?: number | SizeTokens | undefined;
@@ -58,7 +58,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
58
58
  chromeless?: boolean | "all" | undefined;
59
59
  disabled?: boolean | undefined;
60
60
  unstyled?: boolean | undefined;
61
- }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
61
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
62
62
  size?: number | SizeTokens | undefined;
63
63
  variant?: "outlined" | undefined;
64
64
  elevation?: number | SizeTokens | undefined;
@@ -66,8 +66,8 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
66
66
  chromeless?: boolean | "all" | undefined;
67
67
  disabled?: boolean | undefined;
68
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, {
69
+ }, import("@hanzogui/web").StaticConfigPublic> & Omit<import("@hanzogui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
70
+ __tama: [Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
71
71
  size?: number | SizeTokens | undefined;
72
72
  variant?: "outlined" | undefined;
73
73
  elevation?: number | SizeTokens | undefined;
@@ -75,7 +75,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
75
75
  chromeless?: boolean | "all" | undefined;
76
76
  disabled?: boolean | undefined;
77
77
  unstyled?: boolean | undefined;
78
- }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps & ButtonExtraProps, import("@gui/web").StackStyleBase, {
78
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
79
79
  size?: number | SizeTokens | undefined;
80
80
  variant?: "outlined" | undefined;
81
81
  elevation?: number | SizeTokens | undefined;
@@ -83,7 +83,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
83
83
  chromeless?: boolean | "all" | undefined;
84
84
  disabled?: boolean | undefined;
85
85
  unstyled?: boolean | undefined;
86
- }, import("@gui/web").StaticConfigPublic];
86
+ }, import("@hanzogui/web").StaticConfigPublic];
87
87
  } & {
88
88
  Apply: import("react").Provider<{
89
89
  size?: SizeTokens;
@@ -99,7 +99,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
99
99
  children?: import("react").ReactNode;
100
100
  scope?: string;
101
101
  }>;
102
- Frame: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiElement, import("@gui/web").StackNonStyleProps, import("@gui/web").StackStyleBase, {
102
+ Frame: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
103
103
  size?: number | SizeTokens | undefined;
104
104
  variant?: "outlined" | undefined;
105
105
  elevation?: number | SizeTokens | undefined;
@@ -107,11 +107,11 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
107
107
  chromeless?: boolean | "all" | undefined;
108
108
  disabled?: boolean | undefined;
109
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;
110
+ }, import("@hanzogui/web").StaticConfigPublic>;
111
+ Text: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
112
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
113
113
  unstyled?: boolean | undefined;
114
- }, import("@gui/web").StaticConfigPublic>;
114
+ }, import("@hanzogui/web").StaticConfigPublic>;
115
115
  Icon: (props: {
116
116
  children: React.ReactNode;
117
117
  scaleIcon?: number;
@@ -1,8 +1,8 @@
1
- import type { TextContextStyles, TextParentStyles } from '@gui/text';
2
- import type { FontSizeTokens, GetProps, SizeTokens, ThemeableProps } from '@gui/web';
1
+ import type { TextContextStyles, TextParentStyles } from '@hanzogui/text';
2
+ import type { FontSizeTokens, GetProps, SizeTokens, ThemeableProps } from '@hanzogui/web';
3
3
  import type { FunctionComponent, JSX } from 'react';
4
4
  type ButtonVariant = 'outlined';
5
- export declare const ButtonContext: import("@gui/web").StyledContext<Partial<TextContextStyles & {
5
+ export declare const ButtonContext: import("@hanzogui/web").StyledContext<Partial<TextContextStyles & {
6
6
  size: SizeTokens;
7
7
  variant?: ButtonVariant;
8
8
  }>>;
@@ -40,7 +40,7 @@ type ButtonExtraProps = TextParentStyles & ThemeableProps & {
40
40
  unstyled?: boolean;
41
41
  };
42
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, {
43
+ declare const ButtonFrame: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
44
44
  size?: number | SizeTokens | undefined;
45
45
  variant?: "outlined" | undefined;
46
46
  elevation?: number | SizeTokens | undefined;
@@ -52,20 +52,20 @@ declare const ButtonFrame: import("@gui/web").GuiComponent<import("@gui/web").Ta
52
52
  fullscreen?: boolean | undefined;
53
53
  elevate?: boolean | undefined;
54
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, {
55
+ }, import("@hanzogui/web").StaticConfigPublic>;
56
+ declare const ButtonText: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
57
57
  size?: FontSizeTokens | undefined;
58
58
  unstyled?: boolean | undefined;
59
- }, import("@gui/web").StaticConfigPublic>;
59
+ }, import("@hanzogui/web").StaticConfigPublic>;
60
60
  declare const ButtonIcon: (props: {
61
61
  children: React.ReactNode;
62
62
  scaleIcon?: number;
63
63
  }) => any;
64
64
  /**
65
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
66
+ * @see — Docs https://hanzogui.dev/ui/button
67
67
  */
68
- declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gui/web").GetFinalProps<import("@gui/core").RNGuiViewNonStyleProps, import("@gui/web").StackStyleBase, {
68
+ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
69
69
  size?: number | SizeTokens | undefined;
70
70
  variant?: "outlined" | undefined;
71
71
  elevation?: number | SizeTokens | undefined;
@@ -78,7 +78,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
78
78
  elevate?: boolean | undefined;
79
79
  bordered?: boolean | undefined;
80
80
  }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
81
- textProps?: Partial<import("@gui/text").SizableTextProps>;
81
+ textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
82
82
  noTextWrap?: boolean;
83
83
  } & ThemeableProps & {
84
84
  /**
@@ -107,7 +107,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
107
107
  * remove default styles
108
108
  */
109
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, {
110
+ } & import("react").RefAttributes<import("@hanzogui/web").HanzoguiElement>> & import("@hanzogui/web").StaticComponentObject<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
111
111
  size?: number | SizeTokens | undefined;
112
112
  variant?: "outlined" | undefined;
113
113
  elevation?: number | SizeTokens | undefined;
@@ -120,7 +120,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
120
120
  elevate?: boolean | undefined;
121
121
  bordered?: boolean | undefined;
122
122
  }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
123
- textProps?: Partial<import("@gui/text").SizableTextProps>;
123
+ textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
124
124
  noTextWrap?: boolean;
125
125
  } & ThemeableProps & {
126
126
  /**
@@ -149,8 +149,8 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
149
149
  * remove default styles
150
150
  */
151
151
  unstyled?: boolean;
152
- }, import("@gui/web").GuiElement, import("@gui/core").RNGuiViewNonStyleProps & TextContextStyles & {
153
- textProps?: Partial<import("@gui/text").SizableTextProps>;
152
+ }, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps & TextContextStyles & {
153
+ textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
154
154
  noTextWrap?: boolean;
155
155
  } & ThemeableProps & {
156
156
  /**
@@ -179,7 +179,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
179
179
  * remove default styles
180
180
  */
181
181
  unstyled?: boolean;
182
- }, import("@gui/web").StackStyleBase, {
182
+ }, import("@hanzogui/web").StackStyleBase, {
183
183
  size?: number | SizeTokens | undefined;
184
184
  variant?: "outlined" | undefined;
185
185
  elevation?: number | SizeTokens | undefined;
@@ -191,8 +191,8 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
191
191
  fullscreen?: boolean | undefined;
192
192
  elevate?: boolean | undefined;
193
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, {
194
+ }, import("@hanzogui/web").StaticConfigPublic> & Omit<import("@hanzogui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
195
+ __tama: [Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
196
196
  size?: number | SizeTokens | undefined;
197
197
  variant?: "outlined" | undefined;
198
198
  elevation?: number | SizeTokens | undefined;
@@ -205,7 +205,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
205
205
  elevate?: boolean | undefined;
206
206
  bordered?: boolean | undefined;
207
207
  }>, "unstyled" | "icon" | "iconAfter" | "scaleIcon" | keyof TextContextStyles | "textProps" | "noTextWrap" | keyof ThemeableProps | "spaceFlex" | "scaleSpace"> & TextContextStyles & {
208
- textProps?: Partial<import("@gui/text").SizableTextProps>;
208
+ textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
209
209
  noTextWrap?: boolean;
210
210
  } & ThemeableProps & {
211
211
  /**
@@ -234,8 +234,8 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
234
234
  * remove default styles
235
235
  */
236
236
  unstyled?: boolean;
237
- }, import("@gui/web").GuiElement, import("@gui/core").RNGuiViewNonStyleProps & TextContextStyles & {
238
- textProps?: Partial<import("@gui/text").SizableTextProps>;
237
+ }, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps & TextContextStyles & {
238
+ textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
239
239
  noTextWrap?: boolean;
240
240
  } & ThemeableProps & {
241
241
  /**
@@ -264,7 +264,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
264
264
  * remove default styles
265
265
  */
266
266
  unstyled?: boolean;
267
- }, import("@gui/web").StackStyleBase, {
267
+ }, import("@hanzogui/web").StackStyleBase, {
268
268
  size?: number | SizeTokens | undefined;
269
269
  variant?: "outlined" | undefined;
270
270
  elevation?: number | SizeTokens | undefined;
@@ -276,24 +276,24 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@gu
276
276
  fullscreen?: boolean | undefined;
277
277
  elevate?: boolean | undefined;
278
278
  bordered?: boolean | undefined;
279
- }, import("@gui/web").StaticConfigPublic];
279
+ }, import("@hanzogui/web").StaticConfigPublic];
280
280
  } & {
281
- Text: import("@gui/web").GuiComponent<import("@gui/web").TamaDefer, import("@gui/web").GuiTextElement, import("@gui/web").TextNonStyleProps, import("@gui/web").TextStylePropsBase, {
281
+ Text: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
282
282
  size?: FontSizeTokens | undefined;
283
283
  unstyled?: boolean | undefined;
284
- }, import("@gui/web").StaticConfigPublic>;
284
+ }, import("@hanzogui/web").StaticConfigPublic>;
285
285
  Icon: (props: {
286
286
  children: React.ReactNode;
287
287
  scaleIcon?: number;
288
288
  }) => any;
289
289
  };
290
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
291
+ * @deprecated Instead of useButton, see the Button docs for the newer and much improved Advanced customization pattern: https://hanzogui.dev/docs/components/button
292
292
  */
293
293
  declare function useButton<Props extends ButtonProps>({ textProps, ...propsIn }: Props, { Text }?: {
294
294
  Text: any;
295
295
  }): {
296
- spaceSize: number | import("@gui/web").UnionableString | "unset" | import("@gui/web").Variable<any>;
296
+ spaceSize: number | import("@hanzogui/web").UnionableString | "unset" | import("@hanzogui/web").Variable<any>;
297
297
  isNested: boolean;
298
298
  props: Props;
299
299
  };