@khanacademy/wonder-blocks-button 7.0.6 → 7.0.8

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.
@@ -10,59 +10,262 @@ export type ButtonThemeContract = typeof defaultTheme;
10
10
  */
11
11
  export declare const ButtonThemeContext: React.Context<{
12
12
  color: {
13
- bg: {
14
- action: {
15
- default: string;
16
- active: string;
17
- inverse: string;
18
- };
19
- critical: {
20
- default: string;
21
- active: string;
22
- inverse: string;
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
- primary: {
25
- default: string;
26
- disabled: string;
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
- secondary: {
29
- default: string;
30
- inverse: string;
31
- focus: string;
32
- active: {
33
- action: string;
34
- critical: string;
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
- icon: {
38
- secondaryHover: string;
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
- text: {
42
- disabled: string;
43
- inverse: string;
44
- primary: {
45
- disabled: string;
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
- secondary: {
48
- inverse: string;
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
- icon: {
51
- secondaryHover: string;
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
- border: {
55
- disabled: string;
56
- primary: {
57
- inverse: string;
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
- secondary: {
60
- action: string;
61
- critical: string;
62
- inverse: string;
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
- tertiary: {
65
- inverse: string;
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.6",
3
+ "version": "7.0.8",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,13 +17,13 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.18.6",
20
- "@khanacademy/wonder-blocks-clickable": "^5.0.6",
21
- "@khanacademy/wonder-blocks-core": "^11.1.0",
22
- "@khanacademy/wonder-blocks-icon": "^5.0.5",
23
- "@khanacademy/wonder-blocks-progress-spinner": "^3.0.6",
20
+ "@khanacademy/wonder-blocks-clickable": "^6.0.0",
21
+ "@khanacademy/wonder-blocks-core": "^12.0.0",
22
+ "@khanacademy/wonder-blocks-icon": "^5.0.6",
23
+ "@khanacademy/wonder-blocks-progress-spinner": "^3.0.8",
24
24
  "@khanacademy/wonder-blocks-theming": "^3.0.1",
25
- "@khanacademy/wonder-blocks-tokens": "^4.0.0",
26
- "@khanacademy/wonder-blocks-typography": "^3.0.5"
25
+ "@khanacademy/wonder-blocks-tokens": "^4.1.0",
26
+ "@khanacademy/wonder-blocks-typography": "^3.0.6"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "aphrodite": "^1.2.5",