@appquality/unguess-design-system 2.8.33 → 2.8.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ # v2.8.36 (Thu Apr 28 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - fix(campaignscard): pillIcon cannot be used as JSX component ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
13
+ # v2.8.35 (Wed Apr 27 2022)
14
+
15
+ #### ⚠️ Pushed to `master`
16
+
17
+ - fix(counter): only if undefined the counter value MUST disappear ([@cannarocks](https://github.com/cannarocks))
18
+
19
+ #### Authors: 1
20
+
21
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
22
+
23
+ ---
24
+
25
+ # v2.8.34 (Tue Apr 26 2022)
26
+
27
+ #### 🐛 Bug Fix
28
+
29
+ - Cup 631 typography update [#43](https://github.com/AppQuality/unguess-design-system/pull/43) ([@cicababba](https://github.com/cicababba) [@cannarocks](https://github.com/cannarocks))
30
+
31
+ #### Authors: 2
32
+
33
+ - cicababba ([@cicababba](https://github.com/cicababba))
34
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
35
+
36
+ ---
37
+
1
38
  # v2.8.33 (Tue Apr 26 2022)
2
39
 
3
40
  #### ⚠️ Pushed to `master`
package/build/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var styled = require('styled-components');
6
+ require('@zendeskgarden/css-bedrock');
6
7
  var reactTheming = require('@zendeskgarden/react-theming');
7
8
  var jsxRuntime = require('react/jsx-runtime');
8
9
  var reactAccordions = require('@zendeskgarden/react-accordions');
@@ -233,9 +234,9 @@ var gradients = {
233
234
  var _a, _b, _c, _d, _e, _f;
234
235
  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" }) }) });
235
236
 
236
- 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' }), 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 }) });
237
+ 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 }) });
237
238
 
238
- var GlobalStyle = styled.createGlobalStyle(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\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"], ["\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);
239
+ var GlobalStyle = styled.createGlobalStyle(templateObject_1$Q || (templateObject_1$Q = __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);
239
240
  var templateObject_1$Q;
240
241
 
241
242
  /**
@@ -605,18 +606,18 @@ var getStatusIcon = function (status) {
605
606
  return SvgOnGoingStatusRoundIcon;
606
607
  case "INCOMING":
607
608
  return SvgArrivalStatusRoundIcon;
609
+ default:
610
+ return SvgOnGoingStatusRoundIcon;
608
611
  }
609
612
  };
610
- var getTypeData = function (type) {
613
+ var getTypeDataIcon = function (type) {
611
614
  switch (type) {
612
615
  case "EXPERIENTIAL":
613
- return {
614
- pillIcon: SvgRegressionTestRoundIcon,
615
- };
616
+ return SvgRegressionTestRoundIcon;
616
617
  case "FUNCTIONAL":
617
- return {
618
- pillIcon: SvgFunctionalTestRoundIcon,
619
- };
618
+ return SvgFunctionalTestRoundIcon;
619
+ default:
620
+ return SvgFunctionalTestRoundIcon;
620
621
  }
621
622
  };
622
623
  var Wrapper$1 = styled__default["default"](Card)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n height: 100%;\n\n &:hover {\n box-shadow: ", ";\n }\n\n cursor: pointer;\n"])), function (_a) {
@@ -682,8 +683,7 @@ var CardFooter$1 = styled__default["default"].div(templateObject_9 || (templateO
682
683
  var CampaignCard = function (props) {
683
684
  var isNew = props.isNew, date = props.date, projectTitle = props.projectTitle, campaignTitle = props.campaignTitle, status = props.status, type = props.type, labelNew = props.labelNew;
684
685
  var StatusIcon = getStatusIcon(status !== null && status !== void 0 ? status : "PROGRESS");
685
- var typeData = getTypeData(type);
686
- var PillIcon = typeData === null || typeData === void 0 ? void 0 : typeData.pillIcon;
686
+ var PillIcon = getTypeDataIcon(type);
687
687
  var projectTitleCut = projectTitle;
688
688
  if (projectTitle.length > 42) {
689
689
  projectTitleCut = "".concat(projectTitle.substring(0, 39), "...");
@@ -692,7 +692,7 @@ var CampaignCard = function (props) {
692
692
  if (campaignTitle.length > 29) {
693
693
  campaignTitleCut = "".concat(campaignTitle.substring(0, 26), "...");
694
694
  }
695
- return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [typeData && (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, {})] })] })));
695
+ return props.isLoading ? (jsxRuntime.jsx(CampaignCardSkeleton, {})) : (jsxRuntime.jsxs(Wrapper$1, __assign({}, props, { children: [jsxRuntime.jsxs(CardHeader, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: date })), isNew && (jsxRuntime.jsx(StyledTagNew$1, __assign({ hue: theme.palette.fuschia["600"], isPill: true, size: "medium", title: labelNew ? labelNew : "New!" }, { children: labelNew ? labelNew : "New!" })))] }), jsxRuntime.jsxs(CardBody$1, { children: [jsxRuntime.jsx(StyledLabel$1, __assign({ isRegular: true }, { children: projectTitleCut })), jsxRuntime.jsx(StyledTitleLabel$1, __assign({ isRegular: true }, { children: campaignTitleCut }))] }), jsxRuntime.jsx(Divider$1, {}), jsxRuntime.jsxs(CardFooter$1, { children: [props.pillText && (jsxRuntime.jsxs(StyledTag$1, __assign({ size: "large", isPill: true, isRegular: true, hue: theme.palette.grey[100] }, { children: [jsxRuntime.jsx(Tag.Avatar, { children: jsxRuntime.jsx(PillIcon, {}) }), props.pillText] }))), jsxRuntime.jsx(StatusIcon, {})] })] })));
696
696
  };
697
697
  var templateObject_1$L, templateObject_2$d, templateObject_3$8, templateObject_4$4, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8$1, templateObject_9;
698
698
 
@@ -1003,7 +1003,7 @@ var StyledTag = styled__default["default"](Tag)(templateObject_1$J || (templateO
1003
1003
  */
1004
1004
  var Counter = function (props) {
1005
1005
  var status = props.status, counter = props.counter;
1006
- return (jsxRuntime.jsxs(StyledTag, __assign({}, props, { size: props.size || "large" }, { children: [jsxRuntime.jsx(StyledTag.Avatar, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [status === "completed" && jsxRuntime.jsx(SvgCampaignCompleted, {}), status === "progress" && jsxRuntime.jsx(SvgCampaignProgress, {}), status === "incoming" && jsxRuntime.jsx(SvgCampaignIncoming, {}), status === "functional" && jsxRuntime.jsx(SvgCampaignFunctional, {}), status === "experiential" && jsxRuntime.jsx(SvgCampaignExperiential, {})] }) }), props.children, counter !== undefined && counter > 0 && jsxRuntime.jsx("span", { children: counter })] })));
1006
+ return (jsxRuntime.jsxs(StyledTag, __assign({}, props, { size: props.size || "large" }, { children: [jsxRuntime.jsx(StyledTag.Avatar, { children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [status === "completed" && jsxRuntime.jsx(SvgCampaignCompleted, {}), status === "progress" && jsxRuntime.jsx(SvgCampaignProgress, {}), status === "incoming" && jsxRuntime.jsx(SvgCampaignIncoming, {}), status === "functional" && jsxRuntime.jsx(SvgCampaignFunctional, {}), status === "experiential" && jsxRuntime.jsx(SvgCampaignExperiential, {})] }) }), props.children, counter !== undefined && jsxRuntime.jsx("span", { children: counter.toString() })] })));
1007
1007
  };
