@luxfi/ui 7.4.15 → 8.0.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.
- package/LICENSE.md +21 -0
- package/dist/accordion.d.ts +10 -12
- package/dist/accordion.d.ts.map +1 -0
- package/dist/alert.cjs +7 -11
- package/dist/alert.d.ts +4 -5
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +1 -5
- package/dist/auth.d.ts +11 -13
- package/dist/auth.d.ts.map +1 -0
- package/dist/avatar.d.ts +5 -6
- package/dist/avatar.d.ts.map +1 -0
- package/dist/badge.cjs +7 -11
- package/dist/badge.d.ts +7 -8
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +1 -5
- package/dist/bank.d.ts +38 -43
- package/dist/bank.d.ts.map +1 -0
- package/dist/button.cjs +7 -11
- package/dist/button.d.ts +8 -9
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +1 -5
- package/dist/checkbox.d.ts +6 -7
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/chrome.cjs +4 -8
- package/dist/chrome.d.ts +15 -19
- package/dist/chrome.d.ts.map +1 -0
- package/dist/chrome.js +1 -5
- package/dist/close-button.d.ts +3 -5
- package/dist/close-button.d.ts.map +1 -0
- package/dist/collapsible.cjs +19 -23
- package/dist/collapsible.d.ts +11 -13
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +1 -5
- package/dist/color-mode.d.ts +7 -9
- package/dist/color-mode.d.ts.map +1 -0
- package/dist/dialog.cjs +7 -11
- package/dist/dialog.d.ts +50 -54
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +1 -5
- package/dist/drawer.d.ts +33 -38
- package/dist/drawer.d.ts.map +1 -0
- package/dist/empty-state.d.ts +4 -6
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/engine.d.ts +35 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/expiration-selector.d.ts +4 -6
- package/dist/expiration-selector.d.ts.map +1 -0
- package/dist/field.d.ts +5 -7
- package/dist/field.d.ts.map +1 -0
- package/dist/greeks-display.d.ts +3 -5
- package/dist/greeks-display.d.ts.map +1 -0
- package/dist/gui.d.ts +1 -1
- package/dist/gui.d.ts.map +1 -0
- package/dist/heading.d.ts +4 -6
- package/dist/heading.d.ts.map +1 -0
- package/dist/iam.d.ts +10 -12
- package/dist/iam.d.ts.map +1 -0
- package/dist/icon-button.cjs +7 -11
- package/dist/icon-button.d.ts +4 -5
- package/dist/icon-button.d.ts.map +1 -0
- package/dist/icon-button.js +1 -5
- package/dist/icons.d.ts +1 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/identity.d.ts +9 -11
- package/dist/identity.d.ts.map +1 -0
- package/dist/image.cjs +8 -12
- package/dist/image.d.ts +10 -11
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +1 -5
- package/dist/index.cjs +65 -66
- package/dist/index.d.ts +86 -60
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -9
- package/dist/ink.d.ts +14 -0
- package/dist/ink.d.ts.map +1 -0
- package/dist/input-group.d.ts +4 -6
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input.d.ts +8 -9
- package/dist/input.d.ts.map +1 -0
- package/dist/link.cjs +19 -23
- package/dist/link.d.ts +9 -11
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +1 -5
- package/dist/lux.config.d.ts +521 -524
- package/dist/lux.config.d.ts.map +1 -0
- package/dist/menu.d.ts +30 -31
- package/dist/menu.d.ts.map +1 -0
- package/dist/next.d.ts +5 -7
- package/dist/next.d.ts.map +1 -0
- package/dist/option-chain.d.ts +6 -8
- package/dist/option-chain.d.ts.map +1 -0
- package/dist/option-position.d.ts +4 -6
- package/dist/option-position.d.ts.map +1 -0
- package/dist/pin-input.cjs +1 -1
- package/dist/pin-input.d.ts +3 -5
- package/dist/pin-input.d.ts.map +1 -0
- package/dist/pin-input.js +1 -1
- package/dist/pnl-diagram.d.ts +5 -6
- package/dist/pnl-diagram.d.ts.map +1 -0
- package/dist/popover.cjs +9 -13
- package/dist/popover.d.ts +24 -25
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +1 -5
- package/dist/progress-circle.cjs +2 -6
- package/dist/progress-circle.d.ts +8 -9
- package/dist/progress-circle.d.ts.map +1 -0
- package/dist/progress-circle.js +1 -5
- package/dist/progress.d.ts +3 -4
- package/dist/progress.d.ts.map +1 -0
- package/dist/provider.d.ts +8 -10
- package/dist/provider.d.ts.map +1 -0
- package/dist/radio.d.ts +6 -7
- package/dist/radio.d.ts.map +1 -0
- package/dist/rating.d.ts +3 -5
- package/dist/rating.d.ts.map +1 -0
- package/dist/select.cjs +16 -20
- package/dist/select.d.ts +38 -41
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +1 -5
- package/dist/separator.d.ts +5 -6
- package/dist/separator.d.ts.map +1 -0
- package/dist/skeleton.cjs +7 -11
- package/dist/skeleton.d.ts +9 -12
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +1 -5
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +3 -5
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +1 -1
- package/dist/strategy-builder.d.ts +6 -8
- package/dist/strategy-builder.d.ts.map +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +3 -5
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.js +1 -1
- package/dist/table.cjs +30 -34
- package/dist/table.d.ts +23 -25
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +1 -5
- package/dist/tabs.d.ts +12 -13
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tag.cjs +7 -11
- package/dist/tag.d.ts +4 -5
- package/dist/tag.d.ts.map +1 -0
- package/dist/tag.js +1 -5
- package/dist/textarea.d.ts +5 -6
- package/dist/textarea.d.ts.map +1 -0
- package/dist/toaster.d.ts +4 -5
- package/dist/toaster.d.ts.map +1 -0
- package/dist/tooltip.d.ts +3 -5
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/use-narrow.d.ts +6 -7
- package/dist/use-narrow.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils.cjs +6 -7
- package/dist/utils.d.ts +13 -5
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +1 -9
- package/dist/vite.d.ts +3 -3
- package/dist/vite.d.ts.map +1 -0
- package/dist/white-label.d.ts +12 -12
- package/dist/white-label.d.ts.map +1 -0
- package/package.json +19 -17
- package/src/pin-input.tsx +1 -1
- package/src/slider.tsx +1 -1
- package/src/switch.tsx +1 -1
- package/src/utils/cn.ts +3 -7
- package/src/utils.ts +12 -6
- package/tokens.css +11 -0
- package/dist/accordion.d.cts +0 -41
- package/dist/alert.d.cts +0 -30
- package/dist/auth.d.cts +0 -80
- package/dist/avatar.d.cts +0 -25
- package/dist/badge.d.cts +0 -19
- package/dist/bank.d.cts +0 -83
- package/dist/button.d.cts +0 -51
- package/dist/checkbox.d.cts +0 -32
- package/dist/chrome.d.cts +0 -93
- package/dist/close-button.d.cts +0 -9
- package/dist/collapsible.d.cts +0 -24
- package/dist/color-mode.d.cts +0 -25
- package/dist/dialog.d.cts +0 -118
- package/dist/drawer.d.cts +0 -69
- package/dist/empty-state.d.cts +0 -13
- package/dist/expiration-selector.d.cts +0 -16
- package/dist/field.d.cts +0 -23
- package/dist/greeks-display.d.cts +0 -14
- package/dist/gui.d.cts +0 -2
- package/dist/heading.d.cts +0 -8
- package/dist/iam.d.cts +0 -65
- package/dist/icon-button.d.cts +0 -37
- package/dist/icons.d.cts +0 -1
- package/dist/identity.d.cts +0 -64
- package/dist/image.d.cts +0 -57
- package/dist/index.d.cts +0 -60
- package/dist/input-group.d.cts +0 -17
- package/dist/input.d.cts +0 -37
- package/dist/link.d.cts +0 -37
- package/dist/lux.config.d.cts +0 -981
- package/dist/menu.d.cts +0 -68
- package/dist/next.d.cts +0 -32
- package/dist/option-chain.d.cts +0 -37
- package/dist/option-position.d.cts +0 -29
- package/dist/pin-input.d.cts +0 -25
- package/dist/pnl-diagram.d.cts +0 -11
- package/dist/popover.d.cts +0 -73
- package/dist/progress-circle.d.cts +0 -47
- package/dist/progress.d.cts +0 -28
- package/dist/provider.d.cts +0 -25
- package/dist/radio.d.cts +0 -53
- package/dist/rating.d.cts +0 -14
- package/dist/select.d.cts +0 -161
- package/dist/separator.d.cts +0 -13
- package/dist/skeleton.d.cts +0 -76
- package/dist/slider.d.cts +0 -24
- package/dist/strategy-builder.d.cts +0 -26
- package/dist/switch.d.cts +0 -27
- package/dist/table.d.cts +0 -107
- package/dist/tabs.d.cts +0 -34
- package/dist/tag.d.cts +0 -21
- package/dist/textarea.d.cts +0 -13
- package/dist/toaster.d.cts +0 -28
- package/dist/tooltip.d.cts +0 -38
- package/dist/use-narrow.d.cts +0 -12
- package/dist/utils.d.cts +0 -5
- package/dist/vite.d.cts +0 -29
- package/dist/white-label.d.cts +0 -59
package/dist/button.d.cts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const VARIANT_CLASSES: Record<string, string>;
|
|
4
|
-
type ButtonVariant = keyof typeof VARIANT_CLASSES;
|
|
5
|
-
type ButtonSize = '2xs' | 'xs' | 'sm' | 'md';
|
|
6
|
-
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
|
|
7
|
-
readonly variant?: ButtonVariant;
|
|
8
|
-
readonly size?: ButtonSize;
|
|
9
|
-
readonly asChild?: boolean;
|
|
10
|
-
readonly loading?: boolean;
|
|
11
|
-
readonly loadingText?: React.ReactNode;
|
|
12
|
-
readonly loadingSkeleton?: boolean;
|
|
13
|
-
readonly expanded?: boolean;
|
|
14
|
-
readonly selected?: boolean;
|
|
15
|
-
readonly highlighted?: boolean;
|
|
16
|
-
readonly mt?: number | string;
|
|
17
|
-
readonly ml?: number | string;
|
|
18
|
-
readonly mr?: number | string;
|
|
19
|
-
readonly px?: number | string;
|
|
20
|
-
readonly py?: number | string;
|
|
21
|
-
readonly fontWeight?: number | string;
|
|
22
|
-
readonly gap?: number | string;
|
|
23
|
-
readonly flexShrink?: number;
|
|
24
|
-
readonly columnGap?: number | string;
|
|
25
|
-
readonly gridColumn?: number | string;
|
|
26
|
-
readonly gridRow?: string;
|
|
27
|
-
readonly justifySelf?: string;
|
|
28
|
-
readonly alignSelf?: string;
|
|
29
|
-
readonly textStyle?: string;
|
|
30
|
-
readonly h?: string;
|
|
31
|
-
readonly w?: string;
|
|
32
|
-
readonly display?: string;
|
|
33
|
-
readonly borderBottomRightRadius?: number | string;
|
|
34
|
-
readonly borderTopRightRadius?: number | string;
|
|
35
|
-
readonly 'data-call-strategy'?: string;
|
|
36
|
-
}
|
|
37
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
-
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
39
|
-
}
|
|
40
|
-
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
interface ButtonGroupRadioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
|
|
42
|
-
children: Array<React.ReactElement<ButtonProps>>;
|
|
43
|
-
onChange?: (value: string) => void;
|
|
44
|
-
defaultValue?: string;
|
|
45
|
-
loading?: boolean;
|
|
46
|
-
equalWidth?: boolean;
|
|
47
|
-
variant?: ButtonProps['variant'];
|
|
48
|
-
}
|
|
49
|
-
declare const ButtonGroupRadio: React.ForwardRefExoticComponent<ButtonGroupRadioProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
|
|
51
|
-
export { Button, ButtonGroup, type ButtonGroupProps, ButtonGroupRadio, type ButtonGroupRadioProps, type ButtonProps };
|
package/dist/checkbox.d.cts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
/** Tri-state, as the Chakra/Radix contract consumers already code against. */
|
|
4
|
-
type CheckedState = boolean | 'indeterminate';
|
|
5
|
-
interface CheckboxGroupProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
6
|
-
value?: Array<string>;
|
|
7
|
-
defaultValue?: Array<string>;
|
|
8
|
-
onValueChange?: (value: Array<string>) => void;
|
|
9
|
-
orientation?: 'vertical' | 'horizontal';
|
|
10
|
-
name?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<'label'>, 'onChange'> {
|
|
16
|
-
icon?: React.ReactNode;
|
|
17
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
18
|
-
rootRef?: React.Ref<HTMLLabelElement>;
|
|
19
|
-
checked?: boolean | 'indeterminate';
|
|
20
|
-
defaultChecked?: boolean;
|
|
21
|
-
onCheckedChange?: (checked: CheckedState) => void;
|
|
22
|
-
onChange?: React.FormEventHandler<HTMLLabelElement>;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
readOnly?: boolean;
|
|
25
|
-
value?: string;
|
|
26
|
-
size?: 'sm' | 'md';
|
|
27
|
-
name?: string;
|
|
28
|
-
required?: boolean;
|
|
29
|
-
}
|
|
30
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
-
|
|
32
|
-
export { Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps };
|
package/dist/chrome.d.cts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IdentityStatus } from './identity.cjs';
|
|
3
|
-
import './iam.cjs';
|
|
4
|
-
import './white-label.cjs';
|
|
5
|
-
|
|
6
|
-
/** One row in a switcher. */
|
|
7
|
-
interface ChromeItem {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly label: string;
|
|
10
|
-
/** Secondary text, right-aligned — a plan, a count, a shortcut. */
|
|
11
|
-
readonly hint?: string;
|
|
12
|
-
readonly icon?: React.ReactNode;
|
|
13
|
-
readonly selected?: boolean;
|
|
14
|
-
readonly danger?: boolean;
|
|
15
|
-
readonly href?: string;
|
|
16
|
-
readonly onSelect?: () => void;
|
|
17
|
-
}
|
|
18
|
-
/** 1–2 letter monogram — the honest fallback when there is no logo. */
|
|
19
|
-
declare function initials(label: string): string;
|
|
20
|
-
interface SwitcherProps {
|
|
21
|
-
/** Panel heading, drawer title and the trigger's accessible name. */
|
|
22
|
-
readonly title: string;
|
|
23
|
-
/** Trigger label. */
|
|
24
|
-
readonly label: string;
|
|
25
|
-
/** Trigger icon — usually a logo or monogram. */
|
|
26
|
-
readonly icon?: React.ReactNode;
|
|
27
|
-
readonly items: ReadonlyArray<ChromeItem>;
|
|
28
|
-
/** Rows below a separator — create, settings, sign out. */
|
|
29
|
-
readonly footer?: ReadonlyArray<ChromeItem>;
|
|
30
|
-
/** Drives the honest empty states. Defaults to 'ready'. */
|
|
31
|
-
readonly status?: IdentityStatus;
|
|
32
|
-
/** Shown when signed in and the list really is empty. */
|
|
33
|
-
readonly empty?: string;
|
|
34
|
-
/** Shown, as a sign-in action, when nobody is signed in. */
|
|
35
|
-
readonly onSignIn?: () => void;
|
|
36
|
-
readonly signInLabel?: string;
|
|
37
|
-
readonly error?: string | null;
|
|
38
|
-
readonly align?: 'start' | 'end';
|
|
39
|
-
readonly testId?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* The ONE switcher. A trigger plus rows, presented as a phone sheet or an
|
|
43
|
-
* anchored menu depending on the viewport — never both, never hand-rolled.
|
|
44
|
-
*/
|
|
45
|
-
declare const Switcher: ({ title, label, icon, items, footer, status, empty, onSignIn, signInLabel, error, align, testId, }: SwitcherProps) => React.ReactElement;
|
|
46
|
-
/** Which organization is this surface acting as. */
|
|
47
|
-
declare const OrgSwitcher: () => React.ReactElement;
|
|
48
|
-
/** Which project inside that organization. */
|
|
49
|
-
declare const ProjectSwitcher: () => React.ReactElement | null;
|
|
50
|
-
interface UserMenuProps {
|
|
51
|
-
/** Extra rows above Sign out — Profile, API keys, whatever the surface has. */
|
|
52
|
-
readonly items?: ReadonlyArray<ChromeItem>;
|
|
53
|
-
}
|
|
54
|
-
/** Who is signed in, and how to stop being signed in. */
|
|
55
|
-
declare const UserMenu: ({ items }: UserMenuProps) => React.ReactElement;
|
|
56
|
-
interface SettingsMenuProps {
|
|
57
|
-
/** The surface's own settings rows. */
|
|
58
|
-
readonly items?: ReadonlyArray<ChromeItem>;
|
|
59
|
-
/** Where "All settings" goes. */
|
|
60
|
-
readonly href?: string;
|
|
61
|
-
}
|
|
62
|
-
/** The surface's settings, in the one place a user looks for them. */
|
|
63
|
-
declare const SettingsMenu: ({ items, href }: SettingsMenuProps) => React.ReactElement;
|
|
64
|
-
interface NavLink {
|
|
65
|
-
readonly href: string;
|
|
66
|
-
readonly label: string;
|
|
67
|
-
readonly active?: boolean;
|
|
68
|
-
}
|
|
69
|
-
interface AppNavProps {
|
|
70
|
-
/** Brand slot — defaults to the host-resolved org name. */
|
|
71
|
-
readonly brand?: React.ReactNode;
|
|
72
|
-
/** Where the brand links to. */
|
|
73
|
-
readonly home?: string;
|
|
74
|
-
readonly links?: ReadonlyArray<NavLink>;
|
|
75
|
-
/** Show the org switcher. Default true. */
|
|
76
|
-
readonly org?: boolean;
|
|
77
|
-
/** Show the project switcher. Default false — most surfaces have no projects. */
|
|
78
|
-
readonly project?: boolean;
|
|
79
|
-
/** Rows for the settings menu; omit the prop to hide the menu. */
|
|
80
|
-
readonly settings?: ReadonlyArray<ChromeItem>;
|
|
81
|
-
/** Extra rows in the user menu. */
|
|
82
|
-
readonly userItems?: ReadonlyArray<ChromeItem>;
|
|
83
|
-
/** Free slot between the links and the right-hand cluster. */
|
|
84
|
-
readonly children?: React.ReactNode;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* The ONE nav. Brand, org, project, links, settings, user — in that order, at
|
|
88
|
-
* every surface. On a phone the links collapse into the same sheet the
|
|
89
|
-
* switchers use, so there is no second mobile menu to maintain.
|
|
90
|
-
*/
|
|
91
|
-
declare const AppNav: ({ brand, home, links, org, project, settings, userItems, children, }: AppNavProps) => React.ReactElement;
|
|
92
|
-
|
|
93
|
-
export { AppNav, type AppNavProps, type ChromeItem, type NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, type SettingsMenuProps, Switcher, type SwitcherProps, UserMenu, type UserMenuProps, initials };
|
package/dist/close-button.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CloseButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
|
|
4
|
-
readonly variant?: 'plain';
|
|
5
|
-
readonly size?: 'md';
|
|
6
|
-
}
|
|
7
|
-
declare const CloseButton: React.ForwardRefExoticComponent<CloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
|
|
9
|
-
export { CloseButton, type CloseButtonProps };
|
package/dist/collapsible.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { YStack } from '@hanzo/gui';
|
|
3
|
-
import React__default from 'react';
|
|
4
|
-
import { LinkProps } from './link.cjs';
|
|
5
|
-
|
|
6
|
-
interface CollapsibleDetailsProps extends LinkProps {
|
|
7
|
-
children: React__default.ReactNode;
|
|
8
|
-
id?: string;
|
|
9
|
-
isExpanded?: boolean;
|
|
10
|
-
text?: [string, string];
|
|
11
|
-
noScroll?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const CollapsibleDetails: (props: CollapsibleDetailsProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
-
interface CollapsibleListProps<T> extends Omit<React__default.ComponentProps<typeof YStack>, 'children' | 'text' | 'items'> {
|
|
15
|
-
items: Array<T>;
|
|
16
|
-
renderItem: (item: T, index: number) => React__default.ReactNode;
|
|
17
|
-
triggerProps?: LinkProps;
|
|
18
|
-
cutLength?: number;
|
|
19
|
-
text?: [React__default.ReactNode, React__default.ReactNode];
|
|
20
|
-
defaultExpanded?: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare const CollapsibleList: <T>(props: CollapsibleListProps<T>) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
export { CollapsibleDetails, type CollapsibleDetailsProps, CollapsibleList };
|
package/dist/color-mode.d.cts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 };
|
package/dist/dialog.d.cts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import * as _hanzo_gui from '@hanzo/gui';
|
|
2
|
-
import * as _hanzogui_web from '@hanzogui/web';
|
|
3
|
-
import * as _hanzogui_core from '@hanzogui/core';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
type DialogSize = 'sm' | 'md' | 'full' | 'cover';
|
|
7
|
-
/**
|
|
8
|
-
* Responsive size expressed as a plain value or a breakpoint map.
|
|
9
|
-
* Mirrors the Chakra `size={{ lgDown: 'full', lg: 'md' }}` pattern.
|
|
10
|
-
* Responsive behavior is implemented via Tailwind responsive variants at
|
|
11
|
-
* the CSS-class level (see `sizeClasses` helper below).
|
|
12
|
-
*/
|
|
13
|
-
type ResponsiveSize = DialogSize | {
|
|
14
|
-
base?: DialogSize;
|
|
15
|
-
lgDown?: DialogSize;
|
|
16
|
-
lg?: DialogSize;
|
|
17
|
-
};
|
|
18
|
-
interface DialogRootProps {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
open?: boolean;
|
|
21
|
-
defaultOpen?: boolean;
|
|
22
|
-
onOpenChange?: (details: {
|
|
23
|
-
open: boolean;
|
|
24
|
-
}) => void;
|
|
25
|
-
size?: ResponsiveSize;
|
|
26
|
-
/** Accepted for API compat but not implemented -- animations are CSS-only. */
|
|
27
|
-
motionPreset?: string;
|
|
28
|
-
modal?: boolean;
|
|
29
|
-
}
|
|
30
|
-
declare const DialogRoot: React.FC<DialogRootProps>;
|
|
31
|
-
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
-
portalled?: boolean;
|
|
33
|
-
portalRef?: React.RefObject<HTMLElement>;
|
|
34
|
-
backdrop?: boolean;
|
|
35
|
-
paddingTop?: number | string;
|
|
36
|
-
}
|
|
37
|
-
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
-
interface DialogCloseTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
39
|
-
}
|
|
40
|
-
declare const DialogCloseTrigger: React.ForwardRefExoticComponent<DialogCloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
-
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
|
-
startElement?: React.ReactNode;
|
|
43
|
-
onBackToClick?: () => void;
|
|
44
|
-
}
|
|
45
|
-
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
-
interface DialogBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
47
|
-
pt?: number | string;
|
|
48
|
-
display?: string;
|
|
49
|
-
flexDir?: string;
|
|
50
|
-
}
|
|
51
|
-
declare const DialogBody: React.ForwardRefExoticComponent<DialogBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
-
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
53
|
-
}
|
|
54
|
-
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
-
declare const DialogBackdrop: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {
|
|
56
|
-
open?: boolean | undefined;
|
|
57
|
-
unstyled?: boolean | undefined;
|
|
58
|
-
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
59
|
-
fullscreen?: boolean | undefined;
|
|
60
|
-
}>, "scope" | "forceMount"> & {
|
|
61
|
-
forceMount?: boolean;
|
|
62
|
-
} & {
|
|
63
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
64
|
-
}, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
|
|
65
|
-
forceMount?: boolean;
|
|
66
|
-
} & {
|
|
67
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
68
|
-
}, _hanzogui_web.StackStyleBase, {
|
|
69
|
-
open?: boolean | undefined;
|
|
70
|
-
unstyled?: boolean | undefined;
|
|
71
|
-
elevation?: number | _hanzogui_web.SizeTokens | undefined;
|
|
72
|
-
fullscreen?: boolean | undefined;
|
|
73
|
-
}, _hanzogui_web.StaticConfigPublic>;
|
|
74
|
-
declare const DialogTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
75
|
-
unstyled?: boolean | undefined;
|
|
76
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
77
|
-
}>, "scope"> & {
|
|
78
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
79
|
-
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
80
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
81
|
-
}, _hanzogui_web.TextStylePropsBase, {
|
|
82
|
-
unstyled?: boolean | undefined;
|
|
83
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
84
|
-
}, _hanzogui_web.StaticConfigPublic>;
|
|
85
|
-
declare const DialogDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
86
|
-
unstyled?: boolean | undefined;
|
|
87
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
88
|
-
}>, "scope"> & {
|
|
89
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
90
|
-
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
91
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
92
|
-
}, _hanzogui_web.TextStylePropsBase, {
|
|
93
|
-
unstyled?: boolean | undefined;
|
|
94
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
95
|
-
}, _hanzogui_web.StaticConfigPublic>;
|
|
96
|
-
interface DialogTriggerProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
97
|
-
}
|
|
98
|
-
declare const DialogTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope"> & {
|
|
99
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
100
|
-
}, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
|
|
101
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
102
|
-
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
103
|
-
/**
|
|
104
|
-
* `DialogActionTrigger` renders its child and closes the dialog on click.
|
|
105
|
-
* This mirrors the Chakra `Dialog.ActionTrigger` behavior which wraps
|
|
106
|
-
* children in a close action.
|
|
107
|
-
*/
|
|
108
|
-
declare const DialogActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
|
|
109
|
-
displayWhenAdapted?: boolean;
|
|
110
|
-
} & {
|
|
111
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
112
|
-
}, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
|
|
113
|
-
displayWhenAdapted?: boolean;
|
|
114
|
-
} & {
|
|
115
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
116
|
-
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
117
|
-
|
|
118
|
-
export { DialogActionTrigger, DialogBackdrop, DialogBody, type DialogBodyProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogRoot, type DialogRootProps, DialogTitle, DialogTrigger, type DialogTriggerProps };
|
package/dist/drawer.d.cts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as _hanzogui_core from '@hanzogui/core';
|
|
2
|
-
import * as _hanzo_gui from '@hanzo/gui';
|
|
3
|
-
import { Dialog, YStack, XStack } from '@hanzo/gui';
|
|
4
|
-
import * as _hanzogui_web from '@hanzogui/web';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
|
|
8
|
-
interface DrawerRootProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
open?: boolean;
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
onOpenChange?: (details: {
|
|
13
|
-
open: boolean;
|
|
14
|
-
}) => void;
|
|
15
|
-
placement?: Placement;
|
|
16
|
-
initialFocusEl?: (() => HTMLElement | null) | React.RefObject<HTMLElement>;
|
|
17
|
-
lazyMount?: boolean;
|
|
18
|
-
unmountOnExit?: boolean;
|
|
19
|
-
modal?: boolean;
|
|
20
|
-
size?: Size;
|
|
21
|
-
}
|
|
22
|
-
type Placement = 'left' | 'right' | 'top' | 'bottom';
|
|
23
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
24
|
-
declare const DrawerRoot: (props: DrawerRootProps) => react_jsx_runtime.JSX.Element;
|
|
25
|
-
interface DrawerContentProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
26
|
-
portalled?: boolean;
|
|
27
|
-
portalRef?: React.RefObject<HTMLElement>;
|
|
28
|
-
offset?: string | number;
|
|
29
|
-
backdrop?: boolean;
|
|
30
|
-
}
|
|
31
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
declare const DrawerCloseTrigger: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
declare const DrawerTrigger: ({ asChild, children, ...rest }: React.ComponentProps<typeof Dialog.Trigger>) => react_jsx_runtime.JSX.Element;
|
|
34
|
-
declare const DrawerHeader: ({ children, ...props }: React.ComponentProps<typeof YStack>) => react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare const DrawerBody: ({ children, ...props }: React.ComponentProps<typeof YStack>) => react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare const DrawerFooter: ({ children, ...props }: React.ComponentProps<typeof XStack>) => react_jsx_runtime.JSX.Element;
|
|
37
|
-
declare const DrawerTitle: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
38
|
-
unstyled?: boolean | undefined;
|
|
39
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
40
|
-
}>, "scope"> & {
|
|
41
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
42
|
-
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
43
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
44
|
-
}, _hanzogui_web.TextStylePropsBase, {
|
|
45
|
-
unstyled?: boolean | undefined;
|
|
46
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
47
|
-
}, _hanzogui_web.StaticConfigPublic>;
|
|
48
|
-
declare const DrawerDescription: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_web.TextNonStyleProps, _hanzogui_web.TextStylePropsBase, {
|
|
49
|
-
unstyled?: boolean | undefined;
|
|
50
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
51
|
-
}>, "scope"> & {
|
|
52
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
53
|
-
}, _hanzogui_web.GuiTextElement, _hanzogui_web.TextNonStyleProps & {
|
|
54
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
55
|
-
}, _hanzogui_web.TextStylePropsBase, {
|
|
56
|
-
unstyled?: boolean | undefined;
|
|
57
|
-
size?: _hanzogui_web.FontSizeTokens | undefined;
|
|
58
|
-
}, _hanzogui_web.StaticConfigPublic>;
|
|
59
|
-
declare const DrawerActionTrigger: _hanzogui_web.GuiComponent<Omit<_hanzogui_web.GetFinalProps<_hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_web.StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
|
|
60
|
-
displayWhenAdapted?: boolean;
|
|
61
|
-
} & {
|
|
62
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
63
|
-
}, _hanzogui_web.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps & {
|
|
64
|
-
displayWhenAdapted?: boolean;
|
|
65
|
-
} & {
|
|
66
|
-
scope?: _hanzo_gui.DialogScopes;
|
|
67
|
-
}, _hanzogui_web.StackStyleBase, {}, _hanzogui_web.StaticConfigPublic>;
|
|
68
|
-
|
|
69
|
-
export { DrawerActionTrigger, DrawerBody, DrawerCloseTrigger, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerRoot, type DrawerRootProps, DrawerTitle, DrawerTrigger };
|
package/dist/empty-state.d.cts
DELETED
|
@@ -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 };
|
package/dist/field.d.cts
DELETED
|
@@ -1,23 +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 id?: string;
|
|
18
|
-
readonly className?: string;
|
|
19
|
-
readonly style?: React.CSSProperties;
|
|
20
|
-
}
|
|
21
|
-
declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
|
|
23
|
-
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/gui.d.cts
DELETED
package/dist/heading.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
interface HeadingProps extends React__default.ComponentPropsWithoutRef<'h1'> {
|
|
4
|
-
level?: '1' | '2' | '3';
|
|
5
|
-
}
|
|
6
|
-
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
7
|
-
|
|
8
|
-
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/icon-button.d.cts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
type Style = Record<string, unknown>;
|
|
4
|
-
/**
|
|
5
|
-
* Resting look, and the looks that replace it while selected or expanded.
|
|
6
|
-
* Merged in that order, so a key set in two of them resolves to the later —
|
|
7
|
-
* which is why `selected` and `expanded` are objects rather than `hoverStyle`
|
|
8
|
-
* entries that would fight the resting value.
|
|
9
|
-
*/
|
|
10
|
-
declare const VARIANT: Record<string, {
|
|
11
|
-
rest: Style;
|
|
12
|
-
selected?: Style;
|
|
13
|
-
expanded?: Style;
|
|
14
|
-
}>;
|
|
15
|
-
type Variant = keyof typeof VARIANT;
|
|
16
|
-
type Size = '2xs' | '2xs_alt' | 'md';
|
|
17
|
-
interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size'> {
|
|
18
|
-
/** Visual variant */
|
|
19
|
-
variant?: Variant;
|
|
20
|
-
/** Icon-button size */
|
|
21
|
-
size?: Size;
|
|
22
|
-
/** Show a loading spinner (disables button) */
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
/** Render a skeleton placeholder instead of the button */
|
|
25
|
-
loadingSkeleton?: boolean;
|
|
26
|
-
/** Also emitted as data-expanded for consumer styling */
|
|
27
|
-
expanded?: boolean;
|
|
28
|
-
/** Also emitted as data-selected for consumer styling */
|
|
29
|
-
selected?: boolean;
|
|
30
|
-
/** Also emitted as data-highlighted */
|
|
31
|
-
highlighted?: boolean;
|
|
32
|
-
/** Polymorphic element type (e.g. "div") */
|
|
33
|
-
as?: React.ElementType;
|
|
34
|
-
}
|
|
35
|
-
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
-
|
|
37
|
-
export { IconButton, type IconButtonProps };
|
package/dist/icons.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'lucide-react';
|