@glimstone/vue 4.4.0 → 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 (96) hide show
  1. package/dist/AboutCard.vue.d.ts +40 -0
  2. package/dist/Accordion.js +36 -0
  3. package/dist/Accordion.vue.d.ts +32 -0
  4. package/dist/AngleSlider.js +46 -0
  5. package/dist/AngleSlider.vue.d.ts +22 -0
  6. package/dist/Avatar.js +37 -0
  7. package/dist/Avatar.vue.d.ts +14 -0
  8. package/dist/Badge-BhK0gMse.js +81 -0
  9. package/dist/Badge.vue.d.ts +1 -1
  10. package/dist/Button-BM5Dzboj.js +203 -0
  11. package/dist/Carousel.js +80 -0
  12. package/dist/Carousel.vue.d.ts +36 -0
  13. package/dist/CoffeeDialog.vue.d.ts +21 -0
  14. package/dist/Collapsible.js +34 -0
  15. package/dist/Collapsible.vue.d.ts +30 -0
  16. package/dist/Combobox.js +3 -3
  17. package/dist/ContextMenu.vue.d.ts +3 -0
  18. package/dist/CryptoDonateDialog.vue.d.ts +48 -0
  19. package/dist/DatePicker.js +103 -0
  20. package/dist/DatePicker.vue.d.ts +24 -0
  21. package/dist/DropdownListbox.vue.d.ts +30 -0
  22. package/dist/FileUpload.js +67 -0
  23. package/dist/FileUpload.vue.d.ts +25 -0
  24. package/dist/FloatingPanel.js +85 -0
  25. package/dist/FloatingPanel.vue.d.ts +34 -0
  26. package/dist/Fortress.vue.d.ts +2 -2
  27. package/dist/HoverCard.js +42 -0
  28. package/dist/HoverCard.vue.d.ts +23 -0
  29. package/dist/IconButton-D5YOChZI.js +48 -0
  30. package/dist/IconTipButton-BLtrZfgN.js +56 -0
  31. package/dist/Marquee.js +49 -0
  32. package/dist/Marquee.vue.d.ts +32 -0
  33. package/dist/MenuBar.vue.d.ts +1 -3
  34. package/dist/Pagination.js +72 -0
  35. package/dist/Pagination.vue.d.ts +23 -0
  36. package/dist/PaypalDialog.vue.d.ts +63 -0
  37. package/dist/PinInput.js +61 -0
  38. package/dist/PinInput.vue.d.ts +34 -0
  39. package/dist/PresenceBadges.vue.d.ts +8 -0
  40. package/dist/ProgressBar.vue.d.ts +1 -1
  41. package/dist/Rating.js +56 -0
  42. package/dist/Rating.vue.d.ts +27 -0
  43. package/dist/ScrollArea.js +31 -0
  44. package/dist/ScrollArea.vue.d.ts +21 -0
  45. package/dist/Select-CBScnONy.js +458 -0
  46. package/dist/Select.js +1 -1
  47. package/dist/SignaturePad.js +63 -0
  48. package/dist/SignaturePad.vue.d.ts +19 -0
  49. package/dist/Splitter.js +46 -0
  50. package/dist/Splitter.vue.d.ts +31 -0
  51. package/dist/Steps.js +77 -0
  52. package/dist/Steps.vue.d.ts +34 -0
  53. package/dist/TagsInput.js +73 -0
  54. package/dist/TagsInput.vue.d.ts +25 -0
  55. package/dist/Timer.js +74 -0
  56. package/dist/Timer.vue.d.ts +22 -0
  57. package/dist/TipWrap-5Nw7Yj0O.js +51 -0
  58. package/dist/ToastCard.vue.d.ts +25 -0
  59. package/dist/ToastViewport.vue.d.ts +16 -8
  60. package/dist/Tour.js +84 -0
  61. package/dist/Tour.vue.d.ts +16 -0
  62. package/dist/Tree.vue.d.ts +2 -2
  63. package/dist/WindowBar.vue.d.ts +27 -0
  64. package/dist/confirm.d.ts +5 -1
  65. package/dist/deprecatedEvents.d.ts +8 -0
  66. package/dist/engines.d.ts +2 -1
  67. package/dist/entries/accordion.d.ts +2 -0
  68. package/dist/entries/angleslider.d.ts +1 -0
  69. package/dist/entries/avatar.d.ts +2 -0
  70. package/dist/entries/carousel.d.ts +2 -0
  71. package/dist/entries/collapsible.d.ts +1 -0
  72. package/dist/entries/datepicker.d.ts +2 -0
  73. package/dist/entries/fileupload.d.ts +2 -0
  74. package/dist/entries/floatingpanel.d.ts +2 -0
  75. package/dist/entries/hovercard.d.ts +1 -0
  76. package/dist/entries/marquee.d.ts +2 -0
  77. package/dist/entries/pagination.d.ts +2 -0
  78. package/dist/entries/pininput.d.ts +2 -0
  79. package/dist/entries/rating.d.ts +2 -0
  80. package/dist/entries/scrollarea.d.ts +1 -0
  81. package/dist/entries/signaturepad.d.ts +2 -0
  82. package/dist/entries/splitter.d.ts +2 -0
  83. package/dist/entries/steps.d.ts +2 -0
  84. package/dist/entries/tagsinput.d.ts +2 -0
  85. package/dist/entries/timer.d.ts +2 -0
  86. package/dist/entries/tour.d.ts +2 -0
  87. package/dist/fortressParts.d.ts +3 -0
  88. package/dist/{glyphs-CYhs4mrY.js → glyphs-DEch1yYd.js} +2 -2
  89. package/dist/glyphs.d.ts +8 -0
  90. package/dist/index.d.ts +15 -2
  91. package/dist/index.js +3655 -3330
  92. package/dist/paypalButtons.d.ts +17 -0
  93. package/dist/selectParts-0e1ib8BL.js +23 -0
  94. package/dist/selectParts.d.ts +9 -5
  95. package/package.json +108 -7
  96. package/dist/Select-D8Kf1NZa.js +0 -520
