@pareto-engineering/design-system 3.0.0-alpha.29 → 4.0.0-alpha.3
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/.storybook/main.js +25 -63
- package/.storybook/preview.js +26 -9
- package/.storybook/webpackFinal.js +68 -0
- package/babel.config.js +14 -45
- package/dist/cjs/a/ContentTree/styles.scss +20 -20
- package/dist/cjs/a/Conversation/styles.scss +1 -0
- package/dist/cjs/a/Label/styles.scss +18 -17
- package/dist/cjs/a/LoadingCircle/styles.scss +35 -37
- package/dist/cjs/a/People/styles.scss +4 -4
- package/dist/cjs/a/Popover/styles.scss +4 -3
- package/dist/cjs/a/Quote/styles.scss +41 -38
- package/dist/cjs/a/SnapScroller/styles.scss +6 -4
- package/dist/cjs/a/index.js +0 -7
- package/dist/cjs/b/Button/styles.scss +2 -2
- package/dist/cjs/b/Logo/styles.scss +4 -2
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +2 -2
- package/dist/cjs/b/Page/styles.scss +7 -6
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/c/ContentSlides/styles.scss +2 -4
- package/dist/cjs/c/Modal/styles.scss +7 -5
- package/dist/cjs/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/cjs/f/FormInput/styles.scss +4 -4
- package/dist/cjs/f/common/Label/styles.scss +1 -1
- package/dist/cjs/f/fields/Checkbox/styles.scss +9 -8
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +4 -4
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +59 -59
- package/dist/cjs/f/fields/RatingsInput/styles.scss +8 -9
- package/dist/cjs/f/fields/SelectInput/styles.scss +6 -6
- package/dist/cjs/f/fields/TextInput/styles.scss +4 -4
- package/dist/cjs/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/es/a/AppContext/ContextProvider.js +7 -8
- package/dist/es/a/AppContext/useTheme.js +1 -2
- package/dist/es/a/ContentTree/ContentTree.js +8 -9
- package/dist/es/a/ContentTree/common/Tree/Tree.js +8 -9
- package/dist/es/a/ContentTree/styles.scss +20 -20
- package/dist/es/a/Conversation/Conversation.js +11 -12
- package/dist/es/a/Conversation/common/Message/Message.js +12 -13
- package/dist/es/a/Conversation/styles.scss +1 -0
- package/dist/es/a/DotInfo/DotInfo.js +11 -12
- package/dist/es/a/Figure/Figure.js +8 -9
- package/dist/es/a/HamburgerButton/HamburgerButton.js +10 -11
- package/dist/es/a/IconList/IconList.js +9 -10
- package/dist/es/a/IconList/common/Item/Item.js +17 -20
- package/dist/es/a/Label/Label.js +9 -10
- package/dist/es/a/Label/styles.scss +18 -17
- package/dist/es/a/LoadingCircle/LoadingCircle.js +10 -11
- package/dist/es/a/LoadingCircle/styles.scss +35 -37
- package/dist/es/a/People/People.js +9 -10
- package/dist/es/a/People/common/Person/Person.js +24 -27
- package/dist/es/a/People/styles.scss +4 -4
- package/dist/es/a/Popover/Popover.js +14 -15
- package/dist/es/a/Popover/styles.scss +4 -3
- package/dist/es/a/ProgressBar/ProgressBar.js +10 -11
- package/dist/es/a/Quote/Quote.js +10 -11
- package/dist/es/a/Quote/styles.scss +41 -38
- package/dist/es/a/SVG/SVG.js +17 -18
- package/dist/es/a/SVG/common/UseSVG/UseSVG.js +19 -22
- package/dist/es/a/SnapScroller/SnapScroller.js +8 -9
- package/dist/es/a/SnapScroller/styles.scss +6 -4
- package/dist/es/a/Spinner/Spinner.js +7 -8
- package/dist/es/a/Timestamp/Timestamp.js +14 -15
- package/dist/es/a/index.js +0 -1
- package/dist/es/b/Button/Button.js +13 -14
- package/dist/es/b/Button/styles.scss +2 -2
- package/dist/es/b/Logo/Logo.js +12 -13
- package/dist/es/b/Logo/styles.scss +4 -2
- package/dist/es/b/Page/Page.js +10 -11
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +9 -11
- package/dist/es/b/Page/common/Section/Section.js +7 -8
- package/dist/es/b/Page/styles.scss +7 -6
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +11 -12
- package/dist/es/b/SocialMediaButton/styles.scss +1 -1
- package/dist/es/b/ThemeSelector/ThemeSelector.js +8 -9
- package/dist/es/b/Title/Title.js +27 -30
- package/dist/es/c/ContentSlides/ContentSlides.js +12 -15
- package/dist/es/c/ContentSlides/common/HorizontalMenu/HorizontalMenu.js +11 -12
- package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +14 -15
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +8 -9
- package/dist/es/c/ContentSlides/common/Slide/Slide.js +8 -9
- package/dist/es/c/ContentSlides/styles.scss +2 -4
- package/dist/es/c/Modal/Modal.js +10 -11
- package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +20 -23
- package/dist/es/c/Modal/styles.scss +7 -5
- package/dist/es/c/Shortener/Shortener.js +11 -12
- package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +9 -10
- package/dist/es/c/SocialMediaShareButton/styles.scss +3 -3
- package/dist/es/f/FormInput/FormInput.js +7 -8
- package/dist/es/f/FormInput/styles.scss +4 -4
- package/dist/es/f/common/Debugger/Debugger.js +7 -8
- package/dist/es/f/common/Description/Description.js +9 -10
- package/dist/es/f/common/Label/Label.js +11 -12
- package/dist/es/f/common/Label/styles.scss +1 -1
- package/dist/es/f/fields/Checkbox/Checkbox.js +11 -12
- package/dist/es/f/fields/Checkbox/styles.scss +9 -8
- package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +17 -18
- package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +13 -14
- package/dist/es/f/fields/ChoicesInput/styles.scss +4 -4
- package/dist/es/f/fields/QueryChoices/QueryChoices.js +16 -20
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +27 -31
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +22 -24
- package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +22 -25
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +24 -26
- package/dist/es/f/fields/QueryCombobox/styles.scss +59 -59
- package/dist/es/f/fields/QuerySelect/QuerySelect.js +24 -28
- package/dist/es/f/fields/RatingsInput/RatingsInput.js +16 -17
- package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +15 -16
- package/dist/es/f/fields/RatingsInput/styles.scss +8 -9
- package/dist/es/f/fields/SelectInput/SelectInput.js +16 -17
- package/dist/es/f/fields/SelectInput/styles.scss +6 -6
- package/dist/es/f/fields/TextInput/TextInput.js +18 -19
- package/dist/es/f/fields/TextInput/styles.scss +4 -4
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +20 -21
- package/dist/es/f/fields/TextareaInput/styles.scss +7 -6
- package/dist/es/r/SwitchRouteMap/SwitchRouteMap.js +15 -21
- package/dist/es/r/common/PrivateRoute/PrivateRoute.js +6 -7
- package/dist/es/test/QueryLoader/QueryLoader.js +1 -1
- package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +5 -6
- package/dist/es/utils/hooks/useDynamicPosition.js +9 -10
- package/dist/es/utils/hooks/useWindowSize.js +1 -2
- package/jest.config.js +5 -5
- package/package.json +44 -82
- package/src/stories/b/Page.stories.jsx +2 -1
- package/src/stories/original/Button.jsx +55 -0
- package/src/stories/original/Button.stories.js +39 -0
- package/src/stories/original/Header.jsx +64 -0
- package/src/stories/original/Header.stories.js +22 -0
- package/src/stories/original/Introduction.mdx +211 -0
- package/src/stories/original/Page.jsx +76 -0
- package/src/stories/original/Page.stories.js +26 -0
- package/src/stories/original/assets/code-brackets.svg +1 -0
- package/src/stories/original/assets/colors.svg +1 -0
- package/src/stories/original/assets/comments.svg +1 -0
- package/src/stories/original/assets/direction.svg +1 -0
- package/src/stories/original/assets/flow.svg +1 -0
- package/src/stories/original/assets/plugin.svg +1 -0
- package/src/stories/original/assets/repo.svg +1 -0
- package/src/stories/original/assets/stackalt.svg +1 -0
- package/src/stories/original/button.css +30 -0
- package/src/stories/original/header.css +32 -0
- package/src/stories/original/page.css +69 -0
- package/src/ui/a/ContentTree/styles.scss +20 -20
- package/src/ui/a/Conversation/styles.scss +1 -0
- package/src/ui/a/Label/styles.scss +18 -17
- package/src/ui/a/LoadingCircle/styles.scss +35 -37
- package/src/ui/a/People/styles.scss +4 -4
- package/src/ui/a/Popover/styles.scss +4 -3
- package/src/ui/a/Quote/styles.scss +41 -38
- package/src/ui/a/SnapScroller/styles.scss +6 -4
- package/src/ui/a/index.js +0 -1
- package/src/ui/b/Button/styles.scss +2 -2
- package/src/ui/b/Logo/styles.scss +4 -2
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +1 -1
- package/src/ui/b/Page/styles.scss +7 -6
- package/src/ui/b/SocialMediaButton/styles.scss +1 -1
- package/src/ui/c/ContentSlides/styles.scss +2 -4
- package/src/ui/c/Modal/styles.scss +7 -5
- package/src/ui/c/SocialMediaShareButton/styles.scss +3 -3
- package/src/ui/f/FormInput/styles.scss +4 -4
- package/src/ui/f/common/Label/styles.scss +1 -1
- package/src/ui/f/fields/Checkbox/styles.scss +9 -8
- package/src/ui/f/fields/ChoicesInput/styles.scss +4 -4
- package/src/ui/f/fields/QueryCombobox/styles.scss +59 -59
- package/src/ui/f/fields/RatingsInput/styles.scss +8 -9
- package/src/ui/f/fields/SelectInput/styles.scss +6 -6
- package/src/ui/f/fields/TextInput/styles.scss +4 -4
- package/src/ui/f/fields/TextareaInput/styles.scss +7 -6
- package/src/ui/test/QueryLoader/QueryLoader.jsx +1 -1
- package/{src → tests}/__snapshots__/Storyshots.test.js.snap +687 -301
- package/tests/staticStub.js +1 -0
- package/.storybook/manager-head.html +0 -6
- package/.storybook/preview-head.html +0 -5
- package/README.md +0 -1
- package/build-storybook.log +0 -2978
- package/config/CSSStub.js +0 -1
- package/dist/cjs/a/AnimatedCounter/AnimatedCounter.js +0 -105
- package/dist/cjs/a/AnimatedCounter/index.js +0 -13
- package/dist/cjs/a/AnimatedCounter/styles.scss +0 -16
- package/dist/es/a/AnimatedCounter/AnimatedCounter.js +0 -98
- package/dist/es/a/AnimatedCounter/index.js +0 -2
- package/dist/es/a/AnimatedCounter/styles.scss +0 -16
- package/postcss.config.js +0 -13
- package/relay.config.js +0 -12
- package/src/assets/images/Ellipse1.png +0 -0
- package/src/assets/images/Ellipse2.png +0 -0
- package/src/assets/images/Fundraising.svg +0 -40
- package/src/assets/images/ParetoSupport.svg +0 -190
- package/src/assets/images/ParetoWorld.svg +0 -207
- package/src/assets/images/Vector.png +0 -0
- package/src/assets/images/email-attach.svg +0 -1
- package/src/assets/images/email-delete.svg +0 -1
- package/src/assets/images/favicon.png +0 -0
- package/src/assets/images/onboarding/focus-on-strategic-work.webp +0 -0
- package/src/assets/images/onboarding/launch-project.webp +0 -0
- package/src/assets/images/onboarding/meet-pareto-partner.webp +0 -0
- package/src/assets/images/quality.png +0 -0
- package/src/assets/images/sprite.svg +0 -253
- package/src/assets/images/test +0 -1
- package/src/local.scss +0 -16
- package/src/stories/a/AnimatedCounter.stories.jsx +0 -34
- package/src/ui/a/AnimatedCounter/AnimatedCounter.jsx +0 -118
- package/src/ui/a/AnimatedCounter/index.js +0 -2
- package/src/ui/a/AnimatedCounter/styles.scss +0 -16
- /package/{src → tests}/Storyshots.test.js +0 -0
- /package/{config → tests}/global-setup.js +0 -0
- /package/{config → tests}/test-setup.js +0 -0
package/dist/es/b/Title/Title.js
CHANGED
|
@@ -12,36 +12,33 @@ import("./styles.scss");
|
|
|
12
12
|
// Helper Definition
|
|
13
13
|
const baseClassName = styleNames.base;
|
|
14
14
|
const componentClassName = 'title';
|
|
15
|
-
const Title =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
style: subtitleStyle
|
|
43
|
-
}, subtitleProps), subtitle));
|
|
44
|
-
};
|
|
15
|
+
const Title = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
// children,
|
|
20
|
+
heading,
|
|
21
|
+
headingAs: HeadingWrapper,
|
|
22
|
+
headingClassName,
|
|
23
|
+
headingStyle,
|
|
24
|
+
headingProps,
|
|
25
|
+
subtitle,
|
|
26
|
+
subtitleAs: SubtitleWrapper,
|
|
27
|
+
subtitleClassName,
|
|
28
|
+
subtitleStyle,
|
|
29
|
+
subtitleProps
|
|
30
|
+
// ...otherProps
|
|
31
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
id: id,
|
|
33
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
34
|
+
style: style
|
|
35
|
+
}, /*#__PURE__*/React.createElement(HeadingWrapper, _extends({
|
|
36
|
+
className: [headingClassName, styleNames.heading].filter(e => e).join(' '),
|
|
37
|
+
style: headingStyle
|
|
38
|
+
}, headingProps), heading), subtitle && /*#__PURE__*/React.createElement(SubtitleWrapper, _extends({
|
|
39
|
+
className: [subtitleClassName, styleNames.subtitle].filter(e => e).join(' '),
|
|
40
|
+
style: subtitleStyle
|
|
41
|
+
}, subtitleProps), subtitle));
|
|
45
42
|
Title.propTypes = {
|
|
46
43
|
/**
|
|
47
44
|
* The HTML id for this element
|
|
@@ -38,17 +38,16 @@ const reducer = (state, action) => {
|
|
|
38
38
|
* Colors :
|
|
39
39
|
* `y` : the background of the content
|
|
40
40
|
*/
|
|
41
|
-
const ContentSlides =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = _ref;
|
|
41
|
+
const ContentSlides = ({
|
|
42
|
+
id,
|
|
43
|
+
className: userClassName,
|
|
44
|
+
style,
|
|
45
|
+
children,
|
|
46
|
+
steps,
|
|
47
|
+
simple,
|
|
48
|
+
isDebug
|
|
49
|
+
// ...otherProps
|
|
50
|
+
}) => {
|
|
52
51
|
useLayoutEffect(() => {
|
|
53
52
|
import("./styles.scss");
|
|
54
53
|
}, []);
|
|
@@ -62,8 +61,7 @@ const ContentSlides = _ref => {
|
|
|
62
61
|
isFirstStep,
|
|
63
62
|
isLastStep
|
|
64
63
|
} = state;
|
|
65
|
-
const setNextStepIndex =
|
|
66
|
-
let step = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
64
|
+
const setNextStepIndex = (step = 1) => {
|
|
67
65
|
if (!isLastStep) {
|
|
68
66
|
dispatch({
|
|
69
67
|
type: 'SET_STEP_INDEX',
|
|
@@ -71,8 +69,7 @@ const ContentSlides = _ref => {
|
|
|
71
69
|
});
|
|
72
70
|
}
|
|
73
71
|
};
|
|
74
|
-
const setPrevStepIndex =
|
|
75
|
-
let step = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
72
|
+
const setPrevStepIndex = (step = 1) => {
|
|
76
73
|
if (!isFirstStep) {
|
|
77
74
|
dispatch({
|
|
78
75
|
type: 'SET_STEP_INDEX',
|
|
@@ -15,18 +15,17 @@ const componentClassName = 'horizontal-menu';
|
|
|
15
15
|
/**
|
|
16
16
|
* This is the component description.
|
|
17
17
|
*/
|
|
18
|
-
const HorizontalMenu =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
18
|
+
const HorizontalMenu = ({
|
|
19
|
+
id,
|
|
20
|
+
className: userClassName,
|
|
21
|
+
style,
|
|
22
|
+
logoColor,
|
|
23
|
+
hideBackIcon,
|
|
24
|
+
stepsBackwards,
|
|
25
|
+
customPrevStep,
|
|
26
|
+
color
|
|
27
|
+
// ...otherProps
|
|
28
|
+
}) => {
|
|
30
29
|
const {
|
|
31
30
|
setPrevStepIndex,
|
|
32
31
|
// setNextStepIndex,
|
|
@@ -11,21 +11,20 @@ const componentClassName = 'navigator';
|
|
|
11
11
|
/**
|
|
12
12
|
* This is the component description.
|
|
13
13
|
*/
|
|
14
|
-
const Navigator =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
14
|
+
const Navigator = ({
|
|
15
|
+
id,
|
|
16
|
+
className: userClassName,
|
|
17
|
+
style,
|
|
18
|
+
canMoveForward,
|
|
19
|
+
previousColor,
|
|
20
|
+
nextColor,
|
|
21
|
+
stepsForward,
|
|
22
|
+
stepsBackwards,
|
|
23
|
+
customPrevStep,
|
|
24
|
+
customNextStep,
|
|
25
|
+
isLoading
|
|
26
|
+
// ...otherProps
|
|
27
|
+
}) => {
|
|
29
28
|
const {
|
|
30
29
|
setPrevStepIndex,
|
|
31
30
|
setNextStepIndex,
|
|
@@ -15,15 +15,14 @@ const componentClassName = 'sidebar';
|
|
|
15
15
|
/**
|
|
16
16
|
* This is the component description.
|
|
17
17
|
*/
|
|
18
|
-
const Sidebar =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} = _ref;
|
|
18
|
+
const Sidebar = ({
|
|
19
|
+
id,
|
|
20
|
+
className: userClassName,
|
|
21
|
+
style,
|
|
22
|
+
header,
|
|
23
|
+
footer
|
|
24
|
+
// ...otherProps
|
|
25
|
+
}) => {
|
|
27
26
|
const {
|
|
28
27
|
steps,
|
|
29
28
|
// setPrevStepIndex,
|
|
@@ -13,15 +13,14 @@ const componentClassName = 'slide';
|
|
|
13
13
|
/**
|
|
14
14
|
* This is the component description.
|
|
15
15
|
*/
|
|
16
|
-
const Slide =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
16
|
+
const Slide = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
index
|
|
22
|
+
// ...otherProps
|
|
23
|
+
}) => {
|
|
25
24
|
const {
|
|
26
25
|
currentStepIndex
|
|
27
26
|
} = useContentSlides();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
/* stylelint-disable selector-max-compound-selectors -- Required here */
|
|
3
|
+
/* stylelint-disable max-nesting-depth -- Required here */
|
|
2
4
|
|
|
3
5
|
@use "@pareto-engineering/bem";
|
|
4
6
|
@use "@pareto-engineering/styles/src/mixins";
|
|
@@ -45,7 +47,6 @@ $mobile-content-margin:6em;
|
|
|
45
47
|
border-top: $default-border;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
/* stylelint-disable selector-max-compound-selectors -- Required here */
|
|
49
50
|
.#{bem.$element-content} {
|
|
50
51
|
.icon-list {
|
|
51
52
|
.#{bem.$element-item} {
|
|
@@ -55,7 +56,6 @@ $mobile-content-margin:6em;
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
/* stylelint-enable selector-max-compound-selectors */
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
@@ -167,8 +167,6 @@ $mobile-content-margin:6em;
|
|
|
167
167
|
width: 100%;
|
|
168
168
|
} */
|
|
169
169
|
|
|
170
|
-
/* stylelint-disable selector-max-compound-selectors -- Required here */
|
|
171
|
-
/* stylelint-disable max-nesting-depth -- Required here */
|
|
172
170
|
/* stylelint-disable scss/media-feature-value-dollar-variable -- For orientation mq */
|
|
173
171
|
.wrapper {
|
|
174
172
|
display: flex;
|
package/dist/es/c/Modal/Modal.js
CHANGED
|
@@ -13,17 +13,16 @@ const componentClassName = 'modal';
|
|
|
13
13
|
/**
|
|
14
14
|
* This is the component description.
|
|
15
15
|
*/
|
|
16
|
-
const Modal =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} = _ref;
|
|
16
|
+
const Modal = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
children,
|
|
21
|
+
title,
|
|
22
|
+
color,
|
|
23
|
+
close
|
|
24
|
+
// ...otherProps
|
|
25
|
+
}) => {
|
|
27
26
|
useLayoutEffect(() => {
|
|
28
27
|
import("./styles.scss");
|
|
29
28
|
}, []);
|
|
@@ -12,29 +12,26 @@ const componentClassName = 'modal-header';
|
|
|
12
12
|
/**
|
|
13
13
|
* This is the component description.
|
|
14
14
|
*/
|
|
15
|
-
const ModalHeader =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
className: "f-icons"
|
|
36
|
-
}, "Y")));
|
|
37
|
-
};
|
|
15
|
+
const ModalHeader = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
title,
|
|
20
|
+
close,
|
|
21
|
+
color
|
|
22
|
+
// ...otherProps
|
|
23
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
id: id,
|
|
25
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
26
|
+
style: style
|
|
27
|
+
}, /*#__PURE__*/React.createElement("p", null, title), /*#__PURE__*/React.createElement(Button, {
|
|
28
|
+
color: color,
|
|
29
|
+
onClick: () => close(),
|
|
30
|
+
isCompact: true,
|
|
31
|
+
className: "close-button"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
className: "f-icons"
|
|
34
|
+
}, "Y")));
|
|
38
35
|
ModalHeader.propTypes = {
|
|
39
36
|
/**
|
|
40
37
|
* The HTML id for this element
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
$default-background: var(--background1);
|
|
5
|
-
|
|
6
|
+
/* stylelint-disable-next-line color-named -- needed for rgba function */
|
|
7
|
+
$default-box-shadow: 0 10px 20px rgba(black, .2);
|
|
6
8
|
$default-padding: 1em / 2;
|
|
7
9
|
$default-margin: 2em;
|
|
8
10
|
$default-max-height: 75vh;
|
|
9
11
|
$default-max-width: 90%;
|
|
10
12
|
$default-min-width: 20em;
|
|
11
13
|
|
|
12
|
-
.#{bem.$base}.modal{
|
|
14
|
+
.#{bem.$base}.modal {
|
|
13
15
|
background: $default-background;
|
|
14
16
|
box-shadow: $default-box-shadow;
|
|
15
17
|
display: flex;
|
|
@@ -23,7 +25,7 @@ $default-min-width: 20em;
|
|
|
23
25
|
top: 50%;
|
|
24
26
|
transform: translate(-50%, -50%);
|
|
25
27
|
z-index: 100;
|
|
26
|
-
|
|
28
|
+
|
|
27
29
|
.modal-body {
|
|
28
30
|
padding: $default-padding;
|
|
29
31
|
}
|
|
@@ -37,10 +39,10 @@ $default-min-width: 20em;
|
|
|
37
39
|
position: sticky;
|
|
38
40
|
top: 0;
|
|
39
41
|
z-index: 2;
|
|
40
|
-
|
|
42
|
+
|
|
41
43
|
> p {
|
|
42
|
-
padding: $default-padding;
|
|
43
44
|
margin: 0;
|
|
45
|
+
padding: $default-padding;
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
@@ -12,19 +12,18 @@ const componentClassName = 'shortener';
|
|
|
12
12
|
/**
|
|
13
13
|
* This is the component description.
|
|
14
14
|
*/
|
|
15
|
-
const Shortener =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// ...otherProps
|
|
15
|
+
const Shortener = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
// ...otherProps
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
as: Element,
|
|
23
|
+
limit,
|
|
24
|
+
separator,
|
|
25
|
+
countLetters
|
|
26
|
+
}) => {
|
|
28
27
|
useLayoutEffect(() => {
|
|
29
28
|
import("./styles.scss");
|
|
30
29
|
}, []);
|
|
@@ -12,16 +12,15 @@ const componentClassName = 'social-media-share-button';
|
|
|
12
12
|
/**
|
|
13
13
|
* This is the component description.
|
|
14
14
|
*/
|
|
15
|
-
const SocialMediaShareButton =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
15
|
+
const SocialMediaShareButton = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
icon,
|
|
20
|
+
// children,
|
|
21
|
+
type,
|
|
22
|
+
color
|
|
23
|
+
}) => {
|
|
25
24
|
useLayoutEffect(() => {
|
|
26
25
|
import("./styles.scss");
|
|
27
26
|
}, []);
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
$default-dimensions: 2em;
|
|
8
8
|
$mobile-dimensions: 2.75em;
|
|
9
9
|
|
|
10
|
-
.#{bem.$base}.social-media-share-button{
|
|
11
|
-
|
|
10
|
+
.#{bem.$base}.social-media-share-button {
|
|
12
11
|
> button {
|
|
13
12
|
appearance: none;
|
|
14
13
|
background: transparent;
|
|
@@ -31,7 +30,8 @@ $mobile-dimensions: 2.75em;
|
|
|
31
30
|
color: var(--on-x);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
&:focus,
|
|
33
|
+
&:focus,
|
|
34
|
+
&:active {
|
|
35
35
|
background: var(--soft-x);
|
|
36
36
|
color: var(--on-x);
|
|
37
37
|
}
|
|
@@ -14,14 +14,13 @@ const componentClassName = 'form-input';
|
|
|
14
14
|
/**
|
|
15
15
|
* This is the component description.
|
|
16
16
|
*/
|
|
17
|
-
const FormInput =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
17
|
+
const FormInput = ({
|
|
18
|
+
className,
|
|
19
|
+
type,
|
|
20
|
+
extraTypes,
|
|
21
|
+
disabled,
|
|
22
|
+
...otherProps
|
|
23
|
+
}) => {
|
|
25
24
|
useLayoutEffect(() => {
|
|
26
25
|
import("./styles.scss");
|
|
27
26
|
}, []);
|
|
@@ -12,14 +12,13 @@ const componentClassName = 'debugger';
|
|
|
12
12
|
/**
|
|
13
13
|
* This is the component description.
|
|
14
14
|
*/
|
|
15
|
-
const Debugger =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = _ref;
|
|
15
|
+
const Debugger = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
initialIsOpen
|
|
20
|
+
// ...otherProps
|
|
21
|
+
}) => {
|
|
23
22
|
useLayoutEffect(() => {
|
|
24
23
|
import("./styles.scss");
|
|
25
24
|
}, []);
|
|
@@ -13,16 +13,15 @@ const componentClassName = 'description';
|
|
|
13
13
|
/**
|
|
14
14
|
* This is the component description.
|
|
15
15
|
*/
|
|
16
|
-
const Description =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref;
|
|
16
|
+
const Description = ({
|
|
17
|
+
id,
|
|
18
|
+
className: userClassName,
|
|
19
|
+
style,
|
|
20
|
+
description,
|
|
21
|
+
name,
|
|
22
|
+
color
|
|
23
|
+
// ...otherProps
|
|
24
|
+
}) => {
|
|
26
25
|
useLayoutEffect(() => {
|
|
27
26
|
import("./styles.scss");
|
|
28
27
|
}, []);
|
|
@@ -12,18 +12,17 @@ const componentClassName = 'form-label';
|
|
|
12
12
|
/**
|
|
13
13
|
* This is the component description.
|
|
14
14
|
*/
|
|
15
|
-
const Label =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} = _ref;
|
|
15
|
+
const Label = ({
|
|
16
|
+
id,
|
|
17
|
+
className: userClassName,
|
|
18
|
+
style,
|
|
19
|
+
children,
|
|
20
|
+
name,
|
|
21
|
+
color,
|
|
22
|
+
optional,
|
|
23
|
+
as: Wrapper
|
|
24
|
+
// ...otherProps
|
|
25
|
+
}) => {
|
|
27
26
|
useLayoutEffect(() => {
|
|
28
27
|
import("./styles.scss");
|
|
29
28
|
}, []);
|
|
@@ -15,18 +15,17 @@ const componentClassName = 'checkbox';
|
|
|
15
15
|
/**
|
|
16
16
|
* This is the component description.
|
|
17
17
|
*/
|
|
18
|
-
const Checkbox =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
18
|
+
const Checkbox = ({
|
|
19
|
+
id,
|
|
20
|
+
className: userClassName,
|
|
21
|
+
style,
|
|
22
|
+
name,
|
|
23
|
+
label,
|
|
24
|
+
description,
|
|
25
|
+
disabled,
|
|
26
|
+
optional
|
|
27
|
+
// ...otherProps
|
|
28
|
+
}) => {
|
|
30
29
|
useLayoutEffect(() => {
|
|
31
30
|
import("./styles.scss");
|
|
32
31
|
}, []);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
2
3
|
@use "@pareto-engineering/bem";
|
|
3
4
|
|
|
4
5
|
$default-margin: 1em;
|
|
5
6
|
|
|
6
7
|
.#{bem.$base}.checkbox {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
.#{bem.$base}.label {
|
|
13
|
+
margin-bottom: $default-margin;
|
|
14
|
+
}
|
|
15
|
+
}
|