@sikka/hawa 0.6.5-next → 0.6.10-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);
@@ -1965,6 +1973,9 @@ input[type="number"]::-webkit-inner-spin-button,
1965
1973
  .hawa-pt-1 {
1966
1974
  padding-top: 0.25rem;
1967
1975
  }
1976
+ .hawa-pt-10 {
1977
+ padding-top: 2.5rem;
1978
+ }
1968
1979
  .hawa-pt-2 {
1969
1980
  padding-top: 0.5rem;
1970
1981
  }
@@ -2342,15 +2353,30 @@ input[type="number"]::-webkit-inner-spin-button,
2342
2353
  --tw-enter-translate-x: initial;
2343
2354
  --tw-enter-translate-y: initial;
2344
2355
  }
2356
+ .hawa-animate-out {
2357
+ animation-name: exit;
2358
+ animation-duration: 150ms;
2359
+ --tw-exit-opacity: initial;
2360
+ --tw-exit-scale: initial;
2361
+ --tw-exit-rotate: initial;
2362
+ --tw-exit-translate-x: initial;
2363
+ --tw-exit-translate-y: initial;
2364
+ }
2345
2365
  .hawa-fade-in {
2346
2366
  --tw-enter-opacity: 0;
2347
2367
  }
2348
2368
  .hawa-fade-in-0 {
2349
2369
  --tw-enter-opacity: 0;
2350
2370
  }
2371
+ .hawa-fade-out-0 {
2372
+ --tw-exit-opacity: 0;
2373
+ }
2351
2374
  .hawa-zoom-in-95 {
2352
2375
  --tw-enter-scale: .95;
2353
2376
  }
2377
+ .hawa-zoom-out-95 {
2378
+ --tw-exit-scale: .95;
2379
+ }
2354
2380
  .hawa-duration-100 {
2355
2381
  animation-duration: 100ms;
2356
2382
  }
@@ -2384,6 +2410,10 @@ input[type="number"]::-webkit-inner-spin-button,
2384
2410
  body {
2385
2411
  font-family: "IBM Plex Sans Arabic", sans-serif;
2386
2412
  }
