@tastic/hud 0.6.0 → 0.7.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/index.d.mts +107 -63
- package/dist/index.d.ts +107 -63
- package/dist/index.js +448 -337
- package/dist/index.mjs +415 -307
- package/package.json +1 -1
- package/src/ConfirmDialog.tsx +104 -0
- package/src/ControlSchemePicker.tsx +53 -0
- package/src/CornerActionButtons.tsx +10 -2
- package/src/CornerStatusBadges.tsx +87 -0
- package/src/index.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -61,6 +61,20 @@ interface Props$b {
|
|
|
61
61
|
}
|
|
62
62
|
declare function BaseStatsScreen({ rotation, title, titleVariant, onBack, insets, onReset, resetLabel, resetConfirmTitle, resetConfirmBody, fg: fgOverride, bg: bgOverride, cardBg: cardBgOverride, accentColor: accentColorOverride, children }: Props$b): react.JSX.Element;
|
|
63
63
|
|
|
64
|
+
interface ConfirmDialogProps {
|
|
65
|
+
visible: boolean;
|
|
66
|
+
title: string;
|
|
67
|
+
message: string;
|
|
68
|
+
confirmLabel: string;
|
|
69
|
+
cancelLabel: string;
|
|
70
|
+
onConfirm: () => void;
|
|
71
|
+
onCancel: () => void;
|
|
72
|
+
rotation?: number;
|
|
73
|
+
icon?: string;
|
|
74
|
+
destructive?: boolean;
|
|
75
|
+
}
|
|
76
|
+
declare function ConfirmDialog({ visible, title, message, confirmLabel, cancelLabel, onConfirm, onCancel, rotation, icon, destructive }: ConfirmDialogProps): react.JSX.Element | null;
|
|
77
|
+
|
|
64
78
|
interface Props$a {
|
|
65
79
|
maxContentWidth?: number;
|
|
66
80
|
leftGutter?: ReactNode;
|
|
@@ -70,7 +84,74 @@ interface Props$a {
|
|
|
70
84
|
}
|
|
71
85
|
declare function ContentGutter({ maxContentWidth, leftGutter, rightGutter, style, children }: Props$a): react.JSX.Element;
|
|
72
86
|
|
|
87
|
+
interface PopoverHost {
|
|
88
|
+
openId: string | null;
|
|
89
|
+
toggle: (id: string) => void;
|
|
90
|
+
close: () => void;
|
|
91
|
+
}
|
|
92
|
+
declare function usePopoverHost(): PopoverHost;
|
|
93
|
+
|
|
94
|
+
interface MenuOption<T extends string | number> {
|
|
95
|
+
value: T;
|
|
96
|
+
label: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
icon?: string;
|
|
99
|
+
iconSize?: number;
|
|
100
|
+
}
|
|
101
|
+
interface SingleSelectSection<T extends string | number> {
|
|
102
|
+
kind: 'single';
|
|
103
|
+
id: string;
|
|
104
|
+
options: MenuOption<T>[];
|
|
105
|
+
value: T;
|
|
106
|
+
onChange: (value: T) => void;
|
|
107
|
+
takenValue?: T;
|
|
108
|
+
}
|
|
109
|
+
interface MultiSelectSection<T extends string | number> {
|
|
110
|
+
kind: 'multi';
|
|
111
|
+
id: string;
|
|
112
|
+
options: MenuOption<T>[];
|
|
113
|
+
value: T[];
|
|
114
|
+
onChange: (value: T[]) => void;
|
|
115
|
+
allClear?: boolean;
|
|
116
|
+
}
|
|
117
|
+
type MenuSection = SingleSelectSection<any> | MultiSelectSection<any>;
|
|
73
118
|
interface Props$9 {
|
|
119
|
+
id: string;
|
|
120
|
+
host: PopoverHost;
|
|
121
|
+
icon: string;
|
|
122
|
+
accessibilityLabel: string;
|
|
123
|
+
sections: MenuSection[];
|
|
124
|
+
accentColor: string;
|
|
125
|
+
mutedColor: string;
|
|
126
|
+
onAccentColor?: string;
|
|
127
|
+
dark: boolean;
|
|
128
|
+
align?: 'left' | 'right' | 'center';
|
|
129
|
+
autoDismiss?: boolean;
|
|
130
|
+
labelFontFamily?: string;
|
|
131
|
+
allClearLabels?: {
|
|
132
|
+
all: string;
|
|
133
|
+
clear: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
declare function SectionedDropdown({ id, host, icon, accessibilityLabel, sections, accentColor, mutedColor, onAccentColor, dark, align: alignOverride, autoDismiss, labelFontFamily, allClearLabels }: Props$9): react.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface ControlSchemePickerProps<T extends string | number> {
|
|
139
|
+
id: string;
|
|
140
|
+
host: PopoverHost;
|
|
141
|
+
value: T;
|
|
142
|
+
onChange: (value: T) => void;
|
|
143
|
+
options: MenuOption<T>[];
|
|
144
|
+
takenValue?: T;
|
|
145
|
+
accentColor: string;
|
|
146
|
+
mutedColor: string;
|
|
147
|
+
onAccentColor?: string;
|
|
148
|
+
dark: boolean;
|
|
149
|
+
align?: 'left' | 'right' | 'center';
|
|
150
|
+
labelFontFamily?: string;
|
|
151
|
+
}
|
|
152
|
+
declare function ControlSchemePicker<T extends string | number>({ id, host, value, onChange, options, takenValue, accentColor, mutedColor, onAccentColor, dark, align, labelFontFamily }: ControlSchemePickerProps<T>): react.JSX.Element | null;
|
|
153
|
+
|
|
154
|
+
interface Props$8 {
|
|
74
155
|
onBack: () => void;
|
|
75
156
|
onSettings: () => void;
|
|
76
157
|
fg: string;
|
|
@@ -79,19 +160,26 @@ interface Props$9 {
|
|
|
79
160
|
left: number;
|
|
80
161
|
right: number;
|
|
81
162
|
};
|
|
163
|
+
backIcon?: string;
|
|
164
|
+
backLabel?: string;
|
|
82
165
|
}
|
|
83
|
-
declare function CornerActionButtons({ onBack, onSettings, fg, insets }: Props$
|
|
166
|
+
declare function CornerActionButtons({ onBack, onSettings, fg, insets, backIcon, backLabel }: Props$8): react.JSX.Element;
|
|
84
167
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
openId: string | null;
|
|
89
|
-
toggle: (id: string) => void;
|
|
90
|
-
close: () => void;
|
|
168
|
+
type OrientationMode = 'faceToFace' | 'sideBySide';
|
|
169
|
+
interface CornerStatusBadgeSeat {
|
|
170
|
+
icon?: string;
|
|
91
171
|
}
|
|
92
|
-
|
|
172
|
+
interface CornerStatusBadgesProps {
|
|
173
|
+
orientationMode: OrientationMode;
|
|
174
|
+
p1OnRight: boolean;
|
|
175
|
+
p1?: CornerStatusBadgeSeat;
|
|
176
|
+
p2?: CornerStatusBadgeSeat;
|
|
177
|
+
}
|
|
178
|
+
declare function CornerStatusBadges({ orientationMode, p1OnRight, p1, p2 }: CornerStatusBadgesProps): react.JSX.Element;
|
|
93
179
|
|
|
94
|
-
|
|
180
|
+
declare const MONO_FONT: string;
|
|
181
|
+
|
|
182
|
+
interface Props$7 {
|
|
95
183
|
id: string;
|
|
96
184
|
host: PopoverHost;
|
|
97
185
|
value: string;
|
|
@@ -109,7 +197,7 @@ interface Props$8 {
|
|
|
109
197
|
columns?: number;
|
|
110
198
|
size?: number;
|
|
111
199
|
}
|
|
112
|
-
declare function InlineColorPicker({ id, host, value, onChange, previewValue, swatches, takenValue, allowSwapTaken, dark, align: alignOverride, icon, tag, labelFontFamily, autoDismiss, columns, size }: Props$
|
|
200
|
+
declare function InlineColorPicker({ id, host, value, onChange, previewValue, swatches, takenValue, allowSwapTaken, dark, align: alignOverride, icon, tag, labelFontFamily, autoDismiss, columns, size }: Props$7): react.JSX.Element;
|
|
113
201
|
|
|
114
202
|
type PopoverAlign = 'left' | 'right' | 'center';
|
|
115
203
|
type PopoverVerticalAlign = 'below' | 'above';
|
|
@@ -135,7 +223,7 @@ interface AlignResult {
|
|
|
135
223
|
measured: boolean;
|
|
136
224
|
triggerRef: RefObject<View | null>;
|
|
137
225
|
}
|
|
138
|
-
interface Props$
|
|
226
|
+
interface Props$6<T extends string> {
|
|
139
227
|
id: string;
|
|
140
228
|
host: PopoverHost;
|
|
141
229
|
options: LabeledDropdownOption<T>[];
|
|
@@ -146,11 +234,11 @@ interface Props$7<T extends string> {
|
|
|
146
234
|
align?: 'left' | 'right' | 'center';
|
|
147
235
|
alignOverride?: AlignResult;
|
|
148
236
|
}
|
|
149
|
-
declare function LabeledDropdown<T extends string>({ id, host, options, value, onChange, color, dark, align: forcedAlign, alignOverride }: Props$
|
|
237
|
+
declare function LabeledDropdown<T extends string>({ id, host, options, value, onChange, color, dark, align: forcedAlign, alignOverride }: Props$6<T>): react.JSX.Element;
|
|
150
238
|
|
|
151
239
|
declare function loadSkiaWeb(): Promise<void>;
|
|
152
240
|
|
|
153
|
-
interface Props$
|
|
241
|
+
interface Props$5 {
|
|
154
242
|
visible: boolean;
|
|
155
243
|
children: ReactNode;
|
|
156
244
|
align?: 'left' | 'right' | 'center';
|
|
@@ -160,67 +248,23 @@ interface Props$6 {
|
|
|
160
248
|
caretBorderWidth?: number;
|
|
161
249
|
triggerSize?: number;
|
|
162
250
|
}
|
|
163
|
-
declare function PopoverBody({ visible, children, align, verticalAlign, caretColor, caretBorderColor, caretBorderWidth, triggerSize }: Props$
|
|
251
|
+
declare function PopoverBody({ visible, children, align, verticalAlign, caretColor, caretBorderColor, caretBorderWidth, triggerSize }: Props$5): react.JSX.Element | null;
|
|
164
252
|
|
|
165
|
-
interface Props$
|
|
253
|
+
interface Props$4 {
|
|
166
254
|
active: boolean;
|
|
167
255
|
onPress: () => void;
|
|
168
256
|
style?: StyleProp<ViewStyle>;
|
|
169
257
|
}
|
|
170
|
-
declare function PressAwayOverlay({ active, onPress, style }: Props$
|
|
258
|
+
declare function PressAwayOverlay({ active, onPress, style }: Props$4): react.JSX.Element | null;
|
|
171
259
|
|
|
172
|
-
interface Props$
|
|
260
|
+
interface Props$3 {
|
|
173
261
|
color: string;
|
|
174
262
|
ready: boolean;
|
|
175
263
|
onToggleReady: () => void;
|
|
176
264
|
style?: StyleProp<ViewStyle>;
|
|
177
265
|
labelFontFamily?: string;
|
|
178
266
|
}
|
|
179
|
-
declare function ReadyButton({ color, ready, onToggleReady, style, labelFontFamily }: Props$
|
|
180
|
-
|
|
181
|
-
interface MenuOption<T extends string | number> {
|
|
182
|
-
value: T;
|
|
183
|
-
label: string;
|
|
184
|
-
description?: string;
|
|
185
|
-
icon?: string;
|
|
186
|
-
iconSize?: number;
|
|
187
|
-
}
|
|
188
|
-
interface SingleSelectSection<T extends string | number> {
|
|
189
|
-
kind: 'single';
|
|
190
|
-
id: string;
|
|
191
|
-
options: MenuOption<T>[];
|
|
192
|
-
value: T;
|
|
193
|
-
onChange: (value: T) => void;
|
|
194
|
-
takenValue?: T;
|
|
195
|
-
}
|
|
196
|
-
interface MultiSelectSection<T extends string | number> {
|
|
197
|
-
kind: 'multi';
|
|
198
|
-
id: string;
|
|
199
|
-
options: MenuOption<T>[];
|
|
200
|
-
value: T[];
|
|
201
|
-
onChange: (value: T[]) => void;
|
|
202
|
-
allClear?: boolean;
|
|
203
|
-
}
|
|
204
|
-
type MenuSection = SingleSelectSection<any> | MultiSelectSection<any>;
|
|
205
|
-
interface Props$3 {
|
|
206
|
-
id: string;
|
|
207
|
-
host: PopoverHost;
|
|
208
|
-
icon: string;
|
|
209
|
-
accessibilityLabel: string;
|
|
210
|
-
sections: MenuSection[];
|
|
211
|
-
accentColor: string;
|
|
212
|
-
mutedColor: string;
|
|
213
|
-
onAccentColor?: string;
|
|
214
|
-
dark: boolean;
|
|
215
|
-
align?: 'left' | 'right' | 'center';
|
|
216
|
-
autoDismiss?: boolean;
|
|
217
|
-
labelFontFamily?: string;
|
|
218
|
-
allClearLabels?: {
|
|
219
|
-
all: string;
|
|
220
|
-
clear: string;
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
declare function SectionedDropdown({ id, host, icon, accessibilityLabel, sections, accentColor, mutedColor, onAccentColor, dark, align: alignOverride, autoDismiss, labelFontFamily, allClearLabels }: Props$3): react.JSX.Element;
|
|
267
|
+
declare function ReadyButton({ color, ready, onToggleReady, style, labelFontFamily }: Props$3): react.JSX.Element;
|
|
224
268
|
|
|
225
269
|
interface Props$2 {
|
|
226
270
|
onBack: () => void;
|
|
@@ -262,4 +306,4 @@ interface TriggerGaugeProps {
|
|
|
262
306
|
|
|
263
307
|
declare function TriggerGaugeHost(props: TriggerGaugeProps): react.JSX.Element;
|
|
264
308
|
|
|
265
|
-
export { AchievementRow, BaseSettingsDialog, type BaseSettingsDialogProps, BaseStatsScreen, ContentGutter, CornerActionButtons, InlineColorPicker, LABELED_DROPDOWN_POPOVER_WIDTH, LOCKED_BADGE_COLOR, LabeledDropdown, type LabeledDropdownOption, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, SharedActionBand, type SingleSelectSection, StatRow, StatSection, TriggerGaugeHost, type TriggerGaugeProps, getLabeledDropdownContentHeight, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
|
309
|
+
export { AchievementRow, BaseSettingsDialog, type BaseSettingsDialogProps, BaseStatsScreen, ConfirmDialog, type ConfirmDialogProps, ContentGutter, ControlSchemePicker, type ControlSchemePickerProps, CornerActionButtons, type CornerStatusBadgeSeat, CornerStatusBadges, type CornerStatusBadgesProps, InlineColorPicker, LABELED_DROPDOWN_POPOVER_WIDTH, LOCKED_BADGE_COLOR, LabeledDropdown, type LabeledDropdownOption, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type OrientationMode, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, SharedActionBand, type SingleSelectSection, StatRow, StatSection, TriggerGaugeHost, type TriggerGaugeProps, getLabeledDropdownContentHeight, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,20 @@ interface Props$b {
|
|
|
61
61
|
}
|
|
62
62
|
declare function BaseStatsScreen({ rotation, title, titleVariant, onBack, insets, onReset, resetLabel, resetConfirmTitle, resetConfirmBody, fg: fgOverride, bg: bgOverride, cardBg: cardBgOverride, accentColor: accentColorOverride, children }: Props$b): react.JSX.Element;
|
|
63
63
|
|
|
64
|
+
interface ConfirmDialogProps {
|
|
65
|
+
visible: boolean;
|
|
66
|
+
title: string;
|
|
67
|
+
message: string;
|
|
68
|
+
confirmLabel: string;
|
|
69
|
+
cancelLabel: string;
|
|
70
|
+
onConfirm: () => void;
|
|
71
|
+
onCancel: () => void;
|
|
72
|
+
rotation?: number;
|
|
73
|
+
icon?: string;
|
|
74
|
+
destructive?: boolean;
|
|
75
|
+
}
|
|
76
|
+
declare function ConfirmDialog({ visible, title, message, confirmLabel, cancelLabel, onConfirm, onCancel, rotation, icon, destructive }: ConfirmDialogProps): react.JSX.Element | null;
|
|
77
|
+
|
|
64
78
|
interface Props$a {
|
|
65
79
|
maxContentWidth?: number;
|
|
66
80
|
leftGutter?: ReactNode;
|
|
@@ -70,7 +84,74 @@ interface Props$a {
|
|
|
70
84
|
}
|
|
71
85
|
declare function ContentGutter({ maxContentWidth, leftGutter, rightGutter, style, children }: Props$a): react.JSX.Element;
|
|
72
86
|
|
|
87
|
+
interface PopoverHost {
|
|
88
|
+
openId: string | null;
|
|
89
|
+
toggle: (id: string) => void;
|
|
90
|
+
close: () => void;
|
|
91
|
+
}
|
|
92
|
+
declare function usePopoverHost(): PopoverHost;
|
|
93
|
+
|
|
94
|
+
interface MenuOption<T extends string | number> {
|
|
95
|
+
value: T;
|
|
96
|
+
label: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
icon?: string;
|
|
99
|
+
iconSize?: number;
|
|
100
|
+
}
|
|
101
|
+
interface SingleSelectSection<T extends string | number> {
|
|
102
|
+
kind: 'single';
|
|
103
|
+
id: string;
|
|
104
|
+
options: MenuOption<T>[];
|
|
105
|
+
value: T;
|
|
106
|
+
onChange: (value: T) => void;
|
|
107
|
+
takenValue?: T;
|
|
108
|
+
}
|
|
109
|
+
interface MultiSelectSection<T extends string | number> {
|
|
110
|
+
kind: 'multi';
|
|
111
|
+
id: string;
|
|
112
|
+
options: MenuOption<T>[];
|
|
113
|
+
value: T[];
|
|
114
|
+
onChange: (value: T[]) => void;
|
|
115
|
+
allClear?: boolean;
|
|
116
|
+
}
|
|
117
|
+
type MenuSection = SingleSelectSection<any> | MultiSelectSection<any>;
|
|
73
118
|
interface Props$9 {
|
|
119
|
+
id: string;
|
|
120
|
+
host: PopoverHost;
|
|
121
|
+
icon: string;
|
|
122
|
+
accessibilityLabel: string;
|
|
123
|
+
sections: MenuSection[];
|
|
124
|
+
accentColor: string;
|
|
125
|
+
mutedColor: string;
|
|
126
|
+
onAccentColor?: string;
|
|
127
|
+
dark: boolean;
|
|
128
|
+
align?: 'left' | 'right' | 'center';
|
|
129
|
+
autoDismiss?: boolean;
|
|
130
|
+
labelFontFamily?: string;
|
|
131
|
+
allClearLabels?: {
|
|
132
|
+
all: string;
|
|
133
|
+
clear: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
declare function SectionedDropdown({ id, host, icon, accessibilityLabel, sections, accentColor, mutedColor, onAccentColor, dark, align: alignOverride, autoDismiss, labelFontFamily, allClearLabels }: Props$9): react.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface ControlSchemePickerProps<T extends string | number> {
|
|
139
|
+
id: string;
|
|
140
|
+
host: PopoverHost;
|
|
141
|
+
value: T;
|
|
142
|
+
onChange: (value: T) => void;
|
|
143
|
+
options: MenuOption<T>[];
|
|
144
|
+
takenValue?: T;
|
|
145
|
+
accentColor: string;
|
|
146
|
+
mutedColor: string;
|
|
147
|
+
onAccentColor?: string;
|
|
148
|
+
dark: boolean;
|
|
149
|
+
align?: 'left' | 'right' | 'center';
|
|
150
|
+
labelFontFamily?: string;
|
|
151
|
+
}
|
|
152
|
+
declare function ControlSchemePicker<T extends string | number>({ id, host, value, onChange, options, takenValue, accentColor, mutedColor, onAccentColor, dark, align, labelFontFamily }: ControlSchemePickerProps<T>): react.JSX.Element | null;
|
|
153
|
+
|
|
154
|
+
interface Props$8 {
|
|
74
155
|
onBack: () => void;
|
|
75
156
|
onSettings: () => void;
|
|
76
157
|
fg: string;
|
|
@@ -79,19 +160,26 @@ interface Props$9 {
|
|
|
79
160
|
left: number;
|
|
80
161
|
right: number;
|
|
81
162
|
};
|
|
163
|
+
backIcon?: string;
|
|
164
|
+
backLabel?: string;
|
|
82
165
|
}
|
|
83
|
-
declare function CornerActionButtons({ onBack, onSettings, fg, insets }: Props$
|
|
166
|
+
declare function CornerActionButtons({ onBack, onSettings, fg, insets, backIcon, backLabel }: Props$8): react.JSX.Element;
|
|
84
167
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
openId: string | null;
|
|
89
|
-
toggle: (id: string) => void;
|
|
90
|
-
close: () => void;
|
|
168
|
+
type OrientationMode = 'faceToFace' | 'sideBySide';
|
|
169
|
+
interface CornerStatusBadgeSeat {
|
|
170
|
+
icon?: string;
|
|
91
171
|
}
|
|
92
|
-
|
|
172
|
+
interface CornerStatusBadgesProps {
|
|
173
|
+
orientationMode: OrientationMode;
|
|
174
|
+
p1OnRight: boolean;
|
|
175
|
+
p1?: CornerStatusBadgeSeat;
|
|
176
|
+
p2?: CornerStatusBadgeSeat;
|
|
177
|
+
}
|
|
178
|
+
declare function CornerStatusBadges({ orientationMode, p1OnRight, p1, p2 }: CornerStatusBadgesProps): react.JSX.Element;
|
|
93
179
|
|
|
94
|
-
|
|
180
|
+
declare const MONO_FONT: string;
|
|
181
|
+
|
|
182
|
+
interface Props$7 {
|
|
95
183
|
id: string;
|
|
96
184
|
host: PopoverHost;
|
|
97
185
|
value: string;
|
|
@@ -109,7 +197,7 @@ interface Props$8 {
|
|
|
109
197
|
columns?: number;
|
|
110
198
|
size?: number;
|
|
111
199
|
}
|
|
112
|
-
declare function InlineColorPicker({ id, host, value, onChange, previewValue, swatches, takenValue, allowSwapTaken, dark, align: alignOverride, icon, tag, labelFontFamily, autoDismiss, columns, size }: Props$
|
|
200
|
+
declare function InlineColorPicker({ id, host, value, onChange, previewValue, swatches, takenValue, allowSwapTaken, dark, align: alignOverride, icon, tag, labelFontFamily, autoDismiss, columns, size }: Props$7): react.JSX.Element;
|
|
113
201
|
|
|
114
202
|
type PopoverAlign = 'left' | 'right' | 'center';
|
|
115
203
|
type PopoverVerticalAlign = 'below' | 'above';
|
|
@@ -135,7 +223,7 @@ interface AlignResult {
|
|
|
135
223
|
measured: boolean;
|
|
136
224
|
triggerRef: RefObject<View | null>;
|
|
137
225
|
}
|
|
138
|
-
interface Props$
|
|
226
|
+
interface Props$6<T extends string> {
|
|
139
227
|
id: string;
|
|
140
228
|
host: PopoverHost;
|
|
141
229
|
options: LabeledDropdownOption<T>[];
|
|
@@ -146,11 +234,11 @@ interface Props$7<T extends string> {
|
|
|
146
234
|
align?: 'left' | 'right' | 'center';
|
|
147
235
|
alignOverride?: AlignResult;
|
|
148
236
|
}
|
|
149
|
-
declare function LabeledDropdown<T extends string>({ id, host, options, value, onChange, color, dark, align: forcedAlign, alignOverride }: Props$
|
|
237
|
+
declare function LabeledDropdown<T extends string>({ id, host, options, value, onChange, color, dark, align: forcedAlign, alignOverride }: Props$6<T>): react.JSX.Element;
|
|
150
238
|
|
|
151
239
|
declare function loadSkiaWeb(): Promise<void>;
|
|
152
240
|
|
|
153
|
-
interface Props$
|
|
241
|
+
interface Props$5 {
|
|
154
242
|
visible: boolean;
|
|
155
243
|
children: ReactNode;
|
|
156
244
|
align?: 'left' | 'right' | 'center';
|
|
@@ -160,67 +248,23 @@ interface Props$6 {
|
|
|
160
248
|
caretBorderWidth?: number;
|
|
161
249
|
triggerSize?: number;
|
|
162
250
|
}
|
|
163
|
-
declare function PopoverBody({ visible, children, align, verticalAlign, caretColor, caretBorderColor, caretBorderWidth, triggerSize }: Props$
|
|
251
|
+
declare function PopoverBody({ visible, children, align, verticalAlign, caretColor, caretBorderColor, caretBorderWidth, triggerSize }: Props$5): react.JSX.Element | null;
|
|
164
252
|
|
|
165
|
-
interface Props$
|
|
253
|
+
interface Props$4 {
|
|
166
254
|
active: boolean;
|
|
167
255
|
onPress: () => void;
|
|
168
256
|
style?: StyleProp<ViewStyle>;
|
|
169
257
|
}
|
|
170
|
-
declare function PressAwayOverlay({ active, onPress, style }: Props$
|
|
258
|
+
declare function PressAwayOverlay({ active, onPress, style }: Props$4): react.JSX.Element | null;
|
|
171
259
|
|
|
172
|
-
interface Props$
|
|
260
|
+
interface Props$3 {
|
|
173
261
|
color: string;
|
|
174
262
|
ready: boolean;
|
|
175
263
|
onToggleReady: () => void;
|
|
176
264
|
style?: StyleProp<ViewStyle>;
|
|
177
265
|
labelFontFamily?: string;
|
|
178
266
|
}
|
|
179
|
-
declare function ReadyButton({ color, ready, onToggleReady, style, labelFontFamily }: Props$
|
|
180
|
-
|
|
181
|
-
interface MenuOption<T extends string | number> {
|
|
182
|
-
value: T;
|
|
183
|
-
label: string;
|
|
184
|
-
description?: string;
|
|
185
|
-
icon?: string;
|
|
186
|
-
iconSize?: number;
|
|
187
|
-
}
|
|
188
|
-
interface SingleSelectSection<T extends string | number> {
|
|
189
|
-
kind: 'single';
|
|
190
|
-
id: string;
|
|
191
|
-
options: MenuOption<T>[];
|
|
192
|
-
value: T;
|
|
193
|
-
onChange: (value: T) => void;
|
|
194
|
-
takenValue?: T;
|
|
195
|
-
}
|
|
196
|
-
interface MultiSelectSection<T extends string | number> {
|
|
197
|
-
kind: 'multi';
|
|
198
|
-
id: string;
|
|
199
|
-
options: MenuOption<T>[];
|
|
200
|
-
value: T[];
|
|
201
|
-
onChange: (value: T[]) => void;
|
|
202
|
-
allClear?: boolean;
|
|
203
|
-
}
|
|
204
|
-
type MenuSection = SingleSelectSection<any> | MultiSelectSection<any>;
|
|
205
|
-
interface Props$3 {
|
|
206
|
-
id: string;
|
|
207
|
-
host: PopoverHost;
|
|
208
|
-
icon: string;
|
|
209
|
-
accessibilityLabel: string;
|
|
210
|
-
sections: MenuSection[];
|
|
211
|
-
accentColor: string;
|
|
212
|
-
mutedColor: string;
|
|
213
|
-
onAccentColor?: string;
|
|
214
|
-
dark: boolean;
|
|
215
|
-
align?: 'left' | 'right' | 'center';
|
|
216
|
-
autoDismiss?: boolean;
|
|
217
|
-
labelFontFamily?: string;
|
|
218
|
-
allClearLabels?: {
|
|
219
|
-
all: string;
|
|
220
|
-
clear: string;
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
declare function SectionedDropdown({ id, host, icon, accessibilityLabel, sections, accentColor, mutedColor, onAccentColor, dark, align: alignOverride, autoDismiss, labelFontFamily, allClearLabels }: Props$3): react.JSX.Element;
|
|
267
|
+
declare function ReadyButton({ color, ready, onToggleReady, style, labelFontFamily }: Props$3): react.JSX.Element;
|
|
224
268
|
|
|
225
269
|
interface Props$2 {
|
|
226
270
|
onBack: () => void;
|
|
@@ -262,4 +306,4 @@ interface TriggerGaugeProps {
|
|
|
262
306
|
|
|
263
307
|
declare function TriggerGaugeHost(props: TriggerGaugeProps): react.JSX.Element;
|
|
264
308
|
|
|
265
|
-
export { AchievementRow, BaseSettingsDialog, type BaseSettingsDialogProps, BaseStatsScreen, ContentGutter, CornerActionButtons, InlineColorPicker, LABELED_DROPDOWN_POPOVER_WIDTH, LOCKED_BADGE_COLOR, LabeledDropdown, type LabeledDropdownOption, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, SharedActionBand, type SingleSelectSection, StatRow, StatSection, TriggerGaugeHost, type TriggerGaugeProps, getLabeledDropdownContentHeight, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
|
309
|
+
export { AchievementRow, BaseSettingsDialog, type BaseSettingsDialogProps, BaseStatsScreen, ConfirmDialog, type ConfirmDialogProps, ContentGutter, ControlSchemePicker, type ControlSchemePickerProps, CornerActionButtons, type CornerStatusBadgeSeat, CornerStatusBadges, type CornerStatusBadgesProps, InlineColorPicker, LABELED_DROPDOWN_POPOVER_WIDTH, LOCKED_BADGE_COLOR, LabeledDropdown, type LabeledDropdownOption, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type OrientationMode, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, SharedActionBand, type SingleSelectSection, StatRow, StatSection, TriggerGaugeHost, type TriggerGaugeProps, getLabeledDropdownContentHeight, loadSkiaWeb, useAutoAlign, usePopoverHost };
|