@kerfjs/ui 5.0.0-beta.134 → 5.0.0-beta.136

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 (85) hide show
  1. package/README.md +19 -0
  2. package/ai/component-catalog.json +3 -1
  3. package/ai/components/popup-menu.md +1 -1
  4. package/ai/public-api-signatures-v1.md +63 -12
  5. package/ai/skill.md +10 -0
  6. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  7. package/dist/catalog-library.d.ts +2 -2
  8. package/dist/catalog-resources.d.ts +1 -1
  9. package/dist/catalog.d.ts +3 -3
  10. package/dist/catalog.js +3 -3
  11. package/dist/{chunk-IXT2ARIM.js → chunk-6FQFZVRV.js} +2 -2
  12. package/dist/{chunk-IXT2ARIM.js.map → chunk-6FQFZVRV.js.map} +1 -1
  13. package/dist/{chunk-LH5V6XGH.js → chunk-7G6BSG4B.js} +1 -1
  14. package/dist/{chunk-LH5V6XGH.js.map → chunk-7G6BSG4B.js.map} +1 -1
  15. package/dist/{chunk-42NLFCIN.js → chunk-AUYGZ3UP.js} +32 -3
  16. package/dist/chunk-AUYGZ3UP.js.map +1 -0
  17. package/dist/{chunk-XNSYDA6G.js → chunk-B4UWDIUL.js} +5 -5
  18. package/dist/{chunk-XNSYDA6G.js.map → chunk-B4UWDIUL.js.map} +1 -1
  19. package/dist/{chunk-QNB5DKKP.js → chunk-LMBSIRGQ.js} +2 -2
  20. package/dist/{chunk-QNB5DKKP.js.map → chunk-LMBSIRGQ.js.map} +1 -1
  21. package/dist/{chunk-YRQ4KKLG.js → chunk-NPPL3NXM.js} +16 -2
  22. package/dist/chunk-NPPL3NXM.js.map +1 -0
  23. package/dist/{chunk-MPT6Y7Z2.js → chunk-QOZABB23.js} +29 -1
  24. package/dist/chunk-QOZABB23.js.map +1 -0
  25. package/dist/{chunk-EI55KWHP.js → chunk-QWB4FEWD.js} +2 -1
  26. package/dist/chunk-QWB4FEWD.js.map +1 -0
  27. package/dist/{chunk-ZDI5I2HT.js → chunk-RMGHAIV5.js} +3 -3
  28. package/dist/{chunk-ZDI5I2HT.js.map → chunk-RMGHAIV5.js.map} +1 -1
  29. package/dist/{chunk-QWAAR5JX.js → chunk-ZS4WBHQG.js} +3 -3
  30. package/dist/{chunk-QWAAR5JX.js.map → chunk-ZS4WBHQG.js.map} +1 -1
  31. package/dist/collapsible-panel.js +2 -2
  32. package/dist/column-explorer.js +1 -1
  33. package/dist/{compose-B_GFfFhm.d.ts → compose-Qkitwg3x.d.ts} +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +5 -5
  36. package/dist/list-action-row.js +1 -1
  37. package/dist/list-detail-dialog.js +2 -2
  38. package/dist/list-header.d.ts +41 -1
  39. package/dist/list-header.js +1 -1
  40. package/dist/nav-stack.js +1 -1
  41. package/dist/pane.d.ts +2 -2
  42. package/dist/pane.js +1 -1
  43. package/dist/popup-menu.d.ts +12 -1
  44. package/dist/popup-menu.js +1 -1
  45. package/dist/split-view.js +1 -1
  46. package/dist/styles/backdrop-image.css +26 -0
  47. package/dist/styles/color-picker.css +4 -0
  48. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +15 -0
  49. package/dist/styles/components/collections/list-header/list-header.css +60 -4
  50. package/dist/styles/components/forms/color-picker/color-picker.css +4 -0
  51. package/dist/styles/components/layout/pane/pane.css +6 -0
  52. package/dist/styles/components/navigation/nav-stack/nav-stack.css +12 -0
  53. package/dist/styles/components/navigation/paged-view/paged-view.css +4 -0
  54. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +6 -0
  55. package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +22 -0
  56. package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +4 -0
  57. package/dist/styles/components/typography/text/text.css +6 -3
  58. package/dist/styles/content-item.css +26 -0
  59. package/dist/styles/foundation.css +28 -4
  60. package/dist/styles/list-header.css +60 -4
  61. package/dist/styles/nav-stack.css +12 -0
  62. package/dist/styles/paged-view.css +4 -0
  63. package/dist/styles/pane.css +6 -0
  64. package/dist/styles/scroll-effect.css +4 -0
  65. package/dist/styles/tab-navigator.css +6 -0
  66. package/dist/styles/text.css +6 -3
  67. package/dist/styles/toolbar-control-group.css +15 -0
  68. package/dist/styles/webawesome.css +19 -0
  69. package/dist/{types-CuKf5G87.d.ts → types-PGGOsJug.d.ts} +2 -1
  70. package/dist/wire-catalog.d.ts +1 -1
  71. package/dist/wire-search-fields.js +1 -1
  72. package/dist/wire-tag-fields.js +1 -1
  73. package/dist/workbench-dialog.js +1 -1
  74. package/dist/workbench.js +1 -1
  75. package/docs/accessibility.md +1 -1
  76. package/docs/component-selection.md +7 -0
  77. package/docs/design/sketch/README.md +6 -3
  78. package/docs/design/sketch/unified/README.md +1 -1
  79. package/docs/design/templates.md +1 -1
  80. package/docs/workbench.md +6 -1
  81. package/package.json +1 -1
  82. package/dist/chunk-42NLFCIN.js.map +0 -1
  83. package/dist/chunk-EI55KWHP.js.map +0 -1
  84. package/dist/chunk-MPT6Y7Z2.js.map +0 -1
  85. package/dist/chunk-YRQ4KKLG.js.map +0 -1
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { wireTextFields } from './chunk-KC6WUSNS.js';
4
4
  export { wireToolbarVisibility } from './chunk-2GOCOLQL.js';
