@luxfi/ui 7.4.14 → 7.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bank.d.cts CHANGED
@@ -27,11 +27,11 @@ declare const bankColors: {
27
27
  readonly divider: "#222222";
28
28
  readonly disabled: "#444444";
29
29
  };
30
- declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
30
+ declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
31
31
  size?: "sm" | "md" | "lg" | undefined;
32
32
  }, _hanzogui_web.StaticConfigPublic>;
33
33
  type BankCardProps = GetProps<typeof BankCard>;
34
- declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
34
+ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
35
35
  size?: "sm" | "md" | "lg" | undefined;
36
36
  unstyled?: boolean | undefined;
37
37
  invalid?: boolean | undefined;
@@ -39,21 +39,21 @@ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _ha
39
39
  type BankInputProps = GetProps<typeof BankInput> & {
40
40
  placeholderTextColor?: string;
41
41
  };
42
- declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
42
+ declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
43
43
  disabled?: boolean | undefined;
44
44
  variant?: "primary" | "secondary" | "ghost" | undefined;
45
45
  }, _hanzogui_web.StaticConfigPublic>;
46
- declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
46
+ declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
47
47
  unstyled?: boolean | undefined;
48
48
  variant?: "primary" | "secondary" | "ghost" | undefined;
49
49
  }, _hanzogui_web.StaticConfigPublic>;
50
50
  type BankButtonProps = GetProps<typeof BankButton>;
51
- declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
51
+ declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
52
52
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
53
53
  unstyled?: boolean | undefined;
54
54
  }, _hanzogui_web.StaticConfigPublic>;
55
55
  type BankHeadingProps = GetProps<typeof BankHeading>;
56
- declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
56
+ declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
57
57
  unstyled?: boolean | undefined;
58
58
  variant?: "default" | "label" | "link" | "error" | "success" | "muted" | undefined;
59
59
  }, _hanzogui_web.StaticConfigPublic>;
@@ -63,21 +63,21 @@ declare function BankField({ label, error, children, }: {
63
63
  error?: string;
64
64
  children: React__default.ReactNode;
65
65
  }): react_jsx_runtime.JSX.Element;
66
- declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
66
+ declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
67
67
  status?: "error" | "success" | undefined;
68
68
  }, _hanzogui_web.StaticConfigPublic>;
69
- declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
69
+ declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
70
70
  status?: "error" | "success" | undefined;
71
71
  unstyled?: boolean | undefined;
72
72
  }, _hanzogui_web.StaticConfigPublic>;
73
73
  type BankAlertProps = GetProps<typeof BankAlert>;
74
- declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
74
+ declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
75
75
  unstyled?: boolean | undefined;
76
76
  invalid?: boolean | undefined;
77
77
  }, _hanzogui_web.StaticConfigPublic>;
78
78
  type BankPinBoxProps = GetProps<typeof BankPinBox>;
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>;
79
+ declare const BankDivider: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
80
+ declare const BankPage: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
81
81
  type BankPageProps = GetProps<typeof BankPage>;
82
82
 
83
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
@@ -27,11 +27,11 @@ declare const bankColors: {
27
27
  readonly divider: "#222222";
28
28
  readonly disabled: "#444444";
29
29
  };
30
- declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
30
+ declare const BankCard: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
31
31
  size?: "sm" | "md" | "lg" | undefined;
32
32
  }, _hanzogui_web.StaticConfigPublic>;
33
33
  type BankCardProps = GetProps<typeof BankCard>;
34
- declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
34
+ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
35
35
  size?: "sm" | "md" | "lg" | undefined;
36
36
  unstyled?: boolean | undefined;
37
37
  invalid?: boolean | undefined;
@@ -39,21 +39,21 @@ declare const BankInput: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _ha
39
39
  type BankInputProps = GetProps<typeof BankInput> & {
40
40
  placeholderTextColor?: string;
41
41
  };
42
- declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
42
+ declare const BankButton: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
43
43
  disabled?: boolean | undefined;
44
44
  variant?: "primary" | "secondary" | "ghost" | undefined;
45
45
  }, _hanzogui_web.StaticConfigPublic>;
46
- declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
46
+ declare const BankButtonText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
47
47
  unstyled?: boolean | undefined;
48
48
  variant?: "primary" | "secondary" | "ghost" | undefined;
