@nulogy/components 11.3.1 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/main.js +462 -55
  2. package/dist/main.module.js +461 -55
  3. package/dist/src/Alert/Alert.d.ts +12 -1
  4. package/dist/src/BottomSheet/BottomSheet.parts.d.ts +15 -11
  5. package/dist/src/BottomSheet/BottomSheet.styled.d.ts +25 -15
  6. package/dist/src/Box/Box.d.ts +259 -2
  7. package/dist/src/BrandedNavBar/DesktopMenu.d.ts +1 -1
  8. package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
  9. package/dist/src/BrandedNavBar/NavBar.d.ts +1 -1
  10. package/dist/src/BrandedNavBar/NavBarBackground.d.ts +3 -2
  11. package/dist/src/Branding/BrandingText.d.ts +2 -1
  12. package/dist/src/Breadcrumbs/BreadcrumbsList.d.ts +2 -1
  13. package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +4 -3
  14. package/dist/src/Button/DangerButton.d.ts +1 -1
  15. package/dist/src/Button/PrimaryButton.d.ts +1 -1
  16. package/dist/src/Button/QuietButton.d.ts +1 -1
  17. package/dist/src/ButtonGroup/ButtonGroup.d.ts +9 -6
  18. package/dist/src/Card/CardSet.d.ts +3 -2
  19. package/dist/src/DatePicker/DatePickerStyles.d.ts +2 -4
  20. package/dist/src/DateRange/DateRangeStyles.d.ts +2 -1
  21. package/dist/src/DateRange/EndTime.d.ts +27 -2
  22. package/dist/src/DateRange/StartTime.d.ts +27 -2
  23. package/dist/src/DescriptionList/DescriptionDetails.d.ts +2 -0
  24. package/dist/src/DescriptionList/DescriptionList.d.ts +6 -0
  25. package/dist/src/DescriptionList/DescriptionList.story.d.ts +14 -0
  26. package/dist/src/DescriptionList/DescriptionListContext.d.ts +13 -0
  27. package/dist/src/DescriptionList/DescriptionTerm.d.ts +2 -0
  28. package/dist/src/DescriptionList/index.d.ts +4 -0
  29. package/dist/src/Divider/Divider.d.ts +2 -1
  30. package/dist/src/Divider/Divider.story.d.ts +1 -1
  31. package/dist/src/DropdownMenu/DropdownButton.d.ts +3 -4
  32. package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -1
  33. package/dist/src/DropdownMenu/DropdownLink.d.ts +1 -1
  34. package/dist/src/DropdownMenu/DropdownText.d.ts +6 -2
  35. package/dist/src/FieldLabel/HelpText.d.ts +5 -2
  36. package/dist/src/FieldLabel/Label.d.ts +1 -1
  37. package/dist/src/FieldLabel/LabelText.d.ts +2 -1
  38. package/dist/src/Flex/Flex.d.ts +1 -5
  39. package/dist/src/Form/Field.d.ts +2 -1
  40. package/dist/src/Form/Fieldset.d.ts +2 -1
  41. package/dist/src/Form/Form.d.ts +3 -1
  42. package/dist/src/Form/FormSection.d.ts +1 -1
  43. package/dist/src/Icon/Icon.d.ts +1 -1
  44. package/dist/src/Link/Link.d.ts +1 -9
  45. package/dist/src/List/List.d.ts +1 -1
  46. package/dist/src/List/ListItem.d.ts +2 -3
  47. package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
  48. package/dist/src/Modal/ModalFooter.d.ts +2 -1
  49. package/dist/src/Modal/ModalHeader.d.ts +3 -4
  50. package/dist/src/NDSProvider/GlobalStyles.d.ts +3 -5
  51. package/dist/src/NDSProvider/ModalStyleOverride.d.ts +4 -2
  52. package/dist/src/NDSProvider/Reset.d.ts +2 -1
  53. package/dist/src/NavBarSearch/NavBarSearch.d.ts +6 -2
  54. package/dist/src/Overlay/Overlay.d.ts +3 -2
  55. package/dist/src/Pagination/PageNumber.d.ts +5 -2
  56. package/dist/src/Pagination/PaginationButton.d.ts +3 -2
  57. package/dist/src/Select/SelectOption.d.ts +1 -1
  58. package/dist/src/Select/customReactSelectStyles.d.ts +2 -3
  59. package/dist/src/StatusIndicator/StatusIndicator.d.ts +2 -1
  60. package/dist/src/Table/StyledTh.d.ts +2 -1
  61. package/dist/src/Tabs/TabContainer.d.ts +2 -1
  62. package/dist/src/Textarea/StyledTextarea.d.ts +1 -11
  63. package/dist/src/TimePicker/TimePickerDropdown.d.ts +2 -1
  64. package/dist/src/TimePicker/TimePickerInput.d.ts +3 -2
  65. package/dist/src/TimePicker/TimePickerOption.d.ts +3 -2
  66. package/dist/src/Tooltip/TooltipContainer.d.ts +4 -2
  67. package/dist/src/TopBar/TopBar.d.ts +2 -0
  68. package/dist/src/TopBar/TopBar.styled.d.ts +276 -12
  69. package/dist/src/TopBar/components/MenuItem.d.ts +2 -11
  70. package/dist/src/TopBar/components/MenuItemLink.d.ts +10 -0
  71. package/dist/src/TopBar/index.d.ts +1 -0
  72. package/dist/src/TopBar/stories/fixtures.d.ts +44 -2
  73. package/dist/src/Type/Headings.d.ts +26 -16
  74. package/dist/src/Type/Text.d.ts +2 -7
  75. package/dist/src/index.d.ts +1 -0
  76. package/dist/src/utils/ClickInputLabel.d.ts +3 -2
  77. package/dist/src/utils/PopperArrow.d.ts +4 -5
  78. package/dist/src/utils/story/dashed.d.ts +3 -3
  79. package/package.json +7 -5
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const StartTime: import("styled-components").StyledComponent<import("react").FC<import("react").PropsWithChildren<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
2
+ 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> & {
3
3
  variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
4
4
  disabled?: boolean;
5
5
  value?: string;
@@ -20,5 +20,30 @@ declare const StartTime: import("styled-components").StyledComponent<import("rea
20
20
  onBlur?: (...args: any[]) => any;
21
21
  onFocus?: (...args: any[]) => any;
22
22
  onClick?: (...args: any[]) => any;
23
- }>>, import("styled-components").DefaultTheme, {}, never>;
23
+ } & {
24
+ children?: import("react").ReactNode;
25
+ }, "ref"> & {
26
+ ref?: any;
27
+ }, 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> & {
28
+ variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
29
+ disabled?: boolean;
30
+ value?: string;
31
+ timeFormat?: string;
32
+ interval?: number;
33
+ placeholder?: string;
34
+ className?: string;
35
+ onChange?: (...args: any[]) => any;
36
+ onInputChange?: (...args: any[]) => any;
37
+ minTime?: string;
38
+ maxTime?: string;
39
+ defaultValue?: string;
40
+ "aria-label"?: string;
41
+ errorMessage?: string;
42
+ errorList?: import("react").ReactNode;
43
+ labelText?: string;
44
+ ref?: any;
45
+ onBlur?: (...args: any[]) => any;
46
+ onFocus?: (...args: any[]) => any;
47
+ onClick?: (...args: any[]) => any;
48
+ }>>, keyof import("react").Component<any, {}, any>>;
24
49
  export default StartTime;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DescriptionDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,6 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { DescriptionListConfig } from "./DescriptionListContext";
