@luxfi/ui 7.4.14 → 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.
- package/LICENSE.md +21 -0
- package/dist/accordion.d.ts +10 -12
- package/dist/accordion.d.ts.map +1 -0
- package/dist/alert.cjs +7 -11
- package/dist/alert.d.ts +4 -5
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +1 -5
- package/dist/auth.d.ts +11 -13
- package/dist/auth.d.ts.map +1 -0
- package/dist/avatar.d.ts +5 -6
- package/dist/avatar.d.ts.map +1 -0
- package/dist/badge.cjs +7 -11
- package/dist/badge.d.ts +7 -8
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +1 -5
- package/dist/bank.d.ts +38 -43
- package/dist/bank.d.ts.map +1 -0
- package/dist/button.cjs +7 -23
- package/dist/button.d.ts +8 -13
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +2 -17
- package/dist/checkbox.d.ts +6 -7
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/chrome.cjs +4 -8
- package/dist/chrome.d.ts +15 -19
- package/dist/chrome.d.ts.map +1 -0
- package/dist/chrome.js +1 -5
- package/dist/close-button.d.ts +3 -5
- package/dist/close-button.d.ts.map +1 -0
- package/dist/collapsible.cjs +19 -23
- package/dist/collapsible.d.ts +11 -13
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +1 -5
- package/dist/color-mode.d.ts +7 -9
- package/dist/color-mode.d.ts.map +1 -0
- package/dist/dialog.cjs +7 -11
- package/dist/dialog.d.ts +50 -54
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +1 -5
- package/dist/drawer.d.ts +33 -38
- package/dist/drawer.d.ts.map +1 -0
- package/dist/empty-state.d.ts +4 -6
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/engine.d.ts +35 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/expiration-selector.d.ts +4 -6
- package/dist/expiration-selector.d.ts.map +1 -0
- package/dist/field.d.ts +5 -7
- package/dist/field.d.ts.map +1 -0
- package/dist/greeks-display.d.ts +3 -5
- package/dist/greeks-display.d.ts.map +1 -0
- package/dist/gui.d.ts +1 -1
- package/dist/gui.d.ts.map +1 -0
- package/dist/heading.cjs +12 -3
- package/dist/heading.d.ts +4 -6
- package/dist/heading.d.ts.map +1 -0
- package/dist/heading.js +12 -3
- package/dist/iam.d.ts +10 -12
- package/dist/iam.d.ts.map +1 -0
- package/dist/icon-button.cjs +7 -11
- package/dist/icon-button.d.ts +4 -5
- package/dist/icon-button.d.ts.map +1 -0
- package/dist/icon-button.js +1 -5
- package/dist/icons.d.ts +1 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/identity.d.ts +9 -11
- package/dist/identity.d.ts.map +1 -0
- package/dist/image.cjs +8 -12
- package/dist/image.d.ts +10 -11
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +1 -5
- package/dist/index.cjs +89 -91
- package/dist/index.d.ts +86 -60
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -33
- package/dist/ink.d.ts +14 -0
- package/dist/ink.d.ts.map +1 -0
- package/dist/input-group.d.ts +4 -6
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input.cjs +5 -5
- package/dist/input.d.ts +8 -9
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +5 -5
- package/dist/link.cjs +19 -23
- package/dist/link.d.ts +9 -11
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +1 -5
- package/dist/lux.config.cjs +2 -0
- package/dist/lux.config.d.ts +785 -240
- package/dist/lux.config.d.ts.map +1 -0
- package/dist/lux.config.js +2 -0
- package/dist/menu.d.ts +30 -31
- package/dist/menu.d.ts.map +1 -0
- package/dist/next.d.ts +5 -7
- package/dist/next.d.ts.map +1 -0
- package/dist/option-chain.d.ts +6 -8
- package/dist/option-chain.d.ts.map +1 -0
- package/dist/option-position.d.ts +4 -6
- package/dist/option-position.d.ts.map +1 -0
- package/dist/pin-input.cjs +1 -1
- package/dist/pin-input.d.ts +3 -5
- package/dist/pin-input.d.ts.map +1 -0
- package/dist/pin-input.js +1 -1
- package/dist/pnl-diagram.d.ts +5 -6
- package/dist/pnl-diagram.d.ts.map +1 -0
- package/dist/popover.cjs +9 -13
- package/dist/popover.d.ts +24 -25
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +1 -5
- package/dist/progress-circle.cjs +2 -6
- package/dist/progress-circle.d.ts +8 -9
- package/dist/progress-circle.d.ts.map +1 -0
- package/dist/progress-circle.js +1 -5
- package/dist/progress.d.ts +3 -4
- package/dist/progress.d.ts.map +1 -0
- package/dist/provider.cjs +2 -0
- package/dist/provider.d.ts +8 -10
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +2 -0
- package/dist/radio.d.ts +6 -7
- package/dist/radio.d.ts.map +1 -0
- package/dist/rating.d.ts +3 -5
- package/dist/rating.d.ts.map +1 -0
- package/dist/select.cjs +16 -20
- package/dist/select.d.ts +38 -41
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +1 -5
- package/dist/separator.d.ts +5 -6
- package/dist/separator.d.ts.map +1 -0
- package/dist/skeleton.cjs +7 -11
- package/dist/skeleton.d.ts +9 -12
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +1 -5
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +3 -5
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +1 -1
- package/dist/strategy-builder.d.ts +6 -8
- package/dist/strategy-builder.d.ts.map +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +3 -5
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.js +1 -1
- package/dist/table.cjs +30 -34
- package/dist/table.d.ts +23 -25
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +1 -5
- package/dist/tabs.d.ts +12 -13
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tag.cjs +7 -11
- package/dist/tag.d.ts +4 -5
- package/dist/tag.d.ts.map +1 -0
- package/dist/tag.js +1 -5
- package/dist/textarea.cjs +10 -10
- package/dist/textarea.d.ts +5 -6
- package/dist/textarea.d.ts.map +1 -0
- package/dist/textarea.js +10 -10
- package/dist/toaster.d.ts +4 -5
- package/dist/toaster.d.ts.map +1 -0
- package/dist/tooltip.d.ts +3 -5
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/use-narrow.d.ts +6 -7
- package/dist/use-narrow.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils.cjs +6 -7
- package/dist/utils.d.ts +13 -5
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +1 -9
- package/dist/vite.d.ts +3 -3
- package/dist/vite.d.ts.map +1 -0
- package/dist/white-label.d.ts +12 -12
- package/dist/white-label.d.ts.map +1 -0
- package/package.json +32 -26
- package/src/button.tsx +0 -18
- package/src/heading.tsx +12 -3
- package/src/index.ts +0 -1
- package/src/input.tsx +6 -6
- package/src/lux.config.ts +19 -0
- package/src/pin-input.tsx +1 -1
- package/src/slider.tsx +1 -1
- package/src/switch.tsx +1 -1
- package/src/textarea.tsx +6 -6
- package/src/utils/cn.ts +3 -7
- package/src/utils.ts +12 -6
- package/tokens.css +11 -0
- package/dist/accordion.d.cts +0 -41
- package/dist/alert.d.cts +0 -30
- package/dist/auth.d.cts +0 -80
- package/dist/avatar.d.cts +0 -25
- package/dist/badge.d.cts +0 -19
- package/dist/bank.d.cts +0 -83
- package/dist/button.d.cts +0 -55
- package/dist/checkbox.d.cts +0 -32
- package/dist/chrome.d.cts +0 -93
- package/dist/close-button.d.cts +0 -9
- package/dist/collapsible.d.cts +0 -24
- package/dist/color-mode.d.cts +0 -25
- package/dist/dialog.d.cts +0 -118
- package/dist/drawer.d.cts +0 -69
- package/dist/empty-state.d.cts +0 -13
- package/dist/expiration-selector.d.cts +0 -16
- package/dist/field.d.cts +0 -23
- package/dist/greeks-display.d.cts +0 -14
- package/dist/gui.d.cts +0 -2
- package/dist/heading.d.cts +0 -8
- package/dist/iam.d.cts +0 -65
- package/dist/icon-button.d.cts +0 -37
- package/dist/icons.d.cts +0 -1
- package/dist/identity.d.cts +0 -64
- package/dist/image.d.cts +0 -57
- package/dist/index.d.cts +0 -60
- package/dist/input-group.d.cts +0 -17
- package/dist/input.d.cts +0 -37
- package/dist/link.d.cts +0 -37
- package/dist/lux.config.d.cts +0 -433
- package/dist/menu.d.cts +0 -68
- package/dist/next.d.cts +0 -32
- package/dist/option-chain.d.cts +0 -37
- package/dist/option-position.d.cts +0 -29
- package/dist/pin-input.d.cts +0 -25
- package/dist/pnl-diagram.d.cts +0 -11
- package/dist/popover.d.cts +0 -73
- package/dist/progress-circle.d.cts +0 -47
- package/dist/progress.d.cts +0 -28
- package/dist/provider.d.cts +0 -25
- package/dist/radio.d.cts +0 -53
- package/dist/rating.d.cts +0 -14
- package/dist/select.d.cts +0 -161
- package/dist/separator.d.cts +0 -13
- package/dist/skeleton.d.cts +0 -76
- package/dist/slider.d.cts +0 -24
- package/dist/strategy-builder.d.cts +0 -26
- package/dist/switch.d.cts +0 -27
- package/dist/table.d.cts +0 -107
- package/dist/tabs.d.cts +0 -34
- package/dist/tag.d.cts +0 -21
- package/dist/textarea.d.cts +0 -13
- package/dist/toaster.d.cts +0 -28
- package/dist/tooltip.d.cts +0 -38
- package/dist/use-narrow.d.cts +0 -12
- package/dist/utils.d.cts +0 -5
- package/dist/vite.d.cts +0 -29
- 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:
|
|
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 |
|
|
54
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
59
55
|
fullscreen?: boolean | undefined;
|
|
60
|
-
}>, "
|
|
56
|
+
}>, "forceMount" | "scope"> & {
|
|
61
57
|
forceMount?: boolean;
|
|
62
58
|
} & {
|
|
63
|
-
scope?:
|
|
64
|
-
},
|
|
59
|
+
scope?: import("@hanzo/gui").DialogScopes;
|
|
60
|
+
}, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
|
|
65
61
|
forceMount?: boolean;
|
|
66
62
|
} & {
|
|
67
|
-
scope?:
|
|
68
|
-
},
|
|
63
|
+
scope?: import("@hanzo/gui").DialogScopes;
|
|
64
|
+
}, import("@hanzogui/web").StackStyleBase, {
|
|
69
65
|
open?: boolean | undefined;
|
|
70
66
|
unstyled?: boolean | undefined;
|
|
71
|
-
elevation?: number |
|
|
67
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
72
68
|
fullscreen?: boolean | undefined;
|
|
73
|
-
},
|
|
74
|
-
declare const DialogTitle:
|
|
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?:
|
|
72
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
77
73
|
}>, "scope"> & {
|
|
78
|
-
scope?:
|
|
79
|
-
},
|
|
80
|
-
scope?:
|
|
81
|
-
},
|
|
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?:
|
|
84
|
-
},
|
|
85
|
-
declare const DialogDescription:
|
|
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?:
|
|
83
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
88
84
|
}>, "scope"> & {
|
|
89
|
-
scope?:
|
|
90
|
-
},
|
|
91
|
-
scope?:
|
|
92
|
-
},
|
|
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?:
|
|
95
|
-
},
|
|
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:
|
|
99
|
-
scope?:
|
|
100
|
-
},
|
|
101
|
-
scope?:
|
|
102
|
-
},
|
|
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:
|
|
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?:
|
|
112
|
-
},
|
|
107
|
+
scope?: import("@hanzo/gui").DialogScopes;
|
|
108
|
+
}, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
|
|
113
109
|
displayWhenAdapted?: boolean;
|
|
114
110
|
} & {
|
|
115
|
-
scope?:
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
|
|
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,eA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AC,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 {
|
|
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
|
|
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) =>
|
|
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>) =>
|
|
34
|
-
declare const DrawerHeader: ({ children, ...props }: React.ComponentProps<typeof YStack>) =>
|
|
35
|
-
declare const DrawerBody: ({ children, ...props }: React.ComponentProps<typeof YStack>) =>
|
|
36
|
-
declare const DrawerFooter: ({ children, ...props }: React.ComponentProps<typeof XStack>) =>
|
|
37
|
-
declare const DrawerTitle:
|
|
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?:
|
|
34
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
40
35
|
}>, "scope"> & {
|
|
41
|
-
scope?:
|
|
42
|
-
},
|
|
43
|
-
scope?:
|
|
44
|
-
},
|
|
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?:
|
|
47
|
-
},
|
|
48
|
-
declare const DrawerDescription:
|
|
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?:
|
|
45
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
51
46
|
}>, "scope"> & {
|
|
52
|
-
scope?:
|
|
53
|
-
},
|
|
54
|
-
scope?:
|
|
55
|
-
},
|
|
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?:
|
|
58
|
-
},
|
|
59
|
-
declare const DrawerActionTrigger:
|
|
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?:
|
|
63
|
-
},
|
|
57
|
+
scope?: import("@hanzo/gui").DialogScopes;
|
|
58
|
+
}, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps & {
|
|
64
59
|
displayWhenAdapted?: boolean;
|
|
65
60
|
} & {
|
|
66
|
-
scope?:
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
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,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|
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"}
|
package/dist/engine.d.ts
ADDED
|
@@ -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
|
|
3
|
-
import { InputGroupProps } from './input-group
|
|
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
|
|
@@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@
|
|
|
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
|
-
|
|
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.cjs
CHANGED
|
@@ -12,9 +12,18 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
12
12
|
// src/heading.tsx
|
|
13
13
|
var TAG = { "1": gui.H1, "2": gui.H2, "3": gui.H3 };
|
|
14
14
|
var RAMP = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
|
|
16
|
+
// shared config, and @hanzo/design multiplies `--text-*` by `--type-scale` —
|
|
17
|
+
// so these three lines are what lets a person's type-size setting reach a
|
|
18
|
+
// heading at all. Written as `18` they would render identically today and
|
|
19
|
+
// never move again.
|
|
20
|
+
//
|
|
21
|
+
// lineHeight is deliberately absent: gui derives it from the resolved size,
|
|
22
|
+
// so it scales WITH the text. A fixed 24 next to an adjustable size is how
|
|
23
|
+
// you get 32px text in a 24px box.
|
|
24
|
+
"1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
|
|
25
|
+
"2": { fontSize: "$5", $lg: { fontSize: "$8" } },
|
|
26
|
+
"3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
|
|
18
27
|
};
|
|
19
28
|
var Heading = React__default.default.forwardRef(
|
|
20
29
|
function Heading2({ level, ...rest }, ref) {
|
package/dist/heading.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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/heading.js
CHANGED
|
@@ -6,9 +6,18 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
6
6
|
// src/heading.tsx
|
|
7
7
|
var TAG = { "1": H1, "2": H2, "3": H3 };
|
|
8
8
|
var RAMP = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
|
|
10
|
+
// shared config, and @hanzo/design multiplies `--text-*` by `--type-scale` —
|
|
11
|
+
// so these three lines are what lets a person's type-size setting reach a
|
|
12
|
+
// heading at all. Written as `18` they would render identically today and
|
|
13
|
+
// never move again.
|
|
14
|
+
//
|
|
15
|
+
// lineHeight is deliberately absent: gui derives it from the resolved size,
|
|
16
|
+
// so it scales WITH the text. A fixed 24 next to an adjustable size is how
|
|
17
|
+
// you get 32px text in a 24px box.
|
|
18
|
+
"1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
|
|
19
|
+
"2": { fontSize: "$5", $lg: { fontSize: "$8" } },
|
|
20
|
+
"3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
|
|
12
21
|
};
|
|
13
22
|
var Heading = React.forwardRef(
|
|
14
23
|
function Heading2({ level, ...rest }, ref) {
|
package/dist/iam.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { WhiteLabel } from './white-label
|
|
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,MAA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