49
49
  }, _hanzogui_web.StaticConfigPublic>;
50
50
  type BankButtonProps = GetProps<typeof BankButton>;
51
- declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
51
+ declare const BankHeading: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
52
52
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
53
53
  unstyled?: boolean | undefined;
54
54
  }, _hanzogui_web.StaticConfigPublic>;
55
55
  type BankHeadingProps = GetProps<typeof BankHeading>;
56
- declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
56
+ declare const BankText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
57
57
  unstyled?: boolean | undefined;
58
58
  variant?: "default" | "label" | "link" | "error" | "success" | "muted" | undefined;
59
59
  }, _hanzogui_web.StaticConfigPublic>;
@@ -63,21 +63,21 @@ declare function BankField({ label, error, children, }: {
63
63
  error?: string;
64
64
  children: React__default.ReactNode;
65
65
  }): react_jsx_runtime.JSX.Element;
66
- declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
66
+ declare const BankAlert: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
67
67
  status?: "error" | "success" | undefined;
68
68
  }, _hanzogui_web.StaticConfigPublic>;
69
- declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
69
+ declare const BankAlertText: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
70
70
  status?: "error" | "success" | undefined;
71
71
  unstyled?: boolean | undefined;
72
72
  }, _hanzogui_web.StaticConfigPublic>;
73
73
  type BankAlertProps = GetProps<typeof BankAlert>;
74
- declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
74
+ declare const BankPinBox: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
75
75
  unstyled?: boolean | undefined;
76
76
  invalid?: boolean | undefined;
77
77
  }, _hanzogui_web.StaticConfigPublic>;
78
78
  type BankPinBoxProps = GetProps<typeof BankPinBox>;
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>;
79
+ declare const BankDivider: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
80
+ declare const BankPage: _hanzogui_web.GuiComponent<_hanzogui_web.TamaDefer, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
81
81
  type BankPageProps = GetProps<typeof BankPage>;
82
82
 
83
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/button.cjs CHANGED
@@ -495,17 +495,6 @@ var Button = React2__namespace.forwardRef(
495
495
  return button;
496
496
  }
497
497
  );
498
- var SIZE_CLASSES = {
499
- "2xs": "px-2 h-5 min-w-5 text-xs rounded-sm gap-1",
500
- xs: "px-2 h-6 min-w-6 text-sm rounded-sm gap-1",
501
- sm: "px-3 h-8 min-w-8 text-sm rounded-md gap-1",
502
- md: "px-3 h-10 min-w-10 text-base rounded-md gap-2"
503
- };
504
- function buttonVariants(opts) {
505
- const v = opts?.variant ?? "solid";
506
- const s = opts?.size ?? "md";
507
- return [BASE_CLASSES, VARIANT_CLASSES[v] ?? "", SIZE_CLASSES[s] ?? ""].filter(Boolean).join(" ");
508
- }
509
498
  var ButtonGroup = React2__namespace.forwardRef(
510
499
  function ButtonGroup2(props, ref) {
511
500
  const { className, ...rest } = props;
@@ -571,4 +560,3 @@ var ButtonGroupRadio = React2__namespace.forwardRef(
571
560
  exports.Button = Button;
572
561
  exports.ButtonGroup = ButtonGroup;
573
562
  exports.ButtonGroupRadio = ButtonGroupRadio;
574
- exports.buttonVariants = buttonVariants;
package/dist/button.d.cts CHANGED
@@ -35,10 +35,6 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
35
35
  readonly 'data-call-strategy'?: string;
36
36
  }
37
37
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
38
- declare function buttonVariants(opts?: {
39
- variant?: string;
40
- size?: string;
41
- }): string;
42
38
  interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
43
39
  }
44
40
  declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -52,4 +48,4 @@ interface ButtonGroupRadioProps extends Omit<React.HTMLAttributes<HTMLDivElement
52
48
  }
53
49
  declare const ButtonGroupRadio: React.ForwardRefExoticComponent<ButtonGroupRadioProps & React.RefAttributes<HTMLDivElement>>;
54
50
 
