@quirekit/ui 0.0.1 → 0.0.3

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 (76) hide show
  1. package/README.md +1 -0
  2. package/README.zh-CN.md +1 -0
  3. package/dist/{chat-BAee3Pg0.mjs → chat-BSVF78Hu.mjs} +91 -76
  4. package/dist/chat-BSVF78Hu.mjs.map +1 -0
  5. package/dist/chat.d.mts +2 -2
  6. package/dist/chat.mjs +1 -1
  7. package/dist/{code-block-D1kd-gAB.mjs → code-block-pXaSN9eY.mjs} +2 -2
  8. package/dist/{code-block-D1kd-gAB.mjs.map → code-block-pXaSN9eY.mjs.map} +1 -1
  9. package/dist/{html-sandbox-BYIni0q6.mjs → html-sandbox-CMsenGYi.mjs} +2 -2
  10. package/dist/{html-sandbox-BYIni0q6.mjs.map → html-sandbox-CMsenGYi.mjs.map} +1 -1
  11. package/dist/html-sandbox.mjs +1 -1
  12. package/dist/{index-Su5SBM61.d.mts → index-Bf9CudSF.d.mts} +20 -3
  13. package/dist/index-Bf9CudSF.d.mts.map +1 -0
  14. package/dist/{index-OJPxl6Iz.d.mts → index-DZc5z5s2.d.mts} +2 -2
  15. package/dist/{index-OJPxl6Iz.d.mts.map → index-DZc5z5s2.d.mts.map} +1 -1
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +17 -3
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/{model-CeJjdZm_.mjs → model-D4-FbKXY.mjs} +2 -2
  20. package/dist/{model-CeJjdZm_.mjs.map → model-D4-FbKXY.mjs.map} +1 -1
  21. package/dist/{resolve-CGFbhFiM.mjs → resolve-BwTfY4PS.mjs} +2 -2
  22. package/dist/{resolve-CGFbhFiM.mjs.map → resolve-BwTfY4PS.mjs.map} +1 -1
  23. package/dist/style.css +13 -0
  24. package/dist/vue.d.mts +643 -580
  25. package/dist/vue.d.mts.map +1 -1
  26. package/dist/vue.mjs +1164 -1026
  27. package/dist/vue.mjs.map +1 -1
  28. package/package.json +6 -3
  29. package/src/components/accordion/index.ts +2 -1
  30. package/src/components/accordion/types.ts +3 -0
  31. package/src/components/segmented/create.ts +1 -1
  32. package/src/components/segmented/index.ts +1 -0
  33. package/src/components/segmented/types.ts +4 -1
  34. package/src/components/select/types.ts +2 -0
  35. package/src/components/toolbar/types.ts +2 -0
  36. package/src/drag-cursor/hold.test.ts +13 -0
  37. package/src/drag-cursor/hold.ts +12 -0
  38. package/src/drag-cursor/index.ts +1 -0
  39. package/src/index.ts +1 -0
  40. package/src/vue/accordion/accordion.vue +7 -3
  41. package/src/vue/block-handle/block-handle.test.ts +30 -0
  42. package/src/vue/block-handle/block-handle.vue +27 -0
  43. package/src/vue/block-handle/index.ts +3 -0
  44. package/src/vue/block-handle/presentation.ts +23 -0
  45. package/src/vue/block-handle/types.ts +14 -0
  46. package/src/vue/code-block/theme-surface.vue +4 -1
  47. package/src/vue/comment/action.vue +33 -0
  48. package/src/vue/comment/comment.test.ts +5 -0
  49. package/src/vue/comment/index.ts +1 -0
  50. package/src/vue/comment/message.vue +18 -7
  51. package/src/vue/comment/thread.vue +24 -10
  52. package/src/vue/file-upload/file-upload.vue +1 -1
  53. package/src/vue/image-preview/theme-surface.vue +4 -1
  54. package/src/vue/index.ts +1 -0
  55. package/src/vue/kbd/labels.ts +9 -0
  56. package/src/vue/prose/mapping/native.ts +1 -1
  57. package/src/vue/prose/mapping/rich.ts +2 -1
  58. package/src/vue/schema-form/controls/registry.ts +1 -1
  59. package/src/vue/schema-form/tree.ts +1 -1
  60. package/src/vue/segmented/segmented.vue +5 -0
  61. package/src/vue/select/select.vue +2 -0
  62. package/src/vue/select/shortcut.test.ts +18 -0
  63. package/src/vue/shared/task/trigger.vue +1 -1
  64. package/src/vue/tags-input/tags-input.vue +1 -1
  65. package/src/vue/theme-provider/portal.vue +4 -1
  66. package/src/vue/theme-provider/surface.vue +4 -1
  67. package/src/vue/toolbar/items/control.vue +1 -0
  68. package/src/vue/toolbar/presentation/tooltip.vue +3 -1
  69. package/src/vue/toolbar/toolbar-action.vue +4 -1
  70. package/src/vue/toolbar/toolbar-disclosure.vue +4 -1
  71. package/src/vue/toolbar/toolbar-selector.vue +4 -1
  72. package/src/vue/toolbar/toolbar-toggle.vue +4 -1
  73. package/src/vue/tooltip/content.vue +6 -1
  74. package/src/vue/tooltip/shortcut.test.ts +27 -0
  75. package/dist/chat-BAee3Pg0.mjs.map +0 -1
  76. package/dist/index-Su5SBM61.d.mts.map +0 -1
