@pareto-engineering/design-system 2.0.0-alpha.21 → 2.0.0-alpha.22
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/cjs/{experimental/GradientBackground/GradientBackground.js → a/RatingsInput/RatingsInput.js} +27 -37
- package/dist/cjs/a/RatingsInput/common/Rating/Rating.js +120 -0
- package/dist/cjs/a/RatingsInput/common/Rating/index.js +15 -0
- package/dist/cjs/a/RatingsInput/common/index.js +13 -0
- package/dist/cjs/a/RatingsInput/index.js +15 -0
- package/dist/cjs/a/RatingsInput/styles.scss +35 -0
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +2 -2
- package/dist/cjs/c/ContentSlides/styles.scss +6 -0
- package/dist/es/a/RatingsInput/RatingsInput.js +72 -0
- package/dist/es/a/RatingsInput/common/Rating/Rating.js +102 -0
- package/dist/es/a/RatingsInput/common/Rating/index.js +2 -0
- package/dist/es/a/RatingsInput/common/index.js +1 -0
- package/dist/es/a/RatingsInput/index.js +2 -0
- package/dist/es/a/RatingsInput/styles.scss +35 -0
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +2 -2
- package/dist/es/c/ContentSlides/styles.scss +6 -0
- package/package.json +1 -1
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +2 -2
- package/src/ui/c/ContentSlides/styles.scss +6 -0
- package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
- package/dist/cjs/a/GradientBackground/index.js +0 -15
- package/dist/cjs/a/GradientBackground/styles.scss +0 -191
- package/dist/cjs/experimental/GradientBackground/index.js +0 -15
- package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
- package/dist/cjs/experimental/index.js +0 -13
- package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
- package/dist/es/a/GradientBackground/index.js +0 -2
- package/dist/es/a/GradientBackground/styles.scss +0 -191
- package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
- package/dist/es/experimental/GradientBackground/index.js +0 -2
- package/dist/es/experimental/GradientBackground/styles.scss +0 -64
- package/dist/es/experimental/index.js +0 -1
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
// Local Definitions
|
|
27
|
-
var baseClassName = _bem.default.base;
|
|
28
|
-
var componentClassName = 'gradient-background';
|
|
29
|
-
/**
|
|
30
|
-
* This is the component description.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
var GradientBackground = _ref => {
|
|
34
|
-
var {
|
|
35
|
-
id,
|
|
36
|
-
className: userClassName,
|
|
37
|
-
style,
|
|
38
|
-
pin,
|
|
39
|
-
shape,
|
|
40
|
-
height,
|
|
41
|
-
width // ...otherProps
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
44
|
-
(0, React.useLayoutEffect)(() => {
|
|
45
|
-
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
46
|
-
}, []);
|
|
47
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
id: id,
|
|
49
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
50
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
51
|
-
'--pin': pin,
|
|
52
|
-
'--height': height,
|
|
53
|
-
'--width': width
|
|
54
|
-
}) // {...otherProps}
|
|
55
|
-
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: "shapes"
|
|
58
|
-
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "triangle"
|
|
60
|
-
}), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "half-ellipses"
|
|
62
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "up"
|
|
64
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: "down"
|
|
66
|
-
})), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: "ellipse"
|
|
68
|
-
}), shape === 'diamonds' && /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: "diamonds"
|
|
70
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "top-right"
|
|
72
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: "bottom-left"
|
|
74
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
className: "bottom-right"
|
|
76
|
-
})), shape === 'rectangles' && /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
className: "rectangles"
|
|
78
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: "top"
|
|
80
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
81
|
-
className: "center"
|
|
82
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
className: "bottom"
|
|
84
|
-
})), shape === 'half-ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: "half-ellipse"
|
|
86
|
-
}), shape === 'circle' && /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: "circle"
|
|
88
|
-
}), shape === 'half-circle' && /*#__PURE__*/React.createElement("div", {
|
|
89
|
-
className: "half-circle"
|
|
90
|
-
}), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: "ellipses"
|
|
92
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: "first"
|
|
94
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
className: "second"
|
|
96
|
-
})), shape === 'spiral' && /*#__PURE__*/React.createElement("div", {
|
|
97
|
-
className: "spiral"
|
|
98
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: "quater-circle-one"
|
|
100
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: "quater-circle-two"
|
|
102
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className: "quater-circle-three"
|
|
104
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
105
|
-
className: "quater-circle-four"
|
|
106
|
-
}))));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
GradientBackground.propTypes = {
|
|
110
|
-
/**
|
|
111
|
-
* The HTML id for this element
|
|
112
|
-
*/
|
|
113
|
-
id: _propTypes.default.string,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The HTML class names for this element
|
|
117
|
-
*/
|
|
118
|
-
className: _propTypes.default.string,
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The React-written, css properties for this element.
|
|
122
|
-
*/
|
|
123
|
-
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Where to pin the shapes
|
|
127
|
-
*/
|
|
128
|
-
pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The options of a shape to use
|
|
132
|
-
*/
|
|
133
|
-
shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
|
|
134
|
-
};
|
|
135
|
-
GradientBackground.defaultProps = {
|
|
136
|
-
pin: 'center',
|
|
137
|
-
shape: 'triangle'
|
|
138
|
-
};
|
|
139
|
-
var _default = GradientBackground;
|
|
140
|
-
exports.default = _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _GradientBackground.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _GradientBackground = _interopRequireDefault(require("./GradientBackground"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
|
|
3
|
-
@use "@pareto-engineering/bem";
|
|
4
|
-
|
|
5
|
-
$default-triangle-dimension:30em;
|
|
6
|
-
$default-ellipses-dimension:50em;
|
|
7
|
-
$default-ellipse-dimension:50em;
|
|
8
|
-
$default-shapes-opacity:.8;
|
|
9
|
-
$default-diamonds-dimension:40em;
|
|
10
|
-
$default-circle-dimension:40em;
|
|
11
|
-
|
|
12
|
-
.#{bem.$base}.gradient-background {
|
|
13
|
-
align-items: center;
|
|
14
|
-
background: var(--light-y);
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
height: 100%;
|
|
18
|
-
justify-content: var(--pin);
|
|
19
|
-
position: absolute;
|
|
20
|
-
width: 100%;
|
|
21
|
-
|
|
22
|
-
.shapes {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
|
|
26
|
-
.triangle {
|
|
27
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
28
|
-
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
29
|
-
height: $default-triangle-dimension * .86;
|
|
30
|
-
opacity: $default-shapes-opacity;
|
|
31
|
-
width: $default-triangle-dimension;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.half-ellipses {
|
|
35
|
-
|
|
36
|
-
height: $default-ellipses-dimension / 2;
|
|
37
|
-
width: $default-ellipses-dimension;
|
|
38
|
-
opacity: $default-shapes-opacity;
|
|
39
|
-
|
|
40
|
-
.up {
|
|
41
|
-
background-image: linear-gradient(var(--light-y), var(--y));
|
|
42
|
-
clip-path: ellipse(40% 100% at 50% 0%);
|
|
43
|
-
height:50%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.down {
|
|
47
|
-
background-image: linear-gradient(to top, var(--light-y), var(--y));
|
|
48
|
-
clip-path: ellipse(40% 100% at 50% 100%);
|
|
49
|
-
height:50%;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ellipse {
|
|
55
|
-
height: $default-ellipse-dimension / 1.5;
|
|
56
|
-
width: $default-ellipse-dimension;
|
|
57
|
-
background-image: linear-gradient( to top left, var(--dark-y), var(--light-y),var(--dark-y));
|
|
58
|
-
clip-path: ellipse(50% 25% at 50% 50%);
|
|
59
|
-
opacity: $default-shapes-opacity;
|
|
60
|
-
transform: rotate3d(0, 0, -1, 10deg);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.diamonds {
|
|
64
|
-
|
|
65
|
-
height: $default-diamonds-dimension;
|
|
66
|
-
width: $default-diamonds-dimension;
|
|
67
|
-
opacity: $default-shapes-opacity;
|
|
68
|
-
position: relative;
|
|
69
|
-
|
|
70
|
-
.top-right {
|
|
71
|
-
height: 100%;
|
|
72
|
-
width: 100%;
|
|
73
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
74
|
-
clip-path: polygon(100% 100%, 0 0, 100% 0);
|
|
75
|
-
position: absolute;
|
|
76
|
-
}
|
|
77
|
-
.bottom-left {
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
background-image: linear-gradient(to left, var(--dark-y), var(--y));
|
|
81
|
-
clip-path: polygon(0 100%, 0 0, 100% 100%);
|
|
82
|
-
position: absolute;
|
|
83
|
-
z-index: 1;
|
|
84
|
-
opacity: .95;
|
|
85
|
-
}
|
|
86
|
-
.bottom-right {
|
|
87
|
-
height: 100%;
|
|
88
|
-
width: 100%;
|
|
89
|
-
background-image: linear-gradient(to bottom, var(--dark-y), var(--y));
|
|
90
|
-
clip-path: polygon(100% 100%, 100% 0, 0 100%);
|
|
91
|
-
position: absolute;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.rectangles {
|
|
96
|
-
height: $default-diamonds-dimension;
|
|
97
|
-
width: $default-diamonds-dimension;
|
|
98
|
-
opacity: $default-shapes-opacity;
|
|
99
|
-
display: grid;
|
|
100
|
-
grid-template-rows: repeat(3, 1fr);
|
|
101
|
-
|
|
102
|
-
.top {
|
|
103
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.center {
|
|
107
|
-
background-image: linear-gradient(to left, var(--dark-y), var(--y));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.bottom {
|
|
111
|
-
background-image: linear-gradient(to right, var(--dark-y), var(--y));
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.half-ellipse {
|
|
116
|
-
height: $default-ellipses-dimension / 2;
|
|
117
|
-
width: $default-ellipses-dimension;
|
|
118
|
-
opacity: $default-shapes-opacity;
|
|
119
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
120
|
-
clip-path: ellipse(50% 50% at 50% 0);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.circle {
|
|
124
|
-
height: $default-circle-dimension;
|
|
125
|
-
width: $default-circle-dimension;
|
|
126
|
-
opacity: $default-shapes-opacity;
|
|
127
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
128
|
-
clip-path: circle(50% at 50% 50%);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ellipses {
|
|
132
|
-
height: var(--height);
|
|
133
|
-
width: var(--width);
|
|
134
|
-
opacity: $default-shapes-opacity;
|
|
135
|
-
position: relative;
|
|
136
|
-
|
|
137
|
-
.first {
|
|
138
|
-
height: 100%;
|
|
139
|
-
width: 100%;
|
|
140
|
-
position: absolute;
|
|
141
|
-
background-image: linear-gradient(to top, var(--dark-y), var(--light-y));
|
|
142
|
-
clip-path: ellipse(50% 20% at 50% 60%);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.second{
|
|
146
|
-
height: 100%;
|
|
147
|
-
width: 100%;
|
|
148
|
-
position: absolute;
|
|
149
|
-
background-image: linear-gradient(to bottom, var(--dark-y), var(--light-y));
|
|
150
|
-
clip-path: ellipse(50% 20% at 50% 40%);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// .spiral {
|
|
156
|
-
// height: $default-ellipses-dimension;
|
|
157
|
-
// width: $default-ellipses-dimension;
|
|
158
|
-
// opacity: $default-shapes-opacity;
|
|
159
|
-
// position: relative;
|
|
160
|
-
|
|
161
|
-
// > *{
|
|
162
|
-
// position: absolute;
|
|
163
|
-
// height: 100%;
|
|
164
|
-
// width: 100%;
|
|
165
|
-
// background: radial-gradient(var(--dark-y) 30%, var(--light-y));
|
|
166
|
-
// transform-origin: 0 0;
|
|
167
|
-
// }
|
|
168
|
-
|
|
169
|
-
// .quater-circle-one{
|
|
170
|
-
// transform: rotate(90deg);
|
|
171
|
-
// clip-path: circle(200px at 0 0);
|
|
172
|
-
// z-index: 1;
|
|
173
|
-
// }
|
|
174
|
-
|
|
175
|
-
// .quater-circle-two {
|
|
176
|
-
// clip-path: circle(250px at 0 0);
|
|
177
|
-
// transform: rotate(45deg);
|
|
178
|
-
// }
|
|
179
|
-
|
|
180
|
-
// .quater-circle-three {
|
|
181
|
-
// clip-path: circle(300px at 0 0);
|
|
182
|
-
// }
|
|
183
|
-
|
|
184
|
-
// .quater-circle-four{
|
|
185
|
-
// clip-path: circle(350px at 0 0);
|
|
186
|
-
// transform: rotate(-45deg);
|
|
187
|
-
// }
|
|
188
|
-
// }
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _GradientBackground.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _GradientBackground = _interopRequireDefault(require("./GradientBackground"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
|
|
3
|
-
@use "@pareto-engineering/bem";
|
|
4
|
-
|
|
5
|
-
$default-triangle-dimension:30em;
|
|
6
|
-
$default-ellipses-dimension:50em;
|
|
7
|
-
$default-ellipse-dimension:80em;
|
|
8
|
-
$default-shapes-opacity:.8;
|
|
9
|
-
|
|
10
|
-
.#{bem.$base}.gradient-background {
|
|
11
|
-
align-items: center;
|
|
12
|
-
background: var(--light-y);
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
height: 100%;
|
|
16
|
-
justify-content: var(--pin);
|
|
17
|
-
position: absolute;
|
|
18
|
-
width: 100%;
|
|
19
|
-
|
|
20
|
-
.shapes {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
|
|
24
|
-
.triangle {
|
|
25
|
-
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
26
|
-
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
27
|
-
height: $default-triangle-dimension * .86;
|
|
28
|
-
opacity: $default-shapes-opacity;
|
|
29
|
-
width: $default-triangle-dimension;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ellipses {
|
|
33
|
-
|
|
34
|
-
height: $default-ellipses-dimension / 2;
|
|
35
|
-
width: $default-ellipses-dimension;
|
|
36
|
-
opacity: $default-shapes-opacity;
|
|
37
|
-
|
|
38
|
-
.up {
|
|
39
|
-
background-image: linear-gradient(var(--light-y), var(--y));
|
|
40
|
-
clip-path: ellipse(40% 100% at 50% 0%);
|
|
41
|
-
height:50%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.down {
|
|
45
|
-
background-image: linear-gradient(to top, var(--light-y), var(--y));
|
|
46
|
-
clip-path: ellipse(40% 100% at 50% 100%);
|
|
47
|
-
height:50%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ellipse {
|
|
53
|
-
height: $default-ellipse-dimension / 1.5;
|
|
54
|
-
width: $default-ellipse-dimension;
|
|
55
|
-
background-image: linear-gradient( to top left, var(--dark-y), var(--light-y),var(--dark-y));
|
|
56
|
-
clip-path: ellipse(50% 25% at 50% 50%);
|
|
57
|
-
opacity: $default-shapes-opacity;
|
|
58
|
-
transform: rotate3d(0, 0, -1, 10deg);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _GradientBackground.GradientBackground;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _GradientBackground = require("./GradientBackground");
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useLayoutEffect } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import styleNames from '@pareto-engineering/bem'; // Local Definitions
|
|
6
|
-
|
|
7
|
-
const baseClassName = styleNames.base;
|
|
8
|
-
const componentClassName = 'gradient-background';
|
|
9
|
-
/**
|
|
10
|
-
* This is the component description.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
const GradientBackground = ({
|
|
14
|
-
id,
|
|
15
|
-
className: userClassName,
|
|
16
|
-
style,
|
|
17
|
-
pin,
|
|
18
|
-
shape,
|
|
19
|
-
height,
|
|
20
|
-
width // ...otherProps
|
|
21
|
-
|
|
22
|
-
}) => {
|
|
23
|
-
useLayoutEffect(() => {
|
|
24
|
-
import("./styles.scss");
|
|
25
|
-
}, []);
|
|
26
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
id: id,
|
|
28
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
29
|
-
style: { ...style,
|
|
30
|
-
'--pin': pin,
|
|
31
|
-
'--height': height,
|
|
32
|
-
'--width': width
|
|
33
|
-
} // {...otherProps}
|
|
34
|
-
|
|
35
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "shapes"
|
|
37
|
-
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: "triangle"
|
|
39
|
-
}), shape === 'half-ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "half-ellipses"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "up"
|
|
43
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: "down"
|
|
45
|
-
})), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "ellipse"
|
|
47
|
-
}), shape === 'diamonds' && /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: "diamonds"
|
|
49
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: "top-right"
|
|
51
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: "bottom-left"
|
|
53
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
className: "bottom-right"
|
|
55
|
-
})), shape === 'rectangles' && /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
className: "rectangles"
|
|
57
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "top"
|
|
59
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "center"
|
|
61
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: "bottom"
|
|
63
|
-
})), shape === 'half-ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
className: "half-ellipse"
|
|
65
|
-
}), shape === 'circle' && /*#__PURE__*/React.createElement("div", {
|
|
66
|
-
className: "circle"
|
|
67
|
-
}), shape === 'half-circle' && /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: "half-circle"
|
|
69
|
-
}), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: "ellipses"
|
|
71
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "first"
|
|
73
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className: "second"
|
|
75
|
-
})), shape === 'spiral' && /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: "spiral"
|
|
77
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: "quater-circle-one"
|
|
79
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
className: "quater-circle-two"
|
|
81
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: "quater-circle-three"
|
|
83
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
84
|
-
className: "quater-circle-four"
|
|
85
|
-
}))));
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
GradientBackground.propTypes = {
|
|
89
|
-
/**
|
|
90
|
-
* The HTML id for this element
|
|
91
|
-
*/
|
|
92
|
-
id: PropTypes.string,
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The HTML class names for this element
|
|
96
|
-
*/
|
|
97
|
-
className: PropTypes.string,
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The React-written, css properties for this element.
|
|
101
|
-
*/
|
|
102
|
-
style: PropTypes.objectOf(PropTypes.string),
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Where to pin the shapes
|
|
106
|
-
*/
|
|
107
|
-
pin: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The options of a shape to use
|
|
111
|
-
*/
|
|
112
|
-
shape: PropTypes.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles'])
|
|
113
|
-
};
|
|
114
|
-
GradientBackground.defaultProps = {
|
|
115
|
-
pin: 'center',
|
|
116
|
-
shape: 'triangle'
|
|
117
|
-
};
|
|
118
|
-
export default GradientBackground;
|