@sikka/hawa 0.0.28 → 0.0.31

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 (34) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +5 -4
  4. package/src/blocks/Account/UserProfileForm.js +5 -0
  5. package/src/blocks/AuthForms/NewPasswordForm.js +18 -1
  6. package/src/blocks/AuthForms/ResetPasswordForm.js +10 -1
  7. package/src/blocks/AuthForms/SignInForm.js +19 -1
  8. package/src/blocks/AuthForms/SignUpForm.js +44 -1
  9. package/src/blocks/Payment/ChargeWalletForm.js +4 -1
  10. package/src/blocks/Payment/CheckoutForm.js +17 -1
  11. package/src/blocks/Payment/Confirmation.js +24 -1
  12. package/src/blocks/Payment/{PaymentMethod.js → Form/PaymentMethod.js} +0 -10
  13. package/src/blocks/Pricing/PricingPlans.js +15 -1
  14. package/src/elements/HawaAccordian.js +28 -0
  15. package/src/elements/HawaAlert.js +10 -1
  16. package/src/elements/HawaColorPicker.js +62 -0
  17. package/src/elements/HawaLogoButton.js +18 -1
  18. package/src/elements/HawaPopMenu.js +7 -1
  19. package/src/elements/HawaRadio.js +7 -1
  20. package/src/elements/HawaRange.js +26 -0
  21. package/src/elements/HawaSearchBar.js +17 -0
  22. package/src/elements/HawaSettingsRow.js +15 -5
  23. package/src/elements/{OfflineBanner.js → HawaSnackbar.js} +3 -8
  24. package/src/elements/HawaTable.js +65 -20
  25. package/src/elements/index.js +5 -1
  26. package/src/layout/HawaAppLayout.js +15 -59
  27. package/storybook-static/iframe.html +1 -1
  28. package/storybook-static/main.4bd34158.iframe.bundle.js +1 -0
  29. package/storybook-static/vendors~main.6c796c97.iframe.bundle.js +76 -0
  30. package/storybook-static/{vendors~main.b026595c.iframe.bundle.js.LICENSE.txt → vendors~main.6c796c97.iframe.bundle.js.LICENSE.txt} +0 -0
  31. package/storybook-static/vendors~main.6c796c97.iframe.bundle.js.map +1 -0
  32. package/storybook-static/main.9dd59e4f.iframe.bundle.js +0 -1
  33. package/storybook-static/vendors~main.b026595c.iframe.bundle.js +0 -76
  34. package/storybook-static/vendors~main.b026595c.iframe.bundle.js.map +0 -1
@@ -13,10 +13,11 @@ import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
13
13
  import ChevronRightIcon from "@mui/icons-material/ChevronRight";
14
14
  import ListItemButton from "@mui/material/ListItemButton";
15
15
  import ListItemText from "@mui/material/ListItemText";
16
- import Menu from "@mui/material/Menu";
17
16
  import Avatar from "@mui/material/Avatar";
18
17
  import Tooltip from "@mui/material/Tooltip";
19
- import MenuItem from "@mui/material/MenuItem";
18
+ import { HawaPopMenu } from "../elements/HawaPopMenu";
19
+ // use this to detect size and change things accordingly
20
+ // import useMediaQuery from '@mui/material/useMediaQuery';
20
21
 
21
22
  const drawerWidth = 240;
22
23
 
@@ -92,32 +93,15 @@ export function HawaAppLayout(props) {
92
93
  const [anchorElNav, setAnchorElNav] = React.useState(null);
93
94
  const [anchorElUser, setAnchorElUser] = React.useState(null);
94
95
 
95
- const handleOpenNavMenu = (event) => {
96
- setAnchorElNav(event.currentTarget);
97
- };
98
- const handleOpenUserMenu = (event) => {
99
- setAnchorElUser(event.currentTarget);
100
- };
101
-
102
- const handleCloseNavMenu = () => {
103
- setAnchorElNav(null);
104
- };
105
-
106
- const handleCloseUserMenu = () => {
107
- setAnchorElUser(null);
108
- };
109
-
110
- const handleDrawerOpen = () => {
111
- setOpen(true);
112
- };
113
-
114
- const handleDrawerClose = () => {
115
- setOpen(false);
116
- };
96
+ const handleOpenNavMenu = (event) => setAnchorElNav(event.currentTarget);
97
+ const handleOpenUserMenu = (event) => setAnchorElUser(event.currentTarget);
98
+ const handleCloseNavMenu = () => setAnchorElNav(null);
99
+ const handleCloseUserMenu = () => setAnchorElUser(null);
100
+ const handleDrawerOpen = () => setOpen(true);
101
+ const handleDrawerClose = () => setOpen(false);
117
102
 
118
103
  return (
119
104
  <Box sx={{ display: "flex" }}>
120
- {/* <CssBaseline /> */}
121
105
  <AppBar variant="appbar" position="fixed" open={open}>
122
106
  <Toolbar variant="appbar">
123
107
  <IconButton
@@ -151,42 +135,14 @@ export function HawaAppLayout(props) {
151
135
  <Box>
152
136
  <Tooltip title="Open settings">
153
137
  <IconButton onClick={handleOpenUserMenu} sx={{ p: 0 }}>
154
- <Avatar alt="Remy Sharp" src="/static/images/avatar/2.jpg" />
138
+ <Avatar />
155
139
  </IconButton>
156
140
  </Tooltip>
157
- <Menu
158
- sx={{ mt: "45px" }}
159
- id="menu-appbar"
160
- anchorEl={anchorElUser}
161
- anchorOrigin={{
162
- vertical: "top",
163
- horizontal: "right"
164
- }}
165
- keepMounted
166
- transformOrigin={{
167
- vertical: "top",
168
- horizontal: "right"
169
- }}
170
- open={Boolean(anchorElUser)}
171
- onClose={handleCloseUserMenu}
172
- variant="themed"
173
- PaperProps={{
174
- style: {
175
- boxShadow: "none",
176
- borderRadius: theme.allBorderRadius,
177
- // borderColor: theme.primaryActionColor,
178
- // borderWidth: 2,
179
- border: `1px solid ${theme.primaryActionColor}`
180
- }
181
- }}
182
- >
183
- {props.accountMenu.map((setting) => (
184
- <MenuItem key={setting.label} onClick={setting.action}>
185
- {setting.icon && <setting.icon />}
186
- <Typography textAlign="center">{setting.label}</Typography>
187
- </MenuItem>
188
- ))}
189
- </Menu>
141
+ <HawaPopMenu
142
+ menuItems={props.accountMenu}
143
+ anchor={anchorElUser}
144
+ handleClose={handleCloseUserMenu}
145
+ />
190
146
  </Box>
191
147
  </div>
192
148
  </Toolbar>
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.708d7ac1.iframe.bundle.js"></script><script src="vendors~main.b026595c.iframe.bundle.js"></script><script src="main.9dd59e4f.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.708d7ac1.iframe.bundle.js"></script><script src="vendors~main.6c796c97.iframe.bundle.js"></script><script src="main.4bd34158.iframe.bundle.js"></script></body></html>