@cloudflare/component-button 8.4.0 → 8.5.0

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1f68b52c85: Update prop types to allow children
8
+
3
9
  ## 8.4.0
4
10
 
5
11
  ### Minor Changes
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
1
  import { IconType } from '@cloudflare/component-icon';
3
- declare type IconTextButtonProps = {
2
+ import React, { PropsWithChildren } from 'react';
3
+ declare type IconTextButtonProps = PropsWithChildren<{
4
4
  onClick: (e: React.MouseEvent<any>) => void;
5
5
  iconType: IconType;
6
6
  iconPosition?: 'left' | 'right';
7
- };
7
+ }>;
8
8
  declare const IconTextButton: React.FC<IconTextButtonProps>;
9
9
  export default IconTextButton;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { createStyledComponent } from '@cloudflare/style-container';
3
1
  import { Icon } from '@cloudflare/component-icon';
2
+ import { createStyledComponent } from '@cloudflare/style-container';
3
+ import React from 'react';
4
4
  import TextButton from './TextButton';
5
5
  var IconTextWrapper = createStyledComponent(() => ({
6
6
  display: 'flex',
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _react = _interopRequireDefault(require("react"));
8
+ var _componentIcon = require("@cloudflare/component-icon");
9
9
 
10
10
  var _styleContainer = require("@cloudflare/style-container");
11
11
 
12
- var _componentIcon = require("@cloudflare/component-icon");
12
+ var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _TextButton = _interopRequireDefault(require("./TextButton"));
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "8.4.0",
4
+ "version": "8.5.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",