Skip to content

Commit 5acb342

Browse files
committed
Enhance loader components with detailed prop interfaces and accessibility features
- Updated FidgetSpinner, Grid, Hearts, Hourglass, InfinitySpin, LineWave, MagnifyingGlass, MutatingDots, Oval, ProgressBar, Puff, Radio, RevolvingDot, Rings, RotatingLines, RotatingSquare, RotatingTriangles, TailSpin, ThreeCircles, ThreeDots, Triangle, Vortex, and Watch components to include comprehensive prop interfaces. - Added accessibility labels and customizable properties for colors, sizes, and visibility to improve user experience. - Removed inheritance from BaseProps where applicable to define props explicitly. - Updated TypeScript configuration to remove deprecated settings.
1 parent 1ded29c commit 5acb342

71 files changed

Lines changed: 2132 additions & 994 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
[
22
{
3-
"name": "color",
3+
"name": "height",
44
"required": false,
55
"type": "enum",
6-
"description": "Primary color applied to fill or stroke.",
7-
"defaultValue": "#4fa94d"
6+
"description": "Height of the SVG (number interpreted as px). Defaults to '100'.",
7+
"defaultValue": "100"
88
},
99
{
10-
"name": "colors",
10+
"name": "width",
1111
"required": false,
1212
"type": "enum",
13-
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient <defs> will be injected and\nthe primary color reference (fill or stroke) becomes url(#gradientId)."
13+
"description": "Width of the SVG (number interpreted as px). Defaults to '100'.",
14+
"defaultValue": "100"
1415
},
1516
{
16-
"name": "gradientType",
17+
"name": "color",
1718
"required": false,
1819
"type": "enum",
19-
"description": "Type of gradient (linear or radial). Defaults to linear."
20+
"description": "Primary color applied to the audio bars. Defaults to DEFAULT_COLOR.",
21+
"defaultValue": "#4fa94d"
2022
},
2123
{
22-
"name": "gradientAngle",
24+
"name": "ariaLabel",
2325
"required": false,
2426
"type": "enum",
25-
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
27+
"description": "Accessible label announced to screen readers. Defaults to 'audio-loading'.",
28+
"defaultValue": "audio-loading"
2629
},
2730
{
28-
"name": "height",
31+
"name": "wrapperStyle",
2932
"required": false,
3033
"type": "enum",
31-
"description": "Height of the SVG (number interpreted as px).",
32-
"defaultValue": "100"
34+
"description": "Inline style object applied to the wrapper element.",
35+
"defaultValue": "{}"
3336
},
3437
{
35-
"name": "width",
38+
"name": "wrapperClass",
3639
"required": false,
3740
"type": "enum",
38-
"description": "Width of the SVG (number interpreted as px).",
39-
"defaultValue": "100"
41+
"description": "CSS class applied to the wrapper for custom styling."
4042
},
4143
{
42-
"name": "ariaLabel",
44+
"name": "visible",
4345
"required": false,
4446
"type": "enum",
45-
"description": "Accessible label announced to screen readers (mapped to aria-label).",
46-
"defaultValue": "audio-loading"
47+
"description": "When false, the loader is not rendered. Defaults to true.",
48+
"defaultValue": "true"
4749
},
4850
{
49-
"name": "wrapperStyle",
51+
"name": "colors",
5052
"required": false,
5153
"type": "enum",
52-
"description": "Inline style object applied to the wrapper element.",
53-
"defaultValue": "{}"
54+
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient will be applied to the bars."
5455
},
5556
{
56-
"name": "wrapperClass",
57+
"name": "gradientType",
5758
"required": false,
5859
"type": "enum",
59-
"description": "CSS class applied to the wrapper for custom styling."
60+
"description": "Type of gradient (linear or radial). Defaults to linear."
6061
},
6162
{
62-
"name": "visible",
63+
"name": "gradientAngle",
6364
"required": false,
6465
"type": "enum",
65-
"description": "When false, the loader is not rendered.",
66-
"defaultValue": "true"
66+
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
6767
}
6868
]
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
[
22
{
3-
"name": "radius",
3+
"name": "height",
44
"required": false,
55
"type": "enum",
6-
"description": "",
7-
"defaultValue": "5"
6+
"description": "Height of the SVG (number interpreted as px). Defaults to 100.",
7+
"defaultValue": "100"
88
},
99
{
10-
"name": "color",
10+
"name": "width",
1111
"required": false,
1212
"type": "enum",
13-
"description": "Primary color applied to fill or stroke.",
14-
"defaultValue": "#4fa94d"
13+
"description": "Width of the SVG (number interpreted as px). Defaults to 100.",
14+
"defaultValue": "100"
1515
},
1616
{
17-
"name": "colors",
17+
"name": "color",
1818
"required": false,
1919
"type": "enum",
20-
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient <defs> will be injected and\nthe primary color reference (fill or stroke) becomes url(#gradientId)."
20+
"description": "Primary color applied to the balls. Defaults to DEFAULT_COLOR.",
21+
"defaultValue": "#4fa94d"
2122
},
2223
{
23-
"name": "gradientType",
24+
"name": "radius",
2425
"required": false,
2526
"type": "enum",
26-
"description": "Type of gradient (linear or radial). Defaults to linear."
27+
"description": "Radius of each ball in the triangle. Defaults to 5.",
28+
"defaultValue": "5"
2729
},
2830
{
29-
"name": "gradientAngle",
31+
"name": "ariaLabel",
3032
"required": false,
3133
"type": "enum",
32-
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
34+
"description": "Accessible label announced to screen readers. Defaults to 'ball-triangle-loading'.",
35+
"defaultValue": "ball-triangle-loading"
3336
},
3437
{
35-
"name": "height",
38+
"name": "wrapperStyle",
3639
"required": false,
3740
"type": "enum",
38-
"description": "Height of the SVG (number interpreted as px).",
39-
"defaultValue": "100"
41+
"description": "Inline style object applied to the wrapper element."
4042
},
4143
{
42-
"name": "width",
44+
"name": "wrapperClass",
4345
"required": false,
4446
"type": "enum",
45-
"description": "Width of the SVG (number interpreted as px).",
46-
"defaultValue": "100"
47+
"description": "CSS class applied to the wrapper for custom styling."
4748
},
4849
{
49-
"name": "ariaLabel",
50+
"name": "visible",
5051
"required": false,
5152
"type": "enum",
52-
"description": "Accessible label announced to screen readers (mapped to aria-label).",
53-
"defaultValue": "ball-triangle-loading"
53+
"description": "When false, the loader is not rendered. Defaults to true.",
54+
"defaultValue": "true"
5455
},
5556
{
56-
"name": "wrapperStyle",
57+
"name": "colors",
5758
"required": false,
5859
"type": "enum",
59-
"description": "Inline style object applied to the wrapper element."
60+
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient will be applied to the balls."
6061
},
6162
{
62-
"name": "wrapperClass",
63+
"name": "gradientType",
6364
"required": false,
6465
"type": "enum",
65-
"description": "CSS class applied to the wrapper for custom styling."
66+
"description": "Type of gradient (linear or radial). Defaults to linear."
6667
},
6768
{
68-
"name": "visible",
69+
"name": "gradientAngle",
6970
"required": false,
7071
"type": "enum",
71-
"description": "When false, the loader is not rendered.",
72-
"defaultValue": "true"
72+
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
7373
}
7474
]
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
[
22
{
3-
"name": "color",
3+
"name": "height",
44
"required": false,
55
"type": "enum",
6-
"description": "Primary color applied to fill or stroke.",
7-
"defaultValue": "#4fa94d"
6+
"description": "Height of the SVG (number interpreted as px). Defaults to 80.",
7+
"defaultValue": "80"
88
},
99
{
10-
"name": "colors",
10+
"name": "width",
1111
"required": false,
1212
"type": "enum",
13-
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient <defs> will be injected and\nthe primary color reference (fill or stroke) becomes url(#gradientId)."
13+
"description": "Width of the SVG (number interpreted as px). Defaults to 80.",
14+
"defaultValue": "80"
1415
},
1516
{
16-
"name": "gradientType",
17+
"name": "color",
1718
"required": false,
1819
"type": "enum",
19-
"description": "Type of gradient (linear or radial). Defaults to linear."
20+
"description": "Primary color applied to the bars. Defaults to DEFAULT_COLOR.",
21+
"defaultValue": "#4fa94d"
2022
},
2123
{
22-
"name": "gradientAngle",
24+
"name": "ariaLabel",
2325
"required": false,
2426
"type": "enum",
25-
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
27+
"description": "Accessible label announced to screen readers. Defaults to 'bars-loading'.",
28+
"defaultValue": "bars-loading"
2629
},
2730
{
28-
"name": "height",
31+
"name": "wrapperStyle",
2932
"required": false,
3033
"type": "enum",
31-
"description": "Height of the SVG (number interpreted as px).",
32-
"defaultValue": "80"
34+
"description": "Inline style object applied to the wrapper element."
3335
},
3436
{
35-
"name": "width",
37+
"name": "wrapperClass",
3638
"required": false,
3739
"type": "enum",
38-
"description": "Width of the SVG (number interpreted as px).",
39-
"defaultValue": "80"
40+
"description": "CSS class applied to the wrapper for custom styling."
4041
},
4142
{
42-
"name": "ariaLabel",
43+
"name": "visible",
4344
"required": false,
4445
"type": "enum",
45-
"description": "Accessible label announced to screen readers (mapped to aria-label).",
46-
"defaultValue": "bars-loading"
46+
"description": "When false, the loader is not rendered. Defaults to true.",
47+
"defaultValue": "true"
4748
},
4849
{
49-
"name": "wrapperStyle",
50+
"name": "colors",
5051
"required": false,
5152
"type": "enum",
52-
"description": "Inline style object applied to the wrapper element."
53+
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient will be applied to the bars."
5354
},
5455
{
55-
"name": "wrapperClass",
56+
"name": "gradientType",
5657
"required": false,
5758
"type": "enum",
58-
"description": "CSS class applied to the wrapper for custom styling."
59+
"description": "Type of gradient (linear or radial). Defaults to linear."
5960
},
6061
{
61-
"name": "visible",
62+
"name": "gradientAngle",
6263
"required": false,
6364
"type": "enum",
64-
"description": "When false, the loader is not rendered.",
65-
"defaultValue": "true"
65+
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
6666
}
6767
]
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
[
22
{
3-
"name": "color",
3+
"name": "height",
44
"required": false,
55
"type": "enum",
6-
"description": "Primary color applied to fill or stroke."
6+
"description": "Height of the SVG (number interpreted as px). Defaults to '80'.",
7+
"defaultValue": "80"
78
},
89
{
9-
"name": "colors",
10+
"name": "width",
1011
"required": false,
1112
"type": "enum",
12-
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient <defs> will be injected and\nthe primary color reference (fill or stroke) becomes url(#gradientId)."
13+
"description": "Width of the SVG (number interpreted as px). Defaults to '80'.",
14+
"defaultValue": "80"
1315
},
1416
{
15-
"name": "gradientType",
17+
"name": "color",
1618
"required": false,
1719
"type": "enum",
18-
"description": "Type of gradient (linear or radial). Defaults to linear."
20+
"description": "Primary color applied to the blocks. Can be overridden by colors array."
1921
},
2022
{
21-
"name": "gradientAngle",
23+
"name": "ariaLabel",
2224
"required": false,
2325
"type": "enum",
24-
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
26+
"description": "Accessible label announced to screen readers. Defaults to 'blocks-loading'.",
27+
"defaultValue": "blocks-loading"
2528
},
2629
{
27-
"name": "height",
30+
"name": "wrapperStyle",
2831
"required": false,
2932
"type": "enum",
30-
"description": "Height of the SVG (number interpreted as px).",
31-
"defaultValue": "80"
33+
"description": "Inline style object applied to the wrapper element.",
34+
"defaultValue": "{}"
3235
},
3336
{
34-
"name": "width",
37+
"name": "wrapperClass",
3538
"required": false,
3639
"type": "enum",
37-
"description": "Width of the SVG (number interpreted as px).",
38-
"defaultValue": "80"
40+
"description": "CSS class applied to the wrapper for custom styling."
3941
},
4042
{
41-
"name": "ariaLabel",
43+
"name": "visible",
4244
"required": false,
4345
"type": "enum",
44-
"description": "Accessible label announced to screen readers (mapped to aria-label).",
45-
"defaultValue": "blocks-loading"
46+
"description": "When false, the loader is not rendered. Defaults to true.",
47+
"defaultValue": "true"
4648
},
4749
{
48-
"name": "wrapperStyle",
50+
"name": "colors",
4951
"required": false,
5052
"type": "enum",
51-
"description": "Inline style object applied to the wrapper element.",
52-
"defaultValue": "{}"
53+
"description": "Provide multiple colors to render a gradient instead of a solid color.\nWhen 2 or more colors are supplied a gradient will be applied to the blocks."
5354
},
5455
{
55-
"name": "wrapperClass",
56+
"name": "gradientType",
5657
"required": false,
5758
"type": "enum",
58-
"description": "CSS class applied to the wrapper for custom styling."
59+
"description": "Type of gradient (linear or radial). Defaults to linear."
5960
},
6061
{
61-
"name": "visible",
62+
"name": "gradientAngle",
6263
"required": false,
6364
"type": "enum",
64-
"description": "When false, the loader is not rendered.",
65-
"defaultValue": "true"
65+
"description": "Angle (in degrees) applied via rotate() transform for linear gradients."
6666
}
6767
]

0 commit comments

Comments
 (0)