incajs 0.0.7 → 0.0.8
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/types.d.mts +50 -2
- package/package.json +1 -1
package/dist/types.d.mts
CHANGED
|
@@ -16,8 +16,8 @@ export type CallbackId = number;
|
|
|
16
16
|
export type AttributeValue = string | number | boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Element kind passed to `createNode`. `"text"` is the only tag with
|
|
19
|
-
* dedicated rendering behavior —
|
|
20
|
-
*
|
|
19
|
+
* dedicated rendering behavior — it renders its `"value"` attribute followed
|
|
20
|
+
* by its descendants' text. Any other string is a generic styled
|
|
21
21
|
* container; the `string & {}` half of this type keeps `"text"`'s
|
|
22
22
|
* autocomplete while still accepting an arbitrary tag name.
|
|
23
23
|
*/
|
|
@@ -55,6 +55,54 @@ export interface StyleProps {
|
|
|
55
55
|
corner_radius?: number;
|
|
56
56
|
/** Font size in px for this container's own text. Cascades to descendant text leaves, same as {@link StyleProps.text_color}. */
|
|
57
57
|
text_size?: number;
|
|
58
|
+
/** Overflow on both axes; `"scroll"` (alias `"auto"`) makes the container scroll with the wheel. Overridden per axis by {@link StyleProps.overflow_x}/{@link StyleProps.overflow_y}. */
|
|
59
|
+
overflow?: "visible" | "hidden" | "scroll" | "auto";
|
|
60
|
+
/** Horizontal overflow; wins over {@link StyleProps.overflow}. */
|
|
61
|
+
overflow_x?: "visible" | "hidden" | "scroll" | "auto";
|
|
62
|
+
/** Vertical overflow; wins over {@link StyleProps.overflow}. */
|
|
63
|
+
overflow_y?: "visible" | "hidden" | "scroll" | "auto";
|
|
64
|
+
/** Inner spacing in px (`>= 0`) on all four sides. Overridden per axis by {@link StyleProps.padding_x}/{@link StyleProps.padding_y} and per side by the `padding_*` side keys. */
|
|
65
|
+
padding?: number;
|
|
66
|
+
/** Horizontal inner spacing in px (`>= 0`); wins over {@link StyleProps.padding}. */
|
|
67
|
+
padding_x?: number;
|
|
68
|
+
/** Vertical inner spacing in px (`>= 0`); wins over {@link StyleProps.padding}. */
|
|
69
|
+
padding_y?: number;
|
|
70
|
+
/** Top inner spacing in px (`>= 0`); wins over {@link StyleProps.padding_y}. */
|
|
71
|
+
padding_top?: number;
|
|
72
|
+
/** Right inner spacing in px (`>= 0`); wins over {@link StyleProps.padding_x}. */
|
|
73
|
+
padding_right?: number;
|
|
74
|
+
/** Bottom inner spacing in px (`>= 0`); wins over {@link StyleProps.padding_y}. */
|
|
75
|
+
padding_bottom?: number;
|
|
76
|
+
/** Left inner spacing in px (`>= 0`); wins over {@link StyleProps.padding_x}. */
|
|
77
|
+
padding_left?: number;
|
|
78
|
+
/** Outer spacing in px (negative allowed) or `"auto"` on all four sides. Overridden per axis by {@link StyleProps.margin_x}/{@link StyleProps.margin_y} and per side by the `margin_*` side keys. */
|
|
79
|
+
margin?: number | "auto";
|
|
80
|
+
/** Horizontal outer spacing; wins over {@link StyleProps.margin}. */
|
|
81
|
+
margin_x?: number | "auto";
|
|
82
|
+
/** Vertical outer spacing; wins over {@link StyleProps.margin}. */
|
|
83
|
+
margin_y?: number | "auto";
|
|
84
|
+
/** Top outer spacing; wins over {@link StyleProps.margin_y}. */
|
|
85
|
+
margin_top?: number | "auto";
|
|
86
|
+
/** Right outer spacing; wins over {@link StyleProps.margin_x}. */
|
|
87
|
+
margin_right?: number | "auto";
|
|
88
|
+
/** Bottom outer spacing; wins over {@link StyleProps.margin_y}. */
|
|
89
|
+
margin_bottom?: number | "auto";
|
|
90
|
+
/** Left outer spacing; wins over {@link StyleProps.margin_x}. */
|
|
91
|
+
margin_left?: number | "auto";
|
|
92
|
+
/** Share (`>= 0`) of the free space in the parent's main axis this node takes. */
|
|
93
|
+
flex_grow?: number;
|
|
94
|
+
/** Share (`>= 0`) of the overflow in the parent's main axis this node gives up. */
|
|
95
|
+
flex_shrink?: number;
|
|
96
|
+
/** Opacity from `0` to `1`, applied to this node and its descendants; values outside are clamped. */
|
|
97
|
+
opacity?: number;
|
|
98
|
+
/** Minimum width in px, or `"auto"` for the default minimum. */
|
|
99
|
+
min_width?: number | "auto";
|
|
100
|
+
/** Minimum height in px, or `"auto"` for the default minimum. */
|
|
101
|
+
min_height?: number | "auto";
|
|
102
|
+
/** Maximum width in px, or `"auto"` for no limit. */
|
|
103
|
+
max_width?: number | "auto";
|
|
104
|
+
/** Maximum height in px, or `"auto"` for no limit. */
|
|
105
|
+
max_height?: number | "auto";
|
|
58
106
|
}
|
|
59
107
|
/**
|
|
60
108
|
* Signature of a callback registered via `setEventListener`. The
|