@cocoar/vue-ui 3.4.0-beta.1 → 3.4.0-beta.21

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/components/_internal/pageScrollLock.d.ts +17 -0
  3. package/dist/components/_internal/pageScrollLock.d.ts.map +1 -0
  4. package/dist/components/_internal/useFocusTrap.d.ts +9 -0
  5. package/dist/components/_internal/useFocusTrap.d.ts.map +1 -0
  6. package/dist/components/_internal/useVisualViewport.d.ts +26 -0
  7. package/dist/components/_internal/useVisualViewport.d.ts.map +1 -0
  8. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts +95 -0
  9. package/dist/components/date-time/_shared/use-plain-date-picker.d.ts.map +1 -0
  10. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts +113 -0
  11. package/dist/components/date-time/_shared/use-plain-date-time-picker.d.ts.map +1 -0
  12. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts +132 -0
  13. package/dist/components/date-time/_shared/use-zoned-date-time-picker.d.ts.map +1 -0
  14. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
  15. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
  16. package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
  17. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
  18. package/dist/components/dialog/CoarDialogFooter.vue.d.ts +20 -0
  19. package/dist/components/dialog/CoarDialogFooter.vue.d.ts.map +1 -0
  20. package/dist/components/dialog/CoarDialogShell.vue.d.ts +2 -0
  21. package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
  22. package/dist/components/dialog/CoarSheetShell.vue.d.ts +50 -0
  23. package/dist/components/dialog/CoarSheetShell.vue.d.ts.map +1 -0
  24. package/dist/components/dialog/dialog-types.d.ts +27 -0
  25. package/dist/components/dialog/dialog-types.d.ts.map +1 -1
  26. package/dist/components/dialog/dialogFooter.d.ts +21 -0
  27. package/dist/components/dialog/dialogFooter.d.ts.map +1 -0
  28. package/dist/components/dialog/index.d.ts +2 -1
  29. package/dist/components/dialog/index.d.ts.map +1 -1
  30. package/dist/components/dialog/useDialog.d.ts +6 -15
  31. package/dist/components/dialog/useDialog.d.ts.map +1 -1
  32. package/dist/components/dialog/useSheetDrag.d.ts +46 -0
  33. package/dist/components/dialog/useSheetDrag.d.ts.map +1 -0
  34. package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
  35. package/dist/components/input-frame/CoarInputFrameButton.vue.d.ts.map +1 -1
  36. package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
  37. package/dist/components/menu/CoarContextMenu.vue.d.ts.map +1 -1
  38. package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
  39. package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
  40. package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
  41. package/dist/components/menu/useContextMenu.d.ts +7 -20
  42. package/dist/components/menu/useContextMenu.d.ts.map +1 -1
  43. package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
  44. package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
  45. package/dist/components/overlay/index.d.ts +1 -1
  46. package/dist/components/overlay/index.d.ts.map +1 -1
  47. package/dist/components/overlay/overlay-presets.d.ts +9 -0
  48. package/dist/components/overlay/overlay-presets.d.ts.map +1 -1
  49. package/dist/components/overlay/overlay-service.d.ts +12 -0
  50. package/dist/components/overlay/overlay-service.d.ts.map +1 -1
  51. package/dist/components/overlay/overlay-types.d.ts +6 -0
  52. package/dist/components/overlay/overlay-types.d.ts.map +1 -1
  53. package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -1
  54. package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -1
  55. package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
  56. package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
  57. package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
  58. package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
  59. package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
  60. package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
  61. package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
  62. package/dist/components/tag/CoarTag.vue.d.ts.map +1 -1
  63. package/dist/index.css +1 -1
  64. package/dist/index.d.ts +3 -3
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +4558 -3950
  67. package/package.json +4 -4
  68. package/skills/cocoar-vue-ui/SKILL.md +9 -5
  69. package/skills/cocoar-vue-ui/references/components/avatar.md +2 -0
  70. package/skills/cocoar-vue-ui/references/components/badge.md +2 -0
  71. package/skills/cocoar-vue-ui/references/components/breadcrumb.md +2 -0
  72. package/skills/cocoar-vue-ui/references/components/button.md +2 -0
  73. package/skills/cocoar-vue-ui/references/components/calendar/agenda-view.md +2 -0
  74. package/skills/cocoar-vue-ui/references/components/calendar/coar-calendar.md +2 -0
  75. package/skills/cocoar-vue-ui/references/components/calendar/day-view.md +2 -0
  76. package/skills/cocoar-vue-ui/references/components/calendar/index.md +2 -0
  77. package/skills/cocoar-vue-ui/references/components/calendar/month-view.md +2 -0
  78. package/skills/cocoar-vue-ui/references/components/calendar/time-selection.md +2 -0
  79. package/skills/cocoar-vue-ui/references/components/calendar/timeline-view.md +2 -0
  80. package/skills/cocoar-vue-ui/references/components/calendar/week-view.md +2 -0
  81. package/skills/cocoar-vue-ui/references/components/calendar/work-week-view.md +2 -0
  82. package/skills/cocoar-vue-ui/references/components/calendar/year-view.md +2 -0
  83. package/skills/cocoar-vue-ui/references/components/card.md +2 -0
  84. package/skills/cocoar-vue-ui/references/components/checkbox-group.md +2 -0
  85. package/skills/cocoar-vue-ui/references/components/checkbox.md +2 -0
  86. package/skills/cocoar-vue-ui/references/components/code-block.md +2 -0
  87. package/skills/cocoar-vue-ui/references/components/context-menu.md +3 -0
  88. package/skills/cocoar-vue-ui/references/components/data-grid/checkbox.md +2 -0
  89. package/skills/cocoar-vue-ui/references/components/data-grid/date-columns.md +2 -0
  90. package/skills/cocoar-vue-ui/references/components/data-grid/editing.md +2 -0
  91. package/skills/cocoar-vue-ui/references/components/data-grid/multi-select.md +2 -0
  92. package/skills/cocoar-vue-ui/references/components/data-grid/number.md +2 -0
  93. package/skills/cocoar-vue-ui/references/components/data-grid/select.md +2 -0
  94. package/skills/cocoar-vue-ui/references/components/data-grid/text.md +2 -0
  95. package/skills/cocoar-vue-ui/references/components/data-grid.md +2 -0
  96. package/skills/cocoar-vue-ui/references/components/data-list.md +2 -0
  97. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +2 -0
  98. package/skills/cocoar-vue-ui/references/components/date-picker.md +2 -0
  99. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +2 -0
  100. package/skills/cocoar-vue-ui/references/components/date-views.md +2 -0
  101. package/skills/cocoar-vue-ui/references/components/dialog.md +162 -1
  102. package/skills/cocoar-vue-ui/references/components/divider.md +2 -0
  103. package/skills/cocoar-vue-ui/references/components/document-viewer/annotations.md +2 -0
  104. package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +2 -0
  105. package/skills/cocoar-vue-ui/references/components/document-viewer/index.md +2 -0
  106. package/skills/cocoar-vue-ui/references/components/document-viewer/toolbar.md +2 -0
  107. package/skills/cocoar-vue-ui/references/components/drag-drop.md +2 -0
  108. package/skills/cocoar-vue-ui/references/components/dual-listbox.md +2 -0
  109. package/skills/cocoar-vue-ui/references/components/form-field.md +2 -0
  110. package/skills/cocoar-vue-ui/references/components/link.md +2 -0
  111. package/skills/cocoar-vue-ui/references/components/listbox.md +2 -0
  112. package/skills/cocoar-vue-ui/references/components/map/editor.md +2 -0
  113. package/skills/cocoar-vue-ui/references/components/map/index.md +2 -0
  114. package/skills/cocoar-vue-ui/references/components/markdown-diagrams.md +2 -0
  115. package/skills/cocoar-vue-ui/references/components/markdown-editor.md +2 -0
  116. package/skills/cocoar-vue-ui/references/components/markdown-form.md +2 -0
  117. package/skills/cocoar-vue-ui/references/components/markdown.md +2 -0
  118. package/skills/cocoar-vue-ui/references/components/menu.md +2 -0
  119. package/skills/cocoar-vue-ui/references/components/mermaid.md +2 -0
  120. package/skills/cocoar-vue-ui/references/components/navbar.md +2 -0
  121. package/skills/cocoar-vue-ui/references/components/note.md +2 -0
  122. package/skills/cocoar-vue-ui/references/components/notice.md +2 -0
  123. package/skills/cocoar-vue-ui/references/components/number-input.md +2 -0
  124. package/skills/cocoar-vue-ui/references/components/otp-input.md +2 -0
  125. package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-builder.md +2 -0
  126. package/skills/cocoar-vue-ui/references/components/page-builder/coar-page-renderer.md +2 -0
  127. package/skills/cocoar-vue-ui/references/components/pagination.md +2 -0
  128. package/skills/cocoar-vue-ui/references/components/panel-layout.md +2 -0
  129. package/skills/cocoar-vue-ui/references/components/password-input.md +2 -0
  130. package/skills/cocoar-vue-ui/references/components/popconfirm.md +2 -0
  131. package/skills/cocoar-vue-ui/references/components/popover.md +2 -0
  132. package/skills/cocoar-vue-ui/references/components/progress-bar.md +2 -0
  133. package/skills/cocoar-vue-ui/references/components/radio-group.md +2 -0
  134. package/skills/cocoar-vue-ui/references/components/script-editor.md +2 -0
  135. package/skills/cocoar-vue-ui/references/components/segmented-control.md +2 -0
  136. package/skills/cocoar-vue-ui/references/components/select.md +2 -0
  137. package/skills/cocoar-vue-ui/references/components/sidebar.md +2 -0
  138. package/skills/cocoar-vue-ui/references/components/spinner.md +2 -0
  139. package/skills/cocoar-vue-ui/references/components/switch.md +2 -0
  140. package/skills/cocoar-vue-ui/references/components/table.md +2 -0
  141. package/skills/cocoar-vue-ui/references/components/tabs.md +2 -0
  142. package/skills/cocoar-vue-ui/references/components/tag.md +2 -0
  143. package/skills/cocoar-vue-ui/references/components/text-input.md +2 -0
  144. package/skills/cocoar-vue-ui/references/components/toast.md +2 -0
  145. package/skills/cocoar-vue-ui/references/components/tooltip.md +2 -0
  146. package/skills/cocoar-vue-ui/references/components/tree.md +2 -0
  147. package/skills/cocoar-vue-ui/references/components/wizard.md +2 -0
  148. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +2 -0
  149. package/skills/cocoar-vue-ui/references/foundations/design-principles.md +27 -3
  150. package/skills/cocoar-vue-ui/references/guide/getting-started.md +2 -2
  151. package/skills/cocoar-vue-ui/references/guide/mobile.md +326 -13
  152. package/styles/tokens/mobile.css +2 -0
  153. package/styles/tokens/new-components.css +9 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cocoar/vue-ui",
