@fluentui/react-spinner 9.1.4 → 9.1.5
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/.swcrc +30 -0
- package/CHANGELOG.json +52 -1
- package/CHANGELOG.md +17 -2
- package/lib/Spinner.js.map +1 -1
- package/lib/components/Spinner/DefaultSvg.js.map +1 -1
- package/lib/components/Spinner/Spinner.js.map +1 -1
- package/lib/components/Spinner/Spinner.types.js.map +1 -1
- package/lib/components/Spinner/index.js.map +1 -1
- package/lib/components/Spinner/renderSpinner.js +1 -9
- package/lib/components/Spinner/renderSpinner.js.map +1 -1
- package/lib/components/Spinner/useSpinner.js.map +1 -1
- package/lib/components/Spinner/useSpinnerStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Spinner.js +5 -4
- package/lib-commonjs/Spinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/DefaultSvg.js +15 -12
- package/lib-commonjs/components/Spinner/DefaultSvg.js.map +1 -1
- package/lib-commonjs/components/Spinner/Spinner.js +19 -20
- package/lib-commonjs/components/Spinner/Spinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/Spinner.types.js +3 -2
- package/lib-commonjs/components/Spinner/Spinner.types.js.map +1 -1
- package/lib-commonjs/components/Spinner/index.js +9 -8
- package/lib-commonjs/components/Spinner/index.js.map +1 -1
- package/lib-commonjs/components/Spinner/renderSpinner.js +14 -27
- package/lib-commonjs/components/Spinner/renderSpinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/useSpinner.js +53 -65
- package/lib-commonjs/components/Spinner/useSpinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/useSpinnerStyles.js +351 -233
- package/lib-commonjs/components/Spinner/useSpinnerStyles.js.map +1 -1
- package/lib-commonjs/index.js +16 -33
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -8
- package/lib-amd/Spinner.js +0 -6
- package/lib-amd/Spinner.js.map +0 -1
- package/lib-amd/components/Spinner/DefaultSvg.js +0 -10
- package/lib-amd/components/Spinner/DefaultSvg.js.map +0 -1
- package/lib-amd/components/Spinner/Spinner.js +0 -17
- package/lib-amd/components/Spinner/Spinner.js.map +0 -1
- package/lib-amd/components/Spinner/Spinner.types.js +0 -5
- package/lib-amd/components/Spinner/Spinner.types.js.map +0 -1
- package/lib-amd/components/Spinner/index.js +0 -10
- package/lib-amd/components/Spinner/index.js.map +0 -1
- package/lib-amd/components/Spinner/renderSpinner.js +0 -18
- package/lib-amd/components/Spinner/renderSpinner.js.map +0 -1
- package/lib-amd/components/Spinner/useSpinner.js +0 -53
- package/lib-amd/components/Spinner/useSpinner.js.map +0 -1
- package/lib-amd/components/Spinner/useSpinnerStyles.js +0 -256
- package/lib-amd/components/Spinner/useSpinnerStyles.js.map +0 -1
- package/lib-amd/index.js +0 -11
- package/lib-amd/index.js.map +0 -1
|
@@ -1,260 +1,378 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
spinnerClassNames: ()=>spinnerClassNames,
|
|
13
|
+
useSpinnerStyles_unstable: ()=>useSpinnerStyles_unstable
|
|
5
14
|
});
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
spinner: 'fui-Spinner__spinner',
|
|
12
|
-
label: 'fui-Spinner__label'
|
|
15
|
+
const _react = require("@griffel/react");
|
|
16
|
+
const spinnerClassNames = {
|
|
17
|
+
root: 'fui-Spinner',
|
|
18
|
+
spinner: 'fui-Spinner__spinner',
|
|
19
|
+
label: 'fui-Spinner__label'
|
|
13
20
|
};
|
|
14
21
|
/*
|
|
15
22
|
* TODO: Update with proper tokens when added
|
|
16
23
|
* Radii for the Spinner circles
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
huge: '20px'
|
|
24
|
+
*/ const rValues = {
|
|
25
|
+
tiny: '9px',
|
|
26
|
+
extraSmall: '11px',
|
|
27
|
+
small: '13px',
|
|
28
|
+
medium: '14.5px',
|
|
29
|
+
large: '16.5px',
|
|
30
|
+
extraLarge: '18.5px',
|
|
31
|
+
huge: '20px'
|
|
26
32
|
};
|
|
27
33
|
/*
|
|
28
34
|
* TODO: Update with proper tokens when added
|
|
29
35
|
* Sizes for the Spinner
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
huge: '44px'
|
|
36
|
+
*/ const spinnnerSizes = {
|
|
37
|
+
tiny: '20px',
|
|
38
|
+
extraSmall: '24px',
|
|
39
|
+
small: '28px',
|
|
40
|
+
medium: '32px',
|
|
41
|
+
large: '36px',
|
|
42
|
+
extraLarge: '40px',
|
|
43
|
+
huge: '44px'
|
|
39
44
|
};
|
|
40
45
|
/*
|
|
41
46
|
* TODO: Update with proper tokens when added
|
|
42
47
|
* Animation for Spinner
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
48
|
+
*/ const spinnerAnimation = {
|
|
49
|
+
container: {
|
|
50
|
+
animationDuration: '3s',
|
|
51
|
+
animationIterationCount: 'infinite',
|
|
52
|
+
animationTimingFunction: 'linear',
|
|
53
|
+
backgroundColor: 'transparent'
|
|
54
|
+
}
|
|
51
55
|
};
|
|
52
56
|
/**
|
|
53
57
|
* Styles for the root slot
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
58
|
+
*/ const useRootStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
59
|
+
root: {
|
|
60
|
+
mc9l5x: "f22iagw",
|
|
61
|
+
Bt984gj: "f122n59",
|
|
62
|
+
Brf1p80: "f4d9j23",
|
|
63
|
+
Bg96gwp: "fez10in",
|
|
64
|
+
i8kkvl: "f4px1ci",
|
|
65
|
+
Belr9w4: "fn67r4l"
|
|
66
|
+
},
|
|
67
|
+
horizontal: {
|
|
68
|
+
Beiy3e4: "f1063pyq"
|
|
69
|
+
},
|
|
70
|
+
vertical: {
|
|
71
|
+
Beiy3e4: "f1vx9l62"
|
|
72
|
+
}
|
|
70
73
|
}, {
|
|
71
|
-
|
|
74
|
+
d: [
|
|
75
|
+
".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
|
|
76
|
+
".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",
|
|
77
|
+
".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}",
|
|
78
|
+
".fez10in{line-height:0;}",
|
|
79
|
+
".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}",
|
|
80
|
+
".fn67r4l{row-gap:8px;}",
|
|
81
|
+
".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}",
|
|
82
|
+
".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}"
|
|
83
|
+
]
|
|
72
84
|
});
|
|
73
|
-
const useLoaderStyles = /*#__PURE__*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
85
|
+
const useLoaderStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
86
|
+
spinnerSVG: {
|
|
87
|
+
B3aqqti: "f1or16p5",
|
|
88
|
+
Brovlpu: "f1grzc83",
|
|
89
|
+
Bxa1mx5: "f19shzzi",
|
|
90
|
+
Bwaue66: [
|
|
91
|
+
"f5tbecn",
|
|
92
|
+
"f15qb8s7"
|
|
93
|
+
],
|
|
94
|
+
fyp1ls: "fn4mtlg",
|
|
95
|
+
ag6ruv: "f1y80fxs",
|
|
96
|
+
osj692: "f1r2crtq",
|
|
97
|
+
aq5vjd: "f1wsi8sr",
|
|
98
|
+
tlu9e1: "f1bkm2qd",
|
|
99
|
+
J3u96z: "f1urqz7h",
|
|
100
|
+
d32isg: "f1da2vov",
|
|
101
|
+
Bsvqbuc: "f11rfva0",
|
|
102
|
+
b3s3i5: "f1exc66"
|
|
103
|
+
},
|
|
104
|
+
tiny: {
|
|
105
|
+
Bah9ito: "f1j4wmu2",
|
|
106
|
+
ut6tcf: "f1vppzuq",
|
|
107
|
+
B7p06xz: "fv1u54w",
|
|
108
|
+
B807ibg: "fngtx1d"
|
|
109
|
+
},
|
|
110
|
+
"extra-small": {
|
|
111
|
+
Bah9ito: "fmpqlna",
|
|
112
|
+
ut6tcf: "f15z5jzu",
|
|
113
|
+
B7p06xz: "fv1u54w",
|
|
114
|
+
B807ibg: "fadawes"
|
|
115
|
+
},
|
|
116
|
+
small: {
|
|
117
|
+
Bah9ito: "fo52gbo",
|
|
118
|
+
ut6tcf: "f1b41i3v",
|
|
119
|
+
B7p06xz: "fv1u54w",
|
|
120
|
+
B807ibg: "f1xqyyrl"
|
|
121
|
+
},
|
|
122
|
+
medium: {
|
|
123
|
+
Bah9ito: "f1aiqagr",
|
|
124
|
+
ut6tcf: "f1wtx80b",
|
|
125
|
+
B7p06xz: "f1flujpd",
|
|
126
|
+
B807ibg: "f1u06hy7"
|
|
127
|
+
},
|
|
128
|
+
large: {
|
|
129
|
+
Bah9ito: "f1trdq7b",
|
|
130
|
+
ut6tcf: "f9e0mc5",
|
|
131
|
+
B7p06xz: "f1flujpd",
|
|
132
|
+
B807ibg: "f13pmvhl"
|
|
133
|
+
},
|
|
134
|
+
"extra-large": {
|
|
135
|
+
Bah9ito: "f89rf2a",
|
|
136
|
+
ut6tcf: "f1w2xg3q",
|
|
137
|
+
B7p06xz: "f1flujpd",
|
|
138
|
+
B807ibg: "fmn74v6"
|
|
139
|
+
},
|
|
140
|
+
huge: {
|
|
141
|
+
Bah9ito: "f1rx7k5y",
|
|
142
|
+
ut6tcf: "f1vtyt49",
|
|
143
|
+
B7p06xz: "f1owbg48",
|
|
144
|
+
B807ibg: "f1fr1izd"
|
|
145
|
+
}
|
|
131
146
|
}, {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
147
|
+
f: [
|
|
148
|
+
".f1or16p5:focus{outline-width:3px;}",
|
|
149
|
+
".f1grzc83:focus{outline-style:solid;}",
|
|
150
|
+
".f19shzzi:focus{outline-color:transparent;}"
|
|
151
|
+
],
|
|
152
|
+
k: [
|
|
153
|
+
"@-webkit-keyframes fb7n1on{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}",
|
|
154
|
+
"@-webkit-keyframes f1gx3jof{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(-360deg);-moz-transform:rotate(-360deg);-ms-transform:rotate(-360deg);transform:rotate(-360deg);}}",
|
|
155
|
+
"@keyframes fb7n1on{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}",
|
|
156
|
+
"@keyframes f1gx3jof{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(-360deg);-moz-transform:rotate(-360deg);-ms-transform:rotate(-360deg);transform:rotate(-360deg);}}"
|
|
157
|
+
],
|
|
158
|
+
d: [
|
|
159
|
+
".f5tbecn>svg{-webkit-animation-name:fb7n1on;animation-name:fb7n1on;}",
|
|
160
|
+
".f15qb8s7>svg{-webkit-animation-name:f1gx3jof;animation-name:f1gx3jof;}",
|
|
161
|
+
".fn4mtlg>svg{-webkit-animation-duration:3s;animation-duration:3s;}",
|
|
162
|
+
".f1y80fxs>svg{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;}",
|
|
163
|
+
".f1r2crtq>svg{-webkit-animation-timing-function:linear;animation-timing-function:linear;}",
|
|
164
|
+
".f1wsi8sr>svg{background-color:transparent;}",
|
|
165
|
+
".f1da2vov>svg>circle{cx:50%;}",
|
|
166
|
+
".f11rfva0>svg>circle{cy:50%;}",
|
|
167
|
+
".f1exc66>svg>circle{fill:none;}",
|
|
168
|
+
".f1j4wmu2>svg{height:20px;}",
|
|
169
|
+
".f1vppzuq>svg{width:20px;}",
|
|
170
|
+
".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",
|
|
171
|
+
".fngtx1d>svg>circle{r:9px;}",
|
|
172
|
+
".fmpqlna>svg{height:24px;}",
|
|
173
|
+
".f15z5jzu>svg{width:24px;}",
|
|
174
|
+
".fadawes>svg>circle{r:11px;}",
|
|
175
|
+
".fo52gbo>svg{height:28px;}",
|
|
176
|
+
".f1b41i3v>svg{width:28px;}",
|
|
177
|
+
".f1xqyyrl>svg>circle{r:13px;}",
|
|
178
|
+
".f1aiqagr>svg{height:32px;}",
|
|
179
|
+
".f1wtx80b>svg{width:32px;}",
|
|
180
|
+
".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",
|
|
181
|
+
".f1u06hy7>svg>circle{r:14.5px;}",
|
|
182
|
+
".f1trdq7b>svg{height:36px;}",
|
|
183
|
+
".f9e0mc5>svg{width:36px;}",
|
|
184
|
+
".f13pmvhl>svg>circle{r:16.5px;}",
|
|
185
|
+
".f89rf2a>svg{height:40px;}",
|
|
186
|
+
".f1w2xg3q>svg{width:40px;}",
|
|
187
|
+
".fmn74v6>svg>circle{r:18.5px;}",
|
|
188
|
+
".f1rx7k5y>svg{height:44px;}",
|
|
189
|
+
".f1vtyt49>svg{width:44px;}",
|
|
190
|
+
".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",
|
|
191
|
+
".f1fr1izd>svg>circle{r:20px;}"
|
|
192
|
+
],
|
|
193
|
+
m: [
|
|
194
|
+
[
|
|
195
|
+
"@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}",
|
|
196
|
+
{
|
|
197
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
[
|
|
201
|
+
"@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}",
|
|
202
|
+
{
|
|
203
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
]
|
|
140
207
|
});
|
|
141
|
-
const useTrackStyles = /*#__PURE__*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
208
|
+
const useTrackStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
209
|
+
inverted: {
|
|
210
|
+
gwg7kz: "f1jvpmnu",
|
|
211
|
+
Bvrehnu: "fq8a5sv",
|
|
212
|
+
Bidp6o: "f1b4lwqj",
|
|
213
|
+
cq3kgi: "f1najlst",
|
|
214
|
+
Btwiser: "fjxod4",
|
|
215
|
+
B8001xd: "fu3xdw0",
|
|
216
|
+
Bdordwa: [
|
|
217
|
+
"f1ttdh6v",
|
|
218
|
+
"fmyjox0"
|
|
219
|
+
],
|
|
220
|
+
Bo2mdfu: "f1eseayc",
|
|
221
|
+
E10nrc: "folzdkc",
|
|
222
|
+
Bwl7w15: "fhlfkde",
|
|
223
|
+
Bksq7rz: "f1esql28"
|
|
224
|
+
},
|
|
225
|
+
primary: {
|
|
226
|
+
gwg7kz: "f11ditju",
|
|
227
|
+
B8k2rxp: "f1m9nikz",
|
|
228
|
+
Bvrehnu: "fq8a5sv",
|
|
229
|
+
Bidp6o: "f1b4lwqj",
|
|
230
|
+
cq3kgi: "f1najlst",
|
|
231
|
+
Btwiser: "fjxod4",
|
|
232
|
+
B8001xd: "fu3xdw0",
|
|
233
|
+
Bdordwa: [
|
|
234
|
+
"f1ttdh6v",
|
|
235
|
+
"fmyjox0"
|
|
236
|
+
],
|
|
237
|
+
Bo2mdfu: "f1eseayc",
|
|
238
|
+
E10nrc: "folzdkc",
|
|
239
|
+
Bwl7w15: "fhlfkde",
|
|
240
|
+
Bksq7rz: "f61h2gu",
|
|
241
|
+
y14cdu: "flglbw1"
|
|
242
|
+
}
|
|
170
243
|
}, {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
244
|
+
d: [
|
|
245
|
+
".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",
|
|
246
|
+
".fq8a5sv>svg>circle.fui-Spinner__Tail{-webkit-animation-name:f1v1ql0f;animation-name:f1v1ql0f;}",
|
|
247
|
+
".f1b4lwqj>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:1.5s;animation-duration:1.5s;}",
|
|
248
|
+
".f1najlst>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;}",
|
|
249
|
+
".fjxod4>svg>circle.fui-Spinner__Tail{-webkit-animation-timing-function:var(--curveEasyEase);animation-timing-function:var(--curveEasyEase);}",
|
|
250
|
+
".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",
|
|
251
|
+
".f1ttdh6v>svg>circle.fui-Spinner__Tail{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}",
|
|
252
|
+
".fmyjox0>svg>circle.fui-Spinner__Tail{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}",
|
|
253
|
+
".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",
|
|
254
|
+
".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",
|
|
255
|
+
".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",
|
|
256
|
+
".f61h2gu>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2);}"
|
|
257
|
+
],
|
|
258
|
+
k: [
|
|
259
|
+
"@-webkit-keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}",
|
|
260
|
+
"@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"
|
|
261
|
+
],
|
|
262
|
+
m: [
|
|
263
|
+
[
|
|
264
|
+
"@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}",
|
|
265
|
+
{
|
|
266
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
"@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}",
|
|
271
|
+
{
|
|
272
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
"@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",
|
|
277
|
+
{
|
|
278
|
+
m: "screen and (forced-colors: active)"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
[
|
|
282
|
+
"@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}",
|
|
283
|
+
{
|
|
284
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
"@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}",
|
|
289
|
+
{
|
|
290
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
"@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",
|
|
295
|
+
{
|
|
296
|
+
m: "screen and (forced-colors: active)"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
]
|
|
186
300
|
});
|
|
187
|
-
const useLabelStyles = /*#__PURE__*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
301
|
+
const useLabelStyles = /*#__PURE__*/ (0, _react["__styles"])({
|
|
302
|
+
inverted: {
|
|
303
|
+
sj55zd: "f15aqcq"
|
|
304
|
+
},
|
|
305
|
+
primary: {},
|
|
306
|
+
tiny: {
|
|
307
|
+
Bahqtrf: "fk6fouc",
|
|
308
|
+
Be2twd7: "fkhj508",
|
|
309
|
+
Bhrd7zp: "figsok6",
|
|
310
|
+
Bg96gwp: "f1i3iumi"
|
|
311
|
+
},
|
|
312
|
+
"extra-small": {
|
|
313
|
+
Bahqtrf: "fk6fouc",
|
|
314
|
+
Be2twd7: "fkhj508",
|
|
315
|
+
Bhrd7zp: "figsok6",
|
|
316
|
+
Bg96gwp: "f1i3iumi"
|
|
317
|
+
},
|
|
318
|
+
small: {
|
|
319
|
+
Bahqtrf: "fk6fouc",
|
|
320
|
+
Be2twd7: "fkhj508",
|
|
321
|
+
Bhrd7zp: "figsok6",
|
|
322
|
+
Bg96gwp: "f1i3iumi"
|
|
323
|
+
},
|
|
324
|
+
medium: {
|
|
325
|
+
Bahqtrf: "fk6fouc",
|
|
326
|
+
Be2twd7: "fod5ikn",
|
|
327
|
+
Bhrd7zp: "fl43uef",
|
|
328
|
+
Bg96gwp: "faaz57k"
|
|
329
|
+
},
|
|
330
|
+
large: {
|
|
331
|
+
Bahqtrf: "fk6fouc",
|
|
332
|
+
Be2twd7: "fod5ikn",
|
|
333
|
+
Bhrd7zp: "fl43uef",
|
|
334
|
+
Bg96gwp: "faaz57k"
|
|
335
|
+
},
|
|
336
|
+
"extra-large": {
|
|
337
|
+
Bahqtrf: "fk6fouc",
|
|
338
|
+
Be2twd7: "fod5ikn",
|
|
339
|
+
Bhrd7zp: "fl43uef",
|
|
340
|
+
Bg96gwp: "faaz57k"
|
|
341
|
+
},
|
|
342
|
+
huge: {
|
|
343
|
+
Bahqtrf: "fk6fouc",
|
|
344
|
+
Be2twd7: "f1pp30po",
|
|
345
|
+
Bhrd7zp: "fl43uef",
|
|
346
|
+
Bg96gwp: "f106mvju"
|
|
347
|
+
}
|
|
234
348
|
}, {
|
|
235
|
-
|
|
349
|
+
d: [
|
|
350
|
+
".f15aqcq{color:rgba(255, 255, 255, 1);}",
|
|
351
|
+
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
|
352
|
+
".fkhj508{font-size:var(--fontSizeBase300);}",
|
|
353
|
+
".figsok6{font-weight:var(--fontWeightRegular);}",
|
|
354
|
+
".f1i3iumi{line-height:var(--lineHeightBase300);}",
|
|
355
|
+
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
|
356
|
+
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
357
|
+
".faaz57k{line-height:var(--lineHeightBase400);}",
|
|
358
|
+
".f1pp30po{font-size:var(--fontSizeBase500);}",
|
|
359
|
+
".f106mvju{line-height:var(--lineHeightBase500);}"
|
|
360
|
+
]
|
|
236
361
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
if (state.label) {
|
|
255
|
-
state.label.className = react_1.mergeClasses(exports.spinnerClassNames.label, labelStyles[size], labelStyles[appearance], state.label.className);
|
|
256
|
-
}
|
|
257
|
-
return state;
|
|
258
|
-
};
|
|
259
|
-
exports.useSpinnerStyles_unstable = useSpinnerStyles_unstable;
|
|
362
|
+
const useSpinnerStyles_unstable = (state)=>{
|
|
363
|
+
const { labelPosition , size , appearance ='primary' } = state;
|
|
364
|
+
const rootStyles = useRootStyles();
|
|
365
|
+
const spinnerStyles = useLoaderStyles();
|
|
366
|
+
const labelStyles = useLabelStyles();
|
|
367
|
+
const trackStyles = useTrackStyles();
|
|
368
|
+
state.root.className = (0, _react.mergeClasses)(spinnerClassNames.root, rootStyles.root, (labelPosition === 'above' || labelPosition === 'below') && rootStyles.vertical, (labelPosition === 'before' || labelPosition === 'after') && rootStyles.horizontal, state.root.className);
|
|
369
|
+
if (state.spinner) {
|
|
370
|
+
state.spinner.className = (0, _react.mergeClasses)(spinnerClassNames.spinner, spinnerStyles.spinnerSVG, spinnerStyles[size], trackStyles[appearance], state.spinner.className);
|
|
371
|
+
}
|
|
372
|
+
if (state.label) {
|
|
373
|
+
state.label.className = (0, _react.mergeClasses)(spinnerClassNames.label, labelStyles[size], labelStyles[appearance], state.label.className);
|
|
374
|
+
}
|
|
375
|
+
return state;
|
|
376
|
+
}; //# sourceMappingURL=useSpinnerStyles.js.map
|
|
377
|
+
|
|
260
378
|
//# sourceMappingURL=useSpinnerStyles.js.map
|