@dexma/ui-components 8.0.5 → 8.0.6

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.
@@ -7,6 +7,7 @@ type CommonProps = {
7
7
  'data-testid'?: string;
8
8
  theme?: Theme;
9
9
  label?: string;
10
+ clearDateAriaLabel?: string;
10
11
  };
11
12
  export type AntdDatePickerProps = DatePickerProps & CommonProps;
12
13
  export declare const AntdDatePicker: import('react').ForwardRefExoticComponent<(AntdDatePickerProps & {
@@ -28,6 +28,8 @@ type FormControlProps = {
28
28
  maxLength?: number;
29
29
  rows?: number;
30
30
  inputLabel?: string;
31
+ showSelectOptionsAriaLabel?: string;
32
+ hideSelectOptionsAriaLabel?: string;
31
33
  };
32
34
  export declare const FormControl: import('react').ForwardRefExoticComponent<Omit<FormControlProps & import('react').RefAttributes<HTMLElement> & {
33
35
  dataId?: string;
@@ -1,9 +1,9 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactElement, ReactNode } from 'react';
2
2
  import { default as defaultTheme } from '../../utils/theme';
3
3
  export type LoadingProps = {
4
4
  size?: number;
5
5
  isLoading: boolean;
6
6
  color?: typeof defaultTheme.color;
7
7
  } & HTMLAttributes<HTMLDivElement>;
8
- export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) => ReactNode;
8
+ export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) => ReactElement | ReactNode;
9
9
  export default Loading;
@@ -11,7 +11,6 @@ type ButtonPaginationSelectorProps = {
11
11
  text: SelectTextProps;
12
12
  theme?: Theme;
13
13
  searchValue: string;
14
- showDropdown: boolean;
15
14
  };
16
- export declare const ButtonPaginationSelector: ({ handleSelectAll, pageSize, currentPage, options, onPageChange, text, theme, searchValue, showDropdown, }: ButtonPaginationSelectorProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const ButtonPaginationSelector: ({ handleSelectAll, pageSize, currentPage, options, onPageChange, text, theme, searchValue }: ButtonPaginationSelectorProps) => import("react/jsx-runtime").JSX.Element;
17
16
  export {};
@@ -14,11 +14,11 @@ type Option = {
14
14
  color?: string;
15
15
  disabled?: boolean;
16
16
  };
17
- export declare const tagRenderButtonPagination: (props: CustomTagProps, options: Option[], maxTagLength: number, theme: Theme) => ReactElement;
18
- export declare const dropdownRenderSelect: (menu: React.ReactElement, currentPage: number, options: Option[], handleChangePage: (page: number) => void, handleSelectAll: () => void, text: SelectTextProps, searchValue: string, showDropdown: boolean, mode: string, theme: Theme, pageSize?: number) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const tagRenderButtonPagination: (props: CustomTagProps, options: Option[], maxTagLength: number, theme: Theme, deleteOptionAriaLabel: string) => ReactElement;
18
+ 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
19
  export declare const renderUnselectedOption: (option: any, searchValue: string, dataId: string) => import("react/jsx-runtime").JSX.Element;
20
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, pageSize?: number) => 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
22
  export type SelectTextProps = {
23
23
  select: string;
24
24
  all: string;
@@ -39,6 +39,10 @@ export type SelectProps = Omit<AntdSelectProps, 'options' | 'mode'> & {
39
39
  handleButtonSelectAll?: (values: any[]) => void;
40
40
  handleClearAll?: () => void;
41
41
  mode?: 'multiple' | 'single';
42
+ showOptionsAriaLabel: string;
43
+ hideOptionsAriaLabel: string;
44
+ clearAllOptionsAriaLabel?: string;
45
+ deleteOptionSelectedAriaLabel?: string;
42
46
  };
43
47
  export declare const Select: import('react').ForwardRefExoticComponent<Omit<AntdSelectProps<any, import('rc-select/lib/Select').DefaultOptionType>, "mode" | "options"> & {
44
48
  dataId?: string;
@@ -53,6 +57,10 @@ export declare const Select: import('react').ForwardRefExoticComponent<Omit<Antd
53
57
  handleButtonSelectAll?: (values: any[]) => void;
54
58
  handleClearAll?: () => void;
55
59
  mode?: "multiple" | "single";
60
+ showOptionsAriaLabel: string;
61
+ hideOptionsAriaLabel: string;
62
+ clearAllOptionsAriaLabel?: string;
63
+ deleteOptionSelectedAriaLabel?: string;
56
64
  } & {
57
65
  dataId?: string;
58
66
  } & import('react').RefAttributes<unknown>>;
@@ -24,4 +24,5 @@ declare const StyledAntdRangePicker: import('styled-components/dist/types').ISty
24
24
  rootClassName?: string | undefined;
25
25
  }, unknown>, keyof import('react').Component<any, {}, any>>;
26
26
  declare const DropdownDatePickerStyles: import('react').NamedExoticComponent<import('styled-components').ExecutionProps & object>;
27
- export { StyledAntdDatePicker, StyledAntdRangePicker, DropdownDatePickerStyles };
27
+ declare const StyledDatePickerLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
28
+ export { StyledAntdDatePicker, StyledAntdRangePicker, DropdownDatePickerStyles, StyledDatePickerLabel };
@@ -7,4 +7,5 @@ declare const StyledInput: import('styled-components/dist/types').IStyledCompone
7
7
  $isLoading?: boolean;
8
8
  theme: Theme;
9
9
  }>> & string;
10
- export { StyledInput };
10
+ declare const StyledInputLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
11
+ export { StyledInput, StyledInputLabel };
@@ -180,6 +180,7 @@ export declare const StyledSpanOptionSelected: import('styled-components/dist/ty
180
180
  icon?: any;
181
181
  closable?: any;
182
182
  color?: string;
183
+ isSingleSelect?: boolean;
183
184
  }>> & string;
184
185
  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>, {
185
186
  value: string | null;