@appquality/unguess-design-system 2.8.30 → 2.8.33

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,41 @@
1
+ # v2.8.33 (Tue Apr 26 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - fix(avatar): remove background if avatarType is Image ([@cannarocks](https://github.com/cannarocks))
6
+ - fix(navigationfootericon): add padding to UNGUESS footer icon ([@cannarocks](https://github.com/cannarocks))
7
+
8
+ #### Authors: 1
9
+
10
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ ---
13
+
14
+ # v2.8.32 (Tue Apr 26 2022)
15
+
16
+ #### ⚠️ Pushed to `master`
17
+
18
+ - Merge branch 'master' of github.com:AppQuality/unguess-design-system ([@cannarocks](https://github.com/cannarocks))
19
+ - fix(counter): fix 0 value issue ([@cannarocks](https://github.com/cannarocks))
20
+
21
+ #### Authors: 1
22
+
23
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
24
+
25
+ ---
26
+
27
+ # v2.8.31 (Tue Apr 26 2022)
28
+
29
+ #### ⚠️ Pushed to `master`
30
+
31
+ - feat(counter): remove counter required props ([@cannarocks](https://github.com/cannarocks))
32
+
33
+ #### Authors: 1
34
+
35
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
36
+
37
+ ---
38
+
1
39
  # v2.8.30 (Fri Apr 22 2022)
2
40
 
3
41
  #### ⚠️ Pushed to `master`
package/build/index.js CHANGED
@@ -253,7 +253,9 @@ Accordion.Panel = reactAccordions.Accordion.Panel;
253
253
 
254
254
  // import useWindowSize from "../../hooks/useWindowSize";
255
255
  var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
256
- return "\n background: ".concat(props.backgroundColor || theme.gradients.dark, ";\n ");
256
+ return props.avatarType &&
257
+ props.avatarType !== "image" &&
258
+ "background: ".concat(props.backgroundColor || theme.gradients.dark, ";");
257
259
  });
258
260
  /**
259
261
  * An Avatar is a visual way to represent a person or brand in the product. They can display text, icons, or images.
@@ -1000,8 +1002,8 @@ var StyledTag = styled__default["default"](Tag)(templateObject_1$J || (templateO
1000
1002
  * Counter let users categorize content using a keyword.
1001
1003
  */
1002
1004
  var Counter = function (props) {
1003
- var status = props.status;
1004
- 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, props.counter !== undefined && jsxRuntime.jsx("span", { children: props.counter })] })));
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 })] })));
1005
1007
  };
1006
1008
  Counter.Avatar = StyledTag.Avatar;
1007
1009
  var templateObject_1$J;
@@ -1641,7 +1643,7 @@ var Sidebar = function (props) {
1641
1643
  setNav(route);
1642
1644
  };
1643
1645
  return props.isLoading ? jsxRuntime.jsx(LoadingSidebar, {}) : (jsxRuntime.jsxs(Nav, __assign({}, props, { children: [jsxRuntime.jsx(NavToggle, { onClick: toggleNav, isExpanded: props.isExpanded }), props.tokens && (jsxRuntime.jsx(NavItem, __assign({ hasLogo: true, isExpanded: props.isExpanded, style: { pointerEvents: "none", paddingTop: 0 } }, { children: jsxRuntime.jsx(Card, __assign({ style: { padding: theme.space.sm, width: "70%" } }, { children: jsxRuntime.jsxs(TokenContainer, { children: [jsxRuntime.jsx(SvgToken, { width: 32 }), jsxRuntime.jsx(Span, __assign({ isBold: true, style: { marginLeft: theme.space.xs } }, { children: props.tokens + " " + (props.tokensLabel || "tokens") }))] }) })) }))), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, isCurrent: nav === "home", onClick: function () { return navigate("home"); } }, { children: [jsxRuntime.jsx(NavItemIcon, __assign({ isStyled: true }, { children: nav === "home" ? jsxRuntime.jsx(SvgHomeFillStyled, {}) : jsxRuntime.jsx(SvgHomeFill, {}) })), jsxRuntime.jsx(NavItemText, { children: props.homeItemLabel || "My Campaigns" })] })), jsxRuntime.jsx(NavDivider, __assign({ isExpanded: props.isExpanded }, { children: props.dividerLabel || "" })), jsxRuntime.jsx(ScrollingContainer, { children: props.projects &&
1644
- props.projects.map(function (project) { return (jsxRuntime.jsxs(NavItemProject, __assign({ isExpanded: props.isExpanded, isCurrent: nav === project.id, onClick: function () { return navigate(project.id); } }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id)); }) }), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none" } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
1646
+ props.projects.map(function (project) { return (jsxRuntime.jsxs(NavItemProject, __assign({ isExpanded: props.isExpanded, isCurrent: nav === project.id, onClick: function () { return navigate(project.id); } }, { children: [jsxRuntime.jsx(NavItemProject.Title, { title: project.title, children: project.title }), jsxRuntime.jsx(NavItemProject.SubTitle, { children: project.campaigns })] }), project.id)); }) }), jsxRuntime.jsxs(NavItem, __assign({ isExpanded: props.isExpanded, hasBrandmark: true, title: "Be smart from the start", style: { pointerEvents: "none", paddingBottom: theme.space.md } }, { children: [jsxRuntime.jsx(NavItemIcon, { children: jsxRuntime.jsx(Logo, { type: "icon", size: 150 }) }), jsxRuntime.jsx(NavItemText, { children: "UNGUESS" })] }))] })));
1645
1647
  };
1646
1648
  var templateObject_1$i, templateObject_2$8;
1647
1649
 
@@ -1,5 +1,5 @@
1
1
  import { TagArgs } from "../tags/_types";
2
2
  export interface CounterArgs extends TagArgs {
3
3
  status: "progress" | "completed" | "incoming" | "functional" | "experiential";
4
- counter: number;
4
+ counter?: number;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.8.30",
3
+ "version": "2.8.33",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/react-accordions": "^8.49.0",
6
6
  "@zendeskgarden/react-avatars": "^8.49.0",