@luxfi/ui 7.4.15 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/LICENSE.md +21 -0
  2. package/dist/accordion.d.ts +10 -12
  3. package/dist/accordion.d.ts.map +1 -0
  4. package/dist/alert.cjs +7 -11
  5. package/dist/alert.d.ts +4 -5
  6. package/dist/alert.d.ts.map +1 -0
  7. package/dist/alert.js +1 -5
  8. package/dist/auth.d.ts +11 -13
  9. package/dist/auth.d.ts.map +1 -0
  10. package/dist/avatar.d.ts +5 -6
  11. package/dist/avatar.d.ts.map +1 -0
  12. package/dist/badge.cjs +7 -11
  13. package/dist/badge.d.ts +7 -8
  14. package/dist/badge.d.ts.map +1 -0
  15. package/dist/badge.js +1 -5
  16. package/dist/bank.d.ts +38 -43
  17. package/dist/bank.d.ts.map +1 -0
  18. package/dist/button.cjs +7 -11
  19. package/dist/button.d.ts +8 -9
  20. package/dist/button.d.ts.map +1 -0
  21. package/dist/button.js +1 -5
  22. package/dist/checkbox.d.ts +6 -7
  23. package/dist/checkbox.d.ts.map +1 -0
  24. package/dist/chrome.cjs +4 -8
  25. package/dist/chrome.d.ts +15 -19
  26. package/dist/chrome.d.ts.map +1 -0
  27. package/dist/chrome.js +1 -5
  28. package/dist/close-button.d.ts +3 -5
  29. package/dist/close-button.d.ts.map +1 -0
  30. package/dist/collapsible.cjs +19 -23
  31. package/dist/collapsible.d.ts +11 -13
  32. package/dist/collapsible.d.ts.map +1 -0
  33. package/dist/collapsible.js +1 -5
  34. package/dist/color-mode.d.ts +7 -9
  35. package/dist/color-mode.d.ts.map +1 -0
  36. package/dist/dialog.cjs +7 -11
  37. package/dist/dialog.d.ts +50 -54
  38. package/dist/dialog.d.ts.map +1 -0
  39. package/dist/dialog.js +1 -5
  40. package/dist/drawer.d.ts +33 -38
  41. package/dist/drawer.d.ts.map +1 -0
  42. package/dist/empty-state.d.ts +4 -6
  43. package/dist/empty-state.d.ts.map +1 -0
  44. package/dist/engine.d.ts +35 -0
  45. package/dist/engine.d.ts.map +1 -0
  46. package/dist/expiration-selector.d.ts +4 -6
  47. package/dist/expiration-selector.d.ts.map +1 -0
  48. package/dist/field.d.ts +5 -7
  49. package/dist/field.d.ts.map +1 -0
  50. package/dist/greeks-display.d.ts +3 -5
  51. package/dist/greeks-display.d.ts.map +1 -0
  52. package/dist/gui.d.ts +1 -1
  53. package/dist/gui.d.ts.map +1 -0
  54. package/dist/heading.d.ts +4 -6
  55. package/dist/heading.d.ts.map +1 -0
  56. package/dist/iam.d.ts +10 -12
  57. package/dist/iam.d.ts.map +1 -0
  58. package/dist/icon-button.cjs +7 -11
  59. package/dist/icon-button.d.ts +4 -5
  60. package/dist/icon-button.d.ts.map +1 -0
  61. package/dist/icon-button.js +1 -5
  62. package/dist/icons.d.ts +1 -0
  63. package/dist/icons.d.ts.map +1 -0
  64. package/dist/identity.d.ts +9 -11
  65. package/dist/identity.d.ts.map +1 -0
  66. package/dist/image.cjs +8 -12
  67. package/dist/image.d.ts +10 -11
  68. package/dist/image.d.ts.map +1 -0
  69. package/dist/image.js +1 -5
  70. package/dist/index.cjs +65 -66
  71. package/dist/index.d.ts +86 -60
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.js +6 -9
  74. package/dist/ink.d.ts +14 -0
  75. package/dist/ink.d.ts.map +1 -0
  76. package/dist/input-group.d.ts +4 -6
  77. package/dist/input-group.d.ts.map +1 -0
  78. package/dist/input.d.ts +8 -9
  79. package/dist/input.d.ts.map +1 -0
  80. package/dist/link.cjs +19 -23
  81. package/dist/link.d.ts +9 -11
  82. package/dist/link.d.ts.map +1 -0
  83. package/dist/link.js +1 -5
  84. package/dist/lux.config.d.ts +521 -524
  85. package/dist/lux.config.d.ts.map +1 -0
  86. package/dist/menu.d.ts +30 -31
  87. package/dist/menu.d.ts.map +1 -0
  88. package/dist/next.d.ts +5 -7
  89. package/dist/next.d.ts.map +1 -0
  90. package/dist/option-chain.d.ts +6 -8
  91. package/dist/option-chain.d.ts.map +1 -0
  92. package/dist/option-position.d.ts +4 -6
  93. package/dist/option-position.d.ts.map +1 -0
  94. package/dist/pin-input.cjs +1 -1
  95. package/dist/pin-input.d.ts +3 -5
  96. package/dist/pin-input.d.ts.map +1 -0
  97. package/dist/pin-input.js +1 -1
  98. package/dist/pnl-diagram.d.ts +5 -6
  99. package/dist/pnl-diagram.d.ts.map +1 -0
  100. package/dist/popover.cjs +9 -13
  101. package/dist/popover.d.ts +24 -25
  102. package/dist/popover.d.ts.map +1 -0
  103. package/dist/popover.js +1 -5
  104. package/dist/progress-circle.cjs +2 -6
  105. package/dist/progress-circle.d.ts +8 -9
  106. package/dist/progress-circle.d.ts.map +1 -0
  107. package/dist/progress-circle.js +1 -5
  108. package/dist/progress.d.ts +3 -4
  109. package/dist/progress.d.ts.map +1 -0
  110. package/dist/provider.d.ts +8 -10
  111. package/dist/provider.d.ts.map +1 -0
  112. package/dist/radio.d.ts +6 -7
  113. package/dist/radio.d.ts.map +1 -0
  114. package/dist/rating.d.ts +3 -5
  115. package/dist/rating.d.ts.map +1 -0
  116. package/dist/select.cjs +16 -20
  117. package/dist/select.d.ts +38 -41
  118. package/dist/select.d.ts.map +1 -0
  119. package/dist/select.js +1 -5
  120. package/dist/separator.d.ts +5 -6
  121. package/dist/separator.d.ts.map +1 -0
  122. package/dist/skeleton.cjs +7 -11
  123. package/dist/skeleton.d.ts +9 -12
  124. package/dist/skeleton.d.ts.map +1 -0
  125. package/dist/skeleton.js +1 -5
  126. package/dist/slider.cjs +1 -1
  127. package/dist/slider.d.ts +3 -5
  128. package/dist/slider.d.ts.map +1 -0
  129. package/dist/slider.js +1 -1
  130. package/dist/strategy-builder.d.ts +6 -8
  131. package/dist/strategy-builder.d.ts.map +1 -0
  132. package/dist/switch.cjs +1 -1
  133. package/dist/switch.d.ts +3 -5
  134. package/dist/switch.d.ts.map +1 -0
  135. package/dist/switch.js +1 -1
  136. package/dist/table.cjs +30 -34
  137. package/dist/table.d.ts +23 -25
  138. package/dist/table.d.ts.map +1 -0
  139. package/dist/table.js +1 -5
  140. package/dist/tabs.d.ts +12 -13
  141. package/dist/tabs.d.ts.map +1 -0
  142. package/dist/tag.cjs +7 -11
  143. package/dist/tag.d.ts +4 -5
  144. package/dist/tag.d.ts.map +1 -0
  145. package/dist/tag.js +1 -5
  146. package/dist/textarea.d.ts +5 -6
  147. package/dist/textarea.d.ts.map +1 -0
  148. package/dist/toaster.d.ts +4 -5
  149. package/dist/toaster.d.ts.map +1 -0
  150. package/dist/tooltip.d.ts +3 -5
  151. package/dist/tooltip.d.ts.map +1 -0
  152. package/dist/use-narrow.d.ts +6 -7
  153. package/dist/use-narrow.d.ts.map +1 -0
  154. package/dist/utils/cn.d.ts +2 -0
  155. package/dist/utils/cn.d.ts.map +1 -0
  156. package/dist/utils.cjs +6 -7
  157. package/dist/utils.d.ts +13 -5
  158. package/dist/utils.d.ts.map +1 -0
  159. package/dist/utils.js +1 -9
  160. package/dist/vite.d.ts +3 -3
  161. package/dist/vite.d.ts.map +1 -0
  162. package/dist/white-label.d.ts +12 -12
  163. package/dist/white-label.d.ts.map +1 -0
  164. package/package.json +19 -17
  165. package/src/pin-input.tsx +1 -1
  166. package/src/slider.tsx +1 -1
  167. package/src/switch.tsx +1 -1
  168. package/src/utils/cn.ts +3 -7
  169. package/src/utils.ts +12 -6
  170. package/tokens.css +11 -0
  171. package/dist/accordion.d.cts +0 -41
  172. package/dist/alert.d.cts +0 -30
  173. package/dist/auth.d.cts +0 -80
  174. package/dist/avatar.d.cts +0 -25
  175. package/dist/badge.d.cts +0 -19
  176. package/dist/bank.d.cts +0 -83
  177. package/dist/button.d.cts +0 -51
  178. package/dist/checkbox.d.cts +0 -32
  179. package/dist/chrome.d.cts +0 -93
  180. package/dist/close-button.d.cts +0 -9
  181. package/dist/collapsible.d.cts +0 -24
  182. package/dist/color-mode.d.cts +0 -25
  183. package/dist/dialog.d.cts +0 -118
  184. package/dist/drawer.d.cts +0 -69
  185. package/dist/empty-state.d.cts +0 -13
  186. package/dist/expiration-selector.d.cts +0 -16
  187. package/dist/field.d.cts +0 -23
  188. package/dist/greeks-display.d.cts +0 -14
  189. package/dist/gui.d.cts +0 -2
  190. package/dist/heading.d.cts +0 -8
  191. package/dist/iam.d.cts +0 -65
  192. package/dist/icon-button.d.cts +0 -37
  193. package/dist/icons.d.cts +0 -1
  194. package/dist/identity.d.cts +0 -64
  195. package/dist/image.d.cts +0 -57
  196. package/dist/index.d.cts +0 -60
  197. package/dist/input-group.d.cts +0 -17
  198. package/dist/input.d.cts +0 -37
  199. package/dist/link.d.cts +0 -37
  200. package/dist/lux.config.d.cts +0 -981
  201. package/dist/menu.d.cts +0 -68
  202. package/dist/next.d.cts +0 -32
  203. package/dist/option-chain.d.cts +0 -37
  204. package/dist/option-position.d.cts +0 -29
  205. package/dist/pin-input.d.cts +0 -25
  206. package/dist/pnl-diagram.d.cts +0 -11
  207. package/dist/popover.d.cts +0 -73
  208. package/dist/progress-circle.d.cts +0 -47
  209. package/dist/progress.d.cts +0 -28
  210. package/dist/provider.d.cts +0 -25
  211. package/dist/radio.d.cts +0 -53
  212. package/dist/rating.d.cts +0 -14
  213. package/dist/select.d.cts +0 -161
  214. package/dist/separator.d.cts +0 -13
  215. package/dist/skeleton.d.cts +0 -76
  216. package/dist/slider.d.cts +0 -24
  217. package/dist/strategy-builder.d.cts +0 -26
  218. package/dist/switch.d.cts +0 -27
  219. package/dist/table.d.cts +0 -107
  220. package/dist/tabs.d.cts +0 -34
  221. package/dist/tag.d.cts +0 -21
  222. package/dist/textarea.d.cts +0 -13
  223. package/dist/toaster.d.cts +0 -28
  224. package/dist/tooltip.d.cts +0 -38
  225. package/dist/use-narrow.d.cts +0 -12
  226. package/dist/utils.d.cts +0 -5
  227. package/dist/vite.d.cts +0 -29
  228. package/dist/white-label.d.cts +0 -59
