@hazelcast/ui 1.3.2-next.47 → 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.
Files changed (96) hide show
  1. package/lib/Alert.d.ts +5 -5
  2. package/lib/AutocompleteField.d.ts +4 -4
  3. package/lib/AutocompleteField.js.map +1 -1
  4. package/lib/AutocompleteFieldFormik.d.ts +1 -1
  5. package/lib/Badge.d.ts +4 -4
  6. package/lib/Button.d.ts +14 -14
  7. package/lib/Calendar/Calendar.d.ts +2 -2
  8. package/lib/Calendar/Calendar.js +5 -3
  9. package/lib/Calendar/Calendar.js.map +1 -1
  10. package/lib/Calendar/CalendarRange.d.ts +2 -2
  11. package/lib/Calendar/components/CalendarHeader.d.ts +2 -2
  12. package/lib/Calendar/components/CalendarInput.d.ts +3 -3
  13. package/lib/Calendar/components/CalendarTime.d.ts +2 -2
  14. package/lib/Card.d.ts +1 -1
  15. package/lib/Carousel.d.ts +1 -1
  16. package/lib/Checkbox.d.ts +4 -3
  17. package/lib/Checkbox.js +2 -2
  18. package/lib/Checkbox.js.map +1 -1
  19. package/lib/CheckboxFormik.d.ts +1 -1
  20. package/lib/CircularProgressBar.d.ts +1 -1
  21. package/lib/Dialog.d.ts +2 -2
  22. package/lib/EmptyState.d.ts +5 -5
  23. package/lib/FieldHeader.d.ts +4 -4
  24. package/lib/Icon.d.ts +4 -4
  25. package/lib/Icon.js +1 -1
  26. package/lib/Icon.js.map +1 -1
  27. package/lib/IconButton.d.ts +6 -6
  28. package/lib/InteractiveList.d.ts +5 -5
  29. package/lib/InteractiveList.js +4 -2
  30. package/lib/InteractiveList.js.map +1 -1
  31. package/lib/InteractiveListFormik.d.ts +1 -1
  32. package/lib/Label.d.ts +1 -1
  33. package/lib/Link.d.ts +6 -6
  34. package/lib/Loader.d.ts +1 -1
  35. package/lib/Modal.d.ts +2 -2
  36. package/lib/Notification.d.ts +4 -4
  37. package/lib/NumberBadge.d.ts +1 -1
  38. package/lib/NumberField.d.ts +3 -3
  39. package/lib/NumberFieldFormik.d.ts +1 -1
  40. package/lib/Overlay.d.ts +2 -2
  41. package/lib/Overlay.module.scss +1 -1
  42. package/lib/Pagination.d.ts +3 -3
  43. package/lib/PasswordField.d.ts +3 -3
  44. package/lib/PasswordFieldFormik.d.ts +1 -1
  45. package/lib/Radio.d.ts +3 -3
  46. package/lib/RadioFormik.d.ts +1 -1
  47. package/lib/RadioGroup.d.ts +3 -3
  48. package/lib/RadioGroupFormik.d.ts +1 -1
  49. package/lib/SegmentedControl.d.ts +3 -3
  50. package/lib/SegmentedControlFormik.d.ts +1 -1
  51. package/lib/Select/CheckableSelectField.d.ts +3 -3
  52. package/lib/Select/CheckableSelectFieldFormik.d.ts +1 -1
  53. package/lib/Select/Common.d.ts +6 -6
  54. package/lib/Select/MultiSelectField.d.ts +7 -7
  55. package/lib/Select/MultiSelectField.js.map +1 -1
  56. package/lib/Select/MultiSelectFieldFormik.d.ts +1 -1
  57. package/lib/Select/SelectField.d.ts +5 -5
  58. package/lib/Select/SelectField.js.map +1 -1
  59. package/lib/Select/SelectFieldFormik.d.ts +1 -1
  60. package/lib/Select/helpers.d.ts +2 -2
  61. package/lib/SimpleTable.d.ts +1 -1
  62. package/lib/Slider.d.ts +8 -8
  63. package/lib/SliderFormik.d.ts +1 -1
  64. package/lib/Table/Cell.d.ts +2 -2
  65. package/lib/Table/CellWrapper.d.ts +1 -1
  66. package/lib/Table/EnhancedRenderers.d.ts +2 -2
  67. package/lib/Table/Header.d.ts +1 -1
  68. package/lib/Table/Row.d.ts +4 -4
  69. package/lib/Table/Table.d.ts +8 -8
  70. package/lib/Table/TableContent.d.ts +1 -1
  71. package/lib/Table/features/columnsSelection/columnsSelection.d.ts +1 -1
  72. package/lib/Table/features/columnsSelection/helpers.d.ts +1 -1
  73. package/lib/Tabs/Tab.d.ts +6 -6
  74. package/lib/Tabs/TabContext.d.ts +3 -3
  75. package/lib/Tabs/TabList.d.ts +1 -1
  76. package/lib/Tabs/TabPanel.d.ts +1 -1
  77. package/lib/Terminal.d.ts +1 -1
  78. package/lib/TextArea.d.ts +4 -4
  79. package/lib/TextAreaFormik.d.ts +1 -1
  80. package/lib/TextField.d.ts +6 -6
  81. package/lib/TextFieldFormik.d.ts +1 -1
  82. package/lib/TimeField.d.ts +3 -3
  83. package/lib/TimeFieldFormik.d.ts +1 -1
  84. package/lib/Toast.d.ts +3 -3
  85. package/lib/Toggle.d.ts +3 -3
  86. package/lib/ToggleFormik.d.ts +1 -1
  87. package/lib/Tooltip.d.ts +2 -2
  88. package/lib/Tooltip.js.map +1 -1
  89. package/lib/hooks/useCloseOnResize.d.ts +1 -1
  90. package/lib/hooks/useDimensions.d.ts +1 -1
  91. package/lib/hooks/useOnClickOutside.d.ts +1 -1
  92. package/lib/hooks/usePagination.d.ts +2 -2
  93. package/lib/utils/formik.d.ts +2 -2
  94. package/lib/utils/portal.d.ts +2 -2
  95. package/lib/utils/types.d.ts +1 -1
  96. package/package.json +61 -56