package/README.md CHANGED
@@ -30,6 +30,7 @@ import '@quirekit/unocss-preset/quirekit.css'
30
30
  ## Things to know
31
31
 
32
32
  - Component guides and examples are in the repository’s `apps/design` documentation site.
33
+ - Wrap the app in `QuireIconProvider` with `quireIconRegistry`, or named icons render blank. Use `QuireThemeProvider` for dark themes and theme overrides.
33
34
  - Configure colors, typography and spacing through a shared theme so components remain consistent.
34
35
 
35
36
  ## Related documentation
package/README.zh-CN.md CHANGED
@@ -30,6 +30,7 @@ import '@quirekit/unocss-preset/quirekit.css'
30
30
  ## 使用时注意
31
31
 
32
32
  - 组件介绍和示例位于仓库的 `apps/design` 文档站。
33
+ - 在应用外层放 `QuireIconProvider` 并传入 `quireIconRegistry`,否则按名称使用的图标会显示为空白。深色主题和主题覆盖使用 `QuireThemeProvider`。
33
34
  - 主题颜色、字号和间距可以统一配置;产品接入应沿用一套主题,避免每个组件各自修改。
34
35
 
35
36
  ## 相关说明
@@ -1,6 +1,6 @@
1
- import { E as trackQuireKitInputModality, c as resolveTooltipContent, n as createUiThemeCssVariables, t as resolveQuireKitFileIdentity, v as menuVariableReferences } from "./resolve-CGFbhFiM.mjs";
1
+ import { E as trackQuireKitInputModality, c as resolveTooltipContent, n as createUiThemeCssVariables, t as resolveQuireKitFileIdentity, v as menuVariableReferences } from "./resolve-BwTfY4PS.mjs";
2
2
  import { f as createTheme, i as quireKitEditorIconData } from "./catalog-AqWLE58Z.mjs";
3
- import { a as useQuireKitLocale, i as quireKitLocaleKey, l as _sfc_main$64, o as useQuireKitMessages, r as _sfc_main$66, s as _sfc_main$65, t as _sfc_main$67 } from "./code-block-D1kd-gAB.mjs";
3
+ import { a as useQuireKitLocale, i as quireKitLocaleKey, l as _sfc_main$64, o as useQuireKitMessages, r as _sfc_main$66, s as _sfc_main$65, t as _sfc_main$67 } from "./code-block-pXaSN9eY.mjs";
4
4
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
5
5
  import { ark } from "@ark-ui/vue/factory";
6
6
  import { EnvironmentProvider } from "@ark-ui/vue/environment";
@@ -17,7 +17,7 @@ import { Tooltip, useTooltipContext } from "@ark-ui/vue/tooltip";
17
17
  import { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from "@ark-ui/vue/locale";
18
18
  import { autoUpdate, computePosition, flip, offset, shift, size } from "@floating-ui/dom";
19
19
  //#region src/vue/button/icon-button.vue
20
- const _hoisted_1$41 = {
20
+ const _hoisted_1$42 = {
21
21
  key: 0,
22
22
  class: "qk-button__spinner",
23
23
  viewBox: "0 0 24 24",
@@ -68,7 +68,7 @@ const _sfc_main$63 = /*@__PURE__*/ defineComponent({
68
68
  class: normalizeClass(["qk-button__icon", `qk-button__icon--${__props.size}`]),
69
69
  "aria-hidden": "true",
70
70
  "data-slot": "icon"
71
- }, [__props.busy ? (openBlock(), createElementBlock("svg", _hoisted_1$41, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M20 12a8 8 0 0 1-8 8" }, null, -1), createElementVNode("path", {
71
+ }, [__props.busy ? (openBlock(), createElementBlock("svg", _hoisted_1$42, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M20 12a8 8 0 0 1-8 8" }, null, -1), createElementVNode("path", {
72
72
  d: "M4 12a8 8 0 0 1 8-8",
73
73
  opacity: ".35"
74
74
  }, null, -1)])])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 2)]),
@@ -86,7 +86,7 @@ const _sfc_main$63 = /*@__PURE__*/ defineComponent({
86
86
  });
87
87
  //#endregion
88
88
  //#region src/vue/file-icon/file-icon.vue
89
- const _hoisted_1$40 = [
89
+ const _hoisted_1$41 = [
90
90
  "data-kind",
91
91
  "width",
92
92
  "height",
@@ -136,13 +136,13 @@ const _sfc_main$62 = /*@__PURE__*/ defineComponent({
136
136
  "text-anchor": "middle",
137
137
  "font-size": identity.value.badge.length === 1 ? 17 : 9
138
138
  }, toDisplayString(identity.value.badge), 9, _hoisted_2$28)
139
- ], 8, _hoisted_1$40);
139
+ ], 8, _hoisted_1$41);
140
140
  };
141
141
  }
142
142
  });
143
143
  //#endregion
144
144
  //#region src/vue/image/media.vue
145
- const _hoisted_1$39 = [
145
+ const _hoisted_1$40 = [
146
146
  "src",
147
147
  "alt",
148
148
  "data-load-state"
@@ -209,7 +209,7 @@ const _sfc_main$61 = /*@__PURE__*/ defineComponent({
209
209
  "data-load-state": status.value,
210
210
  onLoad: loaded,
211
211
  onError: failed
212
- }, null, 40, _hoisted_1$39);
212
+ }, null, 40, _hoisted_1$40);
213
213
  };
214
214
  }
215
215
  });
@@ -280,7 +280,7 @@ function resolveThemeSurfaceStyle(theme, layout = "contents") {
280
280
  }
281
281
  //#endregion
282
282
  //#region src/vue/theme-provider/surface.vue
283
- const _sfc_main$60 = defineComponent({
283
+ const _sfc_main$60 = /* @__PURE__ */ defineComponent({
284
284
  name: "QuireThemeSurface",
285
285
  inheritAttrs: false,
286
286
  props: {
@@ -307,7 +307,7 @@ layout: {
307
307
  });
308
308
  //#endregion
309
309
  //#region src/vue/theme-provider/portal.vue
310
- const _sfc_main$59 = defineComponent({
310
+ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
311
311
  name: "QuireThemePortal",
312
312
  inheritAttrs: false,
313
313
  /**
@@ -722,7 +722,7 @@ function usePreviewGestures(stage, transform, navigate) {
722
722
  }
723
723
  //#endregion
724
724
  //#region src/vue/image-preview/stage.vue
725
- const _hoisted_1$38 = [
725
+ const _hoisted_1$39 = [
726
726
  "data-zoom",
727
727
  "data-angle",
728
728
  "data-x",
@@ -830,7 +830,7 @@ const _sfc_main$57 = /*@__PURE__*/ defineComponent({
830
830
  }, {
831
831
  default: withCtx(() => [createTextVNode(toDisplayString(__props.labels.retry), 1)]),
832
832
  _: 1
833
- })])) : createCommentVNode("v-if", true)], 40, _hoisted_1$38);
833
+ })])) : createCommentVNode("v-if", true)], 40, _hoisted_1$39);
834
834
  };
835
835
  }
836
836
  });
@@ -907,7 +907,7 @@ function resolveToolbarLayout(toolbar = true, hasActions = false, hasCustom = fa
907
907
  }
908
908
  //#endregion
909
909
  //#region src/vue/image-preview/toolbar/toolbar.vue
910
- const _hoisted_1$37 = ["aria-label"];
910
+ const _hoisted_1$38 = ["aria-label"];
911
911
  const _hoisted_2$26 = {
912
912
  key: 2,
913
913
  class: "qk-image-preview__divider",
@@ -1047,7 +1047,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1047
1047
  "disabled",
1048
1048
  "onClick"
1049
1049
  ]))], 64);
1050
- }), 128))], 8, _hoisted_1$37)) : createCommentVNode("v-if", true);
1050
+ }), 128))], 8, _hoisted_1$38)) : createCommentVNode("v-if", true);
1051
1051
  };
1052
1052
  }
1053
1053
  });
@@ -1074,7 +1074,7 @@ const styles = Object.freeze({
1074
1074
  display: "contents"
1075
1075
  })
1076
1076
  });
