@cloudflare/component-button 5.4.3 → 6.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 3466699ea5: Fix loading state not clearing properly on Safari
8
+
9
+ ## 6.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 1b7c5ab296: Move @cloudflare/component-icon to peerDeps for all consuming packages
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [1b7c5ab296]
18
+ - @cloudflare/component-icon@10.0.0
19
+
3
20
  ## 5.4.3
4
21
 
5
22
  ### Patch Changes
package/dist/Button.d.ts CHANGED
@@ -25,7 +25,22 @@ export declare const buttonStyles: (props: PropsWithTheme) => {
25
25
  animationDuration: string;
26
26
  animationIterationCount: string;
27
27
  animationTimingFunction: string;
28
- } | undefined;
28
+ } | {
29
+ display: string;
30
+ content?: undefined;
31
+ color?: undefined;
32
+ alignItems?: undefined;
33
+ justifyContent?: undefined;
34
+ position?: undefined;
35
+ left?: undefined;
36
+ height?: undefined;
37
+ width?: undefined;
38
+ opacity?: undefined;
39
+ animationName?: undefined;
40
+ animationDuration?: undefined;
41
+ animationIterationCount?: undefined;
42
+ animationTimingFunction?: undefined;
43
+ };
29
44
  readonly opacity: 0.5 | "inherit";
30
45
  readonly mt: number;
31
46
  readonly mr: 0;
package/es/Button.js CHANGED
@@ -215,7 +215,9 @@ export var buttonStyles = props => {
215
215
  animationDuration: '1s',
216
216
  animationIterationCount: 'infinite',
217
217
  animationTimingFunction: 'linear'
218
- } : undefined,
218
+ } : {
219
+ display: 'none'
220
+ },
219
221
  opacity: disabled ? 0.5 : 'inherit',
220
222
  mt: spaced && direction === 'column' && group !== 'first' ? space : 0,
221
223
  mr: 0,
package/lib/Button.js CHANGED
@@ -228,7 +228,9 @@ var buttonStyles = function buttonStyles(props) {
228
228
  animationDuration: '1s',
229
229
  animationIterationCount: 'infinite',
230
230
  animationTimingFunction: 'linear'
231
- } : undefined,
231
+ } : {
232
+ display: 'none'
233
+ },
232
234
  opacity: disabled ? 0.5 : 'inherit',
233
235
  mt: spaced && direction === 'column' && group !== 'first' ? space : 0,
234
236
  mr: 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "5.4.3",
4
+ "version": "6.0.1",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -12,12 +12,14 @@
12
12
  "module": "es/index.js",
13
13
  "types": "./dist/index.d.ts"
14
14
  },
15
- "dependencies": {
16
- "@cloudflare/component-icon": "^9.0.0",
17
- "polished": "^4.1.4",
15
+ "devDependencies": {
18
16
  "prop-types": "^15.6.0"
19
17
  },
18
+ "dependencies": {
19
+ "polished": "^4.1.4"
20
+ },
20
21
  "peerDependencies": {
22
+ "@cloudflare/component-icon": "^10.0.0",
21
23
  "@cloudflare/style-const": "^5.6.0",
22
24
  "@cloudflare/style-container": "^7.10.0",
23
25
  "react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"