@phis/ui 0.4.3 → 0.4.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 (282) hide show
  1. package/README.md +9 -3
  2. package/cms/plugins.d.ts +1 -0
  3. package/cms/plugins.js +2 -0
  4. package/components/cms/phi-cms-root-layout.js +30 -1
  5. package/components/controls/phi-anchor-nav-control.js +4 -1
  6. package/components/controls/phi-background-control.d.ts +6 -1
  7. package/components/controls/phi-background-control.js +30 -7
  8. package/components/controls/phi-bullet-list-control.d.ts +7 -2
  9. package/components/controls/phi-bullet-list-control.js +4 -3
  10. package/components/controls/phi-button-control.d.ts +13 -1
  11. package/components/controls/phi-button-control.js +21 -3
  12. package/components/controls/phi-color-control.js +4 -2
  13. package/components/controls/phi-drawer-control-adapter.js +3 -2
  14. package/components/controls/phi-dropdown-control.js +2 -2
  15. package/components/controls/phi-inline-text-editor.js +7 -1
  16. package/components/controls/phi-length-control.js +1 -1
  17. package/components/controls/phi-media-asset-tile-control.js +10 -10
  18. package/components/controls/phi-progress-control.d.ts +10 -2
  19. package/components/controls/phi-progress-control.js +6 -2
  20. package/components/controls/phi-ribbon-control.d.ts +16 -4
  21. package/components/controls/phi-ribbon-control.js +14 -8
  22. package/components/controls/phi-ribbon-wrap-control.d.ts +32 -0
  23. package/components/controls/phi-ribbon-wrap-control.js +31 -0
  24. package/components/controls/phi-segmented-control.d.ts +4 -1
  25. package/components/controls/phi-segmented-control.js +13 -2
  26. package/components/controls/phi-select-control.js +5 -2
  27. package/components/controls/phi-series-chart-control.d.ts +48 -0
  28. package/components/controls/phi-series-chart-control.js +82 -0
  29. package/components/controls/phi-surface-control.d.ts +2 -0
  30. package/components/controls/phi-surface-control.js +16 -1
  31. package/components/controls/phi-switch-control.d.ts +4 -1
  32. package/components/controls/phi-switch-control.js +8 -2
  33. package/components/controls/phi-tag-control.d.ts +4 -1
  34. package/components/controls/phi-tag-control.js +11 -3
  35. package/components/controls/phi-text-control.js +57 -3
  36. package/components/controls/phi-tree-control.js +1 -1
  37. package/components/controls/phi-truncated-hover-text.d.ts +15 -0
  38. package/components/controls/phi-truncated-hover-text.js +25 -0
  39. package/components/forms/link-target-form-control.d.ts +1 -1
  40. package/components/forms/link-target-form-control.js +2 -45
  41. package/components/forms/phi-form-widget-frame.js +4 -2
  42. package/components/layouts/clients/phi-three-column-layout-client.js +10 -1
  43. package/components/layouts/phi-layout-view-model.js +10 -1
  44. package/components/navigation/phi-link.js +6 -1
  45. package/components/regions/clients/cms-region-container-client.js +16 -1
  46. package/components/regions/phi-cms-region-container.js +7 -0
  47. package/components/regions/phi-cms-region-shell.d.ts +22 -1
  48. package/components/regions/phi-cms-region-shell.js +131 -23
  49. package/components/root/phi-config-provider.d.ts +13 -0
  50. package/components/root/phi-config-provider.js +12 -1
  51. package/components/root/phi-root-background.d.ts +7 -0
  52. package/components/root/phi-root-background.js +20 -1
  53. package/components/root/phi-root-layout.d.ts +1 -0
  54. package/components/root/phi-root-layout.js +1 -0
  55. package/components/root/phi-root-theme-resolver.js +15 -1
  56. package/components/root/phi-shell-chrome-overlay.d.ts +18 -1
  57. package/components/root/phi-shell-chrome-overlay.js +26 -4
  58. package/components/runtime/runtime-module-context.d.ts +12 -1
  59. package/components/runtime/runtime-module-context.js +6 -1
  60. package/components/shell/phi-antd-icon.d.ts +1 -0
  61. package/components/shell/phi-antd-icon.js +3 -0
  62. package/components/shell/phi-cms-shell.d.ts +7 -1
  63. package/components/shell/phi-cms-shell.js +4 -2
  64. package/components/shell/use-phi-shell-header-bands.d.ts +5 -0
  65. package/components/shell/use-phi-shell-header-bands.js +64 -0
  66. package/components/shell/use-phi-shell-sticky-bottom.d.ts +18 -0
  67. package/components/shell/use-phi-shell-sticky-bottom.js +54 -0
  68. package/components/shell/use-phi-shell-sticky-top.js +61 -16
  69. package/components/surface/phi-surface-tone.d.ts +13 -0
  70. package/components/surface/phi-surface-tone.js +21 -0
  71. package/components/tables/client/phi-table-binding.d.ts +1 -0
  72. package/components/tables/client/phi-table-binding.js +22 -3
  73. package/components/trees/client/phi-tree-binding.d.ts +1 -0
  74. package/components/trees/client/phi-tree-binding.js +11 -2
  75. package/components/widgets/client/bullet-list-entries-editor.js +7 -1
  76. package/components/widgets/client/html-editor.js +1 -1
  77. package/components/widgets/client/shared/phi-collection-provider.js +4 -3
  78. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  79. package/components/widgets/client/shared/phi-collection-view-binding.js +16 -2
  80. package/components/widgets/client/shared/phi-command-buttons.js +6 -2
  81. package/components/widgets/client/shared/use-page-reference-options.d.ts +17 -0
  82. package/components/widgets/client/shared/use-page-reference-options.js +57 -0
  83. package/components/widgets/config/background.d.ts +52 -1
  84. package/components/widgets/config/background.js +85 -4
  85. package/components/widgets/config/button-variant.d.ts +22 -4
  86. package/components/widgets/config/button-variant.js +24 -5
  87. package/components/widgets/config/common-action-field.d.ts +1 -1
  88. package/components/widgets/config/parser-primitives.js +4 -2
  89. package/components/widgets/config/theme-gradient.d.ts +11 -0
  90. package/components/widgets/config/theme-gradient.js +12 -0
  91. package/components/widgets/label-sets/background.js +4 -0
  92. package/components/widgets/label-sets/geometry.js +2 -0
  93. package/components/widgets/label-sets/inspector.js +4 -0
  94. package/components/widgets/label-types/background.d.ts +2 -0
  95. package/components/widgets/label-types/background.js +2 -0
  96. package/components/widgets/label-types/common-controls.js +2 -2
  97. package/components/widgets/label-types/geometry.d.ts +1 -0
  98. package/components/widgets/label-types/geometry.js +1 -0
  99. package/components/widgets/label-types/inspector.d.ts +4 -0
  100. package/components/widgets/label-types/inspector.js +2 -0
  101. package/components/widgets/shared/bullet-list-vocabulary.d.ts +10 -0
  102. package/components/widgets/shared/bullet-list-vocabulary.js +5 -2
  103. package/components/widgets/shared/card-body-client.d.ts +16 -3
  104. package/components/widgets/shared/card-body-client.js +79 -8
  105. package/components/widgets/shared/card-vocabulary.d.ts +12 -2
  106. package/components/widgets/shared/card-vocabulary.js +7 -0
  107. package/components/widgets/shared/collection-source-failure.d.ts +26 -0
  108. package/components/widgets/shared/collection-source-failure.js +42 -0
  109. package/components/widgets/shared/markdown-body-client.js +39 -10
  110. package/components/widgets/shared/markdown-render.js +16 -3
  111. package/components/widgets/shared/widget-failure-client.d.ts +10 -0
  112. package/components/widgets/shared/widget-failure-client.js +20 -0
  113. package/components/widgets/shared/widget-failure.d.ts +31 -0
  114. package/components/widgets/shared/widget-failure.js +20 -0
  115. package/components/widgets/shared/widget-failure.server.d.ts +9 -0
  116. package/components/widgets/shared/widget-failure.server.js +12 -0
  117. package/gateway/dashboard-card-memo.d.ts +3 -0
  118. package/gateway/dashboard-card-memo.js +25 -0
  119. package/helpers/cms-container-chrome.js +6 -1
  120. package/helpers/cms-region-keys.d.ts +1 -1
  121. package/helpers/layout-style.d.ts +8 -4
  122. package/helpers/layout-style.js +3 -2
  123. package/helpers/locale.d.ts +8 -0
  124. package/helpers/locale.js +18 -0
  125. package/helpers/mode-paint.d.ts +4 -0
  126. package/helpers/mode-paint.js +47 -0
  127. package/helpers/shell-region-style.js +2 -1
  128. package/helpers/surface-style.d.ts +12 -1
  129. package/helpers/surface-style.js +60 -12
  130. package/module-dashboard-cards.d.ts +2 -1
  131. package/module-dashboard-cards.js +2 -1
  132. package/module-records.d.ts +7 -0
  133. package/module-records.js +6 -0
  134. package/package.json +1 -1
  135. package/plugins/runtime-modules/area-definitions.d.ts +0 -42
  136. package/plugins/runtime-modules/area-definitions.js +3 -8
  137. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +21 -2
  138. package/plugins/runtime-modules/builder/clients/inspector-surface-labels.js +1 -0
  139. package/plugins/runtime-modules/builder/clients/layout-scaffold-overlays.js +10 -5
  140. package/plugins/runtime-modules/builder/clients/region-inspector.js +47 -2
  141. package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +1 -1
  142. package/plugins/runtime-modules/builder/controller/draft-command-controller.js +7 -4
  143. package/plugins/runtime-modules/builder/controller/page-controller.js +7 -0
  144. package/plugins/runtime-modules/builder/edit-scaffold-drawer.js +3 -2
  145. package/plugins/runtime-modules/builder/persistence.d.ts +3 -0
  146. package/plugins/runtime-modules/builder/persistence.js +9 -1
  147. package/plugins/runtime-modules/builder/render-root-node-scaffold.js +25 -15
  148. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +4 -0
  149. package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +15 -4
  150. package/plugins/runtime-modules/client-authoring-module.d.ts +8 -1
  151. package/plugins/runtime-modules/client-authoring-module.js +13 -3
  152. package/plugins/runtime-modules/core/content-entries/record-source.server.d.ts +3 -1
  153. package/plugins/runtime-modules/core/content-entries/record-source.server.js +7 -4
  154. package/plugins/runtime-modules/core/widgets/brand/client.d.ts +12 -3
  155. package/plugins/runtime-modules/core/widgets/brand/client.js +3 -11
  156. package/plugins/runtime-modules/core/widgets/brand/home.d.ts +15 -0
  157. package/plugins/runtime-modules/core/widgets/brand/home.js +18 -0
  158. package/plugins/runtime-modules/core/widgets/brand/plugin.js +3 -2
  159. package/plugins/runtime-modules/core/widgets/brand/server.d.ts +2 -2
  160. package/plugins/runtime-modules/core/widgets/brand/server.js +2 -2
  161. package/plugins/runtime-modules/core/widgets/button/client.js +2 -2
  162. package/plugins/runtime-modules/core/widgets/button/config.d.ts +40 -4
  163. package/plugins/runtime-modules/core/widgets/button/config.js +12 -0
  164. package/plugins/runtime-modules/core/widgets/card/config.d.ts +100 -1
  165. package/plugins/runtime-modules/core/widgets/card/config.js +57 -3
  166. package/plugins/runtime-modules/core/widgets/card/editor.js +21 -4
  167. package/plugins/runtime-modules/core/widgets/card/server.js +5 -0
  168. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.d.ts +4 -1
  169. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +10 -3
  170. package/plugins/runtime-modules/core/widgets/collection-view/authoring.js +1 -1
  171. package/plugins/runtime-modules/core/widgets/collection-view/client.d.ts +3 -0
  172. package/plugins/runtime-modules/core/widgets/collection-view/client.js +47 -11
  173. package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.d.ts +4 -1
  174. package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.js +2 -2
  175. package/plugins/runtime-modules/core/widgets/collection-view/plugin.js +3 -2
  176. package/plugins/runtime-modules/core/widgets/collection-view/server.d.ts +6 -1
  177. package/plugins/runtime-modules/core/widgets/collection-view/server.js +21 -3
  178. package/plugins/runtime-modules/core/widgets/description/client.js +3 -3
  179. package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -0
  180. package/plugins/runtime-modules/core/widgets/description/editor.js +3 -2
  181. package/plugins/runtime-modules/core/widgets/description/server.js +3 -2
  182. package/plugins/runtime-modules/core/widgets/entry-detail/plugin.js +1 -1
  183. package/plugins/runtime-modules/core/widgets/entry-detail/server.d.ts +3 -1
  184. package/plugins/runtime-modules/core/widgets/entry-detail/server.js +5 -2
  185. package/plugins/runtime-modules/core/widgets/entry-header/plugin.js +1 -1
  186. package/plugins/runtime-modules/core/widgets/entry-header/server.d.ts +3 -1
  187. package/plugins/runtime-modules/core/widgets/entry-header/server.js +5 -2
  188. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -0
  189. package/plugins/runtime-modules/core/widgets/entry-list/plugin.js +1 -1
  190. package/plugins/runtime-modules/core/widgets/entry-list/server.d.ts +6 -3
  191. package/plugins/runtime-modules/core/widgets/entry-list/server.js +13 -6
  192. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -0
  193. package/plugins/runtime-modules/core/widgets/gallery/plugin.js +1 -1
  194. package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +5 -3
  195. package/plugins/runtime-modules/core/widgets/gallery/server.js +8 -6
  196. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +2 -2
  197. package/plugins/runtime-modules/core/widgets/html/client.js +1 -1
  198. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +320 -2
  199. package/plugins/runtime-modules/core/widgets/markdown/config.js +18 -4
  200. package/plugins/runtime-modules/core/widgets/markdown/editor.js +9 -1
  201. package/plugins/runtime-modules/core/widgets/markdown-toc/client.js +6 -1
  202. package/plugins/runtime-modules/core/widgets/markdown-toc/config.d.ts +14 -0
  203. package/plugins/runtime-modules/core/widgets/markdown-toc/config.js +14 -2
  204. package/plugins/runtime-modules/core/widgets/quick-links/authoring.js +7 -2
  205. package/plugins/runtime-modules/core/widgets/quick-links/client.js +2 -2
  206. package/plugins/runtime-modules/core/widgets/quick-links/items.d.ts +0 -2
  207. package/plugins/runtime-modules/core/widgets/quick-links/items.js +0 -15
  208. package/plugins/runtime-modules/core/widgets/record/client.d.ts +4 -1
  209. package/plugins/runtime-modules/core/widgets/record/client.js +8 -3
  210. package/plugins/runtime-modules/core/widgets/record/plugin.js +3 -2
  211. package/plugins/runtime-modules/core/widgets/record/server.d.ts +3 -1
  212. package/plugins/runtime-modules/core/widgets/record/server.js +2 -2
  213. package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -0
  214. package/plugins/runtime-modules/core/widgets/segmented/client.js +1 -1
  215. package/plugins/runtime-modules/core/widgets/segmented/config.d.ts +21 -1
  216. package/plugins/runtime-modules/core/widgets/segmented/config.js +11 -1
  217. package/plugins/runtime-modules/core/widgets/sidebar-navigation/authoring.js +1 -1
  218. package/plugins/runtime-modules/core/widgets/sidebar-navigation/client.js +1 -1
  219. package/plugins/runtime-modules/core/widgets/simple-text/client.js +8 -3
  220. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -0
  221. package/plugins/runtime-modules/core/widgets/simple-text/editor.js +2 -2
  222. package/plugins/runtime-modules/core/widgets/switch/client.js +1 -1
  223. package/plugins/runtime-modules/core/widgets/switch/config.d.ts +19 -0
  224. package/plugins/runtime-modules/core/widgets/switch/config.js +11 -0
  225. package/plugins/runtime-modules/core/widgets/table/authoring.js +1 -1
  226. package/plugins/runtime-modules/core/widgets/table/client.d.ts +4 -1
  227. package/plugins/runtime-modules/core/widgets/table/client.js +16 -3
  228. package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -0
  229. package/plugins/runtime-modules/core/widgets/table/plugin.js +3 -2
  230. package/plugins/runtime-modules/core/widgets/table/server.d.ts +3 -1
  231. package/plugins/runtime-modules/core/widgets/table/server.js +2 -2
  232. package/plugins/runtime-modules/core/widgets/table/static-resource-editor.js +2 -1
  233. package/plugins/runtime-modules/core/widgets/timeline/authoring.js +1 -1
  234. package/plugins/runtime-modules/core/widgets/timeline/client.d.ts +1 -3
  235. package/plugins/runtime-modules/core/widgets/timeline/client.js +14 -4
  236. package/plugins/runtime-modules/core/widgets/tree/authoring.js +1 -1
  237. package/plugins/runtime-modules/core/widgets/tree/client.d.ts +4 -1
  238. package/plugins/runtime-modules/core/widgets/tree/client.js +13 -2
  239. package/plugins/runtime-modules/core/widgets/tree/plugin.js +3 -2
  240. package/plugins/runtime-modules/core/widgets/tree/server.d.ts +3 -1
  241. package/plugins/runtime-modules/core/widgets/tree/server.js +2 -2
  242. package/plugins/runtime-modules/dashboard/card-rows.d.ts +3 -1
  243. package/plugins/runtime-modules/dashboard/card-rows.js +30 -2
  244. package/plugins/runtime-modules/dashboard/clients/dashboard-card-view.js +29 -7
  245. package/plugins/runtime-modules/dashboard/trees/phi-default-builder-dashboard-page-tree.js +5 -40
  246. package/plugins/runtime-modules/theme/presets.d.ts +9 -1
  247. package/plugins/runtime-modules/theme/tour.d.ts +9 -1
  248. package/plugins/runtime-modules/theme/tour.js +10 -1
  249. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +157 -22
  250. package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +5 -9
  251. package/runtime-data-provider-client.d.ts +2 -0
  252. package/runtime-data-provider-client.js +7 -0
  253. package/server-helpers/cms-link-targets.js +6 -0
  254. package/styles/controls.css +74 -7
  255. package/styles/gradients.css +101 -0
  256. package/styles/layout.css +45 -2
  257. package/styles/root.css +18 -0
  258. package/styles/shell.css +137 -0
  259. package/theme/phi-antd-token-resolver.js +20 -1
  260. package/theme/phi-button-shadow.d.ts +6 -0
  261. package/theme/phi-theme-gradients.d.ts +96 -0
  262. package/theme/phi-theme-gradients.js +245 -0
  263. package/theme/phi-theme-presets.d.ts +3 -0
  264. package/theme/phi-theme-presets.js +3 -0
  265. package/theme/phi-theme-tokens.d.ts +6 -2
  266. package/theme/phi-theme-tokens.js +15 -0
  267. package/theme/phi-theme.d.ts +5 -0
  268. package/theme/phi-theme.js +21 -0
  269. package/theme/phi-tokens.d.ts +16 -15
  270. package/theme/phi-tokens.js +16 -15
  271. package/types/cms-plugins.d.ts +2 -0
  272. package/types/cms-presets.d.ts +7 -0
  273. package/types/core-widget-placements.d.ts +3 -0
  274. package/types/dashboard-cards.d.ts +39 -4
  275. package/types/dashboard-cards.js +6 -0
  276. package/types/layout-style.d.ts +9 -8
  277. package/types/layout-style.js +9 -8
  278. package/types/site-theme.d.ts +10 -2
  279. package/types/surface.d.ts +4 -0
  280. package/types/surface.js +4 -0
  281. package/types.d.ts +1 -1
  282. package/types.js +1 -1
