@glimstone/solid 4.6.0 → 4.8.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/Accordion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s as e } from "./glyphs-Cwg-1aUK.js";
1
+ import { s as e } from "./glyphs-BhcnOwi4.js";
2
2
  import { Dynamic as t, createComponent as n, insert as r, mergeProps as i, spread as a, template as o } from "solid-js/web";
3
3
  import { For as s, createMemo as c, createSignal as l, createUniqueId as u, mergeProps as d } from "solid-js";
4
4
  import { pageDir as f } from "@glimstone/core";
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./useTipBubble-BJIYZw03.js";
2
2
  import { t as n } from "./style-ByE-hij7.js";
3
- import { C as r, a as i } from "./glyphs-Cwg-1aUK.js";
3
+ import { a as r, w as i } from "./glyphs-BhcnOwi4.js";
4
4
  import { Dynamic as a, className as o, createComponent as s, effect as c, insert as l, memo as u, mergeProps as d, setAttribute as f, style as p, template as m } from "solid-js/web";
5
5
  import { Show as h, createMemo as g, createRenderEffect as _, createSignal as v, mergeProps as y, onCleanup as b, splitProps as x } from "solid-js";
6
6
  import { DEFAULT_DENSITY as S, DEFAULT_MOTION as C, DEFAULT_SHAPE as w, applyAccent as T, applyDensity as E, applyMotion as D, applyRainbow as O, applyShape as k, busyRingView as A, buttonView as j, getLabelMode as M, hueVars as N, mediaMatches as P, narrowerThan as F, rainbowState as I, subscribeLabelMode as L, subscribeMedia as R, subscribeRainbow as z, takePageHue as B } from "@glimstone/core";
@@ -109,7 +109,7 @@ function ee(f) {
109
109
  let t = F(e);
110
110
  T(P(t)), b(R(t, () => T(P(t))));
111
111
  });
