@cloudflare/component-button 6.0.2 → 7.0.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 +7 -0
- package/dist/Button.d.ts +3 -3
- package/es/IconTextButton.js +2 -2
- package/lib/IconTextButton.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/Button.d.ts
CHANGED
|
@@ -141,15 +141,15 @@ declare const _default: React.ComponentType<{
|
|
|
141
141
|
loading?: boolean | undefined;
|
|
142
142
|
stretch?: boolean | undefined;
|
|
143
143
|
submit?: boolean | undefined;
|
|
144
|
+
ariaLabel?: string | undefined;
|
|
145
|
+
testId?: string | undefined;
|
|
144
146
|
inverted?: boolean | undefined;
|
|
145
147
|
spaced?: boolean | undefined;
|
|
146
148
|
group?: "first" | "last" | "inbetween" | undefined;
|
|
147
|
-
|
|
148
|
-
iconType?: IconType | undefined;
|
|
149
|
+
iconType?: "search" | "link" | "right" | "script" | "time" | "filter" | "image" | "download" | "list" | "version" | "key" | "left" | "revert" | "copy" | "help" | "add" | "dlp" | "account-analytics-logo" | "add-member" | "api-security" | "applications" | "backward" | "bolt" | "byoip" | "calendar" | "carbon" | "caret-double-left" | "caret-double-right" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "chart" | "clipboard" | "cloudflare-access" | "cloudflare-magic-wan" | "cloudflare-security-application" | "cloudflare-security-network" | "cloudflare-zero-trust" | "credit-card" | "discord" | "documentation" | "drive" | "edgeworker" | "edit" | "email-forwarding" | "exclamation-sign" | "external-link" | "eye" | "facebook" | "file" | "firewall-rules" | "flowchart" | "folder" | "forward" | "gateway" | "gear" | "git-branch" | "github" | "globe" | "hamburger" | "info-sign" | "internet-browser" | "leaf" | "linkedin" | "lock" | "logs" | "magic-firewall" | "magic-transit-logo" | "mail" | "minus" | "more" | "network-analytics-logo" | "network" | "notifications" | "ok-sign" | "ok" | "optimization-scale" | "pages-logo" | "pause" | "platform-apps" | "plus" | "printer" | "product-security-center" | "pub-sub" | "queues" | "r2" | "refresh" | "registrar-logo" | "reliability-dns" | "reliability-load-balancer" | "remove" | "reorder" | "resize-horizontal" | "retarget" | "shield" | "spectrum" | "speech" | "stream" | "teams" | "terraform" | "twitter" | "two-way" | "unlock-outline" | "upload" | "user-multi" | "user-outline" | "user" | "waiting-room" | "web-analytics-logo" | "web3" | "workers-bundled" | "workers-durable-objects" | "workers-for-platforms" | "workers-kv" | "workers-unbound" | "wrangler" | "wrench" | "youtube" | "zaraz" | "zerotrust-casb-logo" | undefined;
|
|
149
150
|
iconLabel?: string | undefined;
|
|
150
151
|
iconSize?: number | undefined;
|
|
151
152
|
iconPosition?: "right" | "left" | undefined;
|
|
152
|
-
ariaLabel?: string | undefined;
|
|
153
153
|
noWrapText?: boolean | undefined;
|
|
154
154
|
buttonState?: "focus" | "active" | "hover" | undefined;
|
|
155
155
|
color?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/es/IconTextButton.js
CHANGED
|
@@ -20,11 +20,11 @@ var IconTextButton = _ref => {
|
|
|
20
20
|
}, /*#__PURE__*/React.createElement(IconTextWrapper, null, iconPosition === 'left' && /*#__PURE__*/React.createElement(Icon, {
|
|
21
21
|
type: iconType,
|
|
22
22
|
mr: 1,
|
|
23
|
-
|
|
23
|
+
ariaLabel: iconType
|
|
24
24
|
}), children, iconPosition === 'right' && /*#__PURE__*/React.createElement(Icon, {
|
|
25
25
|
type: iconType,
|
|
26
26
|
ml: 1,
|
|
27
|
-
|
|
27
|
+
ariaLabel: iconType
|
|
28
28
|
})));
|
|
29
29
|
};
|
|
30
30
|
|
package/lib/IconTextButton.js
CHANGED
|
@@ -34,11 +34,11 @@ var IconTextButton = function IconTextButton(_ref) {
|
|
|
34
34
|
}, /*#__PURE__*/_react.default.createElement(IconTextWrapper, null, iconPosition === 'left' && /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
35
35
|
type: iconType,
|
|
36
36
|
mr: 1,
|
|
37
|
-
|
|
37
|
+
ariaLabel: iconType
|
|
38
38
|
}), children, iconPosition === 'right' && /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
39
39
|
type: iconType,
|
|
40
40
|
ml: 1,
|
|
41
|
-
|
|
41
|
+
ariaLabel: iconType
|
|
42
42
|
})));
|
|
43
43
|
};
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/component-button",
|
|
3
3
|
"description": "Cloudflare Button Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "James Kyle <jkyle@cloudflare.com>",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"polished": "^4.1.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@cloudflare/component-icon": "^
|
|
22
|
+
"@cloudflare/component-icon": "^11.0.0",
|
|
23
23
|
"@cloudflare/style-const": "^5.6.0",
|
|
24
24
|
"@cloudflare/style-container": "^7.10.0",
|
|
25
25
|
"react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
|