@signal9/era-ui 1.22.0 → 1.23.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.
@@ -29,6 +29,9 @@ Inherits all props from `Command.RootProps`.
29
29
 
30
30
  | Prop | Type | Default | Notes |
31
31
  |------|------|---------|-------|
32
+ | `bare?` | `boolean` | `false` | Drop the floating-panel chrome (border, bg, padding, shadow) for
33
+ embedding inside a surface that already provides it — a pane body, a
34
+ sidebar. The host's own padding is then the only edge inset. |
32
35
  | `ref?` | `(forwarded)` | `null` | bindable |
33
36
  | `value?` | `(forwarded)` | `''` | bindable |
34
37
 
@@ -1084,6 +1084,9 @@ Inherits all props from `Command.RootProps`.
1084
1084
 
1085
1085
  | Prop | Type | Default | Notes |
1086
1086
  |------|------|---------|-------|
1087
+ | `bare?` | `boolean` | `false` | Drop the floating-panel chrome (border, bg, padding, shadow) for
1088
+ embedding inside a surface that already provides it — a pane body, a
1089
+ sidebar. The host's own padding is then the only edge inset. |
1087
1090
  | `ref?` | `(forwarded)` | `null` | bindable |
1088
1091
  | `value?` | `(forwarded)` | `''` | bindable |
1089
1092
 
@@ -319,7 +319,7 @@
319
319
  "slug": "command",
320
320
  "title": "Command",
321
321
  "summary": "A searchable command menu for quick navigation.",
322
- "tokenEstimate": 719,
322
+ "tokenEstimate": 777,
323
323
  "sections": [
324
324
  "Import",
325
325
  "Command.Root",
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
  </Pane.Handle>
118
118
 
119
- <Pane.Content>
119
+ <Pane.Content class={win.bodyClass}>
120
120
  {#if win.component}
121
121
  {@const Body = win.component}
122
122
  <Body window={win} {wm} />
@@ -26,6 +26,9 @@ export interface AppDefinition {
26
26
  singleton?: boolean;
27
27
  /** Show a resize grip (default true). */
28
28
  resizable?: boolean;
29
+ /** Extra classes for the window body (Pane.Content) — e.g. `p-(--era-gap)`
30
+ * for a body of controls, or `p-0` for a full-bleed app. */
31
+ bodyClass?: string;
29
32
  }
30
33
  /** A live window instance in the registry. */
31
34
  export interface AppWindow {
@@ -59,6 +62,7 @@ export interface AppWindow {
59
62
  } | null;
60
63
  component?: AppComponent;
61
64
  resizable: boolean;
65
+ bodyClass?: string;
62
66
  }
63
67
  /**
64
68
  * The source of truth for the desktop: which windows exist, their geometry, and
@@ -66,7 +66,8 @@ export class WindowManager {
66
66
  state: 'normal',
67
67
  restore: null,
68
68
  component: app.component,
69
- resizable: overrides?.resizable ?? app.resizable ?? true
69
+ resizable: overrides?.resizable ?? app.resizable ?? true,
70
+ bodyClass: app.bodyClass
70
71
  };
71
72
  this.windows.push(win);
72
73
  return id;
@@ -5,18 +5,26 @@
5
5
  let {
6
6
  ref = $bindable(null),
7
7
  value = $bindable(''),
8
+ bare = false,
8
9
  class: className,
9
10
  ...restProps
10
- }: Command.RootProps = $props();
11
+ }: Command.RootProps & {
12
+ /** Drop the floating-panel chrome (border, bg, padding, shadow) for
13
+ * embedding inside a surface that already provides it — a pane body, a
14
+ * sidebar. The host's own padding is then the only edge inset. */
15
+ bare?: boolean;
16
+ } = $props();
11
17
  </script>
12
18
 
13
19
  <Command.Root
14
20
  bind:ref
15
21
  bind:value
16
22
  class={cn(
23
+ 'flex flex-col gap-(--era-gap)',
17
24
  // glass-blur, like every other floating panel (menus, dialogs, pickers):
18
25
  // inert on opaque surfaces, blurs the backdrop when the palette floats.
19
- 'flex flex-col gap-(--era-gap) overflow-hidden rounded-(--era-rd-lg) border border-(color:--era-border-color) bg-(--era-surface-bg) p-(--era-gap) shadow-(--era-shadow-lg) glass-blur',
26
+ !bare &&
27
+ 'overflow-hidden rounded-(--era-rd-lg) border border-(color:--era-border-color) bg-(--era-surface-bg) p-(--era-gap) shadow-(--era-shadow-lg) glass-blur',
20
28
  className
21
29
  )}
22
30
  {...restProps}
@@ -1,4 +1,10 @@
1
1
  import { Command } from 'bits-ui';
2
- declare const CommandRoot: import("svelte").Component<Command.RootProps, {}, "value" | "ref">;
2
+ type $$ComponentProps = Command.RootProps & {
3
+ /** Drop the floating-panel chrome (border, bg, padding, shadow) for
4
+ * embedding inside a surface that already provides it — a pane body, a
5
+ * sidebar. The host's own padding is then the only edge inset. */
6
+ bare?: boolean;
7
+ };
8
+ declare const CommandRoot: import("svelte").Component<$$ComponentProps, {}, "value" | "ref">;
3
9
  type CommandRoot = ReturnType<typeof CommandRoot>;
4
10
  export default CommandRoot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",