@onereach/idw-ui-components 0.6.0-beta.54.0 → 0.6.0-beta.60.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.
Files changed (28) hide show
  1. package/README.md +22 -11
  2. package/dist/cjs/index.js +4 -4
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/esm/index.js +1457 -1231
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/idw-ui-components.css +1 -1
  7. package/dist/types/components/Feeds/FeedItemBase/FeedItemBase.vue.d.ts +9 -9
  8. package/dist/types/components/Feeds/FeedItemBase/FeedItemBase.vue.d.ts.map +1 -1
  9. package/dist/types/components/Feeds/FeedItemBase/FeedTypeStatusTag.vue.d.ts +16 -0
  10. package/dist/types/components/Feeds/FeedItemBase/FeedTypeStatusTag.vue.d.ts.map +1 -0
  11. package/dist/types/components/Feeds/FeedItemBase/feedStatusAppearance.d.ts +12 -4
  12. package/dist/types/components/Feeds/FeedItemBase/feedStatusAppearance.d.ts.map +1 -1
  13. package/dist/types/components/Feeds/FeedItemBase/index.d.ts +3 -1
  14. package/dist/types/components/Feeds/FeedItemBase/index.d.ts.map +1 -1
  15. package/dist/types/components/Feeds/FeedItemBase/types.d.ts +12 -7
  16. package/dist/types/components/Feeds/FeedItemBase/types.d.ts.map +1 -1
  17. package/dist/types/components/Feeds/FeedPlaceholder/FeedPlaceholder.vue.d.ts +9 -0
  18. package/dist/types/components/Feeds/FeedPlaceholder/FeedPlaceholder.vue.d.ts.map +1 -0
  19. package/dist/types/components/Feeds/FeedPlaceholder/FeedPlaceholderExamples.vue.d.ts +3 -0
  20. package/dist/types/components/Feeds/FeedPlaceholder/FeedPlaceholderExamples.vue.d.ts.map +1 -0
  21. package/dist/types/components/Feeds/FeedPlaceholder/generateFeedPlaceholder.d.ts +12 -0
  22. package/dist/types/components/Feeds/FeedPlaceholder/generateFeedPlaceholder.d.ts.map +1 -0
  23. package/dist/types/components/Feeds/FeedPlaceholder/index.d.ts +3 -0
  24. package/dist/types/components/Feeds/FeedPlaceholder/index.d.ts.map +1 -0
  25. package/dist/types/components/Feeds/index.d.ts +1 -0
  26. package/dist/types/components/Feeds/index.d.ts.map +1 -1
  27. package/dist/types/idw-card/renderer/elements/InputElement.vue.d.ts.map +1 -1
  28. package/package.json +1 -1
