@namroodinc/liquid-editorial 0.10.2 → 0.12.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 (202) hide show
  1. package/README.md +32 -18
  2. package/UPGRADING.md +313 -0
  3. package/dist/chunks/{Board-Cnyqrc-R.js → Board-BCS7sDXg.js} +13 -5
  4. package/dist/chunks/{Board-Cnyqrc-R.js.map → Board-BCS7sDXg.js.map} +1 -1
  5. package/dist/chunks/{Board-DFuJt2Oh.cjs → Board-CNVy8gHI.cjs} +2 -2
  6. package/dist/chunks/Board-CNVy8gHI.cjs.map +1 -0
  7. package/dist/chunks/{CollectionView-Vj84E26b.js → CollectionView-B0ZJxkNK.js} +4 -4
  8. package/dist/chunks/CollectionView-B0ZJxkNK.js.map +1 -0
  9. package/dist/chunks/CollectionView-DrszOUOt.cjs +2 -0
  10. package/dist/chunks/CollectionView-DrszOUOt.cjs.map +1 -0
  11. package/dist/chunks/ColourField-BdobU76j.cjs +2 -0
  12. package/dist/chunks/ColourField-BdobU76j.cjs.map +1 -0
  13. package/dist/chunks/{ColourField-D17gkytm.js → ColourField-C39pcjkG.js} +6 -6
  14. package/dist/chunks/ColourField-C39pcjkG.js.map +1 -0
  15. package/dist/chunks/{DatePicker-0uvnuiye.js → DatePicker-DDc1nDTb.js} +21 -21
  16. package/dist/chunks/DatePicker-DDc1nDTb.js.map +1 -0
  17. package/dist/chunks/DatePicker-Dpvfomrm.cjs +2 -0
  18. package/dist/chunks/DatePicker-Dpvfomrm.cjs.map +1 -0
  19. package/dist/chunks/{Drawer-DTtgAZO2.js → Drawer-C3mWT9Kh.js} +2 -2
  20. package/dist/chunks/Drawer-C3mWT9Kh.js.map +1 -0
  21. package/dist/chunks/Drawer-DTKZptua.cjs +2 -0
  22. package/dist/chunks/Drawer-DTKZptua.cjs.map +1 -0
  23. package/dist/chunks/EntryPicker-CgWbgWnc.cjs +2 -0
  24. package/dist/chunks/EntryPicker-CgWbgWnc.cjs.map +1 -0
  25. package/dist/chunks/{EntryPicker-LWwX_EzL.js → EntryPicker-DlEsVCvA.js} +3 -3
  26. package/dist/chunks/EntryPicker-DlEsVCvA.js.map +1 -0
  27. package/dist/chunks/{FormEditor-IKdPwVPx.js → FormEditor-CLLOHKiO.js} +6 -6
  28. package/dist/chunks/{FormEditor-IKdPwVPx.js.map → FormEditor-CLLOHKiO.js.map} +1 -1
  29. package/dist/chunks/{FormEditor-BZ_4nxIG.cjs → FormEditor-iACd0El-.cjs} +2 -2
  30. package/dist/chunks/{FormEditor-BZ_4nxIG.cjs.map → FormEditor-iACd0El-.cjs.map} +1 -1
  31. package/dist/chunks/{RichTextEditor-CwoHE-AN.js → RichTextEditor-B0P53GFt.js} +373 -284
  32. package/dist/chunks/RichTextEditor-B0P53GFt.js.map +1 -0
  33. package/dist/chunks/RichTextEditor-Wu_yjvD7.cjs +2 -0
  34. package/dist/chunks/RichTextEditor-Wu_yjvD7.cjs.map +1 -0
  35. package/dist/chunks/{use-picker-session-BLH1tXk3.js → use-picker-session-BnMxbGAZ.js} +10 -10
  36. package/dist/chunks/use-picker-session-BnMxbGAZ.js.map +1 -0
  37. package/dist/chunks/use-picker-session-DbfOJstX.cjs +2 -0
  38. package/dist/chunks/use-picker-session-DbfOJstX.cjs.map +1 -0
  39. package/dist/components/AppShell/index.cjs +1 -1
  40. package/dist/components/AppShell/index.js +1 -1
  41. package/dist/components/AssetCard/index.cjs +1 -1
  42. package/dist/components/AssetCard/index.cjs.map +1 -1
  43. package/dist/components/AssetCard/index.d.cts.map +1 -1
  44. package/dist/components/AssetCard/index.d.ts.map +1 -1
  45. package/dist/components/AssetCard/index.js +16 -16
  46. package/dist/components/AssetCard/index.js.map +1 -1
  47. package/dist/components/AssetCard/style.css +47 -46
  48. package/dist/components/AssetGrid/index.cjs +1 -1
  49. package/dist/components/AssetGrid/index.cjs.map +1 -1
  50. package/dist/components/AssetGrid/index.d.cts +0 -2
  51. package/dist/components/AssetGrid/index.d.cts.map +1 -1
  52. package/dist/components/AssetGrid/index.d.ts +0 -2
  53. package/dist/components/AssetGrid/index.d.ts.map +1 -1
  54. package/dist/components/AssetGrid/index.js +15 -15
  55. package/dist/components/AssetGrid/index.js.map +1 -1
  56. package/dist/components/Avatar/style.css +26 -5
  57. package/dist/components/Badge/index.cjs +1 -1
  58. package/dist/components/Badge/index.cjs.map +1 -1
  59. package/dist/components/Badge/index.d.cts +2 -3
  60. package/dist/components/Badge/index.d.cts.map +1 -1
  61. package/dist/components/Badge/index.d.ts +2 -3
  62. package/dist/components/Badge/index.d.ts.map +1 -1
  63. package/dist/components/Badge/index.js +1 -1
  64. package/dist/components/Badge/index.js.map +1 -1
  65. package/dist/components/Badge/style.css +20 -26
  66. package/dist/components/Board/index.cjs +1 -1
  67. package/dist/components/Board/index.js +1 -1
  68. package/dist/components/Board/style.css +36 -15
  69. package/dist/components/Button/style.css +19 -10
  70. package/dist/components/ButtonGroup/index.cjs.map +1 -1
  71. package/dist/components/ButtonGroup/index.d.cts +1 -1
  72. package/dist/components/ButtonGroup/index.d.ts +1 -1
  73. package/dist/components/ButtonGroup/index.js.map +1 -1
  74. package/dist/components/ButtonGroup/style.css +4 -20
  75. package/dist/components/Choice/style.css +10 -9
  76. package/dist/components/CollectionView/index.cjs +1 -1
  77. package/dist/components/CollectionView/index.js +1 -1
  78. package/dist/components/CollectionView/style.css +8 -11
  79. package/dist/components/ColourField/index.cjs +1 -1
  80. package/dist/components/ColourField/index.js +1 -1
  81. package/dist/components/ColourField/style.css +28 -17
  82. package/dist/components/DatePicker/index.cjs +1 -1
  83. package/dist/components/DatePicker/index.js +1 -1
  84. package/dist/components/DatePicker/style.css +10 -3
  85. package/dist/components/Drawer/index.cjs +1 -1
  86. package/dist/components/Drawer/index.js +1 -1
  87. package/dist/components/Drawer/style.css +11 -22
  88. package/dist/components/EditLayout/index.cjs +1 -1
  89. package/dist/components/EditLayout/index.cjs.map +1 -1
  90. package/dist/components/EditLayout/index.js +2 -2
  91. package/dist/components/EditLayout/index.js.map +1 -1
  92. package/dist/components/EditLayout/style.css +10 -5
  93. package/dist/components/EntryPicker/index.cjs +1 -1
  94. package/dist/components/EntryPicker/index.js +1 -1
  95. package/dist/components/EntryPicker/item.d.cts +1 -3
  96. package/dist/components/EntryPicker/item.d.cts.map +1 -1
  97. package/dist/components/EntryPicker/item.d.ts +1 -3
  98. package/dist/components/EntryPicker/item.d.ts.map +1 -1
  99. package/dist/components/EntryPicker/style.css +43 -19
  100. package/dist/components/Field/style.css +6 -5
  101. package/dist/components/FormEditor/README.md +40 -12
  102. package/dist/components/FormEditor/index.cjs +1 -1
  103. package/dist/components/FormEditor/index.js +1 -1
  104. package/dist/components/ImageCropper/style.css +20 -20
  105. package/dist/components/Menu/style.css +2 -3
  106. package/dist/components/Modal/index.cjs +1 -1
  107. package/dist/components/Modal/index.cjs.map +1 -1
  108. package/dist/components/Modal/index.js +1 -1
  109. package/dist/components/Modal/index.js.map +1 -1
  110. package/dist/components/Modal/style.css +7 -5
  111. package/dist/components/Popover/style.css +2 -2
  112. package/dist/components/RichTextEditor/index.cjs +1 -1
  113. package/dist/components/RichTextEditor/index.js +1 -1
  114. package/dist/components/RichTextEditor/storyblock-view.d.cts +1 -1
  115. package/dist/components/RichTextEditor/storyblock-view.d.cts.map +1 -1
  116. package/dist/components/RichTextEditor/storyblock-view.d.ts +1 -1
  117. package/dist/components/RichTextEditor/storyblock-view.d.ts.map +1 -1
  118. package/dist/components/RichTextEditor/style.css +127 -55
  119. package/dist/components/SelectionCard/index.cjs +1 -1
  120. package/dist/components/SelectionCard/index.cjs.map +1 -1
  121. package/dist/components/SelectionCard/index.d.cts.map +1 -1
  122. package/dist/components/SelectionCard/index.d.ts.map +1 -1
  123. package/dist/components/SelectionCard/index.js +5 -1
  124. package/dist/components/SelectionCard/index.js.map +1 -1
  125. package/dist/components/SelectionCard/style.css +39 -12
  126. package/dist/components/SideNav/index.cjs +1 -1
  127. package/dist/components/SideNav/index.cjs.map +1 -1
  128. package/dist/components/SideNav/index.d.cts +3 -3
  129. package/dist/components/SideNav/index.d.ts +3 -3
  130. package/dist/components/SideNav/index.js +15 -3
  131. package/dist/components/SideNav/index.js.map +1 -1
  132. package/dist/components/SideNav/style.css +19 -13
  133. package/dist/components/Slider/style.css +12 -14
  134. package/dist/components/SortableList/index.cjs +1 -1
  135. package/dist/components/SortableList/index.cjs.map +1 -1
  136. package/dist/components/SortableList/index.js +6 -2
  137. package/dist/components/SortableList/index.js.map +1 -1
  138. package/dist/components/SortableList/style.css +20 -5
  139. package/dist/components/Stepper/style.css +8 -9
  140. package/dist/components/SubNav/index.cjs.map +1 -1
  141. package/dist/components/SubNav/index.d.cts +2 -2
  142. package/dist/components/SubNav/index.d.ts +2 -2
  143. package/dist/components/SubNav/index.js.map +1 -1
  144. package/dist/components/SubNav/style.css +3 -8
  145. package/dist/components/Switch/index.cjs +1 -1
  146. package/dist/components/Switch/index.cjs.map +1 -1
  147. package/dist/components/Switch/index.d.cts.map +1 -1
  148. package/dist/components/Switch/index.d.ts.map +1 -1
  149. package/dist/components/Switch/index.js +2 -2
  150. package/dist/components/Switch/index.js.map +1 -1
  151. package/dist/components/Switch/style.css +14 -6
  152. package/dist/components/Table/index.cjs +1 -1
  153. package/dist/components/Table/index.cjs.map +1 -1
  154. package/dist/components/Table/index.js +2 -2
  155. package/dist/components/Table/index.js.map +1 -1
  156. package/dist/components/Table/style.css +34 -22
  157. package/dist/components/TagsInput/index.cjs +1 -1
  158. package/dist/components/TagsInput/index.cjs.map +1 -1
  159. package/dist/components/TagsInput/index.js +1 -1
  160. package/dist/components/TagsInput/index.js.map +1 -1
  161. package/dist/components/TagsInput/style.css +31 -6
  162. package/dist/components/Time/style.css +1 -1
  163. package/dist/components/Toast/style.css +1 -1
  164. package/dist/components/TopNav/index.cjs +1 -1
  165. package/dist/components/TopNav/index.cjs.map +1 -1
  166. package/dist/components/TopNav/index.d.cts +4 -4
  167. package/dist/components/TopNav/index.d.ts +4 -4
  168. package/dist/components/TopNav/index.js +5 -1
  169. package/dist/components/TopNav/index.js.map +1 -1
  170. package/dist/components/TopNav/style.css +6 -9
  171. package/dist/elements.css +0 -1
  172. package/dist/index.cjs +1 -1
  173. package/dist/index.d.cts +2 -2
  174. package/dist/index.d.cts.map +1 -1
  175. package/dist/index.d.ts +2 -2
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +44 -44
  178. package/dist/message.css +8 -14
  179. package/dist/tokens.css +101 -43
  180. package/package.json +1 -1
  181. package/dist/chunks/Board-DFuJt2Oh.cjs.map +0 -1
  182. package/dist/chunks/CollectionView-BNYx29b1.cjs +0 -2
  183. package/dist/chunks/CollectionView-BNYx29b1.cjs.map +0 -1
  184. package/dist/chunks/CollectionView-Vj84E26b.js.map +0 -1
  185. package/dist/chunks/ColourField-B03ejnGS.cjs +0 -2
  186. package/dist/chunks/ColourField-B03ejnGS.cjs.map +0 -1
  187. package/dist/chunks/ColourField-D17gkytm.js.map +0 -1
  188. package/dist/chunks/DatePicker-0uvnuiye.js.map +0 -1
  189. package/dist/chunks/DatePicker-CVaefhfS.cjs +0 -2
  190. package/dist/chunks/DatePicker-CVaefhfS.cjs.map +0 -1
  191. package/dist/chunks/Drawer-BDX9_qHA.cjs +0 -2
  192. package/dist/chunks/Drawer-BDX9_qHA.cjs.map +0 -1
  193. package/dist/chunks/Drawer-DTtgAZO2.js.map +0 -1
  194. package/dist/chunks/EntryPicker-CiS8zT64.cjs +0 -2
  195. package/dist/chunks/EntryPicker-CiS8zT64.cjs.map +0 -1
  196. package/dist/chunks/EntryPicker-LWwX_EzL.js.map +0 -1
  197. package/dist/chunks/RichTextEditor-CwoHE-AN.js.map +0 -1
  198. package/dist/chunks/RichTextEditor-DMrxJhA6.cjs +0 -2
  199. package/dist/chunks/RichTextEditor-DMrxJhA6.cjs.map +0 -1
  200. package/dist/chunks/use-picker-session-BLH1tXk3.js.map +0 -1
  201. package/dist/chunks/use-picker-session-tRDYUd_d.cjs +0 -2
  202. package/dist/chunks/use-picker-session-tRDYUd_d.cjs.map +0 -1
