@sikka/hawa 0.0.270 → 0.0.273

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.
Files changed (68) hide show
  1. package/dist/styles.css +199 -17
  2. package/es/blocks/Pricing/HorizontalPricing.d.ts +47 -0
  3. package/es/blocks/Pricing/index.d.ts +1 -0
  4. package/es/elements/HawaLandingCard.d.ts +1 -0
  5. package/es/elements/HawaLoading.d.ts +8 -0
  6. package/es/elements/HawaRadio.d.ts +7 -10
  7. package/es/elements/HawaSnackbar.d.ts +1 -0
  8. package/es/elements/HawaStats.d.ts +2 -1
  9. package/es/elements/index.d.ts +1 -1
  10. package/es/index.es.js +3 -3
  11. package/es/layout/HawaGrid.d.ts +6 -0
  12. package/es/layout/index.d.ts +1 -0
  13. package/lib/blocks/Pricing/HorizontalPricing.d.ts +47 -0
  14. package/lib/blocks/Pricing/index.d.ts +1 -0
  15. package/lib/elements/HawaLandingCard.d.ts +1 -0
  16. package/lib/elements/HawaLoading.d.ts +8 -0
  17. package/lib/elements/HawaRadio.d.ts +7 -10
  18. package/lib/elements/HawaSnackbar.d.ts +1 -0
  19. package/lib/elements/HawaStats.d.ts +2 -1
  20. package/lib/elements/index.d.ts +1 -1
  21. package/lib/index.js +3 -3
  22. package/lib/layout/HawaGrid.d.ts +6 -0
  23. package/lib/layout/index.d.ts +1 -0
  24. package/package.json +2 -1
  25. package/src/blocks/Misc/EmptyState.tsx +0 -1
  26. package/src/blocks/Misc/NoPermission.tsx +0 -1
  27. package/src/blocks/Pricing/ComparingPlans.tsx +0 -3
  28. package/src/blocks/Pricing/HorizontalPricing.tsx +140 -0
  29. package/src/blocks/Pricing/index.ts +1 -0
  30. package/src/blocks/Referral/ReferralAccount.tsx +0 -2
  31. package/src/blocks/Referral/ReferralSettlement.tsx +0 -1
  32. package/src/elements/ArrowCarousel.tsx +0 -1
  33. package/src/elements/BackToTop.tsx +0 -1
  34. package/src/elements/DragDropImages.tsx +0 -2
  35. package/src/elements/DraggableCard.tsx +0 -1
  36. package/src/elements/HawaAccordion.tsx +0 -1
  37. package/src/elements/HawaAlert.tsx +0 -1
  38. package/src/elements/HawaButton.tsx +9 -5
  39. package/src/elements/HawaCodeBlock.tsx +4 -14
  40. package/src/elements/HawaDropdownMenu.tsx +112 -58
  41. package/src/elements/HawaItemCard.tsx +0 -1
  42. package/src/elements/HawaLandingCard.tsx +12 -10
  43. package/src/elements/HawaLoading.tsx +83 -0
  44. package/src/elements/HawaLogoButton.tsx +0 -3
  45. package/src/elements/HawaModal.tsx +0 -1
  46. package/src/elements/HawaPhoneInput.tsx +5 -1
  47. package/src/elements/HawaPricingCard.tsx +0 -1
  48. package/src/elements/HawaRadio.tsx +9 -12
  49. package/src/elements/HawaSnackbar.tsx +6 -3
  50. package/src/elements/HawaStats.tsx +18 -8
  51. package/src/elements/HawaStepper.tsx +0 -1
  52. package/src/elements/HawaTable.tsx +0 -6
  53. package/src/elements/InvoiceAccordion.tsx +0 -2
  54. package/src/elements/UsageCard.tsx +0 -1
  55. package/src/elements/UserFeedback.tsx +0 -1
  56. package/src/elements/index.ts +1 -1
  57. package/src/layout/Banner.tsx +0 -1
  58. package/src/layout/HawaAppLayout.tsx +0 -3
  59. package/src/layout/HawaAppLayoutSimplified.tsx +0 -4
  60. package/src/layout/HawaGrid.tsx +15 -0
  61. package/src/layout/HawaSiteLayout.tsx +0 -1
  62. package/src/layout/index.ts +1 -0
  63. package/src/styles.css +199 -17
  64. package/src/tailwind.css +7 -0
  65. package/tailwind.config.js +29 -8
  66. package/es/elements/HawaSpinner.d.ts +0 -6
  67. package/lib/elements/HawaSpinner.d.ts +0 -6
  68. package/src/elements/HawaSpinner.tsx +0 -42
