@takumi-rs/helpers 0.24.0 → 0.25.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 Color } from './types-
|
|
2
|
-
export { N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-CrwAkSRU.cjs';
|
|
2
|
+
export { N as Node } from './types-CrwAkSRU.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 Color } from './types-
|
|
2
|
-
export { N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-CrwAkSRU.js';
|
|
2
|
+
export { N as Node } from './types-CrwAkSRU.js';
|
|
3
3
|
|
|
4
4
|
declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
|
|
5
5
|
declare function text(text: string, style?: PartialStyle): TextNode;
|
package/dist/jsx/jsx.d.cts
CHANGED
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -70,6 +70,13 @@ type BoxShadow = {
|
|
|
70
70
|
*/
|
|
71
71
|
type BoxShadows = Array<BoxShadow>;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Defines how the width and height of an element are calculated.
|
|
75
|
+
*
|
|
76
|
+
* This enum determines whether the width and height properties include padding and border, or just the content area.
|
|
77
|
+
*/
|
|
78
|
+
type BoxSizing = "content-box" | "border-box";
|
|
79
|
+
|
|
73
80
|
/**
|
|
74
81
|
* This enum determines the layout algorithm used for the children of a node.
|
|
75
82
|
*/
|
|
@@ -140,6 +147,14 @@ type GridLine = {
|
|
|
140
147
|
end: GridPlacement | null;
|
|
141
148
|
};
|
|
142
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Represents `grid-template-areas` value
|
|
152
|
+
*
|
|
153
|
+
* Supports either a 2D matrix of area names (use "." for empty) or a CSS string value
|
|
154
|
+
* like: "a a ." "b b c"
|
|
155
|
+
*/
|
|
156
|
+
type GridTemplateAreas = Array<Array<string>> | string;
|
|
157
|
+
|
|
143
158
|
/**
|
|
144
159
|
* Represents a grid track sizing function with serde support
|
|
145
160
|
*/
|
|
@@ -175,9 +190,14 @@ type GridRepeatTrack = {
|
|
|
175
190
|
*/
|
|
176
191
|
size: GridTrackSize;
|
|
177
192
|
/**
|
|
178
|
-
* The names
|
|
193
|
+
* The names for the line preceding this track within the repeat() clause
|
|
179
194
|
*/
|
|
180
195
|
names: Array<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The names for the final line after the last track within the repeat() clause
|
|
198
|
+
* Only set on the last track of the repeat fragment. For other tracks this is None.
|
|
199
|
+
*/
|
|
200
|
+
endNames: Array<string> | null;
|
|
181
201
|
};
|
|
182
202
|
|
|
183
203
|
/**
|
|
@@ -186,13 +206,9 @@ type GridRepeatTrack = {
|
|
|
186
206
|
type GridRepetitionCount = "auto-fill" | "auto-fit" | number;
|
|
187
207
|
|
|
188
208
|
/**
|
|
189
|
-
* Represents a track sizing function
|
|
209
|
+
* Represents a track sizing function or a list of line names between tracks
|
|
190
210
|
*/
|
|
191
|
-
type GridTemplateComponent =
|
|
192
|
-
"single": GridTrackSize;
|
|
193
|
-
} | {
|
|
194
|
-
"repeat": [GridRepetitionCount, Array<GridRepeatTrack>];
|
|
195
|
-
};
|
|
211
|
+
type GridTemplateComponent = Array<string> | GridTrackSize | [GridRepetitionCount, Array<GridRepeatTrack>];
|
|
196
212
|
|
|
197
213
|
/**
|
|
198
214
|
* Defines how images should be scaled when rendered.
|
|
@@ -283,6 +299,16 @@ type TextAlign = "left" | "right" | "center" | "justify" | "start" | "end";
|
|
|
283
299
|
*/
|
|
284
300
|
type TextOverflow = "ellipsis" | "clip";
|
|
285
301
|
|
|
302
|
+
/**
|
|
303
|
+
* Controls the slant (italic/oblique) of text rendering.
|
|
304
|
+
*/
|
|
305
|
+
type TextStyle = "normal" | "italic" | "oblique";
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Controls text case transformation when rendering.
|
|
309
|
+
*/
|
|
310
|
+
type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
|
|
311
|
+
|
|
286
312
|
/**
|
|
287
313
|
* Main styling structure that contains all layout and visual properties.
|
|
288
314
|
*/
|
|
@@ -495,10 +521,26 @@ type Style = {
|
|
|
495
521
|
* Defines the line names and track sizing functions of the grid rows.
|
|
496
522
|
*/
|
|
497
523
|
gridTemplateRows?: Array<GridTemplateComponent>;
|
|
524
|
+
/**
|
|
525
|
+
* Defines named grid areas specified via `grid-template-areas`.
|
|
526
|
+
*/
|
|
527
|
+
gridTemplateAreas?: GridTemplateAreas;
|
|
528
|
+
/**
|
|
529
|
+
* How the width and height of an element are calculated.
|
|
530
|
+
*/
|
|
531
|
+
boxSizing?: BoxSizing;
|
|
498
532
|
/**
|
|
499
533
|
* How text should be overflowed.
|
|
500
534
|
*/
|
|
501
535
|
textOverflow?: TextOverflow;
|
|
536
|
+
/**
|
|
537
|
+
* Controls text case transformation when rendering.
|
|
538
|
+
*/
|
|
539
|
+
textTransform?: TextTransform;
|
|
540
|
+
/**
|
|
541
|
+
* Font slant style (normal, italic, oblique).
|
|
542
|
+
*/
|
|
543
|
+
textStyle?: TextStyle;
|
|
502
544
|
/**
|
|
503
545
|
* Color of the element's border.
|
|
504
546
|
*/
|
|
@@ -70,6 +70,13 @@ type BoxShadow = {
|
|
|
70
70
|
*/
|
|
71
71
|
type BoxShadows = Array<BoxShadow>;
|
|
72
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Defines how the width and height of an element are calculated.
|
|
75
|
+
*
|
|
76
|
+
* This enum determines whether the width and height properties include padding and border, or just the content area.
|
|
77
|
+
*/
|
|
78
|
+
type BoxSizing = "content-box" | "border-box";
|
|
79
|
+
|
|
73
80
|
/**
|
|
74
81
|
* This enum determines the layout algorithm used for the children of a node.
|
|
75
82
|
*/
|
|
@@ -140,6 +147,14 @@ type GridLine = {
|
|
|
140
147
|
end: GridPlacement | null;
|
|
141
148
|
};
|
|
142
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Represents `grid-template-areas` value
|
|
152
|
+
*
|
|
153
|
+
* Supports either a 2D matrix of area names (use "." for empty) or a CSS string value
|
|
154
|
+
* like: "a a ." "b b c"
|
|
155
|
+
*/
|
|
156
|
+
type GridTemplateAreas = Array<Array<string>> | string;
|
|
157
|
+
|
|
143
158
|
/**
|
|
144
159
|
* Represents a grid track sizing function with serde support
|
|
145
160
|
*/
|
|
@@ -175,9 +190,14 @@ type GridRepeatTrack = {
|
|
|
175
190
|
*/
|
|
176
191
|
size: GridTrackSize;
|
|
177
192
|
/**
|
|
178
|
-
* The names
|
|
193
|
+
* The names for the line preceding this track within the repeat() clause
|
|
179
194
|
*/
|
|
180
195
|
names: Array<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The names for the final line after the last track within the repeat() clause
|
|
198
|
+
* Only set on the last track of the repeat fragment. For other tracks this is None.
|
|
199
|
+
*/
|
|
200
|
+
endNames: Array<string> | null;
|
|
181
201
|
};
|
|
182
202
|
|
|
183
203
|
/**
|
|
@@ -186,13 +206,9 @@ type GridRepeatTrack = {
|
|
|
186
206
|
type GridRepetitionCount = "auto-fill" | "auto-fit" | number;
|
|
187
207
|
|
|
188
208
|
/**
|
|
189
|
-
* Represents a track sizing function
|
|
209
|
+
* Represents a track sizing function or a list of line names between tracks
|
|
190
210
|
*/
|
|
191
|
-
type GridTemplateComponent =
|
|
192
|
-
"single": GridTrackSize;
|
|
193
|
-
} | {
|
|
194
|
-
"repeat": [GridRepetitionCount, Array<GridRepeatTrack>];
|
|
195
|
-
};
|
|
211
|
+
type GridTemplateComponent = Array<string> | GridTrackSize | [GridRepetitionCount, Array<GridRepeatTrack>];
|
|
196
212
|
|
|
197
213
|
/**
|
|
198
214
|
* Defines how images should be scaled when rendered.
|
|
@@ -283,6 +299,16 @@ type TextAlign = "left" | "right" | "center" | "justify" | "start" | "end";
|
|
|
283
299
|
*/
|
|
284
300
|
type TextOverflow = "ellipsis" | "clip";
|
|
285
301
|
|
|
302
|
+
/**
|
|
303
|
+
* Controls the slant (italic/oblique) of text rendering.
|
|
304
|
+
*/
|
|
305
|
+
type TextStyle = "normal" | "italic" | "oblique";
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Controls text case transformation when rendering.
|
|
309
|
+
*/
|
|
310
|
+
type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
|
|
311
|
+
|
|
286
312
|
/**
|
|
287
313
|
* Main styling structure that contains all layout and visual properties.
|
|
288
314
|
*/
|
|
@@ -495,10 +521,26 @@ type Style = {
|
|
|
495
521
|
* Defines the line names and track sizing functions of the grid rows.
|
|
496
522
|
*/
|
|
497
523
|
gridTemplateRows?: Array<GridTemplateComponent>;
|
|
524
|
+
/**
|
|
525
|
+
* Defines named grid areas specified via `grid-template-areas`.
|
|
526
|
+
*/
|
|
527
|
+
gridTemplateAreas?: GridTemplateAreas;
|
|
528
|
+
/**
|
|
529
|
+
* How the width and height of an element are calculated.
|
|
530
|
+
*/
|
|
531
|
+
boxSizing?: BoxSizing;
|
|
498
532
|
/**
|
|
499
533
|
* How text should be overflowed.
|
|
500
534
|
*/
|
|
501
535
|
textOverflow?: TextOverflow;
|
|
536
|
+
/**
|
|
537
|
+
* Controls text case transformation when rendering.
|
|
538
|
+
*/
|
|
539
|
+
textTransform?: TextTransform;
|
|
540
|
+
/**
|
|
541
|
+
* Font slant style (normal, italic, oblique).
|
|
542
|
+
*/
|
|
543
|
+
textStyle?: TextStyle;
|
|
502
544
|
/**
|
|
503
545
|
* Color of the element's border.
|
|
504
546
|
*/
|