@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 CHANGED
@@ -17,7 +17,6 @@ npm install --save @sikka/hawa
17
17
 
18
18
  # Roadmap
19
19
 
20
- - [ ] Drag and drop tool to create a layout of boxes
21
20
  - Organize code
22
21
 
23
22
  </br>
package/dist/styles.css CHANGED
@@ -692,10 +692,6 @@ video {
692
692
  .m-1 {
693
693
  margin: 0.25rem;
694
694
  }
695
- .my-0 {
696
- margin-top: 0px;
697
- margin-bottom: 0px;
698
- }
699
695
  .mx-2 {
700
696
  margin-left: 0.5rem;
701
697
  margin-right: 0.5rem;
@@ -720,6 +716,10 @@ video {
720
716
  margin-top: 0.125rem;
721
717
  margin-bottom: 0.125rem;
722
718
  }
719
+ .my-0 {
720
+ margin-top: 0px;
721
+ margin-bottom: 0px;
722
+ }
723
723
  .ml-auto {
724
724
  margin-left: auto;
725
725
  }
@@ -901,6 +901,9 @@ video {
901
901
  .h-96 {
902
902
  height: 24rem;
903
903
  }
904
+ .max-h-full {
905
+ max-height: 100%;
906
+ }
904
907
  .max-h-56 {
905
908
  max-height: 14rem;
906
909
  }
@@ -1218,12 +1221,12 @@ video {
1218
1221
  .rounded-xl {
1219
1222
  border-radius: 0.75rem;
1220
1223
  }
1221
- .rounded-full {
1222
- border-radius: 9999px;
1223
- }
1224
1224
  .rounded {
1225
1225
  border-radius: 0.25rem;
1226
1226
  }
1227
+ .rounded-full {
1228
+ border-radius: 9999px;
1229
+ }
1227
1230
  .rounded-none {
1228
1231
  border-radius: 0px;
1229
1232
  }
@@ -1386,14 +1389,14 @@ video {
1386
1389
  --tw-border-opacity: 1;
1387
1390
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
1388
1391
  }
1389
- .border-gray-400 {
1390
- --tw-border-opacity: 1;
1391
- border-color: rgb(156 163 175 / var(--tw-border-opacity));
1392
- }
1393
1392
  .border-blue-600 {
1394
1393
  --tw-border-opacity: 1;
1395
1394
  border-color: rgb(37 99 235 / var(--tw-border-opacity));
1396
1395
  }
1396
+ .border-gray-400 {
1397
+ --tw-border-opacity: 1;
1398
+ border-color: rgb(156 163 175 / var(--tw-border-opacity));
1399
+ }
1397
1400
  .border-buttonPrimary-default {
1398
1401
  border-color: var(--button-primary);
1399
1402
  }
@@ -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;