@dexma/ui-components 7.1.1 → 8.0.2

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.
Files changed (30) hide show
  1. package/dist/lib/components/Alert/Alert.d.ts +3 -1
  2. package/dist/lib/components/Button/Button.d.ts +57 -11
  3. package/dist/lib/components/Card/Card.d.ts +2 -0
  4. package/dist/lib/components/Cascader/Cascader.d.ts +8 -4
  5. package/dist/lib/components/Checkbox/Checkbox.d.ts +2 -3
  6. package/dist/lib/components/ColorPicker/ColorPicker.d.ts +2 -3
  7. package/dist/lib/components/DataId/withDataId.d.ts +2 -2
  8. package/dist/lib/components/DatePicker/DatePicker.d.ts +5 -5
  9. package/dist/lib/components/Dropdown/Dropdown.d.ts +9 -3
  10. package/dist/lib/components/FieldGroup/FieldGroup.d.ts +8 -7
  11. package/dist/lib/components/FormControl/FormControl.d.ts +4 -3
  12. package/dist/lib/components/Icon/Icon.d.ts +4 -3
  13. package/dist/lib/components/Input/Input.d.ts +10 -6
  14. package/dist/lib/components/Modal/Modal.d.ts +7 -2
  15. package/dist/lib/components/Pagination/Pagination.d.ts +7 -2
  16. package/dist/lib/components/Popover/Popover.d.ts +2 -3
  17. package/dist/lib/components/Progress/Progress.d.ts +2 -1
  18. package/dist/lib/components/Result/Result.d.ts +2 -1
  19. package/dist/lib/components/Section/Section.d.ts +5 -3
  20. package/dist/lib/components/Switch/Switch.d.ts +4 -3
  21. package/dist/lib/components/SwitchPeriodComparative/SwitchPeriodComparative.d.ts +2 -1
  22. package/dist/lib/components/Table/Table.d.ts +12 -0
  23. package/dist/lib/components/Tag/Tag.d.ts +6 -4
  24. package/dist/lib/styles/ColorPicker/StyledColorPicker.d.ts +12 -4
  25. package/dist/lib/styles/Dropdown/StyledDropdown.d.ts +202 -14
  26. package/dist/lib/styles/Select/StyledSelect.d.ts +101 -7
  27. package/dist/style.css +1 -0
  28. package/dist/ui-components.es.js +17399 -17061
  29. package/dist/ui-components.umd.js +459 -444
  30. package/package.json +20 -9
@@ -8,5 +8,7 @@ export type AlertProps = {
8
8
  closable?: boolean;
9
9
  className?: string;
10
10
  style?: CSSProperties;
11
+ ariaLive?: 'polite' | 'assertive';
12
+ iconAriaLabel?: string;
11
13
  };
