@sikka/hawa 0.0.92 → 0.0.94
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/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/HawaCheckbox.js +0 -12
- package/src/elements/HawaCopyrights.js +33 -0
- package/src/elements/HawaLogoButton.js +0 -9
- package/src/elements/HawaModal.js +0 -2
- package/src/elements/HawaPanelTabs.js +0 -21
- package/src/elements/HawaPhoneInput.js +1 -8
- package/src/elements/index.js +1 -0
- package/src/elements/Copyrights.js +0 -0
package/package.json
CHANGED
|
@@ -24,17 +24,5 @@ export const HawaCheckbox = (props) => {
|
|
|
24
24
|
</div>
|
|
25
25
|
)}
|
|
26
26
|
</div>
|
|
27
|
-
|
|
28
|
-
// <React.Fragment>
|
|
29
|
-
// <FormControlLabel
|
|
30
|
-
// label={props.label}
|
|
31
|
-
// control={
|
|
32
|
-
// <Checkbox
|
|
33
|
-
// style={{ color: props.color || null }}
|
|
34
|
-
// defaultChecked={props.defaultValue}
|
|
35
|
-
// />
|
|
36
|
-
// }
|
|
37
|
-
// />
|
|
38
|
-
// </React.Fragment>
|
|
39
27
|
);
|
|
40
28
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
|
|
3
|
+
export const HawaCopyrights = (props) => {
|
|
4
|
+
|
|
5
|
+
return (
|
|
6
|
+
<div
|
|
7
|
+
style={{
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
textAlign: "center",
|
|
11
|
+
color: "grey",
|
|
12
|
+
fontSize: 14,
|
|
13
|
+
marginTop: 10,
|
|
14
|
+
marginBottom: 10
|
|
15
|
+
}}
|
|
16
|
+
>
|
|
17
|
+
{props.withLogo ? (
|
|
18
|
+
<a href={"https://qawaim.app/" + lang}>
|
|
19
|
+
<div style={{ cursor: "pointer" }}>
|
|
20
|
+
<image
|
|
21
|
+
src="/qawaim-logo.svg"
|
|
22
|
+
alt="Qawaim"
|
|
23
|
+
width={100}
|
|
24
|
+
height={50}
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</a>
|
|
28
|
+
) : null}
|
|
29
|
+
|
|
30
|
+
<div>{props.version}</div>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -32,13 +32,10 @@ export const HawaLogoButton = (props) => {
|
|
|
32
32
|
<svg
|
|
33
33
|
version="1.1"
|
|
34
34
|
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
-
// xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
36
35
|
x="0px"
|
|
37
36
|
y="0px"
|
|
38
37
|
className="w-5 h-5"
|
|
39
38
|
viewBox="0 0 512.002 512.002"
|
|
40
|
-
// style="enable-background:new 0 0 512.002 512.002;"
|
|
41
|
-
// xml:space="preserve"
|
|
42
39
|
>
|
|
43
40
|
<path
|
|
44
41
|
// style="fill:#73A1FB;"
|
|
@@ -62,7 +59,6 @@ export const HawaLogoButton = (props) => {
|
|
|
62
59
|
logoElement = (
|
|
63
60
|
<img
|
|
64
61
|
src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png"
|
|
65
|
-
// height={20}
|
|
66
62
|
className="h-6"
|
|
67
63
|
/>
|
|
68
64
|
);
|
|
@@ -80,7 +76,6 @@ export const HawaLogoButton = (props) => {
|
|
|
80
76
|
logoElement = (
|
|
81
77
|
<img
|
|
82
78
|
src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png"
|
|
83
|
-
// height={30}
|
|
84
79
|
className="h-6"
|
|
85
80
|
/>
|
|
86
81
|
);
|
|
@@ -89,7 +84,6 @@ export const HawaLogoButton = (props) => {
|
|
|
89
84
|
logoElement = (
|
|
90
85
|
<img
|
|
91
86
|
src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png"
|
|
92
|
-
// height={25}
|
|
93
87
|
className="h-6"
|
|
94
88
|
/>
|
|
95
89
|
);
|
|
@@ -98,7 +92,6 @@ export const HawaLogoButton = (props) => {
|
|
|
98
92
|
logoElement = (
|
|
99
93
|
<img
|
|
100
94
|
src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png"
|
|
101
|
-
// height={20}
|
|
102
95
|
className="h-6"
|
|
103
96
|
/>
|
|
104
97
|
);
|
|
@@ -107,7 +100,6 @@ export const HawaLogoButton = (props) => {
|
|
|
107
100
|
logoElement = (
|
|
108
101
|
<img
|
|
109
102
|
src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png"
|
|
110
|
-
// height={40}
|
|
111
103
|
className="h-11"
|
|
112
104
|
/>
|
|
113
105
|
);
|
|
@@ -142,7 +134,6 @@ export const HawaLogoButton = (props) => {
|
|
|
142
134
|
<button
|
|
143
135
|
style={{ direction: isArabic ? "rtl" : "ltr" }}
|
|
144
136
|
{...props}
|
|
145
|
-
// variant="withLogo"
|
|
146
137
|
className="bg-white rounded-xl my-2 h-11 flex max-w-sm w-full flex-row justify-center align-middle"
|
|
147
138
|
>
|
|
148
139
|
<div className="h-full flex flex-row justify-end items-center">
|
|
@@ -47,27 +47,6 @@ export const HawaPanelTabs = (props) => {
|
|
|
47
47
|
})}
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
|
-
// <Container variant={props.location || "panelTabs"}>
|
|
51
|
-
// {props.options.map((singleOption, i) => {
|
|
52
|
-
// return (
|
|
53
|
-
// <button
|
|
54
|
-
// key={i}
|
|
55
|
-
// onClick={() => {
|
|
56
|
-
// props.handleChange(singleOption.value);
|
|
57
|
-
// setValue(singleOption.value);
|
|
58
|
-
// }}
|
|
59
|
-
// fullWidth
|
|
60
|
-
// variant={
|
|
61
|
-
// value?.toLowerCase() === singleOption.value?.toLowerCase()
|
|
62
|
-
// ? "selected"
|
|
63
|
-
// : "unselected"
|
|
64
|
-
// }
|
|
65
|
-
// >
|
|
66
|
-
// {singleOption.label}
|
|
67
|
-
// </button>
|
|
68
|
-
// );
|
|
69
|
-
// })}
|
|
70
|
-
// </Container>
|
|
71
50
|
);
|
|
72
51
|
};
|
|
73
52
|
|
|
@@ -42,14 +42,7 @@ export const HawaPhoneInput = ({ preferredCountry, label }) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
|
-
<div
|
|
46
|
-
// style={{
|
|
47
|
-
// justifyContent: "center",
|
|
48
|
-
// alignItems: "center",
|
|
49
|
-
// height: "100%"
|
|
50
|
-
// }}
|
|
51
|
-
className="flex flex-col mb-3"
|
|
52
|
-
>
|
|
45
|
+
<div className="flex flex-col mb-3">
|
|
53
46
|
{label && (
|
|
54
47
|
<label className="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">
|
|
55
48
|
{label}
|
package/src/elements/index.js
CHANGED
|
File without changes
|