@jobber/components 6.101.3 → 6.102.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/Menu/Menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import type { MenuComposableProps, MenuContentComposableProps, MenuHeaderComposableProps, MenuItemComposableProps, MenuItemIconComposableProps, MenuLegacyProps, MenuSectionComposableProps, MenuSeparatorComposableProps, MenuTriggerComposableProps } from "./Menu.types";
|
|
3
|
+
import type { MenuComposableProps, MenuContentComposableProps, MenuHeaderComposableProps, MenuItemComposableProps, MenuItemIconComposableProps, MenuItemLabelComposableProps, MenuLegacyProps, MenuSectionComposableProps, MenuSeparatorComposableProps, MenuTriggerComposableProps } from "./Menu.types";
|
|
4
4
|
export declare function Menu(props: MenuLegacyProps): ReactElement;
|
|
5
5
|
export declare function Menu(props: MenuComposableProps): ReactElement;
|
|
6
6
|
export declare namespace Menu {
|
|
@@ -20,9 +20,7 @@ declare function MenuSeparatorComposable({ UNSAFE_style, UNSAFE_className, }: Me
|
|
|
20
20
|
declare function MenuSectionComposable({ children, UNSAFE_style, UNSAFE_className, ariaLabel, }: MenuSectionComposableProps): React.JSX.Element;
|
|
21
21
|
declare function MenuHeaderComposable(props: MenuHeaderComposableProps): React.JSX.Element;
|
|
22
22
|
declare function MenuItemIconComposable(props: MenuItemIconComposableProps): React.JSX.Element;
|
|
23
|
-
declare function MenuItemLabelComposable(props:
|
|
24
|
-
readonly children: string;
|
|
25
|
-
}): React.JSX.Element;
|
|
23
|
+
declare function MenuItemLabelComposable(props: MenuItemLabelComposableProps): React.JSX.Element;
|
|
26
24
|
declare function MenuHeaderLabel(props: {
|
|
27
25
|
readonly children: React.ReactNode;
|
|
28
26
|
}): React.JSX.Element;
|
|
@@ -180,4 +180,13 @@ export type AnimationState = "unmounted" | "hidden" | "visible";
|
|
|
180
180
|
export interface MenuMobileUnderlayProps {
|
|
181
181
|
readonly animation: AnimationState;
|
|
182
182
|
}
|
|
183
|
+
export interface MenuItemLabelComposableProps {
|
|
184
|
+
/**
|
|
185
|
+
* Item label content.
|
|
186
|
+
* This is rendered inside a Typography (span) component, so you MUST supply either
|
|
187
|
+
* a string or a fragment/utility component that renders down to a raw string (e.g.
|
|
188
|
+
* translation helpers).
|
|
189
|
+
*/
|
|
190
|
+
readonly children: React.ReactNode;
|
|
191
|
+
}
|
|
183
192
|
export {};
|
|
@@ -2,5 +2,5 @@ export interface ViewportDimensions {
|
|
|
2
2
|
readonly width?: number;
|
|
3
3
|
readonly height?: number;
|
|
4
4
|
}
|
|
5
|
-
export declare function mockViewport({ width, height, }: ViewportDimensions): () => void
|
|
5
|
+
export declare function mockViewport({ width, height, }: ViewportDimensions): Promise<() => void>;
|
|
6
6
|
export declare function withMockedViewport(dimensions: ViewportDimensions, run: () => Promise<void> | void): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.102.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "1bab53a257b1c96c41a1d8b437f432fad4d138c1"
|
|
542
542
|
}
|