@sikka/hawa 0.0.95 → 0.0.97
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/dist/styles.css +279 -211
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +19 -6
- package/rollup.config.js +14 -2
- package/src/blocks/Account/{UserProfileForm.js → UserProfileForm.tsx} +42 -41
- package/src/blocks/Account/UserSettingsForm.tsx +28 -0
- package/src/blocks/Account/index.ts +2 -0
- package/src/blocks/AuthForms/AppLanding.tsx +33 -0
- package/src/blocks/AuthForms/CodeConfirmation.tsx +59 -0
- package/src/blocks/AuthForms/{NewPasswordForm.js → NewPasswordForm.tsx} +49 -53
- package/src/blocks/AuthForms/{ResetPasswordForm.js → ResetPasswordForm.tsx} +35 -38
- package/src/blocks/AuthForms/{SignInForm.js → SignInForm.tsx} +73 -65
- package/src/blocks/AuthForms/SignInPhone.tsx +68 -0
- package/src/blocks/AuthForms/{SignUpForm.js → SignUpForm.tsx} +88 -82
- package/src/blocks/AuthForms/index.ts +7 -0
- package/src/blocks/Misc/NotFound.tsx +28 -0
- package/src/blocks/Misc/index.ts +1 -0
- package/src/blocks/Payment/ChargeWalletForm.tsx +70 -0
- package/src/blocks/Payment/{CheckoutForm.js → CheckoutForm.tsx} +82 -81
- package/src/blocks/Payment/Confirmation.tsx +96 -0
- package/src/blocks/Payment/{CreditCardForm.js → CreditCardForm.tsx} +48 -33
- package/src/blocks/Payment/PayWithWallet.tsx +29 -0
- package/src/blocks/Payment/{SelectPayment.js → SelectPayment.tsx} +33 -29
- package/src/blocks/Payment/{index.js → index.ts} +0 -0
- package/src/blocks/Pricing/{ComparingPlans.js → ComparingPlans.tsx} +51 -53
- package/src/blocks/Pricing/PricingPlans.tsx +72 -0
- package/src/blocks/Pricing/{index.js → index.ts} +0 -0
- package/src/blocks/{index.js → index.ts} +0 -0
- package/{countries.js → src/countries.ts} +245 -245
- package/src/elements/{AutoCompleteField.js → AutoCompleteField.tsx} +16 -9
- package/src/elements/{DragDropImages.js → DragDropImages.tsx} +78 -53
- package/src/elements/DraggableCard.tsx +29 -0
- package/src/elements/{HawaAccordian.js → HawaAccordian.tsx} +27 -23
- package/src/elements/HawaAdCard.tsx +48 -0
- package/src/elements/HawaAlert.tsx +30 -0
- package/src/elements/HawaButton.tsx +120 -0
- package/src/elements/HawaCheckbox.tsx +37 -0
- package/src/elements/HawaChip.tsx +12 -0
- package/src/elements/HawaColorPicker.tsx +38 -0
- package/src/elements/{HawaCopyrights.js → HawaCopyrights.tsx} +15 -8
- package/src/elements/HawaDrawer.tsx +84 -0
- package/src/elements/{HawaDrawerItem.js → HawaDrawerItem.tsx} +12 -7
- package/src/elements/{HawaItemCard.js → HawaItemCard.tsx} +35 -36
- package/src/elements/{HawaLogoButton.js → HawaLogoButton.tsx} +52 -56
- package/src/elements/HawaMenu.tsx +75 -0
- package/src/elements/{HawaModal.js → HawaModal.tsx} +30 -21
- package/src/elements/{HawaPanelTabs.js → HawaPanelTabs.tsx} +27 -27
- package/src/elements/HawaPhoneInput.tsx +112 -0
- package/src/elements/{HawaPricingCard.js → HawaPricingCard.tsx} +86 -47
- package/src/elements/HawaRadio.tsx +34 -0
- package/src/elements/HawaRange.tsx +47 -0
- package/src/elements/HawaSearchBar.tsx +9 -0
- package/src/elements/{HawaSelect.js → HawaSelect.tsx} +74 -31
- package/src/elements/HawaSettingsRow.tsx +56 -0
- package/src/elements/HawaSnackbar.tsx +73 -0
- package/src/elements/HawaSwitch.tsx +25 -0
- package/src/elements/{HawaTable.js → HawaTable.tsx} +33 -31
- package/src/elements/{HawaTabs.js → HawaTabs.tsx} +17 -12
- package/src/elements/HawaTextField.tsx +71 -0
- package/src/elements/HawaTooltip.tsx +35 -0
- package/src/elements/HawaTypography.tsx +11 -0
- package/src/elements/{TabPanel.js → TabPanel.tsx} +10 -5
- package/src/elements/{index.js → index.ts} +7 -4
- package/src/index.ts +3 -0
- package/src/layout/Box.tsx +5 -0
- package/src/layout/HawaBottomAppBar.tsx +54 -0
- package/src/layout/HawaContainer.tsx +24 -0
- package/src/layout/{HawaLayout.js → HawaLayout.tsx} +54 -49
- package/src/layout/{index.js → index.ts} +0 -0
- package/src/styles.css +279 -211
- package/src/{util.js → util.ts} +0 -0
- package/storybook-static/229.a3257e00.iframe.bundle.js +1 -0
- package/storybook-static/229.d6fb4f8f665962cef844.manager.bundle.js +1 -0
- package/storybook-static/295.67c251ec00675ab59b60.manager.bundle.js +1 -0
- package/storybook-static/51.786e9bbba427ee454dc0.manager.bundle.js +2 -0
- package/storybook-static/{0.1104ca18.iframe.bundle.js.LICENSE.txt → 51.786e9bbba427ee454dc0.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/51.acbbdb95.iframe.bundle.js +2 -0
- package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js.LICENSE.txt → 51.acbbdb95.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/551.67cd309b0648b0a52636.manager.bundle.js +1 -0
- package/storybook-static/551.c82ea8f1.iframe.bundle.js +1 -0
- package/storybook-static/701.bcf1e718.iframe.bundle.js +1 -0
- package/storybook-static/733.8d2de9f8.iframe.bundle.js +2 -0
- package/storybook-static/{vendors~main.a40572d0.iframe.bundle.js.LICENSE.txt → 733.8d2de9f8.iframe.bundle.js.LICENSE.txt} +0 -10
- package/storybook-static/767.2f9c96fa3338c8d16078.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.d13ba71108048897ea4a.manager.bundle.js.LICENSE.txt → 767.2f9c96fa3338c8d16078.manager.bundle.js.LICENSE.txt} +0 -10
- package/storybook-static/807.14b8bfa7.iframe.bundle.js +2 -0
- package/storybook-static/{5.5b799f3fbf64cec8e51a.manager.bundle.js.LICENSE.txt → 807.14b8bfa7.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/807.4f52b2d047c5e8c5872f.manager.bundle.js +2 -0
- package/storybook-static/{6.6023eba1.iframe.bundle.js.LICENSE.txt → 807.4f52b2d047c5e8c5872f.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/897.386c170cbd1467abc7ca.manager.bundle.js +2 -0
- package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js.LICENSE.txt → 897.386c170cbd1467abc7ca.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/897.d9a35fd0.iframe.bundle.js +2 -0
- package/storybook-static/{9.63a5cf7a.iframe.bundle.js.LICENSE.txt → 897.d9a35fd0.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/935.07c1b6ea.iframe.bundle.js +1 -0
- package/storybook-static/935.0b4e9c201c33f3e66e81.manager.bundle.js +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.051275cac7b0dc69501c.manager.bundle.js +1 -0
- package/storybook-static/main.71507dcb.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.25eae181fe0f96887a15.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.4d0bf318.iframe.bundle.js +1 -0
- package/tailwind.config.js +16 -1
- package/tsconfig.json +25 -0
- package/src/blocks/Account/UserSettingsForm.js +0 -17
- package/src/blocks/Account/index.js +0 -2
- package/src/blocks/AuthForms/AppLanding.js +0 -40
- package/src/blocks/AuthForms/CodeConfirmation.js +0 -78
- package/src/blocks/AuthForms/SignInPhone.js +0 -38
- package/src/blocks/AuthForms/index.js +0 -7
- package/src/blocks/Misc/NotFound.js +0 -32
- package/src/blocks/Misc/index.js +0 -1
- package/src/blocks/Payment/ChargeWalletForm.js +0 -81
- package/src/blocks/Payment/Confirmation.js +0 -104
- package/src/blocks/Payment/Form/CForm.js +0 -316
- package/src/blocks/Payment/Form/Card.js +0 -242
- package/src/blocks/Payment/Form/PaymentMethod.js +0 -118
- package/src/blocks/Payment/Gateway/GooglePay.js +0 -251
- package/src/blocks/Payment/Gateway/Payfort.js +0 -90
- package/src/blocks/Payment/Gateway/Paypal.js +0 -138
- package/src/blocks/Payment/Gateway/Wallet.js +0 -148
- package/src/blocks/Payment/PayWithWallet.js +0 -20
- package/src/blocks/Pricing/PricingPlans.js +0 -88
- package/src/elements/DraggableCard.js +0 -24
- package/src/elements/HawaAlert.js +0 -41
- package/src/elements/HawaButton.js +0 -62
- package/src/elements/HawaCheckbox.js +0 -28
- package/src/elements/HawaChip.js +0 -9
- package/src/elements/HawaColorPicker.js +0 -57
- package/src/elements/HawaDrawer.js +0 -68
- package/src/elements/HawaMenu.js +0 -71
- package/src/elements/HawaPhoneInput.js +0 -106
- package/src/elements/HawaRadio.js +0 -31
- package/src/elements/HawaRange.js +0 -54
- package/src/elements/HawaSearchBar.js +0 -15
- package/src/elements/HawaSettingsRow.js +0 -34
- package/src/elements/HawaSnackbar.js +0 -44
- package/src/elements/HawaSwitch.js +0 -21
- package/src/elements/HawaTextField.js +0 -34
- package/src/elements/HawaTooltip.js +0 -19
- package/src/elements/HawaTypography.js +0 -5
- package/src/elements/PinInput.js +0 -141
- package/src/elements/SelectedField.js +0 -46
- package/src/index.js +0 -3
- package/src/layout/Box.js +0 -5
- package/src/layout/HawaAppLayout.js +0 -245
- package/src/layout/HawaAppLayout2.js +0 -254
- package/src/layout/HawaBottomAppBar.js +0 -76
- package/src/layout/HawaContainer.js +0 -8
- package/storybook-static/0.1104ca18.iframe.bundle.js +0 -3
- package/storybook-static/0.1104ca18.iframe.bundle.js.map +0 -1
- package/storybook-static/0.cf71f8aa82edef0a7186.manager.bundle.js +0 -2
- package/storybook-static/1.7e6ec5c45ae5b70c5149.manager.bundle.js +0 -1
- package/storybook-static/1.e3eafd38.iframe.bundle.js +0 -1
- package/storybook-static/2.3841b1a5.iframe.bundle.js +0 -1
- package/storybook-static/5.5b799f3fbf64cec8e51a.manager.bundle.js +0 -2
- package/storybook-static/6.6023eba1.iframe.bundle.js +0 -3
- package/storybook-static/6.6023eba1.iframe.bundle.js.map +0 -1
- package/storybook-static/6.b34ce31193a7fa1dd965.manager.bundle.js +0 -1
- package/storybook-static/7.632f8551.iframe.bundle.js +0 -1
- package/storybook-static/7.72879af713f755a7aa7e.manager.bundle.js +0 -1
- package/storybook-static/8.9a8f8b69.iframe.bundle.js +0 -1
- package/storybook-static/8.f9b98ef3e089be1a16d6.manager.bundle.js +0 -2
- package/storybook-static/9.1e1335092fade49cc986.manager.bundle.js +0 -1
- package/storybook-static/9.63a5cf7a.iframe.bundle.js +0 -3
- package/storybook-static/9.63a5cf7a.iframe.bundle.js.map +0 -1
- package/storybook-static/main.4bd27e4e7faa098302d1.manager.bundle.js +0 -1
- package/storybook-static/main.ea9904c2.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.67ec6e92.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.a58df7ba92d01c5088d3.manager.bundle.js +0 -1
- package/storybook-static/vendors~main.a40572d0.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.a40572d0.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.d13ba71108048897ea4a.manager.bundle.js +0 -2
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
// import React, { useEffect } from "react";
|
|
2
|
-
// import { styled, useTheme } from "@mui/material/styles";
|
|
3
|
-
// import Box from "@mui/material/Box";
|
|
4
|
-
// import MuiDrawer from "@mui/material/Drawer";
|
|
5
|
-
// import MuiAppBar from "@mui/material/AppBar";
|
|
6
|
-
// import Toolbar from "@mui/material/Toolbar";
|
|
7
|
-
// import List from "@mui/material/List";
|
|
8
|
-
// import Typography from "@mui/material/Typography";
|
|
9
|
-
// // import Divider from "@mui/material/Divider";
|
|
10
|
-
// import IconButton from "@mui/material/IconButton";
|
|
11
|
-
// import MenuIcon from "@mui/icons-material/Menu";
|
|
12
|
-
// import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
13
|
-
// import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
14
|
-
// import ListItemButton from "@mui/material/ListItemButton";
|
|
15
|
-
// import ListItemText from "@mui/material/ListItemText";
|
|
16
|
-
// import Avatar from "@mui/material/Avatar";
|
|
17
|
-
// import { HawaPopMenu } from "../elements/HawaPopMenu";
|
|
18
|
-
|
|
19
|
-
// const drawerWidth = 200;
|
|
20
|
-
|
|
21
|
-
// const openedMixin = (theme) => ({
|
|
22
|
-
// width: drawerWidth,
|
|
23
|
-
// transition: theme.transitions.create("width", {
|
|
24
|
-
// easing: theme.transitions.easing.sharp,
|
|
25
|
-
// duration: theme.transitions.duration.enteringScreen
|
|
26
|
-
// }),
|
|
27
|
-
// overflowX: "hidden"
|
|
28
|
-
// });
|
|
29
|
-
|
|
30
|
-
// const closedMixin = (theme) => ({
|
|
31
|
-
// transition: theme.transitions.create("width", {
|
|
32
|
-
// easing: theme.transitions.easing.sharp,
|
|
33
|
-
// duration: theme.transitions.duration.leavingScreen
|
|
34
|
-
// }),
|
|
35
|
-
// overflowX: "hidden",
|
|
36
|
-
// width: `calc(${theme.spacing(0)} + 1px)`,
|
|
37
|
-
// [theme.breakpoints.up("sm")]: {
|
|
38
|
-
// width: `calc(${theme.spacing(8)} + 1px)`
|
|
39
|
-
// }
|
|
40
|
-
// });
|
|
41
|
-
|
|
42
|
-
// const DrawerHeader = styled("div")(({ theme, direction }) => ({
|
|
43
|
-
// display: "flex",
|
|
44
|
-
// alignItems: "center",
|
|
45
|
-
// justifyContent: direction === "rtl" ? "flex-start" : "flex-end",
|
|
46
|
-
// padding: theme.spacing(0, 1),
|
|
47
|
-
// // necessary for content to be below app bar
|
|
48
|
-
// ...theme.mixins.toolbar
|
|
49
|
-
// }));
|
|
50
|
-
|
|
51
|
-
// const AppBar = styled(MuiAppBar, {
|
|
52
|
-
// shouldForwardProp: (prop) => prop !== "open"
|
|
53
|
-
// })(({ theme, open, direction }) => ({
|
|
54
|
-
// zIndex: theme.zIndex.drawer + 1,
|
|
55
|
-
// transition: theme.transitions.create(["width", "margin"], {
|
|
56
|
-
// easing: theme.transitions.easing.sharp,
|
|
57
|
-
// duration: theme.transitions.duration.leavingScreen
|
|
58
|
-
// }),
|
|
59
|
-
|
|
60
|
-
// ...(open && {
|
|
61
|
-
// marginLeft: direction === "rtl" ? 0 : drawerWidth,
|
|
62
|
-
// marginRight: direction === "rtl" ? drawerWidth : 0,
|
|
63
|
-
// width: `calc(100% - ${drawerWidth}px)`,
|
|
64
|
-
// transition: theme.transitions.create(["width", "margin"], {
|
|
65
|
-
// easing: theme.transitions.easing.sharp,
|
|
66
|
-
// duration: theme.transitions.duration.enteringScreen
|
|
67
|
-
// })
|
|
68
|
-
// })
|
|
69
|
-
// }));
|
|
70
|
-
|
|
71
|
-
// const Drawer = styled(MuiDrawer, {
|
|
72
|
-
// shouldForwardProp: (prop) => prop !== "open"
|
|
73
|
-
// })(({ theme, open }) => ({
|
|
74
|
-
// width: drawerWidth,
|
|
75
|
-
// flexShrink: 0,
|
|
76
|
-
// whiteSpace: "nowrap",
|
|
77
|
-
// boxSizing: "border-box",
|
|
78
|
-
// ...(open && {
|
|
79
|
-
// ...openedMixin(theme),
|
|
80
|
-
// "& .MuiDrawer-paper": openedMixin(theme)
|
|
81
|
-
// }),
|
|
82
|
-
// ...(!open && {
|
|
83
|
-
// ...closedMixin(theme),
|
|
84
|
-
// "& .MuiDrawer-paper": closedMixin(theme)
|
|
85
|
-
// })
|
|
86
|
-
// }));
|
|
87
|
-
|
|
88
|
-
// export function HawaAppLayout(props) {
|
|
89
|
-
// const theme = useTheme();
|
|
90
|
-
// const [open, setOpen] = React.useState(true);
|
|
91
|
-
// const isArabic = props.lang === "ar";
|
|
92
|
-
// const [anchorElNav, setAnchorElNav] = React.useState(null);
|
|
93
|
-
// const [anchorElUser, setAnchorElUser] = React.useState(null);
|
|
94
|
-
|
|
95
|
-
// const handleOpenNavMenu = (event) => setAnchorElNav(event.currentTarget);
|
|
96
|
-
// const handleOpenUserMenu = (event) => setAnchorElUser(event.currentTarget);
|
|
97
|
-
// const handleCloseNavMenu = () => setAnchorElNav(null);
|
|
98
|
-
// const handleCloseUserMenu = () => setAnchorElUser(null);
|
|
99
|
-
// const handleDrawerOpen = () => setOpen(true);
|
|
100
|
-
// const handleDrawerClose = () => setOpen(false);
|
|
101
|
-
|
|
102
|
-
// useEffect(() => {
|
|
103
|
-
// setOpen(!open);
|
|
104
|
-
// }, []);
|
|
105
|
-
// return (
|
|
106
|
-
// <Box sx={{ display: "flex", direction: isArabic ? "rtl" : "ltr" }}>
|
|
107
|
-
// <AppBar
|
|
108
|
-
// variant="appbar"
|
|
109
|
-
// position="fixed"
|
|
110
|
-
// open={open}
|
|
111
|
-
// direction={isArabic ? "rtl" : "ltr"}
|
|
112
|
-
// >
|
|
113
|
-
// <Toolbar
|
|
114
|
-
// variant="appbar"
|
|
115
|
-
// sx={{ paddingLeft: { xs: 3 }, paddingRight: { xs: 3 } }}
|
|
116
|
-
// >
|
|
117
|
-
// <IconButton
|
|
118
|
-
// color="inherit"
|
|
119
|
-
// aria-label="open drawer"
|
|
120
|
-
// onClick={handleDrawerOpen}
|
|
121
|
-
// edge="start"
|
|
122
|
-
// s
|
|
123
|
-
// sx={{
|
|
124
|
-
// marginRight: 5,
|
|
125
|
-
// ...(open && { display: "none" })
|
|
126
|
-
// }}
|
|
127
|
-
// >
|
|
128
|
-
// <MenuIcon />
|
|
129
|
-
// </IconButton>
|
|
130
|
-
|
|
131
|
-
// <div
|
|
132
|
-
// style={{
|
|
133
|
-
// display: "flex",
|
|
134
|
-
// flexDirection: "row",
|
|
135
|
-
// justifyContent: "space-between",
|
|
136
|
-
// alignItems: "center",
|
|
137
|
-
// width: "100%",
|
|
138
|
-
// margin: 0
|
|
139
|
-
// }}
|
|
140
|
-
// >
|
|
141
|
-
// <Typography
|
|
142
|
-
// variant="h6"
|
|
143
|
-
// noWrap
|
|
144
|
-
// component="div"
|
|
145
|
-
// sx={{
|
|
146
|
-
// display: {
|
|
147
|
-
// xs: open ? "none" : "flex",
|
|
148
|
-
// sm: "flex"
|
|
149
|
-
// }
|
|
150
|
-
// }}
|
|
151
|
-
// >
|
|
152
|
-
// {props.pageTitle}
|
|
153
|
-
// </Typography>
|
|
154
|
-
|
|
155
|
-
// <Box style={{ position: "absolute", right: 10 }}>
|
|
156
|
-
// <IconButton
|
|
157
|
-
// onClick={handleOpenUserMenu}
|
|
158
|
-
// // sx={{ p: 0 }}
|
|
159
|
-
// size="small"
|
|
160
|
-
// >
|
|
161
|
-
// <Avatar style={{ width: 30, height: 30 }} fontSize="inherit" />
|
|
162
|
-
// </IconButton>
|
|
163
|
-
// {/* <Tooltip title="Open settings">
|
|
164
|
-
// </Tooltip> */}
|
|
165
|
-
// <HawaPopMenu
|
|
166
|
-
// menuItems={props.accountMenu}
|
|
167
|
-
// anchor={anchorElUser}
|
|
168
|
-
// handleClose={handleCloseUserMenu}
|
|
169
|
-
// />
|
|
170
|
-
// </Box>
|
|
171
|
-
// </div>
|
|
172
|
-
// </Toolbar>
|
|
173
|
-
// </AppBar>
|
|
174
|
-
|
|
175
|
-
// <Drawer
|
|
176
|
-
// // anchor="left"
|
|
177
|
-
|
|
178
|
-
// variant="permanent"
|
|
179
|
-
// open={open}
|
|
180
|
-
// // sx={{ display: { xs: open ? "flex" : "none", md: "flex" } }}
|
|
181
|
-
// >
|
|
182
|
-
// <DrawerHeader direction={isArabic ? "rtl" : "ltr"}>
|
|
183
|
-
// {props.logo}
|
|
184
|
-
// <IconButton onClick={handleDrawerClose}>
|
|
185
|
-
// {theme.direction === "rtl" ? (
|
|
186
|
-
// <ChevronRightIcon />
|
|
187
|
-
// ) : (
|
|
188
|
-
// <ChevronLeftIcon />
|
|
189
|
-
// )}
|
|
190
|
-
// </IconButton>
|
|
191
|
-
// </DrawerHeader>
|
|
192
|
-
// {/* <Divider /> */}
|
|
193
|
-
// <List
|
|
194
|
-
// // sx={{
|
|
195
|
-
// // display: {
|
|
196
|
-
// // xs: open ? "flex" : "none",
|
|
197
|
-
// // sm: open ? "flex" : "none",
|
|
198
|
-
// // md: "flex"
|
|
199
|
-
// // },
|
|
200
|
-
// // flexDirection: "column",
|
|
201
|
-
// // padding: 0
|
|
202
|
-
// // }}
|
|
203
|
-
// >
|
|
204
|
-
// {props.pages.map((p, jk) => {
|
|
205
|
-
// return (
|
|
206
|
-
// // <Tooltip
|
|
207
|
-
// // title={p.text}
|
|
208
|
-
// // key={jk}
|
|
209
|
-
// // placement={"right"}
|
|
210
|
-
// // arrow={true}
|
|
211
|
-
// // PopperProps={{ style: { opacity: open ? 0 : 1 } }}
|
|
212
|
-
// // >
|
|
213
|
-
|
|
214
|
-
// // </Tooltip>
|
|
215
|
-
// <ListItemButton
|
|
216
|
-
// variant={
|
|
217
|
-
// props.pageName?.toLowerCase() === p.slug?.toLowerCase() &&
|
|
218
|
-
// "clicked"
|
|
219
|
-
// }
|
|
220
|
-
// onClick={p.action}
|
|
221
|
-
// key={p.text}
|
|
222
|
-
// sx={{
|
|
223
|
-
// minHeight: 48,
|
|
224
|
-
// justifyContent: open ? "initial" : "center",
|
|
225
|
-
// px: 2.5
|
|
226
|
-
// }}
|
|
227
|
-
// >
|
|
228
|
-
// <p.icon />
|
|
229
|
-
// <div style={{ width: 20 }} />
|
|
230
|
-
// <ListItemText primary={p.text} sx={{ opacity: open ? 1 : 0 }} />
|
|
231
|
-
// </ListItemButton>
|
|
232
|
-
// );
|
|
233
|
-
// })}
|
|
234
|
-
// </List>
|
|
235
|
-
// </Drawer>
|
|
236
|
-
// <Box
|
|
237
|
-
// onClick={open && (() => setOpen(false))}
|
|
238
|
-
// sx={{
|
|
239
|
-
// flexGrow: 1,
|
|
240
|
-
// p: 3,
|
|
241
|
-
// position: "absolute",
|
|
242
|
-
// left: {
|
|
243
|
-
// xs: open ? 4 : 4,
|
|
244
|
-
// sm: open ? drawerWidth + 4 : 70
|
|
245
|
-
// },
|
|
246
|
-
// right: { xs: 4 }
|
|
247
|
-
// }}
|
|
248
|
-
// >
|
|
249
|
-
// <DrawerHeader />
|
|
250
|
-
// <div style={{ marginTop: -10 }}>{props.children}</div>
|
|
251
|
-
// </Box>
|
|
252
|
-
// </Box>
|
|
253
|
-
// );
|
|
254
|
-
// }
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
// import { AppBar, Paper, Box, IconButton, Typography } from "@mui/material";
|
|
2
|
-
|
|
3
|
-
// export function HawaBottomAppBar({ args }) {
|
|
4
|
-
// return (
|
|
5
|
-
// <AppBar
|
|
6
|
-
// position="fixed"
|
|
7
|
-
// sx={args.sx}
|
|
8
|
-
// style={{
|
|
9
|
-
// bottom: 0,
|
|
10
|
-
// top: "auto",
|
|
11
|
-
// padding: 10,
|
|
12
|
-
// flexDirection: "row",
|
|
13
|
-
// alignItems: "center",
|
|
14
|
-
// justifyContent: "space-evenly"
|
|
15
|
-
// }}
|
|
16
|
-
// color={args.color}
|
|
17
|
-
// >
|
|
18
|
-
// <BottomAppBar appBarContent={args.appBarContent} />
|
|
19
|
-
// </AppBar>
|
|
20
|
-
// );
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
// export function BottomAppBar(props) {
|
|
24
|
-
// return (
|
|
25
|
-
// <Paper
|
|
26
|
-
// elevation={3}
|
|
27
|
-
// style={{
|
|
28
|
-
// width: "100%",
|
|
29
|
-
// display: "flex",
|
|
30
|
-
// flexDirection: "row",
|
|
31
|
-
// justifyContent: "space-evenly",
|
|
32
|
-
// borderRadius: 10,
|
|
33
|
-
// alignContent: "center",
|
|
34
|
-
// padding: 10
|
|
35
|
-
// }}
|
|
36
|
-
// variant="outlined"
|
|
37
|
-
// >
|
|
38
|
-
// {props.appBarContent.map(({ label, icon, action }) => (
|
|
39
|
-
// <SubAppBarContent label={label} icon={icon} action={action} />
|
|
40
|
-
// ))}
|
|
41
|
-
// </Paper>
|
|
42
|
-
// );
|
|
43
|
-
// }
|
|
44
|
-
|
|
45
|
-
// function SubAppBarContent(props) {
|
|
46
|
-
// return (
|
|
47
|
-
// <Box
|
|
48
|
-
// display="flex"
|
|
49
|
-
// flexDirection="row"
|
|
50
|
-
// justifyContent="center"
|
|
51
|
-
// alignItems="center"
|
|
52
|
-
// sx={{
|
|
53
|
-
// "&:hover": {
|
|
54
|
-
// cursor: "pointer",
|
|
55
|
-
// color: "blue"
|
|
56
|
-
// }
|
|
57
|
-
// }}
|
|
58
|
-
// onClick={props.action}
|
|
59
|
-
// >
|
|
60
|
-
// <IconButton
|
|
61
|
-
// sx={{
|
|
62
|
-
// ml: 1,
|
|
63
|
-
// "&.MuiButtonBase-root:hover": {
|
|
64
|
-
// color: "blue",
|
|
65
|
-
// bgcolor: "transparent"
|
|
66
|
-
// }
|
|
67
|
-
// }}
|
|
68
|
-
// >
|
|
69
|
-
// {props.icon}
|
|
70
|
-
// </IconButton>
|
|
71
|
-
// <Typography sx={{ display: { xs: "none", sm: "none", md: "block" } }}>
|
|
72
|
-
// {props.label}
|
|
73
|
-
// </Typography>
|
|
74
|
-
// </Box>
|
|
75
|
-
// );
|
|
76
|
-
// }
|