1077
- const _sfc_main$55 = defineComponent({
1077
+ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
1078
1078
  name: "QuireImagePreviewThemeSurface",
1079
1079
  inheritAttrs: false,
1080
1080
  props: {
@@ -1135,7 +1135,7 @@ function createMaskDismiss(enabled, close) {
1135
1135
  }
1136
1136
  //#endregion
1137
1137
  //#region src/vue/image-preview/surface.vue
1138
- const _hoisted_1$36 = { class: "qk-image-preview__heading" };
1138
+ const _hoisted_1$37 = { class: "qk-image-preview__heading" };
1139
1139
  const _hoisted_2$25 = ["aria-label"];
1140
1140
  const _hoisted_3$20 = ["data-navigation"];
1141
1141
  const _hoisted_4$17 = {
@@ -1271,7 +1271,7 @@ const _sfc_main$54 = /*@__PURE__*/ defineComponent({
1271
1271
  ref_key: "header",
1272
1272
  ref: header,
1273
1273
  class: "qk-image-preview__header"
1274
- }, [createElementVNode("div", _hoisted_1$36, [createVNode(unref(Dialog).Title, { class: normalizeClass(title.value ? "qk-image-preview__title" : "sr-only") }, {
1274
+ }, [createElementVNode("div", _hoisted_1$37, [createVNode(unref(Dialog).Title, { class: normalizeClass(title.value ? "qk-image-preview__title" : "sr-only") }, {
1275
1275
  default: withCtx(() => [createTextVNode(toDisplayString(title.value || __props.labels.title), 1)]),
1276
1276
  _: 1
1277
1277
  }, 8, ["class"]), __props.items.length && !toolbarHasCounter.value ? (openBlock(), createElementBlock("span", {
@@ -1600,7 +1600,7 @@ const _sfc_main$53 = /*@__PURE__*/ defineComponent({
1600
1600
  const imagePreviewGroupKey = Symbol("quirekit.image-preview-group");
1601
1601
  //#endregion
1602
1602
  //#region src/vue/image/image.vue
1603
- const _hoisted_1$35 = [
1603
+ const _hoisted_1$36 = [
1604
1604
  "data-state",
1605
1605
  "data-fallback",
1606
1606
  "aria-busy"
@@ -1816,7 +1816,7 @@ const _sfc_main$52 = /*@__PURE__*/ defineComponent({
1816
1816
  name: "zoomIn",
1817
1817
  size: 16
1818
1818
  }), createTextVNode(toDisplayString(unref(text).previewHint), 1)])) : createCommentVNode("v-if", true)], 8, _hoisted_5$13)) : createCommentVNode("v-if", true)
1819
- ], 16, _hoisted_1$35)]),
1819
+ ], 16, _hoisted_1$36)]),
1820
1820
  _: 3
1821
1821
  }, 16, ["items"]);
1822
1822
  };
@@ -1854,7 +1854,7 @@ function normalizeProgressValue(value, min, max) {
1854
1854
  }
1855
1855
  //#endregion
1856
1856
  //#region src/vue/progress/progress.vue
1857
- const _hoisted_1$34 = { class: "qk-progress__circle-wrap" };
1857
+ const _hoisted_1$35 = { class: "qk-progress__circle-wrap" };
1858
1858
  const _sfc_main$51 = /*@__PURE__*/ defineComponent({
1859
1859
  __name: "progress",
1860
1860
  props: /*@__PURE__*/ mergeModels({
@@ -1955,7 +1955,7 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
1955
1955
  default: withCtx(() => [createVNode(unref(Progress).Range, { class: "qk-progress__range" })]),
1956
1956
  _: 1
1957
1957
  }, 8, ["aria-labelledby", "aria-valuetext"])], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1958
- createElementVNode("div", _hoisted_1$34, [createVNode(unref(Progress).Circle, {
1958
+ createElementVNode("div", _hoisted_1$35, [createVNode(unref(Progress).Circle, {
1959
1959
  "aria-labelledby": progress.getLabelProps().id,
1960
1960
  "aria-valuetext": valueText(progress),
1961
1961
  class: "qk-progress__circle"
@@ -2001,7 +2001,7 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
2001
2001
  });
2002
2002
  //#endregion
2003
2003
  //#region src/vue/shimmer/shimmer.vue
2004
- const _hoisted_1$33 = ["data-active"];
2004
+ const _hoisted_1$34 = ["data-active"];
2005
2005
  const _sfc_main$50 = /*@__PURE__*/ defineComponent({
2006
2006
  __name: "shimmer",
2007
2007
  props: {
@@ -2020,7 +2020,7 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
2020
2020
  class: "qk-shimmer",
2021
2021
  "data-active": __props.active,
2022
2022
  style: normalizeStyle(style.value)
2023
- }, toDisplayString(__props.text), 13, _hoisted_1$33);
2023
+ }, toDisplayString(__props.text), 13, _hoisted_1$34);
2024
2024
  };
2025
2025
  }
2026
2026
  });
@@ -2063,7 +2063,7 @@ function attachmentIsImage(item) {
2063
2063
  }
2064
2064
  //#endregion
2065
2065
  //#region src/vue/attachment/actions.vue
2066
- const _hoisted_1$32 = {
2066
+ const _hoisted_1$33 = {
2067
2067
  key: 0,
2068
2068
  class: "qk-attachment__actions"
2069
2069
  };
@@ -2089,7 +2089,7 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
2089
2089
  });
2090
2090
  }
2091
2091
  return (_ctx, _cache) => {
2092
- return actions.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$32, [(openBlock(true), createElementBlock(Fragment, null, renderList(actions.value, (action) => {
2092
+ return actions.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$33, [(openBlock(true), createElementBlock(Fragment, null, renderList(actions.value, (action) => {
2093
2093
  return openBlock(), createBlock(_sfc_main$63, {
2094
2094
  key: action,
2095
2095
  class: "qk-attachment__action",
@@ -2123,7 +2123,7 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
2123
2123
  });
2124
2124
  //#endregion
2125
2125
  //#region src/vue/attachment/attachment.vue
2126
- const _hoisted_1$31 = [
2126
+ const _hoisted_1$32 = [
2127
2127
  "data-layout",
2128
2128
  "data-state",
2129
2129
  "data-preview-failed",
@@ -2260,7 +2260,7 @@ const _sfc_main$48 = /*@__PURE__*/ defineComponent({
2260
2260
  "show-label": false,
2261
2261
  "show-value": false
2262
2262
  }, null, 8, ["model-value", "label"])) : createCommentVNode("v-if", true)
2263
- ], 8, _hoisted_1$31);
2263
+ ], 8, _hoisted_1$32);
2264
2264
  };
2265
2265
  }
2266
2266
  });
@@ -2570,7 +2570,7 @@ const scrollRightIcon = Object.freeze({
2570
2570
  });
2571
2571
  //#endregion
2572
2572
  //#region src/vue/shared/horizontal-scroll/strip.vue
2573
- const _hoisted_1$30 = ["data-enabled", "data-overflow"];
2573
+ const _hoisted_1$31 = ["data-enabled", "data-overflow"];
2574
2574
  const _sfc_main$47 = /*@__PURE__*/ defineComponent({
2575
2575
  __name: "strip",
2576
2576
  props: {
@@ -2652,13 +2652,13 @@ const _sfc_main$47 = /*@__PURE__*/ defineComponent({
2652
2652
  }, null, 8, ["data"])]),
2653
2653
  _: 1
2654
2654
  }, 8, ["label", "disabled"])) : createCommentVNode("v-if", true)
2655
- ], 40, _hoisted_1$30);
2655
+ ], 40, _hoisted_1$31);
2656
2656
  };
2657
2657
  }
2658
2658
  });
2659
2659
  //#endregion
2660
2660
  //#region src/vue/attachment/attachments.vue
2661
- const _hoisted_1$29 = ["data-layout", "aria-label"];
2661
+ const _hoisted_1$30 = ["data-layout", "aria-label"];
2662
2662
  const _hoisted_2$22 = { class: "qk-attachments__items" };
2663
2663
  const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2664
2664
  inheritAttrs: false,
@@ -2756,7 +2756,7 @@ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2756
2756
  "enabled",
