@signal9/era-ui 1.23.1 → 1.23.2

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.
@@ -2,7 +2,7 @@
2
2
  import * as Pane from '../ui/pane';
3
3
  import { Button } from '../ui/button';
4
4
  import Minus from '@lucide/svelte/icons/minus';
5
- import Square from '@lucide/svelte/icons/square';
5
+ import Maximize2 from '@lucide/svelte/icons/maximize-2';
6
6
  import X from '@lucide/svelte/icons/x';
7
7
  import type { Plugin } from '@neodrag/svelte';
8
8
  import { cn } from '../utils/index.js';
@@ -84,10 +84,13 @@
84
84
  drag, so a clean click still closes, and right/middle arming is a
85
85
  different button entirely. -->
86
86
  <div class="ml-auto shrink-0">
87
+ <!-- Red is the CLOSE warning — while a non-primary press previews
88
+ minimize / maximize, the button drops to the neutral tone so the
89
+ glyph swap and the colour agree the release won't destroy anything. -->
87
90
  <Button
88
91
  icon
89
92
  size="icon"
90
- tone="destructive"
93
+ tone={armed ? 'default' : 'destructive'}
91
94
  aria-label="Close (right-click minimizes, middle-click maximizes)"
92
95
  onclick={() => wm.close(win.id)}
93
96
  oncontextmenu={(e: MouseEvent) => e.preventDefault()}
@@ -108,7 +111,7 @@
108
111
  {#if armed === 'minimize'}
109
112
  <Minus class="size-(--era-h-xs)" />
110
113
  {:else if armed === 'maximize'}
111
- <Square class="size-(--era-h-xs)" />
114
+ <Maximize2 class="size-(--era-h-xs)" />
112
115
  {:else}
113
116
  <X class="size-(--era-h-xs)" />
114
117
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal9/era-ui",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "scripts": {
5
5
  "dev": "vite dev --host",
6
6
  "build": "vite build && npm run prepack",