@dicehub/kappa 0.6.2 → 1.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 (132) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/THIRD_PARTY_NOTICES.md +103 -1
  3. package/dist/{DropdownSubTrigger-DrZmNIcU.js → DropdownSubTrigger-DVOFK5Y1.js} +202 -146
  4. package/dist/DropdownSubTrigger-DVOFK5Y1.js.map +1 -0
  5. package/dist/PoweredByDicehub-DPceYF8f.js +143 -0
  6. package/dist/PoweredByDicehub-DPceYF8f.js.map +1 -0
  7. package/dist/{WorkspaceSwitcher-DBWdKZbM.js → WorkspaceSwitcher-DDAIMxeE.js} +5 -9
  8. package/dist/WorkspaceSwitcher-DDAIMxeE.js.map +1 -0
  9. package/dist/app-shell-PGvfb1aZ.js +570 -0
  10. package/dist/app-shell-PGvfb1aZ.js.map +1 -0
  11. package/dist/blocks/app-shell/AppShell.vue.d.ts +41 -0
  12. package/dist/blocks/app-shell/AppShellActions.vue.d.ts +3 -0
  13. package/dist/blocks/app-shell/AppShellAsideResizeHandle.vue.d.ts +20 -0
  14. package/dist/blocks/app-shell/AppShellPage.vue.d.ts +6 -0
  15. package/dist/blocks/app-shell/AppShellPanels.vue.d.ts +33 -0
  16. package/dist/blocks/app-shell/AppShellSearchDialog.vue.d.ts +10 -0
  17. package/dist/blocks/app-shell/AppShellSearchTrigger.vue.d.ts +7 -0
  18. package/dist/blocks/app-shell/AppShellToolbar.vue.d.ts +3 -0
  19. package/dist/blocks/app-shell/app-shell.d.ts +67 -0
  20. package/dist/blocks/app-shell/index.d.ts +19 -0
  21. package/dist/blocks/app-shell.js +2 -0
  22. package/dist/blocks/file-browser.js +1 -1
  23. package/dist/blocks/index.d.ts +1 -0
  24. package/dist/blocks/sidebar-layout/SidebarLayout.vue.d.ts +2 -0
  25. package/dist/blocks/sidebar-layout/sidebar-layout.d.ts +14 -2
  26. package/dist/blocks/sidebar-layout.js +1 -1
  27. package/dist/blocks/workspace-switcher/workspace-switcher.d.ts +2 -0
  28. package/dist/blocks/workspace-switcher.js +1 -1
  29. package/dist/{breadcrumbs-CIxUxZVD.js → breadcrumbs-CPfb83sY.js} +36 -41
  30. package/dist/{breadcrumbs-CIxUxZVD.js.map → breadcrumbs-CPfb83sY.js.map} +1 -1
  31. package/dist/button-Cst2B-9X.js +208 -0
  32. package/dist/button-Cst2B-9X.js.map +1 -0
  33. package/dist/code-highlighted-BDnrVMMM.js +541 -0
  34. package/dist/code-highlighted-BDnrVMMM.js.map +1 -0
  35. package/dist/{command-palette-BHFB86Gc.js → command-palette-BjXvHrd6.js} +178 -165
  36. package/dist/command-palette-BjXvHrd6.js.map +1 -0
  37. package/dist/components/breadcrumbs.js +1 -1
  38. package/dist/components/button/index.d.ts +2 -0
  39. package/dist/components/button/toolbar-button.d.ts +23 -0
  40. package/dist/components/button.js +2 -2
  41. package/dist/components/code-block/index.d.ts +8 -0
  42. package/dist/components/code-block.js +10 -0
  43. package/dist/components/code-block.js.map +1 -0
  44. package/dist/components/code-highlighted/CodeBlockDisclosure.vue.d.ts +36 -0
  45. package/dist/components/code-highlighted/CodeHighlighted.vue.d.ts +28 -1
  46. package/dist/components/code-highlighted/code-highlighted.d.ts +12 -1
  47. package/dist/components/code-highlighted/use-shiki-highlighter.d.ts +1 -0
  48. package/dist/components/code-highlighted.js +2 -376
  49. package/dist/components/command-palette/CommandPaletteResultItem.vue.d.ts +1 -1
  50. package/dist/components/command-palette.js +1 -1
  51. package/dist/components/context-menu/ContextMenu.vue.d.ts +5 -5
  52. package/dist/components/context-menu.js +2 -2
  53. package/dist/components/data-grid.js +1 -1
  54. package/dist/components/date-picker/DatePicker.vue.d.ts +1 -1
  55. package/dist/components/dialog/Dialog.vue.d.ts +7 -7
  56. package/dist/components/dialog-layout/DialogLayoutAlert.vue.d.ts +3 -3
  57. package/dist/components/dicehub-logo/dicehub-logo.d.ts +17 -4
  58. package/dist/components/dicehub-logo/index.d.ts +1 -1
  59. package/dist/components/dicehub-logo.js +2 -2
  60. package/dist/components/drawer/Drawer.vue.d.ts +3 -3
  61. package/dist/components/dropdown/Dropdown.vue.d.ts +5 -5
  62. package/dist/components/dropdown/DropdownContent.vue.d.ts +1 -0
  63. package/dist/components/dropdown/DropdownSub.vue.d.ts +5 -5
  64. package/dist/components/dropdown/DropdownSubContent.vue.d.ts +1 -0
  65. package/dist/components/dropdown/dropdown.d.ts +2 -0
  66. package/dist/components/dropdown/use-dropdown-focus.d.ts +6 -0
  67. package/dist/components/dropdown.js +2 -2
  68. package/dist/components/filter-bar.js +1 -1
  69. package/dist/components/hover-card/HoverCard.vue.d.ts +2 -2
  70. package/dist/components/kbd.js +1 -1
  71. package/dist/components/loader/Loader.vue.d.ts +1 -1
  72. package/dist/components/matrix-loader/MatrixLoader.vue.d.ts +1 -1
  73. package/dist/components/menu-bar.js +1 -1
  74. package/dist/components/popover/Popover.vue.d.ts +7 -7
  75. package/dist/components/sidebar/SidebarProvider.vue.d.ts +1 -0
  76. package/dist/components/sidebar/index.d.ts +1 -1
  77. package/dist/components/sidebar/sidebar-resize.d.ts +1 -0
  78. package/dist/components/sidebar/sidebar.d.ts +5 -1
  79. package/dist/components/sidebar.js +1 -1
  80. package/dist/components/table/TableCheckCell.vue.d.ts +1 -1
  81. package/dist/components/table/TableCheckHead.vue.d.ts +1 -1
  82. package/dist/components/toolbar/ToolbarButton.vue.d.ts +5 -1
  83. package/dist/components/toolbar/index.d.ts +3 -2
  84. package/dist/components/toolbar/toolbar.d.ts +2 -3
  85. package/dist/components/toolbar.js +3 -2
  86. package/dist/components/tooltip/Tooltip.vue.d.ts +5 -5
  87. package/dist/{context-menu-B_noSd5p.js → context-menu-WmJWrUGu.js} +2 -2
  88. package/dist/{context-menu-B_noSd5p.js.map → context-menu-WmJWrUGu.js.map} +1 -1
  89. package/dist/{data-grid-CobgDr8q.js → data-grid-BQkLsfk0.js} +2 -2
  90. package/dist/{data-grid-CobgDr8q.js.map → data-grid-BQkLsfk0.js.map} +1 -1
  91. package/dist/{dropdown-Dedb1tk8.js → dropdown-BABKXjuz.js} +2 -2
  92. package/dist/{dropdown-Dedb1tk8.js.map → dropdown-BABKXjuz.js.map} +1 -1
  93. package/dist/{file-browser-CGqaz2eI.js → file-browser-BxOJWvrF.js} +5 -5
  94. package/dist/{file-browser-CGqaz2eI.js.map → file-browser-BxOJWvrF.js.map} +1 -1
  95. package/dist/{filter-bar-COAlDQE4.js → filter-bar-CAyW-YoF.js} +2 -2
  96. package/dist/{filter-bar-COAlDQE4.js.map → filter-bar-CAyW-YoF.js.map} +1 -1
  97. package/dist/index.js +104 -103
  98. package/dist/{KbdGroup-CNwqr4vX.js → kbd-CNwqr4vX.js} +1 -1
  99. package/dist/kbd-CNwqr4vX.js.map +1 -0
  100. package/dist/{menu-bar-C-qQn2L1.js → menu-bar-DPJllpvf.js} +2 -2
  101. package/dist/{menu-bar-C-qQn2L1.js.map → menu-bar-DPJllpvf.js.map} +1 -1
  102. package/dist/paneled-bottom.png +0 -0
  103. package/dist/paneled-side.png +0 -0
  104. package/dist/registry/component-registry.json +18 -6
  105. package/dist/registry/generated.d.ts +94 -10
  106. package/dist/{registry-DLklQtS0.js → registry-Bgb2nbb2.js} +121 -9
  107. package/dist/registry-Bgb2nbb2.js.map +1 -0
  108. package/dist/registry.js +1 -1
  109. package/dist/{sidebar-tcrbUrk_.js → sidebar-9TqPqgDD.js} +178 -157
  110. package/dist/sidebar-9TqPqgDD.js.map +1 -0
  111. package/dist/{SidebarLayout-D9RT-MdT.js → sidebar-layout-DRe1HpSt.js} +65 -46
  112. package/dist/sidebar-layout-DRe1HpSt.js.map +1 -0
  113. package/dist/styles/kappa.css +1 -1
  114. package/dist/styles/theme-kappa.css +296 -1
  115. package/dist/styles/tokens.json +767 -0
  116. package/dist/{toolbar-DC-4XdHD.js → toolbar-DJsnox8t.js} +90 -146
  117. package/dist/toolbar-DJsnox8t.js.map +1 -0
  118. package/licenses/nunito.LICENSE +93 -0
  119. package/package.json +1 -1
  120. package/dist/DropdownSubTrigger-DrZmNIcU.js.map +0 -1
  121. package/dist/KbdGroup-CNwqr4vX.js.map +0 -1
  122. package/dist/PoweredByDicehub-BD-y1NZA.js +0 -92
  123. package/dist/PoweredByDicehub-BD-y1NZA.js.map +0 -1
  124. package/dist/SidebarLayout-D9RT-MdT.js.map +0 -1
  125. package/dist/WorkspaceSwitcher-DBWdKZbM.js.map +0 -1
  126. package/dist/button-DSgFcDoO.js +0 -128
  127. package/dist/button-DSgFcDoO.js.map +0 -1
  128. package/dist/command-palette-BHFB86Gc.js.map +0 -1
  129. package/dist/components/code-highlighted.js.map +0 -1
  130. package/dist/registry-DLklQtS0.js.map +0 -1
  131. package/dist/sidebar-tcrbUrk_.js.map +0 -1
  132. package/dist/toolbar-DC-4XdHD.js.map +0 -1
