@mw-kit/mw-ui 1.7.95 → 1.7.96

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { MenuProps } from '../../../../../Menu/interfaces';
3
- declare const MonthPicker: (props: Pick<MenuProps<Record<string | number | symbol, any>>, "hidden" | "children" | "dir" | "label" | "slot" | "style" | "title" | "id" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "width" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex" | "pointer" | "bgColor" | "open" | "position" | "axis" | "center" | "boundRef" | "transition" | "loading" | "rules" | "bordered" | "highlight" | "close" | "onScrollEnd" | "after" | "scrollSpacing" | "scrollTabIndex" | "emptyContent" | "onClickOption" | "containerSpacing" | "itemSpacing"> & {
3
+ declare const MonthPicker: (props: Pick<MenuProps<Record<string | number | symbol, any>>, "hidden" | "children" | "dir" | "slot" | "style" | "title" | "id" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "width" | "height" | "maxWidth" | "maxHeight" | "references" | "zIndex" | "pointer" | "bgColor" | "open" | "position" | "axis" | "center" | "boundRef" | "transition" | "loading" | "bordered" | "highlight" | "close" | "onScrollEnd" | "after" | "scrollSpacing" | "scrollTabIndex" | "emptyContent" | "containerSpacing" | "itemSpacing"> & {
4
4
  year: number;
5
5
  setValue: (year: number, month: number) => void;
6
6
  min?: Date | undefined;
@@ -1,10 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { OptionLabelComponent } from '../../../../Menu/interfaces';
3
2
  import { AppliedFilter } from '../../../interfaces';
4
3
  import { Common, Filter } from '../../interfaces';
5
4
  export interface SubmenuProps {
6
5
  item?: Filter;
7
- optionLabel?: OptionLabelComponent;
8
6
  close: () => void;
9
7
  closeParent: () => void;
10
8
  setAppliedFilters: React.Dispatch<React.SetStateAction<AppliedFilter[]>>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FiltersProps } from './interfaces';
3
- declare const Filters: (<T extends Record<string | number | symbol, any> = Record<string | number | symbol, any>>(props: FiltersProps<T>) => JSX.Element) & {
3
+ declare const Filters: ((props: FiltersProps) => JSX.Element) & {
4
4
  Menu: (props: import("./components/Menu/interfaces").FiltersMenuProps) => JSX.Element;
5
5
  };
6
6
  export default Filters;
@@ -1,36 +1,35 @@
1
1
  import React from 'react';
2
- import { GenericObject, ReactNode, SpacingOrZero } from '../../../interfaces';
2
+ import { ReactNode, SpacingOrZero } from '../../../interfaces';
3
3
  import { AbsoluteContainerProps } from '../../AbsoluteContainer/interfaces';
4
- import { OptionLabelComponent } from '../../Menu/interfaces';
5
4
  import { ButtonProps } from '../Button/interfaces';
6
5
  import { AppliedFilter } from '../interfaces';
7
6
  export interface Label {
8
7
  text: string;
9
8
  element: ReactNode;
10
9
  }
11
- export interface Option<T extends GenericObject = GenericObject> {
10
+ declare type LabelOrString = string | Label;
11
+ export interface Option {
12
12
  /** label da opcao */
13
- label: string;
14
- data: T;
13
+ label: LabelOrString;
15
14
  /** valor da opcao */
16
15
  value: string | number | boolean;
17
16
  }
18
- export interface OptionsReturn<T extends GenericObject = GenericObject> {
19
- options: Option<T>[];
17
+ export interface OptionsReturn {
18
+ options: Option[];
20
19
  lastPage: boolean;
21
20
  }
22
21
  /**
23
22
  * essa callback recebe o valor da string de busca e opcionalmente o indice da pagina, e ela deve retornar uma lista de opcoes
24
23
  * para que a paginacao seja considerada, e necessario retornar a lista de opcoes em um objeto, juntamente com o indicador de ultima pagina
25
24
  * */
26
- export declare type OptionsCallback<T extends GenericObject = GenericObject> = (value: string, page?: number) => Promise<OptionsReturn<T> | Option<T>[]>;
27
- export interface Filter<T extends GenericObject = GenericObject> {
25
+ export declare type OptionsCallback = (value: string, page?: number) => Promise<OptionsReturn | Option[]>;
26
+ export interface Filter {
28
27
  /** label do filtro */
29
- label: string;
28
+ label: LabelOrString;
30
29
  /** nome da chave do filtro */
31
30
  name: string;
32
31
  /** lista de opcoes ou funcao que retorna a lista de opcoes */
33
- options: Option<T>[] | OptionsCallback<T>;
32
+ options: Option[] | OptionsCallback;
34
33
  /** se o filtro for do tipo callback, podera ser enviado este parametro para indicar se o filtro permite busca com string vazia */
35
34
  allowEmptySearch?: boolean;
36
35
  /** indicador de filtro desabilitado */
@@ -42,14 +41,11 @@ export interface Filter<T extends GenericObject = GenericObject> {
42
41
  /** mantem o menu de filtros abertos após a selecao */
43
42
  keepOpen?: true;
44
43
  }
45
- export interface Common<T extends GenericObject = GenericObject> {
46
- items: Filter<T>[];
47
- optionLabel?: {
48
- [key: string]: OptionLabelComponent<T>;
49
- };
50
- filterLabel?: OptionLabelComponent<Filter<T>>;
44
+ export interface Common {
45
+ items: Filter[];
51
46
  setAppliedFilters: React.Dispatch<React.SetStateAction<AppliedFilter[]>>;
52
47
  containerProps?: Omit<AbsoluteContainerProps, 'open'>;
53
48
  subContainerProps?: Pick<AbsoluteContainerProps, 'center'>;
54
49
  }
55
- export declare type FiltersProps<T extends GenericObject = GenericObject> = Common<T> & Omit<ButtonProps, 'getContent' | 'gap'>;
50
+ export declare type FiltersProps = Common & Omit<ButtonProps, 'getContent' | 'gap'>;
51
+ export {};
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { MenuProps } from '../../../../../Menu/interfaces';
3
2
  import { Option } from '../interfaces';
4
- export declare const isAvailable: (index: number, option: Option, rules: MenuProps['rules']) => boolean;
3
+ export declare const isAvailable: (index: number, option: Option) => boolean;
5
4
  declare const useNavigation: (props: {
6
5
  highlight: [number, React.Dispatch<React.SetStateAction<number>>];
7
6
  options: Option[];
8
- rules: MenuProps['rules'];
9
7
  onSelectHighlight: (index: number, option: Option) => void;
10
8
  }) => {
11
9
  onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { Option } from '../../interfaces';
1
+ /// <reference types="react" />
2
+ import { SelectOptionLabelProps, Option } from '../../interfaces';
3
3
  declare const Label: (props: {
4
- option: Option;
5
- label: React.FunctionComponent<Option> | undefined;
4
+ option: SelectOptionLabelProps;
5
+ label: Option['label'];
6
6
  value: Pick<Option, 'data' | 'value'>[];
7
7
  }) => JSX.Element;
8
8
  export default Label;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { GenericObject } from '../../../../../interfaces';
2
+ import { ReactNode, GenericObject } from '../../../../../interfaces';
3
3
  import { MenuProps, Option as MenuOption } from '../../../../Menu/interfaces';
4
4
  import { InputProps } from '../../Input/interfaces';
5
5
  export declare type SelectOptionLabelProps<T extends GenericObject = GenericObject> = {
@@ -9,7 +9,8 @@ export declare type SelectOptionLabelProps<T extends GenericObject = GenericObje
9
9
  mode?: 'placeholder';
10
10
  };
11
11
  export declare type SelectOptionLabelComponent<T extends GenericObject = GenericObject> = React.FunctionComponent<SelectOptionLabelProps<T>>;
12
- export declare type Option<T extends GenericObject = GenericObject> = Pick<MenuOption<T>, 'label' | 'data' | 'disabled'> & {
12
+ export declare type Option<T extends GenericObject = GenericObject> = Pick<MenuOption<T>, 'onClick' | 'rules' | 'data' | 'disabled'> & {
13
+ label: ReactNode | SelectOptionLabelComponent<T>;
13
14
  value: string;
14
15
  };
15
16
  interface LoaderReturn<T extends GenericObject = GenericObject> {
@@ -17,7 +18,7 @@ interface LoaderReturn<T extends GenericObject = GenericObject> {
17
18
  lastPage: boolean;
18
19
  }
19
20
  export declare type Loader<T extends GenericObject = GenericObject> = (search: string, page: number) => Promise<LoaderReturn<T> | Option<T>[] | null>;
20
- export declare type CommonProps<T extends GenericObject = GenericObject> = Omit<InputProps, 'type' | 'mask' | 'icon' | 'setValue' | 'value' | 'onChange' | 'children' | 'clearable' | 'dirty'> & Pick<MenuProps<T>, 'onClickOption' | 'rules' | 'onScrollEnd' | 'position' | 'center' | 'maxHeight' | 'emptyContent'> & {
21
+ export declare type CommonProps<T extends GenericObject = GenericObject> = Omit<InputProps, 'type' | 'mask' | 'icon' | 'setValue' | 'value' | 'onChange' | 'children' | 'clearable' | 'dirty'> & Pick<MenuProps, 'onScrollEnd' | 'position' | 'center' | 'maxHeight' | 'emptyContent'> & {
21
22
  search?: boolean;
22
23
  /**
23
24
  * async function to load options
@@ -26,9 +27,6 @@ export declare type CommonProps<T extends GenericObject = GenericObject> = Omit<
26
27
  */
27
28
  loader: Loader<T>;
28
29
  initialLoader?: () => Option<T>[];
29
- optionLabel?: React.FunctionComponent<Option & {
30
- mode?: 'placeholder';
31
- }>;
32
30
  };
33
31
  interface BaseContext {
34
32
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
@@ -43,7 +41,7 @@ export interface useSelectReturn {
43
41
  options: [Option[], React.Dispatch<React.SetStateAction<Option[]>>];
44
42
  inputContent: React.ReactNode;
45
43
  onReset: () => void;
46
- menu: Pick<MenuProps, 'itemSpacing' | 'before' | 'after' | 'maxHeight' | 'label' | 'onClickOption'>;
44
+ menu: Pick<MenuProps, 'itemSpacing' | 'before' | 'after' | 'maxHeight'>;
47
45
  getContext: (base: BaseContext, children: JSX.Element) => JSX.Element;
48
46
  onClear?: () => void;
49
47
  dirty?: InputProps['dirty'];
@@ -5,16 +5,20 @@ import { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
5
5
  import { ScrollContainerProps } from '../ScrollContainer/interfaces';
6
6
  /** funcao que fara a validacao da regra, deve retornar true caso passe na validacao, e false ou o conteudo do popup caso contrario */
7
7
  declare type Rule<T extends GenericObject = GenericObject> = (index: number, data: T) => boolean | Omit<PopupProps, 'trigger'>;
8
- export declare type Option<T extends GenericObject = GenericObject> = {
8
+ export declare type MenuOptionLabelProps<T extends GenericObject = GenericObject> = {
9
9
  delimiter?: boolean;
10
10
  keepOpen?: boolean;
11
11
  caret?: boolean;
12
12
  disabled?: boolean;
13
13
  border?: Borders;
14
- label: string;
15
14
  data: T;
16
15
  };
17
- export declare type OptionLabelComponent<T extends GenericObject = GenericObject> = React.FunctionComponent<Option<T>>;
16
+ export declare type OptionLabelComponent<T extends GenericObject = GenericObject> = React.FunctionComponent<MenuOptionLabelProps<T>>;
17
+ export declare type Option<T extends GenericObject = GenericObject> = MenuOptionLabelProps<T> & {
18
+ label: ReactNode | OptionLabelComponent<T>;
19
+ onClick?: (index: number, option: Option, event: React.MouseEvent) => void;
20
+ rules?: Rule<T>[];
21
+ };
18
22
  export interface CommonProps extends Omit<AbsoluteContainerProps, 'children' | 'content'> {
19
23
  bordered?: boolean;
20
24
  containerSpacing?: SpacingOrZero | Omit<Spacings, 'right'>;
@@ -24,17 +28,10 @@ export interface CommonProps extends Omit<AbsoluteContainerProps, 'children' | '
24
28
  export interface MenuProps<T extends GenericObject = GenericObject> extends CommonProps, Pick<ScrollContainerProps, 'onScrollEnd' | 'loading' | 'before' | 'after'> {
25
29
  open: boolean;
26
30
  close: () => void;
27
- options: (Option<T> & {
28
- labelComponent?: OptionLabelComponent<T>;
29
- onClick?: (index: number, option: T, event: React.MouseEvent) => void;
30
- rules?: Rule<T>[];
31
- })[];
31
+ options: Option<T>[];
32
32
  scrollSpacing?: ScrollContainerProps['spacing'];
33
33
  scrollTabIndex?: number;
34
34
  emptyContent?: ReactNode;
35
- label?: OptionLabelComponent<T>;
36
- rules?: Rule<T>[];
37
- onClickOption?: (index: number, option: T, event: React.MouseEvent) => void;
38
35
  highlight?: number;
39
36
  }
40
37
  export declare type ContainerProps = CommonProps & {