@appquality/unguess-design-system 2.8.35 → 2.8.36
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/CHANGELOG.md +12 -0
- package/build/index.js +9 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v2.8.36 (Thu Apr 28 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- fix(campaignscard): pillIcon cannot be used as JSX component ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v2.8.35 (Wed Apr 27 2022)
|
|
2
14
|
|
|
3
15
|
#### ⚠️ Pushed to `master`
|
package/build/index.js
CHANGED
|
@@ -606,18 +606,18 @@ var getStatusIcon = function (status) {
|
|
|
606
606
|
return SvgOnGoingStatusRoundIcon;
|
|
607
607
|
case "INCOMING":
|
|
608
608
|
return SvgArrivalStatusRoundIcon;
|
|
609
|
+
default:
|
|
610
|
+
return SvgOnGoingStatusRoundIcon;
|
|
609
611
|
}
|
|
610
612
|
};
|
|
611
|
-
var
|
|
613
|
+
var getTypeDataIcon = function (type) {
|
|
612
614
|
switch (type) {
|
|
613
615
|
case "EXPERIENTIAL":
|
|
614
|
-
return
|
|
615
|
-
pillIcon: SvgRegressionTestRoundIcon,
|
|
616
|
-
};
|
|
616
|
+
return SvgRegressionTestRoundIcon;
|
|
617
617
|
case "FUNCTIONAL":
|
|
618
|
-
return
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
return SvgFunctionalTestRoundIcon;
|
|
619
|
+
default:
|
|
620
|
+
return SvgFunctionalTestRoundIcon;
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
var Wrapper$1 = styled__default["default"](Card)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"])), function (_a) {
|
|
@@ -683,8 +683,7 @@ var CardFooter$1 = styled__default["default"].div(templateObject_9 || (templateO
|
|
|
683
683
|
var CampaignCard = function (props) {
|
|
684
684
|
var isNew = props.isNew, date = props.date, projectTitle = props.projectTitle, campaignTitle = props.campaignTitle, status = props.status, type = props.type, labelNew = props.labelNew;
|
|
685
685
|
var StatusIcon = getStatusIcon(status !== null && status !== void 0 ? status : "PROGRESS");
|
|
686
|
-
var
|
|
687
|
-
var PillIcon = typeData === null || typeData === void 0 ? void 0 : typeData.pillIcon;
|
|
686
|
+
var PillIcon = getTypeDataIcon(type);
|
|
688
687
|
var projectTitleCut = projectTitle;
|
|
689
688
|
if (projectTitle.length > 42) {
|
|
690
689
|
projectTitleCut = "".concat(projectTitle.substring(0, 39), "...");
|
|
@@ -693,7 +692,7 @@ var CampaignCard = function (props) {
|
|
|
693
692
|
if (campaignTitle.length > 29) {
|
|
694
693
|
campaignTitleCut = "".concat(campaignTitle.substring(0, 26), "...");
|
|
695
694
|
}
|
|
696
|
-
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [
|
|
695
|
+
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [props.pillText && (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
|
|
697
696
|
};
|
|
698
697
|
var templateObject_1$L, templateObject_2$d, templateObject_3$8, templateObject_4$4, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
|
|
699
698
|
|