@@ -0,0 +1,34 @@
1
+ import { s as e } from "./glyphs-DEch1yYd.js";
2
+ import { computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d, useId as f, useModel as p } from "vue";
3
+ import { pageDir as m } from "@glimstone/core";
4
+ import { normalizeProps as h, useMachine as g } from "@zag-js/vue";
5
+ import * as _ from "@zag-js/collapsible";
6
+ // src/Collapsible.vue?vue&type=script&setup=true&lang.ts
7
+ var v = { class: "glim-disclosure-label" }, y = { class: "glim-disclosure-body" }, b = /* @__PURE__ */ a({
8
+ __name: "Collapsible",
9
+ props: /*@__PURE__*/ o({
10
+ label: {},
11
+ disabled: {
12
+ type: Boolean,
13
+ default: !1
14
+ }
15
+ }, {
16
+ open: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ openModifiers: {}
21
+ }),
22
+ emits: ["update:open"],
23
+ setup(a) {
24
+ let o = a, b = p(a, "open"), x = f(), S = g(_.machine, t(() => ({
25
+ id: x,
26
+ dir: m(),
27
+ open: b.value,
28
+ disabled: o.disabled,
29
+ onOpenChange: (e) => b.value = e.open
30
+ }))), C = t(() => _.connect(S, h));
31
+ return (t, o) => (c(), n("div", s({ "data-glim": "Collapsible" }, C.value.getRootProps(), { class: "glim-collapsible" }), [r("button", s(C.value.getTriggerProps(), { class: "glim-disclosure-trigger" }), [r("span", v, u(a.label), 1), r("span", s(C.value.getIndicatorProps(), { class: "glim-disclosure-indicator" }), [i(d(e))], 16)], 16), r("div", s(C.value.getContentProps(), { class: "glim-disclosure-content" }), [r("div", y, [l(t.$slots, "default")])], 16)], 16));
32
+ }
33
+ });
34
+ export { b as Collapsible };
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ /** The words on the row that opens it, which are also its accessible name. */
3
+ label: string;
4
+ disabled?: boolean;
5
+ };
6
+ type __VLS_ModelProps = {
7
+ "open"?: boolean;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ default?: (props: {}) => any;
13
+ };
14
+ };
15
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:open": (value: boolean) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
package/dist/Combobox.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./fieldName-DBygJJfe.js";
2
- import { a as t, n } from "./glyphs-CYhs4mrY.js";
2
+ import { i as t, s as n } from "./glyphs-DEch1yYd.js";
3
3
  import { Fragment as r, Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderList as h, shallowRef as g, toDisplayString as _, unref as v, useId as y, useModel as b, watch as x } from "vue";
4
4
  import { portalTarget as S } from "@glimstone/core";
5
5
  import { normalizeProps as C, useMachine as w } from "@zag-js/vue";