@@ -1,6 +1,6 @@
1
1
  import { FC, MouseEvent, KeyboardEvent, DragEvent } from 'react';
2
2
  import { TableHeaderProps, TableResizerProps } from 'react-table';
3
- export declare type HeaderProps = {
3
+ export type HeaderProps = {
4
4
  /**
5
5
  * Number fields should be right aligned as that allows
6
6
  * you to compare them or add them up quickly in your head.
@@ -1,16 +1,16 @@
1
1
  import { FC, AnchorHTMLAttributes } from 'react';
2
2
  import { TableHeaderGroupProps } from 'react-table';
3
- declare type RowBase = Omit<TableHeaderGroupProps, 'key'> & {
3
+ type RowBase = Omit<TableHeaderGroupProps, 'key'> & {
4
4
  ariaRowIndex?: number;
5
5
  };
6
- export declare type RowProps = RowBase & {
6
+ export type RowProps = RowBase & {
7
7
  onClick?: () => void;
8
8
  };
9
- export declare type LinkRowProps = RowBase & {
9
+ export type LinkRowProps = RowBase & {
10
10
  href: string;
11
11
  AnchorComponent?: FC<AnchorHTMLAttributes<HTMLAnchorElement>>;
12
12
  };
13
- export declare type HeaderRowProps = RowBase;
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>;
@@ -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 declare type Column<T extends object> = ColumnType<T> & {
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 declare type PaginationOptions = Partial<Pick<PaginationProps, 'pageSizeOptions'>>;
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
- declare type ExtendedPaginationProps = {
38
+ type ExtendedPaginationProps = {
39
39
  paginationOptions?: PaginationOptions;
40
40
  defaultPageSize?: number;
41
41
  hidePagination?: boolean;
42
42
  };
43
- export declare type PaginationChangeProps = {
43
+ export type PaginationChangeProps = {
44
44
  pageSize: number;
45
45
  pageIndex: number;
46
46
  };
47
- export declare type ControlledPaginationProps = {
47
+ export type ControlledPaginationProps = {
48
48
  manualPagination?: boolean;
49
49
  onPaginationChange?: (paginationChangeProps: PaginationChangeProps) => void;
50
50
  };
51
- declare type CustomTableRowClickProps<D extends object> = {
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
- declare type CustomTableProps<D extends object> = {
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 declare type TableProps<D extends object> = TableOptions<D> & ExtendedPaginationProps & ControlledPaginationProps & CustomTableProps<D>;
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 declare type TableContentProps<D extends object> = {
6
+ export type TableContentProps<D extends object> = {
7
7
  loading?: boolean;
8
8
  page: RowType<D>[];
9
9
  className?: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectedColumnsState } from './helpers';
3
- export declare type ColumnsSelectionProps = {
3
+ export type ColumnsSelectionProps = {
4
4
  rowsPerPage: number;
5
5
  columnsPerRow: number;
6
6
  };
@@ -1,4 +1,4 @@
1
- export declare type SelectedColumnsState = {
1
+ export type SelectedColumnsState = {
2
2
  range: [string | undefined, string | undefined];
3
3
  columns: Set<string>;
4
4
  };
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 declare type AnchorTabProps = {
3
+ export type AnchorTabProps = {
4
4
  component: 'a';
5
5
  href: string;
6
6
  };
7
- export declare type ButtonTabProps = {
7
+ export type ButtonTabProps = {
8
8
  component?: 'button';
9
9
  href?: never;
10
10
  };
11
- declare type TabTypeProps = AnchorTabProps | ButtonTabProps;
12
- declare type TabLabelProps = {
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 declare type TabCommonProps = {
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 declare type TabProps<T = TabTypeProps> = TabCommonProps & T & TabLabelProps;
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.
@@ -1,5 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
- export declare type TabContextValue = {
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 declare type TabContextProviderProps = Pick<TabContextValue, 'fullWidth'> & {
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 declare type TabContextProviderControlledProps = Omit<TabContextValue, 'idPrefix'> & {
25
+ export type TabContextProviderControlledProps = Omit<TabContextValue, 'idPrefix'> & {
26
26
  children: ReactNode;
27
27
  };
28
28
  /**
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- export declare type TabListProps = {
2
+ export type TabListProps = {
3
3
  ariaLabel: string;
4
4
  className?: string;
5
5
  children: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- export declare type TabPanelProps = {
2
+ export type TabPanelProps = {
3
3
  value: number;
4
4
  children: ReactNode;
5
5
  };
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 declare type TerminalProps = {
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 declare type TextAreaSize = 'medium' | 'small';
5
- export declare type TextAreaCoreProps = {
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 declare type TextAreaExtraProps = {
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 declare type TextAreaProps = TextAreaCoreProps & TextAreaExtraProps & DataTestProp;
18
+ export type TextAreaProps = TextAreaCoreProps & TextAreaExtraProps & DataTestProp;
19
19
  export declare const TextArea: FC<TextAreaProps>;
@@ -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 declare type TextAreaFormikProps<V extends object> = TextAreaExtraProps & {
5
+ export type TextAreaFormikProps<V extends object> = TextAreaExtraProps & {
6
6
  name: ExtractKeysOfValueType<V, string | undefined>;
7
7
  validate?: FieldValidator;
8
8
  };
@@ -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 declare type TextFieldSize = 'medium' | 'small';
8
- declare type TextFieldTrailingIcon = {
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 declare type TextFieldTypes = 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | undefined;
16
- declare type TextFieldCoreProps<T extends TextFieldTypes> = {
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 declare type TextFieldExtraProps<T extends TextFieldTypes> = {
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 declare type TextFieldProps<T extends TextFieldTypes> = TextFieldCoreProps<T> & TextFieldExtraProps<T>;
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;
@@ -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 declare type TextFieldFormikProps<V extends object> = TextFieldExtraProps<Exclude<TextFieldTypes, 'number' | 'password'>> & {
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;
@@ -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 declare type TimeFieldCoreProps = {
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 declare type TimeFieldExtraProps = {
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 declare type TypeFieldProps = TimeFieldCoreProps & TimeFieldExtraProps & DataTestProp;
16
+ export type TypeFieldProps = TimeFieldCoreProps & TimeFieldExtraProps & DataTestProp;
17
17
  export declare const TimeField: FC<TypeFieldProps>;
@@ -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 declare type TimeFieldFormikProps<V extends object> = TimeFieldExtraProps & {
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 declare type ToastType = 'success' | 'info' | 'warning' | 'critical';
4
- export declare type ToastIconDescriptor = {
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 declare type ToastProps = {
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
- declare type ToggleCoreProps = {
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 declare type ToggleExtraProps = {
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 declare type ToggleProps = ToggleCoreProps & ToggleExtraProps & DataTestProp;
19
+ export type ToggleProps = ToggleCoreProps & ToggleExtraProps & DataTestProp;
20
20
  export declare const Toggle: FC<ToggleProps>;
21
21
  export {};
@@ -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 declare type ToggleFormikProps<V extends object> = ToggleExtraProps & {
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 declare type PopperRef = ReturnType<typeof usePopper>;
6
- export declare type TooltipProps = {
5
+ export type PopperRef = ReturnType<typeof usePopper>;
6
+ export type TooltipProps = {
7
7
  content: ReactNode;
8
8
  id: string;
9
9
  hideTimeoutDuration?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../src/T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C,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
- declare type RefElement = MutableRefObject<ReactSelect | undefined>;
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,5 +1,5 @@
1
1
  import { RefObject } from 'react';
2
- export declare type Dimensions = {
2
+ export type Dimensions = {
3
3
  width: number;
4
4
  height: number;
5
5
  };
@@ -1,4 +1,4 @@
1
- declare type RefElement = HTMLElement | null | undefined;
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 declare type PaginationItem = number | 'previous' | 'next' | 'ellipsis';
2
- export declare type UsePaginationProps = {
1
+ export type PaginationItem = number | 'previous' | 'next' | 'ellipsis';
2
+ export type UsePaginationProps = {
3
3
  pageCount: number;
4
4
  currentPage: number;
5
5
  small?: boolean;
@@ -1,4 +1,4 @@
1
1
  import { FieldMetaProps } from 'formik';
2
2
  export declare const getFieldError: <T>(meta: FieldMetaProps<T>) => string | undefined;
3
- export declare 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 | undefined) => void) => (newValue: T) => void;
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;
@@ -1,2 +1,2 @@
1
- export declare type PortalContainer = 'body' | 'referenceElement' | string | HTMLElement;
2
- export declare const getPortalContainer: (container: PortalContainer, referenceElement?: HTMLElement | null | undefined) => HTMLElement | null;
1
+ export type PortalContainer = 'body' | 'referenceElement' | string | HTMLElement;
2
+ export declare const getPortalContainer: (container: PortalContainer, referenceElement?: HTMLElement | null) => HTMLElement | null;
@@ -1,3 +1,3 @@
1
- export declare type ExtractKeysOfValueType<T, KV> = {
1
+ export type ExtractKeysOfValueType<T, KV> = {
2
2
  [K in Extract<keyof T, string>]: T[K] extends KV ? K : never;
3
3
  }[Extract<keyof T, string>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazelcast/ui",
3
- "version": "1.3.2-next.47+47bba96",
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": "npm run storybook",
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": "npm run build-storybook && loki update --reactUri file:./storybook-static --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox --allow-file-access-from-files'",
38
- "lint": "npm run lint:ts && npm run lint:css",
39
- "lint:fix": "npm run lint:ts:fix && npm run lint:css: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": "npm run lint -- --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,71 +46,76 @@
46
46
  "url": "https://github.com/hazelcast/frontend-shared/issues"
47
47
  },
48
48
  "dependencies": {
49
- "@hazelcast/helpers": "^1.3.1",
50
- "@hazelcast/services": "^1.3.1",
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.0",
54
- "@types/react-modal": "3.13.1",
55
- "@types/react-select": "3.0.26",
56
- "@types/react-table": "^7.7.9",
57
- "classnames": "^2.3.1",
58
- "date-fns": "^2.27.0",
59
- "dequal": "^2.0.2",
60
- "focus-trap-react": "^8.9.0",
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.4.0",
63
- "rc-tooltip": "^5.1.1",
64
- "react-datepicker": "^4.5.0",
65
- "react-feather": "^2.0.9",
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.14.4",
69
- "react-popper": "^2.2.3",
70
- "react-resize-aware": "^3.1.1",
71
- "react-select": "^4.1.0",
72
- "react-simple-timefield": "^3.2.5",
73
- "react-table": "^7.7.0",
74
- "react-uid": "^2.3.1",
75
- "react-use": "^17.3.1",
68
+ "react-modal": "^3.16.1",
69
+ "react-popper": "^2.3.0",
70
+ "react-resize-aware": "3.1.1",
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.1",
80
- "@storybook/addon-docs": "^6.4.9",
81
- "@storybook/addons": "^6.4.9",
82
- "@storybook/builder-webpack5": "^6.4.9",
83
- "@storybook/manager-webpack5": "^6.4.9",
79
+ "@hazelcast/test-helpers": "^1.3.2-next.49+d3917cb",
80
+ "@storybook/addon-docs": "^6.5.16",
81
+ "@storybook/addons": "^6.5.16",
82
+ "@storybook/builder-webpack5": "^6.5.16",
83
+ "@storybook/manager-webpack5": "^6.5.16",
84
84
  "@storybook/preset-scss": "^1.0.3",
85
- "@storybook/react": "^6.4.9",
86
- "@storybook/theming": "^6.4.9",
85
+ "@storybook/react": "^6.5.16",
86
+ "@storybook/theming": "^6.5.16",
87
87
  "@types/classnames": "^2.3.1",
88
- "@types/enzyme": "^3.10.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": "^16.14.21",
90
+ "@types/react": "^17.0.45",
92
91
  "@types/react-datepicker": "^4.3.2",
93
- "@types/react-dom": "^16.9.14",
94
- "doiuse": "^4.2.0",
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
- "loki": "^0.28.1",
99
- "postcss": "^8.4.5",
98
+ "loki": "^0.31.1",
99
+ "postcss": "^8.4.23",
100
100
  "postcss-cli": "^9.1.0",
101
- "postcss-reporter": "^7.0.4",
102
- "postcss-scss": "^4.0.2",
103
- "react": "^16.14.0",
104
- "react-dom": "^16.14.0",
105
- "storybook-addon-designs": "^6.2.0",
106
- "stylelint": "^14.1.0",
107
- "stylelint-config-prettier": "^9.0.3",
108
- "stylelint-config-standard": "^24.0.0",
109
- "stylelint-config-standard-scss": "^3.0.0",
110
- "stylelint-prettier": "^2.0.0",
111
- "stylelint-scss": "^4.0.1",
112
- "webpack": "^5.65.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
- "gitHead": "47bba961e34601a24ccc886a6fef940802551963"
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
  }