@imtf/icons 1.0.0 → 1.1.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 ActionClearIcon };
@@ -0,0 +1,26 @@
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 ActionClearIcon = ({
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.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "ActionClearIcon", ref, ...props, children: [
21
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
22
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
23
+ ] });
24
+ };
25
+ const ForwardRef = react.forwardRef(ActionClearIcon);
26
+ exports.ActionClearIcon = ForwardRef;
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsxs, 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 ActionClearIcon = ({
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__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "ActionClearIcon", ref, ...props, children: [
20
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
21
+ /* @__PURE__ */ jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
22
+ ] });
23
+ };
24
+ const ForwardRef = forwardRef(ActionClearIcon);
25
+ export {
26
+ ForwardRef as ActionClearIcon
27
+ };
@@ -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 ActionCloseIcon };
@@ -0,0 +1,26 @@
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 ActionCloseIcon = ({
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.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "ActionCloseIcon", ref, ...props, children: [
21
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
22
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
23
+ ] });
24
+ };
25
+ const ForwardRef = react.forwardRef(ActionCloseIcon);
26
+ exports.ActionCloseIcon = ForwardRef;
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsxs, 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 ActionCloseIcon = ({
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__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fontSize: defaultValues.fontSize, fill: color, color, "data-testid": "ActionCloseIcon", ref, ...props, children: [
20
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
21
+ /* @__PURE__ */ jsx("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
22
+ ] });
23
+ };
24
+ const ForwardRef = forwardRef(ActionCloseIcon);
25
+ export {
26
+ ForwardRef as ActionCloseIcon
27
+ };
@@ -1,6 +1,8 @@
1
1
  export { ActionAddAltIcon } from "./ActionAddAltIcon";
2
2
  export { ActionAddIcon } from "./ActionAddIcon";
3
3
  export { ActionCancelIcon } from "./ActionCancelIcon";
4
+ export { ActionClearIcon } from "./ActionClearIcon";
5
+ export { ActionCloseIcon } from "./ActionCloseIcon";
4
6
  export { ActionDeleteIcon } from "./ActionDeleteIcon";
5
7
  export { ActionDockToRightIcon } from "./ActionDockToRightIcon";
6
8
  export { ActionDownloadIcon } from "./ActionDownloadIcon";
package/lib/index.js CHANGED
@@ -5,6 +5,8 @@ const IconSVG = require("./components/IconSVG.js");
5
5
  const ActionAddAltIcon = require("./icons/ActionAddAltIcon.js");
6
6
  const ActionAddIcon = require("./icons/ActionAddIcon.js");
7
7
  const ActionCancelIcon = require("./icons/ActionCancelIcon.js");
8
+ const ActionClearIcon = require("./icons/ActionClearIcon.js");
9
+ const ActionCloseIcon = require("./icons/ActionCloseIcon.js");
8
10
  const ActionDeleteIcon = require("./icons/ActionDeleteIcon.js");
9
11
  const ActionDockToRightIcon = require("./icons/ActionDockToRightIcon.js");
10
12
  const ActionDownloadIcon = require("./icons/ActionDownloadIcon.js");
@@ -196,6 +198,8 @@ exports.IconSVG = IconSVG.IconSVG;
196
198
  exports.ActionAddAltIcon = ActionAddAltIcon.ActionAddAltIcon;
197
199
  exports.ActionAddIcon = ActionAddIcon.ActionAddIcon;
198
200
  exports.ActionCancelIcon = ActionCancelIcon.ActionCancelIcon;
201
+ exports.ActionClearIcon = ActionClearIcon.ActionClearIcon;
202
+ exports.ActionCloseIcon = ActionCloseIcon.ActionCloseIcon;
199
203
  exports.ActionDeleteIcon = ActionDeleteIcon.ActionDeleteIcon;
200
204
  exports.ActionDockToRightIcon = ActionDockToRightIcon.ActionDockToRightIcon;
201
205
  exports.ActionDownloadIcon = ActionDownloadIcon.ActionDownloadIcon;
package/lib/index.mjs CHANGED
@@ -4,6 +4,8 @@ import { IconSVG } from "./components/IconSVG.mjs";
4
4
  import { ActionAddAltIcon } from "./icons/ActionAddAltIcon.mjs";
5
5
  import { ActionAddIcon } from "./icons/ActionAddIcon.mjs";
6
6
  import { ActionCancelIcon } from "./icons/ActionCancelIcon.mjs";
7
+ import { ActionClearIcon } from "./icons/ActionClearIcon.mjs";
8
+ import { ActionCloseIcon } from "./icons/ActionCloseIcon.mjs";
7
9
  import { ActionDeleteIcon } from "./icons/ActionDeleteIcon.mjs";
8
10
  import { ActionDockToRightIcon } from "./icons/ActionDockToRightIcon.mjs";
9
11
  import { ActionDownloadIcon } from "./icons/ActionDownloadIcon.mjs";
@@ -192,6 +194,8 @@ export {
192
194
  ActionAddAltIcon,
193
195
  ActionAddIcon,
194
196
  ActionCancelIcon,
197
+ ActionClearIcon,
198
+ ActionCloseIcon,
195
199
  ActionDeleteIcon,
196
200
  ActionDockToRightIcon,
197
201
  ActionDownloadIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.1.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 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>