@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.
- package/README.md +0 -1
- package/dist/styles.css +14 -11
- package/es/blocks/Misc/Newsletter.d.ts +10 -0
- package/es/blocks/Misc/index.d.ts +1 -0
- package/es/elements/DragDropImages.d.ts +6 -1
- package/es/elements/HawaAlert.d.ts +2 -7
- package/es/elements/HawaButton.d.ts +1 -1
- package/es/elements/HawaTable.d.ts +1 -0
- package/es/hooks/useHover.d.ts +3 -0
- package/es/hooks/useScrollPosition.d.ts +2 -0
- package/es/index.es.js +1 -1
- package/lib/blocks/Misc/Newsletter.d.ts +10 -0
- package/lib/blocks/Misc/index.d.ts +1 -0
- package/lib/elements/DragDropImages.d.ts +6 -1
- package/lib/elements/HawaAlert.d.ts +2 -7
- package/lib/elements/HawaButton.d.ts +1 -1
- package/lib/elements/HawaTable.d.ts +1 -0
- package/lib/hooks/useHover.d.ts +3 -0
- package/lib/hooks/useScrollPosition.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Misc/Newsletter.tsx +38 -0
- package/src/blocks/Misc/index.ts +1 -0
- package/src/elements/DragDropImages.tsx +8 -3
- package/src/elements/HawaAlert.tsx +4 -9
- package/src/elements/HawaButton.tsx +6 -16
- package/src/elements/HawaCardInput.tsx +1 -0
- package/src/elements/HawaTable.tsx +7 -2
- package/src/hooks/{useHover.js → useHover.ts} +0 -0
- package/src/hooks/{useScrollPosition.js → useScrollPosition.ts} +0 -0
- package/src/styles.css +14 -11
|
@@ -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,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:
|
|
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";
|