@ledvance/base 1.2.76 → 1.2.77

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.2.76",
7
+ "version": "1.2.77",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -19,6 +19,7 @@ interface PageProps extends PropsWithChildren<ViewProps> {
19
19
  headlineText?: string
20
20
  headlineIcon?: string | number
21
21
  onHeadlineIconClick?: () => void
22
+ headlineContent?: React.ReactNode
22
23
  showGreenery?: boolean
23
24
  greeneryIcon?: string | undefined | number
24
25
  loading?: boolean
@@ -82,7 +83,9 @@ const Page = (props: PageProps) => {
82
83
  rightIcon={props.headlineIcon}
83
84
  rightIconClick={props.onHeadlineIconClick}
84
85
  showGreenery={props.showGreenery}
85
- greeneryIcon={props.greeneryIcon}/>}
86
+ greeneryIcon={props.greeneryIcon}
87
+ headlineContent={props.headlineContent}
88
+ />}
86
89
  {props.children}
87
90
  </View>
88
91
  {!!props.loading && <Toast.Loading
@@ -10,6 +10,7 @@ interface LdvTopNameProps {
10
10
  rightIconClick?: () => void
11
11
  showGreenery?: boolean
12
12
  greeneryIcon?: string | undefined | number
13
+ headlineContent?: React.ReactNode
13
14
  }
14
15
 
15
16
  const LdvTopName = (props: LdvTopNameProps) => {
@@ -40,6 +41,7 @@ const LdvTopName = (props: LdvTopNameProps) => {
40
41
  style={{width: cx(24), height: cx(24), tintColor: '#ff6600'}}
41
42
  source={rightIcon}/>
42
43
  </TouchableOpacity>}
44
+ {props.headlineContent && props.headlineContent}
43
45
  </View>
44
46
  </View>
45
47
  )