@luxfi/ui 7.3.0 → 7.3.2

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 (101) 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 +76 -0
  10. package/dist/bank.d.ts +76 -0
  11. package/dist/button.d.cts +55 -0
  12. package/dist/button.d.ts +55 -0
  13. package/dist/checkbox.d.cts +31 -0
  14. package/dist/checkbox.d.ts +31 -0
  15. package/dist/close-button.d.cts +9 -0
  16. package/dist/close-button.d.ts +9 -0
  17. package/dist/collapsible.d.cts +23 -0
  18. package/dist/collapsible.d.ts +23 -0
  19. package/dist/color-mode.d.cts +25 -0
  20. package/dist/color-mode.d.ts +25 -0
  21. package/dist/dialog.d.cts +65 -0
  22. package/dist/dialog.d.ts +65 -0
  23. package/dist/drawer.d.cts +36 -0
  24. package/dist/drawer.d.ts +36 -0
  25. package/dist/empty-state.d.cts +13 -0
  26. package/dist/empty-state.d.ts +13 -0
  27. package/dist/expiration-selector.d.cts +16 -0
  28. package/dist/expiration-selector.d.ts +16 -0
  29. package/dist/field.d.cts +24 -0
  30. package/dist/field.d.ts +24 -0
  31. package/dist/greeks-display.d.cts +14 -0
  32. package/dist/greeks-display.d.ts +14 -0
  33. package/dist/heading.d.cts +10 -0
  34. package/dist/heading.d.ts +10 -0
  35. package/dist/icon-button.d.cts +33 -0
  36. package/dist/icon-button.d.ts +33 -0
  37. package/dist/image.d.cts +57 -0
  38. package/dist/image.d.ts +57 -0
  39. package/dist/index.cjs +1 -5
  40. package/dist/index.d.cts +56 -0
  41. package/dist/index.d.ts +56 -0
  42. package/dist/index.js +2 -6
  43. package/dist/input-group.d.cts +17 -0
  44. package/dist/input-group.d.ts +17 -0
  45. package/dist/input.d.cts +11 -0
  46. package/dist/input.d.ts +11 -0
  47. package/dist/link.d.cts +37 -0
  48. package/dist/link.d.ts +37 -0
  49. package/dist/menu.d.cts +84 -0
  50. package/dist/menu.d.ts +84 -0
  51. package/dist/option-chain.d.cts +37 -0
  52. package/dist/option-chain.d.ts +37 -0
  53. package/dist/option-position.d.cts +29 -0
  54. package/dist/option-position.d.ts +29 -0
  55. package/dist/pin-input.d.cts +25 -0
  56. package/dist/pin-input.d.ts +25 -0
  57. package/dist/pnl-diagram.d.cts +11 -0
  58. package/dist/pnl-diagram.d.ts +11 -0
  59. package/dist/popover.d.cts +73 -0
  60. package/dist/popover.d.ts +73 -0
  61. package/dist/progress-circle.d.cts +47 -0
  62. package/dist/progress-circle.d.ts +47 -0
  63. package/dist/progress.d.cts +28 -0
  64. package/dist/progress.d.ts +28 -0
  65. package/dist/provider.cjs +1 -5
  66. package/dist/provider.d.cts +12 -0
  67. package/dist/provider.d.ts +12 -0
  68. package/dist/provider.js +1 -5
  69. package/dist/radio.d.cts +53 -0
  70. package/dist/radio.d.ts +53 -0
  71. package/dist/rating.d.cts +14 -0
  72. package/dist/rating.d.ts +14 -0
  73. package/dist/select.d.cts +130 -0
  74. package/dist/select.d.ts +130 -0
  75. package/dist/separator.d.cts +13 -0
  76. package/dist/separator.d.ts +13 -0
  77. package/dist/skeleton.d.cts +60 -0
  78. package/dist/skeleton.d.ts +60 -0
  79. package/dist/slider.d.cts +24 -0
  80. package/dist/slider.d.ts +24 -0
  81. package/dist/strategy-builder.d.cts +26 -0
  82. package/dist/strategy-builder.d.ts +26 -0
  83. package/dist/switch.d.cts +27 -0
  84. package/dist/switch.d.ts +27 -0
  85. package/dist/table.d.cts +107 -0
  86. package/dist/table.d.ts +107 -0
  87. package/dist/tabs.d.cts +78 -0
  88. package/dist/tabs.d.ts +78 -0
  89. package/dist/tag.d.cts +21 -0
  90. package/dist/tag.d.ts +21 -0
  91. package/dist/textarea.d.cts +11 -0
  92. package/dist/textarea.d.ts +11 -0
  93. package/dist/toaster.d.cts +29 -0
  94. package/dist/toaster.d.ts +29 -0
  95. package/dist/tooltip.d.cts +38 -0
  96. package/dist/tooltip.d.ts +38 -0
  97. package/dist/utils.d.cts +5 -0
  98. package/dist/utils.d.ts +5 -0
  99. package/package.json +1 -1
  100. package/src/index.ts +0 -2
  101. package/src/provider.tsx +4 -6
