@glimstone/solid 4.5.4 → 4.5.6

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-xP5bYKa1.js";
1
+ import { s as e } from "./glyphs-Cwg-1aUK.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 { S as r, a as i } from "./glyphs-xP5bYKa1.js";
3
+ import { C as r, a as i } from "./glyphs-Cwg-1aUK.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";
package/dist/Carousel.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./Button-DNSkNN0r.js";
2
- import { d as t, t as n } from "./glyphs-xP5bYKa1.js";
1
+ import { t as e } from "./Button-iio6zNXx.js";
2
+ import { d as t, t as n } from "./glyphs-Cwg-1aUK.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-xP5bYKa1.js";
1
+ import { s as e } from "./glyphs-Cwg-1aUK.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-xP5bYKa1.js";
2
+ import { i as t, s as n } from "./glyphs-Cwg-1aUK.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";
@@ -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-xP5bYKa1.js";
2
+ import { d as t, n, t as r } from "./glyphs-Cwg-1aUK.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 { _ as t, a as n } from "./glyphs-xP5bYKa1.js";
2
+ import { a as t, v as n } from "./glyphs-Cwg-1aUK.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";
@@ -30,29 +30,29 @@ function C(s) {
30
30
  })), D = u(() => v.connect(E, g));
31
31
  return (() => {
32
32
  var s = b(), u = s.firstChild, d = u.nextSibling, f = d.firstChild, p = d.nextSibling;
33
- return o(s, a(() => D().getRootProps(), { class: "glim-upload" }), !1, !0), o(u, a(() => D().getLabelProps(), { class: "glim-field-label" }), !1, !0), i(u, () => C.label), o(d, a(() => D().getDropzoneProps(), { class: "glim-upload-drop" }), !1, !0), i(d, r(t, {}), f), i(f, () => T().drop), o(p, a(() => D().getHiddenInputProps()), !1, !1), i(s, r(l, {
33
+ return o(s, a(() => D().getRootProps(), { class: "glim-upload" }), !1, !0), o(u, a(() => D().getLabelProps(), { class: "glim-field-label" }), !1, !0), i(u, () => C.label), o(d, a(() => D().getDropzoneProps(), { class: "glim-upload-drop" }), !1, !0), i(d, r(n, {}), f), i(f, () => T().drop), o(p, a(() => D().getHiddenInputProps()), !1, !1), i(s, r(l, {
34
34
  get when() {
35
35
  return D().acceptedFiles.length > 0;
36
36
  },
37
37
  get children() {
38
- var t = y();
39
- return o(t, a(() => D().getItemGroupProps(), { class: "glim-upload-files" }), !1, !0), i(t, r(c, {
38
+ var n = y();
39
+ return o(n, a(() => D().getItemGroupProps(), { class: "glim-upload-files" }), !1, !0), i(n, r(c, {
40
40
  get each() {
41
41
  return D().acceptedFiles;
42
42
  },
43
- children: (t) => (() => {
43
+ children: (n) => (() => {
44
44
  var s = x(), c = s.firstChild, l = c.nextSibling;
45
- return o(s, a(() => D().getItemProps({ file: t }), { class: "glim-upload-file" }), !1, !0), o(c, a(() => D().getItemNameProps({ file: t }), { class: "glim-upload-name" }), !1, !0), i(c, () => t.name), o(l, a(() => D().getItemSizeTextProps({ file: t }), { class: "glim-upload-size glim-num" }), !1, !0), i(l, () => m(t.size)), i(s, r(e, {
45
+ return o(s, a(() => D().getItemProps({ file: n }), { class: "glim-upload-file" }), !1, !0), o(c, a(() => D().getItemNameProps({ file: n }), { class: "glim-upload-name" }), !1, !0), i(c, () => n.name), o(l, a(() => D().getItemSizeTextProps({ file: n }), { class: "glim-upload-size glim-num" }), !1, !0), i(l, () => m(n.size)), i(s, r(e, {
46
46
  get tip() {
47
- return T().remove(t.name);
47
+ return T().remove(n.name);
48
48
  },
49
49
  get glyph() {
50
- return r(n, {});
50
+ return r(t, {});
51
51
  },
52
- onClick: () => D().deleteFile(t)
52
+ onClick: () => D().deleteFile(n)
53
53
  }), null), s;
54
54
  })()
55
- })), t;
55
+ })), n;
56
56
  }
57
57
  }), null), i(s, r(c, {
58
58
  get each() {
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./Badge-CC2mjBLM.js";
2
- import { t } from "./Button-DNSkNN0r.js";
3
- import { a as n, b as r, v as i, y as a } from "./glyphs-xP5bYKa1.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";
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,7 +52,7 @@ 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(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(r, {})), 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(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, {
56
56
  get label() {
57
57
  return E().close;
58
58
  },
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-xP5bYKa1.js";
2
+ import { f as t, m as n } from "./glyphs-Cwg-1aUK.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-DNSkNN0r.js";
2
- import { d as t, t as n } from "./glyphs-xP5bYKa1.js";
1
+ import { t as e } from "./Button-iio6zNXx.js";
2
+ import { d as t, t as n } from "./glyphs-Cwg-1aUK.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";
@@ -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, while the tiles show, a press beside the window. */
24
+ onClose: () => void;
25
+ }
26
+ export declare function PickerWindow(props: PickerWindowProps): JSX.Element;
package/dist/Rating.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-Bb6qW0oS.js";
2
- import { g as t } from "./glyphs-xP5bYKa1.js";
2
+ import { _ as t } from "./glyphs-Cwg-1aUK.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";
@@ -14,6 +14,8 @@ export interface ReadmeButtonProps {
14
14
  art?: JSX.Element;
15
15
  /** The "(i)" at the end of the unit, for what the name cannot say. */
16
16
  hint?: string;
17
+ /** A few words in the first part's bubble, for a name that needs no (i). */
18
+ tip?: string;
17
19
  /** Holds the second lines in view while one reports what it did, such as "Copied". */
18
20
  note?: boolean;
19
21
  /** The second line of a unit whose first part has neither `href` nor `onClick`. */
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-xP5bYKa1.js";
2
+ import { i as t, s as n } from "./glyphs-Cwg-1aUK.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-DNSkNN0r.js";
2
- import { h as t } from "./glyphs-xP5bYKa1.js";
1
+ import { t as e } from "./Button-iio6zNXx.js";
2
+ import { h as t } from "./glyphs-Cwg-1aUK.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-DNSkNN0r.js";
2
- import { d as t, i as n, t as r } from "./glyphs-xP5bYKa1.js";
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";
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-xP5bYKa1.js";
2
+ import { a as t } from "./glyphs-Cwg-1aUK.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-DNSkNN0r.js";
2
- import { f as t, h as n, m as r } from "./glyphs-xP5bYKa1.js";
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";
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-DNSkNN0r.js";
3
- import { d as n, i as r, t as i } from "./glyphs-xP5bYKa1.js";
2
+ import { t } from "./Button-iio6zNXx.js";
3
+ import { d as n, i as r, t as i } from "./glyphs-Cwg-1aUK.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";
package/dist/Window.d.ts CHANGED
@@ -21,6 +21,9 @@ export interface WindowProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "t
21
21
  cancel: string;
22
22
  close: string;
23
23
  };
24
+ /** Off while the window holds typed input, which a stray press beside the
25
+ * card would throw away. Escape and the foot still close it. */
26
+ closeOnBackdrop?: boolean;
24
27
  /** Called for every way out: the foot, Escape and a press beside the window. */
25
28
  onClose: () => void;
26
29
  class?: string;
@@ -1,4 +1,5 @@
1
1
  import { type JSX } from "solid-js";
2
+ import { type ButtonTone } from "@glimstone/core";
2
3
  export interface WindowAction {
3
4
  label: string;
4
5
  /** The translation key behind `label`, which picks the glyph, or `null`. */
@@ -9,6 +10,12 @@ export interface WindowAction {
9
10
  /** This action already leaves the window, so no Cancel or Close is added. */
10
11
  wayOut?: boolean;
11
12
  disabled?: boolean;
13
+ /** Its fill once it has run, such as `ok` or `danger`, in place of the accent or the neutral grey. */
14
+ tone?: ButtonTone;
15
+ /** The busy ring in place of the glyph while it runs. The words, and so the width, stay. */
16
+ busy?: boolean;
17
+ /** What changes, such as how a test came out, in the button's bubble. */
18
+ title?: string;
12
19
  /** Attributes for the action's button, such as a data hook. */
13
20
  attrs?: Record<string, string>;
14
21
  /** Runs on press. The window closes afterwards unless it returns false. */
@@ -90,38 +90,43 @@ var u = () => e(l, {
90
90
  class: "glim-mark"
91
91
  }), C = () => e(l, {
92
92
  get mark() {
93
- return i.forward;
93
+ return i.search;
94
94
  },
95
95
  class: "glim-mark"
96
96
  }), w = () => e(l, {
97
97
  get mark() {
98
- return i.upload;
98
+ return i.forward;
99
99
  },
100
100
  class: "glim-mark"
101
101
  }), T = () => e(l, {
102
102
  get mark() {
103
- return i.calendar;
103
+ return i.upload;
104
104
  },
105
105
  class: "glim-mark"
106
106
  }), E = () => e(l, {
107
107
  get mark() {
108
- return i.star;
108
+ return i.calendar;
109
109
  },
110
110
  class: "glim-mark"
111
111
  }), D = () => e(l, {
112
112
  get mark() {
113
- return i.play;
113
+ return i.star;
114
114
  },
115
115
  class: "glim-mark"
116
116
  }), O = () => e(l, {
117
117
  get mark() {
118
- return i.pause;
118
+ return i.play;
119
119
  },
120
120
  class: "glim-mark"
121
121
  }), k = () => e(l, {
122
+ get mark() {
123
+ return i.pause;
124
+ },
125
+ class: "glim-mark"
126
+ }), A = () => e(l, {
122
127
  get mark() {
123
128
  return i.resetArrow;
124
129
  },
125
130
  class: "glim-mark"
126
131
  });
127
- export { s as C, c as S, w as _, u as a, v as b, y as c, C as d, O as f, E as g, k as h, f as i, b as l, D as m, T as n, x as o, h as p, d as r, p as s, S as t, m as u, _ as v, l as x, g as y };
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 };
package/dist/glyphs.d.ts CHANGED
@@ -27,6 +27,7 @@ export declare const IconEye: () => JSX.Element;
27
27
  export declare const IconEyeOff: () => JSX.Element;
28
28
  export declare const IconCopy: () => JSX.Element;
29
29
  export declare const IconBack: () => JSX.Element;
30
+ export declare const IconSearch: () => JSX.Element;
30
31
  export declare const IconForward: () => JSX.Element;
31
32
  export declare const IconUpload: () => JSX.Element;
32
33
  export declare const IconCalendar: () => 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";