@imtf/icons 1.2.0 → 1.3.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.
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from "react";
2
+ import type { IconProps } from "../types";
3
+ declare const ForwardRef: import("react").ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & IconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
4
+ export { ForwardRef as LineAxisIcon };
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const react = require("react");
5
+ const get = require("../utils/get.js");
6
+ const Context = require("../providers/IconProvider/Context.js");
7
+ const LineAxisIcon = ({
8
+ color: defaultColor,
9
+ size,
10
+ ...props
11
+ }, ref) => {
12
+ const defaultContextValues = react.useContext(Context.IconContext);
13
+ const defaultValues = {
14
+ ...defaultContextValues,
15
+ color: defaultColor ?? defaultContextValues.color,
16
+ fontSize: size ?? defaultContextValues.size ?? "var(--panache-icon-size)",
17
+ ...props
18
+ };
19
+ const color = react.useMemo(() => get.default(defaultValues.palette, defaultValues.color) ?? defaultValues.color, [defaultValues.color, defaultValues.palette]);
20
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "LineAxisIcon", ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m22 7.43-1.41-1.41-4.03 4.53L9.5 4 2 11.51l1.5 1.5 6.14-6.15 5.59 5.18-1.73 1.95-4-4L2 17.5 3.5 19l6-6.01 4 4 3.19-3.59 3.9 3.61L22 15.6l-3.98-3.7z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(LineAxisIcon);
23
+ exports.LineAxisIcon = ForwardRef;
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { forwardRef, useContext, useMemo } from "react";
4
+ import get from "../utils/get.mjs";
5
+ import { IconContext } from "../providers/IconProvider/Context.mjs";
6
+ const LineAxisIcon = ({
7
+ color: defaultColor,
8
+ size,
9
+ ...props
10
+ }, ref) => {
11
+ const defaultContextValues = useContext(IconContext);
12
+ const defaultValues = {
13
+ ...defaultContextValues,
14
+ color: defaultColor ?? defaultContextValues.color,
15
+ fontSize: size ?? defaultContextValues.size ?? "var(--panache-icon-size)",
16
+ ...props
17
+ };
18
+ const color = useMemo(() => get(defaultValues.palette, defaultValues.color) ?? defaultValues.color, [defaultValues.color, defaultValues.palette]);
19
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "LineAxisIcon", ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m22 7.43-1.41-1.41-4.03 4.53L9.5 4 2 11.51l1.5 1.5 6.14-6.15 5.59 5.18-1.73 1.95-4-4L2 17.5 3.5 19l6-6.01 4 4 3.19-3.59 3.9 3.61L22 15.6l-3.98-3.7z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(LineAxisIcon);
22
+ export {
23
+ ForwardRef as LineAxisIcon
24
+ };
@@ -109,6 +109,7 @@ export { FolderIcon } from "./FolderIcon";
109
109
  export { HistoryIcon } from "./HistoryIcon";
110
110
  export { InfoIcon } from "./InfoIcon";
111
111
  export { InheritableIcon } from "./InheritableIcon";
112
+ export { LineAxisIcon } from "./LineAxisIcon";
112
113
  export { MenuBurgerIcon } from "./MenuBurgerIcon";
113
114
  export { MenuIcon } from "./MenuIcon";
114
115
  export { ModuleAdminIcon } from "./ModuleAdminIcon";
package/lib/index.js CHANGED
@@ -113,6 +113,7 @@ const IconProvider = require("./providers/IconProvider/IconProvider.js");
113
113
  const IconSVG = require("./components/IconSVG.js");
114
114
  const InfoIcon = require("./icons/InfoIcon.js");
115
115
  const InheritableIcon = require("./icons/InheritableIcon.js");
116
+ const LineAxisIcon = require("./icons/LineAxisIcon.js");
116
117
  const MenuBurgerIcon = require("./icons/MenuBurgerIcon.js");
117
118
  const MenuIcon = require("./icons/MenuIcon.js");
118
119
  const ModuleAdminIcon = require("./icons/ModuleAdminIcon.js");
@@ -307,6 +308,7 @@ exports.IconProvider = IconProvider.IconProvider;
307
308
  exports.IconSVG = IconSVG.IconSVG;
308
309
  exports.InfoIcon = InfoIcon.InfoIcon;
309
310
  exports.InheritableIcon = InheritableIcon.InheritableIcon;
311
+ exports.LineAxisIcon = LineAxisIcon.LineAxisIcon;
310
312
  exports.MenuBurgerIcon = MenuBurgerIcon.MenuBurgerIcon;
311
313
  exports.MenuIcon = MenuIcon.MenuIcon;
312
314
  exports.ModuleAdminIcon = ModuleAdminIcon.ModuleAdminIcon;
package/lib/index.mjs CHANGED
@@ -112,6 +112,7 @@ import { IconProvider } from "./providers/IconProvider/IconProvider.mjs";
112
112
  import { IconSVG } from "./components/IconSVG.mjs";
113
113
  import { InfoIcon } from "./icons/InfoIcon.mjs";
114
114
  import { InheritableIcon } from "./icons/InheritableIcon.mjs";
115
+ import { LineAxisIcon } from "./icons/LineAxisIcon.mjs";
115
116
  import { MenuBurgerIcon } from "./icons/MenuBurgerIcon.mjs";
116
117
  import { MenuIcon } from "./icons/MenuIcon.mjs";
117
118
  import { ModuleAdminIcon } from "./icons/ModuleAdminIcon.mjs";
@@ -306,6 +307,7 @@ export {
306
307
  IconSVG,
307
308
  InfoIcon,
308
309
  InheritableIcon,
310
+ LineAxisIcon,
309
311
  MenuBurgerIcon,
310
312
  MenuIcon,
311
313
  ModuleAdminIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "description": "IMTF library of icons as React components and SVGs.",
6
6
  "type": "module",
7
7
  "main": "./lib/index.js",
@@ -0,0 +1,7 @@
1
+ {
2
+ "aliases": [
3
+ "chart",
4
+ "analysis"
5
+ ],
6
+ "description": "Can be used to indicate displaying line-charts"
7
+ }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24">
2
+ <path d="m22 7.43-1.41-1.41-4.03 4.53L9.5 4 2 11.51l1.5 1.5 6.14-6.15 5.59 5.18-1.73 1.95-4-4L2 17.5 3.5 19l6-6.01 4 4 3.19-3.59 3.9 3.61L22 15.6l-3.98-3.7z"/>
3
+ </svg>