55
- export { Button, ButtonGroup, type ButtonGroupProps, ButtonGroupRadio, type ButtonGroupRadioProps, type ButtonProps, buttonVariants };
51
+ export { Button, ButtonGroup, type ButtonGroupProps, ButtonGroupRadio, type ButtonGroupRadioProps, type ButtonProps };
package/dist/button.d.ts CHANGED
@@ -35,10 +35,6 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
35
35
  readonly 'data-call-strategy'?: string;
36
36
  }
37
37
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
38
- declare function buttonVariants(opts?: {
39
- variant?: string;
40
- size?: string;
41
- }): string;
42
38
  interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
43
39
  }
44
40
  declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -52,4 +48,4 @@ interface ButtonGroupRadioProps extends Omit<React.HTMLAttributes<HTMLDivElement
52
48
  }
53
49
  declare const ButtonGroupRadio: React.ForwardRefExoticComponent<ButtonGroupRadioProps & React.RefAttributes<HTMLDivElement>>;
54
50
 
55
- export { Button, ButtonGroup, type ButtonGroupProps, ButtonGroupRadio, type ButtonGroupRadioProps, type ButtonProps, buttonVariants };
51
+ export { Button, ButtonGroup, type ButtonGroupProps, ButtonGroupRadio, type ButtonGroupRadioProps, type ButtonProps };
package/dist/button.js CHANGED
@@ -473,17 +473,6 @@ var Button = React2.forwardRef(
473
473
  return button;
474
474
  }
475
475
  );
476
- var SIZE_CLASSES = {
477
- "2xs": "px-2 h-5 min-w-5 text-xs rounded-sm gap-1",
478
- xs: "px-2 h-6 min-w-6 text-sm rounded-sm gap-1",
479
- sm: "px-3 h-8 min-w-8 text-sm rounded-md gap-1",
480
- md: "px-3 h-10 min-w-10 text-base rounded-md gap-2"
481
- };
482
- function buttonVariants(opts) {
483
- const v = opts?.variant ?? "solid";
484
- const s = opts?.size ?? "md";
485
- return [BASE_CLASSES, VARIANT_CLASSES[v] ?? "", SIZE_CLASSES[s] ?? ""].filter(Boolean).join(" ");
486
- }
487
476
  var ButtonGroup = React2.forwardRef(
488
477
  function ButtonGroup2(props, ref) {
489
478
  const { className, ...rest } = props;
@@ -546,4 +535,4 @@ var ButtonGroupRadio = React2.forwardRef(
546
535
  }
547
536
  );
548
537
 
549
- export { Button, ButtonGroup, ButtonGroupRadio, buttonVariants };
538
+ export { Button, ButtonGroup, ButtonGroupRadio };
package/dist/dialog.d.cts CHANGED
@@ -52,7 +52,7 @@ declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & Reac
52
52
  interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
53
53
  }
54
54
  declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
55
- declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
55
+ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
56
56
  open?: boolean | undefined;
57
57
  unstyled?: boolean | undefined;
58
58
  elevation?: number | _hanzogui_web.SizeTokens | undefined;
@@ -61,7 +61,7 @@ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetF
61
61
  forceMount?: boolean;
62
62
  } & {
63
63
  scope?: _hanzo_gui.DialogScopes;
64
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
64
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
65
65
  forceMount?: boolean;
66
66
  } & {
67
67
  scope?: _hanzo_gui.DialogScopes;
@@ -95,9 +95,9 @@ declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.G
95
95
  }, _hanzogui_web.StaticConfigPublic>;
96
96
  interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
97
97
  }
98
- declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
98
+ declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
99
99
  scope?: _hanzo_gui.DialogScopes;
100
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
100
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
101
101
  scope?: _hanzo_gui.DialogScopes;
102
102
  }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
103
103
  /**
@@ -105,11 +105,11 @@ declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFi
105
105
  * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
106
106
  * children in a close action.
107
107
  */
108
- declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
108
+ declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
109
109
  displayWhenAdapted?: boolean;
110
110
  } & {
111
111
  scope?: _hanzo_gui.DialogScopes;
112
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
112
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
113
113
  displayWhenAdapted?: boolean;
114
114
  } & {
115
115
  scope?: _hanzo_gui.DialogScopes;
package/dist/dialog.d.ts CHANGED
@@ -52,7 +52,7 @@ declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & Reac
52
52
  interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
53
53
  }
54
54
  declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
55
- declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
55
+ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
56
56
  open?: boolean | undefined;
