@takumi-rs/helpers 0.40.2 → 0.41.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-Bx3KvFan.cjs';
2
+ export { A as AnyNode, J as JsonValue, N as Node } from './types-Bx3KvFan.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-Bx3KvFan.js';
2
+ export { A as AnyNode, J as JsonValue, N as Node } from './types-Bx3KvFan.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-Bx3KvFan.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-Bx3KvFan.js';
3
3
 
4
4
  type ReactElementLike = {
5
5
  type: string | symbol | ((props: unknown) => ReactElementLike) | ReactElementLike;
@@ -172,13 +172,7 @@ type PositionKeywordY = "top" | "center" | "bottom";
172
172
  /**
173
173
  * A single `background-position` component for an axis.
174
174
  */
175
- type PositionComponent = {
176
- "keyword-x": PositionKeywordX;
177
- } | {
178
- "keyword-y": PositionKeywordY;
179
- } | {
180
- length: LengthUnit;
181
- };
175
+ type PositionComponent = PositionKeywordX | PositionKeywordY | LengthUnit;
182
176
 
183
177
  /**
184
178
  * Parsed `background-position` value for one layer.
@@ -172,13 +172,7 @@ type PositionKeywordY = "top" | "center" | "bottom";
172
172
  /**
173
173
  * A single `background-position` component for an axis.
174
174
  */
175
- type PositionComponent = {
176
- "keyword-x": PositionKeywordX;
177
- } | {
178
- "keyword-y": PositionKeywordY;
179
- } | {
180
- length: LengthUnit;
181
- };
175
+ type PositionComponent = PositionKeywordX | PositionKeywordY | LengthUnit;
182
176
 
183
177
  /**
184
178
  * 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.41.0",
4
4
  "author": {
5
5
  "email": "me@kane.tw",
6
6
  "name": "Kane Wang",