@pareto-engineering/design-system 3.0.0-alpha.18 → 3.0.0-alpha.28
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/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -4
- package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
- package/dist/es/f/FormInput/FormInput.js +1 -1
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -4
- package/package.json +3 -4
- package/src/__snapshots__/Storyshots.test.js.snap +6 -53
- package/src/stories/a/Conversation.stories.jsx +5 -5
- package/src/stories/c/Modal.stories.jsx +0 -18
- package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +1 -1
- package/src/ui/f/FormInput/FormInput.jsx +2 -0
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -5
- package/dist/cjs/a/Alert/Alert.js +0 -121
- package/dist/cjs/a/Alert/index.js +0 -13
- package/dist/cjs/a/Alert/styles.scss +0 -74
- package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +0 -67
- package/dist/cjs/a/BackgroundGradient/index.js +0 -13
- package/dist/cjs/a/BackgroundGradient/styles.scss +0 -16
- package/dist/cjs/a/ContentCard/ContentCard.js +0 -66
- package/dist/cjs/a/ContentCard/common/Section/Section.js +0 -69
- package/dist/cjs/a/ContentCard/common/Section/index.js +0 -13
- package/dist/cjs/a/ContentCard/common/index.js +0 -12
- package/dist/cjs/a/ContentCard/index.js +0 -13
- package/dist/cjs/a/ContentCard/styles.scss +0 -78
- package/dist/cjs/a/CustomerLogos/CustomerLogos.js +0 -77
- package/dist/cjs/a/CustomerLogos/index.js +0 -13
- package/dist/cjs/a/CustomerLogos/styles.scss +0 -41
- package/dist/cjs/a/CustomerStat/CustomerStat.js +0 -75
- package/dist/cjs/a/CustomerStat/index.js +0 -13
- package/dist/cjs/a/CustomerStat/styles.scss +0 -16
- package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +0 -61
- package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +0 -59
- package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +0 -13
- package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -59
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +0 -13
- package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/dist/cjs/a/DashboardNavbar/common/index.js +0 -19
- package/dist/cjs/a/DashboardNavbar/index.js +0 -13
- package/dist/cjs/a/DashboardNavbar/styles.scss +0 -14
- package/dist/cjs/a/FeaturedOn/FeaturedOn.js +0 -79
- package/dist/cjs/a/FeaturedOn/index.js +0 -13
- package/dist/cjs/a/FeaturedOn/styles.scss +0 -41
- package/dist/cjs/a/TeamInfo/TeamInfo.js +0 -90
- package/dist/cjs/a/TeamInfo/index.js +0 -13
- package/dist/cjs/a/TeamInfo/styles.scss +0 -58
- package/dist/cjs/b/Card/Card.js +0 -56
- package/dist/cjs/b/Card/common/Group/Group.js +0 -60
- package/dist/cjs/b/Card/common/Group/index.js +0 -13
- package/dist/cjs/b/Card/common/Group/styles.scss +0 -61
- package/dist/cjs/b/Card/common/index.js +0 -12
- package/dist/cjs/b/Card/index.js +0 -13
- package/dist/cjs/b/Card/styles.scss +0 -12
- package/dist/cjs/b/Metrics/Metrics.js +0 -78
- package/dist/cjs/b/Metrics/index.js +0 -13
- package/dist/cjs/b/Metrics/styles.scss +0 -91
- package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +0 -104
- package/dist/cjs/b/QuestionDropdown/index.js +0 -13
- package/dist/cjs/b/QuestionDropdown/styles.scss +0 -95
- package/dist/cjs/b/Segment/Segment.js +0 -68
- package/dist/cjs/b/Segment/index.js +0 -13
- package/dist/cjs/b/Segment/styles.scss +0 -26
- package/dist/cjs/c/Hero/Hero.js +0 -77
- package/dist/cjs/c/Hero/index.js +0 -13
- package/dist/cjs/c/Hero/styles.scss +0 -41
- package/dist/es/a/Alert/Alert.js +0 -110
- package/dist/es/a/Alert/index.js +0 -2
- package/dist/es/a/Alert/styles.scss +0 -74
- package/dist/es/a/BackgroundGradient/BackgroundGradient.js +0 -56
- package/dist/es/a/BackgroundGradient/index.js +0 -2
- package/dist/es/a/BackgroundGradient/styles.scss +0 -16
- package/dist/es/a/ContentCard/ContentCard.js +0 -61
- package/dist/es/a/ContentCard/common/Section/Section.js +0 -59
- package/dist/es/a/ContentCard/common/Section/index.js +0 -2
- package/dist/es/a/ContentCard/common/index.js +0 -1
- package/dist/es/a/ContentCard/index.js +0 -2
- package/dist/es/a/ContentCard/styles.scss +0 -78
- package/dist/es/a/CustomerLogos/CustomerLogos.js +0 -70
- package/dist/es/a/CustomerLogos/index.js +0 -2
- package/dist/es/a/CustomerLogos/styles.scss +0 -41
- package/dist/es/a/CustomerStat/CustomerStat.js +0 -68
- package/dist/es/a/CustomerStat/index.js +0 -2
- package/dist/es/a/CustomerStat/styles.scss +0 -16
- package/dist/es/a/DashboardNavbar/DashboardNavbar.js +0 -56
- package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +0 -51
- package/dist/es/a/DashboardNavbar/common/NavItem/index.js +0 -2
- package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
- package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -51
- package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +0 -2
- package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
- package/dist/es/a/DashboardNavbar/common/index.js +0 -2
- package/dist/es/a/DashboardNavbar/index.js +0 -2
- package/dist/es/a/DashboardNavbar/styles.scss +0 -14
- package/dist/es/a/FeaturedOn/FeaturedOn.js +0 -72
- package/dist/es/a/FeaturedOn/index.js +0 -2
- package/dist/es/a/FeaturedOn/styles.scss +0 -41
- package/dist/es/a/TeamInfo/TeamInfo.js +0 -83
- package/dist/es/a/TeamInfo/index.js +0 -2
- package/dist/es/a/TeamInfo/styles.scss +0 -58
- package/dist/es/b/Card/Card.js +0 -51
- package/dist/es/b/Card/common/Group/Group.js +0 -54
- package/dist/es/b/Card/common/Group/index.js +0 -2
- package/dist/es/b/Card/common/Group/styles.scss +0 -61
- package/dist/es/b/Card/common/index.js +0 -1
- package/dist/es/b/Card/index.js +0 -2
- package/dist/es/b/Card/styles.scss +0 -12
- package/dist/es/b/Metrics/Metrics.js +0 -72
- package/dist/es/b/Metrics/index.js +0 -2
- package/dist/es/b/Metrics/styles.scss +0 -91
- package/dist/es/b/QuestionDropdown/QuestionDropdown.js +0 -99
- package/dist/es/b/QuestionDropdown/index.js +0 -2
- package/dist/es/b/QuestionDropdown/styles.scss +0 -95
- package/dist/es/b/Segment/Segment.js +0 -62
- package/dist/es/b/Segment/index.js +0 -2
- package/dist/es/b/Segment/styles.scss +0 -26
- package/dist/es/c/Hero/Hero.js +0 -70
- package/dist/es/c/Hero/index.js +0 -2
- package/dist/es/c/Hero/styles.scss +0 -41
|
@@ -62,7 +62,7 @@ var Sidebar = _ref => {
|
|
|
62
62
|
className: [currentStepIndex === i ? 'x-heading' : i < currentStepIndex ? 'pointer x-paragraph xh-main2' : 'x-subtitle', 'c-x'].filter(e => e).join(' '),
|
|
63
63
|
onClick: i < currentStepIndex ? () => setStepIndex(i) : undefined
|
|
64
64
|
}, step.title)
|
|
65
|
-
/* eslint-enable no-nested-ternary */))), footer
|
|
65
|
+
/* eslint-enable no-nested-ternary */))), footer ? /*#__PURE__*/React.createElement("footer", null, footer, /*#__PURE__*/React.createElement(_b.ThemeSelector, {
|
|
66
66
|
className: "x-heading"
|
|
67
67
|
})) : /*#__PURE__*/React.createElement("span", null));
|
|
68
68
|
};
|
|
@@ -103,7 +103,7 @@ FormInput.propTypes = {
|
|
|
103
103
|
/**
|
|
104
104
|
* The HTML class names for this element
|
|
105
105
|
*/
|
|
106
|
-
type: _propTypes.default.oneOf(['text', 'email', 'password', 'number', 'date', 'datetime', 'month', 'tel', 'hidden', 'select', 'choices', 'textarea', 'query-combobox', 'url', 'rating',
|
|
106
|
+
type: _propTypes.default.oneOf(['text', 'email', 'password', 'number', 'date', 'datetime', 'month', 'tel', 'hidden', 'select', 'choices', 'textarea', 'query-combobox', 'query-select', 'url', 'rating', 'checkbox',
|
|
107
107
|
// to be removed
|
|
108
108
|
'extendedTypeInput']),
|
|
109
109
|
/**
|
|
@@ -177,10 +177,6 @@ QueryCombobox.propTypes = {
|
|
|
177
177
|
* Whether to allow multiple items selection
|
|
178
178
|
*/
|
|
179
179
|
multiple: _propTypes.default.bool,
|
|
180
|
-
/**
|
|
181
|
-
* The graphql node to be used to destructure the fetched data
|
|
182
|
-
*/
|
|
183
|
-
graphQlNode: _propTypes.default.string.isRequired,
|
|
184
180
|
/**
|
|
185
181
|
* The variable to be used to search the data
|
|
186
182
|
*/
|
|
@@ -53,7 +53,7 @@ const Sidebar = _ref => {
|
|
|
53
53
|
className: [currentStepIndex === i ? 'x-heading' : i < currentStepIndex ? 'pointer x-paragraph xh-main2' : 'x-subtitle', 'c-x'].filter(e => e).join(' '),
|
|
54
54
|
onClick: i < currentStepIndex ? () => setStepIndex(i) : undefined
|
|
55
55
|
}, step.title)
|
|
56
|
-
/* eslint-enable no-nested-ternary */))), footer
|
|
56
|
+
/* eslint-enable no-nested-ternary */))), footer ? /*#__PURE__*/React.createElement("footer", null, footer, /*#__PURE__*/React.createElement(ThemeSelector, {
|
|
57
57
|
className: "x-heading"
|
|
58
58
|
})) : /*#__PURE__*/React.createElement("span", null));
|
|
59
59
|
};
|
|
@@ -94,7 +94,7 @@ FormInput.propTypes = {
|
|
|
94
94
|
/**
|
|
95
95
|
* The HTML class names for this element
|
|
96
96
|
*/
|
|
97
|
-
type: PropTypes.oneOf(['text', 'email', 'password', 'number', 'date', 'datetime', 'month', 'tel', 'hidden', 'select', 'choices', 'textarea', 'query-combobox', 'url', 'rating',
|
|
97
|
+
type: PropTypes.oneOf(['text', 'email', 'password', 'number', 'date', 'datetime', 'month', 'tel', 'hidden', 'select', 'choices', 'textarea', 'query-combobox', 'query-select', 'url', 'rating', 'checkbox',
|
|
98
98
|
// to be removed
|
|
99
99
|
'extendedTypeInput']),
|
|
100
100
|
/**
|
|
@@ -172,10 +172,6 @@ QueryCombobox.propTypes = {
|
|
|
172
172
|
* Whether to allow multiple items selection
|
|
173
173
|
*/
|
|
174
174
|
multiple: PropTypes.bool,
|
|
175
|
-
/**
|
|
176
|
-
* The graphql node to be used to destructure the fetched data
|
|
177
|
-
*/
|
|
178
|
-
graphQlNode: PropTypes.string.isRequired,
|
|
179
175
|
/**
|
|
180
176
|
* The variable to be used to search the data
|
|
181
177
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pareto-engineering/design-system",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"chromatic": "chromatic --project-token=b63af653a850",
|
|
19
19
|
"prepare": "npm run compile",
|
|
20
20
|
"prepare:watch": "nodemon --watch src --ignore 'src/stories' --exec 'npm run build:es' && echo done",
|
|
21
|
-
"postinstall": "node ../../scripts/postinstall.js",
|
|
21
|
+
"postinstall:old": "node ../../scripts/postinstall.js",
|
|
22
22
|
"upgrade": "../../scripts/upgrade.sh",
|
|
23
23
|
"test": "npm run test:stylelint && npm run test:eslint && npm run test:jest",
|
|
24
24
|
"testconfig:stylelint": "stylelint src/local.scss",
|
|
@@ -104,6 +104,5 @@
|
|
|
104
104
|
"swiper": "^6.7.5",
|
|
105
105
|
"typed.js": "^2.0.12"
|
|
106
106
|
},
|
|
107
|
-
"browserslist": "> 2%, not ie > 0, not opera > 0, not op_mini > 0"
|
|
108
|
-
"gitHead": "cee61023d7ebe2afe091af93207452a89ef97814"
|
|
107
|
+
"browserslist": "> 2%, not ie > 0, not opera > 0, not op_mini > 0"
|
|
109
108
|
}
|
|
@@ -288,7 +288,7 @@ exports[`Storyshots a/Conversation Base 1`] = `
|
|
|
288
288
|
:
|
|
289
289
|
</p>
|
|
290
290
|
<p>
|
|
291
|
-
Hi Morgan! Here is the
|
|
291
|
+
Hi Morgan! Here is the spreadsheet we prepared for you.
|
|
292
292
|
</p>
|
|
293
293
|
</div>
|
|
294
294
|
</div>
|
|
@@ -360,7 +360,7 @@ exports[`Storyshots a/Conversation With Attachment 1`] = `
|
|
|
360
360
|
:
|
|
361
361
|
</p>
|
|
362
362
|
<p>
|
|
363
|
-
Hi Camille, please compile an assesment of top
|
|
363
|
+
Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.
|
|
364
364
|
</p>
|
|
365
365
|
</div>
|
|
366
366
|
</div>
|
|
@@ -377,7 +377,7 @@ exports[`Storyshots a/Conversation With Attachment 1`] = `
|
|
|
377
377
|
:
|
|
378
378
|
</p>
|
|
379
379
|
<p>
|
|
380
|
-
Hi Morgan! Here is the
|
|
380
|
+
Hi Morgan! Here is the spreadsheet we prepared for you.
|
|
381
381
|
</p>
|
|
382
382
|
<div
|
|
383
383
|
className="attachment y-main4"
|
|
@@ -449,7 +449,7 @@ exports[`Storyshots a/Conversation With Triangle 1`] = `
|
|
|
449
449
|
:
|
|
450
450
|
</p>
|
|
451
451
|
<p>
|
|
452
|
-
Hi Camille, please compile an assesment of top
|
|
452
|
+
Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.
|
|
453
453
|
</p>
|
|
454
454
|
</div>
|
|
455
455
|
</div>
|
|
@@ -466,7 +466,7 @@ exports[`Storyshots a/Conversation With Triangle 1`] = `
|
|
|
466
466
|
:
|
|
467
467
|
</p>
|
|
468
468
|
<p>
|
|
469
|
-
Hi Morgan! Here is the
|
|
469
|
+
Hi Morgan! Here is the spreadsheet we prepared for you.
|
|
470
470
|
</p>
|
|
471
471
|
</div>
|
|
472
472
|
</div>
|
|
@@ -8610,22 +8610,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
|
|
|
8610
8610
|
</li>
|
|
8611
8611
|
</ul>
|
|
8612
8612
|
</div>
|
|
8613
|
-
<
|
|
8614
|
-
<button
|
|
8615
|
-
className="base theme-selector x-heading"
|
|
8616
|
-
onClick={[Function]}
|
|
8617
|
-
type="button"
|
|
8618
|
-
>
|
|
8619
|
-
<span
|
|
8620
|
-
className="v0 m-v icon"
|
|
8621
|
-
>
|
|
8622
|
-
m
|
|
8623
|
-
</span>
|
|
8624
|
-
<span>
|
|
8625
|
-
light
|
|
8626
|
-
</span>
|
|
8627
|
-
</button>
|
|
8628
|
-
</footer>
|
|
8613
|
+
<span />
|
|
8629
8614
|
</nav>
|
|
8630
8615
|
<div
|
|
8631
8616
|
className="horizontal-menu"
|
|
@@ -9118,38 +9103,6 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
|
|
|
9118
9103
|
`;
|
|
9119
9104
|
|
|
9120
9105
|
exports[`Storyshots c/Modal Base 1`] = `
|
|
9121
|
-
<div
|
|
9122
|
-
className="base modal"
|
|
9123
|
-
>
|
|
9124
|
-
<div
|
|
9125
|
-
className="base modal-header"
|
|
9126
|
-
>
|
|
9127
|
-
<p>
|
|
9128
|
-
Modal Title
|
|
9129
|
-
</p>
|
|
9130
|
-
<button
|
|
9131
|
-
className="base button close-button x-anchor modifierCompact"
|
|
9132
|
-
onClick={[Function]}
|
|
9133
|
-
type="button"
|
|
9134
|
-
>
|
|
9135
|
-
<span
|
|
9136
|
-
className="f-icons"
|
|
9137
|
-
>
|
|
9138
|
-
Y
|
|
9139
|
-
</span>
|
|
9140
|
-
</button>
|
|
9141
|
-
</div>
|
|
9142
|
-
<div
|
|
9143
|
-
className="modal-body"
|
|
9144
|
-
>
|
|
9145
|
-
<div>
|
|
9146
|
-
This is a modal.
|
|
9147
|
-
</div>
|
|
9148
|
-
</div>
|
|
9149
|
-
</div>
|
|
9150
|
-
`;
|
|
9151
|
-
|
|
9152
|
-
exports[`Storyshots c/Modal Functional Modal 1`] = `
|
|
9153
9106
|
<button
|
|
9154
9107
|
className="base button x-anchor"
|
|
9155
9108
|
onClick={[Function]}
|
|
@@ -35,7 +35,7 @@ export const Base = () => {
|
|
|
35
35
|
from :'theirs',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
message:'Hi Morgan! Here is the
|
|
38
|
+
message:'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
39
39
|
sender :'CAMILLE',
|
|
40
40
|
from :'ours',
|
|
41
41
|
},
|
|
@@ -63,12 +63,12 @@ export const WithTriangle = () => {
|
|
|
63
63
|
from :'ours',
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
message:'Hi Camille, please compile an assesment of top
|
|
66
|
+
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
67
67
|
sender :'HUMBL',
|
|
68
68
|
from :'theirs',
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
message:'Hi Morgan! Here is the
|
|
71
|
+
message:'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
72
72
|
sender :'CAMILLE',
|
|
73
73
|
from :'ours',
|
|
74
74
|
},
|
|
@@ -100,12 +100,12 @@ export const WithAttachment = () => {
|
|
|
100
100
|
attachmentColor:'main4',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
message:'Hi Camille, please compile an assesment of top
|
|
103
|
+
message:'Hi Camille, please compile an assesment of top 6 firms/brand providers for the listed fields in the US.',
|
|
104
104
|
sender :'HUMBL',
|
|
105
105
|
from :'theirs',
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
message :'Hi Morgan! Here is the
|
|
108
|
+
message :'Hi Morgan! Here is the spreadsheet we prepared for you.',
|
|
109
109
|
sender :'CAMILLE',
|
|
110
110
|
from :'ours',
|
|
111
111
|
attachment :'spreadsheet.xlsx',
|
|
@@ -25,16 +25,6 @@ export default {
|
|
|
25
25
|
|
|
26
26
|
const Template = (args) => {
|
|
27
27
|
const { children } = args
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<Modal {...args}>
|
|
31
|
-
{children}
|
|
32
|
-
</Modal>
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const FunctionalTemplate = (args) => {
|
|
37
|
-
const { children } = args
|
|
38
28
|
const [isOpen, setOpen] = useState(false)
|
|
39
29
|
|
|
40
30
|
return (
|
|
@@ -53,14 +43,6 @@ const FunctionalTemplate = (args) => {
|
|
|
53
43
|
|
|
54
44
|
export const Base = Template.bind({})
|
|
55
45
|
Base.args = {
|
|
56
|
-
children:<div>This is a modal.</div>,
|
|
57
|
-
color :'anchor',
|
|
58
|
-
title :'Modal Title',
|
|
59
|
-
close :() => console.log('You clicked the close button!'),
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const FunctionalModal = FunctionalTemplate.bind({})
|
|
63
|
-
FunctionalModal.args = {
|
|
64
46
|
color :'anchor',
|
|
65
47
|
title :'Modal Title',
|
|
66
48
|
children:<div>This is a modal.</div>,
|
|
@@ -193,11 +193,6 @@ QueryCombobox.propTypes = {
|
|
|
193
193
|
*/
|
|
194
194
|
multiple:PropTypes.bool,
|
|
195
195
|
|
|
196
|
-
/**
|
|
197
|
-
* The graphql node to be used to destructure the fetched data
|
|
198
|
-
*/
|
|
199
|
-
graphQlNode:PropTypes.string.isRequired,
|
|
200
|
-
|
|
201
196
|
/**
|
|
202
197
|
* The variable to be used to search the data
|
|
203
198
|
*/
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _b = require("../../b");
|
|
10
|
-
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
-
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; }
|
|
19
|
-
// Local Definitions
|
|
20
|
-
|
|
21
|
-
var baseClassName = _exports.default.base;
|
|
22
|
-
var componentClassName = 'alert';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* This is the component description.
|
|
26
|
-
*/
|
|
27
|
-
var Alert = _ref => {
|
|
28
|
-
var {
|
|
29
|
-
id,
|
|
30
|
-
className: userClassName,
|
|
31
|
-
style,
|
|
32
|
-
children,
|
|
33
|
-
type,
|
|
34
|
-
withCloseIcon,
|
|
35
|
-
primaryPosition,
|
|
36
|
-
secondaryPosition,
|
|
37
|
-
autoCloseMs,
|
|
38
|
-
width
|
|
39
|
-
// ...otherProps
|
|
40
|
-
} = _ref;
|
|
41
|
-
(0, React.useLayoutEffect)(() => {
|
|
42
|
-
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
43
|
-
}, []);
|
|
44
|
-
var [hideAlert, setHideAlert] = (0, React.useState)(false);
|
|
45
|
-
var handleCloseAlert = () => setHideAlert(true);
|
|
46
|
-
(0, React.useEffect)(() => {
|
|
47
|
-
if (autoCloseMs) {
|
|
48
|
-
setTimeout(() => {
|
|
49
|
-
setHideAlert(true);
|
|
50
|
-
}, autoCloseMs);
|
|
51
|
-
}
|
|
52
|
-
}, [autoCloseMs]);
|
|
53
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
id: id,
|
|
55
|
-
className: [baseClassName, componentClassName, userClassName, "x-".concat(type), hideAlert && 'hide', primaryPosition, secondaryPosition].filter(e => e).join(' '),
|
|
56
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
57
|
-
'--width': width
|
|
58
|
-
})
|
|
59
|
-
// {...otherProps}
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "bar"
|
|
62
|
-
}), withCloseIcon && /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "close"
|
|
64
|
-
}, /*#__PURE__*/React.createElement(_b.Button, {
|
|
65
|
-
isSimple: true,
|
|
66
|
-
color: "heading",
|
|
67
|
-
onClick: handleCloseAlert
|
|
68
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
69
|
-
className: "f-icons"
|
|
70
|
-
}, "Y"))), /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "content"
|
|
72
|
-
}, children));
|
|
73
|
-
};
|
|
74
|
-
Alert.propTypes = {
|
|
75
|
-
/**
|
|
76
|
-
* The HTML id for this element
|
|
77
|
-
*/
|
|
78
|
-
id: _propTypes.default.string,
|
|
79
|
-
/**
|
|
80
|
-
* The HTML class names for this element
|
|
81
|
-
*/
|
|
82
|
-
className: _propTypes.default.string,
|
|
83
|
-
/**
|
|
84
|
-
* The React-written, css properties for this element.
|
|
85
|
-
*/
|
|
86
|
-
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
87
|
-
/**
|
|
88
|
-
* The children JSX
|
|
89
|
-
*/
|
|
90
|
-
children: _propTypes.default.node,
|
|
91
|
-
/**
|
|
92
|
-
* Whether the alert should have a close Icon
|
|
93
|
-
*/
|
|
94
|
-
withCloseIcon: _propTypes.default.bool,
|
|
95
|
-
/**
|
|
96
|
-
* The primary position of the alert
|
|
97
|
-
*/
|
|
98
|
-
primaryPosition: _propTypes.default.oneOf(['top', 'bottom', 'center']),
|
|
99
|
-
/**
|
|
100
|
-
* The secondary position of the alert
|
|
101
|
-
*/
|
|
102
|
-
secondaryPosition: _propTypes.default.oneOf(['left', 'right']),
|
|
103
|
-
/**
|
|
104
|
-
* The number milisseconds to wait for before closing the alert
|
|
105
|
-
*/
|
|
106
|
-
autoCloseMs: _propTypes.default.number,
|
|
107
|
-
/**
|
|
108
|
-
* The type of the alert
|
|
109
|
-
*/
|
|
110
|
-
type: _propTypes.default.oneOf(['success', 'warning', 'error']),
|
|
111
|
-
/**
|
|
112
|
-
* The width of the alert
|
|
113
|
-
*/
|
|
114
|
-
width: _propTypes.default.number
|
|
115
|
-
};
|
|
116
|
-
Alert.defaultProps = {
|
|
117
|
-
withCloseIcon: true,
|
|
118
|
-
primaryPosition: 'top'
|
|
119
|
-
};
|
|
120
|
-
var _default = Alert;
|
|
121
|
-
exports.default = _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Alert", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _Alert.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _Alert = _interopRequireDefault(require("./Alert"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
@use "@pareto-engineering/bem";
|
|
3
|
-
@use "@pareto-engineering/styles/src/mixins";
|
|
4
|
-
@use "@pareto-engineering/styles/src/globals" as *;
|
|
5
|
-
|
|
6
|
-
$default-padding: 1em;
|
|
7
|
-
$default-bar-height: .3em;
|
|
8
|
-
$default-alert-desktop-width: var(--width, 30em);
|
|
9
|
-
|
|
10
|
-
.#{bem.$base}.alert {
|
|
11
|
-
border: var(--theme-border);
|
|
12
|
-
padding-bottom: $default-padding * 1.5;
|
|
13
|
-
width: 100%;
|
|
14
|
-
position: absolute;
|
|
15
|
-
z-index: 1;
|
|
16
|
-
|
|
17
|
-
&.center {
|
|
18
|
-
top: 50%;
|
|
19
|
-
left: 50%;
|
|
20
|
-
transform: translate(-50%, -50%);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.top {
|
|
24
|
-
top: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.bottom {
|
|
28
|
-
bottom: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.right {
|
|
32
|
-
right: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.left {
|
|
36
|
-
left: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.hide {
|
|
40
|
-
display: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
>.bar {
|
|
44
|
-
background-color: var(--x);
|
|
45
|
-
height: $default-bar-height;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
>.close {
|
|
49
|
-
display: flex;
|
|
50
|
-
justify-content: flex-end;
|
|
51
|
-
|
|
52
|
-
span {
|
|
53
|
-
padding: $default-padding / 2;
|
|
54
|
-
font-size: calc(var(--s-2) * 1em);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.bar+.content {
|
|
59
|
-
padding-top: $default-padding * 1.5;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
>.content {
|
|
63
|
-
padding-inline: $default-padding;
|
|
64
|
-
|
|
65
|
-
.icon {
|
|
66
|
-
color: var(--x)
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Desktop styles
|
|
71
|
-
@include mixins.media($from: $sm-md) {
|
|
72
|
-
width: $default-alert-desktop-width;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
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; }
|
|
18
|
-
// Local Definitions
|
|
19
|
-
|
|
20
|
-
var baseClassName = _exports.default.base;
|
|
21
|
-
var componentClassName = 'background-gradient';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* This is the component description.
|
|
25
|
-
*/
|
|
26
|
-
var BackgroundGradient = _ref => {
|
|
27
|
-
var {
|
|
28
|
-
id,
|
|
29
|
-
className: userClassName,
|
|
30
|
-
style,
|
|
31
|
-
height
|
|
32
|
-
// ...otherProps
|
|
33
|
-
} = _ref;
|
|
34
|
-
(0, React.useLayoutEffect)(() => {
|
|
35
|
-
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
36
|
-
}, []);
|
|
37
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
id: id,
|
|
39
|
-
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
40
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
41
|
-
'--gradient-height': height
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
BackgroundGradient.propTypes = {
|
|
46
|
-
/**
|
|
47
|
-
* The HTML id for this element
|
|
48
|
-
*/
|
|
49
|
-
id: _propTypes.default.string,
|
|
50
|
-
/**
|
|
51
|
-
* The HTML class names for this element
|
|
52
|
-
*/
|
|
53
|
-
className: _propTypes.default.string,
|
|
54
|
-
/**
|
|
55
|
-
* The React-written, css properties for this element.
|
|
56
|
-
*/
|
|
57
|
-
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
58
|
-
/**
|
|
59
|
-
* The height of the shape.
|
|
60
|
-
*/
|
|
61
|
-
height: _propTypes.default.string
|
|
62
|
-
};
|
|
63
|
-
BackgroundGradient.defaultProps = {
|
|
64
|
-
// someProp: false,
|
|
65
|
-
};
|
|
66
|
-
var _default = BackgroundGradient;
|
|
67
|
-
exports.default = _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BackgroundGradient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _BackgroundGradient.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _BackgroundGradient = _interopRequireDefault(require("./BackgroundGradient"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
@use "@pareto-engineering/bem";
|
|
3
|
-
|
|
4
|
-
.#{bem.$base}.background-gradient{
|
|
5
|
-
position: absolute;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: var(--gradient-height);
|
|
10
|
-
background-image: linear-gradient(var(--background1), var(--y) 25%, var(--soft-y) 75%, var(--background1));
|
|
11
|
-
opacity: .4;
|
|
12
|
-
z-index: -1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|