5
5
  export { wireOverlaySheets } from './chunk-KBS3GP6S.js';
6
6
  export { wireResizableRegions } from './chunk-YS3H6DEQ.js';
7
- export { wireSearchFields } from './chunk-MPT6Y7Z2.js';
7
+ export { wireSearchFields } from './chunk-QOZABB23.js';
8
8
  export { wireComboboxes } from './chunk-GE2BQXB3.js';
9
9
 
10
10
  export { wireCornerStatus } from './chunk-JYKP7TBZ.js';
@@ -40,7 +40,7 @@ export { RadioGroup } from './chunk-WWDDKUDW.js';
40
40
  export { MessageComposer } from './chunk-LSFPZR52.js';
41
41
  export { Grid } from './chunk-PJKH2GZ3.js';
42
42
 
43
- export { ListActionRow } from './chunk-QNB5DKKP.js';
43
+ export { ListActionRow } from './chunk-LMBSIRGQ.js';
44
44
  export { DialogSurface, PinnablePopoverSurface, PopoverDialogSurface, PopupSurface, isPopoverPinned, pinPopover, wirePinnablePopover } from './chunk-2OYMXGW2.js';
45
45
  export { closeDialog, openDialog } from './chunk-R4JK2C6D.js';
46
46
 
@@ -66,7 +66,7 @@ export { Switch } from './chunk-PIYFVFPL.js';
66
66
  export { SearchField, placeSearchFieldCaret, readSearchField } from './chunk-T7M5FKCE.js';
67
67
  export { Row } from './chunk-BQHGXQVA.js';
68
68
  export { ListInsetText } from './chunk-BLBMUD2W.js';
69
- export { PopupMenu, closePopupMenu, openPopupMenu, openPopupMenuAt } from './chunk-YRQ4KKLG.js';
69
+ export { PopupMenu, closePopupMenu, closedPopupMenuRoot, isPopupMenuOpen, openPopupMenu, openPopupMenuAt } from './chunk-NPPL3NXM.js';
70
70
 
71
71
 
72
72
  export { ResizableRegion, clampRegionSize, resizeRegionFromPointer } from './chunk-6OH734CG.js';
@@ -74,7 +74,7 @@ export { ToolbarText } from './chunk-ZIZXXYXM.js';
74
74
  export { ListInsetControl } from './chunk-Y672Z7QY.js';
75
75
  export { FloatingToolbar } from './chunk-KBDYXGYT.js';
76
76
  export { ToolbarActionLink, ToolbarButton, ToolbarControlGroup } from './chunk-BADEZQ3V.js';
77
- export { Pane } from './chunk-LH5V6XGH.js';
77
+ export { Pane } from './chunk-7G6BSG4B.js';
78
78
 
79
79
 
80
80
  export { ensureSunkenTexture } from './chunk-IKS72C6P.js';
@@ -85,7 +85,7 @@ export { ListItem, ListItemLink } from './chunk-UWLJ7UEK.js';
85
85
 
86
86
 
87
87
 
88
- export { ListHeader } from './chunk-42NLFCIN.js';
88
+ export { ListHeader } from './chunk-AUYGZ3UP.js';
89
89
  export { FieldLabel, Text } from './chunk-OW2ODKHN.js';
90
90
 
91
91
  export { Skeleton } from './chunk-LH7YRRY7.js';
@@ -1,4 +1,4 @@
1
- export { ListActionRow } from './chunk-QNB5DKKP.js';
1
+ export { ListActionRow } from './chunk-LMBSIRGQ.js';
2
2
 
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- import { SplitView } from './chunk-IXT2ARIM.js';
1
+ import { SplitView } from './chunk-6FQFZVRV.js';
2
2
  import { DialogSurface } from './chunk-2OYMXGW2.js';
