@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +10 -0
  2. 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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/helpers",
3
- "version": "0.11.3",
3
+ "version": "0.12.0",
4
4
  "author": {
5
5
  "email": "me@kane.tw",
6
6
  "name": "Kane Wang",