package/README.md CHANGED
@@ -50,11 +50,17 @@ const skill = {
50
50
  </template>
51
51
  ```
52
52
 
53
+ ## FeedPlaceholder
54
+
55
+ `FeedPlaceholder`, `getFeedPlaceholder` and `FEED_PLACEHOLDER_VERSION` are exported from the package root. The existing version-one deterministic SVG generator is now toolkit-owned, with no app aliases or new runtime dependencies. `seed` is a required stable post ID; optional `size` defaults to 48. The parent owns the tile and photo-first fallback. See [component usage and stability contract](src/components/Feeds/FeedPlaceholder/README.md).
56
+
53
57
  ## FeedItemBase
54
58
 
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.
59
+ Presentational feed envelope. It owns the type tag (with a New tag before it while unread), author, title thumbnail, collapsed status notice or summary, engagement row, and expand/collapse. The card body stays in the `#body` slot.
60
+
61
+ List cards own their presentation here, without host selectors into their DOM: 24px outer corners, 48px media, 12px media/panel corners, 12px media gap, caption 12/18 metadata and summary, regular 16/24 list title/preview. The title and preview share a three-line clamp; the media aligns to the first two lines. Fullscreen retains headline-1 typography. Cards have no outer outline; light uses the approved soft shadow and dark uses surface-1 with a surface-2 hover. Summary uses surface-1 light / surface-2 dark (the explicitly selected mode relationship), outline12 borders and a 4px label gap. Warning/error notices use 4% derived theme fills, outline16 semantic borders and caption-semibold labels. Tags are 24px pills; New uses success-container/on-success-container with an 8px dot and 4px success12 halo in light mode. Geometry is shared across modes. Meta and controls use outline; type tags use on-surface-variant. Empty collapsed footer chrome is omitted. File/embed corners use rounded-xl (16px); renderer-owned fields retain the approved 12px OneReach boundary adaptation. No global radius scale is redefined.
62
+
56
63
 
57
- List cards use the Cockpit feed frame tokens. The list shell and open body use `surface-1`, independent of read/highlighted state; the collapsed summary block uses `surface-2` so it stays distinct from the card. The outer border and top/bottom body dividers use `outline-variant` with the existing library 1px border width in both modes. 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
64
 
59
65
  ```vue
60
66
  <script setup lang="ts">
@@ -65,7 +71,7 @@ import { FeedItemBase } from '@onereach/idw-ui-components';
65
71
  <FeedItemBase
66
72
  id="feed-1"
67
73
  type-label="Notification"
68
- :status="{ label: 'Action Required', tone: 'primary' }"
74
+ :status="{ label: 'Action Required', tone: 'warning', description: 'Review the details and assign an owner.' }"
69
75
  title="Important meeting needs review"
70
76
  short-content="Owner Strategy Review overlaps with your vacation."
71
77
  timestamp="1 min ago"
@@ -93,14 +99,14 @@ import { FeedItemBase } from '@onereach/idw-ui-components';
93
99
  | `id` | `string` | — | Stable feed item id (used for a11y ids) |
94
100
  | `title` | `string` | — | Shell title |
95
101
  | `shortContent` | `string` | — | Subtitle under the list title |
96
- | `typeLabel` | `string` | — | Type chip (Task, Notification, News, …) |
97
- | `status` | `{ label, tone? }` | — | Status label. Catalog labels choose the indicator color. `Action Required` with tone `neutral` is the settled outline state. `tone` is otherwise a fallback for other labels |
102
+ | `typeLabel` | `string` | — | Type tag text (Task, Notification, News, …). Without it the tag shows the status label |
103
+ | `status` | `{ label, tone?, description? }` | — | Feed status; the label stays available as the tag tooltip and to screen readers. `tone` names its kind: `primary` new, `warning` needs attention, `error` blocked, `neutral` handled. `success` folds into neutral and `secondary` into primary. Known labels are a fallback when there is no tone. A `warning` or `error` status with a `description` draws the collapsed notice (`Action Required:` / `Blocked:` plus what to do) in place of the summary |
98
104
  | `timestamp` | `string` | — | Preformatted timestamp text |
99
105
  | `timestampDatetime` | `string` | — | Optional value for `<time datetime>` |
100
106
  | `source` | `string` | — | Author name, rendered as `By {source}` |
101
107
  | `authorPrefix` | `string` | `By` | Prefix before `source` |
102
- | `mediaSrc` / `mediaAlt` | `string` | — | 64px list thumbnail. Hidden in fullscreen |
103
- | `summary` | `{ text?, choices? }` | — | Collapsed summary panel. Hidden once the body is open |
108
+ | `mediaSrc` / `mediaAlt` | `string` | — | 48px list thumbnail. Hidden in fullscreen |
109
+ | `summary` | `{ text?, choices? }` | — | Collapsed summary panel. Hidden once the body is open and while a status notice is shown |
104
110
  | `summaryLabel` | `string` | `Summary:` | Summary panel heading |
105
111
  | `engagement` | `FeedItemEngagement` | — | Reactions and comments row |
106
112
  | `view` | `'list' \| 'fullscreen'` | `list` | Fullscreen uses the large title, drops the thumbnail and expand control, and keeps the body open |
@@ -109,11 +115,16 @@ import { FeedItemBase } from '@onereach/idw-ui-components';
109
115
  | `mentionControl` | `boolean` | `true` | Shows `alternate_email` |
110
116
  | `shareControl` | `boolean` | `true` | Shows share. In fullscreen this is the labeled Share button under the title |
111
117
  | `moreControl` | `boolean` | `true` | Shows `more_vert` |
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
- | `controlLabels` | `FeedItemControlLabels` | Mention / Share / More / Fullscreen / Show more / Show less | Optional localized labels |
118
+ | `isNew` | `boolean` | `false` | Shows the `New` tag before the type tag while the feed is unread |
119
+ | `highlighted` | `boolean` | `false` | Retained for host compatibility; the shell fill does not change |
120
+ | `controlLabels` | `FeedItemControlLabels` | New / Mention / Share / More / Fullscreen / Show more / Show less | Optional localized labels |
121
+
122
+ In the header, fullscreen, mention and share stay hidden (`opacity-0`) until the pointer is over the card or focus is inside it (`group/feed`); `more_vert` is always visible, so the card shows that it has actions. Hosts that replace `#controls` put the exported `FEED_HOVER_CONTROL_CLASS` on their secondary buttons.
114
123
 
115
124
  `FeedStatusTone`: `'primary' | 'success' | 'warning' | 'error' | 'neutral' | 'secondary'`.
116
125
 
126
+ `FeedTypeStatusTag` (props `typeLabel`, `status`, `isNew`, `newLabel`) is exported for hosts that draw the same tag outside `FeedItemBase`; `feedTagState(status)` returns the status kind and `feedNoticeAppearance(status)` the notice colors.
127
+
117
128
  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
129
 
119
130
  `FeedItemControl`: `'mention' | 'share' | 'more'`
@@ -122,7 +133,7 @@ When `expandable` is `false`, the body is always shown and the expand button is
122
133
 
123
134
  - `body` — card or rich content (lazy-mounted on first expand, kept mounted while the item lives)
124
135
  - `actions` — extra controls under the body, shown while the body is open. Card action buttons belong in the body itself
125
- - `media` — replaces the 64px thumbnail (skill tile, icon). Hidden in fullscreen
136
+ - `media` — replaces the 48px thumbnail (skill tile, icon). Hidden in fullscreen
126
137
  - `footer` — optional extra footer, list view only, shown while the body is open
127
138
  - `controls` — replaces the default header icon buttons
128
139
 
@@ -136,7 +147,7 @@ When `expandable` is `false`, the body is always shown and the expand button is
136
147
 
137
148
  ### Body lifecycle
138
149
 
139
- The body slot mounts on the first expansion and stays mounted afterwards. Collapsing hides it with `v-show` so embedded apps / iframes are not destroyed automatically. A collapsed summary is visible only while the body is closed.
150
+ The body slot mounts on the first expansion and stays mounted afterwards. Collapsing hides it with `v-show` so embedded apps / iframes are not destroyed automatically. A collapsed notice or summary is visible only while the body is closed.
140
151
 
141
152
  ## Feed type content (body slot)
142
153