@sikka/hawa 0.0.225 → 0.0.227

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -411,6 +411,9 @@ video {
411
411
  --tw-pan-y: ;
412
412
  --tw-pinch-zoom: ;
413
413
  --tw-scroll-snap-strictness: proximity;
414
+ --tw-gradient-from-position: ;
415
+ --tw-gradient-via-position: ;
416
+ --tw-gradient-to-position: ;
414
417
  --tw-ordinal: ;
415
418
  --tw-slashed-zero: ;
416
419
  --tw-numeric-figure: ;
@@ -458,6 +461,9 @@ video {
458
461
  --tw-pan-y: ;
459
462
  --tw-pinch-zoom: ;
460
463
  --tw-scroll-snap-strictness: proximity;
464
+ --tw-gradient-from-position: ;
465
+ --tw-gradient-via-position: ;
466
+ --tw-gradient-to-position: ;
461
467
  --tw-ordinal: ;
462
468
  --tw-slashed-zero: ;
463
469
  --tw-numeric-figure: ;
@@ -1253,6 +1259,9 @@ video {
1253
1259
  .rounded-lg {
1254
1260
  border-radius: 0.5rem;
1255
1261
  }
1262
+ .rounded-md {
1263
+ border-radius: 0.375rem;
1264
+ }
1256
1265
  .rounded-none {
1257
1266
  border-radius: 0px;
1258
1267
  }
@@ -1909,8 +1918,8 @@ video {
1909
1918
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1910
1919
  }
1911
1920
  .shadow-neobrutalism {
1912
- --tw-shadow: 10px 10px 0px 0px rgba(0,0,0,1);;
1913
- --tw-shadow-colored: 10px 10px 0px 0px var(--tw-shadow-color);
1921
+ --tw-shadow: 5px 5px 0px 0px rgba(0,0,0,1);;
1922
+ --tw-shadow-colored: 5px 5px 0px 0px var(--tw-shadow-color);
1914
1923
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1915
1924
  }
1916
1925
  .shadow-sm {
@@ -1956,6 +1965,10 @@ video {
1956
1965
  .ring-offset-2 {
1957
1966
  --tw-ring-offset-width: 2px;
1958
1967
  }
1968
+ .drop-shadow-md {
1969
+ --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));
1970
+ 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);
1971
+ }
1959
1972
  .filter {
1960
1973
  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
1974
  }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type HawaApiBoxTypes = {
3
+ lang?: any;
4
+ onClick?: any;
5
+ buttonText?: any;
6
+ };
7
+ export declare const HawaApiBox: React.FunctionComponent<HawaApiBoxTypes>;
8
+ export {};
@@ -31,6 +31,14 @@ type PricingPlansTypes = {
31
31
  }
32
32
  ];
33
33
  onPlanClicked?: (e: any) => void;
34
+ currentCycle: {
35
+ label: string;
36
+ value: string;
37
+ };
38
+ currentCurrency: {
39
+ label: string;
40
+ value: string;
41
+ };
34
42
  onCycleChange?: (e: any) => void;
35
43
  onCurrencyChange?: (e: any) => void;
36
44
  direction?: "rtl" | "ltr";
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ type DatepickerTypes = {};
3
+ export declare const HawaDatepicker: FC<DatepickerTypes>;
4
+ 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;
@@ -9,7 +9,8 @@ type TableTypes = {
9
9
  end?: any;
10
10
  size?: "normal" | "small";
11
11
  highlightFirst?: boolean;
12
- customColor?: string;
12
+ bodyColor?: string;
13
+ headerColor?: string;
13
14
  clickable?: boolean;
14
15
  texts?: {
15
16
  actions?: string;
@@ -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
- multiline?: any;
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>;
@@ -29,6 +29,7 @@ export * from "./HawaDrawer";
29
29
  export * from "./SubsectionList";
30
30
  export * from "./UsageCard";
31
31
  export * from "./InvoiceAccordion";
32
+ export * from "./HawaDatepicker";
32
33
  export * from "./HawaTextField";
33
34
  export * from "./HawaCardInput";
34
35
  export * from "./HawaPinInput";