themelia-react-ui 2.0.4 → 2.0.5

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 (588) hide show
  1. package/CHANGELOG.md +135 -0
  2. package/README.md +113 -18
  3. package/dist/{accordion-96o0pN62.js → accordion-B9MHG0cT.js} +11 -11
  4. package/dist/accordion-B9MHG0cT.js.map +1 -0
  5. package/dist/{action-menu-CHgs8vmj.js → action-menu-Dr8K-ghE.js} +48 -45
  6. package/dist/action-menu-Dr8K-ghE.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
  8. package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
  9. package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-C58tQcBy.js} +210 -174
  10. package/dist/ai-artifact-C58tQcBy.js.map +1 -0
  11. package/dist/app-shell-B_IuNWOo.js +321 -0
  12. package/dist/app-shell-B_IuNWOo.js.map +1 -0
  13. package/dist/{attachment-DkoqHPPl.js → attachment-Dg_69lPS.js} +9 -9
  14. package/dist/{attachment-DkoqHPPl.js.map → attachment-Dg_69lPS.js.map} +1 -1
  15. package/dist/{auth-D2FVZ1MH.js → auth-DTkkshS8.js} +43 -46
  16. package/dist/auth-DTkkshS8.js.map +1 -0
  17. package/dist/{avatar-DWO_HHhB.js → avatar-CeZaFmNH.js} +8 -8
  18. package/dist/avatar-CeZaFmNH.js.map +1 -0
  19. package/dist/{badge-DErMA7ul.js → badge-xIiV_E7f.js} +5 -5
  20. package/dist/{badge-DErMA7ul.js.map → badge-xIiV_E7f.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +2 -372
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +2 -2
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +2 -2
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +7 -7
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +12 -12
  51. package/dist/base/repeaters.js.map +1 -1
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +2 -2
  54. package/dist/base/signature-pad.js +7 -7
  55. package/dist/base/signature-pad.js.map +1 -1
  56. package/dist/base/skeleton.js +1 -1
  57. package/dist/base/spinner.js +4 -4
  58. package/dist/base/structure.js +1 -1
  59. package/dist/base/table.js +1 -1
  60. package/dist/base/text-inputs.js +2 -2
  61. package/dist/base/toaster.js +36 -36
  62. package/dist/base/toaster.js.map +1 -1
  63. package/dist/base/tree.js +1 -1
  64. package/dist/base/upload-queue.js +1 -1
  65. package/dist/base/upload.js +3 -3
  66. package/dist/base/value-inputs.js +1 -1
  67. package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-Cb8cuvyy.js} +6 -6
  68. package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
  69. package/dist/blocks/admin.js +21 -21
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +230 -216
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +325 -306
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1259 -1184
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +2 -2
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +11 -11
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-B-WFKecD.js → breadcrumbs-J-K2kl4c.js} +6 -6
  86. package/dist/{breadcrumbs-B-WFKecD.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
  87. package/dist/{button-DkmK-z8E.js → button-S2Cubiiz.js} +3 -3
  88. package/dist/button-S2Cubiiz.js.map +1 -0
  89. package/dist/{buttons-BbfzgczK.js → buttons-BedGfygC.js} +16 -16
  90. package/dist/buttons-BedGfygC.js.map +1 -0
  91. package/dist/cards-rNX1M4Xn.js +69 -0
  92. package/dist/cards-rNX1M4Xn.js.map +1 -0
  93. package/dist/cascader-B1MiqkBq.js +439 -0
  94. package/dist/cascader-B1MiqkBq.js.map +1 -0
  95. package/dist/chart-Darg_0Kv.js +162 -0
  96. package/dist/chart-Darg_0Kv.js.map +1 -0
  97. package/dist/{checkbox-CzYUTPeJ.js → checkbox-fflqmODR.js} +2 -2
  98. package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-fflqmODR.js.map} +1 -1
  99. package/dist/{choice-inputs-JLtij2y4.js → choice-inputs-zUgBZfE4.js} +258 -257
  100. package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
  101. package/dist/{code-block-CGNaUtAE.js → code-block-BzmM9Eig.js} +8 -8
  102. package/dist/code-block-BzmM9Eig.js.map +1 -0
  103. package/dist/{collapsible-Do4G0zcC.js → collapsible-BkAI_XD4.js} +5 -5
  104. package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BkAI_XD4.js.map} +1 -1
  105. package/dist/{collection-content-C0e8SsTm.js → collection-content-gDh1v6O4.js} +3 -3
  106. package/dist/{collection-content-C0e8SsTm.js.map → collection-content-gDh1v6O4.js.map} +1 -1
  107. package/dist/combobox-BEx0vJgF.js +362 -0
  108. package/dist/combobox-BEx0vJgF.js.map +1 -0
  109. package/dist/{combobox-CBJDs6w_.js → combobox-BwzoXFSG.js} +254 -247
  110. package/dist/combobox-BwzoXFSG.js.map +1 -0
  111. package/dist/{command-D8NrBj-b.js → command-CrlPIL6m.js} +11 -11
  112. package/dist/command-CrlPIL6m.js.map +1 -0
  113. package/dist/{comments-Di4w0H_S.js → comments-Dmpp0YIc.js} +29 -29
  114. package/dist/{comments-Di4w0H_S.js.map → comments-Dmpp0YIc.js.map} +1 -1
  115. package/dist/components/base/action-menu/action-menu.d.ts +7 -1
  116. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  117. package/dist/components/base/cards/card.recipes.d.ts +6 -4
  118. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
  119. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
  120. package/dist/components/base/cards/smart-card.types.d.ts +3 -4
  121. package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
  122. package/dist/components/base/chart/chart.d.ts +6 -1
  123. package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
  124. package/dist/components/base/combobox/index.d.ts +4 -2
  125. package/dist/components/base/feedback/alert.d.ts +1 -1
  126. package/dist/components/base/forms/form-sizing.d.ts +7 -7
  127. package/dist/components/base/forms/workflow.d.ts +7 -1
  128. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
  129. package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
  130. package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
  131. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
  132. package/dist/components/base/navigation/page-header/page-header.d.ts +10 -3
  133. package/dist/components/base/popover/popover.d.ts +3 -3
  134. package/dist/components/base/popover/popover.recipes.d.ts +10 -6
  135. package/dist/components/base/sheet/sheet.d.ts +2 -0
  136. package/dist/components/base/sidebar/index.d.ts +1 -1
  137. package/dist/components/base/sidebar/sidebar.d.ts +27 -5
  138. package/dist/components/base/toaster/index.d.ts +1 -0
  139. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
  140. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
  141. package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
  142. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  143. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
  144. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
  145. package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
  146. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
  147. package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
  148. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
  149. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
  150. package/dist/components/blocks/commerce/index.d.ts +7 -6
  151. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
  152. package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
  153. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
  154. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  155. package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
  156. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
  157. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
  158. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
  159. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
  160. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
  161. package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
  162. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
  163. package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
  164. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  165. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
  166. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  167. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
  168. package/dist/components/features/activities/activities.types.d.ts +8 -2
  169. package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
  170. package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
  171. package/dist/components/features/event-calendar/colors.d.ts +2 -2
  172. package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
  173. package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
  174. package/dist/components/features/filters/filters.strings.d.ts +4 -0
  175. package/dist/components/features/filters/filters.types.d.ts +3 -0
  176. package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
  177. package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
  178. package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
  179. package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
  180. package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
  181. package/dist/components/features/global-search/global-search.types.d.ts +2 -0
  182. package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
  183. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
  184. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  185. package/dist/components/features/media-library/media-library.types.d.ts +14 -4
  186. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  187. package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
  188. package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
  189. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  190. package/dist/components/features/products/products.strings.d.ts +9 -1
  191. package/dist/components/features/products/products.types.d.ts +43 -6
  192. package/dist/components/features/resource/resource.d.ts +5 -1
  193. package/dist/components/features/resource/resource.types.d.ts +12 -1
  194. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
  195. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
  196. package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
  197. package/dist/components/features/table/table.types.d.ts +1 -1
  198. package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
  199. package/dist/components/layout/app-shell/index.d.ts +1 -1
  200. package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
  201. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
  202. package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
  203. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  204. package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
  205. package/dist/components/layout/header/header.recipes.d.ts +6 -0
  206. package/dist/components/layout/header/header.types.d.ts +6 -6
  207. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
  208. package/dist/components/layout/page/index.d.ts +2 -1
  209. package/dist/components/layout/page/page.d.ts +1 -0
  210. package/dist/components/layout/page/page.strings.d.ts +11 -0
  211. package/dist/components/layout/page/page.types.d.ts +69 -17
  212. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  213. package/dist/components/layout/settings/settings.d.ts +9 -2
  214. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  215. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
  216. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
  217. package/dist/components/layout/sidebar/index.d.ts +2 -1
  218. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
  219. package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
  220. package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
  221. package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
  222. package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
  223. package/dist/components/ui/alert-dialog.d.ts +2 -2
  224. package/dist/components/ui/combobox.d.ts +1 -1
  225. package/dist/components/ui/dialog.d.ts +2 -2
  226. package/dist/components/ui/overlay-layer.d.ts +18 -0
  227. package/dist/components/ui/sheet.d.ts +5 -1
  228. package/dist/components/ui/sidebar-state.d.ts +82 -0
  229. package/dist/components/ui/sidebar.d.ts +5 -17
  230. package/dist/{containers-CRmHf7GP.js → containers-CIxwbZt5.js} +26 -18
  231. package/dist/containers-CIxwbZt5.js.map +1 -0
  232. package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
  233. package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
  234. package/dist/{copyable-CnGCZdX4.js → copyable-DIznBqiT.js} +7 -7
  235. package/dist/{copyable-CnGCZdX4.js.map → copyable-DIznBqiT.js.map} +1 -1
  236. package/dist/{data-display-D4oujtx0.js → data-display-BdgCAw8T.js} +268 -277
  237. package/dist/data-display-BdgCAw8T.js.map +1 -0
  238. package/dist/{date-Q7jnXxpk.js → date-Cq8ioE4o.js} +5 -5
  239. package/dist/{date-Q7jnXxpk.js.map → date-Cq8ioE4o.js.map} +1 -1
  240. package/dist/{date-picker-zOt1oNss.js → date-picker-RlIzKom_.js} +446 -437
  241. package/dist/date-picker-RlIzKom_.js.map +1 -0
  242. package/dist/{date-pickers-cj8IXbDC.js → date-pickers-DY-CpXS1.js} +12 -12
  243. package/dist/{date-pickers-cj8IXbDC.js.map → date-pickers-DY-CpXS1.js.map} +1 -1
  244. package/dist/{display-BB4BL_-K.js → display-KsZLw9Ov.js} +9 -9
  245. package/dist/{display-BB4BL_-K.js.map → display-KsZLw9Ov.js.map} +1 -1
  246. package/dist/dropdown-menu-CLs8Lihj.js +194 -0
  247. package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
  248. package/dist/features/activities.js +302 -253
  249. package/dist/features/activities.js.map +1 -1
  250. package/dist/features/ai-chat.js +15 -14
  251. package/dist/features/ai-chat.js.map +1 -1
  252. package/dist/features/appointment-calendar.js +22 -22
  253. package/dist/features/appointment-calendar.js.map +1 -1
  254. package/dist/features/async-preview.js +11 -10
  255. package/dist/features/async-preview.js.map +1 -1
  256. package/dist/features/combobox.js +1 -1
  257. package/dist/features/comments.js +1 -1
  258. package/dist/features/data-view.js +13 -13
  259. package/dist/features/data-view.js.map +1 -1
  260. package/dist/features/email-composer.js +237 -238
  261. package/dist/features/email-composer.js.map +1 -1
  262. package/dist/features/event-calendar.js +140 -146
  263. package/dist/features/event-calendar.js.map +1 -1
  264. package/dist/features/filters.js +1 -1
  265. package/dist/features/global-search.js +167 -138
  266. package/dist/features/global-search.js.map +1 -1
  267. package/dist/features/kanban.js +6 -7
  268. package/dist/features/kanban.js.map +1 -1
  269. package/dist/features/map.js +269 -260
  270. package/dist/features/map.js.map +1 -1
  271. package/dist/features/media-library.js +375 -326
  272. package/dist/features/media-library.js.map +1 -1
  273. package/dist/features/mentions.js +1 -1
  274. package/dist/features/overlays.js +1 -1
  275. package/dist/features/products.js +1266 -1193
  276. package/dist/features/products.js.map +1 -1
  277. package/dist/features/questionnaire.js +13 -13
  278. package/dist/features/questionnaire.js.map +1 -1
  279. package/dist/features/resource-assignment.js +8 -8
  280. package/dist/features/resource.js +69 -66
  281. package/dist/features/resource.js.map +1 -1
  282. package/dist/features/rich-text-editor.js +2 -2
  283. package/dist/features/schema-form.js +13 -13
  284. package/dist/features/suggestions.js +3 -3
  285. package/dist/features/sync.js +3 -3
  286. package/dist/features/table.js +1 -1
  287. package/dist/features/theme-tweaker.js +94 -95
  288. package/dist/features/theme-tweaker.js.map +1 -1
  289. package/dist/{feedback-DZNL5Lg1.js → feedback-Dm4izqFn.js} +80 -79
  290. package/dist/feedback-Dm4izqFn.js.map +1 -0
  291. package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
  292. package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
  293. package/dist/{filters-BcT-uoFy.js → filters-DzgSJpMK.js} +693 -645
  294. package/dist/filters-DzgSJpMK.js.map +1 -0
  295. package/dist/{form-field-CsgRmdit.js → form-field-BriWAXyg.js} +6 -6
  296. package/dist/{form-field-CsgRmdit.js.map → form-field-BriWAXyg.js.map} +1 -1
  297. package/dist/{form-sizing-NXgjkmBG.js → form-sizing-Bs2qFUeE.js} +4 -4
  298. package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
  299. package/dist/{forms-BV5m5aQF.js → forms-C0RGnJTe.js} +17 -13
  300. package/dist/forms-C0RGnJTe.js.map +1 -0
  301. package/dist/{forms-numeric-Cd33AKbD.js → forms-numeric-DIhghX1Q.js} +86 -82
  302. package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
  303. package/dist/{header-BA697l4a.js → header-DMMxG__r.js} +67 -63
  304. package/dist/header-DMMxG__r.js.map +1 -0
  305. package/dist/header.recipes-BigdJjw1.js +6 -0
  306. package/dist/header.recipes-BigdJjw1.js.map +1 -0
  307. package/dist/{hooks-BQ-L7Uu2.js → hooks-DB6CJ4MR.js} +26 -14
  308. package/dist/hooks-DB6CJ4MR.js.map +1 -0
  309. package/dist/{icon-badge-COWbCCWu.js → icon-badge-DZF-YjQp.js} +4 -4
  310. package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
  311. package/dist/index.js +4 -5
  312. package/dist/{input-Cdw4k0fb.js → input-CvyDQlY7.js} +8 -8
  313. package/dist/{input-Cdw4k0fb.js.map → input-CvyDQlY7.js.map} +1 -1
  314. package/dist/input-DMBwAZmr.js +21 -0
  315. package/dist/input-DMBwAZmr.js.map +1 -0
  316. package/dist/{item-BvZ2DR_x.js → item-DjCcM18E.js} +16 -16
  317. package/dist/item-DjCcM18E.js.map +1 -0
  318. package/dist/layout/app-shell.js +1 -1
  319. package/dist/layout/auth.js +1 -1
  320. package/dist/layout/containers.js +1 -1
  321. package/dist/layout/header.js +1 -1
  322. package/dist/layout/hooks.js +1 -1
  323. package/dist/layout/navigation.js +1 -1
  324. package/dist/layout/page.js +2 -2
  325. package/dist/layout/settings.js +1 -1
  326. package/dist/layout/sidebar.js +3 -3
  327. package/dist/layout/workspace.js +1 -1
  328. package/dist/layout.js +11 -11
  329. package/dist/lib/affordance-geometry.generated.d.ts +35 -35
  330. package/dist/lib/control-group-recipes.d.ts +5 -5
  331. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  332. package/dist/lib/motion-recipes.d.ts +3 -0
  333. package/dist/lib/navigation-row-recipes.d.ts +7 -7
  334. package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
  335. package/dist/lib/portal-recipes.d.ts +3 -0
  336. package/dist/lib/token-merge.generated.d.ts +13 -10
  337. package/dist/lib/utils.js +1 -1
  338. package/dist/map-demo-tile.svg +1 -1
  339. package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C-vChPmE.js} +6 -6
  340. package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C-vChPmE.js.map} +1 -1
  341. package/dist/{mentions-RKOQaaIB.js → mentions-0_4nWuI-.js} +10 -10
  342. package/dist/{mentions-RKOQaaIB.js.map → mentions-0_4nWuI-.js.map} +1 -1
  343. package/dist/{message-INU2xsxu.js → message-g8p7eVtN.js} +7 -7
  344. package/dist/message-g8p7eVtN.js.map +1 -0
  345. package/dist/{metadata-list-qVV7AVxa.js → metadata-list-C3MkU-Om.js} +64 -64
  346. package/dist/metadata-list-C3MkU-Om.js.map +1 -0
  347. package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
  348. package/dist/motion-recipes-DitYv6P2.js.map +1 -0
  349. package/dist/navigation-C90-oQFq.js +255 -0
  350. package/dist/navigation-C90-oQFq.js.map +1 -0
  351. package/dist/{navigation-BQNcg1jT.js → navigation-DaRjthVk.js} +101 -82
  352. package/dist/navigation-DaRjthVk.js.map +1 -0
  353. package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
  354. package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
  355. package/dist/{number-E_OiIfJz.js → number-CRU3kGuk.js} +5 -5
  356. package/dist/{number-E_OiIfJz.js.map → number-CRU3kGuk.js.map} +1 -1
  357. package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
  358. package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
  359. package/dist/overlays-BSgCtM2v.js +1013 -0
  360. package/dist/overlays-BSgCtM2v.js.map +1 -0
  361. package/dist/page-DUUKDAjo.js +331 -0
  362. package/dist/page-DUUKDAjo.js.map +1 -0
  363. package/dist/page-header-commands-7P3sfE9u.js +193 -0
  364. package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
  365. package/dist/{pagination-Ch8X_47u.js → pagination-CgCjElfu.js} +7 -7
  366. package/dist/{pagination-Ch8X_47u.js.map → pagination-CgCjElfu.js.map} +1 -1
  367. package/dist/popover-B85RenIl.js +201 -0
  368. package/dist/popover-B85RenIl.js.map +1 -0
  369. package/dist/{popover-menu-BYaCdFhf.js → popover-menu-DlnQ2zlR.js} +7 -7
  370. package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
  371. package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
  372. package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
  373. package/dist/portal-recipes-BpsV_iRw.js +9 -0
  374. package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
  375. package/dist/{primitives-Du64iDbb.js → primitives-ByWgGUgt.js} +5 -5
  376. package/dist/{primitives-Du64iDbb.js.map → primitives-ByWgGUgt.js.map} +1 -1
  377. package/dist/primitives.js +4 -4
  378. package/dist/{progress-BvF2oCdV.js → progress-BJhQP9WX.js} +9 -9
  379. package/dist/{progress-BvF2oCdV.js.map → progress-BJhQP9WX.js.map} +1 -1
  380. package/dist/{receipt-D789Jwyy.js → receipt-tOc7B3hw.js} +7 -7
  381. package/dist/receipt-tOc7B3hw.js.map +1 -0
  382. package/dist/{rich-text-CLJEf76s.js → rich-text-Dth5E882.js} +3 -3
  383. package/dist/{rich-text-CLJEf76s.js.map → rich-text-Dth5E882.js.map} +1 -1
  384. package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-C1fOjBTd.js} +429 -430
  385. package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
  386. package/dist/{rich-text-editor-toolbar-L__e4x47.js → rich-text-editor-toolbar-laT3tpBT.js} +32 -28
  387. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
  388. package/dist/{scroll-area-La5RXsEk.js → scroll-area-B0dB2cBi.js} +2 -2
  389. package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
  390. package/dist/{separator-DAEV0w65.js → separator-Bb17I4pu.js} +2 -2
  391. package/dist/{separator-DAEV0w65.js.map → separator-Bb17I4pu.js.map} +1 -1
  392. package/dist/{separator-GNfPG-90.js → separator-Ct_WSWTJ.js} +3 -3
  393. package/dist/{separator-GNfPG-90.js.map → separator-Ct_WSWTJ.js.map} +1 -1
  394. package/dist/services/actions.js +1 -1
  395. package/dist/{settings-BA2iboic.js → settings-Bar5wiSo.js} +31 -38
  396. package/dist/settings-Bar5wiSo.js.map +1 -0
  397. package/dist/sheet-BGPERY55.js +250 -0
  398. package/dist/sheet-BGPERY55.js.map +1 -0
  399. package/dist/sidebar-D-JYMMbY.js +686 -0
  400. package/dist/sidebar-D-JYMMbY.js.map +1 -0
  401. package/dist/sidebar-f9gRWXIR.js +1001 -0
  402. package/dist/sidebar-f9gRWXIR.js.map +1 -0
  403. package/dist/skeleton-BapcJd9C.js +265 -0
  404. package/dist/skeleton-BapcJd9C.js.map +1 -0
  405. package/dist/smart-card-CW0hjetE.js +617 -0
  406. package/dist/smart-card-CW0hjetE.js.map +1 -0
  407. package/dist/{structure-C0V0_Fyf.js → structure-DuxKl954.js} +2 -2
  408. package/dist/{structure-C0V0_Fyf.js.map → structure-DuxKl954.js.map} +1 -1
  409. package/dist/style.css +1 -1
  410. package/dist/{table-CpvnzJn9.js → table-B4TE7iOV.js} +3 -3
  411. package/dist/{table-CpvnzJn9.js.map → table-B4TE7iOV.js.map} +1 -1
  412. package/dist/{table-DH7rozUv.js → table-CFOWY9pQ.js} +394 -388
  413. package/dist/table-CFOWY9pQ.js.map +1 -0
  414. package/dist/{tabs-eqVsJZWO.js → tabs-e7ko9S2o.js} +11 -11
  415. package/dist/tabs-e7ko9S2o.js.map +1 -0
  416. package/dist/{text-inputs-DXItiR0O.js → text-inputs-B1culiSK.js} +17 -17
  417. package/dist/text-inputs-B1culiSK.js.map +1 -0
  418. package/dist/theme.css +40 -37
  419. package/dist/{timelines-DmtztAY_.js → timelines-D3Sl9ueq.js} +13 -12
  420. package/dist/timelines-D3Sl9ueq.js.map +1 -0
  421. package/dist/tooltip-8wz5S_Zr.js +113 -0
  422. package/dist/tooltip-8wz5S_Zr.js.map +1 -0
  423. package/dist/{tree-CV11PURP.js → tree-CzUJHnFs.js} +8 -8
  424. package/dist/{tree-CV11PURP.js.map → tree-CzUJHnFs.js.map} +1 -1
  425. package/dist/typography/rich-text.js +1 -1
  426. package/dist/{typography-CSyJrh28.js → typography-BQnine1k.js} +12 -12
  427. package/dist/{typography-CSyJrh28.js.map → typography-BQnine1k.js.map} +1 -1
  428. package/dist/typography.js +1 -1
  429. package/dist/ui-provider-C-74NVLc.js +178 -0
  430. package/dist/ui-provider-C-74NVLc.js.map +1 -0
  431. package/dist/ui-provider.js +2 -3
  432. package/dist/{upload-C9SA0X-8.js → upload-BOW6U2tI.js} +25 -24
  433. package/dist/upload-BOW6U2tI.js.map +1 -0
  434. package/dist/{upload-queue-DhQJiSRc.js → upload-queue-qUXn1ykN.js} +16 -14
  435. package/dist/upload-queue-qUXn1ykN.js.map +1 -0
  436. package/dist/{usage-card-DVTRDmGz.js → usage-card-BeSLY0i0.js} +24 -17
  437. package/dist/usage-card-BeSLY0i0.js.map +1 -0
  438. package/dist/{utils-CF3c95Io.js → utils-B6kKb8jB.js} +237 -141
  439. package/dist/utils-B6kKb8jB.js.map +1 -0
  440. package/dist/value-inputs-skdVB2zh.js +980 -0
  441. package/dist/value-inputs-skdVB2zh.js.map +1 -0
  442. package/dist/{value-typography-ClupF0Gz.js → value-typography-uAmWUAL1.js} +2 -2
  443. package/dist/{value-typography-ClupF0Gz.js.map → value-typography-uAmWUAL1.js.map} +1 -1
  444. package/dist/{workspace-9EFVXUyk.js → workspace-DHeHv0qw.js} +50 -49
  445. package/dist/workspace-DHeHv0qw.js.map +1 -0
  446. package/docs/consumer-skill/SKILL.md +4 -3
  447. package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
  448. package/docs/consumer-skill/examples/app-layout.tsx +52 -1
  449. package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
  450. package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
  451. package/docs/consumer-skill/examples/detail.tsx +5 -4
  452. package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
  453. package/docs/consumer-skill/examples/index-table.tsx +4 -4
  454. package/docs/consumer-skill/examples/manifest.json +38 -1
  455. package/docs/consumer-skill/examples/product-media.tsx +41 -0
  456. package/docs/consumer-skill/examples/product-parts.tsx +81 -0
  457. package/docs/consumer-skill/examples/rhf-edit-page.tsx +1 -1
  458. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
  459. package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
  460. package/docs/consumer-skill/references/agents-md.md +19 -17
  461. package/docs/consumer-skill/references/analytics.md +18 -1
  462. package/docs/consumer-skill/references/commerce-composition.md +97 -0
  463. package/docs/consumer-skill/references/component-contracts.json +7131 -1754
  464. package/docs/consumer-skill/references/composition-mapping.md +17 -3
  465. package/docs/consumer-skill/references/composition.md +159 -31
  466. package/docs/consumer-skill/references/critique-rubric.md +98 -0
  467. package/docs/consumer-skill/references/custom-composition.md +261 -0
  468. package/docs/consumer-skill/references/data-reading.md +79 -0
  469. package/docs/consumer-skill/references/design-contract.md +11 -9
  470. package/docs/consumer-skill/references/discovery.md +27 -3
  471. package/docs/consumer-skill/references/domain-structures.md +124 -0
  472. package/docs/consumer-skill/references/installation.md +15 -4
  473. package/docs/consumer-skill/references/integration.md +35 -0
  474. package/docs/consumer-skill/references/product-composition.md +94 -0
  475. package/docs/consumer-skill/references/public-api.json +2881 -420
  476. package/docs/consumer-skill/references/review.md +39 -2
  477. package/docs/consumer-skill/references/rhf-workflows.md +7 -0
  478. package/docs/consumer-skill/references/screen-archetypes.md +19 -7
  479. package/docs/consumer-skill/references/screen-decisions.md +126 -0
  480. package/docs/consumer-skill/references/theming.md +17 -18
  481. package/docs/consumer-skill/references/tokens.json +9 -9
  482. package/docs/consumer-skill/references/view-craft.md +153 -0
  483. package/docs/consumer-skill/references/view-spec.md +73 -0
  484. package/docs/consumer-skill/references/workflows.md +7 -1
  485. package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
  486. package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
  487. package/docs/consumer-skill/scripts/composition.mjs +61 -5
  488. package/docs/consumer-skill/scripts/discovery.mjs +54 -0
  489. package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
  490. package/docs/consumer-skill/scripts/inspection.mjs +73 -18
  491. package/docs/consumer-skill/scripts/setup-skills.mjs +41 -6
  492. package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
  493. package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
  494. package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
  495. package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
  496. package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
  497. package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
  498. package/package.json +1 -1
  499. package/dist/accordion-96o0pN62.js.map +0 -1
  500. package/dist/action-menu-CHgs8vmj.js.map +0 -1
  501. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
  502. package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
  503. package/dist/app-shell-D63ATkIK.js +0 -237
  504. package/dist/app-shell-D63ATkIK.js.map +0 -1
  505. package/dist/auth-D2FVZ1MH.js.map +0 -1
  506. package/dist/avatar-DWO_HHhB.js.map +0 -1
  507. package/dist/base/cascader.js.map +0 -1
  508. package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
  509. package/dist/button-DkmK-z8E.js.map +0 -1
  510. package/dist/buttons-BbfzgczK.js.map +0 -1
  511. package/dist/cards-4JTWqvVe.js +0 -68
  512. package/dist/cards-4JTWqvVe.js.map +0 -1
  513. package/dist/chart-C19flDQb.js +0 -155
  514. package/dist/chart-C19flDQb.js.map +0 -1
  515. package/dist/choice-inputs-JLtij2y4.js.map +0 -1
  516. package/dist/code-block-CGNaUtAE.js.map +0 -1
  517. package/dist/combobox-CBJDs6w_.js.map +0 -1
  518. package/dist/combobox-hbhSS18O.js +0 -355
  519. package/dist/combobox-hbhSS18O.js.map +0 -1
  520. package/dist/command-D8NrBj-b.js.map +0 -1
  521. package/dist/containers-CRmHf7GP.js.map +0 -1
  522. package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
  523. package/dist/data-display-D4oujtx0.js.map +0 -1
  524. package/dist/date-picker-zOt1oNss.js.map +0 -1
  525. package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
  526. package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
  527. package/dist/feedback-DZNL5Lg1.js.map +0 -1
  528. package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
  529. package/dist/filters-BcT-uoFy.js.map +0 -1
  530. package/dist/form-sizing-NXgjkmBG.js.map +0 -1
  531. package/dist/forms-BV5m5aQF.js.map +0 -1
  532. package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
  533. package/dist/header-BA697l4a.js.map +0 -1
  534. package/dist/hooks-BQ-L7Uu2.js.map +0 -1
  535. package/dist/input-DOPL5_QE.js +0 -21
  536. package/dist/input-DOPL5_QE.js.map +0 -1
  537. package/dist/item-BvZ2DR_x.js.map +0 -1
  538. package/dist/message-INU2xsxu.js.map +0 -1
  539. package/dist/metadata-list-qVV7AVxa.js.map +0 -1
  540. package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
  541. package/dist/navigation-BQNcg1jT.js.map +0 -1
  542. package/dist/navigation-DLF3E1IC.js +0 -145
  543. package/dist/navigation-DLF3E1IC.js.map +0 -1
  544. package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
  545. package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
  546. package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
  547. package/dist/overlays-BlKynmde.js +0 -1004
  548. package/dist/overlays-BlKynmde.js.map +0 -1
  549. package/dist/page-CIwNUtGr.js +0 -227
  550. package/dist/page-CIwNUtGr.js.map +0 -1
  551. package/dist/page-header-commands-DFMlNYzN.js +0 -128
  552. package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
  553. package/dist/popover-uwzX2vo7.js +0 -198
  554. package/dist/popover-uwzX2vo7.js.map +0 -1
  555. package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
  556. package/dist/receipt-D789Jwyy.js.map +0 -1
  557. package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
  558. package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
  559. package/dist/settings-BA2iboic.js.map +0 -1
  560. package/dist/sheet-DoAxTb2J.js +0 -213
  561. package/dist/sheet-DoAxTb2J.js.map +0 -1
  562. package/dist/sidebar-ByqKR_W5.js +0 -512
  563. package/dist/sidebar-ByqKR_W5.js.map +0 -1
  564. package/dist/sidebar-D2iSnGJ7.js +0 -619
  565. package/dist/sidebar-D2iSnGJ7.js.map +0 -1
  566. package/dist/skeleton-CUj8O5Bd.js +0 -264
  567. package/dist/skeleton-CUj8O5Bd.js.map +0 -1
  568. package/dist/smart-card-CqkzQsK-.js +0 -614
  569. package/dist/smart-card-CqkzQsK-.js.map +0 -1
  570. package/dist/table-DH7rozUv.js.map +0 -1
  571. package/dist/tabs-eqVsJZWO.js.map +0 -1
  572. package/dist/text-inputs-DXItiR0O.js.map +0 -1
  573. package/dist/theme-scope-BJ6eE2xt.js +0 -50
  574. package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
  575. package/dist/timelines-DmtztAY_.js.map +0 -1
  576. package/dist/tooltip-B4hjKtoV.js +0 -111
  577. package/dist/tooltip-B4hjKtoV.js.map +0 -1
  578. package/dist/ui-provider-CQCuCBcy.js +0 -136
  579. package/dist/ui-provider-CQCuCBcy.js.map +0 -1
  580. package/dist/upload-C9SA0X-8.js.map +0 -1
  581. package/dist/upload-queue-DhQJiSRc.js.map +0 -1
  582. package/dist/usage-card-DVTRDmGz.js.map +0 -1
  583. package/dist/use-mobile-vaLKwgyf.js +0 -15
  584. package/dist/use-mobile-vaLKwgyf.js.map +0 -1
  585. package/dist/utils-CF3c95Io.js.map +0 -1
  586. package/dist/value-inputs-C0o70p-U.js +0 -980
  587. package/dist/value-inputs-C0o70p-U.js.map +0 -1
  588. package/dist/workspace-9EFVXUyk.js.map +0 -1