2757
2757
  "previous-label",
2758
2758
  "next-label"
2759
- ])], 16, _hoisted_1$29), createVNode(_sfc_main$53, {
2759
+ ])], 16, _hoisted_1$30), createVNode(_sfc_main$53, {
2760
2760
  items: unref(gallery).items.value,
2761
2761
  open: unref(gallery).opened.value,
2762
2762
  "onUpdate:open": _cache[2] || (_cache[2] = ($event) => unref(gallery).opened.value = $event),
@@ -2780,7 +2780,7 @@ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2780
2780
  });
2781
2781
  //#endregion
2782
2782
  //#region src/vue/checkbox/checkbox.vue
2783
- const _hoisted_1$28 = { class: "qk-checkbox__content" };
2783
+ const _hoisted_1$29 = { class: "qk-checkbox__content" };
2784
2784
  const _hoisted_2$21 = {
2785
2785
  key: 0,
2786
2786
  "aria-hidden": "true",
@@ -2888,7 +2888,7 @@ const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2888
2888
  })]),
2889
2889
  _: 1
2890
2890
  }, 8, ["class"]),
2891
- createElementVNode("span", _hoisted_1$28, [createVNode(unref(Checkbox).Label, { class: "qk-checkbox__label" }, {
2891
+ createElementVNode("span", _hoisted_1$29, [createVNode(unref(Checkbox).Label, { class: "qk-checkbox__label" }, {
2892
2892
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.label), 1)]), __props.required ? (openBlock(), createElementBlock("span", _hoisted_2$21, "*")) : createCommentVNode("v-if", true)]),
2893
2893
  _: 3
2894
2894
  }), __props.description !== void 0 || _ctx.$slots.description ? (openBlock(), createElementBlock("span", {
@@ -2911,7 +2911,7 @@ const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2911
2911
  });
2912
2912
  //#endregion
2913
2913
  //#region src/vue/collapsible/collapsible.vue
2914
- const _hoisted_1$27 = {
2914
+ const _hoisted_1$28 = {
2915
2915
  key: 0,
2916
2916
  class: "qk-collapsible__description"
2917
2917
  };
@@ -2988,7 +2988,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
2988
2988
  ]),
2989
2989
  onClick: focusTrigger
2990
2990
  }, {
2991
- default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["qk-collapsible__heading", __props.indicatorPlacement === "inline" && "qk-collapsible__heading--inline"]) }, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.title), 1)]), __props.description !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_1$27, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), createVNode(unref(Collapsible).Indicator, { class: "qk-collapsible__indicator" }, {
2991
+ default: withCtx(() => [createElementVNode("span", { class: normalizeClass(["qk-collapsible__heading", __props.indicatorPlacement === "inline" && "qk-collapsible__heading--inline"]) }, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.title), 1)]), __props.description !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_1$28, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)], 2), createVNode(unref(Collapsible).Indicator, { class: "qk-collapsible__indicator" }, {
2992
2992
  default: withCtx(() => [createVNode(_sfc_main$65, {
2993
2993
  name: "chevronRight",
2994
2994
  size: 16
@@ -3047,6 +3047,36 @@ function useFieldLabel() {
3047
3047
  return inject(fieldLabelKey, computed(() => void 0));
3048
3048
  }
3049
3049
  //#endregion
3050
+ //#region src/vue/kbd/labels.ts
3051
+ const keyNames = {
3052
+ "⌘": "Command",
3053
+ "⌥": "Option",
3054
+ "⌃": "Control",
3055
+ "⇧": "Shift",
3056
+ "↵": "Enter",
3057
+ "↑": "Arrow up",
3058
+ "↓": "Arrow down",
3059
+ "←": "Arrow left",
3060
+ "→": "Arrow right",
3061
+ "Esc": "Escape"
3062
+ };
3063
+ /**
3064
+ * Expands ambiguous key symbols without guessing the host platform.
3065
+ * @param keys - Explicit key sequence supplied by the host.
3066
+ * @returns A readable shortcut name, replaceable through the label prop.
3067
+ */
3068
+ function keyLabel(keys) {
3069
+ return keys.map((key) => keyNames[key] ?? key).join(" + ");
3070
+ }
3071
+ /**
3072
+ * Writes a shortcut as one inline chord for menus and tooltips.
3073
+ * @param keys - Explicit key sequence supplied by the host.
3074
+ * @returns Modifier symbols read as one chord (`⇧⌘S`); named keys keep separators (`Ctrl+Shift+S`).
3075
+ */
3076
+ function chordText(keys) {
3077
+ return keys.join(keys.slice(0, -1).every((key) => /^[⌘⌥⌃⇧]$/u.test(key)) ? "" : "+");
3078
+ }
3079
+ //#endregion
3050
3080
  //#region src/vue/textarea/auto-resize.ts
3051
3081
  const metricProperties = [
3052
3082
  "width",
@@ -3158,7 +3188,7 @@ function useTextareaAutoResize(root, value, options, appearance) {
3158
3188
  }
3159
3189
  //#endregion
3160
3190
  //#region src/vue/textarea/textarea.vue
3161
- const _hoisted_1$26 = {
3191
+ const _hoisted_1$27 = {
3162
3192
  key: 0,
3163
3193
  "aria-hidden": "true",
3164
3194
  class: "qk-textarea__count"
@@ -3318,35 +3348,13 @@ const _sfc_main$43 = /*@__PURE__*/ defineComponent({
3318
3348
  "minlength",
3319
3349
  "maxlength",
3320
3350
  "class"
3321
- ])), __props.showCount ? (openBlock(), createElementBlock("span", _hoisted_1$26, toDisplayString(countLabel.value), 1)) : createCommentVNode("v-if", true)], 6);
3351
+ ])), __props.showCount ? (openBlock(), createElementBlock("span", _hoisted_1$27, toDisplayString(countLabel.value), 1)) : createCommentVNode("v-if", true)], 6);
3322
3352
  };
