@luxfi/ui 7.4.5 → 7.4.7

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 (159) hide show
  1. package/dist/accordion.d.cts +74 -0
  2. package/dist/accordion.d.ts +74 -0
  3. package/dist/alert.cjs +3 -7
  4. package/dist/alert.d.cts +30 -0
  5. package/dist/alert.d.ts +30 -0
  6. package/dist/alert.js +3 -7
  7. package/dist/auth.cjs +481 -0
  8. package/dist/auth.d.cts +80 -0
  9. package/dist/auth.d.ts +80 -0
  10. package/dist/auth.js +456 -0
  11. package/dist/avatar.d.cts +25 -0
  12. package/dist/avatar.d.ts +25 -0
  13. package/dist/badge.cjs +4 -8
  14. package/dist/badge.d.cts +19 -0
  15. package/dist/badge.d.ts +19 -0
  16. package/dist/badge.js +4 -8
  17. package/dist/bank.d.cts +83 -0
  18. package/dist/bank.d.ts +83 -0
  19. package/dist/button.cjs +3 -7
  20. package/dist/button.d.cts +55 -0
  21. package/dist/button.d.ts +55 -0
  22. package/dist/button.js +3 -7
  23. package/dist/checkbox.d.cts +32 -0
  24. package/dist/checkbox.d.ts +32 -0
  25. package/dist/chrome.d.cts +93 -0
  26. package/dist/chrome.d.ts +93 -0
  27. package/dist/close-button.d.cts +9 -0
  28. package/dist/close-button.d.ts +9 -0
  29. package/dist/collapsible.cjs +3 -7
  30. package/dist/collapsible.d.cts +23 -0
  31. package/dist/collapsible.d.ts +23 -0
  32. package/dist/collapsible.js +3 -7
  33. package/dist/color-mode.d.cts +25 -0
  34. package/dist/color-mode.d.ts +25 -0
  35. package/dist/dialog.d.cts +118 -0
  36. package/dist/dialog.d.ts +118 -0
  37. package/dist/drawer.d.cts +36 -0
  38. package/dist/drawer.d.ts +36 -0
  39. package/dist/empty-state.d.cts +13 -0
  40. package/dist/empty-state.d.ts +13 -0
  41. package/dist/expiration-selector.d.cts +16 -0
  42. package/dist/expiration-selector.d.ts +16 -0
  43. package/dist/field.d.cts +24 -0
  44. package/dist/field.d.ts +24 -0
  45. package/dist/greeks-display.d.cts +14 -0
  46. package/dist/greeks-display.d.ts +14 -0
  47. package/dist/gui.d.cts +2 -0
  48. package/dist/gui.d.ts +2 -0
  49. package/dist/heading.d.cts +10 -0
  50. package/dist/heading.d.ts +10 -0
  51. package/dist/iam.d.cts +65 -0
  52. package/dist/iam.d.ts +65 -0
  53. package/dist/icon-button.cjs +3 -7
  54. package/dist/icon-button.d.cts +33 -0
  55. package/dist/icon-button.d.ts +33 -0
  56. package/dist/icon-button.js +3 -7
  57. package/dist/icons.cjs +0 -1
  58. package/dist/icons.d.cts +1 -0
  59. package/dist/icons.d.ts +1 -0
  60. package/dist/icons.js +0 -1
  61. package/dist/identity.d.cts +64 -0
  62. package/dist/identity.d.ts +64 -0
  63. package/dist/image.cjs +3 -7
  64. package/dist/image.d.cts +57 -0
  65. package/dist/image.d.ts +57 -0
  66. package/dist/image.js +3 -7
  67. package/dist/index.cjs +9 -8
  68. package/dist/index.d.cts +64 -0
  69. package/dist/index.d.ts +64 -0
  70. package/dist/index.js +9 -9
  71. package/dist/input-group.d.cts +17 -0
  72. package/dist/input-group.d.ts +17 -0
  73. package/dist/input.d.cts +17 -0
  74. package/dist/input.d.ts +17 -0
  75. package/dist/link.cjs +3 -7
  76. package/dist/link.d.cts +37 -0
  77. package/dist/link.d.ts +37 -0
  78. package/dist/link.js +3 -7
  79. package/dist/lux.config.d.cts +433 -0
  80. package/dist/lux.config.d.ts +433 -0
  81. package/dist/menu.d.cts +84 -0
  82. package/dist/menu.d.ts +84 -0
  83. package/dist/next.cjs +11 -1
  84. package/dist/next.d.cts +32 -0
  85. package/dist/next.d.ts +32 -0
  86. package/dist/next.js +11 -1
  87. package/dist/option-chain.d.cts +37 -0
  88. package/dist/option-chain.d.ts +37 -0
  89. package/dist/option-position.d.cts +29 -0
  90. package/dist/option-position.d.ts +29 -0
  91. package/dist/pin-input.d.cts +25 -0
  92. package/dist/pin-input.d.ts +25 -0
  93. package/dist/pnl-diagram.d.cts +11 -0
  94. package/dist/pnl-diagram.d.ts +11 -0
  95. package/dist/popover.d.cts +73 -0
  96. package/dist/popover.d.ts +73 -0
  97. package/dist/progress-circle.d.cts +47 -0
  98. package/dist/progress-circle.d.ts +47 -0
  99. package/dist/progress.d.cts +28 -0
  100. package/dist/progress.d.ts +28 -0
  101. package/dist/provider.d.cts +25 -0
  102. package/dist/provider.d.ts +25 -0
  103. package/dist/radio.d.cts +53 -0
  104. package/dist/radio.d.ts +53 -0
  105. package/dist/rating.d.cts +14 -0
  106. package/dist/rating.d.ts +14 -0
  107. package/dist/select.cjs +3 -7
  108. package/dist/select.d.cts +130 -0
  109. package/dist/select.d.ts +130 -0
  110. package/dist/select.js +3 -7
  111. package/dist/separator.d.cts +13 -0
  112. package/dist/separator.d.ts +13 -0
  113. package/dist/skeleton.cjs +8 -7
  114. package/dist/skeleton.d.cts +76 -0
  115. package/dist/skeleton.d.ts +76 -0
  116. package/dist/skeleton.js +8 -8
  117. package/dist/slider.d.cts +24 -0
  118. package/dist/slider.d.ts +24 -0
  119. package/dist/strategy-builder.d.cts +26 -0
  120. package/dist/strategy-builder.d.ts +26 -0
  121. package/dist/switch.d.cts +27 -0
  122. package/dist/switch.d.ts +27 -0
  123. package/dist/table.cjs +3 -7
  124. package/dist/table.d.cts +107 -0
  125. package/dist/table.d.ts +107 -0
  126. package/dist/table.js +3 -7
  127. package/dist/tabs.d.cts +78 -0
  128. package/dist/tabs.d.ts +78 -0
  129. package/dist/tag.cjs +4 -8
  130. package/dist/tag.d.cts +21 -0
  131. package/dist/tag.d.ts +21 -0
  132. package/dist/tag.js +4 -8
  133. package/dist/textarea.d.cts +13 -0
  134. package/dist/textarea.d.ts +13 -0
  135. package/dist/toaster.d.cts +29 -0
  136. package/dist/toaster.d.ts +29 -0
  137. package/dist/tooltip.cjs +1 -1
  138. package/dist/tooltip.d.cts +38 -0
  139. package/dist/tooltip.d.ts +38 -0
  140. package/dist/tooltip.js +1 -1
  141. package/dist/use-narrow.d.cts +12 -0
  142. package/dist/use-narrow.d.ts +12 -0
  143. package/dist/utils.d.cts +5 -0
  144. package/dist/utils.d.ts +5 -0
  145. package/dist/vite.cjs +4 -3
  146. package/dist/vite.d.cts +29 -0
  147. package/dist/vite.d.ts +29 -0
  148. package/dist/vite.js +4 -3
  149. package/dist/white-label.d.cts +59 -0
  150. package/dist/white-label.d.ts +59 -0
  151. package/package.json +12 -2
  152. package/src/auth.tsx +198 -0
  153. package/src/engine.ts +24 -3
  154. package/src/index.ts +1 -1
  155. package/src/next.ts +10 -0
  156. package/src/skeleton.tsx +36 -7
  157. package/src/tooltip.tsx +13 -5
  158. package/src/vite.ts +4 -9
  159. package/tokens.css +828 -317
