@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
|
@@ -23,7 +23,7 @@ export declare const BottomSheetParts: {
|
|
|
23
23
|
Sheet: typeof SheetPart;
|
|
24
24
|
ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
25
25
|
Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
-
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
26
|
+
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof React.HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
27
27
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
28
28
|
inline?: boolean;
|
|
29
29
|
compact?: boolean;
|
|
@@ -35,7 +35,7 @@ export declare const BottomSheetParts: {
|
|
|
35
35
|
}, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
36
36
|
ref?: React.Ref<HTMLHeadingElement>;
|
|
37
37
|
}>, never>, never>, never>> & string;
|
|
38
|
-
HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
38
|
+
HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof React.HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
39
39
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
40
40
|
inline?: boolean;
|
|
41
41
|
compact?: boolean;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { DialogContentProps } from "@reach/dialog";
|
|
2
2
|
import type { AnimationProps } from "framer-motion";
|
|
3
3
|
import type { HeightProps, LayoutProps, MaxHeightProps, MaxWidthProps, SpaceProps, WidthProps } from "styled-system";
|
|
4
|
-
declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
5
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
6
6
|
}, "as" | keyof import("@reach/dialog").DialogOverlayProps> & import("@reach/dialog").DialogOverlayProps & {
|
|
7
7
|
as?: "div";
|
|
8
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>,
|
|
8
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, "ref"> & {
|
|
9
|
+
ref?: import("react").Ref<HTMLElement | SVGElement>;
|
|
10
|
+
}, never>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
11
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
10
12
|
}, "as" | keyof import("@reach/dialog").DialogOverlayProps> & import("@reach/dialog").DialogOverlayProps & {
|
|
11
13
|
as?: "div";
|
|
12
14
|
}>, keyof import("react").Component<any, {}, any>>;
|
|
13
15
|
interface SheetProps extends DialogContentProps, AnimationProps, WidthProps, MaxWidthProps, HeightProps, MaxHeightProps, SpaceProps, LayoutProps {
|
|
14
16
|
}
|
|
15
|
-
declare const Sheet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
declare const Sheet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
18
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
17
19
|
}, "children" | "as"> & {
|
|
18
20
|
as?: "div";
|
|
19
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>,
|
|
21
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, "ref"> & {
|
|
22
|
+
ref?: import("react").Ref<HTMLElement | SVGElement>;
|
|
23
|
+
}, SheetProps>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
24
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
21
25
|
}, "children" | "as"> & {
|
|
22
26
|
as?: "div";
|
|
@@ -24,7 +28,7 @@ declare const Sheet: import("styled-components/dist/types").IStyledComponentBase
|
|
|
24
28
|
declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
25
29
|
declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
30
|
declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
-
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
31
|
+
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
28
32
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
29
33
|
inline?: boolean;
|
|
30
34
|
compact?: boolean;
|
|
@@ -36,7 +40,7 @@ declare const Title: import("styled-components/dist/types").IStyledComponentBase
|
|
|
36
40
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
37
41
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
38
42
|
}>, never>, never>, never>> & string;
|
|
39
|
-
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
43
|
+
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
40
44
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
41
45
|
inline?: boolean;
|
|
42
46
|
compact?: boolean;
|
package/dist/src/Box/Box.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ export interface BoxProps extends StyledProps, ComponentPropsWithRef<"div"> {
|
|
|
7
7
|
declare const Box: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>> & string;
|
|
8
8
|
export interface AnimatedBoxProps extends MotionProps, Omit<BoxProps, "onAnimationStart" | "onDrag" | "onDragStart" | "onDragEnd" | "style" | "transition"> {
|
|
9
9
|
}
|
|
10
|
-
export declare const AnimatedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
|
|
11
|
-
children?: import("react").ReactNode
|
|
12
|
-
slot?: string;
|
|
13
|
-
title?: string;
|
|
10
|
+
export declare const AnimatedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
11
|
+
children?: import("react").ReactNode;
|
|
14
12
|
property?: string;
|
|
15
13
|
color?: string;
|
|
16
14
|
content?: string;
|
|
17
15
|
translate?: "yes" | "no";
|
|
18
16
|
hidden?: boolean;
|
|
17
|
+
slot?: string;
|
|
18
|
+
title?: string;
|
|
19
19
|
defaultChecked?: boolean;
|
|
20
20
|
defaultValue?: string | number | readonly string[];
|
|
21
21
|
suppressContentEditableWarning?: boolean;
|
|
@@ -24,7 +24,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
24
24
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters";
|
|
25
25
|
autoFocus?: boolean;
|
|
26
26
|
className?: string;
|
|
27
|
-
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
27
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only";
|
|
28
28
|
contextMenu?: string;
|
|
29
29
|
dir?: string;
|
|
30
30
|
draggable?: boolean | "true" | "false";
|
|
@@ -32,7 +32,6 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
32
32
|
id?: string;
|
|
33
33
|
lang?: string;
|
|
34
34
|
nonce?: string;
|
|
35
|
-
placeholder?: string;
|
|
36
35
|
spellCheck?: boolean | "true" | "false";
|
|
37
36
|
tabIndex?: number;
|
|
38
37
|
radioGroup?: string;
|
|
@@ -56,7 +55,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
56
55
|
results?: number;
|
|
57
56
|
security?: string;
|
|
58
57
|
unselectable?: "off" | "on";
|
|
59
|
-
inputMode?: "search" | "
|
|
58
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
60
59
|
is?: string;
|
|
61
60
|
exportparts?: string;
|
|
62
61
|
part?: string;
|
|
@@ -72,7 +71,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
72
71
|
"aria-colindextext"?: string;
|
|
73
72
|
"aria-colspan"?: number;
|
|
74
73
|
"aria-controls"?: string;
|
|
75
|
-
"aria-current"?: boolean | "
|
|
74
|
+
"aria-current"?: boolean | "page" | "time" | "true" | "false" | "step" | "location" | "date";
|
|
76
75
|
"aria-describedby"?: string;
|
|
77
76
|
"aria-description"?: string;
|
|
78
77
|
"aria-details"?: string;
|
|
@@ -82,7 +81,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
82
81
|
"aria-expanded"?: boolean | "true" | "false";
|
|
83
82
|
"aria-flowto"?: string;
|
|
84
83
|
"aria-grabbed"?: boolean | "true" | "false";
|
|
85
|
-
"aria-haspopup"?: boolean | "
|
|
84
|
+
"aria-haspopup"?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
|
|
86
85
|
"aria-hidden"?: boolean | "true" | "false";
|
|
87
86
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
88
87
|
"aria-keyshortcuts"?: string;
|
|
@@ -99,7 +98,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
99
98
|
"aria-posinset"?: number;
|
|
100
99
|
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
|
101
100
|
"aria-readonly"?: boolean | "true" | "false";
|
|
102
|
-
"aria-relevant"?: "
|
|
101
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
103
102
|
"aria-required"?: boolean | "true" | "false";
|
|
104
103
|
"aria-roledescription"?: string;
|
|
105
104
|
"aria-rowcount"?: number;
|
|
@@ -250,9 +249,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
250
249
|
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
251
250
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
252
251
|
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
253
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
254
252
|
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
255
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
256
253
|
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
257
254
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
258
255
|
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
@@ -272,5 +269,7 @@ export declare const AnimatedBox: import("styled-components/dist/types").IStyled
|
|
|
272
269
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
273
270
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement>;
|
|
274
271
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement>;
|
|
275
|
-
} & MotionProps & import("react").RefAttributes<HTMLDivElement>,
|
|
272
|
+
} & MotionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
273
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
274
|
+
}, AnimatedBoxProps>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
276
275
|
export default Box;
|
|
@@ -7,5 +7,7 @@ export type DesktopMenuProps = {
|
|
|
7
7
|
themeColorObject: any;
|
|
8
8
|
};
|
|
9
9
|
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
10
|
-
declare const DesktopMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<DesktopMenuProps & React.RefAttributes<HTMLElement>,
|
|
10
|
+
declare const DesktopMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<DesktopMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
11
|
+
ref?: React.Ref<HTMLElement>;
|
|
12
|
+
}, never>> & string & Omit<React.ForwardRefExoticComponent<DesktopMenuProps & React.RefAttributes<HTMLElement>>, keyof React.Component<any, {}, any>>;
|
|
11
13
|
export default DesktopMenu;
|
|
@@ -22,10 +22,10 @@ const themeColorObject = {
|
|
|
22
22
|
textColor: "blackBlue",
|
|
23
23
|
logoColor: "blue",
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
function MediumNavBar({ menuData, environment, logo, showNulogyLogo, subtext, ...props }) {
|
|
26
26
|
const { t } = useTranslation();
|
|
27
27
|
return (_jsxs(_Fragment, { children: [environment && _jsx(EnvironmentBanner, { children: environment }), _jsx("header", { ...props, children: _jsxs(NavBarBackground, { backgroundColor: "white", height: NAVBAR_HEIGHT, children: [logo, _jsxs(Flex, { justifyContent: "space-between", alignContent: "flex-end", flexGrow: 1, ml: "x3", alignItems: "center", children: [menuData.primaryMenu && (_jsx(DesktopMenu, { themeColorObject: themeColorObject, "aria-label": t("primary navigation"), menuType: "primary", menuData: menuData.primaryMenu })), _jsxs(Flex, { justifySelf: "flex-end", alignItems: "center", children: [menuData.secondaryMenu && (_jsx(DesktopMenu, { themeColorObject: themeColorObject, "aria-label": t("secondary navigation"), menuType: "secondary", menuData: menuData.secondaryMenu })), showNulogyLogo && (_jsx(Box, { pl: "x3", children: _jsx(NulogyLogoContainer, { height: NAVBAR_HEIGHT, subText: subtext }) }))] })] })] }) })] }));
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
29
|
const SelectNavBarBasedOnWidth = ({ width, defaultOpen, breakpointUpper, brandingLinkHref = "/", brandingLinkTo, brandingLinkComponent, logoSrc, ...props }) => {
|
|
30
30
|
const currentWidth = width || (typeof window !== "undefined" && window.innerWidth);
|
|
31
31
|
const logo = (_jsx(BrandLogoContainer, { logoSrc: logoSrc, brandingLinkHref: brandingLinkHref, brandingLinkTo: brandingLinkTo, brandingLinkComponent: brandingLinkComponent, subtext: props.subtext }));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button";
|
|
2
|
-
declare const DangerButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>,
|
|
2
|
+
declare const DangerButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
4
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
3
5
|
export default DangerButton;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button";
|
|
2
|
-
declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>,
|
|
2
|
+
declare const PrimaryButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
4
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
3
5
|
export default PrimaryButton;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button";
|
|
2
|
-
declare const QuietButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>,
|
|
2
|
+
declare const QuietButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
4
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
3
5
|
export default QuietButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const EndTime: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
1
|
+
declare const EndTime: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
2
2
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
value?: string;
|
|
@@ -19,11 +19,9 @@ declare const EndTime: import("styled-components/dist/types").IStyledComponentBa
|
|
|
19
19
|
onBlur?: (...args: any[]) => any;
|
|
20
20
|
onFocus?: (...args: any[]) => any;
|
|
21
21
|
onClick?: (...args: any[]) => any;
|
|
22
|
-
} & {
|
|
23
|
-
|
|
24
|
-
}, "
|
|
25
|
-
ref?: any;
|
|
26
|
-
}, never>> & string & Omit<import("react").FC<import("react").PropsWithChildren<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
22
|
+
}, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
23
|
+
ref?: import("react").Ref<any>;
|
|
24
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
27
25
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
28
26
|
disabled?: boolean;
|
|
29
27
|
value?: string;
|
|
@@ -44,5 +42,5 @@ declare const EndTime: import("styled-components/dist/types").IStyledComponentBa
|
|
|
44
42
|
onBlur?: (...args: any[]) => any;
|
|
45
43
|
onFocus?: (...args: any[]) => any;
|
|
46
44
|
onClick?: (...args: any[]) => any;
|
|
47
|
-
}>>, keyof import("react").Component<any, {}, any>>;
|
|
45
|
+
}, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
|
|
48
46
|
export default EndTime;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const StartTime: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
1
|
+
declare const StartTime: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
2
2
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
value?: string;
|
|
@@ -19,11 +19,9 @@ declare const StartTime: import("styled-components/dist/types").IStyledComponent
|
|
|
19
19
|
onBlur?: (...args: any[]) => any;
|
|
20
20
|
onFocus?: (...args: any[]) => any;
|
|
21
21
|
onClick?: (...args: any[]) => any;
|
|
22
|
-
} & {
|
|
23
|
-
|
|
24
|
-
}, "
|
|
25
|
-
ref?: any;
|
|
26
|
-
}, never>> & string & Omit<import("react").FC<import("react").PropsWithChildren<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
22
|
+
}, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
23
|
+
ref?: import("react").Ref<any>;
|
|
24
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
27
25
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
28
26
|
disabled?: boolean;
|
|
29
27
|
value?: string;
|
|
@@ -44,5 +42,5 @@ declare const StartTime: import("styled-components/dist/types").IStyledComponent
|
|
|
44
42
|
onBlur?: (...args: any[]) => any;
|
|
45
43
|
onFocus?: (...args: any[]) => any;
|
|
46
44
|
onClick?: (...args: any[]) => any;
|
|
47
|
-
}>>, keyof import("react").Component<any, {}, any>>;
|
|
45
|
+
}, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
|
|
48
46
|
export default StartTime;
|
|
@@ -11,7 +11,7 @@ export declare const OutlinedDd: import("styled-components/dist/types").IStyledC
|
|
|
11
11
|
$outlined: boolean;
|
|
12
12
|
$highlighted?: boolean;
|
|
13
13
|
}>> & string;
|
|
14
|
-
export declare const DashedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Record<string, unknown> & {
|
|
15
|
-
|
|
14
|
+
export declare const DashedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<Record<string, unknown>, "ref"> & {
|
|
15
|
+
ref?: unknown;
|
|
16
16
|
}) | (Omit<Record<string, unknown>, "ref"> & React.RefAttributes<React.Component<Record<string, unknown>, any, any>>), import("styled-components/dist/types").BaseObject>> & (string & (Omit<React.ComponentClass<Record<string, unknown>, any>, keyof React.Component<any, {}, any>> | Omit<React.FunctionComponent<Record<string, unknown>>, keyof React.Component<any, {}, any>>));
|
|
17
17
|
export declare const SampleContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,5 @@ type DropdownMenuContainerProps = {
|
|
|
7
7
|
dataPlacement?: any;
|
|
8
8
|
theme?: DefaultNDSThemeType;
|
|
9
9
|
};
|
|
10
|
-
declare const DropdownMenuContainer:
|
|
10
|
+
declare const DropdownMenuContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Box").BoxProps> & import("../Box").BoxProps, DropdownMenuContainerProps>> & string;
|
|
11
11
|
export default DropdownMenuContainer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TextProps } from "../Type";
|
|
2
|
-
declare const DropdownText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
2
|
+
declare const DropdownText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
3
3
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
4
4
|
inline?: boolean;
|
|
5
5
|
compact?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
1
|
+
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
2
2
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
3
3
|
inline?: boolean;
|
|
4
4
|
compact?: boolean;
|
package/dist/src/Icon/Icon.d.ts
CHANGED
|
@@ -10,7 +10,11 @@ export interface IconProps extends SpaceProps {
|
|
|
10
10
|
focusable?: boolean;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
}
|
|
13
|
-
declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<IconProps & React.RefAttributes<SVGSVGElement>,
|
|
13
|
+
declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<IconProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
14
|
+
ref?: React.Ref<SVGSVGElement>;
|
|
15
|
+
}, IconProps>> & string & Omit<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>, keyof React.Component<any, {}, any>>;
|
|
14
16
|
export declare const InlineIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
-
export declare const InputIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<IconProps & React.RefAttributes<SVGSVGElement>,
|
|
17
|
+
export declare const InputIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<IconProps & React.RefAttributes<SVGSVGElement>, "ref"> & {
|
|
18
|
+
ref?: React.Ref<SVGSVGElement>;
|
|
19
|
+
}, keyof IconProps> & IconProps, PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>>> & string;
|
|
16
20
|
export default Icon;
|
|
@@ -25,7 +25,7 @@ export const AsAButton = () => _jsx(Link, { as: "button", children: "Link" });
|
|
|
25
25
|
AsAButton.story = {
|
|
26
26
|
name: "As a <button>",
|
|
27
27
|
};
|
|
28
|
-
export const _ReactRouterLink = () => (_jsx(BrowserRouter, { children: _jsx(
|
|
28
|
+
export const _ReactRouterLink = () => (_jsx(BrowserRouter, { children: _jsx(Link, { as: ReactRouterLink, to: "/place", children: "Link" }) }));
|
|
29
29
|
_ReactRouterLink.story = {
|
|
30
30
|
name: "with react router",
|
|
31
31
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type ModalProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
isOpen?: boolean;
|
|
4
5
|
title?: string;
|
|
5
6
|
ariaLabel?: string;
|
|
@@ -19,7 +20,8 @@ type ModalProps = {
|
|
|
19
20
|
footerContent?: React.ReactNode;
|
|
20
21
|
parentSelector?: (...args: any) => HTMLElement;
|
|
21
22
|
};
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
declare function Modal({ isOpen, shouldFocusAfterRender, shouldReturnFocusAfterClose, maxWidth, ariaHideApp, children, title, onRequestClose, onAfterOpen, ariaLabel, ariaDescribedBy, portalClassName, overlayClassName, className, id, appElement, footerContent, closeAriaLabel, parentSelector, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare namespace Modal {
|
|
25
|
+
var setAppElement: any;
|
|
26
|
+
}
|
|
25
27
|
export default Modal;
|
package/dist/src/Modal/Modal.js
CHANGED
|
@@ -56,7 +56,7 @@ const StyledReactModal = styled(ReactModal)(({ maxWidth }) => ({
|
|
|
56
56
|
WebkitFontSmoothing: "antialiased",
|
|
57
57
|
MozOsxFontSmoothing: "grayscale",
|
|
58
58
|
}));
|
|
59
|
-
|
|
59
|
+
function Modal({ isOpen = true, shouldFocusAfterRender = true, shouldReturnFocusAfterClose = true, maxWidth = "624px", ariaHideApp = true, children, title, onRequestClose, onAfterOpen, ariaLabel, ariaDescribedBy, portalClassName, overlayClassName, className, id, appElement, footerContent, closeAriaLabel, parentSelector, }) {
|
|
60
60
|
const modalHasHeader = Boolean(onRequestClose || title);
|
|
61
61
|
const themeContext = useContext(ThemeContext);
|
|
62
62
|
return (_jsx(StyledReactModal, { maxWidth: maxWidth, contentLabel: ariaLabel, onRequestClose: onRequestClose, onAfterOpen: onAfterOpen, shouldFocusAfterRender: shouldFocusAfterRender, shouldReturnFocusAfterClose: shouldReturnFocusAfterClose, isOpen: isOpen, portalClassName: portalClassName, overlayClassName: overlayClassName, className: className, id: id, aria: {
|
|
@@ -65,7 +65,7 @@ const Modal = ({ isOpen = true, shouldFocusAfterRender = true, shouldReturnFocus
|
|
|
65
65
|
}, shouldCloseOnOverlayClick: true, shouldCloseOnEsc: true, style: {
|
|
66
66
|
overlay: overlayStyle(themeContext),
|
|
67
67
|
}, appElement: appElement, ariaHideApp: ariaHideApp, parentSelector: parentSelector, children: _jsx(ModalWrapper, { closeAriaLabel: closeAriaLabel, modalHasHeader: modalHasHeader, title: title, onRequestClose: onRequestClose, footerContent: footerContent, children: children }) }));
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
function ModalWrapper({ modalHasHeader, title, onRequestClose, closeAriaLabel, children, footerContent, }) {
|
|
70
70
|
const theme = useTheme();
|
|
71
71
|
useScrollLock();
|
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { Modal as NDSModal } from "../index";
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component:
|
|
7
|
-
isOpen?: boolean;
|
|
8
|
-
title?: string;
|
|
9
|
-
ariaLabel?: string;
|
|
10
|
-
onRequestClose?: (...args: any[]) => any;
|
|
11
|
-
closeAriaLabel?: string;
|
|
12
|
-
onAfterOpen?: (...args: any[]) => any;
|
|
13
|
-
shouldFocusAfterRender?: boolean;
|
|
14
|
-
shouldReturnFocusAfterClose?: boolean;
|
|
15
|
-
ariaDescribedBy?: string;
|
|
16
|
-
maxWidth?: string;
|
|
17
|
-
portalClassName?: string;
|
|
18
|
-
overlayClassName?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
id?: string;
|
|
21
|
-
appElement?: JSX.Element;
|
|
22
|
-
ariaHideApp?: boolean;
|
|
23
|
-
footerContent?: React.ReactNode;
|
|
24
|
-
parentSelector?: (...args: any) => HTMLElement;
|
|
25
|
-
}>> & {
|
|
26
|
-
setAppElement: (element: string | HTMLElement) => void;
|
|
27
|
-
};
|
|
5
|
+
component: typeof NDSModal;
|
|
28
6
|
args: {
|
|
29
7
|
ariaHideApp: false;
|
|
30
8
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare const ModalCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1
|
+
declare const ModalCloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: import("react").Ref<HTMLButtonElement>;
|
|
3
|
-
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>,
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
4
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
5
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
6
|
ref?: import("react").Ref<HTMLButtonElement>;
|
|
5
7
|
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
8
|
export default ModalCloseButton;
|
|
@@ -4,5 +4,5 @@ type ModalContentProps = React.ComponentPropsWithRef<"div"> & {
|
|
|
4
4
|
hasFooter?: any;
|
|
5
5
|
theme?: DefaultNDSThemeType;
|
|
6
6
|
};
|
|
7
|
-
declare const ModalContent: React.
|
|
7
|
+
declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ModalContentProps>> & string;
|
|
8
8
|
export default ModalContent;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
3
|
-
declare const Item: React.ForwardRefExoticComponent<Omit<import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>,
|
|
3
|
+
declare const Item: React.ForwardRefExoticComponent<Omit<import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
4
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
5
|
+
}, never>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
4
6
|
export default Item;
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
2
|
declare const AppSwitcher: {
|
|
3
|
-
Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
5
|
+
}, Omit<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
+
}>, never>, import("../../shared/NavigationMenuContent").NavigationMenuContentProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
List: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>, "ref"> & {
|
|
9
|
+
ref?: import("react").Ref<HTMLUListElement>;
|
|
10
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>, "ref"> & {
|
|
12
|
+
ref?: import("react").Ref<HTMLLIElement>;
|
|
13
|
+
}, never>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
6
14
|
Link: import("react").ForwardRefExoticComponent<Omit<import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
7
15
|
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
8
16
|
}, never>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
9
17
|
Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
18
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
11
19
|
}, never>> & string;
|
|
12
|
-
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
20
|
+
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
13
21
|
variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
14
22
|
inline?: boolean;
|
|
15
23
|
compact?: boolean;
|
|
@@ -20,7 +28,7 @@ declare const AppSwitcher: {
|
|
|
20
28
|
ref?: import("react").Ref<HTMLParagraphElement>;
|
|
21
29
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
22
30
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
23
|
-
}>, never>, never>, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
31
|
+
}>, never>, never>, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
24
32
|
variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
25
33
|
inline?: boolean;
|
|
26
34
|
compact?: boolean;
|
|
@@ -32,7 +40,7 @@ declare const AppSwitcher: {
|
|
|
32
40
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
33
41
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
34
42
|
}>, never>, never>>, never>, never>> & string;
|
|
35
|
-
Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
43
|
+
Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
36
44
|
variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
37
45
|
inline?: boolean;
|
|
38
46
|
compact?: boolean;
|
|
@@ -41,7 +49,7 @@ declare const AppSwitcher: {
|
|
|
41
49
|
fontSize?: string;
|
|
42
50
|
} & import("../../../..").StyledProps, "ref"> & {
|
|
43
51
|
ref?: import("react").Ref<HTMLParagraphElement>;
|
|
44
|
-
}, Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" |
|
|
52
|
+
}, Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
45
53
|
variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
46
54
|
inline?: boolean;
|
|
47
55
|
compact?: boolean;
|
|
@@ -3,6 +3,10 @@ import type { MenuItem, MenuItems } from "../../../types";
|
|
|
3
3
|
export default function MoreMenuItem({ moreMenu }: {
|
|
4
4
|
moreMenu: MenuItems;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const HiddenNavigationMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>,
|
|
6
|
+
export declare const HiddenNavigationMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
7
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
8
|
+
}, Omit<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
|
|
9
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
10
|
+
}>, never>, {
|
|
7
11
|
item: MenuItem;
|
|
8
12
|
}>> & string & Omit<React.ForwardRefExoticComponent<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
2
|
import { StyledProps } from "../../../../StyledProps";
|
|
3
|
-
export declare const SubMenuItemLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
3
|
+
export declare const SubMenuItemLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
4
|
+
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
5
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
|
+
export declare const SubMenuItemButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
8
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export declare const SubMenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
11
|
+
}, Omit<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
13
|
+
}>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
14
|
+
export declare const SubMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>, "ref"> & {
|
|
15
|
+
ref?: import("react").Ref<HTMLLIElement>;
|
|
16
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>>, keyof import("react").Component<any, {}, any>>;
|
|
17
|
+
export declare const SubMenuList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>, "ref"> & {
|
|
18
|
+
ref?: import("react").Ref<HTMLUListElement>;
|
|
19
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>, keyof import("react").Component<any, {}, any>>;
|