12
- export declare const Alert: ({ type, closable, message, description, showIcon, onClose, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export declare const Alert: ({ type, closable, message, description, showIcon, ariaLive, iconAriaLabel, onClose, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  export declare enum ButtonSize {
3
3
  SMALL = "small",
4
4
  MEDIUM = "medium",
@@ -7,13 +7,45 @@ export declare enum ButtonSize {
7
7
  }
8
8
  export declare const BUTTON_VARIANT: string[];
9
9
  export declare const ButtonGroup: (props: any) => import("react/jsx-runtime").JSX.Element;
10
- export type ButtonProps = {
11
- text?: string;
10
+ type CommonButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
12
11
  size?: string | ButtonSize;
13
12
  variant?: string;
13
+ tooltip?: string;
14
+ onClick?: (e?: any) => void;
15
+ onFocus?: () => void;
16
+ isLoading?: boolean;
17
+ isDisabled?: boolean;
18
+ isCircle?: boolean;
19
+ isExpanded?: boolean;
20
+ debounceTime?: number;
21
+ children?: ReactNode;
22
+ dataId?: string;
23
+ 'data-testid'?: string;
24
+ };
25
+ type ButtonTextProps = CommonButtonProps & {
26
+ kind: 'button';
27
+ text: string;
28
+ };
29
+ type IconButtonProps = CommonButtonProps & {
30
+ kind: 'iconButton';
31
+ iconColor?: string;
14
32
  iconBefore?: string;
15
33
  iconAfter?: string;
34
+ iconAriaLabel: string;
35
+ };
36
+ type IconTextButtonProps = CommonButtonProps & {
37
+ kind: 'iconTextButton';
38
+ text: string;
16
39
  iconColor?: string;
40
+ iconBefore?: string;
41
+ iconAfter?: string;
42
+ };
43
+ export type ButtonProps = (Omit<ButtonTextProps, 'kind'> & {
44
+ kind?: 'button';
45
+ }) | IconButtonProps | IconTextButtonProps;
46
+ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<ButtonHTMLAttributes<HTMLButtonElement> & {
47
+ size?: string | ButtonSize;
48
+ variant?: string;
17
49
  tooltip?: string;
18
50
  onClick?: (e?: any) => void;
19
51
  onFocus?: () => void;
@@ -25,14 +57,17 @@ export type ButtonProps = {
25
57
  children?: ReactNode;
26
58
  dataId?: string;
27
59
  'data-testid'?: string;
28
- } & ButtonHTMLAttributes<HTMLButtonElement>;
29
- export declare const Button: React.ForwardRefExoticComponent<Omit<{
30
- text?: string;
31
- size?: string | ButtonSize;
32
- variant?: string;
60
+ } & {
61
+ kind: "iconButton";
62
+ iconColor?: string;
33
63
  iconBefore?: string;
34
64
  iconAfter?: string;
35
- iconColor?: string;
65
+ iconAriaLabel: string;
66
+ } & import('react').RefAttributes<HTMLButtonElement> & {
67
+ dataId?: string;
68
+ }, "ref"> | Omit<ButtonHTMLAttributes<HTMLButtonElement> & {
69
+ size?: string | ButtonSize;
70
+ variant?: string;
36
71
  tooltip?: string;
37
72
  onClick?: (e?: any) => void;
38
73
  onFocus?: () => void;
@@ -44,6 +79,17 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<{
44
79
  children?: ReactNode;
45
80
  dataId?: string;
46
81
  'data-testid'?: string;
47
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement> & {
82
+ } & {
83
+ kind: "iconTextButton";
84
+ text: string;
85
+ iconColor?: string;
86
+ iconBefore?: string;
87
+ iconAfter?: string;
88
+ } & import('react').RefAttributes<HTMLButtonElement> & {
89
+ dataId?: string;
90
+ }, "ref"> | Omit<Omit<ButtonTextProps, "kind"> & {
91
+ kind?: "button";
92
+ } & import('react').RefAttributes<HTMLButtonElement> & {
48
93
  dataId?: string;
49
- }, "ref"> & React.RefAttributes<unknown>>;
94
+ }, "ref">) & import('react').RefAttributes<unknown>>;
95
+ export {};
@@ -6,9 +6,11 @@ export type CardProps = {
6
6
  description?: string;
7
7
  icon?: string;
8
8
  image?: string;
9
+ imageAlt?: string;
9
10
  footer?: React.ReactNode;
10
11
  isActive?: boolean;
11
12
  isHorizontal?: boolean;
13
+ linkTitle?: string;
12
14
  onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
13
15
  onFocus?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
14
16
  };
@@ -3,16 +3,20 @@ import { CascaderProps as CascaderAntdProps } from 'antd';
3
3
  import { DefaultOptionType } from 'antd/es/cascader';
4
4
  import { DefaultTheme } from 'styled-components';
5
5
  type Value = Array<string | number>;
6
- type CascaderProps<OptionType extends DefaultOptionType> = CascaderAntdProps & {
6
+ type CascaderProps = CascaderAntdProps & {
7
7
  open?: boolean;
8
- options?: OptionType[];
8
+ options?: OptionProps[];
9
+ iconAriaLabel?: string;
9
10
  onChange?: (value: Value | Value[]) => void;
10
11
  };
11
- export declare const tagRender: (theme: DefaultTheme) => (props: {
12
+ type OptionProps = DefaultOptionType & {
13
+ selectedItemAriaLabel?: string;
14
+ };
15
+ export declare const tagRender: (theme: DefaultTheme, iconAriaLabel?: string) => (props: {
12
16
  label: ReactNode;
13
17
  value: string;
14
18
  closable: boolean;
15
19
  onClose: () => void;
16
20
  }) => import("react/jsx-runtime").JSX.Element;
17
- export declare const Cascader: <OptionType extends DefaultOptionType>({ multiple, options, maxTagCount, onChange, open, changeOnSelect, ...props }: CascaderProps<OptionType>) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Cascader: ({ multiple, options, maxTagCount, onChange, open, changeOnSelect, iconAriaLabel, ...props }: CascaderProps) => import("react/jsx-runtime").JSX.Element;
18
22
  export {};
@@ -1,8 +1,7 @@
1
- import { default as React } from 'react';
2
1
  import { CheckboxProps as AntCheckboxProps } from 'antd';
3
2
  export type CheckboxProps = {
4
3
  dataId?: string;
5
4
  } & AntCheckboxProps;
6
- export declare const Checkbox: React.ForwardRefExoticComponent<AntCheckboxProps & {
5
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<AntCheckboxProps & {
7
6
  dataId?: string;
8
- } & React.RefAttributes<unknown>>;
7
+ } & import('react').RefAttributes<unknown>>;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  export type ColorPickerProps = {
3
2
  dataId?: string;
4
3
  isLoading?: boolean;
@@ -9,6 +8,6 @@ export type ColorPickerProps = {
9
8
  showInput?: boolean;
10
9
  value?: string;
11
10
  };
12
- export declare const ColorPicker: React.ForwardRefExoticComponent<Omit<ColorPickerProps & React.RefAttributes<HTMLInputElement> & {
11
+ export declare const ColorPicker: import('react').ForwardRefExoticComponent<Omit<ColorPickerProps & import('react').RefAttributes<HTMLInputElement> & {
13
12
  dataId?: string;
14
- }, "ref"> & React.RefAttributes<unknown>>;
13
+ }, "ref"> & import('react').RefAttributes<unknown>>;
@@ -1,6 +1,6 @@
1
- import { default as React, ComponentType } from 'react';
1
+ import { ComponentType } from 'react';
2
2
  type WithDataIdProps = {
3
3
  dataId?: string;
4
4
  };
5
- export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & WithDataIdProps> & React.RefAttributes<unknown>>;
5
+ export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => import('react').ForwardRefExoticComponent<import('react').PropsWithoutRef<P & WithDataIdProps> & import('react').RefAttributes<unknown>>;
6
6
  export {};
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { DatePickerProps } from 'antd';
3
2
  import { RangePickerProps } from 'antd/lib/date-picker';
4
3
  import { Theme } from '../../utils/theme';
@@ -7,15 +6,16 @@ type CommonProps = {
7
6
  dataId?: string;
8
7
  'data-testid'?: string;
9
8
  theme?: Theme;
9
+ label?: string;
10
10
  };
11
11
  export type AntdDatePickerProps = DatePickerProps & CommonProps;
12
- export declare const AntdDatePicker: React.ForwardRefExoticComponent<(AntdDatePickerProps & {
12
+ export declare const AntdDatePicker: import('react').ForwardRefExoticComponent<(AntdDatePickerProps & {
13
13
  dataId?: string;
14
- }) & React.RefAttributes<unknown>>;
14
+ }) & import('react').RefAttributes<unknown>>;
15
15
  export type AntdRangePickerProps = RangePickerProps & CommonProps;
16
- export declare const AntdRangePicker: React.ForwardRefExoticComponent<(AntdRangePickerProps & {
16
+ export declare const AntdRangePicker: import('react').ForwardRefExoticComponent<(AntdRangePickerProps & {
17
17
  dataId?: string;
18
- }) & React.RefAttributes<unknown>>;
18
+ }) & import('react').RefAttributes<unknown>>;
19
19
  type DatePickerType = {
20
20
  type: 'date' | 'range';
21
21
  } & (AntdDatePickerProps | AntdRangePickerProps);
@@ -1,11 +1,15 @@
1
1
  import { DropDownProps } from 'antd';
2
- type DropdownContent = {
3
- text: string;
2
+ export type DropdownContent = {
3
+ text?: string;
4
4
  key?: string;
5
5
  icon?: string;
6
6
  dataId?: string;
7
7
  variant?: string;
8
+ ariaLabel?: string;
9
+ disabled?: boolean;
8
10
  onClick?: (e: any) => void;
11
+ iconAriaLabel?: string;
12
+ onKeyDown?: (e: any) => void;
9
13
  };
10
14
  export type DropdownProps = DropDownProps & {
11
15
  dataId?: string;
@@ -13,6 +17,8 @@ export type DropdownProps = DropDownProps & {
13
17
  icon?: string;
14
18
  variant?: string;
15
19
  content?: DropdownContent[];
20
+ iconAriaLabel?: string;
21
+ onItemSelected: (key: number) => void;
16
22
  };
17
- export declare const Dropdown: ({ dataId, trigger, text, placement, menu, icon, content, variant }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Dropdown: ({ dataId, trigger, text, placement, menu, icon, content, variant, open, disabled, iconAriaLabel, onItemSelected }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
18
24
  export default Dropdown;
@@ -1,4 +1,4 @@
1
- import { default as React, HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { ButtonSize } from '../index.ts';
3
3
  export declare enum FieldGroupType {
4
4
  RADIO = "radio",
@@ -29,10 +29,11 @@ export type FieldGroupItem = {
29
29
  value: string;
30
30
  tooltip?: string;
31
31
  isDisabled?: boolean;
32
+ iconAriaLabel?: string;
32
33
  };
33
34
  export type RadioFieldGroupProps = FieldGroupProps<string | number>;
34
35
  export type CheckboxFieldGroupProps = FieldGroupProps<Array<string | number>>;
35
- export declare const RadioFieldGroup: React.ForwardRefExoticComponent<{
36
+ export declare const RadioFieldGroup: import('react').ForwardRefExoticComponent<{
36
37
  selectedValues: string | number;
37
38
  variant?: FieldGroupVariant;
38
39
  values: FieldGroupItem[];
@@ -42,10 +43,10 @@ export declare const RadioFieldGroup: React.ForwardRefExoticComponent<{
42
43
  onChange?: (e: FieldGroupItem) => void;
43
44
  onFieldClick?: (e: FieldGroupItem) => void;
44
45
  dataId?: string;
45
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
46
+ } & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
46
47
  dataId?: string;
47
- } & React.RefAttributes<unknown>>;
48
- export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<{
48
+ } & import('react').RefAttributes<unknown>>;
49
+ export declare const CheckboxFieldGroup: import('react').ForwardRefExoticComponent<{
49
50
  selectedValues: (string | number)[];
50
51
  variant?: FieldGroupVariant;
51
52
  values: FieldGroupItem[];
@@ -55,7 +56,7 @@ export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<{
55
56
  onChange?: (e: FieldGroupItem) => void;
56
57
  onFieldClick?: (e: FieldGroupItem) => void;
57
58
  dataId?: string;
58
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
59
+ } & Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
59
60
  dataId?: string;
60
- } & React.RefAttributes<unknown>>;
61
+ } & import('react').RefAttributes<unknown>>;
61
62
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  type FormControlProps = {
3
3
  dataId?: string;
4
4
  control: 'Input' | 'Checkbox' | 'Textarea' | 'Select' | 'ColorPicker' | 'DatePicker';
@@ -27,8 +27,9 @@ type FormControlProps = {
27
27
  placeholder?: string;
28
28
  maxLength?: number;
29
29
  rows?: number;
30
+ inputLabel?: string;
30
31
  };
31
- export declare const FormControl: React.ForwardRefExoticComponent<Omit<FormControlProps & React.RefAttributes<HTMLElement> & {
32
+ export declare const FormControl: import('react').ForwardRefExoticComponent<Omit<FormControlProps & import('react').RefAttributes<HTMLElement> & {
32
33
  dataId?: string;
33
- }, "ref"> & React.RefAttributes<unknown>>;
34
+ }, "ref"> & import('react').RefAttributes<unknown>>;
34
35
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React, SVGProps } from 'react';
1
+ import { SVGProps } from 'react';
2
2
  import { default as defaultTheme } from '../../utils/theme';
3
3
  export declare enum IconSize {
4
4
  SMALL = "small",
@@ -11,6 +11,7 @@ export type IconProps = {
11
11
  name?: string;
12
12
  color?: string | keyof typeof defaultTheme.color;
13
13
  size?: number | string | IconSize;
14
- } & SVGProps<SVGSVGElement>;
15
- export declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
+ ariaLabel: string;
15
+ } & Omit<SVGProps<SVGSVGElement>, 'aria-label'>;
16
+ export declare const Icon: import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
16
17
  export default Icon;
@@ -1,16 +1,20 @@
1
- import { default as React, ReactNode } from 'react';
2
- export declare const Input: React.ForwardRefExoticComponent<Omit<{
1
+ import { InputHTMLAttributes } from 'react';
2
+ export declare const Input: import('react').ForwardRefExoticComponent<Omit<{
3
3
  placeholder?: string;
4
4
  id?: string;
5
5
  icon?: string;
6
- label?: string | ReactNode;
6
+ label: string;
7
7
  title?: string;
8
8
  value?: string;
9
9
  isLoading?: boolean;
10
- type?: string;
10
+ type: "email" | "file" | "number" | "password" | "tel" | "text" | "url";
11
11
  name?: string;
12
12
  disabled?: boolean;
13
13
  dataId?: string;
14
- } & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement> & {
14
+ iconAriaLabel?: string;
15
+ ariaLabel?: string;
16
+ isItToSearch?: boolean;
17
+ autoComplete?: string;
18
+ } & InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
15
19
  dataId?: string;
16
- }, "ref"> & React.RefAttributes<unknown>>;
20
+ }, "ref"> & import('react').RefAttributes<unknown>>;
@@ -1,2 +1,7 @@
1
- import { ModalProps } from 'antd';
2
- export declare const Modal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ import { ModalProps as AntDModalProps } from 'antd';
3
+ export type ModalProps = {
4
+ body?: ReactNode;
5
+ closeModalButtonAriaLabel: string;
6
+ } & AntDModalProps;
7
+ export declare const Modal: ({ open, title, body, footer, closeModalButtonAriaLabel, onCancel, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { PaginationProps as PaginationAntProps } from 'antd';
3
- export declare const itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
4
- export type PaginationProps = PaginationAntProps;
3
+ export declare const itemRender: (current: number) => (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
4
+ export type PaginationProps = {
5
+ previosPageAriaLabel?: string;
6
+ nextPageAriaLabel?: string;
7
+ prevDotsPageAriaLabel?: string;
8
+ nextDotsPageAriaLabel?: string;
9
+ } & PaginationAntProps;
5
10
  export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { PopoverProps as AntDPopoverProps } from 'antd';
3
- export declare const Popover: React.ForwardRefExoticComponent<AntDPopoverProps & {
2
+ export declare const Popover: import('react').ForwardRefExoticComponent<AntDPopoverProps & {
4
3
  dataId?: string;
5
- } & React.RefAttributes<unknown>>;
4
+ } & import('react').RefAttributes<unknown>>;
@@ -7,6 +7,7 @@ export type ProgressProps = {
7
7
  text?: string;
8
8
  isTransparent?: boolean;
9
9
  color: string;
10
+ ariaLabel?: string;
10
11
  };
11
- export declare const Progress: ({ text, marks, percent, color, isTransparent, ...props }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Progress: ({ text, marks, percent, color, isTransparent, ariaLabel, ...props }: ProgressProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export default Progress;
@@ -15,5 +15,6 @@ export type ResultProps = {
15
15
  size?: number;
16
16
  icon?: string;
17
17
  iconElement?: ReactNode;
18
+ iconAriaLabel?: string;
18
19
  };
19
- export declare const Result: ({ title, info, variant, content, size, icon, iconElement }: ResultProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Result: ({ title, info, variant, content, size, icon, iconElement, iconAriaLabel }: ResultProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  type SectionProps = {
3
2
  dataId?: string;
4
3
  children: JSX.Element;
@@ -7,8 +6,11 @@ type SectionProps = {
7
6
  onExportExcel?: () => void;
8
7
  onExportImage?: () => void;
9
8
  onAddReport?: () => void;
9
+ iconExportExcelAriaLabel?: string;
10
+ iconExportImageAriaLabel?: string;
11
+ iconAddReportAriaLabel?: string;
10
12
  };
11
- export declare const Section: React.ForwardRefExoticComponent<SectionProps & {
13
+ export declare const Section: import('react').ForwardRefExoticComponent<SectionProps & {
12
14
  dataId?: string;
13
- } & React.RefAttributes<unknown>>;
15
+ } & import('react').RefAttributes<unknown>>;
14
16
  export {};
@@ -1,18 +1,19 @@
1
- import { default as React } from 'react';
2
1
  import { SwitchChangeEventHandler, SwitchClickEventHandler, SwitchProps as AntdSwitchProps, SwitchSize } from 'antd/es/switch';
3
2
  export type SwitchProps = {
4
3
  disabled?: boolean;
5
4
  size?: SwitchSize;
6
5
  dataId?: string;
6
+ ariaLabel?: string;
7
7
  onChange?: SwitchChangeEventHandler;
8
8
  onClick?: SwitchClickEventHandler;
9
9
  } & AntdSwitchProps;
10
- export declare const Switch: React.ForwardRefExoticComponent<{
10
+ export declare const Switch: import('react').ForwardRefExoticComponent<{
11
11
  disabled?: boolean;
12
12
  size?: SwitchSize;
13
13
  dataId?: string;
14
+ ariaLabel?: string;
14
15
  onChange?: SwitchChangeEventHandler;
15
16
  onClick?: SwitchClickEventHandler;
16
17
  } & AntdSwitchProps & {
17
18
  dataId?: string;
18
- } & React.RefAttributes<unknown>>;
19
+ } & import('react').RefAttributes<unknown>>;
@@ -11,6 +11,7 @@ type SwitchPeriodComparativeProps = {
11
11
  endDate: string;
12
12
  previousPeriodText?: string;
13
13
  samePeriodLastYearText?: string;
14
+ disabled?: boolean;
14
15
  onPeriodSelect?: ({ period, date }: {
15
16
  period: string;
16
17
  date: {
@@ -19,5 +20,5 @@ type SwitchPeriodComparativeProps = {
19
20
  };
20
21
  }) => void;
21
22
  };
22
- export declare const SwitchPeriodComparative: ({ selectedPeriod, startDate, endDate, previousPeriodText, samePeriodLastYearText, onPeriodSelect, ...props }: SwitchPeriodComparativeProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const SwitchPeriodComparative: ({ selectedPeriod, startDate, endDate, previousPeriodText, samePeriodLastYearText, disabled, onPeriodSelect, ...props }: SwitchPeriodComparativeProps) => import("react/jsx-runtime").JSX.Element;
23
24
  export {};
@@ -7,6 +7,12 @@ export type TableProps<RecordType> = {
7
7
  showError?: boolean;
8
8
  dataId?: string;
9
9
  errorContent?: React.ReactNode;
10
+ rowsCanBeSelectAriaLabel?: string;
11
+ selectAllRowsAriaLabel?: string;
12
+ currentPage?: number;
13
+ pageSize?: number;
14
+ showSizeChanger?: boolean;
15
+ pageSizeOptions?: string[];
10
16
  } & AntDTableProps<RecordType>;
11
17
  export declare const Table: <RecordType extends AnyObject>(props: TableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
12
18
  export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<{
@@ -15,6 +21,12 @@ export declare const buildTableWithDataId: <RecordType extends AnyObject>() => R
15
21
  showError?: boolean;
16
22
  dataId?: string;
17
23
  errorContent?: React.ReactNode;
24
+ rowsCanBeSelectAriaLabel?: string;
25
+ selectAllRowsAriaLabel?: string;
26
+ currentPage?: number;
27
+ pageSize?: number;
28
+ showSizeChanger?: boolean;
29
+ pageSizeOptions?: string[];
18
30
  } & AntDTableProps<RecordType> & {
19
31
  dataId?: string;
20
32
  } & React.RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
- import { default as React, HTMLAttributes } from 'react';
1
+ import { HTMLAttributes } from 'react';
2
2
  export type TagProps = {
3
3
  dataId?: string;
4
4
  color?: string;
@@ -7,8 +7,9 @@ export type TagProps = {
7
7
  onClose?: () => void;
8
8
  type?: 'normal' | 'rounded';
9
9
  variant?: 'primary' | 'outline';
10
+ iconAriaLabel?: string;
10
11
  } & HTMLAttributes<HTMLDivElement>;
11
- export declare const Tag: React.ForwardRefExoticComponent<{
12
+ export declare const Tag: import('react').ForwardRefExoticComponent<{
12
13
  dataId?: string;
13
14
  color?: string;
14
15
  icon?: string;
@@ -16,6 +17,7 @@ export declare const Tag: React.ForwardRefExoticComponent<{
16
17
  onClose?: () => void;
17
18
  type?: "normal" | "rounded";
18
19
  variant?: "primary" | "outline";
19
- } & React.HTMLAttributes<HTMLDivElement> & {
20
+ iconAriaLabel?: string;
21
+ } & HTMLAttributes<HTMLDivElement> & {
20
22
  dataId?: string;
21
- } & React.RefAttributes<unknown>>;
23
+ } & import('react').RefAttributes<unknown>>;
@@ -5,14 +5,18 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
5
5
  placeholder?: string;
6
6
  id?: string;
7
7
  icon?: string;
8
- label?: string | import('react').ReactNode;
8
+ label: string;
9
9
  title?: string;
10
10
  value?: string;
11
11
  isLoading?: boolean;
12
- type?: string;
12
+ type: "email" | "file" | "number" | "password" | "tel" | "text" | "url";
13
13
  name?: string;
14
14
  disabled?: boolean;
15
15
  dataId?: string;
16
+ iconAriaLabel?: string;
17
+ ariaLabel?: string;
18
+ isItToSearch?: boolean;
19
+ autoComplete?: string;
16
20
  } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
17
21
  dataId?: string;
18
22
  }, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
@@ -21,14 +25,18 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
21
25
  placeholder?: string;
22
26
  id?: string;
23
27
  icon?: string;
24
- label?: string | import('react').ReactNode;
28
+ label: string;
25
29
  title?: string;
26
30
  value?: string;
27
31
  isLoading?: boolean;
28
- type?: string;
32
+ type: "email" | "file" | "number" | "password" | "tel" | "text" | "url";
29
33
  name?: string;
30
34
  disabled?: boolean;
31
35
  dataId?: string;
36
+ iconAriaLabel?: string;
37
+ ariaLabel?: string;
38
+ isItToSearch?: boolean;
39
+ autoComplete?: string;
32
40
  } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
33
41
  dataId?: string;
34
42
  }, "ref"> & import('react').RefAttributes<unknown>>, keyof import('react').Component<any, {}, any>>;