@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.
- package/dist/accordion.d.cts +74 -0
- package/dist/accordion.d.ts +74 -0
- package/dist/alert.cjs +3 -7
- package/dist/alert.d.cts +30 -0
- package/dist/alert.d.ts +30 -0
- package/dist/alert.js +3 -7
- package/dist/auth.cjs +481 -0
- package/dist/auth.d.cts +80 -0
- package/dist/auth.d.ts +80 -0
- package/dist/auth.js +456 -0
- package/dist/avatar.d.cts +25 -0
- package/dist/avatar.d.ts +25 -0
- package/dist/badge.cjs +4 -8
- package/dist/badge.d.cts +19 -0
- package/dist/badge.d.ts +19 -0
- package/dist/badge.js +4 -8
- package/dist/bank.d.cts +83 -0
- package/dist/bank.d.ts +83 -0
- package/dist/button.cjs +3 -7
- package/dist/button.d.cts +55 -0
- package/dist/button.d.ts +55 -0
- package/dist/button.js +3 -7
- package/dist/checkbox.d.cts +32 -0
- package/dist/checkbox.d.ts +32 -0
- package/dist/chrome.d.cts +93 -0
- package/dist/chrome.d.ts +93 -0
- package/dist/close-button.d.cts +9 -0
- package/dist/close-button.d.ts +9 -0
- package/dist/collapsible.cjs +3 -7
- package/dist/collapsible.d.cts +23 -0
- package/dist/collapsible.d.ts +23 -0
- package/dist/collapsible.js +3 -7
- package/dist/color-mode.d.cts +25 -0
- package/dist/color-mode.d.ts +25 -0
- package/dist/dialog.d.cts +118 -0
- package/dist/dialog.d.ts +118 -0
- package/dist/drawer.d.cts +36 -0
- package/dist/drawer.d.ts +36 -0
- package/dist/empty-state.d.cts +13 -0
- package/dist/empty-state.d.ts +13 -0
- package/dist/expiration-selector.d.cts +16 -0
- package/dist/expiration-selector.d.ts +16 -0
- package/dist/field.d.cts +24 -0
- package/dist/field.d.ts +24 -0
- package/dist/greeks-display.d.cts +14 -0
- package/dist/greeks-display.d.ts +14 -0
- package/dist/gui.d.cts +2 -0
- package/dist/gui.d.ts +2 -0
- package/dist/heading.d.cts +10 -0
- package/dist/heading.d.ts +10 -0
- package/dist/iam.d.cts +65 -0
- package/dist/iam.d.ts +65 -0
- package/dist/icon-button.cjs +3 -7
- package/dist/icon-button.d.cts +33 -0
- package/dist/icon-button.d.ts +33 -0
- package/dist/icon-button.js +3 -7
- package/dist/icons.cjs +0 -1
- package/dist/icons.d.cts +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.js +0 -1
- package/dist/identity.d.cts +64 -0
- package/dist/identity.d.ts +64 -0
- package/dist/image.cjs +3 -7
- package/dist/image.d.cts +57 -0
- package/dist/image.d.ts +57 -0
- package/dist/image.js +3 -7
- package/dist/index.cjs +9 -8
- package/dist/index.d.cts +64 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +9 -9
- package/dist/input-group.d.cts +17 -0
- package/dist/input-group.d.ts +17 -0
- package/dist/input.d.cts +17 -0
- package/dist/input.d.ts +17 -0
- package/dist/link.cjs +3 -7
- package/dist/link.d.cts +37 -0
- package/dist/link.d.ts +37 -0
- package/dist/link.js +3 -7
- package/dist/lux.config.d.cts +433 -0
- package/dist/lux.config.d.ts +433 -0
- package/dist/menu.d.cts +84 -0
- package/dist/menu.d.ts +84 -0
- package/dist/next.cjs +11 -1
- package/dist/next.d.cts +32 -0
- package/dist/next.d.ts +32 -0
- package/dist/next.js +11 -1
- package/dist/option-chain.d.cts +37 -0
- package/dist/option-chain.d.ts +37 -0
- package/dist/option-position.d.cts +29 -0
- package/dist/option-position.d.ts +29 -0
- package/dist/pin-input.d.cts +25 -0
- package/dist/pin-input.d.ts +25 -0
- package/dist/pnl-diagram.d.cts +11 -0
- package/dist/pnl-diagram.d.ts +11 -0
- package/dist/popover.d.cts +73 -0
- package/dist/popover.d.ts +73 -0
- package/dist/progress-circle.d.cts +47 -0
- package/dist/progress-circle.d.ts +47 -0
- package/dist/progress.d.cts +28 -0
- package/dist/progress.d.ts +28 -0
- package/dist/provider.d.cts +25 -0
- package/dist/provider.d.ts +25 -0
- package/dist/radio.d.cts +53 -0
- package/dist/radio.d.ts +53 -0
- package/dist/rating.d.cts +14 -0
- package/dist/rating.d.ts +14 -0
- package/dist/select.cjs +3 -7
- package/dist/select.d.cts +130 -0
- package/dist/select.d.ts +130 -0
- package/dist/select.js +3 -7
- package/dist/separator.d.cts +13 -0
- package/dist/separator.d.ts +13 -0
- package/dist/skeleton.cjs +8 -7
- package/dist/skeleton.d.cts +76 -0
- package/dist/skeleton.d.ts +76 -0
- package/dist/skeleton.js +8 -8
- package/dist/slider.d.cts +24 -0
- package/dist/slider.d.ts +24 -0
- package/dist/strategy-builder.d.cts +26 -0
- package/dist/strategy-builder.d.ts +26 -0
- package/dist/switch.d.cts +27 -0
- package/dist/switch.d.ts +27 -0
- package/dist/table.cjs +3 -7
- package/dist/table.d.cts +107 -0
- package/dist/table.d.ts +107 -0
- package/dist/table.js +3 -7
- package/dist/tabs.d.cts +78 -0
- package/dist/tabs.d.ts +78 -0
- package/dist/tag.cjs +4 -8
- package/dist/tag.d.cts +21 -0
- package/dist/tag.d.ts +21 -0
- package/dist/tag.js +4 -8
- package/dist/textarea.d.cts +13 -0
- package/dist/textarea.d.ts +13 -0
- package/dist/toaster.d.cts +29 -0
- package/dist/toaster.d.ts +29 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.cts +38 -0
- package/dist/tooltip.d.ts +38 -0
- package/dist/tooltip.js +1 -1
- package/dist/use-narrow.d.cts +12 -0
- package/dist/use-narrow.d.ts +12 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/vite.cjs +4 -3
- package/dist/vite.d.cts +29 -0
- package/dist/vite.d.ts +29 -0
- package/dist/vite.js +4 -3
- package/dist/white-label.d.cts +59 -0
- package/dist/white-label.d.ts +59 -0
- package/package.json +12 -2
- package/src/auth.tsx +198 -0
- package/src/engine.ts +24 -3
- package/src/index.ts +1 -1
- package/src/next.ts +10 -0
- package/src/skeleton.tsx +36 -7
- package/src/tooltip.tsx +13 -5
- package/src/vite.ts +4 -9
- package/tokens.css +828 -317
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { LinkProps } from './link.cjs';
|
|
4
|
+
|
|
5
|
+
interface CollapsibleDetailsProps extends LinkProps {
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
id?: string;
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
text?: [string, string];
|
|
10
|
+
noScroll?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const CollapsibleDetails: (props: CollapsibleDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
interface CollapsibleListProps<T> extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
14
|
+
items: Array<T>;
|
|
15
|
+
renderItem: (item: T, index: number) => React__default.ReactNode;
|
|
16
|
+
triggerProps?: LinkProps;
|
|
17
|
+
cutLength?: number;
|
|
18
|
+
text?: [React__default.ReactNode, React__default.ReactNode];
|
|
19
|
+
defaultExpanded?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const CollapsibleList: <T>(props: CollapsibleListProps<T>) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
export { CollapsibleDetails, type CollapsibleDetailsProps, CollapsibleList };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { LinkProps } from './link.js';
|
|
4
|
+
|
|
5
|
+
interface CollapsibleDetailsProps extends LinkProps {
|
|
6
|
+
children: React__default.ReactNode;
|
|
7
|
+
id?: string;
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
text?: [string, string];
|
|
10
|
+
noScroll?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const CollapsibleDetails: (props: CollapsibleDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
interface CollapsibleListProps<T> extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
14
|
+
items: Array<T>;
|
|
15
|
+
renderItem: (item: T, index: number) => React__default.ReactNode;
|
|
16
|
+
triggerProps?: LinkProps;
|
|
17
|
+
cutLength?: number;
|
|
18
|
+
text?: [React__default.ReactNode, React__default.ReactNode];
|
|
19
|
+
defaultExpanded?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const CollapsibleList: <T>(props: CollapsibleListProps<T>) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
export { CollapsibleDetails, type CollapsibleDetailsProps, CollapsibleList };
|
package/dist/collapsible.js
CHANGED
|
@@ -124,11 +124,7 @@ function stripShims(props) {
|
|
|
124
124
|
for (const k of SHIM_PROPS) delete out[k];
|
|
125
125
|
return out;
|
|
126
126
|
}
|
|
127
|
-
var SKELETON_CLASSES =
|
|
128
|
-
"animate-skeleton-shimmer rounded-sm",
|
|
129
|
-
"bg-[linear-gradient(90deg,var(--color-skeleton-start)_0%,var(--color-skeleton-end)_50%,var(--color-skeleton-start)_100%)]",
|
|
130
|
-
"bg-[length:200%_100%]"
|
|
131
|
-
].join(" ");
|
|
127
|
+
var SKELETON_CLASSES = "lux-skeleton rounded-sm";
|
|
132
128
|
var HIDE_BELOW_MAP = { lg: "lg:hidden", md: "md:hidden", sm: "sm:hidden" };
|
|
133
129
|
var Skeleton = React3.forwardRef(
|
|
134
130
|
function Skeleton2(props, ref) {
|
|
@@ -148,7 +144,7 @@ var Skeleton = React3.forwardRef(
|
|
|
148
144
|
{
|
|
149
145
|
ref,
|
|
150
146
|
"data-loading": true,
|
|
151
|
-
className: cn(SKELETON_CLASSES, "
|
|
147
|
+
className: cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
|
|
152
148
|
style: mergedStyle,
|
|
153
149
|
...htmlRest,
|
|
154
150
|
children
|
|
@@ -160,7 +156,7 @@ var Skeleton = React3.forwardRef(
|
|
|
160
156
|
{
|
|
161
157
|
ref,
|
|
162
158
|
"data-loading": true,
|
|
163
|
-
className: cn(SKELETON_CLASSES, children ? "
|
|
159
|
+
className: cn(SKELETON_CLASSES, children ? "[&_*]:invisible" : "min-h-5", cls),
|
|
164
160
|
style: mergedStyle,
|
|
165
161
|
...htmlRest,
|
|
166
162
|
children
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type ColorMode = 'light' | 'dark';
|
|
5
|
+
interface ColorModeContextValue {
|
|
6
|
+
readonly colorMode: ColorMode;
|
|
7
|
+
readonly setColorMode: (mode: string) => void;
|
|
8
|
+
readonly toggleColorMode: () => void;
|
|
9
|
+
}
|
|
10
|
+
interface ColorModeProviderProps {
|
|
11
|
+
readonly children?: React.ReactNode;
|
|
12
|
+
/** Initial/default color mode. Defaults to 'light'. */
|
|
13
|
+
readonly defaultTheme?: string;
|
|
14
|
+
/** Controlled color mode value from an external theme provider. */
|
|
15
|
+
readonly value?: string;
|
|
16
|
+
/** Called when the color mode changes. */
|
|
17
|
+
readonly onValueChange?: (mode: string) => void;
|
|
18
|
+
/** Any extra props are accepted and ignored for compat with next-themes ThemeProviderProps. */
|
|
19
|
+
readonly [key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
declare function ColorModeProvider(props: ColorModeProviderProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function useColorMode(): ColorModeContextValue;
|
|
23
|
+
declare function useColorModeValue<T>(light: T, dark: T): T;
|
|
24
|
+
|
|
25
|
+
export { type ColorMode, ColorModeProvider, type ColorModeProviderProps, useColorMode, useColorModeValue };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type ColorMode = 'light' | 'dark';
|
|
5
|
+
interface ColorModeContextValue {
|
|
6
|
+
readonly colorMode: ColorMode;
|
|
7
|
+
readonly setColorMode: (mode: string) => void;
|
|
8
|
+
readonly toggleColorMode: () => void;
|
|
9
|
+
}
|
|
10
|
+
interface ColorModeProviderProps {
|
|
11
|
+
readonly children?: React.ReactNode;
|
|
12
|
+
/** Initial/default color mode. Defaults to 'light'. */
|
|
13
|
+
readonly defaultTheme?: string;
|
|
14
|
+
/** Controlled color mode value from an external theme provider. */
|
|
15
|
+
readonly value?: string;
|
|
16
|
+
/** Called when the color mode changes. */
|
|
17
|
+
readonly onValueChange?: (mode: string) => void;
|
|
18
|
+
/** Any extra props are accepted and ignored for compat with next-themes ThemeProviderProps. */
|
|
19
|
+
readonly [key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
declare function ColorModeProvider(props: ColorModeProviderProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function useColorMode(): ColorModeContextValue;
|
|
23
|
+
declare function useColorModeValue<T>(light: T, dark: T): T;
|
|
24
|
+
|
|
25
|
+
export { type ColorMode, ColorModeProvider, type ColorModeProviderProps, useColorMode, useColorModeValue };
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
type DialogSize = 'sm' | 'md' | 'full' | 'cover';
|
|
7
|
+
/**
|
|
8
|
+
* Responsive size expressed as a plain value or a breakpoint map.
|
|
9
|
+
* Mirrors the Chakra `size={{ lgDown: 'full', lg: 'md' }}` pattern.
|
|
10
|
+
* Responsive behavior is implemented via Tailwind responsive variants at
|
|
11
|
+
* the CSS-class level (see `sizeClasses` helper below).
|
|
12
|
+
*/
|
|
13
|
+
type ResponsiveSize = DialogSize | {
|
|
14
|
+
base?: DialogSize;
|
|
15
|
+
lgDown?: DialogSize;
|
|
16
|
+
lg?: DialogSize;
|
|
17
|
+
};
|
|
18
|
+
interface DialogRootProps {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (details: {
|
|
23
|
+
open: boolean;
|
|
24
|
+
}) => void;
|
|
25
|
+
size?: ResponsiveSize;
|
|
26
|
+
/** Accepted for API compat but not implemented -- animations are CSS-only. */
|
|
27
|
+
motionPreset?: string;
|
|
28
|
+
modal?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare const DialogRoot: React.FC<DialogRootProps>;
|
|
31
|
+
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
portalled?: boolean;
|
|
33
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
34
|
+
backdrop?: boolean;
|
|
35
|
+
paddingTop?: number | string;
|
|
36
|
+
}
|
|
37
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
39
|
+
}
|
|
40
|
+
declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
startElement?: React.ReactNode;
|
|
43
|
+
onBackToClick?: () => void;
|
|
44
|
+
}
|
|
45
|
+
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
47
|
+
pt?: number | string;
|
|
48
|
+
display?: string;
|
|
49
|
+
flexDir?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
53
|
+
}
|
|
54
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
|
|
56
|
+
open?: boolean | undefined;
|
|
57
|
+
unstyled?: boolean | undefined;
|
|
58
|
+
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
59
|
+
fullscreen?: boolean | undefined;
|
|
60
|
+
}>, "forceMount" | "scope"> & {
|
|
61
|
+
forceMount?: boolean;
|
|
62
|
+
} & {
|
|
63
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
64
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
65
|
+
forceMount?: boolean;
|
|
66
|
+
} & {
|
|
67
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
68
|
+
}, _hanzogui_web.StackStyleBase, {
|
|
69
|
+
open?: boolean | undefined;
|
|
70
|
+
unstyled?: boolean | undefined;
|
|
71
|
+
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
72
|
+
fullscreen?: boolean | undefined;
|
|
73
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
74
|
+
declare const DialogTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
75
|
+
unstyled?: boolean | undefined;
|
|
76
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
77
|
+
}>, "scope"> & {
|
|
78
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
79
|
+
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
80
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
81
|
+
}, _hanzogui_web.TextStylePropsBase, {
|
|
82
|
+
unstyled?: boolean | undefined;
|
|
83
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
84
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
85
|
+
declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
86
|
+
unstyled?: boolean | undefined;
|
|
87
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
88
|
+
}>, "scope"> & {
|
|
89
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
90
|
+
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
91
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
92
|
+
}, _hanzogui_web.TextStylePropsBase, {
|
|
93
|
+
unstyled?: boolean | undefined;
|
|
94
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
95
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
96
|
+
interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
97
|
+
}
|
|
98
|
+
declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
|
|
99
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
100
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
101
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
102
|
+
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
103
|
+
/**
|
|
104
|
+
* `DialogActionTrigger` renders its child and closes the dialog on click.
|
|
105
|
+
* This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
|
|
106
|
+
* children in a close action.
|
|
107
|
+
*/
|
|
108
|
+
declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
|
|
109
|
+
displayWhenAdapted?: boolean;
|
|
110
|
+
} & {
|
|
111
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
112
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
113
|
+
displayWhenAdapted?: boolean;
|
|
114
|
+
} & {
|
|
115
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
116
|
+
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
117
|
+
|
|
118
|
+
export { DialogActionTrigger, DialogBackdrop, DialogBody, type DialogBodyProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps };
|
package/dist/dialog.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
type DialogSize = 'sm' | 'md' | 'full' | 'cover';
|
|
7
|
+
/**
|
|
8
|
+
* Responsive size expressed as a plain value or a breakpoint map.
|
|
9
|
+
* Mirrors the Chakra `size={{ lgDown: 'full', lg: 'md' }}` pattern.
|
|
10
|
+
* Responsive behavior is implemented via Tailwind responsive variants at
|
|
11
|
+
* the CSS-class level (see `sizeClasses` helper below).
|
|
12
|
+
*/
|
|
13
|
+
type ResponsiveSize = DialogSize | {
|
|
14
|
+
base?: DialogSize;
|
|
15
|
+
lgDown?: DialogSize;
|
|
16
|
+
lg?: DialogSize;
|
|
17
|
+
};
|
|
18
|
+
interface DialogRootProps {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
defaultOpen?: boolean;
|
|
22
|
+
onOpenChange?: (details: {
|
|
23
|
+
open: boolean;
|
|
24
|
+
}) => void;
|
|
25
|
+
size?: ResponsiveSize;
|
|
26
|
+
/** Accepted for API compat but not implemented -- animations are CSS-only. */
|
|
27
|
+
motionPreset?: string;
|
|
28
|
+
modal?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare const DialogRoot: React.FC<DialogRootProps>;
|
|
31
|
+
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
portalled?: boolean;
|
|
33
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
34
|
+
backdrop?: boolean;
|
|
35
|
+
paddingTop?: number | string;
|
|
36
|
+
}
|
|
37
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
39
|
+
}
|
|
40
|
+
declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
startElement?: React.ReactNode;
|
|
43
|
+
onBackToClick?: () => void;
|
|
44
|
+
}
|
|
45
|
+
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
47
|
+
pt?: number | string;
|
|
48
|
+
display?: string;
|
|
49
|
+
flexDir?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
53
|
+
}
|
|
54
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {
|
|
56
|
+
open?: boolean | undefined;
|
|
57
|
+
unstyled?: boolean | undefined;
|
|
58
|
+
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
59
|
+
fullscreen?: boolean | undefined;
|
|
60
|
+
}>, "forceMount" | "scope"> & {
|
|
61
|
+
forceMount?: boolean;
|
|
62
|
+
} & {
|
|
63
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
64
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
65
|
+
forceMount?: boolean;
|
|
66
|
+
} & {
|
|
67
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
68
|
+
}, _hanzogui_web.StackStyleBase, {
|
|
69
|
+
open?: boolean | undefined;
|
|
70
|
+
unstyled?: boolean | undefined;
|
|
71
|
+
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
72
|
+
fullscreen?: boolean | undefined;
|
|
73
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
74
|
+
declare const DialogTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
75
|
+
unstyled?: boolean | undefined;
|
|
76
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
77
|
+
}>, "scope"> & {
|
|
78
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
79
|
+
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
80
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
81
|
+
}, _hanzogui_web.TextStylePropsBase, {
|
|
82
|
+
unstyled?: boolean | undefined;
|
|
83
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
84
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
85
|
+
declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
86
|
+
unstyled?: boolean | undefined;
|
|
87
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
88
|
+
}>, "scope"> & {
|
|
89
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
90
|
+
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
91
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
92
|
+
}, _hanzogui_web.TextStylePropsBase, {
|
|
93
|
+
unstyled?: boolean | undefined;
|
|
94
|
+
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
95
|
+
}, _hanzogui_web.StaticConfigPublic>;
|
|
96
|
+
interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
97
|
+
}
|
|
98
|
+
declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
|
|
99
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
100
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
101
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
102
|
+
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
103
|
+
/**
|
|
104
|
+
* `DialogActionTrigger` renders its child and closes the dialog on click.
|
|
105
|
+
* This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
|
|
106
|
+
* children in a close action.
|
|
107
|
+
*/
|
|
108
|
+
declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
|
|
109
|
+
displayWhenAdapted?: boolean;
|
|
110
|
+
} & {
|
|
111
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
112
|
+
}, _hanzogui_web.GuiElement, _hanzogui_core.RNViewNonStyleProps & {
|
|
113
|
+
displayWhenAdapted?: boolean;
|
|
114
|
+
} & {
|
|
115
|
+
scope?: _hanzo_gui.DialogScopes;
|
|
116
|
+
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
117
|
+
|
|
118
|
+
export { DialogActionTrigger, DialogBackdrop, DialogBody, type DialogBodyProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
interface DrawerRootProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (details: {
|
|
10
|
+
open: boolean;
|
|
11
|
+
}) => void;
|
|
12
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
13
|
+
initialFocusEl?: (() => HTMLElement | null) | React.RefObject<HTMLElement>;
|
|
14
|
+
lazyMount?: boolean;
|
|
15
|
+
unmountOnExit?: boolean;
|
|
16
|
+
modal?: boolean;
|
|
17
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
18
|
+
}
|
|
19
|
+
declare const DrawerRoot: (props: DrawerRootProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
interface DrawerContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
21
|
+
portalled?: boolean;
|
|
22
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
23
|
+
offset?: string | number;
|
|
24
|
+
backdrop?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
declare const DrawerTrigger: (props: React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger>) => react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const DrawerBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<RadixDialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
33
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
+
declare const DrawerActionTrigger: React.ForwardRefExoticComponent<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
|
|
36
|
+
export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger };
|
package/dist/drawer.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
interface DrawerRootProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (details: {
|
|
10
|
+
open: boolean;
|
|
11
|
+
}) => void;
|
|
12
|
+
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
13
|
+
initialFocusEl?: (() => HTMLElement | null) | React.RefObject<HTMLElement>;
|
|
14
|
+
lazyMount?: boolean;
|
|
15
|
+
unmountOnExit?: boolean;
|
|
16
|
+
modal?: boolean;
|
|
17
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
18
|
+
}
|
|
19
|
+
declare const DrawerRoot: (props: DrawerRootProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
interface DrawerContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
21
|
+
portalled?: boolean;
|
|
22
|
+
portalRef?: React.RefObject<HTMLElement>;
|
|
23
|
+
offset?: string | number;
|
|
24
|
+
backdrop?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
declare const DrawerTrigger: (props: React.ComponentPropsWithoutRef<typeof RadixDialog.Trigger>) => react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const DrawerBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<RadixDialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
33
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
+
declare const DrawerActionTrigger: React.ForwardRefExoticComponent<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
|
|
36
|
+
export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type EmptyStateType = 'query' | 'stats' | 'coming_soon';
|
|
4
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
term?: string;
|
|
8
|
+
type?: EmptyStateType;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
export { EmptyState, type EmptyStateProps, type EmptyStateType };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type EmptyStateType = 'query' | 'stats' | 'coming_soon';
|
|
4
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
term?: string;
|
|
8
|
+
type?: EmptyStateType;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
export { EmptyState, type EmptyStateProps, type EmptyStateType };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ExpirationOption {
|
|
4
|
+
date: string;
|
|
5
|
+
dte: number;
|
|
6
|
+
type: 'weekly' | 'monthly' | 'quarterly';
|
|
7
|
+
}
|
|
8
|
+
interface ExpirationSelectorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
9
|
+
readonly expirations: ExpirationOption[];
|
|
10
|
+
readonly selected: string;
|
|
11
|
+
readonly onSelect: (date: string) => void;
|
|
12
|
+
readonly showGroups?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const ExpirationSelector: React.ForwardRefExoticComponent<ExpirationSelectorProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export { type ExpirationOption, ExpirationSelector, type ExpirationSelectorProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ExpirationOption {
|
|
4
|
+
date: string;
|
|
5
|
+
dte: number;
|
|
6
|
+
type: 'weekly' | 'monthly' | 'quarterly';
|
|
7
|
+
}
|
|
8
|
+
interface ExpirationSelectorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
9
|
+
readonly expirations: ExpirationOption[];
|
|
10
|
+
readonly selected: string;
|
|
11
|
+
readonly onSelect: (date: string) => void;
|
|
12
|
+
readonly showGroups?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const ExpirationSelector: React.ForwardRefExoticComponent<ExpirationSelectorProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export { type ExpirationOption, ExpirationSelector, type ExpirationSelectorProps };
|
package/dist/field.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InputProps } from './input.cjs';
|
|
3
|
+
import { InputGroupProps } from './input-group.cjs';
|
|
4
|
+
|
|
5
|
+
interface FieldProps {
|
|
6
|
+
readonly label?: React.ReactNode;
|
|
7
|
+
readonly helperText?: React.ReactNode;
|
|
8
|
+
readonly errorText?: React.ReactNode;
|
|
9
|
+
readonly optionalText?: React.ReactNode;
|
|
10
|
+
readonly children: React.ReactElement<InputProps> | React.ReactElement<InputGroupProps>;
|
|
11
|
+
readonly size?: 'sm' | 'md' | 'lg' | '2xl';
|
|
12
|
+
readonly required?: boolean;
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
|
+
readonly readOnly?: boolean;
|
|
15
|
+
readonly invalid?: boolean;
|
|
16
|
+
readonly floating?: boolean;
|
|
17
|
+
readonly bgColor?: string | Record<string, string>;
|
|
18
|
+
readonly id?: string;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
readonly style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
export { Field, type FieldProps };
|
package/dist/field.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InputProps } from './input.js';
|
|
3
|
+
import { InputGroupProps } from './input-group.js';
|
|
4
|
+
|
|
5
|
+
interface FieldProps {
|
|
6
|
+
readonly label?: React.ReactNode;
|
|
7
|
+
readonly helperText?: React.ReactNode;
|
|
8
|
+
readonly errorText?: React.ReactNode;
|
|
9
|
+
readonly optionalText?: React.ReactNode;
|
|
10
|
+
readonly children: React.ReactElement<InputProps> | React.ReactElement<InputGroupProps>;
|
|
11
|
+
readonly size?: 'sm' | 'md' | 'lg' | '2xl';
|
|
12
|
+
readonly required?: boolean;
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
|
+
readonly readOnly?: boolean;
|
|
15
|
+
readonly invalid?: boolean;
|
|
16
|
+
readonly floating?: boolean;
|
|
17
|
+
readonly bgColor?: string | Record<string, string>;
|
|
18
|
+
readonly id?: string;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
readonly style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
export { Field, type FieldProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface GreeksDisplayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
readonly delta: number;
|
|
5
|
+
readonly gamma: number;
|
|
6
|
+
readonly theta: number;
|
|
7
|
+
readonly vega: number;
|
|
8
|
+
readonly rho?: number;
|
|
9
|
+
readonly iv?: number;
|
|
10
|
+
readonly compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const GreeksDisplay: React.ForwardRefExoticComponent<GreeksDisplayProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { GreeksDisplay, type GreeksDisplayProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface GreeksDisplayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
readonly delta: number;
|
|
5
|
+
readonly gamma: number;
|
|
6
|
+
readonly theta: number;
|
|
7
|
+
readonly vega: number;
|
|
8
|
+
readonly rho?: number;
|
|
9
|
+
readonly iv?: number;
|
|
10
|
+
readonly compact?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const GreeksDisplay: React.ForwardRefExoticComponent<GreeksDisplayProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export { GreeksDisplay, type GreeksDisplayProps };
|
package/dist/gui.d.cts
ADDED
package/dist/gui.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface HeadingProps extends React__default.ComponentPropsWithoutRef<'h1'> {
|
|
4
|
+
level?: '1' | '2' | '3';
|
|
5
|
+
mb?: number | string;
|
|
6
|
+
size?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
|
|
10
|
+
export { Heading, type HeadingProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface HeadingProps extends React__default.ComponentPropsWithoutRef<'h1'> {
|
|
4
|
+
level?: '1' | '2' | '3';
|
|
5
|
+
mb?: number | string;
|
|
6
|
+
size?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
|
|
10
|
+
export { Heading, type HeadingProps };
|