@glimstone/vue 4.9.2 → 5.0.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 (84) hide show
  1. package/dist/Accordion-D37jhS5C.js +36 -0
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AngleSlider.js +44 -31
  4. package/dist/AngleSlider.vue.d.ts +1 -1
  5. package/dist/Avatar.js +9 -8
  6. package/dist/Badge-C9DRRspu.js +79 -0
  7. package/dist/Badge.vue.d.ts +2 -5
  8. package/dist/Button-DVUuFYk0.js +224 -0
  9. package/dist/Button.vue.d.ts +1 -1
  10. package/dist/Card.vue.d.ts +2 -0
  11. package/dist/Carousel.js +27 -27
  12. package/dist/Chart.vue.d.ts +22 -0
  13. package/dist/ChartLegend.vue.d.ts +7 -0
  14. package/dist/Collapsible.js +13 -13
  15. package/dist/ColorPicker.vue.d.ts +3 -0
  16. package/dist/Combobox.js +39 -35
  17. package/dist/ContextMenu.vue.d.ts +3 -0
  18. package/dist/DatePicker.js +64 -62
  19. package/dist/FieldErrorLine.vue.d.ts +7 -0
  20. package/dist/FileUpload.js +43 -37
  21. package/dist/FileUpload.vue.d.ts +2 -0
  22. package/dist/FloatingPanel.js +31 -31
  23. package/dist/HoverCard.js +50 -25
  24. package/dist/HoverCard.vue.d.ts +9 -1
  25. package/dist/{IconButton-D5YOChZI.js → IconButton-DGy1eP0I.js} +12 -12
  26. package/dist/IconTipButton-B8kcqxcE.js +59 -0
  27. package/dist/IconTipButton.vue.d.ts +4 -1
  28. package/dist/InfoComponentsCard.vue.d.ts +1 -1
  29. package/dist/ListRow.vue.d.ts +12 -1
  30. package/dist/ListTable.vue.d.ts +10 -0
  31. package/dist/Marquee.js +13 -13
  32. package/dist/Meter.vue.d.ts +5 -0
  33. package/dist/MultiSelect.js +57 -53
  34. package/dist/Pagination.js +32 -32
  35. package/dist/PinInput.js +32 -28
  36. package/dist/PinInput.vue.d.ts +2 -2
  37. package/dist/Rating.js +35 -29
  38. package/dist/ReadmeButton.vue.d.ts +1 -1
  39. package/dist/RevealEye.vue.d.ts +6 -0
  40. package/dist/ScrollArea.js +5 -5
  41. package/dist/SearchHit-Ch6ef2dk.js +19 -0
  42. package/dist/SearchHit.vue.d.ts +7 -0
  43. package/dist/Select-BiQGVqg_.js +469 -0
  44. package/dist/Select.js +1 -1
  45. package/dist/Selector.vue.d.ts +4 -3
  46. package/dist/SettingsNav.vue.d.ts +38 -0
  47. package/dist/SignInTile.vue.d.ts +1 -1
  48. package/dist/SignaturePad.js +23 -23
  49. package/dist/SkeletonRow.vue.d.ts +6 -0
  50. package/dist/Slider.js +21 -18
  51. package/dist/Sparkline.vue.d.ts +15 -0
  52. package/dist/Splitter.js +8 -8
  53. package/dist/StatusSummary.vue.d.ts +15 -0
  54. package/dist/Steps.js +33 -33
  55. package/dist/SubCard.vue.d.ts +2 -2
  56. package/dist/TagsInput.js +33 -33
  57. package/dist/TimeDial.vue.d.ts +18 -0
  58. package/dist/TimePicker.vue.d.ts +22 -0
  59. package/dist/TimeRangePicker.vue.d.ts +20 -0
  60. package/dist/TimeSegment.vue.d.ts +11 -0
  61. package/dist/{DropdownListbox.vue.d.ts → TimeShell.vue.d.ts} +8 -11
  62. package/dist/Timer.js +33 -30
  63. package/dist/TipWrap-BZAveG4U.js +62 -0
  64. package/dist/ToastCard.vue.d.ts +2 -0
  65. package/dist/ToastViewport.vue.d.ts +1 -8
  66. package/dist/Tour.js +51 -44
  67. package/dist/Window.vue.d.ts +3 -1
  68. package/dist/engines.d.ts +7 -1
  69. package/dist/{glyphs-CS3VBARx.js → glyphs-DncaPYo_.js} +2 -2
  70. package/dist/glyphs.d.ts +2 -0
  71. package/dist/index.d.ts +15 -7
  72. package/dist/index.js +4027 -3288
  73. package/dist/settingsNavItem.d.ts +16 -0
  74. package/dist/tipBubble.d.ts +12 -1
  75. package/dist/windowParts.d.ts +4 -1
  76. package/package.json +2 -2
  77. package/dist/AboutCard.vue.d.ts +0 -43
  78. package/dist/Accordion-JaQ-i8V1.js +0 -36
  79. package/dist/Badge-BhK0gMse.js +0 -81
  80. package/dist/Button-CZHmbNOm.js +0 -203
  81. package/dist/IconTipButton-BLtrZfgN.js +0 -56
  82. package/dist/Select-DBABOjwc.js +0 -458
  83. package/dist/TipWrap-5Nw7Yj0O.js +0 -51
  84. package/dist/deprecatedEvents.d.ts +0 -8
