@jobber/components 4.69.2 → 4.69.3-add-locati.0
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/dist/Button/Button.d.ts +3 -2
- package/package.json +3 -3
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { XOR } from "ts-xor";
|
|
3
|
+
import { LinkProps } from "react-router-dom";
|
|
3
4
|
import { IconNames } from "@jobber/design";
|
|
4
5
|
interface ButtonFoundationProps {
|
|
5
6
|
/**
|
|
@@ -35,11 +36,11 @@ interface ButtonAnchorProps extends ButtonFoundationProps {
|
|
|
35
36
|
*/
|
|
36
37
|
readonly url?: string;
|
|
37
38
|
}
|
|
38
|
-
interface ButtonLinkProps extends ButtonFoundationProps {
|
|
39
|
+
interface ButtonLinkProps<S = unknown> extends ButtonFoundationProps {
|
|
39
40
|
/**
|
|
40
41
|
* Used for client side routing. Only use when inside a routed component.
|
|
41
42
|
*/
|
|
42
|
-
readonly to?:
|
|
43
|
+
readonly to?: LinkProps<S>["to"];
|
|
43
44
|
}
|
|
44
45
|
interface BaseActionProps extends ButtonFoundationProps {
|
|
45
46
|
readonly variation?: "work" | "learning" | "subtle" | "destructive";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "4.69.
|
|
3
|
+
"version": "4.69.3-add-locati.0+f72d0bfb",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@jobber/design": "^0.51.1",
|
|
23
|
-
"@jobber/formatters": "
|
|
23
|
+
"@jobber/formatters": "^0.2.2",
|
|
24
24
|
"@jobber/hooks": "^2.8.0",
|
|
25
25
|
"@popperjs/core": "^2.0.6",
|
|
26
26
|
"@std-proposal/temporal": "0.0.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"> 1%",
|
|
84
84
|
"IE 10"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "f72d0bfb875b9728b9e5ab8855d4e4f425b133f2"
|
|
87
87
|
}
|