@khanacademy/wonder-blocks-button 8.0.0 → 8.0.2

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @khanacademy/wonder-blocks-button
2
2
 
3
+ ## 8.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e63adea: Update `border.width` tokens to use new naming conventions.
8
+ - Updated dependencies [e63adea]
9
+ - Updated dependencies [e63adea]
10
+ - @khanacademy/wonder-blocks-tokens@8.0.0
11
+ - @khanacademy/wonder-blocks-clickable@7.0.2
12
+ - @khanacademy/wonder-blocks-progress-spinner@3.1.8
13
+
14
+ ## 8.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - e8ccf60: - Update `Button.large` to use `radius_40` (4px, 0.4rem) instead of `6px`.
19
+ - Update `Button.small (khanmigo)` to use `radius_80` (8px, 0.8rem) instead of `6px`.
20
+ - Updated dependencies [e8ccf60]
21
+ - @khanacademy/wonder-blocks-tokens@7.0.0
22
+ - @khanacademy/wonder-blocks-clickable@7.0.1
23
+ - @khanacademy/wonder-blocks-progress-spinner@3.1.7
24
+
3
25
  ## 8.0.0
4
26
 
5
27
  ### Major Changes
package/dist/es/index.js CHANGED
@@ -200,19 +200,19 @@ const theme$1 = {
200
200
  },
201
201
  border: {
202
202
  width: {
203
- secondary: tokens.border.width.hairline,
204
- focused: tokens.border.width.thin,
205
- disabled: tokens.border.width.thin
203
+ secondary: tokens.border.width.thin,
204
+ focused: tokens.border.width.medium,
205
+ disabled: tokens.border.width.medium
206
206
  },
207
207
  offset: {
208
208
  primary: tokens.spacing.xxxxSmall_2,
209
209
  secondary: -tokens.spacing.xxxxSmall_2
210
210
  },
211
211
  radius: {
212
- default: tokens.border.radius.medium_4,
213
- small: tokens.border.radius.medium_4,
214
- large: tokens.border.radius.large_6,
215
- icon: tokens.border.radius.full
212
+ default: tokens.border.radius.radius_040,
213
+ small: tokens.border.radius.radius_040,
214
+ large: tokens.border.radius.radius_040,
215
+ icon: tokens.border.radius.radius_full
216
216
  }
217
217
  },
