trepur_components 1.0.3 → 1.0.4
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/dist/src/lib/components/Accordion/index.js +3 -1
- package/dist/src/lib/components/Accordion/index.js.map +1 -1
- package/dist/src/lib/components/Accordion/style.module.css +4 -0
- package/dist/src/lib/components/Accordion/style.module.css.map +1 -0
- package/dist/src/lib/components/ImageLinkList/index.d.ts +1 -1
- package/dist/src/lib/components/Nav/index.d.ts +1 -1
- package/dist/src/lib/components/SocialBlock/index.js +2 -2
- package/dist/src/lib/components/SocialBlock/index.js.map +1 -1
- package/dist/src/lib/components/Timeline/index.css +135 -0
- package/dist/src/lib/components/Timeline/index.css.map +1 -0
- package/dist/src/lib/components/Tubestops/index.css +97 -0
- package/dist/src/lib/components/Tubestops/index.css.map +1 -0
- package/dist/src/lib/typography/index.d.ts +1 -3
- package/dist/src/lib/typography/index.js +1 -1
- package/dist/src/lib/typography/index.js.map +1 -1
- package/package.json +13 -6
- package/dist/src/lib/components/Accordion/Accordion.stories.d.ts +0 -6
- package/dist/src/lib/components/Accordion/Accordion.stories.js +0 -80
- package/dist/src/lib/components/Accordion/Accordion.stories.js.map +0 -1
- package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +0 -6
- package/dist/src/lib/components/AlertBar/AlertBar.stories.js +0 -91
- package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +0 -1
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -6
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +0 -56
- package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +0 -1
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +0 -6
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -45
- package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +0 -1
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +0 -6
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +0 -50
- package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +0 -1
- package/dist/src/lib/components/Button/button.stories.d.ts +0 -6
- package/dist/src/lib/components/Button/button.stories.js +0 -132
- package/dist/src/lib/components/Button/button.stories.js.map +0 -1
- package/dist/src/lib/components/Card/Card.stories.d.ts +0 -8
- package/dist/src/lib/components/Card/Card.stories.js +0 -124
- package/dist/src/lib/components/Card/Card.stories.js.map +0 -1
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +0 -6
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +0 -40
- package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +0 -1
- package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +0 -6
- package/dist/src/lib/components/Carousel/Carousel.stories.js +0 -297
- package/dist/src/lib/components/Carousel/Carousel.stories.js.map +0 -1
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +0 -6
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +0 -14
- package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +0 -1
- package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +0 -6
- package/dist/src/lib/components/Collapsible/Collapsible.stories.js +0 -66
- package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +0 -1
- package/dist/src/lib/components/Column/Column.stories.d.ts +0 -6
- package/dist/src/lib/components/Column/Column.stories.js +0 -64
- package/dist/src/lib/components/Column/Column.stories.js.map +0 -1
- package/dist/src/lib/components/Container/Container.stories.d.ts +0 -6
- package/dist/src/lib/components/Container/Container.stories.js +0 -30
- package/dist/src/lib/components/Container/Container.stories.js.map +0 -1
- package/dist/src/lib/components/FooterBar/FooterBar.stories.d.ts +0 -6
- package/dist/src/lib/components/FooterBar/FooterBar.stories.js +0 -48
- package/dist/src/lib/components/FooterBar/FooterBar.stories.js.map +0 -1
- package/dist/src/lib/components/Form/Form.stories.d.ts +0 -6
- package/dist/src/lib/components/Form/Form.stories.js +0 -82
- package/dist/src/lib/components/Form/Form.stories.js.map +0 -1
- package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +0 -6
- package/dist/src/lib/components/FyreCard/FyreCard.stories.js +0 -22
- package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +0 -1
- package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +0 -6
- package/dist/src/lib/components/Greeting/Greeting.stories.js +0 -33
- package/dist/src/lib/components/Greeting/Greeting.stories.js.map +0 -1
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +0 -6
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +0 -46
- package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +0 -1
- package/dist/src/lib/components/Icon/Icon.stories.d.ts +0 -6
- package/dist/src/lib/components/Icon/Icon.stories.js +0 -87
- package/dist/src/lib/components/Icon/Icon.stories.js.map +0 -1
- package/dist/src/lib/components/Image/Image.stories.d.ts +0 -6
- package/dist/src/lib/components/Image/Image.stories.js +0 -73
- package/dist/src/lib/components/Image/Image.stories.js.map +0 -1
- package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +0 -9
- package/dist/src/lib/components/ImageLink/ImageLink.stories.js +0 -50
- package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +0 -1
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +0 -6
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +0 -27
- package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +0 -1
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +0 -6
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +0 -73
- package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +0 -1
- package/dist/src/lib/components/Input/Input.stories.d.ts +0 -6
- package/dist/src/lib/components/Input/Input.stories.js +0 -95
- package/dist/src/lib/components/Input/Input.stories.js.map +0 -1
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +0 -6
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +0 -16
- package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +0 -1
- package/dist/src/lib/components/Nav/Nav.stories.d.ts +0 -6
- package/dist/src/lib/components/Nav/Nav.stories.js +0 -134
- package/dist/src/lib/components/Nav/Nav.stories.js.map +0 -1
- package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +0 -6
- package/dist/src/lib/components/NavItem/NavItem.stories.js +0 -75
- package/dist/src/lib/components/NavItem/NavItem.stories.js.map +0 -1
- package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +0 -6
- package/dist/src/lib/components/NewsCard/NewsCard.stories.js +0 -60
- package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +0 -1
- package/dist/src/lib/components/Profile/Profile.stories.d.ts +0 -6
- package/dist/src/lib/components/Profile/Profile.stories.js +0 -41
- package/dist/src/lib/components/Profile/Profile.stories.js.map +0 -1
- package/dist/src/lib/components/Row/Row.stories.d.ts +0 -6
- package/dist/src/lib/components/Row/Row.stories.js +0 -37
- package/dist/src/lib/components/Row/Row.stories.js.map +0 -1
- package/dist/src/lib/components/Search/Search.stories.d.ts +0 -6
- package/dist/src/lib/components/Search/Search.stories.js +0 -48
- package/dist/src/lib/components/Search/Search.stories.js.map +0 -1
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +0 -6
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +0 -58
- package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +0 -1
- package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +0 -6
- package/dist/src/lib/components/StarRating/StarRating.stories.js +0 -17
- package/dist/src/lib/components/StarRating/StarRating.stories.js.map +0 -1
- package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +0 -6
- package/dist/src/lib/components/Testimonial/Testimonial.stories.js +0 -95
- package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +0 -1
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +0 -6
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +0 -63
- package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +0 -1
- package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +0 -6
- package/dist/src/lib/components/TextArea/TextArea.stories.js +0 -63
- package/dist/src/lib/components/TextArea/TextArea.stories.js.map +0 -1
- package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +0 -6
- package/dist/src/lib/components/Timeline/Timeline.stories.js +0 -87
- package/dist/src/lib/components/Timeline/Timeline.stories.js.map +0 -1
- package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +0 -6
- package/dist/src/lib/components/Tubestops/Tubestops.stories.js +0 -62
- package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +0 -1
- package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +0 -6
- package/dist/src/lib/components/UserIcon/UserIcon.stories.js +0 -63
- package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +0 -1
- package/dist/src/lib/components/Video/Video.stories.d.ts +0 -6
- package/dist/src/lib/components/Video/Video.stories.js +0 -17
- package/dist/src/lib/components/Video/Video.stories.js.map +0 -1
- package/dist/src/lib/typography/Fonts.stories.d.ts +0 -6
- package/dist/src/lib/typography/Fonts.stories.js +0 -12
- package/dist/src/lib/typography/Fonts.stories.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Breadcrumbs from './index';
|
|
3
|
-
const componentMeta = {
|
|
4
|
-
title: 'Trepur Components/Other/Atoms/Breadcrumbs',
|
|
5
|
-
component: Breadcrumbs,
|
|
6
|
-
argTypes: {
|
|
7
|
-
id: {
|
|
8
|
-
description: 'Defines the id of the component',
|
|
9
|
-
table: {
|
|
10
|
-
category: '',
|
|
11
|
-
type: { summary: 'string' },
|
|
12
|
-
defaultValue: { summary: 'undefined' }
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
className: {
|
|
16
|
-
description: 'Defines any additional classes for the components',
|
|
17
|
-
table: {
|
|
18
|
-
category: '',
|
|
19
|
-
type: { summary: 'string' },
|
|
20
|
-
defaultValue: { summary: 'undefined' }
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
links: {
|
|
24
|
-
description: 'An array of items to be displayed in the component',
|
|
25
|
-
table: {
|
|
26
|
-
category: '',
|
|
27
|
-
type: { summary: 'array' },
|
|
28
|
-
defaultValue: { summary: 'undefined' }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
args: {
|
|
33
|
-
links: [
|
|
34
|
-
{
|
|
35
|
-
href: '/',
|
|
36
|
-
name: 'link 1'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
href: '/',
|
|
40
|
-
name: 'link 2'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
href: '/',
|
|
44
|
-
name: 'link 3'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
href: '/',
|
|
48
|
-
name: 'link 4'
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const Template = (args) => React.createElement(Breadcrumbs, Object.assign({}, args));
|
|
54
|
-
export const _Breadcrumbs = Template.bind({});
|
|
55
|
-
export default componentMeta;
|
|
56
|
-
//# sourceMappingURL=Breadcrumbs.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Breadcrumbs/Breadcrumbs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,SAAS,CAAA;AAGjC,MAAM,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import BreadcrumbsBordered from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof BreadcrumbsBordered>;
|
|
5
|
-
export declare const _BreadcrumbsBordered: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { idAndClassName } from '../../utils/controls';
|
|
3
|
-
import BreadcrumbsBordered from './index';
|
|
4
|
-
const componentMeta = {
|
|
5
|
-
title: 'Trepur Components/Other/Organisms/Breadcrumbs',
|
|
6
|
-
component: BreadcrumbsBordered,
|
|
7
|
-
parameters: {},
|
|
8
|
-
argTypes: Object.assign(Object.assign({}, idAndClassName), { links: {
|
|
9
|
-
description: 'An array of objects to be displayed in the component',
|
|
10
|
-
control: { type: 'array', default: undefined },
|
|
11
|
-
table: {
|
|
12
|
-
category: '',
|
|
13
|
-
type: { summary: 'array' },
|
|
14
|
-
defaultValue: { summary: 'undefined' }
|
|
15
|
-
}
|
|
16
|
-
} }),
|
|
17
|
-
args: {
|
|
18
|
-
links: [
|
|
19
|
-
{
|
|
20
|
-
link: '/',
|
|
21
|
-
name: 'link 1'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
link: '/',
|
|
25
|
-
name: 'link 2'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
link: '/',
|
|
29
|
-
name: 'link 3'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
link: '/',
|
|
33
|
-
name: 'link 4'
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
link: '/',
|
|
37
|
-
name: 'link 5'
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const Template = (args) => React.createElement(BreadcrumbsBordered, Object.assign({}, args));
|
|
43
|
-
export const _BreadcrumbsBordered = Template.bind({});
|
|
44
|
-
export default componentMeta;
|
|
45
|
-
//# sourceMappingURL=BreadcrumbsBordered.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsBordered.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,mBAAmB,MAAM,SAAS,CAAA;AAGzC,MAAM,aAAa,GAA8C;IAC/D,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,mBAAmB;IAC9B,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAA;AAED,MAAM,QAAQ,GAA+C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAA;AAExG,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErD,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import BreadcrumbsItem from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof BreadcrumbsItem>;
|
|
5
|
-
export declare const _BreadcrumbsItem: ComponentStory<({ id, className, name, link, href, type, firstItem }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import BreadcrumbsItem from './index';
|
|
3
|
-
const componentMeta = {
|
|
4
|
-
title: 'Trepur Components/Other/Atoms/Breadcrumbs Item',
|
|
5
|
-
component: BreadcrumbsItem,
|
|
6
|
-
parameters: {},
|
|
7
|
-
argTypes: {
|
|
8
|
-
id: {
|
|
9
|
-
description: 'Defines the id of the component',
|
|
10
|
-
table: {
|
|
11
|
-
category: '',
|
|
12
|
-
type: { summary: 'string' },
|
|
13
|
-
defaultValue: { summary: 'undefined' }
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
className: {
|
|
17
|
-
description: 'Defines any additional classes for the components',
|
|
18
|
-
table: {
|
|
19
|
-
category: '',
|
|
20
|
-
type: { summary: 'string' },
|
|
21
|
-
defaultValue: { summary: 'undefined' }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
name: {
|
|
25
|
-
description: 'Specifies the name for the key attribute',
|
|
26
|
-
table: {
|
|
27
|
-
category: '',
|
|
28
|
-
type: { summary: 'string' },
|
|
29
|
-
defaultValue: { summary: 'undefined' }
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
type: {
|
|
33
|
-
description: 'Specifies the type of breadcrumbs to display ie link',
|
|
34
|
-
table: {
|
|
35
|
-
category: '',
|
|
36
|
-
type: { summary: 'string' },
|
|
37
|
-
defaultValue: { summary: 'undefined' }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
args: {
|
|
42
|
-
name: 'Link 1',
|
|
43
|
-
href: '/',
|
|
44
|
-
firstItem: false
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const Template = (args) => React.createElement(BreadcrumbsItem, Object.assign({}, args));
|
|
48
|
-
export const _BreadcrumbsItem = Template.bind({});
|
|
49
|
-
export default componentMeta;
|
|
50
|
-
//# sourceMappingURL=BreadcrumbsItem.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbsItem.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAe,MAAM,SAAS,CAAA;AAGrC,MAAM,aAAa,GAA0C;IAC3D,KAAK,EAAE,gDAAgD;IACvD,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,KAAK;KACjB;CACF,CAAA;AAED,MAAM,QAAQ,GAA2C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAA;AAEhG,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEjD,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Button from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Button>;
|
|
5
|
-
export declare const _Button: ComponentStory<({ id, className, onClick, hoverText, variant, type, href, rounded, disabled, isLoading, openInNewTab, children }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Button from './index';
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import { idAndClassName } from '../../utils/controls';
|
|
5
|
-
const componentMeta = {
|
|
6
|
-
title: 'Trepur Components/Rupert Bennett/Atoms/Button',
|
|
7
|
-
component: Button,
|
|
8
|
-
parameters: {
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
argTypes: Object.assign(Object.assign({}, idAndClassName), { onClick: {
|
|
16
|
-
type: { name: 'function', required: false },
|
|
17
|
-
description: 'The action to perform when clicking on the component',
|
|
18
|
-
action: 'onClick',
|
|
19
|
-
table: {
|
|
20
|
-
type: {
|
|
21
|
-
summary: 'function'
|
|
22
|
-
},
|
|
23
|
-
defaultValue: { summary: 'undefined' }
|
|
24
|
-
}
|
|
25
|
-
}, hoverText: {
|
|
26
|
-
type: {
|
|
27
|
-
name: 'string',
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
description: 'The text to display when hovering on the component',
|
|
31
|
-
table: {
|
|
32
|
-
type: {
|
|
33
|
-
summary: 'string'
|
|
34
|
-
},
|
|
35
|
-
defaultValue: {
|
|
36
|
-
summary: 'undefined'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}, variant: {
|
|
40
|
-
type: {
|
|
41
|
-
name: 'string', required: false
|
|
42
|
-
},
|
|
43
|
-
options: ['primary', 'secondary'],
|
|
44
|
-
description: 'The variant of button to render',
|
|
45
|
-
table: {
|
|
46
|
-
type: {
|
|
47
|
-
summary: 'primary'
|
|
48
|
-
},
|
|
49
|
-
defaultValue: {
|
|
50
|
-
summary: 'primary'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
defaultValue: 'primary',
|
|
54
|
-
control: {
|
|
55
|
-
type: 'radio'
|
|
56
|
-
}
|
|
57
|
-
}, type: {
|
|
58
|
-
type: {
|
|
59
|
-
name: 'string',
|
|
60
|
-
required: false
|
|
61
|
-
},
|
|
62
|
-
options: ['default', 'social', 'icon'],
|
|
63
|
-
description: 'The type of button to render',
|
|
64
|
-
table: {
|
|
65
|
-
type: {
|
|
66
|
-
summary: 'default'
|
|
67
|
-
},
|
|
68
|
-
defaultValue: {
|
|
69
|
-
summary: 'default'
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
defaultValue: 'default',
|
|
73
|
-
control: { type: 'radio' }
|
|
74
|
-
}, href: {
|
|
75
|
-
type: { name: 'string', required: false },
|
|
76
|
-
description: 'The link attached to the component',
|
|
77
|
-
table: {
|
|
78
|
-
type: {
|
|
79
|
-
summary: 'default'
|
|
80
|
-
},
|
|
81
|
-
defaultValue: {
|
|
82
|
-
summary: 'undefined'
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}, rounded: {
|
|
86
|
-
type: {
|
|
87
|
-
name: 'boolean',
|
|
88
|
-
required: false
|
|
89
|
-
},
|
|
90
|
-
description: 'rounds the borders when true',
|
|
91
|
-
defaultValue: 'true'
|
|
92
|
-
}, disabled: {
|
|
93
|
-
type: {
|
|
94
|
-
name: 'boolean',
|
|
95
|
-
required: false
|
|
96
|
-
},
|
|
97
|
-
description: 'Can the carousel be dragged or not'
|
|
98
|
-
}, isLoading: {
|
|
99
|
-
type: {
|
|
100
|
-
name: 'boolean',
|
|
101
|
-
required: false
|
|
102
|
-
},
|
|
103
|
-
table: {
|
|
104
|
-
defaultValue: {
|
|
105
|
-
summary: 'false'
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
description: 'Toggles the loading state of the compnent'
|
|
109
|
-
}, openInNewTab: {
|
|
110
|
-
type: { name: 'boolean', required: false },
|
|
111
|
-
description: 'Opens the link in a new tab when set to true',
|
|
112
|
-
defaultValue: 'false'
|
|
113
|
-
}, children: {
|
|
114
|
-
type: { name: 'other', value: 'string | React.ReactNode' },
|
|
115
|
-
description: 'The child elements to show in the component',
|
|
116
|
-
table: {
|
|
117
|
-
type: {
|
|
118
|
-
summary: 'Array'
|
|
119
|
-
},
|
|
120
|
-
defaultValue: { summary: 'undefined' }
|
|
121
|
-
}
|
|
122
|
-
} }),
|
|
123
|
-
args: {
|
|
124
|
-
children: 'This is a button',
|
|
125
|
-
rounded: true,
|
|
126
|
-
onClick: action('button clicked')
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const Template = (args) => React.createElement(Button, Object.assign({}, args));
|
|
130
|
-
export const _Button = Template.bind({});
|
|
131
|
-
export default componentMeta;
|
|
132
|
-
//# sourceMappingURL=button.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Button/button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAiC;IAClD,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,2GAA2G;aACvH;SACF;KACF;IACD,QAAQ,kCACH,cAAc,KACjB,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,sDAAsD;YACnE,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,UAAU;iBACpB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE;oBACZ,OAAO,EAAE,WAAW;iBACrB;aACF;SACF,EACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK;aAChC;YACD,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;YACjC,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACL,IAAI,EAAE;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W,EAAE,2CAA2C;SACzD,EACD,YAAY,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,8CAA8C;YAC3D,YAAY,EAAE,OAAO;SACtB,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAClC;CACF,CAAA;AAED,MAAM,QAAQ,GAAkC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAA;AAE9E,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,eAAe,aAAa,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Card from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Card>;
|
|
5
|
-
export declare const _ImageCard: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
-
export declare const _VideoCard: ComponentStory<React.FC<import("./index").Props>>;
|
|
7
|
-
export declare const _ProductCard: ComponentStory<React.FC<import("./index").Props>>;
|
|
8
|
-
export default componentMeta;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Card from './index';
|
|
3
|
-
import { idAndClassName } from '../../utils/controls';
|
|
4
|
-
import Icon from '../Icon';
|
|
5
|
-
const componentMeta = {
|
|
6
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Card',
|
|
7
|
-
component: Card,
|
|
8
|
-
argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
|
|
9
|
-
description: '',
|
|
10
|
-
table: {
|
|
11
|
-
category: 'Card'
|
|
12
|
-
}
|
|
13
|
-
}, image: {
|
|
14
|
-
description: '',
|
|
15
|
-
table: {
|
|
16
|
-
category: 'Card'
|
|
17
|
-
}
|
|
18
|
-
}, subTitle: {
|
|
19
|
-
description: '',
|
|
20
|
-
table: {
|
|
21
|
-
category: 'Card'
|
|
22
|
-
}
|
|
23
|
-
}, description: {
|
|
24
|
-
description: '',
|
|
25
|
-
table: {
|
|
26
|
-
category: 'Card'
|
|
27
|
-
}
|
|
28
|
-
}, extraText: {
|
|
29
|
-
description: '',
|
|
30
|
-
table: {
|
|
31
|
-
category: 'Card'
|
|
32
|
-
}
|
|
33
|
-
}, imageBelowTitle: {
|
|
34
|
-
description: '',
|
|
35
|
-
table: {
|
|
36
|
-
category: 'Card'
|
|
37
|
-
}
|
|
38
|
-
}, bordered: {
|
|
39
|
-
description: '',
|
|
40
|
-
table: {
|
|
41
|
-
category: 'Card'
|
|
42
|
-
}
|
|
43
|
-
}, rounded: {
|
|
44
|
-
description: '',
|
|
45
|
-
table: {
|
|
46
|
-
category: 'Card'
|
|
47
|
-
}
|
|
48
|
-
}, hasCta: {
|
|
49
|
-
description: '',
|
|
50
|
-
table: {
|
|
51
|
-
category: 'Card'
|
|
52
|
-
}
|
|
53
|
-
}, titleLeft: {
|
|
54
|
-
description: '',
|
|
55
|
-
table: {
|
|
56
|
-
category: 'Card'
|
|
57
|
-
}
|
|
58
|
-
}, titleRight: {
|
|
59
|
-
description: '',
|
|
60
|
-
table: {
|
|
61
|
-
category: 'Card'
|
|
62
|
-
}
|
|
63
|
-
}, titleBold: {
|
|
64
|
-
description: '',
|
|
65
|
-
table: {
|
|
66
|
-
category: 'Card'
|
|
67
|
-
}
|
|
68
|
-
} }),
|
|
69
|
-
args: {
|
|
70
|
-
subTitle: 'This is a subtitle',
|
|
71
|
-
description: 'This is a description paragraph',
|
|
72
|
-
extraText: 'This is another paragraph',
|
|
73
|
-
rounded: true,
|
|
74
|
-
bordered: true,
|
|
75
|
-
hasCta: true,
|
|
76
|
-
iconButtonProps: {
|
|
77
|
-
type: 'icon',
|
|
78
|
-
href: '/',
|
|
79
|
-
className: 'mt-8',
|
|
80
|
-
children: React.createElement(Icon, { type: 'heart', hollow: false })
|
|
81
|
-
},
|
|
82
|
-
cardButtonProps: {
|
|
83
|
-
children: (React.createElement("div", { className: 'flex' },
|
|
84
|
-
React.createElement(Icon, { type: 'heart' }),
|
|
85
|
-
React.createElement("p", null, "buttonText"),
|
|
86
|
-
React.createElement(Icon, { type: 'heart' }))),
|
|
87
|
-
disabled: false,
|
|
88
|
-
hoverText: 'buttonHoverText',
|
|
89
|
-
href: 'buttonUrl',
|
|
90
|
-
rounded: true
|
|
91
|
-
},
|
|
92
|
-
button2Props: {
|
|
93
|
-
className: 'ml-2 w-full mt-8',
|
|
94
|
-
children: 'Add to basket',
|
|
95
|
-
rounded: false,
|
|
96
|
-
disabled: false
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
const Template = (args) => React.createElement(Card, Object.assign({}, args));
|
|
101
|
-
export const _ImageCard = Template.bind({});
|
|
102
|
-
_ImageCard.args = {
|
|
103
|
-
title: 'This is a title',
|
|
104
|
-
image: 'https://picsum.photos/500/300'
|
|
105
|
-
};
|
|
106
|
-
export const _VideoCard = Template.bind({});
|
|
107
|
-
_VideoCard.args = {
|
|
108
|
-
title: 'This is a title',
|
|
109
|
-
videoProps: {
|
|
110
|
-
mp4File: '/',
|
|
111
|
-
withControls: true,
|
|
112
|
-
autoPlay: true
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
export const _ProductCard = Template.bind({});
|
|
116
|
-
_ProductCard.args = {
|
|
117
|
-
image: 'https://picsum.photos/500/300',
|
|
118
|
-
subTitle: 'Product name',
|
|
119
|
-
description: 'Product description',
|
|
120
|
-
extraText: '£123.45',
|
|
121
|
-
onHover: true
|
|
122
|
-
};
|
|
123
|
-
export default componentMeta;
|
|
124
|
-
//# sourceMappingURL=Card.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,IAAI,MAAM,kBAAkB,CAAA;AAGnC,MAAM,aAAa,GAA+B;IAChD,KAAK,EAAE,iDAAiD;IACxD,SAAS,EAAE,IAAI;IACf,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,QAAQ,EAAE;YACR,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,WAAW,EAAE;YACX,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,SAAS,EAAE;YACT,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,eAAe,EAAE;YACf,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,QAAQ,EAAE;YACR,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,OAAO,EAAE;YACP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AED,MAAM,QAAQ,GAAgC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,IAAI,oBAAK,IAAI,EAAI,CAAA;AAE1E,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,+BAA+B;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,GAAG;QACZ,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC7C,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,+BAA+B;IACtC,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,IAAI;CACd,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import CardWithTopImage from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof CardWithTopImage>;
|
|
5
|
-
export declare const _CardWithTopImage: ComponentStory<({ id, className, children, imageProps }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import CardWithTopImage from './index';
|
|
3
|
-
import logo from '@assets/images/primary-logo.png';
|
|
4
|
-
import { idAndClassName } from '../../utils/controls';
|
|
5
|
-
const componentMeta = {
|
|
6
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Card With Top Image',
|
|
7
|
-
component: CardWithTopImage,
|
|
8
|
-
argTypes: Object.assign(Object.assign({}, idAndClassName), { children: {
|
|
9
|
-
type: { name: 'other', value: 'string | React.ReactNode' },
|
|
10
|
-
description: 'The child elements to show in the component',
|
|
11
|
-
table: {
|
|
12
|
-
type: {
|
|
13
|
-
summary: 'Array'
|
|
14
|
-
},
|
|
15
|
-
defaultValue: { summary: 'undefined' }
|
|
16
|
-
}
|
|
17
|
-
}, imageProps: {
|
|
18
|
-
type: { name: 'other', value: 'object' },
|
|
19
|
-
description: 'The props to pass to the image on the component',
|
|
20
|
-
table: {
|
|
21
|
-
type: {
|
|
22
|
-
summary: 'object'
|
|
23
|
-
},
|
|
24
|
-
defaultValue: { summary: 'undefined' }
|
|
25
|
-
}
|
|
26
|
-
} }),
|
|
27
|
-
args: {
|
|
28
|
-
imageProps: {
|
|
29
|
-
image: logo,
|
|
30
|
-
roundedFull: true,
|
|
31
|
-
width: 4,
|
|
32
|
-
height: 4
|
|
33
|
-
},
|
|
34
|
-
children: [React.createElement("p", { key: '1' }, "This is a child"), React.createElement("p", { key: '2' }, "This is another child")]
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const Template = (args) => React.createElement(CardWithTopImage, Object.assign({}, args));
|
|
38
|
-
export const _CardWithTopImage = Template.bind({});
|
|
39
|
-
export default componentMeta;
|
|
40
|
-
//# sourceMappingURL=CardWithTopImage.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardWithTopImage.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/CardWithTopImage/CardWithTopImage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,gBAAgB,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,iCAAiC,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAA2C;IAC5D,KAAK,EAAE,gEAAgE;IACvE,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,kCACH,cAAc,KACjB,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,iDAAiD;YAC9D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;QACD,QAAQ,EAAE,CAAC,2BAAG,GAAG,EAAC,GAAG,sBAAoB,EAAE,2BAAG,GAAG,EAAC,GAAG,4BAA0B,CAAC;KACjF;CACF,CAAA;AAED,MAAM,QAAQ,GAA4C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAA;AAElG,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAElD,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Carousel from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Carousel>;
|
|
5
|
-
export declare const _Carousel: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
-
export default componentMeta;
|