1008
1008
  Counter.Avatar = StyledTag.Avatar;
1009
1009
  var templateObject_1$J;
@@ -1674,9 +1674,9 @@ var Title = function (props) { return jsxRuntime.jsx(reactNotifications.Title, _
1674
1674
  /**
1675
1675
  * Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
1676
1676
  */
1677
- var SM = function (props) { return jsxRuntime.jsx(reactTypography.SM, __assign({}, props)); };
1678
- var MD = function (props) { return jsxRuntime.jsx(reactTypography.MD, __assign({}, props)); };
1679
- var LG = function (props) { return jsxRuntime.jsx(reactTypography.LG, __assign({}, props)); };
1677
+ var SM = function (props) { return jsxRuntime.jsx(reactTypography.SM, __assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.sm } : {} }, props)); };
1678
+ var MD = function (props) { return jsxRuntime.jsx(reactTypography.MD, __assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.md } : {} }, props)); };
1679
+ var LG = function (props) { return jsxRuntime.jsx(reactTypography.LG, __assign({ style: props.isMonospace ? { lineHeight: theme.lineHeights.lg } : {} }, props)); };
1680
1680
  var XL = function (props) { return jsxRuntime.jsx(reactTypography.XL, __assign({}, props)); };
1681
1681
  var XXL = function (props) { return jsxRuntime.jsx(reactTypography.XXL, __assign({}, props)); };
1682
1682
  var XXXL = function (props) { return jsxRuntime.jsx(reactTypography.XXXL, __assign({}, props)); };
@@ -1,2 +1,3 @@
1
+ import "@zendeskgarden/css-bedrock";
1
2
  declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
2
3
  export { GlobalStyle };
@@ -155,6 +155,17 @@ declare const theme: {
155
155
  system: string;
156
156
  mono: string;
157
157
  };
158
+ fontWeights: {
159
+ semibold: number;
160
+ thin: number;
161
+ extralight: number;
162
+ light: number;
163
+ regular: number;
164
+ medium: number;
165
+ bold: number;
166
+ extrabold: number;
167
+ black: number;
168
+ };
158
169
  gradients: {
159
170
  horizontal: string;
160
171
  dark: string;
@@ -205,17 +216,6 @@ declare const theme: {
205
216
  xxl: string;
206
217
  xxxl: string;
207
218
  };
208
- fontWeights: {
209
- thin: number;
210
- extralight: number;
211
- light: number;
212
- regular: number;
213
- medium: number;
214
- semibold: number;
215
- bold: number;
216
- extrabold: number;
217
- black: number;
218
- };
219
219
  iconSizes: {
220
220
  sm: string;
221
221
  md: string;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ export declare const AnchorTag: Story<any>;
4
+ declare const _default: ComponentMeta<(props: import("../_types").MDArgs) => JSX.Element>;
5
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.8.33",
3
+ "version": "2.8.36",
4
4
  "dependencies": {
5
+ "@zendeskgarden/css-bedrock": "^9.0.0",
5
6
  "@zendeskgarden/react-accordions": "^8.49.0",
6
7
  "@zendeskgarden/react-avatars": "^8.49.0",
7
8
  "@zendeskgarden/react-breadcrumbs": "^8.49.0",