@pareto-engineering/design-system 2.0.0-alpha.23 → 2.0.0-alpha.27

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.
Files changed (46) hide show
  1. package/dist/cjs/a/BackgroundGradient/styles.scss +1 -1
  2. package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
  3. package/dist/cjs/a/GradientBackground/index.js +15 -0
  4. package/dist/cjs/a/GradientBackground/styles.scss +191 -0
  5. package/dist/cjs/a/SVG/SVG.js +9 -3
  6. package/dist/cjs/a/Shapes/styles.scss +9 -9
  7. package/dist/cjs/b/Logo/Logo.js +11 -40
  8. package/dist/cjs/b/Logo/styles.scss +0 -138
  9. package/dist/cjs/{a/RatingsInput/RatingsInput.js → experimental/GradientBackground/GradientBackground.js} +37 -27
  10. package/dist/cjs/experimental/GradientBackground/index.js +15 -0
  11. package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
  12. package/dist/cjs/experimental/index.js +13 -0
  13. package/dist/cjs/f/fields/SelectInput/SelectInput.js +1 -2
  14. package/dist/es/a/BackgroundGradient/styles.scss +1 -1
  15. package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
  16. package/dist/es/a/GradientBackground/index.js +2 -0
  17. package/dist/es/a/GradientBackground/styles.scss +191 -0
  18. package/dist/es/a/SVG/SVG.js +1 -1
  19. package/dist/es/a/Shapes/styles.scss +9 -9
  20. package/dist/es/b/Logo/Logo.js +11 -40
  21. package/dist/es/b/Logo/styles.scss +0 -138
  22. package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
  23. package/dist/es/experimental/GradientBackground/index.js +2 -0
  24. package/dist/es/experimental/GradientBackground/styles.scss +64 -0
  25. package/dist/es/experimental/index.js +1 -0
  26. package/dist/es/f/fields/SelectInput/SelectInput.js +1 -2
  27. package/package.json +2 -2
  28. package/src/__snapshots__/Storyshots.test.js.snap +226 -1050
  29. package/src/stories/b/Logo.stories.jsx +9 -9
  30. package/src/ui/a/BackgroundGradient/styles.scss +1 -1
  31. package/src/ui/a/SVG/SVG.jsx +1 -1
  32. package/src/ui/a/Shapes/styles.scss +9 -9
  33. package/src/ui/b/Logo/Logo.jsx +11 -48
  34. package/src/ui/b/Logo/styles.scss +0 -138
  35. package/src/ui/f/fields/SelectInput/SelectInput.jsx +0 -1
  36. package/dist/cjs/a/RatingsInput/common/Rating/Rating.js +0 -120
  37. package/dist/cjs/a/RatingsInput/common/Rating/index.js +0 -15
  38. package/dist/cjs/a/RatingsInput/common/index.js +0 -13
  39. package/dist/cjs/a/RatingsInput/index.js +0 -15
  40. package/dist/cjs/a/RatingsInput/styles.scss +0 -35
  41. package/dist/es/a/RatingsInput/RatingsInput.js +0 -72
  42. package/dist/es/a/RatingsInput/common/Rating/Rating.js +0 -102
  43. package/dist/es/a/RatingsInput/common/Rating/index.js +0 -2
  44. package/dist/es/a/RatingsInput/common/index.js +0 -1
  45. package/dist/es/a/RatingsInput/index.js +0 -2
  46. package/dist/es/a/RatingsInput/styles.scss +0 -35
@@ -7,7 +7,7 @@
7
7
  left: 0;
8
8
  width: 100%;
9
9
  height: var(--gradient-height);
10
- background-image: linear-gradient(transparent, var(--y) 25%, var(--light-y) 75%, transparent);
10
+ background-image: linear-gradient(var(--background1), var(--y) 25%, var(--light-y) 75%, var(--background1));
11
11
  opacity: .4;
12
12
  z-index: -1;
13
13
  }
@@ -0,0 +1,140 @@
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;
@@ -0,0 +1,15 @@
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 }; }
@@ -0,0 +1,191 @@
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
+ }
@@ -19,6 +19,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
 
20
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
+ 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; }
23
+
24
+ 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; }
25
+
26
+ 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; }
27
+
22
28
  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
29
 
24
30
  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; }