3
+ export type Props = PropsWithChildren<DescriptionListConfig>;
4
+ export declare function DescriptionList({ descriptionTermMaxWidth, layout, showDivider, density, fontSize, lineHeight, autoLayoutBreakpoint, children, }: Props): React.JSX.Element;
5
+ export declare const DescriptionListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const StyledDescriptionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, never>> & string;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { DescriptionList } from ".";
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof DescriptionList;
6
+ };
7
+ export default _default;
8
+ export declare function Layout(): React.JSX.Element;
9
+ export declare function Density(): React.JSX.Element;
10
+ export declare function FontSize(): React.JSX.Element;
11
+ export declare function Divider(): React.JSX.Element;
12
+ export declare function AutoLayoutCustomBreakpoint(): React.JSX.Element;
13
+ export declare function CustomDescriptionTermWidth(): React.JSX.Element;
14
+ export declare function CombinedFeatures(): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { DefaultNDSThemeType } from "../theme";
3
+ export interface DescriptionListConfig {
4
+ descriptionTermMaxWidth?: string;
5
+ layout?: "stacked" | "inline" | "auto";
6
+ showDivider?: boolean;
7
+ density?: "medium" | "compact" | "relaxed";
8
+ fontSize?: keyof DefaultNDSThemeType["fontSizes"];
9
+ lineHeight?: keyof DefaultNDSThemeType["lineHeights"];
10
+ autoLayoutBreakpoint?: string;
11
+ }
12
+ export declare const useDescriptionListContext: () => DescriptionListConfig;
13
+ export declare function DescriptionListProvider({ children, ...config }: PropsWithChildren<DescriptionListConfig>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DescriptionTerm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -0,0 +1,4 @@
1
+ export type { Props as DescriptionListProps } from "./DescriptionList";
2
+ export { DescriptionList } from "./DescriptionList";
3
+ export { DescriptionTerm } from "./DescriptionTerm";
4
+ export { DescriptionDetails } from "./DescriptionDetails";
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from "../StyledProps";
2
3
  export interface DividerProps extends StyledProps, React.HTMLAttributes<HTMLHRElement> {
3
4
  secondary?: boolean;
4
5
  }
5
- declare const Divider: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, DividerProps, never>;
6
+ declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, DividerProps>> & string;
6
7
  export default Divider;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, import("./Divider").DividerProps, never>;
4
+ component: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, import("./Divider").DividerProps>> & string;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Default: () => React.JSX.Element;
@@ -2,13 +2,12 @@ import React from "react";
2
2
  import { DefaultNDSThemeType } from "../theme";
3
3
  import { StyledProps } from "../StyledProps";
4
4
  import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
5
- declare const DropdownButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
6
- ref?: React.Ref<HTMLButtonElement>;
7
- } & StyledProps & {
5
+ type DropdownButtonProps = React.ComponentPropsWithRef<"button"> & StyledProps & {
8
6
  variant?: ComponentVariant;
9
7
  color?: string;
10
8
  theme?: DefaultNDSThemeType;
11
9
  hoverColor?: string;
12
10
  bgHoverColor?: string;
13
- }, never>;
11
+ };
12
+ declare const DropdownButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, DropdownButtonProps>> & string;
14
13
  export default DropdownButton;
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  color?: string;
3
4
  hoverColor?: string;
