@cocoar/vue-ui 3.4.0-beta.33 → 3.4.0-beta.34

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 (44) hide show
  1. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +13 -6
  2. package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
  3. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts +4 -0
  4. package/dist/components/date-time/plain-date-time-or-date-picker/CoarPlainDateTimeOrDatePicker.vue.d.ts.map +1 -1
  5. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +13 -6
  6. package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
  7. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts +4 -0
  8. package/dist/components/date-time/zoned-date-time-or-date-picker/CoarZonedDateTimeOrDatePicker.vue.d.ts.map +1 -1
  9. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +13 -6
  10. package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
  11. package/dist/components/input-frame/CoarInputFrame.vue.d.ts +7 -6
  12. package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
  13. package/dist/components/input-frame/types.d.ts +9 -0
  14. package/dist/components/input-frame/types.d.ts.map +1 -0
  15. package/dist/components/number-input/CoarNumberInput.vue.d.ts +7 -0
  16. package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
  17. package/dist/components/password-input/CoarPasswordInput.vue.d.ts +4 -0
  18. package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
  19. package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
  20. package/dist/components/select/CoarSelect.vue.d.ts +4 -1
  21. package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
  22. package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -1
  23. package/dist/components/select/useSelectBase.d.ts +2 -1
  24. package/dist/components/select/useSelectBase.d.ts.map +1 -1
  25. package/dist/components/text-input/CoarTextInput.vue.d.ts +7 -0
  26. package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
  27. package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
  28. package/dist/index.css +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1149 -1046
  32. package/dist/theme/enterprise-theme.d.ts.map +1 -1
  33. package/dist/theme/role-input-defaults.d.ts.map +1 -1
  34. package/package.json +3 -3
  35. package/skills/cocoar-vue-ui/references/components/date-or-time-picker.md +29 -0
  36. package/skills/cocoar-vue-ui/references/components/date-picker.md +31 -0
  37. package/skills/cocoar-vue-ui/references/components/date-time-picker.md +27 -0
  38. package/skills/cocoar-vue-ui/references/components/number-input.md +30 -0
  39. package/skills/cocoar-vue-ui/references/components/password-input.md +32 -0
  40. package/skills/cocoar-vue-ui/references/components/select.md +43 -1
  41. package/skills/cocoar-vue-ui/references/components/text-input.md +136 -0
  42. package/skills/cocoar-vue-ui/references/components/zoned-date-time-picker.md +41 -0
  43. package/styles/tokens/colors-usage.css +6 -0
  44. package/styles/tokens/compact.css +12 -0
