@glimstone/vue 4.0.0 → 4.1.1
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/Button.vue.d.ts +23 -2
- package/dist/Card.vue.d.ts +2 -0
- package/dist/Checkbox.vue.d.ts +24 -0
- package/dist/ColorPicker.vue.d.ts +30 -0
- package/dist/Combobox.js +32 -31
- package/dist/Combobox.vue.d.ts +1 -1
- package/dist/ContextMenu.vue.d.ts +29 -0
- package/dist/CopyField.vue.d.ts +24 -0
- package/dist/FieldRow.vue.d.ts +32 -0
- package/dist/FieldRowGroup.vue.d.ts +19 -0
- package/dist/GlyphField.vue.d.ts +35 -0
- package/dist/GlyphTile.vue.d.ts +13 -0
- package/dist/IconButton.vue.d.ts +18 -0
- package/dist/IconTipButton.vue.d.ts +2 -0
- package/dist/Kbd.vue.d.ts +15 -0
- package/dist/ListRow.vue.d.ts +26 -0
- package/dist/ListSelect.vue.d.ts +4 -1
- package/dist/MenuBar.vue.d.ts +13 -0
- package/dist/MenuChoice.vue.d.ts +2 -1
- package/dist/MenuRows.vue.d.ts +12 -0
- package/dist/MenuSelect.vue.d.ts +4 -1
- package/dist/MenuSubmenu.vue.d.ts +2 -1
- package/dist/Meter.vue.d.ts +23 -0
- package/dist/PasswordField.vue.d.ts +31 -0
- package/dist/PathField.vue.d.ts +40 -0
- package/dist/Pill.vue.d.ts +23 -0
- package/dist/ProgressBar.vue.d.ts +19 -0
- package/dist/RowMark.vue.d.ts +6 -0
- package/dist/Select.js +241 -218
- package/dist/Select.vue.d.ts +10 -4
- package/dist/Selector.vue.d.ts +48 -50
- package/dist/SelectorSegment.vue.d.ts +1 -1
- package/dist/SidebarRow.vue.d.ts +19 -2
- package/dist/SidebarRowLink.vue.d.ts +17 -0
- package/dist/Slider.js +19 -18
- package/dist/Slider.vue.d.ts +1 -1
- package/dist/SubCard.vue.d.ts +1 -1
- package/dist/Table.vue.d.ts +32 -0
- package/dist/TextArea.vue.d.ts +21 -0
- package/dist/TextField.vue.d.ts +21 -0
- package/dist/ToastViewport.vue.d.ts +2 -1
- package/dist/Toggle.vue.d.ts +2 -1
- package/dist/Tree.vue.d.ts +23 -0
- package/dist/Window.vue.d.ts +46 -0
- package/dist/fieldName-DBygJJfe.js +8 -0
- package/dist/fieldName.d.ts +5 -0
- package/dist/{glyphs-CvCRgBMU.js → glyphs-CYhs4mrY.js} +2 -2
- package/dist/glyphs.d.ts +5 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +1734 -459
- package/dist/selectorItem.d.ts +5 -3
- package/dist/windowParts.d.ts +27 -0
- package/package.json +2 -2
package/dist/Button.vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Component } from "vue";
|
|
2
|
-
import { type ButtonTone, type ButtonVariant, type WidthStage } from "@glimstone/core";
|
|
2
|
+
import { type ButtonSize, type ButtonTone, type ButtonVariant, type WidthStage } from "@glimstone/core";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/** The button's words, present in every mode: visible, or hidden but
|
|
5
5
|
* announced and shown as the tooltip. Keep it stable; put changing state
|
|
@@ -15,6 +15,8 @@ type __VLS_Props = {
|
|
|
15
15
|
/** "chip" inside a pill, "icon" for a row action; see ButtonVariant. */
|
|
16
16
|
variant?: ButtonVariant;
|
|
17
17
|
disabled?: boolean;
|
|
18
|
+
/** Makes it a link with the button's look. A disabled one stays a disabled button. */
|
|
19
|
+
href?: string;
|
|
18
20
|
type?: "button" | "submit";
|
|
19
21
|
/** Extra explanation, and the place for anything that changes. It shows
|
|
20
22
|
* in the hover and focus bubble, joined with the label where the label
|
|
@@ -28,8 +30,21 @@ type __VLS_Props = {
|
|
|
28
30
|
stage?: WidthStage;
|
|
29
31
|
/** Keeps the label visible in every mode, for a label that is content rather than a verb. */
|
|
30
32
|
keepLabel?: boolean;
|
|
33
|
+
/** Its glyph alone in a square in every label mode, where the words have no room. The label stays the name and the bubble. */
|
|
34
|
+
compact?: boolean;
|
|
35
|
+
/** Turns compact while the window is narrower than this many pixels. */
|
|
36
|
+
compactBelow?: number;
|
|
37
|
+
size?: ButtonSize;
|
|
31
38
|
};
|
|
32
|
-
declare const
|
|
39
|
+
declare const __VLS_template: () => {
|
|
40
|
+
__VLS_Slots: {
|
|
41
|
+
before?: (props: {}) => any;
|
|
42
|
+
} & {
|
|
43
|
+
after?: (props: {}) => any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
47
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
33
48
|
el: import("vue").ShallowRef<HTMLButtonElement | null, HTMLButtonElement | null>;
|
|
34
49
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
50
|
disabled: boolean;
|
|
@@ -39,5 +54,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
39
54
|
busy: boolean;
|
|
40
55
|
keepLabel: boolean;
|
|
41
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
58
|
declare const _default: typeof __VLS_export;
|
|
43
59
|
export default _default;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
package/dist/Card.vue.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Always the accessible name; shown beside the box unless hideLabel. */
|
|
3
|
+
label: string;
|
|
4
|
+
/** For a grid whose row and column headings already say it, such as permissions. */
|
|
5
|
+
hideLabel?: boolean;
|
|
6
|
+
/** The box alone, without the frame and its hover ground, for a row or a cell of a dense list. Hides the label. */
|
|
7
|
+
slim?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
hideLabel: boolean;
|
|
21
|
+
slim: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ColorName, type ColorPickerPanelText } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The control that opened the picker. With it the picker floats beside it
|
|
4
|
+
* and closes on Escape, on a click beside it and after Apply. */
|
|
5
|
+
anchor?: HTMLElement | null;
|
|
6
|
+
/** The names a colour is matched against, nearest in OKLab. `false` shows none. */
|
|
7
|
+
names?: readonly ColorName[] | false;
|
|
8
|
+
/** The words, read when the picker opens. */
|
|
9
|
+
text?: Partial<ColorPickerPanelText>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
input: (hex: string) => any;
|
|
17
|
+
close: () => any;
|
|
18
|
+
"update:modelValue": (value: string) => any;
|
|
19
|
+
apply: (hex: string, name: string | null) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onInput?: ((hex: string) => any) | undefined;
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
onApply?: ((hex: string, name: string | null) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
anchor: HTMLElement | null;
|
|
27
|
+
names: false | readonly ColorName[];
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
package/dist/Combobox.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { r as e } from "./fieldName-DBygJJfe.js";
|
|
2
|
+
import { a as t, n } from "./glyphs-CYhs4mrY.js";
|
|
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
|
+
import { normalizeProps as S, useMachine as C } from "@zag-js/vue";
|
|
5
|
+
import * as w from "@zag-js/combobox";
|
|
5
6
|
// src/Combobox.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var T = ["aria-label"], E = ["data-state"], D = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "glim-select-empty"
|
|
9
|
-
},
|
|
10
|
+
}, O = /* @__PURE__ */ d({
|
|
10
11
|
__name: "Combobox",
|
|
11
|
-
props: /*@__PURE__*/
|
|
12
|
+
props: /*@__PURE__*/ f({
|
|
12
13
|
label: {},
|
|
13
14
|
hideLabel: {
|
|
14
15
|
type: Boolean,
|
|
@@ -27,44 +28,44 @@ var w = ["aria-label"], T = ["data-state"], E = {
|
|
|
27
28
|
modelModifiers: {}
|
|
28
29
|
}),
|
|
29
30
|
emits: ["update:modelValue"],
|
|
30
|
-
setup(
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
let
|
|
34
|
-
items:
|
|
31
|
+
setup(d) {
|
|
32
|
+
let f = d, O = b(d, "modelValue"), k = e(() => f.label), A = y(), j = g(f.options);
|
|
33
|
+
x(() => f.options, (e) => j.value = e);
|
|
34
|
+
let M = a(() => w.collection({
|
|
35
|
+
items: j.value,
|
|
35
36
|
itemToValue: (e) => e.value,
|
|
36
37
|
itemToString: (e) => e.label,
|
|
37
38
|
isItemDisabled: (e) => !!e.disabled
|
|
38
|
-
})),
|
|
39
|
-
id:
|
|
40
|
-
collection:
|
|
41
|
-
value:
|
|
42
|
-
placeholder:
|
|
43
|
-
disabled:
|
|
39
|
+
})), N = C(w.machine, a(() => ({
|
|
40
|
+
id: A,
|
|
41
|
+
collection: M.value,
|
|
42
|
+
value: O.value ? [O.value] : [],
|
|
43
|
+
placeholder: f.placeholder,
|
|
44
|
+
disabled: f.disabled,
|
|
44
45
|
positioning: {
|
|
45
46
|
sameWidth: !0,
|
|
46
47
|
gutter: 6
|
|
47
48
|
},
|
|
48
49
|
onOpenChange: ({ open: e }) => {
|
|
49
|
-
e || (
|
|
50
|
+
e || (j.value = f.options);
|
|
50
51
|
},
|
|
51
52
|
onInputValueChange: ({ inputValue: e }) => {
|
|
52
53
|
let t = e.toLocaleLowerCase();
|
|
53
|
-
|
|
54
|
+
j.value = f.options.filter((e) => e.label.toLocaleLowerCase().includes(t));
|
|
54
55
|
},
|
|
55
|
-
onValueChange: (e) =>
|
|
56
|
-
}))),
|
|
57
|
-
return (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"aria-label":
|
|
56
|
+
onValueChange: (e) => O.value = e.value[0] ?? ""
|
|
57
|
+
}))), P = a(() => w.connect(N, S));
|
|
58
|
+
return (e, a) => (m(), c("div", p(P.value.getRootProps(), { class: "glim-combobox" }), [
|
|
59
|
+
l("label", p(P.value.getLabelProps(), { class: d.hideLabel || d.label === void 0 ? "glim-sr-only" : "glim-field-label" }), _(v(k)), 17),
|
|
60
|
+
l("div", p(P.value.getControlProps(), { class: "glim-combobox-control" }), [l("input", p(P.value.getInputProps(), { class: "glim-combobox-input" }), null, 16), l("button", p(P.value.getTriggerProps(), {
|
|
61
|
+
"aria-label": d.toggleLabel,
|
|
61
62
|
class: "glim-combobox-toggle"
|
|
62
|
-
}), [
|
|
63
|
+
}), [l("span", {
|
|
63
64
|
class: "glim-select-indicator",
|
|
64
|
-
"data-state":
|
|
65
|
-
}, [
|
|
66
|
-
(
|
|
65
|
+
"data-state": P.value.open ? "open" : "closed"
|
|
66
|
+
}, [u(v(t))], 8, E)], 16, T)], 16),
|
|
67
|
+
(m(), o(i, { to: "body" }, [l("div", p(P.value.getPositionerProps(), { class: "glim-select-positioner" }), [l("ul", p(P.value.getContentProps(), { class: "glim-select-content" }), [j.value.length === 0 ? (m(), c("li", D, _(d.empty), 1)) : s("", !0), (m(!0), c(r, null, h(j.value, (e) => (m(), c("li", p({ key: e.value }, { ref_for: !0 }, P.value.getItemProps({ item: e }), { class: "glim-select-item" }), [l("span", p({ ref_for: !0 }, P.value.getItemTextProps({ item: e })), _(e.label), 17), l("span", p({ ref_for: !0 }, P.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [u(v(n))], 16)], 16))), 128))], 16)], 16)]))
|
|
67
68
|
], 16));
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
|
-
export {
|
|
71
|
+
export { O as Combobox };
|
package/dist/Combobox.vue.d.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { MenuEntry } from "./windowParts";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The point the menu hangs from, in viewport pixels, such as the pointer's. */
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
items: MenuEntry[];
|
|
7
|
+
/** Stand the menu on the point instead, for a menu opened from a bar at the bottom. */
|
|
8
|
+
above?: boolean;
|
|
9
|
+
/** The menu's accessible name. */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** The menu element's id, for a caller or a script that looks for it. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** The control that opened the menu. A click on it is not a click outside,
|
|
14
|
+
* and focus goes back to it; without one, focus goes back to wherever it was. */
|
|
15
|
+
opener?: HTMLElement | null;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
close: () => any;
|
|
19
|
+
step: (direction: 1 | -1) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
|
+
onStep?: ((direction: 1 | -1) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
label: string;
|
|
25
|
+
above: boolean;
|
|
26
|
+
opener: HTMLElement | null;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FieldWidth } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: string;
|
|
4
|
+
/** The field's accessible name, such as "Token". Inside a FieldRow the row gives it. */
|
|
5
|
+
label?: string;
|
|
6
|
+
width?: FieldWidth;
|
|
7
|
+
/** The button's words, before and for a moment after it copied. */
|
|
8
|
+
text?: {
|
|
9
|
+
copy: string;
|
|
10
|
+
copied: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
copy: (done: boolean) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onCopy?: ((done: boolean) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
text: {
|
|
19
|
+
copy: string;
|
|
20
|
+
copied: string;
|
|
21
|
+
};
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type PillTone } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The row's name, and the accessible name of the control in it. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** What the row does, drawn as an "(i)" beside the name. */
|
|
6
|
+
hint?: string;
|
|
7
|
+
/** A row with only a value to show holds it as a pill. */
|
|
8
|
+
value?: string | number;
|
|
9
|
+
/** The pill's tone. */
|
|
10
|
+
tone?: PillTone;
|
|
11
|
+
/** In a FieldRowGroup with columns, spans all of them. */
|
|
12
|
+
wide?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_template: () => {
|
|
15
|
+
__VLS_Slots: {
|
|
16
|
+
label?: (props: {}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: {}) => any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Rows side by side, each column lining up its own names. A `wide` row spans them all. */
|
|
3
|
+
columns?: 1 | 2;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_template: () => {
|
|
6
|
+
__VLS_Slots: {
|
|
7
|
+
default?: (props: {}) => any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Component } from "vue";
|
|
2
|
+
import { type FieldWidth } from "@glimstone/core";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
glyph: Component;
|
|
5
|
+
/** The accessible name. Inside a FieldRow the row gives it. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Sets a path or a token in monospace. */
|
|
8
|
+
mono?: boolean;
|
|
9
|
+
width?: FieldWidth;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue?: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare const __VLS_template: () => {
|
|
16
|
+
__VLS_Slots: {
|
|
17
|
+
after?: (props: {}) => any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
22
|
+
input: import("vue").ShallowRef<HTMLInputElement | null, HTMLInputElement | null>;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: string) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
glyph: Component;
|
|
4
|
+
/** Takes the accent off the glyph, such as for a file among folders. */
|
|
5
|
+
quiet?: boolean;
|
|
6
|
+
/** Sets it on the third surface, for a place where a bare glyph gets lost. */
|
|
7
|
+
ground?: boolean;
|
|
8
|
+
/** Fills it with the accent, as a row around it being reached does. */
|
|
9
|
+
active?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The hover and focus explanation, and the button's accessible name. */
|
|
4
|
+
tip: string;
|
|
5
|
+
glyph: Component;
|
|
6
|
+
/** Makes it a link in the same square. */
|
|
7
|
+
href?: string;
|
|
8
|
+
/** Set for a button that stays on or off: it says so, and the accent washes it while it is on. */
|
|
9
|
+
pressed?: boolean;
|
|
10
|
+
/** Draws no button and keeps its square, so the others of a row stay where they are. */
|
|
11
|
+
absent?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
pressed: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -2,6 +2,8 @@ type __VLS_Props = {
|
|
|
2
2
|
/** The hover and focus explanation, and the button's `aria-label`. */
|
|
3
3
|
tip: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
/** Makes it a link. A disabled one stays a disabled button. */
|
|
6
|
+
href?: string;
|
|
5
7
|
type?: "button" | "submit";
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_template: () => {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
/** More about the row, drawn as an "(i)" beside the name. */
|
|
4
|
+
tip?: string | null;
|
|
5
|
+
/** Sets the name in monospace, for a path. */
|
|
6
|
+
mono?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_template: () => {
|
|
9
|
+
__VLS_Slots: {
|
|
10
|
+
tile?: (props: {}) => any;
|
|
11
|
+
} & {
|
|
12
|
+
badges?: (props: {}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
actions?: (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, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
package/dist/ListSelect.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SelectWidth } from "@glimstone/core";
|
|
1
|
+
import { type SelectRows, type SelectWidth } from "@glimstone/core";
|
|
2
2
|
import { type SelectGroup } from "./selectParts";
|
|
3
3
|
declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -8,8 +8,11 @@ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<
|
|
|
8
8
|
value: T | null;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
width: SelectWidth;
|
|
11
|
+
rows: SelectRows;
|
|
11
12
|
triggerClass: string;
|
|
12
13
|
id?: string;
|
|
14
|
+
triggerAttrs?: Record<string, string>;
|
|
15
|
+
listId?: string;
|
|
13
16
|
disabled?: boolean;
|
|
14
17
|
busy?: boolean;
|
|
15
18
|
tip?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MenuBarMenu } from "./windowParts";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The bar's accessible name, such as "Menu". */
|
|
4
|
+
label: string;
|
|
5
|
+
menus: MenuBarMenu[];
|
|
6
|
+
};
|
|
7
|
+
/** Opens a menu by its index and puts the focus on its first row. */
|
|
8
|
+
declare function show(at: number): void;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
10
|
+
open: typeof show;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
package/dist/MenuChoice.vue.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type * as menu from "@zag-js/menu";
|
|
2
|
+
import type { SelectRowParts } from "@glimstone/core";
|
|
2
3
|
import type { SelectOption } from "./selectParts";
|
|
3
4
|
declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
6
|
api: menu.Api;
|
|
6
7
|
option: SelectOption<T>;
|
|
7
8
|
value: T | null;
|
|
8
|
-
|
|
9
|
+
parts: SelectRowParts;
|
|
9
10
|
} & {
|
|
10
11
|
onChange?: ((value: T) => any) | undefined;
|
|
11
12
|
}> & (typeof globalThis extends {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MenuEntry } from "./windowParts";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
entries: MenuEntry[];
|
|
4
|
+
openAt?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
pick: (row: number) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onPick?: ((row: number) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
package/dist/MenuSelect.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SelectWidth } from "@glimstone/core";
|
|
1
|
+
import { type SelectRows, type SelectWidth } from "@glimstone/core";
|
|
2
2
|
import { type SelectGroup } from "./selectParts";
|
|
3
3
|
declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -8,8 +8,11 @@ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<
|
|
|
8
8
|
value: T | null;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
width: SelectWidth;
|
|
11
|
+
rows: SelectRows;
|
|
11
12
|
triggerClass: string;
|
|
12
13
|
id?: string;
|
|
14
|
+
triggerAttrs?: Record<string, string>;
|
|
15
|
+
listId?: string;
|
|
13
16
|
disabled?: boolean;
|
|
14
17
|
busy?: boolean;
|
|
15
18
|
tip?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as menu from "@zag-js/menu";
|
|
2
|
+
import { type SelectRowParts } from "@glimstone/core";
|
|
2
3
|
import type { SelectSubmenu } from "./selectParts";
|
|
3
4
|
declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
@@ -7,7 +8,7 @@ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<
|
|
|
7
8
|
triggerId: string;
|
|
8
9
|
entry: SelectSubmenu<T>;
|
|
9
10
|
value: T | null;
|
|
10
|
-
|
|
11
|
+
parts: SelectRowParts;
|
|
11
12
|
hueStyle?: Record<string, string>;
|
|
12
13
|
hueClass: string;
|
|
13
14
|
} & {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type MeterSize } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** From 0 to 1. Without it the meter shows stripes while the level is still being read. */
|
|
4
|
+
value?: number | null;
|
|
5
|
+
/** The accessible name, such as the disk's. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** `small` sits beside a row's name, `medium` is as wide as its column. */
|
|
8
|
+
size?: MeterSize;
|
|
9
|
+
/** From here on the fill is the fault colour. */
|
|
10
|
+
threshold?: number;
|
|
11
|
+
/** Slim and grey, for a footer line or a dense list. Inside a button it takes the accent when the button is reached. */
|
|
12
|
+
quiet?: boolean;
|
|
13
|
+
/** The level in words, such as "120 GB free of 4 TB": read out, and shown in the bubble. */
|
|
14
|
+
valueText?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
size: MeterSize;
|
|
18
|
+
value: number | null;
|
|
19
|
+
quiet: boolean;
|
|
20
|
+
threshold: number;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type FieldWidth } from "@glimstone/core";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
width?: FieldWidth;
|
|
4
|
+
/** Attributes for the eye, such as a data hook. */
|
|
5
|
+
eyeAttrs?: Record<string, string>;
|
|
6
|
+
/** The eye's name and bubble while the secret is hidden, and once it shows. */
|
|
7
|
+
text?: {
|
|
8
|
+
show: string;
|
|
9
|
+
hide: string;
|
|
10
|
+
};
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
18
|
+
input: import("vue").ShallowRef<HTMLInputElement | null, HTMLInputElement | null>;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
text: {
|
|
26
|
+
show: string;
|
|
27
|
+
hide: string;
|
|
28
|
+
};
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|