@octaviaflow/core 3.0.18-beta.3 → 3.0.18-beta.4
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/components/DropdownMenu/DropdownMenu.d.ts +8 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11938,7 +11938,8 @@ function MenuPopup({
|
|
|
11938
11938
|
align,
|
|
11939
11939
|
className,
|
|
11940
11940
|
closeOnOutsideClick,
|
|
11941
|
-
closeOnEscape
|
|
11941
|
+
closeOnEscape,
|
|
11942
|
+
matchTriggerWidth
|
|
11942
11943
|
}) {
|
|
11943
11944
|
const menuRef = useRef22(null);
|
|
11944
11945
|
useEffect17(() => {
|
|
@@ -12015,6 +12016,10 @@ function MenuPopup({
|
|
|
12015
12016
|
} else {
|
|
12016
12017
|
style.left = rect.left;
|
|
12017
12018
|
}
|
|
12019
|
+
if (matchTriggerWidth) {
|
|
12020
|
+
style.width = rect.width;
|
|
12021
|
+
style.minWidth = rect.width;
|
|
12022
|
+
}
|
|
12018
12023
|
return style;
|
|
12019
12024
|
};
|
|
12020
12025
|
let nonSepIdx = 0;
|
|
@@ -12070,6 +12075,7 @@ function DropdownMenu({
|
|
|
12070
12075
|
triggerClassName,
|
|
12071
12076
|
closeOnOutsideClick = true,
|
|
12072
12077
|
closeOnEscape = true,
|
|
12078
|
+
matchTriggerWidth = false,
|
|
12073
12079
|
"aria-label": ariaLabel,
|
|
12074
12080
|
"aria-labelledby": ariaLabelledby
|
|
12075
12081
|
}) {
|
|
@@ -12103,7 +12109,8 @@ function DropdownMenu({
|
|
|
12103
12109
|
align,
|
|
12104
12110
|
className,
|
|
12105
12111
|
closeOnOutsideClick,
|
|
12106
|
-
closeOnEscape
|
|
12112
|
+
closeOnEscape,
|
|
12113
|
+
matchTriggerWidth
|
|
12107
12114
|
}
|
|
12108
12115
|
)
|
|
12109
12116
|
] });
|
|
@@ -22575,7 +22582,8 @@ function SidebarUserCard({ user }) {
|
|
|
22575
22582
|
{
|
|
22576
22583
|
trigger: body,
|
|
22577
22584
|
items: user.menu,
|
|
22578
|
-
align: "
|
|
22585
|
+
align: "start",
|
|
22586
|
+
matchTriggerWidth: true,
|
|
22579
22587
|
"aria-label": labelText,
|
|
22580
22588
|
triggerClassName: "ods-sidebar__user-card"
|
|
22581
22589
|
}
|