@sikka/hawa 0.0.212 → 0.0.213

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 (64) hide show
  1. package/dist/styles.css +45 -55
  2. package/es/blocks/Misc/Newsletter.d.ts +1 -0
  3. package/es/blocks/Misc/NotFound.d.ts +5 -0
  4. package/es/elements/HawaPanelTabs.d.ts +4 -1
  5. package/es/elements/HawaRange.d.ts +1 -1
  6. package/es/elements/HawaSelect.d.ts +5 -5
  7. package/es/elements/HawaSettingsRow.d.ts +1 -1
  8. package/es/elements/HawaSwitch.d.ts +1 -0
  9. package/es/elements/InvoiceAccordion.d.ts +4 -4
  10. package/es/index.es.js +1 -1
  11. package/es/layout/AppSidebar.d.ts +1 -1
  12. package/lib/blocks/Misc/Newsletter.d.ts +1 -0
  13. package/lib/blocks/Misc/NotFound.d.ts +5 -0
  14. package/lib/elements/HawaPanelTabs.d.ts +4 -1
  15. package/lib/elements/HawaRange.d.ts +1 -1
  16. package/lib/elements/HawaSelect.d.ts +5 -5
  17. package/lib/elements/HawaSettingsRow.d.ts +1 -1
  18. package/lib/elements/HawaSwitch.d.ts +1 -0
  19. package/lib/elements/InvoiceAccordion.d.ts +4 -4
  20. package/lib/index.js +1 -1
  21. package/lib/layout/AppSidebar.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -7
  24. package/src/blocks/Misc/EmptyState.tsx +1 -0
  25. package/src/blocks/Misc/Newsletter.tsx +8 -3
  26. package/src/blocks/Misc/NotFound.tsx +11 -3
  27. package/src/blocks/Payment/ChargeWalletForm.tsx +23 -14
  28. package/src/blocks/Payment/CheckoutForm.tsx +1 -14
  29. package/src/blocks/Payment/Confirmation.tsx +0 -1
  30. package/src/blocks/Payment/PayWithWallet.tsx +0 -1
  31. package/src/blocks/Payment/index.ts +6 -20
  32. package/src/blocks/Pricing/PricingPlans.tsx +1 -0
  33. package/src/blocks/Referral/ReferralAccount.tsx +1 -1
  34. package/src/blocks/Referral/ReferralStats.tsx +0 -1
  35. package/src/elements/DragDropImages.tsx +156 -158
  36. package/src/elements/DraggableCard.tsx +2 -1
  37. package/src/elements/HawaAccordion.tsx +1 -1
  38. package/src/elements/HawaChip.tsx +2 -1
  39. package/src/elements/HawaColorPicker.tsx +3 -5
  40. package/src/elements/HawaItemCard.tsx +1 -2
  41. package/src/elements/HawaMenu.tsx +2 -3
  42. package/src/elements/HawaModal.tsx +1 -1
  43. package/src/elements/HawaPanelTabs.tsx +1 -7
  44. package/src/elements/HawaPricingCard.tsx +1 -7
  45. package/src/elements/HawaRadio.tsx +1 -1
  46. package/src/elements/HawaRange.tsx +1 -1
  47. package/src/elements/HawaSelect.tsx +38 -36
  48. package/src/elements/HawaSettingsRow.tsx +7 -5
  49. package/src/elements/HawaSnackbar.tsx +1 -1
  50. package/src/elements/HawaSpinner.tsx +2 -2
  51. package/src/elements/HawaSwitch.tsx +19 -2
  52. package/src/elements/HawaTable.tsx +3 -1
  53. package/src/elements/HawaTabs.tsx +2 -0
  54. package/src/elements/HawaTextField.tsx +1 -0
  55. package/src/elements/HawaTooltip.tsx +0 -2
  56. package/src/elements/InvoiceAccordion.tsx +5 -5
  57. package/src/layout/AppSidebar.tsx +1 -1
  58. package/src/layout/HawaAppLayout.tsx +5 -4
  59. package/src/layout/HawaContainer.tsx +0 -1
  60. package/src/layout/HawaSiteLayout.tsx +1 -3
  61. package/src/layout/SimpleGrid.tsx +2 -3
  62. package/src/styles.css +45 -55
  63. package/src/tailwind.css +4 -8
  64. package/tailwind.config.js +3 -1
