@appquality/unguess-design-system 2.10.13 → 2.10.16
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 +36 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +46 -22
- package/build/stories/alerts/_types.d.ts +5 -0
- package/build/stories/alerts/index.d.ts +15 -0
- package/build/stories/alerts/index.stories.d.ts +10 -0
- package/build/stories/stepper/index.d.ts +1 -1
- package/build/stories/stepper/index.stories.d.ts +1 -1
- package/build/stories/theme/index.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v2.10.16 (Fri May 06 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- fix(alerts): add missing export ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.10.15 (Fri May 06 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- feat(alerts): add alerts component + styling [#51](https://github.com/AppQuality/unguess-design-system/pull/51) ([@marcbon](https://github.com/marcbon))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.10.14 (Fri May 06 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- style(stepper): update spaces and content color [#50](https://github.com/AppQuality/unguess-design-system/pull/50) ([@cannarocks](https://github.com/cannarocks))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v2.10.13 (Thu May 05 2022)
|
|
2
38
|
|
|
3
39
|
#### ⚠️ Pushed to `master`
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -7,10 +7,10 @@ require('@zendeskgarden/css-bedrock');
|
|
|
7
7
|
var reactTheming = require('@zendeskgarden/react-theming');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var reactAccordions = require('@zendeskgarden/react-accordions');
|
|
10
|
+
var reactNotifications = require('@zendeskgarden/react-notifications');
|
|
10
11
|
var reactAvatars = require('@zendeskgarden/react-avatars');
|
|
11
12
|
var reactBreadcrumbs = require('@zendeskgarden/react-breadcrumbs');
|
|
12
13
|
var reactButtons = require('@zendeskgarden/react-buttons');
|
|
13
|
-
var reactNotifications = require('@zendeskgarden/react-notifications');
|
|
14
14
|
var reactTags = require('@zendeskgarden/react-tags');
|
|
15
15
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
16
16
|
var React = require('react');
|
|
@@ -241,10 +241,10 @@ var gradients = {
|
|
|
241
241
|
var _a, _b, _c, _d, _e, _f;
|
|
242
242
|
var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { chrome: __assign(__assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: __assign(__assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }) }), notification: __assign(__assign({}, (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.notification), { card: __assign(__assign({}, (_f = (_e = reactTheming.DEFAULT_THEME.components) === null || _e === void 0 ? void 0 : _e.notification) === null || _f === void 0 ? void 0 : _f.well), { padding: "16px" }) }) });
|
|
243
243
|
|
|
244
|
-
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[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" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
244
|
+
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[400] }), 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" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
245
245
|
|
|
246
|
-
var GlobalStyle = styled.createGlobalStyle(templateObject_1$
|
|
247
|
-
var templateObject_1$
|
|
246
|
+
var GlobalStyle = styled.createGlobalStyle(templateObject_1$V || (templateObject_1$V = __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 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 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);
|
|
247
|
+
var templateObject_1$V;
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Accordions are headers that can be expanded to reveal content or collapsed to hide it.
|
|
@@ -259,6 +259,22 @@ Accordion.Header = reactAccordions.Accordion.Header;
|
|
|
259
259
|
Accordion.Label = reactAccordions.Accordion.Label;
|
|
260
260
|
Accordion.Panel = reactAccordions.Accordion.Panel;
|
|
261
261
|
|
|
262
|
+
var UgAlert = styled__default["default"](reactNotifications.Alert)(templateObject_1$U || (templateObject_1$U = __makeTemplateObject(["\n background-color: white;\n color: ", ";\n border-width: 2px;\n"], ["\n background-color: white;\n color: ", ";\n border-width: 2px;\n"])), function (_a) {
|
|
263
|
+
var theme = _a.theme;
|
|
264
|
+
return theme.palette.grey[700];
|
|
265
|
+
});
|
|
266
|
+
/**
|
|
267
|
+
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
268
|
+
* <hr>
|
|
269
|
+
* Used for this:
|
|
270
|
+
- To show the user where they are in a nested navigation
|
|
271
|
+
- To provide a quick way to navigate to ancestor pages
|
|
272
|
+
*/
|
|
273
|
+
var Alert = function (props) { return jsxRuntime.jsx(UgAlert, __assign({}, props)); };
|
|
274
|
+
Alert.Title = reactNotifications.Title;
|
|
275
|
+
Alert.Close = reactNotifications.Close;
|
|
276
|
+
var templateObject_1$U;
|
|
277
|
+
|
|
262
278
|
// import useWindowSize from "../../hooks/useWindowSize";
|
|
263
279
|
var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$T || (templateObject_1$T = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
|
|
264
280
|
return props.avatarType &&
|
|
@@ -630,7 +646,7 @@ var flexStart = styled.css(templateObject_3$c || (templateObject_3$c = __makeTem
|
|
|
630
646
|
var theme = _a.theme;
|
|
631
647
|
return (theme.rtl ? "flex-end" : "flex-start");
|
|
632
648
|
});
|
|
633
|
-
var cardStyle = styled.css(templateObject_4$
|
|
649
|
+
var cardStyle = styled.css(templateObject_4$9 || (templateObject_4$9 = __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) {
|
|
634
650
|
var theme = _a.theme;
|
|
635
651
|
return theme.borderRadii.lg;
|
|
636
652
|
}, function (_a) {
|
|
@@ -643,7 +659,7 @@ var cardStyle = styled.css(templateObject_4$8 || (templateObject_4$8 = __makeTem
|
|
|
643
659
|
var theme = _a.theme;
|
|
644
660
|
return theme.shadows.boxShadow(theme);
|
|
645
661
|
});
|
|
646
|
-
var templateObject_1$O, templateObject_2$i, templateObject_3$c, templateObject_4$
|
|
662
|
+
var templateObject_1$O, templateObject_2$i, templateObject_3$c, templateObject_4$9;
|
|
647
663
|
|
|
648
664
|
var getStatusIcon = function (status) {
|
|
649
665
|
switch (status) {
|
|
@@ -685,7 +701,7 @@ var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_3$b || (temp
|
|
|
685
701
|
var theme = _a.theme;
|
|
686
702
|
return theme.palette.white;
|
|
687
703
|
});
|
|
688
|
-
var StyledLabel$2 = styled__default["default"](Label)(templateObject_4$
|
|
704
|
+
var StyledLabel$2 = styled__default["default"](Label)(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
689
705
|
var theme = _a.theme;
|
|
690
706
|
return theme.fontSizes.sm;
|
|
691
707
|
}, function (_a) {
|
|
@@ -729,7 +745,7 @@ var CampaignCard = function (props) {
|
|
|
729
745
|
}
|
|
730
746
|
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$2, __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$2, __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, {})] })] })));
|
|
731
747
|
};
|
|
732
|
-
var templateObject_1$N, templateObject_2$h, templateObject_3$b, templateObject_4$
|
|
748
|
+
var templateObject_1$N, templateObject_2$h, templateObject_3$b, templateObject_4$8, templateObject_5$4, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
|
|
733
749
|
|
|
734
750
|
var Wrapper = styled__default["default"](Card)(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n\n &:hover {\n box-shadow: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n\n &:hover {\n box-shadow: ", ";\n }\n"])), function (_a) {
|
|
735
751
|
var theme = _a.theme;
|
|
@@ -764,7 +780,7 @@ var StyledLabel$1 = styled__default["default"](Label)(templateObject_3$a || (tem
|
|
|
764
780
|
var theme = _a.theme;
|
|
765
781
|
return theme.palette.grey["500"];
|
|
766
782
|
});
|
|
767
|
-
var StyledTitleLabel = styled__default["default"](Label)(templateObject_4$
|
|
783
|
+
var StyledTitleLabel = styled__default["default"](Label)(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"], ["\n color: ", ";\n font-size: ", ";\n word-wrap: break-word;\n cursor: pointer;\n"])), function (_a) {
|
|
768
784
|
var theme = _a.theme;
|
|
769
785
|
return theme.palette.blue["600"];
|
|
770
786
|
}, function (_a) {
|
|
@@ -792,7 +808,7 @@ var ProductCard = function (props) {
|
|
|
792
808
|
}
|
|
793
809
|
return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper, __assign({}, props, { children: [jsxRuntime.jsxs(CardBody, __assign({ onClick: props.onCtaClick }, { 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(IconContainer$1, { children: props.icon }), props.preTitle && (jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: props.preTitle }))), jsxRuntime.jsx(StyledTitleLabel, __assign({ isRegular: true }, { children: productTitleCut }))] })), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(CardFooter, { children: jsxRuntime.jsx(Button, __assign({ isPill: true, isPrimary: true, onClick: props.onCtaClick }, { children: props.ctaLabel })) })] })));
|
|
794
810
|
};
|
|
795
|
-
var templateObject_1$M, templateObject_2$g, templateObject_3$a, templateObject_4$
|
|
811
|
+
var templateObject_1$M, templateObject_2$g, templateObject_3$a, templateObject_4$7, templateObject_5$3, templateObject_6$1, templateObject_7, templateObject_8;
|
|
796
812
|
|
|
797
813
|
/**
|
|
798
814
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
@@ -1146,7 +1162,7 @@ var LabelWrapper = styled__default["default"](Label)(templateObject_3$9 || (temp
|
|
|
1146
1162
|
var theme = _a.theme;
|
|
1147
1163
|
return theme.palette.grey[600];
|
|
1148
1164
|
});
|
|
1149
|
-
var StyledLabel = styled__default["default"](Label)(templateObject_4$
|
|
1165
|
+
var StyledLabel = styled__default["default"](Label)(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n margin: ", "px auto;\n"], ["\n margin: ", "px auto;\n"])), function (_a) {
|
|
1150
1166
|
var theme = _a.theme;
|
|
1151
1167
|
return theme.space.base;
|
|
1152
1168
|
});
|
|
@@ -1158,7 +1174,7 @@ var CheckboxCard = function (props) {
|
|
|
1158
1174
|
};
|
|
1159
1175
|
return (jsxRuntime.jsxs(StyledCard$1, __assign({}, props.card, props, props && !props.disabled && { onClick: handleToggle }, { className: checked ? "card-active" : "" }, { children: [jsxRuntime.jsx(IconWrapper$1, { children: (props.iconActive && checked) ? props.iconActive : props.icon }), jsxRuntime.jsx(LabelWrapper, { children: props.label }), jsxRuntime.jsx(Checkbox, __assign({}, props, { checked: checked, value: checked ? 1 : 0, onClick: function (e) { return e.stopPropagation(); } }, { children: jsxRuntime.jsx(StyledLabel, __assign({ hidden: true }, { children: props.label })) }))] })));
|
|
1160
1176
|
};
|
|
1161
|
-
var templateObject_1$G, templateObject_2$f, templateObject_3$9, templateObject_4$
|
|
1177
|
+
var templateObject_1$G, templateObject_2$f, templateObject_3$9, templateObject_4$6;
|
|
1162
1178
|
|
|
1163
1179
|
var UgField = styled__default["default"](reactForms.Field)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([""], [""])));
|
|
1164
1180
|
/**
|
|
@@ -1249,7 +1265,7 @@ var StyledText = styled__default["default"](reactTypography.LG)(templateObject_3
|
|
|
1249
1265
|
var theme = _a.theme;
|
|
1250
1266
|
return theme.colors.primaryHue;
|
|
1251
1267
|
});
|
|
1252
|
-
var Circle = styled__default["default"].div(templateObject_4$
|
|
1268
|
+
var Circle = styled__default["default"].div(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-left: auto;\n ", "\n"], ["\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-left: auto;\n ", "\n"])), function (_a) {
|
|
1253
1269
|
var theme = _a.theme;
|
|
1254
1270
|
return theme.space.base * 6;
|
|
1255
1271
|
}, function (_a) {
|
|
@@ -1277,7 +1293,7 @@ var RadioCard = function (_a) {
|
|
|
1277
1293
|
var card = _a.card, icon = _a.icon, iconActive = _a.iconActive, props = __rest(_a, ["card", "icon", "iconActive"]);
|
|
1278
1294
|
return (jsxRuntime.jsxs(StyledCard, __assign({}, card, props, { className: props.checked ? "card-active" : "", onClick: function () { props.onChecked && props.onChecked(props.value); } }, { children: [jsxRuntime.jsx(Circle, __assign({ checked: (_b = props.checked) !== null && _b !== void 0 ? _b : false }, { children: jsxRuntime.jsx(SvgCheckLg, { fill: "white" }) })), jsxRuntime.jsx(IconWrapper, { children: (iconActive && props.checked) ? iconActive : icon }), jsxRuntime.jsx("input", { hidden: true, type: "radio", value: props.value, name: props.name, checked: props.checked }), jsxRuntime.jsx(StyledDivider, {}), jsxRuntime.jsx(StyledText, { children: props.label })] })));
|
|
1279
1295
|
};
|
|
1280
|
-
var templateObject_1$B, templateObject_2$d, templateObject_3$8, templateObject_4$
|
|
1296
|
+
var templateObject_1$B, templateObject_2$d, templateObject_3$8, templateObject_4$5, templateObject_5$2;
|
|
1281
1297
|
|
|
1282
1298
|
var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([""], [""])));
|
|
1283
1299
|
/**
|
|
@@ -1885,7 +1901,7 @@ var StyledBody$4 = styled__default["default"](Modal.Body)(templateObject_3$6 ||
|
|
|
1885
1901
|
var theme = _a.theme;
|
|
1886
1902
|
return theme.palette.grey["100"];
|
|
1887
1903
|
});
|
|
1888
|
-
var StyledFooter = styled__default["default"](Modal.Footer)(templateObject_4$
|
|
1904
|
+
var StyledFooter = styled__default["default"](Modal.Footer)(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n padding: ", "px ", "px;\n"], ["\n padding: ", "px ", "px;\n"])), function (_a) {
|
|
1889
1905
|
var theme = _a.theme;
|
|
1890
1906
|
return theme.space.base * 4;
|
|
1891
1907
|
}, function (_a) {
|
|
@@ -1899,7 +1915,7 @@ ModalFullScreen.Body = StyledBody$4;
|
|
|
1899
1915
|
ModalFullScreen.Footer = StyledFooter;
|
|
1900
1916
|
ModalFullScreen.Close = StyledModalClose;
|
|
1901
1917
|
ModalFullScreen.FooterItem = FooterItem;
|
|
1902
|
-
var templateObject_1$f, templateObject_2$8, templateObject_3$6, templateObject_4$
|
|
1918
|
+
var templateObject_1$f, templateObject_2$8, templateObject_3$6, templateObject_4$4, templateObject_5$1;
|
|
1903
1919
|
|
|
1904
1920
|
/**
|
|
1905
1921
|
* The Chrome component provides a high-level layout structure and sets a framework for navigating around Zendesk products.
|
|
@@ -1987,7 +2003,7 @@ var IconContainer = styled__default["default"].div(templateObject_3$5 || (templa
|
|
|
1987
2003
|
var theme = _a.theme;
|
|
1988
2004
|
return theme.space.sm;
|
|
1989
2005
|
});
|
|
1990
|
-
var MenuItemBody = styled__default["default"].div(templateObject_4$
|
|
2006
|
+
var MenuItemBody = styled__default["default"].div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStart);
|
|
1991
2007
|
var MenuItem = function (_a) {
|
|
1992
2008
|
var children = _a.children, selectedItem = _a.selectedItem, content = _a.content, props = __rest(_a, ["children", "selectedItem", "content"]);
|
|
1993
2009
|
var isActive = selectedItem && selectedItem === props.value;
|
|
@@ -1996,7 +2012,7 @@ var MenuItem = function (_a) {
|
|
|
1996
2012
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1997
2013
|
return isActive && content ? (jsxRuntime.jsx(StyledBody$3, { children: content }, props.value)) : (jsxRuntime.jsxs(StyledItem, __assign({}, props, { onClick: function () { return props.setActive(props.value); } }, { children: [props.icon && jsxRuntime.jsx(IconContainer, { children: props.icon }), children, content && jsxRuntime.jsx(MenuItemIcon, {})] }), props.value));
|
|
1998
2014
|
};
|
|
1999
|
-
var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$
|
|
2015
|
+
var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$3;
|
|
2000
2016
|
|
|
2001
2017
|
var _path$3;
|
|
2002
2018
|
|
|
@@ -2079,7 +2095,7 @@ var StyledBody$2 = styled__default["default"].div(templateObject_3$4 || (templat
|
|
|
2079
2095
|
var theme = _a.theme;
|
|
2080
2096
|
return theme.space.base * 4;
|
|
2081
2097
|
});
|
|
2082
|
-
var StyledParagraph = styled__default["default"](Paragraph)(templateObject_4$
|
|
2098
|
+
var StyledParagraph = styled__default["default"](Paragraph)(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n margin-top: ", "px;\n"], ["\n margin-top: ", "px;\n"])), function (_a) {
|
|
2083
2099
|
var theme = _a.theme;
|
|
2084
2100
|
return theme.space.base * 4;
|
|
2085
2101
|
});
|
|
@@ -2099,7 +2115,7 @@ var HelpItem = function (props) {
|
|
|
2099
2115
|
var content = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PreviousButton, __assign({ onClick: function () { return props.setActive(""); }, isBasic: true }, { children: props.title })), jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledBody$2, { children: [jsxRuntime.jsx(Paragraph, __assign({ style: { color: theme.palette.grey[600] } }, { children: jsxRuntime.jsx(SM, { children: props.contactLabel }) })), jsxRuntime.jsx(StyledParagraph, { children: jsxRuntime.jsx(Avatar, { children: (_a = props.csm.picture) !== null && _a !== void 0 ? _a : getInitials(props.csm.name), avatarType: props.csm.picture ? "image" : "text", size: "large" }) }), jsxRuntime.jsxs(StyledParagraph, { children: [jsxRuntime.jsx(MD, __assign({ isBold: true }, { children: props.csm.name })), jsxRuntime.jsxs(Description, { children: [jsxRuntime.jsx(Anchor, __assign({ href: "mailto:".concat(props.csm.email), style: { color: theme.palette.grey[600] } }, { children: csmEmailCut })), jsxRuntime.jsxs(StyledButton$1, __assign({ isBasic: true, onClick: copyToClipBoard, size: "small", variant: "isBasic" }, { children: [jsxRuntime.jsx(StyledButton$1.StartIcon, { children: jsxRuntime.jsx(SvgCopy, {}) }), (_b = props.copyLabel) !== null && _b !== void 0 ? _b : "Copy"] }))] })] })] }), jsxRuntime.jsxs(Footer, { children: [jsxRuntime.jsx(Separator, {}), jsxRuntime.jsxs(StyledFooterButton, __assign({ isStretched: true, isBasic: true, onClick: props.toggleChat, style: { paddingLeft: theme.space.xxs } }, { children: [jsxRuntime.jsx(StyledFooterButton.StartIcon, { children: jsxRuntime.jsx(SvgInfoFill, { fill: theme.palette.blue[600] }) }), (_c = props.chatSupportLabel) !== null && _c !== void 0 ? _c : "Report a technical issue"] }))] })] }));
|
|
2100
2116
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(MenuItem, __assign({ content: content, value: props.value, selectedItem: props.selectedItem, setActive: props.setActive, icon: jsxRuntime.jsx(SvgQuestionMark, { fill: theme.palette.grey[600] }) }, { children: props.title })) }));
|
|
2101
2117
|
};
|
|
2102
|
-
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$
|
|
2118
|
+
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$2, templateObject_5, templateObject_6;
|
|
2103
2119
|
|
|
2104
2120
|
function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
|
|
2105
2121
|
|
|
@@ -2272,6 +2288,13 @@ var UgStepper = styled__default["default"](reactAccordions.Stepper)(templateObje
|
|
|
2272
2288
|
return props.activeIndex !== undefined &&
|
|
2273
2289
|
"\n ".concat(UgStep, ":nth-child(").concat(props.activeIndex + 1, ") {\n \n div[data-garden-id=\"accordions.step_icon\"] {\n background-color: ").concat(props.theme.palette.blue[600], ";\n color: white;\n }\n\n ").concat(UgLabel, " {\n font-weight: 500;\n color: ").concat(props.theme.palette.blue[600], ";\n }\n }\n ");
|
|
2274
2290
|
});
|
|
2291
|
+
var UgContent = styled__default["default"](reactAccordions.Stepper.Content)(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n padding: ", ";\n margin-top: 0;\n margin-bottom: 0;\n > div { \n color: ", "; \n }\n"], ["\n padding: ", ";\n margin-top: 0;\n margin-bottom: 0;\n > div { \n color: ", "; \n }\n"])), function (_a) {
|
|
2292
|
+
var theme = _a.theme;
|
|
2293
|
+
return "".concat(theme.space.sm, " ").concat(theme.space.sm, " ").concat(theme.space.sm, " 24px");
|
|
2294
|
+
}, function (_a) {
|
|
2295
|
+
var theme = _a.theme;
|
|
2296
|
+
return theme.palette.grey[600];
|
|
2297
|
+
});
|
|
2275
2298
|
/**
|
|
2276
2299
|
* A Stepper guides users through steps of a task in sequential order.
|
|
2277
2300
|
|
|
@@ -2281,8 +2304,8 @@ var UgStepper = styled__default["default"](reactAccordions.Stepper)(templateObje
|
|
|
2281
2304
|
var Stepper = function (props) { return jsxRuntime.jsx(UgStepper, __assign({}, props)); };
|
|
2282
2305
|
Stepper.Step = UgStep;
|
|
2283
2306
|
Stepper.Label = UgLabel;
|
|
2284
|
-
Stepper.Content =
|
|
2285
|
-
var templateObject_1$4, templateObject_2$2, templateObject_3$1;
|
|
2307
|
+
Stepper.Content = UgContent;
|
|
2308
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$1, templateObject_4$1;
|
|
2286
2309
|
|
|
2287
2310
|
var UgTable = styled__default["default"](reactTables.Table)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
2288
2311
|
/**
|
|
@@ -2391,6 +2414,7 @@ Object.defineProperty(exports, 'ModalClose', {
|
|
|
2391
2414
|
get: function () { return reactModals.Close; }
|
|
2392
2415
|
});
|
|
2393
2416
|
exports.Accordion = Accordion;
|
|
2417
|
+
exports.Alert = Alert;
|
|
2394
2418
|
exports.Anchor = Anchor;
|
|
2395
2419
|
exports.AppHeader = AppHeader;
|
|
2396
2420
|
exports.Autocomplete = Autocomplete;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AlertArgs } from './_types';
|
|
3
|
+
/**
|
|
4
|
+
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- To show the user where they are in a nested navigation
|
|
8
|
+
- To provide a quick way to navigate to ancestor pages
|
|
9
|
+
*/
|
|
10
|
+
declare const Alert: {
|
|
11
|
+
(props: AlertArgs): JSX.Element;
|
|
12
|
+
Title: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-notifications/dist/typings/elements/content/Title").ITitleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
};
|
|
15
|
+
export { Alert };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { AlertArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<AlertArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: AlertArgs): JSX.Element;
|
|
7
|
+
Title: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-notifications/dist/typings/elements/content/Title").ITitleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
@@ -10,6 +10,6 @@ declare const Stepper: {
|
|
|
10
10
|
(props: StepperArgs): JSX.Element;
|
|
11
11
|
Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
|
|
12
12
|
Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
13
|
-
Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement
|
|
13
|
+
Content: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
14
14
|
};
|
|
15
15
|
export { Stepper };
|
|
@@ -10,6 +10,6 @@ declare const _default: ComponentMeta<{
|
|
|
10
10
|
(props: StepperArgs): JSX.Element;
|
|
11
11
|
Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
|
|
12
12
|
Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
13
|
-
Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement
|
|
13
|
+
Content: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
14
14
|
}>;
|
|
15
15
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
2
|
colors: {
|
|
3
3
|
primaryHue: string;
|
|
4
|
+
warningHue: string;
|
|
5
|
+
successHue: string;
|
|
6
|
+
dangerHue: string;
|
|
4
7
|
base: "light" | "dark";
|
|
5
8
|
background: string;
|
|
6
9
|
foreground: string;
|
|
7
|
-
dangerHue: string;
|
|
8
|
-
warningHue: string;
|
|
9
|
-
successHue: string;
|
|
10
10
|
neutralHue: string;
|
|
11
11
|
chromeHue: string;
|
|
12
12
|
};
|