@sikka/hawa 0.6.5-next → 0.6.9-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
@@ -598,8 +598,6 @@ input[type="number"]::-webkit-inner-spin-button,
598
598
  display: inline-block;
599
599
  position: relative;
600
600
  top: 3px;
601
- /* margin: 0 5px 0 0; */
602
-
603
601
  width: 15px;
604
602
  height: 15px;
605
603
  border-radius: 11px;
@@ -618,22 +616,32 @@ input[type="number"]::-webkit-inner-spin-button,
618
616
  height: 9px;
619
617
  position: absolute;
620
618
  top: 6px;
621
- left: 3px;
622
619
  content: " ";
623
620
  display: block;
624
621
  background: hsl(var(--primary));
625
622
  }
623
+ .radio-item-default.right-3px input[type="radio"]:checked + label:after {
624
+ right: 3px;
625
+ }
626
+ .radio-item-default.left-3px input[type="radio"]:checked + label:after {
627
+ left: 3px;
628
+ }
626
629
  .radio-item-bordered input[type="radio"]:checked + label:after {
627
630
  border-radius: 100%;
628
631
  width: 9px;
629
632
  height: 9px;
630
633
  position: absolute;
631
634
  top: 22px;
632
- left: 23px;
633
635
  content: " ";
634
636
  display: block;
635
637
  background: hsl(var(--primary));
636
638
  }
639
+ .radio-item-bordered.left-23px input[type="radio"]:checked + label:after {
640
+ left: 23px;
641
+ }
642
+ .radio-item-bordered.right-19px input[type="radio"]:checked + label:after {
643
+ right: 19px;
644
+ }
637
645
  .clickable-link {
638
646
  cursor: pointer;
639
647
  color: hsl(var(--primary) / 0.8);
@@ -2342,15 +2350,30 @@ input[type="number"]::-webkit-inner-spin-button,
2342
2350
  --tw-enter-translate-x: initial;
2343
2351
  --tw-enter-translate-y: initial;
2344
2352
  }
2353
+ .hawa-animate-out {
2354
+ animation-name: exit;
2355
+ animation-duration: 150ms;
2356
+ --tw-exit-opacity: initial;
2357
+ --tw-exit-scale: initial;
2358
+ --tw-exit-rotate: initial;
2359
+ --tw-exit-translate-x: initial;
2360
+ --tw-exit-translate-y: initial;
2361
+ }
2345
2362
  .hawa-fade-in {
2346
2363
  --tw-enter-opacity: 0;
2347
2364
  }
2348
2365
  .hawa-fade-in-0 {
2349
2366
  --tw-enter-opacity: 0;
2350
2367
  }
2368
+ .hawa-fade-out-0 {
2369
+ --tw-exit-opacity: 0;
2370
+ }
2351
2371
  .hawa-zoom-in-95 {
2352
2372
  --tw-enter-scale: .95;
2353
2373
  }
2374
+ .hawa-zoom-out-95 {
2375
+ --tw-exit-scale: .95;
2376
+ }
2354
2377
  .hawa-duration-100 {
2355
2378
  animation-duration: 100ms;
2356
2379
  }
@@ -2384,6 +2407,10 @@ input[type="number"]::-webkit-inner-spin-button,
2384
2407
  body {
2385
2408
  font-family: "IBM Plex Sans Arabic", sans-serif;
2386
2409
  }
