@kerfjs/ui 5.0.0-beta.135 → 5.0.0-beta.137

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 (125) hide show
  1. package/README.md +19 -0
  2. package/ai/component-catalog.json +17 -5
  3. package/ai/component-composition-rules.json +7 -0
  4. package/ai/component-composition.json +18 -0
  5. package/ai/components/empty-state.md +1 -0
  6. package/ai/components/popup-menu.md +1 -1
  7. package/ai/components/text.md +7 -4
  8. package/ai/public-api-signatures-v1.md +99 -21
  9. package/ai/skill.md +10 -0
  10. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  11. package/dist/catalog-library.d.ts +2 -2
  12. package/dist/catalog-resources.d.ts +1 -1
  13. package/dist/catalog.d.ts +3 -3
  14. package/dist/catalog.js +4 -4
  15. package/dist/{chunk-OW2ODKHN.js → chunk-44C2K6V6.js} +33 -9
  16. package/dist/chunk-44C2K6V6.js.map +1 -0
  17. package/dist/{chunk-IXT2ARIM.js → chunk-6FQFZVRV.js} +2 -2
  18. package/dist/{chunk-IXT2ARIM.js.map → chunk-6FQFZVRV.js.map} +1 -1
  19. package/dist/{chunk-LH5V6XGH.js → chunk-7G6BSG4B.js} +1 -1
  20. package/dist/{chunk-LH5V6XGH.js.map → chunk-7G6BSG4B.js.map} +1 -1
  21. package/dist/{chunk-XNSYDA6G.js → chunk-B4UWDIUL.js} +5 -5
  22. package/dist/{chunk-XNSYDA6G.js.map → chunk-B4UWDIUL.js.map} +1 -1
  23. package/dist/{chunk-42NLFCIN.js → chunk-D4KXWVNG.js} +33 -4
  24. package/dist/chunk-D4KXWVNG.js.map +1 -0
  25. package/dist/{chunk-LK3QJHVX.js → chunk-GP3G3ZY3.js} +1 -1
  26. package/dist/chunk-GP3G3ZY3.js.map +1 -0
  27. package/dist/{chunk-QNB5DKKP.js → chunk-LMBSIRGQ.js} +2 -2
  28. package/dist/{chunk-QNB5DKKP.js.map → chunk-LMBSIRGQ.js.map} +1 -1
  29. package/dist/{chunk-YRQ4KKLG.js → chunk-NPPL3NXM.js} +16 -2
  30. package/dist/chunk-NPPL3NXM.js.map +1 -0
  31. package/dist/{chunk-MPT6Y7Z2.js → chunk-QOZABB23.js} +29 -1
  32. package/dist/chunk-QOZABB23.js.map +1 -0
  33. package/dist/{chunk-EI55KWHP.js → chunk-QWB4FEWD.js} +2 -1
  34. package/dist/chunk-QWB4FEWD.js.map +1 -0
  35. package/dist/{chunk-ZDI5I2HT.js → chunk-RMGHAIV5.js} +3 -3
  36. package/dist/{chunk-ZDI5I2HT.js.map → chunk-RMGHAIV5.js.map} +1 -1
  37. package/dist/{chunk-QNA27ABY.js → chunk-TNHJMOWJ.js} +4 -2
  38. package/dist/chunk-TNHJMOWJ.js.map +1 -0
  39. package/dist/{chunk-LSFPZR52.js → chunk-WBNUX4LA.js} +2 -2
  40. package/dist/{chunk-LSFPZR52.js.map → chunk-WBNUX4LA.js.map} +1 -1
  41. package/dist/{chunk-XZ253TGP.js → chunk-XZWEKC5F.js} +27 -5
  42. package/dist/chunk-XZWEKC5F.js.map +1 -0
  43. package/dist/{chunk-QWAAR5JX.js → chunk-ZS4WBHQG.js} +3 -3
  44. package/dist/{chunk-QWAAR5JX.js.map → chunk-ZS4WBHQG.js.map} +1 -1
  45. package/dist/collapsible-panel.js +2 -2
  46. package/dist/column-explorer.js +1 -1
  47. package/dist/{compose-B_GFfFhm.d.ts → compose-Qkitwg3x.d.ts} +1 -1
  48. package/dist/empty-state.d.ts +3 -1
  49. package/dist/empty-state.js +1 -1
  50. package/dist/index.d.ts +4 -4
  51. package/dist/index.js +9 -9
  52. package/dist/list-action-row.js +1 -1
  53. package/dist/list-detail-dialog.js +2 -2
  54. package/dist/list-header.d.ts +41 -1
  55. package/dist/list-header.js +1 -1
  56. package/dist/message-composer.js +1 -1
  57. package/dist/nav-stack.js +1 -1
  58. package/dist/pane.d.ts +2 -2
  59. package/dist/pane.js +1 -1
  60. package/dist/popup-menu.d.ts +12 -1
  61. package/dist/popup-menu.js +1 -1
  62. package/dist/split-middle-BNI0Rni-.d.ts +9 -0
  63. package/dist/split-view.js +1 -1
  64. package/dist/styles/backdrop-image.css +26 -0
  65. package/dist/styles/color-picker.css +4 -0
  66. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +15 -0
  67. package/dist/styles/components/collections/list-header/list-header.css +60 -4
  68. package/dist/styles/components/feedback/empty-state/empty-state.css +7 -0
  69. package/dist/styles/components/forms/color-picker/color-picker.css +4 -0
  70. package/dist/styles/components/layout/pane/pane.css +6 -0
  71. package/dist/styles/components/navigation/nav-stack/nav-stack.css +12 -0
  72. package/dist/styles/components/navigation/paged-view/paged-view.css +4 -0
  73. package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +31 -1
  74. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +6 -0
  75. package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +22 -0
  76. package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +4 -0
  77. package/dist/styles/components/typography/text/text.css +64 -2
  78. package/dist/styles/content-item.css +26 -0
  79. package/dist/styles/empty-state.css +7 -0
  80. package/dist/styles/foundation.css +28 -4
  81. package/dist/styles/list-header.css +60 -4
  82. package/dist/styles/nav-stack.css +12 -0
  83. package/dist/styles/paged-view.css +4 -0
  84. package/dist/styles/pane.css +6 -0
  85. package/dist/styles/scroll-effect.css +4 -0
  86. package/dist/styles/tab-bar-item.css +31 -1
  87. package/dist/styles/tab-navigator.css +6 -0
  88. package/dist/styles/text.css +64 -2
  89. package/dist/styles/toolbar-control-group.css +15 -0
  90. package/dist/styles/webawesome.css +19 -0
  91. package/dist/tab-bar-item.d.ts +9 -4
  92. package/dist/tab-bar-item.js +1 -1
  93. package/dist/text.d.ts +24 -4
  94. package/dist/text.js +1 -1
  95. package/dist/{types-CuKf5G87.d.ts → types-PGGOsJug.d.ts} +2 -1
  96. package/dist/wire-catalog.d.ts +1 -1
  97. package/dist/wire-search-fields.js +1 -1
  98. package/dist/wire-tag-fields.js +1 -1
  99. package/dist/workbench-dialog.js +1 -1
  100. package/dist/workbench.js +1 -1
  101. package/docs/accessibility.md +1 -1
  102. package/docs/component-selection.md +15 -1
  103. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  104. package/docs/design/sketch/README.md +13 -8
  105. package/docs/design/sketch/unified/README.md +23 -10
  106. package/docs/design/sketch/unified/pages/advanced.png +0 -0
  107. package/docs/design/sketch/unified/pages/content.png +0 -0
  108. package/docs/design/sketch/unified/pages/toolbar.png +0 -0
  109. package/docs/design/sketch/unified/variant-link-investigation.md +45 -0
  110. package/docs/design/templates.md +1 -1
  111. package/docs/layout.md +7 -0
  112. package/docs/workbench.md +6 -1
  113. package/doctor/eslint-diagnostics.d.mts +4 -0
  114. package/doctor/eslint-diagnostics.mjs +13 -0
  115. package/doctor/index.mjs +2 -1
  116. package/package.json +1 -1
  117. package/dist/chunk-42NLFCIN.js.map +0 -1
  118. package/dist/chunk-EI55KWHP.js.map +0 -1
  119. package/dist/chunk-LK3QJHVX.js.map +0 -1
  120. package/dist/chunk-MPT6Y7Z2.js.map +0 -1
  121. package/dist/chunk-OW2ODKHN.js.map +0 -1
  122. package/dist/chunk-QNA27ABY.js.map +0 -1
  123. package/dist/chunk-XZ253TGP.js.map +0 -1
  124. package/dist/chunk-YRQ4KKLG.js.map +0 -1
  125. package/dist/split-middle-De745N2j.d.ts +0 -7
