@kerfjs/ui 5.0.0-beta.130 → 5.0.0-beta.131

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.
Files changed (95) hide show
  1. package/README.md +1 -0
  2. package/ai/component-catalog.json +15 -5
  3. package/ai/component-composition.json +7 -2
  4. package/ai/component-props-overlay.json +19 -1
  5. package/ai/component-props.json +89 -3
  6. package/ai/components/column-track.md +5 -3
  7. package/ai/components/tabs.md +2 -1
  8. package/ai/public-api-signatures-v1.md +52 -9
  9. package/ai/skill.md +2 -2
  10. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  11. package/dist/catalog.js +4 -3
  12. package/dist/catalog.js.map +1 -1
  13. package/dist/{chunk-73LC3JAL.js → chunk-2GEGIPDR.js} +2 -2
  14. package/dist/{chunk-73LC3JAL.js.map → chunk-2GEGIPDR.js.map} +1 -1
  15. package/dist/{chunk-ASU4ODOH.js → chunk-2RDWKN3Y.js} +39 -8
  16. package/dist/chunk-2RDWKN3Y.js.map +1 -0
  17. package/dist/{chunk-ALBFHXMZ.js → chunk-3UEMBHBK.js} +87 -2
  18. package/dist/chunk-3UEMBHBK.js.map +1 -0
  19. package/dist/{chunk-ECJHCPBN.js → chunk-4OH6JSGU.js} +7 -2
  20. package/dist/chunk-4OH6JSGU.js.map +1 -0
  21. package/dist/{chunk-LETAE6SX.js → chunk-CAB5IWV7.js} +2 -2
  22. package/dist/{chunk-LETAE6SX.js.map → chunk-CAB5IWV7.js.map} +1 -1
  23. package/dist/{chunk-WUVHP3UC.js → chunk-CUUW57WB.js} +11 -2
  24. package/dist/chunk-CUUW57WB.js.map +1 -0
  25. package/dist/{chunk-HHEBNP6Z.js → chunk-FCO7BT4P.js} +4 -4
  26. package/dist/{chunk-HHEBNP6Z.js.map → chunk-FCO7BT4P.js.map} +1 -1
  27. package/dist/{chunk-UD5KHQOH.js → chunk-LJV2FNOC.js} +26 -2
  28. package/dist/chunk-LJV2FNOC.js.map +1 -0
  29. package/dist/chunk-LK3QJHVX.js +19 -0
  30. package/dist/chunk-LK3QJHVX.js.map +1 -0
  31. package/dist/{chunk-Q7RILH2D.js → chunk-OQFWF7Q7.js} +30 -4
  32. package/dist/chunk-OQFWF7Q7.js.map +1 -0
  33. package/dist/chunk-QYOPZ2XS.js +124 -0
  34. package/dist/chunk-QYOPZ2XS.js.map +1 -0
  35. package/dist/{chunk-OSL4LQ7T.js → chunk-QZA75NOK.js} +2 -2
  36. package/dist/{chunk-OSL4LQ7T.js.map → chunk-QZA75NOK.js.map} +1 -1
  37. package/dist/{chunk-F34LHBQI.js → chunk-UOBC36FL.js} +8 -16
  38. package/dist/chunk-UOBC36FL.js.map +1 -0
  39. package/dist/{chunk-BMUYZKXW.js → chunk-YA6OAJY6.js} +3 -3
  40. package/dist/{chunk-BMUYZKXW.js.map → chunk-YA6OAJY6.js.map} +1 -1
  41. package/dist/column-explorer.js +2 -1
  42. package/dist/column-track.d.ts +20 -2
  43. package/dist/column-track.js +1 -1
  44. package/dist/editor.js +17 -13
  45. package/dist/editor.js.map +1 -1
  46. package/dist/index.d.ts +4 -2
  47. package/dist/index.js +11 -9
  48. package/dist/list-header.js +2 -1
  49. package/dist/message-composer.js +2 -1
  50. package/dist/popup-menu-register.js +1 -1
  51. package/dist/{search-field-5lNIszda.d.ts → search-field-7wLt3Bd5.d.ts} +10 -1
  52. package/dist/search-field-model.d.ts +1 -1
  53. package/dist/search-field.d.ts +1 -1
  54. package/dist/search-field.js +1 -1
  55. package/dist/select-register.js +1 -1
  56. package/dist/split-middle-De745N2j.d.ts +7 -0
  57. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +9 -1
  58. package/dist/styles/components/collections/framed-list/framed-list.css +7 -3
  59. package/dist/styles/components/collections/list-action-row/list-action-row.css +5 -1
  60. package/dist/styles/components/forms/radio-group/radio-group.css +8 -4
  61. package/dist/styles/components/forms/search-field/search-field.css +98 -0
  62. package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +33 -3
  63. package/dist/styles/components/typography/text/text.css +2 -2
  64. package/dist/styles/framed-list.css +7 -3
  65. package/dist/styles/list-action-row.css +5 -1
  66. package/dist/styles/radio-group.css +8 -4
  67. package/dist/styles/search-field.css +98 -0
  68. package/dist/styles/tab-bar-item.css +33 -3
  69. package/dist/styles/text.css +2 -2
  70. package/dist/styles/toolbar-control-group.css +9 -1
  71. package/dist/tab-bar-item.d.ts +26 -2
  72. package/dist/tab-bar-item.js +2 -1
  73. package/dist/tag-field.js +1 -1
  74. package/dist/text.d.ts +2 -1
  75. package/dist/text.js +2 -1
  76. package/dist/wire-catalog.js +1 -1
  77. package/dist/wire-column-tracks.d.ts +13 -0
  78. package/dist/wire-column-tracks.js +4 -0
  79. package/dist/wire-column-tracks.js.map +1 -0
  80. package/dist/wire-search-fields.d.ts +1 -1
  81. package/dist/wire-search-fields.js +1 -1
  82. package/dist/wire-tab-bars.js +1 -1
  83. package/dist/wire-tag-fields.js +1 -1
  84. package/docs/accessibility.md +17 -4
  85. package/docs/component-selection.md +13 -4
  86. package/docs/layout.md +11 -0
  87. package/llms.txt +7 -2
  88. package/package.json +5 -1
  89. package/dist/chunk-ALBFHXMZ.js.map +0 -1
  90. package/dist/chunk-ASU4ODOH.js.map +0 -1
  91. package/dist/chunk-ECJHCPBN.js.map +0 -1
  92. package/dist/chunk-F34LHBQI.js.map +0 -1
  93. package/dist/chunk-Q7RILH2D.js.map +0 -1
  94. package/dist/chunk-UD5KHQOH.js.map +0 -1
  95. package/dist/chunk-WUVHP3UC.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -42,14 +42,15 @@ export { wireForms } from './wire-forms.js';