@@ -5,16 +5,38 @@ work. Read only the relevant workflow/declarations; this is not a new design sys
5
5
 
6
6
  ## Review the task and hierarchy
7
7
 
8
+ For a new or substantially repaired screen, review the
9
+ [screen decisions](screen-decisions.md) against the actual result. Identify the
10
+ user's decision, leading subject, visible versus overflow actions, navigation
11
+ reason and surface/inset owners. The answer should explain this screen, not
12
+ just name components or repeat an archetype.
13
+
8
14
  - Can the user identify the subject, scope and next action? A contextual fact
9
15
  may be repeated for a separate purpose, but should not compete with itself.
10
16
  - Do independent records, facts, metrics and editable fields use appropriate
11
17
  owners? Inspect an existing feature before reconstructing its lifecycle.
18
+ - Does the subject cover the entity parts relevant to the task, such as order
19
+ lines and selected variants, product options/variant combinations, or payment
20
+ allocations? State missing contracts and omitted scope. Neither a summary of
21
+ top-level fields nor a library feature's existence proves app coverage.
12
22
  - Do primary commands have explicit emphasis and page/collection/record scope?
13
23
  Keep bulk actions tied to selection. Secondary/destructive importance is semantic.
14
24
  - Do rows lead with identity and useful decision information? Preserve access
