@jsenv/navi 0.27.80 → 0.27.82
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/jsenv_navi.js +16 -5
- package/dist/jsenv_navi.js.map +2 -2
- package/docs/AI_INSTRUCTIONS.md +31 -11
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* AI reading this file:
|
|
3
|
-
*
|
|
4
|
-
* read ../docs/AI_INSTRUCTIONS.md — it explains where the real docs and
|
|
5
|
-
* source are, and the key concepts needed to use the API correctly.
|
|
1
|
+
/*
|
|
2
|
+
* AI reading this file: read ../docs/AI_INSTRUCTIONS.md for context on
|
|
3
|
+
* using @jsenv/navi as intended.
|
|
6
4
|
*/
|
|
7
5
|
import { installImportMetaCssBuild, windowWidthSignal } from "./jsenv_navi_side_effects.js";
|
|
8
6
|
import { isValidElement, createContext, h, toChildArray, render, Fragment, cloneElement } from "preact";
|
|
@@ -6781,6 +6779,19 @@ const TYPO_PROPS = {
|
|
|
6781
6779
|
};
|
|
6782
6780
|
},
|
|
6783
6781
|
textAlign: PASS_THROUGH,
|
|
6782
|
+
textBox: PASS_THROUGH,
|
|
6783
|
+
textBoxTrim: PASS_THROUGH,
|
|
6784
|
+
textBoxEdge: PASS_THROUGH,
|
|
6785
|
+
// Bare boolean preset for the CSS "trim-both cap alphabetic" combo: trims
|
|
6786
|
+
// the invisible space the font adds above/below a line (down to
|
|
6787
|
+
// cap-height/alphabetic baseline) so text visually hugs its box — the
|
|
6788
|
+
// combo from MDN's own text-box example, most useful for compact things
|
|
6789
|
+
// like buttons/badges/labels. Use textBox/textBoxTrim/textBoxEdge
|
|
6790
|
+
// directly for any other combination.
|
|
6791
|
+
textBoxCrop: applyToCssPropWhenTruthy(
|
|
6792
|
+
"textBox",
|
|
6793
|
+
"trim-both cap alphabetic",
|
|
6794
|
+
),
|
|
6784
6795
|
};
|
|
6785
6796
|
const VISUAL_PROPS = {
|
|
6786
6797
|
outline: PASS_THROUGH,
|