@takumi-rs/helpers 0.11.3 → 0.12.1
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 +16 -2
- package/package.json +4 -6
package/dist/index.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export type ObjectFit = "contain" | "cover" | "fill" | "scale-down" | "none";
|
|
|
145
145
|
*
|
|
146
146
|
* This enum determines how an element is positioned within its containing element.
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
type Position$1 = "static" | "relative" | "absolute" | "fixed" | "sticky";
|
|
149
149
|
/**
|
|
150
150
|
* Represents values that can be applied to all sides of an element.
|
|
151
151
|
*
|
|
@@ -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
|
*
|
|
@@ -239,7 +245,7 @@ export type Style = {
|
|
|
239
245
|
/**
|
|
240
246
|
* Positioning method (relative, absolute, etc.)
|
|
241
247
|
*/
|
|
242
|
-
position: Position;
|
|
248
|
+
position: Position$1;
|
|
243
249
|
/**
|
|
244
250
|
* Spacing between flex items
|
|
245
251
|
*/
|
|
@@ -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
|
*/
|
|
@@ -370,4 +380,8 @@ export declare function gradient(from: ColorInput, to: ColorInput, angle?: numbe
|
|
|
370
380
|
angle: number;
|
|
371
381
|
};
|
|
372
382
|
|
|
383
|
+
export {
|
|
384
|
+
Position$1 as Position,
|
|
385
|
+
};
|
|
386
|
+
|
|
373
387
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/helpers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "me@kane.tw",
|
|
6
6
|
"name": "Kane Wang",
|
|
@@ -19,12 +19,10 @@
|
|
|
19
19
|
"url": "git+https://github.com/kane50613/takumi.git"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/bun": "
|
|
22
|
+
"@types/bun": "catalog:",
|
|
23
23
|
"@types/react": "^19.1.8",
|
|
24
|
-
"bun-plugin-dts": "^0.3.0"
|
|
25
|
-
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"typescript": "^5"
|
|
24
|
+
"bun-plugin-dts": "^0.3.0",
|
|
25
|
+
"typescript": "catalog:"
|
|
28
26
|
},
|
|
29
27
|
"exports": {
|
|
30
28
|
"types": "./dist/index.d.ts",
|