@@ -0,0 +1,433 @@
1
+ import * as _hanzogui_web from '@hanzogui/web';
2
+ import * as _hanzogui_themes_v5 from '@hanzogui/themes/v5';
3
+ export { LUX_BRAND, LuxBrand, PARS_GOLD } from './white-label.js';
4
+
5
+ declare const luxThemes: {
6
+ dark: _hanzogui_themes_v5.V5Theme;
7
+ dark_lux: _hanzogui_themes_v5.V5Theme;
8
+ dark_zoo: _hanzogui_themes_v5.V5Theme;
9
+ dark_hanzo: _hanzogui_themes_v5.V5Theme;
10
+ dark_pars: _hanzogui_themes_v5.V5Theme;
11
+ dark_bootnode: _hanzogui_themes_v5.V5Theme;
12
+ };
13
+ declare const config: _hanzogui_web.GuiInternalConfig<{
14
+ readonly radius: {
15
+ 0: number;
16
+ 1: number;
17
+ 2: number;
18
+ 3: number;
19
+ 4: number;
20
+ true: number;
21
+ 5: number;
22
+ 6: number;
23
+ 7: number;
24
+ 8: number;
25
+ 9: number;
26
+ 10: number;
27
+ 11: number;
28
+ 12: number;
29
+ };
30
+ readonly zIndex: {
31
+ 0: number;
32
+ 1: number;
33
+ 2: number;
34
+ 3: number;
35
+ 4: number;
36
+ 5: number;
37
+ };
38
+ readonly space: {
39
+ 0: number;
40
+ 0.25: number;
41
+ 0.5: number;
42
+ 0.75: number;
43
+ 1: number;
44
+ 1.5: number;
45
+ 2: number;
46
+ 2.5: number;
47
+ 3: number;
48
+ 3.5: number;
49
+ 4: number;
50
+ true: number;
51
+ 4.5: number;
52
+ 5: number;
53
+ 6: number;
54
+ 7: number;
55
+ 8: number;
56
+ 9: number;
57
+ 10: number;
58
+ 11: number;
59
+ 12: number;
60
+ 13: number;
61
+ 14: number;
62
+ 15: number;
63
+ 16: number;
64
+ 17: number;
65
+ 18: number;
66
+ 19: number;
67
+ 20: number;
68
+ [-0.25]: number;
69
+ [-0.5]: number;
70
+ [-0.75]: number;
71
+ [-1]: number;
72
+ [-1.5]: number;
73
+ [-2]: number;
74
+ [-2.5]: number;
75
+ [-3]: number;
76
+ [-3.5]: number;
77
+ [-4]: number;
78
+ "-true": number;
79
+ [-4.5]: number;
80
+ [-5]: number;
81
+ [-6]: number;
82
+ [-7]: number;
83
+ [-8]: number;
84
+ [-9]: number;
85
+ [-10]: number;
86
+ [-11]: number;
87
+ [-12]: number;
88
+ [-13]: number;
89
+ [-14]: number;
90
+ [-15]: number;
91
+ [-16]: number;
92
+ [-17]: number;
93
+ [-18]: number;
94
+ [-19]: number;
95
+ [-20]: number;
96
+ };
97
+ readonly size: {
98
+ $0: number;
99
+ "$0.25": number;
100
+ "$0.5": number;
101
+ "$0.75": number;
102
+ $1: number;
103
+ "$1.5": number;
104
+ $2: number;
105
+ "$2.5": number;
106
+ $3: number;
107
+ "$3.5": number;
108
+ $4: number;
109
+ $true: number;
110
+ "$4.5": number;
111
+ $5: number;
112
+ $6: number;
113
+ $7: number;
114
+ $8: number;
115
+ $9: number;
116
+ $10: number;
117
+ $11: number;
118
+ $12: number;
119
+ $13: number;
120
+ $14: number;
121
+ $15: number;
122
+ $16: number;
123
+ $17: number;
124
+ $18: number;
125
+ $19: number;
126
+ $20: number;
127
+ };
128
+ }, {
129
+ dark: _hanzogui_themes_v5.V5Theme;
130
+ dark_lux: _hanzogui_themes_v5.V5Theme;
131
+ dark_zoo: _hanzogui_themes_v5.V5Theme;
132
+ dark_hanzo: _hanzogui_themes_v5.V5Theme;
133
+ dark_pars: _hanzogui_themes_v5.V5Theme;
134
+ dark_bootnode: _hanzogui_themes_v5.V5Theme;
135
+ light: _hanzogui_themes_v5.V5Theme;
136
+ light_accent: _hanzogui_themes_v5.V5Theme;
137
+ dark_accent: _hanzogui_themes_v5.V5Theme;
138
+ light_black: _hanzogui_themes_v5.V5Theme;
139
+ light_white: _hanzogui_themes_v5.V5Theme;
140
+ light_gray: _hanzogui_themes_v5.V5Theme;
141
+ light_blue: _hanzogui_themes_v5.V5Theme;
142
+ light_red: _hanzogui_themes_v5.V5Theme;
143
+ light_yellow: _hanzogui_themes_v5.V5Theme;
144
+ light_green: _hanzogui_themes_v5.V5Theme;
145
+ light_orange: _hanzogui_themes_v5.V5Theme;
146
+ light_pink: _hanzogui_themes_v5.V5Theme;
147
+ light_purple: _hanzogui_themes_v5.V5Theme;
148
+ light_teal: _hanzogui_themes_v5.V5Theme;
149
+ light_neutral: _hanzogui_themes_v5.V5Theme;
150
+ dark_black: _hanzogui_themes_v5.V5Theme;
151
+ dark_white: _hanzogui_themes_v5.V5Theme;
152
+ dark_gray: _hanzogui_themes_v5.V5Theme;
153
+ dark_blue: _hanzogui_themes_v5.V5Theme;
154
+ dark_red: _hanzogui_themes_v5.V5Theme;
155
+ dark_yellow: _hanzogui_themes_v5.V5Theme;
156
+ dark_green: _hanzogui_themes_v5.V5Theme;
157
+ dark_orange: _hanzogui_themes_v5.V5Theme;
158
+ dark_pink: _hanzogui_themes_v5.V5Theme;
159
+ dark_purple: _hanzogui_themes_v5.V5Theme;
160
+ dark_teal: _hanzogui_themes_v5.V5Theme;
161
+ dark_neutral: _hanzogui_themes_v5.V5Theme;
162
+ light_surface1: _hanzogui_themes_v5.V5Theme;
163
+ light_white_surface1: _hanzogui_themes_v5.V5Theme;
164
+ light_surface2: _hanzogui_themes_v5.V5Theme;
165
+ light_white_surface2: _hanzogui_themes_v5.V5Theme;
166
+ dark_surface1: _hanzogui_themes_v5.V5Theme;
167
+ dark_black_surface1: _hanzogui_themes_v5.V5Theme;
168
+ dark_surface2: _hanzogui_themes_v5.V5Theme;
169
+ dark_black_surface2: _hanzogui_themes_v5.V5Theme;
170
+ light_black_accent: _hanzogui_themes_v5.V5Theme;
171
+ light_black_surface1: _hanzogui_themes_v5.V5Theme;
172
+ light_black_surface2: _hanzogui_themes_v5.V5Theme;
173
+ light_white_accent: _hanzogui_themes_v5.V5Theme;
174
+ light_gray_accent: _hanzogui_themes_v5.V5Theme;
175
+ light_gray_surface1: _hanzogui_themes_v5.V5Theme;
176
+ light_gray_surface2: _hanzogui_themes_v5.V5Theme;
177
+ light_blue_accent: _hanzogui_themes_v5.V5Theme;
178
+ light_blue_surface1: _hanzogui_themes_v5.V5Theme;
179
+ light_blue_surface2: _hanzogui_themes_v5.V5Theme;
180
+ light_red_accent: _hanzogui_themes_v5.V5Theme;
181
+ light_red_surface1: _hanzogui_themes_v5.V5Theme;
182
+ light_red_surface2: _hanzogui_themes_v5.V5Theme;
183
+ light_yellow_accent: _hanzogui_themes_v5.V5Theme;
184
+ light_yellow_surface1: _hanzogui_themes_v5.V5Theme;
185
+ light_yellow_surface2: _hanzogui_themes_v5.V5Theme;
186
+ light_green_accent: _hanzogui_themes_v5.V5Theme;
187
+ light_green_surface1: _hanzogui_themes_v5.V5Theme;
188
+ light_green_surface2: _hanzogui_themes_v5.V5Theme;
189
+ light_orange_accent: _hanzogui_themes_v5.V5Theme;
190
+ light_orange_surface1: _hanzogui_themes_v5.V5Theme;
191
+ light_orange_surface2: _hanzogui_themes_v5.V5Theme;
192
+ light_pink_accent: _hanzogui_themes_v5.V5Theme;
193
+ light_pink_surface1: _hanzogui_themes_v5.V5Theme;
194
+ light_pink_surface2: _hanzogui_themes_v5.V5Theme;
195
+ light_purple_accent: _hanzogui_themes_v5.V5Theme;
196
+ light_purple_surface1: _hanzogui_themes_v5.V5Theme;
197
+ light_purple_surface2: _hanzogui_themes_v5.V5Theme;
198
+ light_teal_accent: _hanzogui_themes_v5.V5Theme;
199
+ light_teal_surface1: _hanzogui_themes_v5.V5Theme;
200
+ light_teal_surface2: _hanzogui_themes_v5.V5Theme;
201
+ light_neutral_accent: _hanzogui_themes_v5.V5Theme;
202
+ light_neutral_surface1: _hanzogui_themes_v5.V5Theme;
203
+ light_neutral_surface2: _hanzogui_themes_v5.V5Theme;
204
+ dark_black_accent: _hanzogui_themes_v5.V5Theme;
205
+ dark_white_accent: _hanzogui_themes_v5.V5Theme;
206
+ dark_white_surface1: _hanzogui_themes_v5.V5Theme;
207
+ dark_white_surface2: _hanzogui_themes_v5.V5Theme;
208
+ dark_gray_accent: _hanzogui_themes_v5.V5Theme;
209
+ dark_gray_surface1: _hanzogui_themes_v5.V5Theme;
210
+ dark_gray_surface2: _hanzogui_themes_v5.V5Theme;
211
+ dark_blue_accent: _hanzogui_themes_v5.V5Theme;
212
+ dark_blue_surface1: _hanzogui_themes_v5.V5Theme;
213
+ dark_blue_surface2: _hanzogui_themes_v5.V5Theme;
214
+ dark_red_accent: _hanzogui_themes_v5.V5Theme;
215
+ dark_red_surface1: _hanzogui_themes_v5.V5Theme;
216
+ dark_red_surface2: _hanzogui_themes_v5.V5Theme;
217
+ dark_yellow_accent: _hanzogui_themes_v5.V5Theme;
218
+ dark_yellow_surface1: _hanzogui_themes_v5.V5Theme;
219
+ dark_yellow_surface2: _hanzogui_themes_v5.V5Theme;
220
+ dark_green_accent: _hanzogui_themes_v5.V5Theme;
221
+ dark_green_surface1: _hanzogui_themes_v5.V5Theme;
222
+ dark_green_surface2: _hanzogui_themes_v5.V5Theme;
223
+ dark_orange_accent: _hanzogui_themes_v5.V5Theme;
224
+ dark_orange_surface1: _hanzogui_themes_v5.V5Theme;
225
+ dark_orange_surface2: _hanzogui_themes_v5.V5Theme;
226
+ dark_pink_accent: _hanzogui_themes_v5.V5Theme;
227
+ dark_pink_surface1: _hanzogui_themes_v5.V5Theme;
228
+ dark_pink_surface2: _hanzogui_themes_v5.V5Theme;
229
+ dark_purple_accent: _hanzogui_themes_v5.V5Theme;
230
+ dark_purple_surface1: _hanzogui_themes_v5.V5Theme;
231
+ dark_purple_surface2: _hanzogui_themes_v5.V5Theme;
232
+ dark_teal_accent: _hanzogui_themes_v5.V5Theme;
233
+ dark_teal_surface1: _hanzogui_themes_v5.V5Theme;
234
+ dark_teal_surface2: _hanzogui_themes_v5.V5Theme;
235
+ dark_neutral_accent: _hanzogui_themes_v5.V5Theme;
236
+ dark_neutral_surface1: _hanzogui_themes_v5.V5Theme;
237
+ dark_neutral_surface2: _hanzogui_themes_v5.V5Theme;
238
+ }, {
239
+ text: "textAlign";
240
+ b: "bottom";
241
+ bg: "backgroundColor";
242
+ content: "alignContent";
243
+ grow: "flexGrow";
244
+ items: "alignItems";
245
+ justify: "justifyContent";
246
+ l: "left";
247
+ m: "margin";
248
+ maxH: "maxHeight";
249
+ maxW: "maxWidth";
250
+ mb: "marginBottom";
251
+ minH: "minHeight";
252
+ minW: "minWidth";
253
+ ml: "marginLeft";
254
+ mr: "marginRight";
255
+ mt: "marginTop";
256
+ mx: "marginHorizontal";
257
+ my: "marginVertical";
258
+ p: "padding";
259
+ pb: "paddingBottom";
260
+ pl: "paddingLeft";
261
+ pr: "paddingRight";
262
+ pt: "paddingTop";
263
+ px: "paddingHorizontal";
264
+ py: "paddingVertical";
265
+ r: "right";
266
+ rounded: "borderRadius";
267
+ select: "userSelect";
268
+ self: "alignSelf";
269
+ shrink: "flexShrink";
270
+ t: "top";
271
+ z: "zIndex";
272
+ }, {
273
+ readonly touchable: {
274
+ pointer: string;
275
+ };
276
+ readonly hoverable: {
277
+ hover: string;
278
+ };
279
+ readonly 'max-xxl': {
280
+ readonly maxWidth: number;
281
+ };
282
+ readonly 'max-xl': {
283
+ readonly maxWidth: number;
284
+ };
285
+ readonly 'max-lg': {
286
+ readonly maxWidth: number;
287
+ };
288
+ readonly 'max-md': {
289
+ readonly maxWidth: number;
290
+ };
291
+ readonly 'max-sm': {
292
+ readonly maxWidth: number;
293
+ };
294
+ readonly 'max-xs': {
295
+ readonly maxWidth: number;
296
+ };
297
+ readonly 'max-xxs': {
298
+ readonly maxWidth: number;
299
+ };
300
+ readonly 'max-xxxs': {
301
+ readonly maxWidth: number;
302
+ };
303
+ readonly 'max-200': {
304
+ readonly maxWidth: number;
305
+ };
306
+ readonly 'max-100': {
307
+ readonly maxWidth: number;
308
+ };
309
+ readonly xxxs: {
310
+ readonly minWidth: number;
311
+ };
312
+ readonly xxs: {
313
+ readonly minWidth: number;
314
+ };
315
+ readonly xs: {
316
+ readonly minWidth: number;
317
+ };
318
+ readonly sm: {
319
+ readonly minWidth: number;
320
+ };
321
+ readonly md: {
322
+ readonly minWidth: number;
323
+ };
324
+ readonly lg: {
325
+ readonly minWidth: number;
326
+ };
327
+ readonly xl: {
328
+ readonly minWidth: number;
329
+ };
330
+ readonly xxl: {
331
+ readonly minWidth: number;
332
+ };
333
+ readonly 'max-height-lg': {
334
+ readonly maxHeight: number;
335
+ };
336
+ readonly 'max-height-md': {
337
+ readonly maxHeight: number;
338
+ };
339
+ readonly 'max-height-sm': {
340
+ readonly maxHeight: number;
341
+ };
342
+ readonly 'max-height-xs': {
343
+ readonly maxHeight: number;
344
+ };
345
+ readonly 'max-height-xxs': {
346
+ readonly maxHeight: number;
347
+ };
348
+ readonly 'max-height-xxxs': {
349
+ readonly maxHeight: number;
350
+ };
351
+ readonly 'max-height-200': {
352
+ readonly maxHeight: number;
353
+ };
354
+ readonly 'max-height-100': {
355
+ readonly maxHeight: number;
356
+ };
357
+ readonly 'height-sm': {
358
+ readonly minHeight: number;
359
+ };
360
+ readonly 'height-md': {
361
+ readonly minHeight: number;
362
+ };
363
+ readonly 'height-lg': {
364
+ readonly minHeight: number;
365
+ };
366
+ }, {
367
+ '0ms': string;
368
+ '50ms': string;
369
+ '75ms': string;
370
+ '100ms': string;
371
+ '200ms': string;
372
+ '250ms': string;
373
+ '300ms': string;
374
+ '400ms': string;
375
+ '500ms': string;
376
+ superBouncy: string;
377
+ bouncy: string;
378
+ superLazy: string;
379
+ lazy: string;
380
+ medium: string;
381
+ slowest: string;
382
+ slow: string;
383
+ quick: string;
384
+ quickLessBouncy: string;
385
+ quicker: string;
386
+ quickerLessBouncy: string;
387
+ quickest: string;
388
+ quickestLessBouncy: string;
389
+ }, {
390
+ body: _hanzogui_web.FillInFont<_hanzogui_web.GenericFont, 9 | 15 | 1 | 10 | 3 | 2 | 5 | 6 | 16 | 11 | 12 | 14 | 4 | 7 | 8 | 13 | "true">;
391
+ heading: _hanzogui_web.FillInFont<_hanzogui_web.GenericFont, 9 | 15 | 1 | 10 | 3 | 2 | 5 | 6 | 16 | 11 | 12 | 14 | 4 | 7 | 8 | 13 | "true">;
392
+ }, {
393
+ onlyAllowShorthands: false;
394
+ mediaQueryDefaultActive: {
395
+ touchable: boolean;
396
+ hoverable: boolean;
397
+ "max-xxl": boolean;
398
+ "max-xl": boolean;
399
+ "max-lg": boolean;
400
+ "max-md": boolean;
401
+ "max-sm": boolean;
402
+ "max-xs": boolean;
403
+ "max-xxs": boolean;
404
+ "max-xxxs": boolean;
405
+ xxxs: boolean;
406
+ xxs: boolean;
407
+ xs: boolean;
408
+ sm: boolean;
409
+ md: boolean;
410
+ lg: boolean;
411
+ xl: boolean;
412
+ xxl: boolean;
413
+ "max-height-sm": boolean;
414
+ "max-height-md": boolean;
415
+ "max-height-lg": boolean;
416
+ "height-sm": boolean;
417
+ "height-md": boolean;
418
+ "height-lg": boolean;
419
+ };
420
+ defaultFont: string;
421
+ fastSchemeChange: true;
422
+ shouldAddPrefersColorThemes: true;
423
+ allowedStyleValues: "somewhat-strict-web";
424
+ addThemeClassName: "html";
425
+ styleCompat: "react-native";
426
+ }, "default">;
427
+ type Conf = typeof config;
428
+ declare module '@hanzo/gui' {
429
+ interface GuiCustomConfig extends Conf {
430
+ }
431
+ }
432
+
433
+ export { type Conf, config, config as default, luxThemes };
@@ -0,0 +1,84 @@
1
+ import * as React from 'react';
2
+
3
+ interface Positioning {
4
+ readonly placement?: string;
5
+ readonly offset?: {
6
+ readonly mainAxis?: number;
7
+ readonly crossAxis?: number;
8
+ };
9
+ }
10
+ interface MenuRootProps {
11
+ readonly children?: React.ReactNode;
12
+ readonly open?: boolean;
13
+ readonly defaultOpen?: boolean;
14
+ readonly onOpenChange?: (details: {
15
+ open: boolean;
16
+ }) => void;
17
+ readonly positioning?: Positioning;
18
+ readonly lazyMount?: boolean;
19
+ readonly unmountOnExit?: boolean;
20
+ readonly modal?: boolean;
21
+ }
22
+ declare const MenuRoot: (props: MenuRootProps) => React.ReactElement;
23
+ interface MenuTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
24
+ readonly asChild?: boolean;
25
+ }
26
+ declare const MenuTrigger: React.ForwardRefExoticComponent<MenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
27
+ interface MenuContentProps extends React.ComponentPropsWithoutRef<'div'> {
28
+ readonly portalled?: boolean;
29
+ readonly portalRef?: React.RefObject<HTMLElement>;
30
+ /** Legacy Chakra zIndex prop - mapped to inline style */
31
+ readonly zIndex?: string | number;
32
+ /** Legacy Chakra minW prop - mapped to inline style */
33
+ readonly minW?: string | number;
34
+ }
35
+ declare const MenuContent: React.ForwardRefExoticComponent<MenuContentProps & React.RefAttributes<HTMLDivElement>>;
36
+ interface MenuItemProps extends React.ComponentPropsWithoutRef<'div'> {
37
+ /** Informational value identifier (not used by Radix but kept for API compat) */
38
+ readonly value?: string;
39
+ readonly disabled?: boolean;
40
+ readonly asChild?: boolean;
41
+ /** Chakra compat - accepted but not used by Radix */
42
+ readonly closeOnSelect?: boolean;
43
+ }
44
+ declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLDivElement>>;
45
+ interface MenuItemTextProps extends React.ComponentPropsWithoutRef<'span'> {
46
+ }
47
+ declare const MenuItemText: React.ForwardRefExoticComponent<MenuItemTextProps & React.RefAttributes<HTMLSpanElement>>;
48
+ interface MenuItemCommandProps extends React.ComponentPropsWithoutRef<'span'> {
49
+ }
50
+ declare const MenuItemCommand: React.ForwardRefExoticComponent<MenuItemCommandProps & React.RefAttributes<HTMLSpanElement>>;
51
+ interface MenuSeparatorProps extends React.ComponentPropsWithoutRef<'div'> {
52
+ }
53
+ declare const MenuSeparator: React.ForwardRefExoticComponent<MenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
54
+ interface MenuItemGroupProps extends React.ComponentPropsWithoutRef<'div'> {
55
+ readonly title?: string;
56
+ }
57
+ declare const MenuItemGroup: React.ForwardRefExoticComponent<MenuItemGroupProps & React.RefAttributes<HTMLDivElement>>;
58
+ interface MenuArrowProps extends React.ComponentPropsWithoutRef<'svg'> {
59
+ }
60
+ declare const MenuArrow: React.ForwardRefExoticComponent<MenuArrowProps & React.RefAttributes<SVGSVGElement>>;
61
+ interface MenuCheckboxItemProps extends React.ComponentPropsWithoutRef<'div'> {
62
+ readonly checked?: boolean;
63
+ readonly onCheckedChange?: (checked: boolean) => void;
64
+ }
65
+ declare const MenuCheckboxItem: React.ForwardRefExoticComponent<MenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
66
+ interface MenuRadioItemGroupProps extends React.ComponentPropsWithoutRef<'div'> {
67
+ readonly value?: string;
68
+ readonly onValueChange?: (value: string) => void;
69
+ }
70
+ declare const MenuRadioItemGroup: React.ForwardRefExoticComponent<MenuRadioItemGroupProps & React.RefAttributes<HTMLDivElement>>;
71
+ interface MenuRadioItemProps extends React.ComponentPropsWithoutRef<'div'> {
72
+ readonly value: string;
73
+ }
74
+ declare const MenuRadioItem: React.ForwardRefExoticComponent<MenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
75
+ interface MenuContextTriggerProps extends React.ComponentPropsWithoutRef<'span'> {
76
+ readonly asChild?: boolean;
77
+ }
78
+ declare const MenuContextTrigger: React.ForwardRefExoticComponent<MenuContextTriggerProps & React.RefAttributes<HTMLSpanElement>>;
79
+ interface MenuTriggerItemProps extends React.ComponentPropsWithoutRef<'div'> {
80
+ readonly startIcon?: React.ReactNode;
81
+ }
82
+ declare const MenuTriggerItem: React.ForwardRefExoticComponent<MenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
83
+
84
+ export { MenuArrow, type MenuArrowProps, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuContextTrigger, type MenuContextTriggerProps, MenuItem, MenuItemCommand, type MenuItemCommandProps, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, MenuItemText, type MenuItemTextProps, MenuRadioItem, MenuRadioItemGroup, type MenuRadioItemGroupProps, type MenuRadioItemProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, MenuTriggerItem, type MenuTriggerItemProps, type MenuTriggerProps };
package/dist/menu.d.ts ADDED
@@ -0,0 +1,84 @@
1
+ import * as React from 'react';
2
+
3
+ interface Positioning {
4
+ readonly placement?: string;
5
+ readonly offset?: {
6
+ readonly mainAxis?: number;
7
+ readonly crossAxis?: number;
8
+ };
9
+ }
10
+ interface MenuRootProps {
11
+ readonly children?: React.ReactNode;
12
+ readonly open?: boolean;
13
+ readonly defaultOpen?: boolean;
14
+ readonly onOpenChange?: (details: {
15
+ open: boolean;
16
+ }) => void;
17
+ readonly positioning?: Positioning;
18
+ readonly lazyMount?: boolean;
19
+ readonly unmountOnExit?: boolean;
20
+ readonly modal?: boolean;
21
+ }
22
+ declare const MenuRoot: (props: MenuRootProps) => React.ReactElement;
23
+ interface MenuTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
24
+ readonly asChild?: boolean;
25
+ }
26
+ declare const MenuTrigger: React.ForwardRefExoticComponent<MenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
27
+ interface MenuContentProps extends React.ComponentPropsWithoutRef<'div'> {
28
+ readonly portalled?: boolean;
29
+ readonly portalRef?: React.RefObject<HTMLElement>;
30
+ /** Legacy Chakra zIndex prop - mapped to inline style */
31
+ readonly zIndex?: string | number;
32
+ /** Legacy Chakra minW prop - mapped to inline style */
33
+ readonly minW?: string | number;
34
+ }
35
+ declare const MenuContent: React.ForwardRefExoticComponent<MenuContentProps & React.RefAttributes<HTMLDivElement>>;
36
+ interface MenuItemProps extends React.ComponentPropsWithoutRef<'div'> {
37
+ /** Informational value identifier (not used by Radix but kept for API compat) */
38
+ readonly value?: string;
39
+ readonly disabled?: boolean;
40
+ readonly asChild?: boolean;
41
+ /** Chakra compat - accepted but not used by Radix */
42
+ readonly closeOnSelect?: boolean;
43
+ }
44
+ declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLDivElement>>;
45
+ interface MenuItemTextProps extends React.ComponentPropsWithoutRef<'span'> {
46
+ }
47
+ declare const MenuItemText: React.ForwardRefExoticComponent<MenuItemTextProps & React.RefAttributes<HTMLSpanElement>>;
48
+ interface MenuItemCommandProps extends React.ComponentPropsWithoutRef<'span'> {
49
+ }
50
+ declare const MenuItemCommand: React.ForwardRefExoticComponent<MenuItemCommandProps & React.RefAttributes<HTMLSpanElement>>;
51
+ interface MenuSeparatorProps extends React.ComponentPropsWithoutRef<'div'> {
52
+ }
53
+ declare const MenuSeparator: React.ForwardRefExoticComponent<MenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
54
+ interface MenuItemGroupProps extends React.ComponentPropsWithoutRef<'div'> {
55
+ readonly title?: string;
56
+ }
57
+ declare const MenuItemGroup: React.ForwardRefExoticComponent<MenuItemGroupProps & React.RefAttributes<HTMLDivElement>>;
58
+ interface MenuArrowProps extends React.ComponentPropsWithoutRef<'svg'> {
59
+ }
60
+ declare const MenuArrow: React.ForwardRefExoticComponent<MenuArrowProps & React.RefAttributes<SVGSVGElement>>;
61
+ interface MenuCheckboxItemProps extends React.ComponentPropsWithoutRef<'div'> {
62
+ readonly checked?: boolean;
63
+ readonly onCheckedChange?: (checked: boolean) => void;
64
+ }
65
+ declare const MenuCheckboxItem: React.ForwardRefExoticComponent<MenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
66
+ interface MenuRadioItemGroupProps extends React.ComponentPropsWithoutRef<'div'> {
67
+ readonly value?: string;
68
+ readonly onValueChange?: (value: string) => void;
69
+ }
70
+ declare const MenuRadioItemGroup: React.ForwardRefExoticComponent<MenuRadioItemGroupProps & React.RefAttributes<HTMLDivElement>>;
71
+ interface MenuRadioItemProps extends React.ComponentPropsWithoutRef<'div'> {
72
+ readonly value: string;
73
+ }
74
+ declare const MenuRadioItem: React.ForwardRefExoticComponent<MenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
75
+ interface MenuContextTriggerProps extends React.ComponentPropsWithoutRef<'span'> {
76
+ readonly asChild?: boolean;
77
+ }
78
+ declare const MenuContextTrigger: React.ForwardRefExoticComponent<MenuContextTriggerProps & React.RefAttributes<HTMLSpanElement>>;
79
+ interface MenuTriggerItemProps extends React.ComponentPropsWithoutRef<'div'> {
80
+ readonly startIcon?: React.ReactNode;
81
+ }
82
+ declare const MenuTriggerItem: React.ForwardRefExoticComponent<MenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
83
+
84
+ export { MenuArrow, type MenuArrowProps, MenuCheckboxItem, type MenuCheckboxItemProps, MenuContent, type MenuContentProps, MenuContextTrigger, type MenuContextTriggerProps, MenuItem, MenuItemCommand, type MenuItemCommandProps, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, MenuItemText, type MenuItemTextProps, MenuRadioItem, MenuRadioItemGroup, type MenuRadioItemGroupProps, type MenuRadioItemProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, MenuTriggerItem, type MenuTriggerItemProps, type MenuTriggerProps };
package/dist/next.cjs CHANGED
@@ -80,11 +80,17 @@ var GUI_DEFINES = {
80
80
  "process.env.EXPO_OS": JSON.stringify("web"),
81
81
  "process.env.IS_WEB": JSON.stringify("true")
82
82
  };