@@ -1 +1 @@
1
- {"version":3,"file":"enterprise-theme.d.ts","sourceRoot":"","sources":["../../src/theme/enterprise-theme.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAyL9B,CAAC"}
1
+ {"version":3,"file":"enterprise-theme.d.ts","sourceRoot":"","sources":["../../src/theme/enterprise-theme.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aA2L9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"role-input-defaults.d.ts","sourceRoot":"","sources":["../../src/theme/role-input-defaults.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkEtD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWvD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2NjF,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyNrD,CAAC"}
1
+ {"version":3,"file":"role-input-defaults.d.ts","sourceRoot":"","sources":["../../src/theme/role-input-defaults.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkEtD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWvD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA6NjF,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2NrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocoar/vue-ui",
3
- "version": "3.4.0-beta.33",
3
+ "version": "3.4.0-beta.34",
4
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": {
@@ -58,7 +58,7 @@
58
58
  "skills"
59
59
  ],
60
60
  "dependencies": {
61
- "@cocoar/vue-localization": "3.4.0-beta.33",
61
+ "@cocoar/vue-localization": "3.4.0-beta.34",
62
62
  "@fontsource/cascadia-code": "^5.2.3",
63
63
  "@fontsource/inter": "^5.2.8",
64
64
  "@fontsource/onest": "^5.3.1",
@@ -84,7 +84,7 @@
84
84
  "vue": "^3.5.32",
85
85
  "vue-router": "^5.0.4"
86
86
  },
87
- "gitHead": "7dec32f96be79ddc2d4008529e1ceec65cde7d5f",
87
+ "gitHead": "b59b1d471b7f45407a237493a49b19983f836463",
88
88
  "scripts": {
89
89
  "build": "vite build",
90
90
  "test": "vitest run",
@@ -151,6 +151,34 @@ gives a round toggle), and the gap uses `--coar-spacing-xs`. Nothing to register
151
151
  in the theme editor — tuning the existing input / button / spacing / accent
152
152
  tokens restyles these too.
153
153
 
154
+ ## Inline (Preview) {#inline}
155
+
156
+ `appearance="inline"` is passed to the date or date-time field, which then shows only its value until it is
157
+ hovered, edited or its panel is open ([Text Input](./text-input.md#inline) describes the fills). The clock
158
+ toggle is a ghost button already and stays as it is.
159
+
160
+ **Demo — `date-or-time-picker/demos/OptionalTimeInline.vue`**
161
+
162
+ ```vue
163
+ <template>
164
+ <div style="display: grid; gap: 4px; max-width: 480px;">
165
+ <div style="display: grid; grid-template-columns: 120px 1fr; align-items: center;">
166
+ <span>Due</span>
167
+ <CoarZonedDateTimeOrDatePicker v-model="due" v-model:with-time="withTime" appearance="inline" />
168
+ </div>
169
+ </div>
170
+ </template>
171
+
172
+ <script setup lang="ts">
173
+ import { ref } from 'vue';
174
+ import { Temporal } from '@js-temporal/polyfill';
175
+ import { CoarZonedDateTimeOrDatePicker } from '@cocoar/vue-ui';
176
+
177
+ const due = ref<Temporal.ZonedDateTime | Temporal.PlainDate | null>(Temporal.PlainDate.from('2026-12-01'));
178
+ const withTime = ref(false);
179
+ </script>
180
+ ```
181
+
154
182
  ## Accessibility
155
183
 
156
184
  The clock is a toggle button: it exposes `aria-pressed` for its state and a
@@ -174,6 +202,7 @@ Both components share this surface (the zoned variant adds the timezone props).
174
202
  | `v-model:withTime` | `boolean` | `false` | The clock toggle / mode. |
175
203
  | `placeholder` | `string` | `''` | Placeholder text. |
176
204
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Field + toggle size. |
205
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | Passed to the field: `inline` shows no border or surface until hovered or edited, see [Inline](#inline). |
177
206
  | `disabled` | `boolean` | `false` | Disable the field and toggle. |
178
207
  | `readonly` | `boolean` | `false` | Read-only (toggle disabled too). |
179
208
  | `required` | `boolean` | `false` | Mark as required. |
@@ -153,6 +153,35 @@ import { CoarPlainDatePicker, CoarFormField } from '@cocoar/vue-ui';
153
153
  >
154
154
  > **Temporal.PlainDate:** This component uses the TC39 Temporal API (`@js-temporal/polyfill`). PlainDate represents a calendar date without time or timezone -- no more wrestling with midnight UTC offsets.
155
155
 
156
+ ## Inline (Preview) {#inline}
157
+
158
+ `appearance="inline"` shows only the date until the field is hovered, edited or its calendar is open; the calendar
159
+ button stays and loses its segment background. `width="content"` fits the field to the shown date or the format
160
+ placeholder. Typing a date works as usual. How both behave and how to change the fills:
161
+ [Text Input](./text-input.md#inline).
162
+
163
+ **Demo — `date-picker/demos/DatePickerInline.vue`**
164
+
165
+ ```vue
166
+ <template>
167
+ <p style="margin: 0; line-height: 2.4;">
168
+ Valid from
169
+ <CoarPlainDatePicker v-model="from" appearance="inline" width="content" />
170
+ to
171
+ <CoarPlainDatePicker v-model="to" appearance="inline" width="content" />
172
+ </p>
173
+ </template>
174
+
175
+ <script setup lang="ts">
176
+ import { ref } from 'vue';
177
+ import { Temporal } from '@js-temporal/polyfill';
178
+ import { CoarPlainDatePicker } from '@cocoar/vue-ui';
179
+
180
+ const from = ref<Temporal.PlainDate | null>(Temporal.PlainDate.from('2026-12-01'));
181
+ const to = ref<Temporal.PlainDate | null>(null);
182
+ </script>
183
+ ```
184
+
156
185
  ## Accessibility
157
186
 
158
187
  ### Keyboard Navigation
@@ -182,6 +211,8 @@ import { CoarPlainDatePicker, CoarFormField } from '@cocoar/vue-ui';
182
211
  | `min` | `Temporal.PlainDate` | `undefined` | Minimum selectable date |
183
212
  | `max` | `Temporal.PlainDate` | `undefined` | Maximum selectable date |
184
213
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
214
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
215
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the shown value or placeholder |
185
216
  | `disabled` | `boolean` | `false` | Disable the picker |
186
217
  | `readonly` | `boolean` | `false` | Make read-only |
187
218
  | `required` | `boolean` | `false` | Mark as required |
@@ -100,6 +100,31 @@ import { CoarPlainDateTimePicker, CoarFormField } from '@cocoar/vue-ui';
100
100
  >
101
101
  > **PlainDateTime vs ZonedDateTime:** Choose `PlainDateTime` when the timezone is always the user's local time or when it simply does not matter (alarm clocks, recurring events). Choose `ZonedDateTime` when you need to pin a specific instant in time and derive UTC for storage or sharing across timezones.
102
102
 
103
+ ## Inline (Preview) {#inline}
104
+
105
+ `appearance` and `width` work as on the [Date Picker](./date-picker.md#inline): only the date and time show
106
+ until the field is hovered, edited or its panel is open, and `width="content"` fits the field to them.
107
+
108
+ **Demo — `date-time-picker/demos/DateTimePickerInline.vue`**
109
+
110
+ ```vue
111
+ <template>
112
+ <p style="margin: 0; line-height: 2.4;">
113
+ Reminder on
114
+ <CoarPlainDateTimePicker v-model="at" appearance="inline" width="content" />
115
+ for the whole team.
116
+ </p>
117
+ </template>
118
+
119
+ <script setup lang="ts">
120
+ import { ref } from 'vue';
121
+ import { Temporal } from '@js-temporal/polyfill';
122
+ import { CoarPlainDateTimePicker } from '@cocoar/vue-ui';
123
+
124
+ const at = ref<Temporal.PlainDateTime | null>(Temporal.PlainDateTime.from('2026-12-01T09:30'));
125
+ </script>
126
+ ```
127
+
103
128
  ## Accessibility
104
129
 
105
130
  ### Keyboard Navigation
@@ -147,6 +172,8 @@ These keys can be translated via [`@cocoar/vue-localization`](../foundations/loc
147
172
  | `v-model` | `Temporal.PlainDateTime \| null` | `null` | Selected date+time |
148
173
  | `placeholder` | `string` | `''` | Placeholder text |
149
174
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
175
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
176
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the shown value or placeholder |
150
177
  | `disabled` | `boolean` | `false` | Disable the picker |
151
178
  | `readonly` | `boolean` | `false` | Make read-only |
152
179
  | `required` | `boolean` | `false` | Mark as required |
@@ -163,6 +163,34 @@ import { CoarNumberInput, CoarFormField } from '@cocoar/vue-ui';
163
163
  </script>
164
164
  ```
165
165
 
166
+ ## Inline (Preview) {#inline}
167
+
168
+ `appearance="inline"` shows only the value until the field is hovered or edited, and `width="content"` fits the
169
+ field to its value with its prefix, suffix and steppers. How both behave and how to change the fills:
170
+ [Text Input](./text-input.md#inline).
171
+
172
+ **Demo — `number-input/demos/NumberInputInline.vue`**
173
+
174
+ ```vue
175
+ <template>
176
+ <p style="margin: 0; line-height: 2.4;">
177
+ Order
178
+ <CoarNumberInput v-model="quantity" appearance="inline" width="content" :min="1" stepper-buttons="both" />
179
+ units at
180
+ <CoarNumberInput v-model="price" appearance="inline" width="content" :decimals="2" suffix="EUR" />
181
+ each.
182
+ </p>
183
+ </template>
184
+
185
+ <script setup lang="ts">
186
+ import { ref } from 'vue';
187
+ import { CoarNumberInput } from '@cocoar/vue-ui';
188
+
189
+ const quantity = ref<number | null>(3);
190
+ const price = ref<number | null>(49.9);
191
+ </script>
192
+ ```
193
+
166
194
  ## Accessibility
167
195
 
168
196
  ### Keyboard Navigation
@@ -211,6 +239,8 @@ These keys can be translated via [`@cocoar/vue-localization`](../foundations/loc
211
239
  | `stepperButtons` | `'none' \| 'increment' \| 'decrement' \| 'both'` | `'none'` | Stepper button mode |
212
240
  | `clearable` | `boolean` | `false` | Show clear button when input has value |
213
241
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
242
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
243
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the shown value or placeholder |
214
244
  | `disabled` | `boolean` | `false` | Disable the input |
215
245
  | `readonly` | `boolean` | `false` | Make read-only |
216
246
  | `required` | `boolean` | `false` | Mark as required |
@@ -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 |
@@ -428,6 +428,47 @@ 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
+
431
472
  ## API
432
473
 
433
474
  ### Props
@@ -443,7 +484,8 @@ import type { CoarSelectSortGroups, CoarSelectSortOptions } from '@cocoar/vue-ui
443
484
  | `disabled` | `boolean` | `false` | Disable the select |
444
485
  | `readonly` | `boolean` | `false` | Read-only state |
445
486
  | `error` | `boolean` | `false` | Error state (auto-injected from `CoarFormField`) |
446
- | `appearance` | `'outline' \| 'inline'` | `'outline'` | Visual appearance variant |
487
+ | `appearance` | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or open, see [Inline](#inline) |
488
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the selected label or placeholder (`CoarSelect` only) |
447
489
  | `compareWith` | `(a: T, b: T) => boolean` | `===` | Custom comparison function for matching values |
448
490
  | `dropdownPosition` | `'auto' \| 'top' \| 'bottom'` | `'auto'` | Dropdown position preference |
449
491
  | `sortGroups` | `'asc' \| 'desc' \| 'none' \| (a, b) => number` | `'asc'` | Sort order for groups |
@@ -206,6 +206,140 @@ const bio = ref('');
206
206
  </script>
207
207
  ```
208
208
 
209
+ ## Inline (Preview) {#inline}
210
+
211
+ `appearance="inline"` lets a field sit in a sentence or a table row without looking like a form. At rest only the
212
+ value shows; hovering fills the box lightly to show what a click activates, and while the field is edited the fill
213
+ is stronger. Size, padding, radius and font stay those of the outlined field, so the value does not move when the
214
+ field is focused. An error keeps its red border, and disabled and readonly look as usual. Only the box itself
215
+ reacts to a click: the free space next to it activates nothing.
216
+
217
+ `width="content"` makes a single-line field as wide as its value (or its placeholder when it is empty) plus its
218
+ prefix, suffix and clear button, at most the available width. A multiline field keeps the full width.
219
+
220
+ **Demo — `text-input/demos/TextInputInline.vue`**
221
+
222
+ ```vue
223
+ <template>
224
+ <div style="display: flex; flex-direction: column; gap: 16px; max-width: 480px;">
225
+ <p style="margin: 0; line-height: 2.4;">
226
+ The
227
+ <CoarTextInput v-model="product" appearance="inline" width="content" placeholder="product" />
228
+ ships from
229
+ <CoarTextInput v-model="city" appearance="inline" width="content" placeholder="city" />
230
+ · in stock
231
+ </p>
232
+ <CoarFormField label="Description">
233
+ <CoarTextInput v-model="description" appearance="inline" :rows="2" />
234
+ </CoarFormField>
235
+ </div>
236
+ </template>
237
+
238
+ <script setup lang="ts">
239
+ import { ref } from 'vue';
240
+ import { CoarTextInput, CoarFormField } from '@cocoar/vue-ui';
241
+
242
+ const product = ref('Cocoar Desk Lamp');
243
+ const city = ref('');
244
+ const description = ref('Dimmable LED lamp with a warm white setting.');
245
+ </script>
246
+ ```
247
+
248
+ The same props work on [Number Input](./number-input.md#inline), [Select](./select.md#inline),
249
+ [Date Picker](./date-picker.md#inline) and the other date pickers. Together they make a property list
250
+ that is edited where it is read:
251
+
252
+ **Demo — `text-input/demos/InlineProperties.vue`**
253
+
254
+ ```vue
255
+ <template>
256
+ <div class="inline-properties">
257
+ <div class="inline-properties__row">
258
+ <span class="inline-properties__label">Name</span>
259
+ <div><CoarTextInput v-model="name" appearance="inline" width="content" placeholder="–" /></div>
260
+ </div>
261
+ <div class="inline-properties__row">
262
+ <span class="inline-properties__label">Price</span>
263
+ <div>
264
+ <CoarNumberInput v-model="price" appearance="inline" width="content" :decimals="2" suffix="EUR" />
265
+ </div>
266
+ </div>
267
+ <div class="inline-properties__row">
268
+ <span class="inline-properties__label">Category</span>
269
+ <div>
270
+ <CoarSelect v-model="category" :options="categories" appearance="inline" width="content" searchable />
271
+ </div>
272
+ </div>
273
+ <div class="inline-properties__row">
274
+ <span class="inline-properties__label">Available from</span>
275
+ <div><CoarPlainDatePicker v-model="availableFrom" appearance="inline" width="content" /></div>
276
+ </div>
277
+ <div class="inline-properties__row">
278
+ <span class="inline-properties__label">Stock</span>
279
+ <div>
280
+ <CoarNumberInput v-model="stock" appearance="inline" width="content" :min="0" stepper-buttons="both" />
281
+ </div>
282
+ </div>
283
+ <div class="inline-properties__row">
284
+ <span class="inline-properties__label">SKU</span>
285
+ <div><CoarTextInput v-model="sku" appearance="inline" width="content" error /></div>
286
+ </div>
287
+ </div>
288
+ </template>
289
+
290
+ <script setup lang="ts">
291
+ import { ref } from 'vue';
292
+ import { Temporal } from '@js-temporal/polyfill';
293
+ import { CoarTextInput, CoarNumberInput, CoarSelect, CoarPlainDatePicker } from '@cocoar/vue-ui';
294
+
295
+ const name = ref('Cocoar Desk Lamp');
296
+ const price = ref<number | null>(49.9);
297
+ const category = ref<string | null>('lighting');
298
+ const categories = [
299
+ { value: 'lighting', label: 'Lighting' },
300
+ { value: 'furniture', label: 'Furniture' },
301
+ { value: 'office', label: 'Office supplies' },
302
+ { value: 'decoration', label: 'Decoration' },
303
+ ];
304
+ const availableFrom = ref<Temporal.PlainDate | null>(Temporal.PlainDate.from('2026-12-01'));
305
+ const stock = ref<number | null>(12);
306
+ const sku = ref('LAMP 01');
307
+ </script>
308
+
309
+ <style scoped>
310
+ .inline-properties {
311
+ display: grid;
312
+ max-width: 520px;
313
+ }
314
+ .inline-properties__row {
315
+ display: grid;
316
+ grid-template-columns: 140px 1fr;
317
+ align-items: center;
318
+ padding: 2px 8px;
319
+ border-radius: var(--coar-radius-s);
320
+ }
321
+ .inline-properties__label {
322
+ color: var(--coar-text-neutral-secondary);
323
+ }
324
+ /* A row hover in the colour the fills must stand out from. */
325
+ .inline-properties__row:hover {
326
+ background: var(--coar-background-neutral-secondary);
327
+ }
328
+ </style>
329
+ ```
330
+
331
+ The two fills are the theme roles `--coar-surface-input-inline-hover` and `--coar-surface-input-inline-active`,
332
+ which the Theme Editor lists as "Inline field, hover" and "Inline field, editing". By default they mix the text
333
+ colour into transparency, so they show on any surface, also on a hovered row and in dark mode. Where a background
334
+ needs other values, set the roles on its container:
335
+
336
+ ```css
337
+ .my-editor {
338
+ --coar-surface-input-inline-hover: rgb(0 0 0 / 8%);
339
+ --coar-surface-input-inline-active: rgb(0 0 0 / 14%);
340
+ }
341
+ ```
342
+
209
343
  ## Accessibility
210
344
 
211
345
  ### Keyboard Navigation
@@ -239,6 +373,8 @@ const bio = ref('');
239
373
  | `suffix` | `string` | `''` | Suffix text after the input |
240
374
  | `size` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Input size |
241
375
  | `rows` | `number` | `1` | Rows >= 2 enables textarea mode |
376
+ | `appearance` (Preview) | `'outline' \| 'inline'` | `'outline'` | `inline`: no border or surface until hovered or edited, see [Inline](#inline) |
377
+ | `width` (Preview) | `'fill' \| 'content'` | `'fill'` | `content`: as wide as the value or placeholder (single line only) |
242
378
  | `clearable` | `boolean` | `false` | Show clear button when input has value |
243
379
  | `error` | `boolean` | `false` | Error state (auto-injected from `CoarFormField`) |
244
380
  | `disabled` | `boolean` | `false` | Disable the input |
@@ -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 |
@@ -182,6 +182,12 @@
182
182
  /* Input borders - more visible than neutral-tertiary */
183
183
  --coar-border-input: var(--coar-color-gray-300);
184
184
  --coar-border-input-hover: var(--coar-color-gray-400);
185
+
186
+ /* Inline inputs (appearance="inline") - fills on hover and on focus / open.
187
+ Mixed from the text colour where the input is, so they show on any surface,
188
+ also on a hovered row, in light and dark. */
189
+ --coar-surface-input-inline-hover: color-mix(in srgb, currentColor 6%, transparent);
190
+ --coar-surface-input-inline-active: color-mix(in srgb, currentColor 11%, transparent);
185
191
  }
186
192
 
187
193
  /* ============================================================================
@@ -1438,6 +1438,8 @@
1438
1438
  --coar-border-input: light-dark(#8e949c, #60718a);
1439
1439
  --coar-border-input-hover: light-dark(#7d8794, #6d7e97);
1440
1440
  --coar-focus-color: light-dark(#465d7b, #b5c9e4);
1441
+ --coar-surface-input-inline-hover: color-mix(in srgb, currentColor 6%, transparent);
1442
+ --coar-surface-input-inline-active: color-mix(in srgb, currentColor 11%, transparent);
1441
1443
  }
1442
1444
 
1443
1445
  :scope :where(.coar-mobile, .coar-theme-scope, .coar-theme-none, .light-mode, .dark-mode, [data-theme]) {
@@ -1960,6 +1962,8 @@
1960
1962
  --coar-border-input: inherit;
1961
1963
  --coar-border-input-hover: inherit;
1962
1964
  --coar-focus-color: inherit;
1965
+ --coar-surface-input-inline-hover: inherit;
1966
+ --coar-surface-input-inline-active: inherit;
1963
1967
  }
1964
1968
 
1965
1969
  .coar-mobile :scope,
@@ -2886,6 +2890,8 @@
2886
2890
  --coar-theme-calendar-all-day-action-size: initial;
2887
2891
  --coar-theme-calendar-month-overflow-target-size: initial;
2888
2892
  --coar-code-block-caption-font-size: initial;
2893
+ --coar-surface-input-inline-hover: color-mix(in srgb, currentColor 6%, transparent);
2894
+ --coar-surface-input-inline-active: color-mix(in srgb, currentColor 11%, transparent);
2889
2895
  }
2890
2896
 
2891
2897
  :scope .coar-mobile {
@@ -3459,6 +3465,8 @@
3459
3465
  --coar-border-input: inherit;
3460
3466
  --coar-border-input-hover: inherit;
3461
3467
  --coar-focus-color: inherit;
3468
+ --coar-surface-input-inline-hover: inherit;
3469
+ --coar-surface-input-inline-active: inherit;
3462
3470
  }
3463
3471
 
3464
3472
  .coar-mobile :scope .coar-theme-none,
@@ -4387,6 +4395,8 @@
4387
4395
  --coar-theme-calendar-all-day-action-size: initial;
4388
4396
  --coar-theme-calendar-month-overflow-target-size: initial;
4389
4397
  --coar-code-block-caption-font-size: initial;
4398
+ --coar-surface-input-inline-hover: color-mix(in srgb, currentColor 6%, transparent);
4399
+ --coar-surface-input-inline-active: color-mix(in srgb, currentColor 11%, transparent);
4390
4400
  }
4391
4401
 
4392
4402
  :scope .light-mode:where(:not(.coar-theme-none)) {
@@ -4407,6 +4417,8 @@
4407
4417
  --coar-border-neutral-quaternary: var(--coar-color-gray-100);
4408
4418
  --coar-border-input: var(--coar-color-gray-300);
4409
4419
  --coar-border-input-hover: var(--coar-color-gray-400);
4420
+ --coar-surface-input-inline-hover: color-mix(in srgb, currentColor 6%, transparent);
4421
+ --coar-surface-input-inline-active: color-mix(in srgb, currentColor 11%, transparent);
4410
4422
  }
4411
4423
 
4412
4424
  :scope .dark-mode:where(:not(.coar-theme-none)) {