42
42
  export { MessageComposer, MessageComposerProps, MessageComposerRootAttributes } from './message-composer.js';
43
43
  export { wireMessageComposers } from './wire-message-composers.js';
44
44
  export { RadioGroup, RadioGroupChoice, RadioGroupName, RadioGroupOptions, RadioGroupOrientation, RadioGroupProps, RadioGroupRootAttributes, RadioGroupSize } from './radio-group.js';
45
- export { S as SearchField, a as SearchFieldEditorAttributes, b as SearchFieldModel, c as SearchFieldModelOptions, d as SearchFieldProps, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, n as createSearchFieldModel, p as placeSearchFieldCaret, r as readSearchField } from './search-field-5lNIszda.js';
45
+ export { S as SearchField, a as SearchFieldEditorAttributes, b as SearchFieldModel, c as SearchFieldModelOptions, d as SearchFieldProps, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, n as createSearchFieldModel, p as placeSearchFieldCaret, r as readSearchField } from './search-field-7wLt3Bd5.js';
46
46
  export { SearchFieldCollapsibleOptions, SearchFieldEdit, SearchFieldSubmit, SearchFieldsHandle, WireSearchFieldsOptions, wireSearchFields } from './wire-search-fields.js';
47
47
  export { SegmentedControl, SegmentedControlAppearance, SegmentedControlChoice, SegmentedControlLayout, SegmentedControlProps, SegmentedControlShape, SegmentedControlSize } from './segmented-control.js';
48
48
  export { Select, SelectChoice, SelectFocusRingOwner, SelectPresentation, SelectProps, SelectSelectedPresentation, SelectSize } from './select.js';
49
49
  export { Switch, SwitchProps, SwitchRootAttributes, SwitchSize } from './switch.js';
50
50
  export { TextField, TextFieldInputMode, TextFieldName, TextFieldOptions, TextFieldProps, TextFieldRootAttributes, TextFieldSize, TextFieldType } from './text-field.js';
51
51
  export { wireTextFields } from './wire-text-fields.js';
52
- export { ColumnTrack, ColumnTrackLayout, ColumnTrackProps } from './column-track.js';
52
+ export { ColumnTrack, ColumnTrackLayout, ColumnTrackProps, ColumnTrackStart } from './column-track.js';
53
+ export { wireColumnTracks } from './wire-column-tracks.js';
53
54
  export { ContentSwap, ContentSwapDirection, ContentSwapProps, ContentSwapSide, ContentSwapTransition } from './content-swap.js';
54
55
  export { Grid, GridProps } from './grid.js';
55
56
  export { Pane, PaneAppearance, PaneChromeDividers, PaneChromePlacement, PaneConfig, PaneContentElement, PaneElement, PaneHeaderPresentation, PaneProps, PaneScrollAnchoring, PaneSeparatorSide, ScrollEdge } from './pane.js';
@@ -88,5 +89,6 @@ import 'kerfjs';
88
89
  import './extension-attributes-IJ4decoa.js';
89
90
  import 'kerfjs/overlay';
90
91
  import 'kerfjs/jsx-runtime';
92
+ import './split-middle-De745N2j.js';
91
93
  import './anchor-name-BZ1rpxaw.js';
