@sikka/hawa 0.0.191 → 0.0.193
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 +25 -10
- package/es/elements/{HawaAccordian.d.ts → HawaAccordion.d.ts} +1 -1
- package/es/elements/HawaButton.d.ts +2 -1
- package/es/elements/HawaMenu.d.ts +2 -5
- package/es/elements/HawaTable.d.ts +1 -0
- package/es/elements/HawaTooltip.d.ts +1 -0
- package/es/elements/InvoiceAccordion.d.ts +31 -0
- package/es/elements/UsageCard.d.ts +9 -0
- package/es/elements/index.d.ts +3 -1
- package/es/index.es.js +1 -1
- package/lib/elements/{HawaAccordian.d.ts → HawaAccordion.d.ts} +1 -1
- package/lib/elements/HawaButton.d.ts +2 -1
- package/lib/elements/HawaMenu.d.ts +2 -5
- package/lib/elements/HawaTable.d.ts +1 -0
- package/lib/elements/HawaTooltip.d.ts +1 -0
- package/lib/elements/InvoiceAccordion.d.ts +31 -0
- package/lib/elements/UsageCard.d.ts +9 -0
- package/lib/elements/index.d.ts +3 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/{HawaAccordian.tsx → HawaAccordion.tsx} +1 -1
- package/src/elements/HawaButton.tsx +4 -1
- package/src/elements/HawaItemCard.tsx +12 -10
- package/src/elements/HawaMenu.tsx +93 -34
- package/src/elements/HawaTable.tsx +8 -11
- package/src/elements/HawaTooltip.tsx +40 -10
- package/src/elements/InvoiceAccordion.tsx +138 -0
- package/src/elements/UsageCard.tsx +36 -0
- package/src/elements/index.ts +3 -1
- package/src/layout/HawaAppLayout.tsx +7 -5
- package/src/styles.css +25 -10
- package/.vscode/settings.json +0 -3
package/dist/styles.css
CHANGED
|
@@ -864,6 +864,9 @@ video {
|
|
|
864
864
|
.h-0\.5 {
|
|
865
865
|
height: 0.125rem;
|
|
866
866
|
}
|
|
867
|
+
.h-2\.5 {
|
|
868
|
+
height: 0.625rem;
|
|
869
|
+
}
|
|
867
870
|
.h-9 {
|
|
868
871
|
height: 2.25rem;
|
|
869
872
|
}
|
|
@@ -1011,6 +1014,10 @@ video {
|
|
|
1011
1014
|
--tw-rotate: 180deg;
|
|
1012
1015
|
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));
|
|
1013
1016
|
}
|
|
1017
|
+
.rotate-90 {
|
|
1018
|
+
--tw-rotate: 90deg;
|
|
1019
|
+
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));
|
|
1020
|
+
}
|
|
1014
1021
|
.rotate-0 {
|
|
1015
1022
|
--tw-rotate: 0deg;
|
|
1016
1023
|
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));
|
|
@@ -1019,10 +1026,6 @@ video {
|
|
|
1019
1026
|
--tw-rotate: -90deg;
|
|
1020
1027
|
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));
|
|
1021
1028
|
}
|
|
1022
|
-
.rotate-90 {
|
|
1023
|
-
--tw-rotate: 90deg;
|
|
1024
|
-
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));
|
|
1025
|
-
}
|
|
1026
1029
|
.transform {
|
|
1027
1030
|
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));
|
|
1028
1031
|
}
|
|
@@ -1067,6 +1070,9 @@ video {
|
|
|
1067
1070
|
.items-start {
|
|
1068
1071
|
align-items: flex-start;
|
|
1069
1072
|
}
|
|
1073
|
+
.items-end {
|
|
1074
|
+
align-items: flex-end;
|
|
1075
|
+
}
|
|
1070
1076
|
.items-center {
|
|
1071
1077
|
align-items: center;
|
|
1072
1078
|
}
|
|
@@ -1100,12 +1106,18 @@ video {
|
|
|
1100
1106
|
.gap-1 {
|
|
1101
1107
|
gap: 0.25rem;
|
|
1102
1108
|
}
|
|
1103
|
-
.gap-0\.5 {
|
|
1104
|
-
gap: 0.125rem;
|
|
1105
|
-
}
|
|
1106
1109
|
.gap-0 {
|
|
1107
1110
|
gap: 0px;
|
|
1108
1111
|
}
|
|
1112
|
+
.gap-4 {
|
|
1113
|
+
gap: 1rem;
|
|
1114
|
+
}
|
|
1115
|
+
.gap-20 {
|
|
1116
|
+
gap: 5rem;
|
|
1117
|
+
}
|
|
1118
|
+
.gap-0\.5 {
|
|
1119
|
+
gap: 0.125rem;
|
|
1120
|
+
}
|
|
1109
1121
|
.gap-9 {
|
|
1110
1122
|
gap: 2.25rem;
|
|
1111
1123
|
}
|
|
@@ -1599,12 +1611,15 @@ video {
|
|
|
1599
1611
|
.pr-10 {
|
|
1600
1612
|
padding-right: 2.5rem;
|
|
1601
1613
|
}
|
|
1602
|
-
.pl-3 {
|
|
1603
|
-
padding-left: 0.75rem;
|
|
1604
|
-
}
|
|
1605
1614
|
.pb-2 {
|
|
1606
1615
|
padding-bottom: 0.5rem;
|
|
1607
1616
|
}
|
|
1617
|
+
.pb-4 {
|
|
1618
|
+
padding-bottom: 1rem;
|
|
1619
|
+
}
|
|
1620
|
+
.pl-3 {
|
|
1621
|
+
padding-left: 0.75rem;
|
|
1622
|
+
}
|
|
1608
1623
|
.pt-0 {
|
|
1609
1624
|
padding-top: 0px;
|
|
1610
1625
|
}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
variant?: "contained" | "outlined";
|
|
4
4
|
buttonID?: any;
|
|
5
|
+
tooltipDirection?: "rtl" | "ltr";
|
|
5
6
|
color?: "default" | "primary" | "secondary";
|
|
6
7
|
width?: "full" | "normal" | "half";
|
|
7
8
|
size?: "xs" | "small" | "medium" | "large" | "noPadding" | "full";
|
|
@@ -11,5 +12,5 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
12
|
tooltipPosition?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
12
13
|
isLoading?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, tooltipSize, tooltipPosition,
|
|
15
|
+
export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, tooltip, tooltipSize, tooltipPosition, tooltipDirection, margins, children, buttonID, ...props }: ButtonProps): JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -2,17 +2,14 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
interface TMenuTypes {
|
|
3
3
|
menuItems: MenuItems[][];
|
|
4
4
|
withHeader?: boolean;
|
|
5
|
-
withIcons?: boolean;
|
|
6
5
|
headerTitle?: string;
|
|
7
6
|
headerSubtitle?: string;
|
|
8
|
-
|
|
9
|
-
handleClose?: () => void;
|
|
10
|
-
handleOpen: () => void;
|
|
7
|
+
direction?: "rtl" | "ltr";
|
|
11
8
|
anchor?: any;
|
|
12
9
|
children?: ReactNode;
|
|
13
|
-
buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
14
10
|
position?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
15
11
|
onClickOutside?: any;
|
|
12
|
+
size?: "small" | "normal" | "large";
|
|
16
13
|
}
|
|
17
14
|
type MenuItems = {
|
|
18
15
|
icon?: JSX.Element;
|
|
@@ -5,6 +5,7 @@ type THawaToolTip = {
|
|
|
5
5
|
btnHovered?: any;
|
|
6
6
|
buttonRef?: any;
|
|
7
7
|
buttonID?: any;
|
|
8
|
+
direction?: "rtl" | "ltr";
|
|
8
9
|
size?: "normal" | "small" | "large";
|
|
9
10
|
position?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
10
11
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type InvoiceAccordionTypes = {
|
|
3
|
+
products: {
|
|
4
|
+
usage?: string;
|
|
5
|
+
price?: string;
|
|
6
|
+
amount?: string;
|
|
7
|
+
plan?: string;
|
|
8
|
+
}[];
|
|
9
|
+
texts: {
|
|
10
|
+
total: string;
|
|
11
|
+
plan: string;
|
|
12
|
+
usage: string;
|
|
13
|
+
amount: string;
|
|
14
|
+
price: string;
|
|
15
|
+
};
|
|
16
|
+
invoiceTitle: any;
|
|
17
|
+
invoiceSubtitle: any;
|
|
18
|
+
invoiceDescription?: any;
|
|
19
|
+
invoiceActions?: {
|
|
20
|
+
icon?: JSX.Element;
|
|
21
|
+
label: string;
|
|
22
|
+
action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
|
|
23
|
+
isButton?: boolean;
|
|
24
|
+
element?: any;
|
|
25
|
+
}[][];
|
|
26
|
+
total: string;
|
|
27
|
+
direction?: "rtl" | "ltr";
|
|
28
|
+
status?: "paid" | "pending" | "overdue";
|
|
29
|
+
};
|
|
30
|
+
export declare const InvoiceAccordion: React.FunctionComponent<InvoiceAccordionTypes>;
|
|
31
|
+
export {};
|
package/es/elements/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from "./HawaAlert";
|
|
|
11
11
|
export * from "./HawaTable";
|
|
12
12
|
export * from "./HawaColorPicker";
|
|
13
13
|
export * from "./HawaSearchBar";
|
|
14
|
-
export * from "./
|
|
14
|
+
export * from "./HawaAccordion";
|
|
15
15
|
export * from "./DragDropImages";
|
|
16
16
|
export * from "./DraggableCard";
|
|
17
17
|
export * from "./HawaPhoneInput";
|
|
@@ -27,6 +27,8 @@ export * from "./HawaSpinner";
|
|
|
27
27
|
export * from "./HawaRadio";
|
|
28
28
|
export * from "./HawaDrawer";
|
|
29
29
|
export * from "./SubsectionList";
|
|
30
|
+
export * from "./UsageCard";
|
|
31
|
+
export * from "./InvoiceAccordion";
|
|
30
32
|
export * from "./HawaTextField";
|
|
31
33
|
export * from "./HawaCardInput";
|
|
32
34
|
export * from "./HawaPinInput";
|