@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
@@ -11,52 +11,60 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
13
13
 
14
- var _common = require("./common");
15
-
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
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
+
18
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); }
19
23
 
20
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; }
21
25
 
26
+ // Local Definitions
22
27
  var baseClassName = _bem.default.base;
23
- var componentClassName = 'ratings-input';
28
+ var componentClassName = 'gradient-background';
24
29
  /**
25
30
  * This is the component description.
26
31
  */
27
32
 
28
- var RatingsInput = _ref => {
33
+ var GradientBackground = _ref => {
29
34
  var {
30
35
  id,
31
36
  className: userClassName,
32
37
  style,
33
- name,
34
- ratingCount // ...otherProps
38
+ pin,
39
+ shape // ...otherProps
35
40
 
36
41
  } = _ref;
37
42
  (0, React.useLayoutEffect)(() => {
38
43
  Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
39
44
  }, []);
40
- var [hover, setHover] = (0, React.useState)(null);
41
45
  return /*#__PURE__*/React.createElement("div", {
42
46
  id: id,
43
47
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
44
- style: style // {...otherProps}
45
-
46
- }, [...Array(ratingCount)].map((_, index) => {
47
- var ratingValue = index + 1;
48
- return /*#__PURE__*/React.createElement(_common.Rating, {
49
- key: ratingValue,
50
- ratingId: "".concat(name, "-").concat(ratingValue),
51
- value: ratingValue,
52
- name: name,
53
- hover: hover,
54
- setHover: setHover
55
- });
56
- }));
48
+ style: _objectSpread(_objectSpread({}, style), {}, {
49
+ '--pin': pin
50
+ }) // {...otherProps}
51
+
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ className: "shapes"
54
+ }, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
55
+ className: "triangle"
56
+ }), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
57
+ className: "ellipses"
58
+ }, /*#__PURE__*/React.createElement("div", {
59
+ className: "up"
60
+ }), /*#__PURE__*/React.createElement("div", {
61
+ className: "down"
62
+ })), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
63
+ className: "ellipse"
64
+ })));
57
65
  };
58
66
 
59
- RatingsInput.propTypes = {
67
+ GradientBackground.propTypes = {
60
68
  /**
61
69
  * The HTML id for this element
62
70
  */
@@ -73,16 +81,18 @@ RatingsInput.propTypes = {
73
81
  style: _propTypes.default.objectOf(_propTypes.default.string),
74
82
 
75
83
  /**
76
- * The number of ratings input stars to be displayed
84
+ * Where to pin the shapes
77
85
  */
78
- ratingCount: _propTypes.default.number,
86
+ pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
79
87
 
80
88
  /**
81
- * Name of the rating input
89
+ *
82
90
  */
83
- name: _propTypes.default.string
91
+ shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'spiral', 'diamonds', 'circles', 'ellipses'])
84
92
  };
85
- RatingsInput.defaultProps = {// someProp:false
93
+ GradientBackground.defaultProps = {
94
+ pin: 'center',
95
+ shape: 'triangle'
86
96
  };
87
- var _default = RatingsInput;
97
+ var _default = GradientBackground;
88
98
  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,64 @@
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
+
@@ -0,0 +1,13 @@
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");
@@ -74,8 +74,7 @@ var SelectInput = _ref => {
74
74
  return /*#__PURE__*/React.createElement("option", {
75
75
  key: newOption.value,
76
76
  value: newOption.value,
77
- disabled: (newOption === null || newOption === void 0 ? void 0 : newOption.disabled) || false,
78
- selected: (newOption === null || newOption === void 0 ? void 0 : newOption.disabled) || true
77
+ disabled: (newOption === null || newOption === void 0 ? void 0 : newOption.disabled) || false
79
78
  }, newOption.label);
80
79
  })), (description || meta.touched && meta.error) && /*#__PURE__*/React.createElement(_common.FormDescription, {
81
80
  isError: !!meta.error,
@@ -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,118 @@
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;
@@ -0,0 +1,2 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ export { default as GradientBackground } from "./GradientBackground";
@@ -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
+ }
@@ -33,7 +33,7 @@ const SVG = ({
33
33
  const useSVGProps = useMemo(() => ({
34
34
  className: useClassName,
35
35
  source,
36
- target,
36
+ ...target,
37
37
  sprite,
38
38
  strokeWidth
39
39
  }), [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
+ }