react-restyle-components 0.3.10 → 0.3.11

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.
@@ -4,7 +4,7 @@ interface CSSMultilineProps {
4
4
  placeholder?: string;
5
5
  className?: string;
6
6
  style?: any;
7
- onChange(item: any): void;
7
+ onChange?(item: any): void;
8
8
  onBlur?(item: any): void;
9
9
  onReset?(item: any): void;
10
10
  onMoreInfo?(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"css-multiline-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/molecules/css-multiline-input/css-multiline-input.component.tsx"],"names":[],"mappings":"AAQA,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB;AAWD,eAAO,MAAM,YAAY,mGAUtB,iBAAiB,4CA2JnB,CAAC"}
1
+ {"version":3,"file":"css-multiline-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/molecules/css-multiline-input/css-multiline-input.component.tsx"],"names":[],"mappings":"AAQA,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,CAAC,IAAI,KAAA,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB;AAWD,eAAO,MAAM,YAAY,mGAUtB,iBAAiB,4CA4JnB,CAAC"}
@@ -28,7 +28,7 @@ export const CSSMultiline = ({ label = 'Main Box CSS', defaultValue = '', classN
28
28
  function handleClickOutside(event) {
29
29
  if (ref.current && !ref.current.contains(event.target)) {
30
30
  setIsListOpen(false);
31
- onChange(value.current);
31
+ onChange && onChange(value.current);
32
32
  }
33
33
  }
34
34
  document.addEventListener('mousedown', handleClickOutside);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "private": false,
5
5
  "description": "Easy use restyle components",
6
6
  "author": {