@cocoar/vue-ui 3.4.0-beta.8 → 4.0.0-beta.44

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 (250) hide show
  1. package/dist/compact-fonts.d.ts +1 -0
  2. package/dist/compact-fonts.d.ts.map +1 -0
  3. package/dist/compact-fonts.js +4 -0
  4. package/dist/components/_internal/keyboardInset.d.ts +9 -0
  5. package/dist/components/_internal/keyboardInset.d.ts.map +1 -0
  6. package/dist/components/_internal/pageScrollLock.d.ts +17 -0
  7. package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
  8. package/dist/components/_internal/useFocusTrap.d.ts +9 -0
  9. package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
  10. package/dist/components/_internal/useVisualViewport.d.ts +26 -0
  11. package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
  12. package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
  13. package/dist/components/card/CoarCard.vue.d.ts.map +1 -1
  14. package/dist/components/checkbox/CoarCheckbox.vue.d.ts +2 -2
  15. package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
  16. package/dist/components/code-block/CoarCodeBlock.vue.d.ts +1 -1
  17. package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -1
  18. package/dist/components/data-list/CoarDataList.vue.d.ts.map +1 -1
  19. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
  20. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
  21. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
  22. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
  23. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
  24. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
  25. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +23 -6
  26. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
  27. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +4 -0
  28. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
  29. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +23 -6
  30. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
  31. package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
  32. package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
  33. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +4 -0
  34. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
  35. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +23 -6
  36. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
  37. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
  38. package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
  39. package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
  40. package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
  41. package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
  42. package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
  43. package/dist/components/dialog/CoarSheetShell.vue.d.ts.map +1 -0
  44. package/dist/components/dialog/dialog-types.d.ts +27 -0
  45. package/dist/components/dialog/dialog-types.d.ts.map +1 -1
  46. package/dist/components/dialog/dialogFooter.d.ts +21 -0
  47. package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
  48. package/dist/components/dialog/index.d.ts +2 -1
  49. package/dist/components/dialog/index.d.ts.map +1 -1
  50. package/dist/components/dialog/useDialog.d.ts +6 -15
  51. package/dist/components/dialog/useDialog.d.ts.map +1 -1
  52. package/dist/components/dialog/useSheetDrag.d.ts +46 -0
  53. package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
  54. package/dist/components/form-field/CoarFormField.vue.d.ts +2 -2
  55. package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
  56. package/dist/components/form-field/constants.d.ts +6 -0
  57. package/dist/components/form-field/constants.d.ts.map +1 -1
  58. package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
  59. package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
  60. package/dist/components/icon/core-icons.d.ts +2 -0
  61. package/dist/components/icon/core-icons.d.ts.map +1 -1
  62. package/dist/components/input-frame/CoarInputFrame.vue.d.ts +17 -6
  63. package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
  64. package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
  65. package/dist/components/input-frame/types.d.ts +9 -0
  66. package/dist/components/input-frame/types.d.ts.map +1 -0
  67. package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
  68. package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
  69. package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
  70. package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
  71. package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
  72. package/dist/components/menu/useContextMenu.d.ts +7 -20
  73. package/dist/components/menu/useContextMenu.d.ts.map +1 -1
  74. package/dist/components/number-input/CoarNumberInput.vue.d.ts +16 -1
  75. package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
  76. package/dist/components/otp-input/CoarOtpInput.vue.d.ts +2 -2
  77. package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
  78. package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
  79. package/dist/components/overlay/compact-context.d.ts +10 -0
  80. package/dist/components/overlay/compact-context.d.ts.map +1 -0
  81. package/dist/components/overlay/index.d.ts +3 -1
  82. package/dist/components/overlay/index.d.ts.map +1 -1
  83. package/dist/components/overlay/overlay-presets.d.ts +9 -0
  84. package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
  85. package/dist/components/overlay/overlay-service.d.ts +12 -0
  86. package/dist/components/overlay/overlay-service.d.ts.map +1 -1
  87. package/dist/components/overlay/overlay-types.d.ts +6 -0
  88. package/dist/components/overlay/overlay-types.d.ts.map +1 -1
  89. package/dist/components/overlay/useCompactPresentationContext.d.ts +33 -0
  90. package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -0
  91. package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
  92. package/dist/components/panel-layout/internal/CoarPaneDivider.vue.d.ts.map +1 -1
  93. package/dist/components/password-input/CoarPasswordInput.vue.d.ts +5 -1
  94. package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
  95. package/dist/components/scrollbar/index.d.ts +1 -1
  96. package/dist/components/scrollbar/index.d.ts.map +1 -1
  97. package/dist/components/scrollbar/vScrollbar.d.ts +9 -0
  98. package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
  99. package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
  100. package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
  101. package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
  102. package/dist/components/select/CoarSelect.vue.d.ts +17 -3
  103. package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
  104. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts +7 -4
  105. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
  106. package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
  107. package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
  108. package/dist/components/select/index.d.ts +1 -1
  109. package/dist/components/select/index.d.ts.map +1 -1
  110. package/dist/components/select/types.d.ts +13 -0
  111. package/dist/components/select/types.d.ts.map +1 -1
  112. package/dist/components/select/useSelectBase.d.ts +2 -1
  113. package/dist/components/select/useSelectBase.d.ts.map +1 -1
  114. package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
  115. package/dist/components/switch/CoarSwitch.vue.d.ts +2 -2
  116. package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
  117. package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
  118. package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
  119. package/dist/components/text-input/CoarTextInput.vue.d.ts +16 -2
  120. package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
  121. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +8 -2
  122. package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
  123. package/dist/components/theme-editor/color-preview.d.ts +22 -0
  124. package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
  125. package/dist/components/theme-editor/font-preview.d.ts +46 -0
  126. package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
  127. package/dist/components/theme-editor/scheme-values.d.ts +12 -0
  128. package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
  129. package/dist/components/theme-editor/theme-editor-state.d.ts +199 -183
  130. package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
  131. package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
  132. package/dist/components/tree/CoarTreeNode.vue.d.ts.map +1 -1
  133. package/dist/composables/useDragDrop.d.ts.map +1 -1
  134. package/dist/composables/useDragImage.d.ts +2 -14
  135. package/dist/composables/useDragImage.d.ts.map +1 -1
  136. package/dist/index.css +1 -1
  137. package/dist/index.d.ts +8 -4
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +6768 -4523
  140. package/dist/onest-fonts.d.ts +1 -0
  141. package/dist/onest-fonts.d.ts.map +1 -0
  142. package/dist/onest-fonts.js +4 -0
  143. package/dist/theme/color-contrast.d.ts +10 -0
  144. package/dist/theme/color-contrast.d.ts.map +1 -0
  145. package/dist/theme/compact-packages/calendar.d.ts +8 -0
  146. package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
  147. package/dist/theme/compact-packages/data-grid.d.ts +8 -0
  148. package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
  149. package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
  150. package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
  151. package/dist/theme/compact-packages/map.d.ts +11 -0
  152. package/dist/theme/compact-packages/map.d.ts.map +1 -0
  153. package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
  154. package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
  155. package/dist/theme/compact-packages/markdown.d.ts +14 -0
  156. package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
  157. package/dist/theme/compact-packages/mermaid.d.ts +8 -0
  158. package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
  159. package/dist/theme/compact-packages/page-builder.d.ts +8 -0
  160. package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
  161. package/dist/theme/compact-packages/script-editor.d.ts +8 -0
  162. package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
  163. package/dist/theme/compact-theme.d.ts +11 -0
  164. package/dist/theme/compact-theme.d.ts.map +1 -0
  165. package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
  166. package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
  167. package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
  168. package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
  169. package/dist/theme/enterprise-packages/map.d.ts +3 -0
  170. package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
  171. package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
  172. package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
  173. package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
  174. package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
  175. package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
  176. package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
  177. package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
  178. package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
  179. package/dist/theme/enterprise-theme.d.ts +8 -0
  180. package/dist/theme/enterprise-theme.d.ts.map +1 -0
  181. package/dist/theme/palette-inputs.d.ts +34 -0
  182. package/dist/theme/palette-inputs.d.ts.map +1 -0
  183. package/dist/theme/role-derived-tokens.d.ts +3 -0
  184. package/dist/theme/role-derived-tokens.d.ts.map +1 -0
  185. package/dist/theme/role-input-defaults.d.ts +5 -0
  186. package/dist/theme/role-input-defaults.d.ts.map +1 -0
  187. package/dist/theme/role-theme-contract.d.ts +8 -0
  188. package/dist/theme/role-theme-contract.d.ts.map +1 -0
  189. package/dist/theme/role-theme.d.ts +40 -0
  190. package/dist/theme/role-theme.d.ts.map +1 -0
  191. package/package.json +15 -4
  192. package/skills/cocoar-vue-ui/SKILL.md +8 -1
  193. package/skills/cocoar-vue-ui/references/components/calendar/board.md +212 -0
  194. package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +32 -1
  195. package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +21 -0
  196. package/skills/cocoar-vue-ui/references/components/calendar/index.md +26 -1
  197. package/skills/cocoar-vue-ui/references/components/calendar/mini-month.md +59 -0
  198. package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +48 -1
  199. package/skills/cocoar-vue-ui/references/components/context-menu.md +1 -0
  200. package/skills/cocoar-vue-ui/references/components/data-grid.md +4 -0
  201. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +30 -1
  202. package/skills/cocoar-vue-ui/references/components/date-picker.md +32 -1
  203. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +28 -1
  204. package/skills/cocoar-vue-ui/references/components/dialog.md +188 -2
  205. package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +4 -0
  206. package/skills/cocoar-vue-ui/references/components/form-field.md +10 -6
  207. package/skills/cocoar-vue-ui/references/components/listbox.md +3 -1
  208. package/skills/cocoar-vue-ui/references/components/map/index.md +5 -1
  209. package/skills/cocoar-vue-ui/references/components/markdown-editor.md +10 -0
  210. package/skills/cocoar-vue-ui/references/components/markdown-form.md +9 -0
  211. package/skills/cocoar-vue-ui/references/components/markdown.md +10 -0
  212. package/skills/cocoar-vue-ui/references/components/menu.md +1 -1
  213. package/skills/cocoar-vue-ui/references/components/mermaid.md +11 -0
  214. package/skills/cocoar-vue-ui/references/components/number-input.md +81 -0
  215. package/skills/cocoar-vue-ui/references/components/object-editor.md +737 -0
  216. package/skills/cocoar-vue-ui/references/components/otp-input.md +1 -1
  217. package/skills/cocoar-vue-ui/references/components/pagination.md +1 -1
  218. package/skills/cocoar-vue-ui/references/components/password-input.md +32 -0
  219. package/skills/cocoar-vue-ui/references/components/script-editor.md +10 -0
  220. package/skills/cocoar-vue-ui/references/components/segmented-control.md +1 -1
  221. package/skills/cocoar-vue-ui/references/components/select.md +136 -2
  222. package/skills/cocoar-vue-ui/references/components/tabs.md +1 -1
  223. package/skills/cocoar-vue-ui/references/components/tag.md +1 -1
  224. package/skills/cocoar-vue-ui/references/components/text-input.md +189 -0
  225. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +42 -1
  226. package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
  227. package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +248 -0
  228. package/skills/cocoar-vue-ui/references/foundations/theming.md +98 -11
  229. package/skills/cocoar-vue-ui/references/foundations/typography.md +3 -0
  230. package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
  231. package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
  232. package/skills/cocoar-vue-ui/references/guide/migration-object-editor-values.md +40 -0
  233. package/skills/cocoar-vue-ui/references/guide/mobile.md +126 -27
  234. package/skills/cocoar-vue-ui/references/guide/theming.md +25 -0
  235. package/styles/tokens/all.css +6 -0
  236. package/styles/tokens/code-block.css +2 -2
  237. package/styles/tokens/colors-primitives-dark.css +50 -50
  238. package/styles/tokens/colors-primitives-light.css +50 -50
  239. package/styles/tokens/colors-usage.css +132 -111
  240. package/styles/tokens/compact.css +4442 -0
  241. package/styles/tokens/components-shared.css +4 -4
  242. package/styles/tokens/derived.css +525 -0
  243. package/styles/tokens/menu.css +21 -21
  244. package/styles/tokens/mobile.css +2 -0
  245. package/styles/tokens/new-components.css +42 -33
  246. package/styles/tokens/select-overlay.css +12 -12
  247. package/styles/tokens/sidebar.css +12 -12
  248. package/styles/tokens/theme-none.css +99 -93
  249. package/styles/tokens/tooltip.css +4 -4
  250. package/styles/tokens/typography.css +19 -19
