oolib 2.237.3 → 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.
@@ -32,7 +32,7 @@ var getEmptyStatesConfig = function (_a) {
32
32
  };
33
33
  case "noDatasets":
34
34
  return {
35
- align: "center",
35
+ align: "left",
36
36
  image: {
37
37
  src: "contentListing",
38
38
  style: {
@@ -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 searchable, annotatable, AI-categorizable collection of documents.",
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());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.237.3",
3
+ "version": "2.237.5",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",