@luxfi/ui 7.4.5 → 7.4.6

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 (116) hide show
  1. package/dist/accordion.d.cts +74 -0
  2. package/dist/accordion.d.ts +74 -0
  3. package/dist/alert.d.cts +30 -0
  4. package/dist/alert.d.ts +30 -0
  5. package/dist/avatar.d.cts +25 -0
  6. package/dist/avatar.d.ts +25 -0
  7. package/dist/badge.d.cts +19 -0
  8. package/dist/badge.d.ts +19 -0
  9. package/dist/bank.d.cts +83 -0
  10. package/dist/bank.d.ts +83 -0
  11. package/dist/button.d.cts +55 -0
  12. package/dist/button.d.ts +55 -0
  13. package/dist/checkbox.d.cts +32 -0
  14. package/dist/checkbox.d.ts +32 -0
  15. package/dist/chrome.d.cts +93 -0
  16. package/dist/chrome.d.ts +93 -0
  17. package/dist/close-button.d.cts +9 -0
  18. package/dist/close-button.d.ts +9 -0
  19. package/dist/collapsible.d.cts +23 -0
  20. package/dist/collapsible.d.ts +23 -0
  21. package/dist/color-mode.d.cts +25 -0
  22. package/dist/color-mode.d.ts +25 -0
  23. package/dist/dialog.d.cts +118 -0
  24. package/dist/dialog.d.ts +118 -0
  25. package/dist/drawer.d.cts +36 -0
  26. package/dist/drawer.d.ts +36 -0
  27. package/dist/empty-state.d.cts +13 -0
  28. package/dist/empty-state.d.ts +13 -0
  29. package/dist/expiration-selector.d.cts +16 -0
  30. package/dist/expiration-selector.d.ts +16 -0
  31. package/dist/field.d.cts +24 -0
  32. package/dist/field.d.ts +24 -0
  33. package/dist/greeks-display.d.cts +14 -0
  34. package/dist/greeks-display.d.ts +14 -0
  35. package/dist/gui.d.cts +2 -0
  36. package/dist/gui.d.ts +2 -0
  37. package/dist/heading.d.cts +10 -0
  38. package/dist/heading.d.ts +10 -0
  39. package/dist/iam.d.cts +65 -0
  40. package/dist/iam.d.ts +65 -0
  41. package/dist/icon-button.d.cts +33 -0
  42. package/dist/icon-button.d.ts +33 -0
  43. package/dist/icons.d.cts +1 -0
  44. package/dist/icons.d.ts +1 -0
  45. package/dist/identity.d.cts +64 -0
  46. package/dist/identity.d.ts +64 -0
  47. package/dist/image.d.cts +57 -0
  48. package/dist/image.d.ts +57 -0
  49. package/dist/index.d.cts +64 -0
  50. package/dist/index.d.ts +64 -0
  51. package/dist/input-group.d.cts +17 -0
  52. package/dist/input-group.d.ts +17 -0
  53. package/dist/input.d.cts +17 -0
  54. package/dist/input.d.ts +17 -0
  55. package/dist/link.d.cts +37 -0
  56. package/dist/link.d.ts +37 -0
  57. package/dist/lux.config.d.cts +433 -0
  58. package/dist/lux.config.d.ts +433 -0
  59. package/dist/menu.d.cts +84 -0
  60. package/dist/menu.d.ts +84 -0
  61. package/dist/next.d.cts +32 -0
  62. package/dist/next.d.ts +32 -0
  63. package/dist/option-chain.d.cts +37 -0
  64. package/dist/option-chain.d.ts +37 -0
  65. package/dist/option-position.d.cts +29 -0
  66. package/dist/option-position.d.ts +29 -0
  67. package/dist/pin-input.d.cts +25 -0
  68. package/dist/pin-input.d.ts +25 -0
  69. package/dist/pnl-diagram.d.cts +11 -0
  70. package/dist/pnl-diagram.d.ts +11 -0
  71. package/dist/popover.d.cts +73 -0
  72. package/dist/popover.d.ts +73 -0
  73. package/dist/progress-circle.d.cts +47 -0
  74. package/dist/progress-circle.d.ts +47 -0
  75. package/dist/progress.d.cts +28 -0
  76. package/dist/progress.d.ts +28 -0
  77. package/dist/provider.d.cts +25 -0
  78. package/dist/provider.d.ts +25 -0
  79. package/dist/radio.d.cts +53 -0
  80. package/dist/radio.d.ts +53 -0
  81. package/dist/rating.d.cts +14 -0
  82. package/dist/rating.d.ts +14 -0
  83. package/dist/select.d.cts +130 -0
  84. package/dist/select.d.ts +130 -0
  85. package/dist/separator.d.cts +13 -0
  86. package/dist/separator.d.ts +13 -0
  87. package/dist/skeleton.d.cts +60 -0
  88. package/dist/skeleton.d.ts +60 -0
  89. package/dist/slider.d.cts +24 -0
  90. package/dist/slider.d.ts +24 -0
  91. package/dist/strategy-builder.d.cts +26 -0
  92. package/dist/strategy-builder.d.ts +26 -0
  93. package/dist/switch.d.cts +27 -0
  94. package/dist/switch.d.ts +27 -0
  95. package/dist/table.d.cts +107 -0
  96. package/dist/table.d.ts +107 -0
  97. package/dist/tabs.d.cts +78 -0
  98. package/dist/tabs.d.ts +78 -0
  99. package/dist/tag.d.cts +21 -0
  100. package/dist/tag.d.ts +21 -0
  101. package/dist/textarea.d.cts +13 -0
  102. package/dist/textarea.d.ts +13 -0
  103. package/dist/toaster.d.cts +29 -0
  104. package/dist/toaster.d.ts +29 -0
  105. package/dist/tooltip.d.cts +38 -0
  106. package/dist/tooltip.d.ts +38 -0
  107. package/dist/use-narrow.d.cts +12 -0
  108. package/dist/use-narrow.d.ts +12 -0
  109. package/dist/utils.d.cts +5 -0
  110. package/dist/utils.d.ts +5 -0
  111. package/dist/vite.d.cts +29 -0
  112. package/dist/vite.d.ts +29 -0
  113. package/dist/white-label.d.cts +59 -0
  114. package/dist/white-label.d.ts +59 -0
  115. package/package.json +1 -1
  116. package/tokens.css +613 -319
