@taikai/rocket-kit 3.0.10-beta.2 → 3.0.11

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
  import React from 'react';
2
2
  export interface LabelProps {
3
- currency?: 'tkai' | 'vkai' | undefined;
3
+ currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
4
4
  value: string;
5
5
  className?: string;
6
6
  style?: React.CSSProperties;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { SelectInteractiveProps, TSelectInteractiveOption } from './types';
3
- declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, dataTestId, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => React.JSX.Element;
3
+ declare const SelectInteractive: ({ name, multi, search, placeholder, options, value, clear, error, disabled, formatGroupLabel, onChange, onInputChange, dataTestId, filterOption, ...rest }: SelectInteractiveProps<TSelectInteractiveOption>) => React.JSX.Element;
4
4
  export default SelectInteractive;
@@ -1,4 +1,5 @@
1
1
  import { MapHTMLAttributes, ReactNode } from 'react';
2
+ import { FilterOptionOption } from 'react-select/dist/declarations/src/filters';
2
3
  import NamedProps from 'react-select/dist/declarations/src/Select';
3
4
  export interface TSelectInteractiveOption {
4
5
  value: string;
@@ -31,5 +32,6 @@ export interface SelectInteractiveProps<T extends Options> extends TDivElement,
31
32
  onChange: (values: Array<TOptions> | TOptions) => void;
32
33
  options: ReadonlyArray<TOptions | OptionsGroup<TOptions>>;
33
34
  dataTestId?: string;
35
+ filterOption?: ((option: FilterOptionOption<TOptions>, inputValue: string) => boolean) | null;
34
36
  }
35
37
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export interface CardValueProps {
3
3
  label: string;
4
- currency?: 'tkai' | 'vkai' | undefined;
4
+ currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
5
5
  value: string | number;
6
6
  description?: string;
7
7
  buttonValue?: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface FormGroupProps {
3
- currency?: 'tkai' | 'vkai' | undefined;
3
+ currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
4
4
  label: string;
5
5
  error?: boolean;
6
6
  children: React.ReactNode;