@@ -1,3 +1,4 @@
1
+ import type { PhiThemeGradientPalette } from "./phi-theme-gradients";
1
2
  export type PhiThemeMode = "light" | "dark";
2
3
  export type PhiThemeCustomColorKey = "custom1" | "custom2" | "custom3" | "custom4" | "custom5" | "custom6" | "custom7" | "custom8" | "custom9" | "custom10";
3
4
  export type PhiThemeCustomColorPalette = Record<PhiThemeCustomColorKey, string>;
@@ -14,6 +15,8 @@ export type PhiThemePaletteMode = {
14
15
  seed?: Record<string, string>;
15
16
  overrides?: Record<string, string>;
16
17
  customColors?: Partial<PhiThemeCustomColorPalette>;
18
+ /** The mode's gradient slots (theme/phi-theme-gradients.ts); a slot left out is derived. */
19
+ gradients?: PhiThemeGradientPalette;
17
20
  };
18
21
  /**
19
22
  * A palette: the colour of a Theme, in the one shape a Module ships it in and a Site owns it in.
@@ -107,6 +107,9 @@ function mergePhiThemePaletteModes(base, own) {
107
107
  ...(base?.customColors || own?.customColors
108
108
  ? { customColors: { ...(base?.customColors ?? {}), ...(own?.customColors ?? {}) } }
109
109
  : {}),
110
+ ...(base?.gradients || own?.gradients
111
+ ? { gradients: { ...(base?.gradients ?? {}), ...(own?.gradients ?? {}) } }
112
+ : {}),
110
113
  };
111
114
  }
112
115
  /**
@@ -22,7 +22,7 @@ import type { PhiThemePalette } from "./phi-theme-presets";
22
22
  * Who may still speak Ant Design directly is a separate question, and `scripts/validate-control-boundaries.mjs`
23
23
  * answers it: the alias resolver, the root adapter, the two font helpers and this file.
24
24
  */