15
25
  to hidden facts without forcing every fact into a tall identity stack.
26
+ - Do comparisons, allocations, dependencies and exceptions stay close to the
27
+ facts and commands they affect? Could the user make the business decision
28
+ without reconstructing relationships across generic cards? An existing block
29
+ is a good fit when its meaning and arrangement fit; an app-owned subject may
30
+ combine public parts and JSX when the data needs a different structure.
16
31
  - Does each gutter, inset and sibling/copy gap have one owner? Review the whole
17
32
  parent/child chain. A token-backed utility on the wrong owner can still drift.
33
+ - Do flat and painted peer regions align at their intended content edges?
34
+ Transparency does not remove Card padding. Does mobile reading order lead
35
+ with the operational subject rather than burying it after long evidence?
36
+ - Do table headers, main values and supporting cell copy share an intentional
37
+ alignment? Inspect custom primitives inside cells; their own alignment and
38
+ inline/block defaults can override the cell. Using the right table owner
39
+ does not validate the caller's renderCell content.
18
40
  - Does the same composition remain readable with long copy, translations,
19
41
  empty/missing values and narrow parent width? Zero and unavailable differ.
20
42
 
@@ -25,7 +47,9 @@ one solid primary command per page or surface, so the next action stays obvious.
25
47
  ## Done means
