@glimstone/vue 4.1.0 → 4.1.2

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 (46) hide show
  1. package/dist/Button.vue.d.ts +23 -2
  2. package/dist/Card.vue.d.ts +2 -0
  3. package/dist/Combobox.js +32 -31
  4. package/dist/Combobox.vue.d.ts +1 -1
  5. package/dist/ContextMenu.vue.d.ts +2 -0
  6. package/dist/CopyField.vue.d.ts +4 -2
  7. package/dist/FieldRow.vue.d.ts +32 -0
  8. package/dist/FieldRowGroup.vue.d.ts +19 -0
  9. package/dist/GlyphField.vue.d.ts +35 -0
  10. package/dist/GlyphTile.vue.d.ts +13 -0
  11. package/dist/IconButton.vue.d.ts +18 -0
  12. package/dist/IconTipButton.vue.d.ts +2 -0
  13. package/dist/ListRow.vue.d.ts +26 -0
  14. package/dist/ListSelect.vue.d.ts +4 -1
  15. package/dist/MenuChoice.vue.d.ts +2 -1
  16. package/dist/MenuSelect.vue.d.ts +4 -1
  17. package/dist/MenuSubmenu.vue.d.ts +2 -1
  18. package/dist/Meter.vue.d.ts +1 -1
  19. package/dist/PasswordField.vue.d.ts +7 -1
  20. package/dist/PathField.vue.d.ts +40 -0
  21. package/dist/RowMark.vue.d.ts +6 -0
  22. package/dist/Select.js +241 -218
  23. package/dist/Select.vue.d.ts +10 -4
  24. package/dist/Selector.vue.d.ts +48 -50
  25. package/dist/SelectorSegment.vue.d.ts +1 -1
  26. package/dist/SidebarRow.vue.d.ts +19 -2
  27. package/dist/SidebarRowLink.vue.d.ts +17 -0
  28. package/dist/Slider.js +19 -18
  29. package/dist/Slider.vue.d.ts +1 -1
  30. package/dist/SubCard.vue.d.ts +1 -1
  31. package/dist/Table.vue.d.ts +32 -0
  32. package/dist/TextArea.vue.d.ts +21 -0
  33. package/dist/TextField.vue.d.ts +21 -0
  34. package/dist/ToastViewport.vue.d.ts +2 -1
  35. package/dist/Toggle.vue.d.ts +2 -1
  36. package/dist/Tree.vue.d.ts +23 -0
  37. package/dist/Window.vue.d.ts +5 -1
  38. package/dist/fieldName-DBygJJfe.js +8 -0
  39. package/dist/fieldName.d.ts +5 -0
  40. package/dist/{glyphs-Cgknt-k1.js → glyphs-CYhs4mrY.js} +2 -2
  41. package/dist/glyphs.d.ts +1 -0
  42. package/dist/index.d.ts +15 -2
  43. package/dist/index.js +1238 -657
  44. package/dist/selectorItem.d.ts +5 -3
  45. package/dist/windowParts.d.ts +6 -1
  46. package/package.json +2 -2
@@ -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 __VLS_export: import("vue").DefineComponent<__VLS_Props, {
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
+ };
@@ -10,6 +10,8 @@ type __VLS_Props = {
10
10
  };
11
11
  declare const __VLS_template: () => {
12
12
  __VLS_Slots: {
13
+ title?: (props: {}) => any;
14
+ } & {
13
15
  default?: (props: {}) => any;
14
16
  };
15
17
  };
