dhre-ui-kit 0.0.365 → 0.0.367

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,8 +783,6 @@ const createStyles$3 = (theme) => {
783
783
  backgroundColor: "rgba(0, 0, 0, 0.3)"
784
784
  },
785
785
  box: {
786
- width: horizontalScale(100),
787
- paddingVertical: 24,
788
786
  backgroundColor: theme.SURFACE_PRIMARY,
789
787
  borderRadius: 16,
790
788
  justifyContent: "center",
@@ -2374,25 +2372,40 @@ const CustomLoader = ({
2374
2372
  }) => {
2375
2373
  const { theme, mode } = useTheme();
2376
2374
  const styles = createStyles$3(theme);
2375
+ const isDP = brandName === "DP";
2377
2376
  if (!loading) return null;
2378
2377
  else {
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"],
2381
- {
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,
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,
2389
2380
  {
2390
- text: loadingText,
2391
- style: styles.text,
2392
- variant: FontStyle.B4_REGULAR,
2393
- textColor: "#000000"
2394
- }
2395
- ))));
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
+ )));
2396
2409
  }
2397
2410
  };
2398
2411
  var CustomLoader$1 = withThemeProvider(CustomLoader);
@@ -5131,7 +5144,6 @@ const styles$9 = reactNative.StyleSheet.create({
5131
5144
  },
5132
5145
  outlineStyle: {
5133
5146
  borderWidth: 1,
5134
- height: verticalScale(48),
5135
5147
  borderRadius: moderateScale(8)
5136
5148
  },
5137
5149
  errorStyle: {