@tastic/hud 0.1.5 → 0.2.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 +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +309 -105
- package/dist/index.mjs +274 -71
- package/package.json +13 -11
- package/src/BaseSettingsDialog.tsx +371 -0
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,24 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { SeedColor } from '@rific/auto-paper';
|
|
4
4
|
import { StyleProp, ViewStyle, View } from 'react-native';
|
|
5
5
|
|
|
6
|
+
interface BaseSettingsDialogProps {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
onDismiss: () => void;
|
|
9
|
+
rotation?: number;
|
|
10
|
+
version: string | number;
|
|
11
|
+
lockOrientation?: boolean;
|
|
12
|
+
onLockOrientationChange?: (value: boolean) => void;
|
|
13
|
+
deferBottomEdgeGestures?: boolean;
|
|
14
|
+
onDeferBottomEdgeGestures?: (value: boolean) => void;
|
|
15
|
+
hideSound?: boolean;
|
|
16
|
+
hideHaptics?: boolean;
|
|
17
|
+
hideAppearance?: boolean;
|
|
18
|
+
hideUpdateCheck?: boolean;
|
|
19
|
+
onUpdateError?: (message: string) => void;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare function BaseSettingsDialog({ visible, onDismiss, rotation, version, lockOrientation, onLockOrientationChange, deferBottomEdgeGestures, onDeferBottomEdgeGestures, hideSound, hideHaptics, hideAppearance, hideUpdateCheck, onUpdateError, children }: BaseSettingsDialogProps): react.JSX.Element;
|
|
23
|
+
|
|
6
24
|
declare const MONO_FONT: string;
|
|
7
25
|
|
|
8
26
|
interface PopoverHost {
|
|
@@ -127,4 +145,4 @@ declare function useAutoAlign(open: boolean, contentWidth: number, contentHeight
|
|
|
127
145
|
verticalAlign: PopoverVerticalAlign;
|
|
128
146
|
};
|
|
129
147
|
|
|
130
|
-
export { InlineColorPicker, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, type SingleSelectSection, TriggerGaugeHost, type TriggerGaugeProps, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
|
148
|
+
export { BaseSettingsDialog, type BaseSettingsDialogProps, InlineColorPicker, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, type SingleSelectSection, TriggerGaugeHost, type TriggerGaugeProps, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,24 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { SeedColor } from '@rific/auto-paper';
|
|
4
4
|
import { StyleProp, ViewStyle, View } from 'react-native';
|
|
5
5
|
|
|
6
|
+
interface BaseSettingsDialogProps {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
onDismiss: () => void;
|
|
9
|
+
rotation?: number;
|
|
10
|
+
version: string | number;
|
|
11
|
+
lockOrientation?: boolean;
|
|
12
|
+
onLockOrientationChange?: (value: boolean) => void;
|
|
13
|
+
deferBottomEdgeGestures?: boolean;
|
|
14
|
+
onDeferBottomEdgeGestures?: (value: boolean) => void;
|
|
15
|
+
hideSound?: boolean;
|
|
16
|
+
hideHaptics?: boolean;
|
|
17
|
+
hideAppearance?: boolean;
|
|
18
|
+
hideUpdateCheck?: boolean;
|
|
19
|
+
onUpdateError?: (message: string) => void;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare function BaseSettingsDialog({ visible, onDismiss, rotation, version, lockOrientation, onLockOrientationChange, deferBottomEdgeGestures, onDeferBottomEdgeGestures, hideSound, hideHaptics, hideAppearance, hideUpdateCheck, onUpdateError, children }: BaseSettingsDialogProps): react.JSX.Element;
|
|
23
|
+
|
|
6
24
|
declare const MONO_FONT: string;
|
|
7
25
|
|
|
8
26
|
interface PopoverHost {
|
|
@@ -127,4 +145,4 @@ declare function useAutoAlign(open: boolean, contentWidth: number, contentHeight
|
|
|
127
145
|
verticalAlign: PopoverVerticalAlign;
|
|
128
146
|
};
|
|
129
147
|
|
|
130
|
-
export { InlineColorPicker, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, type SingleSelectSection, TriggerGaugeHost, type TriggerGaugeProps, loadSkiaWeb, useAutoAlign, usePopoverHost };
|
|
148
|
+
export { BaseSettingsDialog, type BaseSettingsDialogProps, InlineColorPicker, MONO_FONT, type MenuOption, type MenuSection, type MultiSelectSection, type PopoverAlign, PopoverBody, type PopoverHost, type PopoverVerticalAlign, PressAwayOverlay, ReadyButton, SectionedDropdown, type SingleSelectSection, TriggerGaugeHost, type TriggerGaugeProps, loadSkiaWeb, useAutoAlign, usePopoverHost };
|