package/dist/dialog.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- import * as _hanzo_gui from '@hanzo/gui';
2
- import * as _hanzogui_web from '@hanzogui/web';
3
- import * as _hanzogui_core from '@hanzogui/core';
4
1
  import * as React from 'react';
5
-
6
2
  type DialogSize = 'sm' | 'md' | 'full' | 'cover';
7
3
  /**
8
4
  * Responsive size expressed as a plain value or a breakpoint map.
@@ -15,7 +11,7 @@ type ResponsiveSize = DialogSize | {
15
11
  lgDown?: DialogSize;
16
12
  lg?: DialogSize;
17
13
  };
18
- interface DialogRootProps {
14
+ export interface DialogRootProps {
19
15
  children?: React.ReactNode;
20
16
  open?: boolean;
21
17
  defaultOpen?: boolean;
@@ -27,92 +23,92 @@ interface DialogRootProps {
27
23
  motionPreset?: string;
28
24
  modal?: boolean;
29
25
  }
30
- declare const DialogRoot: React.FC<DialogRootProps>;
31
- interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
26
+ export declare const DialogRoot: React.FC<DialogRootProps>;
27
+ export interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
32
28
  portalled?: boolean;
33
29
  portalRef?: React.RefObject<HTMLElement>;
34
30
  backdrop?: boolean;
35
31
  paddingTop?: number | string;
36
32
  }
37
- declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
38
- interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
33
+ export declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
34
+ export interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
39
35
  }
40
- declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
41
- interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
36
+ export declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
37
+ export interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
42
38
  startElement?: React.ReactNode;
43
39
  onBackToClick?: () => void;
44
40
  }
45
- declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
46
- interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
41
+ export declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
42
+ export interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
47
43
  pt?: number | string;
48
44
  display?: string;
49
45
  flexDir?: string;
50
46
  }
51
- declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
52
- interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
47
+ export declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
48
+ export interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
53
49
  }
54
- declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
55
- declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
50
+ export declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
51
+ export declare const DialogBackdrop: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
56
52
  open?: boolean | undefined;
57
53
  unstyled?: boolean | undefined;
58
- elevation?: number | _hanzogui_web.SizeTokens | undefined;
54
+ elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
59
55
  fullscreen?: boolean | undefined;
60
- }>, "scope" | "forceMount"> & {
56
+ }>, "forceMount" | "scope"> & {
61
57
  forceMount?: boolean;
62
58
  } & {
63
- scope?: _hanzo_gui.DialogScopes;
64
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
59
+ scope?: import("@hanzo/gui").DialogScopes;
60
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
65
61
  forceMount?: boolean;
66
62
  } & {
67
- scope?: _hanzo_gui.DialogScopes;
68
- }, _hanzogui_web.StackStyleBase, {
63
+ scope?: import("@hanzo/gui").DialogScopes;
64
+ }, import("@hanzogui/web").StackStyleBase, {
69
65
  open?: boolean | undefined;
70
66
  unstyled?: boolean | undefined;
71
- elevation?: number | _hanzogui_web.SizeTokens | undefined;
67
+ elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
72
68
  fullscreen?: boolean | undefined;
73
- }, _hanzogui_web.StaticConfigPublic>;
74
- declare const DialogTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
69
+ }, import("@hanzogui/web").StaticConfigPublic>;
70
+ export declare const DialogTitle: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
75
71
  unstyled?: boolean | undefined;
76
- size?: _hanzogui_web.FontSizeTokens | undefined;
72
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
77
73
  }>, "scope"> & {
78
- scope?: _hanzo_gui.DialogScopes;
79
- }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
80
- scope?: _hanzo_gui.DialogScopes;
81
- }, _hanzogui_web.TextStylePropsBase, {
74
+ scope?: import("@hanzo/gui").DialogScopes;
75
+ }, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & {
76
+ scope?: import("@hanzo/gui").DialogScopes;
77
+ }, import("@hanzogui/web").TextStylePropsBase, {
82
78
  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, {
79
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
80
+ }, import("@hanzogui/web").StaticConfigPublic>;
81
+ export declare const DialogDescription: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
86
82
  unstyled?: boolean | undefined;
87
- size?: _hanzogui_web.FontSizeTokens | undefined;
83
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
88
84
  }>, "scope"> & {
89
- scope?: _hanzo_gui.DialogScopes;
90
- }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
91
- scope?: _hanzo_gui.DialogScopes;
92
- }, _hanzogui_web.TextStylePropsBase, {
85
+ scope?: import("@hanzo/gui").DialogScopes;
86
+ }, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & {
87
+ scope?: import("@hanzo/gui").DialogScopes;
88
+ }, import("@hanzogui/web").TextStylePropsBase, {
93
89
  unstyled?: boolean | undefined;
94
- size?: _hanzogui_web.FontSizeTokens | undefined;
95
- }, _hanzogui_web.StaticConfigPublic>;
96
- interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
90
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
91
+ }, import("@hanzogui/web").StaticConfigPublic>;
92
+ export interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
97
93
  }
98
- declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
99
- scope?: _hanzo_gui.DialogScopes;
100
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
101
- scope?: _hanzo_gui.DialogScopes;
102
- }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
94
+ export declare const DialogTrigger: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {}>, "scope"> & {
95
+ scope?: import("@hanzo/gui").DialogScopes;
96
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
97
+ scope?: import("@hanzo/gui").DialogScopes;
98
+ }, import("@hanzogui/web").StackStyleBase, {}, import("@hanzogui/web").StaticConfigPublic>;
103
99
  /**
104
100
  * `DialogActionTrigger` renders its child and closes the dialog on click.
105
101
  * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
106
102
  * children in a close action.
107
103
  */
