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

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 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,6 @@
1
1
  export { ActionAddIcon } from "./ActionAddIcon";
2
2
  export { ActionCancelIcon } from "./ActionCancelIcon";
3
+ export { ActionDeleteIcon } from "./ActionDeleteIcon";
3
4
  export { ActionDockToRightIcon } from "./ActionDockToRightIcon";
4
5
  export { ActionDownloadIcon } from "./ActionDownloadIcon";
5
6
  export { ActionEditIcon } from "./ActionEditIcon";
package/lib/index.js CHANGED
@@ -4,6 +4,7 @@ const Context = require("./providers/IconProvider/Context.js");
4
4
  const IconSVG = require("./components/IconSVG.js");
5
5
  const ActionAddIcon = require("./icons/ActionAddIcon.js");
6
6
  const ActionCancelIcon = require("./icons/ActionCancelIcon.js");
7
+ const ActionDeleteIcon = require("./icons/ActionDeleteIcon.js");
7
8
  const ActionDockToRightIcon = require("./icons/ActionDockToRightIcon.js");
8
9
  const ActionDownloadIcon = require("./icons/ActionDownloadIcon.js");
9
10
  const ActionEditIcon = require("./icons/ActionEditIcon.js");
@@ -176,6 +177,7 @@ exports.withIconContext = Context.withIconContext;
176
177
  exports.IconSVG = IconSVG.IconSVG;
177
178
  exports.ActionAddIcon = ActionAddIcon.ActionAddIcon;
178
179
  exports.ActionCancelIcon = ActionCancelIcon.ActionCancelIcon;
180
+ exports.ActionDeleteIcon = ActionDeleteIcon.ActionDeleteIcon;
179
181
  exports.ActionDockToRightIcon = ActionDockToRightIcon.ActionDockToRightIcon;
180
182
  exports.ActionDownloadIcon = ActionDownloadIcon.ActionDownloadIcon;
181
183
  exports.ActionEditIcon = ActionEditIcon.ActionEditIcon;
package/lib/index.mjs CHANGED
@@ -3,6 +3,7 @@ import { IconContext, withIconContext } from "./providers/IconProvider/Context.m
3
3
  import { IconSVG } from "./components/IconSVG.mjs";
4
4
  import { ActionAddIcon } from "./icons/ActionAddIcon.mjs";
5
5
  import { ActionCancelIcon } from "./icons/ActionCancelIcon.mjs";
6
+ import { ActionDeleteIcon } from "./icons/ActionDeleteIcon.mjs";
6
7
  import { ActionDockToRightIcon } from "./icons/ActionDockToRightIcon.mjs";
7
8
  import { ActionDownloadIcon } from "./icons/ActionDownloadIcon.mjs";
8
9
  import { ActionEditIcon } from "./icons/ActionEditIcon.mjs";
@@ -172,6 +173,7 @@ import { WarningIcon } from "./icons/WarningIcon.mjs";
172
173
  export {
173
174
  ActionAddIcon,
174
175
  ActionCancelIcon,
176
+ ActionDeleteIcon,
175
177
  ActionDockToRightIcon,
176
178
  ActionDownloadIcon,
177
179
  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.1",
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 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>