@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.
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +5 -4
- package/src/blocks/Account/UserProfileForm.js +5 -0
- package/src/blocks/AuthForms/NewPasswordForm.js +18 -1
- package/src/blocks/AuthForms/ResetPasswordForm.js +10 -1
- package/src/blocks/AuthForms/SignInForm.js +19 -1
- package/src/blocks/AuthForms/SignUpForm.js +44 -1
- package/src/blocks/Payment/ChargeWalletForm.js +4 -1
- package/src/blocks/Payment/CheckoutForm.js +17 -1
- package/src/blocks/Payment/Confirmation.js +24 -1
- package/src/blocks/Payment/{PaymentMethod.js → Form/PaymentMethod.js} +0 -10
- package/src/blocks/Pricing/PricingPlans.js +15 -1
- package/src/elements/HawaAccordian.js +28 -0
- package/src/elements/HawaAlert.js +10 -1
- package/src/elements/HawaColorPicker.js +62 -0
- package/src/elements/HawaLogoButton.js +18 -1
- package/src/elements/HawaPopMenu.js +7 -1
- package/src/elements/HawaRadio.js +7 -1
- package/src/elements/HawaRange.js +26 -0
- package/src/elements/HawaSearchBar.js +17 -0
- package/src/elements/HawaSettingsRow.js +15 -5
- package/src/elements/{OfflineBanner.js → HawaSnackbar.js} +3 -8
- package/src/elements/HawaTable.js +65 -20
- package/src/elements/index.js +5 -1
- package/src/layout/HawaAppLayout.js +15 -59
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.4bd34158.iframe.bundle.js +1 -0
- package/storybook-static/vendors~main.6c796c97.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.b026595c.iframe.bundle.js.LICENSE.txt → vendors~main.6c796c97.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.6c796c97.iframe.bundle.js.map +1 -0
- package/storybook-static/main.9dd59e4f.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.b026595c.iframe.bundle.js +0 -76
- 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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
|
|
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
|
|
138
|
+
<Avatar />
|
|
155
139
|
</IconButton>
|
|
156
140
|
</Tooltip>
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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.
|
|
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>
|