@takumi-rs/helpers 0.36.2 → 0.37.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.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style } from './types-CsAVGMBu.cjs';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-CsAVGMBu.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents a color with 8-bit RGBA components.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style } from './types-CsAVGMBu.js';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-CsAVGMBu.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents a color with 8-bit RGBA components.
|
package/dist/jsx/jsx.d.cts
CHANGED
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -564,11 +564,32 @@ type LineHeight = number | string | LengthUnit;
|
|
|
564
564
|
*/
|
|
565
565
|
type ObjectFit = "fill" | "contain" | "cover" | "scale-down" | "none";
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* How children overflowing their container should affect layout
|
|
569
|
+
*/
|
|
570
|
+
type Overflow = "visible" | "hidden";
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Represents overflow values for both axes.
|
|
574
|
+
*
|
|
575
|
+
* Can be either a single value applied to both axes, or separate values
|
|
576
|
+
* for horizontal and vertical overflow.
|
|
577
|
+
*/
|
|
578
|
+
type Overflows = Overflow | [Overflow, Overflow] | string;
|
|
579
|
+
|
|
567
580
|
/**
|
|
568
581
|
* Controls how text should be overflowed.
|
|
569
582
|
*/
|
|
570
583
|
type OverflowWrap = "normal" | "anywhere" | "break-word";
|
|
571
584
|
|
|
585
|
+
/**
|
|
586
|
+
* Represents a percentage value (0.0-1.0) in CSS parsing.
|
|
587
|
+
*
|
|
588
|
+
* This struct wraps an f32 value that represents a percentage
|
|
589
|
+
* where 0.0 corresponds to 0% and 1.0 corresponds to 100%.
|
|
590
|
+
*/
|
|
591
|
+
type PercentageNumber = string | number;
|
|
592
|
+
|
|
572
593
|
/**
|
|
573
594
|
* Defines the positioning method for an element.
|
|
574
595
|
*
|
|
@@ -739,6 +760,7 @@ type WordBreak = "normal" | "break-all" | "keep-all";
|
|
|
739
760
|
*/
|
|
740
761
|
type Style = {
|
|
741
762
|
boxSizing: CssValue<BoxSizing>;
|
|
763
|
+
opacity: CssValue<PercentageNumber>;
|
|
742
764
|
display: CssValue<Display>;
|
|
743
765
|
width: CssValue<LengthUnit>;
|
|
744
766
|
height: CssValue<LengthUnit>;
|
|
@@ -797,6 +819,9 @@ type Style = {
|
|
|
797
819
|
borderLeftWidth: CssValue<CssOption<LengthUnit>>;
|
|
798
820
|
border: CssValue<Border>;
|
|
799
821
|
objectFit: CssValue<ObjectFit>;
|
|
822
|
+
overflow: CssValue<Overflows>;
|
|
823
|
+
overflowX: CssValue<CssOption<Overflow>>;
|
|
824
|
+
overflowY: CssValue<CssOption<Overflow>>;
|
|
800
825
|
objectPosition: CssValue<BackgroundPosition>;
|
|
801
826
|
backgroundImage: CssValue<CssOption<BackgroundImages>>;
|
|
802
827
|
backgroundPosition: CssValue<CssOption<BackgroundPositions>>;
|
|
@@ -564,11 +564,32 @@ type LineHeight = number | string | LengthUnit;
|
|
|
564
564
|
*/
|
|
565
565
|
type ObjectFit = "fill" | "contain" | "cover" | "scale-down" | "none";
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* How children overflowing their container should affect layout
|
|
569
|
+
*/
|
|
570
|
+
type Overflow = "visible" | "hidden";
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Represents overflow values for both axes.
|
|
574
|
+
*
|
|
575
|
+
* Can be either a single value applied to both axes, or separate values
|
|
576
|
+
* for horizontal and vertical overflow.
|
|
577
|
+
*/
|
|
578
|
+
type Overflows = Overflow | [Overflow, Overflow] | string;
|
|
579
|
+
|
|
567
580
|
/**
|
|
568
581
|
* Controls how text should be overflowed.
|
|
569
582
|
*/
|
|
570
583
|
type OverflowWrap = "normal" | "anywhere" | "break-word";
|
|
571
584
|
|
|
585
|
+
/**
|
|
586
|
+
* Represents a percentage value (0.0-1.0) in CSS parsing.
|
|
587
|
+
*
|
|
588
|
+
* This struct wraps an f32 value that represents a percentage
|
|
589
|
+
* where 0.0 corresponds to 0% and 1.0 corresponds to 100%.
|
|
590
|
+
*/
|
|
591
|
+
type PercentageNumber = string | number;
|
|
592
|
+
|
|
572
593
|
/**
|
|
573
594
|
* Defines the positioning method for an element.
|
|
574
595
|
*
|
|
@@ -739,6 +760,7 @@ type WordBreak = "normal" | "break-all" | "keep-all";
|
|
|
739
760
|
*/
|
|
740
761
|
type Style = {
|
|
741
762
|
boxSizing: CssValue<BoxSizing>;
|
|
763
|
+
opacity: CssValue<PercentageNumber>;
|
|
742
764
|
display: CssValue<Display>;
|
|
743
765
|
width: CssValue<LengthUnit>;
|
|
744
766
|
height: CssValue<LengthUnit>;
|
|
@@ -797,6 +819,9 @@ type Style = {
|
|
|
797
819
|
borderLeftWidth: CssValue<CssOption<LengthUnit>>;
|
|
798
820
|
border: CssValue<Border>;
|
|
799
821
|
objectFit: CssValue<ObjectFit>;
|
|
822
|
+
overflow: CssValue<Overflows>;
|
|
823
|
+
overflowX: CssValue<CssOption<Overflow>>;
|
|
824
|
+
overflowY: CssValue<CssOption<Overflow>>;
|
|
800
825
|
objectPosition: CssValue<BackgroundPosition>;
|
|
801
826
|
backgroundImage: CssValue<CssOption<BackgroundImages>>;
|
|
802
827
|
backgroundPosition: CssValue<CssOption<BackgroundPositions>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/helpers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "me@kane.tw",
|
|
6
6
|
"name": "Kane Wang",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"url": "git+https://github.com/kane50613/takumi.git"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/bun": "
|
|
13
|
+
"@types/bun": "catalog:",
|
|
14
14
|
"@types/react": "^19.2.2",
|
|
15
15
|
"@types/react-dom": "^19.2.2",
|
|
16
16
|
"bun-plugin-dts": "^0.3.0",
|
|
17
|
-
"lucide-react": "^0.
|
|
17
|
+
"lucide-react": "^0.546.0",
|
|
18
18
|
"react": "^19.2.0",
|
|
19
19
|
"react-dom": "^19.2.0",
|
|
20
20
|
"tsup": "^8.5.0",
|
|
21
|
-
"typescript": "
|
|
21
|
+
"typescript": "catalog:"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|