26
48
 
27
49
  UI work is complete only with three separate proofs: source/API checks, inspected
28
- rendered appearance and executed interactions. The source checker below must
50
+ rendered appearance and executed interactions. A correct but confusing hierarchy
51
+ or inappropriate action/surface choice is unfinished even when all checks pass.
52
+ Inspect one representative subject before replicating it across a screen. The source checker below must
29
53
  report no errors on changed files, and the app's typecheck, lint and tests must
30
54
  pass. Inspect the actual narrow/wide and light/dark states relevant to the change,
31
55
  including opened surfaces; execute the affected callbacks, keyboard/focus and
@@ -63,7 +87,7 @@ command to app CI if useful; repository lint is not automatically installed.
63
87
  Errors cover unknown package entrypoints/symbols and statically detected overrides
64
88
  of protected Card/popup insets, Card badges in headerAction/headerStart rather
65
89
  than titleSuffix, control geometry/typography, fixed DisplayLabel/Badge
66
- roles, cross-role shell/inner radius replacements, display-copy margins, or
90
+ roles, cross-role surface/default radius replacements, display-copy margins, or
67
91
  redrawn focus indicators (another ring width, offset or halo strength) on imported controls. Intentional nested bodies,
68
92
  circular owners and joined-edge corner resets retain their roles. Import ownership
