@glimstone/solid 4.6.0 → 4.7.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.
- package/dist/ConnectionRow.d.ts +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +735 -606
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type ConnectionRowLabelKeys, type ConnectionRowText, type ConnectionTest, type TileMark } from "@glimstone/core";
|
|
3
|
+
export type { ConnectionRowLabelKeys, ConnectionRowText, ConnectionTest } from "@glimstone/core";
|
|
4
|
+
export interface ConnectionRowProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "children" | "class"> {
|
|
5
|
+
/** The service's name, also the row's accessible name. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** A brand's mark from a catalog, which stands on its own colour, or one of the app's glyphs, which stands on the accent. */
|
|
8
|
+
mark: TileMark | JSX.Element;
|
|
9
|
+
/** One quiet line under the name, such as who is signed in or where it connects. */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** Badges after the name, for a state that is not the normal case, such as a failed connection. */
|
|
12
|
+
badges?: JSX.Element;
|
|
13
|
+
/** More quiet lines under the status, such as what uses the connection. */
|
|
14
|
+
children?: JSX.Element;
|
|
15
|
+
/** Where the test stands: `busy` while it runs, then `tone` and a `title` with what it found. */
|
|
16
|
+
test?: ConnectionTest;
|
|
17
|
+
text: ConnectionRowText;
|
|
18
|
+
labelKeys?: Partial<ConnectionRowLabelKeys>;
|
|
19
|
+
onTest?: () => void;
|
|
20
|
+
onEdit?: () => void;
|
|
21
|
+
onRemove?: () => void;
|
|
22
|
+
class?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ConnectionRow(props: ConnectionRowProps): JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./Checkbox.tsx";
|
|
|
7
7
|
export * from "./CoffeeDialog.tsx";
|
|
8
8
|
export * from "./ColorPicker.tsx";
|
|
9
9
|
export * from "./ConfirmDialog.tsx";
|
|
10
|
+
export * from "./ConnectionRow.tsx";
|
|
10
11
|
export * from "./ContextMenu.tsx";
|
|
11
12
|
export * from "./CopyField.tsx";
|
|
12
13
|
export * from "./CryptoDonateDialog.tsx";
|