react-restyle-components 0.3.67 → 0.3.68
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/components/Loader/loader.component.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9C,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuCD,eAAO,MAAM,kBAAkB,+EAO5B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"loader.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/components/Loader/loader.component.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9C,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuCD,eAAO,MAAM,kBAAkB,+EAO5B,uBAAuB,4CA8LzB,CAAC"}
|
|
@@ -37,15 +37,28 @@ export const LoadingAnimateSpin = ({ classWarper = '', className = '', variant =
|
|
|
37
37
|
const sizeConfig = sizeClasses[size];
|
|
38
38
|
const renderSpinner = () => {
|
|
39
39
|
const colorValue = getColorValue(color);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
// Extract RGB values for opacity border - making it more subtle
|
|
41
|
+
const rgbMatch = colorValue.match(/\d+/g);
|
|
42
|
+
const baseBorderColor = rgbMatch
|
|
43
|
+
? `rgba(${rgbMatch[0]}, ${rgbMatch[1]}, ${rgbMatch[2]}, 0.15)`
|
|
44
|
+
: 'rgba(255, 255, 255, 0.15)';
|
|
45
|
+
return (_jsxs("div", { className: cn(s['flex'], s['flex-col'], s['items-center'], s['justify-center'], className), "aria-label": ariaLabel, role: "status", children: [_jsx("div", { className: cn(sizeConfig.spinner, s['rounded-full'], s['animate-spin']), style: {
|
|
46
|
+
width: '4rem',
|
|
47
|
+
height: '4rem',
|
|
48
|
+
borderWidth: '10px',
|
|
49
|
+
borderStyle: 'solid',
|
|
50
|
+
borderTopColor: colorValue,
|
|
51
|
+
borderRightColor: colorValue,
|
|
52
|
+
borderBottomColor: baseBorderColor,
|
|
53
|
+
borderLeftColor: baseBorderColor,
|
|
54
|
+
animation: 'spin 1s linear infinite',
|
|
55
|
+
} }), _jsx("p", { className: cn(s['mt-4'], s['text-white'], s['text-lg'], s['font-semibold'], s['animate-pulse']), style: {
|
|
56
|
+
marginTop: '1rem',
|
|
57
|
+
color: colorValue,
|
|
58
|
+
fontSize: '1.125rem',
|
|
59
|
+
fontWeight: 600,
|
|
60
|
+
animation: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
|
|
61
|
+
}, children: "Loading..." })] }));
|
|
49
62
|
};
|
|
50
63
|
const renderDots = () => {
|
|
51
64
|
const colorValue = getColorValue(color);
|