@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
@@ -1,76 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
5
- readonly loading: boolean | undefined;
6
- /** When true, the Skeleton wraps its single child element instead of adding a wrapper div. */
7
- readonly asChild?: boolean;
8
- readonly w?: any;
9
- readonly h?: any;
10
- readonly minW?: any;
11
- readonly maxW?: any;
12
- readonly display?: string;
13
- readonly flexGrow?: number;
14
- readonly flexShrink?: number;
15
- readonly flexBasis?: string;
16
- readonly fontWeight?: number | string;
17
- readonly textStyle?: string;
18
- readonly borderRadius?: string;
19
- readonly alignSelf?: string;
20
- readonly alignItems?: string;
21
- readonly justifyContent?: string;
22
- readonly color?: string;
23
- readonly mt?: number | string;
24
- readonly mb?: number | string;
25
- readonly ml?: number | string;
26
- readonly mr?: number | string;
27
- readonly height?: string;
28
- readonly overflow?: string;
29
- readonly whiteSpace?: string;
30
- readonly textOverflow?: string;
31
- readonly textTransform?: string;
32
- readonly gap?: number | string;
33
- readonly gridTemplateColumns?: string;
34
- readonly minWidth?: string;
35
- readonly boxSize?: number | string;
36
- readonly py?: number | string;
37
- readonly px?: number | string;
38
- readonly p?: number | string;
39
- readonly hideBelow?: string;
40
- readonly as?: React.ElementType;
41
- readonly fontSize?: string;
42
- readonly flexWrap?: React.CSSProperties['flexWrap'];
43
- readonly wordBreak?: React.CSSProperties['wordBreak'];
44
- readonly lineHeight?: string;
45
- readonly marginRight?: string;
46
- readonly position?: React.CSSProperties['position'];
47
- readonly background?: string;
48
- }
49
- declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
50
- interface SkeletonCircleProps extends React.HTMLAttributes<HTMLDivElement> {
51
- readonly size?: string | number;
52
- readonly loading?: boolean;
53
- }
54
- declare const SkeletonCircle: React.ForwardRefExoticComponent<SkeletonCircleProps & React.RefAttributes<HTMLDivElement>>;
55
- interface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {
56
- readonly noOfLines?: number;
57
- readonly loading?: boolean;
58
- }
59
- declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
60
- /**
61
- * The page-level "work is in flight" signal — one animated element, however
62
- * many skeletons are on screen. Mount it while any request is outstanding.
63
- *
64
- * It is `position: fixed` and 2px tall, so it is out of flow: it cannot shift
65
- * layout (CLS 0) and it cannot tint content. Under prefers-reduced-motion the
66
- * sweep stops and the track stays lit, so the state is still legible.
67
- *
68
- * This is what replaces a bare spinner. A spinner says "something is
69
- * happening somewhere"; a skeleton plus this bar says "here is the shape of
70
- * what is coming, and it is still coming".
71
- */
72
- declare function LoadingBar({ loading }: {
73
- readonly loading?: boolean;
74
- }): react_jsx_runtime.JSX.Element | null;
75
-
76
- export { LoadingBar, Skeleton, SkeletonCircle, type SkeletonCircleProps, type SkeletonProps, SkeletonText, type SkeletonTextProps };
package/dist/slider.d.cts DELETED
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface SliderProps {
4
- readonly marks?: Array<number | {
5
- readonly value: number;
6
- readonly label: React.ReactNode;
7
- }>;
8
- readonly label?: React.ReactNode;
9
- readonly showValue?: boolean;
10
- readonly value?: Array<number>;
11
- readonly defaultValue?: Array<number>;
12
- readonly min?: number;
13
- readonly max?: number;
14
- readonly step?: number;
15
- readonly disabled?: boolean;
16
- readonly orientation?: 'horizontal' | 'vertical';
17
- readonly name?: string;
18
- readonly onValueChange?: (value: Array<number>) => void;
19
- readonly onValueCommit?: (value: Array<number>) => void;
20
- readonly className?: string;
21
- }
22
- declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
23
-
24
- export { Slider, type SliderProps };
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface StrategyLeg {
4
- action: 'buy' | 'sell';
5
- type: 'call' | 'put';
6
- strike: number;
7
- expiration: string;
8
- quantity: number;
9
- premium?: number;
10
- }
11
- type StrategyType = 'bull_call_spread' | 'bear_put_spread' | 'iron_condor' | 'butterfly' | 'straddle' | 'strangle' | 'collar' | 'custom';
12
- interface StrategySubmission {
13
- type: string;
14
- legs: StrategyLeg[];
15
- netPremium: number;
16
- }
17
- interface StrategyBuilderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
18
- readonly underlying: string;
19
- readonly expirations: string[];
20
- readonly strikes: number[];
21
- readonly spotPrice: number;
22
- readonly onSubmit?: (strategy: StrategySubmission) => void;
23
- }
24
- declare const StrategyBuilder: React.ForwardRefExoticComponent<StrategyBuilderProps & React.RefAttributes<HTMLDivElement>>;
25
-
26
- export { StrategyBuilder, type StrategyBuilderProps, type StrategyLeg, type StrategySubmission, type StrategyType };
package/dist/switch.d.cts DELETED
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<'label'>, 'onChange' | 'dir'> {
4
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
5
- labelProps?: React.ComponentPropsWithoutRef<'span'>;
6
- rootRef?: React.Ref<HTMLLabelElement>;
7
- trackLabel?: {
8
- on: React.ReactNode;
9
- off: React.ReactNode;
10
- };
11
- thumbLabel?: {
12
- on: React.ReactNode;
13
- off: React.ReactNode;
14
- };
15
- checked?: boolean;
16
- defaultChecked?: boolean;
17
- onCheckedChange?: (details: {
18
- checked: boolean;
19
- }) => void;
20
- onChange?: React.FormEventHandler<HTMLLabelElement>;
21
- disabled?: boolean;
22
- size?: 'sm' | 'md' | 'lg';
23
- direction?: 'ltr' | 'rtl';
24
- }
25
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
26
-
27
- export { Switch, type SwitchProps };
package/dist/table.d.cts DELETED
@@ -1,107 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
-
4
- interface ChakraStyleProps {
5
- width?: React.CSSProperties['width'];
6
- w?: React.CSSProperties['width'];
7
- minWidth?: React.CSSProperties['minWidth'];
8
- minW?: React.CSSProperties['minWidth'];
9
- maxWidth?: React.CSSProperties['maxWidth'];
10
- maxW?: React.CSSProperties['maxWidth'];
11
- height?: React.CSSProperties['height'];
12
- h?: React.CSSProperties['height'];
13
- textAlign?: React.CSSProperties['textAlign'];
14
- verticalAlign?: React.CSSProperties['verticalAlign'];
15
- whiteSpace?: React.CSSProperties['whiteSpace'];
16
- wordBreak?: React.CSSProperties['wordBreak'];
17
- textTransform?: React.CSSProperties['textTransform'];
18
- fontSize?: React.CSSProperties['fontSize'];
19
- lineHeight?: React.CSSProperties['lineHeight'];
20
- animation?: React.CSSProperties['animation'];
21
- tableLayout?: React.CSSProperties['tableLayout'];
22
- p?: number | string;
23
- px?: number | string;
24
- py?: number | string;
25
- pr?: number | string;
26
- pl?: number | string;
27
- pt?: number | string;
28
- pb?: number | string;
29
- m?: number | string;
30
- mx?: number | string;
31
- my?: number | string;
32
- mr?: number | string;
33
- ml?: number | string;
34
- mt?: number | string;
35
- mb?: number | string;
36
- position?: React.CSSProperties['position'];
37
- top?: number | string;
38
- left?: number | string;
39
- right?: number | string;
40
- bottom?: number | string;
41
- zIndex?: React.CSSProperties['zIndex'];
42
- backgroundColor?: React.CSSProperties['backgroundColor'] | Record<string, string>;
43
- boxShadow?: React.CSSProperties['boxShadow'];
44
- alignItems?: React.CSSProperties['alignItems'];
45
- fontWeight?: React.CSSProperties['fontWeight'];
46
- color?: React.CSSProperties['color'] | string;
47
- overflow?: React.CSSProperties['overflow'];
48
- borderBottomStyle?: React.CSSProperties['borderBottomStyle'];
49
- borderRadius?: React.CSSProperties['borderRadius'];
50
- display?: React.CSSProperties['display'];
51
- _first?: Record<string, unknown>;
52
- _last?: Record<string, unknown>;
53
- }
54
- interface TableRootProps extends Omit<ChakraStyleProps, 'minWidth' | 'minW'>, Omit<React.HTMLAttributes<HTMLTableElement>, 'color'> {
55
- children?: React.ReactNode;
56
- minWidth?: React.CSSProperties['minWidth'] | Record<string, string>;
57
- minW?: React.CSSProperties['minWidth'] | Record<string, string>;
58
- }
59
- declare const TableRoot: React.ForwardRefExoticComponent<TableRootProps & React.RefAttributes<HTMLTableElement>>;
60
- interface TableHeaderProps extends ChakraStyleProps, Omit<React.HTMLAttributes<HTMLTableSectionElement>, 'color'> {
61
- children?: React.ReactNode;
62
- }
63
- declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
64
- interface TableBodyProps extends ChakraStyleProps, Omit<React.HTMLAttributes<HTMLTableSectionElement>, 'color'> {
65
- children?: React.ReactNode;
66
- }
67
- declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
68
- interface TableRowProps extends ChakraStyleProps, Omit<React.HTMLAttributes<HTMLTableRowElement>, 'color'> {
69
- children?: React.ReactNode;
70
- }
71
- declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
72
- interface TableCellProps extends Omit<ChakraStyleProps, 'width' | 'height'>, Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'color'> {
73
- isNumeric?: boolean;
74
- children?: React.ReactNode;
75
- display?: string;
76
- justifyContent?: string;
77
- }
78
- declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
79
- interface TableColumnHeaderProps extends ChakraStyleProps, Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'color'> {
80
- isNumeric?: boolean;
81
- children?: React.ReactNode;
82
- }
83
- declare const TableColumnHeader: React.ForwardRefExoticComponent<TableColumnHeaderProps & React.RefAttributes<HTMLTableCellElement>>;
84
- interface TableColumnHeaderSortableProps<F extends string> extends TableColumnHeaderProps {
85
- sortField: F;
86
- sortValue: string;
87
- onSortToggle: (sortField: F) => void;
88
- disabled?: boolean;
89
- indicatorPosition?: 'left' | 'right';
90
- contentAfter?: React.ReactNode;
91
- }
92
- declare const TableColumnHeaderSortable: <F extends string>(props: TableColumnHeaderSortableProps<F>) => react_jsx_runtime.JSX.Element;
93
- declare const TableHeaderSticky: (props: TableHeaderProps) => react_jsx_runtime.JSX.Element;
94
- interface TableCaptionProps extends ChakraStyleProps, Omit<React.HTMLAttributes<HTMLTableCaptionElement>, 'color'> {
95
- children?: React.ReactNode;
96
- }
97
- declare const TableCaption: React.ForwardRefExoticComponent<TableCaptionProps & React.RefAttributes<HTMLTableCaptionElement>>;
98
- interface TableFooterProps extends ChakraStyleProps, Omit<React.HTMLAttributes<HTMLTableSectionElement>, 'color'> {
99
- children?: React.ReactNode;
100
- }
101
- declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
102
- interface TableScrollWrapperProps extends React.HTMLAttributes<HTMLDivElement> {
103
- children?: React.ReactNode;
104
- }
105
- declare const TableScrollWrapper: React.ForwardRefExoticComponent<TableScrollWrapperProps & React.RefAttributes<HTMLDivElement>>;
106
-
107
- export { TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableColumnHeader, type TableColumnHeaderProps, TableColumnHeaderSortable, type TableColumnHeaderSortableProps, TableFooter, type TableFooterProps, TableHeader, type TableHeaderProps, TableHeaderSticky, TableRoot, type TableRootProps, TableRow, type TableRowProps, TableScrollWrapper, type TableScrollWrapperProps };
package/dist/tabs.d.cts DELETED
@@ -1,34 +0,0 @@
1
- import { Tabs } from '@hanzo/gui';
2
- import * as React from 'react';
3
-
4
- type TabsVariant = 'solid' | 'secondary' | 'segmented' | 'unstyled';
5
- type TabsSize = 'sm' | 'md' | 'free';
6
- interface TabsProps extends Omit<React.ComponentProps<typeof Tabs>, 'onValueChange' | 'size'> {
7
- /** Visual variant. Default: "solid". */
8
- variant?: TabsVariant;
9
- /** Size preset. Default: "md". */
10
- size?: TabsSize;
11
- /** Stretch triggers to fill the list width. */
12
- fitted?: boolean;
13
- /** Fires with the newly selected value. */
14
- onValueChange?: (details: {
15
- value: string;
16
- }) => void;
17
- }
18
- declare const TabsRoot: ({ variant, size, fitted, onValueChange, ...rest }: TabsProps) => React.ReactElement;
19
- type TabsListProps = React.ComponentProps<typeof Tabs.List>;
20
- declare const TabsList: (props: TabsListProps) => React.ReactElement;
21
- type TabsTriggerProps = React.ComponentProps<typeof Tabs.Tab>;
22
- declare const TabsTrigger: ({ children, ...props }: TabsTriggerProps) => React.ReactElement;
23
- type TabsContentProps = React.ComponentProps<typeof Tabs.Content>;
24
- declare const TabsContent: ({ children, ...props }: TabsContentProps) => React.ReactElement;
25
- interface TabsCounterProps {
26
- count?: number | null;
27
- }
28
- /**
29
- * The count beside a tab label. Zero is deliberately dimmer than a real count —
30
- * "nothing here" should read quieter than "three things here".
31
- */
32
- declare const TabsCounter: ({ count }: TabsCounterProps) => React.ReactElement | null;
33
-
34
- export { TabsContent, type TabsContentProps, TabsCounter, type TabsCounterProps, TabsList, type TabsListProps, type TabsProps, TabsRoot, TabsTrigger, type TabsTriggerProps };
package/dist/tag.d.cts DELETED
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type TagVariant = 'subtle' | 'clickable' | 'filter' | 'select';
4
- type TagSize = 'sm' | 'md' | 'lg';
5
- interface TagProps extends Omit<React.ComponentPropsWithRef<'span'>, 'size'> {
6
- readonly variant?: TagVariant;
7
- readonly size?: TagSize;
8
- readonly startElement?: React.ReactNode;
9
- readonly endElement?: React.ReactNode;
10
- readonly endElementProps?: React.HTMLAttributes<HTMLSpanElement>;
11
- readonly label?: string;
12
- readonly onClose?: VoidFunction;
13
- readonly closable?: boolean;
14
- readonly truncated?: boolean;
15
- readonly loading?: boolean;
16
- readonly selected?: boolean;
17
- readonly disabled?: boolean;
18
- }
19
- declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
20
-
21
- export { Tag, type TagProps };
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type TextareaSize = 'xs' | 'sm' | 'md' | 'lg' | '2xl';
4
- type TextareaVariant = 'outline' | 'filled' | 'unstyled';
5
- interface TextareaProps extends Omit<React__default.ComponentPropsWithRef<'textarea'>, 'size'> {
6
- readonly size?: TextareaSize;
7
- readonly variant?: TextareaVariant;
8
- /** Tamagui / React-Native convention — bridged to native `onChange` (see Input). */
9
- readonly onChangeText?: (text: string) => void;
10
- }
11
- declare const Textarea: React__default.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React__default.RefAttributes<HTMLTextAreaElement>>;
12
-
13
- export { Textarea, type TextareaProps };
@@ -1,28 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type ToastType = 'info' | 'warning' | 'success' | 'error' | 'loading';
4
- interface ToastOptions {
5
- readonly id?: string | number;
6
- readonly title?: string;
7
- readonly description?: string;
8
- readonly type?: ToastType;
9
- readonly duration?: number;
10
- readonly action?: {
11
- readonly label: string;
12
- readonly onClick: () => void;
13
- };
14
- readonly onStatusChange?: (details: {
15
- readonly status: string;
16
- }) => void;
17
- }
18
- declare const toaster: {
19
- readonly create: (opts: ToastOptions) => string | number;
20
- readonly success: (opts: ToastOptions) => string | number;
21
- readonly error: (opts: ToastOptions) => string | number;
22
- readonly loading: (opts: ToastOptions) => string | number;
23
- readonly update: (id: string | number, opts: ToastOptions) => void;
24
- readonly remove: (id: string | number) => void;
25
- };
26
- declare const Toaster: React.FC;
27
-
28
- export { Toaster, toaster };
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface TooltipProps {
4
- selected?: boolean;
5
- showArrow?: boolean;
6
- portalled?: boolean;
7
- portalRef?: React.RefObject<HTMLElement>;
8
- content: React.ReactNode;
9
- contentProps?: React.HTMLAttributes<HTMLDivElement>;
10
- triggerProps?: React.HTMLAttributes<HTMLButtonElement>;
11
- disabled?: boolean;
12
- disableOnMobile?: boolean;
13
- children?: React.ReactNode;
14
- variant?: string;
15
- open?: boolean;
16
- defaultOpen?: boolean;
17
- onOpenChange?: (details: {
18
- open: boolean;
19
- }) => void;
20
- closeDelay?: number;
21
- openDelay?: number;
22
- interactive?: boolean;
23
- lazyMount?: boolean;
24
- unmountOnExit?: boolean;
25
- positioning?: {
26
- placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
27
- overflowPadding?: number;
28
- offset?: {
29
- mainAxis?: number;
30
- crossAxis?: number;
31
- };
32
- };
33
- closeOnClick?: boolean;
34
- closeOnPointerDown?: boolean;
35
- }
36
- declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
37
-
38
- export { Tooltip, type TooltipProps };
@@ -1,12 +0,0 @@
1
- /** Below this the UI is a phone: menus become sheets, drawers drag. */
2
- declare const NARROW_PX = 640;
3
- /** Below this the pointer is a finger: hover-only affordances are suppressed. */
4
- declare const TOUCH_PX = 1024;
5
- /** True while the viewport is narrower than `px`. */
6
- declare function useBelow(px: number): boolean;
7
- /** Phone-sized: present menus as sheets. */
8
- declare const useIsNarrow: () => boolean;
9
- /** Touch-sized: no hover, so hover-only affordances must not be the only path. */
10
- declare const useIsTouch: () => boolean;
11
-
12
- export { NARROW_PX, TOUCH_PX, useBelow, useIsNarrow, useIsTouch };
package/dist/utils.d.cts DELETED
@@ -1,5 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function cn(...inputs: ClassValue[]): string;
4
-
5
- export { cn };
package/dist/vite.d.cts DELETED
@@ -1,29 +0,0 @@
1
- interface LuxUiViteOptions {
2
- /**
3
- * Extra packages to keep to a single physical copy. React, the gui engine and
4
- * TanStack Query are always deduped.
5
- */
6
- readonly dedupe?: ReadonlyArray<string>;
7
- /**
8
- * Extra packages to pre-bundle. The engine, react-native-web and the CJS-only
9
- * colour helper are always included.
10
- */
11
- readonly include?: ReadonlyArray<string>;
12
- }
13
- /** Minimal structural shape of a Vite plugin — avoids a hard `vite` type dep. */
14
- interface LuxUiVitePlugin {
15
- readonly name: string;
16
- readonly config: () => {
17
- define: Record<string, string>;
18
- resolve: {
19
- alias: Record<string, string>;
20
- dedupe: Array<string>;
21
- };
22
- optimizeDeps: {
23
- include: Array<string>;
24
- };
25
- };
26
- }
27
- declare function luxUi(options?: LuxUiViteOptions): LuxUiVitePlugin;
28
-
29
- export { type LuxUiViteOptions, luxUi };
@@ -1,59 +0,0 @@
1
- declare const LUX_BRAND: {
2
- readonly lux: "#7000FF";
3
- readonly zoo: "#6C5EFB";
4
- readonly hanzo: "#EA580C";
5
- readonly pars: "#1C3879";
6
- readonly bootnode: "#3B82F6";
7
- };
8
- declare const PARS_GOLD = "#C8A45C";
9
- type LuxBrand = keyof typeof LUX_BRAND;
10
- type Org = LuxBrand;
11
- interface OrgIdentity {
12
- /** Org id — also the gui child-theme suffix (`dark_lux`, `dark_zoo`, …). */
13
- readonly org: Org;
14
- /** Display name for chrome (header, title, sign-in copy). */
15
- readonly name: string;
16
- /** Canonical apex domain. */
17
- readonly domain: string;
18
- /** IAM/OIDC host. The issuer is `https://` + this. */
19
- readonly iamDomain: string;
20
- /** Brand accent hex — the same value the gui child-theme row is built from. */
21
- readonly accent: string;
22
- /** Foreground used on top of the accent. */
23
- readonly accentForeground: string;
24
- }
25
- declare const ORGS: Readonly<Record<Org, OrgIdentity>>;
26
- declare const DEFAULT_ORG: Org;
27
- interface WhiteLabel extends OrgIdentity {
28
- /** Hostname the identity was resolved from, port stripped, lowercased. */
29
- readonly host: string;
30
- /** App slug taken from the hostname — `mpc.lux.cloud` → `mpc`. */
31
- readonly app: string;
32
- /** gui child-theme row to hand GuiProvider — `dark_lux`, `dark_zoo`, … */
33
- readonly theme: string;
34
- /** OIDC issuer — `https://lux.id`. */
35
- readonly issuer: string;
36
- /** IAM client id, `<org>-<app>` per the fleet naming scheme — `lux-mpc`. */
37
- readonly clientId: string;
38
- }
39
- /**
40
- * Resolve the full white-label identity from a Host header value.
41
- *
42
- * Pure and total: an unknown or missing host falls back to the Lux row rather
43
- * than throwing, so a preview URL or a health probe never blanks the UI.
44
- *
45
- * resolveWhiteLabel('mpc.lux.network') // org lux, clientId lux-mpc, issuer https://lux.id
46
- * resolveWhiteLabel('zoo.cloud') // org zoo, clientId zoo-cloud, issuer https://zoolabs.id
47
- * resolveWhiteLabel('cloud.pars.network') // org pars, clientId pars-app, issuer https://pars.id
48
- */
49
- declare function resolveWhiteLabel(host?: string | null): WhiteLabel;
50
- /**
51
- * The current host in a browser, or '' during SSR / prerender.
52
- * Server code must pass `req.headers.host` to resolveWhiteLabel explicitly —
53
- * there is no ambient request here, and guessing would bake in a brand.
54
- */
55
- declare function currentHost(): string;
56
- /** Identity for the org id itself, for the rare surface that is not host-routed. */
57
- declare function orgIdentity(org: Org): OrgIdentity;
58
-
59
- export { DEFAULT_ORG, LUX_BRAND, type LuxBrand, type Org, type OrgIdentity, PARS_GOLD, type WhiteLabel, currentHost, orgIdentity, ORGS as orgs, resolveWhiteLabel };