4
5
  bgHoverColor?: string;
5
6
  };
6
- declare const DropdownItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Props, never>;
7
+ declare const DropdownItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>> & string;
7
8
  export default DropdownItem;
@@ -8,5 +8,5 @@ interface Props extends React.ComponentPropsWithRef<"a">, StyledProps {
8
8
  hoverColor?: string;
9
9
  bgHoverColor?: string;
10
10
  }
11
- declare const DropdownLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Props, never>;
11
+ declare const DropdownLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Props>> & string;
12
12
  export default DropdownLink;
@@ -1,8 +1,12 @@
1
- declare const DropdownText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
1
+ /// <reference types="react" />
2
+ import type { TextProps } from "../Type";
3
+ 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>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
2
4
  variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
3
5
  inline?: boolean;
4
6
  disabled?: boolean;
5
7
  textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
6
8
  fontSize?: string;
7
- } & import("../StyledProps").StyledProps, never>;
9
+ } & import("../StyledProps").StyledProps, "ref"> & {
10
+ ref?: import("react").Ref<HTMLParagraphElement>;
11
+ }, TextProps>> & string;
8
12
  export default DropdownText;
@@ -1,8 +1,11 @@
1
- declare const HelpText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
1
+ /// <reference types="react" />
2
+ 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>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
2
3
  variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
3
4
  inline?: boolean;
4
5
  disabled?: boolean;
5
6
  textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
6
7
  fontSize?: string;
7
- } & import("..").StyledProps, never>;
8
+ } & import("..").StyledProps, "ref"> & {
9
+ ref?: import("react").Ref<HTMLParagraphElement>;
10
+ }, never>> & string;
8
11
  export default HelpText;
@@ -3,5 +3,5 @@ import type { SpaceProps } from "styled-system";
3
3
  import type { ComponentPropsWithRef } from "react";
4
4
  export interface LabelProps extends SpaceProps, DisplayProps, Omit<ComponentPropsWithRef<"label">, "color"> {
5
5
  }
6
- declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
6
+ declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, LabelProps>> & string;
7
7
  export default Label;
@@ -1,2 +1,3 @@
1
- declare const LabelText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const LabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
2
3
  export default LabelText;
@@ -5,9 +5,5 @@ export type FlexProps = BoxProps & {
5
5
  rowGap?: CSSProperties["rowGap"];
6
6
  columnGap?: CSSProperties["columnGap"];
7
7
  };
