@imtf/icons 0.13.0 → 0.14.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 NewTagIcon };
@@ -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 NewTagIcon = ({
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: "M448-160q16-27 24-57.5t8-62.5q0-100-70-170t-170-70q-45 0-86 16t-74 45v-261q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5zm-248 40v-120H80v-80h120v-120h80v120h120v80H280v120z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(NewTagIcon);
23
+ exports.NewTagIcon = 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 NewTagIcon = ({
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: "M448-160q16-27 24-57.5t8-62.5q0-100-70-170t-170-70q-45 0-86 16t-74 45v-261q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5zm-248 40v-120H80v-80h120v-120h80v120h120v80H280v120z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(NewTagIcon);
22
+ export {
23
+ ForwardRef as NewTagIcon
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 TagIcon };
@@ -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 TagIcon = ({
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: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5z" }) });
21
+ };
22
+ const ForwardRef = react.forwardRef(TagIcon);
23
+ exports.TagIcon = 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 TagIcon = ({
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: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5z" }) });
20
+ };
21
+ const ForwardRef = forwardRef(TagIcon);
22
+ export {
23
+ ForwardRef as TagIcon
24
+ };
@@ -79,6 +79,7 @@ export { MenuIcon } from "./MenuIcon";
79
79
  export { MoreIcon } from "./MoreIcon";
80
80
  export { NameScreeningIcon } from "./NameScreeningIcon";
81
81
  export { NaturalPersonIcon } from "./NaturalPersonIcon";
82
+ export { NewTagIcon } from "./NewTagIcon";
82
83
  export { NewsIcon } from "./NewsIcon";
83
84
  export { NotFoundIcon } from "./NotFoundIcon";
84
85
  export { NotificationIcon } from "./NotificationIcon";
@@ -110,6 +111,7 @@ export { StarIcon } from "./StarIcon";
110
111
  export { StarBorderIcon } from "./StarBorderIcon";
111
112
  export { SystemBotIcon } from "./SystemBotIcon";
112
113
  export { TableIcon } from "./TableIcon";
114
+ export { TagIcon } from "./TagIcon";
113
115
  export { TaskIcon } from "./TaskIcon";
114
116
  export { TaskApprovalTriggeredIcon } from "./TaskApprovalTriggeredIcon";
115
117
  export { TaskApprovedIcon } from "./TaskApprovedIcon";
package/lib/index.js CHANGED
@@ -83,6 +83,7 @@ const MenuIcon = require("./icons/MenuIcon.js");
83
83
  const MoreIcon = require("./icons/MoreIcon.js");
84
84
  const NameScreeningIcon = require("./icons/NameScreeningIcon.js");
85
85
  const NaturalPersonIcon = require("./icons/NaturalPersonIcon.js");
86
+ const NewTagIcon = require("./icons/NewTagIcon.js");
86
87
  const NewsIcon = require("./icons/NewsIcon.js");
87
88
  const NotFoundIcon = require("./icons/NotFoundIcon.js");
88
89
  const NotificationIcon = require("./icons/NotificationIcon.js");
@@ -114,6 +115,7 @@ const StarIcon = require("./icons/StarIcon.js");
114
115
  const StarBorderIcon = require("./icons/StarBorderIcon.js");
115
116
  const SystemBotIcon = require("./icons/SystemBotIcon.js");
116
117
  const TableIcon = require("./icons/TableIcon.js");
118
+ const TagIcon = require("./icons/TagIcon.js");
117
119
  const TaskIcon = require("./icons/TaskIcon.js");
118
120
  const TaskApprovalTriggeredIcon = require("./icons/TaskApprovalTriggeredIcon.js");
119
121
  const TaskApprovedIcon = require("./icons/TaskApprovedIcon.js");
@@ -216,6 +218,7 @@ exports.MenuIcon = MenuIcon.MenuIcon;
216
218
  exports.MoreIcon = MoreIcon.MoreIcon;
217
219
  exports.NameScreeningIcon = NameScreeningIcon.NameScreeningIcon;
218
220
  exports.NaturalPersonIcon = NaturalPersonIcon.NaturalPersonIcon;
221
+ exports.NewTagIcon = NewTagIcon.NewTagIcon;
219
222
  exports.NewsIcon = NewsIcon.NewsIcon;
220
223
  exports.NotFoundIcon = NotFoundIcon.NotFoundIcon;
221
224
  exports.NotificationIcon = NotificationIcon.NotificationIcon;
@@ -247,6 +250,7 @@ exports.StarIcon = StarIcon.StarIcon;
247
250
  exports.StarBorderIcon = StarBorderIcon.StarBorderIcon;
248
251
  exports.SystemBotIcon = SystemBotIcon.SystemBotIcon;
249
252
  exports.TableIcon = TableIcon.TableIcon;
253
+ exports.TagIcon = TagIcon.TagIcon;
250
254
  exports.TaskIcon = TaskIcon.TaskIcon;
251
255
  exports.TaskApprovalTriggeredIcon = TaskApprovalTriggeredIcon.TaskApprovalTriggeredIcon;
252
256
  exports.TaskApprovedIcon = TaskApprovedIcon.TaskApprovedIcon;
package/lib/index.mjs CHANGED
@@ -82,6 +82,7 @@ import { MenuIcon } from "./icons/MenuIcon.mjs";
82
82
  import { MoreIcon } from "./icons/MoreIcon.mjs";
83
83
  import { NameScreeningIcon } from "./icons/NameScreeningIcon.mjs";
84
84
  import { NaturalPersonIcon } from "./icons/NaturalPersonIcon.mjs";
85
+ import { NewTagIcon } from "./icons/NewTagIcon.mjs";
85
86
  import { NewsIcon } from "./icons/NewsIcon.mjs";
86
87
  import { NotFoundIcon } from "./icons/NotFoundIcon.mjs";
87
88
  import { NotificationIcon } from "./icons/NotificationIcon.mjs";
@@ -113,6 +114,7 @@ import { StarIcon } from "./icons/StarIcon.mjs";
113
114
  import { StarBorderIcon } from "./icons/StarBorderIcon.mjs";
114
115
  import { SystemBotIcon } from "./icons/SystemBotIcon.mjs";
115
116
  import { TableIcon } from "./icons/TableIcon.mjs";
117
+ import { TagIcon } from "./icons/TagIcon.mjs";
116
118
  import { TaskIcon } from "./icons/TaskIcon.mjs";
117
119
  import { TaskApprovalTriggeredIcon } from "./icons/TaskApprovalTriggeredIcon.mjs";
118
120
  import { TaskApprovedIcon } from "./icons/TaskApprovedIcon.mjs";
@@ -215,6 +217,7 @@ export {
215
217
  MoreIcon,
216
218
  NameScreeningIcon,
217
219
  NaturalPersonIcon,
220
+ NewTagIcon,
218
221
  NewsIcon,
219
222
  NotFoundIcon,
220
223
  NotificationIcon,
@@ -246,6 +249,7 @@ export {
246
249
  StarIcon,
247
250
  SystemBotIcon,
248
251
  TableIcon,
252
+ TagIcon,
249
253
  TaskApprovalTriggeredIcon,
250
254
  TaskApprovedIcon,
251
255
  TaskFilledIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "0.13.0",
4
+ "version": "0.14.0",
5
5
  "description": "Library of icons (React components, font and svg)",
6
6
  "type": "module",
7
7
  "main": "./lib/index.js",
package/svg/NewTag.svg ADDED
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px">
2
+ <path
3
+ d="M448-160q16-27 24-57.5t8-62.5q0-100-70-170t-170-70q-45 0-86 16t-74 45v-261q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5H448Zm-248 40v-120H80v-80h120v-120h80v120h120v80H280v120h-80Z" />
4
+ </svg>
package/svg/Tag.svg ADDED
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px">
2
+ <path
3
+ d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h440q19 0 36 8.5t28 23.5l216 288-216 288q-11 15-28 23.5t-36 8.5H160Z" />
4
+ </svg>