dhre-ui-kit 0.0.344 → 0.0.345
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/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -8
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -779,13 +779,11 @@ const createStyles$3 = (theme) => {
|
|
|
779
779
|
backdrop: {
|
|
780
780
|
flex: 1,
|
|
781
781
|
justifyContent: "center",
|
|
782
|
-
alignItems: "center"
|
|
783
|
-
backgroundColor: "rgba(0, 0, 0, 0.3)"
|
|
782
|
+
alignItems: "center"
|
|
784
783
|
},
|
|
785
784
|
box: {
|
|
786
785
|
width: 148,
|
|
787
786
|
height: 187,
|
|
788
|
-
backgroundColor: theme.SURFACE_PRIMARY,
|
|
789
787
|
borderRadius: 16,
|
|
790
788
|
justifyContent: "center",
|
|
791
789
|
alignItems: "center",
|
|
@@ -799,8 +797,7 @@ const createStyles$3 = (theme) => {
|
|
|
799
797
|
width: 80,
|
|
800
798
|
height: 80,
|
|
801
799
|
justifyContent: "center",
|
|
802
|
-
alignItems: "center"
|
|
803
|
-
backgroundColor: "red"
|
|
800
|
+
alignItems: "center"
|
|
804
801
|
},
|
|
805
802
|
text: {
|
|
806
803
|
marginTop: 16,
|
|
@@ -2016,12 +2013,15 @@ const LOADER_LIGHT = {
|
|
|
2016
2013
|
markers: []
|
|
2017
2014
|
};
|
|
2018
2015
|
|
|
2019
|
-
const CustomLoader = ({
|
|
2016
|
+
const CustomLoader = ({
|
|
2017
|
+
loading,
|
|
2018
|
+
loadingText = "Loading..."
|
|
2019
|
+
}) => {
|
|
2020
2020
|
const { theme, mode } = useTheme();
|
|
2021
2021
|
const styles = createStyles$3(theme);
|
|
2022
2022
|
if (!loading) return null;
|
|
2023
2023
|
else {
|
|
2024
|
-
return /* @__PURE__ */ React__default["default"].createElement(
|
|
2024
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.backdrop }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.box }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2025
2025
|
LottieView__default["default"],
|
|
2026
2026
|
{
|
|
2027
2027
|
style: styles.loader,
|
|
@@ -2029,7 +2029,7 @@ const CustomLoader = ({ loading }) => {
|
|
|
2029
2029
|
autoPlay: true,
|
|
2030
2030
|
loop: true
|
|
2031
2031
|
}
|
|
2032
|
-
);
|
|
2032
|
+
)))));
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
2035
|
var CustomLoader$1 = withThemeProvider(CustomLoader);
|