@@ -0,0 +1,93 @@
1
+ import * as React from 'react';
2
+ import { IdentityStatus } from './identity.cjs';
3
+ import './iam.cjs';
4
+ import './white-label.cjs';
5
+
6
+ /** One row in a switcher. */
7
+ interface ChromeItem {
8
+ readonly id: string;
9
+ readonly label: string;
10
+ /** Secondary text, right-aligned — a plan, a count, a shortcut. */
11
+ readonly hint?: string;
12
+ readonly icon?: React.ReactNode;
13
+ readonly selected?: boolean;
14
+ readonly danger?: boolean;
15
+ readonly href?: string;
16
+ readonly onSelect?: () => void;
17
+ }
18
+ /** 1–2 letter monogram — the honest fallback when there is no logo. */
19
+ declare function initials(label: string): string;
20
+ interface SwitcherProps {
21
+ /** Panel heading, drawer title and the trigger's accessible name. */
22
+ readonly title: string;
23
+ /** Trigger label. */
24
+ readonly label: string;
25
+ /** Trigger icon — usually a logo or monogram. */
26
+ readonly icon?: React.ReactNode;
27
+ readonly items: ReadonlyArray<ChromeItem>;
28
+ /** Rows below a separator — create, settings, sign out. */
29
+ readonly footer?: ReadonlyArray<ChromeItem>;
30
+ /** Drives the honest empty states. Defaults to 'ready'. */
31
+ readonly status?: IdentityStatus;
32
+ /** Shown when signed in and the list really is empty. */
33
+ readonly empty?: string;
34
+ /** Shown, as a sign-in action, when nobody is signed in. */
35
+ readonly onSignIn?: () => void;
36
+ readonly signInLabel?: string;
37
+ readonly error?: string | null;
38
+ readonly align?: 'start' | 'end';
39
+ readonly testId?: string;
40
+ }
41
+ /**
42
+ * The ONE switcher. A trigger plus rows, presented as a phone sheet or an
43
+ * anchored menu depending on the viewport — never both, never hand-rolled.
44
+ */
45
+ declare const Switcher: ({ title, label, icon, items, footer, status, empty, onSignIn, signInLabel, error, align, testId, }: SwitcherProps) => React.ReactElement;
46
+ /** Which organization is this surface acting as. */
47
+ declare const OrgSwitcher: () => React.ReactElement;
48
+ /** Which project inside that organization. */
49
+ declare const ProjectSwitcher: () => React.ReactElement | null;
50
+ interface UserMenuProps {
51
+ /** Extra rows above Sign out — Profile, API keys, whatever the surface has. */
52
+ readonly items?: ReadonlyArray<ChromeItem>;
53
+ }
54
+ /** Who is signed in, and how to stop being signed in. */
55
+ declare const UserMenu: ({ items }: UserMenuProps) => React.ReactElement;
56
+ interface SettingsMenuProps {
57
+ /** The surface's own settings rows. */
58
+ readonly items?: ReadonlyArray<ChromeItem>;
59
+ /** Where "All settings" goes. */
60
+ readonly href?: string;
61
+ }
62
+ /** The surface's settings, in the one place a user looks for them. */
63
+ declare const SettingsMenu: ({ items, href }: SettingsMenuProps) => React.ReactElement;
64
+ interface NavLink {
65
+ readonly href: string;
66
+ readonly label: string;
67
+ readonly active?: boolean;
68
+ }
69
+ interface AppNavProps {
70
+ /** Brand slot — defaults to the host-resolved org name. */
71
+ readonly brand?: React.ReactNode;
72
+ /** Where the brand links to. */
73
+ readonly home?: string;
74
+ readonly links?: ReadonlyArray<NavLink>;
75
+ /** Show the org switcher. Default true. */
76
+ readonly org?: boolean;
77
+ /** Show the project switcher. Default false — most surfaces have no projects. */
78
+ readonly project?: boolean;
79
+ /** Rows for the settings menu; omit the prop to hide the menu. */
80
+ readonly settings?: ReadonlyArray<ChromeItem>;
81
+ /** Extra rows in the user menu. */
82
+ readonly userItems?: ReadonlyArray<ChromeItem>;
83
+ /** Free slot between the links and the right-hand cluster. */
84
+ readonly children?: React.ReactNode;
85
+ }
86
+ /**
87
+ * The ONE nav. Brand, org, project, links, settings, user — in that order, at
88
+ * every surface. On a phone the links collapse into the same sheet the
89
+ * switchers use, so there is no second mobile menu to maintain.
90
+ */
91
+ declare const AppNav: ({ brand, home, links, org, project, settings, userItems, children, }: AppNavProps) => React.ReactElement;
92
+
93
+ export { AppNav, type AppNavProps, type ChromeItem, type NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, type SettingsMenuProps, Switcher, type SwitcherProps, UserMenu, type UserMenuProps, initials };
@@ -0,0 +1,93 @@
1
+ import * as React from 'react';
2
+ import { IdentityStatus } from './identity.js';
3
+ import './iam.js';
4
+ import './white-label.js';
5
+
6
+ /** One row in a switcher. */
7
+ interface ChromeItem {
8
+ readonly id: string;
9
+ readonly label: string;
10
+ /** Secondary text, right-aligned — a plan, a count, a shortcut. */
11
+ readonly hint?: string;
12
+ readonly icon?: React.ReactNode;
13
+ readonly selected?: boolean;
14
+ readonly danger?: boolean;
15
+ readonly href?: string;
16
+ readonly onSelect?: () => void;
17
+ }
18
+ /** 1–2 letter monogram — the honest fallback when there is no logo. */
19
+ declare function initials(label: string): string;
20
+ interface SwitcherProps {
21
+ /** Panel heading, drawer title and the trigger's accessible name. */
22
+ readonly title: string;
23
+ /** Trigger label. */
24
+ readonly label: string;
25
+ /** Trigger icon — usually a logo or monogram. */
26
+ readonly icon?: React.ReactNode;
27
+ readonly items: ReadonlyArray<ChromeItem>;
28
+ /** Rows below a separator — create, settings, sign out. */
29
+ readonly footer?: ReadonlyArray<ChromeItem>;
30
+ /** Drives the honest empty states. Defaults to 'ready'. */
31
+ readonly status?: IdentityStatus;
32
+ /** Shown when signed in and the list really is empty. */
33
+ readonly empty?: string;
34
+ /** Shown, as a sign-in action, when nobody is signed in. */
35
+ readonly onSignIn?: () => void;
36
+ readonly signInLabel?: string;
37
+ readonly error?: string | null;
38
+ readonly align?: 'start' | 'end';
39
+ readonly testId?: string;
40
+ }
41
+ /**
42
+ * The ONE switcher. A trigger plus rows, presented as a phone sheet or an
43
+ * anchored menu depending on the viewport — never both, never hand-rolled.
44
+ */
45
+ declare const Switcher: ({ title, label, icon, items, footer, status, empty, onSignIn, signInLabel, error, align, testId, }: SwitcherProps) => React.ReactElement;
46
+ /** Which organization is this surface acting as. */
47
+ declare const OrgSwitcher: () => React.ReactElement;
48
+ /** Which project inside that organization. */
49
+ declare const ProjectSwitcher: () => React.ReactElement | null;
50
+ interface UserMenuProps {
51
+ /** Extra rows above Sign out — Profile, API keys, whatever the surface has. */
52
+ readonly items?: ReadonlyArray<ChromeItem>;
53
+ }
54
+ /** Who is signed in, and how to stop being signed in. */
55
+ declare const UserMenu: ({ items }: UserMenuProps) => React.ReactElement;
56
+ interface SettingsMenuProps {
57
+ /** The surface's own settings rows. */
58
+ readonly items?: ReadonlyArray<ChromeItem>;
59
+ /** Where "All settings" goes. */
60
+ readonly href?: string;
61
+ }
62
+ /** The surface's settings, in the one place a user looks for them. */
63
+ declare const SettingsMenu: ({ items, href }: SettingsMenuProps) => React.ReactElement;
64
+ interface NavLink {
65
+ readonly href: string;
66
+ readonly label: string;
67
+ readonly active?: boolean;
68
+ }
69
+ interface AppNavProps {
70
+ /** Brand slot — defaults to the host-resolved org name. */
71
+ readonly brand?: React.ReactNode;
72
+ /** Where the brand links to. */
73
+ readonly home?: string;
74
+ readonly links?: ReadonlyArray<NavLink>;
75
+ /** Show the org switcher. Default true. */
76
+ readonly org?: boolean;
77
+ /** Show the project switcher. Default false — most surfaces have no projects. */
78
+ readonly project?: boolean;
79
+ /** Rows for the settings menu; omit the prop to hide the menu. */
80
+ readonly settings?: ReadonlyArray<ChromeItem>;
81
+ /** Extra rows in the user menu. */
82
+ readonly userItems?: ReadonlyArray<ChromeItem>;
83
+ /** Free slot between the links and the right-hand cluster. */
84
+ readonly children?: React.ReactNode;
85
+ }
86
+ /**
87
+ * The ONE nav. Brand, org, project, links, settings, user — in that order, at
88
+ * every surface. On a phone the links collapse into the same sheet the
89
+ * switchers use, so there is no second mobile menu to maintain.
90
+ */
91
+ declare const AppNav: ({ brand, home, links, org, project, settings, userItems, children, }: AppNavProps) => React.ReactElement;
92
+
93
+ export { AppNav, type AppNavProps, type ChromeItem, type NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, type SettingsMenuProps, Switcher, type SwitcherProps, UserMenu, type UserMenuProps, initials };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+
3
+ interface CloseButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
4
+ readonly variant?: 'plain';
5
+ readonly size?: 'md';
6
+ }
7
+ declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
8
+
9
+ export { CloseButton, type CloseButtonProps };
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+
3
+ interface CloseButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
4
+ readonly variant?: 'plain';
5
+ readonly size?: 'md';
6
+ }
7
+ declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
8
+
9
+ export { CloseButton, type CloseButtonProps };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };