@tur-ng/std 0.0.1 → 0.0.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 +1 -1
- package/src/index.d.ts +26 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -284,7 +284,27 @@ declare module "tur:std" {
|
|
|
284
284
|
/** When `true`, the text can be drag-selected with the pointer. */
|
|
285
285
|
selectable?: boolean;
|
|
286
286
|
queryKey?: Val<string[]>;
|
|
287
|
-
|
|
287
|
+
/**
|
|
288
|
+
* Maximum number of lines to render. Ignored when `overflow` is
|
|
289
|
+
* `"visible"`. When omitted (or `0`), the text wraps without limit.
|
|
290
|
+
*/
|
|
291
|
+
maxLines?: Val<number>;
|
|
292
|
+
/**
|
|
293
|
+
* How content beyond `maxLines` is handled. Defaults to `"clip"`
|
|
294
|
+
* when `maxLines` is set.
|
|
295
|
+
* - `"clip"` — render at most `maxLines` lines, discard the rest.
|
|
296
|
+
* - `"ellipsis"` — render at most `maxLines` lines, appending `…`
|
|
297
|
+
* to the last visible line (trimmed to fit).
|
|
298
|
+
* - `"visible"` — render all lines; `maxLines` is ignored.
|
|
299
|
+
*/
|
|
300
|
+
overflow?: Val<TextOverflow>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* How `Text` handles content beyond `maxLines`. Mirrors Flutter's
|
|
305
|
+
* `TextOverflow`.
|
|
306
|
+
*/
|
|
307
|
+
export type TextOverflow = "clip" | "ellipsis" | "visible";
|
|
288
308
|
|
|
289
309
|
export interface PointerInteractProps {
|
|
290
310
|
onClick?: Mutation<[PointerInteractEvent]>;
|
|
@@ -412,6 +432,11 @@ declare module "tur:std" {
|
|
|
412
432
|
width?: Val<number>;
|
|
413
433
|
height?: Val<number>;
|
|
414
434
|
multiline?: Val<boolean>;
|
|
435
|
+
/** When true, each character is rendered as `obscuringCharacter`
|
|
436
|
+
* (password mode). The controller's `text` keeps the real value. */
|
|
437
|
+
obscureText?: Val<boolean>;
|
|
438
|
+
/** Mask glyph used when `obscureText` is on (default `"•"`). */
|
|
439
|
+
obscuringCharacter?: Val<string>;
|
|
415
440
|
onContextMenu?: Mutation<[PointerInteractEvent]>;
|
|
416
441
|
queryKey?: Val<string[]>;
|
|
417
442
|
}
|