@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/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/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/index.d.cts
DELETED
|
@@ -1,60 +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 } 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 { LoadingBar, 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/config/v5';
|
|
58
|
-
import '@hanzo/gui';
|
|
59
|
-
import 'react/jsx-runtime';
|
|
60
|
-
import '@hanzogui/core';
|
package/dist/input-group.d.cts
DELETED
|
@@ -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,37 +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
|
-
* React-Native convention: called with the text value on every change. The gui
|
|
10
|
-
* Input raises it natively; on web we bridge it off `onChange`, so callers
|
|
11
|
-
* using EITHER API get updates on either platform.
|
|
12
|
-
*/
|
|
13
|
-
readonly onChangeText?: (text: string) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const SIZE: Record<InputSize, Record<string, unknown>>;
|
|
16
|
-
declare const VARIANT: Record<InputVariant, Record<string, unknown>>;
|
|
17
|
-
/** The frame every text control shares. */
|
|
18
|
-
declare const CONTROL: {
|
|
19
|
-
readonly width: "100%";
|
|
20
|
-
readonly outlineWidth: 0;
|
|
21
|
-
readonly backgroundColor: "var(--color-input-bg)";
|
|
22
|
-
readonly color: "var(--color-input-fg)";
|
|
23
|
-
readonly borderColor: "var(--color-input-border)";
|
|
24
|
-
readonly hoverStyle: {
|
|
25
|
-
readonly borderColor: "var(--color-input-border-hover)";
|
|
26
|
-
};
|
|
27
|
-
readonly focusStyle: {
|
|
28
|
-
readonly borderColor: "var(--color-input-border-focus)";
|
|
29
|
-
};
|
|
30
|
-
readonly disabledStyle: {
|
|
31
|
-
readonly opacity: 0.4;
|
|
32
|
-
readonly cursor: "not-allowed";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
36
|
-
|
|
37
|
-
export { CONTROL, Input, type InputProps, SIZE, VARIANT };
|
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 };
|