108
- declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
104
+ export declare const DialogActionTrigger: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
109
105
  displayWhenAdapted?: boolean;
110
106
  } & {
111
- scope?: _hanzo_gui.DialogScopes;
112
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
107
+ scope?: import("@hanzo/gui").DialogScopes;
108
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
113
109
  displayWhenAdapted?: boolean;
114
110
  } & {
115
- scope?: _hanzo_gui.DialogScopes;
116
- }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
117
-
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 };
111
+ scope?: import("@hanzo/gui").DialogScopes;
112
+ }, import("@hanzogui/web").StackStyleBase, {}, import("@hanzogui/web").StaticConfigPublic>;
113
+ export {};
114
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjD;;;;;GAKG;AACH,KAAK,cAAc,GAAG,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,EAAE,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AA4D/F,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8BhD,CAAC;AAMF,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,2FA4DxB,CAAC;AAMH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAEjG,eAAO,MAAM,kBAAkB,mGAa7B,CAAC;AAMH,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,0FA+BvB,CAAC;AAMH,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAE3E,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,wFAkBrB,CAAC;AAMH,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAElF,eAAO,MAAM,YAAY,0FAWvB,CAAC;AAMH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;8CAAoB,CAAC;AAEhD,eAAO,MAAM,WAAW;;;;;;;;;;8CAAkB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;;;;;;;;8CAAwB,CAAC;AAEvD,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;CAAG;AAEvF,eAAO,MAAM,aAAa;;;;0FAAoB,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;0FAAkB,CAAC"}
package/dist/dialog.js CHANGED
@@ -1,14 +1,10 @@
1
1
  "use client";