57
57
  unstyled?: boolean | undefined;
58
58
  elevation?: number | _hanzogui_web.SizeTokens | undefined;
@@ -61,7 +61,7 @@ declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetF
61
61
  forceMount?: boolean;
62
62
  } & {
63
63
  scope?: _hanzo_gui.DialogScopes;
64
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
64
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
65
65
  forceMount?: boolean;
66
66
  } & {
67
67
  scope?: _hanzo_gui.DialogScopes;
@@ -95,9 +95,9 @@ declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.G
95
95
  }, _hanzogui_web.StaticConfigPublic>;
96
96
  interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
97
97
  }
98
- declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
98
+ declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
99
99
  scope?: _hanzo_gui.DialogScopes;
100
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
100
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
101
101
  scope?: _hanzo_gui.DialogScopes;
102
102
  }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
103
103
  /**
@@ -105,11 +105,11 @@ declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFi
105
105
  * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
106
106
  * children in a close action.
107
107
  */
108
- declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
108
+ declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
109
109
  displayWhenAdapted?: boolean;
110
110
  } & {
111
111
  scope?: _hanzo_gui.DialogScopes;
112
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
112
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
113
113
  displayWhenAdapted?: boolean;
114
114
  } & {
115
115
  scope?: _hanzo_gui.DialogScopes;
package/dist/drawer.d.cts CHANGED
@@ -56,11 +56,11 @@ declare const DrawerDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.G
56
56
  unstyled?: boolean | undefined;
57
57
  size?: _hanzogui_web.FontSizeTokens | undefined;
58
58
  }, _hanzogui_web.StaticConfigPublic>;
59
- declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
59
+ declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
60
60
  displayWhenAdapted?: boolean;
61
61
  } & {
62
62
  scope?: _hanzo_gui.DialogScopes;
63
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
63
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
64
64
  displayWhenAdapted?: boolean;
65
65
  } & {
66
66
  scope?: _hanzo_gui.DialogScopes;
package/dist/drawer.d.ts CHANGED
@@ -56,11 +56,11 @@ declare const DrawerDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.G
56
56
  unstyled?: boolean | undefined;
57
57
  size?: _hanzogui_web.FontSizeTokens | undefined;
58
58
  }, _hanzogui_web.StaticConfigPublic>;
59
- declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
59
+ declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
60
60
  displayWhenAdapted?: boolean;
61
61
  } & {
62
62
  scope?: _hanzo_gui.DialogScopes;
63
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
63
+ }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
64
64
  displayWhenAdapted?: boolean;
65
65
  } & {
66
66
  scope?: _hanzo_gui.DialogScopes;
package/dist/heading.cjs CHANGED
@@ -12,9 +12,18 @@ var React__default = /*#__PURE__*/_interopDefault(React);
12
12
  // src/heading.tsx
13
13
  var TAG = { "1": gui.H1, "2": gui.H2, "3": gui.H3 };
14
14
  var RAMP = {
15
- "1": { fontSize: 18, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 32, lineHeight: 40, letterSpacing: -0.5 } },
16
- "2": { fontSize: 16, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 24, lineHeight: 32 } },
17
- "3": { fontSize: 14, lineHeight: 20, fontWeight: "600", $lg: { fontSize: 18, lineHeight: 24, fontWeight: "500" } }
15
+ // Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
16
+ // shared config, and @hanzo/design multiplies `--text-*` by `--type-scale`
17
+ // so these three lines are what lets a person's type-size setting reach a
18
+ // heading at all. Written as `18` they would render identically today and
19
+ // never move again.
20
+ //
21
+ // lineHeight is deliberately absent: gui derives it from the resolved size,
22
+ // so it scales WITH the text. A fixed 24 next to an adjustable size is how
23
+ // you get 32px text in a 24px box.
24
+ "1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
25
+ "2": { fontSize: "$5", $lg: { fontSize: "$8" } },
26
+ "3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
18
27
  };
