@descope-ui/descope-text 3.11.0 → 3.11.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/package.json +4 -4
- package/src/component/TextClass.js +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-text",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"src",
|
|
6
6
|
"stories"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@playwright/test": "1.58.2",
|
|
21
|
-
"e2e-utils": "3.11.
|
|
21
|
+
"e2e-utils": "3.11.2"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@descope-ui/common": "3.11.
|
|
25
|
-
"@descope-ui/theme-globals": "3.11.
|
|
24
|
+
"@descope-ui/common": "3.11.2",
|
|
25
|
+
"@descope-ui/theme-globals": "3.11.2"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"link-workspace-packages": false
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
createStyleMixin,
|
|
3
3
|
draggableMixin,
|
|
4
4
|
componentNameValidationMixin,
|
|
5
|
+
stretchMixin,
|
|
5
6
|
} from '@descope-ui/common/components-mixins';
|
|
6
7
|
import { compose } from '@descope-ui/common/utils';
|
|
7
8
|
import {
|
|
@@ -24,7 +25,8 @@ class RawText extends createBaseClass({
|
|
|
24
25
|
<slot part="text-wrapper"></slot>
|
|
25
26
|
`;
|
|
26
27
|
|
|
27
|
-
injectStyle(
|
|
28
|
+
injectStyle(
|
|
29
|
+
`
|
|
28
30
|
:host {
|
|
29
31
|
display: inline-block;
|
|
30
32
|
line-height: 1em;
|
|
@@ -33,7 +35,9 @@ class RawText extends createBaseClass({
|
|
|
33
35
|
width: 100%;
|
|
34
36
|
display: inline-block;
|
|
35
37
|
}
|
|
36
|
-
`,
|
|
38
|
+
`,
|
|
39
|
+
this,
|
|
40
|
+
);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
get hideWhenEmpty() {
|
|
@@ -51,8 +55,8 @@ class RawText extends createBaseClass({
|
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
const { host } = {
|
|
54
|
-
host: { selector: () => ':host' }
|
|
55
|
-
}
|
|
58
|
+
host: { selector: () => ':host' },
|
|
59
|
+
};
|
|
56
60
|
|
|
57
61
|
export const TextClass = compose(
|
|
58
62
|
createStyleMixin({
|
|
@@ -60,9 +64,7 @@ export const TextClass = compose(
|
|
|
60
64
|
hostWidth: { ...host, property: 'width' },
|
|
61
65
|
hostDirection: { ...host, property: 'direction' },
|
|
62
66
|
fontSize: {},
|
|
63
|
-
textColor: [
|
|
64
|
-
{ property: 'color' }
|
|
65
|
-
],
|
|
67
|
+
textColor: [{ property: 'color' }],
|
|
66
68
|
textLineHeight: { property: 'line-height' },
|
|
67
69
|
textLetterSpacing: { property: 'letter-spacing' },
|
|
68
70
|
textShadow: {},
|
|
@@ -76,6 +78,7 @@ export const TextClass = compose(
|
|
|
76
78
|
borderColor: {},
|
|
77
79
|
},
|
|
78
80
|
}),
|
|
81
|
+
stretchMixin({ triggers: [{ attr: 'full-width', value: 'true' }] }),
|
|
79
82
|
draggableMixin,
|
|
80
83
|
componentNameValidationMixin,
|
|
81
84
|
)(RawText);
|