@khanacademy/wonder-blocks-button 7.0.6 → 7.0.7
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.md +11 -0
- package/dist/es/index.js +262 -111
- package/dist/index.js +262 -111
- package/dist/themes/default.d.ts +258 -65
- package/dist/themes/khanmigo.d.ts +245 -41
- package/dist/themes/themed-button.d.ts +245 -41
- package/package.json +4 -4
|
@@ -10,59 +10,262 @@ export type ButtonThemeContract = typeof defaultTheme;
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const ButtonThemeContext: React.Context<{
|
|
12
12
|
color: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default:
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
filled: {
|
|
14
|
+
progressive: {
|
|
15
|
+
disabled: {
|
|
16
|
+
border: string;
|
|
17
|
+
background: string;
|
|
18
|
+
foreground: string;
|
|
19
|
+
};
|
|
20
|
+
default: {
|
|
21
|
+
border: string;
|
|
22
|
+
background: string;
|
|
23
|
+
foreground: string;
|
|
24
|
+
};
|
|
25
|
+
hover: {
|
|
26
|
+
border: string;
|
|
27
|
+
background: string;
|
|
28
|
+
foreground: string;
|
|
29
|
+
};
|
|
30
|
+
press: {
|
|
31
|
+
border: string;
|
|
32
|
+
background: string;
|
|
33
|
+
foreground: string;
|
|
34
|
+
};
|
|
23
35
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
progressiveLight: {
|
|
37
|
+
hover: {
|
|
38
|
+
border: string;
|
|
39
|
+
background: string;
|
|
40
|
+
foreground: string;
|
|
41
|
+
};
|
|
42
|
+
press: {
|
|
43
|
+
border: string;
|
|
44
|
+
background: string;
|
|
45
|
+
foreground: string;
|
|
46
|
+
};
|
|
47
|
+
disabled: {
|
|
48
|
+
border: string;
|
|
49
|
+
background: string;
|
|
50
|
+
foreground: string;
|
|
51
|
+
};
|
|
52
|
+
default: {
|
|
53
|
+
border: string;
|
|
54
|
+
background: string;
|
|
55
|
+
foreground: string;
|
|
56
|
+
};
|
|
27
57
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
58
|
+
destructive: {
|
|
59
|
+
disabled: {
|
|
60
|
+
border: string;
|
|
61
|
+
background: string;
|
|
62
|
+
foreground: string;
|
|
63
|
+
};
|
|
64
|
+
default: {
|
|
65
|
+
border: string;
|
|
66
|
+
background: string;
|
|
67
|
+
foreground: string;
|
|
68
|
+
};
|
|
69
|
+
hover: {
|
|
70
|
+
border: string;
|
|
71
|
+
background: string;
|
|
72
|
+
foreground: string;
|
|
73
|
+
};
|
|
74
|
+
press: {
|
|
75
|
+
border: string;
|
|
76
|
+
background: string;
|
|
77
|
+
foreground: string;
|
|
35
78
|
};
|
|
36
79
|
};
|
|
37
|
-
|
|
38
|
-
|
|
80
|
+
destructiveLight: {
|
|
81
|
+
hover: {
|
|
82
|
+
border: string;
|
|
83
|
+
background: string;
|
|
84
|
+
foreground: string;
|
|
85
|
+
};
|
|
86
|
+
press: {
|
|
87
|
+
border: string;
|
|
88
|
+
background: string;
|
|
89
|
+
foreground: string;
|
|
90
|
+
};
|
|
91
|
+
disabled: {
|
|
92
|
+
border: string;
|
|
93
|
+
background: string;
|
|
94
|
+
foreground: string;
|
|
95
|
+
};
|
|
96
|
+
default: {
|
|
97
|
+
border: string;
|
|
98
|
+
background: string;
|
|
99
|
+
foreground: string;
|
|
100
|
+
};
|
|
39
101
|
};
|
|
40
102
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
103
|
+
outlined: {
|
|
104
|
+
progressive: {
|
|
105
|
+
default: {
|
|
106
|
+
background: string;
|
|
107
|
+
border: string;
|
|
108
|
+
foreground: string;
|
|
109
|
+
};
|
|
110
|
+
hover: {
|
|
111
|
+
background: string;
|
|
112
|
+
icon: string;
|
|
113
|
+
border: string;
|
|
114
|
+
foreground: string;
|
|
115
|
+
};
|
|
116
|
+
disabled: {
|
|
117
|
+
border: string;
|
|
118
|
+
background: string;
|
|
119
|
+
foreground: string;
|
|
120
|
+
};
|
|
121
|
+
press: {
|
|
122
|
+
border: string;
|
|
123
|
+
background: string;
|
|
124
|
+
foreground: string;
|
|
125
|
+
};
|
|
46
126
|
};
|
|
47
|
-
|
|
48
|
-
|
|
127
|
+
progressiveLight: {
|
|
128
|
+
default: {
|
|
129
|
+
border: string;
|
|
130
|
+
background: string;
|
|
131
|
+
foreground: string;
|
|
132
|
+
};
|
|
133
|
+
hover: {
|
|
134
|
+
border: string;
|
|
135
|
+
background: string;
|
|
136
|
+
foreground: string;
|
|
137
|
+
icon: string;
|
|
138
|
+
};
|
|
139
|
+
press: {
|
|
140
|
+
border: string;
|
|
141
|
+
background: string;
|
|
142
|
+
foreground: string;
|
|
143
|
+
};
|
|
144
|
+
disabled: {
|
|
145
|
+
border: string;
|
|
146
|
+
background: string;
|
|
147
|
+
foreground: string;
|
|
148
|
+
};
|
|
49
149
|
};
|
|
50
|
-
|
|
51
|
-
|
|
150
|
+
destructive: {
|
|
151
|
+
hover: {
|
|
152
|
+
background: string;
|
|
153
|
+
icon: string;
|
|
154
|
+
border: string;
|
|
155
|
+
foreground: string;
|
|
156
|
+
};
|
|
157
|
+
disabled: {
|
|
158
|
+
border: string;
|
|
159
|
+
background: string;
|
|
160
|
+
foreground: string;
|
|
161
|
+
};
|
|
162
|
+
default: {
|
|
163
|
+
border: string;
|
|
164
|
+
background: string;
|
|
165
|
+
foreground: string;
|
|
166
|
+
};
|
|
167
|
+
press: {
|
|
168
|
+
border: string;
|
|
169
|
+
background: string;
|
|
170
|
+
foreground: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
destructiveLight: {
|
|
174
|
+
default: {
|
|
175
|
+
border: string;
|
|
176
|
+
background: string;
|
|
177
|
+
foreground: string;
|
|
178
|
+
};
|
|
179
|
+
hover: {
|
|
180
|
+
border: string;
|
|
181
|
+
background: string;
|
|
182
|
+
foreground: string;
|
|
183
|
+
icon: string;
|
|
184
|
+
};
|
|
185
|
+
press: {
|
|
186
|
+
border: string;
|
|
187
|
+
background: string;
|
|
188
|
+
foreground: string;
|
|
189
|
+
};
|
|
190
|
+
disabled: {
|
|
191
|
+
border: string;
|
|
192
|
+
background: string;
|
|
193
|
+
foreground: string;
|
|
194
|
+
};
|
|
52
195
|
};
|
|
53
196
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
197
|
+
text: {
|
|
198
|
+
progressive: {
|
|
199
|
+
default: {
|
|
200
|
+
background: string;
|
|
201
|
+
foreground: string;
|
|
202
|
+
};
|
|
203
|
+
hover: {
|
|
204
|
+
border: string;
|
|
205
|
+
};
|
|
206
|
+
press: {
|
|
207
|
+
foreground: string;
|
|
208
|
+
};
|
|
209
|
+
disabled: {
|
|
210
|
+
border: string;
|
|
211
|
+
foreground: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
progressiveLight: {
|
|
215
|
+
default: {
|
|
216
|
+
border: string;
|
|
217
|
+
background: string;
|
|
218
|
+
foreground: string;
|
|
219
|
+
};
|
|
220
|
+
hover: {
|
|
221
|
+
border: string;
|
|
222
|
+
background: string;
|
|
223
|
+
foreground: string;
|
|
224
|
+
};
|
|
225
|
+
press: {
|
|
226
|
+
border: string;
|
|
227
|
+
foreground: string;
|
|
228
|
+
};
|
|
229
|
+
disabled: {
|
|
230
|
+
border: string;
|
|
231
|
+
foreground: string;
|
|
232
|
+
};
|
|
58
233
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
234
|
+
destructive: {
|
|
235
|
+
default: {
|
|
236
|
+
background: string;
|
|
237
|
+
foreground: string;
|
|
238
|
+
};
|
|
239
|
+
hover: {
|
|
240
|
+
border: string;
|
|
241
|
+
};
|
|
242
|
+
press: {
|
|
243
|
+
foreground: string;
|
|
244
|
+
};
|
|
245
|
+
disabled: {
|
|
246
|
+
border: string;
|
|
247
|
+
foreground: string;
|
|
248
|
+
};
|
|
63
249
|
};
|
|
64
|
-
|
|
65
|
-
|
|
250
|
+
destructiveLight: {
|
|
251
|
+
default: {
|
|
252
|
+
border: string;
|
|
253
|
+
background: string;
|
|
254
|
+
foreground: string;
|
|
255
|
+
};
|
|
256
|
+
hover: {
|
|
257
|
+
border: string;
|
|
258
|
+
background: string;
|
|
259
|
+
foreground: string;
|
|
260
|
+
};
|
|
261
|
+
press: {
|
|
262
|
+
border: string;
|
|
263
|
+
foreground: string;
|
|
264
|
+
};
|
|
265
|
+
disabled: {
|
|
266
|
+
border: string;
|
|
267
|
+
foreground: string;
|
|
268
|
+
};
|
|
66
269
|
};
|
|
67
270
|
};
|
|
68
271
|
};
|
|
@@ -74,6 +277,7 @@ export declare const ButtonThemeContext: React.Context<{
|
|
|
74
277
|
};
|
|
75
278
|
offset: {
|
|
76
279
|
primary: 2;
|
|
280
|
+
secondary: number;
|
|
77
281
|
};
|
|
78
282
|
radius: {
|
|
79
283
|
default: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-button",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime": "^7.18.6",
|
|
20
|
-
"@khanacademy/wonder-blocks-clickable": "^5.0.
|
|
20
|
+
"@khanacademy/wonder-blocks-clickable": "^5.0.7",
|
|
21
21
|
"@khanacademy/wonder-blocks-core": "^11.1.0",
|
|
22
22
|
"@khanacademy/wonder-blocks-icon": "^5.0.5",
|
|
23
|
-
"@khanacademy/wonder-blocks-progress-spinner": "^3.0.
|
|
23
|
+
"@khanacademy/wonder-blocks-progress-spinner": "^3.0.7",
|
|
24
24
|
"@khanacademy/wonder-blocks-theming": "^3.0.1",
|
|
25
|
-
"@khanacademy/wonder-blocks-tokens": "^4.
|
|
25
|
+
"@khanacademy/wonder-blocks-tokens": "^4.1.0",
|
|
26
26
|
"@khanacademy/wonder-blocks-typography": "^3.0.5"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|