@@ -1,4 +1,4 @@
1
- export { SplitView } from './chunk-IXT2ARIM.js';
1
+ export { SplitView } from './chunk-6FQFZVRV.js';
2
2
 
3
3
 
4
4
 
@@ -120,6 +120,10 @@
120
120
  }
121
121
  }
122
122
 
123
+ :where(:root[data-kui-contrast="more"]) [data-kui-scroll-effect] {
124
+ animation: none;
125
+ }
126
+
123
127
  /* An image block at the top of a scrolling Pane or NavStack view. The root
124
128
  paints fadeTo, so the image fades into it and the content below sits on the
125
129
  same color. It bleeds to the Pane's resolved inline insets (the safe area)
@@ -328,3 +332,25 @@
328
332
  color: inherit;
329
333
  }
330
334
  }
335
+
336
+ :where(:root[data-kui-contrast="more"])
337
+ .kui-backdrop-image[data-fade="true"]
338
+ .kui-backdrop-image__backdrop {
339
+ mask-image: none;
340
+ }
341
+
342
+ :where(:root[data-kui-contrast="more"])
343
+ .kui-backdrop-image[data-fade="true"]
344
+ .kui-backdrop-image__overlay {
345
+ background-color: var(--_kui-backdrop-image-fade-to);
346
+ }
347
+
348
+ :where(:root[data-kui-contrast="more"])
349
+ .kui-backdrop-image[data-fade="true"]:is(
350
+ [data-scrim="bottom"],
351
+ [data-scrim="full"]
352
+ )
353
+ .kui-backdrop-image__overlay {
354
+ color-scheme: inherit;
355
+ color: inherit;
356
+ }
@@ -348,6 +348,10 @@
348
348
  }
349
349
  }
350
350
 
351
+ :where(:root[data-kui-contrast="more"]) .kui-color-picker__surface {
352
+ --_kui-color-picker-track-edge: var(--kui-color-text);
353
+ }
354
+
351
355
  @media (forced-colors: active) {
352
356
  .kui-color-picker__surface {
353
357
  --_kui-color-picker-track-edge: CanvasText;
@@ -555,6 +555,21 @@
555
555
  }
556
556
  }
557
557
 
558
+ :where(:root[data-kui-contrast="more"])
559
+ .kui-toolbar-control-group[data-material="glass"]:not(
560
+ [data-appearance="borderless"]
561
+ ) {
562
+ --kui-toolbar-control-border: var(--kui-color-neutral-border-normal);
563
+ }
564
+
565
+ :where(:root[data-kui-contrast="more"])
566
+ .kui-toolbar-control-group[data-material="glass"][data-tone="dark"]:not(
567
+ [data-appearance="borderless"]
568
+ ) {
569
+ --kui-toolbar-control-background: var(--kui-color-neutral-fill-loud);
570
+ --kui-toolbar-control-border: var(--kui-toolbar-control-dark-border, #353536);
571
+ }
572
+
558
573
  :root[data-kui-effects="static"]
559
574
  .kui-toolbar-control-group[data-material="glass"]:not(
560
575
  [data-appearance="borderless"]
@@ -29,11 +29,17 @@
29
29
  padding-block: var(--kui-list-header-title-padding-block, 0.25rem);
30
30
  }
31
31
 
32
- /* Wrapped label lines keep the compact header's 4px block inset off the
33
- header edges; a one-line label still centers in the unchanged minimum
34
- height. */
32
+ /* A content-sized toggle lets further label lines increase the header's own
33
+ height; align the count and disclosure with its first line. */
35
34
  .kui-list-header[data-wrap="true"] .kui-list-header__title {
36
- padding-block: var(--kui-list-header-title-padding-block, 0.25rem);
35
+ padding-block: var(--kui-list-header-title-padding-block, 0.5rem);
36
+ align-items: flex-start;
37
+ height: max-content;
38
+ }
39
+
40
+ .kui-list-header[data-wrap="true"] > .kui-list-header__action {
41
+ align-self: flex-start;
42
+ margin-block-start: 0.25rem;
37
43
  }