25
- export declare const PHI_THEME_TOKEN_KEYS: readonly ["colorBgContainer", "colorBgElevated", "colorBgMask", "colorBgSpotlight", "colorBorder", "colorBorderSecondary", "colorSplit", "colorFillAlter", "colorFill", "colorBgLayout", "colorFillQuaternary", "colorFillSecondary", "colorFillTertiary", "colorText", "colorTextBase", "colorTextHeading", "colorTextSecondary", "colorTextTertiary", "colorTextQuaternary", "colorTextDescription", "colorTextDisabled", "colorTextLabel", "colorTextPlaceholder", "colorTextLightSolid", "colorPrimary", "colorPrimaryBg", "colorPrimaryBgHover", "colorPrimaryBorder", "colorPrimaryBorderHover", "colorPrimaryHover", "colorPrimaryActive", "colorPrimaryText", "colorPrimaryTextHover", "colorPrimaryTextActive", "colorInfo", "colorInfoBg", "colorInfoBgHover", "colorInfoBorder", "colorInfoBorderHover", "colorInfoText", "colorInfoTextHover", "colorSuccess", "colorSuccessBg", "colorSuccessBgHover", "colorSuccessBorder", "colorSuccessBorderHover", "colorSuccessText", "colorWarning", "colorWarningBg", "colorWarningBgHover", "colorWarningBorder", "colorWarningBorderHover", "colorWarningText", "colorError", "colorErrorBg", "colorErrorText", "colorErrorTextHover", "colorErrorTextActive", "colorLink", "colorLinkHover", "colorLinkActive", "padding", "paddingXXS", "paddingXS", "paddingSM", "paddingMD", "paddingLG", "paddingXL", "margin", "marginXXS", "marginXS", "marginSM", "marginMD", "marginLG", "marginXL", "marginXXL", "sizeXS", "sizeSM", "sizeMD", "sizeLG", "borderRadius", "borderRadiusXS", "borderRadiusSM", "borderRadiusLG", "borderRadiusOuter", "lineWidth", "lineType", "boxShadow", "boxShadowSecondary", "boxShadowTertiary", "controlHeight", "controlHeightXS", "controlHeightSM", "controlHeightLG", "fontFamily", "fontFamilyCode", "fontSize", "fontSizeSM", "fontSizeLG", "fontSizeXL", "fontSizeHeading1", "fontSizeHeading2", "fontSizeHeading3", "fontSizeHeading4", "fontSizeHeading5", "fontWeightStrong", "lineHeight", "lineHeightLG", "lineHeightHeading1", "lineHeightHeading2", "lineHeightHeading3", "lineHeightHeading4", "lineHeightHeading5", "motionDurationMid", "motionDurationSlow", "motionEaseInOut", "motionEaseOut"];
25
+ export declare const PHI_THEME_TOKEN_KEYS: readonly ["colorBgContainer", "colorBgElevated", "colorBgMask", "colorBgSpotlight", "colorBorder", "colorBorderSecondary", "colorSplit", "colorFillAlter", "colorFill", "colorBgLayout", "colorFillQuaternary", "colorFillSecondary", "colorFillTertiary", "colorText", "colorTextBase", "colorTextHeading", "colorTextSecondary", "colorTextTertiary", "colorTextQuaternary", "colorTextDescription", "colorTextDisabled", "colorTextLabel", "colorTextPlaceholder", "colorTextLightSolid", "colorPrimary", "colorPrimaryBg", "colorPrimaryBgHover", "colorPrimaryBorder", "colorPrimaryBorderHover", "colorPrimaryHover", "colorPrimaryActive", "colorPrimaryText", "colorPrimaryTextHover", "colorPrimaryTextActive", "colorInfo", "colorInfoBg", "colorInfoBgHover", "colorInfoBorder", "colorInfoBorderHover", "colorInfoText", "colorInfoTextHover", "colorSuccess", "colorSuccessBg", "colorSuccessBgHover", "colorSuccessBorder", "colorSuccessBorderHover", "colorSuccessText", "colorWarning", "colorWarningBg", "colorWarningBgHover", "colorWarningBorder", "colorWarningBorderHover", "colorWarningText", "colorError", "colorErrorBg", "colorErrorText", "colorErrorTextHover", "colorErrorTextActive", "colorLink", "colorLinkHover", "colorLinkActive", "padding", "paddingXXS", "paddingXS", "paddingSM", "paddingMD", "paddingLG", "paddingXL", "margin", "marginXXS", "marginXS", "marginSM", "marginMD", "marginLG", "marginXL", "marginXXL", "sizeXS", "sizeSM", "sizeMD", "sizeLG", "borderRadius", "borderRadiusXS", "borderRadiusSM", "borderRadiusLG", "borderRadiusOuter", "lineWidth", "lineType", "boxShadow", "boxShadowSecondary", "boxShadowTertiary", "controlHeight", "controlHeightXS", "controlHeightSM", "controlHeightLG", "fontFamily", "fontFamilyCode", "fontSize", "fontSizeSM", "fontSizeLG", "fontSizeXL", "fontSizeHeading1", "fontSizeHeading2", "fontSizeHeading3", "fontSizeHeading4", "fontSizeHeading5", "fontWeightStrong", "lineHeight", "lineHeightSM", "lineHeightLG", "lineHeightHeading1", "lineHeightHeading2", "lineHeightHeading3", "lineHeightHeading4", "lineHeightHeading5", "motionDurationMid", "motionDurationSlow", "motionEaseInOut", "motionEaseOut"];
26
26
  /**
27
27
  * The names this house adds to Ant Design's set.
28
28
  *
@@ -34,8 +34,12 @@ export declare const PHI_THEME_TOKEN_KEYS: readonly ["colorBgContainer", "colorB
34
34
  * It is a separate list and not one more entry above, because `PhiThemeTokens` is cut from Ant
35
35
  * Design's type and a name Ant Design does not know cannot be cut from it. A Client Component that
36
36
  * needs one of these reads it as a CSS variable, the way a Server Component does.
37
+ *
38
+ * The `phiGradient*` names are the Theme's gradient slots and the primary Buttons' run
39
+ * (theme/phi-theme-gradients.ts): tokens of this package's own, laid over the resolved ones so Ant
40
+ * Design writes them per mode and per Surface tone like every other.
37
41
  */
