@xsolla/xui-primitives-core 0.196.0 → 0.197.0
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/index.d.mts +12 -1
- package/index.d.ts +12 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -123,8 +123,19 @@ interface TextProps {
|
|
|
123
123
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
124
124
|
textAlign?: "left" | "center" | "right" | "justify";
|
|
125
125
|
textDecoration?: "none" | "underline" | "line-through";
|
|
126
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Limits text to N lines with ellipsis truncation (native equivalent of
|
|
128
|
+
* noWrap). Native forwards this to `RNText`; web emits the matching CSS —
|
|
129
|
+
* `1` clamps a single line with `text-overflow: ellipsis`, `> 1` clamps with
|
|
130
|
+
* `-webkit-line-clamp`. The clamped element is laid out as a block capped at
|
|
131
|
+
* `max-width: 100%`, and is free to shrink inside a flex row.
|
|
132
|
+
*/
|
|
127
133
|
numberOfLines?: number;
|
|
134
|
+
/**
|
|
135
|
+
* Native browser tooltip shown on hover. Pair it with `numberOfLines` to keep
|
|
136
|
+
* a truncated string readable in full. Web only — ignored on native.
|
|
137
|
+
*/
|
|
138
|
+
title?: string;
|
|
128
139
|
style?: React.CSSProperties;
|
|
129
140
|
className?: string;
|
|
130
141
|
id?: string;
|
package/index.d.ts
CHANGED
|
@@ -123,8 +123,19 @@ interface TextProps {
|
|
|
123
123
|
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
124
124
|
textAlign?: "left" | "center" | "right" | "justify";
|
|
125
125
|
textDecoration?: "none" | "underline" | "line-through";
|
|
126
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Limits text to N lines with ellipsis truncation (native equivalent of
|
|
128
|
+
* noWrap). Native forwards this to `RNText`; web emits the matching CSS —
|
|
129
|
+
* `1` clamps a single line with `text-overflow: ellipsis`, `> 1` clamps with
|
|
130
|
+
* `-webkit-line-clamp`. The clamped element is laid out as a block capped at
|
|
131
|
+
* `max-width: 100%`, and is free to shrink inside a flex row.
|
|
132
|
+
*/
|
|
127
133
|
numberOfLines?: number;
|
|
134
|
+
/**
|
|
135
|
+
* Native browser tooltip shown on hover. Pair it with `numberOfLines` to keep
|
|
136
|
+
* a truncated string readable in full. Web only — ignored on native.
|
|
137
|
+
*/
|
|
138
|
+
title?: string;
|
|
128
139
|
style?: React.CSSProperties;
|
|
129
140
|
className?: string;
|
|
130
141
|
id?: string;
|