@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,72 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import { AnimatedCounter } from "../..";
5
- import PropTypes from 'prop-types';
6
- import styleNames from '@pareto-engineering/bem/exports';
7
-
8
- // Local Definitions
9
-
10
- const baseClassName = styleNames.base;
11
- const componentClassName = 'metrics';
12
-
13
- /**
14
- * This is the component description.
15
- */
16
- const Metrics = _ref => {
17
- let {
18
- id,
19
- className: userClassName,
20
- style,
21
- items
22
- // ...otherProps
23
- } = _ref;
24
- useLayoutEffect(() => {
25
- import("./styles.scss");
26
- }, []);
27
- return /*#__PURE__*/React.createElement("div", {
28
- id: id,
29
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
30
- style: style
31
- // {...otherProps}
32
- }, items.map(counter => /*#__PURE__*/React.createElement("div", {
33
- className: "metric"
34
- }, /*#__PURE__*/React.createElement("div", {
35
- className: `circle y-${counter.circleColor}`
36
- }, /*#__PURE__*/React.createElement(AnimatedCounter, {
37
- color: counter.color,
38
- delay: counter.delay,
39
- number: counter.number,
40
- before: counter.before,
41
- after: counter.after
42
- }), /*#__PURE__*/React.createElement("p", {
43
- className: "description-md sm-h xs-h md-s1"
44
- }, counter.description)), /*#__PURE__*/React.createElement("p", {
45
- className: "description-sm md-h lg-h sm-s-2"
46
- }, counter.description))));
47
- };
48
- Metrics.propTypes = {
49
- /**
50
- * The HTML id for this element
51
- */
52
- id: PropTypes.string,
53
- /**
54
- * The HTML class names for this element
55
- */
56
- className: PropTypes.string,
57
- /**
58
- * The React-written, css properties for this element.
59
- */
60
- style: PropTypes.objectOf(PropTypes.string),
61
- /**
62
- * The array of details
63
- */
64
- items: PropTypes.node
65
- };
66
-
67
- /*
68
- Metrics.defaultProps = {
69
- }
70
- */
71
-
72
- export default Metrics;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as Metrics } from "./Metrics";
@@ -1,91 +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
- $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(--soft-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
- }
@@ -1,99 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.7 */
2
- import * as React from 'react';
3
- import { useState, useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
-
6
- // Package-level Imports
7
- import styleNames from '@pareto-engineering/bem/exports';
8
-
9
- // Component-level imports
10
- // import('./styles.scss')
11
-
12
- // Helper Definition
13
- const baseClassName = styleNames.base;
14
- const componentClassName = 'question-dropdown';
15
-
16
- /**
17
- * The question dropdown is used for the FAQ section. <br />
18
- * If `isFAQSchema=true`, make sure to remember to add the appropriate itemscope and
19
- * itemtype attributes to the root of the page that includes the FAQ component
20
- */
21
- const QuestionDropdown = _ref => {
22
- let {
23
- id,
24
- className: userClassName,
25
- style,
26
- question,
27
- children,
28
- isFAQSchema,
29
- defaultIsOpen
30
- // ...otherProps
31
- } = _ref;
32
- useLayoutEffect(() => {
33
- import("./styles.scss");
34
- }, []);
35
- const [isOpen, setIsOpen] = useState(defaultIsOpen);
36
- const toggleOpen = () => setIsOpen(!isOpen);
37
- return /*#__PURE__*/React.createElement("div", {
38
- id: id,
39
- className: [baseClassName, componentClassName, userClassName, isOpen && 'open'].filter(e => e).join(' '),
40
- style: style,
41
- itemScope: isFAQSchema // if isFAQSchema is false, should be undefined
42
- ,
43
- itemProp: isFAQSchema && 'mainEntity',
44
- itemType: isFAQSchema && 'http://schema.org/Question'
45
- // {...otherProps}
46
- }, /*#__PURE__*/React.createElement("div", {
47
- tabIndex: 0,
48
- role: "button",
49
- className: "accordion",
50
- onClick: toggleOpen,
51
- onKeyDown: toggleOpen
52
- }, /*#__PURE__*/React.createElement("span", {
53
- className: "caret"
54
- }, "^"), /*#__PURE__*/React.createElement("div", {
55
- className: "question-content",
56
- itemProp: isFAQSchema && 'name'
57
- }, question)), /*#__PURE__*/React.createElement("div", {
58
- className: "answer-content",
59
- itemProp: isFAQSchema && 'acceptedAnswer',
60
- itemType: isFAQSchema && 'https://schema.org/Answer'
61
- }, /*#__PURE__*/React.createElement("div", {
62
- className: "answer-text",
63
- itemProp: isFAQSchema && 'text'
64
- }, children)));
65
- };
66
- QuestionDropdown.propTypes = {
67
- /**
68
- * The HTML id for this element
69
- */
70
- id: PropTypes.string,
71
- /**
72
- * The HTML class names for this element
73
- */
74
- className: PropTypes.string,
75
- /**
76
- * The React-written, css properties for this element.
77
- */
78
- style: PropTypes.objectOf(PropTypes.string),
79
- /**
80
- * Any children of the question, such as answer blocks
81
- */
82
- children: PropTypes.node.isRequired,
83
- /**
84
- * Question to be answered
85
- */
86
- question: PropTypes.string.isRequired,
87
- /**
88
- * Whether element is part of SEO schema
89
- */
90
- isFAQSchema: PropTypes.bool,
91
- /**
92
- * Whether the question drop down should be opened by default
93
- */
94
- defaultIsOpen: PropTypes.bool
95
- };
96
- QuestionDropdown.defaultProps = {
97
- defaultIsOpen: false
98
- };
99
- export default QuestionDropdown;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.7 */
2
- export { default as QuestionDropdown } from "./QuestionDropdown";
@@ -1,95 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.7 */
2
-
3
- @use "@pareto-engineering/bem";
4
-
5
- //make all colors as vars
6
-
7
- $border-color: var(--hard-background1);
8
- $border-width: 2px;
9
- $button-background-color: transparent;
10
- $button-background-color-hover: var(--soft-accent3);
11
- $caret-font-size: 1.2em;
12
- $question-color: var(--heading);
13
- $question-font-weight: 700;
14
- $padding-base: 1em;
15
- $transition-time-button: .4s;
16
- $transition-time-caret: .3s;
17
- $transition-time-answer: 1.5s;
18
-
19
- .#{bem.$base}.question-dropdown {
20
- width: 100%;
21
-
22
- > .accordion {
23
- align-items: center;
24
- background-color: $button-background-color;
25
- border: none;
26
- cursor: pointer;
27
- display: flex;
28
- outline: none;
29
- padding: $padding-base $padding-base;
30
- transition: background-color $transition-time-button ease;
31
- width: 100%;
32
-
33
- .caret {
34
- align-items: center;
35
- display: inline-flex;
36
- font-size: $caret-font-size;
37
- transform: scale(1.2, .6) rotate(180deg);
38
- }
39
-
40
- .question-content {
41
- color: $question-color;
42
- font-family: var(--font-heading);
43
- font-size: calc(var(--s1) * 1rem);
44
- font-weight: $question-font-weight;
45
- padding-left: $padding-base;
46
- }
47
-
48
- &:hover {
49
- background-color: $button-background-color-hover;
50
- }
51
- }
52
-
53
- .answer-content {
54
- background-color: $button-background-color-hover;
55
- height: 0;
56
- opacity: 0;
57
- overflow: hidden;
58
- transition: opacity $transition-time-answer ease;
59
-
60
- .answer-text {
61
- > p {
62
- align-items: center;
63
- font-family: var(--font-paragraph);
64
- font-size: calc(var(--s0) * 1rem);
65
- justify-content: center;
66
- margin: 0;
67
- padding: 0 $padding-base $padding-base;
68
- }
69
- }
70
- }
71
-
72
- &.open {
73
- background-color: $button-background-color-hover;
74
-
75
- > .accordion {
76
- .caret {
77
- font-size: $caret-font-size;
78
- transform: scale(1.2, .6) rotate(360deg);
79
- transition: transform $transition-time-caret ease;
80
- }
81
- }
82
-
83
- .answer-content {
84
- height: auto;
85
- opacity: 1;
86
- }
87
- }
88
-
89
- &::after {
90
- border-bottom: $border-width solid $border-color;
91
- content: "";
92
- display: block;
93
- width: 100%;
94
- }
95
- }
@@ -1,62 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- import styleNames from '@pareto-engineering/bem/exports';
7
-
8
- // Component-level imports
9
- import("./styles.scss");
10
-
11
- // Helper Definition
12
- const baseClassName = styleNames.base;
13
- const componentClassName = 'segment';
14
- const Segment = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children,
20
- title,
21
- footer
22
-
23
- // ...otherProps
24
- } = _ref;
25
- return /*#__PURE__*/React.createElement("div", {
26
- id: id,
27
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
28
- style: style
29
- }, /*#__PURE__*/React.createElement("header", null, /*#__PURE__*/React.createElement("p", {
30
- className: "s1 title"
31
- }, title)), /*#__PURE__*/React.createElement("main", null, children), footer && /*#__PURE__*/React.createElement("footer", null, footer));
32
- };
33
- Segment.propTypes = {
34
- /**
35
- * The HTML id for this element
36
- */
37
- id: PropTypes.string,
38
- /**
39
- * The HTML class names for this element
40
- */
41
- className: PropTypes.string,
42
- /**
43
- * The React-written, css properties for this element.
44
- */
45
- style: PropTypes.objectOf(PropTypes.string),
46
- /**
47
- * The children JSX
48
- */
49
- children: PropTypes.node,
50
- /**
51
- * The title of the segment
52
- */
53
- title: PropTypes.string.isRequired,
54
- /**
55
- * The optional footer of the segment.
56
- */
57
- footer: PropTypes.node
58
- };
59
- Segment.defaultProps = {
60
- // someProp:false
61
- };
62
- export default Segment;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- export { default as Segment } from "./Segment";
@@ -1,26 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
-
3
- @use "@pareto-engineering/bem" ;
4
- $padding:.5em 1em;
5
-
6
- .#{bem.$base}.segment {
7
- border: var(--theme-border);
8
- border-radius: var(--border-radius);
9
-
10
- .title {
11
- font-weight: 600;
12
- margin: unset;
13
- }
14
-
15
- > header,
16
- > main,
17
- > footer {
18
- padding: $padding;
19
- }
20
-
21
- > footer {
22
- border-top: var(--theme-border);
23
- }
24
- }
25
-
26
-
@@ -1,70 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.9 */
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 = 'hero';
11
-
12
- /**
13
- * This is the component description.
14
- */
15
- const Hero = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- title,
21
- illustration,
22
- cta
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].filter(e => e).join(' '),
31
- style: style
32
- // {...otherProps}
33
- }, /*#__PURE__*/React.createElement("div", {
34
- className: "title"
35
- }, title), /*#__PURE__*/React.createElement("div", {
36
- className: "illustration"
37
- }, illustration), /*#__PURE__*/React.createElement("div", {
38
- className: "cta"
39
- }, cta));
40
- };
41
- Hero.propTypes = {
42
- /**
43
- * The HTML id for this element
44
- */
45
- id: PropTypes.string,
46
- /**
47
- * The HTML class names for this element
48
- */
49
- className: PropTypes.string,
50
- /**
51
- * The React-written, css properties for this element.
52
- */
53
- style: PropTypes.objectOf(PropTypes.string),
54
- /**
55
- * The title to be displayed
56
- */
57
- title: PropTypes.node,
58
- /**
59
- * The illustration to be displayed
60
- */
61
- illustration: PropTypes.node,
62
- /**
63
- * The CTA to be displayed
64
- */
65
- cta: PropTypes.node
66
- };
67
- Hero.defaultProps = {
68
- // someProp:false
69
- };
70
- export default Hero;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.9 */
2
- export { default as Hero } from "./Hero";
@@ -1,41 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.9 */
2
-
3
- @use "@pareto-engineering/bem";
4
- @use "@pareto-engineering/styles/src/mixins";
5
- @use "@pareto-engineering/styles/src/globals" as *;
6
-
7
- $default-padding:1em;
8
-
9
- .#{bem.$base}.hero {
10
- display: grid;
11
- grid-template-areas:
12
- "illustration"
13
- "title"
14
- "cta";
15
- text-align: center;
16
-
17
- @include mixins.media($from:$sm-md) {
18
- grid-template-areas:
19
- "title illustration"
20
- "cta illustration";
21
- grid-template-columns: var(--content-width, minmax(400px, 650px)) 1fr;
22
- text-align: left;
23
- }
24
-
25
- > .title {
26
- grid-area: title;
27
- padding: $default-padding;
28
- }
29
-
30
- > .illustration {
31
- background: #df1f00;
32
- grid-area: illustration;
33
- }
34
-
35
- > .cta {
36
- grid-area: cta;
37
- padding: $default-padding;
38
- }
39
- }
40
-
41
-