@pareto-engineering/design-system 4.0.0-alpha.5 → 4.0.0-alpha.9

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 (136) hide show
  1. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +90 -0
  2. package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
  3. package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
  4. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +56 -0
  5. package/dist/cjs/a/AnimatedGradient/index.js +13 -0
  6. package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
  7. package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
  8. package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
  9. package/dist/cjs/a/Label/Label.js +12 -4
  10. package/dist/cjs/a/Label/styles.scss +1 -1
  11. package/dist/cjs/a/MetaCard/MetaCard.js +60 -0
  12. package/dist/cjs/a/MetaCard/index.js +13 -0
  13. package/dist/cjs/a/MetaCard/styles.scss +28 -0
  14. package/dist/cjs/a/Popover/Popover.js +1 -1
  15. package/dist/cjs/a/SnapScroller/styles.scss +18 -10
  16. package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
  17. package/dist/cjs/a/TextSteps/index.js +13 -0
  18. package/dist/cjs/a/TextSteps/styles.scss +29 -0
  19. package/dist/cjs/a/Tip/Tip.js +72 -0
  20. package/dist/cjs/a/Tip/index.js +13 -0
  21. package/dist/cjs/a/Tip/styles.scss +22 -0
  22. package/dist/cjs/a/index.js +36 -1
  23. package/dist/cjs/b/Button/styles.scss +2 -0
  24. package/dist/cjs/b/Card/Card.js +74 -0
  25. package/dist/cjs/b/Card/common/Group/Group.js +73 -0
  26. package/dist/cjs/b/Card/common/Group/index.js +13 -0
  27. package/dist/cjs/b/Card/common/Group/styles.scss +42 -0
  28. package/dist/cjs/b/Card/common/Section/Section.js +59 -0
  29. package/dist/cjs/b/Card/common/Section/index.js +13 -0
  30. package/dist/cjs/b/Card/common/index.js +19 -0
  31. package/dist/cjs/b/Card/index.js +13 -0
  32. package/dist/cjs/b/Card/styles.scss +46 -0
  33. package/dist/cjs/b/Page/Page.js +9 -2
  34. package/dist/cjs/b/Page/common/Section/Section.js +6 -1
  35. package/dist/cjs/b/Page/styles.scss +22 -4
  36. package/dist/cjs/b/index.js +8 -1
  37. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +15 -7
  38. package/dist/cjs/f/fields/ChoicesInput/styles.scss +21 -33
  39. package/dist/cjs/f/fields/SelectInput/SelectInput.js +2 -2
  40. package/dist/cjs/f/fields/SelectInput/styles.scss +31 -21
  41. package/dist/cjs/f/fields/TextInput/TextInput.js +4 -2
  42. package/dist/cjs/f/fields/TextInput/styles.scss +26 -17
  43. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
  44. package/dist/es/a/AnimatedBlobs/index.js +1 -0
  45. package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
  46. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +48 -0
  47. package/dist/es/a/AnimatedGradient/index.js +1 -0
  48. package/dist/es/a/AnimatedGradient/styles.scss +14 -0
  49. package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
  50. package/dist/es/a/ContentTree/ContentTree.js +1 -1
  51. package/dist/es/a/Label/Label.js +12 -4
  52. package/dist/es/a/Label/styles.scss +1 -1
  53. package/dist/es/a/MetaCard/MetaCard.js +52 -0
  54. package/dist/es/a/MetaCard/index.js +1 -0
  55. package/dist/es/a/MetaCard/styles.scss +28 -0
  56. package/dist/es/a/Popover/Popover.js +1 -1
  57. package/dist/es/a/SnapScroller/styles.scss +18 -10
  58. package/dist/es/a/TextSteps/TextSteps.js +61 -0
  59. package/dist/es/a/TextSteps/index.js +1 -0
  60. package/dist/es/a/TextSteps/styles.scss +29 -0
  61. package/dist/es/a/Tip/Tip.js +64 -0
  62. package/dist/es/a/Tip/index.js +2 -0
  63. package/dist/es/a/Tip/styles.scss +22 -0
  64. package/dist/es/a/index.js +6 -1
  65. package/dist/es/b/Button/styles.scss +2 -0
  66. package/dist/es/b/Card/Card.js +66 -0
  67. package/dist/es/b/Card/common/Group/Group.js +65 -0
  68. package/dist/es/b/Card/common/Group/index.js +1 -0
  69. package/dist/es/b/Card/common/Group/styles.scss +42 -0
  70. package/dist/es/b/Card/common/Section/Section.js +48 -0
  71. package/dist/es/b/Card/common/Section/index.js +1 -0
  72. package/dist/es/b/Card/common/index.js +2 -0
  73. package/dist/es/b/Card/index.js +1 -0
  74. package/dist/es/b/Card/styles.scss +46 -0
  75. package/dist/es/b/Page/Page.js +9 -2
  76. package/dist/es/b/Page/common/Section/Section.js +6 -1
  77. package/dist/es/b/Page/styles.scss +22 -4
  78. package/dist/es/b/index.js +2 -1
  79. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +16 -8
  80. package/dist/es/f/fields/ChoicesInput/styles.scss +21 -33
  81. package/dist/es/f/fields/SelectInput/SelectInput.js +2 -2
  82. package/dist/es/f/fields/SelectInput/styles.scss +31 -21
  83. package/dist/es/f/fields/TextInput/TextInput.js +4 -2
  84. package/dist/es/f/fields/TextInput/styles.scss +26 -17
  85. package/package.json +15 -15
  86. package/src/stories/a/MetaCard.stories.jsx +35 -0
  87. package/src/stories/a/TextSteps.stories.jsx +19 -0
  88. package/src/stories/a/Tip.stories.jsx +28 -0
  89. package/src/stories/b/Card/Card.stories.jsx +59 -0
  90. package/src/stories/b/Card/Group.stories.jsx +59 -0
  91. package/src/stories/b/Page.stories.jsx +19 -3
  92. package/src/stories/f/SelectInput.stories.jsx +7 -0
  93. package/src/stories/f/TextInput.stories.jsx +4 -4
  94. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
  95. package/src/ui/a/AnimatedBlobs/index.js +1 -0
  96. package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
  97. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +69 -0
  98. package/src/ui/a/AnimatedGradient/index.js +1 -0
  99. package/src/ui/a/AnimatedGradient/styles.scss +14 -0
  100. package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
  101. package/src/ui/a/ContentTree/ContentTree.jsx +1 -1
  102. package/src/ui/a/Label/Label.jsx +11 -2
  103. package/src/ui/a/Label/styles.scss +1 -1
  104. package/src/ui/a/MetaCard/MetaCard.jsx +74 -0
  105. package/src/ui/a/MetaCard/index.js +1 -0
  106. package/src/ui/a/MetaCard/styles.scss +28 -0
  107. package/src/ui/a/Popover/Popover.jsx +1 -1
  108. package/src/ui/a/SnapScroller/styles.scss +18 -10
  109. package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
  110. package/src/ui/a/TextSteps/index.js +1 -0
  111. package/src/ui/a/TextSteps/styles.scss +29 -0
  112. package/src/ui/a/Tip/Tip.jsx +88 -0
  113. package/src/ui/a/Tip/index.js +2 -0
  114. package/src/ui/a/Tip/styles.scss +22 -0
  115. package/src/ui/a/index.js +5 -0
  116. package/src/ui/b/Button/styles.scss +2 -0
  117. package/src/ui/b/Card/Card.jsx +94 -0
  118. package/src/ui/b/Card/common/Group/Group.jsx +91 -0
  119. package/src/ui/b/Card/common/Group/index.js +1 -0
  120. package/src/ui/b/Card/common/Group/styles.scss +42 -0
  121. package/src/ui/b/Card/common/Section/Section.jsx +70 -0
  122. package/src/ui/b/Card/common/Section/index.js +1 -0
  123. package/src/ui/b/Card/common/index.js +2 -0
  124. package/src/ui/b/Card/index.js +1 -0
  125. package/src/ui/b/Card/styles.scss +46 -0
  126. package/src/ui/b/Page/Page.jsx +7 -1
  127. package/src/ui/b/Page/common/Section/Section.jsx +8 -0
  128. package/src/ui/b/Page/styles.scss +22 -4
  129. package/src/ui/b/index.js +1 -0
  130. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +10 -5
  131. package/src/ui/f/fields/ChoicesInput/styles.scss +21 -33
  132. package/src/ui/f/fields/SelectInput/SelectInput.jsx +2 -2
  133. package/src/ui/f/fields/SelectInput/styles.scss +31 -21
  134. package/src/ui/f/fields/TextInput/TextInput.jsx +11 -9
  135. package/src/ui/f/fields/TextInput/styles.scss +26 -17
  136. package/tests/__snapshots__/Storyshots.test.js.snap +1049 -485
