@nulogy/components 16.0.1 → 16.0.2
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 +45 -59
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +45 -59
- package/dist/main.module.js.map +1 -1
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +2 -2
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +10 -6
- package/dist/src/Box/Box.d.ts +12 -13
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +3 -1
- package/dist/src/BrandedNavBar/NavBar.js +2 -2
- package/dist/src/Button/DangerButton.d.ts +3 -1
- package/dist/src/Button/PrimaryButton.d.ts +3 -1
- package/dist/src/Button/QuietButton.d.ts +3 -1
- package/dist/src/DateRange/EndTime.d.ts +5 -7
- package/dist/src/DateRange/StartTime.d.ts +5 -7
- package/dist/src/DescriptionList/stories/fixtures.d.ts +2 -2
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownText.d.ts +1 -1
- package/dist/src/FieldLabel/HelpText.d.ts +1 -1
- package/dist/src/Icon/Icon.d.ts +6 -2
- package/dist/src/Link/Link.story.js +1 -1
- package/dist/src/Modal/Modal.d.ts +5 -3
- package/dist/src/Modal/Modal.js +2 -2
- package/dist/src/Modal/Modal.story.d.ts +1 -23
- package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +3 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +15 -7
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +5 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +17 -5
- package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +10 -4
- package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +5 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +6 -2
- package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +5 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +3 -1
- package/dist/src/Navigation/components/shared/components.d.ts +35 -9
- package/dist/src/Radio/Radio.story.d.ts +12 -14
- package/dist/src/Summary/Summary.d.ts +1 -2
- package/dist/src/Summary/Summary.js +2 -2
- package/dist/src/Summary/SummaryContext.d.ts +3 -1
- package/dist/src/Summary/SummaryContext.js +2 -2
- package/dist/src/Summary/SummaryItem.d.ts +1 -1
- package/dist/src/Summary/SummaryItem.js +2 -2
- package/dist/src/Switcher/Switcher.d.ts +2 -2
- package/dist/src/Switcher/Switcher.js +2 -2
- package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +2 -2
- package/dist/src/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/TimePicker/TimePickerInput.d.ts +3 -1
- package/dist/src/TimeRange/TimeRange.d.ts +3 -2
- package/dist/src/ToastContainer/ToastFunction.js +2 -2
- package/dist/src/Toggle/ToggleButton.js +2 -2
- package/dist/src/TopBar/TopBar.styled.d.ts +16 -15
- package/dist/src/TopBar/components/BackLink.d.ts +3 -1
- package/dist/src/TopBar/components/MenuItemLink.d.ts +3 -1
- package/dist/src/TopBar/stories/TopBar.backButton.story.js +1 -1
- package/dist/src/TopBar/stories/TopBar.menu.story.js +1 -1
- package/dist/src/Type/Headings.d.ts +4 -4
- package/dist/src/utils/story/dashed.d.ts +1 -3
- package/dist/src/utils/story/resizable.d.ts +4 -2
- package/dist/src/utils/ts/FocusManager.d.ts +1 -1
- package/dist/src/utils/ts/FocusManager.js +2 -2
- package/package.json +11 -12
package/dist/main.module.js
CHANGED
|
@@ -11476,7 +11476,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
11476
11476
|
const { asChild, ...primitiveProps } = props;
|
|
11477
11477
|
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node2;
|
|
11478
11478
|
useEffect(() => {
|
|
11479
|
-
window[Symbol.for("radix-ui")] = true;
|
|
11479
|
+
window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
|
|
11480
11480
|
}, []);
|
|
11481
11481
|
return /* @__PURE__ */ createElement(Comp, _extends$3({}, primitiveProps, {
|
|
11482
11482
|
ref: forwardedRef
|
|
@@ -28106,14 +28106,7 @@ const themeColorObject = {
|
|
|
28106
28106
|
textColor: "blackBlue",
|
|
28107
28107
|
logoColor: "blue"
|
|
28108
28108
|
};
|
|
28109
|
-
|
|
28110
|
-
menuData,
|
|
28111
|
-
environment,
|
|
28112
|
-
logo,
|
|
28113
|
-
showNulogyLogo,
|
|
28114
|
-
subtext,
|
|
28115
|
-
...props
|
|
28116
|
-
}) => {
|
|
28109
|
+
function MediumNavBar({ menuData, environment, logo, showNulogyLogo, subtext, ...props }) {
|
|
28117
28110
|
const { t: t3 } = useTranslation();
|
|
28118
28111
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28119
28112
|
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
@@ -28144,7 +28137,7 @@ const MediumNavBar = ({
|
|
|
28144
28137
|
] })
|
|
28145
28138
|
] }) })
|
|
28146
28139
|
] });
|
|
28147
|
-
}
|
|
28140
|
+
}
|
|
28148
28141
|
const SelectNavBarBasedOnWidth = ({
|
|
28149
28142
|
width: width2,
|
|
28150
28143
|
defaultOpen,
|
|
@@ -44514,17 +44507,15 @@ function requireLib() {
|
|
|
44514
44507
|
}
|
|
44515
44508
|
var libExports = requireLib();
|
|
44516
44509
|
const ReactModal = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
44517
|
-
const ModalContent = styled.div(
|
|
44518
|
-
|
|
44519
|
-
|
|
44520
|
-
|
|
44521
|
-
|
|
44522
|
-
|
|
44523
|
-
|
|
44524
|
-
|
|
44525
|
-
|
|
44526
|
-
})
|
|
44527
|
-
);
|
|
44510
|
+
const ModalContent = styled.div(({ hasFooter, theme }) => ({
|
|
44511
|
+
marginTop: "-64px",
|
|
44512
|
+
marginBottom: hasFooter ? "-72px" : 0,
|
|
44513
|
+
overflow: "auto",
|
|
44514
|
+
paddingTop: "88px",
|
|
44515
|
+
paddingBottom: hasFooter ? "96px" : theme.space.x2,
|
|
44516
|
+
paddingLeft: theme.space.x3,
|
|
44517
|
+
paddingRight: theme.space.x3
|
|
44518
|
+
}));
|
|
44528
44519
|
const ModalFooter = styled.div(({ theme }) => ({
|
|
44529
44520
|
position: "relative",
|
|
44530
44521
|
padding: `${theme.space.x2} ${theme.space.x3}`,
|
|
@@ -44615,7 +44606,7 @@ const StyledReactModal = styled(ReactModal)(
|
|
|
44615
44606
|
MozOsxFontSmoothing: "grayscale"
|
|
44616
44607
|
})
|
|
44617
44608
|
);
|
|
44618
|
-
|
|
44609
|
+
function Modal({
|
|
44619
44610
|
isOpen = true,
|
|
44620
44611
|
shouldFocusAfterRender = true,
|
|
44621
44612
|
shouldReturnFocusAfterClose = true,
|
|
@@ -44635,7 +44626,7 @@ const Modal = ({
|
|
|
44635
44626
|
footerContent,
|
|
44636
44627
|
closeAriaLabel,
|
|
44637
44628
|
parentSelector
|
|
44638
|
-
})
|
|
44629
|
+
}) {
|
|
44639
44630
|
const modalHasHeader = Boolean(onRequestClose || title);
|
|
44640
44631
|
const themeContext = useContext(ThemeContext$1);
|
|
44641
44632
|
return /* @__PURE__ */ jsx$1(
|
|
@@ -44677,7 +44668,7 @@ const Modal = ({
|
|
|
44677
44668
|
)
|
|
44678
44669
|
}
|
|
44679
44670
|
);
|
|
44680
|
-
}
|
|
44671
|
+
}
|
|
44681
44672
|
function ModalWrapper({
|
|
44682
44673
|
modalHasHeader,
|
|
44683
44674
|
title,
|
|
@@ -51502,17 +51493,19 @@ function MenuList(props) {
|
|
|
51502
51493
|
ref: list,
|
|
51503
51494
|
outerRef: innerRef,
|
|
51504
51495
|
estimatedItemSize,
|
|
51505
|
-
innerElementType: React.forwardRef(
|
|
51506
|
-
|
|
51507
|
-
|
|
51508
|
-
|
|
51509
|
-
|
|
51510
|
-
|
|
51511
|
-
|
|
51512
|
-
|
|
51513
|
-
|
|
51514
|
-
|
|
51515
|
-
|
|
51496
|
+
innerElementType: React.forwardRef(
|
|
51497
|
+
({ style, ...rest }, ref) => /* @__PURE__ */ jsx$1(
|
|
51498
|
+
"div",
|
|
51499
|
+
{
|
|
51500
|
+
ref,
|
|
51501
|
+
style: {
|
|
51502
|
+
...style,
|
|
51503
|
+
height: `${parseFloat(style.height) + paddingBottom + paddingTop}px`
|
|
51504
|
+
},
|
|
51505
|
+
...rest
|
|
51506
|
+
}
|
|
51507
|
+
)
|
|
51508
|
+
),
|
|
51516
51509
|
height: menuHeight,
|
|
51517
51510
|
width: "100%",
|
|
51518
51511
|
itemCount,
|
|
@@ -52396,10 +52389,7 @@ function useSummaryContext() {
|
|
|
52396
52389
|
}
|
|
52397
52390
|
return context;
|
|
52398
52391
|
}
|
|
52399
|
-
|
|
52400
|
-
breakpoint,
|
|
52401
|
-
children
|
|
52402
|
-
}) => {
|
|
52392
|
+
function SummaryContextProvider({ breakpoint, children }) {
|
|
52403
52393
|
return /* @__PURE__ */ jsx$1(
|
|
52404
52394
|
SummaryContext.Provider,
|
|
52405
52395
|
{
|
|
@@ -52409,7 +52399,7 @@ const SummaryContextProvider = ({
|
|
|
52409
52399
|
children
|
|
52410
52400
|
}
|
|
52411
52401
|
);
|
|
52412
|
-
}
|
|
52402
|
+
}
|
|
52413
52403
|
const SummaryWrapper = styled(Box)(({ theme, breakpoint }) => ({
|
|
52414
52404
|
display: "flex",
|
|
52415
52405
|
background: theme.colors.white,
|
|
@@ -52428,12 +52418,12 @@ const SummaryWrapper = styled(Box)(({ theme, breakpoint }) => ({
|
|
|
52428
52418
|
rowGap: 0
|
|
52429
52419
|
}
|
|
52430
52420
|
}));
|
|
52431
|
-
|
|
52421
|
+
function Summary({ breakpoint, children, ...rest }) {
|
|
52432
52422
|
const theme = useTheme();
|
|
52433
52423
|
breakpoint || (breakpoint = theme.breakpoints.medium);
|
|
52434
52424
|
const breakpointPx = numberFromDimension(breakpoint);
|
|
52435
52425
|
return /* @__PURE__ */ jsx$1(SummaryContextProvider, { breakpoint: breakpointPx, children: /* @__PURE__ */ jsx$1(SummaryWrapper, { breakpoint: breakpointPx, ...rest, children }) });
|
|
52436
|
-
}
|
|
52426
|
+
}
|
|
52437
52427
|
const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
52438
52428
|
gap: theme.space.half,
|
|
52439
52429
|
flexDirection: "column",
|
|
@@ -52441,7 +52431,7 @@ const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
|
52441
52431
|
flexDirection: "row"
|
|
52442
52432
|
}
|
|
52443
52433
|
}));
|
|
52444
|
-
|
|
52434
|
+
function SummaryItem({ value, status, ...rest }) {
|
|
52445
52435
|
const { breakpoint } = useSummaryContext();
|
|
52446
52436
|
const matches = useMediaQuery(`(max-width: ${breakpoint}px)`);
|
|
52447
52437
|
delete rest["children"];
|
|
@@ -52449,7 +52439,7 @@ const SummaryItem = ({ value, status, ...rest }) => {
|
|
|
52449
52439
|
/* @__PURE__ */ jsx$1(Text, { fontWeight: "medium", fontSize: !matches ? "heading4" : void 0, children: value }),
|
|
52450
52440
|
status
|
|
52451
52441
|
] });
|
|
52452
|
-
}
|
|
52442
|
+
}
|
|
52453
52443
|
const Divider = styled(Box)(({ theme, breakpoint }) => ({
|
|
52454
52444
|
display: "block",
|
|
52455
52445
|
alignSelf: "stretch",
|
|
@@ -52465,11 +52455,7 @@ const SummaryDivider = (props) => {
|
|
|
52465
52455
|
const { breakpoint } = useSummaryContext();
|
|
52466
52456
|
return /* @__PURE__ */ jsx$1(Divider, { breakpoint: numberFromDimension(breakpoint), ...props });
|
|
52467
52457
|
};
|
|
52468
|
-
|
|
52469
|
-
children,
|
|
52470
|
-
refs = void 0,
|
|
52471
|
-
defaultFocusedIndex
|
|
52472
|
-
}) => {
|
|
52458
|
+
function FocusManager({ children, refs = void 0, defaultFocusedIndex }) {
|
|
52473
52459
|
const [focusedIndex, setFocusedIndex] = useState(defaultFocusedIndex ?? 0);
|
|
52474
52460
|
const prevFocusedIndex = useRef(focusedIndex);
|
|
52475
52461
|
const focusPrevious = () => {
|
|
@@ -52504,8 +52490,8 @@ const FocusManager = ({
|
|
|
52504
52490
|
setFocusedIndex,
|
|
52505
52491
|
handleArrowNavigation
|
|
52506
52492
|
}) });
|
|
52507
|
-
}
|
|
52508
|
-
|
|
52493
|
+
}
|
|
52494
|
+
function Switcher({ variant: variant3, selected, onChange: onChange2, ...rest }) {
|
|
52509
52495
|
const componentVariant = useComponentVariant(variant3);
|
|
52510
52496
|
const optionRefs = [];
|
|
52511
52497
|
const isSelected = (value, index2) => {
|
|
@@ -52539,7 +52525,7 @@ const Switcher = ({ variant: variant3, selected, onChange: onChange2, ...rest })
|
|
|
52539
52525
|
});
|
|
52540
52526
|
};
|
|
52541
52527
|
return /* @__PURE__ */ jsx$1(Box, { display: "inline-flex", bg: "whiteGrey", borderRadius: "9999px", ...rest, children: /* @__PURE__ */ jsx$1(FocusManager, { refs: optionRefs, defaultFocusedIndex: getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => options(focusedIndex, setFocusedIndex, handleArrowNavigation) }) });
|
|
52542
|
-
}
|
|
52528
|
+
}
|
|
52543
52529
|
const Switch$1 = React__default.forwardRef(({ children, ...rest }, ref) => {
|
|
52544
52530
|
return /* @__PURE__ */ jsx$1(SwitchButton, { ...rest, ref, children });
|
|
52545
52531
|
});
|
|
@@ -52711,14 +52697,14 @@ const TabScrollIndicatorButton = styled.button(({ side, width: width2, theme })
|
|
|
52711
52697
|
opacity: ".5"
|
|
52712
52698
|
}
|
|
52713
52699
|
}));
|
|
52714
|
-
|
|
52700
|
+
function TabScrollIndicator({
|
|
52715
52701
|
side = "left",
|
|
52716
52702
|
width: width2 = 40,
|
|
52717
52703
|
ariaLabelLeft,
|
|
52718
52704
|
ariaLabelRight,
|
|
52719
52705
|
onClick,
|
|
52720
52706
|
...props
|
|
52721
|
-
})
|
|
52707
|
+
}) {
|
|
52722
52708
|
const { t: t3 } = useTranslation();
|
|
52723
52709
|
const rightArrowLabel = ariaLabelRight || t3("next");
|
|
52724
52710
|
const leftArrowLabel = ariaLabelLeft || t3("previous");
|
|
@@ -52738,7 +52724,7 @@ const TabScrollIndicator = ({
|
|
|
52738
52724
|
children: /* @__PURE__ */ jsx$1(Icon, { icon: side === "right" ? "rightArrow" : "leftArrow" })
|
|
52739
52725
|
}
|
|
52740
52726
|
);
|
|
52741
|
-
}
|
|
52727
|
+
}
|
|
52742
52728
|
const TabScrollIndicatorContainer = styled.div(({ width: width2, theme }) => ({
|
|
52743
52729
|
position: "absolute",
|
|
52744
52730
|
width: width2,
|
|
@@ -53724,12 +53710,12 @@ const ToastContainer = ({
|
|
|
53724
53710
|
}
|
|
53725
53711
|
);
|
|
53726
53712
|
};
|
|
53727
|
-
|
|
53713
|
+
function CustomToast({ isVisible, id: id2, children, ...props }) {
|
|
53728
53714
|
const handleClose = () => {
|
|
53729
53715
|
n.dismiss(id2);
|
|
53730
53716
|
};
|
|
53731
53717
|
return /* @__PURE__ */ jsx$1(AnimatePresence, { children: isVisible && /* @__PURE__ */ jsx$1(AnimatedBox, { role: "alert", ...toastAnimationConfig, children: /* @__PURE__ */ jsx$1(Alert, { controlled: true, onClose: handleClose, ...props, children }) }, "notification") });
|
|
53732
|
-
}
|
|
53718
|
+
}
|
|
53733
53719
|
const toast = {
|
|
53734
53720
|
danger: (children, props = {}, options = {}) => n.custom(
|
|
53735
53721
|
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "danger", ...props, children }),
|
|
@@ -53779,7 +53765,7 @@ function Switch({ children, disabled, checked }) {
|
|
|
53779
53765
|
}
|
|
53780
53766
|
);
|
|
53781
53767
|
}
|
|
53782
|
-
|
|
53768
|
+
function Slider({ disabled, children }) {
|
|
53783
53769
|
const theme = useTheme();
|
|
53784
53770
|
return /* @__PURE__ */ jsx$1(
|
|
53785
53771
|
motion.div,
|
|
@@ -53808,7 +53794,7 @@ const Slider = ({ disabled, children }) => {
|
|
|
53808
53794
|
children
|
|
53809
53795
|
}
|
|
53810
53796
|
);
|
|
53811
|
-
}
|
|
53797
|
+
}
|
|
53812
53798
|
const ToggleInput = styled.input(({ disabled, theme }) => ({
|
|
53813
53799
|
width: "1px",
|
|
53814
53800
|
height: "1px",
|