@imtf/icons 0.2.1 → 0.2.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.
@@ -31,7 +31,7 @@ const EyeIcon = ({
31
31
  fill: color,
32
32
  ref: ref
33
33
  }, props), /*#__PURE__*/createElement("path", {
34
- d: "M12 4C6.54545455 4 1.88727273 7.39272727 0 12.1818182c1.88727273 4.7890909 6.54545455 8.1818182 12 8.1818182 5.4545455 0 10.1127273-3.3927273 12-8.1818182C22.1127273 7.39272727 17.4545455 4 12 4Zm0 13.6363636c-3.01090909 0-5.45454545-2.4436363-5.45454545-5.4545454 0-3.01090911 2.44363636-5.45454547 5.45454545-5.45454547 3.0109091 0 5.4545455 2.44363636 5.4545455 5.45454547 0 3.0109091-2.4436364 5.4545454-5.4545455 5.4545454Zm0-8.72727269c-1.8109091 0-3.27272727 1.46181819-3.27272727 3.27272729 0 1.8109091 1.46181817 3.2727273 3.27272727 3.2727273s3.2727273-1.4618182 3.2727273-3.2727273c0-1.8109091-1.4618182-3.27272729-3.2727273-3.27272729Z"
34
+ d: "M12 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5 5 5 0 0 1 5-5 5 5 0 0 1 5 5 5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"
35
35
  }));
36
36
  };
37
37
 
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function EyeOffIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default EyeOffIcon;
@@ -0,0 +1,39 @@
1
+ const {
2
+ createElement,
3
+ forwardRef,
4
+ useContext,
5
+ useMemo
6
+ } = require('react');
7
+
8
+ const {
9
+ IconContext
10
+ } = require('../index.js');
11
+
12
+ const get = require('lodash.get');
13
+
14
+ const EyeOffIcon = ({
15
+ color: defaultColor,
16
+ size,
17
+ ...props
18
+ }, ref) => {
19
+ const defaultContextValues = useContext(IconContext);
20
+ const defaultValues = { ...defaultContextValues,
21
+ color: defaultColor || defaultContextValues.color,
22
+ size: size || defaultContextValues.size,
23
+ ...props
24
+ };
25
+ const color = useMemo(() => get(defaultValues.palette, defaultValues.color, defaultValues.color), [defaultValues.color, defaultValues.palette]);
26
+ return /*#__PURE__*/createElement("svg", Object.assign({
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ viewBox: "0 0 24 24",
29
+ width: defaultValues.size,
30
+ height: defaultValues.size,
31
+ fill: color,
32
+ ref: ref
33
+ }, props), /*#__PURE__*/createElement("path", {
34
+ d: "M11.83 9 15 12.16V12a3 3 0 0 0-3-3h-.17m-4.3.8 1.55 1.55c-.05.21-.08.42-.08.65a3 3 0 0 0 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53a5 5 0 0 1-5-5c0-.79.2-1.53.53-2.2M2 4.27l2.28 2.28.45.45C3.08 8.3 1.78 10 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.43.42L19.73 22 21 20.73 3.27 3M12 7a5 5 0 0 1 5 5c0 .64-.13 1.26-.36 1.82l2.93 2.93c1.5-1.25 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-4 .7l2.17 2.15C10.74 7.13 11.35 7 12 7Z"
35
+ }));
36
+ };
37
+
38
+ const ForwardRef = forwardRef(EyeOffIcon);
39
+ module.exports = ForwardRef;
@@ -58,6 +58,7 @@ export { default as EraseIcon } from './EraseIcon';
58
58
  export { default as ExpandContentIcon } from './ExpandContentIcon';
59
59
  export { default as ExternalLinkIcon } from './ExternalLinkIcon';
60
60
  export { default as EyeIcon } from './EyeIcon';
61
+ export { default as EyeOffIcon } from './EyeOffIcon';
61
62
  export { default as FileIcon } from './FileIcon';
