@appquality/unguess-design-system 2.10.41 → 2.10.42

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,15 @@
1
+ # v2.10.42 (Mon May 30 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(buttons): fix close positioning + fix login button isPill + fix buttons themeColor [#64](https://github.com/AppQuality/unguess-design-system/pull/64) ([@marcbon](https://github.com/marcbon))
6
+
7
+ #### Authors: 1
8
+
9
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
10
+
11
+ ---
12
+
1
13
  # v2.10.41 (Fri May 27 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -335,7 +335,9 @@ var getThemeStyle = function (props) {
335
335
  var themeColor = props.themeColor;
336
336
  if (themeColor) {
337
337
  customTheme = __assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primaryHue: themeColor }) });
338
+ return customTheme;
338
339
  }
340
+ return theme;
339
341
  };
340
342
  var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$Y || (templateObject_1$Y = __makeTemplateObject([""], [""])));
341
343
  /**
@@ -348,10 +350,8 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
348
350
  */
349
351
  var Button = function (props) {
350
352
  if (props.themeColor) {
351
- getThemeStyle(props);
352
- UgButton.defaultProps = {
353
- theme: customTheme
354
- };
353
+ var currentTheme = getThemeStyle(props);
354
+ return jsxRuntime.jsx(UgButton, __assign({}, props, { theme: currentTheme }));
355
355
  }
356
356
  return jsxRuntime.jsx(UgButton, __assign({}, props));
357
357
  };
@@ -971,7 +971,7 @@ var InfoCard = function (props) {
971
971
  };
972
972
  var templateObject_1$Q, templateObject_2$k, templateObject_3$d, templateObject_4$9, templateObject_5$4, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
973
973
 
974
- var UgClose = styled__default["default"](reactNotifications.Close)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n position: relative;\n top: unset;\n left: unset;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n position: relative;\n top: unset;\n left: unset;\n"])), function (_a) {
974
+ var UgClose = styled__default["default"](reactNotifications.Close)(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: ", ";\n height: ", ";\n"])), function (_a) {
975
975
  var theme = _a.theme;
976
976
  return theme.space.xl;
977
977
  }, function (_a) {
@@ -1995,7 +1995,7 @@ var LoginForm = function (props) { return (jsxRuntime.jsxs(jsxRuntime.Fragment,
1995
1995
  ? true
1996
1996
  : isSubmitting
1997
1997
  ? true
1998
- : false, isPrimary: true, themeColor: theme.palette.water[600], style: { marginBottom: theme.space.md } }, { children: props.buttonText })), status && (jsxRuntime.jsx("div", __assign({ style: { textAlign: "center" } }, { children: jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: status.message })) })))] })));
1998
+ : false, isPrimary: true, isPill: true, themeColor: theme.palette.water[600], style: { marginBottom: theme.space.md } }, { children: props.buttonText })), status && (jsxRuntime.jsx("div", __assign({ style: { textAlign: "center" } }, { children: jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: status.message })) })))] })));
1999
1999
  } }))] })), props.onBackClick && (jsxRuntime.jsxs(Button, __assign({ onClick: props.onBackClick, isBasic: true, style: { marginTop: theme.space.md } }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgChevronLeftStroke, {}) }), props.backToLabel || "Back to UNGUESS"] })))] })); };
2000
2000
 
2001
2001
  var ugModalBody = styled__default["default"](reactModals.Body)(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.10.41",
3
+ "version": "2.10.42",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",