@luxfi/ui 7.3.1 → 7.4.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 (59) hide show
  1. package/dist/alert.cjs +2 -2
  2. package/dist/alert.js +1 -1
  3. package/dist/badge.cjs +6 -6
  4. package/dist/badge.js +1 -1
  5. package/dist/bank.cjs +13 -13
  6. package/dist/bank.d.cts +30 -23
  7. package/dist/bank.d.ts +30 -23
  8. package/dist/bank.js +1 -1
  9. package/dist/button.cjs +3 -3
  10. package/dist/button.js +1 -1
  11. package/dist/close-button.cjs +2 -2
  12. package/dist/close-button.js +1 -1
  13. package/dist/dialog.cjs +13 -14
  14. package/dist/dialog.d.cts +58 -5
  15. package/dist/dialog.d.ts +58 -5
  16. package/dist/dialog.js +1 -2
  17. package/dist/drawer.cjs +2 -2
  18. package/dist/drawer.js +1 -1
  19. package/dist/icon-button.cjs +2 -2
  20. package/dist/icon-button.js +1 -1
  21. package/dist/index.cjs +127 -59
  22. package/dist/index.d.cts +6 -2
  23. package/dist/index.d.ts +6 -2
  24. package/dist/index.js +85 -22
  25. package/dist/input.cjs +10 -2
  26. package/dist/input.d.cts +8 -0
  27. package/dist/input.d.ts +8 -0
  28. package/dist/input.js +10 -2
  29. package/dist/lux.config.cjs +56 -0
  30. package/dist/lux.config.d.cts +415 -0
  31. package/dist/lux.config.d.ts +415 -0
  32. package/dist/lux.config.js +48 -0
  33. package/dist/popover.cjs +8 -9
  34. package/dist/popover.js +1 -2
  35. package/dist/provider.cjs +62 -12
  36. package/dist/provider.d.cts +3 -2
  37. package/dist/provider.d.ts +3 -2
  38. package/dist/provider.js +62 -12
  39. package/dist/tag.cjs +7 -8
  40. package/dist/tag.js +1 -2
  41. package/dist/textarea.cjs +10 -2
  42. package/dist/textarea.d.cts +2 -0
  43. package/dist/textarea.d.ts +2 -0
  44. package/dist/textarea.js +10 -2
  45. package/dist/tooltip.cjs +6 -6
  46. package/dist/tooltip.js +1 -1
  47. package/package.json +24 -12
  48. package/src/bank.tsx +2 -2
  49. package/src/button.tsx +1 -1
  50. package/src/close-button.tsx +1 -1
  51. package/src/dialog.tsx +1 -1
  52. package/src/icon-button.tsx +1 -1
  53. package/src/index.ts +6 -0
  54. package/src/input.tsx +17 -1
  55. package/src/lux.config.ts +81 -0
  56. package/src/popover.tsx +1 -1
  57. package/src/provider.tsx +51 -15
  58. package/src/textarea.tsx +11 -1
  59. package/src/tooltip.tsx +2 -2
package/dist/alert.cjs CHANGED
@@ -4,7 +4,7 @@
4
4
  var React2 = require('react');
5
5
  var clsx = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
7
- var core = require('@hanzogui/core');
7
+ var gui = require('@hanzo/gui');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -32,7 +32,7 @@ function cn(...inputs) {
32
32
  return tailwindMerge.twMerge(clsx.clsx(inputs));
33
33
  }
34
34
  var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
