@simplybusiness/mobius 3.2.1 → 3.2.2
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
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file, or link in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.2.2] - 2023-01-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed `onClick` type for `<LinkButton>`, so that it always expects default event
|
|
13
|
+
|
|
8
14
|
## [3.2.0] - 2023-01-04
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -132,6 +138,7 @@ Additionally, mobius and themes are available on the public NPM registry and can
|
|
|
132
138
|
|
|
133
139
|
## Github Links
|
|
134
140
|
|
|
141
|
+
[3.2.2]: https://github.com/simplybusiness/mobius/releases/tag/v3.2.2
|
|
135
142
|
[3.2.1]: https://github.com/simplybusiness/mobius/releases/tag/v3.2.1
|
|
136
143
|
[3.2.0]: https://github.com/simplybusiness/mobius/releases/tag/v3.2.0
|
|
137
144
|
[3.1.3]: https://github.com/simplybusiness/mobius/releases/tag/v3.1.3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributeAnchorTarget } from "react";
|
|
1
|
+
import { HTMLAttributeAnchorTarget, SyntheticEvent } from "react";
|
|
2
2
|
import type { Link } from "react-router-dom";
|
|
3
3
|
import { ButtonProps } from "../Button";
|
|
4
4
|
export interface LinkButtonProps extends Omit<ButtonProps, "elementType"> {
|
|
@@ -9,7 +9,7 @@ export interface LinkButtonProps extends Omit<ButtonProps, "elementType"> {
|
|
|
9
9
|
download?: boolean | string;
|
|
10
10
|
rel?: string;
|
|
11
11
|
target?: HTMLAttributeAnchorTarget;
|
|
12
|
-
onClick?: () => void;
|
|
12
|
+
onClick?: (event: SyntheticEvent) => void;
|
|
13
13
|
to?: React.ComponentProps<typeof Link>["to"];
|
|
14
14
|
elementType?: React.ElementType;
|
|
15
15
|
}
|
package/dist/mobius.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { RefAttributes } from 'react';
|
|
|
43
43
|
import { SeparatorProps } from '@react-aria/separator';
|
|
44
44
|
import { SliderProps as SliderProps_2 } from '@react-types/slider';
|
|
45
45
|
import { SSRProvider } from '@react-aria/ssr';
|
|
46
|
+
import { SyntheticEvent } from 'react';
|
|
46
47
|
import { useVisuallyHidden } from '@react-aria/visually-hidden';
|
|
47
48
|
import { Validation } from '@react-types/shared';
|
|
48
49
|
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
@@ -604,7 +605,7 @@ export declare interface LinkButtonProps extends Omit<ButtonProps, "elementType"
|
|
|
604
605
|
download?: boolean | string;
|
|
605
606
|
rel?: string;
|
|
606
607
|
target?: HTMLAttributeAnchorTarget;
|
|
607
|
-
onClick?: () => void;
|
|
608
|
+
onClick?: (event: SyntheticEvent) => void;
|
|
608
609
|
to?: React.ComponentProps<typeof Link_2>["to"];
|
|
609
610
|
elementType?: React.ElementType;
|
|
610
611
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributeAnchorTarget } from "react";
|
|
1
|
+
import { HTMLAttributeAnchorTarget, SyntheticEvent } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import type { Link } from "react-router-dom";
|
|
4
4
|
import { Button, ButtonProps } from "../Button";
|
|
@@ -11,7 +11,7 @@ export interface LinkButtonProps extends Omit<ButtonProps, "elementType"> {
|
|
|
11
11
|
download?: boolean | string;
|
|
12
12
|
rel?: string;
|
|
13
13
|
target?: HTMLAttributeAnchorTarget;
|
|
14
|
-
onClick?: () => void;
|
|
14
|
+
onClick?: (event: SyntheticEvent) => void;
|
|
15
15
|
to?: React.ComponentProps<typeof Link>["to"];
|
|
16
16
|
elementType?: React.ElementType;
|
|
17
17
|
}
|