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 CHANGED
@@ -785,7 +785,6 @@ const createStyles$3 = (theme) => {
785
785
  box: {
786
786
  width: 148,
787
787
  height: 187,
788
- backgroundColor: theme.SURFACE_PRIMARY,
789
788
  borderRadius: 16,
790
789
  justifyContent: "center",
791
790
  alignItems: "center",
@@ -799,8 +798,7 @@ const createStyles$3 = (theme) => {
799
798
  width: 80,
800
799
  height: 80,
801
800
  justifyContent: "center",
802
- alignItems: "center",
803
- backgroundColor: "red"
801
+ alignItems: "center"
804
802
  },
805
803
  text: {
806
804
  marginTop: 16,
@@ -2016,12 +2014,15 @@ const LOADER_LIGHT = {
2016
2014
  markers: []
2017
2015
  };
2018
2016
 
2019
- const CustomLoader = ({ loading }) => {
2017
+ const CustomLoader = ({
2018
+ loading,
2019
+ loadingText = "Loading..."
2020
+ }) => {
2020
2021
  const { theme, mode } = useTheme();
2021
2022
  const styles = createStyles$3(theme);
2022
2023
  if (!loading) return null;
2023
2024
  else {
2024
- return /* @__PURE__ */ React__default["default"].createElement(
2025
+ 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
2026
  LottieView__default["default"],
2026
2027
  {
2027
2028
  style: styles.loader,
@@ -2029,7 +2030,7 @@ const CustomLoader = ({ loading }) => {
2029
2030
  autoPlay: true,
2030
2031
  loop: true
2031
2032
  }
2032
- );
2033
+ )))));
2033
2034
  }
2034
2035
  };
2035
2036
  var CustomLoader$1 = withThemeProvider(CustomLoader);