@integrigo/integrigo-ui 1.6.14-a → 1.6.14-d

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