@@ -1,376 +1,2 @@
1
- import { t as e } from "../select-Bxs-8rkj.js";
2
- import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, onMounted as f, openBlock as p, provide as m, ref as h, renderList as g, renderSlot as _, shallowRef as v, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
3
- import { Clipboard as C } from "@ark-ui/vue/clipboard";
4
- //#region src/components/code-highlighted/CodeHighlightedCopy.vue?vue&type=script&setup=true&lang.ts
5
- var w = {
6
- key: 0,
7
- class: "kappa-code-highlighted__copy-icon",
8
- viewBox: "0 0 16 16",
9
- fill: "none",
10
- "aria-hidden": "true",
11
- focusable: "false"
12
- }, T = {
13
- key: 1,
14
- class: "kappa-code-highlighted__copy-icon",
15
- viewBox: "0 0 24 24",
16
- fill: "none",
17
- stroke: "currentColor",
18
- "stroke-width": "2",
19
- "aria-hidden": "true",
20
- focusable: "false"
21
- }, E = {
22
- class: "kappa-code-highlighted__copy-status",
23
- "aria-live": "polite",
24
- "aria-atomic": "true"
25
- }, D = /* @__PURE__ */ l({
26
- __name: "CodeHighlightedCopy",
27
- props: {
28
- code: {},
29
- labels: {}
30
- },
31
- setup(e) {
32
- return (t, n) => (p(), r(b(C).Root, {
33
- class: "kappa-code-highlighted__copy-root",
34
- "data-slot": "code-highlighted-copy",
35
- "model-value": e.code,
36
- timeout: 2e3
37
- }, {
38
- default: S(() => [c(b(C).Context, null, {
39
- default: S((t) => [c(b(C).Trigger, {
40
- type: "button",
41
- class: "kappa-code-highlighted__copy",
42
- "aria-label": t.copied ? e.labels.copied : e.labels.copy
43
- }, {
44
- default: S(() => [t.copied ? (p(), a("svg", w, [...n[0] ||= [o("path", {
45
- d: "M3.25 8.75 6.25 11.5 12.75 4.5",
46
- stroke: "currentColor",
47
- "stroke-width": "1.75",
48
- "stroke-linecap": "round",
49
- "stroke-linejoin": "round"
50
- }, null, -1)]])) : (p(), a("svg", T, [...n[1] ||= [o("rect", {
51
- x: "3",
52
- y: "8",
53
- width: "13",
54
- height: "13",
55
- rx: "3"
56
- }, null, -1), o("path", { d: "M8 8V6a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2" }, null, -1)]]))]),
57
- _: 2
58
- }, 1032, ["aria-label"]), o("span", E, y(t.copied ? e.labels.copied : ""), 1)]),
59
- _: 1
60
- })]),
61
- _: 1
62
- }, 8, ["model-value"]));
63
- }
64
- }), O = {
65
- js: "javascript",
66
- cjs: "javascript",
67
- mjs: "javascript",
68
- ts: "typescript",
69
- cts: "typescript",
70
- mts: "typescript",
71
- sh: "bash",
72
- zsh: "bash",
73
- yml: "yaml",
74
- py: "python",
75
- md: "markdown",
76
- gql: "graphql"
77
- }, k = {
78
- copy: "Copy",
79
- copied: "Copied!",
80
- language: "Code language"
81
- };
82
- function A(e) {
83
- return Object.hasOwn(N, e) ? e : Object.hasOwn(O, e) ? O[e] : null;
84
- }
85
- function j(e, t) {
86
- return [...new Set(e.map((e) => t(e)).filter((e) => e !== null))].sort();
87
- }
88
- function M(e, t) {
89
- return j(e, t).join(",");
90
- }
91
- var N = {
92
- javascript: !0,
93
- typescript: !0,
94
- jsx: !0,
95
- tsx: !0,
96
- json: !0,
97
- jsonc: !0,
98
- html: !0,
99
- css: !0,
100
- python: !0,
101
- yaml: !0,
102
- markdown: !0,
103
- graphql: !0,
104
- sql: !0,
105
- bash: !0,
106
- shell: !0,
107
- diff: !0,
108
- hcl: !0,
109
- toml: !0,
110
- vue: !0
111
- }, P = Symbol("kappa-shiki-context");
112
- //#endregion
113
- //#region src/components/code-highlighted/use-shiki-highlighter.ts
114
- function F() {
115
- let e = u(P);
116
- if (!e) throw Error("useShikiHighlighter must be used within a ShikiProvider. Wrap your app with <ShikiProvider> from '@dicehub/kappa/components/code-highlighted'.");
117
- return {
118
- highlight: (t, n) => {
119
- if (!e.highlighter.value) return null;
120
- let r = A(n);
121
- if (!r || !e.languages.value.includes(r)) return console.warn(`[Kappa CodeHighlighted] Language "${n}" is not in the ShikiProvider languages list. Rendering as plain text.`), null;
122
- try {
123
- return e.highlighter.value.codeToHtml(t, {
124
- lang: r,
125
- themes: {
126
- light: "github-light",
127
- dark: "vesper"
128
- },
129
- defaultColor: "light-dark()"
130
- });
131
- } catch (e) {
132
- return console.warn(`[Kappa CodeHighlighted] Failed to highlight code with language "${n}":`, e), null;
133
- }
134
- },
135
- isLoading: e.isLoading,
136
- isReady: n(() => !e.isLoading.value && e.highlighter.value !== null),
137
- error: e.error,
138
- labels: e.labels
139
- };
140
- }
141
- //#endregion
142
- //#region src/components/code-highlighted/CodeHighlighted.vue?vue&type=script&setup=true&lang.ts
143
- var I = {
144
- key: 0,
145
- class: "kappa-code-highlighted__header"
146
- }, L = {
147
- key: 0,
148
- class: "kappa-code-highlighted__title"
149
- }, R = {
150
- key: 1,
151
- class: "kappa-code-highlighted__layout"
152
- }, z = {
153
- class: "kappa-code-highlighted__line-numbers",
154
- "aria-hidden": "true"
155
- }, B = { class: "kappa-code-highlighted__scroll" }, V = ["innerHTML"], H = {
156
- key: 1,
157
- class: "kappa-code-highlighted__plain"
158
- }, U = {
159
- key: 2,
160
- class: "kappa-code-highlighted__scroll"
161
- }, W = ["innerHTML"], G = {
162
- key: 1,
163
- class: "kappa-code-highlighted__plain"
164
- }, K = /* @__PURE__ */ l({
165
- inheritAttrs: !1,
166
- __name: "CodeHighlighted",
167
- props: {
168
- code: {},
169
- lang: {},
170
- title: {},
171
- languageOptions: { default: () => [] },
172
- showLineNumbers: {
173
- type: Boolean,
174
- default: !1
175
- },
176
- highlightLines: { default: () => [] },
177
- showCopyButton: {
178
- type: Boolean,
179
- default: !1
180
- },
181
- labels: { default: () => ({}) }
182
- },
183
- emits: ["update:lang"],
184
- setup(l, { emit: u }) {
185
- let f = l, m = u, h = F(), _ = n(() => ({
186
- ...h.labels.value,
187
- ...f.labels
188
- })), v = n(() => f.code.split("\n")), x = n(() => v.value.length === 1), C = n(() => !!(f.title || f.languageOptions.length)), w = n(() => h.isLoading.value || h.error.value ? null : h.highlight(f.code, f.lang)), T = n(() => k(w.value, f.highlightLines)), E = n(() => f.showLineNumbers && !x.value);
189
- function O(e) {
190
- let t = e[0];
191
- t && t !== f.lang && m("update:lang", t);
192
- }
193
- function k(e, t) {
194
- if (!e || t.length === 0) return e;
195
- let n = new Set(t), r = 0;
196
- return e.replace(/<span class="line">/g, () => (r += 1, n.has(r) ? "<span class=\"line line-highlighted\">" : "<span class=\"line\">"));
197
- }
198
- return (n, u) => (p(), a("figure", d(n.$attrs, {
199
- class: ["kappa-code-highlighted", {
200
- "kappa-code-highlighted--has-copy": l.showCopyButton,
201
- "kappa-code-highlighted--single-line": l.showCopyButton && x.value && !C.value,
202
- "kappa-code-highlighted--with-title": l.title,
203
- "kappa-code-highlighted--with-header": C.value
204
- }],
205
- "data-slot": "code-highlighted"
206
- }), [
207
- C.value ? (p(), a("figcaption", I, [
208
- l.title ? (p(), a("span", L, y(l.title), 1)) : i("", !0),
209
- l.languageOptions.length ? (p(), r(b(e).Root, {
210
- key: 1,
211
- class: "kappa-code-highlighted__language-select",
212
- "aria-label": _.value.language,
213
- items: l.languageOptions,
214
- "model-value": [l.lang],
215
- positioning: {
216
- placement: "bottom-end",
217
- gutter: 4,
218
- sameWidth: !1
219
- },
220
- size: "sm",
221
- "onUpdate:modelValue": O
222
- }, {
223
- default: S(() => [c(b(e).Control, null, {
224
- default: S(() => [c(b(e).Trigger, { class: "kappa-code-highlighted__language-trigger" }, {
225
- default: S(() => [c(b(e).ValueText), c(b(e).Indicator)]),
226
- _: 1
227
- })]),
228
- _: 1
229
- }), c(b(e).Positioner, null, {
230
- default: S(() => [c(b(e).Content, {
231
- class: "kappa-code-highlighted__language-menu",
232
- "aria-label": _.value.language
233
- }, {
234
- default: S(() => [(p(!0), a(t, null, g(l.languageOptions, (t) => (p(), r(b(e).Item, {
235
- key: t.value,
236
- item: t
237
- }, {
238
- default: S(() => [s(y(t.label), 1)]),
239
- _: 2
240
- }, 1032, ["item"]))), 128))]),
241
- _: 1
242
- }, 8, ["aria-label"])]),
243
- _: 1
244
- })]),
245
- _: 1
246
- }, 8, [
247
- "aria-label",
248
- "items",
249
- "model-value"
250
- ])) : i("", !0),
251
- l.showCopyButton ? (p(), r(D, {
252
- key: 2,
253
- code: l.code,
254
- labels: _.value
255
- }, null, 8, ["code", "labels"])) : i("", !0)
256
- ])) : i("", !0),
257
- E.value ? (p(), a("div", R, [o("div", z, [(p(!0), a(t, null, g(v.value, (e, t) => (p(), a("span", { key: t }, y(t + 1), 1))), 128))]), o("div", B, [T.value ? (p(), a("div", {
258
- key: 0,
259
- class: "kappa-code-highlighted__shiki",
260
- innerHTML: T.value
261
- }, null, 8, V)) : (p(), a("pre", H, [o("code", null, y(l.code), 1)]))])])) : (p(), a("div", U, [T.value ? (p(), a("div", {
262
- key: 0,
263
- class: "kappa-code-highlighted__shiki",
264
- innerHTML: T.value
265
- }, null, 8, W)) : (p(), a("pre", G, [o("code", null, y(l.code), 1)]))])),
266
- l.showCopyButton && !C.value ? (p(), r(D, {
267
- key: 3,
268
- code: l.code,
269
- labels: _.value
270
- }, null, 8, ["code", "labels"])) : i("", !0)
271
- ], 16));
272
- }
273
- }), q = {
274
- javascript: () => import("@shikijs/langs/javascript"),
275
- typescript: () => import("@shikijs/langs/typescript"),
276
- jsx: () => import("@shikijs/langs/jsx"),
277
- tsx: () => import("@shikijs/langs/tsx"),
278
- json: () => import("@shikijs/langs/json"),
279
- jsonc: () => import("@shikijs/langs/jsonc"),
280
- html: () => import("@shikijs/langs/html"),
281
- css: () => import("@shikijs/langs/css"),
282
- python: () => import("@shikijs/langs/python"),
283
- yaml: () => import("@shikijs/langs/yaml"),
284
- markdown: () => import("@shikijs/langs/markdown"),
285
- graphql: () => import("@shikijs/langs/graphql"),
286
- sql: () => import("@shikijs/langs/sql"),
287
- bash: () => import("@shikijs/langs/bash"),
288
- shell: () => import("@shikijs/langs/shellscript"),
289
- diff: () => import("@shikijs/langs/diff"),
290
- hcl: () => import("@shikijs/langs/hcl"),
291
- toml: () => import("@shikijs/langs/toml"),
292
- vue: () => import("@shikijs/langs/vue")
293
- };
294
- //#endregion
295
- //#region src/components/code-highlighted/shiki-lifecycle.ts
296
- function J(e) {
297
- let t = !1, n = null;
298
- return (async () => {
299
- try {
300
- let r = await e.create();
301
- if (t) {
302
- r.dispose();
303
- return;
304
- }
305
- n = r, e.onReady(r);
306
- } catch (n) {
307
- t || e.onError(n);
308
- } finally {
309
- t || e.onSettled();
310
- }
311
- })(), () => {
312
- t || (t = !0, n?.dispose());
313
- };
314
- }
315
- //#endregion
316
- //#region src/components/code-highlighted/ShikiProvider.vue
317
- var Y = /* @__PURE__ */ l({
318
- __name: "ShikiProvider",
319
- props: {
320
- engine: { default: "javascript" },
321
- labels: { default: () => ({}) },
322
- languages: {}
323
- },
324
- setup(e) {
325
- let t = e, r = v(null), i = h(!0), a = v(null), o = h([]), s = n(() => ({
326
- ...k,
327
- ...t.labels
328
- })), c = n(() => M(t.languages, A)), l = h(!1);
329
- return m(P, {
330
- highlighter: r,
331
- isLoading: i,
332
- error: a,
333
- languages: o,
334
- labels: s
335
- }), f(() => {
336
- l.value = !0;
337
- }), x([
338
- l,
339
- () => t.engine,
340
- c
341
- ], ([e, n], s, c) => {
342
- if (!e) return;
343
- let l = j(t.languages, A);
344
- r.value = null, o.value = [], i.value = !0, a.value = null;
345
- let u = J({
346
- async create() {
347
- let { createHighlighterCore: e } = await import("shiki/core"), t = n === "wasm" ? await import("shiki/engine/oniguruma").then((e) => e.createOnigurumaEngine(import("shiki/wasm"))) : await import("shiki/engine/javascript").then((e) => e.createJavaScriptRegexEngine()), [r, i] = await Promise.all([import("@shikijs/themes/github-light"), import("@shikijs/themes/vesper")]), a = await Promise.all(l.map((e) => q[e]()));
348
- return e({
349
- themes: [r.default, i.default],
350
- langs: a.map((e) => e.default),
351
- engine: t
352
- });
353
- },
354
- onError(e) {
355
- r.value = null, o.value = [], a.value = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load Shiki");
356
- },
357
- onReady(e) {
358
- r.value = e, o.value = l;
359
- },
360
- onSettled() {
361
- i.value = !1;
362
- }
363
- });
364
- c(() => {
365
- u(), r.value = null, o.value = [];
366
- });
367
- }), (e, t) => _(e.$slots, "default");
368
- }
369
- }), X = Object.assign(K, {
370
- Root: K,
371
- Provider: Y
372
- });
373
- //#endregion
374
- export { X as CodeHighlighted, K as CodeHighlightedRoot, k as DEFAULT_CODE_HIGHLIGHTED_LABELS, Y as ShikiProvider, A as normalizeCodeHighlightedLanguage, F as useShikiHighlighter };
375
-
376
- //# sourceMappingURL=code-highlighted.js.map
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../code-highlighted-BDnrVMMM.js";
2
+ export { a as CodeHighlighted, i as CodeHighlightedRoot, e as DEFAULT_CODE_HIGHLIGHTED_LABELS, n as ShikiProvider, r as normalizeCodeHighlightedLanguage, t as useShikiHighlighter };
@@ -5,8 +5,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
5
5
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
6
6
  onSelect?: ((value: unknown, event: MouseEvent) => any) | undefined;