@@ -64,8 +64,8 @@ var E = ["aria-label"], D = ["data-state"], O = {
64
64
  }), [l("span", {
65
65
  class: "glim-select-indicator",
66
66
  "data-state": F.value.open ? "open" : "closed"
67
- }, [u(v(t))], 8, D)], 16, E)], 16),
68
- (m(), o(i, { to: v(S)() }, [l("div", p(F.value.getPositionerProps(), { class: "glim-select-positioner" }), [l("ul", p(F.value.getContentProps(), { class: "glim-select-content" }), [M.value.length === 0 ? (m(), c("li", O, _(d.empty), 1)) : s("", !0), (m(!0), c(r, null, h(M.value, (e) => (m(), c("li", p({ key: e.value }, { ref_for: !0 }, F.value.getItemProps({ item: e }), { class: "glim-select-item" }), [l("span", p({ ref_for: !0 }, F.value.getItemTextProps({ item: e })), _(e.label), 17), l("span", p({ ref_for: !0 }, F.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [u(v(n))], 16)], 16))), 128))], 16)], 16)], 8, ["to"]))
67
+ }, [u(v(n))], 8, D)], 16, E)], 16),
68
+ (m(), o(i, { to: v(S)() }, [l("div", p(F.value.getPositionerProps(), { class: "glim-select-positioner" }), [l("ul", p(F.value.getContentProps(), { class: "glim-select-content" }), [M.value.length === 0 ? (m(), c("li", O, _(d.empty), 1)) : s("", !0), (m(!0), c(r, null, h(M.value, (e) => (m(), c("li", p({ key: e.value }, { ref_for: !0 }, F.value.getItemProps({ item: e }), { class: "glim-select-item" }), [l("span", p({ ref_for: !0 }, F.value.getItemTextProps({ item: e })), _(e.label), 17), l("span", p({ ref_for: !0 }, F.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [u(v(t))], 16)], 16))), 128))], 16)], 16)], 8, ["to"]))
69
69
  ], 16));
70
70
  }
71
71
  });
@@ -13,6 +13,8 @@ type __VLS_Props = {
13
13
  /** The control that opened the menu. A click on it is not a click outside,
14
14
  * and focus goes back to it; without one, focus goes back to wherever it was. */
15
15
  opener?: HTMLElement | null;
16
+ /** Opens with the focus on the last row, as ArrowUp on a menu bar's word asks. */
17
+ fromEnd?: boolean;
16
18
  };
17
19
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
20
  close: () => any;
@@ -24,6 +26,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
24
26
  label: string;
25
27
  above: boolean;
26
28
  opener: HTMLElement | null;
29
+ fromEnd: boolean;
27
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
31
  declare const _default: typeof __VLS_export;
29
32
  export default _default;