3
3
  export { closeDialog, openDialog } from './chunk-R4JK2C6D.js';
4
4
 
@@ -8,7 +8,7 @@ export { closeDialog, openDialog } from './chunk-R4JK2C6D.js';
8
8
  import { ToolbarText } from './chunk-ZIZXXYXM.js';
9
9
 
10
10
  import { ToolbarControlGroup } from './chunk-BADEZQ3V.js';
11
- import { Pane } from './chunk-LH5V6XGH.js';
11
+ import { Pane } from './chunk-7G6BSG4B.js';
12
12
 
13
13
 
14
14
 
@@ -96,6 +96,21 @@ type ListHeaderNoOverflow = {
96
96
  overflowDisabled?: never;
97
97
  overflowTriggerAttributes?: never;
98
98
  };
99
+ type ListHeaderTrailingAction = {
100
+ action: string;
101
+ actionLabel: string;
102
+ actionIcon: SafeHtml;
103
+ actionDisabled?: boolean;
104
+ disabledReason?: string;
105
+ triggerAttributes?: ListHeaderTriggerAttributes;
106
+ } | {
107
+ action?: never;
108
+ actionLabel?: never;
109
+ actionIcon?: never;
110
+ actionDisabled?: never;
111
+ disabledReason?: never;
112
+ triggerAttributes?: never;
113
+ };
99
114
  type ListHeaderModeProps = ({
100
115
  /** Render the title as a controlled disclosure trigger. */
101
116
  toggle: true;
@@ -107,7 +122,22 @@ type ListHeaderModeProps = ({
107
122
  actionLabel?: never;
108
123
  actionDisabled?: boolean;
109
124
  disabledReason?: string;
125
+ titleAction?: never;
126
+ titleActionLabel?: never;
127
+ titleActionDisabled?: never;
128
+ titleDisabledReason?: never;
129
+ titleTriggerAttributes?: never;
110
130
  } & ListHeaderOverflowProps) | ({
131
+ /** Render the title as a named action inside a native heading. */
132
+ titleAction: string;
133
+ titleActionLabel: string;
134
+ titleActionDisabled?: boolean;
135
+ titleDisabledReason?: string;
136
+ titleTriggerAttributes?: ListHeaderTriggerAttributes;
137
+ toggle?: false;
138
+ headingLevel?: HeadingLevel;
139
+ expanded?: never;
140
+ } & ListHeaderTrailingAction & ListHeaderNoOverflow) | ({
111
141
  /** Render a separately named trailing action. */
112
142
  toggle?: false;
113
143
  /**
@@ -121,6 +151,11 @@ type ListHeaderModeProps = ({
121
151
  expanded?: never;
122
152
  actionDisabled?: boolean;
123
153
  disabledReason?: string;
154
+ titleAction?: never;
155
+ titleActionLabel?: never;
156
+ titleActionDisabled?: never;
157
+ titleDisabledReason?: never;
158
+ titleTriggerAttributes?: never;
124
159
  } & ListHeaderNoOverflow) | ({
125
160
  /** Render a passive section heading. */
126
161
  toggle?: false;
@@ -135,6 +170,11 @@ type ListHeaderModeProps = ({
135
170
  expanded?: never;
136
171
  actionDisabled?: never;
137
172
  disabledReason?: never;
173
+ titleAction?: never;
174
+ titleActionLabel?: never;
175
+ titleActionDisabled?: never;
176
+ titleDisabledReason?: never;
177
+ titleTriggerAttributes?: never;
138
178
  } & ListHeaderNoOverflow);
139
179
  type ListHeaderIndicatorProps = {
140
180
  count: number;
@@ -150,6 +190,6 @@ type ListHeaderIndicatorProps = {
150
190
  status?: string | SafeHtml | undefined;
151
191
  };
152
192
  type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
153
- declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, leadingEdge, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, overflowAction, overflowLabel, overflowIcon, overflowDisabled, overflowTriggerAttributes, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
193
+ declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, leadingEdge, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, titleAction, titleActionLabel, titleActionDisabled, titleDisabledReason, titleTriggerAttributes, expanded, toggle, overflowAction, overflowLabel, overflowIcon, overflowDisabled, overflowTriggerAttributes, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
154
194
 
155
195
  export { ListHeader, type ListHeaderProps };
@@ -1,4 +1,4 @@
1
- export { ListHeader } from './chunk-42NLFCIN.js';
1
+ export { ListHeader } from './chunk-AUYGZ3UP.js';
2
2
 
3
3
 
4
4
 
package/dist/nav-stack.js CHANGED
@@ -1,4 +1,4 @@
1
- export { NavStack } from './chunk-QWAAR5JX.js';
1
+ export { NavStack } from './chunk-ZS4WBHQG.js';
2
2
 
3
3
 
4
4
 
package/dist/pane.d.ts CHANGED
@@ -258,12 +258,12 @@ interface PaneProps {
258
258
  slot?: string;
259
259
  }
260
260
  /**
261
- * A pane's configuration, apart from its content and styling hooks: the props a
261
+ * A pane's configuration, apart from its content and root styling hooks: the props a
262
262
  * composite that renders a `Pane` for the app (a Workbench panel or work area,
263
263
  * or a CollapsiblePanel) forwards, so the app configures that pane instead of
264
264
  * styling it. An omitted or `undefined` field keeps the composite's default.
265
265
  */
266
- type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined' | 'anchorName' | 'scrollAnchoring'>;
266
+ type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'contentClassName' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined' | 'anchorName' | 'scrollAnchoring'>;
267
267
  /**
268
268
  * An unpadded application column with optional fixed header/footer slots and one
269
269
  * scrolling vertical content owner. Separator lines are independently opt-in on
package/dist/pane.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Pane } from './chunk-LH5V6XGH.js';
1
+ export { Pane } from './chunk-7G6BSG4B.js';
2
2
 
3
3
 
4
4
 
@@ -160,6 +160,17 @@ declare function openPopupMenuAt(menu: PopupMenuElement, x: number, y: number, o
160
160
  declare function openPopupMenu(menu: PopupMenuElement): void;
161
161
  /** Close an open PopupMenu, and any submenu it shows. */
162
162
  declare function closePopupMenu(menu: PopupMenuElement): void;
163
+ /** Whether a rendered PopupMenu root is open, for trigger or context menus. */
164
+ declare function isPopupMenuOpen(menu: PopupMenuElement): boolean;
165
+ /**
166
+ * Return the PopupMenu root whose own panel just closed, or undefined for an
167
+ * opening, submenu closure, or unrelated event. Native `toggle` does not
168
+ * bubble: observe it with a capture listener on an ancestor (such as the app
169
+ * root), then pass each event here. The controller resets open state during
170
+ * `beforetoggle`; a focus return, when appropriate, precedes the closed
171
+ * `toggle` notification.
172
+ */
173
+ declare function closedPopupMenuRoot(event: Event): PopupMenuElement | undefined;
163
174
  /**
164
175
  * An action menu: a trigger button that opens a list of commands in the top
165
176
  * layer. A `single` `ToolbarControlGroup` (with `nestedDropdown`) or a
@@ -173,4 +184,4 @@ declare function closePopupMenu(menu: PopupMenuElement): void;
173
184
  */
174
185
  declare function PopupMenu({ text, label, icon, triggerContent, items, placement, caret, disabled, emphasis, size, rootAttributes, slot, context, anchor, popupNote, }: PopupMenuProps): SafeHtml;
175
186
 
176
- export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEmphasis, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, type PopupMenuSize, closePopupMenu, openPopupMenu, openPopupMenuAt };
187
+ export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEmphasis, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, type PopupMenuSize, closePopupMenu, closedPopupMenuRoot, isPopupMenuOpen, openPopupMenu, openPopupMenuAt };
@@ -1,4 +1,4 @@
1
- export { PopupMenu, closePopupMenu, openPopupMenu, openPopupMenuAt } from './chunk-YRQ4KKLG.js';
1
+ export { PopupMenu, closePopupMenu, closedPopupMenuRoot, isPopupMenuOpen, openPopupMenu, openPopupMenuAt } from './chunk-NPPL3NXM.js';
2
2
 
3
3
 
4
4
 
@@ -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;
@@ -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 {
@@ -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
+ }
@@ -93,8 +93,8 @@ span.kui-text[data-wrap="truncate"] {
93
93
  white-space: nowrap;
94
94
  }
95
95
 
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. */
96
+ /* Middle truncation: reserve room for the cut marker, then let the kept suffix
97
+ yield when both pieces cannot fit. Pre keeps a space at the split. */
98
98
  .kui-text__truncate-middle {
99
99
  display: flex;
100
100
  min-width: 0;
@@ -108,13 +108,16 @@ span.kui-text[data-wrap="truncate"] {
108
108
 
109
109
  .kui-text__truncate-head {
110
110
  flex: 0 1 auto;
111
- min-width: 0;
111
+ min-width: 1em;
112
112
  overflow: hidden;
113
113
  text-overflow: ellipsis;
114
114
  }
115
115
 
116
116
  .kui-text__truncate-tail {
117
117
  flex: 0 0 auto;
118
+ max-width: calc(100% - 1em);
119
+ overflow: hidden;
120
+ text-overflow: ellipsis;
118
121
  }
119
122
 
120
123
  .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. */
@@ -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
+ }