@luscii-healthtech/web-ui 2.10.1 → 2.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +11 -11
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +3 -2
- package/dist/components/Datepicker/Datepicker.d.ts +12 -11
- package/dist/components/Dropdown/Dropdown.d.ts +17 -7
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +3 -3
- package/dist/components/Form/form.transformer.d.ts +3 -20
- package/dist/components/Form/form.types.d.ts +5 -5
- package/dist/components/InfoBlock/InfoBlock.d.ts +4 -4
- package/dist/components/Input/SearchInput.d.ts +1 -1
- package/dist/components/Line/Line.d.ts +4 -4
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -7
- package/dist/components/Page/CRUDPage.d.ts +13 -13
- package/dist/components/Page/Page.d.ts +13 -13
- package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +5 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -10
- package/dist/components/Select/LegacySelect.d.ts +8 -9
- package/dist/components/Select/SelectV2.d.ts +1 -1
- package/dist/components/Switcher/Switcher.d.ts +6 -6
- package/dist/components/Switcher/SwitcherItem.d.ts +7 -7
- package/dist/components/Text/LegacyText.d.ts +18 -18
- package/dist/components/TextEditor/TextEditor.d.ts +4 -4
- package/dist/components/Textarea/Textarea.d.ts +16 -16
- package/dist/components/Title/LegacyTitle.d.ts +10 -10
- package/dist/web-ui-tailwind.css +8 -0
- package/dist/web-ui.cjs.development.js +78 -72
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +78 -72
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +6 -1
|
@@ -6,15 +6,15 @@ export function Avatar({ size, src, defaultImage, initials, className }: {
|
|
|
6
6
|
className: any;
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
export namespace Avatar {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const src: PropTypes.Requireable<string>;
|
|
11
|
+
const initials: PropTypes.Validator<string>;
|
|
12
|
+
const size: PropTypes.Requireable<string>;
|
|
13
|
+
const defaultImage: PropTypes.Requireable<string>;
|
|
14
|
+
const className: PropTypes.Requireable<string>;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
import size_1 = MEDIUM;
|
|
16
|
+
namespace defaultProps {
|
|
17
|
+
import size_1 = AVATAR_SIZE_OPTIONS.MEDIUM;
|
|
18
18
|
export { size_1 as size };
|
|
19
19
|
const defaultImage_1: null;
|
|
20
20
|
export { defaultImage_1 as defaultImage };
|
|
@@ -23,7 +23,7 @@ export namespace Avatar {
|
|
|
23
23
|
export default Avatar;
|
|
24
24
|
import PropTypes from "prop-types";
|
|
25
25
|
declare namespace AVATAR_SIZE_OPTIONS {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const LARGE: string;
|
|
27
|
+
const MEDIUM: string;
|
|
28
|
+
const SMALL: string;
|
|
29
29
|
}
|
|
@@ -2,14 +2,15 @@ import React from "react";
|
|
|
2
2
|
declare type FlexContainerBase = {
|
|
3
3
|
alignItems?: "center" | "start" | "end";
|
|
4
4
|
justifyContent?: "center" | "start" | "end" | "between";
|
|
5
|
+
position?: "static" | "fixed" | "absolute" | "relative" | "sticky";
|
|
5
6
|
verticallySpaced?: boolean;
|
|
6
|
-
|
|
7
|
+
horizontallySpaced?: boolean;
|
|
7
8
|
hasPadding?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export declare type FlexContainerBaseProps = FlexContainerBase & {
|
|
10
11
|
children: React.ReactNode;
|
|
11
12
|
};
|
|
12
|
-
export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "
|
|
13
|
+
export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "horizontallySpaced"> & {
|
|
13
14
|
spaced?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export {};
|
|
@@ -3,20 +3,21 @@ declare class Datepicker extends React.Component<any, any, any> {
|
|
|
3
3
|
constructor(props: any, context: any);
|
|
4
4
|
handleCloseButtonClick: (event: any) => void;
|
|
5
5
|
getDateFormat: () => "L LT" | "L";
|
|
6
|
+
render(): JSX.Element;
|
|
6
7
|
datepickerRef: any;
|
|
7
8
|
}
|
|
8
9
|
declare namespace Datepicker {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
|
+
const selected: PropTypes.Requireable<object>;
|
|
13
|
+
const hasCloseButton: PropTypes.Requireable<boolean>;
|
|
14
|
+
const closeButtonText: PropTypes.Requireable<string>;
|
|
15
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
16
|
+
const showMonthDropdown: PropTypes.Requireable<boolean>;
|
|
17
|
+
const showYearDropdown: PropTypes.Requireable<boolean>;
|
|
18
|
+
const minDate: PropTypes.Requireable<any>;
|
|
19
|
+
const maxDate: PropTypes.Requireable<any>;
|
|
20
|
+
const isDisabled: PropTypes.Requireable<boolean>;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export default Datepicker;
|
|
@@ -4,6 +4,15 @@ declare class Dropdown extends React.PureComponent<any, any, any> {
|
|
|
4
4
|
static getTotalItemCount: (items: any) => any;
|
|
5
5
|
static getDerivedStateFromProps(nextProps: any, prevState: any): any;
|
|
6
6
|
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
totalItemCount: any;
|
|
9
|
+
isDropdownOpen: boolean;
|
|
10
|
+
highlightIndex: null;
|
|
11
|
+
selectedItem: any;
|
|
12
|
+
items: any;
|
|
13
|
+
};
|
|
14
|
+
componentDidMount(): void;
|
|
15
|
+
componentWillUnmount(): void;
|
|
7
16
|
handleClickOutside: (event: any) => void;
|
|
8
17
|
handleKeyDown: (event: any) => void;
|
|
9
18
|
findItem: (items: any, fieldName: any, fieldValue: any) => any;
|
|
@@ -19,11 +28,12 @@ declare class Dropdown extends React.PureComponent<any, any, any> {
|
|
|
19
28
|
renderGroupedItems: (item: any) => JSX.Element;
|
|
20
29
|
renderItems: () => JSX.Element;
|
|
21
30
|
dropdownListRef: HTMLDivElement | null | undefined;
|
|
31
|
+
render(): JSX.Element;
|
|
22
32
|
rootRef: HTMLDivElement | null | undefined;
|
|
23
33
|
}
|
|
24
34
|
declare namespace Dropdown {
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
namespace propTypes {
|
|
36
|
+
const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
27
37
|
id: PropTypes.Validator<string>;
|
|
28
38
|
text: PropTypes.Validator<string>;
|
|
29
39
|
key: PropTypes.Validator<string>;
|
|
@@ -36,11 +46,11 @@ declare namespace Dropdown {
|
|
|
36
46
|
title: PropTypes.Requireable<string>;
|
|
37
47
|
groupKey: PropTypes.Validator<string>;
|
|
38
48
|
}> | null | undefined)[]>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
const initialSelectedItemId: PropTypes.Requireable<string | number>;
|
|
50
|
+
const placeholder: PropTypes.Requireable<string>;
|
|
51
|
+
const className: PropTypes.Requireable<string>;
|
|
52
|
+
const onItemSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
53
|
+
const wider: PropTypes.Requireable<boolean>;
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
import React from "react";
|
|
@@ -5,9 +5,9 @@ declare function ErrorBlock({ message, className, ...otherProps }: {
|
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace ErrorBlock {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const message: PropTypes.Validator<string>;
|
|
10
|
+
const className: PropTypes.Requireable<string>;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
import PropTypes from "prop-types";
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
import { FieldErrors } from "react-hook-form";
|
|
2
|
-
export declare const hasError: (name?: string
|
|
3
|
-
export declare const isRequired: (options?:
|
|
4
|
-
required: string | boolean | import("react-hook-form").ValidationValueMessage<boolean>;
|
|
5
|
-
min: import("react-hook-form").ValidationRule<string | number>;
|
|
6
|
-
max: import("react-hook-form").ValidationRule<string | number>;
|
|
7
|
-
maxLength: import("react-hook-form").ValidationRule<number>;
|
|
8
|
-
minLength: import("react-hook-form").ValidationRule<number>;
|
|
9
|
-
pattern: import("react-hook-form").ValidationRule<RegExp>;
|
|
10
|
-
validate: import("react-hook-form").Validate<any> | Record<string, import("react-hook-form").Validate<any>>;
|
|
11
|
-
valueAsNumber: boolean;
|
|
12
|
-
valueAsDate: boolean;
|
|
13
|
-
value: any;
|
|
14
|
-
setValueAs: (value: any) => any;
|
|
15
|
-
shouldUnregister?: boolean | undefined;
|
|
16
|
-
onChange?: ((event: any) => void) | undefined;
|
|
17
|
-
onBlur?: ((event: any) => void) | undefined;
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
deps: string | string[];
|
|
20
|
-
}> | undefined) => boolean;
|
|
1
|
+
import { FieldErrors, RegisterOptions } from "react-hook-form";
|
|
2
|
+
export declare const hasError: (name?: string, errors?: FieldErrors) => boolean;
|
|
3
|
+
export declare const isRequired: (options?: RegisterOptions) => boolean;
|
|
@@ -5,13 +5,13 @@ import { RadioGroupProps } from "../RadioGroup/RadioGroupV2";
|
|
|
5
5
|
import { SelectProps } from "../Select/SelectV2";
|
|
6
6
|
export declare type AllowedTextInputTypes = Extract<HTMLInputTypeAttribute, "email" | "number" | "password" | "text">;
|
|
7
7
|
export interface GenericFormProps<TFieldValues extends FieldValues> {
|
|
8
|
-
fields:
|
|
8
|
+
fields: FormFieldProps<TFieldValues>[];
|
|
9
9
|
onValid: SubmitHandler<TFieldValues>;
|
|
10
10
|
onError?: SubmitErrorHandler<TFieldValues>;
|
|
11
11
|
defaultValues?: DeepPartial<TFieldValues>;
|
|
12
12
|
}
|
|
13
13
|
export interface FormProps<TFieldValues extends FieldValues, TContext> {
|
|
14
|
-
fields:
|
|
14
|
+
fields: FormFieldProps<TFieldValues>[];
|
|
15
15
|
useFormReturn: UseFormReturn<TFieldValues, TContext>;
|
|
16
16
|
}
|
|
17
17
|
interface FormFieldGenericProps<TFieldType, TFieldValues> extends FormFieldDecoratorProps {
|
|
@@ -19,13 +19,13 @@ interface FormFieldGenericProps<TFieldType, TFieldValues> extends FormFieldDecor
|
|
|
19
19
|
options?: RegisterOptions;
|
|
20
20
|
fieldProps?: TFieldType;
|
|
21
21
|
}
|
|
22
|
-
interface FormFieldDecoratorProps {
|
|
22
|
+
export interface FormFieldDecoratorProps {
|
|
23
23
|
label?: string;
|
|
24
24
|
info?: string;
|
|
25
25
|
decoratorClassname?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues>;
|
|
28
|
-
export interface FormFieldRowProps<TFieldValues> {
|
|
27
|
+
export declare type FormFieldProps<TFieldValues> = FormFieldInputProps<TFieldValues> | FormFieldSelectProps<TFieldValues> | FormFieldRadioGroupProps<TFieldValues> | FormFieldRowProps<TFieldValues>;
|
|
28
|
+
export interface FormFieldRowProps<TFieldValues> extends Record<keyof FormFieldGenericProps<never, TFieldValues>, never> {
|
|
29
29
|
type: "row";
|
|
30
30
|
key: string;
|
|
31
31
|
fields: FormFieldProps<TFieldValues>[];
|
|
@@ -5,10 +5,10 @@ declare function InfoBlock({ message, className, containsDangerousHtml }: {
|
|
|
5
5
|
containsDangerousHtml?: boolean | undefined;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace InfoBlock {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const message: PropTypes.Validator<string>;
|
|
10
|
+
const containsDangerousHtml: PropTypes.Requireable<boolean>;
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
import PropTypes from "prop-types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "./Input";
|
|
3
3
|
export declare type SearchInputProps = Omit<InputProps, "icon" | "withSuffix" | "withPrefix" | "type" | "clearable">;
|
|
4
|
-
export declare const SearchInput: React.ForwardRefExoticComponent<Pick<Pick<InputProps, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key" | "isDisabled" | "isError">, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "isDisabled" | "isError"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<Pick<SearchInputProps, "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "isDisabled" | "isError"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -5,10 +5,10 @@ declare function Line({ left, right, className }: {
|
|
|
5
5
|
className: any;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace Line {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const left: PropTypes.Requireable<any[]>;
|
|
10
|
+
const right: PropTypes.Requireable<any[]>;
|
|
11
|
+
const className: PropTypes.Requireable<string>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
import PropTypes from "prop-types";
|
|
@@ -4,10 +4,16 @@ declare class Menu extends React.PureComponent<any, any, any> {
|
|
|
4
4
|
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
5
5
|
};
|
|
6
6
|
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
};
|
|
10
|
+
componentDidMount(): void;
|
|
11
|
+
componentWillUnmount(): void;
|
|
7
12
|
handleClickOutside: (event: any) => void;
|
|
8
13
|
handleIconClick: (event: any) => void;
|
|
9
14
|
openMenu: () => void;
|
|
10
15
|
closeMenu: () => void;
|
|
16
|
+
render(): JSX.Element;
|
|
11
17
|
rootRef: HTMLDivElement | null | undefined;
|
|
12
18
|
}
|
|
13
19
|
import React from "react";
|
|
@@ -8,18 +8,18 @@ export function MultiSelect({ checkboxList, radioLabel, onChange, validationErro
|
|
|
8
8
|
radioOnDemand: any;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
export namespace MultiSelect {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
const name: PropTypes.Requireable<string>;
|
|
13
|
+
const checkboxList: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
14
14
|
isChecked: PropTypes.Requireable<boolean>;
|
|
15
15
|
name: PropTypes.Validator<string>;
|
|
16
16
|
description: PropTypes.Requireable<string>;
|
|
17
17
|
identifier: PropTypes.Validator<string>;
|
|
18
18
|
}> | null | undefined)[]>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
const validationError: PropTypes.Requireable<string>;
|
|
21
|
+
const implicitSelect: PropTypes.Requireable<object>;
|
|
22
|
+
const radioOnDemand: PropTypes.Requireable<boolean>;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
import PropTypes from "prop-types";
|
|
@@ -16,28 +16,28 @@ declare function CRUDPage({ dataTestId, title, stepTitles, currentStep, submitBu
|
|
|
16
16
|
localization: any;
|
|
17
17
|
}): JSX.Element;
|
|
18
18
|
declare namespace CRUDPage {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
namespace propTypes {
|
|
20
|
+
const isLoading: PropTypes.Requireable<boolean>;
|
|
21
|
+
const title: PropTypes.Validator<string>;
|
|
22
|
+
const stepTitles: PropTypes.Requireable<any[]>;
|
|
23
|
+
const currentStep: PropTypes.Requireable<number>;
|
|
24
|
+
const submitButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
25
|
name: PropTypes.Requireable<string>;
|
|
26
26
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
27
|
}>>;
|
|
28
|
-
|
|
28
|
+
const deleteButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
29
|
name: PropTypes.Requireable<string>;
|
|
30
30
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
31
|
}>>;
|
|
32
|
-
|
|
32
|
+
const cancelButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
33
|
name: PropTypes.Requireable<string>;
|
|
34
34
|
handler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
35
|
}>>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
const className: PropTypes.Requireable<string>;
|
|
37
|
+
const icon: PropTypes.Requireable<string>;
|
|
38
|
+
const isSubmitting: PropTypes.Requireable<boolean>;
|
|
39
|
+
const navMenuComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
40
|
+
const localization: PropTypes.Requireable<object>;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
import PropTypes from "prop-types";
|
|
@@ -6,9 +6,9 @@ export default Page;
|
|
|
6
6
|
* `children` property has priority over `content` property.
|
|
7
7
|
*/
|
|
8
8
|
export type Breadcrumb = {
|
|
9
|
-
name?: string
|
|
9
|
+
name?: string;
|
|
10
10
|
icon?: string | any;
|
|
11
|
-
link?: string
|
|
11
|
+
link?: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Renders page's content, if `isLoading` is false otherwise shows loading indicator.
|
|
@@ -38,21 +38,21 @@ declare function Page({ dataTestId, breadcrumbs, title, accessories, accessoryPo
|
|
|
38
38
|
id: any;
|
|
39
39
|
}): JSX.Element;
|
|
40
40
|
declare namespace Page {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
namespace propTypes {
|
|
42
|
+
const breadcrumbs: PropTypes.Requireable<((...args: any[]) => any) | (PropTypes.InferProps<{
|
|
43
43
|
name: PropTypes.Requireable<string>;
|
|
44
44
|
icon: PropTypes.Requireable<string>;
|
|
45
45
|
link: PropTypes.Requireable<string>;
|
|
46
46
|
}> | null | undefined)[]>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
const isLoading: PropTypes.Requireable<boolean>;
|
|
48
|
+
const isFetching: PropTypes.Requireable<boolean>;
|
|
49
|
+
const spinnerColor: PropTypes.Requireable<string>;
|
|
50
|
+
const title: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
51
|
+
const accessories: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike>;
|
|
52
|
+
const accessoryPosition: PropTypes.Requireable<string>;
|
|
53
|
+
const content: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.ReactElementLike | (PropTypes.ReactElementLike | null | undefined)[]>;
|
|
54
|
+
const id: PropTypes.Requireable<string>;
|
|
55
|
+
const navLayoutProps: PropTypes.Requireable<object>;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
import PropTypes from "prop-types";
|
|
@@ -12,4 +12,4 @@ export declare const getPageNumberOptions: (pageCount: number) => Option[];
|
|
|
12
12
|
* @example 1-50 of 100
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
export declare const getSummaryText: (pageCount: number, currentPageNumber: number, localization: Localization, pageSize?: number
|
|
15
|
+
export declare const getSummaryText: (pageCount: number, currentPageNumber: number, localization: Localization, pageSize?: number, resultCount?: number) => string;
|
|
@@ -9,13 +9,17 @@ declare class Radio extends React.PureComponent<any, any, any> {
|
|
|
9
9
|
isChecked: PropTypes.Validator<boolean>;
|
|
10
10
|
isDisabled: PropTypes.Requireable<boolean>;
|
|
11
11
|
name: PropTypes.Validator<string>;
|
|
12
|
-
value: PropTypes.Requireable<
|
|
12
|
+
value: PropTypes.Requireable<string | number>;
|
|
13
13
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
};
|
|
15
15
|
constructor(props: any);
|
|
16
|
+
state: {
|
|
17
|
+
isFocused: boolean;
|
|
18
|
+
};
|
|
16
19
|
handleChange: (event: any) => void;
|
|
17
20
|
handleFocus: () => void;
|
|
18
21
|
handleBlur: () => void;
|
|
22
|
+
render(): JSX.Element;
|
|
19
23
|
}
|
|
20
24
|
import React from "react";
|
|
21
25
|
import PropTypes from "prop-types";
|
|
@@ -15,20 +15,19 @@ declare function RadioGroup({ className, radioClassName, name, selectedOption, i
|
|
|
15
15
|
isDisabled: any;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace RadioGroup {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const radioClassName: PropTypes.Requireable<string>;
|
|
21
|
+
const name: PropTypes.Requireable<string>;
|
|
22
|
+
const selectedOption: PropTypes.Requireable<string | number>;
|
|
23
|
+
const isVertical: PropTypes.Requireable<boolean>;
|
|
24
|
+
const radioOptions: PropTypes.Validator<(PropTypes.InferProps<{
|
|
25
25
|
text: PropTypes.Requireable<string>;
|
|
26
26
|
info: PropTypes.Requireable<string>;
|
|
27
27
|
isDisabled: PropTypes.Requireable<boolean>;
|
|
28
|
-
value: PropTypes.Requireable<
|
|
28
|
+
value: PropTypes.Requireable<string | number>;
|
|
29
29
|
}> | null | undefined)[]>;
|
|
30
|
-
|
|
30
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
import PropTypes from "prop-types";
|
|
34
|
-
import React from "react";
|
|
@@ -15,18 +15,17 @@ declare function LegacySelect({ className, value, name, placeholder, options, on
|
|
|
15
15
|
isSearchable?: boolean | undefined;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
declare namespace LegacySelect {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
value: PropTypes.Validator<
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
const className: PropTypes.Requireable<string>;
|
|
20
|
+
const value: PropTypes.Requireable<string | number>;
|
|
21
|
+
const name: PropTypes.Validator<string>;
|
|
22
|
+
const placeholder: PropTypes.Requireable<string>;
|
|
23
|
+
const options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
24
|
+
value: PropTypes.Validator<string | number>;
|
|
25
25
|
text: PropTypes.Validator<string>;
|
|
26
26
|
disabled: PropTypes.Requireable<boolean>;
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
|
-
|
|
28
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
|
-
import React from "react";
|
|
@@ -27,5 +27,5 @@ export interface SelectProps<Option extends OptionMinimal = OptionMinimal, IsMul
|
|
|
27
27
|
* Care when using defaultValue: this still requires the complete Option (instead of the value of the Option).
|
|
28
28
|
* So far there wasn't a use-case for this.
|
|
29
29
|
*/
|
|
30
|
-
export declare const Select: React.ForwardRefExoticComponent<SelectProps<OptionMinimal, boolean, GroupBase<
|
|
30
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps<OptionMinimal, boolean, GroupBase<OptionMinimal>> & React.RefAttributes<unknown>>;
|
|
31
31
|
export {};
|
|
@@ -7,8 +7,8 @@ declare function Switcher({ selectedIndex, onChange, className, itemClassName, i
|
|
|
7
7
|
items: any;
|
|
8
8
|
}): JSX.Element;
|
|
9
9
|
declare namespace Switcher {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
12
12
|
name: PropTypes.Requireable<string>;
|
|
13
13
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
@@ -17,10 +17,10 @@ declare namespace Switcher {
|
|
|
17
17
|
}>>;
|
|
18
18
|
key: PropTypes.Requireable<string>;
|
|
19
19
|
}> | null | undefined)[]>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const selectedIndex: PropTypes.Requireable<number>;
|
|
22
|
+
const className: PropTypes.Requireable<string>;
|
|
23
|
+
const itemClassName: PropTypes.Requireable<string>;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
import PropTypes from "prop-types";
|
|
@@ -8,17 +8,17 @@ declare function SwitcherItem({ className, icon, index, isSelected, name, onSele
|
|
|
8
8
|
onSelect: any;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
declare namespace SwitcherItem {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
const name: PropTypes.Requireable<string>;
|
|
13
|
+
const icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
15
15
|
active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
16
16
|
showBadge: PropTypes.Requireable<boolean>;
|
|
17
17
|
}>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const index: PropTypes.Validator<number>;
|
|
19
|
+
const isSelected: PropTypes.Requireable<boolean>;
|
|
20
|
+
const onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
const className: PropTypes.Requireable<string>;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
import PropTypes from "prop-types";
|