@sikka/hawa 0.0.92 → 0.0.95
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/HawaMenu.js +46 -34
- 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/storybook-static/iframe.html +1 -1
- package/storybook-static/main.ea9904c2.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{vendors~main.30019f92.iframe.bundle.js → vendors~main.a40572d0.iframe.bundle.js} +3 -3
- package/storybook-static/{vendors~main.30019f92.iframe.bundle.js.LICENSE.txt → vendors~main.a40572d0.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.a40572d0.iframe.bundle.js.map +1 -0
- package/src/elements/Copyrights.js +0 -0
- package/storybook-static/main.c9ced472.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.30019f92.iframe.bundle.js.map +0 -1
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">
|
package/src/elements/HawaMenu.js
CHANGED
|
@@ -6,42 +6,54 @@ export const HawaMenu = ({
|
|
|
6
6
|
withHeader,
|
|
7
7
|
withIcons,
|
|
8
8
|
headerTitle,
|
|
9
|
-
headerSubtitle
|
|
9
|
+
headerSubtitle,
|
|
10
|
+
open,
|
|
11
|
+
handleClose
|
|
10
12
|
}) => {
|
|
11
13
|
return (
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
<div>
|
|
15
|
+
<button
|
|
16
|
+
className="border rounded w-44 p-2 bg-blue-700 text-white"
|
|
17
|
+
onClick={() => handleClose(!open)}
|
|
18
|
+
>
|
|
19
|
+
Menu Dropdown
|
|
20
|
+
</button>
|
|
21
|
+
<div
|
|
22
|
+
id={popMenuID}
|
|
23
|
+
className={`${
|
|
24
|
+
open ? "block" : "hidden"
|
|
25
|
+
} z-10 w-44 bg-white rounded-lg divide-y divide-gray-100 shadow dark:bg-gray-700`}
|
|
26
|
+
>
|
|
27
|
+
{withHeader && (
|
|
28
|
+
<div class="py-3 px-4 text-sm text-gray-900 dark:text-white">
|
|
29
|
+
<div>{headerTitle}</div>
|
|
30
|
+
<div class="font-medium truncate">{headerSubtitle}</div>
|
|
31
|
+
</div>
|
|
32
|
+
)}
|
|
33
|
+
{menuItems.map((group) => {
|
|
34
|
+
return (
|
|
35
|
+
<ul className="py-1 text-sm text-gray-700 dark:text-gray-200">
|
|
36
|
+
{group.map((item) => {
|
|
37
|
+
return (
|
|
38
|
+
<li
|
|
39
|
+
onClick={item.action}
|
|
40
|
+
className={
|
|
41
|
+
item.button
|
|
42
|
+
? "bg-primary-500 text-white hover:bg-primary-600 flex flex-row rtl:flex-row-reverse items-center cursor-pointer py-2 px-4 rounded-lg mx-1 hover:bg-gray-100 dark:hover:bg-primary-600 dark:hover:text-white"
|
|
43
|
+
: "flex flex-row rtl:flex-row-reverse items-center cursor-pointer py-2 px-4 rounded-lg mx-1 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
44
|
+
}
|
|
45
|
+
>
|
|
46
|
+
{withIcons && (
|
|
47
|
+
<div className="mr-2 rtl:ml-2">{item.icon}</div>
|
|
48
|
+
)}
|
|
49
|
+
{item.label}
|
|
50
|
+
</li>
|
|
51
|
+
);
|
|
52
|
+
})}
|
|
53
|
+
</ul>
|
|
54
|
+
);
|
|
55
|
+
})}
|
|
56
|
+
</div>
|
|
45
57
|
</div>
|
|
46
58
|
);
|
|
47
59
|
};
|
|
@@ -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
|
@@ -361,4 +361,4 @@
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
364
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.67ec6e92.iframe.bundle.js"></script><script src="vendors~main.
|
|
364
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.67ec6e92.iframe.bundle.js"></script><script src="vendors~main.a40572d0.iframe.bundle.js"></script><script src="main.ea9904c2.iframe.bundle.js"></script></body></html>
|