@sikka/hawa 0.0.225 → 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 +9 -2
- package/es/elements/HawaApiBox.d.ts +8 -0
- package/es/elements/HawaDatepicker.d.ts +4 -0
- package/es/elements/HawaModal.d.ts +19 -0
- package/es/elements/HawaStats.d.ts +2 -1
- package/es/elements/HawaTable.d.ts +2 -1
- package/es/elements/HawaTextField.d.ts +9 -1
- package/es/elements/index.d.ts +2 -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/HawaModal.d.ts +19 -0
- package/lib/elements/HawaStats.d.ts +2 -1
- package/lib/elements/HawaTable.d.ts +2 -1
- package/lib/elements/HawaTextField.d.ts +9 -1
- package/lib/elements/index.d.ts +2 -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/HawaModal.tsx +19 -0
- package/src/elements/HawaStats.tsx +13 -2
- package/src/elements/HawaTable.tsx +58 -36
- package/src/elements/HawaTextField.tsx +11 -3
- package/src/elements/index.ts +2 -0
- package/src/styles.css +9 -2
- package/tailwind.config.js +1 -1
package/dist/styles.css
CHANGED
|
@@ -1253,6 +1253,9 @@ video {
|
|
|
1253
1253
|
.rounded-lg {
|
|
1254
1254
|
border-radius: 0.5rem;
|
|
1255
1255
|
}
|
|
1256
|
+
.rounded-md {
|
|
1257
|
+
border-radius: 0.375rem;
|
|
1258
|
+
}
|
|
1256
1259
|
.rounded-none {
|
|
1257
1260
|
border-radius: 0px;
|
|
1258
1261
|
}
|
|
@@ -1909,8 +1912,8 @@ video {
|
|
|
1909
1912
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1910
1913
|
}
|
|
1911
1914
|
.shadow-neobrutalism {
|
|
1912
|
-
--tw-shadow:
|
|
1913
|
-
--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);
|
|
1914
1917
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1915
1918
|
}
|
|
1916
1919
|
.shadow-sm {
|
|
@@ -1956,6 +1959,10 @@ video {
|
|
|
1956
1959
|
.ring-offset-2 {
|
|
1957
1960
|
--tw-ring-offset-width: 2px;
|
|
1958
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
|
+
}
|
|
1959
1966
|
.filter {
|
|
1960
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);
|
|
1961
1968
|
}
|
|
@@ -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,6 +29,8 @@ 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";
|