@hazelcast/ui 1.3.2-next.48 → 1.3.2-next.49
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/lib/Alert.d.ts +5 -5
- package/lib/AutocompleteField.d.ts +4 -4
- package/lib/AutocompleteField.js.map +1 -1
- package/lib/AutocompleteFieldFormik.d.ts +1 -1
- package/lib/Badge.d.ts +4 -4
- package/lib/Button.d.ts +14 -14
- package/lib/Calendar/Calendar.d.ts +2 -2
- package/lib/Calendar/Calendar.js +5 -3
- package/lib/Calendar/Calendar.js.map +1 -1
- package/lib/Calendar/CalendarRange.d.ts +2 -2
- package/lib/Calendar/components/CalendarHeader.d.ts +2 -2
- package/lib/Calendar/components/CalendarInput.d.ts +3 -3
- package/lib/Calendar/components/CalendarTime.d.ts +2 -2
- package/lib/Card.d.ts +1 -1
- package/lib/Carousel.d.ts +1 -1
- package/lib/Checkbox.d.ts +3 -3
- package/lib/CheckboxFormik.d.ts +1 -1
- package/lib/CircularProgressBar.d.ts +1 -1
- package/lib/Dialog.d.ts +2 -2
- package/lib/EmptyState.d.ts +5 -5
- package/lib/FieldHeader.d.ts +4 -4
- package/lib/Icon.d.ts +4 -4
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/IconButton.d.ts +6 -6
- package/lib/InteractiveList.d.ts +5 -5
- package/lib/InteractiveList.js +4 -2
- package/lib/InteractiveList.js.map +1 -1
- package/lib/InteractiveListFormik.d.ts +1 -1
- package/lib/Label.d.ts +1 -1
- package/lib/Link.d.ts +6 -6
- package/lib/Loader.d.ts +1 -1
- package/lib/Modal.d.ts +2 -2
- package/lib/Notification.d.ts +4 -4
- package/lib/NumberBadge.d.ts +1 -1
- package/lib/NumberField.d.ts +3 -3
- package/lib/NumberFieldFormik.d.ts +1 -1
- package/lib/Overlay.d.ts +2 -2
- package/lib/Overlay.module.scss +1 -1
- package/lib/Pagination.d.ts +3 -3
- package/lib/PasswordField.d.ts +3 -3
- package/lib/PasswordFieldFormik.d.ts +1 -1
- package/lib/Radio.d.ts +3 -3
- package/lib/RadioFormik.d.ts +1 -1
- package/lib/RadioGroup.d.ts +3 -3
- package/lib/RadioGroupFormik.d.ts +1 -1
- package/lib/SegmentedControl.d.ts +3 -3
- package/lib/SegmentedControlFormik.d.ts +1 -1
- package/lib/Select/CheckableSelectField.d.ts +3 -3
- package/lib/Select/CheckableSelectFieldFormik.d.ts +1 -1
- package/lib/Select/Common.d.ts +6 -6
- package/lib/Select/MultiSelectField.d.ts +7 -7
- package/lib/Select/MultiSelectField.js.map +1 -1
- package/lib/Select/MultiSelectFieldFormik.d.ts +1 -1
- package/lib/Select/SelectField.d.ts +5 -5
- package/lib/Select/SelectField.js.map +1 -1
- package/lib/Select/SelectFieldFormik.d.ts +1 -1
- package/lib/Select/helpers.d.ts +2 -2
- package/lib/SimpleTable.d.ts +1 -1
- package/lib/Slider.d.ts +8 -8
- package/lib/SliderFormik.d.ts +1 -1
- package/lib/Table/Cell.d.ts +2 -2
- package/lib/Table/CellWrapper.d.ts +1 -1
- package/lib/Table/EnhancedRenderers.d.ts +2 -2
- package/lib/Table/Header.d.ts +1 -1
- package/lib/Table/Row.d.ts +4 -4
- package/lib/Table/Table.d.ts +8 -8
- package/lib/Table/TableContent.d.ts +1 -1
- package/lib/Table/features/columnsSelection/columnsSelection.d.ts +1 -1
- package/lib/Table/features/columnsSelection/helpers.d.ts +1 -1
- package/lib/Tabs/Tab.d.ts +6 -6
- package/lib/Tabs/TabContext.d.ts +3 -3
- package/lib/Tabs/TabList.d.ts +1 -1
- package/lib/Tabs/TabPanel.d.ts +1 -1
- package/lib/Terminal.d.ts +1 -1
- package/lib/TextArea.d.ts +4 -4
- package/lib/TextAreaFormik.d.ts +1 -1
- package/lib/TextField.d.ts +6 -6
- package/lib/TextFieldFormik.d.ts +1 -1
- package/lib/TimeField.d.ts +3 -3
- package/lib/TimeFieldFormik.d.ts +1 -1
- package/lib/Toast.d.ts +3 -3
- package/lib/Toggle.d.ts +3 -3
- package/lib/ToggleFormik.d.ts +1 -1
- package/lib/Tooltip.d.ts +2 -2
- package/lib/Tooltip.js.map +1 -1
- package/lib/hooks/useCloseOnResize.d.ts +1 -1
- package/lib/hooks/useDimensions.d.ts +1 -1
- package/lib/hooks/useOnClickOutside.d.ts +1 -1
- package/lib/hooks/usePagination.d.ts +2 -2
- package/lib/utils/formik.d.ts +2 -2
- package/lib/utils/portal.d.ts +2 -2
- package/lib/utils/types.d.ts +1 -1
- package/package.json +53 -48
package/lib/Table/Row.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { FC, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { TableHeaderGroupProps } from 'react-table';
|
|
3
|
-
|
|
3
|
+
type RowBase = Omit<TableHeaderGroupProps, 'key'> & {
|
|
4
4
|
ariaRowIndex?: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type RowProps = RowBase & {
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type LinkRowProps = RowBase & {
|
|
10
10
|
href: string;
|
|
11
11
|
AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type HeaderRowProps = RowBase;
|
|
14
14
|
export declare const Row: FC<RowProps>;
|
|
15
15
|
export declare const LinkRow: FC<LinkRowProps>;
|
|
16
16
|
export declare const HeaderRow: FC<HeaderRowProps>;
|
package/lib/Table/Table.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { PaginationProps } from '../Pagination';
|
|
|
5
5
|
import { CellProps } from './Cell';
|
|
6
6
|
import { RowProps } from './Row';
|
|
7
7
|
export type { Accessor, Cell, Renderer, Row, CellProps, HeaderGroup, TableInstance, TableState } from 'react-table';
|
|
8
|
-
export
|
|
8
|
+
export type Column<T extends object> = ColumnType<T> & {
|
|
9
9
|
canHide?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare module 'react-table' {
|
|
@@ -28,27 +28,27 @@ declare module 'react-table' {
|
|
|
28
28
|
interface Row<D extends object = {}> extends UseGroupByRowProps<D>, UseRowSelectRowProps<D>, UseExpandedRowProps<D> {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type PaginationOptions = Partial<Pick<PaginationProps, 'pageSizeOptions'>>;
|
|
32
32
|
/**
|
|
33
33
|
* `defaultPageSize` should be one of the values in `pageSizeOptions`.
|
|
34
34
|
* If it's not it won't break anything but it is a bad UX
|
|
35
35
|
* because once user selects different page size he won't be able to select
|
|
36
36
|
* `defaultPageSize` again.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
type ExtendedPaginationProps = {
|
|
39
39
|
paginationOptions?: PaginationOptions;
|
|
40
40
|
defaultPageSize?: number;
|
|
41
41
|
hidePagination?: boolean;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export type PaginationChangeProps = {
|
|
44
44
|
pageSize: number;
|
|
45
45
|
pageIndex: number;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type ControlledPaginationProps = {
|
|
48
48
|
manualPagination?: boolean;
|
|
49
49
|
onPaginationChange?: (paginationChangeProps: PaginationChangeProps) => void;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
type CustomTableRowClickProps<D extends object> = {
|
|
52
52
|
onRowClick?: (rowInfo: RowType<D>) => void;
|
|
53
53
|
getHref?: never;
|
|
54
54
|
AnchorComponent?: never;
|
|
@@ -57,7 +57,7 @@ declare type CustomTableRowClickProps<D extends object> = {
|
|
|
57
57
|
onRowClick?: never;
|
|
58
58
|
AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
type CustomTableProps<D extends object> = {
|
|
61
61
|
loading?: boolean;
|
|
62
62
|
overlayLoading?: boolean;
|
|
63
63
|
className?: string;
|
|
@@ -80,7 +80,7 @@ declare type CustomTableProps<D extends object> = {
|
|
|
80
80
|
renderRowSubComponent?: (props: RowType<D>) => ReactNode;
|
|
81
81
|
onCopy?: (data: (string | undefined)[][]) => void;
|
|
82
82
|
} & CustomTableRowClickProps<D> & DataTestProp;
|
|
83
|
-
export
|
|
83
|
+
export type TableProps<D extends object> = TableOptions<D> & ExtendedPaginationProps & ControlledPaginationProps & CustomTableProps<D>;
|
|
84
84
|
export type { ColumnType, RowType, CellType };
|
|
85
85
|
/**
|
|
86
86
|
* ### Purpose
|
|
@@ -3,7 +3,7 @@ import { Cell as CellType, Row as RowType, Column, UseResizeColumnsState } from
|
|
|
3
3
|
import { CellProps } from './Cell';
|
|
4
4
|
import { RowProps } from './Row';
|
|
5
5
|
import { useColumnsSelection } from './features/columnsSelection';
|
|
6
|
-
export
|
|
6
|
+
export type TableContentProps<D extends object> = {
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
page: RowType<D>[];
|
|
9
9
|
className?: string;
|
package/lib/Tabs/Tab.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FC, MouseEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
|
-
export
|
|
3
|
+
export type AnchorTabProps = {
|
|
4
4
|
component: 'a';
|
|
5
5
|
href: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ButtonTabProps = {
|
|
8
8
|
component?: 'button';
|
|
9
9
|
href?: never;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
type TabTypeProps = AnchorTabProps | ButtonTabProps;
|
|
12
|
+
type TabLabelProps = {
|
|
13
13
|
/** @deprecated The property should not be used */
|
|
14
14
|
label: string;
|
|
15
15
|
icon: IconProps['icon'];
|
|
@@ -30,12 +30,12 @@ declare type TabLabelProps = {
|
|
|
30
30
|
children: ReactNode;
|
|
31
31
|
ariaLabel: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type TabCommonProps = {
|
|
34
34
|
value: number;
|
|
35
35
|
onClick?: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement> | KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
36
36
|
className?: string;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type TabProps<T = TabTypeProps> = TabCommonProps & T & TabLabelProps;
|
|
39
39
|
/**
|
|
40
40
|
* ### Purpose
|
|
41
41
|
* A single tab implementation that works together with TabContext and TabList components.
|
package/lib/Tabs/TabContext.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type TabContextValue = {
|
|
3
3
|
onChange: (value: number) => void;
|
|
4
4
|
value: number;
|
|
5
5
|
idPrefix: string;
|
|
@@ -14,7 +14,7 @@ export declare const TabContext: React.Context<TabContextValue>;
|
|
|
14
14
|
* A custom hook utilizing context for easy usage.
|
|
15
15
|
*/
|
|
16
16
|
export declare const useTabContext: () => TabContextValue;
|
|
17
|
-
export
|
|
17
|
+
export type TabContextProviderProps = Pick<TabContextValue, 'fullWidth'> & {
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export declare type TabContextProviderProps = Pick<TabContextValue, 'fullWidth'>
|
|
|
22
22
|
* If you want more control over the value state (active tab) you can use TabContextProviderControlled.
|
|
23
23
|
*/
|
|
24
24
|
export declare const TabContextProvider: FC<TabContextProviderProps>;
|
|
25
|
-
export
|
|
25
|
+
export type TabContextProviderControlledProps = Omit<TabContextValue, 'idPrefix'> & {
|
|
26
26
|
children: ReactNode;
|
|
27
27
|
};
|
|
28
28
|
/**
|
package/lib/Tabs/TabList.d.ts
CHANGED
package/lib/Tabs/TabPanel.d.ts
CHANGED
package/lib/Terminal.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { DataTestProp } from '@hazelcast/helpers';
|
|
|
3
3
|
export declare class CommandTimeoutError extends Error {
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type TerminalProps = {
|
|
7
7
|
onExecute: (command: string, args: string[]) => Promise<string[]>;
|
|
8
8
|
commandTimeout?: number;
|
|
9
9
|
historyLimit?: number;
|
package/lib/TextArea.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ChangeEvent, FC, FocusEvent } from 'react';
|
|
2
2
|
import { DataTestProp } from '@hazelcast/helpers';
|
|
3
3
|
import { FieldHeaderProps } from './FieldHeader';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type TextAreaSize = 'medium' | 'small';
|
|
5
|
+
export type TextAreaCoreProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
value?: string;
|
|
8
8
|
onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
|
|
9
9
|
onChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
10
|
error?: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TextAreaExtraProps = {
|
|
13
13
|
textareaClassName?: string;
|
|
14
14
|
errorClassName?: string;
|
|
15
15
|
resizable?: boolean;
|
|
16
16
|
size?: TextAreaSize;
|
|
17
17
|
} & Partial<Pick<HTMLTextAreaElement, 'className' | 'disabled' | 'placeholder' | 'required' | 'rows'>> & Omit<FieldHeaderProps, 'id'>;
|
|
18
|
-
export
|
|
18
|
+
export type TextAreaProps = TextAreaCoreProps & TextAreaExtraProps & DataTestProp;
|
|
19
19
|
export declare const TextArea: FC<TextAreaProps>;
|
package/lib/TextAreaFormik.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { FieldValidator } from 'formik';
|
|
3
3
|
import { TextAreaExtraProps } from './TextArea';
|
|
4
4
|
import { ExtractKeysOfValueType } from './utils/types';
|
|
5
|
-
export
|
|
5
|
+
export type TextAreaFormikProps<V extends object> = TextAreaExtraProps & {
|
|
6
6
|
name: ExtractKeysOfValueType<V, string | undefined>;
|
|
7
7
|
validate?: FieldValidator;
|
|
8
8
|
};
|
package/lib/TextField.d.ts
CHANGED
|
@@ -4,16 +4,16 @@ import { Icon as IconType } from 'react-feather';
|
|
|
4
4
|
import { FieldHeaderProps } from './FieldHeader';
|
|
5
5
|
import { IconSize } from './Icon';
|
|
6
6
|
import { TooltipProps } from './Tooltip';
|
|
7
|
-
export
|
|
8
|
-
|
|
7
|
+
export type TextFieldSize = 'medium' | 'small';
|
|
8
|
+
type TextFieldTrailingIcon = {
|
|
9
9
|
inputTrailingIcon: IconType;
|
|
10
10
|
inputTrailingIconLabel: string;
|
|
11
11
|
} | {
|
|
12
12
|
inputTrailingIcon?: never;
|
|
13
13
|
inputTrailingIconLabel?: never;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
|
|
15
|
+
export type TextFieldTypes = 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | undefined;
|
|
16
|
+
type TextFieldCoreProps<T extends TextFieldTypes> = {
|
|
17
17
|
name: string;
|
|
18
18
|
value?: T extends 'number' ? number : string;
|
|
19
19
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
@@ -21,7 +21,7 @@ declare type TextFieldCoreProps<T extends TextFieldTypes> = {
|
|
|
21
21
|
onClick?: (e: MouseEvent<HTMLInputElement>) => void;
|
|
22
22
|
error?: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type TextFieldExtraProps<T extends TextFieldTypes> = {
|
|
25
25
|
size?: TextFieldSize;
|
|
26
26
|
iconSize?: IconSize;
|
|
27
27
|
className?: string;
|
|
@@ -36,7 +36,7 @@ export declare type TextFieldExtraProps<T extends TextFieldTypes> = {
|
|
|
36
36
|
clearable?: boolean;
|
|
37
37
|
errorTooltipPlacement?: TooltipProps['placement'];
|
|
38
38
|
} & DataTestProp & Pick<InputHTMLAttributes<HTMLInputElement>, 'id' | 'autoFocus' | 'disabled' | 'autoComplete' | 'required' | 'placeholder'> & TextFieldTrailingIcon & Omit<FieldHeaderProps, 'id'>;
|
|
39
|
-
export
|
|
39
|
+
export type TextFieldProps<T extends TextFieldTypes> = TextFieldCoreProps<T> & TextFieldExtraProps<T>;
|
|
40
40
|
export declare const TextField: <T extends TextFieldTypes>({ mRef, ...props }: TextFieldProps<T> & {
|
|
41
41
|
mRef?: React.Ref<HTMLInputElement> | undefined;
|
|
42
42
|
}) => JSX.Element;
|
package/lib/TextFieldFormik.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React, { ReactElement } from 'react';
|
|
|
2
2
|
import { TextFieldExtraProps, TextFieldTypes } from './TextField';
|
|
3
3
|
import { FieldValidatorGeneric } from './utils/formik';
|
|
4
4
|
import { ExtractKeysOfValueType } from './utils/types';
|
|
5
|
-
export
|
|
5
|
+
export type TextFieldFormikProps<V extends object> = TextFieldExtraProps<Exclude<TextFieldTypes, 'number' | 'password'>> & {
|
|
6
6
|
name: ExtractKeysOfValueType<V, string | undefined>;
|
|
7
7
|
validate?: FieldValidatorGeneric<string | undefined>;
|
|
8
8
|
onChange?: (value: string) => void;
|
package/lib/TimeField.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FocusEvent, ChangeEvent, FC, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { DataTestProp } from '@hazelcast/helpers';
|
|
3
3
|
import { FieldHeaderProps } from './FieldHeader';
|
|
4
|
-
export
|
|
4
|
+
export type TimeFieldCoreProps = {
|
|
5
5
|
name: string;
|
|
6
6
|
value?: string;
|
|
7
7
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
8
8
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
9
9
|
error?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type TimeFieldExtraProps = {
|
|
12
12
|
inputClassName?: string;
|
|
13
13
|
errorClassName?: string;
|
|
14
14
|
seconds?: boolean;
|
|
15
15
|
} & Pick<InputHTMLAttributes<HTMLInputElement>, 'id' | 'className' | 'autoFocus' | 'disabled' | 'required'> & Omit<FieldHeaderProps, 'id'>;
|
|
16
|
-
export
|
|
16
|
+
export type TypeFieldProps = TimeFieldCoreProps & TimeFieldExtraProps & DataTestProp;
|
|
17
17
|
export declare const TimeField: FC<TypeFieldProps>;
|
package/lib/TimeFieldFormik.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { TimeFieldExtraProps } from './TimeField';
|
|
3
3
|
import { ExtractKeysOfValueType } from '../src/utils/types';
|
|
4
4
|
import { FieldValidatorGeneric } from './utils/formik';
|
|
5
|
-
export
|
|
5
|
+
export type TimeFieldFormikProps<V extends object> = TimeFieldExtraProps & {
|
|
6
6
|
name: ExtractKeysOfValueType<V, string | undefined>;
|
|
7
7
|
validate?: FieldValidatorGeneric<string | undefined>;
|
|
8
8
|
};
|
package/lib/Toast.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { Icon as IconType } from 'react-feather';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ToastType = 'success' | 'info' | 'warning' | 'critical';
|
|
4
|
+
export type ToastIconDescriptor = {
|
|
5
5
|
icon: IconType;
|
|
6
6
|
ariaLabel: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const ToastIcon: {
|
|
9
9
|
[key in ToastType]: ToastIconDescriptor;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ToastProps = {
|
|
12
12
|
type: ToastType;
|
|
13
13
|
content: ReactNode;
|
|
14
14
|
dismissableByEscKey?: boolean;
|
package/lib/Toggle.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC, FocusEvent, ChangeEvent } from 'react';
|
|
2
2
|
import { DataTestProp } from '@hazelcast/helpers';
|
|
3
3
|
import { HelpProps } from './Help';
|
|
4
|
-
|
|
4
|
+
type ToggleCoreProps = {
|
|
5
5
|
name: string;
|
|
6
6
|
value?: string;
|
|
7
7
|
checked?: boolean;
|
|
@@ -9,13 +9,13 @@ declare type ToggleCoreProps = {
|
|
|
9
9
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
10
10
|
error?: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ToggleExtraProps = {
|
|
13
13
|
label: string | React.ReactNode;
|
|
14
14
|
helperText?: HelpProps['helperText'];
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
classNameLabel?: string;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type ToggleProps = ToggleCoreProps & ToggleExtraProps & DataTestProp;
|
|
20
20
|
export declare const Toggle: FC<ToggleProps>;
|
|
21
21
|
export {};
|
package/lib/ToggleFormik.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { FieldValidatorGeneric } from './utils/formik';
|
|
3
3
|
import { ExtractKeysOfValueType } from './utils/types';
|
|
4
4
|
import { ToggleExtraProps } from './Toggle';
|
|
5
|
-
export
|
|
5
|
+
export type ToggleFormikProps<V extends object> = ToggleExtraProps & {
|
|
6
6
|
name: ExtractKeysOfValueType<V, boolean>;
|
|
7
7
|
validate?: FieldValidatorGeneric<boolean>;
|
|
8
8
|
};
|
package/lib/Tooltip.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import React, { FC, ReactNode, MutableRefObject, ReactText, MouseEventHandler, C
|
|
|
2
2
|
import { Placement } from '@popperjs/core';
|
|
3
3
|
import { usePopper } from 'react-popper';
|
|
4
4
|
import { PortalContainer } from './utils/portal';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type PopperRef = ReturnType<typeof usePopper>;
|
|
6
|
+
export type TooltipProps = {
|
|
7
7
|
content: ReactNode;
|
|
8
8
|
id: string;
|
|
9
9
|
hideTimeout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AE,gBAAgB,EACrB,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;4BAC5B,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,gBAAgB;yBACnC,CAAC,EACF,KAAK,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,eAC/F,iBAAiB,0BAEvB,MAAM,CAAC,UAAU,CAAC,MAAM;wBAE3B,OAAO;wBACR,8BACE,GAAG,EAAE,eAAe,EACpB,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,eAChB,eAAe,KACrB,MAAM,CAAC,UAAU,CAAC,KAAK,GAC3B,CACG,CACN,EACH,sBAAsB,CACvB,CACF,CACJ,CACuB,CAC3B,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import ReactSelect from 'react-select';
|
|
3
|
-
|
|
3
|
+
type RefElement = MutableRefObject<ReactSelect | undefined>;
|
|
4
4
|
/** If the size of screen is changed we close dropdown menu to aviod the dropdown menu bug in react-select library.
|
|
5
5
|
* For more information visit: https://github.com/JedWatson/react-select/issues/3533
|
|
6
6
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type RefElement = HTMLElement | null | undefined;
|
|
2
2
|
export declare const containsElement: (target: RefElement, element: Node) => boolean | undefined;
|
|
3
3
|
export declare const useOnClickOutside: (active: boolean, opts: {
|
|
4
4
|
target: RefElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type PaginationItem = number | 'previous' | 'next' | 'ellipsis';
|
|
2
|
+
export type UsePaginationProps = {
|
|
3
3
|
pageCount: number;
|
|
4
4
|
currentPage: number;
|
|
5
5
|
small?: boolean;
|
package/lib/utils/formik.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FieldMetaProps } from 'formik';
|
|
2
2
|
export declare const getFieldError: <T>(meta: FieldMetaProps<T>) => string | undefined;
|
|
3
|
-
export
|
|
4
|
-
export declare const formikTouchAndUpdate: <T>(setValue: (value: T) => void, setTouched: (touched: boolean, shouldValidate?: boolean
|
|
3
|
+
export type FieldValidatorGeneric<T> = (value: T) => string | void | Promise<string | void>;
|
|
4
|
+
export declare const formikTouchAndUpdate: <T>(setValue: (value: T) => void, setTouched: (touched: boolean, shouldValidate?: boolean) => void) => (newValue: T) => void;
|
package/lib/utils/portal.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const getPortalContainer: (container: PortalContainer, referenceElement?: HTMLElement | null
|
|
1
|
+
export type PortalContainer = 'body' | 'referenceElement' | string | HTMLElement;
|
|
2
|
+
export declare const getPortalContainer: (container: PortalContainer, referenceElement?: HTMLElement | null) => HTMLElement | null;
|
package/lib/utils/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazelcast/ui",
|
|
3
|
-
"version": "1.3.2-next.
|
|
3
|
+
"version": "1.3.2-next.49+d3917cb",
|
|
4
4
|
"description": "Hazelcast design system components",
|
|
5
5
|
"author": "",
|
|
6
6
|
"homepage": "https://github.com/hazelcast/frontend-shared#readme",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"compile": "shx rm -f *.tsbuildinfo && shx rm -rf lib && shx mkdir lib && shx cp -r src/* lib && shx rm -rf lib/*.{tsx,ts} && shx rm -rf lib/**/*.{tsx,ts} && tsc -p tsconfig.build.json",
|
|
28
28
|
"test": "jest --maxWorkers=50%",
|
|
29
29
|
"test:watch": "jest --watch",
|
|
30
|
-
"start": "
|
|
30
|
+
"start": "pnpm run storybook",
|
|
31
31
|
"storybook": "start-storybook -p 6006",
|
|
32
32
|
"build-storybook": "build-storybook",
|
|
33
33
|
"publish-storybook": "chromatic --storybook-build-dir storybook-static --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes",
|
|
34
34
|
"chromatic": "chromatic --project-token=CHROMATIC_PROJECT_TOKEN",
|
|
35
35
|
"test:visual": "loki --verboseRenderer --requireReference --reactUri file:./storybook-static --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox --allow-file-access-from-files'",
|
|
36
36
|
"test:visual:approve": "loki approve",
|
|
37
|
-
"generate-screenshots": "
|
|
38
|
-
"lint": "
|
|
39
|
-
"lint:fix": "
|
|
37
|
+
"generate-screenshots": "pnpm run build-storybook && loki update --reactUri file:./storybook-static --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox --allow-file-access-from-files'",
|
|
38
|
+
"lint": "pnpm run lint:ts && pnpm run lint:css",
|
|
39
|
+
"lint:fix": "pnpm run lint:ts:fix && pnpm run lint:css:fix",
|
|
40
40
|
"lint:ts": "eslint --ext .ts,.tsx .",
|
|
41
|
-
"lint:ts:fix": "
|
|
41
|
+
"lint:ts:fix": "pnpm run lint -- --fix",
|
|
42
42
|
"lint:css": "postcss --config ./.postcss-lint --replace '**/*.{css,scss}'",
|
|
43
43
|
"lint:css:fix": "stylelint --fix '**/*.{css,scss}'"
|
|
44
44
|
},
|
|
@@ -46,37 +46,37 @@
|
|
|
46
46
|
"url": "https://github.com/hazelcast/frontend-shared/issues"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@hazelcast/helpers": "^1.3.
|
|
50
|
-
"@hazelcast/services": "^1.3.
|
|
49
|
+
"@hazelcast/helpers": "^1.3.2-next.49+d3917cb",
|
|
50
|
+
"@hazelcast/services": "^1.3.2-next.49+d3917cb",
|
|
51
51
|
"@headlessui/react": "^1.4.2",
|
|
52
52
|
"@icons-pack/react-simple-icons": "^4.6.1",
|
|
53
|
-
"@popperjs/core": "^2.11.
|
|
54
|
-
"@types/react-modal": "3.
|
|
55
|
-
"@types/react-select": "3.
|
|
56
|
-
"@types/react-table": "^7.7.
|
|
57
|
-
"classnames": "^2.3.
|
|
58
|
-
"date-fns": "^2.
|
|
59
|
-
"dequal": "^2.0.
|
|
60
|
-
"focus-trap-react": "^
|
|
53
|
+
"@popperjs/core": "^2.11.7",
|
|
54
|
+
"@types/react-modal": "3.16.0",
|
|
55
|
+
"@types/react-select": "3.1.2",
|
|
56
|
+
"@types/react-table": "^7.7.14",
|
|
57
|
+
"classnames": "^2.3.2",
|
|
58
|
+
"date-fns": "^2.29.3",
|
|
59
|
+
"dequal": "^2.0.3",
|
|
60
|
+
"focus-trap-react": "^10.1.1",
|
|
61
61
|
"formik": "^2.2.9",
|
|
62
|
-
"nuka-carousel": "^5.
|
|
63
|
-
"rc-tooltip": "^5.
|
|
64
|
-
"react-datepicker": "^4.
|
|
65
|
-
"react-feather": "^2.0.
|
|
62
|
+
"nuka-carousel": "^5.5.1",
|
|
63
|
+
"rc-tooltip": "^5.3.1",
|
|
64
|
+
"react-datepicker": "^4.11.0",
|
|
65
|
+
"react-feather": "^2.0.10",
|
|
66
66
|
"react-hotkeys": "^2.0.0",
|
|
67
67
|
"react-merge-refs": "^1.1.0",
|
|
68
|
-
"react-modal": "^3.
|
|
69
|
-
"react-popper": "^2.
|
|
68
|
+
"react-modal": "^3.16.1",
|
|
69
|
+
"react-popper": "^2.3.0",
|
|
70
70
|
"react-resize-aware": "3.1.1",
|
|
71
|
-
"react-select": "^4.1
|
|
72
|
-
"react-simple-timefield": "^3.
|
|
73
|
-
"react-table": "^7.
|
|
74
|
-
"react-uid": "^2.3.
|
|
75
|
-
"react-use": "^17.
|
|
71
|
+
"react-select": "^4.3.1",
|
|
72
|
+
"react-simple-timefield": "^3.3.1",
|
|
73
|
+
"react-table": "^7.8.0",
|
|
74
|
+
"react-uid": "^2.3.2",
|
|
75
|
+
"react-use": "^17.4.0",
|
|
76
76
|
"use-deep-compare": "^1.1.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@hazelcast/test-helpers": "^1.3.
|
|
79
|
+
"@hazelcast/test-helpers": "^1.3.2-next.49+d3917cb",
|
|
80
80
|
"@storybook/addon-docs": "^6.5.16",
|
|
81
81
|
"@storybook/addons": "^6.5.16",
|
|
82
82
|
"@storybook/builder-webpack5": "^6.5.16",
|
|
@@ -85,32 +85,37 @@
|
|
|
85
85
|
"@storybook/react": "^6.5.16",
|
|
86
86
|
"@storybook/theming": "^6.5.16",
|
|
87
87
|
"@types/classnames": "^2.3.1",
|
|
88
|
-
"@types/enzyme": "^3.10.
|
|
89
|
-
"@types/enzyme-adapter-react-16": "^1.0.6",
|
|
88
|
+
"@types/enzyme": "^3.10.12",
|
|
90
89
|
"@types/jest-axe": "^3.5.3",
|
|
91
|
-
"@types/react": "^
|
|
90
|
+
"@types/react": "^17.0.45",
|
|
92
91
|
"@types/react-datepicker": "^4.3.2",
|
|
93
|
-
"@types/react-dom": "^
|
|
94
|
-
"
|
|
92
|
+
"@types/react-dom": "^17.0.17",
|
|
93
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
94
|
+
"babel-loader": "^9.1.2",
|
|
95
|
+
"doiuse": "^4.4.1",
|
|
95
96
|
"enzyme": "^3.11.0",
|
|
96
|
-
"enzyme-adapter-react-16": "^1.15.6",
|
|
97
97
|
"jest-axe": "^5.0.1",
|
|
98
98
|
"loki": "^0.31.1",
|
|
99
|
-
"postcss": "^8.4.
|
|
99
|
+
"postcss": "^8.4.23",
|
|
100
100
|
"postcss-cli": "^9.1.0",
|
|
101
|
-
"postcss-reporter": "^7.0.
|
|
102
|
-
"postcss-scss": "^4.0.
|
|
103
|
-
"react": "^
|
|
104
|
-
"react-dom": "^
|
|
105
|
-
"storybook-addon-designs": "^6.
|
|
106
|
-
"stylelint": "^
|
|
107
|
-
"stylelint-config-
|
|
108
|
-
"stylelint-config-standard": "^
|
|
109
|
-
"stylelint-
|
|
110
|
-
"stylelint-
|
|
111
|
-
"
|
|
112
|
-
"webpack": "^5.79.0",
|
|
101
|
+
"postcss-reporter": "^7.0.5",
|
|
102
|
+
"postcss-scss": "^4.0.6",
|
|
103
|
+
"react": "^17.0.2",
|
|
104
|
+
"react-dom": "^17.0.2",
|
|
105
|
+
"storybook-addon-designs": "^6.3.1",
|
|
106
|
+
"stylelint": "^15.6.0",
|
|
107
|
+
"stylelint-config-standard": "^33.0.0",
|
|
108
|
+
"stylelint-config-standard-scss": "^9.0.0",
|
|
109
|
+
"stylelint-prettier": "^3.0.0",
|
|
110
|
+
"stylelint-scss": "^4.6.0",
|
|
111
|
+
"webpack": "^5.81.0",
|
|
113
112
|
"yup": "^0.32.11"
|
|
114
113
|
},
|
|
115
|
-
"
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"@types/react": "^17 || ^18",
|
|
116
|
+
"@types/react-dom": "^17 || ^18",
|
|
117
|
+
"react": "^17 || ^18",
|
|
118
|
+
"react-dom": "^17 || ^18"
|
|
119
|
+
},
|
|
120
|
+
"gitHead": "d3917cb16cf7c98272e37337a542f2e94014b636"
|
|
116
121
|
}
|