@pareto-engineering/design-system 3.0.0-alpha.18 → 3.0.0-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
  2. package/dist/cjs/f/FormInput/FormInput.js +1 -1
  3. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -4
  4. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
  5. package/dist/es/f/FormInput/FormInput.js +1 -1
  6. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -4
  7. package/package.json +2 -2
  8. package/src/__snapshots__/Storyshots.test.js.snap +6 -53
  9. package/src/stories/a/Conversation.stories.jsx +5 -5
  10. package/src/stories/c/Modal.stories.jsx +0 -18
  11. package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +1 -1
  12. package/src/ui/f/FormInput/FormInput.jsx +2 -0
  13. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -5
  14. package/dist/cjs/a/Alert/Alert.js +0 -121
  15. package/dist/cjs/a/Alert/index.js +0 -13
  16. package/dist/cjs/a/Alert/styles.scss +0 -74
  17. package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +0 -67
  18. package/dist/cjs/a/BackgroundGradient/index.js +0 -13
  19. package/dist/cjs/a/BackgroundGradient/styles.scss +0 -16
  20. package/dist/cjs/a/ContentCard/ContentCard.js +0 -66
  21. package/dist/cjs/a/ContentCard/common/Section/Section.js +0 -69
  22. package/dist/cjs/a/ContentCard/common/Section/index.js +0 -13
  23. package/dist/cjs/a/ContentCard/common/index.js +0 -12
  24. package/dist/cjs/a/ContentCard/index.js +0 -13
  25. package/dist/cjs/a/ContentCard/styles.scss +0 -78
  26. package/dist/cjs/a/CustomerLogos/CustomerLogos.js +0 -77
  27. package/dist/cjs/a/CustomerLogos/index.js +0 -13
  28. package/dist/cjs/a/CustomerLogos/styles.scss +0 -41
  29. package/dist/cjs/a/CustomerStat/CustomerStat.js +0 -75
  30. package/dist/cjs/a/CustomerStat/index.js +0 -13
  31. package/dist/cjs/a/CustomerStat/styles.scss +0 -16
  32. package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +0 -61
  33. package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +0 -59
  34. package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +0 -13
  35. package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
  36. package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -59
  37. package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +0 -13
  38. package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
  39. package/dist/cjs/a/DashboardNavbar/common/index.js +0 -19
  40. package/dist/cjs/a/DashboardNavbar/index.js +0 -13
  41. package/dist/cjs/a/DashboardNavbar/styles.scss +0 -14
  42. package/dist/cjs/a/FeaturedOn/FeaturedOn.js +0 -79
  43. package/dist/cjs/a/FeaturedOn/index.js +0 -13
  44. package/dist/cjs/a/FeaturedOn/styles.scss +0 -41
  45. package/dist/cjs/a/TeamInfo/TeamInfo.js +0 -90
  46. package/dist/cjs/a/TeamInfo/index.js +0 -13
  47. package/dist/cjs/a/TeamInfo/styles.scss +0 -58
  48. package/dist/cjs/b/Card/Card.js +0 -56
  49. package/dist/cjs/b/Card/common/Group/Group.js +0 -60
  50. package/dist/cjs/b/Card/common/Group/index.js +0 -13
  51. package/dist/cjs/b/Card/common/Group/styles.scss +0 -61
  52. package/dist/cjs/b/Card/common/index.js +0 -12
  53. package/dist/cjs/b/Card/index.js +0 -13
  54. package/dist/cjs/b/Card/styles.scss +0 -12
  55. package/dist/cjs/b/Metrics/Metrics.js +0 -78
  56. package/dist/cjs/b/Metrics/index.js +0 -13
  57. package/dist/cjs/b/Metrics/styles.scss +0 -91
  58. package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +0 -104
  59. package/dist/cjs/b/QuestionDropdown/index.js +0 -13
  60. package/dist/cjs/b/QuestionDropdown/styles.scss +0 -95
  61. package/dist/cjs/b/Segment/Segment.js +0 -68
  62. package/dist/cjs/b/Segment/index.js +0 -13
  63. package/dist/cjs/b/Segment/styles.scss +0 -26
  64. package/dist/cjs/c/Hero/Hero.js +0 -77
  65. package/dist/cjs/c/Hero/index.js +0 -13
  66. package/dist/cjs/c/Hero/styles.scss +0 -41
  67. package/dist/es/a/Alert/Alert.js +0 -110
  68. package/dist/es/a/Alert/index.js +0 -2
  69. package/dist/es/a/Alert/styles.scss +0 -74
  70. package/dist/es/a/BackgroundGradient/BackgroundGradient.js +0 -56
  71. package/dist/es/a/BackgroundGradient/index.js +0 -2
  72. package/dist/es/a/BackgroundGradient/styles.scss +0 -16
  73. package/dist/es/a/ContentCard/ContentCard.js +0 -61
  74. package/dist/es/a/ContentCard/common/Section/Section.js +0 -59
  75. package/dist/es/a/ContentCard/common/Section/index.js +0 -2
  76. package/dist/es/a/ContentCard/common/index.js +0 -1
  77. package/dist/es/a/ContentCard/index.js +0 -2
  78. package/dist/es/a/ContentCard/styles.scss +0 -78
  79. package/dist/es/a/CustomerLogos/CustomerLogos.js +0 -70
  80. package/dist/es/a/CustomerLogos/index.js +0 -2
  81. package/dist/es/a/CustomerLogos/styles.scss +0 -41
  82. package/dist/es/a/CustomerStat/CustomerStat.js +0 -68
  83. package/dist/es/a/CustomerStat/index.js +0 -2
  84. package/dist/es/a/CustomerStat/styles.scss +0 -16
  85. package/dist/es/a/DashboardNavbar/DashboardNavbar.js +0 -56
  86. package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +0 -51
  87. package/dist/es/a/DashboardNavbar/common/NavItem/index.js +0 -2
  88. package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
  89. package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -51
  90. package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +0 -2
  91. package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
  92. package/dist/es/a/DashboardNavbar/common/index.js +0 -2
  93. package/dist/es/a/DashboardNavbar/index.js +0 -2
  94. package/dist/es/a/DashboardNavbar/styles.scss +0 -14
  95. package/dist/es/a/FeaturedOn/FeaturedOn.js +0 -72
  96. package/dist/es/a/FeaturedOn/index.js +0 -2
  97. package/dist/es/a/FeaturedOn/styles.scss +0 -41
  98. package/dist/es/a/TeamInfo/TeamInfo.js +0 -83
  99. package/dist/es/a/TeamInfo/index.js +0 -2
  100. package/dist/es/a/TeamInfo/styles.scss +0 -58
  101. package/dist/es/b/Card/Card.js +0 -51
  102. package/dist/es/b/Card/common/Group/Group.js +0 -54
  103. package/dist/es/b/Card/common/Group/index.js +0 -2
  104. package/dist/es/b/Card/common/Group/styles.scss +0 -61
  105. package/dist/es/b/Card/common/index.js +0 -1
  106. package/dist/es/b/Card/index.js +0 -2
  107. package/dist/es/b/Card/styles.scss +0 -12
  108. package/dist/es/b/Metrics/Metrics.js +0 -72
  109. package/dist/es/b/Metrics/index.js +0 -2
  110. package/dist/es/b/Metrics/styles.scss +0 -91
  111. package/dist/es/b/QuestionDropdown/QuestionDropdown.js +0 -99
  112. package/dist/es/b/QuestionDropdown/index.js +0 -2
  113. package/dist/es/b/QuestionDropdown/styles.scss +0 -95
  114. package/dist/es/b/Segment/Segment.js +0 -62
  115. package/dist/es/b/Segment/index.js +0 -2
  116. package/dist/es/b/Segment/styles.scss +0 -26
  117. package/dist/es/c/Hero/Hero.js +0 -70
  118. package/dist/es/c/Hero/index.js +0 -2
  119. package/dist/es/c/Hero/styles.scss +0 -41
