@spaced-out/ui-design-system 0.1.22 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.23](https://github.com/spaced-out/ui-design-system/compare/v0.1.22...v0.1.23) (2023-04-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * tooltip truncation fixes ([5152c75](https://github.com/spaced-out/ui-design-system/commit/5152c75ba37b28c32329f6662a89d85edaf0103a))
11
+
5
12
  ### [0.1.22](https://github.com/spaced-out/ui-design-system/compare/v0.1.21...v0.1.22) (2023-04-25)
6
13
 
7
14
 
@@ -109,7 +109,8 @@ const InContextAlert = /*#__PURE__*/React.forwardRef((props, ref) => {
109
109
  }), React.Children.count(children) > 0 && /*#__PURE__*/React.createElement(_Text.SubTitleExtraSmall, {
110
110
  className: (0, _classify.classify)(classNames?.alertText)
111
111
  }, /*#__PURE__*/React.createElement(_Truncate.Truncate, {
112
- line: 2
112
+ line: 2,
113
+ wordBreak: "initial"
113
114
  }, children)), !!(actionText || dismissable) && /*#__PURE__*/React.createElement("div", {
114
115
  className: (0, _classify.classify)(_InContextAlertModule.default.actionContainer, classNames?.actionContainer)
115
116
  }, !!actionText && /*#__PURE__*/React.createElement(_Link.Link, {
@@ -167,7 +167,9 @@ export const InContextAlert: React$AbstractComponent<
167
167
  />
168
168
  {React.Children.count(children) > 0 && (
169
169
  <SubTitleExtraSmall className={classify(classNames?.alertText)}>
170
- <Truncate line={2}>{children}</Truncate>
170
+ <Truncate line={2} wordBreak="initial">
171
+ {children}
172
+ </Truncate>
171
173
  </SubTitleExtraSmall>
172
174
  )}
173
175
  {!!(actionText || dismissable) && (
@@ -86,11 +86,13 @@ const Tooltip = _ref => {
86
86
  '--tooltip-elevation': elevation
87
87
  }
88
88
  }, getFloatingProps()), !!title && /*#__PURE__*/React.createElement(_Truncate.Truncate, {
89
- line: titleMaxLines
89
+ line: titleMaxLines,
90
+ wordBreak: "initial"
90
91
  }, /*#__PURE__*/React.createElement("div", {
91
92
  className: (0, _classify.classify)(_TooltipModule.default.title, classNames?.title)
92
93
  }, title)), !!body && /*#__PURE__*/React.createElement(_Truncate.Truncate, {
93
- line: bodyMaxLines
94
+ line: bodyMaxLines,
95
+ wordBreak: "initial"
94
96
  }, /*#__PURE__*/React.createElement("div", {
95
97
  className: (0, _classify.classify)(_TooltipModule.default.body, {
96
98
  [_TooltipModule.default.hasTitle]: !!title
@@ -153,7 +153,7 @@ export const Tooltip = ({
153
153
  {...getFloatingProps()}
154
154
  >
155
155
  {!!title && (
156
- <Truncate line={titleMaxLines}>
156
+ <Truncate line={titleMaxLines} wordBreak="initial">
157
157
  <div className={classify(css.title, classNames?.title)}>
158
158
  {title}
159
159
  </div>
@@ -161,7 +161,7 @@ export const Tooltip = ({
161
161
  )}
162
162
 
163
163
  {!!body && (
164
- <Truncate line={bodyMaxLines}>
164
+ <Truncate line={bodyMaxLines} wordBreak="initial">
165
165
  <div
166
166
  className={classify(
167
167
  css.body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {