@superdispatch/ui-lab 0.43.0 → 0.44.0
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 +113 -10
- package/dist-node/index.js.map +1 -1
- package/dist-src/flag-list/FlagList.js +33 -0
- package/dist-src/flag-list/FlagListItem.js +77 -0
- package/dist-src/index.js +2 -0
- package/dist-types/index.d.ts +18 -1
- package/dist-web/index.js +113 -12
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ColorDynamic } from '@superdispatch/ui';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
var FlagListHeader = /*#__PURE__*/styled.div.withConfig({
|
|
6
|
+
displayName: "FlagList__FlagListHeader",
|
|
7
|
+
componentId: "SD__sc-te7hyy-0"
|
|
8
|
+
})(["display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:12px 16px;background:", ";border:1px solid ", ";border-bottom:none;border-radius:4px 4px 0 0;", "{flex-direction:column;align-items:flex-start;}"], ColorDynamic.Silver200, ColorDynamic.Silver400, _ref => {
|
|
9
|
+
var {
|
|
10
|
+
theme
|
|
11
|
+
} = _ref;
|
|
12
|
+
return theme.breakpoints.down('xs');
|
|
13
|
+
});
|
|
14
|
+
var FlagListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15
|
+
displayName: "FlagList__FlagListContainer",
|
|
16
|
+
componentId: "SD__sc-te7hyy-1"
|
|
17
|
+
})(["display:flex;flex-direction:column;"]);
|
|
18
|
+
export var FlagList = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
19
|
+
var {
|
|
20
|
+
isStandalone = false,
|
|
21
|
+
title,
|
|
22
|
+
endAction,
|
|
23
|
+
children
|
|
24
|
+
} = _ref2;
|
|
25
|
+
return /*#__PURE__*/_jsxs(FlagListContainer, {
|
|
26
|
+
"data-variant": isStandalone ? 'standalone' : 'with-header',
|
|
27
|
+
ref: ref,
|
|
28
|
+
children: [(title || endAction) && /*#__PURE__*/_jsxs(FlagListHeader, {
|
|
29
|
+
children: [title, endAction]
|
|
30
|
+
}), children]
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
if (process.env.NODE_ENV !== "production") FlagList.displayName = "FlagList";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["variant", "showHelpIcon", "endAction", "children"];
|
|
4
|
+
import { Error, Flag, Help, Warning } from '@material-ui/icons';
|
|
5
|
+
import { ColorDynamic } from '@superdispatch/ui';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import styled, { css } from 'styled-components';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
10
|
+
displayName: "FlagListItem__IconContainer",
|
|
11
|
+
componentId: "SD__sc-o5bqru-0"
|
|
12
|
+
})(["padding:4px;border-radius:50%;background:", ";color:", ";transition:", ";& .MuiSvgIcon-root{font-size:16px;}"], ColorDynamic.Silver200, ColorDynamic.Blue300, _ref => {
|
|
13
|
+
var {
|
|
14
|
+
theme
|
|
15
|
+
} = _ref;
|
|
16
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
17
|
+
});
|
|
18
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
19
|
+
displayName: "FlagListItem__Content",
|
|
20
|
+
componentId: "SD__sc-o5bqru-1"
|
|
21
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
22
|
+
var EndActions = /*#__PURE__*/styled.div.withConfig({
|
|
23
|
+
displayName: "FlagListItem__EndActions",
|
|
24
|
+
componentId: "SD__sc-o5bqru-2"
|
|
25
|
+
})(["display:flex;align-items:center;margin-left:auto;gap:8px;& > svg{font-size:16px;color:", ";}", "{margin-left:0;width:100%;}"], ColorDynamic.Dark500, _ref2 => {
|
|
26
|
+
var {
|
|
27
|
+
theme
|
|
28
|
+
} = _ref2;
|
|
29
|
+
return theme.breakpoints.down('xs');
|
|
30
|
+
});
|
|
31
|
+
var BannerListItemDanger = /*#__PURE__*/css(["& ", "{background:", ";color:", ";}&:hover{background:", ";}"], IconContainer, ColorDynamic.Red50, ColorDynamic.Red300, ColorDynamic.Red50);
|
|
32
|
+
var BannerListItemStandalone = /*#__PURE__*/css(["background:", ";"], ColorDynamic.Silver200);
|
|
33
|
+
var BannerListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34
|
+
displayName: "FlagListItem__BannerListContainer",
|
|
35
|
+
componentId: "SD__sc-o5bqru-3"
|
|
36
|
+
})(["display:inline-flex;align-items:center;padding:8px 16px 8px 12px;border:1px solid ", ";background:", ";cursor:default;transition:", ";& + &{border-top:none;}&:last-child{border-radius:0 0 4px 4px;}&:hover{background:", ";& ", "{background:", ";}& ", " > svg{color:", ";}}[data-variant='standalone'] &:not(:hover){", "}", " ", "{flex-direction:column;align-items:flex-start;}"], ColorDynamic.Silver400, ColorDynamic.White, _ref3 => {
|
|
37
|
+
var {
|
|
38
|
+
theme
|
|
39
|
+
} = _ref3;
|
|
40
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
41
|
+
}, ColorDynamic.Blue50, IconContainer, ColorDynamic.White, EndActions, _ref4 => {
|
|
42
|
+
var {
|
|
43
|
+
$variant
|
|
44
|
+
} = _ref4;
|
|
45
|
+
return $variant === 'danger' ? ColorDynamic.Red300 : ColorDynamic.Blue300;
|
|
46
|
+
}, BannerListItemStandalone, _ref5 => {
|
|
47
|
+
var {
|
|
48
|
+
$variant
|
|
49
|
+
} = _ref5;
|
|
50
|
+
return $variant === 'danger' ? BannerListItemDanger : null;
|
|
51
|
+
}, _ref6 => {
|
|
52
|
+
var {
|
|
53
|
+
theme
|
|
54
|
+
} = _ref6;
|
|
55
|
+
return theme.breakpoints.down('xs');
|
|
56
|
+
});
|
|
57
|
+
export var FlagListItem = /*#__PURE__*/forwardRef((_ref7, ref) => {
|
|
58
|
+
var {
|
|
59
|
+
variant = 'primary',
|
|
60
|
+
showHelpIcon,
|
|
61
|
+
endAction,
|
|
62
|
+
children
|
|
63
|
+
} = _ref7,
|
|
64
|
+
rest = _objectWithoutProperties(_ref7, _excluded);
|
|
65
|
+
return /*#__PURE__*/_jsxs(BannerListContainer, _objectSpread(_objectSpread({}, rest), {}, {
|
|
66
|
+
ref: ref,
|
|
67
|
+
$variant: variant,
|
|
68
|
+
children: [/*#__PURE__*/_jsxs(Content, {
|
|
69
|
+
children: [/*#__PURE__*/_jsx(IconContainer, {
|
|
70
|
+
children: variant === 'danger' ? /*#__PURE__*/_jsx(Error, {}) : variant === 'warning' ? /*#__PURE__*/_jsx(Warning, {}) : /*#__PURE__*/_jsx(Flag, {})
|
|
71
|
+
}), children]
|
|
72
|
+
}), /*#__PURE__*/_jsxs(EndActions, {
|
|
73
|
+
children: [endAction, showHelpIcon && /*#__PURE__*/_jsx(Help, {})]
|
|
74
|
+
})]
|
|
75
|
+
}));
|
|
76
|
+
});
|
|
77
|
+
if (process.env.NODE_ENV !== "production") FlagListItem.displayName = "FlagListItem";
|
package/dist-src/index.js
CHANGED
|
@@ -10,6 +10,8 @@ export * from "./description-item/DescriptionItem.js";
|
|
|
10
10
|
export * from "./description-line-item/DescriptionLineItem.js";
|
|
11
11
|
export * from "./file-drop-zone/FileDropZone.js";
|
|
12
12
|
export * from "./file-list-item/FileListItem.js";
|
|
13
|
+
export * from "./flag-list/FlagList.js";
|
|
14
|
+
export * from "./flag-list/FlagListItem.js";
|
|
13
15
|
export * from "./linked-text/LinkedText.js";
|
|
14
16
|
export * from "./multiline-text/MultilineText.js";
|
|
15
17
|
export * from "./navbar/Navbar.js";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -194,6 +194,23 @@ interface FileListItemProps {
|
|
|
194
194
|
}
|
|
195
195
|
declare const FileListItem: ForwardRefExoticComponent<FileListItemProps & RefAttributes<HTMLDivElement>>;
|
|
196
196
|
|
|
197
|
+
interface BannerListProps {
|
|
198
|
+
isStandalone?: boolean;
|
|
199
|
+
title?: ReactNode;
|
|
200
|
+
endAction?: ReactNode;
|
|
201
|
+
children: ReactNode;
|
|
202
|
+
}
|
|
203
|
+
declare const FlagList: ForwardRefExoticComponent<BannerListProps & RefAttributes<HTMLDivElement>>;
|
|
204
|
+
|
|
205
|
+
declare type Variant = 'primary' | 'warning' | 'danger';
|
|
206
|
+
interface BannerItemProps {
|
|
207
|
+
variant?: Variant;
|
|
208
|
+
showHelpIcon?: boolean;
|
|
209
|
+
endAction?: ReactNode;
|
|
210
|
+
children?: ReactNode;
|
|
211
|
+
}
|
|
212
|
+
declare const FlagListItem: ForwardRefExoticComponent<BannerItemProps & RefAttributes<HTMLDivElement>>;
|
|
213
|
+
|
|
197
214
|
declare type LinkComponentProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
198
215
|
href: string;
|
|
199
216
|
truncate?: number;
|
|
@@ -402,4 +419,4 @@ interface TextBoxProps {
|
|
|
402
419
|
}
|
|
403
420
|
declare const TextBox: ForwardRefExoticComponent<TextBoxProps & RefAttributes<HTMLElement>>;
|
|
404
421
|
|
|
405
|
-
export { Alert, AlertProps, AlertSeverityProp, AnchorButton, AnchorButtonProps, Banner, BorderRadiusProp, BorderWidthProp, Box, BoxProps, Button, ButtonArea, ButtonAreaProps, ButtonProps, ButtonSizeProp, ButtonVariantProp, Chat, ChatMessage, Container, ContainerProps, DescriptionItem, DescriptionItemProps, DescriptionLineItem, DottedLine, FileDropZone, FileDropZoneProps, FileListItem, FileListItemProps, LinkComponentProps, LinkedText, LinkedTextProps, MarginProp, MultilineText, MultilineTextProps, Navbar, NavbarAccordionOptions, NavbarAvatar, NavbarBadge, NavbarBottomBar, NavbarBottomBarItem, NavbarItem, NavbarItemOptions, NavbarItemProps, NavbarLabel, NavbarList, NavbarMenu, NavbarMenuItem, NavbarMenuItemOption, Sidebar, SidebarBackButton, SidebarContainer, SidebarContainerProps, SidebarContent, SidebarContentProps, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemActionProps, SidebarMenuItemAvatar, SidebarMenuItemAvatarProps, SidebarMenuItemProps, SidebarProps, SidebarSubheader, SidebarSubheaderProps, TextAlignProp, TextBox, TextBoxProps, TextColorProp, TextDisplayProp, TextVariantProp, formatBytes, toBytes, useNavbarContext, useSidebarContext };
|
|
422
|
+
export { Alert, AlertProps, AlertSeverityProp, AnchorButton, AnchorButtonProps, Banner, BorderRadiusProp, BorderWidthProp, Box, BoxProps, Button, ButtonArea, ButtonAreaProps, ButtonProps, ButtonSizeProp, ButtonVariantProp, Chat, ChatMessage, Container, ContainerProps, DescriptionItem, DescriptionItemProps, DescriptionLineItem, DottedLine, FileDropZone, FileDropZoneProps, FileListItem, FileListItemProps, FlagList, FlagListItem, LinkComponentProps, LinkedText, LinkedTextProps, MarginProp, MultilineText, MultilineTextProps, Navbar, NavbarAccordionOptions, NavbarAvatar, NavbarBadge, NavbarBottomBar, NavbarBottomBarItem, NavbarItem, NavbarItemOptions, NavbarItemProps, NavbarLabel, NavbarList, NavbarMenu, NavbarMenuItem, NavbarMenuItemOption, Sidebar, SidebarBackButton, SidebarContainer, SidebarContainerProps, SidebarContent, SidebarContentProps, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemActionProps, SidebarMenuItemAvatar, SidebarMenuItemAvatarProps, SidebarMenuItemProps, SidebarProps, SidebarSubheader, SidebarSubheaderProps, TextAlignProp, TextBox, TextBoxProps, TextColorProp, TextDisplayProp, TextVariantProp, formatBytes, toBytes, useNavbarContext, useSidebarContext };
|
package/dist-web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckCircle, Info, Error as Error$1, WarningRounded, Image, Refresh, Delete, Menu, ExpandMore, MenuOpen, ArrowBack, OpenInNew } from '@material-ui/icons';
|
|
1
|
+
import { CheckCircle, Info, Error as Error$1, WarningRounded, Image, Refresh, Delete, Warning, Flag, Help, Menu, ExpandMore, MenuOpen, ArrowBack, OpenInNew } from '@material-ui/icons';
|
|
2
2
|
import { Alert as Alert$1 } from '@material-ui/lab';
|
|
3
3
|
import { ColorDynamic, parseResponsiveProp, isColorDynamicProp, parseSpaceProp, Stack, Color, Inline, mergeRefs, useUID, isEmptyReactNode, Columns, Column, CardButton, useResponsiveValue, ColorDark, useCollapseBreakpoint } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, useState, useEffect, Children, useRef, useLayoutEffect, Suspense, memo, useContext, createContext, useMemo, createElement } from 'react';
|
|
@@ -1095,7 +1095,108 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1095
1095
|
});
|
|
1096
1096
|
if (process.env.NODE_ENV !== "production") FileListItem.displayName = "FileListItem";
|
|
1097
1097
|
|
|
1098
|
-
var
|
|
1098
|
+
var FlagListHeader = /*#__PURE__*/styled.div.withConfig({
|
|
1099
|
+
displayName: "FlagList__FlagListHeader",
|
|
1100
|
+
componentId: "SD__sc-te7hyy-0"
|
|
1101
|
+
})(["display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:12px 16px;background:", ";border:1px solid ", ";border-bottom:none;border-radius:4px 4px 0 0;", "{flex-direction:column;align-items:flex-start;}"], ColorDynamic.Silver200, ColorDynamic.Silver400, _ref => {
|
|
1102
|
+
var {
|
|
1103
|
+
theme
|
|
1104
|
+
} = _ref;
|
|
1105
|
+
return theme.breakpoints.down('xs');
|
|
1106
|
+
});
|
|
1107
|
+
var FlagListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
1108
|
+
displayName: "FlagList__FlagListContainer",
|
|
1109
|
+
componentId: "SD__sc-te7hyy-1"
|
|
1110
|
+
})(["display:flex;flex-direction:column;"]);
|
|
1111
|
+
var FlagList = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
1112
|
+
var {
|
|
1113
|
+
isStandalone = false,
|
|
1114
|
+
title,
|
|
1115
|
+
endAction,
|
|
1116
|
+
children
|
|
1117
|
+
} = _ref2;
|
|
1118
|
+
return /*#__PURE__*/jsxs(FlagListContainer, {
|
|
1119
|
+
"data-variant": isStandalone ? 'standalone' : 'with-header',
|
|
1120
|
+
ref: ref,
|
|
1121
|
+
children: [(title || endAction) && /*#__PURE__*/jsxs(FlagListHeader, {
|
|
1122
|
+
children: [title, endAction]
|
|
1123
|
+
}), children]
|
|
1124
|
+
});
|
|
1125
|
+
});
|
|
1126
|
+
if (process.env.NODE_ENV !== "production") FlagList.displayName = "FlagList";
|
|
1127
|
+
|
|
1128
|
+
var _excluded$6 = ["variant", "showHelpIcon", "endAction", "children"];
|
|
1129
|
+
var IconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
1130
|
+
displayName: "FlagListItem__IconContainer",
|
|
1131
|
+
componentId: "SD__sc-o5bqru-0"
|
|
1132
|
+
})(["padding:4px;border-radius:50%;background:", ";color:", ";transition:", ";& .MuiSvgIcon-root{font-size:16px;}"], ColorDynamic.Silver200, ColorDynamic.Blue300, _ref => {
|
|
1133
|
+
var {
|
|
1134
|
+
theme
|
|
1135
|
+
} = _ref;
|
|
1136
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
1137
|
+
});
|
|
1138
|
+
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
1139
|
+
displayName: "FlagListItem__Content",
|
|
1140
|
+
componentId: "SD__sc-o5bqru-1"
|
|
1141
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
1142
|
+
var EndActions = /*#__PURE__*/styled.div.withConfig({
|
|
1143
|
+
displayName: "FlagListItem__EndActions",
|
|
1144
|
+
componentId: "SD__sc-o5bqru-2"
|
|
1145
|
+
})(["display:flex;align-items:center;margin-left:auto;gap:8px;& > svg{font-size:16px;color:", ";}", "{margin-left:0;width:100%;}"], ColorDynamic.Dark500, _ref2 => {
|
|
1146
|
+
var {
|
|
1147
|
+
theme
|
|
1148
|
+
} = _ref2;
|
|
1149
|
+
return theme.breakpoints.down('xs');
|
|
1150
|
+
});
|
|
1151
|
+
var BannerListItemDanger = /*#__PURE__*/css(["& ", "{background:", ";color:", ";}&:hover{background:", ";}"], IconContainer, ColorDynamic.Red50, ColorDynamic.Red300, ColorDynamic.Red50);
|
|
1152
|
+
var BannerListItemStandalone = /*#__PURE__*/css(["background:", ";"], ColorDynamic.Silver200);
|
|
1153
|
+
var BannerListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
1154
|
+
displayName: "FlagListItem__BannerListContainer",
|
|
1155
|
+
componentId: "SD__sc-o5bqru-3"
|
|
1156
|
+
})(["display:inline-flex;align-items:center;padding:8px 16px 8px 12px;border:1px solid ", ";background:", ";cursor:default;transition:", ";& + &{border-top:none;}&:last-child{border-radius:0 0 4px 4px;}&:hover{background:", ";& ", "{background:", ";}& ", " > svg{color:", ";}}[data-variant='standalone'] &:not(:hover){", "}", " ", "{flex-direction:column;align-items:flex-start;}"], ColorDynamic.Silver400, ColorDynamic.White, _ref3 => {
|
|
1157
|
+
var {
|
|
1158
|
+
theme
|
|
1159
|
+
} = _ref3;
|
|
1160
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
1161
|
+
}, ColorDynamic.Blue50, IconContainer, ColorDynamic.White, EndActions, _ref4 => {
|
|
1162
|
+
var {
|
|
1163
|
+
$variant
|
|
1164
|
+
} = _ref4;
|
|
1165
|
+
return $variant === 'danger' ? ColorDynamic.Red300 : ColorDynamic.Blue300;
|
|
1166
|
+
}, BannerListItemStandalone, _ref5 => {
|
|
1167
|
+
var {
|
|
1168
|
+
$variant
|
|
1169
|
+
} = _ref5;
|
|
1170
|
+
return $variant === 'danger' ? BannerListItemDanger : null;
|
|
1171
|
+
}, _ref6 => {
|
|
1172
|
+
var {
|
|
1173
|
+
theme
|
|
1174
|
+
} = _ref6;
|
|
1175
|
+
return theme.breakpoints.down('xs');
|
|
1176
|
+
});
|
|
1177
|
+
var FlagListItem = /*#__PURE__*/forwardRef((_ref7, ref) => {
|
|
1178
|
+
var {
|
|
1179
|
+
variant = 'primary',
|
|
1180
|
+
showHelpIcon,
|
|
1181
|
+
endAction,
|
|
1182
|
+
children
|
|
1183
|
+
} = _ref7,
|
|
1184
|
+
rest = _objectWithoutProperties(_ref7, _excluded$6);
|
|
1185
|
+
return /*#__PURE__*/jsxs(BannerListContainer, _objectSpread(_objectSpread({}, rest), {}, {
|
|
1186
|
+
ref: ref,
|
|
1187
|
+
$variant: variant,
|
|
1188
|
+
children: [/*#__PURE__*/jsxs(Content, {
|
|
1189
|
+
children: [/*#__PURE__*/jsx(IconContainer, {
|
|
1190
|
+
children: variant === 'danger' ? /*#__PURE__*/jsx(Error$1, {}) : variant === 'warning' ? /*#__PURE__*/jsx(Warning, {}) : /*#__PURE__*/jsx(Flag, {})
|
|
1191
|
+
}), children]
|
|
1192
|
+
}), /*#__PURE__*/jsxs(EndActions, {
|
|
1193
|
+
children: [endAction, showHelpIcon && /*#__PURE__*/jsx(Help, {})]
|
|
1194
|
+
})]
|
|
1195
|
+
}));
|
|
1196
|
+
});
|
|
1197
|
+
if (process.env.NODE_ENV !== "production") FlagListItem.displayName = "FlagListItem";
|
|
1198
|
+
|
|
1199
|
+
var _excluded$7 = ["color", "target", "rel"],
|
|
1099
1200
|
_excluded2$2 = ["children", "linkComponent"];
|
|
1100
1201
|
var DefaultLinkComponent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1101
1202
|
var {
|
|
@@ -1103,7 +1204,7 @@ var DefaultLinkComponent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1103
1204
|
target = '_blank',
|
|
1104
1205
|
rel = 'noreferrer noopener'
|
|
1105
1206
|
} = _ref,
|
|
1106
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1207
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1107
1208
|
return /*#__PURE__*/jsx(Link, _objectSpread(_objectSpread({}, props), {}, {
|
|
1108
1209
|
ref: ref,
|
|
1109
1210
|
rel: rel,
|
|
@@ -1149,7 +1250,7 @@ function useNavbarContext() {
|
|
|
1149
1250
|
return useContext(NavbarContext);
|
|
1150
1251
|
}
|
|
1151
1252
|
|
|
1152
|
-
var _excluded$
|
|
1253
|
+
var _excluded$8 = ["active", "hasBadge"];
|
|
1153
1254
|
var StyledBottomNavigation = /*#__PURE__*/styled(BottomNavigation).withConfig({
|
|
1154
1255
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
1155
1256
|
componentId: "SD__sc-9z6v3k-0"
|
|
@@ -1193,7 +1294,7 @@ function NavbarBottomBar(_ref) {
|
|
|
1193
1294
|
active,
|
|
1194
1295
|
hasBadge
|
|
1195
1296
|
} = _ref2,
|
|
1196
|
-
item = _objectWithoutProperties(_ref2, _excluded$
|
|
1297
|
+
item = _objectWithoutProperties(_ref2, _excluded$8);
|
|
1197
1298
|
return /*#__PURE__*/createElement(StyledBottomNavigationAction, _objectSpread(_objectSpread({}, item), {}, {
|
|
1198
1299
|
key: item.value,
|
|
1199
1300
|
icon: hasBadge ? /*#__PURE__*/jsxs(IconWrapper, {
|
|
@@ -1410,7 +1511,7 @@ function NavbarMenuItem(_ref5) {
|
|
|
1410
1511
|
})
|
|
1411
1512
|
});
|
|
1412
1513
|
}
|
|
1413
|
-
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
1514
|
+
var Content$1 = /*#__PURE__*/styled.div.withConfig({
|
|
1414
1515
|
displayName: "NavbarList__Content",
|
|
1415
1516
|
componentId: "SD__sc-19zrmxc-5"
|
|
1416
1517
|
})(["height:100%;min-height:50px;overflow-y:auto;overflow-x:hidden;&[aria-expanded='false']{", ",", "{display:none;}}&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:100vw;margin-bottom:100px;}"], NavbarBadge, NavbarLabel, ColorDark.Silver500);
|
|
@@ -1448,7 +1549,7 @@ function NavbarList(_ref6) {
|
|
|
1448
1549
|
},
|
|
1449
1550
|
children: isMenuExpanded ? /*#__PURE__*/jsx(MenuOpen, {}) : /*#__PURE__*/jsx(Menu, {})
|
|
1450
1551
|
})]
|
|
1451
|
-
}), /*#__PURE__*/jsx(Content, {
|
|
1552
|
+
}), /*#__PURE__*/jsx(Content$1, {
|
|
1452
1553
|
"aria-expanded": isSidebarOpened,
|
|
1453
1554
|
children: filteredItems.map(item => {
|
|
1454
1555
|
var index = filteredItems.indexOf(item);
|
|
@@ -1553,7 +1654,7 @@ function Navbar(_ref) {
|
|
|
1553
1654
|
});
|
|
1554
1655
|
}
|
|
1555
1656
|
|
|
1556
|
-
var _excluded$
|
|
1657
|
+
var _excluded$9 = ["title", "subtitle", "children"];
|
|
1557
1658
|
var StyledTypography = /*#__PURE__*/styled(Typography).withConfig({
|
|
1558
1659
|
displayName: "NavbarAvatar__StyledTypography",
|
|
1559
1660
|
componentId: "SD__sc-19q2zd0-0"
|
|
@@ -1564,7 +1665,7 @@ function NavbarAvatar(_ref) {
|
|
|
1564
1665
|
subtitle,
|
|
1565
1666
|
children
|
|
1566
1667
|
} = _ref,
|
|
1567
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1668
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1568
1669
|
var {
|
|
1569
1670
|
isNavbarExpanded
|
|
1570
1671
|
} = useNavbarContext();
|
|
@@ -1774,7 +1875,7 @@ var SidebarContainer = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1774
1875
|
});
|
|
1775
1876
|
if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "SidebarContainer";
|
|
1776
1877
|
|
|
1777
|
-
var _excluded$
|
|
1878
|
+
var _excluded$a = ["onClick", "children"];
|
|
1778
1879
|
function SidebarBackButton(_ref) {
|
|
1779
1880
|
var {
|
|
1780
1881
|
onClick: _onClick,
|
|
@@ -1782,7 +1883,7 @@ function SidebarBackButton(_ref) {
|
|
|
1782
1883
|
fontSize: "small"
|
|
1783
1884
|
})
|
|
1784
1885
|
} = _ref,
|
|
1785
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1886
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1786
1887
|
var isCollapsed = useCollapseBreakpoint('sm');
|
|
1787
1888
|
var {
|
|
1788
1889
|
openSidebar
|
|
@@ -2148,5 +2249,5 @@ var SidebarSubheader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2148
2249
|
});
|
|
2149
2250
|
if (process.env.NODE_ENV !== "production") SidebarSubheader.displayName = "SidebarSubheader";
|
|
2150
2251
|
|
|
2151
|
-
export { Alert, AnchorButton, Banner, Box, Button, ButtonArea, Chat, ChatMessage, Container, DescriptionItem, DescriptionLineItem, DottedLine, FileDropZone, FileListItem, LinkedText, MultilineText, Navbar, NavbarAvatar, NavbarBadge, NavbarBottomBar, NavbarItem, NavbarLabel, NavbarList, NavbarMenu, NavbarMenuItem, Sidebar, SidebarBackButton, SidebarContainer, SidebarContent, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes, useNavbarContext, useSidebarContext };
|
|
2252
|
+
export { Alert, AnchorButton, Banner, Box, Button, ButtonArea, Chat, ChatMessage, Container, DescriptionItem, DescriptionLineItem, DottedLine, FileDropZone, FileListItem, FlagList, FlagListItem, LinkedText, MultilineText, Navbar, NavbarAvatar, NavbarBadge, NavbarBottomBar, NavbarItem, NavbarLabel, NavbarList, NavbarMenu, NavbarMenuItem, Sidebar, SidebarBackButton, SidebarContainer, SidebarContent, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemAvatar, SidebarSubheader, TextBox, formatBytes, toBytes, useNavbarContext, useSidebarContext };
|
|
2152
2253
|
//# sourceMappingURL=index.js.map
|