@dexma/ui-components 8.0.25 → 8.0.27

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,7 @@
1
1
  import { SelectProps as AntdSelectProps } from 'antd';
2
2
  import { Theme } from '../../utils/theme';
3
3
  import { ReactElement } from 'react';
4
+ import { BaseOptionType } from 'rc-select/lib/Select';
4
5
  type CustomTagProps = {
5
6
  label: React.ReactNode;
6
7
  value: any;
@@ -8,17 +9,15 @@ type CustomTagProps = {
8
9
  onClose: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
9
10
  closable: boolean;
10
11
  };
11
- type Option = {
12
+ interface Option extends BaseOptionType {
12
13
  value: string | number;
13
14
  label: string;
14
15
  color?: string;
15
16
  disabled?: boolean;
16
- };
17
+ }
17
18
  export declare const tagRenderButtonPagination: (props: CustomTagProps, options: Option[], maxTagLength: number, theme: Theme, deleteOptionAriaLabel: string) => ReactElement;
18
19
  export declare const dropdownRenderSelect: (menu: React.ReactElement, currentPage: number, options: Option[], handleChangePage: (page: number) => void, handleSelectAll: () => void, text: SelectTextProps, searchValue: string, mode: string, theme: Theme, pageSize?: number) => import("react/jsx-runtime").JSX.Element;
19
20
  export declare const renderUnselectedOption: (option: any, searchValue: string, dataId: string) => import("react/jsx-runtime").JSX.Element;
20
- export declare const singleOptionsRenderer: (options: Option[], selectedValue: string | number | undefined, theme: Theme, dataId: string) => import("react/jsx-runtime").JSX.Element;
21
- export declare const optionsRenderer: (options: Option[], selectedValues: Array<string | number>, searchValue: string, theme: Theme, dataId: string, currentPage: number, pageSize?: number) => import("react/jsx-runtime").JSX.Element;
22
21
  export type SelectTextProps = {
23
22
  select: string;
24
23
  all: string;
@@ -8,6 +8,8 @@ export type TagSelectProps = {
8
8
  placeholder?: string;
9
9
  style?: React.CSSProperties;
10
10
  defaultValue?: string[];
11
+ value?: string[];
12
+ onBlur?: () => void;
11
13
  };
12
14
  export declare const TagSelect: import('react').ForwardRefExoticComponent<TagSelectProps & {
13
15
  dataId?: string;
@@ -176,6 +176,7 @@ export declare const StyledButtonSelectAll: import('styled-components/dist/types
176
176
  export declare const StyledPaginationSelector: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
177
177
  export declare const StyledSelectDropdown: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
178
178
  export declare const StyledSpanOptionSelected: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
179
+ value?: string;
179
180
  theme: Theme;
180
181
  icon?: any;
181
182
  closable?: any;
@@ -183,7 +184,7 @@ export declare const StyledSpanOptionSelected: import('styled-components/dist/ty
183
184
  $isSingleSelect?: boolean;
184
185
  }>> & string;
185
186
  export declare const StyledSpanOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
186
- value: string | null;
187
+ value: string;
187
188
  }>> & string;
188
189
  export declare const getSelectOptionStyle: (theme: DefaultTheme | Theme) => import('styled-components').RuleSet<object>;
189
190
  export declare const SelectOptionStyle: import('react').NamedExoticComponent<import('styled-components').ExecutionProps & {