@opencxh/ui-kit 3.140.1 → 3.141.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,15 @@ export interface PageProps {
22
22
  actions?: PageHeaderAction[];
23
23
  /** Renders the back chevron beside the title. */
24
24
  onBack?: () => void;
25
+ /**
26
+ * Lets the user rename the record from the header: the title becomes
27
+ * clickable and grows a pencil beside it. `PageHeader` has had this for a
28
+ * while; `Page` simply never forwarded it, so any page built on `Page` had to
29
+ * put a rename somewhere else.
30
+ */
31
+ editable?: boolean;
32
+ /** Called with the trimmed new title. Only fires when it actually changed. */
33
+ onTitleChange?: (title: string) => void;
25
34
  /**
26
35
  * Draws the rule under the header. Defaults to `scroll`, because a header
27
36
  * that stays put while the body scrolls needs an edge — without it the first
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/ui-kit",
3
- "version": "3.140.1",
3
+ "version": "3.141.0",
4
4
  "description": "Theme-aware UI component library for OpenCXH platform",
5
5
  "type": "module",
6
6
  "exports": {