@k2b/ui 0.39.0 → 0.40.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.
@@ -46,6 +46,14 @@ export type AppWorkspaceProps = {
46
46
  layoutState?: () => AppWorkspaceLayoutState | null | undefined;
47
47
  /** Called with the full layout whenever a resize settles. Persist it here. */
48
48
  onLayoutChange?: (state: AppWorkspaceLayoutState) => void;
49
+ /**
50
+ * `false` draws no head row. The application then shows the page's title itself and gives people the sidebar and
51
+ * Detail buttons the head would hold: a control with `data-app-workspace-sidebar-toggle` (it opens the overlay
52
+ * sidebar, and shows or hides a sidebar with `onHiddenChange` where it is a column) and, for each Detail with
53
+ * `toggle={false}`, a control with `data-app-workspace-detail-toggle` and `aria-controls` set to
54
+ * `appWorkspaceDetailElementId(id)`. The controller runs both and keeps their `aria-expanded` current.
55
+ */
56
+ head?: false;
49
57
  /**
50
58
  * Opt out of the built-in controller. Only needed when the application calls
51
59
  * `installAppWorkspaceController` itself — installing twice would double up
@@ -118,6 +126,12 @@ export type AppWorkspaceDetailProps = {
118
126
  open: boolean;
119
127
  /** Keeps the shared head control reachable while closed; set the app's existing open state synchronously. */
120
128
  onOpen?: () => void;
129
+ /**
130
+ * `false` draws no Details button of the workspace's own: the application gives one with
131
+ * `data-app-workspace-detail-toggle` and `aria-controls` set to `appWorkspaceDetailElementId(id)`, as with
132
+ * `AppWorkspace head={false}`.
133
+ */
134
+ toggle?: false;
121
135
  /** Whether the current object may show details. False disables reopening and hides the panel. */
122
136
  available?: boolean;
123
137
  /**
@@ -11,6 +11,8 @@ export declare const parkWorkspaceDetailDrawers: (root?: ParentNode) => void;
11
11
  * stays application state, so the controller only requests the change.
12
12
  */
13
13
  export declare const APP_WORKSPACE_SIDEBAR_HIDE_EVENT = "k2b-app-workspace-sidebar-hide";
14
+ /** Asks the owning `AppWorkspace.Sidebar` to show again; its `onHiddenChange` decides. */
15
+ export declare const APP_WORKSPACE_SIDEBAR_SHOW_EVENT = "k2b-app-workspace-sidebar-show";
14
16
  /** Asks the owning Detail to reopen its current available object. */
15
17
  export declare const APP_WORKSPACE_DETAIL_OPEN_EVENT = "k2b-app-workspace-detail-open";
16
18
  /** Asks the owning `AppWorkspace.Detail` to close; its `onClose` decides. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k2b/ui",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "Production-ready components for SolidJS applications.",
5
5
  "repository": {
6
6
  "type": "git",