@jobber/components 6.98.0 → 6.98.1-JOB-136570-fb771c1.1
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.
|
@@ -43,11 +43,13 @@ export declare function FormFieldWrapperToolbar({ toolbar, isToolbarVisible, too
|
|
|
43
43
|
readonly isToolbarVisible: boolean;
|
|
44
44
|
readonly toolbarAnimationEnd: {
|
|
45
45
|
opacity: number;
|
|
46
|
-
|
|
46
|
+
maxHeight: number;
|
|
47
|
+
overflow: string;
|
|
47
48
|
};
|
|
48
49
|
readonly toolbarAnimationStart: {
|
|
49
50
|
opacity: number;
|
|
50
|
-
|
|
51
|
+
maxHeight: string;
|
|
52
|
+
overflow: string;
|
|
51
53
|
};
|
|
52
54
|
readonly toolbar: ReactNode;
|
|
53
55
|
}): React.JSX.Element;
|
|
@@ -8,11 +8,13 @@ interface UseToolbar {
|
|
|
8
8
|
isToolbarVisible: boolean;
|
|
9
9
|
toolbarAnimationEnd: {
|
|
10
10
|
opacity: number;
|
|
11
|
-
|
|
11
|
+
maxHeight: number;
|
|
12
|
+
overflow: string;
|
|
12
13
|
};
|
|
13
14
|
toolbarAnimationStart: {
|
|
14
15
|
opacity: number;
|
|
15
|
-
|
|
16
|
+
maxHeight: string;
|
|
17
|
+
overflow: string;
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
export declare function useToolbar(props: UseToolBarProps): UseToolbar;
|
package/dist/FormField-cjs.js
CHANGED
|
@@ -66,8 +66,16 @@ function ClearAction({ onClick, visible, }) {
|
|
|
66
66
|
function useToolbar(props) {
|
|
67
67
|
const isToolbarVisible = props.toolbar !== undefined &&
|
|
68
68
|
(props.toolbarVisibility === "always" || props.focused);
|
|
69
|
-
const toolbarAnimationEnd = {
|
|
70
|
-
|
|
69
|
+
const toolbarAnimationEnd = {
|
|
70
|
+
opacity: 0,
|
|
71
|
+
maxHeight: 0,
|
|
72
|
+
overflow: "hidden",
|
|
73
|
+
};
|
|
74
|
+
const toolbarAnimationStart = {
|
|
75
|
+
opacity: 1,
|
|
76
|
+
maxHeight: "200px", // Set a reasonable max height
|
|
77
|
+
overflow: "hidden",
|
|
78
|
+
};
|
|
71
79
|
return {
|
|
72
80
|
isToolbarVisible,
|
|
73
81
|
toolbarAnimationEnd,
|
package/dist/FormField-es.js
CHANGED
|
@@ -64,8 +64,16 @@ function ClearAction({ onClick, visible, }) {
|
|
|
64
64
|
function useToolbar(props) {
|
|
65
65
|
const isToolbarVisible = props.toolbar !== undefined &&
|
|
66
66
|
(props.toolbarVisibility === "always" || props.focused);
|
|
67
|
-
const toolbarAnimationEnd = {
|
|
68
|
-
|
|
67
|
+
const toolbarAnimationEnd = {
|
|
68
|
+
opacity: 0,
|
|
69
|
+
maxHeight: 0,
|
|
70
|
+
overflow: "hidden",
|
|
71
|
+
};
|
|
72
|
+
const toolbarAnimationStart = {
|
|
73
|
+
opacity: 1,
|
|
74
|
+
maxHeight: "200px", // Set a reasonable max height
|
|
75
|
+
overflow: "hidden",
|
|
76
|
+
};
|
|
69
77
|
return {
|
|
70
78
|
isToolbarVisible,
|
|
71
79
|
toolbarAnimationEnd,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.98.
|
|
3
|
+
"version": "6.98.1-JOB-136570-fb771c1.1+fb771c154",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -541,5 +541,5 @@
|
|
|
541
541
|
"> 1%",
|
|
542
542
|
"IE 10"
|
|
543
543
|
],
|
|
544
|
-
"gitHead": "
|
|
544
|
+
"gitHead": "fb771c154ce8a6116df0cd7535b1a8fbcbd46f5d"
|
|
545
545
|
}
|