@thanhphi/unistyles-ui 0.0.0-stage → 0.2.6
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 +21 -0
- package/README.md +374 -2
- package/dist/choices.d.ts +52 -0
- package/dist/choices.js +143 -0
- package/dist/colors/index.d.ts +79 -0
- package/dist/colors/index.js +2 -0
- package/dist/date.d.ts +40 -0
- package/dist/date.js +153 -0
- package/dist/fields.d.ts +138 -0
- package/dist/fields.js +240 -0
- package/dist/form/index.d.ts +14 -0
- package/dist/form/index.js +68 -0
- package/dist/icons.d.ts +10 -0
- package/dist/icons.js +51 -0
- package/dist/image.d.ts +20 -0
- package/dist/image.js +34 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +30 -0
- package/dist/module/choices.js +135 -0
- package/dist/module/colors/index.js +1 -0
- package/dist/module/colors/package.json +1 -0
- package/dist/module/date.js +145 -0
- package/dist/module/fields.js +232 -0
- package/dist/module/form/index.js +62 -0
- package/dist/module/form/package.json +1 -0
- package/dist/module/icons.js +15 -0
- package/dist/module/image.js +31 -0
- package/dist/module/index.js +10 -0
- package/dist/module/overlays.js +102 -0
- package/dist/module/package.json +1 -0
- package/dist/module/primitives.js +432 -0
- package/dist/module/process-graph.js +125 -0
- package/dist/module/rich-html/html-styles.js +55 -0
- package/dist/module/rich-html/image-renderers.js +141 -0
- package/dist/module/rich-html/index.js +54 -0
- package/dist/module/rich-html/normalize-inline-colors.js +93 -0
- package/dist/module/rich-html/package.json +1 -0
- package/dist/module/rich-html/rich-html.js +118 -0
- package/dist/module/theme.js +62 -0
- package/dist/module/toast.js +30 -0
- package/dist/overlays.d.ts +52 -0
- package/dist/overlays.js +109 -0
- package/dist/primitives.d.ts +157 -0
- package/dist/primitives.js +480 -0
- package/dist/process-graph.d.ts +33 -0
- package/dist/process-graph.js +161 -0
- package/dist/rich-html/html-styles.d.ts +23 -0
- package/dist/rich-html/html-styles.js +63 -0
- package/dist/rich-html/image-renderers.d.ts +12 -0
- package/dist/rich-html/image-renderers.js +144 -0
- package/dist/rich-html/index.d.ts +18 -0
- package/dist/rich-html/index.js +92 -0
- package/dist/rich-html/normalize-inline-colors.d.ts +8 -0
- package/dist/rich-html/normalize-inline-colors.js +99 -0
- package/dist/rich-html/rich-html.d.ts +7 -0
- package/dist/rich-html/rich-html.js +123 -0
- package/dist/theme.d.ts +67 -0
- package/dist/theme.js +68 -0
- package/dist/toast.d.ts +3 -0
- package/dist/toast.js +69 -0
- package/package.json +35 -4
package/dist/overlays.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Sheet = Sheet;
|
|
4
|
+
exports.ActionSheet = ActionSheet;
|
|
5
|
+
exports.ConfirmDialog = ConfirmDialog;
|
|
6
|
+
exports.ResultDialog = ResultDialog;
|
|
7
|
+
exports.LoadingOverlay = LoadingOverlay;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const react_native_1 = require("react-native");
|
|
10
|
+
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
11
|
+
const theme_1 = require("./theme");
|
|
12
|
+
const primitives_1 = require("./primitives");
|
|
13
|
+
const icons_1 = require("./icons");
|
|
14
|
+
/** Native Modal children retain the provider of the app that rendered them. */
|
|
15
|
+
function Sheet({ visible, onClose, title, closeAccessibilityLabel = "Close", children, style, animationType = "slide", keyboardAvoiding = false, }) {
|
|
16
|
+
const { colors: c, spacing: s, radius: r } = (0, theme_1.useUITheme)();
|
|
17
|
+
const insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
|
|
18
|
+
const Root = keyboardAvoiding ? react_native_1.KeyboardAvoidingView : react_native_1.View;
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: visible, transparent: true, animationType: animationType, onRequestClose: onClose, statusBarTranslucent: true, children: (0, jsx_runtime_1.jsxs)(Root, { behavior: keyboardAvoiding && react_native_1.Platform.OS === "ios" ? "padding" : undefined, style: [
|
|
20
|
+
styles.modalRoot,
|
|
21
|
+
{ backgroundColor: c.backdrop, paddingTop: insets.top },
|
|
22
|
+
], children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { style: react_native_1.StyleSheet.absoluteFill, onPress: onClose, accessible: false }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { accessibilityViewIsModal: true, style: [
|
|
23
|
+
{
|
|
24
|
+
maxHeight: "90%",
|
|
25
|
+
// The panel must yield to the keyboard instead of moving its header off-screen.
|
|
26
|
+
flexShrink: keyboardAvoiding ? 1 : undefined,
|
|
27
|
+
backgroundColor: c.background,
|
|
28
|
+
borderTopLeftRadius: r.sheet,
|
|
29
|
+
borderTopRightRadius: r.sheet,
|
|
30
|
+
paddingBottom: Math.max(s.xxl, insets.bottom),
|
|
31
|
+
},
|
|
32
|
+
style,
|
|
33
|
+
], children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
34
|
+
styles.sheetHeader,
|
|
35
|
+
{ paddingHorizontal: s.lg, paddingVertical: s.md },
|
|
36
|
+
], children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.headerSide }), (0, jsx_runtime_1.jsx)(primitives_1.UIText, { variant: "subtitle", weight: "600", numberOfLines: 1, style: styles.sheetTitle, children: title }), (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { onPress: onClose, hitSlop: 12, accessibilityRole: "button", accessibilityLabel: closeAccessibilityLabel, children: (0, jsx_runtime_1.jsx)(icons_1.UIIcon, { name: "close", size: 18, color: c.content2 }) })] }), children] })] }) }));
|
|
37
|
+
}
|
|
38
|
+
function ActionSheet({ items, onSelect, cancelText, ...props }) {
|
|
39
|
+
const { colors: c, spacing: s } = (0, theme_1.useUITheme)();
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(Sheet, { ...props, children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { paddingHorizontal: s.lg }, children: [items.map((item) => ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, { disabled: item.disabled, onPress: () => {
|
|
41
|
+
onSelect(item);
|
|
42
|
+
props.onClose();
|
|
43
|
+
}, accessibilityRole: "button", accessibilityState: { disabled: !!item.disabled }, style: [
|
|
44
|
+
styles.actionItem,
|
|
45
|
+
{
|
|
46
|
+
paddingVertical: s.lg,
|
|
47
|
+
gap: s.md,
|
|
48
|
+
borderBottomColor: c.divider,
|
|
49
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
50
|
+
},
|
|
51
|
+
], children: [item.icon, (0, jsx_runtime_1.jsx)(primitives_1.UIText, { color: item.destructive ? "danger" : "content1", children: item.label })] }, item.id))), cancelText != null && ((0, jsx_runtime_1.jsx)(primitives_1.Button, { label: cancelText, variant: "ghost", onPress: props.onClose, style: { marginTop: s.sm } }))] }) }));
|
|
52
|
+
}
|
|
53
|
+
function ConfirmDialog({ visible, title, message, confirmText, cancelText, destructive, loading, onConfirm, onClose, illustration, }) {
|
|
54
|
+
const { colors: c, spacing: s, radius: r } = (0, theme_1.useUITheme)();
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: visible, transparent: true, animationType: "fade", onRequestClose: loading ? () => undefined : onClose, statusBarTranslucent: true, children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
56
|
+
styles.dialogRoot,
|
|
57
|
+
{ backgroundColor: c.backdrop, padding: s.xxl },
|
|
58
|
+
], children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { style: react_native_1.StyleSheet.absoluteFill, onPress: loading ? undefined : onClose, accessible: false }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { accessibilityViewIsModal: true, style: [
|
|
59
|
+
styles.dialog,
|
|
60
|
+
{
|
|
61
|
+
padding: s.xl,
|
|
62
|
+
gap: s.lg,
|
|
63
|
+
backgroundColor: c.background,
|
|
64
|
+
borderRadius: r.lg,
|
|
65
|
+
},
|
|
66
|
+
], children: [illustration, title != null && ((0, jsx_runtime_1.jsx)(primitives_1.UIText, { variant: "subtitle", weight: "600", style: styles.center, children: title })), typeof message === "string" ? ((0, jsx_runtime_1.jsx)(primitives_1.UIText, { color: "content2", style: styles.center, children: message })) : (message), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [styles.dialogActions, { gap: s.md }], children: [cancelText != null && ((0, jsx_runtime_1.jsx)(primitives_1.Button, { label: cancelText, variant: "outline", disabled: loading, onPress: onClose, style: styles.flex })), (0, jsx_runtime_1.jsx)(primitives_1.Button, { label: confirmText, variant: destructive ? "danger" : "primary", loading: loading, onPress: onConfirm, style: styles.flex })] })] })] }) }));
|
|
67
|
+
}
|
|
68
|
+
function ResultDialog({ buttonText, ...props }) {
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(ConfirmDialog, { ...props, confirmText: buttonText, onConfirm: props.onClose }));
|
|
70
|
+
}
|
|
71
|
+
function LoadingOverlay({ visible, label, presentation = "modal", testID, }) {
|
|
72
|
+
const { colors: c, spacing: s, radius: r } = (0, theme_1.useUITheme)();
|
|
73
|
+
if (!visible)
|
|
74
|
+
return null;
|
|
75
|
+
const content = ((0, jsx_runtime_1.jsx)(react_native_1.View, { testID: testID, accessibilityViewIsModal: true, accessibilityLiveRegion: "polite", style: [
|
|
76
|
+
styles.dialogRoot,
|
|
77
|
+
{ backgroundColor: c.backdrop },
|
|
78
|
+
presentation === "inline" && {
|
|
79
|
+
...react_native_1.StyleSheet.absoluteFillObject,
|
|
80
|
+
zIndex: 10000,
|
|
81
|
+
elevation: 10000,
|
|
82
|
+
},
|
|
83
|
+
], children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: {
|
|
84
|
+
padding: s.xxl,
|
|
85
|
+
gap: s.md,
|
|
86
|
+
backgroundColor: c.background,
|
|
87
|
+
borderRadius: r.lg,
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_native_1.ActivityIndicator, { size: "large", color: c.primary500 }), label != null && (0, jsx_runtime_1.jsx)(primitives_1.UIText, { children: label })] }) }));
|
|
90
|
+
if (presentation === "inline")
|
|
91
|
+
return content;
|
|
92
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: true, transparent: true, animationType: "fade", onRequestClose: () => undefined, statusBarTranslucent: true, children: content }));
|
|
93
|
+
}
|
|
94
|
+
const styles = react_native_1.StyleSheet.create({
|
|
95
|
+
modalRoot: { flex: 1, justifyContent: "flex-end" },
|
|
96
|
+
sheetHeader: { flexDirection: "row", alignItems: "center" },
|
|
97
|
+
headerSide: { width: 18 },
|
|
98
|
+
sheetTitle: { flex: 1, textAlign: "center" },
|
|
99
|
+
actionItem: {
|
|
100
|
+
flexDirection: "row",
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
borderBottomWidth: 1,
|
|
103
|
+
},
|
|
104
|
+
dialogRoot: { flex: 1, alignItems: "center", justifyContent: "center" },
|
|
105
|
+
dialog: { width: "100%", maxWidth: 420, alignItems: "center" },
|
|
106
|
+
dialogActions: { flexDirection: "row", alignSelf: "stretch" },
|
|
107
|
+
center: { textAlign: "center" },
|
|
108
|
+
flex: { flex: 1 },
|
|
109
|
+
});
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ImageSourcePropType, PressableProps, StyleProp, TextProps, TextStyle, ViewProps, ViewStyle } from "react-native";
|
|
3
|
+
import { UIColors } from "./theme";
|
|
4
|
+
export interface UITextProps extends TextProps {
|
|
5
|
+
variant?: "caption" | "label" | "body" | "subtitle" | "title";
|
|
6
|
+
color?: keyof UIColors;
|
|
7
|
+
weight?: TextStyle["fontWeight"];
|
|
8
|
+
}
|
|
9
|
+
export declare function UIText({ variant, color, weight, style, ...props }: UITextProps): React.JSX.Element;
|
|
10
|
+
export interface ButtonProps extends Omit<PressableProps, "children" | "style"> {
|
|
11
|
+
label?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
variant?: "primary" | "outline" | "ghost" | "danger";
|
|
14
|
+
size?: "small" | "normal";
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** Optional shared cooldown for press/long press; no throttle by default. */
|
|
17
|
+
throttleMs?: number;
|
|
18
|
+
leading?: React.ReactNode;
|
|
19
|
+
trailing?: React.ReactNode;
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
textStyle?: StyleProp<TextStyle>;
|
|
22
|
+
}
|
|
23
|
+
export declare function Button({ label, children, variant, size, loading, throttleMs, leading, trailing, disabled, style, textStyle, accessibilityLabel, accessibilityState, onPress, onLongPress, onPressIn, onPressOut, ...props }: ButtonProps): React.JSX.Element;
|
|
24
|
+
export interface HeaderActionProps extends Omit<PressableProps, "children" | "style"> {
|
|
25
|
+
accessibilityLabel: string;
|
|
26
|
+
icon?: React.ReactNode | ((props: {
|
|
27
|
+
color: string;
|
|
28
|
+
size: number;
|
|
29
|
+
}) => React.ReactNode);
|
|
30
|
+
label?: string;
|
|
31
|
+
active?: boolean;
|
|
32
|
+
indicator?: boolean;
|
|
33
|
+
style?: StyleProp<ViewStyle>;
|
|
34
|
+
}
|
|
35
|
+
/** A header action with shared geometry, feedback, and active-state colors. */
|
|
36
|
+
export declare function HeaderAction({ icon, label, active, indicator, disabled, accessibilityLabel, accessibilityState, hitSlop, style, ...props }: HeaderActionProps): React.JSX.Element;
|
|
37
|
+
export interface ScreenHeaderSearchProps {
|
|
38
|
+
active: boolean;
|
|
39
|
+
value: string;
|
|
40
|
+
onChangeText: (value: string) => void;
|
|
41
|
+
onSubmit?: (value: string) => void;
|
|
42
|
+
onClear?: () => void;
|
|
43
|
+
onCancel: () => void;
|
|
44
|
+
placeholder?: string;
|
|
45
|
+
cancelLabel?: string;
|
|
46
|
+
cancelIcon?: React.ReactNode;
|
|
47
|
+
leading?: React.ReactNode;
|
|
48
|
+
autoFocus?: boolean;
|
|
49
|
+
clearAccessibilityLabel?: string;
|
|
50
|
+
cancelAccessibilityLabel?: string;
|
|
51
|
+
accessibilityLabel?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ScreenHeaderProps {
|
|
54
|
+
title: string;
|
|
55
|
+
variant?: "default" | "onAccent" | "surface";
|
|
56
|
+
onBack?: () => void;
|
|
57
|
+
backIcon?: React.ReactNode;
|
|
58
|
+
backAccessibilityLabel?: string;
|
|
59
|
+
leading?: React.ReactNode;
|
|
60
|
+
trailing?: React.ReactNode;
|
|
61
|
+
safeArea?: boolean;
|
|
62
|
+
style?: StyleProp<ViewStyle>;
|
|
63
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
64
|
+
titleWeight?: TextStyle["fontWeight"] | "platform";
|
|
65
|
+
search?: ScreenHeaderSearchProps;
|
|
66
|
+
}
|
|
67
|
+
export declare function ScreenHeader({ title, variant, onBack, backIcon, backAccessibilityLabel, leading, trailing, safeArea, style, titleStyle, titleWeight, search, }: ScreenHeaderProps): React.JSX.Element;
|
|
68
|
+
/** Header for an app-owned form sheet. Labels and callbacks belong to the app. */
|
|
69
|
+
export interface FormHeaderProps extends Omit<ViewProps, "children"> {
|
|
70
|
+
title: string;
|
|
71
|
+
cancelText: string;
|
|
72
|
+
confirmText: string;
|
|
73
|
+
onCancel: () => void;
|
|
74
|
+
onConfirm: () => void;
|
|
75
|
+
confirmDisabled?: boolean;
|
|
76
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
77
|
+
actionTextStyle?: StyleProp<TextStyle>;
|
|
78
|
+
disabledActionTextStyle?: StyleProp<TextStyle>;
|
|
79
|
+
cancelTestID?: string;
|
|
80
|
+
confirmTestID?: string;
|
|
81
|
+
}
|
|
82
|
+
export declare function FormHeader({ title, cancelText, confirmText, onCancel, onConfirm, confirmDisabled, style, titleStyle, actionTextStyle, disabledActionTextStyle, testID, cancelTestID, confirmTestID, ...props }: FormHeaderProps): React.JSX.Element;
|
|
83
|
+
export interface SkeletonProps extends ViewProps {
|
|
84
|
+
width?: ViewStyle["width"];
|
|
85
|
+
height?: number;
|
|
86
|
+
animated?: boolean;
|
|
87
|
+
variant?: "pulse" | "shimmer";
|
|
88
|
+
animationType?: "overlay" | "fade";
|
|
89
|
+
duration?: number;
|
|
90
|
+
primaryColor?: string;
|
|
91
|
+
secondaryColor?: string;
|
|
92
|
+
}
|
|
93
|
+
export declare function Skeleton({ width, height, animated, variant, animationType, duration, primaryColor, secondaryColor, style, onLayout, ...props }: SkeletonProps): React.JSX.Element;
|
|
94
|
+
export interface TextOrSkeletonProps extends Omit<UITextProps, "children"> {
|
|
95
|
+
showSkeleton: boolean;
|
|
96
|
+
value?: React.ReactNode;
|
|
97
|
+
textStyle?: StyleProp<TextStyle>;
|
|
98
|
+
skeletonStyle?: StyleProp<ViewStyle>;
|
|
99
|
+
skeletonProps?: SkeletonProps;
|
|
100
|
+
}
|
|
101
|
+
export declare function TextOrSkeleton({ showSkeleton, value, textStyle, skeletonStyle, skeletonProps, ...props }: TextOrSkeletonProps): React.JSX.Element;
|
|
102
|
+
export interface InfoRowProps {
|
|
103
|
+
label: React.ReactNode;
|
|
104
|
+
value?: React.ReactNode;
|
|
105
|
+
variant?: "detail" | "summary";
|
|
106
|
+
loading?: boolean;
|
|
107
|
+
divider?: boolean;
|
|
108
|
+
labelWidth?: number;
|
|
109
|
+
valueNumberOfLines?: number;
|
|
110
|
+
style?: StyleProp<ViewStyle>;
|
|
111
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
112
|
+
valueStyle?: StyleProp<TextStyle>;
|
|
113
|
+
}
|
|
114
|
+
export declare function InfoRow({ label, value, variant, loading, divider, labelWidth, valueNumberOfLines, style, labelStyle, valueStyle, }: InfoRowProps): React.JSX.Element;
|
|
115
|
+
export interface EmptyStateProps extends ViewProps {
|
|
116
|
+
variant?: "default" | "illustrated";
|
|
117
|
+
title?: string;
|
|
118
|
+
description?: string;
|
|
119
|
+
image?: ImageSourcePropType;
|
|
120
|
+
illustration?: React.ReactNode;
|
|
121
|
+
illustrationSize?: number;
|
|
122
|
+
/** Width divided by height, as in React Native aspectRatio. */
|
|
123
|
+
illustrationAspectRatio?: number;
|
|
124
|
+
action?: React.ReactNode;
|
|
125
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
126
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
127
|
+
}
|
|
128
|
+
export declare function EmptyState({ variant, title, description, image, illustration, illustrationSize, illustrationAspectRatio, action, titleStyle, descriptionStyle, style, onLayout, ...props }: EmptyStateProps): React.JSX.Element;
|
|
129
|
+
export declare function Card({ style, ...props }: ViewProps): React.JSX.Element;
|
|
130
|
+
export interface CollapsibleSectionProps {
|
|
131
|
+
variant?: "default" | "bordered";
|
|
132
|
+
title: React.ReactNode;
|
|
133
|
+
children?: React.ReactNode;
|
|
134
|
+
expanded?: boolean;
|
|
135
|
+
defaultExpanded?: boolean;
|
|
136
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
137
|
+
trailing?: React.ReactNode;
|
|
138
|
+
style?: StyleProp<ViewStyle>;
|
|
139
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
140
|
+
testID?: string;
|
|
141
|
+
toggleTestID?: string;
|
|
142
|
+
contentTestID?: string;
|
|
143
|
+
}
|
|
144
|
+
export declare function CollapsibleSection({ variant, title, children, expanded, defaultExpanded, onExpandedChange, trailing, style, headerStyle, testID, toggleTestID, contentTestID, }: CollapsibleSectionProps): React.JSX.Element;
|
|
145
|
+
export interface BadgeProps {
|
|
146
|
+
children: React.ReactNode;
|
|
147
|
+
tone?: "accent" | "success" | "warning" | "danger" | "neutral";
|
|
148
|
+
color?: string;
|
|
149
|
+
backgroundColor?: string;
|
|
150
|
+
style?: StyleProp<ViewStyle>;
|
|
151
|
+
textStyle?: StyleProp<TextStyle>;
|
|
152
|
+
}
|
|
153
|
+
export declare function Badge({ children, tone, color, backgroundColor, style, textStyle, }: BadgeProps): React.JSX.Element;
|
|
154
|
+
export interface ActionBarProps extends ViewProps {
|
|
155
|
+
safeArea?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export declare function ActionBar({ children, safeArea, style, ...props }: ActionBarProps): React.JSX.Element;
|