@integrigo/integrigo-ui 1.2.1 → 1.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.
- package/lib/components/atoms/Icon/Icon.d.ts +4 -2
- package/lib/components/atoms/Icon/Icon.stories.d.ts +13 -4
- package/lib/index.esm.js +3303 -15
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3303 -15
- package/lib/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/atoms/Icon/Icon.stories.tsx +10 -1
- package/src/components/atoms/Icon/Icon.tsx +34 -12
@@ -1,7 +1,9 @@
|
|
1
|
-
import React from
|
1
|
+
import React from "react";
|
2
2
|
declare type IconType = "bars" | "plus" | "minus";
|
3
|
+
declare const SOCIAL_ICONS: string[];
|
4
|
+
declare type IconSocialType = typeof SOCIAL_ICONS[number];
|
3
5
|
declare type IconProps = {
|
4
|
-
icon: IconType;
|
6
|
+
icon: IconType | IconSocialType;
|
5
7
|
};
|
6
8
|
export declare const Icon: React.FC<IconProps>;
|
7
9
|
export {};
|
@@ -1,15 +1,24 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
3
3
|
declare const _default: ComponentMeta<React.FC<{
|
4
|
-
icon:
|
4
|
+
icon: string;
|
5
5
|
}>>;
|
6
6
|
export default _default;
|
7
7
|
export declare const Bars: ComponentStory<React.FC<{
|
8
|
-
icon:
|
8
|
+
icon: string;
|
9
9
|
}>>;
|
10
10
|
export declare const Plus: ComponentStory<React.FC<{
|
11
|
-
icon:
|
11
|
+
icon: string;
|
12
12
|
}>>;
|
13
13
|
export declare const Minus: ComponentStory<React.FC<{
|
14
|
-
icon:
|
14
|
+
icon: string;
|
15
|
+
}>>;
|
16
|
+
export declare const Facebook: ComponentStory<React.FC<{
|
17
|
+
icon: string;
|
18
|
+
}>>;
|
19
|
+
export declare const Instagram: ComponentStory<React.FC<{
|
20
|
+
icon: string;
|
21
|
+
}>>;
|
22
|
+
export declare const Linkedin: ComponentStory<React.FC<{
|
23
|
+
icon: string;
|
15
24
|
}>>;
|