@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.
Files changed (94) 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 +3 -3
  17. package/lib/CheckboxFormik.d.ts +1 -1
  18. package/lib/CircularProgressBar.d.ts +1 -1
  19. package/lib/Dialog.d.ts +2 -2
  20. package/lib/EmptyState.d.ts +5 -5
  21. package/lib/FieldHeader.d.ts +4 -4
  22. package/lib/Icon.d.ts +4 -4
  23. package/lib/Icon.js +1 -1
  24. package/lib/Icon.js.map +1 -1
  25. package/lib/IconButton.d.ts +6 -6
  26. package/lib/InteractiveList.d.ts +5 -5
  27. package/lib/InteractiveList.js +4 -2
  28. package/lib/InteractiveList.js.map +1 -1
  29. package/lib/InteractiveListFormik.d.ts +1 -1
  30. package/lib/Label.d.ts +1 -1
  31. package/lib/Link.d.ts +6 -6
  32. package/lib/Loader.d.ts +1 -1
  33. package/lib/Modal.d.ts +2 -2
  34. package/lib/Notification.d.ts +4 -4
  35. package/lib/NumberBadge.d.ts +1 -1
  36. package/lib/NumberField.d.ts +3 -3
  37. package/lib/NumberFieldFormik.d.ts +1 -1
  38. package/lib/Overlay.d.ts +2 -2
  39. package/lib/Overlay.module.scss +1 -1
  40. package/lib/Pagination.d.ts +3 -3
  41. package/lib/PasswordField.d.ts +3 -3
  42. package/lib/PasswordFieldFormik.d.ts +1 -1
  43. package/lib/Radio.d.ts +3 -3
  44. package/lib/RadioFormik.d.ts +1 -1
  45. package/lib/RadioGroup.d.ts +3 -3
  46. package/lib/RadioGroupFormik.d.ts +1 -1
  47. package/lib/SegmentedControl.d.ts +3 -3
  48. package/lib/SegmentedControlFormik.d.ts +1 -1
  49. package/lib/Select/CheckableSelectField.d.ts +3 -3
  50. package/lib/Select/CheckableSelectFieldFormik.d.ts +1 -1
  51. package/lib/Select/Common.d.ts +6 -6
  52. package/lib/Select/MultiSelectField.d.ts +7 -7
  53. package/lib/Select/MultiSelectField.js.map +1 -1
  54. package/lib/Select/MultiSelectFieldFormik.d.ts +1 -1
  55. package/lib/Select/SelectField.d.ts +5 -5
  56. package/lib/Select/SelectField.js.map +1 -1
  57. package/lib/Select/SelectFieldFormik.d.ts +1 -1
  58. package/lib/Select/helpers.d.ts +2 -2
  59. package/lib/SimpleTable.d.ts +1 -1
  60. package/lib/Slider.d.ts +8 -8
  61. package/lib/SliderFormik.d.ts +1 -1
  62. package/lib/Table/Cell.d.ts +2 -2
  63. package/lib/Table/CellWrapper.d.ts +1 -1
  64. package/lib/Table/EnhancedRenderers.d.ts +2 -2
  65. package/lib/Table/Header.d.ts +1 -1
  66. package/lib/Table/Row.d.ts +4 -4
  67. package/lib/Table/Table.d.ts +8 -8
  68. package/lib/Table/TableContent.d.ts +1 -1
  69. package/lib/Table/features/columnsSelection/columnsSelection.d.ts +1 -1
  70. package/lib/Table/features/columnsSelection/helpers.d.ts +1 -1
  71. package/lib/Tabs/Tab.d.ts +6 -6
  72. package/lib/Tabs/TabContext.d.ts +3 -3
  73. package/lib/Tabs/TabList.d.ts +1 -1
  74. package/lib/Tabs/TabPanel.d.ts +1 -1
  75. package/lib/Terminal.d.ts +1 -1
  76. package/lib/TextArea.d.ts +4 -4
  77. package/lib/TextAreaFormik.d.ts +1 -1
  78. package/lib/TextField.d.ts +6 -6
  79. package/lib/TextFieldFormik.d.ts +1 -1
  80. package/lib/TimeField.d.ts +3 -3
  81. package/lib/TimeFieldFormik.d.ts +1 -1
  82. package/lib/Toast.d.ts +3 -3
  83. package/lib/Toggle.d.ts +3 -3
  84. package/lib/ToggleFormik.d.ts +1 -1
  85. package/lib/Tooltip.d.ts +2 -2
  86. package/lib/Tooltip.js.map +1 -1
  87. package/lib/hooks/useCloseOnResize.d.ts +1 -1
  88. package/lib/hooks/useDimensions.d.ts +1 -1
  89. package/lib/hooks/useOnClickOutside.d.ts +1 -1
  90. package/lib/hooks/usePagination.d.ts +2 -2
  91. package/lib/utils/formik.d.ts +2 -2
  92. package/lib/utils/portal.d.ts +2 -2
  93. package/lib/utils/types.d.ts +1 -1
  94. package/package.json +53 -48