@@ -0,0 +1,48 @@
1
+ import { type CryptoCoin, type CryptoNetwork } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ /** The coins on offer. See the rule at the top of this file. */
4
+ coins: CryptoCoin[];
5
+ /** What is shown right now. The app owns this, so it can remember it. */
6
+ coin: CryptoCoin;
7
+ network: CryptoNetwork;
8
+ text: {
9
+ title: string;
10
+ /** The app's appeal, the same in every giving window. */
11
+ appeal: string;
12
+ /** One sentence saying what to do: pick a currency and a network, then scan or copy. */
13
+ intro: string;
14
+ /** The label over the chain row ("Networks"). */
15
+ networks: string;
16
+ copyLabel: string;
17
+ closeLabel: string;
18
+ };
19
+ };
20
+ type __VLS_Slots = {
21
+ /** The address as a scannable square. */
22
+ qr?(props: {
23
+ value: string;
24
+ }): unknown;
25
+ /** A coin's own mark. */
26
+ mark?(props: {
27
+ coin: CryptoCoin;
28
+ }): unknown;
29
+ };
30
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
31
+ card: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ close: () => any;
34
+ copy: (coin: CryptoCoin, network: CryptoNetwork) => any;
35
+ pick: (coin: CryptoCoin, network: CryptoNetwork) => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
37
+ onClose?: (() => any) | undefined;
38
+ onCopy?: ((coin: CryptoCoin, network: CryptoNetwork) => any) | undefined;
39
+ onPick?: ((coin: CryptoCoin, network: CryptoNetwork) => any) | undefined;
40
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
42
+ declare const _default: typeof __VLS_export;
43
+ export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,103 @@
1
+ import { r as e } from "./fieldName-DBygJJfe.js";
2
+ import { d as t, n, t as r } from "./glyphs-DEch1yYd.js";
3
+ import { t as i } from "./selectParts-0e1ib8BL.js";
4
+ import { Fragment as a, Teleport as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeModels as m, mergeProps as h, normalizeClass as g, normalizeProps as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, useId as C, useModel as w } from "vue";
5
+ import { DATE_PICKER_TEXT as T, SELECT_POSITIONING as E, formatDay as D, pageDir as O, pageLocale as k, portalTarget as A } from "@glimstone/core";
6
+ import { normalizeProps as j, useMachine as M } from "@zag-js/vue";
7
+ import * as N from "@zag-js/date-picker";
8
+ // src/DatePicker.vue?vue&type=script&setup=true&lang.ts
9
+ var P = ["hidden"], F = ["aria-label"], I = ["hidden"], L = ["hidden"], R = { class: "glim-date-title glim-num" }, z = /* @__PURE__ */ f({
10
+ __name: "DatePicker",
11
+ props: /*@__PURE__*/ m({
12
+ label: {},
13
+ min: {},
14
+ max: {},
15
+ locale: {},
16
+ disabled: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ text: {}
21
+ }, {
22
+ modelValue: { required: !0 },
23
+ modelModifiers: {}
24
+ }),
25
+ emits: ["update:modelValue"],
26
+ setup(f) {
27
+ let m = f, z = w(f, "modelValue"), B = e(() => m.label), V = s(() => ({
28
+ ...T,
29
+ ...m.text
30
+ })), H = s(() => m.locale ?? k()), U = s(() => z.value ? D(z.value, H.value) : V.value.placeholder), W = C(), G = M(N.machine, s(() => ({
31
+ id: W,
32
+ dir: O(),
33
+ locale: H.value,
34
+ value: z.value ? [N.parse(z.value)] : [],
35
+ min: m.min ? N.parse(m.min) : void 0,
36
+ max: m.max ? N.parse(m.max) : void 0,
37
+ disabled: m.disabled,
38
+ positioning: E,
39
+ onValueChange: (e) => z.value = e.value[0]?.toString() ?? null,
40
+ translations: {
41
+ content: V.value.calendar,
42
+ trigger: () => B.value ? `${B.value}, ${U.value}` : U.value,
43
+ prevTrigger: (e) => V.value.previous[e],
44
+ nextTrigger: (e) => V.value.next[e],
45
+ viewTrigger: () => V.value.zoomOut
46
+ }
47
+ }))), K = s(() => N.connect(G, j)), q = y(null), J = i(() => K.value.open, q), Y = s(() => K.value.getMonthsGrid({
48
+ columns: 4,
49
+ format: "short"
50
+ })), X = s(() => K.value.getYearsGrid({ columns: 4 }));
51
+ return (e, i) => (v(), l("div", h({ "data-glim": "DatePicker" }, K.value.getRootProps(), { class: "glim-date" }), [
52
+ u("label", h(K.value.getLabelProps(), { class: f.label === void 0 ? "glim-sr-only" : "glim-field-label" }), x(S(B)), 17),
53
+ u("div", h(K.value.getControlProps(), { class: "glim-date-control" }), [u("button", h({
54
+ ref_key: "triggerRef",
55
+ ref: q
56
+ }, K.value.getTriggerProps(), { class: "glim-input glim-date-trigger" }), [u("span", { class: g(z.value ? "glim-date-value" : "glim-date-value glim-date-value--empty") }, x(U.value), 3), d(S(n))], 16)], 16),
57
+ (v(), c(o, { to: S(A)() }, [u("div", h(K.value.getPositionerProps(), {
58
+ style: S(J).style.value,
59
+ class: ["glim-date-positioner", S(J).className.value]
60
+ }), [u("div", h(K.value.getContentProps(), { class: "glim-date-panel" }), [
61
+ u("div", h(K.value.getViewProps({ view: "day" }), { hidden: K.value.view !== "day" }), [u("div", h(K.value.getViewControlProps({ view: "day" }), { class: "glim-date-head" }), [
62
+ u("button", h(K.value.getPrevTriggerProps({ view: "day" }), { class: "glim-date-step" }), [d(S(r))], 16),
63
+ u("button", h(K.value.getViewTriggerProps({ view: "day" }), { class: "glim-date-title" }), x(K.value.visibleRangeText.start), 17),
64
+ u("button", h(K.value.getNextTriggerProps({ view: "day" }), { class: "glim-date-step" }), [d(S(t))], 16)
65
+ ], 16), u("table", h(K.value.getTableProps({ view: "day" }), { class: "glim-date-grid" }), [u("thead", _(p(K.value.getTableHeadProps({ view: "day" }))), [u("tr", _(p(K.value.getTableRowProps({ view: "day" }))), [(v(!0), l(a, null, b(K.value.weekDays, (e, t) => (v(), l("th", {
66
+ key: t,
67
+ scope: "col",
68
+ "aria-label": e.long,
69
+ class: "glim-date-weekday"
70
+ }, x(e.narrow), 9, F))), 128))], 16)], 16), u("tbody", _(p(K.value.getTableBodyProps({ view: "day" }))), [(v(!0), l(a, null, b(K.value.weeks, (e, t) => (v(), l("tr", h({ key: t }, { ref_for: !0 }, K.value.getTableRowProps({ view: "day" })), [(v(!0), l(a, null, b(e, (e, t) => (v(), l("td", h({ key: t }, { ref_for: !0 }, K.value.getDayTableCellProps({ value: e })), [u("div", h({ ref_for: !0 }, K.value.getDayTableCellTriggerProps({ value: e }), { class: "glim-date-cell glim-num" }), x(e.day), 17)], 16))), 128))], 16))), 128))], 16)], 16)], 16, P),
71
+ u("div", h(K.value.getViewProps({ view: "month" }), { hidden: K.value.view !== "month" }), [u("div", h(K.value.getViewControlProps({ view: "month" }), { class: "glim-date-head" }), [
72
+ u("button", h(K.value.getPrevTriggerProps({ view: "month" }), { class: "glim-date-step" }), [d(S(r))], 16),
73
+ u("button", h(K.value.getViewTriggerProps({ view: "month" }), { class: "glim-date-title" }), x(K.value.visibleRange.start.year), 17),
74
+ u("button", h(K.value.getNextTriggerProps({ view: "month" }), { class: "glim-date-step" }), [d(S(t))], 16)
75
+ ], 16), u("table", h(K.value.getTableProps({
76
+ view: "month",
77
+ columns: 4
78
+ }), { class: "glim-date-grid" }), [u("tbody", _(p(K.value.getTableBodyProps({ view: "month" }))), [(v(!0), l(a, null, b(Y.value, (e, t) => (v(), l("tr", h({ key: t }, { ref_for: !0 }, K.value.getTableRowProps()), [(v(!0), l(a, null, b(e, (e, t) => (v(), l("td", h({ key: t }, { ref_for: !0 }, K.value.getMonthTableCellProps({
79
+ ...e,
80
+ columns: 4
81
+ })), [u("div", h({ ref_for: !0 }, K.value.getMonthTableCellTriggerProps({
82
+ ...e,
83
+ columns: 4
84
+ }), { class: "glim-date-cell glim-date-cell--wide" }), x(e.label), 17)], 16))), 128))], 16))), 128))], 16)], 16)], 16, I),
85
+ u("div", h(K.value.getViewProps({ view: "year" }), { hidden: K.value.view !== "year" }), [u("div", h(K.value.getViewControlProps({ view: "year" }), { class: "glim-date-head" }), [
86
+ u("button", h(K.value.getPrevTriggerProps({ view: "year" }), { class: "glim-date-step" }), [d(S(r))], 16),
87
+ u("span", R, x(`${K.value.getDecade().start} - ${K.value.getDecade().end}`), 1),
88
+ u("button", h(K.value.getNextTriggerProps({ view: "year" }), { class: "glim-date-step" }), [d(S(t))], 16)
89
+ ], 16), u("table", h(K.value.getTableProps({
90
+ view: "year",
91
+ columns: 4
92
+ }), { class: "glim-date-grid" }), [u("tbody", _(p(K.value.getTableBodyProps({ view: "year" }))), [(v(!0), l(a, null, b(X.value, (e, t) => (v(), l("tr", h({ key: t }, { ref_for: !0 }, K.value.getTableRowProps({ view: "year" })), [(v(!0), l(a, null, b(e, (e, t) => (v(), l("td", h({ key: t }, { ref_for: !0 }, K.value.getYearTableCellProps({
93
+ ...e,
94
+ columns: 4
95
+ })), [u("div", h({ ref_for: !0 }, K.value.getYearTableCellTriggerProps({
96
+ ...e,
97
+ columns: 4
98
+ }), { class: "glim-date-cell glim-date-cell--wide glim-num" }), x(e.label), 17)], 16))), 128))], 16))), 128))], 16)], 16)], 16, L)
99
+ ], 16)], 16)], 8, ["to"]))
100
+ ], 16));
101
+ }
102
+ });
103
+ export { z as DatePicker };
@@ -0,0 +1,24 @@
1
+ import { type DatePickerText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ label?: string;
4
+ /** The first and the last day it offers, as "2026-11-14". */
5
+ min?: string;
6
+ max?: string;
7
+ /** The language the calendar is drawn in; the page's by default. */
8
+ locale?: string;
9
+ disabled?: boolean;
10
+ text?: Partial<DatePickerText>;
11
+ };
12
+ type __VLS_ModelProps = {
13
+ modelValue: string | null;
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | null) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ /** Whether the panel is mounted. The caller owns the trigger; only the panel is shared. */
3
+ open: boolean;
4
+ /** The trigger, which anchors the panel and is exempt from the outside press,
5
+ * so a press on it does not close and reopen the list. */
6
+ triggerRef: HTMLElement | null;
7
+ /** Accessible name for the listbox, normally the label the trigger carries. */
8
+ label: string;
9
+ /** `aria-multiselectable`, for a checkbox multi-select list. */
10
+ multiselectable?: boolean;
11
+ };
12
+ declare const __VLS_template: () => {
13
+ __VLS_Slots: {
14
+ default?: (props: {}) => any;
15
+ };
16
+ };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ close: () => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onClose?: (() => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,67 @@
1
+ import { t as e } from "./IconButton-D5YOChZI.js";
2
+ import { _ as t, a as n } from "./glyphs-DEch1yYd.js";
3
+ import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeModels as d, mergeProps as f, normalizeProps as p, openBlock as m, renderList as h, toDisplayString as g, unref as _, useId as v, useModel as y } from "vue";
4
+ import { FILE_UPLOAD_TEXT as b, formatFileSize as x, pageDir as S } from "@glimstone/core";
5
+ import { normalizeProps as C, useMachine as w } from "@zag-js/vue";
6
+ import * as T from "@zag-js/file-upload";
7
+ // src/FileUpload.vue?vue&type=script&setup=true&lang.ts
8
+ var E = { class: "glim-upload-words" }, D = /* @__PURE__ */ l({
9
+ __name: "FileUpload",
10
+ props: /*@__PURE__*/ d({
11
+ label: {},
12
+ accept: {},
13
+ maxFiles: { default: 1 },
14
+ maxFileSize: {},
15
+ disabled: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ text: {}
20
+ }, {
21
+ modelValue: { required: !0 },
22
+ modelModifiers: {}
23
+ }),
24
+ emits: ["update:modelValue"],
25
+ setup(l) {
26
+ let d = l, D = y(l, "modelValue"), O = i(() => ({
27
+ ...b,
28
+ ...d.text
29
+ })), k = v(), A = w(T.machine, i(() => ({
30
+ id: k,
31
+ dir: S(),
32
+ acceptedFiles: D.value,
33
+ accept: d.accept,
34
+ maxFiles: d.maxFiles,
35
+ maxFileSize: d.maxFileSize,
36
+ disabled: d.disabled,
37
+ onFileChange: (e) => D.value = e.acceptedFiles,
38
+ translations: {
39
+ dropzone: O.value.drop,
40
+ deleteFile: (e) => O.value.remove(e.name)
41
+ }
42
+ }))), j = i(() => T.connect(A, C));
43
+ return (i, d) => (m(), o("div", f({ "data-glim": "FileUpload" }, j.value.getRootProps(), { class: "glim-upload" }), [
44
+ s("label", f(j.value.getLabelProps(), { class: "glim-field-label" }), g(l.label), 17),
45
+ s("div", f(j.value.getDropzoneProps(), { class: "glim-upload-drop" }), [c(_(t)), s("span", E, g(O.value.drop), 1)], 16),
46
+ s("input", p(u(j.value.getHiddenInputProps())), null, 16),
47
+ j.value.acceptedFiles.length > 0 ? (m(), o("ul", f({ key: 0 }, j.value.getItemGroupProps(), { class: "glim-upload-files" }), [(m(!0), o(r, null, h(j.value.acceptedFiles, (t) => (m(), o("li", f({ key: `${t.name}-${t.size}` }, { ref_for: !0 }, j.value.getItemProps({ file: t }), { class: "glim-upload-file" }), [
48
+ s("span", f({ ref_for: !0 }, j.value.getItemNameProps({ file: t }), { class: "glim-upload-name" }), g(t.name), 17),
49
+ s("span", f({ ref_for: !0 }, j.value.getItemSizeTextProps({ file: t }), { class: "glim-upload-size glim-num" }), g(_(x)(t.size)), 17),
50
+ c(e, {
51
+ tip: O.value.remove(t.name),
52
+ glyph: _(n),
53
+ onClick: (e) => j.value.deleteFile(t)
54
+ }, null, 8, [
55
+ "tip",
56
+ "glyph",
57
+ "onClick"
58
+ ])
59
+ ], 16))), 128))], 16)) : a("", !0),
60
+ (m(!0), o(r, null, h(j.value.rejectedFiles, ({ file: e, errors: t }) => (m(), o("p", {
61
+ key: `${e.name}-${e.size}`,
62
+ class: "glim-field-error"
63
+ }, g(O.value.refused(e.name, t[0])), 1))), 128))
64
+ ], 16));
65
+ }
66
+ });
67
+ export { D as FileUpload };
@@ -0,0 +1,25 @@
1
+ import { type FileUploadText } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ label: string;
4
+ /** The kinds of file it takes, as media types such as "image/*" or "application/json". */
5
+ accept?: string[];
6
+ maxFiles?: number;
7
+ /** The largest file it takes, in bytes. */
8
+ maxFileSize?: number;
9
+ disabled?: boolean;
10
+ text?: Partial<FileUploadText>;
11
+ };
12
+ type __VLS_ModelProps = {
13
+ modelValue: File[];
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: File[]) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ maxFiles: number;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,85 @@
1
+ import { t as e } from "./Badge-BhK0gMse.js";
2
+ import { t } from "./Button-BM5Dzboj.js";
3
+ import { a as n, b as r, v as i, y as a } from "./glyphs-DEch1yYd.js";
4
+ import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, openBlock as v, renderList as y, renderSlot as b, toDisplayString as x, unref as S, useId as C, useModel as w, withCtx as T } from "vue";
5
+ import { FLOATING_PANEL_TEXT as E, pageDir as D, portalTarget as O } from "@glimstone/core";
6
+ import { normalizeProps as k, useMachine as A } from "@zag-js/vue";
7
+ import * as j from "@zag-js/floating-panel";
8
+ // src/FloatingPanel.vue?vue&type=script&setup=true&lang.ts
9
+ var M = {
10
+ "data-glim": "FloatingPanel",
11
+ class: "glim-fpanel-layer"
12
+ }, N = { class: "glim-fpanel-foot" }, P = /* @__PURE__ */ h({
13
+ __name: "FloatingPanel",
14
+ props: /*@__PURE__*/ g({
15
+ title: {},
16
+ defaultSize: { default: () => ({
17
+ width: 360,
18
+ height: 280
19
+ }) },
20
+ resizable: {
21
+ type: Boolean,
22
+ default: !0
23
+ },
24
+ text: {}
25
+ }, {
26
+ open: {
27
+ type: Boolean,
28
+ required: !0
29
+ },
30
+ openModifiers: {}
31
+ }),
32
+ emits: ["update:open"],
33
+ setup(h) {
34
+ let g = h, P = w(h, "open"), F = [
35
+ "n",
36
+ "e",
37
+ "s",
38
+ "w",
39
+ "ne",
40
+ "se",
41
+ "sw",
42
+ "nw"
43
+ ], I = c(() => ({
44
+ ...E,
45
+ ...g.text
46
+ })), L = C(), R = A(j.machine, c(() => ({
47
+ id: L,
48
+ dir: D(),
49
+ open: P.value,
50
+ defaultSize: g.defaultSize,
51
+ resizable: g.resizable,
52
+ strategy: "fixed",
53
+ closeOnEscape: !0,
54
+ onOpenChange: (e) => P.value = e.open,
55
+ translations: {
56
+ minimize: I.value.minimize,
57
+ maximize: I.value.maximize,
58
+ restore: I.value.restore
59
+ }
60
+ }))), z = c(() => j.connect(R, k));
61
+ return (c, g) => (v(), l(s, { to: S(O)() }, [f("div", M, [f("div", _(z.value.getPositionerProps(), { class: "glim-fpanel-positioner" }), [f("div", _(z.value.getContentProps(), { class: "glim-fpanel" }), [
62
+ f("div", _(z.value.getDragTriggerProps(), { class: "glim-fpanel-drag" }), [f("div", _(z.value.getHeaderProps(), { class: "glim-fpanel-head" }), [f("h2", _(z.value.getTitleProps(), { class: "glim-panel-heading" }), [m(e, {
63
+ tone: "heading",
64
+ size: "heading",
65
+ wrap: ""
66
+ }, {
67
+ default: T(() => [p(x(h.title), 1)]),
68
+ _: 1
69
+ })], 16), f("div", _(z.value.getControlProps(), { class: "glim-fpanel-control" }), [
70
+ f("button", _(z.value.getStageTriggerProps({ stage: "minimized" }), { class: "glim-btn-bare glim-icon-btn" }), [m(S(a))], 16),
71
+ f("button", _(z.value.getStageTriggerProps({ stage: "maximized" }), { class: "glim-btn-bare glim-icon-btn" }), [m(S(i))], 16),
72
+ f("button", _(z.value.getStageTriggerProps({ stage: "default" }), { class: "glim-btn-bare glim-icon-btn" }), [m(S(r))], 16)
73
+ ], 16)], 16)], 16),
74
+ f("div", _(z.value.getBodyProps(), { class: "glim-fpanel-body" }), [b(c.$slots, "default")], 16),
75
+ f("div", N, [m(t, {
76
+ label: I.value.close,
77
+ "label-key": null,
78
+ glyph: S(n),
79
+ onClick: g[0] ||= (e) => z.value.setOpen(!1)
80
+ }, null, 8, ["label", "glyph"])]),
81
+ h.resizable ? (v(), d(o, { key: 0 }, y(F, (e) => f("div", _({ key: e }, { ref_for: !0 }, z.value.getResizeTriggerProps({ axis: e }), { class: "glim-fpanel-edge" }), null, 16)), 64)) : u("", !0)
82
+ ], 16)], 16)])], 8, ["to"]));
83
+ }
84
+ });
85
+ export { P as FloatingPanel };
@@ -0,0 +1,34 @@
1
+ import { type FloatingPanelText, type PanelSize } from "@glimstone/core";
2
+ type __VLS_Props = {
3
+ title: string;
4
+ /** The size it opens at. */
5
+ defaultSize?: PanelSize;
6
+ resizable?: boolean;
7
+ text?: Partial<FloatingPanelText>;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ "open": boolean;
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare const __VLS_template: () => {
14
+ __VLS_Slots: {
15
+ default?: (props: {}) => any;
16
+ };
17
+ };
18
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ "update:open": (value: boolean) => any;
21
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
23
+ }>, {
24
+ defaultSize: PanelSize;
25
+ resizable: boolean;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -21,9 +21,9 @@ type __VLS_Props = {
21
21
  onRemove?: (id: string) => Promise<FortressAnswer>;
22
22
  /** `password` is set where `phrasePassword` asks for it first. Without it there is no Show phrase. */
23
23
  onShowPhrase?: (password?: string) => Promise<PhraseAnswer>;
24
- /** Offered right after a removal and beside `removed`, since the old phrase still lets a removed instance back in. */
24
+ /** Offered right after a removal and beside `removed`, since until the phrase changes the fortress takes no new app. */
25
25
  onChangePhrase?: () => Promise<ChangeAnswer>;
26
- /** The instances removed since the phrase last changed, by name ("Bravo on Atlas"). While there are any, a line says the way back is still open. */
26
+ /** The instances removed since the phrase last changed, by name ("Bravo on Atlas"). While there are any, a line says that no new app can join. */
27
27
  removed?: string[];
28
28
  /** Another member removed this app, so the empty place says so until it joins again. */
29
29
  removedHere?: boolean;
@@ -0,0 +1,42 @@
1
+ import { t as e } from "./selectParts-0e1ib8BL.js";
2
+ import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, unref as m, useId as h } from "vue";
3
+ import { pageDir as g, portalTarget as _ } from "@glimstone/core";
4
+ import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
5
+ import * as b from "@zag-js/hover-card";
6
+ // src/HoverCard.vue?vue&type=script&setup=true&lang.ts
7
+ var x = ["href"], S = /* @__PURE__ */ c({
8
+ __name: "HoverCard",
9
+ props: {
10
+ label: {},
11
+ href: {},
12
+ openDelay: { default: 600 },
13
+ closeDelay: { default: 300 }
14
+ },
15
+ setup(c) {
16
+ let S = c, C = h(), w = y(b.machine, r(() => ({
17
+ id: C,
18
+ dir: g(),
19
+ openDelay: S.openDelay,
20
+ closeDelay: S.closeDelay,
21
+ positioning: {
22
+ placement: "bottom",
23
+ gutter: 8
24
+ }
25
+ }))), T = r(() => b.connect(w, v)), E = d(null), D = e(() => T.value.open, E);
26
+ return (e, r) => (u(), o(t, null, [s("a", l({
27
+ ref_key: "triggerRef",
28
+ ref: E,
29
+ "data-glim": "HoverCard"
30
+ }, T.value.getTriggerProps(), {
31
+ href: c.href,
32
+ class: "glim-hovercard-link"
33
+ }), p(c.label), 17, x), T.value.open ? (u(), i(n, {
34
+ key: 0,
35
+ to: m(_)()
36
+ }, [s("div", l(T.value.getPositionerProps(), {
37
+ style: m(D).style.value,
38
+ class: ["glim-hovercard-positioner", m(D).className.value]
39
+ }), [s("div", l(T.value.getContentProps(), { class: "glim-hovercard" }), [f(e.$slots, "content")], 16)], 16)], 8, ["to"])) : a("", !0)], 64));
40
+ }
41
+ });
42
+ export { S as HoverCard };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ /** The link's words. */
3
+ label: string;
4
+ href: string;
5
+ /** How long the pointer rests before the card opens, and after it leaves before it closes, in ms. */
6
+ openDelay?: number;
7
+ closeDelay?: number;
8
+ };
9
+ type __VLS_Slots = {
10
+ content(): unknown;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ openDelay: number;
14
+ closeDelay: number;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,48 @@
1
+ import { t as e } from "./IconTipButton-BLtrZfgN.js";
2
+ import { createBlock as t, createElementBlock as n, defineComponent as r, openBlock as i, resolveDynamicComponent as a, withCtx as o } from "vue";
3
+ import { takePageHue as s } from "@glimstone/core";
4
+ // src/IconButton.vue?vue&type=script&setup=true&lang.ts
5
+ var c = {
6
+ key: 0,
7
+ "data-glim": "IconButton",
8
+ class: "glim-icon-btn-gap",
9
+ "aria-hidden": "true"
10
+ }, l = /* @__PURE__ */ r({
11
+ __name: "IconButton",
12
+ props: {
13
+ tip: {},
14
+ glyph: {},
15
+ href: {},
16
+ pressed: {
17
+ type: Boolean,
18
+ default: void 0
19
+ },
20
+ absent: { type: Boolean },
21
+ disabled: { type: Boolean }
22
+ },
23
+ setup(r) {
24
+ function l(e) {
25
+ s(e.currentTarget);
26
+ }
27
+ return (s, u) => r.absent ? (i(), n("span", c)) : (i(), t(e, {
28
+ key: 1,
29
+ "data-glim": "IconButton",
30
+ tip: r.tip,
31
+ href: r.href,
32
+ "aria-pressed": r.pressed,
33
+ disabled: r.disabled,
34
+ class: "glim-btn-bare glim-icon-btn",
35
+ onPointerenter: l,
36
+ onFocusin: l
37
+ }, {
38
+ default: o(() => [(i(), t(a(r.glyph)))]),
39
+ _: 1
40
+ }, 8, [
41
+ "tip",
42
+ "href",
43
+ "aria-pressed",
44
+ "disabled"
45
+ ]));
46
+ }
47
+ });
48
+ export { l as t };