@plurid/plurid-ui-components-react 0.0.0-22 → 0.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/distribution/index.js
CHANGED
|
@@ -1246,12 +1246,13 @@ const StyledFilterUpdate = styled__default.default.div`
|
|
|
1246
1246
|
`;
|
|
1247
1247
|
|
|
1248
1248
|
const Dropdown$1 = properties => {
|
|
1249
|
-
const {selected: selected, selectables: selectables, atSelect: atSelect, left: left, kind: kind, listTop: listTop, dropdownToggled: dropdownToggled, hideAtSelect: hideAtSelect, selectAtHover: selectAtHover, selectedColor: selectedColor, filterable: filterable, style: style, className: className, theme: themeProperty, generalTheme: generalThemeProperty, interactionTheme: interactionThemeProperty, level: level, heightItems: heightItems, width: width, setDropdownToggled: setDropdownToggled, filterUpdate: filterUpdate} = properties;
|
|
1249
|
+
const {selected: selected, selectables: selectables, atSelect: atSelect, left: left, kind: kind, listTop: listTop, dropdownToggled: dropdownToggled, dropdownSign: dropdownSign, hideAtSelect: hideAtSelect, selectAtHover: selectAtHover, selectedColor: selectedColor, filterable: filterable, style: style, className: className, theme: themeProperty, generalTheme: generalThemeProperty, interactionTheme: interactionThemeProperty, level: level, heightItems: heightItems, width: width, setDropdownToggled: setDropdownToggled, filterUpdate: filterUpdate} = properties;
|
|
1250
1250
|
const _generalTheme = generalThemeProperty === undefined ? themeProperty === undefined ? themes.plurid : themeProperty : generalThemeProperty;
|
|
1251
1251
|
const _interactionTheme = interactionThemeProperty === undefined ? themeProperty === undefined ? themes.plurid : themeProperty : interactionThemeProperty;
|
|
1252
1252
|
const _level = level !== null && level !== void 0 ? level : 0;
|
|
1253
1253
|
const _hideAtSelect = hideAtSelect !== null && hideAtSelect !== void 0 ? hideAtSelect : true;
|
|
1254
1254
|
const _selectAtHover = selectAtHover !== null && selectAtHover !== void 0 ? selectAtHover : false;
|
|
1255
|
+
const _dropdownSign = typeof dropdownSign === "string" ? dropdownSign : !dropdownSign ? "" : "▼";
|
|
1255
1256
|
const isMounted = React.useRef(true);
|
|
1256
1257
|
const filterInput = React.useRef(null);
|
|
1257
1258
|
const [generalTheme, setGeneralTheme] = React.useState(_generalTheme);
|
|
@@ -1415,7 +1416,7 @@ const Dropdown$1 = properties => {
|
|
|
1415
1416
|
},
|
|
1416
1417
|
theme: generalTheme,
|
|
1417
1418
|
selectedColor: selectedColor
|
|
1418
|
-
}, typeof selected === "string" ? selected : selected.value), showList && React__default.default.createElement(StyledDropdownList, {
|
|
1419
|
+
}, typeof selected === "string" ? selected : selected.value, _dropdownSign && React__default.default.createElement(React__default.default.Fragment, null, " ", _dropdownSign)), showList && React__default.default.createElement(StyledDropdownList, {
|
|
1419
1420
|
theme: interactionTheme,
|
|
1420
1421
|
left: left,
|
|
1421
1422
|
listTop: listTop,
|
|
@@ -2722,7 +2723,7 @@ const Selector = properties => {
|
|
|
2722
2723
|
const Sidebar = properties => {
|
|
2723
2724
|
const {dashboards: dashboards, theme: theme, compactSelectors: compactSelectors, setCompactSelectors: setCompactSelectors, selectedDashboard: selectedDashboard, setSelectedDashboard: setSelectedDashboard, identonym: identonym, usageType: usageType, openManual: openManual, logout: logout, rendererID: rendererID, brandingName: brandingName, brandingNameStyle: brandingNameStyle, brandingLogo: brandingLogo} = properties;
|
|
2724
2725
|
const openManualCount = openManual ? 1 : 0;
|
|
2725
|
-
const usageTypeCount = usageType === "PRIVATE_USAGE" ? 1 : 0;
|
|
2726
|
+
const usageTypeCount = usageType === "PRIVATE_USAGE" && logout ? 1 : 0;
|
|
2726
2727
|
const helpItemsCount = openManualCount + usageTypeCount;
|
|
2727
2728
|
const [mouseOverSelectors, setMouseOverSelectors] = React.useState(false);
|
|
2728
2729
|
const branding = React__default.default.createElement(StyledBranding, {
|