@glimstone/svelte 4.5.6 → 4.5.7

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.
@@ -24,6 +24,8 @@
24
24
  actions?: WindowAction[];
25
25
  /** Back from the form to the tiles, with the search as it was. */
26
26
  onBack?: () => void;
27
+ /** A quiet line at the start of the foot, such as the verdict of a test. */
28
+ start?: string | Snippet;
27
29
  /** Called for every way out: the foot, Escape and, while the tiles show, a press beside the window. */
28
30
  onClose: () => void;
29
31
  }
@@ -59,7 +61,7 @@
59
61
  // follows: it closes the window, or passes the picked tile's form as
60
62
  // children, which takes the tiles' place with Back and the form's actions in
61
63
  // the foot.
62
- let { title, hint, items, groups = [], text, onPick, children, actions = [], onBack, onClose }: PickerWindowProps = $props();
64
+ let { title, hint, items, groups = [], text, onPick, children, actions = [], onBack, start, onClose }: PickerWindowProps = $props();
63
65
 
64
66
  let query = $state("");
65
67
  const hue = pickerHue();
@@ -117,6 +119,7 @@
117
119
  style={css(hue ?? undefined)}
118
120
  bind:ref={card}
119
121
  text={{ cancel: text.cancel, close: text.close }}
122
+ {start}
120
123
  actions={form ? [back, ...actions] : [{ label: text.close, labelKey: "common.close", glyph: IconClose, wayOut: true }]}
121
124
  closeOnBackdrop={!form}
122
125
  {onClose}
@@ -20,6 +20,8 @@ export interface PickerWindowProps {
20
20
  actions?: WindowAction[];
21
21
  /** Back from the form to the tiles, with the search as it was. */
22
22
  onBack?: () => void;
23
+ /** A quiet line at the start of the foot, such as the verdict of a test. */
24
+ start?: string | Snippet;
23
25
  /** Called for every way out: the foot, Escape and, while the tiles show, a press beside the window. */
24
26
  onClose: () => void;
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/svelte",
3
- "version": "4.5.6",
3
+ "version": "4.5.7",
4
4
  "description": "GlimStone's components for Svelte",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -141,7 +141,7 @@
141
141
  "build": "svelte-package -i src -o dist"
142
142
  },
143
143
  "dependencies": {
144
- "@glimstone/core": "4.5.6"
144
+ "@glimstone/core": "4.5.7"
145
145
  },
146
146
  "peerDependencies": {
147
147
  "@internationalized/date": "^3.12.4",