@@ -1,13 +1,13 @@
1
- import { t as e } from "./Button-CZHmbNOm.js";
2
- import { d as t, t as n } from "./glyphs-CS3VBARx.js";
3
- import { Fragment as r, computed as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, useId as v, useModel as y } from "vue";
1
+ import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, onBeforeUnmount as c, onMounted as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useId as h, useModel as g } from "vue";
2
+ import * as _ from "@zag-js/pagination";
3
+ import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
4
4
  import { PAGINATION_TEXT as b, pageDir as x, watchPaginationFit as S } from "@glimstone/core";
5
- import { normalizeProps as C, useMachine as w } from "@zag-js/vue";
6
- import * as T from "@zag-js/pagination";
5
+ import { t as C } from "./Button-DVUuFYk0.js";
6
+ import { f as w, t as T } from "./glyphs-DncaPYo_.js";
7
7
  // src/Pagination.vue?vue&type=script&setup=true&lang.ts
8
- var E = { class: "glim-page-status glim-num" }, D = { "aria-hidden": "true" }, O = { class: "glim-sr-only" }, k = /* @__PURE__ */ c({
8
+ var E = { class: "glim-page-status glim-num" }, D = { "aria-hidden": "true" }, O = { class: "glim-sr-only" }, k = /* @__PURE__ */ a({
9
9
  __name: "Pagination",
10
- props: /*@__PURE__*/ l({
10
+ props: /*@__PURE__*/ o({
11
11
  count: {},
12
12
  pageSize: { default: 10 },
13
13
  siblingCount: { default: 1 },
@@ -17,83 +17,83 @@ var E = { class: "glim-page-status glim-num" }, D = { "aria-hidden": "true" }, O
17
17
  pageModifiers: {}
18
18
  }),
19
19
  emits: ["update:page"],
20
- setup(c) {
21
- let l = c, k = y(c, "page"), A = i(() => ({
20
+ setup(a) {
21
+ let o = a, k = g(a, "page"), A = t(() => ({
22
22
  ...b,
23
- ...l.text
24
- })), j = v(), M = w(T.machine, i(() => ({
23
+ ...o.text
24
+ })), j = h(), M = y(_.machine, t(() => ({
25
25
  id: j,
26
26
  dir: x(),
27
- count: l.count,
28
- pageSize: l.pageSize,
29
- siblingCount: l.siblingCount,
27
+ count: o.count,
28
+ pageSize: o.pageSize,
29
+ siblingCount: o.siblingCount,
30
30
  page: k.value ?? 1,
31
31
  onPageChange: (e) => k.value = e.page,
32
32
  translations: {
33
33
  rootLabel: A.value.label,
34
34
  itemLabel: (e) => A.value.page(e.page, e.totalPages)
35
35
  }
36
- }))), N = i(() => T.connect(M, C)), P = m(), F = () => {};
37
- return f(() => F = S(P.value)), d(() => F()), (i, c) => (p(), a("nav", u({
36
+ }))), N = t(() => _.connect(M, v)), P = d(), F = () => {};
37
+ return l(() => F = S(P.value)), c(() => F()), (t, a) => (u(), n("nav", s({
38
38
  ref_key: "nav",
39
39
  ref: P,
40
40
  "data-glim": "Pagination"
41
41
  }, N.value.getRootProps(), { class: "glim-pagination" }), [
42
- s(e, {
42
+ i(C, {
43
43
  class: "glim-page-step",
44
44
  label: A.value.previous,
45
45
  "label-key": null,
46
- glyph: _(n),
46
+ glyph: m(T),
47
47
  variant: "icon",
48
48
  disabled: N.value.previousPage === null,
49
- onClick: c[0] ||= (e) => N.value.goToPrevPage()
49
+ onClick: a[0] ||= (e) => N.value.goToPrevPage()
50
50
  }, null, 8, [
51
51
  "label",
52
52
  "glyph",
53
53
  "disabled"
54
54
  ]),
55
- s(e, {
55
+ i(C, {
56
56
  class: "glim-page-step-short",
57
57
  label: A.value.previous,
58
58
  "label-key": null,
59
- glyph: _(n),
59
+ glyph: m(T),
60
60
  compact: "",
61
61
  disabled: N.value.previousPage === null,
62
- onClick: c[1] ||= (e) => N.value.goToPrevPage()
62
+ onClick: a[1] ||= (e) => N.value.goToPrevPage()
63
63
  }, null, 8, [
64
64
  "label",
65
65
  "glyph",
66
66
  "disabled"
67
67
  ]),
68
- (p(!0), a(r, null, h(N.value.pages, (e, t) => (p(), a(r, { key: e.type === "page" ? e.value : `gap-${t}` }, [e.type === "page" ? (p(), a("button", u({
68
+ (u(!0), n(e, null, f(N.value.pages, (t, r) => (u(), n(e, { key: t.type === "page" ? t.value : `gap-${r}` }, [t.type === "page" ? (u(), n("button", s({
69
69
  key: 0,
70
70
  ref_for: !0
71
- }, N.value.getItemProps(e), { class: "glim-page glim-num" }), g(e.value), 17)) : (p(), a("span", u({
71
+ }, N.value.getItemProps(t), { class: "glim-page glim-num" }), p(t.value), 17)) : (u(), n("span", s({
72
72
  key: 1,
73
73
  ref_for: !0
74
- }, N.value.getEllipsisProps({ index: t }), { class: "glim-page-gap" }), "…", 16))], 64))), 128)),
75
- o("span", E, [o("span", D, g(A.value.status(N.value.page, N.value.totalPages)), 1), o("span", O, g(A.value.page(N.value.page, N.value.totalPages)), 1)]),
76
- s(e, {
74
+ }, N.value.getEllipsisProps({ index: r }), { class: "glim-page-gap" }), "…", 16))], 64))), 128)),
75
+ r("span", E, [r("span", D, p(A.value.status(N.value.page, N.value.totalPages)), 1), r("span", O, p(A.value.page(N.value.page, N.value.totalPages)), 1)]),
76
+ i(C, {
77
77
  class: "glim-page-step",
78
78
  label: A.value.next,
79
79
  "label-key": null,
80
- glyph: _(t),
80
+ glyph: m(w),
81
81
  variant: "icon",
82
82
  disabled: N.value.nextPage === null,
83
- onClick: c[2] ||= (e) => N.value.goToNextPage()
83
+ onClick: a[2] ||= (e) => N.value.goToNextPage()
84
84
  }, null, 8, [
85
85
  "label",
86
86
  "glyph",
87
87
  "disabled"
88
88
  ]),
89
- s(e, {
89
+ i(C, {
90
90
  class: "glim-page-step-short",
91
91
  label: A.value.next,
92
92
  "label-key": null,
93
- glyph: _(t),
93
+ glyph: m(w),
94
94
  compact: "",
95
95
  disabled: N.value.nextPage === null,
96
- onClick: c[3] ||= (e) => N.value.goToNextPage()
96
+ onClick: a[3] ||= (e) => N.value.goToNextPage()
97
97
  }, null, 8, [
98
98
  "label",
99
99
  "glyph",
package/dist/PinInput.js CHANGED
@@ -1,10 +1,14 @@
1
- import { r as e } from "./fieldName-DBygJJfe.js";
2
- import { Fragment as t, computed as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, toDisplayString as f, unref as p, useId as m, useModel as h } from "vue";
3
- import { PIN_INPUT_TEXT as g, pinCells as _ } from "@glimstone/core";
4
- import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
5
- import * as b from "@zag-js/pin-input";
6
- // src/PinInput.vue
7
- var x = /* @__PURE__ */ a({
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, toDisplayString as f, unref as p, useId as m, useModel as h } from "vue";
2
+ import * as g from "@zag-js/pin-input";
3
+ import { normalizeProps as _, useMachine as v } from "@zag-js/vue";
4
+ import { PIN_INPUT_TEXT as y, pinCells as b, pinGroupStarts as x } from "@glimstone/core";
5
+ import { r as S } from "./fieldName-DBygJJfe.js";
6
+ // src/PinInput.vue?vue&type=script&setup=true&lang.ts
7
+ var C = {
8
+ key: 0,
9
+ class: "glim-pin-sep",
10
+ "aria-hidden": "true"
11
+ }, w = /* @__PURE__ */ a({
8
12
  __name: "PinInput",
9
13
  props: /*@__PURE__*/ s({
10
14
  label: {},
@@ -33,29 +37,29 @@ var x = /* @__PURE__ */ a({
33
37
  }),
34
38
  emits: /*@__PURE__*/ s(["complete"], ["update:modelValue"]),
35
39
  setup(a, { emit: s }) {
36
- let x = a, S = h(a, "modelValue"), C = s, w = e(() => x.label), T = n(() => ({
37
- ...g,
38
- ...x.text
39
- })), E = m(), D = y(b.machine, n(() => ({
40
- id: E,
40
+ let w = a, T = h(a, "modelValue"), E = s, D = S(() => w.label), O = t(() => ({
41
+ ...y,
42
+ ...w.text
43
+ })), k = m(), A = v(g.machine, t(() => ({
44
+ id: k,
41
45
  dir: "ltr",
42
- count: x.length,
43
- value: _(S.value, x.length),
44
- type: x.type,
45
- mask: x.mask,
46
- otp: x.otp,
47
- invalid: x.invalid,
48
- disabled: x.disabled,
46
+ count: w.length,
47
+ value: b(T.value, w.length),
48
+ type: w.type,
49
+ mask: w.mask,
50
+ otp: w.otp,
51
+ invalid: w.invalid,
52
+ disabled: w.disabled,
49
53
  placeholder: "",
50
- onValueChange: (e) => S.value = e.valueAsString,
51
- onValueComplete: (e) => C("complete", e.valueAsString),
52
- translations: { inputLabel: (e, t) => T.value.cell(e + 1, t) }
53
- }))), O = n(() => b.connect(D, v));
54
- return (e, n) => (u(), r("div", c({ "data-glim": "PinInput" }, O.value.getRootProps(), { class: "glim-pin" }), [
55
- i("label", c(O.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), f(p(w)), 17),
56
- i("div", c(O.value.getControlProps(), { class: "glim-pin-control" }), [(u(!0), r(t, null, d(O.value.items, (e) => (u(), r("input", c({ key: e }, { ref_for: !0 }, O.value.getInputProps({ index: e }), { class: "glim-input glim-pin-cell glim-num" }), null, 16))), 128))], 16),
57
- i("input", l(o(O.value.getHiddenInputProps())), null, 16)
54
+ onValueChange: (e) => T.value = e.valueAsString,
55
+ onValueComplete: (e) => E("complete", e.valueAsString),
56
+ translations: { inputLabel: (e, t) => O.value.cell(e + 1, t) }
57
+ }))), j = t(() => g.connect(A, _));
58
+ return (t, s) => (u(), r("div", c({ "data-glim": "PinInput" }, j.value.getRootProps(), { class: "glim-pin" }), [
59
+ i("label", c(j.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), f(p(D)), 17),
60
+ i("div", c(j.value.getControlProps(), { class: "glim-pin-control" }), [(u(!0), r(e, null, d(j.value.items, (t) => (u(), r(e, { key: t }, [p(x)(t, a.length) ? (u(), r("span", C)) : n("", !0), i("input", c({ ref_for: !0 }, j.value.getInputProps({ index: t }), { class: "glim-input glim-pin-cell glim-num" }), null, 16)], 64))), 128))], 16),
61
+ i("input", l(o(j.value.getHiddenInputProps())), null, 16)
58
62
  ], 16));
59
63
  }
60
64
  });
61
- export { x as PinInput };
65
+ export { w as PinInput };
@@ -23,11 +23,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
23
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
24
  onComplete?: ((value: string) => any) | undefined;
25
25
  }>, {
26
+ invalid: boolean;
26
27
  length: number;
28
+ type: "numeric" | "alphabetic" | "alphanumeric";
27
29
  disabled: boolean;
28
30
  mask: boolean;
29
- invalid: boolean;
30
- type: "numeric" | "alphanumeric" | "alphabetic";
31
31
  otp: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
package/dist/Rating.js CHANGED
@@ -1,16 +1,16 @@
1
- import { r as e } from "./fieldName-DBygJJfe.js";
2
- import { _ as t } from "./glyphs-CS3VBARx.js";
3
- import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, mergeModels as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, useId as g, useModel as _ } from "vue";
4
- import { RATING_TEXT as v, pageDir as y } from "@glimstone/core";
5
- import { normalizeProps as b, useMachine as x } from "@zag-js/vue";
6
- import * as S from "@zag-js/rating-group";
1
+ import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, guardReactiveProps as o, mergeModels as s, mergeProps as c, normalizeProps as l, openBlock as u, ref as d, renderList as f, toDisplayString as p, unref as m, useId as h, useModel as g } from "vue";
2
+ import * as _ from "@zag-js/rating-group";
3
+ import { normalizeProps as v, useMachine as y } from "@zag-js/vue";
4
+ import { RATING_TEXT as b, pageDir as x } from "@glimstone/core";
5
+ import { r as S } from "./fieldName-DBygJJfe.js";
6
+ import { y as C } from "./glyphs-DncaPYo_.js";
7
7
  // src/Rating.vue?vue&type=script&setup=true&lang.ts
8
- var C = {
8
+ var w = ["data-pop"], T = {
9
9
  class: "glim-rating-fill",
10
10
  "aria-hidden": "true"
11
- }, w = /* @__PURE__ */ s({
11
+ }, E = /* @__PURE__ */ a({
12
12
  __name: "Rating",
13
- props: /*@__PURE__*/ l({
13
+ props: /*@__PURE__*/ s({
14
14
  label: {},
15
15
  count: { default: 5 },
16
16
  allowHalf: {
@@ -31,26 +31,32 @@ var C = {
31
31
  modelModifiers: {}
32
32
  }),
33
33
  emits: ["update:modelValue"],
34
- setup(s) {
35
- let l = s, w = _(s, "modelValue"), T = e(() => l.label), E = r(() => ({
36
- ...v,
37
- ...l.text
38
- })), D = g(), O = x(S.machine, r(() => ({
39
- id: D,
40
- dir: y(),
41
- value: w.value,
42
- count: l.count,
43
- allowHalf: l.allowHalf,
44
- readOnly: l.readOnly,
45
- disabled: l.disabled,
46
- onValueChange: (e) => w.value = e.value,
47
- translations: { ratingValueText: (e) => E.value.star(e, l.count) }
48
- }))), k = r(() => S.connect(O, b));
49
- return (e, r) => (f(), i("div", u({ "data-glim": "Rating" }, k.value.getRootProps(), { class: "glim-rating" }), [
50
- a("label", u(k.value.getLabelProps(), { class: s.label === void 0 ? "glim-sr-only" : "glim-field-label" }), m(h(T)), 17),
51
- a("div", u(k.value.getControlProps(), { class: "glim-rating-control" }), [(f(!0), i(n, null, p(k.value.items, (e) => (f(), i("span", u({ key: e }, { ref_for: !0 }, k.value.getItemProps({ index: e }), { class: "glim-rating-star" }), [o(h(t)), a("span", C, [o(h(t))])], 16))), 128))], 16),
52
- a("input", d(c(k.value.getHiddenInputProps())), null, 16)
34
+ setup(a) {
35
+ let s = a, E = g(a, "modelValue"), D = S(() => s.label), O = t(() => ({
36
+ ...b,
37
+ ...s.text
38
+ })), k = d(0), A = h(), j = y(_.machine, t(() => ({
39
+ id: A,
40
+ dir: x(),
41
+ value: E.value,
42
+ count: s.count,
43
+ allowHalf: s.allowHalf,
44
+ readOnly: s.readOnly,
45
+ disabled: s.disabled,
46
+ onValueChange: (e) => {
47
+ k.value++, E.value = e.value;
48
+ },
49
+ translations: { ratingValueText: (e) => O.value.star(e, s.count) }
50
+ }))), M = t(() => _.connect(j, v));
51
+ return (t, s) => (u(), n("div", c({ "data-glim": "Rating" }, M.value.getRootProps(), { class: "glim-rating" }), [
52
+ r("label", c(M.value.getLabelProps(), { class: a.label === void 0 ? "glim-sr-only" : "glim-field-label" }), p(m(D)), 17),
53
+ r("div", c(M.value.getControlProps(), { class: "glim-rating-control" }), [(u(!0), n(e, null, f(M.value.items, (e) => (u(), n("span", c({ key: e }, { ref_for: !0 }, M.value.getItemProps({ index: e }), {
54
+ "data-pop": k.value > 0 && e === Math.ceil(M.value.value) ? k.value % 2 ? "odd" : "even" : void 0,
55
+ style: { "--i": e - 1 },
56
+ class: "glim-rating-star"
57
+ }), [i(m(C)), r("span", T, [i(m(C))])], 16, w))), 128))], 16),
58
+ r("input", l(o(M.value.getHiddenInputProps())), null, 16)
53
59
  ], 16));
54
60
  }
55
61
  });
56
- export { w as Rating };
62
+ export { E as Rating };
@@ -25,8 +25,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
25
25
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
26
  onLinkClick?: ((e: MouseEvent) => any) | undefined;
27
27
  }>, {
28
- note: boolean;
29
28
  current: boolean;
29
+ note: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ struck: 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;
@@ -1,7 +1,7 @@
1
1
  import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, mergeProps as i, openBlock as a, renderSlot as o, useId as s } from "vue";
2
- import { pageDir as c } from "@glimstone/core";
2
+ import * as c from "@zag-js/scroll-area";
3
3
  import { normalizeProps as l, useMachine as u } from "@zag-js/vue";
4
- import * as d from "@zag-js/scroll-area";
4
+ import { pageDir as d } from "@glimstone/core";
5
5
  // src/ScrollArea.vue?vue&type=script&setup=true&lang.ts
6
6
  var f = ["aria-label"], p = /* @__PURE__ */ r({
7
7
  __name: "ScrollArea",
@@ -10,10 +10,10 @@ var f = ["aria-label"], p = /* @__PURE__ */ r({
10
10
  maxHeight: {}
11
11
  },
12
12
  setup(r) {
13
- let p = s(), m = u(d.machine, {
13
+ let p = s(), m = u(c.machine, {
14
14
  id: p,
15
- dir: c()
16
- }), h = e(() => d.connect(m, l)), g = e(() => h.value.getViewportProps());
15
+ dir: d()
16
+ }), h = e(() => c.connect(m, l)), g = e(() => h.value.getViewportProps());
17
17
  return (e, s) => (a(), t("div", i({ "data-glim": "ScrollArea" }, h.value.getRootProps(), { class: "glim-scroll" }), [
18
18
  n("div", i(g.value, {
19
19
  role: "region",
@@ -0,0 +1,19 @@
1
+ import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, openBlock as o, toDisplayString as s } from "vue";
2
+ import { searchParts as c } from "@glimstone/core";
3
+ // src/SearchHit.vue?vue&type=script&setup=true&lang.ts
4
+ var l = { class: "glim-combobox-hit" }, u = /* @__PURE__ */ a({
5
+ __name: "SearchHit",
6
+ props: {
7
+ label: {},
8
+ query: {}
9
+ },
10
+ setup(a) {
11
+ let u = a, d = t(() => c(u.label, u.query));
12
+ return (t, c) => d.value ? (o(), n(e, { key: 0 }, [
13
+ i(s(d.value.before), 1),
14
+ r("span", l, s(d.value.hit), 1),
15
+ i(s(d.value.after), 1)
16
+ ], 64)) : (o(), n(e, { key: 1 }, [i(s(a.label), 1)], 64));
17
+ }
18
+ });
19
+ export { u as t };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ query: string;
4
+ };
5
+ 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>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;