62
63
  export { default as FileArchiveIcon } from './FileArchiveIcon';
63
64
  export { default as FileImageIcon } from './FileImageIcon';
@@ -58,6 +58,7 @@ module.exports.EraseIcon = require('./EraseIcon.js');
58
58
  module.exports.ExpandContentIcon = require('./ExpandContentIcon.js');
59
59
  module.exports.ExternalLinkIcon = require('./ExternalLinkIcon.js');
60
60
  module.exports.EyeIcon = require('./EyeIcon.js');
61
+ module.exports.EyeOffIcon = require('./EyeOffIcon.js');
61
62
  module.exports.FileIcon = require('./FileIcon.js');
62
63
  module.exports.FileArchiveIcon = require('./FileArchiveIcon.js');
63
64
  module.exports.FileImageIcon = require('./FileImageIcon.js');
@@ -22,7 +22,7 @@ const EyeIcon = ({
22
22
  fill: color,
23
23
  ref: ref
24
24
  }, props), /*#__PURE__*/createElement("path", {
25
- d: "M12 4C6.54545455 4 1.88727273 7.39272727 0 12.1818182c1.88727273 4.7890909 6.54545455 8.1818182 12 8.1818182 5.4545455 0 10.1127273-3.3927273 12-8.1818182C22.1127273 7.39272727 17.4545455 4 12 4Zm0 13.6363636c-3.01090909 0-5.45454545-2.4436363-5.45454545-5.4545454 0-3.01090911 2.44363636-5.45454547 5.45454545-5.45454547 3.0109091 0 5.4545455 2.44363636 5.4545455 5.45454547 0 3.0109091-2.4436364 5.4545454-5.4545455 5.4545454Zm0-8.72727269c-1.8109091 0-3.27272727 1.46181819-3.27272727 3.27272729 0 1.8109091 1.46181817 3.2727273 3.27272727 3.2727273s3.2727273-1.4618182 3.2727273-3.2727273c0-1.8109091-1.4618182-3.27272729-3.2727273-3.27272729Z"
25
+ d: "M12 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5 5 5 0 0 1 5-5 5 5 0 0 1 5 5 5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"
26
26
  }));
27
27
  };
28
28
 
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function EyeOffIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default EyeOffIcon;
@@ -0,0 +1,30 @@
1
+ import { createElement, forwardRef, useContext, useMemo } from 'react';
2
+ import { IconContext } from '../index.js';
3
+ import get from 'lodash.get';
4
+
5
+ const EyeOffIcon = ({
6
+ color: defaultColor,
7
+ size,
8
+ ...props
9
+ }, ref) => {
10
+ const defaultContextValues = useContext(IconContext);
11
+ const defaultValues = { ...defaultContextValues,
12
+ color: defaultColor || defaultContextValues.color,
13
+ size: size || defaultContextValues.size,
14
+ ...props
15
+ };
16
+ const color = useMemo(() => get(defaultValues.palette, defaultValues.color, defaultValues.color), [defaultValues.color, defaultValues.palette]);
17
+ return /*#__PURE__*/createElement("svg", Object.assign({
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ viewBox: "0 0 24 24",
20
+ width: defaultValues.size,
21
+ height: defaultValues.size,
22
+ fill: color,
23
+ ref: ref
24
+ }, props), /*#__PURE__*/createElement("path", {
25
+ d: "M11.83 9 15 12.16V12a3 3 0 0 0-3-3h-.17m-4.3.8 1.55 1.55c-.05.21-.08.42-.08.65a3 3 0 0 0 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53a5 5 0 0 1-5-5c0-.79.2-1.53.53-2.2M2 4.27l2.28 2.28.45.45C3.08 8.3 1.78 10 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.43.42L19.73 22 21 20.73 3.27 3M12 7a5 5 0 0 1 5 5c0 .64-.13 1.26-.36 1.82l2.93 2.93c1.5-1.25 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-4 .7l2.17 2.15C10.74 7.13 11.35 7 12 7Z"
26
+ }));
27
+ };
28
+
29
+ const ForwardRef = /*#__PURE__*/forwardRef(EyeOffIcon);
30
+ export default ForwardRef;
@@ -58,6 +58,7 @@ export { default as EraseIcon } from './EraseIcon';
58
58
  export { default as ExpandContentIcon } from './ExpandContentIcon';
