@ledvance/base 1.1.2 → 1.1.4

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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.2",
7
+ "version": "1.1.4",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -33,10 +33,8 @@ const ColorAdjustView = (props: ColorAdjustViewProps) => {
33
33
  onSlidingComplete={hue => {
34
34
  props.onHSVChangeComplete(hue, props.s, props.v)
35
35
  }}/>
36
- <Spacer height={cx(10)}/>
37
36
  <LdvPresetView
38
37
  type={'color'}
39
- style={{height: cx(60)}}
40
38
  onPress={(item) => {
41
39
  const hsv = hex2Hsv(item.color)
42
40
  if (hsv) {
@@ -55,20 +55,21 @@ const colors = [
55
55
  const LdvPresetView = (props) => {
56
56
  const {type, onPress} = props
57
57
  let dataSource = type == 'temperature' ? temperatures : colors
58
- return (<View style={styles.container}>
59
- {dataSource.map((item, index) =>
60
- <TouchableOpacity
61
- key={index}
62
- style={[styles.item, {backgroundColor: item.color}]}
63
- onPress={() => {
64
- onPress(item)
65
- }}/>)}
66
- </View>)
58
+ return (
59
+ <View style={styles.container}>
60
+ {dataSource.map((item, index) =>
61
+ <TouchableOpacity
62
+ key={index}
63
+ style={[styles.item, {backgroundColor: item.color}]}
64
+ onPress={() => {
65
+ onPress(item)
66
+ }}/>)}
67
+ </View>
68
+ )
67
69
  }
68
70
 
69
71
  const styles = StyleSheet.create({
70
72
  container: {
71
- flex: 1,
72
73
  flexDirection: 'row',
73
74
  justifyContent: 'space-between',
74
75
  alignItems: 'center',