@sikka/hawa 0.0.167 → 0.0.169

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 (37) hide show
  1. package/README.md +0 -1
  2. package/dist/styles.css +58 -40
  3. package/es/blocks/Misc/Newsletter.d.ts +10 -0
  4. package/es/blocks/Misc/index.d.ts +1 -0
  5. package/es/elements/DragDropImages.d.ts +6 -1
  6. package/es/elements/HawaAlert.d.ts +2 -7
  7. package/es/elements/HawaButton.d.ts +6 -3
  8. package/es/elements/HawaTable.d.ts +5 -1
  9. package/es/elements/HawaTooltip.d.ts +7 -2
  10. package/es/hooks/index.d.ts +1 -0
  11. package/es/hooks/useHover.d.ts +3 -0
  12. package/es/hooks/useScrollPosition.d.ts +2 -0
  13. package/es/index.es.js +1 -1
  14. package/lib/blocks/Misc/Newsletter.d.ts +10 -0
  15. package/lib/blocks/Misc/index.d.ts +1 -0
  16. package/lib/elements/DragDropImages.d.ts +6 -1
  17. package/lib/elements/HawaAlert.d.ts +2 -7
  18. package/lib/elements/HawaButton.d.ts +6 -3
  19. package/lib/elements/HawaTable.d.ts +5 -1
  20. package/lib/elements/HawaTooltip.d.ts +7 -2
  21. package/lib/hooks/index.d.ts +1 -0
  22. package/lib/hooks/useHover.d.ts +3 -0
  23. package/lib/hooks/useScrollPosition.d.ts +2 -0
  24. package/lib/index.js +1 -1
  25. package/package.json +1 -1
  26. package/src/blocks/Misc/Newsletter.tsx +38 -0
  27. package/src/blocks/Misc/index.ts +1 -0
  28. package/src/elements/DragDropImages.tsx +8 -3
  29. package/src/elements/HawaAlert.tsx +4 -9
  30. package/src/elements/HawaButton.tsx +23 -34
  31. package/src/elements/HawaCardInput.tsx +1 -0
  32. package/src/elements/HawaTable.tsx +91 -195
  33. package/src/elements/HawaTooltip.tsx +96 -26
  34. package/src/hooks/index.ts +1 -0
  35. package/src/hooks/useHover.ts +25 -0
  36. package/src/hooks/{useScrollPosition.js → useScrollPosition.ts} +0 -0
  37. package/src/styles.css +58 -40
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ type TNewsletter = {
3
+ variant?: "outlined" | "contained" | "neobrutalism";
4
+ texts: {
5
+ wantToStayUpdated: string;
6
+ subscribeToNewsletter: string;
7
+ };
8
+ };
9
+ export declare const Newsletter: React.FunctionComponent<TNewsletter>;
10
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from "./NotFound";
2
2
  export * from "./EmptyState";
3
+ export * from "./Newsletter";
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  type DragDropImagesTypes = {
3
3
  label?: string;
4
- texts: any;
5
4
  files: [File];
6
5
  setFiles: any;
7
6
  setDeletedFiles: any;
@@ -10,6 +9,12 @@ type DragDropImagesTypes = {
10
9
  onAcceptedFiles: any;
11
10
  showPreview: any;
12
11
  onDeleteFile: any;
12
+ texts: {
13
+ clickHereToUpload: string;
14
+ maxFileSize: string;
15
+ tooManyFiles: string;
16
+ fileTooLarge: string;
17
+ };
13
18
  onClearFiles: any;
14
19
  maxSize: number;
15
20
  errorMessages: string;
@@ -1,15 +1,10 @@
1
1
  import React from "react";
2
- declare let severities: {
3
- info: string;
4
- warning: string;
5
- error: string;
6
- success: string;
7
- };
8
2
  type AlertTypes = {
9
- severity: keyof typeof severities;
3
+ severity: "info" | "warning" | "error" | "success";
10
4
  title?: any;
11
5
  variant?: "normal" | "solid" | "top-accent" | "left-accent" | "right-accent" | "bottom-accent";
12
6
  text: any;
7
+ direction?: "rtl" | "ltr";
13
8
  hideIcon?: any;
14
9
  actions?: [
15
10
  {
@@ -1,12 +1,15 @@
1
- import * as React from "react";
1
+ import React from "react";
2
2
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  variant?: "contained" | "outlined";
4
+ buttonID?: any;
4
5
  color?: "default" | "primary" | "secondary";
5
6
  width?: "full" | "normal" | "half";
6
- size?: "small" | "medium" | "large" | "noPadding";
7
+ size?: "xs" | "small" | "medium" | "large" | "noPadding" | "full";
7
8
  margins?: "none" | "1" | "2" | "3" | "4";
8
9
  tooltip?: string;
10
+ tooltipSize?: "normal" | "small" | "large";
11
+ tooltipPosition?: "right" | "left" | "bottom" | "top";
9
12
  isLoading?: boolean;
10
13
  }
11
- export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, margins, tooltip, children, ...props }: ButtonProps): JSX.Element;
14
+ export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, tooltipSize, tooltipPosition, margins, tooltip, children, buttonID, ...props }: ButtonProps): JSX.Element;
12
15
  export {};
@@ -2,12 +2,16 @@ import React from "react";
2
2
  type TableTypes = {
3
3
  lang?: any;
4
4
  columns: any[string];
5
- actions?: any;
5
+ actions?: [{
6
+ type: "view" | "update" | "delete";
7
+ onClick: (e: any) => void;
8
+ }];
6
9
  rows?: any[any];
7
10
  noDataText?: any;
8
11
  handleActionClick?: any;
9
12
  end?: any;
10
13
  size?: "normal" | "small";
14
+ customColor?: string;
11
15
  };
12
16
  export declare const HawaTable: React.FunctionComponent<TableTypes>;
13
17
  export {};
@@ -1,7 +1,12 @@
1
1
  import React from "react";
2
2
  type THawaToolTip = {
3
- children: React.ReactElement;
4
- content: string;
3
+ children?: React.ReactElement;
4
+ content?: string;
5
+ btnHovered?: any;
6
+ buttonRef?: any;
7
+ buttonID?: any;
8
+ size?: "normal" | "small" | "large";
9
+ position?: "left" | "right" | "top" | "bottom";
5
10
  };
6
11
  export declare const HawaTooltip: React.FunctionComponent<THawaToolTip>;
7
12
  export {};
@@ -1 +1,2 @@
1
1
  export * from "./useDiscloser";
2
+ export * from "./useHover";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function useHover(): (boolean | import("react").MutableRefObject<any>)[];
3
+ export default useHover;
@@ -0,0 +1,2 @@
1
+ declare function useScrollPosition(ref: any): number;
2
+ export default useScrollPosition;