@glimstone/solid 0.0.0-stage → 4.5.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.
Files changed (127) hide show
  1. package/README.md +50 -2
  2. package/dist/AboutCard.d.ts +154 -0
  3. package/dist/Accordion.d.ts +15 -0
  4. package/dist/Accordion.js +45 -0
  5. package/dist/AngleSlider.d.ts +10 -0
  6. package/dist/AngleSlider.js +47 -0
  7. package/dist/Avatar.d.ts +11 -0
  8. package/dist/Avatar.js +50 -0
  9. package/dist/Badge-CC2mjBLM.js +116 -0
  10. package/dist/Badge.d.ts +52 -0
  11. package/dist/BusyRing.d.ts +13 -0
  12. package/dist/Button-DNSkNN0r.js +219 -0
  13. package/dist/Button.d.ts +56 -0
  14. package/dist/Card.d.ts +33 -0
  15. package/dist/Carousel.d.ts +18 -0
  16. package/dist/Carousel.js +88 -0
  17. package/dist/Checkbox.d.ts +14 -0
  18. package/dist/CoffeeDialog.d.ts +16 -0
  19. package/dist/Collapsible.d.ts +12 -0
  20. package/dist/Collapsible.js +27 -0
  21. package/dist/ColorPicker.d.ts +21 -0
  22. package/dist/Combobox.d.ts +16 -0
  23. package/dist/Combobox.js +64 -0
  24. package/dist/ConfirmDialog.d.ts +29 -0
  25. package/dist/ContextMenu.d.ts +27 -0
  26. package/dist/CopyField.d.ts +17 -0
  27. package/dist/CryptoDonateDialog.d.ts +35 -0
  28. package/dist/DatePicker.d.ts +17 -0
  29. package/dist/DatePicker.js +132 -0
  30. package/dist/DropdownListbox.d.ts +22 -0
  31. package/dist/EmptyState.d.ts +19 -0
  32. package/dist/FieldError.d.ts +8 -0
  33. package/dist/FieldRow.d.ts +20 -0
  34. package/dist/FieldRowGroup.d.ts +10 -0
  35. package/dist/FileUpload.d.ts +15 -0
  36. package/dist/FileUpload.js +68 -0
  37. package/dist/FloatingPanel.d.ts +14 -0
  38. package/dist/FloatingPanel.js +80 -0
  39. package/dist/Fortress.d.ts +101 -0
  40. package/dist/FortressAppCard.d.ts +39 -0
  41. package/dist/FortressPermissions.d.ts +23 -0
  42. package/dist/FortressStatusWindow.d.ts +25 -0
  43. package/dist/GlyphField.d.ts +16 -0
  44. package/dist/GlyphTile.d.ts +12 -0
  45. package/dist/HoverCard.d.ts +12 -0
  46. package/dist/HoverCard.js +55 -0
  47. package/dist/IconButton-Lzbq5Cst.js +42 -0
  48. package/dist/IconButton.d.ts +16 -0
  49. package/dist/IconTipButton-BojUYQWU.js +73 -0
  50. package/dist/IconTipButton.d.ts +20 -0
  51. package/dist/InfoBubble.d.ts +4 -0
  52. package/dist/InstanceCard.d.ts +25 -0
  53. package/dist/Kbd.d.ts +5 -0
  54. package/dist/Lift-CsM0IU9t.js +13 -0
  55. package/dist/Lift.d.ts +12 -0
  56. package/dist/ListRow.d.ts +16 -0
  57. package/dist/ListTable.d.ts +21 -0
  58. package/dist/Marquee.d.ts +16 -0
  59. package/dist/Marquee.js +59 -0
  60. package/dist/MenuBar.d.ts +17 -0
  61. package/dist/Meter.d.ts +18 -0
  62. package/dist/NumberField.d.ts +20 -0
  63. package/dist/Pagination.d.ts +14 -0
  64. package/dist/Pagination.js +77 -0
  65. package/dist/PasswordField.d.ts +17 -0
  66. package/dist/PathField.d.ts +28 -0
  67. package/dist/PaypalDialog.d.ts +51 -0
  68. package/dist/Pill.d.ts +12 -0
  69. package/dist/PinInput.d.ts +21 -0
  70. package/dist/PinInput.js +50 -0
  71. package/dist/Popover.d.ts +14 -0
  72. package/dist/ProgressBar.d.ts +14 -0
  73. package/dist/Rating.d.ts +15 -0
  74. package/dist/Rating.js +45 -0
  75. package/dist/ReadmeButton.d.ts +29 -0
  76. package/dist/RowMark.d.ts +5 -0
  77. package/dist/ScrollArea.d.ts +9 -0
  78. package/dist/ScrollArea.js +31 -0
  79. package/dist/Select.d.ts +48 -0
  80. package/dist/Select.js +548 -0
  81. package/dist/Selector.d.ts +76 -0
  82. package/dist/Sheet.d.ts +21 -0
  83. package/dist/SidebarRow.d.ts +28 -0
  84. package/dist/SignInCard.d.ts +40 -0
  85. package/dist/SignaturePad.d.ts +11 -0
  86. package/dist/SignaturePad.js +65 -0
  87. package/dist/SkeletonRow.d.ts +10 -0
  88. package/dist/Slider.d.ts +12 -0
  89. package/dist/Slider.js +34 -0
  90. package/dist/Splitter.d.ts +14 -0
  91. package/dist/Splitter.js +54 -0
  92. package/dist/Steps.d.ts +17 -0
  93. package/dist/Steps.js +112 -0
  94. package/dist/SubCard.d.ts +17 -0
  95. package/dist/Table.d.ts +14 -0
  96. package/dist/TagsInput.d.ts +15 -0
  97. package/dist/TagsInput.js +57 -0
  98. package/dist/TextField.d.ts +25 -0
  99. package/dist/Timer.d.ts +15 -0
  100. package/dist/Timer.js +98 -0
  101. package/dist/TipWrap.d.ts +12 -0
  102. package/dist/Toast.d.ts +27 -0
  103. package/dist/Toggle.d.ts +23 -0
  104. package/dist/Tour.d.ts +10 -0
  105. package/dist/Tour.js +83 -0
  106. package/dist/Tree.d.ts +20 -0
  107. package/dist/UnavailableNotice.d.ts +15 -0
  108. package/dist/Window.d.ts +30 -0
  109. package/dist/WindowBar.d.ts +25 -0
  110. package/dist/WindowFootRow.d.ts +25 -0
  111. package/dist/engines.d.ts +17 -0
  112. package/dist/fieldName-Bb6qW0oS.js +8 -0
  113. package/dist/fieldName.d.ts +5 -0
  114. package/dist/glyphs-xP5bYKa1.js +127 -0
  115. package/dist/glyphs.d.ts +36 -0
  116. package/dist/index.d.ts +65 -0
  117. package/dist/index.js +5279 -0
  118. package/dist/portalHue-CLVEiNTo.js +14 -0
  119. package/dist/portalHue.d.ts +10 -0
  120. package/dist/style-ByE-hij7.js +8 -0
  121. package/dist/style.d.ts +7 -0
  122. package/dist/useConfirm.d.ts +26 -0
  123. package/dist/useDragArmed.d.ts +6 -0
  124. package/dist/usePaypalButtons.d.ts +17 -0
  125. package/dist/useTipBubble-BJIYZw03.js +65 -0
  126. package/dist/useTipBubble.d.ts +25 -0
  127. package/package.json +148 -4
