@imtf/icons 1.0.0-beta.0 → 1.0.0-beta.2

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 ActionAddAltIcon };
@@ -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 ActionAddAltIcon = ({
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", fill: color, viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, color, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M440-440H200v-80h240v-240h80v240h240v80H520v240h-80z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(ActionAddAltIcon);
23
+ exports.ActionAddAltIcon = 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 ActionAddAltIcon = ({
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", fill: color, viewBox: "0 -960 960 960", fontSize: defaultValues.fontSize, color, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M440-440H200v-80h240v-240h80v240h240v80H520v240h-80z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(ActionAddAltIcon);
22
+ export {
23
+ ForwardRef as ActionAddAltIcon
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 ActionDeleteIcon };
@@ -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 ActionDeleteIcon = ({
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, ref, ...props, children: [
21
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
22
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z" })
23
+ ] });
24
+ };
25
+ const ForwardRef = react.forwardRef(ActionDeleteIcon);
26
+ exports.ActionDeleteIcon = 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 ActionDeleteIcon = ({
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, ref, ...props, children: [
20
+ /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
21
+ /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z" })
22
+ ] });
23
+ };
24
+ const ForwardRef = forwardRef(ActionDeleteIcon);
25
+ export {
26
+ ForwardRef as ActionDeleteIcon
27
+ };
@@ -1,5 +1,7 @@
1
+ export { ActionAddAltIcon } from "./ActionAddAltIcon";
1
2
  export { ActionAddIcon } from "./ActionAddIcon";
2
3
  export { ActionCancelIcon } from "./ActionCancelIcon";
4
+ export { ActionDeleteIcon } from "./ActionDeleteIcon";
3
5
  export { ActionDockToRightIcon } from "./ActionDockToRightIcon";
4
6
  export { ActionDownloadIcon } from "./ActionDownloadIcon";
5
7
  export { ActionEditIcon } from "./ActionEditIcon";
package/lib/index.js CHANGED
@@ -2,8 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const IconProvider = require("./providers/IconProvider/IconProvider.js");
3
3
  const Context = require("./providers/IconProvider/Context.js");
4
4
  const IconSVG = require("./components/IconSVG.js");
5
+ const ActionAddAltIcon = require("./icons/ActionAddAltIcon.js");
5
6
  const ActionAddIcon = require("./icons/ActionAddIcon.js");
6
7
  const ActionCancelIcon = require("./icons/ActionCancelIcon.js");
8
+ const ActionDeleteIcon = require("./icons/ActionDeleteIcon.js");
7
9
  const ActionDockToRightIcon = require("./icons/ActionDockToRightIcon.js");
8
10
  const ActionDownloadIcon = require("./icons/ActionDownloadIcon.js");
9
11
  const ActionEditIcon = require("./icons/ActionEditIcon.js");
@@ -174,8 +176,10 @@ exports.IconProvider = IconProvider.IconProvider;
174
176
  exports.IconContext = Context.IconContext;
175
177
  exports.withIconContext = Context.withIconContext;
176
178
  exports.IconSVG = IconSVG.IconSVG;
179
+ exports.ActionAddAltIcon = ActionAddAltIcon.ActionAddAltIcon;
177
180
  exports.ActionAddIcon = ActionAddIcon.ActionAddIcon;
178
181
  exports.ActionCancelIcon = ActionCancelIcon.ActionCancelIcon;
182
+ exports.ActionDeleteIcon = ActionDeleteIcon.ActionDeleteIcon;
179
183
  exports.ActionDockToRightIcon = ActionDockToRightIcon.ActionDockToRightIcon;
180
184
  exports.ActionDownloadIcon = ActionDownloadIcon.ActionDownloadIcon;
181
185
  exports.ActionEditIcon = ActionEditIcon.ActionEditIcon;
package/lib/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import { IconProvider } from "./providers/IconProvider/IconProvider.mjs";
2
2
  import { IconContext, withIconContext } from "./providers/IconProvider/Context.mjs";
3
3
  import { IconSVG } from "./components/IconSVG.mjs";
4
+ import { ActionAddAltIcon } from "./icons/ActionAddAltIcon.mjs";
4
5
  import { ActionAddIcon } from "./icons/ActionAddIcon.mjs";
5
6
  import { ActionCancelIcon } from "./icons/ActionCancelIcon.mjs";
7
+ import { ActionDeleteIcon } from "./icons/ActionDeleteIcon.mjs";
6
8
  import { ActionDockToRightIcon } from "./icons/ActionDockToRightIcon.mjs";
7
9
  import { ActionDownloadIcon } from "./icons/ActionDownloadIcon.mjs";
8
10
  import { ActionEditIcon } from "./icons/ActionEditIcon.mjs";
@@ -170,8 +172,10 @@ import { ViewTableIcon } from "./icons/ViewTableIcon.mjs";
170
172
  import { ViewTreeIcon } from "./icons/ViewTreeIcon.mjs";
171
173
  import { WarningIcon } from "./icons/WarningIcon.mjs";
172
174
  export {
175
+ ActionAddAltIcon,
173
176
  ActionAddIcon,
174
177
  ActionCancelIcon,
178
+ ActionDeleteIcon,
175
179
  ActionDockToRightIcon,
176
180
  ActionDownloadIcon,
177
181
  ActionEditIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.2",
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
+ "add",
4
+ "create"
5
+ ],
6
+ "description": "Alternative icon representing an action to add or create something"
7
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/></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 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/></svg>