38
44
 
39
45
  .kui-list-header[data-divider="before"],
@@ -104,6 +110,56 @@
104
110
  text-align: start;
105
111
  }
106
112
 
113
+ .kui-list-header__heading {
114
+ display: flex;
115
+ min-width: 0;
116
+ flex: 1 1 auto;
117
+ margin: 0;
118
+ font: inherit;
119
+ }
120
+
121
+ .kui-list-header__title-action {
122
+ appearance: none;
123
+ display: flex;
124
+ width: 100%;
125
+ min-width: 0;
126
+ min-height: var(
127
+ --kui-list-header-title-min-height,
128
+ var(--kui-list-header-min-height, 2.75rem)
129
+ );
130
+ padding: 0;
131
+ border: 1px solid transparent;
132
+ border-radius: var(--kui-layout-rounded-radius, calc(1px + 0.6875rem));
133
+ align-items: center;
134
+ justify-content: flex-start;
135
+ gap: var(--kui-layout-item-gap, 0.5rem);
136
+ color: inherit;
137
+ background: transparent;
138
+ font: inherit;
139
+ text-align: start;
140
+ cursor: pointer;
141
+ }
142
+
143
+ .kui-list-header:not([data-placeholder="true"])
144
+ .kui-list-header__title-action:hover:not(:disabled) {
145
+ border-color: var(--kui-color-neutral-border-normal);
146
+ background: var(--kui-list-header-hover-background);
147
+ }
148
+
149
+ .kui-list-header__title-action:focus-visible {
150
+ outline: var(--kui-focus-ring);
151
+ outline-offset: 1px;
152
+ }
153
+
154
+ .kui-list-header__title-action[data-kui-disabled="true"] {
155
+ opacity: 0.48;
156
+ }
157
+
158
+ .kui-list-header:not([data-placeholder="true"])
159
+ .kui-list-header__title-action:disabled {
160
+ cursor: not-allowed;
161
+ }
162
+
107
163
  .kui-list-header__action,
