@appquality/unguess-design-system 2.10.12 โ 2.10.15
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.js +35 -26
- 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/forms/input/index.d.ts +2 -1
- 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.15 (Fri May 06 2022)
|
|
2
|
+
|
|
3
|
+
#### ๐ Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat(alerts): add alerts component + styling [#51](https://github.com/AppQuality/unguess-design-system/pull/51) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.10.14 (Fri May 06 2022)
|
|
14
|
+
|
|
15
|
+
#### ๐ Bug Fix
|
|
16
|
+
|
|
17
|
+
- style(stepper): update spaces and content color [#50](https://github.com/AppQuality/unguess-design-system/pull/50) ([@cannarocks](https://github.com/cannarocks))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.10.13 (Thu May 05 2022)
|
|
26
|
+
|
|
27
|
+
#### โ ๏ธ Pushed to `master`
|
|
28
|
+
|
|
29
|
+
- feat(hint): add hint component ([@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.12 (Thu May 05 2022)
|
|
2
38
|
|
|
3
39
|
#### โ ๏ธ Pushed to `master`
|
package/build/index.js
CHANGED
|
@@ -241,7 +241,7 @@ 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
246
|
var GlobalStyle = styled.createGlobalStyle(templateObject_1$U || (templateObject_1$U = __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
247
|
var templateObject_1$U;
|
|
@@ -369,11 +369,11 @@ var ContentCard = styled__default["default"](reactNotifications.Well)(templateOb
|
|
|
369
369
|
- To group related content
|
|
370
370
|
*/
|
|
371
371
|
var Card = function (props) { return jsxRuntime.jsx(ContentCard, __assign({}, props)); };
|
|
372
|
-
var ContainerCard = styled__default["default"](Card)(templateObject_2$
|
|
372
|
+
var ContainerCard = styled__default["default"](Card)(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), function (_a) {
|
|
373
373
|
var theme = _a.theme;
|
|
374
374
|
return theme.borderRadii.xl;
|
|
375
375
|
});
|
|
376
|
-
var templateObject_1$R, templateObject_2$
|
|
376
|
+
var templateObject_1$R, templateObject_2$j;
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
379
|
* Tags let users categorize content using a keyword.
|
|
@@ -625,12 +625,12 @@ var CampaignCardSkeleton = function () {
|
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
var flexCenter = styled.css(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
628
|
-
var flexColumnCenter = styled.css(templateObject_2$
|
|
628
|
+
var flexColumnCenter = styled.css(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n ", ";\n flex-direction: column;\n"], ["\n ", ";\n flex-direction: column;\n"])), flexCenter);
|
|
629
629
|
var flexStart = styled.css(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: ", ";\n"])), function (_a) {
|
|
630
630
|
var theme = _a.theme;
|
|
631
631
|
return (theme.rtl ? "flex-end" : "flex-start");
|
|
632
632
|
});
|
|
633
|
-
var cardStyle = styled.css(templateObject_4$
|
|
633
|
+
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
634
|
var theme = _a.theme;
|
|
635
635
|
return theme.borderRadii.lg;
|
|
636
636
|
}, function (_a) {
|
|
@@ -643,7 +643,7 @@ var cardStyle = styled.css(templateObject_4$8 || (templateObject_4$8 = __makeTem
|
|
|
643
643
|
var theme = _a.theme;
|
|
644
644
|
return theme.shadows.boxShadow(theme);
|
|
645
645
|
});
|
|
646
|
-
var templateObject_1$O, templateObject_2$
|
|
646
|
+
var templateObject_1$O, templateObject_2$i, templateObject_3$c, templateObject_4$9;
|
|
647
647
|
|
|
648
648
|
var getStatusIcon = function (status) {
|
|
649
649
|
switch (status) {
|
|
@@ -668,7 +668,7 @@ var getTypeDataIcon = function (type) {
|
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
670
|
var Wrapper$1 = styled__default["default"](Card)(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cardStyle);
|
|
671
|
-
var StyledTag$1 = styled__default["default"](Tag)(templateObject_2$
|
|
671
|
+
var StyledTag$1 = styled__default["default"](Tag)(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"], ["\n color: ", ";\n max-width: 75%;\n cursor: pointer;\n"])), function (_a) {
|
|
672
672
|
var theme = _a.theme;
|
|
673
673
|
return theme.palette.grey["700"];
|
|
674
674
|
});
|
|
@@ -685,7 +685,7 @@ var StyledTagNew$1 = styled__default["default"](Tag)(templateObject_3$b || (temp
|
|
|
685
685
|
var theme = _a.theme;
|
|
686
686
|
return theme.palette.white;
|
|
687
687
|
});
|
|
688
|
-
var StyledLabel$2 = styled__default["default"](Label)(templateObject_4$
|
|
688
|
+
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
689
|
var theme = _a.theme;
|
|
690
690
|
return theme.fontSizes.sm;
|
|
691
691
|
}, function (_a) {
|
|
@@ -729,7 +729,7 @@ var CampaignCard = function (props) {
|
|
|
729
729
|
}
|
|
730
730
|
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
731
|
};
|
|
732
|
-
var templateObject_1$N, templateObject_2$
|
|
732
|
+
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
733
|
|
|
734
734
|
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
735
|
var theme = _a.theme;
|
|
@@ -744,7 +744,7 @@ var Wrapper = styled__default["default"](Card)(templateObject_1$M || (templateOb
|
|
|
744
744
|
var theme = _a.theme;
|
|
745
745
|
return theme.shadows.boxShadow(theme);
|
|
746
746
|
});
|
|
747
|
-
var StyledTagNew = styled__default["default"](Tag)(templateObject_2$
|
|
747
|
+
var StyledTagNew = styled__default["default"](Tag)(templateObject_2$g || (templateObject_2$g = __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) {
|
|
748
748
|
var theme = _a.theme;
|
|
749
749
|
return theme.space.base * 6;
|
|
750
750
|
}, function (_a) {
|
|
@@ -764,7 +764,7 @@ var StyledLabel$1 = styled__default["default"](Label)(templateObject_3$a || (tem
|
|
|
764
764
|
var theme = _a.theme;
|
|
765
765
|
return theme.palette.grey["500"];
|
|
766
766
|
});
|
|
767
|
-
var StyledTitleLabel = styled__default["default"](Label)(templateObject_4$
|
|
767
|
+
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
768
|
var theme = _a.theme;
|
|
769
769
|
return theme.palette.blue["600"];
|
|
770
770
|
}, function (_a) {
|
|
@@ -792,7 +792,7 @@ var ProductCard = function (props) {
|
|
|
792
792
|
}
|
|
793
793
|
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
794
|
};
|
|
795
|
-
var templateObject_1$M, templateObject_2$
|
|
795
|
+
var templateObject_1$M, templateObject_2$g, templateObject_3$a, templateObject_4$7, templateObject_5$3, templateObject_6$1, templateObject_7, templateObject_8;
|
|
796
796
|
|
|
797
797
|
/**
|
|
798
798
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
@@ -1135,7 +1135,7 @@ var StyledCard$1 = styled__default["default"](Card)(templateObject_1$G || (templ
|
|
|
1135
1135
|
var theme = _a.theme;
|
|
1136
1136
|
return theme.palette.blue[300];
|
|
1137
1137
|
});
|
|
1138
|
-
var IconWrapper$1 = styled__default["default"].div(templateObject_2$
|
|
1138
|
+
var IconWrapper$1 = styled__default["default"].div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n margin: ", "px auto;\n"], ["\n margin: ", "px auto;\n"])), function (_a) {
|
|
1139
1139
|
var theme = _a.theme;
|
|
1140
1140
|
return theme.space.base;
|
|
1141
1141
|
});
|
|
@@ -1146,7 +1146,7 @@ var LabelWrapper = styled__default["default"](Label)(templateObject_3$9 || (temp
|
|
|
1146
1146
|
var theme = _a.theme;
|
|
1147
1147
|
return theme.palette.grey[600];
|
|
1148
1148
|
});
|
|
1149
|
-
var StyledLabel = styled__default["default"](Label)(templateObject_4$
|
|
1149
|
+
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
1150
|
var theme = _a.theme;
|
|
1151
1151
|
return theme.space.base;
|
|
1152
1152
|
});
|
|
@@ -1158,7 +1158,7 @@ var CheckboxCard = function (props) {
|
|
|
1158
1158
|
};
|
|
1159
1159
|
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
1160
|
};
|
|
1161
|
-
var templateObject_1$G, templateObject_2$
|
|
1161
|
+
var templateObject_1$G, templateObject_2$f, templateObject_3$9, templateObject_4$6;
|
|
1162
1162
|
|
|
1163
1163
|
var UgField = styled__default["default"](reactForms.Field)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([""], [""])));
|
|
1164
1164
|
/**
|
|
@@ -1174,6 +1174,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1174
1174
|
});
|
|
1175
1175
|
|
|
1176
1176
|
var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([""], [""])));
|
|
1177
|
+
var Hint = styled__default["default"](reactForms.Hint)(templateObject_2$e || (templateObject_2$e = __makeTemplateObject([""], [""])));
|
|
1177
1178
|
/**
|
|
1178
1179
|
* An Input lets users enter text into a field.
|
|
1179
1180
|
* <hr>
|
|
@@ -1182,7 +1183,7 @@ var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$E ||
|
|
|
1182
1183
|
* - To enter multiline text, use a Textarea
|
|
1183
1184
|
**/
|
|
1184
1185
|
var Input = function (props) { return jsxRuntime.jsx(UgInput, __assign({}, props)); };
|
|
1185
|
-
var templateObject_1$E;
|
|
1186
|
+
var templateObject_1$E, templateObject_2$e;
|
|
1186
1187
|
|
|
1187
1188
|
var UgMediaInput = styled__default["default"](reactForms.MediaInput)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([""], [""])));
|
|
1188
1189
|
/**
|
|
@@ -1248,7 +1249,7 @@ var StyledText = styled__default["default"](reactTypography.LG)(templateObject_3
|
|
|
1248
1249
|
var theme = _a.theme;
|
|
1249
1250
|
return theme.colors.primaryHue;
|
|
1250
1251
|
});
|
|
1251
|
-
var Circle = styled__default["default"].div(templateObject_4$
|
|
1252
|
+
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) {
|
|
1252
1253
|
var theme = _a.theme;
|
|
1253
1254
|
return theme.space.base * 6;
|
|
1254
1255
|
}, function (_a) {
|
|
@@ -1276,7 +1277,7 @@ var RadioCard = function (_a) {
|
|
|
1276
1277
|
var card = _a.card, icon = _a.icon, iconActive = _a.iconActive, props = __rest(_a, ["card", "icon", "iconActive"]);
|
|
1277
1278
|
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 })] })));
|
|
1278
1279
|
};
|
|
1279
|
-
var templateObject_1$B, templateObject_2$d, templateObject_3$8, templateObject_4$
|
|
1280
|
+
var templateObject_1$B, templateObject_2$d, templateObject_3$8, templateObject_4$5, templateObject_5$2;
|
|
1280
1281
|
|
|
1281
1282
|
var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([""], [""])));
|
|
1282
1283
|
/**
|
|
@@ -1884,7 +1885,7 @@ var StyledBody$4 = styled__default["default"](Modal.Body)(templateObject_3$6 ||
|
|
|
1884
1885
|
var theme = _a.theme;
|
|
1885
1886
|
return theme.palette.grey["100"];
|
|
1886
1887
|
});
|
|
1887
|
-
var StyledFooter = styled__default["default"](Modal.Footer)(templateObject_4$
|
|
1888
|
+
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) {
|
|
1888
1889
|
var theme = _a.theme;
|
|
1889
1890
|
return theme.space.base * 4;
|
|
1890
1891
|
}, function (_a) {
|
|
@@ -1898,7 +1899,7 @@ ModalFullScreen.Body = StyledBody$4;
|
|
|
1898
1899
|
ModalFullScreen.Footer = StyledFooter;
|
|
1899
1900
|
ModalFullScreen.Close = StyledModalClose;
|
|
1900
1901
|
ModalFullScreen.FooterItem = FooterItem;
|
|
1901
|
-
var templateObject_1$f, templateObject_2$8, templateObject_3$6, templateObject_4$
|
|
1902
|
+
var templateObject_1$f, templateObject_2$8, templateObject_3$6, templateObject_4$4, templateObject_5$1;
|
|
1902
1903
|
|
|
1903
1904
|
/**
|
|
1904
1905
|
* The Chrome component provides a high-level layout structure and sets a framework for navigating around Zendesk products.
|
|
@@ -1986,7 +1987,7 @@ var IconContainer = styled__default["default"].div(templateObject_3$5 || (templa
|
|
|
1986
1987
|
var theme = _a.theme;
|
|
1987
1988
|
return theme.space.sm;
|
|
1988
1989
|
});
|
|
1989
|
-
var MenuItemBody = styled__default["default"].div(templateObject_4$
|
|
1990
|
+
var MenuItemBody = styled__default["default"].div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), flexStart);
|
|
1990
1991
|
var MenuItem = function (_a) {
|
|
1991
1992
|
var children = _a.children, selectedItem = _a.selectedItem, content = _a.content, props = __rest(_a, ["children", "selectedItem", "content"]);
|
|
1992
1993
|
var isActive = selectedItem && selectedItem === props.value;
|
|
@@ -1995,7 +1996,7 @@ var MenuItem = function (_a) {
|
|
|
1995
1996
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
1996
1997
|
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));
|
|
1997
1998
|
};
|
|
1998
|
-
var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$
|
|
1999
|
+
var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$3;
|
|
1999
2000
|
|
|
2000
2001
|
var _path$3;
|
|
2001
2002
|
|
|
@@ -2078,7 +2079,7 @@ var StyledBody$2 = styled__default["default"].div(templateObject_3$4 || (templat
|
|
|
2078
2079
|
var theme = _a.theme;
|
|
2079
2080
|
return theme.space.base * 4;
|
|
2080
2081
|
});
|
|
2081
|
-
var StyledParagraph = styled__default["default"](Paragraph)(templateObject_4$
|
|
2082
|
+
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) {
|
|
2082
2083
|
var theme = _a.theme;
|
|
2083
2084
|
return theme.space.base * 4;
|
|
2084
2085
|
});
|
|
@@ -2098,7 +2099,7 @@ var HelpItem = function (props) {
|
|
|
2098
2099
|
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"] }))] })] }));
|
|
2099
2100
|
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 })) }));
|
|
2100
2101
|
};
|
|
2101
|
-
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$
|
|
2102
|
+
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$2, templateObject_5, templateObject_6;
|
|
2102
2103
|
|
|
2103
2104
|
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); }
|
|
2104
2105
|
|
|
@@ -2271,6 +2272,13 @@ var UgStepper = styled__default["default"](reactAccordions.Stepper)(templateObje
|
|
|
2271
2272
|
return props.activeIndex !== undefined &&
|
|
2272
2273
|
"\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 ");
|
|
2273
2274
|
});
|
|
2275
|
+
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) {
|
|
2276
|
+
var theme = _a.theme;
|
|
2277
|
+
return "".concat(theme.space.sm, " ").concat(theme.space.sm, " ").concat(theme.space.sm, " 24px");
|
|
2278
|
+
}, function (_a) {
|
|
2279
|
+
var theme = _a.theme;
|
|
2280
|
+
return theme.palette.grey[600];
|
|
2281
|
+
});
|
|
2274
2282
|
/**
|
|
2275
2283
|
* A Stepper guides users through steps of a task in sequential order.
|
|
2276
2284
|
|
|
@@ -2280,8 +2288,8 @@ var UgStepper = styled__default["default"](reactAccordions.Stepper)(templateObje
|
|
|
2280
2288
|
var Stepper = function (props) { return jsxRuntime.jsx(UgStepper, __assign({}, props)); };
|
|
2281
2289
|
Stepper.Step = UgStep;
|
|
2282
2290
|
Stepper.Label = UgLabel;
|
|
2283
|
-
Stepper.Content =
|
|
2284
|
-
var templateObject_1$4, templateObject_2$2, templateObject_3$1;
|
|
2291
|
+
Stepper.Content = UgContent;
|
|
2292
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$1, templateObject_4$1;
|
|
2285
2293
|
|
|
2286
2294
|
var UgTable = styled__default["default"](reactTables.Table)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
2287
2295
|
/**
|
|
@@ -2433,6 +2441,7 @@ exports.HeaderItem = HeaderItem;
|
|
|
2433
2441
|
exports.HeaderItemIcon = HeaderItemIcon;
|
|
2434
2442
|
exports.HeaderItemText = HeaderItemText;
|
|
2435
2443
|
exports.HeaderRow = HeaderRow;
|
|
2444
|
+
exports.Hint = Hint;
|
|
2436
2445
|
exports.Icon = Icon;
|
|
2437
2446
|
exports.IconButton = IconButton;
|
|
2438
2447
|
exports.Input = Input;
|
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputArgs } from "./_types";
|
|
3
|
+
declare const Hint: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
3
4
|
/**
|
|
4
5
|
* An Input lets users enter text into a field.
|
|
5
6
|
* <hr>
|
|
@@ -8,4 +9,4 @@ import { InputArgs } from "./_types";
|
|
|
8
9
|
* - To enter multiline text, use a Textarea
|
|
9
10
|
**/
|
|
10
11
|
declare const Input: (props: InputArgs) => JSX.Element;
|
|
11
|
-
export { Input };
|
|
12
|
+
export { Input, Hint };
|
|
@@ -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
|
};
|