@superdispatch/ui-lab 0.21.8 → 0.21.11
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-node/index.js +23 -19
- package/dist-node/index.js.map +1 -1
- package/dist-src/navbar/NavbarAccordion.js +5 -10
- package/dist-src/navbar/NavbarBottomBar.js +16 -6
- package/dist-types/index.d.ts +308 -308
- package/dist-web/index.js +24 -20
- package/dist-web/index.js.map +1 -1
- package/package.json +34 -34
package/dist-web/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
7
7
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
8
8
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
9
9
|
import { CSSTransition } from 'react-transition-group';
|
|
10
|
-
import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, BottomNavigation, BottomNavigationAction,
|
|
10
|
+
import { ButtonBase, Typography, CircularProgress, SvgIcon, Link, Tooltip, IconButton, BottomNavigation, BottomNavigationAction, Accordion, AccordionSummary, useTheme, useMediaQuery, Drawer, Avatar, MenuItem, Menu as Menu$1, Toolbar, AppBar, Divider as Divider$1, Checkbox } from '@material-ui/core';
|
|
11
11
|
import { mdiUpload, mdiFilePdfBox, mdiTextBox } from '@mdi/js';
|
|
12
12
|
import Dropzone from 'react-dropzone';
|
|
13
13
|
import { Anchorme } from 'react-anchorme';
|
|
@@ -1069,6 +1069,7 @@ function useNavbarContext() {
|
|
|
1069
1069
|
return useContext(NavbarContext);
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
|
+
var _excluded$7 = ["active", "hasBadge"];
|
|
1072
1073
|
var StyledBottomNavigation = /*#__PURE__*/styled(BottomNavigation).withConfig({
|
|
1073
1074
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
1074
1075
|
componentId: "SD__sc-9z6v3k-0"
|
|
@@ -1107,12 +1108,20 @@ function NavbarBottomBar(_ref) {
|
|
|
1107
1108
|
}
|
|
1108
1109
|
}
|
|
1109
1110
|
},
|
|
1110
|
-
children: [items.map(
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1111
|
+
children: [items.map(_ref2 => {
|
|
1112
|
+
var {
|
|
1113
|
+
active,
|
|
1114
|
+
hasBadge
|
|
1115
|
+
} = _ref2,
|
|
1116
|
+
item = _objectWithoutProperties(_ref2, _excluded$7);
|
|
1117
|
+
|
|
1118
|
+
return /*#__PURE__*/createElement(StyledBottomNavigationAction, _objectSpread(_objectSpread({}, item), {}, {
|
|
1119
|
+
key: item.value,
|
|
1120
|
+
icon: hasBadge ? /*#__PURE__*/jsxs(IconWrapper, {
|
|
1121
|
+
children: [/*#__PURE__*/jsx(IconLabel, {}), item.icon]
|
|
1122
|
+
}) : item.icon
|
|
1123
|
+
}));
|
|
1124
|
+
}), /*#__PURE__*/jsx(StyledBottomNavigationAction, {
|
|
1116
1125
|
value: "menu",
|
|
1117
1126
|
label: "Menu",
|
|
1118
1127
|
icon: hasMenuBadge ? /*#__PURE__*/jsxs(IconWrapper, {
|
|
@@ -1183,12 +1192,7 @@ var NavbarAccordionLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
1183
1192
|
var NavbarAccordionRoot = /*#__PURE__*/styled(Accordion).withConfig({
|
|
1184
1193
|
displayName: "NavbarAccordion__NavbarAccordionRoot",
|
|
1185
1194
|
componentId: "SD__sc-1s7g3kw-1"
|
|
1186
|
-
})(
|
|
1187
|
-
var {
|
|
1188
|
-
gutter
|
|
1189
|
-
} = _ref;
|
|
1190
|
-
return css(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;margin-top:", ";&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&.MuiAccordion-root.Mui-expanded{margin-top:", ";}"], gutter ? '16px' : '0', Color.White, gutter ? '16px' : '0');
|
|
1191
|
-
});
|
|
1195
|
+
})(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&[data-gutter]{margin-top:16px;}&[data-gutter].MuiAccordion-root.Mui-expanded{margin-top:16px;}"], Color.White);
|
|
1192
1196
|
var NavbarAccordionSummary = /*#__PURE__*/styled(AccordionSummary).withConfig({
|
|
1193
1197
|
displayName: "NavbarAccordion__NavbarAccordionSummary",
|
|
1194
1198
|
componentId: "SD__sc-1s7g3kw-2"
|
|
@@ -1197,14 +1201,14 @@ var IconWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
1197
1201
|
displayName: "NavbarAccordion__IconWrapper",
|
|
1198
1202
|
componentId: "SD__sc-1s7g3kw-3"
|
|
1199
1203
|
})(["width:24px;margin-right:8px;& svg{font-size:24px;}"]);
|
|
1200
|
-
function NavbarAccordion(
|
|
1204
|
+
function NavbarAccordion(_ref) {
|
|
1201
1205
|
var {
|
|
1202
1206
|
label,
|
|
1203
1207
|
icon,
|
|
1204
1208
|
gutter,
|
|
1205
1209
|
items,
|
|
1206
1210
|
onClick: _onClick
|
|
1207
|
-
} =
|
|
1211
|
+
} = _ref;
|
|
1208
1212
|
var uid = useUID();
|
|
1209
1213
|
var {
|
|
1210
1214
|
setDrawerOpen,
|
|
@@ -1217,7 +1221,7 @@ function NavbarAccordion(_ref2) {
|
|
|
1217
1221
|
}, [isNavbarExpanded]);
|
|
1218
1222
|
return /*#__PURE__*/jsxs(NavbarAccordionRoot, {
|
|
1219
1223
|
square: true,
|
|
1220
|
-
gutter:
|
|
1224
|
+
"data-gutter": !gutter,
|
|
1221
1225
|
"aria-labelledby": uid,
|
|
1222
1226
|
expanded: isExpanded,
|
|
1223
1227
|
onClick: event => {
|
|
@@ -1465,7 +1469,7 @@ function Navbar(_ref) {
|
|
|
1465
1469
|
});
|
|
1466
1470
|
}
|
|
1467
1471
|
|
|
1468
|
-
var _excluded$
|
|
1472
|
+
var _excluded$8 = ["title", "subtitle", "children"];
|
|
1469
1473
|
var StyledTypography = /*#__PURE__*/styled(Typography).withConfig({
|
|
1470
1474
|
displayName: "NavbarAvatar__StyledTypography",
|
|
1471
1475
|
componentId: "SD__sc-19q2zd0-0"
|
|
@@ -1476,7 +1480,7 @@ function NavbarAvatar(_ref) {
|
|
|
1476
1480
|
subtitle,
|
|
1477
1481
|
children
|
|
1478
1482
|
} = _ref,
|
|
1479
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1483
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1480
1484
|
|
|
1481
1485
|
var {
|
|
1482
1486
|
isNavbarExpanded
|
|
@@ -1694,7 +1698,7 @@ var SidebarContainer = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1694
1698
|
});
|
|
1695
1699
|
if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "SidebarContainer";
|
|
1696
1700
|
|
|
1697
|
-
var _excluded$
|
|
1701
|
+
var _excluded$9 = ["onClick", "children"];
|
|
1698
1702
|
function SidebarBackButton(_ref) {
|
|
1699
1703
|
var {
|
|
1700
1704
|
onClick: _onClick,
|
|
@@ -1702,7 +1706,7 @@ function SidebarBackButton(_ref) {
|
|
|
1702
1706
|
fontSize: "small"
|
|
1703
1707
|
})
|
|
1704
1708
|
} = _ref,
|
|
1705
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1709
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1706
1710
|
|
|
1707
1711
|
var isCollapsed = useCollapseBreakpoint('sm');
|
|
1708
1712
|
var {
|