@magicx-eng/ai-autocomplete-vanilla 0.27.0 → 0.28.1
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/README.md +2 -2
- package/dist/index.d.mts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +50 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -797,10 +797,10 @@ Override these on the container element. The variables are declared with `:where
|
|
|
797
797
|
| `--aia-submit-bg-disabled` | `--aia-submit-bg` | `--aia-submit-bg` | Submit background when disabled (empty input). Defaults to the enabled background so themed colors aren't washed out. Set this for a faded rest state. |
|
|
798
798
|
| `--aia-submit-color-disabled` | `--aia-submit-color` | `--aia-submit-color` | Submit arrow color when disabled. Defaults to the enabled color. |
|
|
799
799
|
| `--aia-border` | `rgba(17, 24, 39, 0.14)` | `#505050` | Input container border color |
|
|
800
|
-
| `--aia-shadow` | `
|
|
800
|
+
| `--aia-shadow` | `none` | `none` | Input container elevation (box-shadow). Flat by default; set it to add one |
|
|
801
801
|
| `--aia-dropdown-offset` | `13px` | `13px` | Gap between the input box and the dropdown (the dropdown's margin toward the input). |
|
|
802
802
|
| `--aia-content-inset-left` | `16px` | `16px` | Left inset of the SDK's content: the input wrapper's left padding, and the line the dropdown's content (parameter label, option text, product strip) starts on. Set it when you pad the field to clear a leading icon of your own, so the dropdown's content stays aligned under the typed text. Practical minimum is `10px` (the option text's own inset); both surfaces floor it there. |
|
|
803
|
-
| `--aia-footer-gap` | `
|
|
803
|
+
| `--aia-footer-gap` | `12px` | `12px` | Breathing room above the dropdown footer (badge / keyboard hints), additive to the dropdown's 8px section gap. |
|
|
804
804
|
| `--aia-footer-chip-bg` | `--aia-surface` at 65% | `--aia-surface` at 65% | Fill behind the footer's keyboard hint and AI-Autocomplete badge. The option list scrolls under the footer, so this keeps both legible over the row passing behind them. `transparent` on the glass surface. |
|
|
805
805
|
| `--aia-dropdown-bg` | — | — | Optional bg color the dropdown's "glass" rim shadow tints toward. Set this to the page background behind the dropdown so the bottom-corner glow blends seamlessly. |
|
|
806
806
|
| `--aia-scrollbar-thumb` | `rgba(0, 0, 0, 0.3)` | `rgba(0, 0, 0, 0.3)` | Color of the option list's scrollbar thumb (Firefox + WebKit). |
|
package/dist/index.d.mts
CHANGED
|
@@ -1442,11 +1442,15 @@ declare function dateCellMarks(iso: string | null, args: {
|
|
|
1442
1442
|
* suggestion bubbles, 2026-08-19): opacity 0→1 over ~150 ms, a ~16 px rise
|
|
1443
1443
|
* easing out over ~280 ms, consecutive rows ~80–110 ms apart.
|
|
1444
1444
|
*
|
|
1445
|
-
* The per-row motion is CSS: the option rule in each package's
|
|
1446
|
-
*
|
|
1447
|
-
*
|
|
1448
|
-
* scrollable area and flashed a scrollbar through the entrance
|
|
1449
|
-
*
|
|
1445
|
+
* The per-row motion is CSS: the option's *content* rule in each package's
|
|
1446
|
+
* stylesheet both fades and rises it. Neither half runs on the cell — the
|
|
1447
|
+
* tappable element — itself: the rise because a transformed cell extends the
|
|
1448
|
+
* grid's scrollable area and flashed a scrollbar through the entrance, the
|
|
1449
|
+
* fade because iOS Safari drops a tap on a scripted-clickable element (the
|
|
1450
|
+
* row is a div with a click handler) whose own opacity is mid-animation — it
|
|
1451
|
+
* fires the hover events, so the row highlights, and never the click. Keep
|
|
1452
|
+
* the three copies identical; the parity test compares them and
|
|
1453
|
+
* tests/render/optionEntranceOverflow.test.ts pins the split. This module
|
|
1450
1454
|
* owns the *timing numbers* and the per-row delay, so vanilla, React and
|
|
1451
1455
|
* Angular can't drift onto three different cascades. `OPTION_ENTER_RISE_MS` and
|
|
1452
1456
|
* `OPTION_ENTER_FADE_MS` must match the durations declared in those rules.
|
|
@@ -1911,7 +1915,7 @@ interface ScrollArrowArgs {
|
|
|
1911
1915
|
/** The options grid (the scroll box). */
|
|
1912
1916
|
grid: HTMLElement;
|
|
1913
1917
|
/** The arrow button, already in the dropdown. */
|
|
1914
|
-
button:
|
|
1918
|
+
button: HTMLButtonElement;
|
|
1915
1919
|
}
|
|
1916
1920
|
declare function attachScrollArrow({ dropdown, grid, button, }: ScrollArrowArgs): ScrollArrowController;
|
|
1917
1921
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1442,11 +1442,15 @@ declare function dateCellMarks(iso: string | null, args: {
|
|
|
1442
1442
|
* suggestion bubbles, 2026-08-19): opacity 0→1 over ~150 ms, a ~16 px rise
|
|
1443
1443
|
* easing out over ~280 ms, consecutive rows ~80–110 ms apart.
|
|
1444
1444
|
*
|
|
1445
|
-
* The per-row motion is CSS: the option rule in each package's
|
|
1446
|
-
*
|
|
1447
|
-
*
|
|
1448
|
-
* scrollable area and flashed a scrollbar through the entrance
|
|
1449
|
-
*
|
|
1445
|
+
* The per-row motion is CSS: the option's *content* rule in each package's
|
|
1446
|
+
* stylesheet both fades and rises it. Neither half runs on the cell — the
|
|
1447
|
+
* tappable element — itself: the rise because a transformed cell extends the
|
|
1448
|
+
* grid's scrollable area and flashed a scrollbar through the entrance, the
|
|
1449
|
+
* fade because iOS Safari drops a tap on a scripted-clickable element (the
|
|
1450
|
+
* row is a div with a click handler) whose own opacity is mid-animation — it
|
|
1451
|
+
* fires the hover events, so the row highlights, and never the click. Keep
|
|
1452
|
+
* the three copies identical; the parity test compares them and
|
|
1453
|
+
* tests/render/optionEntranceOverflow.test.ts pins the split. This module
|
|
1450
1454
|
* owns the *timing numbers* and the per-row delay, so vanilla, React and
|
|
1451
1455
|
* Angular can't drift onto three different cascades. `OPTION_ENTER_RISE_MS` and
|
|
1452
1456
|
* `OPTION_ENTER_FADE_MS` must match the durations declared in those rules.
|
|
@@ -1911,7 +1915,7 @@ interface ScrollArrowArgs {
|
|
|
1911
1915
|
/** The options grid (the scroll box). */
|
|
1912
1916
|
grid: HTMLElement;
|
|
1913
1917
|
/** The arrow button, already in the dropdown. */
|
|
1914
|
-
button:
|
|
1918
|
+
button: HTMLButtonElement;
|
|
1915
1919
|
}
|
|
1916
1920
|
declare function attachScrollArrow({ dropdown, grid, button, }: ScrollArrowArgs): ScrollArrowController;
|
|
1917
1921
|
|