@pareto-engineering/design-system 2.0.0-alpha.2 → 2.0.0-alpha.6
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.
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +16 -29
- package/dist/cjs/a/AnimatedCounter/styles.scss +3 -11
- package/dist/cjs/a/Conversation/styles.scss +2 -0
- package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
- package/dist/cjs/a/GradientBackground/index.js +15 -0
- package/dist/cjs/a/GradientBackground/styles.scss +191 -0
- package/dist/cjs/a/People/People.js +15 -7
- package/dist/cjs/a/People/common/Person/Person.js +11 -4
- package/dist/cjs/a/People/styles.scss +13 -15
- package/dist/cjs/a/Shapes/Shapes.js +163 -0
- package/dist/cjs/a/{RatingsInput/common/Rating → Shapes}/index.js +3 -3
- package/dist/cjs/a/Shapes/styles.scss +222 -0
- package/dist/cjs/a/TeamInfo/styles.scss +2 -2
- package/dist/cjs/a/index.js +9 -1
- package/dist/cjs/b/Button/styles.scss +38 -19
- package/dist/cjs/{a/RatingsInput/RatingsInput.js → b/Metrics/Metrics.js} +30 -29
- package/dist/cjs/{a/RatingsInput → b/Metrics}/index.js +3 -3
- package/dist/cjs/b/Metrics/styles.scss +91 -0
- package/dist/cjs/b/Page/common/Section/Section.js +42 -5
- package/dist/cjs/b/Page/styles.scss +8 -2
- package/dist/cjs/b/QuestionDropdown/styles.scss +1 -1
- package/dist/cjs/b/index.js +9 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/cjs/experimental/GradientBackground/GradientBackground.js +98 -0
- package/dist/cjs/experimental/GradientBackground/index.js +15 -0
- package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
- package/dist/cjs/experimental/index.js +13 -0
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
- package/dist/cjs/f/fields/SelectInput/styles.scss +3 -3
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +2 -2
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +4 -0
- package/dist/cjs/f/fields/TextInput/styles.scss +3 -3
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/cjs/form.scss +1 -1
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +17 -30
- package/dist/es/a/AnimatedCounter/styles.scss +3 -11
- package/dist/es/a/Conversation/styles.scss +2 -0
- package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
- package/dist/es/a/GradientBackground/index.js +2 -0
- package/dist/es/a/GradientBackground/styles.scss +191 -0
- package/dist/es/a/People/People.js +14 -7
- package/dist/es/a/People/common/Person/Person.js +11 -4
- package/dist/es/a/People/styles.scss +13 -15
- package/dist/es/a/Shapes/Shapes.js +141 -0
- package/dist/es/a/{RatingsInput/common/Rating → Shapes}/index.js +1 -1
- package/dist/es/a/Shapes/styles.scss +222 -0
- package/dist/es/a/TeamInfo/styles.scss +2 -2
- package/dist/es/a/index.js +2 -1
- package/dist/es/b/Button/styles.scss +38 -19
- package/dist/es/b/Metrics/Metrics.js +72 -0
- package/dist/es/b/Metrics/index.js +2 -0
- package/dist/es/b/Metrics/styles.scss +91 -0
- package/dist/es/b/Page/common/Section/Section.js +41 -4
- package/dist/es/b/Page/styles.scss +8 -2
- package/dist/es/b/QuestionDropdown/styles.scss +1 -1
- package/dist/es/b/index.js +2 -1
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +1 -1
- package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
- package/dist/es/experimental/GradientBackground/index.js +2 -0
- package/dist/es/experimental/GradientBackground/styles.scss +64 -0
- package/dist/es/experimental/index.js +1 -0
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
- package/dist/es/f/fields/SelectInput/styles.scss +3 -3
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +2 -2
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +4 -0
- package/dist/es/f/fields/TextInput/styles.scss +3 -3
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/es/form.scss +1 -1
- package/package.json +3 -3
- package/src/__snapshots__/Storyshots.test.js.snap +3654 -339
- package/src/local.scss +3 -0
- package/src/stories/a/AnimatedCounter.stories.jsx +9 -5
- package/src/stories/a/ContentCard.stories.jsx +1 -1
- package/src/stories/a/Conversation.stories.jsx +1 -1
- package/src/stories/a/People.stories.jsx +25 -1
- package/src/stories/a/ProgressBar.stories.jsx +1 -1
- package/src/stories/a/Quote.stories.jsx +1 -1
- package/src/stories/a/Shapes.stories.jsx +125 -0
- package/src/stories/a/Spinner.stories.jsx +1 -1
- package/src/stories/b/Button.stories.jsx +57 -51
- package/src/stories/b/Metrics.stories.jsx +62 -0
- package/src/stories/b/Page.stories.jsx +27 -1
- package/src/stories/b/ThemeSelector.stories.jsx +1 -1
- package/src/stories/b/Title.stories.jsx +1 -1
- package/src/stories/c/ContentSlides.stories.jsx +2 -2
- package/src/stories/colors.js +5 -3
- package/src/stories/f/CheckboxInput.stories.jsx +1 -1
- package/src/stories/f/TaskRecommendationInput.stories.jsx +1 -1
- package/src/stories/f/TextInput.stories.jsx +4 -4
- package/src/stories/f/TextareaInput.stories.jsx +2 -2
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +21 -27
- package/src/ui/a/AnimatedCounter/styles.scss +3 -11
- package/src/ui/a/Conversation/styles.scss +2 -0
- package/src/ui/a/People/People.jsx +12 -4
- package/src/ui/a/People/common/Person/Person.jsx +7 -1
- package/src/ui/a/People/styles.scss +13 -15
- package/src/ui/a/Shapes/Shapes.jsx +181 -0
- package/src/ui/a/Shapes/index.js +2 -0
- package/src/ui/a/Shapes/styles.scss +222 -0
- package/src/ui/a/TeamInfo/styles.scss +2 -2
- package/src/ui/a/index.js +1 -0
- package/src/ui/b/Button/styles.scss +38 -19
- package/src/ui/b/Metrics/Metrics.jsx +93 -0
- package/src/ui/b/Metrics/index.js +2 -0
- package/src/ui/b/Metrics/styles.scss +91 -0
- package/src/ui/b/Page/common/Section/Section.jsx +51 -2
- package/src/ui/b/Page/styles.scss +8 -2
- package/src/ui/b/QuestionDropdown/styles.scss +1 -1
- package/src/ui/b/index.js +1 -0
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +1 -1
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
- package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +2 -2
- package/src/ui/f/fields/SelectInput/styles.scss +3 -3
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +2 -2
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +4 -0
- package/src/ui/f/fields/TextInput/styles.scss +3 -3
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +1 -1
- package/src/ui/form.scss +1 -1
- package/dist/cjs/a/RatingsInput/common/Rating/Rating.js +0 -120
- package/dist/cjs/a/RatingsInput/common/index.js +0 -13
- package/dist/cjs/a/RatingsInput/styles.scss +0 -35
- package/dist/es/a/RatingsInput/RatingsInput.js +0 -72
- package/dist/es/a/RatingsInput/common/Rating/Rating.js +0 -102
- package/dist/es/a/RatingsInput/common/index.js +0 -1
- package/dist/es/a/RatingsInput/index.js +0 -2
- package/dist/es/a/RatingsInput/styles.scss +0 -35
package/src/local.scss
CHANGED
|
@@ -18,13 +18,17 @@ export default {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const Base = () => (
|
|
21
|
-
<AnimatedCounter delay={5} number={100}
|
|
21
|
+
<AnimatedCounter delay={5} number={100.555} after="%" />
|
|
22
22
|
)
|
|
23
23
|
|
|
24
|
-
export const
|
|
25
|
-
<AnimatedCounter delay={5}
|
|
24
|
+
export const Before = () => (
|
|
25
|
+
<AnimatedCounter delay={5} number={100} before="%" />
|
|
26
26
|
)
|
|
27
27
|
|
|
28
|
-
export const
|
|
29
|
-
<AnimatedCounter delay={5}
|
|
28
|
+
export const After = () => (
|
|
29
|
+
<AnimatedCounter delay={5} number={100} after="%" />
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
export const BeforeAndAfter = () => (
|
|
33
|
+
<AnimatedCounter delay={5} number={100} before="%" after="+" />
|
|
30
34
|
)
|
|
@@ -103,7 +103,7 @@ export const LayoutRight = () => {
|
|
|
103
103
|
|
|
104
104
|
export const LayoutCenter = () => (
|
|
105
105
|
<div className="u1 p-u" style={{ backgroundColor: 'green' }}>
|
|
106
|
-
<ContentCard color="
|
|
106
|
+
<ContentCard color="background1">
|
|
107
107
|
<ContentCard.Section layout="center" className="p-u">
|
|
108
108
|
<p className="content p-u">
|
|
109
109
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit asperiores facilis,
|
|
@@ -30,7 +30,7 @@ export const Base = () => {
|
|
|
30
30
|
from :'ours',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
message:'Hi Camille, please compile an assesment of top
|
|
33
|
+
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
34
34
|
sender :'HUMBL',
|
|
35
35
|
from :'theirs',
|
|
36
36
|
},
|
|
@@ -23,21 +23,45 @@ export const Base = () => {
|
|
|
23
23
|
image:'https://lh3.googleusercontent.com/a-/AOh14GiVivY1C3gxFz1kjHfih0jzpV08rlIIfMIgBvPs',
|
|
24
24
|
name :'Phoebe Yao',
|
|
25
25
|
role :'Pareto Founder',
|
|
26
|
+
color:'main1',
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
image:'https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Lanie-Col-long.png',
|
|
29
30
|
name :'Lanie Col-long',
|
|
30
31
|
role :'Pareto Partner',
|
|
32
|
+
color:'main3',
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
35
|
image:'https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Camille-Arigo.jpg',
|
|
34
36
|
name :'Camillie Arigo',
|
|
35
37
|
role :'Pareto Partner',
|
|
38
|
+
color:'background4',
|
|
36
39
|
},
|
|
37
40
|
]
|
|
38
41
|
|
|
39
42
|
return (
|
|
40
|
-
<div className="x-
|
|
43
|
+
<div className="x-background1 b-x v1 p-v">
|
|
44
|
+
<People>
|
|
45
|
+
{peopleMap.map((person) => (
|
|
46
|
+
<People.Person key={person.name} {...person} />
|
|
47
|
+
))}
|
|
48
|
+
</People>
|
|
49
|
+
</div>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const OnePerson = () => {
|
|
54
|
+
const peopleMap = [
|
|
55
|
+
{
|
|
56
|
+
image:'https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Camille-Arigo.jpg',
|
|
57
|
+
name :'Camillie Arigo',
|
|
58
|
+
role :'Pareto Partner',
|
|
59
|
+
color:'background4',
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div className="x-background1 b-x v1 p-v">
|
|
41
65
|
<People>
|
|
42
66
|
{peopleMap.map((person) => (
|
|
43
67
|
<People.Person key={person.name} {...person} />
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Shapes } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Shapes',
|
|
8
|
+
component :Shapes,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Shapes.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
verticalAlign :{ control: 'select' },
|
|
17
|
+
horizontalAlign:{ control: 'select' },
|
|
18
|
+
shape :{ control: 'select' },
|
|
19
|
+
height :{ control: 'text' },
|
|
20
|
+
color :{ control: 'text' },
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line react/prop-types
|
|
25
|
+
const Template = ({ color, ...rest }) => (
|
|
26
|
+
<div
|
|
27
|
+
className={`y-${color} b-light-y`}
|
|
28
|
+
style={{
|
|
29
|
+
height:'1000px', position:'relative', overflow:'hidden',
|
|
30
|
+
}}
|
|
31
|
+
>
|
|
32
|
+
<Shapes {...rest} />
|
|
33
|
+
</div>
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
export const Triangle = Template.bind({})
|
|
37
|
+
Triangle.args = {
|
|
38
|
+
height :'30em',
|
|
39
|
+
verticalAlign :'flex-end',
|
|
40
|
+
horizontalAlign:'center',
|
|
41
|
+
color :'background6',
|
|
42
|
+
shape :'triangle',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const HalfEllipses = Template.bind({})
|
|
46
|
+
HalfEllipses.args = {
|
|
47
|
+
height :'25em',
|
|
48
|
+
verticalAlign:'flex-end',
|
|
49
|
+
color :'background3',
|
|
50
|
+
shape :'half-ellipses',
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const Ellipse = Template.bind({})
|
|
54
|
+
Ellipse.args = {
|
|
55
|
+
height :'30em',
|
|
56
|
+
verticalAlign:'flex-end',
|
|
57
|
+
color :'main3',
|
|
58
|
+
shape :'ellipse',
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const HalfEllipse = Template.bind({})
|
|
62
|
+
HalfEllipse.args = {
|
|
63
|
+
height :'25em',
|
|
64
|
+
verticalAlign:'flex-end',
|
|
65
|
+
color :'background3',
|
|
66
|
+
shape :'half-ellipse',
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const Diamonds = Template.bind({})
|
|
70
|
+
Diamonds.args = {
|
|
71
|
+
height :'30em',
|
|
72
|
+
verticalAlign:'flex-end',
|
|
73
|
+
color :'background4',
|
|
74
|
+
shape :'diamonds',
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const Rectangles = Template.bind({})
|
|
78
|
+
Rectangles.args = {
|
|
79
|
+
height :'30em',
|
|
80
|
+
verticalAlign:'flex-end',
|
|
81
|
+
color :'background5',
|
|
82
|
+
shape :'rectangles',
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const Circle = Template.bind({})
|
|
86
|
+
Circle.args = {
|
|
87
|
+
height :'30em',
|
|
88
|
+
verticalAlign:'flex-end',
|
|
89
|
+
color :'background5',
|
|
90
|
+
shape :'circle',
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const HalfCircle = Template.bind({})
|
|
94
|
+
HalfCircle.args = {
|
|
95
|
+
height :'30em',
|
|
96
|
+
verticalAlign:'flex-end',
|
|
97
|
+
color :'background4',
|
|
98
|
+
shape :'half-circle',
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const Ellipses = Template.bind({})
|
|
102
|
+
Ellipses.args = {
|
|
103
|
+
height :'30em',
|
|
104
|
+
verticalAlign:'flex-end',
|
|
105
|
+
color :'background4',
|
|
106
|
+
shape :'ellipses',
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export const Spiral = Template.bind({})
|
|
110
|
+
Spiral.args = {
|
|
111
|
+
height :'100em',
|
|
112
|
+
verticalAlign :'center',
|
|
113
|
+
horizontalAlign:'center',
|
|
114
|
+
color :'background6',
|
|
115
|
+
shape :'spiral',
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export const RotatedEllipses = Template.bind({})
|
|
119
|
+
RotatedEllipses.args = {
|
|
120
|
+
height :'60em',
|
|
121
|
+
verticalAlign :'center',
|
|
122
|
+
horizontalAlign:'center',
|
|
123
|
+
color :'background5',
|
|
124
|
+
shape :'rotated-ellipses',
|
|
125
|
+
}
|
|
@@ -14,65 +14,71 @@ export default {
|
|
|
14
14
|
// storyfn => <div className="">{ storyfn() }</div>,
|
|
15
15
|
],
|
|
16
16
|
argTypes:{
|
|
17
|
-
|
|
18
|
-
disabled:{ control: 'boolean' },
|
|
17
|
+
color :{ control: { type: 'select', options: ALL_COLORS } },
|
|
18
|
+
disabled:{ control: { type: 'boolean' } },
|
|
19
|
+
isGhost :{ control: { type: 'boolean' } },
|
|
20
|
+
isSimple:{ control: { type: 'boolean' } },
|
|
19
21
|
},
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
const SingleTemplate = (args) => <Button {...args} />
|
|
23
25
|
|
|
24
|
-
export const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
export const Base = SingleTemplate.bind({})
|
|
27
|
+
Base.args = {
|
|
28
|
+
children:'Sample Button',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const Ghost = SingleTemplate.bind({})
|
|
32
|
+
Ghost.args = {
|
|
33
|
+
isGhost :true,
|
|
34
|
+
children:'Sample Button',
|
|
35
|
+
}
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
<Button
|
|
32
|
-
|
|
37
|
+
const MultipleTemplate = (args) => ALL_COLORS.map((colorName) => (
|
|
38
|
+
<Button {...args} color={colorName} key={colorName}>
|
|
39
|
+
This is a
|
|
40
|
+
{' '}
|
|
41
|
+
{colorName}
|
|
42
|
+
{' '}
|
|
43
|
+
button
|
|
33
44
|
</Button>
|
|
34
|
-
)
|
|
45
|
+
))
|
|
35
46
|
|
|
36
|
-
export const
|
|
37
|
-
<>
|
|
38
|
-
{ALL_COLORS.map((colorName) => (
|
|
39
|
-
<Button {...props} color={colorName} key={colorName}>
|
|
40
|
-
This is a
|
|
41
|
-
{' '}
|
|
42
|
-
{colorName}
|
|
43
|
-
{' '}
|
|
44
|
-
button
|
|
45
|
-
</Button>
|
|
46
|
-
))}
|
|
47
|
-
</>
|
|
48
|
-
)
|
|
47
|
+
export const Normal = MultipleTemplate.bind({})
|
|
49
48
|
|
|
50
|
-
export const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
This is a
|
|
55
|
-
{' '}
|
|
56
|
-
{colorName}
|
|
57
|
-
{' '}
|
|
58
|
-
button
|
|
59
|
-
</Button>
|
|
60
|
-
))}
|
|
61
|
-
</>
|
|
62
|
-
)
|
|
49
|
+
export const Ghosts = MultipleTemplate.bind({})
|
|
50
|
+
Ghosts.args = {
|
|
51
|
+
isGhost:true,
|
|
52
|
+
}
|
|
63
53
|
|
|
64
|
-
export const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
)
|
|
54
|
+
export const Simple = MultipleTemplate.bind({})
|
|
55
|
+
Simple.args = {
|
|
56
|
+
isSimple:true,
|
|
57
|
+
}
|
|
69
58
|
|
|
70
|
-
export const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
export const Compact = MultipleTemplate.bind({})
|
|
60
|
+
Compact.args = {
|
|
61
|
+
isCompact:true,
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const Disabled = MultipleTemplate.bind({})
|
|
65
|
+
Disabled.args = {
|
|
66
|
+
disabled:true,
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const GhostDisabled = MultipleTemplate.bind({})
|
|
70
|
+
GhostDisabled.args = {
|
|
71
|
+
isGhost :true,
|
|
72
|
+
disabled:true,
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const SimpleDisabled = MultipleTemplate.bind({})
|
|
76
|
+
SimpleDisabled.args = {
|
|
77
|
+
isSimple:true,
|
|
78
|
+
disabled:true,
|
|
79
|
+
}
|
|
75
80
|
|
|
76
|
-
export const Loading = (
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
export const Loading = MultipleTemplate.bind({})
|
|
82
|
+
Loading.args = {
|
|
83
|
+
isLoading:true,
|
|
84
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Metrics } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'b/Metrics',
|
|
8
|
+
component :Metrics,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Metrics.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
|
+
const items = [
|
|
22
|
+
{
|
|
23
|
+
circleColor:'success',
|
|
24
|
+
color :'black',
|
|
25
|
+
delay :'2',
|
|
26
|
+
number :'75',
|
|
27
|
+
after :'%',
|
|
28
|
+
before :'+',
|
|
29
|
+
description:'Merchandise sell-though rate during tour',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
circleColor:'warning',
|
|
33
|
+
color :'black',
|
|
34
|
+
delay :'2',
|
|
35
|
+
number :'250',
|
|
36
|
+
after :'K',
|
|
37
|
+
description:'Stat or metric growth',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
circleColor:'navlink',
|
|
41
|
+
color :'black',
|
|
42
|
+
delay :'2',
|
|
43
|
+
number :'11710',
|
|
44
|
+
before :'+',
|
|
45
|
+
description:'Stat or metric growth',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
circleColor:'error',
|
|
49
|
+
color :'black',
|
|
50
|
+
delay :'2',
|
|
51
|
+
number :'0.28',
|
|
52
|
+
before :'$',
|
|
53
|
+
description:'Merchandise sell-though rate during tour',
|
|
54
|
+
},
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<Metrics
|
|
59
|
+
items={items}
|
|
60
|
+
/>
|
|
61
|
+
)
|
|
62
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.0 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { Page } from 'ui'
|
|
4
|
+
import { Page, Quote } from 'ui'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title :'b/Page',
|
|
@@ -57,3 +57,29 @@ export const WithSections = () => (
|
|
|
57
57
|
</Page.Section>
|
|
58
58
|
</Page>
|
|
59
59
|
)
|
|
60
|
+
|
|
61
|
+
export const SectionsWithBackground = () => (
|
|
62
|
+
<Page
|
|
63
|
+
id="with-sections"
|
|
64
|
+
>
|
|
65
|
+
<Page.Section
|
|
66
|
+
id="s1"
|
|
67
|
+
backgroundShape="triangle"
|
|
68
|
+
backgroundHeight="30em"
|
|
69
|
+
backgroundVerticalAlign="flex-end"
|
|
70
|
+
backgroundHorizontalAlign="center"
|
|
71
|
+
className="y-success b-light-y"
|
|
72
|
+
style={{
|
|
73
|
+
height :'30em',
|
|
74
|
+
display :'flex',
|
|
75
|
+
justifyContent:'center',
|
|
76
|
+
alignItems :'center',
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
<Quote author="Austen Spoonts" color="paragraph">
|
|
80
|
+
Pareto was like having a full-time employee without having to hire somebody.
|
|
81
|
+
That’s how I would explain it. An on-call, on-demand full-time employee.
|
|
82
|
+
</Quote>
|
|
83
|
+
</Page.Section>
|
|
84
|
+
</Page>
|
|
85
|
+
)
|
|
@@ -36,7 +36,7 @@ export const WithSubtitle = (props) => (
|
|
|
36
36
|
export const Sizes = (props) => (
|
|
37
37
|
['h1', 'h2', 'h3', 'h4', 'h5'].map((size) => (
|
|
38
38
|
<div className="u2 pv-u" key={size}>
|
|
39
|
-
<div className="y-
|
|
39
|
+
<div className="y-background2 b-dark-y">
|
|
40
40
|
<Title
|
|
41
41
|
heading={`This is a title in ${size}`}
|
|
42
42
|
headingAs={size}
|
|
@@ -74,7 +74,7 @@ export const Base = () => {
|
|
|
74
74
|
|
|
75
75
|
return (
|
|
76
76
|
<div className={`ui-${userTheme}`} style={{ height: '100%' }}>
|
|
77
|
-
<ContentSlides className="y-
|
|
77
|
+
<ContentSlides className="y-background1" steps={steps}>
|
|
78
78
|
<ContentSlides.Sidebar
|
|
79
79
|
header={(
|
|
80
80
|
<Logo color="paragraph" />
|
|
@@ -341,7 +341,7 @@ export const Simple = () => {
|
|
|
341
341
|
)
|
|
342
342
|
}
|
|
343
343
|
return (
|
|
344
|
-
<ContentSlides className="y-
|
|
344
|
+
<ContentSlides className="y-background1" steps={steps} simple>
|
|
345
345
|
<Main />
|
|
346
346
|
</ContentSlides>
|
|
347
347
|
)
|
package/src/stories/colors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const THEME = [
|
|
2
2
|
'main1',
|
|
3
3
|
'main2',
|
|
4
|
-
'
|
|
5
|
-
'
|
|
4
|
+
'main3',
|
|
5
|
+
'main4',
|
|
6
6
|
]
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -27,10 +27,12 @@ const MODALS = [
|
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
const UI = [
|
|
30
|
-
'
|
|
30
|
+
'background1',
|
|
31
31
|
'background2',
|
|
32
32
|
'background3',
|
|
33
33
|
'background4',
|
|
34
|
+
'background5',
|
|
35
|
+
'background6',
|
|
34
36
|
'heading',
|
|
35
37
|
'paragraph',
|
|
36
38
|
'subtitle',
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export const Base = () => (
|
|
30
|
-
<div className="y-
|
|
30
|
+
<div className="y-background1 b-y">
|
|
31
31
|
<CheckboxInput value="Business to customer" name="businessTypes">Business to customer</CheckboxInput>
|
|
32
32
|
<CheckboxInput value="Business to business" name="businessTypes">Business to business</CheckboxInput>
|
|
33
33
|
<CheckboxInput value="E-commerce" name="businessTypes">E-commerce</CheckboxInput>
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export const Base = () => (
|
|
29
|
-
<div className="y-
|
|
29
|
+
<div className="y-background1 b-y v2 p-v" style={{ height: '100%' }}>
|
|
30
30
|
<TaskRecommendationInput
|
|
31
31
|
name="taskRecommendations"
|
|
32
32
|
value="businessTypes"
|
|
@@ -41,19 +41,19 @@ export const Base = () => {
|
|
|
41
41
|
return errorMessage
|
|
42
42
|
}
|
|
43
43
|
return (
|
|
44
|
-
|
|
44
|
+
<div className="y-background1 b-dark-y u2 pb-u">
|
|
45
45
|
<TextInput
|
|
46
46
|
name="firstName"
|
|
47
47
|
label="What's your first name ?"
|
|
48
48
|
validate={validate}
|
|
49
49
|
/>
|
|
50
50
|
<FormDebugger />
|
|
51
|
-
|
|
51
|
+
</div>
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export const DisabledTextInput = () => (
|
|
56
|
-
<div className="y-
|
|
56
|
+
<div className="y-background1 b-dark-y u2 pb-u">
|
|
57
57
|
<TextInput
|
|
58
58
|
name="firstName"
|
|
59
59
|
label="What's your first name ?"
|
|
@@ -63,7 +63,7 @@ export const DisabledTextInput = () => (
|
|
|
63
63
|
)
|
|
64
64
|
|
|
65
65
|
export const DateTime = () => (
|
|
66
|
-
<div className="y-
|
|
66
|
+
<div className="y-background1 b-dark-y">
|
|
67
67
|
<TextInput
|
|
68
68
|
name="date"
|
|
69
69
|
label="Select date"
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const Base = () => (
|
|
32
|
-
<div className="y-
|
|
32
|
+
<div className="y-background1 b-dark-y">
|
|
33
33
|
<TextareaInput
|
|
34
34
|
name="feedBack"
|
|
35
35
|
label="What can we improve on?"
|
|
@@ -38,7 +38,7 @@ export const Base = () => (
|
|
|
38
38
|
</div>
|
|
39
39
|
)
|
|
40
40
|
export const DisabledTextareaInput = () => (
|
|
41
|
-
<div className="y-
|
|
41
|
+
<div className="y-background1 b-dark-y">
|
|
42
42
|
<TextareaInput
|
|
43
43
|
name="feedBack"
|
|
44
44
|
label="What can we improve on?"
|