@luxfi/ui 7.1.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert.cjs +22 -50
- package/dist/alert.js +22 -50
- package/dist/index.cjs +123 -179
- package/dist/index.js +123 -179
- package/dist/input.cjs +25 -36
- package/dist/input.js +25 -36
- package/dist/provider.cjs +35 -55
- package/dist/provider.js +16 -35
- package/dist/tag.cjs +15 -35
- package/dist/tag.js +15 -35
- package/dist/textarea.cjs +25 -36
- package/dist/textarea.js +25 -36
- package/package.json +6 -7
- package/src/alert.tsx +23 -51
- package/src/index.ts +1 -0
- package/src/input.tsx +27 -36
- package/src/provider.tsx +28 -6
- package/src/tag.tsx +17 -35
- package/src/textarea.tsx +27 -36
- 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 -76
- package/dist/bank.d.ts +0 -76
- package/dist/button.d.cts +0 -55
- package/dist/button.d.ts +0 -55
- package/dist/checkbox.d.cts +0 -31
- package/dist/checkbox.d.ts +0 -31
- 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 -65
- package/dist/dialog.d.ts +0 -65
- 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/heading.d.cts +0 -10
- package/dist/heading.d.ts +0 -10
- package/dist/icon-button.d.cts +0 -33
- package/dist/icon-button.d.ts +0 -33
- package/dist/image.d.cts +0 -57
- package/dist/image.d.ts +0 -57
- package/dist/index.d.cts +0 -55
- package/dist/index.d.ts +0 -55
- package/dist/input-group.d.cts +0 -17
- package/dist/input-group.d.ts +0 -17
- package/dist/input.d.cts +0 -11
- package/dist/input.d.ts +0 -11
- package/dist/link.d.cts +0 -37
- package/dist/link.d.ts +0 -37
- package/dist/menu.d.cts +0 -84
- package/dist/menu.d.ts +0 -84
- 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 -7
- package/dist/provider.d.ts +0 -7
- 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 -11
- package/dist/textarea.d.ts +0 -11
- 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/utils.d.cts +0 -5
- package/dist/utils.d.ts +0 -5
package/dist/progress.d.cts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const SIZE_CLASSES: {
|
|
4
|
-
readonly sm: "h-1";
|
|
5
|
-
readonly md: "h-2";
|
|
6
|
-
readonly lg: "h-3";
|
|
7
|
-
readonly xl: "h-4";
|
|
8
|
-
};
|
|
9
|
-
type Size = keyof typeof SIZE_CLASSES;
|
|
10
|
-
interface TrackProps {
|
|
11
|
-
readonly borderStartRadius?: number | string;
|
|
12
|
-
readonly borderEndRadius?: number | string;
|
|
13
|
-
readonly className?: string;
|
|
14
|
-
readonly style?: React.CSSProperties;
|
|
15
|
-
}
|
|
16
|
-
interface ProgressProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
17
|
-
readonly value?: number | null;
|
|
18
|
-
readonly min?: number;
|
|
19
|
-
readonly max?: number;
|
|
20
|
-
readonly size?: Size;
|
|
21
|
-
readonly color?: string;
|
|
22
|
-
readonly trackProps?: TrackProps;
|
|
23
|
-
readonly w?: string;
|
|
24
|
-
readonly flex?: string | number;
|
|
25
|
-
}
|
|
26
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
|
|
28
|
-
export { Progress };
|
package/dist/progress.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const SIZE_CLASSES: {
|
|
4
|
-
readonly sm: "h-1";
|
|
5
|
-
readonly md: "h-2";
|
|
6
|
-
readonly lg: "h-3";
|
|
7
|
-
readonly xl: "h-4";
|
|
8
|
-
};
|
|
9
|
-
type Size = keyof typeof SIZE_CLASSES;
|
|
10
|
-
interface TrackProps {
|
|
11
|
-
readonly borderStartRadius?: number | string;
|
|
12
|
-
readonly borderEndRadius?: number | string;
|
|
13
|
-
readonly className?: string;
|
|
14
|
-
readonly style?: React.CSSProperties;
|
|
15
|
-
}
|
|
16
|
-
interface ProgressProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
17
|
-
readonly value?: number | null;
|
|
18
|
-
readonly min?: number;
|
|
19
|
-
readonly max?: number;
|
|
20
|
-
readonly size?: Size;
|
|
21
|
-
readonly color?: string;
|
|
22
|
-
readonly trackProps?: TrackProps;
|
|
23
|
-
readonly w?: string;
|
|
24
|
-
readonly flex?: string | number;
|
|
25
|
-
}
|
|
26
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
|
|
28
|
-
export { Progress };
|
package/dist/provider.d.cts
DELETED
package/dist/provider.d.ts
DELETED
package/dist/radio.d.cts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const SIZE_CLASSES: {
|
|
4
|
-
readonly xs: {
|
|
5
|
-
readonly root: "gap-1.5";
|
|
6
|
-
readonly control: "h-3 w-3";
|
|
7
|
-
readonly indicator: "h-1.5 w-1.5";
|
|
8
|
-
readonly label: "text-xs";
|
|
9
|
-
};
|
|
10
|
-
readonly sm: {
|
|
11
|
-
readonly root: "gap-1.5";
|
|
12
|
-
readonly control: "h-3.5 w-3.5";
|
|
13
|
-
readonly indicator: "h-1.5 w-1.5";
|
|
14
|
-
readonly label: "text-xs";
|
|
15
|
-
};
|
|
16
|
-
readonly md: {
|
|
17
|
-
readonly root: "gap-2";
|
|
18
|
-
readonly control: "h-4 w-4";
|
|
19
|
-
readonly indicator: "h-2 w-2";
|
|
20
|
-
readonly label: "text-sm";
|
|
21
|
-
};
|
|
22
|
-
readonly lg: {
|
|
23
|
-
readonly root: "gap-2.5";
|
|
24
|
-
readonly control: "h-5 w-5";
|
|
25
|
-
readonly indicator: "h-2.5 w-2.5";
|
|
26
|
-
readonly label: "text-base";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type RadioSize = keyof typeof SIZE_CLASSES;
|
|
30
|
-
interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'dir'> {
|
|
31
|
-
name?: string;
|
|
32
|
-
required?: boolean;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
readOnly?: boolean;
|
|
35
|
-
orientation?: 'horizontal' | 'vertical';
|
|
36
|
-
loop?: boolean;
|
|
37
|
-
defaultValue?: string;
|
|
38
|
-
value?: string | null;
|
|
39
|
-
onValueChange?: (details: {
|
|
40
|
-
value: string | null;
|
|
41
|
-
}) => void;
|
|
42
|
-
size?: RadioSize;
|
|
43
|
-
}
|
|
44
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
interface RadioProps extends Omit<React.ComponentPropsWithoutRef<'label'>, 'onChange'> {
|
|
46
|
-
rootRef?: React.Ref<HTMLLabelElement>;
|
|
47
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
48
|
-
value: string;
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
}
|
|
51
|
-
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
52
|
-
|
|
53
|
-
export { Radio, RadioGroup, type RadioGroupProps, type RadioProps };
|
package/dist/radio.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const SIZE_CLASSES: {
|
|
4
|
-
readonly xs: {
|
|
5
|
-
readonly root: "gap-1.5";
|
|
6
|
-
readonly control: "h-3 w-3";
|
|
7
|
-
readonly indicator: "h-1.5 w-1.5";
|
|
8
|
-
readonly label: "text-xs";
|
|
9
|
-
};
|
|
10
|
-
readonly sm: {
|
|
11
|
-
readonly root: "gap-1.5";
|
|
12
|
-
readonly control: "h-3.5 w-3.5";
|
|
13
|
-
readonly indicator: "h-1.5 w-1.5";
|
|
14
|
-
readonly label: "text-xs";
|
|
15
|
-
};
|
|
16
|
-
readonly md: {
|
|
17
|
-
readonly root: "gap-2";
|
|
18
|
-
readonly control: "h-4 w-4";
|
|
19
|
-
readonly indicator: "h-2 w-2";
|
|
20
|
-
readonly label: "text-sm";
|
|
21
|
-
};
|
|
22
|
-
readonly lg: {
|
|
23
|
-
readonly root: "gap-2.5";
|
|
24
|
-
readonly control: "h-5 w-5";
|
|
25
|
-
readonly indicator: "h-2.5 w-2.5";
|
|
26
|
-
readonly label: "text-base";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type RadioSize = keyof typeof SIZE_CLASSES;
|
|
30
|
-
interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'dir'> {
|
|
31
|
-
name?: string;
|
|
32
|
-
required?: boolean;
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
readOnly?: boolean;
|
|
35
|
-
orientation?: 'horizontal' | 'vertical';
|
|
36
|
-
loop?: boolean;
|
|
37
|
-
defaultValue?: string;
|
|
38
|
-
value?: string | null;
|
|
39
|
-
onValueChange?: (details: {
|
|
40
|
-
value: string | null;
|
|
41
|
-
}) => void;
|
|
42
|
-
size?: RadioSize;
|
|
43
|
-
}
|
|
44
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
-
interface RadioProps extends Omit<React.ComponentPropsWithoutRef<'label'>, 'onChange'> {
|
|
46
|
-
rootRef?: React.Ref<HTMLLabelElement>;
|
|
47
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
48
|
-
value: string;
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
}
|
|
51
|
-
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
52
|
-
|
|
53
|
-
export { Radio, RadioGroup, type RadioGroupProps, type RadioProps };
|
package/dist/rating.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface RatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
4
|
-
count?: number;
|
|
5
|
-
label?: string | Array<string>;
|
|
6
|
-
defaultValue?: number;
|
|
7
|
-
onValueChange?: ({ value }: {
|
|
8
|
-
value: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
readOnly?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
export { Rating, type RatingProps };
|
package/dist/rating.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface RatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
4
|
-
count?: number;
|
|
5
|
-
label?: string | Array<string>;
|
|
6
|
-
defaultValue?: number;
|
|
7
|
-
onValueChange?: ({ value }: {
|
|
8
|
-
value: number;
|
|
9
|
-
}) => void;
|
|
10
|
-
readOnly?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
export { Rating, type RatingProps };
|
package/dist/select.d.cts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as RadixSelect from '@radix-ui/react-select';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ListCollection<T> {
|
|
5
|
-
items: Array<T>;
|
|
6
|
-
}
|
|
7
|
-
declare function createListCollection<T>(config: {
|
|
8
|
-
items: Array<T>;
|
|
9
|
-
}): ListCollection<T>;
|
|
10
|
-
type ViewMode = 'default' | 'compact';
|
|
11
|
-
interface SelectOption<Value extends string = string> {
|
|
12
|
-
label: string;
|
|
13
|
-
renderLabel?: (place: 'item' | 'value-text') => React.ReactNode;
|
|
14
|
-
value: Value;
|
|
15
|
-
icon?: React.ReactNode;
|
|
16
|
-
afterElement?: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
interface SelectRootProps {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
collection?: ListCollection<SelectOption>;
|
|
21
|
-
defaultValue?: Array<string>;
|
|
22
|
-
value?: Array<string>;
|
|
23
|
-
onValueChange?: (details: {
|
|
24
|
-
value: Array<string>;
|
|
25
|
-
items: Array<SelectOption>;
|
|
26
|
-
}) => void;
|
|
27
|
-
onInteractOutside?: () => void;
|
|
28
|
-
name?: string;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
readOnly?: boolean;
|
|
31
|
-
required?: boolean;
|
|
32
|
-
invalid?: boolean;
|
|
33
|
-
size?: 'sm' | 'lg';
|
|
34
|
-
variant?: string;
|
|
35
|
-
open?: boolean;
|
|
36
|
-
defaultOpen?: boolean;
|
|
37
|
-
onOpenChange?: (open: boolean) => void;
|
|
38
|
-
positioning?: {
|
|
39
|
-
sameWidth?: boolean;
|
|
40
|
-
offset?: {
|
|
41
|
-
mainAxis?: number;
|
|
42
|
-
crossAxis?: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
lazyMount?: boolean;
|
|
46
|
-
unmountOnExit?: boolean;
|
|
47
|
-
asChild?: boolean;
|
|
48
|
-
className?: string;
|
|
49
|
-
style?: React.CSSProperties;
|
|
50
|
-
w?: string | Record<string, string>;
|
|
51
|
-
maxW?: string | Record<string, string>;
|
|
52
|
-
minW?: string | Record<string, string>;
|
|
53
|
-
hideFrom?: string;
|
|
54
|
-
}
|
|
55
|
-
declare const SelectRoot: React.ForwardRefExoticComponent<SelectRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
interface SelectControlProps {
|
|
57
|
-
children?: React.ReactNode;
|
|
58
|
-
noIndicator?: boolean;
|
|
59
|
-
triggerProps?: React.ComponentPropsWithoutRef<typeof RadixSelect.Trigger> & {
|
|
60
|
-
asChild?: boolean;
|
|
61
|
-
px?: string | number;
|
|
62
|
-
className?: string;
|
|
63
|
-
};
|
|
64
|
-
loading?: boolean;
|
|
65
|
-
defaultValue?: Array<string>;
|
|
66
|
-
className?: string;
|
|
67
|
-
style?: React.CSSProperties;
|
|
68
|
-
}
|
|
69
|
-
declare const SelectControl: React.ForwardRefExoticComponent<SelectControlProps & React.RefAttributes<HTMLButtonElement>>;
|
|
70
|
-
interface SelectClearTriggerProps {
|
|
71
|
-
className?: string;
|
|
72
|
-
}
|
|
73
|
-
declare const SelectClearTrigger: React.ForwardRefExoticComponent<SelectClearTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
interface SelectContentProps {
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
portalled?: boolean;
|
|
77
|
-
portalRef?: React.RefObject<HTMLElement>;
|
|
78
|
-
className?: string;
|
|
79
|
-
style?: React.CSSProperties;
|
|
80
|
-
}
|
|
81
|
-
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
interface SelectItemProps {
|
|
83
|
-
item: SelectOption;
|
|
84
|
-
children?: React.ReactNode;
|
|
85
|
-
className?: string;
|
|
86
|
-
}
|
|
87
|
-
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
interface SelectValueTextProps {
|
|
89
|
-
children?: (items: Array<SelectOption>) => React.ReactNode;
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
size?: SelectRootProps['size'];
|
|
92
|
-
required?: boolean;
|
|
93
|
-
invalid?: boolean;
|
|
94
|
-
errorText?: string;
|
|
95
|
-
mode?: ViewMode;
|
|
96
|
-
className?: string;
|
|
97
|
-
style?: React.CSSProperties;
|
|
98
|
-
}
|
|
99
|
-
declare const SelectValueText: React.ForwardRefExoticComponent<SelectValueTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
-
interface SelectItemGroupProps {
|
|
101
|
-
children?: React.ReactNode;
|
|
102
|
-
label: React.ReactNode;
|
|
103
|
-
className?: string;
|
|
104
|
-
}
|
|
105
|
-
declare const SelectItemGroup: React.ForwardRefExoticComponent<SelectItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<RadixSelect.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
declare const SelectItemText: React.ForwardRefExoticComponent<RadixSelect.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
-
interface SelectProps extends SelectRootProps {
|
|
109
|
-
collection: ListCollection<SelectOption>;
|
|
110
|
-
placeholder: string;
|
|
111
|
-
portalled?: boolean;
|
|
112
|
-
loading?: boolean;
|
|
113
|
-
errorText?: string;
|
|
114
|
-
contentProps?: SelectContentProps;
|
|
115
|
-
contentHeader?: React.ReactNode;
|
|
116
|
-
itemFilter?: (item: SelectOption) => boolean;
|
|
117
|
-
mode?: ViewMode;
|
|
118
|
-
}
|
|
119
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
120
|
-
interface SelectAsyncProps extends Omit<SelectProps, 'collection'> {
|
|
121
|
-
placeholder: string;
|
|
122
|
-
portalled?: boolean;
|
|
123
|
-
loading?: boolean;
|
|
124
|
-
loadOptions: (input: string, currentValue: Array<string>) => Promise<ListCollection<SelectOption>>;
|
|
125
|
-
extraControls?: React.ReactNode;
|
|
126
|
-
mode?: ViewMode;
|
|
127
|
-
}
|
|
128
|
-
declare const SelectAsync: React.ForwardRefExoticComponent<SelectAsyncProps & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
-
|
|
130
|
-
export { type ListCollection, Select, SelectAsync, type SelectAsyncProps, SelectClearTrigger, type SelectClearTriggerProps, SelectContent, type SelectContentProps, SelectControl, type SelectControlProps, SelectItem, SelectItemGroup, type SelectItemProps, SelectItemText, SelectLabel, type SelectOption, type SelectProps, SelectRoot, type SelectRootProps, SelectValueText, type ViewMode, createListCollection };
|
package/dist/select.d.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import * as RadixSelect from '@radix-ui/react-select';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
interface ListCollection<T> {
|
|
5
|
-
items: Array<T>;
|
|
6
|
-
}
|
|
7
|
-
declare function createListCollection<T>(config: {
|
|
8
|
-
items: Array<T>;
|
|
9
|
-
}): ListCollection<T>;
|
|
10
|
-
type ViewMode = 'default' | 'compact';
|
|
11
|
-
interface SelectOption<Value extends string = string> {
|
|
12
|
-
label: string;
|
|
13
|
-
renderLabel?: (place: 'item' | 'value-text') => React.ReactNode;
|
|
14
|
-
value: Value;
|
|
15
|
-
icon?: React.ReactNode;
|
|
16
|
-
afterElement?: React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
interface SelectRootProps {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
collection?: ListCollection<SelectOption>;
|
|
21
|
-
defaultValue?: Array<string>;
|
|
22
|
-
value?: Array<string>;
|
|
23
|
-
onValueChange?: (details: {
|
|
24
|
-
value: Array<string>;
|
|
25
|
-
items: Array<SelectOption>;
|
|
26
|
-
}) => void;
|
|
27
|
-
onInteractOutside?: () => void;
|
|
28
|
-
name?: string;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
readOnly?: boolean;
|
|
31
|
-
required?: boolean;
|
|
32
|
-
invalid?: boolean;
|
|
33
|
-
size?: 'sm' | 'lg';
|
|
34
|
-
variant?: string;
|
|
35
|
-
open?: boolean;
|
|
36
|
-
defaultOpen?: boolean;
|
|
37
|
-
onOpenChange?: (open: boolean) => void;
|
|
38
|
-
positioning?: {
|
|
39
|
-
sameWidth?: boolean;
|
|
40
|
-
offset?: {
|
|
41
|
-
mainAxis?: number;
|
|
42
|
-
crossAxis?: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
lazyMount?: boolean;
|
|
46
|
-
unmountOnExit?: boolean;
|
|
47
|
-
asChild?: boolean;
|
|
48
|
-
className?: string;
|
|
49
|
-
style?: React.CSSProperties;
|
|
50
|
-
w?: string | Record<string, string>;
|
|
51
|
-
maxW?: string | Record<string, string>;
|
|
52
|
-
minW?: string | Record<string, string>;
|
|
53
|
-
hideFrom?: string;
|
|
54
|
-
}
|
|
55
|
-
declare const SelectRoot: React.ForwardRefExoticComponent<SelectRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
-
interface SelectControlProps {
|
|
57
|
-
children?: React.ReactNode;
|
|
58
|
-
noIndicator?: boolean;
|
|
59
|
-
triggerProps?: React.ComponentPropsWithoutRef<typeof RadixSelect.Trigger> & {
|
|
60
|
-
asChild?: boolean;
|
|
61
|
-
px?: string | number;
|
|
62
|
-
className?: string;
|
|
63
|
-
};
|
|
64
|
-
loading?: boolean;
|
|
65
|
-
defaultValue?: Array<string>;
|
|
66
|
-
className?: string;
|
|
67
|
-
style?: React.CSSProperties;
|
|
68
|
-
}
|
|
69
|
-
declare const SelectControl: React.ForwardRefExoticComponent<SelectControlProps & React.RefAttributes<HTMLButtonElement>>;
|
|
70
|
-
interface SelectClearTriggerProps {
|
|
71
|
-
className?: string;
|
|
72
|
-
}
|
|
73
|
-
declare const SelectClearTrigger: React.ForwardRefExoticComponent<SelectClearTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
interface SelectContentProps {
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
portalled?: boolean;
|
|
77
|
-
portalRef?: React.RefObject<HTMLElement>;
|
|
78
|
-
className?: string;
|
|
79
|
-
style?: React.CSSProperties;
|
|
80
|
-
}
|
|
81
|
-
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
interface SelectItemProps {
|
|
83
|
-
item: SelectOption;
|
|
84
|
-
children?: React.ReactNode;
|
|
85
|
-
className?: string;
|
|
86
|
-
}
|
|
87
|
-
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
interface SelectValueTextProps {
|
|
89
|
-
children?: (items: Array<SelectOption>) => React.ReactNode;
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
size?: SelectRootProps['size'];
|
|
92
|
-
required?: boolean;
|
|
93
|
-
invalid?: boolean;
|
|
94
|
-
errorText?: string;
|
|
95
|
-
mode?: ViewMode;
|
|
96
|
-
className?: string;
|
|
97
|
-
style?: React.CSSProperties;
|
|
98
|
-
}
|
|
99
|
-
declare const SelectValueText: React.ForwardRefExoticComponent<SelectValueTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
-
interface SelectItemGroupProps {
|
|
101
|
-
children?: React.ReactNode;
|
|
102
|
-
label: React.ReactNode;
|
|
103
|
-
className?: string;
|
|
104
|
-
}
|
|
105
|
-
declare const SelectItemGroup: React.ForwardRefExoticComponent<SelectItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
106
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<RadixSelect.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
declare const SelectItemText: React.ForwardRefExoticComponent<RadixSelect.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
-
interface SelectProps extends SelectRootProps {
|
|
109
|
-
collection: ListCollection<SelectOption>;
|
|
110
|
-
placeholder: string;
|
|
111
|
-
portalled?: boolean;
|
|
112
|
-
loading?: boolean;
|
|
113
|
-
errorText?: string;
|
|
114
|
-
contentProps?: SelectContentProps;
|
|
115
|
-
contentHeader?: React.ReactNode;
|
|
116
|
-
itemFilter?: (item: SelectOption) => boolean;
|
|
117
|
-
mode?: ViewMode;
|
|
118
|
-
}
|
|
119
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
120
|
-
interface SelectAsyncProps extends Omit<SelectProps, 'collection'> {
|
|
121
|
-
placeholder: string;
|
|
122
|
-
portalled?: boolean;
|
|
123
|
-
loading?: boolean;
|
|
124
|
-
loadOptions: (input: string, currentValue: Array<string>) => Promise<ListCollection<SelectOption>>;
|
|
125
|
-
extraControls?: React.ReactNode;
|
|
126
|
-
mode?: ViewMode;
|
|
127
|
-
}
|
|
128
|
-
declare const SelectAsync: React.ForwardRefExoticComponent<SelectAsyncProps & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
-
|
|
130
|
-
export { type ListCollection, Select, SelectAsync, type SelectAsyncProps, SelectClearTrigger, type SelectClearTriggerProps, SelectContent, type SelectContentProps, SelectControl, type SelectControlProps, SelectItem, SelectItemGroup, type SelectItemProps, SelectItemText, SelectLabel, type SelectOption, type SelectProps, SelectRoot, type SelectRootProps, SelectValueText, type ViewMode, createListCollection };
|
package/dist/separator.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
4
|
-
type Variant = 'solid' | 'dashed' | 'dotted';
|
|
5
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
6
|
-
interface SeparatorProps extends React__default.HTMLAttributes<HTMLHRElement> {
|
|
7
|
-
readonly orientation?: Orientation;
|
|
8
|
-
readonly variant?: Variant;
|
|
9
|
-
readonly size?: Size;
|
|
10
|
-
}
|
|
11
|
-
declare const Separator: React__default.ForwardRefExoticComponent<SeparatorProps & React__default.RefAttributes<HTMLHRElement>>;
|
|
12
|
-
|
|
13
|
-
export { Separator, type SeparatorProps };
|
package/dist/separator.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
4
|
-
type Variant = 'solid' | 'dashed' | 'dotted';
|
|
5
|
-
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
6
|
-
interface SeparatorProps extends React__default.HTMLAttributes<HTMLHRElement> {
|
|
7
|
-
readonly orientation?: Orientation;
|
|
8
|
-
readonly variant?: Variant;
|
|
9
|
-
readonly size?: Size;
|
|
10
|
-
}
|
|
11
|
-
declare const Separator: React__default.ForwardRefExoticComponent<SeparatorProps & React__default.RefAttributes<HTMLHRElement>>;
|
|
12
|
-
|
|
13
|
-
export { Separator, type SeparatorProps };
|
package/dist/skeleton.d.cts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
4
|
-
readonly loading: boolean | undefined;
|
|
5
|
-
/** When true, the Skeleton wraps its single child element instead of adding a wrapper div. */
|
|
6
|
-
readonly asChild?: boolean;
|
|
7
|
-
readonly w?: any;
|
|
8
|
-
readonly h?: any;
|
|
9
|
-
readonly minW?: any;
|
|
10
|
-
readonly maxW?: any;
|
|
11
|
-
readonly display?: string;
|
|
12
|
-
readonly flexGrow?: number;
|
|
13
|
-
readonly flexShrink?: number;
|
|
14
|
-
readonly flexBasis?: string;
|
|
15
|
-
readonly fontWeight?: number | string;
|
|
16
|
-
readonly textStyle?: string;
|
|
17
|
-
readonly borderRadius?: string;
|
|
18
|
-
readonly alignSelf?: string;
|
|
19
|
-
readonly alignItems?: string;
|
|
20
|
-
readonly justifyContent?: string;
|
|
21
|
-
readonly color?: string;
|
|
22
|
-
readonly mt?: number | string;
|
|
23
|
-
readonly mb?: number | string;
|
|
24
|
-
readonly ml?: number | string;
|
|
25
|
-
readonly mr?: number | string;
|
|
26
|
-
readonly height?: string;
|
|
27
|
-
readonly overflow?: string;
|
|
28
|
-
readonly whiteSpace?: string;
|
|
29
|
-
readonly textOverflow?: string;
|
|
30
|
-
readonly textTransform?: string;
|
|
31
|
-
readonly gap?: number | string;
|
|
32
|
-
readonly gridTemplateColumns?: string;
|
|
33
|
-
readonly minWidth?: string;
|
|
34
|
-
readonly boxSize?: number | string;
|
|
35
|
-
readonly py?: number | string;
|
|
36
|
-
readonly px?: number | string;
|
|
37
|
-
readonly p?: number | string;
|
|
38
|
-
readonly hideBelow?: string;
|
|
39
|
-
readonly as?: React.ElementType;
|
|
40
|
-
readonly fontSize?: string;
|
|
41
|
-
readonly flexWrap?: React.CSSProperties['flexWrap'];
|
|
42
|
-
readonly wordBreak?: React.CSSProperties['wordBreak'];
|
|
43
|
-
readonly lineHeight?: string;
|
|
44
|
-
readonly marginRight?: string;
|
|
45
|
-
readonly position?: React.CSSProperties['position'];
|
|
46
|
-
readonly background?: string;
|
|
47
|
-
}
|
|
48
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
-
interface SkeletonCircleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
50
|
-
readonly size?: string | number;
|
|
51
|
-
readonly loading?: boolean;
|
|
52
|
-
}
|
|
53
|
-
declare const SkeletonCircle: React.ForwardRefExoticComponent<SkeletonCircleProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
interface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
55
|
-
readonly noOfLines?: number;
|
|
56
|
-
readonly loading?: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
|
|
60
|
-
export { Skeleton, SkeletonCircle, type SkeletonCircleProps, type SkeletonProps, SkeletonText, type SkeletonTextProps };
|
package/dist/skeleton.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
4
|
-
readonly loading: boolean | undefined;
|
|
5
|
-
/** When true, the Skeleton wraps its single child element instead of adding a wrapper div. */
|
|
6
|
-
readonly asChild?: boolean;
|
|
7
|
-
readonly w?: any;
|
|
8
|
-
readonly h?: any;
|
|
9
|
-
readonly minW?: any;
|
|
10
|
-
readonly maxW?: any;
|
|
11
|
-
readonly display?: string;
|
|
12
|
-
readonly flexGrow?: number;
|
|
13
|
-
readonly flexShrink?: number;
|
|
14
|
-
readonly flexBasis?: string;
|
|
15
|
-
readonly fontWeight?: number | string;
|
|
16
|
-
readonly textStyle?: string;
|
|
17
|
-
readonly borderRadius?: string;
|
|
18
|
-
readonly alignSelf?: string;
|
|
19
|
-
readonly alignItems?: string;
|
|
20
|
-
readonly justifyContent?: string;
|
|
21
|
-
readonly color?: string;
|
|
22
|
-
readonly mt?: number | string;
|
|
23
|
-
readonly mb?: number | string;
|
|
24
|
-
readonly ml?: number | string;
|
|
25
|
-
readonly mr?: number | string;
|
|
26
|
-
readonly height?: string;
|
|
27
|
-
readonly overflow?: string;
|
|
28
|
-
readonly whiteSpace?: string;
|
|
29
|
-
readonly textOverflow?: string;
|
|
30
|
-
readonly textTransform?: string;
|
|
31
|
-
readonly gap?: number | string;
|
|
32
|
-
readonly gridTemplateColumns?: string;
|
|
33
|
-
readonly minWidth?: string;
|
|
34
|
-
readonly boxSize?: number | string;
|
|
35
|
-
readonly py?: number | string;
|
|
36
|
-
readonly px?: number | string;
|
|
37
|
-
readonly p?: number | string;
|
|
38
|
-
readonly hideBelow?: string;
|
|
39
|
-
readonly as?: React.ElementType;
|
|
40
|
-
readonly fontSize?: string;
|
|
41
|
-
readonly flexWrap?: React.CSSProperties['flexWrap'];
|
|
42
|
-
readonly wordBreak?: React.CSSProperties['wordBreak'];
|
|
43
|
-
readonly lineHeight?: string;
|
|
44
|
-
readonly marginRight?: string;
|
|
45
|
-
readonly position?: React.CSSProperties['position'];
|
|
46
|
-
readonly background?: string;
|
|
47
|
-
}
|
|
48
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
-
interface SkeletonCircleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
50
|
-
readonly size?: string | number;
|
|
51
|
-
readonly loading?: boolean;
|
|
52
|
-
}
|
|
53
|
-
declare const SkeletonCircle: React.ForwardRefExoticComponent<SkeletonCircleProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
interface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
55
|
-
readonly noOfLines?: number;
|
|
56
|
-
readonly loading?: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
|
|
60
|
-
export { Skeleton, SkeletonCircle, type SkeletonCircleProps, type SkeletonProps, SkeletonText, type SkeletonTextProps };
|
package/dist/slider.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SliderProps {
|
|
4
|
-
readonly marks?: Array<number | {
|
|
5
|
-
readonly value: number;
|
|
6
|
-
readonly label: React.ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
readonly label?: React.ReactNode;
|
|
9
|
-
readonly showValue?: boolean;
|
|
10
|
-
readonly value?: Array<number>;
|
|
11
|
-
readonly defaultValue?: Array<number>;
|
|
12
|
-
readonly min?: number;
|
|
13
|
-
readonly max?: number;
|
|
14
|
-
readonly step?: number;
|
|
15
|
-
readonly disabled?: boolean;
|
|
16
|
-
readonly orientation?: 'horizontal' | 'vertical';
|
|
17
|
-
readonly name?: string;
|
|
18
|
-
readonly onValueChange?: (value: Array<number>) => void;
|
|
19
|
-
readonly onValueCommit?: (value: Array<number>) => void;
|
|
20
|
-
readonly className?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
-
|
|
24
|
-
export { Slider, type SliderProps };
|
package/dist/slider.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SliderProps {
|
|
4
|
-
readonly marks?: Array<number | {
|
|
5
|
-
readonly value: number;
|
|
6
|
-
readonly label: React.ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
readonly label?: React.ReactNode;
|
|
9
|
-
readonly showValue?: boolean;
|
|
10
|
-
readonly value?: Array<number>;
|
|
11
|
-
readonly defaultValue?: Array<number>;
|
|
12
|
-
readonly min?: number;
|
|
13
|
-
readonly max?: number;
|
|
14
|
-
readonly step?: number;
|
|
15
|
-
readonly disabled?: boolean;
|
|
16
|
-
readonly orientation?: 'horizontal' | 'vertical';
|
|
17
|
-
readonly name?: string;
|
|
18
|
-
readonly onValueChange?: (value: Array<number>) => void;
|
|
19
|
-
readonly onValueCommit?: (value: Array<number>) => void;
|
|
20
|
-
readonly className?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
-
|
|
24
|
-
export { Slider, type SliderProps };
|