@@ -1,4 +1,5 @@
1
1
  import React, { ReactElement } from "react"
2
+
2
3
  type DraggableCardTypes = {
3
4
  children: ReactElement
4
5
  }
@@ -7,7 +8,7 @@ export const DraggableCard: React.FunctionComponent<DraggableCardTypes> = (
7
8
  props
8
9
  ) => {
9
10
  return (
10
- <div className="bg-layoutPrimary-500 flex flex-row rounded p-4">
11
+ <div className="flex flex-row rounded bg-layoutPrimary-500 p-4">
11
12
  <button
12
13
  className="inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600"
13
14
  type="button"
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  type AccordionItemTypes = {
5
5
  title: any
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  type TChipTypes = {
5
5
  label: string
@@ -9,6 +9,7 @@ type TChipTypes = {
9
9
  dot?: boolean
10
10
  dotType?: "available" | "unavailable"
11
11
  }
12
+
12
13
  export const HawaChip: React.FunctionComponent<TChipTypes> = ({
13
14
  size = "normal",
14
15
  label,
@@ -2,7 +2,7 @@ import React, { useState } from "react"
2
2
 
3
3
  type ColorPickerTypes = {
4
4
  color?: any
5
- handleChange?: (e : React.ChangeEvent<HTMLInputElement>) => void
5
+ handleChange?: (e: React.ChangeEvent<HTMLInputElement>) => void
6
6
  }
7
7
 
8
8
  export const HawaColorPicker: React.FunctionComponent<ColorPickerTypes> = (
@@ -10,7 +10,7 @@ export const HawaColorPicker: React.FunctionComponent<ColorPickerTypes> = (
10
10
  ) => {
11
11
  const [selectedColor, setSelectedColor] = useState(props.color)
12
12
  return (
13
- <div className={`flex w-fit flex-row p-0`}>
13
+ <div className={`flex w-fit flex-row rounded border-2 border-gray-200 p-0`}>
14
14
  <div
15
15
  style={{ backgroundColor: selectedColor }}
16
16
  className="rounded-tl-lg rounded-bl-lg"
@@ -29,10 +29,8 @@ export const HawaColorPicker: React.FunctionComponent<ColorPickerTypes> = (
29
29
  <input
30
30
  type="text"
31
31
  value={selectedColor}
32
- className="w-24 rounded-tr-lg rounded-br-lg pr-2 pl-2"
32
+ className="w-24 rounded-tr-lg rounded-br-lg pr-2 pl-2"
33
33
  />
34
34
  </div>
35
35
  )
36
36
  }
37
-
38
-
@@ -1,6 +1,5 @@
1
+ import React, { useEffect, useState } from "react"
1
2
  import clsx from "clsx"
2
- import React, { useEffect } from "react"
3
- import { useState } from "react"
4
3
  import { HawaMenu } from "./HawaMenu"
5
4
 
6
5
  interface ItemCardTypes {
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React, { ReactNode, useEffect, useRef, useState } from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  // TODO: add width to decrease width
5
5
 
@@ -28,7 +28,6 @@ interface TMenuTypes {
28
28
  type MenuItems = {
29
29
  icon?: JSX.Element
30
30
  label: string
31
- // action?: (item: any) => void
32
31
  action?: (e: any) => void
33
32
  isButton?: boolean
34
33
  element?: any
@@ -70,7 +69,7 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
70
69
  document.removeEventListener("click", handleClickOutside, true)
71
70
  }
72
71
  }, [onClickOutside])
73
-
72
+
74
73
  let defaultStyles =
75
74
  "border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700"
76
75
  let sizeStyles = {
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React, { ReactElement, useEffect } from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  type ModalTypes = {
5
5
  open: boolean
@@ -2,13 +2,7 @@ import React, { useState } from "react"
2
2
 
3
3
  type PanelTabsTypes = {
4
4
  defaultValue: any
5
- options: any
6
- // options: PropTypes.arrayOf(
7
- // PropTypes.shape({
8
- // label: PropTypes.string,
9
- // value: PropTypes.string,
10
- // })
11
- // ),
5
+ options: [{ label: string; value: string }]
12
6
  lang: any
13
7
  handleChange: any
14
8
  location: any
@@ -4,6 +4,7 @@ import { HawaButton } from "./HawaButton"
4
4
 
5
5
  // TODO: if feature.excluded is false, show gray and x
6
6
  // TODO: add badge to feature if soon
7
+ // TODO: add a discount element
7
8
 
8
9
  type PricingCardTypes = {
9
10
  direction?: "rtl" | "ltr"
@@ -94,13 +95,6 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = ({
94
95
  })}
95
96
  </ul>
96
97
  )}
97
- {/* <button
98
- disabled={currentPlan}
99
- type="button"
100
- className="inline-flex w-full justify-center rounded bg-blue-600 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-200 dark:focus:ring-blue-900"
101
- >
102
- {props.texts.buttonText}
103
- </button> */}
104
98
  <HawaButton
105
99
  onClick={props.onPlanClicked}
106
100
  margins="none"
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React, { useState } from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  type RadioTypes = {
5
5
  options?: [
@@ -5,7 +5,7 @@ type RangeTypes = {
5
5
  handleChange?: any
6
6
  startElement?: any
7
7
  endElement?: any
8
- label?: any
8
+ label?: string
9
9
  min?: any
10
10
  max?: any
11
11
  }
@@ -2,32 +2,8 @@ import clsx from "clsx"
2
2
  import React from "react"
3
3
  import Select from "react-select"
4
4
  import CreatableSelect from "react-select/creatable"
5
- type OptionTypes = {
6
- cx: any
7
- children: any
8
- getStyles: any
9
- innerProps: any
10
- innerRef: any
11
- size?: "small" | "normal" | "large"
12
- }
13
- const Option: React.FunctionComponent<OptionTypes> = ({
14
- cx,
15
- children,
16
- getStyles,
17
- innerProps,
18
- innerRef,
19
- size = "normal",
20
- ...props
21
- }) => (
22
- <div
23
- ref={innerRef}
24
- className="m-2 flex flex-row items-center justify-between rounded p-1 px-3 hover:bg-buttonPrimary-500 hover:text-white"
25
- {...innerProps}
26
- >
27
- {children}
28
- </div>
29
- )
30
5
 
6
+ // The select bar
31
7
  type ControlTypes = {
32
8
  cx: any
33
9
  children: any
@@ -64,6 +40,7 @@ const Control: React.FunctionComponent<ControlTypes> = ({
64
40
  </div>
65
41
  )
66
42
  }
43
+ // The options container
67
44
  type MenuTypes = {
68
45
  cx: any
69
46
  children: any
@@ -81,7 +58,7 @@ const Menu: React.FunctionComponent<MenuTypes> = ({
81
58
  }) => {
82
59
  return (
83
60
  <div
84
- className="absolute z-10 mt-2 w-full rounded bg-white ring-1 ring-blue-200"
61
+ className="absolute z-10 mt-2 flex w-full flex-col justify-start rounded bg-white p-1 px-1.5 ring-1 ring-blue-200"
85
62
  ref={innerRef}
86
63
  {...innerProps}
87
64
  // {...props}
@@ -90,14 +67,40 @@ const Menu: React.FunctionComponent<MenuTypes> = ({
90
67
  </div>
91
68
  )
92
69
  }
93
-
70
+ // The single options
71
+ type OptionTypes = {
72
+ cx: any
73
+ children: any
74
+ getStyles: any
75
+ innerProps: any
76
+ innerRef: any
77
+ size?: "small" | "normal" | "large"
78
+ }
79
+ const Option: React.FunctionComponent<OptionTypes> = ({
80
+ cx,
81
+ children,
82
+ getStyles,
83
+ innerProps,
84
+ innerRef,
85
+ size = "normal",
86
+ ...props
87
+ }) => (
88
+ <div
89
+ ref={innerRef}
90
+ className="flex flex-row items-center justify-between rounded p-1 px-2 hover:bg-buttonPrimary-500 hover:text-white"
91
+ {...innerProps}
92
+ >
93
+ {children}
94
+ </div>
95
+ )
96
+ // The main element
94
97
  type SelectTypes = {
95
- label?: any
96
- isCreatable?: any
98
+ label?: string
97
99
  options?: any[any]
98
- isClearable?: any
99
- isMulti?: any
100
- isSearchable?: any
100
+ isCreatable?: boolean
101
+ isClearable?: boolean
102
+ isMulti?: boolean
103
+ isSearchable?: boolean
101
104
  onChange?: any
102
105
  helperText?: any
103
106
  onInputChange?: any
@@ -106,15 +109,14 @@ type SelectTypes = {
106
109
  value?: any
107
110
  children?: any
108
111
  getOptionLabel?: any
109
- // size?
110
112
  }
111
113
  export const HawaSelect: React.FunctionComponent<SelectTypes> = (props) => {
112
114
  return (
113
- <div className="">
115
+ <div>
114
116
  {props.label && (
115
- <label className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300">
117
+ <div className="mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300">
116
118
  {props.label}
117
- </label>
119
+ </div>
118
120
  )}
119
121
  {!props.isCreatable && (
120
122
  <Select
@@ -1,5 +1,4 @@
1
1
  import React from "react"
2
- import { HawaTypography } from "./HawaTypography"
3
2
  import { HawaTextField } from "./HawaTextField"
4
3
  import { HawaSwitch } from "./HawaSwitch"
5
4
  import { HawaColorPicker } from "./HawaColorPicker"
@@ -7,7 +6,7 @@ import { HawaRange } from "./HawaRange"
7
6
  import { HawaRadio } from "./HawaRadio"
8
7
 
9
8
  type SettingsRowTypes = {
10
- settingsLabel: any
9
+ settingsLabel: string
11
10
  settingsType: "text" | "radio" | "boolean" | "color" | "range"
12
11
  radioProps: {
13
12
  defaultValue: any
@@ -32,10 +31,13 @@ export const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes> = ({
32
31
  radioProps,
33
32
  }) => {
34
33
  return (
35
- <div className="my-0.5 flex max-h-fit flex-row items-center justify-between rounded bg-white px-4 py-2 pr-2 align-middle">
36
- <HawaTypography>{settingsLabel}</HawaTypography>
34
+ <div className="my-0.5 flex h-20 max-h-fit flex-row items-center justify-between rounded bg-white p-6 align-middle">
35
+ <div>
36
+ <div>{settingsLabel}</div>
37
+ <div className="text-sm">Text here like a description</div>
38
+ </div>
37
39
  {settingsType === "text" && <HawaTextField margin="none" width="small" />}
38
- {settingsType === "boolean" && <HawaSwitch />}
40
+ {settingsType === "boolean" && <HawaSwitch size="large" />}
39
41
  {settingsType === "range" && <HawaRange {...rangeProps} />}
40
42
  {settingsType === "color" && <HawaColorPicker {...colorProps} />}
41
43
  {settingsType === "radio" && <HawaRadio {...radioProps} />}
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React, { FC, useEffect, useRef, useState } from "react"
2
+ import clsx from "clsx"
3
3
  import { HawaButton } from "./HawaButton"
4
4
 
5
5
  type THawaSnackBar = {
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React from "react"
2
+ import clsx from "clsx"
3
3
 
4
4
  type SpinnerTypes = {
5
5
  size?: "button" | "sm" | "normal" | "lg" | "xl"
@@ -21,7 +21,7 @@ export const HawaSpinner: React.FunctionComponent<SpinnerTypes> = ({
21
21
  <div
22
22
  className={clsx(
23
23
  sizeStyles[size],
24
- "animate-spin rounded-full border-2 border-gray-400 border-t-white text-white"
24
+ "animate-spin rounded-full border-4 border-gray-400 border-t-white text-white"
25
25
  )}
26
26
  ></div>
27
27
  </div>
@@ -1,10 +1,22 @@
1
1
  import React from "react"
2
+ import clsx from "clsx"
2
3
 
3
4
  type SwitchTypes = {
4
5
  text?: any
6
+ size?: "small" | "normal" | "large"
5
7
  }
6
8
 
7
- export const HawaSwitch: React.FunctionComponent<SwitchTypes> = (props) => {
9
+ export const HawaSwitch: React.FunctionComponent<SwitchTypes> = ({
10
+ size = "normal",
11
+ ...props
12
+ }) => {
13
+ let sizeStyles = {
14
+ small: "",
15
+ normal:
16
+ "peer-checked:after:translate-x-full h-6 w-11 after:top-[2px] after:left-[2px] after:h-5 after:w-5 ",
17
+ large:
18
+ "peer-checked:after:translate-x-[2.445rem] h-10 w-20 after:top-[2px] after:left-[2px] after:h-9 after:w-9",
19
+ }
8
20
  return (
9
21
  <label
10
22
  htmlFor="default-toggle"
@@ -16,7 +28,12 @@ export const HawaSwitch: React.FunctionComponent<SwitchTypes> = (props) => {
16
28
  id="default-toggle"
17
29
  className="peer sr-only"
18
30
  />
19
- <div className="peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:top-[2px] after:left-[2px] after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-blue-800"></div>
31
+ <div
32
+ className={clsx(
33
+ sizeStyles[size],
34
+ "peer rounded-full bg-gray-200 after:absolute after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-buttonPrimary-500 peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-buttonPrimary-700"
35
+ )}
36
+ ></div>
20
37
  {props.text && (
21
38
  <span className="mx-2 text-sm font-medium text-gray-900 dark:text-gray-300">
22
39
  {props.text}
@@ -1,13 +1,15 @@
1
1
  import React, { useEffect, useState } from "react"
2
- import { BsChevronRight, BsFilter, BsPlus, BsThreeDots } from "react-icons/bs"
3
2
  import clsx from "clsx"
4
3
  import { HawaMenu } from "./HawaMenu"
5
4
  import useTable from "../hooks/useTable"
6
5
  import { HawaTextField } from "./HawaTextField"
7
6
  import { HawaButton } from "./HawaButton"
8
7
  import { FaSearch } from "react-icons/fa"
8
+ import { BsChevronRight, BsFilter, BsPlus, BsThreeDots } from "react-icons/bs"
9
+
9
10
  // TODO: translate header tools and make it more customizable
10
11
  // TODO: pass the onSearch handler to the parent
12
+
11
13
  type TableTypes = {
12
14
  columns: any[string]
13
15
  actions?: ActionItems[][]
@@ -1,6 +1,8 @@
1
1
  import clsx from "clsx"
2
2
  import React, { useState } from "react"
3
+
3
4
  // TODO: fix wrapping issue when small screen
5
+
4
6
  type TabsTypes = {
5
7
  options?: any
6
8
  onChangeTab?: any
@@ -1,5 +1,6 @@
1
1
  import React from "react"
2
2
  import clsx from "clsx"
3
+
3
4
  // TODO: make icon based on direction
4
5
  // TODO: Preferebly usse context to pass direction rtl | ltr
5
6
 
@@ -1,8 +1,6 @@
1
1
  import clsx from "clsx"
2
2
  import React, { useEffect, useRef, useState } from "react"
3
3
 
4
- // TODO: fix it in RTL
5
-
6
4
  type THawaToolTip = {
7
5
  children?: React.ReactElement
8
6
  content?: string
@@ -1,8 +1,8 @@
1
1
  import React, { useState } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HiChevronRight } from "react-icons/hi"
4
- import { HawaChip } from "./HawaChip"
5
4
  import { BsThreeDotsVertical } from "react-icons/bs"
5
+ import { HawaChip } from "./HawaChip"
6
6
  import { HawaMenu } from "./HawaMenu"
7
7
 
8
8
  type InvoiceAccordionTypes = {
@@ -19,9 +19,9 @@ type InvoiceAccordionTypes = {
19
19
  amount: string
20
20
  price: string
21
21
  }
22
- invoiceTitle: any
23
- invoiceSubtitle: any
24
- invoiceDescription?: any
22
+ invoiceTitle: string
23
+ invoiceSubtitle: string
24
+ invoiceDescription?: string
25
25
  invoiceActions?: {
26
26
  icon?: JSX.Element
27
27
  label: string
@@ -29,7 +29,7 @@ type InvoiceAccordionTypes = {
29
29
  isButton?: boolean
30
30
  element?: any
31
31
  }[][]
32
- total: string
32
+ total: any
33
33
  direction?: "rtl" | "ltr"
34
34
  status?: "paid" | "pending" | "overdue"
35
35
  }
@@ -1,4 +1,4 @@
1
- import * as React from "react"
1
+ import React from "react"
2
2
 
3
3
  interface Props {
4
4
  isOpen: boolean
@@ -1,10 +1,11 @@
1
- import clsx from "clsx"
2
1
  import React, { useEffect, useRef, useState } from "react"
3
- import useDiscloser from "../hooks/useDiscloser"
4
- import { HawaMenu } from "../elements"
2
+ import clsx from "clsx"
5
3
  import { HiMenu } from "react-icons/hi"
6
- import useBreakpoint from "../hooks/useBreakpoint"
7
4
  import { FaChevronRight } from "react-icons/fa"
5
+ import useDiscloser from "../hooks/useDiscloser"
6
+ import useBreakpoint from "../hooks/useBreakpoint"
7
+ import { HawaMenu } from "../elements"
8
+
8
9
  // TODO: when no navbar, the drawer can't be opened
9
10
  // TODO: when no pagetitle, navbar gets messy
10
11
 
@@ -31,7 +31,6 @@ export const HawaContainer: React.FunctionComponent<ContainerTypes> = ({
31
31
  <div
32
32
  className={clsx(
33
33
  defaultStyle,
34
- // "shadow-3xl",
35
34
  maxWidthStyles[maxWidth],
36
35
  variantStyles[variant],
37
36
  centered ? "flex items-center text-center" : ""
@@ -1,10 +1,9 @@
1
1
  import clsx from "clsx"
2
2
  import React, { useEffect, useRef, useState } from "react"
3
3
  import useDiscloser from "../hooks/useDiscloser"
4
- import { HawaMenu } from "../elements"
5
4
  import { HiMenu } from "react-icons/hi"
6
5
  import useBreakpoint from "../hooks/useBreakpoint"
7
- import { FaChevronRight } from "react-icons/fa"
6
+
8
7
  type HawaSiteLayoutTypes = {
9
8
  navItems: {
10
9
  label: string
@@ -29,7 +28,6 @@ type HawaSiteLayoutTypes = {
29
28
  export const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes> = ({
30
29
  direction = "rtl",
31
30
  navigationSize = "md",
32
-
33
31
  ...props
34
32
  }) => {
35
33
  const [openSideMenu, setOpenSideMenu] = useState(false)
@@ -1,6 +1,6 @@
1
1
  import { useState } from "@storybook/addons"
2
- import clsx from "clsx"
3
2
  import { FC, ReactNode } from "react"
3
+ import clsx from "clsx"
4
4
 
5
5
  type TSimpleGrid = {
6
6
  columns: number
@@ -23,7 +23,6 @@ const SimpleGrid: FC<TSimpleGrid> = ({
23
23
  const grid_spacing_x = "gap-x-" + spacingX
24
24
  const grid_spacing_y = "gap-y-" + spacingY
25
25
 
26
-
27
26
  return (
28
27
  <div
29
28
  className={clsx(
@@ -31,7 +30,7 @@ const SimpleGrid: FC<TSimpleGrid> = ({
31
30
  cols_num,
32
31
  spacing ?? grid_spacing,
33
32
  grid_spacing_x,
34
- grid_spacing_y
33
+ grid_spacing_y
35
34
  )}
36
35
  >
37
36
  {children}