@sikka/hawa 0.0.249 → 0.0.251

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 (44) hide show
  1. package/es/elements/HawaButton.d.ts +3 -3
  2. package/es/elements/HawaCardInput.d.ts +2 -2
  3. package/es/hooks/useHover.d.ts +2 -2
  4. package/es/index.es.js +3 -3
  5. package/lib/elements/HawaButton.d.ts +3 -3
  6. package/lib/elements/HawaCardInput.d.ts +2 -2
  7. package/lib/hooks/useHover.d.ts +2 -2
  8. package/lib/index.js +3 -3
  9. package/package.json +6 -6
  10. package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
  11. package/src/blocks/AuthForms/NewPasswordForm.tsx +1 -1
  12. package/src/blocks/AuthForms/SignInPhone.tsx +1 -1
  13. package/src/blocks/Payment/ChargeWalletForm.tsx +1 -1
  14. package/src/blocks/Pricing/ComparingPlans.tsx +1 -1
  15. package/src/elements/ArrowCarousel.tsx +1 -1
  16. package/src/elements/BackToTop.tsx +1 -1
  17. package/src/elements/HawaAccordion.tsx +1 -1
  18. package/src/elements/HawaButton.tsx +4 -4
  19. package/src/elements/HawaCardInput.tsx +1 -1
  20. package/src/elements/HawaCheckbox.tsx +1 -1
  21. package/src/elements/HawaColorPicker.tsx +1 -1
  22. package/src/elements/HawaDatepicker.tsx +1 -1
  23. package/src/elements/HawaItemCard.tsx +1 -1
  24. package/src/elements/HawaMenu.tsx +1 -1
  25. package/src/elements/HawaModal.tsx +1 -1
  26. package/src/elements/HawaPanelTabs.tsx +1 -1
  27. package/src/elements/HawaPhoneInput.tsx +1 -1
  28. package/src/elements/HawaPinInput.tsx +1 -1
  29. package/src/elements/HawaRadio.tsx +1 -1
  30. package/src/elements/HawaRange.tsx +1 -1
  31. package/src/elements/HawaSnackbar.tsx +1 -1
  32. package/src/elements/HawaTable.tsx +1 -1
  33. package/src/elements/HawaTabs.tsx +1 -1
  34. package/src/elements/HawaTooltip.tsx +1 -1
  35. package/src/elements/InvoiceAccordion.tsx +1 -1
  36. package/src/elements/SubsectionList.tsx +1 -1
  37. package/src/elements/UserFeedback.tsx +1 -1
  38. package/src/hooks/useBreakpoint.ts +1 -1
  39. package/src/hooks/useDiscloser.ts +1 -1
  40. package/src/hooks/useHover.ts +1 -1
  41. package/src/hooks/useScrollPosition.ts +1 -1
  42. package/src/hooks/useTable.ts +1 -1
  43. package/src/layout/Footer.tsx +2 -5
  44. package/src/layout/HawaSiteLayout.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.249",
3
+ "version": "0.0.251",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -60,10 +60,10 @@
60
60
  "prettier": "^2.7.1",
61
61
  "prettier-plugin-tailwindcss": "^0.1.13",
62
62
  "qs": "^6.10.3",
63
- "react": ">=17.0.1",
63
+ "react": "^17.0.1",
64
64
  "react-color": "^2.19.3",
65
65
  "react-dnd": "^15.1.2",
66
- "react-dom": ">=17.0.1",
66
+ "react-dom": "^17.0.1",
67
67
  "react-hook-form": "^7.28.0",
68
68
  "react-phone-input-2": "^2.15.1",
69
69
  "react-select": "^5.3.2",
@@ -82,8 +82,8 @@
82
82
  "tailwindcss": "^3.3.3"
83
83
  },
84
84
  "peerDependencies": {
85
- "react-dom": ">=17.0.1",
86
- "react": ">=17.0.1"
85
+ "react-dom": "^17.0.1",
86
+ "react": "^17.0.1"
87
87
  },
