@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.5
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/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 +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- 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/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/b/Button/Button.js +2 -1
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Page/Page.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- 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 +2 -2
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- 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/Spinner/Spinner.js +2 -2
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/b/Button/Button.js +2 -1
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +2 -2
- 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/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 +2 -2
- 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 +2 -2
- package/dist/es/f/fields/TextInput/TextInput.js +2 -2
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
- package/package.json +5 -5
- 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 +2 -2
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- 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/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/b/Button/Button.jsx +2 -1
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +2 -2
- 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/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 +2 -2
- 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 +2 -2
- package/src/ui/f/fields/TextInput/TextInput.jsx +2 -2
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
|
@@ -26,7 +26,7 @@ const ContentTree = _ref => {
|
|
|
26
26
|
selectors
|
|
27
27
|
// ...otherProps
|
|
28
28
|
} = _ref;
|
|
29
|
-
(0, React.
|
|
29
|
+
(0, React.useInsertionEffect)(() => {
|
|
30
30
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
31
31
|
}, []);
|
|
32
32
|
const contentTree = (0, _common.useContentTree)(target, selectors);
|
|
@@ -60,7 +60,7 @@ ContentTree.propTypes = {
|
|
|
60
60
|
* The reference to the parent element.
|
|
61
61
|
*/
|
|
62
62
|
target: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
63
|
-
current: _propTypes.default.instanceOf(Element)
|
|
63
|
+
current: _propTypes.default.instanceOf(React.Element)
|
|
64
64
|
})])
|
|
65
65
|
};
|
|
66
66
|
ContentTree.defaultProps = {
|
|
@@ -30,7 +30,7 @@ const Conversation = _ref => {
|
|
|
30
30
|
hasTriangle
|
|
31
31
|
// ...otherProps
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
return /*#__PURE__*/React.createElement(_Context.default.Provider, {
|
|
@@ -30,7 +30,7 @@ const DotInfo = _ref => {
|
|
|
30
30
|
colorEmpty
|
|
31
31
|
// ...otherProps
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -27,7 +27,7 @@ const Figure = _ref => {
|
|
|
27
27
|
alt,
|
|
28
28
|
caption
|
|
29
29
|
} = _ref;
|
|
30
|
-
(0, React.
|
|
30
|
+
(0, React.useInsertionEffect)(() => {
|
|
31
31
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
32
32
|
}, []);
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -31,7 +31,7 @@ const HamburgerButton = _ref => {
|
|
|
31
31
|
color,
|
|
32
32
|
...otherProps
|
|
33
33
|
} = _ref;
|
|
34
|
-
(0, React.
|
|
34
|
+
(0, React.useInsertionEffect)(() => {
|
|
35
35
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
36
36
|
}, []);
|
|
37
37
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
@@ -30,7 +30,7 @@ const IconList = _ref => {
|
|
|
30
30
|
iconHover,
|
|
31
31
|
...otherProps
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
@@ -28,7 +28,7 @@ const Label = _ref => {
|
|
|
28
28
|
isCompact,
|
|
29
29
|
isGhost
|
|
30
30
|
} = _ref;
|
|
31
|
-
(0, React.
|
|
31
|
+
(0, React.useInsertionEffect)(() => {
|
|
32
32
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
33
33
|
}, []);
|
|
34
34
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -29,7 +29,7 @@ const LoadingCircle = _ref => {
|
|
|
29
29
|
style
|
|
30
30
|
// ...otherProps
|
|
31
31
|
} = _ref;
|
|
32
|
-
(0, React.
|
|
32
|
+
(0, React.useInsertionEffect)(() => {
|
|
33
33
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
34
34
|
}, []);
|
|
35
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -27,7 +27,7 @@ const People = _ref => {
|
|
|
27
27
|
columnWidth
|
|
28
28
|
// ...otherProps
|
|
29
29
|
} = _ref;
|
|
30
|
-
(0, React.
|
|
30
|
+
(0, React.useInsertionEffect)(() => {
|
|
31
31
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
32
32
|
}, []);
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -32,7 +32,7 @@ const Popover = _ref => {
|
|
|
32
32
|
offsetYPx
|
|
33
33
|
// ...otherProps
|
|
34
34
|
} = _ref;
|
|
35
|
-
(0, React.
|
|
35
|
+
(0, React.useInsertionEffect)(() => {
|
|
36
36
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
37
37
|
}, []);
|
|
38
38
|
const popoverRef = (0, React.useRef)(null);
|
|
@@ -100,7 +100,7 @@ Popover.propTypes = {
|
|
|
100
100
|
* The reference to the parent element
|
|
101
101
|
*/
|
|
102
102
|
parentRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
103
|
-
current: _propTypes.default.instanceOf(Element)
|
|
103
|
+
current: _propTypes.default.instanceOf(React.Element)
|
|
104
104
|
})])
|
|
105
105
|
};
|
|
106
106
|
Popover.defaultProps = {
|
|
@@ -29,7 +29,7 @@ const ProgressBar = _ref => {
|
|
|
29
29
|
height
|
|
30
30
|
// ...otherProps
|
|
31
31
|
} = _ref;
|
|
32
|
-
(0, React.
|
|
32
|
+
(0, React.useInsertionEffect)(() => {
|
|
33
33
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
34
34
|
}, []);
|
|
35
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -29,7 +29,7 @@ const Quote = _ref => {
|
|
|
29
29
|
color
|
|
30
30
|
// ...otherProps
|
|
31
31
|
} = _ref;
|
|
32
|
-
(0, React.
|
|
32
|
+
(0, React.useInsertionEffect)(() => {
|
|
33
33
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
34
34
|
}, []);
|
|
35
35
|
return /*#__PURE__*/React.createElement("figure", {
|
package/dist/cjs/a/SVG/SVG.js
CHANGED
|
@@ -34,7 +34,7 @@ const SVG = _ref => {
|
|
|
34
34
|
animated,
|
|
35
35
|
...otherProps
|
|
36
36
|
} = _ref;
|
|
37
|
-
(0, React.
|
|
37
|
+
(0, React.useInsertionEffect)(() => {
|
|
38
38
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
39
|
});
|
|
40
40
|
const useSVGProps = (0, React.useMemo)(() => ({
|
|
@@ -27,7 +27,7 @@ const SnapScroller = _ref => {
|
|
|
27
27
|
noScrollOnDesktop
|
|
28
28
|
// ...otherProps
|
|
29
29
|
} = _ref;
|
|
30
|
-
(0, React.
|
|
30
|
+
(0, React.useInsertionEffect)(() => {
|
|
31
31
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
32
32
|
}, []);
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -26,7 +26,7 @@ const Spinner = _ref => {
|
|
|
26
26
|
color
|
|
27
27
|
// ...otherProps
|
|
28
28
|
} = _ref;
|
|
29
|
-
(0, React.
|
|
29
|
+
(0, React.useInsertionEffect)(() => {
|
|
30
30
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
31
31
|
}, []);
|
|
32
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -34,7 +34,7 @@ const Timestamp = _ref => {
|
|
|
34
34
|
// ...otherProps
|
|
35
35
|
as: Element
|
|
36
36
|
} = _ref;
|
|
37
|
-
(0, React.
|
|
37
|
+
(0, React.useInsertionEffect)(() => {
|
|
38
38
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
39
|
}, []);
|
|
40
40
|
const [currentDisplay, setCurrentDisplay] = (0, React.useState)(enabledFormats[0]);
|
|
@@ -8,12 +8,13 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
10
|
var _ = require("../..");
|
|
11
|
+
require("./styles.scss");
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
13
|
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); }
|
|
13
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
16
|
// Component-level imports
|
|
16
|
-
|
|
17
|
+
// import('./styles.scss')
|
|
17
18
|
|
|
18
19
|
// Helper Definition
|
|
19
20
|
const baseClassName = _exports.default.base;
|
package/dist/cjs/b/Logo/Logo.js
CHANGED
|
@@ -57,7 +57,7 @@ const Logo = _ref => {
|
|
|
57
57
|
square
|
|
58
58
|
// ...otherProps
|
|
59
59
|
} = _ref;
|
|
60
|
-
(0, React.
|
|
60
|
+
(0, React.useInsertionEffect)(() => {
|
|
61
61
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
62
62
|
}, []);
|
|
63
63
|
const contentMap = square ? contentMapSquare : contentMapWithName;
|
package/dist/cjs/b/Page/Page.js
CHANGED
|
@@ -34,7 +34,7 @@ const Page = _ref => {
|
|
|
34
34
|
helmetProps,
|
|
35
35
|
...otherProps
|
|
36
36
|
} = _ref;
|
|
37
|
-
(0, React.
|
|
37
|
+
(0, React.useInsertionEffect)(() => {
|
|
38
38
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
39
|
}, []);
|
|
40
40
|
(0, React.useEffect)(() => {
|
|
@@ -53,7 +53,7 @@ const SocialMediaButton = _ref => {
|
|
|
53
53
|
...otherProps
|
|
54
54
|
} = _ref;
|
|
55
55
|
const applicationContext = (0, _a.useApp)();
|
|
56
|
-
(0, React.
|
|
56
|
+
(0, React.useInsertionEffect)(() => {
|
|
57
57
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
58
58
|
}, []);
|
|
59
59
|
const content = type && defaultsMap[type];
|
|
@@ -33,7 +33,7 @@ const ThemeSelector = _ref => {
|
|
|
33
33
|
userTheme,
|
|
34
34
|
setPreferredTheme
|
|
35
35
|
} = (0, _a.useApp)();
|
|
36
|
-
(0, React.
|
|
36
|
+
(0, React.useInsertionEffect)(() => {
|
|
37
37
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
38
38
|
}, []);
|
|
39
39
|
const loopThemes = (0, React.useCallback)(() => {
|
|
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
14
|
// Component-level imports
|
|
15
|
-
|
|
15
|
+
// import('./styles.scss')
|
|
16
16
|
|
|
17
17
|
// Helper Definition
|
|
18
18
|
const baseClassName = _exports.default.base;
|
|
@@ -35,6 +35,9 @@ const Title = _ref => {
|
|
|
35
35
|
subtitleProps
|
|
36
36
|
// ...otherProps
|
|
37
37
|
} = _ref;
|
|
38
|
+
(0, React.useInsertionEffect)(() => {
|
|
39
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
40
|
+
}, []);
|
|
38
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
42
|
id: id,
|
|
40
43
|
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
@@ -55,7 +55,7 @@ const ContentSlides = _ref => {
|
|
|
55
55
|
isDebug
|
|
56
56
|
// ...otherProps
|
|
57
57
|
} = _ref;
|
|
58
|
-
(0, React.
|
|
58
|
+
(0, React.useInsertionEffect)(() => {
|
|
59
59
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
60
60
|
}, []);
|
|
61
61
|
const history = (0, _reactRouterDom.useHistory)();
|
|
@@ -106,7 +106,7 @@ const ContentSlides = _ref => {
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
(0, React.
|
|
109
|
+
(0, React.useInsertionEffect)(() => {
|
|
110
110
|
setCurrentStep(currentStepIndex);
|
|
111
111
|
}, [currentStepIndex]);
|
|
112
112
|
return /*#__PURE__*/React.createElement(_Context.default.Provider, {
|
|
@@ -30,7 +30,7 @@ const Modal = _ref => {
|
|
|
30
30
|
close
|
|
31
31
|
// ...otherProps
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
|
|
3
3
|
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "sass:math";
|
|
4
5
|
|
|
5
6
|
$default-background: var(--background1);
|
|
6
7
|
/* stylelint-disable-next-line color-named -- needed for rgba function */
|
|
7
8
|
$default-box-shadow: 0 10px 20px rgba(black, .2);
|
|
8
|
-
$default-padding: 1em
|
|
9
|
+
$default-padding: math.div(1em, 2);
|
|
9
10
|
$default-margin: 2em;
|
|
10
11
|
$default-max-height: 75vh;
|
|
11
12
|
$default-max-width: 90%;
|
|
@@ -30,7 +30,7 @@ const Shortener = _ref => {
|
|
|
30
30
|
separator,
|
|
31
31
|
countLetters
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
const [displayFull, setDisplayFull] = (0, React.useState)(false);
|
|
@@ -28,7 +28,7 @@ const SocialMediaShareButton = _ref => {
|
|
|
28
28
|
type,
|
|
29
29
|
color
|
|
30
30
|
} = _ref;
|
|
31
|
-
(0, React.
|
|
31
|
+
(0, React.useInsertionEffect)(() => {
|
|
32
32
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
33
33
|
}, []);
|
|
34
34
|
const isServer = typeof window === 'undefined';
|
|
@@ -28,7 +28,7 @@ const FormInput = _ref => {
|
|
|
28
28
|
disabled,
|
|
29
29
|
...otherProps
|
|
30
30
|
} = _ref;
|
|
31
|
-
(0, React.
|
|
31
|
+
(0, React.useInsertionEffect)(() => {
|
|
32
32
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
33
33
|
}, []);
|
|
34
34
|
const newClassName = [className, componentClassName].filter(Boolean).join(' ');
|
|
@@ -26,7 +26,7 @@ const Debugger = _ref => {
|
|
|
26
26
|
initialIsOpen
|
|
27
27
|
// ...otherProps
|
|
28
28
|
} = _ref;
|
|
29
|
-
(0, React.
|
|
29
|
+
(0, React.useInsertionEffect)(() => {
|
|
30
30
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
31
31
|
}, []);
|
|
32
32
|
const [isOpen, setIsOpen] = (0, React.useState)(initialIsOpen);
|
|
@@ -29,7 +29,7 @@ const Description = _ref => {
|
|
|
29
29
|
color
|
|
30
30
|
// ...otherProps
|
|
31
31
|
} = _ref;
|
|
32
|
-
(0, React.
|
|
32
|
+
(0, React.useInsertionEffect)(() => {
|
|
33
33
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
34
34
|
}, []);
|
|
35
35
|
const [field, meta] = (0, _formik.useField)(name);
|
|
@@ -30,7 +30,7 @@ const Label = _ref => {
|
|
|
30
30
|
as: Wrapper
|
|
31
31
|
// ...otherProps
|
|
32
32
|
} = _ref;
|
|
33
|
-
(0, React.
|
|
33
|
+
(0, React.useInsertionEffect)(() => {
|
|
34
34
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
35
35
|
}, []);
|
|
36
36
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -33,7 +33,7 @@ const Checkbox = _ref => {
|
|
|
33
33
|
optional
|
|
34
34
|
// ...otherProps
|
|
35
35
|
} = _ref;
|
|
36
|
-
(0, React.
|
|
36
|
+
(0, React.useInsertionEffect)(() => {
|
|
37
37
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
38
38
|
}, []);
|
|
39
39
|
const [field] = (0, _formik.useField)({
|
|
@@ -37,7 +37,7 @@ const ChoicesInput = _ref => {
|
|
|
37
37
|
disabled
|
|
38
38
|
// ...otherProps
|
|
39
39
|
} = _ref;
|
|
40
|
-
(0, React.
|
|
40
|
+
(0, React.useInsertionEffect)(() => {
|
|
41
41
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
42
42
|
}, []);
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -37,7 +37,7 @@ const QueryCombobox = _ref => {
|
|
|
37
37
|
validate
|
|
38
38
|
// ...otherProps
|
|
39
39
|
} = _ref;
|
|
40
|
-
(0, React.
|
|
40
|
+
(0, React.useInsertionEffect)(() => {
|
|
41
41
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
42
42
|
}, []);
|
|
43
43
|
const [, meta, helpers] = (0, _formik.useField)({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
|
|
3
3
|
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "sass:math";
|
|
4
5
|
|
|
5
6
|
$default-input-padding: .75em .75em .55em;
|
|
6
7
|
$default-padding: 1em;
|
|
@@ -26,7 +27,7 @@ $default-loading-circle-displacement: 1em;
|
|
|
26
27
|
padding: 0;
|
|
27
28
|
|
|
28
29
|
>.item {
|
|
29
|
-
padding: $default-padding
|
|
30
|
+
padding: math.div($default-padding, 2);
|
|
30
31
|
|
|
31
32
|
&.#{bem.$modifier-active} {
|
|
32
33
|
background-color: var(--background2);
|
|
@@ -76,12 +77,12 @@ $default-loading-circle-displacement: 1em;
|
|
|
76
77
|
>.selected-items {
|
|
77
78
|
display: flex;
|
|
78
79
|
flex-wrap: wrap;
|
|
79
|
-
gap: $default-gap
|
|
80
|
-
margin-bottom: $default-margin
|
|
80
|
+
gap: math.div($default-gap, 2);
|
|
81
|
+
margin-bottom: math.div($default-margin, 2);
|
|
81
82
|
|
|
82
83
|
>.item {
|
|
83
84
|
background-color: var(--main2);
|
|
84
|
-
padding: $default-padding
|
|
85
|
+
padding: math.div($default-padding, 4);
|
|
85
86
|
|
|
86
87
|
.close {
|
|
87
88
|
font-size: calc(var(--s-3) * 1em);
|
|
@@ -35,7 +35,7 @@ const RatingsInput = _ref => {
|
|
|
35
35
|
optional
|
|
36
36
|
// ...otherProps
|
|
37
37
|
} = _ref;
|
|
38
|
-
(0, React.
|
|
38
|
+
(0, React.useInsertionEffect)(() => {
|
|
39
39
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
40
40
|
}, []);
|
|
41
41
|
const [hover, setHover] = (0, React.useState)(null);
|
|
@@ -39,7 +39,7 @@ const SelectInput = _ref => {
|
|
|
39
39
|
autoComplete
|
|
40
40
|
// ...otherProps
|
|
41
41
|
} = _ref;
|
|
42
|
-
(0, React.
|
|
42
|
+
(0, React.useInsertionEffect)(() => {
|
|
43
43
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
44
44
|
}, []);
|
|
45
45
|
const [field] = (0, _formik.useField)({
|
|
@@ -40,7 +40,7 @@ const TextInput = _ref => {
|
|
|
40
40
|
autoComplete
|
|
41
41
|
// ...otherProps
|
|
42
42
|
} = _ref;
|
|
43
|
-
(0, React.
|
|
43
|
+
(0, React.useInsertionEffect)(() => {
|
|
44
44
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
45
45
|
}, []);
|
|
46
46
|
const [field] = (0, _formik.useField)({
|
|
@@ -40,7 +40,7 @@ const TextareaInput = _ref => {
|
|
|
40
40
|
resize
|
|
41
41
|
// ...otherProps
|
|
42
42
|
} = _ref;
|
|
43
|
-
(0, React.
|
|
43
|
+
(0, React.useInsertionEffect)(() => {
|
|
44
44
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
45
45
|
}, []);
|
|
46
46
|
const [field] = (0, _formik.useField)({
|
|
@@ -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 ContentTree = ({
|
|
|
20
20
|
selectors
|
|
21
21
|
// ...otherProps
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
24
|
import("./styles.scss");
|
|
25
25
|
}, []);
|
|
26
26
|
const contentTree = useContentTree(target, selectors);
|
|
@@ -54,7 +54,7 @@ ContentTree.propTypes = {
|
|
|
54
54
|
* The reference to the parent element.
|
|
55
55
|
*/
|
|
56
56
|
target: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
57
|
-
current: PropTypes.instanceOf(Element)
|
|
57
|
+
current: PropTypes.instanceOf(React.Element)
|
|
58
58
|
})])
|
|
59
59
|
};
|
|
60
60
|
ContentTree.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
|
|
|
@@ -25,7 +25,7 @@ const Conversation = ({
|
|
|
25
25
|
hasTriangle
|
|
26
26
|
// ...otherProps
|
|
27
27
|
}) => {
|
|
28
|
-
|
|
28
|
+
useInsertionEffect(() => {
|
|
29
29
|
import("./styles.scss");
|
|
30
30
|
}, []);
|
|
31
31
|
return /*#__PURE__*/React.createElement(ConversationContext.Provider, {
|
|
@@ -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
|
|
|
@@ -23,7 +23,7 @@ const DotInfo = ({
|
|
|
23
23
|
colorEmpty
|
|
24
24
|
// ...otherProps
|
|
25
25
|
}) => {
|
|
26
|
-
|
|
26
|
+
useInsertionEffect(() => {
|
|
27
27
|
import("./styles.scss");
|
|
28
28
|
}, []);
|
|
29
29
|
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 {
|
|
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 Figure = ({
|
|
|
20
20
|
alt,
|
|
21
21
|
caption
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
24
|
import("./styles.scss");
|
|
25
25
|
}, []);
|
|
26
26
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -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 { useInsertionEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
|
|
@@ -24,7 +24,7 @@ const HamburgerButton = ({
|
|
|
24
24
|
color,
|
|
25
25
|
...otherProps
|
|
26
26
|
}) => {
|
|
27
|
-
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
28
|
import("./styles.scss");
|
|
29
29
|
}, []);
|
|
30
30
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
@@ -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 { useInsertionEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { Item } from "./common";
|
|
@@ -23,7 +23,7 @@ const IconList = ({
|
|
|
23
23
|
iconHover,
|
|
24
24
|
...otherProps
|
|
25
25
|
}) => {
|
|
26
|
-
|
|
26
|
+
useInsertionEffect(() => {
|
|
27
27
|
import("./styles.scss");
|
|
28
28
|
}, []);
|
|
29
29
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
package/dist/es/a/Label/Label.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
|
|
|
@@ -21,7 +21,7 @@ const Label = ({
|
|
|
21
21
|
isCompact,
|
|
22
22
|
isGhost
|
|
23
23
|
}) => {
|
|
24
|
-
|
|
24
|
+
useInsertionEffect(() => {
|
|
25
25
|
import("./styles.scss");
|
|
26
26
|
}, []);
|
|
27
27
|
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 {
|
|
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", {
|