108
164
  .kui-list-header__action-layer {
109
165
  display: grid;
@@ -2,6 +2,7 @@
2
2
  --kui-empty-state-foreground: var(--kui-color-neutral-on-quiet);
3
3
  --kui-empty-state-title: var(--kui-color-text);
4
4
  display: grid;
5
+ grid-template-columns: minmax(0, 1fr);
5
6
  width: min(
6
7
  calc(100% - (2 * var(--kui-layout-inline-margin, 0.5rem))),
7
8
  28rem
@@ -45,3 +46,9 @@
45
46
  .kui-empty-state__action {
46
47
  margin-block-start: var(--kui-space-xs);
47
48
  }
49
+ .kui-empty-state__secondary {
50
+ justify-self: stretch;
51
+ min-width: 0;
52
+ margin-block-start: var(--kui-space-xs);
53
+ text-align: start;
54
+ }
@@ -348,6 +348,10 @@
348
348
  }
349
349
  }
350
350
 
351
+ :where(:root[data-kui-contrast="more"]) .kui-color-picker__surface {
352
+ --_kui-color-picker-track-edge: var(--kui-color-text);
353
+ }
354
+
351
355
  @media (forced-colors: active) {
352
356
  .kui-color-picker__surface {
353
357
  --_kui-color-picker-track-edge: CanvasText;
@@ -395,6 +395,12 @@
395
395
  }
396
396
  }
397
397
 
398
+ :where(:root[data-kui-contrast="more"])
399
+ .kui-pane[data-header-material="clear"]
400
+ > .kui-pane__header {
401
+ background: var(--kui-chrome-material);
402
+ }
403
+
398
404
  @media (forced-colors: active) {
399
405
  .kui-pane[data-header-material="clear"] > .kui-pane__header {
400
406
  background: Canvas;
@@ -437,6 +437,12 @@
437
437
  }
438
438
  }
439
439
 
440
+ :where(:root[data-kui-contrast="more"])
441
+ .kui-nav-stack[data-chrome-material="clear"]
442
+ > .kui-nav-stack__chrome {
443
+ background: var(--kui-chrome-material);
444
+ }
445
+
440
446
  @media (forced-colors: active) {
441
447
  .kui-nav-stack[data-chrome-material="clear"] > .kui-nav-stack__chrome {
442
448
  background: Canvas;
@@ -522,6 +528,12 @@
522
528
  }
523
529
  }
524
530
 
531
+ :where(:root[data-kui-contrast="more"])
532
+ .kui-nav-stack[data-bottom-toolbar-material="clear"]
533
+ > .kui-nav-stack__bottom {
534
+ background: var(--kui-chrome-material);
535
+ }
536
+
525
537
  @media (forced-colors: active) {
526
538
  .kui-nav-stack[data-bottom-toolbar-material="clear"]
527
539
  > .kui-nav-stack__bottom {
@@ -91,6 +91,10 @@
91
91
  }
92
92
  }
93
93
 
94
+ :where(:root[data-kui-contrast="more"]) .kui-paged-view__dots {
95
+ border-color: var(--kui-color-neutral-border-quiet);
96
+ }
97
+
94
98
  /* Each dot is a 24px target around its 8px mark; the current page's mark is
95
99
  a wider pill, so the state never rests on color alone. */
96
100
  .kui-paged-view__dot {
@@ -183,12 +183,42 @@
183
183
  }
