@sikka/hawa 0.0.100 → 0.0.102
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/dist/styles.css +60 -8
- package/es/elements/DraggableCard.d.ts +2 -2
- package/es/elements/HawaCheckbox.d.ts +4 -4
- package/es/elements/HawaChip.d.ts +3 -3
- package/es/elements/HawaColorPicker.d.ts +1 -1
- package/es/elements/HawaCopyrights.d.ts +4 -2
- package/es/elements/HawaDrawer.d.ts +18 -8
- package/es/elements/HawaMenu.d.ts +19 -11
- package/es/elements/HawaModal.d.ts +6 -7
- package/es/elements/HawaRange.d.ts +2 -0
- package/es/elements/HawaSettingsRow.d.ts +14 -1
- package/es/index.es.js +1 -1
- package/lib/elements/DraggableCard.d.ts +2 -2
- package/lib/elements/HawaCheckbox.d.ts +4 -4
- package/lib/elements/HawaChip.d.ts +3 -3
- package/lib/elements/HawaColorPicker.d.ts +1 -1
- package/lib/elements/HawaCopyrights.d.ts +4 -2
- package/lib/elements/HawaDrawer.d.ts +18 -8
- package/lib/elements/HawaMenu.d.ts +19 -11
- package/lib/elements/HawaModal.d.ts +6 -7
- package/lib/elements/HawaRange.d.ts +2 -0
- package/lib/elements/HawaSettingsRow.d.ts +14 -1
- package/lib/index.js +1 -1
- package/package.json +3 -2
- package/rollup.config.js +4 -0
- package/src/elements/DragDropImages.tsx +32 -26
- package/src/elements/DraggableCard.tsx +2 -2
- package/src/elements/HawaCheckbox.tsx +11 -6
- package/src/elements/HawaChip.tsx +3 -3
- package/src/elements/HawaColorPicker.tsx +2 -2
- package/src/elements/HawaCopyrights.tsx +8 -15
- package/src/elements/HawaDrawer.tsx +42 -23
- package/src/elements/HawaMenu.tsx +76 -53
- package/src/elements/HawaModal.tsx +20 -21
- package/src/elements/HawaRange.tsx +2 -0
- package/src/elements/HawaSettingsRow.tsx +29 -38
- package/src/elements/HawaTabs.tsx +1 -1
- package/src/styles.css +60 -8
- package/storybook-static/{733.8d2de9f8.iframe.bundle.js → 209.3141149a.iframe.bundle.js} +2 -2
- package/storybook-static/{733.8d2de9f8.iframe.bundle.js.LICENSE.txt → 209.3141149a.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.2fac3c3c.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/tailwind.config.js +26 -1
- package/storybook-static/main.71507dcb.iframe.bundle.js +0 -1
package/dist/styles.css
CHANGED
|
@@ -559,6 +559,9 @@ video {
|
|
|
559
559
|
.z-40 {
|
|
560
560
|
z-index: 40;
|
|
561
561
|
}
|
|
562
|
+
.m-3 {
|
|
563
|
+
margin: 0.75rem;
|
|
564
|
+
}
|
|
562
565
|
.m-2 {
|
|
563
566
|
margin: 0.5rem;
|
|
564
567
|
}
|
|
@@ -702,6 +705,15 @@ video {
|
|
|
702
705
|
.h-12 {
|
|
703
706
|
height: 3rem;
|
|
704
707
|
}
|
|
708
|
+
.h-96 {
|
|
709
|
+
height: 24rem;
|
|
710
|
+
}
|
|
711
|
+
.max-h-72 {
|
|
712
|
+
max-height: 18rem;
|
|
713
|
+
}
|
|
714
|
+
.max-h-0 {
|
|
715
|
+
max-height: 0px;
|
|
716
|
+
}
|
|
705
717
|
.max-h-fit {
|
|
706
718
|
max-height: -moz-fit-content;
|
|
707
719
|
max-height: fit-content;
|
|
@@ -813,6 +825,34 @@ video {
|
|
|
813
825
|
.animate-spin {
|
|
814
826
|
animation: spin 1s linear infinite;
|
|
815
827
|
}
|
|
828
|
+
@keyframes expandDown {
|
|
829
|
+
|
|
830
|
+
0% {
|
|
831
|
+
max-height: 0;
|
|
832
|
+
height: 0;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
100% {
|
|
836
|
+
max-height: 100px;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
.animate-expandDown {
|
|
840
|
+
animation: expandDown 100ms linear;
|
|
841
|
+
}
|
|
842
|
+
@keyframes expandUp {
|
|
843
|
+
|
|
844
|
+
0% {
|
|
845
|
+
max-height: 100px;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
100% {
|
|
849
|
+
max-height: 0;
|
|
850
|
+
height: 0;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
.animate-expandUp {
|
|
854
|
+
animation: expandUp 100ms linear;
|
|
855
|
+
}
|
|
816
856
|
.cursor-default {
|
|
817
857
|
cursor: default;
|
|
818
858
|
}
|
|
@@ -863,6 +903,9 @@ video {
|
|
|
863
903
|
.justify-evenly {
|
|
864
904
|
justify-content: space-evenly;
|
|
865
905
|
}
|
|
906
|
+
.gap-1 {
|
|
907
|
+
gap: 0.25rem;
|
|
908
|
+
}
|
|
866
909
|
.gap-x-3 {
|
|
867
910
|
-moz-column-gap: 0.75rem;
|
|
868
911
|
column-gap: 0.75rem;
|
|
@@ -924,6 +967,9 @@ video {
|
|
|
924
967
|
.overflow-x-hidden {
|
|
925
968
|
overflow-x: hidden;
|
|
926
969
|
}
|
|
970
|
+
.overflow-y-clip {
|
|
971
|
+
overflow-y: clip;
|
|
972
|
+
}
|
|
927
973
|
.truncate {
|
|
928
974
|
overflow: hidden;
|
|
929
975
|
text-overflow: ellipsis;
|
|
@@ -972,6 +1018,12 @@ video {
|
|
|
972
1018
|
border-top-left-radius: 0px;
|
|
973
1019
|
border-bottom-left-radius: 0px;
|
|
974
1020
|
}
|
|
1021
|
+
.rounded-tr-none {
|
|
1022
|
+
border-top-right-radius: 0px;
|
|
1023
|
+
}
|
|
1024
|
+
.rounded-bl-none {
|
|
1025
|
+
border-bottom-left-radius: 0px;
|
|
1026
|
+
}
|
|
975
1027
|
.rounded-bl-lg {
|
|
976
1028
|
border-bottom-left-radius: 0.5rem;
|
|
977
1029
|
}
|
|
@@ -1021,6 +1073,10 @@ video {
|
|
|
1021
1073
|
--tw-border-opacity: 1;
|
|
1022
1074
|
border-color: rgb(0 0 0 / var(--tw-border-opacity));
|
|
1023
1075
|
}
|
|
1076
|
+
.border-red-500 {
|
|
1077
|
+
--tw-border-opacity: 1;
|
|
1078
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
1079
|
+
}
|
|
1024
1080
|
.border-gray-200 {
|
|
1025
1081
|
--tw-border-opacity: 1;
|
|
1026
1082
|
border-color: rgb(229 231 235 / var(--tw-border-opacity));
|
|
@@ -1099,10 +1155,6 @@ video {
|
|
|
1099
1155
|
--tw-bg-opacity: 1;
|
|
1100
1156
|
background-color: rgb(163 208 57 / var(--tw-bg-opacity));
|
|
1101
1157
|
}
|
|
1102
|
-
.bg-blue-700 {
|
|
1103
|
-
--tw-bg-opacity: 1;
|
|
1104
|
-
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
|
|
1105
|
-
}
|
|
1106
1158
|
.bg-primary-500 {
|
|
1107
1159
|
--tw-bg-opacity: 1;
|
|
1108
1160
|
background-color: rgb(61 147 249 / var(--tw-bg-opacity));
|
|
@@ -1149,6 +1201,10 @@ video {
|
|
|
1149
1201
|
.p-10 {
|
|
1150
1202
|
padding: 2.5rem;
|
|
1151
1203
|
}
|
|
1204
|
+
.px-2 {
|
|
1205
|
+
padding-left: 0.5rem;
|
|
1206
|
+
padding-right: 0.5rem;
|
|
1207
|
+
}
|
|
1152
1208
|
.px-2\.5 {
|
|
1153
1209
|
padding-left: 0.625rem;
|
|
1154
1210
|
padding-right: 0.625rem;
|
|
@@ -1157,10 +1213,6 @@ video {
|
|
|
1157
1213
|
padding-top: 0.125rem;
|
|
1158
1214
|
padding-bottom: 0.125rem;
|
|
1159
1215
|
}
|
|
1160
|
-
.px-2 {
|
|
1161
|
-
padding-left: 0.5rem;
|
|
1162
|
-
padding-right: 0.5rem;
|
|
1163
|
-
}
|
|
1164
1216
|
.py-0 {
|
|
1165
1217
|
padding-top: 0px;
|
|
1166
1218
|
padding-bottom: 0px;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type
|
|
3
|
-
centered?:
|
|
2
|
+
type TCheckBoxTypes = {
|
|
3
|
+
centered?: boolean;
|
|
4
4
|
label?: any;
|
|
5
5
|
helperText?: any;
|
|
6
|
-
onChange?:
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const HawaCheckbox: React.FunctionComponent<
|
|
8
|
+
export declare const HawaCheckbox: React.FunctionComponent<TCheckBoxTypes>;
|
|
9
9
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type CopyRightsTypes = {
|
|
3
|
-
withLogo:
|
|
3
|
+
withLogo: boolean;
|
|
4
4
|
lang: any;
|
|
5
|
-
version:
|
|
5
|
+
version: string;
|
|
6
|
+
credits: string;
|
|
7
|
+
logoURL: string;
|
|
6
8
|
};
|
|
7
9
|
export declare const HawaCopyrights: React.FunctionComponent<CopyRightsTypes>;
|
|
8
10
|
export {};
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type
|
|
3
|
-
open:
|
|
1
|
+
import React, { FC, ReactElement, ReactNode } from "react";
|
|
2
|
+
type TDrawerTypes = {
|
|
3
|
+
open: boolean;
|
|
4
4
|
setOpen: any;
|
|
5
5
|
position: any;
|
|
6
6
|
heading: any;
|
|
7
|
-
children
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare const HawaDrawer: React.FunctionComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export declare const HawaDrawer: React.FunctionComponent<TDrawerTypes>;
|
|
10
|
+
type TDrawerHeader = {
|
|
11
|
+
setOpen: any;
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
};
|
|
14
|
+
export declare const DrawerHeader: FC<TDrawerHeader>;
|
|
15
|
+
type TDrawerBody = {
|
|
16
|
+
children: ReactElement;
|
|
17
|
+
};
|
|
18
|
+
export declare const DrawerBody: (props: TDrawerBody) => JSX.Element;
|
|
19
|
+
type TDrawerFooter = {
|
|
20
|
+
children: ReactElement;
|
|
21
|
+
};
|
|
22
|
+
export declare const DrawerFooter: (props: TDrawerFooter) => JSX.Element;
|
|
13
23
|
export {};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface TMenuTypes {
|
|
3
3
|
popMenuID: any;
|
|
4
|
-
menuItems:
|
|
5
|
-
withHeader
|
|
6
|
-
withIcons
|
|
7
|
-
headerTitle
|
|
8
|
-
headerSubtitle
|
|
9
|
-
open:
|
|
10
|
-
handleClose:
|
|
11
|
-
anchor
|
|
4
|
+
menuItems: MenuItems[][];
|
|
5
|
+
withHeader?: boolean;
|
|
6
|
+
withIcons?: boolean;
|
|
7
|
+
headerTitle?: string;
|
|
8
|
+
headerSubtitle?: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
handleClose: (e: boolean) => void;
|
|
11
|
+
anchor?: any;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
14
|
+
}
|
|
15
|
+
type MenuItems = {
|
|
16
|
+
icon?: JSX.Element;
|
|
17
|
+
label: string;
|
|
18
|
+
action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
|
|
19
|
+
isButton?: boolean;
|
|
12
20
|
};
|
|
13
|
-
export declare const HawaMenu: React.FunctionComponent<
|
|
21
|
+
export declare const HawaMenu: React.FunctionComponent<TMenuTypes>;
|
|
14
22
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
type ModalTypes = {
|
|
3
|
-
open:
|
|
4
|
-
title:
|
|
5
|
-
onClose:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: any;
|
|
3
|
+
open: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
modalID?: string;
|
|
7
|
+
children: ReactElement;
|
|
9
8
|
actions: any;
|
|
10
9
|
};
|
|
11
10
|
export declare const HawaModal: React.FunctionComponent<ModalTypes>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type SettingsRowTypes = {
|
|
3
3
|
settingsLabel: any;
|
|
4
|
-
settingsType:
|
|
4
|
+
settingsType: "checkbox" | "text" | "radio" | "boolean" | "color" | "range";
|
|
5
|
+
radioProps: {
|
|
6
|
+
defaultValue: any;
|
|
7
|
+
onChangeTab: any;
|
|
8
|
+
options: any;
|
|
9
|
+
};
|
|
10
|
+
colorProps: {
|
|
11
|
+
color?: any;
|
|
12
|
+
handleChange?: any;
|
|
13
|
+
};
|
|
14
|
+
rangeProps: {
|
|
15
|
+
min?: any;
|
|
16
|
+
max?: any;
|
|
17
|
+
};
|
|
5
18
|
};
|
|
6
19
|
export declare const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes>;
|
|
7
20
|
export {};
|