@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.
- package/es/elements/HawaButton.d.ts +3 -3
- package/es/elements/HawaCardInput.d.ts +2 -2
- package/es/hooks/useHover.d.ts +2 -2
- package/es/index.es.js +3 -3
- package/lib/elements/HawaButton.d.ts +3 -3
- package/lib/elements/HawaCardInput.d.ts +2 -2
- package/lib/hooks/useHover.d.ts +2 -2
- package/lib/index.js +3 -3
- package/package.json +6 -6
- package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
- package/src/blocks/AuthForms/NewPasswordForm.tsx +1 -1
- package/src/blocks/AuthForms/SignInPhone.tsx +1 -1
- package/src/blocks/Payment/ChargeWalletForm.tsx +1 -1
- package/src/blocks/Pricing/ComparingPlans.tsx +1 -1
- package/src/elements/ArrowCarousel.tsx +1 -1
- package/src/elements/BackToTop.tsx +1 -1
- package/src/elements/HawaAccordion.tsx +1 -1
- package/src/elements/HawaButton.tsx +4 -4
- package/src/elements/HawaCardInput.tsx +1 -1
- package/src/elements/HawaCheckbox.tsx +1 -1
- package/src/elements/HawaColorPicker.tsx +1 -1
- package/src/elements/HawaDatepicker.tsx +1 -1
- package/src/elements/HawaItemCard.tsx +1 -1
- package/src/elements/HawaMenu.tsx +1 -1
- package/src/elements/HawaModal.tsx +1 -1
- package/src/elements/HawaPanelTabs.tsx +1 -1
- package/src/elements/HawaPhoneInput.tsx +1 -1
- package/src/elements/HawaPinInput.tsx +1 -1
- package/src/elements/HawaRadio.tsx +1 -1
- package/src/elements/HawaRange.tsx +1 -1
- package/src/elements/HawaSnackbar.tsx +1 -1
- package/src/elements/HawaTable.tsx +1 -1
- package/src/elements/HawaTabs.tsx +1 -1
- package/src/elements/HawaTooltip.tsx +1 -1
- package/src/elements/InvoiceAccordion.tsx +1 -1
- package/src/elements/SubsectionList.tsx +1 -1
- package/src/elements/UserFeedback.tsx +1 -1
- package/src/hooks/useBreakpoint.ts +1 -1
- package/src/hooks/useDiscloser.ts +1 -1
- package/src/hooks/useHover.ts +1 -1
- package/src/hooks/useScrollPosition.ts +1 -1
- package/src/hooks/useTable.ts +1 -1
- package/src/layout/Footer.tsx +2 -5
- 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.
|
|
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": "
|
|
63
|
+
"react": "^17.0.1",
|
|
64
64
|
"react-color": "^2.19.3",
|
|
65
65
|
"react-dnd": "^15.1.2",
|
|
66
|
-
"react-dom": "
|
|
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": "
|
|
86
|
-
"react": "
|
|
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": "
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import
|
|
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
|
|
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:
|
|
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 -
|
|
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
|
)}
|
package/src/hooks/useHover.ts
CHANGED
package/src/hooks/useTable.ts
CHANGED
package/src/layout/Footer.tsx
CHANGED
|
@@ -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 {
|
|
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
|
|
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>
|