2
2
  import { styled, View, Dialog } from '@hanzo/gui';
3
3
  import * as React2 from 'react';
4
- import { clsx } from 'clsx';
5
- import { twMerge } from 'tailwind-merge';
4
+ import { cn } from '@hanzo/ui';
6
5
  import { jsx, jsxs } from 'react/jsx-runtime';
7
6
 
8
7
  // src/dialog.tsx
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
12
8
  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";
13
9
  var CloseButtonFrame = styled(View, {
14
10
  name: "LuxCloseButton",
package/dist/drawer.d.ts CHANGED
@@ -1,11 +1,6 @@
1
- import * as _hanzogui_core from '@hanzogui/core';
2
- import * as _hanzo_gui from '@hanzo/gui';
3
- import { Dialog, YStack, XStack } from '@hanzo/gui';
4
- import * as _hanzogui_web from '@hanzogui/web';
5
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import { Dialog, XStack, YStack } from '@hanzo/gui';
6
2
  import * as React from 'react';
7
-
8
- interface DrawerRootProps {
3
+ export interface DrawerRootProps {
9
4
  children?: React.ReactNode;
10
5
  open?: boolean;
11
6
  defaultOpen?: boolean;
@@ -21,49 +16,49 @@ interface DrawerRootProps {
21
16
  }
22
17
  type Placement = 'left' | 'right' | 'top' | 'bottom';
23
18
  type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
24
- declare const DrawerRoot: (props: DrawerRootProps) => react_jsx_runtime.JSX.Element;
25
- interface DrawerContentProps extends React.ComponentPropsWithoutRef<'div'> {
19
+ export declare const DrawerRoot: (props: DrawerRootProps) => import("react/jsx-runtime").JSX.Element;
20
+ export interface DrawerContentProps extends React.ComponentPropsWithoutRef<'div'> {
26
21
  portalled?: boolean;
27
22
  portalRef?: React.RefObject<HTMLElement>;
28
23
  offset?: string | number;
29
24
  backdrop?: boolean;
30
25
  }
31
- declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
32
- declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
33
- declare const DrawerTrigger: ({ asChild, children, ...rest }: React.ComponentProps<typeof Dialog.Trigger>) => react_jsx_runtime.JSX.Element;
34
- declare const DrawerHeader: ({ children, ...props }: React.ComponentProps<typeof YStack>) => react_jsx_runtime.JSX.Element;
35
- declare const DrawerBody: ({ children, ...props }: React.ComponentProps<typeof YStack>) => react_jsx_runtime.JSX.Element;
36
- declare const DrawerFooter: ({ children, ...props }: React.ComponentProps<typeof XStack>) => react_jsx_runtime.JSX.Element;
37
- declare const DrawerTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
26
+ export declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
27
+ export declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
28
+ export declare const DrawerTrigger: ({ asChild, children, ...rest }: React.ComponentProps<typeof Dialog.Trigger>) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const DrawerHeader: ({ children, ...props }: React.ComponentProps<typeof YStack>) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const DrawerBody: ({ children, ...props }: React.ComponentProps<typeof YStack>) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const DrawerFooter: ({ children, ...props }: React.ComponentProps<typeof XStack>) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const DrawerTitle: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
38
33
  unstyled?: boolean | undefined;
39
- size?: _hanzogui_web.FontSizeTokens | undefined;
34
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
40
35
  }>, "scope"> & {
41
- scope?: _hanzo_gui.DialogScopes;
42
- }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
43
- scope?: _hanzo_gui.DialogScopes;
44
- }, _hanzogui_web.TextStylePropsBase, {
36
+ scope?: import("@hanzo/gui").DialogScopes;
37
+ }, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & {
38
+ scope?: import("@hanzo/gui").DialogScopes;
39
+ }, import("@hanzogui/web").TextStylePropsBase, {
45
40
  unstyled?: boolean | undefined;
46
- size?: _hanzogui_web.FontSizeTokens | undefined;
47
- }, _hanzogui_web.StaticConfigPublic>;
48
- declare const DrawerDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
41
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
42
+ }, import("@hanzogui/web").StaticConfigPublic>;
43
+ export declare const DrawerDescription: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
49
44
  unstyled?: boolean | undefined;
50
- size?: _hanzogui_web.FontSizeTokens | undefined;
45
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
51
46
  }>, "scope"> & {
52
- scope?: _hanzo_gui.DialogScopes;
53
- }, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
54
- scope?: _hanzo_gui.DialogScopes;
55
- }, _hanzogui_web.TextStylePropsBase, {
47
+ scope?: import("@hanzo/gui").DialogScopes;
48
+ }, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & {
49
+ scope?: import("@hanzo/gui").DialogScopes;
50
+ }, import("@hanzogui/web").TextStylePropsBase, {
56
51
  unstyled?: boolean | undefined;
57
- size?: _hanzogui_web.FontSizeTokens | undefined;
58
- }, _hanzogui_web.StaticConfigPublic>;
59
- declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
52
+ size?: import("@hanzogui/web").FontSizeTokens | undefined;
53
+ }, import("@hanzogui/web").StaticConfigPublic>;
54
+ export declare const DrawerActionTrigger: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
60
55
  displayWhenAdapted?: boolean;
