dhre-ui-kit 0.0.343 → 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 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",
@@ -2015,12 +2013,15 @@ const LOADER_LIGHT = {
2015
2013
  markers: []
2016
2014
  };
2017
2015
 
2018
- const CustomLoader = ({ loading }) => {
2016
+ const CustomLoader = ({
2017
+ loading,
2018
+ loadingText = "Loading..."
2019
+ }) => {
2019
2020
  const { theme, mode } = useTheme();
2020
2021
  const styles = createStyles$3(theme);
2021
2022
  if (!loading) return null;
2022
2023
  else {
2023
- 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(
2024
2025
  LottieView__default["default"],
2025
2026
  {
2026
2027
  style: styles.loader,
@@ -2028,7 +2029,7 @@ const CustomLoader = ({ loading }) => {
2028
2029
  autoPlay: true,
2029
2030
  loop: true
2030
2031
  }
2031
- );
2032
+ )))));
2032
2033
  }
2033
2034
  };
2034
2035
  var CustomLoader$1 = withThemeProvider(CustomLoader);