@pareto-engineering/design-system 2.0.0-alpha.21 → 2.0.0-alpha.25
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/BackgroundGradient/styles.scss +1 -1
- package/dist/cjs/a/Shapes/styles.scss +9 -9
- package/dist/cjs/b/Button/styles.scss +1 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +2 -2
- package/dist/cjs/c/ContentSlides/styles.scss +6 -0
- package/dist/cjs/f/common/Label/styles.scss +1 -1
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +17 -2
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +13 -5
- package/dist/cjs/f/fields/SelectInput/styles.scss +13 -8
- package/dist/cjs/f/fields/TextInput/TextInput.js +10 -3
- package/dist/cjs/f/fields/TextInput/styles.scss +16 -3
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +3 -3
- package/dist/cjs/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/cjs/f/fields/index.js +0 -24
- package/dist/cjs/form-reset.scss +1 -1
- package/dist/es/a/BackgroundGradient/styles.scss +1 -1
- package/dist/es/a/Shapes/styles.scss +9 -9
- package/dist/es/b/Button/styles.scss +1 -1
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +2 -2
- package/dist/es/c/ContentSlides/styles.scss +6 -0
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/ChoicesInput/styles.scss +17 -2
- package/dist/es/f/fields/SelectInput/SelectInput.js +13 -5
- package/dist/es/f/fields/SelectInput/styles.scss +13 -8
- package/dist/es/f/fields/TextInput/TextInput.js +10 -3
- package/dist/es/f/fields/TextInput/styles.scss +16 -3
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +3 -3
- package/dist/es/f/fields/TextareaInput/styles.scss +19 -6
- package/dist/es/f/fields/index.js +0 -3
- package/dist/es/form-reset.scss +1 -1
- package/package.json +2 -2
- package/src/__snapshots__/Storyshots.test.js.snap +124 -378
- package/src/stories/f/SelectInput.stories.jsx +10 -8
- package/src/stories/f/TextInput.stories.jsx +7 -6
- package/src/stories/f/TextareaInput.stories.jsx +4 -4
- package/src/ui/a/BackgroundGradient/styles.scss +1 -1
- package/src/ui/a/Shapes/styles.scss +9 -9
- package/src/ui/b/Button/styles.scss +1 -1
- package/src/ui/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.jsx +2 -2
- package/src/ui/c/ContentSlides/styles.scss +6 -0
- package/src/ui/f/common/Label/styles.scss +1 -1
- package/src/ui/f/fields/ChoicesInput/styles.scss +17 -2
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +10 -1
- package/src/ui/f/fields/SelectInput/styles.scss +13 -8
- package/src/ui/f/fields/TextInput/TextInput.jsx +9 -1
- package/src/ui/f/fields/TextInput/styles.scss +16 -3
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -3
- package/src/ui/f/fields/TextareaInput/styles.scss +19 -6
- package/src/ui/f/fields/index.js +0 -3
- package/src/ui/form-reset.scss +1 -1
- package/dist/cjs/a/GradientBackground/GradientBackground.js +0 -140
- package/dist/cjs/a/GradientBackground/index.js +0 -15
- package/dist/cjs/a/GradientBackground/styles.scss +0 -191
- package/dist/cjs/c/AcceptCookies/AcceptCookies.js +0 -134
- package/dist/cjs/c/AcceptCookies/index.js +0 -15
- package/dist/cjs/c/AcceptCookies/styles.scss +0 -49
- package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +0 -95
- package/dist/cjs/c/BlogCategoryButton/index.js +0 -15
- package/dist/cjs/c/BlogContext/BlogContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/Context.js +0 -16
- package/dist/cjs/c/BlogContext/ContextProvider.js +0 -63
- package/dist/cjs/c/BlogContext/index.js +0 -31
- package/dist/cjs/c/BlogContext/useBlog.js +0 -16
- package/dist/cjs/c/BlogPost/BlogPost.js +0 -147
- package/dist/cjs/c/BlogPost/index.js +0 -15
- package/dist/cjs/c/BlogPost/styles.scss +0 -33
- package/dist/cjs/c/BlogPostsList/BlogPostsList.js +0 -73
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +0 -170
- package/dist/cjs/c/BlogPostsList/common/Card/index.js +0 -15
- package/dist/cjs/c/BlogPostsList/common/index.js +0 -13
- package/dist/cjs/c/BlogPostsList/index.js +0 -15
- package/dist/cjs/c/BlogPostsList/styles.scss +0 -72
- package/dist/cjs/c/SiteFooter/SiteFooter.js +0 -73
- package/dist/cjs/c/SiteFooter/common/Section/Section.js +0 -95
- package/dist/cjs/c/SiteFooter/common/Section/index.js +0 -15
- package/dist/cjs/c/SiteFooter/common/index.js +0 -13
- package/dist/cjs/c/SiteFooter/index.js +0 -15
- package/dist/cjs/c/SiteFooter/styles.scss +0 -34
- package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -108
- package/dist/cjs/c/SiteHeaderCTA/index.js +0 -15
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/cjs/c/SiteMission/SiteMission.js +0 -113
- package/dist/cjs/c/SiteMission/index.js +0 -15
- package/dist/cjs/c/SiteMission/styles.scss +0 -30
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +0 -130
- package/dist/cjs/c/SiteNavigation/index.js +0 -15
- package/dist/cjs/c/SiteNavigation/styles.scss +0 -118
- package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -98
- package/dist/cjs/c/SiteOnboardingStep/index.js +0 -15
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/cjs/c/SitePricing/SitePricing.js +0 -108
- package/dist/cjs/c/SitePricing/index.js +0 -15
- package/dist/cjs/c/SitePricing/styles.scss +0 -73
- package/dist/cjs/c/SiteServices/SiteServices.js +0 -211
- package/dist/cjs/c/SiteServices/index.js +0 -15
- package/dist/cjs/c/SiteServices/styles.scss +0 -138
- package/dist/cjs/c/TeamGallery/TeamGallery.js +0 -80
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +0 -84
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +0 -15
- package/dist/cjs/c/TeamGallery/common/index.js +0 -13
- package/dist/cjs/c/TeamGallery/index.js +0 -15
- package/dist/cjs/c/TeamGallery/styles.scss +0 -100
- package/dist/cjs/c/Testimonials/Testimonials.js +0 -119
- package/dist/cjs/c/Testimonials/index.js +0 -15
- package/dist/cjs/c/Testimonials/styles.scss +0 -112
- package/dist/cjs/experimental/GradientBackground/GradientBackground.js +0 -98
- package/dist/cjs/experimental/GradientBackground/index.js +0 -15
- package/dist/cjs/experimental/GradientBackground/styles.scss +0 -64
- package/dist/cjs/experimental/index.js +0 -13
- package/dist/cjs/f/fields/CheckboxInput/CheckboxInput.js +0 -105
- package/dist/cjs/f/fields/CheckboxInput/index.js +0 -15
- package/dist/cjs/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/cjs/f/fields/RadioInput/RadioInput.js +0 -110
- package/dist/cjs/f/fields/RadioInput/index.js +0 -15
- package/dist/cjs/f/fields/RadioInput/styles.scss +0 -26
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +0 -129
- package/dist/cjs/f/fields/TaskRecommendation/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -131
- package/dist/cjs/f/fields/TaskRecommendationInput/index.js +0 -15
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/cjs/f/fields/TextArea/TextArea.js +0 -141
- package/dist/cjs/f/fields/TextArea/index.js +0 -15
- package/dist/cjs/f/fields/TextArea/styles.scss +0 -19
- package/dist/es/a/GradientBackground/GradientBackground.js +0 -118
- package/dist/es/a/GradientBackground/index.js +0 -2
- package/dist/es/a/GradientBackground/styles.scss +0 -191
- package/dist/es/c/AcceptCookies/AcceptCookies.js +0 -117
- package/dist/es/c/AcceptCookies/index.js +0 -2
- package/dist/es/c/AcceptCookies/styles.scss +0 -49
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +0 -68
- package/dist/es/c/BlogCategoryButton/index.js +0 -2
- package/dist/es/c/BlogContext/BlogContextProvider.js +0 -45
- package/dist/es/c/BlogContext/Context.js +0 -2
- package/dist/es/c/BlogContext/ContextProvider.js +0 -45
- package/dist/es/c/BlogContext/index.js +0 -4
- package/dist/es/c/BlogContext/useBlog.js +0 -3
- package/dist/es/c/BlogPost/BlogPost.js +0 -128
- package/dist/es/c/BlogPost/index.js +0 -2
- package/dist/es/c/BlogPost/styles.scss +0 -33
- package/dist/es/c/BlogPostsList/BlogPostsList.js +0 -56
- package/dist/es/c/BlogPostsList/common/Card/Card.js +0 -143
- package/dist/es/c/BlogPostsList/common/Card/index.js +0 -2
- package/dist/es/c/BlogPostsList/common/index.js +0 -1
- package/dist/es/c/BlogPostsList/index.js +0 -2
- package/dist/es/c/BlogPostsList/styles.scss +0 -72
- package/dist/es/c/SiteFooter/SiteFooter.js +0 -56
- package/dist/es/c/SiteFooter/common/Section/Section.js +0 -73
- package/dist/es/c/SiteFooter/common/Section/index.js +0 -2
- package/dist/es/c/SiteFooter/common/index.js +0 -1
- package/dist/es/c/SiteFooter/index.js +0 -2
- package/dist/es/c/SiteFooter/styles.scss +0 -34
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +0 -92
- package/dist/es/c/SiteHeaderCTA/index.js +0 -2
- package/dist/es/c/SiteHeaderCTA/styles.scss +0 -44
- package/dist/es/c/SiteMission/SiteMission.js +0 -96
- package/dist/es/c/SiteMission/index.js +0 -2
- package/dist/es/c/SiteMission/styles.scss +0 -30
- package/dist/es/c/SiteNavigation/SiteNavigation.js +0 -111
- package/dist/es/c/SiteNavigation/index.js +0 -2
- package/dist/es/c/SiteNavigation/styles.scss +0 -118
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +0 -81
- package/dist/es/c/SiteOnboardingStep/index.js +0 -2
- package/dist/es/c/SiteOnboardingStep/styles.scss +0 -51
- package/dist/es/c/SitePricing/SitePricing.js +0 -91
- package/dist/es/c/SitePricing/index.js +0 -2
- package/dist/es/c/SitePricing/styles.scss +0 -73
- package/dist/es/c/SiteServices/SiteServices.js +0 -195
- package/dist/es/c/SiteServices/index.js +0 -2
- package/dist/es/c/SiteServices/styles.scss +0 -138
- package/dist/es/c/TeamGallery/TeamGallery.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +0 -64
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +0 -2
- package/dist/es/c/TeamGallery/common/index.js +0 -1
- package/dist/es/c/TeamGallery/index.js +0 -2
- package/dist/es/c/TeamGallery/styles.scss +0 -100
- package/dist/es/c/Testimonials/Testimonials.js +0 -99
- package/dist/es/c/Testimonials/index.js +0 -2
- package/dist/es/c/Testimonials/styles.scss +0 -112
- package/dist/es/experimental/GradientBackground/GradientBackground.js +0 -76
- package/dist/es/experimental/GradientBackground/index.js +0 -2
- package/dist/es/experimental/GradientBackground/styles.scss +0 -64
- package/dist/es/experimental/index.js +0 -1
- package/dist/es/f/fields/CheckboxInput/CheckboxInput.js +0 -85
- package/dist/es/f/fields/CheckboxInput/index.js +0 -2
- package/dist/es/f/fields/CheckboxInput/styles.scss +0 -28
- package/dist/es/f/fields/RadioInput/RadioInput.js +0 -90
- package/dist/es/f/fields/RadioInput/index.js +0 -2
- package/dist/es/f/fields/RadioInput/styles.scss +0 -26
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +0 -111
- package/dist/es/f/fields/TaskRecommendation/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendation/styles.scss +0 -37
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +0 -111
- package/dist/es/f/fields/TaskRecommendationInput/index.js +0 -2
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +0 -41
- package/dist/es/f/fields/TextArea/TextArea.js +0 -124
- package/dist/es/f/fields/TextArea/index.js +0 -2
- package/dist/es/f/fields/TextArea/styles.scss +0 -19
- package/src/stories/f/CheckboxInput.stories.jsx +0 -37
- package/src/stories/f/RadioInput.stories.jsx +0 -37
- package/src/stories/f/TaskRecommendationInput.stories.jsx +0 -38
- package/src/ui/f/fields/CheckboxInput/CheckboxInput.jsx +0 -107
- package/src/ui/f/fields/CheckboxInput/index.js +0 -2
- package/src/ui/f/fields/CheckboxInput/styles.scss +0 -28
- package/src/ui/f/fields/RadioInput/RadioInput.jsx +0 -112
- package/src/ui/f/fields/RadioInput/index.js +0 -2
- package/src/ui/f/fields/RadioInput/styles.scss +0 -26
- package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +0 -130
- package/src/ui/f/fields/TaskRecommendationInput/index.js +0 -2
- package/src/ui/f/fields/TaskRecommendationInput/styles.scss +0 -41
|
@@ -13,10 +13,9 @@ export default {
|
|
|
13
13
|
decorators:[
|
|
14
14
|
(storyfn) => (
|
|
15
15
|
<Formik
|
|
16
|
-
initialValues={{ workType: '
|
|
16
|
+
initialValues={{ workType: '' }}
|
|
17
17
|
>
|
|
18
18
|
<Form>
|
|
19
|
-
|
|
20
19
|
{ storyfn() }
|
|
21
20
|
</Form>
|
|
22
21
|
</Formik>
|
|
@@ -32,7 +31,7 @@ export const Base = () => (
|
|
|
32
31
|
<SelectInput
|
|
33
32
|
name="workType"
|
|
34
33
|
label="Work Type"
|
|
35
|
-
options={['Work', 'Managing', 'Training']}
|
|
34
|
+
options={[{ value: '', label: 'Select an option', disabled: true }, 'Work', 'Managing', 'Training']}
|
|
36
35
|
/>
|
|
37
36
|
<FormDebugger />
|
|
38
37
|
</>
|
|
@@ -55,9 +54,7 @@ export const RequiredSelect = () => {
|
|
|
55
54
|
name="activity"
|
|
56
55
|
label="Activity Type"
|
|
57
56
|
options={[
|
|
58
|
-
{
|
|
59
|
-
value:'', label:'Select activity type', disabled:true,
|
|
60
|
-
},
|
|
57
|
+
{ value: '', label: 'Select an option', disabled: true },
|
|
61
58
|
{ value: 'review', label: 'Review' },
|
|
62
59
|
{ value: 'Approve', label: 'Approve' },
|
|
63
60
|
]}
|
|
@@ -73,6 +70,7 @@ export const Objects = () => (
|
|
|
73
70
|
name="workType"
|
|
74
71
|
label="Work Type"
|
|
75
72
|
options={[
|
|
73
|
+
{ value: '', label: 'Select an option', disabled: true },
|
|
76
74
|
{ value: '20th Aug 2020 to 19th Sept, 2020', label: '20th Aug 2020 to 19th Sept, 2020' },
|
|
77
75
|
{ value: '20th Sept 2020 to 19th Oct, 2020', label: '20th Sept 2020 to 19th Oct, 2020' },
|
|
78
76
|
]}
|
|
@@ -86,7 +84,9 @@ export const StringAndObjects = () => (
|
|
|
86
84
|
<SelectInput
|
|
87
85
|
name="workType"
|
|
88
86
|
label="Work Type"
|
|
89
|
-
options={[
|
|
87
|
+
options={[
|
|
88
|
+
{ value: '', label: 'Select an option', disabled: true },
|
|
89
|
+
'Work', 'Managing', 'Training',
|
|
90
90
|
{ value: '20th Aug 2020 to 19th Sept, 2020', label: '20th Aug 2020 to 19th Sept, 2020' },
|
|
91
91
|
{ value: '20th Sept 2020 to 19th Oct, 2020', label: '20th Sept 2020 to 19th Oct, 2020' },
|
|
92
92
|
]}
|
|
@@ -99,7 +99,9 @@ export const DisabledSelectInput = () => (
|
|
|
99
99
|
<SelectInput
|
|
100
100
|
name="workType"
|
|
101
101
|
label="Work Type"
|
|
102
|
-
options={[
|
|
102
|
+
options={[
|
|
103
|
+
{ value: '', label: 'Select an option', disabled: true },
|
|
104
|
+
'Work', 'Managing', 'Training',
|
|
103
105
|
{ value: '20th Aug 2020 to 19th Sept, 2020', label: '20th Aug 2020 to 19th Sept, 2020' },
|
|
104
106
|
{ value: '20th Sept 2020 to 19th Oct, 2020', label: '20th Sept 2020 to 19th Oct, 2020' },
|
|
105
107
|
]}
|
|
@@ -41,7 +41,7 @@ export const Base = () => {
|
|
|
41
41
|
return errorMessage
|
|
42
42
|
}
|
|
43
43
|
return (
|
|
44
|
-
<div className="
|
|
44
|
+
<div className=" u2 pb-u">
|
|
45
45
|
<TextInput
|
|
46
46
|
name="firstName"
|
|
47
47
|
label="What's your first name ?"
|
|
@@ -52,18 +52,19 @@ export const Base = () => {
|
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export const
|
|
56
|
-
<div className="
|
|
55
|
+
export const Placeholder = () => (
|
|
56
|
+
<div className="u2 pb-u">
|
|
57
57
|
<TextInput
|
|
58
58
|
name="firstName"
|
|
59
59
|
label="What's your first name ?"
|
|
60
60
|
placeholder="First Name"
|
|
61
61
|
/>
|
|
62
|
+
<FormDebugger />
|
|
62
63
|
</div>
|
|
63
64
|
)
|
|
64
65
|
|
|
65
|
-
export const
|
|
66
|
-
<div className="
|
|
66
|
+
export const Disabled = () => (
|
|
67
|
+
<div className="u2 pb-u">
|
|
67
68
|
<TextInput
|
|
68
69
|
name="firstName"
|
|
69
70
|
label="What's your first name ?"
|
|
@@ -73,7 +74,7 @@ export const DisabledTextInput = () => (
|
|
|
73
74
|
)
|
|
74
75
|
|
|
75
76
|
export const DateTime = () => (
|
|
76
|
-
<div
|
|
77
|
+
<div>
|
|
77
78
|
<TextInput
|
|
78
79
|
name="date"
|
|
79
80
|
label="Select date"
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const Base = () => (
|
|
32
|
-
<div
|
|
32
|
+
<div>
|
|
33
33
|
<TextareaInput
|
|
34
34
|
name="feedback"
|
|
35
35
|
label="What can we improve on?"
|
|
@@ -39,7 +39,7 @@ export const Base = () => (
|
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
export const Placeholder = () => (
|
|
42
|
-
<div
|
|
42
|
+
<div>
|
|
43
43
|
<TextareaInput
|
|
44
44
|
name="feedback"
|
|
45
45
|
label="What can we improve on?"
|
|
@@ -61,7 +61,7 @@ export const Validation = () => {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
|
-
<div
|
|
64
|
+
<div>
|
|
65
65
|
<TextareaInput
|
|
66
66
|
name="feedback"
|
|
67
67
|
label="What can we improve on?"
|
|
@@ -74,7 +74,7 @@ export const Validation = () => {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export const Disabled = () => (
|
|
77
|
-
<div
|
|
77
|
+
<div>
|
|
78
78
|
<TextareaInput
|
|
79
79
|
name="feedback"
|
|
80
80
|
label="What can we improve on?"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
left: 0;
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: var(--gradient-height);
|
|
10
|
-
background-image: linear-gradient(
|
|
10
|
+
background-image: linear-gradient(var(--background1), var(--y) 25%, var(--light-y) 75%, var(--background1));
|
|
11
11
|
opacity: .4;
|
|
12
12
|
z-index: -1;
|
|
13
13
|
}
|
|
@@ -22,7 +22,7 @@ $default-shapes-opacity:.8;
|
|
|
22
22
|
width: 100%;
|
|
23
23
|
|
|
24
24
|
.triangle {
|
|
25
|
-
background-image: linear-gradient(
|
|
25
|
+
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
26
26
|
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
27
27
|
height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
|
|
28
28
|
opacity: $default-shapes-opacity;
|
|
@@ -30,7 +30,7 @@ $default-shapes-opacity:.8;
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.inverted-triangle {
|
|
33
|
-
background-image: linear-gradient(var(--dark-y),
|
|
33
|
+
background-image: linear-gradient(var(--dark-y), var(--light-y));
|
|
34
34
|
clip-path: polygon(50% 0, 0 100%, 100% 100%);
|
|
35
35
|
height: calc(var(--shape-height, #{$default-triangle-height}) * 0.86);
|
|
36
36
|
opacity: $default-shapes-opacity;
|
|
@@ -117,7 +117,7 @@ $default-shapes-opacity:.8;
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.half-ellipse {
|
|
120
|
-
background-image: radial-gradient(ellipse at center bottom, var(--y) 10%,
|
|
120
|
+
background-image: radial-gradient(ellipse at center bottom, var(--y) 10%, var(--light-y) 65%);
|
|
121
121
|
clip-path: ellipse(60% 100% at 50% 0%);
|
|
122
122
|
height: var(--shape-height, #{$default-ellipse-height});
|
|
123
123
|
opacity: $default-shapes-opacity;
|
|
@@ -147,7 +147,7 @@ $default-shapes-opacity:.8;
|
|
|
147
147
|
width: var(--shape-height, #{$default-ellipse-height});
|
|
148
148
|
|
|
149
149
|
.first {
|
|
150
|
-
background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%,
|
|
150
|
+
background-image: linear-gradient(to top, var(--dark-y), var(--y), var(--light-y) 50%, var(--background1));
|
|
151
151
|
clip-path: ellipse(50% 20% at 50% 60%);
|
|
152
152
|
height: 100%;
|
|
153
153
|
position: absolute;
|
|
@@ -156,7 +156,7 @@ $default-shapes-opacity:.8;
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.second {
|
|
159
|
-
background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%,
|
|
159
|
+
background-image: linear-gradient(to bottom,var(--dark-y), var(--y), var(--light-y) 45%, var(--background1));
|
|
160
160
|
clip-path: ellipse(50% 20% at 50% 40%);
|
|
161
161
|
height: 100%;
|
|
162
162
|
position: absolute;
|
|
@@ -175,7 +175,7 @@ $default-shapes-opacity:.8;
|
|
|
175
175
|
|
|
176
176
|
> * {
|
|
177
177
|
border-radius: 50%;
|
|
178
|
-
background: radial-gradient(ellipse at center bottom
|
|
178
|
+
background: radial-gradient(ellipse at center bottom, var(--dark-y) 10%, var(--light-y) 60%);
|
|
179
179
|
position: absolute;
|
|
180
180
|
opacity: .5;
|
|
181
181
|
}
|
|
@@ -244,12 +244,12 @@ $default-shapes-opacity:.8;
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.left {
|
|
247
|
-
background-image: linear-gradient(to right ,var(--dark-y),var(--y),
|
|
247
|
+
background-image: linear-gradient(to right ,var(--dark-y),var(--y), var(--light-y));
|
|
248
248
|
grid-column: 1 / 5;
|
|
249
249
|
}
|
|
250
250
|
.right {
|
|
251
|
-
background-image: linear-gradient(to left, var(--dark-y), var(--y),
|
|
251
|
+
background-image: linear-gradient(to left, var(--dark-y), var(--y), var(--light-y));
|
|
252
252
|
grid-column: 4 / 8;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
}
|
|
255
|
+
}
|
|
@@ -16,7 +16,7 @@ $default-animation-time: .3s;
|
|
|
16
16
|
color: var(--on-x, var(--on-#{$default-color}));
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
font-family: var(--theme-default-paragraph);
|
|
19
|
-
font-weight:
|
|
19
|
+
font-weight: 400;
|
|
20
20
|
justify-content: space-between;
|
|
21
21
|
padding: $default-padding;
|
|
22
22
|
transition: all .25s;
|
|
@@ -65,13 +65,13 @@ const HorizontalMenu = ({
|
|
|
65
65
|
<div className="left">
|
|
66
66
|
{(!isFirstStep && !hideBackIcon) && (
|
|
67
67
|
<span
|
|
68
|
-
className="
|
|
68
|
+
className="prev-button pointer"
|
|
69
69
|
onClick={mobilePreviousStep}
|
|
70
70
|
role="button"
|
|
71
71
|
onKeyDown={mobilePreviousStep}
|
|
72
72
|
tabIndex={0}
|
|
73
73
|
>
|
|
74
|
-
|
|
74
|
+
{'<--'}
|
|
75
75
|
</span>
|
|
76
76
|
)}
|
|
77
77
|
</div>
|
|
@@ -124,6 +124,11 @@ $mobile-content-margin:6em;
|
|
|
124
124
|
|
|
125
125
|
.left {
|
|
126
126
|
text-align: left;
|
|
127
|
+
|
|
128
|
+
.prev-button {
|
|
129
|
+
font-family: var(--theme-default-paragraph);
|
|
130
|
+
font-size: calc(var(--s2) * 1em);
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
.right {
|
|
@@ -210,6 +215,7 @@ $mobile-content-margin:6em;
|
|
|
210
215
|
|
|
211
216
|
.next {
|
|
212
217
|
flex-grow: 1;
|
|
218
|
+
justify-content: flex-end;
|
|
213
219
|
}
|
|
214
220
|
}
|
|
215
221
|
}
|
|
@@ -29,10 +29,21 @@ $default-transition:all .3s;
|
|
|
29
29
|
z-index: -1;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
input:disabled + label {
|
|
33
|
+
background-color: var(--dark-x);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
input:not(:disabled) + label {
|
|
37
|
+
&:hover {
|
|
38
|
+
border-color: var(--light-y);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
32
42
|
label {
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
border: var(--theme-border-style) var(--dark-x);
|
|
44
|
+
background: var(--light-x);
|
|
35
45
|
color: var(--on-x);
|
|
46
|
+
border-radius: var(--theme-border-radius);
|
|
36
47
|
display: block;
|
|
37
48
|
height: 100%;
|
|
38
49
|
padding: $default-padding;
|
|
@@ -44,6 +55,10 @@ $default-transition:all .3s;
|
|
|
44
55
|
input:checked + label {
|
|
45
56
|
background: var(--y);
|
|
46
57
|
color: var(--on-y);
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
border-color: var(--y);
|
|
61
|
+
}
|
|
47
62
|
}
|
|
48
63
|
}
|
|
49
64
|
}
|
|
@@ -26,6 +26,7 @@ const SelectInput = ({
|
|
|
26
26
|
style,
|
|
27
27
|
name,
|
|
28
28
|
label,
|
|
29
|
+
color,
|
|
29
30
|
options,
|
|
30
31
|
validate,
|
|
31
32
|
description,
|
|
@@ -47,6 +48,7 @@ const SelectInput = ({
|
|
|
47
48
|
|
|
48
49
|
componentClassName,
|
|
49
50
|
userClassName,
|
|
51
|
+
`y-${color}`,
|
|
50
52
|
]
|
|
51
53
|
.filter((e) => e)
|
|
52
54
|
.join(' ')}
|
|
@@ -54,7 +56,7 @@ const SelectInput = ({
|
|
|
54
56
|
// {...otherProps}
|
|
55
57
|
>
|
|
56
58
|
<FormLabel className="input-label" name={name}>{label}</FormLabel>
|
|
57
|
-
<select className="input
|
|
59
|
+
<select className="input" {...field} value={field.value || ''} id={name} disabled={disabled}>
|
|
58
60
|
{
|
|
59
61
|
options.map((option) => {
|
|
60
62
|
// i.e if option is a string like "blah", return { value: "blah", label: "blah" }
|
|
@@ -65,6 +67,7 @@ const SelectInput = ({
|
|
|
65
67
|
key={newOption.value}
|
|
66
68
|
value={newOption.value}
|
|
67
69
|
disabled={newOption?.disabled || false}
|
|
70
|
+
selected={newOption?.disabled || true}
|
|
68
71
|
>
|
|
69
72
|
{newOption.label}
|
|
70
73
|
</option>
|
|
@@ -135,10 +138,16 @@ SelectInput.propTypes = {
|
|
|
135
138
|
* Whether the select input should be disabled
|
|
136
139
|
*/
|
|
137
140
|
disabled:PropTypes.bool,
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The color of the select input
|
|
144
|
+
*/
|
|
145
|
+
color:PropTypes.string,
|
|
138
146
|
}
|
|
139
147
|
|
|
140
148
|
SelectInput.defaultProps = {
|
|
141
149
|
disabled:false,
|
|
150
|
+
color :'background2',
|
|
142
151
|
}
|
|
143
152
|
|
|
144
153
|
export default memo(SelectInput)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@use "../../../form.scss";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
$default-padding: 0.75em
|
|
8
|
+
$default-padding: 0.75em;
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
.#{bem.$base}.select-input {
|
|
@@ -13,17 +13,22 @@ $default-padding: 0.75em 0.75em 0.55em;
|
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
.input-label {
|
|
17
|
-
color: var(--main2);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
.input {
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
border: var(--theme-border-style) var(--dark-y);
|
|
18
|
+
background: var(--light-y);
|
|
19
|
+
color:var(--on-y);
|
|
23
20
|
padding: $default-padding;
|
|
24
21
|
|
|
22
|
+
&:not(:disabled):hover{
|
|
23
|
+
border: var(--theme-border-style) var(--light-background4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:disabled {
|
|
27
|
+
background-color: var(--dark-y);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
&:focus {
|
|
26
|
-
background: var(--
|
|
31
|
+
background: var(--y);
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
}
|
|
@@ -27,6 +27,7 @@ const TextInput = ({
|
|
|
27
27
|
type,
|
|
28
28
|
name,
|
|
29
29
|
label,
|
|
30
|
+
color,
|
|
30
31
|
labelColor,
|
|
31
32
|
validate,
|
|
32
33
|
oneInputLabel,
|
|
@@ -48,6 +49,7 @@ const TextInput = ({
|
|
|
48
49
|
baseClassName,
|
|
49
50
|
componentClassName,
|
|
50
51
|
userClassName,
|
|
52
|
+
`y-${color}`,
|
|
51
53
|
]
|
|
52
54
|
.filter((e) => e)
|
|
53
55
|
.join(' ')}
|
|
@@ -65,7 +67,7 @@ const TextInput = ({
|
|
|
65
67
|
</FormLabel>
|
|
66
68
|
<input
|
|
67
69
|
id={name}
|
|
68
|
-
className=
|
|
70
|
+
className="input"
|
|
69
71
|
type={type}
|
|
70
72
|
disabled={disabled}
|
|
71
73
|
placeholder={placeholder}
|
|
@@ -149,10 +151,16 @@ TextInput.propTypes = {
|
|
|
149
151
|
* The placeholder text for the input
|
|
150
152
|
*/
|
|
151
153
|
placeholder:PropTypes.string,
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The text input color
|
|
157
|
+
*/
|
|
158
|
+
color:PropTypes.string,
|
|
152
159
|
}
|
|
153
160
|
|
|
154
161
|
TextInput.defaultProps = {
|
|
155
162
|
type :'text',
|
|
163
|
+
color :'background2',
|
|
156
164
|
disabled:false,
|
|
157
165
|
}
|
|
158
166
|
|
|
@@ -10,12 +10,25 @@ $default-padding: 0.75em 0.75em 0.55em;
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
|
|
12
12
|
.input {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
border: var(--theme-border-style) var(--dark-y);
|
|
14
|
+
background: var(--light-y);
|
|
15
|
+
color: var(--on-y);
|
|
15
16
|
padding: $default-padding;
|
|
16
17
|
|
|
18
|
+
&::placeholder{
|
|
19
|
+
color: var(--metadata);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:not(:disabled):hover{
|
|
23
|
+
border: var(--theme-border-style) var(--light-background4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:disabled {
|
|
27
|
+
background-color: var(--dark-y);
|
|
28
|
+
}
|
|
29
|
+
|
|
17
30
|
&:focus {
|
|
18
|
-
background: var(--
|
|
31
|
+
background: var(--light-background4);
|
|
19
32
|
}
|
|
20
33
|
}
|
|
21
34
|
}
|
|
@@ -52,7 +52,7 @@ const TextareaInput = ({
|
|
|
52
52
|
|
|
53
53
|
componentClassName,
|
|
54
54
|
userClassName,
|
|
55
|
-
`
|
|
55
|
+
`y-${textAreaColor}`,
|
|
56
56
|
]
|
|
57
57
|
.filter((e) => e)
|
|
58
58
|
.join(' ')}
|
|
@@ -70,7 +70,7 @@ const TextareaInput = ({
|
|
|
70
70
|
</FormLabel>
|
|
71
71
|
<textarea
|
|
72
72
|
id={textAreaId}
|
|
73
|
-
className=
|
|
73
|
+
className="textarea"
|
|
74
74
|
{...field}
|
|
75
75
|
placeholder={placeholder}
|
|
76
76
|
rows={rows}
|
|
@@ -163,7 +163,7 @@ TextareaInput.propTypes = {
|
|
|
163
163
|
|
|
164
164
|
TextareaInput.defaultProps = {
|
|
165
165
|
rows :3,
|
|
166
|
-
textAreaColor:'
|
|
166
|
+
textAreaColor:'background2',
|
|
167
167
|
disabled :false,
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
@use "@pareto-engineering/bem";
|
|
3
3
|
|
|
4
|
+
$default-padding: .5em;
|
|
5
|
+
|
|
4
6
|
.#{bem.$base}.text-area-input{
|
|
5
7
|
display: flex;
|
|
6
8
|
flex-direction: column;
|
|
7
9
|
|
|
8
10
|
.textarea {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
border: var(--theme-border-style) var(--dark-y);
|
|
12
|
+
background: var(--light-y);
|
|
13
|
+
color: var(--on-y);
|
|
14
|
+
padding: $default-padding;
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
&::placeholder{
|
|
17
|
+
color: var(--metadata);
|
|
14
18
|
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
19
|
|
|
20
|
+
&:not(:disabled):hover{
|
|
21
|
+
border: var(--theme-border-style) var(--light-background4);
|
|
22
|
+
}
|
|
18
23
|
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: var(--dark-y);
|
|
26
|
+
}
|
|
19
27
|
|
|
28
|
+
&:focus {
|
|
29
|
+
background: var(--light-background4);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/ui/f/fields/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export { TextInput } from './TextInput'
|
|
2
2
|
export { SelectInput } from './SelectInput'
|
|
3
|
-
export { RadioInput } from './RadioInput'
|
|
4
|
-
export { CheckboxInput } from './CheckboxInput'
|
|
5
|
-
export { TaskRecommendationInput } from './TaskRecommendationInput'
|
|
6
3
|
export { ChoicesInput } from './ChoicesInput'
|
|
7
4
|
export { TextareaInput } from './TextareaInput'
|
|
8
5
|
export { RatingsInput } from './RatingsInput'
|