8
- declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps & {
9
- gap?: CSSProperties["gap"];
10
- rowGap?: CSSProperties["rowGap"];
11
- columnGap?: CSSProperties["columnGap"];
12
- }, never>;
8
+ declare const Flex: 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 BoxProps> & BoxProps, FlexProps>> & string;
13
9
  export default Flex;
@@ -1,4 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { BoxProps } from "../Box/Box";
2
3
  export type FieldProps = BoxProps;
3
- declare const Field: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxProps, never>;
4
+ declare const Field: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, never>> & string;
4
5
  export default Field;
@@ -1,2 +1,3 @@
1
- declare const Fieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const Fieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
2
3
  export default Fieldset;
@@ -2,5 +2,7 @@ import * as React from "react";
2
2
  import type { SpaceProps } from "styled-system";
3
3
  interface FormProps extends SpaceProps, React.HTMLProps<HTMLFormElement> {
4
4
  }
5
- declare const Form: import("styled-components").StyledComponent<({ title, children, ...props }: FormProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ declare const Form: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<FormProps, "ref"> & {
6
+ ref?: React.Ref<HTMLFormElement>;
7
+ }, never>> & string & Omit<({ title, children, ...props }: FormProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
6
8
  export default Form;
@@ -2,5 +2,5 @@ import React from "react";
2
2
  interface BaseFormSectionProps extends React.ComponentPropsWithRef<"fieldset"> {
3
3
  title?: string;
4
4
  }
5
- declare const FormSection: import("styled-components").StyledComponent<({ title, children, ...props }: BaseFormSectionProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
5
+ declare const FormSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<BaseFormSectionProps, never>> & string & Omit<({ title, children, ...props }: BaseFormSectionProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
6
6
  export default FormSection;
@@ -10,6 +10,6 @@ interface IconProps extends SpaceProps {
10
10
  focusable?: boolean;
11
11
  style?: React.CSSProperties;
12
12
  }
13
- declare const Icon: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, IconProps, never>;
13
+ declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<IconProps & React.RefAttributes<SVGSVGElement>, IconProps>> & string & Omit<React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>, keyof React.Component<any, {}, any>>;
14
14
  export declare function InlineIcon(props: IconProps): React.JSX.Element;
15
15
  export default Icon;
@@ -8,13 +8,5 @@ export type LinkProps = React.ComponentPropsWithRef<"a"> & Partial<StyledProps>
8
8
  to?: string;
9
9
  as?: React.ElementType | string;
10
10
  };
11
- declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
12
- ref?: React.Ref<HTMLAnchorElement>;
13
- } & Partial<StyledProps> & {
14
- underline?: boolean;
15
- hover?: string;
16
- variant?: ComponentVariant;
17
- to?: string;
18
- as?: React.ElementType | string;
19
- }, never>;
11
+ declare const Link: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, LinkProps>> & string;
20
12
  export default Link;
@@ -6,5 +6,5 @@ interface Props extends React.ComponentPropsWithRef<"ul">, StyledProps {
6
6
  leftAlign?: boolean;
7
7
  listStyle?: string;
8
8
  }
9
- declare const List: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, Props, never>;
9
+ declare const List: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, Props>> & string;
10
10
  export default List;
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { SpaceProps, ColorProps, TypographyProps } from "styled-system";
3
- declare const ListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
4
- ref?: React.Ref<HTMLLIElement>;
5
- } & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>, never>;
3
+ type Props = React.ComponentPropsWithRef<"li"> & SpaceProps & ColorProps & TypographyProps;
4
+ declare const ListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Props>> & string;
6
5
  export default ListItem;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const ModalCloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
+ 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"> & {
3
3
  ref?: import("react").Ref<HTMLButtonElement>;
4
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {}, never>;
4
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
+ ref?: import("react").Ref<HTMLButtonElement>;
6
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
5
7
  export default ModalCloseButton;
@@ -1,2 +1,3 @@
1
- declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const ModalFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
3
  export default ModalFooter;
@@ -1,6 +1,5 @@
1
- import { DefaultNDSThemeType } from "../theme";
2
- declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
1
+ /// <reference types="react" />
2
+ declare const ModalHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
3
  hasCloseButton?: boolean;
4
- theme?: DefaultNDSThemeType;
5
- }, never>;
4
+ }>> & string;
6
5
  export default ModalHeader;
