@gooddata/sdk-ui-kit 11.37.0-alpha.3 → 11.37.0-alpha.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.
@@ -1,5 +1,5 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // (C) 2007-2025 GoodData Corporation
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // (C) 2007-2026 GoodData Corporation
3
3
  import { PureComponent, createRef } from "react";
4
4
  import cx from "classnames";
5
5
  import { Bubble } from "../Bubble/Bubble.js";
@@ -106,10 +106,13 @@ export class ShortenedText extends PureComponent {
106
106
  }
107
107
  renderText() {
108
108
  const TagName = this.props.tagName;
109
+ const isShortened = this.state.customTitle;
109
110
  return (_jsx(TagName, { ref: this.textRef, className: cx(this.props.className, "shortened", {
110
- "is-shortened": this.state.customTitle,
111
- "is-whole": !this.state.customTitle,
112
- }), id: this.props.id, children: this.state.title }));
111
+ "is-shortened": isShortened,
112
+ "is-whole": !isShortened,
113
+ }), id: this.props.id, children: isShortened ? (_jsxs(_Fragment, { children: [
114
+ _jsx("span", { "aria-hidden": "true", children: this.state.title }), _jsx("span", { className: "sr-only", children: this.props.children })
115
+ ] })) : (this.state.title) }));
113
116
  }
114
117
  render() {
115
118
  if (this.state.customTitle && this.props.displayTooltip) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "11.37.0-alpha.3",
3
+ "version": "11.37.0-alpha.5",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -75,11 +75,11 @@
75
75
  "tslib": "2.8.1",
76
76
  "unified": "^11.0.5",
77
77
  "uuid": "11.1.0",
78
- "@gooddata/sdk-backend-spi": "11.37.0-alpha.3",
79
- "@gooddata/sdk-model": "11.37.0-alpha.3",
80
- "@gooddata/util": "11.37.0-alpha.3",
81
- "@gooddata/sdk-ui-theme-provider": "11.37.0-alpha.3",
82
- "@gooddata/sdk-ui": "11.37.0-alpha.3"
78
+ "@gooddata/sdk-backend-spi": "11.37.0-alpha.5",
79
+ "@gooddata/sdk-model": "11.37.0-alpha.5",
80
+ "@gooddata/sdk-ui": "11.37.0-alpha.5",
81
+ "@gooddata/sdk-ui-theme-provider": "11.37.0-alpha.5",
82
+ "@gooddata/util": "11.37.0-alpha.5"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-documenter": "^7.17.0",
@@ -128,11 +128,11 @@
128
128
  "typescript": "5.9.3",
129
129
  "vitest": "4.1.0",
130
130
  "vitest-dom": "0.1.1",
131
- "@gooddata/eslint-config": "11.37.0-alpha.3",
132
- "@gooddata/oxlint-config": "11.37.0-alpha.3",
133
- "@gooddata/reference-workspace": "11.37.0-alpha.3",
134
- "@gooddata/sdk-backend-mockingbird": "11.37.0-alpha.3",
135
- "@gooddata/stylelint-config": "11.37.0-alpha.3"
131
+ "@gooddata/eslint-config": "11.37.0-alpha.5",
132
+ "@gooddata/oxlint-config": "11.37.0-alpha.5",
133
+ "@gooddata/reference-workspace": "11.37.0-alpha.5",
134
+ "@gooddata/sdk-backend-mockingbird": "11.37.0-alpha.5",
135
+ "@gooddata/stylelint-config": "11.37.0-alpha.5"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "react": "^18.0.0 || ^19.0.0",