@khanacademy/wonder-blocks-button 8.0.3 → 9.0.1
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 +21 -0
- package/dist/components/button-core.d.ts +1 -1
- package/dist/components/button.d.ts +0 -9
- package/dist/es/index.js +7 -711
- package/dist/index.js +7 -715
- package/dist/themes/default.d.ts +17 -169
- package/dist/themes/khanmigo.d.ts +17 -169
- package/dist/themes/themed-button.d.ts +17 -169
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-button
|
|
2
2
|
|
|
3
|
+
## 9.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b9e4946: Update to use REM sizing tokens internally for scalable font-sizes
|
|
8
|
+
- Updated dependencies [b9e4946]
|
|
9
|
+
- Updated dependencies [b9e4946]
|
|
10
|
+
- @khanacademy/wonder-blocks-tokens@10.0.0
|
|
11
|
+
- @khanacademy/wonder-blocks-typography@3.2.0
|
|
12
|
+
- @khanacademy/wonder-blocks-clickable@7.0.4
|
|
13
|
+
- @khanacademy/wonder-blocks-progress-spinner@3.1.10
|
|
14
|
+
- @khanacademy/wonder-blocks-core@12.2.1
|
|
15
|
+
- @khanacademy/wonder-blocks-icon@5.1.3
|
|
16
|
+
- @khanacademy/wonder-blocks-theming@3.3.0
|
|
17
|
+
|
|
18
|
+
## 9.0.0
|
|
19
|
+
|
|
20
|
+
### Major Changes
|
|
21
|
+
|
|
22
|
+
- 0b47477: Removes the `light` prop as it is no longer maintained. Simplifes pseudo-states (e.g. `:hover`, `:active`).
|
|
23
|
+
|
|
3
24
|
## 8.0.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -6,4 +6,4 @@ import { ButtonThemeContract } from "../themes/themed-button";
|
|
|
6
6
|
type Props = SharedProps & ChildrenProps & ClickableState;
|
|
7
7
|
declare const ButtonCore: React.ForwardRefExoticComponent<Props & React.RefAttributes<typeof Link | HTMLButtonElement | HTMLAnchorElement>>;
|
|
8
8
|
export default ButtonCore;
|
|
9
|
-
export declare const _generateStyles: (buttonColor: string | undefined, kind: "primary" | "secondary" | "tertiary",
|
|
9
|
+
export declare const _generateStyles: (buttonColor: string | undefined, kind: "primary" | "secondary" | "tertiary", size: "large" | "medium" | "small", theme: ButtonThemeContract, themeName: string) => any;
|
|
@@ -27,8 +27,6 @@ Partial<Omit<AriaProps, "aria-disabled">> & {
|
|
|
27
27
|
* If true, replaces the contents with a spinner.
|
|
28
28
|
*
|
|
29
29
|
* Note: setting this prop to `true` will disable the button.
|
|
30
|
-
*
|
|
31
|
-
* TODO(kevinb): support spinner + light once we have designs
|
|
32
30
|
*/
|
|
33
31
|
spinner?: boolean;
|
|
34
32
|
/**
|
|
@@ -45,13 +43,6 @@ Partial<Omit<AriaProps, "aria-disabled">> & {
|
|
|
45
43
|
* - Tertiary buttons have no background or border
|
|
46
44
|
*/
|
|
47
45
|
kind?: "primary" | "secondary" | "tertiary";
|
|
48
|
-
/**
|
|
49
|
-
* Whether the button is on a dark/colored background.
|
|
50
|
-
*
|
|
51
|
-
* Sets primary button background color to white, and secondary and
|
|
52
|
-
* tertiary button title to color.
|
|
53
|
-
*/
|
|
54
|
-
light?: boolean;
|
|
55
46
|
/**
|
|
56
47
|
* The size of the button. "medium" = height: 40; "small" = height: 32;
|
|
57
48
|
* "large" = height: 56;
|