2413
+ :is(.hawa-dark .dark\:dark-shadow) {
2414
+ box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
2415
+ 0 4px 6px -2px rgba(255, 255, 255, 0.05);
2416
+ }
2387
2417
  :is(.hawa-dark .dark\:hover\:dark-shadow:hover) {
2388
2418
  box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
2389
2419
  0 4px 6px -2px rgba(255, 255, 255, 0.05);
@@ -3205,6 +3235,9 @@ body {
3205
3235
  .\[\&\:not\(\:last-child\)\]\:hawa-border-b:not(:last-child) {
3206
3236
  border-bottom-width: 1px;
3207
3237
  }
3238
+ .\[\&\:not\(\:last-child\)\]\:hawa-border-l:not(:last-child) {
3239
+ border-left-width: 1px;
3240
+ }
3208
3241
  .\[\&\:not\(\:last-child\)\]\:hawa-border-r:not(:last-child) {
3209
3242
  border-right-width: 1px;
3210
3243
  }
package/dist/index.d.mts CHANGED
@@ -143,8 +143,6 @@ type TooltipTypes = {
143
143
  declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
144
144
 
145
145
  type CodeBlockTypes = {
146
- /** Sets the theme color of the code block.*/
147
- color?: "dark" | "light";
148
146
  /** Specifies the programming language for syntax highlighting.*/
149
147
  language?: string;
150
148
  /** Defines the width of the code block.*/
@@ -343,6 +341,8 @@ type PinInputTypes = {
343
341
  width?: "normal" | "full";
344
342
  /** Function to get the value of pins */
345
343
  getPins?: (pins: string[]) => void;
344
+ /** The small red text under the input field to show validation or a hint. */
345
+ helperText?: any;
346
346
  };
347
347
  declare const PinInput: FC<PinInputTypes>;
348
348
 
@@ -626,6 +626,8 @@ type SelectTypes = {
626
626
  getOptionLabel?: any;
627
627
  disabled?: boolean;
628
628
  defaultValue?: any;
629
+ handleCreateOption?: () => void;
630
+ placeholder?: string;
629
631
  isLoading?: any;
630
632
  texts?: {
631
633
  noOptions?: string;
@@ -735,6 +737,7 @@ type AppLayoutTypes = {
735
737
  keepDrawerOpen?: boolean;
736
738
  DrawerFooterActions?: any;
737
739
  clickedItem?: any;
740
+ onLogoClick?: () => void;
738
741
  texts?: {
739
742
  expandSidebar?: string;
740
743
  collapseSidebar?: string;
@@ -844,12 +847,19 @@ type LoginFormTypes = {
844
847
  declare const LoginForm: FC<LoginFormTypes>;
845
848
 
846
849
  type RegisterFormTypes = {
850
+ /** Callback function triggered to handle language changes.*/
847
851
  handleLanguage?: () => void;
852
+ /** The current language being used in the application. */
848
853
  currentLanguage?: any;
854
+ /** Callback function triggered to handle color mode changes. */
849
855
  handleColorMode?: () => void;
856
+ /** The current color mode being used in the application. */
850
857
  currentColorMode?: any;
858
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
851
859
  direction?: "rtl" | "ltr";
860
+ /** Determines whether to display logos only or with text in the social media registration section. */
852
861
  logosOnly?: boolean;
862
+ /** Object containing text labels used throughout the form. */
853
863
  texts: {
854
864
  fullNameLabel: string;
855
865
  fullNamePlaceholder: string;
@@ -865,6 +875,7 @@ type RegisterFormTypes = {
865
875
  passwordPlaceholder: string;
866
876
  passwordRequiredText: string;
867
877
  passwordTooShortText: string;
878
+ passwordsDontMatch: string;
868
879
  confirmPasswordLabel: string;
869
880
  confirmPasswordPlaceholder: string;
870
881
  confirmPasswordRequired: string;
@@ -884,23 +895,41 @@ type RegisterFormTypes = {
884
895
  refCode: string;
885
896
  userReferenceLabel: string;
886
897
  };
898
+ /** Enables registration via Google when set to true. */
887
899
  viaGoogle: boolean;
900
+ /** Enables registration via Github when set to true. */
888
901
  viaGithub: boolean;
902
+ /** Enables registration via Twitter when set to true. */
889
903
  viaTwitter: boolean;
904
+ /** Determines whether to show the referral code field. */
890
905
  showRefCode: boolean;
906
+ /** Determines whether to show the user source selection. */
891
907
  showUserSource: boolean;
908
+ /** Determines whether to show the terms acceptance checkbox. */
892
909
  showTermsOption: boolean;
910
+ /** Determines whether to show the newsletter subscription checkbox. */
893
911
  showNewsletterOption: boolean;
912
+ /** Callback function triggered on form submission. */
894
913
  handleRegister: (e: any) => void;
914
+ /** Callback function triggered to route to the login page. */
895
915
  handleRouteToLogin: () => void;
916
+ /** Callback function triggered to handle registration via Google. */
896
917
  handleGoogleRegister: () => void;
918
+ /** Callback function triggered to handle registration via Github. */
897
919
  handleGithubRegister: () => void;
920
+ /** Callback function triggered to handle registration via Twitter. */
898
921
  handleTwitterRegister: () => void;
922
+ /** Callback function triggered to route to the Terms of Service page. */
899
923
  handleRouteToTOS: () => void;
924
+ /** Determines whether to show an error alert. */
900
925
  showError: any;
926
+ /** Title for the error alert. */
901
927
  errorTitle: any;
928
+ /** Text for the error alert. */
902
929
  errorText: any;
930
+ /** Array containing the fields to be included in the form. */
903
931
  registerFields: any[];
932
+ /** Indicates whether the form submission is in progress. */
904
933
  isLoading?: boolean;
905
934
  };
906
935
  declare const RegisterForm: FC<RegisterFormTypes>;
@@ -927,11 +956,9 @@ type AppLandingTypes = {
927
956
  withoutSignUp?: boolean;
928
957
  size: "small" | "normal" | "full";
929
958
  direction: "rtl" | "ltr";
930
- handleSignIn: () => void;
931
- handleSignUp: () => void;
959
+ handleRouteToRegister: () => void;
932
960
  handleLanguage: () => void;
933
961
  handleColorMode: () => void;
934
- handleRouteToSignUp?: () => void;
935
962
  handleGoogle?: () => void;
936
963
  handleTwitter?: () => void;
937
964
  handleApple?: () => void;
@@ -1004,12 +1031,12 @@ type TConfirmation = {
1004
1031
  codeLabel?: string;
1005
1032
  codePlaceholder?: string;
1006
1033
  codeRequiredText?: string;
1034
+ codeTooShort?: string;
1007
1035
  confirm?: string;
1008
1036
  cancel?: string;
1009
1037
  };
1010
1038
  phoneNumber?: string;
1011
- submitConfirmation?: any;
1012
- handleSignIn?: any;
1039
+ handleConfirm?: any;
1013
1040
  };
1014
1041
  declare const CodeConfirmation: FC<TConfirmation>;
1015
1042
 
@@ -1049,7 +1076,15 @@ type ComponentTypes = {
1049
1076
  declare const FeedbackEmoji: FC<ComponentTypes>;
1050
1077
 
1051
1078
  type FeedbackFormType = {
1052
- onSubmit: (data: any) => void;
1079
+ onSubmit: (e: any) => void;
1080
+ texts: {
1081
+ requestType?: string;
1082
+ requestTypeRequired?: string;
1083
+ description?: string;
1084
+ descriptionRequired?: string;
1085
+ descriptionTooShort?: string;
1086
+ submit?: string;
1087
+ };
1053
1088
  };
1054
1089
  declare const FeedbackForm: React__default.FC<FeedbackFormType>;
1055
1090
 
package/dist/index.d.ts CHANGED
@@ -143,8 +143,6 @@ type TooltipTypes = {
143
143
  declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
144
144
 
145
145
  type CodeBlockTypes = {
146
- /** Sets the theme color of the code block.*/
147
- color?: "dark" | "light";
148
146
  /** Specifies the programming language for syntax highlighting.*/
149
147
  language?: string;
150
148
  /** Defines the width of the code block.*/
@@ -343,6 +341,8 @@ type PinInputTypes = {
343
341
  width?: "normal" | "full";
344
342
  /** Function to get the value of pins */
345
343
  getPins?: (pins: string[]) => void;
344
+ /** The small red text under the input field to show validation or a hint. */
345
+ helperText?: any;
346
346
  };
347
347
  declare const PinInput: FC<PinInputTypes>;
348
348
 
@@ -626,6 +626,8 @@ type SelectTypes = {
626
626
  getOptionLabel?: any;
627
627
  disabled?: boolean;
628
628
  defaultValue?: any;
629
+ handleCreateOption?: () => void;
630
+ placeholder?: string;
629
631
  isLoading?: any;
630
632
  texts?: {
631
633
  noOptions?: string;
@@ -735,6 +737,7 @@ type AppLayoutTypes = {
735
737
  keepDrawerOpen?: boolean;
736
738
  DrawerFooterActions?: any;
737
739
  clickedItem?: any;
740
+ onLogoClick?: () => void;
738
741
  texts?: {
739
742
  expandSidebar?: string;
740
743
  collapseSidebar?: string;
@@ -844,12 +847,19 @@ type LoginFormTypes = {
844
847
  declare const LoginForm: FC<LoginFormTypes>;
845
848
 
846
849
  type RegisterFormTypes = {
850
+ /** Callback function triggered to handle language changes.*/
847
851
  handleLanguage?: () => void;
852
+ /** The current language being used in the application. */
848
853
  currentLanguage?: any;
854
+ /** Callback function triggered to handle color mode changes. */
849
855
  handleColorMode?: () => void;
856
+ /** The current color mode being used in the application. */
850
857
  currentColorMode?: any;
858
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
851
859
  direction?: "rtl" | "ltr";
860
+ /** Determines whether to display logos only or with text in the social media registration section. */
852
861
  logosOnly?: boolean;
862
+ /** Object containing text labels used throughout the form. */
853
863
  texts: {
854
864
  fullNameLabel: string;
855
865
  fullNamePlaceholder: string;
@@ -865,6 +875,7 @@ type RegisterFormTypes = {
865
875
  passwordPlaceholder: string;
866
876
  passwordRequiredText: string;
867
877
  passwordTooShortText: string;
878
+ passwordsDontMatch: string;
868
879
  confirmPasswordLabel: string;
869
880
  confirmPasswordPlaceholder: string;
870
881
  confirmPasswordRequired: string;
@@ -884,23 +895,41 @@ type RegisterFormTypes = {
884
895
  refCode: string;
885
896
  userReferenceLabel: string;
886
897
  };
898
+ /** Enables registration via Google when set to true. */
887
899
  viaGoogle: boolean;
900
+ /** Enables registration via Github when set to true. */
888
901
  viaGithub: boolean;
902
+ /** Enables registration via Twitter when set to true. */
889
903
  viaTwitter: boolean;
904
+ /** Determines whether to show the referral code field. */
890
905
  showRefCode: boolean;
906
+ /** Determines whether to show the user source selection. */
891
907
  showUserSource: boolean;
908
+ /** Determines whether to show the terms acceptance checkbox. */
892
909
  showTermsOption: boolean;
910
+ /** Determines whether to show the newsletter subscription checkbox. */
893
911
  showNewsletterOption: boolean;
912
+ /** Callback function triggered on form submission. */
894
913
  handleRegister: (e: any) => void;
914
+ /** Callback function triggered to route to the login page. */
895
915
  handleRouteToLogin: () => void;
916
+ /** Callback function triggered to handle registration via Google. */
896
917
  handleGoogleRegister: () => void;
918
+ /** Callback function triggered to handle registration via Github. */
897
919
  handleGithubRegister: () => void;
920
+ /** Callback function triggered to handle registration via Twitter. */
898
921
  handleTwitterRegister: () => void;
922
+ /** Callback function triggered to route to the Terms of Service page. */
899
923
  handleRouteToTOS: () => void;
924
+ /** Determines whether to show an error alert. */
900
925
  showError: any;
926
+ /** Title for the error alert. */
901
927
  errorTitle: any;
928
+ /** Text for the error alert. */
902
929
  errorText: any;
930
+ /** Array containing the fields to be included in the form. */
903
931
  registerFields: any[];
932
+ /** Indicates whether the form submission is in progress. */
904
933
  isLoading?: boolean;
905
934
  };
906
935
  declare const RegisterForm: FC<RegisterFormTypes>;
@@ -927,11 +956,9 @@ type AppLandingTypes = {
927
956
  withoutSignUp?: boolean;
928
957
  size: "small" | "normal" | "full";
929
958
  direction: "rtl" | "ltr";
930
- handleSignIn: () => void;
931
- handleSignUp: () => void;
959
+ handleRouteToRegister: () => void;
932
960
  handleLanguage: () => void;
933
961
  handleColorMode: () => void;
934
- handleRouteToSignUp?: () => void;
935
962
  handleGoogle?: () => void;
936
963
  handleTwitter?: () => void;
937
964
  handleApple?: () => void;
@@ -1004,12 +1031,12 @@ type TConfirmation = {
1004
1031
  codeLabel?: string;
1005
1032
  codePlaceholder?: string;
1006
1033
  codeRequiredText?: string;
1034
+ codeTooShort?: string;
1007
1035
  confirm?: string;
1008
1036
  cancel?: string;
1009
1037
  };
1010
1038
  phoneNumber?: string;
1011
- submitConfirmation?: any;
1012
- handleSignIn?: any;
1039
+ handleConfirm?: any;
1013
1040
  };
1014
1041
  declare const CodeConfirmation: FC<TConfirmation>;
1015
1042
 
@@ -1049,7 +1076,15 @@ type ComponentTypes = {
1049
1076
  declare const FeedbackEmoji: FC<ComponentTypes>;
1050
1077
 
1051
1078
  type FeedbackFormType = {
1052
- onSubmit: (data: any) => void;
1079
+ onSubmit: (e: any) => void;
1080
+ texts: {
1081
+ requestType?: string;
1082
+ requestTypeRequired?: string;
1083
+ description?: string;
1084
+ descriptionRequired?: string;
1085
+ descriptionTooShort?: string;
1086
+ submit?: string;
1087
+ };
1053
1088
  };
1054
1089
  declare const FeedbackForm: React__default.FC<FeedbackFormType>;
1055
1090