@sikka/hawa 0.0.58 → 0.0.60

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 (51) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -2
  4. package/src/blocks/Account/UserProfileForm.js +9 -5
  5. package/src/blocks/Account/UserSettingsForm.js +10 -5
  6. package/src/blocks/AuthForms/CodeConfirmation.js +5 -5
  7. package/src/blocks/AuthForms/NewPasswordForm.js +9 -5
  8. package/src/blocks/AuthForms/ResetPasswordForm.js +9 -5
  9. package/src/blocks/AuthForms/SignInForm.js +5 -10
  10. package/src/blocks/AuthForms/SignInPhone.js +4 -5
  11. package/src/blocks/AuthForms/SignUpForm.js +4 -10
  12. package/src/blocks/Misc/NotFound.js +1 -1
  13. package/src/blocks/Payment/ChargeWalletForm.js +9 -5
  14. package/src/blocks/Payment/CheckoutForm.js +6 -8
  15. package/src/blocks/Payment/Confirmation.js +19 -12
  16. package/src/blocks/Payment/CreditCardForm.js +6 -7
  17. package/src/blocks/Payment/Form/CForm.js +2 -12
  18. package/src/blocks/Payment/PayWithWallet.js +9 -5
  19. package/src/blocks/Payment/SelectPayment.js +4 -2
  20. package/src/blocks/Pricing/ComparingPlans.js +151 -0
  21. package/src/blocks/Pricing/PricingPlans.js +21 -12
  22. package/src/blocks/Pricing/index.js +1 -0
  23. package/src/elements/DragDropImages.js +2 -3
  24. package/src/elements/HawaButton.js +13 -6
  25. package/src/elements/HawaCheckbox.js +7 -10
  26. package/src/elements/HawaItemCard.js +38 -155
  27. package/src/elements/HawaModal.js +73 -0
  28. package/src/elements/HawaPanelTabs.js +17 -69
  29. package/src/elements/HawaPricingCard.js +51 -53
  30. package/src/elements/HawaRadio.js +32 -0
  31. package/src/elements/HawaRange.js +8 -16
  32. package/src/elements/HawaSettingsRow.js +2 -4
  33. package/src/elements/HawaTable.js +2 -6
  34. package/src/elements/HawaTabs.js +32 -0
  35. package/src/elements/HawaTooltip.js +2 -41
  36. package/src/elements/index.js +2 -2
  37. package/src/layout/HawaContainer.js +12 -0
  38. package/src/layout/index.js +1 -2
  39. package/storybook-static/iframe.html +1 -1
  40. package/storybook-static/main.dd9f34e9.iframe.bundle.js +1 -0
  41. package/storybook-static/project.json +1 -1
  42. package/storybook-static/vendors~main.7059fde5.iframe.bundle.js +76 -0
  43. package/storybook-static/{vendors~main.8be71844.iframe.bundle.js.LICENSE.txt → vendors~main.7059fde5.iframe.bundle.js.LICENSE.txt} +0 -0
  44. package/storybook-static/vendors~main.7059fde5.iframe.bundle.js.map +1 -0
  45. package/src/elements/ActionButton.js +0 -14
  46. package/src/elements/RadioBox.js +0 -29
  47. package/src/elements/ResponsiveButton.js +0 -34
  48. package/src/layout/HawaDrawer.js +0 -109
  49. package/storybook-static/main.89a5002b.iframe.bundle.js +0 -1
  50. package/storybook-static/vendors~main.8be71844.iframe.bundle.js +0 -76
  51. package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendors~main.7059fde5.iframe.bundle.js","sources":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A","sourceRoot":""}
