@pareto-engineering/design-system 4.0.0-alpha.3 → 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/babel.config.js +24 -16
- package/dist/cjs/a/AppContext/Context.js +1 -1
- package/dist/cjs/a/AppContext/ContextProvider.js +19 -15
- package/dist/cjs/a/AppContext/index.js +4 -4
- package/dist/cjs/a/AppContext/useTheme.js +7 -7
- package/dist/cjs/a/ContentTree/ContentTree.js +8 -8
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +12 -12
- package/dist/cjs/a/ContentTree/common/Tree/index.js +1 -1
- package/dist/cjs/a/ContentTree/common/index.js +3 -3
- package/dist/cjs/a/ContentTree/common/useContentTree.js +14 -14
- package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +10 -11
- package/dist/cjs/a/ContentTree/index.js +1 -1
- package/dist/cjs/a/Conversation/Context.js +1 -1
- package/dist/cjs/a/Conversation/Conversation.js +7 -7
- package/dist/cjs/a/Conversation/common/Message/Message.js +8 -8
- package/dist/cjs/a/Conversation/common/Message/index.js +1 -1
- package/dist/cjs/a/Conversation/common/index.js +1 -1
- package/dist/cjs/a/Conversation/index.js +3 -3
- package/dist/cjs/a/DotInfo/DotInfo.js +11 -15
- package/dist/cjs/a/DotInfo/index.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +6 -6
- package/dist/cjs/a/Figure/index.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +17 -20
- package/dist/cjs/a/HamburgerButton/index.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +19 -26
- package/dist/cjs/a/IconList/common/Item/Item.js +17 -24
- package/dist/cjs/a/IconList/common/Item/index.js +1 -1
- package/dist/cjs/a/IconList/common/index.js +1 -1
- package/dist/cjs/a/IconList/index.js +1 -1
- package/dist/cjs/a/Label/Label.js +7 -7
- package/dist/cjs/a/Label/index.js +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +11 -15
- package/dist/cjs/a/LoadingCircle/index.js +1 -1
- package/dist/cjs/a/People/People.js +9 -13
- package/dist/cjs/a/People/common/Person/Person.js +7 -7
- package/dist/cjs/a/People/common/Person/index.js +1 -1
- package/dist/cjs/a/People/common/index.js +1 -1
- package/dist/cjs/a/People/index.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +10 -10
- package/dist/cjs/a/Popover/index.js +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +11 -15
- package/dist/cjs/a/ProgressBar/index.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +7 -7
- package/dist/cjs/a/Quote/index.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +23 -26
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +9 -11
- package/dist/cjs/a/SVG/common/UseSVG/index.js +1 -1
- package/dist/cjs/a/SVG/common/index.js +1 -1
- package/dist/cjs/a/SVG/index.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +6 -6
- package/dist/cjs/a/SnapScroller/index.js +1 -1
- package/dist/cjs/a/Spinner/Spinner.js +7 -7
- package/dist/cjs/a/Spinner/index.js +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +12 -12
- package/dist/cjs/a/Timestamp/index.js +1 -1
- package/dist/cjs/a/index.js +20 -20
- package/dist/cjs/b/Button/Button.js +20 -22
- package/dist/cjs/b/Button/index.js +1 -1
- package/dist/cjs/b/Logo/Logo.js +13 -13
- package/dist/cjs/b/Logo/index.js +1 -1
- package/dist/cjs/b/Page/Context.js +1 -1
- package/dist/cjs/b/Page/Page.js +16 -19
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +39 -43
- package/dist/cjs/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/cjs/b/Page/common/Section/Section.js +13 -16
- package/dist/cjs/b/Page/common/Section/index.js +1 -1
- package/dist/cjs/b/Page/common/index.js +2 -2
- package/dist/cjs/b/Page/index.js +3 -3
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +21 -25
- package/dist/cjs/b/SocialMediaButton/index.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +9 -9
- package/dist/cjs/b/ThemeSelector/index.js +1 -1
- package/dist/cjs/b/Title/Title.js +9 -6
- package/dist/cjs/b/Title/index.js +1 -1
- package/dist/cjs/b/index.js +6 -6
- package/dist/cjs/c/ContentSlides/ContentSlides.js +33 -30
- package/dist/cjs/c/ContentSlides/Context.js +1 -1
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +8 -8
- package/dist/cjs/c/ContentSlides/common/HorizontalMenu/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +7 -7
- package/dist/cjs/c/ContentSlides/common/Navigator/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +5 -5
- package/dist/cjs/c/ContentSlides/common/Sidebar/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/Slide/Slide.js +6 -6
- package/dist/cjs/c/ContentSlides/common/Slide/index.js +1 -1
- package/dist/cjs/c/ContentSlides/common/index.js +4 -4
- package/dist/cjs/c/ContentSlides/index.js +3 -3
- package/dist/cjs/c/Modal/Modal.js +6 -6
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +5 -5
- package/dist/cjs/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/cjs/c/Modal/common/index.js +1 -1
- package/dist/cjs/c/Modal/index.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +2 -1
- package/dist/cjs/c/Shortener/Shortener.js +10 -10
- package/dist/cjs/c/Shortener/index.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +12 -12
- package/dist/cjs/c/SocialMediaShareButton/index.js +1 -1
- package/dist/cjs/c/index.js +5 -5
- package/dist/cjs/f/FormInput/FormInput.js +14 -17
- package/dist/cjs/f/FormInput/index.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +8 -8
- package/dist/cjs/f/common/Debugger/index.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +8 -8
- package/dist/cjs/f/common/Description/index.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +7 -7
- package/dist/cjs/f/common/Label/index.js +1 -1
- package/dist/cjs/f/common/index.js +3 -3
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +7 -7
- package/dist/cjs/f/fields/Checkbox/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +12 -16
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +7 -7
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/common/index.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/index.js +1 -1
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +25 -30
- package/dist/cjs/f/fields/QueryChoices/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +20 -22
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +12 -12
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +14 -17
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +22 -26
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/index.js +3 -3
- package/dist/cjs/f/fields/QueryCombobox/index.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +11 -11
- package/dist/cjs/f/fields/QuerySelect/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +9 -9
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +7 -7
- package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/common/index.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/index.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +10 -10
- package/dist/cjs/f/fields/SelectInput/index.js +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +8 -8
- package/dist/cjs/f/fields/TextInput/index.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +8 -8
- package/dist/cjs/f/fields/TextareaInput/index.js +1 -1
- package/dist/cjs/f/fields/index.js +9 -9
- package/dist/cjs/f/index.js +3 -3
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/r/SwitchRouteMap/SwitchRouteMap.js +7 -10
- package/dist/cjs/r/SwitchRouteMap/index.js +1 -1
- package/dist/cjs/r/common/PrivateRoute/PrivateRoute.js +13 -16
- package/dist/cjs/r/common/PrivateRoute/index.js +1 -1
- package/dist/cjs/r/common/index.js +1 -1
- package/dist/cjs/r/index.js +2 -2
- package/dist/cjs/test/QueryLoader/QueryLoader.js +4 -4
- package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +1 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +4 -4
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +1 -1
- package/dist/cjs/test/QueryLoader/common/index.js +1 -1
- package/dist/cjs/test/QueryLoader/index.js +1 -1
- package/dist/cjs/test/index.js +1 -1
- package/dist/cjs/utils/hooks/index.js +2 -2
- package/dist/cjs/utils/hooks/useDynamicPosition.js +24 -24
- package/dist/cjs/utils/hooks/useWindowSize.js +6 -6
- package/dist/cjs/utils/index.js +2 -2
- 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
package/dist/es/b/Title/Title.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
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';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
5
6
|
|
|
6
7
|
// Package-level Imports
|
|
7
8
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
8
9
|
|
|
9
10
|
// Component-level imports
|
|
10
|
-
import(
|
|
11
|
+
// import('./styles.scss')
|
|
11
12
|
|
|
12
13
|
// Helper Definition
|
|
13
14
|
const baseClassName = styleNames.base;
|
|
@@ -28,17 +29,22 @@ const Title = ({
|
|
|
28
29
|
subtitleStyle,
|
|
29
30
|
subtitleProps
|
|
30
31
|
// ...otherProps
|
|
31
|
-
}) =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
}) => {
|
|
33
|
+
useInsertionEffect(() => {
|
|
34
|
+
import("./styles.scss");
|
|
35
|
+
}, []);
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
id: id,
|
|
38
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
39
|
+
style: style
|
|
40
|
+
}, /*#__PURE__*/React.createElement(HeadingWrapper, _extends({
|
|
41
|
+
className: [headingClassName, styleNames.heading].filter(e => e).join(' '),
|
|
42
|
+
style: headingStyle
|
|
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
|
+
};
|
|
42
48
|
Title.propTypes = {
|
|
43
49
|
/**
|
|
44
50
|
* The HTML id for this element
|
|
@@ -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, useReducer } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useHistory } from 'react-router-dom';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
@@ -48,7 +48,7 @@ const ContentSlides = ({
|
|
|
48
48
|
isDebug
|
|
49
49
|
// ...otherProps
|
|
50
50
|
}) => {
|
|
51
|
-
|
|
51
|
+
useInsertionEffect(() => {
|
|
52
52
|
import("./styles.scss");
|
|
53
53
|
}, []);
|
|
54
54
|
const history = useHistory();
|
|
@@ -97,7 +97,7 @@ const ContentSlides = ({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
useInsertionEffect(() => {
|
|
101
101
|
setCurrentStep(currentStepIndex);
|
|
102
102
|
}, [currentStepIndex]);
|
|
103
103
|
return /*#__PURE__*/React.createElement(ContentSlidesContext.Provider, {
|
package/dist/es/c/Modal/Modal.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
|
import { ModalHeader } from "./common";
|
|
@@ -23,7 +23,7 @@ const Modal = ({
|
|
|
23
23
|
close
|
|
24
24
|
// ...otherProps
|
|
25
25
|
}) => {
|
|
26
|
-
|
|
26
|
+
useInsertionEffect(() => {
|
|
27
27
|
import("./styles.scss");
|
|
28
28
|
}, []);
|
|
29
29
|
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%;
|
|
@@ -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, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ const Shortener = ({
|
|
|
24
24
|
separator,
|
|
25
25
|
countLetters
|
|
26
26
|
}) => {
|
|
27
|
-
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
28
|
import("./styles.scss");
|
|
29
29
|
}, []);
|
|
30
30
|
const [displayFull, setDisplayFull] = useState(false);
|
|
@@ -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 SocialMediaShareButton = ({
|
|
|
21
21
|
type,
|
|
22
22
|
color
|
|
23
23
|
}) => {
|
|
24
|
-
|
|
24
|
+
useInsertionEffect(() => {
|
|
25
25
|
import("./styles.scss");
|
|
26
26
|
}, []);
|
|
27
27
|
const isServer = typeof window === 'undefined';
|
|
@@ -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 { memo,
|
|
4
|
+
import { memo, useInsertionEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { TextInput, TextareaInput, ChoicesInput, SelectInput, QueryCombobox, QuerySelect, RatingsInput, Checkbox, QueryChoices } from "../fields";
|
|
7
7
|
|
|
@@ -21,7 +21,7 @@ const FormInput = ({
|
|
|
21
21
|
disabled,
|
|
22
22
|
...otherProps
|
|
23
23
|
}) => {
|
|
24
|
-
|
|
24
|
+
useInsertionEffect(() => {
|
|
25
25
|
import("./styles.scss");
|
|
26
26
|
}, []);
|
|
27
27
|
const newClassName = [className, componentClassName].filter(Boolean).join(' ');
|
|
@@ -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, useInsertionEffect, useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Button } from "../../../b";
|
|
6
6
|
import { FormikContext } from 'formik';
|
|
@@ -19,7 +19,7 @@ const Debugger = ({
|
|
|
19
19
|
initialIsOpen
|
|
20
20
|
// ...otherProps
|
|
21
21
|
}) => {
|
|
22
|
-
|
|
22
|
+
useInsertionEffect(() => {
|
|
23
23
|
import("./styles.scss");
|
|
24
24
|
}, []);
|
|
25
25
|
const [isOpen, setIsOpen] = useState(initialIsOpen);
|
|
@@ -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 { useField } from 'formik';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
@@ -22,7 +22,7 @@ const Description = ({
|
|
|
22
22
|
color
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
const [field, meta] = useField(name);
|
|
@@ -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 Label = ({
|
|
|
23
23
|
as: Wrapper
|
|
24
24
|
// ...otherProps
|
|
25
25
|
}) => {
|
|
26
|
-
|
|
26
|
+
useInsertionEffect(() => {
|
|
27
27
|
import("./styles.scss");
|
|
28
28
|
}, []);
|
|
29
29
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
@@ -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 { useField } from 'formik';
|
|
@@ -26,7 +26,7 @@ const Checkbox = ({
|
|
|
26
26
|
optional
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import("./styles.scss");
|
|
31
31
|
}, []);
|
|
32
32
|
const [field] = useField({
|
|
@@ -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, memo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
|
|
@@ -32,7 +32,7 @@ const ChoicesInput = ({
|
|
|
32
32
|
disabled
|
|
33
33
|
// ...otherProps
|
|
34
34
|
}) => {
|
|
35
|
-
|
|
35
|
+
useInsertionEffect(() => {
|
|
36
36
|
import("./styles.scss");
|
|
37
37
|
}, []);
|
|
38
38
|
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 { useState,
|
|
3
|
+
import { useState, useInsertionEffect } from 'react';
|
|
4
4
|
import { useField } from 'formik';
|
|
5
5
|
import { useRelayEnvironment, fetchQuery } from 'react-relay';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -33,7 +33,7 @@ const QueryCombobox = ({
|
|
|
33
33
|
validate
|
|
34
34
|
// ...otherProps
|
|
35
35
|
}) => {
|
|
36
|
-
|
|
36
|
+
useInsertionEffect(() => {
|
|
37
37
|
import("./styles.scss");
|
|
38
38
|
}, []);
|
|
39
39
|
const [, meta, helpers] = 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);
|
|
@@ -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, useInsertionEffect, memo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ const RatingsInput = ({
|
|
|
30
30
|
optional
|
|
31
31
|
// ...otherProps
|
|
32
32
|
}) => {
|
|
33
|
-
|
|
33
|
+
useInsertionEffect(() => {
|
|
34
34
|
import("./styles.scss");
|
|
35
35
|
}, []);
|
|
36
36
|
const [hover, setHover] = useState(null);
|
|
@@ -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, 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';
|
|
@@ -32,7 +32,7 @@ const SelectInput = ({
|
|
|
32
32
|
autoComplete
|
|
33
33
|
// ...otherProps
|
|
34
34
|
}) => {
|
|
35
|
-
|
|
35
|
+
useInsertionEffect(() => {
|
|
36
36
|
import("./styles.scss");
|
|
37
37
|
}, []);
|
|
38
38
|
const [field] = useField({
|
|
@@ -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, 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';
|
|
@@ -33,7 +33,7 @@ const TextInput = ({
|
|
|
33
33
|
autoComplete
|
|
34
34
|
// ...otherProps
|
|
35
35
|
}) => {
|
|
36
|
-
|
|
36
|
+
useInsertionEffect(() => {
|
|
37
37
|
import("./styles.scss");
|
|
38
38
|
}, []);
|
|
39
39
|
const [field] = useField({
|
|
@@ -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, 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';
|
|
@@ -35,7 +35,7 @@ const TextareaInput = ({
|
|
|
35
35
|
resize
|
|
36
36
|
// ...otherProps
|
|
37
37
|
}) => {
|
|
38
|
-
|
|
38
|
+
useInsertionEffect(() => {
|
|
39
39
|
import("./styles.scss");
|
|
40
40
|
}, []);
|
|
41
41
|
const [field] = useField({
|
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.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"jest-environment-jsdom": "^29.5.0",
|
|
48
48
|
"sass-loader": "^13.2.0",
|
|
49
49
|
"storybook": "^7.0.0-rc.3",
|
|
50
|
-
"style-loader": "^3.3.
|
|
50
|
+
"style-loader": "^3.3.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@pareto-engineering/assets": "^4.0.0-alpha.3",
|
|
54
|
-
"@pareto-engineering/bem": "^4.0.0-alpha.
|
|
55
|
-
"@pareto-engineering/styles": "^4.0.0-alpha.
|
|
54
|
+
"@pareto-engineering/bem": "^4.0.0-alpha.5",
|
|
55
|
+
"@pareto-engineering/styles": "^4.0.0-alpha.5",
|
|
56
56
|
"date-fns": "^2.29.3",
|
|
57
57
|
"downshift": "^6.1.12",
|
|
58
58
|
"formik": "^2.2.9",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"relay-test-utils": "^15.0.0"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": "> 2%",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "dd704a71588b078c1c13bc1aa54b26474df3d311"
|
|
71
71
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ const ContentTree = ({
|
|
|
25
25
|
selectors,
|
|
26
26
|
// ...otherProps
|
|
27
27
|
}) => {
|
|
28
|
-
|
|
28
|
+
useInsertionEffect(() => {
|
|
29
29
|
import('./styles.scss')
|
|
30
30
|
}, [])
|
|
31
31
|
|
|
@@ -77,7 +77,7 @@ ContentTree.propTypes = {
|
|
|
77
77
|
*/
|
|
78
78
|
target:PropTypes.oneOfType([
|
|
79
79
|
PropTypes.func,
|
|
80
|
-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
|
|
80
|
+
PropTypes.shape({ current: PropTypes.instanceOf(React.Element) }),
|
|
81
81
|
]),
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const Conversation = ({
|
|
|
31
31
|
hasTriangle,
|
|
32
32
|
// ...otherProps
|
|
33
33
|
}) => {
|
|
34
|
-
|
|
34
|
+
useInsertionEffect(() => {
|
|
35
35
|
import('./styles.scss')
|
|
36
36
|
}, [])
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const DotInfo = ({
|
|
|
27
27
|
colorEmpty,
|
|
28
28
|
// ...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import('./styles.scss')
|
|
32
32
|
}, [])
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -24,7 +24,7 @@ const Figure = ({
|
|
|
24
24
|
alt,
|
|
25
25
|
caption,
|
|
26
26
|
}) => {
|
|
27
|
-
|
|
27
|
+
useInsertionEffect(() => {
|
|
28
28
|
import('./styles.scss')
|
|
29
29
|
}, [])
|
|
30
30
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const HamburgerButton = ({
|
|
|
27
27
|
color,
|
|
28
28
|
...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import('./styles.scss')
|
|
32
32
|
}, [])
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ const IconList = ({
|
|
|
28
28
|
iconHover,
|
|
29
29
|
...otherProps
|
|
30
30
|
}) => {
|
|
31
|
-
|
|
31
|
+
useInsertionEffect(() => {
|
|
32
32
|
import('./styles.scss')
|
|
33
33
|
}, [])
|
|
34
34
|
|
package/src/ui/a/Label/Label.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ const Label = ({
|
|
|
25
25
|
isCompact,
|
|
26
26
|
isGhost,
|
|
27
27
|
}) => {
|
|
28
|
-
|
|
28
|
+
useInsertionEffect(() => {
|
|
29
29
|
import('./styles.scss')
|
|
30
30
|
}, [])
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const LoadingCircle = ({
|
|
|
26
26
|
style,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const People = ({
|
|
|
27
27
|
columnWidth,
|
|
28
28
|
// ...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import('./styles.scss')
|
|
32
32
|
}, [])
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import { useRef,
|
|
4
|
+
import { useRef, useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const Popover = ({
|
|
|
31
31
|
offsetYPx,
|
|
32
32
|
// ...otherProps
|
|
33
33
|
}) => {
|
|
34
|
-
|
|
34
|
+
useInsertionEffect(() => {
|
|
35
35
|
import('./styles.scss')
|
|
36
36
|
}, [])
|
|
37
37
|
|
|
@@ -141,7 +141,7 @@ Popover.propTypes = {
|
|
|
141
141
|
*/
|
|
142
142
|
parentRef:PropTypes.oneOfType([
|
|
143
143
|
PropTypes.func,
|
|
144
|
-
PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
|
|
144
|
+
PropTypes.shape({ current: PropTypes.instanceOf(React.Element) }),
|
|
145
145
|
]),
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const ProgressBar = ({
|
|
|
26
26
|
height,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|
package/src/ui/a/Quote/Quote.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect } from 'react'
|
|
5
5
|
|
|
6
6
|
import PropTypes from 'prop-types'
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const Quote = ({
|
|
|
26
26
|
color,
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import('./styles.scss')
|
|
31
31
|
}, [])
|
|
32
32
|
|