dhre-ui-kit 0.0.367 → 0.0.368

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
@@ -783,6 +783,8 @@ const createStyles$3 = (theme) => {
783
783
  backgroundColor: "rgba(0, 0, 0, 0.3)"
784
784
  },
785
785
  box: {
786
+ width: horizontalScale(100),
787
+ paddingVertical: 12,
786
788
  backgroundColor: theme.SURFACE_PRIMARY,
787
789
  borderRadius: 16,
788
790
  justifyContent: "center",
@@ -2372,40 +2374,25 @@ const CustomLoader = ({
2372
2374
  }) => {
2373
2375
  const { theme, mode } = useTheme();
2374
2376
  const styles = createStyles$3(theme);
2375
- const isDP = brandName === "DP";
2376
2377
  if (!loading) return null;
2377
2378
  else {
2378
- return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React__default["default"].createElement(
2379
- reactNative.View,
2379
+ return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.box, customeBox] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
2380
+ LottieView__default["default"],
2380
2381
  {
2381
- style: [
2382
- styles.box,
2383
- {
2384
- width: horizontalScale(isDP ? 100 : 148),
2385
- paddingVertical: isDP ? 12 : 24
2386
- },
2387
- customeBox
2388
- ]
2389
- },
2390
- /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
2391
- LottieView__default["default"],
2392
- {
2393
- style: styles.loader,
2394
- source: isDP ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
2395
- autoPlay: true,
2396
- loop: true
2397
- }
2398
- )),
2399
- loadingText && /* @__PURE__ */ React__default["default"].createElement(
2400
- CustomText$1,
2401
- {
2402
- text: loadingText,
2403
- style: styles.text,
2404
- variant: FontStyle.B4_REGULAR,
2405
- textColor: "#000000"
2406
- }
2407
- )
2408
- )));
2382
+ style: styles.loader,
2383
+ source: brandName === "DP" ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
2384
+ autoPlay: true,
2385
+ loop: true
2386
+ }
2387
+ )), loadingText && /* @__PURE__ */ React__default["default"].createElement(
2388
+ CustomText$1,
2389
+ {
2390
+ text: loadingText,
2391
+ style: styles.text,
2392
+ variant: FontStyle.B4_REGULAR,
2393
+ textColor: "#000000"
2394
+ }
2395
+ ))));
2409
2396
  }
2410
2397
  };
2411
2398
  var CustomLoader$1 = withThemeProvider(CustomLoader);