@nulogy/components 8.11.0 → 8.11.1
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 +1442 -1418
- package/dist/main.module.js +397 -371
- package/dist/src/Alert/Alert.d.ts +2 -2
- package/dist/src/Alert/CloseButton.d.ts +1 -1
- package/dist/src/AsyncSelect/AsyncSelect.d.ts +1 -1
- package/dist/src/Box/Box.d.ts +4 -4
- package/dist/src/BrandedNavBar/BrandLogoContainer.d.ts +1 -1
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/EnvironmentBanner.d.ts +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +2 -2
- package/dist/src/BrandedNavBar/MenuTriggerButton.d.ts +2 -2
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +3 -3
- package/dist/src/BrandedNavBar/NavBar.d.ts +1 -1
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +1 -1
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.d.ts +2 -2
- package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +1 -1
- package/dist/src/BrandedNavBar/SmallNavBar.d.ts +3 -3
- package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +1 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.d.ts +2 -2
- package/dist/src/BrandedNavBar/TriggerFunctionProps.d.ts +1 -1
- package/dist/src/Branding/Branding.d.ts +1 -1
- package/dist/src/Branding/LettermarkLogo.d.ts +1 -1
- package/dist/src/Branding/WordmarkLogo.d.ts +1 -1
- package/dist/src/Button/Button.d.ts +2 -2
- package/dist/src/Button/ControlIcon.d.ts +4 -3
- package/dist/src/Button/IconicButton.d.ts +2 -2
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/src/DatePicker/DatePicker.d.ts +1 -1
- package/dist/src/DatePicker/DatePickerHeader.d.ts +1 -1
- package/dist/src/DatePicker/DatePickerInput.d.ts +1 -1
- package/dist/src/DateRange/DateRange.d.ts +1 -1
- package/dist/src/DateRange/DateRangeStyles.d.ts +0 -3
- package/dist/src/DateRange/EndTime.d.ts +1 -1
- package/dist/src/DateRange/StartTime.d.ts +1 -1
- package/dist/src/Divider/Divider.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownButton.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownItem.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/FieldLabel/FieldLabel.type.d.ts +1 -1
- package/dist/src/FieldLabel/HelpText.d.ts +9 -1
- package/dist/src/Flex/Flex.d.ts +1 -1
- package/dist/src/Form/Field.d.ts +1 -1
- package/dist/src/Form/Form.d.ts +1 -1
- package/dist/src/Form/FormSection.d.ts +1 -1
- package/dist/src/Icon/Icon.d.ts +10 -2
- package/dist/src/Icon/LoadingIcon.d.ts +1 -1
- package/dist/src/Input/Input.d.ts +1 -1
- package/dist/src/Input/InputField.d.ts +1 -1
- package/dist/src/Input/InputField.type.d.ts +15 -15
- package/dist/src/Input/Prefix.d.ts +1 -1
- package/dist/src/Input/Suffix.d.ts +1 -1
- package/dist/src/Layout/ApplicationFrame.d.ts +1 -1
- package/dist/src/Layout/Header.d.ts +2 -2
- package/dist/src/Layout/Page.d.ts +1 -1
- package/dist/src/Layout/Sidebar.d.ts +1 -1
- package/dist/src/Link/Link.d.ts +15 -2
- package/dist/src/List/List.d.ts +1 -1
- package/dist/src/List/ListItem.d.ts +1 -1
- package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +1 -1
- package/dist/src/Modal/Modal.d.ts +1 -1
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/NDSProvider/GlobalStyles.d.ts +1 -1
- package/dist/src/NDSProvider/NDSProvider.d.ts +1 -1
- package/dist/src/NavBar/MenuTrigger.d.ts +2 -2
- package/dist/src/NavBar/NavBar.d.ts +1 -1
- package/dist/src/Overlay/Overlay.d.ts +1 -1
- package/dist/src/Popper/Popper.d.ts +1 -1
- package/dist/src/Radio/Radio.d.ts +2 -2
- package/dist/src/RangeContainer/RangeContainer.d.ts +1 -1
- package/dist/src/Select/Select.d.ts +2 -2
- package/dist/src/Select/customReactSelectStyles.d.ts +1 -1
- package/dist/src/SortingTable/SortingTable.d.ts +1 -1
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/dist/src/StyledProps/cursor.d.ts +1 -1
- package/dist/src/StyledProps/index.d.ts +1 -1
- package/dist/src/StyledProps/textOverflow.d.ts +1 -1
- package/dist/src/StyledProps/transform.d.ts +1 -1
- package/dist/src/StyledProps/transition.d.ts +1 -1
- package/dist/src/StyledProps/visibility.d.ts +1 -1
- package/dist/src/Summary/Summary.d.ts +1 -1
- package/dist/src/Summary/SummaryContext.d.ts +1 -1
- package/dist/src/Summary/SummaryItem.d.ts +1 -1
- package/dist/src/Switcher/Switch.d.ts +2 -2
- package/dist/src/Switcher/Switcher.d.ts +2 -2
- package/dist/src/Table/BaseTable.d.ts +1 -1
- package/dist/src/Table/StatefulTable.d.ts +2 -2
- package/dist/src/Table/StyledTh.d.ts +1 -1
- package/dist/src/Table/Table.d.ts +4 -4
- package/dist/src/Table/Table.types.d.ts +6 -6
- package/dist/src/Table/TableBody.d.ts +1 -1
- package/dist/src/Table/TableCell.d.ts +1 -1
- package/dist/src/Table/TableFoot.d.ts +1 -1
- package/dist/src/Table/TableHead.d.ts +1 -1
- package/dist/src/Table/TableWithExpandableRows.story.d.ts +3 -3
- package/dist/src/Tabs/Tab.d.ts +2 -2
- package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicators.d.ts +2 -2
- package/dist/src/Tabs/Tabs.d.ts +2 -2
- package/dist/src/Textarea/StyledTextarea.d.ts +1 -1
- package/dist/src/Textarea/Textarea.d.ts +1 -1
- package/dist/src/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/TimeRange/TimeRange.d.ts +1 -1
- package/dist/src/Toast/Toast.d.ts +1 -1
- package/dist/src/Toggle/Toggle.d.ts +3 -3
- package/dist/src/Toggle/ToggleButton.d.ts +1 -1
- package/dist/src/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/TruncatedText/MaybeTooltip.d.ts +1 -1
- package/dist/src/TruncatedText/TruncatedTextProps.d.ts +1 -1
- package/dist/src/Type/Headings.d.ts +33 -4
- package/dist/src/Type/Text.d.ts +9 -2
- package/dist/src/Validation/InlineValidation.d.ts +1 -1
- package/dist/src/constants/keyCodes.d.ts +12 -12
- package/dist/src/theme.type.d.ts +14 -14
- package/dist/src/utils/DetectOutsideClick.d.ts +8 -5
- package/dist/src/utils/PopperArrow.d.ts +1 -1
- package/dist/src/utils/PreventBodyElementScrolling.d.ts +7 -4
- package/dist/src/utils/ScrollIndicators.d.ts +8 -2
- package/dist/src/utils/ts/FocusManager.d.ts +3 -3
- package/dist/src/utils/ts/recursivePartial.d.ts +1 -1
- package/dist/src/utils/useWindowDimension.story.d.ts +1 -1
- package/dist/src/utils/withMenuState.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
|
-
|
|
3
|
+
type TimeRangeProps = SpaceProps & {
|
|
4
4
|
timeFormat?: string;
|
|
5
5
|
onRangeChange?: (...args: any[]) => any;
|
|
6
6
|
onStartTimeChange?: (...args: any[]) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps } from "styled-system";
|
|
3
3
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
declare const ToggleComponent: React.ForwardRefExoticComponent<SpaceProps<Required<import("styled-system").Theme<
|
|
4
|
+
declare const ToggleComponent: React.ForwardRefExoticComponent<SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
|
|
5
5
|
onChange?: (...args: any[]) => any;
|
|
6
6
|
toggled?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -22,7 +22,7 @@ declare const ToggleComponent: React.ForwardRefExoticComponent<SpaceProps<Requir
|
|
|
22
22
|
} & {
|
|
23
23
|
defaultToggled?: boolean;
|
|
24
24
|
onClick?: boolean;
|
|
25
|
-
} & React.RefAttributes<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
26
|
-
ref?:
|
|
25
|
+
} & React.RefAttributes<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
26
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
}>>;
|
|
28
28
|
export default ToggleComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
-
|
|
3
|
+
type ToggleButtonProps = React.ComponentPropsWithRef<"input"> & {
|
|
4
4
|
defaultToggled?: boolean;
|
|
5
5
|
toggled?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
4
|
-
|
|
4
|
+
type MaybeTooltipProps = TooltipProps & {
|
|
5
5
|
showTooltip?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const MaybeTooltip: {
|
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Heading1: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
3
|
+
inline?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
6
|
+
fontSize?: string;
|
|
7
|
+
} & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BoxShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/cursor").CursorProps & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/textOverflow").TextOverflowProps & import("../StyledProps/transform").TransformProps & import("../StyledProps/transition").TransitionProps & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("../StyledProps/visibility").VisibilityProps & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
8
|
+
theme?: import("../theme.type").DefaultNDSThemeType;
|
|
9
|
+
}, never>;
|
|
10
|
+
declare const Heading2: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
14
|
+
fontSize?: string;
|
|
15
|
+
} & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BoxShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/cursor").CursorProps & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/textOverflow").TextOverflowProps & import("../StyledProps/transform").TransformProps & import("../StyledProps/transition").TransitionProps & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("../StyledProps/visibility").VisibilityProps & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
16
|
+
theme?: import("../theme.type").DefaultNDSThemeType;
|
|
17
|
+
}, never>;
|
|
18
|
+
declare const Heading3: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
19
|
+
inline?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
22
|
+
fontSize?: string;
|
|
23
|
+
} & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BoxShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/cursor").CursorProps & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/textOverflow").TextOverflowProps & import("../StyledProps/transform").TransformProps & import("../StyledProps/transition").TransitionProps & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("../StyledProps/visibility").VisibilityProps & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
24
|
+
theme?: import("../theme.type").DefaultNDSThemeType;
|
|
25
|
+
}, never>;
|
|
26
|
+
declare const Heading4: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
27
|
+
inline?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
30
|
+
fontSize?: string;
|
|
31
|
+
} & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BoxShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/cursor").CursorProps & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/textOverflow").TextOverflowProps & import("../StyledProps/transform").TransformProps & import("../StyledProps/transition").TransitionProps & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("../StyledProps/visibility").VisibilityProps & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
32
|
+
theme?: import("../theme.type").DefaultNDSThemeType;
|
|
33
|
+
}, never>;
|
|
5
34
|
export { Heading1, Heading2, Heading3, Heading4 };
|
package/dist/src/Type/Text.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DefaultNDSThemeType } from "../theme.type";
|
|
3
3
|
import { StyledProps } from "../StyledProps";
|
|
4
|
-
export
|
|
4
|
+
export type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
5
5
|
inline?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
@@ -9,5 +9,12 @@ export declare type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
|
9
9
|
} & StyledProps & {
|
|
10
10
|
theme?: DefaultNDSThemeType;
|
|
11
11
|
};
|
|
12
|
-
declare const Text: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme,
|
|
12
|
+
declare const Text: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
13
|
+
inline?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
16
|
+
fontSize?: string;
|
|
17
|
+
} & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BoxShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/cursor").CursorProps & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("../StyledProps/textOverflow").TextOverflowProps & import("../StyledProps/transform").TransformProps & import("../StyledProps/transition").TransitionProps & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("../StyledProps/visibility").VisibilityProps & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
18
|
+
theme?: DefaultNDSThemeType;
|
|
19
|
+
}, never>;
|
|
13
20
|
export default Text;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare const keyCodes: Readonly<{
|
|
2
|
-
TAB:
|
|
3
|
-
RETURN:
|
|
4
|
-
ESC:
|
|
5
|
-
SPACE:
|
|
6
|
-
PAGEUP:
|
|
7
|
-
PAGEDOWN:
|
|
8
|
-
END:
|
|
9
|
-
HOME:
|
|
10
|
-
LEFT:
|
|
11
|
-
UP:
|
|
12
|
-
RIGHT:
|
|
13
|
-
DOWN:
|
|
2
|
+
TAB: 9;
|
|
3
|
+
RETURN: 13;
|
|
4
|
+
ESC: 27;
|
|
5
|
+
SPACE: 32;
|
|
6
|
+
PAGEUP: 33;
|
|
7
|
+
PAGEDOWN: 34;
|
|
8
|
+
END: 35;
|
|
9
|
+
HOME: 36;
|
|
10
|
+
LEFT: 37;
|
|
11
|
+
UP: 38;
|
|
12
|
+
RIGHT: 39;
|
|
13
|
+
DOWN: 40;
|
|
14
14
|
}>;
|
|
15
15
|
export default keyCodes;
|
package/dist/src/theme.type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type Colors = {
|
|
2
2
|
black: string;
|
|
3
3
|
blackBlue: string;
|
|
4
4
|
darkBlue: string;
|
|
@@ -23,7 +23,7 @@ declare type Colors = {
|
|
|
23
23
|
categorical5: string;
|
|
24
24
|
categorical6: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type FontSizes = {
|
|
27
27
|
smaller: string;
|
|
28
28
|
small: string;
|
|
29
29
|
medium: string;
|
|
@@ -35,7 +35,7 @@ declare type FontSizes = {
|
|
|
35
35
|
heading3: string;
|
|
36
36
|
heading4: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
type LineHeights = {
|
|
39
39
|
base: string;
|
|
40
40
|
smallTextBase: string;
|
|
41
41
|
smallTextCompressed: string;
|
|
@@ -48,13 +48,13 @@ declare type LineHeights = {
|
|
|
48
48
|
sectionTitle: string;
|
|
49
49
|
subsectionTitle: string;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
type FontWeights = {
|
|
52
52
|
light: number;
|
|
53
53
|
normal: number;
|
|
54
54
|
medium: number;
|
|
55
55
|
bold: number;
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
type Space = {
|
|
58
58
|
none: string;
|
|
59
59
|
half: string;
|
|
60
60
|
x1: string;
|
|
@@ -65,32 +65,32 @@ declare type Space = {
|
|
|
65
65
|
x6: string;
|
|
66
66
|
x8: string;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
type Fonts = {
|
|
69
69
|
base: string;
|
|
70
70
|
mono: string;
|
|
71
71
|
sc: string;
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
type Borders = Array<any>;
|
|
74
|
+
type Shadows = {
|
|
75
75
|
small: string;
|
|
76
76
|
medium: string;
|
|
77
77
|
large: string;
|
|
78
78
|
focus: string;
|
|
79
79
|
error: string;
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
type Radii = {
|
|
82
82
|
small: string;
|
|
83
83
|
medium: string;
|
|
84
84
|
circle: string;
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
type Breakpoints = {
|
|
87
87
|
extraSmall: string;
|
|
88
88
|
small: string;
|
|
89
89
|
medium: string;
|
|
90
90
|
large: string;
|
|
91
91
|
extraLarge: string;
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
type ZIndices = {
|
|
94
94
|
content: number;
|
|
95
95
|
tabsScollIndicator: number;
|
|
96
96
|
tabsBar: number;
|
|
@@ -102,7 +102,7 @@ declare type ZIndices = {
|
|
|
102
102
|
sidebar: number;
|
|
103
103
|
navBar: number;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
105
|
+
export type DefaultNDSThemeType = {
|
|
106
106
|
colors: Colors;
|
|
107
107
|
fontSizes: FontSizes;
|
|
108
108
|
lineHeights: LineHeights;
|
|
@@ -116,8 +116,8 @@ export declare type DefaultNDSThemeType = {
|
|
|
116
116
|
breakpoints: Breakpoints;
|
|
117
117
|
zIndices: ZIndices;
|
|
118
118
|
};
|
|
119
|
-
|
|
119
|
+
type RecursivePartial<T> = {
|
|
120
120
|
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type ThemeType = RecursivePartial<DefaultNDSThemeType>;
|
|
123
123
|
export {};
|
|
@@ -2,14 +2,17 @@ export default DetectOutsideClick;
|
|
|
2
2
|
declare class DetectOutsideClick extends React.Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
handleOutsideClick(e: any): void;
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
componentWillUnmount(): void;
|
|
7
|
+
render(): JSX.Element;
|
|
5
8
|
}
|
|
6
9
|
declare namespace DetectOutsideClick {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
const clickRef: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{}>>>;
|
|
13
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
namespace defaultProps {
|
|
13
16
|
const clickRef_1: any;
|
|
14
17
|
export { clickRef_1 as clickRef };
|
|
15
18
|
const children_1: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopperArrowProps as ReactPopperArrowProps } from "react-popper";
|
|
3
|
-
|
|
3
|
+
type PopperArrowProps = ReactPopperArrowProps & {
|
|
4
4
|
placement?: string;
|
|
5
5
|
borderColor?: string;
|
|
6
6
|
backgroundColor?: string;
|
|
@@ -2,13 +2,16 @@ export default PreventBodyElementScrolling;
|
|
|
2
2
|
declare class PreventBodyElementScrolling extends React.Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
componentWillUnmount(): void;
|
|
7
|
+
render(): JSX.Element;
|
|
5
8
|
}
|
|
6
9
|
declare namespace PreventBodyElementScrolling {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
+
const scrollableRef: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{}>>>;
|
|
10
13
|
}
|
|
11
|
-
|
|
14
|
+
namespace defaultProps {
|
|
12
15
|
const children_1: any;
|
|
13
16
|
export { children_1 as children };
|
|
14
17
|
const scrollableRef_1: any;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export default ScrollIndicators;
|
|
2
2
|
declare class ScrollIndicators extends React.Component<any, any, any> {
|
|
3
|
+
constructor();
|
|
4
|
+
state: {
|
|
5
|
+
scrollTop: number;
|
|
6
|
+
};
|
|
3
7
|
menuRef: React.RefObject<any>;
|
|
4
8
|
handleScroll(): void;
|
|
5
9
|
offsetHeight: any;
|
|
6
10
|
scrollHeight: any;
|
|
11
|
+
componentDidMount(): void;
|
|
7
12
|
contentHiddenBelow(): boolean;
|
|
8
13
|
contentHiddenAbove(): boolean;
|
|
14
|
+
render(): JSX.Element;
|
|
9
15
|
}
|
|
10
16
|
declare namespace ScrollIndicators {
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
const children: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
13
19
|
}
|
|
14
20
|
}
|
|
15
21
|
import React from "react";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
type Reference = {
|
|
3
3
|
current?: JSX.Element;
|
|
4
4
|
focus?: (...args: any[]) => any;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ChildrenHandlers = {
|
|
7
7
|
focusedIndex: number;
|
|
8
8
|
handleArrowNavigation: Function;
|
|
9
9
|
setFocusedIndex: Function;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type FocusManagerProps = {
|
|
12
12
|
refs?: Array<Reference>;
|
|
13
13
|
defaultFocusedIndex: number | null;
|
|
14
14
|
children: (handlers: ChildrenHandlers) => ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export type WithMenuStateProps = {
|
|
3
3
|
children?: any;
|
|
4
4
|
showDelay?: string | number;
|
|
5
5
|
hideDelay?: string | number;
|
|
6
6
|
defaultOpen?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AcceptsMenuStateProps = {
|
|
9
9
|
menuState?: any;
|
|
10
10
|
};
|
|
11
11
|
declare function withMenuState<P extends AcceptsMenuStateProps>(MenuComponent: React.JSXElementConstructor<P>): React.JSXElementConstructor<P & WithMenuStateProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.1",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
"@storybook/theming": "^6.1.9",
|
|
79
79
|
"@testing-library/jest-dom": "5.11.5",
|
|
80
80
|
"@testing-library/react": "^10.0.0",
|
|
81
|
-
"@types/jest": "^
|
|
81
|
+
"@types/jest": "^29.5.1",
|
|
82
82
|
"@types/node": "^14.0.14",
|
|
83
83
|
"@types/react": "^17.0.9",
|
|
84
84
|
"@types/react-dom": "^17.0.6",
|
|
85
85
|
"@types/styled-components": "^5.1.9",
|
|
86
86
|
"@types/styled-system": "^5.1.11",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
88
88
|
"@typescript-eslint/parser": "^3.6.0",
|
|
89
89
|
"awesome-typescript-loader": "^5.2.1",
|
|
90
90
|
"babel-eslint": "^10.0.3",
|
|
91
|
-
"babel-jest": "
|
|
91
|
+
"babel-jest": "29.5.0",
|
|
92
92
|
"babel-loader": "8.0.6",
|
|
93
93
|
"babel-plugin-inline-json-import": "^0.3.2",
|
|
94
94
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
"eslint-plugin-prettier": "^3.1.4",
|
|
107
107
|
"http-server": "^14.0.0",
|
|
108
108
|
"husky": "^4.3.0",
|
|
109
|
-
"jest": "
|
|
109
|
+
"jest": "29.5.0",
|
|
110
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
110
111
|
"jest-styled-components": "7",
|
|
111
112
|
"jscodeshift": "^0.11.0",
|
|
112
113
|
"mockdate": "^3.0.2",
|
|
@@ -126,15 +127,13 @@
|
|
|
126
127
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
127
128
|
"semantic-release": "^17.2.1",
|
|
128
129
|
"source-map-loader": "^1.0.1",
|
|
129
|
-
"storybook-addon-performance": "^0.
|
|
130
|
+
"storybook-addon-performance": "^0.17.1",
|
|
130
131
|
"styled-components": "^5.1.0",
|
|
131
132
|
"svg-sprite-loader": "^3.8.0",
|
|
132
133
|
"ts-jest": "^26.1.1",
|
|
133
|
-
"typescript": "
|
|
134
|
+
"typescript": "4.9.5",
|
|
134
135
|
"typescript-eslint": "^0.0.1-alpha.0",
|
|
135
|
-
"wait-on": "^5.1.0"
|
|
136
|
-
"webpack": "^4.8.3",
|
|
137
|
-
"webpack-cli": "^3.1.0"
|
|
136
|
+
"wait-on": "^5.1.0"
|
|
138
137
|
},
|
|
139
138
|
"dependencies": {
|
|
140
139
|
"@babel/runtime": "^7.9.6",
|
|
@@ -168,6 +167,7 @@
|
|
|
168
167
|
}
|
|
169
168
|
},
|
|
170
169
|
"jest": {
|
|
170
|
+
"testEnvironment": "jsdom",
|
|
171
171
|
"transform": {
|
|
172
172
|
"^.+\\.jsx?$": "babel-jest",
|
|
173
173
|
"^.+\\.js?$": "babel-jest",
|