184
184
  .kui-tab-bar-item__name-head {
185
185
  flex: 0 1 auto;
186
- min-width: 0;
186
+ min-width: 1em;
187
187
  overflow: hidden;
188
188
  text-overflow: ellipsis;
189
189
  }
190
190
  .kui-tab-bar-item__name-tail {
191
191
  flex: 0 0 auto;
192
+ max-width: calc(100% - 1em);
193
+ overflow: hidden;
194
+ text-overflow: ellipsis;
195
+ }
196
+ .kui-tab-bar-item[data-name-truncate-priority="suffix"]
197
+ .kui-tab-bar-item__name-head {
198
+ position: relative;
199
+ min-width: 0;
200
+ }
201
+ .kui-tab-bar-item__name-head-sizer {
202
+ visibility: hidden;
203
+ }
204
+ .kui-tab-bar-item__name-head-clip {
205
+ position: absolute;
206
+ inset: 0;
207
+ overflow: hidden;
208
+ text-overflow: ellipsis;
209
+ white-space: pre;
210
+ container: kui-tab-name-head / inline-size;
211
+ }
212
+ @container kui-tab-name-head (max-width: 0.8em) {
213
+ .kui-tab-bar-item__name-head-content {
214
+ opacity: 0;
215
+ }
216
+ }
217
+ .kui-tab-bar-item[data-name-truncate-priority="suffix"]
218
+ .kui-tab-bar-item__name-tail {
219
+ max-width: none;
220
+ overflow: visible;
221
+ text-overflow: clip;
192
222
  }
193
223
  /* A visible name keeps the tab at its full width with no label cap. A tab
194
224
  wider than its whole strip (KF-0M3ZPT) is the exception: it takes the
@@ -337,6 +337,12 @@
337
337
  }
338
338
  }
339
339
 
340
+ :where(:root[data-kui-contrast="more"])
341
+ .kui-tab-scaffold[data-bar-material="clear"]
342
+ > .kui-tab-scaffold__bar {
343
+ background: var(--kui-chrome-material);
344
+ }
345
+
340
346
  @media (forced-colors: active) {
341
347
  .kui-tab-scaffold[data-bar-material="clear"] > .kui-tab-scaffold__bar {
342
348
  background: Canvas;
@@ -206,3 +206,25 @@
206
206
  color: inherit;
207
207
  }
208
208
  }
209
+
210
+ :where(:root[data-kui-contrast="more"])
211
+ .kui-backdrop-image[data-fade="true"]
212
+ .kui-backdrop-image__backdrop {
213
+ mask-image: none;
214
+ }
215
+
216
+ :where(:root[data-kui-contrast="more"])
217
+ .kui-backdrop-image[data-fade="true"]
218
+ .kui-backdrop-image__overlay {
219
+ background-color: var(--_kui-backdrop-image-fade-to);
220
+ }
221
+
222
+ :where(:root[data-kui-contrast="more"])
223
+ .kui-backdrop-image[data-fade="true"]:is(
224
+ [data-scrim="bottom"],
225
+ [data-scrim="full"]
226
+ )
227
+ .kui-backdrop-image__overlay {
228
+ color-scheme: inherit;
229
+ color: inherit;
230
+ }
@@ -119,3 +119,7 @@
119
119
  animation: none;
120
120
  }
121
121
  }
122
+
123
+ :where(:root[data-kui-contrast="more"]) [data-kui-scroll-effect] {
124
+ animation: none;
125
+ }
@@ -7,6 +7,35 @@
7
7
  overflow-wrap: normal;
8
8
  }
9
9
 
10
+ /* Mark keeps native inline flow and inherits the surrounding font, so matches
11
+ in code occupy the same glyph cells as unmarked text. */
12
+ .kui-text__mark {
13
+ color: var(--kui-color-warning-on-fill);
14
+ background: var(--kui-color-warning-fill-quiet);
15
+ border-radius: 2px;
16
+ box-decoration-break: clone;
17
+ }
18
+
19
+ .kui-text__mark[data-current="true"] {
20
+ color: var(--kui-color-warning-on-loud);
21
+ background: var(--kui-color-warning-fill-loud);
22
+ outline: 1px solid var(--kui-color-warning-border-loud);
23
+ }
24
+
25
+ @media (forced-colors: active) {
26
+ .kui-text__mark {
27
+ color: CanvasText;
28
+ background: Canvas;
29
+ outline: 1px solid Highlight;
30
+ }
31
+
32
+ .kui-text__mark[data-current="true"] {
33
+ color: HighlightText;
34
+ background: Highlight;
35
+ outline-color: Highlight;
36
+ }
37
+ }
38
+
10
39
  /* Native heading and paragraph typography belongs to Text. Web Awesome's
11
40
  native.css supplies these rules when installed, but Text also works without
12
41
  that optional stylesheet. Size props below still override the tag defaults. */
