@sikka/hawa 0.0.70 → 0.0.74
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 -2
- package/src/blocks/Payment/Form/CForm.js +1 -1
- package/src/blocks/Pricing/ComparingPlans.js +19 -19
- package/src/elements/DragDropImages.js +3 -3
- package/src/elements/DraggableCard.js +2 -2
- package/src/elements/HawaAccordian.js +1 -2
- package/src/elements/HawaAlert.js +2 -2
- package/src/elements/HawaChip.js +1 -1
- package/src/elements/HawaDrawerItem.js +2 -2
- package/src/elements/HawaItemCard.js +11 -11
- package/src/elements/HawaModal.js +14 -15
- package/src/elements/HawaPanelTabs.js +5 -6
- package/src/elements/HawaPopMenu.js +5 -6
- package/src/elements/HawaPricingCard.js +14 -14
- package/src/elements/HawaRadio.js +5 -6
- package/src/elements/HawaRange.js +2 -2
- package/src/elements/HawaSelect.js +1 -1
- package/src/elements/HawaSnackbar.js +5 -6
- package/src/elements/HawaSwitch.js +4 -4
- package/src/elements/HawaTable.js +8 -8
- package/src/elements/HawaTextField.js +2 -2
- package/src/elements/HawaTooltip.js +2 -3
- package/src/layout/HawaLayout.js +24 -25
- package/src/styles.css +7 -7
- package/src/tailwind.css +7 -7
- package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js → 0.60b9c65419c3ce80ab72.manager.bundle.js} +2 -2
- package/storybook-static/{0.1104ca18.iframe.bundle.js.LICENSE.txt → 0.60b9c65419c3ce80ab72.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.e2b91f98.iframe.bundle.js +3 -0
- package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js.LICENSE.txt → 0.e2b91f98.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.e2b91f98.iframe.bundle.js.map +1 -0
- package/storybook-static/{1.e3eafd38.iframe.bundle.js → 1.e2210f7b.iframe.bundle.js} +0 -0
- package/storybook-static/1.fcf12768b56cacc8bdd8.manager.bundle.js +1 -0
- package/storybook-static/5.c1ea708e0305a3f2690d.manager.bundle.js +2 -0
- package/storybook-static/{5.5b799f3fbf64cec8e51a.manager.bundle.js.LICENSE.txt → 5.c1ea708e0305a3f2690d.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{6.b34ce31193a7fa1dd965.manager.bundle.js → 6.aa9b5ae07e5f3bc21475.manager.bundle.js} +1 -1
- package/storybook-static/{6.6023eba1.iframe.bundle.js → 6.fadd6632.iframe.bundle.js} +2 -2
- package/storybook-static/{6.6023eba1.iframe.bundle.js.LICENSE.txt → 6.fadd6632.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/6.fadd6632.iframe.bundle.js.map +1 -0
- package/storybook-static/{7.632f8551.iframe.bundle.js → 7.12834585.iframe.bundle.js} +0 -0
- package/storybook-static/{7.72879af713f755a7aa7e.manager.bundle.js → 7.f95843e9a2777ac17dbf.manager.bundle.js} +1 -1
- package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js → 8.15e99a30b6a9bc116f34.manager.bundle.js} +2 -2
- package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js.LICENSE.txt → 8.15e99a30b6a9bc116f34.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{9.63a5cf7a.iframe.bundle.js → 9.51450e03.iframe.bundle.js} +2 -2
- package/storybook-static/{9.63a5cf7a.iframe.bundle.js.LICENSE.txt → 9.51450e03.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/9.51450e03.iframe.bundle.js.map +1 -0
- package/storybook-static/{9.1e1335092fade49cc986.manager.bundle.js → 9.78e4df0068efee922f9a.manager.bundle.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.3b67cd32d74b4c684f1b.manager.bundle.js +1 -0
- package/storybook-static/main.512a6115.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.67ec6e92.iframe.bundle.js → runtime~main.49eed76e.iframe.bundle.js} +1 -1
- package/storybook-static/{runtime~main.a58df7ba92d01c5088d3.manager.bundle.js → runtime~main.4d99c291be326901006a.manager.bundle.js} +1 -1
- package/storybook-static/vendors~main.86108d25403f3f41d9ea.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.d13ba71108048897ea4a.manager.bundle.js.LICENSE.txt → vendors~main.86108d25403f3f41d9ea.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.a425b282.iframe.bundle.js +3 -0
- package/storybook-static/{vendors~main.d5e21618.iframe.bundle.js.LICENSE.txt → vendors~main.a425b282.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.a425b282.iframe.bundle.js.map +1 -0
- package/tailwind.config.js +3 -4
- package/storybook-static/0.1104ca18.iframe.bundle.js +0 -3
- package/storybook-static/0.1104ca18.iframe.bundle.js.map +0 -1
- package/storybook-static/1.7e6ec5c45ae5b70c5149.manager.bundle.js +0 -1
- package/storybook-static/5.5b799f3fbf64cec8e51a.manager.bundle.js +0 -2
- package/storybook-static/6.6023eba1.iframe.bundle.js.map +0 -1
- package/storybook-static/9.63a5cf7a.iframe.bundle.js.map +0 -1
- package/storybook-static/main.4bd27e4e7faa098302d1.manager.bundle.js +0 -1
- package/storybook-static/main.d173b451.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.d13ba71108048897ea4a.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.d5e21618.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.d5e21618.iframe.bundle.js.map +0 -1
|
@@ -4,16 +4,16 @@ export const HawaSwitch = (props) => {
|
|
|
4
4
|
return (
|
|
5
5
|
<label
|
|
6
6
|
for="default-toggle"
|
|
7
|
-
|
|
7
|
+
className="inline-flex relative items-center cursor-pointer"
|
|
8
8
|
>
|
|
9
9
|
<input
|
|
10
10
|
type="checkbox"
|
|
11
11
|
value=""
|
|
12
12
|
id="default-toggle"
|
|
13
|
-
|
|
13
|
+
className="sr-only peer"
|
|
14
14
|
/>
|
|
15
|
-
<div
|
|
16
|
-
<span
|
|
15
|
+
<div className="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
|
16
|
+
<span className="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">
|
|
17
17
|
{props.text}
|
|
18
18
|
</span>
|
|
19
19
|
</label>
|
|
@@ -7,17 +7,17 @@ export const HawaTable = (props) => {
|
|
|
7
7
|
return (
|
|
8
8
|
<>
|
|
9
9
|
<div>
|
|
10
|
-
<div
|
|
11
|
-
<table
|
|
12
|
-
<thead
|
|
10
|
+
<div className="overflow-x-auto relative rounded-xl">
|
|
11
|
+
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
|
12
|
+
<thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
|
13
13
|
<tr>
|
|
14
14
|
{props.columns.map((col, i) => (
|
|
15
|
-
<th key={i} scope="col"
|
|
15
|
+
<th key={i} scope="col" className="py-3 px-6">
|
|
16
16
|
{col}
|
|
17
17
|
</th>
|
|
18
18
|
))}
|
|
19
19
|
{props.actions && (
|
|
20
|
-
<th scope="col"
|
|
20
|
+
<th scope="col" className="py-3 px-6">
|
|
21
21
|
actions
|
|
22
22
|
</th>
|
|
23
23
|
)}
|
|
@@ -27,7 +27,7 @@ export const HawaTable = (props) => {
|
|
|
27
27
|
{props.rows ? (
|
|
28
28
|
props.rows.map((singleRow, j) => (
|
|
29
29
|
<tr
|
|
30
|
-
|
|
30
|
+
className="bg-white border-b dark:bg-gray-800 dark:border-gray-700"
|
|
31
31
|
key={j}
|
|
32
32
|
>
|
|
33
33
|
{singleRow.map((r, i) => {
|
|
@@ -35,13 +35,13 @@ export const HawaTable = (props) => {
|
|
|
35
35
|
return (
|
|
36
36
|
<th
|
|
37
37
|
scope="row"
|
|
38
|
-
|
|
38
|
+
className="py-4 px-6 font-medium text-gray-900 whitespace-nowrap dark:text-white"
|
|
39
39
|
>
|
|
40
40
|
{r}{" "}
|
|
41
41
|
</th>
|
|
42
42
|
);
|
|
43
43
|
} else {
|
|
44
|
-
return <td
|
|
44
|
+
return <td className="py-4 px-6">{r}</td>;
|
|
45
45
|
}
|
|
46
46
|
})}
|
|
47
47
|
{props.actions && (
|
|
@@ -13,7 +13,7 @@ export const HawaTextField = (props) => {
|
|
|
13
13
|
<textarea
|
|
14
14
|
id="message"
|
|
15
15
|
rows="4"
|
|
16
|
-
|
|
16
|
+
className="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
17
17
|
placeholder="Your message..."
|
|
18
18
|
></textarea>
|
|
19
19
|
) : (
|
|
@@ -25,7 +25,7 @@ export const HawaTextField = (props) => {
|
|
|
25
25
|
|
|
26
26
|
{props.helperText && (
|
|
27
27
|
<p className="mt-2 text-sm text-red-600 dark:text-red-500">
|
|
28
|
-
{/* <span
|
|
28
|
+
{/* <span className="font-medium">Oh, snapp!</span> */}
|
|
29
29
|
{props.helperText}
|
|
30
30
|
</p>
|
|
31
31
|
)}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "flowbite";
|
|
3
2
|
|
|
4
3
|
export const HawaTooltip = (props) => {
|
|
5
4
|
return (
|
|
6
5
|
<div
|
|
7
6
|
id={props.tooltipID}
|
|
8
7
|
role="tooltip"
|
|
9
|
-
|
|
8
|
+
className="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"
|
|
10
9
|
>
|
|
11
10
|
{props.content}
|
|
12
|
-
<div
|
|
11
|
+
<div className="tooltip-arrow" data-popper-arrow></div>
|
|
13
12
|
</div>
|
|
14
13
|
);
|
|
15
14
|
};
|
package/src/layout/HawaLayout.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import "flowbite";
|
|
4
3
|
import HawaDrawerItem from "../elements/HawaDrawerItem";
|
|
5
4
|
|
|
6
5
|
const MenuButton = () => {
|
|
@@ -10,12 +9,12 @@ const MenuButton = () => {
|
|
|
10
9
|
data-drawer-show="drawer-navigation"
|
|
11
10
|
aria-controls="drawer-navigation"
|
|
12
11
|
type="button"
|
|
13
|
-
|
|
12
|
+
className="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
14
13
|
>
|
|
15
|
-
<span
|
|
14
|
+
<span className="sr-only">Open main menu</span>
|
|
16
15
|
<svg
|
|
17
16
|
aria-hidden="true"
|
|
18
|
-
|
|
17
|
+
className="w-6 h-6"
|
|
19
18
|
fill="currentColor"
|
|
20
19
|
viewBox="0 0 20 20"
|
|
21
20
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -33,28 +32,28 @@ const ProfileDropdown = (props) => {
|
|
|
33
32
|
return (
|
|
34
33
|
<div
|
|
35
34
|
id="userDropdown"
|
|
36
|
-
|
|
35
|
+
className="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600"
|
|
37
36
|
data-popper-reference-hidden=""
|
|
38
37
|
data-popper-escaped=""
|
|
39
38
|
data-popper-placement="bottom-start"
|
|
40
39
|
// style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(0px, 295.5px, 0px);"
|
|
41
40
|
>
|
|
42
|
-
<div
|
|
41
|
+
<div className="py-3 px-4 text-sm text-gray-900 dark:text-white">
|
|
43
42
|
<div>{props.username}</div>
|
|
44
|
-
<div
|
|
43
|
+
<div className="font-medium truncate">{props.userEmail}</div>
|
|
45
44
|
</div>
|
|
46
45
|
<ul
|
|
47
|
-
|
|
46
|
+
className="py-1 text-sm text-gray-700 dark:text-gray-200"
|
|
48
47
|
aria-labelledby="avatarButton"
|
|
49
48
|
>
|
|
50
49
|
{props.profileItems.map((it) => {
|
|
51
50
|
return <ProfileItem text={it.text} link={it.slug} />;
|
|
52
51
|
})}
|
|
53
52
|
</ul>
|
|
54
|
-
<div
|
|
53
|
+
<div className="py-1">
|
|
55
54
|
<a
|
|
56
55
|
href="#"
|
|
57
|
-
|
|
56
|
+
className="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
|
|
58
57
|
>
|
|
59
58
|
Sign out
|
|
60
59
|
</a>
|
|
@@ -66,23 +65,23 @@ const DrawerContent = (props) => {
|
|
|
66
65
|
return (
|
|
67
66
|
<div
|
|
68
67
|
id="drawer-navigation"
|
|
69
|
-
|
|
68
|
+
className="fixed z-40 h-screen p-4 overflow-y-auto bg-white w-80 dark:bg-gray-800"
|
|
70
69
|
tabindex="-1"
|
|
71
70
|
aria-labelledby="drawer-navigation-label"
|
|
72
71
|
>
|
|
73
|
-
<div href={props.logoHref}
|
|
72
|
+
<div href={props.logoHref} className="flex items-center">
|
|
74
73
|
<img
|
|
75
74
|
src={
|
|
76
75
|
"https://my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75"
|
|
77
76
|
}
|
|
78
77
|
// src={props.logoLink}
|
|
79
|
-
|
|
78
|
+
className="h-9"
|
|
80
79
|
alt="Flowbite Logo"
|
|
81
80
|
/>
|
|
82
81
|
</div>
|
|
83
82
|
<CloseButton />
|
|
84
|
-
<div
|
|
85
|
-
<ul
|
|
83
|
+
<div className="py-4 overflow-y-auto">
|
|
84
|
+
<ul className="space-y-2">
|
|
86
85
|
{props.drawerItems.map((item, i) => {
|
|
87
86
|
return (
|
|
88
87
|
<HawaDrawerItem action={item.action} key={i} text={item.text} />
|
|
@@ -116,7 +115,7 @@ const CloseButton = () => {
|
|
|
116
115
|
>
|
|
117
116
|
<svg
|
|
118
117
|
aria-hidden="true"
|
|
119
|
-
|
|
118
|
+
className="w-5 h-5"
|
|
120
119
|
fill="currentColor"
|
|
121
120
|
viewBox="0 0 20 20"
|
|
122
121
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -134,18 +133,18 @@ export const HawaLayout = (props) => {
|
|
|
134
133
|
return (
|
|
135
134
|
<div className="font-plex">
|
|
136
135
|
<div>
|
|
137
|
-
<nav
|
|
138
|
-
<div
|
|
139
|
-
{/* <div href={props.logoHref}
|
|
140
|
-
<img src={props.logoLink}
|
|
136
|
+
<nav className="border-gray-200 rounded dark:bg-gray-900">
|
|
137
|
+
<div className="flex p-3 flex-row-reverse items-center justify-between w-full">
|
|
138
|
+
{/* <div href={props.logoHref} className="flex items-center">
|
|
139
|
+
<img src={props.logoLink} className="h-9" alt="Flowbite Logo" />
|
|
141
140
|
</div> */}
|
|
142
141
|
<div
|
|
143
142
|
data-dropdown-toggle="userDropdown"
|
|
144
143
|
data-dropdown-placement="bottom-start"
|
|
145
|
-
|
|
144
|
+
className="overflow-hidden mr-2 relative w-10 h-10 bg-gray-100 rounded-full dark:bg-gray-600"
|
|
146
145
|
>
|
|
147
146
|
<svg
|
|
148
|
-
|
|
147
|
+
className="absolute -left-1 w-12 h-12 text-gray-400"
|
|
149
148
|
fill="currentColor"
|
|
150
149
|
viewBox="0 0 20 20"
|
|
151
150
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -158,14 +157,14 @@ export const HawaLayout = (props) => {
|
|
|
158
157
|
</svg>
|
|
159
158
|
</div>
|
|
160
159
|
|
|
161
|
-
{/* <div href={props.logoHref}
|
|
160
|
+
{/* <div href={props.logoHref} className="flex items-center">
|
|
162
161
|
<img
|
|
163
162
|
src={
|
|
164
163
|
// "https://my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75"
|
|
165
164
|
"https://qawaim-images.s3-ap-southeast-1.amazonaws.com/614580f79706137eab618399"
|
|
166
165
|
}
|
|
167
166
|
// src={props.logoLink}
|
|
168
|
-
|
|
167
|
+
className="h-12"
|
|
169
168
|
alt="Flowbite Logo"
|
|
170
169
|
/>
|
|
171
170
|
</div> */}
|
|
@@ -177,7 +176,7 @@ export const HawaLayout = (props) => {
|
|
|
177
176
|
type="button"
|
|
178
177
|
data-dropdown-toggle="userDropdown"
|
|
179
178
|
data-dropdown-placement="bottom-start"
|
|
180
|
-
|
|
179
|
+
className="w-10 h-10 rounded-full cursor-pointer"
|
|
181
180
|
src="/docs/images/people/profile-picture-5.jpg"
|
|
182
181
|
alt="User dropdown"
|
|
183
182
|
/> */}
|
package/src/styles.css
CHANGED
|
@@ -1928,14 +1928,14 @@ input:checked + .toggle-bg {
|
|
|
1928
1928
|
body {
|
|
1929
1929
|
font-family: "IBM Plex Sans Arabic";
|
|
1930
1930
|
}
|
|
1931
|
-
/* <div
|
|
1932
|
-
<div
|
|
1933
|
-
<div
|
|
1934
|
-
<div
|
|
1931
|
+
/* <div className="react-select-container">
|
|
1932
|
+
<div className="react-select__control">
|
|
1933
|
+
<div className="react-select__value-container">...</div>
|
|
1934
|
+
<div className="react-select__indicators">...</div>
|
|
1935
1935
|
</div>
|
|
1936
|
-
<div
|
|
1937
|
-
<div
|
|
1938
|
-
<div
|
|
1936
|
+
<div className="react-select__menu">
|
|
1937
|
+
<div className="react-select__menu-list">
|
|
1938
|
+
<div className="react-select__option">...</div>
|
|
1939
1939
|
</div>
|
|
1940
1940
|
</div>
|
|
1941
1941
|
</div> */
|
package/src/tailwind.css
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
body {
|
|
6
6
|
font-family: "IBM Plex Sans Arabic";
|
|
7
7
|
}
|
|
8
|
-
/* <div
|
|
9
|
-
<div
|
|
10
|
-
<div
|
|
11
|
-
<div
|
|
8
|
+
/* <div className="react-select-container">
|
|
9
|
+
<div className="react-select__control">
|
|
10
|
+
<div className="react-select__value-container">...</div>
|
|
11
|
+
<div className="react-select__indicators">...</div>
|
|
12
12
|
</div>
|
|
13
|
-
<div
|
|
14
|
-
<div
|
|
15
|
-
<div
|
|
13
|
+
<div className="react-select__menu">
|
|
14
|
+
<div className="react-select__menu-list">
|
|
15
|
+
<div className="react-select__option">...</div>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</div> */
|