trepur_components 1.0.2 → 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/Carousel/index.d.ts +0 -1
- package/dist/src/lib/components/Carousel/index.js +1 -1
- package/dist/src/lib/components/Carousel/index.js.map +1 -1
- 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/Nav/index.js +2 -2
- package/dist/src/lib/components/Nav/index.js.map +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/{components → src/lib/components}/Timeline/index.css +2 -0
- package/dist/src/lib/components/Timeline/index.css.map +1 -0
- package/dist/{components → src/lib/components}/Tubestops/index.css +35 -30
- 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/components/Accordion/Accordion.stories.tsx +0 -88
- package/dist/components/Accordion/index.tsx +0 -31
- package/dist/components/AlertBar/AlertBar.stories.tsx +0 -105
- package/dist/components/AlertBar/index.tsx +0 -127
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -60
- package/dist/components/Breadcrumbs/index.tsx +0 -55
- package/dist/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +0 -52
- package/dist/components/BreadcrumbsBordered/index.tsx +0 -44
- package/dist/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +0 -54
- package/dist/components/BreadcrumbsItem/index.tsx +0 -151
- package/dist/components/Button/button.stories.tsx +0 -148
- package/dist/components/Button/index.tsx +0 -91
- package/dist/components/Card/Card.stories.tsx +0 -150
- package/dist/components/Card/index.tsx +0 -162
- package/dist/components/CardWithTopImage/CardWithTopImage.stories.tsx +0 -48
- package/dist/components/CardWithTopImage/index.tsx +0 -40
- package/dist/components/Carousel/Carousel.stories.tsx +0 -369
- package/dist/components/Carousel/index.tsx +0 -267
- package/dist/components/ChevronCard/ChevronCard.stories.tsx +0 -21
- package/dist/components/ChevronCard/index.tsx +0 -39
- package/dist/components/Collapsible/Collapsible.stories.tsx +0 -70
- package/dist/components/Collapsible/index.tsx +0 -124
- package/dist/components/Column/Column.stories.tsx +0 -82
- package/dist/components/Column/index.tsx +0 -114
- package/dist/components/Container/Container.stories.tsx +0 -38
- package/dist/components/Container/index.tsx +0 -30
- package/dist/components/FooterBar/FooterBar.stories.tsx +0 -57
- package/dist/components/FooterBar/index.tsx +0 -44
- package/dist/components/Form/Form.stories.tsx +0 -93
- package/dist/components/Form/index.tsx +0 -58
- package/dist/components/FyreCard/FyreCard.stories.tsx +0 -29
- package/dist/components/FyreCard/index.tsx +0 -46
- package/dist/components/Greeting/Greeting.stories.tsx +0 -42
- package/dist/components/Greeting/index.tsx +0 -46
- package/dist/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -50
- package/dist/components/HamburgerIcon/index.tsx +0 -65
- package/dist/components/Icon/Icon.stories.tsx +0 -102
- package/dist/components/Icon/index.tsx +0 -112
- package/dist/components/Image/Image.stories.tsx +0 -88
- package/dist/components/Image/index.tsx +0 -113
- package/dist/components/ImageLink/ImageLink.stories.tsx +0 -60
- package/dist/components/ImageLink/index.tsx +0 -62
- package/dist/components/ImageLinkList/ImageLinkList.stories.tsx +0 -34
- package/dist/components/ImageLinkList/index.tsx +0 -33
- package/dist/components/InformationIcon/InformationIcon.stories.tsx +0 -86
- package/dist/components/InformationIcon/index.tsx +0 -84
- package/dist/components/Input/Input.stories.tsx +0 -99
- package/dist/components/Input/index.tsx +0 -126
- package/dist/components/Jumbotron/Jumbotron.stories.tsx +0 -22
- package/dist/components/Jumbotron/index.tsx +0 -25
- package/dist/components/Nav/Nav.stories.tsx +0 -155
- package/dist/components/Nav/index.tsx +0 -180
- package/dist/components/NavItem/NavItem.stories.tsx +0 -89
- package/dist/components/NavItem/index.tsx +0 -65
- package/dist/components/NewsCard/NewsCard.stories.tsx +0 -71
- package/dist/components/NewsCard/index.tsx +0 -48
- package/dist/components/Profile/Profile.stories.tsx +0 -50
- package/dist/components/Profile/index.tsx +0 -87
- package/dist/components/Row/Row.stories.tsx +0 -51
- package/dist/components/Row/index.tsx +0 -24
- package/dist/components/Search/Search.stories.tsx +0 -58
- package/dist/components/Search/index.tsx +0 -58
- package/dist/components/SocialBlock/SocialBlock.stories.tsx +0 -114
- package/dist/components/SocialBlock/index.tsx +0 -161
- package/dist/components/StarRating/StarRating.stories.tsx +0 -23
- package/dist/components/StarRating/index.tsx +0 -71
- package/dist/components/Testimonial/Testimonial.stories.tsx +0 -110
- package/dist/components/Testimonial/index.tsx +0 -50
- package/dist/components/TextAndTitle/TextAndTitle.stories.tsx +0 -65
- package/dist/components/TextAndTitle/index.tsx +0 -257
- package/dist/components/TextArea/TextArea.stories.tsx +0 -67
- package/dist/components/TextArea/index.tsx +0 -97
- package/dist/components/Timeline/Timeline.stories.tsx +0 -100
- package/dist/components/Timeline/index.tsx +0 -315
- package/dist/components/Tubestops/Tubestops.stories.tsx +0 -66
- package/dist/components/Tubestops/index.tsx +0 -77
- package/dist/components/UserIcon/UserIcon.stories.tsx +0 -67
- package/dist/components/UserIcon/index.tsx +0 -42
- package/dist/components/Video/Video.stories.tsx +0 -23
- package/dist/components/Video/index.tsx +0 -49
- package/dist/fonts/Sora/OFL.txt +0 -93
- package/dist/fonts/Sora/README.txt +0 -70
- package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
- package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
- package/dist/index.js +0 -272
- 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
- package/dist/styles/base.css +0 -73
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import SocialBlock from './index';
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import Icon from '../Icon';
|
|
5
|
-
import Button from '../Button';
|
|
6
|
-
const socialButtons = [
|
|
7
|
-
React.createElement(Button, { key: 'btn_1', className: 'mx-2 w-16 py-4 border border-1', href: 'https://www.facebook.com/rupert.bennett', type: 'social' },
|
|
8
|
-
React.createElement(Icon, { type: 'facebook-f', brand: true, size: 2, className: 'mx-auto', colour: 'white', bgColour: 'primary' })),
|
|
9
|
-
React.createElement(Button, { key: 'btn_2', className: 'mx-2 w-16 py-4 border border-1', href: 'https://www.linkedin.com/in/rupert-bennett', type: 'social' },
|
|
10
|
-
React.createElement(Icon, { brand: true, type: 'linkedin-in', size: 2, className: 'mx-auto', colour: 'white', bgColour: 'primary' })),
|
|
11
|
-
React.createElement(Button, { key: 'btn_3', className: 'mx-2 w-16 py-4 border border-1', href: 'https://github.com/irupertbennett', type: 'social' },
|
|
12
|
-
React.createElement(Icon, { brand: true, type: 'github', size: 2, className: 'mx-auto', colour: 'white', bgColour: 'primary' })),
|
|
13
|
-
React.createElement(Button, { key: 'btn_4', className: 'mx-2 w-16 py-4 border border-1', href: 'mailto:irupertbennett@gmail.com?subject=rupertbennett.com-&body=Referred from rupertbennett.com', type: 'social' },
|
|
14
|
-
React.createElement(Icon, { type: 'envelope', size: 2, className: 'mx-auto', colour: 'white', bgColour: 'primary' }))
|
|
15
|
-
];
|
|
16
|
-
const componentMeta = {
|
|
17
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Social Block',
|
|
18
|
-
component: SocialBlock,
|
|
19
|
-
parameters: {},
|
|
20
|
-
argTypes: {
|
|
21
|
-
withLiveUpdates: {
|
|
22
|
-
description: '',
|
|
23
|
-
control: 'boolean',
|
|
24
|
-
table: { category: '' }
|
|
25
|
-
},
|
|
26
|
-
onSave: {
|
|
27
|
-
type: { name: 'function', required: false },
|
|
28
|
-
description: 'Fires a function when you click save',
|
|
29
|
-
action: 'onClick',
|
|
30
|
-
table: {
|
|
31
|
-
type: { summary: 'function' },
|
|
32
|
-
defaultValue: { summary: 'undefined' }
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
theme: {
|
|
36
|
-
type: { name: 'string', required: false },
|
|
37
|
-
options: ['dark', 'light'],
|
|
38
|
-
description: 'The variant of button to render',
|
|
39
|
-
table: { type: { summary: 'dark' }, defaultValue: { summary: 'dark' } },
|
|
40
|
-
defaultValue: 'dark',
|
|
41
|
-
control: { type: 'radio' }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
args: {
|
|
45
|
-
title: 'Why not connect with me on LinkedIn or Facebook?',
|
|
46
|
-
text: 'Or send me a E-Mail to get in touch',
|
|
47
|
-
editTitleClasses: 'text-md sm:text-lg ',
|
|
48
|
-
editTextClasses: '',
|
|
49
|
-
editInputClasses: 'mt-4 border border-black text-black bg-white',
|
|
50
|
-
onSave: action('button-save'),
|
|
51
|
-
withLiveUpdates: true,
|
|
52
|
-
socialButtons
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const Template = (args) => React.createElement(SocialBlock, Object.assign({}, args));
|
|
56
|
-
export const _SocialBlock = Template.bind({});
|
|
57
|
-
export default componentMeta;
|
|
58
|
-
//# sourceMappingURL=SocialBlock.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialBlock.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/SocialBlock/SocialBlock.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,IAAI,MAAM,kBAAkB,CAAA;AACnC,OAAO,MAAM,MAAM,oBAAoB,CAAA;AAGvC,MAAM,aAAa,GAAG;IACpB,oBAAC,MAAM,IACL,GAAG,EAAC,OAAO,EACX,SAAS,EAAC,gCAAgC,EAC1C,IAAI,EAAC,yCAAyC,EAC9C,IAAI,EAAC,QAAQ;QAEb,oBAAC,IAAI,IACH,IAAI,EAAC,YAAY,EACjB,KAAK,QACL,IAAI,EAAE,CAAC,EACP,SAAS,EAAC,SAAS,EACnB,MAAM,EAAC,OAAO,EACd,QAAQ,EAAC,SAAS,GAClB,CACK;IACT,oBAAC,MAAM,IACL,GAAG,EAAC,OAAO,EACX,SAAS,EAAC,gCAAgC,EAC1C,IAAI,EAAC,4CAA4C,EACjD,IAAI,EAAC,QAAQ;QAEb,oBAAC,IAAI,IACH,KAAK,QACL,IAAI,EAAC,aAAa,EAClB,IAAI,EAAE,CAAC,EACP,SAAS,EAAC,SAAS,EACnB,MAAM,EAAC,OAAO,EACd,QAAQ,EAAC,SAAS,GAClB,CACK;IACT,oBAAC,MAAM,IACL,GAAG,EAAC,OAAO,EACX,SAAS,EAAC,gCAA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E,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YACvE,YAAY,EAAE,MAAM;YACpB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,kDAAkD;QACzD,IAAI,EAAE,qCAAqC;QAC3C,gBAAgB,EAAE,qBAAqB;QACvC,eAAe,EAAE,EAAE;QACnB,gBAAgB,EAAE,8CAA8C;QAChE,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC;QAC7B,eAAe,EAAE,IAAI;QACrB,aAAa;KACd;CACF,CAAA;AAED,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,WAAW,oBAAK,IAAI,EAAI,CAAA;AAExF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE7C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import StarRating from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof StarRating>;
|
|
5
|
-
export declare const _StarRating: ComponentStory<({ id, className, stars, size }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import StarRating from './index';
|
|
3
|
-
import { idAndClassName } from '../../utils/controls';
|
|
4
|
-
const componentMeta = {
|
|
5
|
-
title: 'Trepur Components/Other/Atoms/Star Rating',
|
|
6
|
-
component: StarRating,
|
|
7
|
-
parameters: {},
|
|
8
|
-
argTypes: Object.assign({}, idAndClassName),
|
|
9
|
-
args: {
|
|
10
|
-
stars: 3,
|
|
11
|
-
size: 2
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const Template = (args) => React.createElement(StarRating, Object.assign({}, args));
|
|
15
|
-
export const _StarRating = Template.bind({});
|
|
16
|
-
export default componentMeta;
|
|
17
|
-
//# sourceMappingURL=StarRating.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StarRating.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/StarRating/StarRating.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAqC;IACtD,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,EAAE;IACd,QAAQ,oBACH,cAAc,CAClB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,CAAC;KACR;CACF,CAAA;AAED,MAAM,QAAQ,GAAsC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,UAAU,oBAAK,IAAI,EAAI,CAAA;AAEtF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE5C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Testimonial from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Testimonial>;
|
|
5
|
-
export declare const _Testimonial: ComponentStory<({ id, className, text, imageProps, companyName, position, date, positionStartDate, positionEndDate, authorsName, authorsPosition }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { idAndClassName } from '../../utils/controls';
|
|
3
|
-
import Testimonial from './index';
|
|
4
|
-
const componentMeta = {
|
|
5
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Testimonial',
|
|
6
|
-
component: Testimonial,
|
|
7
|
-
parameters: {},
|
|
8
|
-
argTypes: Object.assign(Object.assign({}, idAndClassName), { text: {
|
|
9
|
-
description: 'The description to display on the component',
|
|
10
|
-
control: 'text',
|
|
11
|
-
table: {
|
|
12
|
-
type: { summary: 'default' }
|
|
13
|
-
},
|
|
14
|
-
defaultValue: { summary: 'undefined' }
|
|
15
|
-
}, companyName: {
|
|
16
|
-
description: 'The company name to display on the component',
|
|
17
|
-
control: 'text',
|
|
18
|
-
table: {
|
|
19
|
-
type: { summary: 'default' }
|
|
20
|
-
},
|
|
21
|
-
defaultValue: { summary: 'undefined' }
|
|
22
|
-
}, positionStartDate: {
|
|
23
|
-
description: 'The start date to display on the component',
|
|
24
|
-
control: 'text',
|
|
25
|
-
table: {
|
|
26
|
-
type: { summary: 'default' }
|
|
27
|
-
},
|
|
28
|
-
defaultValue: { summary: 'undefined' }
|
|
29
|
-
}, positionEndDate: {
|
|
30
|
-
description: 'The end date to display on the component',
|
|
31
|
-
control: 'text',
|
|
32
|
-
table: {
|
|
33
|
-
type: { summary: 'default' }
|
|
34
|
-
},
|
|
35
|
-
defaultValue: { summary: 'undefined' }
|
|
36
|
-
}, position: {
|
|
37
|
-
description: 'The position to display on the component',
|
|
38
|
-
control: 'text',
|
|
39
|
-
table: {
|
|
40
|
-
type: { summary: 'default' }
|
|
41
|
-
},
|
|
42
|
-
defaultValue: { summary: 'undefined' }
|
|
43
|
-
}, date: {
|
|
44
|
-
description: 'The date of the testimonial to display on the component',
|
|
45
|
-
control: 'text',
|
|
46
|
-
table: {
|
|
47
|
-
type: { summary: 'default' }
|
|
48
|
-
},
|
|
49
|
-
defaultValue: { summary: 'undefined' }
|
|
50
|
-
}, authorsName: {
|
|
51
|
-
description: 'The authors name to display on the component',
|
|
52
|
-
control: 'text',
|
|
53
|
-
table: {
|
|
54
|
-
type: { summary: 'default' }
|
|
55
|
-
},
|
|
56
|
-
defaultValue: { summary: 'undefined' }
|
|
57
|
-
}, authorsPosition: {
|
|
58
|
-
description: 'The authors position to display on the component',
|
|
59
|
-
control: 'text',
|
|
60
|
-
table: {
|
|
61
|
-
type: { summary: 'default' }
|
|
62
|
-
},
|
|
63
|
-
defaultValue: { summary: 'undefined' }
|
|
64
|
-
}, imageProps: {
|
|
65
|
-
type: { name: 'other', value: 'object' },
|
|
66
|
-
description: 'The props to pass to the image to display on the component',
|
|
67
|
-
table: {
|
|
68
|
-
type: {
|
|
69
|
-
summary: 'object'
|
|
70
|
-
},
|
|
71
|
-
defaultValue: { summary: 'undefined' }
|
|
72
|
-
}
|
|
73
|
-
} }),
|
|
74
|
-
args: {
|
|
75
|
-
imageProps: {
|
|
76
|
-
image: 'https://picsum.photos/100/100',
|
|
77
|
-
height: 8,
|
|
78
|
-
width: 8,
|
|
79
|
-
roundedFull: true,
|
|
80
|
-
centerAligned: true
|
|
81
|
-
},
|
|
82
|
-
authorsName: 'Authors Name',
|
|
83
|
-
authorsPosition: 'Authors Position',
|
|
84
|
-
position: 'Position',
|
|
85
|
-
positionEndDate: 'End Date',
|
|
86
|
-
positionStartDate: 'Start Date',
|
|
87
|
-
date: 'Date',
|
|
88
|
-
companyName: 'Company Name',
|
|
89
|
-
text: 'This is some text'
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
const Template = (args) => React.createElement(Testimonial, Object.assign({}, args));
|
|
93
|
-
export const _Testimonial = Template.bind({});
|
|
94
|
-
export default componentMeta;
|
|
95
|
-
//# sourceMappingURL=Testimonial.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Testimonial.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Testimonial/Testimonial.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,WAAW,MAAM,SAAS,CAAA;AAGjC,MAAM,aAAa,GAAsC;IACvD,KAAK,EAAE,w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 -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TextAndTitle from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof TextAndTitle>;
|
|
5
|
-
export declare const _TextAndTitle: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TextAndTitle from './index';
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
4
|
-
import Greeting from '../Greeting';
|
|
5
|
-
const componentMeta = {
|
|
6
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Text And Title',
|
|
7
|
-
component: TextAndTitle,
|
|
8
|
-
argTypes: {
|
|
9
|
-
id: {
|
|
10
|
-
description: 'Defines the id of the component',
|
|
11
|
-
table: {
|
|
12
|
-
category: '',
|
|
13
|
-
type: { summary: 'string' },
|
|
14
|
-
defaultValue: { summary: 'undefined' }
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
className: {
|
|
18
|
-
description: 'Defines any additional classes for the components',
|
|
19
|
-
table: {
|
|
20
|
-
category: '',
|
|
21
|
-
type: { summary: 'string' },
|
|
22
|
-
defaultValue: { summary: 'undefined' }
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
onSave: {
|
|
26
|
-
type: { name: 'function', required: false },
|
|
27
|
-
description: 'Fires a function when you click save',
|
|
28
|
-
action: 'onClick',
|
|
29
|
-
table: {
|
|
30
|
-
type: {
|
|
31
|
-
summary: 'function'
|
|
32
|
-
},
|
|
33
|
-
defaultValue: { summary: 'undefined' }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
args: {
|
|
38
|
-
children: React.createElement("p", null, "This is a child"),
|
|
39
|
-
editTitleClasses: 'text-md sm:text-lg ',
|
|
40
|
-
editTextClasses: 'break-words',
|
|
41
|
-
editInputClasses: 'border border-black text-black bg-white',
|
|
42
|
-
textLineOne: React.createElement("div", null,
|
|
43
|
-
React.createElement(Greeting, null),
|
|
44
|
-
React.createElement("p", null, "Loremipsumdolorsitamet consectetur adipisicing elit")),
|
|
45
|
-
textLineTwo: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Commodi impedit sed, quis aspernatur voluptate minima vel placeat ipsa amet voluptatem reprehenderit ullam rem cum tempora explicabo veritatis numquam libero asperiores!',
|
|
46
|
-
textLineThree: 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Tenetur nihil voluptas ipsum labore? Eligendi et ipsam, repellat culpa porro a animi laudantium molestiae provident facere non tempora odit? Perferendis, assumenda.',
|
|
47
|
-
onSave: action('button-save'),
|
|
48
|
-
withLiveUpdates: true,
|
|
49
|
-
isHorizontal: true,
|
|
50
|
-
saveButtonProps: {
|
|
51
|
-
className: 'mt-4',
|
|
52
|
-
children: 'Save'
|
|
53
|
-
},
|
|
54
|
-
cancelButtonProps: {
|
|
55
|
-
className: 'mt-4 ml-4',
|
|
56
|
-
children: 'Cancel'
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const Template = (args) => React.createElement(TextAndTitle, Object.assign({}, args));
|
|
61
|
-
export const _TextAndTitle = Template.bind({});
|
|
62
|
-
export default componentMeta;
|
|
63
|
-
//# sourceMappingURL=TextAndTitle.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextAndTitle.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextAndTitle/TextAndTitle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,YAAY,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,QAAQ,MAAM,sBAAsB,CAAA;AAG3C,MAAM,aAAa,GAAuC;IACxD,KAAK,EAAE,2DAA2D;IAClE,SAAS,EAAE,YA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,EAAE,EAAE,CAAC,oBAAC,YAAY,oBAAK,IAAI,EAAI,CAAA;AAE1F,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE9C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import TextArea from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof TextArea>;
|
|
5
|
-
export declare const _TextArea: ComponentStory<({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import TextArea from './index';
|
|
3
|
-
const componentMeta = {
|
|
4
|
-
title: 'Trepur Components/Rupert Bennett/Atoms/Text Area',
|
|
5
|
-
component: TextArea,
|
|
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
|
-
label: {
|
|
25
|
-
description: '',
|
|
26
|
-
control: 'text',
|
|
27
|
-
table: {
|
|
28
|
-
category: ''
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
placeholder: {
|
|
32
|
-
description: '',
|
|
33
|
-
control: 'text',
|
|
34
|
-
table: {
|
|
35
|
-
category: ''
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
bold: {
|
|
39
|
-
description: '',
|
|
40
|
-
control: 'boolean',
|
|
41
|
-
table: {
|
|
42
|
-
category: ''
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
theme: {
|
|
46
|
-
type: { name: 'string', required: false },
|
|
47
|
-
options: ['dark', 'light'],
|
|
48
|
-
description: 'The variant of button to render',
|
|
49
|
-
table: { type: { summary: 'dark' }, defaultValue: { summary: 'dark' } },
|
|
50
|
-
defaultValue: 'dark',
|
|
51
|
-
control: { type: 'radio' }
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
args: {
|
|
55
|
-
label: 'This is a label',
|
|
56
|
-
placeholder: 'This is a text area placeholder',
|
|
57
|
-
withPadding: true
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const Template = (args) => React.createElement(TextArea, Object.assign({}, args));
|
|
61
|
-
export const _TextArea = Template.bind({});
|
|
62
|
-
export default componentMeta;
|
|
63
|
-
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAG9B,MAAM,aAAa,GAAmC;IACpD,KAAK,EAAE,kDAAkD;IACzD,SAAS,EAAE,QAAQ;IACnB,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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 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Timeline from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Timeline>;
|
|
5
|
-
export declare const _Timeline: ComponentStory<({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Timeline from './index';
|
|
3
|
-
import CardWithTopImage from '../CardWithTopImage';
|
|
4
|
-
import logo from '@assets/images/primary-logo.png';
|
|
5
|
-
const timelineItems = () => {
|
|
6
|
-
return new Array(8).fill(null).map(() => {
|
|
7
|
-
return ({
|
|
8
|
-
component: React.createElement(CardWithTopImage, { imageProps: {
|
|
9
|
-
image: logo,
|
|
10
|
-
roundedFull: true,
|
|
11
|
-
width: 4,
|
|
12
|
-
height: 4
|
|
13
|
-
}, className: 'px-4' },
|
|
14
|
-
React.createElement("p", null, "This is some text"),
|
|
15
|
-
React.createElement("p", null, "This is some more text"),
|
|
16
|
-
React.createElement("p", null, "This is a bit more text"),
|
|
17
|
-
React.createElement("p", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem odit ad sed, quam recusandae voluptatem provident eveniet beatae omnis vero minus unde facilis. Quia commodi quas odit iusto ut enim!")),
|
|
18
|
-
centerImageProps: {
|
|
19
|
-
image: logo,
|
|
20
|
-
imageClasses: 'mx-auto',
|
|
21
|
-
width: 4,
|
|
22
|
-
height: 4,
|
|
23
|
-
centerAligned: true,
|
|
24
|
-
roundedFull: true
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const componentMeta = {
|
|
30
|
-
title: 'Trepur Components/Rupert Bennett/Organisms/Timeline',
|
|
31
|
-
component: Timeline,
|
|
32
|
-
parameters: {},
|
|
33
|
-
argTypes: {
|
|
34
|
-
id: {
|
|
35
|
-
description: 'Defines the id of the component',
|
|
36
|
-
control: { type: 'text', default: false },
|
|
37
|
-
table: {
|
|
38
|
-
category: 'Id',
|
|
39
|
-
type: { summary: 'string' },
|
|
40
|
-
defaultValue: { summary: 'undefined' }
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
className: {
|
|
44
|
-
description: 'Defines any additional classes for the components',
|
|
45
|
-
control: { type: 'text', default: false },
|
|
46
|
-
table: {
|
|
47
|
-
category: 'Classes',
|
|
48
|
-
type: { summary: 'string' },
|
|
49
|
-
defaultValue: { summary: 'undefined' }
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
isHorizontal: {
|
|
53
|
-
description: '',
|
|
54
|
-
control: 'boolean',
|
|
55
|
-
table: {
|
|
56
|
-
category: ''
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
useImages: {
|
|
60
|
-
description: '',
|
|
61
|
-
control: 'boolean',
|
|
62
|
-
table: {
|
|
63
|
-
category: ''
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
items: {
|
|
67
|
-
description: '',
|
|
68
|
-
control: 'array',
|
|
69
|
-
table: {
|
|
70
|
-
category: ''
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
args: {
|
|
75
|
-
isHorizontal: true,
|
|
76
|
-
reverse: false,
|
|
77
|
-
items: timelineItems(),
|
|
78
|
-
textCenter: true,
|
|
79
|
-
useImages: true,
|
|
80
|
-
horizontalComponentClasses: 'w-96 h-96',
|
|
81
|
-
isSm: true
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const Template = (args) => React.createElement(Timeline, Object.assign({}, args));
|
|
85
|
-
export const _Timeline = Template.bind({});
|
|
86
|
-
export default componentMeta;
|
|
87
|
-
//# sourceMappingURL=Timeline.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.stories.js","sourceRoot":"","sources":["../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,SAAS,EAAE;YACT,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;YACzC,KAAK,EAAE;gBACL,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,YAAY,EAAE;YACZ,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;KACF;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,aAAa,EAAE;QACtB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,IAAI;QACf,0BAA0B,EAAE,WAAW;QACvC,IAAI,EAAE,IAAI;KACX;CACF,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Tubestops from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Tubestops>;
|
|
5
|
-
export declare const _Tubestops: ComponentStory<React.FC<import("./index").Props>>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Tubestops from './index';
|
|
3
|
-
const componentMeta = {
|
|
4
|
-
title: 'Trepur Components/Other/Atoms/Tubestops',
|
|
5
|
-
component: Tubestops,
|
|
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
|
-
isHorizontal: {
|
|
25
|
-
description: '',
|
|
26
|
-
table: {
|
|
27
|
-
category: ''
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
items: {
|
|
31
|
-
description: '',
|
|
32
|
-
table: {
|
|
33
|
-
category: ''
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
args: {
|
|
38
|
-
isHorizontal: false,
|
|
39
|
-
reverse: false,
|
|
40
|
-
items: [
|
|
41
|
-
{
|
|
42
|
-
title: 'This is a title',
|
|
43
|
-
subtitle: 'This is a subtitle'
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: 'This is a title',
|
|
47
|
-
subtitle: 'This is a subtitle'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: 'This is a title',
|
|
51
|
-
subtitle: 'This is a subtitle'
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
textCenter: true,
|
|
55
|
-
id: '',
|
|
56
|
-
className: ''
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const Template = (args) => React.createElement(Tubestops, Object.assign({}, args));
|
|
60
|
-
export const _Tubestops = Template.bind({});
|
|
61
|
-
export default componentMeta;
|
|
62
|
-
//# sourceMappingURL=Tubestops.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tubestops.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Tubestops/Tubestops.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,SAAS,CAAA;AAG/B,MAAM,aAAa,GAAoC;IACrD,KAAK,EAAE,yCAAyC;IAChD,SAAS,EAAE,SAAS;IACpB,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,YAAY,EAAE;YACZ,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF;KACF;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL;gBACE,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aAC/B;YACD;gBACE,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aAC/B;YACD;gBACE,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,UAAU,EAAE,IAAI;QAChB,EAAE,EAAE,EAAE;QACN,SAAS,EAAE,EAAE;KACd;CACF,CAAA;AAED,MAAM,QAAQ,GAAqC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,SAAS,oBAAK,IAAI,EAAI,CAAA;AAEpF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import UserIcon from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof UserIcon>;
|
|
5
|
-
export declare const _UserIcon: ComponentStory<({ id, className, name, description, imageProps }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import UserIcon from './index';
|
|
3
|
-
const componentMeta = {
|
|
4
|
-
title: 'Trepur Components/Other/Organisms/User Icon',
|
|
5
|
-
component: UserIcon,
|
|
6
|
-
argTypes: {
|
|
7
|
-
id: {
|
|
8
|
-
description: 'Defines the id of the component',
|
|
9
|
-
control: { type: 'text', default: false },
|
|
10
|
-
table: {
|
|
11
|
-
category: 'Id',
|
|
12
|
-
type: { summary: 'string' },
|
|
13
|
-
defaultValue: { summary: 'undefined' }
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
className: {
|
|
17
|
-
description: 'Defines any additional classes for the components',
|
|
18
|
-
control: { type: 'text', default: false },
|
|
19
|
-
table: {
|
|
20
|
-
category: 'Classes',
|
|
21
|
-
type: { summary: 'string' },
|
|
22
|
-
defaultValue: { summary: 'undefined' }
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
name: {
|
|
26
|
-
description: '',
|
|
27
|
-
control: 'text',
|
|
28
|
-
table: {
|
|
29
|
-
category: ''
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
description: {
|
|
33
|
-
description: '',
|
|
34
|
-
control: 'text',
|
|
35
|
-
table: {
|
|
36
|
-
category: ''
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
imageProps: {
|
|
40
|
-
type: { name: 'other', value: 'object' },
|
|
41
|
-
description: 'The props to pass to the image to display on the component',
|
|
42
|
-
table: {
|
|
43
|
-
type: {
|
|
44
|
-
summary: 'object'
|
|
45
|
-
},
|
|
46
|
-
defaultValue: { summary: 'undefined' }
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
args: {
|
|
51
|
-
imageProps: {
|
|
52
|
-
title: '',
|
|
53
|
-
altText: '',
|
|
54
|
-
image: ''
|
|
55
|
-
},
|
|
56
|
-
name: 'Someones name',
|
|
57
|
-
description: 'someone info'
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const Template = (args) => React.createElement(UserIcon, Object.assign({}, args));
|
|
61
|
-
export const _UserIcon = Template.bind({});
|
|
62
|
-
export default componentMeta;
|
|
63
|
-
//# sourceMappingURL=UserIcon.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserIcon.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/UserIcon/UserIcon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAG9B,MAAM,aAAa,GAAmC;IACpD,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE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,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import Video from './index';
|
|
3
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
4
|
-
declare const componentMeta: ComponentMeta<typeof Video>;
|
|
5
|
-
export declare const _Video: ComponentStory<({ id, className, autoPlay, muted, poster, mp4File, webmFile, ogvFile, height, width, withControls }: import("./index").Props) => JSX.Element>;
|
|
6
|
-
export default componentMeta;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Video from './index';
|
|
3
|
-
import { idAndClassName } from '../../utils/controls';
|
|
4
|
-
const componentMeta = {
|
|
5
|
-
title: 'Trepur Components/Other/Atoms/Video',
|
|
6
|
-
component: Video,
|
|
7
|
-
argTypes: Object.assign({}, idAndClassName),
|
|
8
|
-
args: {
|
|
9
|
-
withControls: true,
|
|
10
|
-
autoPlay: true,
|
|
11
|
-
muted: true
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const Template = (args) => React.createElement(Video, Object.assign({}, args));
|
|
15
|
-
export const _Video = Template.bind({});
|
|
16
|
-
export default componentMeta;
|
|
17
|
-
//# sourceMappingURL=Video.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Video.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Video/Video.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAgC;IACjD,KAAK,EAAE,qCAAqC;IAC5C,SAAS,EAAE,KAAK;IAChB,QAAQ,oBACH,cAAc,CAClB;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACZ;CACF,CAAA;AAED,MAAM,QAAQ,GAAiC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,KAAK,oBAAK,IAAI,EAAI,CAAA;AAE5E,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEvC,eAAe,aAAa,CAAA"}
|