kelt-ui-kit-react 1.7.1 → 1.7.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.
@@ -1 +1,4 @@
1
1
  export declare function FormatDate(date: Date, format: string): string;
2
+ export declare function LocalDateStringToUTC(dateStr: string): string;
3
+ export declare function localDateStartToUTC(dateStr: string): Date;
4
+ export declare function localDateEndToUTC(dateStr: string): Date;
@@ -0,0 +1,19 @@
1
+ import { FormInterface, FormValuesInterface } from '../../form/form.interface';
2
+ import { IconSizeEnum } from '../../icon/iconSize.enum';
3
+
4
+ export type ButtonActionsProps<T extends {
5
+ [key: string]: string | number | boolean | Date | string[];
6
+ }> = {
7
+ className?: string;
8
+ onClick?: (e: React.MouseEvent) => void;
9
+ title: string;
10
+ classIcon?: string;
11
+ sizeIcon?: IconSizeEnum;
12
+ dataForm: FormInterface[];
13
+ onChange?: (values: FormValuesInterface<T>) => void;
14
+ disabled?: boolean;
15
+ id?: string;
16
+ };
17
+ export declare const ButtonFilters: <T extends {
18
+ [key: string]: string | number | boolean | string[] | Date;
19
+ }>({ className, onClick, title, classIcon, sizeIcon, disabled, id, dataForm, onChange, }: ButtonActionsProps<T>) => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { ImageExist } from './_core/hooks/imageExist';
5
5
  export { isValidEAN13 } from './_core/hooks/isEAN13';
6
6
  export { objectToQueryParams } from './_core/hooks/objectToQueryParams';
7
7
  export { useCurrency } from './_core/hooks/useCurrency';
8
- export { FormatDate } from './_core/hooks/useDateutils';
8
+ export { FormatDate, localDateEndToUTC, localDateStartToUTC, LocalDateStringToUTC, } from './_core/hooks/useDateutils';
9
9
  export { useIsMobile } from './_core/hooks/useIsMobile';
10
10
  export { useToken } from './_core/hooks/useToken';
11
11
  export { useValidate } from './_core/hooks/useValidate';
@@ -15,6 +15,7 @@ export { Badge } from './badge/Badge';
15
15
  export { Button } from './button/Button';
16
16
  export { ButtonActions } from './button/buttonActions/ButtonActions';
17
17
  export { ButtonFile } from './button/buttonFile/ButtonFile';
18
+ export { ButtonFilters } from './button/buttonFilters/ButtonFilters';
18
19
  export { Card } from './card/Card';
19
20
  export { Carousel } from './carousel/Carousel';
20
21
  export { Damier } from './damier/Damier';