@react-x11/components 0.12.0 → 0.14.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.
Files changed (150) hide show
  1. package/dist/html/controls.d.ts +41 -5
  2. package/dist/html/controls.d.ts.map +1 -1
  3. package/dist/html/controls.js +85 -57
  4. package/dist/html/controls.js.map +1 -1
  5. package/dist/html/css/cascade.d.ts +134 -20
  6. package/dist/html/css/cascade.d.ts.map +1 -1
  7. package/dist/html/css/cascade.js +545 -126
  8. package/dist/html/css/cascade.js.map +1 -1
  9. package/dist/html/css/color.d.ts +18 -0
  10. package/dist/html/css/color.d.ts.map +1 -1
  11. package/dist/html/css/color.js +27 -0
  12. package/dist/html/css/color.js.map +1 -1
  13. package/dist/html/css/parse.d.ts +47 -6
  14. package/dist/html/css/parse.d.ts.map +1 -1
  15. package/dist/html/css/parse.js +336 -30
  16. package/dist/html/css/parse.js.map +1 -1
  17. package/dist/html/css/style.d.ts +142 -15
  18. package/dist/html/css/style.d.ts.map +1 -1
  19. package/dist/html/css/style.js +563 -147
  20. package/dist/html/css/style.js.map +1 -1
  21. package/dist/html/css/transform.d.ts +85 -0
  22. package/dist/html/css/transform.d.ts.map +1 -0
  23. package/dist/html/css/transform.js +425 -0
  24. package/dist/html/css/transform.js.map +1 -0
  25. package/dist/html/css/ua.d.ts +11 -1
  26. package/dist/html/css/ua.d.ts.map +1 -1
  27. package/dist/html/css/ua.js +73 -9
  28. package/dist/html/css/ua.js.map +1 -1
  29. package/dist/html/css/values.d.ts +4 -0
  30. package/dist/html/css/values.d.ts.map +1 -1
  31. package/dist/html/css/values.js.map +1 -1
  32. package/dist/html/dom.d.ts.map +1 -1
  33. package/dist/html/dom.js +3 -1
  34. package/dist/html/dom.js.map +1 -1
  35. package/dist/html/fonts.d.ts +78 -4
  36. package/dist/html/fonts.d.ts.map +1 -1
  37. package/dist/html/fonts.js +373 -19
  38. package/dist/html/fonts.js.map +1 -1
  39. package/dist/html/form.d.ts +200 -0
  40. package/dist/html/form.d.ts.map +1 -0
  41. package/dist/html/form.js +801 -0
  42. package/dist/html/form.js.map +1 -0
  43. package/dist/html/index.d.ts +12 -0
  44. package/dist/html/index.d.ts.map +1 -1
  45. package/dist/html/index.js +30 -301
  46. package/dist/html/index.js.map +1 -1
  47. package/dist/html/layout/axes.d.ts +14 -0
  48. package/dist/html/layout/axes.d.ts.map +1 -0
  49. package/dist/html/layout/axes.js +28 -0
  50. package/dist/html/layout/axes.js.map +1 -0
  51. package/dist/html/layout/block.d.ts +93 -12
  52. package/dist/html/layout/block.d.ts.map +1 -1
  53. package/dist/html/layout/block.js +393 -39
  54. package/dist/html/layout/block.js.map +1 -1
  55. package/dist/html/layout/boxes.d.ts +90 -2
  56. package/dist/html/layout/boxes.d.ts.map +1 -1
  57. package/dist/html/layout/boxes.js +74 -10
  58. package/dist/html/layout/boxes.js.map +1 -1
  59. package/dist/html/layout/cache.d.ts +1 -1
  60. package/dist/html/layout/cache.d.ts.map +1 -1
  61. package/dist/html/layout/cache.js +6 -0
  62. package/dist/html/layout/cache.js.map +1 -1
  63. package/dist/html/layout/css-grid.d.ts.map +1 -1
  64. package/dist/html/layout/css-grid.js +90 -18
  65. package/dist/html/layout/css-grid.js.map +1 -1
  66. package/dist/html/layout/flex.d.ts.map +1 -1
  67. package/dist/html/layout/flex.js +574 -84
  68. package/dist/html/layout/flex.js.map +1 -1
  69. package/dist/html/layout/inline.d.ts +3 -0
  70. package/dist/html/layout/inline.d.ts.map +1 -1
  71. package/dist/html/layout/inline.js +154 -54
  72. package/dist/html/layout/inline.js.map +1 -1
  73. package/dist/html/layout/multicol.d.ts +42 -0
  74. package/dist/html/layout/multicol.d.ts.map +1 -0
  75. package/dist/html/layout/multicol.js +897 -0
  76. package/dist/html/layout/multicol.js.map +1 -0
  77. package/dist/html/layout/shaping.d.ts +7 -0
  78. package/dist/html/layout/shaping.d.ts.map +1 -1
  79. package/dist/html/layout/shaping.js +25 -20
  80. package/dist/html/layout/shaping.js.map +1 -1
  81. package/dist/html/layout/table.d.ts.map +1 -1
  82. package/dist/html/layout/table.js +62 -18
  83. package/dist/html/layout/table.js.map +1 -1
  84. package/dist/html/node.d.ts +90 -15
  85. package/dist/html/node.d.ts.map +1 -1
  86. package/dist/html/node.js +771 -186
  87. package/dist/html/node.js.map +1 -1
  88. package/dist/html/paint.d.ts +101 -5
  89. package/dist/html/paint.d.ts.map +1 -1
  90. package/dist/html/paint.js +1502 -160
  91. package/dist/html/paint.js.map +1 -1
  92. package/dist/html/svg.d.ts +15 -2
  93. package/dist/html/svg.d.ts.map +1 -1
  94. package/dist/html/svg.js +249 -17
  95. package/dist/html/svg.js.map +1 -1
  96. package/dist/html/widgets.d.ts +29 -0
  97. package/dist/html/widgets.d.ts.map +1 -0
  98. package/dist/html/widgets.js +700 -0
  99. package/dist/html/widgets.js.map +1 -0
  100. package/dist/html/woff2.d.ts +14 -0
  101. package/dist/html/woff2.d.ts.map +1 -0
  102. package/dist/html/woff2.js +608 -0
  103. package/dist/html/woff2.js.map +1 -0
  104. package/dist/index.d.ts +1 -1
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js.map +1 -1
  107. package/dist/maps/controller.d.ts +17 -1
  108. package/dist/maps/controller.d.ts.map +1 -1
  109. package/dist/maps/controller.js +27 -7
  110. package/dist/maps/controller.js.map +1 -1
  111. package/dist/richtext/node.d.ts +8 -1
  112. package/dist/richtext/node.d.ts.map +1 -1
  113. package/dist/richtext/node.js +5 -1
  114. package/dist/richtext/node.js.map +1 -1
  115. package/dist/richtext/runs.d.ts +25 -6
  116. package/dist/richtext/runs.d.ts.map +1 -1
  117. package/dist/richtext/runs.js +240 -24
  118. package/dist/richtext/runs.js.map +1 -1
  119. package/package.json +2 -2
  120. package/src/html/controls.ts +114 -51
  121. package/src/html/css/cascade.ts +614 -140
  122. package/src/html/css/color.ts +29 -0
  123. package/src/html/css/parse.ts +388 -33
  124. package/src/html/css/style.ts +688 -150
  125. package/src/html/css/transform.ts +459 -0
  126. package/src/html/css/ua.ts +77 -10
  127. package/src/html/css/values.ts +4 -0
  128. package/src/html/dom.ts +3 -1
  129. package/src/html/fonts.ts +417 -24
  130. package/src/html/form.ts +962 -0
  131. package/src/html/index.ts +49 -338
  132. package/src/html/layout/axes.ts +62 -0
  133. package/src/html/layout/block.ts +447 -37
  134. package/src/html/layout/boxes.ts +143 -14
  135. package/src/html/layout/cache.ts +6 -0
  136. package/src/html/layout/css-grid.ts +95 -22
  137. package/src/html/layout/flex.ts +675 -78
  138. package/src/html/layout/inline.ts +159 -55
  139. package/src/html/layout/multicol.ts +977 -0
  140. package/src/html/layout/shaping.ts +27 -18
  141. package/src/html/layout/table.ts +62 -19
  142. package/src/html/node.ts +798 -172
  143. package/src/html/paint.ts +1742 -241
  144. package/src/html/svg.ts +277 -19
  145. package/src/html/widgets.ts +821 -0
  146. package/src/html/woff2.ts +612 -0
  147. package/src/index.ts +1 -0
  148. package/src/maps/controller.ts +28 -7
  149. package/src/richtext/node.ts +13 -2
  150. package/src/richtext/runs.ts +313 -35
