@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,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.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
|
|
@@ -9,6 +9,7 @@ import styleNames from '@pareto-engineering/bem/exports';
|
|
|
9
9
|
|
|
10
10
|
import { Choice } from "./common";
|
|
11
11
|
import { FormDescription, FormLabel, InputWrapper } from "../../common";
|
|
12
|
+
import "./styles.scss";
|
|
12
13
|
const baseClassName = styleNames.base;
|
|
13
14
|
const componentClassName = 'choices-input';
|
|
14
15
|
|
|
@@ -35,39 +36,34 @@ const ChoicesInput = ({
|
|
|
35
36
|
inputSpan,
|
|
36
37
|
desktopInputSpan,
|
|
37
38
|
...otherProps
|
|
38
|
-
}) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
className: "s-1",
|
|
67
|
-
description: description,
|
|
68
|
-
name: name
|
|
69
|
-
})));
|
|
70
|
-
};
|
|
39
|
+
}) => /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(FormLabel, {
|
|
40
|
+
name: name,
|
|
41
|
+
color: labelColor,
|
|
42
|
+
optional: optional,
|
|
43
|
+
columnSpan: labelSpan,
|
|
44
|
+
desktopColumnSpan: desktopLabelSpan
|
|
45
|
+
// {...otherProps}
|
|
46
|
+
}, label), /*#__PURE__*/React.createElement(InputWrapper, {
|
|
47
|
+
id: id,
|
|
48
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
49
|
+
style: style,
|
|
50
|
+
columnSpan: inputSpan,
|
|
51
|
+
desktopColumnSpan: desktopInputSpan
|
|
52
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: ['choices', spaceBetween && 'space-between'].filter(Boolean).join(' ')
|
|
54
|
+
}, options.map(choice => /*#__PURE__*/React.createElement(Choice, _extends({
|
|
55
|
+
className: `x-${color}`,
|
|
56
|
+
key: choice.value,
|
|
57
|
+
name: name,
|
|
58
|
+
id: `${name}-${choice.value}`,
|
|
59
|
+
multiple: multiple,
|
|
60
|
+
validate: validate,
|
|
61
|
+
disabled: disabled
|
|
62
|
+
}, otherProps, choice)))), /*#__PURE__*/React.createElement(FormDescription, {
|
|
63
|
+
className: "s-1",
|
|
64
|
+
description: description,
|
|
65
|
+
name: name
|
|
66
|
+
})));
|
|
71
67
|
ChoicesInput.propTypes = {
|
|
72
68
|
/**
|
|
73
69
|
* The HTML id for this element
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
/* eslint-disable import/no-extraneous-dependencies -- required here */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import { useFormikContext } from 'formik';
|
|
6
6
|
import { LexicalComposer } from '@lexical/react/LexicalComposer';
|
|
7
7
|
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
|
|
@@ -15,6 +15,7 @@ import { AutoLinkNode, LinkNode } from '@lexical/link';
|
|
|
15
15
|
import { ListItemNode, ListNode } from '@lexical/list';
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
17
17
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
18
|
+
import "./styles.scss";
|
|
18
19
|
|
|
19
20
|
// Local Definitions
|
|
20
21
|
|
|
@@ -47,9 +48,6 @@ const EditorInput = ({
|
|
|
47
48
|
showDebugger
|
|
48
49
|
// ...otherProps
|
|
49
50
|
}) => {
|
|
50
|
-
useInsertionEffect(() => {
|
|
51
|
-
import("./styles.scss");
|
|
52
|
-
}, []);
|
|
53
51
|
const formik = useFormikContext();
|
|
54
52
|
const setInitialValue = () => {
|
|
55
53
|
const value = formik.values[name];
|
|
@@ -1,11 +1,12 @@
|
|
|
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 {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useField } from 'formik';
|
|
8
8
|
import { FormLabel, FormDescription, InputWrapper } from "../../common";
|
|
9
|
+
import "./styles.scss";
|
|
9
10
|
|
|
10
11
|
// Local Definitions
|
|
11
12
|
|
|
@@ -35,9 +36,6 @@ const LinkInput = ({
|
|
|
35
36
|
desktopInputSpan
|
|
36
37
|
// ...otherProps
|
|
37
38
|
}) => {
|
|
38
|
-
useInsertionEffect(() => {
|
|
39
|
-
import("./styles.scss");
|
|
40
|
-
}, []);
|
|
41
39
|
const [field] = useField({
|
|
42
40
|
name,
|
|
43
41
|
validate
|
|
@@ -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 } from 'react';
|
|
4
4
|
import { useField } from 'formik';
|
|
5
5
|
import { useRelayEnvironment, fetchQuery } from 'react-relay';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import "./styles.scss";
|
|
7
8
|
|
|
8
9
|
// Local Definitions
|
|
9
10
|
|
|
@@ -40,9 +41,6 @@ const QueryCombobox = ({
|
|
|
40
41
|
promptCreateNewOption
|
|
41
42
|
// ...otherProps
|
|
42
43
|
}) => {
|
|
43
|
-
useInsertionEffect(() => {
|
|
44
|
-
import("./styles.scss");
|
|
45
|
-
}, []);
|
|
46
44
|
const [, meta, helpers] = useField({
|
|
47
45
|
name,
|
|
48
46
|
validate
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useState,
|
|
3
|
+
import { useState, memo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ import styleNames from '@pareto-engineering/bem/exports';
|
|
|
8
8
|
|
|
9
9
|
import { Rating } from "./common";
|
|
10
10
|
import { FormLabel, InputWrapper } from "../../common";
|
|
11
|
+
import "./styles.scss";
|
|
11
12
|
const baseClassName = styleNames.base;
|
|
12
13
|
const componentClassName = 'ratings-input';
|
|
13
14
|
|
|
@@ -34,9 +35,6 @@ const RatingsInput = ({
|
|
|
34
35
|
desktopInputSpan
|
|
35
36
|
// ...otherProps
|
|
36
37
|
}) => {
|
|
37
|
-
useInsertionEffect(() => {
|
|
38
|
-
import("./styles.scss");
|
|
39
|
-
}, []);
|
|
40
38
|
const [hover, setHover] = useState(null);
|
|
41
39
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormLabel, {
|
|
42
40
|
name: name,
|
|
@@ -1,12 +1,13 @@
|
|
|
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 {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import { useField } from 'formik';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
8
8
|
import { LoadingCircle } from "../../../a";
|
|
9
9
|
import { FormLabel, FormDescription, InputWrapper } from "../../common";
|
|
10
|
+
import "./styles.scss";
|
|
10
11
|
|
|
11
12
|
// Local Definitions
|
|
12
13
|
|
|
@@ -37,9 +38,6 @@ const SelectInput = ({
|
|
|
37
38
|
desktopInputSpan
|
|
38
39
|
// ...otherProps
|
|
39
40
|
}) => {
|
|
40
|
-
useInsertionEffect(() => {
|
|
41
|
-
import("./styles.scss");
|
|
42
|
-
}, []);
|
|
43
41
|
const [field] = useField({
|
|
44
42
|
name,
|
|
45
43
|
validate
|
|
@@ -1,11 +1,12 @@
|
|
|
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 {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useField } from 'formik';
|
|
8
8
|
import { FormLabel, FormDescription, InputWrapper } from "../../common";
|
|
9
|
+
import "./styles.scss";
|
|
9
10
|
|
|
10
11
|
// Local Definitions
|
|
11
12
|
|
|
@@ -37,9 +38,6 @@ const TextInput = ({
|
|
|
37
38
|
symbol,
|
|
38
39
|
...otherProps
|
|
39
40
|
}) => {
|
|
40
|
-
useInsertionEffect(() => {
|
|
41
|
-
import("./styles.scss");
|
|
42
|
-
}, []);
|
|
43
41
|
const [field] = useField({
|
|
44
42
|
name,
|
|
45
43
|
validate
|
|
@@ -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.12 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { useField } from 'formik';
|
|
@@ -9,6 +9,7 @@ import { useField } from 'formik';
|
|
|
9
9
|
// Local Definitions
|
|
10
10
|
|
|
11
11
|
import { FormLabel, FormDescription, InputWrapper } from "../../common";
|
|
12
|
+
import "./styles.scss";
|
|
12
13
|
const baseClassName = styleNames.base;
|
|
13
14
|
const componentClassName = 'text-area-input';
|
|
14
15
|
|
|
@@ -37,9 +38,6 @@ const TextareaInput = ({
|
|
|
37
38
|
desktopInputSpan
|
|
38
39
|
// ...otherProps
|
|
39
40
|
}) => {
|
|
40
|
-
useInsertionEffect(() => {
|
|
41
|
-
import("./styles.scss");
|
|
42
|
-
}, []);
|
|
43
41
|
const [field] = useField({
|
|
44
42
|
name,
|
|
45
43
|
validate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.61",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@lexical/react": "^0.11.3",
|
|
54
|
-
"@pareto-engineering/assets": "^4.0.0-alpha.
|
|
54
|
+
"@pareto-engineering/assets": "^4.0.0-alpha.61",
|
|
55
55
|
"@pareto-engineering/bem": "^4.0.0-alpha.20",
|
|
56
56
|
"@pareto-engineering/styles": "^4.0.0-alpha.57",
|
|
57
57
|
"@pareto-engineering/utils": "^4.0.0-alpha.46",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"relay-test-utils": "^15.0.0"
|
|
72
72
|
},
|
|
73
73
|
"browserslist": "> 2%",
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b369858a6dea3f90d666846140b2b2a666850c30"
|
|
75
75
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -25,35 +25,29 @@ const AnimatedBlobs = ({
|
|
|
25
25
|
width,
|
|
26
26
|
opacity,
|
|
27
27
|
// ...otherProps
|
|
28
|
-
}) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<div className="shape-blob" />
|
|
52
|
-
<div className="shape-blob one" />
|
|
53
|
-
<div className="shape-blob two" />
|
|
54
|
-
</div>
|
|
55
|
-
)
|
|
56
|
-
}
|
|
28
|
+
}) => (
|
|
29
|
+
<div
|
|
30
|
+
id={id}
|
|
31
|
+
className={[
|
|
32
|
+
baseClassName,
|
|
33
|
+
componentClassName,
|
|
34
|
+
userClassName,
|
|
35
|
+
]
|
|
36
|
+
.filter((e) => e)
|
|
37
|
+
.join(' ')}
|
|
38
|
+
style={{
|
|
39
|
+
...style,
|
|
40
|
+
'--blob-color':`var(--${color})`,
|
|
41
|
+
'--height' :height,
|
|
42
|
+
'--opacity' :opacity,
|
|
43
|
+
'--width' :width,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
<div className="shape-blob" />
|
|
47
|
+
<div className="shape-blob one" />
|
|
48
|
+
<div className="shape-blob two" />
|
|
49
|
+
</div>
|
|
50
|
+
)
|
|
57
51
|
|
|
58
52
|
AnimatedBlobs.propTypes = {
|
|
59
53
|
/**
|
|
@@ -3,7 +3,6 @@ import * as React from 'react'
|
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
useEffect,
|
|
6
|
-
useInsertionEffect,
|
|
7
6
|
} from 'react'
|
|
8
7
|
|
|
9
8
|
import PropTypes from 'prop-types'
|
|
@@ -14,6 +13,8 @@ import { useApp } from 'ui/a'
|
|
|
14
13
|
|
|
15
14
|
import { Gradient } from './webGIRenderer'
|
|
16
15
|
|
|
16
|
+
import './styles.scss'
|
|
17
|
+
|
|
17
18
|
// Local Definitions
|
|
18
19
|
|
|
19
20
|
const baseClassName = styleNames.base
|
|
@@ -27,10 +28,6 @@ const AnimatedGradient = ({
|
|
|
27
28
|
className: userClassName,
|
|
28
29
|
// ...otherProps
|
|
29
30
|
}) => {
|
|
30
|
-
useInsertionEffect(() => {
|
|
31
|
-
import('./styles.scss')
|
|
32
|
-
}, [])
|
|
33
|
-
|
|
34
31
|
const { userTheme } = useApp()
|
|
35
32
|
|
|
36
33
|
const isClient = typeof window !== 'undefined'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.1.1-alpha.1 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
const baseClassName = styleNames.base
|
|
11
11
|
|
|
12
12
|
const componentClassName = 'blur-overlay'
|
|
@@ -17,28 +17,22 @@ const BlurOverlay = ({
|
|
|
17
17
|
style,
|
|
18
18
|
children,
|
|
19
19
|
blur,
|
|
20
|
-
}) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
style={style}
|
|
37
|
-
>
|
|
38
|
-
{ children }
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
20
|
+
}) => (
|
|
21
|
+
<div
|
|
22
|
+
id={id}
|
|
23
|
+
className={[
|
|
24
|
+
baseClassName,
|
|
25
|
+
componentClassName,
|
|
26
|
+
userClassName,
|
|
27
|
+
blur && styleNames.modifierActive,
|
|
28
|
+
]
|
|
29
|
+
.filter((e) => e)
|
|
30
|
+
.join(' ')}
|
|
31
|
+
style={style}
|
|
32
|
+
>
|
|
33
|
+
{ children }
|
|
34
|
+
</div>
|
|
35
|
+
)
|
|
42
36
|
|
|
43
37
|
BlurOverlay.propTypes = {
|
|
44
38
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
import { Tree, useContentTree } from './common'
|
|
12
12
|
|
|
@@ -26,10 +26,6 @@ const ContentTree = ({
|
|
|
26
26
|
color,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
useInsertionEffect(() => {
|
|
30
|
-
import('./styles.scss')
|
|
31
|
-
}, [])
|
|
32
|
-
|
|
33
29
|
const contentTree = useContentTree(target, selectors)
|
|
34
30
|
|
|
35
31
|
return (
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
10
8
|
import { Card } from 'ui'
|
|
11
9
|
|
|
10
|
+
import './styles.scss'
|
|
11
|
+
|
|
12
12
|
// Local Definitions
|
|
13
13
|
|
|
14
14
|
import { Message } from './common'
|
|
@@ -31,37 +31,31 @@ const Conversation = ({
|
|
|
31
31
|
children,
|
|
32
32
|
backgroundColor,
|
|
33
33
|
// ...otherProps
|
|
34
|
-
}) =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
}) => (
|
|
35
|
+
<ConversationContext.Provider
|
|
36
|
+
value={{
|
|
37
|
+
ourColor,
|
|
38
|
+
theirColor,
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<Card
|
|
42
|
+
id={id}
|
|
43
|
+
className={[
|
|
44
|
+
baseClassName,
|
|
45
|
+
componentClassName,
|
|
46
|
+
userClassName,
|
|
47
|
+
`y-${backgroundColor}`,
|
|
48
|
+
]
|
|
49
|
+
.filter((e) => e)
|
|
50
|
+
.join(' ')}
|
|
51
|
+
style={style}
|
|
45
52
|
>
|
|
46
|
-
<Card
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`y-${backgroundColor}`,
|
|
53
|
-
]
|
|
54
|
-
.filter((e) => e)
|
|
55
|
-
.join(' ')}
|
|
56
|
-
style={style}
|
|
57
|
-
>
|
|
58
|
-
<Card.Section>
|
|
59
|
-
{children}
|
|
60
|
-
</Card.Section>
|
|
61
|
-
</Card>
|
|
62
|
-
</ConversationContext.Provider>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
53
|
+
<Card.Section>
|
|
54
|
+
{children}
|
|
55
|
+
</Card.Section>
|
|
56
|
+
</Card>
|
|
57
|
+
</ConversationContext.Provider>
|
|
58
|
+
)
|
|
65
59
|
|
|
66
60
|
Conversation.propTypes = {
|
|
67
61
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useInsertionEffect } from 'react'
|
|
5
|
-
|
|
6
4
|
import PropTypes from 'prop-types'
|
|
7
5
|
|
|
8
6
|
import styleNames from '@pareto-engineering/bem/exports'
|
|
9
7
|
|
|
8
|
+
import './styles.scss'
|
|
9
|
+
|
|
10
10
|
// Local Definitions
|
|
11
11
|
|
|
12
12
|
const baseClassName = styleNames.base
|
|
@@ -26,33 +26,27 @@ const DotInfo = ({
|
|
|
26
26
|
colorFalse,
|
|
27
27
|
colorEmpty,
|
|
28
28
|
// ...otherProps
|
|
29
|
-
}) =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'--height':height,
|
|
51
|
-
...style,
|
|
52
|
-
}}
|
|
53
|
-
/>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
29
|
+
}) => (
|
|
30
|
+
<div
|
|
31
|
+
id={id}
|
|
32
|
+
className={[
|
|
33
|
+
|
|
34
|
+
baseClassName,
|
|
35
|
+
booleanValue === false && `x-${colorFalse}`,
|
|
36
|
+
booleanValue === true && `x-${colorTrue}`,
|
|
37
|
+
[null, undefined].includes(booleanValue) && `empty x-${colorEmpty}`,
|
|
38
|
+
|
|
39
|
+
componentClassName,
|
|
40
|
+
userClassName,
|
|
41
|
+
]
|
|
42
|
+
.filter((e) => e)
|
|
43
|
+
.join(' ')}
|
|
44
|
+
style={{
|
|
45
|
+
'--height':height,
|
|
46
|
+
...style,
|
|
47
|
+
}}
|
|
48
|
+
/>
|
|
49
|
+
)
|
|
56
50
|
|
|
57
51
|
DotInfo.propTypes = {
|
|
58
52
|
/**
|