@cloudflare/component-button 9.2.0 → 9.2.2

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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 600bf6a8fb: Fix incorrect types
8
+
9
+ ## 9.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 218a1cec6b: Explicitly add children to component props
14
+
3
15
  ## 9.2.0
4
16
 
5
17
  ### Minor Changes
package/dist/Button.d.ts CHANGED
@@ -129,8 +129,8 @@ declare type Props = React.PropsWithChildren<{
129
129
  }> & Pick<JSX.IntrinsicElements['button'], 'onClick' | 'disabled' | 'form' | 'tabIndex' | 'className'>;
130
130
  declare type PropsWithTheme = Props & ThemeProp;
131
131
  declare const _default: React.ComponentType<{
132
- form?: string | undefined;
133
132
  children?: React.ReactNode;
133
+ form?: string | undefined;
134
134
  id?: string | undefined;
135
135
  name?: string | undefined;
136
136
  space?: number | undefined;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<React.ComponentType<{
4
- form?: string | undefined;
5
4
  children?: React.ReactNode;
5
+ form?: string | undefined;
6
6
  id?: string | undefined;
7
7
  name?: string | undefined;
8
8
  space?: number | undefined;
@@ -5,7 +5,6 @@ declare const _default: React.ComponentType<{
5
5
  space?: number | undefined;
6
6
  direction?: "column" | "row" | undefined;
7
7
  stretch?: boolean | undefined;
8
- children?: React.ReactNode;
9
8
  p?: import("csstype").PaddingProperty<string | number> | [import("csstype").PaddingProperty<string | number> | undefined, import("csstype").PaddingProperty<string | number> | undefined] | [import("csstype").PaddingProperty<string | number> | undefined, import("csstype").PaddingProperty<string | number> | undefined, import("csstype").PaddingProperty<string | number> | undefined] | undefined;
10
9
  color?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
11
10
  borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
@@ -5,5 +5,13 @@ declare type IconTextButtonProps = PropsWithChildren<{
5
5
  iconType: IconType;
6
6
  iconPosition?: 'left' | 'right';
7
7
  }>;
8
- declare const IconTextButton: React.FC<IconTextButtonProps>;
8
+ declare const IconTextButton: ({ onClick, iconType, iconPosition, children }: {
9
+ onClick: (e: React.MouseEvent<any>) => void;
10
+ iconType: IconType;
11
+ iconPosition?: "right" | "left" | undefined;
12
+ } & {
13
+ children?: React.ReactNode;
14
+ } & {
15
+ children?: React.ReactNode;
16
+ }) => JSX.Element;
9
17
  export default IconTextButton;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  declare const TextButton: import("react").ComponentType<{
3
+ children?: import("react").ReactNode;
3
4
  form?: string | undefined;
4
5
  slot?: string | undefined;
5
6
  style?: import("react").CSSProperties | undefined;
6
7
  title?: string | undefined;
7
- children?: import("react").ReactNode;
8
8
  value?: string | number | readonly string[] | undefined;
9
9
  color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
10
10
  typeof?: string | undefined;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  declare const UnstyledButton: import("react").ComponentType<{
3
+ children?: import("react").ReactNode;
3
4
  form?: string | undefined;
4
5
  slot?: string | undefined;
5
6
  style?: import("react").CSSProperties | undefined;
6
7
  title?: string | undefined;
7
- children?: import("react").ReactNode;
8
8
  value?: string | number | readonly string[] | undefined;
9
9
  color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
10
10
  typeof?: 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": "9.2.0",
4
+ "version": "9.2.2",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",