@pushwoosh/dumb-components 2.7.0 → 2.7.1

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.
@@ -35,7 +35,9 @@ export const SlateEditable = ({
35
35
  return renderElement(props, onDelete);
36
36
  });
37
37
  return _jsx(EditableStyled, {
38
- "$minHeight": minHeight,
38
+ style: minHeight ? {
39
+ minHeight
40
+ } : undefined,
39
41
  "$isErrored": isErrored,
40
42
  placeholder: placeholder,
41
43
  renderElement: renderElementPersistent,
@@ -14,6 +14,5 @@ export declare const EditableStyled: import("styled-components").StyledComponent
14
14
  as?: React.ElementType<any> | undefined;
15
15
  disableDefaultStyles?: boolean | undefined;
16
16
  } & import("react").TextareaHTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {
17
- $minHeight?: string;
18
17
  $isErrored?: boolean;
19
18
  }, never>;
@@ -4,8 +4,6 @@ import { Color, FontSize, FontWeight, ShapeRadius } from '@pushwoosh/kit-constan
4
4
  export const EditableStyled = styled(Editable).withConfig({
5
5
  displayName: "EditableStyled",
6
6
  componentId: "sc-1frhl1f-0"
7
- })(["font-weight:", ";font-size:", ";line-height:140%;padding:8px;color:", ";background:", ";caret-color:", ";border:1px solid ", ";border-radius:", ";overflow-x:auto;", " & [data-slate-placeholder='true']{color:", ";opacity:1 !important;}&:focus{border-color:", ";outline:none;}& > p{position:relative;margin:4px 0;&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}"], FontWeight.REGULAR, FontSize.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, ({
7
+ })(["font-weight:", ";font-size:", ";line-height:140%;padding:8px;color:", ";background:", ";caret-color:", ";border:1px solid ", ";border-radius:", ";overflow-x:auto;& [data-slate-placeholder='true']{color:", ";opacity:1 !important;}&:focus{border-color:", ";outline:none;}& > p{position:relative;margin:4px 0;&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}"], FontWeight.REGULAR, FontSize.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, ({
8
8
  $isErrored
9
- }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, ({
10
- $minHeight
11
- }) => $minHeight && `min-height: ${$minHeight};`, Color.PHANTOM, Color.BRIGHT);
9
+ }) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, Color.PHANTOM, Color.BRIGHT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",