@sikka/hawa 0.0.265 → 0.0.267
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/.github/workflows/hawa-publish-push.yml +1 -0
- package/dist/styles.css +150 -15
- package/es/elements/DragDropImages.d.ts +2 -0
- package/es/elements/HawaAlert.d.ts +2 -0
- package/es/elements/HawaButton.d.ts +2 -1
- package/es/elements/HawaInlineCode.d.ts +6 -0
- package/es/elements/HawaTable.d.ts +12 -2
- package/es/elements/Timeline.d.ts +13 -0
- package/es/elements/index.d.ts +6 -4
- package/es/hooks/useTable.d.ts +1 -1
- package/es/index.es.js +3 -3
- package/es/layout/Banner.d.ts +14 -0
- package/es/layout/HawaAppLayoutSimplified.d.ts +2 -0
- package/es/layout/index.d.ts +1 -0
- package/lib/elements/DragDropImages.d.ts +2 -0
- package/lib/elements/HawaAlert.d.ts +2 -0
- package/lib/elements/HawaButton.d.ts +2 -1
- package/lib/elements/HawaInlineCode.d.ts +6 -0
- package/lib/elements/HawaTable.d.ts +12 -2
- package/lib/elements/Timeline.d.ts +13 -0
- package/lib/elements/index.d.ts +6 -4
- package/lib/hooks/useTable.d.ts +1 -1
- package/lib/index.js +3 -3
- package/lib/layout/Banner.d.ts +14 -0
- package/lib/layout/HawaAppLayoutSimplified.d.ts +2 -0
- package/lib/layout/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/blocks/Misc/EmptyState.tsx +11 -2
- package/src/blocks/Misc/NoPermission.tsx +11 -2
- package/src/blocks/Pricing/ComparingPlans.tsx +11 -2
- package/src/blocks/Referral/ReferralAccount.tsx +22 -3
- package/src/blocks/Referral/ReferralSettlement.tsx +15 -3
- package/src/elements/DragDropImages.tsx +88 -58
- package/src/elements/HawaAlert.tsx +72 -51
- package/src/elements/HawaButton.tsx +17 -4
- package/src/elements/HawaCodeBlock.tsx +1 -0
- package/src/elements/HawaInlineCode.tsx +9 -0
- package/src/elements/HawaMenu.tsx +2 -2
- package/src/elements/HawaTable.tsx +71 -13
- package/src/elements/Timeline.tsx +35 -0
- package/src/elements/index.ts +6 -4
- package/src/hooks/useTable.ts +129 -4
- package/src/layout/Banner.tsx +123 -0
- package/src/layout/HawaAppLayout.tsx +16 -3
- package/src/layout/HawaAppLayoutSimplified.tsx +125 -85
- package/src/layout/HawaSiteLayout.tsx +16 -3
- package/src/layout/index.ts +1 -0
- package/src/styles.css +150 -15
- package/src/tailwind.css +34 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type BannerTypes = {
|
|
3
|
+
showBanner?: boolean;
|
|
4
|
+
direction?: "rtl" | "ltr";
|
|
5
|
+
logoURL?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
actionText?: string;
|
|
9
|
+
onActionClick?: () => void;
|
|
10
|
+
position?: "top" | "bottom";
|
|
11
|
+
design: "default" | "floating";
|
|
12
|
+
};
|
|
13
|
+
export declare const HawaBanner: FC<BannerTypes>;
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type HawaAppLayoutTypes = {
|
|
3
|
+
/** The pages of the side drawer */
|
|
3
4
|
drawerItems: {
|
|
4
5
|
label: string;
|
|
5
6
|
icon: any;
|
|
@@ -20,6 +21,7 @@ type HawaAppLayoutTypes = {
|
|
|
20
21
|
drawerSize?: "sm" | "md" | "large";
|
|
21
22
|
profileMenuItems?: MenuItems[][];
|
|
22
23
|
onSettingsClick?: () => void;
|
|
24
|
+
DrawerFooterActions: any;
|
|
23
25
|
};
|
|
24
26
|
type MenuItems = {
|
|
25
27
|
icon?: JSX.Element;
|
package/es/layout/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
3
3
|
variant?: "contained" | "outlined";
|
|
4
4
|
feedback?: string;
|
|
5
5
|
tooltipDirection?: "rtl" | "ltr";
|
|
6
|
-
color?: "default" | "primary" | "secondary";
|
|
6
|
+
color?: "default" | "primary" | "secondary" | "light" | "dark";
|
|
7
7
|
width?: "full" | "normal" | "half";
|
|
8
8
|
size?: "xs" | "small" | "medium" | "large" | "noPadding" | "full";
|
|
9
9
|
margins?: "none" | "1" | "2" | "3" | "4";
|
|
@@ -14,6 +14,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
14
14
|
endIcon?: any;
|
|
15
15
|
isLoading?: boolean;
|
|
16
16
|
badge?: any;
|
|
17
|
+
edgeCorner?: any;
|
|
17
18
|
}
|
|
18
19
|
export declare const HawaButton: FC<ButtonProps>;
|
|
19
20
|
export {};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
type RowTypes = {
|
|
3
|
+
hidden: boolean;
|
|
4
|
+
value: any;
|
|
5
|
+
suffix?: any;
|
|
6
|
+
};
|
|
7
|
+
type ColTypes = {
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
value: any;
|
|
10
|
+
sortable?: boolean;
|
|
11
|
+
};
|
|
2
12
|
type TableTypes = {
|
|
3
13
|
pagination?: boolean;
|
|
4
|
-
columns:
|
|
14
|
+
columns: ColTypes[];
|
|
5
15
|
actions?: ActionItems[][];
|
|
6
16
|
direction?: "rtl" | "ltr";
|
|
7
|
-
rows?:
|
|
17
|
+
rows?: RowTypes[][];
|
|
8
18
|
handleActionClick?: any;
|
|
9
19
|
end?: any;
|
|
10
20
|
size?: "normal" | "small";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
type TimelineTypes = {
|
|
3
|
+
title: any;
|
|
4
|
+
steps: StepTypes[];
|
|
5
|
+
};
|
|
6
|
+
type StepTypes = {
|
|
7
|
+
date: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
actions?: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const Timeline: FC<TimelineTypes>;
|
|
13
|
+
export {};
|
package/lib/elements/index.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ export * from "./HawaTable";
|
|
|
13
13
|
export * from "./HawaColorPicker";
|
|
14
14
|
export * from "./HawaSearchBar";
|
|
15
15
|
export * from "./HawaAccordion";
|
|
16
|
-
export * from "./DragDropImages";
|
|
17
|
-
export * from "./DraggableCard";
|
|
18
16
|
export * from "./HawaPhoneInput";
|
|
19
17
|
export * from "./HawaTooltip";
|
|
20
18
|
export * from "./HawaTabs";
|
|
@@ -22,22 +20,26 @@ export * from "./HawaModal";
|
|
|
22
20
|
export * from "./HawaMenu";
|
|
23
21
|
export * from "./HawaCopyrights";
|
|
24
22
|
export * from "./HawaStepper";
|
|
25
|
-
export * from "./Breadcrumb";
|
|
26
23
|
export * from "./HawaStats";
|
|
27
24
|
export * from "./HawaCodeBlock";
|
|
28
25
|
export * from "./HawaSpinner";
|
|
29
26
|
export * from "./HawaRadio";
|
|
30
27
|
export * from "./HawaDrawer";
|
|
28
|
+
export * from "./HawaDatepicker";
|
|
29
|
+
export * from "./DragDropImages";
|
|
30
|
+
export * from "./DraggableCard";
|
|
31
|
+
export * from "./Breadcrumb";
|
|
31
32
|
export * from "./SubsectionList";
|
|
32
33
|
export * from "./UsageCard";
|
|
33
34
|
export * from "./InvoiceAccordion";
|
|
34
|
-
export * from "./HawaDatepicker";
|
|
35
35
|
export * from "./UserFeedback";
|
|
36
36
|
export * from "./ArrowCarousel";
|
|
37
37
|
export * from "./FloatingComment";
|
|
38
38
|
export * from "./FloatingCommentSlate";
|
|
39
39
|
export * from "./FloatingCommentExec";
|
|
40
40
|
export * from "./BackToTop";
|
|
41
|
+
export * from "./HawaInlineCode";
|
|
42
|
+
export * from "./Timeline";
|
|
41
43
|
export * from "./HawaTextField";
|
|
42
44
|
export * from "./HawaCardInput";
|
|
43
45
|
export * from "./HawaPinInput";
|
package/lib/hooks/useTable.d.ts
CHANGED