@@ -2,7 +2,7 @@
2
2
 
3
3
  # OTP Input (New in 2.0)
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone partial — Works on phones (numeric keyboard, SMS autofill) but has no .coar-mobile presentation yet.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile (Preview); numeric keyboard and SMS autofill work on phones.
6
6
 
7
7
  The N-cell input for verification codes — 2FA / TOTP from authenticator apps, SMS one-time passwords, claim codes, short PINs. Auto-advances as the user types, jumps back on Backspace, spreads pasted codes across cells, and fires a `complete` event the moment the last cell fills so you can submit without a button click.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Pagination
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone partial — Works on phones with fewer maxVisiblePages, but has no .coar-mobile presentation yet.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile targets under .coar-mobile (Preview); use fewer maxVisiblePages on phones.
6
6
 
7
7
  Split large collections into digestible pages and let users navigate between them. Pagination automatically calculates page count from `totalItems` and `pageSize`, and intelligently truncates the page range with ellipses when there are too many pages to display at once.
8
8
 
@@ -131,6 +131,37 @@ import { CoarPasswordInput, CoarFormField } from '@cocoar/vue-ui';
131
131
  </script>
132
132
  ```
133
133
 
134
+ ## Inline (Preview) {#inline}
135
+
136
+ `appearance="inline"` shows only the masked value until the field is hovered or edited, as on the
137
+ [Text Input](./text-input.md#inline). The field keeps the full width: a width that follows the value would
138
+ reveal the length of the password.
139
+
140
+ **Demo — `password-input/demos/PasswordInputInline.vue`**
141
+
142
+ ```vue
143
+ <template>
144
+ <div style="display: grid; gap: 4px; max-width: 480px;">
145
+ <div style="display: grid; grid-template-columns: 120px 1fr; align-items: center;">
146
+ <span>User</span>
147
+ <CoarTextInput v-model="user" appearance="inline" />
148
+ </div>
149
+ <div style="display: grid; grid-template-columns: 120px 1fr; align-items: center;">
150
+ <span>Password</span>
151
+ <CoarPasswordInput v-model="password" appearance="inline" />
152
+ </div>
153
+ </div>
154
+ </template>
155
+
156
+ <script setup lang="ts">
157
+ import { ref } from 'vue';
158
+ import { CoarPasswordInput, CoarTextInput } from '@cocoar/vue-ui';
159
+
160
+ const user = ref('service-account');
161
+ const password = ref('secret-value');
162
+ </script>
163
+ ```
164
+
134
165
  ## Accessibility
135
166
 
136
167
  ### Keyboard Navigation
@@ -161,6 +192,7 @@ import { CoarPasswordInput, CoarFormField } from '@cocoar/vue-ui';
161
192
  | `placeholder` | `string` | `''` | Placeholder text |
162
193
  | `error` | `boolean` | `false` | Error state (auto-injected from `CoarFormField`) |
163
194
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
195
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
164
196
  | `disabled` | `boolean` | `false` | Disable the input |
165
197
  | `readonly` | `boolean` | `false` | Make read-only |
166
198
  | `required` | `boolean` | `false` | Mark as required |
@@ -1250,6 +1250,16 @@ The editor container surfaces these CSS custom properties:
1250
1250
 
1251
1251
  To register your own Monaco theme, call `monaco.editor.defineTheme('my-theme', {...})` anywhere in your app and pass it via the underlying editor instance (`editorRef.value?.getEditor().updateOptions({ theme: 'my-theme' })`).
1252
1252
 
1253
+ ### Compact presentation (Preview)
1254
+
1255
+ Two more themes, `coar-compact-light` and `coar-compact-dark` (slate neutrals, line numbers at 4.5:1),
1256
+ are registered next to the two above, which stay unchanged. Monaco themes apply to every editor on the
1257
+ page, so the compact themes are used only when `<html>` or `<body>` has the class `coar-compact`
1258
+ (the experimental compact profile, working title); `theme` keeps choosing light or dark. The editor
1259
+ frame follows a local `coar-compact` area too (control radius), but Monaco's colors inside it do not:
1260
+ mixing default and compact editors on one page is not supported. The compact themes use fixed colors
1261
+ and do not follow token or accent overrides.
1262
+
1253
1263
  ### Font
1254
1264
 
1255
1265
  The editor renders code in **Cascadia Code** (Microsoft's ligature-enabled coding font) with `Consolas`, `Monaco`, `Courier New` as fallback. Ligatures are enabled by default, so `!=`, `=>`, `===`, and `&&` render as combined glyphs. This matches `CoarCodeBlock` — both components share the same font stack.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Segmented Control
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone planned — A .coar-mobile presentation is planned.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
6
 
7
7
  Switch between a small fixed set of mutually-exclusive options like view modes, filters, density, or time ranges. A segmented control reads as a button-bar for view-state — same semantics as a radio group (single selection from N options), different visual register: it belongs in toolbars and headers, not in forms.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Select
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone planned — A phone presentation (sheet) is planned.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile field and option sizes under .coar-mobile (Preview); the panel stays a dropdown, a phone sheet is planned.
6
6
 
7
7
  Select components for single and multiple value selection. Choose between Single Select, Multi Select, or Tag Select variants.
8
8
 
@@ -428,6 +428,127 @@ const flatOptions: CoarSelectOption<string>[] = groupedOptions.map(({ group, ...
428
428
  import type { CoarSelectSortGroups, CoarSelectSortOptions } from '@cocoar/vue-ui';
429
429
  ```