61
56
  } & {
62
- scope?: _hanzo_gui.DialogScopes;
63
- }, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
57
+ scope?: import("@hanzo/gui").DialogScopes;
58
+ }, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
64
59
  displayWhenAdapted?: boolean;
65
60
  } & {
66
- scope?: _hanzo_gui.DialogScopes;
67
- }, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
68
-
69
- export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger };
61
+ scope?: import("@hanzo/gui").DialogScopes;
62
+ }, import("@hanzogui/web").StackStyleBase, {}, import("@hanzogui/web").StaticConfigPublic>;
63
+ export {};
64
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../src/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2B,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AACrD,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAmBtD,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAyChD,CAAC;AAIF,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuBD,eAAO,MAAM,aAAa,2FAiFzB,CAAC;AAIF,eAAO,MAAM,kBAAkB,kLAa7B,CAAC;AAEH,eAAO,MAAM,aAAa,GAAI,gCAAuC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,4CAY/G,CAAC;AAMF,eAAO,MAAM,YAAY,GAAI,wBAAwB,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,4CAEvF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,wBAAwB,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,4CAErF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,wBAAwB,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,4CAIvF,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;8CAAe,CAAC;AACxC,eAAO,MAAM,iBAAiB;;;;;;;;;;8CAAqB,CAAC;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;0FAAe,CAAC"}
@@ -1,13 +1,11 @@
1
1
  import * as React from 'react';
