dhre-ui-kit 0.0.344 → 0.0.346
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 +7 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -749,7 +749,6 @@ const createStyles$3 = (theme) => {
|
|
|
749
749
|
box: {
|
|
750
750
|
width: 148,
|
|
751
751
|
height: 187,
|
|
752
|
-
backgroundColor: theme.SURFACE_PRIMARY,
|
|
753
752
|
borderRadius: 16,
|
|
754
753
|
justifyContent: "center",
|
|
755
754
|
alignItems: "center",
|
|
@@ -763,8 +762,7 @@ const createStyles$3 = (theme) => {
|
|
|
763
762
|
width: 80,
|
|
764
763
|
height: 80,
|
|
765
764
|
justifyContent: "center",
|
|
766
|
-
alignItems: "center"
|
|
767
|
-
backgroundColor: "red"
|
|
765
|
+
alignItems: "center"
|
|
768
766
|
},
|
|
769
767
|
text: {
|
|
770
768
|
marginTop: 16,
|
|
@@ -1980,12 +1978,15 @@ const LOADER_LIGHT = {
|
|
|
1980
1978
|
markers: []
|
|
1981
1979
|
};
|
|
1982
1980
|
|
|
1983
|
-
const CustomLoader = ({
|
|
1981
|
+
const CustomLoader = ({
|
|
1982
|
+
loading,
|
|
1983
|
+
loadingText = "Loading..."
|
|
1984
|
+
}) => {
|
|
1984
1985
|
const { theme, mode } = useTheme();
|
|
1985
1986
|
const styles = createStyles$3(theme);
|
|
1986
1987
|
if (!loading) return null;
|
|
1987
1988
|
else {
|
|
1988
|
-
return /* @__PURE__ */ React.createElement(
|
|
1989
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.box }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
|
|
1989
1990
|
LottieView,
|
|
1990
1991
|
{
|
|
1991
1992
|
style: styles.loader,
|
|
@@ -1993,7 +1994,7 @@ const CustomLoader = ({ loading }) => {
|
|
|
1993
1994
|
autoPlay: true,
|
|
1994
1995
|
loop: true
|
|
1995
1996
|
}
|
|
1996
|
-
);
|
|
1997
|
+
)))));
|
|
1997
1998
|
}
|
|
1998
1999
|
};
|
|
1999
2000
|
var CustomLoader$1 = withThemeProvider(CustomLoader);
|