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