@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,3 +0,0 @@
1
- import * as React from 'react'
2
-
3
- export default React.createContext({})
@@ -1,60 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
- import { useCallback } from 'react'
4
-
5
- import PropTypes from 'prop-types'
6
-
7
- import { generatePath } from 'react-router-dom'
8
-
9
- import Context from './Context'
10
-
11
- /**
12
- * This is the component description.
13
- */
14
- const BlogContextProvider = ({
15
- urlMap,
16
- children,
17
- // ...otherProps
18
- }) => {
19
- const generateBlogPath = useCallback((key, variables) => generatePath(
20
- urlMap[key],
21
- variables,
22
- ),
23
- [urlMap])
24
-
25
- return (
26
- <Context.Provider value={{
27
- generateBlogPath,
28
- urlMap,
29
- }}
30
- >
31
- { children }
32
- </Context.Provider>
33
- )
34
- }
35
-
36
- BlogContextProvider.propTypes = {
37
- /**
38
- * The hash of urls
39
- */
40
- urlMap:PropTypes.shape({
41
- HOME :PropTypes.string.isRequired,
42
- LIST :PropTypes.string.isRequired,
43
- LIST_PAGINATED :PropTypes.string.isRequired,
44
- LIST_CATEGORY :PropTypes.string.isRequired,
45
- LIST_CATEGORY_PAGINATED:PropTypes.string.isRequired,
46
- SINGLE :PropTypes.string.isRequired,
47
-
48
- }).isRequired,
49
-
50
- /**
51
- * The children JSX
52
- */
53
- children:PropTypes.node,
54
- }
55
-
56
- BlogContextProvider.defaultProps = {
57
- // someProp:false
58
- }
59
-
60
- export default BlogContextProvider
@@ -1,4 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as BlogContext } from './Context'
3
- export { default as BlogContextProvider } from './ContextProvider'
4
- export { default as useBlog } from './useBlog'
@@ -1,4 +0,0 @@
1
- import { useContext } from 'react'
2
- import Context from './Context'
3
-
4
- export default () => useContext(Context)
@@ -1,161 +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 format from 'date-fns/format'
11
-
12
- import { Title } from 'ui/b'
13
-
14
- import { BlogCategoryButton } from '../BlogCategoryButton'
15
-
16
- // Local Definitions
17
-
18
- const baseClassName = styleNames.base
19
-
20
- const componentClassName = 'blog-post'
21
-
22
- /**
23
- * This is the component description.
24
- */
25
- const BlogPost = ({
26
- id,
27
- className:userClassName,
28
- style,
29
- title,
30
- // slug,
31
- description,
32
- content,
33
- mainImage,
34
- author,
35
- category = {},
36
- // itemType
37
- // wordCount,
38
- publishedOn,
39
- // updatedAt,
40
- // ...otherProps
41
- }) => {
42
- useLayoutEffect(() => {
43
- import('./styles.scss')
44
- }, [])
45
-
46
- return (
47
- <div
48
- id={id}
49
- className={[
50
-
51
- baseClassName,
52
-
53
- componentClassName,
54
- userClassName,
55
- ]
56
- .filter((e) => e)
57
- .join(' ')}
58
- style={style}
59
- // {...otherProps}
60
- >
61
- <div
62
- className="y-red b-y uc article-head ph-u pv-v v4 md-v6"
63
- >
64
- <div className="v2 mv-v">
65
- <BlogCategoryButton
66
- categorySlug={category.slug}
67
- className="s-1"
68
- >
69
- { category.name }
70
- </BlogCategoryButton>
71
- </div>
72
- <Title
73
- heading={title}
74
- subtitle={description}
75
- subtitleClassName="x-subtitle c-x"
76
- />
77
- <p className="x-metadata c-x v2 mt-v">
78
-
79
- { 'Published on ' }
80
- { format(
81
- new Date(publishedOn),
82
- 'MMMM do, yyyy',
83
- ) }
84
- .
85
- </p>
86
- <p className="x-metadata c-x v1 mt-v">
87
-
88
- {`${author.firstName} ${author.lastName}`}
89
- </p>
90
- </div>
91
- <div className="article-illustration v4 md-v6 mb-v">
92
- <img src={mainImage} alt={description} />
93
- </div>
94
- <div dangerouslySetInnerHTML={{ __html: content }} className="article-body p-u s0 md-s1" />
95
-
96
- </div>
97
- )
98
- }
99
-
100
- BlogPost.propTypes = {
101
- /**
102
- * The HTML id for this element
103
- */
104
- id:PropTypes.string,
105
-
106
- /**
107
- * The HTML class names for this element
108
- */
109
- className:PropTypes.string,
110
-
111
- /**
112
- * The React-written, css properties for this element.
113
- */
114
- style:PropTypes.objectOf(PropTypes.string),
115
-
116
- /**
117
- * The title of this blog post
118
- */
119
- title:PropTypes.string.isRequired,
120
-
121
- /**
122
- * The description of this blog post
123
- */
124
- description:PropTypes.string.isRequired,
125
-
126
- /**
127
- * The content of this blog post
128
- */
129
- content:PropTypes.string.isRequired,
130
-
131
- /**
132
- * The link to the main image of this blog post
133
- */
134
- mainImage:PropTypes.string.isRequired,
135
-
136
- /**
137
- * The first and last name of the article's author
138
- */
139
- author:PropTypes.shape({
140
- firstName:PropTypes.string.isRequired,
141
- lastName :PropTypes.string.isRequired,
142
- }).isRequired,
143
- /**
144
- * The category of this blog post
145
- */
146
- category:PropTypes.shape({
147
- name:PropTypes.string.isRequired,
148
- slug:PropTypes.string.isRequired,
149
- }).isRequired,
150
-
151
- /**
152
- * The date this blog post was published
153
- */
154
- publishedOn:PropTypes.string.isRequired,
155
- }
156
-
157
- BlogPost.defaultProps = {
158
- // someProp:false
159
- }
160
-
161
- export default BlogPost
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as BlogPost } from './BlogPost'
@@ -1,33 +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
-
8
- .#{bem.$base}.blog-post {
9
- .article-body {
10
- p {
11
- line-height: var(--s3);
12
- text-align: justify;
13
- }
14
- }
15
-
16
- .article-illustration {
17
- height: 13em;
18
-
19
- img {
20
- height: 100%;
21
- object-fit: cover;
22
- width: 100%;
23
- }
24
- }
25
-
26
- @include mixins.media($from:$sm-md) {
27
- .article-illustration {
28
- height: 22em;
29
- }
30
- }
31
- }
32
-
33
-
@@ -1,81 +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 { Card } from './common'
11
-
12
- // Local Definitions
13
-
14
- const baseClassName = styleNames.base
15
-
16
- const componentClassName = 'blog-posts-list'
17
-
18
- /**
19
- * This is the component description.
20
- */
21
- const BlogPostsList = ({
22
- id,
23
- className:userClassName,
24
- style,
25
- children,
26
- // ...otherProps
27
- }) => {
28
- useLayoutEffect(() => {
29
- import('./styles.scss')
30
- }, [])
31
-
32
- return (
33
- <div
34
- id={id}
35
- className={[
36
-
37
- baseClassName,
38
-
39
- componentClassName,
40
- userClassName,
41
- 'u1',
42
- ]
43
- .filter((e) => e)
44
- .join(' ')}
45
- style={style}
46
- // {...otherProps}
47
- >
48
- {children}
49
- </div>
50
- )
51
- }
52
-
53
- BlogPostsList.propTypes = {
54
- /**
55
- * The HTML id for this element
56
- */
57
- id:PropTypes.string,
58
-
59
- /**
60
- * The HTML class names for this element
61
- */
62
- className:PropTypes.string,
63
-
64
- /**
65
- * The React-written, css properties for this element.
66
- */
67
- style:PropTypes.objectOf(PropTypes.string),
68
-
69
- /**
70
- * The children JSX
71
- */
72
- children:PropTypes.node,
73
- }
74
-
75
- BlogPostsList.defaultProps = {
76
- // someProp:false
77
- }
78
-
79
- BlogPostsList.Card = Card
80
-
81
- export default BlogPostsList
@@ -1,195 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react'
3
-
4
- import PropTypes from 'prop-types'
5
-
6
- import styleNames from '@pareto-engineering/bem'
7
-
8
- import { Link } from 'react-router-dom'
9
-
10
- import format from 'date-fns/format'
11
-
12
- // TODO need to be imported from a common dir instread
13
- import { useBlog } from '../../../BlogContext'
14
- import { BlogCategoryButton } from '../../../BlogCategoryButton'
15
-
16
- // Local Definitions
17
-
18
- const baseClassName = styleNames.base
19
-
20
- const componentClassName = 'article-card'
21
-
22
- const wordsPerMinute = 230
23
-
24
- /**
25
- * This is the component description.
26
- */
27
- const Card = ({
28
- id,
29
- className:userClassName,
30
- style,
31
-
32
- title,
33
- slug,
34
- description,
35
- mainImage,
36
- author,
37
- category,
38
- wordCount,
39
- publishedOn,
40
-
41
- color,
42
- size,
43
-
44
- ...otherProps
45
- }) => {
46
- const {
47
- generateBlogPath,
48
- } = useBlog()
49
-
50
- return (
51
- <div
52
- id={id}
53
- className={[
54
-
55
- baseClassName,
56
-
57
- componentClassName,
58
- userClassName,
59
- `y-${color}`,
60
- `size-${size}`,
61
- ]
62
- .filter((e) => e)
63
- .join(' ')}
64
- style={style}
65
- {...otherProps}
66
- >
67
- <div className="header">
68
- <span>
69
- { format(
70
- new Date(publishedOn),
71
- 'MMMM do, yyyy',
72
- ) }
73
- </span>
74
- { category
75
- && (
76
- <BlogCategoryButton className="s-1" categorySlug={category.slug}>
77
- { category.name }
78
- </BlogCategoryButton>
79
- )}
80
- </div>
81
- <div className="illustration">
82
- <img src={mainImage} alt={description} />
83
- </div>
84
- <div className="title">
85
- <Link to={generateBlogPath(
86
- 'SINGLE',
87
- {
88
- slug,
89
- },
90
- )}
91
- >
92
- <p className="h3">
93
- {title}
94
- </p>
95
- </Link>
96
-
97
- </div>
98
- <div className={styleNames.elementContent}>
99
- { description
100
- && (
101
- <p>
102
- { description }
103
- </p>
104
- )}
105
- { wordCount
106
- && (
107
- <p className="word-count">
108
- Reading Time :
109
- {' '}
110
- { Math.floor(wordCount / wordsPerMinute) }
111
- {' '}
112
- minutes.
113
- </p>
114
- )}
115
- </div>
116
- </div>
117
- )
118
- }
119
-
120
- Card.propTypes = {
121
- /**
122
- * The HTML id for this element
123
- */
124
- id:PropTypes.string,
125
-
126
- /**
127
- * The HTML class names for this element
128
- */
129
- className:PropTypes.string,
130
-
131
- /**
132
- * The React-written, css properties for this element.
133
- */
134
- style:PropTypes.objectOf(PropTypes.string),
135
-
136
- /**
137
- * The article title
138
- */
139
- title :PropTypes.string.isRequired,
140
- /**
141
- * String of characters that uniquely identify the article
142
- */
143
- slug :PropTypes.string.isRequired,
144
- /**
145
- * The article description
146
- */
147
- description:PropTypes.string.isRequired,
148
- /**
149
- * The article image
150
- */
151
- mainImage :PropTypes.string,
152
- /**
153
- * The first and last name of the article's author
154
- */
155
- author :PropTypes.shape({
156
- firstName:PropTypes.string.isRequired,
157
- lastName :PropTypes.string.isRequired,
158
- }).isRequired,
159
-
160
- /**
161
- * The category of the article
162
- */
163
- category:PropTypes.shape({
164
- name:PropTypes.string.isRequired,
165
- slug:PropTypes.string.isRequired,
166
- }),
167
- /**
168
- * Number of words in the article
169
- */
170
- wordCount :PropTypes.string,
171
- /**
172
- * The date when the article was published
173
- */
174
- publishedOn:PropTypes.string.isRequired,
175
-
176
- /**
177
- * The card color
178
- */
179
- color:PropTypes.string,
180
-
181
- /**
182
- * The card size
183
- */
184
- size:PropTypes.oneOf([
185
- 'sm',
186
- 'lg',
187
- ]),
188
-
189
- }
190
-
191
- Card.defaultProps = {
192
- color:'background',
193
- }
194
-
195
- export default Card