@glimstone/solid 4.5.3 → 4.5.5
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.
- package/dist/PickerWindow.d.ts +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1242 -1104
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type PickGroup, type PickItem, type PickerText } from "@glimstone/core";
|
|
3
|
+
import { type WindowAction } from "./Window.tsx";
|
|
4
|
+
export type { PickGroup, PickerText, TileMark } from "@glimstone/core";
|
|
5
|
+
export type PickerItem = PickItem<JSX.Element>;
|
|
6
|
+
export interface PickerWindowProps {
|
|
7
|
+
/** The notch's words, also the window's accessible name. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** What the picker is for, as the (i) in its notch. */
|
|
10
|
+
hint?: string;
|
|
11
|
+
/** The choices, sorted by their names in the page's language. */
|
|
12
|
+
items: PickerItem[];
|
|
13
|
+
/** The groups the items name, in the order they stand. Without them the tiles stand in one. */
|
|
14
|
+
groups?: PickGroup[];
|
|
15
|
+
text: PickerText;
|
|
16
|
+
onPick: (id: string) => void;
|
|
17
|
+
/** The picked tile's form, which takes the tiles' place until it is gone again. */
|
|
18
|
+
children?: JSX.Element;
|
|
19
|
+
/** The form's buttons, the forward one last. Cancel and Back stand before them. */
|
|
20
|
+
actions?: WindowAction[];
|
|
21
|
+
/** Back from the form to the tiles, with the search as it was. */
|
|
22
|
+
onBack?: () => void;
|
|
23
|
+
/** Called for every way out: the foot, Escape and a press beside the window. */
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function PickerWindow(props: PickerWindowProps): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export * from "./NumberField.tsx";
|
|
|
37
37
|
export * from "./PasswordField.tsx";
|
|
38
38
|
export * from "./PathField.tsx";
|
|
39
39
|
export * from "./PaypalDialog.tsx";
|
|
40
|
+
export * from "./PickerWindow.tsx";
|
|
40
41
|
export * from "./Pill.tsx";
|
|
41
42
|
export * from "./Popover.tsx";
|
|
42
43
|
export * from "./portalHue.ts";
|