@launchpad-ui/icons
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -7,7 +7,8 @@ export { Add } from './Add'; | ||
export { Info } from './Info'; | ||
export { Person } from './Person'; | ||
export { Warning } from './Warning'; | ||
export type { IconProps } from './Icon'; | ||
export { Icon } from './Icon'; | ||
export { IconSize } from './types'; | ||
export { IconDimension, IconSize } from './types'; | ||
export { KindIcon } from './KindIcon'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -175,4 +175,27 @@ // ../../scripts/react-shim.js | ||
// src/Person.tsx | ||
import { forwardRef as forwardRef7 } from "react"; | ||
var SvgPerson = (props, ref) => /* @__PURE__ */ React.createElement("svg", { | ||
"aria-hidden": "true", | ||
role: "img", | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 24 24", | ||
ref, | ||
...props | ||
}, /* @__PURE__ */ React.createElement("path", { | ||
d: "M0 0h24v24H0z", | ||
fill: "none" | ||
}), /* @__PURE__ */ React.createElement("path", { | ||
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" | ||
})); | ||
var ForwardRef7 = forwardRef7(SvgPerson); | ||
var IconWrapped7 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
name: "person", | ||
className, | ||
size, | ||
...props | ||
}, /* @__PURE__ */ React.createElement(ForwardRef7, null)); | ||
// src/Warning.tsx | ||
import { forwardRef as forwardRef7 } from "react"; | ||
import { forwardRef as forwardRef8 } from "react"; | ||
var SvgWarning = (props, ref) => /* @__PURE__ */ React.createElement("svg", { | ||
@@ -189,4 +212,4 @@ role: "img", | ||
})); | ||
var ForwardRef7 = forwardRef7(SvgWarning); | ||
var IconWrapped7 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
var ForwardRef8 = forwardRef8(SvgWarning); | ||
var IconWrapped8 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
name: "warning", | ||
@@ -196,5 +219,12 @@ className, | ||
...props | ||
}, /* @__PURE__ */ React.createElement(ForwardRef7, null)); | ||
}, /* @__PURE__ */ React.createElement(ForwardRef8, null)); | ||
// src/types.ts | ||
var IconDimension = /* @__PURE__ */ ((IconDimension2) => { | ||
IconDimension2["TINY"] = "10"; | ||
IconDimension2["SMALL"] = "16"; | ||
IconDimension2["MEDIUM"] = "24"; | ||
IconDimension2["LARGE"] = "40"; | ||
return IconDimension2; | ||
})(IconDimension || {}); | ||
var IconSize = /* @__PURE__ */ ((IconSize2) => { | ||
@@ -224,3 +254,3 @@ IconSize2["MICRO"] = "micro"; | ||
case "striped": | ||
body = /* @__PURE__ */ React.createElement(IconWrapped7, { | ||
body = /* @__PURE__ */ React.createElement(IconWrapped8, { | ||
size: iconSize | ||
@@ -252,7 +282,9 @@ }); | ||
Icon, | ||
IconDimension, | ||
IconSize, | ||
IconWrapped6 as Info, | ||
KindIcon, | ||
IconWrapped7 as Warning | ||
IconWrapped7 as Person, | ||
IconWrapped8 as Warning | ||
}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __create = Object.create; | ||
@@ -31,6 +32,8 @@ var __defProp = Object.defineProperty; | ||
Icon: () => Icon, | ||
IconDimension: () => IconDimension, | ||
IconSize: () => IconSize, | ||
Info: () => IconWrapped6, | ||
KindIcon: () => KindIcon, | ||
Warning: () => IconWrapped7 | ||
Person: () => IconWrapped7, | ||
Warning: () => IconWrapped8 | ||
}); | ||
@@ -213,4 +216,27 @@ module.exports = __toCommonJS(src_exports); | ||
// src/Person.tsx | ||
var import_react8 = require("react"); | ||
var SvgPerson = (props, ref) => /* @__PURE__ */ React.createElement("svg", { | ||
"aria-hidden": "true", | ||
role: "img", | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 24 24", | ||
ref, | ||
...props | ||
}, /* @__PURE__ */ React.createElement("path", { | ||
d: "M0 0h24v24H0z", | ||
fill: "none" | ||
}), /* @__PURE__ */ React.createElement("path", { | ||
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" | ||
})); | ||
var ForwardRef7 = (0, import_react8.forwardRef)(SvgPerson); | ||
var IconWrapped7 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
name: "person", | ||
className, | ||
size, | ||
...props | ||
}, /* @__PURE__ */ React.createElement(ForwardRef7, null)); | ||
// src/Warning.tsx | ||
var import_react8 = require("react"); | ||
var import_react9 = require("react"); | ||
var SvgWarning = (props, ref) => /* @__PURE__ */ React.createElement("svg", { | ||
@@ -227,4 +253,4 @@ role: "img", | ||
})); | ||
var ForwardRef7 = (0, import_react8.forwardRef)(SvgWarning); | ||
var IconWrapped7 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
var ForwardRef8 = (0, import_react9.forwardRef)(SvgWarning); | ||
var IconWrapped8 = ({ className, size, ...props }) => /* @__PURE__ */ React.createElement(Icon, { | ||
name: "warning", | ||
@@ -234,5 +260,12 @@ className, | ||
...props | ||
}, /* @__PURE__ */ React.createElement(ForwardRef7, null)); | ||
}, /* @__PURE__ */ React.createElement(ForwardRef8, null)); | ||
// src/types.ts | ||
var IconDimension = /* @__PURE__ */ ((IconDimension2) => { | ||
IconDimension2["TINY"] = "10"; | ||
IconDimension2["SMALL"] = "16"; | ||
IconDimension2["MEDIUM"] = "24"; | ||
IconDimension2["LARGE"] = "40"; | ||
return IconDimension2; | ||
})(IconDimension || {}); | ||
var IconSize = /* @__PURE__ */ ((IconSize2) => { | ||
@@ -262,3 +295,3 @@ IconSize2["MICRO"] = "micro"; | ||
case "striped": | ||
body = /* @__PURE__ */ React.createElement(IconWrapped7, { | ||
body = /* @__PURE__ */ React.createElement(IconWrapped8, { | ||
size: iconSize | ||
@@ -291,7 +324,9 @@ }); | ||
Icon, | ||
IconDimension, | ||
IconSize, | ||
Info, | ||
KindIcon, | ||
Person, | ||
Warning | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,8 @@ | ||
export declare enum IconSize { | ||
declare enum IconDimension { | ||
TINY = "10", | ||
SMALL = "16", | ||
MEDIUM = "24", | ||
LARGE = "40" | ||
} | ||
declare enum IconSize { | ||
MICRO = "micro", | ||
@@ -11,2 +17,3 @@ TINY = "tiny", | ||
} | ||
export { IconDimension, IconSize }; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@launchpad-ui/icons", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"status": "beta", | ||
"publishConfig": { | ||
@@ -30,3 +31,3 @@ "access": "public" | ||
"@launchpad-ui/tokens": "~0.1.5", | ||
"clsx": "^1.1.1", | ||
"clsx": "^1.2.0", | ||
"uuid": "^8.3.2" | ||
@@ -48,3 +49,3 @@ }, | ||
"clean": "rm -rf dist", | ||
"e2e": "exit 0", | ||
"e2e": "playwright test --config=../../playwright.config.ct.ts", | ||
"lint": "eslint '**/*.{ts,tsx,js}' && stylelint '**/*.css' --ignore-path ../../.stylelintignore", | ||
@@ -51,0 +52,0 @@ "test": "pnpm build:icons && vitest run --coverage" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
63334
32
675
Updatedclsx@^1.2.0