38
- export declare const PHI_THEME_OWN_TOKEN_KEYS: readonly ["paddingXXL"];
42
+ export declare const PHI_THEME_OWN_TOKEN_KEYS: readonly ["paddingXXL", "phiGradient1", "phiGradient1Text", "phiGradient2", "phiGradient2Text", "phiGradient3", "phiGradient3Text", "phiPrimaryButtonGradient", "phiPrimaryButtonGradientHover", "phiPrimaryButtonGradientActive", "phiPrimaryButtonGradientText"];
39
43
  export type PhiThemeTokenKey = (typeof PHI_THEME_TOKEN_KEYS)[number];
40
44
  /**
41
45
  * The resolved Theme, in the names above and their Ant Design value types.
@@ -138,6 +138,7 @@ export const PHI_THEME_TOKEN_KEYS = [
138
138
  "fontSizeHeading5",
139
139
  "fontWeightStrong",
140
140
  "lineHeight",
141
+ "lineHeightSM",
141
142
  "lineHeightLG",
142
143
  "lineHeightHeading1",
143
144
  "lineHeightHeading2",
@@ -161,9 +162,23 @@ export const PHI_THEME_TOKEN_KEYS = [
161
162
  * It is a separate list and not one more entry above, because `PhiThemeTokens` is cut from Ant
162
163
  * Design's type and a name Ant Design does not know cannot be cut from it. A Client Component that
163
164
  * needs one of these reads it as a CSS variable, the way a Server Component does.
165
+ *
166
+ * The `phiGradient*` names are the Theme's gradient slots and the primary Buttons' run
167
+ * (theme/phi-theme-gradients.ts): tokens of this package's own, laid over the resolved ones so Ant
168
+ * Design writes them per mode and per Surface tone like every other.
164
169
  */
