@hanzogui/button 7.0.0 → 7.3.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.
Files changed (84) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/Button.cjs +225 -0
  3. package/dist/cjs/Button.native.js +229 -0
  4. package/dist/cjs/Button.native.js.map +1 -0
  5. package/dist/cjs/Button.test.cjs +37 -0
  6. package/dist/cjs/Button.test.native.js +40 -0
  7. package/dist/cjs/Button.test.native.js.map +1 -0
  8. package/dist/cjs/index.cjs +20 -0
  9. package/dist/cjs/index.native.js +23 -0
  10. package/dist/cjs/index.native.js.map +1 -0
  11. package/dist/cjs/v1/Button.cjs +262 -0
  12. package/dist/cjs/v1/Button.native.js +267 -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 +20 -0
  18. package/dist/cjs/v1/index.native.js +23 -0
  19. package/dist/cjs/v1/index.native.js.map +1 -0
  20. package/dist/esm/Button.mjs +199 -0
  21. package/dist/esm/Button.mjs.map +1 -0
  22. package/dist/esm/Button.native.js +200 -0
  23. package/dist/esm/Button.native.js.map +1 -0
  24. package/dist/esm/Button.test.mjs +38 -0
  25. package/dist/esm/Button.test.mjs.map +1 -0
  26. package/dist/esm/Button.test.native.js +38 -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 +232 -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 +199 -0
  47. package/dist/jsx/Button.mjs.map +1 -0
  48. package/dist/jsx/Button.native.js +229 -0
  49. package/dist/jsx/Button.native.js.map +1 -0
  50. package/dist/jsx/Button.test.mjs +38 -0
  51. package/dist/jsx/Button.test.mjs.map +1 -0
  52. package/dist/jsx/Button.test.native.js +40 -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 +23 -0
  59. package/dist/jsx/index.native.js.map +1 -0
  60. package/dist/jsx/v1/Button.mjs +232 -0
  61. package/dist/jsx/v1/Button.mjs.map +1 -0
  62. package/dist/jsx/v1/Button.native.js +267 -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 +23 -0
  71. package/dist/jsx/v1/index.native.js.map +1 -0
  72. package/package.json +20 -18
  73. package/src/Button.test.tsx +5 -5
  74. package/src/Button.tsx +4 -4
  75. package/src/v1/Button.test.tsx +5 -5
  76. package/src/v1/Button.tsx +5 -5
  77. package/types/Button.d.ts +7 -7
  78. package/types/Button.d.ts.map +1 -0
  79. package/types/Button.test.d.ts.map +1 -0
  80. package/types/index.d.ts.map +1 -0
  81. package/types/v1/Button.d.ts +10 -10
  82. package/types/v1/Button.d.ts.map +1 -0
  83. package/types/v1/Button.test.d.ts.map +1 -0
  84. package/types/v1/index.d.ts.map +1 -0
@@ -1,9 +1,9 @@
1
- import { getDefaultHanzoguiConfig } from '@hanzogui/config-default'
2
- import { createHanzogui } from '@hanzogui/core'
1
+ import { getDefaultGuiConfig } from '@hanzogui/config-default'
2
+ import { createGui } from '@hanzogui/core'
3
3
  import { describe, expect, test } from 'vitest'
4
4
  import { Button } from './Button'
5
5
 
6
- const conf = createHanzogui(getDefaultHanzoguiConfig())
6
+ const conf = createGui(getDefaultGuiConfig())
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
- // <HanzoguiProvider config={conf} defaultTheme="light">
38
+ // <GuiProvider config={conf} defaultTheme="light">
39
39
  // <Button href="http://google.com" accessibilityRole="link" />
40
- // </HanzoguiProvider>
40
+ // </GuiProvider>
41
41
  // )
42
42
 
43
43
  // expect(container.firstChild).toMatchSnapshot()