88
88
  "resolutions": {
89
89
  "@storybook/react/webpack": "^5",
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "clsx": "^1.2.1",
97
- "react": ">=17.0.1",
97
+ "react": "^17.0.1",
98
98
  "react-dropzone": "^12.0.4",
99
99
  "react-hook-form": "^7.28.0",
100
100
  "react-icons": "^4.6.0",
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import { HawaAlert, HawaButton, HawaPinInput } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import { HawaTextField, HawaAlert, HawaButton } from "../../elements"
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form"
4
4
  import { HawaContainer } from "../../layout"
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import { Controller, useForm } from "react-hook-form"
3
3
  import { HawaButton, HawaPhoneInput } from "../../elements"
4
4
  import { HawaContainer } from "../../layout"
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import { HawaButton } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import { BsExclamationCircleFill } from "react-icons/bs"
3
3
  import { HawaTabs, HawaTooltip } from "../../elements"
4
4
 
@@ -1,5 +1,5 @@
1
+ import React, { useEffect, useState, FC } from "react"
1
2
  import clsx from "clsx"
2
- import { useEffect, useState, FC } from "react"
3
3
 
4
4
  type Item = {
5
5
  label?: string
@@ -1,4 +1,4 @@
1
- import { FC, RefObject, useState, useEffect } from "react"
1
+ import React, { FC, RefObject, useState, useEffect } from "react"
2
2
  import { clsx } from "clsx"
3
3
 
4
4
  type ComponentTypes = {
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  type AccordionTypes = {
@@ -1,9 +1,9 @@
1
- import React from "react"
1
+ import { FC, ButtonHTMLAttributes } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaSpinner } from "./HawaSpinner"
4
4
  import { HawaTooltip } from "./HawaTooltip"
5
5
 
6
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
7
  variant?: "contained" | "outlined"
8
8
  tooltipDirection?: "rtl" | "ltr"
9
9
  color?: "default" | "primary" | "secondary"
@@ -33,7 +33,7 @@ const disabledVariantSyles = {
33
33
  outlined: "text-gray-300 border-gray-300",
34
34
  }
35
35
 
36
- export const HawaButton: React.FunctionComponent<ButtonProps> = ({
36
+ export const HawaButton: FC<ButtonProps> = ({
37
37
  className,
38
38
  variant = "contained",
39
39
  color = "default",
@@ -174,7 +174,7 @@ export const HawaButton: React.FunctionComponent<ButtonProps> = ({
174
174
  </button>
175
175
  )}
176
176
  {badge && (
177
- <div className="absolute -top-3 -right-3 inline-flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-red-500 text-xs font-bold text-white dark:border-gray-900">
177
+ <div className="absolute -right-3 -top-3 inline-flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-red-500 text-xs font-bold text-white dark:border-gray-900">
178
178
  {badge}
179
179
  </div>
180
180
  )}
@@ -1,4 +1,4 @@
1
- import { useState } from "react"
1
+ import React, { useState } from "react"
2
2
  import { HawaButton } from "./HawaButton"
3
3
 
4
4
  const CARDS = {
@@ -1,5 +1,5 @@
1
+ import React, { useEffect, useState, FC } from "react"
1
2
  import clsx from "clsx"
2
- import { useEffect, useState, FC } from "react"
3
3
 
4
4
  type TCheckBoxTypes = {
5
5
  centered?: boolean
@@ -1,4 +1,4 @@
1
- import { useState, FC, ChangeEvent } from "react"
1
+ import React, { useState, FC, ChangeEvent } from "react"
2
2
 
3
3
  type ColorPickerTypes = {
4
4
  /** The hex code for the color */
@@ -1,4 +1,4 @@
1
- import { FC, useState } from "react"
1
+ import React, { FC, useState } from "react"
2
2
 
3
3
  type DatepickerTypes = {}
4
4
 
@@ -1,4 +1,4 @@
1
- import { useEffect, useState, FC } from "react"
1
+ import React, { useEffect, useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaMenu } from "./HawaMenu"
4
4
  import { HawaButton } from "./HawaButton"
@@ -1,4 +1,4 @@
1
- import { ReactNode, useEffect, useRef, useState, FC } from "react"
1
+ import React, { ReactNode, useEffect, useRef, useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  // TODO: add width to decrease width
@@ -1,4 +1,4 @@
1
- import { ReactElement, useEffect, FC } from "react"
1
+ import React, { ReactElement, useEffect, FC } from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  type ModalTypes = {
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
 
3
3
  type PanelTabsTypes = {
4
4
  defaultValue: any
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import Countries from "../countries"
3
3
  import Select from "react-select"
4
4
 
@@ -1,5 +1,5 @@
1
+ import React, { useEffect, useState, FC } from "react"
1
2
  import clsx from "clsx"
2
- import { useEffect, useState, FC } from "react"
3
3
 
4
4
  type PinInputTypes = {
5
5
  label?: string
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  type RadioTypes = {
@@ -1,4 +1,4 @@
1
- import { FC, useState } from "react"
1
+ import React, { FC, useState } from "react"
2
2
 
3
3
  type RangeTypes = {
4
4
  value?: any
@@ -1,4 +1,4 @@
1
- import { FC, useEffect, useRef, useState } from "react"
1
+ import React, { FC, useEffect, useRef, useState } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaButton } from "./HawaButton"
4
4
 
@@ -1,4 +1,4 @@
1
- import { useEffect, useState, FC } from "react"
1
+ import React, { useEffect, useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaMenu } from "./HawaMenu"
4
4
  import useTable from "../hooks/useTable"
@@ -1,5 +1,5 @@
1
+ import React, { useState, FC } from "react"
1
2
  import clsx from "clsx"
2
- import { useState, FC } from "react"
3
3
 
4
4
  // TODO: fix wrapping issue when small screen
5
5
 
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef, useState, ReactElement, FC } from "react"
1
+ import React, { useEffect, useRef, useState, ReactElement, FC } from "react"
2
2
  import clsx from "clsx"
3
3
 
4
4
  type THawaToolTip = {
@@ -1,4 +1,4 @@
1
- import { useState, FC } from "react"
1
+ import React, { useState, FC } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HiChevronRight } from "react-icons/hi"
4
4
  import { BsThreeDotsVertical } from "react-icons/bs"
@@ -1,5 +1,5 @@
1
+ import React, { useState, FC } from "react"
1
2
  import clsx from "clsx"
2
- import { useState, FC } from "react"
3
3
  import { HawaChip } from "./HawaChip"
4
4
 
5
5
  type SubsectionListTypes = {
@@ -1,5 +1,5 @@
1
+ import React, { FC, useEffect, useRef, useState } from "react"
1
2
  import clsx from "clsx"
2
- import { FC, useEffect, useRef, useState } from "react"
3
3
  import { HawaButton } from "./HawaButton"
4
4
 
5
5
  type ComponentTypes = {
@@ -1,4 +1,4 @@
1
- import { useState, useEffect } from "react"
1
+ import React, { useState, useEffect } from "react"
2
2
 
3
3
  const useBreakpoint = () => {
4
4
  const [breakpoint, setBreakpoint] = useState(window?.innerWidth)
@@ -1,4 +1,4 @@
1
- import { useState } from "react"
1
+ import React, { useState } from "react"
2
2
 
3
3
  type TUseDiscloser = {
4
4
  isOpen: boolean
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef, useState } from "react";
1
+ import React, { useEffect, useRef, useState } from "react";
2
2
 
3
3
  function useHover() {
4
4
  const [value, setValue] = useState(false);
@@ -1,4 +1,4 @@
1
- import { useState, useEffect, useRef } from "react";
1
+ import React, { useState, useEffect, useRef } from "react";
2
2
 
3
3
  function useScrollPosition(ref) {
4
4
  const [scrollPosition, setScrollPosition] = useState(0);
@@ -1,4 +1,4 @@
1
- import { useState, useEffect } from "react"
1
+ import React, { useState, useEffect } from "react"
2
2
 
3
3
  const calculateRange = (data, rowsPerPage) => {
4
4
  const range = []
@@ -1,8 +1,5 @@
1
- import { useState } from "@storybook/addons"
2
- import { FC, ReactNode } from "react"
3
- import clsx from "clsx"
4
1
  import { BsInstagram, BsTwitter } from "react-icons/bs"
5
- import { FaSnapchat, FaSnapchatGhost, FaTiktok } from "react-icons/fa"
2
+ import { FaSnapchatGhost, FaTiktok } from "react-icons/fa"
6
3
 
7
4
  type FooterTypes = {
8
5
  logoText?: string
@@ -24,7 +21,7 @@ type FooterTypes = {
24
21
 
25
22
  export const Footer: React.FunctionComponent<FooterTypes> = ({ ...props }) => {
26
23
  return (
27
- <div className="sticky left-0 bottom-0 flex w-full flex-row gap-8 bg-blue-200 p-4">
24
+ <div className="sticky bottom-0 left-0 flex w-full flex-row gap-8 bg-blue-200 p-4">
28
25
  {props.logoText && (
29
26
  <div>
30
27
  <div className="text-2xl font-bold">{props.logoText}</div>
@@ -1,5 +1,5 @@
1
- import clsx from "clsx"
2
1
  import React, { useEffect, useRef, useState } from "react"
2
+ import clsx from "clsx"
3
3
  import useDiscloser from "../hooks/useDiscloser"
4
4
  import { HiMenu } from "react-icons/hi"
5
5
  import useBreakpoint from "../hooks/useBreakpoint"