@cloudflare/component-button 7.0.19 → 7.0.20
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 +2 -0
- package/dist/Button.d.ts +5 -5
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/TextButton.d.ts +6 -6
- package/dist/UnstyledButton.d.ts +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/Button.d.ts
CHANGED
|
@@ -126,16 +126,16 @@ declare type Props = React.PropsWithChildren<{
|
|
|
126
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
|
+
form?: string | undefined;
|
|
130
|
+
children?: React.ReactNode;
|
|
129
131
|
name?: string | undefined;
|
|
130
132
|
space?: number | undefined;
|
|
131
133
|
disabled?: boolean | undefined;
|
|
132
134
|
compact?: boolean | undefined;
|
|
133
|
-
form?: string | undefined;
|
|
134
|
-
children?: React.ReactNode;
|
|
135
135
|
className?: string | undefined;
|
|
136
136
|
id?: string | undefined;
|
|
137
137
|
tabIndex?: number | undefined;
|
|
138
|
-
type?: "default" | "
|
|
138
|
+
type?: "default" | "success" | "warning" | "primary" | "danger" | "plain" | "plainMono" | "plainDestructive" | undefined;
|
|
139
139
|
direction?: "column" | "row" | undefined;
|
|
140
140
|
key?: React.Key | null | undefined;
|
|
141
141
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -147,15 +147,15 @@ declare const _default: React.ComponentType<{
|
|
|
147
147
|
inverted?: boolean | undefined;
|
|
148
148
|
spaced?: boolean | undefined;
|
|
149
149
|
group?: "first" | "last" | "inbetween" | undefined;
|
|
150
|
-
iconType?: "search" | "link" | "
|
|
150
|
+
iconType?: "search" | "link" | "script" | "time" | "filter" | "image" | "right" | "none" | "download" | "list" | "version" | "key" | "left" | "revert" | "copy" | "help" | "add" | "subtract" | "pause" | "dlp" | "account-analytics-logo" | "add-member" | "api-security" | "api" | "applications" | "backward" | "bolt" | "byoip" | "calendar" | "carbon" | "caret-double-left" | "caret-double-right" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "case-study" | "chart" | "clipboard" | "cloudflare-access" | "cloudflare-dex" | "cloudflare-magic-wan" | "cloudflare-security-application" | "cloudflare-security-network" | "cloudflare-zero-trust" | "credit-card" | "d1" | "discord" | "discover" | "documentation" | "ddos-attack" | "drive" | "edgeworker" | "edit" | "email-forwarding" | "exclamation-sign" | "external-link" | "eye" | "facebook" | "file" | "firewall-rules" | "flowchart" | "folder" | "forward" | "funnel" | "gateway" | "gear" | "git-branch" | "github" | "globe" | "hamburger" | "home" | "info-sign" | "internet-browser" | "leaf" | "linkedin" | "lock" | "logs" | "magic-firewall" | "magic-transit-logo" | "mail" | "minus" | "more" | "network-analytics-logo" | "network-security" | "network" | "notifications" | "office-branch" | "ok-sign" | "ok" | "optimization-scale" | "pages-logo" | "platform-apps" | "plus" | "printer" | "product-security-center" | "pub-sub" | "pull-request" | "queues" | "r2" | "refresh" | "registrar-logo" | "reliability-dns" | "reliability-load-balancer" | "remove" | "reorder" | "resize-horizontal" | "retarget" | "security-waf" | "security-bots" | "shield" | "spectrum" | "speech" | "star-outline" | "star" | "stream" | "tail-worker" | "teams" | "terraform" | "traffic-attack-browser" | "trace" | "turnstile" | "twitter" | "two-way" | "unlock-outline" | "upload" | "user-multi" | "user-outline" | "user" | "waiting-room" | "web-analytics-logo" | "web3" | "workers-bundled" | "workers-constellation" | "workers-durable-objects" | "workers-for-platforms" | "workers-kv" | "workers-pages" | "workers-unbound" | "wrangler" | "wrench" | "youtube" | "zaraz" | "zerotrust-casb-logo" | "zerotrust-networks-logo" | undefined;
|
|
151
151
|
iconLabel?: string | undefined;
|
|
152
152
|
iconSize?: number | undefined;
|
|
153
153
|
iconPosition?: "right" | "left" | undefined;
|
|
154
154
|
noWrapText?: boolean | undefined;
|
|
155
155
|
buttonState?: "focus" | "active" | "hover" | undefined;
|
|
156
|
+
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;
|
|
156
157
|
color?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
157
158
|
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
158
|
-
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;
|
|
159
159
|
height?: import("csstype").HeightProperty<string | number> | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | undefined;
|
|
160
160
|
width?: import("csstype").WidthProperty<string | number> | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | undefined;
|
|
161
161
|
cursor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/dist/ButtonGroup.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ declare const _default: React.ComponentType<{
|
|
|
6
6
|
direction?: "column" | "row" | undefined;
|
|
7
7
|
stretch?: boolean | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
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;
|
|
9
10
|
color?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
10
11
|
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
11
|
-
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;
|
|
12
12
|
height?: import("csstype").HeightProperty<string | number> | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | undefined;
|
|
13
13
|
width?: import("csstype").WidthProperty<string | number> | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | undefined;
|
|
14
14
|
cursor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/dist/TextButton.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const TextButton: import("react").ComponentType<{
|
|
3
|
-
is?: string | undefined;
|
|
4
|
-
name?: string | undefined;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
|
|
7
3
|
form?: string | undefined;
|
|
8
4
|
slot?: string | undefined;
|
|
9
5
|
style?: import("react").CSSProperties | undefined;
|
|
10
6
|
title?: string | undefined;
|
|
11
7
|
children?: import("react").ReactNode;
|
|
12
8
|
value?: string | number | readonly string[] | undefined;
|
|
9
|
+
is?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
|
|
13
13
|
defaultChecked?: boolean | undefined;
|
|
14
14
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
15
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -68,7 +68,7 @@ declare const TextButton: import("react").ComponentType<{
|
|
|
68
68
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
69
69
|
'aria-flowto'?: string | undefined;
|
|
70
70
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
71
|
-
'aria-haspopup'?: boolean | "
|
|
71
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
72
72
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
73
73
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
74
74
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -268,8 +268,8 @@ declare const TextButton: import("react").ComponentType<{
|
|
|
268
268
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
269
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
270
270
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
271
|
-
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
272
271
|
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;
|
|
272
|
+
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
273
273
|
height?: import("csstype").HeightProperty<string | number> | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | undefined;
|
|
274
274
|
width?: import("csstype").WidthProperty<string | number> | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | undefined;
|
|
275
275
|
cursor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/dist/UnstyledButton.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const UnstyledButton: import("react").ComponentType<{
|
|
3
|
-
is?: string | undefined;
|
|
4
|
-
name?: string | undefined;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
|
|
7
3
|
form?: string | undefined;
|
|
8
4
|
slot?: string | undefined;
|
|
9
5
|
style?: import("react").CSSProperties | undefined;
|
|
10
6
|
title?: string | undefined;
|
|
11
7
|
children?: import("react").ReactNode;
|
|
12
8
|
value?: string | number | readonly string[] | undefined;
|
|
9
|
+
is?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
color?: (string & (string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined])) | undefined;
|
|
13
13
|
defaultChecked?: boolean | undefined;
|
|
14
14
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
15
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -68,7 +68,7 @@ declare const UnstyledButton: import("react").ComponentType<{
|
|
|
68
68
|
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
69
69
|
'aria-flowto'?: string | undefined;
|
|
70
70
|
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
71
|
-
'aria-haspopup'?: boolean | "
|
|
71
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
72
72
|
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
73
73
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
74
74
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -268,8 +268,8 @@ declare const UnstyledButton: import("react").ComponentType<{
|
|
|
268
268
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
269
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
270
270
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
271
|
-
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
272
271
|
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;
|
|
272
|
+
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
|
273
273
|
height?: import("csstype").HeightProperty<string | number> | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | [import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined, import("csstype").HeightProperty<string | number> | undefined] | undefined;
|
|
274
274
|
width?: import("csstype").WidthProperty<string | number> | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | [import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined, import("csstype").WidthProperty<string | number> | undefined] | undefined;
|
|
275
275
|
cursor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/package.json
CHANGED