@telefonica/mistica 11.12.1 → 11.12.2
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/dist/package-version.js +1 -1
- package/dist/text.js +7 -3
- package/dist-es/package-version.js +1 -1
- package/dist-es/text.js +7 -3
- package/package.json +1 -1
package/dist/package-version.js
CHANGED
package/dist/text.js
CHANGED
|
@@ -119,9 +119,12 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
119
119
|
return wordBreak ? "anywhere" : "inherit";
|
|
120
120
|
},
|
|
121
121
|
"@supports not (overflow-wrap: anywhere)": {
|
|
122
|
+
// "overflow-wrap: anywhere" is not supported in Safari
|
|
123
|
+
// "word-break: break-word" has the same effect as "word-break: normal" and "overflow-wrap: anywhere",
|
|
124
|
+
// regardless of the actual value of the overflow-wrap property.
|
|
122
125
|
wordBreak: function wordBreak(param) {
|
|
123
126
|
var wordBreak1 = param.wordBreak;
|
|
124
|
-
return wordBreak1 ? "break-
|
|
127
|
+
return wordBreak1 ? "break-word" : "inherit";
|
|
125
128
|
}
|
|
126
129
|
},
|
|
127
130
|
// Needed to reset the default browser margin that adds to p, h1, h2... elements.
|
|
@@ -140,10 +143,11 @@ var useStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
140
143
|
"-webkit-line-clamp": lineClamp,
|
|
141
144
|
lineClamp: lineClamp,
|
|
142
145
|
wordBreak: function wordBreak(param) {
|
|
143
|
-
var
|
|
144
|
-
return
|
|
146
|
+
var truncate = param.truncate;
|
|
147
|
+
return truncate === 1 || truncate === true ? "break-all" : "break-word";
|
|
145
148
|
},
|
|
146
149
|
"@supports (overflow-wrap: anywhere)": {
|
|
150
|
+
overflowWrap: "anywhere",
|
|
147
151
|
wordBreak: function wordBreak(param) {
|
|
148
152
|
var truncate = param.truncate;
|
|
149
153
|
return truncate === 1 || truncate === true ? "break-all" : "normal";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
|
|
2
|
-
export var PACKAGE_VERSION = "11.12.
|
|
2
|
+
export var PACKAGE_VERSION = "11.12.2";
|
package/dist-es/text.js
CHANGED
|
@@ -87,9 +87,12 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
87
87
|
return wordBreak ? "anywhere" : "inherit";
|
|
88
88
|
},
|
|
89
89
|
"@supports not (overflow-wrap: anywhere)": {
|
|
90
|
+
// "overflow-wrap: anywhere" is not supported in Safari
|
|
91
|
+
// "word-break: break-word" has the same effect as "word-break: normal" and "overflow-wrap: anywhere",
|
|
92
|
+
// regardless of the actual value of the overflow-wrap property.
|
|
90
93
|
wordBreak: function(param) {
|
|
91
94
|
var wordBreak = param.wordBreak;
|
|
92
|
-
return wordBreak ? "break-
|
|
95
|
+
return wordBreak ? "break-word" : "inherit";
|
|
93
96
|
}
|
|
94
97
|
},
|
|
95
98
|
// Needed to reset the default browser margin that adds to p, h1, h2... elements.
|
|
@@ -108,10 +111,11 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
108
111
|
"-webkit-line-clamp": lineClamp,
|
|
109
112
|
lineClamp: lineClamp,
|
|
110
113
|
wordBreak: function(param) {
|
|
111
|
-
var
|
|
112
|
-
return
|
|
114
|
+
var truncate = param.truncate;
|
|
115
|
+
return truncate === 1 || truncate === true ? "break-all" : "break-word";
|
|
113
116
|
},
|
|
114
117
|
"@supports (overflow-wrap: anywhere)": {
|
|
118
|
+
overflowWrap: "anywhere",
|
|
115
119
|
wordBreak: function(param) {
|
|
116
120
|
var truncate = param.truncate;
|
|
117
121
|
return truncate === 1 || truncate === true ? "break-all" : "normal";
|