trepur_components 0.1.4 → 0.1.8
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/babel.config.json +16 -16
- package/dist/index.es.js +8 -0
- package/dist/index.js +8 -15
- package/package.json +8 -1
- package/rollup.config.js +37 -0
- package/src/Components/Button/{Button.stories.jsx → Button.stories.js} +0 -0
- package/src/Components/Button/{index.jsx → index.js} +0 -0
- package/src/Components/Icon/index.js +0 -7
- package/src/Components/index.js +3 -0
- package/src/Components/test/index.js +11 -0
- package/src/index.js +5 -3
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +0 -164
- package/dist/Components/Breadcrumbs/README.md +0 -0
- package/dist/Components/Breadcrumbs/index.js +0 -32
- package/dist/Components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -87
- package/dist/Components/BreadcrumbsBordered/README.md +0 -0
- package/dist/Components/BreadcrumbsBordered/index.css +0 -67
- package/dist/Components/BreadcrumbsBordered/index.js +0 -49
- package/dist/Components/Button/Button.stories.js +0 -185
- package/dist/Components/Button/README.md +0 -0
- package/dist/Components/Button/index.js +0 -35
- package/dist/Components/ButtonSlide/ButtonSlide.stories.js +0 -185
- package/dist/Components/ButtonSlide/README.md +0 -0
- package/dist/Components/ButtonSlide/Styles.css +0 -25
- package/dist/Components/ButtonSlide/index.js +0 -37
- package/dist/Components/Card/Card.stories.js +0 -204
- package/dist/Components/Card/README.md +0 -0
- package/dist/Components/Card/index.js +0 -83
- package/dist/Components/CardImageLink/CardImageLink.stories.js +0 -89
- package/dist/Components/CardImageLink/README.md +0 -0
- package/dist/Components/CardImageLink/index.js +0 -36
- package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +0 -63
- package/dist/Components/CardImageLinkList/README.md +0 -0
- package/dist/Components/CardImageLinkList/index.js +0 -35
- package/dist/Components/CardList/CardList.stories.js +0 -53
- package/dist/Components/CardList/README.md +0 -0
- package/dist/Components/CardList/index.js +0 -36
- package/dist/Components/Icon/Icon.stories.js +0 -73
- package/dist/Components/Icon/README.md +0 -0
- package/dist/Components/Icon/index.js +0 -45
- package/dist/Components/Jumbotron/Jumbotron.stories.js +0 -81
- package/dist/Components/Jumbotron/README.md +0 -0
- package/dist/Components/Jumbotron/index.js +0 -43
- package/dist/Components/Nav/Nav.stories.js +0 -108
- package/dist/Components/Nav/README.md +0 -0
- package/dist/Components/Nav/index.js +0 -170
- package/dist/Components/Profile/Profile.stories.js +0 -46
- package/dist/Components/Profile/README.md +0 -0
- package/dist/Components/Profile/index.js +0 -41
- package/dist/Components/Search/README.md +0 -0
- package/dist/Components/Search/Search.stories.js +0 -72
- package/dist/Components/Search/index.js +0 -43
- package/dist/Components/SignedInLinks/README.md +0 -0
- package/dist/Components/SignedInLinks/SignedInLinks.stories.js +0 -48
- package/dist/Components/SignedInLinks/index.js +0 -27
- package/dist/Components/SignedOutLinks/README.md +0 -0
- package/dist/Components/SignedOutLinks/SignedOutLinks.stories.js +0 -48
- package/dist/Components/SignedOutLinks/index.js +0 -27
- package/dist/index.css +0 -4
package/babel.config.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"presets": [
|
|
3
|
+
[
|
|
4
|
+
"@babel/env",
|
|
5
|
+
{
|
|
6
|
+
"targets": {
|
|
7
|
+
"edge": "17",
|
|
8
|
+
"firefox": "60",
|
|
9
|
+
"chrome": "67",
|
|
10
|
+
"safari": "11.1"
|
|
11
|
+
},
|
|
12
|
+
"useBuiltIns": "usage",
|
|
13
|
+
"corejs": "3.6.5"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"@babel/preset-react"
|
|
17
|
+
]
|
|
18
18
|
}
|
package/dist/index.es.js
ADDED
package/dist/index.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// module.exports = { ...components }
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
components: index
|
|
10
|
+
});
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
|
|
13
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
-
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
-
|
|
17
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
-
|
|
19
|
-
module.exports = _objectSpread({}, components);
|
|
12
|
+
exports.components = index;
|
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.1.
|
|
5
|
+
"version": "0.1.8",
|
|
6
6
|
"private": false,
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"web-vitals": "^1.1.2"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
+
"build-lib": "rollup -c",
|
|
22
23
|
"build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files",
|
|
23
24
|
"test": "craco test",
|
|
24
25
|
"eject": "react-scripts eject",
|
|
@@ -57,6 +58,8 @@
|
|
|
57
58
|
"@babel/cli": "^7.16.8",
|
|
58
59
|
"@babel/core": "^7.16.7",
|
|
59
60
|
"@babel/preset-env": "^7.16.8",
|
|
61
|
+
"@babel/preset-react": "^7.16.7",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
60
63
|
"@storybook/addon-actions": "^6.3.12",
|
|
61
64
|
"@storybook/addon-essentials": "^6.3.12",
|
|
62
65
|
"@storybook/addon-links": "^6.3.12",
|
|
@@ -65,6 +68,10 @@
|
|
|
65
68
|
"@storybook/react": "^6.3.12",
|
|
66
69
|
"autoprefixer": "^9.8.8",
|
|
67
70
|
"postcss": "^7.0.39",
|
|
71
|
+
"rollup": "^2.63.0",
|
|
72
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
73
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
74
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
68
75
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
|
|
69
76
|
}
|
|
70
77
|
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import babel from 'rollup-plugin-babel';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import external from 'rollup-plugin-peer-deps-external';
|
|
4
|
+
import { terser } from 'rollup-plugin-terser';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
|
|
7
|
+
const config = [
|
|
8
|
+
{
|
|
9
|
+
input: './src/index.js',
|
|
10
|
+
output: [
|
|
11
|
+
{
|
|
12
|
+
file: 'dist/index.js',
|
|
13
|
+
format: 'cjs',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
file: 'dist/index.es.js',
|
|
17
|
+
format: 'es',
|
|
18
|
+
exports: 'named',
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
plugins: [
|
|
22
|
+
postcss({
|
|
23
|
+
plugins: [],
|
|
24
|
+
minimize: true,
|
|
25
|
+
}),
|
|
26
|
+
babel({
|
|
27
|
+
exclude: 'node_modules/**',
|
|
28
|
+
presets: ['@babel/preset-react']
|
|
29
|
+
}),
|
|
30
|
+
external(),
|
|
31
|
+
resolve(),
|
|
32
|
+
//terser(),
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export default config
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import PropTypes from 'prop-types'
|
|
3
2
|
|
|
4
3
|
const Icon = ({ type, size, className, onClick }) => {
|
|
@@ -19,10 +18,4 @@ const Icon = ({ type, size, className, onClick }) => {
|
|
|
19
18
|
)
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
Icon.propTypes = {
|
|
23
|
-
type: PropTypes.string,
|
|
24
|
-
className: PropTypes.string,
|
|
25
|
-
onClick: PropTypes.func,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
21
|
export default Icon
|
package/src/index.js
CHANGED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports._Breadcrumbs = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _addonActions = require("@storybook/addon-actions");
|
|
11
|
-
|
|
12
|
-
var _README = _interopRequireDefault(require("./README.md"));
|
|
13
|
-
|
|
14
|
-
var _index = _interopRequireDefault(require("./index"));
|
|
15
|
-
|
|
16
|
-
require("../../index.css");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
const links = [{
|
|
21
|
-
link: '/',
|
|
22
|
-
name: 'link 1'
|
|
23
|
-
}, {
|
|
24
|
-
link: '/',
|
|
25
|
-
name: 'link 2'
|
|
26
|
-
}, {
|
|
27
|
-
link: '/',
|
|
28
|
-
name: 'Link 3'
|
|
29
|
-
}];
|
|
30
|
-
var _default = {
|
|
31
|
-
title: 'Components/Breadcrumbs',
|
|
32
|
-
argTypes: {
|
|
33
|
-
label: {
|
|
34
|
-
name: 'Text',
|
|
35
|
-
control: {
|
|
36
|
-
type: 'text'
|
|
37
|
-
},
|
|
38
|
-
defaultValue: 'Shop Now'
|
|
39
|
-
},
|
|
40
|
-
type: {
|
|
41
|
-
name: 'Type',
|
|
42
|
-
defaultValue: 'primary',
|
|
43
|
-
options: ['primary', 'secondary', 'ghost'],
|
|
44
|
-
control: {
|
|
45
|
-
type: 'select'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
iconPlacement: {
|
|
49
|
-
name: 'Icon',
|
|
50
|
-
defaultValue: 'none',
|
|
51
|
-
options: ['left', 'right', 'both', 'none'],
|
|
52
|
-
control: {
|
|
53
|
-
type: 'select'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
padded: {
|
|
57
|
-
name: 'Padded',
|
|
58
|
-
control: {
|
|
59
|
-
type: 'boolean'
|
|
60
|
-
},
|
|
61
|
-
defaultValue: false
|
|
62
|
-
},
|
|
63
|
-
social: {
|
|
64
|
-
name: 'Social',
|
|
65
|
-
defaultValue: 'None',
|
|
66
|
-
options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
|
|
67
|
-
control: {
|
|
68
|
-
type: 'select'
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
-
className: "p-4"
|
|
74
|
-
}, story())],
|
|
75
|
-
parameters: {
|
|
76
|
-
readme: {
|
|
77
|
-
sidebar: _README.default
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
exports.default = _default;
|
|
82
|
-
|
|
83
|
-
const _Breadcrumbs = args => {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
85
|
-
links: links
|
|
86
|
-
});
|
|
87
|
-
}; // export const SecondaryButton = () => {
|
|
88
|
-
// return (
|
|
89
|
-
// <Button ctaText='I am a button'>
|
|
90
|
-
// </Button>
|
|
91
|
-
// )
|
|
92
|
-
// }
|
|
93
|
-
// export const WithIconRight = () => {
|
|
94
|
-
// return (
|
|
95
|
-
// <Button rightIcon='thumbs-up' ctaText='I am a button'>
|
|
96
|
-
// </Button>
|
|
97
|
-
// )
|
|
98
|
-
// }
|
|
99
|
-
// WithIconRight.story = {
|
|
100
|
-
// name: 'With Icon (right)',
|
|
101
|
-
// }
|
|
102
|
-
// export const WithIconLeft = () => {
|
|
103
|
-
// return (
|
|
104
|
-
// <Button leftIcon='sign-in' ctaText='I am a button'>
|
|
105
|
-
// </Button>
|
|
106
|
-
// )
|
|
107
|
-
// }
|
|
108
|
-
// WithIconLeft.story = {
|
|
109
|
-
// name: 'With Icon (left)',
|
|
110
|
-
// }
|
|
111
|
-
// export const WithBothIcons = () => {
|
|
112
|
-
// return (
|
|
113
|
-
// <Button leftIcon='star' rightIcon='star' ctaText='I am a button'>
|
|
114
|
-
// </Button>
|
|
115
|
-
// )
|
|
116
|
-
// }
|
|
117
|
-
// export const ButtonAsExternalLink = () => {
|
|
118
|
-
// return (
|
|
119
|
-
// <Button as='a-external' ctaText='I am a button'>
|
|
120
|
-
// </Button>
|
|
121
|
-
// )
|
|
122
|
-
// }
|
|
123
|
-
// ButtonAsExternalLink.story = {
|
|
124
|
-
// name: 'Button as external link',
|
|
125
|
-
// }
|
|
126
|
-
// export const ButtonAsSemanticHtmlButton = () => {
|
|
127
|
-
// return (
|
|
128
|
-
// <Button as='button' htmlType='button' ctaText='I am a button' url='/'>
|
|
129
|
-
// </Button>
|
|
130
|
-
// )
|
|
131
|
-
// }
|
|
132
|
-
// ButtonAsSemanticHtmlButton.story = {
|
|
133
|
-
// name: 'Button as semantic html button',
|
|
134
|
-
// }
|
|
135
|
-
// export const ButtonAsSemanticHtmlSubmitButton = () => {
|
|
136
|
-
// return (
|
|
137
|
-
// <Button as='button' htmlType='submit' ctaText='I am a button'>
|
|
138
|
-
// </Button>
|
|
139
|
-
// )
|
|
140
|
-
// }
|
|
141
|
-
// ButtonAsSemanticHtmlSubmitButton.story = {
|
|
142
|
-
// name: 'Button as semantic html submit button',
|
|
143
|
-
// }
|
|
144
|
-
// export const ButtonAsInternalLink = () => {
|
|
145
|
-
// return (
|
|
146
|
-
// <Button as='Link' ctaText='I am a button' url='/'>
|
|
147
|
-
// </Button>
|
|
148
|
-
// )
|
|
149
|
-
// }
|
|
150
|
-
// ButtonAsInternalLink.story = {
|
|
151
|
-
// name: 'Button as internal link',
|
|
152
|
-
// }
|
|
153
|
-
// export const WithOnClickMethod = () => {
|
|
154
|
-
// return (
|
|
155
|
-
// <Button ctaText='I am a button' onClick={action('button-click')}>
|
|
156
|
-
// </Button>
|
|
157
|
-
// )
|
|
158
|
-
// }
|
|
159
|
-
// WithOnClickMethod.story = {
|
|
160
|
-
// name: 'With onClick method',
|
|
161
|
-
// }
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
exports._Breadcrumbs = _Breadcrumbs;
|
|
File without changes
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
const Breadcrumbs = _ref => {
|
|
9
|
-
let {
|
|
10
|
-
className,
|
|
11
|
-
links
|
|
12
|
-
} = _ref;
|
|
13
|
-
const linksLength = Object.keys(links).length;
|
|
14
|
-
let classes = className + ' flex py-2 px-8 ';
|
|
15
|
-
return /*#__PURE__*/React.createElement("ul", {
|
|
16
|
-
className: classes
|
|
17
|
-
}, links && links.map((link, i) => {
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
key: link.name
|
|
20
|
-
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: "flex"
|
|
22
|
-
}, i + 1 >= linksLength ? /*#__PURE__*/React.createElement("p", {
|
|
23
|
-
className: ""
|
|
24
|
-
}, link.name) : /*#__PURE__*/React.createElement("a", {
|
|
25
|
-
className: "text-social-facebook hover:underline",
|
|
26
|
-
href: link.link
|
|
27
|
-
}, link.name), i + 1 < linksLength ? /*#__PURE__*/React.createElement("p", null, "\xA0 > \xA0") : null)));
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var _default = Breadcrumbs;
|
|
32
|
-
exports.default = _default;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports._Breadcrumbs = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _README = _interopRequireDefault(require("./README.md"));
|
|
11
|
-
|
|
12
|
-
var _index = _interopRequireDefault(require("./index"));
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
const links = [{
|
|
19
|
-
link: '/',
|
|
20
|
-
name: 'link 1'
|
|
21
|
-
}, {
|
|
22
|
-
link: '/',
|
|
23
|
-
name: 'link 2'
|
|
24
|
-
}, {
|
|
25
|
-
link: '/',
|
|
26
|
-
name: 'Link 3'
|
|
27
|
-
}];
|
|
28
|
-
var _default = {
|
|
29
|
-
title: 'Components/BreadcrumbsBordered',
|
|
30
|
-
argTypes: {
|
|
31
|
-
label: {
|
|
32
|
-
name: 'Text',
|
|
33
|
-
control: {
|
|
34
|
-
type: 'text'
|
|
35
|
-
},
|
|
36
|
-
defaultValue: 'Shop Now'
|
|
37
|
-
},
|
|
38
|
-
type: {
|
|
39
|
-
name: 'Type',
|
|
40
|
-
defaultValue: 'primary',
|
|
41
|
-
options: ['primary', 'secondary', 'ghost'],
|
|
42
|
-
control: {
|
|
43
|
-
type: 'select'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
iconPlacement: {
|
|
47
|
-
name: 'Icon',
|
|
48
|
-
defaultValue: 'none',
|
|
49
|
-
options: ['left', 'right', 'both', 'none'],
|
|
50
|
-
control: {
|
|
51
|
-
type: 'select'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
padded: {
|
|
55
|
-
name: 'Padded',
|
|
56
|
-
control: {
|
|
57
|
-
type: 'boolean'
|
|
58
|
-
},
|
|
59
|
-
defaultValue: false
|
|
60
|
-
},
|
|
61
|
-
social: {
|
|
62
|
-
name: 'Social',
|
|
63
|
-
defaultValue: 'None',
|
|
64
|
-
options: ['Facebook', 'Twitter', 'Whatsapp', 'None'],
|
|
65
|
-
control: {
|
|
66
|
-
type: 'select'
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
decorators: [story => /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className: "p-4"
|
|
72
|
-
}, story())],
|
|
73
|
-
parameters: {
|
|
74
|
-
readme: {
|
|
75
|
-
sidebar: _README.default
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
exports.default = _default;
|
|
80
|
-
|
|
81
|
-
const _Breadcrumbs = args => {
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
83
|
-
links: links
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
exports._Breadcrumbs = _Breadcrumbs;
|
|
File without changes
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
|
|
5
|
-
|
|
6
|
-
.right-arrow {
|
|
7
|
-
@apply w-0;
|
|
8
|
-
@apply h-0;
|
|
9
|
-
border-top: 17px solid transparent;
|
|
10
|
-
border-bottom: 17px solid transparent;
|
|
11
|
-
border-left: 15px solid theme('colors.brand-border');
|
|
12
|
-
@apply absolute;
|
|
13
|
-
right: -15px;
|
|
14
|
-
@apply top-0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.let-arrow {
|
|
18
|
-
@apply w-0;
|
|
19
|
-
@apply h-0;
|
|
20
|
-
border-top: 17px solid transparent;
|
|
21
|
-
border-bottom: 17px solid transparent;
|
|
22
|
-
border-left: 17px solid theme('colors.white');
|
|
23
|
-
@apply absolute;
|
|
24
|
-
left: 0px;
|
|
25
|
-
@apply top-0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.test-arrow {
|
|
29
|
-
@apply w-0;
|
|
30
|
-
@apply h-0;
|
|
31
|
-
border-top: 17px solid transparent;
|
|
32
|
-
border-bottom: 17px solid transparent;
|
|
33
|
-
border-left: 15px solid theme('colors.brand-border');
|
|
34
|
-
@apply absolute;
|
|
35
|
-
left: -8px;
|
|
36
|
-
bottom: -11px;
|
|
37
|
-
transform: rotate(48deg);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.test-arrow-top {
|
|
41
|
-
@apply w-0;
|
|
42
|
-
@apply h-0;
|
|
43
|
-
border-top: 15px solid theme('colors.brand-border');
|
|
44
|
-
border-bottom: 17px solid transparent;
|
|
45
|
-
border-left: 17px solid transparent;
|
|
46
|
-
@apply absolute;
|
|
47
|
-
left: -17px;
|
|
48
|
-
top: 0px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.voucherCode__btn {
|
|
52
|
-
@apply relative;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.voucherCode__btn:hover .right-arrow {
|
|
56
|
-
border-left-color: theme('colors.brand-primary');
|
|
57
|
-
}
|
|
58
|
-
.voucherCode__btn:hover .test-arrow {
|
|
59
|
-
border-left-color: theme('colors.brand-primary');
|
|
60
|
-
}
|
|
61
|
-
.voucherCode__btn:hover .test-arrow-top {
|
|
62
|
-
border-top-color: theme('colors.brand-primary');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.voucherCode__code:focus {
|
|
66
|
-
@apply border-0;
|
|
67
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
const Breadcrumbs = _ref => {
|
|
9
|
-
let {
|
|
10
|
-
className,
|
|
11
|
-
links
|
|
12
|
-
} = _ref;
|
|
13
|
-
const linksLength = Object.keys(links).length;
|
|
14
|
-
let classes = 'flex py-2 px-8 ' + className;
|
|
15
|
-
return /*#__PURE__*/React.createElement("ul", {
|
|
16
|
-
className: classes
|
|
17
|
-
}, links && links.map((link, i) => {
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
key: link.name
|
|
20
|
-
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: " px-4 mx-3 hover:bg-brand-primary bg-brand-border border-brand-primary voucherCode__btn h-8"
|
|
22
|
-
}, i + 1 >= linksLength ? /*#__PURE__*/React.createElement("p", {
|
|
23
|
-
className: "pl-2 pt-1"
|
|
24
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
25
|
-
className: "test-arrow"
|
|
26
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
27
|
-
className: "test-arrow-top"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
29
|
-
className: "left-arrow"
|
|
30
|
-
}), link.name, /*#__PURE__*/React.createElement("span", {
|
|
31
|
-
className: "right-arrow"
|
|
32
|
-
})) : /*#__PURE__*/React.createElement("a", {
|
|
33
|
-
href: link.link
|
|
34
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
35
|
-
className: i !== 0 ? 'pl-2 pt-1 text-social-facebook hover:underline' : 'pt-1 text-social-facebook hover:underline'
|
|
36
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
37
|
-
className: "test-arrow"
|
|
38
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
39
|
-
className: "test-arrow-top"
|
|
40
|
-
}), i !== 0 ? /*#__PURE__*/React.createElement("span", {
|
|
41
|
-
className: "left-arrow"
|
|
42
|
-
}) : null, link.name, /*#__PURE__*/React.createElement("span", {
|
|
43
|
-
className: "right-arrow"
|
|
44
|
-
}))))));
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
var _default = Breadcrumbs;
|
|
49
|
-
exports.default = _default;
|