@@ -53,10 +59,10 @@ var SVG = _ref => {
53
59
  (0, React.useLayoutEffect)(() => {
54
60
  Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
55
61
  });
56
- var useSVGProps = (0, React.useMemo)(() => ({
62
+ var useSVGProps = (0, React.useMemo)(() => _objectSpread(_objectSpread({
57
63
  className: useClassName,
58
- source,
59
- target,
64
+ source
65
+ }, target), {}, {
60
66
  sprite,
61
67
  strokeWidth
62
68
  }), [useClassName, source, target, strokeWidth, sprite]);
@@ -22,7 +22,7 @@ $default-shapes-opacity:.8;
22
22
  width: 100%;
23
23
 
24
24
  .triangle {
25
- background-image: linear-gradient(transparent, var(--dark-y));
25
+ background-image: linear-gradient(var(--light-y), var(--dark-y));
26
26
  clip-path: polygon(0 0, 50% 100%, 100% 0);
27
27
  height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
28
28
  opacity: $default-shapes-opacity;
@@ -30,7 +30,7 @@ $default-shapes-opacity:.8;
30
30
  }
31
31
 
32
32
  .inverted-triangle {
33
- background-image: linear-gradient(var(--dark-y), transparent);
33
+ background-image: linear-gradient(var(--dark-y), var(--light-y));
34
34
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
35
35
  height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
36
36
  opacity: $default-shapes-opacity;
@@ -117,7 +117,7 @@ $default-shapes-opacity:.8;
117
117
  }
118
118
 
119
119
  .half-ellipse {
120
- background-image: radial-gradient(ellipse at center bottom, var(--y) 10%, transparent 65%);
120
+ background-image: radial-gradient(ellipse at center bottom, var(--y) 10%, var(--light-y) 65%);
121
121
  clip-path: ellipse(60% 100% at 50% 0%);
122
122
  height: var(--shape-height, #{$default-ellipse-height});
123
123
  opacity: $default-shapes-opacity;
@@ -147,7 +147,7 @@ $default-shapes-opacity:.8;
147
147
  width: var(--shape-height, #{$default-ellipse-height});
148
148
 
149
149
  .first {
150
- background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, transparent);
150
+ background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, var(--background1));
151
151
  clip-path: ellipse(50% 20% at 50% 60%);
152
152
  height: 100%;
153
153
  position: absolute;
@@ -156,7 +156,7 @@ $default-shapes-opacity:.8;
156
156
  }
157
157
 
158
158
  .second {
159
- background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, transparent);
159
+ background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, var(--background1));
160
160
  clip-path: ellipse(50% 20% at 50% 40%);
161
161
  height: 100%;
162
162
  position: absolute;
@@ -175,7 +175,7 @@ $default-shapes-opacity:.8;
175
175
 
176
176
  > * {
177
177
  border-radius: 50%;
178
- background: radial-gradient(ellipse at center bottom ,var(--dark-y) 10%, transparent 60%);
178
+ background: radial-gradient(ellipse at center bottom, var(--dark-y) 10%, var(--light-y) 60%);
179
179
  position: absolute;
180
180
  opacity: .5;
181
181
  }
@@ -244,12 +244,12 @@ $default-shapes-opacity:.8;
244
244
  }
245
245
 
246
246
  .left {
247
- background-image: linear-gradient(to right ,var(--dark-y),var(--y), transparent);
247
+ background-image: linear-gradient(to right ,var(--dark-y),var(--y), var(--light-y));
248
248
  grid-column: 1 / 5;
249
249
  }
250
250
  .right {
251
- background-image: linear-gradient(to left, var(--dark-y), var(--y), transparent);
251
+ background-image: linear-gradient(to left, var(--dark-y), var(--y), var(--light-y));
252
252
  grid-column: 4 / 8;
253
253
  }
254
254
  }
255
- }
255
+ }
@@ -22,29 +22,15 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
22
22
  // Local Definitions
23
23
  var baseClassName = _bem.default.base;
24
24
  var componentClassName = 'logo';
25
- var defaultTargets = [{
26
- id: 'logo__p',
27
- target: 'logo__p'
28
- }, {
29
- id: 'logo__areto',
30
- target: 'logo__areto'
31
- }, {
32
- id: 'logo__t',
33
- target: 'logo__t'
34
- }];
25
+ var defaultTarget = {
26
+ id: 'logo',
27
+ target: 'logo'
28
+ };
35
29
  var contentMap = {
36
30
  default: {
37
- sprite: '/logo_parts.svg',
38
- viewBox: '0 0 688 250',
39
- targets: defaultTargets
40
- },
41
- beta: {
42
- sprite: '/logo_parts_beta.svg',
43
- viewBox: '0 0 1000 300',
44
- targets: [...defaultTargets, {
45
- id: 'logo__beta',
46
- target: 'logo__beta'
47
- }]
31
+ sprite: '/logo.svg',
32
+ viewBox: '0 0 39 39',
33
+ target: defaultTarget
48
34
  }
49
35
  };
50
36
  /**
@@ -57,8 +43,6 @@ var Logo = _ref => {
57
43
  className: userClassName,
58
44
  style,
59
45
  color,
60
- animated,
61
- loop,
62
46
  height,
63
47
  width,
64
48
  variant // ...otherProps
@@ -72,12 +56,11 @@ var Logo = _ref => {
72
56
  height: height,
73
57
  width: width,
74
58
  viewBox: svgConfig.viewBox,
75
- targets: svgConfig.targets,
59
+ target: svgConfig.target,
76
60
  sprite: svgConfig.sprite,
77
61
  id: id,
78
- className: [baseClassName, componentClassName, "x-".concat(color), userClassName, loop && 'loop'].filter(e => e).join(' '),
79
- style: style,
80
- animated: animated // {...otherProps}
62
+ className: [baseClassName, componentClassName, "x-".concat(color), userClassName].filter(e => e).join(' '),
63
+ style: style // {...otherProps}
81
64
 
82
65
  });
83
66
  };
@@ -103,16 +86,6 @@ Logo.propTypes = {
103
86
  */