package/dist/Combobox.js CHANGED
@@ -1,14 +1,15 @@
1
- import { a as e, n as t } from "./glyphs-Cgknt-k1.js";
2
- import { Fragment as n, Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, openBlock as p, renderList as m, shallowRef as h, toDisplayString as g, unref as _, useId as v, useModel as y, watch as b } from "vue";
3
- import { normalizeProps as x, useMachine as S } from "@zag-js/vue";
4
- import * as C from "@zag-js/combobox";
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 w = ["aria-label"], T = ["data-state"], E = {
7
+ var T = ["aria-label"], E = ["data-state"], D = {
7
8
  key: 0,
8
9
  class: "glim-select-empty"
9
- }, D = /* @__PURE__ */ u({
10
+ }, O = /* @__PURE__ */ d({
10
11
  __name: "Combobox",
11
- props: /*@__PURE__*/ d({
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(u) {
31
- let d = u, D = y(u, "modelValue"), O = v(), k = h(d.options);
32
- b(() => d.options, (e) => k.value = e);
33
- let A = i(() => C.collection({
34
- items: k.value,
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
- })), j = S(C.machine, i(() => ({
39
- id: O,
40
- collection: A.value,
41
- value: D.value ? [D.value] : [],
42
- placeholder: d.placeholder,
43
- disabled: d.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 || (k.value = d.options);
50
+ e || (j.value = f.options);
50
51
  },
51
52
  onInputValueChange: ({ inputValue: e }) => {
52
53
  let t = e.toLocaleLowerCase();
53
- k.value = d.options.filter((e) => e.label.toLocaleLowerCase().includes(t));
54
+ j.value = f.options.filter((e) => e.label.toLocaleLowerCase().includes(t));
54
55
  },
55
- onValueChange: (e) => D.value = e.value[0] ?? ""
56
- }))), M = i(() => C.connect(j, x));
57
- return (i, d) => (p(), s("div", f(M.value.getRootProps(), { class: "glim-combobox" }), [
58
- c("label", f(M.value.getLabelProps(), { class: u.hideLabel ? "glim-sr-only" : "glim-field-label" }), g(u.label), 17),
59
- c("div", f(M.value.getControlProps(), { class: "glim-combobox-control" }), [c("input", f(M.value.getInputProps(), { class: "glim-combobox-input" }), null, 16), c("button", f(M.value.getTriggerProps(), {
60
- "aria-label": u.toggleLabel,
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
- }), [c("span", {
63
+ }), [l("span", {
63
64
  class: "glim-select-indicator",
64
- "data-state": M.value.open ? "open" : "closed"
65
- }, [l(_(e))], 8, T)], 16, w)], 16),
66
- (p(), a(r, { to: "body" }, [c("div", f(M.value.getPositionerProps(), { class: "glim-select-positioner" }), [c("ul", f(M.value.getContentProps(), { class: "glim-select-content" }), [k.value.length === 0 ? (p(), s("li", E, g(u.empty), 1)) : o("", !0), (p(!0), s(n, null, m(k.value, (e) => (p(), s("li", f({ key: e.value }, { ref_for: !0 }, M.value.getItemProps({ item: e }), { class: "glim-select-item" }), [c("span", f({ ref_for: !0 }, M.value.getItemTextProps({ item: e })), g(e.label), 17), c("span", f({ ref_for: !0 }, M.value.getItemIndicatorProps({ item: e }), { class: "glim-select-check" }), [l(_(t))], 16)], 16))), 128))], 16)], 16)]))
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 { D as Combobox };
71
+ export { O as Combobox };
@@ -1,6 +1,6 @@
1
1
  import type { SelectOption } from "./selectParts";
2
2
  type __VLS_Props = {
3
- label: string;
3
+ label?: string;
4
4
  hideLabel?: boolean;
5
5
  options: SelectOption[];
6
6
  placeholder?: string;
@@ -8,6 +8,8 @@ type __VLS_Props = {
8
8
  above?: boolean;
9
9
  /** The menu's accessible name. */
10
10
  label?: string;
11
+ /** The menu element's id, for a caller or a script that looks for it. */
12
+ id?: string;
11
13
  /** The control that opened the menu. A click on it is not a click outside,
12
14
  * and focus goes back to it; without one, focus goes back to wherever it was. */
13
15
  opener?: HTMLElement | null;
@@ -1,7 +1,9 @@
1
+ import { type FieldWidth } from "@glimstone/core";
1
2
  type __VLS_Props = {
2
3
  value: string;
3
- /** The field's accessible name, such as "Token". */
4
- label: string;
4
+ /** The field's accessible name, such as "Token". Inside a FieldRow the row gives it. */
5
+ label?: string;
6
+ width?: FieldWidth;
5
7
  /** The button's words, before and for a moment after it copied. */
6
8
  text?: {
7
9
  copy: string;
@@ -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,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
+ };
@@ -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,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
- glyphs: boolean;
9
+ parts: SelectRowParts;
9
10
  } & {
10
11
  onChange?: ((value: T) => any) | undefined;
11
12
  }> & (typeof globalThis extends {
@@ -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
- glyphs: boolean;
11
+ parts: SelectRowParts;
11
12
  hueStyle?: Record<string, string>;
12
13
  hueClass: string;
13
14
  } & {
@@ -16,8 +16,8 @@ type __VLS_Props = {
16
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
17
  size: MeterSize;
18
18
  value: number | null;
19
- threshold: number;
20
19
  quiet: boolean;
20
+ threshold: number;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -1,4 +1,8 @@
1
+ import { type FieldWidth } from "@glimstone/core";
1
2
  type __VLS_Props = {
3
+ width?: FieldWidth;
4
+ /** Attributes for the eye, such as a data hook. */
5
+ eyeAttrs?: Record<string, string>;
2
6
  /** The eye's name and bubble while the secret is hidden, and once it shows. */
3
7
  text?: {
4
8
  show: string;
@@ -10,7 +14,9 @@ type __VLS_ModelProps = {
10
14
  modelValue?: string;
11
15
  };
12
16
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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, {
14
20
  "update:modelValue": (value: string) => any;
15
21
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
22
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -0,0 +1,40 @@
1
+ import { type Component } from "vue";
2
+ import { type FieldWidth } from "@glimstone/core";
3
+ type __VLS_Props = {
4
+ /** Handed the path in the field. Answers with a path, or with nothing when the person left. */
5
+ pick: (current: string) => string | null | undefined | Promise<string | null | undefined>;
6
+ /** The accessible name. Inside a FieldRow the row gives it. */
7
+ label?: string;
8
+ width?: FieldWidth;
9
+ /** The button's words. */
10
+ text?: {
11
+ pick: string;
12
+ };
13
+ /** The button's glyph, an open folder unless set, such as a file for a picker of files. */
14
+ glyph?: Component;
15
+ /** Shows the button's glyph alone, as it does by itself with less than 20rem of room. */
16
+ compact?: boolean;
17
+ /** Attributes for the button, such as a data hook. */
18
+ buttonAttrs?: Record<string, string>;
19
+ disabled?: boolean;
20
+ };
21
+ type __VLS_ModelProps = {
22
+ modelValue?: string;
23
+ };
24
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
25
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
26
+ input: import("vue").ShallowRef<HTMLInputElement | null, HTMLInputElement | null>;
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ "update:modelValue": (value: string) => any;
29
+ picked: (path: string) => any;
30
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
32
+ onPicked?: ((path: string) => any) | undefined;
33
+ }>, {
34
+ disabled: boolean;
35
+ text: {
36
+ pick: string;
37
+ };
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ on?: boolean;
3
+ };
4
+ 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;