3323
3353
  }
3324
3354
  });
3325
3355
  //#endregion
3326
- //#region src/vue/kbd/labels.ts
3327
- const keyNames = {
3328
- "⌘": "Command",
3329
- "⌥": "Option",
3330
- "⌃": "Control",
3331
- "⇧": "Shift",
3332
- "↵": "Enter",
3333
- "↑": "Arrow up",
3334
- "↓": "Arrow down",
3335
- "←": "Arrow left",
3336
- "→": "Arrow right",
3337
- "Esc": "Escape"
3338
- };
3339
- /**
3340
- * Expands ambiguous key symbols without guessing the host platform.
3341
- * @param keys - Explicit key sequence supplied by the host.
3342
- * @returns A readable shortcut name, replaceable through the label prop.
3343
- */
3344
- function keyLabel(keys) {
3345
- return keys.map((key) => keyNames[key] ?? key).join(" + ");
3346
- }
3347
- //#endregion
3348
3356
  //#region src/vue/kbd/kbd.vue
3349
- const _hoisted_1$25 = { "aria-hidden": "true" };
3357
+ const _hoisted_1$26 = { "aria-hidden": "true" };
3350
3358
  const _hoisted_2$20 = { class: "sr-only" };
3351
3359
  const _sfc_main$42 = /*@__PURE__*/ defineComponent({
3352
3360
  __name: "kbd",
@@ -3359,13 +3367,13 @@ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
3359
3367
  const props = __props;
3360
3368
  const accessible = computed(() => props.label ?? keyLabel(props.keys));
3361
3369
  return (_ctx, _cache) => {
3362
- return openBlock(), createElementBlock("kbd", { class: normalizeClass(["qk-kbd", `qk-kbd--${__props.size}`]) }, [createElementVNode("span", _hoisted_1$25, toDisplayString(__props.keys.join(" + ")), 1), createElementVNode("span", _hoisted_2$20, toDisplayString(accessible.value), 1)], 2);
3370
+ return openBlock(), createElementBlock("kbd", { class: normalizeClass(["qk-kbd", `qk-kbd--${__props.size}`]) }, [createElementVNode("span", _hoisted_1$26, toDisplayString(__props.keys.join(" + ")), 1), createElementVNode("span", _hoisted_2$20, toDisplayString(accessible.value), 1)], 2);
3363
3371
  };
3364
3372
  }
3365
3373
  });
3366
3374
  //#endregion
3367
3375
  //#region src/vue/menu/menu-item.vue