19
28
  var Heading = React__default.default.forwardRef(
20
29
  function Heading2({ level, ...rest }, ref) {
package/dist/heading.js CHANGED
@@ -6,9 +6,18 @@ import { jsx } from 'react/jsx-runtime';
6
6
  // src/heading.tsx
7
7
  var TAG = { "1": H1, "2": H2, "3": H3 };
8
8
  var RAMP = {
9
- "1": { fontSize: 18, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 32, lineHeight: 40, letterSpacing: -0.5 } },
10
- "2": { fontSize: 16, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 24, lineHeight: 32 } },
11
- "3": { fontSize: 14, lineHeight: 20, fontWeight: "600", $lg: { fontSize: 18, lineHeight: 24, fontWeight: "500" } }
9
+ // Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
10
+ // shared config, and @hanzo/design multiplies `--text-*` by `--type-scale`
11
+ // so these three lines are what lets a person's type-size setting reach a
12
+ // heading at all. Written as `18` they would render identically today and
13
+ // never move again.
14
+ //
15
+ // lineHeight is deliberately absent: gui derives it from the resolved size,
16
+ // so it scales WITH the text. A fixed 24 next to an adjustable size is how
17
+ // you get 32px text in a 24px box.
18
+ "1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
19
+ "2": { fontSize: "$5", $lg: { fontSize: "$8" } },
20
+ "3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
12
21
  };
