@imtf/icons 0.7.2 → 0.8.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/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Icons
2
+
3
+ ## How to add an icon ?
4
+
5
+ 1. Add the `svg` file of your icon inside [/packages/icons/src/svg](/packages/icons/src/svg) using a camelCase naming.
6
+ 2. Create a `json` file with the same name as your `svg` file (without the .svg extension of course). And use this template:
7
+
8
+ ```json
9
+ {
10
+ "aliases": [], // Array of strings to add key search words in addition to the icon name
11
+ "description": "" // Add a good description that defines what your icon can be used for
12
+ }
13
+ ```
14
+
15
+ 3. Increase [/packages/icons/package.json](/packages/icons/package.json) minor version (e.g 1.0.0 to 1.1.0)
16
+ 4. Run `npm install` at root level
17
+ 5. Run `npm run prepublishOnly` inside [/packages/icons](/packages/icons) to be sure that the new icon can be packaged
@@ -6,7 +6,7 @@ type IconSVGProps = {
6
6
  */
7
7
  size?: string | number;
8
8
  src?: string;
9
- children?: ReactElement;
9
+ children?: ReactElement<HTMLDivElement | SVGSVGElement>;
10
10
  };
11
11
  export declare const IconSVG: import("react").ForwardRefExoticComponent<IconSVGProps & import("react").RefAttributes<HTMLDivElement | SVGSVGElement>>;
12
12
  export {};
@@ -4,55 +4,57 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const react = require("react");
5
5
  const Context = require("../providers/IconProvider/Context.js");
6
6
  const get = require("../utils/get.js");
7
- const IconComponent = ({ color: defaultColor, size, src, children, ...props }, outerRef) => {
8
- const innerRef = react.useRef(null);
9
- react.useImperativeHandle(outerRef, () => innerRef.current, []);
10
- const defaultContextValues = react.useContext(Context.IconContext);
11
- const defaultValues = {
12
- ...defaultContextValues,
13
- color: defaultColor ?? defaultContextValues.color,
14
- fontSize: size ?? defaultContextValues.size
15
- };
16
- const color = react.useMemo(() => {
17
- const color2 = get.default(defaultValues.palette, defaultValues.color);
18
- return typeof color2 === "string" ? color2 : defaultValues.color;
19
- }, [defaultValues.color, defaultValues.palette]);
20
- react.useEffect(() => {
21
- if (innerRef.current && src && !children) {
22
- const { current: wrapper } = innerRef;
23
- try {
24
- wrapper.innerHTML = atob(
25
- src.startsWith("data") ? src.split(",")[1] : src
26
- );
27
- const svg = wrapper.children;
28
- const path = svg[0].firstElementChild;
29
- svg[0].setAttribute(
30
- "font-size",
31
- typeof defaultValues.fontSize === "number" ? `${String(defaultValues.fontSize)}px` : defaultValues.fontSize ?? "var(--panache-icon-size)"
32
- );
33
- svg[0].setAttribute("width", "1em");
34
- svg[0].setAttribute("height", "1em");
35
- path == null ? void 0 : path.setAttribute("fill", color);
36
- path == null ? void 0 : path.setAttribute("color", color);
37
- } catch {
7
+ const IconSVG = react.forwardRef(
8
+ function IconSVG2({ color: defaultColor, size, src, children, ...props }, forwardedRef) {
9
+ const fallbackRef = react.useRef(void 0);
10
+ const ref = forwardedRef ?? fallbackRef;
11
+ const defaultContextValues = react.useContext(Context.IconContext);
12
+ const defaultValues = {
13
+ ...defaultContextValues,
14
+ color: defaultColor ?? defaultContextValues.color,
15
+ fontSize: size ?? defaultContextValues.size
16
+ };
17
+ const color = react.useMemo(() => {
18
+ const color2 = get.default(defaultValues.palette, defaultValues.color);
19
+ return typeof color2 === "string" ? color2 : defaultValues.color;
20
+ }, [defaultValues.color, defaultValues.palette]);
21
+ react.useEffect(() => {
22
+ if (ref.current && src && !children) {
23
+ const { current: wrapper } = ref;
24
+ try {
25
+ wrapper.innerHTML = atob(
26
+ src.startsWith("data") ? src.split(",")[1] : src
27
+ );
28
+ const svg = wrapper.children;
29
+ const path = svg[0].firstElementChild;
30
+ svg[0].setAttribute(
31
+ "font-size",
32
+ typeof defaultValues.fontSize === "number" ? `${String(defaultValues.fontSize)}px` : defaultValues.fontSize ?? "var(--panache-icon-size)"
33
+ );
34
+ svg[0].setAttribute("width", "1em");
35
+ svg[0].setAttribute("height", "1em");
36
+ path == null ? void 0 : path.setAttribute("fill", color);
37
+ path == null ? void 0 : path.setAttribute("color", color);
38
+ } catch {
39
+ }
38
40
  }
41
+ }, [color, src, children, size, defaultValues.fontSize, ref]);
42
+ if (children) {
43
+ return react.cloneElement(children, {
44
+ // @ts-expect-error -- This is a valid prop
45
+ fill: color,
46
+ color,
47
+ fontSize: defaultValues.fontSize,
48
+ width: "1em",
49
+ height: "1em",
50
+ ref,
51
+ ...props
52
+ });
39
53
  }
40
- }, [color, src, children, size, defaultValues.fontSize]);
41
- if (children) {
42
- return react.cloneElement(children, {
43
- fill: color,
44
- color,
45
- fontSize: defaultValues.fontSize,
46
- width: "1em",
47
- height: "1em",
48
- ref: innerRef,
49
- ...props
50
- });
51
- }
52
- if (src) {
53
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: innerRef });
54
+ if (src) {
55
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref });
56
+ }
57
+ return null;
54
58
  }
55
- return null;
56
- };
57
- const IconSVG = react.forwardRef(IconComponent);
59
+ );
58
60
  exports.IconSVG = IconSVG;
