@dexma/ui-components 7.0.1 → 7.1.0

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 (78) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/lib/components/Alert/Alert.d.ts +0 -1
  3. package/dist/lib/components/Button/Button.d.ts +2 -3
  4. package/dist/lib/components/Card/Card.d.ts +0 -1
  5. package/dist/lib/components/Cascader/Cascader.d.ts +1 -2
  6. package/dist/lib/components/Cell/Cell.d.ts +0 -1
  7. package/dist/lib/components/Chart/Chart.d.ts +2 -3
  8. package/dist/lib/components/Chart/types.d.ts +0 -1
  9. package/dist/lib/components/Checkbox/Checkbox.d.ts +2 -3
  10. package/dist/lib/components/ColorPicker/ColorPicker.d.ts +2 -3
  11. package/dist/lib/components/DataId/DataIdProvider.d.ts +0 -1
  12. package/dist/lib/components/DataId/withDataId.d.ts +1 -2
  13. package/dist/lib/components/DatePicker/DatePicker.d.ts +4 -5
  14. package/dist/lib/components/DatePicker/datePickerUtils.d.ts +0 -1
  15. package/dist/lib/components/Divider/Divider.d.ts +0 -1
  16. package/dist/lib/components/Dropdown/Dropdown.d.ts +0 -1
  17. package/dist/lib/components/FieldGroup/FieldGroup.d.ts +6 -7
  18. package/dist/lib/components/FormControl/FormControl.d.ts +2 -3
  19. package/dist/lib/components/Gauge/Gauge.d.ts +0 -1
  20. package/dist/lib/components/Grid/Grid.d.ts +0 -1
  21. package/dist/lib/components/Heading/Heading.d.ts +0 -1
  22. package/dist/lib/components/Icon/Icon.d.ts +0 -1
  23. package/dist/lib/components/Input/Input.d.ts +3 -4
  24. package/dist/lib/components/Loading/Loading.d.ts +2 -3
  25. package/dist/lib/components/Modal/Modal.d.ts +0 -1
  26. package/dist/lib/components/Pagination/Pagination.d.ts +0 -1
  27. package/dist/lib/components/Paragraph/Paragraph.d.ts +0 -1
  28. package/dist/lib/components/Popover/Popover.d.ts +2 -3
  29. package/dist/lib/components/Result/Result.d.ts +0 -1
  30. package/dist/lib/components/Row/Row.d.ts +0 -1
  31. package/dist/lib/components/Section/Section.d.ts +2 -3
  32. package/dist/lib/components/Select/ButtonPaginationSelector.d.ts +0 -1
  33. package/dist/lib/components/Select/Select.d.ts +3 -4
  34. package/dist/lib/components/Select/selectUtils.d.ts +0 -1
  35. package/dist/lib/components/Switch/Switch.d.ts +3 -4
  36. package/dist/lib/components/SwitchPeriodComparative/SwitchPeriodComparative.d.ts +0 -1
  37. package/dist/lib/components/Table/Table.d.ts +12 -8
  38. package/dist/lib/components/Tabs/Tabs.d.ts +0 -1
  39. package/dist/lib/components/Tag/Tag.d.ts +3 -4
  40. package/dist/lib/components/TagGroup/TagGroup.d.ts +0 -1
  41. package/dist/lib/components/Theme/Theme.d.ts +0 -1
  42. package/dist/lib/components/Toaster/Toaster.d.ts +0 -1
  43. package/dist/lib/components/Toaster/ToasterContext.d.ts +0 -1
  44. package/dist/lib/components/Tooltip/Tooltip.d.ts +0 -1
  45. package/dist/lib/index.d.ts +0 -1
  46. package/dist/lib/styles/Alert/StyledAlert.d.ts +0 -1
  47. package/dist/lib/styles/Button/StyledButton.d.ts +0 -1
  48. package/dist/lib/styles/Card/StyledCard.d.ts +0 -1
  49. package/dist/lib/styles/Cascader/StyledCascader.d.ts +0 -1
  50. package/dist/lib/styles/Cell/StyledCell.d.ts +0 -1
  51. package/dist/lib/styles/ColorPicker/StyledColorPicker.d.ts +6 -7
  52. package/dist/lib/styles/DatePicker/StyledDatePicker.d.ts +5 -3
  53. package/dist/lib/styles/Divider/StyledDivider.d.ts +0 -1
  54. package/dist/lib/styles/Dots/StyledDots.d.ts +0 -1
  55. package/dist/lib/styles/Dropdown/StyledDropdown.d.ts +8 -8
  56. package/dist/lib/styles/Fieldgroup/StyledFieldGroup.d.ts +0 -1
  57. package/dist/lib/styles/Grid/StyledGrid.d.ts +0 -1
  58. package/dist/lib/styles/Heading/StyledHeading.d.ts +0 -1
  59. package/dist/lib/styles/Input/StyledInput.d.ts +0 -1
  60. package/dist/lib/styles/Modal/StyledModal.d.ts +1 -2
  61. package/dist/lib/styles/Pagination/StyledPagination.d.ts +0 -1
  62. package/dist/lib/styles/Paragraph/StyledParagraph.d.ts +0 -1
  63. package/dist/lib/styles/Progress/StyledProgress.d.ts +0 -1
  64. package/dist/lib/styles/Result/StyledResult.d.ts +0 -1
  65. package/dist/lib/styles/Row/StyledRow.d.ts +0 -1
  66. package/dist/lib/styles/Select/StyledSelect.d.ts +4 -5
  67. package/dist/lib/styles/Spinner/StyledSpinner.d.ts +0 -1
  68. package/dist/lib/styles/SwitchPeriodComparative/StyledSwitchPeriodComparative.d.ts +0 -1
  69. package/dist/lib/styles/Table/StyledTable.d.ts +0 -1
  70. package/dist/lib/styles/Tabs/StyledTabs.d.ts +0 -1
  71. package/dist/lib/styles/Tag/StyledTag.d.ts +0 -1
  72. package/dist/lib/styles/TagGroup/StyledTagGroup.d.ts +0 -1
  73. package/dist/lib/utils/dates.d.ts +0 -1
  74. package/dist/lib/utils/selectors.d.ts +0 -1
  75. package/dist/lib/utils/theme.d.ts +0 -1
  76. package/dist/ui-components.es.js +34594 -33869
  77. package/dist/ui-components.umd.js +717 -715
  78. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './lib/index'