69
93
  follows lexical bindings, preserving locally shadowed application components. Imports of
@@ -80,9 +104,22 @@ disabled 50% treatment remain valid; component disabled props keep that dimming
80
104
  with its owner.
81
105
 
82
106
  Standalone compact Cards and Page gutter removal also produce review warnings.
107
+ `uncontained-table-in-card` flags a table in a padded Card: place DataTable in
108
+ the layout, or deliberately use Card padding="none" and a flat table.
109
+ `detached-filter-layout` recommends DataTable topbarContent for a sibling filter
110
+ strip, or DataView for the complete workflow. `wide-single-column-form` suggests
111
+ Page narrow for a simple form lacking explicit width or aside. These contextual
112
+ warnings follow qualified import bindings; unrelated same-name components are
113
+ not evidence. Deprecated resource shells use the existing deprecated-owner
114
+ warning and direct new routes to Page.
83
115
  Buttons placed in a Page or PageHeader `actions` region warn as well: pass
84
116
  commands as `primaryAction` and ordered `secondaryActions` so the header owns
85
117
  their emphasis, size and overflow. Non-command controls stay valid there.
118
+ For PageHeader's `slots.actions`, wrapping or returning the callback's
119
+ `defaultContent` retains that command behavior; a full replacement owns its
120
+ keyboard, overflow and action semantics. Inspect the compact menu below 40rem of
121
+ header width, including in a narrow parent on desktop: every command, including
122
+ primary, belongs in one More actions menu.
86
123
  A Page with more than one solid primary command, counting `header.primaryAction`
87
124
  and every Button with `tone="primary"` and no other style, warns as well. Overlays own
88
125
  their own primary command and are not counted. Raw palette classes such as
@@ -4,6 +4,13 @@ Use `react-hook-form` for form state in create/edit pages, settings and overlays
4
4
 
5
5
  ## Screen and state ownership
6
6
 
