@cagatayfdn/flora-components 0.0.50 → 0.0.51

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
@@ -27,7 +27,7 @@ export declare const Accordion: ({ children, className, }: AccordionProps) => JS
27
27
 
28
28
  export declare const AccordionItem: ({ children, title, isVisible, className, onClick, customItemRenderer, }: AccordionItemProps) => JSX.Element;
29
29
 
30
- declare type AccordionItemProps = {
30
+ export declare type AccordionItemProps = {
31
31
  title?: ReactNode;
32
32
  children: ReactNode;
33
33
  customItemRenderer?: (isOpen: boolean) => ReactNode;
@@ -43,13 +43,13 @@ declare type AccordionProps = {
43
43
 
44
44
  export declare function ActionButton({ items }: ActionButtonProps): JSX_2.Element;
45
45
 
46
- declare type ActionButtonItems = {
46
+ export declare type ActionButtonItems = {
47
47
  text: string;
48
48
  icon: Icons;
49
49
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
50
50
  };
51
51
 
52
- declare type ActionButtonProps = {
52
+ export declare type ActionButtonProps = {
53
53
  items: ActionButtonItems[];
54
54
  };
55
55
 
@@ -83,6 +83,12 @@ declare type AlertCardProps = {
83
83
  onClose?: () => void;
84
84
  };
85
85
 
86
+ export declare type AnchorProps = {
87
+ index: number;
88
+ title: string;
89
+ customIndexItem?: any;
90
+ };
91
+
86
92
  export declare enum AppAndServicesStatusApperenceType {
87
93
  ADDONS_INITIALIZING = "addons_initializing",
88
94
  ADDONS_ADDONS_INITILIZATION_FAILED = "addons_initialization_failed",
@@ -160,7 +166,7 @@ export declare const AuthProvider: (props: {
160
166
 
161
167
  export declare const Autocomplete: (props: AutocompleteProps) => JSX.Element;
162
168
 
163
- declare type AutocompleteProps = {
169
+ export declare type AutocompleteProps = {
164
170
  items: OptionItem[];
165
171
  } & InputProps;
166
172
 
@@ -173,6 +179,12 @@ declare type BarProps = {
173
179
  data: BarChartProps['data'];
174
180
  };
175
181
 
182
+ export declare type BreadcrumbProps = {
183
+ name: string;
184
+ route: string;
185
+ state?: any;
186
+ };
187
+
176
188
  export declare const Button: ({ children, size, isLoading, isDisabled, isBlock, noBorder, noBackground, round, isSolid, type, className, prefixIcon, appearance, onClick, }: ButtonProps) => JSX.Element;
177
189
 
178
190
  declare type ButtonProps = {
@@ -203,7 +215,7 @@ declare type CanProps = {
203
215
 
204
216
  export declare const Card: (props: CardProps) => JSX.Element;
205
217
 
206
- declare type CardProps = {
218
+ export declare type CardProps = {
207
219
  children?: ReactNode;
208
220
  icon?: Icons;
209
221
  bgColor?: string;
@@ -230,9 +242,33 @@ export declare const Checkbox: React_2.ForwardRefExoticComponent<{
230
242
  isInline?: boolean | undefined;
231
243
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, "onClick" | "onChange" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
232
244
 
245
+ export declare type CheckboxProps = {
246
+ id?: string;
247
+ label?: string;
248
+ labelAppearance?: FormFieldAppearance;
249
+ className?: string;
250
+ wrapperClassName?: string;
251
+ checked?: boolean;
252
+ isInline?: boolean;
253
+ } & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onClick'>;
254
+
255
+ export declare const CLIENT_DATE_AND_TIME_FORMAT = "DD MMMM YYYY HH:mm";
256
+
257
+ export declare const CLIENT_DATE_AND_TIME_SHORT_FORMAT = "DD MMM YY HH:mm";
258
+
259
+ export declare const CLIENT_DATE_COMPARE_FORMAT = "DD-MM-YYYY";
260
+
261
+ export declare const CLIENT_DATE_FILTER_FORMAT = "YYYY-MM-DD";
262
+
263
+ export declare const CLIENT_DATE_SHORT_FORMAT = "DD MMM YYYY";
264
+
265
+ export declare const CLIENT_TIME_FORMAT = "HH:mm";
266
+
267
+ export declare const CLIENT_TIME_FORMAT_PICKER = "H:i";
268
+
233
269
  export declare const Column: ({ children, auto, size, sm, md, lg, xl, className, }: ColumnProps) => JSX.Element;
234
270
 
235
- declare type ColumnProps = {
271
+ export declare type ColumnProps = {
236
272
  children: ReactNode;
237
273
  auto?: boolean;
238
274
  size?: number;
@@ -243,7 +279,7 @@ declare type ColumnProps = {
243
279
  className?: string;
244
280
  };
245
281
 
246
- declare type ColumnsType = {
282
+ export declare type ColumnsType = {
247
283
  title: ReactNode;
248
284
  dataIndex: string;
249
285
  key?: string;
@@ -256,11 +292,16 @@ declare type ColumnsType = {
256
292
  render?: (property: any, row: any) => void;
257
293
  };
258
294
 
259
- export declare function Config({ config, scrollProps }: Props): JSX_2.Element;
295
+ export declare function Config({ config, scrollProps }: ConfigProps): JSX_2.Element;
296
+
297
+ export declare type ConfigProps = {
298
+ config: ProjectAppAddon['config'];
299
+ scrollProps?: Omit<React_2.ComponentProps<typeof ScrollContainer>, 'children'>;
300
+ };
260
301
 
261
302
  export declare const Confirm: FC<ConfirmProps & NiceModalHocProps>;
262
303
 
263
- declare type ConfirmProps = {
304
+ export declare type ConfirmProps = {
264
305
  id: string;
265
306
  onClose?: () => void;
266
307
  okBtnCallback: () => void;
@@ -275,7 +316,7 @@ declare type ConfirmProps = {
275
316
 
276
317
  export declare const ContentHeader: (props: ContentHeaderProps) => JSX_2.Element;
277
318
 
278
- declare type ContentHeaderProps = {
319
+ export declare type ContentHeaderProps = {
279
320
  title?: string | ReactNode | TFunctionResult;
280
321
  leftComponent?: ReactNode;
281
322
  rightClassName?: string;
@@ -297,16 +338,34 @@ export declare enum CopyTextStatusEnum {
297
338
 
298
339
  export declare function Countdown({ seconds, reset, onEnd }: CountdownProps): JSX_2.Element;
299
340
 
300
- declare type CountdownProps = {
341
+ export declare type CountdownProps = {
301
342
  seconds: number;
302
343
  reset?: any;
303
344
  onEnd?: () => void;
304
345
  };
305
346
 
306
- declare type CustomItemProps = {
347
+ export declare type CustomItemProps = {
307
348
  item: OptionProps;
308
349
  };
309
350
 
351
+ export declare type CustomLinkProps = {
352
+ to: LinkProps['to'];
353
+ } & AnchorProps;
354
+
355
+ export declare const DateFormats: {
356
+ SERVER_DATE_FORMAT: string;
357
+ SERVER_DATE_AND_TIME_FORMAT: string;
358
+ CLIENT_DATE_SHORT_FORMAT: string;
359
+ CLIENT_DATE_COMPARE_FORMAT: string;
360
+ CLIENT_DATE_AND_TIME_FORMAT: string;
361
+ CLIENT_DATE_AND_TIME_SHORT_FORMAT: string;
362
+ CLIENT_DATE_FILTER_FORMAT: string;
363
+ CLIENT_TIME_FORMAT_PICKER: string;
364
+ CLIENT_TIME_FORMAT: string;
365
+ MIN_DATE_TODAY: Date;
366
+ MIN_DATE_TOMORROW: Date;
367
+ };
368
+
310
369
  export declare const Datepicker: React_2.ForwardRefExoticComponent<{
311
370
  format?: string | undefined;
312
371
  mode?: "time" | "range" | "single" | "multiple" | "datetime" | undefined;
@@ -322,6 +381,21 @@ export declare const Datepicker: React_2.ForwardRefExoticComponent<{
322
381
  onClose?: ((s: any) => void) | undefined;
323
382
  } & Omit<InputProps, "onChange" | "value"> & React_2.RefAttributes<HTMLDivElement>>;
324
383
 
384
+ export declare type DatepickerProps = {
385
+ format?: string;
386
+ mode?: 'single' | 'multiple' | 'range' | 'time' | 'datetime';
387
+ hasShortFormat?: boolean;
388
+ isFormGroup?: boolean;
389
+ minDate?: string | Date;
390
+ maxDate?: string | Date;
391
+ time?: boolean;
392
+ value?: any;
393
+ disable?: any;
394
+ enable?: DateLimit<DateOption>[];
395
+ onChange?: (s: any) => void;
396
+ onClose?: (s: any) => void;
397
+ } & Omit<InputProps, 'onChange' | 'value'>;
398
+
325
399
  export { dayjs }
326
400
 
327
401
  declare type Dispatch = React_2.Dispatch<Actiontype>;
@@ -333,13 +407,13 @@ export declare enum DividerAppearance {
333
407
  GREY = "grey"
334
408
  }
335
409
 
336
- declare type DividerProps = {
410
+ export declare type DividerProps = {
337
411
  appearance?: DividerAppearance;
338
412
  className?: string;
339
413
  margin?: string;
340
414
  };
341
415
 
342
- declare type DropdownItemType = {
416
+ export declare type DropdownItemType = {
343
417
  text: string;
344
418
  to?: string;
345
419
  icon?: Icons;
@@ -350,7 +424,7 @@ declare type DropdownItemType = {
350
424
 
351
425
  export declare const DropdownList: ({ buttonChild, items, footerItem, className, title, titleClass, event, size, isDisabled, }: DropdownListProps) => JSX.Element;
352
426
 
353
- declare type DropdownListProps = {
427
+ export declare type DropdownListProps = {
354
428
  buttonChild: ReactNode;
355
429
  footerItem?: ReactNode;
356
430
  items: DropdownItemType[];
@@ -402,6 +476,25 @@ export declare const FileUploadLengthCard: ({ count, onCardClick }: LengthCardPr
402
476
 
403
477
  export declare const FileUploadPreviewModal: ({ imagePaths, onClose, onDelete }: PreviewModalProps) => JSX_2.Element;
404
478
 
479
+ export declare type FileUploadProps = {
480
+ type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
481
+ id?: string;
482
+ info?: string;
483
+ accept?: 'image/png, image/jpeg';
484
+ size?: Size;
485
+ multiple?: boolean;
486
+ className?: string;
487
+ appearance?: FormFieldAppearance;
488
+ height?: '40' | '80';
489
+ autoComplete?: string;
490
+ wrapperClassName?: string;
491
+ description?: string;
492
+ value?: any;
493
+ fileName?: string;
494
+ required?: boolean;
495
+ onChange?: (event: any) => void;
496
+ } & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
497
+
405
498
  declare interface FormElementProps {
406
499
  name: string;
407
500
  placeholder?: string;
@@ -420,6 +513,8 @@ export declare enum FormFieldAppearance {
420
513
  MORE_DARK = "more_dark"
421
514
  }
422
515
 
516
+ export declare const friendlyDate: (v: any, mode?: "single" | "multiple" | "range" | "time" | "datetime", shortFormat?: boolean) => any;
517
+
423
518
  export declare const getAuth: ({ permType, user, permItem }: GetAuthProps) => boolean;
424
519
 
425
520
  declare type GetAuthProps = {
@@ -439,7 +534,7 @@ declare type HashMap<K extends string | number, V> = {
439
534
 
440
535
  export declare const Heading: React_2.FC<HeadingProps>;
441
536
 
442
- declare type HeadingProps = {
537
+ export declare type HeadingProps = {
443
538
  level?: number;
444
539
  className?: string;
445
540
  children: React_2.ReactNode;
@@ -449,7 +544,7 @@ export { i18n }
449
544
 
450
545
  export declare const Icon: (props: IconProps) => JSX.Element;
451
546
 
452
- declare type IconProps = {
547
+ export declare type IconProps = {
453
548
  id?: string;
454
549
  name: IconsId;
455
550
  isDisabled?: boolean;
@@ -518,14 +613,14 @@ declare enum Icons {
518
613
 
519
614
  declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'fileTextOutlined' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
520
615
 
521
- declare type ImagePreviewProps = {
616
+ export declare type ImagePreviewProps = {
522
617
  onClose: () => void;
523
618
  src: string;
524
619
  };
525
620
 
526
621
  export declare function InfiniteScroll({ children, hasMore, height, loadMore, treshold, }: InfiniteScrollProps): JSX.Element;
527
622
 
528
- declare interface InfiniteScrollProps {
623
+ export declare interface InfiniteScrollProps {
529
624
  className?: string;
530
625
  children?: React.ReactNode;
531
626
  height?: number;
@@ -536,14 +631,14 @@ declare interface InfiniteScrollProps {
536
631
 
537
632
  export declare const InfoBoxList: ({ items, isLoading, className, }: InfoBoxListProps) => JSX.Element;
538
633
 
539
- declare type InfoBoxListItem = {
634
+ export declare type InfoBoxListItem = {
540
635
  label: string;
541
636
  value: ReactNode;
542
637
  copy?: boolean;
543
638
  className?: string;
544
639
  };
545
640
 
546
- declare type InfoBoxListProps = {
641
+ export declare type InfoBoxListProps = {
547
642
  items: InfoBoxListItem[];
548
643
  isLoading?: boolean;
549
644
  className?: string;
@@ -551,7 +646,7 @@ declare type InfoBoxListProps = {
551
646
 
552
647
  export declare const InfoDate: (props: InfoDateProps) => JSX_2.Element;
553
648
 
554
- declare interface InfoDateProps {
649
+ export declare interface InfoDateProps {
555
650
  date: string | Date;
556
651
  time?: boolean;
557
652
  fromNow?: boolean | any;
@@ -559,7 +654,7 @@ declare interface InfoDateProps {
559
654
 
560
655
  export declare const InfoText: ({ text, className }: InfoTextProps) => JSX_2.Element;
561
656
 
562
- declare type InfoTextProps = {
657
+ export declare type InfoTextProps = {
563
658
  text: string;
564
659
  className?: string;
565
660
  };
@@ -585,7 +680,7 @@ export declare const Input: React_2.ForwardRefExoticComponent<{
585
680
  textFillColor?: string | undefined;
586
681
  } & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLInputElement>, "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave"> & React_2.RefAttributes<HTMLInputElement>>;
587
682
 
588
- declare type InputProps = {
683
+ export declare type InputProps = {
589
684
  type?: 'text' | 'url' | 'number' | 'tel' | 'password' | 'email' | 'search' | 'hidden';
590
685
  prefix?: ReactNode;
591
686
  suffix?: ReactNode;
@@ -613,14 +708,14 @@ export declare enum isActiveColor {
613
708
 
614
709
  export declare const Label: (props: LabelProps) => JSX.Element;
615
710
 
616
- declare type LabelProps = {
711
+ export declare type LabelProps = {
617
712
  children: ReactNode;
618
713
  name?: string;
619
714
  className?: string;
620
715
  appearance?: FormFieldAppearance;
621
716
  };
622
717
 
623
- declare type LayoutProps = {
718
+ export declare type LayoutProps = {
624
719
  children: ReactNode;
625
720
  breadcrumbs: any[];
626
721
  className?: string;
@@ -634,7 +729,7 @@ declare type LegendsProps = {
634
729
  colorMap: Record<string, string>;
635
730
  };
636
731
 
637
- declare type LengthCardProps = {
732
+ export declare type LengthCardProps = {
638
733
  count: number;
639
734
  onCardClick: () => void;
640
735
  };
@@ -651,7 +746,7 @@ declare type LineProps = {
651
746
 
652
747
  export declare const Loading: ({ className, appearance, layer, wrapperClass, }: LoadingProps) => JSX.Element;
653
748
 
654
- declare type LoadingProps = {
749
+ export declare type LoadingProps = {
655
750
  className?: string;
656
751
  wrapperClass?: string;
657
752
  appearance?: AppearanceSpinner;
@@ -664,13 +759,17 @@ declare type MappedObjectPermission_2 = HashMap<PermissionsType_2, number[]>
664
759
 
665
760
  export declare const MenuItem: ({ icon, title, to, visibleTooltip, }: MenuItemProps) => JSX.Element;
666
761
 
667
- declare type MenuItemProps = {
762
+ export declare type MenuItemProps = {
668
763
  title: string;
669
764
  visibleTooltip: boolean;
670
765
  to?: string;
671
766
  icon?: IconsId;
672
767
  };
673
768
 
769
+ export declare const MIN_DATE_TODAY: Date;
770
+
771
+ export declare const MIN_DATE_TOMORROW: Date;
772
+
674
773
  export declare const Modal: (props: ModalProps) => JSX.Element;
675
774
 
676
775
  export declare enum ModalAppearanceType {
@@ -678,11 +777,11 @@ export declare enum ModalAppearanceType {
678
777
  SUCCESS = "success"
679
778
  }
680
779
 
681
- declare type ModalEvents = {
780
+ export declare type ModalEvents = {
682
781
  onClose: () => void;
683
782
  };
684
783
 
685
- declare type ModalProps = {
784
+ export declare type ModalProps = {
686
785
  children: ReactNode;
687
786
  visible?: boolean;
688
787
  title?: string;
@@ -694,7 +793,18 @@ declare type ModalProps = {
694
793
  appearance?: ThemeAppearance;
695
794
  } & ModalEvents;
696
795
 
697
- export declare const NavigatorCard: (props: Props_2) => JSX_2.Element;
796
+ export declare const NavigatorCard: (props: NavigatorCardProps) => JSX_2.Element;
797
+
798
+ export declare type NavigatorCardProps = {
799
+ id: number;
800
+ to: string;
801
+ title: string;
802
+ content: string | Date;
803
+ icon?: any;
804
+ iconClassName?: string;
805
+ serviceCount: number | string;
806
+ appCount: number | string;
807
+ };
698
808
 
699
809
  export { NiceModal }
700
810
 
@@ -711,7 +821,7 @@ export declare enum NotificationAppearanceType {
711
821
  LOADING = "loading"
712
822
  }
713
823
 
714
- declare type NotificationProps = {
824
+ export declare type NotificationProps = {
715
825
  message: string | ReactNode;
716
826
  type: NotificationAppearanceType;
717
827
  closeTime?: number;
@@ -724,13 +834,13 @@ declare interface OptionItem {
724
834
  rest?: any;
725
835
  }
726
836
 
727
- declare interface OptionProps extends OptionItem {
837
+ export declare interface OptionProps extends OptionItem {
728
838
  name?: string;
729
839
  }
730
840
 
731
841
  export declare const Pager: (props: PagerProps) => JSX.Element;
732
842
 
733
- declare type PagerProps = {
843
+ export declare type PagerProps = {
734
844
  totalCount: number;
735
845
  currentPage?: number;
736
846
  pageSize?: number;
@@ -743,7 +853,7 @@ export declare const PageWrapper: (props: LayoutProps) => JSX.Element;
743
853
 
744
854
  export declare const Panel: ({ title, children, description, className, type, appearance, headerDescription, headerRightChild, headerClass, hasBorder, bodyClass, }: PanelProps) => JSX.Element;
745
855
 
746
- declare type PanelProps = {
856
+ export declare type PanelProps = {
747
857
  children: ReactNode;
748
858
  title?: ReactNode;
749
859
  description?: string;
@@ -759,7 +869,7 @@ declare type PanelProps = {
759
869
 
760
870
  export declare const PermaLink: React_2.FC<PermalinkProps>;
761
871
 
762
- declare type PermalinkProps = {
872
+ export declare type PermalinkProps = {
763
873
  to: string;
764
874
  params?: Record<string, any>;
765
875
  activeClassName?: string;
@@ -773,7 +883,7 @@ declare type PermalinkProps = {
773
883
 
774
884
  export declare const PermFallBack: () => JSX_2.Element;
775
885
 
776
- export declare function Permission(props: Props_3): JSX_2.Element;
886
+ export declare function Permission(props: Props): JSX_2.Element;
777
887
 
778
888
  declare interface Permissions_2 {
779
889
  default: boolean;
@@ -942,7 +1052,7 @@ export declare enum PodStatusEnum {
942
1052
  EVICTED = "Evicted"
943
1053
  }
944
1054
 
945
- declare type PreviewModalProps = {
1055
+ export declare type PreviewModalProps = {
946
1056
  imagePaths: string[];
947
1057
  onClose: () => void;
948
1058
  onPreview?: () => void;
@@ -989,22 +1099,6 @@ declare enum ProjectAppAddonTypeSlugs {
989
1099
  }
990
1100
 
991
1101
  declare type Props = {
992
- config: ProjectAppAddon['config'];
993
- scrollProps?: Omit<React_2.ComponentProps<typeof ScrollContainer>, 'children'>;
994
- };
995
-
996
- declare type Props_2 = {
997
- id: number;
998
- to: string;
999
- title: string;
1000
- content: string | Date;
1001
- icon?: any;
1002
- iconClassName?: string;
1003
- serviceCount: number | string;
1004
- appCount: number | string;
1005
- };
1006
-
1007
- declare type Props_3 = {
1008
1102
  id: string;
1009
1103
  tooltipText?: string;
1010
1104
  } & CanProps;
@@ -1019,7 +1113,7 @@ export declare const Radio: ({ name, label, isDisabled, checked, isInline, onCha
1019
1113
 
1020
1114
  export declare const RadioList: ({ name, items, value, label, isInline, setContext, error, className, ...restProps }: RadioListProps) => JSX.Element;
1021
1115
 
1022
- declare type RadioListProps = {
1116
+ export declare type RadioListProps = {
1023
1117
  name: string;
1024
1118
  label?: string;
1025
1119
  className?: string;
@@ -1036,7 +1130,7 @@ declare interface RadioOptionItem extends OptionItem {
1036
1130
  suffixBtn?: ReactNode;
1037
1131
  }
1038
1132
 
1039
- declare type RadioProps = {
1133
+ export declare type RadioProps = {
1040
1134
  id?: string;
1041
1135
  className?: string;
1042
1136
  checked?: boolean;
@@ -1054,7 +1148,7 @@ export declare enum ReportStatus {
1054
1148
 
1055
1149
  export declare const ResultError: ({ title, text, image, buttonText, onClick, }: ResultErrorProps) => JSX.Element;
1056
1150
 
1057
- declare type ResultErrorProps = {
1151
+ export declare type ResultErrorProps = {
1058
1152
  title: string;
1059
1153
  text: string;
1060
1154
  image: string;
@@ -1082,14 +1176,14 @@ declare interface Role_2 {
1082
1176
 
1083
1177
  export declare const Row: ({ children, className }: RowProps) => JSX.Element;
1084
1178
 
1085
- declare type RowProps = {
1179
+ export declare type RowProps = {
1086
1180
  children: ReactNode;
1087
1181
  className?: string;
1088
1182
  };
1089
1183
 
1090
1184
  export declare const ScrollContainer: ({ children, maxHeight, height, className, }: ScrollContainerProps) => JSX.Element;
1091
1185
 
1092
- declare type ScrollContainerProps = {
1186
+ export declare type ScrollContainerProps = {
1093
1187
  children: ReactNode;
1094
1188
  maxHeight?: number;
1095
1189
  height?: string | number;
@@ -1101,7 +1195,7 @@ export declare const Select: {
1101
1195
  displayName: string;
1102
1196
  };
1103
1197
 
1104
- declare type SelectProps = {
1198
+ export declare type SelectProps = {
1105
1199
  id?: string;
1106
1200
  items?: OptionProps[];
1107
1201
  itemPrefix?: string;
@@ -1132,6 +1226,10 @@ declare type SelectProps = {
1132
1226
  isRadius?: boolean;
1133
1227
  } & Omit<FormElementProps, 'value'>;
1134
1228
 
1229
+ export declare const SERVER_DATE_AND_TIME_FORMAT = "YYYY-MM-DD HH:mm";
1230
+
1231
+ export declare const SERVER_DATE_FORMAT = "YYYY-MM-DD";
1232
+
1135
1233
  export declare const Sidebar: ({ collapsed, items, className, isActiveSubMenu, }: SidebarProps) => JSX.Element;
1136
1234
 
1137
1235
  declare type SidebarChildItemType = {
@@ -1142,12 +1240,12 @@ declare type SidebarChildItemType = {
1142
1240
  onClick?: () => void;
1143
1241
  };
1144
1242
 
1145
- declare type SidebarItemType = {
1243
+ export declare type SidebarItemType = {
1146
1244
  icon?: Icons;
1147
1245
  children?: SidebarChildItemType[];
1148
1246
  } & SidebarChildItemType;
1149
1247
 
1150
- declare type SidebarProps = {
1248
+ export declare type SidebarProps = {
1151
1249
  collapsed?: boolean;
1152
1250
  className?: string;
1153
1251
  items: SidebarItemType[];
@@ -1193,7 +1291,7 @@ export declare enum StatusType {
1193
1291
 
1194
1292
  export declare const StatusTypography: (props: StatusTypographyProps) => JSX_2.Element;
1195
1293
 
1196
- declare type StatusTypographyProps = {
1294
+ export declare type StatusTypographyProps = {
1197
1295
  text: any;
1198
1296
  type?: AppAndServicesStatusApperenceType;
1199
1297
  extra?: string;
@@ -1204,7 +1302,7 @@ declare type StatusTypographyProps = {
1204
1302
 
1205
1303
  export declare const Stepper: ({ items, selected, selectAll, renderAnchor, onChange, wrapperClass, }: StepperProps) => JSX.Element;
1206
1304
 
1207
- declare type StepperItemProps = {
1305
+ export declare type StepperItemProps = {
1208
1306
  title: string | any;
1209
1307
  customIndexItem?: any;
1210
1308
  activeClass?: any;
@@ -1212,7 +1310,7 @@ declare type StepperItemProps = {
1212
1310
  to?: LinkProps['to'];
1213
1311
  };
1214
1312
 
1215
- declare type StepperProps = {
1313
+ export declare type StepperProps = {
1216
1314
  items: StepperItemProps[];
1217
1315
  selected?: number;
1218
1316
  selectAll?: boolean;
@@ -1234,11 +1332,23 @@ export declare const Switch: React_2.ForwardRefExoticComponent<{
1234
1332
  unCheckedChildren?: string | undefined;
1235
1333
  } & Omit<FormElementProps, "value"> & Pick<EventProps<HTMLInputElement>, "onClick" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
1236
1334
 
1335
+ export declare type SwitchProps = {
1336
+ name: string;
1337
+ label?: string;
1338
+ checked?: boolean;
1339
+ className?: string;
1340
+ value?: any;
1341
+ onChange?: (value: boolean) => void;
1342
+ onLabelClick?: (value: boolean) => void;
1343
+ checkedChildren?: string;
1344
+ unCheckedChildren?: string;
1345
+ } & Omit<FormElementProps, 'value'> & Pick<EventProps<HTMLInputElement>, 'onFocus' | 'onClick'>;
1346
+
1237
1347
  export declare const t: TFunction;
1238
1348
 
1239
1349
  export declare function Tab({ items, selected, onChange }: TabProps): JSX_2.Element;
1240
1350
 
1241
- declare type TabItemProps = {
1351
+ export declare type TabItemProps = {
1242
1352
  title: string;
1243
1353
  component: ReactNode | string;
1244
1354
  };
@@ -1247,7 +1357,7 @@ export declare const Table: (props: TableProps) => JSX.Element;
1247
1357
 
1248
1358
  export declare const TableHeader: ({ totalCount, currentPage, title, actionOnChange, className, pagerOnChange, pageSizeOnChange, pagerVisible, pageSizeVisible, pageSize, actionItems, pageSizeItems, headerLeftItem, customItem, appearance, showItemsText, }: TableHeaderProps) => JSX_2.Element;
1249
1359
 
1250
- declare type TableHeaderProps = {
1360
+ export declare type TableHeaderProps = {
1251
1361
  totalCount?: number;
1252
1362
  currentPage?: number;
1253
1363
  title?: string;
@@ -1266,7 +1376,7 @@ declare type TableHeaderProps = {
1266
1376
  showItemsText?: string;
1267
1377
  };
1268
1378
 
1269
- declare type TableProps = {
1379
+ export declare type TableProps = {
1270
1380
  columns: ColumnsType[];
1271
1381
  dataSource: any[];
1272
1382
  disabledItems?: any[];
@@ -1285,7 +1395,7 @@ declare type TableProps = {
1285
1395
  scrollClass?: string;
1286
1396
  } & TableHeaderProps;
1287
1397
 
1288
- declare type TabProps = {
1398
+ export declare type TabProps = {
1289
1399
  items: TabItemProps[];
1290
1400
  onChange: (index: number) => void;
1291
1401
  selected: number;
@@ -1305,6 +1415,20 @@ export declare const Textarea: React_2.ForwardRefExoticComponent<{
1305
1415
  required?: boolean | undefined;
1306
1416
  } & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLTextAreaElement>, "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave" | "readOnly"> & React_2.RefAttributes<HTMLTextAreaElement>>;
1307
1417
 
1418
+ export declare type TextareaProps = {
1419
+ id?: string;
1420
+ className?: string;
1421
+ wrapperClassName?: string;
1422
+ rows?: number;
1423
+ maxLength?: number;
1424
+ value?: any;
1425
+ size?: Size;
1426
+ readOnly?: boolean;
1427
+ appearance?: FormFieldAppearance;
1428
+ onChange?: (value: any) => void;
1429
+ required?: boolean;
1430
+ } & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLTextAreaElement>, 'readOnly' | 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave'>;
1431
+
1308
1432
  export declare enum ThemeAppearance {
1309
1433
  LIGHT = "light",
1310
1434
  DARK = "dark",
@@ -1313,7 +1437,7 @@ export declare enum ThemeAppearance {
1313
1437
 
1314
1438
  export declare const Tooltip: (props: TooltipProps) => JSX.Element;
1315
1439
 
1316
- declare type TooltipProps = {
1440
+ export declare type TooltipProps = {
1317
1441
  id: string;
1318
1442
  children: ReactNode;
1319
1443
  tooltipContent: ReactNode;
@@ -1327,7 +1451,7 @@ declare type TooltipProps = {
1327
1451
 
1328
1452
  export declare const TypographyText: (props: TypographyTextProps) => JSX.Element;
1329
1453
 
1330
- declare type TypographyTextProps = {
1454
+ export declare type TypographyTextProps = {
1331
1455
  children: string;
1332
1456
  id?: string;
1333
1457
  copyable?: boolean;
@@ -1391,7 +1515,7 @@ declare interface UserEntity_2 {
1391
1515
 
1392
1516
  export declare const ValidationError: ({ message }: ValidationErrorProps) => JSX.Element;
1393
1517
 
1394
- declare type ValidationErrorProps = {
1518
+ export declare type ValidationErrorProps = {
1395
1519
  message: string;
1396
1520
  };
1397
1521