7
7
  }>, {
8
- breadcrumbs: string[];
9
8
  showArrow: boolean;
9
+ breadcrumbs: string[];
10
10
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  export default _default;
@@ -1,2 +1,2 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../command-palette-BHFB86Gc.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../command-palette-BjXvHrd6.js";
2
2
  export { g as CommandPalette, n as CommandPaletteDialog, y as CommandPaletteEmpty, v as CommandPaletteFooter, e as CommandPaletteGroup, o as CommandPaletteGroupLabel, i as CommandPaletteHighlightedText, _ as CommandPaletteInput, l as CommandPaletteItem, r as CommandPaletteItems, h as CommandPaletteList, f as CommandPaletteLoading, t as CommandPalettePanel, c as CommandPaletteResultItem, m as CommandPaletteResults, d as CommandPaletteRoot, a as createCommandPaletteSegments, p as getCommandPaletteItemValue, u as matchesCommandPaletteItem, s as stringifyCommandPaletteItem };
@@ -11,10 +11,10 @@ declare const __VLS_base: import('vue').DefineComponent<ContextMenuProps, {}, {}
11
11
  pointerDownOutside: (event: ArkMenu.PointerDownOutsideEvent) => any;
12
12
  "update:highlightedValue": (value: string | null) => any;
13
13
  "update:open": (value: boolean) => any;
14
- escapeKeyDown: (event: KeyboardEvent) => any;
15
- requestDismiss: (event: import('./context-menu').ContextMenuRequestDismissEvent) => any;
16
14
  triggerValueChange: (details: ArkMenu.TriggerValueChangeDetails) => any;
17
15
  "update:triggerValue": (value: string | null) => any;
16
+ escapeKeyDown: (event: KeyboardEvent) => any;
17
+ requestDismiss: (event: import('./context-menu').ContextMenuRequestDismissEvent) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<ContextMenuProps> & Readonly<{
19
19
  onSelect?: ((details: ArkMenu.SelectionDetails) => any) | undefined;
20
20
  onExitComplete?: (() => any) | undefined;
@@ -25,10 +25,10 @@ declare const __VLS_base: import('vue').DefineComponent<ContextMenuProps, {}, {}
25
25
  onPointerDownOutside?: ((event: ArkMenu.PointerDownOutsideEvent) => any) | undefined;
26
26
  "onUpdate:highlightedValue"?: ((value: string | null) => any) | undefined;
27
27
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
- onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
29
- onRequestDismiss?: ((event: import('./context-menu').ContextMenuRequestDismissEvent) => any) | undefined;
30
28
  onTriggerValueChange?: ((details: ArkMenu.TriggerValueChangeDetails) => any) | undefined;
31
29
  "onUpdate:triggerValue"?: ((value: string | null) => any) | undefined;
30
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
31
+ onRequestDismiss?: ((event: import('./context-menu').ContextMenuRequestDismissEvent) => any) | undefined;
32
32
  }>, {
33
33
  id: string;
34
34
  ids: Partial<{
@@ -53,8 +53,8 @@ declare const __VLS_base: import('vue').DefineComponent<ContextMenuProps, {}, {}
53
53
  loopFocus: boolean;
54
54
  navigate: (details: import('@zag-js/menu/dist').NavigateDetails) => void;
55
55
  ariaLabel: string;
56
- triggerValue: string | null;
57
56
  defaultTriggerValue: string | null;
57
+ triggerValue: string | null;
58
58
  anchorPoint: import('@zag-js/rect-utils/dist').Point;
59
59
  typeahead: boolean;
60
60
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,3 +1,3 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../DropdownSubTrigger-DrZmNIcU.js";
2
- import { a as b, c as x, d as S, i as C, l as w, n as T, o as E, r as D, s as O, t as k, u as A } from "../context-menu-B_noSd5p.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../DropdownSubTrigger-DVOFK5Y1.js";
2
+ import { a as b, c as x, d as S, i as C, l as w, n as T, o as E, r as D, s as O, t as k, u as A } from "../context-menu-WmJWrUGu.js";
3
3
  export { O as CONTEXT_MENU_DEFAULT_ITEM_VARIANT, x as CONTEXT_MENU_DEFAULT_POSITIONING, w as CONTEXT_MENU_ITEM_VARIANTS, k as ContextMenu, n as ContextMenuArrow, y as ContextMenuCheckboxItem, v as ContextMenuContent, e as ContextMenuContext, s as ContextMenuGroup, _ as ContextMenuGroupLabel, _ as ContextMenuLabel, u as ContextMenuItem, p as ContextMenuItemContext, a as ContextMenuItemIndicator, a as ContextMenuRadioItemIndicator, i as ContextMenuItemText, l as ContextMenuLinkItem, r as ContextMenuRadioGroup, h as ContextMenuRadioItem, E as ContextMenuRoot, f as ContextMenuRootProvider, t as ContextMenuSeparator, c as ContextMenuShortcut, m as ContextMenuSub, d as ContextMenuSubContent, g as ContextMenuSubTrigger, o as ContextMenuTrigger, T as contextMenuAnatomy, A as isContextMenuItemVariant, S as resolveContextMenuItemVariant, D as useContextMenu, C as useContextMenuContext, b as useContextMenuItemContext };
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../data-grid-CobgDr8q.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../data-grid-BQkLsfk0.js";
2
2
  export { a as DATA_GRID_DEFAULTS, c as DataGrid, n as DataGridColumnVisibility, o as DataGridContext, i as DataGridPagination, e as DataGridRoot, s as filterDataGridRows, t as getDataGridColumnValue, r as resolveDataGridOverscan, l as resolveDataGridPositiveInteger };
@@ -65,9 +65,9 @@ declare const __VLS_base: import('vue').DefineComponent<DatePickerProps, {}, {},
65
65
  openOnClick: boolean;
66
66
  readOnly: boolean;
67
67
  translations: import('@zag-js/date-picker/dist').IntlTranslations;
68
- format: (date: ArkDatePicker.DateValue, details: import('@zag-js/date-picker/dist').LocaleDetails) => string;
69
68
  max: ArkDatePicker.DateValue;
70
69
  min: ArkDatePicker.DateValue;
70
+ format: (date: ArkDatePicker.DateValue, details: import('@zag-js/date-picker/dist').LocaleDetails) => string;
71
71
  selectionMode: ArkDatePicker.SelectionMode;
72
72
  createCalendar: (identifier: import('@internationalized/date').CalendarIdentifier) => import('@internationalized/date').Calendar;
73
73
  defaultFocusedValue: ArkDatePicker.DateValue;
@@ -8,10 +8,10 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {},
8
8
  openChange: (details: ArkDialog.OpenChangeDetails) => any;
9
9
  pointerDownOutside: (event: ArkDialog.PointerDownOutsideEvent) => any;
10
10
  "update:open": (open: boolean) => any;
11
- escapeKeyDown: (event: KeyboardEvent) => any;
12
- requestDismiss: (event: import('./dialog').DialogRequestDismissEvent) => any;
13
11
  triggerValueChange: (details: ArkDialog.TriggerValueChangeDetails) => any;
14
12
  "update:triggerValue": (triggerValue: string | null) => any;
13
+ escapeKeyDown: (event: KeyboardEvent) => any;
14
+ requestDismiss: (event: import('./dialog').DialogRequestDismissEvent) => any;
15
15
  }, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{
16
16
  onExitComplete?: (() => any) | undefined;
17
17
  onFocusOutside?: ((event: ArkDialog.FocusOutsideEvent) => any) | undefined;
@@ -19,10 +19,10 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {},
19
19
  onOpenChange?: ((details: ArkDialog.OpenChangeDetails) => any) | undefined;
20
20
  onPointerDownOutside?: ((event: ArkDialog.PointerDownOutsideEvent) => any) | undefined;
21
21
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
22
- onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
23
- onRequestDismiss?: ((event: import('./dialog').DialogRequestDismissEvent) => any) | undefined;
24
22
  onTriggerValueChange?: ((details: ArkDialog.TriggerValueChangeDetails) => any) | undefined;
25
23
  "onUpdate:triggerValue"?: ((triggerValue: string | null) => any) | undefined;
24
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
25
+ onRequestDismiss?: ((event: import('./dialog').DialogRequestDismissEvent) => any) | undefined;
26
26
  }>, {
27
27
  id: string;
28
28
  ids: Partial<{
@@ -40,8 +40,10 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {},
40
40
  open: boolean;
41
41
  defaultOpen: boolean;
42
42
  ariaLabel: string;
43
- initialFocusEl: () => HTMLElement | null;
44
43
  closeOnEscape: boolean;
44
+ defaultTriggerValue: string | null;
45
+ triggerValue: string | null;
46
+ initialFocusEl: () => HTMLElement | null;
45
47
  closeOnInteractOutside: boolean;
46
48
  modal: boolean;
47
49
  preventScroll: boolean;
@@ -49,8 +51,6 @@ declare const __VLS_base: import('vue').DefineComponent<DialogProps, {}, {}, {},
49
51
  trapFocus: boolean;
50
52
  finalFocusEl: () => HTMLElement | null;
51
53
  persistentElements: (() => Element | null)[];
52
- triggerValue: string | null;
53
- defaultTriggerValue: string | null;
54
54
  disablePointerDismissal: boolean;
55
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
56
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -16,8 +16,10 @@ declare const __VLS_base: import('vue').DefineComponent<DialogLayoutAlertProps,
16
16
  open: boolean;
17
17
  defaultOpen: boolean;
18
18
  ariaLabel: string;
19
- initialFocusEl: () => HTMLElement | null;
20
19
  closeOnEscape: boolean;
20
+ defaultTriggerValue: string | null;
21
+ triggerValue: string | null;
22
+ initialFocusEl: () => HTMLElement | null;
21
23
  closeOnInteractOutside: boolean;
22
24
  modal: boolean;
23
25
  preventScroll: boolean;
@@ -25,8 +27,6 @@ declare const __VLS_base: import('vue').DefineComponent<DialogLayoutAlertProps,
25
27
  trapFocus: boolean;
26
28
  finalFocusEl: () => HTMLElement | null;
27
29
  persistentElements: (() => Element | null)[];
28
- triggerValue: string | null;
29
- defaultTriggerValue: string | null;
30
30
  disablePointerDismissal: boolean;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;