@sikka/hawa 0.3.1-next → 0.4.1-next

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.css CHANGED
@@ -847,6 +847,9 @@ input[type="number"]::-webkit-inner-spin-button,
847
847
  .hawa-h-14 {
848
848
  height: 3.5rem;
849
849
  }
850
+ .hawa-h-16 {
851
+ height: 4rem;
852
+ }
850
853
  .hawa-h-2 {
851
854
  height: 0.5rem;
852
855
  }
@@ -975,6 +978,9 @@ input[type="number"]::-webkit-inner-spin-button,
975
978
  .hawa-w-14 {
976
979
  width: 3.5rem;
977
980
  }
981
+ .hawa-w-16 {
982
+ width: 4rem;
983
+ }
978
984
  .hawa-w-2 {
979
985
  width: 0.5rem;
980
986
  }
@@ -993,6 +999,9 @@ input[type="number"]::-webkit-inner-spin-button,
993
999
  .hawa-w-3\.5 {
994
1000
  width: 0.875rem;
995
1001
  }
1002
+ .hawa-w-3\/4 {
1003
+ width: 75%;
1004
+ }
996
1005
  .hawa-w-32 {
997
1006
  width: 8rem;
998
1007
  }
@@ -1222,6 +1231,9 @@ input[type="number"]::-webkit-inner-spin-button,
1222
1231
  .hawa-grid-cols-1 {
1223
1232
  grid-template-columns: repeat(1, minmax(0, 1fr));
1224
1233
  }
1234
+ .hawa-grid-cols-2 {
1235
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1236
+ }
1225
1237
  .hawa-flex-row {
1226
1238
  flex-direction: row;
1227
1239
  }
@@ -1267,6 +1279,9 @@ input[type="number"]::-webkit-inner-spin-button,
1267
1279
  .hawa-gap-2 {
1268
1280
  gap: 0.5rem;
1269
1281
  }
1282
+ .hawa-gap-3 {
1283
+ gap: 0.75rem;
1284
+ }
1270
1285
  .hawa-gap-4 {
1271
1286
  gap: 1rem;
1272
1287
  }
@@ -1282,6 +1297,11 @@ input[type="number"]::-webkit-inner-spin-button,
1282
1297
  margin-right: calc(1rem * var(--tw-space-x-reverse));
1283
1298
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
1284
1299
  }
1300
+ .hawa-space-y-0 > :not([hidden]) ~ :not([hidden]) {
1301
+ --tw-space-y-reverse: 0;
1302
+ margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
1303
+ margin-bottom: calc(0px * var(--tw-space-y-reverse));
1304
+ }
1285
1305
  .hawa-space-y-1 > :not([hidden]) ~ :not([hidden]) {
1286
1306
  --tw-space-y-reverse: 0;
1287
1307
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
@@ -1336,6 +1356,9 @@ input[type="number"]::-webkit-inner-spin-button,
1336
1356
  .hawa-rounded {
1337
1357
  border-radius: var(--radius);
1338
1358
  }
1359
+ .hawa-rounded-3xl {
1360
+ border-radius: 1.5rem;
1361
+ }
1339
1362
  .hawa-rounded-\[inherit\] {
1340
1363
  border-radius: inherit;
1341
1364
  }
@@ -1772,6 +1795,10 @@ input[type="number"]::-webkit-inner-spin-button,
1772
1795
  font-size: 1.5rem;
1773
1796
  line-height: 2rem;
1774
1797
  }
1798
+ .hawa-text-6xl {
1799
+ font-size: 3.75rem;
1800
+ line-height: 1;
1801
+ }
1775
1802
  .hawa-text-\[10px\] {
1776
1803
  font-size: 10px;
1777
1804
  }
@@ -2906,6 +2933,16 @@ body {
2906
2933
  .md\:hawa-max-w-sm {
2907
2934
  max-width: 24rem;
2908
2935
  }
2936
+
2937
+ .md\:hawa-grid-cols-2 {
2938
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2939
+ }
2940
+ }
2941
+ @media (min-width: 1024px) {
2942
+
2943
+ .lg\:hawa-grid-cols-4 {
2944
+ grid-template-columns: repeat(4, minmax(0, 1fr));
2945
+ }
2909
2946
  }
2910
2947
  .\[\&\:has\(\[role\=checkbox\]\)\]\:hawa-pr-0:has([role=checkbox]) {
2911
2948
  padding-right: 0px;
package/dist/index.d.mts CHANGED
@@ -27,6 +27,7 @@ declare const buttonVariants: (props?: ({
27
27
  } & class_variance_authority_types.ClassProp) | undefined) => string;
28
28
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
29
29
  asChild?: boolean;
30
+ centered?: boolean;
30
31
  isLoading?: boolean;
31
32
  }
