@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.
Files changed (72) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +1 -2
  4. package/src/blocks/Payment/Form/CForm.js +1 -1
  5. package/src/blocks/Pricing/ComparingPlans.js +19 -19
  6. package/src/elements/DragDropImages.js +3 -3
  7. package/src/elements/DraggableCard.js +2 -2
  8. package/src/elements/HawaAccordian.js +1 -2
  9. package/src/elements/HawaAlert.js +2 -2
  10. package/src/elements/HawaChip.js +1 -1
  11. package/src/elements/HawaDrawerItem.js +2 -2
  12. package/src/elements/HawaItemCard.js +11 -11
  13. package/src/elements/HawaModal.js +14 -15
  14. package/src/elements/HawaPanelTabs.js +5 -6
  15. package/src/elements/HawaPopMenu.js +5 -6
  16. package/src/elements/HawaPricingCard.js +14 -14
  17. package/src/elements/HawaRadio.js +5 -6
  18. package/src/elements/HawaRange.js +2 -2
  19. package/src/elements/HawaSelect.js +1 -1
  20. package/src/elements/HawaSnackbar.js +5 -6
  21. package/src/elements/HawaSwitch.js +4 -4
  22. package/src/elements/HawaTable.js +8 -8
  23. package/src/elements/HawaTextField.js +2 -2
  24. package/src/elements/HawaTooltip.js +2 -3
  25. package/src/layout/HawaLayout.js +24 -25
  26. package/src/styles.css +7 -7
  27. package/src/tailwind.css +7 -7
  28. package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js → 0.60b9c65419c3ce80ab72.manager.bundle.js} +2 -2
  29. package/storybook-static/{0.1104ca18.iframe.bundle.js.LICENSE.txt → 0.60b9c65419c3ce80ab72.manager.bundle.js.LICENSE.txt} +0 -0
  30. package/storybook-static/0.e2b91f98.iframe.bundle.js +3 -0
  31. package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js.LICENSE.txt → 0.e2b91f98.iframe.bundle.js.LICENSE.txt} +0 -0
  32. package/storybook-static/0.e2b91f98.iframe.bundle.js.map +1 -0
  33. package/storybook-static/{1.e3eafd38.iframe.bundle.js → 1.e2210f7b.iframe.bundle.js} +0 -0
  34. package/storybook-static/1.fcf12768b56cacc8bdd8.manager.bundle.js +1 -0
  35. package/storybook-static/5.c1ea708e0305a3f2690d.manager.bundle.js +2 -0
  36. package/storybook-static/{5.5b799f3fbf64cec8e51a.manager.bundle.js.LICENSE.txt → 5.c1ea708e0305a3f2690d.manager.bundle.js.LICENSE.txt} +0 -0
  37. package/storybook-static/{6.b34ce31193a7fa1dd965.manager.bundle.js → 6.aa9b5ae07e5f3bc21475.manager.bundle.js} +1 -1
  38. package/storybook-static/{6.6023eba1.iframe.bundle.js → 6.fadd6632.iframe.bundle.js} +2 -2
  39. package/storybook-static/{6.6023eba1.iframe.bundle.js.LICENSE.txt → 6.fadd6632.iframe.bundle.js.LICENSE.txt} +0 -0
  40. package/storybook-static/6.fadd6632.iframe.bundle.js.map +1 -0
  41. package/storybook-static/{7.632f8551.iframe.bundle.js → 7.12834585.iframe.bundle.js} +0 -0
  42. package/storybook-static/{7.72879af713f755a7aa7e.manager.bundle.js → 7.f95843e9a2777ac17dbf.manager.bundle.js} +1 -1
  43. package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js → 8.15e99a30b6a9bc116f34.manager.bundle.js} +2 -2
  44. package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js.LICENSE.txt → 8.15e99a30b6a9bc116f34.manager.bundle.js.LICENSE.txt} +0 -0
  45. package/storybook-static/{9.63a5cf7a.iframe.bundle.js → 9.51450e03.iframe.bundle.js} +2 -2
  46. package/storybook-static/{9.63a5cf7a.iframe.bundle.js.LICENSE.txt → 9.51450e03.iframe.bundle.js.LICENSE.txt} +0 -0
  47. package/storybook-static/9.51450e03.iframe.bundle.js.map +1 -0
  48. package/storybook-static/{9.1e1335092fade49cc986.manager.bundle.js → 9.78e4df0068efee922f9a.manager.bundle.js} +1 -1
  49. package/storybook-static/iframe.html +1 -1
  50. package/storybook-static/index.html +1 -1
  51. package/storybook-static/main.3b67cd32d74b4c684f1b.manager.bundle.js +1 -0
  52. package/storybook-static/main.512a6115.iframe.bundle.js +1 -0
  53. package/storybook-static/project.json +1 -1
  54. package/storybook-static/{runtime~main.67ec6e92.iframe.bundle.js → runtime~main.49eed76e.iframe.bundle.js} +1 -1
  55. package/storybook-static/{runtime~main.a58df7ba92d01c5088d3.manager.bundle.js → runtime~main.4d99c291be326901006a.manager.bundle.js} +1 -1
  56. package/storybook-static/vendors~main.86108d25403f3f41d9ea.manager.bundle.js +2 -0
  57. package/storybook-static/{vendors~main.d13ba71108048897ea4a.manager.bundle.js.LICENSE.txt → vendors~main.86108d25403f3f41d9ea.manager.bundle.js.LICENSE.txt} +0 -0
  58. package/storybook-static/vendors~main.a425b282.iframe.bundle.js +3 -0
  59. package/storybook-static/{vendors~main.d5e21618.iframe.bundle.js.LICENSE.txt → vendors~main.a425b282.iframe.bundle.js.LICENSE.txt} +0 -0
  60. package/storybook-static/vendors~main.a425b282.iframe.bundle.js.map +1 -0
  61. package/tailwind.config.js +3 -4
  62. package/storybook-static/0.1104ca18.iframe.bundle.js +0 -3
  63. package/storybook-static/0.1104ca18.iframe.bundle.js.map +0 -1
  64. package/storybook-static/1.7e6ec5c45ae5b70c5149.manager.bundle.js +0 -1
  65. package/storybook-static/5.5b799f3fbf64cec8e51a.manager.bundle.js +0 -2
  66. package/storybook-static/6.6023eba1.iframe.bundle.js.map +0 -1
  67. package/storybook-static/9.63a5cf7a.iframe.bundle.js.map +0 -1
  68. package/storybook-static/main.4bd27e4e7faa098302d1.manager.bundle.js +0 -1
  69. package/storybook-static/main.d173b451.iframe.bundle.js +0 -1
  70. package/storybook-static/vendors~main.d13ba71108048897ea4a.manager.bundle.js +0 -2
  71. package/storybook-static/vendors~main.d5e21618.iframe.bundle.js +0 -3
  72. package/storybook-static/vendors~main.d5e21618.iframe.bundle.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.70",
3
+ "version": "0.0.74",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -56,7 +56,6 @@
56
56
  },
57
57
  "peerDependencies": {
58
58
  "crypto-js": "^4.1.1",
59
- "flowbite": "^1.5.3",
60
59
  "next-scripts": "^0.3.4",
61
60
  "prop-types": "^15.7.2",
62
61
  "react": ">=17.0.1",
@@ -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 class components, need to transform this to work with functional components.
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
- class="w-5 h-5 text-green-500"
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
- class="w-5 h-5 text-red-500"
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" class="overflow-x-auto w-full">
56
- <div class="overflow-hidden min-w-max">
57
- <div class="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 class="flex items-center"></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 class="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 class="text-gray-500 dark:text-gray-400">
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="#" class="text-blue-600 hover:underline">
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 class="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 class="text-gray-500 dark:text-gray-400">
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="#" class="text-blue-600 hover:underline">
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 class="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 class="text-gray-500 dark:text-gray-400">
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 class="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 class="text-gray-500 dark:text-gray-400"></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
- class="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"
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
- class="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"
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
- class="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"
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
- class="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"
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
- class="w-5 h-5"
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 class="sr-only">Close modal</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
- class="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"
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
- class="w-6 h-6"
11
+ className="w-6 h-6"
12
12
  aria-hidden="true"
13
13
  fill="currentColor"
14
14
  viewBox="0 0 20 20"
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import "flowbite";
4
3
 
5
4
  const AccordionItem = (props) => {
6
5
  let noRounding =
@@ -59,7 +58,7 @@ const AccordionItem = (props) => {
59
58
  Check out this guide to learn how to{" "}
60
59
  <a
61
60
  href="/docs/getting-started/introduction/"
62
- class="text-blue-600 dark:text-blue-500 hover:underline"
61
+ className="text-blue-600 dark:text-blue-500 hover:underline"
63
62
  >
64
63
  get started
65
64
  </a>{" "}
@@ -12,14 +12,14 @@ export const HawaAlert = (props) => {
12
12
 
13
13
  return (
14
14
  <div
15
- class={
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 class="font-medium">{props.title}</span>
22
+ <span className="font-medium">{props.title}</span>
23
23
  <span>{" " + props.text}</span>
24
24
  </div>
25
25
  );
@@ -2,7 +2,7 @@ import React from "react";
2
2
 
3
3
  export const HawaChip = (props) => {
4
4
  return (
5
- <span class="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">
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
- class="w-6 h-6 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
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 class="ml-3">{props.text}</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 class="block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 ">
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 class="flex justify-end pr-6">
8
+ <div className="flex justify-end pr-6">
9
9
  <button
10
10
  id="dropdownButton"
11
11
  data-dropdown-toggle="dropdown"
12
- class="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"
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 class="sr-only">Open dropdown</span>
15
+ <span className="sr-only">Open dropdown</span>
16
16
  <svg
17
- class="w-6 h-6"
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
- class="hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
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 class="py-1" aria-labelledby="dropdownButton">
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
- class="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"
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 class="px-6">
48
- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
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 class="font-normal text-gray-700 dark:text-gray-400">
51
+ <p className="font-normal text-gray-700 dark:text-gray-400">
52
52
  {props.content}
53
53
  </p>
54
54
  </div>
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import "flowbite";
3
2
 
4
3
  export const HawaModal = (props) => {
5
4
  return (
@@ -7,22 +6,22 @@ export const HawaModal = (props) => {
7
6
  id={props.modalID}
8
7
  tabindex="-1"
9
8
  aria-hidden="true"
10
- class="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"
9
+ 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
10
  >
12
- <div class="relative p-4 w-full max-w-2xl h-full md:h-auto">
13
- <div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
14
- <div class="flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600">
15
- <h3 class="text-xl font-semibold text-gray-900 dark:text-white">
11
+ <div className="relative p-4 w-full max-w-2xl h-full md:h-auto">
12
+ <div className="relative bg-white rounded-lg shadow dark:bg-gray-700">
13
+ <div className="flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600">
14
+ <h3 className="text-xl font-semibold text-gray-900 dark:text-white">
16
15
  Terms of Service
17
16
  </h3>
18
17
  <button
19
18
  type="button"
20
- class="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"
19
+ 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
20
  data-modal-toggle="defaultModal"
22
21
  >
23
22
  <svg
24
23
  aria-hidden="true"
25
- class="w-5 h-5"
24
+ className="w-5 h-5"
26
25
  fill="currentColor"
27
26
  viewBox="0 0 20 20"
28
27
  xmlns="http://www.w3.org/2000/svg"
@@ -33,16 +32,16 @@ export const HawaModal = (props) => {
33
32
  clip-rule="evenodd"
34
33
  ></path>
35
34
  </svg>
36
- <span class="sr-only">Close modal</span>
35
+ <span className="sr-only">Close modal</span>
37
36
  </button>
38
37
  </div>
39
- <div class="p-6 space-y-6">
40
- <p class="text-base leading-relaxed text-gray-500 dark:text-gray-400">
38
+ <div className="p-6 space-y-6">
39
+ <p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
41
40
  With less than a month to go before the European Union enacts new
42
41
  consumer privacy laws for its citizens, companies around the world
43
42
  are updating their terms of service agreements to comply.
44
43
  </p>
45
- <p class="text-base leading-relaxed text-gray-500 dark:text-gray-400">
44
+ <p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
46
45
  The European Union’s General Data Protection Regulation (G.D.P.R.)
47
46
  goes into effect on May 25 and is meant to ensure a common set of
48
47
  data rights in the European Union. It requires organizations to
@@ -50,18 +49,18 @@ export const HawaModal = (props) => {
50
49
  could personally affect them.
51
50
  </p>
52
51
  </div>
53
- <div class="flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600">
52
+ <div className="flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600">
54
53
  <button
55
54
  data-modal-toggle="defaultModal"
56
55
  type="button"
57
- class="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"
56
+ 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
57
  >
59
58
  I accept
60
59
  </button>
61
60
  <button
62
61
  data-modal-toggle="defaultModal"
63
62
  type="button"
64
- class="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"
63
+ 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
64
  >
66
65
  Decline
67
66
  </button>
@@ -1,24 +1,23 @@
1
1
  import React, { useState } from "react";
2
2
 
3
3
  import PropTypes from "prop-types";
4
- import "flowbite";
5
4
 
6
5
  export const HawaPanelTabs = (props) => {
7
6
  const [value, setValue] = useState(props.defaultValue);
8
7
  return (
9
8
  <div>
10
- <div class="mb-4 border-b border-gray-200 dark:border-gray-700">
9
+ <div className="mb-4 border-b border-gray-200 dark:border-gray-700">
11
10
  <ul
12
- class="flex flex-wrap -mb-px text-sm font-medium text-center"
11
+ className="flex flex-wrap -mb-px text-sm font-medium text-center"
13
12
  id="myTab"
14
13
  data-tabs-toggle="#myTabContent"
15
14
  role="tablist"
16
15
  >
17
16
  {props.options.map((option) => {
18
17
  return (
19
- <li class="mr-2" role="presentation">
18
+ <li className="mr-2" role="presentation">
20
19
  <button
21
- class="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"
20
+ 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
21
  id={`${option.value}-tab`}
23
22
  data-tabs-target={`#${option.value}`}
24
23
  type="button"
@@ -37,7 +36,7 @@ export const HawaPanelTabs = (props) => {
37
36
  {props.options.map((option) => {
38
37
  return (
39
38
  <div
40
- class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
39
+ className="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
41
40
  id={option.value}
42
41
  role="tabpanel"
43
42
  aria-labelledby={`${option.value}-tab`}
@@ -1,17 +1,16 @@
1
1
  import PropTypes from "prop-types";
2
- import "flowbite";
3
2
  export const HawaPopMenu = (props) => {
4
3
  return (
5
4
  <div>
6
5
  {/* <button
7
6
  id="dropdownDefault"
8
7
  data-dropdown-toggle={props.popMenuID}
9
- class="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"
8
+ 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
9
  type="button"
11
10
  >
12
11
  Dropdown button{" "}
13
12
  <svg
14
- class="ml-2 w-4 h-4"
13
+ className="ml-2 w-4 h-4"
15
14
  aria-hidden="true"
16
15
  fill="none"
17
16
  stroke="currentColor"
@@ -28,21 +27,21 @@ export const HawaPopMenu = (props) => {
28
27
  </button> */}
29
28
  <div
30
29
  id={props.popMenuID}
31
- class="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
30
+ className="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
32
31
  data-popper-reference-hidden=""
33
32
  data-popper-escaped=""
34
33
  data-popper-placement="bottom"
35
34
  // style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(0px, 484.5px, 0px);"
36
35
  >
37
36
  <ul
38
- class="py-1 text-sm text-gray-700 dark:text-gray-200"
37
+ className="py-1 text-sm text-gray-700 dark:text-gray-200"
39
38
  aria-labelledby="dropdownDefault"
40
39
  >
41
40
  {props.menuItems.map((item) => (
42
41
  <li>
43
42
  <a
44
43
  href="#"
45
- class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
44
+ className="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
46
45
  >
47
46
  {item.label}
48
47
  </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 class="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 class="mb-4 text-xl font-medium text-gray-500 dark:text-gray-400">
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 class="flex items-baseline text-gray-900 dark:text-white">
30
- <span class="font-semibold text-sm">
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 class="text-5xl font-extrabold tracking-tight">
34
+ <span className="text-5xl font-extrabold tracking-tight">
35
35
  {props.price}
36
36
  </span>
37
- <span class="ml-1 text-xl font-normal text-gray-500 dark:text-gray-400">
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" class="my-7 space-y-5">
44
+ <ul role="list" className="my-7 space-y-5">
45
45
  {featuresMapping?.map((feature) => {
46
46
  return (
47
- <li class="flex space-x-3">
47
+ <li className="flex space-x-3">
48
48
  <svg
49
49
  aria-hidden="true"
50
- class="flex-shrink-0 w-5 h-5 text-blue-600 dark:text-blue-500"
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 class="text-base font-normal leading-tight text-gray-500 dark:text-gray-400">
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 class="flex space-x-3 line-through decoration-gray-500">
69
+ {/* <li className="flex space-x-3 line-through decoration-gray-500">
70
70
  <svg
71
71
  aria-hidden="true"
72
- class="flex-shrink-0 w-5 h-5 text-gray-400 dark:text-gray-500"
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 class="text-base font-normal leading-tight text-gray-500">
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
- class="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"
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>
@@ -1,24 +1,23 @@
1
1
  import React from "react";
2
- import "flowbite";
3
2
 
4
3
  export const HawaRadio = (props) => {
5
4
  return (
6
5
  <div>
7
- <ul class="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">
6
+ <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
7
  {props.options.map((option) => {
9
8
  return (
10
- <li class="w-full border-b border-gray-200 sm:border-b-0 sm:border-r dark:border-gray-600">
11
- <div class="flex items-center pl-3">
9
+ <li className="w-full border-b border-gray-200 sm:border-b-0 sm:border-r dark:border-gray-600">
10
+ <div className="flex items-center pl-3">
12
11
  <input
13
12
  id="horizontal-list-radio-license"
14
13
  type="radio"
15
14
  value=""
16
15
  name="list-radio"
17
- class="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"
16
+ 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
17
  />
19
18
  <label
20
19
  for="horizontal-list-radio-license"
21
- class="py-3 ml-2 w-full text-sm font-medium text-gray-900 dark:text-gray-300"
20
+ className="py-3 ml-2 w-full text-sm font-medium text-gray-900 dark:text-gray-300"
22
21
  >
23
22
  {option.label}
24
23
  </label>
@@ -7,7 +7,7 @@ export const HawaRange = (props) => {
7
7
  {props.label && (
8
8
  <label
9
9
  for="default-range"
10
- class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
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
- class="w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
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
- class="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"
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>
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import "flowbite";
3
2
 
4
3
  export const HawaSnackbar = (props) => {
5
4
  let severities = {
@@ -15,19 +14,19 @@ export const HawaSnackbar = (props) => {
15
14
  return (
16
15
  <div id="toast-default" role="alert" className={severities[props.severity]}>
17
16
  <div>
18
- <div class="ml-3 text-sm font-bold">{props.title}</div>
19
- <div class="ml-3 text-sm font-normal">{props.text}</div>
17
+ <div className="ml-3 text-sm font-bold">{props.title}</div>
18
+ <div className="ml-3 text-sm font-normal">{props.text}</div>
20
19
  </div>
21
20
  <button
22
21
  type="button"
23
- class="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"
22
+ 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
23
  data-dismiss-target="#toast-default"
25
24
  aria-label="Close"
26
25
  >
27
- <span class="sr-only">Close</span>
26
+ <span className="sr-only">Close</span>
28
27
  <svg
29
28
  aria-hidden="true"
30
- class="w-5 h-5"
29
+ className="w-5 h-5"
31
30
  fill="currentColor"
32
31
  viewBox="0 0 20 20"
33
32
  xmlns="http://www.w3.org/2000/svg"