@appquality/unguess-design-system 2.11.8 → 2.11.9

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.11.9 (Wed Sep 07 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(input-toggle): fix input padding + container props [#85](https://github.com/AppQuality/unguess-design-system/pull/85) ([@marcbon](https://github.com/marcbon))
6
+
7
+ #### Authors: 1
8
+
9
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
10
+
11
+ ---
12
+
1
13
  # v2.11.8 (Wed Sep 07 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -1534,7 +1534,10 @@ var SvgInputToggleEdit = function SvgInputToggleEdit(props) {
1534
1534
 
1535
1535
  var Wrapper = styled__default["default"].div(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
1536
1536
  var InputContainer = styled__default["default"].div(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n"])));
1537
- var StyledInput = styled__default["default"](Input)(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n border-radius: 0;\n border-top: 0;\n border-left: 0;\n border-right: 0;\n border-bottom-width: 2px;\n width: 100%;\n\n &[readonly] {\n background-color: transparent;\n border-color: transparent;\n transition: border-color 0s;\n }\n\n &:focus {\n box-shadow: none;\n transition: border-color 0.2s ease-in-out 0.1s;\n }\n"], ["\n border-radius: 0;\n border-top: 0;\n border-left: 0;\n border-right: 0;\n border-bottom-width: 2px;\n width: 100%;\n\n &[readonly] {\n background-color: transparent;\n border-color: transparent;\n transition: border-color 0s;\n }\n\n &:focus {\n box-shadow: none;\n transition: border-color 0.2s ease-in-out 0.1s;\n }\n"])));
1537
+ var StyledInput = styled__default["default"](Input)(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n border-radius: 0;\n border-top: 0;\n border-left: 0;\n border-right: 0;\n border-bottom-width: 2px;\n padding: ", ";\n width: 100%;\n\n &[readonly] {\n background-color: transparent;\n border-color: transparent;\n transition: border-color 0s;\n }\n\n &:focus {\n box-shadow: none;\n transition: border-color 0.2s ease-in-out 0.1s;\n }\n"], ["\n border-radius: 0;\n border-top: 0;\n border-left: 0;\n border-right: 0;\n border-bottom-width: 2px;\n padding: ", ";\n width: 100%;\n\n &[readonly] {\n background-color: transparent;\n border-color: transparent;\n transition: border-color 0s;\n }\n\n &:focus {\n box-shadow: none;\n transition: border-color 0.2s ease-in-out 0.1s;\n }\n"])), function (_a) {
1538
+ var theme = _a.theme;
1539
+ return "".concat(theme.space.xs, " ").concat(theme.space.xxs);
1540
+ });
1538
1541
  var StyledEditIcon = styled__default["default"](SvgInputToggleEdit)(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), function (_a) {
1539
1542
  var theme = _a.theme;
1540
1543
  return theme.space.sm;
@@ -1571,7 +1574,7 @@ var InputToggle = function (props) {
1571
1574
  setIsEditing(false);
1572
1575
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
1573
1576
  };
1574
- return (jsxRuntime.jsxs(Wrapper, __assign({ onClick: onClick, onKeyDown: onKeyDown, onBlur: onBlur }, { children: [props.label && (jsxRuntime.jsxs(StyledLabel, __assign({ isRegular: true }, (isEditing
1577
+ return (jsxRuntime.jsxs(Wrapper, __assign({ onClick: onClick, onKeyDown: onKeyDown, onBlur: onBlur }, props, { children: [props.label && (jsxRuntime.jsxs(StyledLabel, __assign({ isRegular: true }, (isEditing
1575
1578
  ? { style: { opacity: 1 } }
1576
1579
  : { style: { opacity: 0 } }), { children: [props.label, props.label && props.required ? (jsxRuntime.jsx(Span, __assign({ style: { color: theme.palette.red[600] } }, { children: "*" }))) : null] }))), jsxRuntime.jsxs(InputContainer, { children: [jsxRuntime.jsx(StyledInput, __assign({ ref: inputRef }, props, (isEditing ? { readOnly: false } : { readOnly: true }), (props.size ? { style: { fontSize: "".concat(props.size, "px") } } : {}))), !isEditing && jsxRuntime.jsx(StyledEditIcon, {})] }), props.message && (jsxRuntime.jsx(StyledMessage, __assign({ validation: props.validation }, (props.message
1577
1580
  ? { style: { opacity: 1 } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.11.8",
3
+ "version": "2.11.9",
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",