@@ -1,110 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useState, useEffect, useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import { Button } from "../../b";
6
- import styleNames from '@pareto-engineering/bem/exports';
7
-
8
- // Local Definitions
9
-
10
- const baseClassName = styleNames.base;
11
- const componentClassName = 'alert';
12
-
13
- /**
14
- * This is the component description.
15
- */
16
- const Alert = _ref => {
17
- let {
18
- id,
19
- className: userClassName,
20
- style,
21
- children,
22
- type,
23
- withCloseIcon,
24
- primaryPosition,
25
- secondaryPosition,
26
- autoCloseMs,
27
- width
28
- // ...otherProps
29
- } = _ref;
30
- useLayoutEffect(() => {
31
- import("./styles.scss");
32
- }, []);
33
- const [hideAlert, setHideAlert] = useState(false);
34
- const handleCloseAlert = () => setHideAlert(true);
35
- useEffect(() => {
36
- if (autoCloseMs) {
37
- setTimeout(() => {
38
- setHideAlert(true);
39
- }, autoCloseMs);
40
- }
41
- }, [autoCloseMs]);
42
- return /*#__PURE__*/React.createElement("div", {
43
- id: id,
44
- className: [baseClassName, componentClassName, userClassName, `x-${type}`, hideAlert && 'hide', primaryPosition, secondaryPosition].filter(e => e).join(' '),
45
- style: {
46
- ...style,
47
- '--width': width
48
- }
49
- // {...otherProps}
50
- }, /*#__PURE__*/React.createElement("div", {
51
- className: "bar"
52
- }), withCloseIcon && /*#__PURE__*/React.createElement("div", {
53
- className: "close"
54
- }, /*#__PURE__*/React.createElement(Button, {
55
- isSimple: true,
56
- color: "heading",
57
- onClick: handleCloseAlert
58
- }, /*#__PURE__*/React.createElement("span", {
59
- className: "f-icons"
60
- }, "Y"))), /*#__PURE__*/React.createElement("div", {
61
- className: "content"
62
- }, children));
63
- };
64
- Alert.propTypes = {
65
- /**
66
- * The HTML id for this element
67
- */
68
- id: PropTypes.string,
69
- /**
70
- * The HTML class names for this element
71
- */
72
- className: PropTypes.string,
73
- /**
74
- * The React-written, css properties for this element.
75
- */
76
- style: PropTypes.objectOf(PropTypes.string),
77
- /**
78
- * The children JSX
79
- */
80
- children: PropTypes.node,
81
- /**
82
- * Whether the alert should have a close Icon
83
- */
84
- withCloseIcon: PropTypes.bool,
85
- /**
86
- * The primary position of the alert
87
- */
88
- primaryPosition: PropTypes.oneOf(['top', 'bottom', 'center']),
89
- /**
90
- * The secondary position of the alert
91
- */
92
- secondaryPosition: PropTypes.oneOf(['left', 'right']),
93
- /**
94
- * The number milisseconds to wait for before closing the alert
95
- */
96
- autoCloseMs: PropTypes.number,
97
- /**
98
- * The type of the alert
99
- */
100
- type: PropTypes.oneOf(['success', 'warning', 'error']),
101
- /**
102
- * The width of the alert
103
- */
104
- width: PropTypes.number
105
- };
106
- Alert.defaultProps = {
107
- withCloseIcon: true,
108
- primaryPosition: 'top'
109
- };
110
- export default Alert;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as Alert } from "./Alert";
@@ -1,74 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- @use "@pareto-engineering/bem";
3
- @use "@pareto-engineering/styles/src/mixins";
4
- @use "@pareto-engineering/styles/src/globals" as *;
5
-
6
- $default-padding: 1em;
7
- $default-bar-height: .3em;
8
- $default-alert-desktop-width: var(--width, 30em);
9
-
10
- .#{bem.$base}.alert {
11
- border: var(--theme-border);
12
- padding-bottom: $default-padding * 1.5;
13
- width: 100%;
14
- position: absolute;
15
- z-index: 1;
16
-
17
- &.center {
18
- top: 50%;
19
- left: 50%;
20
- transform: translate(-50%, -50%);
21
- }
22
-
23
- &.top {
24
- top: 0;
25
- }
26
-
27
- &.bottom {
28
- bottom: 0;
29
- }
30
-
31
- &.right {
32
- right: 0;
33
- }
34
-
35
- &.left {
36
- left: 0;
37
- }
38
-
39
- &.hide {
40
- display: none;
41
- }
42
-
43
- >.bar {
44
- background-color: var(--x);
45
- height: $default-bar-height;
46
- }
47
-
48
- >.close {
49
- display: flex;
50
- justify-content: flex-end;
51
-
52
- span {
53
- padding: $default-padding / 2;
54
- font-size: calc(var(--s-2) * 1em);
55
- }
56
- }
57
-
58
- .bar+.content {
59
- padding-top: $default-padding * 1.5;
60
- }
61
-
62
- >.content {
63
- padding-inline: $default-padding;
64
-
65
- .icon {
66
- color: var(--x)
67
- }
68
- }
69
-
70
- // Desktop styles
71
- @include mixins.media($from: $sm-md) {
72
- width: $default-alert-desktop-width;
73
- }
74
- }
@@ -1,56 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'background-gradient';
11
-
12
- /**
13
- * This is the component description.
14
- */
15
- const BackgroundGradient = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- height
21
- // ...otherProps
22
- } = _ref;
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: {
30
- ...style,
31
- '--gradient-height': height
32
- }
33
- });
34
- };
35
- BackgroundGradient.propTypes = {
36
- /**
37
- * The HTML id for this element
38
- */
39
- id: PropTypes.string,
40
- /**
41
- * The HTML class names for this element
42
- */
43
- className: PropTypes.string,
44
- /**
45
- * The React-written, css properties for this element.
46
- */
47
- style: PropTypes.objectOf(PropTypes.string),
48
- /**
49
- * The height of the shape.
50
- */
51
- height: PropTypes.string
52
- };
53
- BackgroundGradient.defaultProps = {
54
- // someProp: false,
55
- };
56
- export default BackgroundGradient;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as BackgroundGradient } from "./BackgroundGradient";
@@ -1,16 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- @use "@pareto-engineering/bem";
3
-
4
- .#{bem.$base}.background-gradient{
5
- position: absolute;
6
- top: 0;
7
- left: 0;
8
- width: 100%;
9
- height: var(--gradient-height);
10
- background-image: linear-gradient(var(--background1), var(--y) 25%, var(--soft-y) 75%, var(--background1));
11
- opacity: .4;
12
- z-index: -1;
13
- }
14
-
15
-
16
-
@@ -1,61 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- import { Section } from "./common";
10
- const baseClassName = styleNames.base;
11
- const componentClassName = 'content-card';
12
-
13
- /**
14
- * This is the component description.
15
- */
16
- const ContentCard = _ref => {
17
- let {
18
- id,
19
- className: userClassName,
20
- style,
21
- color,
22
- children
23
- // messages,
24
- // ...otherProps
25
- } = _ref;
26
- useLayoutEffect(() => {
27
- import("./styles.scss");
28
- }, []);
29
- return /*#__PURE__*/React.createElement("div", {
30
- id: id,
31
- className: [baseClassName, componentClassName, userClassName, `y-${color}`, 'u1'].filter(e => e).join(' '),
32
- style: style
33
- }, children);
34
- };
35
- ContentCard.propTypes = {
36
- /**
37
- * The HTML id for this element
38
- */
39
- id: PropTypes.string,
40
- /**
41
- * The HTML class names for this element
42
- */
43
- className: PropTypes.string,
44
- /**
45
- * The React-written, css properties for this element.
46
- */
47
- style: PropTypes.objectOf(PropTypes.string),
48
- /**
49
- * Base color
50
- */
51
- color: PropTypes.string,
52
- /**
53
- * The children jsx
54
- */
55
- children: PropTypes.node
56
- };
57
- ContentCard.defaultProps = {
58
- color: 'background2'
59
- };
60
- ContentCard.Section = Section;
61
- export default ContentCard;
@@ -1,59 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
- import styleNames from '@pareto-engineering/bem/exports';
5
-
6
- // Local Definitions
7
-
8
- const baseClassName = styleNames.base;
9
- const componentClassName = 'section';
10
-
11
- /**
12
- * This is the component description.
13
- */
14
- const Section = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children,
20
- layout,
21
- contentAfter
22
- // ...otherProps
23
- } = _ref;
24
- return /*#__PURE__*/React.createElement("div", {
25
- id: id,
26
- className: [baseClassName, componentClassName, userClassName, layout === 'left' && 'layout-left', layout === 'right' && 'layout-right', layout === 'center' && 'layout-center', contentAfter && 'content-after'].filter(e => e).join(' '),
27
- style: style
28
- }, children);
29
- };
30
- Section.propTypes = {
31
- /**
32
- * The HTML id for this element
33
- */
34
- id: PropTypes.string,
35
- /**
36
- * The HTML class names for this element
37
- */
38
- className: PropTypes.string,
39
- /**
40
- * The React-written, css properties for this element.
41
- */
42
- style: PropTypes.objectOf(PropTypes.string),
43
- /**
44
- * The children JSX
45
- */
46
- children: PropTypes.node,
47
- /**
48
- * The main content position
49
- */
50
- layout: PropTypes.oneOf(['left', 'right', 'center']),
51
- /**
52
- * Whether content should appear before or after illustration
53
- */
54
- contentAfter: PropTypes.bool
55
- };
56
- Section.defaultProps = {
57
- contentAfter: false
58
- };
59
- export default Section;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as Section } from "./Section";
@@ -1 +0,0 @@
1
- export { Section } from "./Section";
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as ContentCard } from "./ContentCard";
@@ -1,78 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
- @use "@pareto-engineering/bem";
4
- @use "@pareto-engineering/styles/src/mixins";
5
- @use "@pareto-engineering/styles/src/globals" as *;
6
-
7
-
8
- $default-padding:var(--u);
9
- $default-card-background: var(--y);
10
- $default-content-width:minmax(350px, 500px);
11
-
12
- .#{bem.$base}.content-card {
13
- background-color: $default-card-background;
14
- border-radius: var(--theme-border-radius);
15
-
16
- .#{bem.$base}.section {
17
- column-gap: var(--u);
18
- display: grid;
19
- }
20
-
21
- .layout-left {
22
- grid-template-areas:
23
- "content"
24
- "illustration";
25
- }
26
-
27
- .layout-right {
28
- grid-template-areas:
29
- "content"
30
- "illustration";
31
-
32
- .illustration {
33
- margin-bottom: 0;
34
- }
35
- }
36
-
37
- .layout-center {
38
- grid-template-areas:
39
- "spacer"
40
- "content"
41
- "spacer2";
42
- }
43
-
44
- .content-after {
45
- grid-template-areas:
46
- "illustration"
47
- "content";
48
- }
49
-
50
- .content {
51
- grid-area: content;
52
- }
53
-
54
- .illustration {
55
- grid-area: illustration;
56
- }
57
-
58
- .heading {
59
- margin-bottom: 0;
60
- }
61
-
62
- @include mixins.media($from:$sm-md) {
63
- .layout-left {
64
- grid-template-areas: "content illustration";
65
- grid-template-columns: $default-content-width 1fr;
66
- }
67
-
68
- .layout-right {
69
- grid-template-areas: "illustration content";
70
- grid-template-columns: 1fr $default-content-width;
71
- }
72
-
73
- .layout-center {
74
- grid-template-areas: "spacer content spacer2";
75
- grid-template-columns: 1fr minmax(450px, 650px) 1fr;
76
- }
77
- }
78
- }
@@ -1,70 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'customer-logos';
11
-
12
- /**
13
- * This is the component description.
14
- */
15
- const CustomerLogos = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- logosMap
21
- // ...otherProps
22
- } = _ref;
23
- useLayoutEffect(() => {
24
- import("./styles.scss");
25
- }, []);
26
- return /*#__PURE__*/React.createElement("div", {
27
- id: id,
28
- className: [baseClassName, componentClassName, userClassName, 'u2'].filter(e => e).join(' '),
29
- style: style
30
- // {...otherProps}
31
- }, /*#__PURE__*/React.createElement("div", {
32
- className: "description-content uc"
33
- }, /*#__PURE__*/React.createElement("p", {
34
- className: "content x-metadata c-x uc u1 p-u md-s0 s-1"
35
- }, "Hundreds of entrepreneurs at the world's leading venture communities choose Pareto.")), /*#__PURE__*/React.createElement("div", {
36
- className: "logo-content"
37
- }, logosMap.map(logo => /*#__PURE__*/React.createElement("img", {
38
- className: "logo",
39
- height: logo.height,
40
- width: logo.width,
41
- key: logo.altText,
42
- src: logo.img,
43
- alt: logo.altText
44
- }))));
45
- };
46
- CustomerLogos.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
- * logosMap
61
- */
62
- logosMap: PropTypes.arrayOf(PropTypes.shape({
63
- altText: PropTypes.string.isRequired,
64
- img: PropTypes.string.isRequired
65
- })).isRequired
66
- };
67
- CustomerLogos.defaultProps = {
68
- // someProp:false
69
- };
70
- export default CustomerLogos;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as CustomerLogos } from "./CustomerLogos";
@@ -1,41 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
-
4
- @use "@pareto-engineering/bem";
5
- @use "@pareto-engineering/styles/src/mixins";
6
- @use "@pareto-engineering/styles/src/globals" as *;
7
-
8
-
9
- .#{bem.$base}.customer-logos {
10
- .title {
11
- color: var(--subtitle);
12
- }
13
-
14
- .description-content {
15
- display: flex;
16
- justify-content: center;
17
- }
18
-
19
- .content {
20
- max-width: 80%;
21
- }
22
-
23
- .logo-content {
24
- align-items: center;
25
- display: grid;
26
- gap: var(--u);
27
- grid-template-columns: repeat(auto-fit, minmax(4.5em, 1fr));
28
- justify-items: center;
29
-
30
- .logo {
31
- width: 6em;
32
-
33
- &:hover {
34
- transform: scale(1.05);
35
- transition: all .5s;
36
- }
37
- }
38
- }
39
- }
40
-
41
-
@@ -1,68 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'customer-stat';
11
-
12
- /**
13
- * This is the component description
14
- */
15
- const CustomerStat = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- color,
21
- description,
22
- label
23
- // ...otherProps
24
- } = _ref;
25
- useLayoutEffect(() => {
26
- import("./styles.scss");
27
- }, []);
28
- return /*#__PURE__*/React.createElement("div", {
29
- id: id,
30
- className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
31
- style: style
32
- // {...otherProps}
33
- }, /*#__PURE__*/React.createElement("p", {
34
- className: "info top-description uc s-1 md-s0 v0 mb-v"
35
- }, description), /*#__PURE__*/React.createElement("p", {
36
- className: "uc s0 md-s1 v0 mt-v"
37
- }, label));
38
- };
39
- CustomerStat.propTypes = {
40
- /**
41
- * The HTML id for this element.
42
- */
43
- id: PropTypes.string,
44
- /**
45
- * The HTML class names for this element
46
- */
47
- className: PropTypes.string,
48
- /**
49
- * The React-written, css properties for this element.
50
- */
51
- style: PropTypes.objectOf(PropTypes.string),
52
- /**
53
- * The count color
54
- */
55
- color: PropTypes.string,
56
- /**
57
- * The company description
58
- */
59
- description: PropTypes.string,
60
- /**
61
- * The company label
62
- */
63
- label: PropTypes.string
64
- };
65
- CustomerStat.defaultProps = {
66
- color: 'main1'
67
- };
68
- export default CustomerStat;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as CustomerStat } from "./CustomerStat";
@@ -1,16 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- @use "@pareto-engineering/bem";
3
-
4
- .#{bem.$base}.customer-stat{
5
- align-items: center;
6
- display: flex;
7
- flex-direction: column;
8
-
9
- .info {
10
- color: var(--metadata);
11
- margin-bottom: 0;
12
- }
13
- }
14
-
15
-
16
-