@@ -93,8 +122,8 @@ span.kui-text[data-wrap="truncate"] {
93
122
  white-space: nowrap;
94
123
  }
95
124
 
96
- /* Middle truncation: the head shrinks to an ellipsis while the kept suffix
97
- (the last path segment) stays whole. Pre keeps a space at the split. */
125
+ /* Middle truncation: reserve room for the cut marker, then let the kept suffix
126
+ yield when both pieces cannot fit. Pre keeps a space at the split. */
98
127
  .kui-text__truncate-middle {
99
128
  display: flex;
100
129
  min-width: 0;
@@ -108,13 +137,46 @@ span.kui-text[data-wrap="truncate"] {
108
137
 
109
138
  .kui-text__truncate-head {
110
139
  flex: 0 1 auto;
140
+ min-width: 1em;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ }
144
+
145
+ .kui-text[data-truncate-priority="suffix"] .kui-text__truncate-head {
146
+ position: relative;
111
147
  min-width: 0;
148
+ }
149
+
150
+ .kui-text__truncate-head-sizer {
151
+ visibility: hidden;
152
+ }
153
+
154
+ .kui-text__truncate-head-clip {
155
+ position: absolute;
156
+ inset: 0;
112
157
  overflow: hidden;
113
158
  text-overflow: ellipsis;
159
+ white-space: pre;
160
+ container: kui-text-head / inline-size;
161
+ }
162
+
163
+ @container kui-text-head (max-width: 0.8em) {
164
+ .kui-text__truncate-head-content {
165
+ opacity: 0;
166
+ }
167
+ }
168
+
169
+ .kui-text[data-truncate-priority="suffix"] .kui-text__truncate-tail {
170
+ max-width: none;
171
+ overflow: visible;
172
+ text-overflow: clip;
114
173
  }
115
174
 
116
175
  .kui-text__truncate-tail {
117
176
  flex: 0 0 auto;
177
+ max-width: calc(100% - 1em);
178
+ overflow: hidden;
179
+ text-overflow: ellipsis;
118
180
  }
119
181
 
120
182
  .kui-text__clamp {
@@ -120,6 +120,10 @@
120
120
  }
121
121
  }
122
122
 
123
+ :where(:root[data-kui-contrast="more"]) [data-kui-scroll-effect] {
124
+ animation: none;
125
+ }
126
+
123
127
  /* An image block at the top of a scrolling Pane or NavStack view. The root
124
128
  paints fadeTo, so the image fades into it and the content below sits on the
125
129
  same color. It bleeds to the Pane's resolved inline insets (the safe area)
@@ -329,6 +333,28 @@
329
333
  }
330
334
  }
331
335
 
336
+ :where(:root[data-kui-contrast="more"])
337
+ .kui-backdrop-image[data-fade="true"]
338
+ .kui-backdrop-image__backdrop {
339
+ mask-image: none;
340
+ }
341
+
342
+ :where(:root[data-kui-contrast="more"])
343
+ .kui-backdrop-image[data-fade="true"]
344
+ .kui-backdrop-image__overlay {
345
+ background-color: var(--_kui-backdrop-image-fade-to);
346
+ }
347
+
348
+ :where(:root[data-kui-contrast="more"])
349
+ .kui-backdrop-image[data-fade="true"]:is(
350
+ [data-scrim="bottom"],
351
+ [data-scrim="full"]
352
+ )
353
+ .kui-backdrop-image__overlay {
354
+ color-scheme: inherit;
355
+ color: inherit;
356
+ }
357
+
332
358
  /* One self-contained content-item: 8px inline margin, a real 1px border
333
359
  (transparent unless framed), 8px padding, and a rounded or pill radius.
334
360
  Rendered by ContentItem; the classes stay public for other elements. */
@@ -2,6 +2,7 @@
2
2
  --kui-empty-state-foreground: var(--kui-color-neutral-on-quiet);
3
3
  --kui-empty-state-title: var(--kui-color-text);
4
4
  display: grid;
5
+ grid-template-columns: minmax(0, 1fr);
5
6
  width: min(
6
7
  calc(100% - (2 * var(--kui-layout-inline-margin, 0.5rem))),
7
8
  28rem
@@ -45,3 +46,9 @@
45
46
  .kui-empty-state__action {
46
47
  margin-block-start: var(--kui-space-xs);
47
48
  }
49
+ .kui-empty-state__secondary {
50
+ justify-self: stretch;
51
+ min-width: 0;
52
+ margin-block-start: var(--kui-space-xs);
53
+ text-align: start;
54
+ }
@@ -695,7 +695,7 @@
695
695
 
696
696
  @supports (color: oklch(from red l c h)) {
697
697
  @media not (prefers-contrast: more) {
698
- [data-kui-tint="light"] {
698
+ :root:not([data-kui-contrast="more"]) [data-kui-tint="light"] {
699
699
  --wa-color-surface-default: oklch(
700
700
  from var(--_kui-tint-color) clamp(0.9, l, 0.985) min(c, 0.08) h
701
701
  );
@@ -722,7 +722,7 @@
722
722
  );
723
723
  }
724
724
 
725
- [data-kui-tint="dark"] {
725
+ :root:not([data-kui-contrast="more"]) [data-kui-tint="dark"] {
726
726
  --wa-color-surface-default: oklch(
727
727
  from var(--_kui-tint-color) clamp(0.16, l, 0.3) min(c, 0.1) h
728
728
  );
@@ -752,7 +752,8 @@
752
752
  scope's between 72% and 85% under near-black text, and brand text at
753
753
  most 36% (light) or at least 94% (dark). Dark on-fill text also caps
754
754
  chroma so a vivid red stays light after gamut clipping. */
755
- [data-kui-tint="light"][data-kui-tint-accent] {
755
+ :root:not([data-kui-contrast="more"])
756
+ [data-kui-tint="light"][data-kui-tint-accent] {
756
757
  --wa-color-brand-fill-loud: oklch(
757
758
  from var(--_kui-tint-accent) min(l, 0.46) c h
758
759
  );
@@ -766,7 +767,8 @@
766
767
  --wa-color-focus: oklch(from var(--_kui-tint-accent) min(l, 0.46) c h);
767
768
  }
768
769
 
769
- [data-kui-tint="dark"][data-kui-tint-accent] {
770
+ :root:not([data-kui-contrast="more"])
771
+ [data-kui-tint="dark"][data-kui-tint-accent] {
770
772
  --wa-color-brand-fill-loud: oklch(
771
773
  from var(--_kui-tint-accent) clamp(0.72, l, 0.85) c h
772
774
  );
@@ -844,3 +846,25 @@
844
846
  --kui-focus-ring: 3px solid currentColor;
845
847
  }
846
848
  }
849
+
850
+ /* Catalog preview of the supported increased-contrast palette under an OS
851
+ setting of no preference. Removing the attribute leaves OS media behavior
852
+ intact. Keep this in step with the prefers-contrast rule above. */
853
+ :root[data-kui-contrast="more"],
854
+ :root[data-kui-contrast="more"] [data-kui-tint] {
855
+ --kui-chrome-material: var(--kui-color-surface);
856
+ --kui-chrome-material-raised: var(--kui-color-surface-raised);
857
+ --kui-chrome-material-filter: none;
858
+ --kui-color-pop-fill-quiet: Canvas;
859
+ --kui-color-pop-fill-normal: Canvas;
860
+ --kui-color-pop-fill-loud: Highlight;
861
+ --kui-color-pop-border-quiet: currentColor;
862
+ --kui-color-pop-border-normal: currentColor;
863
+ --kui-color-pop-border-loud: currentColor;
864
+ --kui-color-pop-on-quiet: currentColor;
865
+ --kui-color-pop-on-normal: currentColor;
866
+ --kui-color-pop-on-loud: HighlightText;
867
+ --kui-color-pop-on-fill: currentColor;
868
+ --kui-color-neutral-border-normal: currentColor;
869
+ --kui-focus-ring: 3px solid currentColor;
870
+ }
@@ -29,11 +29,17 @@
29
29
  padding-block: var(--kui-list-header-title-padding-block, 0.25rem);
30
30
  }
31
31
 
32
- /* Wrapped label lines keep the compact header's 4px block inset off the
33
- header edges; a one-line label still centers in the unchanged minimum
34
- height. */
32
+ /* A content-sized toggle lets further label lines increase the header's own
33
+ height; align the count and disclosure with its first line. */
35
34
  .kui-list-header[data-wrap="true"] .kui-list-header__title {
36
- padding-block: var(--kui-list-header-title-padding-block, 0.25rem);
35
+ padding-block: var(--kui-list-header-title-padding-block, 0.5rem);
36
+ align-items: flex-start;
37
+ height: max-content;
38
+ }
39
+
40
+ .kui-list-header[data-wrap="true"] > .kui-list-header__action {
41
+ align-self: flex-start;
42
+ margin-block-start: 0.25rem;
37
43
  }
38
44
 
39
45
  .kui-list-header[data-divider="before"],
@@ -104,6 +110,56 @@
104
110
  text-align: start;
105
111
  }
106
112
 
113
+ .kui-list-header__heading {
114
+ display: flex;
115
+ min-width: 0;
116
+ flex: 1 1 auto;
117
+ margin: 0;
118
+ font: inherit;
119
+ }
120
+
121
+ .kui-list-header__title-action {
122
+ appearance: none;
123
+ display: flex;
124
+ width: 100%;
125
+ min-width: 0;
126
+ min-height: var(
127
+ --kui-list-header-title-min-height,
128
+ var(--kui-list-header-min-height, 2.75rem)
129
+ );
130
+ padding: 0;
131
+ border: 1px solid transparent;
132
+ border-radius: var(--kui-layout-rounded-radius, calc(1px + 0.6875rem));
133
+ align-items: center;
134
+ justify-content: flex-start;
135
+ gap: var(--kui-layout-item-gap, 0.5rem);
136
+ color: inherit;
137
+ background: transparent;
138
+ font: inherit;
139
+ text-align: start;
140
+ cursor: pointer;
141
+ }
142
+
143
+ .kui-list-header:not([data-placeholder="true"])
144
+ .kui-list-header__title-action:hover:not(:disabled) {
145
+ border-color: var(--kui-color-neutral-border-normal);
146
+ background: var(--kui-list-header-hover-background);
147
+ }
148
+
149
+ .kui-list-header__title-action:focus-visible {
150
+ outline: var(--kui-focus-ring);
151
+ outline-offset: 1px;
152
+ }
153
+
154
+ .kui-list-header__title-action[data-kui-disabled="true"] {
155
+ opacity: 0.48;
156
+ }
157
+
158
+ .kui-list-header:not([data-placeholder="true"])
159
+ .kui-list-header__title-action:disabled {
160
+ cursor: not-allowed;
161
+ }
162
+
107
163
  .kui-list-header__action,
108
164
  .kui-list-header__action-layer {
109
165
  display: grid;
@@ -437,6 +437,12 @@
437
437
  }
438
438
  }
439
439
 
440
+ :where(:root[data-kui-contrast="more"])
441
+ .kui-nav-stack[data-chrome-material="clear"]
442
+ > .kui-nav-stack__chrome {
443
+ background: var(--kui-chrome-material);
444
+ }
445
+
440
446
  @media (forced-colors: active) {
441
447
  .kui-nav-stack[data-chrome-material="clear"] > .kui-nav-stack__chrome {
442
448
  background: Canvas;
@@ -522,6 +528,12 @@
522
528
  }
523
529
  }
524
530
 
531
+ :where(:root[data-kui-contrast="more"])
532
+ .kui-nav-stack[data-bottom-toolbar-material="clear"]
533
+ > .kui-nav-stack__bottom {
534
+ background: var(--kui-chrome-material);
535
+ }
536
+
525
537
  @media (forced-colors: active) {
526
538
  .kui-nav-stack[data-bottom-toolbar-material="clear"]
527
539
  > .kui-nav-stack__bottom {
@@ -91,6 +91,10 @@
91
91
  }
92
92
  }
93
93
 
94
+ :where(:root[data-kui-contrast="more"]) .kui-paged-view__dots {
95
+ border-color: var(--kui-color-neutral-border-quiet);
96
+ }
97
+
94
98
  /* Each dot is a 24px target around its 8px mark; the current page's mark is
95
99
  a wider pill, so the state never rests on color alone. */
96
100
  .kui-paged-view__dot {
@@ -395,6 +395,12 @@
395
395
  }
396
396
  }
397
397
 
398
+ :where(:root[data-kui-contrast="more"])
399
+ .kui-pane[data-header-material="clear"]
400
+ > .kui-pane__header {
401
+ background: var(--kui-chrome-material);
402
+ }
403
+
398
404
  @media (forced-colors: active) {
399
405
  .kui-pane[data-header-material="clear"] > .kui-pane__header {
400
406
  background: Canvas;
@@ -119,3 +119,7 @@
119
119
  animation: none;
120
120
  }
121
121
  }
122
+
123
+ :where(:root[data-kui-contrast="more"]) [data-kui-scroll-effect] {
124
+ animation: none;
125
+ }