@ledvance/base 1.3.88 → 1.3.90
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/localazy.json +8 -1
- package/package.json +1 -1
- package/src/components/LdvPickerView.tsx +151 -0
- package/src/i18n/strings.ts +201 -5
- package/src/models/TuyaApi.ts +65 -3
- package/translateKey.txt +8 -1
- package/tsconfig.json +72 -46
- package/src/api/native.d.ts +0 -71
- package/src/api/nativeEventEmitter.d.ts +0 -3
- package/src/components/AdvanceCard.d.ts +0 -25
- package/src/components/AdvanceList.d.ts +0 -9
- package/src/components/ApplyForDeviceItem.d.ts +0 -6
- package/src/components/ApplyForDeviceList.d.ts +0 -7
- package/src/components/ApplyForText.d.ts +0 -6
- package/src/components/Card.d.ts +0 -10
- package/src/components/Cell.d.ts +0 -21
- package/src/components/CircularProgress.d.ts +0 -8
- package/src/components/ColorAdjustView.d.ts +0 -12
- package/src/components/ColorExtractor.d.ts +0 -73
- package/src/components/ColorTempAdjustView.d.ts +0 -13
- package/src/components/ColorsLine.d.ts +0 -7
- package/src/components/CustomListDialog.d.ts +0 -15
- package/src/components/DeleteButton.d.ts +0 -10
- package/src/components/Dialog.d.ts +0 -10
- package/src/components/DrawToolView.d.ts +0 -46
- package/src/components/FanAdjustView.d.ts +0 -23
- package/src/components/InfoText.d.ts +0 -11
- package/src/components/LampAdjustView.d.ts +0 -10
- package/src/components/LampAdjustView2.d.ts +0 -24
- package/src/components/LinearGradientLine.d.ts +0 -9
- package/src/components/MoodColorsLine.d.ts +0 -9
- package/src/components/Page.d.ts +0 -21
- package/src/components/Popup.d.ts +0 -7
- package/src/components/Segmented.d.ts +0 -14
- package/src/components/SocketItem.d.ts +0 -13
- package/src/components/Spacer.d.ts +0 -7
- package/src/components/Stepper.d.ts +0 -19
- package/src/components/StripAdjustView.d.ts +0 -16
- package/src/components/StripLightView.d.ts +0 -14
- package/src/components/Tag.d.ts +0 -8
- package/src/components/TextButton.d.ts +0 -9
- package/src/components/TextField.d.ts +0 -9
- package/src/components/TextFieldStyleButton.d.ts +0 -8
- package/src/components/UATabTitle.d.ts +0 -6
- package/src/components/UATabs.d.ts +0 -12
- package/src/components/connect.d.ts +0 -10
- package/src/components/ldvColorBrightness.d.ts +0 -1
- package/src/components/ldvColorSlider.d.ts +0 -14
- package/src/components/ldvItemView.d.ts +0 -12
- package/src/components/ldvPickerView.d.ts +0 -13
- package/src/components/ldvPickerView.tsx +0 -105
- package/src/components/ldvPresetView.d.ts +0 -2
- package/src/components/ldvSaturation.d.ts +0 -2
- package/src/components/ldvSlider.d.ts +0 -15
- package/src/components/ldvSwitch.d.ts +0 -10
- package/src/components/ldvTemperatureSlider.d.ts +0 -13
- package/src/components/ldvTopBar.d.ts +0 -10
- package/src/components/ldvTopName.d.ts +0 -9
- package/src/components/segmentControl.d.ts +0 -1
- package/src/components/weekSelect.d.ts +0 -7
- package/src/composeLayout.d.ts +0 -30
- package/src/hooks/Hooks.d.ts +0 -2
- package/src/i18n/index.d.ts +0 -16
- package/src/i18n/strings.d.ts +0 -15953
- package/src/models/GlobalParams.d.ts +0 -14
- package/src/models/TuyaApi.d.ts +0 -29
- package/src/models/combine.d.ts +0 -26
- package/src/models/configureStore.d.ts +0 -9
- package/src/models/index.d.ts +0 -31
- package/src/models/modules/NativePropsSlice.d.ts +0 -61
- package/src/models/modules/Result.d.ts +0 -14
- package/src/models/modules/common.d.ts +0 -44
- package/src/res/index.d.ts +0 -70
- package/src/utils/ColorParser.d.ts +0 -66
- package/src/utils/ColorUtils.d.ts +0 -71
- package/src/utils/Support.d.ts +0 -13
- package/src/utils/TypeUtils.d.ts +0 -3
- package/src/utils/cctUtils.d.ts +0 -1
- package/src/utils/common.d.ts +0 -35
- package/src/utils/index.d.ts +0 -26
- package/src/utils/interface.d.ts +0 -6
- package/src/utils/loopsCompare.d.ts +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface HSV {
|
|
3
|
-
h: number;
|
|
4
|
-
s: number;
|
|
5
|
-
v: number;
|
|
6
|
-
}
|
|
7
|
-
interface LampConfigViewProps {
|
|
8
|
-
isSupportColor: boolean;
|
|
9
|
-
isSupportCCT: boolean;
|
|
10
|
-
isSupportBrightness: boolean;
|
|
11
|
-
isColorMode: boolean;
|
|
12
|
-
setIsColorMode: (isColorMode: boolean) => void;
|
|
13
|
-
minBrightness?: number;
|
|
14
|
-
minSaturation?: number;
|
|
15
|
-
reserveSV?: boolean;
|
|
16
|
-
hsv: HSV;
|
|
17
|
-
onHSVChange: (hsv: HSV, isComplete: boolean) => void;
|
|
18
|
-
cct: number;
|
|
19
|
-
onCCTChange: (cct: number, isComplete: boolean) => void;
|
|
20
|
-
brightness: number;
|
|
21
|
-
onBrightnessChange: (brightness: number, isComplete: boolean) => void;
|
|
22
|
-
}
|
|
23
|
-
declare const _default: React.MemoExoticComponent<(props: LampConfigViewProps) => JSX.Element>;
|
|
24
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StyleProp } from 'react-native';
|
|
2
|
-
interface LinearGradientLineProps extends StyleProp<any> {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
colors: string[];
|
|
6
|
-
orientation?: 'vertical' | 'horizontal';
|
|
7
|
-
}
|
|
8
|
-
declare const LinearGradientLine: (props: LinearGradientLineProps) => JSX.Element;
|
|
9
|
-
export default LinearGradientLine;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare type MoodColorsLineType = 'gradient' | 'separate';
|
|
2
|
-
interface MoodColorsLineProps {
|
|
3
|
-
width?: number;
|
|
4
|
-
height?: number;
|
|
5
|
-
type: MoodColorsLineType;
|
|
6
|
-
colors: string[];
|
|
7
|
-
}
|
|
8
|
-
export default function MoodColorsLine(props: MoodColorsLineProps): JSX.Element;
|
|
9
|
-
export {};
|
package/src/components/Page.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
3
|
-
interface PageProps extends PropsWithChildren<ViewProps> {
|
|
4
|
-
rightButtonDisabled?: boolean;
|
|
5
|
-
backText: string;
|
|
6
|
-
onBackClick?: () => void;
|
|
7
|
-
showBackDialog?: boolean;
|
|
8
|
-
backDialogTitle?: string;
|
|
9
|
-
backDialogContent?: string;
|
|
10
|
-
rightButtonIcon?: string;
|
|
11
|
-
rightButtonStyle?: any | undefined;
|
|
12
|
-
rightButtonIconClick?: () => void;
|
|
13
|
-
headlineText?: string;
|
|
14
|
-
headlineIcon?: string | number;
|
|
15
|
-
onHeadlineIconClick?: () => void;
|
|
16
|
-
showGreenery?: boolean;
|
|
17
|
-
greeneryIcon?: string | undefined | number;
|
|
18
|
-
loading?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const Page: (props: PageProps) => JSX.Element;
|
|
21
|
-
export default Page;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
interface SegmentedItem {
|
|
4
|
-
label: ReactNode;
|
|
5
|
-
value: string | number;
|
|
6
|
-
}
|
|
7
|
-
interface SegmentedProps {
|
|
8
|
-
value?: string | number;
|
|
9
|
-
options?: SegmentedItem[];
|
|
10
|
-
onChange?: (v: string | number) => void;
|
|
11
|
-
style?: ViewStyle;
|
|
12
|
-
}
|
|
13
|
-
declare const Segmented: (props: SegmentedProps) => JSX.Element;
|
|
14
|
-
export default Segmented;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
import { ViewProps } from "react-native";
|
|
3
|
-
interface SocketItemProps extends PropsWithChildren<ViewProps> {
|
|
4
|
-
title: string;
|
|
5
|
-
name: string;
|
|
6
|
-
icon: any;
|
|
7
|
-
disabledEdit?: boolean;
|
|
8
|
-
onNameChange: (value: string) => void;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
onSwitchChange: (value: boolean) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function SocketItem(props: SocketItemProps): JSX.Element;
|
|
13
|
-
export default SocketItem;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
export interface StepperProps {
|
|
4
|
-
value: number | string;
|
|
5
|
-
stepValue?: number;
|
|
6
|
-
min?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
editable?: boolean;
|
|
9
|
-
selectionColor?: string;
|
|
10
|
-
isRealTime?: boolean;
|
|
11
|
-
isBeyond?: boolean;
|
|
12
|
-
onValueChange?: ((value: number) => void);
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
style?: StyleProp<ViewStyle>;
|
|
15
|
-
buttonStyle?: StyleProp<ViewStyle>;
|
|
16
|
-
inputStyle?: StyleProp<ViewStyle>;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.MemoExoticComponent<(props: StepperProps) => JSX.Element>;
|
|
19
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ColorAdjustViewProps } from "./ColorAdjustView";
|
|
2
|
-
import { ColorTempAdjustViewProps } from "./ColorTempAdjustView";
|
|
3
|
-
declare type TabsNode = {
|
|
4
|
-
key: number | string;
|
|
5
|
-
title: string;
|
|
6
|
-
};
|
|
7
|
-
interface StripAdjustViewProps extends ColorAdjustViewProps, ColorTempAdjustViewProps {
|
|
8
|
-
lampTabs: TabsNode[];
|
|
9
|
-
activeKey: number | string;
|
|
10
|
-
onActiveKeyChange: (key: number | string) => void;
|
|
11
|
-
colorDiskActiveKey?: number | undefined;
|
|
12
|
-
onColorDiskChange?: (color: string[], idx: number) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const StripAdjustView: (props: StripAdjustViewProps) => JSX.Element;
|
|
15
|
-
export default StripAdjustView;
|
|
16
|
-
export declare const ColorList: string[][];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ViewProps } from 'react-native';
|
|
2
|
-
export interface LightNode {
|
|
3
|
-
color: string;
|
|
4
|
-
backgroundColor?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface StripLightViewProps extends ViewProps {
|
|
7
|
-
nodes: LightNode[];
|
|
8
|
-
fixCount: number;
|
|
9
|
-
stripStyle: 'ONLY_LINE' | 'WITH_BEAD';
|
|
10
|
-
touchingMode?: 'CLICK' | 'TOUCH';
|
|
11
|
-
width: number;
|
|
12
|
-
}
|
|
13
|
-
declare const StripLightView: (props: StripLightViewProps) => JSX.Element;
|
|
14
|
-
export default StripLightView;
|
package/src/components/Tag.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
interface TextButtonProps {
|
|
3
|
-
text: string;
|
|
4
|
-
onPress: () => void;
|
|
5
|
-
style?: StyleProp<ViewStyle>;
|
|
6
|
-
textStyle?: StyleProp<TextStyle>;
|
|
7
|
-
}
|
|
8
|
-
export default function TextButton(props: TextButtonProps): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TextInputProps, ImageSourcePropType } from 'react-native';
|
|
2
|
-
interface TextFieldProps extends TextInputProps {
|
|
3
|
-
showError?: boolean;
|
|
4
|
-
errorText?: string;
|
|
5
|
-
tipIcon?: ImageSourcePropType;
|
|
6
|
-
tipColor?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const TextField: (props: TextFieldProps) => JSX.Element;
|
|
9
|
-
export default TextField;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ViewProps } from 'react-native';
|
|
2
|
-
interface TextFieldStyleButtonProps extends ViewProps {
|
|
3
|
-
placeholder: string;
|
|
4
|
-
text: string;
|
|
5
|
-
onPress: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare const TextFieldStyleButton: (props: TextFieldStyleButtonProps) => JSX.Element;
|
|
8
|
-
export default TextFieldStyleButton;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ViewProps } from 'react-native';
|
|
2
|
-
export interface UATabsProps extends ViewProps {
|
|
3
|
-
active: any;
|
|
4
|
-
data: UATabData[];
|
|
5
|
-
onSelectChange: (value: UATabData, index: number) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface UATabData {
|
|
8
|
-
title: string;
|
|
9
|
-
value?: any;
|
|
10
|
-
}
|
|
11
|
-
declare const UATabs: (props: UATabsProps) => JSX.Element;
|
|
12
|
-
export default UATabs;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type ChildrenType = (props: any) => React.ReactElement | null;
|
|
3
|
-
declare const _default: import("react-redux").ConnectedComponent<({ children, ...props }: {
|
|
4
|
-
children: ChildrenType;
|
|
5
|
-
}) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null, Pick<{
|
|
6
|
-
children: ChildrenType;
|
|
7
|
-
}, "children"> & {
|
|
8
|
-
mapStateToProps: any;
|
|
9
|
-
}>;
|
|
10
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function LdvColorBrightness(props: any): JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
export declare const TEMP_KEY = "temperature";
|
|
3
|
-
interface LdvColorSliderProps {
|
|
4
|
-
title: string;
|
|
5
|
-
type: string;
|
|
6
|
-
onValueChange?: (number: any) => void | undefined;
|
|
7
|
-
onSlidingComplete: (number: any) => void;
|
|
8
|
-
thumbColor: string;
|
|
9
|
-
value: number;
|
|
10
|
-
width?: number | undefined;
|
|
11
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
12
|
-
}
|
|
13
|
-
declare const LdvColorSlider: (props: LdvColorSliderProps) => JSX.Element;
|
|
14
|
-
export default LdvColorSlider;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
interface Props {
|
|
4
|
-
style?: StyleProp<ViewStyle>;
|
|
5
|
-
textStyle?: StyleProp<TextStyle>;
|
|
6
|
-
title: string;
|
|
7
|
-
rightComponent?: any;
|
|
8
|
-
onPress?: any;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const LdvItemView: React.FC<Props>;
|
|
12
|
-
export default LdvItemView;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
interface LdvPickerViewProps {
|
|
3
|
-
hour: string;
|
|
4
|
-
minute: string;
|
|
5
|
-
setHour: (string: any) => void;
|
|
6
|
-
setMinute: (string: any) => void;
|
|
7
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
8
|
-
unit?: string[];
|
|
9
|
-
minutesStep?: number;
|
|
10
|
-
maxHour?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const LdvPickerView: (props: LdvPickerViewProps) => JSX.Element;
|
|
13
|
-
export default LdvPickerView;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import React, {useMemo} from 'react'
|
|
2
|
-
import {StyleProp, StyleSheet, Text, View, ViewStyle} from 'react-native'
|
|
3
|
-
import {Picker, Utils} from 'tuya-panel-kit'
|
|
4
|
-
import _ from 'lodash'
|
|
5
|
-
import ThemeType from '../config/themeType'
|
|
6
|
-
|
|
7
|
-
const {convertX} = Utils.RatioUtils
|
|
8
|
-
const { withTheme } = Utils.ThemeUtils
|
|
9
|
-
|
|
10
|
-
const pickerTheme = {
|
|
11
|
-
fontSize: 20,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface LdvPickerViewProps {
|
|
15
|
-
theme?: ThemeType
|
|
16
|
-
hour: string,
|
|
17
|
-
minute: string,
|
|
18
|
-
setHour: (string) => void,
|
|
19
|
-
setMinute: (string) => void,
|
|
20
|
-
style?: StyleProp<ViewStyle> | undefined,
|
|
21
|
-
unit?: string[]
|
|
22
|
-
minutesStep?: number
|
|
23
|
-
maxHour?: number // 不包含关系
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const LdvPickerView = (props: LdvPickerViewProps) => {
|
|
27
|
-
|
|
28
|
-
const {hour, minute, unit, setHour, setMinute, minutesStep = 1, maxHour = 24} = props
|
|
29
|
-
const hours = useMemo(() => _.times(maxHour, (n) => _.padStart(n.toString(), 2, '0')), [])
|
|
30
|
-
const minutes = useMemo(() => _.times(60 / minutesStep, (n) => _.padStart((n * minutesStep).toString(), 2, '0')) , [props.minutesStep])
|
|
31
|
-
|
|
32
|
-
const styles = StyleSheet.create({
|
|
33
|
-
pickerContainer: {
|
|
34
|
-
flexDirection: 'row',
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
},
|
|
37
|
-
picker: {
|
|
38
|
-
flex: 1,
|
|
39
|
-
backgroundColor: props.theme?.card.background,
|
|
40
|
-
},
|
|
41
|
-
pickerLeft: {},
|
|
42
|
-
pickerItem: {},
|
|
43
|
-
picContainer: {
|
|
44
|
-
flex: 1,
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
},
|
|
48
|
-
pickerUnit: {
|
|
49
|
-
position: 'absolute',
|
|
50
|
-
right: convertX(20),
|
|
51
|
-
top: '44%',
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
return (
|
|
55
|
-
<View key={props.theme?.type} style={[styles.pickerContainer, props.style]}>
|
|
56
|
-
<View style={styles.picContainer}>
|
|
57
|
-
<Picker
|
|
58
|
-
accessibilityLabel={"HourPicker"}
|
|
59
|
-
accessibilityHint={hour}
|
|
60
|
-
itemTextColor='#aeadb5'
|
|
61
|
-
style={[styles.picker, styles.pickerLeft]}
|
|
62
|
-
loop={true}
|
|
63
|
-
theme={pickerTheme}
|
|
64
|
-
itemStyle={styles.pickerItem}
|
|
65
|
-
textSize={convertX(14)}
|
|
66
|
-
selectedValue={hour}
|
|
67
|
-
itemAlign={'center'}
|
|
68
|
-
onValueChange={value => setHour(value as string)}>
|
|
69
|
-
{hours.map((value) => (
|
|
70
|
-
<Picker.Item key={value} value={value} label={value}/>
|
|
71
|
-
))}
|
|
72
|
-
</Picker>
|
|
73
|
-
{unit ? <View style={styles.pickerUnit}>
|
|
74
|
-
<Text style={{color: props.theme?.global.fontColor, fontSize: convertX(18)}}>
|
|
75
|
-
{unit[0]}
|
|
76
|
-
</Text>
|
|
77
|
-
</View> : null}
|
|
78
|
-
</View>
|
|
79
|
-
<View style={styles.picContainer}>
|
|
80
|
-
<Picker
|
|
81
|
-
accessibilityLabel={"MinutePicker"}
|
|
82
|
-
accessibilityHint={minute}
|
|
83
|
-
itemTextColor='#aeadb5'
|
|
84
|
-
style={[styles.picker, styles.pickerLeft]}
|
|
85
|
-
loop={true}
|
|
86
|
-
theme={pickerTheme}
|
|
87
|
-
itemStyle={styles.pickerItem}
|
|
88
|
-
textSize={convertX(14)}
|
|
89
|
-
selectedValue={minute}
|
|
90
|
-
onValueChange={value => setMinute(value as string)}>
|
|
91
|
-
{minutes.map((value) => (
|
|
92
|
-
<Picker.Item key={value} value={value} label={value}/>
|
|
93
|
-
))}
|
|
94
|
-
</Picker>
|
|
95
|
-
{unit ? <View style={styles.pickerUnit}>
|
|
96
|
-
<Text style={{color: props.theme?.global.fontColor, fontSize: convertX(18)}}>
|
|
97
|
-
{unit[1]}
|
|
98
|
-
</Text>
|
|
99
|
-
</View> : null}
|
|
100
|
-
</View>
|
|
101
|
-
</View>
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export default withTheme(LdvPickerView)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
interface LdvSliderProps {
|
|
3
|
-
title: string;
|
|
4
|
-
value: number;
|
|
5
|
-
min?: number | undefined;
|
|
6
|
-
max?: number | undefined;
|
|
7
|
-
onValueChange?: (v: number) => void | undefined;
|
|
8
|
-
onSlidingComplete: (v: number) => void;
|
|
9
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
10
|
-
sliderStyle?: StyleProp<ViewStyle> | undefined;
|
|
11
|
-
subTitleStr?: string | number;
|
|
12
|
-
titleStyle?: StyleProp<TextStyle> | undefined;
|
|
13
|
-
}
|
|
14
|
-
declare const LdvSlider: (props: LdvSliderProps) => JSX.Element;
|
|
15
|
-
export default LdvSlider;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StyleProp, TextProps, ViewStyle } from 'react-native';
|
|
2
|
-
interface LdvTemperatureSliderProps {
|
|
3
|
-
title: string;
|
|
4
|
-
onSlidingComplete: (number: any) => void;
|
|
5
|
-
thumbColor: string;
|
|
6
|
-
value: number;
|
|
7
|
-
width?: number | undefined;
|
|
8
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
9
|
-
titleStyle?: StyleProp<TextProps> | undefined;
|
|
10
|
-
subTitleStr?: string | undefined;
|
|
11
|
-
}
|
|
12
|
-
declare const LdvTemperatureSlider: (props: LdvTemperatureSliderProps) => JSX.Element;
|
|
13
|
-
export default LdvTemperatureSlider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface TopBarProps {
|
|
2
|
-
title: string;
|
|
3
|
-
onBackPress: () => void;
|
|
4
|
-
rightButtonIcon?: any | {};
|
|
5
|
-
rightButtonStyle?: any | undefined;
|
|
6
|
-
rightButtonDisabled?: boolean;
|
|
7
|
-
onRightButtonPress?: (() => void) | undefined;
|
|
8
|
-
}
|
|
9
|
-
declare const LDVTopBar: (props: TopBarProps) => JSX.Element;
|
|
10
|
-
export default LDVTopBar;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface LdvTopNameProps {
|
|
2
|
-
title: string;
|
|
3
|
-
rightIcon?: string | undefined | number;
|
|
4
|
-
rightIconClick?: () => void;
|
|
5
|
-
showGreenery?: boolean;
|
|
6
|
-
greeneryIcon?: string | undefined | number;
|
|
7
|
-
}
|
|
8
|
-
declare const LdvTopName: (props: LdvTopNameProps) => JSX.Element;
|
|
9
|
-
export default LdvTopName;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function SegmentControl(props: any): JSX.Element;
|
package/src/composeLayout.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DevInfo } from 'tuya-panel-kit';
|
|
2
|
-
import { DeviceInfo, UAGroupInfo } from './models/modules/NativePropsSlice';
|
|
3
|
-
interface Props {
|
|
4
|
-
devInfo: DevInfo;
|
|
5
|
-
preload?: boolean;
|
|
6
|
-
ldvDevInfo: LdvDevInfo;
|
|
7
|
-
uaGroupInfo: UAGroupInfoProps;
|
|
8
|
-
}
|
|
9
|
-
interface LdvDevInfo extends DeviceInfo {
|
|
10
|
-
schema: any;
|
|
11
|
-
familyName: string;
|
|
12
|
-
}
|
|
13
|
-
interface UAGroupInfoProps extends UAGroupInfo {
|
|
14
|
-
schema: any;
|
|
15
|
-
familyName: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @param {} component - 需要连接到redux store的组件,通常为即为main
|
|
20
|
-
*/
|
|
21
|
-
declare const composeLayout: (component: React.ComponentType) => {
|
|
22
|
-
new (props: Props): {
|
|
23
|
-
initReduxDeviceNativeProps(ldvDevInfo: LdvDevInfo): void;
|
|
24
|
-
initReduxGroupNativeProps(uaGroupInfo: UAGroupInfoProps): void;
|
|
25
|
-
setDpSchemaMap(schema: string): any;
|
|
26
|
-
render(): any;
|
|
27
|
-
componentWillUnmount(): void;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export default composeLayout;
|
package/src/hooks/Hooks.d.ts
DELETED
package/src/i18n/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DpValue } from 'tuya-panel-kit';
|
|
2
|
-
import Strings from './strings';
|
|
3
|
-
declare type Key = keyof typeof Strings.en;
|
|
4
|
-
declare function getLang(key: Key, defaultString?: string): string;
|
|
5
|
-
declare function getDpLang(code: string, value?: DpValue): string;
|
|
6
|
-
declare function formatString(key: string, values: string[]): string;
|
|
7
|
-
declare function formatValue(key: Key, ...values: string[]): string;
|
|
8
|
-
declare function getDpName(code: string, defaultName?: string): string;
|
|
9
|
-
declare const I18n: {
|
|
10
|
-
getLang: typeof getLang;
|
|
11
|
-
getDpLang: typeof getDpLang;
|
|
12
|
-
formatString: typeof formatString;
|
|
13
|
-
formatValue: typeof formatValue;
|
|
14
|
-
getDpName: typeof getDpName;
|
|
15
|
-
};
|
|
16
|
-
export default I18n;
|