59
59
  export { default as ExternalLinkIcon } from './ExternalLinkIcon';
60
60
  export { default as EyeIcon } from './EyeIcon';
61
+ export { default as EyeOffIcon } from './EyeOffIcon';
61
62
  export { default as FileIcon } from './FileIcon';
62
63
  export { default as FileArchiveIcon } from './FileArchiveIcon';
63
64
  export { default as FileImageIcon } from './FileImageIcon';
@@ -58,6 +58,7 @@ export { default as EraseIcon } from './EraseIcon.js';
58
58
  export { default as ExpandContentIcon } from './ExpandContentIcon.js';
59
59
  export { default as ExternalLinkIcon } from './ExternalLinkIcon.js';
60
60
  export { default as EyeIcon } from './EyeIcon.js';
61
+ export { default as EyeOffIcon } from './EyeOffIcon.js';
61
62
  export { default as FileIcon } from './FileIcon.js';
62
63
  export { default as FileArchiveIcon } from './FileArchiveIcon.js';
63
64
  export { default as FileImageIcon } from './FileImageIcon.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "description": "Library of icons (React components, font and svg)",
6
6
  "main": "./lib/cjs/index.js",
7
7
  "module": "./lib/esm/index.js",
package/svg/Eye.svg CHANGED
@@ -1,3 +1,3 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
- <path d="M12 4C6.54545455 4 1.88727273 7.39272727 0 12.1818182c1.88727273 4.7890909 6.54545455 8.1818182 12 8.1818182 5.4545455 0 10.1127273-3.3927273 12-8.1818182C22.1127273 7.39272727 17.4545455 4 12 4Zm0 13.6363636c-3.01090909 0-5.45454545-2.4436363-5.45454545-5.4545454 0-3.01090911 2.44363636-5.45454547 5.45454545-5.45454547 3.0109091 0 5.4545455 2.44363636 5.4545455 5.45454547 0 3.0109091-2.4436364 5.4545454-5.4545455 5.4545454Zm0-8.72727269c-1.8109091 0-3.27272727 1.46181819-3.27272727 3.27272729 0 1.8109091 1.46181817 3.2727273 3.27272727 3.2727273s3.2727273-1.4618182 3.2727273-3.2727273c0-1.8109091-1.4618182-3.27272729-3.2727273-3.27272729Z"/>
2
+ <path d="M12 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5 5 5 0 0 1 5-5 5 5 0 0 1 5 5 5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"/>
3
3
  </svg>
package/svg/EyeOff.svg ADDED
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="M11.83 9 15 12.16V12a3 3 0 0 0-3-3h-.17m-4.3.8 1.55 1.55c-.05.21-.08.42-.08.65a3 3 0 0 0 3 3c.22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53a5 5 0 0 1-5-5c0-.79.2-1.53.53-2.2M2 4.27l2.28 2.28.45.45C3.08 8.3 1.78 10 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.43.42L19.73 22 21 20.73 3.27 3M12 7a5 5 0 0 1 5 5c0 .64-.13 1.26-.36 1.82l2.93 2.93c1.5-1.25 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-4 .7l2.17 2.15C10.74 7.13 11.35 7 12 7Z"/>
3
+ </svg>
package/svg/eye.json CHANGED
@@ -1,4 +1,6 @@
1
1
  {
2
- "aliases": [],
2
+ "aliases": [
3
+ "visibility"
4
+ ],
3
5
  "description": ""
4
- }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "aliases": [
3
+ "visibility"
4
+ ],
5
+ "description": ""
6
+ }