92
94
  import 'lucide';
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  export { wireToolbarVisibility } from './chunk-2GOCOLQL.js';
2
+ export { wireMessageComposers } from './chunk-HTERKONR.js';
2
3
  export { wireOverlaySheets } from './chunk-KBS3GP6S.js';
4
+ export { wireColumnTracks } from './chunk-QYOPZ2XS.js';
3
5
  export { wireCornerStatus } from './chunk-JYKP7TBZ.js';
4
6
  export { wireListFocusScroll } from './chunk-QDSZTQXL.js';
5
- export { wireMessageComposers } from './chunk-HTERKONR.js';
6
7
  export { ValuePreview } from './chunk-Y4VR6VNM.js';
7
8
  export { TabPanel } from './chunk-OKZTLRGG.js';
8
9
  export { Spacer } from './chunk-FQETQ7CM.js';
@@ -11,14 +12,14 @@ export { SunkenPanel } from './chunk-NA4LKVPX.js';
11
12
  export { ScrollEffect } from './chunk-7KN5OQVN.js';
12
13
  export { SizedRegion } from './chunk-ECVTRAXN.js';
13
14
  export { RadioGroup } from './chunk-MVWR5WRX.js';
14
- export { MessageComposer } from './chunk-LETAE6SX.js';
15
+ export { MessageComposer } from './chunk-CAB5IWV7.js';
15
16
  export { EdgeActivityIndicator } from './chunk-5KWXM5O7.js';
16
17
  export { EditorFrame } from './chunk-LTOTL5AS.js';
17
18
  export { wireSummaryRows } from './chunk-CKPI4WIN.js';
18
- export { reorderTabs, wireTabBars } from './chunk-ASU4ODOH.js';
19
+ export { reorderTabs, wireTabBars } from './chunk-2RDWKN3Y.js';
19
20
  export { wireTextFields } from './chunk-KC6WUSNS.js';
20
21
  export { wireResizableRegions } from './chunk-MMOQR426.js';
21
- export { wireSearchFields } from './chunk-ALBFHXMZ.js';
22
+ export { wireSearchFields } from './chunk-3UEMBHBK.js';
22
23
  export { wireComboboxes } from './chunk-GE2BQXB3.js';
23
24
 
24
25
  export { fileMatchesAccept, wireFilePickers } from './chunk-KK3S5OTW.js';
@@ -30,7 +31,7 @@ export { wireCheckboxes } from './chunk-DJWBXEF4.js';
30
31
  export { readChoiceChips, wireChoiceChips } from './chunk-DB64I3DB.js';
31
32
  export { TextField } from './chunk-RGB4DPMN.js';
32
33
  export { ValueTable, ValueTableRow } from './chunk-WSPXSWFG.js';
33
- export { TabBarItem } from './chunk-Q7RILH2D.js';
34
+ export { TabBarItem } from './chunk-OQFWF7Q7.js';
34
35
  export { TabBar } from './chunk-4IXG6XCT.js';
35
36
  export { StateBanner } from './chunk-LOW7J7SE.js';
36
37
  export { SummaryRow } from './chunk-JHUEYWWI.js';
@@ -55,7 +56,7 @@ export { ContentSwap } from './chunk-EHR7R7YP.js';
55
56
  export { CornerStatus } from './chunk-CPTQABDQ.js';
56
57
  export { Chip } from './chunk-BCHK33XL.js';
57
58
  export { ChoiceChips } from './chunk-DV6GE57V.js';
58
- export { ColumnTrack } from './chunk-ECJHCPBN.js';
59
+ export { ColumnTrack } from './chunk-4OH6JSGU.js';
59
60
  export { openAnchoredSurface, openAnchoredSurfaceAt } from './chunk-COMEWURO.js';
60
61
 
61
62
  export { BackdropImage } from './chunk-UPHPFKAD.js';
@@ -63,7 +64,7 @@ export { BackdropImage } from './chunk-UPHPFKAD.js';
63
64
  export { Button } from './chunk-QXXLDY6I.js';
64
65
  export { ListInsetControl } from './chunk-3TBMGGTA.js';
65
66
  export { Switch } from './chunk-C4FBYP2D.js';
66
- export { SearchField, placeSearchFieldCaret, readSearchField } from './chunk-UD5KHQOH.js';
67
+ export { SearchField, placeSearchFieldCaret, readSearchField } from './chunk-LJV2FNOC.js';
67
68
  export { Row } from './chunk-CCPWJDRW.js';
68
69
  export { ListInsetText } from './chunk-CJAKN2KZ.js';
69
70
  export { PopupMenu, closePopupMenu, openPopupMenu, openPopupMenuAt } from './chunk-S7QB5KMM.js';
@@ -84,8 +85,9 @@ export { ListItem, ListItemLink } from './chunk-4UWLHKNU.js';
84
85
 
85
86
 
86
87
 
87
- export { ListHeader } from './chunk-OSL4LQ7T.js';
88
- export { FieldLabel, Text } from './chunk-F34LHBQI.js';
88
+ export { ListHeader } from './chunk-QZA75NOK.js';
89
+ export { FieldLabel, Text } from './chunk-UOBC36FL.js';
90
+
89
91
  export { Skeleton } from './chunk-VBXKYT4O.js';
