@xsolla/xui-spinner 0.119.0 → 0.121.0
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/package.json +3 -3
- package/native/index.js.flow +0 -59
- package/web/index.js.flow +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-spinner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-core": "0.
|
|
14
|
-
"@xsolla/xui-primitives-core": "0.
|
|
13
|
+
"@xsolla/xui-core": "0.121.0",
|
|
14
|
+
"@xsolla/xui-primitives-core": "0.121.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": ">=16.8.0",
|
package/native/index.js.flow
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React from "react";
|
|
9
|
-
declare interface SpinnerProps {
|
|
10
|
-
/**
|
|
11
|
-
* The size of the spinner.
|
|
12
|
-
* @default 'md'
|
|
13
|
-
*/
|
|
14
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The color of the spinner.
|
|
18
|
-
* If not provided, it will use the default text color from the theme.
|
|
19
|
-
*/
|
|
20
|
-
color?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Accessible label for screen readers.
|
|
24
|
-
* @default 'Loading'
|
|
25
|
-
*/
|
|
26
|
-
"aria-label"?: string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* ID of the element being loaded (for aria-describedby on the loading container).
|
|
30
|
-
*/
|
|
31
|
-
"aria-describedby"?: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Test ID for testing frameworks.
|
|
35
|
-
*/
|
|
36
|
-
testID?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Spinner - An accessible loading indicator component
|
|
40
|
-
*
|
|
41
|
-
* Displays a spinning animation to indicate loading state.
|
|
42
|
-
*
|
|
43
|
-
* ## Accessibility Features
|
|
44
|
-
*
|
|
45
|
-
* - **role="status"**: Announces to screen readers that this is a status indicator
|
|
46
|
-
* - **aria-live="polite"**: Screen readers will announce when the spinner appears
|
|
47
|
-
* - **aria-label**: Provides accessible name for the spinner (defaults to "Loading")
|
|
48
|
-
*
|
|
49
|
-
* ## Sizes
|
|
50
|
-
*
|
|
51
|
-
* - xl: 96px
|
|
52
|
-
* - l: 48px
|
|
53
|
-
* - m: 24px (default)
|
|
54
|
-
* - s: 16px
|
|
55
|
-
* - xs: 8px
|
|
56
|
-
*/
|
|
57
|
-
declare var Spinner: React.FC<SpinnerProps>;
|
|
58
|
-
export type { SpinnerProps };
|
|
59
|
-
declare export { Spinner };
|
package/web/index.js.flow
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flowtype definitions for index
|
|
3
|
-
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.21.0
|
|
5
|
-
* @flow
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React from "react";
|
|
9
|
-
declare interface SpinnerProps {
|
|
10
|
-
/**
|
|
11
|
-
* The size of the spinner.
|
|
12
|
-
* @default 'md'
|
|
13
|
-
*/
|
|
14
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The color of the spinner.
|
|
18
|
-
* If not provided, it will use the default text color from the theme.
|
|
19
|
-
*/
|
|
20
|
-
color?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Accessible label for screen readers.
|
|
24
|
-
* @default 'Loading'
|
|
25
|
-
*/
|
|
26
|
-
"aria-label"?: string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* ID of the element being loaded (for aria-describedby on the loading container).
|
|
30
|
-
*/
|
|
31
|
-
"aria-describedby"?: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Test ID for testing frameworks.
|
|
35
|
-
*/
|
|
36
|
-
testID?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Spinner - An accessible loading indicator component
|
|
40
|
-
*
|
|
41
|
-
* Displays a spinning animation to indicate loading state.
|
|
42
|
-
*
|
|
43
|
-
* ## Accessibility Features
|
|
44
|
-
*
|
|
45
|
-
* - **role="status"**: Announces to screen readers that this is a status indicator
|
|
46
|
-
* - **aria-live="polite"**: Screen readers will announce when the spinner appears
|
|
47
|
-
* - **aria-label**: Provides accessible name for the spinner (defaults to "Loading")
|
|
48
|
-
*
|
|
49
|
-
* ## Sizes
|
|
50
|
-
*
|
|
51
|
-
* - xl: 96px
|
|
52
|
-
* - l: 48px
|
|
53
|
-
* - m: 24px (default)
|
|
54
|
-
* - s: 16px
|
|
55
|
-
* - xs: 8px
|
|
56
|
-
*/
|
|
57
|
-
declare var Spinner: React.FC<SpinnerProps>;
|
|
58
|
-
export type { SpinnerProps };
|
|
59
|
-
declare export { Spinner };
|