@cloudflare/component-button 9.1.15 → 9.2.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 +12 -0
- package/dist/Button.d.ts +1 -1
- package/dist/Button.stories.d.ts +1 -1
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/IconTextButton.d.ts +9 -1
- package/dist/TextButton.d.ts +1 -1
- package/dist/UnstyledButton.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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;
|
package/dist/Button.stories.d.ts
CHANGED
|
@@ -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;
|
package/dist/ButtonGroup.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const _default: React.ComponentType<{
|
|
|
5
5
|
space?: number | undefined;
|
|
6
6
|
direction?: "column" | "row" | undefined;
|
|
7
7
|
stretch?: boolean | undefined;
|
|
8
|
-
children
|
|
8
|
+
children: React.ReactNode;
|
|
9
9
|
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
10
|
color?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
11
11
|
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/dist/IconTextButton.d.ts
CHANGED
|
@@ -5,5 +5,13 @@ declare type IconTextButtonProps = PropsWithChildren<{
|
|
|
5
5
|
iconType: IconType;
|
|
6
6
|
iconPosition?: 'left' | 'right';
|
|
7
7
|
}>;
|
|
8
|
-
declare const IconTextButton:
|
|
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;
|
package/dist/TextButton.d.ts
CHANGED
|
@@ -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;
|
package/dist/UnstyledButton.d.ts
CHANGED
|
@@ -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.1
|
|
4
|
+
"version": "9.2.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "James Kyle <jkyle@cloudflare.com>",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prop-types": "^15.6.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@cloudflare/component-icon": "^13.
|
|
20
|
+
"@cloudflare/component-icon": "^13.9.0",
|
|
21
21
|
"@cloudflare/style-const": "^6.0.0",
|
|
22
22
|
"@cloudflare/style-container": "^8.0.0",
|
|
23
23
|
"react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
|