@sikka/hawa 0.0.170 → 0.0.172
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 +10 -14
- package/es/blocks/Misc/Testimonial.d.ts +6 -0
- package/es/blocks/Misc/index.d.ts +1 -0
- package/es/blocks/index.d.ts +1 -0
- package/es/index.es.js +1 -1
- package/lib/blocks/Misc/Testimonial.d.ts +6 -0
- package/lib/blocks/Misc/index.d.ts +1 -0
- package/lib/blocks/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Misc/Newsletter.tsx +1 -1
- package/src/blocks/Misc/Testimonial.tsx +52 -0
- package/src/blocks/Misc/index.ts +2 -0
- package/src/blocks/Pricing/ComparingPlans.tsx +5 -5
- package/src/blocks/Pricing/PricingPlans.tsx +2 -2
- package/src/blocks/Referral/ReferralAccount.tsx +4 -3
- package/src/blocks/Referral/ReferralSettlement.tsx +2 -2
- package/src/blocks/Referral/ReferralStats.tsx +3 -3
- package/src/blocks/index.ts +1 -0
- package/src/elements/DragDropImages.tsx +3 -3
- package/src/elements/DraggableCard.tsx +2 -2
- package/src/elements/HawaAccordian.tsx +2 -2
- package/src/elements/HawaAdCard.tsx +4 -4
- package/src/elements/HawaAlert.tsx +1 -1
- package/src/elements/HawaButton.tsx +1 -1
- package/src/elements/HawaCardInput.tsx +5 -5
- package/src/elements/HawaChip.tsx +1 -1
- package/src/elements/HawaItemCard.tsx +2 -2
- package/src/elements/HawaLogoButton.tsx +1 -1
- package/src/elements/HawaMenu.tsx +4 -4
- package/src/elements/HawaModal.tsx +2 -2
- package/src/elements/HawaPanelTabs.tsx +1 -1
- package/src/elements/HawaPhoneInput.tsx +2 -2
- package/src/elements/HawaPricingCard.tsx +4 -4
- package/src/elements/HawaRadio.tsx +3 -3
- package/src/elements/HawaRange.tsx +1 -1
- package/src/elements/HawaSelect.tsx +3 -3
- package/src/elements/HawaSettingsRow.tsx +1 -1
- package/src/elements/HawaSnackbar.tsx +2 -2
- package/src/elements/HawaStats.tsx +1 -1
- package/src/elements/HawaTable.tsx +1 -1
- package/src/elements/HawaTabs.tsx +6 -6
- package/src/elements/HawaTextField.tsx +3 -3
- package/src/elements/HawaTimeline.tsx +5 -5
- package/src/elements/HawaTooltip.tsx +4 -8
- package/src/layout/HawaAppLayout.tsx +11 -11
- package/src/layout/HawaBottomAppBar.tsx +2 -2
- package/src/layout/HawaContainer.tsx +1 -1
- package/src/layout/HawaSiteLayout.tsx +5 -5
- package/src/styles.css +10 -14
- package/src/tailwind.css +2 -0
- package/tailwind.config.js +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { HawaButton, HawaTextField } from "../../elements"
|
|
3
3
|
import { HawaContainer } from "../../layout"
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
type TNewsletter = {
|
|
6
6
|
variant?: "outlined" | "contained" | "neobrutalism"
|
|
7
7
|
texts: {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { HawaButton } from "../../elements"
|
|
3
|
+
import { HawaContainer } from "../../layout"
|
|
4
|
+
import { FaCheck } from "react-icons/fa"
|
|
5
|
+
type TEmptyState = {
|
|
6
|
+
variant?: "outlined" | "contained" | "neobrutalism"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const Testimonial: React.FunctionComponent<TEmptyState> = ({
|
|
10
|
+
variant = "contained",
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<div
|
|
14
|
+
className="rounded flex flex-col gap-2 border-2 border-gray-200 bg-white p-4"
|
|
15
|
+
// style={{ width: "249.708px", marginRight: "24px" }}
|
|
16
|
+
>
|
|
17
|
+
<svg width="48" height="48" viewBox="0 0 48 48" fill="none">
|
|
18
|
+
<rect width="48" height="48" rx="24" fill="#45BE8B"></rect>
|
|
19
|
+
<path
|
|
20
|
+
d="M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z"
|
|
21
|
+
fill="#FFFFFF"
|
|
22
|
+
></path>
|
|
23
|
+
<path
|
|
24
|
+
d="M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z"
|
|
25
|
+
fill="#FFFFFF"
|
|
26
|
+
></path>
|
|
27
|
+
</svg>
|
|
28
|
+
<div>
|
|
29
|
+
<p>
|
|
30
|
+
The team at Tines is simply amazing. The tech is easy to follow, easy
|
|
31
|
+
to work with, and infinitely flexible. The solution opportunities
|
|
32
|
+
created by Tines are endless.
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
<cite>
|
|
36
|
+
<div>
|
|
37
|
+
<div>
|
|
38
|
+
<strong style={{ color: "#45BE8B" }}>Brent Lassi</strong>
|
|
39
|
+
</div>
|
|
40
|
+
<div> Chief Information Security Officer</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div>
|
|
43
|
+
<img
|
|
44
|
+
src="https://www.datocms-assets.com/55802/1636449069-bluecore-logo-dark.svg"
|
|
45
|
+
title="Logo of Brent Lassi"
|
|
46
|
+
alt="Logo of Brent Lassi"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
</cite>
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
package/src/blocks/Misc/index.ts
CHANGED
|
@@ -68,9 +68,9 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
68
68
|
{ label: `SAR`, value: `sar` },
|
|
69
69
|
]
|
|
70
70
|
let activeTabStyle =
|
|
71
|
-
"inline-block py-3 px-4 text-white bg-blue-600 rounded
|
|
71
|
+
"inline-block py-3 px-4 text-white bg-blue-600 rounded active"
|
|
72
72
|
let inactiveTabStyle =
|
|
73
|
-
"inline-block py-3 px-4 rounded
|
|
73
|
+
"inline-block py-3 px-4 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
|
|
74
74
|
return (
|
|
75
75
|
<div id="detailed-pricing" className="w-full overflow-x-auto">
|
|
76
76
|
<div className="min-w-max overflow-hidden">
|
|
@@ -121,7 +121,7 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
121
121
|
<div>
|
|
122
122
|
<a
|
|
123
123
|
href="#"
|
|
124
|
-
className="block w-full rounded
|
|
124
|
+
className="block w-full rounded bg-blue-600 px-4 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 dark:focus:ring-blue-900"
|
|
125
125
|
>
|
|
126
126
|
Buy now
|
|
127
127
|
</a>
|
|
@@ -129,7 +129,7 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
129
129
|
<div>
|
|
130
130
|
<a
|
|
131
131
|
href="#"
|
|
132
|
-
className="block w-full rounded
|
|
132
|
+
className="block w-full rounded bg-blue-600 px-4 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 dark:focus:ring-blue-900"
|
|
133
133
|
>
|
|
134
134
|
Buy now
|
|
135
135
|
</a>
|
|
@@ -137,7 +137,7 @@ export const ComparingPlans: React.FunctionComponent<ComparingPlansTypes> = (
|
|
|
137
137
|
<div>
|
|
138
138
|
<a
|
|
139
139
|
href="#"
|
|
140
|
-
className="block w-full rounded
|
|
140
|
+
className="block w-full rounded bg-blue-600 px-4 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 dark:focus:ring-blue-900"
|
|
141
141
|
>
|
|
142
142
|
Buy now
|
|
143
143
|
</a>
|
|
@@ -36,9 +36,9 @@ export const PricingPlans: React.FunctionComponent<PricingPlansTypes> = (
|
|
|
36
36
|
{ label: `SAR`, value: `sar` },
|
|
37
37
|
]
|
|
38
38
|
let activeTabStyle =
|
|
39
|
-
"inline-block py-3 px-4 text-white bg-blue-600 rounded
|
|
39
|
+
"inline-block py-3 px-4 text-white bg-blue-600 rounded active"
|
|
40
40
|
let inactiveTabStyle =
|
|
41
|
-
"inline-block py-3 px-4 rounded
|
|
41
|
+
"inline-block py-3 px-4 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
|
|
42
42
|
return (
|
|
43
43
|
<div>
|
|
44
44
|
<div className="mb-2 flex w-full justify-between">
|
|
@@ -16,9 +16,10 @@ export const ReferralAccount: React.FunctionComponent<ReferralAccount> = ({
|
|
|
16
16
|
<HawaContainer>
|
|
17
17
|
<div className="my-2 mt-0">
|
|
18
18
|
<div className="mb-1">Referral Code</div>
|
|
19
|
-
<div className="flex flex-row items-center justify-between rounded
|
|
19
|
+
<div className="flex flex-row items-center justify-between rounded bg-white">
|
|
20
20
|
<span className="ml-3 font-bold">{referralCode}</span>
|
|
21
21
|
<HawaButton
|
|
22
|
+
buttonID={"refCode"}
|
|
22
23
|
tooltip="Copy"
|
|
23
24
|
className="mr-1.5"
|
|
24
25
|
onClick={() => navigator.clipboard.writeText(referralCode)}
|
|
@@ -31,10 +32,10 @@ export const ReferralAccount: React.FunctionComponent<ReferralAccount> = ({
|
|
|
31
32
|
</div>
|
|
32
33
|
<div className="my-2 mt-0">
|
|
33
34
|
<div className="mb-1">Referral Link</div>
|
|
34
|
-
<div className="flex flex-row items-center justify-between rounded
|
|
35
|
+
<div className="flex flex-row items-center justify-between rounded bg-white">
|
|
35
36
|
<span className="ml-3 font-bold">{referralLink}</span>
|
|
36
37
|
<HawaButton
|
|
37
|
-
|
|
38
|
+
buttonID={"refLink"}
|
|
38
39
|
className="mr-1.5"
|
|
39
40
|
onClick={() => navigator.clipboard.writeText(referralLink)}
|
|
40
41
|
>
|
|
@@ -69,7 +69,7 @@ export const ReferralSettlement: React.FunctionComponent<
|
|
|
69
69
|
)}
|
|
70
70
|
<div className="mt-3">
|
|
71
71
|
<div className="mb-1">Settlement Accounts</div>
|
|
72
|
-
<div className="rounded
|
|
72
|
+
<div className="rounded">
|
|
73
73
|
<SettlementAccountCard
|
|
74
74
|
bank="Al Inma Bank"
|
|
75
75
|
iban="SA10228094028098329119"
|
|
@@ -93,7 +93,7 @@ export const ReferralSettlement: React.FunctionComponent<
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const SettlementAccountCard = (props) => (
|
|
96
|
-
<div className="mb-3 flex flex-row items-center justify-between rounded
|
|
96
|
+
<div className="mb-3 flex flex-row items-center justify-between rounded border-b bg-white p-2">
|
|
97
97
|
<div className="flex flex-col justify-between">
|
|
98
98
|
<div className="text-xs">{props.bank}</div>
|
|
99
99
|
<div>{props.accountHolder}</div>
|
|
@@ -37,7 +37,7 @@ export const ReferralStats: React.FunctionComponent<TReferralStats> = ({
|
|
|
37
37
|
)}
|
|
38
38
|
<div className="mt-3">
|
|
39
39
|
<div className="mb-1">Sign ups</div>
|
|
40
|
-
<div className="rounded
|
|
40
|
+
<div className="rounded">
|
|
41
41
|
{/* <HawaTable
|
|
42
42
|
columns={["date", "email", "amount"]}
|
|
43
43
|
rows={[
|
|
@@ -78,13 +78,13 @@ export const ReferralStats: React.FunctionComponent<TReferralStats> = ({
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
const NumberCard = (props) => (
|
|
81
|
-
<div className="w-full rounded
|
|
81
|
+
<div className="w-full rounded bg-white p-2">
|
|
82
82
|
<div className="text-sm">{props.title}</div>
|
|
83
83
|
<div className="font-bold">{props.number}</div>
|
|
84
84
|
</div>
|
|
85
85
|
)
|
|
86
86
|
const ReferralSignUpCard = (props) => (
|
|
87
|
-
<div className="mb-3 rounded
|
|
87
|
+
<div className="mb-3 rounded border-b bg-white p-2">
|
|
88
88
|
<div className="text-xs">{props.date}</div>
|
|
89
89
|
<div className="flex flex-row justify-between">
|
|
90
90
|
<div>{props.email}</div>
|
package/src/blocks/index.ts
CHANGED
|
@@ -111,7 +111,7 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
|
|
|
111
111
|
)
|
|
112
112
|
})
|
|
113
113
|
const thumbs = files?.map((file: any, index: any) => (
|
|
114
|
-
<div className="relative m-3 rounded
|
|
114
|
+
<div className="relative m-3 rounded">
|
|
115
115
|
<button
|
|
116
116
|
onClick={(e) => {
|
|
117
117
|
e.stopPropagation()
|
|
@@ -120,7 +120,7 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
|
|
|
120
120
|
onDeleteFile(file)
|
|
121
121
|
}}
|
|
122
122
|
type="button"
|
|
123
|
-
className="absolute left-0 ml-auto inline-flex items-center rounded
|
|
123
|
+
className="absolute left-0 ml-auto inline-flex items-center rounded rounded-tr-none rounded-bl-none bg-gray-900 p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
124
124
|
data-modal-toggle="defaultModal"
|
|
125
125
|
>
|
|
126
126
|
<svg
|
|
@@ -173,7 +173,7 @@ export const DragDropImages: React.FunctionComponent<DragDropImagesTypes> = ({
|
|
|
173
173
|
style: { backgroundColor: isDragActive ? "white" : "inherit" },
|
|
174
174
|
})}
|
|
175
175
|
// style={{ backgroundColor: isDragActive ? "white" : "inherit" }}
|
|
176
|
-
className="mb-2 flex flex-col justify-center rounded
|
|
176
|
+
className="mb-2 flex flex-col justify-center rounded border border-dashed border-black"
|
|
177
177
|
>
|
|
178
178
|
<input {...getInputProps()} />
|
|
179
179
|
<div className="p-1 text-center">{texts.clickHereToUpload}</div>
|
|
@@ -7,9 +7,9 @@ export const DraggableCard: React.FunctionComponent<DraggableCardTypes> = (
|
|
|
7
7
|
props
|
|
8
8
|
) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className="bg-layoutPrimary-default flex flex-row rounded
|
|
10
|
+
<div className="bg-layoutPrimary-default flex flex-row rounded p-4">
|
|
11
11
|
<button
|
|
12
|
-
className="inline-flex items-center rounded
|
|
12
|
+
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
13
|
type="button"
|
|
14
14
|
>
|
|
15
15
|
<svg
|
|
@@ -21,14 +21,14 @@ const AccordionItem: React.FunctionComponent<AccordionItemTypes> = (props) => {
|
|
|
21
21
|
"p-5 font-light border border-b-xl rounded-b-xl border-gray-200 dark:border-gray-700 dark:bg-gray-900"
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
|
-
<div className="rounded
|
|
24
|
+
<div className="rounded">
|
|
25
25
|
<h2 id={"accordion-collapse-heading-" + props.count}>
|
|
26
26
|
<button
|
|
27
27
|
type="button"
|
|
28
28
|
className={clsx(
|
|
29
29
|
// props.count === 0 ? roundedTop : noRounding,
|
|
30
30
|
"flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800",
|
|
31
|
-
!collapse ? "rounded-t-lg" : "rounded
|
|
31
|
+
!collapse ? "rounded-t-lg" : "rounded"
|
|
32
32
|
)}
|
|
33
33
|
onClick={() => setCollapse(!collapse)}
|
|
34
34
|
data-accordion-target={"#accordion-collapse-body-" + props.count}
|
|
@@ -13,14 +13,14 @@ export const HawaAdCard: React.FunctionComponent<AdCardTypes> = ({
|
|
|
13
13
|
}) => {
|
|
14
14
|
let cardStyles = {
|
|
15
15
|
horizontal:
|
|
16
|
-
"flex max-w-xl rounded
|
|
16
|
+
"flex max-w-xl rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",
|
|
17
17
|
vertical:
|
|
18
|
-
"flex max-w-xs rounded
|
|
18
|
+
"flex max-w-xs rounded border-gray-200 bg-gray-100 shadow-md dark:border-gray-700 dark:bg-gray-800 ",
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
let imageStyles = {
|
|
22
|
-
horizontal: "w-8 h-8 rounded
|
|
23
|
-
vertical: "w-14 h-14 rounded
|
|
22
|
+
horizontal: "w-8 h-8 rounded",
|
|
23
|
+
vertical: "w-14 h-14 rounded",
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
return (
|
|
@@ -77,7 +77,7 @@ export const HawaAlert: React.FunctionComponent<AlertTypes> = ({
|
|
|
77
77
|
return (
|
|
78
78
|
<div
|
|
79
79
|
className={clsx(
|
|
80
|
-
"mb-4 flex flex-col rounded
|
|
80
|
+
"mb-4 flex flex-col rounded p-4 text-sm",
|
|
81
81
|
styleVariant[variant][props.severity]
|
|
82
82
|
)}
|
|
83
83
|
role="alert"
|
|
@@ -17,7 +17,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
17
17
|
isLoading?: boolean
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const baseStyles = "cursor-pointer font-medium rounded
|
|
20
|
+
const baseStyles = "cursor-pointer font-medium rounded transition-all"
|
|
21
21
|
|
|
22
22
|
const sizeStyles = {
|
|
23
23
|
xs: "px-1 py-1",
|
|
@@ -130,7 +130,7 @@ export const HawaCardInput = ({
|
|
|
130
130
|
<input
|
|
131
131
|
type="tel"
|
|
132
132
|
name="cardNumber"
|
|
133
|
-
className="mb-0 block w-full rounded
|
|
133
|
+
className="mb-0 block w-full rounded border 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"
|
|
134
134
|
autoComplete="off"
|
|
135
135
|
onChange={onCardNumberChange}
|
|
136
136
|
maxLength={19}
|
|
@@ -156,7 +156,7 @@ export const HawaCardInput = ({
|
|
|
156
156
|
<input
|
|
157
157
|
type="text"
|
|
158
158
|
// className="card-input__input"
|
|
159
|
-
className="mb-0 block w-full rounded
|
|
159
|
+
className="mb-0 block w-full rounded border 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"
|
|
160
160
|
autoComplete="off"
|
|
161
161
|
name="cardHolder"
|
|
162
162
|
onChange={handleFormChange}
|
|
@@ -173,7 +173,7 @@ export const HawaCardInput = ({
|
|
|
173
173
|
</label>
|
|
174
174
|
<div className="flex flex-row gap-2">
|
|
175
175
|
<select
|
|
176
|
-
className="rounded
|
|
176
|
+
className="rounded p-2.5"
|
|
177
177
|
value={cardMonth}
|
|
178
178
|
name="cardMonth"
|
|
179
179
|
onChange={handleFormChange}
|
|
@@ -193,7 +193,7 @@ export const HawaCardInput = ({
|
|
|
193
193
|
</select>
|
|
194
194
|
<select
|
|
195
195
|
name="cardYear"
|
|
196
|
-
className="rounded
|
|
196
|
+
className="rounded p-2.5"
|
|
197
197
|
value={cardYear}
|
|
198
198
|
onChange={handleFormChange}
|
|
199
199
|
onFocus={(e) => onCardInputFocus(e, "cardDate")}
|
|
@@ -216,7 +216,7 @@ export const HawaCardInput = ({
|
|
|
216
216
|
<label htmlFor="cardCvv">CCV</label>
|
|
217
217
|
<input
|
|
218
218
|
type="tel"
|
|
219
|
-
className="mb-0 block w-full rounded
|
|
219
|
+
className="mb-0 block w-full rounded border 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"
|
|
220
220
|
maxLength={4}
|
|
221
221
|
autoComplete="off"
|
|
222
222
|
name="cardCvv"
|
|
@@ -12,7 +12,7 @@ export const HawaChip: React.FunctionComponent<TChipTypes> = ({
|
|
|
12
12
|
icon,
|
|
13
13
|
}) => {
|
|
14
14
|
let defaultStyles =
|
|
15
|
-
"flex flex-row w-fit gap-1 items-center rounded
|
|
15
|
+
"flex flex-row w-fit gap-1 items-center rounded bg-blue-200 px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800"
|
|
16
16
|
let sizeStyles = {
|
|
17
17
|
small: "h-fit text-xs",
|
|
18
18
|
normal: "h-full leading-4 px-3 py-2 text-xs ",
|
|
@@ -34,7 +34,7 @@ export const HawaItemCard: React.FunctionComponent<ItemCardTypes> = ({
|
|
|
34
34
|
...props
|
|
35
35
|
}) => {
|
|
36
36
|
let defaultStyle =
|
|
37
|
-
"block rounded
|
|
37
|
+
"block rounded border border-gray-200 bg-white shadow-sm hover:shadow-lg transition-all dark:border-gray-700 dark:bg-gray-800 "
|
|
38
38
|
|
|
39
39
|
let orientationStyles = {
|
|
40
40
|
vertical: "max-w-sm",
|
|
@@ -46,7 +46,7 @@ export const HawaItemCard: React.FunctionComponent<ItemCardTypes> = ({
|
|
|
46
46
|
"h-auto w-full rounded-l-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg",
|
|
47
47
|
}
|
|
48
48
|
let headerActionsButtonStyle =
|
|
49
|
-
"inline-block rounded
|
|
49
|
+
"inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700"
|
|
50
50
|
|
|
51
51
|
const [openActionHeader, setOpenActionHeader] = useState(false)
|
|
52
52
|
const {isOpen : isActionOpen, onClose : onActionClose, onOpen : onActionOpen} = useDiscloser();
|
|
@@ -150,7 +150,7 @@ export const HawaLogoButton: React.FunctionComponent<LogoButtonTypes> = (
|
|
|
150
150
|
<button
|
|
151
151
|
style={{ direction: isArabic ? "rtl" : "ltr" }}
|
|
152
152
|
onClick={props.onClick}
|
|
153
|
-
className="transition-all my-2 flex h-11 w-full flex-row justify-center rounded
|
|
153
|
+
className="transition-all my-2 flex h-11 w-full flex-row justify-center rounded bg-white hover:ring-1 hover:ring-buttonPrimary-default hover:brightness-90 align-middle"
|
|
154
154
|
>
|
|
155
155
|
<div className="flex h-full flex-row items-center justify-end">
|
|
156
156
|
{logoElement}
|
|
@@ -55,7 +55,7 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
|
|
|
55
55
|
}
|
|
56
56
|
}, [onClickOutside])
|
|
57
57
|
let defaultStyles =
|
|
58
|
-
"border-none ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded
|
|
58
|
+
"border-none 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"
|
|
59
59
|
let positionStyles = {
|
|
60
60
|
"top-right": "top-12 right-0",
|
|
61
61
|
"top-left": "top-12 left-0",
|
|
@@ -98,7 +98,7 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
|
|
|
98
98
|
>
|
|
99
99
|
{group?.map((item) => {
|
|
100
100
|
return item.element ? (
|
|
101
|
-
<li className="mx-1 cursor-pointer items-center rounded
|
|
101
|
+
<li className="mx-1 cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white">
|
|
102
102
|
{item.element}
|
|
103
103
|
</li>
|
|
104
104
|
) : (
|
|
@@ -106,8 +106,8 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
|
|
|
106
106
|
onClick={(e) => item.action(e, item.label)}
|
|
107
107
|
className={
|
|
108
108
|
item.isButton
|
|
109
|
-
? "mx-1 my-1 flex cursor-pointer flex-row items-center rounded
|
|
110
|
-
: "mx-1 flex cursor-pointer flex-row items-center rounded
|
|
109
|
+
? "mx-1 my-1 flex cursor-pointer flex-row items-center rounded bg-buttonPrimary-default py-2 px-4 text-white hover:bg-buttonPrimary-darker rtl:flex-row-reverse dark:hover:bg-buttonPrimary-darker dark:hover:text-white"
|
|
110
|
+
: "mx-1 flex cursor-pointer flex-row items-center rounded py-2 px-4 hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
|
|
111
111
|
}
|
|
112
112
|
>
|
|
113
113
|
{item.icon && (
|
|
@@ -44,14 +44,14 @@ export const HawaModal: React.FunctionComponent<ModalTypes> = ({
|
|
|
44
44
|
)}
|
|
45
45
|
></div>
|
|
46
46
|
|
|
47
|
-
<div className="relative w-1/2 max-w-md rounded
|
|
47
|
+
<div className="relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700">
|
|
48
48
|
<div className="flex items-start justify-between rounded-t p-3 dark:border-gray-600">
|
|
49
49
|
<h3 className="text-xl font-semibold text-gray-900 dark:text-white">
|
|
50
50
|
{title}
|
|
51
51
|
</h3>
|
|
52
52
|
<button
|
|
53
53
|
type="button"
|
|
54
|
-
className="inline-flex items-center rounded
|
|
54
|
+
className="inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
55
55
|
data-modal-toggle="defaultModal"
|
|
56
56
|
onClick={(e) => {
|
|
57
57
|
onClose()
|
|
@@ -49,7 +49,7 @@ export const HawaPanelTabs: React.FunctionComponent<PanelTabsTypes> = (
|
|
|
49
49
|
{props.options.map((option: any) => {
|
|
50
50
|
return (
|
|
51
51
|
<div
|
|
52
|
-
className="rounded
|
|
52
|
+
className="rounded bg-gray-50 p-4 dark:bg-gray-800"
|
|
53
53
|
id={option.value}
|
|
54
54
|
role="tabpanel"
|
|
55
55
|
aria-labelledby={`${option.value}-tab`}
|
|
@@ -20,7 +20,7 @@ const Option: React.FunctionComponent<OptionTypes> = ({
|
|
|
20
20
|
}) => (
|
|
21
21
|
<div
|
|
22
22
|
ref={innerRef}
|
|
23
|
-
className="m-2 flex flex-row items-center justify-between rounded
|
|
23
|
+
className="m-2 flex flex-row items-center justify-between rounded p-1 px-3 hover:bg-blue-200"
|
|
24
24
|
{...innerProps}
|
|
25
25
|
>
|
|
26
26
|
<img className="h-8 w-8" src={props.data.image}></img>
|
|
@@ -99,7 +99,7 @@ export const HawaPhoneInput: React.FunctionComponent<HawaPhoneInputTypes> = (
|
|
|
99
99
|
<input
|
|
100
100
|
onChange={props.handleChange}
|
|
101
101
|
type="number"
|
|
102
|
-
className="block w-full appearance-none rounded
|
|
102
|
+
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"
|
|
103
103
|
/>
|
|
104
104
|
{props.helperText && (
|
|
105
105
|
<p className="mb-1 mt-1 text-xs text-red-600 dark:text-red-500">
|
|
@@ -46,11 +46,11 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = (
|
|
|
46
46
|
let chipSpacing = isArabic ? { left: 10 } : { right: 10 }
|
|
47
47
|
let cardSizes = {
|
|
48
48
|
small:
|
|
49
|
-
"mx-1 w-full max-w-fit rounded
|
|
49
|
+
"mx-1 w-full max-w-fit rounded border bg-white p-4 shadow-md dark:border-gray-700 dark:bg-gray-800 sm:p-8",
|
|
50
50
|
medium:
|
|
51
|
-
"mx-1 w-full max-w-md rounded
|
|
51
|
+
"mx-1 w-full max-w-md rounded border bg-white p-4 shadow-md dark:border-gray-700 dark:bg-gray-800 sm:p-8",
|
|
52
52
|
large:
|
|
53
|
-
"mx-1 w-full max-w-lg rounded
|
|
53
|
+
"mx-1 w-full max-w-lg rounded border bg-white p-4 shadow-md dark:border-gray-700 dark:bg-gray-800 sm:p-8",
|
|
54
54
|
}
|
|
55
55
|
return (
|
|
56
56
|
<div dir={isArabic ? "rtl" : "ltr"} className={cardSizes[props.size]}>
|
|
@@ -121,7 +121,7 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = (
|
|
|
121
121
|
</ul>
|
|
122
122
|
<button
|
|
123
123
|
type="button"
|
|
124
|
-
className="inline-flex w-full justify-center rounded
|
|
124
|
+
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"
|
|
125
125
|
>
|
|
126
126
|
{props.buttonText}
|
|
127
127
|
</button>
|
|
@@ -14,9 +14,9 @@ type RadioTypes = {
|
|
|
14
14
|
export const HawaRadio: React.FunctionComponent<RadioTypes> = (props) => {
|
|
15
15
|
const [selectedOption, setSelectedOption] = useState(props.defaultValue)
|
|
16
16
|
let activeTabStyle =
|
|
17
|
-
"inline-block py-2 px-4 w-full text-white bg-
|
|
17
|
+
"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-default rounded active"
|
|
18
18
|
let inactiveTabStyle =
|
|
19
|
-
"inline-block py-2 px-4 w-full bg-gray-100 rounded
|
|
19
|
+
"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<div>
|
|
@@ -25,7 +25,7 @@ export const HawaRadio: React.FunctionComponent<RadioTypes> = (props) => {
|
|
|
25
25
|
props.options?.length > 2
|
|
26
26
|
? "flex-wrap xs:max-w-full xs:flex-nowrap"
|
|
27
27
|
: "",
|
|
28
|
-
"flex max-w-fit flex-row whitespace-nowrap rounded
|
|
28
|
+
"flex max-w-fit flex-row whitespace-nowrap rounded bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400"
|
|
29
29
|
)}
|
|
30
30
|
>
|
|
31
31
|
{props.options?.map((opt: any, o) => (
|
|
@@ -40,7 +40,7 @@ export const HawaRange: React.FunctionComponent<RangeTypes> = ({
|
|
|
40
40
|
setRangeValue(e.target.value)
|
|
41
41
|
handleChange(e)
|
|
42
42
|
}}
|
|
43
|
-
className="h-2 w-fit cursor-pointer appearance-none rounded
|
|
43
|
+
className="h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"
|
|
44
44
|
/>
|
|
45
45
|
<div className="ml-2">{endElement}</div>{" "}
|
|
46
46
|
</div>
|
|
@@ -18,7 +18,7 @@ const Option: React.FunctionComponent<OptionTypes> = ({
|
|
|
18
18
|
}) => (
|
|
19
19
|
<div
|
|
20
20
|
ref={innerRef}
|
|
21
|
-
className="m-2 flex flex-row items-center justify-between rounded
|
|
21
|
+
className="m-2 flex flex-row items-center justify-between rounded p-1 px-3 hover:bg-blue-200"
|
|
22
22
|
{...innerProps}
|
|
23
23
|
>
|
|
24
24
|
{children}
|
|
@@ -43,7 +43,7 @@ const Control: React.FunctionComponent<ControlTypes> = ({
|
|
|
43
43
|
return (
|
|
44
44
|
<div
|
|
45
45
|
ref={innerRef}
|
|
46
|
-
className="flex h-10 w-full rounded
|
|
46
|
+
className="flex h-10 w-full rounded border border-gray-300 bg-gray-50 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"
|
|
47
47
|
{...innerProps}
|
|
48
48
|
// {...props}
|
|
49
49
|
>
|
|
@@ -68,7 +68,7 @@ const Menu: React.FunctionComponent<MenuTypes> = ({
|
|
|
68
68
|
}) => {
|
|
69
69
|
return (
|
|
70
70
|
<div
|
|
71
|
-
className="absolute z-10 mt-2 w-full rounded
|
|
71
|
+
className="absolute z-10 mt-2 w-full rounded bg-white ring-1 ring-blue-200"
|
|
72
72
|
ref={innerRef}
|
|
73
73
|
{...innerProps}
|
|
74
74
|
// {...props}
|
|
@@ -32,7 +32,7 @@ export const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes> = ({
|
|
|
32
32
|
radioProps,
|
|
33
33
|
}) => {
|
|
34
34
|
return (
|
|
35
|
-
<div className="my-0.5 flex max-h-fit flex-row items-center justify-between rounded
|
|
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
36
|
<HawaTypography>{settingsLabel}</HawaTypography>
|
|
37
37
|
{settingsType === "text" && <HawaTextField margin="none" width="small" />}
|
|
38
38
|
{settingsType === "boolean" && <HawaSwitch />}
|
|
@@ -34,7 +34,7 @@ export const HawaSnackbar: FC<THawaSnackBar> = ({
|
|
|
34
34
|
duration,
|
|
35
35
|
}) => {
|
|
36
36
|
let defaultStyle =
|
|
37
|
-
"fixed flex flex-row items-top p-1 w-full max-w-xs rounded
|
|
37
|
+
"fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800"
|
|
38
38
|
let severities = {
|
|
39
39
|
info: "text-blue-700 bg-blue-100",
|
|
40
40
|
warning: "text-yellow-700 bg-yellow-100",
|
|
@@ -104,7 +104,7 @@ export const HawaSnackbar: FC<THawaSnackBar> = ({
|
|
|
104
104
|
</div>
|
|
105
105
|
<button
|
|
106
106
|
type="button"
|
|
107
|
-
className="inline-flex h-8 w-8 rounded
|
|
107
|
+
className="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"
|
|
108
108
|
data-dismiss-target="#toast-default"
|
|
109
109
|
aria-label="Close"
|
|
110
110
|
onClick={() => setClosed(true)}
|
|
@@ -12,7 +12,7 @@ type StatTypes = {
|
|
|
12
12
|
}
|
|
13
13
|
export const HawaStats: React.FunctionComponent<StatTypes> = (props) => {
|
|
14
14
|
let defaultStyle =
|
|
15
|
-
"flex flex-col gap-1 rounded
|
|
15
|
+
"flex flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit"
|
|
16
16
|
let statStyles = {
|
|
17
17
|
plain: "",
|
|
18
18
|
contained: "bg-layoutPrimary-default w-fit",
|
|
@@ -29,7 +29,7 @@ export const HawaTable: React.FunctionComponent<TableTypes> = ({
|
|
|
29
29
|
small: "px-3 py-1",
|
|
30
30
|
}
|
|
31
31
|
return (
|
|
32
|
-
<div className="relative overflow-x-clip rounded
|
|
32
|
+
<div className="relative overflow-x-clip rounded">
|
|
33
33
|
<table className="w-full text-left text-sm text-gray-500 dark:text-gray-400">
|
|
34
34
|
<thead className="bg-layoutPrimary-default text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400">
|
|
35
35
|
<tr>
|