@sikka/hawa 0.0.224 → 0.0.226
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 +38 -2
- package/es/elements/HawaApiBox.d.ts +8 -0
- package/es/elements/HawaDatepicker.d.ts +4 -0
- package/es/elements/HawaLandingCard.d.ts +17 -0
- package/es/elements/HawaModal.d.ts +19 -0
- package/es/elements/HawaStats.d.ts +2 -1
- package/es/elements/HawaStoreButtons.d.ts +7 -0
- package/es/elements/HawaTable.d.ts +2 -1
- package/es/elements/HawaTextField.d.ts +9 -1
- package/es/elements/index.d.ts +4 -0
- package/es/index.es.js +1 -1
- package/lib/elements/HawaApiBox.d.ts +8 -0
- package/lib/elements/HawaDatepicker.d.ts +4 -0
- package/lib/elements/HawaLandingCard.d.ts +17 -0
- package/lib/elements/HawaModal.d.ts +19 -0
- package/lib/elements/HawaStats.d.ts +2 -1
- package/lib/elements/HawaStoreButtons.d.ts +7 -0
- package/lib/elements/HawaTable.d.ts +2 -1
- package/lib/elements/HawaTextField.d.ts +9 -1
- package/lib/elements/index.d.ts +4 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/HawaApiBox.tsx +14 -0
- package/src/elements/HawaDatepicker.tsx +23 -0
- package/src/elements/HawaLandingCard.tsx +66 -0
- package/src/elements/HawaModal.tsx +19 -0
- package/src/elements/HawaPhoneInput.tsx +5 -2
- package/src/elements/HawaStats.tsx +13 -2
- package/src/elements/HawaStoreButtons.tsx +131 -0
- package/src/elements/HawaTable.tsx +58 -36
- package/src/elements/HawaTextField.tsx +11 -3
- package/src/elements/index.ts +4 -0
- package/src/styles.css +38 -2
- package/tailwind.config.js +1 -1
package/dist/styles.css
CHANGED
|
@@ -570,9 +570,15 @@ video {
|
|
|
570
570
|
.inset-0 {
|
|
571
571
|
inset: 0px;
|
|
572
572
|
}
|
|
573
|
+
.-bottom-10 {
|
|
574
|
+
bottom: -2.5rem;
|
|
575
|
+
}
|
|
573
576
|
.-left-1 {
|
|
574
577
|
left: -0.25rem;
|
|
575
578
|
}
|
|
579
|
+
.-right-10 {
|
|
580
|
+
right: -2.5rem;
|
|
581
|
+
}
|
|
576
582
|
.-right-3 {
|
|
577
583
|
right: -0.75rem;
|
|
578
584
|
}
|
|
@@ -687,6 +693,9 @@ video {
|
|
|
687
693
|
.-mb-px {
|
|
688
694
|
margin-bottom: -1px;
|
|
689
695
|
}
|
|
696
|
+
.-mt-1 {
|
|
697
|
+
margin-top: -0.25rem;
|
|
698
|
+
}
|
|
690
699
|
.mb-0 {
|
|
691
700
|
margin-bottom: 0px;
|
|
692
701
|
}
|
|
@@ -747,6 +756,9 @@ video {
|
|
|
747
756
|
.mr-2 {
|
|
748
757
|
margin-right: 0.5rem;
|
|
749
758
|
}
|
|
759
|
+
.mr-3 {
|
|
760
|
+
margin-right: 0.75rem;
|
|
761
|
+
}
|
|
750
762
|
.mr-4 {
|
|
751
763
|
margin-right: 1rem;
|
|
752
764
|
}
|
|
@@ -944,6 +956,9 @@ video {
|
|
|
944
956
|
.w-44 {
|
|
945
957
|
width: 11rem;
|
|
946
958
|
}
|
|
959
|
+
.w-48 {
|
|
960
|
+
width: 12rem;
|
|
961
|
+
}
|
|
947
962
|
.w-5 {
|
|
948
963
|
width: 1.25rem;
|
|
949
964
|
}
|
|
@@ -1238,9 +1253,15 @@ video {
|
|
|
1238
1253
|
.rounded-lg {
|
|
1239
1254
|
border-radius: 0.5rem;
|
|
1240
1255
|
}
|
|
1256
|
+
.rounded-md {
|
|
1257
|
+
border-radius: 0.375rem;
|
|
1258
|
+
}
|
|
1241
1259
|
.rounded-none {
|
|
1242
1260
|
border-radius: 0px;
|
|
1243
1261
|
}
|
|
1262
|
+
.rounded-xl {
|
|
1263
|
+
border-radius: 0.75rem;
|
|
1264
|
+
}
|
|
1244
1265
|
.rounded-b {
|
|
1245
1266
|
border-bottom-right-radius: var(--border-radius);
|
|
1246
1267
|
border-bottom-left-radius: var(--border-radius);
|
|
@@ -1429,6 +1450,10 @@ video {
|
|
|
1429
1450
|
--tw-border-opacity: 1;
|
|
1430
1451
|
border-top-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
1431
1452
|
}
|
|
1453
|
+
.bg-black {
|
|
1454
|
+
--tw-bg-opacity: 1;
|
|
1455
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
1456
|
+
}
|
|
1432
1457
|
.bg-blue-100 {
|
|
1433
1458
|
--tw-bg-opacity: 1;
|
|
1434
1459
|
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
@@ -1847,9 +1872,16 @@ video {
|
|
|
1847
1872
|
--tw-text-opacity: 1;
|
|
1848
1873
|
color: rgb(161 98 7 / var(--tw-text-opacity));
|
|
1849
1874
|
}
|
|
1875
|
+
.underline {
|
|
1876
|
+
-webkit-text-decoration-line: underline;
|
|
1877
|
+
text-decoration-line: underline;
|
|
1878
|
+
}
|
|
1850
1879
|
.underline-offset-4 {
|
|
1851
1880
|
text-underline-offset: 4px;
|
|
1852
1881
|
}
|
|
1882
|
+
.underline-offset-8 {
|
|
1883
|
+
text-underline-offset: 8px;
|
|
1884
|
+
}
|
|
1853
1885
|
.opacity-0 {
|
|
1854
1886
|
opacity: 0;
|
|
1855
1887
|
}
|
|
@@ -1880,8 +1912,8 @@ video {
|
|
|
1880
1912
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1881
1913
|
}
|
|
1882
1914
|
.shadow-neobrutalism {
|
|
1883
|
-
--tw-shadow:
|
|
1884
|
-
--tw-shadow-colored:
|
|
1915
|
+
--tw-shadow: 5px 5px 0px 0px rgba(0,0,0,1);;
|
|
1916
|
+
--tw-shadow-colored: 5px 5px 0px 0px var(--tw-shadow-color);
|
|
1885
1917
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1886
1918
|
}
|
|
1887
1919
|
.shadow-sm {
|
|
@@ -1927,6 +1959,10 @@ video {
|
|
|
1927
1959
|
.ring-offset-2 {
|
|
1928
1960
|
--tw-ring-offset-width: 2px;
|
|
1929
1961
|
}
|
|
1962
|
+
.drop-shadow-md {
|
|
1963
|
+
--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
|
|
1964
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1965
|
+
}
|
|
1930
1966
|
.filter {
|
|
1931
1967
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1932
1968
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type LandingCardTypes = {
|
|
3
|
+
orientation: "vertical" | "horizontal";
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
imageURL: string;
|
|
7
|
+
handleHide: any;
|
|
8
|
+
texts?: {
|
|
9
|
+
titleTip?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
linkText?: string;
|
|
13
|
+
};
|
|
14
|
+
buttonLink?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const HawaLandingCard: React.FunctionComponent<LandingCardTypes>;
|
|
17
|
+
export {};
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
type ModalTypes = {
|
|
3
|
+
/**
|
|
4
|
+
* The boolean to open and close the modal
|
|
5
|
+
*/
|
|
3
6
|
open: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The title of the modal, it will appear in the header of the modal
|
|
9
|
+
*/
|
|
4
10
|
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* a function that's triggered when the modal is closed either by the clicking the close button or outside the modal.
|
|
13
|
+
* @returns void
|
|
14
|
+
*/
|
|
5
15
|
onClose: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Boolean to enable/disable closing the modal upon clicking outside the modal
|
|
18
|
+
*/
|
|
6
19
|
closeOnClickOutside?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The id of the modal
|
|
22
|
+
*/
|
|
7
23
|
modalID?: string;
|
|
8
24
|
children: ReactElement;
|
|
25
|
+
/**
|
|
26
|
+
* The array of actions for the modal, it will appear in the footer of the modal
|
|
27
|
+
*/
|
|
9
28
|
actions: any;
|
|
10
29
|
};
|
|
11
30
|
export declare const HawaModal: React.FunctionComponent<ModalTypes>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type StatTypes = {
|
|
3
3
|
label?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
number?: string;
|
|
5
6
|
helperText?: string;
|
|
6
|
-
variant?: "plain" | "contained" | "outlined";
|
|
7
|
+
variant?: "plain" | "contained" | "outlined" | "brutalist" | "dropshadow";
|
|
7
8
|
width?: "full" | "min" | "normal";
|
|
8
9
|
isLoading?: boolean;
|
|
9
10
|
handleClick?: () => void;
|
|
@@ -2,19 +2,27 @@ import React from "react";
|
|
|
2
2
|
type TextFieldTypes = {
|
|
3
3
|
margin?: "none" | "normal" | "large";
|
|
4
4
|
width?: "small" | "normal" | "full";
|
|
5
|
+
/** The label of the input field */
|
|
5
6
|
label?: any;
|
|
6
|
-
|
|
7
|
+
/** Disable/Enable multiple line text input field */
|
|
8
|
+
multiline?: boolean;
|
|
9
|
+
/** The small red text under the input field to show validation or a hint. */
|
|
7
10
|
helperText?: any;
|
|
11
|
+
/** The value of the input field */
|
|
8
12
|
value?: any;
|
|
9
13
|
props?: React.PropsWithRef<"input">;
|
|
14
|
+
/** The type of input field. Same as the types of <input/> component */
|
|
10
15
|
type?: any;
|
|
16
|
+
/** The placeholder of the input field */
|
|
11
17
|
placeholder?: any;
|
|
12
18
|
defaultValue?: any;
|
|
13
19
|
name?: any;
|
|
14
20
|
inputProps?: any;
|
|
15
21
|
onChange?: any;
|
|
16
22
|
ref?: any;
|
|
23
|
+
/** The icon inside the input field */
|
|
17
24
|
icon?: any;
|
|
25
|
+
/** Boolean to enable/disable editing the input field and using it as a text field */
|
|
18
26
|
preview?: boolean;
|
|
19
27
|
};
|
|
20
28
|
export declare const HawaTextField: React.FunctionComponent<TextFieldTypes>;
|
package/es/elements/index.d.ts
CHANGED
|
@@ -29,11 +29,15 @@ export * from "./HawaDrawer";
|
|
|
29
29
|
export * from "./SubsectionList";
|
|
30
30
|
export * from "./UsageCard";
|
|
31
31
|
export * from "./InvoiceAccordion";
|
|
32
|
+
export * from "./HawaApiBox";
|
|
33
|
+
export * from "./HawaDatepicker";
|
|
32
34
|
export * from "./HawaTextField";
|
|
33
35
|
export * from "./HawaCardInput";
|
|
34
36
|
export * from "./HawaPinInput";
|
|
35
37
|
export * from "./HawaItemCard";
|
|
36
38
|
export * from "./HawaPricingCard";
|
|
37
39
|
export * from "./HawaAdCard";
|
|
40
|
+
export * from "./HawaLandingCard";
|
|
38
41
|
export * from "./HawaButton";
|
|
42
|
+
export * from "./HawaStoreButtons";
|
|
39
43
|
export * from "./HawaLogoButton";
|