@sikka/hawa 0.0.288 → 0.1.1

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.
Files changed (40) hide show
  1. package/dist/styles.css +182 -89
  2. package/es/blocks/AuthForms/SignInBlock.d.ts +2 -0
  3. package/es/blocks/AuthForms/SignInForm.d.ts +1 -1
  4. package/es/blocks/AuthForms/index.d.ts +1 -0
  5. package/es/elements/Button.d.ts +12 -0
  6. package/es/elements/Card.d.ts +10 -0
  7. package/es/elements/Icons.d.ts +19 -0
  8. package/es/elements/Input.d.ts +5 -0
  9. package/es/elements/Label.d.ts +5 -0
  10. package/es/index.es.js +3 -3
  11. package/es/util.d.ts +2 -0
  12. package/lib/blocks/AuthForms/SignInBlock.d.ts +2 -0
  13. package/lib/blocks/AuthForms/SignInForm.d.ts +1 -1
  14. package/lib/blocks/AuthForms/index.d.ts +1 -0
  15. package/lib/elements/Button.d.ts +12 -0
  16. package/lib/elements/Card.d.ts +10 -0
  17. package/lib/elements/Icons.d.ts +19 -0
  18. package/lib/elements/Input.d.ts +5 -0
  19. package/lib/elements/Label.d.ts +5 -0
  20. package/lib/index.js +3 -3
  21. package/lib/util.d.ts +2 -0
  22. package/package.json +5 -2
  23. package/src/blocks/AuthForms/ResetPasswordForm.tsx +59 -49
  24. package/src/blocks/AuthForms/SignInBlock.tsx +60 -0
  25. package/src/blocks/AuthForms/SignInForm.tsx +139 -128
  26. package/src/blocks/AuthForms/SignUpForm.tsx +237 -225
  27. package/src/blocks/AuthForms/index.ts +8 -7
  28. package/src/elements/Button.tsx +77 -0
  29. package/src/elements/Card.tsx +87 -0
  30. package/src/elements/HawaLoading.tsx +4 -4
  31. package/src/elements/HawaTextField.tsx +9 -7
  32. package/src/elements/Icons.tsx +145 -0
  33. package/src/elements/Input.tsx +25 -0
  34. package/src/elements/Label.tsx +26 -0
  35. package/src/styles.css +182 -89
  36. package/src/tailwind.css +22 -22
  37. package/src/translations/ar.json +1 -0
  38. package/src/translations/en.json +1 -0
  39. package/src/util.ts +10 -4
  40. package/tailwind.config.js +39 -3
package/es/util.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
1
3
  type Palette = {
2
4
  name: string;
3
5
  colors: {
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function SignInBlock(): import("react").JSX.Element;
@@ -20,7 +20,7 @@ type SignInFormTypes = {
20
20
  passwordRequiredText?: string;
21
21
  forgotPasswordText?: string;
22
22
  newUserText?: string;
23
- signUpText?: string;
23
+ createAccount?: string;
24
24
  signInText?: string;
25
25
  signInViaGoogleLabel?: string;
26
26
  signInViaGithubLabel?: string;
@@ -1,6 +1,7 @@
1
1
  export * from "./AppLanding";
2
2
  export * from "./SignInPhone";
3
3
  export * from "./SignInForm";
4
+ export * from "./SignInBlock";
4
5
  export * from "./SignUpForm";
5
6
  export * from "./NewPasswordForm";
6
7
  export * from "./ResetPasswordForm";
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: {
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
5
+ size?: "default" | "sm" | "lg" | "icon";
6
+ } & import("class-variance-authority/dist/types").ClassProp) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ isLoading?: boolean;
10
+ }
11
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export { Button, buttonVariants };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<{
7
+ headless?: boolean;
8
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ type IconProps = React.HTMLAttributes<SVGElement>;
3
+ export declare const Icons: {
4
+ logo: (props: IconProps) => import("react").JSX.Element;
5
+ twitter: (props: IconProps) => import("react").JSX.Element;
6
+ gitHub: (props: IconProps) => import("react").JSX.Element;
7
+ radix: (props: IconProps) => import("react").JSX.Element;
8
+ aria: (props: IconProps) => import("react").JSX.Element;
9
+ npm: (props: IconProps) => import("react").JSX.Element;
10
+ yarn: (props: IconProps) => import("react").JSX.Element;
11
+ pnpm: (props: IconProps) => import("react").JSX.Element;
12
+ react: (props: IconProps) => import("react").JSX.Element;
13
+ tailwind: (props: IconProps) => import("react").JSX.Element;
14
+ google: (props: IconProps) => import("react").JSX.Element;
15
+ apple: (props: IconProps) => import("react").JSX.Element;
16
+ paypal: (props: IconProps) => import("react").JSX.Element;
17
+ spinner: (props: IconProps) => import("react").JSX.Element;
18
+ };
19
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { Input };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLLabelElement>>;
5
+ export { Label };