@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,114 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { useLayoutEffect } from 'react'
5
-
6
- import PropTypes from 'prop-types'
7
-
8
- import styleNames from '@pareto-engineering/bem'
9
-
10
- import { TeamInfo, AnimatedCounter } from 'ui/a'
11
-
12
- // Local Definitions
13
-
14
- const baseClassName = styleNames.base
15
-
16
- const componentClassName = 'mission'
17
-
18
- /**
19
- * This is the component description.
20
- */
21
- const SiteMission = ({
22
- id,
23
- className:userClassName,
24
- style,
25
- color,
26
- teamInfoMap,
27
- teamReviewMap,
28
- delay,
29
- // ...otherProps
30
- }) => {
31
- useLayoutEffect(() => {
32
- import('./styles.scss')
33
- }, [])
34
-
35
- return (
36
- <div
37
- id={id}
38
- className={[
39
- baseClassName,
40
- componentClassName,
41
- userClassName,
42
- 'u2',
43
- `x-${color}`,
44
- ]
45
- .filter((e) => e)
46
- .join(' ')}
47
- style={style}
48
- // {...otherProps}
49
- >
50
-
51
- <div className="review-content s-1 md-s0">
52
- {teamReviewMap.map((review) => (
53
- <AnimatedCounter key={review.description} {...review} color={color} delay={delay} />
54
- ))}
55
- </div>
56
- <div className="team-info-content v2 mv-v">
57
- {teamInfoMap.map((info) => (
58
- <TeamInfo key={info.description} {...info} />
59
- ))}
60
- </div>
61
- </div>
62
- )
63
- }
64
-
65
- SiteMission.propTypes = {
66
- /**
67
- * The HTML id for this element
68
- */
69
- id:PropTypes.string,
70
-
71
- /**
72
- * The HTML class names for this element
73
- */
74
- className:PropTypes.string,
75
-
76
- /**
77
- * The React-written, css properties for this element.
78
- */
79
- style:PropTypes.objectOf(PropTypes.string),
80
-
81
- /**
82
- * The teamReviewMap
83
- */
84
- teamReviewMap:PropTypes.arrayOf(PropTypes.shape({
85
- number :PropTypes.number.isRequired,
86
- unit :PropTypes.string.isRequired,
87
- description:PropTypes.string.isRequired,
88
- })).isRequired,
89
-
90
- /**
91
- * The color
92
- */
93
- color:PropTypes.string,
94
-
95
- /**
96
- * The teamInfoMap
97
- */
98
- teamInfoMap:PropTypes.arrayOf(PropTypes.shape({
99
- description:PropTypes.string.isRequired,
100
- img :PropTypes.string.isRequired,
101
- name :PropTypes.string.isRequired,
102
- role :PropTypes.string.isRequired,
103
- })).isRequired,
104
- /**
105
- * Animated counter delay
106
- */
107
- delay:PropTypes.number,
108
- }
109
-
110
- SiteMission.defaultProps = {
111
- color:'main1',
112
- }
113
-
114
- export default SiteMission
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as SiteMission } from './SiteMission'
@@ -1,30 +0,0 @@
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
- $grid-gap:1em;
8
-
9
-
10
- .#{bem.$base}.mission {
11
- height: auto;
12
-
13
- .review-content {
14
- display: grid;
15
- gap: $grid-gap;
16
- grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
17
- }
18
-
19
- .team-info-content {
20
- display: grid;
21
- gap: $grid-gap;
22
- grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
23
- }
24
-
25
- @include mixins.media($to:$sm-md) {
26
- padding: var(--u);
27
- }
28
- }
29
-
30
-
@@ -1,142 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { useLayoutEffect, useEffect, useState } from 'react'
5
-
6
- import PropTypes from 'prop-types'
7
-
8
- import styleNames from '@pareto-engineering/bem'
9
-
10
- import { Link, useLocation } from 'react-router-dom'
11
-
12
- import { HamburgerButton } from 'ui/a'
13
- import { Logo } from 'ui/b'
14
-
15
- // Local Definitions
16
-
17
- const baseClassName = styleNames.base
18
-
19
- const componentClassName = 'site-navigation'
20
-
21
- /**
22
- * This is the component description.
23
- */
24
- const SiteNavigation = ({
25
- id,
26
- className:userClassName,
27
- style,
28
- menu,
29
- cta,
30
- logoColor,
31
- // ...otherProps
32
- }) => {
33
- useLayoutEffect(() => {
34
- import('./styles.scss')
35
- }, [])
36
-
37
- const [isOpen, setIsOpen] = useState(false)
38
- const toggleOpen = () => setIsOpen(!isOpen)
39
- const location = useLocation()
40
- const activePage = location.pathname
41
-
42
- useEffect(() => {
43
- setIsOpen(false)
44
- }, [location])
45
-
46
- return (
47
- <nav
48
- id={id}
49
- className={[
50
-
51
- baseClassName,
52
- isOpen && 'open',
53
- componentClassName,
54
- userClassName,
55
- ]
56
- .filter((e) => e)
57
- .join(' ')}
58
- style={style}
59
- // {...otherProps}
60
- >
61
- <div className="hamburger">
62
- <HamburgerButton className="md-h lg-h" isOpen={isOpen} onClick={toggleOpen} />
63
- </div>
64
- <div className="wrapper">
65
- <div className="title">
66
- <Logo
67
- color={logoColor}
68
- height="2.5em"
69
- className="xs-h sm-h"
70
- />
71
- { isOpen
72
- && (
73
- <Logo
74
- color={logoColor}
75
- height="3.2em"
76
- className="md-h lg-h"
77
- />
78
- )}
79
- </div>
80
- <div className="menu">
81
- <ul className="s3 md-s1">
82
- { menu.map((item) => (
83
- <li
84
- key={item.name}
85
- className={[activePage === item.link && styleNames.modifierActive].filter((e) => e)
86
- .join(' ')}
87
- >
88
- <Link to={item.link}>
89
- { item.name }
90
- </Link>
91
- </li>
92
- )) }
93
- </ul>
94
- </div>
95
- <div className="cta">{ cta }</div>
96
- </div>
97
- </nav>
98
- )
99
- }
100
-
101
- SiteNavigation.propTypes = {
102
- /**
103
- * The HTML id for this element
104
- */
105
- id:PropTypes.string,
106
-
107
- /**
108
- * The HTML class names for this element
109
- */
110
- className:PropTypes.string,
111
-
112
- /**
113
- * The React-written, css properties for this element.
114
- */
115
- style:PropTypes.objectOf(PropTypes.string),
116
-
117
- /**
118
- * The cta as JSX
119
- */
120
- cta:PropTypes.node,
121
-
122
- /**
123
- * The map of menu elements
124
- */
125
- menu:PropTypes.arrayOf(
126
- PropTypes.shape({
127
- name:PropTypes.string.isRequired,
128
- link:PropTypes.string.isRequired,
129
- }),
130
- ).isRequired,
131
-
132
- /**
133
- * The logo color
134
- */
135
- logoColor:PropTypes.string,
136
- }
137
-
138
- SiteNavigation.defaultProps = {
139
- logoColor:'main1',
140
- }
141
-
142
- export default SiteNavigation
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as SiteNavigation } from './SiteNavigation'
@@ -1,118 +0,0 @@
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-desktop-padding:1em;
8
-
9
- .#{bem.$base}.site-navigation {
10
- //background: var(--secondary2);
11
- position: sticky;
12
- top: 0;//TODO
13
-
14
- .#{bem.$modifier-active} {
15
- text-decoration: underline;
16
- }
17
-
18
- @include mixins.media($to:$sm-md) {
19
- cursor: pointer;
20
-
21
- .wrapper {
22
- display: none;
23
- }
24
-
25
- &.open {
26
- display: flex;
27
- flex-direction: column;
28
-
29
- height: 100%;
30
- position: fixed;
31
- width: 100%;
32
-
33
- .wrapper {
34
- display: flex;
35
- flex-direction: column;
36
- height: 100%;
37
- justify-content: space-between;
38
-
39
- .title,
40
- .menu,
41
- .cta {
42
- padding: var(--u);
43
- text-align: center;
44
- }
45
-
46
- .menu {
47
- ul {
48
- list-style: none;
49
- padding: 0;
50
- /* stylelint-disable selector-max-compound-selectors -- required */
51
- /* stylelint-disable max-nesting-depth -- required */
52
- li {
53
- + li {
54
- margin-top: 2em;
55
- }
56
- }
57
- /* stylelint-enable selector-max-compound-selectors */
58
- /* stylelint-enable max-nesting-depth */
59
- }
60
- }
61
- }
62
- }
63
- }
64
- @include mixins.media($from:$sm-md) {
65
- .hamburger {
66
- display: none;
67
- }
68
-
69
- .wrapper {
70
- display: grid;
71
- grid-template-areas: "title menu cta";
72
- grid-template-columns: 200px 1fr 200px;
73
- }
74
-
75
- .title {
76
- //background: var(--main1);
77
- grid-area: title;
78
- justify-content: flex-start;
79
- }
80
-
81
- .menu {
82
- //background: var(--main2);
83
- grid-area: menu;
84
-
85
- ul {
86
- display: flex;
87
- justify-content: center;
88
- list-style: none;
89
- padding: 0;
90
- width: 100%;
91
-
92
- /* stylelint-disable selector-max-compound-selectors -- required */
93
- li {
94
- + li {
95
- margin-left: 2em;
96
- }
97
- }
98
- /* stylelint-enable selector-max-compound-selectors */
99
- }
100
- }
101
-
102
- .cta {
103
- //background: var(--secondary1);
104
- grid-area: cta;
105
- justify-content: flex-end;
106
- }
107
-
108
- .title,
109
- .menu,
110
- .cta {
111
- align-items: center;
112
- display: flex;
113
- padding: $default-desktop-padding/2 $default-desktop-padding;
114
- }
115
- }
116
- }
117
-
118
-
@@ -1,107 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import { useLayoutEffect } from 'react'
5
-
6
- import PropTypes from 'prop-types'
7
-
8
- import styleNames from '@pareto-engineering/bem'
9
-
10
- import { SVG } from 'ui/a'
11
-
12
- // Local Definitions
13
-
14
- const baseClassName = styleNames.base
15
-
16
- const componentClassName = 'onboarding-step'
17
-
18
- /**
19
- * This is the component description.
20
- */
21
- const SiteOnboardingStep = ({
22
- id,
23
- className:userClassName,
24
- style,
25
- color,
26
- stepMap,
27
- // ...otherProps
28
- }) => {
29
- useLayoutEffect(() => {
30
- import('./styles.scss')
31
- }, [])
32
-
33
- return (
34
- <div
35
- id={id}
36
- className={[
37
- baseClassName,
38
- componentClassName,
39
- userClassName,
40
- `y-${color}`,
41
- 'u2',
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={style}
46
- // {...otherProps}
47
- >
48
- {stepMap.map((step) => (
49
- <div key={step.index} className="y-background b-y content s0 md-s1 v1">
50
- <SVG
51
- className="m-v"
52
- height="10em"
53
- target={step.svgTarget}
54
- sprite="/illustrations.sprite.svg"
55
- />
56
- <span className="index uc mb-v">{step.index}</span>
57
- <span className="title uc mb-v">
58
- <strong>
59
- {step.title}
60
- </strong>
61
- </span>
62
- <p className="description uc">
63
- {step.description}
64
- </p>
65
- </div>
66
- ))}
67
- </div>
68
- )
69
- }
70
-
71
- SiteOnboardingStep.propTypes = {
72
- /**
73
- * The HTML id for this element
74
- */
75
- id:PropTypes.string,
76
-
77
- /**
78
- * The HTML class names for this element
79
- */
80
- className:PropTypes.string,
81
-
82
- /**
83
- * The background color
84
- */
85
- color:PropTypes.string,
86
-
87
- /**
88
- * The React-written, css properties for this element.
89
- */
90
- style:PropTypes.objectOf(PropTypes.string),
91
-
92
- /**
93
- * The children JSX
94
- */
95
- stepMap:PropTypes.arrayOf(PropTypes.shape({
96
- svgTarget :PropTypes.string.isRequired,
97
- index :PropTypes.string.isRequired,
98
- title :PropTypes.string.isRequired,
99
- description:PropTypes.string.isRequired,
100
- })).isRequired,
101
- }
102
-
103
- SiteOnboardingStep.defaultProps = {
104
- color:'secondary1',
105
- }
106
-
107
- export default SiteOnboardingStep