@takumi-rs/helpers 0.11.3 → 0.12.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/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -168,6 +168,12 @@ export type SidesValue<T> = T | [
|
|
|
168
168
|
* Corresponds to CSS text-align property values.
|
|
169
169
|
*/
|
|
170
170
|
export type TextAlign = "left" | "right" | "center" | "justify" | "start" | "end";
|
|
171
|
+
/**
|
|
172
|
+
* Defines how text should be overflowed.
|
|
173
|
+
*
|
|
174
|
+
* This enum determines how text should be handled when it exceeds the container width.
|
|
175
|
+
*/
|
|
176
|
+
export type TextOverflow = "ellipsis" | "clip";
|
|
171
177
|
/**
|
|
172
178
|
* Main styling structure that contains all layout and visual properties.
|
|
173
179
|
*
|
|
@@ -268,6 +274,10 @@ export type Style = {
|
|
|
268
274
|
* Box shadow for the element
|
|
269
275
|
*/
|
|
270
276
|
box_shadow?: BoxShadowInput;
|
|
277
|
+
/**
|
|
278
|
+
* How text should be overflowed
|
|
279
|
+
*/
|
|
280
|
+
text_overflow?: TextOverflow;
|
|
271
281
|
/**
|
|
272
282
|
* Color of the element's border
|
|
273
283
|
*/
|