Socket
Socket
Sign inDemoInstall

@launchpad-ui/icons

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launchpad-ui/icons - npm Package Compare versions

Comparing version 0.14.6 to 0.14.7

54

dist/index.es.js

@@ -5,3 +5,5 @@ import './style.css';

import { createContext, useId, useContext, cloneElement } from "react";
const IconContext = /* @__PURE__ */ createContext({ path: void 0 });
const IconContext = /* @__PURE__ */ createContext({
path: void 0
});
const icon = "_icon_1owge_1";

@@ -67,8 +69,11 @@ const subtle = "_subtle_1owge_9";

const descriptionId = description && `${prefix}-${name}-description`;
const { path: contextPath } = useContext(IconContext);
const {
path: contextPath
} = useContext(IconContext);
const iconId = `lp-icon-${name}`;
const spritePath = contextPath === void 0 ? "/static/sprite.svg" : contextPath;
return /* @__PURE__ */ jsx("span", { "data-test-id": testId, className: classes, children: /* @__PURE__ */ jsxs(
"svg",
{
return /* @__PURE__ */ jsx("span", {
"data-test-id": testId,
className: classes,
children: /* @__PURE__ */ jsxs("svg", {
"aria-hidden": isAriaHidden,

@@ -81,9 +86,13 @@ "aria-label": ariaLabel,

...props,
children: [
title && /* @__PURE__ */ jsx("title", { id: titleId, children: title }),
description && /* @__PURE__ */ jsx("desc", { id: descriptionId, children: description }),
/* @__PURE__ */ jsx("use", { href: `${spritePath}#${iconId}` })
]
}
) });
children: [title && /* @__PURE__ */ jsx("title", {
id: titleId,
children: title
}), description && /* @__PURE__ */ jsx("desc", {
id: descriptionId,
children: description
}), /* @__PURE__ */ jsx("use", {
href: `${spritePath}#${iconId}`
})]
})
});
};

@@ -109,5 +118,14 @@ const FlairIcon = ({

const classes = cx(styles.flairIconContainer, styles[gradient], isRounded2 && styles.isRounded);
return /* @__PURE__ */ jsx("div", { className: classes, ...props, "data-test-id": testId, children: icon2 });
return /* @__PURE__ */ jsx("div", {
className: classes,
...props,
"data-test-id": testId,
children: icon2
});
};
const StatusIcon = ({ kind, size = "medium", ...rest }) => {
const StatusIcon = ({
kind,
size = "medium",
...rest
}) => {
let name;

@@ -137,3 +155,9 @@ let ariaLabel;

}
return /* @__PURE__ */ jsx(Icon, { "aria-label": `${ariaLabel} icon`, role: "img", size, ...rest, name });
return /* @__PURE__ */ jsx(Icon, {
"aria-label": `${ariaLabel} icon`,
role: "img",
size,
...rest,
name
});
};

@@ -140,0 +164,0 @@ export {

@@ -7,3 +7,5 @@ require('./style.css');

const react = require("react");
const IconContext = /* @__PURE__ */ react.createContext({ path: void 0 });
const IconContext = /* @__PURE__ */ react.createContext({
path: void 0
});
const icon = "_icon_1owge_1";

@@ -69,8 +71,11 @@ const subtle = "_subtle_1owge_9";

const descriptionId = description && `${prefix}-${name}-description`;
const { path: contextPath } = react.useContext(IconContext);
const {
path: contextPath
} = react.useContext(IconContext);
const iconId = `lp-icon-${name}`;
const spritePath = contextPath === void 0 ? "/static/sprite.svg" : contextPath;
return /* @__PURE__ */ jsxRuntime.jsx("span", { "data-test-id": testId, className: classes, children: /* @__PURE__ */ jsxRuntime.jsxs(
"svg",
{
return /* @__PURE__ */ jsxRuntime.jsx("span", {
"data-test-id": testId,
className: classes,
children: /* @__PURE__ */ jsxRuntime.jsxs("svg", {
"aria-hidden": isAriaHidden,

@@ -83,9 +88,13 @@ "aria-label": ariaLabel,

...props,
children: [
title && /* @__PURE__ */ jsxRuntime.jsx("title", { id: titleId, children: title }),
description && /* @__PURE__ */ jsxRuntime.jsx("desc", { id: descriptionId, children: description }),
/* @__PURE__ */ jsxRuntime.jsx("use", { href: `${spritePath}#${iconId}` })
]
}
) });
children: [title && /* @__PURE__ */ jsxRuntime.jsx("title", {
id: titleId,
children: title
}), description && /* @__PURE__ */ jsxRuntime.jsx("desc", {
id: descriptionId,
children: description
}), /* @__PURE__ */ jsxRuntime.jsx("use", {
href: `${spritePath}#${iconId}`
})]
})
});
};

@@ -111,5 +120,14 @@ const FlairIcon = ({

const classes = classix.cx(styles.flairIconContainer, styles[gradient], isRounded2 && styles.isRounded);
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, ...props, "data-test-id": testId, children: icon2 });
return /* @__PURE__ */ jsxRuntime.jsx("div", {
className: classes,
...props,
"data-test-id": testId,
children: icon2
});
};
const StatusIcon = ({ kind, size = "medium", ...rest }) => {
const StatusIcon = ({
kind,
size = "medium",
...rest
}) => {
let name;

@@ -139,3 +157,9 @@ let ariaLabel;

}
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-label": `${ariaLabel} icon`, role: "img", size, ...rest, name });
return /* @__PURE__ */ jsxRuntime.jsx(Icon, {
"aria-label": `${ariaLabel} icon`,
role: "img",
size,
...rest,
name
});
};

@@ -142,0 +166,0 @@ exports.FlairIcon = FlairIcon;

{
"name": "@launchpad-ui/icons",
"version": "0.14.6",
"version": "0.14.7",
"status": "beta",

@@ -31,3 +31,3 @@ "publishConfig": {

"classix": "2.1.17",
"@launchpad-ui/tokens": "~0.9.1"
"@launchpad-ui/tokens": "~0.9.2"
},

@@ -34,0 +34,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc