@pareto-engineering/design-system 2.0.0-alpha.2 → 2.0.0-alpha.6

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 (128) hide show
  1. package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +16 -29
  2. package/dist/cjs/a/AnimatedCounter/styles.scss +3 -11
  3. package/dist/cjs/a/Conversation/styles.scss +2 -0
  4. package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
  5. package/dist/cjs/a/GradientBackground/index.js +15 -0
  6. package/dist/cjs/a/GradientBackground/styles.scss +191 -0
  7. package/dist/cjs/a/People/People.js +15 -7
  8. package/dist/cjs/a/People/common/Person/Person.js +11 -4
  9. package/dist/cjs/a/People/styles.scss +13 -15
  10. package/dist/cjs/a/Shapes/Shapes.js +163 -0
  11. package/dist/cjs/a/{RatingsInput/common/Rating → Shapes}/index.js +3 -3
  12. package/dist/cjs/a/Shapes/styles.scss +222 -0
  13. package/dist/cjs/a/TeamInfo/styles.scss +2 -2
  14. package/dist/cjs/a/index.js +9 -1
  15. package/dist/cjs/b/Button/styles.scss +38 -19
  16. package/dist/cjs/{a/RatingsInput/RatingsInput.js → b/Metrics/Metrics.js} +30 -29
  17. package/dist/cjs/{a/RatingsInput → b/Metrics}/index.js +3 -3
  18. package/dist/cjs/b/Metrics/styles.scss +91 -0
  19. package/dist/cjs/b/Page/common/Section/Section.js +42 -5
  20. package/dist/cjs/b/Page/styles.scss +8 -2
  21. package/dist/cjs/b/QuestionDropdown/styles.scss +1 -1
  22. package/dist/cjs/b/index.js +9 -1
  23. package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
  24. package/dist/cjs/experimental/GradientBackground/GradientBackground.js +98 -0
  25. package/dist/cjs/experimental/GradientBackground/index.js +15 -0
  26. package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
  27. package/dist/cjs/experimental/index.js +13 -0
  28. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  29. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
  30. package/dist/cjs/f/fields/SelectInput/styles.scss +3 -3
  31. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +2 -2
  32. package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +4 -0
  33. package/dist/cjs/f/fields/TextInput/styles.scss +3 -3
  34. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
  35. package/dist/cjs/form.scss +1 -1
  36. package/dist/es/a/AnimatedCounter/AnimatedCounter.js +17 -30
  37. package/dist/es/a/AnimatedCounter/styles.scss +3 -11
  38. package/dist/es/a/Conversation/styles.scss +2 -0
  39. package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
  40. package/dist/es/a/GradientBackground/index.js +2 -0
  41. package/dist/es/a/GradientBackground/styles.scss +191 -0
  42. package/dist/es/a/People/People.js +14 -7
  43. package/dist/es/a/People/common/Person/Person.js +11 -4
  44. package/dist/es/a/People/styles.scss +13 -15
  45. package/dist/es/a/Shapes/Shapes.js +141 -0
  46. package/dist/es/a/{RatingsInput/common/Rating → Shapes}/index.js +1 -1
  47. package/dist/es/a/Shapes/styles.scss +222 -0
  48. package/dist/es/a/TeamInfo/styles.scss +2 -2
  49. package/dist/es/a/index.js +2 -1
  50. package/dist/es/b/Button/styles.scss +38 -19
  51. package/dist/es/b/Metrics/Metrics.js +72 -0
  52. package/dist/es/b/Metrics/index.js +2 -0
  53. package/dist/es/b/Metrics/styles.scss +91 -0
  54. package/dist/es/b/Page/common/Section/Section.js +41 -4
  55. package/dist/es/b/Page/styles.scss +8 -2
  56. package/dist/es/b/QuestionDropdown/styles.scss +1 -1
  57. package/dist/es/b/index.js +2 -1
  58. package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
  59. package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
  60. package/dist/es/experimental/GradientBackground/index.js +2 -0
  61. package/dist/es/experimental/GradientBackground/styles.scss +64 -0
  62. package/dist/es/experimental/index.js +1 -0
  63. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  64. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
  65. package/dist/es/f/fields/SelectInput/styles.scss +3 -3
  66. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +2 -2
  67. package/dist/es/f/fields/TaskRecommendationInput/styles.scss +4 -0
  68. package/dist/es/f/fields/TextInput/styles.scss +3 -3
  69. package/dist/es/f/fields/TextareaInput/TextareaInput.js +1 -1
  70. package/dist/es/form.scss +1 -1
  71. package/package.json +3 -3
  72. package/src/__snapshots__/Storyshots.test.js.snap +3654 -339
  73. package/src/local.scss +3 -0
  74. package/src/stories/a/AnimatedCounter.stories.jsx +9 -5
  75. package/src/stories/a/ContentCard.stories.jsx +1 -1
  76. package/src/stories/a/Conversation.stories.jsx +1 -1
  77. package/src/stories/a/People.stories.jsx +25 -1
  78. package/src/stories/a/ProgressBar.stories.jsx +1 -1
  79. package/src/stories/a/Quote.stories.jsx +1 -1
  80. package/src/stories/a/Shapes.stories.jsx +125 -0
  81. package/src/stories/a/Spinner.stories.jsx +1 -1
  82. package/src/stories/b/Button.stories.jsx +57 -51
  83. package/src/stories/b/Metrics.stories.jsx +62 -0
  84. package/src/stories/b/Page.stories.jsx +27 -1
  85. package/src/stories/b/ThemeSelector.stories.jsx +1 -1
  86. package/src/stories/b/Title.stories.jsx +1 -1
  87. package/src/stories/c/ContentSlides.stories.jsx +2 -2
  88. package/src/stories/colors.js +5 -3
  89. package/src/stories/f/CheckboxInput.stories.jsx +1 -1
  90. package/src/stories/f/TaskRecommendationInput.stories.jsx +1 -1
  91. package/src/stories/f/TextInput.stories.jsx +4 -4
  92. package/src/stories/f/TextareaInput.stories.jsx +2 -2
  93. package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +21 -27
  94. package/src/ui/a/AnimatedCounter/styles.scss +3 -11
  95. package/src/ui/a/Conversation/styles.scss +2 -0
  96. package/src/ui/a/People/People.jsx +12 -4
  97. package/src/ui/a/People/common/Person/Person.jsx +7 -1
  98. package/src/ui/a/People/styles.scss +13 -15
  99. package/src/ui/a/Shapes/Shapes.jsx +181 -0
  100. package/src/ui/a/Shapes/index.js +2 -0
  101. package/src/ui/a/Shapes/styles.scss +222 -0
  102. package/src/ui/a/TeamInfo/styles.scss +2 -2
  103. package/src/ui/a/index.js +1 -0
  104. package/src/ui/b/Button/styles.scss +38 -19
  105. package/src/ui/b/Metrics/Metrics.jsx +93 -0
  106. package/src/ui/b/Metrics/index.js +2 -0
  107. package/src/ui/b/Metrics/styles.scss +91 -0
  108. package/src/ui/b/Page/common/Section/Section.jsx +51 -2
  109. package/src/ui/b/Page/styles.scss +8 -2
  110. package/src/ui/b/QuestionDropdown/styles.scss +1 -1
  111. package/src/ui/b/index.js +1 -0
  112. package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +1 -1
  113. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
  114. package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +2 -2
  115. package/src/ui/f/fields/SelectInput/styles.scss +3 -3
  116. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +2 -2
  117. package/src/ui/f/fields/TaskRecommendationInput/styles.scss +4 -0
  118. package/src/ui/f/fields/TextInput/styles.scss +3 -3
  119. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +1 -1
  120. package/src/ui/form.scss +1 -1
  121. package/dist/cjs/a/RatingsInput/common/Rating/Rating.js +0 -120
  122. package/dist/cjs/a/RatingsInput/common/index.js +0 -13
  123. package/dist/cjs/a/RatingsInput/styles.scss +0 -35
  124. package/dist/es/a/RatingsInput/RatingsInput.js +0 -72
  125. package/dist/es/a/RatingsInput/common/Rating/Rating.js +0 -102
  126. package/dist/es/a/RatingsInput/common/index.js +0 -1
  127. package/dist/es/a/RatingsInput/index.js +0 -2
  128. package/dist/es/a/RatingsInput/styles.scss +0 -35
@@ -0,0 +1,91 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+ @use "@aztlan/stylebook/src/mixins";
5
+ @use "@aztlan/stylebook/src/globals" as *;
6
+
7
+ $default-mobile-row-gap: 1em;
8
+ $default-desktop-row-gap: 3em;
9
+ $default-border-radius: 50%;
10
+ $default-mobile-circle-size: 8em;
11
+ $default-desktop-circle-size: 10em;
12
+ $default-translateY:3em;
13
+ $default-desktop-description-width:12em;
14
+
15
+
16
+ $default-mobile-description-width:9em;
17
+
18
+ .#{bem.$base}.metrics {
19
+ display: grid;
20
+ row-gap: 1em;
21
+
22
+ .metric {
23
+ align-items: center;
24
+ display: flex;
25
+ row-gap: $default-mobile-row-gap;
26
+
27
+ .circle {
28
+ align-items: center;
29
+ background: var(--light-y);
30
+ border-radius: $default-border-radius;
31
+ display: flex;
32
+ height: $default-mobile-circle-size;
33
+ justify-content: center;
34
+ width: $default-mobile-circle-size;
35
+
36
+ .description-md {
37
+ color: var(--subtitle);
38
+ font-style: italic;
39
+ }
40
+ }
41
+
42
+ .description-sm {
43
+ color: var(--subtitle);
44
+ font-style: italic;
45
+ }
46
+ }
47
+
48
+ // mobile style
49
+ @include mixins.media($to:$sm-md) {
50
+ .metric {
51
+ column-gap: $default-mobile-row-gap;
52
+
53
+ .description-sm {
54
+ width: 50%;
55
+ }
56
+ }
57
+ }
58
+
59
+ // tablet style
60
+ @include mixins.media($from:$xs-sm,$to:$sm-md) {
61
+ .metric {
62
+ .description-sm {
63
+ width: 30%;
64
+ }
65
+ }
66
+ }
67
+
68
+ // desktop style
69
+ @include mixins.media($from:$sm-md) {
70
+ grid-template-columns: repeat(2, 1fr);
71
+ row-gap: 2em;
72
+
73
+ .metric {
74
+ .circle {
75
+ display: flex;
76
+ flex-direction: column;
77
+ height: $default-desktop-circle-size;
78
+ justify-content: center;
79
+ position: relative;
80
+ width: $default-desktop-circle-size;
81
+
82
+ .description-md {
83
+ left: 40%;
84
+ position: absolute;
85
+ top: 70%;
86
+ width: $default-desktop-description-width;
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
@@ -11,9 +11,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
13
13
 
14
+ var _a = require("../../../../a");
15
+
14
16
  var _usePage = _interopRequireDefault(require("../../usePage"));
15
17
 
16
- var _excluded = ["id", "className", "style", "children"];
18
+ var _excluded = ["id", "className", "style", "children", "backgroundShape", "backgroundVerticalAlign", "backgroundHorizontalAlign", "backgroundHeight", "backgroundOverflow"];
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
@@ -27,7 +29,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
29
 
28
30
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
31
 
30
- // Local Definitions
31
32
  var baseClassName = _bem.default.base;
32
33
  var componentClassName = 'section';
33
34
 
@@ -36,7 +37,12 @@ var Section = _ref => {
36
37
  id: userId,
37
38
  className: userClassName,
38
39
  style,
39
- children
40
+ children,
41
+ backgroundShape,
42
+ backgroundVerticalAlign,
43
+ backgroundHorizontalAlign,
44
+ backgroundHeight,
45
+ backgroundOverflow
40
46
  } = _ref,
41
47
  otherProps = _objectWithoutProperties(_ref, _excluded);
42
48
 
@@ -48,7 +54,13 @@ var Section = _ref => {
48
54
  id: sectionId,
49
55
  className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
50
56
  style: style
51
- }, otherProps), children);
57
+ }, otherProps), children, backgroundShape && /*#__PURE__*/React.createElement(_a.Shapes, {
58
+ verticalAlign: backgroundVerticalAlign,
59
+ horizontalAlign: backgroundHorizontalAlign,
60
+ backgroundOverflow: backgroundOverflow,
61
+ height: backgroundHeight,
62
+ shape: backgroundShape
63
+ }));
52
64
  };
53
65
 
54
66
  Section.propTypes = {
@@ -70,7 +82,32 @@ Section.propTypes = {
70
82
  /**
71
83
  * The children JSX
72
84
  */
73
- children: _propTypes.default.node
85
+ children: _propTypes.default.node,
86
+
87
+ /**
88
+ * The background shape to use for this section.
89
+ */
90
+ backgroundShape: _propTypes.default.oneOf(['triangle', 'ellipse', 'half-ellipse', 'half-ellipses', 'spiral', 'diamonds', 'circle', 'half-circle', 'ellipses', 'rectangles']),
91
+
92
+ /**
93
+ * The background vertical alingment to use for if the background shape is set.
94
+ */
95
+ backgroundVerticalAlign: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
96
+
97
+ /**
98
+ * The background horizontal alingment to use for if the background shape is set.
99
+ */
100
+ backgroundHorizontalAlign: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
101
+
102
+ /**
103
+ * The background height to use for if the background shape is set.
104
+ */
105
+ backgroundHeight: _propTypes.default.string,
106
+
107
+ /**
108
+ * The background overflow to use for if the background shape is set.
109
+ */
110
+ backgroundOverflow: _propTypes.default.oneOf(['visible', 'hidden', 'scroll'])
74
111
  };
75
112
  Section.defaultProps = {// someProp:false
76
113
  };
@@ -2,9 +2,15 @@
2
2
 
3
3
  @use "@pareto-engineering/bem";
4
4
 
5
- /*
5
+
6
6
  .#{bem.$base}.page{
7
+ .#{bem.$base}.section {
8
+ position: relative;
7
9
 
8
- } */
10
+ > *:not(:last-child) {
11
+ z-index: 1;
12
+ }
13
+ }
14
+ }
9
15
 
10
16
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  //make all colors as vars
6
6
 
7
- $border-color: var(--dark-background);
7
+ $border-color: var(--dark-background1);
8
8
  $border-width: 2px;
9
9
  $button-background-color: transparent;
10
10
  $button-background-color-hover: var(--light-accent3);
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "SocialMediaButton", {
57
57
  return _SocialMediaButton.SocialMediaButton;
58
58
  }
59
59
  });
60
+ Object.defineProperty(exports, "Metrics", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _Metrics.Metrics;
64
+ }
65
+ });
60
66
 
61
67
  var _Button = require("./Button");
62
68
 
@@ -74,4 +80,6 @@ var _ThemeSelector = require("./ThemeSelector");
74
80
 
75
81
  var _Logo = require("./Logo");
76
82
 
77
- var _SocialMediaButton = require("./SocialMediaButton");
83
+ var _SocialMediaButton = require("./SocialMediaButton");
84
+
85
+ var _Metrics = require("./Metrics");
@@ -69,7 +69,7 @@ var HorizontalMenu = _ref => {
69
69
  attached: true,
70
70
  height: ".4em",
71
71
  color: "main2",
72
- className: "y-background b-dark-y"
72
+ className: "y-background1 b-dark-y"
73
73
  }), /*#__PURE__*/React.createElement("div", {
74
74
  className: _bem.default.elementContent
75
75
  }, /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,98 @@
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 // ...otherProps
40
+
41
+ } = _ref;
42
+ (0, React.useLayoutEffect)(() => {
43
+ Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
44
+ }, []);
45
+ return /*#__PURE__*/React.createElement("div", {
46
+ id: id,
47
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
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
+ })));
65
+ };
66
+
67
+ GradientBackground.propTypes = {
68
+ /**
69
+ * The HTML id for this element
70
+ */
71
+ id: _propTypes.default.string,
72
+
73
+ /**
74
+ * The HTML class names for this element
75
+ */
76
+ className: _propTypes.default.string,
77
+
78
+ /**
79
+ * The React-written, css properties for this element.
80
+ */
81
+ style: _propTypes.default.objectOf(_propTypes.default.string),
82
+
83
+ /**
84
+ * Where to pin the shapes
85
+ */
86
+ pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
87
+
88
+ /**
89
+ *
90
+ */
91
+ shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'spiral', 'diamonds', 'circles', 'ellipses'])
92
+ };
93
+ GradientBackground.defaultProps = {
94
+ pin: 'center',
95
+ shape: 'triangle'
96
+ };
97
+ var _default = GradientBackground;
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");
@@ -149,7 +149,7 @@ ChoicesInput.propTypes = {
149
149
  ChoicesInput.defaultProps = {
150
150
  gridColumnsMobile: 2,
151
151
  gridColumnsDesktop: 3,
152
- color: 'background',
152
+ color: 'background2',
153
153
  colorChecked: 'main1',
154
154
  disabled: false
155
155
  };
@@ -121,8 +121,8 @@ Rating.propTypes = {
121
121
  showRatingValue: _propTypes.default.bool
122
122
  };
123
123
  Rating.defaultProps = {
124
- activeBackgroundColor: 'secondary2',
125
- inactiveBackgroundColor: 'background',
124
+ activeBackgroundColor: 'main1',
125
+ inactiveBackgroundColor: 'background2',
126
126
  showRatingValue: false
127
127
  };
128
128
  var _default = Rating;
@@ -18,12 +18,12 @@ $default-padding: 0.75em 0.75em 0.55em;
18
18
  }
19
19
 
20
20
  .input {
21
- background: var(--light-background);
22
- color: var(--on-background);
21
+ background: var(--light-background1);
22
+ color: var(--on-background1);
23
23
  padding: $default-padding;
24
24
 
25
25
  &:focus {
26
- background: var(--dark-background);
26
+ background: var(--dark-background1);
27
27
  }
28
28
  }
29
29
  }
@@ -60,7 +60,7 @@ var TaskRecommendationInput = _ref => {
60
60
  }, /*#__PURE__*/React.createElement("div", {
61
61
  className: "v1 p-v task"
62
62
  }, /*#__PURE__*/React.createElement(_common.FormLabel, {
63
- className: "uc mb-v ".concat(isOptionSelected ? 'c-on-x' : 'c-x'),
63
+ className: "uc mb-v ".concat(isOptionSelected ? _bem.default.modifierActive : ''),
64
64
  name: name
65
65
  }, label), /*#__PURE__*/React.createElement("input", _extends({}, field, {
66
66
  value: value,
@@ -123,7 +123,7 @@ TaskRecommendationInput.propTypes = {
123
123
  image: _propTypes.default.string.isRequired
124
124
  };
125
125
  TaskRecommendationInput.defaultProps = {
126
- color: 'main2'
126
+ color: 'main1'
127
127
  };
128
128
 
129
129
  var _default = /*#__PURE__*/(0, React.memo)(TaskRecommendationInput);
@@ -16,6 +16,10 @@
16
16
  align-items: center;
17
17
  height: 100%;
18
18
 
19
+ .#{bem.$modifier-active} {
20
+ color: var(--on-x);
21
+ }
22
+
19
23
  .input {
20
24
  appearance: none;
21
25
  position: absolute;
@@ -14,12 +14,12 @@ $default-padding: 0.75em 0.75em 0.55em;
14
14
  }
15
15
 
16
16
  .input {
17
- background: var(--light-background);
18
- color: var(--on-background);
17
+ background: var(--light-background1);
18
+ color: var(--on-background1);
19
19
  padding: $default-padding;
20
20
 
21
21
  &:focus {
22
- background: var(--dark-background);
22
+ background: var(--dark-background1);
23
23
  }
24
24
  }
25
25
  }
@@ -141,7 +141,7 @@ TextareaInput.propTypes = {
141
141
  };
142
142
  TextareaInput.defaultProps = {
143
143
  rows: 3,
144
- textAreaColor: 'background',
144
+ textAreaColor: 'background1',
145
145
  labelColor: 'main1',
146
146
  disabled: false
147
147
  };
@@ -1,6 +1,6 @@
1
1
  @use "form-reset.scss";
2
2
 
3
- $form-input-border-bottom: 1px solid var(--dark-background);
3
+ $form-input-border-bottom: 1px solid var(--dark-background1);
4
4
  $form-input-on-focus-border-bottom: 1px solid var(--light-main1);
5
5
  $form-input-on-error-border-bottom: 1px solid var(--error);
6
6
  $label-input-heigth-width: 100%;
@@ -1,6 +1,6 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
  import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
3
+ import { useLayoutEffect, useCallback } from 'react';
4
4
  import CountUp from 'react-countup';
5
5
  import VisibilitySensor from 'react-visibility-sensor';
6
6
  import PropTypes from 'prop-types';
@@ -18,28 +18,29 @@ const AnimatedCounter = ({
18
18
  style,
19
19
  color,
20
20
  number,
21
- unit,
22
- description,
23
- descriptionPosition,
24
- unitPosition,
21
+ before,
22
+ after,
25
23
  delay // ...otherProps
26
24
 
27
25
  }) => {
28
26
  useLayoutEffect(() => {
29
27
  import("./styles.scss");
30
28
  }, []);
29
+ const countDecimals = useCallback(value => {
30
+ if (value % 1 !== 0) return value.toString().split('.')[1].length;
31
+ return 0;
32
+ }, []);
31
33
  return /*#__PURE__*/React.createElement("div", {
32
34
  id: id,
33
35
  className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
34
36
  style: style // {...otherProps}
35
37
 
36
- }, descriptionPosition === 'top' && /*#__PURE__*/React.createElement("p", {
37
- className: "info top-description uc s-1 md-s0"
38
- }, description), /*#__PURE__*/React.createElement("div", {
38
+ }, /*#__PURE__*/React.createElement("div", {
39
39
  className: "count s3"
40
- }, unitPosition === 'before' && /*#__PURE__*/React.createElement("span", null, unit), /*#__PURE__*/React.createElement(CountUp, {
40
+ }, before && /*#__PURE__*/React.createElement("span", null, before), /*#__PURE__*/React.createElement(CountUp, {
41
41
  end: number,
42
42
  delay: delay,
43
+ decimals: countDecimals(number),
43
44
  redraw: true
44
45
  }, ({
45
46
  countUpRef,
@@ -49,9 +50,7 @@ const AnimatedCounter = ({
49
50
  delayedCall: true
50
51
  }, /*#__PURE__*/React.createElement("span", {
51
52
  ref: countUpRef
52
- }))), unitPosition === 'after' && /*#__PURE__*/React.createElement("span", null, unit)), descriptionPosition === 'bottom' && /*#__PURE__*/React.createElement("p", {
53
- className: "info uc s-1 md-s0 v50 mt-v"
54
- }, description));
53
+ }))), after && /*#__PURE__*/React.createElement("span", null, after)));
55
54
  };
56
55
 
57
56
  AnimatedCounter.propTypes = {
@@ -81,33 +80,21 @@ AnimatedCounter.propTypes = {
81
80
  number: PropTypes.number,
82
81
 
83
82
  /**
84
- * The review count unit
83
+ * The unit before the number
85
84
  */
86
- unit: PropTypes.string,
85
+ before: PropTypes.string,
87
86
 
88
87
  /**
89
- * The review description
88
+ * The unit after the number
90
89
  */
91
- description: PropTypes.string,
90
+ after: PropTypes.string,
92
91
 
93
92
  /**
94
93
  * react counter delay
95
94
  */
96
- delay: PropTypes.number,
97
-
98
- /**
99
- * If the animated counter description should be at the top
100
- */
101
- descriptionPosition: PropTypes.oneOf(['top', 'bottom']),
102
-
103
- /**
104
- * If the unit should be before or after the animated numbers
105
- */
106
- unitPosition: PropTypes.string
95
+ delay: PropTypes.number
107
96
  };
108
97
  AnimatedCounter.defaultProps = {
109
- color: 'main1',
110
- descriptionPosition: 'bottom',
111
- unitPosition: 'after'
98
+ color: 'main1'
112
99
  };
113
100
  export default AnimatedCounter;
@@ -1,24 +1,16 @@
1
1
  /* @pareto-engineering/generator-front 1.0.12 */
2
2
 
3
3
  @use "@pareto-engineering/bem";
4
-
4
+ //@use "@aztlan/stylebook/src/mixins";
5
+ //@use "@aztlan/stylebook/src/globals" as *;
5
6
 
6
7
  .#{bem.$base}.animated-counter {
7
- align-items: center;
8
8
  display: flex;
9
- flex-direction: column;
9
+ justify-content: center;
10
10
 
11
11
  .count {
12
12
  color: var(--x);
13
13
  }
14
-
15
- .top-description {
16
- margin-bottom: .5em;
17
- }
18
-
19
- .info {
20
- color: var(--metadata);
21
- }
22
14
  }
23
15
 
24
16
 
@@ -7,6 +7,7 @@ $default-padding: var(--u);
7
7
  $default-conversation-background: var(--y);
8
8
  $default-message-max-width: calc(100% - #{$default-padding});
9
9
  $default-message-min-width: 12em;
10
+ $default-message-border: var(--theme-border);
10
11
 
11
12
  .#{bem.$base}.conversation {
12
13
  display: flex;
@@ -26,6 +27,7 @@ $default-message-min-width: 12em;
26
27
  border-radius: var(--theme-border-radius);
27
28
  background-color: var(--x);
28
29
  align-self: flex-start;
30
+ border: $default-message-border;
29
31
 
30
32
  .#{bem.$element-content} {
31
33
  display: flex;