@sikka/hawa 0.0.168 → 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.
@@ -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
  {
@@ -4,7 +4,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  buttonID?: any;
5
5
  color?: "default" | "primary" | "secondary";
6
6
  width?: "full" | "normal" | "half";
7
- size?: "xs" | "small" | "medium" | "large" | "noPadding";
7
+ size?: "xs" | "small" | "medium" | "large" | "noPadding" | "full";
8
8
  margins?: "none" | "1" | "2" | "3" | "4";
9
9
  tooltip?: string;
10
10
  tooltipSize?: "normal" | "small" | "large";
@@ -11,6 +11,7 @@ type TableTypes = {
11
11
  handleActionClick?: any;
12
12
  end?: any;
13
13
  size?: "normal" | "small";
14
+ customColor?: string;
14
15
  };
15
16
  export declare const HawaTable: React.FunctionComponent<TableTypes>;
16
17
  export {};
@@ -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;