@imtf/icons 0.6.4 → 0.6.5

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 SirononeIcon: import("react").ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement> & IconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
4
+ export { SirononeIcon };
@@ -0,0 +1,39 @@
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 SirononeIcon = react.forwardRef(
8
+ ({
9
+ color: defaultColor,
10
+ size,
11
+ ...props
12
+ }, ref) => {
13
+ const defaultContextValues = react.useContext(Context.IconContext);
14
+ const defaultValues = {
15
+ ...defaultContextValues,
16
+ color: defaultColor || defaultContextValues.color,
17
+ size: size || defaultContextValues.size,
18
+ ...props
19
+ };
20
+ const color = react.useMemo(
21
+ () => get.default(defaultValues.palette, defaultValues.color) ?? defaultValues.color,
22
+ [defaultValues.color, defaultValues.palette]
23
+ );
24
+ return /* @__PURE__ */ jsxRuntime.jsx(
25
+ "svg",
26
+ {
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ viewBox: "0 0 36 16",
29
+ width: defaultValues.size,
30
+ height: defaultValues.size,
31
+ fill: color,
32
+ color,
33
+ ...props,
34
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.972 5.666a.77.77 0 0 0 0-.769L7.867 1.252a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385L.222 4.897a.77.77 0 0 0 0 .769l2.105 3.646c.137.237.39.384.665.384h4.21a.77.77 0 0 0 .665-.384zm8.156 5.097a.77.77 0 0 0 0-.768l-2.105-3.646a.77.77 0 0 0-.666-.384h-4.21a.77.77 0 0 0-.665.384L8.377 9.995a.77.77 0 0 0 0 .768l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.495-4.757a.77.77 0 0 0 0-.769l-2.105-3.645a.77.77 0 0 0-.666-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.155 5.097a.77.77 0 0 0 0-.769L32.673 6.69a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .665.384h4.21a.77.77 0 0 0 .665-.384z" })
35
+ }
36
+ );
37
+ }
38
+ );
39
+ exports.SirononeIcon = SirononeIcon;
@@ -0,0 +1,40 @@
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 SirononeIcon = forwardRef(
7
+ ({
8
+ color: defaultColor,
9
+ size,
10
+ ...props
11
+ }, ref) => {
12
+ const defaultContextValues = useContext(IconContext);
13
+ const defaultValues = {
14
+ ...defaultContextValues,
15
+ color: defaultColor || defaultContextValues.color,
16
+ size: size || defaultContextValues.size,
17
+ ...props
18
+ };
19
+ const color = useMemo(
20
+ () => get(defaultValues.palette, defaultValues.color) ?? defaultValues.color,
21
+ [defaultValues.color, defaultValues.palette]
22
+ );
23
+ return /* @__PURE__ */ jsx(
24
+ "svg",
25
+ {
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ viewBox: "0 0 36 16",
28
+ width: defaultValues.size,
29
+ height: defaultValues.size,
30
+ fill: color,
31
+ color,
32
+ ...props,
33
+ children: /* @__PURE__ */ jsx("path", { d: "M9.972 5.666a.77.77 0 0 0 0-.769L7.867 1.252a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385L.222 4.897a.77.77 0 0 0 0 .769l2.105 3.646c.137.237.39.384.665.384h4.21a.77.77 0 0 0 .665-.384zm8.156 5.097a.77.77 0 0 0 0-.768l-2.105-3.646a.77.77 0 0 0-.666-.384h-4.21a.77.77 0 0 0-.665.384L8.377 9.995a.77.77 0 0 0 0 .768l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.495-4.757a.77.77 0 0 0 0-.769l-2.105-3.645a.77.77 0 0 0-.666-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.155 5.097a.77.77 0 0 0 0-.769L32.673 6.69a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .665.384h4.21a.77.77 0 0 0 .665-.384z" })
34
+ }
35
+ );
36
+ }
37
+ );
38
+ export {
39
+ SirononeIcon
40
+ };
@@ -95,6 +95,7 @@ export { SentToArchiveIcon } from "./SentToArchiveIcon";
95
95
  export { SentToPassivateIcon } from "./SentToPassivateIcon";
96
96
  export { SidebarCollapsedIcon } from "./SidebarCollapsedIcon";
97
97
  export { SidebarExpandedIcon } from "./SidebarExpandedIcon";