2
+ export {}
@@ -1,5 +1,4 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
-
3
2
  export type AlertProps = {
4
3
  message?: ReactNode;
5
4
  type: 'basic' | 'outline' | 'warning' | 'info' | 'success' | 'error';
@@ -1,5 +1,4 @@
1
1
  import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
2
-
3
2
  export declare enum ButtonSize {
4
3
  SMALL = "small",
5
4
  MEDIUM = "medium",
@@ -45,6 +44,6 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<{
45
44
  children?: ReactNode;
46
45
  dataId?: string;
47
46
  'data-testid'?: string;
48
- } & React.ButtonHTMLAttributes<HTMLButtonElement>, "dataId"> & Partial<{
47
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement> & {
49
48
  dataId?: string;
50
- }> & React.RefAttributes<unknown>>;
49
+ }, "ref"> & React.RefAttributes<unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type CardProps = {
4
3
  link?: string;
5
4
  title?: string;
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
2
2
  import { CascaderProps as CascaderAntdProps } from 'antd';
3
3
  import { DefaultOptionType } from 'antd/es/cascader';
4
4
  import { DefaultTheme } from 'styled-components';
5
-
6
5
  type Value = Array<string | number>;
7
6
  type CascaderProps<OptionType extends DefaultOptionType> = CascaderAntdProps & {
8
7
  open?: boolean;
@@ -15,5 +14,5 @@ export declare const tagRender: (theme: DefaultTheme) => (props: {
15
14
  closable: boolean;
16
15
  onClose: () => void;
17
16
  }) => import("react/jsx-runtime").JSX.Element;
18
- export declare const Cascader: <OptionType extends DefaultOptionType>({ multiple, options, maxTagCount, onChange, open, ...props }: CascaderProps<OptionType>) => 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;
19
18
  export {};
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  type CellProps = {
4
3
  xs?: number;
5
4
  sm?: number;
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { default as Highcharts } from 'highcharts';
3
3
  import { HighchartsReactRefObject } from 'highcharts-react-official';
4
-
5
4
  type ChartProps = {
6
5
  options?: Highcharts.Options;
7
6
  isLoading?: boolean;
@@ -17,7 +16,7 @@ type ChartProps = {
17
16
  weekdays?: string[];
18
17
  callback?: () => void;
19
18
  };
20
- export declare const Chart: React.ForwardRefExoticComponent<Omit<Omit<ChartProps & React.RefAttributes<HighchartsReactRefObject>, "dataId"> & Partial<{
19
+ export declare const Chart: React.ForwardRefExoticComponent<Omit<ChartProps & React.RefAttributes<HighchartsReactRefObject> & {
21
20
  dataId?: string;
22
- }>, "ref"> & React.RefAttributes<unknown>>;
21
+ }, "ref"> & React.RefAttributes<unknown>>;
23
22
  export {};
@@ -1,5 +1,4 @@
1
1
  import { XAxisOptions, YAxisOptions, PlotOptions, PlotSeriesOptions, PlotColumnOptions } from 'highcharts';
2
-
3
2
  type Modify<T, R> = Omit<T, keyof R> & R;
4
3
  type ChartXAxisOptions = XAxisOptions & {
5
4
  index?: number;
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { CheckboxProps as AntCheckboxProps } from 'antd';
3
-
4
3
  export type CheckboxProps = {
5
4
  dataId?: string;
6
5
  } & AntCheckboxProps;
7
- export declare const Checkbox: React.ForwardRefExoticComponent<Omit<AntCheckboxProps, "dataId"> & Partial<{
6
+ export declare const Checkbox: React.ForwardRefExoticComponent<AntCheckboxProps & {
8
7
  dataId?: string;
9
- }> & React.RefAttributes<unknown>>;
8
+ } & React.RefAttributes<unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type ColorPickerProps = {
4
3
  dataId?: string;
5
4
  isLoading?: boolean;
@@ -10,6 +9,6 @@ export type ColorPickerProps = {
10
9
  showInput?: boolean;
11
10
  value?: string;
12
11
  };
13
- export declare const ColorPicker: React.ForwardRefExoticComponent<Omit<Omit<ColorPickerProps & React.RefAttributes<HTMLInputElement>, "dataId"> & Partial<{
12
+ export declare const ColorPicker: React.ForwardRefExoticComponent<Omit<ColorPickerProps & React.RefAttributes<HTMLInputElement> & {
14
13
  dataId?: string;
15
- }>, "ref"> & React.RefAttributes<unknown>>;
14
+ }, "ref"> & React.RefAttributes<unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const DataIdContext: React.Context<string>;
4
3
  export declare const DataIdProvider: {
5
4
  (props: {
@@ -1,7 +1,6 @@
1
1
  import { default as React, ComponentType } from 'react';
2
-
3
2
  type WithDataIdProps = {
4
3
  dataId?: string;
5
4
  };
6
- export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<P, "dataId"> & Partial<WithDataIdProps>> & React.RefAttributes<unknown>>;
5
+ export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & WithDataIdProps> & React.RefAttributes<unknown>>;
7
6
  export {};
@@ -2,7 +2,6 @@ import { default as React } from 'react';
2
2
  import { DatePickerProps } from 'antd';
3
3
  import { RangePickerProps } from 'antd/lib/date-picker';
4
4
  import { Theme } from '../../utils/theme';
5
-
6
5
  type CommonProps = {
7
6
  lang?: 'en' | 'bg' | 'br' | 'be' | 'ca' | 'da' | 'de' | 'el' | 'es' | 'fi' | 'fr' | 'it' | 'nl' | 'pl' | 'pt' | 'sl' | 'sv' | 'tr' | 'us' | 'zh';
8
7
  dataId?: string;
@@ -10,13 +9,13 @@ type CommonProps = {
10
9
  theme?: Theme;
11
10
  };
12
11
  export type AntdDatePickerProps = DatePickerProps & CommonProps;
13
- export declare const AntdDatePicker: React.ForwardRefExoticComponent<Omit<AntdDatePickerProps, "dataId"> & Partial<{
12
+ export declare const AntdDatePicker: React.ForwardRefExoticComponent<(AntdDatePickerProps & {
14
13
  dataId?: string;
15
- }> & React.RefAttributes<unknown>>;
14
+ }) & React.RefAttributes<unknown>>;
16
15
  export type AntdRangePickerProps = RangePickerProps & CommonProps;
17
- export declare const AntdRangePicker: React.ForwardRefExoticComponent<Omit<AntdRangePickerProps, "dataId"> & Partial<{
16
+ export declare const AntdRangePicker: React.ForwardRefExoticComponent<(AntdRangePickerProps & {
18
17
  dataId?: string;
19
- }> & React.RefAttributes<unknown>>;
18
+ }) & React.RefAttributes<unknown>>;
20
19
  type DatePickerType = {
21
20
  type: 'date' | 'range';
22
21
  } & (AntdDatePickerProps | AntdRangePickerProps);
@@ -1,3 +1,2 @@
1
1
  import { Locale } from 'antd/lib/locale';
2
-
3
2
  export declare const getLocale: (language: string) => Locale;
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export type DividerProps = {
4
3
  vertical?: boolean;
5
4
  } & HTMLAttributes<HTMLHRElement>;
@@ -1,5 +1,4 @@
1
1
  import { DropDownProps } from 'antd';
2
-
3
2
  type DropdownContent = {
4
3
  text: string;
5
4
  key?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React, HTMLAttributes, ReactNode } from 'react';
2
2
  import { ButtonSize } from '../index.ts';
3
-
4
3
  export declare enum FieldGroupType {
5
4
  RADIO = "radio",
6
5
  CHECKBOX = "checkbox"
@@ -33,7 +32,7 @@ export type FieldGroupItem = {
33
32
  };
34
33
  export type RadioFieldGroupProps = FieldGroupProps<string | number>;
35
34
  export type CheckboxFieldGroupProps = FieldGroupProps<Array<string | number>>;
36
- export declare const RadioFieldGroup: React.ForwardRefExoticComponent<Omit<{
35
+ export declare const RadioFieldGroup: React.ForwardRefExoticComponent<{
37
36
  selectedValues: string | number;
38
37
  variant?: FieldGroupVariant;
39
38
  values: FieldGroupItem[];
@@ -43,10 +42,10 @@ export declare const RadioFieldGroup: React.ForwardRefExoticComponent<Omit<{
43
42
  onChange?: (e: FieldGroupItem) => void;
44
43
  onFieldClick?: (e: FieldGroupItem) => void;
45
44
  dataId?: string;
46
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, "dataId"> & Partial<{
45
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
47
46
  dataId?: string;
48
- }> & React.RefAttributes<unknown>>;
49
- export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<Omit<{
47
+ } & React.RefAttributes<unknown>>;
48
+ export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<{
50
49
  selectedValues: (string | number)[];
51
50
  variant?: FieldGroupVariant;
52
51
  values: FieldGroupItem[];
@@ -56,7 +55,7 @@ export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<Omit<{
56
55
  onChange?: (e: FieldGroupItem) => void;
57
56
  onFieldClick?: (e: FieldGroupItem) => void;
58
57
  dataId?: string;
59
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">, "dataId"> & Partial<{
58
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
60
59
  dataId?: string;
61
- }> & React.RefAttributes<unknown>>;
60
+ } & React.RefAttributes<unknown>>;
62
61
  export {};
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
2
  type FormControlProps = {
4
3
  dataId?: string;
5
4
  control: 'Input' | 'Checkbox' | 'Textarea' | 'Select' | 'ColorPicker' | 'DatePicker';
@@ -29,7 +28,7 @@ type FormControlProps = {
29
28
  maxLength?: number;
30
29
  rows?: number;
31
30
  };
32
- export declare const FormControl: React.ForwardRefExoticComponent<Omit<Omit<FormControlProps & React.RefAttributes<HTMLElement>, "dataId"> & Partial<{
31
+ export declare const FormControl: React.ForwardRefExoticComponent<Omit<FormControlProps & React.RefAttributes<HTMLElement> & {
33
32
  dataId?: string;
34
- }>, "ref"> & React.RefAttributes<unknown>>;
33
+ }, "ref"> & React.RefAttributes<unknown>>;
35
34
  export {};
@@ -1,5 +1,4 @@
1
1
  import { default as Highcharts } from 'highcharts';
2
-
3
2
  type Indicator = {
4
3
  color: string;
5
4
  tooltip: string;
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export declare const Grid: ({ fluid, children, ...props }: {
4
3
  fluid?: boolean;
5
4
  } & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  type HeadingProps = {
4
3
  text: string;
5
4
  color?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React, SVGProps } from 'react';
2
2
  import { default as defaultTheme } from '../../utils/theme';
3
-
4
3
  export declare enum IconSize {
5
4
  SMALL = "small",
6
5
  MEDIUM = "medium",
@@ -1,6 +1,5 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
- export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<{
2
+ export declare const Input: React.ForwardRefExoticComponent<Omit<{
4
3
  placeholder?: string;
5
4
  id?: string;
6
5
  icon?: string;
@@ -12,6 +11,6 @@ export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<{
12
11
  name?: string;
13
12
  disabled?: boolean;
14
13
  dataId?: string;
15
- } & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>, "dataId"> & Partial<{
14
+ } & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement> & {
16
15
  dataId?: string;
17
- }>, "ref"> & React.RefAttributes<unknown>>;
16
+ }, "ref"> & React.RefAttributes<unknown>>;
@@ -1,10 +1,9 @@
1
- import { default as React, HTMLAttributes } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { default as defaultTheme } from '../../utils/theme';
3
-
4
3
  export type LoadingProps = {
5
4
  size?: number;
6
5
  isLoading: boolean;
7
6
  color?: typeof defaultTheme.color;
8
7
  } & HTMLAttributes<HTMLDivElement>;
9
- export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
8
+ export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) => ReactNode;
10
9
  export default Loading;
@@ -1,3 +1,2 @@
1
1
  import { ModalProps } from 'antd';
2
-
3
2
  export declare const Modal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { PaginationProps as PaginationAntProps } from 'antd';
3
-
4
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;
5
4
  export type PaginationProps = PaginationAntProps;
6
5
  export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export type ParagraphProps = {
4
3
  margin?: string;
5
4
  color?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { PopoverProps as AntDPopoverProps } from 'antd';
3
-
4
- export declare const Popover: React.ForwardRefExoticComponent<Omit<AntDPopoverProps, "dataId"> & Partial<{
3
+ export declare const Popover: React.ForwardRefExoticComponent<AntDPopoverProps & {
5
4
  dataId?: string;
6
- }> & React.RefAttributes<unknown>>;
5
+ } & React.RefAttributes<unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export declare enum ResultVariants {
4
3
  SUCCESS = "success",
5
4
  INFO = "info",
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export type RowhProps = {
4
3
  reverse?: boolean;
5
4
  alignItems?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  type SectionProps = {
4
3
  dataId?: string;
5
4
  children: JSX.Element;
@@ -9,7 +8,7 @@ type SectionProps = {
9
8
  onExportImage?: () => void;
10
9
  onAddReport?: () => void;
11
10
  };
12
- export declare const Section: React.ForwardRefExoticComponent<Omit<SectionProps, "dataId"> & Partial<{
11
+ export declare const Section: React.ForwardRefExoticComponent<SectionProps & {
13
12
  dataId?: string;
14
- }> & React.RefAttributes<unknown>>;
13
+ } & React.RefAttributes<unknown>>;
15
14
  export {};
@@ -1,6 +1,5 @@
1
1
  import { Theme } from '../../utils/theme';
2
2
  import { SelectTextProps } from './Select';
3
-
4
3
  export declare const getButtonText: (text: SelectTextProps, currentPage: number, pageSize: number, options: any[], searchValue: string, numElements: number) => import("react/jsx-runtime").JSX.Element;
5
4
  export declare const getTotalPages: (pageSize: number, searchValue: string, options: any[]) => number;
6
5
  type ButtonPaginationSelectorProps = {
@@ -1,7 +1,6 @@
1
1
  import { SelectProps as AntdSelectProps } from 'antd';
2
2
  import { Theme } from '../../utils/theme';
3
3
  import { ReactElement } from 'react';
4
-
5
4
  type CustomTagProps = {
6
5
  label: React.ReactNode;
7
6
  value: any;
@@ -39,7 +38,7 @@ export type SelectProps = Omit<AntdSelectProps, 'options' | 'mode'> & {
39
38
  handleClearAll?: () => void;
40
39
  mode?: 'multiple' | 'single';
41
40
  };
42
- export declare const Select: import('react').ForwardRefExoticComponent<Omit<Omit<AntdSelectProps<any, import('rc-select/lib/Select').DefaultOptionType>, "mode" | "options"> & {
41
+ export declare const Select: import('react').ForwardRefExoticComponent<Omit<AntdSelectProps<any, import('rc-select/lib/Select').DefaultOptionType>, "mode" | "options"> & {
43
42
  dataId?: string;
44
43
  defaultValues?: any[];
45
44
  pageSize?: number;
@@ -52,7 +51,7 @@ export declare const Select: import('react').ForwardRefExoticComponent<Omit<Omit
52
51
  handleButtonSelectAll?: (values: any[]) => void;
53
52
  handleClearAll?: () => void;
54
53
  mode?: "multiple" | "single";
55
- }, "dataId"> & Partial<{
54
+ } & {
56
55
  dataId?: string;
57
- }> & import('react').RefAttributes<unknown>>;
56
+ } & import('react').RefAttributes<unknown>>;
58
57
  export {};
@@ -1,5 +1,4 @@
1
1
  import { DefaultOptionType } from 'antd/es/select';
2
-
3
2
  export declare const regExpWithoutAllCharacter: (input: string) => RegExp;
4
3
  export declare const regExpWithSubstringsWithAllCharacter: (string: string) => RegExp;
5
4
  export declare const regExpWith2Substrings: (initialString: string, finalString: string) => RegExp;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { SwitchChangeEventHandler, SwitchClickEventHandler, SwitchProps as AntdSwitchProps, SwitchSize } from 'antd/es/switch';
3
-
4
3
  export type SwitchProps = {
5
4
  disabled?: boolean;
6
5
  size?: SwitchSize;
@@ -8,12 +7,12 @@ export type SwitchProps = {
8
7
  onChange?: SwitchChangeEventHandler;
9
8
  onClick?: SwitchClickEventHandler;
10
9
  } & AntdSwitchProps;
11
- export declare const Switch: React.ForwardRefExoticComponent<Omit<{
10
+ export declare const Switch: React.ForwardRefExoticComponent<{
12
11
  disabled?: boolean;
13
12
  size?: SwitchSize;
14
13
  dataId?: string;
15
14
  onChange?: SwitchChangeEventHandler;
16
15
  onClick?: SwitchClickEventHandler;
17
- } & AntdSwitchProps, "dataId"> & Partial<{
16
+ } & AntdSwitchProps & {
18
17
  dataId?: string;
19
- }> & React.RefAttributes<unknown>>;
18
+ } & React.RefAttributes<unknown>>;
@@ -1,5 +1,4 @@
1
1
  import { Dayjs } from 'dayjs';
2
-
3
2
  export declare const getPreviousDate: (startDate: string, endDate: string) => [string, string];
4
3
  export declare const getSamePeriodLastYear: (startDate: string, endDate: string) => [string, string];
5
4
  export declare enum SelectedPeriodType {
@@ -1,16 +1,20 @@
1
1
  import { default as React } from 'react';
2
2
  import { TableProps as AntDTableProps } from 'antd';
3
- import { AnyObject } from 'antd/lib/table/Table';
4
-
5
- type TableProps = {
3
+ import { AnyObject } from 'antd/lib/_util/type';
4
+ export type TableProps<RecordType> = {
6
5
  isLoading?: boolean;
7
6
  isExpanded?: boolean;
8
7
  showError?: boolean;
9
8
  dataId?: string;
10
9
  errorContent?: React.ReactNode;
11
- };
12
- export declare const Table: <RecordType extends AnyObject>(props: AntDTableProps<RecordType> & TableProps) => import("react/jsx-runtime").JSX.Element;
13
- export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<Omit<AntDTableProps<RecordType> & TableProps, "dataId"> & Partial<{
10
+ } & AntDTableProps<RecordType>;
11
+ export declare const Table: <RecordType extends AnyObject>(props: TableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<{
13
+ isLoading?: boolean;
14
+ isExpanded?: boolean;
15
+ showError?: boolean;
16
+ dataId?: string;
17
+ errorContent?: React.ReactNode;
18
+ } & AntDTableProps<RecordType> & {
14
19
  dataId?: string;
15
- }> & React.RefAttributes<unknown>>;
16
- export {};
20
+ } & React.RefAttributes<unknown>>;
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TabsProps as TabsPropsAntDesign, TabPaneProps } from 'antd';
3
-
4
3
  export declare enum TabsVariant {
5
4
  DEFAULT = "default",
6
5
  SCROLLABLE = "scrollable"
@@ -1,5 +1,4 @@
1
1
  import { default as React, HTMLAttributes } from 'react';
2
-
3
2
  export type TagProps = {
4
3
  dataId?: string;
5
4
  color?: string;
@@ -9,7 +8,7 @@ export type TagProps = {
9
8
  type?: 'normal' | 'rounded';
10
9
  variant?: 'primary' | 'outline';
11
10
  } & HTMLAttributes<HTMLDivElement>;
12
- export declare const Tag: React.ForwardRefExoticComponent<Omit<{
11
+ export declare const Tag: React.ForwardRefExoticComponent<{
13
12
  dataId?: string;
14
13
  color?: string;
15
14
  icon?: string;
@@ -17,6 +16,6 @@ export declare const Tag: React.ForwardRefExoticComponent<Omit<{
17
16
  onClose?: () => void;
18
17
  type?: "normal" | "rounded";
19
18
  variant?: "primary" | "outline";
20
- } & React.HTMLAttributes<HTMLDivElement>, "dataId"> & Partial<{
19
+ } & React.HTMLAttributes<HTMLDivElement> & {
21
20
  dataId?: string;
22
- }> & React.RefAttributes<unknown>>;
21
+ } & React.RefAttributes<unknown>>;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { TagProps } from '../index.ts';
3
-
4
3
  export declare const TagGroup: (props: {
5
4
  children: React.ReactElement<TagProps> | Array<React.ReactElement<TagProps>>;
6
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DefaultTheme } from 'styled-components';
3
-
4
3
  export declare const Theme: ({ children, options }: {
5
4
  children?: React.ReactNode;
6
5
  options?: DefaultTheme;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  type ToasterProps = {
4
3
  children: ReactNode;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ToastType } from '../index.ts';
3
-
4
3
  type ToasterContextType = {
5
4
  toast: ({ text, type }: {
6
5
  text: string;
@@ -1,6 +1,5 @@
1
1
  import { TooltipProps } from 'antd';
2
2
  import { TooltipPlacement } from 'antd/lib/tooltip';
3
-
4
3
  export type TooltipPropsExtended = TooltipProps & {
5
4
  position?: TooltipPlacement;
6
5
  };
@@ -1,5 +1,4 @@
1
1
  import { GlobalStyle, IsolatedGlobalStyle, UIComponentsStyle } from './utils/global';
2
2
  import { color as colors } from './utils/theme';
3
-
4
3
  export * from './components';
5
4
  export { GlobalStyle, IsolatedGlobalStyle, UIComponentsStyle, colors };
@@ -1,6 +1,5 @@
1
1
  import { Theme } from '../../utils/theme';
2
2
  import { ReactNode } from 'react';
3
-
4
3
  type StyledAlertProps = {
5
4
  $type: string;
6
5
  $description?: ReactNode;
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '../../utils/theme';
2
-
3
2
  export declare const getSpinnerWhite: () => import('styled-components').RuleSet<object>;
4
3
  export declare const getButtonBase: (theme: Theme) => import('styled-components').RuleSet<object>;
5
4
  type ButtonSizeProps = {
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '../../utils/theme';
2
-
3
2
  export declare const getHorizontal: () => import('styled-components').RuleSet<object>;
4
3
  export declare const getTextTruncate: () => import('styled-components').RuleSet<object>;
5
4
  type StyledCardProps = {
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '../../utils/theme';
2
-
3
2
  type StyledTagSelectedProps = {
4
3
  theme: Theme;
5
4
  $closable: boolean;
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '../../utils/theme';
2
-
3
2
  type StyledCellProps = {
4
3
  $direction?: string;
5
4
  $xs?: number;
@@ -1,8 +1,7 @@
1
1
  import { SketchPicker } from 'react-color';
2
2
  import { Theme } from '../../utils/theme';
3
-
4
3
  declare const StyledColorPickerLayout: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- declare const StyledColorPickerInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<Omit<Omit<{
4
+ declare const StyledColorPickerInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<Omit<{
6
5
  placeholder?: string;
7
6
  id?: string;
8
7
  icon?: string;
@@ -14,11 +13,11 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
14
13
  name?: string;
15
14
  disabled?: boolean;
16
15
  dataId?: string;
17
- } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>, "dataId"> & Partial<{
16
+ } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
18
17
  dataId?: string;
19
- }>, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
18
+ }, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
20
19
  ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
21
- }, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<Omit<{
20
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<{
22
21
  placeholder?: string;
23
22
  id?: string;
24
23
  icon?: string;
@@ -30,9 +29,9 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
30
29
  name?: string;
31
30
  disabled?: boolean;
32
31
  dataId?: string;
33
- } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>, "dataId"> & Partial<{
32
+ } & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
34
33
  dataId?: string;
35
- }>, "ref"> & import('react').RefAttributes<unknown>>, keyof import('react').Component<any, {}, any>>;
34
+ }, "ref"> & import('react').RefAttributes<unknown>>, keyof import('react').Component<any, {}, any>>;
36
35
  declare const StyledSpinnerColorPicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
37
36
  color?: string;
38
37
  size?: number;