You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/components/progress-bar/progress-bar.interfaces.ts
+26-21Lines changed: 26 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,33 @@
1
1
exporttypeIonProgressBarRecipe={
2
2
height?: string|number;
3
3
4
-
// Indeterminate type (animated, no specific value)
5
4
indeterminate?: {
6
5
progress?: {
7
6
default?: {
8
7
background?: string;
9
8
};
9
+
10
+
/** Any of the semantic colors like primary, secondary, etc. */
10
11
semantic?: {
11
-
// Default state of the semantic color (not hover, focus, activated, etc.)
12
12
default?: {
13
13
background?: string;
14
14
};
15
15
};
16
16
};
17
+
17
18
buffer?: {
18
19
bar?: {
19
20
default?: {
20
21
background?: string;
21
22
};
23
+
24
+
/** Any of the semantic colors like primary, secondary, etc. */
22
25
semantic?: {
23
26
default?: {
24
27
background?: string;
25
28
};
26
29
};
30
+
27
31
solid?: {
28
32
default?: {
29
33
background?: string;
@@ -33,50 +37,54 @@ export type IonProgressBarRecipe = {
33
37
};
34
38
};
35
39
36
-
// Determinate type (has a specific value, optional buffer)
37
-
// it has three parts:
38
-
// - progress: the progress bar which represents the current value
39
-
// - buffer-bar: the buffer bar which represents the buffer value
40
-
// - buffer-circles: the buffer circles which are displayed when there is a buffer value but no progress value (value = 0, buffer > 0), this is optional
41
40
determinate?: {
42
41
progress?: {
43
42
default?: {
44
43
background?: string;
45
44
};
45
+
46
+
/** Any of the semantic colors like primary, secondary, etc. */
46
47
semantic?: {
47
-
// Default state of the semantic color (not hover, focus, activated, etc.)
48
48
default?: {
49
49
background?: string;
50
50
};
51
51
};
52
52
};
53
+
53
54
buffer?: {
54
55
bar?: {
55
56
default?: {
56
57
background?: string;
57
58
};
59
+
60
+
/** Any of the semantic colors like primary, secondary, etc. */
58
61
semantic?: {
59
62
default?: {
60
63
background?: string;
61
64
};
62
65
};
63
-
// When progress bar is solid (buffer = 1)
66
+
67
+
/* When progress bar is solid (buffer = 1) */
64
68
solid?: {
65
69
default?: {
66
70
background?: string;
67
71
};
68
72
};
69
73
};
74
+
70
75
circles?: {
71
76
default?: {
72
77
background?: string;
73
78
};
79
+
80
+
/** Any of the semantic colors like primary, secondary, etc. */
74
81
semantic?: {
75
82
default?: {
76
83
background?: string;
77
84
};
78
85
};
79
-
// When progress bar is solid (buffer = 1)
86
+
87
+
/** When progress bar is solid (buffer = 1) */
80
88
solid?: {
81
89
default?: {
82
90
background?: string;
@@ -86,18 +94,15 @@ export type IonProgressBarRecipe = {
0 commit comments