98
+ export { SirononeIcon } from "./SirononeIcon";
98
99
  export { StarIcon } from "./StarIcon";
99
100
  export { StarBorderIcon } from "./StarBorderIcon";
100
101
  export { SystemBotIcon } from "./SystemBotIcon";
package/lib/index.js CHANGED
@@ -99,6 +99,7 @@ const SentToArchiveIcon = require("./icons/SentToArchiveIcon.js");
99
99
  const SentToPassivateIcon = require("./icons/SentToPassivateIcon.js");
100
100
  const SidebarCollapsedIcon = require("./icons/SidebarCollapsedIcon.js");
101
101
  const SidebarExpandedIcon = require("./icons/SidebarExpandedIcon.js");
102
+ const SirononeIcon = require("./icons/SirononeIcon.js");
102
103
  const StarIcon = require("./icons/StarIcon.js");
103
104
  const StarBorderIcon = require("./icons/StarBorderIcon.js");
104
105
  const SystemBotIcon = require("./icons/SystemBotIcon.js");
@@ -215,6 +216,7 @@ exports.SentToArchiveIcon = SentToArchiveIcon.SentToArchiveIcon;
215
216
  exports.SentToPassivateIcon = SentToPassivateIcon.SentToPassivateIcon;
216
217
  exports.SidebarCollapsedIcon = SidebarCollapsedIcon.SidebarCollapsedIcon;
217
218
  exports.SidebarExpandedIcon = SidebarExpandedIcon.SidebarExpandedIcon;
219
+ exports.SirononeIcon = SirononeIcon.SirononeIcon;
218
220
  exports.StarIcon = StarIcon.StarIcon;
219
221
  exports.StarBorderIcon = StarBorderIcon.StarBorderIcon;
220
222
  exports.SystemBotIcon = SystemBotIcon.SystemBotIcon;
package/lib/index.mjs CHANGED
@@ -98,6 +98,7 @@ import { SentToArchiveIcon } from "./icons/SentToArchiveIcon.mjs";
98
98
  import { SentToPassivateIcon } from "./icons/SentToPassivateIcon.mjs";
99
99
  import { SidebarCollapsedIcon } from "./icons/SidebarCollapsedIcon.mjs";
100
100
  import { SidebarExpandedIcon } from "./icons/SidebarExpandedIcon.mjs";
101
+ import { SirononeIcon } from "./icons/SirononeIcon.mjs";
101
102
  import { StarIcon } from "./icons/StarIcon.mjs";
102
103
  import { StarBorderIcon } from "./icons/StarBorderIcon.mjs";
103
104
  import { SystemBotIcon } from "./icons/SystemBotIcon.mjs";
@@ -214,6 +215,7 @@ export {
214
215
  SentToPassivateIcon,
215
216
  SidebarCollapsedIcon,
216
217
  SidebarExpandedIcon,
218
+ SirononeIcon,
217
219
  StarBorderIcon,
218
220
  StarIcon,
219
221
  SystemBotIcon,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "0.6.4",
4
+ "version": "0.6.5",
5
5
  "description": "Library of icons (React components, font and svg)",
6
6
  "type": "module",
7
7
  "main": "./lib/index.js",
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 16">
2
+ <path
3
+ d="M9.972 5.666a.77.77 0 0 0 0-.769L7.867 1.252a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385L.222 4.897a.77.77 0 0 0 0 .769l2.105 3.646c.137.237.39.384.665.384h4.21a.77.77 0 0 0 .665-.384zm8.156 5.097a.77.77 0 0 0 0-.768l-2.105-3.646a.77.77 0 0 0-.666-.384h-4.21a.77.77 0 0 0-.665.384L8.377 9.995a.77.77 0 0 0 0 .768l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.495-4.757a.77.77 0 0 0 0-.769l-2.105-3.645a.77.77 0 0 0-.666-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .666.384h4.21a.77.77 0 0 0 .665-.384zm8.155 5.097a.77.77 0 0 0 0-.769L32.673 6.69a.77.77 0 0 0-.665-.385h-4.21a.77.77 0 0 0-.665.385l-2.105 3.645a.77.77 0 0 0 0 .769l2.105 3.646a.77.77 0 0 0 .665.384h4.21a.77.77 0 0 0 .665-.384z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": ["module"],
3
+ "description": "Siron One module icon"
4
+ }