@pareto-engineering/design-system 0.0.1-alpha.60 → 0.0.1-alpha.64

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 (98) hide show
  1. package/dist/cjs/a/TeamInfo/TeamInfo.js +1 -1
  2. package/dist/cjs/a/TeamInfo/styles.scss +3 -2
  3. package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +11 -4
  4. package/dist/cjs/c/index.js +1 -125
  5. package/dist/cjs/f/fields/SelectInput/styles.scss +7 -3
  6. package/dist/es/a/TeamInfo/TeamInfo.js +1 -1
  7. package/dist/es/a/TeamInfo/styles.scss +3 -2
  8. package/dist/es/b/QuestionDropdown/QuestionDropdown.js +11 -4
  9. package/dist/es/c/index.js +1 -15
  10. package/dist/es/f/fields/SelectInput/styles.scss +7 -3
  11. package/package.json +3 -3
  12. package/src/__snapshots__/Storyshots.test.js.snap +251 -1831
  13. package/src/stories/b/QuestionDropdown.stories.jsx +15 -0
  14. package/src/stories/colors.js +1 -1
  15. package/src/stories/f/SelectInput.stories.jsx +3 -7
  16. package/src/ui/a/TeamInfo/TeamInfo.jsx +1 -1
  17. package/src/ui/a/TeamInfo/styles.scss +3 -2
  18. package/src/ui/b/QuestionDropdown/QuestionDropdown.jsx +8 -3
  19. package/src/ui/c/index.js +0 -18
  20. package/src/ui/f/fields/SelectInput/styles.scss +7 -3
  21. package/dist/cjs/a/RatingsInput/RatingsInput.js +0 -88
  22. package/dist/cjs/a/RatingsInput/common/Rating/Rating.js +0 -120
  23. package/dist/cjs/a/RatingsInput/common/Rating/index.js +0 -15
  24. package/dist/cjs/a/RatingsInput/common/index.js +0 -13
  25. package/dist/cjs/a/RatingsInput/index.js +0 -15
  26. package/dist/cjs/a/RatingsInput/styles.scss +0 -35
  27. package/dist/es/a/RatingsInput/RatingsInput.js +0 -72
  28. package/dist/es/a/RatingsInput/common/Rating/Rating.js +0 -102
  29. package/dist/es/a/RatingsInput/common/Rating/index.js +0 -2
  30. package/dist/es/a/RatingsInput/common/index.js +0 -1
  31. package/dist/es/a/RatingsInput/index.js +0 -2
  32. package/dist/es/a/RatingsInput/styles.scss +0 -35
  33. package/src/stories/c/AcceptCookies.stories.jsx +0 -27
  34. package/src/stories/c/BlogCategoryButton.stories.jsx +0 -33
  35. package/src/stories/c/BlogPost.stories.jsx +0 -68
  36. package/src/stories/c/BlogPostsList.stories.jsx +0 -91
  37. package/src/stories/c/SiteFooter.stories.jsx +0 -33
  38. package/src/stories/c/SiteHeaderCTA.stories.jsx +0 -28
  39. package/src/stories/c/SiteMission.stories.jsx +0 -78
  40. package/src/stories/c/SiteNavigation.stories.jsx +0 -79
  41. package/src/stories/c/SiteOnboardingStep.stories.jsx +0 -46
  42. package/src/stories/c/SitePricing.stories.jsx +0 -48
  43. package/src/stories/c/SiteServices.stories.jsx +0 -170
  44. package/src/stories/c/TeamGallery.stories.jsx +0 -52
  45. package/src/stories/c/Testimonials.stories.jsx +0 -43
  46. package/src/stories/c/blogUrlMap.js +0 -13
  47. package/src/ui/c/AcceptCookies/AcceptCookies.jsx +0 -133
  48. package/src/ui/c/AcceptCookies/index.js +0 -2
  49. package/src/ui/c/AcceptCookies/styles.scss +0 -49
  50. package/src/ui/c/BlogCategoryButton/BlogCategoryButton.jsx +0 -96
  51. package/src/ui/c/BlogCategoryButton/index.js +0 -2
  52. package/src/ui/c/BlogContext/BlogContextProvider.jsx +0 -60
  53. package/src/ui/c/BlogContext/Context.js +0 -3
  54. package/src/ui/c/BlogContext/ContextProvider.jsx +0 -60
  55. package/src/ui/c/BlogContext/index.js +0 -4
  56. package/src/ui/c/BlogContext/useBlog.js +0 -4
  57. package/src/ui/c/BlogPost/BlogPost.jsx +0 -161
  58. package/src/ui/c/BlogPost/index.js +0 -2
  59. package/src/ui/c/BlogPost/styles.scss +0 -33
  60. package/src/ui/c/BlogPostsList/BlogPostsList.jsx +0 -81
  61. package/src/ui/c/BlogPostsList/common/Card/Card.jsx +0 -195
  62. package/src/ui/c/BlogPostsList/common/Card/index.js +0 -2
  63. package/src/ui/c/BlogPostsList/common/index.js +0 -1
  64. package/src/ui/c/BlogPostsList/index.js +0 -2
  65. package/src/ui/c/BlogPostsList/styles.scss +0 -72
  66. package/src/ui/c/SiteFooter/SiteFooter.jsx +0 -79
  67. package/src/ui/c/SiteFooter/common/Section/Section.jsx +0 -95
  68. package/src/ui/c/SiteFooter/common/Section/index.js +0 -2
  69. package/src/ui/c/SiteFooter/common/index.js +0 -1
  70. package/src/ui/c/SiteFooter/index.js +0 -2
  71. package/src/ui/c/SiteFooter/styles.scss +0 -34
  72. package/src/ui/c/SiteHeaderCTA/SiteHeaderCTA.jsx +0 -107
  73. package/src/ui/c/SiteHeaderCTA/index.js +0 -2
  74. package/src/ui/c/SiteHeaderCTA/styles.scss +0 -44
  75. package/src/ui/c/SiteMission/SiteMission.jsx +0 -114
  76. package/src/ui/c/SiteMission/index.js +0 -2
  77. package/src/ui/c/SiteMission/styles.scss +0 -30
  78. package/src/ui/c/SiteNavigation/SiteNavigation.jsx +0 -142
  79. package/src/ui/c/SiteNavigation/index.js +0 -2
  80. package/src/ui/c/SiteNavigation/styles.scss +0 -118
  81. package/src/ui/c/SiteOnboardingStep/SiteOnboardingStep.jsx +0 -107
  82. package/src/ui/c/SiteOnboardingStep/index.js +0 -2
  83. package/src/ui/c/SiteOnboardingStep/styles.scss +0 -51
  84. package/src/ui/c/SitePricing/SitePricing.jsx +0 -120
  85. package/src/ui/c/SitePricing/index.js +0 -2
  86. package/src/ui/c/SitePricing/styles.scss +0 -73
  87. package/src/ui/c/SiteServices/SiteServices.jsx +0 -222
  88. package/src/ui/c/SiteServices/index.js +0 -2
  89. package/src/ui/c/SiteServices/styles.scss +0 -138
  90. package/src/ui/c/TeamGallery/TeamGallery.jsx +0 -87
  91. package/src/ui/c/TeamGallery/common/PersonCard/PersonCard.jsx +0 -86
  92. package/src/ui/c/TeamGallery/common/PersonCard/index.js +0 -2
  93. package/src/ui/c/TeamGallery/common/index.js +0 -1
  94. package/src/ui/c/TeamGallery/index.js +0 -2
  95. package/src/ui/c/TeamGallery/styles.scss +0 -100
  96. package/src/ui/c/Testimonials/Testimonials.jsx +0 -124
  97. package/src/ui/c/Testimonials/index.js +0 -2
  98. package/src/ui/c/Testimonials/styles.scss +0 -112