@@ -1,4 +1,6 @@
1
1
  import type { ComputedStyle, ContentSize } from '../css/style.js';
2
+ import { transformed } from '../css/transform.js';
3
+ import type { Matrix } from '../css/transform.js';
2
4
  import { Box } from './boxes.js';
3
5
  import type { BoxTree, FirstLineStyler } from './boxes.js';
4
6
  import type { FontsLike } from './inline.js';
@@ -36,8 +38,15 @@ export interface LayoutContext {
36
38
  * package's tree-shaking contract forbids exactly that (AGENTS.md, "no side
37
39
  * effects at import time anywhere else"), and a field is cheaper than the
38
40
  * exception would be.
41
+ *
42
+ * `containing` is the width of the box's containing block where `width`
43
+ * is the box's own, as a flex layout sized it: what the percentages in
44
+ * its padding, its margins and its width limits are of (CSS 2.1 8.3,
45
+ * 8.4, 10.4). Left out, `width` is both — a box probed at the room there
46
+ * is for it. For a table cell it is the width of its row, which its
47
+ * padding's percentages are of.
39
48
  */
40
- layoutSubtree(box: Box, width: number): void;
49
+ layoutSubtree(box: Box, width: number, containing?: number): void;
41
50
  /** How many flex boxes' Yoga passes are running, one inside the last's
42
51
  * measure (`layoutFlex`). */
43
52
  flexDepth?: number;
@@ -135,12 +144,23 @@ export declare function percentBaseInside(box: Box): number;
135
144
  * a flex or grid layout makes definite changes. Kept for the tree's life. */
136
145
  export declare function percentHeightsIn(box: Box): boolean;
137
146
  /**
138
- * The content height a flex layout made definite for an item — a stretched
139
- * item's, a flexed one's in a container of a definite height (CSS Flexbox
140
- * 9.8) — which what is in it takes its percentages of. Set by `flex.ts`
141
- * for the item's own layout alone.
147
+ * The content height a flex or grid layout made definite for an item — a
148
+ * stretched item's, a flexed one's in a container of a definite height (CSS
149
+ * Flexbox 9.8), a grid item's stretched down its area (CSS Grid 1, 11.1) —
150
+ * which what is in it takes its percentages of, and which an item that is
151
+ * a flex or grid container itself lays its own items out in. Set by
152
+ * `flex.ts` and `css-grid.ts` for the item's own layout alone.
142
153
  */
143
154
  export declare const FLEXED_HEIGHT: WeakMap<Box, number>;
155
+ /**
156
+ * The content height a flex layout gave an item without making it definite:
157
+ * flexed along a column that has no height of its own, which 9.8 leaves
158
+ * indefinite. An item that is a flex or grid container lays its own items
159
+ * out in it all the same — it is its used size (9.7) — and nothing in it
160
+ * takes a percentage of it. Set by `flex.ts` for the item's own layout
161
+ * alone.
162
+ */
163
+ export declare const USED_HEIGHT: WeakMap<Box, number>;
144
164
  /**
145
165
  * The content height `aspect-ratio` gives a box whose height is `auto`, from
146
166
  * its width (CSS Sizing 4, 5.1): the ratio is of the box its `box-sizing`
@@ -187,6 +207,21 @@ export declare function ratioWidth(box: Box): number | null;
187
207
  * height it sets: what `vertical-align` moves in the cell (`table.ts`). */
188
208
  export declare const CELL_CONTENT: WeakMap<Box, number>;
189
209
  export declare function clampHeight(box: Box, height: number): number;
210
+ /**
211
+ * Whether a box's `width` is a percentage of a width that is not there to
212
+ * take it of: its containing block's, while that is being found from what
213
+ * it holds — a float's, an inline-block's, a flex item's or a table cell's
214
+ * content measured at its widest. The percentage is cyclic, and the box is
215
+ * measured as though its width were `auto` (CSS Sizing 3, 5.2.1); it is a
216
+ * share of the width that comes to once there is one.
217
+ *
218
+ * Taken as a share of nothing, the box was no width at all, and its content
219
+ * wrapped at every word in it: a float around a `width: 100%` block was as
220
+ * wide as the block's longest word, and one around a `width: 100%` flex box
221
+ * of a label that clips — the branch button of a GitHub repository — as
222
+ * wide as nothing, its label gone.
223
+ */
224
+ export declare function cyclicWidth(style: ComputedStyle, base: number): boolean;
190
225
  /**
191
226
  * A width a box with a ratio and no height of its own works out for itself
192
227
  * within the least and greatest widths its least and greatest heights make
@@ -239,8 +274,14 @@ export declare function exactMinContent(box: Box, fonts: FontsLike): number | nu
239
274
  * was `Infinity`), so its own width says nothing and only what it drew does.
240
275
  * Skipping the non-finite ones is what stops the probe from answering
241
276
  * `Infinity` for every box that contains a paragraph.
277
+ *
278
+ * `seen.cut` is set where a line it measured was cut short by
279
+ * `text-overflow`, in a box with a width to cut it at: the line is wider
280
+ * than it was drawn, and the answer is of what was drawn.
242
281
  */
243
- export declare function intrinsicWidth(box: Box): number;
282
+ export declare function intrinsicWidth(box: Box, seen?: {
283
+ cut: boolean;
284
+ }): number;
244
285
  /**
245
286
  * An absolutely positioned child of a flex box or a grid, laid out once the
246
287
  * flow is: against its own containing block, which the box is only where
@@ -260,9 +301,43 @@ export declare function positionOutOfFlow(child: Box, container: Box, ctx: Layou
260
301
  export declare function contained(box: Box, bits: number): boolean;
261
302
  /** Move a box and everything under it, keeping the subtree's shape. */
262
303
  export declare function moveTo(box: Box, x: number, y: number): void;
263
- /** Move what a box holds down, and not the box: a table cell's content
264
- * sits where its `vertical-align` puts it, in a box that fills the row. */
304
+ /**
305
+ * Move what a box holds down, and not the box: a table cell's content
306
+ * sits where its `vertical-align` puts it, in a box that fills the row, and
307
+ * a button's in the middle of its own (`centreButton`).
308
+ *
309
+ * The static positions the box gave the absolutely positioned boxes in its
310
+ * flow go down with the content: each is where its box "would have been in
311
+ * the normal flow" (CSS 2.1 10.6.4), and the flow is what moved. They are
312
+ * kept from the box's own corner, which stays, so that moving the boxes
313
+ * alone left them behind: a badge with no offsets in a `vertical-align:
314
+ * middle` cell stood at the cell's top, over an icon 22px further down.
315
+ *
316
+ * It adds to where the content stands, so it is asked for once for each
317
+ * layout of the box, which puts the content and the static positions back
318
+ * at the top. A table lays a cell out and moves its content in one pass
319
+ * over its cells, however many times a pass lays the table out, and one
320
+ * whose layout is kept (`kept`) is moved whole, the cell with it; a button
321
+ * counts how far down its content stands (`centreButton`).
322
+ */
265
323
  export declare function moveContent(box: Box, dy: number): void;
324
+ /**
325
+ * Centre a `<button>`'s content down its content box, where the box is the
326
+ * taller: a button's content is in an anonymous box of its own that is
327
+ * "centered vertically" where it "does not overflow in the vertical axis"
328
+ * (HTML 15.5.5, button layout), and is at the top where it does. Blink
329
+ * moves a button's children down by half the room left, clamped at none
330
+ * (`AlignBlockContent`); set at the top as any block's is, the two lines of
331
+ * a 60px sidebar picker on nextjs.org sat 4px high in it.
332
+ *
333
+ * Asked for when the button is laid out, and again wherever its height is
334
+ * given to it afterwards — a flex or a grid item stretched to its line, or
335
+ * put back to the height it was measured at, and an absolute box between
336
+ * two offsets: the content moves by the difference from where it was last
337
+ * put. A button that is a flex box or a grid has no such box, and its
338
+ * content is where its own alignment puts it.
339
+ */
340
+ export declare function centreButton(box: Box): void;
266
341
  /** Resolve the margin, border and padding edges against a containing width.
267
342
  * Percentages on *every* one of them are of the containing block's width,
268
343
  * vertical padding included — which surprises everyone once. */
@@ -275,9 +350,16 @@ export declare function establishesBFC(box: Box): boolean;
275
350
  * whole of what makes it *relative* — and its translation with it, and
276
351
  * where `position: sticky` puts one at rest (`stickyOffset`). */
277
352
  export declare function applyRelativeOffsets(box: Box, viewportWidth: number, viewportHeight: number): void;
278
- /** Whether a box is transformed, which is what makes it a containing
279
- * block and a layer as a positioned box is (CSS Transforms 1, 2). */
280
- export declare function transformed(style: ComputedStyle): boolean;
353
+ export { transformed };
354
+ /**
355
+ * The matrix a box is painted through, in the document's coordinates: what
356
+ * its transform does besides move it — a turn, a scale, a skew — about its
357
+ * `transform-origin`, where layout has put it (`applyRelativeOffsets`). Null
358
+ * for a box that only moves, which is every box but a few, and for an
359
+ * inline box, which no transform applies to (CSS Transforms 1, 2: a
360
+ * transformable element is no inline box).
361
+ */
362
+ export declare function placedMatrix(box: Box): Matrix | null;
281
363
  /**
282
364
  * Move a laid-out box, and everything in it, by how far its translation
283
365
  * changed when its style went from `was` to the one it has — what
@@ -286,5 +368,4 @@ export declare function transformed(style: ComputedStyle): boolean;
286
368
  * what makes that true). Not for an inline box, whose text is what moves.
287
369
  */
288
370
  export declare function retranslate(box: Box, was: ComputedStyle): void;
289
- export {};
290
371
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/html/layout/block.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAEV,aAAa,EACb,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AAUzB,OAAO,EAEL,GAAG,EAWJ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EAMhB,MAAM,YAAY,CAAC;AAWpB,OAAO,KAAK,EAAE,SAAS,EAA+B,MAAM,aAAa,CAAC;AAe1E,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC;uCACmC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;gCAC4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB;yEACqE;IACrE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;+EAE2E;IAC3E,UA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