@nulogy/components 15.4.1 → 16.0.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/main.js +91 -93
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +91 -93
- package/dist/main.module.js.map +1 -1
- package/dist/src/BottomSheet/BottomSheet.styled.js +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.js +1 -3
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.js +0 -2
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +26 -23
- package/dist/src/BrandedNavBar/SmallNavBar.js +0 -2
- package/dist/src/DropdownMenu/DropdownMenu.story.js +8 -4
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +5 -1
- package/dist/src/Popper/Popper.js +0 -1
- package/dist/src/RangeContainer/RangeContainer.js +1 -3
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Tabs/Tabs.story.js +0 -5
- package/dist/src/TimeRange/TimeRange.d.ts +7 -3
- package/dist/src/TimeRange/TimeRange.js +2 -2
- package/dist/src/Toast/Toast.js +1 -3
- package/dist/src/Toast/Toast.story.js +0 -2
- package/dist/src/Toggle/Toggle.js +0 -2
- package/dist/src/i18n.js +0 -2
- package/dist/src/utils/PopperArrow.js +3 -3
- package/dist/src/utils/noop.js +1 -3
- package/dist/src/utils/ts/FocusManager.d.ts +2 -2
- package/dist/src/utils/useScrollLock.js +0 -1
- package/package.json +12 -6
package/dist/main.module.js
CHANGED
|
@@ -8237,7 +8237,7 @@ class DetectOutsideClick extends React__default.Component {
|
|
|
8237
8237
|
}
|
|
8238
8238
|
}
|
|
8239
8239
|
const getThemeColor = (color2, theme) => theme.colors[color2] ? theme.colors[color2] : color2;
|
|
8240
|
-
const positionArrow = (placement
|
|
8240
|
+
const positionArrow = (placement) => {
|
|
8241
8241
|
const location = String(placement).split("-")[0];
|
|
8242
8242
|
switch (location) {
|
|
8243
8243
|
case "top":
|
|
@@ -8370,7 +8370,7 @@ const PopperArrow = styled.div(
|
|
|
8370
8370
|
({ placement = "bottom", borderColor: borderColor2 = "grey", backgroundColor = "white", theme }) => ({
|
|
8371
8371
|
...drawArrow(placement, borderColor2, backgroundColor, theme)
|
|
8372
8372
|
}),
|
|
8373
|
-
({ placement = "bottom"
|
|
8373
|
+
({ placement = "bottom" }) => ({
|
|
8374
8374
|
...positionArrow(placement)
|
|
8375
8375
|
})
|
|
8376
8376
|
);
|
|
@@ -23661,7 +23661,7 @@ const Sheet = styled(motion(DialogContent)).withConfig({
|
|
|
23661
23661
|
}),
|
|
23662
23662
|
compose(...styleFns)
|
|
23663
23663
|
);
|
|
23664
|
-
const ContentContainer = styled.div((
|
|
23664
|
+
const ContentContainer = styled.div(() => ({
|
|
23665
23665
|
overflowY: "auto",
|
|
23666
23666
|
flex: 1,
|
|
23667
23667
|
WebkitOverflowScrolling: "touch",
|
|
@@ -26456,46 +26456,52 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
26456
26456
|
}
|
|
26457
26457
|
}
|
|
26458
26458
|
) }),
|
|
26459
|
-
isOpen && /* @__PURE__ */ jsx$1(Popper$2, { placement, modifiers: modifiers2, children: (popperProps) =>
|
|
26460
|
-
|
|
26461
|
-
{
|
|
26462
|
-
|
|
26463
|
-
|
|
26464
|
-
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
},
|
|
26476
|
-
...dropdownMenuContainerEventHandlers({
|
|
26477
|
-
openMenu,
|
|
26478
|
-
closeMenu
|
|
26479
|
-
}),
|
|
26480
|
-
children: [
|
|
26481
|
-
/* @__PURE__ */ jsx$1(
|
|
26482
|
-
PopperArrow,
|
|
26483
|
-
{
|
|
26484
|
-
...popperProps.arrowProps,
|
|
26485
|
-
placement,
|
|
26486
|
-
ref: popperProps.arrowProps.ref,
|
|
26487
|
-
backgroundColor: "white",
|
|
26488
|
-
borderColor: "white"
|
|
26459
|
+
isOpen && /* @__PURE__ */ jsx$1(Popper$2, { placement, modifiers: modifiers2, children: (popperProps) => {
|
|
26460
|
+
const { ref: popperRef, style, placement: popperPlacement } = popperProps;
|
|
26461
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
26462
|
+
DropdownMenuContainer,
|
|
26463
|
+
{
|
|
26464
|
+
dataPlacement: popperPlacement,
|
|
26465
|
+
style,
|
|
26466
|
+
placement,
|
|
26467
|
+
showArrow,
|
|
26468
|
+
...this.menuEventHandlers(),
|
|
26469
|
+
...{
|
|
26470
|
+
ref: (node2) => {
|
|
26471
|
+
if (typeof popperRef === "function") {
|
|
26472
|
+
popperRef(node2);
|
|
26473
|
+
}
|
|
26474
|
+
this.setMenuRef(node2);
|
|
26489
26475
|
}
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26493
|
-
|
|
26494
|
-
|
|
26495
|
-
|
|
26496
|
-
|
|
26497
|
-
|
|
26498
|
-
|
|
26476
|
+
},
|
|
26477
|
+
onMouseDown: (e3) => {
|
|
26478
|
+
e3.preventDefault();
|
|
26479
|
+
e3.target.focus();
|
|
26480
|
+
},
|
|
26481
|
+
...dropdownMenuContainerEventHandlers({
|
|
26482
|
+
openMenu,
|
|
26483
|
+
closeMenu
|
|
26484
|
+
}),
|
|
26485
|
+
children: [
|
|
26486
|
+
/* @__PURE__ */ jsx$1(
|
|
26487
|
+
PopperArrow,
|
|
26488
|
+
{
|
|
26489
|
+
...popperProps.arrowProps,
|
|
26490
|
+
placement,
|
|
26491
|
+
ref: popperProps.arrowProps.ref,
|
|
26492
|
+
backgroundColor: "white",
|
|
26493
|
+
borderColor: "white"
|
|
26494
|
+
}
|
|
26495
|
+
),
|
|
26496
|
+
/* @__PURE__ */ jsx$1(DetectOutsideClick, { onClick: this.handleOutsideClick, clickRef: [this.menuRef, this.triggerRef] }),
|
|
26497
|
+
childrenFnc({
|
|
26498
|
+
closeMenu,
|
|
26499
|
+
openMenu
|
|
26500
|
+
})
|
|
26501
|
+
]
|
|
26502
|
+
}
|
|
26503
|
+
) });
|
|
26504
|
+
} })
|
|
26499
26505
|
] });
|
|
26500
26506
|
}
|
|
26501
26507
|
}
|
|
@@ -26606,7 +26612,6 @@ const Popper$1 = React__default.forwardRef(
|
|
|
26606
26612
|
}
|
|
26607
26613
|
});
|
|
26608
26614
|
return React__default.cloneElement(transformedElement, {
|
|
26609
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
26610
26615
|
key: i3
|
|
26611
26616
|
});
|
|
26612
26617
|
});
|
|
@@ -27065,52 +27070,49 @@ const MenuTrigger = ({
|
|
|
27065
27070
|
name,
|
|
27066
27071
|
"aria-label": ariaLabel
|
|
27067
27072
|
};
|
|
27068
|
-
return (
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
enabled: true,
|
|
27079
|
-
fn: setDropdownMinWidth
|
|
27080
|
-
},
|
|
27081
|
-
preventOverflow: {
|
|
27082
|
-
enabled: true,
|
|
27083
|
-
padding: 8,
|
|
27084
|
-
boundariesElement: "viewport"
|
|
27085
|
-
}
|
|
27086
|
-
},
|
|
27087
|
-
trigger: () => {
|
|
27088
|
-
const defaultRender = () => /* @__PURE__ */ jsx$1(MenuTriggerButton, { ...triggerProps });
|
|
27089
|
-
return trigger ? trigger({ size: "medium", defaultRender, layer }) : defaultRender();
|
|
27073
|
+
return /* @__PURE__ */ jsx$1(
|
|
27074
|
+
NavBarDropdownMenu,
|
|
27075
|
+
{
|
|
27076
|
+
...props,
|
|
27077
|
+
placement: "bottom-start",
|
|
27078
|
+
modifiers: {
|
|
27079
|
+
flip: { behavior: ["bottom"] },
|
|
27080
|
+
setPopperWidth: {
|
|
27081
|
+
enabled: true,
|
|
27082
|
+
fn: setDropdownMinWidth
|
|
27090
27083
|
},
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27094
|
-
|
|
27095
|
-
|
|
27096
|
-
|
|
27097
|
-
|
|
27098
|
-
|
|
27084
|
+
preventOverflow: {
|
|
27085
|
+
enabled: true,
|
|
27086
|
+
padding: 8,
|
|
27087
|
+
boundariesElement: "viewport"
|
|
27088
|
+
}
|
|
27089
|
+
},
|
|
27090
|
+
trigger: () => {
|
|
27091
|
+
const defaultRender = () => /* @__PURE__ */ jsx$1(MenuTriggerButton, { ...triggerProps });
|
|
27092
|
+
return trigger ? trigger({ size: "medium", defaultRender, layer }) : defaultRender();
|
|
27093
|
+
},
|
|
27094
|
+
children: ({ closeMenu }) => /* @__PURE__ */ jsx$1(
|
|
27095
|
+
"ul",
|
|
27096
|
+
{
|
|
27097
|
+
style: {
|
|
27098
|
+
listStyle: "none",
|
|
27099
|
+
margin: "0",
|
|
27100
|
+
padding: "0",
|
|
27101
|
+
minWidth: dropdownMinWidth
|
|
27102
|
+
},
|
|
27103
|
+
children: renderSubMenuItems(
|
|
27104
|
+
menuData,
|
|
27105
|
+
(e3) => {
|
|
27106
|
+
closeMenu(e3);
|
|
27107
|
+
e3.stopPropagation();
|
|
27099
27108
|
},
|
|
27100
|
-
|
|
27101
|
-
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
layer + 1,
|
|
27108
|
-
menuType
|
|
27109
|
-
)
|
|
27110
|
-
}
|
|
27111
|
-
)
|
|
27112
|
-
}
|
|
27113
|
-
)
|
|
27109
|
+
SubMenuTrigger,
|
|
27110
|
+
layer + 1,
|
|
27111
|
+
menuType
|
|
27112
|
+
)
|
|
27113
|
+
}
|
|
27114
|
+
)
|
|
27115
|
+
}
|
|
27114
27116
|
);
|
|
27115
27117
|
};
|
|
27116
27118
|
const getSharedStyles$1 = (color2, theme) => {
|
|
@@ -27810,7 +27812,6 @@ const renderMenuLink = (menuItem, linkOnClick, themeColorObject2, layer) => {
|
|
|
27810
27812
|
href: menuItem.href,
|
|
27811
27813
|
as: menuItem.as,
|
|
27812
27814
|
to: menuItem.to,
|
|
27813
|
-
// eslint-disable-next-line no-mixed-operators
|
|
27814
27815
|
pl: layer === 0 ? getPaddingLeft(layer) : `${24 * layer + 20}px`,
|
|
27815
27816
|
mb: "x1",
|
|
27816
27817
|
target: menuItem.openInNew ? "_blank" : void 0
|
|
@@ -40611,10 +40612,7 @@ const RangeContainer = ({
|
|
|
40611
40612
|
/* @__PURE__ */ jsx$1(Flex, { px: "half", alignItems: "flex-end", alignSelf: "flex-end", children: /* @__PURE__ */ jsx$1(Text, { lineHeight: variant3 === "touch" ? "56px" : "38px", children: "-" }) }),
|
|
40612
40613
|
/* @__PURE__ */ jsx$1(Flex, { children: endComponent })
|
|
40613
40614
|
] }),
|
|
40614
|
-
errorMessages.map((errorMessage, i3) => (
|
|
40615
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
40616
|
-
/* @__PURE__ */ jsx$1(InlineValidation, { errorMessage }, i3)
|
|
40617
|
-
))
|
|
40615
|
+
errorMessages.map((errorMessage, i3) => /* @__PURE__ */ jsx$1(InlineValidation, { errorMessage }, i3))
|
|
40618
40616
|
] });
|
|
40619
40617
|
};
|
|
40620
40618
|
const START_DATE_CLASS = "nds-datepicker-day--start-date";
|
|
@@ -44657,7 +44655,7 @@ const NavigationMenuSubList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)`
|
|
|
44657
44655
|
}
|
|
44658
44656
|
`;
|
|
44659
44657
|
const Button = React__default.forwardRef(
|
|
44660
|
-
({ onPointerEnter
|
|
44658
|
+
({ onPointerEnter, onPointerLeave, onPointerMove, ...props }, forwardedRef) => {
|
|
44661
44659
|
return /* @__PURE__ */ jsx$1("button", { ...props, ref: forwardedRef });
|
|
44662
44660
|
}
|
|
44663
44661
|
);
|