@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
|
@@ -2,7 +2,7 @@ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
|
2
2
|
export declare const IndentedContainer: 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, {
|
|
3
3
|
level: number;
|
|
4
4
|
}>> & string;
|
|
5
|
-
export declare const MenuItemGroupLabel: 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" |
|
|
5
|
+
export declare const MenuItemGroupLabel: 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> & {
|
|
6
6
|
variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
7
7
|
inline?: boolean;
|
|
8
8
|
compact?: boolean;
|
|
@@ -12,6 +12,12 @@ export declare const MenuItemGroupLabel: import("styled-components/dist/types").
|
|
|
12
12
|
} & import("../../../..").StyledProps, "ref"> & {
|
|
13
13
|
ref?: import("react").Ref<HTMLParagraphElement>;
|
|
14
14
|
}, never>> & string;
|
|
15
|
-
export declare const MobileNavigationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>,
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
export declare const MobileNavigationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
16
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
17
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
18
|
+
export declare const MobileNavigationLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
19
|
+
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
20
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
21
|
+
export declare const MobileSecondaryLogoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
23
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -2,7 +2,11 @@ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
|
2
2
|
import { StyledProps } from "../../../StyledProps";
|
|
3
3
|
declare const UserMenu: {
|
|
4
4
|
Header: ({ title, subtitle1, subtitle2, containerProps }: import("./parts/Header").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<
|
|
5
|
+
Container: 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.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
+
}, Omit<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
9
|
+
}>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
10
|
Item: import("react").ForwardRefExoticComponent<import("./parts/Item").UserMenuItemProps & {
|
|
7
11
|
level?: number;
|
|
8
12
|
} & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
|
-
export declare const UserMenuLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, {
|
|
2
|
+
export declare const UserMenuLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
3
|
+
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
4
|
+
}, {
|
|
3
5
|
$isMobile?: boolean;
|
|
4
6
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
5
|
-
export declare const UserMenuTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, {
|
|
7
|
+
export declare const UserMenuTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
9
|
+
}, {
|
|
6
10
|
$isMobile?: boolean;
|
|
7
11
|
}>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -2,5 +2,9 @@ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
|
2
2
|
import { StyledProps } from "../../../StyledProps";
|
|
3
3
|
export interface NavigationMenuContentProps extends RadixNavigationMenu.NavigationMenuContentProps, StyledProps {
|
|
4
4
|
}
|
|
5
|
-
declare const NavigationMenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<
|
|
5
|
+
declare const NavigationMenuContent: 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"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
|
+
}, Omit<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
9
|
+
}>, never>, NavigationMenuContentProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
10
|
export default NavigationMenuContent;
|
|
@@ -9,4 +9,6 @@ export interface NavigationMenuItemProps extends RadixNavigationMenu.NavigationM
|
|
|
9
9
|
* A single Radix <NavigationMenu.Item> that can represent any MenuItem variant.
|
|
10
10
|
*/
|
|
11
11
|
export declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
12
|
-
export declare const NavigationMenuSubList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>,
|
|
12
|
+
export declare const NavigationMenuSubList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & {
|
|
13
|
+
ref?: React.Ref<HTMLUListElement>;
|
|
14
|
+
}, never>> & string & Omit<React.ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>, keyof React.Component<any, {}, any>>;
|
|
@@ -1,16 +1,42 @@
|
|
|
1
1
|
import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
|
|
2
2
|
import { IconProps } from "../../../Icon/Icon";
|
|
3
3
|
import { StyledProps } from "../../../StyledProps";
|
|
4
|
-
export declare const NavigationMenuRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuProps & import("react").RefAttributes<HTMLElement>,
|
|
5
|
-
|
|
4
|
+
export declare const NavigationMenuRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuProps & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
5
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
6
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
7
|
+
export declare const NavigationMenuList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLUListElement>;
|
|
9
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
10
|
interface NavigationMenuTriggerProps extends RadixNavigationMenu.NavigationMenuTriggerProps, StyledProps {
|
|
7
11
|
disableMenuToggleOnHover?: boolean;
|
|
8
12
|
}
|
|
9
|
-
export declare const NavigationMenuTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
13
|
+
export declare const NavigationMenuTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
14
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
15
|
+
}, Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
16
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
17
|
+
}>, NavigationMenuTriggerProps>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
18
|
+
export declare const NavigationMenuLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
19
|
+
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
20
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
21
|
+
export declare const NavigationMenuIconLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
22
|
+
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
23
|
+
}, keyof StyledProps> & StyledProps, never>> & string;
|
|
24
|
+
export declare const NavigationMenuIconTrigger: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
25
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
26
|
+
}, Omit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
27
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
28
|
+
}>, NavigationMenuTriggerProps>, never>, never>> & string;
|
|
29
|
+
export declare const CaretDown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<IconProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
30
|
+
ref?: import("react").Ref<SVGSVGElement>;
|
|
31
|
+
}, keyof IconProps> & IconProps, import("styled-components").FastOmit<Omit<IconProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
32
|
+
ref?: import("react").Ref<SVGSVGElement>;
|
|
33
|
+
}, keyof IconProps> & IconProps>, never>, Partial<IconProps>>> & string;
|
|
34
|
+
export declare const CaretRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<IconProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
35
|
+
ref?: import("react").Ref<SVGSVGElement>;
|
|
36
|
+
}, keyof IconProps> & IconProps, import("styled-components").FastOmit<Omit<IconProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
37
|
+
ref?: import("react").Ref<SVGSVGElement>;
|
|
38
|
+
}, keyof IconProps> & IconProps>, never>, Partial<IconProps>>> & string;
|
|
39
|
+
export declare const RadixNavigationMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>, "ref"> & {
|
|
40
|
+
ref?: import("react").Ref<HTMLLIElement>;
|
|
41
|
+
}, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>>, keyof import("react").Component<any, {}, any>>;
|
|
16
42
|
export {};
|
|
@@ -4,14 +4,9 @@ import { Radio } from "../index";
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.ForwardRefExoticComponent<Omit<{
|
|
7
|
-
children?: React.ReactNode
|
|
7
|
+
children?: React.ReactNode;
|
|
8
8
|
value?: string | readonly string[] | number | undefined;
|
|
9
9
|
ref?: React.Ref<HTMLInputElement>;
|
|
10
|
-
form?: string | undefined;
|
|
11
|
-
slot?: string | undefined;
|
|
12
|
-
style?: React.CSSProperties | undefined;
|
|
13
|
-
title?: string | undefined;
|
|
14
|
-
pattern?: string | undefined;
|
|
15
10
|
property?: string | undefined;
|
|
16
11
|
color?: string | undefined;
|
|
17
12
|
content?: string | undefined;
|
|
@@ -19,6 +14,11 @@ declare const _default: {
|
|
|
19
14
|
translate?: "yes" | "no" | undefined;
|
|
20
15
|
width?: number | string | undefined;
|
|
21
16
|
hidden?: boolean | undefined;
|
|
17
|
+
form?: string | undefined;
|
|
18
|
+
slot?: string | undefined;
|
|
19
|
+
style?: React.CSSProperties | undefined;
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
pattern?: string | undefined;
|
|
22
22
|
key?: React.Key | null | undefined;
|
|
23
23
|
defaultChecked?: boolean | undefined;
|
|
24
24
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -28,7 +28,7 @@ declare const _default: {
|
|
|
28
28
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
29
29
|
autoFocus?: boolean | undefined;
|
|
30
30
|
className?: string | undefined;
|
|
31
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
31
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
32
32
|
contextMenu?: string | undefined;
|
|
33
33
|
dir?: string | undefined;
|
|
34
34
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -36,7 +36,6 @@ declare const _default: {
|
|
|
36
36
|
id?: string | undefined;
|
|
37
37
|
lang?: string | undefined;
|
|
38
38
|
nonce?: string | undefined;
|
|
39
|
-
placeholder?: string | undefined;
|
|
40
39
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
40
|
tabIndex?: number | undefined;
|
|
42
41
|
radioGroup?: string | undefined;
|
|
@@ -257,9 +256,7 @@ declare const _default: {
|
|
|
257
256
|
onPointerCancel?: React.PointerEventHandler<HTMLInputElement>;
|
|
258
257
|
onPointerCancelCapture?: React.PointerEventHandler<HTMLInputElement>;
|
|
259
258
|
onPointerEnter?: React.PointerEventHandler<HTMLInputElement>;
|
|
260
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLInputElement>;
|
|
261
259
|
onPointerLeave?: React.PointerEventHandler<HTMLInputElement>;
|
|
262
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLInputElement>;
|
|
263
260
|
onPointerOver?: React.PointerEventHandler<HTMLInputElement>;
|
|
264
261
|
onPointerOverCapture?: React.PointerEventHandler<HTMLInputElement>;
|
|
265
262
|
onPointerOut?: React.PointerEventHandler<HTMLInputElement>;
|
|
@@ -283,23 +280,24 @@ declare const _default: {
|
|
|
283
280
|
list?: string | undefined;
|
|
284
281
|
name?: string | undefined;
|
|
285
282
|
type?: React.HTMLInputTypeAttribute | undefined;
|
|
283
|
+
max?: number | string | undefined;
|
|
284
|
+
min?: number | string | undefined;
|
|
286
285
|
alt?: string | undefined;
|
|
287
286
|
src?: string | undefined;
|
|
288
287
|
disabled?: boolean | undefined;
|
|
289
|
-
formAction?: string | undefined;
|
|
288
|
+
formAction?: string | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
290
289
|
formEncType?: string | undefined;
|
|
291
290
|
formMethod?: string | undefined;
|
|
292
291
|
formNoValidate?: boolean | undefined;
|
|
293
292
|
formTarget?: string | undefined;
|
|
294
|
-
autoComplete?:
|
|
293
|
+
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
295
294
|
accept?: string | undefined;
|
|
296
295
|
capture?: boolean | "user" | "environment" | undefined;
|
|
297
296
|
checked?: boolean | undefined;
|
|
298
|
-
max?: number | string | undefined;
|
|
299
297
|
maxLength?: number | undefined;
|
|
300
|
-
min?: number | string | undefined;
|
|
301
298
|
minLength?: number | undefined;
|
|
302
299
|
multiple?: boolean | undefined;
|
|
300
|
+
placeholder?: string | undefined;
|
|
303
301
|
readOnly?: boolean | undefined;
|
|
304
302
|
required?: boolean | undefined;
|
|
305
303
|
step?: number | string | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { BoxProps } from "../Box/Box";
|
|
3
2
|
type SummaryProps = Omit<BoxProps, "as"> & {
|
|
4
3
|
breakpoint?: number | string;
|
|
5
4
|
};
|
|
6
|
-
declare
|
|
5
|
+
declare function Summary({ breakpoint, children, ...rest }: SummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default Summary;
|
|
@@ -21,10 +21,10 @@ const SummaryWrapper = styled(Box)(({ theme, breakpoint }) => ({
|
|
|
21
21
|
rowGap: 0,
|
|
22
22
|
},
|
|
23
23
|
}));
|
|
24
|
-
|
|
24
|
+
function Summary({ breakpoint, children, ...rest }) {
|
|
25
25
|
const theme = useTheme();
|
|
26
26
|
breakpoint || (breakpoint = theme.breakpoints.medium);
|
|
27
27
|
const breakpointPx = numberFromDimension(breakpoint);
|
|
28
28
|
return (_jsx(SummaryContextProvider, { breakpoint: breakpointPx, children: _jsx(SummaryWrapper, { breakpoint: breakpointPx, ...rest, children: children }) }));
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
export default Summary;
|
|
@@ -3,5 +3,7 @@ type SummaryContextValue = {
|
|
|
3
3
|
breakpoint: number;
|
|
4
4
|
};
|
|
5
5
|
export declare function useSummaryContext(): SummaryContextValue;
|
|
6
|
-
export declare
|
|
6
|
+
export declare function SummaryContextProvider({ breakpoint, children }: SummaryContextValue & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -8,8 +8,8 @@ export function useSummaryContext() {
|
|
|
8
8
|
}
|
|
9
9
|
return context;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export function SummaryContextProvider({ breakpoint, children }) {
|
|
12
12
|
return (_jsx(SummaryContext.Provider, { value: {
|
|
13
13
|
breakpoint,
|
|
14
14
|
}, children: children }));
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -4,5 +4,5 @@ type SummaryItemProps = Omit<FlexProps, "as"> & {
|
|
|
4
4
|
value: number | string;
|
|
5
5
|
status: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare function SummaryItem({ value, status, ...rest }: SummaryItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default SummaryItem;
|
|
@@ -11,10 +11,10 @@ const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
|
11
11
|
flexDirection: "row",
|
|
12
12
|
},
|
|
13
13
|
}));
|
|
14
|
-
|
|
14
|
+
function SummaryItem({ value, status, ...rest }) {
|
|
15
15
|
const { breakpoint } = useSummaryContext();
|
|
16
16
|
const matches = useMediaQuery(`(max-width: ${breakpoint}px)`);
|
|
17
17
|
delete rest["children"];
|
|
18
18
|
return (_jsxs(SummaryItemWrapper, { breakpoint: breakpoint, ...rest, children: [_jsx(Text, { fontWeight: "medium", fontSize: !matches ? "heading4" : undefined, children: value }), status] }));
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export default SummaryItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
2
|
import type { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
3
3
|
import type { SwitchProps } from "./Switch";
|
|
4
4
|
type SwitcherProps = {
|
|
@@ -7,5 +7,5 @@ type SwitcherProps = {
|
|
|
7
7
|
selected?: string;
|
|
8
8
|
onChange?: (value: string) => void;
|
|
9
9
|
};
|
|
10
|
-
declare
|
|
10
|
+
declare function Switcher({ variant, selected, onChange, ...rest }: SwitcherProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default Switcher;
|
|
@@ -3,7 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { Box } from "../Box";
|
|
4
4
|
import FocusManager from "../utils/ts/FocusManager";
|
|
5
5
|
import { useComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
6
|
-
|
|
6
|
+
function Switcher({ variant, selected, onChange, ...rest }) {
|
|
7
7
|
const componentVariant = useComponentVariant(variant);
|
|
8
8
|
const optionRefs = [];
|
|
9
9
|
const isSelected = (value, index) => {
|
|
@@ -37,5 +37,5 @@ const Switcher = ({ variant, selected, onChange, ...rest }) => {
|
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
return (_jsx(Box, { display: "inline-flex", bg: "whiteGrey", borderRadius: "9999px", ...rest, children: _jsx(FocusManager, { refs: optionRefs, defaultFocusedIndex: getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => options(focusedIndex, setFocusedIndex, handleArrowNavigation) }) }));
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
41
|
export default Switcher;
|
|
@@ -7,5 +7,5 @@ type TabScrollIndicatorProps = {
|
|
|
7
7
|
ariaLabelLeft?: string;
|
|
8
8
|
ariaLabelRight?: string;
|
|
9
9
|
};
|
|
10
|
-
declare
|
|
10
|
+
declare function TabScrollIndicator({ side, width, ariaLabelLeft, ariaLabelRight, onClick, ...props }: TabScrollIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default TabScrollIndicator;
|
|
@@ -36,7 +36,7 @@ const TabScrollIndicatorButton = styled.button(({ side, width, theme }) => ({
|
|
|
36
36
|
opacity: ".5",
|
|
37
37
|
},
|
|
38
38
|
}));
|
|
39
|
-
|
|
39
|
+
function TabScrollIndicator({ side = "left", width = 40, ariaLabelLeft, ariaLabelRight, onClick, ...props }) {
|
|
40
40
|
const { t } = useTranslation();
|
|
41
41
|
const rightArrowLabel = ariaLabelRight || t("next");
|
|
42
42
|
const leftArrowLabel = ariaLabelLeft || t("previous");
|
|
@@ -44,5 +44,5 @@ const TabScrollIndicator = ({ side = "left", width = 40, ariaLabelLeft, ariaLabe
|
|
|
44
44
|
event.preventDefault();
|
|
45
45
|
}
|
|
46
46
|
return (_jsx(TabScrollIndicatorButton, { ...props, width: width, tabIndex: -1, onClick: onClick, onMouseDown: preventFocusMovement, side: side, "aria-label": side === "right" ? rightArrowLabel : leftArrowLabel, children: _jsx(Icon, { icon: side === "right" ? "rightArrow" : "leftArrow" }) }));
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
export default TabScrollIndicator;
|
|
@@ -38,5 +38,5 @@ export declare const getTimeOptions: (interval: any, timeFormat: any, minTime: a
|
|
|
38
38
|
value: string;
|
|
39
39
|
label: string;
|
|
40
40
|
}[];
|
|
41
|
-
declare const TimePicker: React.
|
|
41
|
+
declare const TimePicker: React.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & React.RefAttributes<any>>;
|
|
42
42
|
export default TimePicker;
|
|
@@ -2,5 +2,7 @@ import { InputFieldProps } from "../Input/InputField";
|
|
|
2
2
|
type TimePickerInputProps = InputFieldProps & {
|
|
3
3
|
dropdownIsOpen: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare const TimePickerInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>,
|
|
5
|
+
declare const TimePickerInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLInputElement>;
|
|
7
|
+
}, TimePickerInputProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
6
8
|
export default TimePickerInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
-
|
|
4
|
+
type TimeRangeProps = SpaceProps & {
|
|
5
5
|
variant?: ComponentVariant;
|
|
6
6
|
timeFormat?: string;
|
|
7
7
|
onRangeChange?: (range: {
|
|
@@ -24,5 +24,6 @@ declare const TimeRange: React.ForwardRefExoticComponent<Omit<SpaceProps<Require
|
|
|
24
24
|
endAriaLabel?: string;
|
|
25
25
|
endTimeProps?: any;
|
|
26
26
|
startTimeProps?: any;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
|
+
declare const TimeRange: React.ForwardRefExoticComponent<Omit<TimeRangeProps, "ref"> & React.RefAttributes<unknown>>;
|
|
28
29
|
export default TimeRange;
|
|
@@ -4,12 +4,12 @@ import { toast as _toast } from "react-hot-toast";
|
|
|
4
4
|
import { Alert } from "../Alert";
|
|
5
5
|
import { AnimatedBox } from "../Box";
|
|
6
6
|
import { toastAnimationConfig } from "../Toast/Toast";
|
|
7
|
-
|
|
7
|
+
function CustomToast({ isVisible, id, children, ...props }) {
|
|
8
8
|
const handleClose = () => {
|
|
9
9
|
_toast.dismiss(id);
|
|
10
10
|
};
|
|
11
11
|
return (_jsx(AnimatePresence, { children: isVisible && (_jsx(AnimatedBox, { role: "alert", ...toastAnimationConfig, children: _jsx(Alert, { controlled: true, onClose: handleClose, ...props, children: children }) }, "notification")) }));
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
const toast = {
|
|
14
14
|
danger: (children, props = {}, options = {}) => _toast.custom((t) => (_jsx(CustomToast, { id: t.id, isVisible: t.visible, type: "danger", ...props, children: children })), { duration: props.isCloseable ? Infinity : options.duration, ...options }),
|
|
15
15
|
informative: (children, props = {}, options = {}) => _toast.custom((t) => (_jsx(CustomToast, { id: t.id, isVisible: t.visible, type: "informative", ...props, children: children })), { duration: props.isCloseable ? Infinity : options.duration, ...options }),
|
|
@@ -18,7 +18,7 @@ function Switch({ children, disabled, checked }) {
|
|
|
18
18
|
const componentVariant = useComponentVariant();
|
|
19
19
|
return (_jsx(AnimatedBox, { marginTop: componentVariant === "touch" ? "x0_25" : "none", position: "relative", flexShrink: 0, height: "24px", width: "48px", bg: disabled ? "grey" : getSwitchBackground(checked), borderRadius: "20px", padding: "2px", boxShadow: "small", animate: checked ? "toggled" : "initial", whileHover: "active", whileFocus: "active", children: children }));
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
function Slider({ disabled, children }) {
|
|
22
22
|
const theme = useTheme();
|
|
23
23
|
return (_jsx(motion.div, { className: "slider", initial: false, variants: {
|
|
24
24
|
active: {
|
|
@@ -37,7 +37,7 @@ const Slider = ({ disabled, children }) => {
|
|
|
37
37
|
borderRadius: "50%",
|
|
38
38
|
backgroundColor: disabled ? theme.colors.whiteGrey : theme.colors.white,
|
|
39
39
|
}, children: children }));
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
41
|
const ToggleInput = styled.input(({ disabled, theme }) => ({
|
|
42
42
|
width: "1px",
|
|
43
43
|
height: "1px",
|
|
@@ -9,26 +9,28 @@ declare const MenuButton: import("styled-components/dist/types").IStyledComponen
|
|
|
9
9
|
declare const NavigationItemsList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
10
10
|
declare const StyledBackLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
11
11
|
declare const StyledPageTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
12
|
-
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"> & {
|
|
12
|
+
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"> & {
|
|
13
13
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
14
14
|
}, "as" | keyof import("@reach/dialog").DialogOverlayProps> & import("@reach/dialog").DialogOverlayProps & {
|
|
15
15
|
as?: "div";
|
|
16
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>,
|
|
16
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, "ref"> & {
|
|
17
|
+
ref?: import("react").Ref<HTMLElement | SVGElement>;
|
|
18
|
+
}, never>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
19
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
18
20
|
}, "as" | keyof import("@reach/dialog").DialogOverlayProps> & import("@reach/dialog").DialogOverlayProps & {
|
|
19
21
|
as?: "div";
|
|
20
22
|
}>, keyof import("react").Component<any, {}, any>>;
|
|
21
23
|
declare const TileLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
22
|
-
declare const StyledMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
23
|
-
children?: import("react").ReactNode
|
|
24
|
+
declare const StyledMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
25
|
+
children?: import("react").ReactNode;
|
|
24
26
|
value?: string | number | readonly string[];
|
|
25
|
-
slot?: string;
|
|
26
|
-
title?: string;
|
|
27
27
|
property?: string;
|
|
28
28
|
color?: string;
|
|
29
29
|
content?: string;
|
|
30
30
|
translate?: "yes" | "no";
|
|
31
31
|
hidden?: boolean;
|
|
32
|
+
slot?: string;
|
|
33
|
+
title?: string;
|
|
32
34
|
defaultChecked?: boolean;
|
|
33
35
|
defaultValue?: string | number | readonly string[];
|
|
34
36
|
suppressContentEditableWarning?: boolean;
|
|
@@ -37,7 +39,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
37
39
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters";
|
|
38
40
|
autoFocus?: boolean;
|
|
39
41
|
className?: string;
|
|
40
|
-
contentEditable?: "inherit" | (boolean | "true" | "false");
|
|
42
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only";
|
|
41
43
|
contextMenu?: string;
|
|
42
44
|
dir?: string;
|
|
43
45
|
draggable?: boolean | "true" | "false";
|
|
@@ -45,7 +47,6 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
45
47
|
id?: string;
|
|
46
48
|
lang?: string;
|
|
47
49
|
nonce?: string;
|
|
48
|
-
placeholder?: string;
|
|
49
50
|
spellCheck?: boolean | "true" | "false";
|
|
50
51
|
tabIndex?: number;
|
|
51
52
|
radioGroup?: string;
|
|
@@ -69,7 +70,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
69
70
|
results?: number;
|
|
70
71
|
security?: string;
|
|
71
72
|
unselectable?: "off" | "on";
|
|
72
|
-
inputMode?: "search" | "
|
|
73
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
73
74
|
is?: string;
|
|
74
75
|
exportparts?: string;
|
|
75
76
|
part?: string;
|
|
@@ -85,7 +86,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
85
86
|
"aria-colindextext"?: string;
|
|
86
87
|
"aria-colspan"?: number;
|
|
87
88
|
"aria-controls"?: string;
|
|
88
|
-
"aria-current"?: boolean | "
|
|
89
|
+
"aria-current"?: boolean | "page" | "time" | "true" | "false" | "step" | "location" | "date";
|
|
89
90
|
"aria-describedby"?: string;
|
|
90
91
|
"aria-description"?: string;
|
|
91
92
|
"aria-details"?: string;
|
|
@@ -95,7 +96,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
95
96
|
"aria-expanded"?: boolean | "true" | "false";
|
|
96
97
|
"aria-flowto"?: string;
|
|
97
98
|
"aria-grabbed"?: boolean | "true" | "false";
|
|
98
|
-
"aria-haspopup"?: boolean | "
|
|
99
|
+
"aria-haspopup"?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
|
|
99
100
|
"aria-hidden"?: boolean | "true" | "false";
|
|
100
101
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
101
102
|
"aria-keyshortcuts"?: string;
|
|
@@ -112,7 +113,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
112
113
|
"aria-posinset"?: number;
|
|
113
114
|
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
|
114
115
|
"aria-readonly"?: boolean | "true" | "false";
|
|
115
|
-
"aria-relevant"?: "
|
|
116
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
116
117
|
"aria-required"?: boolean | "true" | "false";
|
|
117
118
|
"aria-roledescription"?: string;
|
|
118
119
|
"aria-rowcount"?: number;
|
|
@@ -263,9 +264,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
263
264
|
onPointerCancel?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
264
265
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
265
266
|
onPointerEnter?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
266
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
267
267
|
onPointerLeave?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
268
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
269
268
|
onPointerOver?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
270
269
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
271
270
|
onPointerOut?: import("react").PointerEventHandler<HTMLLIElement>;
|
|
@@ -285,5 +284,7 @@ declare const StyledMenuItem: import("styled-components/dist/types").IStyledComp
|
|
|
285
284
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement>;
|
|
286
285
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement>;
|
|
287
286
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement>;
|
|
288
|
-
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLLIElement>,
|
|
287
|
+
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLLIElement>, "ref"> & {
|
|
288
|
+
ref?: import("react").Ref<HTMLLIElement>;
|
|
289
|
+
}, never>> & string & Omit<import("framer-motion").ForwardRefComponent<HTMLLIElement, import("framer-motion").HTMLMotionProps<"li">>, keyof import("react").Component<any, {}, any>>;
|
|
289
290
|
export { Navigation, Header, NavigationItemsList, StyledBackLink, StyledPageTitle, Overlay, TileLink, StylelessButton, MenuItemList, MenuButton, StyledMenuItem, };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
2
|
import { MaxWidthProps } from "styled-system";
|
|
3
3
|
import { StyledBackLink } from "../TopBar.styled";
|
|
4
4
|
interface BackLinkProps extends MaxWidthProps, ComponentProps<typeof StyledBackLink> {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
to?: string;
|
|
5
7
|
}
|
|
6
8
|
export declare function BackLink({ children, maxWidth, ...props }: BackLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IconName } from "@nulogy/icons";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
2
|
+
import React, { ComponentProps } from "react";
|
|
3
3
|
import { TileLink } from "../TopBar.styled";
|
|
4
4
|
export interface MenuItemLinkProps extends ComponentProps<typeof TileLink> {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
to?: string;
|
|
5
7
|
title: string;
|
|
6
8
|
description?: string;
|
|
7
9
|
icon: IconName;
|
|
@@ -25,4 +25,4 @@ export const WithACustomMaxWidth = () => (_jsxs(TopBar.Root, { children: [_jsx(T
|
|
|
25
25
|
large: "12ch",
|
|
26
26
|
extraLarge: "16ch",
|
|
27
27
|
}, children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { children: menuItems.map((props) => (_jsx(TopBar.MenuItem, { children: _jsx(TopBar.MenuItemLink, { ...props }) }, props.title))) })] }));
|
|
28
|
-
export const WithARouterLink = () => (_jsx(BrowserRouter, { children: _jsxs(TopBar.Root, { children: [_jsx(
|
|
28
|
+
export const WithARouterLink = () => (_jsx(BrowserRouter, { children: _jsxs(TopBar.Root, { children: [_jsx(TopBar.BackLink, { as: Link, to: "/cycle-counts", children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { children: menuItems.map((props) => (_jsx(TopBar.MenuItem, { children: _jsx(TopBar.MenuItemLink, { ...props }) }, props.title))) })] }) }));
|
|
@@ -28,5 +28,5 @@ export const WithRouterLinks = () => {
|
|
|
28
28
|
...item,
|
|
29
29
|
to: href,
|
|
30
30
|
}));
|
|
31
|
-
return (_jsxs(TopBar.Root, { children: [_jsx(TopBar.BackLink, { href: "#", children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { defaultOpened: true, children: _jsx(BrowserRouter, { basename: "/", children: routerMenuItems.map((item) => (_jsx(TopBar.MenuItem, { children: _jsx(
|
|
31
|
+
return (_jsxs(TopBar.Root, { children: [_jsx(TopBar.BackLink, { href: "#", children: "Cycle counts" }), _jsx(TopBar.PageTitle, { children: "Cycle count #3992" }), _jsx(TopBar.Menu, { defaultOpened: true, children: _jsx(BrowserRouter, { basename: "/", children: routerMenuItems.map((item) => (_jsx(TopBar.MenuItem, { children: _jsx(TopBar.MenuItemLink, { as: Link, ...item }) }, item.title))) }) })] }));
|
|
32
32
|
};
|