oolib 2.237.4 → 2.237.5
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.
|
@@ -41,7 +41,7 @@ var getEmptyStatesConfig = function (_a) {
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
title: "No datasets yet",
|
|
44
|
-
subtitle: "Import your first dataset to get started. Each dataset becomes a
|
|
44
|
+
subtitle: "Import your first dataset to get started. Each dataset becomes a annotatable collection of documents.",
|
|
45
45
|
button: {
|
|
46
46
|
text: "Import New Dataset",
|
|
47
47
|
},
|
|
@@ -125,6 +125,13 @@ function SwitchSingle(_a) {
|
|
|
125
125
|
isRequired: props.isRequired
|
|
126
126
|
}))); };
|
|
127
127
|
var genSwitchDisplay = function () {
|
|
128
|
+
// When no display text is provided AND no infoTooltip is configured,
|
|
129
|
+
// skip rendering the display slot entirely. Without this, an empty
|
|
130
|
+
// `<UI_BODY_SM_DF/>` still occupies line-height worth of space, which
|
|
131
|
+
// forces consumers wrapping SwitchSingle in their own label/layout to
|
|
132
|
+
// fight against phantom whitespace.
|
|
133
|
+
if (!option.display && !infoTooltip)
|
|
134
|
+
return null;
|
|
128
135
|
return infoTooltip ? (react_1.default.createElement("div", { style: { display: "flex", gap: ".5rem", alignItems: "center" } },
|
|
129
136
|
genDisplayText(),
|
|
130
137
|
react_1.default.createElement(Tooltip_1.Tooltip, __assign({ presetTarget: "infoIcon" }, infoTooltip)))) : (genDisplayText());
|