32
33
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -369,11 +370,10 @@ type SortButtonProps = {
369
370
  };
370
371
  declare const SortButton: React__default.FC<SortButtonProps>;
371
372
 
372
- type DataProps$1 = {};
373
- type DataTableProps = {
373
+ type DataTableProps<DataProps = {}> = {
374
374
  direction?: "rtl" | "ltr";
375
- columns: ColumnDef<DataProps$1>[];
376
- data: DataProps$1[];
375
+ columns: ColumnDef<DataProps>[];
376
+ data: DataProps[];
377
377
  condensed?: boolean;
378
378
  isLoading?: boolean;
379
379
  defaultSort?: string;
@@ -391,7 +391,7 @@ declare module "@tanstack/table-core" {
391
391
  sortable: any;
392
392
  }
393
393
  }
394
- declare const DataTable: React.FC<DataTableProps>;
394
+ declare const DataTable: <DataProps extends {}>({ columns, data, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
395
395
 
396
396
  type DataProps = {};
397
397
  type SimpleTableProps = {
@@ -630,4 +630,351 @@ type TypographyTypes = {
630
630
  };
631
631
  declare const InterfaceSettings: FC<TypographyTypes>;
632
632
 
633
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, SimpleTable, Skeleton, Slider, SortButton, SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
633
+ type StatTypes = {
634
+ label?: string;
635
+ color?: string;
636
+ number?: string;
637
+ helperText?: string;
638
+ chart?: any;
639
+ icon?: any;
640
+ variant?: "default" | "plain" | "contained" | "outlined" | "brutalist" | "dropshadow";
641
+ width?: "full" | "min" | "normal";
642
+ isLoading?: boolean;
643
+ handleClick?: () => void;
644
+ };
645
+ declare const Stats: FC<StatTypes>;
646
+
647
+ type LoginFormTypes = {
648
+ texts?: {
649
+ emailLabel?: string;
650
+ emailPlaceholder?: string;
651
+ emailRequiredText?: string;
652
+ emailInvalidText?: string;
653
+ usernameLabel?: string;
654
+ usernamePlaceholder?: string;
655
+ usernameRequired?: string;
656
+ phoneRequiredText?: string;
657
+ passwordLabel?: string;
658
+ passwordPlaceholder?: string;
659
+ passwordRequiredText?: string;
660
+ forgotPasswordText?: string;
661
+ newUserText?: string;
662
+ createAccount?: string;
663
+ loginText?: string;
664
+ loginViaGoogleLabel?: string;
665
+ loginViaGithubLabel?: string;
666
+ loginViaTwitterLabel?: string;
667
+ };
668
+ handleLanguage?: () => void;
669
+ currentLanguage?: any;
670
+ handleColorMode?: () => void;
671
+ currentColorMode?: any;
672
+ logosOnly?: boolean;
673
+ direction?: "rtl" | "ltr";
674
+ showError?: any;
675
+ errorTitle?: string;
676
+ errorText?: string;
677
+ loginType?: "email" | "username" | "phone";
678
+ withoutResetPassword?: boolean;
679
+ withoutSignUp?: boolean;
680
+ /**
681
+ *show spinner if true
682
+ */
683
+ isLoading?: any;
684
+ isGoogleLoading?: boolean;
685
+ isTwitterLoading?: boolean;
686
+ isGithubLoading?: boolean;
687
+ viaGoogle?: boolean;
688
+ viaGithub?: boolean;
689
+ viaTwitter?: boolean;
690
+ /**
691
+ * Handle the login function.
692
+ */
693
+ handleLogin?: (e: any) => void;
694
+ /**
695
+ * Handle routing to register page
696
+ */
697
+ handleRouteToSignUp?: () => void;
698
+ handleForgotPassword?: () => void;
699
+ handleGoogleLogin?: () => void;
700
+ handleGithubLogin?: () => void;
701
+ handleTwitterLogin?: () => void;
702
+ };
703
+ declare const LoginForm: FC<LoginFormTypes>;
704
+
705
+ type RegisterFormTypes = {
706
+ handleLanguage?: () => void;
707
+ currentLanguage?: any;
708
+ handleColorMode?: () => void;
709
+ currentColorMode?: any;
710
+ direction?: "rtl" | "ltr";
711
+ logosOnly?: boolean;
712
+ texts: {
713
+ fullNameLabel: string;
714
+ fullNamePlaceholder: string;
715
+ fullNameRequiredText: string;
716
+ emailLabel: string;
717
+ emailPlaceholder: string;
718
+ emailRequiredText: string;
719
+ emailInvalidText: string;
720
+ usernameLabel: string;
721
+ usernamePlaceholder: string;
722
+ usernameRequired: string;
723
+ passwordLabel: string;
724
+ passwordPlaceholder: string;
725
+ passwordRequiredText: string;
726
+ passwordTooShortText: string;
727
+ confirmPasswordLabel: string;
728
+ confirmPasswordPlaceholder: string;
729
+ refCodePlaceholder: string;
730
+ subscribeToNewsletter: string;
731
+ forgotPasswordText: string;
732
+ termsText: string;
733
+ iAcceptText: string;
734
+ termsRequiredText: string;
735
+ newUserText: string;
736
+ registerText: string;
737
+ loginText: string;
738
+ existingUserText: string;
739
+ registerViaGoogleLabel: string;
740
+ registerViaGithubLabel: string;
741
+ registerViaTwitterLabel: string;
742
+ refCode: string;
743
+ userReferenceLabel: string;
744
+ };
745
+ viaGoogle: boolean;
746
+ viaGithub: boolean;
747
+ viaTwitter: boolean;
748
+ showRefCode: boolean;
749
+ showUserSource: boolean;
750
+ showTermsOption: boolean;
751
+ showNewsletterOption: boolean;
752
+ handleRegister: (e: any) => void;
753
+ handleRouteToLogin: () => void;
754
+ handleGoogleRegister: () => void;
755
+ handleGithubRegister: () => void;
756
+ handleTwitterRegister: () => void;
757
+ handleRouteToTOS: () => void;
758
+ showError: any;
759
+ errorTitle: any;
760
+ errorText: any;
761
+ registerFields: any[];
762
+ isLoading?: boolean;
763
+ };
764
+ declare const RegisterForm: FC<RegisterFormTypes>;
765
+
766
+ type AppLandingTypes = {
767
+ texts?: {
768
+ newUserText?: string;
769
+ createAccount?: string;
770
+ continueWithGoogle?: string;
771
+ continueWithTwitter?: string;
772
+ continueWithApple?: string;
773
+ continueWithMicrosoft?: string;
774
+ continueWithGithub?: string;
775
+ continueWithEmail?: string;
776
+ continueWithPhone?: string;
777
+ };
778
+ viaGoogle?: boolean;
779
+ viaTwitter?: boolean;
780
+ viaGithub?: boolean;
781
+ viaMicrosoft?: boolean;
782
+ viaEmail?: boolean;
783
+ viaPhone?: boolean;
784
+ viaApple?: boolean;
785
+ withoutSignUp?: boolean;
786
+ size: "small" | "normal" | "full";
787
+ direction: "rtl" | "ltr";
788
+ handleSignIn: () => void;
789
+ handleSignUp: () => void;
790
+ handleLanguage: () => void;
791
+ handleColorMode: () => void;
792
+ handleRouteToSignUp?: () => void;
793
+ handleGoogle?: () => void;
794
+ handleTwitter?: () => void;
795
+ handleApple?: () => void;
796
+ handleMicrosoft?: () => void;
797
+ handleGithub?: () => void;
798
+ handleEmail?: () => void;
799
+ handlePhone?: () => void;
800
+ };
801
+ declare const AppLanding: FC<AppLandingTypes>;
802
+
803
+ type CheckEmailBlocks = {
804
+ texts?: {
805
+ checkEmail: string;
806
+ resendEmail: string;
807
+ pleaseVerify: string;
808
+ };
809
+ handleResend?: () => void;
810
+ };
811
+ declare const CheckEmail: FC<CheckEmailBlocks>;
812
+
813
+ type NewPasswordTypes = {
814
+ handleNewPassword: () => void;
815
+ direction?: "rtl" | "ltr";
816
+ headless?: boolean;
817
+ passwordChanged: any;
818
+ texts: {
819
+ passwordPlaceholder: string;
820
+ updatePassword: string;
821
+ passwordRequiredText: string;
822
+ passwordLabel: string;
823
+ confirmPasswordPlaceholder: string;
824
+ confirmPasswordLabel: string;
825
+ confirmPasswordRequiredText: string;
826
+ passwordMatchError: string;
827
+ passwordChanged: string;
828
+ };
829
+ };
830
+ declare const NewPasswordForm: FC<NewPasswordTypes>;
831
+
832
+ type ResetPasswordType = {
833
+ handleResetPassword: (e: any) => void;
834
+ handleRouteToRegister: () => void;
835
+ sent: any;
836
+ texts?: {
837
+ emailLabel: string;
838
+ emailPlaceholder: string;
839
+ emailRequiredText: string;
840
+ emailInvalidText: string;
841
+ emailSentText: string;
842
+ resetPassword: string;
843
+ registerText: string;
844
+ dontHaveAccount: string;
845
+ };
846
+ headless?: boolean;
847
+ direction?: "rtl" | "ltr";
848
+ };
849
+ declare const ResetPasswordForm: FC<ResetPasswordType>;
850
+
851
+ type TConfirmation = {
852
+ showError?: any;
853
+ errorTitle?: any;
854
+ errorText?: any;
855
+ texts?: {
856
+ checkYourPhone?: string;
857
+ weSentCode?: string;
858
+ didntGetCode?: string;
859
+ resendCode?: string;
860
+ codeLabel?: string;
861
+ codePlaceholder?: string;
862
+ codeRequiredText?: string;
863
+ confirm?: string;
864
+ cancel?: string;
865
+ };
866
+ phoneNumber?: string;
867
+ submitConfirmation?: any;
868
+ handleSignIn?: any;
869
+ };
870
+ declare const CodeConfirmation: FC<TConfirmation>;
871
+
872
+ type ComponentTypes$2 = {
873
+ title?: string;
874
+ question: string;
875
+ description?: string;
876
+ tag?: any;
877
+ options?: RadioOptionsTypes[];
878
+ texts?: {
879
+ least: string;
880
+ most: string;
881
+ };
882
+ position?: "bottom-right" | "bottom-left";
883
+ onOptionClicked?: (option: any) => void;
884
+ };
885
+ declare const UserReferralSource: FC<ComponentTypes$2>;
886
+
887
+ type ComponentTypes$1 = {
888
+ title?: string;
889
+ question: string;
890
+ banner?: boolean;
891
+ options?: any[];
892
+ texts?: {
893
+ least: string;
894
+ most: string;
895
+ };
896
+ position?: "bottom-right" | "bottom-left";
897
+ onOptionClicked?: (option: any) => void;
898
+ };
899
+ declare const FeedbackRating: FC<ComponentTypes$1>;
900
+
901
+ type ComponentTypes = {
902
+ handleSubmit: ({}: {}) => void;
903
+ showSuccess?: boolean;
904
+ };
905
+ declare const FeedbackEmoji: FC<ComponentTypes>;
906
+
907
+ type TabType = {
908
+ title: string;
909
+ content: string;
910
+ value: string;
911
+ };
912
+ type LegalTextsType = {
913
+ tabs: TabType[];
914
+ activeTab?: any;
915
+ handleTabChange?: any;
916
+ direction?: any;
917
+ defaultTab?: any;
918
+ scrollAreaClassName?: string;
919
+ };
920
+ declare const LegalTexts: React__default.FC<LegalTextsType>;
921
+
922
+ type NotFoundTypes = {
923
+ variant?: "outlined" | "contained" | "neobrutalism";
924
+ texts?: {
925
+ pageNotFound?: string;
926
+ ifLost?: string;
927
+ home?: string;
928
+ };
929
+ };
930
+ declare const NotFound: FC<NotFoundTypes>;
931
+
932
+ type TEmptyState$1 = {
933
+ onActionClick: () => void;
934
+ texts?: {
935
+ youreCaughtUp?: string;
936
+ actionText?: string;
937
+ };
938
+ };
939
+ declare const EmptyState: FC<TEmptyState$1>;
940
+
941
+ type TEmptyState = {
942
+ variant?: "outlined" | "contained" | "neobrutalism";
943
+ };
944
+ declare const Testimonial: FC<TEmptyState>;
945
+
946
+ type TLeadGenerator = {
947
+ texts?: {
948
+ title?: string;
949
+ subtitle?: string;
950
+ submit?: string;
951
+ };
952
+ handleNewsletterSub: (e: string) => void;
953
+ };
954
+ declare const LeadGenerator: FC<TLeadGenerator>;
955
+
956
+ type AnnouncementTypes = {
957
+ onActionClick: () => void;
958
+ actionText?: string;
959
+ title?: string;
960
+ subtitle?: string;
961
+ };
962
+ declare const Announcement: FC<AnnouncementTypes>;
963
+
964
+ type TNoPermission = {
965
+ texts?: {
966
+ title: string;
967
+ subtitle: string;
968
+ };
969
+ };
970
+ declare const NoPermission: FC<TNoPermission>;
971
+
972
+ type UsageCardTypes = {
973
+ tooltip?: any;
974
+ title: any;
975
+ percent: any;
976
+ currentUsage: any;
977
+ };
978
+ declare const Usage: FC<UsageCardTypes>;
979
+
980
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, Alert, Announcement, AppLanding, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UserReferralSource, buttonVariants, useFormField };