@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.es.js
CHANGED
|
@@ -1228,12 +1228,13 @@ const StyledFilterUpdate = styled.div`
|
|
|
1228
1228
|
`;
|
|
1229
1229
|
|
|
1230
1230
|
const Dropdown$1 = properties => {
|
|
1231
|
-
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;
|
|
1231
|
+
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;
|
|
1232
1232
|
const _generalTheme = generalThemeProperty === undefined ? themeProperty === undefined ? plurid : themeProperty : generalThemeProperty;
|
|
1233
1233
|
const _interactionTheme = interactionThemeProperty === undefined ? themeProperty === undefined ? plurid : themeProperty : interactionThemeProperty;
|
|
1234
1234
|
const _level = level !== null && level !== void 0 ? level : 0;
|
|
1235
1235
|
const _hideAtSelect = hideAtSelect !== null && hideAtSelect !== void 0 ? hideAtSelect : true;
|
|
1236
1236
|
const _selectAtHover = selectAtHover !== null && selectAtHover !== void 0 ? selectAtHover : false;
|
|
1237
|
+
const _dropdownSign = typeof dropdownSign === "string" ? dropdownSign : !dropdownSign ? "" : "▼";
|
|
1237
1238
|
const isMounted = useRef(true);
|
|
1238
1239
|
const filterInput = useRef(null);
|
|
1239
1240
|
const [generalTheme, setGeneralTheme] = useState(_generalTheme);
|
|
@@ -1397,7 +1398,7 @@ const Dropdown$1 = properties => {
|
|
|
1397
1398
|
},
|
|
1398
1399
|
theme: generalTheme,
|
|
1399
1400
|
selectedColor: selectedColor
|
|
1400
|
-
}, typeof selected === "string" ? selected : selected.value), showList && React.createElement(StyledDropdownList, {
|
|
1401
|
+
}, typeof selected === "string" ? selected : selected.value, _dropdownSign && React.createElement(React.Fragment, null, " ", _dropdownSign)), showList && React.createElement(StyledDropdownList, {
|
|
1401
1402
|
theme: interactionTheme,
|
|
1402
1403
|
left: left,
|
|
1403
1404
|
listTop: listTop,
|
|
@@ -2704,7 +2705,7 @@ const Selector = properties => {
|
|
|
2704
2705
|
const Sidebar = properties => {
|
|
2705
2706
|
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;
|
|
2706
2707
|
const openManualCount = openManual ? 1 : 0;
|
|
2707
|
-
const usageTypeCount = usageType === "PRIVATE_USAGE" ? 1 : 0;
|
|
2708
|
+
const usageTypeCount = usageType === "PRIVATE_USAGE" && logout ? 1 : 0;
|
|
2708
2709
|
const helpItemsCount = openManualCount + usageTypeCount;
|
|
2709
2710
|
const [mouseOverSelectors, setMouseOverSelectors] = useState(false);
|
|
2710
2711
|
const branding = React.createElement(StyledBranding, {
|