@luxfi/ui 7.1.0 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/alert.cjs +22 -50
  2. package/dist/alert.js +22 -50
  3. package/dist/index.cjs +123 -179
  4. package/dist/index.js +123 -179
  5. package/dist/input.cjs +25 -36
  6. package/dist/input.js +25 -36
  7. package/dist/provider.cjs +35 -55
  8. package/dist/provider.js +16 -35
  9. package/dist/tag.cjs +15 -35
  10. package/dist/tag.js +15 -35
  11. package/dist/textarea.cjs +25 -36
  12. package/dist/textarea.js +25 -36
  13. package/package.json +6 -7
  14. package/src/alert.tsx +23 -51
  15. package/src/index.ts +1 -0
  16. package/src/input.tsx +27 -36
  17. package/src/provider.tsx +28 -6
  18. package/src/tag.tsx +17 -35
  19. package/src/textarea.tsx +27 -36
  20. package/dist/accordion.d.cts +0 -74
  21. package/dist/accordion.d.ts +0 -74
  22. package/dist/alert.d.cts +0 -30
  23. package/dist/alert.d.ts +0 -30
  24. package/dist/avatar.d.cts +0 -25
  25. package/dist/avatar.d.ts +0 -25
  26. package/dist/badge.d.cts +0 -19
  27. package/dist/badge.d.ts +0 -19
  28. package/dist/bank.d.cts +0 -76
  29. package/dist/bank.d.ts +0 -76
  30. package/dist/button.d.cts +0 -55
  31. package/dist/button.d.ts +0 -55
  32. package/dist/checkbox.d.cts +0 -31
  33. package/dist/checkbox.d.ts +0 -31
  34. package/dist/close-button.d.cts +0 -9
  35. package/dist/close-button.d.ts +0 -9
  36. package/dist/collapsible.d.cts +0 -23
  37. package/dist/collapsible.d.ts +0 -23
  38. package/dist/color-mode.d.cts +0 -25
  39. package/dist/color-mode.d.ts +0 -25
  40. package/dist/dialog.d.cts +0 -65
  41. package/dist/dialog.d.ts +0 -65
  42. package/dist/drawer.d.cts +0 -36
  43. package/dist/drawer.d.ts +0 -36
  44. package/dist/empty-state.d.cts +0 -13
  45. package/dist/empty-state.d.ts +0 -13
  46. package/dist/expiration-selector.d.cts +0 -16
  47. package/dist/expiration-selector.d.ts +0 -16
  48. package/dist/field.d.cts +0 -24
  49. package/dist/field.d.ts +0 -24
  50. package/dist/greeks-display.d.cts +0 -14
  51. package/dist/greeks-display.d.ts +0 -14
  52. package/dist/heading.d.cts +0 -10
  53. package/dist/heading.d.ts +0 -10
  54. package/dist/icon-button.d.cts +0 -33
  55. package/dist/icon-button.d.ts +0 -33
  56. package/dist/image.d.cts +0 -57
  57. package/dist/image.d.ts +0 -57
  58. package/dist/index.d.cts +0 -55
  59. package/dist/index.d.ts +0 -55
  60. package/dist/input-group.d.cts +0 -17
  61. package/dist/input-group.d.ts +0 -17
  62. package/dist/input.d.cts +0 -11
  63. package/dist/input.d.ts +0 -11
  64. package/dist/link.d.cts +0 -37
  65. package/dist/link.d.ts +0 -37
  66. package/dist/menu.d.cts +0 -84
  67. package/dist/menu.d.ts +0 -84
  68. package/dist/option-chain.d.cts +0 -37
  69. package/dist/option-chain.d.ts +0 -37
  70. package/dist/option-position.d.cts +0 -29
  71. package/dist/option-position.d.ts +0 -29
  72. package/dist/pin-input.d.cts +0 -25
  73. package/dist/pin-input.d.ts +0 -25
  74. package/dist/pnl-diagram.d.cts +0 -11
  75. package/dist/pnl-diagram.d.ts +0 -11
  76. package/dist/popover.d.cts +0 -73
  77. package/dist/popover.d.ts +0 -73
  78. package/dist/progress-circle.d.cts +0 -47
  79. package/dist/progress-circle.d.ts +0 -47
  80. package/dist/progress.d.cts +0 -28
  81. package/dist/progress.d.ts +0 -28
  82. package/dist/provider.d.cts +0 -7
  83. package/dist/provider.d.ts +0 -7
  84. package/dist/radio.d.cts +0 -53
  85. package/dist/radio.d.ts +0 -53
  86. package/dist/rating.d.cts +0 -14
  87. package/dist/rating.d.ts +0 -14
  88. package/dist/select.d.cts +0 -130
  89. package/dist/select.d.ts +0 -130
  90. package/dist/separator.d.cts +0 -13
  91. package/dist/separator.d.ts +0 -13
  92. package/dist/skeleton.d.cts +0 -60
  93. package/dist/skeleton.d.ts +0 -60
  94. package/dist/slider.d.cts +0 -24
  95. package/dist/slider.d.ts +0 -24
  96. package/dist/strategy-builder.d.cts +0 -26
  97. package/dist/strategy-builder.d.ts +0 -26
  98. package/dist/switch.d.cts +0 -27
  99. package/dist/switch.d.ts +0 -27
  100. package/dist/table.d.cts +0 -107
  101. package/dist/table.d.ts +0 -107
  102. package/dist/tabs.d.cts +0 -78
  103. package/dist/tabs.d.ts +0 -78
  104. package/dist/tag.d.cts +0 -21
  105. package/dist/tag.d.ts +0 -21
  106. package/dist/textarea.d.cts +0 -11
  107. package/dist/textarea.d.ts +0 -11
  108. package/dist/toaster.d.cts +0 -29
  109. package/dist/toaster.d.ts +0 -29
  110. package/dist/tooltip.d.cts +0 -38
  111. package/dist/tooltip.d.ts +0 -38
  112. package/dist/utils.d.cts +0 -5
  113. package/dist/utils.d.ts +0 -5