@@ -1,72 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useState, useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem'; // Local Definitions
6
-
7
- import { Rating } from "./common";
8
- const baseClassName = styleNames.base;
9
- const componentClassName = 'ratings-input';
10
- /**
11
- * This is the component description.
12
- */
13
-
14
- const RatingsInput = ({
15
- id,
16
- className: userClassName,
17
- style,
18
- name,
19
- ratingCount // ...otherProps
20
-
21
- }) => {
22
- useLayoutEffect(() => {
23
- import("./styles.scss");
24
- }, []);
25
- const [hover, setHover] = useState(null);
26
- return /*#__PURE__*/React.createElement("div", {
27
- id: id,
28
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
29
- style: style // {...otherProps}
30
-
31
- }, [...Array(ratingCount)].map((_, index) => {
32
- const ratingValue = index + 1;
33
- return /*#__PURE__*/React.createElement(Rating, {
34
- key: ratingValue,
35
- ratingId: `${name}-${ratingValue}`,
36
- value: ratingValue,
37
- name: name,
38
- hover: hover,
39
- setHover: setHover
40
- });
41
- }));
42
- };
43
-
44
- RatingsInput.propTypes = {
45
- /**
46
- * The HTML id for this element
47
- */
48
- id: PropTypes.string,
49
-
50
- /**
51
- * The HTML class names for this element
52
- */
53
- className: PropTypes.string,
54
-
55
- /**
56
- * The React-written, css properties for this element.
57
- */
58
- style: PropTypes.objectOf(PropTypes.string),
59
-
60
- /**
61
- * The number of ratings input stars to be displayed
62
- */
63
- ratingCount: PropTypes.number,
64
-
65
- /**
66
- * Name of the rating input
67
- */
68
- name: PropTypes.string
69
- };
70
- RatingsInput.defaultProps = {// someProp:false
71
- };
72
- export default RatingsInput;
@@ -1,102 +0,0 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- /* @pareto-engineering/generator-front 1.0.12 */
4
- import * as React from 'react';
5
- import PropTypes from 'prop-types';
6
- import { useField } from 'formik';
7
- import styleNames from '@pareto-engineering/bem'; // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'rating';
11
- /**
12
- * This is the component description.
13
- */
14
-
15
- const Rating = ({
16
- id,
17
- className: userClassName,
18
- style,
19
- value,
20
- name,
21
- ratingId,
22
- hover,
23
- setHover,
24
- activeBackgroundColor,
25
- inactiveBackgroundColor // ...otherProps
26
-
27
- }) => {
28
- const [field] = useField(name);
29
- return /*#__PURE__*/React.createElement("div", {
30
- id: id,
31
- className: [baseClassName, componentClassName, userClassName, `x-${activeBackgroundColor}`, `y-${inactiveBackgroundColor}`].filter(e => e).join(' '),
32
- style: style
33
- }, /*#__PURE__*/React.createElement("label", {
34
- htmlFor: ratingId,
35
- onMouseEnter: () => setHover(value),
36
- onMouseLeave: () => setHover(null)
37
- }, ' ', /*#__PURE__*/React.createElement("span", {
38
- className: ['f-icons', value <= (hover || Number(field.value)) ? 'c-x' : 'c-dark-y'].filter(e => e).join(' ')
39
- }, "[")), /*#__PURE__*/React.createElement("input", _extends({}, field, {
40
- type: "radio",
41
- id: ratingId,
42
- name: name,
43
- value: value
44
- })));
45
- };
46
-
47
- Rating.propTypes = {
48
- /**
49
- * The HTML id for this element
50
- */
51
- id: PropTypes.string,
52
-
53
- /**
54
- * The HTML class names for this element
55
- */
56
- className: PropTypes.string,
57
-
58
- /**
59
- * The React-written, css properties for this element.
60
- */
61
- style: PropTypes.objectOf(PropTypes.string),
62
-
63
- /**
64
- * The value of each an every rating star
65
- */
66
- value: PropTypes.number,
67
-
68
- /**
69
- * The current hover value
70
- */
71
- hover: PropTypes.number,
72
-
73
- /**
74
- * Function to update the hover value
75
- */
76
- setHover: PropTypes.func,
77
-
78
- /**
79
- * Unique Id for each rating star
80
- */
81
- ratingId: PropTypes.string,
82
-
83
- /**
84
- * Name of the rating input
85
- */
86
- name: PropTypes.string,
87
-
88
- /**
89
- * The start rating backgriund color when hovered or clicked
90
- */
91
- activeBackgroundColor: PropTypes.string,
92
-
93
- /**
94
- * The start rating backgriund color when not hovered and not clicked
95
- */
96
- inactiveBackgroundColor: PropTypes.string
97
- };
98
- Rating.defaultProps = {
99
- activeBackgroundColor: 'secondary2',
100
- inactiveBackgroundColor: 'background'
101
- };
102
- export default Rating;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as Rating } from "./Rating";
@@ -1 +0,0 @@
1
- export { Rating } from "./Rating";
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as RatingsInput } from "./RatingsInput";
@@ -1,35 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- @use "@pareto-engineering/bem";
3
-
4
- $default-rating-icon-margin: .5em;
5
- $default-padding: .2em;
6
- $default-transition: all .2s;
7
-
8
- .#{bem.$base}.ratings-input {
9
- display: flex;
10
-
11
- >:not(:first-child) {
12
- margin-left: $default-rating-icon-margin;
13
- }
14
-
15
- .#{bem.$base}.rating {
16
- display: flex;
17
-
18
- input {
19
- opacity: 0;
20
- position: absolute;
21
- visibility: none;
22
- z-index: -1;
23
- }
24
-
25
- label {
26
- padding: $default-padding;
27
- transition: $default-transition;
28
- cursor: pointer;
29
- }
30
- }
31
- }
32
-
33
-
34
-
35
-
@@ -1,27 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { AcceptCookies } from 'ui'
5
-
6
- export default {
7
- title :'c/AcceptCookies',
8
- component :AcceptCookies,
9
- subcomponents:{
10
- // Item:AcceptCookies.Item
11
- },
12
- decorators:[
13
- // storyfn => <div className="">{ storyfn() }</div>,
14
- ],
15
- argTypes:{
16
- backgroundColor:{ control: 'color' },
17
- },
18
- }
19
-
20
- export const Base = () => (
21
- <div className="y-background b-dark-y" style={{ height: '100%' }}>
22
- <AcceptCookies
23
- title="This website uses cookies."
24
- subtitle="We use cookies to personalise content and ads, to provide social medial features and to analyse our traffic."
25
- />
26
- </div>
27
- )
@@ -1,33 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { BlogCategoryButton, BlogContextProvider } from 'ui'
5
-
6
- import blogUrlMap from './blogUrlMap'
7
-
8
- import Router from '../utils/Router'
9
-
10
- export default {
11
- title :'c/BlogCategoryButton',
12
- component :BlogCategoryButton,
13
- subcomponents:{
14
- // Item:BlogCategoryButton.Item
15
- },
16
- decorators:[
17
- (storyfn) => <Router>{ storyfn() }</Router>,
18
- (storyfn) => (
19
- <BlogContextProvider
20
- urlMap={blogUrlMap}
21
- >
22
- { storyfn() }
23
- </BlogContextProvider>
24
- ),
25
- ],
26
- argTypes:{
27
- backgroundColor:{ control: 'color' },
28
- },
29
- }
30
-
31
- export const Base = () => (
32
- <BlogCategoryButton categorySlug="productivity" color="secondary1">Sample BlogCategoryButton</BlogCategoryButton>
33
- )
@@ -1,68 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { BlogPost, BlogContextProvider } from 'ui'
5
-
6
- import blogUrlMap from './blogUrlMap'
7
-
8
- import Router from '../utils/Router'
9
-
10
- export default {
11
- title :'c/BlogPost',
12
- component :BlogPost,
13
- subcomponents:{
14
- // Item:BlogPost.Item
15
- },
16
- decorators:[
17
- (storyfn) => <Router>{ storyfn() }</Router>,
18
- (storyfn) => (
19
- <BlogContextProvider
20
- urlMap={blogUrlMap}
21
- >
22
- { storyfn() }
23
- </BlogContextProvider>
24
- ),
25
- ],
26
- argTypes:{
27
- backgroundColor:{ control: 'color' },
28
- },
29
- }
30
-
31
- export const Base = () => {
32
- const blogPost = {
33
- title :'10 productivity tips you didnt know',
34
- description:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi dapibus lectus nisl, ac maximus ex convallis sed. Donec quis eros vehicula, hendrerit enim sit amet, varius libero. Nullam vel nulla a ipsum cursus molestie. Phasellus ut sodales justo. Pellentesque maximus nulla in nibh condimentum, et eleifend turpis molestie.',
35
- content :`
36
- <p>For new business owners, it is a challenge to avoid <strong>startup mistakes</strong> . But, identifying those mistakes at an early stage of business will give you an edge and a higher chance of success. While there isn't a fool-proof plan to reach small business startup success, there are several reasons why tech startups fail. According to the data provided by the <u>U.S. Bureau of Labor Statistics</u>, 20% of new businesses fail during the first two years of operation, and roughly half of all businesses don't survive past the fifth year.</p>
37
-
38
- <p>
39
- In business, prevention is always better than cure, and while it’s not always possible to prevent problems, being prepared usually pays off. But if a problem or mistake already occured, how do you ensure that it won’t happen again? Here are some common startup mistakes that you can prevent to improve your chances of success.
40
- </p>
41
-
42
- <p>
43
- There are a lot of reasons why a business startup fails. It is why you have to know the most significant causes so you can avoid them as early as possible.
44
- </p>
45
-
46
- <h2 id="1-doing-it-alone">1. Doing It All Alone</h2>
47
- <p>Don’t try to complete all of your business tasks on your own – learn to delegate. Keep the 80/20 principle in mind and try to focus on the stuff that you deem the most important. Doing it all alone is a <strong>startup mistake</strong>. In reality, it requires a lot more than a single individual to launch a business. There are highs and lows, not to mention tasks that few can undertake alone. <em>Delegate all the non-essential stuff to others. This will also help you keep your productivity up – a must for all startup entrepreneurs.</em></p>
48
-
49
- <h2 id="2-doing-it-alone">2. No Concise Vision and Direction</h2>
50
- <p>Another big <strong>startup mistake</strong> is disregarding the value of setting a concise startup vision. Jay DesMarteau, head of small business banking at TD Bank, said an entrepreneur’s vision, whether in words, photos, graphs or other images—helps drive the business’ development and the owner’s decisions. <u>TD Bank</u> survey found that one in five small business owners used a vision board or other visual representations <strong>when starting their business</strong>; 76% of those business owners said that today their business is where they envisioned it would be when they started it. When the vision is clear, everyone has a good understanding of what needs to happen and will be more productive and motivated to excel.</p>
51
- `,
52
- publishedOn:'2021-07-01T14:47:46.963221+00:00',
53
- author :{
54
- firstName:'Melissa',
55
- lastName :'Lee',
56
- },
57
- category:{
58
- name:'Business Tips',
59
- slug:'business-tips',
60
- },
61
- mainImage:'https://images.pexels.com/photos/8647586/pexels-photo-8647586.jpeg?cs=srgb&dl=pexels-maxim-kovalev-8647586.jpg&fm=jpg',
62
-
63
- }
64
-
65
- return (
66
- <BlogPost className="u1 md-u2" {...blogPost}>Sample BlogPost</BlogPost>
67
- )
68
- }
@@ -1,91 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { BlogPostsList, BlogContextProvider } from 'ui'
5
-
6
- import blogUrlMap from './blogUrlMap'
7
-
8
- import Router from '../utils/Router'
9
-
10
- export default {
11
- title :'c/BlogPostsList',
12
- component :BlogPostsList,
13
- subcomponents:{
14
- 'BlogPostList.Card':BlogPostsList.Card,
15
- },
16
- decorators:[
17
- (storyfn) => <Router>{ storyfn() }</Router>,
18
- (storyfn) => (
19
- <BlogContextProvider
20
- urlMap={blogUrlMap}
21
- >
22
- { storyfn() }
23
- </BlogContextProvider>
24
- ),
25
- ],
26
- argTypes:{
27
- backgroundColor:{ control: 'color' },
28
- },
29
- }
30
-
31
- const cardMap = [
32
- {
33
- title :'Some title',
34
- slug :'some-slug1',
35
- updatedAt :'2021-07-07T14:47:46.963221+00:00',
36
- publishedOn:'2021-07-01T14:47:46.963221+00:00',
37
- wordCount :'820',
38
- category :{
39
- name:'Productivity',
40
- slug:'productivity',
41
- },
42
- mainImage :'https://images.pexels.com/photos/4297441/pexels-photo-4297441.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260',
43
- description:'In this article you will find some tips to increase your productivity',
44
- author :{
45
- firstName:'John',
46
- lastName :'Doe',
47
- },
48
- size:'lg',
49
- },
50
- {
51
- title :'Some Other Article',
52
- slug :'some-slug2',
53
- updatedAt :'2021-07-07T14:47:46.963221+00:00',
54
- publishedOn:'2021-07-02T14:47:46.963221+00:00',
55
- wordCount :'2020',
56
- category :{
57
- name:'Business',
58
- slug:'business',
59
- },
60
- mainImage :'https://images.pexels.com/photos/8557946/pexels-photo-8557946.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260',
61
- description:'In this article you will find some tips to increase your productivity',
62
- author :{
63
- firstName:'John',
64
- lastName :'Doe',
65
- },
66
- },
67
- {
68
- title :'Some title',
69
- slug :'some-slug3',
70
- updatedAt :'2021-07-07T14:47:46.963221+00:00',
71
- publishedOn:'2021-06-27T14:47:46.963221+00:00',
72
- wordCount :'1320',
73
- category :{
74
- name:'Productivity',
75
- slug:'productivity',
76
- },
77
- mainImage :'https://images.pexels.com/photos/5039042/pexels-photo-5039042.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260',
78
- description:'In this article you will find some tips to increase your productivity',
79
- author :{
80
- firstName:'John',
81
- lastName :'Doe',
82
- },
83
- color:'secondary1',
84
- },
85
- ]
86
-
87
- export const Base = () => (
88
- <BlogPostsList style={{ background: 'green' }}>
89
- { cardMap.map((article) => <BlogPostsList.Card key={article.slug} {...article} />) }
90
- </BlogPostsList>
91
- )