13
22
  var Heading = React.forwardRef(
14
23
  function Heading2({ level, ...rest }, ref) {
package/dist/index.cjs CHANGED
@@ -4,6 +4,7 @@
4
4
  var gui = require('@hanzo/gui');
5
5
  var reactQuery = require('@tanstack/react-query');
6
6
  var React32 = require('react');
7
+ var guiConfig = require('@hanzo/ui/gui-config');
7
8
  var v5 = require('@hanzogui/config/v5');
8
9
  var v5Css = require('@hanzogui/config/v5-css');
9
10
  var jsxRuntime = require('react/jsx-runtime');
@@ -195,6 +196,7 @@ var luxThemes = {
195
196
  };
196
197
  var config = gui.createGui({
197
198
  ...v5.defaultConfig,
199
+ ...guiConfig.config,
198
200
  animations: v5Css.animations,
199
201
  settings: {
200
202
  ...v5.defaultConfig.settings,
@@ -2243,17 +2245,6 @@ var Button = React32__namespace.forwardRef(
2243
2245
  return button;
2244
2246
  }
2245
2247
  );
2246
- var SIZE_CLASSES = {
2247
- "2xs": "px-2 h-5 min-w-5 text-xs rounded-sm gap-1",
2248
- xs: "px-2 h-6 min-w-6 text-sm rounded-sm gap-1",
2249
- sm: "px-3 h-8 min-w-8 text-sm rounded-md gap-1",
2250
- md: "px-3 h-10 min-w-10 text-base rounded-md gap-2"
2251
- };
2252
- function buttonVariants(opts) {
2253
- const v = opts?.variant ?? "solid";
2254
- const s = opts?.size ?? "md";
2255
- return [BASE_CLASSES, VARIANT_CLASSES[v] ?? "", SIZE_CLASSES[s] ?? ""].filter(Boolean).join(" ");
2256
- }
2257
2248
  var ButtonGroup = React32__namespace.forwardRef(
2258
2249
  function ButtonGroup2(props, ref) {
2259
2250
  const { className, ...rest } = props;
@@ -3279,9 +3270,18 @@ var Field = React32__namespace.forwardRef(
3279
3270
  );
3280
3271
  var TAG = { "1": gui.H1, "2": gui.H2, "3": gui.H3 };
3281
3272
  var RAMP = {
3282
- "1": { fontSize: 18, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 32, lineHeight: 40, letterSpacing: -0.5 } },
3283
- "2": { fontSize: 16, lineHeight: 24, fontWeight: "500", $lg: { fontSize: 24, lineHeight: 32 } },
3284
- "3": { fontSize: 14, lineHeight: 20, fontWeight: "600", $lg: { fontSize: 18, lineHeight: 24, fontWeight: "500" } }
3273
+ // Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
3274
+ // shared config, and @hanzo/design multiplies `--text-*` by `--type-scale`
3275
+ // so these three lines are what lets a person's type-size setting reach a
3276
+ // heading at all. Written as `18` they would render identically today and
3277
+ // never move again.
3278
+ //
3279
+ // lineHeight is deliberately absent: gui derives it from the resolved size,
3280
+ // so it scales WITH the text. A fixed 24 next to an adjustable size is how
3281
+ // you get 32px text in a 24px box.
3282
+ "1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
3283
+ "2": { fontSize: "$5", $lg: { fontSize: "$8" } },
3284
+ "3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
3285
3285
  };
3286
3286
  var Heading = React32__namespace.default.forwardRef(
3287
3287
  function Heading2({ level, ...rest }, ref) {
@@ -3649,11 +3649,11 @@ var Image = React32__namespace.default.forwardRef(
3649
3649
  }
3650
3650
  );
3651
3651
  var SIZE5 = {
3652
- xs: { height: 24, paddingHorizontal: 8, fontSize: 12, borderRadius: 4 },
3653
- sm: { height: 32, paddingHorizontal: 12, fontSize: 14, borderRadius: 6 },
3654
- md: { height: 40, paddingHorizontal: 16, fontSize: 16, borderRadius: 6 },
3655
- lg: { height: 48, paddingHorizontal: 16, fontSize: 18, borderRadius: 8 },
3656
- "2xl": { height: 56, paddingHorizontal: 16, fontSize: 20, borderRadius: 8 }
3652
+ xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
3653
+ sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
3654
+ md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
3655
+ lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
3656
+ "2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
3657
3657
  };
3658
3658
  var VARIANT3 = {
3659
3659
  outline: { borderWidth: 1, borderStyle: "solid" },
@@ -5880,11 +5880,11 @@ var Tag = React32__namespace.forwardRef(
5880
5880
  }
5881
5881
  );
5882
5882
  var SIZE10 = {
5883
- xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: 12, borderRadius: 4 },
5884
- sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: 14, borderRadius: 6 },
5885
- md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: 16, borderRadius: 6 },
5886
- lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: 18, borderRadius: 8 },
5887
- "2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: 20, borderRadius: 8 }
5883
+ xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
5884
+ sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
5885
+ md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
5886
+ lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
5887
+ "2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
5888
5888
  };
5889
5889
  var Textarea = React32__namespace.default.forwardRef(
5890
5890
  ({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
@@ -7812,7 +7812,6 @@ exports.Toaster = Toaster;
7812
7812
  exports.Tooltip = Tooltip;
7813
7813
  exports.UserMenu = UserMenu;
7814
7814
  exports.bankColors = bankColors;
7815
- exports.buttonVariants = buttonVariants;
7816
7815
  exports.cn = cn;
7817
7816
  exports.config = config;
7818
7817
  exports.createListCollection = createListCollection;
package/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoo
10
10
  export { Alert, AlertProps } from './alert.cjs';
11
11
  export { Avatar, AvatarGroup, AvatarProps } from './avatar.cjs';
12
12
  export { Badge, BadgeProps } from './badge.cjs';
13
- export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps, buttonVariants } from './button.cjs';
13
+ export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps } from './button.cjs';
14
14
  export { Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps } from './checkbox.cjs';
15
15
  export { CloseButton, CloseButtonProps } from './close-button.cjs';
16
16
  export { CollapsibleDetails, CollapsibleList } from './collapsible.cjs';
@@ -54,7 +54,7 @@ import '@tanstack/react-query';
54
54
  import 'react';
55
55
  import 'clsx';
56
56
  import '@hanzogui/web';
57
- import '@hanzogui/themes/v5';
57
+ import '@hanzogui/config/v5';
58
58
  import '@hanzo/gui';
59
59
  import 'react/jsx-runtime';
60
60
  import '@hanzogui/core';
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoo
10
10
  export { Alert, AlertProps } from './alert.js';
11
11
  export { Avatar, AvatarGroup, AvatarProps } from './avatar.js';
12
12
  export { Badge, BadgeProps } from './badge.js';
13
- export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps, buttonVariants } from './button.js';
13
+ export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps } from './button.js';
14
14
  export { Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps } from './checkbox.js';
15
15
  export { CloseButton, CloseButtonProps } from './close-button.js';
16
16
  export { CollapsibleDetails, CollapsibleList } from './collapsible.js';
@@ -54,7 +54,7 @@ import '@tanstack/react-query';
54
54
  import 'react';
55
55
  import 'clsx';
56
56
  import '@hanzogui/web';
57
- import '@hanzogui/themes/v5';
57
+ import '@hanzogui/config/v5';
58
58
  import '@hanzo/gui';
59
59
  import 'react/jsx-runtime';
60
60
  import '@hanzogui/core';