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.mjs CHANGED
@@ -747,6 +747,8 @@ const createStyles$3 = (theme) => {
747
747
  backgroundColor: "rgba(0, 0, 0, 0.3)"
748
748
  },
749
749
  box: {
750
+ width: horizontalScale(100),
751
+ paddingVertical: 12,
750
752
  backgroundColor: theme.SURFACE_PRIMARY,
751
753
  borderRadius: 16,
752
754
  justifyContent: "center",
@@ -2336,40 +2338,25 @@ const CustomLoader = ({
2336
2338
  }) => {
2337
2339
  const { theme, mode } = useTheme();
2338
2340
  const styles = createStyles$3(theme);
2339
- const isDP = brandName === "DP";
2340
2341
  if (!loading) return null;
2341
2342
  else {
2342
- return /* @__PURE__ */ React.createElement(View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React.createElement(View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React.createElement(
2343
- View,
2343
+ return /* @__PURE__ */ React.createElement(View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React.createElement(View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React.createElement(View, { style: [styles.box, customeBox] }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
2344
+ LottieView,
2344
2345
  {
2345
- style: [
2346
- styles.box,
2347
- {
2348
- width: horizontalScale(isDP ? 100 : 148),
2349
- paddingVertical: isDP ? 12 : 24
2350
- },
2351
- customeBox
2352
- ]
2353
- },
2354
- /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
2355
- LottieView,
2356
- {
2357
- style: styles.loader,
2358
- source: isDP ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
2359
- autoPlay: true,
2360
- loop: true
2361
- }
2362
- )),
2363
- loadingText && /* @__PURE__ */ React.createElement(
2364
- CustomText$1,
2365
- {
2366
- text: loadingText,
2367
- style: styles.text,
2368
- variant: FontStyle.B4_REGULAR,
2369
- textColor: "#000000"
2370
- }
2371
- )
2372
- )));
2346
+ style: styles.loader,
2347
+ source: brandName === "DP" ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
2348
+ autoPlay: true,
2349
+ loop: true
2350
+ }
2351
+ )), loadingText && /* @__PURE__ */ React.createElement(
2352
+ CustomText$1,
2353
+ {
2354
+ text: loadingText,
2355
+ style: styles.text,
2356
+ variant: FontStyle.B4_REGULAR,
2357
+ textColor: "#000000"
2358
+ }
2359
+ ))));
2373
2360
  }
2374
2361
  };
2375
2362
  var CustomLoader$1 = withThemeProvider(CustomLoader);