@onereach/idw-ui-components 0.3.0-beta.36.0 → 0.3.0-beta.37.0

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.
package/README.md CHANGED
@@ -54,7 +54,7 @@ const skill = {
54
54
 
55
55
  Presentational feed envelope. It owns the type chip, status, author, title thumbnail, collapsed summary, engagement row, and expand/collapse. The card body stays in the `#body` slot.
56
56
 
57
- List and fullscreen views use the same light/dark token pairs as the Cockpit feed frame: `primary` / `on-primary` for the type chip, `outline` for meta text, `surface-1` for the summary panel, `surface-2` for the settled shell, and `primary-opacity-8` for the attention shell. Typography is `typography-caption-regular`, `typography-headline-3` (list title), `typography-headline-1` (fullscreen title), `typography-body-2-regular`, and `typography-body-2-bold` for Show more / summary choices.
57
+ List cards use the Cockpit feed frame tokens. An unread shell is `primary-opacity-12` and a read shell is `primary-opacity-8`. The collapsed summary is `surface-1`. The open body is `surface-2` while the post is unread and `surface-1` once it is read. The type chip is `primary` / `on-primary`, and meta text is `outline`. Fullscreen has no list shell fill. Typography is `typography-caption-regular`, `typography-headline-3` (list title), `typography-headline-1` (fullscreen title), `typography-body-2-regular`, and `typography-body-2-bold` for Show more / summary choices.
58
58
 
59
59
  ```vue
60
60
  <script setup lang="ts">
@@ -102,19 +102,19 @@ import { FeedItemBase } from '@onereach/idw-ui-components';
102
102
  | `mediaSrc` / `mediaAlt` | `string` | — | 64px list thumbnail. Hidden in fullscreen |
103
103
  | `summary` | `{ text?, choices? }` | — | Collapsed summary panel. Hidden once the body is open |
104
104
  | `summaryLabel` | `string` | `Summary:` | Summary panel heading |
105
- | `engagement` | `FeedItemEngagement` | — | Reactions, read time, and comments row |
105
+ | `engagement` | `FeedItemEngagement` | — | Reactions and comments row |
106
106
  | `view` | `'list' \| 'fullscreen'` | `list` | Fullscreen uses the large title, drops the thumbnail and expand control, and keeps the body open |
107
107
  | `expandable` | `boolean` | `true` | Whether Show more / Show less is shown |
108
108
  | `fullscreenControl` | `boolean` | `false` | Shows `open_in_full` inside default `#controls` |
109
109
  | `mentionControl` | `boolean` | `true` | Shows `alternate_email` |
110
110
  | `shareControl` | `boolean` | `true` | Shows share. In fullscreen this is the labeled Share button under the title |
111
111
  | `moreControl` | `boolean` | `true` | Shows `more_vert` |
112
- | `isNew` / `highlighted` | `boolean` | `false` | Attention shell (`primary-opacity-8`) vs settled shell (`surface-2`) |
112
+ | `isNew` / `highlighted` | `boolean` | `false` | Unread shell (`primary-opacity-12`, open body `surface-2`) vs read shell (`primary-opacity-8`, open body `surface-1`) |
113
113
  | `controlLabels` | `FeedItemControlLabels` | Mention / Share / More / Fullscreen / Show more / Show less | Optional localized labels |
114
114
 
115
115
  `FeedStatusTone`: `'primary' | 'success' | 'warning' | 'error' | 'neutral' | 'secondary'`.
116
116
 
117
- When `expandable` is `false`, the body is always shown and the expand button is hidden. The list body uses `max-height: 37.875rem`. Fullscreen body content is centered at `50rem`.
117
+ When `expandable` is `false`, the body is always shown and the expand button is hidden. An open list card stops at `42.5rem` (680px) and the body scrolls inside that height. Fullscreen has no card cap; its body content is centered at `50rem`.
118
118
 
119
119
  `FeedItemControl`: `'mention' | 'share' | 'more'`
120
120
 
@@ -174,13 +174,13 @@ const skill = { id: '1', name: 'Vacation', image: '/s.png', domain: 'HR' } satis
174
174
  </template>
175
175
  </FeedItemBase>
176
176
 
177
- <FeedItemBase id="3" title="HTML" :fullscreen-control="true" class="[&_.feed-item-base__body]:!max-h-none">
177
+ <FeedItemBase id="3" title="HTML" :fullscreen-control="true">
178
178
  <template #body>
179
179
  <FeedHtmlContent title="HTML" :content="html" />
180
180
  </template>
181
181
  </FeedItemBase>
182
182
 
183
- <FeedItemBase id="4" title="File" :fullscreen-control="true" class="[&_.feed-item-base__body]:!max-h-none">
183
+ <FeedItemBase id="4" title="File" :fullscreen-control="true">
184
184
  <template #body>
185
185
  <FeedFileContent title="File" :src="fileUrl" />
186
186
  </template>
@@ -276,9 +276,9 @@ const items: FeedListItem[] = [
276
276
  - `file` — requires `fileUrl: string`
277
277
  - `card` — requires `source` (`{ card }` or `{ templateId, data }`). Do not add `approval` / `task` as extra `type`s.
278
278
  - Shell fields are picked from `FeedItemBaseProps` (`typeLabel`, `status`, `summary`, `mediaSrc`, `timestampDatetime`, `fullscreenControl`, `mentionControl`, `isNew`, …)
279
- - Optional `engagement` (`FeedItemEngagement`) renders the compact reactions / comments / reading-time row in the list expansion area, collapsed and expanded
279
+ - Optional `engagement` (`FeedItemEngagement`) renders the compact reactions / comments row in the list expansion area, collapsed and expanded
280
280
 
281
- HTML/file rows get `fullscreenControl` by default and an unconstrained body max-height.
281
+ HTML/file rows get `fullscreenControl` by default. In the list they use the same 680px card cap as other open posts.
282
282
  `mentionControl` defaults to `true` when omitted.
283
283
 
284
284
  ### Slots