@@ -1,59 +1,61 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { forwardRef, useRef, useImperativeHandle, useContext, useMemo, useEffect, cloneElement } from "react";
3
+ import { forwardRef, useRef, useContext, useMemo, useEffect, cloneElement } from "react";
4
4
  import { IconContext } from "../providers/IconProvider/Context.mjs";
5
5
  import get from "../utils/get.mjs";
6
- const IconComponent = ({ color: defaultColor, size, src, children, ...props }, outerRef) => {
7
- const innerRef = useRef(null);
8
- useImperativeHandle(outerRef, () => innerRef.current, []);
9
- const defaultContextValues = useContext(IconContext);
10
- const defaultValues = {
11
- ...defaultContextValues,
12
- color: defaultColor ?? defaultContextValues.color,
13
- fontSize: size ?? defaultContextValues.size
14
- };
15
- const color = useMemo(() => {
16
- const color2 = get(defaultValues.palette, defaultValues.color);
17
- return typeof color2 === "string" ? color2 : defaultValues.color;
18
- }, [defaultValues.color, defaultValues.palette]);
19
- useEffect(() => {
20
- if (innerRef.current && src && !children) {
21
- const { current: wrapper } = innerRef;
22
- try {
23
- wrapper.innerHTML = atob(
24
- src.startsWith("data") ? src.split(",")[1] : src
25
- );
26
- const svg = wrapper.children;
27
- const path = svg[0].firstElementChild;
28
- svg[0].setAttribute(
29
- "font-size",
30
- typeof defaultValues.fontSize === "number" ? `${String(defaultValues.fontSize)}px` : defaultValues.fontSize ?? "var(--panache-icon-size)"
31
- );
32
- svg[0].setAttribute("width", "1em");
33
- svg[0].setAttribute("height", "1em");
34
- path == null ? void 0 : path.setAttribute("fill", color);
35
- path == null ? void 0 : path.setAttribute("color", color);
36
- } catch {
6
+ const IconSVG = forwardRef(
7
+ function IconSVG2({ color: defaultColor, size, src, children, ...props }, forwardedRef) {
8
+ const fallbackRef = useRef(void 0);
9
+ const ref = forwardedRef ?? fallbackRef;
10
+ const defaultContextValues = useContext(IconContext);
11
+ const defaultValues = {
12
+ ...defaultContextValues,
13
+ color: defaultColor ?? defaultContextValues.color,
14
+ fontSize: size ?? defaultContextValues.size
15
+ };
16
+ const color = useMemo(() => {
17
+ const color2 = get(defaultValues.palette, defaultValues.color);
18
+ return typeof color2 === "string" ? color2 : defaultValues.color;
19
+ }, [defaultValues.color, defaultValues.palette]);
20
+ useEffect(() => {
21
+ if (ref.current && src && !children) {
22
+ const { current: wrapper } = ref;
23
+ try {
24
+ wrapper.innerHTML = atob(
25
+ src.startsWith("data") ? src.split(",")[1] : src
26
+ );
27
+ const svg = wrapper.children;
28
+ const path = svg[0].firstElementChild;
29
+ svg[0].setAttribute(
30
+ "font-size",
31
+ typeof defaultValues.fontSize === "number" ? `${String(defaultValues.fontSize)}px` : defaultValues.fontSize ?? "var(--panache-icon-size)"
32
+ );
33
+ svg[0].setAttribute("width", "1em");
34
+ svg[0].setAttribute("height", "1em");
35
+ path == null ? void 0 : path.setAttribute("fill", color);
36
+ path == null ? void 0 : path.setAttribute("color", color);
37
+ } catch {
38
+ }
37
39
  }
40
+ }, [color, src, children, size, defaultValues.fontSize, ref]);
41
+ if (children) {
42
+ return cloneElement(children, {
43
+ // @ts-expect-error -- This is a valid prop
44
+ fill: color,
45
+ color,
46
+ fontSize: defaultValues.fontSize,
47
+ width: "1em",
48
+ height: "1em",
49
+ ref,
50
+ ...props
51
+ });
38
52
  }
39
- }, [color, src, children, size, defaultValues.fontSize]);
40
- if (children) {
41
- return cloneElement(children, {
42
- fill: color,
43
- color,
44
- fontSize: defaultValues.fontSize,
45
- width: "1em",
46
- height: "1em",
47
- ref: innerRef,
48
- ...props
49
- });
50
- }
51
- if (src) {
52
- return /* @__PURE__ */ jsx("div", { ref: innerRef });
53
+ if (src) {
54
+ return /* @__PURE__ */ jsx("div", { ref });
55
+ }
56
+ return null;
53
57
  }
54
- return null;
55
- };
56
- const IconSVG = forwardRef(IconComponent);
58
+ );
57
59
  export {
58
60
  IconSVG
59
61
  };
@@ -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 BurgerMenuIcon };
@@ -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 BurgerMenuIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M120-240v-80h720v80zm0-200v-80h720v80zm0-200v-80h720v80z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(BurgerMenuIcon);
23
+ exports.BurgerMenuIcon = 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 BurgerMenuIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M120-240v-80h720v80zm0-200v-80h720v80zm0-200v-80h720v80z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(BurgerMenuIcon);
22
+ export {
23
+ ForwardRef as BurgerMenuIcon
24
+ };
@@ -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 EditCalendarIcon };
@@ -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 EditCalendarIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v200h-80v-40H200v400h280v80zm0-560h560v-80H200zm0 0v-80zM560-80v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22-4 22.5-13 20.5L683-80zm300-263-37-37zM620-140h38l121-122-18-19-19-18-122 121zm141-141-19-18 37 37z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(EditCalendarIcon);
23
+ exports.EditCalendarIcon = 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 EditCalendarIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v200h-80v-40H200v400h280v80zm0-560h560v-80H200zm0 0v-80zM560-80v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22-4 22.5-13 20.5L683-80zm300-263-37-37zM620-140h38l121-122-18-19-19-18-122 121zm141-141-19-18 37 37z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(EditCalendarIcon);
22
+ export {
23
+ ForwardRef as EditCalendarIcon
24
+ };
@@ -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 ResetSettingsIcon };
@@ -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 ResetSettingsIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M520-330v-60h160v60zm60 210v-50h-60v-60h60v-50h60v160zm100-50v-60h160v60zm40-110v-160h60v50h60v60h-60v50zm111-280h-83q-26-88-99-144t-169-56q-117 0-198.5 81.5T200-480q0 72 32.5 132t87.5 98v-110h80v240H160v-80h94q-62-50-98-122.5T120-480q0-75 28.5-140.5t77-114 114-77T480-840q129 0 226.5 79.5T831-560" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(ResetSettingsIcon);
23
+ exports.ResetSettingsIcon = 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 ResetSettingsIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M520-330v-60h160v60zm60 210v-50h-60v-60h60v-50h60v160zm100-50v-60h160v60zm40-110v-160h60v50h60v60h-60v50zm111-280h-83q-26-88-99-144t-169-56q-117 0-198.5 81.5T200-480q0 72 32.5 132t87.5 98v-110h80v240H160v-80h94q-62-50-98-122.5T120-480q0-75 28.5-140.5t77-114 114-77T480-840q129 0 226.5 79.5T831-560" }) });
20
+ };
21
+ const ForwardRef = forwardRef(ResetSettingsIcon);
22
+ export {
23
+ ForwardRef as ResetSettingsIcon
24
+ };
@@ -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 UpdateIcon };
@@ -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 UpdateIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-120q-75 0-140.5-28.5t-114-77-77-114T120-480t28.5-140.5 77-114 114-77T480-840q82 0 155.5 35T760-706v-94h80v240H600v-80h110q-41-56-101-88t-129-32q-117 0-198.5 81.5T200-480t81.5 198.5T480-200q105 0 183.5-68T756-440h82q-15 137-117.5 228.5T480-120m112-192L440-464v-216h80v184l128 128z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(UpdateIcon);
23
+ exports.UpdateIcon = 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 UpdateIcon = ({
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", viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, fill: color, color, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M480-120q-75 0-140.5-28.5t-114-77-77-114T120-480t28.5-140.5 77-114 114-77T480-840q82 0 155.5 35T760-706v-94h80v240H600v-80h110q-41-56-101-88t-129-32q-117 0-198.5 81.5T200-480t81.5 198.5T480-200q105 0 183.5-68T756-440h82q-15 137-117.5 228.5T480-120m112-192L440-464v-216h80v184l128 128z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(UpdateIcon);
22
+ export {
23
+ ForwardRef as UpdateIcon
24
+ };
@@ -13,6 +13,7 @@ export { BaseDefaultIcon } from "./BaseDefaultIcon";
13
13
  export { BindersIcon } from "./BindersIcon";
14
14
  export { BinocularsIcon } from "./BinocularsIcon";
15
15
  export { BookmarksIcon } from "./BookmarksIcon";
16
+ export { BurgerMenuIcon } from "./BurgerMenuIcon";
16
17
  export { CancelIcon } from "./CancelIcon";
17
18
  export { CaseManagerIcon } from "./CaseManagerIcon";
18
19
  export { CheckIcon } from "./CheckIcon";
@@ -37,6 +38,7 @@ export { DossierIcon } from "./DossierIcon";
37
38
  export { DownloadIcon } from "./DownloadIcon";
38
39
  export { DragHandleIcon } from "./DragHandleIcon";
39
40
  export { EditIcon } from "./EditIcon";
41
+ export { EditCalendarIcon } from "./EditCalendarIcon";
40
42
  export { EditSignatureIcon } from "./EditSignatureIcon";
41
43
  export { EmptyNotificationIcon } from "./EmptyNotificationIcon";
42
44
  export { EntityIcon } from "./EntityIcon";
@@ -87,6 +89,7 @@ export { PreviewIcon } from "./PreviewIcon";
87
89
  export { RefreshIcon } from "./RefreshIcon";
88
90
  export { RegulatoryReportingIcon } from "./RegulatoryReportingIcon";
89
91
  export { RemoveIcon } from "./RemoveIcon";
92
+ export { ResetSettingsIcon } from "./ResetSettingsIcon";
90
93
  export { RiskScoringIcon } from "./RiskScoringIcon";
91
94
  export { RotateRightIcon } from "./RotateRightIcon";
92
95
  export { ScissorsIcon } from "./ScissorsIcon";
@@ -106,6 +109,7 @@ export { TaskApprovedIcon } from "./TaskApprovedIcon";
106
109
  export { TaskRejectedIcon } from "./TaskRejectedIcon";
107
110
  export { TransactionsSanctionsScreeningIcon } from "./TransactionsSanctionsScreeningIcon";
108
111
  export { TypesIcon } from "./TypesIcon";
112
+ export { UpdateIcon } from "./UpdateIcon";
109
113
  export { ViewTreeIcon } from "./ViewTreeIcon";
110
114
  export { WarningIcon } from "./WarningIcon";
111
115
  export { WorkbenchIcon } from "./WorkbenchIcon";
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ const BaseDefaultIcon = require("./icons/BaseDefaultIcon.js");
17
17
  const BindersIcon = require("./icons/BindersIcon.js");
18
18
  const BinocularsIcon = require("./icons/BinocularsIcon.js");
19
19
  const BookmarksIcon = require("./icons/BookmarksIcon.js");
20
+ const BurgerMenuIcon = require("./icons/BurgerMenuIcon.js");
20
21
  const CancelIcon = require("./icons/CancelIcon.js");
21
22
  const CaseManagerIcon = require("./icons/CaseManagerIcon.js");
22
23
  const CheckIcon = require("./icons/CheckIcon.js");
@@ -41,6 +42,7 @@ const DossierIcon = require("./icons/DossierIcon.js");
41
42
  const DownloadIcon = require("./icons/DownloadIcon.js");
42
43
  const DragHandleIcon = require("./icons/DragHandleIcon.js");
43
44
  const EditIcon = require("./icons/EditIcon.js");
45
+ const EditCalendarIcon = require("./icons/EditCalendarIcon.js");
44
46
  const EditSignatureIcon = require("./icons/EditSignatureIcon.js");
45
47
  const EmptyNotificationIcon = require("./icons/EmptyNotificationIcon.js");
46
48
  const EntityIcon = require("./icons/EntityIcon.js");
@@ -91,6 +93,7 @@ const PreviewIcon = require("./icons/PreviewIcon.js");
91
93
  const RefreshIcon = require("./icons/RefreshIcon.js");
92
94
  const RegulatoryReportingIcon = require("./icons/RegulatoryReportingIcon.js");
93
95
  const RemoveIcon = require("./icons/RemoveIcon.js");
96
+ const ResetSettingsIcon = require("./icons/ResetSettingsIcon.js");
94
97
  const RiskScoringIcon = require("./icons/RiskScoringIcon.js");
95
98
  const RotateRightIcon = require("./icons/RotateRightIcon.js");
96
99
  const ScissorsIcon = require("./icons/ScissorsIcon.js");
@@ -110,6 +113,7 @@ const TaskApprovedIcon = require("./icons/TaskApprovedIcon.js");
110
113
  const TaskRejectedIcon = require("./icons/TaskRejectedIcon.js");
111
114
  const TransactionsSanctionsScreeningIcon = require("./icons/TransactionsSanctionsScreeningIcon.js");
112
115
  const TypesIcon = require("./icons/TypesIcon.js");
116
+ const UpdateIcon = require("./icons/UpdateIcon.js");
113
117
  const ViewTreeIcon = require("./icons/ViewTreeIcon.js");
114
118
  const WarningIcon = require("./icons/WarningIcon.js");
115
119
  const WorkbenchIcon = require("./icons/WorkbenchIcon.js");
@@ -134,6 +138,7 @@ exports.BaseDefaultIcon = BaseDefaultIcon.BaseDefaultIcon;
134
138
  exports.BindersIcon = BindersIcon.BindersIcon;
135
139
  exports.BinocularsIcon = BinocularsIcon.BinocularsIcon;
136
140
  exports.BookmarksIcon = BookmarksIcon.BookmarksIcon;
141
+ exports.BurgerMenuIcon = BurgerMenuIcon.BurgerMenuIcon;
137
142
  exports.CancelIcon = CancelIcon.CancelIcon;
138
143
  exports.CaseManagerIcon = CaseManagerIcon.CaseManagerIcon;
139
144
  exports.CheckIcon = CheckIcon.CheckIcon;
@@ -158,6 +163,7 @@ exports.DossierIcon = DossierIcon.DossierIcon;
158
163
  exports.DownloadIcon = DownloadIcon.DownloadIcon;
159
164
  exports.DragHandleIcon = DragHandleIcon.DragHandleIcon;
160
165
  exports.EditIcon = EditIcon.EditIcon;
166
+ exports.EditCalendarIcon = EditCalendarIcon.EditCalendarIcon;
161
167
  exports.EditSignatureIcon = EditSignatureIcon.EditSignatureIcon;
162
168
  exports.EmptyNotificationIcon = EmptyNotificationIcon.EmptyNotificationIcon;
163
169
  exports.EntityIcon = EntityIcon.EntityIcon;
@@ -208,6 +214,7 @@ exports.PreviewIcon = PreviewIcon.PreviewIcon;
208
214
  exports.RefreshIcon = RefreshIcon.RefreshIcon;
209
215
  exports.RegulatoryReportingIcon = RegulatoryReportingIcon.RegulatoryReportingIcon;
210
216
  exports.RemoveIcon = RemoveIcon.RemoveIcon;
217
+ exports.ResetSettingsIcon = ResetSettingsIcon.ResetSettingsIcon;
211
218
  exports.RiskScoringIcon = RiskScoringIcon.RiskScoringIcon;
212
219
  exports.RotateRightIcon = RotateRightIcon.RotateRightIcon;
213
220
  exports.ScissorsIcon = ScissorsIcon.ScissorsIcon;
@@ -227,6 +234,7 @@ exports.TaskApprovedIcon = TaskApprovedIcon.TaskApprovedIcon;
227
234
  exports.TaskRejectedIcon = TaskRejectedIcon.TaskRejectedIcon;
228
235
  exports.TransactionsSanctionsScreeningIcon = TransactionsSanctionsScreeningIcon.TransactionsSanctionsScreeningIcon;
229
236
  exports.TypesIcon = TypesIcon.TypesIcon;
237
+ exports.UpdateIcon = UpdateIcon.UpdateIcon;
230
238
  exports.ViewTreeIcon = ViewTreeIcon.ViewTreeIcon;
231
239
  exports.WarningIcon = WarningIcon.WarningIcon;
232
240
  exports.WorkbenchIcon = WorkbenchIcon.WorkbenchIcon;
package/lib/index.mjs CHANGED
@@ -16,6 +16,7 @@ import { BaseDefaultIcon } from "./icons/BaseDefaultIcon.mjs";
16
16
  import { BindersIcon } from "./icons/BindersIcon.mjs";
17
17
  import { BinocularsIcon } from "./icons/BinocularsIcon.mjs";
18
18
  import { BookmarksIcon } from "./icons/BookmarksIcon.mjs";
19
+ import { BurgerMenuIcon } from "./icons/BurgerMenuIcon.mjs";
19
20
  import { CancelIcon } from "./icons/CancelIcon.mjs";
20
21
  import { CaseManagerIcon } from "./icons/CaseManagerIcon.mjs";
21
22
  import { CheckIcon } from "./icons/CheckIcon.mjs";
@@ -40,6 +41,7 @@ import { DossierIcon } from "./icons/DossierIcon.mjs";
40
41
  import { DownloadIcon } from "./icons/DownloadIcon.mjs";
41
42
  import { DragHandleIcon } from "./icons/DragHandleIcon.mjs";
42
43
  import { EditIcon } from "./icons/EditIcon.mjs";
44
+ import { EditCalendarIcon } from "./icons/EditCalendarIcon.mjs";
43
45
  import { EditSignatureIcon } from "./icons/EditSignatureIcon.mjs";
44
46
  import { EmptyNotificationIcon } from "./icons/EmptyNotificationIcon.mjs";
45
47
  import { EntityIcon } from "./icons/EntityIcon.mjs";
@@ -90,6 +92,7 @@ import { PreviewIcon } from "./icons/PreviewIcon.mjs";
90
92
  import { RefreshIcon } from "./icons/RefreshIcon.mjs";
91
93
  import { RegulatoryReportingIcon } from "./icons/RegulatoryReportingIcon.mjs";
92
94
  import { RemoveIcon } from "./icons/RemoveIcon.mjs";
95
+ import { ResetSettingsIcon } from "./icons/ResetSettingsIcon.mjs";
93
96
  import { RiskScoringIcon } from "./icons/RiskScoringIcon.mjs";
94
97
  import { RotateRightIcon } from "./icons/RotateRightIcon.mjs";
95
98
  import { ScissorsIcon } from "./icons/ScissorsIcon.mjs";
@@ -109,6 +112,7 @@ import { TaskApprovedIcon } from "./icons/TaskApprovedIcon.mjs";
109
112
  import { TaskRejectedIcon } from "./icons/TaskRejectedIcon.mjs";
110
113
  import { TransactionsSanctionsScreeningIcon } from "./icons/TransactionsSanctionsScreeningIcon.mjs";
111
114
  import { TypesIcon } from "./icons/TypesIcon.mjs";
115
+ import { UpdateIcon } from "./icons/UpdateIcon.mjs";
112
116
  import { ViewTreeIcon } from "./icons/ViewTreeIcon.mjs";
113
117
  import { WarningIcon } from "./icons/WarningIcon.mjs";
114
118
  import { WorkbenchIcon } from "./icons/WorkbenchIcon.mjs";
@@ -130,6 +134,7 @@ export {
130
134
  BindersIcon,
131
135
  BinocularsIcon,
132
136
  BookmarksIcon,
137
+ BurgerMenuIcon,
133
138
  CancelIcon,
134
139
  CaseManagerIcon,
135
140
  CheckIcon,
@@ -153,6 +158,7 @@ export {
153
158
  DossierIcon,
154
159
  DownloadIcon,
155
160
  DragHandleIcon,
161
+ EditCalendarIcon,
156
162
  EditIcon,
157
163
  EditSignatureIcon,
158
164
  EmptyNotificationIcon,
@@ -207,6 +213,7 @@ export {
207
213
  RefreshIcon,
208
214
  RegulatoryReportingIcon,
209
215
  RemoveIcon,
216
+ ResetSettingsIcon,
210
217
  RiskScoringIcon,
211
218
  RotateRightIcon,
212
219
  ScissorsIcon,
@@ -226,6 +233,7 @@ export {
226
233
  TaskRejectedIcon,
227
234
  TransactionsSanctionsScreeningIcon,
228
235
  TypesIcon,
236
+ UpdateIcon,
229
237
  ViewTreeIcon,
230
238
  WarningIcon,
231
239
  WorkbenchIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "0.7.2",
4
+ "version": "0.8.0",
5
5
  "description": "Library of icons (React components, font and svg)",
6
6
  "type": "module",
7
7
  "main": "./lib/index.js",
@@ -10,9 +10,9 @@
10
10
  "sideEffects": false,
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./lib/index.d.ts",
13
14
  "import": "./lib/index.mjs",
14
- "require": "./lib/index.js",
15
- "types": "./lib/index.d.ts"
15
+ "require": "./lib/index.js"
16
16
  },
17
17
  "./package.json": "./package.json"
18
18
  },
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" ><path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v200h-80v-40H200v400h280v80H200Zm0-560h560v-80H200v80Zm0 0v-80 80ZM560-80v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22q0 11-4 22.5T903-300L683-80H560Zm300-263-37-37 37 37ZM620-140h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M520-330v-60h160v60H520Zm60 210v-50h-60v-60h60v-50h60v160h-60Zm100-50v-60h160v60H680Zm40-110v-160h60v50h60v60h-60v50h-60Zm111-280h-83q-26-88-99-144t-169-56q-117 0-198.5 81.5T200-480q0 72 32.5 132t87.5 98v-110h80v240H160v-80h94q-62-50-98-122.5T120-480q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-840q129 0 226.5 79.5T831-560Z"/></svg>
package/svg/Update.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M480-120q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-480q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-840q82 0 155.5 35T760-706v-94h80v240H600v-80h110q-41-56-101-88t-129-32q-117 0-198.5 81.5T200-480q0 117 81.5 198.5T480-200q105 0 183.5-68T756-440h82q-15 137-117.5 228.5T480-120Zm112-192L440-464v-216h80v184l128 128-56 56Z"/></svg>
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": "AppBar menu icon"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": ""
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": ["reset", "settings"],
3
+ "description": "Reset settings"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": ""
4
+ }