@@ -1,14 +0,0 @@
1
-
2
- export const ActionButton = (props) => {
3
- // <Button {...props}>{props.text}</Button>;
4
- return (
5
- <button
6
- type="button"
7
- 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 inline-flex items-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
8
- >
9
- {props.icon ? <div class="mr-2 -ml-1 w-5 h-5">{props.icon}</div> : null}
10
-
11
- {props.children}
12
- </button>
13
- );
14
- };
@@ -1,29 +0,0 @@
1
- // import React from "react";
2
- // import { Controller, useFormContext } from "react-hook-form";
3
- // import FormControlLabel from "@mui/material/FormControlLabel";
4
- // import Checkbox from "@mui/material/Checkbox";
5
-
6
- // export const StyledRadioBox = (props) => {
7
- // const { control } = useFormContext();
8
- // const { name, defaultValue, rules, shouldUnregister } = props;
9
-
10
- // return (
11
- // <React.Fragment>
12
- // <Controller
13
- // render={({ field }) => (
14
- // <FormControlLabel
15
- // control={<Checkbox />}
16
- // {...props}
17
- // {...field}
18
- // checked={field.value}
19
- // />
20
- // )}
21
- // name={name}
22
- // rules={rules}
23
- // control={control}
24
- // defaultValue={defaultValue}
25
- // shouldUnregister={shouldUnregister}
26
- // />
27
- // </React.Fragment>
28
- // );
29
- // };
@@ -1,34 +0,0 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
3
-
4
- export const ResponsiveButton = (props) => {
5
- if (props.showText) {
6
- return (
7
- <button variant="adaptive-dark" onClick={props.onClick}>
8
- {props.icon}
9
- <div style={{ width: 10 }} />
10
- {props.buttonText}
11
- </button>
12
- );
13
- } else {
14
- //icon only
15
- return (
16
- <>
17
- <button
18
- data-tooltip-target="btn1"
19
- variant="adaptive-dark"
20
- onClick={props.onClick}
21
- >
22
- {props.icon}
23
- </button>
24
- <HawaTooltip tooltipID="btn1" content={props.buttonText} />
25
- </>
26
- );
27
- }
28
- };
29
-
30
- ResponsiveButton.propTypes = {
31
- buttonText: PropTypes.string,
32
- onClick: PropTypes.func,
33
- showText: PropTypes.bool
34
- };
@@ -1,109 +0,0 @@
1
- import * as React from "react";
2
- import PropTypes from "prop-types";
3
- import AppBar from "@mui/material/AppBar";
4
- import Box from "@mui/material/Box";
5
- import CssBaseline from "@mui/material/CssBaseline";
6
- import Divider from "@mui/material/Divider";
7
- import Drawer from "@mui/material/Drawer";
8
- import List from "@mui/material/List";
9
- import ListItem from "@mui/material/ListItem";
10
- import ListItemButton from "@mui/material/ListItemButton";
11
- import ListItemIcon from "@mui/material/ListItemIcon";
12
- import ListItemText from "@mui/material/ListItemText";
13
- import Toolbar from "@mui/material/Toolbar";
14
- import SplitscreenIcon from "@mui/icons-material/Splitscreen";
15
- import StyleIcon from "@mui/icons-material/Style";
16
- import SettingsIcon from "@mui/icons-material/Settings";
17
-
18
- export function HawaDrawer(props) {
19
- const { window, children } = props;
20
- const [mobileOpen, setMobileOpen] = React.useState(false);
21
- const [drawerMaxWidth, setDrawerMaxWidth] = React.useState(
22
- props.drawerMaxWidth ?? 240
23
- );
24
-
25
- const handleDrawerToggle = () => {
26
- props.handleDrawerToggle();
27
- setMobileOpen(!mobileOpen);
28
- };
29
-
30
- const drawer = (
31
- <div>
32
- <Toolbar />
33
- <Divider />
34
- <List>
35
- {props.drawerContent.map(({ label, icon, action }, index) => (
36
- <ListItem key={label} disablePadding onClick={props.action}>
37
- <ListItemButton>
38
- <ListItemIcon>{icon}</ListItemIcon>
39
- <ListItemText primary={label} />
40
- </ListItemButton>
41
- </ListItem>
42
- ))}
43
- </List>
44
- </div>
45
- );
46
-
47
- const container =
48
- window !== undefined ? () => window().document.body : undefined;
49
-
50
- return (
51
- <Box sx={{ display: "flex" }}>
52
- <CssBaseline />
53
- <Box
54
- component="nav"
55
- sx={{ width: { sm: drawerMaxWidth }, flexShrink: { sm: 0 } }}
56
- aria-label="mailbox folders"
57
- >
58
- {/* The implementation can be swapped with js to avoid SEO duplication of links. */}
59
- <Drawer
60
- container={container}
61
- variant="temporary"
62
- open={mobileOpen}
63
- onClose={handleDrawerToggle}
64
- ModalProps={{
65
- keepMounted: true // Better open performance on mobile.
66
- }}
67
- sx={{
68
- display: { xs: "block", sm: "none" },
69
- "& .MuiDrawer-paper": {
70
- boxSizing: "border-box",
71
- width: drawerMaxWidth
72
- }
73
- }}
74
- >
75
- {drawer}
76
- </Drawer>
77
- <Drawer
78
- variant="permanent"
79
- sx={{
80
- display: { xs: "none", sm: "block" },
81
- "& .MuiDrawer-paper": {
82
- boxSizing: "border-box",
83
- width: drawerMaxWidth
84
- }
85
- }}
86
- open
87
- >
88
- {drawer}
89
- </Drawer>
90
- </Box>
91
-
92
- <Box
93
- component="main"
94
- sx={{
95
- flexGrow: 1,
96
- p: 3,
97
- width: { sm: `calc(100% - ${drawerMaxWidth}px)` }
98
- }}
99
- // style={{
100
- // backgroundColor: "red",
101
- // height: "100%"
102
- // }}
103
- >
104
- {/* <Toolbar /> */}
105
- {children}
106
- </Box>
107
- </Box>
108
- );
109
- }