90
92
  export { DisclosureArrow } from './chunk-RPJOLDSR.js';
91
93
  export { List } from './chunk-WVQDIOD7.js';
@@ -1,4 +1,5 @@
1
- export { ListHeader } from './chunk-OSL4LQ7T.js';
1
+ export { ListHeader } from './chunk-QZA75NOK.js';
2
+
2
3
 
3
4
 
4
5
 
@@ -1,4 +1,5 @@
1
- export { MessageComposer } from './chunk-LETAE6SX.js';
1
+ export { MessageComposer } from './chunk-CAB5IWV7.js';
2
+
2
3
 
3
4
 
4
5
 
@@ -1,4 +1,4 @@
1
- export { popupMenuElementsRegistered } from './chunk-WUVHP3UC.js';
1
+ export { popupMenuElementsRegistered } from './chunk-CUUW57WB.js';
2
2
 
3
3
 
4
4
 
@@ -74,6 +74,15 @@ interface SearchFieldBaseProps {
74
74
  autofocus?: boolean;
75
75
  /** Let an expanded collapsible field consume the available inline width. */
76
76
  fill?: boolean;
77
+ /**
78
+ * Quiet find-in-content readout ("3 of 12", "No matches") inside the field,
79
+ * between the editor and Clear. It describes the editor and is announced
80
+ * politely once it settles. Pass `''` while there is nothing to report so
81
+ * its description and live region stay mounted; it hides while the field is
82
+ * collapsed or empty, and ellipsizes, then hides, before the editor gives up
83
+ * its width.
84
+ */
85
+ resultText?: string;
77
86
  leading?: KerfUiContent;
78
87
  editAction?: string;
79
88
  removeAction?: string;
@@ -126,7 +135,7 @@ interface SearchFieldValue {
126
135
  query: string;
127
136
  tokens: SearchFieldToken[];
128
137
  }
129
- declare function SearchField({ id, label, query, tokens, model, revision, placeholder, tokenPlaceholder, disabled, autofocus, fill, collapsible, expanded, expandAction, expandLabel, leading, trailing, trailingAction, presentation, hint, required, editAction, removeAction, clearAction, clearLabel, clearIcon, className, editorAttributes, slot, rootAttributes, }: SearchFieldProps): SafeHtml;
138
+ declare function SearchField({ id, label, query, tokens, model, revision, placeholder, tokenPlaceholder, disabled, autofocus, fill, resultText, collapsible, expanded, expandAction, expandLabel, leading, trailing, trailingAction, presentation, hint, required, editAction, removeAction, clearAction, clearLabel, clearIcon, className, editorAttributes, slot, rootAttributes, }: SearchFieldProps): SafeHtml;
130
139
  /** Read editable text and ordered token offsets from a rendered SearchField editor. */
131
140
  declare function readSearchField(editor: HTMLElement, knownTokens?: readonly SearchFieldToken[]): SearchFieldValue;
132
141
  /** Focus an editor and place its caret at a text offset, skipping atomic token chips. */
@@ -1,4 +1,4 @@
1
- export { b as SearchFieldModel, c as SearchFieldModelOptions, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, n as createSearchFieldModel } from './search-field-5lNIszda.js';
1
+ export { b as SearchFieldModel, c as SearchFieldModelOptions, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, n as createSearchFieldModel } from './search-field-7wLt3Bd5.js';
2
2
  import 'kerfjs';
3
3
  import './semantic-content-BbzjvSu9.js';
4
4
  import './extension-attributes-IJ4decoa.js';
@@ -1,4 +1,4 @@
1
- export { S as SearchField, a as SearchFieldEditorAttributes, d as SearchFieldProps, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, p as placeSearchFieldCaret, r as readSearchField } from './search-field-5lNIszda.js';
1
+ export { S as SearchField, a as SearchFieldEditorAttributes, d as SearchFieldProps, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, p as placeSearchFieldCaret, r as readSearchField } from './search-field-7wLt3Bd5.js';
2
2
  import 'kerfjs';
3
3
  import './semantic-content-BbzjvSu9.js';
4
4
  import './extension-attributes-IJ4decoa.js';
@@ -1,4 +1,4 @@
1
- export { SearchField, placeSearchFieldCaret, readSearchField } from './chunk-UD5KHQOH.js';
1
+ export { SearchField, placeSearchFieldCaret, readSearchField } from './chunk-LJV2FNOC.js';
2
2
 
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- import { createTypeahead, itemLabel } from './chunk-WUVHP3UC.js';
1
+ import { createTypeahead, itemLabel } from './chunk-CUUW57WB.js';
2
2
 
3
3
  import { summarizeSelection } from './chunk-TUID42UE.js';
4
4
  import { followAnchor, positionPopup } from './chunk-SHECA2N4.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The suffix a middle truncation always keeps: a number of trailing
3
+ * characters, or `segment` for the last path segment with its separator.
4
+ */
5
+ type MiddleTruncateKeep = number | 'segment';
6
+
7
+ export type { MiddleTruncateKeep as M };
@@ -235,7 +235,11 @@
235
235
  --_kui-toolbar-group-search-width-duration: 0s;
236
236
  --_kui-toolbar-group-search-reveal-duration: 0.25s;
237
237
  width: min(var(--kui-search-field-expanded-width, 30rem), 100%);
238
- max-width: 100%;
238
+ /* KF-X9A8X9: the width's percentage is cyclic in a shrink-to-fit parent (a
239
+ TabBar's `end`), so it is ignored for the group's intrinsic contribution
240
+ and the whole query on one line sized the zone. A definite cap bounds the
241
+ contribution; the width above still keeps the group within its line. */
242
+ max-width: var(--kui-search-field-expanded-width, 30rem);
239
243
  height: auto;
240
244
  min-width: 0;
241
245
  overflow: hidden;
@@ -253,6 +257,7 @@
253
257
  > .kui-search-field[data-expanded="true"][data-fill="true"]
254
258
  ) {
255
259
  width: 100%;
260
+ max-width: 100%;
256
261
  flex: 1 1 auto;
257
262
  }
