trepur_components 0.1.41 → 0.2.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/dist/Assets/Images/logoCoco.png +0 -0
- package/dist/Assets/Images/logoCocoBanner.png +0 -0
- package/dist/Assets/Videos/example.mp4 +0 -0
- package/dist/Assets/Videos/example.ogv +0 -0
- package/dist/components/Atoms/AlertBar/AlertBar.stories.js +84 -0
- package/dist/components/Atoms/AlertBar/index.js +66 -0
- package/dist/components/Atoms/Breadcrumbs/Breadcrumbs.stories.js +49 -0
- package/dist/components/{Breadcrumbs → Atoms/Breadcrumbs}/index.js +2 -0
- package/dist/components/Atoms/BreadcrumbsItem/BreadcrumbsItem.stories.js +103 -0
- package/dist/components/Atoms/BreadcrumbsItem/index.css +42 -0
- package/dist/components/{BreadcrumbsBorderedItem → Atoms/BreadcrumbsItem}/index.js +2 -0
- package/dist/components/{Button → Atoms/Button}/Styles.css +0 -0
- package/dist/components/Atoms/Button/button.stories.js +86 -0
- package/dist/components/Atoms/Button/button.stories.mdx +72 -0
- package/dist/components/{Button → Atoms/Button}/index.js +28 -24
- package/dist/components/Atoms/Collapsible/Collapsible.stories.js +157 -0
- package/dist/components/Atoms/Collapsible/index.js +111 -0
- package/dist/components/Atoms/Column/Column.stories.js +42 -0
- package/dist/components/{Column → Atoms/Column}/index.js +22 -4
- package/dist/components/Atoms/Icon/Icon.stories.js +39 -0
- package/dist/components/{Icon → Atoms/Icon}/index.js +2 -0
- package/dist/components/Atoms/Image/Image.stories.js +40 -0
- package/dist/components/Atoms/Image/index.js +66 -0
- package/dist/components/Atoms/InformationIcon/InformationIcon.stories.js +108 -0
- package/dist/components/{InformationIcon → Atoms/InformationIcon}/index.js +3 -2
- package/dist/components/Atoms/Input/Input.stories.js +60 -0
- package/dist/components/Atoms/Input/index.js +40 -0
- package/dist/components/Atoms/NavItem/NavItem.stories.js +115 -0
- package/dist/components/{NavItem → Atoms/NavItem}/index.js +7 -6
- package/dist/components/Atoms/Row/Row.stories.js +33 -0
- package/dist/components/Atoms/Row/index.js +35 -0
- package/dist/components/Atoms/StarRating/StarRating.stories.js +41 -0
- package/dist/components/Atoms/StarRating/index.css +8 -0
- package/dist/components/{StarRating → Atoms/StarRating}/index.js +2 -2
- package/dist/components/Atoms/TextAndTitle/TextAndTitle.stories.js +66 -0
- package/dist/components/{TextAndTitle → Atoms/TextAndTitle}/index.js +10 -2
- package/dist/components/Atoms/Tubestops/Tubestops.stories.js +57 -0
- package/dist/components/Atoms/Tubestops/index.js +59 -0
- package/dist/components/Atoms/Tubestops/styles.css +92 -0
- package/dist/components/Atoms/Video/Video.stories.js +50 -0
- package/dist/components/Atoms/Video/index.js +57 -0
- package/dist/components/{Accordion → Organisms/Accordion}/Accordion.stories.js +69 -30
- package/dist/components/Organisms/Accordion/index.js +46 -0
- package/dist/components/Organisms/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +125 -0
- package/dist/components/{BreadcrumbsBordered → Organisms/BreadcrumbsBordered}/index.js +4 -2
- package/dist/components/Organisms/Card/Card.stories.js +359 -0
- package/dist/components/{Card → Organisms/Card}/index.js +38 -2
- package/dist/components/Organisms/CardWithTopImage/CardWithTopImage.stories.js +73 -0
- package/dist/components/Organisms/CardWithTopImage/index.js +59 -0
- package/dist/components/Organisms/CardWithTopImage/styles.css +3 -0
- package/dist/components/Organisms/Carousel/Carousel.stories.js +130 -0
- package/dist/components/Organisms/Carousel/index.css +7 -0
- package/dist/components/{Carousel → Organisms/Carousel}/index.js +5 -2
- package/dist/components/Organisms/Chevron Card/ChevronCard.stories.js +28 -0
- package/dist/components/Organisms/Chevron Card/index.js +60 -0
- package/dist/components/Organisms/Chevron Card/styles.css +0 -0
- package/dist/components/Organisms/Form/Form.stories.js +124 -0
- package/dist/components/{Form → Organisms/Form}/index.js +6 -4
- package/dist/components/Organisms/FyreCard/FyreCard.stories.js +136 -0
- package/dist/components/{Input → Organisms/FyreCard}/index.js +34 -30
- package/dist/components/Organisms/ImageLink/ImageLink.stories.js +87 -0
- package/dist/components/Organisms/ImageLink/index.js +45 -0
- package/dist/components/Organisms/ImageLinkList/ImageLinkList.stories.js +48 -0
- package/dist/components/Organisms/ImageLinkList/index.js +33 -0
- package/dist/components/Organisms/Jumbotron/Jumbotron.stories.js +55 -0
- package/dist/components/{Jumbotron → Organisms/Jumbotron}/index.js +8 -6
- package/dist/components/Organisms/Nav/Nav.stories.js +113 -0
- package/dist/components/{Nav → Organisms/Nav}/index.js +79 -44
- package/dist/components/Organisms/NewsCard/NewsCard.stories.js +69 -0
- package/dist/components/Organisms/NewsCard/index.js +73 -0
- package/dist/components/Organisms/Profile/Profile.stories.js +94 -0
- package/dist/components/{Profile → Organisms/Profile}/index.js +10 -7
- package/dist/components/Organisms/Search/Search.stories.js +57 -0
- package/dist/components/{Search → Organisms/Search}/index.js +22 -13
- package/dist/components/Organisms/Testimonial/Testimonial.stories.js +116 -0
- package/dist/components/{Testimonial → Organisms/Testimonial}/index.js +2 -0
- package/dist/components/Organisms/Timeline/Timeline.stories.js +77 -0
- package/dist/components/Organisms/Timeline/index.js +127 -0
- package/dist/components/Organisms/Timeline/styles.css +89 -0
- package/dist/components/Organisms/UserIcon/UserIcon.stories.js +55 -0
- package/dist/components/{UserIcon → Organisms/UserIcon}/index.js +2 -0
- package/dist/index.js +91 -51
- package/dist/utils/controls.js +505 -0
- package/package.json +24 -23
- package/dist/components/Accordion/README.md +0 -29
- package/dist/components/Accordion/index.js +0 -40
- package/dist/components/AlertBar/AlertBar.stories.js +0 -128
- package/dist/components/AlertBar/README.md +0 -19
- package/dist/components/AlertBar/index.js +0 -43
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +0 -60
- package/dist/components/Breadcrumbs/README.md +0 -28
- package/dist/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -73
- package/dist/components/BreadcrumbsBordered/README.md +0 -28
- package/dist/components/BreadcrumbsBorderedItem/BreadcrumbsBorderedItem.stories.js +0 -57
- package/dist/components/BreadcrumbsBorderedItem/README.md +0 -28
- package/dist/components/BreadcrumbsBorderedItem/index.css +0 -57
- package/dist/components/Button/Button.stories.js +0 -389
- package/dist/components/Button/README.md +0 -36
- package/dist/components/Card/Card.stories.js +0 -353
- package/dist/components/Card/README.md +0 -44
- package/dist/components/CardImageLink/CardImageLink.stories.js +0 -115
- package/dist/components/CardImageLink/README.md +0 -1
- package/dist/components/CardImageLink/index.js +0 -49
- package/dist/components/CardImageLinkList/CardImageLinkList.stories.js +0 -63
- package/dist/components/CardImageLinkList/README.md +0 -1
- package/dist/components/CardImageLinkList/index.js +0 -48
- package/dist/components/Carousel/Carousel.stories.js +0 -124
- package/dist/components/Carousel/README.md +0 -22
- package/dist/components/Carousel/index.css +0 -7
- package/dist/components/Collapsible/Collapsible.stories.js +0 -101
- package/dist/components/Collapsible/README.md +0 -19
- package/dist/components/Collapsible/index.js +0 -58
- package/dist/components/Column/Column.stories.js +0 -168
- package/dist/components/Column/README.md +0 -23
- package/dist/components/Form/Form.stories.js +0 -59
- package/dist/components/Form/README.md +0 -16
- package/dist/components/Icon/Icon.stories.js +0 -68
- package/dist/components/Icon/README.md +0 -12
- package/dist/components/Image/Image.stories.js +0 -62
- package/dist/components/Image/README.md +0 -12
- package/dist/components/Image/index.js +0 -31
- package/dist/components/InformationIcon/InformationIcon.stories.js +0 -122
- package/dist/components/InformationIcon/README.md +0 -23
- package/dist/components/Input/Input.stories.js +0 -58
- package/dist/components/Input/README.md +0 -23
- package/dist/components/Jumbotron/Jumbotron.stories.js +0 -118
- package/dist/components/Jumbotron/README.md +0 -24
- package/dist/components/ListItem/ListItem.stories.js +0 -50
- package/dist/components/ListItem/README.md +0 -17
- package/dist/components/ListItem/index.js +0 -25
- package/dist/components/ListItemDropdown/ListItemDropdown.stories.js +0 -50
- package/dist/components/ListItemDropdown/README.md +0 -16
- package/dist/components/ListItemDropdown/index.js +0 -56
- package/dist/components/Nav/Nav.stories.js +0 -320
- package/dist/components/Nav/README.md +0 -45
- package/dist/components/NavItem/NavItem.stories.js +0 -150
- package/dist/components/NavItem/README.md +0 -36
- package/dist/components/Profile/Profile.stories.js +0 -86
- package/dist/components/Profile/README.md +0 -17
- package/dist/components/Profile/user.jpeg +0 -0
- package/dist/components/Search/README.md +0 -21
- package/dist/components/Search/Search.stories.js +0 -122
- package/dist/components/StarRating/README.md +0 -12
- package/dist/components/StarRating/StarRating.stories.js +0 -79
- package/dist/components/StarRating/index.css +0 -8
- package/dist/components/Testimonial/README.md +0 -22
- package/dist/components/Testimonial/Testimonial.stories.js +0 -125
- package/dist/components/TextAndTitle/README.md +0 -14
- package/dist/components/TextAndTitle/TextAndTitle.stories.js +0 -66
- package/dist/components/UserIcon/README.md +0 -18
- package/dist/components/UserIcon/UserIcon.stories.js +0 -38
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.videoOptions = exports.starOptions = exports.navThirdRow = exports.navRowTwoOfTwo = exports.navRowOneOfTwo = exports.navMobileItems = exports.imageOptions = exports.iconOptions = exports.columnOptions = exports.buttonOptions = void 0;
|
|
7
|
+
|
|
8
|
+
var _Image = _interopRequireDefault(require("../components/Atoms/Image"));
|
|
9
|
+
|
|
10
|
+
var _Profile = _interopRequireDefault(require("../components/Organisms/Profile"));
|
|
11
|
+
|
|
12
|
+
var _Search = _interopRequireDefault(require("../components/Organisms/Search"));
|
|
13
|
+
|
|
14
|
+
var _NavItem = _interopRequireDefault(require("../components/Atoms/NavItem"));
|
|
15
|
+
|
|
16
|
+
var _Collapsible = _interopRequireDefault(require("../components/Atoms/Collapsible"));
|
|
17
|
+
|
|
18
|
+
var _user = _interopRequireDefault(require("../Assets/Images/user.jpeg"));
|
|
19
|
+
|
|
20
|
+
var _logoWhite = _interopRequireDefault(require("../Assets/Images/logoWhite.png"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
const buttonTypeOptions = ['external', 'internal', 'social'];
|
|
25
|
+
const buttonDesignOptions = ['standard', 'slide'];
|
|
26
|
+
const navLinks = [{
|
|
27
|
+
name: 'link 1',
|
|
28
|
+
reference: '/'
|
|
29
|
+
}, {
|
|
30
|
+
name: 'link 2',
|
|
31
|
+
reference: '/'
|
|
32
|
+
}, {
|
|
33
|
+
name: 'link n-1',
|
|
34
|
+
reference: '/'
|
|
35
|
+
}, {
|
|
36
|
+
name: 'link n',
|
|
37
|
+
reference: '/'
|
|
38
|
+
}];
|
|
39
|
+
const navRowOneOfTwo = [{
|
|
40
|
+
columnClasses: 'xs:hidden md:inline-flex',
|
|
41
|
+
classNames: 'pt-2 mx-auto',
|
|
42
|
+
smColumnWidth: 5,
|
|
43
|
+
mdColumnWidth: 5,
|
|
44
|
+
lgColumnWidth: 5,
|
|
45
|
+
component: null
|
|
46
|
+
}, {
|
|
47
|
+
classNames: 'mx-auto h-full',
|
|
48
|
+
smColumnWidth: 2,
|
|
49
|
+
mdColumnWidth: 2,
|
|
50
|
+
lgColumnWidth: 6,
|
|
51
|
+
component: /*#__PURE__*/React.createElement(_Image.default, {
|
|
52
|
+
classNames: "mx-auto",
|
|
53
|
+
height: "16",
|
|
54
|
+
width: "auto",
|
|
55
|
+
image: _logoWhite.default,
|
|
56
|
+
altText: "Logo"
|
|
57
|
+
})
|
|
58
|
+
}, {
|
|
59
|
+
columnClasses: 'lg:inline-flex hidden',
|
|
60
|
+
classNames: '',
|
|
61
|
+
mdColumnWidth: 1,
|
|
62
|
+
lgColumnWidth: 3,
|
|
63
|
+
component: null
|
|
64
|
+
}, {
|
|
65
|
+
classNames: 'pt-3',
|
|
66
|
+
smColumnWidth: 3,
|
|
67
|
+
mdColumnWidth: 3,
|
|
68
|
+
lgColumnWidth: 2,
|
|
69
|
+
component: /*#__PURE__*/React.createElement(_Search.default, {
|
|
70
|
+
placeholder: "search"
|
|
71
|
+
})
|
|
72
|
+
}, {
|
|
73
|
+
classNames: 'h-full pt-2 mx-auto pr-4 ',
|
|
74
|
+
smColumnWidth: 2,
|
|
75
|
+
mdColumnWidth: 1,
|
|
76
|
+
lgColumnWidth: 1,
|
|
77
|
+
component: /*#__PURE__*/React.createElement(_Profile.default, {
|
|
78
|
+
imageHeight: "12",
|
|
79
|
+
imageWidth: "auto",
|
|
80
|
+
profileLinks: navLinks,
|
|
81
|
+
userImage: _user.default,
|
|
82
|
+
rounded: true
|
|
83
|
+
})
|
|
84
|
+
}];
|
|
85
|
+
exports.navRowOneOfTwo = navRowOneOfTwo;
|
|
86
|
+
const navRowTwoOfTwo = [{
|
|
87
|
+
columnClasses: 'hidden',
|
|
88
|
+
classNames: '',
|
|
89
|
+
component: null
|
|
90
|
+
}, {
|
|
91
|
+
classNames: '',
|
|
92
|
+
smColumnWidth: 12,
|
|
93
|
+
mdColumnWidth: 12,
|
|
94
|
+
lgColumnWidth: 12,
|
|
95
|
+
component: /*#__PURE__*/React.createElement("ul", {
|
|
96
|
+
id: "nav-list",
|
|
97
|
+
className: "flex justify-center items-center pt-5"
|
|
98
|
+
}, navLinks && navLinks.map(link => {
|
|
99
|
+
return /*#__PURE__*/React.createElement(_NavItem.default, {
|
|
100
|
+
name: link.name,
|
|
101
|
+
url: link.reference,
|
|
102
|
+
borderColor: "black",
|
|
103
|
+
textColor: "black",
|
|
104
|
+
bgColor: "",
|
|
105
|
+
hoverBorderColor: "blue",
|
|
106
|
+
hoverTextColor: "blue",
|
|
107
|
+
hoverBgColor: "white",
|
|
108
|
+
bordered: true,
|
|
109
|
+
rounded: true
|
|
110
|
+
});
|
|
111
|
+
}))
|
|
112
|
+
}, {
|
|
113
|
+
columnClasses: 'hidden',
|
|
114
|
+
classNames: '',
|
|
115
|
+
component: null
|
|
116
|
+
}];
|
|
117
|
+
exports.navRowTwoOfTwo = navRowTwoOfTwo;
|
|
118
|
+
const navMobileItems = [{
|
|
119
|
+
classNames: 'pt-3',
|
|
120
|
+
component: /*#__PURE__*/React.createElement(_Search.default, {
|
|
121
|
+
placeholder: "search"
|
|
122
|
+
})
|
|
123
|
+
}, {
|
|
124
|
+
classNames: '',
|
|
125
|
+
component: /*#__PURE__*/React.createElement(_Profile.default, {
|
|
126
|
+
imageHeight: "12",
|
|
127
|
+
imageWidth: "auto",
|
|
128
|
+
profileLinks: navLinks,
|
|
129
|
+
userImage: _user.default,
|
|
130
|
+
rounded: true
|
|
131
|
+
})
|
|
132
|
+
}, {
|
|
133
|
+
classNames: '',
|
|
134
|
+
component: /*#__PURE__*/React.createElement("ul", {
|
|
135
|
+
id: "nav-list",
|
|
136
|
+
className: ""
|
|
137
|
+
}, navLinks && navLinks.map(link => {
|
|
138
|
+
return /*#__PURE__*/React.createElement(_NavItem.default, {
|
|
139
|
+
name: link.name,
|
|
140
|
+
url: link.reference,
|
|
141
|
+
bgColor: "#38B6FF",
|
|
142
|
+
textColor: "white",
|
|
143
|
+
hoverTextColor: "#38B6FF",
|
|
144
|
+
hoverBgColor: "white",
|
|
145
|
+
rounded: true
|
|
146
|
+
});
|
|
147
|
+
}))
|
|
148
|
+
}, {
|
|
149
|
+
classNames: '',
|
|
150
|
+
component: /*#__PURE__*/React.createElement("ul", {
|
|
151
|
+
id: "nav-list",
|
|
152
|
+
className: ""
|
|
153
|
+
}, navLinks && navLinks.map(link => {
|
|
154
|
+
return /*#__PURE__*/React.createElement(_Collapsible.default, {
|
|
155
|
+
title: "Inspiration",
|
|
156
|
+
content: "Shop By Color",
|
|
157
|
+
borderBottom: true,
|
|
158
|
+
textColor: "white",
|
|
159
|
+
bgColor: "black",
|
|
160
|
+
hoverBgColor: "white",
|
|
161
|
+
hoverTextColor: "black"
|
|
162
|
+
});
|
|
163
|
+
}))
|
|
164
|
+
}];
|
|
165
|
+
exports.navMobileItems = navMobileItems;
|
|
166
|
+
const navThirdRow = [{
|
|
167
|
+
smColumnWidth: 6,
|
|
168
|
+
mdColumnWidth: 4,
|
|
169
|
+
lgColumnWidth: 4,
|
|
170
|
+
component: /*#__PURE__*/React.createElement(_Image.default, {
|
|
171
|
+
classNames: "mx-auto h-full",
|
|
172
|
+
height: "16",
|
|
173
|
+
width: "auto",
|
|
174
|
+
image: _logoWhite.default,
|
|
175
|
+
altText: "Logo"
|
|
176
|
+
})
|
|
177
|
+
}, {
|
|
178
|
+
smColumnWidth: 0,
|
|
179
|
+
mdColumnWidth: 4,
|
|
180
|
+
lgColumnWidth: 4,
|
|
181
|
+
component: null
|
|
182
|
+
}, {
|
|
183
|
+
smColumnWidth: 6,
|
|
184
|
+
mdColumnWidth: 4,
|
|
185
|
+
lgColumnWidth: 4,
|
|
186
|
+
component: /*#__PURE__*/React.createElement(_Image.default, {
|
|
187
|
+
classNames: "mx-auto h-full",
|
|
188
|
+
height: "16",
|
|
189
|
+
width: "auto",
|
|
190
|
+
image: _logoWhite.default,
|
|
191
|
+
altText: "Logo"
|
|
192
|
+
})
|
|
193
|
+
}];
|
|
194
|
+
exports.navThirdRow = navThirdRow;
|
|
195
|
+
const buttonOptions = {
|
|
196
|
+
buttonDesign: {
|
|
197
|
+
description: '',
|
|
198
|
+
control: 'select',
|
|
199
|
+
options: buttonDesignOptions,
|
|
200
|
+
table: {
|
|
201
|
+
category: 'Button'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
buttonBgColor: {
|
|
205
|
+
description: '',
|
|
206
|
+
control: 'color',
|
|
207
|
+
table: {
|
|
208
|
+
category: 'Button',
|
|
209
|
+
subcategory: 'Color'
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
buttonTextColor: {
|
|
213
|
+
description: '',
|
|
214
|
+
control: 'color',
|
|
215
|
+
table: {
|
|
216
|
+
category: 'Button',
|
|
217
|
+
subcategory: 'Color'
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
buttonBorderColor: {
|
|
221
|
+
description: '',
|
|
222
|
+
control: 'color',
|
|
223
|
+
table: {
|
|
224
|
+
category: 'Button',
|
|
225
|
+
subcategory: 'Color'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
hoverButtonBorderColor: {
|
|
229
|
+
description: '',
|
|
230
|
+
control: 'color',
|
|
231
|
+
table: {
|
|
232
|
+
category: 'Hover Button',
|
|
233
|
+
subcategory: 'Color'
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
hoverButtonBgColor: {
|
|
237
|
+
description: '',
|
|
238
|
+
control: 'color',
|
|
239
|
+
table: {
|
|
240
|
+
category: 'Hover Button',
|
|
241
|
+
subcategory: 'Color'
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
hoverButtonTextColor: {
|
|
245
|
+
description: '',
|
|
246
|
+
control: 'color',
|
|
247
|
+
table: {
|
|
248
|
+
category: 'Hover Button',
|
|
249
|
+
subcategory: 'Color'
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
buttonType: {
|
|
253
|
+
description: '',
|
|
254
|
+
control: 'select',
|
|
255
|
+
options: buttonTypeOptions,
|
|
256
|
+
table: {
|
|
257
|
+
category: 'Button'
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
hasCta: {
|
|
261
|
+
description: '',
|
|
262
|
+
control: 'text',
|
|
263
|
+
table: {
|
|
264
|
+
category: 'Button'
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
ctaText: {
|
|
268
|
+
description: '',
|
|
269
|
+
control: 'text',
|
|
270
|
+
table: {
|
|
271
|
+
category: 'Button'
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
onClick: {
|
|
275
|
+
description: 'Function',
|
|
276
|
+
table: {
|
|
277
|
+
description: 'test',
|
|
278
|
+
category: 'Events'
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
url: {
|
|
282
|
+
description: '',
|
|
283
|
+
table: {
|
|
284
|
+
description: 'text',
|
|
285
|
+
category: 'Button'
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
buttonCenterIcon: {
|
|
289
|
+
description: '',
|
|
290
|
+
table: {
|
|
291
|
+
description: 'text',
|
|
292
|
+
category: 'Button',
|
|
293
|
+
subcategory: 'Icon'
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
buttonLeftIcon: {
|
|
297
|
+
description: '',
|
|
298
|
+
table: {
|
|
299
|
+
description: 'text',
|
|
300
|
+
category: 'Button',
|
|
301
|
+
subcategory: 'Icon'
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
buttonRightIcon: {
|
|
305
|
+
description: '',
|
|
306
|
+
table: {
|
|
307
|
+
description: 'text',
|
|
308
|
+
category: 'Button',
|
|
309
|
+
subcategory: 'Icon'
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
exports.buttonOptions = buttonOptions;
|
|
314
|
+
const videoOptions = {
|
|
315
|
+
width: {
|
|
316
|
+
description: '',
|
|
317
|
+
control: 'number',
|
|
318
|
+
table: {
|
|
319
|
+
category: 'Video'
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
height: {
|
|
323
|
+
description: '',
|
|
324
|
+
control: 'number',
|
|
325
|
+
table: {
|
|
326
|
+
category: 'Video'
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
withControls: {
|
|
330
|
+
description: '',
|
|
331
|
+
control: 'boolean',
|
|
332
|
+
table: {
|
|
333
|
+
category: 'Video'
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
withPoster: {
|
|
337
|
+
description: '',
|
|
338
|
+
control: 'boolean',
|
|
339
|
+
table: {
|
|
340
|
+
category: 'Video'
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
autoPlay: {
|
|
344
|
+
description: '',
|
|
345
|
+
control: 'boolean',
|
|
346
|
+
table: {
|
|
347
|
+
category: 'Video'
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
muted: {
|
|
351
|
+
description: '',
|
|
352
|
+
control: 'boolean',
|
|
353
|
+
table: {
|
|
354
|
+
category: 'Video'
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
poster: {
|
|
358
|
+
description: '',
|
|
359
|
+
control: 'text',
|
|
360
|
+
table: {
|
|
361
|
+
category: 'Video'
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
ogvFile: {
|
|
365
|
+
description: '',
|
|
366
|
+
control: 'text',
|
|
367
|
+
table: {
|
|
368
|
+
category: 'Video'
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
mp4File: {
|
|
372
|
+
description: '',
|
|
373
|
+
control: 'text',
|
|
374
|
+
table: {
|
|
375
|
+
category: 'Video'
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
exports.videoOptions = videoOptions;
|
|
380
|
+
const iconOptions = {
|
|
381
|
+
type: {
|
|
382
|
+
description: 'The name of the icon you wish to use',
|
|
383
|
+
control: 'text',
|
|
384
|
+
table: {
|
|
385
|
+
category: 'Icon'
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
size: {
|
|
389
|
+
description: 'An integer between 1 and 5 to dictage the magnification of the icon',
|
|
390
|
+
control: 'number',
|
|
391
|
+
table: {
|
|
392
|
+
category: 'Icon'
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
exports.iconOptions = iconOptions;
|
|
397
|
+
const columnOptions = {
|
|
398
|
+
sm: {
|
|
399
|
+
description: '',
|
|
400
|
+
control: {
|
|
401
|
+
type: 'number',
|
|
402
|
+
min: 1,
|
|
403
|
+
max: 12,
|
|
404
|
+
step: 1
|
|
405
|
+
},
|
|
406
|
+
table: {
|
|
407
|
+
category: 'Column'
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
md: {
|
|
411
|
+
description: '',
|
|
412
|
+
control: {
|
|
413
|
+
type: 'number',
|
|
414
|
+
min: 1,
|
|
415
|
+
max: 12,
|
|
416
|
+
step: 1
|
|
417
|
+
},
|
|
418
|
+
table: {
|
|
419
|
+
category: 'Column'
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
lg: {
|
|
423
|
+
description: '',
|
|
424
|
+
control: {
|
|
425
|
+
type: 'number',
|
|
426
|
+
min: 1,
|
|
427
|
+
max: 12,
|
|
428
|
+
step: 1
|
|
429
|
+
},
|
|
430
|
+
table: {
|
|
431
|
+
category: 'Column'
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
xl: {
|
|
435
|
+
description: '',
|
|
436
|
+
control: {
|
|
437
|
+
type: 'number',
|
|
438
|
+
min: 1,
|
|
439
|
+
max: 12,
|
|
440
|
+
step: 1
|
|
441
|
+
},
|
|
442
|
+
table: {
|
|
443
|
+
category: 'Column'
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
exports.columnOptions = columnOptions;
|
|
448
|
+
const imageOptions = {
|
|
449
|
+
width: {
|
|
450
|
+
description: '',
|
|
451
|
+
control: 'number',
|
|
452
|
+
table: {
|
|
453
|
+
category: 'Image'
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
height: {
|
|
457
|
+
description: '',
|
|
458
|
+
control: 'number',
|
|
459
|
+
table: {
|
|
460
|
+
category: 'Image'
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
image: {
|
|
464
|
+
description: '',
|
|
465
|
+
control: 'text',
|
|
466
|
+
table: {
|
|
467
|
+
category: 'Image'
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
altText: {
|
|
471
|
+
description: '',
|
|
472
|
+
control: 'text',
|
|
473
|
+
table: {
|
|
474
|
+
category: 'Image'
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
exports.imageOptions = imageOptions;
|
|
479
|
+
const starOptions = {
|
|
480
|
+
size: {
|
|
481
|
+
description: 'An integer between 1 and 5 to dictate the magnification of the icon',
|
|
482
|
+
control: {
|
|
483
|
+
type: 'number',
|
|
484
|
+
min: 1,
|
|
485
|
+
max: 5,
|
|
486
|
+
step: 1
|
|
487
|
+
},
|
|
488
|
+
table: {
|
|
489
|
+
category: ''
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
stars: {
|
|
493
|
+
description: 'An integer between 1 and 5 to dictate the number of gold stars',
|
|
494
|
+
control: {
|
|
495
|
+
type: 'number',
|
|
496
|
+
min: 1,
|
|
497
|
+
max: 5,
|
|
498
|
+
step: 1
|
|
499
|
+
},
|
|
500
|
+
table: {
|
|
501
|
+
category: ''
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
exports.starOptions = starOptions;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "trepur_components",
|
|
3
3
|
"description": "component lib",
|
|
4
4
|
"author": "trepur_ttenneb",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"private": false,
|
|
7
7
|
"keywords": [
|
|
8
8
|
"react",
|
|
@@ -17,18 +17,15 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/polyfill": "^7.12.1",
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@testing-library/
|
|
23
|
-
"@testing-library/react": "^11.2.7",
|
|
24
|
-
"@testing-library/user-event": "^12.8.3",
|
|
20
|
+
"@testing-library/jest-dom": "^5.16.2",
|
|
21
|
+
"@testing-library/react": "^12.1.3",
|
|
22
|
+
"@testing-library/user-event": "^13.5.0",
|
|
25
23
|
"react": "^17.0.2",
|
|
26
24
|
"react-dom": "^17.0.2",
|
|
27
|
-
"react-scripts": "
|
|
25
|
+
"react-scripts": "5.0.0",
|
|
28
26
|
"react-slick": "^0.28.1",
|
|
29
27
|
"slick-carousel": "^1.8.1",
|
|
30
|
-
"
|
|
31
|
-
"web-vitals": "^1.1.2"
|
|
28
|
+
"web-vitals": "^2.1.4"
|
|
32
29
|
},
|
|
33
30
|
"scripts": {
|
|
34
31
|
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files",
|
|
@@ -65,19 +62,23 @@
|
|
|
65
62
|
]
|
|
66
63
|
},
|
|
67
64
|
"devDependencies": {
|
|
68
|
-
"@babel/cli": "^7.
|
|
69
|
-
"@babel/core": "^7.
|
|
70
|
-
"@babel/preset-env": "^7.16.
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/addon-links": "^6.
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"storybook-
|
|
81
|
-
"
|
|
65
|
+
"@babel/cli": "^7.17.6",
|
|
66
|
+
"@babel/core": "^7.17.5",
|
|
67
|
+
"@babel/preset-env": "^7.16.11",
|
|
68
|
+
"@storybook/addon-actions": "^6.4.19",
|
|
69
|
+
"@storybook/addon-essentials": "^6.4.19",
|
|
70
|
+
"@storybook/addon-interactions": "^6.4.19",
|
|
71
|
+
"@storybook/addon-links": "^6.4.19",
|
|
72
|
+
"@storybook/builder-webpack5": "^6.4.19",
|
|
73
|
+
"@storybook/manager-webpack5": "^6.4.19",
|
|
74
|
+
"@storybook/node-logger": "^6.4.19",
|
|
75
|
+
"@storybook/preset-create-react-app": "^4.0.1",
|
|
76
|
+
"@storybook/react": "^6.4.19",
|
|
77
|
+
"@storybook/testing-library": "0.0.9",
|
|
78
|
+
"autoprefixer": "^10.4.2",
|
|
79
|
+
"babel-cli": "^6.26.0",
|
|
80
|
+
"postcss": "^8.4.6",
|
|
81
|
+
"tailwindcss": "^3.0.23",
|
|
82
|
+
"webpack": "^5.69.1"
|
|
82
83
|
}
|
|
83
84
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Accordion
|
|
2
|
-
|
|
3
|
-
An accordion built from many collapsible elements
|
|
4
|
-
|
|
5
|
-
## Example
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
const items = [
|
|
9
|
-
{
|
|
10
|
-
title: 'This is title 1',
|
|
11
|
-
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
|
|
12
|
-
icon: 'calendar'
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
title: 'This is title 2',
|
|
16
|
-
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
|
|
17
|
-
icon: 'calendar'
|
|
18
|
-
},
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
<Accordion
|
|
22
|
-
items={items}
|
|
23
|
-
/>
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Parameters
|
|
28
|
-
`items={array} (default=null)`
|
|
29
|
-
`showBorders={boolean} (default=null)`
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Collapsible = _interopRequireDefault(require("../Collapsible"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
const Accordion = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
items,
|
|
17
|
-
showBorders
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement("div", null, items && items.map((item, i) => {
|
|
20
|
-
if (i + 1 === items.length) {
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_Collapsible.default, {
|
|
22
|
-
title: item.title,
|
|
23
|
-
content: item.content,
|
|
24
|
-
icon: item.icon,
|
|
25
|
-
borderTop: showBorders,
|
|
26
|
-
borderBottom: showBorders
|
|
27
|
-
});
|
|
28
|
-
} else {
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_Collapsible.default, {
|
|
30
|
-
title: item.title,
|
|
31
|
-
content: item.content,
|
|
32
|
-
icon: item.icon,
|
|
33
|
-
borderTop: showBorders
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var _default = Accordion;
|
|
40
|
-
exports.default = _default;
|