@@ -0,0 +1,82 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react';
3
+ import { useInsertionEffect } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import styleNames from '@pareto-engineering/bem/exports';
6
+
7
+ // Local Definitions
8
+
9
+ const baseClassName = styleNames.base;
10
+ const componentClassName = 'animated-blobs';
11
+
12
+ /**
13
+ * This is the component description.
14
+ */
15
+ const AnimatedBlobs = ({
16
+ id,
17
+ className: userClassName,
18
+ color,
19
+ style,
20
+ height,
21
+ width,
22
+ opacity
23
+ // ...otherProps
24
+ }) => {
25
+ useInsertionEffect(() => {
26
+ import("./styles.scss");
27
+ }, []);
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ id: id,
30
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
31
+ style: {
32
+ ...style,
33
+ '--blob-color': `var(--${color})`,
34
+ '--height': height,
35
+ '--opacity': opacity,
36
+ '--width': width
37
+ }
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: "shape-blob"
40
+ }), /*#__PURE__*/React.createElement("div", {
41
+ className: "shape-blob one"
42
+ }), /*#__PURE__*/React.createElement("div", {
43
+ className: "shape-blob two"
44
+ }));
45
+ };
46
+ AnimatedBlobs.propTypes = {
47
+ /**
48
+ * The HTML id for this element
49
+ */
50
+ id: PropTypes.string,
51
+ /**
52
+ * The HTML class names for this element
53
+ */
54
+ className: PropTypes.string,
55
+ /**
56
+ * The React-written, css properties for this element.
57
+ */
58
+ style: PropTypes.objectOf(PropTypes.string),
59
+ /**
60
+ * The color of the blobs
61
+ */
62
+ color: PropTypes.string,
63
+ /**
64
+ * The height of the blobs
65
+ */
66
+ height: PropTypes.string,
67
+ /**
68
+ * The width of the blobs
69
+ */
70
+ width: PropTypes.string,
71
+ /**
72
+ * The opacity of the blobs
73
+ */
74
+ opacity: PropTypes.string
75
+ };
76
+ AnimatedBlobs.defaultProps = {
77
+ color: 'background-mesh',
78
+ height: '200px',
79
+ width: '200px',
80
+ opacity: '0.7'
81
+ };
82
+ export default AnimatedBlobs;
@@ -0,0 +1 @@
1
+ export { default as AnimatedBlobs } from "./AnimatedBlobs";
@@ -0,0 +1,87 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ @keyframes transform {
6
+ 0%,
7
+ 100% {
8
+ border-radius: 33% 67% 70% 30% / 30% 30% 70% 70%;
9
+ }
10
+
11
+ 20% {
12
+ border-radius: 37% 63% 51% 49% / 37% 65% 35% 63%;
13
+ }
14
+
15
+ 40% {
16
+ border-radius: 36% 64% 64% 36% / 64% 48% 52% 36%;
17
+ }
18
+
19
+ 60% {
20
+ border-radius: 37% 63% 51% 49% / 30% 30% 70% 70%;
21
+ }
22
+
23
+ 80% {
24
+ border-radius: 40% 60% 42% 58% / 41% 51% 49% 59%;
25
+ }
26
+ }
27
+ @keyframes movement_one {
28
+ 0%,
29
+ 100% {
30
+ transform: none;
31
+ }
32
+
33
+ 50% {
34
+ transform: translate(50%, 20%) rotateY(10deg) scale(1.2);
35
+ }
36
+ }
37
+ @keyframes movement_two {
38
+ 0%,
39
+ 500% {
40
+ transform: none;
41
+ }
42
+
43
+ 50% {
44
+ transform: translate(50%, 20%) rotate(-200deg) scale(1.2);
45
+ }
46
+ }
47
+
48
+ .#{bem.$base}.animated-blobs {
49
+ height: 100%;
50
+ left: 0;
51
+ top: 0;
52
+ width: 100%;
53
+
54
+ > .shape-blob {
55
+ animation:
56
+ transform 20s ease-in-out infinite both alternate,
57
+ movement_one 40s ease-in-out infinite both;
58
+ background: var(--blob-color);
59
+ border-radius: 30% 50% 20% 40%;
60
+ height: var(--height);
61
+ left: 70%;
62
+ opacity: var(--opacity);
63
+ position: absolute;
64
+ top: 50%;
65
+ width: var(--width);
66
+ }
67
+
68
+ > .shape-blob.one {
69
+ animation: transform 30s ease-in-out infinite both alternate,
70
+ movement_two 60s ease-in-out infinite both;
71
+ height: calc(var(--height) * 2.5);
72
+ left: -200px;
73
+ top: -150px;
74
+ transform: rotate(-180deg);
75
+ width: calc(var(--width) * 2.5);
76
+ }
77
+
78
+ > .shape-blob.two {
79
+ animation: transform 30s ease-in-out infinite both alternate,
80
+ movement_two 60s ease-in-out infinite both;
81
+ height: calc(var(--height) * 1.75);
82
+ left: 500px;
83
+ top: -150px;
84
+ transform: rotate(-180deg);
85
+ width: calc(var(--width) * 1.75);
86
+ }
87
+ }
@@ -0,0 +1,48 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+ import * as React from 'react';
3
+ import { useEffect, useInsertionEffect } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import styleNames from '@pareto-engineering/bem/exports';
6
+ import { Gradient } from "./webGIRenderer";
7
+
8
+ // Local Definitions
9
+
10
+ const baseClassName = styleNames.base;
11
+ const componentClassName = 'animated-gradient';
12
+
13
+ /**
14
+ * This is the component description.
15
+ */
16
+ const AnimatedGradient = ({
17
+ className: userClassName
18
+ // ...otherProps
19
+ }) => {
20
+ useInsertionEffect(() => {
21
+ import("./styles.scss");
22
+ }, []);
23
+ const isClient = typeof window !== 'undefined';
24
+ useEffect(() => {
25
+ // Only initialize the Gradient if we're in the browser
26
+ if (isClient) {
27
+ const gradient = new Gradient();
28
+ gradient.initGradient('#gradient-canvas');
29
+ }
30
+ }, []);
31
+ return /*#__PURE__*/React.createElement("canvas", {
32
+ id: "gradient-canvas",
33
+ "data-transition-in": true,
34
+ className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' ')
35
+ // {...otherProps}
36
+ });
37
+ };
38
+
39
+ AnimatedGradient.propTypes = {
40
+ /**
41
+ * The HTML class names for this element
42
+ */
43
+ className: PropTypes.string
44
+ };
45
+ AnimatedGradient.defaultProps = {
46
+ // primaryColor:'black',
47
+ };
48
+ export default AnimatedGradient;
@@ -0,0 +1 @@
1
+ export { default as AnimatedGradient } from "./AnimatedGradient";
@@ -0,0 +1,14 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ .#{bem.$base}.animated-gradient {
6
+ --gradient-color-1: var(--background-mesh);
7
+ --gradient-color-2: var(--soft-background-mesh);
8
+ --gradient-color-3: var(--background-mesh);
9
+ --gradient-color-4: var(--soft-background-mesh);
10
+ height: 100%;
11
+ left: 0;
12
+ top: 0;
13
+ width: 100%;
14
+ }