@jobber/components 6.111.7 → 6.112.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.types.d.ts +1 -1
- package/dist/Menu-cjs.js +3 -2
- package/dist/Menu-es.js +3 -2
- package/package.json +2 -2
|
@@ -168,7 +168,7 @@ export interface MenuItemIconComposableProps extends IconProps {
|
|
|
168
168
|
export interface MenuContentComposableProps extends UnsafeProps {
|
|
169
169
|
readonly children: ReactNode;
|
|
170
170
|
}
|
|
171
|
-
export interface MenuTriggerComposableProps {
|
|
171
|
+
export interface MenuTriggerComposableProps extends UnsafeProps {
|
|
172
172
|
/**
|
|
173
173
|
* Accessible name for the trigger.
|
|
174
174
|
*/
|
package/dist/Menu-cjs.js
CHANGED
|
@@ -295,9 +295,10 @@ function getDerivedAnimation(open, animation) {
|
|
|
295
295
|
// so the Popover can be removed from the DOM once exit completes.
|
|
296
296
|
return animation === "unmounted" ? "unmounted" : "hidden";
|
|
297
297
|
}
|
|
298
|
-
const MenuTriggerComposable = React.forwardRef(function MenuTriggerComposable({ ariaLabel, children }, ref) {
|
|
298
|
+
const MenuTriggerComposable = React.forwardRef(function MenuTriggerComposable({ ariaLabel, children, UNSAFE_style, UNSAFE_className }, ref) {
|
|
299
|
+
const className = classnames(styles.triggerWrapper, UNSAFE_className);
|
|
299
300
|
return (React.createElement($3b117e43dc0ca95d$export$27c701ed9e449e99, { "aria-label": ariaLabel },
|
|
300
|
-
React.createElement("div", { role: "button", className:
|
|
301
|
+
React.createElement("div", { role: "button", className: className, ref: ref, style: UNSAFE_style }, children)));
|
|
301
302
|
});
|
|
302
303
|
function MenuContentComposable({ children, UNSAFE_style, UNSAFE_className, }) {
|
|
303
304
|
const { state: animation, setState } = useMenuAnimation();
|
package/dist/Menu-es.js
CHANGED
|
@@ -293,9 +293,10 @@ function getDerivedAnimation(open, animation) {
|
|
|
293
293
|
// so the Popover can be removed from the DOM once exit completes.
|
|
294
294
|
return animation === "unmounted" ? "unmounted" : "hidden";
|
|
295
295
|
}
|
|
296
|
-
const MenuTriggerComposable = React__default.forwardRef(function MenuTriggerComposable({ ariaLabel, children }, ref) {
|
|
296
|
+
const MenuTriggerComposable = React__default.forwardRef(function MenuTriggerComposable({ ariaLabel, children, UNSAFE_style, UNSAFE_className }, ref) {
|
|
297
|
+
const className = classnames(styles.triggerWrapper, UNSAFE_className);
|
|
297
298
|
return (React__default.createElement($3b117e43dc0ca95d$export$27c701ed9e449e99, { "aria-label": ariaLabel },
|
|
298
|
-
React__default.createElement("div", { role: "button", className:
|
|
299
|
+
React__default.createElement("div", { role: "button", className: className, ref: ref, style: UNSAFE_style }, children)));
|
|
299
300
|
});
|
|
300
301
|
function MenuContentComposable({ children, UNSAFE_style, UNSAFE_className, }) {
|
|
301
302
|
const { state: animation, setState } = useMenuAnimation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.112.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": "90895403e005129293895a62760365300e645978"
|
|
542
542
|
}
|