@takumi-rs/helpers 0.35.2 → 0.36.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-BMFshQSu.cjs';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-BMFshQSu.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-BMFshQSu.js';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-BMFshQSu.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
|
@@ -317,6 +317,30 @@ type CssValue<T> = CssGlobalKeyword | T;
|
|
|
317
317
|
*/
|
|
318
318
|
type Display = "flex" | "grid" | "inline" | "block";
|
|
319
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Represents a single CSS filter operation
|
|
322
|
+
*/
|
|
323
|
+
type Filter = {
|
|
324
|
+
brightness: number;
|
|
325
|
+
} | {
|
|
326
|
+
contrast: number;
|
|
327
|
+
} | {
|
|
328
|
+
grayscale: number;
|
|
329
|
+
} | {
|
|
330
|
+
saturate: number;
|
|
331
|
+
} | {
|
|
332
|
+
"hue-rotate": Angle;
|
|
333
|
+
} | {
|
|
334
|
+
invert: number;
|
|
335
|
+
} | {
|
|
336
|
+
opacity: number;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* A list of filter operations
|
|
341
|
+
*/
|
|
342
|
+
type Filters = Array<Filter> | string;
|
|
343
|
+
|
|
320
344
|
/**
|
|
321
345
|
* Represents a flex shorthand property for flex-grow, flex-shrink, and flex-basis.
|
|
322
346
|
*/
|
|
@@ -793,6 +817,7 @@ type Style = {
|
|
|
793
817
|
fontStyle: CssValue<FontStyle>;
|
|
794
818
|
borderColor: CssValue<CssOption<ColorInput>>;
|
|
795
819
|
color: CssValue<ColorInput>;
|
|
820
|
+
filter: CssValue<CssOption<Filters>>;
|
|
796
821
|
fontSize: CssValue<CssOption<LengthUnit>>;
|
|
797
822
|
fontFamily: CssValue<CssOption<FontFamily>>;
|
|
798
823
|
lineHeight: CssValue<LineHeight>;
|
|
@@ -317,6 +317,30 @@ type CssValue<T> = CssGlobalKeyword | T;
|
|
|
317
317
|
*/
|
|
318
318
|
type Display = "flex" | "grid" | "inline" | "block";
|
|
319
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Represents a single CSS filter operation
|
|
322
|
+
*/
|
|
323
|
+
type Filter = {
|
|
324
|
+
brightness: number;
|
|
325
|
+
} | {
|
|
326
|
+
contrast: number;
|
|
327
|
+
} | {
|
|
328
|
+
grayscale: number;
|
|
329
|
+
} | {
|
|
330
|
+
saturate: number;
|
|
331
|
+
} | {
|
|
332
|
+
"hue-rotate": Angle;
|
|
333
|
+
} | {
|
|
334
|
+
invert: number;
|
|
335
|
+
} | {
|
|
336
|
+
opacity: number;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* A list of filter operations
|
|
341
|
+
*/
|
|
342
|
+
type Filters = Array<Filter> | string;
|
|
343
|
+
|
|
320
344
|
/**
|
|
321
345
|
* Represents a flex shorthand property for flex-grow, flex-shrink, and flex-basis.
|
|
322
346
|
*/
|
|
@@ -793,6 +817,7 @@ type Style = {
|
|
|
793
817
|
fontStyle: CssValue<FontStyle>;
|
|
794
818
|
borderColor: CssValue<CssOption<ColorInput>>;
|
|
795
819
|
color: CssValue<ColorInput>;
|
|
820
|
+
filter: CssValue<CssOption<Filters>>;
|
|
796
821
|
fontSize: CssValue<CssOption<LengthUnit>>;
|
|
797
822
|
fontFamily: CssValue<CssOption<FontFamily>>;
|
|
798
823
|
lineHeight: CssValue<LineHeight>;
|