112
- let E = g(() => m.glyph ?? (m.labelKey ? r(m.labelKey) : void 0) ?? (m.variant === "chip" ? s(i, {}) : void 0)), D = g(() => j({
112
+ let E = g(() => m.glyph ?? (m.labelKey ? i(m.labelKey) : void 0) ?? (m.variant === "chip" ? s(r, {}) : void 0)), D = g(() => j({
113
113
  mode: C(),
114
114
  label: m.label,
115
115
  hasGlyph: !!E() || m.busy,
package/dist/Carousel.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-iio6zNXx.js";
2
- import { d as t, t as n } from "./glyphs-Cwg-1aUK.js";
1
+ import { t as e } from "./Button-DVvj3l_K.js";
2
+ import { d as t, t as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as r, insert as i, mergeProps as a, spread as o, template as s } from "solid-js/web";
4
4
  import { Index as c, createMemo as l, createSignal as u, createUniqueId as d, mergeProps as f } from "solid-js";
5
5
  import { CAROUSEL_TEXT as p, pageDir as m, stillMotion as h } from "@glimstone/core";
@@ -1,4 +1,4 @@
1
- import { s as e } from "./glyphs-Cwg-1aUK.js";
1
+ import { s as e } from "./glyphs-BhcnOwi4.js";
2
2
  import { createComponent as t, insert as n, mergeProps as r, spread as i, template as a } from "solid-js/web";
3
3
  import { createMemo as o, createSignal as s, createUniqueId as c, mergeProps as l } from "solid-js";
4
4
  import { pageDir as u } from "@glimstone/core";
package/dist/Combobox.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { i as t, s as n } from "./glyphs-Cwg-1aUK.js";
2
+ import { i as t, s as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { t as r } from "./Lift-CsM0IU9t.js";
4
4
  import { createComponent as i, effect as a, insert as o, mergeProps as s, setAttribute as c, spread as l, template as u } from "solid-js/web";
5
5
  import { For as d, Show as f, createMemo as p, createSignal as m, createUniqueId as h } from "solid-js";
@@ -0,0 +1,27 @@
1
+ import { type JSX } from "solid-js";
2
+ import { type ConnectionAction as CoreConnectionAction, type ConnectionRowLabelKeys, type ConnectionRowText, type ConnectionTest, type TileMark } from "@glimstone/core";
3
+ export type { ConnectionRowLabelKeys, ConnectionRowText, ConnectionTest } from "@glimstone/core";
4
+ export type ConnectionAction = CoreConnectionAction<JSX.Element>;
5
+ export interface ConnectionRowProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "children" | "class"> {
6
+ /** The service's name, also the row's accessible name. */
7
+ name: string;
8
+ /** 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. */
9
+ mark: TileMark | JSX.Element;
10
+ /** One quiet line under the name, such as who is signed in or where it connects. */
11
+ status?: string;
12
+ /** Badges after the name, for a state that is not the normal case, such as a failed connection. */
13
+ badges?: JSX.Element;
14
+ /** More quiet lines under the status, such as what uses the connection. */
15
+ children?: JSX.Element;
16
+ /** Where the test stands: `busy` while it runs, then `tone` and a `title` with what it found. */
17
+ test?: ConnectionTest;
18
+ /** Buttons of the app's own, such as Mount, before Test, Edit and Remove, so those keep their places at the end. */
19
+ actions?: ConnectionAction[];
20
+ text: ConnectionRowText;
21
+ labelKeys?: Partial<ConnectionRowLabelKeys>;
22
+ onTest?: () => void;
23
+ onEdit?: () => void;
24
+ onRemove?: () => void;
25
+ class?: string;
26
+ }
27
+ export declare function ConnectionRow(props: ConnectionRowProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { d as t, n, t as r } from "./glyphs-Cwg-1aUK.js";
2
+ import { d as t, n, t as r } from "./glyphs-BhcnOwi4.js";
3
3
  import { t as i } from "./Lift-CsM0IU9t.js";
4
4
  import { t as a } from "./portalHue-CLVEiNTo.js";
5
5
  import { t as o } from "./style-ByE-hij7.js";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./IconButton-Lzbq5Cst.js";
2
- import { a as t, v as n } from "./glyphs-Cwg-1aUK.js";
2
+ import { a as t, y as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as r, insert as i, mergeProps as a, spread as o, template as s } from "solid-js/web";
4
4
  import { For as c, Show as l, createMemo as u, createUniqueId as d, mergeProps as f } from "solid-js";
5
5
  import { FILE_UPLOAD_TEXT as p, formatFileSize as m, pageDir as h } from "@glimstone/core";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./Badge-CC2mjBLM.js";
2
- import { t } from "./Button-iio6zNXx.js";
3
- import { a as n, b as r, x as i, y as a } from "./glyphs-Cwg-1aUK.js";
2
+ import { t } from "./Button-DVvj3l_K.js";
3
+ import { S as n, a as r, b as i, x as a } from "./glyphs-BhcnOwi4.js";
4
4
  import { t as o } from "./Lift-CsM0IU9t.js";
5
5
  import { createComponent as s, insert as c, mergeProps as l, spread as u, template as d } from "solid-js/web";
6
6
  import { For as f, Show as p, createMemo as m, createUniqueId as h, mergeProps as g } from "solid-js";
@@ -52,13 +52,13 @@ function T(d) {
52
52
  get children() {
53
53
  return T.title;
54
54
  }
55
- })), u(v, l(() => k().getControlProps(), { class: "glim-fpanel-control" }), !1, !0), u(y, l(() => k().getStageTriggerProps({ stage: "minimized" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(y, s(r, {})), u(b, l(() => k().getStageTriggerProps({ stage: "maximized" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(b, s(a, {})), u(x, l(() => k().getStageTriggerProps({ stage: "default" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(x, s(i, {})), u(D, l(() => k().getBodyProps(), { class: "glim-fpanel-body" }), !1, !0), c(D, () => T.children), c(O, s(t, {
55
+ })), u(v, l(() => k().getControlProps(), { class: "glim-fpanel-control" }), !1, !0), u(y, l(() => k().getStageTriggerProps({ stage: "minimized" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(y, s(a, {})), u(b, l(() => k().getStageTriggerProps({ stage: "maximized" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(b, s(i, {})), u(x, l(() => k().getStageTriggerProps({ stage: "default" }), { class: "glim-btn-bare glim-icon-btn" }), !1, !0), c(x, s(n, {})), u(D, l(() => k().getBodyProps(), { class: "glim-fpanel-body" }), !1, !0), c(D, () => T.children), c(O, s(t, {
56
56
  get label() {
57
57
  return E().close;
58
58
  },
59
59
  labelKey: null,
60
60
  get glyph() {
61
- return s(n, {});
61
+ return s(r, {});
62
62
  },
63
63
  onClick: () => k().setOpen(!1)
64
64
  })), c(m, s(p, {
package/dist/Marquee.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./IconButton-Lzbq5Cst.js";
2
- import { f as t, m as n } from "./glyphs-Cwg-1aUK.js";
2
+ import { f as t, m as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as r, insert as i, memo as a, mergeProps as o, spread as s, template as c } from "solid-js/web";
4
4
  import { For as l, Index as u, createMemo as d, createSignal as f, createUniqueId as p, mergeProps as m } from "solid-js";
5
5
  import { MARQUEE_TEXT as h, pageDir as g } from "@glimstone/core";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-iio6zNXx.js";
2
- import { d as t, t as n } from "./glyphs-Cwg-1aUK.js";
1
+ import { t as e } from "./Button-DVvj3l_K.js";
2
+ import { d as t, t as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as r, insert as i, mergeProps as a, spread as o, template as s } from "solid-js/web";
4
4
  import { For as c, createMemo as l, createSignal as u, createUniqueId as d, mergeProps as f } from "solid-js";
5
5
  import { PAGINATION_TEXT as p, pageDir as m } from "@glimstone/core";
@@ -1,16 +1,17 @@
1
1
  import { type JSX } from "solid-js";
2
- import { type FieldWidth } from "@glimstone/core";
2
+ import { type FieldWidth, type PasswordFieldText } from "@glimstone/core";
3
3
  export interface PasswordFieldProps extends Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "type" | "width" | "class"> {
4
4
  width?: FieldWidth;
5
5
  /** Attributes for the eye, such as a data hook. */
6
6
  eyeAttrs?: Record<string, string>;
7
- /** The eye's name and bubble while the secret is hidden, and once it shows. */
8
- text?: {
9
- show: string;
10
- hide: string;
11
- };
7
+ /** The eye's words, and the second field's with `confirm`. English where left out. */
8
+ text?: Partial<PasswordFieldText>;
12
9
  /** Why the value cannot stand, as a line under the field until it is fixed. */
13
10
  error?: string;
11
+ /** Asks for the password again in a second field, which stands once the first holds something. */
12
+ confirm?: boolean;
13
+ /** Whether both fields hold the same password, each time that changes. Set password waits for true. */
14
+ onConfirmedChange?: (confirmed: boolean) => void;
14
15
  /** Classes for the wrapper, which carries the field's width. */
15
16
  class?: string;
16
17
  }
package/dist/Rating.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { _ as t } from "./glyphs-Cwg-1aUK.js";
2
+ import { _ as t } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as n, insert as r, mergeProps as i, spread as a, template as o } from "solid-js/web";
4
4
  import { For as s, createMemo as c, createUniqueId as l, mergeProps as u } from "solid-js";
5
5
  import { RATING_TEXT as d, pageDir as f } from "@glimstone/core";
package/dist/Select.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { i as t, s as n } from "./glyphs-Cwg-1aUK.js";
2
+ import { i as t, s as n } from "./glyphs-BhcnOwi4.js";
3
3
  import { t as r } from "./Lift-CsM0IU9t.js";
4
4
  import { t as i } from "./portalHue-CLVEiNTo.js";
5
5
  import { t as a } from "./style-ByE-hij7.js";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-iio6zNXx.js";
2
- import { h as t } from "./glyphs-Cwg-1aUK.js";
1
+ import { t as e } from "./Button-DVvj3l_K.js";
2
+ import { h as t } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as n, insert as r, mergeProps as i, spread as a, template as o } from "solid-js/web";
4
4
  import { Index as s, Show as c, createMemo as l, createUniqueId as u, mergeProps as d } from "solid-js";
5
5
  import { SIGNATURE_PAD_TEXT as f, pageDir as p } from "@glimstone/core";
package/dist/Steps.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-iio6zNXx.js";
2
- import { d as t, i as n, t as r } from "./glyphs-Cwg-1aUK.js";
1
+ import { t as e } from "./Button-DVvj3l_K.js";
2
+ import { d as t, i as n, t as r } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as i, insert as a, mergeProps as o, spread as s, template as c } from "solid-js/web";
4
4
  import { For as l, Show as u, createMemo as d, createSignal as f, createUniqueId as p, mergeProps as m } from "solid-js";
5
5
  import { STEPS_TEXT as h, pageDir as g, stepsKeyTarget as _ } from "@glimstone/core";
package/dist/TagsInput.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { a as t } from "./glyphs-Cwg-1aUK.js";
2
+ import { a as t } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as n, insert as r, mergeProps as i, spread as a, template as o } from "solid-js/web";
4
4
  import { Index as s, createMemo as c, createUniqueId as l, mergeProps as u } from "solid-js";
5
5
  import { TAGS_INPUT_TEXT as d, pageDir as f } from "@glimstone/core";
package/dist/Timer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-iio6zNXx.js";
2
- import { f as t, h as n, m as r } from "./glyphs-Cwg-1aUK.js";
1
+ import { t as e } from "./Button-DVvj3l_K.js";
2
+ import { f as t, h as n, m as r } from "./glyphs-BhcnOwi4.js";
3
3
  import { createComponent as i, insert as a, mergeProps as o, spread as s, template as c } from "solid-js/web";
4
4
  import { Match as l, Switch as u, createMemo as d, createUniqueId as f, mergeProps as p } from "solid-js";
5
5
  import { TIMER_TEXT as m } from "@glimstone/core";
package/dist/Tour.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./Badge-CC2mjBLM.js";
2
- import { t } from "./Button-iio6zNXx.js";
3
- import { d as n, i as r, t as i } from "./glyphs-Cwg-1aUK.js";
2
+ import { t } from "./Button-DVvj3l_K.js";
3
+ import { d as n, i as r, t as i } from "./glyphs-BhcnOwi4.js";
4
4
  import { t as a } from "./Lift-CsM0IU9t.js";
5
5
  import { createComponent as o, insert as s, memo as c, mergeProps as l, spread as u, template as d } from "solid-js/web";
6
6
  import { Show as f, createEffect as p, createMemo as m, createUniqueId as h, on as g } from "solid-js";
@@ -55,78 +55,83 @@ var u = () => e(l, {
55
55
  class: "glim-mark"
56
56
  }), g = () => e(l, {
57
57
  get mark() {
58
- return i.windowMinimise;
58
+ return i.trash;
59
59
  },
60
60
  class: "glim-mark"
61
61
  }), _ = () => e(l, {
62
62
  get mark() {
63
- return i.windowMaximise;
63
+ return i.windowMinimise;
64
64
  },
65
65
  class: "glim-mark"
66
66
  }), v = () => e(l, {
67
67
  get mark() {
68
- return i.windowRestore;
68
+ return i.windowMaximise;
69
69
  },
70
70
  class: "glim-mark"
71
71
  }), y = () => e(l, {
72
72
  get mark() {
73
- return i.eye;
73
+ return i.windowRestore;
74
74
  },
75
75
  class: "glim-mark"
76
76
  }), b = () => e(l, {
77
77
  get mark() {
78
- return i.eyeOff;
78
+ return i.eye;
79
79
  },
80
80
  class: "glim-mark"
81
81
  }), x = () => e(l, {
82
82
  get mark() {
83
- return i.copy;
83
+ return i.eyeOff;
84
84
  },
85
85
  class: "glim-mark"
86
86
  }), S = () => e(l, {
87
87
  get mark() {
88
- return i.back;
88
+ return i.copy;
89
89
  },
90
90
  class: "glim-mark"
91
91
  }), C = () => e(l, {
92
92
  get mark() {
93
- return i.search;
93
+ return i.back;
94
94
  },
95
95
  class: "glim-mark"
96
96
  }), w = () => e(l, {
97
97
  get mark() {
98
- return i.forward;
98
+ return i.search;
99
99
  },
100
100
  class: "glim-mark"
101
101
  }), T = () => e(l, {
102
102
  get mark() {
103
- return i.upload;
103
+ return i.forward;
104
104
  },
105
105
  class: "glim-mark"
106
106
  }), E = () => e(l, {
107
107
  get mark() {
108
- return i.calendar;
108
+ return i.upload;
109
109
  },
110
110
  class: "glim-mark"
111
111
  }), D = () => e(l, {
112
112
  get mark() {
113
- return i.star;
113
+ return i.calendar;
114
114
  },
115
115
  class: "glim-mark"
116
116
  }), O = () => e(l, {
117
117
  get mark() {
118
- return i.play;
118
+ return i.star;
119
119
  },
120
120
  class: "glim-mark"
121
121
  }), k = () => e(l, {
122
122
  get mark() {
123
- return i.pause;
123
+ return i.play;
124
124
  },
125
125
  class: "glim-mark"
126
126
  }), A = () => e(l, {
127
+ get mark() {
128
+ return i.pause;
129
+ },
130
+ class: "glim-mark"
131
+ }), j = () => e(l, {
127
132
  get mark() {
128
133
  return i.resetArrow;
129
134
  },
130
135
  class: "glim-mark"
131
136
  });
132
- export { c as C, l as S, D as _, u as a, g as b, y as c, w as d, k as f, C as g, A as h, f as i, b as l, O as m, E as n, x as o, h as p, d as r, p as s, S as t, m as u, T as v, s as w, v as x, _ as y };
137
+ export { l as C, y as S, s as T, O as _, u as a, v as b, b as c, T as d, A as f, w as g, j as h, f as i, x as l, k as m, D as n, S as o, h as p, d as r, p as s, C as t, m as u, g as v, c as w, _ as x, E as y };
package/dist/glyphs.d.ts CHANGED
@@ -20,6 +20,7 @@ export declare const IconCheck: () => JSX.Element;
20
20
  export declare const IconExpand: () => JSX.Element;
21
21
  export declare const IconFolderOpen: () => JSX.Element;
22
22
  export declare const IconPencil: () => JSX.Element;
23
+ export declare const IconTrash: () => JSX.Element;
23
24
  export declare const IconWindowMinimise: () => JSX.Element;
24
25
  export declare const IconWindowMaximise: () => JSX.Element;
25
26
  export declare const IconWindowRestore: () => 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";