@integrigo/integrigo-ui 1.6.14-b → 1.6.14-e
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.
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/src/components/atoms/Icon/Icon.d.ts +35 -35
- package/package.json +1 -1
- package/rollup.config.js +0 -1
- package/src/components/atoms/Icon/Icon.tsx +72 -40
@@ -1,40 +1,40 @@
|
|
1
1
|
import React from "react";
|
2
2
|
export declare const iconHashMap: {
|
3
|
-
"angle-down":
|
4
|
-
"arrow-left":
|
5
|
-
"arrow-right":
|
6
|
-
bars:
|
7
|
-
bell:
|
8
|
-
"check-circle":
|
9
|
-
"check-square":
|
10
|
-
"clipboad-notes":
|
11
|
-
close:
|
12
|
-
"create-dashboard":
|
13
|
-
"dice-five":
|
14
|
-
edit:
|
15
|
-
"ellipsis-horizontal":
|
16
|
-
"ellipsis-vertical":
|
17
|
-
envelope:
|
18
|
-
"exclamation-circle":
|
19
|
-
"exclamation-triangle":
|
20
|
-
exit:
|
21
|
-
facebook:
|
22
|
-
home:
|
23
|
-
"image-edit":
|
24
|
-
instagram:
|
25
|
-
linkedin:
|
26
|
-
lock:
|
27
|
-
minus:
|
28
|
-
phone:
|
29
|
-
plus:
|
30
|
-
process:
|
31
|
-
"points-circle":
|
32
|
-
redo:
|
33
|
-
setting:
|
34
|
-
user:
|
35
|
-
"user-circle":
|
36
|
-
"user-plus":
|
37
|
-
users:
|
3
|
+
"angle-down": React.LazyExoticComponent<React.FCS<{}>>;
|
4
|
+
"arrow-left": React.LazyExoticComponent<React.FCS<{}>>;
|
5
|
+
"arrow-right": React.LazyExoticComponent<React.FCS<{}>>;
|
6
|
+
bars: React.LazyExoticComponent<React.FCS<{}>>;
|
7
|
+
bell: React.LazyExoticComponent<React.FCS<{}>>;
|
8
|
+
"check-circle": React.LazyExoticComponent<React.FCS<{}>>;
|
9
|
+
"check-square": React.LazyExoticComponent<React.FCS<{}>>;
|
10
|
+
"clipboad-notes": React.LazyExoticComponent<React.FCS<{}>>;
|
11
|
+
close: React.LazyExoticComponent<React.FCS<{}>>;
|
12
|
+
"create-dashboard": React.LazyExoticComponent<React.FCS<{}>>;
|
13
|
+
"dice-five": React.LazyExoticComponent<React.FCS<{}>>;
|
14
|
+
edit: React.LazyExoticComponent<React.FCS<{}>>;
|
15
|
+
"ellipsis-horizontal": React.LazyExoticComponent<React.FCS<{}>>;
|
16
|
+
"ellipsis-vertical": React.LazyExoticComponent<React.FCS<{}>>;
|
17
|
+
envelope: React.LazyExoticComponent<React.FCS<{}>>;
|
18
|
+
"exclamation-circle": React.LazyExoticComponent<React.FCS<{}>>;
|
19
|
+
"exclamation-triangle": React.LazyExoticComponent<React.FCS<{}>>;
|
20
|
+
exit: React.LazyExoticComponent<React.FCS<{}>>;
|
21
|
+
facebook: React.LazyExoticComponent<React.FCS<{}>>;
|
22
|
+
home: React.LazyExoticComponent<React.FCS<{}>>;
|
23
|
+
"image-edit": React.LazyExoticComponent<React.FCS<{}>>;
|
24
|
+
instagram: React.LazyExoticComponent<React.FCS<{}>>;
|
25
|
+
linkedin: React.LazyExoticComponent<React.FCS<{}>>;
|
26
|
+
lock: React.LazyExoticComponent<React.FCS<{}>>;
|
27
|
+
minus: React.LazyExoticComponent<React.FCS<{}>>;
|
28
|
+
phone: React.LazyExoticComponent<React.FCS<{}>>;
|
29
|
+
plus: React.LazyExoticComponent<React.FCS<{}>>;
|
30
|
+
process: React.LazyExoticComponent<React.FCS<{}>>;
|
31
|
+
"points-circle": React.LazyExoticComponent<React.FCS<{}>>;
|
32
|
+
redo: React.LazyExoticComponent<React.FCS<{}>>;
|
33
|
+
setting: React.LazyExoticComponent<React.FCS<{}>>;
|
34
|
+
user: React.LazyExoticComponent<React.FCS<{}>>;
|
35
|
+
"user-circle": React.LazyExoticComponent<React.FCS<{}>>;
|
36
|
+
"user-plus": React.LazyExoticComponent<React.FCS<{}>>;
|
37
|
+
users: React.LazyExoticComponent<React.FCS<{}>>;
|
38
38
|
};
|
39
39
|
export declare type IconType = keyof typeof iconHashMap;
|
40
40
|
declare type IconProps = React.SVGProps<SVGSVGElement> & {
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
@@ -1,42 +1,78 @@
|
|
1
1
|
import React, { Suspense } from "react";
|
2
2
|
import { Color } from "../../../styles";
|
3
3
|
|
4
|
+
import AngleDown from "./icons/AngleDown";
|
5
|
+
import ArrowLeft from "./icons/ArrowLeft";
|
6
|
+
import ArrowRight from "./icons/ArrowRight";
|
7
|
+
import Bars from "./icons/Bars";
|
8
|
+
import Bell from "./icons/Bell";
|
9
|
+
import CheckCircle from "./icons/CheckCircle";
|
10
|
+
import CheckSquare from "./icons/CheckSquare";
|
11
|
+
import ClipboardNotes from "./icons/ClipboardNotes";
|
12
|
+
import Close from "./icons/Close";
|
13
|
+
import CreateDashboard from "./icons/CreateDashboard";
|
14
|
+
import DiceFive from "./icons/DiceFive";
|
15
|
+
import Edit from "./icons/Edit";
|
16
|
+
import EllipsisVertical from "./icons/EllipsisVertical";
|
17
|
+
import EllipsisHorizontal from "./icons/EllipsisHorizontal";
|
18
|
+
import Envelope from "./icons/Envelope";
|
19
|
+
import ExclamationCircle from "./icons/ExclamationCircle";
|
20
|
+
import ExclamationTriangle from "./icons/ExclamationTriangle";
|
21
|
+
import Exit from "./icons/Exit";
|
22
|
+
import Facebook from "./icons/Facebook";
|
23
|
+
import Home from "./icons/Home";
|
24
|
+
import ImageEdit from "./icons/ImageEdit";
|
25
|
+
import Instagram from "./icons/Instagram";
|
26
|
+
import Linkedin from "./icons/Linkedin";
|
27
|
+
import Lock from "./icons/Lock";
|
28
|
+
import Minus from "./icons/Minus";
|
29
|
+
import Phone from "./icons/Phone";
|
30
|
+
import Plus from "./icons/Plus";
|
31
|
+
import PointsCircle from "./icons/PointsCircle";
|
32
|
+
import Process from "./icons/Process";
|
33
|
+
import Redo from "./icons/Redo";
|
34
|
+
import Setting from "./icons/Setting";
|
35
|
+
import User from "./icons/User";
|
36
|
+
import UserCircle from "./icons/UserCircle";
|
37
|
+
import UserPlus from "./icons/UserPlus";
|
38
|
+
import Users from "./icons/Users";
|
39
|
+
|
4
40
|
export const iconHashMap = {
|
5
|
-
"angle-down":
|
6
|
-
"arrow-left":
|
7
|
-
"arrow-right":
|
8
|
-
bars:
|
9
|
-
bell:
|
10
|
-
"check-circle":
|
11
|
-
"check-square":
|
12
|
-
"clipboad-notes":
|
13
|
-
close:
|
14
|
-
"create-dashboard":
|
15
|
-
"dice-five":
|
16
|
-
edit:
|
17
|
-
"ellipsis-horizontal":
|
18
|
-
"ellipsis-vertical":
|
19
|
-
envelope:
|
20
|
-
"exclamation-circle":
|
21
|
-
"exclamation-triangle":
|
22
|
-
exit:
|
23
|
-
facebook:
|
24
|
-
home:
|
25
|
-
"image-edit":
|
26
|
-
instagram:
|
27
|
-
linkedin:
|
28
|
-
lock:
|
29
|
-
minus:
|
30
|
-
phone:
|
31
|
-
plus:
|
32
|
-
process:
|
33
|
-
"points-circle":
|
34
|
-
redo:
|
35
|
-
setting:
|
36
|
-
user:
|
37
|
-
"user-circle":
|
38
|
-
"user-plus":
|
39
|
-
users:
|
41
|
+
"angle-down": AngleDown,
|
42
|
+
"arrow-left": ArrowLeft,
|
43
|
+
"arrow-right": ArrowRight,
|
44
|
+
bars: Bars,
|
45
|
+
bell: Bell,
|
46
|
+
"check-circle": CheckCircle,
|
47
|
+
"check-square": CheckSquare,
|
48
|
+
"clipboad-notes": ClipboardNotes,
|
49
|
+
close: Close,
|
50
|
+
"create-dashboard": CreateDashboard,
|
51
|
+
"dice-five": DiceFive,
|
52
|
+
edit: Edit,
|
53
|
+
"ellipsis-horizontal": EllipsisHorizontal,
|
54
|
+
"ellipsis-vertical": EllipsisVertical,
|
55
|
+
envelope: Envelope,
|
56
|
+
"exclamation-circle": ExclamationCircle,
|
57
|
+
"exclamation-triangle": ExclamationTriangle,
|
58
|
+
exit: Exit,
|
59
|
+
facebook: Facebook,
|
60
|
+
home: Home,
|
61
|
+
"image-edit": ImageEdit,
|
62
|
+
instagram: Instagram,
|
63
|
+
linkedin: Linkedin,
|
64
|
+
lock: Lock,
|
65
|
+
minus: Minus,
|
66
|
+
phone: Phone,
|
67
|
+
plus: Plus,
|
68
|
+
process: Process,
|
69
|
+
"points-circle": PointsCircle,
|
70
|
+
redo: Redo,
|
71
|
+
setting: Setting,
|
72
|
+
user: User,
|
73
|
+
"user-circle": UserCircle,
|
74
|
+
"user-plus": UserPlus,
|
75
|
+
users: Users,
|
40
76
|
};
|
41
77
|
|
42
78
|
export type IconType = keyof typeof iconHashMap;
|
@@ -76,11 +112,7 @@ export const Icon: React.FCS<IconProps> = ({
|
|
76
112
|
size = "ultra-small",
|
77
113
|
...props
|
78
114
|
}) => {
|
79
|
-
|
80
|
-
const Component = React.lazy(
|
81
|
-
() =>
|
82
|
-
import(__dirname + "/icons/" + iconHashMap[type])
|
83
|
-
);
|
115
|
+
const Component = iconHashMap[type];
|
84
116
|
const sizes = typeof size === "string" ? sizeHashMap[size] : size;
|
85
117
|
|
86
118
|
return (
|