@pareto-engineering/design-system 2.0.0-alpha.2 → 2.0.0-alpha.3
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 +141 -0
- package/dist/cjs/a/{RatingsInput/common/Rating → Shapes}/index.js +3 -3
- package/dist/cjs/a/Shapes/styles.scss +199 -0
- package/dist/cjs/a/TeamInfo/styles.scss +2 -2
- package/dist/cjs/b/Button/styles.scss +1 -1
- 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/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 +119 -0
- package/dist/es/a/{RatingsInput/common/Rating → Shapes}/index.js +1 -1
- package/dist/es/a/Shapes/styles.scss +199 -0
- package/dist/es/a/TeamInfo/styles.scss +2 -2
- package/dist/es/b/Button/styles.scss +1 -1
- 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/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 +2454 -250
- 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/Spinner.stories.jsx +1 -1
- package/src/stories/b/Button.stories.jsx +41 -10
- package/src/stories/b/Metrics.stories.jsx +62 -0
- 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/TeamInfo/styles.scss +2 -2
- package/src/ui/b/Button/styles.scss +1 -1
- 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/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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useLayoutEffect } from 'react';
|
|
4
|
+
import { AnimatedCounter } from "../..";
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import styleNames from '@pareto-engineering/bem'; // Local Definitions
|
|
7
|
+
|
|
8
|
+
const baseClassName = styleNames.base;
|
|
9
|
+
const componentClassName = 'metrics';
|
|
10
|
+
/**
|
|
11
|
+
* This is the component description.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const Metrics = ({
|
|
15
|
+
id,
|
|
16
|
+
className: userClassName,
|
|
17
|
+
style,
|
|
18
|
+
items // ...otherProps
|
|
19
|
+
|
|
20
|
+
}) => {
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
import("./styles.scss");
|
|
23
|
+
}, []);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
27
|
+
style: style // {...otherProps}
|
|
28
|
+
|
|
29
|
+
}, items.map(counter => /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "metric"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: `circle y-${counter.circleColor}`
|
|
33
|
+
}, /*#__PURE__*/React.createElement(AnimatedCounter, {
|
|
34
|
+
color: counter.color,
|
|
35
|
+
delay: counter.delay,
|
|
36
|
+
number: counter.number,
|
|
37
|
+
before: counter.before,
|
|
38
|
+
after: counter.after
|
|
39
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
40
|
+
className: "description-md sm-h xs-h md-s1"
|
|
41
|
+
}, counter.description)), /*#__PURE__*/React.createElement("p", {
|
|
42
|
+
className: "description-sm md-h lg-h sm-s-2"
|
|
43
|
+
}, counter.description))));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
Metrics.propTypes = {
|
|
47
|
+
/**
|
|
48
|
+
* The HTML id for this element
|
|
49
|
+
*/
|
|
50
|
+
id: PropTypes.string,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The HTML class names for this element
|
|
54
|
+
*/
|
|
55
|
+
className: PropTypes.string,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The React-written, css properties for this element.
|
|
59
|
+
*/
|
|
60
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The array of details
|
|
64
|
+
*/
|
|
65
|
+
items: PropTypes.node
|
|
66
|
+
};
|
|
67
|
+
/*
|
|
68
|
+
Metrics.defaultProps = {
|
|
69
|
+
}
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
export default Metrics;
|
|
@@ -0,0 +1,91 @@
|
|
|
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-mobile-row-gap: 1em;
|
|
8
|
+
$default-desktop-row-gap: 3em;
|
|
9
|
+
$default-border-radius: 50%;
|
|
10
|
+
$default-mobile-circle-size: 8em;
|
|
11
|
+
$default-desktop-circle-size: 10em;
|
|
12
|
+
$default-translateY:3em;
|
|
13
|
+
$default-desktop-description-width:12em;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
$default-mobile-description-width:9em;
|
|
17
|
+
|
|
18
|
+
.#{bem.$base}.metrics {
|
|
19
|
+
display: grid;
|
|
20
|
+
row-gap: 1em;
|
|
21
|
+
|
|
22
|
+
.metric {
|
|
23
|
+
align-items: center;
|
|
24
|
+
display: flex;
|
|
25
|
+
row-gap: $default-mobile-row-gap;
|
|
26
|
+
|
|
27
|
+
.circle {
|
|
28
|
+
align-items: center;
|
|
29
|
+
background: var(--light-y);
|
|
30
|
+
border-radius: $default-border-radius;
|
|
31
|
+
display: flex;
|
|
32
|
+
height: $default-mobile-circle-size;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
width: $default-mobile-circle-size;
|
|
35
|
+
|
|
36
|
+
.description-md {
|
|
37
|
+
color: var(--subtitle);
|
|
38
|
+
font-style: italic;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.description-sm {
|
|
43
|
+
color: var(--subtitle);
|
|
44
|
+
font-style: italic;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// mobile style
|
|
49
|
+
@include mixins.media($to:$sm-md) {
|
|
50
|
+
.metric {
|
|
51
|
+
column-gap: $default-mobile-row-gap;
|
|
52
|
+
|
|
53
|
+
.description-sm {
|
|
54
|
+
width: 50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// tablet style
|
|
60
|
+
@include mixins.media($from:$xs-sm,$to:$sm-md) {
|
|
61
|
+
.metric {
|
|
62
|
+
.description-sm {
|
|
63
|
+
width: 30%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// desktop style
|
|
69
|
+
@include mixins.media($from:$sm-md) {
|
|
70
|
+
grid-template-columns: repeat(2, 1fr);
|
|
71
|
+
row-gap: 2em;
|
|
72
|
+
|
|
73
|
+
.metric {
|
|
74
|
+
.circle {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
height: $default-desktop-circle-size;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
position: relative;
|
|
80
|
+
width: $default-desktop-circle-size;
|
|
81
|
+
|
|
82
|
+
.description-md {
|
|
83
|
+
left: 40%;
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 70%;
|
|
86
|
+
width: $default-desktop-description-width;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/dist/es/b/index.js
CHANGED
|
@@ -6,4 +6,5 @@ export { Page } from "./Page";
|
|
|
6
6
|
export { QuestionDropdown } from "./QuestionDropdown";
|
|
7
7
|
export { ThemeSelector } from "./ThemeSelector";
|
|
8
8
|
export { Logo } from "./Logo";
|
|
9
|
-
export { SocialMediaButton } from "./SocialMediaButton";
|
|
9
|
+
export { SocialMediaButton } from "./SocialMediaButton";
|
|
10
|
+
export { Metrics } from "./Metrics";
|
|
@@ -49,7 +49,7 @@ const HorizontalMenu = ({
|
|
|
49
49
|
attached: true,
|
|
50
50
|
height: ".4em",
|
|
51
51
|
color: "main2",
|
|
52
|
-
className: "y-
|
|
52
|
+
className: "y-background1 b-dark-y"
|
|
53
53
|
}), /*#__PURE__*/React.createElement("div", {
|
|
54
54
|
className: styleNames.elementContent
|
|
55
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useLayoutEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem'; // Local Definitions
|
|
6
|
+
|
|
7
|
+
const baseClassName = styleNames.base;
|
|
8
|
+
const componentClassName = 'gradient-background';
|
|
9
|
+
/**
|
|
10
|
+
* This is the component description.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const GradientBackground = ({
|
|
14
|
+
id,
|
|
15
|
+
className: userClassName,
|
|
16
|
+
style,
|
|
17
|
+
pin,
|
|
18
|
+
shape // ...otherProps
|
|
19
|
+
|
|
20
|
+
}) => {
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
import("./styles.scss");
|
|
23
|
+
}, []);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
27
|
+
style: { ...style,
|
|
28
|
+
'--pin': pin
|
|
29
|
+
} // {...otherProps}
|
|
30
|
+
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "shapes"
|
|
33
|
+
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "triangle"
|
|
35
|
+
}), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "ellipses"
|
|
37
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "up"
|
|
39
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "down"
|
|
41
|
+
})), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "ellipse"
|
|
43
|
+
})));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
GradientBackground.propTypes = {
|
|
47
|
+
/**
|
|
48
|
+
* The HTML id for this element
|
|
49
|
+
*/
|
|
50
|
+
id: PropTypes.string,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The HTML class names for this element
|
|
54
|
+
*/
|
|
55
|
+
className: PropTypes.string,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The React-written, css properties for this element.
|
|
59
|
+
*/
|
|
60
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Where to pin the shapes
|
|
64
|
+
*/
|
|
65
|
+
pin: PropTypes.oneOf(['flex-start', 'center', 'flex-end']),
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
shape: PropTypes.oneOf(['triangle', 'ellipse', 'spiral', 'diamonds', 'circles', 'ellipses'])
|
|
71
|
+
};
|
|
72
|
+
GradientBackground.defaultProps = {
|
|
73
|
+
pin: 'center',
|
|
74
|
+
shape: 'triangle'
|
|
75
|
+
};
|
|
76
|
+
export default GradientBackground;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
$default-triangle-dimension:30em;
|
|
6
|
+
$default-ellipses-dimension:50em;
|
|
7
|
+
$default-ellipse-dimension:80em;
|
|
8
|
+
$default-shapes-opacity:.8;
|
|
9
|
+
|
|
10
|
+
.#{bem.$base}.gradient-background {
|
|
11
|
+
align-items: center;
|
|
12
|
+
background: var(--light-y);
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
height: 100%;
|
|
16
|
+
justify-content: var(--pin);
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
.shapes {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
.triangle {
|
|
25
|
+
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
26
|
+
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
27
|
+
height: $default-triangle-dimension * .86;
|
|
28
|
+
opacity: $default-shapes-opacity;
|
|
29
|
+
width: $default-triangle-dimension;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ellipses {
|
|
33
|
+
|
|
34
|
+
height: $default-ellipses-dimension / 2;
|
|
35
|
+
width: $default-ellipses-dimension;
|
|
36
|
+
opacity: $default-shapes-opacity;
|
|
37
|
+
|
|
38
|
+
.up {
|
|
39
|
+
background-image: linear-gradient(var(--light-y), var(--y));
|
|
40
|
+
clip-path: ellipse(40% 100% at 50% 0%);
|
|
41
|
+
height:50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.down {
|
|
45
|
+
background-image: linear-gradient(to top, var(--light-y), var(--y));
|
|
46
|
+
clip-path: ellipse(40% 100% at 50% 100%);
|
|
47
|
+
height:50%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ellipse {
|
|
53
|
+
height: $default-ellipse-dimension / 1.5;
|
|
54
|
+
width: $default-ellipse-dimension;
|
|
55
|
+
background-image: linear-gradient( to top left, var(--dark-y), var(--light-y),var(--dark-y));
|
|
56
|
+
clip-path: ellipse(50% 25% at 50% 50%);
|
|
57
|
+
opacity: $default-shapes-opacity;
|
|
58
|
+
transform: rotate3d(0, 0, -1, 10deg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GradientBackground } from "./GradientBackground";
|
|
@@ -104,8 +104,8 @@ Rating.propTypes = {
|
|
|
104
104
|
showRatingValue: PropTypes.bool
|
|
105
105
|
};
|
|
106
106
|
Rating.defaultProps = {
|
|
107
|
-
activeBackgroundColor: '
|
|
108
|
-
inactiveBackgroundColor: '
|
|
107
|
+
activeBackgroundColor: 'main1',
|
|
108
|
+
inactiveBackgroundColor: 'background2',
|
|
109
109
|
showRatingValue: false
|
|
110
110
|
};
|
|
111
111
|
export default Rating;
|
|
@@ -18,12 +18,12 @@ $default-padding: 0.75em 0.75em 0.55em;
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.input {
|
|
21
|
-
background: var(--light-
|
|
22
|
-
color: var(--on-
|
|
21
|
+
background: var(--light-background1);
|
|
22
|
+
color: var(--on-background1);
|
|
23
23
|
padding: $default-padding;
|
|
24
24
|
|
|
25
25
|
&:focus {
|
|
26
|
-
background: var(--dark-
|
|
26
|
+
background: var(--dark-background1);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -43,7 +43,7 @@ const TaskRecommendationInput = ({
|
|
|
43
43
|
}, /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: "v1 p-v task"
|
|
45
45
|
}, /*#__PURE__*/React.createElement(FormLabel, {
|
|
46
|
-
className: `uc mb-v ${isOptionSelected ?
|
|
46
|
+
className: `uc mb-v ${isOptionSelected ? styleNames.modifierActive : ''}`,
|
|
47
47
|
name: name
|
|
48
48
|
}, label), /*#__PURE__*/React.createElement("input", _extends({}, field, {
|
|
49
49
|
value: value,
|
|
@@ -106,6 +106,6 @@ TaskRecommendationInput.propTypes = {
|
|
|
106
106
|
image: PropTypes.string.isRequired
|
|
107
107
|
};
|
|
108
108
|
TaskRecommendationInput.defaultProps = {
|
|
109
|
-
color: '
|
|
109
|
+
color: 'main1'
|
|
110
110
|
};
|
|
111
111
|
export default /*#__PURE__*/memo(TaskRecommendationInput);
|
|
@@ -14,12 +14,12 @@ $default-padding: 0.75em 0.75em 0.55em;
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.input {
|
|
17
|
-
background: var(--light-
|
|
18
|
-
color: var(--on-
|
|
17
|
+
background: var(--light-background1);
|
|
18
|
+
color: var(--on-background1);
|
|
19
19
|
padding: $default-padding;
|
|
20
20
|
|
|
21
21
|
&:focus {
|
|
22
|
-
background: var(--dark-
|
|
22
|
+
background: var(--dark-background1);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/es/form.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "form-reset.scss";
|
|
2
2
|
|
|
3
|
-
$form-input-border-bottom: 1px solid var(--dark-
|
|
3
|
+
$form-input-border-bottom: 1px solid var(--dark-background1);
|
|
4
4
|
$form-input-on-focus-border-bottom: 1px solid var(--light-main1);
|
|
5
5
|
$form-input-on-error-border-bottom: 1px solid var(--error);
|
|
6
6
|
$label-input-heigth-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"stylelint-config-palantir": "^5.1.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@pareto-engineering/assets": "^2.0.0-alpha.
|
|
82
|
+
"@pareto-engineering/assets": "^2.0.0-alpha.3",
|
|
83
83
|
"@pareto-engineering/bem": "^0.1.5",
|
|
84
|
-
"@pareto-engineering/styles": "^2.0.0-alpha.
|
|
84
|
+
"@pareto-engineering/styles": "^2.0.0-alpha.4",
|
|
85
85
|
"date-fns": "^2.22.1",
|
|
86
86
|
"formik": "^2.2.9",
|
|
87
87
|
"hamburgers": "^1.1.3",
|