termui 0.1.0 → 0.1.2
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/chunk-B2VO7M2O.js +3493 -0
- package/dist/chunk-B2VO7M2O.js.map +1 -0
- package/dist/chunk-ZZKFZA2U.js +694 -0
- package/dist/chunk-ZZKFZA2U.js.map +1 -0
- package/dist/components.d.ts +668 -0
- package/dist/components.js +130 -0
- package/dist/components.js.map +1 -0
- package/dist/core.d.ts +144 -0
- package/dist/core.js +99 -0
- package/dist/core.js.map +1 -0
- package/dist/hooks-YADffFjU.d.ts +237 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +29 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +225 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -10
- package/packages/cli/package.json +0 -36
- package/packages/components/dist/data/List.d.ts +0 -15
- package/packages/components/dist/data/List.d.ts.map +0 -1
- package/packages/components/dist/data/List.js +0 -40
- package/packages/components/dist/data/List.js.map +0 -1
- package/packages/components/dist/data/Table.d.ts +0 -17
- package/packages/components/dist/data/Table.d.ts.map +0 -1
- package/packages/components/dist/data/Table.js +0 -74
- package/packages/components/dist/data/Table.js.map +0 -1
- package/packages/components/dist/data/index.d.ts +0 -5
- package/packages/components/dist/data/index.d.ts.map +0 -1
- package/packages/components/dist/data/index.js +0 -3
- package/packages/components/dist/data/index.js.map +0 -1
- package/packages/components/dist/feedback/Alert.d.ts +0 -10
- package/packages/components/dist/feedback/Alert.d.ts.map +0 -1
- package/packages/components/dist/feedback/Alert.js +0 -23
- package/packages/components/dist/feedback/Alert.js.map +0 -1
- package/packages/components/dist/feedback/ProgressBar.d.ts +0 -13
- package/packages/components/dist/feedback/ProgressBar.d.ts.map +0 -1
- package/packages/components/dist/feedback/ProgressBar.js +0 -13
- package/packages/components/dist/feedback/ProgressBar.js.map +0 -1
- package/packages/components/dist/feedback/Spinner.d.ts +0 -9
- package/packages/components/dist/feedback/Spinner.d.ts.map +0 -1
- package/packages/components/dist/feedback/Spinner.js +0 -26
- package/packages/components/dist/feedback/Spinner.js.map +0 -1
- package/packages/components/dist/feedback/index.d.ts +0 -7
- package/packages/components/dist/feedback/index.d.ts.map +0 -1
- package/packages/components/dist/feedback/index.js +0 -4
- package/packages/components/dist/feedback/index.js.map +0 -1
- package/packages/components/dist/forms/Form.d.ts +0 -22
- package/packages/components/dist/forms/Form.d.ts.map +0 -1
- package/packages/components/dist/forms/Form.js +0 -45
- package/packages/components/dist/forms/Form.js.map +0 -1
- package/packages/components/dist/forms/index.d.ts +0 -3
- package/packages/components/dist/forms/index.d.ts.map +0 -1
- package/packages/components/dist/forms/index.js +0 -2
- package/packages/components/dist/forms/index.js.map +0 -1
- package/packages/components/dist/index.d.ts +0 -11
- package/packages/components/dist/index.d.ts.map +0 -1
- package/packages/components/dist/index.js +0 -21
- package/packages/components/dist/index.js.map +0 -1
- package/packages/components/dist/input/TextInput.d.ts +0 -14
- package/packages/components/dist/input/TextInput.d.ts.map +0 -1
- package/packages/components/dist/input/TextInput.js +0 -44
- package/packages/components/dist/input/TextInput.js.map +0 -1
- package/packages/components/dist/input/index.d.ts +0 -3
- package/packages/components/dist/input/index.d.ts.map +0 -1
- package/packages/components/dist/input/index.js +0 -2
- package/packages/components/dist/input/index.js.map +0 -1
- package/packages/components/dist/layout/Box.d.ts +0 -11
- package/packages/components/dist/layout/Box.d.ts.map +0 -1
- package/packages/components/dist/layout/Box.js +0 -18
- package/packages/components/dist/layout/Box.js.map +0 -1
- package/packages/components/dist/layout/Grid.d.ts +0 -8
- package/packages/components/dist/layout/Grid.d.ts.map +0 -1
- package/packages/components/dist/layout/Grid.js +0 -12
- package/packages/components/dist/layout/Grid.js.map +0 -1
- package/packages/components/dist/layout/ScrollView.d.ts +0 -9
- package/packages/components/dist/layout/ScrollView.d.ts.map +0 -1
- package/packages/components/dist/layout/ScrollView.js +0 -26
- package/packages/components/dist/layout/ScrollView.js.map +0 -1
- package/packages/components/dist/layout/Stack.d.ts +0 -12
- package/packages/components/dist/layout/Stack.d.ts.map +0 -1
- package/packages/components/dist/layout/Stack.js +0 -6
- package/packages/components/dist/layout/Stack.js.map +0 -1
- package/packages/components/dist/layout/index.d.ts +0 -9
- package/packages/components/dist/layout/index.d.ts.map +0 -1
- package/packages/components/dist/layout/index.js +0 -5
- package/packages/components/dist/layout/index.js.map +0 -1
- package/packages/components/dist/navigation/Tabs.d.ts +0 -15
- package/packages/components/dist/navigation/Tabs.d.ts.map +0 -1
- package/packages/components/dist/navigation/Tabs.js +0 -34
- package/packages/components/dist/navigation/Tabs.js.map +0 -1
- package/packages/components/dist/navigation/index.d.ts +0 -3
- package/packages/components/dist/navigation/index.d.ts.map +0 -1
- package/packages/components/dist/navigation/index.js +0 -2
- package/packages/components/dist/navigation/index.js.map +0 -1
- package/packages/components/dist/overlays/Modal.d.ts +0 -10
- package/packages/components/dist/overlays/Modal.d.ts.map +0 -1
- package/packages/components/dist/overlays/Modal.js +0 -16
- package/packages/components/dist/overlays/Modal.js.map +0 -1
- package/packages/components/dist/overlays/index.d.ts +0 -3
- package/packages/components/dist/overlays/index.d.ts.map +0 -1
- package/packages/components/dist/overlays/index.js +0 -2
- package/packages/components/dist/overlays/index.js.map +0 -1
- package/packages/components/dist/selection/Checkbox.d.ts +0 -10
- package/packages/components/dist/selection/Checkbox.d.ts.map +0 -1
- package/packages/components/dist/selection/Checkbox.js +0 -26
- package/packages/components/dist/selection/Checkbox.js.map +0 -1
- package/packages/components/dist/selection/Select.d.ts +0 -17
- package/packages/components/dist/selection/Select.d.ts.map +0 -1
- package/packages/components/dist/selection/Select.js +0 -44
- package/packages/components/dist/selection/Select.js.map +0 -1
- package/packages/components/dist/selection/index.d.ts +0 -5
- package/packages/components/dist/selection/index.d.ts.map +0 -1
- package/packages/components/dist/selection/index.js +0 -3
- package/packages/components/dist/selection/index.js.map +0 -1
- package/packages/components/dist/typography/Badge.d.ts +0 -9
- package/packages/components/dist/typography/Badge.d.ts.map +0 -1
- package/packages/components/dist/typography/Badge.js +0 -18
- package/packages/components/dist/typography/Badge.js.map +0 -1
- package/packages/components/dist/typography/Text.d.ts +0 -15
- package/packages/components/dist/typography/Text.d.ts.map +0 -1
- package/packages/components/dist/typography/Text.js +0 -6
- package/packages/components/dist/typography/Text.js.map +0 -1
- package/packages/components/dist/typography/index.d.ts +0 -5
- package/packages/components/dist/typography/index.d.ts.map +0 -1
- package/packages/components/dist/typography/index.js +0 -3
- package/packages/components/dist/typography/index.js.map +0 -1
- package/packages/components/dist/utility/Panel.d.ts +0 -14
- package/packages/components/dist/utility/Panel.d.ts.map +0 -1
- package/packages/components/dist/utility/Panel.js +0 -8
- package/packages/components/dist/utility/Panel.js.map +0 -1
- package/packages/components/dist/utility/Toggle.d.ts +0 -11
- package/packages/components/dist/utility/Toggle.d.ts.map +0 -1
- package/packages/components/dist/utility/Toggle.js +0 -23
- package/packages/components/dist/utility/Toggle.js.map +0 -1
- package/packages/components/dist/utility/index.d.ts +0 -5
- package/packages/components/dist/utility/index.d.ts.map +0 -1
- package/packages/components/dist/utility/index.js +0 -3
- package/packages/components/dist/utility/index.js.map +0 -1
- package/packages/components/package.json +0 -36
- package/packages/core/dist/hooks/index.d.ts +0 -18
- package/packages/core/dist/hooks/index.d.ts.map +0 -1
- package/packages/core/dist/hooks/index.js +0 -13
- package/packages/core/dist/hooks/index.js.map +0 -1
- package/packages/core/dist/hooks/useAnimation.d.ts +0 -7
- package/packages/core/dist/hooks/useAnimation.d.ts.map +0 -1
- package/packages/core/dist/hooks/useAnimation.js +0 -40
- package/packages/core/dist/hooks/useAnimation.js.map +0 -1
- package/packages/core/dist/hooks/useAsync.d.ts +0 -25
- package/packages/core/dist/hooks/useAsync.d.ts.map +0 -1
- package/packages/core/dist/hooks/useAsync.js +0 -37
- package/packages/core/dist/hooks/useAsync.js.map +0 -1
- package/packages/core/dist/hooks/useClipboard.d.ts +0 -9
- package/packages/core/dist/hooks/useClipboard.d.ts.map +0 -1
- package/packages/core/dist/hooks/useClipboard.js +0 -14
- package/packages/core/dist/hooks/useClipboard.js.map +0 -1
- package/packages/core/dist/hooks/useFocus.d.ts +0 -10
- package/packages/core/dist/hooks/useFocus.d.ts.map +0 -1
- package/packages/core/dist/hooks/useFocus.js +0 -6
- package/packages/core/dist/hooks/useFocus.js.map +0 -1
- package/packages/core/dist/hooks/useFocusManager.d.ts +0 -9
- package/packages/core/dist/hooks/useFocusManager.d.ts.map +0 -1
- package/packages/core/dist/hooks/useFocusManager.js +0 -6
- package/packages/core/dist/hooks/useFocusManager.js.map +0 -1
- package/packages/core/dist/hooks/useInput.d.ts +0 -22
- package/packages/core/dist/hooks/useInput.d.ts.map +0 -1
- package/packages/core/dist/hooks/useInput.js +0 -6
- package/packages/core/dist/hooks/useInput.js.map +0 -1
- package/packages/core/dist/hooks/useInterval.d.ts +0 -6
- package/packages/core/dist/hooks/useInterval.d.ts.map +0 -1
- package/packages/core/dist/hooks/useInterval.js +0 -18
- package/packages/core/dist/hooks/useInterval.js.map +0 -1
- package/packages/core/dist/hooks/useKeymap.d.ts +0 -13
- package/packages/core/dist/hooks/useKeymap.d.ts.map +0 -1
- package/packages/core/dist/hooks/useKeymap.js +0 -36
- package/packages/core/dist/hooks/useKeymap.js.map +0 -1
- package/packages/core/dist/hooks/useMouse.d.ts +0 -19
- package/packages/core/dist/hooks/useMouse.d.ts.map +0 -1
- package/packages/core/dist/hooks/useMouse.js +0 -60
- package/packages/core/dist/hooks/useMouse.js.map +0 -1
- package/packages/core/dist/hooks/useResize.d.ts +0 -7
- package/packages/core/dist/hooks/useResize.d.ts.map +0 -1
- package/packages/core/dist/hooks/useResize.js +0 -27
- package/packages/core/dist/hooks/useResize.js.map +0 -1
- package/packages/core/dist/hooks/useTerminal.d.ts +0 -4
- package/packages/core/dist/hooks/useTerminal.d.ts.map +0 -1
- package/packages/core/dist/hooks/useTerminal.js +0 -17
- package/packages/core/dist/hooks/useTerminal.js.map +0 -1
- package/packages/core/dist/hooks/useTheme.d.ts +0 -2
- package/packages/core/dist/hooks/useTheme.d.ts.map +0 -1
- package/packages/core/dist/hooks/useTheme.js +0 -3
- package/packages/core/dist/hooks/useTheme.js.map +0 -1
- package/packages/core/dist/index.d.ts +0 -4
- package/packages/core/dist/index.d.ts.map +0 -1
- package/packages/core/dist/index.js +0 -7
- package/packages/core/dist/index.js.map +0 -1
- package/packages/core/dist/styling/ThemeProvider.d.ts +0 -15
- package/packages/core/dist/styling/ThemeProvider.d.ts.map +0 -1
- package/packages/core/dist/styling/ThemeProvider.js +0 -44
- package/packages/core/dist/styling/ThemeProvider.js.map +0 -1
- package/packages/core/dist/styling/index.d.ts +0 -7
- package/packages/core/dist/styling/index.d.ts.map +0 -1
- package/packages/core/dist/styling/index.js +0 -7
- package/packages/core/dist/styling/index.js.map +0 -1
- package/packages/core/dist/styling/style.d.ts +0 -25
- package/packages/core/dist/styling/style.d.ts.map +0 -1
- package/packages/core/dist/styling/style.js +0 -57
- package/packages/core/dist/styling/style.js.map +0 -1
- package/packages/core/dist/styling/themes/default.d.ts +0 -3
- package/packages/core/dist/styling/themes/default.d.ts.map +0 -1
- package/packages/core/dist/styling/themes/default.js +0 -49
- package/packages/core/dist/styling/themes/default.js.map +0 -1
- package/packages/core/dist/styling/themes/dracula.d.ts +0 -3
- package/packages/core/dist/styling/themes/dracula.d.ts.map +0 -1
- package/packages/core/dist/styling/themes/dracula.js +0 -49
- package/packages/core/dist/styling/themes/dracula.js.map +0 -1
- package/packages/core/dist/styling/themes/nord.d.ts +0 -3
- package/packages/core/dist/styling/themes/nord.d.ts.map +0 -1
- package/packages/core/dist/styling/themes/nord.js +0 -49
- package/packages/core/dist/styling/themes/nord.js.map +0 -1
- package/packages/core/dist/styling/tokens.d.ts +0 -57
- package/packages/core/dist/styling/tokens.d.ts.map +0 -1
- package/packages/core/dist/styling/tokens.js +0 -6
- package/packages/core/dist/styling/tokens.js.map +0 -1
- package/packages/core/dist/terminal/ansi.d.ts +0 -107
- package/packages/core/dist/terminal/ansi.d.ts.map +0 -1
- package/packages/core/dist/terminal/ansi.js +0 -153
- package/packages/core/dist/terminal/ansi.js.map +0 -1
- package/packages/core/dist/terminal/capabilities.d.ts +0 -21
- package/packages/core/dist/terminal/capabilities.d.ts.map +0 -1
- package/packages/core/dist/terminal/capabilities.js +0 -74
- package/packages/core/dist/terminal/capabilities.js.map +0 -1
- package/packages/core/dist/terminal/index.d.ts +0 -3
- package/packages/core/dist/terminal/index.d.ts.map +0 -1
- package/packages/core/dist/terminal/index.js +0 -3
- package/packages/core/dist/terminal/index.js.map +0 -1
- package/packages/core/package.json +0 -49
- package/registry/components/alert/meta.json +0 -9
- package/registry/components/badge/meta.json +0 -9
- package/registry/components/box/meta.json +0 -9
- package/registry/components/checkbox/meta.json +0 -9
- package/registry/components/form/meta.json +0 -9
- package/registry/components/grid/meta.json +0 -9
- package/registry/components/list/meta.json +0 -9
- package/registry/components/modal/meta.json +0 -9
- package/registry/components/panel/meta.json +0 -9
- package/registry/components/progress-bar/meta.json +0 -9
- package/registry/components/scroll-view/meta.json +0 -9
- package/registry/components/select/meta.json +0 -9
- package/registry/components/spinner/meta.json +0 -9
- package/registry/components/stack/meta.json +0 -9
- package/registry/components/table/meta.json +0 -9
- package/registry/components/tabs/meta.json +0 -9
- package/registry/components/text/meta.json +0 -9
- package/registry/components/text-input/meta.json +0 -9
- package/registry/components/toggle/meta.json +0 -9
- package/registry/schema.json +0 -178
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { BoxProps as BoxProps$1 } from 'ink';
|
|
4
|
+
|
|
5
|
+
type BorderVariant = 'default' | 'muted' | 'focus' | 'success' | 'error' | 'warning';
|
|
6
|
+
interface BoxProps extends BoxProps$1 {
|
|
7
|
+
border?: boolean;
|
|
8
|
+
borderVariant?: BorderVariant;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function Box({ border, borderVariant, borderColor, children, ...props }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
interface StackProps {
|
|
15
|
+
direction?: 'vertical' | 'horizontal';
|
|
16
|
+
gap?: number;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
width?: number | string;
|
|
19
|
+
height?: number | string;
|
|
20
|
+
alignItems?: 'flex-start' | 'center' | 'flex-end';
|
|
21
|
+
justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
22
|
+
}
|
|
23
|
+
declare function Stack({ direction, gap, children, width, height, alignItems, justifyContent, }: StackProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface GridProps {
|
|
26
|
+
columns: number;
|
|
27
|
+
gap?: number;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare function Grid({ columns, gap, children }: GridProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
interface ScrollViewProps {
|
|
33
|
+
height: number;
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
showScrollbar?: boolean;
|
|
36
|
+
scrollbarColor?: string;
|
|
37
|
+
}
|
|
38
|
+
declare function ScrollView({ height, children, showScrollbar, scrollbarColor, }: ScrollViewProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface DividerProps {
|
|
41
|
+
variant?: 'single' | 'double' | 'bold';
|
|
42
|
+
orientation?: 'horizontal' | 'vertical';
|
|
43
|
+
color?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
height?: number;
|
|
46
|
+
width?: number;
|
|
47
|
+
}
|
|
48
|
+
declare function Divider({ variant, orientation, color, label, height, width, }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
interface SpacerProps {
|
|
51
|
+
size?: number;
|
|
52
|
+
direction?: 'horizontal' | 'vertical';
|
|
53
|
+
}
|
|
54
|
+
declare function Spacer({ size, direction }: SpacerProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
interface ColumnsProps {
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
gap?: number;
|
|
59
|
+
align?: 'top' | 'center' | 'bottom';
|
|
60
|
+
}
|
|
61
|
+
declare function Columns({ children, gap, align }: ColumnsProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface CenterProps {
|
|
64
|
+
children: ReactNode;
|
|
65
|
+
axis?: 'both' | 'horizontal' | 'vertical';
|
|
66
|
+
}
|
|
67
|
+
declare function Center({ children, axis }: CenterProps): react_jsx_runtime.JSX.Element;
|
|
68
|
+
|
|
69
|
+
interface AspectRatioProps {
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
ratio?: number;
|
|
72
|
+
width?: number;
|
|
73
|
+
}
|
|
74
|
+
declare function AspectRatio({ children, ratio, width }: AspectRatioProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
interface TextProps {
|
|
77
|
+
children?: ReactNode;
|
|
78
|
+
bold?: boolean;
|
|
79
|
+
italic?: boolean;
|
|
80
|
+
underline?: boolean;
|
|
81
|
+
strikethrough?: boolean;
|
|
82
|
+
dim?: boolean;
|
|
83
|
+
inverse?: boolean;
|
|
84
|
+
color?: string;
|
|
85
|
+
backgroundColor?: string;
|
|
86
|
+
wrap?: 'wrap' | 'end' | 'truncate' | 'truncate-start' | 'truncate-middle';
|
|
87
|
+
}
|
|
88
|
+
declare function Text({ children, bold, italic, underline, strikethrough, dim, inverse, color, backgroundColor, wrap, }: TextProps): react_jsx_runtime.JSX.Element;
|
|
89
|
+
|
|
90
|
+
type BadgeVariant = 'default' | 'success' | 'warning' | 'error' | 'info' | 'secondary';
|
|
91
|
+
interface BadgeProps {
|
|
92
|
+
children: string;
|
|
93
|
+
variant?: BadgeVariant;
|
|
94
|
+
color?: string;
|
|
95
|
+
bold?: boolean;
|
|
96
|
+
}
|
|
97
|
+
declare function Badge({ children, variant, color, bold }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
98
|
+
|
|
99
|
+
type HeadingLevel = 1 | 2 | 3 | 4;
|
|
100
|
+
interface HeadingProps {
|
|
101
|
+
level?: HeadingLevel;
|
|
102
|
+
children: ReactNode;
|
|
103
|
+
color?: string;
|
|
104
|
+
}
|
|
105
|
+
declare function Heading({ level, children, color }: HeadingProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
interface CodeProps {
|
|
108
|
+
children: string;
|
|
109
|
+
language?: string;
|
|
110
|
+
inline?: boolean;
|
|
111
|
+
}
|
|
112
|
+
declare function Code({ children, language, inline }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
114
|
+
interface LinkProps {
|
|
115
|
+
children: ReactNode;
|
|
116
|
+
href: string;
|
|
117
|
+
color?: string;
|
|
118
|
+
showHref?: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare function Link({ children, href, color, showHref }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
121
|
+
|
|
122
|
+
type TagVariant = 'default' | 'outline';
|
|
123
|
+
interface TagProps {
|
|
124
|
+
children: ReactNode;
|
|
125
|
+
onRemove?: () => void;
|
|
126
|
+
color?: string;
|
|
127
|
+
variant?: TagVariant;
|
|
128
|
+
}
|
|
129
|
+
declare function Tag({ children, onRemove, color, variant }: TagProps): react_jsx_runtime.JSX.Element;
|
|
130
|
+
|
|
131
|
+
interface GradientProps {
|
|
132
|
+
children: string;
|
|
133
|
+
colors: string[];
|
|
134
|
+
bold?: boolean;
|
|
135
|
+
}
|
|
136
|
+
interface GradientChar {
|
|
137
|
+
char: string;
|
|
138
|
+
color: string;
|
|
139
|
+
}
|
|
140
|
+
declare function gradientText(text: string, colors: string[]): GradientChar[];
|
|
141
|
+
declare function Gradient({ children, colors, bold }: GradientProps): react_jsx_runtime.JSX.Element;
|
|
142
|
+
|
|
143
|
+
type BigTextFont = 'block' | 'simple';
|
|
144
|
+
interface BigTextProps {
|
|
145
|
+
children: string;
|
|
146
|
+
color?: string;
|
|
147
|
+
font?: BigTextFont;
|
|
148
|
+
}
|
|
149
|
+
declare function BigText({ children, color, font }: BigTextProps): react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
type DigitSize = 'sm' | 'md' | 'lg';
|
|
152
|
+
interface DigitsProps {
|
|
153
|
+
value: string | number;
|
|
154
|
+
color?: string;
|
|
155
|
+
size?: DigitSize;
|
|
156
|
+
}
|
|
157
|
+
declare function Digits({ value, color, size }: DigitsProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
interface TextInputProps {
|
|
160
|
+
value?: string;
|
|
161
|
+
onChange?: (value: string) => void;
|
|
162
|
+
onSubmit?: (value: string) => void;
|
|
163
|
+
placeholder?: string;
|
|
164
|
+
mask?: string;
|
|
165
|
+
validate?: (value: string) => string | null;
|
|
166
|
+
width?: number;
|
|
167
|
+
label?: string;
|
|
168
|
+
autoFocus?: boolean;
|
|
169
|
+
id?: string;
|
|
170
|
+
}
|
|
171
|
+
declare function TextInput({ value: controlledValue, onChange, onSubmit, placeholder, mask, validate, width, label, autoFocus, id, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
172
|
+
|
|
173
|
+
interface TextAreaProps {
|
|
174
|
+
value?: string;
|
|
175
|
+
onChange?: (value: string) => void;
|
|
176
|
+
onSubmit?: (value: string) => void;
|
|
177
|
+
placeholder?: string;
|
|
178
|
+
rows?: number;
|
|
179
|
+
label?: string;
|
|
180
|
+
id?: string;
|
|
181
|
+
}
|
|
182
|
+
declare function TextArea({ value: controlledValue, onChange, onSubmit, placeholder, rows, label, id, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
interface PasswordInputProps {
|
|
185
|
+
value?: string;
|
|
186
|
+
onChange?: (value: string) => void;
|
|
187
|
+
onSubmit?: (value: string) => void;
|
|
188
|
+
placeholder?: string;
|
|
189
|
+
mask?: string;
|
|
190
|
+
showToggle?: boolean;
|
|
191
|
+
label?: string;
|
|
192
|
+
id?: string;
|
|
193
|
+
}
|
|
194
|
+
declare function PasswordInput({ value: controlledValue, onChange, onSubmit, placeholder, mask, showToggle, label, id, }: PasswordInputProps): react_jsx_runtime.JSX.Element;
|
|
195
|
+
|
|
196
|
+
interface NumberInputProps {
|
|
197
|
+
value?: number;
|
|
198
|
+
onChange?: (value: number) => void;
|
|
199
|
+
onSubmit?: (value: number) => void;
|
|
200
|
+
min?: number;
|
|
201
|
+
max?: number;
|
|
202
|
+
step?: number;
|
|
203
|
+
placeholder?: string;
|
|
204
|
+
label?: string;
|
|
205
|
+
id?: string;
|
|
206
|
+
format?: (n: number) => string;
|
|
207
|
+
}
|
|
208
|
+
declare function NumberInput({ value: controlledValue, onChange, onSubmit, min, max, step, placeholder, label, id, format, }: NumberInputProps): react_jsx_runtime.JSX.Element;
|
|
209
|
+
|
|
210
|
+
interface SearchInputProps<T = string> {
|
|
211
|
+
options?: T[];
|
|
212
|
+
getValue?: (item: T) => string;
|
|
213
|
+
value?: string;
|
|
214
|
+
onChange?: (query: string) => void;
|
|
215
|
+
onSelect?: (item: T) => void;
|
|
216
|
+
placeholder?: string;
|
|
217
|
+
label?: string;
|
|
218
|
+
maxResults?: number;
|
|
219
|
+
id?: string;
|
|
220
|
+
}
|
|
221
|
+
declare function SearchInput<T = string>({ options, getValue, value: controlledValue, onChange, onSelect, placeholder, label, maxResults, id, }: SearchInputProps<T>): react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface CheckboxProps {
|
|
224
|
+
checked?: boolean;
|
|
225
|
+
onChange?: (checked: boolean) => void;
|
|
226
|
+
label?: string;
|
|
227
|
+
indeterminate?: boolean;
|
|
228
|
+
disabled?: boolean;
|
|
229
|
+
id?: string;
|
|
230
|
+
}
|
|
231
|
+
declare function Checkbox({ checked: controlledChecked, onChange, label, indeterminate, disabled, id, }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
233
|
+
interface SelectOption<T = string> {
|
|
234
|
+
value: T;
|
|
235
|
+
label: string;
|
|
236
|
+
hint?: string;
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
}
|
|
239
|
+
interface SelectProps<T = string> {
|
|
240
|
+
options: SelectOption<T>[];
|
|
241
|
+
value?: T;
|
|
242
|
+
onChange?: (value: T) => void;
|
|
243
|
+
onSubmit?: (value: T) => void;
|
|
244
|
+
label?: string;
|
|
245
|
+
cursor?: string;
|
|
246
|
+
cursorColor?: string;
|
|
247
|
+
}
|
|
248
|
+
declare function Select<T = string>({ options, value: controlledValue, onChange, onSubmit, label, cursor, cursorColor, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
249
|
+
|
|
250
|
+
interface MultiSelectOption<T = string> {
|
|
251
|
+
value: T;
|
|
252
|
+
label: string;
|
|
253
|
+
hint?: string;
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
}
|
|
256
|
+
interface MultiSelectProps<T = string> {
|
|
257
|
+
options: MultiSelectOption<T>[];
|
|
258
|
+
value?: T[];
|
|
259
|
+
onChange?: (values: T[]) => void;
|
|
260
|
+
onSubmit?: (values: T[]) => void;
|
|
261
|
+
cursor?: string;
|
|
262
|
+
checkmark?: string;
|
|
263
|
+
height?: number;
|
|
264
|
+
}
|
|
265
|
+
declare function MultiSelect<T = string>({ options, value: controlledValue, onChange, onSubmit, cursor, checkmark, height, }: MultiSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
266
|
+
|
|
267
|
+
interface RadioOption<T = string> {
|
|
268
|
+
value: T;
|
|
269
|
+
label: string;
|
|
270
|
+
hint?: string;
|
|
271
|
+
disabled?: boolean;
|
|
272
|
+
}
|
|
273
|
+
interface RadioGroupProps<T = string> {
|
|
274
|
+
options: RadioOption<T>[];
|
|
275
|
+
value?: T;
|
|
276
|
+
onChange?: (value: T) => void;
|
|
277
|
+
name?: string;
|
|
278
|
+
cursor?: string;
|
|
279
|
+
}
|
|
280
|
+
declare function RadioGroup<T = string>({ options, value: controlledValue, onChange, name: _name, cursor, }: RadioGroupProps<T>): react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
interface CheckboxGroupOption {
|
|
283
|
+
value: string;
|
|
284
|
+
label: string;
|
|
285
|
+
disabled?: boolean;
|
|
286
|
+
}
|
|
287
|
+
interface CheckboxGroupProps {
|
|
288
|
+
label?: string;
|
|
289
|
+
options: CheckboxGroupOption[];
|
|
290
|
+
value?: string[];
|
|
291
|
+
onChange?: (values: string[]) => void;
|
|
292
|
+
min?: number;
|
|
293
|
+
max?: number;
|
|
294
|
+
}
|
|
295
|
+
declare function CheckboxGroup({ label, options, value: controlledValue, onChange, min, max, }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
297
|
+
interface TagInputProps {
|
|
298
|
+
value?: string[];
|
|
299
|
+
onChange?: (tags: string[]) => void;
|
|
300
|
+
placeholder?: string;
|
|
301
|
+
maxTags?: number;
|
|
302
|
+
delimiter?: string;
|
|
303
|
+
}
|
|
304
|
+
declare function TagInput({ value: controlledValue, onChange, placeholder, maxTags, }: TagInputProps): react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
interface ListItem {
|
|
307
|
+
key: string;
|
|
308
|
+
label: string;
|
|
309
|
+
description?: string;
|
|
310
|
+
color?: string;
|
|
311
|
+
}
|
|
312
|
+
interface ListProps {
|
|
313
|
+
items: ListItem[];
|
|
314
|
+
onSelect?: (item: ListItem) => void;
|
|
315
|
+
filterable?: boolean;
|
|
316
|
+
height?: number;
|
|
317
|
+
cursor?: string;
|
|
318
|
+
}
|
|
319
|
+
declare function List({ items, onSelect, filterable, height, cursor, }: ListProps): react_jsx_runtime.JSX.Element;
|
|
320
|
+
|
|
321
|
+
interface Column<T = Record<string, unknown>> {
|
|
322
|
+
key: keyof T & string;
|
|
323
|
+
header: string;
|
|
324
|
+
width?: number;
|
|
325
|
+
align?: 'left' | 'right' | 'center';
|
|
326
|
+
}
|
|
327
|
+
interface TableProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
328
|
+
data: T[];
|
|
329
|
+
columns: Column<T>[];
|
|
330
|
+
sortable?: boolean;
|
|
331
|
+
selectable?: boolean;
|
|
332
|
+
onSelect?: (row: T) => void;
|
|
333
|
+
maxRows?: number;
|
|
334
|
+
borderColor?: string;
|
|
335
|
+
}
|
|
336
|
+
declare function Table<T extends Record<string, unknown> = Record<string, unknown>>({ data, columns, sortable, selectable, onSelect, maxRows, borderColor, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
interface CardProps {
|
|
339
|
+
title?: string;
|
|
340
|
+
subtitle?: string;
|
|
341
|
+
children: ReactNode;
|
|
342
|
+
footer?: ReactNode;
|
|
343
|
+
borderColor?: string;
|
|
344
|
+
width?: number;
|
|
345
|
+
}
|
|
346
|
+
declare function Card({ title, subtitle, children, footer, borderColor, width }: CardProps): react_jsx_runtime.JSX.Element;
|
|
347
|
+
|
|
348
|
+
interface KeyValueItem {
|
|
349
|
+
key: string;
|
|
350
|
+
value: ReactNode;
|
|
351
|
+
color?: string;
|
|
352
|
+
}
|
|
353
|
+
interface KeyValueProps {
|
|
354
|
+
items: KeyValueItem[];
|
|
355
|
+
keyWidth?: number;
|
|
356
|
+
separator?: string;
|
|
357
|
+
keyColor?: string;
|
|
358
|
+
valueColor?: string;
|
|
359
|
+
}
|
|
360
|
+
declare function KeyValue({ items, keyWidth, separator, keyColor, valueColor, }: KeyValueProps): react_jsx_runtime.JSX.Element;
|
|
361
|
+
|
|
362
|
+
interface DefinitionItem {
|
|
363
|
+
term: string;
|
|
364
|
+
description: string;
|
|
365
|
+
}
|
|
366
|
+
interface DefinitionProps {
|
|
367
|
+
items: DefinitionItem[];
|
|
368
|
+
termColor?: string;
|
|
369
|
+
}
|
|
370
|
+
declare function Definition({ items, termColor }: DefinitionProps): react_jsx_runtime.JSX.Element;
|
|
371
|
+
|
|
372
|
+
interface VirtualListProps<T> {
|
|
373
|
+
items: T[];
|
|
374
|
+
renderItem: (item: T, index: number, isActive: boolean) => ReactNode;
|
|
375
|
+
height: number;
|
|
376
|
+
onSelect?: (item: T, index: number) => void;
|
|
377
|
+
cursor?: string;
|
|
378
|
+
overscan?: number;
|
|
379
|
+
}
|
|
380
|
+
declare function VirtualList<T>({ items, renderItem, height, onSelect, overscan, }: VirtualListProps<T>): react_jsx_runtime.JSX.Element;
|
|
381
|
+
|
|
382
|
+
interface TreeNode {
|
|
383
|
+
key: string;
|
|
384
|
+
label: string;
|
|
385
|
+
children?: TreeNode[];
|
|
386
|
+
icon?: string;
|
|
387
|
+
}
|
|
388
|
+
interface TreeProps {
|
|
389
|
+
nodes: TreeNode[];
|
|
390
|
+
onSelect?: (node: TreeNode) => void;
|
|
391
|
+
defaultExpanded?: string[];
|
|
392
|
+
}
|
|
393
|
+
declare function Tree({ nodes, onSelect, defaultExpanded }: TreeProps): react_jsx_runtime.JSX.Element;
|
|
394
|
+
|
|
395
|
+
type SpinnerStyle = 'dots' | 'line' | 'star' | 'clock' | 'bounce' | 'bar' | 'arc' | 'arrow' | 'toggle' | 'box' | 'pipe' | 'earth';
|
|
396
|
+
interface SpinnerProps {
|
|
397
|
+
style?: SpinnerStyle;
|
|
398
|
+
label?: string;
|
|
399
|
+
color?: string;
|
|
400
|
+
fps?: number;
|
|
401
|
+
}
|
|
402
|
+
declare function Spinner({ style: spinnerStyle, label, color, fps }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
403
|
+
|
|
404
|
+
interface ProgressBarProps {
|
|
405
|
+
value: number;
|
|
406
|
+
total?: number;
|
|
407
|
+
width?: number;
|
|
408
|
+
showPercent?: boolean;
|
|
409
|
+
showEta?: boolean;
|
|
410
|
+
fillChar?: string;
|
|
411
|
+
emptyChar?: string;
|
|
412
|
+
color?: string;
|
|
413
|
+
label?: string;
|
|
414
|
+
}
|
|
415
|
+
declare function ProgressBar({ value, total, width, showPercent, showEta, fillChar, emptyChar, color, label, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
416
|
+
|
|
417
|
+
type AlertVariant = 'success' | 'error' | 'warning' | 'info';
|
|
418
|
+
interface AlertProps {
|
|
419
|
+
variant?: AlertVariant;
|
|
420
|
+
title?: string;
|
|
421
|
+
children?: ReactNode;
|
|
422
|
+
icon?: string;
|
|
423
|
+
}
|
|
424
|
+
declare function Alert({ variant, title, children, icon }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
425
|
+
|
|
426
|
+
type StatusVariant = 'success' | 'error' | 'warning' | 'info' | 'loading' | 'pending';
|
|
427
|
+
interface StatusMessageProps {
|
|
428
|
+
variant?: StatusVariant;
|
|
429
|
+
children: ReactNode;
|
|
430
|
+
icon?: string;
|
|
431
|
+
}
|
|
432
|
+
declare function StatusMessage({ variant, children, icon }: StatusMessageProps): react_jsx_runtime.JSX.Element;
|
|
433
|
+
|
|
434
|
+
type ToastVariant = 'success' | 'error' | 'warning' | 'info';
|
|
435
|
+
interface ToastProps {
|
|
436
|
+
message: string;
|
|
437
|
+
variant?: ToastVariant;
|
|
438
|
+
duration?: number;
|
|
439
|
+
onDismiss?: () => void;
|
|
440
|
+
icon?: string;
|
|
441
|
+
}
|
|
442
|
+
declare function Toast({ message, variant, duration, onDismiss, icon }: ToastProps): react_jsx_runtime.JSX.Element | null;
|
|
443
|
+
|
|
444
|
+
type BannerVariant = 'info' | 'warning' | 'error' | 'success' | 'neutral';
|
|
445
|
+
interface BannerProps {
|
|
446
|
+
children: ReactNode;
|
|
447
|
+
variant?: BannerVariant;
|
|
448
|
+
icon?: string;
|
|
449
|
+
title?: string;
|
|
450
|
+
dismissible?: boolean;
|
|
451
|
+
onDismiss?: () => void;
|
|
452
|
+
}
|
|
453
|
+
declare function Banner({ children, variant, icon, title, dismissible, onDismiss, }: BannerProps): react_jsx_runtime.JSX.Element | null;
|
|
454
|
+
|
|
455
|
+
interface SkeletonProps {
|
|
456
|
+
width?: number;
|
|
457
|
+
height?: number;
|
|
458
|
+
animated?: boolean;
|
|
459
|
+
}
|
|
460
|
+
declare function Skeleton({ width, height, animated }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
461
|
+
|
|
462
|
+
type ProgressCircleSize = 'sm' | 'md' | 'lg';
|
|
463
|
+
interface ProgressCircleProps {
|
|
464
|
+
value: number;
|
|
465
|
+
size?: ProgressCircleSize;
|
|
466
|
+
color?: string;
|
|
467
|
+
label?: string;
|
|
468
|
+
showPercent?: boolean;
|
|
469
|
+
}
|
|
470
|
+
declare function ProgressCircle({ value, size, color, label, showPercent, }: ProgressCircleProps): react_jsx_runtime.JSX.Element;
|
|
471
|
+
|
|
472
|
+
interface Tab {
|
|
473
|
+
key: string;
|
|
474
|
+
label: string;
|
|
475
|
+
content: ReactNode;
|
|
476
|
+
}
|
|
477
|
+
interface TabsProps {
|
|
478
|
+
tabs: Tab[];
|
|
479
|
+
defaultTab?: string;
|
|
480
|
+
activeTab?: string;
|
|
481
|
+
onTabChange?: (key: string) => void;
|
|
482
|
+
borderColor?: string;
|
|
483
|
+
}
|
|
484
|
+
declare function Tabs({ tabs, defaultTab, activeTab: controlledTab, onTabChange, borderColor, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
485
|
+
|
|
486
|
+
interface BreadcrumbItem {
|
|
487
|
+
label: string;
|
|
488
|
+
key: string;
|
|
489
|
+
onSelect?: () => void;
|
|
490
|
+
}
|
|
491
|
+
interface BreadcrumbProps {
|
|
492
|
+
items: BreadcrumbItem[];
|
|
493
|
+
separator?: string;
|
|
494
|
+
activeKey?: string;
|
|
495
|
+
}
|
|
496
|
+
declare function Breadcrumb({ items, separator, activeKey }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
497
|
+
|
|
498
|
+
interface PaginationProps {
|
|
499
|
+
total: number;
|
|
500
|
+
current: number;
|
|
501
|
+
onChange?: (page: number) => void;
|
|
502
|
+
showEdges?: boolean;
|
|
503
|
+
siblings?: number;
|
|
504
|
+
}
|
|
505
|
+
declare function Pagination({ total, current, onChange, showEdges, siblings, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
506
|
+
|
|
507
|
+
interface MenuItem {
|
|
508
|
+
key: string;
|
|
509
|
+
label: string;
|
|
510
|
+
icon?: string;
|
|
511
|
+
shortcut?: string;
|
|
512
|
+
disabled?: boolean;
|
|
513
|
+
separator?: boolean;
|
|
514
|
+
children?: MenuItem[];
|
|
515
|
+
}
|
|
516
|
+
interface MenuProps {
|
|
517
|
+
items: MenuItem[];
|
|
518
|
+
onSelect?: (item: MenuItem) => void;
|
|
519
|
+
title?: string;
|
|
520
|
+
}
|
|
521
|
+
declare function Menu({ items, onSelect, title }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
|
|
523
|
+
interface SidebarItem {
|
|
524
|
+
key: string;
|
|
525
|
+
label: string;
|
|
526
|
+
icon?: string;
|
|
527
|
+
badge?: string | number;
|
|
528
|
+
children?: SidebarItem[];
|
|
529
|
+
}
|
|
530
|
+
interface SidebarProps {
|
|
531
|
+
items: SidebarItem[];
|
|
532
|
+
activeKey?: string;
|
|
533
|
+
onSelect?: (key: string) => void;
|
|
534
|
+
collapsed?: boolean;
|
|
535
|
+
width?: number;
|
|
536
|
+
title?: string;
|
|
537
|
+
}
|
|
538
|
+
declare function Sidebar({ items, activeKey, onSelect, collapsed, width, title, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
539
|
+
|
|
540
|
+
interface ModalProps {
|
|
541
|
+
open: boolean;
|
|
542
|
+
onClose: () => void;
|
|
543
|
+
title?: string;
|
|
544
|
+
width?: number;
|
|
545
|
+
children?: ReactNode;
|
|
546
|
+
}
|
|
547
|
+
declare function Modal({ open, onClose, title, width, children }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
548
|
+
|
|
549
|
+
interface DialogProps {
|
|
550
|
+
title?: string;
|
|
551
|
+
children: ReactNode;
|
|
552
|
+
confirmLabel?: string;
|
|
553
|
+
cancelLabel?: string;
|
|
554
|
+
onConfirm?: () => void;
|
|
555
|
+
onCancel?: () => void;
|
|
556
|
+
variant?: 'default' | 'danger';
|
|
557
|
+
isOpen?: boolean;
|
|
558
|
+
}
|
|
559
|
+
declare function Dialog({ title, children, confirmLabel, cancelLabel, onConfirm, onCancel, variant, isOpen, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
560
|
+
|
|
561
|
+
type DrawerEdge = 'left' | 'right' | 'top' | 'bottom';
|
|
562
|
+
interface DrawerProps {
|
|
563
|
+
isOpen?: boolean;
|
|
564
|
+
edge?: DrawerEdge;
|
|
565
|
+
title?: string;
|
|
566
|
+
children: ReactNode;
|
|
567
|
+
onClose?: () => void;
|
|
568
|
+
width?: number;
|
|
569
|
+
height?: number;
|
|
570
|
+
}
|
|
571
|
+
declare function Drawer({ isOpen, edge, title, children, onClose, width, height, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
572
|
+
|
|
573
|
+
interface TooltipProps {
|
|
574
|
+
children: ReactNode;
|
|
575
|
+
content: string;
|
|
576
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
577
|
+
isVisible?: boolean;
|
|
578
|
+
}
|
|
579
|
+
declare function Tooltip({ children, content, position, isVisible }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
580
|
+
|
|
581
|
+
interface PopoverProps {
|
|
582
|
+
trigger: ReactNode;
|
|
583
|
+
children: ReactNode;
|
|
584
|
+
isOpen?: boolean;
|
|
585
|
+
onClose?: () => void;
|
|
586
|
+
title?: string;
|
|
587
|
+
}
|
|
588
|
+
declare function Popover({ trigger, children, isOpen, onClose, title }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
589
|
+
|
|
590
|
+
interface FormContextValue {
|
|
591
|
+
values: Record<string, unknown>;
|
|
592
|
+
errors: Record<string, string>;
|
|
593
|
+
isDirty: boolean;
|
|
594
|
+
setFieldValue: (name: string, value: unknown) => void;
|
|
595
|
+
setFieldError: (name: string, error: string) => void;
|
|
596
|
+
}
|
|
597
|
+
declare function useFormContext(): FormContextValue;
|
|
598
|
+
interface FormField$1 {
|
|
599
|
+
name: string;
|
|
600
|
+
validate?: (value: unknown) => string | null;
|
|
601
|
+
}
|
|
602
|
+
interface FormProps {
|
|
603
|
+
onSubmit: (values: Record<string, unknown>) => void;
|
|
604
|
+
initialValues?: Record<string, unknown>;
|
|
605
|
+
fields?: FormField$1[];
|
|
606
|
+
children: ReactNode;
|
|
607
|
+
}
|
|
608
|
+
declare function Form({ onSubmit, initialValues, fields, children }: FormProps): react_jsx_runtime.JSX.Element;
|
|
609
|
+
|
|
610
|
+
interface FormFieldProps {
|
|
611
|
+
label: string;
|
|
612
|
+
children: ReactNode;
|
|
613
|
+
error?: string;
|
|
614
|
+
hint?: string;
|
|
615
|
+
required?: boolean;
|
|
616
|
+
}
|
|
617
|
+
declare function FormField({ label, children, error, hint, required }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
618
|
+
|
|
619
|
+
interface ConfirmProps {
|
|
620
|
+
message: string;
|
|
621
|
+
onConfirm?: () => void;
|
|
622
|
+
onCancel?: () => void;
|
|
623
|
+
confirmLabel?: string;
|
|
624
|
+
cancelLabel?: string;
|
|
625
|
+
defaultValue?: boolean;
|
|
626
|
+
variant?: 'default' | 'danger';
|
|
627
|
+
}
|
|
628
|
+
declare function Confirm({ message, onConfirm, onCancel, confirmLabel, cancelLabel, defaultValue, variant, }: ConfirmProps): react_jsx_runtime.JSX.Element;
|
|
629
|
+
|
|
630
|
+
interface WizardStep {
|
|
631
|
+
key: string;
|
|
632
|
+
title: string;
|
|
633
|
+
content: ReactNode;
|
|
634
|
+
validate?: () => boolean | string;
|
|
635
|
+
}
|
|
636
|
+
interface WizardProps {
|
|
637
|
+
steps: WizardStep[];
|
|
638
|
+
onComplete?: (completedSteps: string[]) => void;
|
|
639
|
+
onCancel?: () => void;
|
|
640
|
+
showProgress?: boolean;
|
|
641
|
+
}
|
|
642
|
+
declare function Wizard({ steps, onComplete, onCancel, showProgress }: WizardProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
|
|
644
|
+
interface PanelProps {
|
|
645
|
+
title?: string;
|
|
646
|
+
titleColor?: string;
|
|
647
|
+
borderColor?: string;
|
|
648
|
+
borderStyle?: 'single' | 'double' | 'round' | 'bold' | 'singleDouble' | 'doubleSingle' | 'classic';
|
|
649
|
+
width?: number;
|
|
650
|
+
height?: number;
|
|
651
|
+
paddingX?: number;
|
|
652
|
+
paddingY?: number;
|
|
653
|
+
children?: ReactNode;
|
|
654
|
+
}
|
|
655
|
+
declare function Panel({ title, titleColor, borderColor, borderStyle, width, height, paddingX, paddingY, children, }: PanelProps): react_jsx_runtime.JSX.Element;
|
|
656
|
+
|
|
657
|
+
interface ToggleProps {
|
|
658
|
+
checked?: boolean;
|
|
659
|
+
onChange?: (checked: boolean) => void;
|
|
660
|
+
label?: string;
|
|
661
|
+
onLabel?: string;
|
|
662
|
+
offLabel?: string;
|
|
663
|
+
id?: string;
|
|
664
|
+
disabled?: boolean;
|
|
665
|
+
}
|
|
666
|
+
declare function Toggle({ checked: controlledChecked, onChange, label, onLabel, offLabel, id, disabled, }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
667
|
+
|
|
668
|
+
export { Alert, type AlertProps, type AlertVariant, AspectRatio, type AspectRatioProps, Badge, type BadgeProps, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BigText, type BigTextFont, type BigTextProps, type BorderVariant, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, Code, type CodeProps, type Column, Columns, type ColumnsProps, Confirm, type ConfirmProps, Definition, type DefinitionItem, type DefinitionProps, Dialog, type DialogProps, type DigitSize, Digits, type DigitsProps, Divider, type DividerProps, Drawer, type DrawerEdge, type DrawerProps, Form, FormField, type FormField$1 as FormFieldDefinition, type FormFieldProps, type FormProps, Gradient, type GradientChar, type GradientProps, Grid, type GridProps, Heading, type HeadingLevel, type HeadingProps, KeyValue, type KeyValueItem, type KeyValueProps, Link, type LinkProps, List, type ListItem, type ListProps, Menu, type MenuItem, type MenuProps, Modal, type ModalProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Panel, type PanelProps, PasswordInput, type PasswordInputProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, RadioGroup, type RadioGroupProps, type RadioOption, ScrollView, type ScrollViewProps, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, Spacer, type SpacerProps, Spinner, type SpinnerProps, type SpinnerStyle, Stack, type StackProps, StatusMessage, type StatusMessageProps, type StatusVariant, type Tab, Table, type TableProps, Tabs, type TabsProps, Tag, TagInput, type TagInputProps, type TagProps, type TagVariant, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Toast, type ToastProps, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, Tree, type TreeNode, type TreeProps, VirtualList, type VirtualListProps, Wizard, type WizardProps, type WizardStep, gradientText, useFormContext };
|