@luxfi/ui 7.4.4 → 7.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/provider.tsx +7 -0
- package/tokens.css +319 -613
- package/dist/accordion.d.cts +0 -74
- package/dist/accordion.d.ts +0 -74
- package/dist/alert.d.cts +0 -30
- package/dist/alert.d.ts +0 -30
- package/dist/avatar.d.cts +0 -25
- package/dist/avatar.d.ts +0 -25
- package/dist/badge.d.cts +0 -19
- package/dist/badge.d.ts +0 -19
- package/dist/bank.d.cts +0 -83
- package/dist/bank.d.ts +0 -83
- package/dist/button.d.cts +0 -55
- package/dist/button.d.ts +0 -55
- package/dist/checkbox.d.cts +0 -32
- package/dist/checkbox.d.ts +0 -32
- package/dist/chrome.d.cts +0 -93
- package/dist/chrome.d.ts +0 -93
- package/dist/close-button.d.cts +0 -9
- package/dist/close-button.d.ts +0 -9
- package/dist/collapsible.d.cts +0 -23
- package/dist/collapsible.d.ts +0 -23
- package/dist/color-mode.d.cts +0 -25
- package/dist/color-mode.d.ts +0 -25
- package/dist/dialog.d.cts +0 -118
- package/dist/dialog.d.ts +0 -118
- package/dist/drawer.d.cts +0 -36
- package/dist/drawer.d.ts +0 -36
- package/dist/empty-state.d.cts +0 -13
- package/dist/empty-state.d.ts +0 -13
- package/dist/expiration-selector.d.cts +0 -16
- package/dist/expiration-selector.d.ts +0 -16
- package/dist/field.d.cts +0 -24
- package/dist/field.d.ts +0 -24
- package/dist/greeks-display.d.cts +0 -14
- package/dist/greeks-display.d.ts +0 -14
- package/dist/gui.d.cts +0 -2
- package/dist/gui.d.ts +0 -2
- package/dist/heading.d.cts +0 -10
- package/dist/heading.d.ts +0 -10
- package/dist/iam.d.cts +0 -65
- package/dist/iam.d.ts +0 -65
- package/dist/icon-button.d.cts +0 -33
- package/dist/icon-button.d.ts +0 -33
- package/dist/icons.d.cts +0 -1
- package/dist/icons.d.ts +0 -1
- package/dist/identity.d.cts +0 -64
- package/dist/identity.d.ts +0 -64
- package/dist/image.d.cts +0 -57
- package/dist/image.d.ts +0 -57
- package/dist/index.d.cts +0 -64
- package/dist/index.d.ts +0 -64
- package/dist/input-group.d.cts +0 -17
- package/dist/input-group.d.ts +0 -17
- package/dist/input.d.cts +0 -17
- package/dist/input.d.ts +0 -17
- package/dist/link.d.cts +0 -37
- package/dist/link.d.ts +0 -37
- package/dist/lux.config.d.cts +0 -433
- package/dist/lux.config.d.ts +0 -433
- package/dist/menu.d.cts +0 -84
- package/dist/menu.d.ts +0 -84
- package/dist/next.d.cts +0 -32
- package/dist/next.d.ts +0 -32
- package/dist/option-chain.d.cts +0 -37
- package/dist/option-chain.d.ts +0 -37
- package/dist/option-position.d.cts +0 -29
- package/dist/option-position.d.ts +0 -29
- package/dist/pin-input.d.cts +0 -25
- package/dist/pin-input.d.ts +0 -25
- package/dist/pnl-diagram.d.cts +0 -11
- package/dist/pnl-diagram.d.ts +0 -11
- package/dist/popover.d.cts +0 -73
- package/dist/popover.d.ts +0 -73
- package/dist/progress-circle.d.cts +0 -47
- package/dist/progress-circle.d.ts +0 -47
- package/dist/progress.d.cts +0 -28
- package/dist/progress.d.ts +0 -28
- package/dist/provider.d.cts +0 -25
- package/dist/provider.d.ts +0 -25
- package/dist/radio.d.cts +0 -53
- package/dist/radio.d.ts +0 -53
- package/dist/rating.d.cts +0 -14
- package/dist/rating.d.ts +0 -14
- package/dist/select.d.cts +0 -130
- package/dist/select.d.ts +0 -130
- package/dist/separator.d.cts +0 -13
- package/dist/separator.d.ts +0 -13
- package/dist/skeleton.d.cts +0 -60
- package/dist/skeleton.d.ts +0 -60
- package/dist/slider.d.cts +0 -24
- package/dist/slider.d.ts +0 -24
- package/dist/strategy-builder.d.cts +0 -26
- package/dist/strategy-builder.d.ts +0 -26
- package/dist/switch.d.cts +0 -27
- package/dist/switch.d.ts +0 -27
- package/dist/table.d.cts +0 -107
- package/dist/table.d.ts +0 -107
- package/dist/tabs.d.cts +0 -78
- package/dist/tabs.d.ts +0 -78
- package/dist/tag.d.cts +0 -21
- package/dist/tag.d.ts +0 -21
- package/dist/textarea.d.cts +0 -13
- package/dist/textarea.d.ts +0 -13
- package/dist/toaster.d.cts +0 -29
- package/dist/toaster.d.ts +0 -29
- package/dist/tooltip.d.cts +0 -38
- package/dist/tooltip.d.ts +0 -38
- package/dist/use-narrow.d.cts +0 -12
- package/dist/use-narrow.d.ts +0 -12
- package/dist/utils.d.cts +0 -5
- package/dist/utils.d.ts +0 -5
- package/dist/vite.d.cts +0 -29
- package/dist/vite.d.ts +0 -29
- package/dist/white-label.d.cts +0 -59
- package/dist/white-label.d.ts +0 -59
|
@@ -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 };
|
package/dist/greeks-display.d.ts
DELETED
|
@@ -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 };
|
package/dist/gui.d.cts
DELETED
package/dist/gui.d.ts
DELETED
package/dist/heading.d.cts
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 };
|
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 };
|
package/dist/iam.d.cts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { WhiteLabel } from './white-label.cjs';
|
|
2
|
-
|
|
3
|
-
/** A signed-in principal, as IAM describes it. */
|
|
4
|
-
interface IamAccount {
|
|
5
|
-
readonly owner: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly displayName?: string;
|
|
8
|
-
readonly email?: string;
|
|
9
|
-
readonly avatar?: string;
|
|
10
|
-
readonly isAdmin?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** An organization the principal can see. */
|
|
13
|
-
interface IamOrg {
|
|
14
|
-
readonly owner: string;
|
|
15
|
-
readonly name: string;
|
|
16
|
-
readonly displayName?: string;
|
|
17
|
-
readonly logo?: string;
|
|
18
|
-
}
|
|
19
|
-
/** A project inside an organization (IAM's Org → Workspace → Project tier). */
|
|
20
|
-
interface IamProject {
|
|
21
|
-
readonly owner: string;
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly displayName?: string;
|
|
24
|
-
readonly organization?: string;
|
|
25
|
-
readonly workspace?: string;
|
|
26
|
-
readonly isDefault?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A refusal from IAM, carrying enough to tell "not signed in" apart from
|
|
30
|
-
* "signed in, and the answer is genuinely empty" — the distinction a switcher
|
|
31
|
-
* has to render honestly.
|
|
32
|
-
*/
|
|
33
|
-
declare class IamError extends Error {
|
|
34
|
-
readonly status: number;
|
|
35
|
-
readonly unauthenticated: boolean;
|
|
36
|
-
constructor(message: string, status: number, unauthenticated: boolean);
|
|
37
|
-
}
|
|
38
|
-
/** The IAM API root for a host — `lux.cloud` → `https://lux.id/v1/iam`. */
|
|
39
|
-
declare function iamBase(host?: string | null | WhiteLabel): string;
|
|
40
|
-
/** How a read reaches IAM: where, and with whose bearer. */
|
|
41
|
-
interface IamCall {
|
|
42
|
-
readonly base: string;
|
|
43
|
-
readonly token?: string | null;
|
|
44
|
-
readonly signal?: AbortSignal;
|
|
45
|
-
}
|
|
46
|
-
/** Rows per page for the org list — small first paint, more on demand. */
|
|
47
|
-
declare const IAM_PAGE_SIZE = 20;
|
|
48
|
-
declare const iam: {
|
|
49
|
-
/** The signed-in principal, or null when there is no session. */
|
|
50
|
-
account(call: IamCall): Promise<IamAccount | null>;
|
|
51
|
-
/**
|
|
52
|
-
* One page of the orgs the principal can see. IAM scopes the read to the
|
|
53
|
-
* caller's authority, so a normal member gets their own org and a super
|
|
54
|
-
* admin gets the tenant list — the page never has to decide.
|
|
55
|
-
*/
|
|
56
|
-
organizations(call: IamCall, page?: number, query?: string, pageSize?: number): Promise<Array<IamOrg>>;
|
|
57
|
-
/** One organization by name. */
|
|
58
|
-
organization(call: IamCall, name: string): Promise<IamOrg | null>;
|
|
59
|
-
/** Members of an organization. */
|
|
60
|
-
users(call: IamCall, org: string): Promise<Array<IamAccount>>;
|
|
61
|
-
/** The organization's projects — IAM keys this read by `organization`. */
|
|
62
|
-
projects(call: IamCall, org: string): Promise<Array<IamProject>>;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export { IAM_PAGE_SIZE, type IamAccount, type IamCall, IamError, type IamOrg, type IamProject, iam, iamBase };
|
package/dist/iam.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { WhiteLabel } from './white-label.js';
|
|
2
|
-
|
|
3
|
-
/** A signed-in principal, as IAM describes it. */
|
|
4
|
-
interface IamAccount {
|
|
5
|
-
readonly owner: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly displayName?: string;
|
|
8
|
-
readonly email?: string;
|
|
9
|
-
readonly avatar?: string;
|
|
10
|
-
readonly isAdmin?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** An organization the principal can see. */
|
|
13
|
-
interface IamOrg {
|
|
14
|
-
readonly owner: string;
|
|
15
|
-
readonly name: string;
|
|
16
|
-
readonly displayName?: string;
|
|
17
|
-
readonly logo?: string;
|
|
18
|
-
}
|
|
19
|
-
/** A project inside an organization (IAM's Org → Workspace → Project tier). */
|
|
20
|
-
interface IamProject {
|
|
21
|
-
readonly owner: string;
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly displayName?: string;
|
|
24
|
-
readonly organization?: string;
|
|
25
|
-
readonly workspace?: string;
|
|
26
|
-
readonly isDefault?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A refusal from IAM, carrying enough to tell "not signed in" apart from
|
|
30
|
-
* "signed in, and the answer is genuinely empty" — the distinction a switcher
|
|
31
|
-
* has to render honestly.
|
|
32
|
-
*/
|
|
33
|
-
declare class IamError extends Error {
|
|
34
|
-
readonly status: number;
|
|
35
|
-
readonly unauthenticated: boolean;
|
|
36
|
-
constructor(message: string, status: number, unauthenticated: boolean);
|
|
37
|
-
}
|
|
38
|
-
/** The IAM API root for a host — `lux.cloud` → `https://lux.id/v1/iam`. */
|
|
39
|
-
declare function iamBase(host?: string | null | WhiteLabel): string;
|
|
40
|
-
/** How a read reaches IAM: where, and with whose bearer. */
|
|
41
|
-
interface IamCall {
|
|
42
|
-
readonly base: string;
|
|
43
|
-
readonly token?: string | null;
|
|
44
|
-
readonly signal?: AbortSignal;
|
|
45
|
-
}
|
|
46
|
-
/** Rows per page for the org list — small first paint, more on demand. */
|
|
47
|
-
declare const IAM_PAGE_SIZE = 20;
|
|
48
|
-
declare const iam: {
|
|
49
|
-
/** The signed-in principal, or null when there is no session. */
|
|
50
|
-
account(call: IamCall): Promise<IamAccount | null>;
|
|
51
|
-
/**
|
|
52
|
-
* One page of the orgs the principal can see. IAM scopes the read to the
|
|
53
|
-
* caller's authority, so a normal member gets their own org and a super
|
|
54
|
-
* admin gets the tenant list — the page never has to decide.
|
|
55
|
-
*/
|
|
56
|
-
organizations(call: IamCall, page?: number, query?: string, pageSize?: number): Promise<Array<IamOrg>>;
|
|
57
|
-
/** One organization by name. */
|
|
58
|
-
organization(call: IamCall, name: string): Promise<IamOrg | null>;
|
|
59
|
-
/** Members of an organization. */
|
|
60
|
-
users(call: IamCall, org: string): Promise<Array<IamAccount>>;
|
|
61
|
-
/** The organization's projects — IAM keys this read by `organization`. */
|
|
62
|
-
projects(call: IamCall, org: string): Promise<Array<IamProject>>;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export { IAM_PAGE_SIZE, type IamAccount, type IamCall, IamError, type IamOrg, type IamProject, iam, iamBase };
|
package/dist/icon-button.d.cts
DELETED
|
@@ -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/icon-button.d.ts
DELETED
|
@@ -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/icons.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'lucide-react';
|
package/dist/icons.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'lucide-react';
|
package/dist/identity.d.cts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IamAccount, IamOrg, IamProject } from './iam.cjs';
|
|
3
|
-
import { WhiteLabel } from './white-label.cjs';
|
|
4
|
-
|
|
5
|
-
type IdentityStatus = 'loading' | 'anonymous' | 'ready' | 'error';
|
|
6
|
-
/**
|
|
7
|
-
* How the chrome gets a bearer and moves the user in and out of a session.
|
|
8
|
-
*
|
|
9
|
-
* Credentials are `@hanzo/iam`'s job, not the design system's — so this is the
|
|
10
|
-
* seam, and a surface using the SDK supplies only the two verbs:
|
|
11
|
-
*
|
|
12
|
-
* auth={{ signIn: () => void startLogin(), signOut: () => void logout() }}
|
|
13
|
-
*
|
|
14
|
-
* The bearer itself needs no wiring: the default reads the SDK's own token
|
|
15
|
-
* store, so there is exactly one token and one refresh timer per surface.
|
|
16
|
-
*/
|
|
17
|
-
interface IdentityAuth {
|
|
18
|
-
/** The IAM access token. Defaults to the `@hanzo/iam` SDK's token store. */
|
|
19
|
-
readonly token?: () => string | null | Promise<string | null>;
|
|
20
|
-
/** Start a sign-in. */
|
|
21
|
-
readonly signIn?: () => void;
|
|
22
|
-
/** End the session. */
|
|
23
|
-
readonly signOut?: () => void;
|
|
24
|
-
}
|
|
25
|
-
interface Identity {
|
|
26
|
-
readonly status: IdentityStatus;
|
|
27
|
-
/** The signed-in principal, or null. */
|
|
28
|
-
readonly account: IamAccount | null;
|
|
29
|
-
/** Organizations the principal can act in. */
|
|
30
|
-
readonly orgs: ReadonlyArray<IamOrg>;
|
|
31
|
-
/** The organization the surface is currently scoped to, or null. */
|
|
32
|
-
readonly org: IamOrg | null;
|
|
33
|
-
/** Projects in the current organization. */
|
|
34
|
-
readonly projects: ReadonlyArray<IamProject>;
|
|
35
|
-
/** The project the surface is currently scoped to, or null. */
|
|
36
|
-
readonly project: IamProject | null;
|
|
37
|
-
/** Why the reads failed, when status is 'error'. */
|
|
38
|
-
readonly error: string | null;
|
|
39
|
-
/** Host-resolved brand, theme, issuer and IAM client. */
|
|
40
|
-
readonly whiteLabel: WhiteLabel;
|
|
41
|
-
readonly setOrg: (name: string) => void;
|
|
42
|
-
readonly setProject: (name: string) => void;
|
|
43
|
-
readonly signIn: () => void;
|
|
44
|
-
readonly signOut: () => void;
|
|
45
|
-
readonly reload: () => void;
|
|
46
|
-
}
|
|
47
|
-
interface IdentityProviderProps {
|
|
48
|
-
readonly children: React.ReactNode;
|
|
49
|
-
/** Bearer + sign-in/out. Defaults to the `@hanzo/iam` token store. */
|
|
50
|
-
readonly auth?: IdentityAuth;
|
|
51
|
-
/** Where sign-in goes when `auth.signIn` is not supplied. */
|
|
52
|
-
readonly loginPath?: string;
|
|
53
|
-
}
|
|
54
|
-
declare const IdentityProvider: ({ children, auth, loginPath, }: IdentityProviderProps) => React.ReactElement;
|
|
55
|
-
/**
|
|
56
|
-
* The current identity.
|
|
57
|
-
*
|
|
58
|
-
* Outside an `<IdentityProvider>` this reports `anonymous` rather than
|
|
59
|
-
* throwing: chrome that renders before a surface has wired identity should
|
|
60
|
-
* offer sign-in, not crash the page.
|
|
61
|
-
*/
|
|
62
|
-
declare function useIdentity(): Identity;
|
|
63
|
-
|
|
64
|
-
export { type Identity, type IdentityAuth, IdentityProvider, type IdentityProviderProps, type IdentityStatus, useIdentity };
|
package/dist/identity.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IamAccount, IamOrg, IamProject } from './iam.js';
|
|
3
|
-
import { WhiteLabel } from './white-label.js';
|
|
4
|
-
|
|
5
|
-
type IdentityStatus = 'loading' | 'anonymous' | 'ready' | 'error';
|
|
6
|
-
/**
|
|
7
|
-
* How the chrome gets a bearer and moves the user in and out of a session.
|
|
8
|
-
*
|
|
9
|
-
* Credentials are `@hanzo/iam`'s job, not the design system's — so this is the
|
|
10
|
-
* seam, and a surface using the SDK supplies only the two verbs:
|
|
11
|
-
*
|
|
12
|
-
* auth={{ signIn: () => void startLogin(), signOut: () => void logout() }}
|
|
13
|
-
*
|
|
14
|
-
* The bearer itself needs no wiring: the default reads the SDK's own token
|
|
15
|
-
* store, so there is exactly one token and one refresh timer per surface.
|
|
16
|
-
*/
|
|
17
|
-
interface IdentityAuth {
|
|
18
|
-
/** The IAM access token. Defaults to the `@hanzo/iam` SDK's token store. */
|
|
19
|
-
readonly token?: () => string | null | Promise<string | null>;
|
|
20
|
-
/** Start a sign-in. */
|
|
21
|
-
readonly signIn?: () => void;
|
|
22
|
-
/** End the session. */
|
|
23
|
-
readonly signOut?: () => void;
|
|
24
|
-
}
|
|
25
|
-
interface Identity {
|
|
26
|
-
readonly status: IdentityStatus;
|
|
27
|
-
/** The signed-in principal, or null. */
|
|
28
|
-
readonly account: IamAccount | null;
|
|
29
|
-
/** Organizations the principal can act in. */
|
|
30
|
-
readonly orgs: ReadonlyArray<IamOrg>;
|
|
31
|
-
/** The organization the surface is currently scoped to, or null. */
|
|
32
|
-
readonly org: IamOrg | null;
|
|
33
|
-
/** Projects in the current organization. */
|
|
34
|
-
readonly projects: ReadonlyArray<IamProject>;
|
|
35
|
-
/** The project the surface is currently scoped to, or null. */
|
|
36
|
-
readonly project: IamProject | null;
|
|
37
|
-
/** Why the reads failed, when status is 'error'. */
|
|
38
|
-
readonly error: string | null;
|
|
39
|
-
/** Host-resolved brand, theme, issuer and IAM client. */
|
|
40
|
-
readonly whiteLabel: WhiteLabel;
|
|
41
|
-
readonly setOrg: (name: string) => void;
|
|
42
|
-
readonly setProject: (name: string) => void;
|
|
43
|
-
readonly signIn: () => void;
|
|
44
|
-
readonly signOut: () => void;
|
|
45
|
-
readonly reload: () => void;
|
|
46
|
-
}
|
|
47
|
-
interface IdentityProviderProps {
|
|
48
|
-
readonly children: React.ReactNode;
|
|
49
|
-
/** Bearer + sign-in/out. Defaults to the `@hanzo/iam` token store. */
|
|
50
|
-
readonly auth?: IdentityAuth;
|
|
51
|
-
/** Where sign-in goes when `auth.signIn` is not supplied. */
|
|
52
|
-
readonly loginPath?: string;
|
|
53
|
-
}
|
|
54
|
-
declare const IdentityProvider: ({ children, auth, loginPath, }: IdentityProviderProps) => React.ReactElement;
|
|
55
|
-
/**
|
|
56
|
-
* The current identity.
|
|
57
|
-
*
|
|
58
|
-
* Outside an `<IdentityProvider>` this reports `anonymous` rather than
|
|
59
|
-
* throwing: chrome that renders before a surface has wired identity should
|
|
60
|
-
* offer sign-in, not crash the page.
|
|
61
|
-
*/
|
|
62
|
-
declare function useIdentity(): Identity;
|
|
63
|
-
|
|
64
|
-
export { type Identity, type IdentityAuth, IdentityProvider, type IdentityProviderProps, type IdentityStatus, useIdentity };
|
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,64 +0,0 @@
|
|
|
1
|
-
export { AppProvider, useWhiteLabel } from './provider.cjs';
|
|
2
|
-
export { cn } from './utils.cjs';
|
|
3
|
-
export { NARROW_PX, TOUCH_PX, useBelow, useIsNarrow, useIsTouch } from './use-narrow.cjs';
|
|
4
|
-
export { IAM_PAGE_SIZE, IamAccount, IamCall, IamError, IamOrg, IamProject, iam, iamBase } from './iam.cjs';
|
|
5
|
-
export { Identity, IdentityAuth, IdentityProvider, IdentityProviderProps, IdentityStatus, useIdentity } from './identity.cjs';
|
|
6
|
-
export { AppNav, AppNavProps, ChromeItem, NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, SettingsMenuProps, Switcher, SwitcherProps, UserMenu, UserMenuProps, initials } from './chrome.cjs';
|
|
7
|
-
export { DEFAULT_ORG, LUX_BRAND, LuxBrand, Org, OrgIdentity, PARS_GOLD, WhiteLabel, currentHost, orgIdentity, orgs, resolveWhiteLabel } from './white-label.cjs';
|
|
8
|
-
export { Conf, default as config, default as guiConfig, luxThemes } from './lux.config.cjs';
|
|
9
|
-
export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoot, useAccordion } from './accordion.cjs';
|
|
10
|
-
export { Alert, AlertProps } from './alert.cjs';
|
|
11
|
-
export { Avatar, AvatarGroup, AvatarProps } from './avatar.cjs';
|
|
12
|
-
export { Badge, BadgeProps } from './badge.cjs';
|
|
13
|
-
export { Button, ButtonGroup, ButtonGroupProps, ButtonGroupRadio, ButtonGroupRadioProps, ButtonProps, buttonVariants } from './button.cjs';
|
|
14
|
-
export { Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps } from './checkbox.cjs';
|
|
15
|
-
export { CloseButton, CloseButtonProps } from './close-button.cjs';
|
|
16
|
-
export { CollapsibleDetails, CollapsibleList } from './collapsible.cjs';
|
|
17
|
-
export { ColorMode, ColorModeProvider, useColorMode, useColorModeValue } from './color-mode.cjs';
|
|
18
|
-
export { DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from './dialog.cjs';
|
|
19
|
-
export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, DrawerTitle, DrawerTrigger } from './drawer.cjs';
|
|
20
|
-
export { EmptyState, EmptyStateProps } from './empty-state.cjs';
|
|
21
|
-
export { Field, FieldProps } from './field.cjs';
|
|
22
|
-
export { Heading, HeadingProps } from './heading.cjs';
|
|
23
|
-
export { IconButton, IconButtonProps } from './icon-button.cjs';
|
|
24
|
-
export { Image, ImageProps } from './image.cjs';
|
|
25
|
-
export { Input, InputProps } from './input.cjs';
|
|
26
|
-
export { InputGroup, InputGroupProps } from './input-group.cjs';
|
|
27
|
-
export { Link, LinkBox, LinkExternalIcon, LinkOverlay, LinkProps } from './link.cjs';
|
|
28
|
-
export { MenuArrow, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuItemText, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem } from './menu.cjs';
|
|
29
|
-
export { PinInput } from './pin-input.cjs';
|
|
30
|
-
export { PopoverArrow, PopoverBody, PopoverCloseTrigger, PopoverCloseTriggerWrapper, PopoverContent, PopoverDescription, PopoverFooter, PopoverHeader, PopoverRoot, PopoverTitle, PopoverTrigger } from './popover.cjs';
|
|
31
|
-
export { Progress } from './progress.cjs';
|
|
32
|
-
export { ProgressCircleRing, ProgressCircleRoot, ProgressCircleValueText } from './progress-circle.cjs';
|
|
33
|
-
export { Radio, RadioGroup } from './radio.cjs';
|
|
34
|
-
export { Rating } from './rating.cjs';
|
|
35
|
-
export { ListCollection, Select, SelectAsync, SelectAsyncProps, SelectClearTrigger, SelectContent, SelectControl, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectOption, SelectProps, SelectRoot, SelectRootProps, SelectValueText, createListCollection } from './select.cjs';
|
|
36
|
-
export { Separator, SeparatorProps } from './separator.cjs';
|
|
37
|
-
export { Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps } from './skeleton.cjs';
|
|
38
|
-
export { Slider } from './slider.cjs';
|
|
39
|
-
export { Switch } from './switch.cjs';
|
|
40
|
-
export { TableBody, TableCaption, TableCell, TableColumnHeader, TableColumnHeaderSortable, TableFooter, TableHeader, TableHeaderSticky, TableRoot, TableRow, TableScrollWrapper } from './table.cjs';
|
|
41
|
-
export { TabsContent, TabsCounter, TabsList, TabsRoot, TabsTrigger } from './tabs.cjs';
|
|
42
|
-
export { Tag, TagProps } from './tag.cjs';
|
|
43
|
-
export { Textarea, TextareaProps } from './textarea.cjs';
|
|
44
|
-
export { Toaster, toaster } from './toaster.cjs';
|
|
45
|
-
export { Tooltip, TooltipProps } from './tooltip.cjs';
|
|
46
|
-
export { OptionChain, OptionChainProps, OptionContract, OptionQuote, Strike } from './option-chain.cjs';
|
|
47
|
-
export { GreeksDisplay, GreeksDisplayProps } from './greeks-display.cjs';
|
|
48
|
-
export { StrategyBuilder, StrategyBuilderProps, StrategyLeg, StrategySubmission, StrategyType } from './strategy-builder.cjs';
|
|
49
|
-
export { PnlDiagram, PnlDiagramProps } from './pnl-diagram.cjs';
|
|
50
|
-
export { OptionPosition, OptionPositionCard, OptionPositionCardProps } from './option-position.cjs';
|
|
51
|
-
export { ExpirationOption, ExpirationSelector, ExpirationSelectorProps } from './expiration-selector.cjs';
|
|
52
|
-
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';
|
|
53
|
-
import '@tanstack/react-query';
|
|
54
|
-
import 'react';
|
|
55
|
-
import 'clsx';
|
|
56
|
-
import '@hanzogui/web';
|
|
57
|
-
import '@hanzogui/themes/v5';
|
|
58
|
-
import '@radix-ui/react-accordion';
|
|
59
|
-
import 'react/jsx-runtime';
|
|
60
|
-
import '@hanzo/gui';
|
|
61
|
-
import '@hanzogui/core';
|
|
62
|
-
import '@radix-ui/react-dialog';
|
|
63
|
-
import '@radix-ui/react-select';
|
|
64
|
-
import '@radix-ui/react-tabs';
|