@magicx-eng/ai-autocomplete-react 0.67.5 → 0.67.6
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 +1 -1
- package/REFERENCE.md +1 -0
- package/dist/index.js +11 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -329,7 +329,7 @@ The dropdown shows a row of product cards under the options whenever there are p
|
|
|
329
329
|
|
|
330
330
|
Each response that read the catalog says which of the query's constraints it applied (`applied_filters`), which it dropped (`dropped_filters`) and how many items are left (`items.total`). Read it from `customFields` from the hook, or from `custom_fields` on `AutocompleteResult`. `null` means no catalog was read for that response. Details: [REFERENCE.md](https://unpkg.com/@magicx-eng/ai-autocomplete-react/REFERENCE.md), under "The catalog report".
|
|
331
331
|
|
|
332
|
-
When the search finds no item, `blocking_filters` names each condition whose removal finds items, with the count. The SDK
|
|
332
|
+
When the search finds no item, `blocking_filters` names each condition whose removal finds items, with the count. The SDK gives each of those chips a "×" that removes it, even with `showChipRemove` off; the chips look the same as every other chip. The chips are `blockingChips` from the hook, and each carries the class `magicx-aia-segment--blocking` for a page that wants to style them.
|
|
333
333
|
|
|
334
334
|
#### Change product cards before display
|
|
335
335
|
|
package/REFERENCE.md
CHANGED
|
@@ -818,6 +818,7 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
|
|
|
818
818
|
| `--aia-time-font-size` | `15px` | `15px` | The time wheel's numbers and its `:` separator. |
|
|
819
819
|
| `--aia-time-band-bg` | white at 8% | white at 8% | The band behind the wheels' top rows — the chosen time. |
|
|
820
820
|
| `--aia-confirm-bg` | `#262626` | `#a6a6a6` | The solid fill of a checked multi-select checkbox (and, in dark mode, of the Done buttons). |
|
|
821
|
+
| `--aia-checkbox-border` | the option text at 65% | the option text at 65% | Border of an unticked multi-select checkbox. Defaults to the option text colour so the box stays visible when the dropdown border is faint or transparent; a ticked box uses `--aia-confirm-bg`. |
|
|
821
822
|
| `--aia-confirm-bg-hover` | `#404040` | `#b8b8b8` | The Done buttons on hover in dark mode. |
|
|
822
823
|
| `--aia-confirm-color` | `#ffffff` | `#000000` | The checkbox's checkmark (and, in dark mode, the Done buttons' text). |
|
|
823
824
|
| `--aia-done-bg` / `--aia-done-bg-hover` / `--aia-done-color` | `#e4e8f0` / `#d8dde8` / `#2a3150` | `--aia-confirm-*` | The Done buttons (multi-select and time wheel). |
|
package/dist/index.js
CHANGED
|
@@ -157,30 +157,6 @@
|
|
|
157
157
|
background: var(--aia-completed-pill-bg-active, rgba(189, 189, 189, 0.35));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
/* A chip whose removal finds items when the search found none (custom_fields.blocking_filters).
|
|
161
|
-
Greyed out at half opacity. After the hover rule, so it stays greyed while pointed at. */
|
|
162
|
-
:where(.aia-input-IW-P-) strong[class~="magicx-aia-segment--blocking"] {
|
|
163
|
-
opacity: var(--aia-blocking-chip-opacity, 0.5);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* The \xD7 of a greyed chip keeps its normal weight: its opacity multiplies with the chip's, so it is divided back out. */
|
|
167
|
-
:where(.aia-input-IW-P-)
|
|
168
|
-
strong[class~="magicx-aia-segment--blocking"]
|
|
169
|
-
span[class~="magicx-aia-segment-remove"] {
|
|
170
|
-
opacity: calc(var(--aia-chip-remove-opacity, 0.32) / var(--aia-blocking-chip-opacity, 0.5));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@media (hover: hover) {
|
|
174
|
-
:where(.aia-input-IW-P-)
|
|
175
|
-
strong[class~="magicx-aia-segment--blocking"]
|
|
176
|
-
span[class~="magicx-aia-segment-remove"]:hover {
|
|
177
|
-
opacity: calc(
|
|
178
|
-
var(--aia-chip-remove-opacity-hover, 0.7) /
|
|
179
|
-
var(--aia-blocking-chip-opacity, 0.5)
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
160
|
/* The picked option's icon inside a completed chip (see \`icon_svg\` on
|
|
185
161
|
CompletedParamState). Inline-block, one em square and sat on the text
|
|
186
162
|
baseline; the chip is one inline-block, so the icon never ends a line
|
|
@@ -3633,7 +3609,17 @@
|
|
|
3633
3609
|
flex: 0 0 18px;
|
|
3634
3610
|
width: 18px;
|
|
3635
3611
|
height: 18px;
|
|
3636
|
-
border:
|
|
3612
|
+
/* Its own border, not the dropdown's: stores often set --aia-border
|
|
3613
|
+
faint or transparent, which left the box visible only on hover. */
|
|
3614
|
+
border: 1.5px solid
|
|
3615
|
+
var(
|
|
3616
|
+
--aia-checkbox-border,
|
|
3617
|
+
color-mix(
|
|
3618
|
+
in srgb,
|
|
3619
|
+
var(--aia-option-color, var(--aia-color-text-default, #262626)) 65%,
|
|
3620
|
+
transparent
|
|
3621
|
+
)
|
|
3622
|
+
);
|
|
3637
3623
|
border-radius: 6px;
|
|
3638
3624
|
background: var(--aia-surface);
|
|
3639
3625
|
color: transparent;
|