@@ -1,7 +1,5 @@
1
- import { DefaultNDSThemeType } from "../theme";
2
- export type GlobalStylesProps = {
3
- theme?: DefaultNDSThemeType;
1
+ /// <reference types="react" />
2
+ declare const GlobalStyles: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
3
  locale?: string;
5
- };
6
- declare const GlobalStyles: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, GlobalStylesProps, never>;
4
+ }>> & string;
7
5
  export default GlobalStyles;
@@ -1,3 +1,5 @@
1
- import { GlobalStylesProps } from "./GlobalStyles";
2
- declare const ModalStyleOverride: import("styled-components").GlobalStyleComponent<GlobalStylesProps, import("styled-components").DefaultTheme>;
1
+ /// <reference types="react" />
2
+ declare const ModalStyleOverride: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & {
3
+ locale?: string;
4
+ }>;
3
5
  export default ModalStyleOverride;
@@ -1,2 +1,3 @@
1
- declare const Reset: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
1
+ /// <reference types="react" />
2
+ declare const Reset: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
2
3
  export default Reset;
@@ -1,7 +1,11 @@
1
1
  export default NavBarSearch;
2
- declare const NavBarSearch: import("styled-components").StyledComponent<({ name, onSubmit, ...props }: {
2
+ declare const NavBarSearch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
3
3
  [x: string]: any;
4
4
  name?: string;
5
5
  onSubmit: any;
6
- }) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ }, never>> & string & Omit<({ name, onSubmit, ...props }: {
7
+ [x: string]: any;
8
+ name?: string;
9
+ onSubmit: any;
10
+ }) => React.JSX.Element, keyof React.Component<any, {}, any>>;
7
11
  import React from "react";
@@ -1,10 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { FlexProps } from "../Flex/Flex";
2
3
  interface Props extends FlexProps {
3
4
  dark?: boolean;
4
5
  }
5
- declare const Overlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & {
6
+ declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Box").BoxProps> & import("../Box").BoxProps, keyof import("../Box").BoxProps | "gap" | "rowGap" | "columnGap"> & import("../Box").BoxProps & {
6
7
  gap?: import("csstype").Property.Gap<string | number>;
7
8
  rowGap?: import("csstype").Property.RowGap<string | number>;
8
9
  columnGap?: import("csstype").Property.ColumnGap<string | number>;
9
- } & Props, never>;
10
+ }, Props>> & string;
10
11
  export default Overlay;
@@ -1,8 +1,11 @@
1
+ /// <reference types="react" />
1
2
  type PageNumberProps = {
2
3
  currentPage: boolean;
3
4
  };
4
- declare const PageNumber: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
5
+ declare const PageNumber: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "disabled" | "currentPage"> & {
5
6
  disabled?: boolean;
6
7
  currentPage?: boolean;
7
- } & PageNumberProps, never>;
8
+ }, "ref"> & {
9
+ ref?: import("react").Ref<HTMLButtonElement>;
10
+ }, PageNumberProps>> & string;
8
11
  export default PageNumber;
@@ -1,5 +1,6 @@
1
- declare const PaginationButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
1
+ /// <reference types="react" />
2
+ declare const PaginationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
2
3
  disabled?: boolean;
3
4
  currentPage?: boolean;
4
- }, never>;
5
+ }>> & string;
5
6
  export default PaginationButton;
@@ -6,7 +6,7 @@ type SelectOptionProps = {
6
6
  isFocused: boolean;
7
7
  variant: ComponentVariant;
8
8
  };
9
- export declare const StyledOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SelectOptionProps, never>;
9
+ export declare const StyledOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SelectOptionProps>> & string;
10
10
  interface CustomOptionProps extends OptionProps {
11
11
  variant?: ComponentVariant;
12
12
  }
@@ -1,4 +1,3 @@
1
- import type { CSSObject } from "styled-components";
2
1
  import type { GroupBase, MenuPlacement, StylesConfig } from "react-select";
3
2
  import type { CSSProperties } from "react";
4
3
  import type { DefaultNDSThemeType } from "../theme";
