@nulogy/components 10.2.10 → 10.2.11
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 +684 -1293
- package/dist/main.module.js +680 -1289
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/isValidMenuItem.d.ts +1 -2
- package/dist/src/Branding/BrandingText.d.ts +5 -2
- package/dist/src/Branding/LettermarkLogo.d.ts +2 -2
- package/dist/src/Branding/WordmarkLogo.d.ts +3 -2
- package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +1 -6
- package/dist/src/Button/ControlIcon.d.ts +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +7 -5
- package/dist/src/Card/Card.d.ts +2 -3
- package/dist/src/Card/CardSet.d.ts +5 -3
- package/dist/src/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/src/DatePicker/DatePickerHeader.d.ts +6 -6
- package/dist/src/DropdownMenu/DropdownItem.d.ts +2 -5
- package/dist/src/DropdownMenu/DropdownLink.d.ts +3 -5
- package/dist/src/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/FieldLabel/FieldLabel.d.ts +1 -10
- package/dist/src/Form/FormSection.d.ts +3 -3
- package/dist/src/Icon/Icon.d.ts +1 -1
- package/dist/src/Input/Suffix.d.ts +4 -11
- package/dist/src/List/List.d.ts +3 -5
- package/dist/src/List/ListItem.d.ts +4 -5
- package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +4 -4
- package/dist/src/NavBar/DesktopMenu.d.ts +5 -16
- package/dist/src/NavBar/MenuTrigger.d.ts +3 -21
- package/dist/src/NavBar/MobileMenu.d.ts +0 -15
- package/dist/src/NavBar/NavBar.d.ts +0 -23
- package/dist/src/NavBar/SubMenuTrigger.d.ts +0 -6
- package/dist/src/NavBarSearch/NavBarSearch.d.ts +0 -5
- package/dist/src/Overlay/Overlay.d.ts +7 -6
- package/dist/src/Pagination/NextButton.d.ts +1 -14
- package/dist/src/Pagination/Pagination.d.ts +1 -26
- package/dist/src/Pagination/PreviousButton.d.ts +1 -14
- package/dist/src/Popper/Popper.d.ts +2 -2
- package/dist/src/Radio/Radio.d.ts +1 -1
- package/dist/src/Radio/RadioGroup.d.ts +6 -16
- package/dist/src/RangeContainer/RangeContainer.d.ts +2 -1
- package/dist/src/Select/Select.d.ts +1 -33
- package/dist/src/Table/BaseTable.d.ts +1 -17
- package/dist/src/Table/SortingColumnHeader.d.ts +8 -23
- package/dist/src/Table/StatefulTable.d.ts +8 -8
- package/dist/src/Table/Table.d.ts +2 -22
- package/dist/src/Table/Table.types.d.ts +0 -27
- package/dist/src/Table/TableCell.d.ts +2 -2
- package/dist/src/Table/TableFoot.d.ts +0 -26
- package/dist/src/Tabs/Tab.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.d.ts +3 -2
- package/dist/src/Toast/Toast.d.ts +1 -11
- package/dist/src/ToastContainer/ToastContainer.d.ts +1 -12
- package/dist/src/Toggle/Toggle.d.ts +1 -1
- 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 -12
- package/dist/src/TruncatedText/TruncatedText.d.ts +1 -24
- package/dist/src/TruncatedText/TruncatedTextProps.d.ts +2 -1
- package/dist/src/Validation/InlineValidation.d.ts +2 -2
- package/dist/src/locales.const.d.ts +9 -9
- package/dist/src/utils/DetectOutsideClick.d.ts +1 -16
- package/dist/src/utils/PreventBodyElementScrolling.d.ts +1 -15
- package/dist/src/utils/ScrollIndicators.d.ts +0 -6
- package/dist/src/utils/localized-date-fns.d.ts +1 -1
- package/dist/src/utils/subset.d.ts +1 -0
- package/package.json +5 -6
|
@@ -6,6 +6,7 @@ type RangeContainerProps = {
|
|
|
6
6
|
endComponent?: React.ReactNode;
|
|
7
7
|
size?: ComponentSize;
|
|
8
8
|
errorMessages?: (string | undefined)[];
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
};
|
|
10
|
-
declare const RangeContainer: React.
|
|
11
|
+
declare const RangeContainer: ({ startComponent, endComponent, errorMessages, labelProps, size, ...props }: RangeContainerProps) => React.JSX.Element;
|
|
11
12
|
export default RangeContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { GroupBase } from "react-windowed-select";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Props as SelectProps } from "react-select";
|
|
4
4
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
5
|
interface WindowedSelectProps extends SelectProps {
|
|
6
6
|
windowThreshold?: number;
|
|
@@ -27,38 +27,6 @@ interface CustomProps<Option, IsMulti extends boolean, Group extends GroupBase<O
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}
|
|
29
29
|
export type NDSSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Omit<WindowedSelectProps, "isSearchable" | "isDisabled" | "isMulti" | "defaultMenuIsOpen" | "defaultInputValue" | "options" | "onChange"> & CustomProps<Option, IsMulti, Group>;
|
|
30
|
-
export declare const SelectDefaultProps: {
|
|
31
|
-
autocomplete: boolean;
|
|
32
|
-
disabled: any;
|
|
33
|
-
defaultValue: any;
|
|
34
|
-
error: any;
|
|
35
|
-
errorMessage: any;
|
|
36
|
-
errorList: any;
|
|
37
|
-
labelText: any;
|
|
38
|
-
helpText: any;
|
|
39
|
-
noOptionsMessage: any;
|
|
40
|
-
requirementText: any;
|
|
41
|
-
id: any;
|
|
42
|
-
initialIsOpen: any;
|
|
43
|
-
maxHeight: string;
|
|
44
|
-
menuPosition: MenuPosition;
|
|
45
|
-
menuPlacement: MenuPlacement;
|
|
46
|
-
multiselect: boolean;
|
|
47
|
-
name: any;
|
|
48
|
-
onBlur: any;
|
|
49
|
-
onChange: any;
|
|
50
|
-
placeholder: any;
|
|
51
|
-
required: boolean;
|
|
52
|
-
value: any;
|
|
53
|
-
className: any;
|
|
54
|
-
classNamePrefix: string;
|
|
55
|
-
menuIsOpen: any;
|
|
56
|
-
onMenuOpen: any;
|
|
57
|
-
onMenuClose: any;
|
|
58
|
-
onInputChange: any;
|
|
59
|
-
components: any;
|
|
60
|
-
closeMenuOnSelect: boolean;
|
|
61
|
-
};
|
|
62
30
|
declare const ReactSelect: React.ForwardRefExoticComponent<Omit<Omit<WindowedSelectProps, "isDisabled" | "isMulti" | "isSearchable" | "onChange" | "options" | "defaultMenuIsOpen" | "defaultInputValue"> & CustomProps<unknown, boolean, GroupBase<unknown>>, "ref"> & React.RefAttributes<unknown>>;
|
|
63
31
|
export declare const getOption: (options: NDSOptionType[], value: unknown) => unknown;
|
|
64
32
|
export default ReactSelect;
|
|
@@ -17,21 +17,5 @@ export type BaseTableProps<ColumnMetaData> = {
|
|
|
17
17
|
onMouseEnter?: any;
|
|
18
18
|
onMouseLeave?: any;
|
|
19
19
|
};
|
|
20
|
-
declare function BaseTable<ColumnMetaData>({
|
|
21
|
-
declare namespace BaseTable {
|
|
22
|
-
var propTypes: any;
|
|
23
|
-
var defaultProps: {
|
|
24
|
-
noRowsContent: string;
|
|
25
|
-
keyField: string;
|
|
26
|
-
id: any;
|
|
27
|
-
loading: boolean;
|
|
28
|
-
footerRows: any[];
|
|
29
|
-
rowHovers: boolean;
|
|
30
|
-
compact: boolean;
|
|
31
|
-
className: any;
|
|
32
|
-
stickyHeader: boolean;
|
|
33
|
-
onRowMouseEnter: () => void;
|
|
34
|
-
onRowMouseLeave: () => void;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
20
|
+
declare function BaseTable<ColumnMetaData>({ noRowsContent, keyField, loading, footerRows, rowHovers, compact, stickyHeader, onRowMouseEnter, onRowMouseLeave, columns, rows, id, className, ...props }: BaseTableProps<ColumnMetaData>): React.JSX.Element;
|
|
37
21
|
export default BaseTable;
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}): React.JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
14
|
-
label: PropTypes.Requireable<string>;
|
|
15
|
-
ascending: PropTypes.Requireable<boolean>;
|
|
16
|
-
active: PropTypes.Requireable<boolean>;
|
|
17
|
-
};
|
|
18
|
-
defaultProps: {
|
|
19
|
-
ariaLabel: any;
|
|
20
|
-
label: any;
|
|
21
|
-
ascending: boolean;
|
|
22
|
-
active: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
2
|
+
interface SortingColumnHeaderProps {
|
|
3
|
+
onChange?: React.MouseEventHandler<HTMLButtonElement>;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
ascending?: boolean;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function SortingColumnHeader({ onChange, label, ariaLabel, ascending, active, }: SortingColumnHeaderProps): React.JSX.Element;
|
|
25
10
|
export default SortingColumnHeader;
|
|
@@ -26,14 +26,6 @@ type StatefulTableState = {
|
|
|
26
26
|
};
|
|
27
27
|
declare class StatefulTable<ColumnMetaData> extends Component<StatefulTableProps<ColumnMetaData>, StatefulTableState> {
|
|
28
28
|
static defaultProps: {
|
|
29
|
-
hasSelectableRows: boolean;
|
|
30
|
-
selectedRows: any[];
|
|
31
|
-
isHeaderSelected: boolean;
|
|
32
|
-
onRowExpansionChange: () => void;
|
|
33
|
-
selectAllAriaLabel: any;
|
|
34
|
-
deselectAllAriaLabel: any;
|
|
35
|
-
paginationCss: any;
|
|
36
|
-
paginationProps: {};
|
|
37
29
|
noRowsContent: string;
|
|
38
30
|
keyField: string;
|
|
39
31
|
id: any;
|
|
@@ -45,6 +37,14 @@ declare class StatefulTable<ColumnMetaData> extends Component<StatefulTableProps
|
|
|
45
37
|
stickyHeader: boolean;
|
|
46
38
|
onRowMouseEnter: () => void;
|
|
47
39
|
onRowMouseLeave: () => void;
|
|
40
|
+
hasSelectableRows: boolean;
|
|
41
|
+
selectedRows: any[];
|
|
42
|
+
isHeaderSelected: boolean;
|
|
43
|
+
onRowExpansionChange: () => void;
|
|
44
|
+
selectAllAriaLabel: any;
|
|
45
|
+
deselectAllAriaLabel: any;
|
|
46
|
+
paginationCss: any;
|
|
47
|
+
paginationProps: {};
|
|
48
48
|
};
|
|
49
49
|
constructor(props: any);
|
|
50
50
|
static getDerivedStateFromProps(nextProps: any, prevState: any): {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import SortingColumnHeader from "./SortingColumnHeader";
|
|
2
3
|
import { StatefulTableProps } from "./StatefulTable";
|
|
3
4
|
import { ColumnType, RowType, CellInfoType } from "./Table.types";
|
|
4
5
|
export type TableProps<ColumnMetadata = unknown> = StatefulTableProps<ColumnMetadata>;
|
|
@@ -7,27 +8,6 @@ export type TableRowType = RowType;
|
|
|
7
8
|
export type TableCellInfoType<ColumnMetadata = unknown> = CellInfoType<ColumnMetadata>;
|
|
8
9
|
declare function Table<ColumnMetadata>({ hasSelectableRows, rowsPerPage, hasExpandableRows, selectedRows, onRowSelectionChange, onRowExpansionChange, onPageChange, selectAllAriaLabel, deselectAllAriaLabel, paginationCss, paginationProps, ...props }: TableProps<ColumnMetadata>): React.JSX.Element;
|
|
9
10
|
declare namespace Table {
|
|
10
|
-
var SortingHeader:
|
|
11
|
-
({ onChange, label, ascending, active, ariaLabel }: {
|
|
12
|
-
onChange: any;
|
|
13
|
-
label: any;
|
|
14
|
-
ascending: any;
|
|
15
|
-
active: any;
|
|
16
|
-
ariaLabel: any;
|
|
17
|
-
}): React.JSX.Element;
|
|
18
|
-
propTypes: {
|
|
19
|
-
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
20
|
-
ariaLabel: import("prop-types").Requireable<string>;
|
|
21
|
-
label: import("prop-types").Requireable<string>;
|
|
22
|
-
ascending: import("prop-types").Requireable<boolean>;
|
|
23
|
-
active: import("prop-types").Requireable<boolean>;
|
|
24
|
-
};
|
|
25
|
-
defaultProps: {
|
|
26
|
-
ariaLabel: any;
|
|
27
|
-
label: any;
|
|
28
|
-
ascending: boolean;
|
|
29
|
-
active: boolean;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
11
|
+
var SortingHeader: typeof SortingColumnHeader;
|
|
32
12
|
}
|
|
33
13
|
export default Table;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Key } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
export type RowType = any;
|
|
4
3
|
export interface CellInfoType<ColumnMetadata> {
|
|
5
4
|
cellData: any;
|
|
@@ -24,30 +23,4 @@ export type ColumnType<ColumnMetadata> = {
|
|
|
24
23
|
key?: never | undefined;
|
|
25
24
|
});
|
|
26
25
|
export type Columns<ColumnMetadata> = ColumnType<ColumnMetadata>[];
|
|
27
|
-
export declare const columnPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
-
align: PropTypes.Requireable<string>;
|
|
29
|
-
label: PropTypes.Requireable<string>;
|
|
30
|
-
dataKey: PropTypes.Requireable<PropTypes.Requireable<string> | PropTypes.Requireable<number>>;
|
|
31
|
-
key: PropTypes.Requireable<PropTypes.Requireable<string> | PropTypes.Requireable<number>>;
|
|
32
|
-
cellFormatter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
cellRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
headerRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
-
width: PropTypes.Requireable<string>;
|
|
36
|
-
}>>;
|
|
37
|
-
export declare const rowPropType: PropTypes.Requireable<{
|
|
38
|
-
[x: string]: NonNullable<PropTypes.ReactNodeLike>;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const columnsPropType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
align: PropTypes.Requireable<string>;
|
|
42
|
-
label: PropTypes.Requireable<string>;
|
|
43
|
-
dataKey: PropTypes.Requireable<PropTypes.Requireable<string> | PropTypes.Requireable<number>>;
|
|
44
|
-
key: PropTypes.Requireable<PropTypes.Requireable<string> | PropTypes.Requireable<number>>;
|
|
45
|
-
cellFormatter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
-
cellRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
-
headerRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
-
width: PropTypes.Requireable<string>;
|
|
49
|
-
}>[]>;
|
|
50
|
-
export declare const rowsPropType: PropTypes.Requireable<{
|
|
51
|
-
[x: string]: NonNullable<PropTypes.ReactNodeLike>;
|
|
52
|
-
}[]>;
|
|
53
26
|
export {};
|
|
@@ -3,8 +3,8 @@ type TableCellProps = {
|
|
|
3
3
|
column?: any;
|
|
4
4
|
row?: any;
|
|
5
5
|
colSpan?: number;
|
|
6
|
-
cellData?:
|
|
6
|
+
cellData?: Record<string, unknown> | React.ReactNode | boolean;
|
|
7
7
|
compact?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const TableCell: React.
|
|
9
|
+
declare const TableCell: ({ column, row, cellData, colSpan, compact }: TableCellProps) => React.JSX.Element;
|
|
10
10
|
export default TableCell;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { RowType, Columns } from "./Table.types";
|
|
4
3
|
declare function TableFoot<ColumnMetadata>({ columns, rows, keyField, loading, compact, }: {
|
|
5
4
|
columns: Columns<ColumnMetadata>;
|
|
@@ -8,29 +7,4 @@ declare function TableFoot<ColumnMetadata>({ columns, rows, keyField, loading, c
|
|
|
8
7
|
loading?: boolean;
|
|
9
8
|
compact?: boolean;
|
|
10
9
|
}): React.JSX.Element;
|
|
11
|
-
declare namespace TableFoot {
|
|
12
|
-
var propTypes: {
|
|
13
|
-
columns: PropTypes.Validator<PropTypes.InferProps<{
|
|
14
|
-
align: PropTypes.Requireable<string>;
|
|
15
|
-
label: PropTypes.Requireable<string>;
|
|
16
|
-
dataKey: PropTypes.Requireable<PropTypes.Requireable<number> | PropTypes.Requireable<string>>;
|
|
17
|
-
key: PropTypes.Requireable<PropTypes.Requireable<number> | PropTypes.Requireable<string>>;
|
|
18
|
-
cellFormatter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
cellRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
headerRenderer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
width: PropTypes.Requireable<string>;
|
|
22
|
-
}>[]>;
|
|
23
|
-
rows: PropTypes.Validator<{
|
|
24
|
-
[x: string]: NonNullable<PropTypes.ReactNodeLike>;
|
|
25
|
-
}[]>;
|
|
26
|
-
keyField: PropTypes.Requireable<string>;
|
|
27
|
-
loading: PropTypes.Requireable<boolean>;
|
|
28
|
-
compact: PropTypes.Requireable<boolean>;
|
|
29
|
-
};
|
|
30
|
-
var defaultProps: {
|
|
31
|
-
keyField: string;
|
|
32
|
-
loading: boolean;
|
|
33
|
-
compact: boolean;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
10
|
export default TableFoot;
|
package/dist/src/Tabs/Tab.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ type TabButtonProps = React.ComponentPropsWithRef<"button"> & {
|
|
|
8
8
|
type TabProps = TabButtonProps & {
|
|
9
9
|
label?: React.ReactNode;
|
|
10
10
|
};
|
|
11
|
-
declare const Tab: React.
|
|
11
|
+
declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export default Tab;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
type Side = "left" | "right";
|
|
2
3
|
type TabScrollIndicatorProps = {
|
|
3
|
-
onClick?:
|
|
4
|
-
side?:
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
side?: Side;
|
|
5
6
|
width?: string | number;
|
|
6
7
|
ariaLabelLeft?: string;
|
|
7
8
|
ariaLabelRight?: string;
|
|
@@ -32,15 +32,5 @@ export declare const toastAnimationConfig: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
export declare const Toast: {
|
|
36
|
-
({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, zIndex, ...props }: ToastProps): React.JSX.Element;
|
|
37
|
-
defaultProps: {
|
|
38
|
-
triggered: boolean;
|
|
39
|
-
isCloseable: boolean;
|
|
40
|
-
showDuration: number;
|
|
41
|
-
onShow: () => void;
|
|
42
|
-
onHide: () => void;
|
|
43
|
-
onHidden: () => void;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
35
|
+
export declare const Toast: ({ triggered, isCloseable, showDuration, onHide, onShow, children, onHidden, zIndex, ...props }: ToastProps) => React.JSX.Element;
|
|
46
36
|
export default Toast;
|
|
@@ -6,16 +6,5 @@ type ToastContainerProps = {
|
|
|
6
6
|
maxVisibleToasts?: number;
|
|
7
7
|
toastOptions?: ToastOptions;
|
|
8
8
|
} & Omit<ToasterProps, "gutter" | "toastOptions">;
|
|
9
|
-
declare const ToastContainer: {
|
|
10
|
-
({ gap, maxVisibleToasts, toastOptions, ...props }: ToastContainerProps): React.JSX.Element;
|
|
11
|
-
defaultProps: {
|
|
12
|
-
position: string;
|
|
13
|
-
reverseOrder: boolean;
|
|
14
|
-
containerClassName: string;
|
|
15
|
-
toastOptions: {
|
|
16
|
-
duration: number;
|
|
17
|
-
};
|
|
18
|
-
maxVisibleToasts: number;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
9
|
+
declare const ToastContainer: ({ gap, position, reverseOrder, containerClassName, toastOptions, maxVisibleToasts, ...props }: ToastContainerProps) => React.JSX.Element;
|
|
21
10
|
export default ToastContainer;
|
|
@@ -7,5 +7,5 @@ type ToggleButtonProps = React.ComponentPropsWithRef<"input"> & {
|
|
|
7
7
|
name?: string;
|
|
8
8
|
theme?: DefaultNDSThemeType;
|
|
9
9
|
};
|
|
10
|
-
declare const ToggleButton: React.
|
|
10
|
+
declare const ToggleButton: React.ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & React.RefAttributes<React.Ref<HTMLInputElement>>>;
|
|
11
11
|
export default ToggleButton;
|
|
@@ -9,5 +9,5 @@ export type TooltipProps = {
|
|
|
9
9
|
maxWidth?: string;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
};
|
|
12
|
-
declare const Tooltip: React.
|
|
12
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<React.Ref<unknown>>>;
|
|
13
13
|
export default Tooltip;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
4
3
|
type MaybeTooltipProps = TooltipProps & {
|
|
5
4
|
showTooltip?: boolean;
|
|
6
5
|
};
|
|
7
|
-
declare const MaybeTooltip: {
|
|
8
|
-
({ children, showTooltip, ...props }: MaybeTooltipProps): React.JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
12
|
-
};
|
|
13
|
-
defaultProps: {
|
|
14
|
-
children: string;
|
|
15
|
-
showTooltip: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
6
|
+
declare const MaybeTooltip: ({ children, showTooltip, ...props }: MaybeTooltipProps) => React.JSX.Element;
|
|
18
7
|
export default MaybeTooltip;
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { TruncatedTextProps } from "./TruncatedTextProps";
|
|
4
|
-
declare const TruncatedText: {
|
|
5
|
-
({ fullWidth, children, ...props }: TruncatedTextProps): React.JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
-
indicator: PropTypes.Requireable<string>;
|
|
9
|
-
element: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
-
maxCharacters: PropTypes.Requireable<number>;
|
|
11
|
-
showTooltip: PropTypes.Requireable<boolean>;
|
|
12
|
-
fullWidth: PropTypes.Requireable<boolean>;
|
|
13
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
-
tooltipProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
15
|
-
};
|
|
16
|
-
defaultProps: {
|
|
17
|
-
children: any;
|
|
18
|
-
indicator: string;
|
|
19
|
-
element: React.JSX.Element;
|
|
20
|
-
maxCharacters: number;
|
|
21
|
-
fullWidth: boolean;
|
|
22
|
-
showTooltip: boolean;
|
|
23
|
-
"data-testid": string;
|
|
24
|
-
tooltipProps: any;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
3
|
+
declare const TruncatedText: ({ indicator, element, maxCharacters, fullWidth, showTooltip, "data-testid": dataTestId, children, ...props }: TruncatedTextProps) => React.JSX.Element;
|
|
27
4
|
export default TruncatedText;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
1
2
|
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
2
3
|
import { TextProps } from "../Type";
|
|
3
4
|
export interface TruncatedTextProps extends TextProps {
|
|
4
5
|
children?: string;
|
|
5
6
|
indicator?: string;
|
|
6
|
-
element?:
|
|
7
|
+
element?: ReactElement;
|
|
7
8
|
maxCharacters?: number;
|
|
8
9
|
showTooltip?: boolean;
|
|
9
10
|
fullWidth?: boolean;
|
|
@@ -6,5 +6,5 @@ type InlineValidationProps = SpaceProps & {
|
|
|
6
6
|
errorList?: string[];
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
export default function InlineValidation({ className, errorMessage, errorList, children, ...boxProps }: InlineValidationProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const NDS_TO_DATE_FN_LOCALES_MAP: {
|
|
2
|
-
de_DE: Locale;
|
|
3
|
-
en_US: Locale;
|
|
4
|
-
es_MX: Locale;
|
|
5
|
-
fr_FR: Locale;
|
|
6
|
-
nl_NL: Locale;
|
|
7
|
-
pl_PL: Locale;
|
|
8
|
-
pt_BR: Locale;
|
|
9
|
-
ro_RO: Locale;
|
|
10
|
-
zh_CN: Locale;
|
|
2
|
+
readonly de_DE: Locale;
|
|
3
|
+
readonly en_US: Locale;
|
|
4
|
+
readonly es_MX: Locale;
|
|
5
|
+
readonly fr_FR: Locale;
|
|
6
|
+
readonly nl_NL: Locale;
|
|
7
|
+
readonly pl_PL: Locale;
|
|
8
|
+
readonly pt_BR: Locale;
|
|
9
|
+
readonly ro_RO: Locale;
|
|
10
|
+
readonly zh_CN: Locale;
|
|
11
11
|
};
|
|
12
12
|
export declare const ALL_NDS_LOCALES: {
|
|
13
13
|
label: string;
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
export default DetectOutsideClick
|
|
2
|
-
declare class DetectOutsideClick extends React.Component<any, any, any> {
|
|
1
|
+
export default class DetectOutsideClick extends React.Component<any, any, any> {
|
|
3
2
|
constructor(props: any);
|
|
4
3
|
handleOutsideClick(e: any): void;
|
|
5
4
|
componentDidMount(): void;
|
|
6
5
|
componentWillUnmount(): void;
|
|
7
6
|
render(): React.JSX.Element;
|
|
8
7
|
}
|
|
9
|
-
declare namespace DetectOutsideClick {
|
|
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>;
|
|
14
|
-
}
|
|
15
|
-
namespace defaultProps {
|
|
16
|
-
const clickRef_1: any;
|
|
17
|
-
export { clickRef_1 as clickRef };
|
|
18
|
-
const children_1: any;
|
|
19
|
-
export { children_1 as children };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
8
|
import React from "react";
|
|
23
|
-
import PropTypes from "prop-types";
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
export default PreventBodyElementScrolling
|
|
2
|
-
declare class PreventBodyElementScrolling extends React.Component<any, any, any> {
|
|
1
|
+
export default class PreventBodyElementScrolling extends React.Component<any, any, any> {
|
|
3
2
|
constructor(props: any);
|
|
4
3
|
constructor(props: any, context: any);
|
|
5
4
|
componentDidMount(): void;
|
|
6
5
|
componentWillUnmount(): void;
|
|
7
6
|
render(): React.JSX.Element;
|
|
8
7
|
}
|
|
9
|
-
declare namespace PreventBodyElementScrolling {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
const scrollableRef: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{}>>>;
|
|
13
|
-
}
|
|
14
|
-
namespace defaultProps {
|
|
15
|
-
const children_1: any;
|
|
16
|
-
export { children_1 as children };
|
|
17
|
-
const scrollableRef_1: any;
|
|
18
|
-
export { scrollableRef_1 as scrollableRef };
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
8
|
import React from "react";
|
|
22
|
-
import PropTypes from "prop-types";
|
|
@@ -13,10 +13,4 @@ declare class ScrollIndicators extends React.Component<any, any, any> {
|
|
|
13
13
|
contentHiddenAbove(): boolean;
|
|
14
14
|
render(): React.JSX.Element;
|
|
15
15
|
}
|
|
16
|
-
declare namespace ScrollIndicators {
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
const children: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
16
|
import React from "react";
|
|
22
|
-
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function localizedFormat(date:
|
|
1
|
+
export declare function localizedFormat(date: number, dateFormat: string, ndsLocale: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.11",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@babel/preset-env": "7.3.1",
|
|
64
64
|
"@babel/preset-typescript": "^7.10.4",
|
|
65
65
|
"@nulogy/eslint-config-nulogy": "^1.0.0",
|
|
66
|
-
"@nulogy/icons": "
|
|
66
|
+
"@nulogy/icons": "4.34.1",
|
|
67
67
|
"@rollup/plugin-babel": "^5.0.0",
|
|
68
68
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
69
69
|
"@semantic-release/changelog": "^6.0.2",
|
|
@@ -116,7 +116,6 @@
|
|
|
116
116
|
"jscodeshift": "^0.11.0",
|
|
117
117
|
"mockdate": "^3.0.2",
|
|
118
118
|
"plop": "^2.4.0",
|
|
119
|
-
"prop-types": "15.7.2",
|
|
120
119
|
"react": "17.0.2",
|
|
121
120
|
"react-color": "^2.18.1",
|
|
122
121
|
"react-dom": "17.0.2",
|
|
@@ -142,6 +141,7 @@
|
|
|
142
141
|
"@nulogy/tokens": "^5.4.0",
|
|
143
142
|
"@styled-system/prop-types": "^5.1.4",
|
|
144
143
|
"@styled-system/theme-get": "^5.1.2",
|
|
144
|
+
"@types/styled-system": "5.1.22",
|
|
145
145
|
"body-scroll-lock": "^3.1.5",
|
|
146
146
|
"core-js": "3",
|
|
147
147
|
"create-react-context": "^0.3.0",
|
|
@@ -160,11 +160,10 @@
|
|
|
160
160
|
"react-popper": "1.3.11",
|
|
161
161
|
"react-popper-2": "npm:react-popper@2.2.4",
|
|
162
162
|
"react-resize-detector": "^9.1.0",
|
|
163
|
+
"react-select": "^5.8.0",
|
|
163
164
|
"react-windowed-select": "^5.2.0",
|
|
164
165
|
"smoothscroll-polyfill": "^0.4.4",
|
|
165
|
-
"
|
|
166
|
-
"styled-system": "^5.1.4",
|
|
167
|
-
"@types/styled-system": "5.1.22"
|
|
166
|
+
"styled-system": "^5.1.4"
|
|
168
167
|
},
|
|
169
168
|
"husky": {
|
|
170
169
|
"hooks": {
|