dhre-ui-kit 0.0.359 → 0.0.360
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.d.ts +1 -0
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -2346,21 +2346,22 @@ const CustomLoader = ({
|
|
|
2346
2346
|
loading,
|
|
2347
2347
|
brandName = "DP",
|
|
2348
2348
|
loadingText,
|
|
2349
|
-
icon
|
|
2349
|
+
icon,
|
|
2350
|
+
loader
|
|
2350
2351
|
}) => {
|
|
2351
2352
|
const { theme, mode } = useTheme();
|
|
2352
2353
|
const styles = createStyles$3(theme);
|
|
2353
2354
|
if (!loading) return null;
|
|
2354
2355
|
else {
|
|
2355
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.
|
|
2356
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, icon, /* @__PURE__ */ React.createElement(
|
|
2356
2357
|
LottieView,
|
|
2357
2358
|
{
|
|
2358
|
-
style: styles.lottie,
|
|
2359
|
+
style: { ...styles.lottie, ...loader },
|
|
2359
2360
|
source: brandName === "DP" ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
|
|
2360
2361
|
autoPlay: true,
|
|
2361
2362
|
loop: true
|
|
2362
2363
|
}
|
|
2363
|
-
)
|
|
2364
|
+
), loadingText && /* @__PURE__ */ React.createElement(
|
|
2364
2365
|
CustomText$1,
|
|
2365
2366
|
{
|
|
2366
2367
|
text: loadingText,
|