@@ -20,9 +19,9 @@ export declare function getMenuBorderRadius({ border, menuPlacement, theme, }: {
20
19
  style: CSSProperties["borderBottomStyle"];
21
20
  };
22
21
  type VariantConfig = {
23
- [key in ComponentVariant]?: CSSObject;
22
+ [key in ComponentVariant]?: CSSProperties;
24
23
  };
25
- export declare function stylesForVariant(config: VariantConfig, variant?: ComponentVariant): CSSObject;
24
+ export declare function stylesForVariant(config: VariantConfig, variant?: ComponentVariant): CSSProperties;
26
25
  export declare function showIndicatorSeparator({ hasValue, isClearable, isMulti }: {
27
26
  hasValue: any;
28
27
  isClearable: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpaceProps, TypographyProps, FlexboxProps } from "styled-system";
2
3
  export declare const StatusIndicatorValues: {
3
4
  readonly neutral: "neutral";
@@ -12,5 +13,5 @@ export type StatusIndicatorType = typeof StatusIndicatorValues[keyof typeof Stat
12
13
  interface Props extends SpaceProps, TypographyProps, FlexboxProps {
13
14
  type?: StatusIndicatorType;
14
15
  }
15
- declare const StatusIndicator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Props, never>;
16
+ declare const StatusIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Props>> & string;
16
17
  export default StatusIndicator;
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  type StyledThProps = {
2
3
  width?: any;
3
4
  compact?: boolean;
4
5
  sticky?: any;
5
6
  };
6
- declare const StyledTh: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, StyledThProps, never>;
7
+ declare const StyledTh: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, StyledThProps>> & string;
7
8
  export default StyledTh;
@@ -1,2 +1,3 @@
1
- declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps, never>;
1
+ /// <reference types="react" />
2
+ declare const TabContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Box").BoxProps> & import("../Box").BoxProps, never>> & string;
2
3
  export default TabContainer;
@@ -11,15 +11,5 @@ export type StyledTextareaProps = React.ComponentPropsWithRef<"textarea"> & Spac
11
11
  rows?: number;
12
12
  isResizeable?: boolean;
13
13
  };
14
- declare const StyledTextarea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
15
- ref?: React.Ref<HTMLTextAreaElement>;
16
- } & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
17
- variant?: ComponentVariant;
18
- theme?: DefaultNDSThemeType;
19
- errorMessage?: string;
20
- errorList?: string[];
21
- error?: boolean;
22
- rows?: number;
23
- isResizeable?: boolean;
24
- }, never>;
14
+ declare const StyledTextarea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, StyledTextareaProps>> & string;
25
15
  export default StyledTextarea;
@@ -1,2 +1,3 @@
1
- declare const TimePickerDropdown: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const TimePickerDropdown: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
2
3
  export default TimePickerDropdown;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { InputFieldProps } from "../Input/InputField";
3
- declare const TimePickerInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, import("styled-components").DefaultTheme, InputFieldProps & {
3
+ type TimePickerInputProps = InputFieldProps & {
4
4
  dropdownIsOpen: boolean;
5
- }, never>;
5
+ };
6
+ declare const TimePickerInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, TimePickerInputProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
6
7
  export default TimePickerInput;
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
2
  import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
3
- declare const TimePickerOption: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, React.ClassAttributes<HTMLLIElement> & React.LiHTMLAttributes<HTMLLIElement> & {
3
+ type TimePickerOptionProps = React.ComponentProps<"li"> & {
4
4
  variant?: ComponentVariant;
5
5
  isSelected: boolean;
6
6
  isFocused: boolean;
7
7
  isClosest: boolean;
8
- }, never>;
8
+ };
9
+ declare const TimePickerOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, TimePickerOptionProps>> & string;
9
10
  export default TimePickerOption;
@@ -1,9 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { PositionProps } from "styled-system";
2
3
  import { DefaultNDSThemeType } from "../theme";
3
- declare const TooltipContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box").BoxProps & PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
4
+ type TooltipContainerProps = PositionProps & {
4
5
  theme?: DefaultNDSThemeType;
5
6
  dataPlacement?: "top" | "bottom" | "left" | "right";
6
7
  open?: boolean;
7
8
  position?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "-webkit-sticky" | "absolute" | "fixed" | "relative" | "static" | "sticky";
8
- }, never>;
9
+ };
10
+ declare const TooltipContainer: 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, TooltipContainerProps>> & string;
9
11
  export default TooltipContainer;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { BackLink } from "./components/BackLink";
3
3
  import { Menu } from "./components/Menu";
4
4
  import { MenuItem } from "./components/MenuItem";
5
+ import { MenuItemLink } from "./components/MenuItemLink";
5
6
  import { PageTitle } from "./components/PageTitle";
6
7
  export interface TopBarProps {
7
8
  children?: React.ReactNode;
@@ -13,4 +14,5 @@ export declare const TopBar: {
13
14
  BackLink: typeof BackLink;
14
15
  Menu: typeof Menu;
15
16
  MenuItem: typeof MenuItem;
17
+ MenuItemLink: typeof MenuItemLink;
16
18
  };