@appquality/unguess-design-system 2.10.10 → 2.10.13
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,39 @@
|
|
|
1
|
+
# v2.10.13 (Thu May 05 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- feat(hint): add hint component ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v2.10.12 (Thu May 05 2022)
|
|
14
|
+
|
|
15
|
+
#### ⚠️ Pushed to `master`
|
|
16
|
+
|
|
17
|
+
- fix(checkbox-card): fix toggle callback ([@cannarocks](https://github.com/cannarocks))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v2.10.11 (Thu May 05 2022)
|
|
26
|
+
|
|
27
|
+
#### ⚠️ Pushed to `master`
|
|
28
|
+
|
|
29
|
+
- fix(checkbox-card): add onToggle callback ([@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.10 (Thu May 05 2022)
|
|
2
38
|
|
|
3
39
|
#### ⚠️ Pushed to `master`
|
package/build/index.js
CHANGED
|
@@ -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,7 +625,7 @@ 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");
|
|
@@ -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$8;
|
|
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
|
});
|
|
@@ -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$7, 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) {
|
|
@@ -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$6, 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
|
});
|
|
@@ -1154,10 +1154,11 @@ var CheckboxCard = function (props) {
|
|
|
1154
1154
|
var _a = React.useState(props.defaultChecked || false), checked = _a[0], setChecked = _a[1];
|
|
1155
1155
|
var handleToggle = function () {
|
|
1156
1156
|
setChecked(!checked);
|
|
1157
|
+
props.onToggle && props.onToggle(!checked);
|
|
1157
1158
|
};
|
|
1158
|
-
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,
|
|
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 })) }))] })));
|
|
1159
1160
|
};
|
|
1160
|
-
var templateObject_1$G, templateObject_2$
|
|
1161
|
+
var templateObject_1$G, templateObject_2$f, templateObject_3$9, templateObject_4$5;
|
|
1161
1162
|
|
|
1162
1163
|
var UgField = styled__default["default"](reactForms.Field)(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([""], [""])));
|
|
1163
1164
|
/**
|
|
@@ -1173,6 +1174,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1173
1174
|
});
|
|
1174
1175
|
|
|
1175
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([""], [""])));
|
|
1176
1178
|
/**
|
|
1177
1179
|
* An Input lets users enter text into a field.
|
|
1178
1180
|
* <hr>
|
|
@@ -1181,7 +1183,7 @@ var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$E ||
|
|
|
1181
1183
|
* - To enter multiline text, use a Textarea
|
|
1182
1184
|
**/
|
|
1183
1185
|
var Input = function (props) { return jsxRuntime.jsx(UgInput, __assign({}, props)); };
|
|
1184
|
-
var templateObject_1$E;
|
|
1186
|
+
var templateObject_1$E, templateObject_2$e;
|
|
1185
1187
|
|
|
1186
1188
|
var UgMediaInput = styled__default["default"](reactForms.MediaInput)(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([""], [""])));
|
|
1187
1189
|
/**
|
|
@@ -2432,6 +2434,7 @@ exports.HeaderItem = HeaderItem;
|
|
|
2432
2434
|
exports.HeaderItemIcon = HeaderItemIcon;
|
|
2433
2435
|
exports.HeaderItemText = HeaderItemText;
|
|
2434
2436
|
exports.HeaderRow = HeaderRow;
|
|
2437
|
+
exports.Hint = Hint;
|
|
2435
2438
|
exports.Icon = Icon;
|
|
2436
2439
|
exports.IconButton = IconButton;
|
|
2437
2440
|
exports.Input = Input;
|
|
@@ -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 };
|