@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.
- package/README.md +0 -1
- package/dist/styles.css +58 -40
- 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 +6 -3
- package/es/elements/HawaTable.d.ts +5 -1
- package/es/elements/HawaTooltip.d.ts +7 -2
- package/es/hooks/index.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 +6 -3
- package/lib/elements/HawaTable.d.ts +5 -1
- package/lib/elements/HawaTooltip.d.ts +7 -2
- package/lib/hooks/index.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 +23 -34
- package/src/elements/HawaCardInput.tsx +1 -0
- package/src/elements/HawaTable.tsx +91 -195
- package/src/elements/HawaTooltip.tsx +96 -26
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useHover.ts +25 -0
- package/src/hooks/{useScrollPosition.js → useScrollPosition.ts} +0 -0
- package/src/styles.css +58 -40
package/README.md
CHANGED
package/dist/styles.css
CHANGED
|
@@ -569,9 +569,6 @@ video {
|
|
|
569
569
|
.left-0 {
|
|
570
570
|
left: 0px;
|
|
571
571
|
}
|
|
572
|
-
.top-10 {
|
|
573
|
-
top: 2.5rem;
|
|
574
|
-
}
|
|
575
572
|
.right-2 {
|
|
576
573
|
right: 0.5rem;
|
|
577
574
|
}
|
|
@@ -611,8 +608,17 @@ video {
|
|
|
611
608
|
.left-3 {
|
|
612
609
|
left: 0.75rem;
|
|
613
610
|
}
|
|
614
|
-
|
|
615
|
-
top:
|
|
611
|
+
.-top-10 {
|
|
612
|
+
top: -2.5rem;
|
|
613
|
+
}
|
|
614
|
+
.-top-2 {
|
|
615
|
+
top: -0.5rem;
|
|
616
|
+
}
|
|
617
|
+
.right-8 {
|
|
618
|
+
right: 2rem;
|
|
619
|
+
}
|
|
620
|
+
.left-8 {
|
|
621
|
+
left: 2rem;
|
|
616
622
|
}
|
|
617
623
|
.top-3 {
|
|
618
624
|
top: 0.75rem;
|
|
@@ -659,12 +665,12 @@ video {
|
|
|
659
665
|
.top-auto {
|
|
660
666
|
top: auto;
|
|
661
667
|
}
|
|
662
|
-
.z-10 {
|
|
663
|
-
z-index: 10;
|
|
664
|
-
}
|
|
665
668
|
.z-50 {
|
|
666
669
|
z-index: 50;
|
|
667
670
|
}
|
|
671
|
+
.z-10 {
|
|
672
|
+
z-index: 10;
|
|
673
|
+
}
|
|
668
674
|
.-z-10 {
|
|
669
675
|
z-index: -10;
|
|
670
676
|
}
|
|
@@ -686,10 +692,6 @@ video {
|
|
|
686
692
|
.m-1 {
|
|
687
693
|
margin: 0.25rem;
|
|
688
694
|
}
|
|
689
|
-
.my-0 {
|
|
690
|
-
margin-top: 0px;
|
|
691
|
-
margin-bottom: 0px;
|
|
692
|
-
}
|
|
693
695
|
.mx-2 {
|
|
694
696
|
margin-left: 0.5rem;
|
|
695
697
|
margin-right: 0.5rem;
|
|
@@ -714,6 +716,10 @@ video {
|
|
|
714
716
|
margin-top: 0.125rem;
|
|
715
717
|
margin-bottom: 0.125rem;
|
|
716
718
|
}
|
|
719
|
+
.my-0 {
|
|
720
|
+
margin-top: 0px;
|
|
721
|
+
margin-bottom: 0px;
|
|
722
|
+
}
|
|
717
723
|
.ml-auto {
|
|
718
724
|
margin-left: auto;
|
|
719
725
|
}
|
|
@@ -844,9 +850,6 @@ video {
|
|
|
844
850
|
height: -moz-fit-content;
|
|
845
851
|
height: fit-content;
|
|
846
852
|
}
|
|
847
|
-
.h-32 {
|
|
848
|
-
height: 8rem;
|
|
849
|
-
}
|
|
850
853
|
.h-full {
|
|
851
854
|
height: 100%;
|
|
852
855
|
}
|
|
@@ -877,6 +880,9 @@ video {
|
|
|
877
880
|
.h-4 {
|
|
878
881
|
height: 1rem;
|
|
879
882
|
}
|
|
883
|
+
.h-32 {
|
|
884
|
+
height: 8rem;
|
|
885
|
+
}
|
|
880
886
|
.h-0\.5 {
|
|
881
887
|
height: 0.125rem;
|
|
882
888
|
}
|
|
@@ -895,6 +901,9 @@ video {
|
|
|
895
901
|
.h-96 {
|
|
896
902
|
height: 24rem;
|
|
897
903
|
}
|
|
904
|
+
.max-h-full {
|
|
905
|
+
max-height: 100%;
|
|
906
|
+
}
|
|
898
907
|
.max-h-56 {
|
|
899
908
|
max-height: 14rem;
|
|
900
909
|
}
|
|
@@ -981,14 +990,14 @@ video {
|
|
|
981
990
|
.w-12 {
|
|
982
991
|
width: 3rem;
|
|
983
992
|
}
|
|
984
|
-
.min-w-max {
|
|
985
|
-
min-width: -moz-max-content;
|
|
986
|
-
min-width: max-content;
|
|
987
|
-
}
|
|
988
993
|
.min-w-min {
|
|
989
994
|
min-width: -moz-min-content;
|
|
990
995
|
min-width: min-content;
|
|
991
996
|
}
|
|
997
|
+
.min-w-max {
|
|
998
|
+
min-width: -moz-max-content;
|
|
999
|
+
min-width: max-content;
|
|
1000
|
+
}
|
|
992
1001
|
.max-w-xl {
|
|
993
1002
|
max-width: 36rem;
|
|
994
1003
|
}
|
|
@@ -1020,6 +1029,9 @@ video {
|
|
|
1020
1029
|
.shrink-0 {
|
|
1021
1030
|
flex-shrink: 0;
|
|
1022
1031
|
}
|
|
1032
|
+
.origin-top {
|
|
1033
|
+
transform-origin: top;
|
|
1034
|
+
}
|
|
1023
1035
|
.translate-y-1\/2 {
|
|
1024
1036
|
--tw-translate-y: 50%;
|
|
1025
1037
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1032,6 +1044,10 @@ video {
|
|
|
1032
1044
|
--tw-translate-y: -50%;
|
|
1033
1045
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1034
1046
|
}
|
|
1047
|
+
.translate-x-\[100px\] {
|
|
1048
|
+
--tw-translate-x: 100px;
|
|
1049
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1050
|
+
}
|
|
1035
1051
|
.translate-x-\[3rem\] {
|
|
1036
1052
|
--tw-translate-x: 3rem;
|
|
1037
1053
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1052,12 +1068,12 @@ video {
|
|
|
1052
1068
|
.animate-spin {
|
|
1053
1069
|
animation: spin 1s linear infinite;
|
|
1054
1070
|
}
|
|
1055
|
-
.cursor-default {
|
|
1056
|
-
cursor: default;
|
|
1057
|
-
}
|
|
1058
1071
|
.cursor-pointer {
|
|
1059
1072
|
cursor: pointer;
|
|
1060
1073
|
}
|
|
1074
|
+
.cursor-default {
|
|
1075
|
+
cursor: default;
|
|
1076
|
+
}
|
|
1061
1077
|
.resize {
|
|
1062
1078
|
resize: both;
|
|
1063
1079
|
}
|
|
@@ -1188,6 +1204,9 @@ video {
|
|
|
1188
1204
|
.overflow-y-clip {
|
|
1189
1205
|
overflow-y: clip;
|
|
1190
1206
|
}
|
|
1207
|
+
.overflow-x-visible {
|
|
1208
|
+
overflow-x: visible;
|
|
1209
|
+
}
|
|
1191
1210
|
.truncate {
|
|
1192
1211
|
overflow: hidden;
|
|
1193
1212
|
text-overflow: ellipsis;
|
|
@@ -1202,12 +1221,12 @@ video {
|
|
|
1202
1221
|
.rounded-xl {
|
|
1203
1222
|
border-radius: 0.75rem;
|
|
1204
1223
|
}
|
|
1205
|
-
.rounded-full {
|
|
1206
|
-
border-radius: 9999px;
|
|
1207
|
-
}
|
|
1208
1224
|
.rounded {
|
|
1209
1225
|
border-radius: 0.25rem;
|
|
1210
1226
|
}
|
|
1227
|
+
.rounded-full {
|
|
1228
|
+
border-radius: 9999px;
|
|
1229
|
+
}
|
|
1211
1230
|
.rounded-none {
|
|
1212
1231
|
border-radius: 0px;
|
|
1213
1232
|
}
|
|
@@ -1370,14 +1389,14 @@ video {
|
|
|
1370
1389
|
--tw-border-opacity: 1;
|
|
1371
1390
|
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
1372
1391
|
}
|
|
1373
|
-
.border-gray-400 {
|
|
1374
|
-
--tw-border-opacity: 1;
|
|
1375
|
-
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
|
1376
|
-
}
|
|
1377
1392
|
.border-blue-600 {
|
|
1378
1393
|
--tw-border-opacity: 1;
|
|
1379
1394
|
border-color: rgb(37 99 235 / var(--tw-border-opacity));
|
|
1380
1395
|
}
|
|
1396
|
+
.border-gray-400 {
|
|
1397
|
+
--tw-border-opacity: 1;
|
|
1398
|
+
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
|
1399
|
+
}
|
|
1381
1400
|
.border-buttonPrimary-default {
|
|
1382
1401
|
border-color: var(--button-primary);
|
|
1383
1402
|
}
|
|
@@ -1564,14 +1583,18 @@ video {
|
|
|
1564
1583
|
padding-top: 0px;
|
|
1565
1584
|
padding-bottom: 0px;
|
|
1566
1585
|
}
|
|
1567
|
-
.
|
|
1568
|
-
padding-
|
|
1569
|
-
padding-
|
|
1586
|
+
.px-1 {
|
|
1587
|
+
padding-left: 0.25rem;
|
|
1588
|
+
padding-right: 0.25rem;
|
|
1570
1589
|
}
|
|
1571
1590
|
.py-1 {
|
|
1572
1591
|
padding-top: 0.25rem;
|
|
1573
1592
|
padding-bottom: 0.25rem;
|
|
1574
1593
|
}
|
|
1594
|
+
.py-1\.5 {
|
|
1595
|
+
padding-top: 0.375rem;
|
|
1596
|
+
padding-bottom: 0.375rem;
|
|
1597
|
+
}
|
|
1575
1598
|
.px-3 {
|
|
1576
1599
|
padding-left: 0.75rem;
|
|
1577
1600
|
padding-right: 0.75rem;
|
|
@@ -1791,12 +1814,12 @@ video {
|
|
|
1791
1814
|
--tw-text-opacity: 1;
|
|
1792
1815
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
1793
1816
|
}
|
|
1794
|
-
.opacity-100 {
|
|
1795
|
-
opacity: 1;
|
|
1796
|
-
}
|
|
1797
1817
|
.opacity-0 {
|
|
1798
1818
|
opacity: 0;
|
|
1799
1819
|
}
|
|
1820
|
+
.opacity-100 {
|
|
1821
|
+
opacity: 1;
|
|
1822
|
+
}
|
|
1800
1823
|
.opacity-50 {
|
|
1801
1824
|
opacity: 0.5;
|
|
1802
1825
|
}
|
|
@@ -1859,11 +1882,6 @@ video {
|
|
|
1859
1882
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1860
1883
|
transition-duration: 150ms;
|
|
1861
1884
|
}
|
|
1862
|
-
.transition-opacity {
|
|
1863
|
-
transition-property: opacity;
|
|
1864
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1865
|
-
transition-duration: 150ms;
|
|
1866
|
-
}
|
|
1867
1885
|
.transition {
|
|
1868
1886
|
transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
|
|
1869
1887
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
@@ -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
|
{
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
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?:
|
|
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
|
|
4
|
-
content
|
|
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 {};
|
package/es/hooks/index.d.ts
CHANGED