@sikka/hawa 0.0.51 → 0.0.53

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 (37) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +1 -1
  4. package/src/elements/DragDropImages.js +34 -26
  5. package/src/elements/HawaAccordian.js +0 -16
  6. package/src/elements/HawaItemCard.js +0 -1
  7. package/src/elements/HawaLogoButton.js +1 -1
  8. package/src/elements/HawaPhoneInput.js +2 -6
  9. package/src/elements/HawaPopMenu.js +82 -38
  10. package/src/elements/HawaPricingCard.js +102 -120
  11. package/src/elements/HawaRange.js +28 -12
  12. package/src/elements/HawaSearchBar.js +5 -7
  13. package/src/elements/HawaSettingsRow.js +4 -5
  14. package/src/elements/HawaTypography.js +1 -2
  15. package/src/elements/PinInput.js +14 -22
  16. package/src/elements/RadioBox.js +27 -27
  17. package/src/elements/SelectedField.js +43 -43
  18. package/src/elements/TabPanel.js +13 -16
  19. package/src/layout/HawaAppLayout.js +238 -238
  20. package/src/layout/HawaAppLayout2.js +239 -239
  21. package/src/layout/index.js +1 -1
  22. package/storybook-static/{1.1afe453d.iframe.bundle.js → 1.c5cb37d9.iframe.bundle.js} +0 -0
  23. package/storybook-static/{2.e7f8eecc.iframe.bundle.js → 2.c8f6dc2b.iframe.bundle.js} +0 -0
  24. package/storybook-static/{6.b22bfe7f.iframe.bundle.js → 6.98a925e3.iframe.bundle.js} +3 -3
  25. package/storybook-static/{6.b22bfe7f.iframe.bundle.js.LICENSE.txt → 6.98a925e3.iframe.bundle.js.LICENSE.txt} +0 -0
  26. package/storybook-static/6.98a925e3.iframe.bundle.js.map +1 -0
  27. package/storybook-static/iframe.html +1 -1
  28. package/storybook-static/main.d1517396.iframe.bundle.js +1 -0
  29. package/storybook-static/project.json +1 -1
  30. package/storybook-static/{runtime~main.0e8a2888.iframe.bundle.js → runtime~main.e7e3ab5b.iframe.bundle.js} +1 -1
  31. package/storybook-static/vendors~main.f32ea22a.iframe.bundle.js +76 -0
  32. package/storybook-static/{vendors~main.8ab765cf.iframe.bundle.js.LICENSE.txt → vendors~main.f32ea22a.iframe.bundle.js.LICENSE.txt} +0 -10
  33. package/storybook-static/vendors~main.f32ea22a.iframe.bundle.js.map +1 -0
  34. package/storybook-static/6.b22bfe7f.iframe.bundle.js.map +0 -1
  35. package/storybook-static/main.030838f5.iframe.bundle.js +0 -1
  36. package/storybook-static/vendors~main.8ab765cf.iframe.bundle.js +0 -76
  37. package/storybook-static/vendors~main.8ab765cf.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.51",
3
+ "version": "0.0.53",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -1,11 +1,8 @@
1
1
  import React, { useEffect, useState } from "react";
2
- // import axios from "axios";
3
2
  import { useDropzone } from "react-dropzone";
4
- import CloseIcon from "@mui/icons-material/Close";
5
- // import styled from "@emotion/styled";
6
- import { Button, Container, IconButton, Typography } from "@mui/material";
7
3
  import { useTheme } from "@mui/system";
8
4
  import { HawaAlert } from "./HawaAlert";
5
+ import { HawaButton } from "./HawaButton";
9
6
 
