@phis/ui 0.4.4 → 0.4.6

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 (238) 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 +31 -2
  5. package/components/controls/phi-background-control.d.ts +6 -1
  6. package/components/controls/phi-background-control.js +12 -4
  7. package/components/controls/phi-button-control.d.ts +15 -1
  8. package/components/controls/phi-button-control.js +21 -3
  9. package/components/controls/phi-collapse-control.d.ts +6 -2
  10. package/components/controls/phi-collapse-control.js +2 -2
  11. package/components/controls/phi-dialog-control.d.ts +11 -5
  12. package/components/controls/phi-dialog-control.js +19 -13
  13. package/components/controls/phi-dropdown-control.js +2 -2
  14. package/components/controls/phi-media-asset-tile-control.js +10 -10
  15. package/components/controls/phi-menu-control-vocabulary.d.ts +7 -0
  16. package/components/controls/phi-menu-control-vocabulary.js +10 -0
  17. package/components/controls/phi-menu-control.d.ts +4 -1
  18. package/components/controls/phi-menu-control.js +6 -1
  19. package/components/controls/phi-progress-control.d.ts +10 -2
  20. package/components/controls/phi-progress-control.js +6 -2
  21. package/components/controls/phi-ribbon-control.d.ts +4 -1
  22. package/components/controls/phi-ribbon-control.js +5 -3
  23. package/components/controls/phi-ribbon-wrap-control.d.ts +7 -1
  24. package/components/controls/phi-ribbon-wrap-control.js +8 -2
  25. package/components/controls/phi-segmented-control.d.ts +4 -1
  26. package/components/controls/phi-segmented-control.js +13 -2
  27. package/components/controls/phi-surface-control.d.ts +2 -0
  28. package/components/controls/phi-surface-control.js +16 -1
  29. package/components/controls/phi-switch-control.d.ts +4 -1
  30. package/components/controls/phi-switch-control.js +8 -2
  31. package/components/controls/phi-tag-control.d.ts +4 -1
  32. package/components/controls/phi-tag-control.js +11 -3
  33. package/components/layouts/clients/phi-split-card-layout-client.js +13 -5
  34. package/components/layouts/clients/phi-three-column-layout-client.js +9 -3
  35. package/components/layouts/phi-layout-view-model.js +10 -1
  36. package/components/layouts/split-card-geometry.js +6 -2
  37. package/components/media/aspect-ratios.d.ts +2 -2
  38. package/components/menus/phi-account-menu.js +3 -1
  39. package/components/navigation/phi-link.js +7 -2
  40. package/components/navigation/use-phi-protected-mail.d.ts +11 -0
  41. package/components/navigation/use-phi-protected-mail.js +29 -0
  42. package/components/regions/clients/cms-region-container-client.js +16 -2
  43. package/components/regions/phi-cms-region-container.js +5 -1
  44. package/components/regions/phi-cms-region-shell.d.ts +11 -0
  45. package/components/regions/phi-cms-region-shell.js +64 -7
  46. package/components/regions/presets/phi-area-shell-preset-nodes.js +2 -1
  47. package/components/root/phi-config-provider.js +16 -0
  48. package/components/root/phi-root-layout.d.ts +1 -0
  49. package/components/root/phi-root-layout.js +1 -0
  50. package/components/root/phi-root-theme-resolver.js +12 -1
  51. package/components/root/phi-shell-chrome-overlay.d.ts +6 -0
  52. package/components/root/phi-shell-chrome-overlay.js +7 -1
  53. package/components/runtime/runtime-module-context.d.ts +12 -1
  54. package/components/runtime/runtime-module-context.js +6 -1
  55. package/components/shell/phi-cms-shell.d.ts +9 -1
  56. package/components/shell/phi-cms-shell.js +10 -4
  57. package/components/shell/phi-nav-link.js +7 -2
  58. package/components/shell/phi-shell-sider-drawer.d.ts +17 -0
  59. package/components/shell/phi-shell-sider-drawer.js +88 -0
  60. package/components/shell/use-phi-shell-header-bands.d.ts +5 -0
  61. package/components/shell/use-phi-shell-header-bands.js +64 -0
  62. package/components/shell/use-phi-shell-sticky-bottom.d.ts +18 -0
  63. package/components/shell/use-phi-shell-sticky-bottom.js +54 -0
  64. package/components/tables/client/phi-table-binding.d.ts +1 -0
  65. package/components/tables/client/phi-table-binding.js +22 -3
  66. package/components/trees/client/phi-tree-binding.d.ts +1 -0
  67. package/components/trees/client/phi-tree-binding.js +11 -2
  68. package/components/widgets/client/shared/phi-collection-provider.js +4 -3
  69. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  70. package/components/widgets/client/shared/phi-collection-view-binding.js +16 -2
  71. package/components/widgets/client/shared/phi-command-buttons.js +6 -2
  72. package/components/widgets/config/background.d.ts +20 -0
  73. package/components/widgets/config/background.js +44 -2
  74. package/components/widgets/config/button-variant.d.ts +22 -4
  75. package/components/widgets/config/button-variant.js +24 -5
  76. package/components/widgets/config/common-action-field.d.ts +1 -1
  77. package/components/widgets/config/parser-primitives.js +4 -2
  78. package/components/widgets/config/theme-gradient.d.ts +11 -0
  79. package/components/widgets/config/theme-gradient.js +12 -0
  80. package/components/widgets/helpers/internal-reference-resolver.server.d.ts +1 -0
  81. package/components/widgets/helpers/internal-reference-resolver.server.js +4 -1
  82. package/components/widgets/label-sets/background.js +2 -0
  83. package/components/widgets/label-sets/geometry.js +2 -0
  84. package/components/widgets/label-sets/inspector.js +6 -0
  85. package/components/widgets/label-types/background.d.ts +1 -0
  86. package/components/widgets/label-types/background.js +1 -0
  87. package/components/widgets/label-types/common-controls.js +2 -2
  88. package/components/widgets/label-types/geometry.d.ts +1 -0
  89. package/components/widgets/label-types/geometry.js +1 -0
  90. package/components/widgets/label-types/inspector.d.ts +6 -0
  91. package/components/widgets/label-types/inspector.js +3 -0
  92. package/components/widgets/server/navigation-request.js +13 -1
  93. package/components/widgets/shared/card-body-client.d.ts +13 -0
  94. package/components/widgets/shared/card-body-client.js +40 -11
  95. package/components/widgets/shared/card-vocabulary.d.ts +36 -0
  96. package/components/widgets/shared/card-vocabulary.js +52 -0
  97. package/components/widgets/shared/collection-source-failure.d.ts +26 -0
  98. package/components/widgets/shared/collection-source-failure.js +42 -0
  99. package/components/widgets/shared/markdown-body-client.d.ts +29 -0
  100. package/components/widgets/shared/markdown-body-client.js +60 -5
  101. package/components/widgets/shared/markdown-image-vocabulary.d.ts +31 -0
  102. package/components/widgets/shared/markdown-image-vocabulary.js +68 -0
  103. package/components/widgets/shared/markdown-render.d.ts +5 -0
  104. package/components/widgets/shared/markdown-render.js +139 -11
  105. package/components/widgets/shared/markdown-sections.d.ts +40 -0
  106. package/components/widgets/shared/markdown-sections.js +111 -0
  107. package/components/widgets/shared/widget-failure-client.d.ts +10 -0
  108. package/components/widgets/shared/widget-failure-client.js +20 -0
  109. package/components/widgets/shared/widget-failure.d.ts +31 -0
  110. package/components/widgets/shared/widget-failure.js +20 -0
  111. package/components/widgets/shared/widget-failure.server.d.ts +9 -0
  112. package/components/widgets/shared/widget-failure.server.js +12 -0
  113. package/gateway/dashboard-card-memo.d.ts +3 -0
  114. package/gateway/dashboard-card-memo.js +25 -0
  115. package/helpers/cms-region-keys.d.ts +1 -1
  116. package/helpers/external-href.js +1 -1
  117. package/helpers/layout-style.d.ts +8 -4
  118. package/helpers/layout-style.js +3 -2
  119. package/helpers/mode-paint.d.ts +4 -0
  120. package/helpers/mode-paint.js +47 -0
  121. package/helpers/protected-mail.d.ts +16 -0
  122. package/helpers/protected-mail.js +81 -0
  123. package/helpers/surface-style.js +33 -11
  124. package/module-dashboard-cards.d.ts +1 -0
  125. package/module-dashboard-cards.js +1 -0
  126. package/module-records.d.ts +7 -0
  127. package/module-records.js +6 -0
  128. package/package.json +2 -2
  129. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +1 -1
  130. package/plugins/runtime-modules/builder/clients/inspector-surface-labels.js +1 -0
  131. package/plugins/runtime-modules/builder/clients/region-inspector.js +67 -3
  132. package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +1 -1
  133. package/plugins/runtime-modules/builder/controller/draft-command-controller.js +7 -4
  134. package/plugins/runtime-modules/builder/controller/page-controller.js +7 -0
  135. package/plugins/runtime-modules/builder/persistence.d.ts +3 -0
  136. package/plugins/runtime-modules/builder/persistence.js +9 -1
  137. package/plugins/runtime-modules/core/content-entries/record-source.server.d.ts +3 -1
  138. package/plugins/runtime-modules/core/content-entries/record-source.server.js +7 -4
  139. package/plugins/runtime-modules/core/widgets/button/client.js +2 -2
  140. package/plugins/runtime-modules/core/widgets/button/config.d.ts +40 -4
  141. package/plugins/runtime-modules/core/widgets/button/config.js +12 -0
  142. package/plugins/runtime-modules/core/widgets/card/config.d.ts +102 -1
  143. package/plugins/runtime-modules/core/widgets/card/config.js +60 -1
  144. package/plugins/runtime-modules/core/widgets/card/editor.js +17 -2
  145. package/plugins/runtime-modules/core/widgets/card/server.js +13 -1
  146. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.d.ts +4 -1
  147. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +10 -3
  148. package/plugins/runtime-modules/core/widgets/collection-view/authoring.js +1 -1
  149. package/plugins/runtime-modules/core/widgets/collection-view/client.d.ts +3 -0
  150. package/plugins/runtime-modules/core/widgets/collection-view/client.js +47 -11
  151. package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.d.ts +4 -1
  152. package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.js +2 -2
  153. package/plugins/runtime-modules/core/widgets/collection-view/plugin.js +3 -2
  154. package/plugins/runtime-modules/core/widgets/collection-view/server.d.ts +6 -1
  155. package/plugins/runtime-modules/core/widgets/collection-view/server.js +21 -3
  156. package/plugins/runtime-modules/core/widgets/entry-detail/plugin.js +1 -1
  157. package/plugins/runtime-modules/core/widgets/entry-detail/server.d.ts +3 -1
  158. package/plugins/runtime-modules/core/widgets/entry-detail/server.js +5 -2
  159. package/plugins/runtime-modules/core/widgets/entry-header/plugin.js +1 -1
  160. package/plugins/runtime-modules/core/widgets/entry-header/server.d.ts +3 -1
  161. package/plugins/runtime-modules/core/widgets/entry-header/server.js +5 -2
  162. package/plugins/runtime-modules/core/widgets/entry-list/plugin.js +1 -1
  163. package/plugins/runtime-modules/core/widgets/entry-list/server.d.ts +6 -3
  164. package/plugins/runtime-modules/core/widgets/entry-list/server.js +13 -6
  165. package/plugins/runtime-modules/core/widgets/entry-list/view.server.js +2 -1
  166. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +3 -3
  167. package/plugins/runtime-modules/core/widgets/gallery/plugin.js +1 -1
  168. package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +5 -3
  169. package/plugins/runtime-modules/core/widgets/gallery/server.js +8 -6
  170. package/plugins/runtime-modules/core/widgets/header-navigation/client.d.ts +6 -1
  171. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +40 -13
  172. package/plugins/runtime-modules/core/widgets/header-navigation/config.d.ts +26 -1
  173. package/plugins/runtime-modules/core/widgets/header-navigation/config.js +27 -0
  174. package/plugins/runtime-modules/core/widgets/header-navigation/plugin.js +1 -1
  175. package/plugins/runtime-modules/core/widgets/header-navigation/server.d.ts +2 -2
  176. package/plugins/runtime-modules/core/widgets/header-navigation/server.js +3 -1
  177. package/plugins/runtime-modules/core/widgets/image/client.js +11 -7
  178. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +16 -0
  179. package/plugins/runtime-modules/core/widgets/markdown/config.js +46 -1
  180. package/plugins/runtime-modules/core/widgets/markdown/server.js +22 -8
  181. package/plugins/runtime-modules/core/widgets/record/client.d.ts +4 -1
  182. package/plugins/runtime-modules/core/widgets/record/client.js +8 -3
  183. package/plugins/runtime-modules/core/widgets/record/plugin.js +3 -2
  184. package/plugins/runtime-modules/core/widgets/record/server.d.ts +3 -1
  185. package/plugins/runtime-modules/core/widgets/record/server.js +2 -2
  186. package/plugins/runtime-modules/core/widgets/segmented/client.js +1 -1
  187. package/plugins/runtime-modules/core/widgets/segmented/config.d.ts +21 -1
  188. package/plugins/runtime-modules/core/widgets/segmented/config.js +11 -1
  189. package/plugins/runtime-modules/core/widgets/simple-text/server.js +11 -1
  190. package/plugins/runtime-modules/core/widgets/switch/client.js +1 -1
  191. package/plugins/runtime-modules/core/widgets/switch/config.d.ts +19 -0
  192. package/plugins/runtime-modules/core/widgets/switch/config.js +11 -0
  193. package/plugins/runtime-modules/core/widgets/table/authoring.js +1 -1
  194. package/plugins/runtime-modules/core/widgets/table/client.d.ts +4 -1
  195. package/plugins/runtime-modules/core/widgets/table/client.js +16 -3
  196. package/plugins/runtime-modules/core/widgets/table/plugin.js +3 -2
  197. package/plugins/runtime-modules/core/widgets/table/server.d.ts +3 -1
  198. package/plugins/runtime-modules/core/widgets/table/server.js +2 -2
  199. package/plugins/runtime-modules/core/widgets/table/static-resource-editor.js +2 -1
  200. package/plugins/runtime-modules/core/widgets/timeline/authoring.js +1 -1
  201. package/plugins/runtime-modules/core/widgets/timeline/client.d.ts +1 -3
  202. package/plugins/runtime-modules/core/widgets/timeline/client.js +14 -4
  203. package/plugins/runtime-modules/core/widgets/tree/authoring.js +1 -1
  204. package/plugins/runtime-modules/core/widgets/tree/client.d.ts +4 -1
  205. package/plugins/runtime-modules/core/widgets/tree/client.js +13 -2
  206. package/plugins/runtime-modules/core/widgets/tree/plugin.js +3 -2
  207. package/plugins/runtime-modules/core/widgets/tree/server.d.ts +3 -1
  208. package/plugins/runtime-modules/core/widgets/tree/server.js +2 -2
  209. package/plugins/runtime-modules/theme/presets.d.ts +9 -1
  210. package/plugins/runtime-modules/theme/tour.d.ts +9 -1
  211. package/plugins/runtime-modules/theme/tour.js +10 -1
  212. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +138 -7
  213. package/runtime-data-provider-client.d.ts +2 -0
  214. package/runtime-data-provider-client.js +7 -0
  215. package/styles/controls.css +118 -15
  216. package/styles/gradients.css +101 -0
  217. package/styles/layout.css +35 -0
  218. package/styles/root.css +18 -0
  219. package/styles/shell.css +206 -0
  220. package/theme/phi-button-shadow.d.ts +6 -0
  221. package/theme/phi-theme-gradients.d.ts +96 -0
  222. package/theme/phi-theme-gradients.js +245 -0
  223. package/theme/phi-theme-presets.d.ts +3 -0
  224. package/theme/phi-theme-presets.js +3 -0
  225. package/theme/phi-theme-tokens.d.ts +5 -1
  226. package/theme/phi-theme-tokens.js +14 -0
  227. package/theme/phi-tokens.d.ts +6 -0
  228. package/theme/phi-tokens.js +6 -0
  229. package/theme.d.ts +1 -0
  230. package/theme.js +6 -0
  231. package/types/cms-presets.d.ts +7 -0
  232. package/types/core-widget-placements.d.ts +8 -0
  233. package/types/layout-style.d.ts +9 -8
  234. package/types/layout-style.js +9 -8
  235. package/types/surface.d.ts +4 -0
  236. package/types/surface.js +4 -0
  237. package/types.d.ts +1 -1
  238. package/types.js +1 -1
