@smilodon/core 1.20.0 → 1.22.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.
package/README.md CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  > **Verification status:** `EnhancedSelect`'s public `virtualize` setting chunks large-list rendering but does not bound the final option DOM. Viewport-windowed rendering remains behind a private test seam and is not production-activated. ARIA and keyboard behaviors have automated coverage in progress; WCAG conformance and manual assistive-technology review have not been certified. See [known limitations](../../docs/KNOWN-LIMITATIONS.md#viewport-virtualization-status) and the [Phase 4 certification record](../../docs/architecture/PHASE-4-CERTIFICATION.md).
14
14
 
15
+ > **Next Core candidate (unpublished):** Core `1.22.0` adds the truncated search-query tooltip and isolated icon-root support for React-node remove icons. See the [release candidate record](../../docs/releases/WEB-1.22.0-RELEASE.md) for package pairing and qualification status.
16
+
15
17
  > **Issue #100:** `multiSelectDisplay.scrollToLatestChip` is available in `@smilodon/core@1.17.0`. See [Multi-Select Display Modes](#multi-select-display-modes) and the [release verification](../../docs/releases/WEB-1.17.0-REGISTRY-VERIFICATION.json).
16
18
 
17
19
  > **Core 1.20.0:** Adds selected-first option presentation and selected-option open positioning through `selectedOptions` and `scrollToSelected`. It also includes Core 1.19.0's styling fixes and search threshold. See [selected-option configuration](#selected-option-presentation-and-opening-scroll), [arrow container positioning](#custom-arrow-slot), and the [release record](../../docs/releases/WEB-1.20.0-RELEASE.md).
@@ -29,6 +31,14 @@ select.updateConfig({
29
31
  })
30
32
  ```
31
33
 
34
+ ## Selected-label tooltip
35
+
36
+ Core displays the full selected display label in a shared tooltip when the closed single-select value or a multi-select chip is visually truncated. The tooltip appears on pointer hover or keyboard focus; a label that fits does not open one. It uses the same configured item-label resolver as the visible selection, so custom `serverSide.getLabelFromItem` labels are reflected. Search queries are not treated as selected values. Multi-select chip labels become tab stops only while truncated, and Escape dismisses the tooltip without moving focus. This behavior covers selected values and chips, not custom option content in the dropdown.
37
+
38
+ ### Truncated search queries (Issue #129)
39
+
40
+ When a searchable input's current query is wider than the visible input area, Core uses the same tooltip to expose the full query on hover or keyboard focus. Search content remains a query, never a selected label; pending acknowledged input is considered while its update is in flight. The tooltip follows edits, query clearing, resize, and direction changes without changing the input value, caret, selection, or scroll position. Escape dismisses the tooltip, and a later edit can show it again. This behavior is included in Core `1.22.0`.
41
+
32
42
  ## Custom busy bucket (Core 1.13.0)
33
43
 
34
44
  Introduced in `@smilodon/core@1.13.0` (Issue #90), the busy bucket keeps request state in Core and lets the host customize its presentation. Use the native slots with the Web Component or Vanilla API:
@@ -630,6 +640,7 @@ enhanced-select.dark-mode {
630
640
  --select-arrow-width /* Container width (40px) */
631
641
  --select-arrow-container-position /* Arrow container position (absolute) */
632
642
  --select-arrow-border-radius /* Container border radius */
643
+ --select-dropdown-arrow-container-padding /* Padding inside the arrow container (0) */
633
644
 
634
645
  /* Group headers (when using groupedItems or flat items with `group` property) */
635
646
  --select-group-header-padding /* Padding inside header (8px 12px) */
@@ -652,6 +663,17 @@ enhanced-select.dark-mode {
652
663
  --select-checkmark-color
653
664
  ```
654
665
 
666
+ The inner selected-value/chip/search wrapper and the arrow container have independent padding tokens:
667
+
668
+ ```css
669
+ enhanced-select {
670
+ --select-input-content-padding: 4px;
671
+ --select-dropdown-arrow-container-padding: 8px 4px;
672
+ }
673
+ ```
674
+
675
+ Both accept the standard CSS `padding` shorthand and update live. The input-content token does not affect the outer `--select-input-padding` shell. When unset, wrap/vertical multi-select keeps its 12px logical inline-end gap; horizontal multi-select keeps zero content padding and its separate arrow/clear scroll-padding. Explicit input-content padding replaces the complete mode-specific fallback.
676
+
655
677
  **Dark Mode (Opt-in)**
656
678
  ```css
657
679
  --select-dark-bg /* Dark input background (#1f2937) */
@@ -689,7 +711,11 @@ The component implements keyboard interaction paths including:
689
711
  | `PageUp` / `PageDown` | Jump 10 options up/down |
690
712
  | `Escape` | Close dropdown |
691
713
  | `Tab` | Close dropdown and move focus |
692
- | `Ctrl+A` (multi-select) | Select all options |
714
+ | `Space` in a searchable input | Insert a space at the caret and update search through the native input event |
715
+ | `Space` in a non-searchable select | Activate the active option |
716
+ | `Enter` | Activate the active option |
717
+ | `Ctrl+A` / `Cmd+A` in a searchable input | Use the browser's native select-all-text behavior; selected options are unchanged |
718
+ | `Ctrl+A` / `Cmd+A` (non-searchable multi-select) | Select all options |
693
719
  | Type characters | Type-ahead search |
694
720
 
695
721
  When an empty single-select opens, it has no active option and does not expose `aria-activedescendant` until keyboard navigation begins. Press `ArrowDown` to activate the first selectable option. If a value is already selected, opening the list activates that selected option.
@@ -919,6 +945,39 @@ enhanced-select {
919
945
  }
920
946
  ```
921
947
 
948
+ #### Multi-select chip animations
949
+
950
+ Core exposes separate entry and opt-in exit animation tokens. The legacy
951
+ `--select-badge-animation` continues to control entry when
952
+ `--select-badge-enter-animation` is unset. Exit defaults to `none`, so the
953
+ selected value is removed immediately unless an exit animation is configured.
954
+
955
+ ```css
956
+ enhanced-select {
957
+ --select-badge-enter-animation: badgeEnter 180ms ease-out both;
958
+ --select-badge-exit-animation: badgeExit 140ms ease-in both;
959
+ }
960
+ ```
961
+
962
+ `badgeEnter` and `badgeExit` are built-in keyframes. Arbitrary keyframe names
963
+ declared in the consuming document cannot be resolved from inside the
964
+ component's Shadow DOM through a custom property. Use the exposed parts for
965
+ consumer-defined keyframes:
966
+
967
+ ```css
968
+ @keyframes app-chip-exit {
969
+ to { opacity: 0; transform: translateY(-6px) scale(0.96); }
970
+ }
971
+
972
+ enhanced-select::part(chip-exiting) {
973
+ animation: app-chip-exit 140ms ease-in both;
974
+ }
975
+ ```
976
+
977
+ Selection state and events update immediately. The exiting chip remains only
978
+ for its visual animation and is inert, hidden from assistive technology, and
979
+ removed on animation completion (or immediately for reduced motion).
980
+
922
981
  **Complete CSS Variables Reference**
923
982
 
924
983
  The canonical styling inventory now lives in: