@appquality/unguess-design-system 2.11.15 → 2.11.18

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.11.18 (Tue Sep 13 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - Merge branch 'master' of github.com:AppQuality/unguess-design-system ([@cannarocks](https://github.com/cannarocks))
6
+ - fix(input-toggle): show edit icon always when isn't editing ([@cannarocks](https://github.com/cannarocks))
7
+
8
+ #### Authors: 1
9
+
10
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ ---
13
+
14
+ # v2.11.17 (Tue Sep 13 2022)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - fix(cards): fix cursor hover for all type of cards [#90](https://github.com/AppQuality/unguess-design-system/pull/90) ([@marcbon](https://github.com/marcbon))
19
+
20
+ #### Authors: 1
21
+
22
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
23
+
24
+ ---
25
+
26
+ # v2.11.16 (Tue Sep 13 2022)
27
+
28
+ #### ⚠️ Pushed to `master`
29
+
30
+ - Merge branch 'master' of github.com:AppQuality/unguess-design-system ([@cannarocks](https://github.com/cannarocks))
31
+ - refactor(toggle-input): update text size prop ([@cannarocks](https://github.com/cannarocks))
32
+
33
+ #### Authors: 1
34
+
35
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
36
+
37
+ ---
38
+
1
39
  # v2.11.15 (Mon Sep 12 2022)
2
40
 
3
41
  #### ⚠️ Pushed to `master`
package/build/index.js CHANGED
@@ -406,7 +406,7 @@ Used for this:
406
406
  **/
407
407
  var SplitButton = React.forwardRef(function (props, ref) { return jsxRuntime.jsx(reactButtons.SplitButton, __assign({ ref: ref }, props)); });
408
408
 
409
- var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$1d || (templateObject_1$1d = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n ", "\n"])), function (_a) {
409
+ var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_1$1d || (templateObject_1$1d = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: pointer;\n\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: pointer;\n\n ", "\n"])), function (_a) {
410
410
  var theme = _a.theme;
411
411
  return theme.borderRadii.lg;
412
412
  }, function (_a) {
@@ -427,7 +427,7 @@ var UgCard = styled__default["default"](reactNotifications.Well)(templateObject_
427
427
  - To group related content
428
428
  */
429
429
  var Card = function (props) { return jsxRuntime.jsx(UgCard, __assign({}, props)); };
430
- var UgContainerCard = styled__default["default"](reactNotifications.Well)(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"])), function (_a) {
430
+ var UgContainerCard = styled__default["default"](reactNotifications.Well)(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: default;\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n cursor: default;\n\n @media (max-width: ", ") {\n padding: ", ";\n }\n"])), function (_a) {
431
431
  var theme = _a.theme;
432
432
  return theme.borderRadii.xl;
433
433
  }, function (_a) {
@@ -753,7 +753,7 @@ var Container$1 = styled__default["default"].div(templateObject_3$i || (template
753
753
  var CardFooter = function (props) { return (jsxRuntime.jsxs(Footer$2, { children: [!props.noDivider && jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(Container$1, __assign({}, props, { children: props.children }))] })); };
754
754
  var templateObject_1$18, templateObject_2$t, templateObject_3$i;
755
755
 
756
- var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$17 || (templateObject_1$17 = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n ", "\n\n ", "\n"])), function (_a) {
756
+ var UgContentCard = styled__default["default"](reactNotifications.Well)(templateObject_1$17 || (templateObject_1$17 = __makeTemplateObject(["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n cursor: pointer;\n\n ", "\n\n ", "\n"], ["\n border-radius: ", ";\n padding: ", ";\n border: 1px solid ", ";\n height: 100%;\n display: flex;\n flex-direction: column;\n cursor: pointer;\n\n ", "\n\n ", "\n"])), function (_a) {
757
757
  var theme = _a.theme;
758
758
  return theme.borderRadii.lg;
759
759
  }, function (_a) {
@@ -1547,7 +1547,7 @@ var StyledLabel = styled__default["default"](Label)(templateObject_2$k || (templ
1547
1547
  return "".concat(theme.space.xxs, " ").concat(theme.space.xxs, " 0");
1548
1548
  });
1549
1549
  var StyledText$1 = styled__default["default"](XL)(templateObject_3$e || (templateObject_3$e = __makeTemplateObject([""], [""])));
1550
- var Wrapper = styled__default["default"].div(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n ", " {\n border-bottom: 2px solid transparent;\n padding: ", ";\n display: flex;\n align-items: center;\n\n svg {\n opacity: 0;\n margin-left: ", ";\n }\n\n &:hover {\n svg {\n opacity: 1;\n }\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n\n ", " {\n border-bottom: 2px solid transparent;\n padding: ", ";\n display: flex;\n align-items: center;\n\n svg {\n opacity: 0;\n margin-left: ", ";\n }\n\n &:hover {\n svg {\n opacity: 1;\n }\n }\n }\n"])), StyledText$1, function (_a) {
1550
+ var Wrapper = styled__default["default"].div(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n\n ", " {\n border-bottom: 2px solid transparent;\n padding: ", ";\n display: flex;\n align-items: center;\n\n svg {\n margin-left: ", ";\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n\n ", " {\n border-bottom: 2px solid transparent;\n padding: ", ";\n display: flex;\n align-items: center;\n\n svg {\n margin-left: ", ";\n }\n }\n"])), StyledText$1, function (_a) {
1551
1551
  var theme = _a.theme;
1552
1552
  return "".concat(theme.space.xs, " ").concat(theme.space.xxs);
1553
1553
  }, function (_a) {
@@ -1579,7 +1579,7 @@ var InputToggle = function (_a) {
1579
1579
  return (jsxRuntime.jsx(ToggleContext.Provider, __assign({ value: context }, { children: jsxRuntime.jsx(Wrapper, __assign({ ref: container, onClick: handleClick, onBlur: function () { return setIsEditing(false); } }, props)) })));
1580
1580
  };
1581
1581
  var InputItem = function (props) {
1582
- var _a = props.placeholder, placeholder = _a === void 0 ? "Insert a value" : _a, value = props.value, style = props.style, _b = props.size, size = _b === void 0 ? 22 : _b;
1582
+ var _a = props.placeholder, placeholder = _a === void 0 ? "Insert a value" : _a, value = props.value, style = props.style, _b = props.textSize, textSize = _b === void 0 ? '22px' : _b;
1583
1583
  var _c = React.useState(), input = _c[0], setInput = _c[1];
1584
1584
  var isEditing = React.useContext(ToggleContext).isEditing;
1585
1585
  React.useEffect(function () {
@@ -1587,7 +1587,7 @@ var InputItem = function (props) {
1587
1587
  input.focus();
1588
1588
  }
1589
1589
  }, [isEditing, input]);
1590
- return isEditing ? (jsxRuntime.jsx(StyledInput, __assign({ ref: setInput }, props, { style: __assign({ fontSize: "".concat(size, "px"), fontWeight: 500 }, style) }))) : (jsxRuntime.jsxs(StyledText$1, __assign({ isBold: true, style: style }, { children: [!value ? placeholder : value, " ", jsxRuntime.jsx(SvgNotesStroke, {})] })));
1590
+ return isEditing ? (jsxRuntime.jsx(StyledInput, __assign({ ref: setInput }, props, { style: __assign({ fontSize: textSize, fontWeight: 500 }, style) }))) : (jsxRuntime.jsxs(StyledText$1, __assign({ isBold: true, style: __assign({ fontSize: textSize, fontWeight: 500 }, style) }, { children: [!value ? placeholder : value, " ", jsxRuntime.jsx(SvgNotesStroke, {})] })));
1591
1591
  };
1592
1592
  InputToggle.Item = InputItem;
1593
1593
  InputToggle.Label = StyledLabel;
@@ -5,7 +5,7 @@ export interface InputToggleArgs extends IInputProps {
5
5
  /** Applies validation state styling */
6
6
  validation?: 'success' | 'warning' | 'error';
7
7
  /** Sets input size */
8
- size?: number;
8
+ textSize?: string;
9
9
  /** Sets the initial focus */
10
10
  isFocused?: boolean;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.11.15",
3
+ "version": "2.11.18",
4
4
  "dependencies": {
5
5
  "@tiptap/extension-bubble-menu": "^2.0.0-beta.61",
6
6
  "@tiptap/extension-character-count": "^2.0.0-beta.31",