@sikka/hawa 0.1.43 → 0.1.45

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
@@ -1,14 +1,9 @@
1
- import * as React$1 from 'react';
1
+ import * as React from 'react';
2
2
  import React__default, { FC, ChangeEvent, ReactElement, ReactNode, RefObject, PropsWithRef, ButtonHTMLAttributes } from 'react';
3
3
  import { BaseEditor } from 'slate';
4
4
  import { ReactEditor } from 'slate-react';
5
5
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
6
6
  import { VariantProps } from 'class-variance-authority';
7
- import * as LabelPrimitive from '@radix-ui/react-label';
8
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
9
- import * as TabsPrimitive from '@radix-ui/react-tabs';
10
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
11
- import * as ToastPrimitives from '@radix-ui/react-toast';
12
7
 
13
8
  type THawaSnackBar = {
14
9
  severity: "info" | "warning" | "error" | "success" | "none";
@@ -156,11 +151,11 @@ type RangeTypes = {
156
151
  };
157
152
  declare const HawaRange: FC<RangeTypes>;
158
153
 
159
- type TypographyTypes$1 = {
154
+ type TypographyTypes = {
160
155
  children: any;
161
156
  align?: any;
162
157
  };
163
- declare const HawaTypography: FC<TypographyTypes$1>;
158
+ declare const HawaTypography: FC<TypographyTypes>;
164
159
 
165
160
  type AlertTypes = {
166
161
  severity: "info" | "warning" | "error" | "success";
@@ -303,7 +298,7 @@ type ModalTypes = {
303
298
  declare const HawaModal: FC<ModalTypes>;
304
299
 
305
300
  interface TMenuTypes$1 {
306
- menuItems: MenuItems$1[][];
301
+ menuItems: MenuItems[][];
307
302
  withHeader?: boolean;
308
303
  headerTitle?: string;
309
304
  headerSubtitle?: string;
@@ -315,7 +310,7 @@ interface TMenuTypes$1 {
315
310
  actionedItem?: any;
316
311
  size?: "small" | "normal" | "large";
317
312
  }
318
- type MenuItems$1 = {
313
+ type MenuItems = {
319
314
  icon?: JSX.Element;
320
315
  disabled?: boolean;
321
316
  label: string;
@@ -506,12 +501,12 @@ type ComponentTypes$4 = {
506
501
  };
507
502
  declare const UserFeedback: FC<ComponentTypes$4>;
508
503
 
509
- type Item$4 = {
504
+ type Item = {
510
505
  label?: string;
511
506
  icon?: JSX.Element;
512
507
  };
513
508
  type ComponentTypes$3 = {
514
- items: Item$4[];
509
+ items: Item[];
515
510
  index?: number;
516
511
  arrowSize?: number;
517
512
  labelSize?: "small" | "medium" | "big";
@@ -749,919 +744,10 @@ declare const buttonVariants: (props?: {
749
744
  variant?: "link" | "default" | "secondary" | "light" | "outline" | "destructive" | "ghost";
750
745
  size?: "sm" | "lg" | "xl" | "default" | "xs" | "icon" | "smallIcon";
751
746
  } & class_variance_authority_dist_types.ClassProp) => string;
752
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
747
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
753
748
  asChild?: boolean;
754
749
  isLoading?: boolean;
755
750
  }
756
- declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
757
-
758
- declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp) => string> & React$1.RefAttributes<HTMLLabelElement>>;
759
-
760
- interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
761
- preview?: boolean;
762
- }
763
- declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
764
-
765
- type TooltipTypes = {
766
- open?: any;
767
- side?: "top" | "right" | "bottom" | "left";
768
- content?: any;
769
- children?: any;
770
- defaultOpen?: any;
771
- onOpenChange?: any;
772
- delayDuration?: any;
773
- };
774
- declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
775
-
776
- interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
777
- clickable?: boolean;
778
- }
779
- declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
780
- declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
781
- declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
782
- declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
783
- declare const CardContent: React$1.ForwardRefExoticComponent<{
784
- headless?: boolean;
785
- } & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
786
- declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
787
-
788
- declare function Skeleton({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): React__default.JSX.Element;
789
-
790
- type TypographyTypes = {
791
- handleLanguage: (e: any) => void;
792
- currentLanguage: any;
793
- handleColorMode: (e: any) => void;
794
- currentColorMode: any;
795
- orientation?: "vertical" | "horizontal";
796
- width?: "default" | "full";
797
- };
798
- declare const InterfaceSettings: FC<TypographyTypes>;
799
-
800
- type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
801
- type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
802
- type SubItem$3 = {
803
- label: string;
804
- value: string;
805
- action?: () => void;
806
- highlighted?: boolean;
807
- };
808
- type Item$3 = {
809
- label: string;
810
- value: string;
811
- action?: () => void;
812
- highlighted?: boolean;
813
- subitems?: SubItem$3[];
814
- };
815
- declare const DropdownMenu: ({ trigger, items, direction, onItemSelect, sideOffset, side, className, triggerClassname, align, alignOffset, }: {
816
- trigger?: any;
817
- items?: Item$3[];
818
- direction?: "rtl" | "ltr";
819
- onItemSelect?: any;
820
- className?: ExtendedDropdownMenuContentProps["className"];
821
- triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
822
- sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
823
- side?: ExtendedDropdownMenuContentProps["side"];
824
- align?: ExtendedDropdownMenuContentProps["align"];
825
- alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
826
- }) => React$1.JSX.Element;
827
-
828
- interface PopoverProps {
829
- side?: "top" | "right" | "bottom" | "left";
830
- align?: "start" | "center" | "end";
831
- trigger: React$1.ReactNode;
832
- children: React$1.ReactNode;
833
- className?: string;
834
- sideOffset?: number;
835
- }
836
- declare const Popover: React$1.FC<PopoverProps>;
837
-
838
- declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
839
- orientation?: "vertical" | "horizontal";
840
- } & React$1.RefAttributes<HTMLDivElement>>;
841
- declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
842
- declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
843
- declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
844
-
845
- interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
846
- label?: string;
847
- }
848
- declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
849
-
850
- declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
851
-
852
- declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
853
- declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
854
- declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: {
855
- variant?: "default" | "destructive";
856
- severity?: "none" | "info" | "warning" | "error" | "success";
857
- } & class_variance_authority_dist_types.ClassProp) => string> & {
858
- severity?: "info" | "warning" | "error" | "success" | "none";
859
- direction?: "rtl" | "ltr";
860
- } & React$1.RefAttributes<HTMLLIElement>>;
861
- declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
862
- declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
863
- declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
864
- declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
865
- type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
866
- type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
867
-
868
- declare function Toaster(props: any): React__default.JSX.Element;
869
-
870
- declare const Box: (props: any) => React__default.JSX.Element;
871
-
872
- type BottomAppBarTypes = {
873
- sx: any;
874
- color: any;
875
- appBarContent: any;
876
- };
877
- declare const HawaBottomAppBar: React__default.FunctionComponent<BottomAppBarTypes>;
878
-
879
- type HawaSiteLayoutTypes = {
880
- navItems: {
881
- label: string;
882
- icon: any;
883
- slug: string;
884
- action: () => void;
885
- subItems?: any;
886
- }[];
887
- direction?: "rtl" | "ltr";
888
- currentPage: string;
889
- pageTitle?: string;
890
- logoSymbol?: any;
891
- logoLink?: string;
892
- logoText?: any;
893
- children?: any;
894
- stickyNav?: boolean;
895
- topBar?: boolean;
896
- navigationSize?: "sm" | "md" | "lg";
897
- floating?: boolean;
898
- };
899
- declare const HawaSiteLayout: React__default.FunctionComponent<HawaSiteLayoutTypes>;
900
-
901
- type AppLayoutTypes = {
902
- /** The pages of the side drawer */
903
- drawerItems: Item$2[];
904
- direction?: "rtl" | "ltr";
905
- currentPage: string;
906
- pageTitle?: string;
907
- logoSymbol?: any;
908
- logoLink?: string;
909
- logoText?: any;
910
- children?: any;
911
- topBar?: boolean;
912
- username?: string;
913
- email?: string;
914
- drawerSize?: "sm" | "md" | "large";
915
- profileMenuItems?: ProfileItem[];
916
- onSettingsClick?: () => void;
917
- DrawerFooterActions?: any;
918
- clickedItem?: any;
919
- texts?: {
920
- expandSidebar?: string;
921
- collapseSidebar?: string;
922
- };
923
- };
924
- type Item$2 = {
925
- value: string;
926
- label: string;
927
- icon?: any;
928
- subitems?: SubItem$2[];
929
- onClick?: () => void;
930
- };
931
- type SubItem$2 = {
932
- value: string;
933
- label: string;
934
- icon?: any;
935
- onClick?: () => void;
936
- };
937
- type ProfileSubItem = {
938
- label: string;
939
- value: string;
940
- highlighted?: boolean;
941
- };
942
- type ProfileItem = {
943
- label: string;
944
- value: string;
945
- highlighted?: boolean;
946
- subitems?: ProfileSubItem[];
947
- };
948
- declare const AppLayout: React__default.FunctionComponent<AppLayoutTypes>;
949
-
950
- type HawaAppLayoutTypes$1 = {
951
- drawerItems: {
952
- label: string;
953
- icon: any;
954
- slug: string;
955
- action: () => void;
956
- subItems?: any;
957
- }[][];
958
- direction?: "rtl" | "ltr";
959
- currentPage: string;
960
- pageTitle?: string;
961
- logoSymbol?: any;
962
- logoLink?: string;
963
- logoText?: any;
964
- children?: any;
965
- topBar?: boolean;
966
- username?: string;
967
- email?: string;
968
- drawerSize?: "sm" | "md" | "large";
969
- profileMenuItems?: MenuItems[][];
970
- onSettingsClick?: () => void;
971
- };
972
- type MenuItems = {
973
- icon?: JSX.Element;
974
- label: string;
975
- action?: (e: any) => void;
976
- isButton?: boolean;
977
- };
978
- declare const HawaAppLayout: React__default.FunctionComponent<HawaAppLayoutTypes$1>;
979
-
980
- type HawaAppLayoutTypes = {
981
- /** The pages of the side drawer */
982
- drawerItems: {
983
- label: string;
984
- icon: any;
985
- slug: string;
986
- action: () => void;
987
- subItems?: any;
988
- }[][];
989
- direction?: "rtl" | "ltr";
990
- currentPage: string;
991
- pageTitle?: string;
992
- logoSymbol?: any;
993
- logoLink?: string;
994
- logoText?: any;
995
- children?: any;
996
- topBar?: boolean;
997
- username?: string;
998
- email?: string;
999
- drawerSize?: "sm" | "md" | "large";
1000
- profileMenuItems?: Item$1[];
1001
- onSettingsClick?: () => void;
1002
- DrawerFooterActions?: any;
1003
- texts?: {
1004
- expandSidebar?: string;
1005
- collapseSidebar?: string;
1006
- };
1007
- };
1008
- type SubItem$1 = {
1009
- label: string;
1010
- value: string;
1011
- highlighted?: boolean;
1012
- };
1013
- type Item$1 = {
1014
- label: string;
1015
- value: string;
1016
- highlighted?: boolean;
1017
- subitems?: SubItem$1[];
1018
- };
1019
- declare const HawaAppLayoutSimplified: React__default.FunctionComponent<HawaAppLayoutTypes>;
1020
-
1021
- type ContainerTypes = {
1022
- maxWidth?: "full" | "small" | "normal";
1023
- children: React__default.ReactNode;
1024
- variant?: "contained" | "outlined" | "neobrutalism";
1025
- direction?: "rtl" | "ltr";
1026
- centered?: boolean;
1027
- };
1028
- declare const HawaContainer: React__default.FunctionComponent<ContainerTypes>;
1029
-
1030
- type GridTypes = {
1031
- children?: any;
1032
- };
1033
- declare const HawaGrid: FC<GridTypes>;
1034
-
1035
- interface Props {
1036
- isOpen: boolean;
1037
- onClose: () => void;
1038
- items: {
1039
- label: string;
1040
- onClick: () => void;
1041
- }[];
1042
- }
1043
- declare const AppSidebar: React__default.FC<Props>;
1044
-
1045
- type FooterTypes = {
1046
- logoText?: string;
1047
- logoURL?: string;
1048
- socialLinks?: {
1049
- twitter?: string;
1050
- instagram?: string;
1051
- tiktok?: string;
1052
- snapchat?: string;
1053
- };
1054
- footerLinks?: {
1055
- title: string;
1056
- pages: {
1057
- label: string;
1058
- link: string;
1059
- }[];
1060
- }[];
1061
- };
1062
- declare const Footer: React.FunctionComponent<FooterTypes>;
1063
-
1064
- type BannerTypes = {
1065
- showBanner?: boolean;
1066
- direction?: "rtl" | "ltr";
1067
- logoURL?: string;
1068
- title?: string;
1069
- text?: string;
1070
- actionText?: string;
1071
- onActionClick?: () => void;
1072
- position?: "top" | "bottom";
1073
- design: "default" | "floating";
1074
- };
1075
- declare const HawaBanner: FC<BannerTypes>;
1076
-
1077
- type Item = {
1078
- value: string;
1079
- label: string;
1080
- icon?: any;
1081
- subitems?: SubItem[];
1082
- onClick?: () => void;
1083
- };
1084
- type SubItem = {
1085
- value: string;
1086
- label: string;
1087
- icon?: any;
1088
- onClick?: () => void;
1089
- };
1090
- interface SidebarGroupProps {
1091
- title?: string;
1092
- items: Item[];
1093
- openedItem?: any;
1094
- setOpenedItem?: any;
1095
- selectedItem?: any;
1096
- isOpen?: boolean;
1097
- onItemClick?: (value: string[]) => void;
1098
- onSubItemClick?: (values: string[]) => void;
1099
- direction?: "rtl" | "ltr";
1100
- }
1101
- declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
1102
- declare const SidebarItem: React$1.FC<{
1103
- item: Item;
1104
- isSelected: any;
1105
- direction?: "rtl" | "ltr";
1106
- onItemClick?: (value: string[]) => void;
1107
- onSubItemClick?: (values: string[]) => void;
1108
- isOpen?: boolean;
1109
- }>;
1110
-
1111
- type UserProfileFormTypes = {
1112
- inputs: any;
1113
- texts: any;
1114
- handleUpdateProfile: any;
1115
- };
1116
- declare const UserProfileForm: FC<UserProfileFormTypes>;
1117
-
1118
- type UserSettingsFormTypes = {
1119
- children: any;
1120
- handleSaveSettings?: any;
1121
- saveSettingsText?: string;
1122
- blockTitle?: string;
1123
- };
1124
- declare const UserSettingsForm: FC<UserSettingsFormTypes>;
1125
-
1126
- type AppLandingTypes = {
1127
- handleSignIn: () => void;
1128
- handleSignUp: () => void;
1129
- handleLanguage: () => void;
1130
- handleColorMode: () => void;
1131
- texts: {
1132
- signIn: string;
1133
- signUp: string;
1134
- lang: string;
1135
- };
1136
- size: "small" | "normal" | "full";
1137
- };
1138
- declare const AppLanding: FC<AppLandingTypes>;
1139
-
1140
- type SignInPhoneTypes = {
1141
- value: any;
1142
- onSubmit: any;
1143
- country: any;
1144
- label: any;
1145
- handlePhoneChange: any;
1146
- phoneRequiredText: any;
1147
- SignInButtonText: any;
1148
- handleSignIn: any;
1149
- };
1150
- declare const SignInPhone: FC<SignInPhoneTypes>;
1151
-
1152
- declare const SignInForm: FC<SignInFormTypes>;
1153
- type SignInFormTypes = {
1154
- handleLanguage?: () => void;
1155
- currentLanguage?: any;
1156
- handleColorMode?: () => void;
1157
- currentColorMode?: any;
1158
- direction?: "rtl" | "ltr";
1159
- showError?: any;
1160
- errorTitle?: string;
1161
- errorText?: string;
1162
- signInType?: "email" | "username" | "phone";
1163
- texts?: {
1164
- emailLabel?: string;
1165
- emailPlaceholder?: string;
1166
- emailRequiredText?: string;
1167
- emailInvalidText?: string;
1168
- usernameLabel?: string;
1169
- usernamePlaceholder?: string;
1170
- usernameRequired?: string;
1171
- phoneRequiredText?: string;
1172
- passwordLabel?: string;
1173
- passwordPlaceholder?: string;
1174
- passwordRequiredText?: string;
1175
- forgotPasswordText?: string;
1176
- newUserText?: string;
1177
- createAccount?: string;
1178
- signInText?: string;
1179
- signInViaGoogleLabel?: string;
1180
- signInViaGithubLabel?: string;
1181
- signInViaTwitterLabel?: string;
1182
- };
1183
- withoutResetPassword?: boolean;
1184
- withoutSignUp?: boolean;
1185
- /**
1186
- *show spinner if true
1187
- */
1188
- isLoading?: any;
1189
- viaGoogle?: boolean;
1190
- viaGithub?: boolean;
1191
- viaTwitter?: boolean;
1192
- /**
1193
- * Handle the sign in .
1194
- */
1195
- handleSignIn?: (e: any) => void;
1196
- /**
1197
- * Handle routing to sign up page
1198
- */
1199
- handleRouteToSignUp?: () => void;
1200
- handleForgotPassword?: () => void;
1201
- handleGoogleSignIn?: () => void;
1202
- handleGithubSignIn?: () => void;
1203
- handleTwitterSignIn?: () => void;
1204
- };
1205
-
1206
- declare function SignInBlock(): React$1.JSX.Element;
1207
-
1208
- type SignUpFormTypes = {
1209
- direction?: "rtl" | "ltr";
1210
- texts: {
1211
- fullNameLabel: string;
1212
- fullNamePlaceholder: string;
1213
- fullNameRequiredText: string;
1214
- emailLabel: string;
1215
- emailPlaceholder: string;
1216
- emailRequiredText: string;
1217
- emailInvalidText: string;
1218
- usernameLabel: string;
1219
- usernamePlaceholder: string;
1220
- usernameRequired: string;
1221
- passwordLabel: string;
1222
- passwordPlaceholder: string;
1223
- passwordRequiredText: string;
1224
- passwordTooShortText: string;
1225
- confirmPasswordLabel: string;
1226
- confirmPasswordPlaceholder: string;
1227
- subscribeToNewsletter: string;
1228
- forgotPasswordText: string;
1229
- termsText: string;
1230
- iAcceptText: string;
1231
- termsRequiredText: string;
1232
- newUserText: string;
1233
- signUpText: string;
1234
- signInText: string;
1235
- existingUserText: string;
1236
- signUpViaGoogleLabel: string;
1237
- signUpViaGithubLabel: string;
1238
- signUpViaTwitterLabel: string;
1239
- refCode: string;
1240
- };
1241
- showUserSource: any;
1242
- viaGoogle: boolean;
1243
- viaGithub: boolean;
1244
- viaTwitter: boolean;
1245
- showNewsletterOption: boolean;
1246
- showRefCode: boolean;
1247
- showTermsOption: boolean;
1248
- handleSignUp: (e: any) => void;
1249
- handleRouteToSignIn: () => void;
1250
- handleGoogleSignUp: () => void;
1251
- handleGithubSignUp: () => void;
1252
- handleTwitterSignUp: () => void;
1253
- handleRouteToTOS: () => void;
1254
- showError: any;
1255
- errorTitle: any;
1256
- errorText: any;
1257
- signUpFields: any[];
1258
- isLoading?: boolean;
1259
- };
1260
- declare const SignUpForm: FC<SignUpFormTypes>;
1261
-
1262
- type NewPasswordTypes = {
1263
- handleNewPassword: () => void;
1264
- passwordChanged: any;
1265
- texts: {
1266
- passwordPlaceholder: string;
1267
- updatePassword: string;
1268
- passwordRequiredText: string;
1269
- passwordLabel: string;
1270
- confirmPasswordPlaceholder: string;
1271
- confirmPasswordLabel: string;
1272
- confirmPasswordRequiredText: string;
1273
- passwordMatchError: string;
1274
- passwordChanged: string;
1275
- };
1276
- };
1277
- declare const NewPasswordForm: FC<NewPasswordTypes>;
1278
-
1279
- type ResetPasswordType = {
1280
- handleResetPassword: () => void;
1281
- handleRouteToSignUp: () => void;
1282
- sent: any;
1283
- texts: {
1284
- emailLabel: string;
1285
- emailPlaceholder: string;
1286
- emailRequiredText: string;
1287
- emailInvalidText: string;
1288
- emailSentText: string;
1289
- resetPassword: string;
1290
- signUpText: string;
1291
- dontHaveAccount: string;
1292
- };
1293
- };
1294
- declare const ResetPasswordForm: FC<ResetPasswordType>;
1295
-
1296
- type TConfirmation = {
1297
- showError?: any;
1298
- errorTitle?: any;
1299
- errorText?: any;
1300
- texts?: {
1301
- checkYourPhone: string;
1302
- weSentCode: string;
1303
- didntGetCode: string;
1304
- resendCode: string;
1305
- codeLabel: string;
1306
- codePlaceholder: string;
1307
- codeRequiredText: string;
1308
- confirm: string;
1309
- cancel: string;
1310
- };
1311
- phoneNumber?: string;
1312
- submitConfirmation?: any;
1313
- handleSignIn?: any;
1314
- };
1315
- declare const CodeConfirmation: FC<TConfirmation>;
1316
-
1317
- type SelectPaymentTypes = {
1318
- viaMada: boolean;
1319
- viaWallet: boolean;
1320
- viaSTCPay: boolean;
1321
- viaPayPal: boolean;
1322
- viaApplePay: boolean;
1323
- viaCreditCard: boolean;
1324
- viaGooglePay: boolean;
1325
- madaLabel: string;
1326
- stcPayLabel: string;
1327
- paypalLabel: string;
1328
- walletLabel: string;
1329
- applePayLabel: string;
1330
- visaMasterLabel: string;
1331
- googlePayLabel: string;
1332
- handleMada: any;
1333
- handleWallet: any;
1334
- handleSTCPay: any;
1335
- handlePayPal: any;
1336
- handleApplePay: any;
1337
- handleCreditCard: any;
1338
- handleGooglePay: any;
1339
- };
1340
- declare const SelectPayment: FC<SelectPaymentTypes>;
1341
-
1342
- type CreditCardFormTypes = {
1343
- handle: any;
1344
- handlePayWithCreditCard: any;
1345
- };
1346
- declare const CreditCardForm: FC<CreditCardFormTypes>;
1347
-
1348
- type ChargeWalletTypes = {
1349
- currency: any;
1350
- handleChargeWallet: any;
1351
- texts: {
1352
- amountLabel: string;
1353
- amountRequired: string;
1354
- chargeWallet: string;
1355
- };
1356
- };
1357
- declare const ChargeWalletForm: FC<ChargeWalletTypes>;
1358
-
1359
- type PayWithWalletTypes = {
1360
- walletBalance: any;
1361
- currency: any;
1362
- handlePayWithWallet: any;
1363
- };
1364
- declare const PayWithWallet: FC<PayWithWalletTypes>;
1365
-
1366
- type CheckoutFormTypes = {
1367
- lang: string;
1368
- products: any;
1369
- total: any;
1370
- handlePayNow: any;
1371
- countriesList: any;
1372
- texts: {
1373
- orderDetails: string;
1374
- billingAddress: string;
1375
- payNow: string;
1376
- emailLabel: string;
1377
- emailRequiredText: string;
1378
- emailInvalidText: string;
1379
- firstNameLabel: string;
1380
- required: string;
1381
- lastNameLabel: string;
1382
- streetAddressLabel: string;
1383
- buildingNumberLabel: string;
1384
- cityLabel: string;
1385
- stateLabel: string;
1386
- countryLabel: string;
1387
- zipCodeLabel: string;
1388
- };
1389
- };
1390
- declare const CheckoutForm: FC<CheckoutFormTypes>;
1391
-
1392
- type ConfirmationPageTypes = {
1393
- texts: {
1394
- print: string;
1395
- history: string;
1396
- homePage: string;
1397
- successMessage: string;
1398
- orderDetails: string;
1399
- fasterPaymentNote: string;
1400
- yourOrderNumber: string;
1401
- emailLabel: string;
1402
- emailRequiredText: string;
1403
- emailInvalidText: string;
1404
- firstNameLabel: string;
1405
- required: string;
1406
- lastNameLabel: string;
1407
- streetAddressLabel: string;
1408
- buildingNumberLabel: string;
1409
- cityLabel: string;
1410
- stateLabel: string;
1411
- countryLabel: string;
1412
- zipCodeLabel: string;
1413
- refundPolicy: string;
1414
- };
1415
- products: any;
1416
- countriesList: any;
1417
- lang: string;
1418
- total: string;
1419
- userEmail: string;
1420
- orderNumber: string;
1421
- confirmationTitle: string;
1422
- handleHome: any;
1423
- handlePrint: any;
1424
- handleHistory: any;
1425
- handleRefundPolicyLink: any;
1426
- };
1427
- declare const ConfirmationPage: FC<ConfirmationPageTypes>;
1428
-
1429
- type PricingPlansTypes = {
1430
- plans: [
1431
- {
1432
- direction: "rtl" | "ltr";
1433
- features: [{
1434
- included: boolean;
1435
- text: string;
1436
- }];
1437
- price: number;
1438
- texts: {
1439
- title: string;
1440
- subtitle: string;
1441
- buttonText: string;
1442
- cycleText: string;
1443
- currencyText: string;
1444
- };
1445
- size: "small" | "medium" | "large";
1446
- }
1447
- ];
1448
- currencies: [
1449
- {
1450
- label: string;
1451
- value: string;
1452
- }
1453
- ];
1454
- billingCycles: [
1455
- {
1456
- label: string;
1457
- value: string;
1458
- }
1459
- ];
1460
- onPlanClicked?: (e: any) => void;
1461
- currentCycle: {
1462
- label: string;
1463
- value: string;
1464
- };
1465
- currentCurrency: {
1466
- label: string;
1467
- value: string;
1468
- };
1469
- onCycleChange?: (e: any) => void;
1470
- onCurrencyChange?: (e: any) => void;
1471
- direction?: "rtl" | "ltr";
1472
- };
1473
- declare const PricingPlans: FC<PricingPlansTypes>;
1474
-
1475
- type ComparingPlansTypes = {
1476
- plans: [
1477
- {
1478
- direction: "rtl" | "ltr";
1479
- features: [{
1480
- included: boolean;
1481
- text: string;
1482
- description?: string;
1483
- }];
1484
- price: number;
1485
- texts: {
1486
- title: string;
1487
- subtitle: string;
1488
- buttonText: string;
1489
- cycleText: string;
1490
- currencyText: string;
1491
- };
1492
- size: "small" | "medium" | "large";
1493
- }
1494
- ];
1495
- currencies: [
1496
- {
1497
- label: string;
1498
- value: string;
1499
- }
1500
- ];
1501
- billingCycles: [
1502
- {
1503
- label: string;
1504
- value: string;
1505
- }
1506
- ];
1507
- onCycleChange?: (e: any) => void;
1508
- onCurrencyChange?: (e: any) => void;
1509
- direction?: "rtl" | "ltr";
1510
- };
1511
- declare const ComparingPlans: FC<ComparingPlansTypes>;
1512
-
1513
- type HorizontalPricingTypes = {
1514
- plans: [
1515
- {
1516
- direction: "rtl" | "ltr";
1517
- features: [{
1518
- included: boolean;
1519
- text: string;
1520
- }];
1521
- price: number;
1522
- texts: {
1523
- title: string;
1524
- subtitle: string;
1525
- buttonText: string;
1526
- cycleText: string;
1527
- currencyText: string;
1528
- };
1529
- size: "small" | "medium" | "large";
1530
- }
1531
- ];
1532
- currencies: [
1533
- {
1534
- label: string;
1535
- value: string;
1536
- }
1537
- ];
1538
- billingCycles: [
1539
- {
1540
- label: string;
1541
- value: string;
1542
- }
1543
- ];
1544
- onPlanClicked?: (e: any) => void;
1545
- currentCycle: {
1546
- label: string;
1547
- value: string;
1548
- };
1549
- currentCurrency: {
1550
- label: string;
1551
- value: string;
1552
- };
1553
- onCycleChange?: (e: any) => void;
1554
- onCurrencyChange?: (e: any) => void;
1555
- direction?: "rtl" | "ltr";
1556
- };
1557
- declare const HorizontalPricing: FC<HorizontalPricingTypes>;
1558
-
1559
- type ReferralAccount = {
1560
- referralLink: string;
1561
- referralCode: string;
1562
- };
1563
- declare const ReferralAccount: FC<ReferralAccount>;
1564
-
1565
- type TReferralSettlement = {
1566
- referralLink: string;
1567
- referralCode: string;
1568
- withdrawError?: string;
1569
- };
1570
- declare const ReferralSettlement: FC<TReferralSettlement>;
1571
-
1572
- type TReferralStats = {
1573
- referralLink: string;
1574
- referralCode: string;
1575
- withdrawError?: string;
1576
- };
1577
- declare const ReferralStats: FC<TReferralStats>;
1578
-
1579
- type NotFoundTypes = {
1580
- variant?: "outlined" | "contained" | "neobrutalism";
1581
- texts?: {
1582
- pageNotFound?: string;
1583
- ifLost?: string;
1584
- home?: string;
1585
- };
1586
- };
1587
- declare const NotFound: FC<NotFoundTypes>;
1588
-
1589
- type TEmptyState$1 = {
1590
- variant?: "outlined" | "contained" | "neobrutalism";
1591
- onActionClick: () => void;
1592
- texts: {
1593
- youreCaughtUp?: string;
1594
- actionText?: string;
1595
- };
1596
- };
1597
- declare const EmptyState: FC<TEmptyState$1>;
1598
-
1599
- type TEmptyState = {
1600
- variant?: "outlined" | "contained" | "neobrutalism";
1601
- };
1602
- declare const Testimonial: FC<TEmptyState>;
1603
-
1604
- type TLeadGenerator = {
1605
- variant?: "outlined" | "contained" | "neobrutalism";
1606
- texts: {
1607
- title: string;
1608
- subtitle: string;
1609
- submit: string;
1610
- };
1611
- handleNewsletterSub: (e: string) => void;
1612
- };
1613
- declare const LeadGenerator: FC<TLeadGenerator>;
1614
-
1615
- type TNoPermission = {
1616
- variant?: "outlined" | "contained" | "neobrutalism";
1617
- texts?: {
1618
- title: string;
1619
- subtitle: string;
1620
- };
1621
- };
1622
- declare const NoPermission: FC<TNoPermission>;
1623
-
1624
- type ToasterToast = ToastProps & {
1625
- id: string;
1626
- title?: React$1.ReactNode;
1627
- description?: React$1.ReactNode;
1628
- severity?: "info" | "warning" | "error" | "success" | "none";
1629
- action?: ToastActionElement;
1630
- };
1631
- declare const actionTypes: {
1632
- readonly ADD_TOAST: "ADD_TOAST";
1633
- readonly UPDATE_TOAST: "UPDATE_TOAST";
1634
- readonly DISMISS_TOAST: "DISMISS_TOAST";
1635
- readonly REMOVE_TOAST: "REMOVE_TOAST";
1636
- };
1637
- type ActionType = typeof actionTypes;
1638
- type Action = {
1639
- type: ActionType["ADD_TOAST"];
1640
- toast: ToasterToast;
1641
- } | {
1642
- type: ActionType["UPDATE_TOAST"];
1643
- toast: Partial<ToasterToast>;
1644
- } | {
1645
- type: ActionType["DISMISS_TOAST"];
1646
- toastId?: ToasterToast["id"];
1647
- } | {
1648
- type: ActionType["REMOVE_TOAST"];
1649
- toastId?: ToasterToast["id"];
1650
- };
1651
- interface State {
1652
- toasts: ToasterToast[];
1653
- }
1654
- declare const reducer: (state: State, action: Action) => State;
1655
- type Toast = Omit<ToasterToast, "id">;
1656
- declare function toast({ ...props }: Toast): {
1657
- id: string;
1658
- dismiss: () => void;
1659
- update: (props: ToasterToast) => void;
1660
- };
1661
- declare function useToast(): {
1662
- toast: typeof toast;
1663
- dismiss: (toastId?: string) => void;
1664
- toasts: ToasterToast[];
1665
- };
751
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
1666
752
 
1667
- export { AppLanding, AppLayout, AppSidebar, ArrowCarousel, BackToTop, Box, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChargeWalletForm, CheckoutForm, CodeConfirmation, ComparingPlans, ConfirmationPage, CreditCardForm, DragDropImages, DraggableCard, DropdownMenu, EmptyState, FloatingComment, FloatingCommentExec, FloatingCommentSlate, Footer, HawaAccordion, HawaAdCard, HawaAlert, HawaAppLayout, HawaAppLayoutSimplified, HawaBanner, HawaBottomAppBar, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaContainer, HawaCopyrights, HawaDatepicker, HawaDropdownMenu, HawaGrid, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaLogoButton, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSiteLayout, HawaSnackbar, HawaStats, HawaStepper, HawaStoreButtons, HawaSwitch, HawaTable, HawaTabs, HawaTextField, HawaTooltip, HawaTypography, HorizontalPricing, Input, InputProps, InterfaceSettings, InvoiceAccordion, Label, LeadGenerator, NewPasswordForm, NoPermission, NotFound, PayWithWallet, Popover, PricingPlans, ReferralAccount, ReferralSettlement, ReferralStats, ResetPasswordForm, SelectPayment, Separator, SidebarGroup, SidebarItem, SignInBlock, SignInForm, SignInPhone, SignUpForm, Skeleton, SubsectionList, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Timeline, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, UsageCard, UserFeedback, UserProfileForm, UserSettingsForm, buttonVariants, reducer, toast, useToast };
753
+ export { ArrowCarousel, BackToTop, Button, ButtonProps, DragDropImages, DraggableCard, FloatingComment, FloatingCommentExec, FloatingCommentSlate, HawaAccordion, HawaAdCard, HawaAlert, HawaButton, HawaCheckbox, HawaChip, HawaCodeBlock, HawaColorPicker, HawaCopyrights, HawaDatepicker, HawaDropdownMenu, HawaIconCount, HawaInlineCode, HawaItemCard, HawaLandingCard, HawaLoading, HawaLogoButton, HawaMenu, HawaModal, HawaPanelTabs, HawaPhoneInput, HawaPinInput, HawaPricingCard, HawaRadio, HawaRange, HawaSearchBar, HawaSelect, HawaSettingsRow, HawaSnackbar, HawaStats, HawaStepper, HawaStoreButtons, HawaSwitch, HawaTable, HawaTabs, HawaTextField, HawaTooltip, HawaTypography, InvoiceAccordion, SubsectionList, Timeline, UsageCard, UserFeedback, buttonVariants };