@cloudflare/component-button 7.0.10 → 7.0.12

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.0.12
4
+
5
+ ## 7.0.11
6
+
7
+ ### Patch Changes
8
+
9
+ - 61a5dfdb30: Update type definitions to allow children
10
+
3
11
  ## 7.0.10
4
12
 
5
13
  ## 7.0.9
package/dist/Button.d.ts CHANGED
@@ -102,7 +102,7 @@ export declare const buttonStyles: (props: PropsWithTheme) => {
102
102
  boxShadow: string | undefined;
103
103
  } | undefined;
104
104
  };
105
- declare type Props = {
105
+ declare type Props = React.PropsWithChildren<{
106
106
  id?: string;
107
107
  name?: string;
108
108
  submit?: boolean;
@@ -123,7 +123,7 @@ declare type Props = {
123
123
  noWrapText?: boolean;
124
124
  buttonState?: 'hover' | 'active' | 'focus';
125
125
  compact?: boolean;
126
- } & Pick<JSX.IntrinsicElements['button'], 'onClick' | 'disabled' | 'form' | 'tabIndex' | 'className'>;
126
+ }> & Pick<JSX.IntrinsicElements['button'], 'onClick' | 'disabled' | 'form' | 'tabIndex' | 'className'>;
127
127
  declare type PropsWithTheme = Props & ThemeProp;
128
128
  declare const _default: React.ComponentType<{
129
129
  name?: string | undefined;
@@ -131,6 +131,7 @@ declare const _default: React.ComponentType<{
131
131
  disabled?: boolean | undefined;
132
132
  compact?: boolean | undefined;
133
133
  form?: string | undefined;
134
+ children?: React.ReactNode;
134
135
  className?: string | undefined;
135
136
  id?: string | undefined;
136
137
  tabIndex?: number | 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": "7.0.10",
4
+ "version": "7.0.12",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",