@etsoo/react 1.4.95 → 1.4.96

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.
@@ -9,7 +9,7 @@ export interface BridgeCloseButtonProps extends IconButtonProps {
9
9
  * Validate the host
10
10
  * @param host Host
11
11
  */
12
- validate(host: IBridgeHost): boolean;
12
+ validate?(host: IBridgeHost): boolean;
13
13
  }
14
14
  /**
15
15
  * Bridge close button
@@ -26,8 +26,8 @@ export function BridgeCloseButton(props) {
26
26
  };
27
27
  return (React.createElement(IconButton, { "aria-label": "close", color: "primary", onClick: onClickLocal, sx: {
28
28
  position: 'absolute',
29
- top: (theme) => theme.spacing(1),
30
- right: (theme) => theme.spacing(1)
29
+ top: (theme) => theme.spacing(0.5),
30
+ right: (theme) => theme.spacing(0.5)
31
31
  }, ...rest },
32
32
  React.createElement(CloseIcon, null)));
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.95",
3
+ "version": "1.4.96",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -12,7 +12,7 @@ export interface BridgeCloseButtonProps extends IconButtonProps {
12
12
  * Validate the host
13
13
  * @param host Host
14
14
  */
15
- validate(host: IBridgeHost): boolean;
15
+ validate?(host: IBridgeHost): boolean;
16
16
  }
17
17
 
18
18
  /**
@@ -51,8 +51,8 @@ export function BridgeCloseButton(props: BridgeCloseButtonProps) {
51
51
  onClick={onClickLocal}
52
52
  sx={{
53
53
  position: 'absolute',
54
- top: (theme) => theme.spacing(1),
55
- right: (theme) => theme.spacing(1)
54
+ top: (theme) => theme.spacing(0.5),
55
+ right: (theme) => theme.spacing(0.5)
56
56
  }}
57
57
  {...rest}
58
58
  >