258
263
 
@@ -299,6 +304,8 @@
299
304
  /* The group's flex size owns this motion; its basis-wide minimum (above)
300
305
  already keeps the query on one line. */
301
306
  --_kui-toolbar-group-search-reveal-duration: 0s;
307
+ /* A grow group sizes by its basis and line, not the expanded-width cap. */
308
+ max-width: 100%;
302
309
  transition-property:
303
310
  width, flex-basis, flex-grow, min-width, background-color, border-color;
304
311
  transition-duration: 0.25s, 0.25s, 0.25s, 0.25s, 0.2s, 0.2s;
@@ -310,6 +317,7 @@
310
317
  }
311
318
  .kui-toolbar-control-group[data-sizing="fill"] {
312
319
  width: 100%;
320
+ max-width: 100%;
313
321
  min-width: 0;
314
322
  flex: 1 1 100%;
315
323
  }
@@ -24,17 +24,21 @@
24
24
 
25
25
  /* Each row owns the content inset and the 1px divider above it, inset to the
26
26
  row's padding like ValueTable's separators. Its margin is reset because a
27
- document or Web Awesome native stylesheet indents list items. */
27
+ document or Web Awesome native stylesheet indents list items.
28
+ KF-D8VK4Y: a column flexbox, not a grid. WebKit kept a grid row's height
29
+ from before a resize when a wrapping Grid or Row inside it gained a line,
30
+ so the content spilled under the next row; a flex column follows it. */
28
31
  .kui-framed-list__row {
29
32
  --_kui-framed-list-row-padding: var(--kui-layout-item-padding, 0.5rem);
30
33
  position: relative;
31
- display: grid;
34
+ display: flex;
35
+ flex-direction: column;
36
+ justify-content: center;
32
37
  min-width: 0;
33
38
  margin: 0;
34
39
  min-height: 2.75rem;
35
40
  padding: var(--_kui-framed-list-row-padding);
36
41
  box-sizing: border-box;
37
- align-items: center;
38
42
  }
39
43
 
40
44
  .kui-framed-list__row + .kui-framed-list__row::before {
@@ -253,8 +253,12 @@
253
253
  );
254
254
  }
255
255
 
256
+ /* KF-SE5BAR: a multiline label stays the stacking grid, so the primary
257
+ label, description, and status keep their own lines and each wraps; a
258
+ block label ran the three inline spans together. The stack starts at the
259
+ top, where the icon measures its first-line offset. */
256
260
  .kui-list-action-row[data-multiline="true"] .kui-list-action-row__label {
257
- display: block;
261
+ align-content: start;
258
262
  overflow: visible;
259
263
  overflow-wrap: anywhere;
260
264
  white-space: normal;
@@ -156,12 +156,16 @@
156
156
  gap: var(--kui-space-m, 1rem);
157
157
  }
158
158
  /* A definite tile width keeps the group's intrinsic width a row of whole
159
- tiles, so it lines them up wherever it is shrink-wrapped and wraps them
160
- when its container is narrower (three fit a phone-width column); the cap
161
- keeps one tile inside a container narrower than a tile. */
159
+ 104px tiles, so it lines them up wherever it is shrink-wrapped. Lines
160
+ break on the 88px flex basis instead (KF-0ZTK8A: line breaking uses the
161
+ basis, so a 104px basis wrapped the third tile in a 336px phone column),
162
+ so a short set shrinks to share a row down to that legible minimum, grows
163
+ back to 104px, and only then wraps whole tiles: three fit from 296px. The
164
+ cap keeps one tile inside a container narrower than a tile. */
162
165
  .kui-radio-group[data-presentation="tiles"] .kui-radio-group__choice {
166
+ flex: 1 1 5.5rem;
163
167
  width: 6.5rem;
164
- max-width: 100%;
168
+ max-width: min(6.5rem, 100%);
165
169
  }
166
170
  .kui-radio-group__tile {
167
171
  position: relative;
@@ -221,6 +221,104 @@
221
221
  border-radius: var(--kui-radius-pill);
222
222
  }
