@sikka/hawa 0.0.70 → 0.0.71
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/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 -1
- 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 -14
- package/src/elements/HawaPanelTabs.js +5 -5
- package/src/elements/HawaPopMenu.js +5 -5
- package/src/elements/HawaPricingCard.js +14 -14
- package/src/elements/HawaRadio.js +5 -5
- package/src/elements/HawaRange.js +2 -2
- package/src/elements/HawaSelect.js +1 -1
- package/src/elements/HawaSnackbar.js +5 -5
- 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 -2
- package/src/layout/HawaLayout.js +24 -24
- package/src/styles.css +7 -7
- package/src/tailwind.css +7 -7
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.6c217d9d.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/main.d173b451.iframe.bundle.js +0 -1
package/package.json
CHANGED
|
@@ -139,7 +139,7 @@ export default function CForm({
|
|
|
139
139
|
const handlePayfortForm = (e) => {};
|
|
140
140
|
|
|
141
141
|
// NOTE: Currently the cursor on the card number field gets reset if we remove a number, the code bellow was used
|
|
142
|
-
// in
|
|
142
|
+
// in className components, need to transform this to work with functional components.
|
|
143
143
|
// getSnapshotBeforeUpdate() {
|
|
144
144
|
// return this.props.cardNumberRef.current.selectionStart;
|
|
145
145
|
// }
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
|
|
5
5
|
const CheckMark = () => (
|
|
6
6
|
<svg
|
|
7
|
-
|
|
7
|
+
className="w-5 h-5 text-green-500"
|
|
8
8
|
aria-hidden="true"
|
|
9
9
|
fill="currentColor"
|
|
10
10
|
viewBox="0 0 20 20"
|
|
@@ -20,7 +20,7 @@ const CheckMark = () => (
|
|
|
20
20
|
|
|
21
21
|
const UncheckMark = () => (
|
|
22
22
|
<svg
|
|
23
|
-
|
|
23
|
+
className="w-5 h-5 text-red-500"
|
|
24
24
|
aria-hidden="true"
|
|
25
25
|
fill="currentColor"
|
|
26
26
|
viewBox="0 0 20 20"
|
|
@@ -52,20 +52,20 @@ export const ComparingPlans = (props) => {
|
|
|
52
52
|
let inactiveTabStyle =
|
|
53
53
|
"inline-block py-3 px-4 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white";
|
|
54
54
|
return (
|
|
55
|
-
<div id="detailed-pricing"
|
|
56
|
-
<div
|
|
57
|
-
<div
|
|
58
|
-
<div
|
|
55
|
+
<div id="detailed-pricing" className="overflow-x-auto w-full">
|
|
56
|
+
<div className="overflow-hidden min-w-max">
|
|
57
|
+
<div className="grid grid-cols-4 gap-x-16 p-4 text-sm font-medium text-gray-900 bg-gray-100 border-t border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700 dark:text-white">
|
|
58
|
+
<div className="flex items-center"></div>
|
|
59
59
|
{props.plans.map((plan) => (
|
|
60
60
|
<div>{plan.title}</div>
|
|
61
61
|
))}
|
|
62
62
|
</div>
|
|
63
63
|
{props.plans.map((plan) => {
|
|
64
64
|
return (
|
|
65
|
-
<div
|
|
66
|
-
<div
|
|
65
|
+
<div className="grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700">
|
|
66
|
+
<div className="text-gray-500 dark:text-gray-400">
|
|
67
67
|
Basic components (
|
|
68
|
-
<a href="#"
|
|
68
|
+
<a href="#" className="text-blue-600 hover:underline">
|
|
69
69
|
view all
|
|
70
70
|
</a>
|
|
71
71
|
)
|
|
@@ -76,10 +76,10 @@ export const ComparingPlans = (props) => {
|
|
|
76
76
|
</div>
|
|
77
77
|
);
|
|
78
78
|
})}
|
|
79
|
-
<div
|
|
80
|
-
<div
|
|
79
|
+
<div className="grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700">
|
|
80
|
+
<div className="text-gray-500 dark:text-gray-400">
|
|
81
81
|
Application UI (
|
|
82
|
-
<a href="#"
|
|
82
|
+
<a href="#" className="text-blue-600 hover:underline">
|
|
83
83
|
view demo
|
|
84
84
|
</a>
|
|
85
85
|
)
|
|
@@ -88,20 +88,20 @@ export const ComparingPlans = (props) => {
|
|
|
88
88
|
<CheckMark />
|
|
89
89
|
<UncheckMark />
|
|
90
90
|
</div>
|
|
91
|
-
<div
|
|
92
|
-
<div
|
|
91
|
+
<div className="grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700">
|
|
92
|
+
<div className="text-gray-500 dark:text-gray-400">
|
|
93
93
|
Marketing UI pre-order
|
|
94
94
|
</div>
|
|
95
95
|
<UncheckMark />
|
|
96
96
|
<CheckMark />
|
|
97
97
|
<UncheckMark />
|
|
98
98
|
</div>
|
|
99
|
-
<div
|
|
100
|
-
<div
|
|
99
|
+
<div className="grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700">
|
|
100
|
+
<div className="text-gray-500 dark:text-gray-400"></div>
|
|
101
101
|
<div>
|
|
102
102
|
<a
|
|
103
103
|
href="#"
|
|
104
|
-
|
|
104
|
+
className="text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900"
|
|
105
105
|
>
|
|
106
106
|
Buy now
|
|
107
107
|
</a>
|
|
@@ -109,7 +109,7 @@ export const ComparingPlans = (props) => {
|
|
|
109
109
|
<div>
|
|
110
110
|
<a
|
|
111
111
|
href="#"
|
|
112
|
-
|
|
112
|
+
className="text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900"
|
|
113
113
|
>
|
|
114
114
|
Buy now
|
|
115
115
|
</a>
|
|
@@ -117,7 +117,7 @@ export const ComparingPlans = (props) => {
|
|
|
117
117
|
<div>
|
|
118
118
|
<a
|
|
119
119
|
href="#"
|
|
120
|
-
|
|
120
|
+
className="text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900"
|
|
121
121
|
>
|
|
122
122
|
Buy now
|
|
123
123
|
</a>
|
|
@@ -98,12 +98,12 @@ export const DragDropImages = ({
|
|
|
98
98
|
onDeleteFile(file);
|
|
99
99
|
}}
|
|
100
100
|
type="button"
|
|
101
|
-
|
|
101
|
+
className="text-gray-400 absolute left-0 bg-gray-900 hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
|
|
102
102
|
data-modal-toggle="defaultModal"
|
|
103
103
|
>
|
|
104
104
|
<svg
|
|
105
105
|
aria-hidden="true"
|
|
106
|
-
|
|
106
|
+
className="w-5 h-5"
|
|
107
107
|
fill="currentColor"
|
|
108
108
|
viewBox="0 0 20 20"
|
|
109
109
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -114,7 +114,7 @@ export const DragDropImages = ({
|
|
|
114
114
|
clip-rule="evenodd"
|
|
115
115
|
></path>
|
|
116
116
|
</svg>
|
|
117
|
-
<span
|
|
117
|
+
<span className="sr-only">Close modal</span>
|
|
118
118
|
</button>
|
|
119
119
|
|
|
120
120
|
<div
|
|
@@ -4,11 +4,11 @@ export const DraggableCard = (props) => {
|
|
|
4
4
|
return (
|
|
5
5
|
<div className="flex flex-row bg-blue-300 rounded-xl p-4">
|
|
6
6
|
<button
|
|
7
|
-
|
|
7
|
+
className="inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
8
8
|
type="button"
|
|
9
9
|
>
|
|
10
10
|
<svg
|
|
11
|
-
|
|
11
|
+
className="w-6 h-6"
|
|
12
12
|
aria-hidden="true"
|
|
13
13
|
fill="currentColor"
|
|
14
14
|
viewBox="0 0 20 20"
|
|
@@ -59,7 +59,7 @@ const AccordionItem = (props) => {
|
|
|
59
59
|
Check out this guide to learn how to{" "}
|
|
60
60
|
<a
|
|
61
61
|
href="/docs/getting-started/introduction/"
|
|
62
|
-
|
|
62
|
+
className="text-blue-600 dark:text-blue-500 hover:underline"
|
|
63
63
|
>
|
|
64
64
|
get started
|
|
65
65
|
</a>{" "}
|
|
@@ -12,14 +12,14 @@ export const HawaAlert = (props) => {
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<div
|
|
15
|
-
|
|
15
|
+
className={
|
|
16
16
|
"flex flex-col p-4 mb-4 text-sm rounded-lg" +
|
|
17
17
|
" " +
|
|
18
18
|
severities[props.severity]
|
|
19
19
|
}
|
|
20
20
|
role="alert"
|
|
21
21
|
>
|
|
22
|
-
<span
|
|
22
|
+
<span className="font-medium">{props.title}</span>
|
|
23
23
|
<span>{" " + props.text}</span>
|
|
24
24
|
</div>
|
|
25
25
|
);
|
package/src/elements/HawaChip.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
export const HawaChip = (props) => {
|
|
4
4
|
return (
|
|
5
|
-
<span
|
|
5
|
+
<span className="bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800">
|
|
6
6
|
{props.label}
|
|
7
7
|
</span>
|
|
8
8
|
);
|
|
@@ -11,7 +11,7 @@ const HawaDrawerItem = (props) => {
|
|
|
11
11
|
<div className={props.icon ? withIcon : withoutIcon}>
|
|
12
12
|
{/* <svg
|
|
13
13
|
aria-hidden="true"
|
|
14
|
-
|
|
14
|
+
className="w-6 h-6 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
|
|
15
15
|
fill="currentColor"
|
|
16
16
|
viewBox="0 0 20 20"
|
|
17
17
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -19,7 +19,7 @@ const HawaDrawerItem = (props) => {
|
|
|
19
19
|
<path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path>
|
|
20
20
|
<path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path>
|
|
21
21
|
</svg> */}
|
|
22
|
-
<span
|
|
22
|
+
<span className="ml-3">{props.text}</span>
|
|
23
23
|
</div>
|
|
24
24
|
</li>
|
|
25
25
|
);
|
|
@@ -3,18 +3,18 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
|
|
4
4
|
export const HawaItemCard = (props) => {
|
|
5
5
|
return (
|
|
6
|
-
<div
|
|
6
|
+
<div className="block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 ">
|
|
7
7
|
{props.headerActions && (
|
|
8
|
-
<div
|
|
8
|
+
<div className="flex justify-end pr-6">
|
|
9
9
|
<button
|
|
10
10
|
id="dropdownButton"
|
|
11
11
|
data-dropdown-toggle="dropdown"
|
|
12
|
-
|
|
12
|
+
className="inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-4 focus:outline-none focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm"
|
|
13
13
|
type="button"
|
|
14
14
|
>
|
|
15
|
-
<span
|
|
15
|
+
<span className="sr-only">Open dropdown</span>
|
|
16
16
|
<svg
|
|
17
|
-
|
|
17
|
+
className="w-6 h-6"
|
|
18
18
|
aria-hidden="true"
|
|
19
19
|
fill="currentColor"
|
|
20
20
|
viewBox="0 0 20 20"
|
|
@@ -25,15 +25,15 @@ export const HawaItemCard = (props) => {
|
|
|
25
25
|
</button>
|
|
26
26
|
<div
|
|
27
27
|
id="dropdown"
|
|
28
|
-
|
|
28
|
+
className="hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
|
|
29
29
|
>
|
|
30
|
-
<ul
|
|
30
|
+
<ul className="py-1" aria-labelledby="dropdownButton">
|
|
31
31
|
{props.headerActions.map((action) => {
|
|
32
32
|
return (
|
|
33
33
|
<li>
|
|
34
34
|
<a
|
|
35
35
|
href="#"
|
|
36
|
-
|
|
36
|
+
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"
|
|
37
37
|
>
|
|
38
38
|
{action.label}
|
|
39
39
|
</a>
|
|
@@ -44,11 +44,11 @@ export const HawaItemCard = (props) => {
|
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
)}
|
|
47
|
-
<div
|
|
48
|
-
<h5
|
|
47
|
+
<div className="px-6">
|
|
48
|
+
<h5 className="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
|
|
49
49
|
{props.header}{" "}
|
|
50
50
|
</h5>
|
|
51
|
-
<p
|
|
51
|
+
<p className="font-normal text-gray-700 dark:text-gray-400">
|
|
52
52
|
{props.content}
|
|
53
53
|
</p>
|
|
54
54
|
</div>
|
|
@@ -7,22 +7,22 @@ export const HawaModal = (props) => {
|
|
|
7
7
|
id={props.modalID}
|
|
8
8
|
tabindex="-1"
|
|
9
9
|
aria-hidden="true"
|
|
10
|
-
|
|
10
|
+
className="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 w-full md:inset-0 h-modal md:h-full justify-center items-center"
|
|
11
11
|
>
|
|
12
|
-
<div
|
|
13
|
-
<div
|
|
14
|
-
<div
|
|
15
|
-
<h3
|
|
12
|
+
<div className="relative p-4 w-full max-w-2xl h-full md:h-auto">
|
|
13
|
+
<div className="relative bg-white rounded-lg shadow dark:bg-gray-700">
|
|
14
|
+
<div className="flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600">
|
|
15
|
+
<h3 className="text-xl font-semibold text-gray-900 dark:text-white">
|
|
16
16
|
Terms of Service
|
|
17
17
|
</h3>
|
|
18
18
|
<button
|
|
19
19
|
type="button"
|
|
20
|
-
|
|
20
|
+
className="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
|
|
21
21
|
data-modal-toggle="defaultModal"
|
|
22
22
|
>
|
|
23
23
|
<svg
|
|
24
24
|
aria-hidden="true"
|
|
25
|
-
|
|
25
|
+
className="w-5 h-5"
|
|
26
26
|
fill="currentColor"
|
|
27
27
|
viewBox="0 0 20 20"
|
|
28
28
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -33,16 +33,16 @@ export const HawaModal = (props) => {
|
|
|
33
33
|
clip-rule="evenodd"
|
|
34
34
|
></path>
|
|
35
35
|
</svg>
|
|
36
|
-
<span
|
|
36
|
+
<span className="sr-only">Close modal</span>
|
|
37
37
|
</button>
|
|
38
38
|
</div>
|
|
39
|
-
<div
|
|
40
|
-
<p
|
|
39
|
+
<div className="p-6 space-y-6">
|
|
40
|
+
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
|
|
41
41
|
With less than a month to go before the European Union enacts new
|
|
42
42
|
consumer privacy laws for its citizens, companies around the world
|
|
43
43
|
are updating their terms of service agreements to comply.
|
|
44
44
|
</p>
|
|
45
|
-
<p
|
|
45
|
+
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
|
|
46
46
|
The European Union’s General Data Protection Regulation (G.D.P.R.)
|
|
47
47
|
goes into effect on May 25 and is meant to ensure a common set of
|
|
48
48
|
data rights in the European Union. It requires organizations to
|
|
@@ -50,18 +50,18 @@ export const HawaModal = (props) => {
|
|
|
50
50
|
could personally affect them.
|
|
51
51
|
</p>
|
|
52
52
|
</div>
|
|
53
|
-
<div
|
|
53
|
+
<div className="flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600">
|
|
54
54
|
<button
|
|
55
55
|
data-modal-toggle="defaultModal"
|
|
56
56
|
type="button"
|
|
57
|
-
|
|
57
|
+
className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
58
58
|
>
|
|
59
59
|
I accept
|
|
60
60
|
</button>
|
|
61
61
|
<button
|
|
62
62
|
data-modal-toggle="defaultModal"
|
|
63
63
|
type="button"
|
|
64
|
-
|
|
64
|
+
className="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
65
65
|
>
|
|
66
66
|
Decline
|
|
67
67
|
</button>
|
|
@@ -7,18 +7,18 @@ export const HawaPanelTabs = (props) => {
|
|
|
7
7
|
const [value, setValue] = useState(props.defaultValue);
|
|
8
8
|
return (
|
|
9
9
|
<div>
|
|
10
|
-
<div
|
|
10
|
+
<div className="mb-4 border-b border-gray-200 dark:border-gray-700">
|
|
11
11
|
<ul
|
|
12
|
-
|
|
12
|
+
className="flex flex-wrap -mb-px text-sm font-medium text-center"
|
|
13
13
|
id="myTab"
|
|
14
14
|
data-tabs-toggle="#myTabContent"
|
|
15
15
|
role="tablist"
|
|
16
16
|
>
|
|
17
17
|
{props.options.map((option) => {
|
|
18
18
|
return (
|
|
19
|
-
<li
|
|
19
|
+
<li className="mr-2" role="presentation">
|
|
20
20
|
<button
|
|
21
|
-
|
|
21
|
+
className="inline-block p-4 rounded-t-lg border-b-2 text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500"
|
|
22
22
|
id={`${option.value}-tab`}
|
|
23
23
|
data-tabs-target={`#${option.value}`}
|
|
24
24
|
type="button"
|
|
@@ -37,7 +37,7 @@ export const HawaPanelTabs = (props) => {
|
|
|
37
37
|
{props.options.map((option) => {
|
|
38
38
|
return (
|
|
39
39
|
<div
|
|
40
|
-
|
|
40
|
+
className="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
|
|
41
41
|
id={option.value}
|
|
42
42
|
role="tabpanel"
|
|
43
43
|
aria-labelledby={`${option.value}-tab`}
|
|
@@ -6,12 +6,12 @@ export const HawaPopMenu = (props) => {
|
|
|
6
6
|
{/* <button
|
|
7
7
|
id="dropdownDefault"
|
|
8
8
|
data-dropdown-toggle={props.popMenuID}
|
|
9
|
-
|
|
9
|
+
className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
10
10
|
type="button"
|
|
11
11
|
>
|
|
12
12
|
Dropdown button{" "}
|
|
13
13
|
<svg
|
|
14
|
-
|
|
14
|
+
className="ml-2 w-4 h-4"
|
|
15
15
|
aria-hidden="true"
|
|
16
16
|
fill="none"
|
|
17
17
|
stroke="currentColor"
|
|
@@ -28,21 +28,21 @@ export const HawaPopMenu = (props) => {
|
|
|
28
28
|
</button> */}
|
|
29
29
|
<div
|
|
30
30
|
id={props.popMenuID}
|
|
31
|
-
|
|
31
|
+
className="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
|
|
32
32
|
data-popper-reference-hidden=""
|
|
33
33
|
data-popper-escaped=""
|
|
34
34
|
data-popper-placement="bottom"
|
|
35
35
|
// style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(0px, 484.5px, 0px);"
|
|
36
36
|
>
|
|
37
37
|
<ul
|
|
38
|
-
|
|
38
|
+
className="py-1 text-sm text-gray-700 dark:text-gray-200"
|
|
39
39
|
aria-labelledby="dropdownDefault"
|
|
40
40
|
>
|
|
41
41
|
{props.menuItems.map((item) => (
|
|
42
42
|
<li>
|
|
43
43
|
<a
|
|
44
44
|
href="#"
|
|
45
|
-
|
|
45
|
+
className="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
46
46
|
>
|
|
47
47
|
{item.label}
|
|
48
48
|
</a>
|
|
@@ -22,32 +22,32 @@ export const HawaPricingCard = (props) => {
|
|
|
22
22
|
let featuresMapping = isArabic ? props.features_ar : props.features;
|
|
23
23
|
let chipSpacing = isArabic ? { left: 10 } : { right: 10 };
|
|
24
24
|
return (
|
|
25
|
-
<div
|
|
26
|
-
<h5
|
|
25
|
+
<div className="mx-1 p-4 w-full max-w-sm bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700">
|
|
26
|
+
<h5 className="mb-4 text-xl font-medium text-gray-500 dark:text-gray-400">
|
|
27
27
|
{isArabic ? props.title_ar : props.title}
|
|
28
28
|
</h5>
|
|
29
|
-
<div
|
|
30
|
-
<span
|
|
29
|
+
<div className="flex items-baseline text-gray-900 dark:text-white">
|
|
30
|
+
<span className="font-semibold text-sm">
|
|
31
31
|
{" "}
|
|
32
32
|
{currencyMapping[props.currency?.toLowerCase()]}
|
|
33
33
|
</span>
|
|
34
|
-
<span
|
|
34
|
+
<span className="text-5xl font-extrabold tracking-tight">
|
|
35
35
|
{props.price}
|
|
36
36
|
</span>
|
|
37
|
-
<span
|
|
37
|
+
<span className="ml-1 text-xl font-normal text-gray-500 dark:text-gray-400">
|
|
38
38
|
/{" "}
|
|
39
39
|
{isArabic
|
|
40
40
|
? cycleTextsArabic[props.cycleText]
|
|
41
41
|
: cycleTextsEnglish[props.cycleText]}
|
|
42
42
|
</span>
|
|
43
43
|
</div>
|
|
44
|
-
<ul role="list"
|
|
44
|
+
<ul role="list" className="my-7 space-y-5">
|
|
45
45
|
{featuresMapping?.map((feature) => {
|
|
46
46
|
return (
|
|
47
|
-
<li
|
|
47
|
+
<li className="flex space-x-3">
|
|
48
48
|
<svg
|
|
49
49
|
aria-hidden="true"
|
|
50
|
-
|
|
50
|
+
className="flex-shrink-0 w-5 h-5 text-blue-600 dark:text-blue-500"
|
|
51
51
|
fill="currentColor"
|
|
52
52
|
viewBox="0 0 20 20"
|
|
53
53
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -59,17 +59,17 @@ export const HawaPricingCard = (props) => {
|
|
|
59
59
|
clip-rule="evenodd"
|
|
60
60
|
></path>
|
|
61
61
|
</svg>
|
|
62
|
-
<span
|
|
62
|
+
<span className="text-base font-normal leading-tight text-gray-500 dark:text-gray-400">
|
|
63
63
|
{feature}
|
|
64
64
|
</span>
|
|
65
65
|
</li>
|
|
66
66
|
);
|
|
67
67
|
})}
|
|
68
68
|
|
|
69
|
-
{/* <li
|
|
69
|
+
{/* <li className="flex space-x-3 line-through decoration-gray-500">
|
|
70
70
|
<svg
|
|
71
71
|
aria-hidden="true"
|
|
72
|
-
|
|
72
|
+
className="flex-shrink-0 w-5 h-5 text-gray-400 dark:text-gray-500"
|
|
73
73
|
fill="currentColor"
|
|
74
74
|
viewBox="0 0 20 20"
|
|
75
75
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -81,14 +81,14 @@ export const HawaPricingCard = (props) => {
|
|
|
81
81
|
clip-rule="evenodd"
|
|
82
82
|
></path>
|
|
83
83
|
</svg>
|
|
84
|
-
<span
|
|
84
|
+
<span className="text-base font-normal leading-tight text-gray-500">
|
|
85
85
|
Sketch Files
|
|
86
86
|
</span>
|
|
87
87
|
</li> */}
|
|
88
88
|
</ul>
|
|
89
89
|
<button
|
|
90
90
|
type="button"
|
|
91
|
-
|
|
91
|
+
className="text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-200 dark:focus:ring-blue-900 font-medium rounded-lg text-sm px-5 py-2.5 inline-flex justify-center w-full text-center"
|
|
92
92
|
>
|
|
93
93
|
{props.buttonText}
|
|
94
94
|
</button>
|
|
@@ -4,21 +4,21 @@ import "flowbite";
|
|
|
4
4
|
export const HawaRadio = (props) => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
|
-
<ul
|
|
7
|
+
<ul className="items-center w-full text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 sm:flex dark:bg-gray-700 dark:border-gray-600 dark:text-white">
|
|
8
8
|
{props.options.map((option) => {
|
|
9
9
|
return (
|
|
10
|
-
<li
|
|
11
|
-
<div
|
|
10
|
+
<li className="w-full border-b border-gray-200 sm:border-b-0 sm:border-r dark:border-gray-600">
|
|
11
|
+
<div className="flex items-center pl-3">
|
|
12
12
|
<input
|
|
13
13
|
id="horizontal-list-radio-license"
|
|
14
14
|
type="radio"
|
|
15
15
|
value=""
|
|
16
16
|
name="list-radio"
|
|
17
|
-
|
|
17
|
+
className="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500"
|
|
18
18
|
/>
|
|
19
19
|
<label
|
|
20
20
|
for="horizontal-list-radio-license"
|
|
21
|
-
|
|
21
|
+
className="py-3 ml-2 w-full text-sm font-medium text-gray-900 dark:text-gray-300"
|
|
22
22
|
>
|
|
23
23
|
{option.label}
|
|
24
24
|
</label>
|
|
@@ -7,7 +7,7 @@ export const HawaRange = (props) => {
|
|
|
7
7
|
{props.label && (
|
|
8
8
|
<label
|
|
9
9
|
for="default-range"
|
|
10
|
-
|
|
10
|
+
className="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
|
|
11
11
|
>
|
|
12
12
|
{props.label}
|
|
13
13
|
</label>
|
|
@@ -18,7 +18,7 @@ export const HawaRange = (props) => {
|
|
|
18
18
|
id="default-range"
|
|
19
19
|
type="range"
|
|
20
20
|
value="50"
|
|
21
|
-
|
|
21
|
+
className="w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
|
|
22
22
|
/>
|
|
23
23
|
<div className="ml-2">{props.endElement}</div>{" "}
|
|
24
24
|
</div>
|
|
@@ -27,7 +27,7 @@ export const HawaSelect = (props) => {
|
|
|
27
27
|
|
|
28
28
|
<select
|
|
29
29
|
id="countries"
|
|
30
|
-
|
|
30
|
+
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 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"
|
|
31
31
|
>
|
|
32
32
|
{props.children}
|
|
33
33
|
</select>
|
|
@@ -15,19 +15,19 @@ export const HawaSnackbar = (props) => {
|
|
|
15
15
|
return (
|
|
16
16
|
<div id="toast-default" role="alert" className={severities[props.severity]}>
|
|
17
17
|
<div>
|
|
18
|
-
<div
|
|
19
|
-
<div
|
|
18
|
+
<div className="ml-3 text-sm font-bold">{props.title}</div>
|
|
19
|
+
<div className="ml-3 text-sm font-normal">{props.text}</div>
|
|
20
20
|
</div>
|
|
21
21
|
<button
|
|
22
22
|
type="button"
|
|
23
|
-
|
|
23
|
+
className="ml-auto -mx-1.5 -my-1.5 text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"
|
|
24
24
|
data-dismiss-target="#toast-default"
|
|
25
25
|
aria-label="Close"
|
|
26
26
|
>
|
|
27
|
-
<span
|
|
27
|
+
<span className="sr-only">Close</span>
|
|
28
28
|
<svg
|
|
29
29
|
aria-hidden="true"
|
|
30
|
-
|
|
30
|
+
className="w-5 h-5"
|
|
31
31
|
fill="currentColor"
|
|
32
32
|
viewBox="0 0 20 20"
|
|
33
33
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -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>
|