430
430
 
431
+ ## Inline {#inline}
432
+
433
+ `appearance="inline"` shows only the value until the select is hovered or open: a light fill on hover, a stronger
434
+ one while it has focus or its list is open. An error keeps its red border. It works on all three selects, and its
435
+ look is shared with the other inputs ([Text Input](./text-input.md#inline) shows how to change the fills).
436
+
437
+ `width="content"` (Preview) makes `CoarSelect` as wide as the selected label or the placeholder, at most the available
438
+ width. While you search, the box keeps that width, so it neither grows nor moves with each letter. Multi and tag
439
+ selects keep the full width: their chips wrap.
440
+
441
+ **Demo — `select/demos/SelectInline.vue`**
442
+
443
+ ```vue
444
+ <template>
445
+ <p style="margin: 0; line-height: 2.4;">
446
+ Ship to
447
+ <CoarSelect v-model="city" :options="cities" appearance="inline" width="content" searchable />
448
+ by
449
+ <CoarSelect v-model="method" :options="methods" appearance="inline" width="content" placeholder="method" />
450
+ </p>
451
+ </template>
452
+
453
+ <script setup lang="ts">
454
+ import { ref } from 'vue';
455
+ import { CoarSelect } from '@cocoar/vue-ui';
456
+
457
+ const city = ref<string | null>('vie');
458
+ const cities = [
459
+ { value: 'vie', label: 'Vienna' },
460
+ { value: 'ber', label: 'Berlin' },
461
+ { value: 'zrh', label: 'Zurich' },
462
+ { value: 'ams', label: 'Amsterdam' },
463
+ ];
464
+ const method = ref<string | null>(null);
465
+ const methods = [
466
+ { value: 'standard', label: 'Standard' },
467
+ { value: 'express', label: 'Express' },
468
+ ];
469
+ </script>
470
+ ```
471
+
472
+ ## Templates (Preview) {#templates}
473
+
474
+ `CoarSelect` can draw the selected value and the options with your own content, such as an avatar or a second
475
+ line. `#value` draws the closed select, also when nothing is selected; `#option` draws each option in the list.
476
+ Without a slot, the select shows the icon and label as before; each slot works without the other.
477
+
478
+ **Demo — `select/demos/SelectTemplates.vue`**
479
+
480
+ ```vue
481
+ <template>
482
+ <CoarFormField label="Owner">
483
+ <CoarSelect
484
+ v-model="owner"
485
+ :options="options"
486
+ :compare-with="samePerson"
487
+ placeholder="Choose a person"
488
+ searchable
489
+ clearable
490
+ >
491
+ <template #value="{ option, placeholder }">
492
+ <span v-if="option" class="person">
493
+ <CoarAvatar :name="option.label" size="xs" :max-length="2" aria-hidden="true" />
494
+ <span>{{ option.label }}</span>
495
+ </span>
496
+ <span v-else>{{ placeholder }}</span>
497
+ </template>
498
+ <template #option="{ option }">
499
+ <span class="person">
500
+ <CoarAvatar :name="option.label" size="xs" :max-length="2" aria-hidden="true" />
501
+ <span class="person-copy">
502
+ <span>{{ option.label }}</span>
503
+ <small>{{ option.value.role }}</small>
504
+ </span>
505
+ </span>
506
+ </template>
507
+ </CoarSelect>
508
+ </CoarFormField>
509
+ </template>
510
+
511
+ <script setup lang="ts">
512
+ import { ref } from 'vue';
513
+ import { CoarAvatar, CoarFormField, CoarSelect, type CoarSelectOption } from '@cocoar/vue-ui';
514
+
515
+ interface Person {
516
+ id: string;
517
+ role: string;
518
+ }
519
+ const options: CoarSelectOption<Person>[] = [
520
+ { value: { id: 'anna', role: 'Product management' }, label: 'Anna Berger' },
521
+ { value: { id: 'lukas', role: 'Design' }, label: 'Lukas Huber' },
522
+ { value: { id: 'sophie', role: 'Purchasing' }, label: 'Sophie Wagner' },
523
+ ];
524
+ const owner = ref<Person | null>(options[1].value);
525
+ const samePerson = (a: Person, b: Person) => a.id === b.id;
526
+ </script>
527
+
528
+ <style scoped>
529
+ .person {
530
+ display: inline-flex;
531
+ align-items: center;
532
+ gap: 8px;
533
+ min-width: 0;
534
+ }
535
+ .person-copy {
536
+ display: flex;
537
+ flex-direction: column;
538
+ min-width: 0;
539
+ }
540
+ .person-copy small {
541
+ font-size: 12px;
542
+ color: var(--coar-text-neutral-tertiary);
543
+ }
544
+ </style>
545
+ ```
546
+
547
+ The select keeps selection, keyboard navigation, focus, disabled options and the checkmark, so keep slot content
548
+ non-interactive: no buttons, links, inputs or closable tags. Every option still needs its `label`: search, sorting,
549
+ the option's accessible name and the overflow tooltip use it. With `width="content"` and `searchable`, the
550
+ `#value` content also keeps the width of the box while you search.
551
+
431
552
  ## API
432
553
 
433
554
  ### Props
@@ -443,12 +564,25 @@ import type { CoarSelectSortGroups, CoarSelectSortOptions } from '@cocoar/vue-ui
443
564
  | `disabled` | `boolean` | `false` | Disable the select |
444
565
  | `readonly` | `boolean` | `false` | Read-only state |
445
566
  | `error` | `boolean` | `false` | Error state (auto-injected from `CoarFormField`) |
446
- | `appearance` | `'outline' \| 'inline'` | `'outline'` | Visual appearance variant |
567
+ | `appearance` | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or open, see [Inline](#inline) |
568
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the selected label or placeholder (`CoarSelect` only) |
447
569
  | `compareWith` | `(a: T, b: T) => boolean` | `===` | Custom comparison function for matching values |
448
570
  | `dropdownPosition` | `'auto' \| 'top' \| 'bottom'` | `'auto'` | Dropdown position preference |
449
571
  | `sortGroups` | `'asc' \| 'desc' \| 'none' \| (a, b) => number` | `'asc'` | Sort order for groups |
450
572
  | `sortOptions` | `'asc' \| 'desc' \| 'none' \| (a, b) => number` | `'none'` | Sort order for options (within each group, or all if ungrouped) |
451
573
 
574
+ ### Slots (Preview)
575
+
576
+ `CoarSelect` only, see [Templates](#templates).
577
+
578
+ | Slot | Scope | Without the slot |
579
+ |------|-------|------------------|
580
+ | `value` | `{ option: CoarSelectOption<T> \| null, value: T \| null, placeholder: string }` | Icon and label of the selected option, or the placeholder |
581
+ | `option` | `{ option: CoarSelectOption<T>, selected: boolean, highlighted: boolean, index: number }` | Icon and label of the option; the checkmark is always the select's own |
582
+
583
+ The scope types are exported as `CoarSelectValueSlotProps<T>` and `CoarSelectOptionSlotProps<T>`. `index` is the
584
+ position in the filtered, sorted list.
585
+
452
586
  ## i18n Keys
453
587
 
454
588
  These keys can be translated via [`@cocoar/vue-localization`](../foundations/localization/translations.md).
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Tabs
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone partial — The tab bar neither scrolls nor wraps, so many tabs overflow phone widths.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Touch-sized tabs under .coar-mobile (Preview), but the tab bar neither scrolls nor wraps, so many tabs overflow.
6
6
 
7
7
  Organize related content into separate panels that users switch between without leaving the page. Tabs are ideal for settings screens, detail views, and any layout where showing everything at once would feel overwhelming. The active tab is controlled via `v-model`, so you can read or set it programmatically.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Tag
4
4
 
5
- **Devices:** desktop ready · tablet partial · phone partial — The close button is a 10–14 px icon without a larger touch target.
5
+ **Devices:** desktop ready · tablet partial · phone partial — The close button is a 10–14 px icon; only under .coar-mobile (Preview) does it get a 44 px touch target.
6
6
 
7
7
  Tags label, categorize, and organize content. Use them for metadata (status labels, technology stacks), filter chips, or user-driven selections. Unlike badges, which show counts and status dots, tags convey descriptive information that users can read and often interact with.
8
8
 
@@ -119,6 +119,50 @@ const price = ref('');
119
119
  </script>
120
120
  ```
121
121
 
122
+ ## Prefix & Suffix Actions (Preview) {#actions}
123
+
124
+ `#prefixAction` and `#suffixAction` hold interactive content at the outer edges of the field, such as an inline
125
+ select for the protocol of a web address. Unlike `#prefix` and `#suffix`, which show muted text, an action keeps the
126
+ text style of the field. An inline select there runs to the edge: its fill on hover reaches the border and follows
127
+ the field's corner. Both slots get `{ disabled, readonly }` of the field, so the action can follow its state.
128
+
129
+ **Demo — `text-input/demos/TextInputActions.vue`**
130
+
131
+ ```vue
132
+ <template>
133
+ <CoarFormField label="Website" style="max-width: 360px;">
134
+ <CoarTextInput v-model="host" placeholder="example.com">
135
+ <template #prefixAction="{ disabled, readonly }">
136
+ <CoarSelect
137
+ v-model="scheme"
138
+ :options="schemes"
139
+ aria-label="Protocol"
140
+ appearance="inline"
141
+ width="content"
142
+ :disabled="disabled"
143
+ :readonly="readonly"
144
+ />
145
+ </template>
146
+ </CoarTextInput>
147
+ </CoarFormField>
148
+ </template>
149
+
150
+ <script setup lang="ts">
151
+ import { ref } from 'vue';
152
+ import { CoarFormField, CoarSelect, CoarTextInput } from '@cocoar/vue-ui';
153
+
154
+ const host = ref('cocoar.dev');
155
+ const scheme = ref<string | null>('https://');
156
+ const schemes = [
157
+ { value: 'https://', label: 'https://' },
158
+ { value: 'http://', label: 'http://' },
159
+ ];
160
+ </script>
161
+ ```
162
+
163
+ An action is a field of its own: a select in it does not take the label, hint or error of the surrounding
164
+ `CoarFormField`, so give it its own name with `aria-label`.
165
+
122
166
  ## Clear Button
123
167
 
124
168
  When `clearable` is enabled, a small X button appears on hover or focus so users can quickly reset the field. It's **off by default** — set `clearable` to opt in.
@@ -206,6 +250,140 @@ const bio = ref('');
206
250
  </script>
207
251
  ```
208
252
 
253
+ ## Inline (Preview) {#inline}
254
+
255
+ `appearance="inline"` lets a field sit in a sentence or a table row without looking like a form. At rest only the
256
+ value shows; hovering fills the box lightly to show what a click activates, and while the field is edited the fill
257
+ is stronger. Size, padding, radius and font stay those of the outlined field, so the value does not move when the
258
+ field is focused. An error keeps its red border, and disabled and readonly look as usual. Only the box itself
259
+ reacts to a click: the free space next to it activates nothing.
260
+
261
+ `width="content"` makes a single-line field as wide as its value (or its placeholder when it is empty) plus its
262
+ prefix, suffix and clear button, at most the available width. A multiline field keeps the full width.
263
+
264
+ **Demo — `text-input/demos/TextInputInline.vue`**
265
+
266
+ ```vue
267
+ <template>
268
+ <div style="display: flex; flex-direction: column; gap: 16px; max-width: 480px;">
269
+ <p style="margin: 0; line-height: 2.4;">
270
+ The
271
+ <CoarTextInput v-model="product" appearance="inline" width="content" placeholder="product" />
272
+ ships from
273
+ <CoarTextInput v-model="city" appearance="inline" width="content" placeholder="city" />
274
+ · in stock
275
+ </p>
276
+ <CoarFormField label="Description">
277
+ <CoarTextInput v-model="description" appearance="inline" :rows="2" />
278
+ </CoarFormField>
279
+ </div>
280
+ </template>
281
+
282
+ <script setup lang="ts">
283
+ import { ref } from 'vue';
284
+ import { CoarTextInput, CoarFormField } from '@cocoar/vue-ui';
285
+
286
+ const product = ref('Cocoar Desk Lamp');
287
+ const city = ref('');
288
+ const description = ref('Dimmable LED lamp with a warm white setting.');
289
+ </script>
290
+ ```
291
+
292
+ The same props work on [Number Input](./number-input.md#inline), [Select](./select.md#inline),
293
+ [Date Picker](./date-picker.md#inline) and the other date pickers. Together they make a property list
294
+ that is edited where it is read:
295
+
296
+ **Demo — `text-input/demos/InlineProperties.vue`**
297
+
298
+ ```vue
299
+ <template>
300
+ <div class="inline-properties">
301
+ <div class="inline-properties__row">
302
+ <span class="inline-properties__label">Name</span>
303
+ <div><CoarTextInput v-model="name" appearance="inline" width="content" placeholder="–" /></div>
304
+ </div>
305
+ <div class="inline-properties__row">
306
+ <span class="inline-properties__label">Price</span>
307
+ <div>
308
+ <CoarNumberInput v-model="price" appearance="inline" width="content" :decimals="2" suffix="EUR" />
309
+ </div>
310
+ </div>
311
+ <div class="inline-properties__row">
312
+ <span class="inline-properties__label">Category</span>
313
+ <div>
314
+ <CoarSelect v-model="category" :options="categories" appearance="inline" width="content" searchable />
315
+ </div>
316
+ </div>
317
+ <div class="inline-properties__row">
318
+ <span class="inline-properties__label">Available from</span>
319
+ <div><CoarPlainDatePicker v-model="availableFrom" appearance="inline" width="content" /></div>
320
+ </div>
321
+ <div class="inline-properties__row">
322
+ <span class="inline-properties__label">Stock</span>
323
+ <div>
324
+ <CoarNumberInput v-model="stock" appearance="inline" width="content" :min="0" stepper-buttons="both" />
325
+ </div>
326
+ </div>
327
+ <div class="inline-properties__row">
328
+ <span class="inline-properties__label">SKU</span>
329
+ <div><CoarTextInput v-model="sku" appearance="inline" width="content" error /></div>
330
+ </div>
331
+ </div>
332
+ </template>
333
+
334
+ <script setup lang="ts">
335
+ import { ref } from 'vue';
336
+ import { Temporal } from '@js-temporal/polyfill';
337
+ import { CoarTextInput, CoarNumberInput, CoarSelect, CoarPlainDatePicker } from '@cocoar/vue-ui';
338
+
339
+ const name = ref('Cocoar Desk Lamp');
340
+ const price = ref<number | null>(49.9);
341
+ const category = ref<string | null>('lighting');
342
+ const categories = [
343
+ { value: 'lighting', label: 'Lighting' },
344
+ { value: 'furniture', label: 'Furniture' },
345
+ { value: 'office', label: 'Office supplies' },
346
+ { value: 'decoration', label: 'Decoration' },
347
+ ];
348
+ const availableFrom = ref<Temporal.PlainDate | null>(Temporal.PlainDate.from('2026-12-01'));
349
+ const stock = ref<number | null>(12);
350
+ const sku = ref('LAMP 01');
351
+ </script>
352
+
353
+ <style scoped>
354
+ .inline-properties {
355
+ display: grid;
356
+ max-width: 520px;
357
+ }
358
+ .inline-properties__row {
359
+ display: grid;
360
+ grid-template-columns: 140px 1fr;
361
+ align-items: center;
362
+ padding: 2px 8px;
363
+ border-radius: var(--coar-radius-s);
364
+ }
365
+ .inline-properties__label {
366
+ color: var(--coar-text-neutral-secondary);
367
+ }
368
+ /* A row hover in the colour the fills must stand out from. */
369
+ .inline-properties__row:hover {
370
+ background: var(--coar-background-neutral-secondary);
371
+ }
372
+ </style>
373
+ ```
374
+
375
+ The two fills are the theme roles `--coar-surface-input-inline-hover` and `--coar-surface-input-inline-active`,
376
+ which the Theme Editor lists as "Inline field, hover" and "Inline field, editing". By default they mix the text
377
+ colour into transparency, so they show on any surface, also on a hovered row and in dark mode. Where a background
378
+ needs other values, set the roles on its container:
379
+
380
+ ```css
381
+ .my-editor {
382
+ --coar-surface-input-inline-hover: rgb(0 0 0 / 8%);
383
+ --coar-surface-input-inline-active: rgb(0 0 0 / 14%);
384
+ }
385
+ ```
386
+
209
387
  ## Accessibility
210
388
 
211
389
  ### Keyboard Navigation
@@ -239,12 +417,23 @@ const bio = ref('');
239
417
  | `suffix` | `string` | `''` | Suffix text after the input |
240
418
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
241
419
  | `rows` | `number` | `1` | Rows >= 2 enables textarea mode |
420
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
421
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the value or placeholder (single line only) |
242
422
  | `clearable` | `boolean` | `false` | Show clear button when input has value |
243
423
  | `error` | `boolean` | `false` | Error state (auto-injected from `CoarFormField`) |
244
424
  | `disabled` | `boolean` | `false` | Disable the input |
245
425
  | `readonly` | `boolean` | `false` | Make read-only |
246
426
  | `required` | `boolean` | `false` | HTML required attribute |
247
427
 
428
+ ### Slots
429
+
430
+ | Slot | Scope | Description |
431
+ |------|-------|-------------|
432
+ | `prefix` | — | Muted content before the value, after a prefix action |
433
+ | `suffix` | — | Muted content after the value |
434
+ | `prefixAction` (Preview) | `{ disabled: boolean, readonly: boolean }` | Interactive content at the start edge, see [Actions](#actions) |
435
+ | `suffixAction` | `{ disabled: boolean, readonly: boolean }` | Interactive content at the end edge, see [Actions](#actions) |
436
+
248
437
  > **Tip**
249
438
  >
250
439
  > Label, hint, and error are provided by [`CoarFormField`](./form-field.md). Wrap inputs in a `CoarFormField` to add these features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Zoned DateTime Picker
4
4
 
5
- **Devices:** desktop ready · tablet ready · phone planned — A phone presentation (sheet) is planned.
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile field sizes under .coar-mobile (Preview); the panel keeps its desktop layout, a phone sheet is planned.
6
6
 
7
7
  The full-featured datetime picker for timezone-aware values. It captures a date, time, and IANA timezone as a single `Temporal.ZonedDateTime`, making it easy to derive UTC instants for storage while preserving the user's original intent.
8
8
 
@@ -119,6 +119,45 @@ import { CoarZonedDateTimePicker, CoarFormField } from '@cocoar/vue-ui';
119
119
  </script>
120
120
  ```
121
121
 
122
+ ## Inline (Preview) {#inline}
123
+
124
+ `appearance="inline"` shows only the date, time and zone until the field is hovered, edited or its panel is open;
125
+ the calendar button stays and loses its segment background. `width="content"` fits the field to the shown value
126
+ and its zone caption: the box is at least as wide as the caption needs, so a long zone name does not stick out.
127
+ How the fills behave and how to change them: [Text Input](./text-input.md#inline).
128
+
129
+ **Demo — `zoned-date-time-picker/demos/ZonedDateTimePickerInline.vue`**
130
+
131
+ ```vue
132
+ <template>
133
+ <div style="display: grid; gap: 12px; max-width: 520px;">
134
+ <p style="margin: 0; line-height: 2.4;">
135
+ The call starts
136
+ <CoarZonedDateTimePicker v-model="call" appearance="inline" width="content" />
137
+ for everyone.
138
+ </p>
139
+ <div style="display: grid; grid-template-columns: 120px 1fr; align-items: center;">
140
+ <span>Starts</span>
141
+ <CoarZonedDateTimePicker v-model="starts" appearance="inline" />
142
+ </div>
143
+ <div style="display: grid; grid-template-columns: 120px 1fr; align-items: center;">
144
+ <span>Ends</span>
145
+ <CoarZonedDateTimePicker v-model="ends" appearance="inline" placeholder="not set" />
146
+ </div>
147
+ </div>
148
+ </template>
149
+
150
+ <script setup lang="ts">
151
+ import { ref } from 'vue';
152
+ import { Temporal } from '@js-temporal/polyfill';
153
+ import { CoarZonedDateTimePicker } from '@cocoar/vue-ui';
154
+
155
+ const starts = ref<Temporal.ZonedDateTime | null>(Temporal.ZonedDateTime.from('2026-12-01T09:30[Europe/Vienna]'));
156
+ const call = ref<Temporal.ZonedDateTime | null>(Temporal.ZonedDateTime.from('2026-12-01T16:00[America/Argentina/Buenos_Aires]'));
157
+ const ends = ref<Temporal.ZonedDateTime | null>(null);
158
+ </script>
159
+ ```
160
+
122
161
  ## Accessibility
123
162
 
124
163
  ### Keyboard Navigation
@@ -170,6 +209,8 @@ These keys can be translated via [`@cocoar/vue-localization`](../foundations/loc
170
209
  | `timezone` | `string` | user's timezone | IANA timezone ID (e.g. `'Europe/Berlin'`) |
171
210
  | `placeholder` | `string` | `''` | Placeholder text |
172
211
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
212
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
213
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the shown value and its zone caption |
173
214
  | `disabled` | `boolean` | `false` | Disable the picker |
174
215
  | `readonly` | `boolean` | `false` | Make read-only |
175
216
  | `required` | `boolean` | `false` | Mark as required |
@@ -434,6 +434,11 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
434
434
  <code>--coar-background-accent-primary</code>
435
435
  <span class="annotation-desc">Primary button</span>
436
436
  </div>
437
+ <div class="annotation">
438
+ <span class="annotation-dot" style="background: var(--coar-text-on-accent)"></span>
439
+ <code>--coar-text-on-accent</code>
440
+ <span class="annotation-desc">Computed button ink</span>
441
+ </div>
437
442
  <div class="annotation">
438
443
  <span class="annotation-dot" style="background: var(--coar-border-neutral-tertiary)"></span>
439
444
  <code>--coar-border-neutral-tertiary</code>
@@ -485,7 +490,7 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
485
490
  .avatar-text {
486
491
  font-size: 14px;
487
492
  font-weight: 700;
488
- color: var(--coar-text-on-bold);
493
+ color: var(--coar-text-on-accent, var(--coar-text-on-bold));
489
494
  }
490
495
 
491
496
  .card-header-text {
@@ -553,7 +558,7 @@ A realistic card built entirely with semantic tokens. Toggle light/dark mode to
553
558
  border-radius: 8px;
554
559
  border: none;
555
560
  background: var(--coar-background-accent-primary);
556
- color: var(--coar-text-on-bold);
561
+ color: var(--coar-text-on-accent, var(--coar-text-on-bold));
557
562
  font-size: 13px;
558
563
  font-weight: 600;
559
564
  cursor: pointer;
@@ -676,7 +681,31 @@ All tokens follow a predictable pattern:
676
681
  | `--coar-text-accent-primary` | Accent-colored text (links, highlights) |
677
682
  | `--coar-text-accent-secondary` | Lighter accent text |
678
683
  | `--coar-text-brand-primary` | Brand-colored text |
679
- | `--coar-text-on-bold` | White text on bold / colored surfaces |
684
+ | `--coar-text-on-accent` | Computed black or white on the primary accent fill |
685
+ | `--coar-text-on-success` | Computed black or white on the solid success fill |
686
+ | `--coar-text-on-error` | Computed black or white on the solid error fill |
687
+ | `--coar-text-on-warning` | Computed black or white on the solid warning fill |
688
+ | `--coar-text-on-info` | Computed black or white on the solid info fill |
689
+ | `--coar-text-on-bold` | Legacy white role; retained for direct use and as a fallback |
690
+
691
+ ### Text on saturated fills (Preview)
692
+
693
+ The five `--coar-text-on-*` roles choose pure white or black from their actual
694
+ solid fill, using the stronger APCA contrast. They work with every preset and
695
+ without a theme. The same ink is used on hover and pressed states; links,
696
+ validation text and text on tinted surfaces continue to use their palette roles.
697
+
698
+ Set a role to override the calculation, including a `light-dark()` pair:
699
+
700
+ ```css
701
+ .coar-theme--acme {
702
+ --coar-text-on-accent: light-dark(#102a43, #f0f8ff);
703
+ }
704
+ ```
705
+
706
+ Overrides are retained even when contrast is low. APCA selection is not a WCAG
707
+ 4.5:1 guarantee. `--coar-text-on-threshold` is the APCA luminance crossing used by
708
+ the CSS calculation; normally leave it unchanged.
680
709
 
681
710
  ### Border
682
711