165
170
  export const PHI_THEME_OWN_TOKEN_KEYS = [
166
171
  "paddingXXL",
172
+ "phiGradient1",
173
+ "phiGradient1Text",
174
+ "phiGradient2",
175
+ "phiGradient2Text",
176
+ "phiGradient3",
177
+ "phiGradient3Text",
178
+ "phiPrimaryButtonGradient",
179
+ "phiPrimaryButtonGradientHover",
180
+ "phiPrimaryButtonGradientActive",
181
+ "phiPrimaryButtonGradientText",
167
182
  ];
168
183
  /**
169
184
  * The colours a palette seeds, shared by both modes.
@@ -16,6 +16,11 @@ export type PhiComponentTokenOptions = {
16
16
  overrides?: Record<string, unknown>;
17
17
  };
18
18
  menu?: Record<string, unknown>;
19
+ /** The Theme's small size (`fontSizeSM`), for the parts that take it; absent, the scale's `sm`. */
20
+ fontSizeSM?: number;
21
+ /** The Theme's body size and line height (`fontSize`, `lineHeight`); absent, the scale's `base`. */
22
+ fontSize?: number;
23
+ lineHeight?: number;
19
24
  overrides?: Record<string, Record<string, unknown>>;
20
25
  };
21
26
  export type PhiThemeTokens = {
@@ -65,6 +65,9 @@ export function buildPhiThemeStructuralTokens(options = {}) {
65
65
  return Object.fromEntries(Object.entries(buildPhiThemeTokens(options)).filter(([key]) => !key.startsWith("color")));
66
66
  }
67
67
  export function buildPhiComponentTokens(options = {}) {
68
+ const fontSizeSM = options.fontSizeSM ?? PHI_FONT_SIZES.sm;
69
+ const fontSize = options.fontSize ?? PHI_FONT_SIZES.base;
70
+ const lineHeight = options.lineHeight ?? lineHeightFor(PHI_FONT_SIZES.base);
68
71
  return {
69
72
  Layout: {
70
73
  headerHeight: PHI_LAYOUT.headerHeight,
@@ -81,6 +84,24 @@ export function buildPhiComponentTokens(options = {}) {
81
84
  itemMarginInline: PHI_SPACE.sm,
82
85
  ...options.menu,
83
86
  },
87
+ /*
88
+ * The parts that take the scale's small size rather than the body's. A table is read across, not down:
89
+ * its cells are small, as a plain table's are (controls.css). A compact control -- `size="small"` --
90
+ * is small in its words as well as its height; Ant Design gives it the body size unless told.
91
+ */
92
+ Table: { cellFontSize: fontSizeSM, cellFontSizeMD: fontSizeSM, cellFontSizeSM: fontSizeSM },
93
+ // A Tree lists rows like a Table and writes like one: its titles, and the switcher's icon with them.
94
+ Tree: { fontSize: fontSizeSM },
95
+ // A contents list beside a text is a list like a Tree's, and writes as small.
96
+ Anchor: { fontSize: fontSizeSM },
97
+ // A Divider's words label a section; Ant Design sets them at `lg`, which the scale made a heading's size.
98
+ Divider: { fontSizeLG: fontSize },
99
+ Input: { inputFontSizeSM: fontSizeSM },
100
+ InputNumber: { inputFontSizeSM: fontSizeSM },
101
+ DatePicker: { inputFontSizeSM: fontSizeSM },
102
+ Button: { contentFontSizeSM: fontSizeSM },
103
+ // An Overlay's title is a label over its body, in the body's size; Ant Design gives a Modal the h5's.
104
+ Modal: { titleFontSize: fontSize, titleLineHeight: lineHeight },
84
105
  ...options.overrides,
85
106
  };
86
107
  }
@@ -19,28 +19,29 @@ export declare const PHI_PADDING: {
19
19
  /**
20
20
  * The type scale: one list for every size a Phi surface states.
21
21
  *
22
- * Two halves. Up to `lg` it climbs in steps of 2 px, because an interface needs its small sizes close
23
- * together -- a caption, a tag, a label, the text beside them. From `xl` it is the spacing sequence, where
24
- * the steps are meant to be far apart. Every size is set rather than left to Ant Design's curve, which
25
- * lands between the steps.
22
+ * A ladder of phi from the body size 16 -- the browser's own, and what reading text on the web is set in.
23
+ * `sm`, `lg`, `xxl` and `display` are the Fibonacci sizes around it (13, 21, 34, 55), `xl` is 16 x phi (26),
24
+ * between 21 and 34 where their geometric mean falls, and `xs` keeps the 9 a counter or a superscript needs.
25
+ * Every size is set rather than left to Ant Design's curve, which lands between the steps.
26
26
  *
27
27
  * `sm` to `xl` are handed to Ant Design as its tokens; `xs`, `xxl` and `display` have none and are read
28
- * from here, fixed until v1. The headings take their sizes from the same list: `h4` and `h5` are both the
29
- * body size and differ by weight and colour alone. `display` is no heading level but a size, for a hero's
30
- * or a landing's title, and is not offered beside the others.
28
+ * from here, fixed until v1. The headings take their sizes from the same list: `h1` the page's title at
29
+ * `xxl`, about twice the body, then `xl`, `lg`, and `h4` and `h5` at the body and `sm` sizes, set apart by
30
+ * weight and colour. `display` is no heading level but a size, for a hero's or a landing's title, and is
31
+ * not offered beside the others.
31
32
  */
32
33
  export declare const PHI_FONT_SIZES: {
33
34
  readonly xs: 9;
34
- readonly sm: 11;
35
- readonly base: 13;
36
- readonly lg: 15;
37
- readonly xl: 21;
35
+ readonly sm: 13;
36
+ readonly base: 16;
37
+ readonly lg: 21;
38
+ readonly xl: 26;
38
39
  readonly xxl: 34;
39
40
  readonly display: 55;
40
41
  readonly heading1: 34;
41
- readonly heading2: 21;
42
- readonly heading3: 15;
43
- readonly heading4: 13;
42
+ readonly heading2: 26;
43
+ readonly heading3: 21;
44
+ readonly heading4: 16;
44
45
  readonly heading5: 13;
45
46
  };
46
47
  export declare const PHI_RADII: {
@@ -54,7 +55,7 @@ export declare const PHI_RADII: {
54
55
  readonly xxl: 89;
55
56
  };
56
57
  export declare const PHI_CONTROL_HEIGHTS: {
57
- readonly sm: 21;
58
+ readonly sm: 26;
58
59
  readonly md: 34;
59
60
  readonly lg: 55;
60
61
  };
@@ -19,28 +19,29 @@ export const PHI_PADDING = {
19
19
  /**
20
20
  * The type scale: one list for every size a Phi surface states.
21
21
  *
22
- * Two halves. Up to `lg` it climbs in steps of 2 px, because an interface needs its small sizes close
23
- * together -- a caption, a tag, a label, the text beside them. From `xl` it is the spacing sequence, where
24
- * the steps are meant to be far apart. Every size is set rather than left to Ant Design's curve, which
25
- * lands between the steps.
22
+ * A ladder of phi from the body size 16 -- the browser's own, and what reading text on the web is set in.
23
+ * `sm`, `lg`, `xxl` and `display` are the Fibonacci sizes around it (13, 21, 34, 55), `xl` is 16 x phi (26),
24
+ * between 21 and 34 where their geometric mean falls, and `xs` keeps the 9 a counter or a superscript needs.
25
+ * Every size is set rather than left to Ant Design's curve, which lands between the steps.
26
26
  *
27
27
  * `sm` to `xl` are handed to Ant Design as its tokens; `xs`, `xxl` and `display` have none and are read
28
- * from here, fixed until v1. The headings take their sizes from the same list: `h4` and `h5` are both the
29
- * body size and differ by weight and colour alone. `display` is no heading level but a size, for a hero's
30
- * or a landing's title, and is not offered beside the others.
28
+ * from here, fixed until v1. The headings take their sizes from the same list: `h1` the page's title at
29
+ * `xxl`, about twice the body, then `xl`, `lg`, and `h4` and `h5` at the body and `sm` sizes, set apart by
30
+ * weight and colour. `display` is no heading level but a size, for a hero's or a landing's title, and is
31
+ * not offered beside the others.
31
32
  */
32
33
  export const PHI_FONT_SIZES = {
33
34
  xs: 9,
34
- sm: 11,
35
- base: 13,
36
- lg: 15,
37
- xl: 21,
35
+ sm: 13,
36
+ base: 16,
37
+ lg: 21,
38
+ xl: 26,
38
39
  xxl: 34,
39
40
  display: 55,
40
41
  heading1: 34,
41
- heading2: 21,
42
- heading3: 15,
43
- heading4: 13,
42
+ heading2: 26,
43
+ heading3: 21,
44
+ heading4: 16,
44
45
  heading5: 13,
45
46
  };
46
47
  export const PHI_RADII = {
@@ -54,7 +55,7 @@ export const PHI_RADII = {
54
55
  xxl: 89,
55
56
  };
56
57
  export const PHI_CONTROL_HEIGHTS = {
57
- sm: 21,
58
+ sm: 26,
58
59
  md: 34,
59
60
  lg: 55,
60
61
  };
@@ -114,6 +114,8 @@ export type PhiCmsConfigField = (PhiCmsConfigFieldBase & {
114
114
  * Button that is only its icon.
115
115
  */
116
116
  emptyValue?: "";
117
+ /** What an empty box shows: what an unset value means, such as `Auto`. Not stored. */
118
+ placeholder?: string;
117
119
  }) | (PhiCmsConfigFieldBase & {
118
120
  /**
119
121
  * One link, chosen rather than typed.
@@ -37,11 +37,18 @@ export type PhiCmsRegionConfig = Record<string, unknown> & PhiCmsContainerChrome
37
37
  fontSize?: CSSProperties["fontSize"];
38
38
  lineHeight?: CSSProperties["lineHeight"];
39
39
  offsetTop?: PhiCssLength;
40
+ /** The air below a `Sticky` `footer_bottom` when it sticks to the viewport's bottom; nobody else reads it. */
41
+ offsetBottom?: PhiCssLength;
40
42
  zIndex?: number;
41
43
  /** Which of the Area's Pages show this Shell Region (`helpers/region-page-scope.ts`). */
42
44
  pageScope?: PhiCmsRegionPageScope;
43
45
  /** How `header_top` comes into view (`helpers/region-page-scope.ts`); every other Region ignores it. */
44
46
  reveal?: PhiCmsRegionReveal;
47
+ /**
48
+ * How far the Page's `content` reaches up into its Hero, the Hero's picture running on under it (SHELL.md
49
+ * "Content reaching into the Hero"). Read on `content` alone, and only where the Page has a Hero.
50
+ */
51
+ heroOverlap?: PhiCssLength;
45
52
  };
46
53
  /**
47
54
  * Which Pages a Shell Region stands on (SHELL.md "Region visibility per Page").
@@ -14,6 +14,7 @@ import type { PhiViewerAccessPolicy } from "./access";
14
14
  import type { PhiWidgetFontFamilyKey, PhiWidgetFontSizeKey } from "./site-theme";
15
15
  import type { PhiTableQuery, PhiTableWidgetConfig, PhiTableWidgetFeatures, PhiTableWidgetPresentation } from "./table-widget";
16
16
  import type { PhiButtonVariant } from "../components/widgets/config/button-variant";
17
+ import type { PhiThemeGradientKey } from "../theme/phi-theme-gradients";
17
18
  import type { PhiTextTone } from "../components/widgets/config/text-tone";
18
19
  import type { PhiCommonControlActionKey } from "../components/widgets/label-types/common-controls";
19
20
  import type { PhiMaskConfig } from "../components/widgets/config/mask";
@@ -97,6 +98,8 @@ export type PhiButtonWidgetPlacement = PhiWidgetPlacementBase & PhiControlPlacem
97
98
  icon?: string;
98
99
  value?: string;
99
100
  variant?: PhiButtonVariant;
101
+ /** The Theme gradient slot a `gradient` Button is filled with; absent, the first. */
102
+ gradient?: PhiThemeGradientKey;
100
103
  linkTarget?: PhiLinkTarget;
101
104
  danger?: boolean;
102
105
  };
@@ -31,15 +31,48 @@ export declare function createPhiDashboardCardId(moduleId: string, leaf: string)
31
31
  * `stat` is a figure, what it is, and where to go for more. `list` is a handful of entries -- what
32
32
  * changed, what is waiting -- each a line with an optional time and tone; the Builder's Dashboard is the
33
33
  * case that asked for it, because what a structure author looks for first is what is open rather than
34
- * how many. The form names a renderer and the payload fills it, and a form Core offers is a promise it
35
- * then keeps: a series card stays open until somebody has a series (DASHBOARD.md section 9).
34
+ * how many. `series` is a figure over time -- a day's views, clones or downloads for the last month --
35
+ * drawn as a line per series under its headline; the project-stats Add-on is the case that asked for it
36
+ * (DASHBOARD.md section 9). The form names a renderer and the payload fills it, and a form Core offers
37
+ * is a promise it then keeps.
36
38
  */
37
- export type PhiDashboardCardForm = "stat" | "list";
39
+ export type PhiDashboardCardForm = "stat" | "list" | "series";
38
40
  /**
39
41
  * How many entries a `list` card draws. A card shows little and leads out (DASHBOARD.md section 2); a
40
42
  * provider that has more says so in `meta` and lets the card's target show the rest.
41
43
  */
42
44
  export declare const PHI_DASHBOARD_CARD_LIST_LIMIT = 5;
45
+ /**
46
+ * How many series a `series` card draws. Two or three lines on a card's width still read as a comparison
47
+ * -- views and unique visitors -- and a fourth is a chart that wants a page of its own; a provider that has
48
+ * more puts them on separate cards or on the card's target.
49
+ */
50
+ export declare const PHI_DASHBOARD_CARD_SERIES_LIMIT = 3;
51
+ /**
52
+ * A `series` card's figures over time.
53
+ *
54
+ * Point by point, oldest first, because that is how a provider counts: one row per day, each with a value
55
+ * for every series. `labels` names the series in the order each point's `values` states them, so a point
56
+ * carries exactly one number per label -- a day nothing was counted on is a `0`, not a missing value,
57
+ * because a gap a line would have to bridge or break is a decision the card should not be making.
58
+ *
59
+ * `at` is when the point stands: an ISO date (`2026-11-05`) for a day, or an instant. The card formats it
60
+ * in the page's locale, a date as the calendar day it names. `unit` is a word for what is counted,
61
+ * already translated ("views", "downloads"), drawn after the figure in the chart's spoken label.
62
+ *
63
+ * The headline is the payload's `value`, as on a `stat` card: a figure the provider states -- a total
64
+ * over the period, which the points cannot add up to when the provider counts uniques. Absent, the card
65
+ * shows the latest point of the first series.
66
+ */
67
+ export type PhiDashboardCardSeries = {
68
+ labels: string[];
69
+ points: PhiDashboardCardSeriesPoint[];
70
+ unit?: string;
71
+ };
72
+ export type PhiDashboardCardSeriesPoint = {
73
+ at: string;
74
+ values: number[];
75
+ };
43
76
  export type PhiDashboardCardDescriptor = {
44
77
  cardId: PhiDashboardCardId;
45
78
  form: PhiDashboardCardForm;
@@ -96,7 +129,7 @@ export type PhiDashboardCardDescriptor = {
96
129
  */
97
130
  export type PhiDashboardCardPayload = {
98
131
  cardId: PhiDashboardCardId;
99
- /** A `stat` card's figure, drawn under the descriptor's title. */
132
+ /** A `stat` card's figure, drawn under the descriptor's title, and a `series` card's headline. */
100
133
  value?: string;
101
134
  /**
102
135
  * A `list` card's entries, newest or most pressing first, at most `PHI_DASHBOARD_CARD_LIST_LIMIT` of
@@ -104,6 +137,8 @@ export type PhiDashboardCardPayload = {
104
137
  * card formats in the page's locale, or in words where words are what the provider has.
105
138
  */
106
139
  entries?: PhiTimelineEntry[];
140
+ /** A `series` card's points, drawn under the headline `value`. */
141
+ series?: PhiDashboardCardSeries;
107
142
  description?: string;
108
143
  meta?: string;
109
144
  error?: string | null;
@@ -18,3 +18,9 @@ export function createPhiDashboardCardId(moduleId, leaf) {
18
18
  * provider that has more says so in `meta` and lets the card's target show the rest.
19
19
  */
20
20
  export const PHI_DASHBOARD_CARD_LIST_LIMIT = 5;
21
+ /**
22
+ * How many series a `series` card draws. Two or three lines on a card's width still read as a comparison
23
+ * -- views and unique visitors -- and a fourth is a chart that wants a page of its own; a provider that has
24
+ * more puts them on separate cards or on the card's target.
25
+ */
26
+ export const PHI_DASHBOARD_CARD_SERIES_LIMIT = 3;
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * The Background filters that are a pane rather than a treatment of the paint itself.
3
3
  *
4
- * `glass` and `haze` are the same thing at two strengths: a sheet that frosts what shows through it.
5
- * `glass` is the frosted pane, `haze` the barely clouded one -- both a smaller radius and more of the
6
- * ground let through, because moving only one of the two reads as a dirty window rather than as
7
- * lighter glass. Everything that used to test for `glass` asks this instead, so a further strength
8
- * would be a table entry and not another branch.
4
+ * `clear`, `glass` and `haze` are the same thing at three strengths: a sheet that frosts what shows
5
+ * through it, light, medium and strong. The frost and the share of the ground's colour rise together,
6
+ * because moving only one of the two reads as a dirty window rather than as another strength of glass.
7
+ * `clear` lifts and saturates what it shows so it still reads as glass with little tint. Everything
8
+ * that used to test for `glass` asks this instead, so a further strength is a table entry and not
9
+ * another branch.
9
10
  */
10
- export declare const PHI_GLASS_LAYOUT_EFFECT_IDS: readonly ["glass", "haze"];
11
+ export declare const PHI_GLASS_LAYOUT_EFFECT_IDS: readonly ["glass", "haze", "clear"];
11
12
  export type PhiGlassLayoutEffectId = (typeof PHI_GLASS_LAYOUT_EFFECT_IDS)[number];
12
13
  export declare function isPhiGlassLayoutEffectId(value: unknown): value is PhiGlassLayoutEffectId;
13
14
  export declare const PHI_SHADOW_IDS: readonly ["none", "soft", "strong"];
@@ -22,11 +23,11 @@ export declare function readPhiShadow(value: unknown): PhiShadow | undefined;
22
23
  /**
23
24
  * What a Background does to the light that reaches it, beside what it paints.
24
25
  *
25
- * `glass` and `haze` are panes: they frost what shows THROUGH the surface, so they act on the backdrop and
26
+ * `glass`, `haze` and `clear` are panes: they frost what shows THROUGH the surface, so they act on the backdrop and
26
27
  * on a ground thinned enough to let it through. `blur` softens the Background's own paint -- the picture,
27
28
  * the gradient, the pattern -- and nothing in front of it: the content a surface carries is never filtered.
28
29
  * Darkening is not a filter; a colour Overlay at an opacity does it, and lets the colour be chosen.
29
30
  */
30
- export declare const PHI_BACKGROUND_FILTERS: readonly ["glass", "haze", "blur"];
31
+ export declare const PHI_BACKGROUND_FILTERS: readonly ["glass", "haze", "clear", "blur"];
31
32
  export type PhiBackgroundFilter = (typeof PHI_BACKGROUND_FILTERS)[number];
32
33
  export declare function isPhiBackgroundFilter(value: unknown): value is PhiBackgroundFilter;
@@ -2,13 +2,14 @@ import { isPhiRecord } from "../helpers/is-record";
2
2
  /**
3
3
  * The Background filters that are a pane rather than a treatment of the paint itself.
4
4
  *
5
- * `glass` and `haze` are the same thing at two strengths: a sheet that frosts what shows through it.
6
- * `glass` is the frosted pane, `haze` the barely clouded one -- both a smaller radius and more of the
7
- * ground let through, because moving only one of the two reads as a dirty window rather than as
8
- * lighter glass. Everything that used to test for `glass` asks this instead, so a further strength
9
- * would be a table entry and not another branch.
5
+ * `clear`, `glass` and `haze` are the same thing at three strengths: a sheet that frosts what shows
6
+ * through it, light, medium and strong. The frost and the share of the ground's colour rise together,
7
+ * because moving only one of the two reads as a dirty window rather than as another strength of glass.
8
+ * `clear` lifts and saturates what it shows so it still reads as glass with little tint. Everything
9
+ * that used to test for `glass` asks this instead, so a further strength is a table entry and not
10
+ * another branch.
10
11
  */
11
- export const PHI_GLASS_LAYOUT_EFFECT_IDS = ["glass", "haze"];
12
+ export const PHI_GLASS_LAYOUT_EFFECT_IDS = ["glass", "haze", "clear"];
12
13
  export function isPhiGlassLayoutEffectId(value) {
13
14
  return typeof value === "string" && PHI_GLASS_LAYOUT_EFFECT_IDS.includes(value);
14
15
  }
@@ -32,12 +33,12 @@ export function readPhiShadow(value) {
32
33
  /**
33
34
  * What a Background does to the light that reaches it, beside what it paints.
34
35
  *
35
- * `glass` and `haze` are panes: they frost what shows THROUGH the surface, so they act on the backdrop and
36
+ * `glass`, `haze` and `clear` are panes: they frost what shows THROUGH the surface, so they act on the backdrop and
36
37
  * on a ground thinned enough to let it through. `blur` softens the Background's own paint -- the picture,
37
38
  * the gradient, the pattern -- and nothing in front of it: the content a surface carries is never filtered.
38
39
  * Darkening is not a filter; a colour Overlay at an opacity does it, and lets the colour be chosen.
39
40
  */
40
- export const PHI_BACKGROUND_FILTERS = ["glass", "haze", "blur"];
41
+ export const PHI_BACKGROUND_FILTERS = ["glass", "haze", "clear", "blur"];
41
42
  export function isPhiBackgroundFilter(value) {
42
43
  return typeof value === "string" && PHI_BACKGROUND_FILTERS.includes(value);
43
44
  }
@@ -1,4 +1,5 @@
1
1
  import type { PhiShadow } from "./layout-style";
2
+ import type { PhiLinkTarget } from "./references";
2
3
  import type { PhiCmsBackgroundWidgetConfig } from "../components/widgets/config/background";
3
4
  /**
4
5
  * The Theme Root Background (SHELL.md "Root Background and Shell Backdrop Layers"): painted once at
@@ -113,8 +114,15 @@ export type PhiSiteThemeBrandLine = {
113
114
  * decides is whether and how the Brand Widget appears; what it shows is decided here.
114
115
  */
115
116
  export type PhiSiteThemeBrand = {
116
- /** Where the Brand Widget leads when it is clicked. The Site root where nothing says otherwise. */
117
- homeHref?: string | null;
117
+ /**
118
+ * Where the Brand Widget leads when it is clicked. The Site root where nothing says otherwise.
119
+ *
120
+ * A link target like every other destination an author picks (`REFERENCES.md`): a Page by reference,
121
+ * resolved to its address per render, so a Page that is renamed or moved keeps the Brand leading to
122
+ * it. A Page that no longer resolves leads to the Site root rather than to a 404. The key ends in
123
+ * `LinkTarget`, which is what the reference collectors go by.
124
+ */
125
+ homeLinkTarget?: PhiLinkTarget | null;
118
126
  /** The small line above the Wordmark, for Sites whose name needs a word of context. */
119
127
  eyebrow?: string | null;
120
128
  /** The Logo, one picture per mode. A mode the record says nothing about wears the Theme Set's. */
@@ -20,6 +20,9 @@ export type PhiSurfaceTone = (typeof PHI_SURFACE_TONES)[number];
20
20
  * `effects`, which say how it arrives rather than what it is.
21
21
  *
22
22
  * - `background` carries its own Filter: a glass pane or a softened paint is something the ground does.
23
+ * - `backgroundDark` is the ground in dark mode, where the box wants another one than in light mode -- a
24
+ * Hero's dark picture for a dark page. Absent, `background` stands in both modes. The page's mode
25
+ * picks, in CSS (`helpers/mode-paint.ts`), so a mode switch needs no render.
23
26
  * - `borderSource` says where the line comes from. Only `custom` reads `border`, corners included; under
24
27
  * `theme` and `none` the corner is the Site's surface step, so a shape change is seen at once.
25
28
  * - `shadow` is depth.
@@ -29,6 +32,7 @@ export type PhiSurfaceTone = (typeof PHI_SURFACE_TONES)[number];
29
32
  */
30
33
  export type PhiSurface = {
31
34
  background?: PhiCmsBackgroundWidgetConfig | null;
35
+ backgroundDark?: PhiCmsBackgroundWidgetConfig | null;
32
36
  borderSource?: PhiCmsBorderSource;
33
37
  border?: PhiCmsBorderWidgetConfig | null;
34
38
  shadow?: PhiShadow | null;
package/types/surface.js CHANGED
@@ -38,6 +38,9 @@ export function readPhiSurface(value) {
38
38
  const background = isPhiRecord(raw.background)
39
39
  ? normalizePhiBackgroundWidgetConfig(raw.background)
40
40
  : null;
41
+ const backgroundDark = isPhiRecord(raw.backgroundDark)
42
+ ? normalizePhiBackgroundWidgetConfig(raw.backgroundDark)
43
+ : null;
41
44
  const borderSource = readPhiCmsBorderSource(raw.borderSource);
42
45
  const border = isPhiRecord(raw.border)
43
46
  ? readPhiCmsBorderWidgetConfig(raw.border) ?? null
@@ -46,6 +49,7 @@ export function readPhiSurface(value) {
46
49
  const tone = isPhiSurfaceTone(raw.tone) && raw.tone !== "inherit" ? raw.tone : undefined;
47
50
  const surface = {
48
51
  ...(background ? { background } : {}),
52
+ ...(backgroundDark ? { backgroundDark } : {}),
49
53
  ...(borderSource ? { borderSource } : {}),
50
54
  ...(border ? { border } : {}),
51
55
  ...(shadow ? { shadow } : {}),
package/types.d.ts CHANGED
@@ -22,7 +22,7 @@ export type { PhiAuthoringRenderPolicy, PhiCmsBuilderWidgetEditorInteraction, Ph
22
22
  export type * from "./types/cms-presets";
23
23
  export type * from "./types/slot-size-policy";
24
24
  export type * from "./types/runtime-data-provider";
25
- export { isPhiRuntimeDataProviderKey } from "./types/runtime-data-provider";
25
+ export { isPhiRuntimeDataProviderKey, readPhiRuntimeDataProviderBinding } from "./types/runtime-data-provider";
26
26
  export type * from "./types/table-widget";
27
27
  export type * from "./types/tree-widget";
28
28
  export type * from "./types/collection-provider";
package/types.js CHANGED
@@ -12,7 +12,7 @@ export * from "./types/spacing";
12
12
  export * from "./types/runtime-condition";
13
13
  export * from "./types/state-machine";
14
14
  export * from "./types/access";
15
- export { isPhiRuntimeDataProviderKey } from "./types/runtime-data-provider";
15
+ export { isPhiRuntimeDataProviderKey, readPhiRuntimeDataProviderBinding } from "./types/runtime-data-provider";
16
16
  export * from "./types/form-id";
17
17
  export { PhiTableProviderError, readPhiTableProviderError, readPhiTableQuery, } from "./types/table-widget";
18
18
  export { PhiTreeProviderError, readPhiTreeProviderError, readPhiTreeProviderQueryResult, readPhiTreeProviderMutationResult, validatePhiTreeWidgetBinding, } from "./types/tree-widget";