3
- "version": "3.4.0-beta.1",
4
- "description": "Cocoar Design System — a touch-first Vue 3 component library with 30+ accessible, themeable components",
3
+ "version": "3.4.0-beta.21",
4
+ "description": "Cocoar Design System — a tablet-first Vue 3 component library with 30+ accessible, themeable components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "skills"
49
49
  ],
50
50
  "dependencies": {
51
- "@cocoar/vue-localization": "3.4.0-beta.1",
51
+ "@cocoar/vue-localization": "3.4.0-beta.21",
52
52
  "@fontsource/cascadia-code": "^5.2.3",
53
53
  "@fontsource/inter": "^5.2.8",
54
54
  "@fontsource/poppins": "^5.2.7",
@@ -73,7 +73,7 @@
73
73
  "vue": "^3.5.32",
74
74
  "vue-router": "^5.0.4"
75
75
  },
76
- "gitHead": "89e56e0d86a9b3e292e2119fde37e6bdfd99bcc6",
76
+ "gitHead": "3f114d944fde7ea77c523571be01443be5ee19da",
77
77
  "scripts": {
78
78
  "build": "vite build",
79
79
  "test": "vitest run",
@@ -15,7 +15,7 @@ metadata:
15
15
 
16
16
  # Cocoar UI Vue
17
17
 
18
- A touch-first Vue 3 component library for the Cocoar Design System: 30+ accessible, themeable,
18
+ A tablet-first Vue 3 component library for the Cocoar Design System: 30+ accessible, themeable,
19
19
  tree-shakeable components in `@cocoar/vue-ui`, plus companion packages for localization, data
20
20
  grid, calendar, markdown, page builder, document viewer, map, file explorer and script editor.
21
21
  This skill is the documentation, page by page, under `references/`, with every live demo inlined
@@ -65,8 +65,12 @@ Every companion package has `@cocoar/vue-ui` as a peer dependency and pins the s
65
65
  `--coar-error`, `--coar-warning`, `--coar-info` on `:root`; every shade scale for light and
66
66
  dark mode is derived with oklch. Style with `--coar-*` tokens; do not hard-code hex values or
67
67
  override generated shades.
68
- - **Touch-first, tablet-first.** Interactive elements are at least 44 × 44 px and work with touch
69
- and focus; hover is an enhancement only. No hover-only interactions, no phone-first layouts.
68
+ - **Tablet-first, phones by opt-in.** Components are designed for touch and focus, with hover
69
+ as an enhancement; the device line of a component names where that is not met yet. The default sizes follow the token scale (`xs` 27 px, `s` 32 px, `m` 40 px,
70
+ `l` 48 px), not 44 × 44 px. The `coar-mobile` class on `html`, `body` or a parent raises the
71
+ adapted controls to at least 44 px; it changes sizes only, never behaviour, and nothing switches
72
+ by viewport width. Before building for phones, read the mobile guide (`references/guide/mobile.md`)
73
+ and the device line under each component's title (table in its "Device support" section).
70
74
  - **Props, not slots, where the docs say so.** `CoarCheckbox` takes its text via the `label` prop,
71
75
  `CoarBadge` via `content`. `CoarTag` uses `closable` and `@closed`; `CoarPopconfirm` uses
72
76
  `message` with `@confirmed` / `@cancelled`. `CoarFormField` wraps a control and supplies label,
@@ -90,13 +94,13 @@ of each other.
90
94
  - [Getting Started](references/guide/getting-started.md) — Set up @cocoar/vue-ui in a Vue 3 project: install, import fonts and styles, use components, toggle dark mode, and register the overlay plugin.
91
95
  - [Error Handling](references/guide/error-handling.md) — Error handling patterns in Cocoar UI: graceful fallbacks, overlay Promise rejections, error toasts, and handling failures in application code.
92
96
  - [Theming](references/guide/theming.md) — Theme Cocoar with CSS custom properties: set five oklch base colors and all shade scales for light and dark mode recalculate automatically.
93
- - [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into mobile presentation with a coar-mobile parent: touch-sized buttons, text/password/number inputs, checkboxes, radios and switches without changing component APIs.
97
+ - [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into the mobile presentation with a coar-mobile parent: touch-sized controls, what decides sizes, layout and input behaviour, how it combines with brand themes, and which device classes each component supports.
94
98
  - [Migrating to 2.11](references/guide/migration.md) — Migration guide for Cocoar UI 2.11: date/time pickers move onto CoarFormField, the clear button becomes opt-in, and two CSS tokens are renamed.
95
99
  - [Migrating Page Builder to 3.0](references/guide/migration-page-builder-3.md) — Migration guide for @cocoar/vue-page-builder 3.0: four PageConfig concepts removed, several names disambiguated, and documents migrated to schemaVersion 6.
96
100
 
97
101
  ### Foundations
98
102
 
99
- - [Design Principles](references/foundations/design-principles.md) — The six Cocoar Design System principles — clarity, consistency, accessibility, touch-first, performance, developer experience — plus the design token architecture and do's and don'ts.
103
+ - [Design Principles](references/foundations/design-principles.md) — The six Cocoar Design System principles — clarity, consistency, accessibility, touch-first, performance, developer experience — plus the stability promise for web apps, the design token architecture and do's and don'ts.
100
104
  - [Colors](references/foundations/colors.md) — Cocoar's two-layer color system: primitive palettes and semantic tokens that adapt to light and dark mode, with naming convention and full token reference.
101
105
  - [Typography](references/foundations/typography.md) — The Cocoar type scale: eleven utility classes from display to footnote using Inter and Poppins, with sizes, weights, and usage examples.
102
106
  - [Spacing & Effects](references/foundations/spacing.md) — Spacing and effects tokens: the 4 px spacing scale, border radius, stroke widths, and six shadow elevation levels with reference tables.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Avatar
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Use avatars to give users and entities a recognizable visual identity throughout your application. They display a profile image when available and gracefully fall back to generated initials, so every user always has a face -- even before they upload a photo.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Badge
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Badges draw attention to counts, statuses, or short labels. Attach them to icons, avatars, or buttons to surface information that needs a quick glance -- like unread messages, plan tiers, or live/offline indicators.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Breadcrumb
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Crumbs wrap to fit narrow screens, but their link targets are not enlarged under .coar-mobile.
6
+
5
7
  Show users exactly where they are within a page hierarchy and give them a quick path back to any parent level. Breadcrumbs are especially valuable in applications with deep navigation structures, where the sidebar alone does not make the current location obvious.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Button
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  Buttons trigger actions and communicate what will happen when pressed.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarAgendaView>` — Agenda View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Taps and scrolling work on touch; a phone presentation of the calendar is planned.
6
+
5
7
  Virtualized chronological list grouped by day. Multi-day events appear on every day they touch (with a `(cont.)` tag from day 2 onwards). The current-day header floats at the top of the surface and is pushed up by the next inline header — same UX as native CSS sticky, but works correctly on top of an absolutely-positioned virtualized surface.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarCalendar>` — Composer (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  `<CoarCalendar>` is the top-level shell that wires the complete calendar hierarchy together with prev / today / next navigation and responsive display controls. It's driven by the **builder** returned from `useCalendar()` — a single chainable surface that owns events, recurrence, configuration, handlers, renderers, and an imperative `api` object.
6
8
 
7
9
  The builder is **flat**: every setter lives directly on it, including view-specific ones (`timeRange`, `slotDuration` for Day / Week; `maxEventsPerCell` for Month; `agendaLengthDays` / `showEmptyDays` for Agenda). View-specific settings are no-ops outside their target view, so a single chained `.timeRange(...).maxEventsPerCell(...)` is fine — each one only takes effect when the matching view is active.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarDayView>` — Day View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  Time-grid surface with two display choices: **One day** renders one fixed column, while **Multi-day** derives 1–7 complete columns from the available container width. Multi-day all-day events that touch the visible range appear in the all-day band pinned under the day headers. Use it standalone via [`useDayView()`](#usedayview) when you need the surface without the [`<CoarCalendar>`](./coar-calendar.md) shell.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Calendar (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  A Vue 3 calendar whose visible hierarchy follows the iOS calendar: **Year**, **Month**, **Day** and **Agenda**, plus fixed **Week** and **Work week** time grids for web applications. Month and Day expose their display choices as nested variations instead of flattening every renderer into the primary view switcher.
6
8
 
7
9
  Events on the public surface use **`Temporal`** values directly (`PlainDate` for all-day, `ZonedDateTime` for timed) — there's no string parsing or implicit-zone guessing. Consumers convert their wire format (ISO strings, epoch ms, etc.) at the boundary; the calendar receives unambiguous values and runs all date math on them across DST boundaries.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Month Views (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps work on touch; multi-day bar resize handles are only 6 px and a touch on a pill always drags it.
6
+
5
7
  The shell's Month view follows the iOS structure: months scroll continuously and expose **Compact**, **Stacked**, **Details**, and **List** display choices. Continuous sections render only the 4–6 weeks the month actually needs; leading and trailing positions stay blank instead of repeating neighbour dates.
6
8
 
7
9
  | Choice | Rendering |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Selecting time, drafts & bands (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Long press selects on touch; the hover time indicator appears only for mouse and pen.
6
+
5
7
  > **Warning: Preview — new in 3.2**
6
8
  >
7
9
  > Everything on this page is new in 3.2 and still a Preview: the API may change before it loses this mark. It already runs in production apps; feedback is welcome.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarTimelineView>` — Timeline View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Finger panning works like mouse panning; a phone presentation of the calendar is planned.
6
+
5
7
  Gantt-lite layout: **one row per logical event**, horizontal time-axis. The left pane lists event titles; the right pane renders bars positioned by `[start, end)` against the visible window. Same `CalendarEvent` data as Day / Week / Month / Agenda — just rendered as a project-plan timeline instead of a calendar grid.
6
8
 
7
9
  **Recurring series collapse to one row.** All occurrences of a recurring series (those with `meta.__recurrence.seriesId`) share a single row with one bar per occurrence — a weekly stand-up with 26 instances in the visible window renders as ONE row labelled "Standup ×26", not 26 separate rows. Standalone events (no recurrence metadata) keep one row per event. The grouping is automatic; consumer code doesn't need to do anything.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarWeekView>` — Week View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  7-day time-grid view — one hour-axis on the left, seven day columns on the right, all-day band pinned under the day-of-week header. The week's first day is locale-aware (`en-US` / `ja-JP` start on Sunday, `de-AT` / `fr-FR` start on Monday) but can be overridden via `firstDayOfWeek()`.
6
8
 
7
9
  ```html
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarWorkWeekView>` — Work Week View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Taps, swipe paging and long-press selection work on touch; event resize handles are only 6 px tall.
6
+
5
7
  The week view with weekend columns filtered out. Configurable working-day set via `builder.workDays(...)` — defaults to Mon–Fri but adapts to 6-day operations (Mon–Sat), 4-day weeks (Mon–Thu), Sun–Thu Middle-East work weeks, or any other DayOfWeek subset.
6
8
 
7
9
  Mechanically the work-week view is a preset of the one time-grid model shared with [`<CoarDayView>`](./day-view.md#one-model-for-every-time-grid) and [`<CoarWeekView>`](./week-view.md): anchor `weekStart`, span 7, filter `workDays`, step 7. Same time-grid, same DnD pipeline, same slot rendering, same all-day band, same touch paging. The visible-range `ViewWindow` stays the full Mon–Sun span — only the columns rendered differ. Loaders see weekend events the same way they do for the full week.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # `<CoarYearView>` — Year View (Preview)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone planned — Tap to drill in works on touch; a phone presentation of the calendar is planned.
6
+
5
7
  Responsive twelve-month overview. The grid automatically chooses how many month cards fit across the available width, uses the configured locale / first weekday, and marks today. Selecting a month title or a day updates the builder cursor and drills into Month.
6
8
 
7
9
  The Year view intentionally shows date structure rather than event density. It does not render event pills or occurrence markers. Loader and range-change consumers still receive the ordinary year `ViewWindow`, so applications can decide whether to return data for that surface.
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Card
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Cards group related content into a visually distinct container, making it easy for users to scan and interact with discrete chunks of information. Use them for dashboards, content feeds, settings panels, or anywhere you need clear visual boundaries.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox Group
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  `CoarCheckboxGroup` turns multiple keyed checkboxes into one field value. Each child keeps its own visible label and DOM id; the group owns selection state, layout, shared form name, disabled/error state, and accessibility semantics.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Mobile sizes under .coar-mobile; the mobile presentation is still Preview.
6
+
5
7
  Checkboxes let users pick one or more options from a list, or flip a single boolean on or off. Reach for a checkbox when the choice does not take effect until the user explicitly submits -- for instant toggles, consider a [Switch](./switch.md) instead.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Code Block
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Readable and scrollable on phones; the copy and collapse buttons have no .coar-mobile presentation yet.
6
+
5
7
  Display source code with syntax highlighting, a one-click copy button, and optional collapsing. Use it in documentation, onboarding flows, or anywhere users need to read or copy code snippets.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Context Menu
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Opens on right-click; on touch that depends on the browser's long press, so offer your own trigger as well.
6
+
5
7
  Open a menu at the pointer position on right-click. The `useContextMenu` composable manages open/close state and cursor coordinates, while `CoarContextMenu` renders the menu as a floating overlay with automatic viewport clamping.
6
8
 
7
9
  ```ts
@@ -335,6 +337,7 @@ Returns a `ContextMenuContext` object:
335
337
  |------------|-------------------------------|------------------------------------------------|
336
338
  | `isOpen` | `Readonly<Ref<boolean>>` | Whether the menu is currently visible |
337
339
  | `position` | `Readonly<Ref<{x, y}>>` | Cursor position where the menu was opened |
340
+ | `target` (Preview) | `Readonly<Ref<Element \| null>>` | Element that was right-clicked (`null` when `open()` got no element target). `CoarContextMenu` passes it as the overlay's context, so a menu opened in a local `coar-mobile` area keeps the [mobile presentation](../guide/mobile.md#overlays). Optional in the `ContextMenuContext` type |
338
341
  | `open` | `(event: MouseEvent) => void` | Open at the event's cursor position |
339
342
  | `close` | `() => void` | Close the menu |
340
343
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Checkbox Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.checkbox(field, configurator?)` renders a `<CoarCheckbox>` in each cell — same visual language as forms, just sized to fit the row. The renderer is **always read-only**; interactivity comes from edit-mode, exactly like text/number/select columns.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Columns (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  Three Temporal-typed column shortcuts for date / date-time / zoned-date-time cells. All three follow the same pattern: a renderer that formats locale-aware via `toLocaleString`, an editor that wraps the matching `<CoarPlainDatePicker>` / `<CoarPlainDateTimePicker>` / `<CoarZonedDateTimePicker>` component.
6
8
 
7
9
  | | Cell value | Renderer format | Editor |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Editing
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  In-cell editing is exposed through three builder methods that map directly onto AG Grid's editor lifecycle:
6
8
 
7
9
  | Method | Level | Purpose |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Multi-Select & Tag-Select Columns (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  Two column shortcuts for multi-value cells. Both store the cell value as `T[]` and share the same renderer — they differ only in the editor surface and which configurator options are available.
6
8
 
7
9
  | | Editor | When to use |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Number Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.number(field, …)` is locale-aware in both display and editing. Two forms — pick by need:
6
8
 
7
9
  | Form | Effect |
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Select Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.select(field, configurator)` declares a select column whose renderer shows the **label** of the matched option and whose editor is `<CoarSelect>` — same visual language as forms, with the dropdown teleported to `<body>` so it can overflow the cell freely.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Text Column
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  `col.text(field, configurator?)` declares a text column whose editor is `<CoarTextInput>` — same visual language as forms, fitted into the cell.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Data Grid
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone not supported — Touch scrolls and selects; editing starts with double-click and menus with right-click; not built for phones.
6
+
5
7
  A powerful data grid built on AG Grid with Cocoar theming. Configure columns, sorting, selection, and cell renderers through a fluent builder API — no raw AG Grid config needed.
6
8
 
7
9
  > **Info: Separate Package**
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Data List
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone planned — Item menus open on right-click and multi-select needs modifier keys, so both are hard to reach by touch.
6
+
5
7
  A list of records where **you own the row layout**. Where [`CoarDataGrid`](./data-grid.md) squeezes every field into a column, `CoarDataList` gives each record a free-form, multi-line template — the right tool when a notebook screen would otherwise show a dozen tiny columns and a horizontal scrollbar. It brings the parts a hand-rolled list keeps reinventing: virtual scrolling with measured row heights, search, a sort menu, keyboard and pointer selection, grouping, and an empty state.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date · optional time
4
4
 
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
+
5
7
  Sometimes a field is "a date, and *maybe* a time" — a due date that's usually
6
8
  just a day but occasionally needs an hour, a reminder that can be all-day or
7
9
  timed. Instead of a separate checkbox, these pickers put a small **clock toggle
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Picker
4
4
 
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
+
5
7
  A calendar-backed date picker that returns a `Temporal.PlainDate` -- a date without time or timezone. Perfect for birthdays, deadlines, due dates, and any scenario where "which day" is all that matters.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # DateTime Picker
4
4
 
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
+
5
7
  Combines a calendar date picker with a time input and returns a `Temporal.PlainDateTime` -- a date and time without any timezone attached. Use this when the timezone is implicit (the user's local time) or irrelevant (an alarm, a reminder). If you need timezone awareness, reach for the [Zoned DateTime Picker](./zoned-date-time-picker.md) instead.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Date Views (New in 2.0)
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  The read-only display siblings of the picker family. When you have a `Temporal.PlainDate` / `Temporal.PlainDateTime` / `Temporal.ZonedDateTime` value and just want to show it (no editor, no panel) — use these.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Dialog
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone partial — Phone: use the bottom sheet (Preview); native keyboard and iOS gestures need checks. Android's back button does not close it.
6
+
5
7
  Modal dialogs demand attention. They block interaction with the rest of the page until the user makes a decision, making them the right choice for destructive actions, important confirmations, and messages that must be acknowledged before proceeding. Use them sparingly -- when the stakes are high enough to justify interrupting the user's flow.
6
8
 
7
9
  ```ts
@@ -93,6 +95,136 @@ function openAlert() {
93
95
  </script>
94
96
  ```
95
97
 
98
+ ## Bottom sheet (Preview) {#sheet}
99
+
100
+ With `presentation: 'sheet'` a dialog opens as a sheet docked to the bottom of the screen,
101
+ closer to the thumb on a phone. It works for `open`, `confirm` and `alert`:
102
+
103
+ ```ts
104
+ dialog.open(EditContact, { title: 'Contact', presentation: 'sheet' });
105
+ dialog.confirm({ title: 'Delete the entry?', message: '…', confirmVariant: 'danger', presentation: 'sheet' });
106
+ dialog.alert('Saved', '…', { presentation: 'sheet' });
107
+ ```
108
+
109
+ **Demo — `dialog/demos/SheetDialog.vue`**
110
+
111
+ ```vue
112
+ <template>
113
+ <div style="display: flex; flex-wrap: wrap; gap: 8px; align-items: center;">
114
+ <CoarButton variant="danger" icon-start="trash-2" @click="confirmDelete">Delete as sheet</CoarButton>
115
+ <CoarButton variant="secondary" @click="editContact">Edit contact as sheet</CoarButton>
116
+ </div>
117
+ <p style="margin-top: 8px; font-size: 13px; color: var(--coar-text-neutral-secondary);">
118
+ Last result: {{ lastResult || 'none' }}
119
+ </p>
120
+ </template>
121
+
122
+ <script setup lang="ts">
123
+ import { defineComponent, h, ref } from 'vue';
124
+ import { CoarButton, CoarDialogFooter, CoarFormField, CoarTextInput, useDialog } from '@cocoar/vue-ui';
125
+
126
+ const dialog = useDialog();
127
+ const lastResult = ref('');
128
+
129
+ function confirmDelete() {
130
+ dialog.confirm({
131
+ title: 'Delete item?',
132
+ message: 'This action cannot be undone.',
133
+ confirmText: 'Delete',
134
+ cancelText: 'Keep',
135
+ confirmVariant: 'danger',
136
+ presentation: 'sheet',
137
+ }).result.then((confirmed) => {
138
+ lastResult.value = confirmed ? 'deleted' : 'kept';
139
+ });
140
+ }
141
+
142
+ // The body of the form sheet. In an app this is usually an SFC of its own; its buttons go into
143
+ // <CoarDialogFooter> so they stay in the sheet's fixed footer while the fields scroll.
144
+ const ContactForm = defineComponent({
145
+ props: { close: { type: Function, required: true } },
146
+ setup(props) {
147
+ const name = ref('Anna Berger');
148
+ const email = ref('anna@example.com');
149
+ const phone = ref('+43 1 234 567');
150
+ const field = (label: string, model: typeof name) =>
151
+ h(CoarFormField, { label }, () =>
152
+ h(CoarTextInput, { modelValue: model.value, 'onUpdate:modelValue': (v: string) => (model.value = v) }),
153
+ );
154
+ return () =>
155
+ h('div', { style: 'display: grid; gap: 16px;' }, [
156
+ field('Name', name),
157
+ field('E-mail', email),
158
+ field('Phone', phone),
159
+ h(CoarDialogFooter, null, () => [
160
+ h(CoarButton, { variant: 'secondary', onClick: () => props.close() }, () => 'Cancel'),
161
+ h(CoarButton, { onClick: () => props.close(name.value) }, () => 'Save'),
162
+ ]),
163
+ ]);
164
+ },
165
+ });
166
+
167
+ function editContact() {
168
+ dialog.open<string>(ContactForm, { title: 'Edit contact', presentation: 'sheet' }).result.then((saved) => {
169
+ lastResult.value = saved ? `saved ${saved}` : 'cancelled';
170
+ });
171
+ }
172
+ </script>
173
+ ```
174
+
175
+ In phone size, with a form longer than the screen:
176
+
177
+ Live demo in phone size: [Dialogs as bottom sheets](https://docs.cocoar.dev/cocoar-ui-vue/mobile/#/sheet)
178
+
179
+ The presentation is chosen per call and never derived from `coar-mobile` or the window
180
+ width: without `presentation` a dialog stays the centered dialog. Under `coar-mobile` the
181
+ sheet's buttons and fields get the mobile sizes, like any other overlay.
182
+
183
+ What the sheet does:
184
+
185
+ - **Layout**: full width, rounded top corners, as high as its content and at most the visible
186
+ height minus the top safe-area inset (`env(safe-area-inset-top)`) and a 24 px gap, keeping
187
+ the handle and close button below the system bar. From a 640 px wide window on it keeps
188
+ the width of its `size`, centered. A drag handle and the header (title, close button) on top;
189
+ the content scrolls inside; the footer stays put.
190
+ - **Buttons**: the footer buttons span the full width, stacked with the confirming one on top,
191
+ clear of the home indicator (`env(safe-area-inset-bottom)`).
192
+ - **On-screen keyboard**: the sheet follows `window.visualViewport`. It sits above the keyboard,
193
+ shrinks with it, and the focused field is scrolled into the visible part.
194
+ - **Page behind**: does not scroll while a sheet is open. The centered dialog does not lock the
195
+ page.
196
+ - **Closing**: the close button, a tap on the backdrop, Escape, and dragging down — the same
197
+ switches as the dialog (`closeOnBackdropClick`, `closeOnEscape`, `showCloseButton`) plus
198
+ `dragToClose`.
199
+ - **Drag**: only at the handle and the header, with finger, pen or mouse. Released after more
200
+ than 30 % of its height or with a flick down, it closes; otherwise it springs back. Dragging
201
+ the content scrolls it and never closes the sheet.
202
+ - **Focus**: trapped inside and returned on close, `role="dialog"` with `aria-modal`, as in the
203
+ dialog. It slides in from below, without animation under `prefers-reduced-motion`.
204
+
205
+ ### `CoarDialogFooter` (Preview)
206
+
207
+ The buttons of a body component opened with `dialog.open()` go into `<CoarDialogFooter>`. It
208
+ moves them into the fixed footer of the dialog or sheet, so they stay visible while the content
209
+ scrolls; in a sheet they get the full width and the safe-area spacing of the confirm buttons.
210
+ Put the confirming button last. Outside a dialog or sheet it renders its content in place.
211
+
212
+ ```vue
213
+ <script setup lang="ts">
214
+ import { CoarButton, CoarDialogFooter } from '@cocoar/vue-ui';
215
+
216
+ const props = defineProps<{ close: (result?: string) => void }>();
217
+ </script>
218
+
219
+ <template>
220
+ <!-- fields … -->
221
+ <CoarDialogFooter>
222
+ <CoarButton variant="secondary" @click="props.close()">Cancel</CoarButton>
223
+ <CoarButton @click="props.close('saved')">Save</CoarButton>
224
+ </CoarDialogFooter>
225
+ </template>
226
+ ```
227
+
96
228
  ## Setup
97
229
 
98
230
  Register the overlay plugin once in your app entry point:
@@ -117,9 +249,22 @@ createApp(App)
117
249
  | Method | Parameters | Returns | Description |
118
250
  |--------|-----------|---------|-------------|
119
251
  | `dialog.confirm(options)` | `ConfirmOptions` | `DialogRef<boolean>` | Show a confirm/cancel dialog |
120
- | `dialog.alert(title, message)` | `string, string` | `DialogRef<void>` | Show an acknowledgement dialog |
252
+ | `dialog.alert(title, message, config?)` | `string, string, { context?: Element, presentation?: DialogPresentation }?` | `DialogRef<void>` | Show an acknowledgement dialog. `config.context` and `config.presentation` (Preview): see [context](#context), [Bottom sheet](#sheet) |
121
253
  | `dialog.open(component, config?, props?)` | `Component, DialogConfig?, Record?` | `DialogRef<T>` | Open a custom component inside the dialog |
122
254
 
255
+ ### `DialogConfig`
256
+
257
+ | Option | Type | Default | Description |
258
+ |--------|------|---------|-------------|
259
+ | `title` | `string` | `''` | Dialog title |
260
+ | `size` | `'s' \| 'm' \| 'l' \| 'xl'` | `'m'` | Dialog width |
261
+ | `closeOnBackdropClick` | `boolean` | `true` | Close when the backdrop is clicked |
262
+ | `closeOnEscape` | `boolean` | `true` | Close on Escape |
263
+ | `showCloseButton` | `boolean` | `true` | Show the close (×) button |
264
+ | `context` (Preview) | `Element` | the calling component | Element the dialog belongs to, see [context](#context) |
265
+ | `presentation` (Preview) | `'dialog' \| 'sheet'` | `'dialog'` | Centered dialog or [bottom sheet](#sheet). With `'sheet'`, `size` only caps the width from a 640 px window on |
266
+ | `dragToClose` (Preview) | `boolean` | `closeOnBackdropClick` | Sheet only: whether dragging it down closes it |
267
+
123
268
  ### `ConfirmOptions`
124
269
 
125
270
  | Option | Type | Default | Description |
@@ -130,6 +275,8 @@ createApp(App)
130
275
  | `cancelText` | `string` | `'Cancel'` | Cancel button label |
131
276
  | `confirmVariant` | `'primary' \| 'danger'` | `'primary'` | Confirm button color variant |
132
277
  | `size` | `'s' \| 'm' \| 'l'` | `'s'` | Dialog width |
278
+ | `context` (Preview) | `Element` | the calling component | Element the dialog belongs to, see [context](#context) |
279
+ | `presentation` (Preview) | `'dialog' \| 'sheet'` | `'dialog'` | Centered dialog or [bottom sheet](#sheet); a confirm sheet can always be dragged away |
133
280
 
134
281
  ### `DialogRef`
135
282
 
@@ -138,6 +285,20 @@ createApp(App)
138
285
  | `result` | `Promise<T \| undefined>` | Resolves when the dialog closes |
139
286
  | `close(result?)` | `(val?: T) => void` | Programmatically close the dialog |
140
287
 
288
+ ### `context` (Preview) {#context}
289
+
290
+ A dialog opened from a local `coar-mobile` area keeps the mobile presentation
291
+ of that area (see [Overlays from a local area](../guide/mobile.md#overlays)). Called
292
+ in a component's `setup()`, `useDialog()` uses that component's element as the
293
+ context. Outside `setup()` (stores, plain functions) pass it yourself:
294
+
295
+ ```ts
296
+ useDialog().open(Body, { title: 'Edit', context: someEl });
297
+ ```
298
+
299
+ An explicit `context` always wins. A local `CoarThemeScope` is not taken over
300
+ through `context`.
301
+
141
302
  ## i18n Keys
142
303
 
143
304
  These keys can be translated via [`@cocoar/vue-localization`](../foundations/localization/translations.md).
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Divider
4
4
 
5
+ **Devices:** desktop ready · tablet ready · phone ready
6
+
5
7
  Dividers create clear visual breaks between sections of content. They're especially useful in forms, settings panels, and feeds where distinct groups of information sit close together. Add an optional text label to give the break semantic meaning.
6
8
 
7
9
  ```ts
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Annotations
4
4
 
5
+ **Devices:** desktop ready · tablet partial · phone partial — Drawing works with touch; marker and ink width and color open only on hover; not adapted to phones.
6
+
5
7
  `CoarDocumentViewer` ships with a built-in annotation layer that supports four types — **marker** highlights, comment **notes**, free-hand **ink**, and **freetext** boxes. Annotations are **controlled**: the consumer owns the data, the viewer emits events, the consumer applies changes.
6
8
 
7
9
  ```ts