223
223
 
224
+ /* KF-8CDT8B: the find readout takes its own content-sized column between the
225
+ editor and Clear, only while it has text and the field has a query. The
226
+ editor keeps a floor (4rem, or a larger editor-min-width token), so the
227
+ readout gives way first: it ellipsizes down to about three characters, and
228
+ below that its text wraps onto a clipped second line, so the column shows
229
+ nothing rather than a sliver of a glyph. */
230
+ .kui-search-field__result {
231
+ display: flex;
232
+ grid-column: 3;
233
+ grid-row: 1;
234
+ min-width: 0;
235
+ height: var(--kui-search-field-line-size);
236
+ overflow: hidden;
237
+ flex-wrap: wrap;
238
+ color: var(--kui-color-text-quiet);
239
+ font-size: var(--kui-font-xs);
240
+ font-variant-numeric: tabular-nums;
241
+ line-height: var(--kui-search-field-line-size);
242
+ }
243
+
244
+ /* A zero-width first item: a lone flex item never wraps, so the text needs
245
+ one ahead of it to fall onto the clipped line when its 3em minimum does not
246
+ fit. */
247
+ .kui-search-field__result::before {
248
+ height: var(--kui-search-field-line-size);
249
+ content: "";
250
+ }
251
+
252
+ .kui-search-field__result-text {
253
+ min-width: 0;
254
+ max-width: max-content;
255
+ overflow: hidden;
256
+ flex: 1 1 3em;
257
+ text-overflow: ellipsis;
258
+ white-space: nowrap;
259
+ }
260
+
261
+ .kui-search-field__result[data-empty="true"],
262
+ .kui-search-field[data-placeholder-visible="true"] > .kui-search-field__result {
263
+ display: none;
264
+ }
265
+
266
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
267
+ > .kui-search-field__result[data-empty="false"]
268
+ ) {
269
+ grid-template-columns:
270
+ auto
271
+ minmax(
272
+ min(
273
+ max(var(--kui-search-field-editor-min-width, 0px), 4rem),
274
+ 100%
275
+ ),
276
+ 1fr
277
+ )
278
+ minmax(0, max-content) auto auto;
279
+ }
280
+
281
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
282
+ > .kui-search-field__result[data-empty="false"]
283
+ )
284
+ > .kui-search-field__clear {
285
+ grid-column: 4;
286
+ }
287
+
288
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
289
+ > .kui-search-field__result[data-empty="false"]
290
+ )
291
+ > :is(.kui-search-field__trailing, .kui-search-field__trailing-action) {
292
+ grid-column: 5;
293
+ }
294
+
295
+ /* Without a trailing slot, Clear ends the row right after the readout. */
296
+ .kui-search-field[data-has-trailing="false"]:not(
297
+ [data-placeholder-visible="true"]
298
+ ):has(> .kui-search-field__result[data-empty="false"]) {
299
+ grid-template-columns:
300
+ auto
301
+ minmax(
302
+ min(
303
+ max(var(--kui-search-field-editor-min-width, 0px), 4rem),
304
+ 100%
305
+ ),
306
+ 1fr
307
+ )
308
+ minmax(0, max-content) auto;
309
+ }
310
+
311
+ .kui-search-field__result-live {
312
+ position: absolute;
313
+ width: 1px;
314
+ height: 1px;
315
+ margin: -1px;
316
+ padding: 0;
317
+ overflow: hidden;
318
+ clip-path: inset(50%);
319
+ white-space: nowrap;
320
+ }
321
+
224
322
  .kui-search-field__suggestions {
225
323
  display: grid;
226
324
  position: absolute;
@@ -166,13 +166,43 @@
166
166
  text-overflow: ellipsis;
167
167
  white-space: nowrap;
168
168
  }
169
+ /* Tail-preserving names (KF-SDNA0Z), as Text's truncate="start" and
170
+ "middle": a start ellipsis runs the clip box right to left around a name
171
+ bracketed by left-to-right marks, and a middle ellipsis shrinks the head
172
+ while the kept suffix stays whole. */
173
+ .kui-tab-bar-item[data-name-truncate="start"] .kui-tab-bar-item__name {
174
+ direction: rtl;
175
+ text-align: left;
176
+ }
177
+ .kui-tab-bar-item[data-name-truncate="middle"] .kui-tab-bar-item__name {
178
+ display: flex;
179
+ }
180
+ .kui-tab-bar-item__name-head,
181
+ .kui-tab-bar-item__name-tail {
182
+ white-space: pre;
183
+ }
184
+ .kui-tab-bar-item__name-head {
185
+ flex: 0 1 auto;
186
+ min-width: 0;
187
+ overflow: hidden;
188
+ text-overflow: ellipsis;
189
+ }
190
+ .kui-tab-bar-item__name-tail {
191
+ flex: 0 0 auto;
192
+ }
193
+ /* A visible name keeps the tab at its full width with no label cap. A tab
194
+ wider than its whole strip (KF-0M3ZPT) is the exception: it takes the
195
+ strip's width and ellipsizes, and wireTabBars titles it with the full
196
+ name, so the strip never clips the name silently. */
197
+ .kui-tab-bar-item[data-name-overflow="visible"] {
198
+ max-width: 100%;
199
+ }
169
200
  .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__label,
