@cagatayfdn/flora-components 0.0.25 → 0.0.27

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.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  import { AxiosError } from 'axios';
4
4
  import { ChartProps } from 'react-chartjs-2';
5
5
  import { CustomLocale } from 'flatpickr/dist/types/locale';
6
+ import { DateLimit } from 'flatpickr/dist/types/options';
7
+ import { DateOption } from 'flatpickr/dist/types/options';
6
8
  import { Dispatch as Dispatch_2 } from 'react';
7
9
  import { FC } from 'react';
8
10
  import { FieldError } from 'react-hook-form';
@@ -18,6 +20,7 @@ import { ReactNode } from 'react';
18
20
  import { SelectItemRenderer } from 'react-dropdown-select';
19
21
  import { SetStateAction } from 'react';
20
22
  import { TFunction } from 'i18next';
23
+ import { TFunctionResult } from 'i18next';
21
24
 
22
25
  export declare const Accordion: ({ children, className, }: AccordionProps) => JSX.Element;
23
26
 
@@ -269,6 +272,21 @@ declare type ConfirmProps = {
269
272
  cancelBtnText?: string;
270
273
  };
271
274
 
275
+ export declare const ContentHeader: (props: ContentHeaderProps) => JSX_2.Element;
276
+
277
+ declare type ContentHeaderProps = {
278
+ title?: string | ReactNode | TFunctionResult;
279
+ leftComponent?: ReactNode;
280
+ rightClassName?: string;
281
+ leftClassName?: string;
282
+ titleWrapperClassName?: string;
283
+ titleClassName?: string;
284
+ description?: string;
285
+ component?: ReactNode;
286
+ isActiveBorder?: boolean;
287
+ isLoading?: boolean;
288
+ };
289
+
272
290
  export declare const ContentLoader: () => JSX.Element;
273
291
 
274
292
  export declare enum CopyTextStatusEnum {
@@ -288,6 +306,21 @@ declare type CustomItemProps = {
288
306
  item: OptionProps;
289
307
  };
290
308
 
309
+ export declare const Datepicker: React_2.ForwardRefExoticComponent<{
310
+ format?: string | undefined;
311
+ mode?: "time" | "range" | "single" | "multiple" | "datetime" | undefined;
312
+ hasShortFormat?: boolean | undefined;
313
+ isFormGroup?: boolean | undefined;
314
+ minDate?: string | Date | undefined;
315
+ maxDate?: string | Date | undefined;
316
+ time?: boolean | undefined;
317
+ value?: any;
318
+ disable?: any;
319
+ enable?: DateLimit<DateOption>[] | undefined;
320
+ onChange?: ((s: any) => void) | undefined;
321
+ onClose?: ((s: any) => void) | undefined;
322
+ } & Omit<InputProps, "onChange" | "value"> & React_2.RefAttributes<HTMLDivElement>>;
323
+
291
324
  declare type Dispatch = React_2.Dispatch<Actiontype>;
292
325
 
293
326
  export declare enum DividerAppearance {