104
87
  color: _propTypes.default.string,
105
88
 
106
- /**
107
- * Whether the logo is animated
108
- */
109
- animated: _propTypes.default.bool,
110
-
111
- /**
112
- * Whether the animation loops
113
- */
114
- loop: _propTypes.default.bool,
115
-
116
89
  /**
117
90
  * The height of the element
118
91
  */
@@ -129,9 +102,7 @@ Logo.propTypes = {
129
102
  variant: _propTypes.default.string
130
103
  };
131
104
  Logo.defaultProps = {
132
- color: 'primary',
133
- animated: false,
134
- loop: false,
105
+ color: 'paragraph',
135
106
  height: '4em',
136
107
  variant: 'default'
137
108
  };
@@ -1,147 +1,9 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
- /* stylelint-disable selector-id-pattern, selector-max-id -- because of the custom svg */
4
-
5
3
  @use "@pareto-engineering/bem";
6
4
 
7
- // Main animation - finishes after the drawing
8
-
9
- @keyframes draw-logo-p {
10
- 0% {
11
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
12
- }
13
-
14
- 20%,
15
- 100% {
16
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
17
- }
18
- }
19
- @keyframes draw-logo-areto {
20
- 0%,
21
- 20% {
22
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
23
- }
24
-
25
- 90%,
26
- 100% {
27
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
28
- }
29
- }
30
- @keyframes draw-logo-t {
31
- 0%,
32
- 90% {
33
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
34
- }
35
-
36
- 100% {
37
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
38
- }
39
- }
40
-
41
- // Alt animation - looping
42
-
43
- @keyframes draw-alt-logo-p {
44
- 0% {
45
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
46
- }
47
-
48
- 10%,
49
- 50% {
50
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
51
- }
52
-
53
- 60%,
54
- 100% {
55
- stroke-dashoffset: var(--svg-final-stroke-dashoffset, 1000);
56
- }
57
- }
58
- @keyframes draw-alt-logo-areto {
59
- 0%,
60
- 10% {
61
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
62
- }
63
-
64
- 45%,
65
- 60% {
66
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
67
- }
68
-
69
- 95%,
70
- 100% {
71
- stroke-dashoffset: var(--svg-final-stroke-dashoffset, 1000);
72
- }
73
- }
74
- @keyframes draw-alt-logo-t {
75
- 0%,
76
- 45% {
77
- stroke-dashoffset: var(--svg-origin-stroke-dashoffset, 1000);
78
- }
79
-
80
- 50%,
81
- 95% {
82
- stroke-dashoffset: var(--svg-target-stroke-dashoffset, 0);
83
- }
84
-
85
- 100% {
86
- stroke-dashoffset: var(--svg-final-stroke-dashoffset, 1000);
87
- }
88
- }
89
-
90
5
  .#{bem.$base}.logo {
91
- &.animated.animated {
92
- --svg-animation-repeats: 1;
93
- --svg-animation-time: 3.5s;
94
-
95
- &:hover,
96
- &:focus {
97
- //--path-animation: dash-a 1s linear 0s 1 forwards;
98
- }
99
-
100
- use#logo__p {
101
- //--svg-animation-delay: 0;
102
- --svg-dasharray: 1000;
103
- --svg-origin-stroke-dashoffset: -1000;
104
- //--svg-target-stroke-dashoffset: 0;
105
- --svg-final-stroke-dashoffset: 1000;
106
- animation-name: draw-logo-p;
107
- }
108
-
109
- use#logo__areto {
110
- --svg-dasharray: 2000;
111
- --svg-origin-stroke-dashoffset: 2000;
112
- //--svg-target-stroke-dashoffset: 0;
113
- --svg-final-stroke-dashoffset: -2000;
114
- animation-name: draw-logo-areto;
115
- }
116
-
117
- use#logo__t {
118
- --svg-dasharray: 200;
119
- --svg-origin-stroke-dashoffset: 200;
120
- //--svg-target-stroke-dashoffset: 0;
121
- --svg-final-stroke-dashoffset: -200;
122
- animation-name: draw-logo-t;
123
- }
124
-
125
- &.loop.loop {
126
- --svg-animation-time: 6s;
127
- --svg-animation-repeats: infinite;
128
-
129
- use#logo__p {
130
- --svg-final-stroke-dashoffset: 1000;
131
- animation-name: draw-alt-logo-p;
132
- }
133
-
134
- use#logo__areto {
135
- --svg-final-stroke-dashoffset: -2000;
136
- animation-name: draw-alt-logo-areto;
137
- }
138
6
 
139
- use#logo__t {
140
- --svg-final-stroke-dashoffset: -200;
141
- animation-name: draw-alt-logo-t;
142
- }
143
- }
144
- }
145
7
  }
146
8
 
147
9