package/lib/Link.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, MouseEventHandler, ReactNode } from 'react';
2
2
  import { Icon as FeatherIcon } from 'react-feather';
3
- export declare type LinkKind = 'primary' | 'secondary';
3
+ export type LinkKind = 'primary' | 'secondary';
4
4
  declare const sizes: {
5
5
  normal: string;
6
6
  small: string;
7
7
  inherit: string;
8
8
  };
9
- declare type AnchorAttributes = AnchorHTMLAttributes<HTMLAnchorElement>;
10
- declare type IconProps = {
9
+ type AnchorAttributes = AnchorHTMLAttributes<HTMLAnchorElement>;
10
+ type IconProps = {
11
11
  icon: FeatherIcon;
12
12
  ariaLabel: string;
13
13
  iconClassName?: string;
@@ -16,9 +16,9 @@ declare type IconProps = {
16
16
  ariaLabel?: never;
17
17
  iconClassName?: never;
18
18
  };
19
- export declare type LinkTarget = '_self' | '_blank' | '_parent' | '_top';
20
- export declare type LinkRel = 'alternate' | 'author' | 'bookmark' | 'dns-prefetch' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
21
- export declare type LinkProps = IconProps & {
19
+ export type LinkTarget = '_self' | '_blank' | '_parent' | '_top';
20
+ export type LinkRel = 'alternate' | 'author' | 'bookmark' | 'dns-prefetch' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noopener' | 'noreferrer' | 'opener' | 'prev' | 'search' | 'tag';
21
+ export type LinkProps = IconProps & {
22
22
  size?: keyof typeof sizes;
23
23
  kind?: 'primary' | 'secondary';
24
24
  children: ReactNode;
package/lib/Loader.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { FC, SVGAttributes } from 'react';
2
2
  import { IconSize } from './Icon';
3
- export declare type LoaderProps = {
3
+ export type LoaderProps = {
4
4
  className?: string;
5
5
  size?: IconSize;
6
6
  kind?: 'primary' | 'contrast' | 'inherit';
package/lib/Modal.d.ts CHANGED
@@ -4,8 +4,8 @@ import { DataTestProp } from '@hazelcast/helpers';
4
4
  import { ButtonProps, ButtonTypeButtonProps } from './Button';
5
5
  import { IconProps } from './Icon';
6
6
  export declare const setAppElement: (appElement: string | HTMLElement) => void;
7
- export declare type ModalActionProps = ButtonProps<ButtonTypeButtonProps>;
8
- export declare type ModalProps = {
7
+ export type ModalActionProps = ButtonProps<ButtonTypeButtonProps>;
8
+ export type ModalProps = {
9
9
  actions?: ModalActionProps[];
10
10
  hideActions?: boolean;
11
11
  autoFocus?: boolean;
@@ -1,21 +1,21 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { Icon as IconType } from 'react-feather';
3
- export declare type NotificationType = 'success' | 'info' | 'warning' | 'error';
4
- export declare type NotificationIconDescriptor = {
3
+ export type NotificationType = 'success' | 'info' | 'warning' | 'error';
4
+ export type NotificationIconDescriptor = {
5
5
  icon: IconType;
6
6
  ariaLabel: string;
7
7
  };
8
8
  export declare const NotificationIcon: {
9
9
  [key in NotificationType]: NotificationIconDescriptor;
10
10
  };
11
- declare type NotificationLink = {
11
+ type NotificationLink = {
12
12
  link: ReactNode;
13
13
  linkHref: string;
14
14
  } | {
15
15
  link?: never;
16
16
  linkHref?: never;
17
17
  };
18
- export declare type NotificationProps = {
18
+ export type NotificationProps = {
19
19
  className?: string;
20
20
  type: NotificationType;
21
21
  children: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- export declare type NumberBadgeProps = {
2
+ export type NumberBadgeProps = {
3
3
  number: number;
4
4
  className?: string;
5
5
  };
@@ -2,14 +2,14 @@ import { DataTestProp } from '@hazelcast/helpers';
2
2
  import { FC, FocusEvent, InputHTMLAttributes } from 'react';
3
3
  import { TextFieldSize } from './TextField';
4
4
  import { HelpProps } from './Help';
5
- declare type NumberFieldCoreProps = {
5
+ type NumberFieldCoreProps = {
6
6
  name: string;
7
7
  value?: number;
8
8
  onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
9
9
  onChange: (newValue?: number) => void;
10
10
  error?: string;
11
11
  };
12
- export declare type NumberFieldExtraProps = {
12
+ export type NumberFieldExtraProps = {
13
13
  incrementIconAriaLabel?: string;
14
14
  decrementIconAriaLabel?: string;
15
15
  step?: number;
@@ -29,6 +29,6 @@ export declare type NumberFieldExtraProps = {
29
29
  inputContainerClassName?: string;
30
30
  errorClassName?: string;
31
31
  } & DataTestProp & Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'disabled' | 'autoComplete' | 'required' | 'placeholder'>;
32
- export declare type NumberFieldProps = NumberFieldCoreProps & NumberFieldExtraProps;
32
+ export type NumberFieldProps = NumberFieldCoreProps & NumberFieldExtraProps;
33
33
  export declare const NumberField: FC<NumberFieldProps>;
34
34
  export {};
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { NumberFieldExtraProps } from './NumberField';
3
3
  import { FieldValidatorGeneric } from './utils/formik';
4
4
  import { ExtractKeysOfValueType } from './utils/types';
5
- export declare type NumberFieldFormikProps<V extends object> = NumberFieldExtraProps & {
5
+ export type NumberFieldFormikProps<V extends object> = NumberFieldExtraProps & {
6
6
  name: ExtractKeysOfValueType<V, number | undefined>;
7
7
  validate?: FieldValidatorGeneric<number | undefined>;
8
8
  onChange?: (value?: number) => void;
package/lib/Overlay.d.ts CHANGED
@@ -3,8 +3,8 @@ import { Props as ReactModalProps } from 'react-modal';
3
3
  import { DataTestProp } from '@hazelcast/helpers';
4
4
  import { ButtonProps, ButtonTypeButtonProps } from './Button';
5
5
  import { IconProps } from './Icon';
6
- export declare type OverlayActionProps = ButtonProps<ButtonTypeButtonProps>;
7
- export declare type OverlayProps = {
6
+ export type OverlayActionProps = ButtonProps<ButtonTypeButtonProps>;
7
+ export type OverlayProps = {
8
8
  children?: ReactNode;
9
9
  closable?: boolean;
10
10
  closeText?: string | null;
@@ -66,7 +66,7 @@
66
66
  margin-bottom: c.$grid * 9;
67
67
  padding: 0 c.$grid * 21; // close button width
68
68
 
69
- @media only screen and (max-width: 640px) {
69
+ @media only screen and (width <= 640px) {
70
70
  padding: 0 $iconSize;
71
71
 
72
72
  .closeText {
@@ -1,15 +1,15 @@
1
1
  import { FC } from 'react';
2
- export declare type GetShownItemsRangeParams = {
2
+ export type GetShownItemsRangeParams = {
3
3
  currentPage: number;
4
4
  pageSize: number;
5
5
  numberOfItems: number;
6
6
  };
7
- export declare type ShownItemsRange = {
7
+ export type ShownItemsRange = {
8
8
  firstItemShown: number;
9
9
  lastItemShown: number;
10
10
  };
11
11
  export declare const getShownItemsRange: ({ currentPage, pageSize, numberOfItems }: GetShownItemsRangeParams) => ShownItemsRange;
12
- export declare type PaginationProps = {
12
+ export type PaginationProps = {
13
13
  pageCount: number;
14
14
  currentPage: number;
15
15
  canPreviousPage: boolean;
@@ -2,14 +2,14 @@ import { DataTestProp } from '@hazelcast/helpers';
2
2
  import { FC, FocusEvent, ChangeEvent, InputHTMLAttributes } from 'react';
3
3
  import { TextFieldSize } from './TextField';
4
4
  import { HelpProps } from './Help';
5
- declare type PasswordFieldCoreProps = {
5
+ type PasswordFieldCoreProps = {
6
6
  name: string;
7
7
  value?: string;
8
8
  onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
9
9
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
10
10
  error?: string;
11
11
  };
12
- export declare type PasswordFieldExtraProps = {
12
+ export type PasswordFieldExtraProps = {
13
13
  showIconLabel?: string;
14
14
  hideIconLabel?: string;
15
15
  label: string;
@@ -22,6 +22,6 @@ export declare type PasswordFieldExtraProps = {
22
22
  withIcon?: boolean;
23
23
  initiallyVisible?: boolean;
24
24
  } & DataTestProp & Pick<InputHTMLAttributes<HTMLInputElement>, 'id' | 'autoFocus' | 'disabled' | 'autoComplete' | 'required' | 'placeholder'>;
25
- export declare type PasswordFieldProps = PasswordFieldCoreProps & PasswordFieldExtraProps;
25
+ export type PasswordFieldProps = PasswordFieldCoreProps & PasswordFieldExtraProps;
26
26
  export declare const PasswordField: FC<PasswordFieldProps>;
27
27
  export {};
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { PasswordFieldExtraProps } from './PasswordField';
3
3
  import { FieldValidatorGeneric } from './utils/formik';
4
4
  import { ExtractKeysOfValueType } from './utils/types';
5
- export declare type PasswordFieldFormikProps<V extends object> = PasswordFieldExtraProps & {
5
+ export type PasswordFieldFormikProps<V extends object> = PasswordFieldExtraProps & {
6
6
  name: ExtractKeysOfValueType<V, string | undefined>;
7
7
  validate?: FieldValidatorGeneric<string | undefined>;
8
8
  onChange?: (value: string) => void;
package/lib/Radio.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { FC, FocusEvent, ReactElement, ReactNode, ReactText } from 'react';
2
2
  import { DataTestProp } from '@hazelcast/helpers';
3
3
  import { HelpProps } from './Help';
4
- declare type RadioCoreProps = {
4
+ type RadioCoreProps = {
5
5
  value: string;
6
6
  onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
7
7
  checked?: boolean;
8
8
  };
9
- export declare type RadioExtraProps = {
9
+ export type RadioExtraProps = {
10
10
  label?: ReactText | ReactElement;
11
11
  helperText?: HelpProps['helperText'];
12
12
  disabled?: boolean;
@@ -14,7 +14,7 @@ export declare type RadioExtraProps = {
14
14
  className?: string;
15
15
  renderCheckmark?: () => ReactNode;
16
16
  };
17
- export declare type RadioProps = RadioCoreProps & RadioExtraProps & DataTestProp;
17
+ export type RadioProps = RadioCoreProps & RadioExtraProps & DataTestProp;
18
18
  /**
19
19
  * ### Purpose
20
20
  * Forms require input from users. If you need information that can be represented as a choice of multiple values, use input with type 'radio'.
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { RadioExtraProps } from './Radio';
3
- export declare type RadioFormikProps = RadioExtraProps & {
3
+ export type RadioFormikProps = RadioExtraProps & {
4
4
  value: string;
5
5
  };
6
6
  export declare const RadioFieldFormik: ({ value, ...props }: RadioFormikProps) => ReactElement;
@@ -1,18 +1,18 @@
1
1
  import { ChangeEvent, FC, ReactElement } from 'react';
2
2
  import { DataTestProp } from '@hazelcast/helpers';
3
3
  import { RadioProps } from './Radio';
4
- export declare type RadioGroupCoreProps = {
4
+ export type RadioGroupCoreProps = {
5
5
  name: string;
6
6
  onChange: (e: ChangeEvent<HTMLInputElement>) => void;
7
7
  error?: string;
8
8
  };
9
- export declare type RadioGroupExtraProps = {
9
+ export type RadioGroupExtraProps = {
10
10
  children: ReactElement<RadioProps> | Array<ReactElement<RadioProps>>;
11
11
  inline?: boolean;
12
12
  radioGroupClassName?: string;
13
13
  className?: string;
14
14
  } & DataTestProp;
15
- export declare type RadioGroupProps = RadioGroupExtraProps & RadioGroupCoreProps;
15
+ export type RadioGroupProps = RadioGroupExtraProps & RadioGroupCoreProps;
16
16
  /**
17
17
  * ### Purpose
18
18
  * Forms require input from users. If you need information that can be represented as a choice of multiple values, use input with type 'radio'.
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { RadioGroupExtraProps } from './RadioGroup';
3
3
  import { FieldValidatorGeneric } from './utils/formik';
4
4
  import { ExtractKeysOfValueType } from './utils/types';
5
- export declare type RadioGroupFormikProps<V extends object> = RadioGroupExtraProps & {
5
+ export type RadioGroupFormikProps<V extends object> = RadioGroupExtraProps & {
6
6
  name: ExtractKeysOfValueType<V, string | undefined>;
7
7
  validate?: FieldValidatorGeneric<string | undefined>;
8
8
  onChange?: (value: string) => void;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- export declare type SegmentedControlOption<V> = {
2
+ export type SegmentedControlOption<V> = {
3
3
  value: V;
4
4
  label: string;
5
5
  };
6
- export declare type SegmentedControlSize = 'medium' | 'small';
7
- export declare type SegmentedControlProps<V> = {
6
+ export type SegmentedControlSize = 'medium' | 'small';
7
+ export type SegmentedControlProps<V> = {
8
8
  value: V;
9
9
  onChange: (value: V) => void;
10
10
  label: string;
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { SegmentedControlProps } from './SegmentedControl';
3
3
  import { FieldValidatorGeneric } from './utils/formik';
4
4
  import { ExtractKeysOfValueType } from './utils/types';
5
- export declare type SegmentedControlFormikProps<V extends object, OV> = Omit<SegmentedControlProps<OV>, 'value' | 'onChange'> & {
5
+ export type SegmentedControlFormikProps<V extends object, OV> = Omit<SegmentedControlProps<OV>, 'value' | 'onChange'> & {
6
6
  name: ExtractKeysOfValueType<V, OV | undefined>;
7
7
  validate?: FieldValidatorGeneric<OV | undefined>;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { FocusEvent, ReactNode } from 'react';
2
2
  import { SelectFieldOption } from './helpers';
3
3
  import { HelpProps } from '../Help';
4
- export declare type CheckableSelectFieldCoreStaticProps<V> = {
4
+ export type CheckableSelectFieldCoreStaticProps<V> = {
5
5
  name: string;
6
6
  onBlur?: (e: FocusEvent<HTMLElement>) => void;
7
7
  error?: string;
@@ -10,7 +10,7 @@ export declare type CheckableSelectFieldCoreStaticProps<V> = {
10
10
  allSelectedLabel?: string;
11
11
  noneSelectedLabel?: string;
12
12
  };
13
- export declare type CheckableSelectFieldExtraProps<V> = {
13
+ export type CheckableSelectFieldExtraProps<V> = {
14
14
  options: SelectFieldOption<V>[];
15
15
  label: ReactNode;
16
16
  size?: 'small' | 'medium';
@@ -27,7 +27,7 @@ export declare type CheckableSelectFieldExtraProps<V> = {
27
27
  defaultOpen?: boolean;
28
28
  id?: string;
29
29
  };
30
- export declare type CheckableSelectProps<V> = CheckableSelectFieldCoreStaticProps<V> & CheckableSelectFieldExtraProps<V>;
30
+ export type CheckableSelectProps<V> = CheckableSelectFieldCoreStaticProps<V> & CheckableSelectFieldExtraProps<V>;
31
31
  export interface CheckMarkProps {
32
32
  checked: boolean;
33
33
  }
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { CheckableSelectFieldExtraProps } from './CheckableSelectField';
3
3
  import { FieldValidatorGeneric } from '../utils/formik';
4
4
  import { ExtractKeysOfValueType } from '../utils/types';
5
- export declare type CheckableSelectFieldFormikProps<V extends object, OV = string> = CheckableSelectFieldExtraProps<OV> & {
5
+ export type CheckableSelectFieldFormikProps<V extends object, OV = string> = CheckableSelectFieldExtraProps<OV> & {
6
6
  name: ExtractKeysOfValueType<V, OV[]>;
7
7
  validate?: FieldValidatorGeneric<OV[]>;
8
8
  onChange?: (value: OV[]) => void;
@@ -1,11 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type RenderMenuFooterFunction = () => ReactNode;
2
+ export type RenderMenuFooterFunction = () => ReactNode;
3
3
  export declare const components: {
4
- DropdownIndicator: React.FunctionComponent<import("react-select").IndicatorProps<any>>;
5
- ClearIndicator: React.FunctionComponent<import("react-select").IndicatorProps<any>>;
4
+ DropdownIndicator: React.FunctionComponent<import("react-select").IndicatorProps<any, boolean>>;
5
+ ClearIndicator: React.FunctionComponent<import("react-select").IndicatorProps<any, boolean>>;
6
6
  Input: React.FunctionComponent<import("react-select").InputProps>;
7
- MenuList: React.FunctionComponent<import("react-select").MenuListComponentProps<any>>;
8
- IndicatorSeparator: React.FunctionComponent<import("react-select").IndicatorProps<any>>;
9
- Option: React.FunctionComponent<import("react-select").OptionProps<any>>;
7
+ MenuList: React.FunctionComponent<import("react-select").MenuListComponentProps<any, boolean>>;
8
+ IndicatorSeparator: React.FunctionComponent<import("react-select").IndicatorProps<any, boolean>>;
9
+ Option: React.FunctionComponent<import("react-select").OptionProps<any, boolean>>;
10
10
  SingleValue: React.FunctionComponent<import("react-select").SingleValueProps<any>>;
11
11
  };
@@ -4,25 +4,25 @@ import { DataTestProp } from '@hazelcast/helpers';
4
4
  import { SelectFieldOption } from './helpers';
5
5
  import { RenderMenuFooterFunction } from './Common';
6
6
  import { FieldHeaderProps } from '../FieldHeader';
7
- export declare type MultiSelectFieldCoreStaticProps<V> = {
7
+ export type MultiSelectFieldCoreStaticProps<V> = {
8
8
  name: string;
9
9
  onBlur?: (e: FocusEvent<HTMLElement>) => void;
10
10
  error?: string;
11
11
  value: V[];
12
12
  onChange: (newValue: V[]) => void;
13
- components?: Partial<SelectComponentsConfig<SelectFieldOption<V>>>;
13
+ components?: Partial<SelectComponentsConfig<SelectFieldOption<V>, true>>;
14
14
  };
15
- export declare type MultiSelectFieldExtraProps<V> = {
15
+ export type MultiSelectFieldExtraProps<V> = {
16
16
  options: GroupedOptionsType<SelectFieldOption<V>> | OptionsType<SelectFieldOption<V>>;
17
17
  isCreatable?: V extends string ? boolean : false;
18
18
  className?: string;
19
19
  placeholder?: string;
20
20
  errorClassName?: string;
21
21
  menuPortalTarget?: 'body' | 'self' | HTMLElement | null;
22
- formatGroupLabel?: ReactSelectProps<SelectFieldOption<V>>['formatGroupLabel'];
23
- formatOptionLabel?: ReactSelectProps<SelectFieldOption<V>>['formatOptionLabel'];
22
+ formatGroupLabel?: ReactSelectProps<SelectFieldOption<V>, true>['formatGroupLabel'];
23
+ formatOptionLabel?: ReactSelectProps<SelectFieldOption<V>, true>['formatOptionLabel'];
24
24
  renderMenuFooter?: RenderMenuFooterFunction;
25
- styles?: ReactSelectProps<SelectFieldOption<V>>['styles'];
25
+ styles?: ReactSelectProps<SelectFieldOption<V>, true>['styles'];
26
26
  } & DataTestProp & Pick<InputHTMLAttributes<HTMLElement>, 'autoFocus' | 'disabled' | 'required' | 'placeholder'> & Pick<ReactSelectProps, 'isSearchable' | 'menuIsOpen' | 'menuPlacement' | 'noOptionsMessage' | 'inputValue' | 'closeMenuOnSelect' | 'hideSelectedOptions' | 'isClearable' | 'onInputChange'> & Omit<FieldHeaderProps, 'id'>;
27
- export declare type MultiSelectProps<V> = MultiSelectFieldCoreStaticProps<V> & MultiSelectFieldExtraProps<V>;
27
+ export type MultiSelectProps<V> = MultiSelectFieldCoreStaticProps<V> & MultiSelectFieldExtraProps<V>;
28
28
  export declare const MultiSelectField: <V extends string | number = number>(props: MultiSelectProps<V>) => React.ReactElement<MultiSelectProps<V>, string | React.JSXElementConstructor<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectField.js","sourceRoot":"","sources":["../../src/Select/MultiSelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiD,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrH,OAAO,WAAW,EAAE,EAElB,UAAU,IAAI,YAAY,GAM3B,MAAM,cAAc,CAAA;AACrB,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,OAAO,yBAAyB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAqB,gBAAgB,EAAE,aAAa,EAAyB,MAAM,WAAW,CAAA;AACrG,OAAO,EAAE,UAAU,EAA4B,MAAM,UAAU,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAA;AA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ectField';
3
3
  import { FieldValidatorGeneric } from '../utils/formik';
4
4
  import { ExtractKeysOfValueType } from '../utils/types';
5
- export declare type MultiSelectFieldFormikProps<V extends object, OV = string> = MultiSelectFieldExtraProps<OV> & {
5
+ export type MultiSelectFieldFormikProps<V extends object, OV = string> = MultiSelectFieldExtraProps<OV> & {
6
6
  name: ExtractKeysOfValueType<V, OV[]>;
7
7
  validate?: FieldValidatorGeneric<OV[]>;
8
8
  onChange?: (value: OV[]) => void;
@@ -5,14 +5,14 @@ import { FieldHeaderProps } from '../FieldHeader';
5
5
  import { IconProps } from '../Icon';
6
6
  import { SelectFieldOption } from './helpers';
7
7
  import { RenderMenuFooterFunction } from './Common';
8
- export declare type SelectFieldCoreStaticProps<V> = {
8
+ export type SelectFieldCoreStaticProps<V> = {
9
9
  name: string;
10
10
  onBlur?: (e: FocusEvent<HTMLElement>) => void;
11
11
  error?: string;
12
12
  value: V | null;
13
13
  onChange: (value: V | null) => void;
14
14
  };
15
- export declare type SelectFieldIconLeftProps = {
15
+ export type SelectFieldIconLeftProps = {
16
16
  iconLeft: IconProps['icon'];
17
17
  iconLeftAriaLabel: string;
18
18
  iconLeftClassName?: string;
@@ -23,8 +23,8 @@ export declare type SelectFieldIconLeftProps = {
23
23
  iconLeftClassName?: never;
24
24
  iconLeftContainerClassName?: never;
25
25
  };
26
- export declare type SelectFieldSize = 'small' | 'medium';
27
- export declare type SelectFieldExtraProps<V> = {
26
+ export type SelectFieldSize = 'small' | 'medium';
27
+ export type SelectFieldExtraProps<V> = {
28
28
  options: GroupedOptionsType<SelectFieldOption<V>> | OptionsType<SelectFieldOption<V>>;
29
29
  size?: SelectFieldSize;
30
30
  isCreatable?: V extends string ? boolean : false;
@@ -38,5 +38,5 @@ export declare type SelectFieldExtraProps<V> = {
38
38
  styles?: ReactSelectProps<SelectFieldOption<V>>['styles'];
39
39
  singleValueTooltipVisible?: boolean;
40
40
  } & DataTestProp & Pick<InputHTMLAttributes<HTMLElement>, 'autoFocus' | 'disabled' | 'required' | 'placeholder'> & Pick<ReactSelectProps, 'isSearchable' | 'isClearable' | 'menuIsOpen' | 'menuPlacement' | 'closeMenuOnScroll' | 'noOptionsMessage' | 'inputValue'> & SelectFieldIconLeftProps & Omit<FieldHeaderProps, 'id'>;
41
- export declare type SelectFieldProps<V> = SelectFieldCoreStaticProps<V> & SelectFieldExtraProps<V>;
41
+ export type SelectFieldProps<V> = SelectFieldCoreStaticProps<V> & SelectFieldExtraProps<V>;
42
42
  export declare const SelectField: <V extends string | number = string>(props: SelectFieldProps<V>) => React.ReactElement<SelectFieldProps<V>, string | React.JSXElementConstructor<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.js","sourceRoot":"","sources":["../../src/Select/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiD,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACrH,OAAO,WAAkG,MAAM,cAAc,CAAA;AAC7H,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,yBAAyB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAa,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAA4C,MAAM,WAAW,CAAA;AACrG,OAAO,EAAE,UAAU,EAA4B,MAAM,UAAU,CAAA;AAC/D,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,MAAM,MAAM,2BAA2B,CAAA;AAoD9C,MAAM,CAAC,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AAC,EAC5E,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,iBAAiB,eAClB,wBAAwB,EAClC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,GACjD,CACH;YACA,WAAW,CAAC,CAAC,CAAC,CACb,oBAAC,oBAAoB,OAA2B,WAAW,GAAI,CAChE,CAAC,CAAC,CAAC,CACF,oBAAC,WAAW,OAA2B,WAAW,GAAI,CACvD,CACG;QACN,oBAAC,KAAK,IAAC,SAAS,QAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,GAAI,CAChG,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { SelectFieldExtraProps } from './SelectField';
3
3
  import { FieldValidatorGeneric } from '../utils/formik';
4
4
  import { ExtractKeysOfValueType } from '../utils/types';
5
- export declare type SelectFieldFormikProps<V extends object, OV = string> = SelectFieldExtraProps<OV> & {
5
+ export type SelectFieldFormikProps<V extends object, OV = string> = SelectFieldExtraProps<OV> & {
6
6
  name: ExtractKeysOfValueType<V, OV | null>;
7
7
  validate?: FieldValidatorGeneric<OV | null>;
8
8
  onChange?: (value: OV | null) => void;
@@ -1,9 +1,9 @@
1
1
  import { GroupedOptionsType, OptionsType } from 'react-select';
2
- export declare type SelectFieldOption<V> = {
2
+ export type SelectFieldOption<V> = {
3
3
  label: string;
4
4
  value: V;
5
5
  };
6
- export declare type SelectFieldOptionsMap<V> = {
6
+ export type SelectFieldOptionsMap<V> = {
7
7
  [key: string]: SelectFieldOption<V>;
8
8
  };
9
9
  export declare const getOptionsMap: <V extends string | number>(options: OptionsType<SelectFieldOption<V>> | GroupedOptionsType<SelectFieldOption<V>>) => SelectFieldOptionsMap<V>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
- export declare type SimpleTableProps = HTMLAttributes<HTMLTableElement>;
2
+ export type SimpleTableProps = HTMLAttributes<HTMLTableElement>;
3
3
  export declare const SimpleTable: {
4
4
  (props: SimpleTableProps): JSX.Element;
5
5
  Body(props: HTMLAttributes<HTMLTableSectionElement>): JSX.Element;
package/lib/Slider.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import { ChangeEvent, ReactNode } from 'react';
2
2
  import { DataTestProp } from '@hazelcast/helpers';
3
- export declare type SliderValue = number | [number, number];
4
- declare type SliderMark = {
3
+ export type SliderValue = number | [number, number];
4
+ type SliderMark = {
5
5
  value: number;
6
6
  label: ReactNode;
7
7
  };
8
- declare type ChangeEventType = ChangeEvent<HTMLInputElement> | MouseEvent;
9
- declare type SingleValueChangeFn = (val: number, e?: ChangeEventType) => void;
10
- declare type MultiValueChangeFn = (val: [number, number], e?: ChangeEventType) => void;
11
- export declare type SliderCoreProps<T extends SliderValue> = {
8
+ type ChangeEventType = ChangeEvent<HTMLInputElement> | MouseEvent;
9
+ type SingleValueChangeFn = (val: number, e?: ChangeEventType) => void;
10
+ type MultiValueChangeFn = (val: [number, number], e?: ChangeEventType) => void;
11
+ export type SliderCoreProps<T extends SliderValue> = {
12
12
  value: T;
13
13
  onChange: T extends number ? SingleValueChangeFn : MultiValueChangeFn;
14
14
  name: string;
15
15
  error?: string;
16
16
  };
17
- export declare type SliderExtraProps = {
17
+ export type SliderExtraProps = {
18
18
  step?: number;
19
19
  min: number;
20
20
  max: number;
@@ -26,7 +26,7 @@ export declare type SliderExtraProps = {
26
26
  hideValueIndicators?: boolean;
27
27
  formatCurrentValue?: (val: number) => ReactNode;
28
28
  };
29
- declare type SliderProps<T extends SliderValue = number> = SliderExtraProps & SliderCoreProps<T> & Partial<Pick<HTMLInputElement, 'disabled'>> & DataTestProp;
29
+ type SliderProps<T extends SliderValue = number> = SliderExtraProps & SliderCoreProps<T> & Partial<Pick<HTMLInputElement, 'disabled'>> & DataTestProp;
30
30
  /**
31
31
  * Determines the absolute left position of the mark given the markValue
32
32
  * @param markValue - value of the mark
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { FieldValidator } from 'formik';
3
3
  import { SliderExtraProps, SliderValue } from './Slider';
4
4
  import { ExtractKeysOfValueType } from './utils/types';
5
- export declare type SliderFormikProps<V extends object> = SliderExtraProps & Partial<Pick<HTMLInputElement, 'disabled'>> & {
5
+ export type SliderFormikProps<V extends object> = SliderExtraProps & Partial<Pick<HTMLInputElement, 'disabled'>> & {
6
6
  name: ExtractKeysOfValueType<V, SliderValue>;
7
7
  validate?: FieldValidator;
8
8
  };
@@ -1,11 +1,11 @@
1
1
  import { FC, RefObject } from 'react';
2
2
  import { TableCellProps } from 'react-table';
3
- export declare type CellWarningProps = {
3
+ export type CellWarningProps = {
4
4
  align: 'left' | 'right';
5
5
  warning: string;
6
6
  };
7
7
  export declare const CellWarning: FC<CellWarningProps>;
8
- export declare type CellProps = {
8
+ export type CellProps = {
9
9
  /**
10
10
  * Number fields should be right aligned as that allows
11
11
  * you to compare them or add them up quickly in your head.
@@ -1,7 +1,7 @@
1
1
  import { RefObject } from 'react';
2
2
  import { ColumnInterface, ColumnInterfaceBasedOnValue, Cell, UseResizeColumnsState } from 'react-table';
3
3
  import { CellProps } from './Cell';
4
- export declare type CellWrapperProps<D extends object> = CellProps & {
4
+ export type CellWrapperProps<D extends object> = CellProps & {
5
5
  cell: Cell<D>;
6
6
  selectable?: boolean;
7
7
  column?: ColumnInterface<D> & ColumnInterfaceBasedOnValue;
@@ -9,13 +9,13 @@ import { Cell as CellType, HeaderGroup, UseResizeColumnsState } from 'react-tabl
9
9
  * The above also applies to simple functions returning string - react-table transforms them into react components.
10
10
  * Here's how react-table renderers are made: https://github.com/tannerlinsley/react-table/blob/6e2fe31ac028e543ce0f9d56168d5f922389fbbc/src/publicUtils.js#L199
11
11
  */
12
- export declare type EnhancedHeaderFooterRendererProps<D extends object> = {
12
+ export type EnhancedHeaderFooterRendererProps<D extends object> = {
13
13
  column: HeaderGroup<D>;
14
14
  columnResizing: UseResizeColumnsState<D>['columnResizing'];
15
15
  type: 'Header' | 'Footer';
16
16
  };
17
17
  export declare const EnhancedHeaderFooterRenderer: <D extends object>({ column, columnResizing, type }: EnhancedHeaderFooterRendererProps<D>) => JSX.Element;
18
- export declare type EnhancedCellRendererProps<D extends object> = {
18
+ export type EnhancedCellRendererProps<D extends object> = {
19
19
  cell: CellType<D, ReactText>;
20
20
  hasCellRenderer: boolean;
21
21
  columnResizing: UseResizeColumnsState<D>['columnResizing'];
@@ -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.