@pareto-engineering/design-system 4.0.0-alpha.60 → 4.0.0-alpha.61
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 +2 -5
- 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 +12 -17
- 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 +27 -34
- 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/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
|
|
|
@@ -20,28 +20,23 @@ const ToggleSwitch = ({
|
|
|
20
20
|
checked,
|
|
21
21
|
size
|
|
22
22
|
// ...otherProps
|
|
23
|
-
}) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
onChange: handleOnChange
|
|
41
|
-
}), /*#__PURE__*/React.createElement("label", {
|
|
42
|
-
htmlFor: "switch"
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
23
|
+
}) => /*#__PURE__*/React.createElement("button", {
|
|
24
|
+
id: id,
|
|
25
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
26
|
+
style: {
|
|
27
|
+
'--size': size,
|
|
28
|
+
...style
|
|
29
|
+
},
|
|
30
|
+
type: "button"
|
|
31
|
+
// {...otherProps}
|
|
32
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
33
|
+
type: "checkbox",
|
|
34
|
+
id: "switch",
|
|
35
|
+
checked: checked,
|
|
36
|
+
onChange: handleOnChange
|
|
37
|
+
}), /*#__PURE__*/React.createElement("label", {
|
|
38
|
+
htmlFor: "switch"
|
|
39
|
+
}));
|
|
45
40
|
ToggleSwitch.propTypes = {
|
|
46
41
|
/**
|
|
47
42
|
* The HTML id for this element
|
|
@@ -1,7 +1,6 @@
|
|
|
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 0.2.4 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useInsertionEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
|
|
7
6
|
// Package-level Imports
|
|
@@ -29,9 +28,6 @@ const Button = ({
|
|
|
29
28
|
arrowDirection,
|
|
30
29
|
...otherProps
|
|
31
30
|
}) => {
|
|
32
|
-
useInsertionEffect(() => {
|
|
33
|
-
import("./styles.scss");
|
|
34
|
-
}, []);
|
|
35
31
|
const buttonText = isSimple ? /*#__PURE__*/React.createElement("span", {
|
|
36
32
|
className: styleNames.modifierUnderlined
|
|
37
33
|
}, children) : children;
|
|
@@ -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
|
|
|
@@ -15,16 +15,11 @@ const Group = ({
|
|
|
15
15
|
style,
|
|
16
16
|
children,
|
|
17
17
|
...otherProps
|
|
18
|
-
}) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
id: id,
|
|
24
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
25
|
-
style: style
|
|
26
|
-
}, otherProps), children);
|
|
27
|
-
};
|
|
18
|
+
}) => /*#__PURE__*/React.createElement("div", _extends({
|
|
19
|
+
id: id,
|
|
20
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
21
|
+
style: style
|
|
22
|
+
}, otherProps), children);
|
|
28
23
|
Group.propTypes = {
|
|
29
24
|
/**
|
|
30
25
|
* The HTML id for this element
|
package/dist/es/b/Card/Card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
import { ProgressBar } from "../..";
|
|
7
6
|
import { Group, Section } from "./common";
|
|
7
|
+
import "./styles.scss";
|
|
8
8
|
|
|
9
9
|
// Local Definitions
|
|
10
10
|
|
|
@@ -21,21 +21,16 @@ const Card = ({
|
|
|
21
21
|
children,
|
|
22
22
|
progress,
|
|
23
23
|
progressBarColor
|
|
24
|
-
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color: progressBarColor,
|
|
35
|
-
progress: progress,
|
|
36
|
-
height: ".5em"
|
|
37
|
-
}), children);
|
|
38
|
-
};
|
|
24
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
id: id,
|
|
26
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
27
|
+
style: style
|
|
28
|
+
}, progress && /*#__PURE__*/React.createElement(ProgressBar, {
|
|
29
|
+
attached: true,
|
|
30
|
+
color: progressBarColor,
|
|
31
|
+
progress: progress,
|
|
32
|
+
height: ".5em"
|
|
33
|
+
}), children);
|
|
39
34
|
Card.propTypes = {
|
|
40
35
|
/**
|
|
41
36
|
* 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 { SnapScroller } from "../../../..";
|
|
7
|
+
import "./styles.scss";
|
|
8
8
|
|
|
9
9
|
// Local Definitions
|
|
10
10
|
|
|
@@ -19,9 +19,6 @@ const Group = ({
|
|
|
19
19
|
desktopType,
|
|
20
20
|
...otherProps
|
|
21
21
|
}) => {
|
|
22
|
-
useInsertionEffect(() => {
|
|
23
|
-
import("./styles.scss");
|
|
24
|
-
}, []);
|
|
25
22
|
const Wrapper = type === 'snap-scroller' ? SnapScroller : 'div';
|
|
26
23
|
const wrapperProps = type === 'snap-scroller' && desktopType !== 'snap-scroller' ? {
|
|
27
24
|
noScrollOnDesktop: true
|
package/dist/es/b/Logo/Logo.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useMemo
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { SVG } from "../../a";
|
|
7
|
+
import "./styles.scss";
|
|
7
8
|
|
|
8
9
|
// Local Definitions
|
|
9
10
|
|
|
@@ -50,9 +51,6 @@ const Logo = ({
|
|
|
50
51
|
square
|
|
51
52
|
// ...otherProps
|
|
52
53
|
}) => {
|
|
53
|
-
useInsertionEffect(() => {
|
|
54
|
-
import("./styles.scss");
|
|
55
|
-
}, []);
|
|
56
54
|
const contentMap = square ? contentMapSquare : contentMapWithName;
|
|
57
55
|
const svgConfig = useMemo(() => contentMap[variant], [variant]);
|
|
58
56
|
return /*#__PURE__*/React.createElement(SVG, {
|
package/dist/es/b/Page/Page.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.0 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useApp } from "../../a";
|
|
@@ -9,8 +9,7 @@ import { useApp } from "../../a";
|
|
|
9
9
|
// Imports from the component folder
|
|
10
10
|
import { PageHelmet, Section } from "./common";
|
|
11
11
|
import Context from "./Context";
|
|
12
|
-
|
|
13
|
-
// import('./styles.scss')
|
|
12
|
+
import "./styles.scss";
|
|
14
13
|
|
|
15
14
|
// Local Definitions
|
|
16
15
|
const baseClassName = styleNames.base;
|
|
@@ -31,9 +30,6 @@ const Page = ({
|
|
|
31
30
|
Background,
|
|
32
31
|
...otherProps
|
|
33
32
|
}) => {
|
|
34
|
-
useInsertionEffect(() => {
|
|
35
|
-
import("./styles.scss");
|
|
36
|
-
}, []);
|
|
37
33
|
const {
|
|
38
34
|
userTheme
|
|
39
35
|
} = useApp();
|
|
@@ -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 { useApp } from "../../a";
|
|
7
|
+
import "./styles.scss";
|
|
8
8
|
|
|
9
9
|
// Local Definitions
|
|
10
10
|
|
|
@@ -50,9 +50,6 @@ const SocialMediaButton = ({
|
|
|
50
50
|
...otherProps
|
|
51
51
|
}) => {
|
|
52
52
|
const applicationContext = useApp();
|
|
53
|
-
useInsertionEffect(() => {
|
|
54
|
-
import("./styles.scss");
|
|
55
|
-
}, []);
|
|
56
53
|
const content = type && defaultsMap[type];
|
|
57
54
|
const href = link || applicationContext?.SOCIAL?.[content?.link];
|
|
58
55
|
return /*#__PURE__*/React.createElement("a", {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { useApp, ToggleSwitch } from "../../a";
|
|
7
|
+
import "./styles.scss";
|
|
7
8
|
|
|
8
9
|
// Local Definitions
|
|
9
10
|
|
|
@@ -23,9 +24,6 @@ const ThemeSelector = ({
|
|
|
23
24
|
userTheme,
|
|
24
25
|
setPreferredTheme
|
|
25
26
|
} = useApp();
|
|
26
|
-
useInsertionEffect(() => {
|
|
27
|
-
import("./styles.scss");
|
|
28
|
-
}, []);
|
|
29
27
|
const loopThemes = useCallback(() => {
|
|
30
28
|
const current = themes.indexOf(userTheme);
|
|
31
29
|
setPreferredTheme(themes[(current + 1) % themes.length]);
|
package/dist/es/b/Title/Title.js
CHANGED
|
@@ -1,15 +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 0.3.1 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useInsertionEffect } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
|
|
7
6
|
// Package-level Imports
|
|
8
7
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
9
8
|
|
|
10
|
-
// Component-level imports
|
|
11
|
-
// import('./styles.scss')
|
|
12
|
-
|
|
13
9
|
// Helper Definition
|
|
14
10
|
const baseClassName = styleNames.base;
|
|
15
11
|
const componentClassName = 'title';
|
|
@@ -29,22 +25,17 @@ const Title = ({
|
|
|
29
25
|
subtitleStyle,
|
|
30
26
|
subtitleProps
|
|
31
27
|
// ...otherProps
|
|
32
|
-
}) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, headingProps), heading), subtitle && /*#__PURE__*/React.createElement(SubtitleWrapper, _extends({
|
|
44
|
-
className: [subtitleClassName, styleNames.subtitle].filter(e => e).join(' '),
|
|
45
|
-
style: subtitleStyle
|
|
46
|
-
}, subtitleProps), subtitle));
|
|
47
|
-
};
|
|
28
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
id: id,
|
|
30
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
31
|
+
style: style
|
|
32
|
+
}, /*#__PURE__*/React.createElement(HeadingWrapper, _extends({
|
|
33
|
+
className: [headingClassName, styleNames.heading].filter(e => e).join(' '),
|
|
34
|
+
style: headingStyle
|
|
35
|
+
}, headingProps), heading), subtitle && /*#__PURE__*/React.createElement(SubtitleWrapper, _extends({
|
|
36
|
+
className: [subtitleClassName, styleNames.subtitle].filter(e => e).join(' '),
|
|
37
|
+
style: subtitleStyle
|
|
38
|
+
}, subtitleProps), subtitle));
|
|
48
39
|
Title.propTypes = {
|
|
49
40
|
/**
|
|
50
41
|
* The HTML id for this element
|
|
@@ -6,6 +6,7 @@ import { useHistory } from 'react-router-dom';
|
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import ContentSlidesContext from "./Context";
|
|
8
8
|
import { Slide, HorizontalMenu, Sidebar, Navigator } from "./common";
|
|
9
|
+
import "./styles.scss";
|
|
9
10
|
|
|
10
11
|
// Local Definitions
|
|
11
12
|
|
|
@@ -48,9 +49,6 @@ const ContentSlides = ({
|
|
|
48
49
|
isDebug
|
|
49
50
|
// ...otherProps
|
|
50
51
|
}) => {
|
|
51
|
-
useInsertionEffect(() => {
|
|
52
|
-
import("./styles.scss");
|
|
53
|
-
}, []);
|
|
54
52
|
const history = useHistory();
|
|
55
53
|
const [state, dispatch] = useReducer(reducer, {
|
|
56
54
|
currentStepIndex: 0
|
package/dist/es/c/Modal/Modal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
import { ModalHeader } from "./common";
|
|
6
|
+
import "./styles.scss";
|
|
7
7
|
|
|
8
8
|
// Local Definitions
|
|
9
9
|
|
|
@@ -22,23 +22,18 @@ const Modal = ({
|
|
|
22
22
|
color,
|
|
23
23
|
close
|
|
24
24
|
// ...otherProps
|
|
25
|
-
}) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
color: color
|
|
38
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: "modal-body"
|
|
40
|
-
}, children));
|
|
41
|
-
};
|
|
25
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
id: id,
|
|
27
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
28
|
+
style: style
|
|
29
|
+
// {...otherProps}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
31
|
+
title: title,
|
|
32
|
+
close: close,
|
|
33
|
+
color: color
|
|
34
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "modal-body"
|
|
36
|
+
}, children));
|
|
42
37
|
Modal.propTypes = {
|
|
43
38
|
/**
|
|
44
39
|
* 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 {
|
|
3
|
+
import { useState } 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 { Button } from "../../b";
|
|
9
|
+
import "./styles.scss";
|
|
9
10
|
const baseClassName = styleNames.base;
|
|
10
11
|
const componentClassName = 'shortener';
|
|
11
12
|
|
|
@@ -24,9 +25,6 @@ const Shortener = ({
|
|
|
24
25
|
separator,
|
|
25
26
|
countLetters
|
|
26
27
|
}) => {
|
|
27
|
-
useInsertionEffect(() => {
|
|
28
|
-
import("./styles.scss");
|
|
29
|
-
}, []);
|
|
30
28
|
const [displayFull, setDisplayFull] = useState(false);
|
|
31
29
|
const text = children || '';
|
|
32
30
|
const excerpt = countLetters ? text.slice(0, limit) : text.split(separator).slice(0, limit).join(separator);
|
|
@@ -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,9 +21,6 @@ const SocialMediaShareButton = ({
|
|
|
21
21
|
type,
|
|
22
22
|
color
|
|
23
23
|
}) => {
|
|
24
|
-
useInsertionEffect(() => {
|
|
25
|
-
import("./styles.scss");
|
|
26
|
-
}, []);
|
|
27
24
|
const isServer = typeof window === 'undefined';
|
|
28
25
|
const link = isServer ? '' : window.location.href;
|
|
29
26
|
|
|
@@ -1,9 +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 { memo
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { TextInput, TextareaInput, ChoicesInput, SelectInput, QueryCombobox, QuerySelect, RatingsInput, Checkbox, QueryChoices, LinkInput, EditorInput } from "../fields";
|
|
7
|
+
import "./styles.scss";
|
|
7
8
|
|
|
8
9
|
// Local Definitions
|
|
9
10
|
|
|
@@ -21,9 +22,6 @@ const FormInput = ({
|
|
|
21
22
|
disabled,
|
|
22
23
|
...otherProps
|
|
23
24
|
}) => {
|
|
24
|
-
useInsertionEffect(() => {
|
|
25
|
-
import("./styles.scss");
|
|
26
|
-
}, []);
|
|
27
25
|
const newClassName = [className, componentClassName].filter(Boolean).join(' ');
|
|
28
26
|
if (type === 'textarea') {
|
|
29
27
|
return /*#__PURE__*/React.createElement(TextareaInput, _extends({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useState,
|
|
3
|
+
import { useState, useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Button } from "../../../b";
|
|
6
6
|
import { FormikContext } from 'formik';
|
|
7
|
+
import "./styles.scss";
|
|
7
8
|
|
|
8
9
|
// Local Definitions
|
|
9
10
|
|
|
@@ -19,9 +20,6 @@ const Debugger = ({
|
|
|
19
20
|
initialIsOpen
|
|
20
21
|
// ...otherProps
|
|
21
22
|
}) => {
|
|
22
|
-
useInsertionEffect(() => {
|
|
23
|
-
import("./styles.scss");
|
|
24
|
-
}, []);
|
|
25
23
|
const [isOpen, setIsOpen] = useState(initialIsOpen);
|
|
26
24
|
const toggleDebugger = () => setIsOpen(!isOpen);
|
|
27
25
|
const formikContext = useContext(FormikContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useInsertionEffect } from 'react';
|
|
4
3
|
import { useField } from 'formik';
|
|
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
|
|
|
@@ -22,9 +22,6 @@ const Description = ({
|
|
|
22
22
|
color
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
useInsertionEffect(() => {
|
|
26
|
-
import("./styles.scss");
|
|
27
|
-
}, []);
|
|
28
25
|
const [, meta] = useField(name);
|
|
29
26
|
const hasError = meta.touched && meta.error;
|
|
30
27
|
if (hasError || description) {
|
|
@@ -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
|
|
|
@@ -20,20 +20,15 @@ const InputWrapper = ({
|
|
|
20
20
|
columnSpan,
|
|
21
21
|
desktopColumnSpan
|
|
22
22
|
// ...otherProps
|
|
23
|
-
}) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'--column-span': columnSpan || 'var(--columns)',
|
|
33
|
-
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
34
|
-
}
|
|
35
|
-
}, children);
|
|
36
|
-
};
|
|
23
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
id: id,
|
|
25
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
26
|
+
style: {
|
|
27
|
+
...style,
|
|
28
|
+
'--column-span': columnSpan || 'var(--columns)',
|
|
29
|
+
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
30
|
+
}
|
|
31
|
+
}, children);
|
|
37
32
|
InputWrapper.propTypes = {
|
|
38
33
|
/**
|
|
39
34
|
* 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
|
|
|
@@ -24,22 +24,17 @@ const Label = ({
|
|
|
24
24
|
columnSpan,
|
|
25
25
|
desktopColumnSpan
|
|
26
26
|
// ...otherProps
|
|
27
|
-
}) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
39
|
-
}
|
|
40
|
-
// {...otherProps}
|
|
41
|
-
}, children, optional && ' (Optional)');
|
|
42
|
-
};
|
|
27
|
+
}) => /*#__PURE__*/React.createElement(Wrapper, {
|
|
28
|
+
htmlFor: Wrapper === 'label' ? name : undefined,
|
|
29
|
+
id: id,
|
|
30
|
+
className: [baseClassName, componentClassName, userClassName, `x-${color}`].filter(e => e).join(' '),
|
|
31
|
+
style: {
|
|
32
|
+
...style,
|
|
33
|
+
'--column-span': columnSpan || 'var(--columns)',
|
|
34
|
+
'--column-span-md': desktopColumnSpan || 'var(--columns)'
|
|
35
|
+
}
|
|
36
|
+
// {...otherProps}
|
|
37
|
+
}, children, optional && ' (Optional)');
|
|
43
38
|
Label.propTypes = {
|
|
44
39
|
/**
|
|
45
40
|
* The HTML id for this element
|
|
@@ -1,11 +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.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 { useField } from 'formik';
|
|
8
7
|
import { FormLabel, FormDescription, InputWrapper } from "../../common";
|
|
8
|
+
import "./styles.scss";
|
|
9
9
|
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
@@ -31,9 +31,6 @@ const Checkbox = ({
|
|
|
31
31
|
desktopInputSpan
|
|
32
32
|
// ...otherProps
|
|
33
33
|
}) => {
|
|
34
|
-
useInsertionEffect(() => {
|
|
35
|
-
import("./styles.scss");
|
|
36
|
-
}, []);
|
|
37
34
|
const [field] = useField({
|
|
38
35
|
name,
|
|
39
36
|
type: 'checkbox'
|