@cloudflare/component-icon 11.2.0 → 11.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 +6 -0
- package/dist/Icon.d.ts +1 -0
- package/es/Icon.js +5 -1
- package/lib/Icon.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/Icon.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare const _default: React.ComponentType<{
|
|
|
5
5
|
type: "search" | "link" | "right" | "script" | "time" | "filter" | "image" | "download" | "list" | "version" | "key" | "left" | "revert" | "copy" | "help" | "add" | "subtract" | "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-dex" | "cloudflare-magic-wan" | "cloudflare-security-application" | "cloudflare-security-network" | "cloudflare-zero-trust" | "credit-card" | "discord" | "discover" | "documentation" | "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" | "info-sign" | "internet-browser" | "leaf" | "linkedin" | "lock" | "logs" | "magic-firewall" | "magic-transit-logo" | "mail" | "minus" | "more" | "network-analytics-logo" | "network" | "network-security" | "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" | "turnstile" | "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";
|
|
6
6
|
className?: string | undefined;
|
|
7
7
|
ariaLabel?: string | undefined;
|
|
8
|
+
label?: string | boolean | undefined;
|
|
8
9
|
testId?: string | undefined;
|
|
9
10
|
color?: ((string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined]) & string) | undefined;
|
|
10
11
|
borderColor?: string | [string | undefined, string | undefined] | [string | undefined, string | undefined, string | undefined] | undefined;
|
package/es/Icon.js
CHANGED
|
@@ -20,7 +20,11 @@ var Icon = _ref2 => {
|
|
|
20
20
|
type,
|
|
21
21
|
className,
|
|
22
22
|
ariaLabel,
|
|
23
|
-
testId
|
|
23
|
+
testId,
|
|
24
|
+
// Keep label prop to unblock using new icons on stratus. Was getting type error by passing label prop.
|
|
25
|
+
// Currently have 500+ Icon using label prop in stratus. Need to remove the label prop in the dash
|
|
26
|
+
// instead of migrate it to ariaLabel. Once we remove label props in dash, we can remove the prop here.
|
|
27
|
+
label
|
|
24
28
|
} = _ref2;
|
|
25
29
|
var Svg = IconComponents[type];
|
|
26
30
|
return /*#__PURE__*/React.createElement(Svg, {
|
package/lib/Icon.js
CHANGED
|
@@ -30,7 +30,8 @@ var Icon = function Icon(_ref2) {
|
|
|
30
30
|
var type = _ref2.type,
|
|
31
31
|
className = _ref2.className,
|
|
32
32
|
ariaLabel = _ref2.ariaLabel,
|
|
33
|
-
testId = _ref2.testId
|
|
33
|
+
testId = _ref2.testId,
|
|
34
|
+
label = _ref2.label;
|
|
34
35
|
var Svg = _reactsvgs.default[type];
|
|
35
36
|
return /*#__PURE__*/_react.default.createElement(Svg, {
|
|
36
37
|
className: className,
|
package/package.json
CHANGED