170
201
  .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__name {
171
202
  max-width: none;
172
203
  }
173
- .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__name {
174
- overflow: visible;
175
- text-overflow: clip;
204
+ .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__label {
205
+ min-width: 0;
176
206
  }
177
207
  .kui-tab-bar-item[data-attention="true"] .kui-tab-bar-item__name {
178
208
  color: var(
@@ -82,8 +82,8 @@ span.kui-text[data-wrap="truncate"] {
82
82
  }
83
83
 
84
84
  /* Tail-preserving truncation: the clip box runs right to left so its ellipsis
85
- lands at the start, while the isolated left-to-right run keeps the text's
86
- own order and punctuation. Short text that fits stays left-aligned. */
85
+ lands at the start, while left-to-right marks around the text keep its own
86
+ order and punctuation. Short text that fits stays left-aligned. */
87
87
  .kui-text__truncate-start {
88
88
  display: block;
89
89
  overflow: hidden;
@@ -24,17 +24,21 @@
24
24
 
25
25
  /* Each row owns the content inset and the 1px divider above it, inset to the
26
26
  row's padding like ValueTable's separators. Its margin is reset because a
27
- document or Web Awesome native stylesheet indents list items. */
27
+ document or Web Awesome native stylesheet indents list items.
28
+ KF-D8VK4Y: a column flexbox, not a grid. WebKit kept a grid row's height
29
+ from before a resize when a wrapping Grid or Row inside it gained a line,
30
+ so the content spilled under the next row; a flex column follows it. */
28
31
  .kui-framed-list__row {
29
32
  --_kui-framed-list-row-padding: var(--kui-layout-item-padding, 0.5rem);
30
33
  position: relative;
31
- display: grid;
34
+ display: flex;
35
+ flex-direction: column;
36
+ justify-content: center;
32
37
  min-width: 0;
33
38
  margin: 0;
34
39
  min-height: 2.75rem;
35
40
  padding: var(--_kui-framed-list-row-padding);
36
41
  box-sizing: border-box;
37
- align-items: center;
38
42
  }
39
43
 
40
44
  .kui-framed-list__row + .kui-framed-list__row::before {
@@ -253,8 +253,12 @@
253
253
  );
254
254
  }
255
255
 
256
+ /* KF-SE5BAR: a multiline label stays the stacking grid, so the primary
257
+ label, description, and status keep their own lines and each wraps; a
258
+ block label ran the three inline spans together. The stack starts at the
259
+ top, where the icon measures its first-line offset. */
256
260
  .kui-list-action-row[data-multiline="true"] .kui-list-action-row__label {
257
- display: block;
261
+ align-content: start;
258
262
  overflow: visible;
259
263
  overflow-wrap: anywhere;
260
264
  white-space: normal;
@@ -156,12 +156,16 @@
156
156
  gap: var(--kui-space-m, 1rem);
157
157
  }
158
158
  /* A definite tile width keeps the group's intrinsic width a row of whole
159
- tiles, so it lines them up wherever it is shrink-wrapped and wraps them
160
- when its container is narrower (three fit a phone-width column); the cap
161
- keeps one tile inside a container narrower than a tile. */
159
+ 104px tiles, so it lines them up wherever it is shrink-wrapped. Lines
160
+ break on the 88px flex basis instead (KF-0ZTK8A: line breaking uses the
161
+ basis, so a 104px basis wrapped the third tile in a 336px phone column),
162
+ so a short set shrinks to share a row down to that legible minimum, grows
163
+ back to 104px, and only then wraps whole tiles: three fit from 296px. The
164
+ cap keeps one tile inside a container narrower than a tile. */
162
165
  .kui-radio-group[data-presentation="tiles"] .kui-radio-group__choice {
166
+ flex: 1 1 5.5rem;
163
167
  width: 6.5rem;
164
- max-width: 100%;
168
+ max-width: min(6.5rem, 100%);
165
169
  }
166
170
  .kui-radio-group__tile {
167
171
  position: relative;
@@ -221,6 +221,104 @@
221
221
  border-radius: var(--kui-radius-pill);
222
222
  }
223
223
 
224
+ /* KF-8CDT8B: the find readout takes its own content-sized column between the
225
+ editor and Clear, only while it has text and the field has a query. The
226
+ editor keeps a floor (4rem, or a larger editor-min-width token), so the
227
+ readout gives way first: it ellipsizes down to about three characters, and
228
+ below that its text wraps onto a clipped second line, so the column shows
229
+ nothing rather than a sliver of a glyph. */
230
+ .kui-search-field__result {
231
+ display: flex;
232
+ grid-column: 3;
233
+ grid-row: 1;
234
+ min-width: 0;
235
+ height: var(--kui-search-field-line-size);
236
+ overflow: hidden;
237
+ flex-wrap: wrap;
238
+ color: var(--kui-color-text-quiet);
239
+ font-size: var(--kui-font-xs);
240
+ font-variant-numeric: tabular-nums;
241
+ line-height: var(--kui-search-field-line-size);
242
+ }
243
+
244
+ /* A zero-width first item: a lone flex item never wraps, so the text needs
245
+ one ahead of it to fall onto the clipped line when its 3em minimum does not
246
+ fit. */
247
+ .kui-search-field__result::before {
248
+ height: var(--kui-search-field-line-size);
249
+ content: "";
250
+ }
251
+
252
+ .kui-search-field__result-text {
253
+ min-width: 0;
254
+ max-width: max-content;
255
+ overflow: hidden;
256
+ flex: 1 1 3em;
257
+ text-overflow: ellipsis;
258
+ white-space: nowrap;
259
+ }
260
+
261
+ .kui-search-field__result[data-empty="true"],
262
+ .kui-search-field[data-placeholder-visible="true"] > .kui-search-field__result {
263
+ display: none;
264
+ }
265
+
266
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
267
+ > .kui-search-field__result[data-empty="false"]
268
+ ) {
269
+ grid-template-columns:
270
+ auto
271
+ minmax(
272
+ min(
273
+ max(var(--kui-search-field-editor-min-width, 0px), 4rem),
274
+ 100%
275
+ ),
276
+ 1fr
277
+ )
278
+ minmax(0, max-content) auto auto;
279
+ }
280
+
281
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
282
+ > .kui-search-field__result[data-empty="false"]
283
+ )
284
+ > .kui-search-field__clear {
285
+ grid-column: 4;
286
+ }
287
+
288
+ .kui-search-field:not([data-placeholder-visible="true"]):has(
289
+ > .kui-search-field__result[data-empty="false"]
290
+ )
291
+ > :is(.kui-search-field__trailing, .kui-search-field__trailing-action) {
292
+ grid-column: 5;
293
+ }
294
+
295
+ /* Without a trailing slot, Clear ends the row right after the readout. */
296
+ .kui-search-field[data-has-trailing="false"]:not(
297
+ [data-placeholder-visible="true"]
298
+ ):has(> .kui-search-field__result[data-empty="false"]) {
299
+ grid-template-columns:
300
+ auto
301
+ minmax(
302
+ min(
303
+ max(var(--kui-search-field-editor-min-width, 0px), 4rem),
304
+ 100%
305
+ ),
306
+ 1fr
307
+ )
308
+ minmax(0, max-content) auto;
309
+ }
310
+
311
+ .kui-search-field__result-live {
312
+ position: absolute;
313
+ width: 1px;
314
+ height: 1px;
315
+ margin: -1px;
316
+ padding: 0;
317
+ overflow: hidden;
318
+ clip-path: inset(50%);
319
+ white-space: nowrap;
320
+ }
321
+
224
322
  .kui-search-field__suggestions {
225
323
  display: grid;
226
324
  position: absolute;
@@ -166,13 +166,43 @@
166
166
  text-overflow: ellipsis;
167
167
  white-space: nowrap;
168
168
  }
169
+ /* Tail-preserving names (KF-SDNA0Z), as Text's truncate="start" and
170
+ "middle": a start ellipsis runs the clip box right to left around a name
171
+ bracketed by left-to-right marks, and a middle ellipsis shrinks the head
172
+ while the kept suffix stays whole. */
173
+ .kui-tab-bar-item[data-name-truncate="start"] .kui-tab-bar-item__name {
174
+ direction: rtl;
175
+ text-align: left;
176
+ }
177
+ .kui-tab-bar-item[data-name-truncate="middle"] .kui-tab-bar-item__name {
178
+ display: flex;
179
+ }
180
+ .kui-tab-bar-item__name-head,
181
+ .kui-tab-bar-item__name-tail {
182
+ white-space: pre;
183
+ }
184
+ .kui-tab-bar-item__name-head {
185
+ flex: 0 1 auto;
186
+ min-width: 0;
187
+ overflow: hidden;
188
+ text-overflow: ellipsis;
189
+ }
190
+ .kui-tab-bar-item__name-tail {
191
+ flex: 0 0 auto;
192
+ }
193
+ /* A visible name keeps the tab at its full width with no label cap. A tab
194
+ wider than its whole strip (KF-0M3ZPT) is the exception: it takes the
195
+ strip's width and ellipsizes, and wireTabBars titles it with the full
196
+ name, so the strip never clips the name silently. */
197
+ .kui-tab-bar-item[data-name-overflow="visible"] {
198
+ max-width: 100%;
199
+ }
169
200
  .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__label,
170
201
  .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__name {
171
202
  max-width: none;
172
203
  }
173
- .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__name {
174
- overflow: visible;
175
- text-overflow: clip;
204
+ .kui-tab-bar-item[data-name-overflow="visible"] .kui-tab-bar-item__label {
205
+ min-width: 0;
176
206
  }
177
207
  .kui-tab-bar-item[data-attention="true"] .kui-tab-bar-item__name {
178
208
  color: var(