10
7
  const thumbsContainer = {
11
8
  display: "flex",
@@ -95,26 +92,33 @@ export const DragDropImages = ({
95
92
  });
96
93
  const thumbs = files?.map((file, index) => (
97
94
  <div style={{ position: "relative", margin: 10 }}>
98
- <IconButton
95
+ <button
99
96
  onClick={(e) => {
100
97
  e.stopPropagation();
101
98
  acceptedFiles.splice(acceptedFiles.indexOf(file), 1);
102
99
  setCmp(Math.random);
103
100
  onDeleteFile(file);
104
101
  }}
105
- size="small"
106
- variant="contained"
107
- style={{
108
- position: "absolute",
109
- top: -10,
110
- right: -10,
111
- backgroundColor: theme.primaryActionColor,
112
- color: "white",
113
- padding: 3
114
- }}
102
+ type="button"
103
+ 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"
104
+ data-modal-toggle="defaultModal"
115
105
  >
116
- <CloseIcon fontSize="small" />
117
- </IconButton>
106
+ <svg
107
+ aria-hidden="true"
108
+ class="w-5 h-5"
109
+ fill="currentColor"
110
+ viewBox="0 0 20 20"
111
+ xmlns="http://www.w3.org/2000/svg"
112
+ >
113
+ <path
114
+ fill-rule="evenodd"
115
+ d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
116
+ clip-rule="evenodd"
117
+ ></path>
118
+ </svg>
119
+ <span class="sr-only">Close modal</span>
120
+ </button>
121
+
118
122
  <div
119
123
  style={{
120
124
  display: "flex",
@@ -136,17 +140,20 @@ export const DragDropImages = ({
136
140
  console.log("error", fileRejections);
137
141
 
138
142
  return (
139
- <Container
140
- variant="drop-area"
143
+ <div
144
+ // variant="drop-area"
141
145
  {...getRootProps({
142
146
  style: { backgroundColor: isDragActive && "white" }
143
147
  })}
148
+ className="border-black border border-dashed rounded-xl flex flex-col justify-center"
144
149
  >
145
150
  <input {...getInputProps()} />
146
- <Typography>Click here or drop files here to upload</Typography>
147
- <Typography>Max file size is {max}</Typography>
151
+ <div className="text-center p-1">
152
+ Click here or drop files here to upload
153
+ </div>
154
+ <div className="text-center p-1">Max file size is {max}</div>
148
155
  {acceptedFiles.length > 0 && (
149
- <Button
156
+ <HawaButton
150
157
  style={{ color: "black" }}
151
158
  onClick={(e) => {
152
159
  e.stopPropagation();
@@ -154,12 +161,13 @@ export const DragDropImages = ({
154
161
  }}
155
162
  >
156
163
  Clear All
157
- </Button>
164
+ </HawaButton>
158
165
  )}
159
166
 
160
- {thumbs && showPreview ? <aside style={thumbsContainer}>{thumbs}</aside> : null}
167
+ {thumbs && showPreview ? (
168
+ <aside style={thumbsContainer}>{thumbs}</aside>
169
+ ) : null}
161
170
  {fileRejections[0]?.errors[0]?.code === "too-many-files" ? (
162
- // <Typography variant="">{texts.tooManyFiles}</Typography>
163
171
  <HawaAlert text={texts.tooManyFiles} severity="error" />
164
172
  ) : fileRejections[0]?.errors[0]?.code === "file-too-large" ? (
165
173
  <HawaAlert text={texts.fileTooLarge} severity="error" />
@@ -167,6 +175,6 @@ export const DragDropImages = ({
167
175
  errs
168
176
  )}
169
177
  {}
170
- </Container>
178
+ </div>
171
179
  );
172
180
  };
@@ -89,23 +89,7 @@ export const HawaAccordian = (props) => {
89
89
  />
90
90
  );
91
91
  })}
92
- {/* <AccordionItem count={1} />
93
- <AccordionItem count={2} />
94
- <AccordionItem count={3} /> */}
95
92
  </div>
96
-
97
- // <Accordion elevation={0}>
98
- // <AccordionSummary
99
- // expandIcon={<ExpandMore />}
100
- // aria-controls="panel1a-content"
101
- // id="panel1a-header"
102
- // >
103
- // <Typography>{props.title}</Typography>
104
- // </AccordionSummary>
105
- // <AccordionDetails>
106
- // <Typography>{props.content} </Typography>
107
- // </AccordionDetails>
108
- // </Accordion>
109
93
  );
110
94
  };
111
95
  HawaAccordian.propTypes = {
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import Container from "@mui/material/Container";
3
2
  import PropTypes from "prop-types";
4
3
 
5
4
  export const HawaItemCard = (props) => {
@@ -89,7 +89,7 @@ export const HawaLogoButton = (props) => {
89
89
  style={{ direction: isArabic ? "rtl" : "ltr" }}
90
90
  {...props}
91
91
  // variant="withLogo"
92
- className="bg-white rounded-xl my-2 h-11 flex flex-row justify-center align-middle"
92
+ className="bg-white rounded-xl my-2 h-11 flex max-w-sm w-full flex-row justify-center align-middle"
93
93
  >
94
94
  <div className="h-full w-1/2 flex flex-row justify-end items-center">
95
95
  {logoElement}
@@ -1,7 +1,5 @@
1
1
  import PhoneInput from "react-phone-input-2";
2
2
  import "react-phone-input-2/lib/material.css";
3
- import { useTheme } from "@mui/system";
4
- import { InputLabel } from "@mui/material";
5
3
 
6
4
  export default function HawaPhoneInput(props) {
7
5
  const {
@@ -19,7 +17,6 @@ export default function HawaPhoneInput(props) {
19
17
  ...rest
20
18
  } = props;
21
19
 
22
- const theme = useTheme();
23
20
  return (
24
21
  <div>
25
22
  <label
@@ -33,7 +30,7 @@ export default function HawaPhoneInput(props) {
33
30
  className="mb-2 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"
34
31
  />
35
32
 
36
- {label && <InputLabel>{props.label}</InputLabel>}
33
+ {/* {label && <InputLabel>{props.label}</InputLabel>} */}
37
34
  <PhoneInput
38
35
  country={country ?? null}
39
36
  onChange={(e) => onChange(e)}
@@ -49,8 +46,7 @@ export default function HawaPhoneInput(props) {
49
46
  specialLabel={""}
50
47
  placeholder={placeholder ?? ""}
51
48
  inputStyle={{
52
- width: "100%",
53
- borderRadius: theme.allBorderRadius
49
+ width: "100%"
54
50
  }}
55
51
  // inputClass="bg-red-900"
56
52
  // inputClass="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"
@@ -1,44 +1,88 @@
1
- import { useTheme } from "@mui/material";
2
- import Typography from "@mui/material/Typography";
3
- import Menu from "@mui/material/Menu";
4
- import MenuItem from "@mui/material/MenuItem";
5
1
  import PropTypes from "prop-types";
6
-
2
+ import "flowbite";
7
3
  export const HawaPopMenu = (props) => {
8
- const theme = useTheme();
9
4
  return (
10
- <Menu
11
- sx={{ mt: "45px" }}
12
- id="menu-appbar"
13
- anchorEl={props.anchor}
14
- anchorOrigin={{
15
- vertical: "top",
16
- horizontal: "right"
17
- }}
18
- keepMounted
19
- transformOrigin={{
20
- vertical: "top",
21
- horizontal: "right"
22
- }}
23
- open={Boolean(props.anchor)}
24
- onClose={props.handleClose}
25
- variant="themed"
26
- PaperProps={{
27
- style: {
28
- boxShadow: "none",
29
- borderRadius: theme.allBorderRadius,
30
- border: `1px solid ${theme.primaryActionColor}`
31
- }
32
- }}
33
- >
34
- {props.menuItems.map((item) => (
35
- <MenuItem key={item.label} onClick={item.action}>
36
- {item.icon && <item.icon />}
37
- {item.icon && <div style={{ width: 10 }} />}
38
- <Typography textAlign="center">{item.label}</Typography>
39
- </MenuItem>
40
- ))}
41
- </Menu>
5
+ <div>
6
+ {/* <button
7
+ id="dropdownDefault"
8
+ 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"
10
+ type="button"
11
+ >
12
+ Dropdown button{" "}
13
+ <svg
14
+ class="ml-2 w-4 h-4"
15
+ aria-hidden="true"
16
+ fill="none"
17
+ stroke="currentColor"
18
+ viewBox="0 0 24 24"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ >
21
+ <path
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ stroke-width="2"
25
+ d="M19 9l-7 7-7-7"
26
+ ></path>
27
+ </svg>
28
+ </button> */}
29
+ <div
30
+ id={props.popMenuID}
31
+ class="hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
32
+ data-popper-reference-hidden=""
33
+ data-popper-escaped=""
34
+ data-popper-placement="bottom"
35
+ // style="position: absolute; inset: 0px auto auto 0px; margin: 0px; transform: translate3d(0px, 484.5px, 0px);"
36
+ >
37
+ <ul
38
+ class="py-1 text-sm text-gray-700 dark:text-gray-200"
39
+ aria-labelledby="dropdownDefault"
40
+ >
41
+ {props.menuItems.map((item) => (
42
+ <li>
43
+ <a
44
+ href="#"
45
+ class="block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
46
+ >
47
+ {item.label}
48
+ </a>
49
+ </li>
50
+ // <MenuItem key={item.label} onClick={item.action}>
51
+ // {item.icon && <item.icon />}
52
+ // {item.icon && <div style={{ width: 10 }} />}
53
+ // <Typography textAlign="center">{item.label}</Typography>
54
+ // </MenuItem>
55
+ ))}
56
+ </ul>
57
+ </div>
58
+ </div>
59
+
60
+ // <Menu
61
+ // sx={{ mt: "45px" }}
62
+ // id="menu-appbar"
63
+ // anchorEl={props.anchor}
64
+ // anchorOrigin={{
65
+ // vertical: "top",
66
+ // horizontal: "right"
67
+ // }}
68
+ // keepMounted
69
+ // transformOrigin={{
70
+ // vertical: "top",
71
+ // horizontal: "right"
72
+ // }}
73
+ // open={Boolean(props.anchor)}
74
+ // onClose={props.handleClose}
75
+ // variant="themed"
76
+ // PaperProps={{
77
+ // style: {
78
+ // boxShadow: "none",
79
+ // borderRadius: theme.allBorderRadius,
80
+ // border: `1px solid ${theme.primaryActionColor}`
81
+ // }
82
+ // }}
83
+ // >
84
+
85
+ // </Menu>
42
86
  );
43
87
  };
44
88
 
@@ -1,9 +1,5 @@
1
1
  import React from "react";
2
- import Container from "@mui/material/Container";
3
- import Typography from "@mui/material/Typography";
4
- import CheckIcon from "@mui/icons-material/CheckCircleOutlined";
5
2
  import PropTypes from "prop-types";
6
- import Chip from "@mui/material/Chip";
7
3
 
8
4
  export const HawaPricingCard = (props) => {
9
5
  let isArabic = props.lang === "ar";
@@ -26,126 +22,112 @@ export const HawaPricingCard = (props) => {
26
22
  let featuresMapping = isArabic ? props.features_ar : props.features;
27
23
  let chipSpacing = isArabic ? { left: 10 } : { right: 10 };
28
24
  return (
29
- <Container
30
- maxWidth="xs"
31
- variant={props.selectedPlan ? "selected-plan-card" : "plan-card"}
32
- style={{ direction: isArabic ? "rtl" : "ltr" }}
33
- >
34
- <Container variant="plan-header">
35
- {props.discount && (
36
- <Chip
37
- label={props.discount}
38
- variant="standard"
39
- style={{
40
- maxWidth: "fit-content",
41
- position: "absolute",
42
- bottom: 10,
43
- ...chipSpacing
44
- }}
45
- color="success"
46
- />
47
- )}
48
- <Typography variant="h3" fontWeight={500}>
25
+ <div>
26
+ <div class="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">
27
+ <h5 class="mb-4 text-xl font-medium text-gray-500 dark:text-gray-400">
49
28
  {isArabic ? props.title_ar : props.title}
50
- </Typography>
51
- <Typography variant="caption">
52
- {isArabic ? props.subtitle_ar : props.subtitle}
53
- </Typography>
54
- <br />
55
- <Typography
56
- variant="h4"
57
- fontWeight={500}
58
- style={{ display: "flex", alignItems: "center" }}
59
- >
60
- {props.lang === "ar" ? (
61
- <div
62
- style={{
63
- width: "100%",
64
- display: "flex",
65
- flexDirection: "column",
66
- justifyContent: "center"
67
- }}
68
- >
69
- <div style={{ display: "flex", flexDirection: "row" }}>
70
- {props.price}
71
- <div style={{ width: 5 }} />
72
- {/* <Typography>{props.currency?.toUpperCase()}</Typography> */}
73
- <Typography>
74
- {currencyMapping[props.currency?.toLowerCase()]}
75
- </Typography>
76
- </div>
77
- <Typography style={{ fontSize: 14, margin: 5 }}>
78
- {isArabic
79
- ? cycleTextsArabic[props.cycleText]
80
- : cycleTextsEnglish[props.cycleText]}
81
- </Typography>
82
- </div>
83
- ) : (
84
- <div
85
- style={{
86
- width: "100%",
87
- display: "flex",
88
- flexDirection: "column",
89
- justifyContent: "center"
90
- }}
91
- >
92
- <div style={{ display: "flex", flexDirection: "row" }}>
93
- <Typography>
94
- {currencyMapping[props.currency?.toLowerCase()]}
95
- </Typography>
96
- {/* <Typography>{props.currency?.toUpperCase()}</Typography> */}
97
- <div style={{ width: 5 }} />
98
- {props.price}
99
- </div>
100
- <Typography style={{ fontSize: 14, margin: 5 }}>
101
- {props.lang === "ar"
102
- ? cycleTextsArabic[props.cycleText]
103
- : cycleTextsEnglish[props.cycleText]}
104
- </Typography>
105
- </div>
106
- )}
107
- </Typography>
108
- </Container>
29
+ </h5>
30
+ <div class="flex items-baseline text-gray-900 dark:text-white">
31
+ <span class="text-3xl font-semibold">
32
+ {" "}
33
+ {currencyMapping[props.currency?.toLowerCase()]}
34
+ </span>
35
+ <span class="text-5xl font-extrabold tracking-tight">
36
+ {props.price}
37
+ </span>
38
+ <span class="ml-1 text-xl font-normal text-gray-500 dark:text-gray-400">
39
+ /{" "}
40
+ {isArabic
41
+ ? cycleTextsArabic[props.cycleText]
42
+ : cycleTextsEnglish[props.cycleText]}
43
+ </span>
44
+ </div>
45
+ <ul role="list" class="my-7 space-y-5">
46
+ {featuresMapping?.map((feature) => {
47
+ return (
48
+ <li class="flex space-x-3">
49
+ <svg
50
+ aria-hidden="true"
51
+ class="flex-shrink-0 w-5 h-5 text-blue-600 dark:text-blue-500"
52
+ fill="currentColor"
53
+ viewBox="0 0 20 20"
54
+ xmlns="http://www.w3.org/2000/svg"
55
+ >
56
+ <title>Check icon</title>
57
+ <path
58
+ fill-rule="evenodd"
59
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
60
+ clip-rule="evenodd"
61
+ ></path>
62
+ </svg>
63
+ <span class="text-base font-normal leading-tight text-gray-500 dark:text-gray-400">
64
+ {feature}
65
+ </span>
66
+ </li>
67
+ );
68
+ })}
109
69
 
110
- <div
111
- style={{ padding: 20, color: props.selectedPlan ? "white" : "black" }}
112
- >
113
- {featuresMapping?.map((feature) => {
114
- return (
115
- <div
116
- style={{
117
- display: "flex",
118
- flexDirection: "row",
119
- alignItems: "center",
120
- justifyContent: "flex-start",
121
- marginTop: 10,
122
- width: "100%"
123
- }}
70
+ {/* <li class="flex space-x-3 line-through decoration-gray-500">
71
+ <svg
72
+ aria-hidden="true"
73
+ class="flex-shrink-0 w-5 h-5 text-gray-400 dark:text-gray-500"
74
+ fill="currentColor"
75
+ viewBox="0 0 20 20"
76
+ xmlns="http://www.w3.org/2000/svg"
124
77
  >
125
- <div
126
- style={{
127
- display: "flex",
128
- flexDirection: "row",
129
- justifyContent: "flex-end",
130
- width: "10%"
131
- }}
132
- >
133
- <CheckIcon fontSize="small" />
134
- </div>
135
- <div style={{ width: 10 }} />
136
- <Typography variant="subtitle2">{feature}</Typography>
137
- </div>
138
- );
139
- })}
78
+ <title>Check icon</title>
79
+ <path
80
+ fill-rule="evenodd"
81
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
82
+ clip-rule="evenodd"
83
+ ></path>
84
+ </svg>
85
+ <span class="text-base font-normal leading-tight text-gray-500">
86
+ Sketch Files
87
+ </span>
88
+ </li> */}
89
+ </ul>
90
+ <button
91
+ type="button"
92
+ 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"
93
+ >
94
+ {props.buttonText}
95
+ </button>
140
96
  </div>
141
- <button
142
- onClick={props.selectPlan}
143
- variant={props.selectedPlan ? "outlined" : "contained"}
144
- style={{ margin: 20 }}
145
- >
146
- {props.buttonText}
147
- </button>
148
- </Container>
97
+ </div>
98
+
99
+ // <Container
100
+ // maxWidth="xs"
101
+ // variant={props.selectedPlan ? "selected-plan-card" : "plan-card"}
102
+ // style={{ direction: isArabic ? "rtl" : "ltr" }}
103
+ // >
104
+ // {props.discount && (
105
+ // <Chip
106
+ // label={props.discount}
107
+ // variant="standard"
108
+ // style={{
109
+ // maxWidth: "fit-content",
110
+ // position: "absolute",
111
+ // bottom: 10,
112
+ // ...chipSpacing
113
+ // }}
114
+ // color="success"
115
+ // />
116
+ // )}
117
+
118
+ // <div
119
+ // style={{ padding: 20, color: props.selectedPlan ? "white" : "black" }}
120
+ // >
121
+ //
122
+ // </div>
123
+ // <button
124
+ // onClick={props.selectPlan}
125
+ // variant={props.selectedPlan ? "outlined" : "contained"}
126
+ // style={{ margin: 20 }}
127
+ // >
128
+ // {props.buttonText}
129
+ // </button>
130
+ // </Container>
149
131
  );
150
132
  };
151
133
 
@@ -1,20 +1,36 @@
1
1
  import React from "react";
2
- import Slider from "@mui/material/Slider";
3
- import Stack from "@mui/material/Stack";
4
2
  import PropTypes from "prop-types";
5
3
 
6
4
  export const HawaRange = (props) => {
7
5
  return (
8
- <Stack spacing={2} direction="row" alignItems="center" style={props.style}>
9
- {props.startElement}
10
- <Slider
11
- size="small"
12
- aria-label="Volume"
13
- value={props.value}
14
- onChange={props.handleChange}
15
- />
16
- {props.endElement}
17
- </Stack>
6
+ // <Stack spacing={2} direction="row" alignItems="center" style={props.style}>
7
+ // {props.startElement}
8
+ // <Slider
9
+ // size="small"
10
+ // aria-label="Volume"
11
+ // value={props.value}
12
+ // onChange={props.handleChange}
13
+ // />
14
+ // {props.endElement}
15
+ // </Stack>
16
+ <div>
17
+ <label
18
+ for="default-range"
19
+ class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
20
+ >
21
+ Default range
22
+ </label>
23
+ <div className="flex flex-row justify-center items-center w-fit">
24
+ <div className="mr-2">{props.startElement}</div>{" "}
25
+ <input
26
+ id="default-range"
27
+ type="range"
28
+ value="50"
29
+ class="w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
30
+ />
31
+ <div className="ml-2">{props.endElement}</div>{" "}
32
+ </div>
33
+ </div>
18
34
  );
19
35
  };
20
36
  HawaRange.propTypes = {
@@ -1,16 +1,14 @@
1
- import { Search } from "@mui/icons-material";
2
- import { InputAdornment } from "@mui/material";
3
1
  import React from "react";
4
2
  import { HawaTextField } from "./HawaTextField";
5
3
 
6
4
  export const HawaSearchBar = (props) => {
7
5
  return (
8
6
  <HawaTextField
9
- endAdornment={
10
- <InputAdornment position="start">
11
- <Search />
12
- </InputAdornment>
13
- }
7
+ // endAdornment={
8
+ // <InputAdornment position="start">
9
+ // <Search />
10
+ // </InputAdornment>
11
+ // }
14
12
  {...props}
15
13
  />
16
14
  );