@integrigo/integrigo-ui 1.2.6 → 1.3.0

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://npm.pkg.github.com/integrigo"
5
5
  },
6
- "version": "1.2.6",
6
+ "version": "1.3.0",
7
7
  "main": "lib/index.js",
8
8
  "module": "lib/index.esm.js",
9
9
  "types": "lib/index.d.ts",
@@ -47,5 +47,10 @@
47
47
  "storybook": "start-storybook -p 6006 -c ./src/.storybook",
48
48
  "build-storybook": "build-storybook",
49
49
  "build": "rollup -c"
50
+ },
51
+ "exports": {
52
+ ".": "./index.ts",
53
+ "./lib/*": "./components/*/index.ts",
54
+ "./style/": "./style/"
50
55
  }
51
56
  }
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- "stories": [
3
- "../components/**/*.stories.mdx",
4
- "../components/**/*.stories.@(js|jsx|ts|tsx)"
5
- ],
6
- "addons": [
7
- "@storybook/addon-links",
8
- "@storybook/addon-essentials",
9
- "@storybook/addon-interactions"
10
- ],
11
- "framework": "@storybook/react"
12
- }
@@ -1,20 +0,0 @@
1
- import { GlobalStyles } from '../styles'
2
-
3
- export const parameters = {
4
- actions: { argTypesRegex: "^on[A-Z].*" },
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/,
9
- },
10
- },
11
- }
12
-
13
- export const decorators = [
14
- (Story) => (
15
- <>
16
- <GlobalStyles/>
17
- <Story />
18
- </>
19
- ),
20
- ];
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Button } from './Button';
5
-
6
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
- export default {
8
- title: 'Atoms/Button',
9
- component: Button,
10
- } as ComponentMeta<typeof Button>;
11
-
12
- const Template: ComponentStory<typeof Button> = ({ label, ...args}) => <Button {...args}>{label}</Button>;
13
-
14
- export const Primary = Template.bind({});
15
- Primary.args = {
16
- primary: true,
17
- label: 'Button',
18
- };
19
-
20
- export const Secondary = Template.bind({});
21
- Secondary.args = {
22
- label: 'Button',
23
- };
24
-
25
- export const Ghost = Template.bind({});
26
- Ghost.args = {
27
- ghost: true,
28
- label: 'Button',
29
- };
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Card } from './Card';
5
-
6
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
- export default {
8
- title: 'Atoms/Card',
9
- component: Card,
10
- } as ComponentMeta<typeof Card>;
11
-
12
- const Template: ComponentStory<typeof Card> = (args) => <Card {...args}>Content</Card>;
13
-
14
- export const Basic = Template.bind({});
15
- Basic.args = {};
16
-
17
- export const Inversed = Template.bind({});
18
- Inversed.args = {
19
- inverse: true
20
- };
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { ComponentStory, ComponentMeta } from "@storybook/react";
3
-
4
- import { Icon } from "./Icon";
5
-
6
- export default {
7
- title: "Atoms/Icon",
8
- component: Icon,
9
- } as ComponentMeta<typeof Icon>;
10
-
11
- const Template: ComponentStory<typeof Icon> = (args) => <Icon {...args} />;
12
-
13
- export const Bars = Template.bind({});
14
- Bars.args = { icon: "bars" };
15
-
16
- export const Plus = Template.bind({});
17
- Plus.args = { icon: "plus" };
18
-
19
- export const Minus = Template.bind({});
20
- Minus.args = { icon: "minus" };
21
-
22
- export const Facebook = Template.bind({});
23
- Facebook.args = { icon: "facebook" };
24
-
25
- export const Instagram = Template.bind({});
26
- Instagram.args = { icon: "instagram" };
27
-
28
- export const Linkedin = Template.bind({});
29
- Linkedin.args = { icon: "linkedin" };
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Input } from './Input';
5
-
6
- export default {
7
- title: 'Atoms/Input',
8
- component: Input,
9
- } as ComponentMeta<typeof Input>;
10
-
11
- const Template: ComponentStory<typeof Input> = (args) => <Input {...args}/>;
12
-
13
- export const Basic = Template.bind({});
14
- Basic.args = {
15
- placeholder: "Start"
16
- };
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Nav } from './Nav';
5
-
6
- export default {
7
- title: 'Atoms/Nav',
8
- component: Nav,
9
- } as ComponentMeta<typeof Nav>;
10
-
11
- const Template: ComponentStory<typeof Nav> = (args) => <Nav {...args}>The Nav text</Nav>;
12
-
13
- export const Basic = Template.bind({});
14
- Basic.args = {};
15
-
16
- export const Active = Template.bind({});
17
- Active.args = {
18
- active: true
19
- };
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Pill } from './Pill';
5
-
6
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
- export default {
8
- title: 'Atoms/Pill',
9
- component: Pill,
10
- } as ComponentMeta<typeof Pill>;
11
-
12
- const Template: ComponentStory<typeof Pill> = (args) => <Pill {...args}>Tag</Pill>;
13
-
14
- export const Orange = Template.bind({});
15
- Orange.args = {
16
- variant: 'orange'
17
- };
18
-
19
- export const Green = Template.bind({});
20
- Green.args = {
21
- variant: 'green'
22
- };
23
-
24
- export const Red = Template.bind({});
25
- Red.args = {
26
- variant: 'red'
27
- };
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Body } from './Body';
5
-
6
- export default {
7
- title: 'Atoms/Typography/Body',
8
- component: Body,
9
- } as ComponentMeta<typeof Body>;
10
-
11
- const Template: ComponentStory<typeof Body> = (args) => <Body {...args}>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque pharetra urna non purus convallis dignissim. Sed lobortis sem molestie est euismod, euismod aliquet dolor ullamcorper. Vivamus nisl metus, ultricies ac pharetra vel, faucibus vel lacus. Vestibulum eget nisi laoreet, dignissim urna sit amet, pretium arcu. Sed non diam dictum, sollicitudin orci et, ultricies nunc. Suspendisse ultrices mi tincidunt efficitur tristique. Vivamus fringilla condimentum tempus. Aliquam varius quam sit amet nunc iaculis, finibus dictum leo tincidunt.</Body>;
12
-
13
- export const XXL = Template.bind({});
14
- XXL.args = {
15
- size: 'xxl'
16
- };
17
-
18
- export const XL = Template.bind({});
19
- XL.args = {
20
- size: 'xl'
21
- };
22
-
23
- export const L = Template.bind({});
24
- L.args = {
25
- size: 'l'
26
- };
27
-
28
- export const M = Template.bind({});
29
- M.args = {
30
- size: 'm'
31
- };
32
-
33
- export const S = Template.bind({});
34
- S.args = {
35
- size: 's'
36
- };
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Hero } from './Hero';
5
-
6
- export default {
7
- title: 'Atoms/Typography/Hero',
8
- component: Hero,
9
- } as ComponentMeta<typeof Hero>;
10
-
11
- const Template: ComponentStory<typeof Hero> = (args) => <Hero {...args}>Title</Hero>;
12
-
13
- export const XXL = Template.bind({});
14
- XXL.args = {
15
- size: 'xxl'
16
- };
17
-
18
- export const XL = Template.bind({});
19
- XL.args = {
20
- size: 'xl'
21
- };
22
-
23
- export const L = Template.bind({});
24
- L.args = {
25
- size: 'l'
26
- };
27
-
28
- export const M = Template.bind({});
29
- M.args = {
30
- size: 'm'
31
- };
32
-
33
- export const S = Template.bind({});
34
- S.args = {
35
- size: 's'
36
- };
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { Label } from './Label';
5
-
6
- export default {
7
- title: 'Atoms/Typography/Label',
8
- component: Label,
9
- } as ComponentMeta<typeof Label>;
10
-
11
- const Template: ComponentStory<typeof Label> = (args) => <Label {...args}>The label text</Label>;
12
-
13
- export const XXL = Template.bind({});
14
- XXL.args = {
15
- size: 'xxl'
16
- };
17
-
18
- export const XL = Template.bind({});
19
- XL.args = {
20
- size: 'xl'
21
- };
22
-
23
- export const L = Template.bind({});
24
- L.args = {
25
- size: 'l'
26
- };
27
-
28
- export const M = Template.bind({});
29
- M.args = {
30
- size: 'm'
31
- };
32
-
33
- export const S = Template.bind({});
34
- S.args = {
35
- size: 's'
36
- };
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
-
4
- import { InfoCard } from './InfoCard';
5
-
6
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7
- export default {
8
- title: 'Molecules/InfoCard',
9
- component: InfoCard,
10
- } as ComponentMeta<typeof InfoCard>;
11
-
12
- const Template: ComponentStory<typeof InfoCard> = (args) => <InfoCard {...args}>Tag</InfoCard>;
13
-
14
- export const Basic = Template.bind({});
15
- Basic.args = {
16
- title: "Title",
17
- body: 'This is body'
18
- };
19
-
20
- export const WithBackground = Template.bind({});
21
- WithBackground.args = {
22
- title: "Title",
23
- body: 'This is body',
24
- background: <div style={{ width: '100%', height: '240px', backgroundColor: 'var(--color-ecru)'}}/>
25
- };
26
-
27
- export const Inversed = Template.bind({});
28
- Inversed.args = {
29
- title: "Title",
30
- body: 'This is body',
31
- inverse: true
32
- };