@sikka/hawa 0.0.190 → 0.0.191
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 +7 -7
- package/es/elements/HawaMenu.d.ts +1 -0
- package/es/elements/HawaTable.d.ts +9 -4
- package/es/index.es.js +1 -1
- package/lib/elements/HawaMenu.d.ts +1 -0
- package/lib/elements/HawaTable.d.ts +9 -4
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/HawaMenu.tsx +91 -18
- package/src/elements/HawaTable.tsx +65 -43
- package/src/layout/HawaAppLayout.tsx +15 -26
- package/src/styles.css +7 -7
package/dist/styles.css
CHANGED
|
@@ -587,11 +587,11 @@ video {
|
|
|
587
587
|
.bottom-0 {
|
|
588
588
|
bottom: 0px;
|
|
589
589
|
}
|
|
590
|
-
.top-
|
|
591
|
-
top:
|
|
590
|
+
.top-8 {
|
|
591
|
+
top: 2rem;
|
|
592
592
|
}
|
|
593
|
-
.bottom-
|
|
594
|
-
bottom:
|
|
593
|
+
.bottom-8 {
|
|
594
|
+
bottom: 2rem;
|
|
595
595
|
}
|
|
596
596
|
.left-1\/2 {
|
|
597
597
|
left: 50%;
|
|
@@ -626,9 +626,6 @@ video {
|
|
|
626
626
|
.left-2 {
|
|
627
627
|
left: 0.5rem;
|
|
628
628
|
}
|
|
629
|
-
.left-32 {
|
|
630
|
-
left: 8rem;
|
|
631
|
-
}
|
|
632
629
|
.top-auto {
|
|
633
630
|
top: auto;
|
|
634
631
|
}
|
|
@@ -1822,6 +1819,9 @@ video {
|
|
|
1822
1819
|
--tw-ring-opacity: 1;
|
|
1823
1820
|
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
|
|
1824
1821
|
}
|
|
1822
|
+
.ring-buttonPrimary-500 {
|
|
1823
|
+
--tw-ring-color: var(--button-primary-500);
|
|
1824
|
+
}
|
|
1825
1825
|
.ring-offset-1 {
|
|
1826
1826
|
--tw-ring-offset-width: 1px;
|
|
1827
1827
|
}
|
|
@@ -11,6 +11,7 @@ interface TMenuTypes {
|
|
|
11
11
|
anchor?: any;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
14
|
+
position?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
14
15
|
onClickOutside?: any;
|
|
15
16
|
}
|
|
16
17
|
type MenuItems = {
|
|
@@ -2,10 +2,7 @@ import React from "react";
|
|
|
2
2
|
type TableTypes = {
|
|
3
3
|
lang?: any;
|
|
4
4
|
columns: any[string];
|
|
5
|
-
actions?: [
|
|
6
|
-
type: "view" | "update" | "delete";
|
|
7
|
-
onClick: (e: any) => void;
|
|
8
|
-
}];
|
|
5
|
+
actions?: ActionItems[][];
|
|
9
6
|
rows?: any[any];
|
|
10
7
|
noDataText?: any;
|
|
11
8
|
handleActionClick?: any;
|
|
@@ -14,8 +11,16 @@ type TableTypes = {
|
|
|
14
11
|
highlightFirst?: boolean;
|
|
15
12
|
customColor?: string;
|
|
16
13
|
clickable?: boolean;
|
|
14
|
+
actionsText?: string;
|
|
17
15
|
bordersWidth?: string;
|
|
18
16
|
borders?: ["all" | "cols" | "rows" | "outer"];
|
|
19
17
|
};
|
|
18
|
+
type ActionItems = {
|
|
19
|
+
icon?: JSX.Element;
|
|
20
|
+
label: string;
|
|
21
|
+
action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
|
|
22
|
+
isButton?: boolean;
|
|
23
|
+
element?: any;
|
|
24
|
+
};
|
|
20
25
|
export declare const HawaTable: React.FunctionComponent<TableTypes>;
|
|
21
26
|
export {};
|