@@ -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,65 @@
1
+ import * as React from 'react';
2
+
3
+ type DialogSize = 'sm' | 'md' | 'full' | 'cover';
4
+ /**
5
+ * Responsive size expressed as a plain value or a breakpoint map.
6
+ * Mirrors the Chakra `size={{ lgDown: 'full', lg: 'md' }}` pattern.
7
+ * Responsive behavior is implemented via Tailwind responsive variants at
8
+ * the CSS-class level (see `sizeClasses` helper below).
9
+ */
10
+ type ResponsiveSize = DialogSize | {
11
+ base?: DialogSize;
12
+ lgDown?: DialogSize;
13
+ lg?: DialogSize;
14
+ };
15
+ interface DialogRootProps {
16
+ children?: React.ReactNode;
17
+ open?: boolean;
18
+ defaultOpen?: boolean;
19
+ onOpenChange?: (details: {
20
+ open: boolean;
21
+ }) => void;
22
+ size?: ResponsiveSize;
23
+ /** Accepted for API compat but not implemented -- animations are CSS-only. */
24
+ motionPreset?: string;
25
+ modal?: boolean;
26
+ }
27
+ declare const DialogRoot: React.FC<DialogRootProps>;
28
+ interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
29
+ portalled?: boolean;
30
+ portalRef?: React.RefObject<HTMLElement>;
31
+ backdrop?: boolean;
32
+ paddingTop?: number | string;
33
+ }
34
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
35
+ interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
36
+ }
37
+ declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
38
+ interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
39
+ startElement?: React.ReactNode;
40
+ onBackToClick?: () => void;
41
+ }
42
+ declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
43
+ interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
44
+ pt?: number | string;
45
+ display?: string;
46
+ flexDir?: string;
47
+ }
48
+ declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
49
+ interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
50
+ }
51
+ declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
52
+ declare const DialogBackdrop: any;
53
+ declare const DialogTitle: any;
54
+ declare const DialogDescription: any;
55
+ interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
56
+ }
57
+ declare const DialogTrigger: any;
58
+ /**
59
+ * `DialogActionTrigger` renders its child and closes the dialog on click.
60
+ * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
61
+ * children in a close action.
62
+ */
63
+ declare const DialogActionTrigger: any;
64
+
65
+ 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,65 @@
1
+ import * as React from 'react';
2
+
3
+ type DialogSize = 'sm' | 'md' | 'full' | 'cover';
4
+ /**
5
+ * Responsive size expressed as a plain value or a breakpoint map.
6
+ * Mirrors the Chakra `size={{ lgDown: 'full', lg: 'md' }}` pattern.
7
+ * Responsive behavior is implemented via Tailwind responsive variants at
8
+ * the CSS-class level (see `sizeClasses` helper below).
9
+ */
10
+ type ResponsiveSize = DialogSize | {
11
+ base?: DialogSize;
12
+ lgDown?: DialogSize;
13
+ lg?: DialogSize;
14
+ };
15
+ interface DialogRootProps {
16
+ children?: React.ReactNode;
17
+ open?: boolean;
18
+ defaultOpen?: boolean;
19
+ onOpenChange?: (details: {
20
+ open: boolean;
21
+ }) => void;
22
+ size?: ResponsiveSize;
23
+ /** Accepted for API compat but not implemented -- animations are CSS-only. */
24
+ motionPreset?: string;
25
+ modal?: boolean;
26
+ }
27
+ declare const DialogRoot: React.FC<DialogRootProps>;
28
+ interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
29
+ portalled?: boolean;
30
+ portalRef?: React.RefObject<HTMLElement>;
31
+ backdrop?: boolean;
32
+ paddingTop?: number | string;
33
+ }
34
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
35
+ interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
36
+ }
37
+ declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
38
+ interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
39
+ startElement?: React.ReactNode;
40
+ onBackToClick?: () => void;
41
+ }
42
+ declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
43
+ interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
44
+ pt?: number | string;
45
+ display?: string;
46
+ flexDir?: string;
47
+ }
48
+ declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
49
+ interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
50
+ }
51
+ declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
52
+ declare const DialogBackdrop: any;
53
+ declare const DialogTitle: any;
54
+ declare const DialogDescription: any;
55
+ interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
56
+ }
57
+ declare const DialogTrigger: any;
58
+ /**
59
+ * `DialogActionTrigger` renders its child and closes the dialog on click.
60
+ * This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
61
+ * children in a close action.
62
+ */
63
+ declare const DialogActionTrigger: any;
64
+
65
+ 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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ type Variant = 'plain' | 'icon_secondary' | 'icon_background' | 'link' | 'dropdown' | 'pagination';
4
+ type Size = '2xs' | '2xs_alt' | 'md';
5
+ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
6
+ /** Visual variant */
7
+ variant?: Variant;
8
+ /** Icon-button size */
9
+ size?: Size;
10
+ /** Show a loading spinner (disables button) */
11
+ loading?: boolean;
12
+ /** Render a skeleton placeholder instead of the button */
13
+ loadingSkeleton?: boolean;
14
+ /** Maps to data-expanded for popover trigger styling */
15
+ expanded?: boolean;
16
+ /** Maps to data-selected for toggle styling */
17
+ selected?: boolean;
18
+ /** Maps to data-highlighted */
19
+ highlighted?: boolean;
20
+ /** Polymorphic element type (e.g. "div") */
21
+ as?: React.ElementType;
22
+ boxSize?: number | string;
23
+ color?: string;
24
+ px?: string | number;
25
+ borderRadius?: string;
26
+ ml?: number | string;
27
+ mr?: number | string;
28
+ _hover?: Record<string, string>;
29
+ _expanded?: Record<string, string>;
30
+ }
31
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
32
+
33
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ type Variant = 'plain' | 'icon_secondary' | 'icon_background' | 'link' | 'dropdown' | 'pagination';
4
+ type Size = '2xs' | '2xs_alt' | 'md';
5
+ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
6
+ /** Visual variant */
7
+ variant?: Variant;
8
+ /** Icon-button size */
9
+ size?: Size;
10
+ /** Show a loading spinner (disables button) */
11
+ loading?: boolean;
12
+ /** Render a skeleton placeholder instead of the button */
13
+ loadingSkeleton?: boolean;
14
+ /** Maps to data-expanded for popover trigger styling */
15
+ expanded?: boolean;
16
+ /** Maps to data-selected for toggle styling */
17
+ selected?: boolean;
18
+ /** Maps to data-highlighted */
19
+ highlighted?: boolean;
20
+ /** Polymorphic element type (e.g. "div") */
21
+ as?: React.ElementType;
22
+ boxSize?: number | string;
23
+ color?: string;
24
+ px?: string | number;
25
+ borderRadius?: string;
26
+ ml?: number | string;
27
+ mr?: number | string;
28
+ _hover?: Record<string, string>;
29
+ _expanded?: Record<string, string>;
30
+ }
31
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
32
+
33
+ export { IconButton, type IconButtonProps };
@@ -0,0 +1,57 @@
1
+ import React__default from 'react';
2
+
3
+ type CSSValue = string | number | undefined;
4
+ type ResponsiveValue<T> = T | {
5
+ base?: T;
6
+ sm?: T;
7
+ md?: T;
8
+ lg?: T;
9
+ xl?: T;
10
+ _light?: T;
11
+ _dark?: T;
12
+ };
13
+ interface StyleProps {
14
+ boxSize?: CSSValue;
15
+ borderRadius?: CSSValue;
16
+ width?: CSSValue;
17
+ w?: ResponsiveValue<CSSValue>;
18
+ height?: CSSValue;
19
+ h?: ResponsiveValue<CSSValue>;
20
+ maxW?: CSSValue;
21
+ maxH?: CSSValue;
22
+ minW?: CSSValue;
23
+ mr?: CSSValue;
24
+ mb?: CSSValue;
25
+ ml?: CSSValue;
26
+ mt?: CSSValue;
27
+ mx?: CSSValue;
28
+ my?: CSSValue;
29
+ marginRight?: CSSValue;
30
+ display?: CSSValue;
31
+ position?: CSSValue;
32
+ top?: CSSValue;
33
+ left?: ResponsiveValue<CSSValue>;
34
+ right?: CSSValue;
35
+ bottom?: CSSValue;
36
+ zIndex?: CSSValue;
37
+ objectFit?: CSSValue;
38
+ objectPosition?: CSSValue;
39
+ flexShrink?: CSSValue;
40
+ overflow?: CSSValue;
41
+ cursor?: CSSValue;
42
+ }
43
+ interface ImageProps extends StyleProps {
44
+ readonly className?: string;
45
+ readonly src?: string;
46
+ readonly alt?: string;
47
+ readonly style?: React__default.CSSProperties;
48
+ readonly fallback?: React__default.ReactNode;
49
+ readonly onClick?: React__default.MouseEventHandler<HTMLImageElement>;
50
+ readonly onLoad?: React__default.ReactEventHandler<HTMLImageElement>;
51
+ readonly onError?: React__default.ReactEventHandler<HTMLImageElement>;
52
+ readonly skeletonWidth?: CSSValue;
53
+ readonly skeletonHeight?: CSSValue;
54
+ }
55
+ declare const Image: React__default.ForwardRefExoticComponent<ImageProps & React__default.RefAttributes<HTMLImageElement>>;
56
+
57
+ export { Image, type ImageProps };
@@ -0,0 +1,57 @@
1
+ import React__default from 'react';
2
+
3
+ type CSSValue = string | number | undefined;
4
+ type ResponsiveValue<T> = T | {
5
+ base?: T;
6
+ sm?: T;
7
+ md?: T;
8
+ lg?: T;
9
+ xl?: T;
10
+ _light?: T;
11
+ _dark?: T;
12
+ };
13
+ interface StyleProps {
14
+ boxSize?: CSSValue;
15
+ borderRadius?: CSSValue;
16
+ width?: CSSValue;
17
+ w?: ResponsiveValue<CSSValue>;
18
+ height?: CSSValue;
19
+ h?: ResponsiveValue<CSSValue>;
20
+ maxW?: CSSValue;
21
+ maxH?: CSSValue;
22
+ minW?: CSSValue;
23
+ mr?: CSSValue;
24
+ mb?: CSSValue;
25
+ ml?: CSSValue;
26
+ mt?: CSSValue;
27
+ mx?: CSSValue;
28
+ my?: CSSValue;
29
+ marginRight?: CSSValue;
30
+ display?: CSSValue;
31
+ position?: CSSValue;
32
+ top?: CSSValue;
33
+ left?: ResponsiveValue<CSSValue>;
34
+ right?: CSSValue;
35
+ bottom?: CSSValue;
36
+ zIndex?: CSSValue;
37
+ objectFit?: CSSValue;
38
+ objectPosition?: CSSValue;
39
+ flexShrink?: CSSValue;
40
+ overflow?: CSSValue;
41
+ cursor?: CSSValue;
42
+ }
43
+ interface ImageProps extends StyleProps {
44
+ readonly className?: string;
45
+ readonly src?: string;
46
+ readonly alt?: string;
47
+ readonly style?: React__default.CSSProperties;
48
+ readonly fallback?: React__default.ReactNode;
49
+ readonly onClick?: React__default.MouseEventHandler<HTMLImageElement>;
50
+ readonly onLoad?: React__default.ReactEventHandler<HTMLImageElement>;
51
+ readonly onError?: React__default.ReactEventHandler<HTMLImageElement>;
52
+ readonly skeletonWidth?: CSSValue;
53
+ readonly skeletonHeight?: CSSValue;
54
+ }
55
+ declare const Image: React__default.ForwardRefExoticComponent<ImageProps & React__default.RefAttributes<HTMLImageElement>>;
56
+
57
+ export { Image, type ImageProps };