@cloudflare/component-button 2.12.8 → 2.12.11

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
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.12.11](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.12.10...@cloudflare/component-button@2.12.11) (2022-03-01)
7
+
8
+ **Note:** Version bump only for package @cloudflare/component-button
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.12.10](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.12.9...@cloudflare/component-button@2.12.10) (2022-02-19)
15
+
16
+ **Note:** Version bump only for package @cloudflare/component-button
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.12.9](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.12.8...@cloudflare/component-button@2.12.9) (2022-02-16)
23
+
24
+ **Note:** Version bump only for package @cloudflare/component-button
25
+
26
+
27
+
28
+
29
+
6
30
  ## [2.12.8](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-button@2.12.7...@cloudflare/component-button@2.12.8) (2022-02-14)
7
31
 
8
32
  **Note:** Version bump only for package @cloudflare/component-button
package/dist/Button.d.ts CHANGED
@@ -112,10 +112,10 @@ declare type Props = {
112
112
  declare type PropsWithTheme = Props & ThemeProp;
113
113
  declare const _default: React.ComponentType<{
114
114
  form?: string | undefined;
115
+ type?: "default" | "success" | "warning" | "primary" | "danger" | undefined;
115
116
  key?: React.Key | null | undefined;
116
117
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
117
118
  className?: string | undefined;
118
- type?: "default" | "success" | "warning" | "primary" | "danger" | undefined;
119
119
  tabIndex?: number | undefined;
120
120
  direction?: "column" | "row" | undefined;
121
121
  disabled?: boolean | undefined;
@@ -5,6 +5,8 @@ declare const TextButton: import("react").ComponentType<{
5
5
  style?: import("react").CSSProperties | undefined;
6
6
  title?: string | undefined;
7
7
  children?: import("react").ReactNode;
8
+ type?: "button" | "reset" | "submit" | undefined;
9
+ id?: string | undefined;
8
10
  key?: import("react").Key | null | undefined;
9
11
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
10
12
  onMouseEnter?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
@@ -15,31 +17,29 @@ declare const TextButton: import("react").ComponentType<{
15
17
  onDragEnd?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
16
18
  className?: string | undefined;
17
19
  color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
18
- id?: string | undefined;
19
20
  lang?: string | undefined;
20
21
  name?: string | undefined;
21
- type?: "button" | "reset" | "submit" | undefined;
22
22
  role?: string | undefined;
23
23
  tabIndex?: number | undefined;
24
24
  'aria-activedescendant'?: string | undefined;
25
25
  'aria-atomic'?: boolean | "true" | "false" | undefined;
26
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
26
+ 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
27
27
  'aria-busy'?: boolean | "true" | "false" | undefined;
28
28
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
29
29
  'aria-colcount'?: number | undefined;
30
30
  'aria-colindex'?: number | undefined;
31
31
  'aria-colspan'?: number | undefined;
32
32
  'aria-controls'?: string | undefined;
33
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
33
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "location" | "page" | "date" | undefined;
34
34
  'aria-describedby'?: string | undefined;
35
35
  'aria-details'?: string | undefined;
36
36
  'aria-disabled'?: boolean | "true" | "false" | undefined;
37
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
37
+ 'aria-dropeffect'?: "link" | "none" | "execute" | "copy" | "move" | "popup" | undefined;
38
38
  'aria-errormessage'?: string | undefined;
39
39
  'aria-expanded'?: boolean | "true" | "false" | undefined;
40
40
  'aria-flowto'?: string | undefined;
41
41
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
42
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
42
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
43
43
  'aria-hidden'?: boolean | "true" | "false" | undefined;
44
44
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
45
45
  'aria-keyshortcuts'?: string | undefined;
@@ -56,7 +56,7 @@ declare const TextButton: import("react").ComponentType<{
56
56
  'aria-posinset'?: number | undefined;
57
57
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
58
58
  'aria-readonly'?: boolean | "true" | "false" | undefined;
59
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
59
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
60
60
  'aria-required'?: boolean | "true" | "false" | undefined;
61
61
  'aria-roledescription'?: string | undefined;
62
62
  'aria-rowcount'?: number | undefined;
@@ -64,7 +64,7 @@ declare const TextButton: import("react").ComponentType<{
64
64
  'aria-rowspan'?: number | undefined;
65
65
  'aria-selected'?: boolean | "true" | "false" | undefined;
66
66
  'aria-setsize'?: number | undefined;
67
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
67
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending" | undefined;
68
68
  'aria-valuemax'?: number | undefined;
69
69
  'aria-valuemin'?: number | undefined;
70
70
  'aria-valuenow'?: number | undefined;
@@ -240,7 +240,7 @@ declare const TextButton: import("react").ComponentType<{
240
240
  contextMenu?: string | undefined;
241
241
  placeholder?: string | undefined;
242
242
  spellCheck?: (boolean | "true" | "false") | undefined;
243
- inputMode?: "text" | "none" | "search" | "email" | "url" | "tel" | "numeric" | "decimal" | undefined;
243
+ inputMode?: "search" | "text" | "none" | "email" | "url" | "tel" | "numeric" | "decimal" | undefined;
244
244
  radioGroup?: string | undefined;
245
245
  about?: string | undefined;
246
246
  datatype?: string | undefined;
@@ -5,6 +5,8 @@ declare const UnstyledButton: import("react").ComponentType<{
5
5
  style?: import("react").CSSProperties | undefined;
6
6
  title?: string | undefined;
7
7
  children?: import("react").ReactNode;
8
+ type?: "button" | "reset" | "submit" | undefined;
9
+ id?: string | undefined;
8
10
  key?: import("react").Key | null | undefined;
9
11
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
10
12
  onMouseEnter?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
@@ -15,31 +17,29 @@ declare const UnstyledButton: import("react").ComponentType<{
15
17
  onDragEnd?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
16
18
  className?: string | undefined;
17
19
  color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
18
- id?: string | undefined;
19
20
  lang?: string | undefined;
20
21
  name?: string | undefined;
21
- type?: "button" | "reset" | "submit" | undefined;
22
22
  role?: string | undefined;
23
23
  tabIndex?: number | undefined;
24
24
  'aria-activedescendant'?: string | undefined;
25
25
  'aria-atomic'?: boolean | "true" | "false" | undefined;
26
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
26
+ 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
27
27
  'aria-busy'?: boolean | "true" | "false" | undefined;
28
28
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
29
29
  'aria-colcount'?: number | undefined;
30
30
  'aria-colindex'?: number | undefined;
31
31
  'aria-colspan'?: number | undefined;
32
32
  'aria-controls'?: string | undefined;
33
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
33
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "location" | "page" | "date" | undefined;
34
34
  'aria-describedby'?: string | undefined;
35
35
  'aria-details'?: string | undefined;
36
36
  'aria-disabled'?: boolean | "true" | "false" | undefined;
37
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
37
+ 'aria-dropeffect'?: "link" | "none" | "execute" | "copy" | "move" | "popup" | undefined;
38
38
  'aria-errormessage'?: string | undefined;
39
39
  'aria-expanded'?: boolean | "true" | "false" | undefined;
40
40
  'aria-flowto'?: string | undefined;
41
41
  'aria-grabbed'?: boolean | "true" | "false" | undefined;
42
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
42
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
43
43
  'aria-hidden'?: boolean | "true" | "false" | undefined;
44
44
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
45
45
  'aria-keyshortcuts'?: string | undefined;
@@ -56,7 +56,7 @@ declare const UnstyledButton: import("react").ComponentType<{
56
56
  'aria-posinset'?: number | undefined;
57
57
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
58
58
  'aria-readonly'?: boolean | "true" | "false" | undefined;
59
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
59
+ 'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
60
60
  'aria-required'?: boolean | "true" | "false" | undefined;
61
61
  'aria-roledescription'?: string | undefined;
62
62
  'aria-rowcount'?: number | undefined;
@@ -64,7 +64,7 @@ declare const UnstyledButton: import("react").ComponentType<{
64
64
  'aria-rowspan'?: number | undefined;
65
65
  'aria-selected'?: boolean | "true" | "false" | undefined;
66
66
  'aria-setsize'?: number | undefined;
67
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
67
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending" | undefined;
68
68
  'aria-valuemax'?: number | undefined;
69
69
  'aria-valuemin'?: number | undefined;
70
70
  'aria-valuenow'?: number | undefined;
@@ -240,7 +240,7 @@ declare const UnstyledButton: import("react").ComponentType<{
240
240
  contextMenu?: string | undefined;
241
241
  placeholder?: string | undefined;
242
242
  spellCheck?: (boolean | "true" | "false") | undefined;
243
- inputMode?: "text" | "none" | "search" | "email" | "url" | "tel" | "numeric" | "decimal" | undefined;
243
+ inputMode?: "search" | "text" | "none" | "email" | "url" | "tel" | "numeric" | "decimal" | undefined;
244
244
  radioGroup?: string | undefined;
245
245
  about?: string | undefined;
246
246
  datatype?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "2.12.8",
4
+ "version": "2.12.11",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -12,9 +12,9 @@
12
12
  "access": "public"
13
13
  },
14
14
  "dependencies": {
15
- "@cloudflare/component-icon": "^6.6.16",
16
- "@cloudflare/style-const": "^5.2.5",
17
- "@cloudflare/style-container": "^7.6.6",
15
+ "@cloudflare/component-icon": "^6.6.19",
16
+ "@cloudflare/style-const": "^5.2.8",
17
+ "@cloudflare/style-container": "^7.6.9",
18
18
  "polished": "^4.1.4",
19
19
  "prop-types": "^15.6.0"
20
20
  },
@@ -32,5 +32,5 @@
32
32
  "test-coverage": "stratus test --coverage",
33
33
  "test-watch": "stratus test --watch"
34
34
  },
35
- "gitHead": "e291d1ce7d364a3bdc62b63aaf17a0164e3abce0"
35
+ "gitHead": "8376e317eecb5d9153d14830f65d959dfdb8cb12"
36
36
  }