@@ -0,0 +1,23 @@
1
+ import { type JSX } from "solid-js";
2
+ export interface ToggleProps extends Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "children" | "type" | "role" | "class" | "style"> {
3
+ /** Current on/off state. */
4
+ checked: boolean;
5
+ /** Called with the flipped value when the switch is activated. */
6
+ onChange: (next: boolean) => void;
7
+ /** Always used as the accessible name; shown as visible text unless hideLabel. Inside a FieldRow the row gives it. */
8
+ label?: string;
9
+ /** Suppress the visible caption; the text stays as aria-label. Use it only
10
+ * when the caller draws the same text right next to the switch, never
11
+ * because a card title further up already says it. */
12
+ hideLabel?: boolean;
13
+ disabled?: boolean;
14
+ /** Why the switch cannot be flipped right now, as OLED while Light is chosen
15
+ * (`oledRefusal`). It keeps its state and its focus, its track dims, a press
16
+ * shakes it, and the reason is its bubble, or a line under the row on a
17
+ * touch screen. */
18
+ refused?: string;
19
+ /** Extra classes for the outer wrapper (e.g. row-alignment nudges). */
20
+ class?: string;
21
+ style?: JSX.CSSProperties | string;
22
+ }
23
+ export declare function Toggle(props: ToggleProps): JSX.Element;
package/dist/Tour.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { type TourStep, type TourText } from "@glimstone/core";
2
+ export type { TourStep, TourText } from "@glimstone/core";
3
+ export interface TourProps {
4
+ steps: readonly TourStep[];
5
+ /** Turning it on starts the tour at its first step. It turns off once the tour ends. */
6
+ open: boolean;
7
+ onOpenChange: (open: boolean) => void;
8
+ text?: Partial<TourText>;
9
+ }
10
+ export declare function Tour(props: TourProps): import("solid-js").JSX.Element;
package/dist/Tour.js ADDED
@@ -0,0 +1,83 @@
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";
4
+ import { t as a } from "./Lift-CsM0IU9t.js";
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
+ import { Show as f, createEffect as p, createMemo as m, createUniqueId as h, on as g } from "solid-js";
7
+ import { TOUR_TEXT as _, pageDir as v, tourSteps as y } from "@glimstone/core";
8
+ import { normalizeProps as b, useMachine as x } from "@zag-js/solid";
9
+ import * as S from "@zag-js/tour";
10
+ // src/Tour.tsx
11
+ var C = /*#__PURE__*/ d("<div data-glim=Tour class=glim-tour-layer><div></div><div></div><div><div><h2></h2><p></p><div class=glim-tour-foot><span>");
12
+ function w(d) {
13
+ let w = () => ({
14
+ ..._,
15
+ ...d.text
16
+ }), T = h(), E = x(S.machine, () => ({
17
+ id: T,
18
+ dir: v(),
19
+ steps: y(d.steps),
20
+ onStatusChange: (e) => {
21
+ (e.status === "dismissed" || e.status === "completed" || e.status === "skipped") && d.onOpenChange(!1);
22
+ }
23
+ })), D = m(() => S.connect(E, b)), O = () => D().getCloseTriggerProps().onClick();
24
+ return p(g(() => d.open, (e) => e && !D().open && D().start())), o(f, {
25
+ get when() {
26
+ return c(() => !!D().open)() && D().step;
27
+ },
28
+ children: (c) => o(a, { get children() {
29
+ var a = C(), d = a.firstChild, p = d.nextSibling, m = p.nextSibling, h = m.firstChild, g = h.firstChild, _ = g.nextSibling, v = _.nextSibling, y = v.firstChild;
30
+ return u(d, l(() => D().getBackdropProps(), { class: "glim-tour-backdrop" }), !1, !1), u(p, l(() => D().getSpotlightProps(), { class: "glim-tour-spotlight" }), !1, !1), u(m, l(() => D().getPositionerProps(), { class: "glim-tour-positioner" }), !1, !0), u(h, l(() => D().getContentProps(), { class: "glim-tour" }), !1, !0), u(g, l(() => D().getTitleProps(), { class: "glim-panel-heading" }), !1, !0), s(g, o(e, {
31
+ tone: "heading",
32
+ size: "heading",
33
+ wrap: !0,
34
+ get children() {
35
+ return c().title;
36
+ }
37
+ })), u(_, l(() => D().getDescriptionProps(), { class: "glim-tour-text" }), !1, !0), s(_, () => c().description), u(y, l(() => D().getProgressTextProps(), { class: "glim-tour-progress glim-num" }), !1, !0), s(y, () => w().progress(D().stepIndex + 1, D().totalSteps)), s(v, o(t, {
38
+ get label() {
39
+ return w().back;
40
+ },
41
+ labelKey: null,
42
+ get glyph() {
43
+ return o(i, {});
44
+ },
45
+ get disabled() {
46
+ return !D().hasPrevStep;
47
+ },
48
+ onClick: () => D().prev()
49
+ }), null), s(v, o(f, {
50
+ get when() {
51
+ return D().lastStep;
52
+ },
53
+ get fallback() {
54
+ return o(t, {
55
+ get label() {
56
+ return w().next;
57
+ },
58
+ labelKey: null,
59
+ get glyph() {
60
+ return o(n, {});
61
+ },
62
+ tone: "accent",
63
+ onClick: () => D().next()
64
+ });
65
+ },
66
+ get children() {
67
+ return o(t, {
68
+ get label() {
69
+ return w().close;
70
+ },
71
+ labelKey: null,
72
+ get glyph() {
73
+ return o(r, {});
74
+ },
75
+ tone: "accent",
76
+ onClick: O
77
+ });
78
+ }
79
+ }), null), a;
80
+ } })
81
+ });
82
+ }
83
+ export { w as Tour };
package/dist/Tree.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { type JSX } from "solid-js";
2
+ import { type TreeNode as CoreTreeNode } from "@glimstone/core";
3
+ export type TreeNode = CoreTreeNode<JSX.Element>;
4
+ export interface TreeProps {
5
+ /** The tree's accessible name. */
6
+ label: string;
7
+ /** Asked once for the children of a row, and for the top with null. A list that fails is asked for again on the next opening. */
8
+ load: (id: string | null) => readonly TreeNode[] | Promise<readonly TreeNode[]>;
9
+ /** The chosen row's id. */
10
+ value: string | null;
11
+ onChange: (id: string) => void;
12
+ /** Called on a double click or Enter on a row, for a picker that takes it at once. */
13
+ onActivate?: (id: string) => void;
14
+ /** The open rows' ids, for a caller that holds them. */
15
+ open?: string[];
16
+ onOpenChange?: (open: string[]) => void;
17
+ /** The rows open from the start, for a tree that holds them itself. */
18
+ defaultOpen?: string[];
19
+ }
20
+ export declare function Tree(props: TreeProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { type JSX } from "solid-js";
2
+ export declare function UnavailableNotice(props: {
3
+ /** One line saying what is unavailable. Already translated. */
4
+ title: string;
5
+ /**
6
+ * Why, and ideally what would change it. Already translated. An element lets a
7
+ * caller mark up a hostname or a path inside it.
8
+ */
9
+ reason: JSX.Element;
10
+ /**
11
+ * A control for what somebody can do from here, such as opening the setting
12
+ * that fixes the cause. Never the control that was refused.
13
+ */
14
+ action?: JSX.Element;
15
+ }): JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { type JSX } from "solid-js";
2
+ import { type WindowSize } from "@glimstone/core";
3
+ import { type WindowAction } from "./WindowFootRow.tsx";
4
+ export type { WindowSize } from "@glimstone/core";
5
+ export type { WindowAction } from "./WindowFootRow.tsx";
6
+ export interface WindowProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "title" | "children" | "class" | "ref"> {
7
+ /** The notch's words, also the window's accessible name. */
8
+ title: string;
9
+ /** Takes the words' place in the notch with markup, such as a count. `title` alone stays the name. */
10
+ drawn?: JSX.Element;
11
+ children: JSX.Element;
12
+ /** The foot's buttons, in reading order. Cancel or Close is added before
13
+ * them unless one of them is a way out itself. */
14
+ actions?: WindowAction[];
15
+ /** A quiet line at the start of the foot, such as where the work carries on. */
16
+ start?: JSX.Element;
17
+ /** `normal` for a question or a form, `wide` for a list, `full` for a tool. */
18
+ size?: WindowSize;
19
+ /** The words of the way out the window adds. */
20
+ text: {
21
+ cancel: string;
22
+ close: string;
23
+ };
24
+ /** Called for every way out: the foot, Escape and a press beside the window. */
25
+ onClose: () => void;
26
+ class?: string;
27
+ /** The card element. */
28
+ ref?: HTMLDivElement | ((el: HTMLDivElement) => void);
29
+ }
30
+ export declare function Window(props: WindowProps): JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { type JSX } from "solid-js";
2
+ export interface WindowBarProps {
3
+ /** The app's name. The bar shows none, so this is what a screen reader
4
+ * announces for it. */
5
+ appName: string;
6
+ /** Whether the window fills the screen. The middle button then restores it,
7
+ * and the app turns its edge resizing off. */
8
+ maximised: boolean;
9
+ /** The buttons' accessible names, which also show in their bubbles. */
10
+ text: {
11
+ minimise: string;
12
+ maximise: string;
13
+ restore: string;
14
+ close: string;
15
+ };
16
+ onMinimise: () => void;
17
+ onToggleMaximise: () => void;
18
+ /** Asks the way the native close button does, so an app that hides to the
19
+ * tray on close still does. */
20
+ onClose: () => void;
21
+ /** Called once a press on the bar starts to move. The app hands the press to
22
+ * the system, which moves the window from there. */
23
+ onDragStart: () => void;
24
+ }
25
+ export declare function WindowBar(props: WindowBarProps): JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { type JSX } from "solid-js";
2
+ export interface WindowAction {
3
+ label: string;
4
+ /** The translation key behind `label`, which picks the glyph, or `null`. */
5
+ labelKey: string | null;
6
+ glyph?: JSX.Element;
7
+ /** The forward action, filled with the accent and placed last. */
8
+ primary?: boolean;
9
+ /** This action already leaves the window, so no Cancel or Close is added. */
10
+ wayOut?: boolean;
11
+ disabled?: boolean;
12
+ /** Attributes for the action's button, such as a data hook. */
13
+ attrs?: Record<string, string>;
14
+ /** Runs on press. The window closes afterwards unless it returns false. */
15
+ onClick?: () => void | false;
16
+ }
17
+ export declare function WindowFootRow(props: {
18
+ actions: WindowAction[];
19
+ start?: JSX.Element;
20
+ text: {
21
+ cancel: string;
22
+ close: string;
23
+ };
24
+ onClose: () => void;
25
+ }): JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { type Accessor } from "solid-js";
2
+ import { type Density, type LabelAxis, type LabelMode, type Motion, type RainbowState, type Shape } from "@glimstone/core";
3
+ /**
4
+ * The current label mode for one axis. The first value is read synchronously
5
+ * so the first paint is already right.
6
+ */
7
+ export declare function useLabelMode(axis: LabelAxis): Accessor<LabelMode>;
8
+ /** The rainbow state. Setting it applies the new state to the document. */
9
+ export declare function useRainbow(): [Accessor<RainbowState>, (next: RainbowState) => void];
10
+ /** The custom properties that put an element at a rainbow position. */
11
+ export declare function useHue(index: () => number | undefined): Accessor<Record<string, string> | undefined>;
12
+ export declare function useShape(): [Accessor<Shape>, (next: Shape) => void];
13
+ export declare function useMotion(): [Accessor<Motion>, (next: Motion) => void];
14
+ /** The row density of lists and tables. */
15
+ export declare function useDensity(): [Accessor<Density>, (next: Density) => void];
16
+ /** The accent the user chose, or "" for the default. */
17
+ export declare function useAccent(): [Accessor<string>, (hex: string) => void];
@@ -0,0 +1,8 @@
1
+ import { createContext as e, useContext as t } from "solid-js";
2
+ // src/fieldName.ts
3
+ var n = e(() => void 0), r = e(!1);
4
+ function i(e) {
5
+ let r = t(n);
6
+ return () => e() ?? r();
7
+ }
8
+ export { r as n, i as r, n as t };
@@ -0,0 +1,5 @@
1
+ import { type Accessor } from "solid-js";
2
+ export declare const FieldRowContext: import("solid-js").Context<Accessor<string | undefined>>;
3
+ export declare const FieldRowGroupContext: import("solid-js").Context<boolean>;
4
+ /** A control's accessible name: its own, or the label of the row it stands in. */
5
+ export declare function useFieldName(own: () => string | undefined): Accessor<string | undefined>;
@@ -0,0 +1,127 @@
1
+ import { createComponent as e, effect as t, setAttribute as n, template as r } from "solid-js/web";
2
+ import { MARKS as i } from "@glimstone/core";
3
+ // src/glyphs.tsx
4
+ var a = /*#__PURE__*/ r("<svg fill=currentColor aria-hidden=true>"), o = null;
5
+ function s(e) {
6
+ o = e;
7
+ }
8
+ function c(e) {
9
+ return o ? o(e) : void 0;
10
+ }
11
+ function l(e) {
12
+ return (() => {
13
+ var r = a();
14
+ return t((t) => {
15
+ var i = e.mark.size, a = e.mark.size, o = e.mark.viewBox, s = e.class, c = e.mark.body;
16
+ return i !== t.e && n(r, "width", t.e = i), a !== t.t && n(r, "height", t.t = a), o !== t.a && n(r, "viewBox", t.a = o), s !== t.o && n(r, "class", t.o = s), c !== t.i && (r.innerHTML = t.i = c), t;
17
+ }, {
18
+ e: void 0,
19
+ t: void 0,
20
+ a: void 0,
21
+ o: void 0,
22
+ i: void 0
23
+ }), r;
24
+ })();
25
+ }
26
+ var u = () => e(l, {
27
+ get mark() {
28
+ return i.close;
29
+ },
30
+ class: "glim-mark"
31
+ }), d = () => e(l, {
32
+ get mark() {
33
+ return i.cancel;
34
+ },
35
+ class: "glim-mark"
36
+ }), f = () => e(l, {
37
+ get mark() {
38
+ return i.check;
39
+ },
40
+ class: "glim-mark"
41
+ }), p = () => e(l, {
42
+ get mark() {
43
+ return i.expand;
44
+ },
45
+ class: "glim-mark"
46
+ }), m = () => e(l, {
47
+ get mark() {
48
+ return i.folderOpen;
49
+ },
50
+ class: "glim-mark"
51
+ }), h = () => e(l, {
52
+ get mark() {
53
+ return i.pencil;
54
+ },
55
+ class: "glim-mark"
56
+ }), g = () => e(l, {
57
+ get mark() {
58
+ return i.windowMinimise;
59
+ },
60
+ class: "glim-mark"
61
+ }), _ = () => e(l, {
62
+ get mark() {
63
+ return i.windowMaximise;
64
+ },
65
+ class: "glim-mark"
66
+ }), v = () => e(l, {
67
+ get mark() {
68
+ return i.windowRestore;
69
+ },
70
+ class: "glim-mark"
71
+ }), y = () => e(l, {
72
+ get mark() {
73
+ return i.eye;
74
+ },
75
+ class: "glim-mark"
76
+ }), b = () => e(l, {
77
+ get mark() {
78
+ return i.eyeOff;
79
+ },
80
+ class: "glim-mark"
81
+ }), x = () => e(l, {
82
+ get mark() {
83
+ return i.copy;
84
+ },
85
+ class: "glim-mark"
86
+ }), S = () => e(l, {
87
+ get mark() {
88
+ return i.back;
89
+ },
90
+ class: "glim-mark"
91
+ }), C = () => e(l, {
92
+ get mark() {
93
+ return i.forward;
94
+ },
95
+ class: "glim-mark"
96
+ }), w = () => e(l, {
97
+ get mark() {
98
+ return i.upload;
99
+ },
100
+ class: "glim-mark"
101
+ }), T = () => e(l, {
102
+ get mark() {
103
+ return i.calendar;
104
+ },
105
+ class: "glim-mark"
106
+ }), E = () => e(l, {
107
+ get mark() {
108
+ return i.star;
109
+ },
110
+ class: "glim-mark"
111
+ }), D = () => e(l, {
112
+ get mark() {
113
+ return i.play;
114
+ },
115
+ class: "glim-mark"
116
+ }), O = () => e(l, {
117
+ get mark() {
118
+ return i.pause;
119
+ },
120
+ class: "glim-mark"
121
+ }), k = () => e(l, {
122
+ get mark() {
123
+ return i.resetArrow;
124
+ },
125
+ class: "glim-mark"
126
+ });
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 };
@@ -0,0 +1,36 @@
1
+ import type { JSX } from "solid-js";
2
+ import { type Mark } from "@glimstone/core";
3
+ /**
4
+ * Register the app's label-key-to-glyph mapping, once, at boot. A button that is
5
+ * given no glyph cannot be shown in glyph mode, and one place to ask saves
6
+ * passing an icon at every call site. Each call draws a glyph of its own, so
7
+ * the resolver makes a new element every time.
8
+ */
9
+ export declare function setGlyphResolver(fn: (labelKey: string) => JSX.Element | undefined): void;
10
+ /** The mark for a label key, or nothing when no app resolver knows it. */
11
+ export declare function glyphFor(labelKey: string): JSX.Element | undefined;
12
+ /** A mark from the core, drawn in the current colour. */
13
+ export declare function MarkSvg(props: {
14
+ mark: Mark;
15
+ class?: string;
16
+ }): JSX.Element;
17
+ export declare const IconClose: () => JSX.Element;
18
+ export declare const IconCancel: () => JSX.Element;
19
+ export declare const IconCheck: () => JSX.Element;
20
+ export declare const IconExpand: () => JSX.Element;
21
+ export declare const IconFolderOpen: () => JSX.Element;
22
+ export declare const IconPencil: () => JSX.Element;
23
+ export declare const IconWindowMinimise: () => JSX.Element;
24
+ export declare const IconWindowMaximise: () => JSX.Element;
25
+ export declare const IconWindowRestore: () => JSX.Element;
26
+ export declare const IconEye: () => JSX.Element;
27
+ export declare const IconEyeOff: () => JSX.Element;
28
+ export declare const IconCopy: () => JSX.Element;
29
+ export declare const IconBack: () => JSX.Element;
30
+ export declare const IconForward: () => JSX.Element;
31
+ export declare const IconUpload: () => JSX.Element;
32
+ export declare const IconCalendar: () => JSX.Element;
33
+ export declare const IconStar: () => JSX.Element;
34
+ export declare const IconPlay: () => JSX.Element;
35
+ export declare const IconPause: () => JSX.Element;
36
+ export declare const IconResetArrow: () => JSX.Element;
@@ -0,0 +1,65 @@
1
+ export * from "./AboutCard.tsx";
2
+ export * from "./Badge.tsx";
3
+ export * from "./BusyRing.tsx";
4
+ export * from "./Button.tsx";
5
+ export * from "./Card.tsx";
6
+ export * from "./Checkbox.tsx";
7
+ export * from "./CoffeeDialog.tsx";
8
+ export * from "./ColorPicker.tsx";
9
+ export * from "./ConfirmDialog.tsx";
10
+ export * from "./ContextMenu.tsx";
11
+ export * from "./CopyField.tsx";
12
+ export * from "./CryptoDonateDialog.tsx";
13
+ export * from "./DropdownListbox.tsx";
14
+ export * from "./EmptyState.tsx";
15
+ export * from "./engines.ts";
16
+ export * from "./FieldError.tsx";
17
+ export { useFieldName } from "./fieldName.ts";
18
+ export * from "./FieldRow.tsx";
19
+ export * from "./FieldRowGroup.tsx";
20
+ export * from "./Fortress.tsx";
21
+ export * from "./FortressAppCard.tsx";
22
+ export * from "./FortressPermissions.tsx";
23
+ export * from "./FortressStatusWindow.tsx";
24
+ export * from "./GlyphField.tsx";
25
+ export * from "./GlyphTile.tsx";
26
+ export * from "./glyphs.tsx";
27
+ export * from "./IconButton.tsx";
28
+ export * from "./IconTipButton.tsx";
29
+ export * from "./InfoBubble.tsx";
30
+ export * from "./InstanceCard.tsx";
31
+ export * from "./Kbd.tsx";
32
+ export * from "./ListRow.tsx";
33
+ export * from "./ListTable.tsx";
34
+ export * from "./MenuBar.tsx";
35
+ export * from "./Meter.tsx";
36
+ export * from "./NumberField.tsx";
37
+ export * from "./PasswordField.tsx";
38
+ export * from "./PathField.tsx";
39
+ export * from "./PaypalDialog.tsx";
40
+ export * from "./Pill.tsx";
41
+ export * from "./Popover.tsx";
42
+ export * from "./portalHue.ts";
43
+ export * from "./ProgressBar.tsx";
44
+ export * from "./ReadmeButton.tsx";
45
+ export * from "./RowMark.tsx";
46
+ export * from "./Selector.tsx";
47
+ export * from "./Sheet.tsx";
48
+ export * from "./SidebarRow.tsx";
49
+ export * from "./SignInCard.tsx";
50
+ export * from "./SkeletonRow.tsx";
51
+ export * from "./SubCard.tsx";
52
+ export * from "./Table.tsx";
53
+ export * from "./TextField.tsx";
54
+ export * from "./Toast.tsx";
55
+ export * from "./Toggle.tsx";
56
+ export * from "./Tree.tsx";
57
+ export * from "./UnavailableNotice.tsx";
58
+ export * from "./useConfirm.tsx";
59
+ export * from "./useDragArmed.ts";
60
+ export * from "./usePaypalButtons.ts";
61
+ export * from "./useTipBubble.tsx";
62
+ export * from "./Window.tsx";
63
+ export * from "./WindowBar.tsx";
64
+ export type { ToastAction } from "@glimstone/core";
65
+ export { GLIMSTONE_VERSION } from "@glimstone/core";