@pareto-engineering/design-system 3.0.0-alpha.18 → 3.0.0-alpha.22

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.
Files changed (119) hide show
  1. package/dist/cjs/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
  2. package/dist/cjs/f/FormInput/FormInput.js +1 -1
  3. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -4
  4. package/dist/es/c/ContentSlides/common/Sidebar/Sidebar.js +1 -1
  5. package/dist/es/f/FormInput/FormInput.js +1 -1
  6. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -4
  7. package/package.json +2 -2
  8. package/src/__snapshots__/Storyshots.test.js.snap +6 -53
  9. package/src/stories/a/Conversation.stories.jsx +5 -5
  10. package/src/stories/c/Modal.stories.jsx +0 -18
  11. package/src/ui/c/ContentSlides/common/Sidebar/Sidebar.jsx +1 -1
  12. package/src/ui/f/FormInput/FormInput.jsx +2 -0
  13. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -5
  14. package/dist/cjs/a/Alert/Alert.js +0 -121
  15. package/dist/cjs/a/Alert/index.js +0 -13
  16. package/dist/cjs/a/Alert/styles.scss +0 -74
  17. package/dist/cjs/a/BackgroundGradient/BackgroundGradient.js +0 -67
  18. package/dist/cjs/a/BackgroundGradient/index.js +0 -13
  19. package/dist/cjs/a/BackgroundGradient/styles.scss +0 -16
  20. package/dist/cjs/a/ContentCard/ContentCard.js +0 -66
  21. package/dist/cjs/a/ContentCard/common/Section/Section.js +0 -69
  22. package/dist/cjs/a/ContentCard/common/Section/index.js +0 -13
  23. package/dist/cjs/a/ContentCard/common/index.js +0 -12
  24. package/dist/cjs/a/ContentCard/index.js +0 -13
  25. package/dist/cjs/a/ContentCard/styles.scss +0 -78
  26. package/dist/cjs/a/CustomerLogos/CustomerLogos.js +0 -77
  27. package/dist/cjs/a/CustomerLogos/index.js +0 -13
  28. package/dist/cjs/a/CustomerLogos/styles.scss +0 -41
  29. package/dist/cjs/a/CustomerStat/CustomerStat.js +0 -75
  30. package/dist/cjs/a/CustomerStat/index.js +0 -13
  31. package/dist/cjs/a/CustomerStat/styles.scss +0 -16
  32. package/dist/cjs/a/DashboardNavbar/DashboardNavbar.js +0 -61
  33. package/dist/cjs/a/DashboardNavbar/common/NavItem/NavItem.js +0 -59
  34. package/dist/cjs/a/DashboardNavbar/common/NavItem/index.js +0 -13
  35. package/dist/cjs/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
  36. package/dist/cjs/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -59
  37. package/dist/cjs/a/DashboardNavbar/common/NavProfile/index.js +0 -13
  38. package/dist/cjs/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
  39. package/dist/cjs/a/DashboardNavbar/common/index.js +0 -19
  40. package/dist/cjs/a/DashboardNavbar/index.js +0 -13
  41. package/dist/cjs/a/DashboardNavbar/styles.scss +0 -14
  42. package/dist/cjs/a/FeaturedOn/FeaturedOn.js +0 -79
  43. package/dist/cjs/a/FeaturedOn/index.js +0 -13
  44. package/dist/cjs/a/FeaturedOn/styles.scss +0 -41
  45. package/dist/cjs/a/TeamInfo/TeamInfo.js +0 -90
  46. package/dist/cjs/a/TeamInfo/index.js +0 -13
  47. package/dist/cjs/a/TeamInfo/styles.scss +0 -58
  48. package/dist/cjs/b/Card/Card.js +0 -56
  49. package/dist/cjs/b/Card/common/Group/Group.js +0 -60
  50. package/dist/cjs/b/Card/common/Group/index.js +0 -13
  51. package/dist/cjs/b/Card/common/Group/styles.scss +0 -61
  52. package/dist/cjs/b/Card/common/index.js +0 -12
  53. package/dist/cjs/b/Card/index.js +0 -13
  54. package/dist/cjs/b/Card/styles.scss +0 -12
  55. package/dist/cjs/b/Metrics/Metrics.js +0 -78
  56. package/dist/cjs/b/Metrics/index.js +0 -13
  57. package/dist/cjs/b/Metrics/styles.scss +0 -91
  58. package/dist/cjs/b/QuestionDropdown/QuestionDropdown.js +0 -104
  59. package/dist/cjs/b/QuestionDropdown/index.js +0 -13
  60. package/dist/cjs/b/QuestionDropdown/styles.scss +0 -95
  61. package/dist/cjs/b/Segment/Segment.js +0 -68
  62. package/dist/cjs/b/Segment/index.js +0 -13
  63. package/dist/cjs/b/Segment/styles.scss +0 -26
  64. package/dist/cjs/c/Hero/Hero.js +0 -77
  65. package/dist/cjs/c/Hero/index.js +0 -13
  66. package/dist/cjs/c/Hero/styles.scss +0 -41
  67. package/dist/es/a/Alert/Alert.js +0 -110
  68. package/dist/es/a/Alert/index.js +0 -2
  69. package/dist/es/a/Alert/styles.scss +0 -74
  70. package/dist/es/a/BackgroundGradient/BackgroundGradient.js +0 -56
  71. package/dist/es/a/BackgroundGradient/index.js +0 -2
  72. package/dist/es/a/BackgroundGradient/styles.scss +0 -16
  73. package/dist/es/a/ContentCard/ContentCard.js +0 -61
  74. package/dist/es/a/ContentCard/common/Section/Section.js +0 -59
  75. package/dist/es/a/ContentCard/common/Section/index.js +0 -2
  76. package/dist/es/a/ContentCard/common/index.js +0 -1
  77. package/dist/es/a/ContentCard/index.js +0 -2
  78. package/dist/es/a/ContentCard/styles.scss +0 -78
  79. package/dist/es/a/CustomerLogos/CustomerLogos.js +0 -70
  80. package/dist/es/a/CustomerLogos/index.js +0 -2
  81. package/dist/es/a/CustomerLogos/styles.scss +0 -41
  82. package/dist/es/a/CustomerStat/CustomerStat.js +0 -68
  83. package/dist/es/a/CustomerStat/index.js +0 -2
  84. package/dist/es/a/CustomerStat/styles.scss +0 -16
  85. package/dist/es/a/DashboardNavbar/DashboardNavbar.js +0 -56
  86. package/dist/es/a/DashboardNavbar/common/NavItem/NavItem.js +0 -51
  87. package/dist/es/a/DashboardNavbar/common/NavItem/index.js +0 -2
  88. package/dist/es/a/DashboardNavbar/common/NavItem/styles.scss +0 -9
  89. package/dist/es/a/DashboardNavbar/common/NavProfile/NavProfile.js +0 -51
  90. package/dist/es/a/DashboardNavbar/common/NavProfile/index.js +0 -2
  91. package/dist/es/a/DashboardNavbar/common/NavProfile/styles.scss +0 -9
  92. package/dist/es/a/DashboardNavbar/common/index.js +0 -2
  93. package/dist/es/a/DashboardNavbar/index.js +0 -2
  94. package/dist/es/a/DashboardNavbar/styles.scss +0 -14
  95. package/dist/es/a/FeaturedOn/FeaturedOn.js +0 -72
  96. package/dist/es/a/FeaturedOn/index.js +0 -2
  97. package/dist/es/a/FeaturedOn/styles.scss +0 -41
  98. package/dist/es/a/TeamInfo/TeamInfo.js +0 -83
  99. package/dist/es/a/TeamInfo/index.js +0 -2
  100. package/dist/es/a/TeamInfo/styles.scss +0 -58
  101. package/dist/es/b/Card/Card.js +0 -51
  102. package/dist/es/b/Card/common/Group/Group.js +0 -54
  103. package/dist/es/b/Card/common/Group/index.js +0 -2
  104. package/dist/es/b/Card/common/Group/styles.scss +0 -61
  105. package/dist/es/b/Card/common/index.js +0 -1
  106. package/dist/es/b/Card/index.js +0 -2
  107. package/dist/es/b/Card/styles.scss +0 -12
  108. package/dist/es/b/Metrics/Metrics.js +0 -72
  109. package/dist/es/b/Metrics/index.js +0 -2
  110. package/dist/es/b/Metrics/styles.scss +0 -91
  111. package/dist/es/b/QuestionDropdown/QuestionDropdown.js +0 -99
  112. package/dist/es/b/QuestionDropdown/index.js +0 -2
  113. package/dist/es/b/QuestionDropdown/styles.scss +0 -95
  114. package/dist/es/b/Segment/Segment.js +0 -62
  115. package/dist/es/b/Segment/index.js +0 -2
  116. package/dist/es/b/Segment/styles.scss +0 -26
  117. package/dist/es/c/Hero/Hero.js +0 -70
  118. package/dist/es/c/Hero/index.js +0 -2
  119. package/dist/es/c/Hero/styles.scss +0 -41
