@ledvance/base 1.3.10 → 1.3.12
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.keys.json +3 -4
- package/package.json +1 -1
- package/src/components/ColorAdjustView.tsx +3 -2
- package/src/components/TextField.tsx +1 -1
- package/src/i18n/strings.ts +248 -248
package/localazy.keys.json
CHANGED
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export interface ColorAdjustViewProps {
|
|
|
14
14
|
minBrightness?: number // 最小亮度
|
|
15
15
|
minSaturation?: number // 最小Saturation
|
|
16
16
|
reserveSV?: boolean // 保留 s v
|
|
17
|
+
hideSat?: boolean // 隐藏saturation
|
|
17
18
|
onHSVChange?: (h: number, s: number, v: number) => void
|
|
18
19
|
onHSVChangeComplete: (h: number, s: number, v: number) => void
|
|
19
20
|
}
|
|
@@ -40,7 +41,7 @@ const ColorAdjustView = (props: ColorAdjustViewProps) => {
|
|
|
40
41
|
props.onHSVChangeComplete(hsv.h, props.reserveSV ? props.s : hsv.s, props.reserveSV ? props.v : hsv.v)
|
|
41
42
|
}
|
|
42
43
|
}}/>
|
|
43
|
-
<LdvSaturation
|
|
44
|
+
{!props.hideSat && <LdvSaturation
|
|
44
45
|
value={props.s}
|
|
45
46
|
minSaturation={props.minSaturation}
|
|
46
47
|
onValueChange={s => {
|
|
@@ -48,7 +49,7 @@ const ColorAdjustView = (props: ColorAdjustViewProps) => {
|
|
|
48
49
|
}}
|
|
49
50
|
onSlidingComplete={s => {
|
|
50
51
|
props.onHSVChangeComplete(props.h, s, props.v)
|
|
51
|
-
}}/>
|
|
52
|
+
}}/>}
|
|
52
53
|
<LdvColorBrightness
|
|
53
54
|
minBrightness={props.minBrightness}
|
|
54
55
|
value={props.v}
|
|
@@ -69,7 +69,7 @@ const TextField = (props: TextFieldProps) => {
|
|
|
69
69
|
<Text style={[styles.topTip, { opacity: (!!props.value) ? 1 : 0 }]}>{props.placeholder}</Text>
|
|
70
70
|
<View style={styles.textInputGroup}>
|
|
71
71
|
<TextInput{...props} style={styles.textInput} />
|
|
72
|
-
{!!props.value &&
|
|
72
|
+
{!!props.value && props.editable &&
|
|
73
73
|
<TouchableOpacity
|
|
74
74
|
style={styles.iconTouchable}
|
|
75
75
|
onPress={() => {
|