@signal9/era-ui 2.36.0 → 2.37.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.
@@ -20,6 +20,8 @@
20
20
  showWindows = true,
21
21
  commands = [],
22
22
  hotkey = ['`', 'Escape'],
23
+ placeholder = 'run a command…',
24
+ empty,
23
25
  mobileLauncher = true,
24
26
  onNotifications,
25
27
  start,
@@ -44,6 +46,12 @@
44
46
  commands?: CommandBarItem[];
45
47
  /** Focus binding(s) for the command bar (default backtick + Escape). */
46
48
  hotkey?: string | string[];
49
+ /** Prompt text for the embedded command bar's empty input. Defaults to
50
+ * "run a command…"; pass "" to blank it entirely. */
51
+ placeholder?: string;
52
+ /** Empty-state text for the command bar when nothing matches the query.
53
+ * Unset falls back to the CommandBar default ("No results found."). */
54
+ empty?: string;
47
55
  /** Show a floating, thumb-reachable launcher in the bottom-right on small
48
56
  * (handset) screens that focuses the command bar — the input lives in a
49
57
  * top bar, out of thumb range on a phone. Only rendered for a TOP bar (a
@@ -177,7 +185,8 @@
177
185
  class="min-w-32 flex-1"
178
186
  items={commandItems}
179
187
  {hotkey}
180
- placeholder="run a command…"
188
+ {placeholder}
189
+ {empty}
181
190
  />
182
191
 
183
192
  {#if pinned.length}
@@ -24,6 +24,12 @@ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
24
24
  commands?: CommandBarItem[];
25
25
  /** Focus binding(s) for the command bar (default backtick + Escape). */
26
26
  hotkey?: string | string[];
27
+ /** Prompt text for the embedded command bar's empty input. Defaults to
28
+ * "run a command…"; pass "" to blank it entirely. */
29
+ placeholder?: string;
30
+ /** Empty-state text for the command bar when nothing matches the query.
31
+ * Unset falls back to the CommandBar default ("No results found."). */
32
+ empty?: string;
27
33
  /** Show a floating, thumb-reachable launcher in the bottom-right on small
28
34
  * (handset) screens that focuses the command bar — the input lives in a
29
35
  * top bar, out of thumb range on a phone. Only rendered for a TOP bar (a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "2.36.0",
3
+ "version": "2.37.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",