@takumi-rs/helpers 0.40.2 → 0.42.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, a as ColorInput } from './types-BkZQvNqZ.cjs';
2
- export { A as AnyNode, J as JsonValue, N as Node } from './types-BkZQvNqZ.cjs';
1
+ import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-RUwY6emy.cjs';
2
+ export { A as AnyNode, J as JsonValue, N as Node } from './types-RUwY6emy.cjs';
3
3
 
4
4
  declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
5
5
  declare function text(text: string, style?: PartialStyle): TextNode;
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, a as ColorInput } from './types-BkZQvNqZ.js';
2
- export { A as AnyNode, J as JsonValue, N as Node } from './types-BkZQvNqZ.js';
1
+ import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-RUwY6emy.js';
2
+ export { A as AnyNode, J as JsonValue, N as Node } from './types-RUwY6emy.js';
3
3
 
4
4
  declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
5
5
  declare function text(text: string, style?: PartialStyle): TextNode;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { N as Node } from '../types-BkZQvNqZ.cjs';
2
+ import { N as Node } from '../types-RUwY6emy.cjs';
3
3
 
4
4
  type ReactElementLike = {
5
5
  type: string | symbol | ((props: unknown) => ReactElementLike) | ReactElementLike;
package/dist/jsx/jsx.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { N as Node } from '../types-BkZQvNqZ.js';
2
+ import { N as Node } from '../types-RUwY6emy.js';
3
3
 
4
4
  type ReactElementLike = {
5
5
  type: string | symbol | ((props: unknown) => ReactElementLike) | ReactElementLike;
@@ -91,26 +91,10 @@ type LinearGradient = {
91
91
  * for controlling the noise characteristics and visual appearance.
92
92
  */
93
93
  type NoiseV1 = {
94
- /**
95
- * Controls the scale of the noise pattern. Higher values create finer, more detailed patterns
96
- */
97
- frequency?: number;
98
94
  /**
99
95
  * Random seed value that determines the unique noise pattern generated
100
96
  */
101
97
  seed?: number;
102
- /**
103
- * Number of noise layers combined to create complex patterns. More octaves add detail
104
- */
105
- octaves?: number;
106
- /**
107
- * Controls how much each octave contributes to the final pattern. Lower values create smoother patterns
108
- */
109
- persistence?: number;
110
- /**
111
- * Controls the frequency multiplier between octaves. Higher values create more varied patterns
112
- */
113
- lacunarity?: number;
114
98
  /**
115
99
  * Controls the opacity of the noise pattern. 0.0 is fully transparent, 1.0 is fully opaque
116
100
  */
@@ -172,13 +156,7 @@ type PositionKeywordY = "top" | "center" | "bottom";
172
156
  /**
173
157
  * A single `background-position` component for an axis.
174
158
  */
175
- type PositionComponent = {
176
- "keyword-x": PositionKeywordX;
177
- } | {
178
- "keyword-y": PositionKeywordY;
179
- } | {
180
- length: LengthUnit;
181
- };
159
+ type PositionComponent = PositionKeywordX | PositionKeywordY | LengthUnit;
182
160
 
183
161
  /**
184
162
  * Parsed `background-position` value for one layer.
@@ -91,26 +91,10 @@ type LinearGradient = {
91
91
  * for controlling the noise characteristics and visual appearance.
92
92
  */
93
93
  type NoiseV1 = {
94
- /**
95
- * Controls the scale of the noise pattern. Higher values create finer, more detailed patterns
96
- */
97
- frequency?: number;
98
94
  /**
99
95
  * Random seed value that determines the unique noise pattern generated
100
96
  */
101
97
  seed?: number;
102
- /**
103
- * Number of noise layers combined to create complex patterns. More octaves add detail
104
- */
105
- octaves?: number;
106
- /**
107
- * Controls how much each octave contributes to the final pattern. Lower values create smoother patterns
108
- */
109
- persistence?: number;
110
- /**
111
- * Controls the frequency multiplier between octaves. Higher values create more varied patterns
112
- */
113
- lacunarity?: number;
114
98
  /**
115
99
  * Controls the opacity of the noise pattern. 0.0 is fully transparent, 1.0 is fully opaque
116
100
  */
@@ -172,13 +156,7 @@ type PositionKeywordY = "top" | "center" | "bottom";
172
156
  /**
173
157
  * A single `background-position` component for an axis.
174
158
  */
175
- type PositionComponent = {
176
- "keyword-x": PositionKeywordX;
177
- } | {
178
- "keyword-y": PositionKeywordY;
179
- } | {
180
- length: LengthUnit;
181
- };
159
+ type PositionComponent = PositionKeywordX | PositionKeywordY | LengthUnit;
182
160
 
183
161
  /**
184
162
  * Parsed `background-position` value for one layer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/helpers",
3
- "version": "0.40.2",
3
+ "version": "0.42.0",
4
4
  "author": {
5
5
  "email": "me@kane.tw",
6
6
  "name": "Kane Wang",