@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.
@@ -1,5 +1,4 @@
1
1
  {
2
- "writeKey": "",
3
- "readKey": "a7349213573288779040-d092b120e7d6d90c7e9528ddf2aa600659f60631bd4a5c2d55de0aa2b081af1b"
4
- }
5
-
2
+ "writeKey": "",
3
+ "readKey": "a7349213573288779040-d092b120e7d6d90c7e9528ddf2aa600659f60631bd4a5c2d55de0aa2b081af1b"
4
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.3.10",
7
+ "version": "1.3.12",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -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={() => {