@theroutingcompany/components 0.0.142 → 0.0.143

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.142",
3
+ "version": "0.0.143",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -17,11 +17,12 @@ export interface InlineEditProps extends ButtonPropsV2 {
17
17
  label?: string | ReactNode;
18
18
  labelId?: string;
19
19
  allowedOutsideClickContainers?: string[];
20
+ closeOnOutsideClick?: boolean;
20
21
  isEditing?: boolean;
21
22
  hideSave?: boolean;
22
23
  hideLabel?: boolean;
23
24
  }
24
25
  export declare const InlineEdit: {
25
- ({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, onCancel, disabled, valid, label, labelId, allowedOutsideClickContainers, isEditing, hideSave, hideLabel, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
26
+ ({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, onCancel, disabled, valid, label, labelId, allowedOutsideClickContainers, closeOnOutsideClick, isEditing, hideSave, hideLabel, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
26
27
  displayName: string;
27
28
  };
@@ -1 +1 @@
1
- export declare const handleOutsideClick: (event: MouseEvent, ref: React.RefObject<HTMLDivElement>, close: () => void, allowedOutsideContainers?: string[]) => void;
1
+ export declare const handleOutsideClick: (event: MouseEvent, ref: React.RefObject<HTMLDivElement>, close: () => void, allowedOutsideContainers?: string[], closeOnOutsideClick?: boolean) => void;