@imtf/icons 0.2.7 → 0.2.9

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,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function CodeIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default CodeIcon;
@@ -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 CodeIcon = ({
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: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4Zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4Z"
35
+ }));
36
+ };
37
+
38
+ const ForwardRef = forwardRef(CodeIcon);
39
+ module.exports = ForwardRef;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function WorkbenchIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default WorkbenchIcon;
@@ -0,0 +1,41 @@
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 WorkbenchIcon = ({
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: "m21.67 18.1701-5.3-5.3h-.99l-2.54 2.54v.99l5.3 5.3c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41Z"
35
+ }), /*#__PURE__*/createElement("path", {
36
+ d: "m17.34 10.19 1.41-1.41 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-3.54-3.54-1.41 1.41V1.71l-.7-.71-3.54 3.54.71.71h2.83l-1.41 1.41 1.06 1.06-2.89 2.89-4.13-4.13V5.06L4.83 2.04 2 4.87 5.03 7.9h1.41l4.13 4.13-.85.85H7.6l-5.3 5.3c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l5.3-5.3v-2.12l5.15-5.15 1.06 1.05Z"
37
+ }));
38
+ };
39
+
40
+ const ForwardRef = forwardRef(WorkbenchIcon);
41
+ module.exports = ForwardRef;
@@ -26,6 +26,7 @@ export { default as ChevronLeftIcon } from './ChevronLeftIcon';
26
26
  export { default as ChevronRightIcon } from './ChevronRightIcon';
27
27
  export { default as ChevronUpIcon } from './ChevronUpIcon';
28
28
  export { default as CircleIcon } from './CircleIcon';
29
+ export { default as CodeIcon } from './CodeIcon';
29
30
  export { default as CollapseAllIcon } from './CollapseAllIcon';
30
31
  export { default as CommentIcon } from './CommentIcon';
31
32
  export { default as CommentResolvedIcon } from './CommentResolvedIcon';
@@ -149,5 +150,6 @@ export { default as UploadIcon } from './UploadIcon';
149
150
  export { default as ViewTreeIcon } from './ViewTreeIcon';
150
151
  export { default as WarningIcon } from './WarningIcon';
151
152
  export { default as WatermarkIcon } from './WatermarkIcon';
153
+ export { default as WorkbenchIcon } from './WorkbenchIcon';
152
154
  export { default as XlsIcon } from './XlsIcon';
153
155
  export { default as XlsLinkIcon } from './XlsLinkIcon';
@@ -26,6 +26,7 @@ module.exports.ChevronLeftIcon = require('./ChevronLeftIcon.js');
26
26
  module.exports.ChevronRightIcon = require('./ChevronRightIcon.js');
27
27
  module.exports.ChevronUpIcon = require('./ChevronUpIcon.js');
28
28
  module.exports.CircleIcon = require('./CircleIcon.js');
29
+ module.exports.CodeIcon = require('./CodeIcon.js');
29
30
  module.exports.CollapseAllIcon = require('./CollapseAllIcon.js');
30
31
  module.exports.CommentIcon = require('./CommentIcon.js');
31
32
  module.exports.CommentResolvedIcon = require('./CommentResolvedIcon.js');
@@ -149,5 +150,6 @@ module.exports.UploadIcon = require('./UploadIcon.js');
149
150
  module.exports.ViewTreeIcon = require('./ViewTreeIcon.js');
150
151
  module.exports.WarningIcon = require('./WarningIcon.js');
151
152
  module.exports.WatermarkIcon = require('./WatermarkIcon.js');
153
+ module.exports.WorkbenchIcon = require('./WorkbenchIcon.js');
152
154
  module.exports.XlsIcon = require('./XlsIcon.js');
153
155
  module.exports.XlsLinkIcon = require('./XlsLinkIcon.js');
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function CodeIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default CodeIcon;
@@ -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 CodeIcon = ({
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: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4Zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4Z"
26
+ }));
27
+ };
28
+
29
+ const ForwardRef = /*#__PURE__*/forwardRef(CodeIcon);
30
+ export default ForwardRef;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface IconProps {
3
+ color?: string;
4
+ size?: string | number;
5
+ }
6
+ declare function WorkbenchIcon(props: React.SVGProps<SVGSVGElement> & IconProps): JSX.Element;
7
+ export default WorkbenchIcon;
@@ -0,0 +1,32 @@
1
+ import { createElement, forwardRef, useContext, useMemo } from 'react';
2
+ import { IconContext } from '../index.js';
3
+ import get from 'lodash.get';
4
+
5
+ const WorkbenchIcon = ({
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: "m21.67 18.1701-5.3-5.3h-.99l-2.54 2.54v.99l5.3 5.3c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41Z"
26
+ }), /*#__PURE__*/createElement("path", {
27
+ d: "m17.34 10.19 1.41-1.41 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-3.54-3.54-1.41 1.41V1.71l-.7-.71-3.54 3.54.71.71h2.83l-1.41 1.41 1.06 1.06-2.89 2.89-4.13-4.13V5.06L4.83 2.04 2 4.87 5.03 7.9h1.41l4.13 4.13-.85.85H7.6l-5.3 5.3c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l5.3-5.3v-2.12l5.15-5.15 1.06 1.05Z"
28
+ }));
29
+ };
30
+
31
+ const ForwardRef = /*#__PURE__*/forwardRef(WorkbenchIcon);
32
+ export default ForwardRef;
@@ -26,6 +26,7 @@ export { default as ChevronLeftIcon } from './ChevronLeftIcon';
26
26
  export { default as ChevronRightIcon } from './ChevronRightIcon';
