@glimstone/vue 4.9.2 → 5.0.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.
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
@@ -0,0 +1,16 @@
1
+ import type { Component } from "vue";
2
+ export interface SettingsNavItem {
3
+ /** Stable id, handed back through v-model. */
4
+ id: string;
5
+ label: string;
6
+ /** The page's glyph, muted until the row is chosen or under the pointer. */
7
+ glyph?: Component;
8
+ /** The page's own address, so a modified click opens it beside the current one.
9
+ * Without one the row is a button. */
10
+ href?: string;
11
+ }
12
+ export interface SettingsNavGroup {
13
+ /** A short name in sentence case, such as "Sync". */
14
+ title: string;
15
+ items: SettingsNavItem[];
16
+ }
@@ -1,4 +1,5 @@
1
1
  import { type ComputedRef, type Ref } from "vue";
2
+ import { type BubbleKind } from "@glimstone/core";
2
3
  export interface TipBubble {
3
4
  /** The trigger the bubble is placed against. */
4
5
  trigger: Ref<HTMLElement | null>;
@@ -6,11 +7,21 @@ export interface TipBubble {
6
7
  id: string;
7
8
  text: ComputedRef<string | undefined>;
8
9
  shown: ComputedRef<boolean>;
10
+ kind: BubbleKind;
11
+ shortcut: ComputedRef<string | undefined>;
9
12
  /** `aria-describedby` while open, so the bubble is announced as the trigger's description. */
10
13
  describedBy: ComputedRef<string | undefined>;
14
+ /** Opens a tooltip once the pointer has rested, an info bubble at once. */
11
15
  show: () => void;
12
16
  hide: () => void;
13
17
  /** Focus opens the bubble only when the keyboard was used last; a mouse user gets focus as a side effect. */
14
18
  showOnFocus: () => void;
15
19
  }
16
- export declare function useTipBubble(tip: () => string | undefined, disabled?: () => boolean): TipBubble;
20
+ export interface TipBubbleOptions {
21
+ /** `tip` names a control: small, inverted, once the pointer has rested.
22
+ * `info` explains: roomier, on the floating surface, at once. */
23
+ kind?: BubbleKind;
24
+ /** A keyboard shortcut drawn beside a tooltip's words, such as "Ctrl K". */
25
+ shortcut?: () => string | undefined;
26
+ }
27
+ export declare function useTipBubble(tip: () => string | undefined, disabled?: () => boolean, { kind, shortcut }?: TipBubbleOptions): TipBubble;
@@ -1,11 +1,14 @@
1
1
  import type { Component } from "vue";
2
- import type { ButtonTone, ConnectionAction as CoreConnectionAction, MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem, PickItem, TreeNode as CoreTreeNode } from "@glimstone/core";
2
+ import type { ButtonTone, ConnectionAction as CoreConnectionAction, ListRowAction as CoreListRowAction, ListRowMenu as CoreListRowMenu, MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem, PickItem, StatusNeed as CoreStatusNeed, TreeNode as CoreTreeNode } from "@glimstone/core";
3
3
  export type MenuEntry = CoreMenuEntry<Component>;
4
4
  export type MenuItem = CoreMenuItem<Component>;
5
5
  export type MenuHead = CoreMenuHead<Component>;
6
6
  export type TreeNode = CoreTreeNode<Component>;
7
7
  export type PickerItem = PickItem<Component>;
8
8
  export type ConnectionAction = CoreConnectionAction<Component>;
9
+ export type ListRowAction = CoreListRowAction<Component>;
10
+ export type ListRowMenu = CoreListRowMenu<Component>;
11
+ export type StatusNeed = CoreStatusNeed<Component>;
9
12
  export interface MenuBarMenu {
10
13
  label: string;
11
14
  items: MenuEntry[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/vue",
3
- "version": "4.9.2",
3
+ "version": "5.0.1",
4
4
  "description": "GlimStone's components for Vue",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -120,7 +120,7 @@
120
120
  "build": "vite build && vue-tsc -p tsconfig.build.json"
121
121
  },
122
122
  "dependencies": {
123
- "@glimstone/core": "4.9.2"
123
+ "@glimstone/core": "5.0.1"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "@internationalized/date": "^3.12.4",
@@ -1,43 +0,0 @@
1
- import { type Component } from "vue";
2
- type OpenUrl = (url: string) => void;
3
- type __VLS_Props = {
4
- text: {
5
- title: string;
6
- body: string;
7
- coffee: string;
8
- coffeeButton: string;
9
- cryptoButton?: string;
10
- paypalButton?: string;
11
- report: string;
12
- repoButton: string;
13
- discordButton?: string;
14
- mailButton: string;
15
- mailSubject: string;
16
- version: string;
17
- unreleased: (version: string) => string;
18
- /** The Help card's heading. Without it the card draws none. */
19
- helpTitle?: string;
20
- };
21
- version: string | null;
22
- glimstoneVersion: string;
23
- repoUrl: string;
24
- repoGlyph?: Component;
25
- glimstoneRepoUrl: string;
26
- onCoffee: () => void;
27
- coffeeArt: Component;
28
- cryptoGlyph?: Component;
29
- paypalGlyph?: Component;
30
- onPaypal?: () => void;
31
- onCrypto?: () => void;
32
- discordUrl?: string;
33
- discordGlyph?: Component;
34
- mailAddress?: string;
35
- mailGlyph?: Component;
36
- openUrl?: OpenUrl;
37
- hueIndex?: number;
38
- };
39
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
40
- openUrl: OpenUrl;
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
- declare const _default: typeof __VLS_export;
43
- export default _default;
@@ -1,36 +0,0 @@
1
- import { s as e } from "./glyphs-CS3VBARx.js";
2
- import { Fragment as t, computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeModels as c, mergeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useId as g, useModel as _, withCtx as v } from "vue";
3
- import { pageDir as y } from "@glimstone/core";
4
- import { normalizeProps as b, useMachine as x } from "@zag-js/vue";
5
- import * as S from "@zag-js/accordion";
6
- // src/Accordion.vue?vue&type=script&setup=true&lang.ts
7
- var C = { class: "glim-disclosure-label" }, w = { class: "glim-disclosure-body" }, T = /* @__PURE__ */ s({
8
- __name: "Accordion",
9
- props: /*@__PURE__*/ c({
10
- items: {},
11
- multiple: {
12
- type: Boolean,
13
- default: !1
14
- },
15
- headingLevel: { default: 3 }
16
- }, {
17
- modelValue: {},
18
- modelModifiers: {}
19
- }),
20
- emits: ["update:modelValue"],
21
- setup(s) {
22
- let c = s, T = _(s, "modelValue"), E = g(), D = x(S.machine, n(() => ({
23
- id: E,
24
- dir: y(),
25
- value: T.value ?? [],
26
- multiple: c.multiple,
27
- collapsible: !0,
28
- onValueChange: (e) => T.value = e.value
29
- }))), O = n(() => S.connect(D, b));
30
- return (n, c) => (u(), i("div", l({ "data-glim": "Accordion" }, O.value.getRootProps(), { class: "glim-accordion" }), [(u(!0), i(t, null, d(s.items, (t) => (u(), i("div", l({ key: t.value }, { ref_for: !0 }, O.value.getItemProps(t), { class: "glim-accordion-item" }), [(u(), r(p(`h${s.headingLevel}`), { class: "glim-disclosure-heading" }, {
31
- default: v(() => [a("button", l({ ref_for: !0 }, O.value.getItemTriggerProps(t), { class: "glim-disclosure-trigger" }), [a("span", C, m(t.title), 1), a("span", l({ ref_for: !0 }, O.value.getItemIndicatorProps(t), { class: "glim-disclosure-indicator" }), [o(h(e))], 16)], 16)]),
32
- _: 2
33
- }, 1024)), a("div", l({ ref_for: !0 }, O.value.getItemContentProps(t), { class: "glim-disclosure-content" }), [a("div", w, [f(n.$slots, "content", { item: t })])], 16)], 16))), 128))], 16));
34
- }
35
- });
36
- export { T as t };
@@ -1,81 +0,0 @@
1
- import { t as e } from "./IconTipButton-BLtrZfgN.js";
2
- import { computed as t, createBlock as n, createElementBlock as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, renderSlot as c, withCtx as l } from "vue";
3
- import { badgeClassName as u, hueVars as d } from "@glimstone/core";
4
- // src/Badge.vue?vue&type=script&setup=true&lang.ts
5
- var f = ["disabled"], p = ["role"], m = /* @__PURE__ */ i({
6
- __name: "Badge",
7
- props: {
8
- tone: { default: "neutral" },
9
- size: { default: "medium" },
10
- form: {},
11
- shape: {},
12
- as: { default: "span" },
13
- disabled: {
14
- type: Boolean,
15
- default: !1
16
- },
17
- wrap: {
18
- type: Boolean,
19
- default: !1
20
- },
21
- hueIndex: {},
22
- tip: {},
23
- insetStart: {},
24
- inFlow: {
25
- type: Boolean,
26
- default: !1
27
- }
28
- },
29
- setup(i) {
30
- let m = i, h = t(() => m.hueIndex !== void 0 && (m.tone === "heading" || m.tone === "active")), g = t(() => [
31
- h.value && "glim-hue",
32
- h.value && m.size === "heading" && "glim-notch-hue",
33
- u({
34
- tone: m.tone,
35
- size: m.size,
36
- form: m.form,
37
- shape: m.shape,
38
- wrap: m.wrap,
39
- iconOnly: m.tip !== void 0,
40
- inFlow: m.inFlow,
41
- insetStart: m.insetStart,
42
- action: m.as !== "span"
43
- })
44
- ].filter(Boolean)), _ = t(() => h.value ? d(m.hueIndex) : void 0);
45
- return (t, u) => i.as === "button" && i.tip !== void 0 ? (s(), n(e, {
46
- key: 0,
47
- "data-glim": "Badge",
48
- tip: i.tip,
49
- disabled: i.disabled,
50
- class: a(g.value),
51
- style: o(_.value)
52
- }, {
53
- default: l(() => [c(t.$slots, "default")]),
54
- _: 3
55
- }, 8, [
56
- "tip",
57
- "disabled",
58
- "class",
59
- "style"
60
- ])) : i.as === "button" ? (s(), r("button", {
61
- key: 1,
62
- "data-glim": "Badge",
63
- type: "button",
64
- disabled: i.disabled,
65
- class: a(g.value),
66
- style: o(_.value)
67
- }, [c(t.$slots, "default")], 14, f)) : i.as === "a" ? (s(), r("a", {
68
- key: 2,
69
- "data-glim": "Badge",
70
- class: a(g.value),
71
- style: o(_.value)
72
- }, [c(t.$slots, "default")], 6)) : (s(), r("span", {
73
- key: 3,
74
- "data-glim": "Badge",
75
- role: t.$attrs["aria-label"] ? "img" : void 0,
76
- class: a(g.value),
77
- style: o(_.value)
78
- }, [c(t.$slots, "default")], 14, p));
79
- }
80
- });
81
- export { m as t };
@@ -1,203 +0,0 @@
1
- import { a as e, w as t } from "./glyphs-CS3VBARx.js";
2
- import { n, r, t as i } from "./TipWrap-5Nw7Yj0O.js";
3
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, normalizeStyle as h, onScopeDispose as g, openBlock as _, renderSlot as v, resolveDynamicComponent as y, shallowRef as b, toDisplayString as x, unref as S, watchEffect as C, withCtx as w } from "vue";
4
- import { DEFAULT_DENSITY as T, DEFAULT_MOTION as E, DEFAULT_SHAPE as D, applyAccent as O, applyDensity as k, applyMotion as A, applyRainbow as j, applyShape as M, busyRingView as N, buttonView as P, getLabelMode as F, hueVars as I, labelModeChanged as ee, mediaMatches as L, narrowerThan as R, rainbowState as z, setLabelMode as B, subscribeLabelMode as V, subscribeMedia as H, subscribeRainbow as U, takePageHue as W } from "@glimstone/core";
5
- // src/engines.ts
6
- function G(e) {
7
- let t = b(F(e));
8
- return g(V(() => t.value = F(e))), o({
9
- get: () => t.value,
10
- set: (t) => {
11
- B(e, t), ee();
12
- }
13
- });
14
- }
15
- function K() {
16
- let e = b(z());
17
- return g(U(() => e.value = z())), o({
18
- get: () => e.value,
19
- set: (e) => j(e)
20
- });
21
- }
22
- function q(e) {
23
- return o(() => {
24
- let t = e();
25
- return t === void 0 ? void 0 : I(t);
26
- });
27
- }
28
- function J(e, t) {
29
- let n = b(t()), r = new MutationObserver(() => n.value = t());
30
- return r.observe(document.documentElement, {
31
- attributes: !0,
32
- attributeFilter: [e]
33
- }), g(() => r.disconnect()), n;
34
- }
35
- function Y() {
36
- let e = J("data-shape", () => document.documentElement.getAttribute("data-shape") ?? D);
37
- return o({
38
- get: () => e.value,
39
- set: M
40
- });
41
- }
42
- function X() {
43
- let e = J("data-motion", () => document.documentElement.getAttribute("data-motion") ?? E);
44
- return o({
45
- get: () => e.value,
46
- set: A
47
- });
48
- }
49
- function Z() {
50
- let e = J("data-density", () => document.documentElement.getAttribute("data-density") ?? T);
51
- return o({
52
- get: () => e.value,
53
- set: k
54
- });
55
- }
56
- function Q() {
57
- let e = J("style", () => document.documentElement.style.getPropertyValue("--accent"));
58
- return o({
59
- get: () => e.value,
60
- set: (e) => O(e || void 0)
61
- });
62
- }
63
- // src/BusyRing.vue?vue&type=script&setup=true&lang.ts
64
- var te = ["role", "aria-hidden"], ne = {
65
- key: 0,
66
- class: "glim-sr-only"
67
- }, $ = /* @__PURE__ */ f({
68
- __name: "BusyRing",
69
- props: {
70
- size: {},
71
- label: {},
72
- delay: {}
73
- },
74
- setup(e) {
75
- let t = e, n = o(() => N({
76
- size: t.size,
77
- delay: t.delay
78
- }));
79
- return (t, r) => (_(), l("span", {
80
- "data-glim": "BusyRing",
81
- role: e.label ? "status" : void 0,
82
- "aria-hidden": e.label ? void 0 : "true",
83
- class: m(n.value.className),
84
- style: h(n.value.style)
85
- }, [
86
- r[0] ||= u("span", { class: "glim-busy-ring-arc" }, [u("span", { class: "glim-busy-ring-tail" })], -1),
87
- r[1] ||= u("span", { class: "glim-busy-ring-arc glim-busy-ring-arc--inner" }, [u("span", { class: "glim-busy-ring-tail" })], -1),
88
- e.label ? (_(), l("span", ne, x(e.label), 1)) : c("", !0)
89
- ], 14, te));
90
- }
91
- }), re = {
92
- key: 0,
93
- class: "glim-btn-glyph"
94
- }, ie = /* @__PURE__ */ f({
95
- inheritAttrs: !1,
96
- __name: "Button",
97
- props: {
98
- label: {},
99
- labelKey: {},
100
- glyph: {},
101
- tone: { default: "neutral" },
102
- variant: { default: "default" },
103
- disabled: {
104
- type: Boolean,
105
- default: !1
106
- },
107
- href: {},
108
- type: { default: "button" },
109
- title: {},
110
- hueIndex: {},
111
- busy: {
112
- type: Boolean,
113
- default: !1
114
- },
115
- stage: {},
116
- keepLabel: {
117
- type: Boolean,
118
- default: !1
119
- },
120
- compact: { type: Boolean },
121
- compactBelow: {},
122
- size: {}
123
- },
124
- setup(f, { expose: h }) {
125
- let g = f, T = G("buttons"), E = b(!1);
126
- C((e) => {
127
- if (g.compactBelow === void 0) return void (E.value = !1);
128
- let t = R(g.compactBelow), n = () => E.value = L(t);
129
- n(), e(H(t, n));
130
- });
131
- let D = o(() => g.glyph ?? (g.labelKey ? t(g.labelKey) : void 0) ?? (g.variant === "chip" ? e : void 0)), O = o(() => P({
132
- mode: T.value,
133
- label: g.label,
134
- hasGlyph: !!D.value || g.busy,
135
- tone: g.tone,
136
- variant: g.variant,
137
- disabled: g.disabled,
138
- keepLabel: g.keepLabel,
139
- compact: g.compact || E.value,
140
- size: g.size,
141
- title: g.title,
142
- hueIndex: g.hueIndex,
143
- stage: g.stage
144
- })), k = o(() => !!g.href && !g.disabled), A = r(() => O.value.tip, () => g.disabled), j = b(null);
145
- function M(e) {
146
- j.value = e, A.trigger.value = j.value;
147
- }
148
- function N(e) {
149
- O.value.pageHue && W(e.currentTarget), A.show();
150
- }
151
- function F(e) {
152
- O.value.pageHue && W(e.currentTarget), A.showOnFocus();
153
- }
154
- return h({ el: j }), (e, t) => (_(), l(a, null, [d(S(i), {
155
- on: f.disabled && !!O.value.tip,
156
- show: S(A).show,
157
- hide: S(A).hide
158
- }, {
159
- default: w(() => [(_(), s(y(k.value ? "a" : "button"), p({ "data-glim": "Button" }, e.$attrs, {
160
- ref: M,
161
- href: k.value ? f.href : void 0,
162
- type: k.value ? void 0 : f.type,
163
- disabled: k.value ? void 0 : f.disabled,
164
- "aria-busy": f.busy || void 0,
165
- "aria-describedby": S(A).describedBy.value,
166
- style: O.value.style,
167
- class: O.value.className,
168
- onMouseenter: N,
169
- onMouseleave: S(A).hide,
170
- onFocus: F,
171
- onBlur: S(A).hide
172
- }), {
173
- default: w(() => [
174
- v(e.$slots, "before"),
175
- O.value.showGlyph ? (_(), l("span", re, [f.busy ? (_(), s($, {
176
- key: 0,
177
- size: "small",
178
- delay: 0
179
- })) : (_(), s(y(D.value), { key: 1 }))])) : c("", !0),
180
- u("span", { class: m(O.value.labelClass) }, x(f.label), 3),
181
- v(e.$slots, "after")
182
- ]),
183
- _: 3
184
- }, 16, [
185
- "href",
186
- "type",
187
- "disabled",
188
- "aria-busy",
189
- "aria-describedby",
190
- "style",
191
- "class",
192
- "onMouseleave",
193
- "onBlur"
194
- ]))]),
195
- _: 3
196
- }, 8, [
197
- "on",
198
- "show",
199
- "hide"
200
- ]), d(n, { state: S(A) }, null, 8, ["state"])], 64));
201
- }
202
- });
203
- export { q as a, K as c, Z as i, Y as l, $ as n, G as o, Q as r, X as s, ie as t };
@@ -1,56 +0,0 @@
1
- import { n as e, r as t, t as n } from "./TipWrap-5Nw7Yj0O.js";
2
- import { Fragment as r, createBlock as i, createElementBlock as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
3
- // src/IconTipButton.vue
4
- var m = /* @__PURE__ */ s({
5
- inheritAttrs: !1,
6
- __name: "IconTipButton",
7
- props: {
8
- tip: {},
9
- disabled: {
10
- type: Boolean,
11
- default: !1
12
- },
13
- href: {},
14
- type: { default: "button" }
15
- },
16
- setup(s) {
17
- let m = s, h = t(() => m.tip, () => m.disabled);
18
- return (t, m) => (l(), a(r, null, [o(f(n), {
19
- on: s.disabled,
20
- show: f(h).show,
21
- hide: f(h).hide
22
- }, {
23
- default: p(() => [(l(), i(d(s.href && !s.disabled ? "a" : "button"), c({ "data-glim": "IconTipButton" }, t.$attrs, {
24
- ref: (e) => f(h).trigger.value = e,
25
- href: s.disabled ? void 0 : s.href,
26
- type: s.href && !s.disabled ? void 0 : s.type,
27
- disabled: s.href && !s.disabled ? void 0 : s.disabled,
28
- "aria-label": s.tip,
29
- "aria-describedby": f(h).describedBy.value,
30
- onMouseenter: f(h).show,
31
- onMouseleave: f(h).hide,
32
- onFocus: f(h).showOnFocus,
33
- onBlur: f(h).hide
34
- }), {
35
- default: p(() => [u(t.$slots, "default")]),
36
- _: 3
37
- }, 16, [
38
- "href",
39
- "type",
40
- "disabled",
41
- "aria-label",
42
- "aria-describedby",
43
- "onMouseenter",
44
- "onMouseleave",
45
- "onFocus",
46
- "onBlur"
47
- ]))]),
48
- _: 3
49
- }, 8, [
50
- "on",
51
- "show",
52
- "hide"
53
- ]), o(e, { state: f(h) }, null, 8, ["state"])], 64));
54
- }
55
- });
56
- export { m as t };