package/README.md CHANGED
@@ -50,7 +50,11 @@ It does not own:
50
50
  `createPhiNextStaticAreaLayout`, and the Area bridges in `@phis/ui/next/areas/<area>`). They hold no CMS,
51
51
  locale, or access logic. Behavior fixes arrive by updating the package, not by editing the Site.
52
52
  - Install Module packages with `phis module add --site <site key> --package <name>`, rebuild, and enable
53
- the Module per Area in the Builder.
53
+ the Module per Area in the Builder. `--spec <version or workspace:*>` also writes the package into the
54
+ Site's dependencies (without it the package must already resolve; nothing is fetched), and `--path
55
+ <site root>` names the Site when it is not the Site's configured source path. A package resolves through
56
+ its `exports`, which point into `dist`, so a local or workspace package must be built (`pnpm build`)
57
+ before it is added, and rebuilt after every change for the Site to see it.
54
58
  - The Site boundary, the route graph, fonts, and metadata are [NEXT_INTEGRATION.md](./NEXT_INTEGRATION.md).
55
59
 
56
60
  ## For Module authors
@@ -68,9 +72,9 @@ The root export (`@phis/ui`) is not an integration surface; import from the grou
68
72
 
69
73
  | Group | Entry points |
70
74
  | --- | --- |
71
- | Next.js Site | `next/area-route`, `next/areas/<area>`, `next/areas/<area>-client`, `next/root-route`, `next/root-error-page`, `next/global-error`, `next/site-bridge`, `next/site-proxy`, `next/proxy-runtime`, `next/route-handlers`, `next/seo-routes`, `next/overlay-zones`, `next/overlay-zones-client`, `next/cache-handler`, `next/runtime-module-client-boundary` |
75
+ | Next.js Site | `next/config` (`withPhiNextConfig` for the Site's `next.config`), `next/area-route`, `next/areas/<area>`, `next/areas/<area>-client`, `next/root-route`, `next/root-error-page`, `next/global-error`, `next/site-bridge`, `next/site-proxy`, `next/proxy-runtime`, `next/route-handlers`, `next/seo-routes`, `next/overlay-zones`, `next/overlay-zones-client`, `next/cache-handler`, `next/runtime-module-client-boundary` |
72
76
  | CMS rendering | `cms`, `cms/root-layout`, `cms/root-page`, `cms/root-slot-page`, `cms/error-page`, `cms/request`, `cms/plugins`, `cms/plugins/<area>` |
73
- | Module packages | `module`, `module/client`, `module/authoring-client`, `module/labels`, `module/dashboard-cards`, `module/projection`, `module/projection/client`, `module/projection/authoring-client`, `module/site-modules`, `module/site-modules-client` |
77
+ | Module packages | `module`, `module/client`, `module/authoring-client`, `module/labels`, `module/dashboard-cards`, `module/records`, `module/projection`, `module/projection/client`, `module/projection/authoring-client`, `module/site-modules`, `module/site-modules-client` |
74
78
  | Runtime Clients | `runtime`, `runtime/controller-client`, `runtime/render-client`, `runtime/signal-client`, `runtime/data-provider-client`, `runtime/authoring-client`, `runtime/authoring-manifest-client`, `runtime/calendar-adapter-client`, `runtime/user-state-client`, `runtime/client-manifests/<area>` |
75
79
  | UI | `widgets`, `core-widgets`, `widget-config`, `controls`, `controls/config`, `controls/date-time`, `layouts`, `shells`, `root`, `navigation`, `forms`, `forms/client`, `media`, `references`, `state`, `theme` |
76
80
  | Builder | `builder-api-route` |
@@ -99,6 +103,8 @@ graph.
99
103
  | Tables, Trees, Collections | [TABLES.md](./TABLES.md), [TREES.md](./TREES.md), [COLLECTIONS.md](./COLLECTIONS.md) |
100
104
  | Overlays | [OVERLAYS.md](./OVERLAYS.md) |
101
105
  | Conversation surfaces | [THREADS.md](./THREADS.md) |
106
+ | Area Dashboards and Module cards | [DASHBOARD.md](./DASHBOARD.md) |
107
+ | Content entries (blog, news) and their Pages | [CONTENT_ENTRIES.md](./CONTENT_ENTRIES.md) |
102
108
  | Builder | [BUILDER.md](./BUILDER.md) |
103
109
  | Settings | [SETTINGS.md](./SETTINGS.md) |
104
110
  | Access and visibility | [ACCESS.md](./ACCESS.md) |
package/cms/plugins.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export type { PhiCmsSiteBridge } from "../types/cms-plugins";
2
+ export { definePhiPassiveWidgetRenderers } from "../plugins/factories/widget-renderers";
2
3
  export { assertPhiCmsPresetTreeContract, buildPhiCmsPresetIdentityKey, compilePhiCmsActiveRouteTable, compilePhiCmsDescriptorCatalog, instantiatePhiCmsAreaShellPreset, instantiatePhiCmsRoutePreset, instantiatePhiCmsThemePreset, instantiatePhiCmsThemePresets, normalizePhiCmsRoutePath, resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, resolvePhiCmsRoutePreset, resolvePhiCmsRoutePresetByPageId, resolvePhiCmsRoutePresetByIdentity, resolvePhiCmsThemePresetBinding, } from "../plugins/runtime-modules/descriptor-compiler";
3
4
  export { buildPhiRuntimeModulePackageRoutePrefix, readPhiRuntimeModulePackageRouteParts, } from "../helpers/runtime-module-route-path";
4
5
  export { assertPhiRuntimeModuleCatalog, createPhiRuntimeModuleCatalog, buildPhiRuntimeModuleControllerDescriptor, buildPhiRuntimeModuleDataProviderDescriptor, extendPhiRuntimeModuleCatalog, } from "../plugins/runtime-modules/contracts";
package/cms/plugins.js CHANGED
@@ -1,3 +1,5 @@
1
+ // A package's Widget draws its Preview inert the way a Core Widget does, rather than live.
2
+ export { definePhiPassiveWidgetRenderers } from "../plugins/factories/widget-renderers";
1
3
  export { assertPhiCmsPresetTreeContract, buildPhiCmsPresetIdentityKey, compilePhiCmsActiveRouteTable, compilePhiCmsDescriptorCatalog, instantiatePhiCmsAreaShellPreset, instantiatePhiCmsRoutePreset, instantiatePhiCmsThemePreset, instantiatePhiCmsThemePresets, normalizePhiCmsRoutePath, resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, resolvePhiCmsRoutePreset, resolvePhiCmsRoutePresetByPageId, resolvePhiCmsRoutePresetByIdentity, resolvePhiCmsThemePresetBinding, } from "../plugins/runtime-modules/descriptor-compiler";
2
4
  export { buildPhiRuntimeModulePackageRoutePrefix, readPhiRuntimeModulePackageRouteParts, } from "../helpers/runtime-module-route-path";
3
5
  export { assertPhiRuntimeModuleCatalog, createPhiRuntimeModuleCatalog, buildPhiRuntimeModuleControllerDescriptor, buildPhiRuntimeModuleDataProviderDescriptor, extendPhiRuntimeModuleCatalog, } from "../plugins/runtime-modules/contracts";
@@ -255,11 +255,40 @@ export async function PhiCmsAreaShell({ root, cmsBridge, children, chrome = "she
255
255
  extent: headerTopExtent,
256
256
  stack: headerTopReveal === "scroll-up" ? headerTopExtent : 0,
257
257
  };
258
+ /*
259
+ * The room the two Area bands hold, where their configs state a height: what a Hero stands behind on
260
+ * the first paint (`styles/shell.css`, "Hero at the top"). A `header_top` the browser decides holds
261
+ * what it was just resolved to hold.
262
+ */
263
+ const headerTopBandRoom = !hasRenderableHeaderTop
264
+ ? 0
265
+ : headerTopBehaviour != null
266
+ ? headerTopRoom.extent
267
+ : readPhiShellChromePanePixels(headerTopBand?.height);
268
+ const headerMainBandRoom = hasRenderableHeaderMain
269
+ ? readPhiShellChromePanePixels(readPhiShellChromePaneBand(headerMainRegion?.config)?.height)
270
+ : 0;
271
+ /*
272
+ * The Page's own `header_bottom` where it states a height, so a Hero's words start below it on the first
273
+ * paint too; a band sized by its content is the browser's to measure.
274
+ */
275
+ const resolvedPage = scope.rootScope.resolvedRequest?.page;
276
+ const pageHeaderBottom = resolvedPage?.regions.find((region) => region.regionType === PhiCmsRegionType.HeaderBottom);
277
+ const headerBottomBandRoom = !resolvedPage
278
+ ? null
279
+ : pageHeaderBottom
280
+ ? readPhiShellChromePanePixels(readPhiShellChromePaneBand(pageHeaderBottom.config)?.height)
281
+ : 0;
282
+ const headerBandRoom = {
283
+ ...(headerTopBandRoom == null ? {} : { "--phi-shell-band-top": `${headerTopBandRoom}px` }),
284
+ ...(headerMainBandRoom == null ? {} : { "--phi-shell-band-main": `${headerMainBandRoom}px` }),
285
+ ...(headerBottomBandRoom == null ? {} : { "--phi-shell-band-bottom": `${headerBottomBandRoom}px` }),
286
+ };
258
287
  const headerPaneStickyTop = resolvePhiShellHeaderPaneStickyTop(headerTopBand, hasRenderableHeaderMain ? readPhiShellChromePaneBand(headerMainRegion?.config) : null, headerTopBehaviour, headerTopRoom);
259
- return (_jsx(PhiCmsShell, { content: children, headerPaneStickyTop: headerPaneStickyTop, headerTopRoom: headerTopBehaviour == null ? undefined : {
288
+ return (_jsx(PhiCmsShell, { content: children, headerPaneStickyTop: headerPaneStickyTop, headerBandRoom: headerBandRoom, headerTopRoom: headerTopBehaviour == null ? undefined : {
260
289
  [PHI_SHELL_HEADER_TOP_EXTENT_PROPERTY]: `${headerTopRoom.extent}px`,
261
290
  [PHI_SHELL_HEADER_TOP_STACK_PROPERTY]: `${headerTopRoom.stack}px`,
262
- }, headerTop: hasRenderableHeaderTop ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region header_top", regionTypes: [PhiCmsRegionType.HeaderTop], registry: runtimeRegistry })) : undefined, headerMain: hasRenderableHeaderMain ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region header_main", regionTypes: [PhiCmsRegionType.HeaderMain], registry: runtimeRegistry })) : undefined, headerBottom: headerBottom, hero: hero, siderLeft: hasRenderableSiderLeft ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "sider_left", regionTypes: [PhiCmsRegionType.SiderLeft], stackGap: 0, registry: runtimeRegistry })) : undefined, siderRight: siderRight, siderLeftFullHeight: hasPhiConfigFlag(siderLeftRegion?.config, PhiCmsFlags.FullHeight) && hasRenderableSiderLeft, footerTop: footerTop, drawer: drawer, footerMain: hasRenderableFooterMain ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region footer_main", regionTypes: [PhiCmsRegionType.Footer], registry: runtimeRegistry })) : undefined, footerBottom: hasRenderableFooterBottom ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region footer_bottom", regionTypes: [PhiCmsRegionType.FooterBottom], registry: runtimeRegistry })) : undefined }));
291
+ }, headerTop: hasRenderableHeaderTop ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region header_top", regionTypes: [PhiCmsRegionType.HeaderTop], registry: runtimeRegistry })) : undefined, headerMain: hasRenderableHeaderMain ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region header_main", regionTypes: [PhiCmsRegionType.HeaderMain], registry: runtimeRegistry })) : undefined, headerBottom: headerBottom, hero: hero, siderLeft: hasRenderableSiderLeft ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "sider_left", regionTypes: [PhiCmsRegionType.SiderLeft], stackGap: 0, registry: runtimeRegistry })) : undefined, siderRight: siderRight, siderLeftFullHeight: hasPhiConfigFlag(siderLeftRegion?.config, PhiCmsFlags.FullHeight) && hasRenderableSiderLeft, siderLeftMobileDrawer: hasRenderableSiderLeft && hasPhiConfigFlag(siderLeftRegion?.config, PhiCmsFlags.MobileDrawer), footerTop: footerTop, drawer: drawer, footerMain: hasRenderableFooterMain ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region footer_main", regionTypes: [PhiCmsRegionType.Footer], registry: runtimeRegistry })) : undefined, footerBottom: hasRenderableFooterBottom ? (_jsx(PhiCmsLayoutRenderer, { tree: filteredLayoutTree, runtime: runtime, regionClassName: "phi-shell-region footer_bottom", regionTypes: [PhiCmsRegionType.FooterBottom], registry: runtimeRegistry })) : undefined }));
263
292
  }
264
293
  /**
265
294
  * Boundary and Shell in one component, for a caller that is not a pair of Layouts.
@@ -54,6 +54,11 @@ export type PhiBackgroundControlProps = {
54
54
  * for it.
55
55
  */
56
56
  baseKinds?: readonly PhiCmsBackgroundWidgetConfig["base"]["kind"][];
57
+ /**
58
+ * Whether the surface draws an Overlay over its Base. A Theme gradient slot is one run and nothing
59
+ * over it, so it offers none; absent is offered.
60
+ */
61
+ overlay?: boolean;
57
62
  renderMediaPicker?: (props: {
58
63
  purpose: "preview" | "field";
59
64
  value?: number | null;
@@ -75,4 +80,4 @@ export type PhiBackgroundControlProps = {
75
80
  editTransaction?: PhiBackgroundEditTransaction;
76
81
  onChange?: (value: PhiCmsBackgroundWidgetConfig) => void;
77
82
  };
78
- export declare function PhiBackgroundControl({ value, config, disabled, mode, labels, colorPickerLabels, colorPickerPlacement, motionModes, filters, imageSourceKinds, baseKinds, renderMediaPicker, editTransaction, onChange, }: PhiBackgroundControlProps): import("react").JSX.Element;
83
+ export declare function PhiBackgroundControl({ value, config, disabled, mode, labels, colorPickerLabels, colorPickerPlacement, motionModes, filters, imageSourceKinds, baseKinds, overlay: overlayOffered, renderMediaPicker, editTransaction, onChange, }: PhiBackgroundControlProps): import("react").JSX.Element;
@@ -61,7 +61,7 @@ function toPickerValue(background) {
61
61
  function resolveStoredSolidColor(color) {
62
62
  return color;
63
63
  }
64
- export function PhiBackgroundControl({ value, config, disabled = false, mode = "control", labels = PHI_BACKGROUND_WIDGET_DEFAULT_LABELS, colorPickerLabels = PHI_COLOR_PICKER_DEFAULT_LABELS, colorPickerPlacement, motionModes = PHI_BACKGROUND_MOTION_MODES, filters = PHI_BACKGROUND_FILTERS, imageSourceKinds = PHI_BACKGROUND_IMAGE_SOURCE_KINDS, baseKinds = PHI_BACKGROUND_BASE_KINDS, renderMediaPicker, editTransaction, onChange, }) {
64
+ export function PhiBackgroundControl({ value, config, disabled = false, mode = "control", labels = PHI_BACKGROUND_WIDGET_DEFAULT_LABELS, colorPickerLabels = PHI_COLOR_PICKER_DEFAULT_LABELS, colorPickerPlacement, motionModes = PHI_BACKGROUND_MOTION_MODES, filters = PHI_BACKGROUND_FILTERS, imageSourceKinds = PHI_BACKGROUND_IMAGE_SOURCE_KINDS, baseKinds = PHI_BACKGROUND_BASE_KINDS, overlay: overlayOffered = true, renderMediaPicker, editTransaction, onChange, }) {
65
65
  const { token } = theme.useToken();
66
66
  const colorPickerPresets = usePhiColorControlPresets({ labels: colorPickerLabels });
67
67
  const currentValue = useMemo(() => normalizePhiBackgroundWidgetConfig(value ?? config ?? null), [value, config]);
@@ -211,6 +211,7 @@ export function PhiBackgroundControl({ value, config, disabled = false, mode = "
211
211
  ];
212
212
  const filterKindCatalog = [
213
213
  { value: "none", label: labels.common.none },
214
+ { value: "clear", label: labels.filter.clear },
214
215
  { value: "glass", label: labels.filter.glass },
215
216
  { value: "haze", label: labels.filter.haze },
216
217
  { value: "blur", label: labels.filter.blur },
@@ -230,7 +231,7 @@ export function PhiBackgroundControl({ value, config, disabled = false, mode = "
230
231
  * A `theme` Base is the Theme's Overlay whole -- its own Overlay and pane included -- so the Background
231
232
  * offers nothing to lay over it, and the Filter segment has nothing to offer either.
232
233
  */
233
- const offersOverlay = currentValue.base.kind !== "theme";
234
+ const offersOverlay = overlayOffered && currentValue.base.kind !== "theme";
234
235
  useEffect(() => {
235
236
  if (currentValue.base.kind === "color") {
236
237
  lastColorBaseRef.current = currentValue.base;
@@ -662,7 +663,14 @@ export function PhiBackgroundControl({ value, config, disabled = false, mode = "
662
663
  return (_jsx(ConfigPreviewShell, { expanded: canOpenPreview, children: renderPreviewPicker() }));
663
664
  }
664
665
  const showPreview = mode !== "config";
665
- return (_jsxs(PhiFlexControl, { vertical: true, gap: 12, style: { width: "100%" }, children: [showPreview ? (_jsx(ConfigPreviewShell, { expanded: canOpenPreview, children: renderPreviewPicker() })) : null, _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingXS, width: "100%" }, children: [_jsx(Typography.Text, { children: labels.sections.base }), _jsx(PhiSelectControl, { ariaLabel: labels.sections.base, disabled: isDisabled, value: currentValue.base.kind, options: baseKindOptions, style: { width: "100%" }, onChange: (next) => {
666
+ /*
667
+ * Only what can be changed is shown. One Base kind is no choice, so its Select goes; and where the
668
+ * preview is drawn, a click on it opens the colour or gradient picker, so the second picker beside it
669
+ * would only repeat it.
670
+ */
671
+ const soleBaseKind = baseKinds.length === 1;
672
+ const basePickerInPreview = soleBaseKind && showPreview;
673
+ return (_jsxs(PhiFlexControl, { vertical: true, gap: 12, style: { width: "100%" }, children: [showPreview ? (_jsx(ConfigPreviewShell, { expanded: canOpenPreview, children: renderPreviewPicker() })) : null, soleBaseKind ? null : _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingXS, width: "100%" }, children: [_jsx(Typography.Text, { children: labels.sections.base }), _jsx(PhiSelectControl, { ariaLabel: labels.sections.base, disabled: isDisabled, value: currentValue.base.kind, options: baseKindOptions, style: { width: "100%" }, onChange: (next) => {
666
674
  if (next != null)
667
675
  updateBaseKind(next);
668
676
  } })] }), currentValue.base.kind === "image" ? (_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingSM, width: "100%" }, children: [_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingXS, wrap: false, style: { width: "100%" }, children: [_jsx(Typography.Text, { children: labels.sections.image }), currentValue.base.sourceKind === "asset" && currentValue.base.assetId != null ? (_jsx(Typography.Text, { type: "secondary", style: { fontSize: token.fontSizeSM, textAlign: "right" }, children: currentValue.base.assetId })) : null] }), _jsxs("div", { style: {
@@ -691,7 +699,7 @@ export function PhiBackgroundControl({ value, config, disabled = false, mode = "
691
699
  }, children: [_jsx(Select, { value: currentValue.base.position ?? "center", disabled: isDisabled, style: { width: "100%" }, options: backgroundPositionOptions, onChange: (next) => updateImageField("position", next) }), _jsx(Select, { value: currentValue.base.size ?? "cover", disabled: isDisabled, style: { width: "100%" }, options: backgroundSizeOptions, onChange: (next) => updateImageField("size", next) }), _jsx(Select, { value: currentValue.base.repeat ?? "no-repeat", disabled: isDisabled, style: { width: "100%" }, options: backgroundRepeatOptions, onChange: (next) => updateImageField("repeat", next) })] }), backgroundMotionOptions.length > 1 ? (_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingXS, width: "100%" }, children: [_jsx(Typography.Text, { children: labels.sections.motion }), _jsx(PhiSegmentedControl, { block: true, value: activeMotionMode, options: backgroundMotionOptions, disabled: isDisabled, onChange: updateMotionMode }), activeParallaxMotion ? (_jsxs(_Fragment, { children: [_jsx(Typography.Text, { children: labels.motion.strength }), _jsx(PhiSliderControl, { min: 0, max: 1, step: 0.05, ariaLabel: labels.motion.strength, value: activeParallaxMotion.strength ?? resolvePhiBackgroundParallaxDefaultStrength(activeParallaxMotion.travel), disabled: isDisabled, tooltipSuffix: "\u00D7", style: { width: "100%" }, onChange: (strength) => {
692
700
  beginSliderEdit();
693
701
  updateParallaxMotion({ strength });
694
- }, onChangeComplete: commitSliderEdit }), _jsx(Typography.Text, { children: labels.motion.direction }), _jsx(PhiSegmentedControl, { block: true, value: activeParallaxMotion.direction ?? "natural", options: backgroundMotionDirectionOptions, disabled: isDisabled, onChange: (direction) => updateParallaxMotion({ direction }) }), _jsx(Typography.Text, { children: labels.motion.travel }), _jsx(PhiSegmentedControl, { block: true, value: activeParallaxMotion.travel ?? "rate", options: backgroundMotionTravelOptions, disabled: isDisabled, onChange: (travel) => updateParallaxMotion({ travel }) })] })) : null] })) : null] })) : currentValue.base.kind === "color" || currentValue.base.kind === "gradient" ? (_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingSM, width: "100%" }, children: [currentValue.base.kind === "color" ? (_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingSM, wrap: "wrap", children: [_jsx(Typography.Text, { children: labels.base.color }), _jsx(PhiColorControl, { ...colorPickerTransaction, value: currentValue.base.color, disabled: isDisabled, presets: colorPickerPresets, placement: colorPickerPlacement, onChange: (value) => {
702
+ }, onChangeComplete: commitSliderEdit }), _jsx(Typography.Text, { children: labels.motion.direction }), _jsx(PhiSegmentedControl, { block: true, value: activeParallaxMotion.direction ?? "natural", options: backgroundMotionDirectionOptions, disabled: isDisabled, onChange: (direction) => updateParallaxMotion({ direction }) }), _jsx(Typography.Text, { children: labels.motion.travel }), _jsx(PhiSegmentedControl, { block: true, value: activeParallaxMotion.travel ?? "rate", options: backgroundMotionTravelOptions, disabled: isDisabled, onChange: (travel) => updateParallaxMotion({ travel }) })] })) : null] })) : null] })) : currentValue.base.kind === "color" || currentValue.base.kind === "gradient" ? (_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: token.paddingSM, width: "100%" }, children: [basePickerInPreview ? null : currentValue.base.kind === "color" ? (_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingSM, wrap: "wrap", children: [_jsx(Typography.Text, { children: labels.base.color }), _jsx(PhiColorControl, { ...colorPickerTransaction, value: currentValue.base.color, disabled: isDisabled, presets: colorPickerPresets, placement: colorPickerPlacement, onChange: (value) => {
695
703
  if (value != null)
696
704
  updateBaseFromCss(value);
697
705
  } })] })) : (_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingSM, wrap: "wrap", children: [_jsx(Typography.Text, { children: labels.base.gradient }), _jsx(PhiColorControl, { ...colorPickerTransaction, mode: "gradient", value: derivedPickerValue, disabled: isDisabled, presets: colorPickerPresets, placement: colorPickerPlacement, onChange: (value) => {
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode, type Ref } from "react";
2
2
  import type { ButtonProps } from "antd";
3
3
  import type { PhiControlSize } from "../../types/control";
4
+ import { type PhiThemeGradientKey } from "../../theme/phi-theme-gradients";
4
5
  import type { PhiButtonType } from "./phi-button-types";
5
6
  export type PhiControlBadgePresentation = {
6
7
  enabled?: boolean;
@@ -14,6 +15,8 @@ export type PhiButtonControlProps = {
14
15
  ariaLabel?: string;
15
16
  /** For a button that is a toggle -- pause and play -- whether it is on. */
16
17
  ariaPressed?: boolean;
18
+ /** Whether what the Button opens is open: a menu button's `aria-expanded`. */
19
+ ariaExpanded?: boolean;
17
20
  /**
18
21
  * Renders the button as a link rather than a command.
19
22
  *
@@ -54,6 +57,17 @@ export type PhiButtonControlProps = {
54
57
  * not a kind of button -- it is any kind of button, drawn for a background it does not own.
55
58
  */
56
59
  ghost?: boolean;
60
+ /**
61
+ * Fills the button with one of the Theme's gradient slots (theme/phi-theme-gradients.ts), whatever
62
+ * `type` says: it is drawn as a primary button with the run over it (`styles/gradients.css`), so the
63
+ * primary colour stays its edge and where the run is not drawn -- a disabled button -- its fallback.
64
+ */
65
+ gradient?: PhiThemeGradientKey;
66
+ /**
67
+ * Draws the button as a frosted pane of the ground of the mode it stands in, for a button over a picture
68
+ * or a gradient -- where `ghost` keeps the outline and loses the words in a busy background.
69
+ */
70
+ glass?: boolean;
57
71
  disabled?: boolean;
58
72
  /**
59
73
  * Shown as it is and answering nothing: no hover, no press, no click -- where `disabled` greys it out.
@@ -80,4 +94,4 @@ export type PhiButtonControlProps = {
80
94
  ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
81
95
  onClick?: () => void;
82
96
  };
83
- export declare function PhiButtonControl({ label, ariaLabel, ariaPressed, href, newTab, external, tooltip, icon, type, shape, danger, ghost, disabled, readOnly, loading, htmlType, block, size, style, badge, className, ref, onClick, }: PhiButtonControlProps): import("react").JSX.Element;
97
+ export declare function PhiButtonControl({ label, ariaLabel, ariaPressed, ariaExpanded, href, newTab, external, tooltip, icon, type, shape, danger, ghost, gradient, glass, disabled, readOnly, loading, htmlType, block, size, style, badge, className, ref, onClick, }: PhiButtonControlProps): import("react").JSX.Element;
@@ -2,6 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { lazy, Suspense } from "react";
4
4
  import { Button } from "antd";
5
+ import { PHI_THEME_GRADIENT_CSS_VARS, } from "../../theme/phi-theme-gradients";
5
6
  import { PhiLink } from "../navigation/phi-link";
6
7
  import { PhiHoverText } from "./phi-hover-text";
7
8
  /*
@@ -10,14 +11,31 @@ import { PhiHoverText } from "./phi-hover-text";
10
11
  * that draws a Button.
11
12
  */
12
13
  const PhiLazyBadge = lazy(() => import("antd/es/badge"));
13
- export function PhiButtonControl({ label, ariaLabel, ariaPressed, href, newTab, external, tooltip, icon, type = "default", shape, danger, ghost, disabled, readOnly, loading, htmlType, block, size, style, badge, className, ref, onClick, }) {
14
+ const PHI_GLASS_BUTTON_FILTER = "blur(12px) saturate(140%)";
15
+ export function PhiButtonControl({ label, ariaLabel, ariaPressed, ariaExpanded, href, newTab, external, tooltip, icon, type = "default", shape, danger, ghost, gradient, glass, disabled, readOnly, loading, htmlType, block, size, style, badge, className, ref, onClick, }) {
14
16
  const visibleTooltip = typeof label === "string" && typeof tooltip === "string" && label === tooltip
15
17
  ? null
16
18
  : tooltip;
17
19
  const inert = disabled || (!readOnly && !onClick && !href && htmlType !== "submit");
18
- const button = (_jsx(Button, { ref: ref, className: className, "aria-label": ariaLabel, "aria-pressed": ariaPressed, type: type, shape: shape, danger: danger, ghost: ghost, disabled: inert, loading: loading, htmlType: htmlType, block: block, size: size,
20
+ const gradientVars = gradient ? PHI_THEME_GRADIENT_CSS_VARS[gradient] : null;
21
+ const paintedStyle = gradientVars
22
+ ? {
23
+ ...style,
24
+ "--phi-control-gradient": `var(${gradientVars.paint})`,
25
+ "--phi-control-gradient-text": `var(${gradientVars.text})`,
26
+ }
27
+ : glass
28
+ /* Inline, as the Shell's panes frost: a `backdrop-filter` in a stylesheet does not survive the build. */
29
+ ? { ...style, backdropFilter: PHI_GLASS_BUTTON_FILTER, WebkitBackdropFilter: PHI_GLASS_BUTTON_FILTER }
30
+ : style;
31
+ const paintedClassName = [
32
+ className,
33
+ gradientVars ? "phi-btn-gradient" : null,
34
+ glass && !gradientVars ? "phi-btn-glass" : null,
35
+ ].filter(Boolean).join(" ") || undefined;
36
+ const button = (_jsx(Button, { ref: ref, className: paintedClassName, "aria-label": ariaLabel, "aria-pressed": ariaPressed, "aria-expanded": ariaExpanded, type: gradientVars ? "primary" : glass ? "default" : type, shape: shape, danger: danger, ghost: ghost, disabled: inert, loading: loading, htmlType: htmlType, block: block, size: size,
19
37
  /* Not a pointer target at all, so the Button's own hover and press states never start. */
20
- style: readOnly ? { ...style, pointerEvents: "none" } : style, "aria-disabled": readOnly || undefined, icon: icon, onClick: readOnly ? undefined : onClick, children: label }));
38
+ style: readOnly ? { ...paintedStyle, pointerEvents: "none" } : paintedStyle, "aria-disabled": readOnly || undefined, icon: icon, onClick: readOnly ? undefined : onClick, children: label }));
21
39
  /*
22
40
  * Through `PhiLink`, which is where this house decides between a client navigation and a plain
23
41
  * anchor -- and where `target="_blank"` and `rel` are one decision rather than two props that can
@@ -24,8 +24,12 @@ export type PhiCollapseControlProps = {
24
24
  openKeys: readonly string[];
25
25
  onOpenKeysChange?: (keys: string[]) => void;
26
26
  accordion?: boolean;
27
- /** What folds a section: its whole header, only the icon, or nothing. */
28
- collapsible?: "header" | "icon" | "disabled";
27
+ /**
28
+ * What folds a section: the whole header row (`row`), the header's title and its icon (`header`), only
29
+ * the icon, or nothing. Ant Design's `header` answers on the words alone, so a click beside a short
30
+ * title does nothing; `row` is its default, which takes the whole bar.
31
+ */
32
+ collapsible?: "row" | "header" | "icon" | "disabled";
29
33
  /** No ground of its own for headers and bodies. */
30
34
  ghost?: boolean;
31
35
  expandIconPlacement?: "start" | "end";
@@ -24,10 +24,10 @@ function resolveSectionStyles(titleStrong, headerPadding, bodyPadding) {
24
24
  export function PhiCollapseControl({ sections, openKeys, onOpenKeysChange, accordion = false, collapsible = "header", ghost = false, expandIconPlacement = "start", size, headerClassName, headerPadding, bodyPadding, titleStrong = false, style, }) {
25
25
  return (_jsx(Collapse, { accordion: accordion, activeKey: accordion ? openKeys[0] ?? undefined : [...openKeys],
26
26
  // The caller's box draws the outline; what stays here is `ghost`, which decides the inside.
27
- bordered: false, ghost: ghost, collapsible: collapsible, destroyOnHidden: false, expandIconPlacement: expandIconPlacement, size: size, classNames: headerClassName ? { header: headerClassName } : undefined, items: sections.map((section) => ({
27
+ bordered: false, ghost: ghost, collapsible: collapsible === "row" ? undefined : collapsible, destroyOnHidden: false, expandIconPlacement: expandIconPlacement, size: size, classNames: headerClassName ? { header: headerClassName } : undefined, items: sections.map((section) => ({
28
28
  key: section.key,
29
29
  label: section.label,
30
- collapsible,
30
+ collapsible: collapsible === "row" ? undefined : collapsible,
31
31
  forceRender: section.forceRender,
32
32
  ...(section.hidden ? { style: { display: "none" } } : {}),
33
33
  children: section.children,
@@ -4,6 +4,7 @@ import type { PhiOverlayCloseSource, PhiOverlayMaskBehaviour } from "../../types
4
4
  import type { PhiControlSize } from "../../types/control";
5
5
  import { type PhiAlertControlProps } from "./phi-alert-control";
6
6
  import type { PhiButtonType } from "./phi-button-types";
7
+ import { type PhiDrawerControlProps } from "./phi-drawer-control";
7
8
  /**
8
9
  * A Dialog built in code: a title, one subject, an optional notice above it, and the actions below.
9
10
  *
@@ -27,10 +28,9 @@ import type { PhiButtonType } from "./phi-button-types";
27
28
  * the same tokens rather than from each other -- the Layout presets are creation defaults a Builder may
28
29
  * edit afterwards, which is not a constant to depend on.
29
30
  *
30
- * Modal only, on purpose. `PhiDrawerControl` zeroes its zones the same way and will want the same
31
- * treatment, but no Dialog in the house is built in code *and* drawn as a Drawer, and a branch with no
32
- * caller is a guess about the one that eventually arrives. When it arrives, `presentation` is the prop
33
- * it becomes, and its placement and size come with it.
31
+ * A Modal unless `presentation` says `drawer`: the Header Navigation's entries on a phone were the first
32
+ * Dialog built in code and drawn from the side. `PhiDrawerControl` zeroes its zones as the Modal does, so
33
+ * the inside is the same; `placement` and `size` are the Drawer's own and nobody else reads them.
34
34
  */
35
35
  export type PhiDialogControlAction = {
36
36
  key: string;
@@ -70,7 +70,13 @@ export type PhiDialogControlProps = {
70
70
  mountPolicy?: PhiCmsMountPolicy;
71
71
  /** A styling hook for a surface that mounts the Dialog inside its own popup container. */
72
72
  rootClassName?: string;
73
+ /** A Modal (the default) or a Drawer from the side. */
74
+ presentation?: "modal" | "drawer";
75
+ /** The edge a Drawer comes from. */
76
+ placement?: PhiDrawerControlProps["placement"];
77
+ /** A Drawer's width (or height, from the top or bottom). */
78
+ size?: PhiDrawerControlProps["size"];
73
79
  onDismiss?: (source: PhiOverlayCloseSource) => void;
74
80
  afterOpenChange?: (open: boolean) => void;
75
81
  };
76
- export declare function PhiDialogControl({ open, title, children, alert, actions, controlSize, centered, closable, keyboard, mask, mountPolicy, rootClassName, onDismiss, afterOpenChange, }: PhiDialogControlProps): import("react").JSX.Element;
82
+ export declare function PhiDialogControl({ open, title, children, alert, actions, controlSize, centered, closable, keyboard, mask, mountPolicy, rootClassName, presentation, placement, size, onDismiss, afterOpenChange, }: PhiDialogControlProps): import("react").JSX.Element;
@@ -6,17 +6,23 @@ import { PhiButtonControl } from "./phi-button-control";
6
6
  import { PhiCompactGroupControl } from "./phi-compact-group-control";
7
7
  import { PhiFlexControl } from "./phi-flex-control";
8
8
  import { PhiModalControl } from "./phi-modal-control";
9
- export function PhiDialogControl({ open, title, children, alert, actions, controlSize = "medium", centered, closable, keyboard, mask, mountPolicy, rootClassName, onDismiss, afterOpenChange, }) {
10
- return (_jsx(PhiModalControl, { open: open, title: title, closable: closable, keyboard: keyboard, mask: mask, mountPolicy: mountPolicy, centered: centered, controlSize: controlSize, rootClassName: rootClassName, onDismiss: onDismiss, afterOpenChange: afterOpenChange, body: _jsxs(PhiFlexControl, { vertical: true, gap: PHI_SPACE.base, style: { padding: PHI_SPACE.base, width: "100%", minWidth: 0 }, children: [alert == null ? null : _jsx(PhiAlertControl, { ...alert }), children] }),
11
- /*
12
- * The actions are one compact group, as a tree Overlay's footer is (OVERLAYS.md): Cancel and Apply
13
- * are the two ends of one decision, and a gap between them read as two unrelated offers. A compact
14
- * group does not wrap.
15
- */
16
- footer: actions == null || actions.length === 0 ? null : (_jsx(PhiFlexControl, { align: "center", justify: "end", style: {
17
- paddingBlock: PHI_SPACE.xs,
18
- paddingInline: PHI_SPACE.base,
19
- width: "100%",
20
- minWidth: 0,
21
- }, children: _jsx(PhiCompactGroupControl, { children: actions.map((action) => (_jsx(PhiButtonControl, { label: action.label, icon: action.icon, type: action.type, danger: action.danger, disabled: action.disabled, loading: action.loading, onClick: action.onClick }, action.key))) }) })) }));
9
+ import { PhiDrawerControl } from "./phi-drawer-control";
10
+ export function PhiDialogControl({ open, title, children, alert, actions, controlSize = "medium", centered, closable, keyboard, mask, mountPolicy, rootClassName, presentation = "modal", placement, size, onDismiss, afterOpenChange, }) {
11
+ const body = (_jsxs(PhiFlexControl, { vertical: true, gap: PHI_SPACE.base, style: { padding: PHI_SPACE.base, width: "100%", minWidth: 0 }, children: [alert == null ? null : _jsx(PhiAlertControl, { ...alert }), children] }));
12
+ const footer = (
13
+ /*
14
+ * The actions are one compact group, as a tree Overlay's footer is (OVERLAYS.md): Cancel and Apply
15
+ * are the two ends of one decision, and a gap between them read as two unrelated offers. A compact
16
+ * group does not wrap.
17
+ */
18
+ actions == null || actions.length === 0 ? null : (_jsx(PhiFlexControl, { align: "center", justify: "end", style: {
19
+ paddingBlock: PHI_SPACE.xs,
20
+ paddingInline: PHI_SPACE.base,
21
+ width: "100%",
22
+ minWidth: 0,
23
+ }, children: _jsx(PhiCompactGroupControl, { children: actions.map((action) => (_jsx(PhiButtonControl, { label: action.label, icon: action.icon, type: action.type, danger: action.danger, disabled: action.disabled, loading: action.loading, onClick: action.onClick }, action.key))) }) })));
24
+ if (presentation === "drawer") {
25
+ return (_jsx(PhiDrawerControl, { open: open, title: title, closable: closable, keyboard: keyboard, mask: mask, mountPolicy: mountPolicy, placement: placement, size: size, onDismiss: onDismiss, afterOpenChange: afterOpenChange, body: body, footer: footer }));
26
+ }
27
+ return (_jsx(PhiModalControl, { open: open, title: title, closable: closable, keyboard: keyboard, mask: mask, mountPolicy: mountPolicy, centered: centered, controlSize: controlSize, rootClassName: rootClassName, onDismiss: onDismiss, afterOpenChange: afterOpenChange, body: body, footer: footer }));
22
28
  }
@@ -71,7 +71,7 @@ export function PhiPillDropdownControl({ items, selectedKeys, open, onOpenChange
71
71
  return (_jsx(PhiDropdownControl, { items: items, selectedKeys: selectedKeys, open: open, onOpenChange: onOpenChange, children: _jsxs("button", { ref: triggerRef, type: "button", className: ["phi-dropdown-control", className].filter(Boolean).join(" "), style: {
72
72
  display: "inline-flex",
73
73
  alignItems: "center",
74
- gap: 8,
74
+ gap: "var(--ant-padding-xs)",
75
75
  fontSize: "inherit",
76
76
  color: "inherit",
77
77
  background: "transparent",
@@ -79,5 +79,5 @@ export function PhiPillDropdownControl({ items, selectedKeys, open, onOpenChange
79
79
  padding: 0,
80
80
  cursor: canOpen ? "pointer" : "default",
81
81
  ...style,
82
- }, "aria-haspopup": canOpen ? "menu" : undefined, onMouseEnter: onIntent, onFocus: onIntent, onClick: onIntent, children: [leading, hasLabel && pill ? (_jsx("span", { className: "phi-dropdown-control__pill", children: _jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: 5 }, children: [_jsx("span", { children: label }), chevron] }) })) : (_jsxs(_Fragment, { children: [hasLabel ? _jsx("span", { children: label }) : null, chevron] }))] }) }));
82
+ }, "aria-haspopup": canOpen ? "menu" : undefined, onMouseEnter: onIntent, onFocus: onIntent, onClick: onIntent, children: [leading, hasLabel && pill ? (_jsx("span", { className: "phi-dropdown-control__pill", children: _jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: "var(--ant-padding-xxs)" }, children: [_jsx("span", { children: label }), chevron] }) })) : (_jsxs(_Fragment, { children: [hasLabel ? _jsx("span", { children: label }) : null, chevron] }))] }) }));
83
83
  }
@@ -17,7 +17,8 @@ export function PhiMediaAssetTileControl({ asset, minColumnWidth, selected = fal
17
17
  const { token } = usePhiConfig();
18
18
  const compact = size === "small";
19
19
  const assetTileIconSize = compact ? 20 : 24;
20
- const assetTileLabelFontSize = compact ? token.fontSizeSM : token.fontSize;
20
+ // A tile's captions are labels, not body text: the small step of the scale at either tile size.
21
+ const assetTileLabelFontSize = token.fontSizeSM;
21
22
  const isSelectable = Boolean(onSelect) && !disabled;
22
23
  const isPublic = isPhiMediaAssetPublic(asset.deliveryPolicy, asset.lifecycleStatus);
23
24
  const isRestricted = !isPublic;
@@ -61,7 +62,7 @@ export function PhiMediaAssetTileControl({ asset, minColumnWidth, selected = fal
61
62
  position: "absolute",
62
63
  left: "0.375rem",
63
64
  top: "0.375rem",
64
- color: "#fff",
65
+ color: token.colorTextLightSolid,
65
66
  fontSize: assetTileLabelFontSize,
66
67
  lineHeight: 1,
67
68
  textShadow: "0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85)",
@@ -70,7 +71,7 @@ export function PhiMediaAssetTileControl({ asset, minColumnWidth, selected = fal
70
71
  position: "absolute",
71
72
  top: "0.375rem",
72
73
  right: "0.375rem",
73
- color: "#fff",
74
+ color: token.colorTextLightSolid,
74
75
  fontSize: assetTileLabelFontSize,
75
76
  lineHeight: 1,
76
77
  textShadow: "0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85)",
@@ -89,16 +90,16 @@ export function PhiMediaAssetTileControl({ asset, minColumnWidth, selected = fal
89
90
  color: token.colorTextLightSolid,
90
91
  fontSize: assetTileLabelFontSize,
91
92
  lineHeight: 1,
92
- }, children: asset.title ?? asset.originalName }) })] }), showTypeLabel || showDeleteAction ? (_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingXS, wrap: true, style: {
93
+ }, children: asset.title ?? asset.originalName }) })] }), showTypeLabel || showDeleteAction ? (_jsxs(Flex, { align: "center", justify: "space-between", gap: token.paddingXS, style: {
93
94
  minHeight: token.controlHeightSM,
94
95
  paddingInline: compact ? token.paddingXS : token.paddingSM,
95
- background: "rgba(255, 255, 255, 0.78)",
96
- }, children: [showTypeLabel ? (_jsx(Typography.Text, { ellipsis: true, style: {
96
+ }, children: [showTypeLabel ? (_jsx(Typography.Text, { ellipsis: { tooltip: resolvePhiMediaAssetTypeLabel(asset.kind, asset.contentType, asset.originalName) }, style: {
97
97
  display: "block",
98
+ flex: "1 1 auto",
98
99
  minWidth: 0,
99
- color: "rgba(0, 0, 0, 0.88)",
100
+ color: token.colorText,
100
101
  fontSize: assetTileLabelFontSize,
101
- }, children: resolvePhiMediaAssetTypeLabel(asset.kind, asset.contentType, asset.originalName) })) : _jsx("span", {}), showDeleteAction && onDelete ? (_jsx("span", { onClick: (event) => event.stopPropagation(), onKeyDown: (event) => event.stopPropagation(), children: _jsx(PhiButtonControl, { ariaLabel: deleteLabel, icon: _jsx(PhiIcon, { name: "delete", size: "inherit" }), type: "text", size: "small", danger: true, loading: deleting, disabled: disabled, onClick: () => onDelete(asset) }) })) : null] })) : null] }));
102
+ }, children: resolvePhiMediaAssetTypeLabel(asset.kind, asset.contentType, asset.originalName) })) : _jsx("span", {}), showDeleteAction && onDelete ? (_jsx("span", { style: { flex: "none" }, onClick: (event) => event.stopPropagation(), onKeyDown: (event) => event.stopPropagation(), children: _jsx(PhiButtonControl, { ariaLabel: deleteLabel, icon: _jsx(PhiIcon, { name: "delete", size: "inherit" }), type: "text", size: "small", danger: true, loading: deleting, disabled: disabled, onClick: () => onDelete(asset) }) })) : null] })) : null] }));
102
103
  }
103
104
  export function PhiMediaAssetCollectionSkeletonControl({ mode, gap, minColumnWidth, active = true, count = 10, size = "medium", }) {
104
105
  const { token } = usePhiConfig();
@@ -120,11 +121,10 @@ export function PhiMediaAssetCollectionSkeletonControl({ mode, gap, minColumnWid
120
121
  }, children: _jsx(PhiSkeletonControl, { presentation: "input", active: active, fill: true, style: { display: "block", maxWidth: "100%", borderRadius: 0 } }) }), _jsxs(Flex, { style: {
121
122
  minHeight: token.controlHeightSM,
122
123
  paddingInline: compact ? token.paddingXS : token.paddingSM,
123
- background: "rgba(255, 255, 255, 0.78)",
124
124
  }, align: "center", justify: "space-between", gap: token.paddingXS, children: [_jsx(PhiSkeletonControl, { presentation: "input", active: active, size: "small", style: {
125
125
  width: "55%",
126
126
  minWidth: 0,
127
- height: token.fontSize * token.lineHeight,
127
+ height: token.fontSizeSM * token.lineHeightSM,
128
128
  } }), _jsx(PhiSkeletonControl, { presentation: "button", active: active, size: "small", shape: "circle", style: {
129
129
  width: token.controlHeightSM,
130
130
  minWidth: token.controlHeightSM,
@@ -0,0 +1,7 @@
1
+ /**
2
+ * How a horizontal menu marks the entry the reader is on: `underline` is a bar under it, `pill` a rounded
3
+ * ground in the control height, `auto` the bar in light mode and the pill in dark mode. Ant Design itself
4
+ * draws a bar in light mode and fills the whole height of the bar with the primary colour in dark mode.
5
+ */
6
+ export declare const PHI_MENU_SELECTION_STYLES: readonly ["auto", "underline", "pill"];
7
+ export type PhiMenuSelectionStyle = (typeof PHI_MENU_SELECTION_STYLES)[number];
@@ -0,0 +1,10 @@
1
+ /*
2
+ * The Menu Control's words, apart from the Control: a Widget's definition reads them on the server, and a
3
+ * value imported from the Control would make Ant Design's Menu a dependency of every route.
4
+ */
5
+ /**
6
+ * How a horizontal menu marks the entry the reader is on: `underline` is a bar under it, `pill` a rounded
7
+ * ground in the control height, `auto` the bar in light mode and the pill in dark mode. Ant Design itself
8
+ * draws a bar in light mode and fills the whole height of the bar with the primary colour in dark mode.
9
+ */
10
+ export const PHI_MENU_SELECTION_STYLES = ["auto", "underline", "pill"];
@@ -1,5 +1,6 @@
1
1
  import type { CSSProperties, ReactNode } from "react";
2
2
  import type { ItemType } from "antd/es/menu/interface";
3
+ import type { PhiMenuSelectionStyle } from "./phi-menu-control-vocabulary";
3
4
  export type PhiMenuControlDivider = {
4
5
  type: "divider";
5
6
  key?: string;
@@ -31,6 +32,8 @@ export type PhiMenuControlItem = PhiMenuControlDivider | PhiMenuControlGroup | P
31
32
  export type PhiMenuControlProps = {
32
33
  items: readonly PhiMenuControlItem[];
33
34
  mode: "inline" | "horizontal";
35
+ /** A horizontal menu's mark for the current entry (`styles/controls.css`); absent, Ant Design's own. */
36
+ selectionStyle?: PhiMenuSelectionStyle;
34
37
  /** Defaults to the active Phi theme mode. */
35
38
  menuTheme?: "light" | "dark";
36
39
  selectedKeys?: readonly string[];
@@ -50,4 +53,4 @@ export declare function toPhiAntdMenuItems(items: readonly PhiMenuControlItem[])
50
53
  * backgrounds every stacked Phi menu uses, its collapsed width, and the type a Widget configures — so
51
54
  * menu surfaces cannot drift apart in their component tokens.
52
55
  */
53
- export declare function PhiMenuControl({ items, mode, menuTheme, selectedKeys, collapsed, collapsedWidth, inlineIndent, fontFamily, fontSize, style, }: PhiMenuControlProps): import("react").JSX.Element | null;
56
+ export declare function PhiMenuControl({ items, mode, menuTheme, selectedKeys, collapsed, collapsedWidth, inlineIndent, fontFamily, fontSize, selectionStyle, style, }: PhiMenuControlProps): import("react").JSX.Element | null;
@@ -24,7 +24,7 @@ export function toPhiAntdMenuItems(items) {
24
24
  * backgrounds every stacked Phi menu uses, its collapsed width, and the type a Widget configures — so
25
25
  * menu surfaces cannot drift apart in their component tokens.
26
26
  */
27
- export function PhiMenuControl({ items, mode, menuTheme, selectedKeys, collapsed = false, collapsedWidth, inlineIndent, fontFamily, fontSize, style, }) {
27
+ export function PhiMenuControl({ items, mode, menuTheme, selectedKeys, collapsed = false, collapsedWidth, inlineIndent, fontFamily, fontSize, selectionStyle, style, }) {
28
28
  const { mode: themeMode } = usePhiConfig();
29
29
  const resolvedMenuTheme = menuTheme ?? themeMode;
30
30
  /*
@@ -53,6 +53,11 @@ export function PhiMenuControl({ items, mode, menuTheme, selectedKeys, collapsed
53
53
  * defaults, whose item spacing is what separates the entries in a header bar.
54
54
  */
55
55
  mode === "inline" ? "phi-menu-control--inline" : null,
56
+ /*
57
+ * Decided by the Menu's own theme class in CSS, not here: `auto` is one class whatever the mode, so the
58
+ * page a server rendered for both modes marks the entry right in the one the reader sees.
59
+ */
60
+ mode === "horizontal" && selectionStyle ? `phi-menu-control--selection-${selectionStyle}` : null,
56
61
  fontFamily ? "phi-menu-control--font-family" : null,
57
62
  fontSize ? "phi-menu-control--font-size" : null,
58
63
  mode === "inline" && collapsedWidth !== undefined ? "phi-menu-control--collapsed-width" : null,
@@ -1,4 +1,5 @@
1
1
  import type { ProgressProps } from "antd";
2
+ import { type PhiThemeGradientKey } from "../../theme/phi-theme-gradients";
2
3
  /**
3
4
  * How far along something is.
4
5
  *
@@ -11,5 +12,12 @@ import type { ProgressProps } from "antd";
11
12
  * about a percentage is specific to uploading, and the next caller that shows one of something else
12
13
  * would have had to widen it or write a second one.
13
14
  */
14
- export type PhiProgressControlProps = ProgressProps;
15
- export declare function PhiProgressControl(props: PhiProgressControlProps): import("react").JSX.Element;
15
+ export type PhiProgressControlProps = ProgressProps & {
16
+ /**
17
+ * A Theme gradient slot the bar is filled with. A line bar only: Ant Design paints a line's stroke as a
18
+ * CSS background, which takes the slot's custom property, while a circle draws an SVG stroke that can
19
+ * take a colour only -- there the bar keeps the colour it is given.
20
+ */
21
+ gradient?: PhiThemeGradientKey;
22
+ };
23
+ export declare function PhiProgressControl({ gradient, ...props }: PhiProgressControlProps): import("react").JSX.Element;
@@ -1,6 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Progress } from "antd";
4
- export function PhiProgressControl(props) {
5
- return _jsx(Progress, { ...props });
4
+ import { PHI_THEME_GRADIENT_CSS_VARS } from "../../theme/phi-theme-gradients";
5
+ export function PhiProgressControl({ gradient, ...props }) {
6
+ const lineGradient = gradient && (props.type ?? "line") === "line"
7
+ ? `var(${PHI_THEME_GRADIENT_CSS_VARS[gradient].paint})`
8
+ : undefined;
9
+ return _jsx(Progress, { ...props, ...(lineGradient ? { strokeColor: lineGradient } : {}) });
6
10
  }
@@ -1,8 +1,11 @@
1
1
  import type { CSSProperties, MouseEventHandler, ReactNode } from "react";
2
+ import { type PhiThemeGradientKey } from "../../theme/phi-theme-gradients";
2
3
  export type PhiRibbonControlProps = {
3
4
  children: ReactNode;
4
5
  /** The band's ground; absent, the Theme's primary. Its words are the light text on any ground. */
5
6
  color?: string;
7
+ /** A Theme gradient slot to fill the band with instead; its words then take the slot's text colour. */
8
+ gradient?: PhiThemeGradientKey;
6
9
  /**
7
10
  * Where the band stands: `corner` flush with the box's top and end edge, its top end corner the box's
8
11
  * own; `edge` a small padding down the end edge. Either way it floats: nothing in the box moves for it.
@@ -35,4 +38,4 @@ export type PhiRibbonControlProps = {
35
38
  * clicks, so a card that is a link stays one under its band; with one it has to take the pointer to be
36
39
  * pointed at, and hands a click on through `onClick`.
37
40
  */
38
- export declare function PhiRibbonControl({ children, color, placement, style, fullText, onClick }: PhiRibbonControlProps): import("react").JSX.Element;
41
+ export declare function PhiRibbonControl({ children, color, gradient, placement, style, fullText, onClick }: PhiRibbonControlProps): import("react").JSX.Element;