27
27
  export { default as ChevronUpIcon } from './ChevronUpIcon';
28
28
  export { default as CircleIcon } from './CircleIcon';
29
+ export { default as CodeIcon } from './CodeIcon';
29
30
  export { default as CollapseAllIcon } from './CollapseAllIcon';
30
31
  export { default as CommentIcon } from './CommentIcon';
31
32
  export { default as CommentResolvedIcon } from './CommentResolvedIcon';
@@ -149,5 +150,6 @@ export { default as UploadIcon } from './UploadIcon';
149
150
  export { default as ViewTreeIcon } from './ViewTreeIcon';
150
151
  export { default as WarningIcon } from './WarningIcon';
151
152
  export { default as WatermarkIcon } from './WatermarkIcon';
153
+ export { default as WorkbenchIcon } from './WorkbenchIcon';
152
154
  export { default as XlsIcon } from './XlsIcon';
153
155
  export { default as XlsLinkIcon } from './XlsLinkIcon';
@@ -26,6 +26,7 @@ export { default as ChevronLeftIcon } from './ChevronLeftIcon.js';
26
26
  export { default as ChevronRightIcon } from './ChevronRightIcon.js';
27
27
  export { default as ChevronUpIcon } from './ChevronUpIcon.js';
28
28
  export { default as CircleIcon } from './CircleIcon.js';
29
+ export { default as CodeIcon } from './CodeIcon.js';
29
30
  export { default as CollapseAllIcon } from './CollapseAllIcon.js';
30
31
  export { default as CommentIcon } from './CommentIcon.js';
31
32
  export { default as CommentResolvedIcon } from './CommentResolvedIcon.js';
@@ -149,5 +150,6 @@ export { default as UploadIcon } from './UploadIcon.js';
149
150
  export { default as ViewTreeIcon } from './ViewTreeIcon.js';
150
151
  export { default as WarningIcon } from './WarningIcon.js';
151
152
  export { default as WatermarkIcon } from './WatermarkIcon.js';
153
+ export { default as WorkbenchIcon } from './WorkbenchIcon.js';
152
154
  export { default as XlsIcon } from './XlsIcon.js';
153
155
  export { default as XlsLinkIcon } from './XlsLinkIcon.js';
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@imtf/icons",
3
3
  "private": false,
4
- "version": "0.2.7",
4
+ "version": "0.2.9",
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",
8
8
  "types": "./lib/esm/index.d.ts",
9
- "sideEffects": "false",
9
+ "sideEffects": false,
10
10
  "repository": "ssh://git@gitlab.imtf-devops.com:2222/web/icons.git",
11
11
  "homepage": "https://gitlab.imtf-devops.com/web/icons",
12
12
  "contributors": [
package/svg/Code.svg ADDED
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4Zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4Zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4Z"/>
3
+ </svg>
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <path d="m21.67 18.1701-5.3-5.3h-.99l-2.54 2.54v.99l5.3 5.3c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41Z"/>
3
+ <path d="m17.34 10.19 1.41-1.41 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-3.54-3.54-1.41 1.41V1.71l-.7-.71-3.54 3.54.71.71h2.83l-1.41 1.41 1.06 1.06-2.89 2.89-4.13-4.13V5.06L4.83 2.04 2 4.87 5.03 7.9h1.41l4.13 4.13-.85.85H7.6l-5.3 5.3c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l5.3-5.3v-2.12l5.15-5.15 1.06 1.05Z"/>
4
+ </svg>
package/svg/code.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": ""
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": ""
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "aliases": [],
3
+ "description": "Workbench icon"
4
+ }
package/changelog.md DELETED
@@ -1,59 +0,0 @@
1
- # Icons changelog
2
-
3
- ## 0.2.7
4
-
5
- - Updated Group icon
6
- - Add GroupAdd, GroupRemove, LegalEntity, NaturalPerson icons
7
-
8
- ## 0.2.6
9
-
10
- - Add Incoming & Outgoing icons
11
-
12
- ## 0.2.5
13
-
14
- - Add paddingless logo v0.2.5
15
-
16
- ## 0.2.4
17
-
18
- - Rename logo icon to fix build issue
19
-
20
- ## 0.2.3
21
-
22
- - Add correct IMTF logo version
23
-
24
- ## 0.2.2
25
-
26
- - Added Eye Off icon
27
-
28
- ## 0.2.1
29
-
30
- - Added React 18 to peer dependencies.
31
-
32
- ## 0.2.0
33
-
34
- - Forwarded ref to svg component / icons
35
-
36
- ## 0.1.3
37
-
38
- - Fix logo icon color
39
-
40
- ## 0.1.2
41
-
42
- - Fix changelog issue
43
- - Add new logo icon
44
-
45
- ## 0.1.1
46
-
47
- - Add props interface to ts icons
48
-
49
- ## 0.1.0
50
-
51
- - Added modules icons
52
-
53
- ## 0.0.8
54
-
55
- - Remove side effects to enable tree shaking
56
-
57
- ## 0.0.7
58
-
59
- - main export added to package js (was preventing test passing in @imtf/react-component)
package/svg/.DS_Store DELETED
Binary file