7
+ For expandable editing sections, inspect compound Accordion before rebuilding
8
+ Card + Collapsible. The [retained section recipe](../examples/editable-sections.tsx)
9
+ uses multiple expansion, validation badges and AccordionContent keepMounted.
10
+ Keep one stable app-owned form and open an invalid section before focusing its
11
+ field. Controlled form state retention and field DOM retention are separate
12
+ contracts; see [disclosure composition](custom-composition.md#disclosure-sections).
13
+
7
14
  The complete [order edit page](../examples/rhf-edit-page.tsx) composes:
8
15
 
9
16
  `Page render={<form ... />}` owns the native form, containing `DirtyStateBanner / ErrorSummary → TwoColumnLayout → FormSection → ControlledFormField → sticky FormActionsBar / SubmitStateButton`.
@@ -6,17 +6,29 @@ the application shell and every domain example. These are source assets at the
6
6
  installed package's `templates/`; complete skill copying places them under the
7
7
  shared skill's `templates/` and rebases the links below.
8
8
 
9
+ Start with [screen decisions](screen-decisions.md). Archetypes establish route responsibilities and supported seams. Inspect the
10
+ actual records before choosing their content regions. A detail page can combine
11
+ existing blocks with app-owned domain components and semantic JSX; comparisons,
12
+ allocations, dependencies and exceptions may need their own information
13
+ structure. Use [data-led composition](custom-composition.md#shape-the-subject-from-the-data)
14
+ to choose that structure. A dashboard does not require a metric-card row, and
15
+ a simple facts subject does not require a custom component.
16
+
9
17
  | Screen | Main owner and regions | Starting blueprint | Application-owned state |
10
18
  | --- | --- | --- | --- |
11
- | Index / directory | Page → fixed scope/context → FilterLayout → DataView/DataTable; maxWidth="full" when comparison needs it | [Scoped directory](../examples/scoped-directory.tsx), [index table](../examples/index-table.tsx) | URL/query, facets, paging, selection, bulk commands, loading/empty/error/retry |
12
- | Detail workspace | Page title/status/commands/tabs above TwoColumnLayout; subject Cards in main, facts/support in aside | [Orders](../../../templates/orders-template.tsx), [customers](../../../templates/customers-template.tsx), [record detail](../examples/detail.tsx) | Record snapshot, section/tab, permitted commands, overlay drafts, accepted server results |
13
- | Settings / edit | `Page render={<form ... />}` → dirty/error feedback → TwoColumnLayout → FormSection → ControlledFormField → sticky FormActionsBar | [RHF edit page](../examples/rhf-edit-page.tsx), [RHF drawer](../examples/rhf-overlay-form.tsx) | RHF values, rules/schema, arrays, computed totals, transport/errors, saved baseline |
14
- | Product editor | Page → product subjects and publishing/support regions → variant editor workflow | [Products](../../../templates/products-template.tsx) | Product snapshot, option/variant drafts, publishing settings, validation and persistence |
19
+ | Index / directory | Page header/context → DataView, or FilterProvider → DataTable topbarContent={FilterLayout}; default lg, explicit xl/full for wide comparisons | [Scoped directory](../examples/scoped-directory.tsx), [index table](../examples/index-table.tsx) | URL/query, facets, paging, selection, bulk commands, loading/empty/error/retry |
20
+ | Detail workspace | Page narrow for simple detail; page identity and task subjects, optional aside for secondary context (xl); choose continuous/flat or framed subjects deliberately | [Orders](../../../templates/orders-template.tsx), [customers](../../../templates/customers-template.tsx), [record detail](../examples/detail.tsx) | Record snapshot, section/tab, permitted commands, overlay drafts, accepted server results |
21
+ | Settings / edit | `Page narrow render={<form ... />}` → FormSection → ControlledFormField → FormActionsBar; with support use Page aside or explicit maxWidth="xl" + TwoColumnLayout | [RHF edit page](../examples/rhf-edit-page.tsx), [RHF drawer](../examples/rhf-overlay-form.tsx) | RHF values, rules/schema, arrays, computed totals, transport/errors, saved baseline |
22
+ | Order / fulfillment detail | Page header owns order identity and commands; Alert for standing notices; FulfillmentGroup per status/location; ShipmentTracking; OrderCustomer, OrderSummary and OrderTransactions as aside cards | [Order and invoice map](commerce-composition.md), [order recipe](../examples/commerce-lines.tsx) | Order snapshot, fulfillment/refund commands, payment state, accepted results |
23
+ | Invoice / receivable detail | Page header with collection commands; one document Card → InvoiceHeader + InvoiceLineItems surface="flat"; settlement ledger, payment history and customer as separate subjects | [Order and invoice map](commerce-composition.md), [invoice recipe](../examples/commerce-lines.tsx) | Invoice values, tax policy, balance, payments and reminder/credit workflows |
24
+ | Product editor | Page → product identity/media/shared details → product option definitions → generated variant list/matrix and selected editing workflow; publishing context remains distinct | [Products](../../../templates/products-template.tsx) | Product snapshot, stable option/value IDs, combination identities, per-variant drafts, publishing validation and persistence |
15
25
  | User access / permissions | Page → profile and role context → editable permission groups → save/discard feedback | [User permissions](../../../templates/user-permissions-template.tsx) | Role presets, permission draft, permitted commands, accepted-save/discard baseline and server enforcement |
16
- | Analytics overview | Page period control → numeric MetricBar/MetricGrid → comparison/chart Cards → operations/usage regions | [Operations analytics](../../../templates/analytics-operations-template.tsx), [analytics states](../examples/analytics.tsx) | Period/query, metric formatting, accepted series, independent loading/error/retry states |
26
+ | Analytics overview | Page period control → numeric MetricBar/MetricGrid → ChartCard with Recharts series and comparison Cards → operations/usage regions | [Operations analytics](../../../templates/analytics-operations-template.tsx), [analytics states](../examples/analytics.tsx) | Period/query, metric formatting, accepted series, independent loading/error/retry states |
27
+
28
+ Page uses explicit maxWidth first, then narrow md (48rem), aside xl (80rem), otherwise lg (64rem). Settings navigation uses Page → SettingsShell → FormSection. Page owns its h1, gutters and direct-child rhythm; TwoColumnLayout owns the column split and peer-region rhythm. Stack/Grid own nested sibling gaps. Card owns framing and aligned header/body/footer insets. Authentication uses [AuthShell](authentication.md), and content sites use [Container/Section](../examples/website.tsx).
17
29
 
18
- Page owns its h1, gutters and direct-child rhythm; TwoColumnLayout owns the column split and peer-region rhythm. Stack/Grid own nested sibling gaps. Card owns framing and aligned header/body/footer insets. Authentication uses [AuthShell](authentication.md), and content sites use [Container/Section](../examples/website.tsx).
30
+ Keep FilterLayout inside DataTable topbarContent with variant="compact" and showClearFilters, under FilterProvider; DataView is the complete alternative. Table owns its frame/topbar/header band and sits directly in the layout. A deliberate Card host uses padding="none" and a flat table. Fixed scope belongs in page context or tabs, independently of removable criteria.
19
31
 
20
- Headers carry one primary command and ordered secondary commands; period selects and similar non-command controls use header actions. Put destructive commands behind ConfirmDialog. Longer create/edit work belongs in ActionDrawer; a short focused form uses ActionDialog. Preserve a snapshot until save succeeds. Templates are copyable application sources, not package component entrypoints.
32
+ Headers carry one primary command and ordered secondary commands; below 40rem of header width all commands share one More actions trigger. Page header slots beforeTitle/titleSuffix/afterDescription/actions accept content or callbacks with {renderLink, defaultContent}. Compose status and facts with Badge/MetadataList; wrap or return actions defaultContent to retain the command row. Compatible direct actions add non-command controls. Put destructive commands behind ConfirmDialog. Longer create/edit work belongs in ActionDrawer; a short focused form uses ActionDialog. Preserve a snapshot until save succeeds. Templates are copyable application sources, not package component entrypoints.
21
33
 
22
34
  Read only the relevant detail: [composition ownership](composition.md), [workflow states](workflows.md), [RHF transport and bindings](rhf-workflows.md), or [analytics contracts](analytics.md). The [review checklist](review.md) separates static checks from opened-surface and interaction evidence.
@@ -0,0 +1,126 @@
1
+ # Decide the screen before selecting components
2
+
3
+ Use for a new business screen or a substantial composition repair. The public
4
+ API tells you what is supported; it does not decide what deserves prominence.
5
+ Settle the following in a few working notes before JSX. This is a design step,
6
+ not an approval gate or a required document for a small edit.
7
+
8
+ ## Task, subject and priority
9
+
10
+ Name the user's job and the object being managed. Inspect a representative
11
+ record and an exception. Distinguish the product's structure from one selected
12
+ instance, current operational state from historical evidence, and editable
13
+ configuration from read-only facts.
14
+
15
+ Discover the task-specific owners and their supported parts before drawing those
16
+ regions. Use the [capability comparison](custom-composition.md#compare-capabilities-before-constructing-the-subject),
17
+ then let app markup express the relationships those owners must cooperate in.
18
+ Token-backed custom structure complements existing behavior; it does not replace
19
+ the discovery of a professionally supported subject/workflow.
20
+
21
+ Put the information needed for the immediate decision first in reading and DOM
22
+ order. Then show the supporting detail, then less frequent history or technical
23
+ evidence. A desktop aside must not bury the current balance or blocking exception
24
+ below several screens of history on mobile. A record can contain all required
25
+ fields and still have the wrong hierarchy.
26
+
27
+ For a catalogue product, product identity/media and shared details establish the
28
+ subject. Product-level option groups and values explain the generated variant
29
+ combinations; the variant list/matrix compares SKU, price, availability and
30
+ state. Editing one variant is a subordinate selection/workflow. A large selected
31
+ variant summary before the product's option structure instead resembles a buyer
32
+ picker. A storefront picker, a catalogue editor and an inventory workspace have
33
+ different priorities even when they use the same data.
34
+
35
+ An admin product workspace commonly needs distinct details, media-management
36
+ and variant work areas. Do not put a gallery beside prose simply because both
37
+ are available, or reproduce a storefront hero inside an operational editor.
38
+ Choose each region's role and placement first; selecting a dedicated component
39
+ does not decide that structure for you.
40
+
41
+ For a sold order line, purchased identity, selected options/SKU, quantity and
42
+ accepted amounts form one subject. Put a shortage, reservation or return beside
43
+ the affected goods. Do not repeat every zero-valued lifecycle counter as a
44
+ separate labeled stack. For an invoice, distinguish its issued legal document
45
+ from today's settlement/collection task; both can be present without giving
46
+ every source record equal prominence. See [domain coverage](custom-composition.md).
47
+
48
+ ## Actions and navigation
49
+
50
+ Assign each command a scope (page, collection, selection, subject or row), then
51
+ consider frequency, importance, eligibility and consequence. Make the ordinary
52
+ next action easy to find. Less frequent alternatives belong in the same scope's
53
+ overflow menu when their visible buttons would compete with the subject. A
54
+ refund on an ordinary sold line is commonly a secondary contextual action; a
55
+ returns-processing workspace can legitimately make it primary. A single action
56
+ does not automatically need a menu, and several actions do not all need buttons.
57
+
58
+ Use Page's command API for page commands and its responsive overflow behavior.
59
+ Use the public Menu/rowActions owner for item commands; give an icon-only trigger
60
+ an accessible name that identifies the object. Confirmation belongs to the
61
+ consequential action, not to opening the menu. Never hide an essential action
62
+ solely behind pointer hover.
63
+
64
+ Optional navigation is a decision too. Do not add a back button just because
65
+ Page accepts backHref. Use it for an actual return journey with a known
66
+ destination and preserved list/draft context. A persistent navigation area or
67
+ breadcrumb may already supply orientation. Respect the requested navigation
68
+ pattern; do not combine several competing return mechanisms by default.
69
+
70
+ ## Grouping, surfaces and alignment
71
+
72
+ Group facts that users need to read together. Choose a Card when a region is an
73
+ independent subject, a distinct object or a useful bounded work area. Continuous
74
+ sections of one subject can remain flat inside a shared surface. Neither every
75
+ heading nor every object in JSON requires a Card. Existing table/workflow owners
76
+ can already own their boundary; inspect before adding another frame.
77
+
78
+ Decide the inset owner separately from the surface's paint. Card
79
+ surface="flat" removes chrome and inherits its host; it retains the same default
80
+ md insets. Changing paint alone must not move a peer's content edge. Use
81
+ padding="none" when an existing ancestor already owns that inset, or when a
82
+ deliberately flush region is required—not as a synonym for transparency.
83
+ Compare heading, body and action start edges across peer regions. An unpadded
84
+ main heading next to an inset card heading is not aligned merely because their
85
+ outer grid cells align. Document-like rows and financial totals can use different
86
+ roles, but their intended label/value axes should remain clear.
87
+
88
+ For continuous sections of one subject, one padded host with unpadded internal
89
+ sections usually supplies the right rhythm. Stacking several padded flat Cards
90
+ adds both their block insets to the peer gap even though no painted boundary
91
+ explains that extra room. Keep shared inline alignment without accumulating
92
+ three inset owners along the vertical axis.
93
+
94
+ Assign page gutters to Page, surface insets to Card, peer gaps to Stack/Grid,
95
+ and specialized tracks to app-owned markup. Keep title/description copy close;
96
+ separate subjects with a larger gap. Fix the wrong owner before changing global
97
+ spacing or density. Use [token-backed domain structures](domain-structures.md)
98
+ when the standard layouts cannot express the data relationship directly.
99
+
100
+ ## Prove the decision with the result
101
+
102
+ Build one representative subject before repeating it throughout the screen.
103
+ Inspect it at the actual narrow and wide parent widths: can the user identify
104
+ the object, understand its current state and find the next appropriate action?
105
+ Check the opened menu/editor and accepted/error state. Remove duplication and
106
+ low-value explanation rather than shrinking every text role to fit more data.
107
+ Test a second record whose structure or eligibility differs.
108
+
109
+ Type checks establish API compatibility. Source checkers establish their named
110
+ rules. Neither establishes a purposeful hierarchy, appropriate commands or a
111
+ professional surface composition. Treat a correct but confusing result as
112
+ unfinished; revise the composition, then record appearance and interaction proof
113
+ separately in [review](review.md).
114
+
115
+ ## External context
116
+
117
+ These references explain useful distinctions; Themelia's APIs/tokens and the
118
+ actual product requirements remain authoritative:
119
+
120
+ - [Shopify's product model](https://shopify.dev/docs/apps/build/product-merchandising/products-and-collections)
121
+ separates product, options and purchasable variant combinations.
122
+ - [Carbon disclosures](https://www.carbondesignsystem.com/building-blocks/core/patterns/disclosures)
123
+ distinguishes a visible primary action from related disclosed alternatives.
124
+ - [GOV.UK back links](https://design-system.service.gov.uk/components/back-link/)
125
+ grounds return navigation in an actual multi-page journey. Its transaction
126
+ conventions are not a universal admin-shell prescription.
@@ -18,26 +18,18 @@ with opacity. Component disabled props own dimming; an extra faded wrapper can
18
18
  multiply it. Brand colors should preserve the shared resting `--input` palette
19
19
  and `--ring` focus role; review deliberate replacements on every host surface.
20
20
 
21
- The default `--radius` is 0.75rem (12px). One public root drives two shared
22
- roles; component owners choose the role, so ordinary callers add no radius class.
21
+ The default `--radius` is 0.75rem (12px). One public root drives two corners;
22
+ component owners apply them, so ordinary callers add no radius class.
23
23
 
24
24
  | Role | Owners | Default |
25
25
  | --- | --- | --- |
26
- | `rounded-radius` | Cards, popup/command shells and other outer surfaces | 12px |
27
- | `rounded-inner` | Inputs, buttons, select/facet triggers, collection/navigation rows and intentional nested bodies | 9px |
28
-
29
- Standalone controls retain the inner role; a complete nested Card retains its
30
- outer-shell role. Physical nesting does not select a different recipe.
31
-
32
- The inner role is `min(radius × 0.75, min(height-action, height-control) ×
33
- density-scale ÷ 4)`. The height bound keeps short controls restrained when an app
34
- increases the global radius; a 0.75 multiplier alone would still produce capsules.
35
- The smaller base height preserves a common inner radius when action and field
36
- heights differ. Density scales that bound once: the default roots at density
37
- 0.875 yield 7.875px inner corners. Control size variants share the role; spacing
38
- scale and surface padding do not change it. Do not override the derived alias as
39
- another theme setting. Circular avatars/dots and joined-edge resets retain their
40
- explicit shape mechanics; Badge retains its own root-based recipe.
26
+ | `rounded-radius` | The default: inputs, buttons, select/facet triggers, badges, collection/navigation rows and nested bodies | 12px (`--radius`) |
27
+ | `rounded-surface` | Cards, popup/command shells, dialogs and other outer surfaces | 16px (4/3 × `--radius`) |
28
+ | `rounded-radius-xs` / `-sm` / `-md` | Small mechanics only: checkboxes, kbd, tooltips, inline marks, skeleton bars | 0.4× / 0.6× / 0.8× |
29
+
30
+ Changing `--radius` changes every corner together. Density, spacing scale and
31
+ surface padding do not change it. Circular avatars/dots and joined-edge resets
32
+ retain their explicit shape mechanics.
41
33
 
42
34
  CSS fits overlapping curves to the actual box, so computed values alone do not
43
35
  prove the visible shape. Inspect settled corners, borders, clipping and focus
@@ -60,7 +52,7 @@ Action and editable-control heights are separate roles; keep roots equal for adj
60
52
  Control heights are nominal floors when custom typography needs more room.
61
53
  Native fields, Select and InputGroup frames fit their editable line plus the
62
54
  border, and cap vertical padding to the space remaining in the nominal height.
63
- The default 32/36/40px sizes and radius roles stay unchanged. Text actions grow
55
+ The default 28/32/36px sizes (2rem roots, steps in eighths) and radius roles stay unchanged. Text actions grow
64
56
  under their intentionally tighter leading, so independently enlarged type can
65
57
  produce different fitted heights even with equal action/control roots. Check
66
58
  type size, leading and height roots together when exact custom pairing matters.
@@ -78,6 +70,8 @@ control heights and copy gaps keep their independent roots.
78
70
  | Surface tiers | `--surface-x` / `--surface-y`, times space-scale; xs/sm/md/lg use 1/2, 2/3, 1 and 4/3 |
79
71
  | Menu header/footer inline inset | Half surface-x plus row-x, then space-scale; no additional public token |
80
72
 
73
+ Rich display popovers use the surface roots (24px by default); compact menu/list shells use the md spacing role (8px), scaled once by --space-scale. Row inline padding and density stay independent.
74
+
81
75
  Use discrete inset, density and size props for the component responsibility described in [composition](composition.md). CSS scales are independent continuous theme settings. Primary row text does not shrink to xs merely because a density is compact. Public Input and Command search retain normal desktop editable text; coarse-pointer devices use text-base at mobile and tablet widths. Typography components remain margin-free.
82
76
 
83
77
  The default primary is near-black so success and other status colors never compete
@@ -151,6 +145,11 @@ heavier border.
151
145
 
152
146
  ## Extend without drift
153
147
 
148
+ For Tailwind placement and drawing in app-owned composites, read
149
+ [app-owned composites](custom-composition.md#token-backed-placement-and-drawing).
150
+ That guide separates new content geometry from the public component anatomy
151
+ that still owns its surface, interaction and typography.
152
+
154
153
  Reuse existing color, text, action/control, row, surface or shell responsibilities first. An app token stays app-owned, not a package knob. New package tokens require multiple consumers, one owner/default/purpose, contract/docs updates and scoped behavior verification. Never expand the budget to fix one preview.
155
154
 
156
155
  Use public structures/utilities for custom composition. Missing API seams should be additive props/slots rather than copies of private code. Review light/dark foregrounds and opened portals. CSS owns theming, UIProvider stable display defaults, callbacks app state.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "themelia-react-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "structural": [
5
5
  {
6
6
  "name": "--space-scale",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  {
26
26
  "name": "--height-action",
27
- "default": "2.25rem",
27
+ "default": "2rem",
28
28
  "purpose": "Default button and action-trigger height."
29
29
  },
30
30
  {
31
31
  "name": "--height-control",
32
- "default": "2.25rem",
32
+ "default": "2rem",
33
33
  "purpose": "Default input, select, and field-control height."
34
34
  },
35
35
  {
@@ -69,7 +69,7 @@
69
69
  },
70
70
  {
71
71
  "name": "--shell-header-height",
72
- "default": "4.5rem",
72
+ "default": "4rem",
73
73
  "purpose": "Minimum height of the application header shell."
74
74
  },
75
75
  {
@@ -121,10 +121,10 @@
121
121
  "radius": {
122
122
  "name": "--radius",
123
123
  "default": "0.75rem",
124
- "purpose": "Shared 12px outer corners; inner control/row corners derive from this root and stay rectangular.",
124
+ "purpose": "Default 12px corner for controls, badges and rows; outer shells use 4/3 of it.",
125
125
  "defaultUtility": "rounded-radius",
126
- "innerUtility": "rounded-inner",
127
- "innerFormula": "min(calc(var(--radius) * 0.75), calc(min(var(--height-action), var(--height-control)) * var(--density-scale) / 4))"
126
+ "surfaceUtility": "rounded-surface",
127
+ "surfaceFormula": "calc(var(--radius) * 4 / 3)"
128
128
  },
129
129
  "advanced": [
130
130
  "--font-heading",
@@ -465,7 +465,7 @@
465
465
  "rounded-radius-xs",
466
466
  "rounded-radius-sm",
467
467
  "rounded-radius-md",
468
- "rounded-radius",
468
+ "rounded-surface",
469
469
  "rounded-radius-lg",
470
470
  "rounded-radius-xl",
471
471
  "h-action-xs",
@@ -532,7 +532,7 @@
532
532
  "size-upload-avatar-small",
533
533
  "size-upload-avatar",
534
534
  "size-upload-avatar-large",
535
- "rounded-inner"
535
+ "rounded-radius"
536
536
  ],
537
537
  "layout": [
538
538
  "h-shell-header",
@@ -0,0 +1,153 @@
1
+ # View craft
2
+
3
+ Themelia already sets type, colour, spacing and surfaces. Craft is what remains:
4
+ deciding what a view shows, how much emphasis each part gets and how the parts
5
+ are arranged, so the user understands the screen at a glance. Each rule below is
6
+ a decision you can explain and check on the rendered result. Most improvements
7
+ remove something.
8
+
9
+ Start from the [data brief](data-reading.md#write-the-data-brief). Owner
10
+ selection, surfaces and inset ownership follow
11
+ [screen decisions](screen-decisions.md); this reference does not restate them.
12
+
13
+ ## One focal point
14
+
15
+ Each view, and each region in it, has one thing the eye reaches first: the
16
+ figure that answers the question, the subject's identity and state, or the queue
17
+ of records that need action. Choose it from the brief. When two things compete,
18
+ demote one: a smaller text role, secondary tone, or a supporting region.
19
+
20
+ Check it by looking at a reduced screenshot: the focal point is still the
21
+ strongest mass. It sits in the first viewport at both 390 and 1440 wide.
22
+
23
+ ## Spend emphasis on purpose
24
+
25
+ Emphasis works only by contrast, so it is a budget:
26
+
27
+ - **Commands.** One solid primary command per page or surface. Other commands
28
+ are outline or ghost, or sit in the same scope's overflow menu.
29
+ - **Text.** At most three levels in a region: title (`Heading`), body and values
30
+ (`Text`), supporting copy (`Text` secondary, smaller size). A fourth level
31
+ signals a hierarchy problem, not a missing style.
32
+ - **Tone.** `success`, `warning`, `destructive` and `info` mark a status that
33
+ changes what the user does. Kinds, categories and counts stay neutral. When
34
+ everything is coloured, nothing reads as status.
35
+ - **Size.** One hero figure size per region; peer figures share one size.
36
+
37
+ Adding emphasis in one place means removing it from another.
38
+
39
+ ## Choose the encoding from the fact
40
+
41
+ | The fact | Encoding | Owner family (confirm with the finder and inspector) |
42
+ | --- | --- | --- |
43
+ | A figure the user must judge | Figure with its baseline delta; a sparkline when the path matters | `Metric`, `MetricTrendChip`, `MetricSparkline`; `MetricComparison` for current versus previous |
44
+ | Several peer figures for one period | One strip, not a grid of identical cards | `MetricBar`; `MetricGrid` with a quiet variant inside one surface |
45
+ | A series whose shape is the message | Chart with one emphasised series and minimal axes | `ChartCard` with Recharts children |
46
+ | Part of a whole, or use against a limit | Bar with the figure as its label | `Progress`, `UsageCard` |
47
+ | Facts about one record | Label and value list; one inline line for two to four short facts | `MetadataList` (inline or stacked), `InlineStat` |
48
+ | A lifecycle with a current stage | Steps with only the current stage emphasised | `StepsHorizontal`, `Timeline` |
49
+ | Events and history | Newest first, grouped by day | `Timeline`, `features/activities` |
50
+ | Many records compared on shared columns | Table whose columns are what users compare or sort | `DataTable`, `DataView` |
51
+ | Records that differ in shape | List rows: identity, one line of context, state, action | `Item`, `ItemGroup` |
52
+ | A money ledger | Right-aligned amounts, one rule above the grand total | `SummaryPanel` with `AmountRow`, `OrderSummary` |
53
+ | Nothing to show yet | What is missing and the next action | `EmptyState` |
54
+
55
+ Read [metrics and statistics](analytics.md) for the exact metric owner. A chart
56
+ must answer a question you can write in one sentence; otherwise show the figure.
57
+ Do not chart three values. Prefer a sparkline in a strip to a large chart that
58
+ repeats what the figures already say.
59
+
60
+ ## Spend words carefully
61
+
62
+ - Label a value only when it is ambiguous. A ledger amount needs "Total"; an
63
+ order number in a header does not need "Order number".
64
+ - Do not repeat a column header inside its cells or a section title in each row.
65
+ - State a unit once, in the header or the value.
66
+ - A sentence fragment often reads better than three label and value pairs:
67
+ "2 of 3 shipped · 1 reserved at Plovdiv".
68
+ - Omit zero and not-applicable counters, or collapse them into one "Nothing
69
+ outstanding" line.
70
+ - Do not explain the interface on the page. A description states scope or
71
+ as-of time, not instructions.
72
+
73
+ ## Density follows the audience
74
+
75
+ - **Queues** for operators: compact rows, more records per screen, identity,
76
+ state and amount; detail on open.
77
+ - **Overviews**: fewer, larger figures with room around them, each answering a
78
+ question.
79
+ - **Records**: the subject leads; evidence and history follow.
80
+
81
+ Change global density through the provider and density roots described in
82
+ [theming](theming.md). Do not shrink text roles to fit more data; remove
83
+ low-value content first.
84
+
85
+ ## Rhythm groups content
86
+
87
+ - Gaps grow outward: within a group, between groups, between sections. Equal
88
+ gaps everywhere mean nothing groups. Use `Stack` and `Grid` gap roles.
89
+ - Few edges: peer regions share content start edges; numbers right-align on one
90
+ axis; labels share one axis.
91
+ - Few frames: one `Card` per independent subject. Continuous sections of one
92
+ subject share one surface and are separated by space, not rules or nested
93
+ boxes.
94
+ - Narrow widths keep the decision content first in reading order. Only data
95
+ tables that own horizontal scrolling may scroll sideways.
96
+
97
+ ## Numbers and copy
98
+
99
+ - Numbers use tabular figures through the value primitives (`Money`, `Number`,
100
+ `Percent`, `Date`, `RelativeTime`) with one precision per column.
101
+ - Recency reads as relative time with the exact date available; documents show
102
+ absolute dates.
103
+ - A delta states direction and baseline: "↓ 0.9% vs September".
104
+ - Sentence case everywhere. Buttons are a verb and an object ("Record payment").
105
+ Empty states say what is missing and what to do. Errors say what happened and
106
+ how to recover.
107
+
108
+ ## Modern patterns and their owners
109
+
110
+ - **Overview.** A header with the period control, one figure strip (three to
111
+ five figures with deltas or sparklines), one chart answering the main
112
+ question, and a "needs attention" list that links to records. Not a wall of
113
+ identical cards.
114
+ - **Index.** Search plus the work queues users actually work; rows lead with
115
+ identity and the deciding column; bulk actions appear with a selection;
116
+ export states how many rows match.
117
+ - **Record.** The page header carries identity, status badges in `titleSuffix`,
118
+ one metadata line (date · channel · customer) and the primary command. The
119
+ main column holds the subject's working content, an aside holds context
120
+ (customer, payment, notes) and history comes last.
121
+ - **Editing.** `InlineEdit` for one field; `ActionDrawer` for a focused
122
+ multi-field edit that keeps the record visible; `ActionDialog` for short
123
+ creation; `ConfirmDialog` for destructive commands.
124
+ - **Progressive disclosure.** `Collapsible` or `Accordion` for evidence and
125
+ technical detail; overflow menus for rare commands.
126
+ - **Loading.** Owners' loading states and `Skeleton` shaped like the content,
127
+ not spinners in empty boxes.
128
+
129
+ Inspect each owner's declaration before using it; a pattern names a direction,
130
+ not a prop list.
131
+
132
+ ## Anti-patterns seen in trials
133
+
134
+ - A grid of identical metric cards whose figures have no baseline.
135
+ - A facts card that repeats the header's identifier, status and date.
136
+ - Every lifecycle counter on every line, zeros included.
137
+ - Column headers repeated in cells; units on every value.
138
+ - Filler cards added to balance a column's whitespace.
139
+ - Decorative icons on titles, rows or badges; tinted icon tiles.
140
+ - Status tones on kinds or categories; three badges on one row saying related
141
+ things.
142
+ - A storefront hero image inside an operational editor.
143
+ - A framed box inside a card for sub-content that is not a distinct object.
144
+ - A chart of three values, or a chart whose question cannot be stated.
145
+ - Prose explaining what the screen does.
146
+
147
+ ## When an owner limits the view
148
+
149
+ When an owner cannot express the hierarchy the data needs, compose its public
150
+ parts or app markup with token-backed utilities
151
+ ([domain structures](domain-structures.md)) and report the gap by owner and
152
+ prop. Never override anatomy classes, add colours or add tokens to make a view
153
+ look designed.
@@ -0,0 +1,73 @@
1
+ # View spec
2
+
3
+ Write this before JSX for a new view or a substantial redesign. Keep it short
4
+ enough to read in a minute; it is a working note, not an approval document. Every
5
+ line should change a later decision. Save it beside the app's other design notes
6
+ so a reviewer can compare the result with the intent.
7
+
8
+ ```md
9
+ # <View name> (<route>)
10
+
11
+ ## Decision
12
+ <who> decides <what>, <how often>. Success: <what they can do faster or with more confidence>.
13
+
14
+ ## Data brief
15
+ <the data brief from data-reading.md>
16
+
17
+ ## Ranked information
18
+ - Must (first viewport at 390 and 1440): …
19
+ - Should (visible without interaction): …
20
+ - Could (behind disclosure, overflow or a detail view): …
21
+ - Omit: … (why: zero, not applicable, duplicated elsewhere, not used for this decision)
22
+
23
+ ## Focal point
24
+ <the one element the eye reaches first, and why>
25
+
26
+ ## Wireframes
27
+ 1440:
28
+ ┌──────────────────────────────────────────────┐
29
+ │ Title · status [secondary] [Primary]│
30
+ │ meta · meta · meta │
31
+ ├──────────────────────────────┬───────────────┤
32
+ │ main subject │ context │
33
+ │ … │ … │
34
+ └──────────────────────────────┴───────────────┘
35
+
36
+ 390:
37
+ ┌────────────────────┐
38
+ │ Title · status │
39
+ │ [Primary] [⋯] │
40
+ │ main subject │
41
+ │ context │
42
+ └────────────────────┘
43
+
44
+ ## Encodings
45
+ | Fact | Encoding | Why |
46
+ | --- | --- | --- |
47
+
48
+ ## Owners
49
+ | Region | Owner | Exact import | Verified with |
50
+ | --- | --- | --- | --- |
51
+ (found with find-components.mjs and map-composition.mjs; props checked with inspect-component.mjs)
52
+
53
+ ## Commands
54
+ <command: scope, emphasis (primary, secondary, overflow), eligibility and disabled reason>
55
+
56
+ ## States
57
+ Loading: … Empty: … Error and retry: … Accepted: … Long text and narrow parent: …
58
+
59
+ ## Open questions and data gaps
60
+ …
61
+ ```
62
+
63
+ ## Notes
64
+
65
+ - Draw wireframes in text so they survive any editor and diff. Boxes show
66
+ regions and order, not pixel sizes.
67
+ - The ranked list is where most quality comes from. If "must" has more than
68
+ five items, the decision is not specific enough yet.
69
+ - Fill "Owners" only after running the finder and inspector. An owner that does
70
+ not fit is recorded with the reason, and the region becomes app markup over
71
+ public parts.
72
+ - After building, score the result with the [critique rubric](critique-rubric.md)
73
+ and note any departure from this spec with its reason.