@pareto-engineering/design-system 4.0.0-alpha.4 → 4.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +90 -0
- package/dist/cjs/a/AnimatedBlobs/index.js +13 -0
- package/dist/cjs/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +56 -0
- package/dist/cjs/a/AnimatedGradient/index.js +13 -0
- package/dist/cjs/a/AnimatedGradient/styles.scss +14 -0
- package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +528 -0
- package/dist/cjs/a/ContentTree/ContentTree.js +2 -2
- package/dist/cjs/a/Conversation/Conversation.js +1 -1
- package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +1 -1
- package/dist/cjs/a/Label/Label.js +13 -5
- package/dist/cjs/a/Label/styles.scss +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- package/dist/cjs/a/MetaCard/MetaCard.js +60 -0
- package/dist/cjs/a/MetaCard/index.js +13 -0
- package/dist/cjs/a/MetaCard/styles.scss +28 -0
- package/dist/cjs/a/People/People.js +1 -1
- package/dist/cjs/a/Popover/Popover.js +2 -2
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/SnapScroller/styles.scss +18 -10
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/TextSteps/TextSteps.js +70 -0
- package/dist/cjs/a/TextSteps/index.js +13 -0
- package/dist/cjs/a/TextSteps/styles.scss +29 -0
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/a/Tip/Tip.js +72 -0
- package/dist/cjs/a/Tip/index.js +13 -0
- package/dist/cjs/a/Tip/styles.scss +22 -0
- package/dist/cjs/a/index.js +36 -1
- package/dist/cjs/b/Button/Button.js +2 -1
- package/dist/cjs/b/Button/styles.scss +2 -0
- package/dist/cjs/b/Card/Card.js +74 -0
- package/dist/cjs/b/Card/common/Group/Group.js +73 -0
- package/dist/cjs/b/Card/common/Group/index.js +13 -0
- package/dist/cjs/b/Card/common/Group/styles.scss +42 -0
- package/dist/cjs/b/Card/common/Section/Section.js +59 -0
- package/dist/cjs/b/Card/common/Section/index.js +13 -0
- package/dist/cjs/b/Card/common/index.js +19 -0
- package/dist/cjs/b/Card/index.js +13 -0
- package/dist/cjs/b/Card/styles.scss +46 -0
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Page/Page.js +10 -3
- package/dist/cjs/b/Page/common/Section/Section.js +6 -1
- package/dist/cjs/b/Page/styles.scss +22 -4
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/cjs/b/SocialMediaButton/styles.scss +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/b/Title/Title.js +4 -1
- package/dist/cjs/b/index.js +8 -1
- package/dist/cjs/c/ContentSlides/ContentSlides.js +2 -2
- package/dist/cjs/c/Modal/Modal.js +1 -1
- package/dist/cjs/c/Modal/styles.scss +2 -1
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +16 -8
- package/dist/cjs/f/fields/ChoicesInput/styles.scss +21 -33
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/styles.scss +5 -4
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +3 -3
- package/dist/cjs/f/fields/SelectInput/styles.scss +31 -21
- package/dist/cjs/f/fields/TextInput/TextInput.js +5 -3
- package/dist/cjs/f/fields/TextInput/styles.scss +26 -17
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +82 -0
- package/dist/es/a/AnimatedBlobs/index.js +1 -0
- package/dist/es/a/AnimatedBlobs/styles.scss +87 -0
- package/dist/es/a/AnimatedGradient/AnimatedGradient.js +48 -0
- package/dist/es/a/AnimatedGradient/index.js +1 -0
- package/dist/es/a/AnimatedGradient/styles.scss +14 -0
- package/dist/es/a/AnimatedGradient/webGIRenderer.js +492 -0
- 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 +14 -6
- package/dist/es/a/Label/styles.scss +1 -1
- package/dist/es/a/LoadingCircle/LoadingCircle.js +2 -2
- package/dist/es/a/MetaCard/MetaCard.js +52 -0
- package/dist/es/a/MetaCard/index.js +1 -0
- package/dist/es/a/MetaCard/styles.scss +28 -0
- 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/SnapScroller/styles.scss +18 -10
- package/dist/es/a/Spinner/Spinner.js +2 -2
- package/dist/es/a/TextSteps/TextSteps.js +61 -0
- package/dist/es/a/TextSteps/index.js +1 -0
- package/dist/es/a/TextSteps/styles.scss +29 -0
- package/dist/es/a/Timestamp/Timestamp.js +2 -2
- package/dist/es/a/Tip/Tip.js +64 -0
- package/dist/es/a/Tip/index.js +2 -0
- package/dist/es/a/Tip/styles.scss +22 -0
- package/dist/es/a/index.js +6 -1
- package/dist/es/b/Button/Button.js +2 -1
- package/dist/es/b/Button/styles.scss +2 -0
- package/dist/es/b/Card/Card.js +66 -0
- package/dist/es/b/Card/common/Group/Group.js +65 -0
- package/dist/es/b/Card/common/Group/index.js +1 -0
- package/dist/es/b/Card/common/Group/styles.scss +42 -0
- package/dist/es/b/Card/common/Section/Section.js +48 -0
- package/dist/es/b/Card/common/Section/index.js +1 -0
- package/dist/es/b/Card/common/index.js +2 -0
- package/dist/es/b/Card/index.js +1 -0
- package/dist/es/b/Card/styles.scss +46 -0
- package/dist/es/b/Logo/Logo.js +2 -2
- package/dist/es/b/Page/Page.js +11 -4
- package/dist/es/b/Page/common/Section/Section.js +6 -1
- package/dist/es/b/Page/styles.scss +22 -4
- 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/b/index.js +2 -1
- 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 +18 -10
- package/dist/es/f/fields/ChoicesInput/styles.scss +21 -33
- 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 +4 -4
- package/dist/es/f/fields/SelectInput/styles.scss +31 -21
- package/dist/es/f/fields/TextInput/TextInput.js +6 -4
- package/dist/es/f/fields/TextInput/styles.scss +26 -17
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +2 -2
- package/package.json +16 -16
- package/src/stories/a/MetaCard.stories.jsx +35 -0
- package/src/stories/a/TextSteps.stories.jsx +19 -0
- package/src/stories/a/Tip.stories.jsx +28 -0
- package/src/stories/b/Card/Card.stories.jsx +59 -0
- package/src/stories/b/Card/Group.stories.jsx +59 -0
- package/src/stories/b/Page.stories.jsx +19 -3
- package/src/stories/f/SelectInput.stories.jsx +7 -0
- package/src/stories/f/TextInput.stories.jsx +4 -4
- package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +102 -0
- package/src/ui/a/AnimatedBlobs/index.js +1 -0
- package/src/ui/a/AnimatedBlobs/styles.scss +87 -0
- package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +69 -0
- package/src/ui/a/AnimatedGradient/index.js +1 -0
- package/src/ui/a/AnimatedGradient/styles.scss +14 -0
- package/src/ui/a/AnimatedGradient/webGIRenderer.js +541 -0
- 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 +13 -4
- package/src/ui/a/Label/styles.scss +1 -1
- package/src/ui/a/LoadingCircle/LoadingCircle.jsx +2 -2
- package/src/ui/a/MetaCard/MetaCard.jsx +74 -0
- package/src/ui/a/MetaCard/index.js +1 -0
- package/src/ui/a/MetaCard/styles.scss +28 -0
- 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/SnapScroller/styles.scss +18 -10
- package/src/ui/a/Spinner/Spinner.jsx +2 -2
- package/src/ui/a/TextSteps/TextSteps.jsx +87 -0
- package/src/ui/a/TextSteps/index.js +1 -0
- package/src/ui/a/TextSteps/styles.scss +29 -0
- package/src/ui/a/Timestamp/Timestamp.jsx +2 -2
- package/src/ui/a/Tip/Tip.jsx +88 -0
- package/src/ui/a/Tip/index.js +2 -0
- package/src/ui/a/Tip/styles.scss +22 -0
- package/src/ui/a/index.js +5 -0
- package/src/ui/b/Button/Button.jsx +2 -1
- package/src/ui/b/Button/styles.scss +2 -0
- package/src/ui/b/Card/Card.jsx +94 -0
- package/src/ui/b/Card/common/Group/Group.jsx +91 -0
- package/src/ui/b/Card/common/Group/index.js +1 -0
- package/src/ui/b/Card/common/Group/styles.scss +42 -0
- package/src/ui/b/Card/common/Section/Section.jsx +70 -0
- package/src/ui/b/Card/common/Section/index.js +1 -0
- package/src/ui/b/Card/common/index.js +2 -0
- package/src/ui/b/Card/index.js +1 -0
- package/src/ui/b/Card/styles.scss +46 -0
- package/src/ui/b/Logo/Logo.jsx +2 -2
- package/src/ui/b/Page/Page.jsx +9 -3
- package/src/ui/b/Page/common/Section/Section.jsx +8 -0
- package/src/ui/b/Page/styles.scss +22 -4
- 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/b/index.js +1 -0
- 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 +12 -7
- package/src/ui/f/fields/ChoicesInput/styles.scss +21 -33
- 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 +4 -4
- package/src/ui/f/fields/SelectInput/styles.scss +31 -21
- package/src/ui/f/fields/TextInput/TextInput.jsx +13 -11
- package/src/ui/f/fields/TextInput/styles.scss +26 -17
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +2 -2
- package/tests/__snapshots__/Storyshots.test.js.snap +1049 -485
|
@@ -1,14 +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 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
|
|
|
8
8
|
// Local Definitions
|
|
9
9
|
|
|
10
10
|
import { Choice } from "./common";
|
|
11
|
-
import { FormLabel } from "../../common";
|
|
11
|
+
import { FormDescription, FormLabel } from "../../common";
|
|
12
12
|
const baseClassName = styleNames.base;
|
|
13
13
|
const componentClassName = 'choices-input';
|
|
14
14
|
|
|
@@ -26,18 +26,18 @@ const ChoicesInput = ({
|
|
|
26
26
|
gridColumnsMobile,
|
|
27
27
|
gridColumnsDesktop,
|
|
28
28
|
color,
|
|
29
|
-
colorChecked,
|
|
30
29
|
label,
|
|
31
30
|
optional,
|
|
32
|
-
disabled
|
|
31
|
+
disabled,
|
|
32
|
+
description
|
|
33
33
|
// ...otherProps
|
|
34
34
|
}) => {
|
|
35
|
-
|
|
35
|
+
useInsertionEffect(() => {
|
|
36
36
|
import("./styles.scss");
|
|
37
37
|
}, []);
|
|
38
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
39
|
id: id,
|
|
40
|
-
className: [baseClassName, componentClassName, userClassName, multiple && 'multiple', color && `x-${color}
|
|
40
|
+
className: [baseClassName, componentClassName, userClassName, multiple && 'multiple', color && `x-${color}`].filter(e => e).join(' '),
|
|
41
41
|
style: {
|
|
42
42
|
'--grid-columns-desktop': gridColumnsDesktop,
|
|
43
43
|
'--grid-columns-mobile': gridColumnsMobile,
|
|
@@ -50,13 +50,18 @@ const ChoicesInput = ({
|
|
|
50
50
|
}, label), /*#__PURE__*/React.createElement("div", {
|
|
51
51
|
className: "choices"
|
|
52
52
|
}, options.map(choice => /*#__PURE__*/React.createElement(Choice, _extends({
|
|
53
|
+
labelClassName: "with-faded-border",
|
|
53
54
|
key: choice.value,
|
|
54
55
|
name: name,
|
|
55
56
|
id: `${name}-${choice.value}`,
|
|
56
57
|
multiple: multiple,
|
|
57
58
|
validate: validate,
|
|
58
59
|
disabled: disabled
|
|
59
|
-
}, choice))))
|
|
60
|
+
}, choice)))), /*#__PURE__*/React.createElement(FormDescription, {
|
|
61
|
+
className: "v50 mt-v s-1",
|
|
62
|
+
description: description,
|
|
63
|
+
name: name
|
|
64
|
+
}));
|
|
60
65
|
};
|
|
61
66
|
ChoicesInput.propTypes = {
|
|
62
67
|
/**
|
|
@@ -117,13 +122,16 @@ ChoicesInput.propTypes = {
|
|
|
117
122
|
/**
|
|
118
123
|
* Whether the input is optional or not
|
|
119
124
|
*/
|
|
120
|
-
optional: PropTypes.bool
|
|
125
|
+
optional: PropTypes.bool,
|
|
126
|
+
/**
|
|
127
|
+
* The select input description
|
|
128
|
+
*/
|
|
129
|
+
description: PropTypes.string
|
|
121
130
|
};
|
|
122
131
|
ChoicesInput.defaultProps = {
|
|
123
132
|
gridColumnsMobile: 2,
|
|
124
133
|
gridColumnsDesktop: 3,
|
|
125
|
-
color: '
|
|
126
|
-
colorChecked: 'main2',
|
|
134
|
+
color: 'main',
|
|
127
135
|
disabled: false
|
|
128
136
|
};
|
|
129
137
|
export default /*#__PURE__*/memo(ChoicesInput);
|
|
@@ -5,21 +5,18 @@
|
|
|
5
5
|
@use "@pareto-engineering/styles/src/mixins";
|
|
6
6
|
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
7
|
|
|
8
|
-
$default-
|
|
9
|
-
$default-
|
|
10
|
-
$default-
|
|
8
|
+
$default-flex-separator:calc(1em / 2) calc(.75em / 2);
|
|
9
|
+
$default-transition:var(--theme-default-transition);
|
|
10
|
+
$default-label-padding: .3em 1em calc(2em - .3em);
|
|
11
|
+
$default-label-height: .5em;
|
|
11
12
|
|
|
12
13
|
.#{bem.$base}.choices-input {
|
|
13
|
-
|
|
14
|
-
display:
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
>.choices {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
gap: $default-flex-separator;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
grid-template-columns: repeat(var(--grid-columns-desktop), 1fr);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.choice {
|
|
19
|
+
>.choice {
|
|
23
20
|
display: flex;
|
|
24
21
|
|
|
25
22
|
input {
|
|
@@ -33,35 +30,26 @@ $default-transition:all .3s;
|
|
|
33
30
|
background-color: var(--hard-x);
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
input:not(:disabled) + label {
|
|
37
|
-
&:hover {
|
|
38
|
-
border-color: var(--soft-y);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
33
|
label {
|
|
43
|
-
background: var(--
|
|
44
|
-
border: var(--theme-border-
|
|
45
|
-
border-radius: var(--theme-border-radius);
|
|
46
|
-
color: var(--on-x);
|
|
34
|
+
background-color: var(--background-inputs);
|
|
35
|
+
border-radius: var(--theme-default-border-radius);
|
|
47
36
|
cursor: pointer;
|
|
48
37
|
display: block;
|
|
49
|
-
height:
|
|
50
|
-
|
|
38
|
+
height: $default-label-height;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
padding: $default-label-padding;
|
|
41
|
+
position: relative;
|
|
51
42
|
transition: $default-transition;
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
input:checked + label {
|
|
56
|
-
background: var(--y);
|
|
57
|
-
color: var(--on-y);
|
|
58
43
|
|
|
59
44
|
&:hover {
|
|
60
|
-
|
|
45
|
+
box-shadow: var(--theme-default-input-box-shadow);
|
|
61
46
|
}
|
|
62
47
|
}
|
|
48
|
+
|
|
49
|
+
input:checked + label {
|
|
50
|
+
background: var(--x);
|
|
51
|
+
color: var(--on-x);
|
|
52
|
+
}
|
|
63
53
|
}
|
|
64
54
|
}
|
|
65
55
|
}
|
|
66
|
-
|
|
67
|
-
|
|
@@ -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({
|
|
@@ -48,7 +48,7 @@ const SelectInput = ({
|
|
|
48
48
|
name: name,
|
|
49
49
|
optional: optional
|
|
50
50
|
}, label), /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
className: "select-wrapper"
|
|
51
|
+
className: "select-wrapper with-faded-border"
|
|
52
52
|
}, /*#__PURE__*/React.createElement("select", _extends({
|
|
53
53
|
className: "input"
|
|
54
54
|
}, field, {
|
|
@@ -135,6 +135,6 @@ SelectInput.propTypes = {
|
|
|
135
135
|
};
|
|
136
136
|
SelectInput.defaultProps = {
|
|
137
137
|
disabled: false,
|
|
138
|
-
color: '
|
|
138
|
+
color: 'interactive'
|
|
139
139
|
};
|
|
140
140
|
export default /*#__PURE__*/memo(SelectInput);
|
|
@@ -5,20 +5,32 @@
|
|
|
5
5
|
@use "../../../form.scss";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
$default-spacing-size: 1em;
|
|
8
9
|
$default-padding: .75em;
|
|
9
|
-
$default-
|
|
10
|
+
$default-bg-gradient: var(--background-far);
|
|
11
|
+
$default-input-border-radius: var(--theme-default-input-border-radius);
|
|
10
12
|
|
|
11
13
|
.#{bem.$base}.select-input {
|
|
12
14
|
display: flex;
|
|
13
15
|
flex-direction: column;
|
|
14
16
|
|
|
15
17
|
.#{bem.$base}.label {
|
|
16
|
-
margin-bottom: $default-
|
|
18
|
+
margin-bottom: $default-spacing-size;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
>.select-wrapper {
|
|
22
|
+
background-color: var(--background-inputs);
|
|
23
|
+
border-radius: $default-input-border-radius;
|
|
24
|
+
padding: $default-padding;
|
|
20
25
|
position: relative;
|
|
21
26
|
|
|
27
|
+
&::after {
|
|
28
|
+
border-radius: $default-input-border-radius;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:not(:disabled):hover {
|
|
32
|
+
box-shadow: var(--default-input-box-shadow);
|
|
33
|
+
}
|
|
22
34
|
>.#{bem.$base}.loading-circle {
|
|
23
35
|
position: absolute;
|
|
24
36
|
right: 0;
|
|
@@ -26,24 +38,22 @@ $default-margin: 1em;
|
|
|
26
38
|
transform: translateY(-50%);
|
|
27
39
|
}
|
|
28
40
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
&:focus {
|
|
46
|
-
background: var(--y);
|
|
41
|
+
select {
|
|
42
|
+
appearance: none;
|
|
43
|
+
background-color: inherit;
|
|
44
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyMCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDEuNUwxMCAxMC41TDEgMS41IiBzdHJva2U9IiM0QzRENTMiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
45
|
+
background-position: calc(100% - $default-spacing-size);
|
|
46
|
+
background-repeat: no-repeat;
|
|
47
|
+
background-size: $default-spacing-size;
|
|
48
|
+
padding-right: $default-spacing-size;
|
|
49
|
+
|
|
50
|
+
&.input {
|
|
51
|
+
width: 100%;
|
|
52
|
+
|
|
53
|
+
&:disabled {
|
|
54
|
+
appearance: none;
|
|
55
|
+
opacity: 35%;
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
59
|
}
|
|
@@ -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({
|
|
@@ -50,14 +50,16 @@ const TextInput = ({
|
|
|
50
50
|
name: name,
|
|
51
51
|
color: labelColor,
|
|
52
52
|
optional: optional
|
|
53
|
-
}, label), /*#__PURE__*/React.createElement("
|
|
53
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "input-wrapper with-faded-border"
|
|
55
|
+
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
54
56
|
id: name,
|
|
55
57
|
className: "input",
|
|
56
58
|
type: type,
|
|
57
59
|
disabled: disabled,
|
|
58
60
|
placeholder: placeholder,
|
|
59
61
|
autoComplete: autoComplete
|
|
60
|
-
}, field)), /*#__PURE__*/React.createElement(FormDescription, {
|
|
62
|
+
}, field))), /*#__PURE__*/React.createElement(FormDescription, {
|
|
61
63
|
className: "v50 mt-v s-1",
|
|
62
64
|
description: description,
|
|
63
65
|
name: name
|
|
@@ -4,31 +4,40 @@
|
|
|
4
4
|
@use "../../../form.scss";
|
|
5
5
|
|
|
6
6
|
$default-padding: .75em .75em .55em;
|
|
7
|
+
$default-input-border-radius: var(--theme-default-input-border-radius);
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
.#{bem.$base}.text-input {
|
|
9
11
|
display: flex;
|
|
10
12
|
flex-direction: column;
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
border: var(--theme-border-style) var(--hard-y);
|
|
15
|
-
color: var(--on-y);
|
|
16
|
-
padding: $default-padding;
|
|
17
|
-
|
|
18
|
-
&::placeholder {
|
|
19
|
-
color: var(--metadata);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:not(:disabled):hover {
|
|
23
|
-
border: var(--theme-border-style) var(--soft-background4);
|
|
24
|
-
}
|
|
14
|
+
>.input-wrapper {
|
|
15
|
+
position: relative;
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
&::after {
|
|
18
|
+
border-radius: $default-input-border-radius;
|
|
28
19
|
}
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
background: var(--
|
|
21
|
+
> input {
|
|
22
|
+
background-color: var(--background-inputs);
|
|
23
|
+
border-radius: $default-input-border-radius;
|
|
24
|
+
color: var(--x);
|
|
25
|
+
height: 100%;
|
|
26
|
+
padding: $default-padding;
|
|
27
|
+
width: 100%;
|
|
28
|
+
|
|
29
|
+
&::placeholder {
|
|
30
|
+
color: var(--metadata);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled {
|
|
34
|
+
background-color: var(--hard-x);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:not(:disabled):hover {
|
|
38
|
+
border-radius: $default-input-border-radius;
|
|
39
|
+
box-shadow: var(--theme-default-input-box-shadow);
|
|
40
|
+
}
|
|
32
41
|
}
|
|
33
42
|
}
|
|
34
43
|
}
|
|
@@ -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.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
"@babel/cli": "^7.21.0",
|
|
33
33
|
"@pareto-engineering/eslint-config": "*",
|
|
34
34
|
"@pareto-engineering/stylelint-config": "*",
|
|
35
|
-
"@storybook/addon-essentials": "^7.0.
|
|
36
|
-
"@storybook/addon-interactions": "^7.0.
|
|
37
|
-
"@storybook/addon-links": "^7.0.
|
|
38
|
-
"@storybook/addon-storyshots": "^7.0.
|
|
39
|
-
"@storybook/blocks": "^7.0.
|
|
40
|
-
"@storybook/react": "^7.0.
|
|
41
|
-
"@storybook/react-webpack5": "^7.0.
|
|
42
|
-
"@storybook/testing-library": "^0.0
|
|
35
|
+
"@storybook/addon-essentials": "^7.0.6",
|
|
36
|
+
"@storybook/addon-interactions": "^7.0.6",
|
|
37
|
+
"@storybook/addon-links": "^7.0.6",
|
|
38
|
+
"@storybook/addon-storyshots": "^7.0.6",
|
|
39
|
+
"@storybook/blocks": "^7.0.6",
|
|
40
|
+
"@storybook/react": "^7.0.6",
|
|
41
|
+
"@storybook/react-webpack5": "^7.0.6",
|
|
42
|
+
"@storybook/testing-library": "^0.1.0",
|
|
43
43
|
"babel-plugin-relay": "^15.0.0",
|
|
44
44
|
"copyfiles": "^2.4.1",
|
|
45
45
|
"css-loader": "^6.7.3",
|
|
46
46
|
"identity-obj-proxy": "^3.0.0",
|
|
47
47
|
"jest-environment-jsdom": "^29.5.0",
|
|
48
|
-
"sass-loader": "^13.2.
|
|
49
|
-
"storybook": "^7.0.
|
|
50
|
-
"style-loader": "^3.3.
|
|
48
|
+
"sass-loader": "^13.2.2",
|
|
49
|
+
"storybook": "^7.0.6",
|
|
50
|
+
"style-loader": "^3.3.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@pareto-engineering/assets": "^4.0.0-alpha.
|
|
54
|
-
"@pareto-engineering/bem": "^4.0.0-alpha.
|
|
55
|
-
"@pareto-engineering/styles": "^4.0.0-alpha.
|
|
53
|
+
"@pareto-engineering/assets": "^4.0.0-alpha.9",
|
|
54
|
+
"@pareto-engineering/bem": "^4.0.0-alpha.9",
|
|
55
|
+
"@pareto-engineering/styles": "^4.0.0-alpha.9",
|
|
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": "2101215054a810e3f9d8d82c9ff475a07e54c670"
|
|
71
71
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { MetaCard } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/MetaCard',
|
|
8
|
+
component :MetaCard,
|
|
9
|
+
subcomponents:{},
|
|
10
|
+
decorators :[],
|
|
11
|
+
controls :{
|
|
12
|
+
hasBackgroundBlur:{ type: 'boolean' },
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const Template = (args) => (
|
|
17
|
+
<div style={{ backgroundImage: 'linear-gradient(purple, white)', padding: '1em' }}>
|
|
18
|
+
<MetaCard {...args}>
|
|
19
|
+
<h3 style={{ gridColumn: '2/-1' }}>
|
|
20
|
+
Column 2
|
|
21
|
+
</h3>
|
|
22
|
+
<p style={{ gridColumn: '3/-1' }}>
|
|
23
|
+
Column 3
|
|
24
|
+
</p>
|
|
25
|
+
</MetaCard>
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
export const Base = Template.bind({})
|
|
30
|
+
Base.args = {}
|
|
31
|
+
|
|
32
|
+
export const WithBlur = Template.bind({})
|
|
33
|
+
WithBlur.args = {
|
|
34
|
+
hasBackgroundBlur:true,
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { TextSteps } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/TextSteps',
|
|
8
|
+
component:TextSteps,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const items = [
|
|
12
|
+
'Join Pareto in minutes. Share your business goals to match with a Project Partner.',
|
|
13
|
+
'Receive initial output in 24 hours. Give feedback to fine-tune results and level up your Pareto team.',
|
|
14
|
+
'Tap into economies of scale with tried and true playbooks: Benefit from strategic project recommendations. Enjoy continuous workflow improvement and documented learnings.',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export const Base = () => (
|
|
18
|
+
<div className="grid span-8 md-span-14"><TextSteps items={items} /></div>
|
|
19
|
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Tip } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'a/Tip',
|
|
8
|
+
component :Tip,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
// Item:Quote.Item
|
|
11
|
+
},
|
|
12
|
+
decorators:[
|
|
13
|
+
// storyfn => <div className="">{ storyfn() }</div>,
|
|
14
|
+
],
|
|
15
|
+
argTypes:{
|
|
16
|
+
color:{ control: 'color' },
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Template = (args) => (
|
|
21
|
+
<Tip {...args} />
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export const Base = Template.bind({})
|
|
25
|
+
Base.args = {
|
|
26
|
+
children:'Remember to wash your vegetables before eating them.',
|
|
27
|
+
color :'main',
|
|
28
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
import * as React from 'react'
|
|
3
|
+
|
|
4
|
+
import { Card } from 'ui'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title :'b/Card',
|
|
8
|
+
component :Card,
|
|
9
|
+
subcomponents:{
|
|
10
|
+
'Card.Section':Card.Section,
|
|
11
|
+
'Card.Group' :Card.Group,
|
|
12
|
+
},
|
|
13
|
+
decorators:[
|
|
14
|
+
// (storyfn) => <Router>{storyfn()}</Router>,
|
|
15
|
+
],
|
|
16
|
+
argTypes:{
|
|
17
|
+
progress:{ control: 'number' },
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const Template = ({ isImage, ...args }) => (
|
|
22
|
+
<Card
|
|
23
|
+
{...args}
|
|
24
|
+
>
|
|
25
|
+
{ isImage && (
|
|
26
|
+
<Card.Section isImage>
|
|
27
|
+
<img src="https://miro.medium.com/max/1124/1*v9We8Bevk2FFA5YadZNwcQ.jpeg" alt="test" />
|
|
28
|
+
</Card.Section>
|
|
29
|
+
)}
|
|
30
|
+
<Card.Section>
|
|
31
|
+
<h1>
|
|
32
|
+
Section One
|
|
33
|
+
</h1>
|
|
34
|
+
</Card.Section>
|
|
35
|
+
<Card.Section>
|
|
36
|
+
<h2>
|
|
37
|
+
Section Two
|
|
38
|
+
</h2>
|
|
39
|
+
</Card.Section>
|
|
40
|
+
<Card.Section>
|
|
41
|
+
<h3>
|
|
42
|
+
Section Three
|
|
43
|
+
</h3>
|
|
44
|
+
</Card.Section>
|
|
45
|
+
</Card>
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
export const Base = Template.bind({})
|
|
49
|
+
Base.args = {}
|
|
50
|
+
|
|
51
|
+
export const CardWithProgress = Template.bind({})
|
|
52
|
+
CardWithProgress.args = {
|
|
53
|
+
progress:50,
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const CardWithImageSection = Template.bind({})
|
|
57
|
+
CardWithImageSection.args = {
|
|
58
|
+
isImage:true,
|
|
59
|
+
}
|