@dexma/ui-components 8.0.5 → 8.0.7

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,7 +1,11 @@
1
1
  import { CheckboxProps as AntCheckboxProps } from 'antd';
2
2
  export type CheckboxProps = {
3
3
  dataId?: string;
4
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
4
5
  } & AntCheckboxProps;
5
- export declare const Checkbox: import('react').ForwardRefExoticComponent<AntCheckboxProps & {
6
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<{
7
+ dataId?: string;
8
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
9
+ } & AntCheckboxProps & {
6
10
  dataId?: string;
7
11
  } & import('react').RefAttributes<unknown>>;
@@ -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 { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  type HeadingProps = {
3
3
  text: string;
4
4
  color?: string;
5
5
  type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6
6
  children?: ReactNode;
7
- };
7
+ } & HTMLAttributes<HTMLDivElement>;
8
8
  export declare const Heading: ({ color, type, text, children, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export default Heading;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  import { PopoverProps as AntDPopoverProps } from 'antd';
2
- export declare const Popover: import('react').ForwardRefExoticComponent<AntDPopoverProps & {
2
+ export declare const Popover: import('react').ForwardRefExoticComponent<Omit<AntDPopoverProps & import('react').RefAttributes<any> & {
3
3
  dataId?: string;
4
- } & import('react').RefAttributes<unknown>>;
4
+ }, "ref"> & import('react').RefAttributes<unknown>>;
@@ -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>>;
@@ -4,6 +4,7 @@ import { AnyObject } from 'antd/lib/_util/type';
4
4
  export type TableProps<RecordType> = {
5
5
  isLoading?: boolean;
6
6
  isExpanded?: boolean;
7
+ isPaginated?: boolean;
7
8
  showError?: boolean;
8
9
  dataId?: string;
9
10
  errorContent?: React.ReactNode;
@@ -18,6 +19,7 @@ export declare const Table: <RecordType extends AnyObject>(props: TableProps<Rec
18
19
  export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<{
19
20
  isLoading?: boolean;
20
21
  isExpanded?: boolean;
22
+ isPaginated?: boolean;
21
23
  showError?: boolean;
22
24
  dataId?: string;
23
25
  errorContent?: React.ReactNode;
@@ -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,7 +7,7 @@ export declare const getHorizontal: () => import('styled-components').RuleSet<ob
7
7
  type StyledFieldGroupProps = {
8
8
  $vertical?: boolean;
9
9
  size?: string;
10
- variant?: string;
10
+ $variant?: string;
11
11
  type?: FieldGroupType;
12
12
  theme: Theme;
13
13
  };
@@ -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;