@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
|
@@ -8,20 +8,20 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _reactRelay = require("react-relay");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function
|
|
11
|
+
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); }
|
|
12
12
|
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; }
|
|
13
13
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* This is the component description.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const PreloadedTestData = _ref => {
|
|
19
|
+
let {
|
|
20
20
|
query,
|
|
21
21
|
queryReference
|
|
22
22
|
// ...otherProps
|
|
23
23
|
} = _ref;
|
|
24
|
-
|
|
24
|
+
const data = (0, _reactRelay.usePreloadedQuery)(query, queryReference);
|
|
25
25
|
return /*#__PURE__*/React.createElement("pre", null, JSON.stringify(data, null, 2));
|
|
26
26
|
};
|
|
27
27
|
PreloadedTestData.propTypes = {
|
package/dist/cjs/test/index.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "useDynamicPosition", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _useDynamicPosition.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "useWindowSize", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _useWindowSize.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -8,9 +8,9 @@ var _react = require("react");
|
|
|
8
8
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
9
9
|
var _useWindowSize = _interopRequireDefault(require("./useWindowSize"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const verticalPositions = ['top', 'bottom'];
|
|
12
|
+
const horizontalPositions = ['left', 'right'];
|
|
13
|
+
const findCompatiblePositions = (primary, secondaryArray) => {
|
|
14
14
|
if (verticalPositions.includes(primary)) {
|
|
15
15
|
return secondaryArray.filter(secondary => horizontalPositions.includes(secondary));
|
|
16
16
|
}
|
|
@@ -19,8 +19,8 @@ var findCompatiblePositions = (primary, secondaryArray) => {
|
|
|
19
19
|
}
|
|
20
20
|
return [];
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const useDynamicPosition = _ref => {
|
|
23
|
+
let {
|
|
24
24
|
elementRef,
|
|
25
25
|
parentRef,
|
|
26
26
|
preferredPrimaryOrder,
|
|
@@ -29,44 +29,44 @@ var useDynamicPosition = _ref => {
|
|
|
29
29
|
offsetXPx,
|
|
30
30
|
throttleMs = 200
|
|
31
31
|
} = _ref;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const isClient = typeof window === 'object';
|
|
33
|
+
const {
|
|
34
34
|
height: currentHeight,
|
|
35
35
|
width: currentWidth
|
|
36
36
|
} = (0, _useWindowSize.default)();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
const [primaryPosition, setPrimaryPosition] = (0, _react.useState)(preferredPrimaryOrder[0]);
|
|
38
|
+
const compatibleSecondaryPositions = (0, _react.useMemo)(() => findCompatiblePositions(primaryPosition, preferredSecondaryOrder), [primaryPosition, preferredSecondaryOrder]);
|
|
39
|
+
const [secondaryPosition, setSecondaryPosition] = (0, _react.useState)(compatibleSecondaryPositions[0]);
|
|
40
|
+
const handle = (0, _react.useCallback)((0, _throttle.default)(() => {
|
|
41
|
+
const parentNode = parentRef?.current;
|
|
42
|
+
const elementNode = elementRef?.current;
|
|
43
|
+
const {
|
|
44
44
|
top: parentTop,
|
|
45
45
|
bottom: parentBottom,
|
|
46
46
|
right: parentRight,
|
|
47
47
|
left: parentLeft
|
|
48
|
-
} =
|
|
49
|
-
|
|
48
|
+
} = parentNode?.getBoundingClientRect() || {};
|
|
49
|
+
const {
|
|
50
50
|
width: elementWidth,
|
|
51
51
|
height: elementHeight
|
|
52
|
-
} =
|
|
53
|
-
|
|
52
|
+
} = elementNode?.getBoundingClientRect() || {};
|
|
53
|
+
const availablePositions = {
|
|
54
54
|
top: parentTop >= elementHeight,
|
|
55
55
|
bottom: currentHeight - parentBottom >= elementHeight,
|
|
56
56
|
right: parentRight >= elementWidth,
|
|
57
57
|
left: currentWidth - parentLeft >= elementWidth
|
|
58
58
|
};
|
|
59
|
-
for (
|
|
60
|
-
|
|
59
|
+
for (let i = 0; i < preferredPrimaryOrder.length; i += 1) {
|
|
60
|
+
const position = preferredPrimaryOrder[i];
|
|
61
61
|
if (availablePositions[position]) {
|
|
62
62
|
setPrimaryPosition(position);
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
for (
|
|
67
|
-
|
|
68
|
-
if (availablePositions[
|
|
69
|
-
setSecondaryPosition(
|
|
66
|
+
for (let i = 0; i < compatibleSecondaryPositions.length; i += 1) {
|
|
67
|
+
const position = compatibleSecondaryPositions[i];
|
|
68
|
+
if (availablePositions[position]) {
|
|
69
|
+
setSecondaryPosition(position);
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -7,15 +7,15 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const useWindowSize = function () {
|
|
11
|
+
let debounceMs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 700;
|
|
12
|
+
const isClient = typeof window === 'object';
|
|
13
|
+
const getSize = () => ({
|
|
14
14
|
width: isClient ? window.innerWidth : undefined,
|
|
15
15
|
height: isClient ? window.innerHeight : undefined
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const [windowSize, setWindowSize] = (0, _react.useState)(getSize);
|
|
18
|
+
const handle = (0, _react.useCallback)((0, _debounce.default)(() => {
|
|
19
19
|
setWindowSize(getSize());
|
|
20
20
|
}, debounceMs));
|
|
21
21
|
(0, _react.useEffect)(() => {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "useDynamicPosition", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _hooks.useDynamicPosition;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "useWindowSize", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _hooks.useWindowSize;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -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", {
|
|
@@ -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 People = ({
|
|
|
22
22
|
columnWidth
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
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 { useRef,
|
|
3
|
+
import { useRef, useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ const Popover = ({
|
|
|
26
26
|
offsetYPx
|
|
27
27
|
// ...otherProps
|
|
28
28
|
}) => {
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import("./styles.scss");
|
|
31
31
|
}, []);
|
|
32
32
|
const popoverRef = useRef(null);
|
|
@@ -94,7 +94,7 @@ Popover.propTypes = {
|
|
|
94
94
|
* The reference to the parent element
|
|
95
95
|
*/
|
|
96
96
|
parentRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
97
|
-
current: PropTypes.instanceOf(Element)
|
|
97
|
+
current: PropTypes.instanceOf(React.Element)
|
|
98
98
|
})])
|
|
99
99
|
};
|
|
100
100
|
Popover.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
|
|
|
@@ -22,7 +22,7 @@ const ProgressBar = ({
|
|
|
22
22
|
height
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("div", {
|
package/dist/es/a/Quote/Quote.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
|
|
|
@@ -22,7 +22,7 @@ const Quote = ({
|
|
|
22
22
|
color
|
|
23
23
|
// ...otherProps
|
|
24
24
|
}) => {
|
|
25
|
-
|
|
25
|
+
useInsertionEffect(() => {
|
|
26
26
|
import("./styles.scss");
|
|
27
27
|
}, []);
|
|
28
28
|
return /*#__PURE__*/React.createElement("figure", {
|
package/dist/es/a/SVG/SVG.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.3 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect, useMemo } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
import { UseSVG } from "./common";
|
|
@@ -27,7 +27,7 @@ const SVG = ({
|
|
|
27
27
|
animated,
|
|
28
28
|
...otherProps
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import("./styles.scss");
|
|
32
32
|
});
|
|
33
33
|
const useSVGProps = useMemo(() => ({
|
|
@@ -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 SnapScroller = ({
|
|
|
20
20
|
noScrollOnDesktop
|
|
21
21
|
// ...otherProps
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
23
|
+
useInsertionEffect(() => {
|
|
24
24
|
import("./styles.scss");
|
|
25
25
|
}, []);
|
|
26
26
|
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
|
|
|
@@ -19,7 +19,7 @@ const Spinner = ({
|
|
|
19
19
|
color
|
|
20
20
|
// ...otherProps
|
|
21
21
|
}) => {
|
|
22
|
-
|
|
22
|
+
useInsertionEffect(() => {
|
|
23
23
|
import("./styles.scss");
|
|
24
24
|
}, []);
|
|
25
25
|
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, useMemo, useCallback, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { format, differenceInDays, formatDistance, formatRelative } from 'date-fns';
|
|
@@ -27,7 +27,7 @@ const Timestamp = ({
|
|
|
27
27
|
// ...otherProps
|
|
28
28
|
as: Element
|
|
29
29
|
}) => {
|
|
30
|
-
|
|
30
|
+
useInsertionEffect(() => {
|
|
31
31
|
import("./styles.scss");
|
|
32
32
|
}, []);
|
|
33
33
|
const [currentDisplay, setCurrentDisplay] = useState(enabledFormats[0]);
|
|
@@ -7,8 +7,9 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
// Package-level Imports
|
|
8
8
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
9
9
|
import { LoadingCircle } from "../..";
|
|
10
|
+
import "./styles.scss";
|
|
10
11
|
// Component-level imports
|
|
11
|
-
import(
|
|
12
|
+
// import('./styles.scss')
|
|
12
13
|
|
|
13
14
|
// Helper Definition
|
|
14
15
|
const baseClassName = styleNames.base;
|
package/dist/es/b/Logo/Logo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { useMemo,
|
|
3
|
+
import { useMemo, useInsertionEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { SVG } from "../../a";
|
|
@@ -50,7 +50,7 @@ const Logo = ({
|
|
|
50
50
|
square
|
|
51
51
|
// ...otherProps
|
|
52
52
|
}) => {
|
|
53
|
-
|
|
53
|
+
useInsertionEffect(() => {
|
|
54
54
|
import("./styles.scss");
|
|
55
55
|
}, []);
|
|
56
56
|
const contentMap = square ? contentMapSquare : contentMapWithName;
|
package/dist/es/b/Page/Page.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* @pareto-engineering/generator-front 1.0.0 */
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useInsertionEffect, useEffect } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
7
7
|
|
|
@@ -29,7 +29,7 @@ const Page = ({
|
|
|
29
29
|
helmetProps,
|
|
30
30
|
...otherProps
|
|
31
31
|
}) => {
|
|
32
|
-
|
|
32
|
+
useInsertionEffect(() => {
|
|
33
33
|
import("./styles.scss");
|
|
34
34
|
}, []);
|
|
35
35
|
useEffect(() => {
|
|
@@ -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 { useApp } from "../../a";
|
|
@@ -46,7 +46,7 @@ const SocialMediaButton = ({
|
|
|
46
46
|
...otherProps
|
|
47
47
|
}) => {
|
|
48
48
|
const applicationContext = useApp();
|
|
49
|
-
|
|
49
|
+
useInsertionEffect(() => {
|
|
50
50
|
import("./styles.scss");
|
|
51
51
|
}, []);
|
|
52
52
|
const content = type && defaultsMap[type];
|
|
@@ -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, useCallback } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import styleNames from '@pareto-engineering/bem/exports';
|
|
6
6
|
import { useApp } from "../../a";
|
|
@@ -26,7 +26,7 @@ const ThemeSelector = ({
|
|
|
26
26
|
userTheme,
|
|
27
27
|
setPreferredTheme
|
|
28
28
|
} = useApp();
|
|
29
|
-
|
|
29
|
+
useInsertionEffect(() => {
|
|
30
30
|
import("./styles.scss");
|
|
31
31
|
}, []);
|
|
32
32
|
const loopThemes = useCallback(() => {
|