@pareto-engineering/design-system 2.0.0-alpha.51 → 2.0.0-alpha.54
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/AppContext/Context.js +16 -0
- package/dist/cjs/a/AppContext/ContextProvider.js +96 -0
- package/dist/cjs/a/AppContext/index.js +39 -0
- package/dist/cjs/a/AppContext/useApp.js +16 -0
- package/dist/cjs/a/AppContext/useTheme.js +45 -0
- package/dist/cjs/a/GradientBackground/GradientBackground.js +140 -0
- package/dist/cjs/a/GradientBackground/index.js +15 -0
- package/dist/cjs/a/GradientBackground/styles.scss +191 -0
- package/dist/cjs/a/Popover/common/Divider/Divider.js +67 -0
- package/dist/cjs/a/Popover/common/Divider/index.js +15 -0
- package/dist/cjs/a/Popover/common/Item/Item.js +67 -0
- package/dist/cjs/a/Popover/common/Item/index.js +15 -0
- package/dist/cjs/a/Popover/common/index.js +21 -0
- package/dist/cjs/a/index.js +8 -8
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +1 -1
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +4 -4
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/c/AcceptCookies/AcceptCookies.js +134 -0
- package/dist/cjs/c/AcceptCookies/index.js +15 -0
- package/dist/cjs/c/AcceptCookies/styles.scss +49 -0
- package/dist/cjs/c/BlogCategoryButton/BlogCategoryButton.js +95 -0
- package/dist/cjs/c/BlogCategoryButton/index.js +15 -0
- package/dist/cjs/c/BlogContext/BlogContextProvider.js +63 -0
- package/dist/cjs/c/BlogContext/Context.js +16 -0
- package/dist/cjs/c/BlogContext/ContextProvider.js +63 -0
- package/dist/cjs/c/BlogContext/index.js +31 -0
- package/dist/cjs/c/BlogContext/useBlog.js +16 -0
- package/dist/cjs/c/BlogPost/BlogPost.js +147 -0
- package/dist/cjs/c/BlogPost/index.js +15 -0
- package/dist/cjs/c/BlogPost/styles.scss +33 -0
- package/dist/cjs/c/BlogPostsList/BlogPostsList.js +73 -0
- package/dist/cjs/c/BlogPostsList/common/Card/Card.js +170 -0
- package/dist/cjs/c/BlogPostsList/common/Card/index.js +15 -0
- package/dist/cjs/c/BlogPostsList/common/index.js +13 -0
- package/dist/cjs/c/BlogPostsList/index.js +15 -0
- package/dist/cjs/c/BlogPostsList/styles.scss +72 -0
- package/dist/cjs/c/SiteFooter/SiteFooter.js +73 -0
- package/dist/cjs/c/SiteFooter/common/Section/Section.js +95 -0
- package/dist/cjs/c/SiteFooter/common/Section/index.js +15 -0
- package/dist/cjs/c/SiteFooter/common/index.js +13 -0
- package/dist/cjs/c/SiteFooter/index.js +15 -0
- package/dist/cjs/c/SiteFooter/styles.scss +34 -0
- package/dist/cjs/c/SiteHeaderCTA/SiteHeaderCTA.js +108 -0
- package/dist/cjs/c/SiteHeaderCTA/index.js +15 -0
- package/dist/cjs/c/SiteHeaderCTA/styles.scss +44 -0
- package/dist/cjs/c/SiteMission/SiteMission.js +113 -0
- package/dist/cjs/c/SiteMission/index.js +15 -0
- package/dist/cjs/c/SiteMission/styles.scss +30 -0
- package/dist/cjs/c/SiteNavigation/SiteNavigation.js +130 -0
- package/dist/cjs/c/SiteNavigation/index.js +15 -0
- package/dist/cjs/c/SiteNavigation/styles.scss +118 -0
- package/dist/cjs/c/SiteOnboardingStep/SiteOnboardingStep.js +98 -0
- package/dist/cjs/c/SiteOnboardingStep/index.js +15 -0
- package/dist/cjs/c/SiteOnboardingStep/styles.scss +51 -0
- package/dist/cjs/c/SitePricing/SitePricing.js +108 -0
- package/dist/cjs/c/SitePricing/index.js +15 -0
- package/dist/cjs/c/SitePricing/styles.scss +73 -0
- package/dist/cjs/c/SiteServices/SiteServices.js +211 -0
- package/dist/cjs/c/SiteServices/index.js +15 -0
- package/dist/cjs/c/SiteServices/styles.scss +138 -0
- package/dist/cjs/c/TeamGallery/TeamGallery.js +80 -0
- package/dist/cjs/c/TeamGallery/common/PersonCard/PersonCard.js +84 -0
- package/dist/cjs/c/TeamGallery/common/PersonCard/index.js +15 -0
- package/dist/cjs/c/TeamGallery/common/index.js +13 -0
- package/dist/cjs/c/TeamGallery/index.js +15 -0
- package/dist/cjs/c/TeamGallery/styles.scss +100 -0
- package/dist/cjs/c/Testimonials/Testimonials.js +119 -0
- package/dist/cjs/c/Testimonials/index.js +15 -0
- package/dist/cjs/c/Testimonials/styles.scss +112 -0
- package/dist/cjs/experimental/GradientBackground/GradientBackground.js +98 -0
- package/dist/cjs/experimental/GradientBackground/index.js +15 -0
- package/dist/cjs/experimental/GradientBackground/styles.scss +64 -0
- package/dist/cjs/experimental/index.js +13 -0
- package/dist/cjs/f/common/Description/Description.js +20 -14
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -2
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +5 -9
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +5 -9
- package/dist/cjs/f/fields/QuerySelect/styles.scss +21 -0
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +16 -8
- package/dist/cjs/f/fields/TaskRecommendation/TaskRecommendation.js +129 -0
- package/dist/cjs/f/fields/TaskRecommendation/index.js +15 -0
- package/dist/cjs/f/fields/TaskRecommendation/styles.scss +37 -0
- package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
- package/dist/cjs/f/fields/TaskRecommendationInput/styles.scss +4 -0
- package/dist/cjs/f/fields/TextArea/TextArea.js +141 -0
- package/dist/cjs/f/fields/TextArea/index.js +15 -0
- package/dist/cjs/f/fields/TextArea/styles.scss +19 -0
- package/dist/cjs/f/fields/TextInput/TextInput.js +18 -9
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +16 -8
- package/dist/cjs/test/QueryLoader/styles.scss +9 -0
- package/dist/es/a/AppContext/Context.js +2 -0
- package/dist/es/a/AppContext/ContextProvider.js +78 -0
- package/dist/es/a/AppContext/index.js +5 -0
- package/dist/es/a/AppContext/useApp.js +3 -0
- package/dist/es/a/AppContext/useTheme.js +34 -0
- package/dist/es/a/GradientBackground/GradientBackground.js +118 -0
- package/dist/es/a/GradientBackground/index.js +2 -0
- package/dist/es/a/GradientBackground/styles.scss +191 -0
- package/dist/es/a/Popover/common/Divider/Divider.js +47 -0
- package/dist/es/a/Popover/common/Divider/index.js +2 -0
- package/dist/es/a/Popover/common/Item/Item.js +47 -0
- package/dist/es/a/Popover/common/Item/index.js +2 -0
- package/dist/es/a/Popover/common/index.js +2 -0
- package/dist/es/a/index.js +1 -1
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +2 -2
- package/dist/es/b/SocialMediaButton/SocialMediaButton.js +5 -5
- package/dist/es/b/ThemeSelector/ThemeSelector.js +2 -2
- package/dist/es/c/AcceptCookies/AcceptCookies.js +117 -0
- package/dist/es/c/AcceptCookies/index.js +2 -0
- package/dist/es/c/AcceptCookies/styles.scss +49 -0
- package/dist/es/c/BlogCategoryButton/BlogCategoryButton.js +68 -0
- package/dist/es/c/BlogCategoryButton/index.js +2 -0
- package/dist/es/c/BlogContext/BlogContextProvider.js +45 -0
- package/dist/es/c/BlogContext/Context.js +2 -0
- package/dist/es/c/BlogContext/ContextProvider.js +45 -0
- package/dist/es/c/BlogContext/index.js +4 -0
- package/dist/es/c/BlogContext/useBlog.js +3 -0
- package/dist/es/c/BlogPost/BlogPost.js +128 -0
- package/dist/es/c/BlogPost/index.js +2 -0
- package/dist/es/c/BlogPost/styles.scss +33 -0
- package/dist/es/c/BlogPostsList/BlogPostsList.js +56 -0
- package/dist/es/c/BlogPostsList/common/Card/Card.js +143 -0
- package/dist/es/c/BlogPostsList/common/Card/index.js +2 -0
- package/dist/es/c/BlogPostsList/common/index.js +1 -0
- package/dist/es/c/BlogPostsList/index.js +2 -0
- package/dist/es/c/BlogPostsList/styles.scss +72 -0
- package/dist/es/c/SiteFooter/SiteFooter.js +56 -0
- package/dist/es/c/SiteFooter/common/Section/Section.js +73 -0
- package/dist/es/c/SiteFooter/common/Section/index.js +2 -0
- package/dist/es/c/SiteFooter/common/index.js +1 -0
- package/dist/es/c/SiteFooter/index.js +2 -0
- package/dist/es/c/SiteFooter/styles.scss +34 -0
- package/dist/es/c/SiteHeaderCTA/SiteHeaderCTA.js +92 -0
- package/dist/es/c/SiteHeaderCTA/index.js +2 -0
- package/dist/es/c/SiteHeaderCTA/styles.scss +44 -0
- package/dist/es/c/SiteMission/SiteMission.js +96 -0
- package/dist/es/c/SiteMission/index.js +2 -0
- package/dist/es/c/SiteMission/styles.scss +30 -0
- package/dist/es/c/SiteNavigation/SiteNavigation.js +111 -0
- package/dist/es/c/SiteNavigation/index.js +2 -0
- package/dist/es/c/SiteNavigation/styles.scss +118 -0
- package/dist/es/c/SiteOnboardingStep/SiteOnboardingStep.js +81 -0
- package/dist/es/c/SiteOnboardingStep/index.js +2 -0
- package/dist/es/c/SiteOnboardingStep/styles.scss +51 -0
- package/dist/es/c/SitePricing/SitePricing.js +91 -0
- package/dist/es/c/SitePricing/index.js +2 -0
- package/dist/es/c/SitePricing/styles.scss +73 -0
- package/dist/es/c/SiteServices/SiteServices.js +195 -0
- package/dist/es/c/SiteServices/index.js +2 -0
- package/dist/es/c/SiteServices/styles.scss +138 -0
- package/dist/es/c/TeamGallery/TeamGallery.js +64 -0
- package/dist/es/c/TeamGallery/common/PersonCard/PersonCard.js +64 -0
- package/dist/es/c/TeamGallery/common/PersonCard/index.js +2 -0
- package/dist/es/c/TeamGallery/common/index.js +1 -0
- package/dist/es/c/TeamGallery/index.js +2 -0
- package/dist/es/c/TeamGallery/styles.scss +100 -0
- package/dist/es/c/Testimonials/Testimonials.js +99 -0
- package/dist/es/c/Testimonials/index.js +2 -0
- package/dist/es/c/Testimonials/styles.scss +112 -0
- package/dist/es/experimental/GradientBackground/GradientBackground.js +76 -0
- package/dist/es/experimental/GradientBackground/index.js +2 -0
- package/dist/es/experimental/GradientBackground/styles.scss +64 -0
- package/dist/es/experimental/index.js +1 -0
- package/dist/es/f/common/Description/Description.js +19 -14
- package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -2
- package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +5 -9
- package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +5 -9
- package/dist/es/f/fields/QuerySelect/styles.scss +21 -0
- package/dist/es/f/fields/SelectInput/SelectInput.js +16 -8
- package/dist/es/f/fields/TaskRecommendation/TaskRecommendation.js +111 -0
- package/dist/es/f/fields/TaskRecommendation/index.js +2 -0
- package/dist/es/f/fields/TaskRecommendation/styles.scss +37 -0
- package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
- package/dist/es/f/fields/TaskRecommendationInput/styles.scss +4 -0
- package/dist/es/f/fields/TextArea/TextArea.js +124 -0
- package/dist/es/f/fields/TextArea/index.js +2 -0
- package/dist/es/f/fields/TextArea/styles.scss +19 -0
- package/dist/es/f/fields/TextInput/TextInput.js +18 -9
- package/dist/es/f/fields/TextareaInput/TextareaInput.js +16 -8
- package/dist/es/test/QueryLoader/styles.scss +9 -0
- package/package.json +1 -1
- package/src/__snapshots__/Storyshots.test.js.snap +1528 -1385
- package/src/stories/a/{SiteContext.stories.jsx → AppContext.stories.jsx} +8 -8
- package/src/stories/a/DotInfo.stories.jsx +12 -12
- package/src/stories/a/ProgressBar.stories.jsx +12 -6
- package/src/stories/a/Timestamp.stories.jsx +32 -38
- package/src/stories/b/Logo.stories.jsx +13 -13
- package/src/stories/b/QuestionDropdown.stories.jsx +17 -30
- package/src/stories/b/SocialMediaButton.stories.jsx +34 -52
- package/src/stories/b/ThemeSelector.stories.jsx +5 -5
- package/src/stories/b/Title.stories.jsx +11 -13
- package/src/stories/c/ContentSlides.stories.jsx +30 -300
- package/src/stories/f/ChoicesInput.stories.jsx +62 -129
- package/src/stories/f/Description.stories.jsx +12 -2
- package/src/stories/f/RatingsInput.stories.jsx +21 -22
- package/src/stories/f/SelectInput.stories.jsx +35 -75
- package/src/stories/f/TextInput.stories.jsx +55 -52
- package/src/stories/f/TextareaInput.stories.jsx +31 -46
- package/src/ui/a/{SiteContext → AppContext}/Context.js +0 -0
- package/src/ui/a/{SiteContext → AppContext}/ContextProvider.jsx +8 -7
- package/src/ui/a/AppContext/index.js +5 -0
- package/src/ui/a/{SiteContext/useSite.js → AppContext/useApp.js} +0 -0
- package/src/ui/a/{SiteContext → AppContext}/useTheme.js +0 -0
- package/src/ui/a/index.js +4 -4
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +2 -2
- package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +4 -4
- package/src/ui/b/ThemeSelector/ThemeSelector.jsx +2 -2
- package/src/ui/f/common/Description/Description.jsx +34 -29
- package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +1 -2
- package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +1 -11
- package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +1 -11
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +16 -9
- package/src/ui/f/fields/TextInput/TextInput.jsx +13 -7
- package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +9 -8
- package/src/ui/a/SiteContext/index.js +0 -5
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
@use "@aztlan/stylebook/src/mixins";
|
|
5
|
+
@use "@aztlan/stylebook/src/globals" as *;
|
|
6
|
+
@use "swiper/swiper";
|
|
7
|
+
@use "swiper/components/navigation/navigation";
|
|
8
|
+
@use "swiper/components/pagination/pagination";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
$quotes-color:var(--dark-subtitle);
|
|
12
|
+
$quotes-size:10em;
|
|
13
|
+
$quotes-horizontal:-6%;
|
|
14
|
+
$openning-quote-top:12%;
|
|
15
|
+
$closing-quote-bottom:-18%;
|
|
16
|
+
$slide-width:50%;
|
|
17
|
+
$slide-img-sm-top:-14%;
|
|
18
|
+
$swiper-sm-padding:1em;
|
|
19
|
+
$slide-name-color: var(--x);
|
|
20
|
+
$slide-company-color: var(--dark-grey);
|
|
21
|
+
$slide-testimonial-content-color: var(--black);
|
|
22
|
+
$img-border: 2px solid var(--x);
|
|
23
|
+
$img-border-radius: 50%;
|
|
24
|
+
$img-height: 5rem;
|
|
25
|
+
$img-top: -15%;
|
|
26
|
+
$img-width: 5rem;
|
|
27
|
+
|
|
28
|
+
.#{bem.$base}.testimonials {
|
|
29
|
+
--swiper-pagination-color: var(--x);
|
|
30
|
+
--swiper-navigation-color: var(--x);
|
|
31
|
+
background-color: var(--background);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
.slide {
|
|
35
|
+
align-items: center;
|
|
36
|
+
background-color: var(--on-grey);
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
margin: var(--u) auto;
|
|
41
|
+
position: relative;
|
|
42
|
+
|
|
43
|
+
.openning-quote {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
color: transparent;
|
|
46
|
+
font-size: $quotes-size;
|
|
47
|
+
left: $quotes-horizontal;
|
|
48
|
+
position: absolute;
|
|
49
|
+
-webkit-text-stroke: 1px var(--x);
|
|
50
|
+
top: $openning-quote-top;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.closing-quote {
|
|
54
|
+
bottom: $closing-quote-bottom;
|
|
55
|
+
color: transparent;
|
|
56
|
+
font-size: $quotes-size;
|
|
57
|
+
position: absolute;
|
|
58
|
+
right: $quotes-horizontal;
|
|
59
|
+
-webkit-text-stroke: 1px var(--x);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.img {
|
|
63
|
+
background-color: inherit;
|
|
64
|
+
border: $img-border;
|
|
65
|
+
border-radius: $img-border-radius;
|
|
66
|
+
height: $img-height;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: $img-top;
|
|
69
|
+
width: $img-width;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.name {
|
|
73
|
+
color: $slide-name-color;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.company {
|
|
77
|
+
color: $slide-company-color;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.testimonial-content {
|
|
81
|
+
color: $slide-testimonial-content-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include mixins.media($from:$sm-md) {
|
|
86
|
+
.slide {
|
|
87
|
+
width: $slide-width;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include mixins.media($to:$sm-md) {
|
|
92
|
+
padding: $swiper-sm-padding;
|
|
93
|
+
|
|
94
|
+
.openning-quote,
|
|
95
|
+
.closing-quote {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.swiper-button-next,
|
|
100
|
+
.swiper-button-prev {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.slide {
|
|
105
|
+
.img {
|
|
106
|
+
top: $slide-img-sm-top;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
// Local Definitions
|
|
27
|
+
var baseClassName = _bem.default.base;
|
|
28
|
+
var componentClassName = 'gradient-background';
|
|
29
|
+
/**
|
|
30
|
+
* This is the component description.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
var GradientBackground = _ref => {
|
|
34
|
+
var {
|
|
35
|
+
id,
|
|
36
|
+
className: userClassName,
|
|
37
|
+
style,
|
|
38
|
+
pin,
|
|
39
|
+
shape // ...otherProps
|
|
40
|
+
|
|
41
|
+
} = _ref;
|
|
42
|
+
(0, React.useLayoutEffect)(() => {
|
|
43
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
44
|
+
}, []);
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
id: id,
|
|
47
|
+
className: [baseClassName, componentClassName, userClassName].filter(e => e).join(' '),
|
|
48
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
49
|
+
'--pin': pin
|
|
50
|
+
}) // {...otherProps}
|
|
51
|
+
|
|
52
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "shapes"
|
|
54
|
+
}, shape === 'triangle' && /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: "triangle"
|
|
56
|
+
}), shape === 'ellipses' && /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: "ellipses"
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "up"
|
|
60
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "down"
|
|
62
|
+
})), shape === 'ellipse' && /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "ellipse"
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
GradientBackground.propTypes = {
|
|
68
|
+
/**
|
|
69
|
+
* The HTML id for this element
|
|
70
|
+
*/
|
|
71
|
+
id: _propTypes.default.string,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The HTML class names for this element
|
|
75
|
+
*/
|
|
76
|
+
className: _propTypes.default.string,
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The React-written, css properties for this element.
|
|
80
|
+
*/
|
|
81
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Where to pin the shapes
|
|
85
|
+
*/
|
|
86
|
+
pin: _propTypes.default.oneOf(['flex-start', 'center', 'flex-end']),
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
shape: _propTypes.default.oneOf(['triangle', 'ellipse', 'spiral', 'diamonds', 'circles', 'ellipses'])
|
|
92
|
+
};
|
|
93
|
+
GradientBackground.defaultProps = {
|
|
94
|
+
pin: 'center',
|
|
95
|
+
shape: 'triangle'
|
|
96
|
+
};
|
|
97
|
+
var _default = GradientBackground;
|
|
98
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _GradientBackground.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _GradientBackground = _interopRequireDefault(require("./GradientBackground"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
|
|
3
|
+
@use "@pareto-engineering/bem";
|
|
4
|
+
|
|
5
|
+
$default-triangle-dimension:30em;
|
|
6
|
+
$default-ellipses-dimension:50em;
|
|
7
|
+
$default-ellipse-dimension:80em;
|
|
8
|
+
$default-shapes-opacity:.8;
|
|
9
|
+
|
|
10
|
+
.#{bem.$base}.gradient-background {
|
|
11
|
+
align-items: center;
|
|
12
|
+
background: var(--light-y);
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
height: 100%;
|
|
16
|
+
justify-content: var(--pin);
|
|
17
|
+
position: absolute;
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
.shapes {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
24
|
+
.triangle {
|
|
25
|
+
background-image: linear-gradient(var(--light-y), var(--dark-y));
|
|
26
|
+
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
27
|
+
height: $default-triangle-dimension * .86;
|
|
28
|
+
opacity: $default-shapes-opacity;
|
|
29
|
+
width: $default-triangle-dimension;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ellipses {
|
|
33
|
+
|
|
34
|
+
height: $default-ellipses-dimension / 2;
|
|
35
|
+
width: $default-ellipses-dimension;
|
|
36
|
+
opacity: $default-shapes-opacity;
|
|
37
|
+
|
|
38
|
+
.up {
|
|
39
|
+
background-image: linear-gradient(var(--light-y), var(--y));
|
|
40
|
+
clip-path: ellipse(40% 100% at 50% 0%);
|
|
41
|
+
height:50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.down {
|
|
45
|
+
background-image: linear-gradient(to top, var(--light-y), var(--y));
|
|
46
|
+
clip-path: ellipse(40% 100% at 50% 100%);
|
|
47
|
+
height:50%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ellipse {
|
|
53
|
+
height: $default-ellipse-dimension / 1.5;
|
|
54
|
+
width: $default-ellipse-dimension;
|
|
55
|
+
background-image: linear-gradient( to top left, var(--dark-y), var(--light-y),var(--dark-y));
|
|
56
|
+
clip-path: ellipse(50% 25% at 50% 50%);
|
|
57
|
+
opacity: $default-shapes-opacity;
|
|
58
|
+
transform: rotate3d(0, 0, -1, 10deg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GradientBackground", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _GradientBackground.GradientBackground;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _GradientBackground = require("./GradientBackground");
|
|
@@ -7,6 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
|
+
var _formik = require("formik");
|
|
11
|
+
|
|
10
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
13
|
|
|
12
14
|
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
@@ -29,20 +31,25 @@ var Description = _ref => {
|
|
|
29
31
|
id,
|
|
30
32
|
className: userClassName,
|
|
31
33
|
style,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
description,
|
|
35
|
+
name,
|
|
34
36
|
color // ...otherProps
|
|
35
37
|
|
|
36
38
|
} = _ref;
|
|
37
39
|
(0, React.useLayoutEffect)(() => {
|
|
38
40
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
39
41
|
}, []);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
var [field, meta] = (0, _formik.useField)(name);
|
|
43
|
+
|
|
44
|
+
if (description || (meta.touched || field.value) && meta.error) {
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
id: id,
|
|
47
|
+
className: [baseClassName, componentClassName, userClassName, meta.error ? 'x-error' : "x-".concat(color)].filter(e => e).join(' '),
|
|
48
|
+
style: style
|
|
49
|
+
}, meta.error || description);
|
|
50
|
+
}
|
|
44
51
|
|
|
45
|
-
|
|
52
|
+
return null;
|
|
46
53
|
};
|
|
47
54
|
|
|
48
55
|
Description.propTypes = {
|
|
@@ -62,22 +69,21 @@ Description.propTypes = {
|
|
|
62
69
|
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
63
70
|
|
|
64
71
|
/**
|
|
65
|
-
*
|
|
72
|
+
* The base color for the description
|
|
66
73
|
*/
|
|
67
|
-
|
|
74
|
+
color: _propTypes.default.string,
|
|
68
75
|
|
|
69
76
|
/**
|
|
70
|
-
*
|
|
77
|
+
* Input description - extra description to guide a use in filling the input
|
|
71
78
|
*/
|
|
72
|
-
|
|
79
|
+
description: _propTypes.default.string,
|
|
73
80
|
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
82
|
+
* The input name (html - and Formik state)
|
|
76
83
|
*/
|
|
77
|
-
|
|
84
|
+
name: _propTypes.default.string.isRequired
|
|
78
85
|
};
|
|
79
86
|
Description.defaultProps = {
|
|
80
|
-
isError: false,
|
|
81
87
|
color: 'metadata'
|
|
82
88
|
};
|
|
83
89
|
var _default = Description;
|
|
@@ -59,7 +59,6 @@ var QueryCombobox = _ref => {
|
|
|
59
59
|
setError
|
|
60
60
|
} = helpers;
|
|
61
61
|
var {
|
|
62
|
-
error,
|
|
63
62
|
value
|
|
64
63
|
} = meta;
|
|
65
64
|
var environment = (0, _reactRelay.useRelayEnvironment)();
|
|
@@ -116,7 +115,6 @@ var QueryCombobox = _ref => {
|
|
|
116
115
|
label,
|
|
117
116
|
description,
|
|
118
117
|
setValue,
|
|
119
|
-
error,
|
|
120
118
|
value,
|
|
121
119
|
color,
|
|
122
120
|
isFetching,
|
|
@@ -43,7 +43,6 @@ var Combobox = _ref => {
|
|
|
43
43
|
options: items,
|
|
44
44
|
getOptions,
|
|
45
45
|
setValue,
|
|
46
|
-
error,
|
|
47
46
|
description,
|
|
48
47
|
value,
|
|
49
48
|
color,
|
|
@@ -112,9 +111,11 @@ var Combobox = _ref => {
|
|
|
112
111
|
getItemProps: getItemProps,
|
|
113
112
|
highlightedIndex: highlightedIndex,
|
|
114
113
|
items: items
|
|
115
|
-
}, getMenuProps()))),
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
}, getMenuProps()))), /*#__PURE__*/React.createElement(_.FormDescription, {
|
|
115
|
+
className: "v50 mt-v s-1",
|
|
116
|
+
description: description,
|
|
117
|
+
name: name
|
|
118
|
+
}));
|
|
118
119
|
};
|
|
119
120
|
|
|
120
121
|
Combobox.propTypes = {
|
|
@@ -166,11 +167,6 @@ Combobox.propTypes = {
|
|
|
166
167
|
*/
|
|
167
168
|
description: _propTypes.default.string,
|
|
168
169
|
|
|
169
|
-
/**
|
|
170
|
-
* The error object
|
|
171
|
-
*/
|
|
172
|
-
error: _propTypes.default.objectOf(_propTypes.default.string),
|
|
173
|
-
|
|
174
170
|
/**
|
|
175
171
|
* The value of the custom select input
|
|
176
172
|
*/
|
|
@@ -60,7 +60,6 @@ var MultipleCombobox = _ref => {
|
|
|
60
60
|
options: items,
|
|
61
61
|
getOptions,
|
|
62
62
|
setValue,
|
|
63
|
-
error,
|
|
64
63
|
description,
|
|
65
64
|
value,
|
|
66
65
|
color,
|
|
@@ -211,9 +210,11 @@ var MultipleCombobox = _ref => {
|
|
|
211
210
|
getItemProps: getItemProps,
|
|
212
211
|
highlightedIndex: highlightedIndex,
|
|
213
212
|
items: getFilteredItems()
|
|
214
|
-
}, getMenuProps()))),
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
}, getMenuProps()))), /*#__PURE__*/React.createElement(_.FormDescription, {
|
|
214
|
+
className: "v50 mt-v s-1",
|
|
215
|
+
description: description,
|
|
216
|
+
name: name
|
|
217
|
+
}));
|
|
217
218
|
};
|
|
218
219
|
|
|
219
220
|
MultipleCombobox.propTypes = {
|
|
@@ -265,11 +266,6 @@ MultipleCombobox.propTypes = {
|
|
|
265
266
|
*/
|
|
266
267
|
description: _propTypes.default.string,
|
|
267
268
|
|
|
268
|
-
/**
|
|
269
|
-
* The error object
|
|
270
|
-
*/
|
|
271
|
-
error: _propTypes.default.objectOf(_propTypes.default.string),
|
|
272
|
-
|
|
273
269
|
/**
|
|
274
270
|
* The value of the custom select input
|
|
275
271
|
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
+
@use "@pareto-engineering/bem";
|
|
3
|
+
|
|
4
|
+
$default-loading-circle-displacement: .8em;
|
|
5
|
+
|
|
6
|
+
.#{bem.$base}.query-select {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
>.#{bem.$base}.select-input {
|
|
11
|
+
select:disabled {
|
|
12
|
+
appearance: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
>.#{bem.$base}.loading-circle {
|
|
17
|
+
position: absolute;
|
|
18
|
+
right: $default-loading-circle-displacement;
|
|
19
|
+
bottom: $default-loading-circle-displacement;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -44,13 +44,14 @@ var SelectInput = _ref => {
|
|
|
44
44
|
validate,
|
|
45
45
|
description,
|
|
46
46
|
disabled,
|
|
47
|
-
isLoading
|
|
47
|
+
isLoading,
|
|
48
|
+
autoComplete // ...otherProps
|
|
48
49
|
|
|
49
50
|
} = _ref;
|
|
50
51
|
(0, React.useLayoutEffect)(() => {
|
|
51
52
|
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
52
53
|
}, []);
|
|
53
|
-
var [field
|
|
54
|
+
var [field] = (0, _formik.useField)({
|
|
54
55
|
name,
|
|
55
56
|
validate
|
|
56
57
|
});
|
|
@@ -68,7 +69,8 @@ var SelectInput = _ref => {
|
|
|
68
69
|
}, field, {
|
|
69
70
|
value: field.value || '',
|
|
70
71
|
id: name,
|
|
71
|
-
disabled: disabled
|
|
72
|
+
disabled: disabled,
|
|
73
|
+
autoComplete: autoComplete
|
|
72
74
|
}), options.map(option => {
|
|
73
75
|
// i.e if option is a string like "blah", return { value: "blah", label: "blah" }
|
|
74
76
|
var newOption = typeof option === 'string' ? {
|
|
@@ -82,10 +84,11 @@ var SelectInput = _ref => {
|
|
|
82
84
|
}, newOption.label);
|
|
83
85
|
})), isLoading && /*#__PURE__*/React.createElement(_a.LoadingCircle, {
|
|
84
86
|
className: "x-main2"
|
|
85
|
-
})),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
})), /*#__PURE__*/React.createElement(_common.FormDescription, {
|
|
88
|
+
className: "v50 mt-v s-1",
|
|
89
|
+
description: description,
|
|
90
|
+
name: name
|
|
91
|
+
}));
|
|
89
92
|
};
|
|
90
93
|
|
|
91
94
|
SelectInput.propTypes = {
|
|
@@ -146,7 +149,12 @@ SelectInput.propTypes = {
|
|
|
146
149
|
/*
|
|
147
150
|
* Whether the query that is fetching the select options is still in flight
|
|
148
151
|
*/
|
|
149
|
-
isLoading: _propTypes.default.bool
|
|
152
|
+
isLoading: _propTypes.default.bool,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The autoComplete value that the browser should watch for the input
|
|
156
|
+
*/
|
|
157
|
+
autoComplete: _propTypes.default.string
|
|
150
158
|
};
|
|
151
159
|
SelectInput.defaultProps = {
|
|
152
160
|
disabled: false,
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _formik = require("formik");
|
|
13
|
+
|
|
14
|
+
var _bem = _interopRequireDefault(require("@pareto-engineering/bem"));
|
|
15
|
+
|
|
16
|
+
var _common = require("../../common");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
// Local Definitions
|
|
27
|
+
var baseClassName = _bem.default.base;
|
|
28
|
+
var componentClassName = 'task-recommendation';
|
|
29
|
+
/**
|
|
30
|
+
* This is the component description.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
var TaskRecommendation = _ref => {
|
|
34
|
+
var _field$value;
|
|
35
|
+
|
|
36
|
+
var {
|
|
37
|
+
id,
|
|
38
|
+
className: userClassName,
|
|
39
|
+
style,
|
|
40
|
+
name,
|
|
41
|
+
value,
|
|
42
|
+
oneLiner,
|
|
43
|
+
label,
|
|
44
|
+
color,
|
|
45
|
+
image // ...otherProps
|
|
46
|
+
|
|
47
|
+
} = _ref;
|
|
48
|
+
(0, React.useLayoutEffect)(() => {
|
|
49
|
+
Promise.resolve().then(() => _interopRequireWildcard(require("./styles.scss")));
|
|
50
|
+
}, []);
|
|
51
|
+
var [field] = (0, _formik.useField)(name);
|
|
52
|
+
var isOptionSelected = !!(((_field$value = field.value) === null || _field$value === void 0 ? void 0 : _field$value.length) > 0 && field.value.includes(value));
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
id: id,
|
|
55
|
+
className: [baseClassName, componentClassName, userClassName, "x-".concat(color)].filter(e => e).join(' '),
|
|
56
|
+
style: style // {...otherProps}
|
|
57
|
+
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "task-content ".concat(isOptionSelected ? 'b-x' : 'b-on-x')
|
|
60
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "v1 p-v task"
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_common.FormLabel, {
|
|
63
|
+
className: "uc mb-v ".concat(isOptionSelected ? 'c-on-x' : 'c-x'),
|
|
64
|
+
name: name
|
|
65
|
+
}, label), /*#__PURE__*/React.createElement("input", _extends({}, field, {
|
|
66
|
+
value: value,
|
|
67
|
+
id: name,
|
|
68
|
+
className: "input",
|
|
69
|
+
type: "checkbox"
|
|
70
|
+
})), /*#__PURE__*/React.createElement("img", {
|
|
71
|
+
className: "image",
|
|
72
|
+
src: image,
|
|
73
|
+
alt: "img"
|
|
74
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
75
|
+
className: ['uc u2 mt-u', isOptionSelected && 'c-on-x'].filter(e => e).join(' ')
|
|
76
|
+
}, oneLiner))));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
TaskRecommendation.propTypes = {
|
|
80
|
+
/**
|
|
81
|
+
* The HTML id for this element
|
|
82
|
+
*/
|
|
83
|
+
id: _propTypes.default.string,
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The HTML class names for this element
|
|
87
|
+
*/
|
|
88
|
+
className: _propTypes.default.string,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The React-written, css properties for this element.
|
|
92
|
+
*/
|
|
93
|
+
style: _propTypes.default.objectOf(_propTypes.default.string),
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The name of the input
|
|
97
|
+
*/
|
|
98
|
+
name: _propTypes.default.string.isRequired,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The value of the input
|
|
102
|
+
*/
|
|
103
|
+
value: _propTypes.default.string.isRequired,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The task one liner description
|
|
107
|
+
*/
|
|
108
|
+
oneLiner: _propTypes.default.string.isRequired,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The task label
|
|
112
|
+
*/
|
|
113
|
+
label: _propTypes.default.string.isRequired,
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The color
|
|
117
|
+
*/
|
|
118
|
+
color: _propTypes.default.string,
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Task image
|
|
122
|
+
*/
|
|
123
|
+
image: _propTypes.default.string.isRequired
|
|
124
|
+
};
|
|
125
|
+
TaskRecommendation.defaultProps = {
|
|
126
|
+
color: 'main2'
|
|
127
|
+
};
|
|
128
|
+
var _default = TaskRecommendation;
|
|
129
|
+
exports.default = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TaskRecommendation", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _TaskRecommendation.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _TaskRecommendation = _interopRequireDefault(require("./TaskRecommendation"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|