@sikka/hawa 0.0.20 → 0.0.23
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 +1 -1
- package/src/blocks/Payment/CheckoutForm.js +5 -4
- package/src/blocks/Payment/Confirmation.js +120 -0
- package/src/blocks/Payment/index.js +1 -0
- package/src/elements/HawaPopMenu.js +39 -0
- package/src/elements/index.js +0 -2
- package/src/{elements → layout}/HawaAppBar.js +11 -25
- package/src/layout/HawaAppLayout.js +44 -43
- package/src/layout/index.js +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.9157fa74.iframe.bundle.js +1 -0
- package/storybook-static/vendors~main.62e56b46.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.4ff76500.iframe.bundle.js.LICENSE.txt → vendors~main.62e56b46.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.62e56b46.iframe.bundle.js.map +1 -0
- package/src/elements/HawaListItem.js +0 -22
- package/storybook-static/main.13189777.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.4ff76500.iframe.bundle.js +0 -76
- package/storybook-static/vendors~main.4ff76500.iframe.bundle.js.map +0 -1
|
@@ -5,7 +5,6 @@ import MuiDrawer from "@mui/material/Drawer";
|
|
|
5
5
|
import MuiAppBar from "@mui/material/AppBar";
|
|
6
6
|
import Toolbar from "@mui/material/Toolbar";
|
|
7
7
|
import List from "@mui/material/List";
|
|
8
|
-
// import CssBaseline from "@mui/material/CssBaseline";
|
|
9
8
|
import Typography from "@mui/material/Typography";
|
|
10
9
|
import Divider from "@mui/material/Divider";
|
|
11
10
|
import IconButton from "@mui/material/IconButton";
|
|
@@ -13,15 +12,9 @@ import MenuIcon from "@mui/icons-material/Menu";
|
|
|
13
12
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
14
13
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
15
14
|
import ListItemButton from "@mui/material/ListItemButton";
|
|
16
|
-
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
17
15
|
import ListItemText from "@mui/material/ListItemText";
|
|
18
|
-
import InboxIcon from "@mui/icons-material/MoveToInbox";
|
|
19
|
-
import MailIcon from "@mui/icons-material/Mail";
|
|
20
|
-
import { HawaListItem } from "../elements";
|
|
21
16
|
import Menu from "@mui/material/Menu";
|
|
22
|
-
import Container from "@mui/material/Container";
|
|
23
17
|
import Avatar from "@mui/material/Avatar";
|
|
24
|
-
import Button from "@mui/material/Button";
|
|
25
18
|
import Tooltip from "@mui/material/Tooltip";
|
|
26
19
|
import MenuItem from "@mui/material/MenuItem";
|
|
27
20
|
|
|
@@ -152,7 +145,7 @@ export function HawaAppLayout(props) {
|
|
|
152
145
|
}}
|
|
153
146
|
>
|
|
154
147
|
<Typography variant="h6" noWrap component="div">
|
|
155
|
-
|
|
148
|
+
{props.pageTitle}
|
|
156
149
|
</Typography>
|
|
157
150
|
|
|
158
151
|
<Box>
|
|
@@ -176,10 +169,21 @@ export function HawaAppLayout(props) {
|
|
|
176
169
|
}}
|
|
177
170
|
open={Boolean(anchorElUser)}
|
|
178
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
|
+
}}
|
|
179
182
|
>
|
|
180
|
-
{
|
|
181
|
-
<MenuItem key={setting} onClick={
|
|
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>
|
|
183
187
|
</MenuItem>
|
|
184
188
|
))}
|
|
185
189
|
</Menu>
|
|
@@ -200,42 +204,39 @@ export function HawaAppLayout(props) {
|
|
|
200
204
|
</DrawerHeader>
|
|
201
205
|
<Divider />
|
|
202
206
|
<List>
|
|
203
|
-
{props.pages.map((
|
|
207
|
+
{props.pages.map((p, jk) => {
|
|
204
208
|
return (
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
<Tooltip
|
|
210
|
+
title={p.text}
|
|
211
|
+
key={jk}
|
|
212
|
+
placement={"right"}
|
|
213
|
+
arrow={true}
|
|
214
|
+
PopperProps={{ style: { opacity: open ? 0 : 1 } }}
|
|
215
|
+
>
|
|
216
|
+
<ListItemButton
|
|
217
|
+
variant={
|
|
218
|
+
props.pageName?.toLowerCase() === p.slug?.toLowerCase() &&
|
|
219
|
+
"clicked"
|
|
220
|
+
}
|
|
221
|
+
onClick={p.action}
|
|
222
|
+
key={p.text}
|
|
223
|
+
sx={{
|
|
224
|
+
minHeight: 48,
|
|
225
|
+
justifyContent: open ? "initial" : "center",
|
|
226
|
+
px: 2.5
|
|
227
|
+
}}
|
|
228
|
+
>
|
|
229
|
+
<p.icon />
|
|
230
|
+
<div style={{ width: 20 }} />
|
|
231
|
+
<ListItemText
|
|
232
|
+
primary={p.text}
|
|
233
|
+
sx={{ opacity: open ? 1 : 0 }}
|
|
234
|
+
/>
|
|
235
|
+
</ListItemButton>
|
|
236
|
+
</Tooltip>
|
|
212
237
|
);
|
|
213
238
|
})}
|
|
214
239
|
</List>
|
|
215
|
-
<Divider />
|
|
216
|
-
<List>
|
|
217
|
-
{["All mail", "Trash", "Spam"].map((text, index) => (
|
|
218
|
-
<ListItemButton
|
|
219
|
-
key={text}
|
|
220
|
-
sx={{
|
|
221
|
-
minHeight: 48,
|
|
222
|
-
justifyContent: open ? "initial" : "center",
|
|
223
|
-
px: 2.5
|
|
224
|
-
}}
|
|
225
|
-
>
|
|
226
|
-
<ListItemIcon
|
|
227
|
-
sx={{
|
|
228
|
-
minWidth: 0,
|
|
229
|
-
mr: open ? 3 : "auto",
|
|
230
|
-
justifyContent: "center"
|
|
231
|
-
}}
|
|
232
|
-
>
|
|
233
|
-
{index % 2 === 0 ? <InboxIcon /> : <MailIcon />}
|
|
234
|
-
</ListItemIcon>
|
|
235
|
-
<ListItemText primary={text} sx={{ opacity: open ? 1 : 0 }} />
|
|
236
|
-
</ListItemButton>
|
|
237
|
-
))}
|
|
238
|
-
</List>
|
|
239
240
|
</Drawer>
|
|
240
241
|
<Box sx={{ flexGrow: 1, p: 3 }}>
|
|
241
242
|
<DrawerHeader />
|
package/src/layout/index.js
CHANGED
|
@@ -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.62e56b46.iframe.bundle.js"></script><script src="main.9157fa74.iframe.bundle.js"></script></body></html>
|