@cagatayfdn/flora-components 0.0.2 → 0.0.4

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
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { CustomLocale } from 'flatpickr/dist/types/locale';
4
+ import { FC } from 'react';
4
5
  import i18n from 'i18next';
6
+ import { LinkProps } from 'react-router-dom';
5
7
  import { MouseEvent as MouseEvent_2 } from 'react';
8
+ import NiceModal from '@ebay/nice-modal-react';
9
+ import { NiceModalHocProps } from '@ebay/nice-modal-react';
6
10
  import { ReactNode } from 'react';
7
11
  import { TFunction } from 'i18next';
8
12
 
@@ -105,6 +109,21 @@ declare type ColumnProps = {
105
109
  className?: string;
106
110
  };
107
111
 
112
+ export declare const Confirm: FC<ConfirmProps & NiceModalHocProps>;
113
+
114
+ declare type ConfirmProps = {
115
+ id: string;
116
+ onClose?: () => void;
117
+ okBtnCallback: () => void;
118
+ description: ReactNode;
119
+ descriptionClassName?: string;
120
+ isLoading?: boolean;
121
+ appearence?: ThemeAppearance;
122
+ title?: string;
123
+ okBtnText?: string;
124
+ cancelBtnText?: string;
125
+ };
126
+
108
127
  export declare enum CopyTextStatusEnum {
109
128
  SUCCESS = "success",
110
129
  ERROR = "error"
@@ -227,11 +246,31 @@ declare type LoadingProps = {
227
246
  layer?: boolean;
228
247
  };
229
248
 
249
+ export declare const Modal: (props: ModalProps) => JSX.Element;
250
+
230
251
  export declare enum ModalAppearanceType {
231
252
  DEFAULT = "default",
232
253
  SUCCESS = "success"
233
254
  }
234
255
 
256
+ declare type ModalEvents = {
257
+ onClose: () => void;
258
+ };
259
+
260
+ declare type ModalProps = {
261
+ children: ReactNode;
262
+ visible?: boolean;
263
+ title?: string;
264
+ header?: ReactNode;
265
+ headerClass?: any;
266
+ descriptionClass?: any;
267
+ description?: string;
268
+ className?: string;
269
+ appearance?: ThemeAppearance;
270
+ } & ModalEvents;
271
+
272
+ export { NiceModal }
273
+
235
274
  export declare enum NotificationAppearanceType {
236
275
  INFO = "info",
237
276
  SUCCESS = "success",
@@ -293,6 +332,26 @@ export declare enum StatusType {
293
332
  REJECTED = "rejected"
294
333
  }
295
334
 
335
+ export declare const Stepper: ({ items, selected, selectAll, renderAnchor, onChange, wrapperClass, }: StepperProps) => JSX.Element;
336
+
337
+ declare type StepperItemProps = {
338
+ title: string | any;
339
+ customIndexItem?: any;
340
+ activeClass?: any;
341
+ completeClass?: any;
342
+ to?: LinkProps['to'];
343
+ };
344
+
345
+ declare type StepperProps = {
346
+ items: StepperItemProps[];
347
+ selected?: number;
348
+ selectAll?: boolean;
349
+ renderAnchor?: boolean;
350
+ className?: string;
351
+ wrapperClass?: string;
352
+ onChange?: (index: number, event?: any) => void;
353
+ };
354
+
296
355
  export declare const t: TFunction;
297
356
 
298
357
  export declare enum ThemeAppearance {