2410
+ :is(.hawa-dark .dark\:dark-shadow) {
2411
+ box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
2412
+ 0 4px 6px -2px rgba(255, 255, 255, 0.05);
2413
+ }
2387
2414
  :is(.hawa-dark .dark\:hover\:dark-shadow:hover) {
2388
2415
  box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
2389
2416
  0 4px 6px -2px rgba(255, 255, 255, 0.05);
@@ -3205,6 +3232,9 @@ body {
3205
3232
  .\[\&\:not\(\:last-child\)\]\:hawa-border-b:not(:last-child) {
3206
3233
  border-bottom-width: 1px;
3207
3234
  }
3235
+ .\[\&\:not\(\:last-child\)\]\:hawa-border-l:not(:last-child) {
3236
+ border-left-width: 1px;
3237
+ }
3208
3238
  .\[\&\:not\(\:last-child\)\]\:hawa-border-r:not(:last-child) {
3209
3239
  border-right-width: 1px;
3210
3240
  }
package/dist/index.d.mts CHANGED
@@ -343,6 +343,8 @@ type PinInputTypes = {
343
343
  width?: "normal" | "full";
344
344
  /** Function to get the value of pins */
345
345
  getPins?: (pins: string[]) => void;
346
+ /** The small red text under the input field to show validation or a hint. */
347
+ helperText?: any;
346
348
  };
347
349
  declare const PinInput: FC<PinInputTypes>;
348
350
 
@@ -626,6 +628,8 @@ type SelectTypes = {
626
628
  getOptionLabel?: any;
627
629
  disabled?: boolean;
628
630
  defaultValue?: any;
631
+ handleCreateOption?: () => void;
632
+ placeholder?: string;
629
633
  isLoading?: any;
630
634
  texts?: {
631
635
  noOptions?: string;
@@ -735,6 +739,7 @@ type AppLayoutTypes = {
735
739
  keepDrawerOpen?: boolean;
736
740
  DrawerFooterActions?: any;
737
741
  clickedItem?: any;
742
+ onLogoClick?: () => void;
738
743
  texts?: {
739
744
  expandSidebar?: string;
740
745
  collapseSidebar?: string;
@@ -844,12 +849,19 @@ type LoginFormTypes = {
844
849
  declare const LoginForm: FC<LoginFormTypes>;
845
850
 
846
851
  type RegisterFormTypes = {
852
+ /** Callback function triggered to handle language changes.*/
847
853
  handleLanguage?: () => void;
854
+ /** The current language being used in the application. */
848
855
  currentLanguage?: any;
856
+ /** Callback function triggered to handle color mode changes. */
849
857
  handleColorMode?: () => void;
858
+ /** The current color mode being used in the application. */
850
859
  currentColorMode?: any;
860
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
851
861
  direction?: "rtl" | "ltr";
862
+ /** Determines whether to display logos only or with text in the social media registration section. */
852
863
  logosOnly?: boolean;
864
+ /** Object containing text labels used throughout the form. */
853
865
  texts: {
854
866
  fullNameLabel: string;
855
867
  fullNamePlaceholder: string;
@@ -865,6 +877,7 @@ type RegisterFormTypes = {
865
877
  passwordPlaceholder: string;
866
878
  passwordRequiredText: string;
867
879
  passwordTooShortText: string;
880
+ passwordsDontMatch: string;
868
881
  confirmPasswordLabel: string;
869
882
  confirmPasswordPlaceholder: string;
870
883
  confirmPasswordRequired: string;
@@ -884,23 +897,41 @@ type RegisterFormTypes = {
884
897
  refCode: string;
885
898
  userReferenceLabel: string;
886
899
  };
900
+ /** Enables registration via Google when set to true. */
887
901
  viaGoogle: boolean;
902
+ /** Enables registration via Github when set to true. */
888
903
  viaGithub: boolean;
904
+ /** Enables registration via Twitter when set to true. */
889
905
  viaTwitter: boolean;
906
+ /** Determines whether to show the referral code field. */
890
907
  showRefCode: boolean;
908
+ /** Determines whether to show the user source selection. */
891
909
  showUserSource: boolean;
910
+ /** Determines whether to show the terms acceptance checkbox. */
892
911
  showTermsOption: boolean;
912
+ /** Determines whether to show the newsletter subscription checkbox. */
893
913
  showNewsletterOption: boolean;
914
+ /** Callback function triggered on form submission. */
894
915
  handleRegister: (e: any) => void;
916
+ /** Callback function triggered to route to the login page. */
895
917
  handleRouteToLogin: () => void;
918
+ /** Callback function triggered to handle registration via Google. */
896
919
  handleGoogleRegister: () => void;
920
+ /** Callback function triggered to handle registration via Github. */
897
921
  handleGithubRegister: () => void;
922
+ /** Callback function triggered to handle registration via Twitter. */
898
923
  handleTwitterRegister: () => void;
924
+ /** Callback function triggered to route to the Terms of Service page. */
899
925
  handleRouteToTOS: () => void;
926
+ /** Determines whether to show an error alert. */
900
927
  showError: any;
928
+ /** Title for the error alert. */
901
929
  errorTitle: any;
930
+ /** Text for the error alert. */
902
931
  errorText: any;
932
+ /** Array containing the fields to be included in the form. */
903
933
  registerFields: any[];
934
+ /** Indicates whether the form submission is in progress. */
904
935
  isLoading?: boolean;
905
936
  };
906
937
  declare const RegisterForm: FC<RegisterFormTypes>;
@@ -927,11 +958,9 @@ type AppLandingTypes = {
927
958
  withoutSignUp?: boolean;
928
959
  size: "small" | "normal" | "full";
929
960
  direction: "rtl" | "ltr";
930
- handleSignIn: () => void;
931
- handleSignUp: () => void;
961
+ handleRouteToRegister: () => void;
932
962
  handleLanguage: () => void;
933
963
  handleColorMode: () => void;
934
- handleRouteToSignUp?: () => void;
935
964
  handleGoogle?: () => void;
936
965
  handleTwitter?: () => void;
937
966
  handleApple?: () => void;
@@ -1004,12 +1033,12 @@ type TConfirmation = {
1004
1033
  codeLabel?: string;
1005
1034
  codePlaceholder?: string;
1006
1035
  codeRequiredText?: string;
1036
+ codeTooShort?: string;
1007
1037
  confirm?: string;
1008
1038
  cancel?: string;
1009
1039
  };
1010
1040
  phoneNumber?: string;
1011
- submitConfirmation?: any;
1012
- handleSignIn?: any;
1041
+ handleConfirm?: any;
1013
1042
  };
1014
1043
  declare const CodeConfirmation: FC<TConfirmation>;
1015
1044
 
@@ -1049,7 +1078,15 @@ type ComponentTypes = {
1049
1078
  declare const FeedbackEmoji: FC<ComponentTypes>;
1050
1079
 
1051
1080
  type FeedbackFormType = {
1052
- onSubmit: (data: any) => void;
1081
+ onSubmit: (e: any) => void;
1082
+ texts: {
1083
+ requestType?: string;
1084
+ requestTypeRequired?: string;
1085
+ description?: string;
1086
+ descriptionRequired?: string;
1087
+ descriptionTooShort?: string;
1088
+ submit?: string;
1089
+ };
1053
1090
  };
1054
1091
  declare const FeedbackForm: React__default.FC<FeedbackFormType>;
1055
1092
 
package/dist/index.d.ts CHANGED
@@ -343,6 +343,8 @@ type PinInputTypes = {
343
343
  width?: "normal" | "full";
344
344
  /** Function to get the value of pins */
345
345
  getPins?: (pins: string[]) => void;
346
+ /** The small red text under the input field to show validation or a hint. */
347
+ helperText?: any;
346
348
  };
347
349
  declare const PinInput: FC<PinInputTypes>;
348
350
 
@@ -626,6 +628,8 @@ type SelectTypes = {
626
628
  getOptionLabel?: any;
627
629
  disabled?: boolean;
628
630
  defaultValue?: any;
631
+ handleCreateOption?: () => void;
632
+ placeholder?: string;
629
633
  isLoading?: any;
630
634
  texts?: {
631
635
  noOptions?: string;
@@ -735,6 +739,7 @@ type AppLayoutTypes = {
735
739
  keepDrawerOpen?: boolean;
736
740
  DrawerFooterActions?: any;
737
741
  clickedItem?: any;
742
+ onLogoClick?: () => void;
738
743
  texts?: {
739
744
  expandSidebar?: string;
740
745
  collapseSidebar?: string;
@@ -844,12 +849,19 @@ type LoginFormTypes = {
844
849
  declare const LoginForm: FC<LoginFormTypes>;
845
850
 
846
851
  type RegisterFormTypes = {
852
+ /** Callback function triggered to handle language changes.*/
847
853
  handleLanguage?: () => void;
854
+ /** The current language being used in the application. */
848
855
  currentLanguage?: any;
856
+ /** Callback function triggered to handle color mode changes. */
849
857
  handleColorMode?: () => void;
858
+ /** The current color mode being used in the application. */
850
859
  currentColorMode?: any;
860
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
851
861
  direction?: "rtl" | "ltr";
862
+ /** Determines whether to display logos only or with text in the social media registration section. */
852
863
  logosOnly?: boolean;
864
+ /** Object containing text labels used throughout the form. */
853
865
  texts: {
854
866
  fullNameLabel: string;
855
867
  fullNamePlaceholder: string;
@@ -865,6 +877,7 @@ type RegisterFormTypes = {
865
877
  passwordPlaceholder: string;
866
878
  passwordRequiredText: string;
867
879
  passwordTooShortText: string;
880
+ passwordsDontMatch: string;
868
881
  confirmPasswordLabel: string;
869
882
  confirmPasswordPlaceholder: string;
870
883
  confirmPasswordRequired: string;
@@ -884,23 +897,41 @@ type RegisterFormTypes = {
884
897
  refCode: string;
885
898
  userReferenceLabel: string;
886
899
  };
900
+ /** Enables registration via Google when set to true. */
887
901
  viaGoogle: boolean;
902
+ /** Enables registration via Github when set to true. */
888
903
  viaGithub: boolean;
904
+ /** Enables registration via Twitter when set to true. */
889
905
  viaTwitter: boolean;
906
+ /** Determines whether to show the referral code field. */
890
907
  showRefCode: boolean;
908
+ /** Determines whether to show the user source selection. */
891
909
  showUserSource: boolean;
910
+ /** Determines whether to show the terms acceptance checkbox. */
892
911
  showTermsOption: boolean;
912
+ /** Determines whether to show the newsletter subscription checkbox. */
893
913
  showNewsletterOption: boolean;
914
+ /** Callback function triggered on form submission. */
894
915
  handleRegister: (e: any) => void;
916
+ /** Callback function triggered to route to the login page. */
895
917
  handleRouteToLogin: () => void;
918
+ /** Callback function triggered to handle registration via Google. */
896
919
  handleGoogleRegister: () => void;
920
+ /** Callback function triggered to handle registration via Github. */
897
921
  handleGithubRegister: () => void;
922
+ /** Callback function triggered to handle registration via Twitter. */
898
923
  handleTwitterRegister: () => void;
924
+ /** Callback function triggered to route to the Terms of Service page. */
899
925
  handleRouteToTOS: () => void;
926
+ /** Determines whether to show an error alert. */
900
927
  showError: any;
928
+ /** Title for the error alert. */
901
929
  errorTitle: any;
930
+ /** Text for the error alert. */
902
931
  errorText: any;
932
+ /** Array containing the fields to be included in the form. */
903
933
  registerFields: any[];
934
+ /** Indicates whether the form submission is in progress. */
904
935
  isLoading?: boolean;
905
936
  };
906
937
  declare const RegisterForm: FC<RegisterFormTypes>;
@@ -927,11 +958,9 @@ type AppLandingTypes = {
927
958
  withoutSignUp?: boolean;
928
959
  size: "small" | "normal" | "full";
929
960
  direction: "rtl" | "ltr";
930
- handleSignIn: () => void;
931
- handleSignUp: () => void;
961
+ handleRouteToRegister: () => void;
932
962
  handleLanguage: () => void;
933
963
  handleColorMode: () => void;
934
- handleRouteToSignUp?: () => void;
935
964
  handleGoogle?: () => void;
936
965
  handleTwitter?: () => void;
937
966
  handleApple?: () => void;
@@ -1004,12 +1033,12 @@ type TConfirmation = {
1004
1033
  codeLabel?: string;
1005
1034
  codePlaceholder?: string;
1006
1035
  codeRequiredText?: string;
1036
+ codeTooShort?: string;
1007
1037
  confirm?: string;
1008
1038
  cancel?: string;
1009
1039
  };
1010
1040
  phoneNumber?: string;
1011
- submitConfirmation?: any;
1012
- handleSignIn?: any;
1041
+ handleConfirm?: any;
1013
1042
  };
1014
1043
  declare const CodeConfirmation: FC<TConfirmation>;
1015
1044
 
@@ -1049,7 +1078,15 @@ type ComponentTypes = {
1049
1078
  declare const FeedbackEmoji: FC<ComponentTypes>;
1050
1079
 
1051
1080
  type FeedbackFormType = {
1052
- onSubmit: (data: any) => void;
1081
+ onSubmit: (e: any) => void;
1082
+ texts: {
1083
+ requestType?: string;
1084
+ requestTypeRequired?: string;
1085
+ description?: string;
1086
+ descriptionRequired?: string;
1087
+ descriptionTooShort?: string;
1088
+ submit?: string;
1089
+ };
1053
1090
  };
1054
1091
  declare const FeedbackForm: React__default.FC<FeedbackFormType>;
1055
1092