package/dist/drawer.d.cts DELETED
@@ -1,36 +0,0 @@
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 DELETED
@@ -1,36 +0,0 @@
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 };
@@ -1,13 +0,0 @@
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 };
@@ -1,13 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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 DELETED
@@ -1,24 +0,0 @@
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 DELETED
@@ -1,24 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,10 +0,0 @@
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 };
package/dist/heading.d.ts DELETED
@@ -1,10 +0,0 @@
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 };
@@ -1,33 +0,0 @@
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 };
@@ -1,33 +0,0 @@
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 };
package/dist/image.d.cts DELETED
@@ -1,57 +0,0 @@
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 };
package/dist/image.d.ts DELETED
@@ -1,57 +0,0 @@
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 };
package/dist/index.d.cts DELETED
@@ -1,55 +0,0 @@
1
- export { cn } from './utils.cjs';
2
- export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoot, useAccordion } from './accordion.cjs';
3
- export { Alert, AlertProps } from './alert.cjs';
4
- export { Avatar, AvatarGroup, AvatarProps } from './avatar.cjs';
5
- export { Badge, BadgeProps } from './badge.cjs';
6
- export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps, buttonVariants } from './button.cjs';
7
- export { Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps } from './checkbox.cjs';
8
- export { CloseButton, CloseButtonProps } from './close-button.cjs';
9
- export { CollapsibleDetails, CollapsibleList } from './collapsible.cjs';
10
- export { ColorMode, ColorModeProvider, useColorMode, useColorModeValue } from './color-mode.cjs';
11
- export { DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from './dialog.cjs';
12
- export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, DrawerTitle, DrawerTrigger } from './drawer.cjs';
13
- export { EmptyState, EmptyStateProps } from './empty-state.cjs';
14
- export { Field, FieldProps } from './field.cjs';
15
- export { Heading, HeadingProps } from './heading.cjs';
16
- export { IconButton, IconButtonProps } from './icon-button.cjs';
17
- export { Image, ImageProps } from './image.cjs';
18
- export { Input, InputProps } from './input.cjs';
19
- export { InputGroup, InputGroupProps } from './input-group.cjs';
20
- export { Link, LinkBox, LinkExternalIcon, LinkOverlay, LinkProps } from './link.cjs';
21
- export { MenuArrow, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuItemText, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem } from './menu.cjs';
22
- export { PinInput } from './pin-input.cjs';
23
- export { PopoverArrow, PopoverBody, PopoverCloseTrigger, PopoverCloseTriggerWrapper, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverRoot, PopoverTitle, PopoverTrigger } from './popover.cjs';
24
- export { Progress } from './progress.cjs';
25
- export { ProgressCircleRing, ProgressCircleRoot, ProgressCircleValueText } from './progress-circle.cjs';
26
- export { Radio, RadioGroup } from './radio.cjs';
27
- export { Rating } from './rating.cjs';
28
- export { ListCollection, Select, SelectAsync, SelectAsyncProps, SelectClearTrigger, SelectContent, SelectControl, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectOption, SelectProps, SelectRoot, SelectRootProps, SelectValueText, createListCollection } from './select.cjs';
29
- export { Separator, SeparatorProps } from './separator.cjs';
30
- export { Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps } from './skeleton.cjs';
31
- export { Slider } from './slider.cjs';
32
- export { Switch } from './switch.cjs';
33
- export { TableBody, TableCaption, TableCell, TableColumnHeader, TableColumnHeaderSortable, TableFooter, TableHeader, TableHeaderSticky, TableRoot, TableRow, TableScrollWrapper } from './table.cjs';
34
- export { TabsContent, TabsCounter, TabsList, TabsRoot, TabsTrigger } from './tabs.cjs';
35
- export { Tag, TagProps } from './tag.cjs';
36
- export { Textarea, TextareaProps } from './textarea.cjs';
37
- export { Toaster, toaster } from './toaster.cjs';
38
- export { Tooltip, TooltipProps } from './tooltip.cjs';
39
- export { Provider } from './provider.cjs';
40
- export { OptionChain, OptionChainProps, OptionContract, OptionQuote, Strike } from './option-chain.cjs';
41
- export { GreeksDisplay, GreeksDisplayProps } from './greeks-display.cjs';
42
- export { StrategyBuilder, StrategyBuilderProps, StrategyLeg, StrategySubmission, StrategyType } from './strategy-builder.cjs';
43
- export { PnlDiagram, PnlDiagramProps } from './pnl-diagram.cjs';
44
- export { OptionPosition, OptionPositionCard, OptionPositionCardProps } from './option-position.cjs';
45
- export { ExpirationOption, ExpirationSelector, ExpirationSelectorProps } from './expiration-selector.cjs';
46
- export { BankAlert, BankAlertProps, BankAlertText, BankButton, BankButtonProps, BankButtonText, BankCard, BankCardProps, BankDivider, BankField, BankHeading, BankHeadingProps, BankInput, BankInputProps, BankPage, BankPageProps, BankPinBox, BankPinBoxProps, BankText, BankTextProps, bankColors } from './bank.cjs';
47
- import 'clsx';
48
- import '@radix-ui/react-accordion';
49
- import 'react';
50
- import '@radix-ui/react-checkbox';
51
- import 'react/jsx-runtime';
52
- import '@radix-ui/react-dialog';
53
- import '@radix-ui/react-select';
54
- import '@radix-ui/react-tabs';
55
- import '@hanzogui/core';
package/dist/index.d.ts DELETED
@@ -1,55 +0,0 @@
1
- export { cn } from './utils.js';
2
- export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoot, useAccordion } from './accordion.js';
3
- export { Alert, AlertProps } from './alert.js';
4
- export { Avatar, AvatarGroup, AvatarProps } from './avatar.js';
5
- export { Badge, BadgeProps } from './badge.js';
6
- export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps, buttonVariants } from './button.js';
7
- export { Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps } from './checkbox.js';
8
- export { CloseButton, CloseButtonProps } from './close-button.js';
9
- export { CollapsibleDetails, CollapsibleList } from './collapsible.js';
10
- export { ColorMode, ColorModeProvider, useColorMode, useColorModeValue } from './color-mode.js';
11
- export { DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from './dialog.js';
12
- export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, DrawerTitle, DrawerTrigger } from './drawer.js';
13
- export { EmptyState, EmptyStateProps } from './empty-state.js';
14
- export { Field, FieldProps } from './field.js';
15
- export { Heading, HeadingProps } from './heading.js';
16
- export { IconButton, IconButtonProps } from './icon-button.js';
17
- export { Image, ImageProps } from './image.js';
18
- export { Input, InputProps } from './input.js';
19
- export { InputGroup, InputGroupProps } from './input-group.js';
20
- export { Link, LinkBox, LinkExternalIcon, LinkOverlay, LinkProps } from './link.js';
21
- export { MenuArrow, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuItemText, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem } from './menu.js';
22
- export { PinInput } from './pin-input.js';
23
- export { PopoverArrow, PopoverBody, PopoverCloseTrigger, PopoverCloseTriggerWrapper, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverRoot, PopoverTitle, PopoverTrigger } from './popover.js';
24
- export { Progress } from './progress.js';
25
- export { ProgressCircleRing, ProgressCircleRoot, ProgressCircleValueText } from './progress-circle.js';
26
- export { Radio, RadioGroup } from './radio.js';
27
- export { Rating } from './rating.js';
28
- export { ListCollection, Select, SelectAsync, SelectAsyncProps, SelectClearTrigger, SelectContent, SelectControl, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectOption, SelectProps, SelectRoot, SelectRootProps, SelectValueText, createListCollection } from './select.js';
29
- export { Separator, SeparatorProps } from './separator.js';
30
- export { Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps } from './skeleton.js';
31
- export { Slider } from './slider.js';
32
- export { Switch } from './switch.js';
33
- export { TableBody, TableCaption, TableCell, TableColumnHeader, TableColumnHeaderSortable, TableFooter, TableHeader, TableHeaderSticky, TableRoot, TableRow, TableScrollWrapper } from './table.js';
34
- export { TabsContent, TabsCounter, TabsList, TabsRoot, TabsTrigger } from './tabs.js';
35
- export { Tag, TagProps } from './tag.js';
36
- export { Textarea, TextareaProps } from './textarea.js';
37
- export { Toaster, toaster } from './toaster.js';
38
- export { Tooltip, TooltipProps } from './tooltip.js';
39
- export { Provider } from './provider.js';
40
- export { OptionChain, OptionChainProps, OptionContract, OptionQuote, Strike } from './option-chain.js';
41
- export { GreeksDisplay, GreeksDisplayProps } from './greeks-display.js';
42
- export { StrategyBuilder, StrategyBuilderProps, StrategyLeg, StrategySubmission, StrategyType } from './strategy-builder.js';
43
- export { PnlDiagram, PnlDiagramProps } from './pnl-diagram.js';
44
- export { OptionPosition, OptionPositionCard, OptionPositionCardProps } from './option-position.js';
45
- export { ExpirationOption, ExpirationSelector, ExpirationSelectorProps } from './expiration-selector.js';
46
- export { BankAlert, BankAlertProps, BankAlertText, BankButton, BankButtonProps, BankButtonText, BankCard, BankCardProps, BankDivider, BankField, BankHeading, BankHeadingProps, BankInput, BankInputProps, BankPage, BankPageProps, BankPinBox, BankPinBoxProps, BankText, BankTextProps, bankColors } from './bank.js';
47
- import 'clsx';
48
- import '@radix-ui/react-accordion';
49
- import 'react';
50
- import '@radix-ui/react-checkbox';
51
- import 'react/jsx-runtime';
52
- import '@radix-ui/react-dialog';
53
- import '@radix-ui/react-select';
54
- import '@radix-ui/react-tabs';
55
- import '@hanzogui/core';
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface InputElementProps extends React.HTMLAttributes<HTMLDivElement> {
4
- readonly placement?: 'start' | 'end';
5
- }
6
- interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
7
- readonly startElementProps?: InputElementProps;
8
- readonly endElementProps?: InputElementProps;
9
- readonly startElement?: React.ReactNode;
10
- readonly endElement?: React.ReactNode;
11
- readonly children: React.ReactElement<InputElementProps>;
12
- readonly startOffset?: string | number;
13
- readonly endOffset?: string | number;
14
- }
15
- declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
16
-
17
- export { type InputElementProps, InputGroup, type InputGroupProps };
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface InputElementProps extends React.HTMLAttributes<HTMLDivElement> {
4
- readonly placement?: 'start' | 'end';
5
- }
6
- interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
7
- readonly startElementProps?: InputElementProps;
8
- readonly endElementProps?: InputElementProps;
9
- readonly startElement?: React.ReactNode;
10
- readonly endElement?: React.ReactNode;
11
- readonly children: React.ReactElement<InputElementProps>;
12
- readonly startOffset?: string | number;
13
- readonly endOffset?: string | number;
14
- }
15
- declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
16
-
17
- export { type InputElementProps, InputGroup, type InputGroupProps };
package/dist/input.d.cts DELETED
@@ -1,11 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type InputSize = 'xs' | 'sm' | 'md' | 'lg' | '2xl';
4
- type InputVariant = 'outline' | 'filled' | 'unstyled';
5
- interface InputProps extends Omit<React__default.ComponentPropsWithRef<'input'>, 'size'> {
6
- readonly size?: InputSize;
7
- readonly variant?: InputVariant;
8
- }
9
- declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
10
-
11
- export { Input, type InputProps };
package/dist/input.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type InputSize = 'xs' | 'sm' | 'md' | 'lg' | '2xl';
4
- type InputVariant = 'outline' | 'filled' | 'unstyled';
5
- interface InputProps extends Omit<React__default.ComponentPropsWithRef<'input'>, 'size'> {
6
- readonly size?: InputSize;
7
- readonly variant?: InputVariant;
8
- }
9
- declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
10
-
11
- export { Input, type InputProps };
package/dist/link.d.cts DELETED
@@ -1,37 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
-
4
- type LinkVariant = 'primary' | 'secondary' | 'subtle' | 'underlaid' | 'menu' | 'navigation' | 'plain';
5
- interface LinkProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
6
- readonly href?: string;
7
- readonly loading?: boolean;
8
- readonly external?: boolean;
9
- readonly iconColor?: string;
10
- readonly noIcon?: boolean;
11
- readonly disabled?: boolean;
12
- readonly variant?: LinkVariant;
13
- readonly asChild?: boolean;
14
- readonly shallow?: boolean;
15
- readonly prefetch?: boolean;
16
- readonly scroll?: boolean;
17
- readonly fontWeight?: string | number;
18
- readonly whiteSpace?: string;
19
- readonly wordBreak?: string;
20
- readonly textStyle?: string;
21
- readonly ml?: number | string | Record<string, string | number>;
22
- readonly mr?: number | string;
23
- readonly display?: string;
24
- readonly alignItems?: string;
25
- readonly flexShrink?: number;
26
- readonly minW?: number | string;
27
- readonly justifyContent?: string;
28
- readonly position?: string;
29
- }
30
- declare const LinkExternalIcon: ({ color }: {
31
- color?: string;
32
- }) => react_jsx_runtime.JSX.Element;
33
- declare const Link: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
34
- declare const LinkBox: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
35
- declare const LinkOverlay: React__default.ForwardRefExoticComponent<LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
36
-
37
- export { Link, LinkBox, LinkExternalIcon, LinkOverlay, type LinkProps };