@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.9
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/AnimatedBlobs/AnimatedBlobs.js +90 -0
- package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
- package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +56 -0
- package/dist/cjs/a/AnimatedGradient/index.js +13 -0
- package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +2 -2
- package/dist/cjs/a/Conversation/Conversation.js +1 -1
- package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +1 -1
- package/dist/cjs/a/Label/Label.js +13 -5
- package/dist/cjs/a/Label/styles.scss +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- package/dist/cjs/a/MetaCard/MetaCard.js +60 -0
- package/dist/cjs/a/MetaCard/index.js +13 -0
- package/dist/cjs/a/MetaCard/styles.scss +28 -0
- package/dist/cjs/a/People/People.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +2 -2
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/SnapScroller/styles.scss +18 -10
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
- package/dist/cjs/a/TextSteps/index.js +13 -0
- package/dist/cjs/a/TextSteps/styles.scss +29 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/a/Tip/Tip.js +72 -0
- package/dist/cjs/a/Tip/index.js +13 -0
- package/dist/cjs/a/Tip/styles.scss +22 -0
- package/dist/cjs/a/index.js +36 -1
- package/dist/cjs/b/Button/Button.js +2 -1
- package/dist/cjs/b/Button/styles.scss +2 -0
- package/dist/cjs/b/Card/Card.js +74 -0
- package/dist/cjs/b/Card/common/Group/Group.js +73 -0
- package/dist/cjs/b/Card/common/Group/index.js +13 -0
- package/dist/cjs/b/Card/common/Group/styles.scss +42 -0
- package/dist/cjs/b/Card/common/Section/Section.js +59 -0
- package/dist/cjs/b/Card/common/Section/index.js +13 -0
- package/dist/cjs/b/Card/common/index.js +19 -0
- package/dist/cjs/b/Card/index.js +13 -0
- package/dist/cjs/b/Card/styles.scss +46 -0
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Page/Page.js +10 -3
- package/dist/cjs/b/Page/common/Section/Section.js +6 -1
- package/dist/cjs/b/Page/styles.scss +22 -4
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/b/Title/Title.js +4 -1
- package/dist/cjs/b/index.js +8 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +2 -2
- package/dist/cjs/c/Modal/Modal.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +2 -1
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +16 -8
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +21 -33
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -3
- package/dist/cjs/f/fields/SelectInput/styles.scss +31 -21
- package/dist/cjs/f/fields/TextInput/TextInput.js +5 -3
- package/dist/cjs/f/fields/TextInput/styles.scss +26 -17
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
- package/dist/es/a/AnimatedBlobs/index.js +1 -0
- package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +48 -0
- package/dist/es/a/AnimatedGradient/index.js +1 -0
- package/dist/es/a/AnimatedGradient/styles.scss +14 -0
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
- package/dist/es/a/ContentTree/ContentTree.js +3 -3
- package/dist/es/a/Conversation/Conversation.js +2 -2
- package/dist/es/a/DotInfo/DotInfo.js +2 -2
- package/dist/es/a/Figure/Figure.js +2 -2
- package/dist/es/a/HamburgerButton/HamburgerButton.js +2 -2
- package/dist/es/a/IconList/IconList.js +2 -2
- package/dist/es/a/Label/Label.js +14 -6
- package/dist/es/a/Label/styles.scss +1 -1
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/es/a/MetaCard/MetaCard.js +52 -0
- package/dist/es/a/MetaCard/index.js +1 -0
- package/dist/es/a/MetaCard/styles.scss +28 -0
- package/dist/es/a/People/People.js +2 -2
- package/dist/es/a/Popover/Popover.js +3 -3
- package/dist/es/a/ProgressBar/ProgressBar.js +2 -2
- package/dist/es/a/Quote/Quote.js +2 -2
- package/dist/es/a/SVG/SVG.js +2 -2
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -2
- package/dist/es/a/SnapScroller/styles.scss +18 -10
- package/dist/es/a/Spinner/Spinner.js +2 -2
- package/dist/es/a/TextSteps/TextSteps.js +61 -0
- package/dist/es/a/TextSteps/index.js +1 -0
- package/dist/es/a/TextSteps/styles.scss +29 -0
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/a/Tip/Tip.js +64 -0
- package/dist/es/a/Tip/index.js +2 -0
- package/dist/es/a/Tip/styles.scss +22 -0
- package/dist/es/a/index.js +6 -1
- package/dist/es/b/Button/Button.js +2 -1
- package/dist/es/b/Button/styles.scss +2 -0
- package/dist/es/b/Card/Card.js +66 -0
- package/dist/es/b/Card/common/Group/Group.js +65 -0
- package/dist/es/b/Card/common/Group/index.js +1 -0
- package/dist/es/b/Card/common/Group/styles.scss +42 -0
- package/dist/es/b/Card/common/Section/Section.js +48 -0
- package/dist/es/b/Card/common/Section/index.js +1 -0
- package/dist/es/b/Card/common/index.js +2 -0
- package/dist/es/b/Card/index.js +1 -0
- package/dist/es/b/Card/styles.scss +46 -0
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +11 -4
- package/dist/es/b/Page/common/Section/Section.js +6 -1
- package/dist/es/b/Page/styles.scss +22 -4
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +2 -2
- package/dist/es/b/SocialMediaButton/styles.scss +1 -1
- package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
- package/dist/es/b/Title/Title.js +18 -12
- package/dist/es/b/index.js +2 -1
- package/dist/es/c/ContentSlides/ContentSlides.js +3 -3
- package/dist/es/c/Modal/Modal.js +2 -2
- package/dist/es/c/Modal/styles.scss +2 -1
- package/dist/es/c/Shortener/Shortener.js +2 -2
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
- package/dist/es/f/FormInput/FormInput.js +2 -2
- package/dist/es/f/common/Debugger/Debugger.js +2 -2
- package/dist/es/f/common/Description/Description.js +2 -2
- package/dist/es/f/common/Label/Label.js +2 -2
- package/dist/es/f/fields/Checkbox/Checkbox.js +2 -2
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +18 -10
- package/dist/es/f/fields/ChoicesInput/styles.scss +21 -33
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -2
- package/dist/es/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -2
- package/dist/es/f/fields/SelectInput/SelectInput.js +4 -4
- package/dist/es/f/fields/SelectInput/styles.scss +31 -21
- package/dist/es/f/fields/TextInput/TextInput.js +6 -4
- package/dist/es/f/fields/TextInput/styles.scss +26 -17
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
- package/package.json +16 -16
- package/src/stories/a/MetaCard.stories.jsx +35 -0
- package/src/stories/a/TextSteps.stories.jsx +19 -0
- package/src/stories/a/Tip.stories.jsx +28 -0
- package/src/stories/b/Card/Card.stories.jsx +59 -0
- package/src/stories/b/Card/Group.stories.jsx +59 -0
- package/src/stories/b/Page.stories.jsx +19 -3
- package/src/stories/f/SelectInput.stories.jsx +7 -0
- package/src/stories/f/TextInput.stories.jsx +4 -4
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
- package/src/ui/a/AnimatedBlobs/index.js +1 -0
- package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +69 -0
- package/src/ui/a/AnimatedGradient/index.js +1 -0
- package/src/ui/a/AnimatedGradient/styles.scss +14 -0
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
- package/src/ui/a/ContentTree/ContentTree.jsx +3 -3
- package/src/ui/a/Conversation/Conversation.jsx +2 -2
- package/src/ui/a/DotInfo/DotInfo.jsx +2 -2
- package/src/ui/a/Figure/Figure.jsx +2 -2
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +2 -2
- package/src/ui/a/IconList/IconList.jsx +2 -2
- package/src/ui/a/Label/Label.jsx +13 -4
- package/src/ui/a/Label/styles.scss +1 -1
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/MetaCard/MetaCard.jsx +74 -0
- package/src/ui/a/MetaCard/index.js +1 -0
- package/src/ui/a/MetaCard/styles.scss +28 -0
- package/src/ui/a/People/People.jsx +2 -2
- package/src/ui/a/Popover/Popover.jsx +3 -3
- package/src/ui/a/ProgressBar/ProgressBar.jsx +2 -2
- package/src/ui/a/Quote/Quote.jsx +2 -2
- package/src/ui/a/SVG/SVG.jsx +2 -2
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -2
- package/src/ui/a/SnapScroller/styles.scss +18 -10
- package/src/ui/a/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
- package/src/ui/a/TextSteps/index.js +1 -0
- package/src/ui/a/TextSteps/styles.scss +29 -0
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/a/Tip/Tip.jsx +88 -0
- package/src/ui/a/Tip/index.js +2 -0
- package/src/ui/a/Tip/styles.scss +22 -0
- package/src/ui/a/index.js +5 -0
- package/src/ui/b/Button/Button.jsx +2 -1
- package/src/ui/b/Button/styles.scss +2 -0
- package/src/ui/b/Card/Card.jsx +94 -0
- package/src/ui/b/Card/common/Group/Group.jsx +91 -0
- package/src/ui/b/Card/common/Group/index.js +1 -0
- package/src/ui/b/Card/common/Group/styles.scss +42 -0
- package/src/ui/b/Card/common/Section/Section.jsx +70 -0
- package/src/ui/b/Card/common/Section/index.js +1 -0
- package/src/ui/b/Card/common/index.js +2 -0
- package/src/ui/b/Card/index.js +1 -0
- package/src/ui/b/Card/styles.scss +46 -0
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +9 -3
- package/src/ui/b/Page/common/Section/Section.jsx +8 -0
- package/src/ui/b/Page/styles.scss +22 -4
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -2
- package/src/ui/b/SocialMediaButton/styles.scss +1 -1
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
- package/src/ui/b/Title/Title.jsx +30 -23
- package/src/ui/b/index.js +1 -0
- package/src/ui/c/ContentSlides/ContentSlides.jsx +3 -3
- package/src/ui/c/Modal/Modal.jsx +2 -2
- package/src/ui/c/Modal/styles.scss +2 -1
- package/src/ui/c/Shortener/Shortener.jsx +2 -2
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -2
- package/src/ui/f/FormInput/FormInput.jsx +2 -2
- package/src/ui/f/common/Debugger/Debugger.jsx +2 -2
- package/src/ui/f/common/Description/Description.jsx +2 -2
- package/src/ui/f/common/Label/Label.jsx +2 -2
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -2
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +12 -7
- package/src/ui/f/fields/ChoicesInput/styles.scss +21 -33
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +2 -2
- package/src/ui/f/fields/QueryCombobox/styles.scss +5 -4
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +2 -2
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +4 -4
- package/src/ui/f/fields/SelectInput/styles.scss +31 -21
- package/src/ui/f/fields/TextInput/TextInput.jsx +13 -11
- package/src/ui/f/fields/TextInput/styles.scss +26 -17
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
- package/tests/__snapshots__/Storyshots.test.js.snap +1049 -485
package/dist/es/a/Label/Label.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
7
|
|
|
@@ -19,16 +20,18 @@ const Label = ({
|
|
|
19
20
|
children,
|
|
20
21
|
color,
|
|
21
22
|
isCompact,
|
|
22
|
-
isGhost
|
|
23
|
+
isGhost,
|
|
24
|
+
as: Wrapper,
|
|
25
|
+
...props
|
|
23
26
|
}) => {
|
|
24
|
-
|
|
27
|
+
useInsertionEffect(() => {
|
|
25
28
|
import("./styles.scss");
|
|
26
29
|
}, []);
|
|
27
|
-
return /*#__PURE__*/React.createElement(
|
|
30
|
+
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
28
31
|
id: id,
|
|
29
32
|
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isCompact && styleNames.modifierCompact, isGhost && styleNames.modifierGhost].filter(e => e).join(' '),
|
|
30
33
|
style: style
|
|
31
|
-
}, children);
|
|
34
|
+
}, props), children);
|
|
32
35
|
};
|
|
33
36
|
Label.propTypes = {
|
|
34
37
|
/**
|
|
@@ -51,6 +54,10 @@ Label.propTypes = {
|
|
|
51
54
|
* Whether the button is compact
|
|
52
55
|
*/
|
|
53
56
|
isCompact: PropTypes.bool,
|
|
57
|
+
/**
|
|
58
|
+
* The html element to use to display this component.
|
|
59
|
+
*/
|
|
60
|
+
as: PropTypes.string,
|
|
54
61
|
/**
|
|
55
62
|
* The default font color to display for the label
|
|
56
63
|
*/
|
|
@@ -61,6 +68,7 @@ Label.propTypes = {
|
|
|
61
68
|
children: PropTypes.node
|
|
62
69
|
};
|
|
63
70
|
Label.defaultProps = {
|
|
64
|
-
color: 'main1'
|
|
71
|
+
color: 'main1',
|
|
72
|
+
as: 'span'
|
|
65
73
|
};
|
|
66
74
|
export default Label;
|
|
@@ -6,7 +6,7 @@ $default-padding-bottom: .4em;
|
|
|
6
6
|
$default-padding-side: .7em;
|
|
7
7
|
$default-padding-top: .5em;
|
|
8
8
|
|
|
9
|
-
$compact-padding: $default-padding-top*.
|
|
9
|
+
$compact-padding: $default-padding-top*.5 $default-padding-side*.5 $default-padding-bottom*.5;
|
|
10
10
|
$default-padding: $default-padding-top $default-padding-side $default-padding-bottom;
|
|
11
11
|
|
|
12
12
|
$default-color: primary;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ const LoadingCircle = ({
|
|
|
22
22
|
style
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
|
|
7
|
+
// Local Definitions
|
|
8
|
+
|
|
9
|
+
const baseClassName = styleNames.base;
|
|
10
|
+
const componentClassName = 'meta-card';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This is the component description.
|
|
14
|
+
*/
|
|
15
|
+
const MetaCard = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
hasBackgroundBlur
|
|
21
|
+
}) => {
|
|
22
|
+
useInsertionEffect(() => {
|
|
23
|
+
import("./styles.scss");
|
|
24
|
+
}, []);
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
id: id,
|
|
27
|
+
className: [baseClassName, componentClassName, userClassName, hasBackgroundBlur && styleNames.modifierBlur].filter(e => e).join(' '),
|
|
28
|
+
style: style
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
|
31
|
+
MetaCard.propTypes = {
|
|
32
|
+
/**
|
|
33
|
+
* The HTML id for this element
|
|
34
|
+
*/
|
|
35
|
+
id: PropTypes.string,
|
|
36
|
+
/**
|
|
37
|
+
* The HTML class names for this element
|
|
38
|
+
*/
|
|
39
|
+
className: PropTypes.string,
|
|
40
|
+
/**
|
|
41
|
+
* The React-written, css properties for this element.
|
|
42
|
+
*/
|
|
43
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
44
|
+
/**
|
|
45
|
+
* Whether the card has a background blur
|
|
46
|
+
* */
|
|
47
|
+
hasBackgroundBlur: PropTypes.bool
|
|
48
|
+
};
|
|
49
|
+
MetaCard.defaultProps = {
|
|
50
|
+
// someProp:false
|
|
51
|
+
};
|
|
52
|
+
export default MetaCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MetaCard } from "./MetaCard";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-border-radius: 2.25rem;
|
|
8
|
+
$default-border-color: var(--hard-background-cards);
|
|
9
|
+
$default-background: var(--background-cards-50);
|
|
10
|
+
|
|
11
|
+
$default-blur: var(--theme-default-blur);
|
|
12
|
+
|
|
13
|
+
.#{bem.$base}.meta-card {
|
|
14
|
+
background: $default-background;
|
|
15
|
+
border: 1px solid $default-border-color;
|
|
16
|
+
border-radius: $default-border-radius;
|
|
17
|
+
|
|
18
|
+
&.#{bem.$modifier-blur} {
|
|
19
|
+
backdrop-filter: $default-blur;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include mixins.media($to: $sm-md) {
|
|
23
|
+
// Temporary solution
|
|
24
|
+
margin-left: calc((var(--gap)) * -1);
|
|
25
|
+
margin-right: calc((var(--gap)) * -1);
|
|
26
|
+
padding: var(--gap);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ const People = ({
|
|
|
22
22
|
columnWidth
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useRef,
|
|
3
|
+
import { useRef, useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ const Popover = ({
|
|
|
26
26
|
offsetYPx
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import("./styles.scss");
|
|
31
31
|
}, []);
|
|
32
32
|
const popoverRef = useRef(null);
|
|
@@ -94,7 +94,7 @@ Popover.propTypes = {
|
|
|
94
94
|
* The reference to the parent element
|
|
95
95
|
*/
|
|
96
96
|
parentRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
97
|
-
current: PropTypes.
|
|
97
|
+
current: PropTypes.node
|
|
98
98
|
})])
|
|
99
99
|
};
|
|
100
100
|
Popover.defaultProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ const ProgressBar = ({
|
|
|
22
22
|
height
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
package/dist/es/a/Quote/Quote.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ const Quote = ({
|
|
|
22
22
|
color
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("figure", {
|
package/dist/es/a/SVG/SVG.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.3 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect, useMemo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { UseSVG } from "./common";
|
|
@@ -27,7 +27,7 @@ const SVG = ({
|
|
|
27
27
|
animated,
|
|
28
28
|
...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import("./styles.scss");
|
|
32
32
|
});
|
|
33
33
|
const useSVGProps = useMemo(() => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ const SnapScroller = ({
|
|
|
20
20
|
noScrollOnDesktop
|
|
21
21
|
// ...otherProps
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
24
|
import("./styles.scss");
|
|
25
25
|
}, []);
|
|
26
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5,20 +5,23 @@
|
|
|
5
5
|
@use "@pareto-engineering/styles/src/mixins";
|
|
6
6
|
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
7
|
|
|
8
|
-
$default-spacing:var(--
|
|
8
|
+
$default-spacing: var(--gap, 1em);
|
|
9
9
|
|
|
10
10
|
.#{bem.$base}.snap-scroller {
|
|
11
11
|
display: flex;
|
|
12
|
-
|
|
12
|
+
gap: $default-spacing;
|
|
13
|
+
-ms-overflow-style: none;
|
|
13
14
|
overflow-x: auto;
|
|
14
|
-
scroll-padding: calc(
|
|
15
|
+
scroll-padding: calc($default-spacing * 2);
|
|
15
16
|
scroll-snap-type: x mandatory;
|
|
16
17
|
scrollbar-width: none;
|
|
17
18
|
|
|
19
|
+
&::-webkit-scrollbar {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
>* {
|
|
20
24
|
display: inline-block;
|
|
21
|
-
margin-right: $default-spacing;
|
|
22
25
|
scroll-snap-align: start;
|
|
23
26
|
|
|
24
27
|
&:first-child {
|
|
@@ -26,15 +29,20 @@ $default-spacing:var(--spacing, var(--u));
|
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
@include mixins.media($from:$sm-md) {
|
|
32
|
+
@include mixins.media($from: $sm-md) {
|
|
31
33
|
&.desktop-no-scroll {
|
|
32
34
|
overflow: auto;
|
|
33
|
-
-ms-overflow-style: unset;
|
|
35
|
+
-ms-overflow-style: unset;
|
|
34
36
|
scroll-snap-type: none;
|
|
35
37
|
scrollbar-width: unset;
|
|
38
|
+
|
|
39
|
+
>* {
|
|
40
|
+
min-width: unset;
|
|
41
|
+
|
|
42
|
+
&:first-child {
|
|
43
|
+
margin-left: unset;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
36
46
|
}
|
|
37
47
|
}
|
|
38
48
|
}
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ const Spinner = ({
|
|
|
19
19
|
color
|
|
20
20
|
// ...otherProps
|
|
21
21
|
}) => {
|
|
22
|
-
|
|
22
|
+
useInsertionEffect(() => {
|
|
23
23
|
import("./styles.scss");
|
|
24
24
|
}, []);
|
|
25
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useLayoutEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
|
|
6
|
+
// Local Definitions
|
|
7
|
+
|
|
8
|
+
const baseClassName = styleNames.base;
|
|
9
|
+
const componentClassName = 'steps';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* This is the component description.
|
|
13
|
+
*/
|
|
14
|
+
const Steps = ({
|
|
15
|
+
id,
|
|
16
|
+
className: userClassName,
|
|
17
|
+
style,
|
|
18
|
+
items,
|
|
19
|
+
title
|
|
20
|
+
}) => {
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
import("./styles.scss");
|
|
23
|
+
}, []);
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName, 'grid'].filter(e => e).join(' '),
|
|
27
|
+
style: style
|
|
28
|
+
}, title && /*#__PURE__*/React.createElement("p", {
|
|
29
|
+
className: "title h4"
|
|
30
|
+
}, title), items.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: " number h3 start-1 span-2 md-start-1 md-span-2"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("p", null, i + 1)), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: " description"
|
|
34
|
+
}, /*#__PURE__*/React.createElement("p", null, item)))));
|
|
35
|
+
};
|
|
36
|
+
Steps.propTypes = {
|
|
37
|
+
/**
|
|
38
|
+
* The HTML id for this element
|
|
39
|
+
*/
|
|
40
|
+
id: PropTypes.string,
|
|
41
|
+
/**
|
|
42
|
+
* The HTML class names for this element
|
|
43
|
+
*/
|
|
44
|
+
className: PropTypes.string,
|
|
45
|
+
/**
|
|
46
|
+
* The React-written, css properties for this element.
|
|
47
|
+
*/
|
|
48
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
49
|
+
/**
|
|
50
|
+
* The steps to iterate
|
|
51
|
+
*/
|
|
52
|
+
items: PropTypes.arrayOf(PropTypes.shape({
|
|
53
|
+
title: PropTypes.string,
|
|
54
|
+
description: PropTypes.node
|
|
55
|
+
})).isRequired,
|
|
56
|
+
/**
|
|
57
|
+
* The title to pass to the component
|
|
58
|
+
*/
|
|
59
|
+
title: PropTypes.string
|
|
60
|
+
};
|
|
61
|
+
export default Steps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextSteps } from "./TextSteps";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-padding: 1em;
|
|
8
|
+
|
|
9
|
+
.#{bem.$base}.steps {
|
|
10
|
+
grid-column: 1 / -1;
|
|
11
|
+
grid-template-columns: repeat(var(--columns), 1fr);
|
|
12
|
+
padding: $default-padding 0;
|
|
13
|
+
|
|
14
|
+
.description {
|
|
15
|
+
grid-column: 2 / -1;
|
|
16
|
+
|
|
17
|
+
> p {
|
|
18
|
+
color: var(--metadata);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.number {
|
|
23
|
+
grid-column: 1 / span 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.title {
|
|
27
|
+
grid-column: 1 / -1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useInsertionEffect, useMemo, useCallback, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { format, differenceInDays, formatDistance, formatRelative } from 'date-fns';
|
|
@@ -27,7 +27,7 @@ const Timestamp = ({
|
|
|
27
27
|
// ...otherProps
|
|
28
28
|
as: Element
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import("./styles.scss");
|
|
32
32
|
}, []);
|
|
33
33
|
const [currentDisplay, setCurrentDisplay] = useState(enabledFormats[0]);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
|
|
7
|
+
// Local Definitions
|
|
8
|
+
|
|
9
|
+
const baseClassName = styleNames.base;
|
|
10
|
+
const componentClassName = 'tip';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This is the component description.
|
|
14
|
+
*/
|
|
15
|
+
const Tip = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
as: Wrapper,
|
|
21
|
+
color
|
|
22
|
+
// ...otherProps
|
|
23
|
+
}) => {
|
|
24
|
+
useInsertionEffect(() => {
|
|
25
|
+
import("./styles.scss");
|
|
26
|
+
}, []);
|
|
27
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
28
|
+
id: id,
|
|
29
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
30
|
+
style: style
|
|
31
|
+
// {...otherProps}
|
|
32
|
+
}, children);
|
|
33
|
+
};
|
|
34
|
+
Tip.propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* The HTML id for this element
|
|
37
|
+
*/
|
|
38
|
+
id: PropTypes.string,
|
|
39
|
+
/**
|
|
40
|
+
* The HTML class names for this element
|
|
41
|
+
*/
|
|
42
|
+
className: PropTypes.string,
|
|
43
|
+
/**
|
|
44
|
+
* The React-written, css properties for this element.
|
|
45
|
+
*/
|
|
46
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
47
|
+
/**
|
|
48
|
+
* The children jsx
|
|
49
|
+
*/
|
|
50
|
+
children: PropTypes.node.isRequired,
|
|
51
|
+
/**
|
|
52
|
+
* The color of the bar
|
|
53
|
+
*/
|
|
54
|
+
color: PropTypes.string,
|
|
55
|
+
/**
|
|
56
|
+
* The wrapper html type
|
|
57
|
+
*/
|
|
58
|
+
as: PropTypes.string
|
|
59
|
+
};
|
|
60
|
+
Tip.defaultProps = {
|
|
61
|
+
as: 'p',
|
|
62
|
+
color: 'main'
|
|
63
|
+
};
|
|
64
|
+
export default Tip;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
+
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
+
|
|
7
|
+
$default-bar-width: 2px;
|
|
8
|
+
$default-padding: 1em;
|
|
9
|
+
|
|
10
|
+
.#{bem.$base}.tip {
|
|
11
|
+
padding-left: $default-padding;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
background: var(--x);
|
|
16
|
+
content: "";
|
|
17
|
+
height: 100%;
|
|
18
|
+
left: 0;
|
|
19
|
+
position: absolute;
|
|
20
|
+
width: $default-bar-width;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/dist/es/a/index.js
CHANGED
|
@@ -14,4 +14,9 @@ export { Quote } from "./Quote";
|
|
|
14
14
|
export { SVG } from "./SVG";
|
|
15
15
|
export { SnapScroller } from "./SnapScroller";
|
|
16
16
|
export { Spinner } from "./Spinner";
|
|
17
|
-
export { Timestamp } from "./Timestamp";
|
|
17
|
+
export { Timestamp } from "./Timestamp";
|
|
18
|
+
export { MetaCard } from "./MetaCard";
|
|
19
|
+
export { AnimatedBlobs } from "./AnimatedBlobs";
|
|
20
|
+
export { Tip } from "./Tip";
|
|
21
|
+
export { AnimatedGradient } from "./AnimatedGradient";
|
|
22
|
+
export { TextSteps } from "./TextSteps";
|
|
@@ -7,8 +7,9 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
// Package-level Imports
|
|
8
8
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
9
9
|
import { LoadingCircle } from "../..";
|
|
10
|
+
import "./styles.scss";
|
|
10
11
|
// Component-level imports
|
|
11
|
-
import(
|
|
12
|
+
// import('./styles.scss')
|
|
12
13
|
|
|
13
14
|
// Helper Definition
|
|
14
15
|
const baseClassName = styleNames.base;
|
|
@@ -24,6 +24,7 @@ $default-animation-time: .31s;
|
|
|
24
24
|
|
|
25
25
|
&.arrow-right {
|
|
26
26
|
&::after {
|
|
27
|
+
align-self: center;
|
|
27
28
|
content: "-->";
|
|
28
29
|
margin-left: $default-margin;
|
|
29
30
|
vertical-align: middle;
|
|
@@ -39,6 +40,7 @@ $default-animation-time: .31s;
|
|
|
39
40
|
|
|
40
41
|
&.arrow-left {
|
|
41
42
|
&::before {
|
|
43
|
+
align-self: center;
|
|
42
44
|
content: "<--";
|
|
43
45
|
margin-right: $default-margin;
|
|
44
46
|
vertical-align: middle;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
import { ProgressBar } from "../..";
|
|
7
|
+
import { Group, Section } from "./common";
|
|
8
|
+
|
|
9
|
+
// Local Definitions
|
|
10
|
+
|
|
11
|
+
const baseClassName = styleNames.base;
|
|
12
|
+
const componentClassName = 'card';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This is the component description.
|
|
16
|
+
*/
|
|
17
|
+
const Card = ({
|
|
18
|
+
id,
|
|
19
|
+
className: userClassName,
|
|
20
|
+
style,
|
|
21
|
+
children,
|
|
22
|
+
progress,
|
|
23
|
+
progressBarColor
|
|
24
|
+
}) => {
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
|
+
import("./styles.scss");
|
|
27
|
+
}, []);
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
id: id,
|
|
30
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
31
|
+
style: style
|
|
32
|
+
}, progress && /*#__PURE__*/React.createElement(ProgressBar, {
|
|
33
|
+
attached: true,
|
|
34
|
+
color: progressBarColor,
|
|
35
|
+
progress: progress,
|
|
36
|
+
height: ".5em"
|
|
37
|
+
}), children);
|
|
38
|
+
};
|
|
39
|
+
Card.propTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* The HTML id for this element
|
|
42
|
+
*/
|
|
43
|
+
id: PropTypes.string,
|
|
44
|
+
/**
|
|
45
|
+
* The HTML class names for this element
|
|
46
|
+
*/
|
|
47
|
+
className: PropTypes.string,
|
|
48
|
+
/**
|
|
49
|
+
* The React-written, css properties for this element.
|
|
50
|
+
*/
|
|
51
|
+
style: PropTypes.objectOf(PropTypes.string),
|
|
52
|
+
/**
|
|
53
|
+
* The progress bar percentage
|
|
54
|
+
*/
|
|
55
|
+
progress: PropTypes.number,
|
|
56
|
+
/**
|
|
57
|
+
* The progress bar color
|
|
58
|
+
*/
|
|
59
|
+
progressBarColor: PropTypes.string
|
|
60
|
+
};
|
|
61
|
+
Card.defaultProps = {
|
|
62
|
+
progressBarColor: 'main'
|
|
63
|
+
};
|
|
64
|
+
Card.Section = Section;
|
|
65
|
+
Card.Group = Group;
|
|
66
|
+
export default Card;
|