218
218
  size: {
@@ -292,12 +292,12 @@ const theme = mergeTheme(theme$1, {
292
292
  },
293
293
  border: {
294
294
  radius: {
295
- default: tokens.border.radius.xLarge_12,
296
- small: tokens.border.radius.large_6,
297
- large: tokens.border.radius.xLarge_12
295
+ default: tokens.border.radius.radius_120,
296
+ small: tokens.border.radius.radius_080,
297
+ large: tokens.border.radius.radius_120
298
298
  },
299
299
  width: {
300
- focused: tokens.border.width.hairline
300
+ focused: tokens.border.width.thin
301
301
  }
302
302
  },
303
303
  margin: {
package/dist/index.js CHANGED
@@ -227,19 +227,19 @@ const theme$1 = {
227
227
  },
228
228
  border: {
229
229
  width: {
230
- secondary: tokens__namespace.border.width.hairline,
231
- focused: tokens__namespace.border.width.thin,
232
- disabled: tokens__namespace.border.width.thin
230
+ secondary: tokens__namespace.border.width.thin,
231
+ focused: tokens__namespace.border.width.medium,
232
+ disabled: tokens__namespace.border.width.medium
233
233
  },
234
234
  offset: {
235
235
  primary: tokens__namespace.spacing.xxxxSmall_2,
236
236
  secondary: -tokens__namespace.spacing.xxxxSmall_2
237
237
  },
238
238
  radius: {
239
- default: tokens__namespace.border.radius.medium_4,
240
- small: tokens__namespace.border.radius.medium_4,
241
- large: tokens__namespace.border.radius.large_6,
242
- icon: tokens__namespace.border.radius.full
239
+ default: tokens__namespace.border.radius.radius_040,
240
+ small: tokens__namespace.border.radius.radius_040,
241
+ large: tokens__namespace.border.radius.radius_040,
242
+ icon: tokens__namespace.border.radius.radius_full
243
243
  }
244
244
  },
245
245
  size: {
@@ -319,12 +319,12 @@ const theme = wonderBlocksTheming.mergeTheme(theme$1, {
319
319
  },
320
320
  border: {
321
321
  radius: {
322
- default: tokens__namespace.border.radius.xLarge_12,
323
- small: tokens__namespace.border.radius.large_6,
324
- large: tokens__namespace.border.radius.xLarge_12
322
+ default: tokens__namespace.border.radius.radius_120,
323
+ small: tokens__namespace.border.radius.radius_080,
324
+ large: tokens__namespace.border.radius.radius_120
325
325
  },
326
326
  width: {
327
- focused: tokens__namespace.border.width.hairline
327
+ focused: tokens__namespace.border.width.thin
328
328
  }
329
329
  },
330
330
  margin: {
@@ -311,18 +311,18 @@ declare const theme: {
311
311
  };
312
312
  border: {
313
313
  width: {
314
- secondary: number;
315
- focused: number;
316
- disabled: number;
314
+ secondary: string;
315
+ focused: string;
316
+ disabled: string;
317
317
  };
318
318
  offset: {
319
319
  primary: 2;
320
320
  secondary: number;
321
321
  };
322
322
  radius: {
323
- default: number;
324
- small: number;
325
- large: number;
323
+ default: string;
324
+ small: string;
325
+ large: string;
326
326
  /**
327
327
  * Icons
328
328
  */
@@ -301,18 +301,18 @@ declare const theme: {
301
301
  };
302
302
  border: {
303
303
  width: {
304
- secondary: number;
305
- focused: number;
306
- disabled: number;
304
+ secondary: string;
305
+ focused: string;
306
+ disabled: string;
307
307
  };
308
308
  offset: {
309
309
  primary: 2;
310
310
  secondary: number;
311
311
  };
312
312
  radius: {
313
- default: number;
314
- small: number;
315
- large: number;
313
+ default: string;
314
+ small: string;
315
+ large: string;
316
316
  icon: string;
317
317
  };
318
318
  };
@@ -308,18 +308,18 @@ export declare const ButtonThemeContext: React.Context<{
308
308
  };
309
309
  border: {
310
310
  width: {
311
- secondary: number;
312
- focused: number;
313
- disabled: number;
311
+ secondary: string;
312
+ focused: string;
313
+ disabled: string;
314
314
  };
315
315
  offset: {
316
316
  primary: 2;
317
317
  secondary: number;
318
318
  };
319
319
  radius: {
320
- default: number;
321
- small: number;
322
- large: number;
320
+ default: string;
321
+ small: string;
322
+ large: string;
323
323
  icon: string;
324
324
  };
325
325
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-button",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,12 +13,12 @@
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.24.5",
16
- "@khanacademy/wonder-blocks-clickable": "7.0.0",
16
+ "@khanacademy/wonder-blocks-clickable": "7.0.2",
17
17
  "@khanacademy/wonder-blocks-core": "12.2.1",
18
18
  "@khanacademy/wonder-blocks-icon": "5.1.3",
19
- "@khanacademy/wonder-blocks-progress-spinner": "3.1.6",
19
+ "@khanacademy/wonder-blocks-progress-spinner": "3.1.8",
20
20
  "@khanacademy/wonder-blocks-theming": "3.2.1",
21
- "@khanacademy/wonder-blocks-tokens": "6.0.0",
21
+ "@khanacademy/wonder-blocks-tokens": "8.0.0",
22
22
  "@khanacademy/wonder-blocks-typography": "3.1.3"
23
23
  },
24
24
  "peerDependencies": {