@@ -1,56 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.3 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- // import styleNames from 'style_names.scss'
7
- import { NavItem, NavProfile } from "./common";
8
-
9
- // Component-level imports
10
- import("./styles.scss");
11
-
12
- // Helper Definition
13
- // const baseClassName = styleNames.base
14
- const componentClassName = 'dashboard-navbar';
15
- const DashboardNavbar = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- children
21
- // ...otherProps
22
- } = _ref;
23
- return /*#__PURE__*/React.createElement("div", {
24
- id: id,
25
- className: [
26
- // baseClassName,
27
- componentClassName, userClassName].filter(e => e).join(' '),
28
- style: style
29
- }, /*#__PURE__*/React.createElement("section", {
30
- className: "menu"
31
- }, children), /*#__PURE__*/React.createElement(NavProfile, null));
32
- };
33
- DashboardNavbar.propTypes = {
34
- /**
35
- * The HTML id for this element
36
- */
37
- id: PropTypes.string,
38
- /**
39
- * The HTML class names for this element
40
- */
41
- className: PropTypes.string,
42
- /**
43
- * The React-written, css properties for this element.
44
- */
45
- style: PropTypes.objectOf(PropTypes.string),
46
- /**
47
- * The children JSX
48
- */
49
- children: PropTypes.node
50
- };
51
- DashboardNavbar.defaultProps = {
52
- // someProp:false
53
- };
54
- DashboardNavbar.Item = NavItem;
55
- DashboardNavbar.Profile = NavProfile;
56
- export default DashboardNavbar;
@@ -1,51 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- // import styleNames from 'style_names.scss'
7
-
8
- // Component-level imports
9
- import("./styles.scss");
10
-
11
- // Helper Definition
12
- // const baseClassName = styleNames.base
13
- const componentClassName = 'nav-item';
14
- const NavItem = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children
20
- // ...otherProps
21
- } = _ref;
22
- return /*#__PURE__*/React.createElement("div", {
23
- id: id,
24
- className: [
25
- // baseClassName,
26
- componentClassName, userClassName].filter(e => e).join(' '),
27
- style: style
28
- }, "Nav Item", children);
29
- };
30
- NavItem.propTypes = {
31
- /**
32
- * The HTML id for this element
33
- */
34
- id: PropTypes.string,
35
- /**
36
- * The HTML class names for this element
37
- */
38
- className: PropTypes.string,
39
- /**
40
- * The React-written, css properties for this element.
41
- */
42
- style: PropTypes.objectOf(PropTypes.string),
43
- /**
44
- * The children JSX
45
- */
46
- children: PropTypes.node
47
- };
48
- NavItem.defaultProps = {
49
- // someProp:false
50
- };
51
- export default NavItem;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- export { default as NavItem } from "./NavItem";
@@ -1,9 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
-
3
- /* stylelint-disable -- Not done yet */
4
- .nav-item{
5
-
6
- }
7
-
8
-
9
-
@@ -1,51 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- // import styleNames from 'style_names.scss'
7
-
8
- // Component-level imports
9
- import("./styles.scss");
10
-
11
- // Helper Definition
12
- // const baseClassName = styleNames.base
13
- const componentClassName = 'nav-profile';
14
- const NavProfile = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children
20
- // ...otherProps
21
- } = _ref;
22
- return /*#__PURE__*/React.createElement("div", {
23
- id: id,
24
- className: [
25
- // baseClassName,
26
- componentClassName, userClassName].filter(e => e).join(' '),
27
- style: style
28
- }, "Nav Profile", children);
29
- };
30
- NavProfile.propTypes = {
31
- /**
32
- * The HTML id for this element
33
- */
34
- id: PropTypes.string,
35
- /**
36
- * The HTML class names for this element
37
- */
38
- className: PropTypes.string,
39
- /**
40
- * The React-written, css properties for this element.
41
- */
42
- style: PropTypes.objectOf(PropTypes.string),
43
- /**
44
- * The children JSX
45
- */
46
- children: PropTypes.node
47
- };
48
- NavProfile.defaultProps = {
49
- // someProp:false
50
- };
51
- export default NavProfile;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- export { default as NavProfile } from "./NavProfile";
@@ -1,9 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
-
3
- /* stylelint-disable -- Not done yet */
4
- .nav-profile{
5
-
6
- }
7
-
8
-
9
-
@@ -1,2 +0,0 @@
1
- export { NavItem } from "./NavItem";
2
- export { NavProfile } from "./NavProfile";
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.3 */
2
- export { default as DashboardNavbar } from "./DashboardNavbar";
@@ -1,14 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.3 */
2
-
3
- .dashboard-navbar {
4
- background: var(--pearl);
5
- display: flex;
6
- flex-direction: column;
7
- height: 100%;
8
-
9
- .menu {
10
- flex-grow: 1;
11
- }
12
- }
13
-
14
-
@@ -1,72 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'featured-on';
11
-
12
- /**
13
- * This is the component description.
14
- */
15
- const FeaturedOn = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- featuresMap
21
- // ...otherProps
22
- } = _ref;
23
- useLayoutEffect(() => {
24
- import("./styles.scss");
25
- }, []);
26
- return /*#__PURE__*/React.createElement("div", {
27
- id: id,
28
- className: [baseClassName, componentClassName, userClassName, 'u1'].filter(e => e).join(' '),
29
- style: style
30
- // {...otherProps}
31
- }, /*#__PURE__*/React.createElement("p", {
32
- className: "x-metadata c-x uc u1 mb-u md-s0 s-1"
33
- }, "As featured on"), /*#__PURE__*/React.createElement("div", {
34
- className: "content"
35
- }, featuresMap.map(feature => /*#__PURE__*/React.createElement("a", {
36
- key: feature.altText,
37
- className: "link",
38
- href: feature.link,
39
- rel: "nofollow noreferrer",
40
- target: "_blank"
41
- }, /*#__PURE__*/React.createElement("img", {
42
- key: feature.altText,
43
- src: feature.img,
44
- alt: feature.altText
45
- })))));
46
- };
47
- FeaturedOn.propTypes = {
48
- /**
49
- * The HTML id for this element
50
- */
51
- id: PropTypes.string,
52
- /**
53
- * The HTML class names for this element
54
- */
55
- className: PropTypes.string,
56
- /**
57
- * The React-written, css properties for this element.
58
- */
59
- style: PropTypes.objectOf(PropTypes.string),
60
- /**
61
- * The featuresMap
62
- */
63
- featuresMap: PropTypes.arrayOf(PropTypes.shape({
64
- altText: PropTypes.string.isRequired,
65
- img: PropTypes.string.isRequired,
66
- link: PropTypes.string.isRequired
67
- })).isRequired
68
- };
69
- FeaturedOn.defaultProps = {
70
- // someProp:false
71
- };
72
- export default FeaturedOn;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as FeaturedOn } from "./FeaturedOn";
@@ -1,41 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
- @use "@pareto-engineering/bem";
4
- @use "@pareto-engineering/styles/src/mixins";
5
- @use "@pareto-engineering/styles/src/globals" as *;
6
-
7
- .#{bem.$base}.featured-on {
8
- .title {
9
- color: var(--subtitle);
10
- }
11
-
12
- .content {
13
- align-items: center;
14
- display: grid;
15
- gap: var(--u);
16
- grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
17
- justify-items: center;
18
-
19
- .link {
20
- display: block;
21
- height: 100%;
22
- width: 6em;
23
-
24
-
25
-
26
- img {
27
- height: 100%;
28
- object-fit: contain;
29
- width: 100%;
30
- }
31
-
32
-
33
- &:hover {
34
- transform: scale(1.05);
35
- transition: all .5s;
36
- }
37
- }
38
- }
39
- }
40
-
41
-
@@ -1,83 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- import * as React from 'react';
3
- import { useLayoutEffect } from 'react';
4
- import PropTypes from 'prop-types';
5
- import styleNames from '@pareto-engineering/bem/exports';
6
-
7
- // Local Definitions
8
-
9
- const baseClassName = styleNames.base;
10
- const componentClassName = 'team-info';
11
-
12
- /**
13
- * This is the component description.
14
- */
15
- const SiteTeamInfo = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- description,
21
- img,
22
- name,
23
- role
24
- // ...otherProps
25
- } = _ref;
26
- useLayoutEffect(() => {
27
- import("./styles.scss");
28
- }, []);
29
- return /*#__PURE__*/React.createElement("div", {
30
- id: id,
31
- className: [baseClassName, componentClassName, userClassName, 'u1'].filter(e => e).join(' '),
32
- style: style
33
- // {...otherProps}
34
- }, /*#__PURE__*/React.createElement("p", {
35
- className: "description s-1 md-s0"
36
- }, description), /*#__PURE__*/React.createElement("div", {
37
- className: "content"
38
- }, /*#__PURE__*/React.createElement("img", {
39
- className: "img mr-u",
40
- src: img,
41
- alt: `${name}, ${role} at Pareto`
42
- }), /*#__PURE__*/React.createElement("div", {
43
- className: "team-member"
44
- }, /*#__PURE__*/React.createElement("span", {
45
- className: "name s-1"
46
- }, name), /*#__PURE__*/React.createElement("span", {
47
- className: "role s-2"
48
- }, role))));
49
- };
50
- SiteTeamInfo.propTypes = {
51
- /**
52
- * The HTML id for this element
53
- */
54
- id: PropTypes.string,
55
- /**
56
- * The HTML class names for this element
57
- */
58
- className: PropTypes.string,
59
- /**
60
- * The react-written, css properties for this element.
61
- */
62
- style: PropTypes.objectOf(PropTypes.string),
63
- /**
64
- * The team description
65
- */
66
- description: PropTypes.string.isRequired,
67
- /**
68
- * The team member image
69
- */
70
- img: PropTypes.string.isRequired,
71
- /**
72
- * The team member name
73
- */
74
- name: PropTypes.string.isRequired,
75
- /**
76
- * The team member role
77
- */
78
- role: PropTypes.string.isRequired
79
- };
80
- SiteTeamInfo.defaultProps = {
81
- // someProp:false
82
- };
83
- export default SiteTeamInfo;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
- export { default as TeamInfo } from "./TeamInfo";
@@ -1,58 +0,0 @@
1
- /* @pareto-engineering/generator-front 1.0.12 */
2
-
3
- @use "@pareto-engineering/bem";
4
- @use "@pareto-engineering/styles/src/mixins";
5
- @use "@pareto-engineering/styles/src/globals" as *;
6
-
7
- $team-info-padding:var(--u);
8
- $img-height-width: 3.5em;
9
- $img-border-radius: var(--theme-border-radius);
10
- $p-h4-color:var(--subtitle);
11
- $role-color:var(--metadata);
12
- $default-name-color:var(--main1);
13
- $box-shadow:0 .45em 1em 0 var(--background1);
14
-
15
- .#{bem.$base}.team-info {
16
- align-items: flex-start;
17
- background: var(--soft-y, var(--soft-background1));
18
- box-shadow: $box-shadow;
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: space-between;
22
- padding: $team-info-padding;
23
- width: 100%;
24
-
25
-
26
- .description {
27
- color: $p-h4-color;
28
- }
29
-
30
- .content {
31
- display: flex;
32
- width: 100%;
33
-
34
- .img {
35
- border-radius: $img-border-radius;
36
- height: $img-height-width;
37
- object-fit: cover;
38
- width: $img-height-width;
39
- }
40
-
41
- .team-member {
42
- display: flex;
43
- flex-direction: column;
44
- justify-content: space-around;
45
-
46
- .name {
47
- color: $default-name-color;
48
- }
49
-
50
- .role {
51
- color: $role-color;
52
- margin: 0;
53
- }
54
- }
55
- }
56
- }
57
-
58
-
@@ -1,51 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- import styleNames from '@pareto-engineering/bem/exports';
7
-
8
- // Component-level imports
9
- import { Group } from "./common";
10
- import("./styles.scss");
11
-
12
- // Helper Definition
13
- const baseClassName = styleNames.base;
14
- const componentClassName = 'card';
15
- const Card = _ref => {
16
- let {
17
- id,
18
- className: userClassName,
19
- style,
20
- children
21
- // ...otherProps
22
- } = _ref;
23
- return /*#__PURE__*/React.createElement("div", {
24
- id: id,
25
- className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
26
- style: style
27
- }, children);
28
- };
29
- Card.propTypes = {
30
- /**
31
- * The HTML id for this element
32
- */
33
- id: PropTypes.string,
34
- /**
35
- * The HTML class names for this element
36
- */
37
- className: PropTypes.string,
38
- /**
39
- * The React-written, css properties for this element.
40
- */
41
- style: PropTypes.objectOf(PropTypes.string),
42
- /**
43
- * The children JSX
44
- */
45
- children: PropTypes.node
46
- };
47
- Card.defaultProps = {
48
- // someProp:false
49
- };
50
- Card.Group = Group;
51
- export default Card;
@@ -1,54 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
- // Package-level Imports
6
- import styleNames from '@pareto-engineering/bem/exports';
7
-
8
- // Component-level imports
9
- import("./styles.scss");
10
-
11
- // Helper Definition
12
- const baseClassName = styleNames.base;
13
- const componentClassName = 'card-group';
14
- const Group = _ref => {
15
- let {
16
- id,
17
- className: userClassName,
18
- style,
19
- children,
20
- isGhost
21
- // ...otherProps
22
- } = _ref;
23
- return /*#__PURE__*/React.createElement("div", {
24
- id: id,
25
- className: [baseClassName, componentClassName, userClassName, isGhost && styleNames.modifierGhost].filter(e => e).join(' '),
26
- style: style
27
- }, children);
28
- };
29
- Group.propTypes = {
30
- /**
31
- * The HTML id for this element
32
- */
33
- id: PropTypes.string,
34
- /**
35
- * The HTML class names for this element
36
- */
37
- className: PropTypes.string,
38
- /**
39
- * The React-written, css properties for this element.
40
- */
41
- style: PropTypes.objectOf(PropTypes.string),
42
- /**
43
- * The children JSX
44
- */
45
- children: PropTypes.node,
46
- /**
47
- * Whether the button has the ghost style
48
- */
49
- isGhost: PropTypes.bool
50
- };
51
- Group.defaultProps = {
52
- // someProp:false
53
- };
54
- export default Group;
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- export { default as Group } from "./Group";
@@ -1,61 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
-
3
- @use "@pareto-engineering/styles/src/mixins";
4
- @use "@pareto-engineering/styles/src/globals" as *;
5
- @use "@pareto-engineering/bem" ;
6
-
7
- $separator-width:2px;
8
- $separator-color:var(--metadata);
9
-
10
- .#{bem.$base}.card-group {
11
- //TODO temp
12
- background: #dfdfdf;
13
- padding: 1em;
14
-
15
- @include mixins.media($from:$sm-md) {
16
- display: grid;
17
- grid-auto-flow: column;
18
- }
19
-
20
- &.#{bem.$modifier-ghost} {
21
- //background: red;
22
-
23
- .#{bem.$base}.card {
24
- //background: yellow;
25
- border: 0;
26
- border-radius: 0;
27
-
28
- + .#{bem.$base}.card {
29
- //border-left: 2px solid red;
30
- position: relative;
31
-
32
- &::before {
33
- background: $separator-color;
34
- content: "";
35
- display: block;
36
- left: 0;
37
- position: absolute;
38
- top: 0;
39
- }
40
-
41
- @include mixins.media($to:$sm-md) {
42
- &::before {
43
- height: $separator-width;
44
- transform: translateY(-50%);
45
- width: 100%;
46
- }
47
- }
48
-
49
- @include mixins.media($from:$sm-md) {
50
- &::before {
51
- height: 100%;
52
- transform: translateX(-50%);
53
- width: $separator-width;
54
- }
55
- }
56
- }
57
- }
58
- }
59
- }
60
-
61
-
@@ -1 +0,0 @@
1
- export { Group } from "./Group";
@@ -1,2 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
- export { default as Card } from "./Card";
@@ -1,12 +0,0 @@
1
- /* @pareto-engineering/generator-front 0.2.4 */
2
-
3
- @use "@pareto-engineering/bem" ;
4
- $padding:.5em 1em;
5
-
6
- .#{bem.$base}.card {
7
- border: var(--theme-border);
8
- border-radius: var(--border-radius);
9
- padding: $padding;
10
- }
11
-
12
-