@superdispatch/ui-lab 0.43.0 → 0.44.1
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 +119 -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 +83 -0
- package/dist-src/index.js +2 -0
- package/dist-types/index.d.ts +18 -1
- package/dist-web/index.js +119 -12
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-node/index.js
CHANGED
|
@@ -1102,7 +1102,114 @@ var FileListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
1102
1102
|
});
|
|
1103
1103
|
if (process.env.NODE_ENV !== "production") FileListItem.displayName = "FileListItem";
|
|
1104
1104
|
|
|
1105
|
-
var
|
|
1105
|
+
var FlagListHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
1106
|
+
displayName: "FlagList__FlagListHeader",
|
|
1107
|
+
componentId: "SD__sc-te7hyy-0"
|
|
1108
|
+
})(["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;}"], ui.ColorDynamic.Silver200, ui.ColorDynamic.Silver400, _ref => {
|
|
1109
|
+
var {
|
|
1110
|
+
theme
|
|
1111
|
+
} = _ref;
|
|
1112
|
+
return theme.breakpoints.down('xs');
|
|
1113
|
+
});
|
|
1114
|
+
var FlagListContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
1115
|
+
displayName: "FlagList__FlagListContainer",
|
|
1116
|
+
componentId: "SD__sc-te7hyy-1"
|
|
1117
|
+
})(["display:flex;flex-direction:column;"]);
|
|
1118
|
+
var FlagList = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
1119
|
+
var {
|
|
1120
|
+
isStandalone = false,
|
|
1121
|
+
title,
|
|
1122
|
+
endAction,
|
|
1123
|
+
children
|
|
1124
|
+
} = _ref2;
|
|
1125
|
+
return /*#__PURE__*/jsxRuntime.jsxs(FlagListContainer, {
|
|
1126
|
+
"data-variant": isStandalone ? 'standalone' : 'with-header',
|
|
1127
|
+
ref: ref,
|
|
1128
|
+
children: [(title || endAction) && /*#__PURE__*/jsxRuntime.jsxs(FlagListHeader, {
|
|
1129
|
+
children: [title, endAction]
|
|
1130
|
+
}), children]
|
|
1131
|
+
});
|
|
1132
|
+
});
|
|
1133
|
+
if (process.env.NODE_ENV !== "production") FlagList.displayName = "FlagList";
|
|
1134
|
+
|
|
1135
|
+
var _excluded$6 = ["variant", "showHelpIcon", "endAction", "children"];
|
|
1136
|
+
var IconContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
1137
|
+
displayName: "FlagListItem__IconContainer",
|
|
1138
|
+
componentId: "SD__sc-o5bqru-0"
|
|
1139
|
+
})(["padding:4px;border-radius:50%;background:", ";color:", ";transition:", ";& .MuiSvgIcon-root{font-size:16px;}"], ui.ColorDynamic.Silver200, ui.ColorDynamic.Blue300, _ref => {
|
|
1140
|
+
var {
|
|
1141
|
+
theme
|
|
1142
|
+
} = _ref;
|
|
1143
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
1144
|
+
});
|
|
1145
|
+
var Content = /*#__PURE__*/styled__default.div.withConfig({
|
|
1146
|
+
displayName: "FlagListItem__Content",
|
|
1147
|
+
componentId: "SD__sc-o5bqru-1"
|
|
1148
|
+
})(["display:flex;align-items:center;width:100%;gap:8px;"]);
|
|
1149
|
+
var HelpIcon = /*#__PURE__*/styled__default.div.withConfig({
|
|
1150
|
+
displayName: "FlagListItem__HelpIcon",
|
|
1151
|
+
componentId: "SD__sc-o5bqru-2"
|
|
1152
|
+
})(["margin-left:auto;& > svg{font-size:16px;color:", ";}"], ui.ColorDynamic.Dark500);
|
|
1153
|
+
var EndActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
1154
|
+
displayName: "FlagListItem__EndActions",
|
|
1155
|
+
componentId: "SD__sc-o5bqru-3"
|
|
1156
|
+
})(["display:flex;align-items:center;margin-left:auto;gap:8px;", "{margin-left:0;width:100%;}"], _ref2 => {
|
|
1157
|
+
var {
|
|
1158
|
+
theme
|
|
1159
|
+
} = _ref2;
|
|
1160
|
+
return theme.breakpoints.down('xs');
|
|
1161
|
+
});
|
|
1162
|
+
var BannerListItemDanger = /*#__PURE__*/styled.css(["& ", "{background:", ";color:", ";}&:hover{background:", ";}"], IconContainer, ui.ColorDynamic.Red50, ui.ColorDynamic.Red300, ui.ColorDynamic.Red50);
|
|
1163
|
+
var BannerListItemStandalone = /*#__PURE__*/styled.css(["background:", ";"], ui.ColorDynamic.Silver200);
|
|
1164
|
+
var BannerListContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
1165
|
+
displayName: "FlagListItem__BannerListContainer",
|
|
1166
|
+
componentId: "SD__sc-o5bqru-4"
|
|
1167
|
+
})(["display:flex;align-items:center;gap:8px;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;}"], ui.ColorDynamic.Silver400, ui.ColorDynamic.White, _ref3 => {
|
|
1168
|
+
var {
|
|
1169
|
+
theme
|
|
1170
|
+
} = _ref3;
|
|
1171
|
+
return theme.transitions.create(['color', 'background-color']);
|
|
1172
|
+
}, ui.ColorDynamic.Blue50, IconContainer, ui.ColorDynamic.White, HelpIcon, _ref4 => {
|
|
1173
|
+
var {
|
|
1174
|
+
$variant
|
|
1175
|
+
} = _ref4;
|
|
1176
|
+
return $variant === 'danger' ? ui.ColorDynamic.Red300 : ui.ColorDynamic.Blue300;
|
|
1177
|
+
}, BannerListItemStandalone, _ref5 => {
|
|
1178
|
+
var {
|
|
1179
|
+
$variant
|
|
1180
|
+
} = _ref5;
|
|
1181
|
+
return $variant === 'danger' ? BannerListItemDanger : null;
|
|
1182
|
+
}, _ref6 => {
|
|
1183
|
+
var {
|
|
1184
|
+
theme
|
|
1185
|
+
} = _ref6;
|
|
1186
|
+
return theme.breakpoints.down('xs');
|
|
1187
|
+
});
|
|
1188
|
+
var FlagListItem = /*#__PURE__*/react.forwardRef((_ref7, ref) => {
|
|
1189
|
+
var {
|
|
1190
|
+
variant = 'primary',
|
|
1191
|
+
showHelpIcon,
|
|
1192
|
+
endAction,
|
|
1193
|
+
children
|
|
1194
|
+
} = _ref7,
|
|
1195
|
+
rest = _objectWithoutProperties(_ref7, _excluded$6);
|
|
1196
|
+
return /*#__PURE__*/jsxRuntime.jsxs(BannerListContainer, _objectSpread(_objectSpread({}, rest), {}, {
|
|
1197
|
+
ref: ref,
|
|
1198
|
+
$variant: variant,
|
|
1199
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(Content, {
|
|
1200
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(IconContainer, {
|
|
1201
|
+
children: variant === 'danger' ? /*#__PURE__*/jsxRuntime.jsx(icons.Error, {}) : variant === 'warning' ? /*#__PURE__*/jsxRuntime.jsx(icons.Warning, {}) : /*#__PURE__*/jsxRuntime.jsx(icons.Flag, {})
|
|
1202
|
+
}), children, /*#__PURE__*/jsxRuntime.jsx(HelpIcon, {
|
|
1203
|
+
children: showHelpIcon && /*#__PURE__*/jsxRuntime.jsx(icons.Help, {})
|
|
1204
|
+
})]
|
|
1205
|
+
}), endAction && /*#__PURE__*/jsxRuntime.jsx(EndActions, {
|
|
1206
|
+
children: endAction
|
|
1207
|
+
})]
|
|
1208
|
+
}));
|
|
1209
|
+
});
|
|
1210
|
+
if (process.env.NODE_ENV !== "production") FlagListItem.displayName = "FlagListItem";
|
|
1211
|
+
|
|
1212
|
+
var _excluded$7 = ["color", "target", "rel"],
|
|
1106
1213
|
_excluded2$2 = ["children", "linkComponent"];
|
|
1107
1214
|
var DefaultLinkComponent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
1108
1215
|
var {
|
|
@@ -1110,7 +1217,7 @@ var DefaultLinkComponent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
1110
1217
|
target = '_blank',
|
|
1111
1218
|
rel = 'noreferrer noopener'
|
|
1112
1219
|
} = _ref,
|
|
1113
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1220
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1114
1221
|
return /*#__PURE__*/jsxRuntime.jsx(core.Link, _objectSpread(_objectSpread({}, props), {}, {
|
|
1115
1222
|
ref: ref,
|
|
1116
1223
|
rel: rel,
|
|
@@ -1156,7 +1263,7 @@ function useNavbarContext() {
|
|
|
1156
1263
|
return react.useContext(NavbarContext);
|
|
1157
1264
|
}
|
|
1158
1265
|
|
|
1159
|
-
var _excluded$
|
|
1266
|
+
var _excluded$8 = ["active", "hasBadge"];
|
|
1160
1267
|
var StyledBottomNavigation = /*#__PURE__*/styled__default(core.BottomNavigation).withConfig({
|
|
1161
1268
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
1162
1269
|
componentId: "SD__sc-9z6v3k-0"
|
|
@@ -1200,7 +1307,7 @@ function NavbarBottomBar(_ref) {
|
|
|
1200
1307
|
active,
|
|
1201
1308
|
hasBadge
|
|
1202
1309
|
} = _ref2,
|
|
1203
|
-
item = _objectWithoutProperties(_ref2, _excluded$
|
|
1310
|
+
item = _objectWithoutProperties(_ref2, _excluded$8);
|
|
1204
1311
|
return /*#__PURE__*/react.createElement(StyledBottomNavigationAction, _objectSpread(_objectSpread({}, item), {}, {
|
|
1205
1312
|
key: item.value,
|
|
1206
1313
|
icon: hasBadge ? /*#__PURE__*/jsxRuntime.jsxs(IconWrapper, {
|
|
@@ -1417,7 +1524,7 @@ function NavbarMenuItem(_ref5) {
|
|
|
1417
1524
|
})
|
|
1418
1525
|
});
|
|
1419
1526
|
}
|
|
1420
|
-
var Content = /*#__PURE__*/styled__default.div.withConfig({
|
|
1527
|
+
var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
1421
1528
|
displayName: "NavbarList__Content",
|
|
1422
1529
|
componentId: "SD__sc-19zrmxc-5"
|
|
1423
1530
|
})(["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, ui.ColorDark.Silver500);
|
|
@@ -1455,7 +1562,7 @@ function NavbarList(_ref6) {
|
|
|
1455
1562
|
},
|
|
1456
1563
|
children: isMenuExpanded ? /*#__PURE__*/jsxRuntime.jsx(icons.MenuOpen, {}) : /*#__PURE__*/jsxRuntime.jsx(icons.Menu, {})
|
|
1457
1564
|
})]
|
|
1458
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Content, {
|
|
1565
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Content$1, {
|
|
1459
1566
|
"aria-expanded": isSidebarOpened,
|
|
1460
1567
|
children: filteredItems.map(item => {
|
|
1461
1568
|
var index = filteredItems.indexOf(item);
|
|
@@ -1560,7 +1667,7 @@ function Navbar(_ref) {
|
|
|
1560
1667
|
});
|
|
1561
1668
|
}
|
|
1562
1669
|
|
|
1563
|
-
var _excluded$
|
|
1670
|
+
var _excluded$9 = ["title", "subtitle", "children"];
|
|
1564
1671
|
var StyledTypography = /*#__PURE__*/styled__default(core.Typography).withConfig({
|
|
1565
1672
|
displayName: "NavbarAvatar__StyledTypography",
|
|
1566
1673
|
componentId: "SD__sc-19q2zd0-0"
|
|
@@ -1571,7 +1678,7 @@ function NavbarAvatar(_ref) {
|
|
|
1571
1678
|
subtitle,
|
|
1572
1679
|
children
|
|
1573
1680
|
} = _ref,
|
|
1574
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1681
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1575
1682
|
var {
|
|
1576
1683
|
isNavbarExpanded
|
|
1577
1684
|
} = useNavbarContext();
|
|
@@ -1781,7 +1888,7 @@ var SidebarContainer = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
|
1781
1888
|
});
|
|
1782
1889
|
if (process.env.NODE_ENV !== "production") SidebarContainer.displayName = "SidebarContainer";
|
|
1783
1890
|
|
|
1784
|
-
var _excluded$
|
|
1891
|
+
var _excluded$a = ["onClick", "children"];
|
|
1785
1892
|
function SidebarBackButton(_ref) {
|
|
1786
1893
|
var {
|
|
1787
1894
|
onClick: _onClick,
|
|
@@ -1789,7 +1896,7 @@ function SidebarBackButton(_ref) {
|
|
|
1789
1896
|
fontSize: "small"
|
|
1790
1897
|
})
|
|
1791
1898
|
} = _ref,
|
|
1792
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1899
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1793
1900
|
var isCollapsed = ui.useCollapseBreakpoint('sm');
|
|
1794
1901
|
var {
|
|
1795
1902
|
openSidebar
|
|
@@ -2169,6 +2276,8 @@ exports.DescriptionLineItem = DescriptionLineItem;
|
|
|
2169
2276
|
exports.DottedLine = DottedLine;
|
|
2170
2277
|
exports.FileDropZone = FileDropZone;
|
|
2171
2278
|
exports.FileListItem = FileListItem;
|
|
2279
|
+
exports.FlagList = FlagList;
|
|
2280
|
+
exports.FlagListItem = FlagListItem;
|
|
2172
2281
|
exports.LinkedText = LinkedText;
|
|
2173
2282
|
exports.MultilineText = MultilineText;
|
|
2174
2283
|
exports.Navbar = Navbar;
|