@cagatayfdn/flora-components 0.0.141 → 0.0.144

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.mts CHANGED
@@ -50,7 +50,7 @@ export declare function ActionButton({ items, isDisabled }: ActionButtonProps):
50
50
 
51
51
  export declare type ActionButtonItems = {
52
52
  text: string;
53
- icon: Icons;
53
+ icon: FloraIcons;
54
54
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
55
55
  };
56
56
 
@@ -209,7 +209,7 @@ export declare type ButtonProps = {
209
209
  isPill?: boolean;
210
210
  noBorder?: boolean;
211
211
  isSolid?: boolean;
212
- prefixIcon?: Icons;
212
+ prefixIcon?: FloraIcons;
213
213
  } & Omit<EventProps<HTMLButtonElement>, 'onKeyPress' | 'onKeyUp' | 'onKeydown' | 'onChange'>;
214
214
 
215
215
  declare type CanProps = {
@@ -225,7 +225,7 @@ export declare const Card: (props: CardProps) => JSX.Element;
225
225
 
226
226
  export declare type CardProps = {
227
227
  children?: ReactNode;
228
- icon?: Icons;
228
+ icon?: FloraIcons;
229
229
  bgColor?: string;
230
230
  title?: string;
231
231
  description?: string | ReactNode;
@@ -461,7 +461,7 @@ declare type DrawerState = {
461
461
  export declare type DropdownItemType = {
462
462
  text: string;
463
463
  to?: string;
464
- icon?: Icons;
464
+ icon?: FloraIcons;
465
465
  className?: string;
466
466
  disabled?: boolean;
467
467
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
@@ -546,6 +546,74 @@ export declare type FileUploadProps = {
546
546
  onChange?: (event: any) => void;
547
547
  } & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
548
548
 
549
+ export declare enum FloraIcons {
550
+ Applications = "applications",
551
+ Attach = "attach",
552
+ Attachment = "attachment",
553
+ Billing = "billing",
554
+ Box = "box",
555
+ Calendar = "calendar",
556
+ Cart = "cart",
557
+ CaseSensitive = "case-sensitive",
558
+ Certificate = "certificate",
559
+ Check = "check",
560
+ ChevronLeft = "chevron-left",
561
+ ChevronRight = "chevron-right",
562
+ CircleMinus = "circle-minus",
563
+ CirclePlus = "circle-plus",
564
+ Clock = "clock",
565
+ CloseWindow = "close-window",
566
+ Close = "close",
567
+ Copy = "copy",
568
+ CreditCard = "credit-card",
569
+ Document = "document",
570
+ DomainRegistration = "domain-registration",
571
+ Domains = "domains",
572
+ DownArrow = "down-arrow",
573
+ DownSquare = "down-square",
574
+ Down = "down",
575
+ Download = "download",
576
+ EditOutline = "edit-outline",
577
+ Edit = "edit",
578
+ Email = "email",
579
+ Environment = "environment",
580
+ ErrorFill = "error-fill",
581
+ Error = "error",
582
+ ExpandWindow = "expand-window",
583
+ FileTextOutlined = "fileTextOutlined",
584
+ Group = "group",
585
+ Info = "info",
586
+ Install = "install",
587
+ Link = "link",
588
+ Log = "log",
589
+ MenuClose = "menu-close",
590
+ MenuOpen = "menu-open",
591
+ Monitoring = "monitoring",
592
+ Network = "network",
593
+ NoResults = "no-results",
594
+ NotEdit = "not-edit",
595
+ OrderDown = "order_down",
596
+ OrderUp = "order_up",
597
+ Out = "out",
598
+ Path = "path",
599
+ Plus = "plus",
600
+ Preview = "preview",
601
+ Profile = "profile",
602
+ ProjectList = "project-list",
603
+ Projects = "projects",
604
+ Regex = "regex",
605
+ Reload = "reload",
606
+ Retry = "retry",
607
+ Search = "search",
608
+ Settings = "settings",
609
+ Support = "support",
610
+ Trash = "trash",
611
+ Users = "users",
612
+ Warning = "warning"
613
+ }
614
+
615
+ declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
616
+
549
617
  export { format }
550
618
 
551
619
  export declare interface FormElementProps {
@@ -606,88 +674,20 @@ export declare const Icon: (props: IconProps) => JSX.Element;
606
674
  export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
607
675
 
608
676
  export declare type IconBoxProps = {
609
- icon: Icons;
677
+ icon: FloraIcons;
610
678
  onClick?: () => void;
611
679
  type?: "primary" | "secondary";
612
680
  };
613
681
 
614
682
  export declare type IconProps = {
615
683
  id?: string;
616
- name: IconsId;
684
+ name: FloraIconsId;
617
685
  isDisabled?: boolean;
618
686
  onClick?: (e: MouseEvent_2<HTMLElement>) => void;
619
687
  style?: any;
620
688
  className?: string;
621
689
  };
622
690
 
623
- export declare enum Icons {
624
- Applications = "applications",
625
- Attach = "attach",
626
- Attachment = "attachment",
627
- Billing = "billing",
628
- Box = "box",
629
- Calendar = "calendar",
630
- Cart = "cart",
631
- CaseSensitive = "case-sensitive",
632
- Certificate = "certificate",
633
- Check = "check",
634
- ChevronLeft = "chevron-left",
635
- ChevronRight = "chevron-right",
636
- CircleMinus = "circle-minus",
637
- CirclePlus = "circle-plus",
638
- Clock = "clock",
639
- CloseWindow = "close-window",
640
- Close = "close",
641
- Copy = "copy",
642
- CreditCard = "credit-card",
643
- Document = "document",
644
- DomainRegistration = "domain-registration",
645
- Domains = "domains",
646
- DownArrow = "down-arrow",
647
- DownSquare = "down-square",
648
- Down = "down",
649
- Download = "download",
650
- EditOutline = "edit-outline",
651
- Edit = "edit",
652
- Email = "email",
653
- Environment = "environment",
654
- ErrorFill = "error-fill",
655
- Error = "error",
656
- ExpandWindow = "expand-window",
657
- FileTextOutlined = "fileTextOutlined",
658
- Group = "group",
659
- Info = "info",
660
- Install = "install",
661
- Link = "link",
662
- Log = "log",
663
- MenuClose = "menu-close",
664
- MenuOpen = "menu-open",
665
- Monitoring = "monitoring",
666
- Network = "network",
667
- NoResults = "no-results",
668
- NotEdit = "not-edit",
669
- OrderDown = "order_down",
670
- OrderUp = "order_up",
671
- Out = "out",
672
- Path = "path",
673
- Plus = "plus",
674
- Preview = "preview",
675
- Profile = "profile",
676
- ProjectList = "project-list",
677
- Projects = "projects",
678
- Regex = "regex",
679
- Reload = "reload",
680
- Retry = "retry",
681
- Search = "search",
682
- Settings = "settings",
683
- Support = "support",
684
- Trash = "trash",
685
- Users = "users",
686
- Warning = "warning"
687
- }
688
-
689
- declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
690
-
691
691
  export declare type ImagePreviewProps = {
692
692
  onClose: () => void;
693
693
  src: string;
@@ -850,7 +850,7 @@ export declare type MenuItemProps = {
850
850
  title: string;
851
851
  visibleTooltip: boolean;
852
852
  to?: string;
853
- icon?: IconsId;
853
+ icon?: FloraIconsId;
854
854
  };
855
855
 
856
856
  export declare const MIN_DATE_TODAY: Date;
@@ -1154,7 +1154,7 @@ declare type SidebarChildItemType = {
1154
1154
  };
1155
1155
 
1156
1156
  export declare type SidebarItemType = {
1157
- icon?: Icons;
1157
+ icon?: FloraIcons;
1158
1158
  children?: SidebarChildItemType[];
1159
1159
  } & SidebarChildItemType;
1160
1160
 
package/dist/index.d.ts CHANGED
@@ -50,7 +50,7 @@ export declare function ActionButton({ items, isDisabled }: ActionButtonProps):
50
50
 
51
51
  export declare type ActionButtonItems = {
52
52
  text: string;
53
- icon: Icons;
53
+ icon: FloraIcons;
54
54
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
55
55
  };
56
56
 
@@ -209,7 +209,7 @@ export declare type ButtonProps = {
209
209
  isPill?: boolean;
210
210
  noBorder?: boolean;
211
211
  isSolid?: boolean;
212
- prefixIcon?: Icons;
212
+ prefixIcon?: FloraIcons;
213
213
  } & Omit<EventProps<HTMLButtonElement>, 'onKeyPress' | 'onKeyUp' | 'onKeydown' | 'onChange'>;
214
214
 
215
215
  declare type CanProps = {
@@ -225,7 +225,7 @@ export declare const Card: (props: CardProps) => JSX.Element;
225
225
 
226
226
  export declare type CardProps = {
227
227
  children?: ReactNode;
228
- icon?: Icons;
228
+ icon?: FloraIcons;
229
229
  bgColor?: string;
230
230
  title?: string;
231
231
  description?: string | ReactNode;
@@ -461,7 +461,7 @@ declare type DrawerState = {
461
461
  export declare type DropdownItemType = {
462
462
  text: string;
463
463
  to?: string;
464
- icon?: Icons;
464
+ icon?: FloraIcons;
465
465
  className?: string;
466
466
  disabled?: boolean;
467
467
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
@@ -546,6 +546,74 @@ export declare type FileUploadProps = {
546
546
  onChange?: (event: any) => void;
547
547
  } & Omit<FormElementProps, 'value'> & Omit<EventProps<HTMLInputElement>, 'onMouseUp' | 'onMouseDown' | 'onMouseEnter' | 'onMouseLeave' | 'onChange'>;
548
548
 
549
+ export declare enum FloraIcons {
550
+ Applications = "applications",
551
+ Attach = "attach",
552
+ Attachment = "attachment",
553
+ Billing = "billing",
554
+ Box = "box",
555
+ Calendar = "calendar",
556
+ Cart = "cart",
557
+ CaseSensitive = "case-sensitive",
558
+ Certificate = "certificate",
559
+ Check = "check",
560
+ ChevronLeft = "chevron-left",
561
+ ChevronRight = "chevron-right",
562
+ CircleMinus = "circle-minus",
563
+ CirclePlus = "circle-plus",
564
+ Clock = "clock",
565
+ CloseWindow = "close-window",
566
+ Close = "close",
567
+ Copy = "copy",
568
+ CreditCard = "credit-card",
569
+ Document = "document",
570
+ DomainRegistration = "domain-registration",
571
+ Domains = "domains",
572
+ DownArrow = "down-arrow",
573
+ DownSquare = "down-square",
574
+ Down = "down",
575
+ Download = "download",
576
+ EditOutline = "edit-outline",
577
+ Edit = "edit",
578
+ Email = "email",
579
+ Environment = "environment",
580
+ ErrorFill = "error-fill",
581
+ Error = "error",
582
+ ExpandWindow = "expand-window",
583
+ FileTextOutlined = "fileTextOutlined",
584
+ Group = "group",
585
+ Info = "info",
586
+ Install = "install",
587
+ Link = "link",
588
+ Log = "log",
589
+ MenuClose = "menu-close",
590
+ MenuOpen = "menu-open",
591
+ Monitoring = "monitoring",
592
+ Network = "network",
593
+ NoResults = "no-results",
594
+ NotEdit = "not-edit",
595
+ OrderDown = "order_down",
596
+ OrderUp = "order_up",
597
+ Out = "out",
598
+ Path = "path",
599
+ Plus = "plus",
600
+ Preview = "preview",
601
+ Profile = "profile",
602
+ ProjectList = "project-list",
603
+ Projects = "projects",
604
+ Regex = "regex",
605
+ Reload = "reload",
606
+ Retry = "retry",
607
+ Search = "search",
608
+ Settings = "settings",
609
+ Support = "support",
610
+ Trash = "trash",
611
+ Users = "users",
612
+ Warning = "warning"
613
+ }
614
+
615
+ declare type FloraIconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
616
+
549
617
  export { format }
550
618
 
551
619
  export declare interface FormElementProps {
@@ -606,88 +674,20 @@ export declare const Icon: (props: IconProps) => JSX.Element;
606
674
  export declare const IconBox: ({ icon, onClick, type }: IconBoxProps) => JSX_2.Element;
607
675
 
608
676
  export declare type IconBoxProps = {
609
- icon: Icons;
677
+ icon: FloraIcons;
610
678
  onClick?: () => void;
611
679
  type?: "primary" | "secondary";
612
680
  };
613
681
 
614
682
  export declare type IconProps = {
615
683
  id?: string;
616
- name: IconsId;
684
+ name: FloraIconsId;
617
685
  isDisabled?: boolean;
618
686
  onClick?: (e: MouseEvent_2<HTMLElement>) => void;
619
687
  style?: any;
620
688
  className?: string;
621
689
  };
622
690
 
623
- export declare enum Icons {
624
- Applications = "applications",
625
- Attach = "attach",
626
- Attachment = "attachment",
627
- Billing = "billing",
628
- Box = "box",
629
- Calendar = "calendar",
630
- Cart = "cart",
631
- CaseSensitive = "case-sensitive",
632
- Certificate = "certificate",
633
- Check = "check",
634
- ChevronLeft = "chevron-left",
635
- ChevronRight = "chevron-right",
636
- CircleMinus = "circle-minus",
637
- CirclePlus = "circle-plus",
638
- Clock = "clock",
639
- CloseWindow = "close-window",
640
- Close = "close",
641
- Copy = "copy",
642
- CreditCard = "credit-card",
643
- Document = "document",
644
- DomainRegistration = "domain-registration",
645
- Domains = "domains",
646
- DownArrow = "down-arrow",
647
- DownSquare = "down-square",
648
- Down = "down",
649
- Download = "download",
650
- EditOutline = "edit-outline",
651
- Edit = "edit",
652
- Email = "email",
653
- Environment = "environment",
654
- ErrorFill = "error-fill",
655
- Error = "error",
656
- ExpandWindow = "expand-window",
657
- FileTextOutlined = "fileTextOutlined",
658
- Group = "group",
659
- Info = "info",
660
- Install = "install",
661
- Link = "link",
662
- Log = "log",
663
- MenuClose = "menu-close",
664
- MenuOpen = "menu-open",
665
- Monitoring = "monitoring",
666
- Network = "network",
667
- NoResults = "no-results",
668
- NotEdit = "not-edit",
669
- OrderDown = "order_down",
670
- OrderUp = "order_up",
671
- Out = "out",
672
- Path = "path",
673
- Plus = "plus",
674
- Preview = "preview",
675
- Profile = "profile",
676
- ProjectList = "project-list",
677
- Projects = "projects",
678
- Regex = "regex",
679
- Reload = "reload",
680
- Retry = "retry",
681
- Search = "search",
682
- Settings = "settings",
683
- Support = "support",
684
- Trash = "trash",
685
- Users = "users",
686
- Warning = "warning"
687
- }
688
-
689
- declare type IconsId = 'applications' | 'attach' | 'attachment' | 'billing' | 'box' | 'calendar' | 'cart' | 'case-sensitive' | 'certificate' | 'check' | 'chevron-left' | 'chevron-right' | 'circle-minus' | 'circle-plus' | 'clock' | 'close-window' | 'close' | 'copy' | 'credit-card' | 'document' | 'domain-registration' | 'domains' | 'down-arrow' | 'down-square' | 'down' | 'download' | 'edit-outline' | 'edit' | 'email' | 'environment' | 'error-fill' | 'error' | 'expand-window' | 'fileTextOutlined' | 'group' | 'info' | 'install' | 'link' | 'log' | 'menu-close' | 'menu-open' | 'monitoring' | 'network' | 'no-results' | 'not-edit' | 'order_down' | 'order_up' | 'out' | 'path' | 'plus' | 'preview' | 'profile' | 'project-list' | 'projects' | 'regex' | 'reload' | 'retry' | 'search' | 'settings' | 'support' | 'trash' | 'users' | 'warning';
690
-
691
691
  export declare type ImagePreviewProps = {
692
692
  onClose: () => void;
693
693
  src: string;
@@ -850,7 +850,7 @@ export declare type MenuItemProps = {
850
850
  title: string;
851
851
  visibleTooltip: boolean;
852
852
  to?: string;
853
- icon?: IconsId;
853
+ icon?: FloraIconsId;
854
854
  };
855
855
 
856
856
  export declare const MIN_DATE_TODAY: Date;
@@ -1154,7 +1154,7 @@ declare type SidebarChildItemType = {
1154
1154
  };
1155
1155
 
1156
1156
  export declare type SidebarItemType = {
1157
- icon?: Icons;
1157
+ icon?: FloraIcons;
1158
1158
  children?: SidebarChildItemType[];
1159
1159
  } & SidebarChildItemType;
1160
1160