@nativue/core 0.16.0 → 0.17.0

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/src/types.ts CHANGED
@@ -47,9 +47,19 @@ export type Style = {
47
47
  overflow?: 'visible' | 'hidden' | 'scroll'
48
48
 
49
49
  backgroundColor?: ColorValue
50
+ /**
51
+ * CSS gradients over backgroundColor, the first on top: 'linear-gradient(135deg, #4af2ae, #10b39b)',
52
+ * 'radial-gradient(circle at top, white, transparent 70%)'. On iOS, on a View: not on a Text or Image.
53
+ */
54
+ backgroundImage?: string
50
55
  borderColor?: ColorValue
51
56
  borderWidth?: number
52
57
  borderRadius?: number
58
+ /** One corner's radius, over borderRadius. On iOS, the rounded corners share the largest radius. */
59
+ borderTopLeftRadius?: number
60
+ borderTopRightRadius?: number
61
+ borderBottomLeftRadius?: number
62
+ borderBottomRightRadius?: number
53
63
  opacity?: number | AnimatedNode
54
64
  transform?: TransformStep[]
55
65
  shadowColor?: ColorValue
@@ -63,6 +73,14 @@ export type Style = {
63
73
  'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
64
74
  textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify'
65
75
  textDecorationLine?: 'none' | 'underline' | 'line-through' | 'underline line-through'
76
+ fontStyle?: 'normal' | 'italic'
77
+ textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize'
78
+ /** In points, or in ems of the font size: '0.05em'. <Text> only. */
79
+ letterSpacing?: number | `${number}em`
80
+ /** The height of a line, in points, or in ems of the font size: '1.5em'. <Text> only. */
81
+ lineHeight?: number | `${number}em`
82
+ /** At most this many lines, the last one ending in an ellipsis. */
83
+ lineClamp?: number
66
84
  }
67
85
 
68
86
  export type GestureState = 'began' | 'changed' | 'ended' | 'cancelled' | 'failed'