@@ -120,7 +120,6 @@ export const HawaItemCard: FC<ItemCardTypes> = ({
120
120
  aria-hidden="true"
121
121
  fill="currentColor"
122
122
  viewBox="0 0 20 20"
123
- xmlns="http://www.w3.org/2000/svg"
124
123
  >
125
124
  <path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"></path>
126
125
  </svg>
@@ -14,9 +14,10 @@ type LandingCardTypes = {
14
14
  linkText?: string
15
15
  }
16
16
  buttonLink?: string
17
+ className?: any
17
18
  }
18
19
  export const HawaLandingCard: FC<LandingCardTypes> = ({
19
- orientation,
20
+ orientation = "horizontal",
20
21
  ...props
21
22
  }) => {
22
23
  let cardStyles = {
@@ -36,12 +37,13 @@ export const HawaLandingCard: FC<LandingCardTypes> = ({
36
37
  className={clsx(
37
38
  cardStyles[orientation],
38
39
  "flex flex-col p-10",
39
- "relative overflow-hidden"
40
+ "relative overflow-hidden",
41
+ props.className
40
42
  )}
41
43
  {...props}
42
44
  >
43
- {props.texts.titleTip && (
44
- <div className="text-sm text-red-600">{props.texts.titleTip}</div>
45
+ {props.texts?.titleTip && (
46
+ <div className="text-sm text-red-600">{props.texts?.titleTip}</div>
45
47
  )}
46
48
  {props.imageURL && (
47
49
  <img
@@ -50,15 +52,15 @@ export const HawaLandingCard: FC<LandingCardTypes> = ({
50
52
  />
51
53
  )}
52
54
 
53
- {props.texts.title && (
54
- <div className="mt-2 text-lg font-medium">{props.texts.title} </div>
55
+ {props.texts?.title && (
56
+ <div className="mt-2 text-lg font-medium">{props.texts?.title} </div>
55
57
  )}
56
- {props.texts.description && (
57
- <div className="z-10 mt-4 text-sm">{props.texts.description}</div>
58
+ {props.texts?.description && (
59
+ <div className="z-10 mt-4 text-sm">{props.texts?.description}</div>
58
60
  )}
59
- {props.texts.linkText && (
61
+ {props.texts?.linkText && (
60
62
  <div className="z-10 mt-6 text-sm underline underline-offset-8">
61
- {props.texts.linkText}
63
+ {props.texts?.linkText}
62
64
  </div>
63
65
  )}
64
66
  </div>
@@ -0,0 +1,83 @@
1
+ import React, { FC } from "react"
2
+ import clsx from "clsx"
3
+
4
+ type LoadingTypes = {
5
+ size?: "button" | "sm" | "normal" | "lg" | "xl"
6
+ design?: "spinner" | "dots-bounce" | "dots-pulse" | "pulse" | "spinner-dots"
7
+ color?: any
8
+ }
9
+
10
+ export const HawaLoading: FC<LoadingTypes> = ({
11
+ design = "spinner",
12
+ size = "sm",
13
+ color,
14
+ ...props
15
+ }) => {
16
+ let sizeStyles = {
17
+ button: "h-4 w-4",
18
+ sm: "h-6 w-6",
19
+ normal: "h-8 w-8",
20
+ lg: "h-14 w-14",
21
+ xl: "h-24 w-24",
22
+ }
23
+
24
+ let animationStyles = {
25
+ pulse: "animate-in fade-in duration-1000",
26
+ bounce: "animate-bounce",
27
+ }
28
+ switch (design.split("-")[0]) {
29
+ case "dots":
30
+ return (
31
+ <div className="flex flex-row space-x-2 ">
32
+ <div
33
+ className={clsx(
34
+ "animate-bounce rounded-full delay-100 repeat-infinite",
35
+ size === "button" ? "h-2 w-2" : sizeStyles[size],
36
+ animationStyles[design.split("-")[1]],
37
+ color ? color : "bg-buttonPrimary-500"
38
+ )}
39
+ ></div>
40
+ <div
41
+ className={clsx(
42
+ "animate-bounce rounded-full delay-200 repeat-infinite",
43
+ size === "button" ? "h-2 w-2" : sizeStyles[size],
44
+ animationStyles[design.split("-")[1]],
45
+
46
+ color ? color : "bg-buttonPrimary-500"
47
+ )}
48
+ ></div>
49
+ <div
50
+ className={clsx(
51
+ "animate-bounce rounded-full delay-300 repeat-infinite",
52
+ size === "button" ? "h-2 w-2" : sizeStyles[size],
53
+ animationStyles[design.split("-")[1]],
54
+
55
+ color ? color : "bg-buttonPrimary-500"
56
+ )}
57
+ ></div>
58
+ </div>
59
+ )
60
+
61
+ default:
62
+ return (
63
+ <div className="flex flex-row gap-x-3">
64
+ <div aria-label="Loading..." role="status">
65
+ <svg
66
+ className={clsx(sizeStyles[size], "animate-spin")}
67
+ viewBox="3 3 18 18"
68
+ >
69
+ <path
70
+ className="fill-gray-200"
71
+ d="M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"
72
+ ></path>
73
+ <path
74
+ // className="fill-buttonPrimary-500 "
75
+ className={color ? color : "fill-buttonPrimary-500"}
76
+ d="M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"
77
+ ></path>
78
+ </svg>
79
+ </div>
80
+ </div>
81
+ )
82
+ }
83
+ }
@@ -36,7 +36,6 @@ export const HawaLogoButton: FC<LogoButtonTypes> = (props) => {
36
36
  width="32px"
37
37
  height="32px"
38
38
  viewBox="0 0 32 32"
39
- xmlns="http://www.w3.org/2000/svg"
40
39
  className="h-7 w-7"
41
40
  >
42
41
  <path d="M16 0.396c-8.839 0-16 7.167-16 16 0 7.073 4.584 13.068 10.937 15.183 0.803 0.151 1.093-0.344 1.093-0.772 0-0.38-0.009-1.385-0.015-2.719-4.453 0.964-5.391-2.151-5.391-2.151-0.729-1.844-1.781-2.339-1.781-2.339-1.448-0.989 0.115-0.968 0.115-0.968 1.604 0.109 2.448 1.645 2.448 1.645 1.427 2.448 3.744 1.74 4.661 1.328 0.14-1.031 0.557-1.74 1.011-2.135-3.552-0.401-7.287-1.776-7.287-7.907 0-1.751 0.62-3.177 1.645-4.297-0.177-0.401-0.719-2.031 0.141-4.235 0 0 1.339-0.427 4.4 1.641 1.281-0.355 2.641-0.532 4-0.541 1.36 0.009 2.719 0.187 4 0.541 3.043-2.068 4.381-1.641 4.381-1.641 0.859 2.204 0.317 3.833 0.161 4.235 1.015 1.12 1.635 2.547 1.635 4.297 0 6.145-3.74 7.5-7.296 7.891 0.556 0.479 1.077 1.464 1.077 2.959 0 2.14-0.020 3.864-0.020 4.385 0 0.416 0.28 0.916 1.104 0.755 6.4-2.093 10.979-8.093 10.979-15.156 0-8.833-7.161-16-16-16z" />
@@ -47,7 +46,6 @@ export const HawaLogoButton: FC<LogoButtonTypes> = (props) => {
47
46
  logoElement = (
48
47
  <svg
49
48
  version="1.1"
50
- xmlns="http://www.w3.org/2000/svg"
51
49
  x="0px"
52
50
  y="0px"
53
51
  className="h-5 w-5"
@@ -124,7 +122,6 @@ export const HawaLogoButton: FC<LogoButtonTypes> = (props) => {
124
122
  logoElement = (
125
123
  <svg
126
124
  version="1.1"
127
- xmlns="http://www.w3.org/2000/svg"
128
125
  viewBox="0 0 223 223"
129
126
  className="h-6 w-6"
130
127
  >
@@ -69,7 +69,6 @@ export const HawaModal: FC<ModalTypes> = ({
69
69
  className="h-5 w-5"
70
70
  fill="currentColor"
71
71
  viewBox="0 0 20 20"
72
- xmlns="http://www.w3.org/2000/svg"
73
72
  >
74
73
  <path
75
74
  fillRule="evenodd"
@@ -60,6 +60,7 @@ export const HawaPhoneInput: FC<HawaPhoneInputTypes> = (props) => {
60
60
  },
61
61
  lineHeight: "1.25rem",
62
62
  padding: "0.37rem",
63
+ paddingLeft: 0,
63
64
  }),
64
65
  singleValue: (base) => ({
65
66
  ...base,
@@ -84,6 +85,8 @@ export const HawaPhoneInput: FC<HawaPhoneInputTypes> = (props) => {
84
85
  DropdownIndicator: () => null,
85
86
  IndicatorSeparator: () => null,
86
87
  }}
88
+ // className="bg-red-500"
89
+
87
90
  options={Countries}
88
91
  isMulti={false}
89
92
  isSearchable={true}
@@ -96,7 +99,8 @@ export const HawaPhoneInput: FC<HawaPhoneInputTypes> = (props) => {
96
99
  <input
97
100
  onChange={props.handleChange}
98
101
  type="number"
99
- className="block w-full appearance-none rounded rounded-l-none border border-l-0 border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
102
+ placeholder="531045453"
103
+ className="block w-full appearance-none rounded rounded-l-none border border-l-0 border-gray-300 bg-gray-50 p-2.5 text-[0.875rem] text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
100
104
  />
101
105
  {props.helperText && (
102
106
  <p className="mb-1 mt-1 text-xs text-red-600 dark:text-red-500">
@@ -78,7 +78,6 @@ export const HawaPricingCard: FC<PricingCardTypes> = ({
78
78
  className="m-2 h-5 w-5 flex-shrink-0 text-blue-600 dark:text-blue-500"
79
79
  fill="currentColor"
80
80
  viewBox="0 0 20 20"
81
- xmlns="http://www.w3.org/2000/svg"
82
81
  >
83
82
  <title>Check icon</title>
84
83
  <path
@@ -4,16 +4,14 @@ import clsx from "clsx"
4
4
  type RadioTypes = {
5
5
  orientation?: "vertical" | "horizontal"
6
6
  design?: "default" | "tabs" | "cards" | "bordered"
7
- options?: [
8
- {
9
- value: any
10
- label: any
11
- disabled?: any
12
- sublabel?: any
13
- beforeIcon?: any
14
- afterIcon?: any
15
- }
16
- ]
7
+ options?: {
8
+ value: any
9
+ label: any
10
+ disabled?: any
11
+ sublabel?: any
12
+ icon?: any
13
+ }[]
14
+
17
15
  onChangeTab?: any
18
16
  defaultValue?: any
19
17
  }
@@ -59,7 +57,7 @@ export const HawaRadio: FC<RadioTypes> = ({
59
57
  : inactiveTabStyle
60
58
  )}
61
59
  >
62
- {/* {opt.icon} */}
60
+ {opt.icon && opt.icon}
63
61
  {opt.label}
64
62
  </button>
65
63
  </li>
@@ -130,7 +128,6 @@ export const HawaRadio: FC<RadioTypes> = ({
130
128
  {/* <svg
131
129
  className="ml-3 h-5 w-5 "
132
130
  aria-hidden="true"
133
- xmlns="http://www.w3.org/2000/svg"
134
131
  fill="none"
135
132
  viewBox="0 0 14 10"
136
133
  >
@@ -6,7 +6,7 @@ type THawaSnackBar = {
6
6
  severity: "info" | "warning" | "error" | "success" | "none"
7
7
  title: string
8
8
  description: string
9
- // handleClose?: () => void
9
+ onCloseSnakbar?: () => void
10
10
  duration?: number
11
11
  position?:
12
12
  | "top-left"
@@ -31,6 +31,7 @@ export const HawaSnackbar: FC<THawaSnackBar> = ({
31
31
  severity = "info",
32
32
  position = "bottom-left",
33
33
  actions,
34
+ onCloseSnakbar,
34
35
  // handleClose,
35
36
  duration,
36
37
  }) => {
@@ -110,7 +111,10 @@ export const HawaSnackbar: FC<THawaSnackBar> = ({
110
111
  className="right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white"
111
112
  data-dismiss-target="#toast-default"
112
113
  aria-label="Close"
113
- onClick={() => setClosed(true)}
114
+ onClick={() => {
115
+ onCloseSnakbar()
116
+ setClosed(true)
117
+ }}
114
118
  >
115
119
  <span className="sr-only">Close</span>
116
120
  <svg
@@ -118,7 +122,6 @@ export const HawaSnackbar: FC<THawaSnackBar> = ({
118
122
  className="h-5 w-5"
119
123
  fill="currentColor"
120
124
  viewBox="0 0 20 20"
121
- xmlns="http://www.w3.org/2000/svg"
122
125
  >
123
126
  <path
124
127
  fillRule="evenodd"
@@ -1,22 +1,31 @@
1
1
  import React, { FC } from "react"
2
2
  import clsx from "clsx"
3
- import { HawaSpinner } from "./HawaSpinner"
3
+ import { HawaLoading } from "./HawaLoading"
4
+ // import { BsFilesAlt } from "react-icons/bs"
4
5
 
5
6
  type StatTypes = {
6
7
  label?: string
7
8
  color?: string
8
9
  number?: string
9
10
  helperText?: string
10
- variant?: "plain" | "contained" | "outlined" | "brutalist" | "dropshadow"
11
+ icon?: any
12
+ variant?:
13
+ | "default"
14
+ | "plain"
15
+ | "contained"
16
+ | "outlined"
17
+ | "brutalist"
18
+ | "dropshadow"
11
19
  width?: "full" | "min" | "normal"
12
20
  isLoading?: boolean
13
21
  handleClick?: () => void
14
22
  }
15
- export const HawaStats: FC<StatTypes> = (props) => {
23
+ export const HawaStats: FC<StatTypes> = ({ variant = "default", ...props }) => {
16
24
  let defaultStyle =
17
25
  "flex transition-all flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit"
18
26
  let statStyles = {
19
27
  plain: "",
28
+ default: "border bg-card text-card-foreground shadow-sm",
20
29
  contained: "bg-layoutPrimary-500",
21
30
  outlined: "ring-2 w-fit",
22
31
  neobrutalism: "shadow-neobrutalism border-4 border-black bg-white",
@@ -34,28 +43,29 @@ export const HawaStats: FC<StatTypes> = (props) => {
34
43
  className={clsx(
35
44
  defaultStyle,
36
45
  widthStyles[props.width],
37
- statStyles[props.variant],
46
+ statStyles[variant],
38
47
  props.handleClick ? "cursor-pointer" : "cursor-default",
39
- props.handleClick && props.variant === "dropshadow"
48
+ props.handleClick && variant === "dropshadow"
40
49
  ? "hover:drop-shadow-lg"
41
50
  : ""
42
51
  )}
43
52
  style={{
44
53
  backgroundColor: props.color
45
54
  ? props.color
46
- : props.variant === "contained"
55
+ : variant === "contained"
47
56
  ? "var(--layout-primary-500)"
48
57
  : "",
49
58
  }}
50
59
  >
60
+ {props.icon && <div className="mb-2">{props.icon} </div>}
51
61
  <div>{props.label}</div>
52
62
  {props.isLoading ? (
53
- <HawaSpinner />
63
+ <HawaLoading />
54
64
  ) : (
55
65
  <div className="text-2xl font-bold">{props.number}</div>
56
66
  )}
57
67
  {props.helperText ? (
58
- <div className="text-xs">{props.helperText}</div>
68
+ <div className="text-xs text-muted-foreground">{props.helperText}</div>
59
69
  ) : null}
60
70
  </div>
61
71
  )
@@ -60,7 +60,6 @@ export const HawaStepper: FC<THawaTimeline> = ({
60
60
  viewBox="0 0 512 512"
61
61
  height="0.60em"
62
62
  width="0.60em"
63
- xmlns="http://www.w3.org/2000/svg"
64
63
  >
65
64
  <path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path>
66
65
  </svg>
@@ -141,7 +141,6 @@ export const HawaTable: FC<TableTypes> = ({
141
141
  viewBox="0 0 512 512"
142
142
  height="1em"
143
143
  width="1em"
144
- xmlns="http://www.w3.org/2000/svg"
145
144
  >
146
145
  <path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path>
147
146
  </svg>
@@ -161,7 +160,6 @@ export const HawaTable: FC<TableTypes> = ({
161
160
  viewBox="0 0 16 16"
162
161
  height="1em"
163
162
  width="1em"
164
- xmlns="http://www.w3.org/2000/svg"
165
163
  >
166
164
  <path d="M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"></path>
167
165
  </svg>
@@ -175,7 +173,6 @@ export const HawaTable: FC<TableTypes> = ({
175
173
  viewBox="0 0 16 16"
176
174
  height="1em"
177
175
  width="1em"
178
- xmlns="http://www.w3.org/2000/svg"
179
176
  >
180
177
  <path
181
178
  fill-rule="evenodd"
@@ -362,7 +359,6 @@ export const HawaTable: FC<TableTypes> = ({
362
359
  viewBox="0 0 16 16"
363
360
  height="1em"
364
361
  width="1em"
365
- xmlns="http://www.w3.org/2000/svg"
366
362
  >
367
363
  <path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"></path>
368
364
  </svg>
@@ -423,7 +419,6 @@ export const HawaTable: FC<TableTypes> = ({
423
419
  viewBox="0 0 16 16"
424
420
  height="1em"
425
421
  width="1em"
426
- xmlns="http://www.w3.org/2000/svg"
427
422
  >
428
423
  <path
429
424
  fill-rule="evenodd"
@@ -534,7 +529,6 @@ export const HawaTable: FC<TableTypes> = ({
534
529
  viewBox="0 0 16 16"
535
530
  height="1em"
536
531
  width="1em"
537
- xmlns="http://www.w3.org/2000/svg"
538
532
  >
539
533
  <path
540
534
  fill-rule="evenodd"
@@ -74,7 +74,6 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
74
74
  aria-hidden="true"
75
75
  height="2em"
76
76
  width="2em"
77
- xmlns="http://www.w3.org/2000/svg"
78
77
  >
79
78
  <path
80
79
  fill-rule="evenodd"
@@ -110,7 +109,6 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
110
109
  viewBox="0 0 16 16"
111
110
  height="1em"
112
111
  width="1em"
113
- xmlns="http://www.w3.org/2000/svg"
114
112
  >
115
113
  <path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"></path>
116
114
  </svg>
@@ -22,7 +22,6 @@ export const UsageCard: FC<UsageCardTypes> = (props) => {
22
22
  viewBox="0 0 16 16"
23
23
  height="1em"
24
24
  width="1em"
25
- xmlns="http://www.w3.org/2000/svg"
26
25
  >
27
26
  <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path>
28
27
  </svg>
@@ -68,7 +68,6 @@ export const UserFeedback: FC<ComponentTypes> = ({
68
68
  className="h-5 w-5"
69
69
  fill="currentColor"
70
70
  viewBox="0 0 20 20"
71
- xmlns="http://www.w3.org/2000/svg"
72
71
  >
73
72
  <path
74
73
  fillRule="evenodd"
@@ -23,7 +23,7 @@ export * from "./HawaCopyrights"
23
23
  export * from "./HawaStepper"
24
24
  export * from "./HawaStats"
25
25
  export * from "./HawaCodeBlock"
26
- export * from "./HawaSpinner"
26
+ export * from "./HawaLoading"
27
27
  export * from "./HawaRadio"
28
28
  export * from "./HawaDatepicker"
29
29
  export * from "./DragDropImages"
@@ -108,7 +108,6 @@ export const HawaBanner: FC<BannerTypes> = ({
108
108
  className="h-5 w-5"
109
109
  fill="currentColor"
110
110
  viewBox="0 0 20 20"
111
- xmlns="http://www.w3.org/2000/svg"
112
111
  >
113
112
  <path
114
113
  fillRule="evenodd"
@@ -142,7 +142,6 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
142
142
  aria-hidden="true"
143
143
  height="1.6em"
144
144
  width="1.6em"
145
- xmlns="http://www.w3.org/2000/svg"
146
145
  >
147
146
  <path
148
147
  fill-rule="evenodd"
@@ -199,7 +198,6 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
199
198
  className="absolute -left-1 h-10 w-10 text-gray-400"
200
199
  fill="currentColor"
201
200
  viewBox="0 0 20 20"
202
- xmlns="http://www.w3.org/2000/svg"
203
201
  >
204
202
  <path
205
203
  fillRule="evenodd"
@@ -438,7 +436,6 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
438
436
  stroke-linejoin="round"
439
437
  height="1em"
440
438
  width="1em"
441
- xmlns="http://www.w3.org/2000/svg"
442
439
  >
443
440
  <circle cx="12" cy="12" r="3"></circle>
444
441
  <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
@@ -146,7 +146,6 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
146
146
  aria-hidden="true"
147
147
  height="1.6em"
148
148
  width="1.6em"
149
- xmlns="http://www.w3.org/2000/svg"
150
149
  >
151
150
  <path
152
151
  fill-rule="evenodd"
@@ -505,7 +504,6 @@ const AvatarIcon = () => (
505
504
  className="absolute -left-1 h-10 w-10 text-gray-400"
506
505
  fill="currentColor"
507
506
  viewBox="0 0 20 20"
508
- xmlns="http://www.w3.org/2000/svg"
509
507
  >
510
508
  <path
511
509
  fillRule="evenodd"
@@ -542,7 +540,6 @@ const ArrowIcon = ({ pointing, color }) => {
542
540
  )}
543
541
  fill={color}
544
542
  viewBox="0 0 20 20"
545
- xmlns="http://www.w3.org/2000/svg"
546
543
  >
547
544
  <path
548
545
  fillRule="evenodd"
@@ -563,7 +560,6 @@ const SettingsIcon = () => (
563
560
  stroke-linejoin="round"
564
561
  height="1em"
565
562
  width="1em"
566
- xmlns="http://www.w3.org/2000/svg"
567
563
  >
568
564
  <circle cx="12" cy="12" r="3"></circle>
569
565
  <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
@@ -0,0 +1,15 @@
1
+ import React, { FC } from "react"
2
+ import clsx from "clsx"
3
+
4
+ type GridTypes = {
5
+ children?: any
6
+ }
7
+
8
+ export const HawaGrid: FC<GridTypes> = (props) => {
9
+ return (
10
+ // [&>*:not(:first-child)]:mt-8
11
+ <div className=" columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8">
12
+ {props.children}
13
+ </div>
14
+ )
15
+ }
@@ -125,7 +125,6 @@ export const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes> = ({
125
125
  aria-hidden="true"
126
126
  height="1.6em"
127
127
  width="1.6em"
128
- xmlns="http://www.w3.org/2000/svg"
129
128
  >
130
129
  <path
131
130
  fill-rule="evenodd"
@@ -4,6 +4,7 @@ export * from "./HawaSiteLayout"
4
4
  export * from "./HawaAppLayout"
5
5
  export * from "./HawaAppLayoutSimplified"
6
6
  export * from "./HawaContainer"
7
+ export * from "./HawaGrid"
7
8
  export * from "./AppSidebar"
8
9
  export * from "./Footer"
9
10
  export * from "./Banner"