@descope/web-components-ui 1.0.161 → 1.0.162
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +121 -117
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +121 -117
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/components/loader/loaderRadial.js +22 -19
package/package.json
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
import { createHelperVars, getThemeRefs } from '../../../helpers/themeHelpers';
|
7
7
|
|
8
8
|
const globalRefs = getThemeRefs(globals);
|
9
|
-
const
|
9
|
+
const compVars = LoaderRadialClass.cssVarList;
|
10
10
|
|
11
|
-
const [helperTheme, helperRefs] = createHelperVars(
|
11
|
+
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
12
12
|
{
|
13
13
|
spinnerColor: globalRefs.colors.surface.contrast,
|
14
14
|
mode: {
|
@@ -26,29 +26,32 @@ const [helperTheme, helperRefs] = createHelperVars(
|
|
26
26
|
const loaderRadial = {
|
27
27
|
...helperTheme,
|
28
28
|
|
29
|
-
[
|
30
|
-
[
|
31
|
-
[
|
32
|
-
[
|
33
|
-
[
|
34
|
-
[
|
35
|
-
[
|
36
|
-
[
|
37
|
-
[
|
38
|
-
[
|
29
|
+
[compVars.animationDuration]: '2s',
|
30
|
+
[compVars.animationTimingFunction]: 'linear',
|
31
|
+
[compVars.animationIterationCount]: 'infinite',
|
32
|
+
[compVars.spinnerBorderStyle]: 'solid',
|
33
|
+
[compVars.spinnerBorderWidth]: '0.2em',
|
34
|
+
[compVars.spinnerBorderRadius]: '50%',
|
35
|
+
[compVars.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
36
|
+
[compVars.spinnerQuadrant2Color]: 'transparent',
|
37
|
+
[compVars.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
38
|
+
[compVars.spinnerQuadrant4Color]: 'transparent',
|
39
39
|
|
40
40
|
size: {
|
41
|
-
xs: { [
|
42
|
-
sm: { [
|
43
|
-
md: { [
|
44
|
-
lg: { [
|
45
|
-
xl: { [
|
41
|
+
xs: { [compVars.spinnerSize]: '20px' },
|
42
|
+
sm: { [compVars.spinnerSize]: '30px' },
|
43
|
+
md: { [compVars.spinnerSize]: '40px' },
|
44
|
+
lg: { [compVars.spinnerSize]: '60px' },
|
45
|
+
xl: { [compVars.spinnerSize]: '80px' },
|
46
46
|
},
|
47
47
|
|
48
48
|
_hidden: {
|
49
|
-
[
|
49
|
+
[compVars.hostDisplay]: 'none',
|
50
50
|
},
|
51
51
|
};
|
52
52
|
|
53
53
|
export default loaderRadial;
|
54
|
-
export
|
54
|
+
export const vars = {
|
55
|
+
...compVars,
|
56
|
+
...helperVars,
|
57
|
+
};
|