@fluentui/react-spinner 9.0.14 → 9.0.15
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/CHANGELOG.json +48 -1
- package/CHANGELOG.md +14 -2
- package/lib/components/Spinner/DefaultSvg.js.map +1 -1
- package/lib/components/Spinner/Spinner.js +0 -1
- package/lib/components/Spinner/Spinner.js.map +1 -1
- package/lib/components/Spinner/renderSpinner.js +8 -5
- package/lib/components/Spinner/renderSpinner.js.map +1 -1
- package/lib/components/Spinner/useSpinner.js +0 -3
- package/lib/components/Spinner/useSpinner.js.map +1 -1
- package/lib/components/Spinner/useSpinnerStyles.js +149 -161
- package/lib/components/Spinner/useSpinnerStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Spinner.js +0 -2
- package/lib-commonjs/Spinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/DefaultSvg.js +0 -3
- package/lib-commonjs/components/Spinner/DefaultSvg.js.map +1 -1
- package/lib-commonjs/components/Spinner/Spinner.js +0 -6
- package/lib-commonjs/components/Spinner/Spinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/Spinner.types.js.map +1 -1
- package/lib-commonjs/components/Spinner/index.js +0 -6
- package/lib-commonjs/components/Spinner/index.js.map +1 -1
- package/lib-commonjs/components/Spinner/renderSpinner.js +8 -9
- package/lib-commonjs/components/Spinner/renderSpinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/useSpinner.js +0 -9
- package/lib-commonjs/components/Spinner/useSpinner.js.map +1 -1
- package/lib-commonjs/components/Spinner/useSpinnerStyles.js +137 -153
- package/lib-commonjs/components/Spinner/useSpinnerStyles.js.map +1 -1
- package/lib-commonjs/index.js +0 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,54 @@
|
|
|
2
2
|
"name": "@fluentui/react-spinner",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Wed,
|
|
5
|
+
"date": "Wed, 04 Jan 2023 01:35:50 GMT",
|
|
6
|
+
"tag": "@fluentui/react-spinner_v9.0.15",
|
|
7
|
+
"version": "9.0.15",
|
|
8
|
+
"comments": {
|
|
9
|
+
"none": [
|
|
10
|
+
{
|
|
11
|
+
"author": "martinhochel@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-spinner",
|
|
13
|
+
"commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
|
|
14
|
+
"comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "martinhochel@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-spinner",
|
|
19
|
+
"commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
|
|
20
|
+
"comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"patch": [
|
|
24
|
+
{
|
|
25
|
+
"author": "olfedias@microsoft.com",
|
|
26
|
+
"package": "@fluentui/react-spinner",
|
|
27
|
+
"commit": "2c38f1e4ae07b2b60df596efe11015a68f166dbf",
|
|
28
|
+
"comment": "chore: Update Griffel to latest version"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"author": "beachball",
|
|
32
|
+
"package": "@fluentui/react-spinner",
|
|
33
|
+
"comment": "Bump @fluentui/react-label to v9.0.15",
|
|
34
|
+
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"author": "beachball",
|
|
38
|
+
"package": "@fluentui/react-spinner",
|
|
39
|
+
"comment": "Bump @fluentui/react-utilities to v9.3.1",
|
|
40
|
+
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"author": "beachball",
|
|
44
|
+
"package": "@fluentui/react-spinner",
|
|
45
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19",
|
|
46
|
+
"commit": "3e322d15529451be153e97298873253e21af4082"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"date": "Wed, 21 Dec 2022 10:20:33 GMT",
|
|
6
53
|
"tag": "@fluentui/react-spinner_v9.0.14",
|
|
7
54
|
"version": "9.0.14",
|
|
8
55
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-spinner
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
This log was last generated on Wed, 04 Jan 2023 01:35:50 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-spinner_v9.0.15)
|
|
8
|
+
|
|
9
|
+
Wed, 04 Jan 2023 01:35:50 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-spinner_v9.0.14..@fluentui/react-spinner_v9.0.15)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-label to v9.0.15 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
|
|
16
|
+
- Bump @fluentui/react-utilities to v9.3.1 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
|
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
|
|
18
|
+
|
|
7
19
|
## [9.0.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-spinner_v9.0.14)
|
|
8
20
|
|
|
9
|
-
Wed, 21 Dec 2022 10:
|
|
21
|
+
Wed, 21 Dec 2022 10:20:33 GMT
|
|
10
22
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-spinner_v9.0.13..@fluentui/react-spinner_v9.0.14)
|
|
11
23
|
|
|
12
24
|
### Patches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAO,MAAMC,UAAU,GAAG,mBACxBD;EAAKE,SAAS,EAAC;AAA0B,gBACvCF;EAAQE,SAAS,EAAC;AAAoB,EAAG,eACzCF;EAAQE,SAAS,EAAC;AAAmB,EAAG,CAE3C","names":["React","DefaultSvg","className"],"sourceRoot":"../src/","sources":["packages/react-components/react-spinner/src/components/Spinner/DefaultSvg.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport const DefaultSvg = () => (\n <svg className=\"fui-Spinner__Progressbar\">\n <circle className=\"fui-Spinner__Track\" />\n <circle className=\"fui-Spinner__Tail\" />\n </svg>\n);\n"]}
|
|
@@ -5,7 +5,6 @@ import { useSpinnerStyles_unstable } from './useSpinnerStyles';
|
|
|
5
5
|
/**
|
|
6
6
|
* Converged Spinner component for the fluentui repo
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
8
|
export const Spinner = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10
9
|
const state = useSpinner_unstable(props, ref);
|
|
11
10
|
useSpinnerStyles_unstable(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAASC,sBAAsB,QAAQ,iBAAiB;AACxD,SAASC,yBAAyB,QAAQ,oBAAoB;AAI9D;;;AAGA,OAAO,MAAMC,OAAO,gBAAsCJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACxF,MAAMC,KAAK,GAAGP,mBAAmB,CAACK,KAAK,EAAEC,GAAG,CAAC;EAE7CJ,yBAAyB,CAACK,KAAK,CAAC;EAChC,OAAON,sBAAsB,CAACM,KAAK,CAAC;AACtC,CAAC,CAAC;AAEFJ,OAAO,CAACK,WAAW,GAAG,SAAS","names":["React","useSpinner_unstable","renderSpinner_unstable","useSpinnerStyles_unstable","Spinner","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-spinner/src/components/Spinner/Spinner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSpinner_unstable } from './useSpinner';\nimport { renderSpinner_unstable } from './renderSpinner';\nimport { useSpinnerStyles_unstable } from './useSpinnerStyles';\nimport type { SpinnerProps } from './Spinner.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Converged Spinner component for the fluentui repo\n */\nexport const Spinner: ForwardRefComponent<SpinnerProps> = React.forwardRef((props, ref) => {\n const state = useSpinner_unstable(props, ref);\n\n useSpinnerStyles_unstable(state);\n return renderSpinner_unstable(state);\n});\n\nSpinner.displayName = 'Spinner';\n"]}
|
|
@@ -3,7 +3,6 @@ import { getSlots } from '@fluentui/react-utilities';
|
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of Spinner
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
6
|
export const renderSpinner_unstable = state => {
|
|
8
7
|
const {
|
|
9
8
|
slots,
|
|
@@ -12,10 +11,14 @@ export const renderSpinner_unstable = state => {
|
|
|
12
11
|
const {
|
|
13
12
|
labelPosition
|
|
14
13
|
} = state;
|
|
15
|
-
return /*#__PURE__*/React.createElement(slots.root, {
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
14
|
+
return /*#__PURE__*/React.createElement(slots.root, {
|
|
15
|
+
...slotProps.root
|
|
16
|
+
}, slots.label && (labelPosition === 'above' || labelPosition === 'before') && /*#__PURE__*/React.createElement(slots.label, {
|
|
17
|
+
...slotProps.label
|
|
18
|
+
}), slots.spinner && /*#__PURE__*/React.createElement(slots.spinner, {
|
|
19
|
+
...slotProps.spinner
|
|
20
|
+
}), slots.label && (labelPosition === 'below' || labelPosition === 'after') && /*#__PURE__*/React.createElement(slots.label, {
|
|
21
|
+
...slotProps.label
|
|
19
22
|
}));
|
|
20
23
|
};
|
|
21
24
|
//# sourceMappingURL=renderSpinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,sBAAsB,GAAIC,KAAmB,IAAI;EAC5D,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAeE,KAAK,CAAC;EAC1D,MAAM;IAAEG;EAAa,CAAE,GAAGH,KAAK;EAC/B,oBACEH,oBAACI,KAAK,CAACG,IAAI;IAAA,GAAKF,SAAS,CAACE;EAAI,GAC3BH,KAAK,CAACI,KAAK,KAAKF,aAAa,KAAK,OAAO,IAAIA,aAAa,KAAK,QAAQ,CAAC,iBAAIN,oBAACI,KAAK,CAACI,KAAK;IAAA,GAAKH,SAAS,CAACG;EAAK,EAAI,EAChHJ,KAAK,CAACK,OAAO,iBAAIT,oBAACI,KAAK,CAACK,OAAO;IAAA,GAAKJ,SAAS,CAACI;EAAO,EAAI,EACzDL,KAAK,CAACI,KAAK,KAAKF,aAAa,KAAK,OAAO,IAAIA,aAAa,KAAK,OAAO,CAAC,iBAAIN,oBAACI,KAAK,CAACI,KAAK;IAAA,GAAKH,SAAS,CAACG;EAAK,EAAI,CACrG;AAEjB,CAAC","names":["React","getSlots","renderSpinner_unstable","state","slots","slotProps","labelPosition","root","label","spinner"],"sourceRoot":"../src/","sources":["packages/react-components/react-spinner/src/components/Spinner/renderSpinner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { SpinnerState, SpinnerSlots } from './Spinner.types';\n\n/**\n * Render the final JSX of Spinner\n */\nexport const renderSpinner_unstable = (state: SpinnerState) => {\n const { slots, slotProps } = getSlots<SpinnerSlots>(state);\n const { labelPosition } = state;\n return (\n <slots.root {...slotProps.root}>\n {slots.label && (labelPosition === 'above' || labelPosition === 'before') && <slots.label {...slotProps.label} />}\n {slots.spinner && <slots.spinner {...slotProps.spinner} />}\n {slots.label && (labelPosition === 'below' || labelPosition === 'after') && <slots.label {...slotProps.label} />}\n </slots.root>\n );\n};\n"]}
|
|
@@ -11,7 +11,6 @@ import { DefaultSvg } from './DefaultSvg';
|
|
|
11
11
|
* @param props - props from this instance of Spinner
|
|
12
12
|
* @param ref - reference to root HTMLElement of Spinner
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
14
|
export const useSpinner_unstable = (props, ref) => {
|
|
16
15
|
// Props
|
|
17
16
|
const {
|
|
@@ -43,11 +42,9 @@ export const useSpinner_unstable = (props, ref) => {
|
|
|
43
42
|
tabIndex
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
|
-
|
|
47
45
|
if (labelShorthand && nativeRoot && !nativeRoot['aria-labelledby']) {
|
|
48
46
|
nativeRoot['aria-labelledby'] = labelShorthand.id;
|
|
49
47
|
}
|
|
50
|
-
|
|
51
48
|
const state = {
|
|
52
49
|
appearance,
|
|
53
50
|
labelPosition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,qBAAqB,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,2BAA2B;AAE1F,SAASC,KAAK,QAAQ,uBAAuB;AAC7C,SAASC,UAAU,QAAQ,cAAc;AAEzC;;;;;;;;;AASA,OAAO,MAAMC,mBAAmB,GAAG,CAACC,KAAmB,EAAEC,GAA2B,KAAkB;EACpG;EACA,MAAM;IAAEC,UAAU,GAAG,SAAS;IAAEC,aAAa,GAAG,OAAO;IAAEC,IAAI,GAAG;EAAQ,CAAE,GAAGJ,KAAK;EAClF,MAAMK,MAAM,GAAGT,KAAK,CAAC,SAAS,CAAC;EAE/B,MAAM;IAAEU,IAAI,GAAG,aAAa;IAAEC,QAAQ;IAAE,GAAGC;EAAI,CAAE,GAAGR,KAAK;EACzD,MAAMS,UAAU,GAAGf,qBAAqB,CAAC,KAAK,EAAE;IAAEO,GAAG;IAAEK,IAAI;IAAE,GAAGE;EAAI,CAAE,EAAE,CAAC,MAAM,CAAC,CAAC;EAEjF,MAAME,cAAc,GAAGf,gBAAgB,CAACK,KAAK,CAACW,KAAK,EAAE;IACnDC,YAAY,EAAE;MACZC,EAAE,EAAER;KACL;IACDS,QAAQ,EAAE;GACX,CAAC;EAEF,MAAMC,gBAAgB,GAAGpB,gBAAgB,CAACK,KAAK,CAACgB,OAAO,EAAE;IACvDF,QAAQ,EAAE,IAAI;IACdF,YAAY,EAAE;MACZK,QAAQ,eAAExB,oBAACK,UAAU,OAAG;MACxBS;;GAEH,CAAC;EAEF,IAAIG,cAAc,IAAID,UAAU,IAAI,CAACA,UAAU,CAAC,iBAAiB,CAAC,EAAE;IAClEA,UAAU,CAAC,iBAAiB,CAAC,GAAGC,cAAc,CAACG,EAAE;;EAGnD,MAAMK,KAAK,GAAiB;IAC1BhB,UAAU;IACVC,aAAa;IACbC,IAAI;IACJe,UAAU,EAAE;MACVC,IAAI,EAAE,KAAK;MACXJ,OAAO,EAAE,MAAM;MACfL,KAAK,EAAEd;KACR;IACDuB,IAAI,EAAEX,UAAU;IAChBO,OAAO,EAAED,gBAAgB;IACzBJ,KAAK,EAAED;GACR;EACD,OAAOQ,KAAK;AACd,CAAC","names":["React","getNativeElementProps","resolveShorthand","useId","Label","DefaultSvg","useSpinner_unstable","props","ref","appearance","labelPosition","size","baseId","role","tabIndex","rest","nativeRoot","labelShorthand","label","defaultProps","id","required","spinnerShortHand","spinner","children","state","components","root"],"sourceRoot":"../src/","sources":["packages/react-components/react-spinner/src/components/Spinner/useSpinner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { SpinnerProps, SpinnerState } from './Spinner.types';\nimport { Label } from '@fluentui/react-label';\nimport { DefaultSvg } from './DefaultSvg';\n\n/**\n * Create the state required to render Spinner.\n *\n * The returned state can be modified with hooks such as useSpinnerStyles_unstable,\n * before being passed to renderSpinner_unstable.\n *\n * @param props - props from this instance of Spinner\n * @param ref - reference to root HTMLElement of Spinner\n */\nexport const useSpinner_unstable = (props: SpinnerProps, ref: React.Ref<HTMLElement>): SpinnerState => {\n // Props\n const { appearance = 'primary', labelPosition = 'after', size = 'medium' } = props;\n const baseId = useId('spinner');\n\n const { role = 'progressbar', tabIndex, ...rest } = props;\n const nativeRoot = getNativeElementProps('div', { ref, role, ...rest }, ['size']);\n\n const labelShorthand = resolveShorthand(props.label, {\n defaultProps: {\n id: baseId,\n },\n required: false,\n });\n\n const spinnerShortHand = resolveShorthand(props.spinner, {\n required: true,\n defaultProps: {\n children: <DefaultSvg />,\n tabIndex,\n },\n });\n\n if (labelShorthand && nativeRoot && !nativeRoot['aria-labelledby']) {\n nativeRoot['aria-labelledby'] = labelShorthand.id;\n }\n\n const state: SpinnerState = {\n appearance,\n labelPosition,\n size,\n components: {\n root: 'div',\n spinner: 'span',\n label: Label,\n },\n root: nativeRoot,\n spinner: spinnerShortHand,\n label: labelShorthand,\n };\n return state;\n};\n"]}
|
|
@@ -9,7 +9,6 @@ export const spinnerClassNames = {
|
|
|
9
9
|
* TODO: Update with proper tokens when added
|
|
10
10
|
* Radii for the Spinner circles
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
12
|
const rValues = {
|
|
14
13
|
tiny: '9px',
|
|
15
14
|
extraSmall: '11px',
|
|
@@ -23,7 +22,6 @@ const rValues = {
|
|
|
23
22
|
* TODO: Update with proper tokens when added
|
|
24
23
|
* Sizes for the Spinner
|
|
25
24
|
*/
|
|
26
|
-
|
|
27
25
|
const spinnnerSizes = {
|
|
28
26
|
tiny: '20px',
|
|
29
27
|
extraSmall: '24px',
|
|
@@ -37,7 +35,6 @@ const spinnnerSizes = {
|
|
|
37
35
|
* TODO: Update with proper tokens when added
|
|
38
36
|
* Animation for Spinner
|
|
39
37
|
*/
|
|
40
|
-
|
|
41
38
|
const spinnerAnimation = {
|
|
42
39
|
container: {
|
|
43
40
|
animationDuration: '3s',
|
|
@@ -49,197 +46,191 @@ const spinnerAnimation = {
|
|
|
49
46
|
/**
|
|
50
47
|
* Styles for the root slot
|
|
51
48
|
*/
|
|
52
|
-
|
|
53
49
|
const useRootStyles = /*#__PURE__*/__styles({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
root: {
|
|
51
|
+
mc9l5x: "f22iagw",
|
|
52
|
+
Bt984gj: "f122n59",
|
|
53
|
+
Brf1p80: "f4d9j23",
|
|
54
|
+
Bg96gwp: "fez10in",
|
|
55
|
+
i8kkvl: "f4px1ci",
|
|
56
|
+
Belr9w4: "fn67r4l"
|
|
57
|
+
},
|
|
58
|
+
horizontal: {
|
|
59
|
+
Beiy3e4: "f1063pyq"
|
|
60
|
+
},
|
|
61
|
+
vertical: {
|
|
62
|
+
Beiy3e4: "f1vx9l62"
|
|
67
63
|
}
|
|
68
64
|
}, {
|
|
69
|
-
|
|
65
|
+
d: [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".fez10in{line-height:0;}", ".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}", ".fn67r4l{row-gap:8px;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}"]
|
|
70
66
|
});
|
|
71
|
-
|
|
72
67
|
const useLoaderStyles = /*#__PURE__*/__styles({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
68
|
+
spinnerSVG: {
|
|
69
|
+
B3aqqti: "f1or16p5",
|
|
70
|
+
Brovlpu: "f1grzc83",
|
|
71
|
+
Bxa1mx5: "f19shzzi",
|
|
72
|
+
Bwaue66: ["f5tbecn", "f15qb8s7"],
|
|
73
|
+
fyp1ls: "fn4mtlg",
|
|
74
|
+
ag6ruv: "f1y80fxs",
|
|
75
|
+
osj692: "f1r2crtq",
|
|
76
|
+
aq5vjd: "f1wsi8sr",
|
|
77
|
+
tlu9e1: "f1bkm2qd",
|
|
78
|
+
J3u96z: "f1urqz7h",
|
|
79
|
+
d32isg: "f1da2vov",
|
|
80
|
+
Bsvqbuc: "f11rfva0",
|
|
81
|
+
b3s3i5: "f1exc66"
|
|
82
|
+
},
|
|
83
|
+
tiny: {
|
|
84
|
+
Bah9ito: "f1j4wmu2",
|
|
85
|
+
ut6tcf: "f1vppzuq",
|
|
86
|
+
B7p06xz: "fv1u54w",
|
|
87
|
+
B807ibg: "fngtx1d"
|
|
93
88
|
},
|
|
94
89
|
"extra-small": {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
90
|
+
Bah9ito: "fmpqlna",
|
|
91
|
+
ut6tcf: "f15z5jzu",
|
|
92
|
+
B7p06xz: "fv1u54w",
|
|
93
|
+
B807ibg: "fadawes"
|
|
94
|
+
},
|
|
95
|
+
small: {
|
|
96
|
+
Bah9ito: "fo52gbo",
|
|
97
|
+
ut6tcf: "f1b41i3v",
|
|
98
|
+
B7p06xz: "fv1u54w",
|
|
99
|
+
B807ibg: "f1xqyyrl"
|
|
100
|
+
},
|
|
101
|
+
medium: {
|
|
102
|
+
Bah9ito: "f1aiqagr",
|
|
103
|
+
ut6tcf: "f1wtx80b",
|
|
104
|
+
B7p06xz: "f1flujpd",
|
|
105
|
+
B807ibg: "f1u06hy7"
|
|
106
|
+
},
|
|
107
|
+
large: {
|
|
108
|
+
Bah9ito: "f1trdq7b",
|
|
109
|
+
ut6tcf: "f9e0mc5",
|
|
110
|
+
B7p06xz: "f1flujpd",
|
|
111
|
+
B807ibg: "f13pmvhl"
|
|
117
112
|
},
|
|
118
113
|
"extra-large": {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
114
|
+
Bah9ito: "f89rf2a",
|
|
115
|
+
ut6tcf: "f1w2xg3q",
|
|
116
|
+
B7p06xz: "f1flujpd",
|
|
117
|
+
B807ibg: "fmn74v6"
|
|
118
|
+
},
|
|
119
|
+
huge: {
|
|
120
|
+
Bah9ito: "f1rx7k5y",
|
|
121
|
+
ut6tcf: "f1vtyt49",
|
|
122
|
+
B7p06xz: "f1owbg48",
|
|
123
|
+
B807ibg: "f1fr1izd"
|
|
129
124
|
}
|
|
130
125
|
}, {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
126
|
+
f: [".f1or16p5:focus{outline-width:3px;}", ".f1grzc83:focus{outline-style:solid;}", ".f19shzzi:focus{outline-color:transparent;}"],
|
|
127
|
+
k: ["@-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);}}", "@-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);}}", "@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);}}", "@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);}}"],
|
|
128
|
+
d: [".f5tbecn>svg{-webkit-animation-name:fb7n1on;animation-name:fb7n1on;}", ".f15qb8s7>svg{-webkit-animation-name:f1gx3jof;animation-name:f1gx3jof;}", ".fn4mtlg>svg{-webkit-animation-duration:3s;animation-duration:3s;}", ".f1y80fxs>svg{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;}", ".f1r2crtq>svg{-webkit-animation-timing-function:linear;animation-timing-function:linear;}", ".f1wsi8sr>svg{background-color:transparent;}", ".f1da2vov>svg>circle{cx:50%;}", ".f11rfva0>svg>circle{cy:50%;}", ".f1exc66>svg>circle{fill:none;}", ".f1j4wmu2>svg{height:20px;}", ".f1vppzuq>svg{width:20px;}", ".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}", ".fngtx1d>svg>circle{r:9px;}", ".fmpqlna>svg{height:24px;}", ".f15z5jzu>svg{width:24px;}", ".fadawes>svg>circle{r:11px;}", ".fo52gbo>svg{height:28px;}", ".f1b41i3v>svg{width:28px;}", ".f1xqyyrl>svg>circle{r:13px;}", ".f1aiqagr>svg{height:32px;}", ".f1wtx80b>svg{width:32px;}", ".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}", ".f1u06hy7>svg>circle{r:14.5px;}", ".f1trdq7b>svg{height:36px;}", ".f9e0mc5>svg{width:36px;}", ".f13pmvhl>svg>circle{r:16.5px;}", ".f89rf2a>svg{height:40px;}", ".f1w2xg3q>svg{width:40px;}", ".fmn74v6>svg>circle{r:18.5px;}", ".f1rx7k5y>svg{height:44px;}", ".f1vtyt49>svg{width:44px;}", ".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}", ".f1fr1izd>svg>circle{r:20px;}"],
|
|
129
|
+
m: [["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}", {
|
|
130
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
136
131
|
}], ["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}", {
|
|
137
|
-
|
|
132
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
138
133
|
}]]
|
|
139
134
|
});
|
|
140
|
-
|
|
141
135
|
const useTrackStyles = /*#__PURE__*/__styles({
|
|
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
|
-
|
|
136
|
+
inverted: {
|
|
137
|
+
gwg7kz: "f1jvpmnu",
|
|
138
|
+
Bvrehnu: "fq8a5sv",
|
|
139
|
+
Bidp6o: "f1b4lwqj",
|
|
140
|
+
cq3kgi: "f1najlst",
|
|
141
|
+
Btwiser: "fjxod4",
|
|
142
|
+
B8001xd: "fu3xdw0",
|
|
143
|
+
Bdordwa: ["f1ttdh6v", "fmyjox0"],
|
|
144
|
+
Bo2mdfu: "f1eseayc",
|
|
145
|
+
E10nrc: "folzdkc",
|
|
146
|
+
Bwl7w15: "fhlfkde",
|
|
147
|
+
Bksq7rz: "f1esql28"
|
|
148
|
+
},
|
|
149
|
+
primary: {
|
|
150
|
+
gwg7kz: "f11ditju",
|
|
151
|
+
B8k2rxp: "f1m9nikz",
|
|
152
|
+
Bvrehnu: "fq8a5sv",
|
|
153
|
+
Bidp6o: "f1b4lwqj",
|
|
154
|
+
cq3kgi: "f1najlst",
|
|
155
|
+
Btwiser: "fjxod4",
|
|
156
|
+
B8001xd: "fu3xdw0",
|
|
157
|
+
Bdordwa: ["f1ttdh6v", "fmyjox0"],
|
|
158
|
+
Bo2mdfu: "f1eseayc",
|
|
159
|
+
E10nrc: "folzdkc",
|
|
160
|
+
Bwl7w15: "fhlfkde",
|
|
161
|
+
Bksq7rz: "f61h2gu",
|
|
162
|
+
y14cdu: "flglbw1"
|
|
169
163
|
}
|
|
170
164
|
}, {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
165
|
+
d: [".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}", ".fq8a5sv>svg>circle.fui-Spinner__Tail{-webkit-animation-name:f1v1ql0f;animation-name:f1v1ql0f;}", ".f1b4lwqj>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:1.5s;animation-duration:1.5s;}", ".f1najlst>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;}", ".fjxod4>svg>circle.fui-Spinner__Tail{-webkit-animation-timing-function:var(--curveEasyEase);animation-timing-function:var(--curveEasyEase);}", ".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}", ".f1ttdh6v>svg>circle.fui-Spinner__Tail{-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);}", ".fmyjox0>svg>circle.fui-Spinner__Tail{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}", ".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}", ".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}", ".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}", ".f61h2gu>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2);}"],
|
|
166
|
+
k: ["@-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;}}", "@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;}}"],
|
|
167
|
+
m: [["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}", {
|
|
168
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
175
169
|
}], ["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}", {
|
|
176
|
-
|
|
170
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
177
171
|
}], ["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}", {
|
|
178
|
-
|
|
172
|
+
m: "screen and (forced-colors: active)"
|
|
179
173
|
}], ["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{-webkit-animation-duration:0.01ms;animation-duration:0.01ms;}}", {
|
|
180
|
-
|
|
174
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
181
175
|
}], ["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{-webkit-animation-iteration-count:1;animation-iteration-count:1;}}", {
|
|
182
|
-
|
|
176
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
183
177
|
}], ["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}", {
|
|
184
|
-
|
|
178
|
+
m: "screen and (forced-colors: active)"
|
|
185
179
|
}]]
|
|
186
180
|
});
|
|
187
|
-
|
|
188
181
|
const useLabelStyles = /*#__PURE__*/__styles({
|
|
189
|
-
|
|
190
|
-
|
|
182
|
+
inverted: {
|
|
183
|
+
sj55zd: "f15aqcq"
|
|
191
184
|
},
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
185
|
+
primary: {},
|
|
186
|
+
tiny: {
|
|
187
|
+
Bahqtrf: "fk6fouc",
|
|
188
|
+
Be2twd7: "fkhj508",
|
|
189
|
+
Bhrd7zp: "figsok6",
|
|
190
|
+
Bg96gwp: "f1i3iumi"
|
|
198
191
|
},
|
|
199
192
|
"extra-small": {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
193
|
+
Bahqtrf: "fk6fouc",
|
|
194
|
+
Be2twd7: "fkhj508",
|
|
195
|
+
Bhrd7zp: "figsok6",
|
|
196
|
+
Bg96gwp: "f1i3iumi"
|
|
197
|
+
},
|
|
198
|
+
small: {
|
|
199
|
+
Bahqtrf: "fk6fouc",
|
|
200
|
+
Be2twd7: "fkhj508",
|
|
201
|
+
Bhrd7zp: "figsok6",
|
|
202
|
+
Bg96gwp: "f1i3iumi"
|
|
203
|
+
},
|
|
204
|
+
medium: {
|
|
205
|
+
Bahqtrf: "fk6fouc",
|
|
206
|
+
Be2twd7: "fod5ikn",
|
|
207
|
+
Bhrd7zp: "fl43uef",
|
|
208
|
+
Bg96gwp: "faaz57k"
|
|
209
|
+
},
|
|
210
|
+
large: {
|
|
211
|
+
Bahqtrf: "fk6fouc",
|
|
212
|
+
Be2twd7: "fod5ikn",
|
|
213
|
+
Bhrd7zp: "fl43uef",
|
|
214
|
+
Bg96gwp: "faaz57k"
|
|
222
215
|
},
|
|
223
216
|
"extra-large": {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
217
|
+
Bahqtrf: "fk6fouc",
|
|
218
|
+
Be2twd7: "fod5ikn",
|
|
219
|
+
Bhrd7zp: "fl43uef",
|
|
220
|
+
Bg96gwp: "faaz57k"
|
|
221
|
+
},
|
|
222
|
+
huge: {
|
|
223
|
+
Bahqtrf: "fk6fouc",
|
|
224
|
+
Be2twd7: "f1pp30po",
|
|
225
|
+
Bhrd7zp: "fl43uef",
|
|
226
|
+
Bg96gwp: "f106mvju"
|
|
234
227
|
}
|
|
235
228
|
}, {
|
|
236
|
-
|
|
229
|
+
d: [".f15aqcq{color:rgba(255, 255, 255, 1);}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f1pp30po{font-size:var(--fontSizeBase500);}", ".f106mvju{line-height:var(--lineHeightBase500);}"]
|
|
237
230
|
});
|
|
238
231
|
/**
|
|
239
232
|
* Apply styling to the Spinner slots based on the state
|
|
240
233
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
234
|
export const useSpinnerStyles_unstable = state => {
|
|
244
235
|
const {
|
|
245
236
|
labelPosition,
|
|
@@ -251,15 +242,12 @@ export const useSpinnerStyles_unstable = state => {
|
|
|
251
242
|
const labelStyles = useLabelStyles();
|
|
252
243
|
const trackStyles = useTrackStyles();
|
|
253
244
|
state.root.className = mergeClasses(spinnerClassNames.root, rootStyles.root, (labelPosition === 'above' || labelPosition === 'below') && rootStyles.vertical, (labelPosition === 'before' || labelPosition === 'after') && rootStyles.horizontal, state.root.className);
|
|
254
|
-
|
|
255
245
|
if (state.spinner) {
|
|
256
246
|
state.spinner.className = mergeClasses(spinnerClassNames.spinner, spinnerStyles.spinnerSVG, spinnerStyles[size], trackStyles[appearance], state.spinner.className);
|
|
257
247
|
}
|
|
258
|
-
|
|
259
248
|
if (state.label) {
|
|
260
249
|
state.label.className = mergeClasses(spinnerClassNames.label, labelStyles[size], labelStyles[appearance], state.label.className);
|
|
261
250
|
}
|
|
262
|
-
|
|
263
251
|
return state;
|
|
264
252
|
};
|
|
265
253
|
//# sourceMappingURL=useSpinnerStyles.js.map
|