@adiraku/react-native-ui 1.2.3-snapshot.7 → 1.2.3-snapshot.8
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/lib/commonjs/components/Appbar/Appbar.component.js +1 -1
- package/lib/commonjs/components/Appbar/Appbar.style.js +3 -2
- package/lib/commonjs/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/module/components/Appbar/Appbar.component.js +1 -1
- package/lib/module/components/Appbar/Appbar.style.js +3 -2
- package/lib/module/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.type.d.ts +1 -0
- package/lib/typescript/components/Appbar/Appbar.type.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Appbar/Appbar.component.tsx +1 -1
- package/src/components/Appbar/Appbar.style.tsx +2 -2
- package/src/components/Appbar/Appbar.type.ts +2 -0
|
@@ -34,7 +34,7 @@ const Appbar = props => {
|
|
|
34
34
|
style: [computedStyle.container, withShadow && _themes.Shadow['shadow-elevation-2']]
|
|
35
35
|
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
36
36
|
style: [computedStyle.wrapperContainer, containerStyle]
|
|
37
|
-
}, customHeader
|
|
37
|
+
}, customHeader ?? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_reactNative.TouchableHighlight, _extends({
|
|
38
38
|
onPress: onBackPress,
|
|
39
39
|
style: [computedStyle.iconWrapper],
|
|
40
40
|
underlayColor: _themes.Palettes.grey[50]
|
|
@@ -8,12 +8,13 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _themes = require("../../themes");
|
|
9
9
|
const getStyle = props => {
|
|
10
10
|
const {
|
|
11
|
-
statusBarHeight = 0
|
|
11
|
+
statusBarHeight = 0,
|
|
12
|
+
backgroundColor = _themes.Palettes.white[50]
|
|
12
13
|
} = props;
|
|
13
14
|
const computedStyle = {};
|
|
14
15
|
computedStyle.container = {
|
|
15
16
|
paddingTop: statusBarHeight,
|
|
16
|
-
backgroundColor
|
|
17
|
+
backgroundColor
|
|
17
18
|
};
|
|
18
19
|
computedStyle.wrapperContainer = {
|
|
19
20
|
width: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getStyle","props","statusBarHeight","
|
|
1
|
+
{"version":3,"names":["getStyle","props","statusBarHeight","backgroundColor","Palettes","white","computedStyle","container","paddingTop","wrapperContainer","width","height","padding","Spacing","flexDirection","justifyContent","alignItems","iconWrapper","borderRadius","Radius","contentWrapper","flex","marginLeft","title","StyleSheet","create"],"sourceRoot":"../../src","sources":["Appbar.style.tsx"],"mappings":";;;;;;AAAA;AAEA;AAcO,MAAMA,QAAQ,GAAIC,KAAkB,IAAK;EAC9C,MAAM;IAAEC,eAAe,GAAG,CAAC;IAAEC,eAAe,GAAGC,gBAAQ,CAACC,KAAK,CAAC,EAAE;EAAE,CAAC,GAAGJ,KAAK;EAC3E,MAAMK,aAAiC,GAAG,CAAC,CAAC;EAE5CA,aAAa,CAACC,SAAS,GAAG;IACxBC,UAAU,EAAEN,eAAe;IAC3BC;EACF,CAAC;EAEDG,aAAa,CAACG,gBAAgB,GAAG;IAC/BC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,EAAE;IACVC,OAAO,EAAEC,eAAO,CAAC,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EAEDV,aAAa,CAACW,WAAW,GAAG;IAC1BL,OAAO,EAAEC,eAAO,CAAC,CAAC,CAAC;IACnBK,YAAY,EAAEC,cAAM,CAAC,CAAC;EACxB,CAAC;EAEDb,aAAa,CAACc,cAAc,GAAG;IAC7BC,IAAI,EAAE,CAAC;IACPC,UAAU,EAAET,eAAO,CAAC,EAAE,CAAC;IACvBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE;EACd,CAAC;EAEDV,aAAa,CAACiB,KAAK,GAAG;IACpBF,IAAI,EAAE;EACR,CAAC;EAED,OAAOG,uBAAU,CAACC,MAAM,CAACnB,aAAa,CAAC;AACzC,CAAC;AAAC"}
|
|
@@ -26,7 +26,7 @@ const Appbar = props => {
|
|
|
26
26
|
style: [computedStyle.container, withShadow && Shadow['shadow-elevation-2']]
|
|
27
27
|
}, /*#__PURE__*/React.createElement(View, {
|
|
28
28
|
style: [computedStyle.wrapperContainer, containerStyle]
|
|
29
|
-
}, customHeader
|
|
29
|
+
}, customHeader ?? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TouchableHighlight, _extends({
|
|
30
30
|
onPress: onBackPress,
|
|
31
31
|
style: [computedStyle.iconWrapper],
|
|
32
32
|
underlayColor: Palettes.grey[50]
|
|
@@ -2,12 +2,13 @@ import { StyleSheet } from 'react-native';
|
|
|
2
2
|
import { Palettes, Radius, Spacing } from '../../themes';
|
|
3
3
|
export const getStyle = props => {
|
|
4
4
|
const {
|
|
5
|
-
statusBarHeight = 0
|
|
5
|
+
statusBarHeight = 0,
|
|
6
|
+
backgroundColor = Palettes.white[50]
|
|
6
7
|
} = props;
|
|
7
8
|
const computedStyle = {};
|
|
8
9
|
computedStyle.container = {
|
|
9
10
|
paddingTop: statusBarHeight,
|
|
10
|
-
backgroundColor
|
|
11
|
+
backgroundColor
|
|
11
12
|
};
|
|
12
13
|
computedStyle.wrapperContainer = {
|
|
13
14
|
width: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Palettes","Radius","Spacing","getStyle","props","statusBarHeight","
|
|
1
|
+
{"version":3,"names":["StyleSheet","Palettes","Radius","Spacing","getStyle","props","statusBarHeight","backgroundColor","white","computedStyle","container","paddingTop","wrapperContainer","width","height","padding","flexDirection","justifyContent","alignItems","iconWrapper","borderRadius","contentWrapper","flex","marginLeft","title","create"],"sourceRoot":"../../src","sources":["Appbar.style.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,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MAAM,CAAC;IAEzB,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,EAAE,uBAAuB,CAAC;KACjC,EAAE,CAAC;CACL"}
|
package/package.json
CHANGED
|
@@ -15,12 +15,12 @@ interface ComputedStyleProps {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const getStyle = (props: AppbarProps) => {
|
|
18
|
-
const { statusBarHeight = 0 } = props;
|
|
18
|
+
const { statusBarHeight = 0, backgroundColor = Palettes.white[50] } = props;
|
|
19
19
|
const computedStyle: ComputedStyleProps = {};
|
|
20
20
|
|
|
21
21
|
computedStyle.container = {
|
|
22
22
|
paddingTop: statusBarHeight,
|
|
23
|
-
backgroundColor
|
|
23
|
+
backgroundColor,
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
computedStyle.wrapperContainer = {
|