3368
- const _hoisted_1$24 = {
3376
+ const _hoisted_1$25 = {
3369
3377
  key: 0,
3370
3378
  class: "qk-menu__indicator",
3371
3379
  "aria-hidden": "true"
@@ -3422,7 +3430,7 @@ const _sfc_main$41 = /*@__PURE__*/ defineComponent({
3422
3430
  "onMenu:select": handleSelection
3423
3431
  }, {
3424
3432
  default: withCtx(() => [
3425
- _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$24, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3433
+ _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$25, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3426
3434
  __props.description ? (openBlock(), createElementBlock("span", _hoisted_2$19, [createVNode(unref(Menu).ItemText, { class: "qk-menu__label" }, {
3427
3435
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3428
3436
  _: 3
@@ -3644,7 +3652,7 @@ function useNestedMenuScroll(content, open) {
3644
3652
  }
3645
3653
  //#endregion
3646
3654
  //#region src/vue/menu/menu-submenu.vue
3647
- const _hoisted_1$23 = {
3655
+ const _hoisted_1$24 = {
3648
3656
  key: 0,
3649
3657
  class: "qk-menu__indicator",
3650
3658
  "aria-hidden": "true"
@@ -3772,7 +3780,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
3772
3780
  ])
3773
3781
  }, {
3774
3782
  default: withCtx(() => [
3775
- _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$23, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3783
+ _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$24, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3776
3784
  createElementVNode("span", _hoisted_2$18, [renderSlot(_ctx.$slots, "trigger")]),
3777
3785
  _cache[0] || (_cache[0] = createElementVNode("span", {
3778
3786
  class: "qk-menu__disclosure",
@@ -3862,7 +3870,7 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
3862
3870
  });
3863
3871
  //#endregion
3864
3872
  //#region src/vue/menu/menu-radio-item.vue
3865
- const _hoisted_1$22 = {
3873
+ const _hoisted_1$23 = {
3866
3874
  key: 0,
3867
3875
  class: "qk-menu__leading qk-menu__indicator",
3868
3876
  "aria-hidden": "true"
@@ -3911,7 +3919,7 @@ const _sfc_main$36 = /*@__PURE__*/ defineComponent({
3911
3919
  "data-described": __props.description ? "" : void 0
3912
3920
  }, {
3913
3921
  default: withCtx(() => [
3914
- _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$22, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3922
+ _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$23, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
3915
3923
  __props.description ? (openBlock(), createElementBlock("span", _hoisted_2$17, [createVNode(unref(Menu).ItemText, { class: "qk-menu__label" }, {
3916
3924
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
3917
3925
  _: 3
@@ -3954,7 +3962,7 @@ const _sfc_main$36 = /*@__PURE__*/ defineComponent({
3954
3962
  });
3955
3963
  //#endregion
3956
3964
  //#region src/vue/menu/menu-checkbox-item.vue
3957
- const _hoisted_1$21 = {
3965
+ const _hoisted_1$22 = {
3958
3966
  key: 0,
3959
3967
  class: "qk-menu__leading qk-menu__indicator",
3960
3968
  "aria-hidden": "true"
@@ -4015,7 +4023,7 @@ const _sfc_main$35 = /*@__PURE__*/ defineComponent({
4015
4023
  "data-described": __props.description ? "" : void 0
4016
4024
  }, {
4017
4025
  default: withCtx(() => [
4018
- _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$21, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
4026
+ _ctx.$slots.leading || __props.inset ? (openBlock(), createElementBlock("span", _hoisted_1$22, [renderSlot(_ctx.$slots, "leading")])) : createCommentVNode("v-if", true),
4019
4027
  __props.description ? (openBlock(), createElementBlock("span", _hoisted_2$16, [createVNode(unref(Menu).ItemText, { class: "qk-menu__label" }, {
4020
4028
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
4021
4029
  _: 3
@@ -4456,7 +4464,7 @@ function guardRadioReadOnlyKey(event, readOnly) {
4456
4464
  }
4457
4465
  //#endregion
4458
4466
  //#region src/vue/radio-group/radio-group.vue
4459
- const _hoisted_1$20 = {
4467
+ const _hoisted_1$21 = {
4460
4468
  key: 0,
4461
4469
  "aria-hidden": "true",
4462
4470
  class: "qk-radio-group__required"
@@ -4544,7 +4552,7 @@ const _sfc_main$31 = /*@__PURE__*/ defineComponent({
4544
4552
  onKeydownCapture: _cache[0] || (_cache[0] = ($event) => unref(guardRadioReadOnlyKey)($event, __props.readOnly))
4545
4553
  }), {
4546
4554
  default: withCtx(() => [createVNode(unref(RadioGroup).Label, { class: normalizeClass(["qk-radio-group__label", __props.hideLabel && "sr-only"]) }, {
4547
- default: withCtx(() => [createTextVNode(toDisplayString(__props.label), 1), __props.required ? (openBlock(), createElementBlock("span", _hoisted_1$20, "*")) : createCommentVNode("v-if", true)]),
4555
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.label), 1), __props.required ? (openBlock(), createElementBlock("span", _hoisted_1$21, "*")) : createCommentVNode("v-if", true)]),
4548
4556
  _: 1
4549
4557
  }, 8, ["class"]), createElementVNode("span", { class: normalizeClass(["qk-radio-group__items", `qk-radio-group__items--${__props.orientation}`]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
4550
4558
  return openBlock(), createBlock(unref(RadioGroup).Item, {
@@ -4821,7 +4829,7 @@ function useScrollSync(elements, onScroll) {
4821
4829
  }
4822
4830
  //#endregion
4823
4831
  //#region src/vue/scroll-area/scroll-area.vue
4824
- const _hoisted_1$19 = ["id"];
4832
+ const _hoisted_1$20 = ["id"];
4825
4833
  const _hoisted_2$14 = [
4826
4834
  "role",
4827
4835
  "aria-label",
@@ -5006,17 +5014,19 @@ const _sfc_main$30 = /*@__PURE__*/ defineComponent({
5006
5014
  "height": "0"
5007
5015
  }
5008
5016
  }, null, 512)) : createCommentVNode("v-if", true)
5009
- ], 10, _hoisted_1$19);
5017
+ ], 10, _hoisted_1$20);
5010
5018
  };
5011
5019
  }
5012
5020
  });
5013
5021
  //#endregion
5014
5022
  //#region src/vue/tooltip/content.vue
5023
+ const _hoisted_1$19 = ["aria-label"];
5015
5024
  const _sfc_main$29 = /*@__PURE__*/ defineComponent({
5016
5025
  inheritAttrs: false,
5017
5026
  __name: "content",
5018
5027
  props: {
5019
5028
  content: {},
5029
+ shortcut: {},
5020
5030
  disabledReason: {},
5021
5031
  subjectDisabled: {
5022
5032
  type: Boolean,
@@ -5047,6 +5057,7 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
5047
5057
  ...props.content === void 0 ? {} : { content: props.content },
5048
5058
  ...props.disabledReason === void 0 ? {} : { disabledReason: props.disabledReason }
5049
5059
  }));
5060
+ const shortcutText = computed(() => props.shortcut?.length && !(props.subjectDisabled && props.disabledReason) ? chordText(props.shortcut) : "");
5050
5061
  return (_ctx, _cache) => {
5051
5062
  return openBlock(), createBlock(Teleport, {
5052
5063
  to: unref(portal).target.value,
@@ -5076,7 +5087,11 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
5076
5087
  "data-part": "arrow-tip"
5077
5088
  })]),
5078
5089
  _: 1
5079
- })) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", { content: resolvedContent.value }, () => [createTextVNode(toDisplayString(resolvedContent.value), 1)])]),
5090
+ })) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", { content: resolvedContent.value }, () => [createTextVNode(toDisplayString(resolvedContent.value), 1), shortcutText.value ? (openBlock(), createElementBlock("kbd", {
5091
+ key: 0,
5092
+ class: "qk-tooltip__shortcut",
5093
+ "aria-label": unref(keyLabel)(__props.shortcut)
5094
+ }, toDisplayString(shortcutText.value), 9, _hoisted_1$19)) : createCommentVNode("v-if", true)])]),
5080
5095
  _: 3
5081
5096
  }, 16)]),
5082
5097
  _: 3
@@ -9087,6 +9102,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
9087
9102
  }
9088
9103
  });
9089
9104
  //#endregion
9090
- export { _sfc_main$47 as $, _sfc_main$31 as A, useMenuLayerClass as B, _sfc_main$23 as C, _sfc_main$28 as D, _sfc_main$27 as E, _sfc_main$36 as F, _sfc_main$42 as G, anchoredSurfaceStyle as H, _sfc_main$37 as I, useFieldLabel as J, _sfc_main$43 as K, _sfc_main$38 as L, _sfc_main$32 as M, _sfc_main$34 as N, _sfc_main$29 as O, _sfc_main$35 as P, _sfc_main$46 as Q, _sfc_main$39 as R, _sfc_main$22 as S, _sfc_main$26 as T, _sfc_main$40 as U, resolveViewportMenuContentStyle as V, _sfc_main$41 as W, _sfc_main$44 as X, useModalPortal as Y, _sfc_main$45 as Z, _sfc_main$19 as _, useQuireKitTheme as _t, _sfc_main$4 as a, _sfc_main$50 as at, _sfc_main$20 as b, _sfc_main$62 as bt, _sfc_main$7 as c, imagePreviewGroupKey as ct, _sfc_main$10 as d, useModalSurfaceOwner as dt, scrollLeftIcon as et, _sfc_main$11 as f, _sfc_main$58 as ft, _sfc_main$18 as g, quireKitThemeKey as gt, _sfc_main$17 as h, provideQuireInheritedThemePortals as ht, _sfc_main$3 as i, _sfc_main$48 as it, guardRadioReadOnlyKey as j, _sfc_main$30 as k, _sfc_main$8 as l, _sfc_main$53 as lt, _sfc_main$14 as m, _sfc_main$60 as mt, _sfc_main$1 as n, useHorizontalScroll as nt, _sfc_main$5 as o, _sfc_main$51 as ot, _sfc_main$13 as p, _sfc_main$59 as pt, provideFieldLabel as q, _sfc_main$2 as r, useImagePreviewGroup as rt, _sfc_main$6 as s, _sfc_main$52 as st, _sfc_main as t, scrollRightIcon as tt, _sfc_main$9 as u, quireImagePreviewToolbarPresets as ut, assertChoiceValues as v, provideQuireOverlayHost as vt, _sfc_main$25 as w, _sfc_main$21 as x, _sfc_main$63 as xt, useChoiceState as y, useQuireOverlayHost as yt, provideSubmenuSiblings as z };
9105
+ export { _sfc_main$45 as $, _sfc_main$31 as A, useMenuLayerClass as B, _sfc_main$23 as C, _sfc_main$63 as Ct, _sfc_main$28 as D, _sfc_main$27 as E, _sfc_main$36 as F, _sfc_main$42 as G, anchoredSurfaceStyle as H, _sfc_main$37 as I, keyLabel as J, _sfc_main$43 as K, _sfc_main$38 as L, _sfc_main$32 as M, _sfc_main$34 as N, _sfc_main$29 as O, _sfc_main$35 as P, _sfc_main$44 as Q, _sfc_main$39 as R, _sfc_main$22 as S, _sfc_main$62 as St, _sfc_main$26 as T, _sfc_main$40 as U, resolveViewportMenuContentStyle as V, _sfc_main$41 as W, useFieldLabel as X, provideFieldLabel as Y, useModalPortal as Z, _sfc_main$19 as _, provideQuireInheritedThemePortals as _t, _sfc_main$4 as a, useImagePreviewGroup as at, _sfc_main$20 as b, provideQuireOverlayHost as bt, _sfc_main$7 as c, _sfc_main$51 as ct, _sfc_main$10 as d, _sfc_main$53 as dt, _sfc_main$46 as et, _sfc_main$11 as f, quireImagePreviewToolbarPresets as ft, _sfc_main$18 as g, _sfc_main$60 as gt, _sfc_main$17 as h, _sfc_main$59 as ht, _sfc_main$3 as i, useHorizontalScroll as it, guardRadioReadOnlyKey as j, _sfc_main$30 as k, _sfc_main$8 as l, _sfc_main$52 as lt, _sfc_main$14 as m, _sfc_main$58 as mt, _sfc_main$1 as n, scrollLeftIcon as nt, _sfc_main$5 as o, _sfc_main$48 as ot, _sfc_main$13 as p, useModalSurfaceOwner as pt, chordText as q, _sfc_main$2 as r, scrollRightIcon as rt, _sfc_main$6 as s, _sfc_main$50 as st, _sfc_main as t, _sfc_main$47 as tt, _sfc_main$9 as u, imagePreviewGroupKey as ut, assertChoiceValues as v, quireKitThemeKey as vt, _sfc_main$25 as w, _sfc_main$21 as x, useQuireOverlayHost as xt, useChoiceState as y, useQuireKitTheme as yt, provideSubmenuSiblings as z };
9091
9106
 
9092
- //# sourceMappingURL=chat-BAee3Pg0.mjs.map
9107
+ //# sourceMappingURL=chat-BSVF78Hu.mjs.map