@cagatayfdn/flora-components 0.0.29 → 0.0.31
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.cjs.js +40 -40
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +51 -0
- package/dist/index.es.js +8665 -7531
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +38 -38
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,31 @@ declare interface EventProps<T = HTMLElement> {
|
|
|
374
374
|
onInvalid?: (e: React.FormEvent<T>) => void;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
+
export declare const FileUpload: React_2.ForwardRefExoticComponent<{
|
|
378
|
+
type?: "number" | "email" | "search" | "text" | "password" | "url" | "tel" | "hidden" | undefined;
|
|
379
|
+
id?: string | undefined;
|
|
380
|
+
info?: string | undefined;
|
|
381
|
+
accept?: "image/png, image/jpeg" | undefined;
|
|
382
|
+
size?: Size | undefined;
|
|
383
|
+
multiple?: boolean | undefined;
|
|
384
|
+
className?: string | undefined;
|
|
385
|
+
appearance?: FormFieldAppearance | undefined;
|
|
386
|
+
height?: "40" | "80" | undefined;
|
|
387
|
+
autoComplete?: string | undefined;
|
|
388
|
+
wrapperClassName?: string | undefined;
|
|
389
|
+
description?: string | undefined;
|
|
390
|
+
value?: any;
|
|
391
|
+
fileName?: string | undefined;
|
|
392
|
+
required?: boolean | undefined;
|
|
393
|
+
onChange?: ((event: any) => void) | undefined;
|
|
394
|
+
} & Omit<FormElementProps, "value"> & Omit<EventProps<HTMLInputElement>, "onChange" | "onMouseDown" | "onMouseUp" | "onMouseEnter" | "onMouseLeave"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
395
|
+
|
|
396
|
+
export declare const FileUploadImagePreview: ({ onClose, src }: ImagePreviewProps) => JSX_2.Element;
|
|
397
|
+
|
|
398
|
+
export declare const FileUploadLengthCard: ({ count, onCardClick }: LengthCardProps) => JSX_2.Element;
|
|
399
|
+
|
|
400
|
+
export declare const FileUploadPreviewModal: ({ imagePaths, onClose, onDelete }: PreviewModalProps) => JSX_2.Element;
|
|
401
|
+
|
|
377
402
|
declare interface FormElementProps {
|
|
378
403
|
name: string;
|
|
379
404
|
placeholder?: string;
|
|
@@ -490,6 +515,11 @@ declare enum Icons {
|
|
|
490
515
|
|
|
491
516
|
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';
|
|
492
517
|
|
|
518
|
+
declare type ImagePreviewProps = {
|
|
519
|
+
onClose: () => void;
|
|
520
|
+
src: string;
|
|
521
|
+
};
|
|
522
|
+
|
|
493
523
|
export declare function InfiniteScroll({ children, hasMore, height, loadMore, treshold, }: InfiniteScrollProps): JSX.Element;
|
|
494
524
|
|
|
495
525
|
declare interface InfiniteScrollProps {
|
|
@@ -564,6 +594,11 @@ declare type LegendsProps = {
|
|
|
564
594
|
colorMap: Record<string, string>;
|
|
565
595
|
};
|
|
566
596
|
|
|
597
|
+
declare type LengthCardProps = {
|
|
598
|
+
count: number;
|
|
599
|
+
onCardClick: () => void;
|
|
600
|
+
};
|
|
601
|
+
|
|
567
602
|
declare function Line({ data, options, lineRef }: LineProps): JSX_2.Element;
|
|
568
603
|
|
|
569
604
|
declare type LineChartProps = ChartProps<'line', any[], unknown>;
|
|
@@ -614,6 +649,9 @@ export { NiceModal }
|
|
|
614
649
|
|
|
615
650
|
export declare function NoResult(): JSX_2.Element;
|
|
616
651
|
|
|
652
|
+
declare const Notification_2: (props: NotificationProps) => void;
|
|
653
|
+
export { Notification_2 as Notification }
|
|
654
|
+
|
|
617
655
|
export declare enum NotificationAppearanceType {
|
|
618
656
|
INFO = "info",
|
|
619
657
|
SUCCESS = "success",
|
|
@@ -622,6 +660,12 @@ export declare enum NotificationAppearanceType {
|
|
|
622
660
|
LOADING = "loading"
|
|
623
661
|
}
|
|
624
662
|
|
|
663
|
+
declare type NotificationProps = {
|
|
664
|
+
message: string | ReactNode;
|
|
665
|
+
type: NotificationAppearanceType;
|
|
666
|
+
closeTime?: number;
|
|
667
|
+
};
|
|
668
|
+
|
|
625
669
|
declare interface OptionItem {
|
|
626
670
|
value: string | number;
|
|
627
671
|
label: string;
|
|
@@ -829,6 +873,13 @@ export declare enum PodStatusEnum {
|
|
|
829
873
|
EVICTED = "Evicted"
|
|
830
874
|
}
|
|
831
875
|
|
|
876
|
+
declare type PreviewModalProps = {
|
|
877
|
+
imagePaths: string[];
|
|
878
|
+
onClose: () => void;
|
|
879
|
+
onPreview?: () => void;
|
|
880
|
+
onDelete: (imagePaths: string[], selectedImage: string) => void;
|
|
881
|
+
};
|
|
882
|
+
|
|
832
883
|
declare interface ProjectAppAddon {
|
|
833
884
|
id: number
|
|
834
885
|
addon_type: {
|