2
-
3
- type EmptyStateType = 'query' | 'stats' | 'coming_soon';
4
- interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ export type EmptyStateType = 'query' | 'stats' | 'coming_soon';
3
+ export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
5
4
  title?: string;
6
5
  description?: React.ReactNode;
7
6
  term?: string;
8
7
  type?: EmptyStateType;
9
8
  icon?: React.ReactNode;
10
9
  }
11
- declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
12
-
13
- export { EmptyState, type EmptyStateProps, type EmptyStateType };
10
+ export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
11
+ //# sourceMappingURL=empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../src/empty-state.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AAM/D,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAID,eAAO,MAAM,UAAU,wFA0EtB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /** Every package `@hanzo/gui` re-exports — the engine, in full. */
2
+ export declare const GUI_PACKAGES: ReadonlyArray<string>;
3
+ /**
4
+ * The engine branches on these at module scope; without them a browser bundle
5
+ * takes the native path.
6
+ */
7
+ export declare const GUI_DEFINES: Readonly<Record<string, string>>;
8
+ /**
9
+ * Every package that must exist exactly ONCE in a bundle — the engine, plus the
10
+ * three libraries outside it that also publish a module-scope React context.
11
+ *
12
+ * `react` and `react-dom` are the classic case. `@tanstack/react-query` is the
13
+ * same failure with a different message: lux.market resolved two copies (one
14
+ * under react@19.1.0, one under react@19.2.8), the app's `QueryClientProvider`
15
+ * came from copy A and `@luxfi/ui`'s `useQuery` read copy B's context, and the
16
+ * whole page died with "No QueryClient set, use QueryClientProvider to set one".
17
+ *
18
+ * ONE list, shared by both bundler wrappers, so vite and next cannot dedupe
19
+ * different sets — which is exactly how that market bug survived: the vite
20
+ * wrapper already listed these three, the Next wrapper did not.
21
+ */
22
+ export declare const ENGINE_DEDUPE: ReadonlyArray<string>;
23
+ /**
24
+ * The subset of ENGINE_DEDUPE that may be pinned by a hard bundler ALIAS.
25
+ *
26
+ * `dedupe` is advisory hoisting; an alias is a hard redirect, and redirecting
27
+ * `react` / `react-dom` inside a Next app breaks the framework's own graph —
28
+ * the RSC client manifest is keyed on Next's copy, so the MPC dashboard died
29
+ * with `Could not find the module … segment-explorer-node.js#SegmentViewNode in
30
+ * the React Client Manifest` followed by `__webpack_modules__[moduleId] is not
31
+ * a function`. Next already guarantees one React; it does not guarantee one
32
+ * react-query, and it does not guarantee one popper.
33
+ */
34
+ export declare const ALIASABLE: ReadonlyArray<string>;
35
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":"AA2BA,mEAAmE;AACnE,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,MAAM,CAmE9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGxD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,MAAM,CAK/C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,EAAE,aAAa,CAAC,MAAM,CAG3C,CAAC"}
@@ -1,16 +1,14 @@
1
1
  import * as React from 'react';
2
-
3
- interface ExpirationOption {
2
+ export interface ExpirationOption {
4
3
  date: string;
5
4
  dte: number;
6
5
  type: 'weekly' | 'monthly' | 'quarterly';
7
6
  }
8
- interface ExpirationSelectorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
7
+ export interface ExpirationSelectorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
9
8
  readonly expirations: ExpirationOption[];
10
9
  readonly selected: string;
11
10
  readonly onSelect: (date: string) => void;
12
11
  readonly showGroups?: boolean;
13
12
  }