package/src/Button.tsx CHANGED
@@ -69,7 +69,7 @@ const Frame = styled(View, {
69
69
 
70
70
  variant: {
71
71
  outlined:
72
- process.env.HANZOGUI_HEADLESS === '1'
72
+ process.env.GUI_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.HANZOGUI_HEADLESS === '1',
129
+ unstyled: process.env.GUI_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.HANZOGUI_HEADLESS === '1',
151
+ unstyled: process.env.GUI_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.HANZOGUI_HEADLESS === '1',
242
+ unstyled: process.env.GUI_HEADLESS === '1',
243
243
  size: finalSize ?? styledContext?.size,
244
244
  }
245
245
  )
@@ -1,8 +1,8 @@
1
- import { getDefaultHanzoguiConfig } from '@hanzogui/config-default'
2
- import { createHanzogui } from '@hanzogui/core'
1
+ import { getDefaultGuiConfig } from '@hanzogui/config-default'
2
+ import { createGui } from '@hanzogui/core'
3
3
  import { describe, expect, test } from 'vitest'
4
4
 
5
- const conf = createHanzogui(getDefaultHanzoguiConfig())
5
+ const conf = createGui(getDefaultGuiConfig())
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
- // <HanzoguiProvider config={conf} defaultTheme="light">
14
+ // <GuiProvider config={conf} defaultTheme="light">
15
15
  // <Button href="http://google.com" accessibilityRole="link" />
16
- // </HanzoguiProvider>
16
+ // </GuiProvider>
17
17
  // )
18
18
 
19
19
  // expect(container.firstChild).toMatchSnapshot()
package/src/v1/Button.tsx CHANGED
@@ -142,7 +142,7 @@ const ButtonFrame = styled(ThemeableStack, {
142
142
  } as const,
143
143
 
144
144
  defaultVariants: {
145
- unstyled: process.env.HANZOGUI_HEADLESS === '1',
145
+ unstyled: process.env.GUI_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.HANZOGUI_HEADLESS === '1',
168
+ unstyled: process.env.GUI_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://hanzogui.dev/ui/button
194
+ * @see — Docs https://gui.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://hanzogui.dev/docs/components/button
202
+ * @deprecated Instead of useButton, see the Button docs for the newer and much improved Advanced customization pattern: https://gui.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.HANZOGUI_HEADLESS === '1',
270
+ unstyled: process.env.GUI_HEADLESS === '1',
271
271
  size,
272
272
  }
273
273
  : undefined
package/types/Button.d.ts CHANGED
@@ -25,7 +25,7 @@ type ButtonExtraProps = {
25
25
  name?: string;
26
26
  value?: string | readonly string[] | number;
27
27
  };
28
- declare const ButtonComponent: import("@hanzogui/web").HanzoguiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
28
+ declare const ButtonComponent: import("@hanzogui/web").GuiComponent<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("@hanzogui/web").HanzoguiComponent<Omit<im
33
33
  chromeless?: boolean | "all" | undefined;
34
34
  disabled?: boolean | undefined;
35
35
  unstyled?: boolean | undefined;
36
- }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
36
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").GuiElement, 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;
@@ -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("@hanzogui/web").HanzoguiElement>> & import("@hanzogui/web").StaticComponentObject<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
53
+ }>, keyof ButtonExtraProps> & ButtonExtraProps & import("react").RefAttributes<import("@hanzogui/web").GuiElement>> & 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("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
61
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").GuiElement, 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;
@@ -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("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps & ButtonExtraProps, import("@hanzogui/web").StackStyleBase, {
78
+ }>, keyof ButtonExtraProps> & ButtonExtraProps, import("@hanzogui/web").GuiElement, 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;
@@ -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("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {
102
+ Frame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiElement, 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;
@@ -108,7 +108,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<impo
108
108
  disabled?: boolean | undefined;
109
109
  unstyled?: boolean | undefined;
110
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, {
111
+ Text: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
112
112
  size?: import("@hanzogui/web").FontSizeTokens | undefined;
113
113
  unstyled?: boolean | undefined;
114
114
  }, import("@hanzogui/web").StaticConfigPublic>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAS,MAAM,eAAe,CAAA;AAS7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGnD,KAAK,aAAa,GAAG,UAAU,CAAA;AAiK/B,eAAO,MAAM,aAAa;WACjB,UAAU;cACP,aAAa;YACf,WAAW,GAAG,MAAM;EAK5B,CAAA;AAEF,KAAK,QAAQ,GAAG,GAAG,CAAC,OAAO,GAAG,iBAAiB,CAAC;IAAE,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,GAAG,IAAI,CAAA;AAEnF,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,QAAQ,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,UAAU,CAAA;IAGrB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAAA;CAC5C,CAAA;AAED,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;8CAsDnB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eApPV,UAAU;kBACP,aAAa;gBACf,WAAW,GAAG,MAAM;oBAChB,UAAU,GAAG,MAAM;;eAHxB,UAAU;kBACP,aAAa;gBACf,WAAW,GAAG,MAAM;oBAChB,UAAU,GAAG,MAAM;;;;;;;;;;;;;;;;;;kBAmIZ;QACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;QACzB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,IAAI,CAAC,EAAE,UAAU,CAAA;KAClB;CA+GC,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../src/Button.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -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("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
43
+ declare const ButtonFrame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
44
44
  size?: number | SizeTokens | undefined;
45
45
  variant?: "outlined" | undefined;
46
46
  elevation?: number | SizeTokens | undefined;
@@ -53,7 +53,7 @@ declare const ButtonFrame: import("@hanzogui/web").HanzoguiComponent<import("@ha
53
53
  elevate?: boolean | undefined;
54
54
  bordered?: boolean | undefined;
55
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, {
56
+ declare const ButtonText: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
57
57
  size?: FontSizeTokens | undefined;
58
58
  unstyled?: boolean | undefined;
59
59
  }, import("@hanzogui/web").StaticConfigPublic>;
@@ -63,9 +63,9 @@ declare const ButtonIcon: (props: {
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://hanzogui.dev/ui/button
66
+ * @see — Docs https://gui.dev/ui/button
67
67
  */
68
- declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
68
+ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
69
69
  size?: number | SizeTokens | undefined;
70
70
  variant?: "outlined" | undefined;
71
71
  elevation?: number | SizeTokens | undefined;
@@ -107,7 +107,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
107
107
  * remove default styles
108
108
  */
109
109
  unstyled?: boolean;
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, {
110
+ } & import("react").RefAttributes<import("@hanzogui/web").GuiElement>> & import("@hanzogui/web").StaticComponentObject<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
111
111
  size?: number | SizeTokens | undefined;
112
112
  variant?: "outlined" | undefined;
113
113
  elevation?: number | SizeTokens | undefined;
@@ -149,7 +149,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
149
149
  * remove default styles
150
150
  */
151
151
  unstyled?: boolean;
152
- }, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps & TextContextStyles & {
152
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & TextContextStyles & {
153
153
  textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
154
154
  noTextWrap?: boolean;
155
155
  } & ThemeableProps & {
@@ -192,7 +192,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
192
192
  elevate?: boolean | undefined;
193
193
  bordered?: boolean | undefined;
194
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, {
195
+ __tama: [Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
196
196
  size?: number | SizeTokens | undefined;
197
197
  variant?: "outlined" | undefined;
198
198
  elevation?: number | SizeTokens | undefined;
@@ -234,7 +234,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
234
234
  * remove default styles
235
235
  */
236
236
  unstyled?: boolean;
237
- }, import("@hanzogui/web").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps & TextContextStyles & {
237
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNViewNonStyleProps & TextContextStyles & {
238
238
  textProps?: Partial<import("@hanzogui/text").SizableTextProps>;
239
239
  noTextWrap?: boolean;
240
240
  } & ThemeableProps & {
@@ -278,7 +278,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
278
278
  bordered?: boolean | undefined;
279
279
  }, import("@hanzogui/web").StaticConfigPublic];
280
280
  } & {
281
- Text: import("@hanzogui/web").HanzoguiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").HanzoguiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
281
+ Text: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
282
282
  size?: FontSizeTokens | undefined;
283
283
  unstyled?: boolean | undefined;
284
284
  }, import("@hanzogui/web").StaticConfigPublic>;
@@ -288,7 +288,7 @@ declare const Button: import("react").ForwardRefExoticComponent<Omit<import("@ha
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://hanzogui.dev/docs/components/button
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
292
  */
293
293
  declare function useButton<Props extends ButtonProps>({ textProps, ...propsIn }: Props, { Text }?: {
294
294
  Text: any;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/v1/Button.tsx"],"names":[],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,EAAE,KAAK,EAChC,EAAE,IAAkB,EAAE,GAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAA0B;;;;EAwH9D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,UAAU,EACV,UAAU,EAEV,SAAS,GACV,CAAA;AACD,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../src/v1/Button.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}