@pareto-engineering/design-system 4.0.0-alpha.60 → 4.0.0-alpha.62
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 +5 -6
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +4 -4
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +5 -6
- package/dist/cjs/a/ContentTree/ContentTree.js +7 -6
- package/dist/cjs/a/Conversation/Conversation.js +7 -6
- package/dist/cjs/a/DotInfo/DotInfo.js +5 -6
- package/dist/cjs/a/Figure/Figure.js +5 -6
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +4 -7
- package/dist/cjs/a/IconList/IconList.js +4 -7
- package/dist/cjs/a/Label/Label.js +4 -7
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +5 -6
- package/dist/cjs/a/MetaCard/MetaCard.js +5 -6
- package/dist/cjs/a/People/People.js +7 -6
- package/dist/cjs/a/Popover/Popover.js +6 -4
- package/dist/cjs/a/ProgressBar/ProgressBar.js +5 -6
- package/dist/cjs/a/Quote/Quote.js +5 -6
- package/dist/cjs/a/Removable/Removable.js +5 -6
- package/dist/cjs/a/SVG/SVG.js +3 -5
- package/dist/cjs/a/SnapScroller/SnapScroller.js +4 -4
- package/dist/cjs/a/Spinner/Spinner.js +5 -6
- package/dist/cjs/a/TextSteps/TextSteps.js +6 -9
- package/dist/cjs/a/TextSteps/styles.scss +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +5 -5
- package/dist/cjs/a/Tip/Tip.js +5 -6
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +5 -6
- package/dist/cjs/b/Button/Button.js +3 -7
- package/dist/cjs/b/Button/common/Group/Group.js +4 -7
- package/dist/cjs/b/Card/Card.js +5 -6
- package/dist/cjs/b/Card/common/Group/Group.js +4 -7
- package/dist/cjs/b/Logo/Logo.js +4 -4
- package/dist/cjs/b/Page/Page.js +3 -6
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -7
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +4 -4
- package/dist/cjs/b/Title/Title.js +3 -9
- package/dist/cjs/c/ContentSlides/ContentSlides.js +4 -4
- package/dist/cjs/c/Modal/Modal.js +5 -6
- package/dist/cjs/c/Shortener/Shortener.js +6 -4
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +5 -6
- package/dist/cjs/f/FormInput/FormInput.js +3 -5
- package/dist/cjs/f/common/Debugger/Debugger.js +4 -4
- package/dist/cjs/f/common/Description/Description.js +5 -6
- package/dist/cjs/f/common/InputWrapper/InputWrapper.js +5 -6
- package/dist/cjs/f/common/Label/Label.js +5 -6
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +4 -7
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +3 -5
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +7 -4
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +3 -5
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +6 -4
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +6 -4
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -5
- package/dist/cjs/f/fields/TextInput/TextInput.js +3 -5
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +3 -5
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +18 -23
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +2 -4
- package/dist/es/a/BlurOverlay/BlurOverlay.js +6 -11
- package/dist/es/a/ContentTree/ContentTree.js +1 -4
- package/dist/es/a/Conversation/Conversation.js +11 -16
- package/dist/es/a/DotInfo/DotInfo.js +9 -14
- package/dist/es/a/Figure/Figure.js +10 -15
- package/dist/es/a/HamburgerButton/HamburgerButton.js +13 -18
- package/dist/es/a/IconList/IconList.js +10 -15
- package/dist/es/a/Label/Label.js +6 -11
- package/dist/es/a/LoadingCircle/LoadingCircle.js +32 -37
- package/dist/es/a/MetaCard/MetaCard.js +6 -11
- package/dist/es/a/People/People.js +11 -16
- package/dist/es/a/Popover/Popover.js +2 -4
- package/dist/es/a/ProgressBar/ProgressBar.js +12 -17
- package/dist/es/a/Quote/Quote.js +14 -19
- package/dist/es/a/Removable/Removable.js +13 -18
- package/dist/es/a/SVG/SVG.js +2 -4
- package/dist/es/a/SnapScroller/SnapScroller.js +2 -4
- package/dist/es/a/Spinner/Spinner.js +9 -14
- package/dist/es/a/TextSteps/TextSteps.js +16 -21
- package/dist/es/a/TextSteps/styles.scss +1 -1
- package/dist/es/a/Timestamp/Timestamp.js +3 -5
- package/dist/es/a/Tip/Tip.js +9 -14
- package/dist/es/a/ToggleSwitch/ToggleSwitch.js +18 -23
- package/dist/es/b/Button/Button.js +0 -4
- package/dist/es/b/Button/common/Group/Group.js +6 -11
- package/dist/es/b/Card/Card.js +11 -16
- package/dist/es/b/Card/common/Group/Group.js +1 -4
- package/dist/es/b/Logo/Logo.js +2 -4
- package/dist/es/b/Page/Page.js +2 -6
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +1 -4
- package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -4
- package/dist/es/b/Title/Title.js +11 -20
- package/dist/es/c/ContentSlides/ContentSlides.js +1 -3
- package/dist/es/c/Modal/Modal.js +13 -18
- package/dist/es/c/Shortener/Shortener.js +2 -4
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -4
- package/dist/es/f/FormInput/FormInput.js +2 -4
- package/dist/es/f/common/Debugger/Debugger.js +2 -4
- package/dist/es/f/common/Description/Description.js +1 -4
- package/dist/es/f/common/InputWrapper/InputWrapper.js +10 -15
- package/dist/es/f/common/Label/Label.js +12 -17
- package/dist/es/f/fields/Checkbox/Checkbox.js +1 -4
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +30 -34
- package/dist/es/f/fields/EditorInput/EditorInput.js +2 -4
- package/dist/es/f/fields/LinkInput/LinkInput.js +2 -4
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +2 -4
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +2 -4
- package/dist/es/f/fields/SelectInput/SelectInput.js +2 -4
- package/dist/es/f/fields/TextInput/TextInput.js +2 -4
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -4
- package/package.json +3 -3
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +25 -31
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +2 -5
- package/src/ui/a/BlurOverlay/BlurOverlay.jsx +18 -24
- package/src/ui/a/ContentTree/ContentTree.jsx +2 -6
- package/src/ui/a/Conversation/Conversation.jsx +26 -32
- package/src/ui/a/DotInfo/DotInfo.jsx +23 -29
- package/src/ui/a/Figure/Figure.jsx +21 -27
- package/src/ui/a/HamburgerButton/HamburgerButton.jsx +27 -33
- package/src/ui/a/IconList/IconList.jsx +22 -28
- package/src/ui/a/Label/Label.jsx +21 -27
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +43 -49
- package/src/ui/a/MetaCard/MetaCard.jsx +19 -25
- package/src/ui/a/People/People.jsx +25 -31
- package/src/ui/a/Popover/Popover.jsx +3 -5
- package/src/ui/a/ProgressBar/ProgressBar.jsx +25 -31
- package/src/ui/a/Quote/Quote.jsx +26 -32
- package/src/ui/a/Removable/Removable.jsx +22 -29
- package/src/ui/a/SVG/SVG.jsx +3 -5
- package/src/ui/a/SnapScroller/SnapScroller.jsx +2 -4
- package/src/ui/a/Spinner/Spinner.jsx +19 -25
- package/src/ui/a/TextSteps/TextSteps.jsx +31 -38
- package/src/ui/a/TextSteps/styles.scss +1 -1
- package/src/ui/a/Timestamp/Timestamp.jsx +5 -7
- package/src/ui/a/Tip/Tip.jsx +22 -28
- package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +31 -37
- package/src/ui/b/Button/Button.jsx +0 -5
- package/src/ui/b/Button/common/Group/Group.jsx +18 -24
- package/src/ui/b/Card/Card.jsx +25 -31
- package/src/ui/b/Card/common/Group/Group.jsx +2 -5
- package/src/ui/b/Logo/Logo.jsx +3 -5
- package/src/ui/b/Page/Page.jsx +2 -7
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +2 -7
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +3 -5
- package/src/ui/b/Title/Title.jsx +36 -46
- package/src/ui/c/ContentSlides/ContentSlides.jsx +2 -4
- package/src/ui/c/Modal/Modal.jsx +24 -30
- package/src/ui/c/Shortener/Shortener.jsx +3 -5
- package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +2 -6
- package/src/ui/f/FormInput/FormInput.jsx +3 -5
- package/src/ui/f/common/Debugger/Debugger.jsx +3 -5
- package/src/ui/f/common/Description/Description.jsx +2 -6
- package/src/ui/f/common/InputWrapper/InputWrapper.jsx +21 -27
- package/src/ui/f/common/Label/Label.jsx +25 -31
- package/src/ui/f/fields/Checkbox/Checkbox.jsx +2 -6
- package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +48 -52
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +2 -5
- package/src/ui/f/fields/LinkInput/LinkInput.jsx +2 -5
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +3 -5
- package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +3 -5
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +3 -5
- package/src/ui/f/fields/TextInput/TextInput.jsx +3 -5
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +3 -5
- package/tests/__snapshots__/Storyshots.test.js.snap +1 -1
- package/dist/cjs/b/Title/styles.scss +0 -16
- package/dist/es/b/Title/styles.scss +0 -16
- package/src/ui/b/Title/styles.scss +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -19,20 +19,15 @@ const Figure = ({
|
|
|
19
19
|
src,
|
|
20
20
|
alt,
|
|
21
21
|
caption
|
|
22
|
-
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, /*#__PURE__*/React.createElement("figure", null, /*#__PURE__*/React.createElement("img", {
|
|
32
|
-
src: src,
|
|
33
|
-
alt: alt
|
|
34
|
-
}), /*#__PURE__*/React.createElement("figcaption", null, caption || alt)));
|
|
35
|
-
};
|
|
22
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
id: id,
|
|
24
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
25
|
+
style: style
|
|
26
|
+
// {...otherProps}
|
|
27
|
+
}, /*#__PURE__*/React.createElement("figure", null, /*#__PURE__*/React.createElement("img", {
|
|
28
|
+
src: src,
|
|
29
|
+
alt: alt
|
|
30
|
+
}), /*#__PURE__*/React.createElement("figcaption", null, caption || alt)));
|
|
36
31
|
Figure.propTypes = {
|
|
37
32
|
/**
|
|
38
33
|
* The HTML id for this element
|
|
@@ -1,9 +1,9 @@
|
|
|
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.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useInsertionEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
import "./styles.scss";
|
|
7
7
|
|
|
8
8
|
// Local Definitions
|
|
9
9
|
|
|
@@ -23,23 +23,18 @@ const HamburgerButton = ({
|
|
|
23
23
|
ariaLabel,
|
|
24
24
|
color,
|
|
25
25
|
...otherProps
|
|
26
|
-
}) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
className: "hamburger-box"
|
|
39
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
40
|
-
className: "hamburger-inner"
|
|
41
|
-
})));
|
|
42
|
-
};
|
|
26
|
+
}) => /*#__PURE__*/React.createElement("button", _extends({
|
|
27
|
+
id: id,
|
|
28
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, 'hamburger', `hamburger--${hamburgerType}`, isOpen && 'is-active'].filter(e => e).join(' '),
|
|
29
|
+
style: style,
|
|
30
|
+
type: "button",
|
|
31
|
+
"aria-label": ariaLabel,
|
|
32
|
+
"aria-controls": "navigation"
|
|
33
|
+
}, otherProps), /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
className: "hamburger-box"
|
|
35
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
className: "hamburger-inner"
|
|
37
|
+
})));
|
|
43
38
|
HamburgerButton.propTypes = {
|
|
44
39
|
/**
|
|
45
40
|
* The HTML id for this element
|
|
@@ -1,10 +1,10 @@
|
|
|
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.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useInsertionEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
6
|
import { Item } from "./common";
|
|
7
|
+
import "./styles.scss";
|
|
8
8
|
|
|
9
9
|
// Local Definitions
|
|
10
10
|
|
|
@@ -22,20 +22,15 @@ const IconList = ({
|
|
|
22
22
|
icon,
|
|
23
23
|
iconHover,
|
|
24
24
|
...otherProps
|
|
25
|
-
}) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'--list-icon': icon && `"${icon}"`,
|
|
35
|
-
'--list-icon-hover': iconHover && `"${iconHover}"`
|
|
36
|
-
}
|
|
37
|
-
}, otherProps), children);
|
|
38
|
-
};
|
|
25
|
+
}) => /*#__PURE__*/React.createElement("ul", _extends({
|
|
26
|
+
id: id,
|
|
27
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
28
|
+
style: {
|
|
29
|
+
...style,
|
|
30
|
+
'--list-icon': icon && `"${icon}"`,
|
|
31
|
+
'--list-icon-hover': iconHover && `"${iconHover}"`
|
|
32
|
+
}
|
|
33
|
+
}, otherProps), children);
|
|
39
34
|
IconList.propTypes = {
|
|
40
35
|
/**
|
|
41
36
|
* The HTML id for this element
|
package/dist/es/a/Label/Label.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useInsertionEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
import "./styles.scss";
|
|
7
7
|
|
|
8
8
|
// Local Definitions
|
|
9
9
|
|
|
@@ -23,16 +23,11 @@ const Label = ({
|
|
|
23
23
|
isGhost,
|
|
24
24
|
as: Wrapper,
|
|
25
25
|
...props
|
|
26
|
-
}) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
id: id,
|
|
32
|
-
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isCompact && styleNames.modifierCompact, isGhost && styleNames.modifierGhost].filter(e => e).join(' '),
|
|
33
|
-
style: style
|
|
34
|
-
}, props), children);
|
|
35
|
-
};
|
|
26
|
+
}) => /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
27
|
+
id: id,
|
|
28
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`, isCompact && styleNames.modifierCompact, isGhost && styleNames.modifierGhost].filter(e => e).join(' '),
|
|
29
|
+
style: style
|
|
30
|
+
}, props), children);
|
|
36
31
|
Label.propTypes = {
|
|
37
32
|
/**
|
|
38
33
|
* The HTML id for this element
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -21,42 +21,37 @@ const LoadingCircle = ({
|
|
|
21
21
|
animationDuration,
|
|
22
22
|
style
|
|
23
23
|
// ...otherProps
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
fill: "none",
|
|
56
|
-
strokeLinecap: strokeLinecap,
|
|
57
|
-
strokeMiterlimit: "10"
|
|
58
|
-
})));
|
|
59
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
27
|
+
style: {
|
|
28
|
+
'--height-width': heightWidth,
|
|
29
|
+
'--stroke-width': strokeWidth,
|
|
30
|
+
...style
|
|
31
|
+
}
|
|
32
|
+
// {...otherProps}
|
|
33
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
34
|
+
viewBox: "25 25 50 50",
|
|
35
|
+
className: "svg-circle",
|
|
36
|
+
id: id,
|
|
37
|
+
x: "0px",
|
|
38
|
+
y: "0px",
|
|
39
|
+
xmlSpace: "preserve",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
version: "1.1",
|
|
42
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
43
|
+
style: {
|
|
44
|
+
'--animation-duration': `${animationDuration}s`
|
|
45
|
+
}
|
|
46
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
47
|
+
className: "path",
|
|
48
|
+
cx: "50",
|
|
49
|
+
cy: "50",
|
|
50
|
+
r: "20",
|
|
51
|
+
fill: "none",
|
|
52
|
+
strokeLinecap: strokeLinecap,
|
|
53
|
+
strokeMiterlimit: "10"
|
|
54
|
+
})));
|
|
60
55
|
LoadingCircle.propTypes = {
|
|
61
56
|
/**
|
|
62
57
|
* The HTML id for this element
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -19,16 +19,11 @@ const MetaCard = ({
|
|
|
19
19
|
children,
|
|
20
20
|
hasBackgroundBlur,
|
|
21
21
|
spaced
|
|
22
|
-
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
id: id,
|
|
28
|
-
className: [baseClassName, componentClassName, userClassName, hasBackgroundBlur && styleNames.modifierBlur, spaced && styleNames.modifierSpaced].filter(e => e).join(' '),
|
|
29
|
-
style: style
|
|
30
|
-
}, children);
|
|
31
|
-
};
|
|
22
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
id: id,
|
|
24
|
+
className: [baseClassName, componentClassName, userClassName, hasBackgroundBlur && styleNames.modifierBlur, spaced && styleNames.modifierSpaced].filter(e => e).join(' '),
|
|
25
|
+
style: style
|
|
26
|
+
}, children);
|
|
32
27
|
MetaCard.propTypes = {
|
|
33
28
|
/**
|
|
34
29
|
* The HTML id for this element
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
5
|
|
|
7
6
|
// Local Definitions
|
|
8
7
|
|
|
9
8
|
import { Person } from "./common";
|
|
9
|
+
import "./styles.scss";
|
|
10
10
|
const baseClassName = styleNames.base;
|
|
11
11
|
const componentClassName = 'people';
|
|
12
12
|
|
|
@@ -21,21 +21,16 @@ const People = ({
|
|
|
21
21
|
children,
|
|
22
22
|
columnWidth
|
|
23
23
|
// ...otherProps
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'--column-width': columnWidth
|
|
35
|
-
}
|
|
36
|
-
// {...otherProps}
|
|
37
|
-
}, children);
|
|
38
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName, 'u1'].filter(e => e).join(' '),
|
|
27
|
+
style: {
|
|
28
|
+
...style,
|
|
29
|
+
'--image-size': imageSize,
|
|
30
|
+
'--column-width': columnWidth
|
|
31
|
+
}
|
|
32
|
+
// {...otherProps}
|
|
33
|
+
}, children);
|
|
39
34
|
People.propTypes = {
|
|
40
35
|
/**
|
|
41
36
|
* The HTML id for this element
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useRef
|
|
3
|
+
import { useRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
import { useDynamicPosition } from "../../utils";
|
|
9
|
+
import "./styles.scss";
|
|
9
10
|
const baseClassName = styleNames.base;
|
|
10
11
|
const componentClassName = 'popover';
|
|
11
12
|
|
|
@@ -26,9 +27,6 @@ const Popover = ({
|
|
|
26
27
|
offsetYPx
|
|
27
28
|
// ...otherProps
|
|
28
29
|
}) => {
|
|
29
|
-
useInsertionEffect(() => {
|
|
30
|
-
import("./styles.scss");
|
|
31
|
-
}, []);
|
|
32
30
|
const popoverRef = useRef(null);
|
|
33
31
|
const {
|
|
34
32
|
primaryPosition,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -21,22 +21,17 @@ const ProgressBar = ({
|
|
|
21
21
|
progress,
|
|
22
22
|
height
|
|
23
23
|
// ...otherProps
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
"data-length": "50%"
|
|
37
|
-
// {...otherProps}
|
|
38
|
-
});
|
|
39
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, attached && styleNames.modifierAttached, color && `x-${color}`, userClassName].filter(e => e).join(' '),
|
|
27
|
+
style: {
|
|
28
|
+
'--progress': progress,
|
|
29
|
+
'--height': height,
|
|
30
|
+
...style
|
|
31
|
+
},
|
|
32
|
+
"data-length": "50%"
|
|
33
|
+
// {...otherProps}
|
|
34
|
+
});
|
|
40
35
|
|
|
41
36
|
ProgressBar.propTypes = {
|
|
42
37
|
/**
|
package/dist/es/a/Quote/Quote.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -21,24 +21,19 @@ const Quote = ({
|
|
|
21
21
|
author,
|
|
22
22
|
color
|
|
23
23
|
// ...otherProps
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
className: "quotation c-x md-s0 s-1"
|
|
38
|
-
}, children)), /*#__PURE__*/React.createElement("figcaption", {
|
|
39
|
-
className: "figcaption"
|
|
40
|
-
}, /*#__PURE__*/React.createElement("cite", null, author)));
|
|
41
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("figure", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
27
|
+
style: style
|
|
28
|
+
// {...otherProps}
|
|
29
|
+
}, /*#__PURE__*/React.createElement("blockquote", {
|
|
30
|
+
cite: source,
|
|
31
|
+
className: "blockquote uc"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
33
|
+
className: "quotation c-x md-s0 s-1"
|
|
34
|
+
}, children)), /*#__PURE__*/React.createElement("figcaption", {
|
|
35
|
+
className: "figcaption"
|
|
36
|
+
}, /*#__PURE__*/React.createElement("cite", null, author)));
|
|
42
37
|
Quote.propTypes = {
|
|
43
38
|
/**
|
|
44
39
|
* The HTML id for this element
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -19,23 +19,18 @@ const Removable = ({
|
|
|
19
19
|
handleClose,
|
|
20
20
|
children
|
|
21
21
|
// ...otherProps
|
|
22
|
-
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
onClick: handleClose || (() => null)
|
|
35
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
36
|
-
className: "icon"
|
|
37
|
-
}, "Y")));
|
|
38
|
-
};
|
|
22
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
id: id,
|
|
24
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
25
|
+
style: style
|
|
26
|
+
// {...otherProps}
|
|
27
|
+
}, children, /*#__PURE__*/React.createElement("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
className: "close-button",
|
|
30
|
+
onClick: handleClose || (() => null)
|
|
31
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
className: "icon"
|
|
33
|
+
}, "Y")));
|
|
39
34
|
Removable.propTypes = {
|
|
40
35
|
/**
|
|
41
36
|
* The HTML id for this element
|
package/dist/es/a/SVG/SVG.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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 { 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";
|
|
8
|
+
import "./styles.scss";
|
|
8
9
|
|
|
9
10
|
// Local Definitions
|
|
10
11
|
|
|
@@ -27,9 +28,6 @@ const SVG = ({
|
|
|
27
28
|
animated,
|
|
28
29
|
...otherProps
|
|
29
30
|
}) => {
|
|
30
|
-
useInsertionEffect(() => {
|
|
31
|
-
import("./styles.scss");
|
|
32
|
-
});
|
|
33
31
|
const useSVGProps = useMemo(() => ({
|
|
34
32
|
className: useClassName,
|
|
35
33
|
source,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useState, useRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
|
+
import "./styles.scss";
|
|
6
7
|
|
|
7
8
|
// Local Definitions
|
|
8
9
|
|
|
@@ -20,9 +21,6 @@ const SnapScroller = ({
|
|
|
20
21
|
noScrollOnDesktop
|
|
21
22
|
// ...otherProps
|
|
22
23
|
}) => {
|
|
23
|
-
useInsertionEffect(() => {
|
|
24
|
-
import("./styles.scss");
|
|
25
|
-
}, []);
|
|
26
24
|
const [isDragging, setIsDragging] = useState(false);
|
|
27
25
|
const [startX, setStartX] = useState(0);
|
|
28
26
|
const [startScrollX, setStartScrollX] = useState(0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
5
|
+
import "./styles.scss";
|
|
6
6
|
|
|
7
7
|
// Local Definitions
|
|
8
8
|
|
|
@@ -18,19 +18,14 @@ const Spinner = ({
|
|
|
18
18
|
style,
|
|
19
19
|
color
|
|
20
20
|
// ...otherProps
|
|
21
|
-
}) => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// {...otherProps}
|
|
30
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
className: "loader"
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
21
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
id: id,
|
|
23
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
24
|
+
style: style
|
|
25
|
+
// {...otherProps}
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "loader"
|
|
28
|
+
}));
|
|
34
29
|
Spinner.propTypes = {
|
|
35
30
|
/**
|
|
36
31
|
* The HTML id for this element
|
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useInsertionEffect } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
4
|
+
import "./styles.scss";
|
|
5
5
|
|
|
6
6
|
// Local Definitions
|
|
7
7
|
|
|
8
8
|
const baseClassName = styleNames.base;
|
|
9
|
-
const componentClassName = 'steps';
|
|
9
|
+
const componentClassName = 'text-steps';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* This is the component description.
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const TextSteps = ({
|
|
15
15
|
id,
|
|
16
16
|
className: userClassName,
|
|
17
17
|
style,
|
|
18
18
|
items,
|
|
19
19
|
title
|
|
20
|
-
}) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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 = {
|
|
20
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
id: id,
|
|
22
|
+
className: [baseClassName, componentClassName, userClassName, 'grid'].filter(e => e).join(' '),
|
|
23
|
+
style: style
|
|
24
|
+
}, title && /*#__PURE__*/React.createElement("p", {
|
|
25
|
+
className: "title h4"
|
|
26
|
+
}, title), items.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: " number h3 start-1 span-2 md-start-1 md-span-2"
|
|
28
|
+
}, /*#__PURE__*/React.createElement("p", null, i + 1)), /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: " description"
|
|
30
|
+
}, /*#__PURE__*/React.createElement("p", null, item)))));
|
|
31
|
+
TextSteps.propTypes = {
|
|
37
32
|
/**
|
|
38
33
|
* The HTML id for this element
|
|
39
34
|
*/
|
|
@@ -58,4 +53,4 @@ Steps.propTypes = {
|
|
|
58
53
|
*/
|
|
59
54
|
title: PropTypes.string
|
|
60
55
|
};
|
|
61
|
-
export default
|
|
56
|
+
export default TextSteps;
|