83
+ var ENGINE_DEDUPE = [
84
+ "react",
85
+ "react-dom",
86
+ "@tanstack/react-query",
87
+ ...GUI_PACKAGES
88
+ ];
83
89
  function guiAliases(from) {
84
90
  const { createRequire } = __require("module");
85
91
  const require_ = createRequire(`${from.replace(/\/?$/, "/")}noop.js`);
86
92
  const alias = {};
87
- for (const pkg of GUI_PACKAGES) {
93
+ for (const pkg of ENGINE_DEDUPE) {
88
94
  try {
89
95
  alias[`${pkg}$`] = require_.resolve(pkg);
90
96
  } catch {
@@ -97,6 +103,9 @@ function guiAliases(from) {
97
103
  function withLuxUi(config = {}) {
98
104
  const userWebpack = config.webpack;
99
105
  const engine = guiAliases(config.dir ?? process.cwd());
106
+ const engineTurbopack = Object.fromEntries(
107
+ Object.entries(engine).map(([k, v]) => [k.replace(/\$$/, ""), v])
108
+ );
100
109
  const { dir: _dir, ...rest } = config;
101
110
  return {
102
111
  ...rest,
@@ -105,6 +114,7 @@ function withLuxUi(config = {}) {
105
114
  ...config.turbopack,
106
115
  resolveAlias: {
107
116
  "react-native": "react-native-web",
117
+ ...engineTurbopack,
108
118
  ...config.turbopack?.resolveAlias
109
119
  }
110
120
  },
@@ -0,0 +1,32 @@
1
+ /** Every package `@hanzo/gui` re-exports — the engine, in full. */
2
+ declare const GUI_PACKAGES: ReadonlyArray<string>;
3
+
4
+ interface WebpackConfig {
5
+ resolve?: {
6
+ alias?: Record<string, unknown>;
7
+ };
8
+ plugins?: Array<unknown>;
9
+ [key: string]: unknown;
10
+ }
11
+ /** The structural slice of a Next config this wrapper touches. */
12
+ interface LuxUiNextConfig {
13
+ /** App root, for resolving the engine's single copy. Defaults to `cwd`. */
14
+ dir?: string;
15
+ transpilePackages?: Array<string>;
16
+ turbopack?: {
17
+ resolveAlias?: Record<string, string>;
18
+ [key: string]: unknown;
19
+ };
20
+ env?: Record<string, string>;
21
+ webpack?: (config: WebpackConfig, context: unknown) => WebpackConfig;
22
+ [key: string]: unknown;
23
+ }
24
+ /**
25
+ * Wrap a Next config so `@luxfi/ui` and the gui engine build.
26
+ *
27
+ * Additive: an existing `transpilePackages`, `turbopack.resolveAlias`,
28
+ * `env` and `webpack()` are all preserved and extended, never replaced.
29
+ */
30
+ declare function withLuxUi(config?: LuxUiNextConfig): LuxUiNextConfig;
31
+
32
+ export { GUI_PACKAGES, type LuxUiNextConfig, withLuxUi };