14
- declare const ExpirationSelector: React.ForwardRefExoticComponent<ExpirationSelectorProps & React.RefAttributes<HTMLDivElement>>;
15
-
16
- export { type ExpirationOption, ExpirationSelector, type ExpirationSelectorProps };
13
+ export declare const ExpirationSelector: React.ForwardRefExoticComponent<ExpirationSelectorProps & React.RefAttributes<HTMLDivElement>>;
14
+ //# sourceMappingURL=expiration-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expiration-selector.d.ts","sourceRoot":"","sources":["../src/expiration-selector.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;CAC1C;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACrG,QAAQ,CAAC,WAAW,EAAE,gBAAgB,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AA4FD,eAAO,MAAM,kBAAkB,gGAqE9B,CAAC"}
package/dist/field.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from './input.js';
3
- import { InputGroupProps } from './input-group.js';
4
-
5
- interface FieldProps {
2
+ import type { InputProps } from './input';
3
+ import type { InputGroupProps } from './input-group';
4
+ export interface FieldProps {
6
5
  readonly label?: React.ReactNode;
7
6
  readonly helperText?: React.ReactNode;
8
7
  readonly errorText?: React.ReactNode;
@@ -18,6 +17,5 @@ interface FieldProps {
18
17
  readonly className?: string;
19
18
  readonly style?: React.CSSProperties;
20
19
  }
21
- declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
22
-
23
- export { Field, type FieldProps };
20
+ export declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
21
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../src/field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAqBrD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IACxF,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACtC;AAcD,eAAO,MAAM,KAAK,mFA2FjB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
-
3
- interface GreeksDisplayProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ export interface GreeksDisplayProps extends React.HTMLAttributes<HTMLDivElement> {
4
3
  readonly delta: number;
5
4
  readonly gamma: number;
6
5
  readonly theta: number;
@@ -9,6 +8,5 @@ interface GreeksDisplayProps extends React.HTMLAttributes<HTMLDivElement> {
9
8
  readonly iv?: number;
10
9
  readonly compact?: boolean;
11
10
  }
12
- declare const GreeksDisplay: React.ForwardRefExoticComponent<GreeksDisplayProps & React.RefAttributes<HTMLDivElement>>;
13
-
14
- export { GreeksDisplay, type GreeksDisplayProps };
11
+ export declare const GreeksDisplay: React.ForwardRefExoticComponent<GreeksDisplayProps & React.RefAttributes<HTMLDivElement>>;
12
+ //# sourceMappingURL=greeks-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greeks-display.d.ts","sourceRoot":"","sources":["../src/greeks-display.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AA2FD,eAAO,MAAM,aAAa,2FAwCzB,CAAC"}
package/dist/gui.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from '@hanzo/gui';
2
- import 'lucide-react';
2
+ //# sourceMappingURL=gui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gui.d.ts","sourceRoot":"","sources":["../src/gui.ts"],"names":[],"mappings":"AAgBA,cAAc,YAAY,CAAC"}
package/dist/heading.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- import React__default from 'react';
2
-
3
- interface HeadingProps extends React__default.ComponentPropsWithoutRef<'h1'> {
1
+ import React from 'react';
2
+ export interface HeadingProps extends React.ComponentPropsWithoutRef<'h1'> {
4
3
  level?: '1' | '2' | '3';
5
4
  }
6
- declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
7
-
8
- export { Heading, type HeadingProps };
5
+ export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
6
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../src/heading.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC;IACxE,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CACzB;AAmBD,eAAO,MAAM,OAAO,yFAenB,CAAC"}
package/dist/iam.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { WhiteLabel } from './white-label.js';
2
-
1
+ import { type WhiteLabel } from './white-label';
3
2
  /** A signed-in principal, as IAM describes it. */
4
- interface IamAccount {
3
+ export interface IamAccount {
5
4
  readonly owner: string;
6
5
  readonly name: string;
7
6
  readonly displayName?: string;
@@ -10,14 +9,14 @@ interface IamAccount {
10
9
  readonly isAdmin?: boolean;
11
10
  }
12
11
  /** An organization the principal can see. */
13
- interface IamOrg {
12
+ export interface IamOrg {
14
13
  readonly owner: string;
15
14
  readonly name: string;
16
15
  readonly displayName?: string;
17
16
  readonly logo?: string;
18
17
  }
19
18
  /** A project inside an organization (IAM's Org → Workspace → Project tier). */
20
- interface IamProject {
19
+ export interface IamProject {
21
20
  readonly owner: string;
22
21
  readonly name: string;
23
22
  readonly displayName?: string;
@@ -30,22 +29,22 @@ interface IamProject {
30
29
  * "signed in, and the answer is genuinely empty" — the distinction a switcher
31
30
  * has to render honestly.
32
31
  */
33
- declare class IamError extends Error {
32
+ export declare class IamError extends Error {
34
33
  readonly status: number;
35
34
  readonly unauthenticated: boolean;
36
35
  constructor(message: string, status: number, unauthenticated: boolean);
37
36
  }
38
37
  /** The IAM API root for a host — `lux.cloud` → `https://lux.id/v1/iam`. */
39
- declare function iamBase(host?: string | null | WhiteLabel): string;
38
+ export declare function iamBase(host?: string | null | WhiteLabel): string;
40
39
  /** How a read reaches IAM: where, and with whose bearer. */
41
- interface IamCall {
40
+ export interface IamCall {
42
41
  readonly base: string;
43
42
  readonly token?: string | null;
44
43
  readonly signal?: AbortSignal;
45
44
  }
46
45
  /** Rows per page for the org list — small first paint, more on demand. */
47
- declare const IAM_PAGE_SIZE = 20;
48
- declare const iam: {
46
+ export declare const IAM_PAGE_SIZE = 20;
47
+ export declare const iam: {
49
48
  /** The signed-in principal, or null when there is no session. */
50
49
  account(call: IamCall): Promise<IamAccount | null>;
51
50
  /**
@@ -61,5 +60,4 @@ declare const iam: {
61
60
  /** The organization's projects — IAM keys this read by `organization`. */
62
61
  projects(call: IamCall, org: string): Promise<Array<IamProject>>;
63
62
  };
64
-
65
- export { IAM_PAGE_SIZE, type IamAccount, type IamCall, IamError, type IamOrg, type IamProject, iam, iamBase };
63
+ //# sourceMappingURL=iam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iam.d.ts","sourceRoot":"","sources":["../src/iam.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEnE,kDAAkD;AAClD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,6CAA6C;AAC7C,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,+EAA+E;AAC/E,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAUD;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO;CAMtE;AAuBD,2EAA2E;AAC3E,wBAAgB,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,MAAM,CAGjE;AAED,4DAA4D;AAC5D,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AA6BD,0EAA0E;AAC1E,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC,eAAO,MAAM,GAAG;IACd,iEAAiE;kBAC7C,OAAO,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAUxD;;;;OAIG;wBACuB,OAAO,qDAAmD,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAgB1G,gCAAgC;uBACP,OAAO,QAAQ,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAIvE,kCAAkC;gBAChB,OAAO,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAInE,0EAA0E;mBACrD,OAAO,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;CAGvE,CAAC"}
@@ -3,8 +3,7 @@
3
3
 
4
4
  var gui = require('@hanzo/gui');
5
5
  var React = require('react');
6
- var clsx = require('clsx');
7
- var tailwindMerge = require('tailwind-merge');
6
+ var ui = require('@hanzo/ui');
8
7
  var jsxRuntime = require('react/jsx-runtime');
9
8
 
10
9
  function _interopNamespace(e) {
@@ -28,9 +27,6 @@ function _interopNamespace(e) {
28
27
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
29
28
 
30
29
  // src/icon-button.tsx
31
- function cn(...inputs) {
32
- return tailwindMerge.twMerge(clsx.clsx(inputs));
33
- }
34
30
  var SHIM_PROPS = [
35
31
  "w",
36
32
  "h",
@@ -153,7 +149,7 @@ var Skeleton = React__namespace.forwardRef(
153
149
  const shimStyle = shimToStyle(props);
154
150
  const mergedStyle = Object.keys(shimStyle).length > 0 || styleProp ? { ...shimStyle, ...styleProp } : void 0;
155
151
  const hideBelowClass = props.hideBelow ? HIDE_BELOW_MAP[props.hideBelow] : void 0;
156
- const cls = hideBelowClass ? cn(className, hideBelowClass) : className;
152
+ const cls = hideBelowClass ? ui.cn(className, hideBelowClass) : className;
157
153
  const htmlRest = stripShims(allRest);
158
154
  if (!loading) {
159
155
  if (asChild && React__namespace.isValidElement(children)) return children;
@@ -165,7 +161,7 @@ var Skeleton = React__namespace.forwardRef(
165
161
  {
166
162
  ref,
167
163
  "data-loading": true,
168
- className: cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
164
+ className: ui.cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
169
165
  style: mergedStyle,
170
166
  ...htmlRest,
171
167
  children
@@ -177,7 +173,7 @@ var Skeleton = React__namespace.forwardRef(
177
173
  {
178
174
  ref,
179
175
  "data-loading": true,
180
- className: cn(SKELETON_CLASSES, children ? "[&_*]:invisible" : "min-h-5", cls),
176
+ className: ui.cn(SKELETON_CLASSES, children ? "[&_*]:invisible" : "min-h-5", cls),
181
177
  style: mergedStyle,
182
178
  ...htmlRest,
183
179
  children
@@ -194,7 +190,7 @@ React__namespace.forwardRef(
194
190
  {
195
191
  ref,
196
192
  loading,
197
- className: cn("rounded-full shrink-0", className),
193
+ className: ui.cn("rounded-full shrink-0", className),
198
194
  style: { width: dimension, height: dimension, ...rest.style },
199
195
  ...rest
200
196
  }
@@ -204,11 +200,11 @@ React__namespace.forwardRef(
204
200
  React__namespace.forwardRef(
205
201
  function SkeletonText2(props, ref) {
206
202
  const { noOfLines = 3, loading = true, className, ...rest } = props;
207
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
203
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: ui.cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
208
204
  Skeleton,
209
205
  {
210
206
  loading,
211
- className: cn("h-4", index === noOfLines - 1 && "max-w-[80%]")
207
+ className: ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]")
212
208
  },
213
209
  index
214
210
  )) });
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
-
3
2
  type Style = Record<string, unknown>;
4
3
  /**
5
4
  * Resting look, and the looks that replace it while selected or expanded.
@@ -14,7 +13,7 @@ declare const VARIANT: Record<string, {
14
13
  }>;
15
14
  type Variant = keyof typeof VARIANT;
16
15
  type Size = '2xs' | '2xs_alt' | 'md';
17
- interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
16
+ export interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
18
17
  /** Visual variant */
19
18
  variant?: Variant;
20
19
  /** Icon-button size */
@@ -32,6 +31,6 @@ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElem
32
31
  /** Polymorphic element type (e.g. "div") */
33
32
  as?: React.ElementType;
34
33
  }
35
- declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
36
-
37
- export { IconButton, type IconButtonProps };
34
+ export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
35
+ export {};
36
+ //# sourceMappingURL=icon-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../src/icon-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4C/B,KAAK,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAMrC;;;;;GAKG;AACH,QAAA,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,CA6DhF,CAAC;AAKF,KAAK,OAAO,GAAG,MAAM,OAAO,OAAO,CAAC;AACpC,KAAK,IAAI,GAAG,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC;AAErC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAElG,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,uBAAuB;IACvB,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,4CAA4C;IAC5C,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,2FAwDtB,CAAC"}