package/README.md CHANGED
@@ -77,7 +77,7 @@ Field supplies labels and validation relationships. Button supplies action styli
77
77
 
78
78
  ## Component catalogue
79
79
 
80
- All **50 families** and **103 runtime exports** are listed below, including compound components, hooks, helpers, and compatibility aliases. Each family links to a practical guide and its source stories. Run Storybook locally for interactive examples; this README does not assume a hosted Storybook. Exported TypeScript declarations provide the detailed prop reference.
80
+ All **51 families** and **103 runtime exports** are listed below, including compound components, hooks and helpers. Each family links to a practical guide and its source stories. Run Storybook locally for interactive examples; this README does not assume a hosted Storybook. Exported TypeScript declarations provide the detailed prop reference.
81
81
 
82
82
  ### Collection and editing catalogue
83
83
 
@@ -157,7 +157,7 @@ All **50 families** and **103 runtime exports** are listed below, including comp
157
157
  | [Board](#board) | `Board`, `BoardColumn`, `BoardCard` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/Board/Board.stories.tsx) |
158
158
  | [SortableList](#sortablelist) | `SortableList`, `SortableListItem` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/SortableList/SortableList.stories.tsx) |
159
159
  | [AssetCard](#assetcard) | `AssetCard`, `AssetCardSkeleton` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/AssetCard/AssetCard.stories.tsx) |
160
- | [AssetGrid](#assetgrid) | `AssetGrid`, `AssetTile`, `AssetTileSkeleton`, `AssetGridEmpty` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/AssetGrid/AssetGrid.stories.tsx) |
160
+ | [AssetGrid](#assetgrid) | `AssetGrid`, `AssetGridEmpty` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/AssetGrid/AssetGrid.stories.tsx) |
161
161
  | [ImageCropper](#imagecropper) | `ImageCropper`, `cropToBlob` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/ImageCropper/ImageCropper.stories.tsx) |
162
162
 
163
163
  ## Actions and feedback
@@ -208,7 +208,7 @@ export function ViewPicker() {
208
208
  {["list", "grid"].map((item) => (
209
209
  <Button
210
210
  key={item}
211
- variant={view === item ? "active" : "neutral"}
211
+ variant={view === item ? "primary" : "neutral"}
212
212
  aria-pressed={view === item}
213
213
  onClick={() => setView(item)}
214
214
  >
@@ -220,7 +220,7 @@ export function ViewPicker() {
220
220
  }
221
221
  ```
222
222
 
223
- Give a meaningful group an accessible name, and mark selected toggle buttons with `aria-pressed`.
223
+ Give a meaningful group an accessible name. Use `variant="primary"` and `aria-pressed` for selected segments; the group only controls spacing and corners, and adds no selection rail.
224
224
 
225
225
  ### Menu
226
226
 
@@ -335,7 +335,7 @@ export function MetadataDrawer() {
335
335
  }
336
336
  ```
337
337
 
338
- `side="start"` and `"end"` mirror in RTL; `"bottom"` creates a bottom sheet. All sides have square corners and slide through their anchored edge. Motion follows `--duration-panel` and `--ease-panel`, with reduced-motion support. Side panels have a single outer border facing the page.
338
+ `side="start"` and `"end"` mirror in RTL; `"bottom"` creates a bottom sheet. All sides have square corners and slide through their anchored edge. Motion follows `--duration-panel` and `--ease-panel`, with reduced-motion support. Panels separate from the page with a shadow; they have no outer borders.
339
339
 
340
340
  Use `variant="navigation"` for compact navigation, `closeLabel` for contextual dismissal copy, and a React-node `title` for a brand. Supply `aria-label` for an independent dialog name. `portalContainer` can keep a navigation drawer inside a positioned element; the default covers the viewport from `document.body`.
341
341
 
@@ -388,6 +388,8 @@ Tones are `neutral` (default), `info`, `success`, `warning`, `danger`, and `revi
388
388
  The icon is hidden by default: pass `icon="auto"` for the tone's icon,
389
389
  `icon="none"` to hide it explicitly, or an `IconName` such as `"clock"`.
390
390
 
391
+ Banners use tone fills and icons without a start rail or extra rail padding.
392
+
391
393
  ```tsx
392
394
  import { useState } from "react";
393
395
  import { Banner, Button } from "@namroodinc/liquid-editorial";
@@ -466,7 +468,7 @@ Provider notifications dismiss automatically after five seconds unless `duration
466
468
 
467
469
  ### Badge
468
470
 
469
- A non-interactive editorial label. Use `shape="status"` for publication state, `"tag"` (the default) for metadata, and `"count"` for totals. Appearance defaults to `"outline"`; `"soft"` suits dense lists and `"solid"` emphasizes one state.
471
+ A non-interactive editorial label. Use `shape="status"` for publication state, `"tag"` (the default) for metadata, and `"count"` for totals. Appearance defaults to `"soft"`; `"solid"` emphasizes one state. These are the only supported appearances.
470
472
 
471
473
  Set `size="sm"` for condensed labels or `"lg"` for more prominent labels. The default `"md"` keeps the existing size. All three sizes work with every shape and appearance; their standard heights are 20px, 24px, and 28px respectively.
472
474
 
@@ -1150,7 +1152,7 @@ ColourField supports normal textbox props, refs, `size`, `readOnly`, `isDisabled
1150
1152
 
1151
1153
  ### EntryPicker
1152
1154
 
1153
- Select entries or assets from app-provided items. The value is an ordered array of IDs in both single and multiple mode. The picker owns search, its selection modal, and optional ordering; the app owns loading and persistence. Selected items retain their individual borders, fills and draft/removed state styling. The surrounding Field and list have no added surface or padding.
1155
+ Select entries or assets from app-provided items. The value is an ordered array of IDs in both single and multiple mode. The picker owns search, its selection modal, and optional ordering; the app owns loading and persistence. Selected items use fills and draft/removed state styling without rails. The surrounding Field and list have no added surface or padding.
1154
1156
 
1155
1157
  ```tsx
1156
1158
  import { useState } from "react";
@@ -1289,7 +1291,7 @@ General forms can use select fields with `options: [{ value, label }]`, per-fiel
1289
1291
 
1290
1292
  `columns` sets the most columns and defaults to one. The form drops a column whenever a field would be narrower than `minColumnWidth` (default `16rem`), measured against the form's own width, so it steps down inside drawers and modals. Use `columns="auto"` to fit as many columns as the width allows. FormEditor is not a size container, so it keeps its content width in flex rows and popovers.
1291
1293
 
1292
- Plain `hr` elements use a single theme-aware muted border through `--rule-width` and `--rule-color`. This style is included in `styles.css` and the optional reset. FormEditor separators use the form's grid gap instead of their global block margins.
1294
+ Plain `hr` elements retain separator semantics and spacing without a painted rule. This style is included in `styles.css` and the optional reset. FormEditor separators use the form's grid gap instead of their global block margins.
1293
1295
 
1294
1296
  Changes emit `onValueChange(nextValues, { fieldId })`. Use the changed field ID when adapting to APIs that accept patches, generated IDs, or dependent values. Runtime form schemas can hold JSX and live choices, so keep them separate from persisted content definitions. Picker field options such as `picker: { itemLabel: "image", itemsLabel: "images" }` provide contextual search and selection copy without putting data access in the library. `picker.label` overrides the field's name: its legend, accessible name, default "Choose …" action and required message. Omitted or `undefined` item and action options keep the asset or entry wording.
1295
1297
 
@@ -1659,7 +1661,7 @@ Zero results display “No results” and disable every control. `isDisabled` al
1659
1661
 
1660
1662
  ### Table
1661
1663
 
1662
- Composable native table elements with a shared frame, toolbar, and empty state.
1664
+ Composable native table elements with a borderless surface, filled toolbar, alternating rows and empty state.
1663
1665
 
1664
1666
  ```tsx
1665
1667
  import {
@@ -1706,7 +1708,7 @@ import {
1706
1708
 
1707
1709
  Empty TableBody children automatically show “No data found.” across the table. Override with `emptyMessage`; use `isEmpty` when custom row components determine results, or `isEmpty={false}` while loading. The consuming UI composes skeleton rows/loading indicators. Standalone TableEmpty supports an optional icon, description, and action.
1708
1710
 
1709
- TableRow supports `isSelected` and `isInteractive`; an interactive appearance still needs real link/Button controls and handlers. Cells support `align="start"`/`"end"`, `width="control"`, and emphasis `default`/`primary`/`muted`. Preserve captions/header scopes. Set native `colSpan` explicitly when composing custom spanning cells.
1711
+ Alternate rows step 3% text from the table's own ground, so a Table alternates on the canvas or any panel as well as inside a TableFrame. TableRow supports `isSelected` and `isInteractive`; an interactive appearance still needs real link/Button controls and handlers. Cells support `align="start"`/`"end"`, `width="control"`, and emphasis `default`/`primary`/`muted`. Preserve captions/header scopes. Set native `colSpan` explicitly when composing custom spanning cells.
1710
1712
 
1711
1713
  ### Board
1712
1714
 
@@ -1858,8 +1860,8 @@ An auto-filling media grid. `isLoading` substitutes eight skeletons by default;
1858
1860
  import {
1859
1861
  AssetGrid,
1860
1862
  AssetGridEmpty,
1861
- AssetTile,
1862
- AssetTileSkeleton,
1863
+ AssetCard,
1864
+ AssetCardSkeleton,
1863
1865
  } from "@namroodinc/liquid-editorial";
1864
1866
 
1865
1867
  export function MediaLibrary({
@@ -1876,7 +1878,7 @@ export function MediaLibrary({
1876
1878
  loadingCount={4}
1877
1879
  >
1878
1880
  {files.map((file) => (
1879
- <AssetTile
1881
+ <AssetCard
1880
1882
  key={file.id}
1881
1883
  name={file.name}
1882
1884
  src={file.src}
@@ -1894,10 +1896,10 @@ export function MediaLibrary({
1894
1896
  );
1895
1897
  }
1896
1898
 
1897
- <AssetTileSkeleton />;
1899
+ <AssetCardSkeleton />;
1898
1900
  ```
1899
1901
 
1900
- AssetTile and AssetTileSkeleton are compatibility aliases of AssetCard and AssetCardSkeleton. Place the grid in TableFrame for a collection page or directly inside a drawer. The application loads files and supplies upload/select actions.
1902
+ Use AssetCard and AssetCardSkeleton from the package root or `components/AssetCard`; the AssetGrid entry point exports the grid and its empty state. Place the grid in TableFrame for a collection page or directly inside a drawer. The application loads files and supplies upload/select actions.
1901
1903
 
1902
1904
  ### ImageCropper
1903
1905
 
@@ -1956,7 +1958,7 @@ Changing `aspect` resets pan and zoom while preserving rotation. There is no rat
1956
1958
 
1957
1959
  ## Themes and fonts
1958
1960
 
1959
- Set `data-theme` on the document root to `light` (the default), `dark`, `cherry-glaze`, or `black-hawaii`. The system font stacks can be overridden with tokens; the package does not download bundled fonts.
1961
+ Set `data-theme` on the document root to `light` (the default), `dark`, `cherry-glaze`, or `black-hawaii`. TopNav uses `--color-header`, the canvas stepped darker (near-black in dark themes), so it separates from both the page and the sidebar surface; its controls derive fills against that header ground. Unchecked choices and off switches use the softer `--fill-indicator`, controlled by the theme-scoped `--indicator-tint`. The system font stacks can be overridden with tokens; the package does not download bundled fonts.
1960
1962
 
1961
1963
  ```css
1962
1964
  :root {
@@ -1967,12 +1969,24 @@ Set `data-theme` on the document root to `light` (the default), `dark`, `cherry-
1967
1969
 
1968
1970
  Theme tokens are included in `styles.css`. Import `@namroodinc/liquid-editorial/tokens.css` when you only need the token system. Keep themes on the document root so body-portaled dialogs and popovers inherit them. Overlays opened from inside a component that knows its place on the page carry that place's `data-theme`, `lang` and `dir` as attributes: a Popover takes them from its anchor, and RichTextEditor's expanded view, link dialog and anything opened from them take them from the editor. Other Modals and Drawers inherit from the document root; pass `dir` to Drawer explicitly where needed. Layouts support RTL and reduced-motion preferences where described in their guides.
1969
1971
 
1970
- Colours the tokens derive from a theme re-derive on every `data-theme` element, so a themed subtree or overlay uses its own theme's values. These are the field fill ladder, soft hover and pressed fills, `-text` and `-border` tones, and status aliases. Override them on `:root, [data-theme]` rather than `:root` alone. Frame, rule, rail and control stroke colours remain root-level house-style settings. A custom container with its own fill sets `--field-bg` and carries `ds-field-surface`, so fields and buttons inside it rest, hover, focus and press against that fill:
1972
+ Colours the tokens derive from a theme re-derive on every `data-theme` element, so a themed subtree or overlay uses its own theme's values. These are the field and control fill ladders, bands, indicators, soft hover and pressed fills, tone text and status aliases. Override them on `:root, [data-theme]` rather than `:root` alone. Decorative rails are limited to AssetCard and Table row selections; their colour remains a root-level setting. Navigation, fields, editors, picker rows, selection cards and both message appearances use fills/text instead, with normal padding. Decorative borders and their tokens have been removed; see the Unreleased migration checklist in UPGRADING.md. A custom container with its own fill sets `--field-bg` and carries `ds-field-surface`, so fields and buttons inside it rest, hover, focus and press against that fill:
1971
1973
 
1972
1974
  ```html
1973
1975
  <section class="ds-field-surface" style="--field-bg: var(--color-surface)">…</section>
1974
1976
  ```
1975
1977
 
1978
+ Selection cards, sortable list items, EntryPicker items, AssetCards and the rich-text editor rest on `--fill-card`: the surface on the canvas, lowered to `--fill-row-alt` inside Modal, Drawer and TableFrame so they still separate from those panels. A custom surface-coloured container that hosts them sets the same value, for example `style="--field-bg: var(--color-surface); --fill-card: var(--fill-row-alt)"`.
1979
+
1980
+ Neutral Buttons, tag/count/draft/archived Badges and initials Avatars step from the fill they sit on. A field surface that paints a hover or active fill over its ground names it in `--field-paint`, as library rows and cards do, so their contents step from the painted fill instead:
1981
+
1982
+ ```css
1983
+ .my-row:hover {
1984
+ --field-paint: var(--field-hover);
1985
+
1986
+ background: var(--field-hover);
1987
+ }
1988
+ ```
1989
+
1976
1990
  ## Upgrading
1977
1991
 
1978
1992
  Read [UPGRADING.md](https://github.com/namroodinc/liquid-editorial/blob/main/UPGRADING.md) for adoption, compatibility, and verification steps between your previous and installed versions. The guide and AGENTS.md ship alongside the package manifest in `node_modules/@namroodinc/liquid-editorial/`.
@@ -2018,7 +2032,7 @@ stays operable while a page loads, so focus stays on the pressed Next or Previou
2018
2032
  button; pass `pagination.isDisabled` to lock it. A pending selection also locks it.
2019
2033
  Optional `filter`, `mine`, `view`, `selection` and `actions` configure the toolbar.
2020
2034
  The grid/table `view` switch uses an attached ButtonGroup with pressed-state
2021
- styling and a shared border between its two buttons.
2035
+ styling and a 2px gap between its two buttons.
2022
2036
  The selected count is announced from a status region present before selection.
2023
2037
  When Clear or a selection action leaves with focus, focus returns to the title.
2024
2038
  The application owns filtering, records, eligibility, selection and requests.
package/UPGRADING.md CHANGED
@@ -2,6 +2,319 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.12.0
6
+
7
+ ### Breaking changes
8
+
9
+ The library now uses borderless fills, bands, alternating rows, spacing and
10
+ asset/table selection rails. The following APIs are **removed**, with no
11
+ compatibility aliases or deprecation period. Update every application and shared package that consumes
12
+ them before adopting this release. Keyboard focus outlines remain supported.
13
+
14
+ | Removed API | Replacement / required action |
15
+ | --- | --- |
16
+ | Badge `appearance="outline"`, including the `BadgeAppearance` member | Omit `appearance` for the new `soft` default, or pass `appearance="soft"`. Only `soft` and `solid` remain. Update stored/configured values as well as JSX. |
17
+ | `AssetTile` | `AssetCard` |
18
+ | `AssetTileSkeleton` | `AssetCardSkeleton` |
19
+ | `AssetTileProps` | `AssetCardProps` |
20
+ | `AssetTileSkeletonProps` | `AssetCardSkeletonProps` |
21
+ | AssetTile exports/types from `components/AssetGrid` | Import the AssetCard replacements from the package root or `components/AssetCard`. AssetGrid retains its grid and empty-state exports. |
22
+ | `--frame-width`, `--frame-color` | Remove frame overrides. Use a surface fill on canvas, with shadows for overlays. |
23
+ | `--rule-width`, `--rule-color` | Remove separator overrides. Use spacing, row fills or header/footer bands. Semantic separators keep their roles without a painted rule. |
24
+ | `--control-border-width` | Use `--focus-width` for focus outlines. Remove border terms from layout/image calculations; do not replace them with focus width. |
25
+ | `--control-border-color` | Remove stroke overrides. Choose the supported control fill or semantic rail colour instead. |
26
+ | `--badge-border-width` | Remove the override. Badge padding now includes the removed border space: each default padding token is 2px larger. Add 2px to any custom `--badge-pad-block`, `--badge-sm-pad-block`, `--badge-pad-inline` or `--badge-count-pad-inline` value to keep the old size. |
27
+ | `--color-primary-border` | Primary soft fill; only asset/table selections retain a rail. |
28
+ | `--color-success-border` | Success soft fill and icon/text tone. |
29
+ | `--color-warning-border` | Warning soft fill and icon/text tone. |
30
+ | `--color-danger-border` | Danger soft fill and icon/text tone. |
31
+ | `--color-review-border` | Review soft fill and icon/text tone. |
32
+ | `--storyblock-bar-border` | Remove the override; use the existing `--storyblock-bar-bg` for bar fill. |
33
+ | `--message-border` | Remove the override; use message soft fill and icon tone. Toast's `--toast-tone` remains supported. |
34
+ | `--colour-thumb-ring` | Remove the override; colour thumbs carry a fixed surface-and-text halo over the shared shadow. |
35
+ | `.ds-asset-tile` and all `.ds-asset-tile__*` hooks | Replace the prefix with `.ds-asset-card`, retaining the suffix. The old classes are neither emitted nor styled. |
36
+
37
+ Complete retired CSS hook inventory (each maps to the same suffix under
38
+ `ds-asset-card`):
39
+
40
+ ```text
41
+ ds-asset-tile
42
+ ds-asset-tile__actions
43
+ ds-asset-tile__hit
44
+ ds-asset-tile__link
45
+ ds-asset-tile__meta
46
+ ds-asset-tile__name
47
+ ds-asset-tile__pending
48
+ ds-asset-tile__pending-label
49
+ ds-asset-tile__placeholder
50
+ ds-asset-tile__spinner
51
+ ds-asset-tile__text
52
+ ds-asset-tile__thumb
53
+ ds-asset-tile__thumb-skeleton
54
+ ```
55
+
56
+ Adoption:
57
+
58
+ 1. Rename the AssetTile imports, JSX, types and selector hooks using the table.
59
+ For example, replace
60
+ `import { AssetTile, type AssetTileProps } from "@namroodinc/liquid-editorial/components/AssetGrid"`
61
+ with
62
+ `import { AssetCard, type AssetCardProps } from "@namroodinc/liquid-editorial/components/AssetCard"`.
63
+ 2. Replace Badge outline configuration with `soft`, or remove the explicit prop.
64
+ Update selectors for `data-appearance="outline"` to `soft`, and refresh visual
65
+ expectations for badges whose appearance was omitted.
66
+ 3. Remove the retired token declarations and uses. Do not retain local copies
67
+ of the removed borders to recreate the old treatment. Custom containers still
68
+ set `--field-bg` and carry `ds-field-surface`; the field and new control fill
69
+ ladders then derive against that ground.
70
+ 4. Search each consuming repository, including shared packages, generated
71
+ schemas/configuration, themes and CSS-in-JS. These commands intentionally also
72
+ find comments and snapshots that may need review:
73
+
74
+ ```sh
75
+ rg -n 'AssetTile(Skeleton)?(Props)?|ds-asset-tile' . --glob '!node_modules/**' --glob '!dist/**'
76
+ rg -n 'outline' . --glob '!node_modules/**' --glob '!dist/**' --glob '*.{ts,tsx,js,jsx,json,css,scss}'
77
+ rg -n --glob '!node_modules/**' --glob '!dist/**' -- '--(frame-(width|color)|rule-(width|color)|control-border-(width|color)|badge-border-width|color-(primary|success|warning|danger|review)-border|storyblock-bar-border|message-border|colour-thumb-ring)' .
78
+ ```
79
+
80
+ Inspect `outline` matches: remove the Badge appearance and its selectors;
81
+ preserve keyboard focus styles. Adjust search roots to the consumer's layout.
82
+
83
+ Changes and compatibility:
84
+
85
+ - Decorative rails are limited to selected AssetCard tiles and Table rows.
86
+ Toasts, navigation, fields, selection cards, picker rows, collection toolbars,
87
+ editors and blockquotes have no start/bottom rails, including invalid, draft,
88
+ missing and selected states. Existing fills, text/icon cues and keyboard focus
89
+ remain. Padding no longer reserves space for removed rails; field affixes keep
90
+ their measured spacing. Asset/table selection geometry and RTL rails remain.
91
+ - Banners and Toasts share rail-free message styles with symmetric padding;
92
+ floating Toasts retain their outer shadow and icon tone. `--toast-tone` now
93
+ recolours the icon only. Remove local overrides that restore other rails.
94
+ Keep `--rail-width`, `--rail-color` and `--rail-direction` overrides scoped to
95
+ asset/table selection styling. Functional slider/colour tracks, stepper
96
+ connectors, usage rings and layout sidebars remain supported.
97
+ - Unchecked radio/checkbox fills and off switches are softer: `--indicator-tint`
98
+ is 50% in light, 45% in dark/Black Hawaii and 59% in Cherry Glaze. Their
99
+ built-in background pairs retain at least 3:1 contrast. Unchecked choices
100
+ hover to `--fill-indicator-hover`; off switches hover and press through
101
+ `--fill-indicator-hover` and `--fill-indicator-pressed`, which Switch maps
102
+ onto Button's neutral variant. Checked states retain their primary fill. An
103
+ invalid Switch renders Button's `danger` variant (`data-variant="danger"`)
104
+ whether on or off, and its knob position still shows the state; update
105
+ selectors that matched `aria-invalid` styling on the track. In an invalid
106
+ SelectionCard group, checked cards mix the danger tint into their selected
107
+ fill, so they stay distinct from unchecked cards. Stepper numbers keep their stronger fill for readability, and the
108
+ current step keeps its soft primary fill (the `active` Button variant when
109
+ navigable), distinct from solid completed steps.
110
+ - TopNav uses the new `--color-header`: the canvas stepped darker (6% text in
111
+ light palettes, 85% black in dark ones), so the header separates from the
112
+ canvas beside the sidebar as well as from SideNav's surface. Dark-theme
113
+ headers are near-black. Nested controls re-derive against the header.
114
+ Consumers overriding header backgrounds should set this token on
115
+ `:root, [data-theme]`, or keep their custom `--field-bg` and background
116
+ aligned. A custom dark palette sets `--color-header` itself.
117
+ - Attached ButtonGroups use 2px gaps; selected segments use the primary Button
118
+ variant with no selection rail. Update consumer groups from
119
+ `variant={selected ? "active" : "neutral"}` to
120
+ `variant={selected ? "primary" : "neutral"}`, retaining `aria-pressed`. A
121
+ focused attached segment is lifted above its neighbours so its focus ring is
122
+ never painted over. Table rows alternate instead of carrying rules: the
123
+ alternate row is 3% text into the table's own ground (`--table-row-alt`,
124
+ declared on `.ds-table`), so a Table on the canvas or a panel alternates as
125
+ visibly as one in a TableFrame.
126
+ Drawers have no page-facing border; overlay separation comes from shadows.
127
+ - Drag placeholders (Board cards and lanes, SortableList items with a custom
128
+ overlay) are recessed slots: the pressed step of their own fill, distinct
129
+ from the lane and from resting items. Their drag handles stay visible, so
130
+ keyboard focus and its ring remain on the handle throughout a keyboard drag.
131
+ - Selection cards, sortable list items, EntryPicker items and results,
132
+ AssetCards and the rich-text editor's writing area rest on the new
133
+ `--fill-card`: `--color-surface` on the canvas, lowered to `--fill-row-alt`
134
+ inside Modal, Drawer and TableFrame so they keep their shape there. The
135
+ editor toolbar and storyblocks step from the same fill. A custom
136
+ surface-coloured container hosting them sets
137
+ `--fill-card: var(--fill-row-alt)`.
138
+ - Every library ground (panels, toolbars, footers, cards, messages, raised
139
+ surfaces) now paints `var(--field-bg)`, so its controls derive from the fill
140
+ it actually shows. Setting `--field-bg` on one of these containers now
141
+ repaints it as well. The EditLayout details rail and sheet use the band as
142
+ their ground (the rail now carries `ds-field-surface`), and navigation Drawer
143
+ footers use the surface they paint.
144
+ - Field hover is now the weakest field state: invalid fields keep their danger
145
+ fill under the pointer, and keyboard-focused fields keep their focus fill.
146
+ - Neutral soft Badges (tags, counts, draft and archived) and initials Avatars
147
+ use `--fill-control`, a step from the fill they sit on, so they read on the
148
+ canvas, the header, bands and any surface. Toned statuses keep their status
149
+ fills. `--status-draft-text` and `--status-archived-text` are now 50% text
150
+ into muted (60% in Cherry Glaze), so those labels keep 4.5:1 on every
151
+ neutral and hovered step; custom status tabs using them get the darker ink.
152
+ - New `--field-paint`: a field surface that paints a hover, drag or active
153
+ fill over its ground names it here, and `--fill-control` and its steps derive
154
+ from it. Hovered and dragged SortableList items, Board cards and lanes,
155
+ SelectionCards, AssetCards, interactive and selected Table rows, and hovered
156
+ or active SideNav rows (now field surfaces) set it, so badges, avatars and
157
+ neutral Buttons inside step from the fill actually shown. Every surface
158
+ resets it to `initial`. Custom hoverable containers set
159
+ `--field-paint: var(--field-hover)` beside their hover background and carry
160
+ `ds-field-surface`.
161
+ - TagsInput chips step 8% text from the field's current fill (rest, hover,
162
+ focus or invalid, exposed as `--tags-fill`) and are field surfaces, so chips
163
+ and their remove Buttons stay visible in every field state.
164
+ - Grouped avatars are cut apart by a transparent 2px gap (a CSS mask), so the
165
+ gap shows whatever is painted behind the group, including hovered rows. A
166
+ focused avatar rises uncut above its neighbour. Remove local rings or
167
+ borders added to separate grouped avatars.
168
+ - EntryPicker draft and removed items change only their ground, so reorderable
169
+ items step on hover and as drag placeholders like any other item. A
170
+ SortableList drag overlay keeps the list's card fill instead of the hover
171
+ step. It copies none of the item's classes or data attributes, so a toned
172
+ overlay is styled through `renderDragOverlay` content.
173
+ - Horizontal rules in the rich-text editor (`---`, saved as `horizontalRule`)
174
+ paint a 2px bar in `--fill-control-pressed`, and a selected rule shows the
175
+ focus outline. Bare page `hr` elements keep spacing only.
176
+ - The first SideNav section after a SideNavHeader has a tighter top padding.
177
+ - ColourPanel thumbs carry a surface ring and a text ring, so the selection is
178
+ visible over the colour it sits on. Swatches have an inner text-tinted
179
+ hairline, so a swatch matching the panel stays visible. Calendar and
180
+ ColourPanel header bands step 7% text from the raised panel, so they read in
181
+ every theme, including Black Hawaii and Cherry Glaze.
182
+ - Storyblocks have no start rail on the block or title bar, including selected,
183
+ draft and missing states. State fills and keyboard focus outlines remain;
184
+ bar/body padding no longer reserves rail space. Saved values and callbacks
185
+ are unchanged. Remove local CSS that restores a storyblock start rail.
186
+ - Light's `--color-surface-subtle` moves from `#eef2f7` to `#e9edf3` so bands,
187
+ Board lanes, the EditLayout rail, footers, neutral banners and empty states
188
+ separate from the canvas. Cherry Glaze bands and warning fills, and Black
189
+ Hawaii bands, raised surfaces and success/warning/danger fills, change to
190
+ keep states distinguishable.
191
+ Tone text is adjusted where the new soft fills need stronger contrast.
192
+ - New tokens: `--focus-width`, `--fill-control`, `--fill-control-hover`,
193
+ `--fill-control-pressed`, `--fill-indicator`, `--fill-indicator-hover`,
194
+ `--fill-indicator-pressed`, `--fill-band`, `--fill-row-alt`, `--fill-card`,
195
+ `--field-paint`, `--indicator-tint`, `--color-header`, `--button-active-bg`
196
+ and `--rail-direction`.
197
+ The field tint ladder is now 7/10/14/18%; invalid fill is 12% danger.
198
+ - `--button-active-bg` is the `active` Button variant's rest fill
199
+ (`--color-primary-soft` by default). Containers with a primary-soft selected
200
+ fill (selected Table rows, SelectionCards, AssetCards, EntryPicker results,
201
+ CollectionView selection toolbars and Board drop targets) raise it to
202
+ `--color-primary-soft-pressed` so active buttons stay visible. Hover and press
203
+ step from it on the soft ladder. A custom container with a soft selected fill
204
+ sets `--button-active-bg` to a fill that differs from its own.
205
+ - `--rail-direction` is `1` in left-to-right scopes and `-1` in right-to-left
206
+ ones, including nested `dir` scopes. The library derives it from `dir`;
207
+ multiply horizontal inset offsets for asset/table selection rails by it.
208
+ - Badge small/medium/large heights remain 20/24/28px. Fixed control heights,
209
+ picker contracts, callbacks, saved values and FormEditor schemas are unchanged.
210
+ `--asset-tile-min-width` and `--asset-tile-gap` remain supported grid sizing
211
+ tokens; they are not component aliases. Existing semantic colour tokens such
212
+ as `--color-border-strong` still support graphics, status and crop guides.
213
+
214
+ Verification for consuming projects:
215
+
216
+ - Repeat the searches and resolve all active code/configuration matches for
217
+ removed APIs. Run typecheck, tests and production builds for every consuming
218
+ application and shared package. Confirm package-root and component imports.
219
+ - Check all four themes, custom themed subtrees and nested overlays. Confirm
220
+ fields, buttons, badges and selected rows separate from their local ground.
221
+ - Exercise keyboard focus, checked/unchecked/indeterminate and disabled states,
222
+ validation, attached groups, selected/draft/missing items, drag placeholders,
223
+ contained images and expanded rich-text editors. Verify grouped selections
224
+ match primary Buttons in rest/hover/press/disabled states. Confirm rails appear
225
+ only on selected asset cards and table rows, including RTL. Check invalid
226
+ fields/editors, navigation, quotes, picker states and both message appearances
227
+ without rails or rail padding. Check softer
228
+ unchecked/off controls, and the distinct header/sidebar fills, including
229
+ header actions and scoped themes. Check narrow layouts and RTL.
230
+ - Hover invalid and keyboard-focused fields: the danger or focus fill remains.
231
+ Tab through attached ButtonGroups and confirm each focus ring is complete.
232
+ Drag Board cards, Board lanes and custom-overlay SortableList items with the
233
+ keyboard: the placeholder reads as a slot and the handle keeps its ring.
234
+ - Place selection cards, sortable lists, EntryPickers, AssetGrids and rich-text
235
+ editors on the canvas, in a Modal, a Drawer, a TableFrame and any custom
236
+ surface-coloured container: each keeps a visible shape. Check AvatarGroups
237
+ (including inside hovered rows), avatars and badges on the TopNav header,
238
+ neutral banners and Board lanes on the canvas, the EditLayout details rail
239
+ and narrow sheet, ColourPanel thumbs over matching colours, white and
240
+ near-surface swatches, and Calendar/ColourPanel headers in all themes.
241
+ - Hover SideNav rows with count badges, and hover and drag draft or removed
242
+ items in a reorderable EntryPicker. Hover interactive Table rows, cards and
243
+ list items that hold tag, draft or archived Badges and initials Avatars:
244
+ each stays visible on the hover fill. Put draft and archived Badges on bands
245
+ (the EditLayout rail, toolbars, footers) and the header.
246
+ - Type, hover, focus and invalidate a TagsInput: chips and their remove
247
+ Buttons stay visible. Place a bare Table on the canvas and confirm rows
248
+ alternate. Confirm the TopNav separates from the canvas beside the SideNav.
249
+ Insert `---` in a rich-text editor and select the rule. Show a SelectionCard
250
+ group error with some cards checked: checked cards remain distinct.
251
+ Hover and press `active` Buttons inside selected rows and cards: each step
252
+ moves further from rest.
253
+ - Confirm selection/errors do not move text or affixes, Badge sizes remain
254
+ stable, and saved form/editor values round-trip without changes. Refresh
255
+ affected visual snapshots only after inspecting the new styling.
256
+
257
+ ## 0.11.0
258
+
259
+ ### Breaking changes
260
+
261
+ - Every editable storyblock now shows its actions in its own title bar instead
262
+ of a popover on the selected block. Their accessible names include the item's
263
+ title so that several blocks never share one: the `Block actions` toolbar is
264
+ now `Block actions for <title>`, and its buttons are `Align left: <title>`,
265
+ `Full width: <title>`, `Align right: <title>`, `Replace <title>`,
266
+ `Edit <title>` (was `Edit entry` or `Edit asset`) and `Remove <title>` (was
267
+ `Remove block`). A missing item's title is `Unavailable entry` or
268
+ `Unavailable asset`.
269
+ - While any picker is suspended or its source `isCreating`, Replace is disabled
270
+ instead of hidden. While a source's picker is suspended (`isDialogHidden`),
271
+ that kind's blocks keep their actions visible but disabled and can't be
272
+ dragged. Previously their popover stayed closed.
273
+ - The `.ds-storyblock__missing` hook is removed. A missing block renders its
274
+ title, note and ID in `.ds-storyblock__body` with the shared `.ds-entry__*`
275
+ hooks. `.ds-storyblock__actions` is now an inline group in the title bar, not
276
+ a raised popover panel, and only the grip and kind label
277
+ (`.ds-storyblock__kind`) are the drag handle.
278
+
279
+ Changes:
280
+
281
+ - Left and right blocks use 62% of the writing width, and full width when the
282
+ editor's writing width is under 32rem. The title bar wraps its actions in a
283
+ narrow block and uses the item's `tone` for draft styling.
284
+ - Pressing a title-bar action keeps focus where the writer is, and Remove returns
285
+ focus to the editor where the block was. Only the selected block's bar is in
286
+ the tab order, as a single stop: arrow keys, Home and End move between its
287
+ actions.
288
+ - A read-only block shows its kind and body and is never shown as selected. A
289
+ lookup error appears inside the block's padding.
290
+
291
+ Adoption:
292
+
293
+ 1. Pass `tone: "draft"` with an unpublished picker item and put any publication
294
+ guidance in `metadata`. Sources otherwise keep the shared picker item
295
+ contract.
296
+ 2. Update tests and automation that find block actions by name, including those
297
+ that expected one `Remove block` or `Replace` button per document. Query them
298
+ by the item's title, for example the button
299
+ `Remove The corner bookshop` inside the toolbar
300
+ `Block actions for The corner bookshop`. Assert that Replace is disabled, not
301
+ absent, while a picker is suspended.
302
+ 3. Move application styles that target `.ds-storyblock__missing` or the
303
+ storyblock popover to the title-bar hooks, if they are still needed.
304
+
305
+ Compatibility: saved storyblock values, node attributes and the embed source API
306
+ are unchanged. Keyboard writers reach a block's actions by selecting it with the
307
+ arrow keys and pressing Tab.
308
+
309
+ Verification: in a consuming editor with several blocks, check that each block's
310
+ actions name its item; pressing an alignment button keeps the caret in the
311
+ editor; dragging from a button never moves the block, while dragging the grip
312
+ does; Remove returns focus to the editor; Tab from the caret leaves the field
313
+ without stopping at block actions; and a selected block's bar is one tab stop.
314
+ Suspend a replacement (`isDialogHidden`) and confirm that its kind's blocks can't
315
+ be removed, moved or edited. Check drafts, missing items, lookup errors,
316
+ read-only editors and narrow editors. Run the consuming app's checks.
317
+
5
318
  ## 0.10.2
6
319
 
7
320
  - Add optional RichTextEditor `embeds` and FormEditor `embedSources` for entry and
@@ -117,7 +117,7 @@ var A = (e, t) => {
117
117
  strategy: C,
118
118
  children: U
119
119
  }) : U, /* @__PURE__ */ d(p, { children: [E && N === "card" ? /* @__PURE__ */ d("div", {
120
- className: "ds-board-card",
120
+ className: "ds-board-card ds-field-surface",
121
121
  "data-overlay": !0,
122
122
  children: [/* @__PURE__ */ u("span", {
123
123
  className: "ds-board-card__handle",
@@ -128,7 +128,7 @@ var A = (e, t) => {
128
128
  children: i?.(E)
129
129
  })]
130
130
  }) : null, E && N === "column" ? /* @__PURE__ */ u("div", {
131
- className: "ds-board-column",
131
+ className: "ds-board-column ds-field-surface",
132
132
  "data-overlay": !0,
133
133
  children: o?.(E)
134
134
  }) : null] })]
@@ -157,7 +157,11 @@ var A = (e, t) => {
157
157
  transform: D.Translate.toString(C),
158
158
  transition: w
159
159
  },
160
- className: ["ds-board-column", l].filter(Boolean).join(" "),
160
+ className: [
161
+ "ds-board-column",
162
+ "ds-field-surface",
163
+ l
164
+ ].filter(Boolean).join(" "),
161
165
  "data-over": h === "card" && g === e || void 0,
162
166
  "data-dragging": O || void 0,
163
167
  "aria-label": r,
@@ -214,7 +218,11 @@ var A = (e, t) => {
214
218
  transform: D.Translate.toString(h),
215
219
  transition: g
216
220
  },
217
- className: ["ds-board-card", a].filter(Boolean).join(" "),
221
+ className: [
222
+ "ds-board-card",
223
+ "ds-field-surface",
224
+ a
225
+ ].filter(Boolean).join(" "),
218
226
  "data-dragging": _ || void 0,
219
227
  "data-idle": v && v !== e ? "" : void 0,
220
228
  ...c,
@@ -236,4 +244,4 @@ var A = (e, t) => {
236
244
  //#endregion
237
245
  export { F as n, P as r, N as t };
238
246
 
239
- //# sourceMappingURL=Board-Cnyqrc-R.js.map
247
+ //# sourceMappingURL=Board-BCS7sDXg.js.map