@appquality/unguess-design-system 2.12.28 → 2.12.30
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
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v2.12.30 (Tue Nov 15 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix(halfpie): Make toplevel component relative instead of absolute [#106](https://github.com/AppQuality/unguess-design-system/pull/106) ([@d-beezee](https://github.com/d-beezee))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@d-beezee](https://github.com/d-beezee)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.12.29 (Tue Nov 15 2022)
|
|
14
|
+
|
|
15
|
+
#### ⚠️ Pushed to `master`
|
|
16
|
+
|
|
17
|
+
- fix(halfpie): Make toplevel component relative instead of absolute ([@d-beezee](https://github.com/d-beezee))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- [@d-beezee](https://github.com/d-beezee)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v2.12.28 (Tue Nov 15 2022)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -265,10 +265,10 @@ var isMac = function () {
|
|
|
265
265
|
var os = parser.getOS().name;
|
|
266
266
|
return os && /Mac OS|iOS/.test(os);
|
|
267
267
|
};
|
|
268
|
-
styled.css(templateObject_1$
|
|
268
|
+
styled.css(templateObject_1$1m || (templateObject_1$1m = __makeTemplateObject(["\n transition: opacity 0.2s ease;\n"], ["\n transition: opacity 0.2s ease;\n"])));
|
|
269
269
|
var sidebarNavItemExpanded = styled.css(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n visibility: visible;\n opacity: 1;\n // transition: opacity 0.2s ease;\n"], ["\n visibility: visible;\n opacity: 1;\n // transition: opacity 0.2s ease;\n"])));
|
|
270
270
|
var sidebarNavItemHidden = styled.css(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n visibility: hidden;\n pointer-events: none;\n color: transparent;\n"], ["\n visibility: hidden;\n pointer-events: none;\n color: transparent;\n"])));
|
|
271
|
-
var templateObject_1$
|
|
271
|
+
var templateObject_1$1m, templateObject_2$y, templateObject_3$l;
|
|
272
272
|
|
|
273
273
|
var gradients = {
|
|
274
274
|
horizontal: "linear-gradient(90.81deg, ".concat(hex2rgba(palette.blue[600]), " 11.98%, ").concat(hex2rgba(palette.kale[400]), " 100%);"),
|
|
@@ -285,8 +285,8 @@ var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), {
|
|
|
285
285
|
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { breakpoints: __assign(__assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[600], accentHue: palette.water[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), lineHeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.lineHeights), { xs: '16px' // same as sm
|
|
286
286
|
}), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
287
287
|
|
|
288
|
-
var GlobalStyle = styled.createGlobalStyle(templateObject_1$
|
|
289
|
-
var templateObject_1$
|
|
288
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$1l || (templateObject_1$1l = __makeTemplateObject(["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
|
|
289
|
+
var templateObject_1$1l;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -302,7 +302,7 @@ Accordion.Header = reactAccordions.Accordion.Header;
|
|
|
302
302
|
Accordion.Label = reactAccordions.Accordion.Label;
|
|
303
303
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
304
304
|
|
|
305
|
-
var UgAlert = styled__default["default"](reactNotifications.Alert)(templateObject_1$
|
|
305
|
+
var UgAlert = styled__default["default"](reactNotifications.Alert)(templateObject_1$1k || (templateObject_1$1k = __makeTemplateObject(["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"], ["\n background-color: white;\n color: ", ";\n border-width: 2px;\n font-size: ", ";\n"])), function (_a) {
|
|
306
306
|
var theme = _a.theme;
|
|
307
307
|
return theme.palette.grey[700];
|
|
308
308
|
}, function (_a) {
|
|
@@ -323,9 +323,9 @@ var UgAlertTitle = styled__default["default"](reactNotifications.Title)(template
|
|
|
323
323
|
var Alert = function (props) { return jsxRuntime.jsx(UgAlert, __assign({}, props)); };
|
|
324
324
|
Alert.Title = UgAlertTitle;
|
|
325
325
|
Alert.Close = reactNotifications.Close;
|
|
326
|
-
var templateObject_1$
|
|
326
|
+
var templateObject_1$1k, templateObject_2$x;
|
|
327
327
|
|
|
328
|
-
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$
|
|
328
|
+
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$1j || (templateObject_1$1j = __makeTemplateObject(["\n text-transform: uppercase;\n\n ", "\n"], ["\n text-transform: uppercase;\n\n ", "\n"])), function (props) {
|
|
329
329
|
return props.avatarType &&
|
|
330
330
|
props.avatarType !== "image" &&
|
|
331
331
|
"background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
|
|
@@ -349,7 +349,7 @@ var Avatar = function (props) {
|
|
|
349
349
|
return (jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge, children: wrapChildren(props.avatarType || "text"), size: props.size || "small" })));
|
|
350
350
|
};
|
|
351
351
|
Avatar.Text = UgAvatar.Text;
|
|
352
|
-
var templateObject_1$
|
|
352
|
+
var templateObject_1$1j;
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
@@ -380,7 +380,7 @@ var getThemeStyle = function (props) {
|
|
|
380
380
|
}
|
|
381
381
|
return theme;
|
|
382
382
|
};
|
|
383
|
-
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
|
|
383
|
+
var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$1i || (templateObject_1$1i = __makeTemplateObject([""], [""])));
|
|
384
384
|
/**
|
|
385
385
|
* Buttons let users take action quickly.
|
|
386
386
|
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
@@ -399,7 +399,7 @@ var ButtonComponent = React.forwardRef(function (props, ref) {
|
|
|
399
399
|
var Button = ButtonComponent;
|
|
400
400
|
Button.StartIcon = UgButton.StartIcon;
|
|
401
401
|
Button.EndIcon = UgButton.EndIcon;
|
|
402
|
-
var templateObject_1$
|
|
402
|
+
var templateObject_1$1i;
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
A Button group lets users make a selection from a set of options.
|
|
@@ -429,7 +429,7 @@ Used for this:
|
|
|
429
429
|
**/
|
|
430
430
|
var SplitButton = React.forwardRef(function (props, ref) { return jsxRuntime.jsx(reactButtons.SplitButton, __assign({ ref: ref }, props)); });
|
|
431
431
|
|
|
432
|
-
var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$
|
|
432
|
+
var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$1h || (templateObject_1$1h = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: pointer;\n\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: pointer;\n\n ", "\n"])), function (_a) {
|
|
433
433
|
var theme = _a.theme;
|
|
434
434
|
return theme.borderRadii.lg;
|
|
435
435
|
}, function (_a) {
|
|
@@ -467,7 +467,7 @@ var UgContainerCard = styled__default["default"](reactNotifications.Well)(templa
|
|
|
467
467
|
return "".concat(theme.space.xl, " ").concat(theme.space.md);
|
|
468
468
|
});
|
|
469
469
|
var ContainerCard = function (props) { return jsxRuntime.jsx(UgContainerCard, __assign({}, props)); };
|
|
470
|
-
var templateObject_1$
|
|
470
|
+
var templateObject_1$1h, templateObject_2$w;
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* Tags let users categorize content using a keyword.
|
|
@@ -672,7 +672,7 @@ var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
|
672
672
|
})));
|
|
673
673
|
};
|
|
674
674
|
|
|
675
|
-
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$
|
|
675
|
+
var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObject_1$1g || (templateObject_1$1g = __makeTemplateObject(["\n border-radius: ", ";\n ", "\n"], ["\n border-radius: ", ";\n ", "\n"])), function (props) { return props.theme.borderRadii.xxl; }, function (props) {
|
|
676
676
|
return props.isLight ?
|
|
677
677
|
"\n &:before {\n background-image: linear-gradient(45deg, transparent, ".concat(props.theme.palette.grey[200], ", transparent);\n }\n ") : "\n background-color: ".concat(props.theme.palette.grey[200], ";\n ");
|
|
678
678
|
});
|
|
@@ -690,22 +690,22 @@ var UgSkeleton = styled__default["default"](reactLoaders.Skeleton)(templateObjec
|
|
|
690
690
|
- To communicate a typing status, use Inline instead
|
|
691
691
|
*/
|
|
692
692
|
var Skeleton = function (props) { return jsxRuntime.jsx(UgSkeleton, __assign({}, props)); };
|
|
693
|
-
var templateObject_1$
|
|
693
|
+
var templateObject_1$1g;
|
|
694
694
|
|
|
695
|
-
var CardMeta = styled__default["default"].div(templateObject_1$
|
|
695
|
+
var CardMeta = styled__default["default"].div(templateObject_1$1f || (templateObject_1$1f = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
696
696
|
var theme = _a.theme, direction = _a.direction, justifyContent = _a.justifyContent;
|
|
697
697
|
return "\n display: flex;\n align-items: center;\n flex-direction: ".concat(direction || "row", ";\n justify-content: ").concat(justifyContent || "space-between", ";\n height: ").concat(theme.space.base * 6, "px;\n padding: ").concat(theme.space.xxs, " 0;\n margin-bottom: ").concat(theme.space.xs, ";\n ");
|
|
698
698
|
});
|
|
699
|
-
var templateObject_1$
|
|
699
|
+
var templateObject_1$1f;
|
|
700
700
|
|
|
701
|
-
var CardThumbnail = styled__default["default"].div(templateObject_1$
|
|
701
|
+
var CardThumbnail = styled__default["default"].div(templateObject_1$1e || (templateObject_1$1e = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
702
702
|
var theme = _a.theme, align = _a.align, isStretched = _a.isStretched;
|
|
703
703
|
return "\n display: flex;\n\n ".concat(!isStretched ? "max-width: ".concat(theme.space.base * 16, "px") : "", ";\n max-height: ").concat(isStretched ? '150px' : "".concat(theme.space.base * 16, "px"), ";\n ").concat(align === "left" ? "margin-right: auto;" : '', "\n ").concat(align === "right" ? "margin-left: auto;" : '', "\n ").concat(align === "center" || isStretched ? "margin: auto;" : '', "\n\n padding: ").concat(theme.space.xxs, " 0;\n\n svg {\n width: 100%;\n height: auto;\n }\n ");
|
|
704
704
|
});
|
|
705
705
|
CardThumbnail.defaultProps = {
|
|
706
706
|
align: "left"
|
|
707
707
|
};
|
|
708
|
-
var templateObject_1$
|
|
708
|
+
var templateObject_1$1e;
|
|
709
709
|
|
|
710
710
|
/**
|
|
711
711
|
* Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
|
|
@@ -717,7 +717,7 @@ var XL = function (props) { return jsxRuntime.jsx(reactTypography.XL, __assign({
|
|
|
717
717
|
var XXL = function (props) { return jsxRuntime.jsx(reactTypography.XXL, __assign({}, props)); };
|
|
718
718
|
var XXXL = function (props) { return jsxRuntime.jsx(reactTypography.XXXL, __assign({}, props)); };
|
|
719
719
|
|
|
720
|
-
var Label$2 = styled__default["default"](SM)(templateObject_1$
|
|
720
|
+
var Label$2 = styled__default["default"](SM)(templateObject_1$1d || (templateObject_1$1d = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
721
721
|
var theme = _a.theme;
|
|
722
722
|
return theme.palette.grey[500];
|
|
723
723
|
});
|
|
@@ -746,9 +746,9 @@ var CardHeader = function (props) { return jsxRuntime.jsx(Container$2, __assign(
|
|
|
746
746
|
CardHeader.Label = Label$2;
|
|
747
747
|
CardHeader.Title = Title$2;
|
|
748
748
|
CardHeader.Text = Description$2;
|
|
749
|
-
var templateObject_1$
|
|
749
|
+
var templateObject_1$1d, templateObject_2$v, templateObject_3$k, templateObject_4$f;
|
|
750
750
|
|
|
751
|
-
var Divider = styled__default["default"].div(templateObject_1$
|
|
751
|
+
var Divider = styled__default["default"].div(templateObject_1$1c || (templateObject_1$1c = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"])), function (_a) {
|
|
752
752
|
var theme = _a.theme;
|
|
753
753
|
return theme.space.base * 3;
|
|
754
754
|
}, function (_a) {
|
|
@@ -764,9 +764,9 @@ var Container$1 = styled__default["default"].div(templateObject_3$j || (template
|
|
|
764
764
|
return "\n display: flex;\n align-items: center;\n flex-direction: ".concat(direction || "row", ";\n justify-content: ").concat(justifyContent || "space-between", ";\n padding: ").concat(theme.space.xxs, " 0;\n margin-top: ").concat(theme.space.xs, ";\n ").concat(wrap ? "flex-wrap: wrap;" : "", "\n ");
|
|
765
765
|
});
|
|
766
766
|
var CardFooter = function (props) { return (jsxRuntime.jsxs(Footer$2, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container$1, __assign({}, props, { children: props.children }))] })); };
|
|
767
|
-
var templateObject_1$
|
|
767
|
+
var templateObject_1$1c, templateObject_2$u, templateObject_3$j;
|
|
768
768
|
|
|
769
|
-
var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$
|
|
769
|
+
var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$1b || (templateObject_1$1b = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n cursor: pointer;\n\n ", "\n\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n cursor: pointer;\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
770
770
|
var theme = _a.theme;
|
|
771
771
|
return theme.borderRadii.lg;
|
|
772
772
|
}, function (_a) {
|
|
@@ -796,7 +796,7 @@ SpecialCard.Meta = CardMeta;
|
|
|
796
796
|
SpecialCard.Thumb = CardThumbnail;
|
|
797
797
|
SpecialCard.Header = CardHeader;
|
|
798
798
|
SpecialCard.Footer = CardFooter;
|
|
799
|
-
var templateObject_1$
|
|
799
|
+
var templateObject_1$1b;
|
|
800
800
|
|
|
801
801
|
var CampaignCardSkeleton = function () {
|
|
802
802
|
return (jsxRuntime.jsxs(SpecialCard, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: jsxRuntime.jsx(Skeleton, { width: "30%" }) }), jsxRuntime.jsxs(SpecialCard.Header, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "50%" }), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Skeleton, { height: "26px", style: { backgroundColor: theme.palette.blue[400] } })] }), jsxRuntime.jsxs(SpecialCard.Footer, { children: [jsxRuntime.jsx(Skeleton, { height: "18px", width: "45%" }), jsxRuntime.jsx(Skeleton, { width: "26px", height: "26px", style: { borderRadius: "100%" } })] })] }));
|
|
@@ -829,7 +829,7 @@ var getTypeDataIcon = function (type) {
|
|
|
829
829
|
return SvgCampaignFunctional;
|
|
830
830
|
}
|
|
831
831
|
};
|
|
832
|
-
var StyledTag$2 = styled__default["default"](Tag)(templateObject_1$
|
|
832
|
+
var StyledTag$2 = styled__default["default"](Tag)(templateObject_1$1a || (templateObject_1$1a = __makeTemplateObject(["\n color: ", ";\n cursor: pointer;\n"], ["\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
833
833
|
var theme = _a.theme;
|
|
834
834
|
return theme.palette.grey["700"];
|
|
835
835
|
});
|
|
@@ -856,9 +856,9 @@ var CampaignCard = function (_a) {
|
|
|
856
856
|
var PillIcon = getTypeDataIcon(type);
|
|
857
857
|
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, __assign({ title: campaignTitle }, props, { children: [jsxRuntime.jsxs(SpecialCard.Meta, { children: [jsxRuntime.jsx(StyledLabel$2, { 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(SpecialCard.Header, { children: [jsxRuntime.jsx(SpecialCard.Header.Label, { children: projectTitle }), jsxRuntime.jsx(SpecialCard.Header.Title, { children: campaignTitle })] }), jsxRuntime.jsxs(SpecialCard.Footer, { children: [props.pillText && (jsxRuntime.jsxs(StyledTag$2, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), jsxRuntime.jsx(Ellipsis, __assign({ style: { maxWidth: "180px" } }, { children: props.pillText }))] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
|
|
858
858
|
};
|
|
859
|
-
var templateObject_1$
|
|
859
|
+
var templateObject_1$1a, templateObject_2$t, templateObject_3$i;
|
|
860
860
|
|
|
861
|
-
var StyledTagNew = styled__default["default"](Tag)(templateObject_1$
|
|
861
|
+
var StyledTagNew = styled__default["default"](Tag)(templateObject_1$19 || (templateObject_1$19 = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"], ["\n height: ", "px;\n padding: ", "px\n ", "px;\n color: ", ";\n position: absolute;\n right: 16px;\n top: 16px;\n"])), function (_a) {
|
|
862
862
|
var theme = _a.theme;
|
|
863
863
|
return theme.space.base * 6;
|
|
864
864
|
}, function (_a) {
|
|
@@ -875,9 +875,9 @@ var ProductCard = function (props) {
|
|
|
875
875
|
var isNew = props.isNew, productTitle = props.productTitle, labelNew = props.labelNew;
|
|
876
876
|
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(SpecialCard, __assign({ title: productTitle }, props, { children: [jsxRuntime.jsx(SpecialCard.Meta, { children: isNew && (jsxRuntime.jsx(StyledTagNew, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" }))) }), props.icon && jsxRuntime.jsx(SpecialCard.Thumb, __assign({ align: "center" }, { children: props.icon })), jsxRuntime.jsxs(SpecialCard.Header, __assign({ onClick: props.onCtaClick, align: "center" }, { children: [props.preTitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.preTitle })), jsxRuntime.jsx(SpecialCard.Header.Title, { children: productTitle })] })), jsxRuntime.jsx(SpecialCard.Footer, __assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(Button, __assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick, themeColor: theme.colors.accentHue, size: "small" }, { children: props.ctaLabel })) }))] })));
|
|
877
877
|
};
|
|
878
|
-
var templateObject_1$
|
|
878
|
+
var templateObject_1$19;
|
|
879
879
|
|
|
880
|
-
var ServiceSubtitle = styled__default["default"](SM)(templateObject_1$
|
|
880
|
+
var ServiceSubtitle = styled__default["default"](SM)(templateObject_1$18 || (templateObject_1$18 = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", "px;\n"], ["\n color: ", ";\n margin-bottom: ", "px;\n"])), function (_a) {
|
|
881
881
|
var theme = _a.theme;
|
|
882
882
|
return theme.palette.grey[500];
|
|
883
883
|
}, function (_a) {
|
|
@@ -929,13 +929,13 @@ var ServiceCard = function (props) {
|
|
|
929
929
|
var serviceIcon = props.serviceIcon, serviceTitle = props.serviceTitle, serviceSubtitle = props.serviceSubtitle;
|
|
930
930
|
return (jsxRuntime.jsxs(StyledCard$1, __assign({}, props, { children: [props.isHoverable && (jsxRuntime.jsxs(HoverBody, { children: [jsxRuntime.jsxs(HoverMetaContainer, { children: [props.hoverTitle && (jsxRuntime.jsx(ServiceTitle, { children: props.hoverTitle })), props.hoverSubtitle && (jsxRuntime.jsx(ServiceSubtitle, { children: props.hoverSubtitle }))] }), props.hoverButtons && (jsxRuntime.jsx(ButtonsWrap$1, { children: props.hoverButtons.map(function (button) { return button; }) }))] })), jsxRuntime.jsxs(CardContent, { children: [jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [serviceIcon && jsxRuntime.jsx(SpecialCard.Thumb, { children: serviceIcon }), jsxRuntime.jsxs(SpecialCard.Header, { children: [jsxRuntime.jsx(SpecialCard.Header.Label, { children: serviceSubtitle }), jsxRuntime.jsx(SpecialCard.Header.Title, { children: serviceTitle })] })] }), props.tags && (jsxRuntime.jsx(SpecialCard.Footer, __assign({ justifyContent: "start", wrap: true }, { children: props.tags.map(function (tag, index) { return (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(StyledTag$1.Avatar, { children: tag.icon }), tag.label] }), index)); }) })))] })] })));
|
|
931
931
|
};
|
|
932
|
-
var templateObject_1$
|
|
932
|
+
var templateObject_1$18, templateObject_2$s, templateObject_3$h, templateObject_4$e, templateObject_5$6, templateObject_6$2, templateObject_7$1, templateObject_8$1;
|
|
933
933
|
|
|
934
|
-
var ButtonsWrap = styled__default["default"].div(templateObject_1$
|
|
934
|
+
var ButtonsWrap = styled__default["default"].div(templateObject_1$17 || (templateObject_1$17 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"], ["\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: flex-start;\n width: 100%;\n"])));
|
|
935
935
|
var InfoCard = function (props) {
|
|
936
936
|
return (jsxRuntime.jsxs(SpecialCard, __assign({}, (props.infoTitle && { title: props.infoTitle }), props, { children: [props.infoImg && (jsxRuntime.jsx(SpecialCard.Thumb, __assign({ isStretched: true }, { children: props.infoImg }))), jsxRuntime.jsxs(SpecialCard.Header, { children: [props.infoSubtitle && (jsxRuntime.jsx(SpecialCard.Header.Label, { children: props.infoSubtitle })), props.infoTitle && (jsxRuntime.jsx(SpecialCard.Header.Title, { children: props.infoTitle }))] }), props.infoButtons && (jsxRuntime.jsx(SpecialCard.Footer, __assign({ direction: "column", justifyContent: "center" }, { children: jsxRuntime.jsx(ButtonsWrap, { children: props.infoButtons.map(function (button) { return button; }) }) })))] })));
|
|
937
937
|
};
|
|
938
|
-
var templateObject_1$
|
|
938
|
+
var templateObject_1$17;
|
|
939
939
|
|
|
940
940
|
var DEFAULT_CHARTS_THEME = {
|
|
941
941
|
background: theme.palette.white,
|
|
@@ -1110,14 +1110,14 @@ var CHARTS_COLOR_SCHEME_CATEGORICAL_8_A = [
|
|
|
1110
1110
|
chartColors.blue, // Blue 900
|
|
1111
1111
|
];
|
|
1112
1112
|
|
|
1113
|
-
var ChartContainer = styled__default["default"].div(templateObject_1$
|
|
1113
|
+
var ChartContainer = styled__default["default"].div(templateObject_1$16 || (templateObject_1$16 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n"], ["\n height: ", ";\n width: ", ";\n"])), function (_a) {
|
|
1114
1114
|
var height = _a.height;
|
|
1115
1115
|
return height || "300px";
|
|
1116
1116
|
}, function (_a) {
|
|
1117
1117
|
var width = _a.width;
|
|
1118
1118
|
return width || "100%";
|
|
1119
1119
|
});
|
|
1120
|
-
var templateObject_1$
|
|
1120
|
+
var templateObject_1$16;
|
|
1121
1121
|
|
|
1122
1122
|
var BarChart = function (_a) {
|
|
1123
1123
|
var theme = _a.theme, colors = _a.colors, width = _a.width, height = _a.height, props = __rest(_a, ["theme", "colors", "width", "height"]);
|
|
@@ -1134,7 +1134,7 @@ var CustomBulletChartRange = function (_a) {
|
|
|
1134
1134
|
return (jsxRuntime.jsx("rect", { x: x, y: y, width: width - 2, height: height, fill: fill }));
|
|
1135
1135
|
};
|
|
1136
1136
|
|
|
1137
|
-
var UgBulletChart = styled__default["default"](bullet.ResponsiveBullet)(templateObject_1$
|
|
1137
|
+
var UgBulletChart = styled__default["default"](bullet.ResponsiveBullet)(templateObject_1$15 || (templateObject_1$15 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
1138
1138
|
var BulletChart = function (_a) {
|
|
1139
1139
|
var width = _a.width, height = _a.height, ranges = _a.ranges, values = _a.values, markerColor = _a.markerColor, markerSize = _a.markerSize, rangeColor = _a.rangeColor, measureSize = _a.measureSize, measureColor = _a.measureColor, props = __rest(_a, ["width", "height", "ranges", "values", "markerColor", "markerSize", "rangeColor", "measureSize", "measureColor"]);
|
|
1140
1140
|
var rangesCount = ranges.length;
|
|
@@ -1153,7 +1153,7 @@ var BulletChart = function (_a) {
|
|
|
1153
1153
|
return (jsxRuntime.jsx(CustomBulletChartRange, __assign({ fill: rangeColor !== null && rangeColor !== void 0 ? rangeColor : chartColors.lightGrey }, rangeProps, { width: isLast ? width + 2 : width })));
|
|
1154
1154
|
}, margin: { top: 0, right: 10, bottom: -1, left: 10 } }, props)) })));
|
|
1155
1155
|
};
|
|
1156
|
-
var templateObject_1$
|
|
1156
|
+
var templateObject_1$15;
|
|
1157
1157
|
|
|
1158
1158
|
var CenteredItem = function (_a) {
|
|
1159
1159
|
var centerX = _a.centerX, centerY = _a.centerY, theme = _a.theme, radius = _a.radius, label = _a.label, value = _a.value;
|
|
@@ -1184,23 +1184,23 @@ var PieChart = function (_a) {
|
|
|
1184
1184
|
: []), true), activeOuterRadiusOffset: 12 }) })) }));
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
|
+
var AbsoluteChartContainer = styled__default["default"](ChartContainer)(templateObject_1$14 || (templateObject_1$14 = __makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ", ";\n ", ";\n"], ["\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ", ";\n ", ";\n"])), function (_a) {
|
|
1188
|
+
var mode = _a.mode;
|
|
1189
|
+
return (mode === "front" ? "z-index: 1;" : "");
|
|
1190
|
+
}, function (_a) {
|
|
1191
|
+
var mode = _a.mode;
|
|
1192
|
+
return (mode === "front" ? "pointer-events: none;" : "");
|
|
1193
|
+
});
|
|
1187
1194
|
var HalfPieChartComponent = function (_a) {
|
|
1188
|
-
var theme = _a.theme, colors = _a.colors,
|
|
1195
|
+
var theme = _a.theme, colors = _a.colors, height = _a.height, data = _a.data, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, mode = _a.mode, showArcLinks = _a.showArcLinks, margin = _a.margin;
|
|
1189
1196
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
1190
|
-
return (jsxRuntime.jsx(
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
pointerEvents: mode === "front" ? "none" : undefined,
|
|
1198
|
-
} }, { children: jsxRuntime.jsx(ChartContainer, __assign({ width: width, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: __assign(__assign(__assign({}, DEFAULT_CHARTS_THEME), theme), { background: mode === "front" ? "transparent" : undefined }), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, padAngle: 2, data: data, margin: margin, innerRadius: mode === "front" ? 0.835 : 0.8, arcLinkLabelsThickness: 2, arcLinkLabelsTextColor: themeContext.palette.grey[600], layers: __spreadArray([
|
|
1199
|
-
"arcs"
|
|
1200
|
-
], (showArcLinks
|
|
1201
|
-
? ["arcLabels", "arcLinkLabels"]
|
|
1202
|
-
: []), true), startAngle: -90, endAngle: 90, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, animate: false }) })) })));
|
|
1203
|
-
};
|
|
1197
|
+
return (jsxRuntime.jsx(AbsoluteChartContainer, __assign({ mode: mode, height: height }, { children: jsxRuntime.jsx(pie.ResponsivePie, { theme: __assign(__assign(__assign({}, DEFAULT_CHARTS_THEME), theme), { background: mode === "front" ? "transparent" : undefined }), colors: colors !== null && colors !== void 0 ? colors : CHARTS_COLOR_SCHEME_CATEGORICAL_8_A, enableArcLabels: false, arcLinkLabelsColor: { from: "color" }, padAngle: 2, data: data, margin: margin, innerRadius: mode === "front" ? 0.835 : 0.8, arcLinkLabelsThickness: 2, arcLinkLabelsTextColor: themeContext.palette.grey[600], layers: __spreadArray([
|
|
1198
|
+
"arcs"
|
|
1199
|
+
], (showArcLinks
|
|
1200
|
+
? ["arcLabels", "arcLinkLabels"]
|
|
1201
|
+
: []), true), startAngle: -90, endAngle: 90, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, animate: false }) })));
|
|
1202
|
+
};
|
|
1203
|
+
var templateObject_1$14;
|
|
1204
1204
|
|
|
1205
1205
|
var HalfPieChart = function (_a) {
|
|
1206
1206
|
var theme = _a.theme, colors = _a.colors, width = _a.width, height = _a.height, data = _a.data, margin = _a.margin, showArcLinks = _a.showArcLinks;
|
|
@@ -1216,15 +1216,15 @@ var HalfPieChart = function (_a) {
|
|
|
1216
1216
|
return newColors;
|
|
1217
1217
|
};
|
|
1218
1218
|
var _b = React.useState(grayOutColors(0)), currentColors = _b[0], setCurrentColors = _b[1];
|
|
1219
|
-
return (jsxRuntime.jsxs(
|
|
1219
|
+
return (jsxRuntime.jsxs("div", __assign({ style: { width: width, height: height, position: "relative" } }, { children: [jsxRuntime.jsx(HalfPieChartComponent, { theme: theme, colors: currentColors, height: height, data: data, onMouseEnter: function (data) {
|
|
1220
1220
|
setCurrentColors(grayOutColors(data.arc.index));
|
|
1221
1221
|
}, onMouseLeave: function () {
|
|
1222
1222
|
setCurrentColors(grayOutColors(0));
|
|
1223
|
-
}, showArcLinks: showArcLinks, margin: margin, mode: "front" }), jsxRuntime.jsx(HalfPieChartComponent, { theme: theme, colors: activeColors,
|
|
1223
|
+
}, showArcLinks: showArcLinks, margin: margin, mode: "front" }), jsxRuntime.jsx(HalfPieChartComponent, { theme: theme, colors: activeColors, height: height, data: data, margin: margin, showArcLinks: showArcLinks, onMouseEnter: function (data) {
|
|
1224
1224
|
setCurrentColors(grayOutColors(data.arc.index));
|
|
1225
1225
|
}, onMouseLeave: function () {
|
|
1226
1226
|
setCurrentColors(grayOutColors(0));
|
|
1227
|
-
}, mode: "back" })] }));
|
|
1227
|
+
}, mode: "back" })] })));
|
|
1228
1228
|
};
|
|
1229
1229
|
|
|
1230
1230
|
var StreamChart = function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PieChartProps } from "./_types";
|
|
2
|
-
declare const HalfPieChartComponent: ({ theme, colors,
|
|
2
|
+
declare const HalfPieChartComponent: ({ theme, colors, height, data, onMouseEnter, onMouseLeave, mode, showArcLinks, margin, }: PieChartProps & {
|
|
3
3
|
onMouseEnter?: ((props: any) => void) | undefined;
|
|
4
4
|
onMouseLeave?: ((props: any) => void) | undefined;
|
|
5
5
|
mode: "back" | "front";
|