monowind 0.2.2 → 0.2.3
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/cdn.js +22 -22
- package/dist/cdn.js.map +1 -1
- package/dist/element.d.ts +11 -0
- package/dist/element.d.ts.map +1 -1
- package/dist/index.js +837 -805
- package/dist/index.js.map +1 -1
- package/dist/warn.d.ts +4 -0
- package/dist/warn.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/styles.css +11 -0
package/dist/warn.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare function warnOnce(el: Element, message: string): void;
|
|
2
|
+
/** The element for a warning: the reference itself in a browser (an
|
|
3
|
+
* inspectable link in DevTools), a one-line description under Node
|
|
4
|
+
* (tests), whose console would print the whole object graph. */
|
|
5
|
+
export declare function warnSubject(el: Element): Element | string;
|
|
2
6
|
//# sourceMappingURL=warn.d.ts.map
|
package/dist/warn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warn.d.ts","sourceRoot":"","sources":["../src/warn.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM3D"}
|
|
1
|
+
{"version":3,"file":"warn.d.ts","sourceRoot":"","sources":["../src/warn.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM3D;AAED;;gEAEgE;AAChE,wBAAgB,WAAW,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAOzD"}
|
package/package.json
CHANGED
package/src/styles.css
CHANGED
|
@@ -204,6 +204,17 @@ mono-wind:not([measuring]) [data-mw-scroll]::after {
|
|
|
204
204
|
height: 1px;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
/* The host's used width is a whole number of cells (specs/cell-model.md
|
|
208
|
+
* "Host sizing"): the engine measures the natural CSS width with this
|
|
209
|
+
* rule lifted, then caps the box to the columns that fit — so borders,
|
|
210
|
+
* backgrounds, and `mx-auto` centering land on the grid. A cap, not a
|
|
211
|
+
* width, so a shrinking container still shrinks the host natively;
|
|
212
|
+
* !important because the cap never exceeds the natural width it was
|
|
213
|
+
* measured from, whatever max-width the author set (inline included). */
|
|
214
|
+
mono-wind:not([measuring]) {
|
|
215
|
+
max-width: var(--mw-host-w) !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
207
218
|
/* Hide the host until the first layout completes to avoid the flash of raw
|
|
208
219
|
* browser-rendered content (flex without our decorations, elements at their
|
|
209
220
|
* natural sizes). `visibility: hidden` preserves layout & measurability so
|