@ledvance/base 1.1.4 → 1.1.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/package.json
CHANGED
|
@@ -2,15 +2,11 @@ import {View} from 'react-native'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import LdvColorSlider from './ldvColorSlider'
|
|
4
4
|
import {hex2Hsv, hsv2Hex} from '../utils'
|
|
5
|
-
import Spacer from './Spacer'
|
|
6
5
|
import LdvPresetView from './ldvPresetView'
|
|
7
|
-
import {Utils} from 'tuya-panel-kit'
|
|
8
6
|
import LdvSaturation from './ldvSaturation'
|
|
9
7
|
import LdvColorBrightness from './ldvColorBrightness'
|
|
10
8
|
import I18n from '../i18n/index'
|
|
11
9
|
|
|
12
|
-
const {convertX: cx} = Utils.RatioUtils
|
|
13
|
-
|
|
14
10
|
export interface ColorAdjustViewProps {
|
|
15
11
|
h: number
|
|
16
12
|
s: number
|
|
@@ -41,7 +37,6 @@ const ColorAdjustView = (props: ColorAdjustViewProps) => {
|
|
|
41
37
|
props.onHSVChangeComplete(hsv.h, hsv.s, hsv.v)
|
|
42
38
|
}
|
|
43
39
|
}}/>
|
|
44
|
-
<Spacer height={cx(10)}/>
|
|
45
40
|
<LdvSaturation
|
|
46
41
|
value={props.s}
|
|
47
42
|
onValueChange={s => {
|
package/src/composeLayout.tsx
CHANGED
|
@@ -186,9 +186,7 @@ const composeLayout = (component: React.ComponentType) => {
|
|
|
186
186
|
<Theme theme={theme}>
|
|
187
187
|
<Connect mapStateToProps={_.identity}>
|
|
188
188
|
{({mapStateToProps, ...props}: { mapStateToProps: any; [_: string]: any }) => {
|
|
189
|
-
|
|
190
|
-
// @ts-ignore
|
|
191
|
-
return hasInit ? <NavigatorLayout {...props} /> : null
|
|
189
|
+
return <NavigatorLayout {...props} />
|
|
192
190
|
}}
|
|
193
191
|
</Connect>
|
|
194
192
|
</Theme>
|