35
- var CloseButtonFrame = core.styled(core.View, {
35
+ var CloseButtonFrame = gui.styled(gui.View, {
36
36
  name: "LuxCloseButton",
37
37
  render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close" }),
38
38
  role: "button",
package/dist/alert.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as React2 from 'react';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
- import { styled, View } from '@hanzogui/core';
5
+ import { styled, View } from '@hanzo/gui';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
7
 
8
8
  // src/alert.tsx
package/dist/badge.cjs CHANGED
@@ -5,7 +5,7 @@ var React2 = require('react');
5
5
  var clsx = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
- var tooltip = require('@hanzogui/tooltip');
8
+ var gui = require('@hanzo/gui');
9
9
  var usehooks = require('@uidotdev/usehooks');
10
10
 
11
11
  function _interopNamespace(e) {
@@ -300,8 +300,8 @@ var Tooltip = React2__namespace.forwardRef(
300
300
  const isPopover = variant === "popover";
301
301
  const placement = mapPlacement(positioning?.placement) ?? "top";
302
302
  const offset = positioning?.offset?.mainAxis ?? 4;
303
- return /* @__PURE__ */ jsxRuntime.jsx(tooltip.TooltipGroup, { delay: openDelay, children: /* @__PURE__ */ jsxRuntime.jsxs(
304
- tooltip.Tooltip,
303
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.TooltipGroup, { delay: openDelay, children: /* @__PURE__ */ jsxRuntime.jsxs(
304
+ gui.Tooltip,
305
305
  {
306
306
  open,
307
307
  onOpenChange: handleOpenChange,
@@ -311,7 +311,7 @@ var Tooltip = React2__namespace.forwardRef(
311
311
  unstyled: true,
312
312
  children: [
313
313
  /* @__PURE__ */ jsxRuntime.jsx(
314
- tooltip.Tooltip.Trigger,
314
+ gui.Tooltip.Trigger,
315
315
  {
316
316
  ref: open ? triggerRef : void 0,
317
317
  asChild: true,
@@ -321,7 +321,7 @@ var Tooltip = React2__namespace.forwardRef(
321
321
  }
322
322
  ),
323
323
  /* @__PURE__ */ jsxRuntime.jsxs(
324
- tooltip.Tooltip.Content,
324
+ gui.Tooltip.Content,
325
325
  {
326
326
  ref,
327
327
  unstyled: true,
@@ -338,7 +338,7 @@ var Tooltip = React2__namespace.forwardRef(
338
338
  ...contentProps,
339
339
  children: [
340
340
  showArrow && /* @__PURE__ */ jsxRuntime.jsx(
341
- tooltip.Tooltip.Arrow,
341
+ gui.Tooltip.Arrow,
342
342
  {
343
343
  unstyled: true,
344
344
  className: cn(
package/dist/badge.js CHANGED
@@ -4,7 +4,7 @@ import React2__default from 'react';
4
4
  import { clsx } from 'clsx';
5
5
  import { twMerge } from 'tailwind-merge';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
- import { TooltipGroup, Tooltip as Tooltip$1 } from '@hanzogui/tooltip';
7
+ import { TooltipGroup, Tooltip as Tooltip$1 } from '@hanzo/gui';
8
8
  import { useClickAway } from '@uidotdev/usehooks';
9
9
 
10
10
  // src/badge.tsx
package/dist/bank.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var core = require('@hanzogui/core');
4
+ var gui = require('@hanzo/gui');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
7
  var bankColors = {
@@ -27,7 +27,7 @@ var bankColors = {
27
27
  divider: "#222222",
28
28
  disabled: "#444444"
29
29
  };
30
- var BankCard = core.styled(core.View, {
30
+ var BankCard = gui.styled(gui.View, {
31
31
  name: "BankCard",
32
32
  backgroundColor: bankColors.card,
33
33
  borderRadius: 24,
@@ -48,7 +48,7 @@ var BankCard = core.styled(core.View, {
48
48
  size: "md"
49
49
  }
50
50
  });
51
- var BankInput = core.styled(core.Text, {
51
+ var BankInput = gui.styled(gui.Text, {
52
52
  name: "BankInput",
53
53
  render: "input",
54
54
  backgroundColor: bankColors.input,
@@ -84,7 +84,7 @@ var BankInput = core.styled(core.Text, {
84
84
  size: "md"
85
85
  }
86
86
  });
87
- var BankButton = core.styled(core.View, {
87
+ var BankButton = gui.styled(gui.View, {
88
88
  name: "BankButton",
89
89
  render: "button",
90
90
  backgroundColor: bankColors.accent,
@@ -129,7 +129,7 @@ var BankButton = core.styled(core.View, {
129
129
  variant: "primary"
130
130
  }
131
131
  });
132
- var BankButtonText = core.styled(core.Text, {
132
+ var BankButtonText = gui.styled(gui.Text, {
133
133
  name: "BankButtonText",
134
134
  color: "#000000",
135
135
  fontSize: 16,
@@ -143,7 +143,7 @@ var BankButtonText = core.styled(core.Text, {
143
143
  }
144
144
  }
145
145
  });
146
- var BankHeading = core.styled(core.Text, {
146
+ var BankHeading = gui.styled(gui.Text, {
147
147
  name: "BankHeading",
148
148
  color: bankColors.text,
149
149
  fontWeight: "700",
@@ -160,7 +160,7 @@ var BankHeading = core.styled(core.Text, {
160
160
  size: "lg"
161
161
  }
162
162
  });
163
- var BankText = core.styled(core.Text, {
163
+ var BankText = gui.styled(gui.Text, {
164
164
  name: "BankText",
165
165
  color: bankColors.textMuted,
166
166
  fontSize: 16,
@@ -184,13 +184,13 @@ function BankField({
184
184
  error,
185
185
  children
186
186
  }) {
187
- return /* @__PURE__ */ jsxRuntime.jsxs(core.View, { gap: 8, width: "100%", children: [
187
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.View, { gap: 8, width: "100%", children: [
188
188
  label && /* @__PURE__ */ jsxRuntime.jsx(BankText, { variant: "label", children: label }),
189
189
  children,
190
190
  error && /* @__PURE__ */ jsxRuntime.jsx(BankText, { variant: "error", children: error })
191
191
  ] });
192
192
  }
193
- var BankAlert = core.styled(core.View, {
193
+ var BankAlert = gui.styled(gui.View, {
194
194
  name: "BankAlert",
195
195
  borderRadius: 12,
196
196
  padding: 16,
@@ -209,7 +209,7 @@ var BankAlert = core.styled(core.View, {
209
209
  }
210
210
  }
211
211
  });
212
- var BankAlertText = core.styled(core.Text, {
212
+ var BankAlertText = gui.styled(gui.Text, {
213
213
  name: "BankAlertText",
214
214
  fontSize: 14,
215
215
  variants: {
@@ -219,7 +219,7 @@ var BankAlertText = core.styled(core.Text, {
219
219
  }
220
220
  }
221
221
  });
222
- var BankPinBox = core.styled(core.Text, {
222
+ var BankPinBox = gui.styled(gui.Text, {
223
223
  name: "BankPinBox",
224
224
  render: "input",
225
225
  backgroundColor: bankColors.input,
@@ -242,13 +242,13 @@ var BankPinBox = core.styled(core.Text, {
242
242
  }
243
243
  }
244
244
  });
245
- var BankDivider = core.styled(core.View, {
245
+ var BankDivider = gui.styled(gui.View, {
246
246
  name: "BankDivider",
247
247
  height: 1,
248
248
  width: "100%",
249
249
  backgroundColor: bankColors.divider
250
250
  });
251
- var BankPage = core.styled(core.View, {
251
+ var BankPage = gui.styled(gui.View, {
252
252
  name: "BankPage",
253
253
  backgroundColor: bankColors.bg,
254
254
  minHeight: "100vh",
package/dist/bank.d.cts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _hanzogui_core from '@hanzogui/core';
3
- import { GetProps } from '@hanzogui/core';
3
+ import * as _hanzogui_web from '@hanzogui/web';
4
4
  import React__default from 'react';
5
+ import { GetProps } from '@hanzo/gui';
5
6
 
6
7
  declare const bankColors: {
7
8
  readonly bg: "#000000";
@@ -26,51 +27,57 @@ declare const bankColors: {
26
27
  readonly divider: "#222222";
27
28
  readonly disabled: "#444444";
28
29
  };
29
- declare const BankCard: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
30
+ declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
30
31
  size?: "sm" | "md" | "lg" | undefined;
31
- }, _hanzogui_core.StaticConfigPublic>;
32
+ }, _hanzogui_web.StaticConfigPublic>;
32
33
  type BankCardProps = GetProps<typeof BankCard>;
33
- declare const BankInput: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
34
+ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
34
35
  size?: "sm" | "md" | "lg" | undefined;
36
+ unstyled?: boolean | undefined;
35
37
  invalid?: boolean | undefined;
36
- }, _hanzogui_core.StaticConfigPublic>;
38
+ }, _hanzogui_web.StaticConfigPublic>;
37
39
  type BankInputProps = GetProps<typeof BankInput> & {
38
40
  placeholderTextColor?: string;
39
41
  };
40
- declare const BankButton: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
42
+ declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
41
43
  variant?: "primary" | "secondary" | "ghost" | undefined;
42
44
  disabled?: boolean | undefined;
43
- }, _hanzogui_core.StaticConfigPublic>;
44
- declare const BankButtonText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
45
+ }, _hanzogui_web.StaticConfigPublic>;
46
+ declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
45
47
  variant?: "primary" | "secondary" | "ghost" | undefined;
46
- }, _hanzogui_core.StaticConfigPublic>;
48
+ unstyled?: boolean | undefined;
49
+ }, _hanzogui_web.StaticConfigPublic>;
47
50
  type BankButtonProps = GetProps<typeof BankButton>;
48
- declare const BankHeading: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
49
- size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
50
- }, _hanzogui_core.StaticConfigPublic>;
51
+ declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
52
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
53
+ unstyled?: boolean | undefined;
54
+ }, _hanzogui_web.StaticConfigPublic>;
51
55
  type BankHeadingProps = GetProps<typeof BankHeading>;
52
- declare const BankText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
53
- variant?: "default" | "link" | "label" | "error" | "success" | "muted" | undefined;
54
- }, _hanzogui_core.StaticConfigPublic>;
56
+ declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
57
+ variant?: "default" | "label" | "link" | "error" | "success" | "muted" | undefined;
58
+ unstyled?: boolean | undefined;
59
+ }, _hanzogui_web.StaticConfigPublic>;
55
60
  type BankTextProps = GetProps<typeof BankText>;
56
61
  declare function BankField({ label, error, children, }: {
57
62
  label?: string;
58
63
  error?: string;
59
64
  children: React__default.ReactNode;
60
65
  }): react_jsx_runtime.JSX.Element;
61
- declare const BankAlert: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
66
+ declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
62
67
  status?: "error" | "success" | undefined;
63
- }, _hanzogui_core.StaticConfigPublic>;
64
- declare const BankAlertText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
68
+ }, _hanzogui_web.StaticConfigPublic>;
69
+ declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
65
70
  status?: "error" | "success" | undefined;
66
- }, _hanzogui_core.StaticConfigPublic>;
71
+ unstyled?: boolean | undefined;
72
+ }, _hanzogui_web.StaticConfigPublic>;
67
73
  type BankAlertProps = GetProps<typeof BankAlert>;
68
- declare const BankPinBox: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
74
+ declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
75
+ unstyled?: boolean | undefined;
69
76
  invalid?: boolean | undefined;
70
- }, _hanzogui_core.StaticConfigPublic>;
77
+ }, _hanzogui_web.StaticConfigPublic>;
71
78
  type BankPinBoxProps = GetProps<typeof BankPinBox>;
72
- declare const BankDivider: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
73
- declare const BankPage: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
79
+ declare const BankDivider: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
80
+ declare const BankPage: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
74
81
  type BankPageProps = GetProps<typeof BankPage>;
75
82
 
76
83
  export { BankAlert, type BankAlertProps, BankAlertText, BankButton, type BankButtonProps, BankButtonText, BankCard, type BankCardProps, BankDivider, BankField, BankHeading, type BankHeadingProps, BankInput, type BankInputProps, BankPage, type BankPageProps, BankPinBox, type BankPinBoxProps, BankText, type BankTextProps, bankColors };
package/dist/bank.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _hanzogui_core from '@hanzogui/core';
3
- import { GetProps } from '@hanzogui/core';
3
+ import * as _hanzogui_web from '@hanzogui/web';
4
4
  import React__default from 'react';
5
+ import { GetProps } from '@hanzo/gui';
5
6
 
6
7
  declare const bankColors: {
7
8
  readonly bg: "#000000";
@@ -26,51 +27,57 @@ declare const bankColors: {
26
27
  readonly divider: "#222222";
27
28
  readonly disabled: "#444444";
28
29
  };
29
- declare const BankCard: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
30
+ declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
30
31
  size?: "sm" | "md" | "lg" | undefined;
31
- }, _hanzogui_core.StaticConfigPublic>;
32
+ }, _hanzogui_web.StaticConfigPublic>;
32
33
  type BankCardProps = GetProps<typeof BankCard>;
33
- declare const BankInput: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
34
+ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
34
35
  size?: "sm" | "md" | "lg" | undefined;
36
+ unstyled?: boolean | undefined;
35
37
  invalid?: boolean | undefined;
36
- }, _hanzogui_core.StaticConfigPublic>;
38
+ }, _hanzogui_web.StaticConfigPublic>;
37
39
  type BankInputProps = GetProps<typeof BankInput> & {
38
40
  placeholderTextColor?: string;
39
41
  };
40
- declare const BankButton: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
42
+ declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
41
43
  variant?: "primary" | "secondary" | "ghost" | undefined;
42
44
  disabled?: boolean | undefined;
43
- }, _hanzogui_core.StaticConfigPublic>;
44
- declare const BankButtonText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
45
+ }, _hanzogui_web.StaticConfigPublic>;
46
+ declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
45
47
  variant?: "primary" | "secondary" | "ghost" | undefined;
46
- }, _hanzogui_core.StaticConfigPublic>;
48
+ unstyled?: boolean | undefined;
49
+ }, _hanzogui_web.StaticConfigPublic>;
47
50
  type BankButtonProps = GetProps<typeof BankButton>;
48
- declare const BankHeading: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
49
- size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
50
- }, _hanzogui_core.StaticConfigPublic>;
51
+ declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
52
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
53
+ unstyled?: boolean | undefined;
54
+ }, _hanzogui_web.StaticConfigPublic>;
51
55
  type BankHeadingProps = GetProps<typeof BankHeading>;
52
- declare const BankText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
53
- variant?: "default" | "link" | "label" | "error" | "success" | "muted" | undefined;
54
- }, _hanzogui_core.StaticConfigPublic>;
56
+ declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
57
+ variant?: "default" | "label" | "link" | "error" | "success" | "muted" | undefined;
58
+ unstyled?: boolean | undefined;
59
+ }, _hanzogui_web.StaticConfigPublic>;
55
60
  type BankTextProps = GetProps<typeof BankText>;
56
61
  declare function BankField({ label, error, children, }: {
57
62
  label?: string;
58
63
  error?: string;
59
64
  children: React__default.ReactNode;
60
65
  }): react_jsx_runtime.JSX.Element;
61
- declare const BankAlert: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
66
+ declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
62
67
  status?: "error" | "success" | undefined;
63
- }, _hanzogui_core.StaticConfigPublic>;
64
- declare const BankAlertText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
68
+ }, _hanzogui_web.StaticConfigPublic>;
69
+ declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
65
70
  status?: "error" | "success" | undefined;
66
- }, _hanzogui_core.StaticConfigPublic>;
71
+ unstyled?: boolean | undefined;
72
+ }, _hanzogui_web.StaticConfigPublic>;
67
73
  type BankAlertProps = GetProps<typeof BankAlert>;
68
- declare const BankPinBox: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
74
+ declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
75
+ unstyled?: boolean | undefined;
69
76
  invalid?: boolean | undefined;
70
- }, _hanzogui_core.StaticConfigPublic>;
77
+ }, _hanzogui_web.StaticConfigPublic>;
71
78
  type BankPinBoxProps = GetProps<typeof BankPinBox>;
72
- declare const BankDivider: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
73
- declare const BankPage: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
79
+ declare const BankDivider: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
80
+ declare const BankPage: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
74
81
  type BankPageProps = GetProps<typeof BankPage>;
75
82
 
76
83
  export { BankAlert, type BankAlertProps, BankAlertText, BankButton, type BankButtonProps, BankButtonText, BankCard, type BankCardProps, BankDivider, BankField, BankHeading, type BankHeadingProps, BankInput, type BankInputProps, BankPage, type BankPageProps, BankPinBox, type BankPinBoxProps, BankText, type BankTextProps, bankColors };
package/dist/bank.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { styled, View, Text } from '@hanzogui/core';
2
+ import { styled, View, Text } from '@hanzo/gui';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var bankColors = {
package/dist/button.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var core = require('@hanzogui/core');
4
+ var gui = require('@hanzo/gui');
5
5
  var React2 = require('react');
6
6
  var clsx = require('clsx');
7
7
  var tailwindMerge = require('tailwind-merge');
@@ -218,7 +218,7 @@ React2__namespace.forwardRef(
218
218
  )) });
219
219
  }
220
220
  );
221
- var SpinnerFrame = core.styled(core.View, {
221
+ var SpinnerFrame = gui.styled(gui.View, {
222
222
  name: "ButtonSpinner",
223
223
  render: /* @__PURE__ */ jsxRuntime.jsx("span", {}),
224
224
  width: 16,
@@ -242,7 +242,7 @@ function Spinner({ className }) {
242
242
  }
243
243
  );
244
244
  }
245
- var ButtonFrame = core.styled(core.View, {
245
+ var ButtonFrame = gui.styled(gui.View, {
246
246
  name: "LuxButton",
247
247
  render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button" }),
248
248
  role: "button",
package/dist/button.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { styled, View } from '@hanzogui/core';
2
+ import { styled, View } from '@hanzo/gui';
3
3
  import * as React2 from 'react';
4
4
  import { clsx } from 'clsx';
5
5
  import { twMerge } from 'tailwind-merge';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var core = require('@hanzogui/core');
4
+ var gui = require('@hanzo/gui');
5
5
  var React = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
 
@@ -27,7 +27,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
27
 
28
28
  // src/close-button.tsx
29
29
  var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
30
- var CloseButtonFrame = core.styled(core.View, {
30
+ var CloseButtonFrame = gui.styled(gui.View, {
31
31
  name: "LuxCloseButton",
32
32
  render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close" }),
33
33
  role: "button",
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { styled, View } from '@hanzogui/core';
2
+ import { styled, View } from '@hanzo/gui';
3
3
  import * as React from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
package/dist/dialog.cjs CHANGED
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var dialog = require('@hanzogui/dialog');
4
+ var gui = require('@hanzo/gui');
5
5
  var React2 = require('react');
6
6
  var clsx = require('clsx');
7
7
  var tailwindMerge = require('tailwind-merge');
8
- var core = require('@hanzogui/core');
9
8
  var jsxRuntime = require('react/jsx-runtime');
10
9
 
11
10
  function _interopNamespace(e) {
@@ -33,7 +32,7 @@ function cn(...inputs) {
33
32
  return tailwindMerge.twMerge(clsx.clsx(inputs));
34
33
  }
35
34
  var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
36
- var CloseButtonFrame = core.styled(core.View, {
35
+ var CloseButtonFrame = gui.styled(gui.View, {
37
36
  name: "LuxCloseButton",
38
37
  render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close" }),
39
38
  role: "button",
@@ -148,7 +147,7 @@ var DialogRoot = ({
148
147
  );
149
148
  const ctx = React2__namespace.useMemo(() => ({ size }), [size]);
150
149
  return /* @__PURE__ */ jsxRuntime.jsx(DialogSizeContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxRuntime.jsx(
151
- dialog.Dialog,
150
+ gui.Dialog,
152
151
  {
153
152
  open,
154
153
  defaultOpen,
@@ -174,9 +173,9 @@ var DialogContent = React2__namespace.forwardRef(function DialogContent2(props,
174
173
  ..._paddingTop !== void 0 ? { paddingTop: typeof _paddingTop === "number" ? `${_paddingTop * 4}px` : _paddingTop } : {}
175
174
  };
176
175
  const { size } = useDialogSizeContext();
177
- return /* @__PURE__ */ jsxRuntime.jsxs(dialog.Dialog.Portal, { children: [
176
+ return /* @__PURE__ */ jsxRuntime.jsxs(gui.Dialog.Portal, { children: [
178
177
  backdrop && /* @__PURE__ */ jsxRuntime.jsx(
179
- dialog.Dialog.Overlay,
178
+ gui.Dialog.Overlay,
180
179
  {
181
180
  unstyled: true,
182
181
  className: "fixed inset-0 z-[1400] bg-black/80"
@@ -191,7 +190,7 @@ var DialogContent = React2__namespace.forwardRef(function DialogContent2(props,
191
190
  "overflow-hidden"
192
191
  ),
193
192
  children: /* @__PURE__ */ jsxRuntime.jsx(
194
- dialog.Dialog.Content,
193
+ gui.Dialog.Content,
195
194
  {
196
195
  ref,
197
196
  unstyled: true,
@@ -217,7 +216,7 @@ var DialogContent = React2__namespace.forwardRef(function DialogContent2(props,
217
216
  });
218
217
  var DialogCloseTrigger = React2__namespace.forwardRef(function DialogCloseTrigger2(props, ref) {
219
218
  const { className, ...rest } = props;
220
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { ref, className, ...rest, children: props.children }) });
219
+ return /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { ref, className, ...rest, children: props.children }) });
221
220
  });
222
221
  var DialogHeader = React2__namespace.forwardRef(function DialogHeader2(props, ref) {
223
222
  const { startElement: startElementProp, onBackToClick, className, children, ...rest } = props;
@@ -234,7 +233,7 @@ var DialogHeader = React2__namespace.forwardRef(function DialogHeader2(props, re
234
233
  children: [
235
234
  startElement,
236
235
  /* @__PURE__ */ jsxRuntime.jsx(
237
- dialog.Dialog.Title,
236
+ gui.Dialog.Title,
238
237
  {
239
238
  unstyled: true,
240
239
  className: cn(
@@ -276,11 +275,11 @@ var DialogFooter = React2__namespace.forwardRef(function DialogFooter2({ classNa
276
275
  }
277
276
  );
278
277
  });
279
- var DialogBackdrop = dialog.Dialog.Overlay;
280
- var DialogTitle = dialog.Dialog.Title;
281
- var DialogDescription = dialog.Dialog.Description;
282
- var DialogTrigger = dialog.Dialog.Trigger;
283
- var DialogActionTrigger = dialog.Dialog.Close;
278
+ var DialogBackdrop = gui.Dialog.Overlay;
279
+ var DialogTitle = gui.Dialog.Title;
280
+ var DialogDescription = gui.Dialog.Description;
281
+ var DialogTrigger = gui.Dialog.Trigger;
282
+ var DialogActionTrigger = gui.Dialog.Close;
284
283
 
285
284
  exports.DialogActionTrigger = DialogActionTrigger;
286
285
  exports.DialogBackdrop = DialogBackdrop;
package/dist/dialog.d.cts CHANGED
@@ -1,3 +1,6 @@
1
+ import * as _hanzo_gui from '@hanzo/gui';
2
+ import * as _hanzogui_web from '@hanzogui/web';
3
+ import * as _hanzogui_core from '@hanzogui/core';
1
4
  import * as React from 'react';
2
5
 
3
6
  type DialogSize = 'sm' | 'md' | 'full' | 'cover';
@@ -49,17 +52,67 @@ declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & Reac
49
52
  interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
50
53
  }
51
54
  declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
52
- declare const DialogBackdrop: any;
53
- declare const DialogTitle: any;
54
- declare const DialogDescription: any;
55
+ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
56
+ open?: boolean | undefined;
57
+ unstyled?: boolean | undefined;
58
+ elevation?: number | _hanzogui_web.SizeTokens | undefined;
59
+ fullscreen?: boolean | undefined;
60
+ }>, "forceMount" | "scope"> & {
61
+ forceMount?: boolean;
62
+ } & {
63
+ scope?: _hanzo_gui.DialogScopes;
64
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
65
+ forceMount?: boolean;
66
+ } & {
67
+ scope?: _hanzo_gui.DialogScopes;
68
+ }, _hanzogui_web.StackStyleBase, {
69
+ open?: boolean | undefined;
70
+ unstyled?: boolean | undefined;
71
+ elevation?: number | _hanzogui_web.SizeTokens | undefined;
72
+ fullscreen?: boolean | undefined;
73
+ }, _hanzogui_web.StaticConfigPublic>;
74
+ declare const DialogTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
75
+ unstyled?: boolean | undefined;
76
+ size?: _hanzogui_web.FontSizeTokens | undefined;
77
+ }>, "scope"> & {
78
+ scope?: _hanzo_gui.DialogScopes;
79
+ }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
80
+ scope?: _hanzo_gui.DialogScopes;
81
+ }, _hanzogui_web.TextStylePropsBase, {
82
+ unstyled?: boolean | undefined;
83
+ size?: _hanzogui_web.FontSizeTokens | undefined;
84
+ }, _hanzogui_web.StaticConfigPublic>;
85
+ declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
86
+ unstyled?: boolean | undefined;
87
+ size?: _hanzogui_web.FontSizeTokens | undefined;
88
+ }>, "scope"> & {
89
+ scope?: _hanzo_gui.DialogScopes;
90
+ }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
91
+ scope?: _hanzo_gui.DialogScopes;
92
+ }, _hanzogui_web.TextStylePropsBase, {
93
+ unstyled?: boolean | undefined;
94
+ size?: _hanzogui_web.FontSizeTokens | undefined;
95
+ }, _hanzogui_web.StaticConfigPublic>;
55
96
  interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
56
97
  }
57
- declare const DialogTrigger: any;
98
+ declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
99
+ scope?: _hanzo_gui.DialogScopes;
100
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
101
+ scope?: _hanzo_gui.DialogScopes;
102
+ }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
58
103
  /**
59
104
  * `DialogActionTrigger` renders its child and closes the dialog on click.
60
105
  * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
61
106
  * children in a close action.
62
107
  */
63
- declare const DialogActionTrigger: any;
108
+ declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
109
+ displayWhenAdapted?: boolean;
110
+ } & {
111
+ scope?: _hanzo_gui.DialogScopes;
112
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
113
+ displayWhenAdapted?: boolean;
114
+ } & {
115
+ scope?: _hanzo_gui.DialogScopes;
116
+ }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
64
117
 
65
118
  export { DialogActionTrigger, DialogBackdrop, DialogBody, type DialogBodyProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps };